From 7e09c8d652d310d32c43701b08f1a82d6210a78a Mon Sep 17 00:00:00 2001 From: GermanBluefox Date: Mon, 13 Jan 2025 19:52:09 +0000 Subject: [PATCH] - (@GermanBluefox) Correcting locale for x-axis - (@GermanBluefox) Correcting widget --- .../{index-VBHizqvZ.js => index-DIG665pI.js} | 40 +- admin/chart/assets/index-DCgeF7hH.js | 609 ----------------- admin/chart/assets/index-ZF2lF8gx.js | 637 ++++++++++++++++++ admin/chart/index.html | 2 +- .../preview/assets/index-pOd0B7Ce.js | 70 +- admin/preview/index.html | 2 +- admin/tab.html | 2 +- build-backend/lib/ChartModel.js | 12 +- build-backend/lib/ChartModel.js.map | 2 +- build-backend/main.js | 3 +- build-backend/main.js.map | 2 +- package.json | 12 +- src-chart/package.json | 2 +- src-preview/package.json | 2 +- src-widgets/package.json | 16 +- src/lib/ChartModel.ts | 18 +- src/main.ts | 6 +- tasksChart.js | 2 +- tasksEdit.js | 2 +- tasksPreview.js | 2 +- tasksWidgets.js | 2 +- widgets/echarts.html | 4 +- widgets/echarts/customWidgets.js | 2 +- widgets/echarts/customWidgets.js.map | 2 +- .../js/{main.66c82001.js => main.e82ce00d.js} | 4 +- ...react-v5_build_index_js.fcd7c9b6.chunk.js} | 6 +- ...ld_index_js.fcd7c9b6.chunk.js.LICENSE.txt} | 0 www/assets/index-DCgeF7hH.js | 609 ----------------- www/assets/index-ZF2lF8gx.js | 637 ++++++++++++++++++ www/index.html | 2 +- .../preview/assets/index-pOd0B7Ce.js | 70 +- www/preview/index.html | 2 +- 32 files changed, 1430 insertions(+), 1353 deletions(-) rename admin/assets/{index-VBHizqvZ.js => index-DIG665pI.js} (86%) delete mode 100644 admin/chart/assets/index-DCgeF7hH.js create mode 100644 admin/chart/assets/index-ZF2lF8gx.js rename www/preview/assets/index-CgqD6xas.js => admin/preview/assets/index-pOd0B7Ce.js (87%) rename widgets/echarts/static/js/{main.66c82001.js => main.e82ce00d.js} (99%) rename widgets/echarts/static/js/{vendors-node_modules_iobroker_adapter-react-v5_build_index_js.5de79a5e.chunk.js => vendors-node_modules_iobroker_adapter-react-v5_build_index_js.fcd7c9b6.chunk.js} (99%) rename widgets/echarts/static/js/{vendors-node_modules_iobroker_adapter-react-v5_build_index_js.5de79a5e.chunk.js.LICENSE.txt => vendors-node_modules_iobroker_adapter-react-v5_build_index_js.fcd7c9b6.chunk.js.LICENSE.txt} (100%) delete mode 100644 www/assets/index-DCgeF7hH.js create mode 100644 www/assets/index-ZF2lF8gx.js rename admin/preview/assets/index-CgqD6xas.js => www/preview/assets/index-pOd0B7Ce.js (87%) diff --git a/admin/assets/index-VBHizqvZ.js b/admin/assets/index-DIG665pI.js similarity index 86% rename from admin/assets/index-VBHizqvZ.js rename to admin/assets/index-DIG665pI.js index 8c25e00c..f2fbbccf 100644 --- a/admin/assets/index-VBHizqvZ.js +++ b/admin/assets/index-DIG665pI.js @@ -146,15 +146,15 @@ PERFORMANCE OF THIS SOFTWARE. .__dbk__dragger.Dark { background: #434252; } -/* ====== */`);const BJ=m.forwardRef(({className:t,theme:e,draggerClassName:r,direction:n=Tr.Vertical,onDragging:o},a)=>{const i=`__dbk__gutter ${n} ${t||e}`,s=`__dbk__dragger ${n} ${r||e}`;return w.jsx("div",Object.assign({className:i,ref:a,dir:n,onMouseDown:o,onTouchStart:qg?o:void 0},{children:w.jsx("div",{className:s},void 0)}),void 0)});var Go;function oE(t,e,r){let n,o;return e?(n=t/2,o=t):r?(n=t,o=t/2):(n=t,o=t),{aGutterSize:n,bGutterSize:o}}function WJ(t,e){switch(e.type){case Go.SetIsReadyToCompute:return Object.assign(Object.assign({},t),{isReady:e.payload.isReady});case Go.CreatePairs:{const{direction:r,children:n,gutters:o}=e.payload,a=n[0].parentNode;if(!a)throw new Error("Cannot create pairs - parent is undefined.");const i=lv(r,a);if(i===void 0)throw new Error(`Cannot create pairs - parent has undefined or zero size: ${i}.`);const s=[];return n.forEach((l,d)=>{if(d>0){const h=n[d-1],u=n[d],f=o[d-1],g=r===Tr.Horizontal?h.getBoundingClientRect().left:h.getBoundingClientRect().top,y=r===Tr.Horizontal?u.getBoundingClientRect().right:u.getBoundingClientRect().bottom,b=r===Tr.Horizontal?h.getBoundingClientRect().width+f.getBoundingClientRect().width+u.getBoundingClientRect().width:h.getBoundingClientRect().height+f.getBoundingClientRect().height+u.getBoundingClientRect().height,x=r===Tr.Horizontal?f.getBoundingClientRect().width:f.getBoundingClientRect().height,S={idx:d-1,a:h,b:u,gutter:f,parent:a,start:g,end:y,size:b,gutterSize:x,aSizePct:100/n.length,bSizePct:100/n.length};s.push(S)}}),Object.assign(Object.assign({},t),{pairs:s})}case Go.StartDragging:{const{gutterIdx:r}=e.payload;return Object.assign(Object.assign({},t),{isDragging:!0,draggingIdx:r})}case Go.StopDragging:return Object.assign(Object.assign({},t),{isDragging:!1});case Go.CalculateSizes:{const{direction:r,gutterIdx:n}=e.payload,o=t.pairs[n],a=lv(r,o.parent);if(!a)throw new Error("Cannot calculate sizes - 'pair.parent' has undefined or zero size.");const i=o.gutter[r===Tr.Horizontal?"clientWidth":"clientHeight"],s=n===0,l=n===t.pairs.length-1,{aGutterSize:d,bGutterSize:h}=oE(i,s,l);let u,f,g,y,b;return r===Tr.Horizontal?(u=o.a.getBoundingClientRect().left,f=o.b.getBoundingClientRect().right,y=(o.a.getBoundingClientRect().width+d)/a*100,b=(o.b.getBoundingClientRect().width+h)/a*100,g=o.a.getBoundingClientRect().width+d+h+o.b.getBoundingClientRect().width):(u=o.a.getBoundingClientRect().top,f=o.b.getBoundingClientRect().bottom,y=(o.a.getBoundingClientRect().height+d)/a*100,b=(o.b.getBoundingClientRect().height+h)/a*100,g=o.a.getBoundingClientRect().height+d+h+o.b.getBoundingClientRect().height),t.pairs[n]=Object.assign(Object.assign({},o),{start:u,end:f,size:g,aSizePct:y,bSizePct:b,gutterSize:i}),Object.assign({},t)}default:return t}}function M9(t,e=0,r=[]){return A.Children.toArray(t).reduce((n,o,a)=>(I9.isFragment(o)?n.push.apply(n,M9(o.props.children,e+1,r.concat(o.key||a))):A.isValidElement(o)?n.push(A.cloneElement(o,{key:r.concat(String(o.key)).join(".")})):typeof o!="string"&&typeof o!="number"||n.push(o),n),[])}(function(t){t[t.SetIsReadyToCompute=0]="SetIsReadyToCompute",t[t.CreatePairs=1]="CreatePairs",t[t.CalculateSizes=2]="CalculateSizes",t[t.StartDragging=3]="StartDragging",t[t.StopDragging=4]="StopDragging"})(Go||(Go={}));const SP=t=>"changedTouches"in t;var Tr,aE;(function(t){t.Horizontal="Horizontal",t.Vertical="Vertical"})(Tr||(Tr={})),function(t){t.Light="Light",t.Dark="Dark"}(aE||(aE={}));const qg=typeof window<"u"&&"ontouchstart"in window;function yb(t){return t===Tr.Horizontal?"col-resize":"row-resize"}const HJ={isReady:!1,isDragging:!1,pairs:[]};function CP({direction:t=Tr.Horizontal,minWidths:e=[],minHeights:r=[],initialSizes:n,gutterTheme:o=aE.Dark,gutterClassName:a,draggerClassName:i,children:s,onResizeStarted:l,onResizeFinished:d,classes:h=[]}){const u=M9(s),[f,g]=A.useReducer(WJ,HJ),y=A.useRef(null),b=A.useRef([]),x=A.useRef([]);b.current=[],x.current=[];const S=m.useCallback(W=>{g({type:Go.SetIsReadyToCompute,payload:{isReady:W}})},[]),T=m.useCallback((W,L)=>{g({type:Go.StartDragging,payload:{gutterIdx:L}});const F=f.pairs[L];l==null||l(F.idx),F.a.style.userSelect="none",F.b.style.userSelect="none",F.gutter.style.cursor=yb(W),F.parent.style.cursor=yb(W),document.body.style.cursor=yb(W)},[f.pairs]),E=m.useCallback(()=>{g({type:Go.StopDragging});const W=[];for(let F=0;F{g({type:Go.CalculateSizes,payload:{direction:W,gutterIdx:L}})},[]),k=m.useCallback((W,L,F)=>{g({type:Go.CreatePairs,payload:{direction:W,children:L,gutters:F}})},[]),O=m.useCallback((W,L,F,H)=>{const q=L[0].parentNode;if(!q)throw new Error("Cannot set initial sizes - parent is undefined");if(lv(W,q)===void 0)throw new Error("Cannot set initial sizes - parent has undefined size");L.forEach((ee,Y)=>{const G=Y===0,te=Y===L.length-1;let B,K=0;L.length>1&&(K=F[te?Y-1:Y].getBoundingClientRect()[W===Tr.Horizontal?"width":"height"],K=G||te?K/2:K),B=H&&Y{if(f.draggingIdx===void 0)throw new Error("Cannot adjust size - 'draggingIdx' is undefined");const F=f.pairs[f.draggingIdx];if(F.size===void 0)throw new Error("Cannot adjust size - 'pair.size' is undefined");if(F.gutterSize===void 0)throw new Error("Cannot adjust size - 'pair.gutterSize' is undefined");const H=F.aSizePct+F.bSizePct,q=L/F.size*H,ee=H-L/F.size*H,Y=f.draggingIdx===0,G=f.draggingIdx===f.pairs.length-1,{aGutterSize:te,bGutterSize:B}=oE(F.gutterSize,Y,G),K=`calc(${q}% - ${te}px)`,he=`calc(${ee}% - ${B}px)`;W===Tr.Horizontal?(F.a.style.width=K,F.b.style.width=he):(F.a.style.height=K,F.b.style.height=he)},[f.draggingIdx,f.pairs,t]),R=m.useCallback((W,L,F)=>{if(!f.isDragging)return;if(f.draggingIdx===void 0)throw new Error("Cannot drag - 'draggingIdx' is undefined");const H=f.pairs[f.draggingIdx];if(H.start===void 0)throw new Error("Cannot drag - 'pair.start' is undefined");if(H.size===void 0)throw new Error("Cannot drag - 'pair.size' is undefined");if(H.gutterSize===void 0)throw new Error("Cannot drag - 'pair.gutterSize' is undefined");let q=function(G,te){const B=SP(te)?te.changedTouches[0]:te;return G===Tr.Horizontal?B.clientX:B.clientY}(L,W)-H.start,ee=16,Y=16;F.length>f.draggingIdx&&(ee=F[f.draggingIdx]),F.length>=f.draggingIdx+1&&(Y=F[f.draggingIdx+1]),q=H.size-(H.gutterSize+Y)&&(q=H.size-(H.gutterSize+Y)),M(L,q)},[f.isDragging,f.draggingIdx,f.pairs,M]),j=()=>{if(f.isDragging){if(f.draggingIdx===void 0)throw new Error("Cannot calculate sizes after dragging = 'state.draggingIdx' is undefined");$(t,f.draggingIdx),E()}},I=W=>{f.isDragging&&(SP(W)&&W.preventDefault(),R(W,t,t===Tr.Horizontal?e:r))};function z(W,L){if(!W.current)throw new Error("Can't add element to ref object - ref isn't initialized");L&&!W.current.includes(L)&&W.current.push(L)}return Qm("mouseup",j,[f.isDragging,E]),Qm("mousemove",I,[t,f.isDragging,R,e,r]),Qm("touchend",j,[f.isDragging,E],{condition:qg}),Qm("touchmove",I,[t,f.isDragging,R,e,r],{condition:qg,passive:!qg}),A.useEffect(function(){if(!y.current)return;const W=y.current.parentElement;if(!W)return;const L=new ResizeObserver(()=>{const F=getComputedStyle(W),H=t===Tr.Horizontal?W.clientWidth:W.clientHeight;S(!!F&&!!H)});return L.observe(W),()=>{L.disconnect()}},[y.current,t]),A.useEffect(function(){if(f.isReady&&(!b.current||b.current[0].offsetParent)){if(!b.current||!x.current)throw new Error("Cannot create pairs - either variable 'childRefs' or 'gutterRefs' is undefined");u.length<=1?O(t,b.current,x.current,n):(O(t,b.current,x.current,n),k(t,b.current,x.current))}},[s,f.isReady,t,O,k,n]),w.jsx("div",Object.assign({className:`__dbk__container ${t}`,ref:y},{children:f.isReady&&u.map((W,L)=>w.jsxs(m.Fragment,{children:[w.jsx("div",Object.assign({ref:F=>z(b,F),className:"__dbk__child-wrapper "+(Lz(x,F),className:a,theme:o,draggerClassName:i,direction:t,onDragging:()=>{return $(t,F=L),void T(t,F);var F}},void 0)]},L))}),void 0)}function Ni(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const Ca="$$material";function cv(){return cv=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?yn(Tu,--ao):0,au--,Qr===10&&(au=1,ly--),Qr}function $o(){return Qr=ao2||Hh(Qr)>3?"":" "}function nY(t,e){for(;--e&&$o()&&!(Qr<48||Qr>102||Qr>57&&Qr<65||Qr>70&&Qr<97););return bf(t,Gg()+(e<6&&Za()==32&&$o()==32))}function sE(t){for(;$o();)switch(Qr){case t:return ao;case 34:case 39:t!==34&&t!==39&&sE(Qr);break;case 40:t===41&&sE(t);break;case 92:$o();break}return ao}function oY(t,e){for(;$o()&&t+Qr!==57;)if(t+Qr===84&&Za()===47)break;return"/*"+bf(e,ao-1)+"*"+sy(t===47?t:$o())}function aY(t){for(;!Hh(Za());)$o();return bf(t,ao)}function iY(t){return F9(Jg("",null,null,null,[""],t=z9(t),0,[0],t))}function Jg(t,e,r,n,o,a,i,s,l){for(var d=0,h=0,u=i,f=0,g=0,y=0,b=1,x=1,S=1,T=0,E="",$=o,k=a,O=n,M=E;x;)switch(y=T,T=$o()){case 40:if(y!=108&&yn(M,u-1)==58){iE(M+=Xt(Xg(T),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:M+=Xg(T);break;case 9:case 10:case 13:case 32:M+=rY(y);break;case 92:M+=nY(Gg()-1,7);continue;case 47:switch(Za()){case 42:case 47:eg(sY(oY($o(),Gg()),e,r),l);break;default:M+="/"}break;case 123*b:s[d++]=Va(M)*S;case 125*b:case 59:case 0:switch(T){case 0:case 125:x=0;case 59+h:S==-1&&(M=Xt(M,/\f/g,"")),g>0&&Va(M)-u&&eg(g>32?kP(M+";",n,r,u-1):kP(Xt(M," ","")+";",n,r,u-2),l);break;case 59:M+=";";default:if(eg(O=$P(M,e,r,d,h,o,s,E,$=[],k=[],u),a),T===123)if(h===0)Jg(M,e,O,O,$,a,u,s,k);else switch(f===99&&yn(M,3)===110?100:f){case 100:case 108:case 109:case 115:Jg(t,O,O,n&&eg($P(t,O,O,0,0,o,s,E,o,$=[],u),k),o,k,u,s,n?$:k);break;default:Jg(M,O,O,O,[""],k,0,s,k)}}d=h=g=0,b=S=1,E=M="",u=i;break;case 58:u=1+Va(M),g=y;default:if(b<1){if(T==123)--b;else if(T==125&&b++==0&&tY()==125)continue}switch(M+=sy(T),T*b){case 38:S=h>0?1:(M+="\f",-1);break;case 44:s[d++]=(Va(M)-1)*S,S=1;break;case 64:Za()===45&&(M+=Xg($o())),f=Za(),h=u=Va(E=M+=aY(Gg())),T++;break;case 45:y===45&&Va(M)==2&&(b=0)}}return a}function $P(t,e,r,n,o,a,i,s,l,d,h){for(var u=o-1,f=o===0?a:[""],g=pT(f),y=0,b=0,x=0;y0?f[S]+" "+T:Xt(T,/&\f/g,f[S])))&&(l[x++]=E);return cy(t,e,r,o===0?dT:s,l,d,h)}function sY(t,e,r){return cy(t,e,r,N9,sy(eY()),Wh(t,2,-2),0)}function kP(t,e,r,n){return cy(t,e,r,uT,Wh(t,0,n),Wh(t,n+1,-1),n)}function Kd(t,e){for(var r="",n=pT(t),o=0;o6)switch(yn(t,e+1)){case 109:if(yn(t,e+4)!==45)break;case 102:return Xt(t,/(.+:)(.+)-([^]+)/,"$1"+Gt+"$2-$3$1"+dv+(yn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~iE(t,"stretch")?W9(Xt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(yn(t,e+1)!==115)break;case 6444:switch(yn(t,Va(t)-3-(~iE(t,"!important")&&10))){case 107:return Xt(t,":",":"+Gt)+t;case 101:return Xt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gt+(yn(t,14)===45?"inline-":"")+"box$3$1"+Gt+"$2$3$1"+$n+"$2box$3")+t}break;case 5936:switch(yn(t,e+11)){case 114:return Gt+t+$n+Xt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Gt+t+$n+Xt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Gt+t+$n+Xt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Gt+t+$n+t+t}return t}var gY=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case uT:e.return=W9(e.value,e.length);break;case R9:return Kd([Op(e,{value:Xt(e.value,"@","@"+Gt)})],o);case dT:if(e.length)return QJ(e.props,function(a){switch(ZJ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kd([Op(e,{props:[Xt(a,/:(read-\w+)/,":"+dv+"$1")]})],o);case"::placeholder":return Kd([Op(e,{props:[Xt(a,/:(plac\w+)/,":"+Gt+"input-$1")]}),Op(e,{props:[Xt(a,/:(plac\w+)/,":"+dv+"$1")]}),Op(e,{props:[Xt(a,/:(plac\w+)/,$n+"input-$1")]})],o)}return""})}},vY=[gY],H9=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var x=b.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=e.stylisPlugins||vY,a={},i,s=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var x=b.getAttribute("data-emotion").split(" "),S=1;S{const i=`__dbk__gutter ${n} ${t||e}`,s=`__dbk__dragger ${n} ${r||e}`;return w.jsx("div",Object.assign({className:i,ref:a,dir:n,onMouseDown:o,onTouchStart:qg?o:void 0},{children:w.jsx("div",{className:s},void 0)}),void 0)});var Go;function oE(t,e,r){let n,o;return e?(n=t/2,o=t):r?(n=t,o=t/2):(n=t,o=t),{aGutterSize:n,bGutterSize:o}}function WJ(t,e){switch(e.type){case Go.SetIsReadyToCompute:return Object.assign(Object.assign({},t),{isReady:e.payload.isReady});case Go.CreatePairs:{const{direction:r,children:n,gutters:o}=e.payload,a=n[0].parentNode;if(!a)throw new Error("Cannot create pairs - parent is undefined.");const i=lv(r,a);if(i===void 0)throw new Error(`Cannot create pairs - parent has undefined or zero size: ${i}.`);const s=[];return n.forEach((l,d)=>{if(d>0){const h=n[d-1],u=n[d],f=o[d-1],g=r===Tr.Horizontal?h.getBoundingClientRect().left:h.getBoundingClientRect().top,y=r===Tr.Horizontal?u.getBoundingClientRect().right:u.getBoundingClientRect().bottom,b=r===Tr.Horizontal?h.getBoundingClientRect().width+f.getBoundingClientRect().width+u.getBoundingClientRect().width:h.getBoundingClientRect().height+f.getBoundingClientRect().height+u.getBoundingClientRect().height,x=r===Tr.Horizontal?f.getBoundingClientRect().width:f.getBoundingClientRect().height,S={idx:d-1,a:h,b:u,gutter:f,parent:a,start:g,end:y,size:b,gutterSize:x,aSizePct:100/n.length,bSizePct:100/n.length};s.push(S)}}),Object.assign(Object.assign({},t),{pairs:s})}case Go.StartDragging:{const{gutterIdx:r}=e.payload;return Object.assign(Object.assign({},t),{isDragging:!0,draggingIdx:r})}case Go.StopDragging:return Object.assign(Object.assign({},t),{isDragging:!1});case Go.CalculateSizes:{const{direction:r,gutterIdx:n}=e.payload,o=t.pairs[n],a=lv(r,o.parent);if(!a)throw new Error("Cannot calculate sizes - 'pair.parent' has undefined or zero size.");const i=o.gutter[r===Tr.Horizontal?"clientWidth":"clientHeight"],s=n===0,l=n===t.pairs.length-1,{aGutterSize:d,bGutterSize:h}=oE(i,s,l);let u,f,g,y,b;return r===Tr.Horizontal?(u=o.a.getBoundingClientRect().left,f=o.b.getBoundingClientRect().right,y=(o.a.getBoundingClientRect().width+d)/a*100,b=(o.b.getBoundingClientRect().width+h)/a*100,g=o.a.getBoundingClientRect().width+d+h+o.b.getBoundingClientRect().width):(u=o.a.getBoundingClientRect().top,f=o.b.getBoundingClientRect().bottom,y=(o.a.getBoundingClientRect().height+d)/a*100,b=(o.b.getBoundingClientRect().height+h)/a*100,g=o.a.getBoundingClientRect().height+d+h+o.b.getBoundingClientRect().height),t.pairs[n]=Object.assign(Object.assign({},o),{start:u,end:f,size:g,aSizePct:y,bSizePct:b,gutterSize:i}),Object.assign({},t)}default:return t}}function M9(t,e=0,r=[]){return A.Children.toArray(t).reduce((n,o,a)=>(I9.isFragment(o)?n.push.apply(n,M9(o.props.children,e+1,r.concat(o.key||a))):A.isValidElement(o)?n.push(A.cloneElement(o,{key:r.concat(String(o.key)).join(".")})):typeof o!="string"&&typeof o!="number"||n.push(o),n),[])}(function(t){t[t.SetIsReadyToCompute=0]="SetIsReadyToCompute",t[t.CreatePairs=1]="CreatePairs",t[t.CalculateSizes=2]="CalculateSizes",t[t.StartDragging=3]="StartDragging",t[t.StopDragging=4]="StopDragging"})(Go||(Go={}));const SP=t=>"changedTouches"in t;var Tr,aE;(function(t){t.Horizontal="Horizontal",t.Vertical="Vertical"})(Tr||(Tr={})),function(t){t.Light="Light",t.Dark="Dark"}(aE||(aE={}));const qg=typeof window<"u"&&"ontouchstart"in window;function yb(t){return t===Tr.Horizontal?"col-resize":"row-resize"}const HJ={isReady:!1,isDragging:!1,pairs:[]};function CP({direction:t=Tr.Horizontal,minWidths:e=[],minHeights:r=[],initialSizes:n,gutterTheme:o=aE.Dark,gutterClassName:a,draggerClassName:i,children:s,onResizeStarted:l,onResizeFinished:d,classes:h=[]}){const u=M9(s),[f,g]=A.useReducer(WJ,HJ),y=A.useRef(null),b=A.useRef([]),x=A.useRef([]);b.current=[],x.current=[];const S=m.useCallback(W=>{g({type:Go.SetIsReadyToCompute,payload:{isReady:W}})},[]),T=m.useCallback((W,L)=>{g({type:Go.StartDragging,payload:{gutterIdx:L}});const F=f.pairs[L];l==null||l(F.idx),F.a.style.userSelect="none",F.b.style.userSelect="none",F.gutter.style.cursor=yb(W),F.parent.style.cursor=yb(W),document.body.style.cursor=yb(W)},[f.pairs]),E=m.useCallback(()=>{g({type:Go.StopDragging});const W=[];for(let F=0;F{g({type:Go.CalculateSizes,payload:{direction:W,gutterIdx:L}})},[]),k=m.useCallback((W,L,F)=>{g({type:Go.CreatePairs,payload:{direction:W,children:L,gutters:F}})},[]),O=m.useCallback((W,L,F,H)=>{const q=L[0].parentNode;if(!q)throw new Error("Cannot set initial sizes - parent is undefined");if(lv(W,q)===void 0)throw new Error("Cannot set initial sizes - parent has undefined size");L.forEach((ee,Y)=>{const G=Y===0,te=Y===L.length-1;let B,K=0;L.length>1&&(K=F[te?Y-1:Y].getBoundingClientRect()[W===Tr.Horizontal?"width":"height"],K=G||te?K/2:K),B=H&&Y{if(f.draggingIdx===void 0)throw new Error("Cannot adjust size - 'draggingIdx' is undefined");const F=f.pairs[f.draggingIdx];if(F.size===void 0)throw new Error("Cannot adjust size - 'pair.size' is undefined");if(F.gutterSize===void 0)throw new Error("Cannot adjust size - 'pair.gutterSize' is undefined");const H=F.aSizePct+F.bSizePct,q=L/F.size*H,ee=H-L/F.size*H,Y=f.draggingIdx===0,G=f.draggingIdx===f.pairs.length-1,{aGutterSize:te,bGutterSize:B}=oE(F.gutterSize,Y,G),K=`calc(${q}% - ${te}px)`,he=`calc(${ee}% - ${B}px)`;W===Tr.Horizontal?(F.a.style.width=K,F.b.style.width=he):(F.a.style.height=K,F.b.style.height=he)},[f.draggingIdx,f.pairs,t]),R=m.useCallback((W,L,F)=>{if(!f.isDragging)return;if(f.draggingIdx===void 0)throw new Error("Cannot drag - 'draggingIdx' is undefined");const H=f.pairs[f.draggingIdx];if(H.start===void 0)throw new Error("Cannot drag - 'pair.start' is undefined");if(H.size===void 0)throw new Error("Cannot drag - 'pair.size' is undefined");if(H.gutterSize===void 0)throw new Error("Cannot drag - 'pair.gutterSize' is undefined");let q=function(G,te){const B=SP(te)?te.changedTouches[0]:te;return G===Tr.Horizontal?B.clientX:B.clientY}(L,W)-H.start,ee=16,Y=16;F.length>f.draggingIdx&&(ee=F[f.draggingIdx]),F.length>=f.draggingIdx+1&&(Y=F[f.draggingIdx+1]),q=H.size-(H.gutterSize+Y)&&(q=H.size-(H.gutterSize+Y)),M(L,q)},[f.isDragging,f.draggingIdx,f.pairs,M]),j=()=>{if(f.isDragging){if(f.draggingIdx===void 0)throw new Error("Cannot calculate sizes after dragging = 'state.draggingIdx' is undefined");$(t,f.draggingIdx),E()}},I=W=>{f.isDragging&&(SP(W)&&W.preventDefault(),R(W,t,t===Tr.Horizontal?e:r))};function z(W,L){if(!W.current)throw new Error("Can't add element to ref object - ref isn't initialized");L&&!W.current.includes(L)&&W.current.push(L)}return Qm("mouseup",j,[f.isDragging,E]),Qm("mousemove",I,[t,f.isDragging,R,e,r]),Qm("touchend",j,[f.isDragging,E],{condition:qg}),Qm("touchmove",I,[t,f.isDragging,R,e,r],{condition:qg,passive:!qg}),A.useEffect(function(){if(!y.current)return;const W=y.current.parentElement;if(!W)return;const L=new ResizeObserver(()=>{const F=getComputedStyle(W),H=t===Tr.Horizontal?W.clientWidth:W.clientHeight;S(!!F&&!!H)});return L.observe(W),()=>{L.disconnect()}},[y.current,t]),A.useEffect(function(){if(f.isReady&&(!b.current||b.current[0].offsetParent)){if(!b.current||!x.current)throw new Error("Cannot create pairs - either variable 'childRefs' or 'gutterRefs' is undefined");u.length<=1?O(t,b.current,x.current,n):(O(t,b.current,x.current,n),k(t,b.current,x.current))}},[s,f.isReady,t,O,k,n]),w.jsx("div",Object.assign({className:`__dbk__container ${t}`,ref:y},{children:f.isReady&&u.map((W,L)=>w.jsxs(m.Fragment,{children:[w.jsx("div",Object.assign({ref:F=>z(b,F),className:"__dbk__child-wrapper "+(Lz(x,F),className:a,theme:o,draggerClassName:i,direction:t,onDragging:()=>{return $(t,F=L),void T(t,F);var F}},void 0)]},L))}),void 0)}function Ni(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const Ca="$$material";function cv(){return cv=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?yn(Tu,--ao):0,au--,Qr===10&&(au=1,ly--),Qr}function $o(){return Qr=ao2||Hh(Qr)>3?"":" "}function nY(t,e){for(;--e&&$o()&&!(Qr<48||Qr>102||Qr>57&&Qr<65||Qr>70&&Qr<97););return bf(t,Gg()+(e<6&&Za()==32&&$o()==32))}function sE(t){for(;$o();)switch(Qr){case t:return ao;case 34:case 39:t!==34&&t!==39&&sE(Qr);break;case 40:t===41&&sE(t);break;case 92:$o();break}return ao}function oY(t,e){for(;$o()&&t+Qr!==57;)if(t+Qr===84&&Za()===47)break;return"/*"+bf(e,ao-1)+"*"+sy(t===47?t:$o())}function aY(t){for(;!Hh(Za());)$o();return bf(t,ao)}function iY(t){return F9(Jg("",null,null,null,[""],t=z9(t),0,[0],t))}function Jg(t,e,r,n,o,a,i,s,l){for(var d=0,h=0,u=i,f=0,g=0,y=0,b=1,x=1,S=1,T=0,E="",$=o,k=a,O=n,M=E;x;)switch(y=T,T=$o()){case 40:if(y!=108&&yn(M,u-1)==58){iE(M+=Gt(Xg(T),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:M+=Xg(T);break;case 9:case 10:case 13:case 32:M+=rY(y);break;case 92:M+=nY(Gg()-1,7);continue;case 47:switch(Za()){case 42:case 47:eg(sY(oY($o(),Gg()),e,r),l);break;default:M+="/"}break;case 123*b:s[d++]=Va(M)*S;case 125*b:case 59:case 0:switch(T){case 0:case 125:x=0;case 59+h:S==-1&&(M=Gt(M,/\f/g,"")),g>0&&Va(M)-u&&eg(g>32?kP(M+";",n,r,u-1):kP(Gt(M," ","")+";",n,r,u-2),l);break;case 59:M+=";";default:if(eg(O=$P(M,e,r,d,h,o,s,E,$=[],k=[],u),a),T===123)if(h===0)Jg(M,e,O,O,$,a,u,s,k);else switch(f===99&&yn(M,3)===110?100:f){case 100:case 108:case 109:case 115:Jg(t,O,O,n&&eg($P(t,O,O,0,0,o,s,E,o,$=[],u),k),o,k,u,s,n?$:k);break;default:Jg(M,O,O,O,[""],k,0,s,k)}}d=h=g=0,b=S=1,E=M="",u=i;break;case 58:u=1+Va(M),g=y;default:if(b<1){if(T==123)--b;else if(T==125&&b++==0&&tY()==125)continue}switch(M+=sy(T),T*b){case 38:S=h>0?1:(M+="\f",-1);break;case 44:s[d++]=(Va(M)-1)*S,S=1;break;case 64:Za()===45&&(M+=Xg($o())),f=Za(),h=u=Va(E=M+=aY(Gg())),T++;break;case 45:y===45&&Va(M)==2&&(b=0)}}return a}function $P(t,e,r,n,o,a,i,s,l,d,h){for(var u=o-1,f=o===0?a:[""],g=pT(f),y=0,b=0,x=0;y0?f[S]+" "+T:Gt(T,/&\f/g,f[S])))&&(l[x++]=E);return cy(t,e,r,o===0?dT:s,l,d,h)}function sY(t,e,r){return cy(t,e,r,N9,sy(eY()),Wh(t,2,-2),0)}function kP(t,e,r,n){return cy(t,e,r,uT,Wh(t,0,n),Wh(t,n+1,-1),n)}function Kd(t,e){for(var r="",n=pT(t),o=0;o6)switch(yn(t,e+1)){case 109:if(yn(t,e+4)!==45)break;case 102:return Gt(t,/(.+:)(.+)-([^]+)/,"$1"+qt+"$2-$3$1"+dv+(yn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~iE(t,"stretch")?W9(Gt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(yn(t,e+1)!==115)break;case 6444:switch(yn(t,Va(t)-3-(~iE(t,"!important")&&10))){case 107:return Gt(t,":",":"+qt)+t;case 101:return Gt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qt+(yn(t,14)===45?"inline-":"")+"box$3$1"+qt+"$2$3$1"+$n+"$2box$3")+t}break;case 5936:switch(yn(t,e+11)){case 114:return qt+t+$n+Gt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return qt+t+$n+Gt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return qt+t+$n+Gt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return qt+t+$n+t+t}return t}var gY=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case uT:e.return=W9(e.value,e.length);break;case R9:return Kd([Op(e,{value:Gt(e.value,"@","@"+qt)})],o);case dT:if(e.length)return QJ(e.props,function(a){switch(ZJ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kd([Op(e,{props:[Gt(a,/:(read-\w+)/,":"+dv+"$1")]})],o);case"::placeholder":return Kd([Op(e,{props:[Gt(a,/:(plac\w+)/,":"+qt+"input-$1")]}),Op(e,{props:[Gt(a,/:(plac\w+)/,":"+dv+"$1")]}),Op(e,{props:[Gt(a,/:(plac\w+)/,$n+"input-$1")]})],o)}return""})}},vY=[gY],H9=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var x=b.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=e.stylisPlugins||vY,a={},i,s=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var x=b.getAttribute("data-emotion").split(" "),S=1;S=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var SY={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},CY=!1,$Y=/[A-Z]|^ms/g,kY=/_EMO_([^_]+?)_([^]*?)_EMO_/g,V9=function(e){return e.charCodeAt(1)===45},AP=function(e){return e!=null&&typeof e!="boolean"},wb=B9(function(t){return V9(t)?t:t.replace($Y,"-$&").toLowerCase()}),IP=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(kY,function(n,o,a){return qa={name:o,styles:a,next:qa},o})}return SY[e]!==1&&!V9(e)&&typeof r=="number"&&r!==0?r+"px":r},EY="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Uh(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return qa={name:o.name,styles:o.styles,next:qa},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)qa={name:i.name,styles:i.styles,next:qa},i=i.next;var s=a.styles+";";return s}return TY(t,e,r)}case"function":{if(t!==void 0){var l=qa,d=r(t);return qa=l,Uh(t,e,d)}break}}var h=r;if(e==null)return h;var u=e[h];return u!==void 0?u:h}function TY(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o96?FY:BY},jP=function(e,r,n){var o;if(r){var a=r.shouldForwardProp;o=e.__emotion_forwardProp&&a?function(i){return e.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},WY=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return hT(r,n,o),G9(function(){return fT(r,n,o)}),null},HY=function t(e,r){var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,a,i;r!==void 0&&(a=r.label,i=r.target);var s=jP(e,r,n),l=s||RP(o),d=!l("as");return function(){var h=arguments,u=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&u.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)u.push.apply(u,h);else{var f=h[0];u.push(f[0]);for(var g=h.length,y=1;y{const r=H9(t);return r.sheet=new e({key:r.key,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy,prepend:r.sheet.prepend,insertionPoint:r.sheet.insertionPoint}),r};let dE;if(typeof document=="object"){let t=document.querySelector('[name="emotion-insertion-point"]');if(!t){t=document.createElement("meta"),t.setAttribute("name","emotion-insertion-point"),t.setAttribute("content","");const r=document.querySelector("head");r&&r.prepend(t)}class e extends P9{insert(n,o){return this.key&&this.key.endsWith("global")&&(this.before=t),super.insert(n,o)}}dE=JY({key:"css",insertionPoint:t},e)}function uE(t){const{injectFirst:e,children:r}=t;return e&&dE?w.jsx(AY,{value:dE,children:r}):r}function YY(t){return t==null||Object.keys(t).length===0}function J9(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?o=>e(YY(o)?r:o):e;return w.jsx(RY,{styles:n})}/** - * @mui/styled-engine v6.3.0 + */var TP;function yY(){if(TP)return Yt;TP=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,S=t?Symbol.for("react.responder"):60118,T=t?Symbol.for("react.scope"):60119;function E(k){if(typeof k=="object"&&k!==null){var O=k.$$typeof;switch(O){case e:switch(k=k.type,k){case l:case d:case n:case a:case o:case u:return k;default:switch(k=k&&k.$$typeof,k){case s:case h:case y:case g:case i:return k;default:return O}}case r:return O}}}function $(k){return E(k)===d}return Yt.AsyncMode=l,Yt.ConcurrentMode=d,Yt.ContextConsumer=s,Yt.ContextProvider=i,Yt.Element=e,Yt.ForwardRef=h,Yt.Fragment=n,Yt.Lazy=y,Yt.Memo=g,Yt.Portal=r,Yt.Profiler=a,Yt.StrictMode=o,Yt.Suspense=u,Yt.isAsyncMode=function(k){return $(k)||E(k)===l},Yt.isConcurrentMode=$,Yt.isContextConsumer=function(k){return E(k)===s},Yt.isContextProvider=function(k){return E(k)===i},Yt.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===e},Yt.isForwardRef=function(k){return E(k)===h},Yt.isFragment=function(k){return E(k)===n},Yt.isLazy=function(k){return E(k)===y},Yt.isMemo=function(k){return E(k)===g},Yt.isPortal=function(k){return E(k)===r},Yt.isProfiler=function(k){return E(k)===a},Yt.isStrictMode=function(k){return E(k)===o},Yt.isSuspense=function(k){return E(k)===u},Yt.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===n||k===d||k===a||k===o||k===u||k===f||typeof k=="object"&&k!==null&&(k.$$typeof===y||k.$$typeof===g||k.$$typeof===i||k.$$typeof===s||k.$$typeof===h||k.$$typeof===x||k.$$typeof===S||k.$$typeof===T||k.$$typeof===b)},Yt.typeOf=E,Yt}var OP;function _Y(){return OP||(OP=1,_b.exports=yY()),_b.exports}var bb,DP;function bY(){if(DP)return bb;DP=1;var t=_Y(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]=n,a[t.Memo]=o;function i(y){return t.isMemo(y)?o:a[y.$$typeof]||e}var s=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,f=Object.prototype;function g(y,b,x){if(typeof b!="string"){if(f){var S=u(b);S&&S!==f&&g(y,S,x)}var T=l(b);d&&(T=T.concat(d(b)));for(var E=i(y),$=i(b),k=0;k=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var SY={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},CY=!1,$Y=/[A-Z]|^ms/g,kY=/_EMO_([^_]+?)_([^]*?)_EMO_/g,V9=function(e){return e.charCodeAt(1)===45},AP=function(e){return e!=null&&typeof e!="boolean"},wb=B9(function(t){return V9(t)?t:t.replace($Y,"-$&").toLowerCase()}),IP=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(kY,function(n,o,a){return qa={name:o,styles:a,next:qa},o})}return SY[e]!==1&&!V9(e)&&typeof r=="number"&&r!==0?r+"px":r},EY="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Uh(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return qa={name:o.name,styles:o.styles,next:qa},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)qa={name:i.name,styles:i.styles,next:qa},i=i.next;var s=a.styles+";";return s}return TY(t,e,r)}case"function":{if(t!==void 0){var l=qa,d=r(t);return qa=l,Uh(t,e,d)}break}}var h=r;if(e==null)return h;var u=e[h];return u!==void 0?u:h}function TY(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o96?FY:BY},jP=function(e,r,n){var o;if(r){var a=r.shouldForwardProp;o=e.__emotion_forwardProp&&a?function(i){return e.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},WY=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return hT(r,n,o),G9(function(){return fT(r,n,o)}),null},HY=function t(e,r){var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,a,i;r!==void 0&&(a=r.label,i=r.target);var s=jP(e,r,n),l=s||RP(o),d=!l("as");return function(){var h=arguments,u=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&u.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)u.push.apply(u,h);else{var f=h[0];u.push(f[0]);for(var g=h.length,y=1;y{const r=H9(t);return r.sheet=new e({key:r.key,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy,prepend:r.sheet.prepend,insertionPoint:r.sheet.insertionPoint}),r};let dE;if(typeof document=="object"){let t=document.querySelector('[name="emotion-insertion-point"]');if(!t){t=document.createElement("meta"),t.setAttribute("name","emotion-insertion-point"),t.setAttribute("content","");const r=document.querySelector("head");r&&r.prepend(t)}class e extends P9{insert(n,o){return this.key&&this.key.endsWith("global")&&(this.before=t),super.insert(n,o)}}dE=JY({key:"css",insertionPoint:t},e)}function uE(t){const{injectFirst:e,children:r}=t;return e&&dE?w.jsx(AY,{value:dE,children:r}):r}function YY(t){return t==null||Object.keys(t).length===0}function J9(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?o=>e(YY(o)?r:o):e;return w.jsx(RY,{styles:n})}/** + * @mui/styled-engine v6.3.1 * * @license MIT * This source code is licensed under the MIT license found in the @@ -194,14 +194,14 @@ theme.breakpoints = createBreakpoints(theme.breakpoints || {}); theme.transitions = createTransitions(theme.transitions || {}); export default theme;`}function gE(t={},...e){const{breakpoints:r,mixins:n={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,...d}=t;if(t.vars)throw new Error(Ni(20));const h=kT(a),u=yy(t);let f=On(u,{mixins:hQ(u.breakpoints,n),palette:h,shadows:yQ.slice(),typography:w7(h,s),transitions:xQ(i),zIndex:{...SQ}});return f=On(f,d),f=e.reduce((g,y)=>On(g,y),f),f.unstable_sxConfig={...$f,...d==null?void 0:d.unstable_sxConfig},f.unstable_sx=function(y){return Is({sx:y,theme:this})},f.toRuntimeSource=x7,f}function vE(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const $Q=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=vE(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function S7(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function C7(t){return t==="dark"?$Q:[]}function kQ(t){const{palette:e={mode:"light"},opacity:r,overlays:n,...o}=t,a=kT(e);return{palette:a,opacity:{...S7(a.mode),...r},overlays:n||C7(a.mode),...o}}function EQ(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const TQ=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],OQ=t=>(e,r)=>{const n=t.rootSelector||":root",o=t.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const i={};return TQ(t.cssVarPrefix).forEach(s=>{i[s]=r[s],delete r[s]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:a?{[a.replace("%s",e)]:i,[`${n}, ${a.replace("%s",e)}`]:r}:{[n]:{...r,...i}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(e))}`}else if(e){if(a==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(a)return a.replace("%s",String(e))}return n};function DQ(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function se(t,e,r){!t[e]&&r&&(t[e]=r)}function rh(t){return typeof t!="string"||!t.startsWith("hsl")?t:s7(t)}function wi(t,e){`${e}Channel`in t||(t[`${e}Channel`]=th(rh(t[e]),`MUI: Can't create \`palette.${e}Channel\` because \`palette.${e}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). -To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function AQ(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Fa=t=>{try{return t()}catch{}},IQ=(t="mui")=>zZ(t);function Tb(t,e,r,n){if(!e)return;e=e===!0?{}:e;const o=n==="dark"?"dark":"light";if(!r){t[n]=kQ({...e,palette:{mode:o,...e==null?void 0:e.palette}});return}const{palette:a,...i}=gE({...r,palette:{mode:o,...e==null?void 0:e.palette}});return t[n]={...e,palette:a,opacity:{...S7(o),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||C7(o)},i}function MQ(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=EQ,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...d}=t,h=Object.keys(r)[0],u=n||(r.light&&h!=="light"?"light":h),f=IQ(a),{[u]:g,light:y,dark:b,...x}=r,S={...x};let T=g;if((u==="dark"&&!("dark"in r)||u==="light"&&!("light"in r))&&(T=!0),!T)throw new Error(Ni(21,u));const E=Tb(S,T,d,u);y&&!S.light&&Tb(S,y,void 0,"light"),b&&!S.dark&&Tb(S,b,void 0,"dark");let $={defaultColorScheme:u,...E,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:S,font:{...pQ(E.typography),...E.font},spacing:AQ(d.spacing)};Object.keys($.colorSchemes).forEach(j=>{const I=$.colorSchemes[j].palette,z=W=>{const L=W.split("-"),F=L[1],H=L[2];return f(W,I[F][H])};if(I.mode==="light"&&(se(I.common,"background","#fff"),se(I.common,"onBackground","#000")),I.mode==="dark"&&(se(I.common,"background","#000"),se(I.common,"onBackground","#fff")),DQ(I,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),I.mode==="light"){se(I.Alert,"errorColor",ar(I.error.light,.6)),se(I.Alert,"infoColor",ar(I.info.light,.6)),se(I.Alert,"successColor",ar(I.success.light,.6)),se(I.Alert,"warningColor",ar(I.warning.light,.6)),se(I.Alert,"errorFilledBg",z("palette-error-main")),se(I.Alert,"infoFilledBg",z("palette-info-main")),se(I.Alert,"successFilledBg",z("palette-success-main")),se(I.Alert,"warningFilledBg",z("palette-warning-main")),se(I.Alert,"errorFilledColor",Fa(()=>I.getContrastText(I.error.main))),se(I.Alert,"infoFilledColor",Fa(()=>I.getContrastText(I.info.main))),se(I.Alert,"successFilledColor",Fa(()=>I.getContrastText(I.success.main))),se(I.Alert,"warningFilledColor",Fa(()=>I.getContrastText(I.warning.main))),se(I.Alert,"errorStandardBg",ir(I.error.light,.9)),se(I.Alert,"infoStandardBg",ir(I.info.light,.9)),se(I.Alert,"successStandardBg",ir(I.success.light,.9)),se(I.Alert,"warningStandardBg",ir(I.warning.light,.9)),se(I.Alert,"errorIconColor",z("palette-error-main")),se(I.Alert,"infoIconColor",z("palette-info-main")),se(I.Alert,"successIconColor",z("palette-success-main")),se(I.Alert,"warningIconColor",z("palette-warning-main")),se(I.AppBar,"defaultBg",z("palette-grey-100")),se(I.Avatar,"defaultBg",z("palette-grey-400")),se(I.Button,"inheritContainedBg",z("palette-grey-300")),se(I.Button,"inheritContainedHoverBg",z("palette-grey-A100")),se(I.Chip,"defaultBorder",z("palette-grey-400")),se(I.Chip,"defaultAvatarColor",z("palette-grey-700")),se(I.Chip,"defaultIconColor",z("palette-grey-700")),se(I.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),se(I.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),se(I.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),se(I.LinearProgress,"primaryBg",ir(I.primary.main,.62)),se(I.LinearProgress,"secondaryBg",ir(I.secondary.main,.62)),se(I.LinearProgress,"errorBg",ir(I.error.main,.62)),se(I.LinearProgress,"infoBg",ir(I.info.main,.62)),se(I.LinearProgress,"successBg",ir(I.success.main,.62)),se(I.LinearProgress,"warningBg",ir(I.warning.main,.62)),se(I.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.11)`),se(I.Slider,"primaryTrack",ir(I.primary.main,.62)),se(I.Slider,"secondaryTrack",ir(I.secondary.main,.62)),se(I.Slider,"errorTrack",ir(I.error.main,.62)),se(I.Slider,"infoTrack",ir(I.info.main,.62)),se(I.Slider,"successTrack",ir(I.success.main,.62)),se(I.Slider,"warningTrack",ir(I.warning.main,.62));const W=rg(I.background.default,.8);se(I.SnackbarContent,"bg",W),se(I.SnackbarContent,"color",Fa(()=>I.getContrastText(W))),se(I.SpeedDialAction,"fabHoverBg",rg(I.background.paper,.15)),se(I.StepConnector,"border",z("palette-grey-400")),se(I.StepContent,"border",z("palette-grey-400")),se(I.Switch,"defaultColor",z("palette-common-white")),se(I.Switch,"defaultDisabledColor",z("palette-grey-100")),se(I.Switch,"primaryDisabledColor",ir(I.primary.main,.62)),se(I.Switch,"secondaryDisabledColor",ir(I.secondary.main,.62)),se(I.Switch,"errorDisabledColor",ir(I.error.main,.62)),se(I.Switch,"infoDisabledColor",ir(I.info.main,.62)),se(I.Switch,"successDisabledColor",ir(I.success.main,.62)),se(I.Switch,"warningDisabledColor",ir(I.warning.main,.62)),se(I.TableCell,"border",ir(tg(I.divider,1),.88)),se(I.Tooltip,"bg",tg(I.grey[700],.92))}if(I.mode==="dark"){se(I.Alert,"errorColor",ir(I.error.light,.6)),se(I.Alert,"infoColor",ir(I.info.light,.6)),se(I.Alert,"successColor",ir(I.success.light,.6)),se(I.Alert,"warningColor",ir(I.warning.light,.6)),se(I.Alert,"errorFilledBg",z("palette-error-dark")),se(I.Alert,"infoFilledBg",z("palette-info-dark")),se(I.Alert,"successFilledBg",z("palette-success-dark")),se(I.Alert,"warningFilledBg",z("palette-warning-dark")),se(I.Alert,"errorFilledColor",Fa(()=>I.getContrastText(I.error.dark))),se(I.Alert,"infoFilledColor",Fa(()=>I.getContrastText(I.info.dark))),se(I.Alert,"successFilledColor",Fa(()=>I.getContrastText(I.success.dark))),se(I.Alert,"warningFilledColor",Fa(()=>I.getContrastText(I.warning.dark))),se(I.Alert,"errorStandardBg",ar(I.error.light,.9)),se(I.Alert,"infoStandardBg",ar(I.info.light,.9)),se(I.Alert,"successStandardBg",ar(I.success.light,.9)),se(I.Alert,"warningStandardBg",ar(I.warning.light,.9)),se(I.Alert,"errorIconColor",z("palette-error-main")),se(I.Alert,"infoIconColor",z("palette-info-main")),se(I.Alert,"successIconColor",z("palette-success-main")),se(I.Alert,"warningIconColor",z("palette-warning-main")),se(I.AppBar,"defaultBg",z("palette-grey-900")),se(I.AppBar,"darkBg",z("palette-background-paper")),se(I.AppBar,"darkColor",z("palette-text-primary")),se(I.Avatar,"defaultBg",z("palette-grey-600")),se(I.Button,"inheritContainedBg",z("palette-grey-800")),se(I.Button,"inheritContainedHoverBg",z("palette-grey-700")),se(I.Chip,"defaultBorder",z("palette-grey-700")),se(I.Chip,"defaultAvatarColor",z("palette-grey-300")),se(I.Chip,"defaultIconColor",z("palette-grey-300")),se(I.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),se(I.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),se(I.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),se(I.LinearProgress,"primaryBg",ar(I.primary.main,.5)),se(I.LinearProgress,"secondaryBg",ar(I.secondary.main,.5)),se(I.LinearProgress,"errorBg",ar(I.error.main,.5)),se(I.LinearProgress,"infoBg",ar(I.info.main,.5)),se(I.LinearProgress,"successBg",ar(I.success.main,.5)),se(I.LinearProgress,"warningBg",ar(I.warning.main,.5)),se(I.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.13)`),se(I.Slider,"primaryTrack",ar(I.primary.main,.5)),se(I.Slider,"secondaryTrack",ar(I.secondary.main,.5)),se(I.Slider,"errorTrack",ar(I.error.main,.5)),se(I.Slider,"infoTrack",ar(I.info.main,.5)),se(I.Slider,"successTrack",ar(I.success.main,.5)),se(I.Slider,"warningTrack",ar(I.warning.main,.5));const W=rg(I.background.default,.98);se(I.SnackbarContent,"bg",W),se(I.SnackbarContent,"color",Fa(()=>I.getContrastText(W))),se(I.SpeedDialAction,"fabHoverBg",rg(I.background.paper,.15)),se(I.StepConnector,"border",z("palette-grey-600")),se(I.StepContent,"border",z("palette-grey-600")),se(I.Switch,"defaultColor",z("palette-grey-300")),se(I.Switch,"defaultDisabledColor",z("palette-grey-600")),se(I.Switch,"primaryDisabledColor",ar(I.primary.main,.55)),se(I.Switch,"secondaryDisabledColor",ar(I.secondary.main,.55)),se(I.Switch,"errorDisabledColor",ar(I.error.main,.55)),se(I.Switch,"infoDisabledColor",ar(I.info.main,.55)),se(I.Switch,"successDisabledColor",ar(I.success.main,.55)),se(I.Switch,"warningDisabledColor",ar(I.warning.main,.55)),se(I.TableCell,"border",ar(tg(I.divider,1),.68)),se(I.Tooltip,"bg",tg(I.grey[700],.92))}wi(I.background,"default"),wi(I.background,"paper"),wi(I.common,"background"),wi(I.common,"onBackground"),wi(I,"divider"),Object.keys(I).forEach(W=>{const L=I[W];W!=="tonalOffset"&&L&&typeof L=="object"&&(L.main&&se(I[W],"mainChannel",th(rh(L.main))),L.light&&se(I[W],"lightChannel",th(rh(L.light))),L.dark&&se(I[W],"darkChannel",th(rh(L.dark))),L.contrastText&&se(I[W],"contrastTextChannel",th(rh(L.contrastText))),W==="text"&&(wi(I[W],"primary"),wi(I[W],"secondary")),W==="action"&&(L.active&&wi(I[W],"active"),L.selected&&wi(I[W],"selected")))})}),$=e.reduce((j,I)=>On(j,I),$);const k={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:OQ($)},{vars:O,generateThemeVars:M,generateStyleSheets:R}=WZ($,k);return $.vars=O,Object.entries($.colorSchemes[$.defaultColorScheme]).forEach(([j,I])=>{$[j]=I}),$.generateThemeVars=M,$.generateStyleSheets=R,$.generateSpacing=function(){return Q9(d.spacing,_T(this))},$.getColorSchemeSelector=HZ(s),$.spacing=$.generateSpacing(),$.shouldSkipGeneratingVar=i,$.unstable_sxConfig={...$f,...d==null?void 0:d.unstable_sxConfig},$.unstable_sx=function(I){return Is({sx:I,theme:this})},$.toRuntimeSource=x7,$}function sN(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:kT({...r===!0?{}:r.palette,mode:e})})}function Xh(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...i}=t,s=a||"light",l=o==null?void 0:o[s],d={...o,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return gE(t,...e);let h=r;"palette"in t||d[s]&&(d[s]!==!0?h=d[s].palette:s==="dark"&&(h={mode:"dark"}));const u=gE({...t,palette:h},...e);return u.defaultColorScheme=s,u.colorSchemes=d,u.palette.mode==="light"&&(u.colorSchemes.light={...d.light!==!0&&d.light,palette:u.palette},sN(u,"dark",d.dark)),u.palette.mode==="dark"&&(u.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:u.palette},sN(u,"light",d.light)),u}return!r&&!("light"in d)&&s==="light"&&(d.light=!0),MQ({...i,colorSchemes:d,defaultColorScheme:s,...typeof n!="boolean"&&n},...e)}const ET=Xh();function ai(){const t=kf(ET);return t[Ca]||t}function $y(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const on=t=>$y(t)&&t!=="classes",de=o7({themeId:Ca,defaultTheme:ET,rootShouldForwardProp:on});function lN({theme:t,...e}){const r=Ca in t?t[Ca]:void 0;return w.jsx(v7,{...e,themeId:r?Ca:void 0,theme:r||t})}const ng={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:PQ,useColorScheme:Tnr,getInitColorSchemeScript:Onr}=LZ({themeId:Ca,theme:()=>Xh({cssVariables:!0}),colorSchemeStorageKey:ng.colorSchemeStorageKey,modeStorageKey:ng.modeStorageKey,defaultColorScheme:{light:ng.defaultLightColorScheme,dark:ng.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:w7(t.palette,t.typography)};return e.unstable_sx=function(n){return Is({sx:n,theme:this})},e}}),NQ=PQ;function yE({theme:t,...e}){return typeof t=="function"?w.jsx(lN,{theme:t,...e}):"colorSchemes"in(Ca in t?t[Ca]:t)?w.jsx(NQ,{theme:t,...e}):w.jsx(lN,{theme:t,...e})}function _E(t,e){return _E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},_E(t,e)}function ky(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,_E(t,e)}function De(){return De=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Qn(1));return r(TT)(t,e)}if(typeof t!="function")throw new Error(Qn(2));var o=t,a=e,i=[],s=i,l=!1;function d(){s===i&&(s=i.slice())}function h(){if(l)throw new Error(Qn(3));return a}function u(b){if(typeof b!="function")throw new Error(Qn(4));if(l)throw new Error(Qn(5));var x=!0;return d(),s.push(b),function(){if(x){if(l)throw new Error(Qn(6));x=!1,d();var T=s.indexOf(b);s.splice(T,1),i=null}}}function f(b){if(!jQ(b))throw new Error(Qn(7));if(typeof b.type>"u")throw new Error(Qn(8));if(l)throw new Error(Qn(9));try{l=!0,a=o(a,b)}finally{l=!1}for(var x=i=s,S=0;S{try{return t()}catch{}},IQ=(t="mui")=>zZ(t);function Tb(t,e,r,n){if(!e)return;e=e===!0?{}:e;const o=n==="dark"?"dark":"light";if(!r){t[n]=kQ({...e,palette:{mode:o,...e==null?void 0:e.palette}});return}const{palette:a,...i}=gE({...r,palette:{mode:o,...e==null?void 0:e.palette}});return t[n]={...e,palette:a,opacity:{...S7(o),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||C7(o)},i}function MQ(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=EQ,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...d}=t,h=Object.keys(r)[0],u=n||(r.light&&h!=="light"?"light":h),f=IQ(a),{[u]:g,light:y,dark:b,...x}=r,S={...x};let T=g;if((u==="dark"&&!("dark"in r)||u==="light"&&!("light"in r))&&(T=!0),!T)throw new Error(Ni(21,u));const E=Tb(S,T,d,u);y&&!S.light&&Tb(S,y,void 0,"light"),b&&!S.dark&&Tb(S,b,void 0,"dark");let $={defaultColorScheme:u,...E,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:S,font:{...pQ(E.typography),...E.font},spacing:AQ(d.spacing)};Object.keys($.colorSchemes).forEach(j=>{const I=$.colorSchemes[j].palette,z=W=>{const L=W.split("-"),F=L[1],H=L[2];return f(W,I[F][H])};if(I.mode==="light"&&(se(I.common,"background","#fff"),se(I.common,"onBackground","#000")),I.mode==="dark"&&(se(I.common,"background","#000"),se(I.common,"onBackground","#fff")),DQ(I,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),I.mode==="light"){se(I.Alert,"errorColor",ar(I.error.light,.6)),se(I.Alert,"infoColor",ar(I.info.light,.6)),se(I.Alert,"successColor",ar(I.success.light,.6)),se(I.Alert,"warningColor",ar(I.warning.light,.6)),se(I.Alert,"errorFilledBg",z("palette-error-main")),se(I.Alert,"infoFilledBg",z("palette-info-main")),se(I.Alert,"successFilledBg",z("palette-success-main")),se(I.Alert,"warningFilledBg",z("palette-warning-main")),se(I.Alert,"errorFilledColor",Fa(()=>I.getContrastText(I.error.main))),se(I.Alert,"infoFilledColor",Fa(()=>I.getContrastText(I.info.main))),se(I.Alert,"successFilledColor",Fa(()=>I.getContrastText(I.success.main))),se(I.Alert,"warningFilledColor",Fa(()=>I.getContrastText(I.warning.main))),se(I.Alert,"errorStandardBg",ir(I.error.light,.9)),se(I.Alert,"infoStandardBg",ir(I.info.light,.9)),se(I.Alert,"successStandardBg",ir(I.success.light,.9)),se(I.Alert,"warningStandardBg",ir(I.warning.light,.9)),se(I.Alert,"errorIconColor",z("palette-error-main")),se(I.Alert,"infoIconColor",z("palette-info-main")),se(I.Alert,"successIconColor",z("palette-success-main")),se(I.Alert,"warningIconColor",z("palette-warning-main")),se(I.AppBar,"defaultBg",z("palette-grey-100")),se(I.Avatar,"defaultBg",z("palette-grey-400")),se(I.Button,"inheritContainedBg",z("palette-grey-300")),se(I.Button,"inheritContainedHoverBg",z("palette-grey-A100")),se(I.Chip,"defaultBorder",z("palette-grey-400")),se(I.Chip,"defaultAvatarColor",z("palette-grey-700")),se(I.Chip,"defaultIconColor",z("palette-grey-700")),se(I.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),se(I.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),se(I.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),se(I.LinearProgress,"primaryBg",ir(I.primary.main,.62)),se(I.LinearProgress,"secondaryBg",ir(I.secondary.main,.62)),se(I.LinearProgress,"errorBg",ir(I.error.main,.62)),se(I.LinearProgress,"infoBg",ir(I.info.main,.62)),se(I.LinearProgress,"successBg",ir(I.success.main,.62)),se(I.LinearProgress,"warningBg",ir(I.warning.main,.62)),se(I.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.11)`),se(I.Slider,"primaryTrack",ir(I.primary.main,.62)),se(I.Slider,"secondaryTrack",ir(I.secondary.main,.62)),se(I.Slider,"errorTrack",ir(I.error.main,.62)),se(I.Slider,"infoTrack",ir(I.info.main,.62)),se(I.Slider,"successTrack",ir(I.success.main,.62)),se(I.Slider,"warningTrack",ir(I.warning.main,.62));const W=rg(I.background.default,.8);se(I.SnackbarContent,"bg",W),se(I.SnackbarContent,"color",Fa(()=>I.getContrastText(W))),se(I.SpeedDialAction,"fabHoverBg",rg(I.background.paper,.15)),se(I.StepConnector,"border",z("palette-grey-400")),se(I.StepContent,"border",z("palette-grey-400")),se(I.Switch,"defaultColor",z("palette-common-white")),se(I.Switch,"defaultDisabledColor",z("palette-grey-100")),se(I.Switch,"primaryDisabledColor",ir(I.primary.main,.62)),se(I.Switch,"secondaryDisabledColor",ir(I.secondary.main,.62)),se(I.Switch,"errorDisabledColor",ir(I.error.main,.62)),se(I.Switch,"infoDisabledColor",ir(I.info.main,.62)),se(I.Switch,"successDisabledColor",ir(I.success.main,.62)),se(I.Switch,"warningDisabledColor",ir(I.warning.main,.62)),se(I.TableCell,"border",ir(tg(I.divider,1),.88)),se(I.Tooltip,"bg",tg(I.grey[700],.92))}if(I.mode==="dark"){se(I.Alert,"errorColor",ir(I.error.light,.6)),se(I.Alert,"infoColor",ir(I.info.light,.6)),se(I.Alert,"successColor",ir(I.success.light,.6)),se(I.Alert,"warningColor",ir(I.warning.light,.6)),se(I.Alert,"errorFilledBg",z("palette-error-dark")),se(I.Alert,"infoFilledBg",z("palette-info-dark")),se(I.Alert,"successFilledBg",z("palette-success-dark")),se(I.Alert,"warningFilledBg",z("palette-warning-dark")),se(I.Alert,"errorFilledColor",Fa(()=>I.getContrastText(I.error.dark))),se(I.Alert,"infoFilledColor",Fa(()=>I.getContrastText(I.info.dark))),se(I.Alert,"successFilledColor",Fa(()=>I.getContrastText(I.success.dark))),se(I.Alert,"warningFilledColor",Fa(()=>I.getContrastText(I.warning.dark))),se(I.Alert,"errorStandardBg",ar(I.error.light,.9)),se(I.Alert,"infoStandardBg",ar(I.info.light,.9)),se(I.Alert,"successStandardBg",ar(I.success.light,.9)),se(I.Alert,"warningStandardBg",ar(I.warning.light,.9)),se(I.Alert,"errorIconColor",z("palette-error-main")),se(I.Alert,"infoIconColor",z("palette-info-main")),se(I.Alert,"successIconColor",z("palette-success-main")),se(I.Alert,"warningIconColor",z("palette-warning-main")),se(I.AppBar,"defaultBg",z("palette-grey-900")),se(I.AppBar,"darkBg",z("palette-background-paper")),se(I.AppBar,"darkColor",z("palette-text-primary")),se(I.Avatar,"defaultBg",z("palette-grey-600")),se(I.Button,"inheritContainedBg",z("palette-grey-800")),se(I.Button,"inheritContainedHoverBg",z("palette-grey-700")),se(I.Chip,"defaultBorder",z("palette-grey-700")),se(I.Chip,"defaultAvatarColor",z("palette-grey-300")),se(I.Chip,"defaultIconColor",z("palette-grey-300")),se(I.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),se(I.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),se(I.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),se(I.LinearProgress,"primaryBg",ar(I.primary.main,.5)),se(I.LinearProgress,"secondaryBg",ar(I.secondary.main,.5)),se(I.LinearProgress,"errorBg",ar(I.error.main,.5)),se(I.LinearProgress,"infoBg",ar(I.info.main,.5)),se(I.LinearProgress,"successBg",ar(I.success.main,.5)),se(I.LinearProgress,"warningBg",ar(I.warning.main,.5)),se(I.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.13)`),se(I.Slider,"primaryTrack",ar(I.primary.main,.5)),se(I.Slider,"secondaryTrack",ar(I.secondary.main,.5)),se(I.Slider,"errorTrack",ar(I.error.main,.5)),se(I.Slider,"infoTrack",ar(I.info.main,.5)),se(I.Slider,"successTrack",ar(I.success.main,.5)),se(I.Slider,"warningTrack",ar(I.warning.main,.5));const W=rg(I.background.default,.98);se(I.SnackbarContent,"bg",W),se(I.SnackbarContent,"color",Fa(()=>I.getContrastText(W))),se(I.SpeedDialAction,"fabHoverBg",rg(I.background.paper,.15)),se(I.StepConnector,"border",z("palette-grey-600")),se(I.StepContent,"border",z("palette-grey-600")),se(I.Switch,"defaultColor",z("palette-grey-300")),se(I.Switch,"defaultDisabledColor",z("palette-grey-600")),se(I.Switch,"primaryDisabledColor",ar(I.primary.main,.55)),se(I.Switch,"secondaryDisabledColor",ar(I.secondary.main,.55)),se(I.Switch,"errorDisabledColor",ar(I.error.main,.55)),se(I.Switch,"infoDisabledColor",ar(I.info.main,.55)),se(I.Switch,"successDisabledColor",ar(I.success.main,.55)),se(I.Switch,"warningDisabledColor",ar(I.warning.main,.55)),se(I.TableCell,"border",ar(tg(I.divider,1),.68)),se(I.Tooltip,"bg",tg(I.grey[700],.92))}wi(I.background,"default"),wi(I.background,"paper"),wi(I.common,"background"),wi(I.common,"onBackground"),wi(I,"divider"),Object.keys(I).forEach(W=>{const L=I[W];W!=="tonalOffset"&&L&&typeof L=="object"&&(L.main&&se(I[W],"mainChannel",th(rh(L.main))),L.light&&se(I[W],"lightChannel",th(rh(L.light))),L.dark&&se(I[W],"darkChannel",th(rh(L.dark))),L.contrastText&&se(I[W],"contrastTextChannel",th(rh(L.contrastText))),W==="text"&&(wi(I[W],"primary"),wi(I[W],"secondary")),W==="action"&&(L.active&&wi(I[W],"active"),L.selected&&wi(I[W],"selected")))})}),$=e.reduce((j,I)=>On(j,I),$);const k={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:OQ($)},{vars:O,generateThemeVars:M,generateStyleSheets:R}=WZ($,k);return $.vars=O,Object.entries($.colorSchemes[$.defaultColorScheme]).forEach(([j,I])=>{$[j]=I}),$.generateThemeVars=M,$.generateStyleSheets=R,$.generateSpacing=function(){return Q9(d.spacing,_T(this))},$.getColorSchemeSelector=HZ(s),$.spacing=$.generateSpacing(),$.shouldSkipGeneratingVar=i,$.unstable_sxConfig={...$f,...d==null?void 0:d.unstable_sxConfig},$.unstable_sx=function(I){return Is({sx:I,theme:this})},$.toRuntimeSource=x7,$}function sN(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:kT({...r===!0?{}:r.palette,mode:e})})}function Xh(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...i}=t,s=a||"light",l=o==null?void 0:o[s],d={...o,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return gE(t,...e);let h=r;"palette"in t||d[s]&&(d[s]!==!0?h=d[s].palette:s==="dark"&&(h={mode:"dark"}));const u=gE({...t,palette:h},...e);return u.defaultColorScheme=s,u.colorSchemes=d,u.palette.mode==="light"&&(u.colorSchemes.light={...d.light!==!0&&d.light,palette:u.palette},sN(u,"dark",d.dark)),u.palette.mode==="dark"&&(u.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:u.palette},sN(u,"light",d.light)),u}return!r&&!("light"in d)&&s==="light"&&(d.light=!0),MQ({...i,colorSchemes:d,defaultColorScheme:s,...typeof n!="boolean"&&n},...e)}const ET=Xh();function ai(){const t=kf(ET);return t[Ca]||t}function $y(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const on=t=>$y(t)&&t!=="classes",de=o7({themeId:Ca,defaultTheme:ET,rootShouldForwardProp:on});function lN({theme:t,...e}){const r=Ca in t?t[Ca]:void 0;return w.jsx(v7,{...e,themeId:r?Ca:void 0,theme:r||t})}const ng={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:PQ,useColorScheme:Tnr,getInitColorSchemeScript:Onr}=LZ({themeId:Ca,theme:()=>Xh({cssVariables:!0}),colorSchemeStorageKey:ng.colorSchemeStorageKey,modeStorageKey:ng.modeStorageKey,defaultColorScheme:{light:ng.defaultLightColorScheme,dark:ng.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:w7(t.palette,t.typography)};return e.unstable_sx=function(n){return Is({sx:n,theme:this})},e}}),NQ=PQ;function yE({theme:t,...e}){return typeof t=="function"?w.jsx(lN,{theme:t,...e}):"colorSchemes"in(Ca in t?t[Ca]:t)?w.jsx(NQ,{theme:t,...e}):w.jsx(lN,{theme:t,...e})}function _E(t,e){return _E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},_E(t,e)}function ky(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,_E(t,e)}function De(){return De=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Qn(1));return r(TT)(t,e)}if(typeof t!="function")throw new Error(Qn(2));var o=t,a=e,i=[],s=i,l=!1;function d(){s===i&&(s=i.slice())}function h(){if(l)throw new Error(Qn(3));return a}function u(b){if(typeof b!="function")throw new Error(Qn(4));if(l)throw new Error(Qn(5));var x=!0;return d(),s.push(b),function(){if(x){if(l)throw new Error(Qn(6));x=!1,d();var T=s.indexOf(b);s.splice(T,1),i=null}}}function f(b){if(!jQ(b))throw new Error(Qn(7));if(typeof b.type>"u")throw new Error(Qn(8));if(l)throw new Error(Qn(9));try{l=!0,a=o(a,b)}finally{l=!1}for(var x=i=s,S=0;S=0;n--){var o=e[n](t);if(o)return o}return function(a,i){throw new Error("Invalid value of type "+typeof t+" for "+r+" argument when connecting component "+i.wrappedComponentName+".")}}function $ee(t,e){return t===e}function kee(t){var e=t===void 0?{}:t,r=e.connectHOC,n=r===void 0?iee:r,o=e.mapStateToPropsFactories,a=o===void 0?fee:o,i=e.mapDispatchToPropsFactories,s=i===void 0?uee:i,l=e.mergePropsFactories,d=l===void 0?_ee:l,h=e.selectorFactory,u=h===void 0?See:h;return function(g,y,b,x){x===void 0&&(x={});var S=x,T=S.pure,E=T===void 0?!0:T,$=S.areStatesEqual,k=$===void 0?$ee:$,O=S.areOwnPropsEqual,M=O===void 0?Nb:O,R=S.areStatePropsEqual,j=R===void 0?Nb:R,I=S.areMergedPropsEqual,z=I===void 0?Nb:I,W=lu(S,Cee),L=Rb(g,a,"mapStateToProps"),F=Rb(y,s,"mapDispatchToProps"),H=Rb(b,d,"mergeProps");return n(u,De({methodName:"connect",getDisplayName:function(ee){return"Connect("+ee+")"},shouldHandleStateChanges:!!g,initMapStateToProps:L,initMapDispatchToProps:F,initMergeProps:H,pure:E,areStatesEqual:k,areOwnPropsEqual:M,areStatePropsEqual:j,areMergedPropsEqual:z},W))}}const I7=kee();var DT=A9();const nh=so(DT);UQ(DT.unstable_batchedUpdates);function Eee(t,e){if(t.length!==e.length)return!1;for(var r=0;r");return n.callbacks},n.setCallbacks=function(s){n.callbacks=s},n}var r=e.prototype;return r.componentDidMount=function(){this.unbind=Xo(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(o){if(o instanceof gv){this.setState({});return}throw o},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},e}(m.Component),Lee=` + */var _N;function XQ(){if(_N)return Kt;_N=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,S=t?Symbol.for("react.responder"):60118,T=t?Symbol.for("react.scope"):60119;function E(k){if(typeof k=="object"&&k!==null){var O=k.$$typeof;switch(O){case e:switch(k=k.type,k){case l:case d:case n:case a:case o:case u:return k;default:switch(k=k&&k.$$typeof,k){case s:case h:case y:case g:case i:return k;default:return O}}case r:return O}}}function $(k){return E(k)===d}return Kt.AsyncMode=l,Kt.ConcurrentMode=d,Kt.ContextConsumer=s,Kt.ContextProvider=i,Kt.Element=e,Kt.ForwardRef=h,Kt.Fragment=n,Kt.Lazy=y,Kt.Memo=g,Kt.Portal=r,Kt.Profiler=a,Kt.StrictMode=o,Kt.Suspense=u,Kt.isAsyncMode=function(k){return $(k)||E(k)===l},Kt.isConcurrentMode=$,Kt.isContextConsumer=function(k){return E(k)===s},Kt.isContextProvider=function(k){return E(k)===i},Kt.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===e},Kt.isForwardRef=function(k){return E(k)===h},Kt.isFragment=function(k){return E(k)===n},Kt.isLazy=function(k){return E(k)===y},Kt.isMemo=function(k){return E(k)===g},Kt.isPortal=function(k){return E(k)===r},Kt.isProfiler=function(k){return E(k)===a},Kt.isStrictMode=function(k){return E(k)===o},Kt.isSuspense=function(k){return E(k)===u},Kt.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===n||k===d||k===a||k===o||k===u||k===f||typeof k=="object"&&k!==null&&(k.$$typeof===y||k.$$typeof===g||k.$$typeof===i||k.$$typeof===s||k.$$typeof===h||k.$$typeof===x||k.$$typeof===S||k.$$typeof===T||k.$$typeof===b)},Kt.typeOf=E,Kt}var bN;function JQ(){return bN||(bN=1,Mb.exports=XQ()),Mb.exports}var Pb,wN;function YQ(){if(wN)return Pb;wN=1;var t=JQ(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]=n,a[t.Memo]=o;function i(y){return t.isMemo(y)?o:a[y.$$typeof]||e}var s=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,f=Object.prototype;function g(y,b,x){if(typeof b!="string"){if(f){var S=u(b);S&&S!==f&&g(y,S,x)}var T=l(b);d&&(T=T.concat(d(b)));for(var E=i(y),$=i(b),k=0;k=0;n--){var o=e[n](t);if(o)return o}return function(a,i){throw new Error("Invalid value of type "+typeof t+" for "+r+" argument when connecting component "+i.wrappedComponentName+".")}}function $ee(t,e){return t===e}function kee(t){var e=t===void 0?{}:t,r=e.connectHOC,n=r===void 0?iee:r,o=e.mapStateToPropsFactories,a=o===void 0?fee:o,i=e.mapDispatchToPropsFactories,s=i===void 0?uee:i,l=e.mergePropsFactories,d=l===void 0?_ee:l,h=e.selectorFactory,u=h===void 0?See:h;return function(g,y,b,x){x===void 0&&(x={});var S=x,T=S.pure,E=T===void 0?!0:T,$=S.areStatesEqual,k=$===void 0?$ee:$,O=S.areOwnPropsEqual,M=O===void 0?Nb:O,R=S.areStatePropsEqual,j=R===void 0?Nb:R,I=S.areMergedPropsEqual,z=I===void 0?Nb:I,W=lu(S,Cee),L=Rb(g,a,"mapStateToProps"),F=Rb(y,s,"mapDispatchToProps"),H=Rb(b,d,"mergeProps");return n(u,De({methodName:"connect",getDisplayName:function(ee){return"Connect("+ee+")"},shouldHandleStateChanges:!!g,initMapStateToProps:L,initMapDispatchToProps:F,initMergeProps:H,pure:E,areStatesEqual:k,areOwnPropsEqual:M,areStatePropsEqual:j,areMergedPropsEqual:z},W))}}const I7=kee();var DT=A9();const nh=so(DT);UQ(DT.unstable_batchedUpdates);function Eee(t,e){if(t.length!==e.length)return!1;for(var r=0;r");return n.callbacks},n.setCallbacks=function(s){n.callbacks=s},n}var r=e.prototype;return r.componentDidMount=function(){this.unbind=Xo(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(o){if(o instanceof gv){this.setState({});return}throw o},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},e}(m.Component),Lee=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key @@ -406,13 +406,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${e}Chann } `,qce=typeof BE!="string"?Ou` animation: ${BE} 3s infinite linear; - `:null,Gce=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${me(n)}`,r],dashed:["dashed",`dashedColor${me(n)}`],bar1:["bar",`barColor${me(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${me(n)}`,r==="buffer"&&`color${me(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return ht(o,Hce,e)},fO=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?Ol(t.palette[e].main,.62):Tl(t.palette[e].main,.5),Xce=de("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${me(r.color)}`],e[r.variant]]}})(rt(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e},style:{backgroundColor:fO(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Jce=de("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${me(r.color)}`]]}})(rt(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(xr()).map(([e])=>{const r=fO(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),qce||{animation:`${BE} 3s infinite linear`}),Yce=de("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(rt(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${LE}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${LE}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:Uce||{animation:`${zE} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Kce=de("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(rt(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:fO(t,e),transition:`transform .${LE}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:Vce||{animation:`${FE} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Zce=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:i,valueBuffer:s,variant:l="indeterminate",...d}=n,h={...n,color:a,variant:l},u=Gce(h),f=Ul(),g={},y={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&i!==void 0){g["aria-valuenow"]=Math.round(i),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let b=i-100;f&&(b=-b),y.bar1.transform=`translateX(${b}%)`}if(l==="buffer"&&s!==void 0){let b=(s||0)-100;f&&(b=-b),y.bar2.transform=`translateX(${b}%)`}return w.jsxs(Xce,{className:Me(u.root,o),ownerState:h,role:"progressbar",...g,ref:r,...d,children:[l==="buffer"?w.jsx(Jce,{className:u.dashed,ownerState:h}):null,w.jsx(Yce,{className:u.bar1,ownerState:h,style:y.bar1}),l==="determinate"?null:w.jsx(Kce,{className:u.bar2,ownerState:h,style:y.bar2})]})}),$a=A.createContext({});function Qce(t){return dt("MuiList",t)}ct("MuiList",["root","padding","dense","subheader"]);const ede=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return ht({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Qce,e)},tde=de("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),vu=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:d,...h}=n,u=A.useMemo(()=>({dense:s}),[s]),f={...n,component:i,dense:s,disablePadding:l},g=ede(f);return w.jsx($a.Provider,{value:u,children:w.jsxs(tde,{as:i,className:Me(g.root,a),ref:r,ownerState:f,...h,children:[d,o]})})});function rde(t){return dt("MuiListItem",t)}ct("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function nde(t){return dt("MuiListItemButton",t)}const dd=ct("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),ode=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.alignItems==="flex-start"&&e.alignItemsFlexStart,r.divider&&e.divider,!r.disableGutters&&e.gutters]},ade=t=>{const{alignItems:e,classes:r,dense:n,disabled:o,disableGutters:a,divider:i,selected:s}=t,d=ht({root:["root",n&&"dense",!a&&"gutters",i&&"divider",o&&"disabled",e==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},nde,r);return{...r,...d}},ide=de(Li,{shouldForwardProp:t=>on(t)||t==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:ode})(rt(({theme:t})=>({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:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${dd.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${dd.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${dd.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${dd.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${dd.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).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}}]}))),Ev=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:a=!1,component:i="div",children:s,dense:l=!1,disableGutters:d=!1,divider:h=!1,focusVisibleClassName:u,selected:f=!1,className:g,...y}=n,b=A.useContext($a),x=A.useMemo(()=>({dense:l||b.dense||!1,alignItems:o,disableGutters:d}),[o,b.dense,l,d]),S=A.useRef(null);io(()=>{a&&S.current&&S.current.focus()},[a]);const T={...n,alignItems:o,dense:x.dense,disableGutters:d,divider:h,selected:f},E=ade(T),$=Mr(S,r);return w.jsx($a.Provider,{value:x,children:w.jsx(ide,{ref:$,href:y.href||y.to,component:(y.href||y.to)&&i==="div"?"button":i,focusVisibleClassName:Me(E.focusVisible,u),ownerState:T,className:Me(E.root,g),...y,classes:E,children:s})})});function sde(t){return dt("MuiListItemSecondaryAction",t)}ct("MuiListItemSecondaryAction",["root","disableGutters"]);const lde=t=>{const{disableGutters:e,classes:r}=t;return ht({root:["root",e&&"disableGutters"]},sde,r)},cde=de("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.disableGutters&&e.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:t})=>t.disableGutters,style:{right:0}}]}),eH=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiListItemSecondaryAction"}),{className:o,...a}=n,i=A.useContext($a),s={...n,disableGutters:i.disableGutters},l=lde(s);return w.jsx(cde,{className:Me(l.root,o),ownerState:s,ref:r,...a})});eH.muiName="ListItemSecondaryAction";const dde=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.alignItems==="flex-start"&&e.alignItemsFlexStart,r.divider&&e.divider,!r.disableGutters&&e.gutters,!r.disablePadding&&e.padding,r.hasSecondaryAction&&e.secondaryAction]},ude=t=>{const{alignItems:e,classes:r,dense:n,disableGutters:o,disablePadding:a,divider:i,hasSecondaryAction:s}=t;return ht({root:["root",n&&"dense",!o&&"gutters",!a&&"padding",i&&"divider",e==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},rde,r)},pde=de("div",{name:"MuiListItem",slot:"Root",overridesResolver:dde})(rt(({theme:t})=>({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:{[`& > .${dd.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),hde=de("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"}),of=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiListItem"}),{alignItems:o="center",children:a,className:i,component:s,components:l={},componentsProps:d={},ContainerComponent:h="li",ContainerProps:{className:u,...f}={},dense:g=!1,disableGutters:y=!1,disablePadding:b=!1,divider:x=!1,secondaryAction:S,slotProps:T={},slots:E={},...$}=n,k=A.useContext($a),O=A.useMemo(()=>({dense:g||k.dense||!1,alignItems:o,disableGutters:y}),[o,k.dense,g,y]),M=A.useRef(null),R=A.Children.toArray(a),j=R.length&&Eh(R[R.length-1],["ListItemSecondaryAction"]),I={...n,alignItems:o,dense:O.dense,disableGutters:y,disablePadding:b,divider:x,hasSecondaryAction:j},z=ude(I),W=Mr(M,r),L=E.root||l.Root||pde,F=T.root||d.root||{},H={className:Me(z.root,F.className,i),...$};let q=s||"li";return j?(q=!H.component&&!s?"div":q,h==="li"&&(q==="li"?q="div":H.component==="li"&&(H.component="div")),w.jsx($a.Provider,{value:O,children:w.jsxs(hde,{as:h,className:Me(z.container,u),ref:W,ownerState:I,...f,children:[w.jsx(L,{...F,...!Ii(L)&&{as:q,ownerState:{...I,...F.ownerState}},...H,children:R}),R.pop()]})})):w.jsx($a.Provider,{value:O,children:w.jsxs(L,{...F,as:q,ref:W,...!Ii(L)&&{ownerState:{...I,...F.ownerState}},...H,children:[R,S&&w.jsx(eH,{children:S})]})})});function fde(t){return dt("MuiListItemIcon",t)}const ER=ct("MuiListItemIcon",["root","alignItemsFlexStart"]),mde=t=>{const{alignItems:e,classes:r}=t;return ht({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},fde,r)},gde=de("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(rt(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),ba=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiListItemIcon"}),{className:o,...a}=n,i=A.useContext($a),s={...n,alignItems:i.alignItems},l=mde(s);return w.jsx(gde,{className:Me(l.root,o),ownerState:s,ref:r,...a})});function vde(t){return dt("MuiListItemText",t)}const Vd=ct("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),yde=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:a}=t;return ht({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},vde,e)},_de=de("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Vd.primary}`]:e.primary},{[`& .${Vd.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${tR.root}:where(& .${Vd.primary})`]:{display:"block"},[`.${tR.root}:where(& .${Vd.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),_o=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:d,secondary:h,secondaryTypographyProps:u,slots:f={},slotProps:g={},...y}=n,{dense:b}=A.useContext($a);let x=l??o,S=h;const T={...n,disableTypography:i,inset:s,primary:!!x,secondary:!!S,dense:b},E=yde(T),$={slots:f,slotProps:{primary:d,secondary:u,...g}},[k,O]=un("primary",{className:E.primary,elementType:Ka,externalForwardedProps:$,ownerState:T}),[M,R]=un("secondary",{className:E.secondary,elementType:Ka,externalForwardedProps:$,ownerState:T});return x!=null&&x.type!==Ka&&!i&&(x=w.jsx(k,{variant:b?"body2":"body1",component:O!=null&&O.variant?void 0:"span",...O,children:x})),S!=null&&S.type!==Ka&&!i&&(S=w.jsx(M,{variant:"body2",color:"textSecondary",...R,children:S})),w.jsxs(_de,{className:Me(E.root,a),ownerState:T,ref:r,...y,children:[x,S]})});function Qb(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function TR(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function tH(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function Rp(t,e,r,n,o,a){let i=!1,s=o(t,e,e?r:!1);for(;s;){if(s===t.firstChild){if(i)return!1;i=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!tH(s,a)||l)s=o(t,s,r);else return s.focus(),!0}return!1}const bde=A.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:d=!1,onKeyDown:h,variant:u="selectedMenu",...f}=e,g=A.useRef(null),y=A.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});io(()=>{o&&g.current.focus()},[o]),A.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(E,{direction:$})=>{const k=!g.current.style.width;if(E.clientHeight{const $=g.current,k=E.key;if(E.ctrlKey||E.metaKey||E.altKey){h&&h(E);return}const M=qr($).activeElement;if(k==="ArrowDown")E.preventDefault(),Rp($,M,d,l,Qb);else if(k==="ArrowUp")E.preventDefault(),Rp($,M,d,l,TR);else if(k==="Home")E.preventDefault(),Rp($,null,d,l,Qb);else if(k==="End")E.preventDefault(),Rp($,null,d,l,TR);else if(k.length===1){const R=y.current,j=k.toLowerCase(),I=performance.now();R.keys.length>0&&(I-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&j!==R.keys[0]&&(R.repeating=!1)),R.lastTime=I,R.keys.push(j);const z=M&&!R.repeating&&tH(M,R);R.previousKeyMatched&&(z||Rp($,M,!1,l,Qb,R))?E.preventDefault():R.previousKeyMatched=!1}h&&h(E)},x=Mr(g,r);let S=-1;A.Children.forEach(i,(E,$)=>{if(!A.isValidElement(E)){S===$&&(S+=1,S>=i.length&&(S=-1));return}E.props.disabled||(u==="selectedMenu"&&E.props.selected||S===-1)&&(S=$),S===$&&(E.props.disabled||E.props.muiSkipListHighlight||E.type.muiSkipListHighlight)&&(S+=1,S>=i.length&&(S=-1))});const T=A.Children.map(i,(E,$)=>{if($===S){const k={};return a&&(k.autoFocus=!0),E.props.tabIndex===void 0&&u==="selectedMenu"&&(k.tabIndex=0),A.cloneElement(E,k)}return E});return w.jsx(vu,{role:"menu",ref:x,className:s,onKeyDown:b,tabIndex:o?0:-1,...f,children:T})});function wde(t){return dt("MuiPopover",t)}ct("MuiPopover",["root","paper"]);function OR(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function DR(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function AR(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function e1(t){return typeof t=="function"?t():t}const xde=t=>{const{classes:e}=t;return ht({root:["root"],paper:["paper"]},wde,e)},Sde=de(KW,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),rH=de(zn,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),WE=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:d,className:h,container:u,elevation:f=8,marginThreshold:g=16,open:y,PaperProps:b={},slots:x={},slotProps:S={},transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:E=nf,transitionDuration:$="auto",TransitionProps:{onEntering:k,...O}={},disableScrollLock:M=!1,...R}=n,j=(S==null?void 0:S.paper)??b,I=A.useRef(),z={...n,anchorOrigin:i,anchorReference:l,elevation:f,marginThreshold:g,externalPaperSlotProps:j,transformOrigin:T,TransitionComponent:E,transitionDuration:$,TransitionProps:O},W=xde(z),L=A.useCallback(()=>{if(l==="anchorPosition")return s;const Pe=e1(a),Be=(Pe&&Pe.nodeType===1?Pe:qr(I.current).body).getBoundingClientRect();return{top:Be.top+OR(Be,i.vertical),left:Be.left+DR(Be,i.horizontal)}},[a,i.horizontal,i.vertical,s,l]),F=A.useCallback(Pe=>({vertical:OR(Pe,T.vertical),horizontal:DR(Pe,T.horizontal)}),[T.horizontal,T.vertical]),H=A.useCallback(Pe=>{const Ye={width:Pe.offsetWidth,height:Pe.offsetHeight},Be=F(Ye);if(l==="none")return{top:null,left:null,transformOrigin:AR(Be)};const Ke=L();let Xe=Ke.top-Be.vertical,ve=Ke.left-Be.horizontal;const le=Xe+Ye.height,re=ve+Ye.width,He=Oa(e1(a)),Ve=He.innerHeight-g,at=He.innerWidth-g;if(g!==null&&XeVe){const ut=le-Ve;Xe-=ut,Be.vertical+=ut}if(g!==null&&veat){const ut=re-at;ve-=ut,Be.horizontal+=ut}return{top:`${Math.round(Xe)}px`,left:`${Math.round(ve)}px`,transformOrigin:AR(Be)}},[a,l,L,F,g]),[q,ee]=A.useState(y),Y=A.useCallback(()=>{const Pe=I.current;if(!Pe)return;const Ye=H(Pe);Ye.top!==null&&Pe.style.setProperty("top",Ye.top),Ye.left!==null&&(Pe.style.left=Ye.left),Pe.style.transformOrigin=Ye.transformOrigin,ee(!0)},[H]);A.useEffect(()=>(M&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[a,M,Y]);const G=(Pe,Ye)=>{k&&k(Pe,Ye),Y()},te=()=>{ee(!1)};A.useEffect(()=>{y&&Y()}),A.useImperativeHandle(o,()=>y?{updatePosition:()=>{Y()}}:null,[y,Y]),A.useEffect(()=>{if(!y)return;const Pe=wy(()=>{Y()}),Ye=Oa(a);return Ye.addEventListener("resize",Pe),()=>{Pe.clear(),Ye.removeEventListener("resize",Pe)}},[a,y,Y]);let B=$;$==="auto"&&!E.muiSupportAuto&&(B=void 0);const K=u||(a?qr(e1(a)).body:void 0),he={slots:x,slotProps:{...S,paper:j}},[fe,ge]=un("paper",{elementType:rH,externalForwardedProps:he,additionalProps:{elevation:f,className:Me(W.paper,j==null?void 0:j.className),style:q?j.style:{...j.style,opacity:0}},ownerState:z}),[Ee,{slotProps:ze,...Ne}]=un("root",{elementType:Sde,externalForwardedProps:he,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:K,open:y},ownerState:z,className:Me(W.root,h)}),Fe=Mr(I,ge.ref);return w.jsx(Ee,{...Ne,...!Ii(Ee)&&{slotProps:ze,disableScrollLock:M},...R,ref:r,children:w.jsx(E,{appear:!0,in:y,onEntering:G,onExited:te,timeout:B,...O,children:w.jsx(fe,{...ge,ref:Fe,children:d})})})});function Cde(t){return dt("MuiMenu",t)}ct("MuiMenu",["root","paper","list"]);const $de={vertical:"top",horizontal:"right"},kde={vertical:"top",horizontal:"left"},Ede=t=>{const{classes:e}=t;return ht({root:["root"],paper:["paper"],list:["list"]},Cde,e)},Tde=de(WE,{shouldForwardProp:t=>on(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Ode=de(rH,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Dde=de(bde,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),eu=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:i,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:d,open:h,PaperProps:u={},PopoverClasses:f,transitionDuration:g="auto",TransitionProps:{onEntering:y,...b}={},variant:x="selectedMenu",slots:S={},slotProps:T={},...E}=n,$=Ul(),k={...n,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:y,PaperProps:u,transitionDuration:g,TransitionProps:b,variant:x},O=Ede(k),M=o&&!s&&h,R=A.useRef(null),j=(q,ee)=>{R.current&&R.current.adjustStyleForScrollbar(q,{direction:$?"rtl":"ltr"}),y&&y(q,ee)},I=q=>{q.key==="Tab"&&(q.preventDefault(),d&&d(q,"tabKeyDown"))};let z=-1;A.Children.map(a,(q,ee)=>{A.isValidElement(q)&&(q.props.disabled||(x==="selectedMenu"&&q.props.selected||z===-1)&&(z=ee))});const W=S.paper??Ode,L=T.paper??u,F=nn({elementType:S.root,externalSlotProps:T.root,ownerState:k,className:[O.root,i]}),H=nn({elementType:W,externalSlotProps:L,ownerState:k,className:O.paper});return w.jsx(Tde,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:$?"right":"left"},transformOrigin:$?$de:kde,slots:{paper:W,root:S.root},slotProps:{root:F,paper:H},open:h,ref:r,transitionDuration:g,TransitionProps:{onEntering:j,...b},ownerState:k,...E,classes:f,children:w.jsx(Dde,{onKeyDown:I,actions:R,autoFocus:o&&(z===-1||s),autoFocusItem:M,variant:x,...l,className:Me(O.list,l.className),children:a})})});function Ade(t){return dt("MuiMenuItem",t)}const jp=ct("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ide=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},Mde=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=t,l=ht({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},Ade,i);return{...i,...l}},Pde=de(Li,{shouldForwardProp:t=>on(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Ide})(rt(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${jp.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${jp.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${jp.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${jp.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${jp.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${xR.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${xR.inset}`]:{marginLeft:52},[`& .${Vd.root}`]:{marginTop:0,marginBottom:0},[`& .${Vd.inset}`]:{paddingLeft:36},[`& .${ER.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${ER.root} svg`]:{fontSize:"1.25rem"}}}]}))),Jt=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:d,role:h="menuitem",tabIndex:u,className:f,...g}=n,y=A.useContext($a),b=A.useMemo(()=>({dense:i||y.dense||!1,disableGutters:l}),[y.dense,i,l]),x=A.useRef(null);io(()=>{o&&x.current&&x.current.focus()},[o]);const S={...n,dense:b.dense,divider:s,disableGutters:l},T=Mde(n),E=Mr(x,r);let $;return n.disabled||($=u!==void 0?u:-1),w.jsx($a.Provider,{value:b,children:w.jsx(Pde,{ref:E,role:h,tabIndex:$,component:a,focusVisibleClassName:Me(T.focusVisible,d),className:Me(T.root,f),...g,ownerState:S,classes:T})})});function Nde(t){return dt("MuiNativeSelect",t)}const mO=ct("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Rde=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:i}=t,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${me(r)}`,a&&"iconOpen",n&&"disabled"]};return ht(s,Nde,e)},nH=de("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${mO.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),jde=de(nH,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:on,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${mO.multiple}`]:e.multiple}]}})({}),oH=de("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${mO.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Lde=de(oH,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),zde=A.forwardRef(function(e,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard",...d}=e,h={...e,disabled:o,variant:l,error:a},u=Rde(h);return w.jsxs(A.Fragment,{children:[w.jsx(jde,{ownerState:h,className:Me(u.select,n),disabled:o,ref:s||r,...d}),e.multiple?null:w.jsx(Lde,{as:i,ownerState:h,className:u.icon})]})});var IR;const Fde=de("fieldset",{shouldForwardProp:on})({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%"}),Bde=de("legend",{shouldForwardProp:on})(rt(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function Wde(t){const{children:e,classes:r,className:n,label:o,notched:a,...i}=t,s=o!=null&&o!=="",l={...t,notched:a,withLabel:s};return w.jsx(Fde,{"aria-hidden":!0,className:n,ownerState:l,...i,children:w.jsx(Bde,{ownerState:l,children:s?w.jsx("span",{children:o}):IR||(IR=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Hde=t=>{const{classes:e}=t,n=ht({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ise,e);return{...e,...n}},Ude=de(jy,{shouldForwardProp:t=>on(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ny})(rt(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Ba.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ba.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${Ba.focused} .${Ba.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(xr()).map(([r])=>({props:{color:r},style:{[`&.${Ba.focused} .${Ba.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${Ba.error} .${Ba.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Ba.disabled} .${Ba.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),Vde=de(Wde,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(rt(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),qde=de(Ly,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ry})(rt(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),gO=A.forwardRef(function(e,r){var n;const o=ft({props:e,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:s="input",label:l,multiline:d=!1,notched:h,slots:u={},type:f="text",...g}=o,y=Hde(o),b=si(),x=Us({props:o,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...o,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:i,hiddenLabel:x.hiddenLabel,multiline:d,size:x.size,type:f},T=u.root??a.Root??Ude,E=u.input??a.Input??qde;return w.jsx(dO,{slots:{root:T,input:E},renderSuffix:$=>w.jsx(Vde,{ownerState:S,className:y.notchedOutline,label:l!=null&&l!==""&&x.required?n||(n=w.jsxs(A.Fragment,{children:[l," ","*"]})):l,notched:typeof h<"u"?h:!!($.startAdornment||$.filled||$.focused)}),fullWidth:i,inputComponent:s,multiline:d,ref:r,type:f,...g,classes:{...y,notchedOutline:null}})});gO.muiName="Input";const Gde=Ge(w.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"),Xde=Ge(w.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"),Jde=de("span",{shouldForwardProp:on})({position:"relative",display:"flex"}),Yde=de(Gde)({transform:"scale(1)"}),Kde=de(Xde)(rt(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function aH(t){const{checked:e=!1,classes:r={},fontSize:n}=t,o={...t,checked:e};return w.jsxs(Jde,{className:r.root,ownerState:o,children:[w.jsx(Yde,{fontSize:n,className:r.background,ownerState:o}),w.jsx(Kde,{fontSize:n,className:r.dot,ownerState:o})]})}const Zde=A.createContext(void 0);function Qde(){return A.useContext(Zde)}function eue(t){return dt("MuiRadio",t)}const MR=ct("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),tue=t=>{const{classes:e,color:r,size:n}=t,o={root:["root",`color${me(r)}`,n!=="medium"&&`size${me(n)}`]};return{...e,...ht(o,eue,e)}},rue=de(uO,{shouldForwardProp:t=>on(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${me(r.size)}`],e[`color${me(r.color)}`]]}})(rt(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${MR.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Qt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Qt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${MR.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function nue(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const PR=w.jsx(aH,{checked:!0}),NR=w.jsx(aH,{}),ur=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:a=PR,color:i="primary",icon:s=NR,name:l,onChange:d,size:h="medium",className:u,disabled:f,disableRipple:g=!1,...y}=n,b=si();let x=f;b&&typeof x>"u"&&(x=b.disabled),x??(x=!1);const S={...n,disabled:x,disableRipple:g,color:i,size:h},T=tue(S),E=Qde();let $=o;const k=hE(d,E&&E.onChange);let O=l;return E&&(typeof $>"u"&&($=nue(E.value,n.value)),typeof O>"u"&&(O=E.name)),w.jsx(rue,{type:"radio",icon:A.cloneElement(s,{fontSize:NR.props.fontSize??h}),checkedIcon:A.cloneElement(a,{fontSize:PR.props.fontSize??h}),disabled:x,ownerState:S,classes:T,name:O,checked:$,onChange:k,ref:r,className:Me(T.root,u),...y})});function oue(t){return dt("MuiSelect",t)}const Lp=ct("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var RR;const aue=de(nH,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${Lp.select}`]:e.select},{[`&.${Lp.select}`]:e[r.variant]},{[`&.${Lp.error}`]:e.error},{[`&.${Lp.multiple}`]:e.multiple}]}})({[`&.${Lp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),iue=de(oH,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),sue=de("input",{shouldForwardProp:t=>$y(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function jR(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function lue(t){return t==null||typeof t=="string"&&!t.trim()}const cue=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:i}=t,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${me(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return ht(s,oue,e)},due=A.forwardRef(function(e,r){var wt;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:i,children:s,className:l,defaultOpen:d,defaultValue:h,disabled:u,displayEmpty:f,error:g=!1,IconComponent:y,inputRef:b,labelId:x,MenuProps:S={},multiple:T,name:E,onBlur:$,onChange:k,onClose:O,onFocus:M,onOpen:R,open:j,readOnly:I,renderValue:z,required:W,SelectDisplayProps:L={},tabIndex:F,type:H,value:q,variant:ee="standard",...Y}=e,[G,te]=qh({controlled:q,default:h,name:"Select"}),[B,K]=qh({controlled:j,default:d,name:"Select"}),he=A.useRef(null),fe=A.useRef(null),[ge,Ee]=A.useState(null),{current:ze}=A.useRef(j!=null),[Ne,Fe]=A.useState(),Pe=Mr(r,b),Ye=A.useCallback(pe=>{fe.current=pe,pe&&Ee(pe)},[]),Be=ge==null?void 0:ge.parentNode;A.useImperativeHandle(Pe,()=>({focus:()=>{fe.current.focus()},node:he.current,value:G}),[G]),A.useEffect(()=>{d&&B&&ge&&!ze&&(Fe(i?null:Be.clientWidth),fe.current.focus())},[ge,i]),A.useEffect(()=>{a&&fe.current.focus()},[a]),A.useEffect(()=>{if(!x)return;const pe=qr(fe.current).getElementById(x);if(pe){const $e=()=>{getSelection().isCollapsed&&fe.current.focus()};return pe.addEventListener("click",$e),()=>{pe.removeEventListener("click",$e)}}},[x]);const Ke=(pe,$e)=>{pe?R&&R($e):O&&O($e),ze||(Fe(i?null:Be.clientWidth),K(pe))},Xe=pe=>{pe.button===0&&(pe.preventDefault(),fe.current.focus(),Ke(!0,pe))},ve=pe=>{Ke(!1,pe)},le=A.Children.toArray(s),re=pe=>{const $e=le.find(ot=>ot.props.value===pe.target.value);$e!==void 0&&(te($e.props.value),k&&k(pe,$e))},He=pe=>$e=>{let ot;if($e.currentTarget.hasAttribute("tabindex")){if(T){ot=Array.isArray(G)?G.slice():[];const yt=G.indexOf(pe.props.value);yt===-1?ot.push(pe.props.value):ot.splice(yt,1)}else ot=pe.props.value;if(pe.props.onClick&&pe.props.onClick($e),G!==ot&&(te(ot),k)){const yt=$e.nativeEvent||$e,Pt=new yt.constructor(yt.type,yt);Object.defineProperty(Pt,"target",{writable:!0,value:{value:ot,name:E}}),k(Pt,pe)}T||Ke(!1,$e)}},Ve=pe=>{I||[" ","ArrowUp","ArrowDown","Enter"].includes(pe.key)&&(pe.preventDefault(),Ke(!0,pe))},at=ge!==null&&B,ut=pe=>{!at&&$&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:G,name:E}}),$(pe))};delete Y["aria-invalid"];let ke,pt;const J=[];let ae=!1;(kv({value:G})||f)&&(z?ke=z(G):ae=!0);const Se=le.map(pe=>{if(!A.isValidElement(pe))return null;let $e;if(T){if(!Array.isArray(G))throw new Error(Ni(2));$e=G.some(ot=>jR(ot,pe.props.value)),$e&&ae&&J.push(pe.props.children)}else $e=jR(G,pe.props.value),$e&&ae&&(pt=pe.props.children);return A.cloneElement(pe,{"aria-selected":$e?"true":"false",onClick:He(pe),onKeyUp:ot=>{ot.key===" "&&ot.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(ot)},role:"option",selected:$e,value:void 0,"data-value":pe.props.value})});ae&&(T?J.length===0?ke=null:ke=J.reduce((pe,$e,ot)=>(pe.push($e),ot{const{classes:e}=t;return e},vO={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>on(t)&&t!=="variant",slot:"Root"},pue=de(ya,vO)(""),hue=de(gO,vO)(""),fue=de(hO,vO)(""),Bn=A.forwardRef(function(e,r){const n=ft({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:d=!1,IconComponent:h=lse,id:u,input:f,inputProps:g,label:y,labelId:b,MenuProps:x,multiple:S=!1,native:T=!1,onClose:E,onOpen:$,open:k,renderValue:O,SelectDisplayProps:M,variant:R="outlined",...j}=n,I=T?zde:due,z=si(),W=Us({props:n,muiFormControl:z,states:["variant","error"]}),L=W.variant||R,F={...n,variant:L,classes:i},H=uue(F),{root:q,...ee}=H,Y=f||{standard:w.jsx(pue,{ownerState:F}),outlined:w.jsx(hue,{label:y,ownerState:F}),filled:w.jsx(fue,{ownerState:F})}[L],G=Mr(r,Hl(Y));return w.jsx(A.Fragment,{children:A.cloneElement(Y,{inputComponent:I,inputProps:{children:a,error:W.error,IconComponent:h,variant:L,type:void 0,multiple:S,...T?{id:u}:{autoWidth:o,defaultOpen:l,displayEmpty:d,labelId:b,MenuProps:x,onClose:E,onOpen:$,open:k,renderValue:O,SelectDisplayProps:{id:u,...M}},...g,classes:g?On(ee,g.classes):ee,...f?f.props.inputProps:{}},...(S&&T||d)&&L==="outlined"?{notched:!0}:{},ref:G,className:Me(Y.props.className,s,H.root),...!f&&{variant:L},...j})})});Bn.muiName="Select";function mue(t,e,r=(n,o)=>n===o){return t.length===e.length&&t.every((n,o)=>r(n,e[o]))}const gue=2;function Fc(t,e,r,n,o){return r===1?Math.min(t+e,o):Math.max(t-e,n)}function iH(t,e){return t-e}function LR(t,e){const{index:r}=t.reduce((n,o,a)=>{const i=Math.abs(e-o);return n===null||i({left:`${t}%`}),leap:t=>({width:`${t}%`})},"horizontal-reverse":{offset:t=>({right:`${t}%`}),leap:t=>({width:`${t}%`})},vertical:{offset:t=>({bottom:`${t}%`}),leap:t=>({height:`${t}%`})}},wue=t=>t;let fg;function FR(){return fg===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?fg=CSS.supports("touch-action","none"):fg=!0),fg}function xue(t){const{"aria-labelledby":e,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:d,onChange:h,onChangeCommitted:u,orientation:f="horizontal",rootRef:g,scale:y=wue,step:b=1,shiftStep:x=10,tabIndex:S,value:T}=t,E=A.useRef(void 0),[$,k]=A.useState(-1),[O,M]=A.useState(-1),[R,j]=A.useState(!1),I=A.useRef(0),[z,W]=qh({controlled:T,default:r??l,name:"Slider"}),L=h&&((J,ae,Se)=>{const Te=J.nativeEvent||J,Oe=new Te.constructor(Te.type,Te);Object.defineProperty(Oe,"target",{writable:!0,value:{value:ae,name:d}}),h(Oe,ae,Se)}),F=Array.isArray(z);let H=F?z.slice().sort(iH):[z];H=H.map(J=>J==null?l:ld(J,l,s));const q=i===!0&&b!==null?[...Array(Math.floor((s-l)/b)+1)].map((J,ae)=>({value:l+b*ae})):i||[],ee=q.map(J=>J.value),[Y,G]=A.useState(-1),te=A.useRef(null),B=Mr(g,te),K=J=>ae=>{var Te;const Se=Number(ae.currentTarget.getAttribute("data-index"));iu(ae.target)&&G(Se),M(Se),(Te=J==null?void 0:J.onFocus)==null||Te.call(J,ae)},he=J=>ae=>{var Se;iu(ae.target)||G(-1),M(-1),(Se=J==null?void 0:J.onBlur)==null||Se.call(J,ae)},fe=(J,ae)=>{const Se=Number(J.currentTarget.getAttribute("data-index")),Te=H[Se],Oe=ee.indexOf(Te);let Ce=ae;if(q&&b==null){const nt=ee[ee.length-1];Ce>nt?Ce=nt:Ceae=>{var Se;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(ae.key)){ae.preventDefault();const Te=Number(ae.currentTarget.getAttribute("data-index")),Oe=H[Te];let Ce=null;if(b!=null){const nt=ae.shiftKey?x:b;switch(ae.key){case"ArrowUp":Ce=Fc(Oe,nt,1,l,s);break;case"ArrowRight":Ce=Fc(Oe,nt,a?-1:1,l,s);break;case"ArrowDown":Ce=Fc(Oe,nt,-1,l,s);break;case"ArrowLeft":Ce=Fc(Oe,nt,a?1:-1,l,s);break;case"PageUp":Ce=Fc(Oe,x,1,l,s);break;case"PageDown":Ce=Fc(Oe,x,-1,l,s);break;case"Home":Ce=l;break;case"End":Ce=s;break}}else if(q){const nt=ee[ee.length-1],Le=ee.indexOf(Oe),mt=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],vt=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];mt.includes(ae.key)?Le===0?Ce=ee[0]:Ce=ee[Le-1]:vt.includes(ae.key)&&(Le===ee.length-1?Ce=nt:Ce=ee[Le+1])}Ce!=null&&fe(ae,Ce)}(Se=J==null?void 0:J.onKeyDown)==null||Se.call(J,ae)};io(()=>{var J;n&&te.current.contains(document.activeElement)&&((J=document.activeElement)==null||J.blur())},[n]),n&&$!==-1&&k(-1),n&&Y!==-1&&G(-1);const Ee=J=>ae=>{var Se;(Se=J.onChange)==null||Se.call(J,ae),fe(ae,ae.target.valueAsNumber)},ze=A.useRef(void 0);let Ne=f;a&&f==="horizontal"&&(Ne+="-reverse");const Fe=({finger:J,move:ae=!1})=>{const{current:Se}=te,{width:Te,height:Oe,bottom:Ce,left:nt}=Se.getBoundingClientRect();let Le;Ne.startsWith("vertical")?Le=(Ce-J.y)/Oe:Le=(J.x-nt)/Te,Ne.includes("-reverse")&&(Le=1-Le);let mt;if(mt=vue(Le,l,s),b)mt=_ue(mt,b,l);else{const wt=LR(ee,mt);mt=ee[wt]}mt=ld(mt,l,s);let vt=0;if(F){ae?vt=ze.current:vt=LR(H,mt),o&&(mt=ld(mt,H[vt-1]||-1/0,H[vt+1]||1/0));const wt=mt;mt=zR({values:H,newValue:mt,index:vt}),o&&ae||(vt=mt.indexOf(wt),ze.current=vt)}return{newValue:mt,activeIndex:vt}},Pe=bn(J=>{const ae=ug(J,E);if(!ae)return;if(I.current+=1,J.type==="mousemove"&&J.buttons===0){Ye(J);return}const{newValue:Se,activeIndex:Te}=Fe({finger:ae,move:!0});pg({sliderRef:te,activeIndex:Te,setActive:k}),W(Se),!R&&I.current>gue&&j(!0),L&&!hg(Se,z)&&L(J,Se,Te)}),Ye=bn(J=>{const ae=ug(J,E);if(j(!1),!ae)return;const{newValue:Se}=Fe({finger:ae,move:!0});k(-1),J.type==="touchend"&&M(-1),u&&u(J,Se),E.current=void 0,Ke()}),Be=bn(J=>{if(n)return;FR()||J.preventDefault();const ae=J.changedTouches[0];ae!=null&&(E.current=ae.identifier);const Se=ug(J,E);if(Se!==!1){const{newValue:Oe,activeIndex:Ce}=Fe({finger:Se});pg({sliderRef:te,activeIndex:Ce,setActive:k}),W(Oe),L&&!hg(Oe,z)&&L(J,Oe,Ce)}I.current=0;const Te=qr(te.current);Te.addEventListener("touchmove",Pe,{passive:!0}),Te.addEventListener("touchend",Ye,{passive:!0})}),Ke=A.useCallback(()=>{const J=qr(te.current);J.removeEventListener("mousemove",Pe),J.removeEventListener("mouseup",Ye),J.removeEventListener("touchmove",Pe),J.removeEventListener("touchend",Ye)},[Ye,Pe]);A.useEffect(()=>{const{current:J}=te;return J.addEventListener("touchstart",Be,{passive:FR()}),()=>{J.removeEventListener("touchstart",Be),Ke()}},[Ke,Be]),A.useEffect(()=>{n&&Ke()},[n,Ke]);const Xe=J=>ae=>{var Oe;if((Oe=J.onMouseDown)==null||Oe.call(J,ae),n||ae.defaultPrevented||ae.button!==0)return;ae.preventDefault();const Se=ug(ae,E);if(Se!==!1){const{newValue:Ce,activeIndex:nt}=Fe({finger:Se});pg({sliderRef:te,activeIndex:nt,setActive:k}),W(Ce),L&&!hg(Ce,z)&&L(ae,Ce,nt)}I.current=0;const Te=qr(te.current);Te.addEventListener("mousemove",Pe,{passive:!0}),Te.addEventListener("mouseup",Ye)},ve=Tv(F?H[0]:l,l,s),le=Tv(H[H.length-1],l,s)-ve,re=(J={})=>{const ae=Sl(J),Se={onMouseDown:Xe(ae||{})},Te={...ae,...Se};return{...J,ref:B,...Te}},He=J=>ae=>{var Te;(Te=J.onMouseOver)==null||Te.call(J,ae);const Se=Number(ae.currentTarget.getAttribute("data-index"));M(Se)},Ve=J=>ae=>{var Se;(Se=J.onMouseLeave)==null||Se.call(J,ae),M(-1)},at=(J={})=>{const ae=Sl(J),Se={onMouseOver:He(ae||{}),onMouseLeave:Ve(ae||{})};return{...J,...ae,...Se}},ut=J=>({pointerEvents:$!==-1&&$!==J?"none":void 0});let ke;return f==="vertical"&&(ke=a?"vertical-rl":"vertical-lr"),{active:$,axis:Ne,axisProps:bue,dragging:R,focusedThumbIndex:Y,getHiddenInputProps:(J={})=>{const ae=Sl(J),Se={onChange:Ee(ae||{}),onFocus:K(ae||{}),onBlur:he(ae||{}),onKeyDown:ge(ae||{})},Te={...ae,...Se};return{tabIndex:S,"aria-labelledby":e,"aria-orientation":f,"aria-valuemax":y(s),"aria-valuemin":y(l),name:d,type:"range",min:t.min,max:t.max,step:t.step===null&&t.marks?"any":t.step??void 0,disabled:n,...J,...Te,style:{...xZ,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:ke}}},getRootProps:re,getThumbProps:at,marks:q,open:O,range:F,rootRef:B,trackLeap:le,trackOffset:ve,values:H,getThumbStyle:ut}}const Sue=t=>!t||!Ii(t);function Cue(t){return dt("MuiSlider",t)}const Jo=ct("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),$ue=t=>{const{open:e}=t;return{offset:Me(e&&Jo.valueLabelOpen),circle:Jo.valueLabelCircle,label:Jo.valueLabelLabel}};function kue(t){const{children:e,className:r,value:n}=t,o=$ue(t);return e?A.cloneElement(e,{className:Me(e.props.className)},w.jsxs(A.Fragment,{children:[e.props.children,w.jsx("span",{className:Me(o.offset,r),"aria-hidden":!0,children:w.jsx("span",{className:o.circle,children:w.jsx("span",{className:o.label,children:n})})})]})):null}function BR(t){return t}const Eue=de("span",{name:"MuiSlider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${me(r.color)}`],r.size!=="medium"&&e[`size${me(r.size)}`],r.marked&&e.marked,r.orientation==="vertical"&&e.vertical,r.track==="inverted"&&e.trackInverted,r.track===!1&&e.trackFalse]}})(rt(({theme:t})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Jo.disabled}`]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},[`&.${Jo.dragging}`]:{[`& .${Jo.thumb}, & .${Jo.track}`]:{transition:"none"}},variants:[...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),Tue=de("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(t,e)=>e.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Oue=de("span",{name:"MuiSlider",slot:"Track",overridesResolver:(t,e)=>e.track})(rt(({theme:t})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e,track:"inverted"},style:{...t.vars?{backgroundColor:t.vars.palette.Slider[`${e}Track`],borderColor:t.vars.palette.Slider[`${e}Track`]}:{backgroundColor:Ol(t.palette[e].main,.62),borderColor:Ol(t.palette[e].main,.62),...t.applyStyles("dark",{backgroundColor:Tl(t.palette[e].main,.5)}),...t.applyStyles("dark",{borderColor:Tl(t.palette[e].main,.5)})}}}))]}))),Due=de("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.thumb,e[`thumbColor${me(r.color)}`],r.size!=="medium"&&e[`thumbSize${me(r.size)}`]]}})(rt(({theme:t})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Jo.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e},style:{[`&:hover, &.${Jo.focusVisible}`]:{...t.vars?{boxShadow:`0px 0px 0px 8px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Qt(t.palette[e].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${Jo.active}`]:{...t.vars?{boxShadow:`0px 0px 0px 14px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Qt(t.palette[e].main,.16)}`}}}}))]}))),Aue=de(kue,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(t,e)=>e.valueLabel})(rt(({theme:t})=>({zIndex:1,whiteSpace:"nowrap",...t.typography.body2,fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Jo.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Jo.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),Iue=de("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:t=>$y(t)&&t!=="markActive",overridesResolver:(t,e)=>{const{markActive:r}=t;return[e.mark,r&&e.markActive]}})(rt(({theme:t})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}))),Mue=de("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:t=>$y(t)&&t!=="markLabelActive",overridesResolver:(t,e)=>e.markLabel})(rt(({theme:t})=>({...t.typography.body2,color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]}))),Pue=t=>{const{disabled:e,dragging:r,marked:n,orientation:o,track:a,classes:i,color:s,size:l}=t,d={root:["root",e&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${me(s)}`,l&&`size${me(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",e&&"disabled",l&&`thumbSize${me(l)}`,s&&`thumbColor${me(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return ht(d,Cue,i)},Nue=({children:t})=>t,Rue=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiSlider"}),o=Ul(),{"aria-label":a,"aria-valuetext":i,"aria-labelledby":s,component:l="span",components:d={},componentsProps:h={},color:u="primary",classes:f,className:g,disableSwap:y=!1,disabled:b=!1,getAriaLabel:x,getAriaValueText:S,marks:T=!1,max:E=100,min:$=0,name:k,onChange:O,onChangeCommitted:M,orientation:R="horizontal",shiftStep:j=10,size:I="medium",step:z=1,scale:W=BR,slotProps:L,slots:F,tabIndex:H,track:q="normal",value:ee,valueLabelDisplay:Y="off",valueLabelFormat:G=BR,...te}=n,B={...n,isRtl:o,max:E,min:$,classes:f,disabled:b,disableSwap:y,orientation:R,marks:T,color:u,size:I,step:z,shiftStep:j,scale:W,track:q,valueLabelDisplay:Y,valueLabelFormat:G},{axisProps:K,getRootProps:he,getHiddenInputProps:fe,getThumbProps:ge,open:Ee,active:ze,axis:Ne,focusedThumbIndex:Fe,range:Pe,dragging:Ye,marks:Be,values:Ke,trackOffset:Xe,trackLeap:ve,getThumbStyle:le}=xue({...B,rootRef:r});B.marked=Be.length>0&&Be.some(Rt=>Rt.label),B.dragging=Ye,B.focusedThumbIndex=Fe;const re=Pue(B),He=(F==null?void 0:F.root)??d.Root??Eue,Ve=(F==null?void 0:F.rail)??d.Rail??Tue,at=(F==null?void 0:F.track)??d.Track??Oue,ut=(F==null?void 0:F.thumb)??d.Thumb??Due,ke=(F==null?void 0:F.valueLabel)??d.ValueLabel??Aue,pt=(F==null?void 0:F.mark)??d.Mark??Iue,J=(F==null?void 0:F.markLabel)??d.MarkLabel??Mue,ae=(F==null?void 0:F.input)??d.Input??"input",Se=(L==null?void 0:L.root)??h.root,Te=(L==null?void 0:L.rail)??h.rail,Oe=(L==null?void 0:L.track)??h.track,Ce=(L==null?void 0:L.thumb)??h.thumb,nt=(L==null?void 0:L.valueLabel)??h.valueLabel,Le=(L==null?void 0:L.mark)??h.mark,mt=(L==null?void 0:L.markLabel)??h.markLabel,vt=(L==null?void 0:L.input)??h.input,wt=nn({elementType:He,getSlotProps:he,externalSlotProps:Se,externalForwardedProps:te,additionalProps:{...Sue(He)&&{as:l}},ownerState:{...B,...Se==null?void 0:Se.ownerState},className:[re.root,g]}),pe=nn({elementType:Ve,externalSlotProps:Te,ownerState:B,className:re.rail}),$e=nn({elementType:at,externalSlotProps:Oe,additionalProps:{style:{...K[Ne].offset(Xe),...K[Ne].leap(ve)}},ownerState:{...B,...Oe==null?void 0:Oe.ownerState},className:re.track}),ot=nn({elementType:ut,getSlotProps:ge,externalSlotProps:Ce,ownerState:{...B,...Ce==null?void 0:Ce.ownerState},className:re.thumb}),yt=nn({elementType:ke,externalSlotProps:nt,ownerState:{...B,...nt==null?void 0:nt.ownerState},className:re.valueLabel}),Pt=nn({elementType:pt,externalSlotProps:Le,ownerState:B,className:re.mark}),Xr=nn({elementType:J,externalSlotProps:mt,ownerState:B,className:re.markLabel}),an=nn({elementType:ae,getSlotProps:fe,externalSlotProps:vt,ownerState:B});return w.jsxs(He,{...wt,children:[w.jsx(Ve,{...pe}),w.jsx(at,{...$e}),Be.filter(Rt=>Rt.value>=$&&Rt.value<=E).map((Rt,hr)=>{const Ao=Tv(Rt.value,$,E),pi=K[Ne].offset(Ao);let Hn;return q===!1?Hn=Ke.includes(Rt.value):Hn=q==="normal"&&(Pe?Rt.value>=Ke[0]&&Rt.value<=Ke[Ke.length-1]:Rt.value<=Ke[0])||q==="inverted"&&(Pe?Rt.value<=Ke[0]||Rt.value>=Ke[Ke.length-1]:Rt.value>=Ke[0]),w.jsxs(A.Fragment,{children:[w.jsx(pt,{"data-index":hr,...Pt,...!Ii(pt)&&{markActive:Hn},style:{...pi,...Pt.style},className:Me(Pt.className,Hn&&re.markActive)}),Rt.label!=null?w.jsx(J,{"aria-hidden":!0,"data-index":hr,...Xr,...!Ii(J)&&{markLabelActive:Hn},style:{...pi,...Xr.style},className:Me(re.markLabel,Xr.className,Hn&&re.markLabelActive),children:Rt.label}):null]},hr)}),Ke.map((Rt,hr)=>{const Ao=Tv(Rt,$,E),pi=K[Ne].offset(Ao),Hn=Y==="off"?Nue:ke;return w.jsx(Hn,{...!Ii(Hn)&&{valueLabelFormat:G,valueLabelDisplay:Y,value:typeof G=="function"?G(W(Rt),hr):G,index:hr,open:Ee===hr||ze===hr||Y==="on",disabled:b},...yt,children:w.jsx(ut,{"data-index":hr,...ot,className:Me(re.thumb,ot.className,ze===hr&&re.active,Fe===hr&&re.focusVisible),style:{...pi,...le(hr),...ot.style},children:w.jsx(ae,{"data-index":hr,"aria-label":x?x(hr):a,"aria-valuenow":W(Rt),"aria-labelledby":s,"aria-valuetext":S?S(W(Rt),hr):i,value:Ke[hr],...an})})},hr)})]})});function jue(t={}){const{autoHideDuration:e=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=t,i=bl();A.useEffect(()=>{if(!o)return;function S(T){T.defaultPrevented||T.key==="Escape"&&(n==null||n(T,"escapeKeyDown"))}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[o,n]);const s=bn((S,T)=>{n==null||n(S,T)}),l=bn(S=>{!n||S==null||i.start(S,()=>{s(null,"timeout")})});A.useEffect(()=>(o&&l(e),i.clear),[o,e,l,i]);const d=S=>{n==null||n(S,"clickaway")},h=i.clear,u=A.useCallback(()=>{e!=null&&l(a??e*.5)},[e,a,l]),f=S=>T=>{const E=S.onBlur;E==null||E(T),u()},g=S=>T=>{const E=S.onFocus;E==null||E(T),h()},y=S=>T=>{const E=S.onMouseEnter;E==null||E(T),h()},b=S=>T=>{const E=S.onMouseLeave;E==null||E(T),u()};return A.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",u),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",u),window.removeEventListener("blur",h)}},[r,o,u,h]),{getRootProps:(S={})=>{const T={...Sl(t),...Sl(S)};return{role:"presentation",...S,...T,onBlur:f(T),onFocus:g(T),onMouseEnter:y(T),onMouseLeave:b(T)}},onClickAway:d}}function Lue(t){return dt("MuiSnackbarContent",t)}ct("MuiSnackbarContent",["root","message","action"]);const zue=t=>{const{classes:e}=t;return ht({root:["root"],action:["action"],message:["message"]},Lue,e)},Fue=de(zn,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(t,e)=>e.root})(rt(({theme:t})=>{const e=t.palette.mode==="light"?.8:.98,r=pv(t.palette.background.default,e);return{...t.typography.body2,color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Bue=de("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0"}),Wue=de("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Hue=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:s="alert",...l}=n,d=n,h=zue(d);return w.jsxs(Fue,{role:s,square:!0,elevation:6,className:Me(h.root,a),ownerState:d,ref:r,...l,children:[w.jsx(Bue,{className:h.message,ownerState:d,children:i}),o?w.jsx(Wue,{className:h.action,ownerState:d,children:o}):null]})});function Uue(t){return dt("MuiSnackbar",t)}ct("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Vue=t=>{const{classes:e,anchorOrigin:r}=t,n={root:["root",`anchorOrigin${me(r.vertical)}${me(r.horizontal)}`]};return ht(n,Uue,e)},WR=de("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`anchorOrigin${me(r.anchorOrigin.vertical)}${me(r.anchorOrigin.horizontal)}`]]}})(rt(({theme:t})=>({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical==="top",style:{top:8,[t.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!=="top",style:{bottom:8,[t.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[t.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[t.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="center",style:{[t.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Ov=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiSnackbar"}),o=ai(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:h,className:u,ClickAwayListenerProps:f,ContentProps:g,disableWindowBlurListener:y=!1,message:b,onBlur:x,onClose:S,onFocus:T,onMouseEnter:E,onMouseLeave:$,open:k,resumeHideDuration:O,TransitionComponent:M=nf,transitionDuration:R=a,TransitionProps:{onEnter:j,onExited:I,...z}={},...W}=n,L={...n,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:d,disableWindowBlurListener:y,TransitionComponent:M,transitionDuration:R},F=Vue(L),{getRootProps:H,onClickAway:q}=jue({...L}),[ee,Y]=A.useState(!0),G=nn({elementType:WR,getSlotProps:H,externalForwardedProps:W,ownerState:L,additionalProps:{ref:r},className:[F.root,u]}),te=K=>{Y(!0),I&&I(K)},B=(K,he)=>{Y(!1),j&&j(K,he)};return!k&&ee?null:w.jsx(ple,{onClickAway:q,...f,children:w.jsx(WR,{...G,children:w.jsx(M,{appear:!0,in:k,timeout:R,direction:s==="top"?"down":"up",onEnter:B,onExited:te,...z,children:h||w.jsx(Hue,{message:b,action:i,...g})})})})});function que(t){return dt("MuiTooltip",t)}const Br=ct("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Gue(t){return Math.round(t*1e5)/1e5}const Xue=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:a}=t,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${me(a.split("-")[0])}`],arrow:["arrow"]};return ht(i,que,e)},Jue=de(VW,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(rt(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Br.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Br.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Br.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Br.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Br.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Br.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Br.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Br.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Yue=de("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${me(r.placement.split("-")[0])}`]]}})(rt(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Qt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${Br.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Br.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Br.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Br.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${Gue(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Br.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Br.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Br.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Br.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Br.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Br.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Br.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Br.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Br.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Br.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Kue=de("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(rt(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Qt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let mg=!1;const HR=new Sy;let zp={x:0,y:0};function gg(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const Zr=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:i,components:s={},componentsProps:l={},describeChild:d=!1,disableFocusListener:h=!1,disableHoverListener:u=!1,disableInteractive:f=!1,disableTouchListener:g=!1,enterDelay:y=100,enterNextDelay:b=0,enterTouchDelay:x=700,followCursor:S=!1,id:T,leaveDelay:E=0,leaveTouchDelay:$=1500,onClose:k,onOpen:O,open:M,placement:R="bottom",PopperComponent:j,PopperProps:I={},slotProps:z={},slots:W={},title:L,TransitionComponent:F,TransitionProps:H,...q}=n,ee=A.isValidElement(a)?a:w.jsx("span",{children:a}),Y=ai(),G=Ul(),[te,B]=A.useState(),[K,he]=A.useState(null),fe=A.useRef(!1),ge=f||S,Ee=bl(),ze=bl(),Ne=bl(),Fe=bl(),[Pe,Ye]=qh({controlled:M,default:!1,name:"Tooltip",state:"open"});let Be=Pe;const Ke=xy(T),Xe=A.useRef(),ve=bn(()=>{Xe.current!==void 0&&(document.body.style.WebkitUserSelect=Xe.current,Xe.current=void 0),Fe.clear()});A.useEffect(()=>ve,[ve]);const le=Tt=>{HR.clear(),mg=!0,Ye(!0),O&&!Be&&O(Tt)},re=bn(Tt=>{HR.start(800+E,()=>{mg=!1}),Ye(!1),k&&Be&&k(Tt),Ee.start(Y.transitions.duration.shortest,()=>{fe.current=!1})}),He=Tt=>{fe.current&&Tt.type!=="touchstart"||(te&&te.removeAttribute("title"),ze.clear(),Ne.clear(),y||mg&&b?ze.start(mg?b:y,()=>{le(Tt)}):le(Tt))},Ve=Tt=>{ze.clear(),Ne.start(E,()=>{re(Tt)})},[,at]=A.useState(!1),ut=Tt=>{iu(Tt.target)||(at(!1),Ve(Tt))},ke=Tt=>{te||B(Tt.currentTarget),iu(Tt.target)&&(at(!0),He(Tt))},pt=Tt=>{fe.current=!0;const An=ee.props;An.onTouchStart&&An.onTouchStart(Tt)},J=Tt=>{pt(Tt),Ne.clear(),Ee.clear(),ve(),Xe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Fe.start(x,()=>{document.body.style.WebkitUserSelect=Xe.current,He(Tt)})},ae=Tt=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(Tt),ve(),Ne.start($,()=>{re(Tt)})};A.useEffect(()=>{if(!Be)return;function Tt(An){An.key==="Escape"&&re(An)}return document.addEventListener("keydown",Tt),()=>{document.removeEventListener("keydown",Tt)}},[re,Be]);const Se=Mr(Hl(ee),B,r);!L&&L!==0&&(Be=!1);const Te=A.useRef(),Oe=Tt=>{const An=ee.props;An.onMouseMove&&An.onMouseMove(Tt),zp={x:Tt.clientX,y:Tt.clientY},Te.current&&Te.current.update()},Ce={},nt=typeof L=="string";d?(Ce.title=!Be&&nt&&!u?L:null,Ce["aria-describedby"]=Be?Ke:null):(Ce["aria-label"]=nt?L:null,Ce["aria-labelledby"]=Be&&!nt?Ke:null);const Le={...Ce,...q,...ee.props,className:Me(q.className,ee.props.className),onTouchStart:pt,ref:Se,...S?{onMouseMove:Oe}:{}},mt={};g||(Le.onTouchStart=J,Le.onTouchEnd=ae),u||(Le.onMouseOver=gg(He,Le.onMouseOver),Le.onMouseLeave=gg(Ve,Le.onMouseLeave),ge||(mt.onMouseOver=He,mt.onMouseLeave=Ve)),h||(Le.onFocus=gg(ke,Le.onFocus),Le.onBlur=gg(ut,Le.onBlur),ge||(mt.onFocus=ke,mt.onBlur=ut));const vt={...n,isRtl:G,arrow:o,disableInteractive:ge,placement:R,PopperComponentProp:j,touch:fe.current},wt=typeof z.popper=="function"?z.popper(vt):z.popper,pe=A.useMemo(()=>{var An,Vu;let Tt=[{name:"arrow",enabled:!!K,options:{element:K,padding:4}}];return(An=I.popperOptions)!=null&&An.modifiers&&(Tt=Tt.concat(I.popperOptions.modifiers)),(Vu=wt==null?void 0:wt.popperOptions)!=null&&Vu.modifiers&&(Tt=Tt.concat(wt.popperOptions.modifiers)),{...I.popperOptions,...wt==null?void 0:wt.popperOptions,modifiers:Tt}},[K,I.popperOptions,wt==null?void 0:wt.popperOptions]),$e=Xue(vt),ot=typeof z.transition=="function"?z.transition(vt):z.transition,yt={slots:{popper:s.Popper,transition:s.Transition??F,tooltip:s.Tooltip,arrow:s.Arrow,...W},slotProps:{arrow:z.arrow??l.arrow,popper:{...I,...wt??l.popper},tooltip:z.tooltip??l.tooltip,transition:{...H,...ot??l.transition}}},[Pt,Xr]=un("popper",{elementType:Jue,externalForwardedProps:yt,ownerState:vt,className:Me($e.popper,I==null?void 0:I.className)}),[an,Rt]=un("transition",{elementType:nf,externalForwardedProps:yt,ownerState:vt}),[hr,Ao]=un("tooltip",{elementType:Yue,className:$e.tooltip,externalForwardedProps:yt,ownerState:vt}),[pi,Hn]=un("arrow",{elementType:Kue,className:$e.arrow,externalForwardedProps:yt,ownerState:vt,ref:he});return w.jsxs(A.Fragment,{children:[A.cloneElement(ee,Le),w.jsx(Pt,{as:j??VW,placement:R,anchorEl:S?{getBoundingClientRect:()=>({top:zp.y,left:zp.x,right:zp.x,bottom:zp.y,width:0,height:0})}:te,popperRef:Te,open:te?Be:!1,id:Ke,transition:!0,...mt,...Xr,popperOptions:pe,children:({TransitionProps:Tt})=>w.jsx(an,{timeout:Y.transitions.duration.shorter,...Tt,...Rt,children:w.jsxs(hr,{...Ao,children:[L,o?w.jsx(pi,{...Hn}):null]})})})]})});function Zue(t){return dt("MuiSwitch",t)}const jn=ct("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Que=t=>{const{classes:e,edge:r,size:n,color:o,checked:a,disabled:i}=t,s={root:["root",r&&`edge${me(r)}`,`size${me(n)}`],switchBase:["switchBase",`color${me(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=ht(s,Zue,e);return{...e,...l}},epe=de("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.edge&&e[`edge${me(r.edge)}`],e[`size${me(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,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,[`& .${jn.thumb}`]:{width:16,height:16},[`& .${jn.switchBase}`]:{padding:4,[`&.${jn.checked}`]:{transform:"translateX(16px)"}}}}]}),tpe=de(uO,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.switchBase,{[`& .${jn.input}`]:e.input},r.color!=="default"&&e[`color${me(r.color)}`]]}})(rt(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${jn.checked}`]:{transform:"translateX(20px)"},[`&.${jn.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${jn.checked} + .${jn.track}`]:{opacity:.5},[`&.${jn.disabled} + .${jn.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${jn.input}`]:{left:"-100%",width:"300%"}})),rt(({theme:t})=>({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Qt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(xr(["light"])).map(([e])=>({props:{color:e},style:{[`&.${jn.checked}`]:{color:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Qt(t.palette[e].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${jn.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e}DisabledColor`]:`${t.palette.mode==="light"?Ol(t.palette[e].main,.62):Tl(t.palette[e].main,.55)}`}},[`&.${jn.checked} + .${jn.track}`]:{backgroundColor:(t.vars||t).palette[e].main}}}))]}))),rpe=de("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})(rt(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`}))),npe=de("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(rt(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),ih=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:l,...d}=n,h={...n,color:a,edge:i,size:s},u=Que(h),f=w.jsx(npe,{className:u.thumb,ownerState:h});return w.jsxs(epe,{className:Me(u.root,o),sx:l,ownerState:h,children:[w.jsx(tpe,{type:"checkbox",icon:f,checkedIcon:f,ref:r,ownerState:h,...d,classes:{...u,root:u.switchBase}}),w.jsx(rpe,{className:u.track,ownerState:h})]})});function ope(t){return dt("MuiTab",t)}const zo=ct("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),ape=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:s,disabled:l}=t,d={root:["root",a&&i&&"labelIcon",`textColor${me(r)}`,n&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return ht(d,ope,e)},ipe=de(Li,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${me(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${zo.iconWrapper}`]:e.iconWrapper},{[`& .${zo.icon}`]:e.icon}]}})(rt(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${zo.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${zo.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${zo.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${zo.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${zo.selected}`]:{opacity:1},[`&.${zo.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${zo.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${zo.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${zo.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${zo.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),Uo=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:d="top",indicator:h,label:u,onChange:f,onClick:g,onFocus:y,selected:b,selectionFollowsFocus:x,textColor:S="inherit",value:T,wrapped:E=!1,...$}=n,k={...n,disabled:a,disableFocusRipple:i,selected:b,icon:!!l,iconPosition:d,label:!!u,fullWidth:s,textColor:S,wrapped:E},O=ape(k),M=l&&u&&A.isValidElement(l)?A.cloneElement(l,{className:Me(O.icon,l.props.className)}):l,R=I=>{!b&&f&&f(I,T),g&&g(I)},j=I=>{x&&!b&&f&&f(I,T),y&&y(I)};return w.jsxs(ipe,{focusRipple:!i,className:Me(O.root,o),ref:r,role:"tab","aria-selected":b,disabled:a,onClick:R,onFocus:j,ownerState:k,tabIndex:b?0:-1,...$,children:[d==="top"||d==="start"?w.jsxs(A.Fragment,{children:[M,u]}):w.jsxs(A.Fragment,{children:[u,M]}),h]})});function spe(t){return dt("MuiToolbar",t)}ct("MuiToolbar",["root","gutters","regular","dense"]);const lpe=t=>{const{classes:e,disableGutters:r,variant:n}=t;return ht({root:["root",!r&&"gutters",n]},spe,e)},cpe=de("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(rt(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),af=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular",...l}=n,d={...n,component:a,disableGutters:i,variant:s},h=lpe(d);return w.jsx(cpe,{as:a,className:Me(h.root,o),ref:r,ownerState:d,...l})}),dpe=Ge(w.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),upe=Ge(w.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function ppe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function hpe(t,e,r,n={},o=()=>{}){const{ease:a=ppe,duration:i=300}=n;let s=null;const l=e[t];let d=!1;const h=()=>{d=!0},u=f=>{if(d){o(new Error("Animation cancelled"));return}s===null&&(s=f);const g=Math.min(1,(f-s)/i);if(e[t]=a(g)*(r-l)+l,g>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(u)};return l===r?(o(new Error("Element already at target position")),h):(requestAnimationFrame(u),h)}const fpe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function mpe(t){const{onChange:e,...r}=t,n=A.useRef(),o=A.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return io(()=>{const i=wy(()=>{const l=n.current;a(),l!==n.current&&e(n.current)}),s=Oa(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[e]),A.useEffect(()=>{a(),e(n.current)},[e]),w.jsx("div",{style:fpe,...r,ref:o})}function gpe(t){return dt("MuiTabScrollButton",t)}const vpe=ct("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ype=t=>{const{classes:e,orientation:r,disabled:n}=t;return ht({root:["root",r,n&&"disabled"]},gpe,e)},_pe=de(Li,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${vpe.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),bpe=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:i={},direction:s,orientation:l,disabled:d,...h}=n,u=Ul(),f={isRtl:u,...n},g=ype(f),y=a.StartScrollButtonIcon??dpe,b=a.EndScrollButtonIcon??upe,x=nn({elementType:y,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),S=nn({elementType:b,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return w.jsx(_pe,{component:"div",className:Me(g.root,o),ref:r,role:null,ownerState:f,tabIndex:null,...h,style:{...h.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:s==="left"?w.jsx(y,{...x}):w.jsx(b,{...S})})});function wpe(t){return dt("MuiTabs",t)}const t1=ct("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),UR=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,VR=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,vg=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(t,o);else{o.focus();return}}},xpe=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=t;return ht({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},wpe,l)},Spe=de("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${t1.scrollButtons}`]:e.scrollButtons},{[`& .${t1.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(rt(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${t1.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),Cpe=de("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),$pe=de("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),kpe=de("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(rt(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),Epe=de(mpe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),qR={},sH=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiTabs"}),o=ai(),a=Ul(),{"aria-label":i,"aria-labelledby":s,action:l,centered:d=!1,children:h,className:u,component:f="div",allowScrollButtonsMobile:g=!1,indicatorColor:y="primary",onChange:b,orientation:x="horizontal",ScrollButtonComponent:S=bpe,scrollButtons:T="auto",selectionFollowsFocus:E,slots:$={},slotProps:k={},TabIndicatorProps:O={},TabScrollButtonProps:M={},textColor:R="primary",value:j,variant:I="standard",visibleScrollbar:z=!1,...W}=n,L=I==="scrollable",F=x==="vertical",H=F?"scrollTop":"scrollLeft",q=F?"top":"left",ee=F?"bottom":"right",Y=F?"clientHeight":"clientWidth",G=F?"height":"width",te={...n,component:f,allowScrollButtonsMobile:g,indicatorColor:y,orientation:x,vertical:F,scrollButtons:T,textColor:R,variant:I,visibleScrollbar:z,fixed:!L,hideScrollbar:L&&!z,scrollableX:L&&!F,scrollableY:L&&F,centered:d&&!L,scrollButtonsHideMobile:!g},B=xpe(te),K=nn({elementType:$.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:te}),he=nn({elementType:$.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:te}),[fe,ge]=A.useState(!1),[Ee,ze]=A.useState(qR),[Ne,Fe]=A.useState(!1),[Pe,Ye]=A.useState(!1),[Be,Ke]=A.useState(!1),[Xe,ve]=A.useState({overflow:"hidden",scrollbarWidth:0}),le=new Map,re=A.useRef(null),He=A.useRef(null),Ve=()=>{const pe=re.current;let $e;if(pe){const yt=pe.getBoundingClientRect();$e={clientWidth:pe.clientWidth,scrollLeft:pe.scrollLeft,scrollTop:pe.scrollTop,scrollWidth:pe.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let ot;if(pe&&j!==!1){const yt=He.current.children;if(yt.length>0){const Pt=yt[le.get(j)];ot=Pt?Pt.getBoundingClientRect():null}}return{tabsMeta:$e,tabMeta:ot}},at=bn(()=>{const{tabsMeta:pe,tabMeta:$e}=Ve();let ot=0,yt;F?(yt="top",$e&&pe&&(ot=$e.top-pe.top+pe.scrollTop)):(yt=a?"right":"left",$e&&pe&&(ot=(a?-1:1)*($e[yt]-pe[yt]+pe.scrollLeft)));const Pt={[yt]:ot,[G]:$e?$e[G]:0};if(typeof Ee[yt]!="number"||typeof Ee[G]!="number")ze(Pt);else{const Xr=Math.abs(Ee[yt]-Pt[yt]),an=Math.abs(Ee[G]-Pt[G]);(Xr>=1||an>=1)&&ze(Pt)}}),ut=(pe,{animation:$e=!0}={})=>{$e?hpe(H,re.current,pe,{duration:o.transitions.duration.standard}):re.current[H]=pe},ke=pe=>{let $e=re.current[H];F?$e+=pe:$e+=pe*(a?-1:1),ut($e)},pt=()=>{const pe=re.current[Y];let $e=0;const ot=Array.from(He.current.children);for(let yt=0;ytpe){yt===0&&($e=pe);break}$e+=Pt[Y]}return $e},J=()=>{ke(-1*pt())},ae=()=>{ke(pt())},Se=A.useCallback(pe=>{ve({overflow:null,scrollbarWidth:pe})},[]),Te=()=>{const pe={};pe.scrollbarSizeListener=L?w.jsx(Epe,{onChange:Se,className:Me(B.scrollableX,B.hideScrollbar)}):null;const ot=L&&(T==="auto"&&(Ne||Pe)||T===!0);return pe.scrollButtonStart=ot?w.jsx(S,{slots:{StartScrollButtonIcon:$.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:K},orientation:x,direction:a?"right":"left",onClick:J,disabled:!Ne,...M,className:Me(B.scrollButtons,M.className)}):null,pe.scrollButtonEnd=ot?w.jsx(S,{slots:{EndScrollButtonIcon:$.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:he},orientation:x,direction:a?"left":"right",onClick:ae,disabled:!Pe,...M,className:Me(B.scrollButtons,M.className)}):null,pe},Oe=bn(pe=>{const{tabsMeta:$e,tabMeta:ot}=Ve();if(!(!ot||!$e)){if(ot[q]<$e[q]){const yt=$e[H]+(ot[q]-$e[q]);ut(yt,{animation:pe})}else if(ot[ee]>$e[ee]){const yt=$e[H]+(ot[ee]-$e[ee]);ut(yt,{animation:pe})}}}),Ce=bn(()=>{L&&T!==!1&&Ke(!Be)});A.useEffect(()=>{const pe=wy(()=>{re.current&&at()});let $e;const ot=Xr=>{Xr.forEach(an=>{an.removedNodes.forEach(Rt=>{$e==null||$e.unobserve(Rt)}),an.addedNodes.forEach(Rt=>{$e==null||$e.observe(Rt)})}),pe(),Ce()},yt=Oa(re.current);yt.addEventListener("resize",pe);let Pt;return typeof ResizeObserver<"u"&&($e=new ResizeObserver(pe),Array.from(He.current.children).forEach(Xr=>{$e.observe(Xr)})),typeof MutationObserver<"u"&&(Pt=new MutationObserver(ot),Pt.observe(He.current,{childList:!0})),()=>{pe.clear(),yt.removeEventListener("resize",pe),Pt==null||Pt.disconnect(),$e==null||$e.disconnect()}},[at,Ce]),A.useEffect(()=>{const pe=Array.from(He.current.children),$e=pe.length;if(typeof IntersectionObserver<"u"&&$e>0&&L&&T!==!1){const ot=pe[0],yt=pe[$e-1],Pt={root:re.current,threshold:.99},Xr=Ao=>{Fe(!Ao[0].isIntersecting)},an=new IntersectionObserver(Xr,Pt);an.observe(ot);const Rt=Ao=>{Ye(!Ao[0].isIntersecting)},hr=new IntersectionObserver(Rt,Pt);return hr.observe(yt),()=>{an.disconnect(),hr.disconnect()}}},[L,T,Be,h==null?void 0:h.length]),A.useEffect(()=>{ge(!0)},[]),A.useEffect(()=>{at()}),A.useEffect(()=>{Oe(qR!==Ee)},[Oe,Ee]),A.useImperativeHandle(l,()=>({updateIndicator:at,updateScrollButtons:Ce}),[at,Ce]);const nt=w.jsx(kpe,{...O,className:Me(B.indicator,O.className),ownerState:te,style:{...Ee,...O.style}});let Le=0;const mt=A.Children.map(h,pe=>{if(!A.isValidElement(pe))return null;const $e=pe.props.value===void 0?Le:pe.props.value;le.set($e,Le);const ot=$e===j;return Le+=1,A.cloneElement(pe,{fullWidth:I==="fullWidth",indicator:ot&&!fe&&nt,selected:ot,selectionFollowsFocus:E,onChange:b,textColor:R,value:$e,...Le===1&&j===!1&&!pe.props.tabIndex?{tabIndex:0}:{}})}),vt=pe=>{const $e=He.current,ot=qr($e).activeElement;if(ot.getAttribute("role")!=="tab")return;let Pt=x==="horizontal"?"ArrowLeft":"ArrowUp",Xr=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(Pt="ArrowRight",Xr="ArrowLeft"),pe.key){case Pt:pe.preventDefault(),vg($e,ot,VR);break;case Xr:pe.preventDefault(),vg($e,ot,UR);break;case"Home":pe.preventDefault(),vg($e,null,UR);break;case"End":pe.preventDefault(),vg($e,null,VR);break}},wt=Te();return w.jsxs(Spe,{className:Me(B.root,u),ownerState:te,ref:r,as:f,...W,children:[wt.scrollButtonStart,wt.scrollbarSizeListener,w.jsxs(Cpe,{className:B.scroller,ownerState:te,style:{overflow:Xe.overflow,[F?`margin${a?"Left":"Right"}`:"marginBottom"]:z?void 0:-Xe.scrollbarWidth},ref:re,children:[w.jsx($pe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:B.flexContainer,ownerState:te,onKeyDown:vt,ref:He,role:"tablist",children:mt}),fe&&nt]}),wt.scrollButtonEnd]})});function Tpe(t){return dt("MuiTextField",t)}ct("MuiTextField",["root"]);const Ope={standard:ya,filled:hO,outlined:gO},Dpe=t=>{const{classes:e}=t;return ht({root:["root"]},Tpe,e)},Ape=de(_a,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Ht=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:d,disabled:h=!1,error:u=!1,FormHelperTextProps:f,fullWidth:g=!1,helperText:y,id:b,InputLabelProps:x,inputProps:S,InputProps:T,inputRef:E,label:$,maxRows:k,minRows:O,multiline:M=!1,name:R,onBlur:j,onChange:I,onFocus:z,placeholder:W,required:L=!1,rows:F,select:H=!1,SelectProps:q,slots:ee={},slotProps:Y={},type:G,value:te,variant:B="outlined",...K}=n,he={...n,autoFocus:a,color:l,disabled:h,error:u,fullWidth:g,multiline:M,required:L,select:H,variant:B},fe=Dpe(he),ge=xy(b),Ee=y&&ge?`${ge}-helper-text`:void 0,ze=$&&ge?`${ge}-label`:void 0,Ne=Ope[B],Fe={slots:ee,slotProps:{input:T,inputLabel:x,htmlInput:S,formHelperText:f,select:q,...Y}},Pe={},Ye=Fe.slotProps.inputLabel;B==="outlined"&&(Ye&&typeof Ye.shrink<"u"&&(Pe.notched=Ye.shrink),Pe.label=$),H&&((!q||!q.native)&&(Pe.id=void 0),Pe["aria-describedby"]=void 0);const[Be,Ke]=un("input",{elementType:Ne,externalForwardedProps:Fe,additionalProps:Pe,ownerState:he}),[Xe,ve]=un("inputLabel",{elementType:$l,externalForwardedProps:Fe,ownerState:he}),[le,re]=un("htmlInput",{elementType:"input",externalForwardedProps:Fe,ownerState:he}),[He,Ve]=un("formHelperText",{elementType:gce,externalForwardedProps:Fe,ownerState:he}),[at,ut]=un("select",{elementType:Bn,externalForwardedProps:Fe,ownerState:he}),ke=w.jsx(Be,{"aria-describedby":Ee,autoComplete:o,autoFocus:a,defaultValue:d,fullWidth:g,multiline:M,name:R,rows:F,maxRows:k,minRows:O,type:G,value:te,id:ge,inputRef:E,onBlur:j,onChange:I,onFocus:z,placeholder:W,inputProps:re,slots:{input:ee.htmlInput?le:void 0},...Ke});return w.jsxs(Ape,{className:Me(fe.root,s),disabled:h,error:u,fullWidth:g,ref:r,required:L,color:l,variant:B,ownerState:he,...K,children:[$!=null&&$!==""&&w.jsx(Xe,{htmlFor:ge,id:ze,...ve,children:$}),H?w.jsx(at,{"aria-describedby":Ee,id:ge,labelId:ze,value:te,input:ke,...ut,children:i}):ke,y&&w.jsx(He,{id:Ee,...Ve,children:y})]})});var lH={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},GR=m.createContext&&m.createContext(lH),Ipe=["attr","size","title"];function Mpe(t,e){if(t==null)return{};var r=Ppe(t,e),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Ppe(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Dv(){return Dv=Object.assign?Object.assign.bind():function(t){for(var e=1;em.createElement(e.tag,Av({key:r},e.attr),cH(e.child)))}function Pr(t){return e=>m.createElement(Lpe,Dv({attr:Av({},t.attr)},e),cH(t.child))}function Lpe(t){var e=r=>{var{attr:n,size:o,title:a}=t,i=Mpe(t,Ipe),s=o||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),m.createElement("svg",Dv({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:l,style:Av(Av({color:t.color||r.color},r.style),t.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&m.createElement("title",null,a),t.children)};return GR!==void 0?m.createElement(GR.Consumer,null,r=>e(r)):e(lH)}function yu(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"},child:[]}]})(t)}function zpe(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3 5 6.99h3V14h2V6.99h3L9 3z"},child:[]}]})(t)}function Il(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(t)}function dH(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 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-2zm0 16H8V7h11v14z"},child:[]}]})(t)}function uH(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"},child:[]}]})(t)}function pH(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"},child:[]}]})(t)}function JR(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},child:[]}]})(t)}function Fpe(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{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-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"},child:[]}]})(t)}function r1(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},child:[]}]})(t)}function Bpe(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"},child:[]}]})(t)}function sh(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(t)}function wo(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{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"},child:[]}]})(t)}function YR(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"},child:[]}]})(t)}function sf(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(t)}function hH(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"},child:[]}]})(t)}function HE(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"},child:[]}]})(t)}const n1=11/23/100;function KR(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substr(1,2),16),e.g=parseInt(t.substr(3,2),16),e.b=parseInt(t.substr(5,2),16);else if(t.length===4){const r=t.substr(1,1),n=t.substr(2,1),o=t.substr(3,1);e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function Wpe(t){return`#${Math.round(t.r).toString(16)}${Math.round(t.g).toString(16)}${Math.round(t.b).toString(16)}`}function Hpe(t,e,r){const n=KR(t),o=KR(e);return n.r+=o.r*(.05+n1*(r-1)),n.g+=o.g*(.05+n1*(r-1)),n.b+=o.b*(.05+n1*(r-1)),Wpe(n)}function ZR(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:Hpe(t,e,n)};return r}function Upe(t,e){var i,s,l,d,h,u,f,g,y,b,x;let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:vn[200],"&:hover":{color:vn[100]}}},MuiPaper:ZR("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:vn[400],"&:hover":{color:vn[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:vn[200],"&:hover":{color:vn[100]}}},MuiPaper:ZR("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:vn[400],"&:hover":{color:vn[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="DX"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#a9a9a9"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:vn[400],"&:hover":{color:vn[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#F5F5F7"},secondary:{main:"#a9a9a9"},expert:"#BD1B24",text:{primary:"#007AFE",secondary:"#007AFE",disabled:"#007AFEAA"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:vn[400],"&:hover":{color:vn[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:(s=(i=r.palette)==null?void 0:i.primary)==null?void 0:s.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:mE[300],dark:mE[400]});const o=Xh(r),a=o.palette;return Xh(o,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:(l=a.grey)==null?void 0:l[300],color:a.getContrastText&&((d=a.grey)!=null&&d[300])?a.getContrastText(a.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:(h=a.text)==null?void 0:h.primary,borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${(u=a.action)==null?void 0:u.disabledBackground}`},"&:hover":{borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Qt(((f=a.text)==null?void 0:f.primary)||"",((g=a.action)==null?void 0:g.hoverOpacity)||.04)}}},{props:{variant:"text",color:"grey"},style:{color:(y=a.text)==null?void 0:y.primary,"&:hover":{backgroundColor:Qt(((b=a.text)==null?void 0:b.primary)||"",((x=a.action)==null?void 0:x.hoverOpacity)||.04)}}}]}}})}function Vpe(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function qpe(t){return(t==null?void 0:t.rows.map(e=>e.value).filter(e=>!!e))??[]}function QR(t){return t!=null&&t.startsWith("system.host.")||(t=`system.host.${t}`),t}function e5(t){return new Promise(e=>{setTimeout(e,t)})}function yg(t){t=(t||"").toString();const e=t[0]==="*",r=t[t.length-1]==="*";return t=t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(e?"":"^")+t+(r?"":"$")}var Ga;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(Ga||(Ga={}));var Ss;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(Ss||(Ss={}));Ss.PERMISSION_ERROR;Ss.NOT_CONNECTED;const Gpe=["material","echarts","vis"];class Oi{constructor(e){X(this,"props");X(this,"ignoreState","");X(this,"connected",!1);X(this,"subscribed",!1);X(this,"firstConnect",!0);X(this,"waitForRestart",!1);X(this,"loaded",!1);X(this,"simStates",{});X(this,"statesSubscribes",{});X(this,"filesSubscribes",{});X(this,"objectsSubscribes",{});X(this,"objects",{});X(this,"states",{});X(this,"acl",null);X(this,"isSecure",!1);X(this,"onReadyDone",!1);X(this,"onConnectionHandlers",[]);X(this,"onLogHandlers",[]);X(this,"onCmdStdoutHandler");X(this,"onCmdStderrHandler");X(this,"onCmdExitHandler");X(this,"_socket");X(this,"_waitForSocketPromise");X(this,"_waitForFirstConnectionPromise",Vpe());X(this,"_instanceSubscriptions",{});X(this,"_promises",{});X(this,"_authTimer");X(this,"_systemConfig");X(this,"systemLang","en");this.props=this.applyDefaultProps(e),this.waitForSocketLib().then(()=>this.startSocket()).catch(r=>{alert(`Socket connection could not be initialized: ${r}`)})}applyDefaultProps(e){return{...e,protocol:e.protocol||window.location.protocol,host:e.host||window.location.hostname,port:e.port||(window.location.port==="3000"?8081:window.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}}onError(e){(this.props.onError??console.error)(e)}get systemConfig(){return this._systemConfig}static isWeb(){return window.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(e,r)=>{if(typeof window.io>"u"&&typeof window.iob>"u")if(typeof window.registerSocketOnLoad=="function")window.registerSocketOnLoad(()=>e());else{for(let n=1;n<=30;n++){if(window.io||window.iob)return e();await e5(100)}r(new Error("Socket library could not be loaded!"))}else e()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let e=this.props.host,r=this.props.port,n=(this.props.protocol||window.location.protocol).replace(":",""),o=window.location.pathname;if(window.location.hostname==="iobroker.net"||window.location.hostname==="iobroker.pro")o="";else{if(window.socketUrl){const s=new URL(window.socketUrl);e=s.hostname,r=s.port,n=s.protocol.replace(":","")}const i=o.lastIndexOf("/");if(i!==-1&&(o=o.substring(0,i+1)),Oi.isWeb()){const s=o.split("/");s.length>2&&(s.pop(),s.pop(),Gpe.includes(s[s.length-1])&&s.pop(),o=s.join("/"),o.endsWith("/")||(o+="/"))}}const a=r?`${n}://${e}:${r}`:`${n}://${e}`;return this._socket=(window.io||window.iob).connect(a,{path:o.endsWith("/")?`${o}socket.io`:`${o}/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",i=>{this.onReadyDone=!1,i!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(s=>{const[l,d,h]=s.version.split(".");parseInt(l,10)*1e4+parseInt(d,10)*100+parseInt(h,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(f,g)=>this.onPreConnect(f,g))}).catch(s=>this.onError({message:s.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(s,l)=>{this.onPreConnect(s,l)})}),this._socket.on("reconnect",()=>{var i,s;this.onReadyDone=!1,(s=(i=this.props).onProgress)==null||s.call(i,Ga.READY),this.connected=!0,this.waitForRestart?window.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(l=>l(!0)))}),this._socket.on("disconnect",()=>{var i,s;this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,(s=(i=this.props).onProgress)==null||s.call(i,Ga.CONNECTING),this.onConnectionHandlers.forEach(l=>l(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",i=>{var s,l;(l=(s=this.props).onLog)==null||l.call(s,i),this.onLogHandlers.forEach(d=>d(i))}),this._socket.on("error",i=>{let s;i==null?s="":typeof i.toString=="function"?s=i.toString():(s=JSON.stringify(i),console.error(`Received strange error: ${s}`)),s.includes("User not authorized")?this.authenticate():s.includes("websocket error")?(console.error(`Socket Error => reload: ${i}`),window.location.reload()):console.error(`Socket Error: ${i}`)}),this._socket.on("connect_error",i=>console.error(`Connect error: ${i}`)),this._socket.on("permissionError",i=>this.onError({message:"no permission",operation:i.operation,type:i.type,id:i.id||""})),this._socket.on("objectChange",(i,s)=>{setTimeout(()=>this.objectChange(i,s),0)}),this._socket.on("stateChange",(i,s)=>{setTimeout(()=>this.stateChange(i,s),0)}),this._socket.on("im",(i,s,l)=>{setTimeout(()=>this.instanceMessage(i,s,l),0)}),this._socket.on("fileChange",(i,s,l)=>{setTimeout(()=>this.fileChange(i,s,l),0)}),this._socket.on("cmdStdout",(i,s)=>{var l;(l=this.onCmdStdoutHandler)==null||l.call(this,i,s)}),this._socket.on("cmdStderr",(i,s)=>{var l;(l=this.onCmdStderrHandler)==null||l.call(this,i,s)}),this._socket.on("cmdExit",(i,s)=>{var l;(l=this.onCmdExitHandler)==null||l.call(this,i,s)}),Promise.resolve()}onPreConnect(e,r){var n,o;this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=r,this.waitForRestart?window.location.reload():(this.firstConnect?this.loadData().catch(a=>console.error(`Cannot load data: ${a}`)):(o=(n=this.props).onProgress)==null||o.call(n,Ga.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(a=>a(!0))),this._waitForFirstConnectionPromise.resolve()}static isCloud(){return window.location.hostname.includes("amazonaws.com")||window.location.hostname.includes("iobroker.in")?!0:typeof window.socketUrl>"u"?!1:window.socketUrl.includes("iobroker.in")||window.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getUserPermissions",(n,o)=>{n?r(n):e(o)})}})}async loadData(){if(this.loaded)return;const e=10;for(let r=1;r<=e;r++){if(this.doLoadData().catch(n=>console.error(`Cannot load data: ${n}`)),this.loaded)return;await e5(Oi.isCloud()?5e3:1e3)}}async doLoadData(){var e,r,n,o,a,i,s,l,d;if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(h){this.onError(`Cannot read user permissions: ${h}`);return}try{this.props.admin5only&&!Oi.isWeb()&&(!window.vendorPrefix||window.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(h){this.onError(`Cannot read system config: ${h}`);return}this._systemConfig&&(this.systemLang=(e=this._systemConfig.common)==null?void 0:e.language,this.systemLang||(this.systemLang=window.navigator.userLanguage||window.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)),(n=(r=this.props).onLanguage)==null||n.call(r,this.systemLang),this.loaded=!0,(a=(o=this.props).onProgress)==null||a.call(o,Ga.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),(s=(i=this.props).onProgress)==null||s.call(i,Ga.READY),this.onReadyDone||(this.onReadyDone=!0,(d=(l=this.props).onReady)==null||d.call(l,this.objects))}}authenticate(){window.location.search.includes("&href=")?window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}${window.location.search}${window.location.hash}`:window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}?login&href=${window.location.search}${window.location.hash}`}async subscribeState(...e){let r,n,o;e.length===3?[r,n,o]=e:([r,o]=e,n=!1);let a;if(Array.isArray(r)?a=r:a=[r],typeof o!="function")throw new Error("The state change handler must be a function!");const i=[];for(let s=0;ss.includes("*"))){let s;for(let l=0;lconsole.error(`Cannot call state change handler: ${f}`))}}}else try{const s=await(Oi.isWeb()?this.getStates(a):this.getForeignStates(a));if(s)for(const[l,d]of Object.entries(s)){const h=o(l,d);h instanceof Promise&&h.catch(u=>console.error(`Cannot call state change handler: ${u}`))}}catch(s){console.error(`Cannot getState "${a.join(", ")}": ${s.message}`);return}}async subscribeStateAsync(e,r){return this.subscribeState(e,r)}unsubscribeState(e,r){var a;let n;Array.isArray(e)?n=e:n=[e];const o=[];for(let i=0;i{try{const h=d(e,r,n);h instanceof Promise&&h.catch(u=>console.error(`Cannot call object change handler: ${u}`))}catch(h){console.error(`Error by callback of objectChange: ${h}`)}});if(o){const s=(i=(a=this.props).onObjectChange)==null?void 0:i.call(a,e,r);s instanceof Promise&&s.catch(l=>console.error(`Cannot call object change handler: ${l}`))}}stateChange(e,r){for(const n of Object.values(this.statesSubscribes))if(n.reg.test(e))for(const o of n.cbs)try{const a=o(e,r??null);a instanceof Promise&&a.catch(i=>console.error(`Cannot call state change handler: ${i}`))}catch(a){console.error(`Error by callback of stateChanged: ${a}`)}}instanceMessage(e,r,n){var o;(o=this._instanceSubscriptions[r])==null||o.forEach(a=>{if(a.messageType===e){const i=a.callback(n,r,e);i instanceof Promise&&i.catch(s=>console.error(`Cannot call instance message handler: ${s}`))}})}fileChange(e,r,n){for(const o of Object.values(this.filesSubscribes))if(o.regId.test(e)&&o.regFilePattern.test(r))for(const a of o.cbs)try{a(e,r,n)}catch(i){console.error(`Error by callback of fileChange: ${i}`)}}async subscribeFiles(e,r,n){if(typeof n!="function")throw new Error("The state change handler must be a function!");let o;Array.isArray(r)?o=r:o=[r];const a=[];for(let i=0;i{const u={elapsed:!1,clearTimeout:()=>{}};let f;n!==!1&&(f=setTimeout(()=>{u.elapsed=!0,o==null||o(),e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(Ss.TIMEOUT))},n??this.props.cmdTimeout),u.clearTimeout=()=>{clearTimeout(f)});try{await s(d,h,u)}catch(g){e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(g.toString()))}});return e&&(this._promises[e]=l),l}resetCache(e,r){r?Object.keys(this._promises).filter(n=>n.startsWith(e)).forEach(n=>{delete this._promises[n]}):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getStates",e,(o,a)=>{this.states=a??{},o?n(o):r(this.states)})}})}getState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r(this.simStates[e]||{val:null,ack:!0});return}this._socket.emit("getState",e,(o,a)=>{o?n(o):r(a)})}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getBinaryState",e,(o,a)=>{o?n(o):r(a)})}})}setBinaryState(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setBinaryState",e,r,a=>{a?o(a):n()})}})}setState(e,r,n){return typeof n=="boolean"&&(r={val:r,ack:n}),this.request({commandTimeout:!1,executor:(o,a)=>{if(e&&e===this.ignoreState){let i;if(typeof n=="boolean"||typeof r=="object"&&r.val!==void 0?i=r:i={val:r,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[e]=i,this.statesSubscribes[e])for(const s of this.statesSubscribes[e].cbs)try{const l=s(e,i);l instanceof Promise&&l.catch(d=>console.error(`Cannot call state change handler: ${d}`))}catch(l){console.error(`Error by callback of stateChanged: ${l}`)}o();return}this._socket.emit("setState",e,r,i=>{i?a(i):o()})}})}getObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{if(!e&&this.objects){n(this.objects);return}this._socket.emit(Oi.isWeb()?"getObjects":"getAllObjects",(a,i)=>{var s,l;r||(l=(s=this.props).onProgress)==null||l.call(s,Ga.OBJECTS_LOADED),a?o(a):(this.objects=i??{},n(this.objects))})}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjects",e,(o,a)=>{o?n(o):r(a)})}})}_subscribe(e){var r,n;if(e&&!this.subscribed){this.subscribed=!0,(r=this.props.autoSubscribes)!=null&&r.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const o=Object.keys(this.objectsSubscribes);o.length&&this._socket.emit("subscribeObjects",o),Object.keys(this.objectsSubscribes).forEach(a=>this._socket.emit("subscribeObjects",a)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(a=>this._socket.emit("subscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[i,s]=a.split("$%$");this._socket.emit("subscribeFiles",i,s)})}else if(!e&&this.subscribed){this.subscribed=!1,(n=this.props.autoSubscribes)!=null&&n.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const o=Object.keys(this.objectsSubscribes);o.length&&this._socket.emit("unsubscribeObjects",o),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(a=>this._socket.emit("unsubscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[i,s]=a.split("$%$");this._socket.emit("unsubscribeFiles",i,s)})}}requireLog(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("requireLog",e,o=>{o?n(o):r()})}})}delObject(e,r=!1){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObject",e,{maintenance:r},a=>{a?o(a):n()})}})}delObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObjects",e,{maintenance:r},a=>{a?o(a):n()})}})}setObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",e,(o,a)=>{o?n(o):r(a)})}})}sendTo(e,r,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendTo",e,r,n,a=>{o(a)})}})}extendObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("extendObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){const r=this.onLogHandlers.indexOf(e);r!==-1&&this.onLogHandlers.splice(r,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){const r=this.onConnectionHandlers.indexOf(e);r!==-1&&this.onConnectionHandlers.splice(r,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,r){return this.request({cacheKey:`enums_${e||"all"}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${e||""}`,endkey:e?`enum.${e}.香`:"enum.香"},(a,i)=>{if(a)o(a);else{const s={};if(i)for(let l=0;l{n=n||"",o=o||"香",this._socket.emit("getObjectView",e,r,{startkey:n,endkey:o},(s,l)=>{if(s)i(s);else{const d={};if(l&&l.rows)for(let h=0;h{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(n,o)=>{var a;n?r(n):e((a=o.rows)==null?void 0:a.map(i=>i.value).filter(i=>!!i))})}})}readDir(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("readDir",e,r,(a,i)=>{a?o(a):n(i)})}})}readFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit(n?"readFile64":"readFile",e,r,(i,s,l)=>{i?a(i):o({file:s,mimeType:l})})}})}writeFile64(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{if(typeof n=="string")this._socket.emit("writeFile",e,r,n,i=>{i?a(i):o()});else{const i=btoa(new Uint8Array(n).reduce((s,l)=>s+String.fromCharCode(l),""));this._socket.emit("writeFile64",e,r,i,s=>{s?a(s):o()})}}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFile",e,r,a=>{a?o(a):n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFolder",e,r,a=>{a?o(a):n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("rename",e,r,n,i=>{i?a(i):o()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("renameFile",e,r,n,i=>{i?a(i):o()})}})}cmdExec(e,r,n,o){return this.request({commandTimeout:o,executor:(a,i,s)=>{e=QR(e),this._socket.emit("cmdExec",e,n,r,l=>{s.elapsed||(s.clearTimeout(),l?i(l):a())})}})}getSystemConfig(e){return this.request({cacheKey:"systemConfig",forceUpdate:e,commandTimeout:!1,executor:async r=>{let n=await this.getObject("system.config");n??(n={}),n.common??(n.common={}),n.native??(n.native={}),r(n)}})}getCompactSystemConfig(e){return this.request({cacheKey:"systemConfigCommon",forceUpdate:e,commandTimeout:!1,requireAdmin:!0,executor:(r,n)=>{this._socket.emit("getCompactSystemConfig",(o,a)=>{o?n(o):(a??(a={}),a.common??(a.common={}),a.native??(a.native={}),r(a))})}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getForeignStates",e||"*",(o,a)=>{o?n(o):r(a??{})})}})}getForeignObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getForeignObjects",e||"*",r,(a,i)=>{a?o(a):n(i)})}})}setSystemConfig(e){return this.setObject("system.config",e)}getRawSocket(){return this._socket}getHistory(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,i)=>{a?o(a):n(i)})}})}getHistoryEx(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,i,s,l)=>{a?o(a):n({values:i,sessionId:l,step:s})})}})}getIpAddresses(e,r){return e=QR(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObject(e);n((o==null?void 0:o.common.address)??[])}})}getVersion(e){return this.request({cacheKey:"version",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getVersion",(o,a,i)=>{o&&!a&&typeof o=="string"&&o.match(/\d+\.\d+\.\d+/)?r({version:o,serverName:"socketio"}):o?n(o):r({version:a,serverName:i})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getAdapterName",(n,o)=>{n?r(n):e(o)})}})}fileExists(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("fileExists",e,r,(a,i)=>{a?o(a):n(!!i)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit("authEnabled",(r,n)=>{e(n)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async e=>{var n;const r=await this.getObject("system.meta.uuid");e((n=r==null?void 0:r.native)==null?void 0:n.uuid)}})}checkFeatureSupported(e,r){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("checkFeatureSupported",e,(a,i)=>{a?o(a):n(i)})}})}getAdapterInstances(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`instances_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=e?`system.adapter.${e}.`:"system.adapter.",a=`${o}香`,i=await this.getObjectViewSystem("instance",o,a),s=Object.values(i);n(e?s.filter(l=>l.common.name===e):s)}})}getAdapters(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`adapter_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObjectViewSystem("adapter",`system.adapter.${e||""}`,`system.adapter.${e||"香"}`),a=Object.values(o);n(e?a.filter(i=>i.common.name===e):a)}})}getGroups(e){return this.request({cacheKey:"groups",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(o,a)=>{o?n(o):r(qpe(a))})}})}logout(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("logout",n=>{n?r(n):e(null)})}})}subscribeOnInstance(e,r,n,o){return this.request({commandTimeout:!1,executor:(a,i)=>{this._socket.emit("clientSubscribe",e,r,n,(s,l)=>{s?i(s):l&&(l.error?i(l.error):(e.startsWith("system.adapter.")||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find(d=>d.messageType===r&&d.callback===o)||this._instanceSubscriptions[e].push({messageType:r,callback:o}),a(l)))})}})}unsubscribeFromInstance(e,r,n){var i;e.startsWith("system.adapter.")||(e=`system.adapter.${e}`);let o;const a=[];do{o=!1;const s=(i=this._instanceSubscriptions[e])==null?void 0:i.findIndex(l=>(!r||l.messageType===r)&&(!n||l.callback===n));if(s!=null&&s!==-1){o=!0;const l=this._instanceSubscriptions[e][s].messageType;this._instanceSubscriptions[e].splice(s,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e],this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find(h=>h.messageType===l)||a.push(this.request({commandTimeout:!1,executor:(h,u)=>{this._socket.emit("clientUnsubscribe",e,r,(f,g)=>f?u(f):h(g))}}))}}while(o&&(!n||!r));return a.length?Promise.all(a).then(s=>!!s.find(l=>l)):Promise.resolve(!1)}log(e,r){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",e,r),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}}const lr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,kl="8.47.0",Yt=globalThis;function zy(t,e,r){const n=Yt,o=n.__SENTRY__=n.__SENTRY__||{},a=o[kl]=o[kl]||{};return a[t]||(a[t]=e())}const Vl=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Xpe="Sentry Logger ",UE=["debug","info","warn","error","log","assert","trace"],Iv={};function ql(t){if(!("console"in Yt))return t();const e=Yt.console,r={},n=Object.keys(Iv);n.forEach(o=>{const a=Iv[o];r[o]=e[o],e[o]=a});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function Jpe(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Vl?UE.forEach(r=>{e[r]=(...n)=>{t&&ql(()=>{Yt.console[r](`${Xpe}[${r}]:`,...n)})}}):UE.forEach(r=>{e[r]=()=>{}}),e}const $t=zy("logger",Jpe),fH=50,Ml="?",t5=/\(error: (.*)\)/,r5=/captureMessage|captureException/;function mH(...t){const e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,o=0)=>{const a=[],i=r.split(` + `:null,Gce=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${me(n)}`,r],dashed:["dashed",`dashedColor${me(n)}`],bar1:["bar",`barColor${me(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${me(n)}`,r==="buffer"&&`color${me(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return ht(o,Hce,e)},fO=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?Ol(t.palette[e].main,.62):Tl(t.palette[e].main,.5),Xce=de("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${me(r.color)}`],e[r.variant]]}})(rt(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e},style:{backgroundColor:fO(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Jce=de("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${me(r.color)}`]]}})(rt(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(xr()).map(([e])=>{const r=fO(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),qce||{animation:`${BE} 3s infinite linear`}),Yce=de("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(rt(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${LE}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${LE}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:Uce||{animation:`${zE} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Kce=de("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(rt(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:fO(t,e),transition:`transform .${LE}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:Vce||{animation:`${FE} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Zce=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:i,valueBuffer:s,variant:l="indeterminate",...d}=n,h={...n,color:a,variant:l},u=Gce(h),f=Ul(),g={},y={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&i!==void 0){g["aria-valuenow"]=Math.round(i),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let b=i-100;f&&(b=-b),y.bar1.transform=`translateX(${b}%)`}if(l==="buffer"&&s!==void 0){let b=(s||0)-100;f&&(b=-b),y.bar2.transform=`translateX(${b}%)`}return w.jsxs(Xce,{className:Me(u.root,o),ownerState:h,role:"progressbar",...g,ref:r,...d,children:[l==="buffer"?w.jsx(Jce,{className:u.dashed,ownerState:h}):null,w.jsx(Yce,{className:u.bar1,ownerState:h,style:y.bar1}),l==="determinate"?null:w.jsx(Kce,{className:u.bar2,ownerState:h,style:y.bar2})]})}),$a=A.createContext({});function Qce(t){return dt("MuiList",t)}ct("MuiList",["root","padding","dense","subheader"]);const ede=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return ht({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Qce,e)},tde=de("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),vu=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:d,...h}=n,u=A.useMemo(()=>({dense:s}),[s]),f={...n,component:i,dense:s,disablePadding:l},g=ede(f);return w.jsx($a.Provider,{value:u,children:w.jsxs(tde,{as:i,className:Me(g.root,a),ref:r,ownerState:f,...h,children:[d,o]})})});function rde(t){return dt("MuiListItem",t)}ct("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function nde(t){return dt("MuiListItemButton",t)}const dd=ct("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),ode=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.alignItems==="flex-start"&&e.alignItemsFlexStart,r.divider&&e.divider,!r.disableGutters&&e.gutters]},ade=t=>{const{alignItems:e,classes:r,dense:n,disabled:o,disableGutters:a,divider:i,selected:s}=t,d=ht({root:["root",n&&"dense",!a&&"gutters",i&&"divider",o&&"disabled",e==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},nde,r);return{...r,...d}},ide=de(Li,{shouldForwardProp:t=>on(t)||t==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:ode})(rt(({theme:t})=>({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:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${dd.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${dd.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${dd.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${dd.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${dd.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).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}}]}))),Ev=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:a=!1,component:i="div",children:s,dense:l=!1,disableGutters:d=!1,divider:h=!1,focusVisibleClassName:u,selected:f=!1,className:g,...y}=n,b=A.useContext($a),x=A.useMemo(()=>({dense:l||b.dense||!1,alignItems:o,disableGutters:d}),[o,b.dense,l,d]),S=A.useRef(null);io(()=>{a&&S.current&&S.current.focus()},[a]);const T={...n,alignItems:o,dense:x.dense,disableGutters:d,divider:h,selected:f},E=ade(T),$=Mr(S,r);return w.jsx($a.Provider,{value:x,children:w.jsx(ide,{ref:$,href:y.href||y.to,component:(y.href||y.to)&&i==="div"?"button":i,focusVisibleClassName:Me(E.focusVisible,u),ownerState:T,className:Me(E.root,g),...y,classes:E,children:s})})});function sde(t){return dt("MuiListItemSecondaryAction",t)}ct("MuiListItemSecondaryAction",["root","disableGutters"]);const lde=t=>{const{disableGutters:e,classes:r}=t;return ht({root:["root",e&&"disableGutters"]},sde,r)},cde=de("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.disableGutters&&e.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:t})=>t.disableGutters,style:{right:0}}]}),eH=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiListItemSecondaryAction"}),{className:o,...a}=n,i=A.useContext($a),s={...n,disableGutters:i.disableGutters},l=lde(s);return w.jsx(cde,{className:Me(l.root,o),ownerState:s,ref:r,...a})});eH.muiName="ListItemSecondaryAction";const dde=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.alignItems==="flex-start"&&e.alignItemsFlexStart,r.divider&&e.divider,!r.disableGutters&&e.gutters,!r.disablePadding&&e.padding,r.hasSecondaryAction&&e.secondaryAction]},ude=t=>{const{alignItems:e,classes:r,dense:n,disableGutters:o,disablePadding:a,divider:i,hasSecondaryAction:s}=t;return ht({root:["root",n&&"dense",!o&&"gutters",!a&&"padding",i&&"divider",e==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},rde,r)},pde=de("div",{name:"MuiListItem",slot:"Root",overridesResolver:dde})(rt(({theme:t})=>({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:{[`& > .${dd.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),hde=de("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"}),of=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiListItem"}),{alignItems:o="center",children:a,className:i,component:s,components:l={},componentsProps:d={},ContainerComponent:h="li",ContainerProps:{className:u,...f}={},dense:g=!1,disableGutters:y=!1,disablePadding:b=!1,divider:x=!1,secondaryAction:S,slotProps:T={},slots:E={},...$}=n,k=A.useContext($a),O=A.useMemo(()=>({dense:g||k.dense||!1,alignItems:o,disableGutters:y}),[o,k.dense,g,y]),M=A.useRef(null),R=A.Children.toArray(a),j=R.length&&Eh(R[R.length-1],["ListItemSecondaryAction"]),I={...n,alignItems:o,dense:O.dense,disableGutters:y,disablePadding:b,divider:x,hasSecondaryAction:j},z=ude(I),W=Mr(M,r),L=E.root||l.Root||pde,F=T.root||d.root||{},H={className:Me(z.root,F.className,i),...$};let q=s||"li";return j?(q=!H.component&&!s?"div":q,h==="li"&&(q==="li"?q="div":H.component==="li"&&(H.component="div")),w.jsx($a.Provider,{value:O,children:w.jsxs(hde,{as:h,className:Me(z.container,u),ref:W,ownerState:I,...f,children:[w.jsx(L,{...F,...!Ii(L)&&{as:q,ownerState:{...I,...F.ownerState}},...H,children:R}),R.pop()]})})):w.jsx($a.Provider,{value:O,children:w.jsxs(L,{...F,as:q,ref:W,...!Ii(L)&&{ownerState:{...I,...F.ownerState}},...H,children:[R,S&&w.jsx(eH,{children:S})]})})});function fde(t){return dt("MuiListItemIcon",t)}const ER=ct("MuiListItemIcon",["root","alignItemsFlexStart"]),mde=t=>{const{alignItems:e,classes:r}=t;return ht({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},fde,r)},gde=de("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(rt(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),ba=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiListItemIcon"}),{className:o,...a}=n,i=A.useContext($a),s={...n,alignItems:i.alignItems},l=mde(s);return w.jsx(gde,{className:Me(l.root,o),ownerState:s,ref:r,...a})});function vde(t){return dt("MuiListItemText",t)}const Vd=ct("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),yde=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:a}=t;return ht({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},vde,e)},_de=de("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Vd.primary}`]:e.primary},{[`& .${Vd.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${tR.root}:where(& .${Vd.primary})`]:{display:"block"},[`.${tR.root}:where(& .${Vd.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),_o=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:d,secondary:h,secondaryTypographyProps:u,slots:f={},slotProps:g={},...y}=n,{dense:b}=A.useContext($a);let x=l??o,S=h;const T={...n,disableTypography:i,inset:s,primary:!!x,secondary:!!S,dense:b},E=yde(T),$={slots:f,slotProps:{primary:d,secondary:u,...g}},[k,O]=un("primary",{className:E.primary,elementType:Ka,externalForwardedProps:$,ownerState:T}),[M,R]=un("secondary",{className:E.secondary,elementType:Ka,externalForwardedProps:$,ownerState:T});return x!=null&&x.type!==Ka&&!i&&(x=w.jsx(k,{variant:b?"body2":"body1",component:O!=null&&O.variant?void 0:"span",...O,children:x})),S!=null&&S.type!==Ka&&!i&&(S=w.jsx(M,{variant:"body2",color:"textSecondary",...R,children:S})),w.jsxs(_de,{className:Me(E.root,a),ownerState:T,ref:r,...y,children:[x,S]})});function Qb(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function TR(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function tH(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function Rp(t,e,r,n,o,a){let i=!1,s=o(t,e,e?r:!1);for(;s;){if(s===t.firstChild){if(i)return!1;i=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!tH(s,a)||l)s=o(t,s,r);else return s.focus(),!0}return!1}const bde=A.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:d=!1,onKeyDown:h,variant:u="selectedMenu",...f}=e,g=A.useRef(null),y=A.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});io(()=>{o&&g.current.focus()},[o]),A.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(E,{direction:$})=>{const k=!g.current.style.width;if(E.clientHeight{const $=g.current,k=E.key;if(E.ctrlKey||E.metaKey||E.altKey){h&&h(E);return}const M=qr($).activeElement;if(k==="ArrowDown")E.preventDefault(),Rp($,M,d,l,Qb);else if(k==="ArrowUp")E.preventDefault(),Rp($,M,d,l,TR);else if(k==="Home")E.preventDefault(),Rp($,null,d,l,Qb);else if(k==="End")E.preventDefault(),Rp($,null,d,l,TR);else if(k.length===1){const R=y.current,j=k.toLowerCase(),I=performance.now();R.keys.length>0&&(I-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&j!==R.keys[0]&&(R.repeating=!1)),R.lastTime=I,R.keys.push(j);const z=M&&!R.repeating&&tH(M,R);R.previousKeyMatched&&(z||Rp($,M,!1,l,Qb,R))?E.preventDefault():R.previousKeyMatched=!1}h&&h(E)},x=Mr(g,r);let S=-1;A.Children.forEach(i,(E,$)=>{if(!A.isValidElement(E)){S===$&&(S+=1,S>=i.length&&(S=-1));return}E.props.disabled||(u==="selectedMenu"&&E.props.selected||S===-1)&&(S=$),S===$&&(E.props.disabled||E.props.muiSkipListHighlight||E.type.muiSkipListHighlight)&&(S+=1,S>=i.length&&(S=-1))});const T=A.Children.map(i,(E,$)=>{if($===S){const k={};return a&&(k.autoFocus=!0),E.props.tabIndex===void 0&&u==="selectedMenu"&&(k.tabIndex=0),A.cloneElement(E,k)}return E});return w.jsx(vu,{role:"menu",ref:x,className:s,onKeyDown:b,tabIndex:o?0:-1,...f,children:T})});function wde(t){return dt("MuiPopover",t)}ct("MuiPopover",["root","paper"]);function OR(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function DR(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function AR(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function e1(t){return typeof t=="function"?t():t}const xde=t=>{const{classes:e}=t;return ht({root:["root"],paper:["paper"]},wde,e)},Sde=de(KW,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),rH=de(zn,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),WE=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:d,className:h,container:u,elevation:f=8,marginThreshold:g=16,open:y,PaperProps:b={},slots:x={},slotProps:S={},transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:E=nf,transitionDuration:$="auto",TransitionProps:{onEntering:k,...O}={},disableScrollLock:M=!1,...R}=n,j=(S==null?void 0:S.paper)??b,I=A.useRef(),z={...n,anchorOrigin:i,anchorReference:l,elevation:f,marginThreshold:g,externalPaperSlotProps:j,transformOrigin:T,TransitionComponent:E,transitionDuration:$,TransitionProps:O},W=xde(z),L=A.useCallback(()=>{if(l==="anchorPosition")return s;const Pe=e1(a),Be=(Pe&&Pe.nodeType===1?Pe:qr(I.current).body).getBoundingClientRect();return{top:Be.top+OR(Be,i.vertical),left:Be.left+DR(Be,i.horizontal)}},[a,i.horizontal,i.vertical,s,l]),F=A.useCallback(Pe=>({vertical:OR(Pe,T.vertical),horizontal:DR(Pe,T.horizontal)}),[T.horizontal,T.vertical]),H=A.useCallback(Pe=>{const Ye={width:Pe.offsetWidth,height:Pe.offsetHeight},Be=F(Ye);if(l==="none")return{top:null,left:null,transformOrigin:AR(Be)};const Ke=L();let Xe=Ke.top-Be.vertical,ve=Ke.left-Be.horizontal;const le=Xe+Ye.height,re=ve+Ye.width,He=Oa(e1(a)),Ve=He.innerHeight-g,at=He.innerWidth-g;if(g!==null&&XeVe){const ut=le-Ve;Xe-=ut,Be.vertical+=ut}if(g!==null&&veat){const ut=re-at;ve-=ut,Be.horizontal+=ut}return{top:`${Math.round(Xe)}px`,left:`${Math.round(ve)}px`,transformOrigin:AR(Be)}},[a,l,L,F,g]),[q,ee]=A.useState(y),Y=A.useCallback(()=>{const Pe=I.current;if(!Pe)return;const Ye=H(Pe);Ye.top!==null&&Pe.style.setProperty("top",Ye.top),Ye.left!==null&&(Pe.style.left=Ye.left),Pe.style.transformOrigin=Ye.transformOrigin,ee(!0)},[H]);A.useEffect(()=>(M&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[a,M,Y]);const G=(Pe,Ye)=>{k&&k(Pe,Ye),Y()},te=()=>{ee(!1)};A.useEffect(()=>{y&&Y()}),A.useImperativeHandle(o,()=>y?{updatePosition:()=>{Y()}}:null,[y,Y]),A.useEffect(()=>{if(!y)return;const Pe=wy(()=>{Y()}),Ye=Oa(a);return Ye.addEventListener("resize",Pe),()=>{Pe.clear(),Ye.removeEventListener("resize",Pe)}},[a,y,Y]);let B=$;$==="auto"&&!E.muiSupportAuto&&(B=void 0);const K=u||(a?qr(e1(a)).body:void 0),he={slots:x,slotProps:{...S,paper:j}},[fe,ge]=un("paper",{elementType:rH,externalForwardedProps:he,additionalProps:{elevation:f,className:Me(W.paper,j==null?void 0:j.className),style:q?j.style:{...j.style,opacity:0}},ownerState:z}),[Ee,{slotProps:ze,...Ne}]=un("root",{elementType:Sde,externalForwardedProps:he,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:K,open:y},ownerState:z,className:Me(W.root,h)}),Fe=Mr(I,ge.ref);return w.jsx(Ee,{...Ne,...!Ii(Ee)&&{slotProps:ze,disableScrollLock:M},...R,ref:r,children:w.jsx(E,{appear:!0,in:y,onEntering:G,onExited:te,timeout:B,...O,children:w.jsx(fe,{...ge,ref:Fe,children:d})})})});function Cde(t){return dt("MuiMenu",t)}ct("MuiMenu",["root","paper","list"]);const $de={vertical:"top",horizontal:"right"},kde={vertical:"top",horizontal:"left"},Ede=t=>{const{classes:e}=t;return ht({root:["root"],paper:["paper"],list:["list"]},Cde,e)},Tde=de(WE,{shouldForwardProp:t=>on(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Ode=de(rH,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Dde=de(bde,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),eu=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:i,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:d,open:h,PaperProps:u={},PopoverClasses:f,transitionDuration:g="auto",TransitionProps:{onEntering:y,...b}={},variant:x="selectedMenu",slots:S={},slotProps:T={},...E}=n,$=Ul(),k={...n,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:y,PaperProps:u,transitionDuration:g,TransitionProps:b,variant:x},O=Ede(k),M=o&&!s&&h,R=A.useRef(null),j=(q,ee)=>{R.current&&R.current.adjustStyleForScrollbar(q,{direction:$?"rtl":"ltr"}),y&&y(q,ee)},I=q=>{q.key==="Tab"&&(q.preventDefault(),d&&d(q,"tabKeyDown"))};let z=-1;A.Children.map(a,(q,ee)=>{A.isValidElement(q)&&(q.props.disabled||(x==="selectedMenu"&&q.props.selected||z===-1)&&(z=ee))});const W=S.paper??Ode,L=T.paper??u,F=nn({elementType:S.root,externalSlotProps:T.root,ownerState:k,className:[O.root,i]}),H=nn({elementType:W,externalSlotProps:L,ownerState:k,className:O.paper});return w.jsx(Tde,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:$?"right":"left"},transformOrigin:$?$de:kde,slots:{paper:W,root:S.root},slotProps:{root:F,paper:H},open:h,ref:r,transitionDuration:g,TransitionProps:{onEntering:j,...b},ownerState:k,...E,classes:f,children:w.jsx(Dde,{onKeyDown:I,actions:R,autoFocus:o&&(z===-1||s),autoFocusItem:M,variant:x,...l,className:Me(O.list,l.className),children:a})})});function Ade(t){return dt("MuiMenuItem",t)}const jp=ct("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ide=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},Mde=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=t,l=ht({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},Ade,i);return{...i,...l}},Pde=de(Li,{shouldForwardProp:t=>on(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Ide})(rt(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${jp.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${jp.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${jp.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Qt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${jp.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${jp.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${xR.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${xR.inset}`]:{marginLeft:52},[`& .${Vd.root}`]:{marginTop:0,marginBottom:0},[`& .${Vd.inset}`]:{paddingLeft:36},[`& .${ER.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${ER.root} svg`]:{fontSize:"1.25rem"}}}]}))),Xt=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:d,role:h="menuitem",tabIndex:u,className:f,...g}=n,y=A.useContext($a),b=A.useMemo(()=>({dense:i||y.dense||!1,disableGutters:l}),[y.dense,i,l]),x=A.useRef(null);io(()=>{o&&x.current&&x.current.focus()},[o]);const S={...n,dense:b.dense,divider:s,disableGutters:l},T=Mde(n),E=Mr(x,r);let $;return n.disabled||($=u!==void 0?u:-1),w.jsx($a.Provider,{value:b,children:w.jsx(Pde,{ref:E,role:h,tabIndex:$,component:a,focusVisibleClassName:Me(T.focusVisible,d),className:Me(T.root,f),...g,ownerState:S,classes:T})})});function Nde(t){return dt("MuiNativeSelect",t)}const mO=ct("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Rde=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:i}=t,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${me(r)}`,a&&"iconOpen",n&&"disabled"]};return ht(s,Nde,e)},nH=de("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${mO.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),jde=de(nH,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:on,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${mO.multiple}`]:e.multiple}]}})({}),oH=de("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${mO.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Lde=de(oH,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),zde=A.forwardRef(function(e,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard",...d}=e,h={...e,disabled:o,variant:l,error:a},u=Rde(h);return w.jsxs(A.Fragment,{children:[w.jsx(jde,{ownerState:h,className:Me(u.select,n),disabled:o,ref:s||r,...d}),e.multiple?null:w.jsx(Lde,{as:i,ownerState:h,className:u.icon})]})});var IR;const Fde=de("fieldset",{shouldForwardProp:on})({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%"}),Bde=de("legend",{shouldForwardProp:on})(rt(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function Wde(t){const{children:e,classes:r,className:n,label:o,notched:a,...i}=t,s=o!=null&&o!=="",l={...t,notched:a,withLabel:s};return w.jsx(Fde,{"aria-hidden":!0,className:n,ownerState:l,...i,children:w.jsx(Bde,{ownerState:l,children:s?w.jsx("span",{children:o}):IR||(IR=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Hde=t=>{const{classes:e}=t,n=ht({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ise,e);return{...e,...n}},Ude=de(jy,{shouldForwardProp:t=>on(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ny})(rt(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Ba.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ba.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${Ba.focused} .${Ba.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(xr()).map(([r])=>({props:{color:r},style:{[`&.${Ba.focused} .${Ba.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${Ba.error} .${Ba.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Ba.disabled} .${Ba.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),Vde=de(Wde,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(rt(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),qde=de(Ly,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ry})(rt(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),gO=A.forwardRef(function(e,r){var n;const o=ft({props:e,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:s="input",label:l,multiline:d=!1,notched:h,slots:u={},type:f="text",...g}=o,y=Hde(o),b=si(),x=Us({props:o,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...o,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:i,hiddenLabel:x.hiddenLabel,multiline:d,size:x.size,type:f},T=u.root??a.Root??Ude,E=u.input??a.Input??qde;return w.jsx(dO,{slots:{root:T,input:E},renderSuffix:$=>w.jsx(Vde,{ownerState:S,className:y.notchedOutline,label:l!=null&&l!==""&&x.required?n||(n=w.jsxs(A.Fragment,{children:[l," ","*"]})):l,notched:typeof h<"u"?h:!!($.startAdornment||$.filled||$.focused)}),fullWidth:i,inputComponent:s,multiline:d,ref:r,type:f,...g,classes:{...y,notchedOutline:null}})});gO.muiName="Input";const Gde=Ge(w.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"),Xde=Ge(w.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"),Jde=de("span",{shouldForwardProp:on})({position:"relative",display:"flex"}),Yde=de(Gde)({transform:"scale(1)"}),Kde=de(Xde)(rt(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function aH(t){const{checked:e=!1,classes:r={},fontSize:n}=t,o={...t,checked:e};return w.jsxs(Jde,{className:r.root,ownerState:o,children:[w.jsx(Yde,{fontSize:n,className:r.background,ownerState:o}),w.jsx(Kde,{fontSize:n,className:r.dot,ownerState:o})]})}const Zde=A.createContext(void 0);function Qde(){return A.useContext(Zde)}function eue(t){return dt("MuiRadio",t)}const MR=ct("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),tue=t=>{const{classes:e,color:r,size:n}=t,o={root:["root",`color${me(r)}`,n!=="medium"&&`size${me(n)}`]};return{...e,...ht(o,eue,e)}},rue=de(uO,{shouldForwardProp:t=>on(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${me(r.size)}`],e[`color${me(r.color)}`]]}})(rt(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${MR.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Qt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Qt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${MR.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function nue(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const PR=w.jsx(aH,{checked:!0}),NR=w.jsx(aH,{}),ur=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:a=PR,color:i="primary",icon:s=NR,name:l,onChange:d,size:h="medium",className:u,disabled:f,disableRipple:g=!1,...y}=n,b=si();let x=f;b&&typeof x>"u"&&(x=b.disabled),x??(x=!1);const S={...n,disabled:x,disableRipple:g,color:i,size:h},T=tue(S),E=Qde();let $=o;const k=hE(d,E&&E.onChange);let O=l;return E&&(typeof $>"u"&&($=nue(E.value,n.value)),typeof O>"u"&&(O=E.name)),w.jsx(rue,{type:"radio",icon:A.cloneElement(s,{fontSize:NR.props.fontSize??h}),checkedIcon:A.cloneElement(a,{fontSize:PR.props.fontSize??h}),disabled:x,ownerState:S,classes:T,name:O,checked:$,onChange:k,ref:r,className:Me(T.root,u),...y})});function oue(t){return dt("MuiSelect",t)}const Lp=ct("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var RR;const aue=de(nH,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${Lp.select}`]:e.select},{[`&.${Lp.select}`]:e[r.variant]},{[`&.${Lp.error}`]:e.error},{[`&.${Lp.multiple}`]:e.multiple}]}})({[`&.${Lp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),iue=de(oH,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),sue=de("input",{shouldForwardProp:t=>$y(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function jR(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function lue(t){return t==null||typeof t=="string"&&!t.trim()}const cue=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:i}=t,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${me(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return ht(s,oue,e)},due=A.forwardRef(function(e,r){var wt;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:i,children:s,className:l,defaultOpen:d,defaultValue:h,disabled:u,displayEmpty:f,error:g=!1,IconComponent:y,inputRef:b,labelId:x,MenuProps:S={},multiple:T,name:E,onBlur:$,onChange:k,onClose:O,onFocus:M,onOpen:R,open:j,readOnly:I,renderValue:z,required:W,SelectDisplayProps:L={},tabIndex:F,type:H,value:q,variant:ee="standard",...Y}=e,[G,te]=qh({controlled:q,default:h,name:"Select"}),[B,K]=qh({controlled:j,default:d,name:"Select"}),he=A.useRef(null),fe=A.useRef(null),[ge,Ee]=A.useState(null),{current:ze}=A.useRef(j!=null),[Ne,Fe]=A.useState(),Pe=Mr(r,b),Ye=A.useCallback(pe=>{fe.current=pe,pe&&Ee(pe)},[]),Be=ge==null?void 0:ge.parentNode;A.useImperativeHandle(Pe,()=>({focus:()=>{fe.current.focus()},node:he.current,value:G}),[G]),A.useEffect(()=>{d&&B&&ge&&!ze&&(Fe(i?null:Be.clientWidth),fe.current.focus())},[ge,i]),A.useEffect(()=>{a&&fe.current.focus()},[a]),A.useEffect(()=>{if(!x)return;const pe=qr(fe.current).getElementById(x);if(pe){const $e=()=>{getSelection().isCollapsed&&fe.current.focus()};return pe.addEventListener("click",$e),()=>{pe.removeEventListener("click",$e)}}},[x]);const Ke=(pe,$e)=>{pe?R&&R($e):O&&O($e),ze||(Fe(i?null:Be.clientWidth),K(pe))},Xe=pe=>{pe.button===0&&(pe.preventDefault(),fe.current.focus(),Ke(!0,pe))},ve=pe=>{Ke(!1,pe)},le=A.Children.toArray(s),re=pe=>{const $e=le.find(ot=>ot.props.value===pe.target.value);$e!==void 0&&(te($e.props.value),k&&k(pe,$e))},He=pe=>$e=>{let ot;if($e.currentTarget.hasAttribute("tabindex")){if(T){ot=Array.isArray(G)?G.slice():[];const yt=G.indexOf(pe.props.value);yt===-1?ot.push(pe.props.value):ot.splice(yt,1)}else ot=pe.props.value;if(pe.props.onClick&&pe.props.onClick($e),G!==ot&&(te(ot),k)){const yt=$e.nativeEvent||$e,Pt=new yt.constructor(yt.type,yt);Object.defineProperty(Pt,"target",{writable:!0,value:{value:ot,name:E}}),k(Pt,pe)}T||Ke(!1,$e)}},Ve=pe=>{I||[" ","ArrowUp","ArrowDown","Enter"].includes(pe.key)&&(pe.preventDefault(),Ke(!0,pe))},at=ge!==null&&B,ut=pe=>{!at&&$&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:G,name:E}}),$(pe))};delete Y["aria-invalid"];let ke,pt;const J=[];let ae=!1;(kv({value:G})||f)&&(z?ke=z(G):ae=!0);const Se=le.map(pe=>{if(!A.isValidElement(pe))return null;let $e;if(T){if(!Array.isArray(G))throw new Error(Ni(2));$e=G.some(ot=>jR(ot,pe.props.value)),$e&&ae&&J.push(pe.props.children)}else $e=jR(G,pe.props.value),$e&&ae&&(pt=pe.props.children);return A.cloneElement(pe,{"aria-selected":$e?"true":"false",onClick:He(pe),onKeyUp:ot=>{ot.key===" "&&ot.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(ot)},role:"option",selected:$e,value:void 0,"data-value":pe.props.value})});ae&&(T?J.length===0?ke=null:ke=J.reduce((pe,$e,ot)=>(pe.push($e),ot{const{classes:e}=t;return e},vO={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>on(t)&&t!=="variant",slot:"Root"},pue=de(ya,vO)(""),hue=de(gO,vO)(""),fue=de(hO,vO)(""),Bn=A.forwardRef(function(e,r){const n=ft({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:d=!1,IconComponent:h=lse,id:u,input:f,inputProps:g,label:y,labelId:b,MenuProps:x,multiple:S=!1,native:T=!1,onClose:E,onOpen:$,open:k,renderValue:O,SelectDisplayProps:M,variant:R="outlined",...j}=n,I=T?zde:due,z=si(),W=Us({props:n,muiFormControl:z,states:["variant","error"]}),L=W.variant||R,F={...n,variant:L,classes:i},H=uue(F),{root:q,...ee}=H,Y=f||{standard:w.jsx(pue,{ownerState:F}),outlined:w.jsx(hue,{label:y,ownerState:F}),filled:w.jsx(fue,{ownerState:F})}[L],G=Mr(r,Hl(Y));return w.jsx(A.Fragment,{children:A.cloneElement(Y,{inputComponent:I,inputProps:{children:a,error:W.error,IconComponent:h,variant:L,type:void 0,multiple:S,...T?{id:u}:{autoWidth:o,defaultOpen:l,displayEmpty:d,labelId:b,MenuProps:x,onClose:E,onOpen:$,open:k,renderValue:O,SelectDisplayProps:{id:u,...M}},...g,classes:g?On(ee,g.classes):ee,...f?f.props.inputProps:{}},...(S&&T||d)&&L==="outlined"?{notched:!0}:{},ref:G,className:Me(Y.props.className,s,H.root),...!f&&{variant:L},...j})})});Bn.muiName="Select";function mue(t,e,r=(n,o)=>n===o){return t.length===e.length&&t.every((n,o)=>r(n,e[o]))}const gue=2;function Fc(t,e,r,n,o){return r===1?Math.min(t+e,o):Math.max(t-e,n)}function iH(t,e){return t-e}function LR(t,e){const{index:r}=t.reduce((n,o,a)=>{const i=Math.abs(e-o);return n===null||i({left:`${t}%`}),leap:t=>({width:`${t}%`})},"horizontal-reverse":{offset:t=>({right:`${t}%`}),leap:t=>({width:`${t}%`})},vertical:{offset:t=>({bottom:`${t}%`}),leap:t=>({height:`${t}%`})}},wue=t=>t;let fg;function FR(){return fg===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?fg=CSS.supports("touch-action","none"):fg=!0),fg}function xue(t){const{"aria-labelledby":e,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:d,onChange:h,onChangeCommitted:u,orientation:f="horizontal",rootRef:g,scale:y=wue,step:b=1,shiftStep:x=10,tabIndex:S,value:T}=t,E=A.useRef(void 0),[$,k]=A.useState(-1),[O,M]=A.useState(-1),[R,j]=A.useState(!1),I=A.useRef(0),[z,W]=qh({controlled:T,default:r??l,name:"Slider"}),L=h&&((J,ae,Se)=>{const Te=J.nativeEvent||J,Oe=new Te.constructor(Te.type,Te);Object.defineProperty(Oe,"target",{writable:!0,value:{value:ae,name:d}}),h(Oe,ae,Se)}),F=Array.isArray(z);let H=F?z.slice().sort(iH):[z];H=H.map(J=>J==null?l:ld(J,l,s));const q=i===!0&&b!==null?[...Array(Math.floor((s-l)/b)+1)].map((J,ae)=>({value:l+b*ae})):i||[],ee=q.map(J=>J.value),[Y,G]=A.useState(-1),te=A.useRef(null),B=Mr(g,te),K=J=>ae=>{var Te;const Se=Number(ae.currentTarget.getAttribute("data-index"));iu(ae.target)&&G(Se),M(Se),(Te=J==null?void 0:J.onFocus)==null||Te.call(J,ae)},he=J=>ae=>{var Se;iu(ae.target)||G(-1),M(-1),(Se=J==null?void 0:J.onBlur)==null||Se.call(J,ae)},fe=(J,ae)=>{const Se=Number(J.currentTarget.getAttribute("data-index")),Te=H[Se],Oe=ee.indexOf(Te);let Ce=ae;if(q&&b==null){const nt=ee[ee.length-1];Ce>nt?Ce=nt:Ceae=>{var Se;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(ae.key)){ae.preventDefault();const Te=Number(ae.currentTarget.getAttribute("data-index")),Oe=H[Te];let Ce=null;if(b!=null){const nt=ae.shiftKey?x:b;switch(ae.key){case"ArrowUp":Ce=Fc(Oe,nt,1,l,s);break;case"ArrowRight":Ce=Fc(Oe,nt,a?-1:1,l,s);break;case"ArrowDown":Ce=Fc(Oe,nt,-1,l,s);break;case"ArrowLeft":Ce=Fc(Oe,nt,a?1:-1,l,s);break;case"PageUp":Ce=Fc(Oe,x,1,l,s);break;case"PageDown":Ce=Fc(Oe,x,-1,l,s);break;case"Home":Ce=l;break;case"End":Ce=s;break}}else if(q){const nt=ee[ee.length-1],Le=ee.indexOf(Oe),mt=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],vt=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];mt.includes(ae.key)?Le===0?Ce=ee[0]:Ce=ee[Le-1]:vt.includes(ae.key)&&(Le===ee.length-1?Ce=nt:Ce=ee[Le+1])}Ce!=null&&fe(ae,Ce)}(Se=J==null?void 0:J.onKeyDown)==null||Se.call(J,ae)};io(()=>{var J;n&&te.current.contains(document.activeElement)&&((J=document.activeElement)==null||J.blur())},[n]),n&&$!==-1&&k(-1),n&&Y!==-1&&G(-1);const Ee=J=>ae=>{var Se;(Se=J.onChange)==null||Se.call(J,ae),fe(ae,ae.target.valueAsNumber)},ze=A.useRef(void 0);let Ne=f;a&&f==="horizontal"&&(Ne+="-reverse");const Fe=({finger:J,move:ae=!1})=>{const{current:Se}=te,{width:Te,height:Oe,bottom:Ce,left:nt}=Se.getBoundingClientRect();let Le;Ne.startsWith("vertical")?Le=(Ce-J.y)/Oe:Le=(J.x-nt)/Te,Ne.includes("-reverse")&&(Le=1-Le);let mt;if(mt=vue(Le,l,s),b)mt=_ue(mt,b,l);else{const wt=LR(ee,mt);mt=ee[wt]}mt=ld(mt,l,s);let vt=0;if(F){ae?vt=ze.current:vt=LR(H,mt),o&&(mt=ld(mt,H[vt-1]||-1/0,H[vt+1]||1/0));const wt=mt;mt=zR({values:H,newValue:mt,index:vt}),o&&ae||(vt=mt.indexOf(wt),ze.current=vt)}return{newValue:mt,activeIndex:vt}},Pe=bn(J=>{const ae=ug(J,E);if(!ae)return;if(I.current+=1,J.type==="mousemove"&&J.buttons===0){Ye(J);return}const{newValue:Se,activeIndex:Te}=Fe({finger:ae,move:!0});pg({sliderRef:te,activeIndex:Te,setActive:k}),W(Se),!R&&I.current>gue&&j(!0),L&&!hg(Se,z)&&L(J,Se,Te)}),Ye=bn(J=>{const ae=ug(J,E);if(j(!1),!ae)return;const{newValue:Se}=Fe({finger:ae,move:!0});k(-1),J.type==="touchend"&&M(-1),u&&u(J,Se),E.current=void 0,Ke()}),Be=bn(J=>{if(n)return;FR()||J.preventDefault();const ae=J.changedTouches[0];ae!=null&&(E.current=ae.identifier);const Se=ug(J,E);if(Se!==!1){const{newValue:Oe,activeIndex:Ce}=Fe({finger:Se});pg({sliderRef:te,activeIndex:Ce,setActive:k}),W(Oe),L&&!hg(Oe,z)&&L(J,Oe,Ce)}I.current=0;const Te=qr(te.current);Te.addEventListener("touchmove",Pe,{passive:!0}),Te.addEventListener("touchend",Ye,{passive:!0})}),Ke=A.useCallback(()=>{const J=qr(te.current);J.removeEventListener("mousemove",Pe),J.removeEventListener("mouseup",Ye),J.removeEventListener("touchmove",Pe),J.removeEventListener("touchend",Ye)},[Ye,Pe]);A.useEffect(()=>{const{current:J}=te;return J.addEventListener("touchstart",Be,{passive:FR()}),()=>{J.removeEventListener("touchstart",Be),Ke()}},[Ke,Be]),A.useEffect(()=>{n&&Ke()},[n,Ke]);const Xe=J=>ae=>{var Oe;if((Oe=J.onMouseDown)==null||Oe.call(J,ae),n||ae.defaultPrevented||ae.button!==0)return;ae.preventDefault();const Se=ug(ae,E);if(Se!==!1){const{newValue:Ce,activeIndex:nt}=Fe({finger:Se});pg({sliderRef:te,activeIndex:nt,setActive:k}),W(Ce),L&&!hg(Ce,z)&&L(ae,Ce,nt)}I.current=0;const Te=qr(te.current);Te.addEventListener("mousemove",Pe,{passive:!0}),Te.addEventListener("mouseup",Ye)},ve=Tv(F?H[0]:l,l,s),le=Tv(H[H.length-1],l,s)-ve,re=(J={})=>{const ae=Sl(J),Se={onMouseDown:Xe(ae||{})},Te={...ae,...Se};return{...J,ref:B,...Te}},He=J=>ae=>{var Te;(Te=J.onMouseOver)==null||Te.call(J,ae);const Se=Number(ae.currentTarget.getAttribute("data-index"));M(Se)},Ve=J=>ae=>{var Se;(Se=J.onMouseLeave)==null||Se.call(J,ae),M(-1)},at=(J={})=>{const ae=Sl(J),Se={onMouseOver:He(ae||{}),onMouseLeave:Ve(ae||{})};return{...J,...ae,...Se}},ut=J=>({pointerEvents:$!==-1&&$!==J?"none":void 0});let ke;return f==="vertical"&&(ke=a?"vertical-rl":"vertical-lr"),{active:$,axis:Ne,axisProps:bue,dragging:R,focusedThumbIndex:Y,getHiddenInputProps:(J={})=>{const ae=Sl(J),Se={onChange:Ee(ae||{}),onFocus:K(ae||{}),onBlur:he(ae||{}),onKeyDown:ge(ae||{})},Te={...ae,...Se};return{tabIndex:S,"aria-labelledby":e,"aria-orientation":f,"aria-valuemax":y(s),"aria-valuemin":y(l),name:d,type:"range",min:t.min,max:t.max,step:t.step===null&&t.marks?"any":t.step??void 0,disabled:n,...J,...Te,style:{...xZ,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:ke}}},getRootProps:re,getThumbProps:at,marks:q,open:O,range:F,rootRef:B,trackLeap:le,trackOffset:ve,values:H,getThumbStyle:ut}}const Sue=t=>!t||!Ii(t);function Cue(t){return dt("MuiSlider",t)}const Jo=ct("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),$ue=t=>{const{open:e}=t;return{offset:Me(e&&Jo.valueLabelOpen),circle:Jo.valueLabelCircle,label:Jo.valueLabelLabel}};function kue(t){const{children:e,className:r,value:n}=t,o=$ue(t);return e?A.cloneElement(e,{className:Me(e.props.className)},w.jsxs(A.Fragment,{children:[e.props.children,w.jsx("span",{className:Me(o.offset,r),"aria-hidden":!0,children:w.jsx("span",{className:o.circle,children:w.jsx("span",{className:o.label,children:n})})})]})):null}function BR(t){return t}const Eue=de("span",{name:"MuiSlider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${me(r.color)}`],r.size!=="medium"&&e[`size${me(r.size)}`],r.marked&&e.marked,r.orientation==="vertical"&&e.vertical,r.track==="inverted"&&e.trackInverted,r.track===!1&&e.trackFalse]}})(rt(({theme:t})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Jo.disabled}`]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},[`&.${Jo.dragging}`]:{[`& .${Jo.thumb}, & .${Jo.track}`]:{transition:"none"}},variants:[...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),Tue=de("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(t,e)=>e.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Oue=de("span",{name:"MuiSlider",slot:"Track",overridesResolver:(t,e)=>e.track})(rt(({theme:t})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e,track:"inverted"},style:{...t.vars?{backgroundColor:t.vars.palette.Slider[`${e}Track`],borderColor:t.vars.palette.Slider[`${e}Track`]}:{backgroundColor:Ol(t.palette[e].main,.62),borderColor:Ol(t.palette[e].main,.62),...t.applyStyles("dark",{backgroundColor:Tl(t.palette[e].main,.5)}),...t.applyStyles("dark",{borderColor:Tl(t.palette[e].main,.5)})}}}))]}))),Due=de("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.thumb,e[`thumbColor${me(r.color)}`],r.size!=="medium"&&e[`thumbSize${me(r.size)}`]]}})(rt(({theme:t})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Jo.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(t.palette).filter(xr()).map(([e])=>({props:{color:e},style:{[`&:hover, &.${Jo.focusVisible}`]:{...t.vars?{boxShadow:`0px 0px 0px 8px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Qt(t.palette[e].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${Jo.active}`]:{...t.vars?{boxShadow:`0px 0px 0px 14px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Qt(t.palette[e].main,.16)}`}}}}))]}))),Aue=de(kue,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(t,e)=>e.valueLabel})(rt(({theme:t})=>({zIndex:1,whiteSpace:"nowrap",...t.typography.body2,fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Jo.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Jo.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),Iue=de("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:t=>$y(t)&&t!=="markActive",overridesResolver:(t,e)=>{const{markActive:r}=t;return[e.mark,r&&e.markActive]}})(rt(({theme:t})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}))),Mue=de("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:t=>$y(t)&&t!=="markLabelActive",overridesResolver:(t,e)=>e.markLabel})(rt(({theme:t})=>({...t.typography.body2,color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]}))),Pue=t=>{const{disabled:e,dragging:r,marked:n,orientation:o,track:a,classes:i,color:s,size:l}=t,d={root:["root",e&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${me(s)}`,l&&`size${me(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",e&&"disabled",l&&`thumbSize${me(l)}`,s&&`thumbColor${me(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return ht(d,Cue,i)},Nue=({children:t})=>t,Rue=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiSlider"}),o=Ul(),{"aria-label":a,"aria-valuetext":i,"aria-labelledby":s,component:l="span",components:d={},componentsProps:h={},color:u="primary",classes:f,className:g,disableSwap:y=!1,disabled:b=!1,getAriaLabel:x,getAriaValueText:S,marks:T=!1,max:E=100,min:$=0,name:k,onChange:O,onChangeCommitted:M,orientation:R="horizontal",shiftStep:j=10,size:I="medium",step:z=1,scale:W=BR,slotProps:L,slots:F,tabIndex:H,track:q="normal",value:ee,valueLabelDisplay:Y="off",valueLabelFormat:G=BR,...te}=n,B={...n,isRtl:o,max:E,min:$,classes:f,disabled:b,disableSwap:y,orientation:R,marks:T,color:u,size:I,step:z,shiftStep:j,scale:W,track:q,valueLabelDisplay:Y,valueLabelFormat:G},{axisProps:K,getRootProps:he,getHiddenInputProps:fe,getThumbProps:ge,open:Ee,active:ze,axis:Ne,focusedThumbIndex:Fe,range:Pe,dragging:Ye,marks:Be,values:Ke,trackOffset:Xe,trackLeap:ve,getThumbStyle:le}=xue({...B,rootRef:r});B.marked=Be.length>0&&Be.some(Rt=>Rt.label),B.dragging=Ye,B.focusedThumbIndex=Fe;const re=Pue(B),He=(F==null?void 0:F.root)??d.Root??Eue,Ve=(F==null?void 0:F.rail)??d.Rail??Tue,at=(F==null?void 0:F.track)??d.Track??Oue,ut=(F==null?void 0:F.thumb)??d.Thumb??Due,ke=(F==null?void 0:F.valueLabel)??d.ValueLabel??Aue,pt=(F==null?void 0:F.mark)??d.Mark??Iue,J=(F==null?void 0:F.markLabel)??d.MarkLabel??Mue,ae=(F==null?void 0:F.input)??d.Input??"input",Se=(L==null?void 0:L.root)??h.root,Te=(L==null?void 0:L.rail)??h.rail,Oe=(L==null?void 0:L.track)??h.track,Ce=(L==null?void 0:L.thumb)??h.thumb,nt=(L==null?void 0:L.valueLabel)??h.valueLabel,Le=(L==null?void 0:L.mark)??h.mark,mt=(L==null?void 0:L.markLabel)??h.markLabel,vt=(L==null?void 0:L.input)??h.input,wt=nn({elementType:He,getSlotProps:he,externalSlotProps:Se,externalForwardedProps:te,additionalProps:{...Sue(He)&&{as:l}},ownerState:{...B,...Se==null?void 0:Se.ownerState},className:[re.root,g]}),pe=nn({elementType:Ve,externalSlotProps:Te,ownerState:B,className:re.rail}),$e=nn({elementType:at,externalSlotProps:Oe,additionalProps:{style:{...K[Ne].offset(Xe),...K[Ne].leap(ve)}},ownerState:{...B,...Oe==null?void 0:Oe.ownerState},className:re.track}),ot=nn({elementType:ut,getSlotProps:ge,externalSlotProps:Ce,ownerState:{...B,...Ce==null?void 0:Ce.ownerState},className:re.thumb}),yt=nn({elementType:ke,externalSlotProps:nt,ownerState:{...B,...nt==null?void 0:nt.ownerState},className:re.valueLabel}),Pt=nn({elementType:pt,externalSlotProps:Le,ownerState:B,className:re.mark}),Xr=nn({elementType:J,externalSlotProps:mt,ownerState:B,className:re.markLabel}),an=nn({elementType:ae,getSlotProps:fe,externalSlotProps:vt,ownerState:B});return w.jsxs(He,{...wt,children:[w.jsx(Ve,{...pe}),w.jsx(at,{...$e}),Be.filter(Rt=>Rt.value>=$&&Rt.value<=E).map((Rt,hr)=>{const Ao=Tv(Rt.value,$,E),pi=K[Ne].offset(Ao);let Hn;return q===!1?Hn=Ke.includes(Rt.value):Hn=q==="normal"&&(Pe?Rt.value>=Ke[0]&&Rt.value<=Ke[Ke.length-1]:Rt.value<=Ke[0])||q==="inverted"&&(Pe?Rt.value<=Ke[0]||Rt.value>=Ke[Ke.length-1]:Rt.value>=Ke[0]),w.jsxs(A.Fragment,{children:[w.jsx(pt,{"data-index":hr,...Pt,...!Ii(pt)&&{markActive:Hn},style:{...pi,...Pt.style},className:Me(Pt.className,Hn&&re.markActive)}),Rt.label!=null?w.jsx(J,{"aria-hidden":!0,"data-index":hr,...Xr,...!Ii(J)&&{markLabelActive:Hn},style:{...pi,...Xr.style},className:Me(re.markLabel,Xr.className,Hn&&re.markLabelActive),children:Rt.label}):null]},hr)}),Ke.map((Rt,hr)=>{const Ao=Tv(Rt,$,E),pi=K[Ne].offset(Ao),Hn=Y==="off"?Nue:ke;return w.jsx(Hn,{...!Ii(Hn)&&{valueLabelFormat:G,valueLabelDisplay:Y,value:typeof G=="function"?G(W(Rt),hr):G,index:hr,open:Ee===hr||ze===hr||Y==="on",disabled:b},...yt,children:w.jsx(ut,{"data-index":hr,...ot,className:Me(re.thumb,ot.className,ze===hr&&re.active,Fe===hr&&re.focusVisible),style:{...pi,...le(hr),...ot.style},children:w.jsx(ae,{"data-index":hr,"aria-label":x?x(hr):a,"aria-valuenow":W(Rt),"aria-labelledby":s,"aria-valuetext":S?S(W(Rt),hr):i,value:Ke[hr],...an})})},hr)})]})});function jue(t={}){const{autoHideDuration:e=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=t,i=bl();A.useEffect(()=>{if(!o)return;function S(T){T.defaultPrevented||T.key==="Escape"&&(n==null||n(T,"escapeKeyDown"))}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[o,n]);const s=bn((S,T)=>{n==null||n(S,T)}),l=bn(S=>{!n||S==null||i.start(S,()=>{s(null,"timeout")})});A.useEffect(()=>(o&&l(e),i.clear),[o,e,l,i]);const d=S=>{n==null||n(S,"clickaway")},h=i.clear,u=A.useCallback(()=>{e!=null&&l(a??e*.5)},[e,a,l]),f=S=>T=>{const E=S.onBlur;E==null||E(T),u()},g=S=>T=>{const E=S.onFocus;E==null||E(T),h()},y=S=>T=>{const E=S.onMouseEnter;E==null||E(T),h()},b=S=>T=>{const E=S.onMouseLeave;E==null||E(T),u()};return A.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",u),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",u),window.removeEventListener("blur",h)}},[r,o,u,h]),{getRootProps:(S={})=>{const T={...Sl(t),...Sl(S)};return{role:"presentation",...S,...T,onBlur:f(T),onFocus:g(T),onMouseEnter:y(T),onMouseLeave:b(T)}},onClickAway:d}}function Lue(t){return dt("MuiSnackbarContent",t)}ct("MuiSnackbarContent",["root","message","action"]);const zue=t=>{const{classes:e}=t;return ht({root:["root"],action:["action"],message:["message"]},Lue,e)},Fue=de(zn,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(t,e)=>e.root})(rt(({theme:t})=>{const e=t.palette.mode==="light"?.8:.98,r=pv(t.palette.background.default,e);return{...t.typography.body2,color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Bue=de("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0"}),Wue=de("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Hue=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:s="alert",...l}=n,d=n,h=zue(d);return w.jsxs(Fue,{role:s,square:!0,elevation:6,className:Me(h.root,a),ownerState:d,ref:r,...l,children:[w.jsx(Bue,{className:h.message,ownerState:d,children:i}),o?w.jsx(Wue,{className:h.action,ownerState:d,children:o}):null]})});function Uue(t){return dt("MuiSnackbar",t)}ct("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Vue=t=>{const{classes:e,anchorOrigin:r}=t,n={root:["root",`anchorOrigin${me(r.vertical)}${me(r.horizontal)}`]};return ht(n,Uue,e)},WR=de("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`anchorOrigin${me(r.anchorOrigin.vertical)}${me(r.anchorOrigin.horizontal)}`]]}})(rt(({theme:t})=>({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical==="top",style:{top:8,[t.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!=="top",style:{bottom:8,[t.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[t.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[t.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="center",style:{[t.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Ov=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiSnackbar"}),o=ai(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:h,className:u,ClickAwayListenerProps:f,ContentProps:g,disableWindowBlurListener:y=!1,message:b,onBlur:x,onClose:S,onFocus:T,onMouseEnter:E,onMouseLeave:$,open:k,resumeHideDuration:O,TransitionComponent:M=nf,transitionDuration:R=a,TransitionProps:{onEnter:j,onExited:I,...z}={},...W}=n,L={...n,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:d,disableWindowBlurListener:y,TransitionComponent:M,transitionDuration:R},F=Vue(L),{getRootProps:H,onClickAway:q}=jue({...L}),[ee,Y]=A.useState(!0),G=nn({elementType:WR,getSlotProps:H,externalForwardedProps:W,ownerState:L,additionalProps:{ref:r},className:[F.root,u]}),te=K=>{Y(!0),I&&I(K)},B=(K,he)=>{Y(!1),j&&j(K,he)};return!k&&ee?null:w.jsx(ple,{onClickAway:q,...f,children:w.jsx(WR,{...G,children:w.jsx(M,{appear:!0,in:k,timeout:R,direction:s==="top"?"down":"up",onEnter:B,onExited:te,...z,children:h||w.jsx(Hue,{message:b,action:i,...g})})})})});function que(t){return dt("MuiTooltip",t)}const Br=ct("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Gue(t){return Math.round(t*1e5)/1e5}const Xue=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:a}=t,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${me(a.split("-")[0])}`],arrow:["arrow"]};return ht(i,que,e)},Jue=de(VW,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(rt(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Br.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Br.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Br.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Br.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Br.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Br.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Br.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Br.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Yue=de("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${me(r.placement.split("-")[0])}`]]}})(rt(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Qt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${Br.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Br.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Br.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Br.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${Gue(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Br.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Br.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Br.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Br.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Br.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Br.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Br.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Br.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Br.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Br.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Kue=de("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(rt(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Qt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let mg=!1;const HR=new Sy;let zp={x:0,y:0};function gg(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const Zr=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:i,components:s={},componentsProps:l={},describeChild:d=!1,disableFocusListener:h=!1,disableHoverListener:u=!1,disableInteractive:f=!1,disableTouchListener:g=!1,enterDelay:y=100,enterNextDelay:b=0,enterTouchDelay:x=700,followCursor:S=!1,id:T,leaveDelay:E=0,leaveTouchDelay:$=1500,onClose:k,onOpen:O,open:M,placement:R="bottom",PopperComponent:j,PopperProps:I={},slotProps:z={},slots:W={},title:L,TransitionComponent:F,TransitionProps:H,...q}=n,ee=A.isValidElement(a)?a:w.jsx("span",{children:a}),Y=ai(),G=Ul(),[te,B]=A.useState(),[K,he]=A.useState(null),fe=A.useRef(!1),ge=f||S,Ee=bl(),ze=bl(),Ne=bl(),Fe=bl(),[Pe,Ye]=qh({controlled:M,default:!1,name:"Tooltip",state:"open"});let Be=Pe;const Ke=xy(T),Xe=A.useRef(),ve=bn(()=>{Xe.current!==void 0&&(document.body.style.WebkitUserSelect=Xe.current,Xe.current=void 0),Fe.clear()});A.useEffect(()=>ve,[ve]);const le=Tt=>{HR.clear(),mg=!0,Ye(!0),O&&!Be&&O(Tt)},re=bn(Tt=>{HR.start(800+E,()=>{mg=!1}),Ye(!1),k&&Be&&k(Tt),Ee.start(Y.transitions.duration.shortest,()=>{fe.current=!1})}),He=Tt=>{fe.current&&Tt.type!=="touchstart"||(te&&te.removeAttribute("title"),ze.clear(),Ne.clear(),y||mg&&b?ze.start(mg?b:y,()=>{le(Tt)}):le(Tt))},Ve=Tt=>{ze.clear(),Ne.start(E,()=>{re(Tt)})},[,at]=A.useState(!1),ut=Tt=>{iu(Tt.target)||(at(!1),Ve(Tt))},ke=Tt=>{te||B(Tt.currentTarget),iu(Tt.target)&&(at(!0),He(Tt))},pt=Tt=>{fe.current=!0;const An=ee.props;An.onTouchStart&&An.onTouchStart(Tt)},J=Tt=>{pt(Tt),Ne.clear(),Ee.clear(),ve(),Xe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Fe.start(x,()=>{document.body.style.WebkitUserSelect=Xe.current,He(Tt)})},ae=Tt=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(Tt),ve(),Ne.start($,()=>{re(Tt)})};A.useEffect(()=>{if(!Be)return;function Tt(An){An.key==="Escape"&&re(An)}return document.addEventListener("keydown",Tt),()=>{document.removeEventListener("keydown",Tt)}},[re,Be]);const Se=Mr(Hl(ee),B,r);!L&&L!==0&&(Be=!1);const Te=A.useRef(),Oe=Tt=>{const An=ee.props;An.onMouseMove&&An.onMouseMove(Tt),zp={x:Tt.clientX,y:Tt.clientY},Te.current&&Te.current.update()},Ce={},nt=typeof L=="string";d?(Ce.title=!Be&&nt&&!u?L:null,Ce["aria-describedby"]=Be?Ke:null):(Ce["aria-label"]=nt?L:null,Ce["aria-labelledby"]=Be&&!nt?Ke:null);const Le={...Ce,...q,...ee.props,className:Me(q.className,ee.props.className),onTouchStart:pt,ref:Se,...S?{onMouseMove:Oe}:{}},mt={};g||(Le.onTouchStart=J,Le.onTouchEnd=ae),u||(Le.onMouseOver=gg(He,Le.onMouseOver),Le.onMouseLeave=gg(Ve,Le.onMouseLeave),ge||(mt.onMouseOver=He,mt.onMouseLeave=Ve)),h||(Le.onFocus=gg(ke,Le.onFocus),Le.onBlur=gg(ut,Le.onBlur),ge||(mt.onFocus=ke,mt.onBlur=ut));const vt={...n,isRtl:G,arrow:o,disableInteractive:ge,placement:R,PopperComponentProp:j,touch:fe.current},wt=typeof z.popper=="function"?z.popper(vt):z.popper,pe=A.useMemo(()=>{var An,Vu;let Tt=[{name:"arrow",enabled:!!K,options:{element:K,padding:4}}];return(An=I.popperOptions)!=null&&An.modifiers&&(Tt=Tt.concat(I.popperOptions.modifiers)),(Vu=wt==null?void 0:wt.popperOptions)!=null&&Vu.modifiers&&(Tt=Tt.concat(wt.popperOptions.modifiers)),{...I.popperOptions,...wt==null?void 0:wt.popperOptions,modifiers:Tt}},[K,I.popperOptions,wt==null?void 0:wt.popperOptions]),$e=Xue(vt),ot=typeof z.transition=="function"?z.transition(vt):z.transition,yt={slots:{popper:s.Popper,transition:s.Transition??F,tooltip:s.Tooltip,arrow:s.Arrow,...W},slotProps:{arrow:z.arrow??l.arrow,popper:{...I,...wt??l.popper},tooltip:z.tooltip??l.tooltip,transition:{...H,...ot??l.transition}}},[Pt,Xr]=un("popper",{elementType:Jue,externalForwardedProps:yt,ownerState:vt,className:Me($e.popper,I==null?void 0:I.className)}),[an,Rt]=un("transition",{elementType:nf,externalForwardedProps:yt,ownerState:vt}),[hr,Ao]=un("tooltip",{elementType:Yue,className:$e.tooltip,externalForwardedProps:yt,ownerState:vt}),[pi,Hn]=un("arrow",{elementType:Kue,className:$e.arrow,externalForwardedProps:yt,ownerState:vt,ref:he});return w.jsxs(A.Fragment,{children:[A.cloneElement(ee,Le),w.jsx(Pt,{as:j??VW,placement:R,anchorEl:S?{getBoundingClientRect:()=>({top:zp.y,left:zp.x,right:zp.x,bottom:zp.y,width:0,height:0})}:te,popperRef:Te,open:te?Be:!1,id:Ke,transition:!0,...mt,...Xr,popperOptions:pe,children:({TransitionProps:Tt})=>w.jsx(an,{timeout:Y.transitions.duration.shorter,...Tt,...Rt,children:w.jsxs(hr,{...Ao,children:[L,o?w.jsx(pi,{...Hn}):null]})})})]})});function Zue(t){return dt("MuiSwitch",t)}const jn=ct("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Que=t=>{const{classes:e,edge:r,size:n,color:o,checked:a,disabled:i}=t,s={root:["root",r&&`edge${me(r)}`,`size${me(n)}`],switchBase:["switchBase",`color${me(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=ht(s,Zue,e);return{...e,...l}},epe=de("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.edge&&e[`edge${me(r.edge)}`],e[`size${me(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,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,[`& .${jn.thumb}`]:{width:16,height:16},[`& .${jn.switchBase}`]:{padding:4,[`&.${jn.checked}`]:{transform:"translateX(16px)"}}}}]}),tpe=de(uO,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.switchBase,{[`& .${jn.input}`]:e.input},r.color!=="default"&&e[`color${me(r.color)}`]]}})(rt(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${jn.checked}`]:{transform:"translateX(20px)"},[`&.${jn.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${jn.checked} + .${jn.track}`]:{opacity:.5},[`&.${jn.disabled} + .${jn.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${jn.input}`]:{left:"-100%",width:"300%"}})),rt(({theme:t})=>({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Qt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(xr(["light"])).map(([e])=>({props:{color:e},style:{[`&.${jn.checked}`]:{color:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Qt(t.palette[e].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${jn.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e}DisabledColor`]:`${t.palette.mode==="light"?Ol(t.palette[e].main,.62):Tl(t.palette[e].main,.55)}`}},[`&.${jn.checked} + .${jn.track}`]:{backgroundColor:(t.vars||t).palette[e].main}}}))]}))),rpe=de("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})(rt(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`}))),npe=de("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(rt(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),ih=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:l,...d}=n,h={...n,color:a,edge:i,size:s},u=Que(h),f=w.jsx(npe,{className:u.thumb,ownerState:h});return w.jsxs(epe,{className:Me(u.root,o),sx:l,ownerState:h,children:[w.jsx(tpe,{type:"checkbox",icon:f,checkedIcon:f,ref:r,ownerState:h,...d,classes:{...u,root:u.switchBase}}),w.jsx(rpe,{className:u.track,ownerState:h})]})});function ope(t){return dt("MuiTab",t)}const zo=ct("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),ape=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:s,disabled:l}=t,d={root:["root",a&&i&&"labelIcon",`textColor${me(r)}`,n&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return ht(d,ope,e)},ipe=de(Li,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${me(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${zo.iconWrapper}`]:e.iconWrapper},{[`& .${zo.icon}`]:e.icon}]}})(rt(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${zo.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${zo.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${zo.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${zo.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${zo.selected}`]:{opacity:1},[`&.${zo.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${zo.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${zo.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${zo.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${zo.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),Uo=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:d="top",indicator:h,label:u,onChange:f,onClick:g,onFocus:y,selected:b,selectionFollowsFocus:x,textColor:S="inherit",value:T,wrapped:E=!1,...$}=n,k={...n,disabled:a,disableFocusRipple:i,selected:b,icon:!!l,iconPosition:d,label:!!u,fullWidth:s,textColor:S,wrapped:E},O=ape(k),M=l&&u&&A.isValidElement(l)?A.cloneElement(l,{className:Me(O.icon,l.props.className)}):l,R=I=>{!b&&f&&f(I,T),g&&g(I)},j=I=>{x&&!b&&f&&f(I,T),y&&y(I)};return w.jsxs(ipe,{focusRipple:!i,className:Me(O.root,o),ref:r,role:"tab","aria-selected":b,disabled:a,onClick:R,onFocus:j,ownerState:k,tabIndex:b?0:-1,...$,children:[d==="top"||d==="start"?w.jsxs(A.Fragment,{children:[M,u]}):w.jsxs(A.Fragment,{children:[u,M]}),h]})});function spe(t){return dt("MuiToolbar",t)}ct("MuiToolbar",["root","gutters","regular","dense"]);const lpe=t=>{const{classes:e,disableGutters:r,variant:n}=t;return ht({root:["root",!r&&"gutters",n]},spe,e)},cpe=de("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(rt(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),af=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular",...l}=n,d={...n,component:a,disableGutters:i,variant:s},h=lpe(d);return w.jsx(cpe,{as:a,className:Me(h.root,o),ref:r,ownerState:d,...l})}),dpe=Ge(w.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),upe=Ge(w.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function ppe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function hpe(t,e,r,n={},o=()=>{}){const{ease:a=ppe,duration:i=300}=n;let s=null;const l=e[t];let d=!1;const h=()=>{d=!0},u=f=>{if(d){o(new Error("Animation cancelled"));return}s===null&&(s=f);const g=Math.min(1,(f-s)/i);if(e[t]=a(g)*(r-l)+l,g>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(u)};return l===r?(o(new Error("Element already at target position")),h):(requestAnimationFrame(u),h)}const fpe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function mpe(t){const{onChange:e,...r}=t,n=A.useRef(),o=A.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return io(()=>{const i=wy(()=>{const l=n.current;a(),l!==n.current&&e(n.current)}),s=Oa(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[e]),A.useEffect(()=>{a(),e(n.current)},[e]),w.jsx("div",{style:fpe,...r,ref:o})}function gpe(t){return dt("MuiTabScrollButton",t)}const vpe=ct("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ype=t=>{const{classes:e,orientation:r,disabled:n}=t;return ht({root:["root",r,n&&"disabled"]},gpe,e)},_pe=de(Li,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${vpe.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),bpe=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:i={},direction:s,orientation:l,disabled:d,...h}=n,u=Ul(),f={isRtl:u,...n},g=ype(f),y=a.StartScrollButtonIcon??dpe,b=a.EndScrollButtonIcon??upe,x=nn({elementType:y,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),S=nn({elementType:b,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return w.jsx(_pe,{component:"div",className:Me(g.root,o),ref:r,role:null,ownerState:f,tabIndex:null,...h,style:{...h.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:s==="left"?w.jsx(y,{...x}):w.jsx(b,{...S})})});function wpe(t){return dt("MuiTabs",t)}const t1=ct("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),UR=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,VR=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,vg=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(t,o);else{o.focus();return}}},xpe=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=t;return ht({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},wpe,l)},Spe=de("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${t1.scrollButtons}`]:e.scrollButtons},{[`& .${t1.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(rt(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${t1.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),Cpe=de("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),$pe=de("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),kpe=de("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(rt(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),Epe=de(mpe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),qR={},sH=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiTabs"}),o=ai(),a=Ul(),{"aria-label":i,"aria-labelledby":s,action:l,centered:d=!1,children:h,className:u,component:f="div",allowScrollButtonsMobile:g=!1,indicatorColor:y="primary",onChange:b,orientation:x="horizontal",ScrollButtonComponent:S=bpe,scrollButtons:T="auto",selectionFollowsFocus:E,slots:$={},slotProps:k={},TabIndicatorProps:O={},TabScrollButtonProps:M={},textColor:R="primary",value:j,variant:I="standard",visibleScrollbar:z=!1,...W}=n,L=I==="scrollable",F=x==="vertical",H=F?"scrollTop":"scrollLeft",q=F?"top":"left",ee=F?"bottom":"right",Y=F?"clientHeight":"clientWidth",G=F?"height":"width",te={...n,component:f,allowScrollButtonsMobile:g,indicatorColor:y,orientation:x,vertical:F,scrollButtons:T,textColor:R,variant:I,visibleScrollbar:z,fixed:!L,hideScrollbar:L&&!z,scrollableX:L&&!F,scrollableY:L&&F,centered:d&&!L,scrollButtonsHideMobile:!g},B=xpe(te),K=nn({elementType:$.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:te}),he=nn({elementType:$.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:te}),[fe,ge]=A.useState(!1),[Ee,ze]=A.useState(qR),[Ne,Fe]=A.useState(!1),[Pe,Ye]=A.useState(!1),[Be,Ke]=A.useState(!1),[Xe,ve]=A.useState({overflow:"hidden",scrollbarWidth:0}),le=new Map,re=A.useRef(null),He=A.useRef(null),Ve=()=>{const pe=re.current;let $e;if(pe){const yt=pe.getBoundingClientRect();$e={clientWidth:pe.clientWidth,scrollLeft:pe.scrollLeft,scrollTop:pe.scrollTop,scrollWidth:pe.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let ot;if(pe&&j!==!1){const yt=He.current.children;if(yt.length>0){const Pt=yt[le.get(j)];ot=Pt?Pt.getBoundingClientRect():null}}return{tabsMeta:$e,tabMeta:ot}},at=bn(()=>{const{tabsMeta:pe,tabMeta:$e}=Ve();let ot=0,yt;F?(yt="top",$e&&pe&&(ot=$e.top-pe.top+pe.scrollTop)):(yt=a?"right":"left",$e&&pe&&(ot=(a?-1:1)*($e[yt]-pe[yt]+pe.scrollLeft)));const Pt={[yt]:ot,[G]:$e?$e[G]:0};if(typeof Ee[yt]!="number"||typeof Ee[G]!="number")ze(Pt);else{const Xr=Math.abs(Ee[yt]-Pt[yt]),an=Math.abs(Ee[G]-Pt[G]);(Xr>=1||an>=1)&&ze(Pt)}}),ut=(pe,{animation:$e=!0}={})=>{$e?hpe(H,re.current,pe,{duration:o.transitions.duration.standard}):re.current[H]=pe},ke=pe=>{let $e=re.current[H];F?$e+=pe:$e+=pe*(a?-1:1),ut($e)},pt=()=>{const pe=re.current[Y];let $e=0;const ot=Array.from(He.current.children);for(let yt=0;ytpe){yt===0&&($e=pe);break}$e+=Pt[Y]}return $e},J=()=>{ke(-1*pt())},ae=()=>{ke(pt())},Se=A.useCallback(pe=>{ve({overflow:null,scrollbarWidth:pe})},[]),Te=()=>{const pe={};pe.scrollbarSizeListener=L?w.jsx(Epe,{onChange:Se,className:Me(B.scrollableX,B.hideScrollbar)}):null;const ot=L&&(T==="auto"&&(Ne||Pe)||T===!0);return pe.scrollButtonStart=ot?w.jsx(S,{slots:{StartScrollButtonIcon:$.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:K},orientation:x,direction:a?"right":"left",onClick:J,disabled:!Ne,...M,className:Me(B.scrollButtons,M.className)}):null,pe.scrollButtonEnd=ot?w.jsx(S,{slots:{EndScrollButtonIcon:$.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:he},orientation:x,direction:a?"left":"right",onClick:ae,disabled:!Pe,...M,className:Me(B.scrollButtons,M.className)}):null,pe},Oe=bn(pe=>{const{tabsMeta:$e,tabMeta:ot}=Ve();if(!(!ot||!$e)){if(ot[q]<$e[q]){const yt=$e[H]+(ot[q]-$e[q]);ut(yt,{animation:pe})}else if(ot[ee]>$e[ee]){const yt=$e[H]+(ot[ee]-$e[ee]);ut(yt,{animation:pe})}}}),Ce=bn(()=>{L&&T!==!1&&Ke(!Be)});A.useEffect(()=>{const pe=wy(()=>{re.current&&at()});let $e;const ot=Xr=>{Xr.forEach(an=>{an.removedNodes.forEach(Rt=>{$e==null||$e.unobserve(Rt)}),an.addedNodes.forEach(Rt=>{$e==null||$e.observe(Rt)})}),pe(),Ce()},yt=Oa(re.current);yt.addEventListener("resize",pe);let Pt;return typeof ResizeObserver<"u"&&($e=new ResizeObserver(pe),Array.from(He.current.children).forEach(Xr=>{$e.observe(Xr)})),typeof MutationObserver<"u"&&(Pt=new MutationObserver(ot),Pt.observe(He.current,{childList:!0})),()=>{pe.clear(),yt.removeEventListener("resize",pe),Pt==null||Pt.disconnect(),$e==null||$e.disconnect()}},[at,Ce]),A.useEffect(()=>{const pe=Array.from(He.current.children),$e=pe.length;if(typeof IntersectionObserver<"u"&&$e>0&&L&&T!==!1){const ot=pe[0],yt=pe[$e-1],Pt={root:re.current,threshold:.99},Xr=Ao=>{Fe(!Ao[0].isIntersecting)},an=new IntersectionObserver(Xr,Pt);an.observe(ot);const Rt=Ao=>{Ye(!Ao[0].isIntersecting)},hr=new IntersectionObserver(Rt,Pt);return hr.observe(yt),()=>{an.disconnect(),hr.disconnect()}}},[L,T,Be,h==null?void 0:h.length]),A.useEffect(()=>{ge(!0)},[]),A.useEffect(()=>{at()}),A.useEffect(()=>{Oe(qR!==Ee)},[Oe,Ee]),A.useImperativeHandle(l,()=>({updateIndicator:at,updateScrollButtons:Ce}),[at,Ce]);const nt=w.jsx(kpe,{...O,className:Me(B.indicator,O.className),ownerState:te,style:{...Ee,...O.style}});let Le=0;const mt=A.Children.map(h,pe=>{if(!A.isValidElement(pe))return null;const $e=pe.props.value===void 0?Le:pe.props.value;le.set($e,Le);const ot=$e===j;return Le+=1,A.cloneElement(pe,{fullWidth:I==="fullWidth",indicator:ot&&!fe&&nt,selected:ot,selectionFollowsFocus:E,onChange:b,textColor:R,value:$e,...Le===1&&j===!1&&!pe.props.tabIndex?{tabIndex:0}:{}})}),vt=pe=>{const $e=He.current,ot=qr($e).activeElement;if(ot.getAttribute("role")!=="tab")return;let Pt=x==="horizontal"?"ArrowLeft":"ArrowUp",Xr=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(Pt="ArrowRight",Xr="ArrowLeft"),pe.key){case Pt:pe.preventDefault(),vg($e,ot,VR);break;case Xr:pe.preventDefault(),vg($e,ot,UR);break;case"Home":pe.preventDefault(),vg($e,null,UR);break;case"End":pe.preventDefault(),vg($e,null,VR);break}},wt=Te();return w.jsxs(Spe,{className:Me(B.root,u),ownerState:te,ref:r,as:f,...W,children:[wt.scrollButtonStart,wt.scrollbarSizeListener,w.jsxs(Cpe,{className:B.scroller,ownerState:te,style:{overflow:Xe.overflow,[F?`margin${a?"Left":"Right"}`:"marginBottom"]:z?void 0:-Xe.scrollbarWidth},ref:re,children:[w.jsx($pe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:B.flexContainer,ownerState:te,onKeyDown:vt,ref:He,role:"tablist",children:mt}),fe&&nt]}),wt.scrollButtonEnd]})});function Tpe(t){return dt("MuiTextField",t)}ct("MuiTextField",["root"]);const Ope={standard:ya,filled:hO,outlined:gO},Dpe=t=>{const{classes:e}=t;return ht({root:["root"]},Tpe,e)},Ape=de(_a,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Ht=A.forwardRef(function(e,r){const n=ft({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:d,disabled:h=!1,error:u=!1,FormHelperTextProps:f,fullWidth:g=!1,helperText:y,id:b,InputLabelProps:x,inputProps:S,InputProps:T,inputRef:E,label:$,maxRows:k,minRows:O,multiline:M=!1,name:R,onBlur:j,onChange:I,onFocus:z,placeholder:W,required:L=!1,rows:F,select:H=!1,SelectProps:q,slots:ee={},slotProps:Y={},type:G,value:te,variant:B="outlined",...K}=n,he={...n,autoFocus:a,color:l,disabled:h,error:u,fullWidth:g,multiline:M,required:L,select:H,variant:B},fe=Dpe(he),ge=xy(b),Ee=y&&ge?`${ge}-helper-text`:void 0,ze=$&&ge?`${ge}-label`:void 0,Ne=Ope[B],Fe={slots:ee,slotProps:{input:T,inputLabel:x,htmlInput:S,formHelperText:f,select:q,...Y}},Pe={},Ye=Fe.slotProps.inputLabel;B==="outlined"&&(Ye&&typeof Ye.shrink<"u"&&(Pe.notched=Ye.shrink),Pe.label=$),H&&((!q||!q.native)&&(Pe.id=void 0),Pe["aria-describedby"]=void 0);const[Be,Ke]=un("input",{elementType:Ne,externalForwardedProps:Fe,additionalProps:Pe,ownerState:he}),[Xe,ve]=un("inputLabel",{elementType:$l,externalForwardedProps:Fe,ownerState:he}),[le,re]=un("htmlInput",{elementType:"input",externalForwardedProps:Fe,ownerState:he}),[He,Ve]=un("formHelperText",{elementType:gce,externalForwardedProps:Fe,ownerState:he}),[at,ut]=un("select",{elementType:Bn,externalForwardedProps:Fe,ownerState:he}),ke=w.jsx(Be,{"aria-describedby":Ee,autoComplete:o,autoFocus:a,defaultValue:d,fullWidth:g,multiline:M,name:R,rows:F,maxRows:k,minRows:O,type:G,value:te,id:ge,inputRef:E,onBlur:j,onChange:I,onFocus:z,placeholder:W,inputProps:re,slots:{input:ee.htmlInput?le:void 0},...Ke});return w.jsxs(Ape,{className:Me(fe.root,s),disabled:h,error:u,fullWidth:g,ref:r,required:L,color:l,variant:B,ownerState:he,...K,children:[$!=null&&$!==""&&w.jsx(Xe,{htmlFor:ge,id:ze,...ve,children:$}),H?w.jsx(at,{"aria-describedby":Ee,id:ge,labelId:ze,value:te,input:ke,...ut,children:i}):ke,y&&w.jsx(He,{id:Ee,...Ve,children:y})]})});var lH={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},GR=m.createContext&&m.createContext(lH),Ipe=["attr","size","title"];function Mpe(t,e){if(t==null)return{};var r=Ppe(t,e),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Ppe(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Dv(){return Dv=Object.assign?Object.assign.bind():function(t){for(var e=1;em.createElement(e.tag,Av({key:r},e.attr),cH(e.child)))}function Pr(t){return e=>m.createElement(Lpe,Dv({attr:Av({},t.attr)},e),cH(t.child))}function Lpe(t){var e=r=>{var{attr:n,size:o,title:a}=t,i=Mpe(t,Ipe),s=o||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),m.createElement("svg",Dv({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:l,style:Av(Av({color:t.color||r.color},r.style),t.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&m.createElement("title",null,a),t.children)};return GR!==void 0?m.createElement(GR.Consumer,null,r=>e(r)):e(lH)}function yu(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"},child:[]}]})(t)}function zpe(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3 5 6.99h3V14h2V6.99h3L9 3z"},child:[]}]})(t)}function Il(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(t)}function dH(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 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-2zm0 16H8V7h11v14z"},child:[]}]})(t)}function uH(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"},child:[]}]})(t)}function pH(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"},child:[]}]})(t)}function JR(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},child:[]}]})(t)}function Fpe(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{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-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"},child:[]}]})(t)}function r1(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},child:[]}]})(t)}function Bpe(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"},child:[]}]})(t)}function sh(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(t)}function wo(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{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"},child:[]}]})(t)}function YR(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"},child:[]}]})(t)}function sf(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(t)}function hH(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"},child:[]}]})(t)}function HE(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"},child:[]}]})(t)}const n1=11/23/100;function KR(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substr(1,2),16),e.g=parseInt(t.substr(3,2),16),e.b=parseInt(t.substr(5,2),16);else if(t.length===4){const r=t.substr(1,1),n=t.substr(2,1),o=t.substr(3,1);e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function Wpe(t){return`#${Math.round(t.r).toString(16)}${Math.round(t.g).toString(16)}${Math.round(t.b).toString(16)}`}function Hpe(t,e,r){const n=KR(t),o=KR(e);return n.r+=o.r*(.05+n1*(r-1)),n.g+=o.g*(.05+n1*(r-1)),n.b+=o.b*(.05+n1*(r-1)),Wpe(n)}function ZR(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:Hpe(t,e,n)};return r}function Upe(t,e){var i,s,l,d,h,u,f,g,y,b,x;let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:vn[200],"&:hover":{color:vn[100]}}},MuiPaper:ZR("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:vn[400],"&:hover":{color:vn[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:vn[200],"&:hover":{color:vn[100]}}},MuiPaper:ZR("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:vn[400],"&:hover":{color:vn[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="DX"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#a9a9a9"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:vn[400],"&:hover":{color:vn[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#F5F5F7"},secondary:{main:"#a9a9a9"},expert:"#BD1B24",text:{primary:"#007AFE",secondary:"#007AFE",disabled:"#007AFEAA"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:vn[400],"&:hover":{color:vn[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:(s=(i=r.palette)==null?void 0:i.primary)==null?void 0:s.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:mE[300],dark:mE[400]});const o=Xh(r),a=o.palette;return Xh(o,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:(l=a.grey)==null?void 0:l[300],color:a.getContrastText&&((d=a.grey)!=null&&d[300])?a.getContrastText(a.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:(h=a.text)==null?void 0:h.primary,borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${(u=a.action)==null?void 0:u.disabledBackground}`},"&:hover":{borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Qt(((f=a.text)==null?void 0:f.primary)||"",((g=a.action)==null?void 0:g.hoverOpacity)||.04)}}},{props:{variant:"text",color:"grey"},style:{color:(y=a.text)==null?void 0:y.primary,"&:hover":{backgroundColor:Qt(((b=a.text)==null?void 0:b.primary)||"",((x=a.action)==null?void 0:x.hoverOpacity)||.04)}}}]}}})}function Vpe(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function qpe(t){return(t==null?void 0:t.rows.map(e=>e.value).filter(e=>!!e))??[]}function QR(t){return t!=null&&t.startsWith("system.host.")||(t=`system.host.${t}`),t}function e5(t){return new Promise(e=>{setTimeout(e,t)})}function yg(t){t=(t||"").toString();const e=t[0]==="*",r=t[t.length-1]==="*";return t=t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(e?"":"^")+t+(r?"":"$")}var Ga;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(Ga||(Ga={}));var Ss;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(Ss||(Ss={}));Ss.PERMISSION_ERROR;Ss.NOT_CONNECTED;const Gpe=["material","echarts","vis"];class Oi{constructor(e){X(this,"props");X(this,"ignoreState","");X(this,"connected",!1);X(this,"subscribed",!1);X(this,"firstConnect",!0);X(this,"waitForRestart",!1);X(this,"loaded",!1);X(this,"simStates",{});X(this,"statesSubscribes",{});X(this,"filesSubscribes",{});X(this,"objectsSubscribes",{});X(this,"objects",{});X(this,"states",{});X(this,"acl",null);X(this,"isSecure",!1);X(this,"onReadyDone",!1);X(this,"onConnectionHandlers",[]);X(this,"onLogHandlers",[]);X(this,"onCmdStdoutHandler");X(this,"onCmdStderrHandler");X(this,"onCmdExitHandler");X(this,"_socket");X(this,"_waitForSocketPromise");X(this,"_waitForFirstConnectionPromise",Vpe());X(this,"_instanceSubscriptions",{});X(this,"_promises",{});X(this,"_authTimer");X(this,"_systemConfig");X(this,"systemLang","en");this.props=this.applyDefaultProps(e),this.waitForSocketLib().then(()=>this.startSocket()).catch(r=>{alert(`Socket connection could not be initialized: ${r}`)})}applyDefaultProps(e){return{...e,protocol:e.protocol||window.location.protocol,host:e.host||window.location.hostname,port:e.port||(window.location.port==="3000"?8081:window.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}}onError(e){(this.props.onError??console.error)(e)}get systemConfig(){return this._systemConfig}static isWeb(){return window.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(e,r)=>{if(typeof window.io>"u"&&typeof window.iob>"u")if(typeof window.registerSocketOnLoad=="function")window.registerSocketOnLoad(()=>e());else{for(let n=1;n<=30;n++){if(window.io||window.iob)return e();await e5(100)}r(new Error("Socket library could not be loaded!"))}else e()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let e=this.props.host,r=this.props.port,n=(this.props.protocol||window.location.protocol).replace(":",""),o=window.location.pathname;if(window.location.hostname==="iobroker.net"||window.location.hostname==="iobroker.pro")o="";else{if(window.socketUrl){const s=new URL(window.socketUrl);e=s.hostname,r=s.port,n=s.protocol.replace(":","")}const i=o.lastIndexOf("/");if(i!==-1&&(o=o.substring(0,i+1)),Oi.isWeb()){const s=o.split("/");s.length>2&&(s.pop(),s.pop(),Gpe.includes(s[s.length-1])&&s.pop(),o=s.join("/"),o.endsWith("/")||(o+="/"))}}const a=r?`${n}://${e}:${r}`:`${n}://${e}`;return this._socket=(window.io||window.iob).connect(a,{path:o.endsWith("/")?`${o}socket.io`:`${o}/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",i=>{this.onReadyDone=!1,i!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(s=>{const[l,d,h]=s.version.split(".");parseInt(l,10)*1e4+parseInt(d,10)*100+parseInt(h,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(f,g)=>this.onPreConnect(f,g))}).catch(s=>this.onError({message:s.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(s,l)=>{this.onPreConnect(s,l)})}),this._socket.on("reconnect",()=>{var i,s;this.onReadyDone=!1,(s=(i=this.props).onProgress)==null||s.call(i,Ga.READY),this.connected=!0,this.waitForRestart?window.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(l=>l(!0)))}),this._socket.on("disconnect",()=>{var i,s;this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,(s=(i=this.props).onProgress)==null||s.call(i,Ga.CONNECTING),this.onConnectionHandlers.forEach(l=>l(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",i=>{var s,l;(l=(s=this.props).onLog)==null||l.call(s,i),this.onLogHandlers.forEach(d=>d(i))}),this._socket.on("error",i=>{let s;i==null?s="":typeof i.toString=="function"?s=i.toString():(s=JSON.stringify(i),console.error(`Received strange error: ${s}`)),s.includes("User not authorized")?this.authenticate():s.includes("websocket error")?(console.error(`Socket Error => reload: ${i}`),window.location.reload()):console.error(`Socket Error: ${i}`)}),this._socket.on("connect_error",i=>console.error(`Connect error: ${i}`)),this._socket.on("permissionError",i=>this.onError({message:"no permission",operation:i.operation,type:i.type,id:i.id||""})),this._socket.on("objectChange",(i,s)=>{setTimeout(()=>this.objectChange(i,s),0)}),this._socket.on("stateChange",(i,s)=>{setTimeout(()=>this.stateChange(i,s),0)}),this._socket.on("im",(i,s,l)=>{setTimeout(()=>this.instanceMessage(i,s,l),0)}),this._socket.on("fileChange",(i,s,l)=>{setTimeout(()=>this.fileChange(i,s,l),0)}),this._socket.on("cmdStdout",(i,s)=>{var l;(l=this.onCmdStdoutHandler)==null||l.call(this,i,s)}),this._socket.on("cmdStderr",(i,s)=>{var l;(l=this.onCmdStderrHandler)==null||l.call(this,i,s)}),this._socket.on("cmdExit",(i,s)=>{var l;(l=this.onCmdExitHandler)==null||l.call(this,i,s)}),Promise.resolve()}onPreConnect(e,r){var n,o;this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=r,this.waitForRestart?window.location.reload():(this.firstConnect?this.loadData().catch(a=>console.error(`Cannot load data: ${a}`)):(o=(n=this.props).onProgress)==null||o.call(n,Ga.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(a=>a(!0))),this._waitForFirstConnectionPromise.resolve()}static isCloud(){return window.location.hostname.includes("amazonaws.com")||window.location.hostname.includes("iobroker.in")?!0:typeof window.socketUrl>"u"?!1:window.socketUrl.includes("iobroker.in")||window.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getUserPermissions",(n,o)=>{n?r(n):e(o)})}})}async loadData(){if(this.loaded)return;const e=10;for(let r=1;r<=e;r++){if(this.doLoadData().catch(n=>console.error(`Cannot load data: ${n}`)),this.loaded)return;await e5(Oi.isCloud()?5e3:1e3)}}async doLoadData(){var e,r,n,o,a,i,s,l,d;if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(h){this.onError(`Cannot read user permissions: ${h}`);return}try{this.props.admin5only&&!Oi.isWeb()&&(!window.vendorPrefix||window.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(h){this.onError(`Cannot read system config: ${h}`);return}this._systemConfig&&(this.systemLang=(e=this._systemConfig.common)==null?void 0:e.language,this.systemLang||(this.systemLang=window.navigator.userLanguage||window.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)),(n=(r=this.props).onLanguage)==null||n.call(r,this.systemLang),this.loaded=!0,(a=(o=this.props).onProgress)==null||a.call(o,Ga.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),(s=(i=this.props).onProgress)==null||s.call(i,Ga.READY),this.onReadyDone||(this.onReadyDone=!0,(d=(l=this.props).onReady)==null||d.call(l,this.objects))}}authenticate(){window.location.search.includes("&href=")?window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}${window.location.search}${window.location.hash}`:window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}?login&href=${window.location.search}${window.location.hash}`}async subscribeState(...e){let r,n,o;e.length===3?[r,n,o]=e:([r,o]=e,n=!1);let a;if(Array.isArray(r)?a=r:a=[r],typeof o!="function")throw new Error("The state change handler must be a function!");const i=[];for(let s=0;ss.includes("*"))){let s;for(let l=0;lconsole.error(`Cannot call state change handler: ${f}`))}}}else try{const s=await(Oi.isWeb()?this.getStates(a):this.getForeignStates(a));if(s)for(const[l,d]of Object.entries(s)){const h=o(l,d);h instanceof Promise&&h.catch(u=>console.error(`Cannot call state change handler: ${u}`))}}catch(s){console.error(`Cannot getState "${a.join(", ")}": ${s.message}`);return}}async subscribeStateAsync(e,r){return this.subscribeState(e,r)}unsubscribeState(e,r){var a;let n;Array.isArray(e)?n=e:n=[e];const o=[];for(let i=0;i{try{const h=d(e,r,n);h instanceof Promise&&h.catch(u=>console.error(`Cannot call object change handler: ${u}`))}catch(h){console.error(`Error by callback of objectChange: ${h}`)}});if(o){const s=(i=(a=this.props).onObjectChange)==null?void 0:i.call(a,e,r);s instanceof Promise&&s.catch(l=>console.error(`Cannot call object change handler: ${l}`))}}stateChange(e,r){for(const n of Object.values(this.statesSubscribes))if(n.reg.test(e))for(const o of n.cbs)try{const a=o(e,r??null);a instanceof Promise&&a.catch(i=>console.error(`Cannot call state change handler: ${i}`))}catch(a){console.error(`Error by callback of stateChanged: ${a}`)}}instanceMessage(e,r,n){var o;(o=this._instanceSubscriptions[r])==null||o.forEach(a=>{if(a.messageType===e){const i=a.callback(n,r,e);i instanceof Promise&&i.catch(s=>console.error(`Cannot call instance message handler: ${s}`))}})}fileChange(e,r,n){for(const o of Object.values(this.filesSubscribes))if(o.regId.test(e)&&o.regFilePattern.test(r))for(const a of o.cbs)try{a(e,r,n)}catch(i){console.error(`Error by callback of fileChange: ${i}`)}}async subscribeFiles(e,r,n){if(typeof n!="function")throw new Error("The state change handler must be a function!");let o;Array.isArray(r)?o=r:o=[r];const a=[];for(let i=0;i{const u={elapsed:!1,clearTimeout:()=>{}};let f;n!==!1&&(f=setTimeout(()=>{u.elapsed=!0,o==null||o(),e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(Ss.TIMEOUT))},n??this.props.cmdTimeout),u.clearTimeout=()=>{clearTimeout(f)});try{await s(d,h,u)}catch(g){e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(g.toString()))}});return e&&(this._promises[e]=l),l}resetCache(e,r){r?Object.keys(this._promises).filter(n=>n.startsWith(e)).forEach(n=>{delete this._promises[n]}):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getStates",e,(o,a)=>{this.states=a??{},o?n(o):r(this.states)})}})}getState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r(this.simStates[e]||{val:null,ack:!0});return}this._socket.emit("getState",e,(o,a)=>{o?n(o):r(a)})}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getBinaryState",e,(o,a)=>{o?n(o):r(a)})}})}setBinaryState(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setBinaryState",e,r,a=>{a?o(a):n()})}})}setState(e,r,n){return typeof n=="boolean"&&(r={val:r,ack:n}),this.request({commandTimeout:!1,executor:(o,a)=>{if(e&&e===this.ignoreState){let i;if(typeof n=="boolean"||typeof r=="object"&&r.val!==void 0?i=r:i={val:r,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[e]=i,this.statesSubscribes[e])for(const s of this.statesSubscribes[e].cbs)try{const l=s(e,i);l instanceof Promise&&l.catch(d=>console.error(`Cannot call state change handler: ${d}`))}catch(l){console.error(`Error by callback of stateChanged: ${l}`)}o();return}this._socket.emit("setState",e,r,i=>{i?a(i):o()})}})}getObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{if(!e&&this.objects){n(this.objects);return}this._socket.emit(Oi.isWeb()?"getObjects":"getAllObjects",(a,i)=>{var s,l;r||(l=(s=this.props).onProgress)==null||l.call(s,Ga.OBJECTS_LOADED),a?o(a):(this.objects=i??{},n(this.objects))})}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjects",e,(o,a)=>{o?n(o):r(a)})}})}_subscribe(e){var r,n;if(e&&!this.subscribed){this.subscribed=!0,(r=this.props.autoSubscribes)!=null&&r.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const o=Object.keys(this.objectsSubscribes);o.length&&this._socket.emit("subscribeObjects",o),Object.keys(this.objectsSubscribes).forEach(a=>this._socket.emit("subscribeObjects",a)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(a=>this._socket.emit("subscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[i,s]=a.split("$%$");this._socket.emit("subscribeFiles",i,s)})}else if(!e&&this.subscribed){this.subscribed=!1,(n=this.props.autoSubscribes)!=null&&n.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const o=Object.keys(this.objectsSubscribes);o.length&&this._socket.emit("unsubscribeObjects",o),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(a=>this._socket.emit("unsubscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[i,s]=a.split("$%$");this._socket.emit("unsubscribeFiles",i,s)})}}requireLog(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("requireLog",e,o=>{o?n(o):r()})}})}delObject(e,r=!1){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObject",e,{maintenance:r},a=>{a?o(a):n()})}})}delObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObjects",e,{maintenance:r},a=>{a?o(a):n()})}})}setObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",e,(o,a)=>{o?n(o):r(a)})}})}sendTo(e,r,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendTo",e,r,n,a=>{o(a)})}})}extendObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("extendObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){const r=this.onLogHandlers.indexOf(e);r!==-1&&this.onLogHandlers.splice(r,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){const r=this.onConnectionHandlers.indexOf(e);r!==-1&&this.onConnectionHandlers.splice(r,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,r){return this.request({cacheKey:`enums_${e||"all"}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${e||""}`,endkey:e?`enum.${e}.香`:"enum.香"},(a,i)=>{if(a)o(a);else{const s={};if(i)for(let l=0;l{n=n||"",o=o||"香",this._socket.emit("getObjectView",e,r,{startkey:n,endkey:o},(s,l)=>{if(s)i(s);else{const d={};if(l&&l.rows)for(let h=0;h{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(n,o)=>{var a;n?r(n):e((a=o.rows)==null?void 0:a.map(i=>i.value).filter(i=>!!i))})}})}readDir(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("readDir",e,r,(a,i)=>{a?o(a):n(i)})}})}readFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit(n?"readFile64":"readFile",e,r,(i,s,l)=>{i?a(i):o({file:s,mimeType:l})})}})}writeFile64(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{if(typeof n=="string")this._socket.emit("writeFile",e,r,n,i=>{i?a(i):o()});else{const i=btoa(new Uint8Array(n).reduce((s,l)=>s+String.fromCharCode(l),""));this._socket.emit("writeFile64",e,r,i,s=>{s?a(s):o()})}}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFile",e,r,a=>{a?o(a):n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFolder",e,r,a=>{a?o(a):n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("rename",e,r,n,i=>{i?a(i):o()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("renameFile",e,r,n,i=>{i?a(i):o()})}})}cmdExec(e,r,n,o){return this.request({commandTimeout:o,executor:(a,i,s)=>{e=QR(e),this._socket.emit("cmdExec",e,n,r,l=>{s.elapsed||(s.clearTimeout(),l?i(l):a())})}})}getSystemConfig(e){return this.request({cacheKey:"systemConfig",forceUpdate:e,commandTimeout:!1,executor:async r=>{let n=await this.getObject("system.config");n??(n={}),n.common??(n.common={}),n.native??(n.native={}),r(n)}})}getCompactSystemConfig(e){return this.request({cacheKey:"systemConfigCommon",forceUpdate:e,commandTimeout:!1,requireAdmin:!0,executor:(r,n)=>{this._socket.emit("getCompactSystemConfig",(o,a)=>{o?n(o):(a??(a={}),a.common??(a.common={}),a.native??(a.native={}),r(a))})}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getForeignStates",e||"*",(o,a)=>{o?n(o):r(a??{})})}})}getForeignObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getForeignObjects",e||"*",r,(a,i)=>{a?o(a):n(i)})}})}setSystemConfig(e){return this.setObject("system.config",e)}getRawSocket(){return this._socket}getHistory(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,i)=>{a?o(a):n(i)})}})}getHistoryEx(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,i,s,l)=>{a?o(a):n({values:i,sessionId:l,step:s})})}})}getIpAddresses(e,r){return e=QR(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObject(e);n((o==null?void 0:o.common.address)??[])}})}getVersion(e){return this.request({cacheKey:"version",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getVersion",(o,a,i)=>{o&&!a&&typeof o=="string"&&o.match(/\d+\.\d+\.\d+/)?r({version:o,serverName:"socketio"}):o?n(o):r({version:a,serverName:i})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getAdapterName",(n,o)=>{n?r(n):e(o)})}})}fileExists(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("fileExists",e,r,(a,i)=>{a?o(a):n(!!i)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit("authEnabled",(r,n)=>{e(n)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async e=>{var n;const r=await this.getObject("system.meta.uuid");e((n=r==null?void 0:r.native)==null?void 0:n.uuid)}})}checkFeatureSupported(e,r){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("checkFeatureSupported",e,(a,i)=>{a?o(a):n(i)})}})}getAdapterInstances(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`instances_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=e?`system.adapter.${e}.`:"system.adapter.",a=`${o}香`,i=await this.getObjectViewSystem("instance",o,a),s=Object.values(i);n(e?s.filter(l=>l.common.name===e):s)}})}getAdapters(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`adapter_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObjectViewSystem("adapter",`system.adapter.${e||""}`,`system.adapter.${e||"香"}`),a=Object.values(o);n(e?a.filter(i=>i.common.name===e):a)}})}getGroups(e){return this.request({cacheKey:"groups",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(o,a)=>{o?n(o):r(qpe(a))})}})}logout(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("logout",n=>{n?r(n):e(null)})}})}subscribeOnInstance(e,r,n,o){return this.request({commandTimeout:!1,executor:(a,i)=>{this._socket.emit("clientSubscribe",e,r,n,(s,l)=>{s?i(s):l&&(l.error?i(l.error):(e.startsWith("system.adapter.")||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find(d=>d.messageType===r&&d.callback===o)||this._instanceSubscriptions[e].push({messageType:r,callback:o}),a(l)))})}})}unsubscribeFromInstance(e,r,n){var i;e.startsWith("system.adapter.")||(e=`system.adapter.${e}`);let o;const a=[];do{o=!1;const s=(i=this._instanceSubscriptions[e])==null?void 0:i.findIndex(l=>(!r||l.messageType===r)&&(!n||l.callback===n));if(s!=null&&s!==-1){o=!0;const l=this._instanceSubscriptions[e][s].messageType;this._instanceSubscriptions[e].splice(s,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e],this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find(h=>h.messageType===l)||a.push(this.request({commandTimeout:!1,executor:(h,u)=>{this._socket.emit("clientUnsubscribe",e,r,(f,g)=>f?u(f):h(g))}}))}}while(o&&(!n||!r));return a.length?Promise.all(a).then(s=>!!s.find(l=>l)):Promise.resolve(!1)}log(e,r){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",e,r),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}}const lr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,kl="8.47.0",Jt=globalThis;function zy(t,e,r){const n=Jt,o=n.__SENTRY__=n.__SENTRY__||{},a=o[kl]=o[kl]||{};return a[t]||(a[t]=e())}const Vl=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Xpe="Sentry Logger ",UE=["debug","info","warn","error","log","assert","trace"],Iv={};function ql(t){if(!("console"in Jt))return t();const e=Jt.console,r={},n=Object.keys(Iv);n.forEach(o=>{const a=Iv[o];r[o]=e[o],e[o]=a});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function Jpe(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Vl?UE.forEach(r=>{e[r]=(...n)=>{t&&ql(()=>{Jt.console[r](`${Xpe}[${r}]:`,...n)})}}):UE.forEach(r=>{e[r]=()=>{}}),e}const $t=zy("logger",Jpe),fH=50,Ml="?",t5=/\(error: (.*)\)/,r5=/captureMessage|captureException/;function mH(...t){const e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,o=0)=>{const a=[],i=r.split(` `);for(let s=n;s1024)continue;const d=t5.test(l)?l.replace(t5,"$1"):l;if(!d.match(/\S*Error: /)){for(const h of e){const u=h(d);if(u){a.push(u);break}}if(a.length>=fH+o)break}}return Kpe(a.slice(o))}}function Ype(t){return Array.isArray(t)?mH(...t):t}function Kpe(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(_g(e).function||"")&&e.pop(),e.reverse(),r5.test(_g(e).function||"")&&(e.pop(),r5.test(_g(e).function||"")&&e.pop()),e.slice(0,fH).map(r=>({...r,filename:r.filename||_g(e).filename,function:r.function||Ml}))}function _g(t){return t[t.length-1]||{}}const o1="";function Ns(t){try{return!t||typeof t!="function"?o1:t.name||o1}catch{return o1}}function n5(t){const e=t.exception;if(e){const r=[];try{return e.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch{return}}}const ev={},o5={};function Gl(t,e){ev[t]=ev[t]||[],ev[t].push(e)}function Xl(t,e){if(!o5[t]){o5[t]=!0;try{e()}catch(r){Vl&&$t.error(`Error while instrumenting ${t}`,r)}}}function ka(t,e){const r=t&&ev[t];if(r)for(const n of r)try{n(e)}catch(o){Vl&&$t.error(`Error while triggering instrumentation handler. Type: ${t} Name: ${Ns(n)} -Error:`,o)}}let a1=null;function Zpe(t){const e="error";Gl(e,t),Xl(e,Qpe)}function Qpe(){a1=Yt.onerror,Yt.onerror=function(t,e,r,n,o){return ka("error",{column:n,error:o,line:r,msg:t,url:e}),a1?a1.apply(this,arguments):!1},Yt.onerror.__SENTRY_INSTRUMENTED__=!0}let i1=null;function ehe(t){const e="unhandledrejection";Gl(e,t),Xl(e,the)}function the(){i1=Yt.onunhandledrejection,Yt.onunhandledrejection=function(t){return ka("unhandledrejection",t),i1?i1.apply(this,arguments):!0},Yt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Fy(){return yO(Yt),Yt}function yO(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||kl,e[kl]=e[kl]||{}}const gH=Object.prototype.toString;function _O(t){switch(gH.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Pl(t,Error)}}function Pu(t,e){return gH.call(t)===`[object ${e}]`}function vH(t){return Pu(t,"ErrorEvent")}function a5(t){return Pu(t,"DOMError")}function rhe(t){return Pu(t,"DOMException")}function Mi(t){return Pu(t,"String")}function bO(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function wO(t){return t===null||bO(t)||typeof t!="object"&&typeof t!="function"}function _u(t){return Pu(t,"Object")}function By(t){return typeof Event<"u"&&Pl(t,Event)}function nhe(t){return typeof Element<"u"&&Pl(t,Element)}function ohe(t){return Pu(t,"RegExp")}function Wy(t){return!!(t&&t.then&&typeof t.then=="function")}function ahe(t){return _u(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Pl(t,e){try{return t instanceof e}catch{return!1}}function yH(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}const xO=Yt,ihe=80;function _H(t,e={}){if(!t)return"";try{let r=t;const n=5,o=[];let a=0,i=0;const s=" > ",l=s.length;let d;const h=Array.isArray(e)?e:e.keyAttrs,u=!Array.isArray(e)&&e.maxStringLength||ihe;for(;r&&a++1&&i+o.length*l+d.length>=u));)o.push(d),i+=d.length,r=r.parentNode;return o.reverse().join(s)}catch{return""}}function she(t,e){const r=t,n=[];if(!r||!r.tagName)return"";if(xO.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const o=e&&e.length?e.filter(i=>r.getAttribute(i)).map(i=>[i,r.getAttribute(i)]):null;if(o&&o.length)o.forEach(i=>{n.push(`[${i[0]}="${i[1]}"]`)});else{r.id&&n.push(`#${r.id}`);const i=r.className;if(i&&Mi(i)){const s=i.split(/\s+/);for(const l of s)n.push(`.${l}`)}}const a=["aria-label","type","name","title","alt"];for(const i of a){const s=r.getAttribute(i);s&&n.push(`[${i}="${s}"]`)}return n.join("")}function lhe(){try{return xO.document.location.href}catch{return""}}function che(t){if(!xO.HTMLElement)return null;let e=t;const r=5;for(let n=0;ndhe(t,n,r))}function Co(t,e,r){if(!(e in t))return;const n=t[e],o=r(n);typeof o=="function"&&bH(o,n);try{t[e]=o}catch{Vl&&$t.log(`Failed to replace method "${e}" in object`,t)}}function Nl(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{Vl&&$t.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function bH(t,e){try{const r=e.prototype||{};t.prototype=e.prototype=r,Nl(t,"__sentry_original__",e)}catch{}}function SO(t){return t.__sentry_original__}function wH(t){if(_O(t))return{message:t.message,name:t.name,stack:t.stack,...l5(t)};if(By(t)){const e={type:t.type,target:s5(t.target),currentTarget:s5(t.currentTarget),...l5(t)};return typeof CustomEvent<"u"&&Pl(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function s5(t){try{return nhe(t)?_H(t):Object.prototype.toString.call(t)}catch{return""}}function l5(t){if(typeof t=="object"&&t!==null){const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function uhe(t,e=40){const r=Object.keys(wH(t));r.sort();const n=r[0];if(!n)return"[object has no keys]";if(n.length>=e)return tu(n,e);for(let o=r.length;o>0;o--){const a=r.slice(0,o).join(", ");if(!(a.length>e))return o===r.length?a:tu(a,e)}return""}function Yo(t){return VE(t,new Map)}function VE(t,e){if(phe(t)){const r=e.get(t);if(r!==void 0)return r;const n={};e.set(t,n);for(const o of Object.getOwnPropertyNames(t))typeof t[o]<"u"&&(n[o]=VE(t[o],e));return n}if(Array.isArray(t)){const r=e.get(t);if(r!==void 0)return r;const n=[];return e.set(t,n),t.forEach(o=>{n.push(VE(o,e))}),n}return t}function phe(t){if(!_u(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}const xH=1e3;function Af(){return Date.now()/xH}function hhe(){const{performance:t}=Yt;if(!t||!t.now)return Af;const e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/xH}const Pi=hhe();(()=>{const{performance:t}=Yt;if(!t||!t.now)return;const e=3600*1e3,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,a=oMath.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function SH(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function vs(t){const{message:e,event_id:r}=t;if(e)return e;const n=SH(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function qE(t,e,r){const n=t.exception=t.exception||{},o=n.values=n.values||[],a=o[0]=o[0]||{};a.value||(a.value=e||""),a.type||(a.type="Error")}function bu(t,e){const r=SH(t);if(!r)return;const n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){const a={...o&&o.data,...e.data};r.mechanism.data=a}}function c5(t){if(fhe(t))return!0;try{Nl(t,"__sentry_captured__",!0)}catch{}return!1}function fhe(t){try{return t.__sentry_captured__}catch{}}var Ei;(function(t){t[t.PENDING=0]="PENDING";const r=1;t[t.RESOLVED=r]="RESOLVED";const n=2;t[t.REJECTED=n]="REJECTED"})(Ei||(Ei={}));function Rl(t){return new Vo(e=>{e(t)})}function Mv(t){return new Vo((e,r)=>{r(t)})}class Vo{constructor(e){Vo.prototype.__init.call(this),Vo.prototype.__init2.call(this),Vo.prototype.__init3.call(this),Vo.prototype.__init4.call(this),this._state=Ei.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new Vo((n,o)=>{this._handlers.push([!1,a=>{if(!e)n(a);else try{n(e(a))}catch(i){o(i)}},a=>{if(!r)o(a);else try{n(r(a))}catch(i){o(i)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new Vo((r,n)=>{let o,a;return this.then(i=>{a=!1,o=i,e&&e()},i=>{a=!0,o=i,e&&e()}).then(()=>{if(a){n(o);return}r(o)})})}__init(){this._resolve=e=>{this._setResult(Ei.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Ei.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===Ei.PENDING){if(Wy(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Ei.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===Ei.RESOLVED&&r[1](this._value),this._state===Ei.REJECTED&&r[2](this._value),r[0]=!0)})}}}function mhe(t){const e=Pi(),r={sid:Qo(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>vhe(r)};return t&&wu(r,t),r}function wu(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Pi(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:Qo()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function ghe(t,e){let r={};t.status==="ok"&&(r={status:"exited"}),wu(t,r)}function vhe(t){return Yo({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}function d5(){return Qo()}function GE(){return Qo().substring(16)}function Uy(t,e,r=2){if(!e||typeof e!="object"||r<=0)return e;if(t&&e&&Object.keys(e).length===0)return t;const n={...t};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=Uy(n[o],e[o],r-1));return n}const XE="_sentrySpan";function u5(t,e){e?Nl(t,XE,e):delete t[XE]}function p5(t){return t[XE]}const yhe=100;class CO{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:d5(),spanId:GE()}}clone(){const e=new CO;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,u5(e,p5(this)),e}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&&wu(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},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,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const r=typeof e=="function"?e(this):e,[n,o]=r instanceof jl?[r.getScopeData(),r.getRequestSession()]:_u(r)?[e,e.requestSession]:[],{tags:a,extra:i,user:s,contexts:l,level:d,fingerprint:h=[],propagationContext:u}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...i},this._contexts={...this._contexts,...l},s&&Object.keys(s).length&&(this._user=s),d&&(this._level=d),h.length&&(this._fingerprint=h),u&&(this._propagationContext=u),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,u5(this,void 0),this._attachments=[],this.setPropagationContext({traceId:d5()}),this._notifyScopeListeners(),this}addBreadcrumb(e,r){const n=typeof r=="number"?r:yhe;if(n<=0)return this;const o={timestamp:Af(),...e},a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>n?a.slice(-n):a,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,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:p5(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Uy(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:GE(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,r){const n=r&&r.event_id?r.event_id:Qo();if(!this._client)return $t.warn("No client configured on scope - will not capture exception!"),n;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){const o=n&&n.event_id?n.event_id:Qo();if(!this._client)return $t.warn("No client configured on scope - will not capture message!"),o;const a=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:o},this),o}captureEvent(e,r){const n=r&&r.event_id?r.event_id:Qo();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):($t.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}const jl=CO;function _he(){return zy("defaultCurrentScope",()=>new jl)}function bhe(){return zy("defaultIsolationScope",()=>new jl)}class whe{constructor(e,r){let n;e?n=e:n=new jl;let o;r?o=r:o=new jl,this._stack=[{scope:n}],this._isolationScope=o}withScope(e){const r=this._pushScope();let n;try{n=e(r)}catch(o){throw this._popScope(),o}return Wy(n)?n.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(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(){const 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 xu(){const t=Fy(),e=yO(t);return e.stack=e.stack||new whe(_he(),bhe())}function xhe(t){return xu().withScope(t)}function She(t,e){const r=xu();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function h5(t){return xu().withScope(()=>t(xu().getIsolationScope()))}function Che(){return{withIsolationScope:h5,withScope:xhe,withSetScope:She,withSetIsolationScope:(t,e)=>h5(e),getCurrentScope:()=>xu().getScope(),getIsolationScope:()=>xu().getIsolationScope()}}function $O(t){const e=yO(t);return e.acs?e.acs:Che()}function li(){const t=Fy();return $O(t).getCurrentScope()}function If(){const t=Fy();return $O(t).getIsolationScope()}function $he(){return zy("globalScope",()=>new jl)}function khe(...t){const e=Fy(),r=$O(e);if(t.length===2){const[n,o]=t;return n?r.withSetScope(n,o):r.withScope(o)}return r.withScope(t[0])}function Dn(){return li().getClient()}function Ehe(t){const e=t.getPropagationContext(),{traceId:r,spanId:n,parentSpanId:o}=e;return Yo({trace_id:r,span_id:n,parent_span_id:o})}const The="_sentryMetrics";function Ohe(t){const e=t[The];if(!e)return;const r={};for(const[,[n,o]]of e)(r[n]||(r[n]=[])).push(Yo(o));return r}const Dhe="sentry.source",Ahe="sentry.sample_rate",Ihe="sentry.op",Mhe="sentry.origin",Phe=0,Nhe=1,Rhe="sentry-",jhe=/^sentry-/;function Lhe(t){const e=zhe(t);if(!e)return;const r=Object.entries(e).reduce((n,[o,a])=>{if(o.match(jhe)){const i=o.slice(Rhe.length);n[i]=a}return n},{});if(Object.keys(r).length>0)return r}function zhe(t){if(!(!t||!Mi(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,r)=>{const n=f5(r);return Object.entries(n).forEach(([o,a])=>{e[o]=a}),e},{}):f5(t)}function f5(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(r&&n&&(e[r]=n),e),{})}const Fhe=1;let m5=!1;function Bhe(t){const{spanId:e,traceId:r,isRemote:n}=t.spanContext(),o=n?e:kO(t).parent_span_id,a=n?GE():e;return Yo({parent_span_id:o,span_id:a,trace_id:r})}function g5(t){return typeof t=="number"?v5(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?v5(t.getTime()):Pi()}function v5(t){return t>9999999999?t/1e3:t}function kO(t){if(Hhe(t))return t.getSpanJSON();try{const{spanId:e,traceId:r}=t.spanContext();if(Whe(t)){const{attributes:n,startTime:o,name:a,endTime:i,parentSpanId:s,status:l}=t;return Yo({span_id:e,trace_id:r,data:n,description:a,parent_span_id:s,start_timestamp:g5(o),timestamp:g5(i)||void 0,status:Vhe(l),op:n[Ihe],origin:n[Mhe],_metrics_summary:Ohe(t)})}return{span_id:e,trace_id:r}}catch{return{}}}function Whe(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Hhe(t){return typeof t.getSpanJSON=="function"}function Uhe(t){const{traceFlags:e}=t.spanContext();return e===Fhe}function Vhe(t){if(!(!t||t.code===Phe))return t.code===Nhe?"ok":t.message||"unknown_error"}const qhe="_sentryRootSpan";function CH(t){return t[qhe]||t}function Ghe(){m5||(ql(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),m5=!0)}function Xhe(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=Dn(),r=e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}const EO="production",Jhe="_frozenDsc";function $H(t,e){const r=e.getOptions(),{publicKey:n}=e.getDsn()||{},o=Yo({environment:r.environment||EO,release:r.release,public_key:n,trace_id:t});return e.emit("createDsc",o),o}function Yhe(t,e){const r=e.getPropagationContext();return r.dsc||$H(r.traceId,t)}function Khe(t){const e=Dn();if(!e)return{};const r=CH(t),n=r[Jhe];if(n)return n;const o=r.spanContext().traceState,a=o&&o.get("sentry.dsc"),i=a&&Lhe(a);if(i)return i;const s=$H(t.spanContext().traceId,e),l=kO(r),d=l.data||{},h=d[Ahe];h!=null&&(s.sample_rate=`${h}`);const u=d[Dhe],f=l.description;return u!=="url"&&f&&(s.transaction=f),Xhe()&&(s.sampled=String(Uhe(r))),e.emit("createDsc",s,r),s}function Zhe(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>1){lr&&$t.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}const Qhe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function efe(t){return t==="http"||t==="https"}function Vy(t,e=!1){const{host:r,path:n,pass:o,port:a,projectId:i,protocol:s,publicKey:l}=t;return`${s}://${l}${e&&o?`:${o}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${i}`}function tfe(t){const e=Qhe.exec(t);if(!e){ql(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[r,n,o="",a="",i="",s=""]=e.slice(1);let l="",d=s;const h=d.split("/");if(h.length>1&&(l=h.slice(0,-1).join("/"),d=h.pop()),d){const u=d.match(/^\d+/);u&&(d=u[0])}return kH({host:a,pass:o,path:l,projectId:d,port:i,protocol:r,publicKey:n})}function kH(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function rfe(t){if(!Vl)return!0;const{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(i=>t[i]?!1:($t.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:r.match(/^\d+$/)?efe(n)?e&&isNaN(parseInt(e,10))?($t.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:($t.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):($t.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function nfe(t){const e=typeof t=="string"?tfe(t):kH(t);if(!(!e||!rfe(e)))return e}function ofe(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(o){if(t)return e.has(o)?!0:(e.add(o),!1);for(let a=0;ar?EH(t,e-1,r):n}function JE(t,e,r=1/0,n=1/0,o=ofe()){const[a,i]=o;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const s=afe(t,e);if(!s.startsWith("[object "))return s;if(e.__sentry_skip_normalization__)return e;const l=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(l===0)return s.replace("object ","");if(a(e))return"[Circular ~]";const d=e;if(d&&typeof d.toJSON=="function")try{const g=d.toJSON();return JE("",g,l-1,n,o)}catch{}const h=Array.isArray(e)?[]:{};let u=0;const f=wH(e);for(const g in f){if(!Object.prototype.hasOwnProperty.call(f,g))continue;if(u>=n){h[g]="[MaxProperties ~]";break}const y=f[g];h[g]=JE(g,y,l-1,n,o),u++}return i(e),h}function afe(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(yH(e))return"[VueViewModel]";if(ahe(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Ns(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const r=ife(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function ife(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function sfe(t){return~-encodeURI(t).split(/%..|./).length}function lfe(t){return sfe(JSON.stringify(t))}function Mf(t,e=[]){return[t,e]}function cfe(t,e){const[r,n]=t;return[r,[...n,e]]}function y5(t,e){const r=t[1];for(const n of r){const o=n[0].type;if(e(n,o))return!0}return!1}function YE(t){return Yt.__SENTRY__&&Yt.__SENTRY__.encodePolyfill?Yt.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function dfe(t){const[e,r]=t;let n=JSON.stringify(e);function o(a){typeof n=="string"?n=typeof a=="string"?n+a:[YE(n),a]:n.push(typeof a=="string"?YE(a):a)}for(const a of r){const[i,s]=a;if(o(` +Error:`,o)}}let a1=null;function Zpe(t){const e="error";Gl(e,t),Xl(e,Qpe)}function Qpe(){a1=Jt.onerror,Jt.onerror=function(t,e,r,n,o){return ka("error",{column:n,error:o,line:r,msg:t,url:e}),a1?a1.apply(this,arguments):!1},Jt.onerror.__SENTRY_INSTRUMENTED__=!0}let i1=null;function ehe(t){const e="unhandledrejection";Gl(e,t),Xl(e,the)}function the(){i1=Jt.onunhandledrejection,Jt.onunhandledrejection=function(t){return ka("unhandledrejection",t),i1?i1.apply(this,arguments):!0},Jt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Fy(){return yO(Jt),Jt}function yO(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||kl,e[kl]=e[kl]||{}}const gH=Object.prototype.toString;function _O(t){switch(gH.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Pl(t,Error)}}function Pu(t,e){return gH.call(t)===`[object ${e}]`}function vH(t){return Pu(t,"ErrorEvent")}function a5(t){return Pu(t,"DOMError")}function rhe(t){return Pu(t,"DOMException")}function Mi(t){return Pu(t,"String")}function bO(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function wO(t){return t===null||bO(t)||typeof t!="object"&&typeof t!="function"}function _u(t){return Pu(t,"Object")}function By(t){return typeof Event<"u"&&Pl(t,Event)}function nhe(t){return typeof Element<"u"&&Pl(t,Element)}function ohe(t){return Pu(t,"RegExp")}function Wy(t){return!!(t&&t.then&&typeof t.then=="function")}function ahe(t){return _u(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Pl(t,e){try{return t instanceof e}catch{return!1}}function yH(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}const xO=Jt,ihe=80;function _H(t,e={}){if(!t)return"";try{let r=t;const n=5,o=[];let a=0,i=0;const s=" > ",l=s.length;let d;const h=Array.isArray(e)?e:e.keyAttrs,u=!Array.isArray(e)&&e.maxStringLength||ihe;for(;r&&a++1&&i+o.length*l+d.length>=u));)o.push(d),i+=d.length,r=r.parentNode;return o.reverse().join(s)}catch{return""}}function she(t,e){const r=t,n=[];if(!r||!r.tagName)return"";if(xO.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const o=e&&e.length?e.filter(i=>r.getAttribute(i)).map(i=>[i,r.getAttribute(i)]):null;if(o&&o.length)o.forEach(i=>{n.push(`[${i[0]}="${i[1]}"]`)});else{r.id&&n.push(`#${r.id}`);const i=r.className;if(i&&Mi(i)){const s=i.split(/\s+/);for(const l of s)n.push(`.${l}`)}}const a=["aria-label","type","name","title","alt"];for(const i of a){const s=r.getAttribute(i);s&&n.push(`[${i}="${s}"]`)}return n.join("")}function lhe(){try{return xO.document.location.href}catch{return""}}function che(t){if(!xO.HTMLElement)return null;let e=t;const r=5;for(let n=0;ndhe(t,n,r))}function Co(t,e,r){if(!(e in t))return;const n=t[e],o=r(n);typeof o=="function"&&bH(o,n);try{t[e]=o}catch{Vl&&$t.log(`Failed to replace method "${e}" in object`,t)}}function Nl(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{Vl&&$t.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function bH(t,e){try{const r=e.prototype||{};t.prototype=e.prototype=r,Nl(t,"__sentry_original__",e)}catch{}}function SO(t){return t.__sentry_original__}function wH(t){if(_O(t))return{message:t.message,name:t.name,stack:t.stack,...l5(t)};if(By(t)){const e={type:t.type,target:s5(t.target),currentTarget:s5(t.currentTarget),...l5(t)};return typeof CustomEvent<"u"&&Pl(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function s5(t){try{return nhe(t)?_H(t):Object.prototype.toString.call(t)}catch{return""}}function l5(t){if(typeof t=="object"&&t!==null){const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function uhe(t,e=40){const r=Object.keys(wH(t));r.sort();const n=r[0];if(!n)return"[object has no keys]";if(n.length>=e)return tu(n,e);for(let o=r.length;o>0;o--){const a=r.slice(0,o).join(", ");if(!(a.length>e))return o===r.length?a:tu(a,e)}return""}function Yo(t){return VE(t,new Map)}function VE(t,e){if(phe(t)){const r=e.get(t);if(r!==void 0)return r;const n={};e.set(t,n);for(const o of Object.getOwnPropertyNames(t))typeof t[o]<"u"&&(n[o]=VE(t[o],e));return n}if(Array.isArray(t)){const r=e.get(t);if(r!==void 0)return r;const n=[];return e.set(t,n),t.forEach(o=>{n.push(VE(o,e))}),n}return t}function phe(t){if(!_u(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}const xH=1e3;function Af(){return Date.now()/xH}function hhe(){const{performance:t}=Jt;if(!t||!t.now)return Af;const e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/xH}const Pi=hhe();(()=>{const{performance:t}=Jt;if(!t||!t.now)return;const e=3600*1e3,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,a=oMath.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function SH(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function vs(t){const{message:e,event_id:r}=t;if(e)return e;const n=SH(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function qE(t,e,r){const n=t.exception=t.exception||{},o=n.values=n.values||[],a=o[0]=o[0]||{};a.value||(a.value=e||""),a.type||(a.type="Error")}function bu(t,e){const r=SH(t);if(!r)return;const n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){const a={...o&&o.data,...e.data};r.mechanism.data=a}}function c5(t){if(fhe(t))return!0;try{Nl(t,"__sentry_captured__",!0)}catch{}return!1}function fhe(t){try{return t.__sentry_captured__}catch{}}var Ei;(function(t){t[t.PENDING=0]="PENDING";const r=1;t[t.RESOLVED=r]="RESOLVED";const n=2;t[t.REJECTED=n]="REJECTED"})(Ei||(Ei={}));function Rl(t){return new Vo(e=>{e(t)})}function Mv(t){return new Vo((e,r)=>{r(t)})}class Vo{constructor(e){Vo.prototype.__init.call(this),Vo.prototype.__init2.call(this),Vo.prototype.__init3.call(this),Vo.prototype.__init4.call(this),this._state=Ei.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new Vo((n,o)=>{this._handlers.push([!1,a=>{if(!e)n(a);else try{n(e(a))}catch(i){o(i)}},a=>{if(!r)o(a);else try{n(r(a))}catch(i){o(i)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new Vo((r,n)=>{let o,a;return this.then(i=>{a=!1,o=i,e&&e()},i=>{a=!0,o=i,e&&e()}).then(()=>{if(a){n(o);return}r(o)})})}__init(){this._resolve=e=>{this._setResult(Ei.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Ei.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===Ei.PENDING){if(Wy(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Ei.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===Ei.RESOLVED&&r[1](this._value),this._state===Ei.REJECTED&&r[2](this._value),r[0]=!0)})}}}function mhe(t){const e=Pi(),r={sid:Qo(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>vhe(r)};return t&&wu(r,t),r}function wu(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Pi(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:Qo()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function ghe(t,e){let r={};t.status==="ok"&&(r={status:"exited"}),wu(t,r)}function vhe(t){return Yo({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}function d5(){return Qo()}function GE(){return Qo().substring(16)}function Uy(t,e,r=2){if(!e||typeof e!="object"||r<=0)return e;if(t&&e&&Object.keys(e).length===0)return t;const n={...t};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=Uy(n[o],e[o],r-1));return n}const XE="_sentrySpan";function u5(t,e){e?Nl(t,XE,e):delete t[XE]}function p5(t){return t[XE]}const yhe=100;class CO{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:d5(),spanId:GE()}}clone(){const e=new CO;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,u5(e,p5(this)),e}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&&wu(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},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,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const r=typeof e=="function"?e(this):e,[n,o]=r instanceof jl?[r.getScopeData(),r.getRequestSession()]:_u(r)?[e,e.requestSession]:[],{tags:a,extra:i,user:s,contexts:l,level:d,fingerprint:h=[],propagationContext:u}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...i},this._contexts={...this._contexts,...l},s&&Object.keys(s).length&&(this._user=s),d&&(this._level=d),h.length&&(this._fingerprint=h),u&&(this._propagationContext=u),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,u5(this,void 0),this._attachments=[],this.setPropagationContext({traceId:d5()}),this._notifyScopeListeners(),this}addBreadcrumb(e,r){const n=typeof r=="number"?r:yhe;if(n<=0)return this;const o={timestamp:Af(),...e},a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>n?a.slice(-n):a,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,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:p5(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Uy(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:GE(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,r){const n=r&&r.event_id?r.event_id:Qo();if(!this._client)return $t.warn("No client configured on scope - will not capture exception!"),n;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){const o=n&&n.event_id?n.event_id:Qo();if(!this._client)return $t.warn("No client configured on scope - will not capture message!"),o;const a=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:o},this),o}captureEvent(e,r){const n=r&&r.event_id?r.event_id:Qo();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):($t.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}const jl=CO;function _he(){return zy("defaultCurrentScope",()=>new jl)}function bhe(){return zy("defaultIsolationScope",()=>new jl)}class whe{constructor(e,r){let n;e?n=e:n=new jl;let o;r?o=r:o=new jl,this._stack=[{scope:n}],this._isolationScope=o}withScope(e){const r=this._pushScope();let n;try{n=e(r)}catch(o){throw this._popScope(),o}return Wy(n)?n.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(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(){const 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 xu(){const t=Fy(),e=yO(t);return e.stack=e.stack||new whe(_he(),bhe())}function xhe(t){return xu().withScope(t)}function She(t,e){const r=xu();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function h5(t){return xu().withScope(()=>t(xu().getIsolationScope()))}function Che(){return{withIsolationScope:h5,withScope:xhe,withSetScope:She,withSetIsolationScope:(t,e)=>h5(e),getCurrentScope:()=>xu().getScope(),getIsolationScope:()=>xu().getIsolationScope()}}function $O(t){const e=yO(t);return e.acs?e.acs:Che()}function li(){const t=Fy();return $O(t).getCurrentScope()}function If(){const t=Fy();return $O(t).getIsolationScope()}function $he(){return zy("globalScope",()=>new jl)}function khe(...t){const e=Fy(),r=$O(e);if(t.length===2){const[n,o]=t;return n?r.withSetScope(n,o):r.withScope(o)}return r.withScope(t[0])}function Dn(){return li().getClient()}function Ehe(t){const e=t.getPropagationContext(),{traceId:r,spanId:n,parentSpanId:o}=e;return Yo({trace_id:r,span_id:n,parent_span_id:o})}const The="_sentryMetrics";function Ohe(t){const e=t[The];if(!e)return;const r={};for(const[,[n,o]]of e)(r[n]||(r[n]=[])).push(Yo(o));return r}const Dhe="sentry.source",Ahe="sentry.sample_rate",Ihe="sentry.op",Mhe="sentry.origin",Phe=0,Nhe=1,Rhe="sentry-",jhe=/^sentry-/;function Lhe(t){const e=zhe(t);if(!e)return;const r=Object.entries(e).reduce((n,[o,a])=>{if(o.match(jhe)){const i=o.slice(Rhe.length);n[i]=a}return n},{});if(Object.keys(r).length>0)return r}function zhe(t){if(!(!t||!Mi(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,r)=>{const n=f5(r);return Object.entries(n).forEach(([o,a])=>{e[o]=a}),e},{}):f5(t)}function f5(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(r&&n&&(e[r]=n),e),{})}const Fhe=1;let m5=!1;function Bhe(t){const{spanId:e,traceId:r,isRemote:n}=t.spanContext(),o=n?e:kO(t).parent_span_id,a=n?GE():e;return Yo({parent_span_id:o,span_id:a,trace_id:r})}function g5(t){return typeof t=="number"?v5(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?v5(t.getTime()):Pi()}function v5(t){return t>9999999999?t/1e3:t}function kO(t){if(Hhe(t))return t.getSpanJSON();try{const{spanId:e,traceId:r}=t.spanContext();if(Whe(t)){const{attributes:n,startTime:o,name:a,endTime:i,parentSpanId:s,status:l}=t;return Yo({span_id:e,trace_id:r,data:n,description:a,parent_span_id:s,start_timestamp:g5(o),timestamp:g5(i)||void 0,status:Vhe(l),op:n[Ihe],origin:n[Mhe],_metrics_summary:Ohe(t)})}return{span_id:e,trace_id:r}}catch{return{}}}function Whe(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Hhe(t){return typeof t.getSpanJSON=="function"}function Uhe(t){const{traceFlags:e}=t.spanContext();return e===Fhe}function Vhe(t){if(!(!t||t.code===Phe))return t.code===Nhe?"ok":t.message||"unknown_error"}const qhe="_sentryRootSpan";function CH(t){return t[qhe]||t}function Ghe(){m5||(ql(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),m5=!0)}function Xhe(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=Dn(),r=e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}const EO="production",Jhe="_frozenDsc";function $H(t,e){const r=e.getOptions(),{publicKey:n}=e.getDsn()||{},o=Yo({environment:r.environment||EO,release:r.release,public_key:n,trace_id:t});return e.emit("createDsc",o),o}function Yhe(t,e){const r=e.getPropagationContext();return r.dsc||$H(r.traceId,t)}function Khe(t){const e=Dn();if(!e)return{};const r=CH(t),n=r[Jhe];if(n)return n;const o=r.spanContext().traceState,a=o&&o.get("sentry.dsc"),i=a&&Lhe(a);if(i)return i;const s=$H(t.spanContext().traceId,e),l=kO(r),d=l.data||{},h=d[Ahe];h!=null&&(s.sample_rate=`${h}`);const u=d[Dhe],f=l.description;return u!=="url"&&f&&(s.transaction=f),Xhe()&&(s.sampled=String(Uhe(r))),e.emit("createDsc",s,r),s}function Zhe(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>1){lr&&$t.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}const Qhe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function efe(t){return t==="http"||t==="https"}function Vy(t,e=!1){const{host:r,path:n,pass:o,port:a,projectId:i,protocol:s,publicKey:l}=t;return`${s}://${l}${e&&o?`:${o}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${i}`}function tfe(t){const e=Qhe.exec(t);if(!e){ql(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[r,n,o="",a="",i="",s=""]=e.slice(1);let l="",d=s;const h=d.split("/");if(h.length>1&&(l=h.slice(0,-1).join("/"),d=h.pop()),d){const u=d.match(/^\d+/);u&&(d=u[0])}return kH({host:a,pass:o,path:l,projectId:d,port:i,protocol:r,publicKey:n})}function kH(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function rfe(t){if(!Vl)return!0;const{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(i=>t[i]?!1:($t.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:r.match(/^\d+$/)?efe(n)?e&&isNaN(parseInt(e,10))?($t.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:($t.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):($t.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function nfe(t){const e=typeof t=="string"?tfe(t):kH(t);if(!(!e||!rfe(e)))return e}function ofe(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(o){if(t)return e.has(o)?!0:(e.add(o),!1);for(let a=0;ar?EH(t,e-1,r):n}function JE(t,e,r=1/0,n=1/0,o=ofe()){const[a,i]=o;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const s=afe(t,e);if(!s.startsWith("[object "))return s;if(e.__sentry_skip_normalization__)return e;const l=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(l===0)return s.replace("object ","");if(a(e))return"[Circular ~]";const d=e;if(d&&typeof d.toJSON=="function")try{const g=d.toJSON();return JE("",g,l-1,n,o)}catch{}const h=Array.isArray(e)?[]:{};let u=0;const f=wH(e);for(const g in f){if(!Object.prototype.hasOwnProperty.call(f,g))continue;if(u>=n){h[g]="[MaxProperties ~]";break}const y=f[g];h[g]=JE(g,y,l-1,n,o),u++}return i(e),h}function afe(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(yH(e))return"[VueViewModel]";if(ahe(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Ns(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const r=ife(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function ife(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function sfe(t){return~-encodeURI(t).split(/%..|./).length}function lfe(t){return sfe(JSON.stringify(t))}function Mf(t,e=[]){return[t,e]}function cfe(t,e){const[r,n]=t;return[r,[...n,e]]}function y5(t,e){const r=t[1];for(const n of r){const o=n[0].type;if(e(n,o))return!0}return!1}function YE(t){return Jt.__SENTRY__&&Jt.__SENTRY__.encodePolyfill?Jt.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function dfe(t){const[e,r]=t;let n=JSON.stringify(e);function o(a){typeof n=="string"?n=typeof a=="string"?n+a:[YE(n),a]:n.push(typeof a=="string"?YE(a):a)}for(const a of r){const[i,s]=a;if(o(` ${JSON.stringify(i)} -`),typeof s=="string"||s instanceof Uint8Array)o(s);else{let l;try{l=JSON.stringify(s)}catch{l=JSON.stringify(Ti(s))}o(l)}}return typeof n=="string"?n:ufe(n)}function ufe(t){const e=t.reduce((o,a)=>o+a.length,0),r=new Uint8Array(e);let n=0;for(const o of t)r.set(o,n),n+=o.length;return r}function pfe(t){const e=typeof t.data=="string"?YE(t.data):t.data;return[Yo({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const hfe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function _5(t){return hfe[t]}function TH(t){if(!t||!t.sdk)return;const{name:e,version:r}=t.sdk;return{name:e,version:r}}function ffe(t,e,r,n){const o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:Vy(n)},...o&&{trace:Yo({...o})}}}function mfe(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function gfe(t,e,r,n){const o=TH(r),a={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:Vy(e)}},i="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Mf(a,[i])}function vfe(t,e,r,n){const o=TH(r),a=t.type&&t.type!=="replay_event"?t.type:"event";mfe(t,r&&r.sdk);const i=ffe(t,o,n,e);return delete t.sdkProcessingMetadata,Mf(i,[[{type:a},t]])}function KE(t,e,r,n=0){return new Vo((o,a)=>{const i=t[n];if(e===null||typeof i!="function")o(e);else{const s=i({...e},r);lr&&i.id&&s===null&&$t.log(`Event processor "${i.id}" dropped event`),Wy(s)?s.then(l=>KE(t,l,r,n+1).then(o)).then(null,a):KE(t,s,r,n+1).then(o).then(null,a)}})}let bg,b5,wg;function yfe(t){const e=Yt._sentryDebugIds;if(!e)return{};const r=Object.keys(e);return wg&&r.length===b5||(b5=r.length,wg=r.reduce((n,o)=>{bg||(bg={});const a=bg[o];if(a)n[a[0]]=a[1];else{const i=t(o);for(let s=i.length-1;s>=0;s--){const l=i[s],d=l&&l.filename,h=e[o];if(d&&h){n[d]=h,bg[o]=[d,h];break}}}return n},{})),wg}function _fe(t,e){const{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:a}=e;bfe(t,e),n&&Sfe(t,n),Cfe(t,r),wfe(t,o),xfe(t,a)}function w5(t,e){const{extra:r,tags:n,user:o,contexts:a,level:i,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:d,eventProcessors:h,attachments:u,propagationContext:f,transactionName:g,span:y}=e;xg(t,"extra",r),xg(t,"tags",n),xg(t,"user",o),xg(t,"contexts",a),t.sdkProcessingMetadata=Uy(t.sdkProcessingMetadata,s,2),i&&(t.level=i),g&&(t.transactionName=g),y&&(t.span=y),l.length&&(t.breadcrumbs=[...t.breadcrumbs,...l]),d.length&&(t.fingerprint=[...t.fingerprint,...d]),h.length&&(t.eventProcessors=[...t.eventProcessors,...h]),u.length&&(t.attachments=[...t.attachments,...u]),t.propagationContext={...t.propagationContext,...f}}function xg(t,e,r){t[e]=Uy(t[e],r,1)}function bfe(t,e){const{extra:r,tags:n,user:o,contexts:a,level:i,transactionName:s}=e,l=Yo(r);l&&Object.keys(l).length&&(t.extra={...l,...t.extra});const d=Yo(n);d&&Object.keys(d).length&&(t.tags={...d,...t.tags});const h=Yo(o);h&&Object.keys(h).length&&(t.user={...h,...t.user});const u=Yo(a);u&&Object.keys(u).length&&(t.contexts={...u,...t.contexts}),i&&(t.level=i),s&&t.type!=="transaction"&&(t.transaction=s)}function wfe(t,e){const r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function xfe(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function Sfe(t,e){t.contexts={trace:Bhe(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Khe(e),...t.sdkProcessingMetadata};const r=CH(e),n=kO(r).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function Cfe(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function $fe(t,e,r,n,o,a){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=t,l={...e,event_id:e.event_id||r.event_id||Qo(),timestamp:e.timestamp||Af()},d=r.integrations||t.integrations.map(x=>x.name);kfe(l,t),Ofe(l,d),o&&o.emit("applyFrameMetadata",e),e.type===void 0&&Efe(l,t.stackParser);const h=Afe(n,r.captureContext);r.mechanism&&bu(l,r.mechanism);const u=o?o.getEventProcessors():[],f=$he().getScopeData();if(a){const x=a.getScopeData();w5(f,x)}if(h){const x=h.getScopeData();w5(f,x)}const g=[...r.attachments||[],...f.attachments];g.length&&(r.attachments=g),_fe(l,f);const y=[...u,...f.eventProcessors];return KE(y,l,r).then(x=>(x&&Tfe(x),typeof i=="number"&&i>0?Dfe(x,i,s):x))}function kfe(t,e){const{environment:r,release:n,dist:o,maxValueLength:a=250}=e;t.environment=t.environment||r||EO,!t.release&&n&&(t.release=n),!t.dist&&o&&(t.dist=o),t.message&&(t.message=tu(t.message,a));const i=t.exception&&t.exception.values&&t.exception.values[0];i&&i.value&&(i.value=tu(i.value,a));const s=t.request;s&&s.url&&(s.url=tu(s.url,a))}function Efe(t,e){const r=yfe(e);try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{r&&o.filename&&(o.debug_id=r[o.filename])})})}catch{}}function Tfe(t){const e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const r=t.debug_meta.images;Object.entries(e).forEach(([n,o])=>{r.push({type:"sourcemap",code_file:n,debug_id:o})})}function Ofe(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Dfe(t,e,r){if(!t)return null;const n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:Ti(o.data,e,r)}}))},...t.user&&{user:Ti(t.user,e,r)},...t.contexts&&{contexts:Ti(t.contexts,e,r)},...t.extra&&{extra:Ti(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=Ti(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(o=>({...o,...o.data&&{data:Ti(o.data,e,r)}}))),t.contexts&&t.contexts.flags&&n.contexts&&(n.contexts.flags=Ti(t.contexts.flags,3,r)),n}function Afe(t,e){if(!e)return t;const r=t?t.clone():new jl;return r.update(e),r}function Ife(t,e){return li().captureException(t,void 0)}function OH(t,e){return li().captureEvent(t,e)}function x5(t){const e=Dn(),r=If(),n=li(),{release:o,environment:a=EO}=e&&e.getOptions()||{},{userAgent:i}=Yt.navigator||{},s=mhe({release:o,environment:a,user:n.getUser()||r.getUser(),...i&&{userAgent:i},...t}),l=r.getSession();return l&&l.status==="ok"&&wu(l,{status:"exited"}),DH(),r.setSession(s),n.setSession(s),s}function DH(){const t=If(),e=li(),r=e.getSession()||t.getSession();r&&ghe(r),AH(),t.setSession(),e.setSession()}function AH(){const t=If(),e=li(),r=Dn(),n=e.getSession()||t.getSession();n&&r&&r.captureSession(n)}function S5(t=!1){if(t){DH();return}AH()}const Mfe="7";function Pfe(t){const e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function Nfe(t){return`${Pfe(t)}${t.projectId}/envelope/`}function Rfe(t,e){const r={sentry_version:Mfe};return t.publicKey&&(r.sentry_key=t.publicKey),e&&(r.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(r).toString()}function jfe(t,e,r){return e||`${Nfe(t)}?${Rfe(t,r)}`}const C5=[];function Lfe(t){const e={};return t.forEach(r=>{const{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.values(e)}function zfe(t){const e=t.defaultIntegrations||[],r=t.integrations;e.forEach(i=>{i.isDefaultInstance=!0});let n;if(Array.isArray(r))n=[...e,...r];else if(typeof r=="function"){const i=r(e);n=Array.isArray(i)?i:[i]}else n=e;const o=Lfe(n),a=o.findIndex(i=>i.name==="Debug");if(a>-1){const[i]=o.splice(a,1);o.push(i)}return o}function Ffe(t,e){const r={};return e.forEach(n=>{n&&IH(t,n,r)}),r}function $5(t,e){for(const r of e)r&&r.afterAllSetup&&r.afterAllSetup(t)}function IH(t,e,r){if(r[e.name]){lr&&$t.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,C5.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),C5.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,a)=>n(o,a,t))}if(typeof e.processEvent=="function"){const n=e.processEvent.bind(e),o=Object.assign((a,i)=>n(a,i,t),{id:e.name});t.addEventProcessor(o)}lr&&$t.log(`Integration installed: ${e.name}`)}function Bfe(t,e,r){const n=[{type:"client_report"},{timestamp:Af(),discarded_events:t}];return Mf(e?{dsn:e}:{},[n])}class Ya extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}}const k5="Not capturing exception because it's already been captured.";class Wfe{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=nfe(e.dsn):lr&&$t.warn("No DSN provided, client will not send events."),this._dsn){const o=jfe(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:o})}const n=["enableTracing","tracesSampleRate","tracesSampler"].find(o=>o in e&&e[o]==null);n&&ql(()=>{console.warn(`[Sentry] Deprecation warning: \`${n}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,r,n){const o=Qo();if(c5(e))return lr&&$t.log(k5),o;const a={event_id:o,...r};return this._process(this.eventFromException(e,a).then(i=>this._captureEvent(i,a,n))),a.event_id}captureMessage(e,r,n,o){const a={event_id:Qo(),...n},i=bO(e)?e:String(e),s=wO(e)?this.eventFromMessage(i,r,a):this.eventFromException(e,a);return this._process(s.then(l=>this._captureEvent(l,a,o))),a.event_id}captureEvent(e,r,n){const o=Qo();if(r&&r.originalException&&c5(r.originalException))return lr&&$t.log(k5),o;const a={event_id:o,...r},s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,a,s||n)),a.event_id}captureSession(e){typeof e.release!="string"?lr&&$t.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),wu(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>r.flush(e).then(o=>n&&o))):Rl(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}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]}addIntegration(e){const r=this._integrations[e.name];IH(this,e,this._integrations),r||$5(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=vfe(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of r.attachments||[])n=cfe(n,pfe(a));const o=this.sendEnvelope(n);o&&o.then(a=>this.emit("afterSendEvent",e,a),null)}sendSession(e){const r=gfe(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){const o=typeof n=="number"?n:1,a=`${e}:${r}`;lr&&$t.log(`Recording outcome: "${a}"${o>1?` (${o} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+o}}on(e,r){const n=this._hooks[e]=this._hooks[e]||[];return n.push(r),()=>{const o=n.indexOf(r);o>-1&&n.splice(o,1)}}emit(e,...r){const n=this._hooks[e];n&&n.forEach(o=>o(...r))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,r=>(lr&&$t.error("Error while sending envelope:",r),r)):(lr&&$t.error("Transport disabled"),Rl({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=Ffe(this,e),$5(this,e)}_updateSessionFromEvent(e,r){let n=!1,o=!1;const a=r.exception&&r.exception.values;if(a){o=!0;for(const l of a){const d=l.mechanism;if(d&&d.handled===!1){n=!0;break}}}const i=e.status==="ok";(i&&e.errors===0||i&&n)&&(wu(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Vo(r=>{let n=0;const o=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),r(!0)):(n+=o,e&&n>=e&&(clearInterval(a),r(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n=li(),o=If()){const a=this.getOptions(),i=Object.keys(this._integrations);return!r.integrations&&i.length>0&&(r.integrations=i),this.emit("preprocessEvent",e,r),e.type||o.setLastEventId(e.event_id||r.event_id),$fe(a,e,r,n,this,o).then(s=>{if(s===null)return s;s.contexts={trace:Ehe(n),...s.contexts};const l=Yhe(this,n);return s.sdkProcessingMetadata={dynamicSamplingContext:l,...s.sdkProcessingMetadata},s})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(o=>o.event_id,o=>{if(lr){const a=o;a.logLevel==="log"?$t.log(a.message):$t.warn(a)}})}_processEvent(e,r,n){const o=this.getOptions(),{sampleRate:a}=o,i=PH(e),s=MH(e),l=e.type||"error",d=`before send for type \`${l}\``,h=typeof a>"u"?void 0:Zhe(a);if(s&&typeof h=="number"&&Math.random()>h)return this.recordDroppedEvent("sample_rate","error",e),Mv(new Ya(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const u=l==="replay_event"?"replay":l,g=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,r,n,g).then(y=>{if(y===null)throw this.recordDroppedEvent("event_processor",u,e),new Ya("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return y;const x=Ufe(this,o,y,r);return Hfe(x,d)}).then(y=>{if(y===null){if(this.recordDroppedEvent("before_send",u,e),i){const T=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",T)}throw new Ya(`${d} returned \`null\`, will not send event.`,"log")}const b=n&&n.getSession();if(!i&&b&&this._updateSessionFromEvent(b,y),i){const S=y.sdkProcessingMetadata&&y.sdkProcessingMetadata.spanCountBeforeProcessing||0,T=y.spans?y.spans.length:0,E=S-T;E>0&&this.recordDroppedEvent("before_send","span",E)}const x=y.transaction_info;if(i&&x&&y.transaction!==e.transaction){const S="custom";y.transaction_info={...x,source:S}}return this.sendEvent(y,r),y}).then(null,y=>{throw y instanceof Ya?y:(this.captureException(y,{data:{__sentry__:!0},originalException:y}),new Ya(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +`),typeof s=="string"||s instanceof Uint8Array)o(s);else{let l;try{l=JSON.stringify(s)}catch{l=JSON.stringify(Ti(s))}o(l)}}return typeof n=="string"?n:ufe(n)}function ufe(t){const e=t.reduce((o,a)=>o+a.length,0),r=new Uint8Array(e);let n=0;for(const o of t)r.set(o,n),n+=o.length;return r}function pfe(t){const e=typeof t.data=="string"?YE(t.data):t.data;return[Yo({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const hfe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function _5(t){return hfe[t]}function TH(t){if(!t||!t.sdk)return;const{name:e,version:r}=t.sdk;return{name:e,version:r}}function ffe(t,e,r,n){const o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:Vy(n)},...o&&{trace:Yo({...o})}}}function mfe(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function gfe(t,e,r,n){const o=TH(r),a={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:Vy(e)}},i="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Mf(a,[i])}function vfe(t,e,r,n){const o=TH(r),a=t.type&&t.type!=="replay_event"?t.type:"event";mfe(t,r&&r.sdk);const i=ffe(t,o,n,e);return delete t.sdkProcessingMetadata,Mf(i,[[{type:a},t]])}function KE(t,e,r,n=0){return new Vo((o,a)=>{const i=t[n];if(e===null||typeof i!="function")o(e);else{const s=i({...e},r);lr&&i.id&&s===null&&$t.log(`Event processor "${i.id}" dropped event`),Wy(s)?s.then(l=>KE(t,l,r,n+1).then(o)).then(null,a):KE(t,s,r,n+1).then(o).then(null,a)}})}let bg,b5,wg;function yfe(t){const e=Jt._sentryDebugIds;if(!e)return{};const r=Object.keys(e);return wg&&r.length===b5||(b5=r.length,wg=r.reduce((n,o)=>{bg||(bg={});const a=bg[o];if(a)n[a[0]]=a[1];else{const i=t(o);for(let s=i.length-1;s>=0;s--){const l=i[s],d=l&&l.filename,h=e[o];if(d&&h){n[d]=h,bg[o]=[d,h];break}}}return n},{})),wg}function _fe(t,e){const{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:a}=e;bfe(t,e),n&&Sfe(t,n),Cfe(t,r),wfe(t,o),xfe(t,a)}function w5(t,e){const{extra:r,tags:n,user:o,contexts:a,level:i,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:d,eventProcessors:h,attachments:u,propagationContext:f,transactionName:g,span:y}=e;xg(t,"extra",r),xg(t,"tags",n),xg(t,"user",o),xg(t,"contexts",a),t.sdkProcessingMetadata=Uy(t.sdkProcessingMetadata,s,2),i&&(t.level=i),g&&(t.transactionName=g),y&&(t.span=y),l.length&&(t.breadcrumbs=[...t.breadcrumbs,...l]),d.length&&(t.fingerprint=[...t.fingerprint,...d]),h.length&&(t.eventProcessors=[...t.eventProcessors,...h]),u.length&&(t.attachments=[...t.attachments,...u]),t.propagationContext={...t.propagationContext,...f}}function xg(t,e,r){t[e]=Uy(t[e],r,1)}function bfe(t,e){const{extra:r,tags:n,user:o,contexts:a,level:i,transactionName:s}=e,l=Yo(r);l&&Object.keys(l).length&&(t.extra={...l,...t.extra});const d=Yo(n);d&&Object.keys(d).length&&(t.tags={...d,...t.tags});const h=Yo(o);h&&Object.keys(h).length&&(t.user={...h,...t.user});const u=Yo(a);u&&Object.keys(u).length&&(t.contexts={...u,...t.contexts}),i&&(t.level=i),s&&t.type!=="transaction"&&(t.transaction=s)}function wfe(t,e){const r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function xfe(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function Sfe(t,e){t.contexts={trace:Bhe(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Khe(e),...t.sdkProcessingMetadata};const r=CH(e),n=kO(r).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function Cfe(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function $fe(t,e,r,n,o,a){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=t,l={...e,event_id:e.event_id||r.event_id||Qo(),timestamp:e.timestamp||Af()},d=r.integrations||t.integrations.map(x=>x.name);kfe(l,t),Ofe(l,d),o&&o.emit("applyFrameMetadata",e),e.type===void 0&&Efe(l,t.stackParser);const h=Afe(n,r.captureContext);r.mechanism&&bu(l,r.mechanism);const u=o?o.getEventProcessors():[],f=$he().getScopeData();if(a){const x=a.getScopeData();w5(f,x)}if(h){const x=h.getScopeData();w5(f,x)}const g=[...r.attachments||[],...f.attachments];g.length&&(r.attachments=g),_fe(l,f);const y=[...u,...f.eventProcessors];return KE(y,l,r).then(x=>(x&&Tfe(x),typeof i=="number"&&i>0?Dfe(x,i,s):x))}function kfe(t,e){const{environment:r,release:n,dist:o,maxValueLength:a=250}=e;t.environment=t.environment||r||EO,!t.release&&n&&(t.release=n),!t.dist&&o&&(t.dist=o),t.message&&(t.message=tu(t.message,a));const i=t.exception&&t.exception.values&&t.exception.values[0];i&&i.value&&(i.value=tu(i.value,a));const s=t.request;s&&s.url&&(s.url=tu(s.url,a))}function Efe(t,e){const r=yfe(e);try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{r&&o.filename&&(o.debug_id=r[o.filename])})})}catch{}}function Tfe(t){const e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const r=t.debug_meta.images;Object.entries(e).forEach(([n,o])=>{r.push({type:"sourcemap",code_file:n,debug_id:o})})}function Ofe(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Dfe(t,e,r){if(!t)return null;const n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:Ti(o.data,e,r)}}))},...t.user&&{user:Ti(t.user,e,r)},...t.contexts&&{contexts:Ti(t.contexts,e,r)},...t.extra&&{extra:Ti(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=Ti(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(o=>({...o,...o.data&&{data:Ti(o.data,e,r)}}))),t.contexts&&t.contexts.flags&&n.contexts&&(n.contexts.flags=Ti(t.contexts.flags,3,r)),n}function Afe(t,e){if(!e)return t;const r=t?t.clone():new jl;return r.update(e),r}function Ife(t,e){return li().captureException(t,void 0)}function OH(t,e){return li().captureEvent(t,e)}function x5(t){const e=Dn(),r=If(),n=li(),{release:o,environment:a=EO}=e&&e.getOptions()||{},{userAgent:i}=Jt.navigator||{},s=mhe({release:o,environment:a,user:n.getUser()||r.getUser(),...i&&{userAgent:i},...t}),l=r.getSession();return l&&l.status==="ok"&&wu(l,{status:"exited"}),DH(),r.setSession(s),n.setSession(s),s}function DH(){const t=If(),e=li(),r=e.getSession()||t.getSession();r&&ghe(r),AH(),t.setSession(),e.setSession()}function AH(){const t=If(),e=li(),r=Dn(),n=e.getSession()||t.getSession();n&&r&&r.captureSession(n)}function S5(t=!1){if(t){DH();return}AH()}const Mfe="7";function Pfe(t){const e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function Nfe(t){return`${Pfe(t)}${t.projectId}/envelope/`}function Rfe(t,e){const r={sentry_version:Mfe};return t.publicKey&&(r.sentry_key=t.publicKey),e&&(r.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(r).toString()}function jfe(t,e,r){return e||`${Nfe(t)}?${Rfe(t,r)}`}const C5=[];function Lfe(t){const e={};return t.forEach(r=>{const{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.values(e)}function zfe(t){const e=t.defaultIntegrations||[],r=t.integrations;e.forEach(i=>{i.isDefaultInstance=!0});let n;if(Array.isArray(r))n=[...e,...r];else if(typeof r=="function"){const i=r(e);n=Array.isArray(i)?i:[i]}else n=e;const o=Lfe(n),a=o.findIndex(i=>i.name==="Debug");if(a>-1){const[i]=o.splice(a,1);o.push(i)}return o}function Ffe(t,e){const r={};return e.forEach(n=>{n&&IH(t,n,r)}),r}function $5(t,e){for(const r of e)r&&r.afterAllSetup&&r.afterAllSetup(t)}function IH(t,e,r){if(r[e.name]){lr&&$t.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,C5.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),C5.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,a)=>n(o,a,t))}if(typeof e.processEvent=="function"){const n=e.processEvent.bind(e),o=Object.assign((a,i)=>n(a,i,t),{id:e.name});t.addEventProcessor(o)}lr&&$t.log(`Integration installed: ${e.name}`)}function Bfe(t,e,r){const n=[{type:"client_report"},{timestamp:Af(),discarded_events:t}];return Mf(e?{dsn:e}:{},[n])}class Ya extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}}const k5="Not capturing exception because it's already been captured.";class Wfe{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=nfe(e.dsn):lr&&$t.warn("No DSN provided, client will not send events."),this._dsn){const o=jfe(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:o})}const n=["enableTracing","tracesSampleRate","tracesSampler"].find(o=>o in e&&e[o]==null);n&&ql(()=>{console.warn(`[Sentry] Deprecation warning: \`${n}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,r,n){const o=Qo();if(c5(e))return lr&&$t.log(k5),o;const a={event_id:o,...r};return this._process(this.eventFromException(e,a).then(i=>this._captureEvent(i,a,n))),a.event_id}captureMessage(e,r,n,o){const a={event_id:Qo(),...n},i=bO(e)?e:String(e),s=wO(e)?this.eventFromMessage(i,r,a):this.eventFromException(e,a);return this._process(s.then(l=>this._captureEvent(l,a,o))),a.event_id}captureEvent(e,r,n){const o=Qo();if(r&&r.originalException&&c5(r.originalException))return lr&&$t.log(k5),o;const a={event_id:o,...r},s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,a,s||n)),a.event_id}captureSession(e){typeof e.release!="string"?lr&&$t.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),wu(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>r.flush(e).then(o=>n&&o))):Rl(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}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]}addIntegration(e){const r=this._integrations[e.name];IH(this,e,this._integrations),r||$5(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=vfe(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of r.attachments||[])n=cfe(n,pfe(a));const o=this.sendEnvelope(n);o&&o.then(a=>this.emit("afterSendEvent",e,a),null)}sendSession(e){const r=gfe(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){const o=typeof n=="number"?n:1,a=`${e}:${r}`;lr&&$t.log(`Recording outcome: "${a}"${o>1?` (${o} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+o}}on(e,r){const n=this._hooks[e]=this._hooks[e]||[];return n.push(r),()=>{const o=n.indexOf(r);o>-1&&n.splice(o,1)}}emit(e,...r){const n=this._hooks[e];n&&n.forEach(o=>o(...r))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,r=>(lr&&$t.error("Error while sending envelope:",r),r)):(lr&&$t.error("Transport disabled"),Rl({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=Ffe(this,e),$5(this,e)}_updateSessionFromEvent(e,r){let n=!1,o=!1;const a=r.exception&&r.exception.values;if(a){o=!0;for(const l of a){const d=l.mechanism;if(d&&d.handled===!1){n=!0;break}}}const i=e.status==="ok";(i&&e.errors===0||i&&n)&&(wu(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Vo(r=>{let n=0;const o=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),r(!0)):(n+=o,e&&n>=e&&(clearInterval(a),r(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n=li(),o=If()){const a=this.getOptions(),i=Object.keys(this._integrations);return!r.integrations&&i.length>0&&(r.integrations=i),this.emit("preprocessEvent",e,r),e.type||o.setLastEventId(e.event_id||r.event_id),$fe(a,e,r,n,this,o).then(s=>{if(s===null)return s;s.contexts={trace:Ehe(n),...s.contexts};const l=Yhe(this,n);return s.sdkProcessingMetadata={dynamicSamplingContext:l,...s.sdkProcessingMetadata},s})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(o=>o.event_id,o=>{if(lr){const a=o;a.logLevel==="log"?$t.log(a.message):$t.warn(a)}})}_processEvent(e,r,n){const o=this.getOptions(),{sampleRate:a}=o,i=PH(e),s=MH(e),l=e.type||"error",d=`before send for type \`${l}\``,h=typeof a>"u"?void 0:Zhe(a);if(s&&typeof h=="number"&&Math.random()>h)return this.recordDroppedEvent("sample_rate","error",e),Mv(new Ya(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const u=l==="replay_event"?"replay":l,g=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,r,n,g).then(y=>{if(y===null)throw this.recordDroppedEvent("event_processor",u,e),new Ya("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return y;const x=Ufe(this,o,y,r);return Hfe(x,d)}).then(y=>{if(y===null){if(this.recordDroppedEvent("before_send",u,e),i){const T=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",T)}throw new Ya(`${d} returned \`null\`, will not send event.`,"log")}const b=n&&n.getSession();if(!i&&b&&this._updateSessionFromEvent(b,y),i){const S=y.sdkProcessingMetadata&&y.sdkProcessingMetadata.spanCountBeforeProcessing||0,T=y.spans?y.spans.length:0,E=S-T;E>0&&this.recordDroppedEvent("before_send","span",E)}const x=y.transaction_info;if(i&&x&&y.transaction!==e.transaction){const S="custom";y.transaction_info={...x,source:S}}return this.sendEvent(y,r),y}).then(null,y=>{throw y instanceof Ya?y:(this.captureException(y,{data:{__sentry__:!0},originalException:y}),new Ya(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${y}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([r,n])=>{const[o,a]=r.split(":");return{reason:o,category:a,quantity:n}})}_flushOutcomes(){lr&&$t.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){lr&&$t.log("No outcomes to send");return}if(!this._dsn){lr&&$t.log("No dsn provided, will not send outcomes");return}lr&&$t.log("Sending outcomes:",e);const r=Bfe(e,this._options.tunnel&&Vy(this._dsn));this.sendEnvelope(r)}}function Hfe(t,e){const r=`${e} must return \`null\` or a valid event.`;if(Wy(t))return t.then(n=>{if(!_u(n)&&n!==null)throw new Ya(r);return n},n=>{throw new Ya(`${e} rejected with ${n}`)});if(!_u(t)&&t!==null)throw new Ya(r);return t}function Ufe(t,e,r,n){const{beforeSend:o,beforeSendTransaction:a,beforeSendSpan:i}=e;if(MH(r)&&o)return o(r,n);if(PH(r)){if(r.spans&&i){const s=[];for(const l of r.spans){const d=i(l);d?s.push(d):(Ghe(),t.recordDroppedEvent("before_send","span"))}r.spans=s}if(a){if(r.spans){const s=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:s}}return a(r,n)}}return r}function MH(t){return t.type===void 0}function PH(t){return t.type==="transaction"}function Vfe(t,e){e.debug===!0&&(lr?$t.enable():ql(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),li().update(e.initialScope);const n=new t(e);return qfe(n),n.init(),n}function qfe(t){li().setClient(t)}function Gfe(t){const e=[];function r(){return t===void 0||e.lengthn(s)).then(null,()=>n(s).then(null,()=>{})),s}function a(i){return new Vo((s,l)=>{let d=e.length;if(!d)return s(!0);const h=setTimeout(()=>{i&&i>0&&s(!1)},i);e.forEach(u=>{Rl(u).then(()=>{--d||(clearTimeout(h),s(!0))},l)})})}return{$:e,add:o,drain:a}}const Xfe=60*1e3;function Jfe(t,e=Date.now()){const r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;const n=Date.parse(`${t}`);return isNaN(n)?Xfe:n-e}function Yfe(t,e){return t[e]||t.all||0}function Kfe(t,e,r=Date.now()){return Yfe(t,e)>r}function Zfe(t,{statusCode:e,headers:r},n=Date.now()){const o={...t},a=r&&r["x-sentry-rate-limits"],i=r&&r["retry-after"];if(a)for(const s of a.trim().split(",")){const[l,d,,,h]=s.split(":",5),u=parseInt(l,10),f=(isNaN(u)?60:u)*1e3;if(!d)o.all=n+f;else for(const g of d.split(";"))g==="metric_bucket"?(!h||h.split(";").includes("custom"))&&(o[g]=n+f):o[g]=n+f}else i?o.all=n+Jfe(i,n):e===429&&(o.all=n+60*1e3);return o}const Qfe=64;function eme(t,e,r=Gfe(t.bufferSize||Qfe)){let n={};const o=i=>r.drain(i);function a(i){const s=[];if(y5(i,(u,f)=>{const g=_5(f);if(Kfe(n,g)){const y=E5(u,f);t.recordDroppedEvent("ratelimit_backoff",g,y)}else s.push(u)}),s.length===0)return Rl({});const l=Mf(i[0],s),d=u=>{y5(l,(f,g)=>{const y=E5(f,g);t.recordDroppedEvent(u,_5(g),y)})},h=()=>e({body:dfe(l)}).then(u=>(u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&lr&&$t.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),n=Zfe(n,u),u),u=>{throw d("network_error"),u});return r.add(h).then(u=>u,u=>{if(u instanceof Ya)return lr&&$t.error("Skipped sending event because buffer is full."),d("queue_overflow"),Rl({});throw u})}return{send:a,flush:o}}function E5(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}function tme(t,e,r=[e],n="npm"){const o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:r.map(a=>({name:`${n}:@sentry/${a}`,version:kl})),version:kl}),t._metadata=o}const rme=100;function Ll(t,e){const r=Dn(),n=If();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=rme}=r.getOptions();if(a<=0)return;const s={timestamp:Af(),...t},l=o?ql(()=>o(s,e)):s;l!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",l,e),n.addBreadcrumb(l,a))}let T5;const nme="FunctionToString",O5=new WeakMap,ome=()=>({name:nme,setupOnce(){T5=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=SO(this),r=O5.has(Dn())&&e!==void 0?e:this;return T5.apply(r,t)}}catch{}},setup(t){O5.set(t,!0)}}),ame=ome,ime=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],sme="InboundFilters",lme=(t={})=>({name:sme,processEvent(e,r,n){const o=n.getOptions(),a=dme(t,o);return ume(e,a)?null:e}}),cme=lme;function dme(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:ime],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function ume(t,e){return e.ignoreInternal&&vme(t)?(lr&&$t.warn(`Event dropped due to being internal Sentry Error. Event: ${vs(t)}`),!0):pme(t,e.ignoreErrors)?(lr&&$t.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${vs(t)}`),!0):_me(t)?(lr&&$t.warn(`Event dropped due to not having an error message, error type or stacktrace. @@ -421,7 +421,7 @@ Event: ${vs(t)}`),!0):fme(t,e.denyUrls)?(lr&&$t.warn(`Event dropped due to being Event: ${vs(t)}. Url: ${Pv(t)}`),!0):mme(t,e.allowUrls)?!1:(lr&&$t.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${vs(t)}. -Url: ${Pv(t)}`),!0)}function pme(t,e){return t.type||!e||!e.length?!1:gme(t).some(r=>Hy(r,e))}function hme(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const r=t.transaction;return r?Hy(r,e):!1}function fme(t,e){if(!e||!e.length)return!1;const r=Pv(t);return r?Hy(r,e):!1}function mme(t,e){if(!e||!e.length)return!0;const r=Pv(t);return r?Hy(r,e):!0}function gme(t){const e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch{}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),e}function vme(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function yme(t=[]){for(let e=t.length-1;e>=0;e--){const r=t[e];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function Pv(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?yme(e):null}catch{return lr&&$t.error(`Cannot extract url for event ${vs(t)}`),null}}function _me(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}function bme(t,e,r=250,n,o,a,i){if(!a.exception||!a.exception.values||!i||!Pl(i.originalException,Error))return;const s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=wme(ZE(t,e,o,i.originalException,n,a.exception.values,s,0),r))}function ZE(t,e,r,n,o,a,i,s){if(a.length>=r+1)return a;let l=[...a];if(Pl(n[o],Error)){D5(i,s);const d=t(e,n[o]),h=l.length;A5(d,o,h,s),l=ZE(t,e,r,n[o],o,[d,...l],d,h)}return Array.isArray(n.errors)&&n.errors.forEach((d,h)=>{if(Pl(d,Error)){D5(i,s);const u=t(e,d),f=l.length;A5(u,`errors[${h}]`,f,s),l=ZE(t,e,r,d,o,[u,...l],u,f)}}),l}function D5(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function A5(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function wme(t,e){return t.map(r=>(r.value&&(r.value=tu(r.value,e)),r))}function s1(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}function xme(t){const e="console";Gl(e,t),Xl(e,Sme)}function Sme(){"console"in Yt&&UE.forEach(function(t){t in Yt.console&&Co(Yt.console,t,function(e){return Iv[t]=e,function(...r){ka("console",{args:r,level:t});const o=Iv[t];o&&o.apply(Yt.console,r)}})})}function Cme(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const $me="Dedupe",kme=()=>{let t;return{name:$me,processEvent(e){if(e.type)return e;try{if(Eme(e,t))return lr&&$t.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},NH=kme;function Eme(t,e){return e?!!(Tme(t,e)||Ome(t,e)):!1}function Tme(t,e){const r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!jH(t,e)||!RH(t,e))}function Ome(t,e){const r=I5(e),n=I5(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!jH(t,e)||!RH(t,e))}function RH(t,e){let r=n5(t),n=n5(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o=400&&t<500?"warning":t>=500?"error":void 0}const QE=Yt;function zH(){if(!("fetch"in QE))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function e2(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Dme(){if(typeof EdgeRuntime=="string")return!0;if(!zH())return!1;if(e2(QE.fetch))return!0;let t=!1;const e=QE.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=e2(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){Vl&&$t.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function Ame(t,e){const r="fetch";Gl(r,t),Xl(r,()=>Ime(void 0,e))}function Ime(t,e=!1){e&&!Dme()||Co(Yt,"fetch",function(r){return function(...n){const o=new Error,{method:a,url:i}=Mme(n),s={args:n,fetchData:{method:a,url:i},startTimestamp:Pi()*1e3,virtualError:o};return ka("fetch",{...s}),r.apply(Yt,n).then(async l=>(ka("fetch",{...s,endTimestamp:Pi()*1e3,response:l}),l),l=>{throw ka("fetch",{...s,endTimestamp:Pi()*1e3,error:l}),_O(l)&&l.stack===void 0&&(l.stack=o.stack,Nl(l,"framesToPop",1)),l})}})}function t2(t,e){return!!t&&typeof t=="object"&&!!t[e]}function M5(t){return typeof t=="string"?t:t?t2(t,"url")?t.url:t.toString?t.toString():"":""}function Mme(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[r,n]=t;return{url:M5(r),method:t2(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:M5(e),method:t2(e,"method")?String(e.method).toUpperCase():"GET"}}function Pme(){return"npm"}const Sg=Yt;function Nme(){const t=Sg.chrome,e=t&&t.app&&t.app.runtime,r="history"in Sg&&!!Sg.history.pushState&&!!Sg.history.replaceState;return!e&&r}const cr=Yt;let r2=0;function FH(){return r2>0}function Rme(){r2++,setTimeout(()=>{r2--})}function Su(t,e={}){function r(o){return typeof o=="function"}if(!r(t))return t;try{const o=t.__sentry_wrapped__;if(o)return typeof o=="function"?o:t;if(SO(t))return t}catch{return t}const n=function(...o){try{const a=o.map(i=>Su(i,e));return t.apply(this,a)}catch(a){throw Rme(),khe(i=>{i.addEventProcessor(s=>(e.mechanism&&(qE(s,void 0),bu(s,e.mechanism)),s.extra={...s.extra,arguments:o},s)),Ife(a)}),a}};try{for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}catch{}bH(n,t),Nl(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}const Pf=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function TO(t,e){const r=OO(t,e),n={type:Bme(e),value:Wme(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function jme(t,e,r,n){const o=Dn(),a=o&&o.getOptions().normalizeDepth,i=Gme(e),s={__serialized__:EH(e,a)};if(i)return{exception:{values:[TO(t,i)]},extra:s};const l={exception:{values:[{type:By(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:Vme(e,{isUnhandledRejection:n})}]},extra:s};if(r){const d=OO(t,r);d.length&&(l.exception.values[0].stacktrace={frames:d})}return l}function l1(t,e){return{exception:{values:[TO(t,e)]}}}function OO(t,e){const r=e.stacktrace||e.stack||"",n=zme(e),o=Fme(e);try{return t(r,n,o)}catch{}return[]}const Lme=/Minified React error #\d+;/i;function zme(t){return t&&Lme.test(t.message)?1:0}function Fme(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function BH(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function Bme(t){const e=t&&t.name;return!e&&BH(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function Wme(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:BH(t)&&Array.isArray(t.message)&&t.message.length==2?t.message[1]:e:"No error message"}function Hme(t,e,r,n){const o=r&&r.syntheticException||void 0,a=DO(t,e,o,n);return bu(a),a.level="error",r&&r.event_id&&(a.event_id=r.event_id),Rl(a)}function Ume(t,e,r="info",n,o){const a=n&&n.syntheticException||void 0,i=n2(t,e,a,o);return i.level=r,n&&n.event_id&&(i.event_id=n.event_id),Rl(i)}function DO(t,e,r,n,o){let a;if(vH(e)&&e.error)return l1(t,e.error);if(a5(e)||rhe(e)){const i=e;if("stack"in e)a=l1(t,e);else{const s=i.name||(a5(i)?"DOMError":"DOMException"),l=i.message?`${s}: ${i.message}`:s;a=n2(t,l,r,n),qE(a,l)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return _O(e)?l1(t,e):_u(e)||By(e)?(a=jme(t,e,r,o),bu(a,{synthetic:!0}),a):(a=n2(t,e,r,n),qE(a,`${e}`),bu(a,{synthetic:!0}),a)}function n2(t,e,r,n){const o={};if(n&&r){const a=OO(t,r);a.length&&(o.exception={values:[{value:e,stacktrace:{frames:a}}]}),bu(o,{synthetic:!0})}if(bO(e)){const{__sentry_template_string__:a,__sentry_template_values__:i}=e;return o.logentry={message:a,params:i},o}return o.message=e,o}function Vme(t,{isUnhandledRejection:e}){const r=uhe(t),n=e?"promise rejection":"exception";return vH(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:By(t)?`Event \`${qme(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function qme(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function Gme(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];if(r instanceof Error)return r}}function Xme(t,{metadata:e,tunnel:r,dsn:n}){const o={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!r&&!!n&&{dsn:Vy(n)}},a=Jme(t);return Mf(o,[a])}function Jme(t){return[{type:"user_report"},t]}class Yme extends Wfe{constructor(e){const r={parentSpanIsAlwaysRootSpan:!0,...e},n=cr.SENTRY_SDK_SOURCE||Pme();tme(r,"browser",["browser"],n),super(r),r.sendClientReports&&cr.document&&cr.document.addEventListener("visibilitychange",()=>{cr.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,r){return Hme(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return Ume(this._options.stackParser,e,r,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){Pf&&$t.warn("SDK not enabled, will not capture user feedback.");return}const r=Xme(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(r)}_prepareEvent(e,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n)}}const Kme=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Fn=Yt,Zme=1e3;let P5,o2,a2;function Qme(t){const e="dom";Gl(e,t),Xl(e,ege)}function ege(){if(!Fn.document)return;const t=ka.bind(null,"dom"),e=N5(t,!0);Fn.document.addEventListener("click",e,!1),Fn.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{const o=Fn[r],a=o&&o.prototype;!a||!a.hasOwnProperty||!a.hasOwnProperty("addEventListener")||(Co(a,"addEventListener",function(i){return function(s,l,d){if(s==="click"||s=="keypress")try{const h=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=h[s]=h[s]||{refCount:0};if(!u.handler){const f=N5(t);u.handler=f,i.call(this,s,f,d)}u.refCount++}catch{}return i.call(this,s,l,d)}}),Co(a,"removeEventListener",function(i){return function(s,l,d){if(s==="click"||s=="keypress")try{const h=this.__sentry_instrumentation_handlers__||{},u=h[s];u&&(u.refCount--,u.refCount<=0&&(i.call(this,s,u.handler,d),u.handler=void 0,delete h[s]),Object.keys(h).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,l,d)}}))})}function tge(t){if(t.type!==o2)return!1;try{if(!t.target||t.target._sentryId!==a2)return!1}catch{}return!0}function rge(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function N5(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;const n=nge(r);if(rge(r.type,n))return;Nl(r,"_sentryCaptured",!0),n&&!n._sentryId&&Nl(n,"_sentryId",Qo());const o=r.type==="keypress"?"input":r.type;tge(r)||(t({event:r,name:o,global:e}),o2=r.type,a2=n?n._sentryId:void 0),clearTimeout(P5),P5=Fn.setTimeout(()=>{a2=void 0,o2=void 0},Zme)}}function nge(t){try{return t.target}catch{return null}}let Cg;function WH(t){const e="history";Gl(e,t),Xl(e,oge)}function oge(){if(!Nme())return;const t=Fn.onpopstate;Fn.onpopstate=function(...r){const n=Fn.location.href,o=Cg;if(Cg=n,ka("history",{from:o,to:n}),t)try{return t.apply(this,r)}catch{}};function e(r){return function(...n){const o=n.length>2?n[2]:void 0;if(o){const a=Cg,i=String(o);Cg=i,ka("history",{from:a,to:i})}return r.apply(this,n)}}Co(Fn.history,"pushState",e),Co(Fn.history,"replaceState",e)}const tv={};function age(t){const e=tv[t];if(e)return e;let r=Fn[t];if(e2(r))return tv[t]=r.bind(Fn);const n=Fn.document;if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a&&a[t]&&(r=a[t]),n.head.removeChild(o)}catch(o){Kme&&$t.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,o)}return r&&(tv[t]=r.bind(Fn))}function R5(t){tv[t]=void 0}const lh="__sentry_xhr_v3__";function ige(t){const e="xhr";Gl(e,t),Xl(e,sge)}function sge(){if(!Fn.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,r,n){const o=new Error,a=Pi()*1e3,i=Mi(n[0])?n[0].toUpperCase():void 0,s=lge(n[1]);if(!i||!s)return e.apply(r,n);r[lh]={method:i,url:s,request_headers:{}},i==="POST"&&s.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const l=()=>{const d=r[lh];if(d&&r.readyState===4){try{d.status_code=r.status}catch{}const h={endTimestamp:Pi()*1e3,startTimestamp:a,xhr:r,virtualError:o};ka("xhr",h)}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(d,h,u){return l(),d.apply(h,u)}}):r.addEventListener("readystatechange",l),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(d,h,u){const[f,g]=u,y=h[lh];return y&&Mi(f)&&Mi(g)&&(y.request_headers[f.toLowerCase()]=g),d.apply(h,u)}}),e.apply(r,n)}}),t.send=new Proxy(t.send,{apply(e,r,n){const o=r[lh];if(!o)return e.apply(r,n);n[0]!==void 0&&(o.body=n[0]);const a={startTimestamp:Pi()*1e3,xhr:r};return ka("xhr",a),e.apply(r,n)}})}function lge(t){if(Mi(t))return t;try{return t.toString()}catch{}}function cge(t,e=age("fetch")){let r=0,n=0;function o(a){const i=a.body.length;r+=i,n++;const s={body:a.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};if(!e)return R5("fetch"),Mv("No fetch implementation available");try{return e(t.url,s).then(l=>(r-=i,n--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return R5("fetch"),r-=i,n--,Mv(l)}}return eme(t,o)}const dge=30,uge=50;function i2(t,e,r,n){const o={filename:t,function:e===""?Ml:e,in_app:!0};return r!==void 0&&(o.lineno=r),n!==void 0&&(o.colno=n),o}const pge=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,hge=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fge=/\((\S*)(?::(\d+))(?::(\d+))\)/,mge=t=>{const e=pge.exec(t);if(e){const[,n,o,a]=e;return i2(n,Ml,+o,+a)}const r=hge.exec(t);if(r){if(r[2]&&r[2].indexOf("eval")===0){const i=fge.exec(r[2]);i&&(r[2]=i[1],r[3]=i[2],r[4]=i[3])}const[o,a]=HH(r[1]||Ml,r[2]);return i2(a,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},gge=[dge,mge],vge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yge=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,_ge=t=>{const e=vge.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const a=yge.exec(e[3]);a&&(e[1]=e[1]||"eval",e[3]=a[1],e[4]=a[2],e[5]="")}let n=e[3],o=e[1]||Ml;return[o,n]=HH(o,n),i2(n,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},bge=[uge,_ge],wge=[gge,bge],xge=mH(...wge),HH=(t,e)=>{const r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:Ml,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},$g=1024,Sge="Breadcrumbs",Cge=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Sge,setup(r){e.console&&xme(Tge(r)),e.dom&&Qme(Ege(r,e.dom)),e.xhr&&ige(Oge(r)),e.fetch&&Ame(Dge(r)),e.history&&WH(Age(r)),e.sentry&&r.on("beforeSendEvent",kge(r))}}},$ge=Cge;function kge(t){return function(r){Dn()===t&&Ll({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:vs(r)},{event:r})}}function Ege(t,e){return function(n){if(Dn()!==t)return;let o,a,i=typeof e=="object"?e.serializeAttribute:void 0,s=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;s&&s>$g&&(Pf&&$t.warn(`\`dom.maxStringLength\` cannot exceed ${$g}, but a value of ${s} was configured. Sentry will use ${$g} instead.`),s=$g),typeof i=="string"&&(i=[i]);try{const d=n.event,h=Ige(d)?d.target:d;o=_H(h,{keyAttrs:i,maxStringLength:s}),a=che(h)}catch{o=""}if(o.length===0)return;const l={category:`ui.${n.name}`,message:o};a&&(l.data={"ui.component_name":a}),Ll(l,{event:n.event,name:n.name,global:n.global})}}function Tge(t){return function(r){if(Dn()!==t)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:Cme(r.level),message:i5(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${i5(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;Ll(n,{input:r.args,level:r.level})}}function Oge(t){return function(r){if(Dn()!==t)return;const{startTimestamp:n,endTimestamp:o}=r,a=r.xhr[lh];if(!n||!o||!a)return;const{method:i,url:s,status_code:l,body:d}=a,h={method:i,url:s,status_code:l},u={xhr:r.xhr,input:d,startTimestamp:n,endTimestamp:o},f=LH(l);Ll({category:"xhr",data:h,type:"http",level:f},u)}}function Dge(t){return function(r){if(Dn()!==t)return;const{startTimestamp:n,endTimestamp:o}=r;if(o&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){const a=r.fetchData,i={data:r.error,input:r.args,startTimestamp:n,endTimestamp:o};Ll({category:"fetch",data:a,level:"error",type:"http"},i)}else{const a=r.response,i={...r.fetchData,status_code:a&&a.status},s={input:r.args,response:a,startTimestamp:n,endTimestamp:o},l=LH(i.status_code);Ll({category:"fetch",data:i,type:"http",level:l},s)}}}function Age(t){return function(r){if(Dn()!==t)return;let n=r.from,o=r.to;const a=s1(cr.location.href);let i=n?s1(n):void 0;const s=s1(o);(!i||!i.path)&&(i=a),a.protocol===s.protocol&&a.host===s.host&&(o=s.relative),a.protocol===i.protocol&&a.host===i.host&&(n=i.relative),Ll({category:"navigation",data:{from:n,to:o}})}}function Ige(t){return!!t&&!!t.target}const Mge=["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"],Pge="BrowserApiErrors",Nge=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:Pge,setupOnce(){e.setTimeout&&Co(cr,"setTimeout",j5),e.setInterval&&Co(cr,"setInterval",j5),e.requestAnimationFrame&&Co(cr,"requestAnimationFrame",jge),e.XMLHttpRequest&&"XMLHttpRequest"in cr&&Co(XMLHttpRequest.prototype,"send",Lge);const r=e.eventTarget;r&&(Array.isArray(r)?r:Mge).forEach(zge)}}},Rge=Nge;function j5(t){return function(...e){const r=e[0];return e[0]=Su(r,{mechanism:{data:{function:Ns(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function jge(t){return function(e){return t.apply(this,[Su(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Ns(t)},handled:!1,type:"instrument"}})])}}function Lge(t){return function(...e){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in r&&typeof r[o]=="function"&&Co(r,o,function(a){const i={mechanism:{data:{function:o,handler:Ns(a)},handled:!1,type:"instrument"}},s=SO(a);return s&&(i.mechanism.data.handler=Ns(s)),Su(a,i)})}),t.apply(this,e)}}function zge(t){const r=cr[t],n=r&&r.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Co(n,"addEventListener",function(o){return function(a,i,s){try{Fge(i)&&(i.handleEvent=Su(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ns(i),target:t},handled:!1,type:"instrument"}}))}catch{}return o.apply(this,[a,Su(i,{mechanism:{data:{function:"addEventListener",handler:Ns(i),target:t},handled:!1,type:"instrument"}}),s])}}),Co(n,"removeEventListener",function(o){return function(a,i,s){try{const l=i.__sentry_wrapped__;l&&o.call(this,a,l,s)}catch{}return o.call(this,a,i,s)}}))}function Fge(t){return typeof t.handleEvent=="function"}const Bge=()=>({name:"BrowserSession",setupOnce(){if(typeof cr.document>"u"){Pf&&$t.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}x5({ignoreDuration:!0}),S5(),WH(({from:t,to:e})=>{t!==void 0&&t!==e&&(x5({ignoreDuration:!0}),S5())})}}),Wge="GlobalHandlers",Hge=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Wge,setupOnce(){Error.stackTraceLimit=50},setup(r){e.onerror&&(Vge(r),L5("onerror")),e.onunhandledrejection&&(qge(r),L5("onunhandledrejection"))}}},Uge=Hge;function Vge(t){Zpe(e=>{const{stackParser:r,attachStacktrace:n}=UH();if(Dn()!==t||FH())return;const{msg:o,url:a,line:i,column:s,error:l}=e,d=Jge(DO(r,l||o,void 0,n,!1),a,i,s);d.level="error",OH(d,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function qge(t){ehe(e=>{const{stackParser:r,attachStacktrace:n}=UH();if(Dn()!==t||FH())return;const o=Gge(e),a=wO(o)?Xge(o):DO(r,o,void 0,n,!0);a.level="error",OH(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Gge(t){if(wO(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function Xge(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Jge(t,e,r,n){const o=t.exception=t.exception||{},a=o.values=o.values||[],i=a[0]=a[0]||{},s=i.stacktrace=i.stacktrace||{},l=s.frames=s.frames||[],d=n,h=r,u=Mi(e)&&e.length>0?e:lhe();return l.length===0&&l.push({colno:d,filename:u,function:Ml,in_app:!0,lineno:h}),t}function L5(t){Pf&&$t.log(`Global Handler attached: ${t}`)}function UH(){const t=Dn();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Yge=()=>({name:"HttpContext",preprocessEvent(t){if(!cr.navigator&&!cr.location&&!cr.document)return;const e=t.request&&t.request.url||cr.location&&cr.location.href,{referrer:r}=cr.document||{},{userAgent:n}=cr.navigator||{},o={...t.request&&t.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...t.request,...e&&{url:e},headers:o};t.request=a}}),Kge="cause",Zge=5,Qge="LinkedErrors",eve=(t={})=>{const e=t.limit||Zge,r=t.key||Kge;return{name:Qge,preprocessEvent(n,o,a){const i=a.getOptions();bme(TO,i.stackParser,i.maxValueLength,r,e,n,o)}}},tve=eve;function rve(t){const e=[cme(),ame(),Rge(),$ge(),Uge(),tve(),NH(),Yge()];return t.autoSessionTracking!==!1&&e.push(Bge()),e}function nve(t={}){const e={defaultIntegrations:rve(t),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:cr.SENTRY_RELEASE&&cr.SENTRY_RELEASE.id?cr.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return t.defaultIntegrations==null&&delete t.defaultIntegrations,{...e,...t}}function ove(){const t=typeof cr.window<"u"&&cr;if(!t)return!1;const e=t.chrome?"chrome":"browser",r=t[e],n=r&&r.runtime&&r.runtime.id,o=cr.location&&cr.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!n&&cr===cr.top&&a.some(l=>o.startsWith(`${l}//`)),s=typeof t.nw<"u";return!!n&&!i&&!s}function ave(t={}){const e=nve(t);if(!e.skipBrowserExtensionCheck&&ove()){ql(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}Pf&&(zH()||$t.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const r={...e,stackParser:Ype(e.stackParser||xge),integrations:zfe(e),transport:e.transport||cge};return Vfe(Yme,r)}const ive=Ge([w.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),w.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),Nv=Ge(w.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),sve=Ge(w.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),z5=Ge(w.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),lve=Ge(w.jsx("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),cve=Ge(w.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"),dve=Ge([w.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"),w.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"),uve=Ge(w.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"),pve=Ge(w.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"),hve=Ge(w.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"),VH=Ge(w.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"),fve=Ge(w.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"),mve=Ge(w.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"),Nf=Ge(w.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"),Ea=Ge(w.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Ar=Ge(w.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"),AO=Ge(w.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"),gve=Ge(w.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"),vve=Ge(w.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"),qH=Ge(w.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"),yve=Ge(w.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"),Ta=Ge(w.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"),IO=Ge(w.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"),rv=Ge(w.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"),_ve=Ge(w.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"),bve=Ge(w.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"),wve=Ge(w.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"),xve=Ge(w.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"),Sve=Ge(w.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"),Cve=Ge(w.jsx("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"}),"FormatItalic"),GH=Ge(w.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"),$ve=Ge(w.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"),kve=Ge(w.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"),XH=Ge(w.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"),Eve=Ge(w.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),JH=Ge(w.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"),Tve=Ge(w.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),Ove=Ge(w.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"),Dve=Ge(w.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"),Ave=Ge(w.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),Ive=Ge(w.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"),YH=Ge(w.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"),Mve=Ge(w.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.89-2-2-2m0 16H5V7h14zm-5.5-6c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5M12 9c-2.73 0-5.06 1.66-6 4 .94 2.34 3.27 4 6 4s5.06-1.66 6-4c-.94-2.34-3.27-4-6-4m0 6.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"Preview"),Rv=Ge(w.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),MO=Ge(w.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"),KH=Ge(w.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"),s2=Ge(w.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"),Pve=Ge(w.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"),Nve=Ge(w.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),l2=Ge(w.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"),F5=Ge(w.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"),Rve=Ge(w.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"),jve=Ge(w.jsx("path",{d:"M14 17H4v2h10zm6-8H4v2h16zM4 15h16v-2H4zM4 5v2h16V5z"}),"Subject"),ZH=Ge(w.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"),Lve=Ge(w.jsx("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"}),"TextFields"),zve=Ge(w.jsx("path",{d:"M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2"}),"Timeline"),Fve=Ge(w.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),Bve=Ge(w.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),Wve=Ge(w.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"),Hve=Ge(w.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn"),Uve=Ge(w.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"),ch=Ge(w.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"),kg=Ge(w.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 Vve(){console.log(` +Url: ${Pv(t)}`),!0)}function pme(t,e){return t.type||!e||!e.length?!1:gme(t).some(r=>Hy(r,e))}function hme(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const r=t.transaction;return r?Hy(r,e):!1}function fme(t,e){if(!e||!e.length)return!1;const r=Pv(t);return r?Hy(r,e):!1}function mme(t,e){if(!e||!e.length)return!0;const r=Pv(t);return r?Hy(r,e):!0}function gme(t){const e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch{}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),e}function vme(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function yme(t=[]){for(let e=t.length-1;e>=0;e--){const r=t[e];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function Pv(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?yme(e):null}catch{return lr&&$t.error(`Cannot extract url for event ${vs(t)}`),null}}function _me(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}function bme(t,e,r=250,n,o,a,i){if(!a.exception||!a.exception.values||!i||!Pl(i.originalException,Error))return;const s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=wme(ZE(t,e,o,i.originalException,n,a.exception.values,s,0),r))}function ZE(t,e,r,n,o,a,i,s){if(a.length>=r+1)return a;let l=[...a];if(Pl(n[o],Error)){D5(i,s);const d=t(e,n[o]),h=l.length;A5(d,o,h,s),l=ZE(t,e,r,n[o],o,[d,...l],d,h)}return Array.isArray(n.errors)&&n.errors.forEach((d,h)=>{if(Pl(d,Error)){D5(i,s);const u=t(e,d),f=l.length;A5(u,`errors[${h}]`,f,s),l=ZE(t,e,r,d,o,[u,...l],u,f)}}),l}function D5(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function A5(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function wme(t,e){return t.map(r=>(r.value&&(r.value=tu(r.value,e)),r))}function s1(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}function xme(t){const e="console";Gl(e,t),Xl(e,Sme)}function Sme(){"console"in Jt&&UE.forEach(function(t){t in Jt.console&&Co(Jt.console,t,function(e){return Iv[t]=e,function(...r){ka("console",{args:r,level:t});const o=Iv[t];o&&o.apply(Jt.console,r)}})})}function Cme(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const $me="Dedupe",kme=()=>{let t;return{name:$me,processEvent(e){if(e.type)return e;try{if(Eme(e,t))return lr&&$t.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},NH=kme;function Eme(t,e){return e?!!(Tme(t,e)||Ome(t,e)):!1}function Tme(t,e){const r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!jH(t,e)||!RH(t,e))}function Ome(t,e){const r=I5(e),n=I5(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!jH(t,e)||!RH(t,e))}function RH(t,e){let r=n5(t),n=n5(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o=400&&t<500?"warning":t>=500?"error":void 0}const QE=Jt;function zH(){if(!("fetch"in QE))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function e2(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Dme(){if(typeof EdgeRuntime=="string")return!0;if(!zH())return!1;if(e2(QE.fetch))return!0;let t=!1;const e=QE.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=e2(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){Vl&&$t.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function Ame(t,e){const r="fetch";Gl(r,t),Xl(r,()=>Ime(void 0,e))}function Ime(t,e=!1){e&&!Dme()||Co(Jt,"fetch",function(r){return function(...n){const o=new Error,{method:a,url:i}=Mme(n),s={args:n,fetchData:{method:a,url:i},startTimestamp:Pi()*1e3,virtualError:o};return ka("fetch",{...s}),r.apply(Jt,n).then(async l=>(ka("fetch",{...s,endTimestamp:Pi()*1e3,response:l}),l),l=>{throw ka("fetch",{...s,endTimestamp:Pi()*1e3,error:l}),_O(l)&&l.stack===void 0&&(l.stack=o.stack,Nl(l,"framesToPop",1)),l})}})}function t2(t,e){return!!t&&typeof t=="object"&&!!t[e]}function M5(t){return typeof t=="string"?t:t?t2(t,"url")?t.url:t.toString?t.toString():"":""}function Mme(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[r,n]=t;return{url:M5(r),method:t2(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:M5(e),method:t2(e,"method")?String(e.method).toUpperCase():"GET"}}function Pme(){return"npm"}const Sg=Jt;function Nme(){const t=Sg.chrome,e=t&&t.app&&t.app.runtime,r="history"in Sg&&!!Sg.history.pushState&&!!Sg.history.replaceState;return!e&&r}const cr=Jt;let r2=0;function FH(){return r2>0}function Rme(){r2++,setTimeout(()=>{r2--})}function Su(t,e={}){function r(o){return typeof o=="function"}if(!r(t))return t;try{const o=t.__sentry_wrapped__;if(o)return typeof o=="function"?o:t;if(SO(t))return t}catch{return t}const n=function(...o){try{const a=o.map(i=>Su(i,e));return t.apply(this,a)}catch(a){throw Rme(),khe(i=>{i.addEventProcessor(s=>(e.mechanism&&(qE(s,void 0),bu(s,e.mechanism)),s.extra={...s.extra,arguments:o},s)),Ife(a)}),a}};try{for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}catch{}bH(n,t),Nl(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}const Pf=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function TO(t,e){const r=OO(t,e),n={type:Bme(e),value:Wme(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function jme(t,e,r,n){const o=Dn(),a=o&&o.getOptions().normalizeDepth,i=Gme(e),s={__serialized__:EH(e,a)};if(i)return{exception:{values:[TO(t,i)]},extra:s};const l={exception:{values:[{type:By(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:Vme(e,{isUnhandledRejection:n})}]},extra:s};if(r){const d=OO(t,r);d.length&&(l.exception.values[0].stacktrace={frames:d})}return l}function l1(t,e){return{exception:{values:[TO(t,e)]}}}function OO(t,e){const r=e.stacktrace||e.stack||"",n=zme(e),o=Fme(e);try{return t(r,n,o)}catch{}return[]}const Lme=/Minified React error #\d+;/i;function zme(t){return t&&Lme.test(t.message)?1:0}function Fme(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function BH(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function Bme(t){const e=t&&t.name;return!e&&BH(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function Wme(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:BH(t)&&Array.isArray(t.message)&&t.message.length==2?t.message[1]:e:"No error message"}function Hme(t,e,r,n){const o=r&&r.syntheticException||void 0,a=DO(t,e,o,n);return bu(a),a.level="error",r&&r.event_id&&(a.event_id=r.event_id),Rl(a)}function Ume(t,e,r="info",n,o){const a=n&&n.syntheticException||void 0,i=n2(t,e,a,o);return i.level=r,n&&n.event_id&&(i.event_id=n.event_id),Rl(i)}function DO(t,e,r,n,o){let a;if(vH(e)&&e.error)return l1(t,e.error);if(a5(e)||rhe(e)){const i=e;if("stack"in e)a=l1(t,e);else{const s=i.name||(a5(i)?"DOMError":"DOMException"),l=i.message?`${s}: ${i.message}`:s;a=n2(t,l,r,n),qE(a,l)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return _O(e)?l1(t,e):_u(e)||By(e)?(a=jme(t,e,r,o),bu(a,{synthetic:!0}),a):(a=n2(t,e,r,n),qE(a,`${e}`),bu(a,{synthetic:!0}),a)}function n2(t,e,r,n){const o={};if(n&&r){const a=OO(t,r);a.length&&(o.exception={values:[{value:e,stacktrace:{frames:a}}]}),bu(o,{synthetic:!0})}if(bO(e)){const{__sentry_template_string__:a,__sentry_template_values__:i}=e;return o.logentry={message:a,params:i},o}return o.message=e,o}function Vme(t,{isUnhandledRejection:e}){const r=uhe(t),n=e?"promise rejection":"exception";return vH(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:By(t)?`Event \`${qme(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function qme(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function Gme(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];if(r instanceof Error)return r}}function Xme(t,{metadata:e,tunnel:r,dsn:n}){const o={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!r&&!!n&&{dsn:Vy(n)}},a=Jme(t);return Mf(o,[a])}function Jme(t){return[{type:"user_report"},t]}class Yme extends Wfe{constructor(e){const r={parentSpanIsAlwaysRootSpan:!0,...e},n=cr.SENTRY_SDK_SOURCE||Pme();tme(r,"browser",["browser"],n),super(r),r.sendClientReports&&cr.document&&cr.document.addEventListener("visibilitychange",()=>{cr.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,r){return Hme(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return Ume(this._options.stackParser,e,r,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){Pf&&$t.warn("SDK not enabled, will not capture user feedback.");return}const r=Xme(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(r)}_prepareEvent(e,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n)}}const Kme=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Fn=Jt,Zme=1e3;let P5,o2,a2;function Qme(t){const e="dom";Gl(e,t),Xl(e,ege)}function ege(){if(!Fn.document)return;const t=ka.bind(null,"dom"),e=N5(t,!0);Fn.document.addEventListener("click",e,!1),Fn.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{const o=Fn[r],a=o&&o.prototype;!a||!a.hasOwnProperty||!a.hasOwnProperty("addEventListener")||(Co(a,"addEventListener",function(i){return function(s,l,d){if(s==="click"||s=="keypress")try{const h=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=h[s]=h[s]||{refCount:0};if(!u.handler){const f=N5(t);u.handler=f,i.call(this,s,f,d)}u.refCount++}catch{}return i.call(this,s,l,d)}}),Co(a,"removeEventListener",function(i){return function(s,l,d){if(s==="click"||s=="keypress")try{const h=this.__sentry_instrumentation_handlers__||{},u=h[s];u&&(u.refCount--,u.refCount<=0&&(i.call(this,s,u.handler,d),u.handler=void 0,delete h[s]),Object.keys(h).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,l,d)}}))})}function tge(t){if(t.type!==o2)return!1;try{if(!t.target||t.target._sentryId!==a2)return!1}catch{}return!0}function rge(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function N5(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;const n=nge(r);if(rge(r.type,n))return;Nl(r,"_sentryCaptured",!0),n&&!n._sentryId&&Nl(n,"_sentryId",Qo());const o=r.type==="keypress"?"input":r.type;tge(r)||(t({event:r,name:o,global:e}),o2=r.type,a2=n?n._sentryId:void 0),clearTimeout(P5),P5=Fn.setTimeout(()=>{a2=void 0,o2=void 0},Zme)}}function nge(t){try{return t.target}catch{return null}}let Cg;function WH(t){const e="history";Gl(e,t),Xl(e,oge)}function oge(){if(!Nme())return;const t=Fn.onpopstate;Fn.onpopstate=function(...r){const n=Fn.location.href,o=Cg;if(Cg=n,ka("history",{from:o,to:n}),t)try{return t.apply(this,r)}catch{}};function e(r){return function(...n){const o=n.length>2?n[2]:void 0;if(o){const a=Cg,i=String(o);Cg=i,ka("history",{from:a,to:i})}return r.apply(this,n)}}Co(Fn.history,"pushState",e),Co(Fn.history,"replaceState",e)}const tv={};function age(t){const e=tv[t];if(e)return e;let r=Fn[t];if(e2(r))return tv[t]=r.bind(Fn);const n=Fn.document;if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a&&a[t]&&(r=a[t]),n.head.removeChild(o)}catch(o){Kme&&$t.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,o)}return r&&(tv[t]=r.bind(Fn))}function R5(t){tv[t]=void 0}const lh="__sentry_xhr_v3__";function ige(t){const e="xhr";Gl(e,t),Xl(e,sge)}function sge(){if(!Fn.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,r,n){const o=new Error,a=Pi()*1e3,i=Mi(n[0])?n[0].toUpperCase():void 0,s=lge(n[1]);if(!i||!s)return e.apply(r,n);r[lh]={method:i,url:s,request_headers:{}},i==="POST"&&s.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const l=()=>{const d=r[lh];if(d&&r.readyState===4){try{d.status_code=r.status}catch{}const h={endTimestamp:Pi()*1e3,startTimestamp:a,xhr:r,virtualError:o};ka("xhr",h)}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(d,h,u){return l(),d.apply(h,u)}}):r.addEventListener("readystatechange",l),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(d,h,u){const[f,g]=u,y=h[lh];return y&&Mi(f)&&Mi(g)&&(y.request_headers[f.toLowerCase()]=g),d.apply(h,u)}}),e.apply(r,n)}}),t.send=new Proxy(t.send,{apply(e,r,n){const o=r[lh];if(!o)return e.apply(r,n);n[0]!==void 0&&(o.body=n[0]);const a={startTimestamp:Pi()*1e3,xhr:r};return ka("xhr",a),e.apply(r,n)}})}function lge(t){if(Mi(t))return t;try{return t.toString()}catch{}}function cge(t,e=age("fetch")){let r=0,n=0;function o(a){const i=a.body.length;r+=i,n++;const s={body:a.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};if(!e)return R5("fetch"),Mv("No fetch implementation available");try{return e(t.url,s).then(l=>(r-=i,n--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return R5("fetch"),r-=i,n--,Mv(l)}}return eme(t,o)}const dge=30,uge=50;function i2(t,e,r,n){const o={filename:t,function:e===""?Ml:e,in_app:!0};return r!==void 0&&(o.lineno=r),n!==void 0&&(o.colno=n),o}const pge=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,hge=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fge=/\((\S*)(?::(\d+))(?::(\d+))\)/,mge=t=>{const e=pge.exec(t);if(e){const[,n,o,a]=e;return i2(n,Ml,+o,+a)}const r=hge.exec(t);if(r){if(r[2]&&r[2].indexOf("eval")===0){const i=fge.exec(r[2]);i&&(r[2]=i[1],r[3]=i[2],r[4]=i[3])}const[o,a]=HH(r[1]||Ml,r[2]);return i2(a,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},gge=[dge,mge],vge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yge=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,_ge=t=>{const e=vge.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const a=yge.exec(e[3]);a&&(e[1]=e[1]||"eval",e[3]=a[1],e[4]=a[2],e[5]="")}let n=e[3],o=e[1]||Ml;return[o,n]=HH(o,n),i2(n,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},bge=[uge,_ge],wge=[gge,bge],xge=mH(...wge),HH=(t,e)=>{const r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:Ml,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},$g=1024,Sge="Breadcrumbs",Cge=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Sge,setup(r){e.console&&xme(Tge(r)),e.dom&&Qme(Ege(r,e.dom)),e.xhr&&ige(Oge(r)),e.fetch&&Ame(Dge(r)),e.history&&WH(Age(r)),e.sentry&&r.on("beforeSendEvent",kge(r))}}},$ge=Cge;function kge(t){return function(r){Dn()===t&&Ll({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:vs(r)},{event:r})}}function Ege(t,e){return function(n){if(Dn()!==t)return;let o,a,i=typeof e=="object"?e.serializeAttribute:void 0,s=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;s&&s>$g&&(Pf&&$t.warn(`\`dom.maxStringLength\` cannot exceed ${$g}, but a value of ${s} was configured. Sentry will use ${$g} instead.`),s=$g),typeof i=="string"&&(i=[i]);try{const d=n.event,h=Ige(d)?d.target:d;o=_H(h,{keyAttrs:i,maxStringLength:s}),a=che(h)}catch{o=""}if(o.length===0)return;const l={category:`ui.${n.name}`,message:o};a&&(l.data={"ui.component_name":a}),Ll(l,{event:n.event,name:n.name,global:n.global})}}function Tge(t){return function(r){if(Dn()!==t)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:Cme(r.level),message:i5(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${i5(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;Ll(n,{input:r.args,level:r.level})}}function Oge(t){return function(r){if(Dn()!==t)return;const{startTimestamp:n,endTimestamp:o}=r,a=r.xhr[lh];if(!n||!o||!a)return;const{method:i,url:s,status_code:l,body:d}=a,h={method:i,url:s,status_code:l},u={xhr:r.xhr,input:d,startTimestamp:n,endTimestamp:o},f=LH(l);Ll({category:"xhr",data:h,type:"http",level:f},u)}}function Dge(t){return function(r){if(Dn()!==t)return;const{startTimestamp:n,endTimestamp:o}=r;if(o&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){const a=r.fetchData,i={data:r.error,input:r.args,startTimestamp:n,endTimestamp:o};Ll({category:"fetch",data:a,level:"error",type:"http"},i)}else{const a=r.response,i={...r.fetchData,status_code:a&&a.status},s={input:r.args,response:a,startTimestamp:n,endTimestamp:o},l=LH(i.status_code);Ll({category:"fetch",data:i,type:"http",level:l},s)}}}function Age(t){return function(r){if(Dn()!==t)return;let n=r.from,o=r.to;const a=s1(cr.location.href);let i=n?s1(n):void 0;const s=s1(o);(!i||!i.path)&&(i=a),a.protocol===s.protocol&&a.host===s.host&&(o=s.relative),a.protocol===i.protocol&&a.host===i.host&&(n=i.relative),Ll({category:"navigation",data:{from:n,to:o}})}}function Ige(t){return!!t&&!!t.target}const Mge=["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"],Pge="BrowserApiErrors",Nge=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:Pge,setupOnce(){e.setTimeout&&Co(cr,"setTimeout",j5),e.setInterval&&Co(cr,"setInterval",j5),e.requestAnimationFrame&&Co(cr,"requestAnimationFrame",jge),e.XMLHttpRequest&&"XMLHttpRequest"in cr&&Co(XMLHttpRequest.prototype,"send",Lge);const r=e.eventTarget;r&&(Array.isArray(r)?r:Mge).forEach(zge)}}},Rge=Nge;function j5(t){return function(...e){const r=e[0];return e[0]=Su(r,{mechanism:{data:{function:Ns(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function jge(t){return function(e){return t.apply(this,[Su(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Ns(t)},handled:!1,type:"instrument"}})])}}function Lge(t){return function(...e){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in r&&typeof r[o]=="function"&&Co(r,o,function(a){const i={mechanism:{data:{function:o,handler:Ns(a)},handled:!1,type:"instrument"}},s=SO(a);return s&&(i.mechanism.data.handler=Ns(s)),Su(a,i)})}),t.apply(this,e)}}function zge(t){const r=cr[t],n=r&&r.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Co(n,"addEventListener",function(o){return function(a,i,s){try{Fge(i)&&(i.handleEvent=Su(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ns(i),target:t},handled:!1,type:"instrument"}}))}catch{}return o.apply(this,[a,Su(i,{mechanism:{data:{function:"addEventListener",handler:Ns(i),target:t},handled:!1,type:"instrument"}}),s])}}),Co(n,"removeEventListener",function(o){return function(a,i,s){try{const l=i.__sentry_wrapped__;l&&o.call(this,a,l,s)}catch{}return o.call(this,a,i,s)}}))}function Fge(t){return typeof t.handleEvent=="function"}const Bge=()=>({name:"BrowserSession",setupOnce(){if(typeof cr.document>"u"){Pf&&$t.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}x5({ignoreDuration:!0}),S5(),WH(({from:t,to:e})=>{t!==void 0&&t!==e&&(x5({ignoreDuration:!0}),S5())})}}),Wge="GlobalHandlers",Hge=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Wge,setupOnce(){Error.stackTraceLimit=50},setup(r){e.onerror&&(Vge(r),L5("onerror")),e.onunhandledrejection&&(qge(r),L5("onunhandledrejection"))}}},Uge=Hge;function Vge(t){Zpe(e=>{const{stackParser:r,attachStacktrace:n}=UH();if(Dn()!==t||FH())return;const{msg:o,url:a,line:i,column:s,error:l}=e,d=Jge(DO(r,l||o,void 0,n,!1),a,i,s);d.level="error",OH(d,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function qge(t){ehe(e=>{const{stackParser:r,attachStacktrace:n}=UH();if(Dn()!==t||FH())return;const o=Gge(e),a=wO(o)?Xge(o):DO(r,o,void 0,n,!0);a.level="error",OH(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Gge(t){if(wO(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function Xge(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Jge(t,e,r,n){const o=t.exception=t.exception||{},a=o.values=o.values||[],i=a[0]=a[0]||{},s=i.stacktrace=i.stacktrace||{},l=s.frames=s.frames||[],d=n,h=r,u=Mi(e)&&e.length>0?e:lhe();return l.length===0&&l.push({colno:d,filename:u,function:Ml,in_app:!0,lineno:h}),t}function L5(t){Pf&&$t.log(`Global Handler attached: ${t}`)}function UH(){const t=Dn();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Yge=()=>({name:"HttpContext",preprocessEvent(t){if(!cr.navigator&&!cr.location&&!cr.document)return;const e=t.request&&t.request.url||cr.location&&cr.location.href,{referrer:r}=cr.document||{},{userAgent:n}=cr.navigator||{},o={...t.request&&t.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...t.request,...e&&{url:e},headers:o};t.request=a}}),Kge="cause",Zge=5,Qge="LinkedErrors",eve=(t={})=>{const e=t.limit||Zge,r=t.key||Kge;return{name:Qge,preprocessEvent(n,o,a){const i=a.getOptions();bme(TO,i.stackParser,i.maxValueLength,r,e,n,o)}}},tve=eve;function rve(t){const e=[cme(),ame(),Rge(),$ge(),Uge(),tve(),NH(),Yge()];return t.autoSessionTracking!==!1&&e.push(Bge()),e}function nve(t={}){const e={defaultIntegrations:rve(t),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:cr.SENTRY_RELEASE&&cr.SENTRY_RELEASE.id?cr.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return t.defaultIntegrations==null&&delete t.defaultIntegrations,{...e,...t}}function ove(){const t=typeof cr.window<"u"&&cr;if(!t)return!1;const e=t.chrome?"chrome":"browser",r=t[e],n=r&&r.runtime&&r.runtime.id,o=cr.location&&cr.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!n&&cr===cr.top&&a.some(l=>o.startsWith(`${l}//`)),s=typeof t.nw<"u";return!!n&&!i&&!s}function ave(t={}){const e=nve(t);if(!e.skipBrowserExtensionCheck&&ove()){ql(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}Pf&&(zH()||$t.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const r={...e,stackParser:Ype(e.stackParser||xge),integrations:zfe(e),transport:e.transport||cge};return Vfe(Yme,r)}const ive=Ge([w.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),w.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),Nv=Ge(w.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),sve=Ge(w.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),z5=Ge(w.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),lve=Ge(w.jsx("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),cve=Ge(w.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"),dve=Ge([w.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"),w.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"),uve=Ge(w.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"),pve=Ge(w.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"),hve=Ge(w.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"),VH=Ge(w.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"),fve=Ge(w.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"),mve=Ge(w.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"),Nf=Ge(w.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"),Ea=Ge(w.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Ar=Ge(w.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"),AO=Ge(w.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"),gve=Ge(w.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"),vve=Ge(w.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"),qH=Ge(w.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"),yve=Ge(w.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"),Ta=Ge(w.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"),IO=Ge(w.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"),rv=Ge(w.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"),_ve=Ge(w.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"),bve=Ge(w.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"),wve=Ge(w.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"),xve=Ge(w.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"),Sve=Ge(w.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"),Cve=Ge(w.jsx("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"}),"FormatItalic"),GH=Ge(w.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"),$ve=Ge(w.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"),kve=Ge(w.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"),XH=Ge(w.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"),Eve=Ge(w.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),JH=Ge(w.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"),Tve=Ge(w.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),Ove=Ge(w.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"),Dve=Ge(w.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"),Ave=Ge(w.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),Ive=Ge(w.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"),YH=Ge(w.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"),Mve=Ge(w.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.89-2-2-2m0 16H5V7h14zm-5.5-6c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5M12 9c-2.73 0-5.06 1.66-6 4 .94 2.34 3.27 4 6 4s5.06-1.66 6-4c-.94-2.34-3.27-4-6-4m0 6.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"Preview"),Rv=Ge(w.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),MO=Ge(w.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"),KH=Ge(w.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"),s2=Ge(w.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"),Pve=Ge(w.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"),Nve=Ge(w.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),l2=Ge(w.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"),F5=Ge(w.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"),Rve=Ge(w.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"),jve=Ge(w.jsx("path",{d:"M14 17H4v2h10zm6-8H4v2h16zM4 15h16v-2H4zM4 5v2h16V5z"}),"Subject"),ZH=Ge(w.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"),Lve=Ge(w.jsx("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"}),"TextFields"),zve=Ge(w.jsx("path",{d:"M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2"}),"Timeline"),Fve=Ge(w.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),Bve=Ge(w.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),Wve=Ge(w.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"),Hve=Ge(w.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn"),Uve=Ge(w.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"),ch=Ge(w.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"),kg=Ge(w.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 Vve(){console.log(` ██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗ ██║██╔═══██╗██╔══██╗██╔══██╗██╔═══██╗██║ ██╔╝██╔════╝██╔══██╗ ██║██║ ██║██████╔╝██████╔╝██║ ██║█████╔╝ █████╗ ██████╔╝ @@ -651,10 +651,10 @@ Url: ${Pv(t)}`),!0)}function pme(t,e){return t.type||!e||!e.length?!1:gme(t).som .logo-animate-color-outside-blue { animation: logo-color-outside-blue 1.5s; } -`;function QH(t){A.useEffect(()=>{if(!window.document.getElementById("loader-iobroker-component")){const n=window.document.createElement("style");n.setAttribute("id","loader-iobroker-component"),n.innerHTML=qve,window.document.head.appendChild(n)}},[]);const e=t.size||234,r=t.themeName||t.theme||t.themeType||"light";return m.createElement("div",{className:`logo-back logo-background-${r}`,style:{backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:void 0,backgroundSize:"cover"}},window.loadingHideLogo==="true"?null:m.createElement(m.Fragment,null,m.createElement("div",{className:"logo-div",style:{width:e,height:e}},m.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"37%"}}),m.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"57%"}}),m.createElement("div",{className:`logo-border logo-background-${r} logo-animate-wait`,style:{borderWidth:e*.132}}),m.createElement("div",{className:`logo-i logo-animate-color-inside-${r}`}),m.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{top:"18%"}}),m.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{bottom:"18%"}})),m.createElement("div",{className:`logo-animate-grow logo-animate-grow-${r}`,style:{width:e+11,height:e+11}})))}class Ph extends A.Component{constructor(r){super(r);X(this,"onHashChangedBound");this.onHashChangedBound=this.onHashChanged.bind(this)}componentDidMount(){window.addEventListener("hashchange",this.onHashChangedBound)}componentWillUnmount(){window.removeEventListener("hashchange",this.onHashChangedBound)}onHashChanged(){}static getLocation(){let r=window.location.hash;r=r.replace(/^#/,"");const n=r.split("/").map(o=>{try{return o?decodeURIComponent(o):""}catch{return console.error(`Router: Cannot decode ${o}`),o}});return{tab:n[0]||"",dialog:n[1]||"",id:n[2]||"",arg:n[3]||""}}static doNavigate(r,n,o,a){let i="";const s=Ph.getLocation();a!==void 0&&!o&&(o=s.id),o&&!n&&(n=s.dialog),(n&&!r||r===null)&&(r=s.tab),r&&(i=`#${r}`,n&&(i+=`/${n}`,o&&(i+=`/${o}`,a!==void 0&&(i+=`/${a}`)))),window.location.hash!==i&&(window.location.hash=i)}}function Gve(){const t=document.getSelection();if(!(t!=null&&t.rangeCount))return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const B5={"text/plain":"Text","text/html":"Url",default:"Text"},Xve="Copy to clipboard: #{key}, Enter";function Jve(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function Yve(t,e){let r,n,o,a,i=!1;e=e||{};const s=e.debug||!1;try{if(r=Gve(),n=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=t,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",d=>{var h,u,f,g;if(d.stopPropagation(),e!=null&&e.format)if(d.preventDefault(),typeof d.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),(h=window.clipboardData)==null||h.clearData();const y=B5[e.format]||B5.default;(u=window.clipboardData)==null||u.setData(y,t)}else(f=d.clipboardData)==null||f.clearData(),(g=d.clipboardData)==null||g.setData(e.format,t)}),document.body.appendChild(a),n.selectNodeContents(a),o==null||o.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");i=!0}catch(l){s&&console.error("unable to copy using execCommand: ",l),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),i=!0}catch(d){s&&console.error("unable to copy using clipboardData: ",d),s&&console.error("falling back to prompt");const h=Jve("message"in e?e.message||"":Xve);window.prompt(h,t)}}finally{o&&(n&&typeof o.removeRange=="function"?o.removeRange(n):o.removeAllRanges()),a&&document.body.removeChild(a),r&&r()}return i}const tr=class tr{static setLanguage(e){e&&(tr.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const o=n.prefix;delete n.prefix,Object.keys(n).forEach(a=>{const i=a,s={},l=n[i];Object.keys(l).forEach(d=>{d&&l&&(d.startsWith(o)?s[d]=l[d]:s[`${o}${d}`]=l[d])}),e[i]=s})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const o=n;tr.translations[o]=tr.translations[o]||{};const a=tr.translations[o];Object.assign(a,e[o])}):Object.keys(e).forEach(n=>{const o=e[n];Object.keys(o).forEach(a=>{const i=a,s=tr.translations[i];s?s[n]?s[n]!==o[i]&&console.warn(`Translation for word "${n}" in "${i}" was ignored: existing = "${s[n]}", new = ${o[i]}`):s[n]=o[i]:console.warn(`Used unknown language: ${i}`)})});else{tr.translations[r]||console.warn(`Used unknown language: ${r}`),tr.translations[r]=tr.translations[r]||{};const n=tr.translations[r];n&&Object.keys(e).forEach(o=>{n[o]?n[o]!==e[o]&&console.warn(`Translation for word "${o}" in "${r}" was ignored: existing = "${n[o]}", new = ${e[o]}`):n[o]=e[o]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(tr.translations=e)}static getLanguage(){return tr.lang}static t(e,...r){const n=tr.translations[tr.lang];if(n){const o=n[e];if(o)e=o;else if(tr.unknownTranslations.includes(e)||(tr.unknownTranslations.push(e),!tr._disableWarning&&console.log(`Translate: ${e}`)),tr.lang!=="en"&&tr.translations.en){const a=tr.translations.en[e];a&&(e=a)}}for(const o of r)e=e.replace("%s",o);return e}static i18nShow(e){const r={};e?typeof e=="string"?(tr.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):typeof e=="object"&&(tr.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(tr.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){tr._disableWarning=!!e}};X(tr,"translations",{}),X(tr,"unknownTranslations",[]),X(tr,"lang",window.sysLang||"en"),X(tr,"_disableWarning",!1);let P=tr;window.i18nShow=P.i18nShow;window.i18nDisableWarning=P.disableWarning;const Wa="material",Kve=["Su","Mo","Tu","We","Th","Fr","Sa"],Zve=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],c1={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"},W5={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"},sr=class sr{static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const o=Math.floor(e/60).toString().padStart(2,"0");e%=60;const a=Math.floor(e).toString().padStart(2,"0");let i="";return r&&(i+=`${r} ${P.t("ra_daysShortText")} `),i+=`${n}:${o}:${a}`,i}static getObjectName(e,r,n,o,a){var l;const i=e[r];let s;if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},o.language||(o.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n!=null&&n.name){const d=n.name;typeof d=="object"?s=o.language&&d[o.language]||d.en:s=d}else if(a&&((l=i==null?void 0:i.common)!=null&&l.desc)){const d=i.common.desc;typeof d=="object"?s=o.language&&d[o.language]||d.en||d.de||d.ru||"":s=d,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}else if(!a&&(i!=null&&i.common)){const d=i.common.name||i.common.desc;d&&typeof d=="object"?s=o.language&&d[o.language]||d.en||d.de||d.ru||"":s=d,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}else{const d=r.lastIndexOf(".");s=r.substring(d+1).replace(/[_.]/g," "),s=sr.CapitalWords(s)}return(s==null?void 0:s.trim())||""}static getObjectNameFromObj(e,r,n,o,a){var l,d;const i=e;let s=e&&e._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r!=null&&r.name){const h=r.name;typeof h=="object"?s=n.language&&h[n.language]||h.en:s=h}else if(o&&((l=i==null?void 0:i.common)!=null&&l.desc)){const h=i.common.desc;typeof h=="object"?s=n.language&&h[n.language]||h.en:s=h,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}else if(!o&&((d=i==null?void 0:i.common)!=null&&d.name)){let h=i.common.name;!h&&i.common.desc&&(h=i.common.desc),typeof h=="object"?s=n.language&&h[n.language]||h.en:s=h,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}return a?s:s.trim()}static getSettingsOrder(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o!=null&&o.custom){a=o.custom[Wa];const i=n.user||"admin";if(a&&a[i]){if(r){if(a[i].subOrder&&a[i].subOrder[r])return JSON.parse(JSON.stringify(a[i].subOrder[r]))}else if(a[i].order)return JSON.parse(JSON.stringify(a[i].order))}}return null}static getSettingsCustomURLs(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o!=null&&o.custom){a=o.custom[Wa];const i=n.user||"admin";if(a&&a[i]){if(r){if(a[i].subURLs&&a[i].subURLs[r])return JSON.parse(JSON.stringify(a[i].subURLs[r]))}else if(a[i].URLs)return JSON.parse(JSON.stringify(a[i].URLs))}}return null}static reorder(e,r,n){const o=Array.from(e),[a]=o.splice(r,1);return o.splice(n,0,a),o}static getSettings(e,r,n){let o;const a=(e==null?void 0:e._id)||(r==null?void 0:r.id);let i;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?i=e.common:i=e,i!=null&&i.custom?(o=i.custom,o=o[Wa]&&o[Wa][r.user||"admin"]?JSON.parse(JSON.stringify(o[Wa][r.user||"admin"])):{enabled:!0}):o={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=n===void 0?!0:n),r&&(!o.name&&r.name&&(o.name=r.name),!o.icon&&r.icon&&(o.icon=r.icon),!o.color&&r.color&&(o.color=r.color)),i&&(!o.color&&i.color&&(o.color=i.color),!o.icon&&i.icon&&(o.icon=i.icon),!o.name&&i.name&&(o.name=i.name)),typeof o.name=="object"&&(o.name=r.language&&o.name[r.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&a){const s=a.lastIndexOf(".");o.name=a.substring(s+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=sr.CapitalWords(o.name)}return o}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[Wa]=e.common.custom[Wa]||{},e.common.custom[Wa][n.user||"admin"]=r;const o=e.common.custom[Wa][n.user||"admin"];return o.useCommon&&(o.color!==void 0&&(e.common.color=o.color,delete o.color),o.icon!==void 0&&(e.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:o.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=o.name),delete o.name)),!0}return!1}static getIcon(e,r){return e!=null&&e.icon?e.icon.length<=2?m.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?m.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):m.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){var n;if(typeof e=="object"&&(r=e,e=r==null?void 0:r._id),(n=r==null?void 0:r.common)!=null&&n.icon){let o=r.common.icon;if(typeof o=="string"&&o.length<=2||o.startsWith("data:image"))return o;const a=e.split(".");return a[0]==="system"?o=`adapter/${a[2]}${o.startsWith("/")?"":"/"}${o}`:o=`adapter/${a[0]}${o.startsWith("/")?"":"/"}${o}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?o=`../../${o}`:window.location.pathname.match(/material\/[.\d]+/)?o=`../../${o}`:window.location.pathname.match(/material\//)&&(o=`../${o}`),o}return null}static splitCamelCase(e){return e?sr.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,o,a;const i=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(i&&i.length===4)n=parseInt(i[1],10),o=parseInt(i[2],10),a=parseInt(i[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),o=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16)}return n*.299+o*.587+a*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),o=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${o}`:`${n}:${o}`}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(e){e&&(sr.dateFormat=e.toUpperCase().split(/[.-/]/),sr.dateFormat.splice(sr.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],a=o.find(i=>i>31);if(a!==void 0){o.splice(o.indexOf(a),1);const i=o.find(s=>s>12);i?(o.splice(o.indexOf(i),1),e=new Date(a,o[0]-1,i)):sr.dateFormat[0][0]==="M"&&sr.dateFormat[1][0]==="D"?(e=new Date(a,o[0]-1,o[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[1]-1,o[0]))):sr.dateFormat[0][0]==="D"&&sr.dateFormat[1][0]==="M"?(e=new Date(a,o[1]-1,o[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[0]-1,o[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=P.t(`ra_dow_${Kve[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${P.t(`ra_month_${Zve[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let o=1;do{const a=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),a&&n.push(m.createElement("span",{key:`a${o++}`},a)),r[0].startsWith(""))n.push(m.createElement("b",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(m.createElement("i",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(m.createElement("span",{key:`a${o++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,o){var i,s;if(!r){if(!o)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const l=e;return(i=l==null?void 0:l.common)!=null&&i.custom&&l.common.custom[n]?l.common.custom[n].smartName:void 0}if(!o)return e[r].common.smartName;const a=e[r];return(s=a==null?void 0:a.common)!=null&&s.custom&&a.common.custom[n]&&a.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){var a,i;if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const o=(i=(a=e==null?void 0:e.common)==null?void 0:a.custom)==null?void 0:i[r];return o?o.smartName:void 0}static enableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName={}):e.common.smartName={}}static removeSmartName(e,r,n){n?e.common&&e.common.custom&&e.common.custom[r]&&(e.common.custom[r]=null):e.common.smartName=null}static updateSmartName(e,r,n,o,a,i){const s=P.getLanguage();if(typeof e.common.smartName=="string"){const l=e.common.smartName;e.common.smartName={},e.common.smartName[s]=l}if(e.native&&e.native.byON){delete e.native.byON;let l=e.common.smartName;l&&typeof l!="object"&&(l={en:l,[s]:l}),e.common.smartName=l}if(o!==void 0&&(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},o?e.common.custom[a].smartName.smartType=o:delete e.common.custom[a].smartName.smartType):(e.common.smartName=e.common.smartName||{},o?e.common.smartName.smartType=o:delete e.common.smartName.smartType)),n!==void 0&&(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},e.common.custom[a].smartName.byON=n):(e.common.smartName=e.common.smartName||{},e.common.smartName.byON=n)),r!==void 0){let l;if(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},l=e.common.custom[a].smartName):(e.common.smartName=e.common.smartName||{},l=e.common.smartName),l[s]=r,l&&(!l[s]||l[s]===e.common.name&&(!e.common.role||e.common.role.includes("button")))){delete l[s];let d=!0;for(const h in l)if(Object.prototype.hasOwnProperty.call(l,h)){d=!1;break}if(d)if(i&&e.common.custom&&e.common.custom[a])e.common.custom[a].smartName.byON===void 0?delete e.common.custom[a]:(delete e.common.custom[a].en,delete e.common.custom[a].de,delete e.common.custom[a].ru,delete e.common.custom[a].nl,delete e.common.custom[a].pl,delete e.common.custom[a].it,delete e.common.custom[a].fr,delete e.common.custom[a].pt,delete e.common.custom[a].es,delete e.common.custom[a].uk,delete e.common.custom[a]["zh-cn"]);else if(e.common.smartName&&e.common.smartName.byON!==void 0){const h=e.common.smartName;delete h.en,delete h.de,delete h.ru,delete h.nl,delete h.pl,delete h.it,delete h.fr,delete h.pt,delete h.es,delete h.uk,delete h["zh-cn"]}else e.common.smartName=null}}}static disableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName=!1):e.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),Yve(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const s=(255-o).toString(16),l=(255-a).toString(16),d=(255-i).toString(16);return`#${s.padStart(2,"0")}${l.padStart(2,"0")}${d.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[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 r=e[0]/255,n=e[1]/255,o=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let a=(r*.4124+n*.3576+o*.1805)/.95047,i=r*.2126+n*.7152+o*.0722,s=(r*.0193+n*.1192+o*.9505)/1.08883;return a=a>.008856?a**.33333333:7.787*a+.137931,i=i>.008856?i**.33333333:7.787*i+.137931,s=s>.008856?s**.33333333:7.787*s+.137931,[116*i-16,500*(a-i),200*(i-s)]}static colorDistance(e,r){const n=sr.color2rgb(e),o=sr.color2rgb(r);if(!n||!o)return 0;const a=sr.rgb2lab(n),i=sr.rgb2lab(o),s=a[0]-i[0],l=a[1]-i[1],d=a[2]-i[2],h=Math.sqrt(a[1]*a[1]+a[2]*a[2]),u=Math.sqrt(i[1]*i[1]+i[2]*i[2]),f=h-u;let g=l*l+d*d-f*f;g=g<0?0:Math.sqrt(g);const y=1+.045*h,b=1+.015*h,x=s,S=f/y,T=g/b,E=x*x+S*S+T*T;return E<0?0:E}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let o=0;o{if(n=n.trim(),n){const o=n.split("="),a=decodeURIComponent(o[0]).trim();if(o.length>1){const i=decodeURIComponent(o[1]);if(i==="true")r[a]=!0;else if(i==="false")r[a]=!1;else{const s=parseFloat(i);s.toString()===i?r[a]=s:r[a]=i}}else r[a]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const o=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${o}/${a}/${e.getFullYear()}`:n=`${e.getFullYear()}-${o}-${a}`,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);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),o=Math.floor(e%3600/60),a=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:n?`${n}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){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/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){var a;const r=sr.MDextractHeader(e),n=r.header;let o=r.body;if(!n.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const i=o.replace(/\r/g,"").split(` +`;function QH(t){A.useEffect(()=>{if(!window.document.getElementById("loader-iobroker-component")){const n=window.document.createElement("style");n.setAttribute("id","loader-iobroker-component"),n.innerHTML=qve,window.document.head.appendChild(n)}},[]);const e=t.size||234,r=t.themeName||t.theme||t.themeType||"light";return m.createElement("div",{className:`logo-back logo-background-${r}`,style:{backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:void 0,backgroundSize:"cover"}},window.loadingHideLogo==="true"?null:m.createElement(m.Fragment,null,m.createElement("div",{className:"logo-div",style:{width:e,height:e}},m.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"37%"}}),m.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"57%"}}),m.createElement("div",{className:`logo-border logo-background-${r} logo-animate-wait`,style:{borderWidth:e*.132}}),m.createElement("div",{className:`logo-i logo-animate-color-inside-${r}`}),m.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{top:"18%"}}),m.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{bottom:"18%"}})),m.createElement("div",{className:`logo-animate-grow logo-animate-grow-${r}`,style:{width:e+11,height:e+11}})))}class Ph extends A.Component{constructor(r){super(r);X(this,"onHashChangedBound");this.onHashChangedBound=this.onHashChanged.bind(this)}componentDidMount(){window.addEventListener("hashchange",this.onHashChangedBound)}componentWillUnmount(){window.removeEventListener("hashchange",this.onHashChangedBound)}onHashChanged(){}static getLocation(){let r=window.location.hash;r=r.replace(/^#/,"");const n=r.split("/").map(o=>{try{return o?decodeURIComponent(o):""}catch{return console.error(`Router: Cannot decode ${o}`),o}});return{tab:n[0]||"",dialog:n[1]||"",id:n[2]||"",arg:n[3]||""}}static doNavigate(r,n,o,a){let i="";const s=Ph.getLocation();a!==void 0&&!o&&(o=s.id),o&&!n&&(n=s.dialog),(n&&!r||r===null)&&(r=s.tab),r&&(i=`#${r}`,n&&(i+=`/${n}`,o&&(i+=`/${o}`,a!==void 0&&(i+=`/${a}`)))),window.location.hash!==i&&(window.location.hash=i)}}function Gve(){const t=document.getSelection();if(!(t!=null&&t.rangeCount))return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const B5={"text/plain":"Text","text/html":"Url",default:"Text"},Xve="Copy to clipboard: #{key}, Enter";function Jve(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function Yve(t,e){let r,n,o,a,i=!1;e=e||{};const s=e.debug||!1;try{if(r=Gve(),n=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=t,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",d=>{var h,u,f,g;if(d.stopPropagation(),e!=null&&e.format)if(d.preventDefault(),typeof d.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),(h=window.clipboardData)==null||h.clearData();const y=B5[e.format]||B5.default;(u=window.clipboardData)==null||u.setData(y,t)}else(f=d.clipboardData)==null||f.clearData(),(g=d.clipboardData)==null||g.setData(e.format,t)}),document.body.appendChild(a),n.selectNodeContents(a),o==null||o.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");i=!0}catch(l){s&&console.error("unable to copy using execCommand: ",l),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),i=!0}catch(d){s&&console.error("unable to copy using clipboardData: ",d),s&&console.error("falling back to prompt");const h=Jve("message"in e?e.message||"":Xve);window.prompt(h,t)}}finally{o&&(n&&typeof o.removeRange=="function"?o.removeRange(n):o.removeAllRanges()),a&&document.body.removeChild(a),r&&r()}return i}const tr=class tr{static setLanguage(e){e&&(tr.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const o=n.prefix;delete n.prefix,Object.keys(n).forEach(a=>{const i=a,s={},l=n[i];Object.keys(l).forEach(d=>{d&&l&&(d.startsWith(o)?s[d]=l[d]:s[`${o}${d}`]=l[d])}),e[i]=s})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const o=n;tr.translations[o]=tr.translations[o]||{};const a=tr.translations[o];Object.assign(a,e[o])}):Object.keys(e).forEach(n=>{const o=e[n];Object.keys(o).forEach(a=>{const i=a,s=tr.translations[i];s?s[n]?s[n]!==o[i]&&console.warn(`Translation for word "${n}" in "${i}" was ignored: existing = "${s[n]}", new = ${o[i]}`):s[n]=o[i]:console.warn(`Used unknown language: ${i}`)})});else{tr.translations[r]||console.warn(`Used unknown language: ${r}`),tr.translations[r]=tr.translations[r]||{};const n=tr.translations[r];n&&Object.keys(e).forEach(o=>{n[o]?n[o]!==e[o]&&console.warn(`Translation for word "${o}" in "${r}" was ignored: existing = "${n[o]}", new = ${e[o]}`):n[o]=e[o]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(tr.translations=e)}static getLanguage(){return tr.lang}static t(e,...r){const n=tr.translations[tr.lang];if(n){const o=n[e];if(o)e=o;else if(tr.unknownTranslations.includes(e)||(tr.unknownTranslations.push(e),!tr._disableWarning&&console.log(`Translate: ${e}`)),tr.lang!=="en"&&tr.translations.en){const a=tr.translations.en[e];a&&(e=a)}}for(const o of r)e=e.replace("%s",o);return e}static i18nShow(e){const r={};e?typeof e=="string"?(tr.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):typeof e=="object"&&(tr.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(tr.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){tr._disableWarning=!!e}};X(tr,"translations",{}),X(tr,"unknownTranslations",[]),X(tr,"lang",window.sysLang||"en"),X(tr,"_disableWarning",!1);let P=tr;window.i18nShow=P.i18nShow;window.i18nDisableWarning=P.disableWarning;const Wa="material",Kve=["Su","Mo","Tu","We","Th","Fr","Sa"],Zve=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],c1={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"},W5={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"},sr=class sr{static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const o=Math.floor(e/60).toString().padStart(2,"0");e%=60;const a=Math.floor(e).toString().padStart(2,"0");let i="";return r&&(i+=`${r} ${P.t("ra_daysShortText")} `),i+=`${n}:${o}:${a}`,i}static getObjectName(e,r,n,o,a){var l;const i=e[r];let s;if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},o.language||(o.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n!=null&&n.name){const d=n.name;typeof d=="object"?s=o.language&&d[o.language]||d.en:s=d}else if(a&&((l=i==null?void 0:i.common)!=null&&l.desc)){const d=i.common.desc;typeof d=="object"?s=o.language&&d[o.language]||d.en||d.de||d.ru||"":s=d,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}else if(!a&&(i!=null&&i.common)){const d=i.common.name||i.common.desc;d&&typeof d=="object"?s=o.language&&d[o.language]||d.en||d.de||d.ru||"":s=d,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}else{const d=r.lastIndexOf(".");s=r.substring(d+1).replace(/[_.]/g," "),s=sr.CapitalWords(s)}return(s==null?void 0:s.trim())||""}static getObjectNameFromObj(e,r,n,o,a){var l,d;const i=e;let s=e&&e._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r!=null&&r.name){const h=r.name;typeof h=="object"?s=n.language&&h[n.language]||h.en:s=h}else if(o&&((l=i==null?void 0:i.common)!=null&&l.desc)){const h=i.common.desc;typeof h=="object"?s=n.language&&h[n.language]||h.en:s=h,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}else if(!o&&((d=i==null?void 0:i.common)!=null&&d.name)){let h=i.common.name;!h&&i.common.desc&&(h=i.common.desc),typeof h=="object"?s=n.language&&h[n.language]||h.en:s=h,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}return a?s:s.trim()}static getSettingsOrder(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o!=null&&o.custom){a=o.custom[Wa];const i=n.user||"admin";if(a&&a[i]){if(r){if(a[i].subOrder&&a[i].subOrder[r])return JSON.parse(JSON.stringify(a[i].subOrder[r]))}else if(a[i].order)return JSON.parse(JSON.stringify(a[i].order))}}return null}static getSettingsCustomURLs(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o!=null&&o.custom){a=o.custom[Wa];const i=n.user||"admin";if(a&&a[i]){if(r){if(a[i].subURLs&&a[i].subURLs[r])return JSON.parse(JSON.stringify(a[i].subURLs[r]))}else if(a[i].URLs)return JSON.parse(JSON.stringify(a[i].URLs))}}return null}static reorder(e,r,n){const o=Array.from(e),[a]=o.splice(r,1);return o.splice(n,0,a),o}static getSettings(e,r,n){let o;const a=(e==null?void 0:e._id)||(r==null?void 0:r.id);let i;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?i=e.common:i=e,i!=null&&i.custom?(o=i.custom,o=o[Wa]&&o[Wa][r.user||"admin"]?JSON.parse(JSON.stringify(o[Wa][r.user||"admin"])):{enabled:!0}):o={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=n===void 0?!0:n),r&&(!o.name&&r.name&&(o.name=r.name),!o.icon&&r.icon&&(o.icon=r.icon),!o.color&&r.color&&(o.color=r.color)),i&&(!o.color&&i.color&&(o.color=i.color),!o.icon&&i.icon&&(o.icon=i.icon),!o.name&&i.name&&(o.name=i.name)),typeof o.name=="object"&&(o.name=r.language&&o.name[r.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&a){const s=a.lastIndexOf(".");o.name=a.substring(s+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=sr.CapitalWords(o.name)}return o}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[Wa]=e.common.custom[Wa]||{},e.common.custom[Wa][n.user||"admin"]=r;const o=e.common.custom[Wa][n.user||"admin"];return o.useCommon&&(o.color!==void 0&&(e.common.color=o.color,delete o.color),o.icon!==void 0&&(e.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:o.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=o.name),delete o.name)),!0}return!1}static getIcon(e,r){return e!=null&&e.icon?e.icon.length<=2?m.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?m.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):m.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){var n;if(typeof e=="object"&&(r=e,e=r==null?void 0:r._id),(n=r==null?void 0:r.common)!=null&&n.icon){let o=r.common.icon;if(typeof o=="string"&&o.length<=2||o.startsWith("data:image"))return o;const a=e.split(".");return a[0]==="system"?o=`adapter/${a[2]}${o.startsWith("/")?"":"/"}${o}`:o=`adapter/${a[0]}${o.startsWith("/")?"":"/"}${o}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?o=`../../${o}`:window.location.pathname.match(/material\/[.\d]+/)?o=`../../${o}`:window.location.pathname.match(/material\//)&&(o=`../${o}`),o}return null}static splitCamelCase(e){return e?sr.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,o,a;const i=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(i&&i.length===4)n=parseInt(i[1],10),o=parseInt(i[2],10),a=parseInt(i[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),o=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16)}return n*.299+o*.587+a*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),o=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${o}`:`${n}:${o}`}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(e){e&&(sr.dateFormat=e.toUpperCase().split(/[.-/]/),sr.dateFormat.splice(sr.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],a=o.find(i=>i>31);if(a!==void 0){o.splice(o.indexOf(a),1);const i=o.find(s=>s>12);i?(o.splice(o.indexOf(i),1),e=new Date(a,o[0]-1,i)):sr.dateFormat[0][0]==="M"&&sr.dateFormat[1][0]==="D"?(e=new Date(a,o[0]-1,o[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[1]-1,o[0]))):sr.dateFormat[0][0]==="D"&&sr.dateFormat[1][0]==="M"?(e=new Date(a,o[1]-1,o[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[0]-1,o[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=P.t(`ra_dow_${Kve[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${P.t(`ra_month_${Zve[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let o=1;do{const a=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),a&&n.push(m.createElement("span",{key:`a${o++}`},a)),r[0].startsWith(""))n.push(m.createElement("b",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(m.createElement("i",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(m.createElement("span",{key:`a${o++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,o){var i,s;if(!r){if(!o)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const l=e;return(i=l==null?void 0:l.common)!=null&&i.custom&&l.common.custom[n]?l.common.custom[n].smartName:void 0}if(!o)return e[r].common.smartName;const a=e[r];return(s=a==null?void 0:a.common)!=null&&s.custom&&a.common.custom[n]&&a.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){var a,i;if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const o=(i=(a=e==null?void 0:e.common)==null?void 0:a.custom)==null?void 0:i[r];return o?o.smartName:void 0}static enableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName={}):e.common.smartName={}}static removeSmartName(e,r,n){n?e.common&&e.common.custom&&e.common.custom[r]&&(e.common.custom[r]=null):e.common.smartName=null}static updateSmartName(e,r,n,o,a,i){const s=P.getLanguage();if(typeof e.common.smartName=="string"){const l=e.common.smartName;e.common.smartName={},e.common.smartName[s]=l}if(e.native&&e.native.byON){delete e.native.byON;let l=e.common.smartName;l&&typeof l!="object"&&(l={en:l,[s]:l}),e.common.smartName=l}if(o!==void 0&&(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},o?e.common.custom[a].smartName.smartType=o:delete e.common.custom[a].smartName.smartType):(e.common.smartName=e.common.smartName||{},o?e.common.smartName.smartType=o:delete e.common.smartName.smartType)),n!==void 0&&(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},e.common.custom[a].smartName.byON=n):(e.common.smartName=e.common.smartName||{},e.common.smartName.byON=n)),r!==void 0){let l;if(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},l=e.common.custom[a].smartName):(e.common.smartName=e.common.smartName||{},l=e.common.smartName),l[s]=r,l&&(!l[s]||l[s]===e.common.name&&(!e.common.role||e.common.role.includes("button")))){delete l[s];let d=!0;for(const h in l)if(Object.prototype.hasOwnProperty.call(l,h)){d=!1;break}if(d)if(i&&e.common.custom&&e.common.custom[a])e.common.custom[a].smartName.byON===void 0?delete e.common.custom[a]:(delete e.common.custom[a].en,delete e.common.custom[a].de,delete e.common.custom[a].ru,delete e.common.custom[a].nl,delete e.common.custom[a].pl,delete e.common.custom[a].it,delete e.common.custom[a].fr,delete e.common.custom[a].pt,delete e.common.custom[a].es,delete e.common.custom[a].uk,delete e.common.custom[a]["zh-cn"]);else if(e.common.smartName&&e.common.smartName.byON!==void 0){const h=e.common.smartName;delete h.en,delete h.de,delete h.ru,delete h.nl,delete h.pl,delete h.it,delete h.fr,delete h.pt,delete h.es,delete h.uk,delete h["zh-cn"]}else e.common.smartName=null}}}static disableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName=!1):e.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),Yve(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const s=(255-o).toString(16),l=(255-a).toString(16),d=(255-i).toString(16);return`#${s.padStart(2,"0")}${l.padStart(2,"0")}${d.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[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 r=e[0]/255,n=e[1]/255,o=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let a=(r*.4124+n*.3576+o*.1805)/.95047,i=r*.2126+n*.7152+o*.0722,s=(r*.0193+n*.1192+o*.9505)/1.08883;return a=a>.008856?a**.33333333:7.787*a+.137931,i=i>.008856?i**.33333333:7.787*i+.137931,s=s>.008856?s**.33333333:7.787*s+.137931,[116*i-16,500*(a-i),200*(i-s)]}static colorDistance(e,r){const n=sr.color2rgb(e),o=sr.color2rgb(r);if(!n||!o)return 0;const a=sr.rgb2lab(n),i=sr.rgb2lab(o),s=a[0]-i[0],l=a[1]-i[1],d=a[2]-i[2],h=Math.sqrt(a[1]*a[1]+a[2]*a[2]),u=Math.sqrt(i[1]*i[1]+i[2]*i[2]),f=h-u;let g=l*l+d*d-f*f;g=g<0?0:Math.sqrt(g);const y=1+.045*h,b=1+.015*h,x=s,S=f/y,T=g/b,E=x*x+S*S+T*T;return E<0?0:E}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let o=0;o{if(n=n.trim(),n){const o=n.split("="),a=decodeURIComponent(o[0]).trim();if(o.length>1){const i=decodeURIComponent(o[1]);if(i==="true")r[a]=!0;else if(i==="false")r[a]=!1;else{const s=parseFloat(i);s.toString()===i?r[a]=s:r[a]=i}}else r[a]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const o=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${o}/${a}/${e.getFullYear()}`:n=`${e.getFullYear()}-${o}-${a}`,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);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),o=Math.floor(e%3600/60),a=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:n?`${n}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){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/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){var a;const r=sr.MDextractHeader(e),n=r.header;let o=r.body;if(!n.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const i=o.replace(/\r/g,"").split(` `);for(let s=0;s{if(!i.trim())return;const s=i.indexOf(":");if(s!==-1){const l=i.substring(0,s).trim();let d=i.substring(s+1).trim();d=d.replace(/^['"]|['"]$/g,""),d==="true"?r[l]=!0:d==="false"?r[l]=!1:parseFloat(d).toString()===r[l]?r[l]=parseFloat(d):r[l]=d}else r[i.trim()]=!0}),e=e.substring(n+7))}return{header:r,body:e}}static MDremoveDocsify(e){const r=e.match(/{docsify-[^}]*}/g);return r&&r.forEach(n=>e=e.replace(n,"")),e}static generateFile(e,r){const n=document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){const r=e&4294901760,n=c1[e];let o;return n?o=[n]:e&1?o=[c1[1],`0x${(e&65534).toString(16)}`]:e&2?o=[c1[2],`0x${(e&65533).toString(16)}`]:o=[`0x${e.toString(16)}`],r&&o.push(`0x${(r>>16).toString(16).toUpperCase()}`),o}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){var o;const r=(o=e==null?void 0:e.common)==null?void 0:o.states;let n;if(r)if(typeof r=="string"&&r[0]==="{")try{n=JSON.parse(r)}catch{console.error(`Cannot parse states: ${r}`),n=null}else if(typeof r=="string"){const a=r.split(";");n={};for(let i=0;in[i]=a):(e==null?void 0:e.common.type)==="string"?r.forEach(a=>n[a]=a):(e==null?void 0:e.common.type)==="boolean"&&(n.false=r[0],n.true=r[1])):typeof r=="object"&&(n=r);return n||null}static async getSvg(e){const n=await(await fetch(e)).blob();return new Promise(o=>{const a=new FileReader;a.onload=()=>{var i;return o(((i=a.result)==null?void 0:i.toString())||"")},a.readAsDataURL(n)})}static detectMimeType(e){const r=Object.keys(W5).find(n=>e.startsWith(n));return r?W5[r]:null}static isStableRepository(e){return!!(typeof e=="string"&&e.toLowerCase().startsWith("stable")||e&&typeof e!="string"&&e.find(r=>r.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,...r){const n={};for(let o=0;o{if(typeof r[o][a]=="function")n[a]=r[o][a](e);else if(typeof r[o][a]=="object"){const i=r[o][a];n[a]={},Object.keys(i).forEach(s=>{typeof i[s]=="function"?n[a][s]=i(e):(i[s]||i[s]===0)&&(n[a][s]=i[s])})}else(r[o][a]||r[o][a]===0)&&(n[a]=r[o][a])});return n}};X(sr,"namespace",Wa),X(sr,"INSTANCES","instances"),X(sr,"dateFormat",["DD","MM"]),X(sr,"FORBIDDEN_CHARS",/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu);let ue=sr;const d1={buttonIcon:{marginRight:8}};class Qve extends m.Component{constructor(r){super(r);X(this,"isIFrame");const n=r.newReact===void 0?!0:r.newReact;if(r.isIFrame!==void 0)this.isIFrame=r.isIFrame;else try{this.isIFrame=!n&&window.self!==window.top}catch{this.isIFrame=!n}}render(){const r=this.props.noTextOnButtons,n={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},o={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(o.minHeight=48),this.props.error&&(n.border="1px solid red"),m.createElement(af,{style:o},m.createElement(ro,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:n},m.createElement(s2,{style:r?void 0:d1.buttonIcon}),!r&&P.t("ra_Save")),m.createElement(ro,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...n,marginLeft:10}},m.createElement(s2,{style:r?void 0:d1.buttonIcon}),r?"+":P.t("ra_Save and close"),r&&m.createElement(Ar,null)),m.createElement("div",{style:{flexGrow:1}}),m.createElement(ro,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:n},m.createElement(Ar,{style:r?void 0:d1.buttonIcon}),!r&&P.t("ra_Close")))}}const H5={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class PO extends A.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let r=!1;this.props.suppressQuestionMinutes&&(r=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,r?Date.now()>r&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),r=!1):r=!1),this.state={suppress:r}}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):m.createElement(or,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(e,r)=>{r!=="backdropClick"&&r!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},m.createElement(_r,{id:"ar_confirmation_dialog_title"},this.props.title||P.t("ra_Are you sure?")),m.createElement(Wr,null,m.createElement(Ds,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?m.createElement("br",null):null,this.props.suppressQuestionMinutes?m.createElement(St,{sx:{"& .FormControlLabel-label":H5.suppress,"&.FormControlLabel-root":H5.suppressRoot},control:m.createElement(yr,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||P.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),m.createElement(pr,null,m.createElement(tt,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:m.createElement(Ea,null)},this.props.ok||P.t("ra_Ok")),m.createElement(tt,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:m.createElement(Ar,null)},this.props.cancel||P.t("ra_Cancel"))))}}class eU extends A.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return m.createElement(or,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},m.createElement(_r,{id:"ar_alert_dialog_title"},this.props.title||P.t("ra_Error")),m.createElement(Wr,null,m.createElement(Ds,{id:"ar_alert_dialog_description"},this.props.text||P.t("ra_Unknown error!"))),m.createElement(pr,null,m.createElement(tt,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:m.createElement(Ea,null)},P.t("ra_Ok"))))}}const eye="Append",tye="Cancel",rye="Categories",nye="Checked",oye="Delete",aye="Close",iye="Commercial",sye="Configure",lye="Connected",cye="Copied",dye="Create",uye="Crop",pye="Delete",hye="Delete",fye="Discard",mye="Disconnected",gye="Error",vye="Filter",yye="Friday",_ye="Latitude",bye="Expires in",wye="Longitude",xye="Message",Sye="Monday",Cye="Name",$ye="Objects",kye="Ok",Eye="Product",Tye="Repeat",Oye="Replace",Dye="Root",Aye="Saturday",Iye="Save",Mye="Selected",Pye="States",Nye="Sunday",Rye="Thursday",jye="Timestamp",Lye="Tuesday",zye="Update",Fye="Valid till",Bye="Value",Wye="Version",Hye="Wednesday",Uye="Width",Vye="Yes",qye="different",Gye="Everyone can read object",Xye="Everyone can read state",Jye="Everyone can write object",Yye="Everyone can write state",Kye="Group can read object",Zye="Group can read state",Qye="Group can write object",e_e="Group can write state",t_e="Owner can read object",r_e="Owner can read state",n_e="Owner can write object",o_e="Owner can write state",a_e="Buttons",i_e="Changed from",s_e="close",l_e="Create boolean state",c_e="Create channel",d_e="Create device",u_e="Create number state",p_e="Create state",h_e="Create string state",f_e="days",m_e="Fr",g_e="Mo",v_e="Sa",y_e="Su",__e="Th",b_e="Tu",w_e="We",x_e="Expert mode",S_e="All files",C_e="Audio",$_e="Code/JSON",k_e="Images",E_e="Text",T_e="Video",O_e="Settings",D_e="without",A_e="Function",I_e="ID",M_e="Name",P_e="Role",N_e="Room",R_e="Type",j_e="Invalid settings",L_e="Last change",z_e="locally",F_e="Apr",B_e="Aug",W_e="Dec",H_e="Feb",U_e="Jan",V_e="Jul",q_e="Jun",G_e="Mai",X_e="Mar",J_e="Nov",Y_e="Oct",K_e="Sep",Z_e="Apr",Q_e="Aug",e0e="Dec",t0e="Feb",r0e="Jan",n0e="Jul",o0e="Jun",a0e="Mai",i0e="Mar",s0e="Nov",l0e="Oct",c0e="Sep",d0e="none",u0e="Object changed by",p0e="Object last changed at",h0e="Settings from other adapter %s",f0e="Quality code",m0e="repeat",g0e='To select folder, just hold the key "shift" by clicking the folder.',v0e="State changed by",y0e="Object changed from",_0e="Timestamp",b0e="Acknowledged",w0e="Comment",x0e="Copy the state value",S0e="Custom settings",C0e="Delete object",$0e="Edit object",k0e="Edit the state value",E0e="From",T0e="Last changed",O0e="Quality",D0e="Time stamp",A0e="User",I0e="Value",M0e="Value",P0e="Warning: The CRON job will run every minute during the specified period!",N0e="Warning: The CRON job will run every second during the specified period!",R0e="CRON",j0e="Date",L0e="Dates",z0e="Day",F0e="Day of week",B0e="Every",W0e="every N days",H0e="every Nth day of the week",U0e="every N day of week",V0e="every N hours",q0e="every N minutes",G0e="every N months",X0e="every N seconds",J0e="every day",Y0e="every day of the week",K0e="every day of the week",Z0e="every hour",Q0e="every minute",ebe="every month",tbe="every second",rbe="From",nbe="Hours",obe="Interval",abe="Interval between",ibe="Invalid CRON",sbe="Minutes",lbe="months",cbe="Once",dbe="Period",ube="Seconds",pbe="Simple",hbe="Specific time",fbe="specific dates",mbe="specific day(s) of the week",gbe="specific day of weeks",vbe="specific hours",ybe="specific minutes",_be="specific months",bbe="specific seconds",wbe="Time",xbe="To",Sbe="Wizard",Cbe="all",$be="Astro day",kbe="Astro night",Ebe="Dawn",Tbe="Dusk",Obe="Golden hour",Dbe="Golden hour end",Abe="Nadir",Ibe="Nautical dawn",Mbe="Nautical dusk",Pbe="Night",Nbe="Night end",Rbe="Solar noon",jbe="Sunrise",Lbe="Sunrise end",zbe="Sunset",Fbe="Sunset start",Bbe="at",Wbe="at %s",Hbe="every day",Ube="every hour",Vbe="every minute",qbe="every month",Gbe="every %s day",Xbe="every %s hours",Jbe="every %s minutes",Ybe="every %s months",Kbe="every %s weeks",Zbe="every %s years",Qbe="every week",e1e="every year",t1e="from %s to %s",r1e="never",n1e="on %s of %s",o1e="on %s and %s of",a1e="on every date of",i1e="%s",s1e="%s and %s",l1e="on %s",c1e="on %s and %s",d1e="on weekends",u1e="on working days",p1e="will ne be not executed any more, because start is in the past",h1e="on %s",f1e="from %s",m1e="Execute from to",g1e="to %s",v1e="every",y1e="Specific time",_1e="from",b1e="From-to",w1e="Interval time",x1e="invert",S1e="none",C1e="on",$1e="Period",k1e="Daily",E1e="Dates",T1e="Day",O1e="Every",D1e="Every day",A1e="Every month",I1e="Every week",M1e="Every year",P1e="Hours",N1e="Minutes",R1e="month",j1e="Monthly",L1e="Once",z1e="Specific months",F1e="Week",B1e="Weekdays",W1e="Weekend",H1e="Weekly",U1e="Workdays",V1e="Year",q1e="Yearly",G1e="Specific time",X1e="Time",J1e="to",Y1e="Valid",K1e="from",Z1e="to",Q1e="Whole day",ewe="every month",twe={"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_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:eye,"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:tye,"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:rye,"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:nye,ra_Clear:oye,"ra_Clear filter":"Clear filter","ra_Clear icon":"Clear icon","ra_Clone current row":"Clone current row",ra_Close:aye,"ra_Collapse all nodes":"Collapse all nodes","ra_Collapse one step node":"Collapse one level",ra_Commercial:iye,ra_Configure:sye,"ra_Configure visible columns":"Configure visible columns","ra_Confirm deletion of %s":"Confirm deletion of %s",ra_Connected:lye,ra_Copied:cye,"ra_Copied %s":'Copied "%s"',"ra_Copy content":"Copy content",ra_Create:dye,"ra_Create alias":"Create alias","ra_Create folder":"Create folder","ra_Create new folder in %s":"Create new folder in %s",ra_Crop:uye,"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:pye,ra_Delete:hye,"ra_Delete (no confirm for 5 mins)":"Delete (no confirm for 5 mins)","ra_Delete current row":"Delete current row","ra_Deselect all":"Unselect all","ra_Device → Channel → State":"Device → Channel → State",ra_Discard:fye,ra_Disconnected:mye,"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_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 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_Error:gye,"ra_Expand all nodes":"Expand all nodes","ra_Expand one step node":"Expand one level","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:vye,"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:yye,"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_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 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:_ye,"ra_License %s":"License %s","ra_License agreement":"License agreement","ra_License does not exist":"License does not exist",ra_tooltip_expire:bye,"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_Longitude:wye,'ra_May not trigger "updateLicenses"':'May not trigger "updateLicenses"',ra_Message:xye,ra_Monday:Sye,"ra_Move down":"Move down","ra_Move up":"Move up",ra_Name:Cye,"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 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_Objects:$ye,ra_Ok:kye,"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 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_Private certificate":"Private certificate",ra_Product:Eye,"ra_Public certificate":"Public certificate","ra_Quality code":"Quality","ra_Refresh tree":"Refresh tree","ra_Reload files":"Reload files",ra_Repeat:Tye,ra_Replace:Oye,"ra_Request timed out":"Request timed out","ra_Restrict to folder":"Restrict to folder",ra_Root:Dye,ra_Saturday:Aye,ra_Save:Iye,"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:Mye,"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_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:Pye,"ra_Suitable license not found in license manager":"Suitable license not found in license manager",ra_Sunday:Nye,"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:Rye,ra_Timestamp:jye,"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:Lye,"ra_Unknown error":"Unknown error","ra_Unknown error!":"Unknown error!",ra_Update:zye,"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:Fye,ra_Value:Bye,ra_Version:Wye,"ra_View file":"View file","ra_View: %s":"View: %s",ra_Wednesday:Hye,ra_Width:Uye,ra_Yes:Vye,"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___different__:qye,ra_aclEveryone_read_object:Gye,ra_aclEveryone_read_state:Xye,ra_aclEveryone_write_object:Jye,ra_aclEveryone_write_state:Yye,ra_aclGroup_read_object:Kye,ra_aclGroup_read_state:Zye,ra_aclGroup_write_object:Qye,ra_aclGroup_write_state:e_e,ra_aclOwner_read_object:t_e,ra_aclOwner_read_state:r_e,ra_aclOwner_write_object:n_e,ra_aclOwner_write_state:o_e,ra_buttons:a_e,ra_changedFrom:i_e,ra_close:s_e,ra_create_boolean_state:l_e,ra_create_channel:c_e,ra_create_device:d_e,ra_create_number_state:u_e,ra_create_state:p_e,ra_create_string_state:h_e,ra_daysShortText:f_e,ra_dow_Fr:m_e,ra_dow_Mo:g_e,ra_dow_Sa:v_e,ra_dow_Su:y_e,ra_dow_Th:__e,ra_dow_Tu:b_e,ra_dow_We:w_e,ra_expertMode:x_e,ra_fileType_all:S_e,ra_fileType_audio:C_e,ra_fileType_code:$_e,ra_fileType_images:k_e,ra_fileType_txt:E_e,ra_fileType_video:T_e,"ra_fileType_video,":"Video",ra_filter_customs:O_e,ra_filter_customs_without:D_e,ra_filter_func:A_e,ra_filter_id:I_e,ra_filter_name:M_e,ra_filter_role:P_e,ra_filter_room:N_e,ra_filter_type:R_e,"ra_import data from %s file":"Import data from %s file",ra_invalidConfig:j_e,ra_lastChange:L_e,ra_locally:z_e,ra_month_Apr:F_e,ra_month_Aug:B_e,ra_month_Dec:W_e,ra_month_Feb:H_e,ra_month_Jan:U_e,ra_month_Jul:V_e,ra_month_Jun:q_e,ra_month_Mai:G_e,ra_month_Mar:X_e,ra_month_Nov:J_e,ra_month_Oct:Y_e,ra_month_Sep:K_e,ra_months_Apr:Z_e,ra_months_Aug:Q_e,ra_months_Dec:e0e,ra_months_Feb:t0e,ra_months_Jan:r0e,ra_months_Jul:n0e,ra_months_Jun:o0e,ra_months_Mai:a0e,ra_months_Mar:i0e,ra_months_Nov:s0e,ra_months_Oct:l0e,ra_months_Sep:c0e,ra_none:d0e,ra_object_changed_by:u0e,ra_object_changed_by_user:p0e,ra_otherConfig:h0e,ra_qualityCode:f0e,ra_repeat:m0e,ra_select_folder_hint:g0e,ra_state_changed_by:v0e,ra_state_changed_from:y0e,ra_timestamp:_0e,ra_tooltip_ack:b0e,ra_tooltip_comment:w0e,ra_tooltip_copyState:x0e,ra_tooltip_customConfig:S0e,ra_tooltip_deleteObject:C0e,ra_tooltip_editObject:$0e,ra_tooltip_editState:k0e,ra_tooltip_from:E0e,ra_tooltip_lc:T0e,ra_tooltip_quality:O0e,ra_tooltip_ts:D0e,ra_tooltip_user:A0e,ra_tooltip_value:I0e,"ra_use seconds":"use seconds",ra_val:M0e,"ra_via internet":"via internet",ra_warning_every_minute:P0e,ra_warning_every_second:N0e,sc_cron:R0e,sc_date:j0e,sc_dates:L0e,sc_dow:z0e,sc_dows:F0e,sc_every:B0e,sc_everyN_dates:W0e,sc_everyN_dow:H0e,sc_everyN_dows:U0e,sc_everyN_hours:V0e,sc_everyN_minutes:q0e,sc_everyN_months:G0e,sc_everyN_seconds:X0e,sc_every_dates:J0e,sc_every_dow:Y0e,sc_every_dows:K0e,sc_every_hours:Z0e,sc_every_minutes:Q0e,sc_every_months:ebe,sc_every_seconds:tbe,sc_from:rbe,sc_hours:nbe,sc_interval:obe,sc_intervalBetween:abe,sc_invalid_cron:ibe,sc_minutes:sbe,sc_months:lbe,sc_once:cbe,sc_period:dbe,sc_seconds:ube,sc_simple:pbe,sc_specific:hbe,sc_specific_dates:fbe,sc_specific_dow:mbe,sc_specific_dows:gbe,sc_specific_hours:vbe,sc_specific_minutes:ybe,sc_specific_months:_be,sc_specific_seconds:bbe,sc_time:wbe,sc_to:xbe,sc_wizard:Sbe,sch_all:Cbe,sch_astroDay:$be,sch_astroNight:kbe,sch_astro_dawn:Ebe,sch_astro_dusk:Tbe,sch_astro_goldenHour:Obe,sch_astro_goldenHourEnd:Dbe,sch_astro_nadir:Abe,sch_astro_nauticalDawn:Ibe,sch_astro_nauticalDusk:Mbe,sch_astro_night:Pbe,sch_astro_nightEnd:Nbe,sch_astro_solarNoon:Rbe,sch_astro_sunrise:jbe,sch_astro_sunriseEnd:Lbe,sch_astro_sunset:zbe,sch_astro_sunsetStart:Fbe,sch_at:Bbe,sch_desc_atTime:Wbe,sch_desc_everyDay:Hbe,sch_desc_everyHour:Ube,sch_desc_everyMinute:Vbe,sch_desc_everyMonth:qbe,sch_desc_everyNDay:Gbe,sch_desc_everyNHours:Xbe,sch_desc_everyNMinutes:Jbe,sch_desc_everyNMonths:Ybe,sch_desc_everyNWeeks:Kbe,sch_desc_everyNYears:Zbe,sch_desc_everyWeek:Qbe,sch_desc_everyYear:e1e,sch_desc_intervalFromTo:t1e,sch_desc_never:r1e,sch_desc_onDate:n1e,sch_desc_onDates:o1e,sch_desc_onEveryDate:a1e,sch_desc_onMonth:i1e,sch_desc_onMonths:s1e,sch_desc_onWeekday:l1e,sch_desc_onWeekdays:c1e,sch_desc_onWeekends:d1e,sch_desc_onWorkdays:u1e,sch_desc_onceInPast:p1e,sch_desc_once_on:h1e,sch_desc_validFrom:f1e,sch_desc_validFromTo:m1e,sch_desc_validTo:g1e,sch_every:v1e,sch_exactTime:y1e,sch_from:_1e,sch_fromTo:b1e,sch_intervalTime:w1e,sch_invert:x1e,sch_no_one:S1e,sch_on:C1e,sch_period:$1e,sch_periodDaily:k1e,sch_periodDates:E1e,sch_periodDay:T1e,sch_periodEvery:O1e,sch_periodEveryDay:D1e,sch_periodEveryMonth:A1e,sch_periodEveryWeek:I1e,sch_periodEveryYear:M1e,sch_periodHours:P1e,sch_periodMinutes:N1e,sch_periodMonth:R1e,sch_periodMonthly:j1e,sch_periodOnce:L1e,sch_periodSpecificMonths:z1e,sch_periodWeek:F1e,sch_periodWeekdays:B1e,sch_periodWeekend:W1e,sch_periodWeekly:H1e,sch_periodWorkdays:U1e,sch_periodYear:V1e,sch_periodYearly:q1e,sch_specificTime:G1e,sch_time:X1e,sch_to:J1e,sch_valid:Y1e,sch_validFrom:K1e,sch_validTo:Z1e,sch_wholeDay:Q1e,sch_yearEveryMonth:ewe},rwe="Anhängen",nwe="Abbrechen",owe="Kategorien",awe="Geprüft",iwe="Löschen",swe="Schließen",lwe="Kommerziell",cwe="Konfigurieren",dwe="Verbunden",uwe="Kopiert",pwe="Erstellen",hwe="Ernte",fwe="Entf",mwe="Löschen",gwe="Verwerfen",vwe="Getrennt",ywe="Fehler",_we="Filter",bwe="Freitag",wwe="Breite",xwe="Längengrad",Swe="Meldung",Cwe="Montag",$we="Name",kwe="Objekte",Ewe="OK",Twe="Produkt",Owe="Wiederholen",Dwe="Ersetzen",Awe="Anfang",Iwe="Samstag",Mwe="Speichern",Pwe="Ausgewählt",Nwe="Zustände",Rwe="Sonntag",jwe="Donnerstag",Lwe="Zeitstempel",zwe="Dienstag",Fwe="Aktualisieren",Bwe="Gültig bis",Wwe="Wert",Hwe="Ausführung",Uwe="Mittwoch",Vwe="Breite",qwe="Ja",Gwe="unterschiedlich",Xwe="Jeder kann Objekt lesen",Jwe="Jeder kann Zustand lesen",Ywe="Jeder kann ein Objekt schreiben",Kwe="Jeder kann Zustand schreiben",Zwe="Gruppe kann Objekt lesen",Qwe="Gruppe kann Status lesen",exe="Gruppe kann Objekt schreiben",txe="Gruppe kann Status schreiben",rxe="Besitzer kann Objekt lesen",nxe="Besitzer kann Zustand lesen",oxe="Besitzer kann Objekt schreiben",axe="Besitzer kann Zustand schreiben",ixe="Tasten",sxe="Geändert von",lxe="Schließen",cxe="Booleschen Zustand erstellen",dxe="Kanal erstellen",uxe="Gerät erstellen",pxe="Nummern-Zustand erstellen",hxe="Zustand erstellen",fxe="String-Zustand erstellen",mxe="T.",gxe="Fr",vxe="Mo",yxe="Sa",_xe="So",bxe="Do",wxe="Di",xxe="Mi",Sxe="Expertenmodus",Cxe="Alle Dateien",$xe="Audio",kxe="Code/JSON",Exe="Bilder",Txe="Text",Oxe="Video",Dxe="Einstellungen",Axe="ohne",Ixe="Funktion",Mxe="ID",Pxe="Name",Nxe="Rolle",Rxe="Raum",jxe="Typ",Lxe="Ungültige Einstellungen",zxe="Letzte Änderung",Fxe="örtlich",Bxe="Apr",Wxe="Aug",Hxe="Dez",Uxe="Feb",Vxe="Jan",qxe="Jul",Gxe="Jun",Xxe="Mai",Jxe="Mär",Yxe="Nov",Kxe="Okt",Zxe="Sep",Qxe="Apr",eSe="Aug",tSe="Dez",rSe="Feb",nSe="Jan",oSe="Jul",aSe="Jun",iSe="Mai",sSe="Mär",lSe="Nov",cSe="Okt",dSe="Sep",uSe="kein",pSe="Objekt geändert von",hSe="Objekt zuletzt geändert um",fSe="Einstellungen von anderen Adaptern %s",mSe="Qualitätscode",gSe="wiederholen",vSe='Um einen Ordner auszuwählen, halten Sie einfach die Taste "Shift" gedrückt, indem Sie auf den Ordner klicken.',ySe="Zustand geändert durch",_Se="Objekt geändert von",bSe="Zeitstempel",wSe="Bestätigt",xSe="Kommentar",SSe="Statuswert kopieren",CSe="Benutzerdefinierte Einstellungen",$Se="Objekt löschen",kSe="Objekt bearbeiten",ESe="Statuswert bearbeiten",TSe="Von",OSe="Zuletzt geändert",DSe="Qualität",ASe="Zeitstempel",ISe="Benutzer",MSe="Wert",PSe="Wert",NSe="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Minute ausgeführt!",RSe="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Sekunde ausgeführt!",jSe="CRON",LSe="Datum",zSe="Tage",FSe="Tag",BSe="Wochentage",WSe="Jeden",HSe="alle N Tage",USe="jeden x-ten Tag der Woche",VSe="alle N Wochentage",qSe="alle N Stunden",GSe="alle N Minuten",XSe="alle N Monate",JSe="alle N Sekunden",YSe="jeden Tag",KSe="jeden Tag der Woche",ZSe="jeden Tag der Woche",QSe="jede Stunde",eCe="jede Minute",tCe="jeden Monat",rCe="jede Sekunde",nCe="Von",oCe="Stunden",aCe="Intervall",iCe="Intervall zwischen",sCe="Ungültiger CRON",lCe="Minuten",cCe="Monate",dCe="Einmal",uCe="Zeitraum",pCe="Sekunden",hCe="Einfach",fCe="Bestimmte Zeit",mCe="bestimmte Tage",gCe="bestimmte(r) Tag(e) der Woche",vCe="bestimmten Wochentag",yCe="bestimmte Stunden",_Ce="bestimmte Minuten",bCe="bestimmte Monate",wCe="bestimmte Sekunden",xCe="Zeit",SCe="Bis",CCe="Wizard",$Ce="alle",kCe="Astronomischer Tag",ECe="Astronomische Nacht",TCe="Morgendämmerung",OCe="Abenddämmerung",DCe="Goldene Stunde",ACe="Goldene Stundenende",ICe="Nadir",MCe="Nautische Morgendämmerung",PCe="Nautische Abenddämmerung",NCe="Nacht",RCe="Nachtende",jCe="Sonnenmittag",LCe="Sonnenaufgang",zCe="Sonnenaufgangende",FCe="Sonnenuntergang",BCe="Sonnenuntergangstart",WCe="am",HCe="um %s",UCe="jeden Tag",VCe="jede Stunde",qCe="jede Minute",GCe="jeden Monat",XCe="jeden %s Tag",JCe="alle %s Stunden",YCe="alle %s Minuten",KCe="alle %s Monate",ZCe="alle %s Wochen",QCe="alle %s Jahre",e$e="jede Woche",t$e="jedes Jahr",r$e="von %s bis %s",n$e="noch nie",o$e="am %s von %s",a$e="am %s und %s von",i$e="an jedem Datum von",s$e="%s",l$e="%s und %s",c$e="auf %s",d$e="auf %s und %s",u$e="an Wochenenden",p$e="an Werktagen",h$e="wird nicht mehr ausgeführt, weil der Start in der Vergangenheit ist",f$e="auf %s",m$e="von %s",g$e="Ausführen von bis",v$e="bis %s",y$e="jeden",_$e="Bestimmte Zeit",b$e="von",w$e="Von bis",x$e="Zeitintervall",S$e="umkehren",C$e="keiner",$$e="am",k$e="Zeitraum",E$e="Täglich",T$e="Daten",O$e="Tag",D$e="Jeden",A$e="Jeden Tag",I$e="Jeden Monat",M$e="Jede Woche",P$e="Jedes Jahr",N$e="Stunden",R$e="Minuten",j$e="Monat",L$e="Monatlich",z$e="Einmal",F$e="Bestimmte Monate",B$e="Woche",W$e="Wochentage",H$e="Wochenende",U$e="Wöchentlich",V$e="Arbeitstage",q$e="Jahr",G$e="Jährlich",X$e="Bestimmte Zeit",J$e="Zeit",Y$e="zu",K$e="Gültigkeit",Z$e="von",Q$e="bis",eke="Ganzer Tag",tke="jeden Monat",rke={"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_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:rwe,"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:nwe,"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:owe,"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:awe,ra_Clear:iwe,"ra_Clear filter":"Filter löschen","ra_Clear icon":"Symbol löschen","ra_Clone current row":"Aktuelle Zeile klonen",ra_Close:swe,"ra_Collapse all nodes":"Alle Knoten zuklappen","ra_Collapse one step node":"Eine Ebene zuklappen",ra_Commercial:lwe,ra_Configure:cwe,"ra_Configure visible columns":"Spalten Konfigurieren","ra_Confirm deletion of %s":"Das Löschen von %s bestätigen",ra_Connected:dwe,ra_Copied:uwe,"ra_Copied %s":'"%s" kopiert',"ra_Copy content":"Inhalte kopieren",ra_Create:pwe,"ra_Create alias":"Alias erstellen","ra_Create folder":"Ordner erstellen","ra_Create new folder in %s":'Neuen Ordner in "%s" erstellen',ra_Crop:hwe,"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:fwe,ra_Delete:mwe,"ra_Delete (no confirm for 5 mins)":"Löschen (keine Bestätigung für 5 Minuten)","ra_Delete current row":"Aktuelle Zeile löschen","ra_Deselect all":"Alles abwählen","ra_Device → Channel → State":"Gerät → Kanal → Zustand",ra_Discard:gwe,ra_Disconnected:vwe,"ra_Do not export values of states":"Keine Zustandswerte exportieren","ra_Do not use let's encrypt":"Let's encrypt nicht verwenden","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 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_Error:ywe,"ra_Expand all nodes":"Alle Knoten aufklappen","ra_Expand one step node":"Eine Ebene aufklappen","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:_we,"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:bwe,"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_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 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:wwe,"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_Longitude:xwe,'ra_May not trigger "updateLicenses"':"Löst möglicherweise nicht „updateLicenses“ aus",ra_Message:Swe,ra_Monday:Cwe,"ra_Move down":"Nach unten","ra_Move up":"Nach oben",ra_Name:$we,"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 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_Objects:kwe,ra_Ok:Ewe,"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 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_Private certificate":"Privates Zertifikat",ra_Product:Twe,"ra_Public certificate":"Öffentliches Zertifikat","ra_Quality code":"Qualität","ra_Refresh tree":"Baum aktualisieren","ra_Reload files":"Dateien neu laden",ra_Repeat:Owe,ra_Replace:Dwe,"ra_Request timed out":"Zeitüberschreitung der Anforderung","ra_Restrict to folder":"Auf Ordner beschränken",ra_Root:Awe,ra_Saturday:Iwe,ra_Save:Mwe,"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:Pwe,"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_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:Nwe,"ra_Suitable license not found in license manager":"Passende Lizenz im Lizenzmanager nicht gefunden",ra_Sunday:Rwe,"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:jwe,ra_Timestamp:Lwe,"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:zwe,"ra_Unknown error":"Unbekannter Fehler","ra_Unknown error!":"Unbekannter Fehler!",ra_Update:Fwe,"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:Bwe,ra_Value:Wwe,ra_Version:Hwe,"ra_View file":"Datei ansehen","ra_View: %s":"Anschauen: %s",ra_Wednesday:Uwe,ra_Width:Vwe,ra_Yes:qwe,"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___different__:Gwe,ra_aclEveryone_read_object:Xwe,ra_aclEveryone_read_state:Jwe,ra_aclEveryone_write_object:Ywe,ra_aclEveryone_write_state:Kwe,ra_aclGroup_read_object:Zwe,ra_aclGroup_read_state:Qwe,ra_aclGroup_write_object:exe,ra_aclGroup_write_state:txe,ra_aclOwner_read_object:rxe,ra_aclOwner_read_state:nxe,ra_aclOwner_write_object:oxe,ra_aclOwner_write_state:axe,ra_buttons:ixe,ra_changedFrom:sxe,ra_close:lxe,ra_create_boolean_state:cxe,ra_create_channel:dxe,ra_create_device:uxe,ra_create_number_state:pxe,ra_create_state:hxe,ra_create_string_state:fxe,ra_daysShortText:mxe,ra_dow_Fr:gxe,ra_dow_Mo:vxe,ra_dow_Sa:yxe,ra_dow_Su:_xe,ra_dow_Th:bxe,ra_dow_Tu:wxe,ra_dow_We:xxe,ra_expertMode:Sxe,ra_fileType_all:Cxe,ra_fileType_audio:$xe,ra_fileType_code:kxe,ra_fileType_images:Exe,ra_fileType_txt:Txe,ra_fileType_video:Oxe,"ra_fileType_video,":"Video",ra_filter_customs:Dxe,ra_filter_customs_without:Axe,ra_filter_func:Ixe,ra_filter_id:Mxe,ra_filter_name:Pxe,ra_filter_role:Nxe,ra_filter_room:Rxe,ra_filter_type:jxe,"ra_import data from %s file":"Daten aus %s-Datei importieren",ra_invalidConfig:Lxe,ra_lastChange:zxe,ra_locally:Fxe,ra_month_Apr:Bxe,ra_month_Aug:Wxe,ra_month_Dec:Hxe,ra_month_Feb:Uxe,ra_month_Jan:Vxe,ra_month_Jul:qxe,ra_month_Jun:Gxe,ra_month_Mai:Xxe,ra_month_Mar:Jxe,ra_month_Nov:Yxe,ra_month_Oct:Kxe,ra_month_Sep:Zxe,ra_months_Apr:Qxe,ra_months_Aug:eSe,ra_months_Dec:tSe,ra_months_Feb:rSe,ra_months_Jan:nSe,ra_months_Jul:oSe,ra_months_Jun:aSe,ra_months_Mai:iSe,ra_months_Mar:sSe,ra_months_Nov:lSe,ra_months_Oct:cSe,ra_months_Sep:dSe,ra_none:uSe,ra_object_changed_by:pSe,ra_object_changed_by_user:hSe,ra_otherConfig:fSe,ra_qualityCode:mSe,ra_repeat:gSe,ra_select_folder_hint:vSe,ra_state_changed_by:ySe,ra_state_changed_from:_Se,ra_timestamp:bSe,ra_tooltip_ack:wSe,ra_tooltip_comment:xSe,ra_tooltip_copyState:SSe,ra_tooltip_customConfig:CSe,ra_tooltip_deleteObject:$Se,ra_tooltip_editObject:kSe,ra_tooltip_editState:ESe,ra_tooltip_from:TSe,ra_tooltip_lc:OSe,ra_tooltip_quality:DSe,ra_tooltip_ts:ASe,ra_tooltip_user:ISe,ra_tooltip_value:MSe,"ra_use seconds":"Sekunden benutzen",ra_val:PSe,"ra_via internet":"übers Internet",ra_warning_every_minute:NSe,ra_warning_every_second:RSe,sc_cron:jSe,sc_date:LSe,sc_dates:zSe,sc_dow:FSe,sc_dows:BSe,sc_every:WSe,sc_everyN_dates:HSe,sc_everyN_dow:USe,sc_everyN_dows:VSe,sc_everyN_hours:qSe,sc_everyN_minutes:GSe,sc_everyN_months:XSe,sc_everyN_seconds:JSe,sc_every_dates:YSe,sc_every_dow:KSe,sc_every_dows:ZSe,sc_every_hours:QSe,sc_every_minutes:eCe,sc_every_months:tCe,sc_every_seconds:rCe,sc_from:nCe,sc_hours:oCe,sc_interval:aCe,sc_intervalBetween:iCe,sc_invalid_cron:sCe,sc_minutes:lCe,sc_months:cCe,sc_once:dCe,sc_period:uCe,sc_seconds:pCe,sc_simple:hCe,sc_specific:fCe,sc_specific_dates:mCe,sc_specific_dow:gCe,sc_specific_dows:vCe,sc_specific_hours:yCe,sc_specific_minutes:_Ce,sc_specific_months:bCe,sc_specific_seconds:wCe,sc_time:xCe,sc_to:SCe,sc_wizard:CCe,sch_all:$Ce,sch_astroDay:kCe,sch_astroNight:ECe,sch_astro_dawn:TCe,sch_astro_dusk:OCe,sch_astro_goldenHour:DCe,sch_astro_goldenHourEnd:ACe,sch_astro_nadir:ICe,sch_astro_nauticalDawn:MCe,sch_astro_nauticalDusk:PCe,sch_astro_night:NCe,sch_astro_nightEnd:RCe,sch_astro_solarNoon:jCe,sch_astro_sunrise:LCe,sch_astro_sunriseEnd:zCe,sch_astro_sunset:FCe,sch_astro_sunsetStart:BCe,sch_at:WCe,sch_desc_atTime:HCe,sch_desc_everyDay:UCe,sch_desc_everyHour:VCe,sch_desc_everyMinute:qCe,sch_desc_everyMonth:GCe,sch_desc_everyNDay:XCe,sch_desc_everyNHours:JCe,sch_desc_everyNMinutes:YCe,sch_desc_everyNMonths:KCe,sch_desc_everyNWeeks:ZCe,sch_desc_everyNYears:QCe,sch_desc_everyWeek:e$e,sch_desc_everyYear:t$e,sch_desc_intervalFromTo:r$e,sch_desc_never:n$e,sch_desc_onDate:o$e,sch_desc_onDates:a$e,sch_desc_onEveryDate:i$e,sch_desc_onMonth:s$e,sch_desc_onMonths:l$e,sch_desc_onWeekday:c$e,sch_desc_onWeekdays:d$e,sch_desc_onWeekends:u$e,sch_desc_onWorkdays:p$e,sch_desc_onceInPast:h$e,sch_desc_once_on:f$e,sch_desc_validFrom:m$e,sch_desc_validFromTo:g$e,sch_desc_validTo:v$e,sch_every:y$e,sch_exactTime:_$e,sch_from:b$e,sch_fromTo:w$e,sch_intervalTime:x$e,sch_invert:S$e,sch_no_one:C$e,sch_on:$$e,sch_period:k$e,sch_periodDaily:E$e,sch_periodDates:T$e,sch_periodDay:O$e,sch_periodEvery:D$e,sch_periodEveryDay:A$e,sch_periodEveryMonth:I$e,sch_periodEveryWeek:M$e,sch_periodEveryYear:P$e,sch_periodHours:N$e,sch_periodMinutes:R$e,sch_periodMonth:j$e,sch_periodMonthly:L$e,sch_periodOnce:z$e,sch_periodSpecificMonths:F$e,sch_periodWeek:B$e,sch_periodWeekdays:W$e,sch_periodWeekend:H$e,sch_periodWeekly:U$e,sch_periodWorkdays:V$e,sch_periodYear:q$e,sch_periodYearly:G$e,sch_specificTime:X$e,sch_time:J$e,sch_to:Y$e,sch_valid:K$e,sch_validFrom:Z$e,sch_validTo:Q$e,sch_wholeDay:eke,sch_yearEveryMonth:tke},nke="Добавить",oke="Отмена",ake="Категории",ike="Проверено",ske="Удалить",lke="Закрыть",cke="Коммерческая",dke="Настроить",uke="Соединение установлено",pke="скопировано",hke="Создать",fke="Обрезать",mke="Delete",gke="Удалить",vke="Отказаться",yke="Отключено",_ke="Ошибка",bke="Фильтр",wke="Пятница",xke="Широта",Ske="Долгота",Cke="Сообщение",$ke="Понедельник",kke="Имя",Eke="Объекты",Tke="Ok",Oke="Продукт",Dke="Повторение",Ake="Заменять",Ike="Начало",Mke="Суббота",Pke="Сохранить",Nke="выбранный",Rke="Состояния",jke="Воскресенье",Lke="Четверг",zke="Времени",Fke="Вторник",Bke="Обновить",Wke="Годен до",Hke="Значение",Uke="Версия",Vke="Среда",qke="Ширина",Gke="Да",Xke="разное",Jke="Каждый может читать объект",Yke="Каждый может читать состояние",Kke="Каждый может написать объект",Zke="Каждый может написать состояние",Qke="Группа может читать объект",eEe="Группа может читать состояние",tEe="Группа может писать объект",rEe="Группа может записывать состояние",nEe="Владелец может читать объект",oEe="Владелец может читать состояние",aEe="Владелец может писать объект",iEe="Владелец может писать состояние",sEe="Кнопки",lEe="Изменено с",cEe="Закрыть",dEe="Создать логическое состояние",uEe="Создать канал",pEe="Создать устройство",hEe="Создать состояние номера",fEe="Создать состояние",mEe="Создать состояние строки",gEe="д.",vEe="Пт",yEe="Пн",_Ee="Сб",bEe="Вс",wEe="Чт",xEe="Вт",SEe="Ср",CEe="Экспертный режим",$Ee="Все файлы",kEe="Аудио",EEe="Код/JSON",TEe="Картинки",OEe="Текст",DEe="видео",AEe="настройки",IEe="без",MEe="функция",PEe="ID",NEe="Имя",REe="роль",jEe="комната",LEe="Тип",zEe="Неверные настройки",FEe="Последнее изменение",BEe="локально",WEe="Апр",HEe="Авг",UEe="Дек",VEe="Фев",qEe="Янв",GEe="Июл",XEe="Июн",JEe="Май",YEe="Мрт",KEe="Ноя",ZEe="Окт",QEe="Сен",e2e="Апр",t2e="Авг",r2e="Дек",n2e="Фев",o2e="Янв",a2e="Июнь",i2e="Июль",s2e="Май",l2e="Март",c2e="Ноя",d2e="Окт",u2e="Сен",p2e="ничего",h2e="Объект изменен",f2e="Последний раз объект изменен в",m2e="Настройки из другого адаптера %s",g2e="Код качества",v2e="повтор",y2e="Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.",_2e="Состояние изменено",b2e="Объект изменен с",w2e="Отметка времени",x2e="Подтверждено",S2e="Комментарий",C2e="Скопируйте значение состояния",$2e="Пользовательские настройки",k2e="Удалить объект",E2e="Редактировать объект",T2e="Изменить значение состояния",O2e="От",D2e="Последнее изменение",A2e="Качество",I2e="Отметка времени",M2e="пользователь",P2e="Значение",N2e="Значение",R2e="Внимание: задание CRON будет запускаться каждую минуту в течение указанного периода!",j2e="Внимание: задание CRON будет выполняться каждую секунду в течение указанного периода!",L2e="CRON",z2e="Дата",F2e="Даты",B2e="День",W2e="День недели",H2e="каждый(ую/ые)",U2e="каждый N день",V2e="каждый N-й день недели",q2e="каждый N день недели",G2e="каждые N часов",X2e="каждые N минут",J2e="каждые N месяцев",Y2e="каждые N секунд",K2e="каждый день",Z2e="Каждый день недели",Q2e="каждый день недели",eTe="каждый час",tTe="каждую минуту",rTe="каждый месяц",nTe="каждую секунду",oTe="От",aTe="часы",iTe="Интервал",sTe="Интервал между",lTe="Неверный CRON",cTe="минуты",dTe="Месяцы",uTe="один раз",pTe="Период",hTe="секунды",fTe="Просто",mTe="Конкретное время",gTe="конкретные даты",vTe="конкретный день(а) недели",yTe="конкретный день недели",_Te="конкретные часы",bTe="конкретные минуты",wTe="конкретные месяцы",xTe="конкретные секунды",STe="Время",CTe="До",$Te="Форма",kTe="все",ETe="днём",TTe="ночью",OTe="Рассвет",DTe="Сумерки",ATe="Золотой час",ITe="Конец золотого часа",MTe="Надир",PTe="Морской рассвет",NTe="Морские сумерки",RTe="Ночь",jTe="Конец ночи",LTe="Солнечный полдень",zTe="Восход",FTe="Восход солнца",BTe="Заход солнца",WTe="Начало заката",HTe="дата",UTe="в %s",VTe="каждый день",qTe="каждый час",GTe="каждую минуту",XTe="каждый месяц",JTe="каждый %s день",YTe="каждый %s часов",KTe="каждые %s минут",ZTe="каждые %s месяцев",QTe="каждые %s недель",eOe="каждые %s лет",tOe="каждую неделю",rOe="каждый год",nOe="от %s до %s",oOe="никогда",aOe="%s %s",iOe="%s и %s",sOe="в каждый день",lOe="%s",cOe="%s и %s",dOe="%s",uOe="%s и %s",pOe="на выходных",hOe="в рабочие дни",fOe="не будет больше выполняться, потому что начало в прошлом",mOe="%s",gOe="%s",vOe="Выполнить с",yOe="%s",_Oe="каждый",bOe="Конкретное время",wOe="от",xOe="От и до",SOe="Интервал времени",COe="инвертировать",$Oe="никакой",kOe="на",EOe="период",TOe="Ежедневно",OOe="Даты",DOe="День",AOe="каждый",IOe="Каждый день",MOe="Каждый месяц",POe="Каждую неделю",NOe="Каждый год",ROe="часов",jOe="минут",LOe="месяц",zOe="ежемесячно",FOe="однажды",BOe="Конкретные месяцы",WOe="Неделю",HOe="Будние дни",UOe="выходные",VOe="еженедельно",qOe="Рабочие дни",GOe="Год",XOe="каждый год",JOe="Конкретное время",YOe="Время",KOe="в",ZOe="действительный",QOe="от",eDe="в",tDe="Весь день",rDe="каждый месяц",nDe={"ra_%s links from aliases":"%s ссылок из псевдонимов","ra_%s object(s) processed":"Объектов обработано: %s","ra_%s was imported":"%s был импортирован","ra_Accept license":"Принять лицензию","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:nke,"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:oke,"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:ake,"ra_Chained certificate":"Chained сертификат","ra_Change color theme":"Изменить цветовую тему","ra_Changed from":"Изменено","ra_Channel → State":"Канал → Состояние","ra_Check license":"Проверить лицензию",ra_Checked:ike,ra_Clear:ske,"ra_Clear filter":"Очистить фильтр","ra_Clear icon":"Очистить значок","ra_Clone current row":"Клонировать текущую строку",ra_Close:lke,"ra_Collapse all nodes":"Свернуть все узлы","ra_Collapse one step node":"Свернуть один уровень",ra_Commercial:cke,ra_Configure:dke,"ra_Configure visible columns":"Настроить видимые столбцы","ra_Confirm deletion of %s":"Подтвердите удаление %s",ra_Connected:uke,ra_Copied:pke,"ra_Copied %s":'Скопировано "%s"',"ra_Copy content":"Копировать содержимое",ra_Create:hke,"ra_Create alias":"Создать псевдоним","ra_Create folder":"Создать папку","ra_Create new folder in %s":"Создать новую папку в %s",ra_Crop:fke,"ra_Define CRON...":"Определите CRON...","ra_Define functions":"Задать функции","ra_Define rooms":"Задать комнаты","ra_Define schedule":"Задать расписание","ra_Define schedule...":"Определить расписание ...",ra_Del:mke,ra_Delete:gke,"ra_Delete (no confirm for 5 mins)":"Удалить (без подтверждения в течение 5 минут)","ra_Delete current row":"Удалить текущую строку","ra_Deselect all":"Убрать выбор везде","ra_Device → Channel → State":"Устройство → Канал → Состояние",ra_Discard:vke,ra_Disconnected:yke,"ra_Do not export values of states":"Не экспортировать значения состояний","ra_Do not use let's encrypt":"Не использовать Let’s Encrypt","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 function":"Изменить функцию","ra_Edit object field":"Поле редактирования объекта","ra_Edit role":"Изменить роль","ra_Edit room":"Редактировать комнату","ra_Edit value":"Изменить значение",ra_Error:_ke,"ra_Expand all nodes":"Развернуть все узлы","ra_Expand one step node":"Открыть один уровень","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:bke,"ra_Filter files":"Фильтровать файлы","ra_Folder name":"Имя папки","ra_Folder → Channel → State":"Папка → Канал → Состояние","ra_Folder → Device → Channel → State":"Папка → Устройство → Канал → Состояние","ra_Folder → State":"Папка → Состояние","ra_Folders always first":"Папки всегда на первом месте",ra_Friday:wke,"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_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 answer from server":"Неверный ответ от сервера","ra_Invalid parent folder!":"Неверная родительская папка!","ra_Invalid structure":"Неверная структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Последнее изменение",ra_Latitude:xke,"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_Longitude:Ske,'ra_May not trigger "updateLicenses"':"Не может запускать «updateLicenses»",ra_Message:Cke,ra_Monday:$ke,"ra_Move down":"Вниз","ra_Move up":"Вверх",ra_Name:kke,"ra_No data found in file":"Данные в файле не найдены","ra_No one license found in license manager":"В менеджере лицензий не найдена ни одна лицензия","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_Objects:Eke,ra_Ok:Tke,"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 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_Private certificate":"Частный сертификат",ra_Product:Oke,"ra_Public certificate":"Публичный сертификат","ra_Quality code":"Валидность","ra_Refresh tree":"Обновить дерево","ra_Reload files":"Обновить",ra_Repeat:Dke,ra_Replace:Ake,"ra_Request timed out":"Истекло время запроса","ra_Restrict to folder":"Ограничить папкой",ra_Root:Ike,ra_Saturday:Mke,ra_Save:Pke,"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:Nke,"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_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:Rke,"ra_Suitable license not found in license manager":"Подходящая лицензия не найдена в менеджере лицензий",ra_Sunday:jke,"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:Lke,ra_Timestamp:zke,"ra_Toggle expert mode":"Переключить экспертный режим","ra_Toggle the states view":"Переключить режим просмотра состояний","ra_Toggle view mode":"Переключить режим просмотра","ra_Too big":"Слишком большое","ra_Too small":"Слишком маленькое","ra_Transparent dialog":"Прозрачный диалог",ra_Tuesday:Fke,"ra_Unknown error":"Неизвестная ошибка","ra_Unknown error!":"Неизвестная ошибка!",ra_Update:Bke,"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:Wke,ra_Value:Hke,ra_Version:Uke,"ra_View file":"Посмотреть файл","ra_View: %s":"Просмотр: %s",ra_Wednesday:Vke,ra_Width:qke,ra_Yes:Gke,"ra_You can export all objects or just the selected branch.":"Вы можете экспортировать все объекты или только выбранную ветвь.","ra_You can filter entries by entering here some text":"Вы можете отфильтровать записи, введя здесь текст",ra___different__:Xke,ra_aclEveryone_read_object:Jke,ra_aclEveryone_read_state:Yke,ra_aclEveryone_write_object:Kke,ra_aclEveryone_write_state:Zke,ra_aclGroup_read_object:Qke,ra_aclGroup_read_state:eEe,ra_aclGroup_write_object:tEe,ra_aclGroup_write_state:rEe,ra_aclOwner_read_object:nEe,ra_aclOwner_read_state:oEe,ra_aclOwner_write_object:aEe,ra_aclOwner_write_state:iEe,ra_buttons:sEe,ra_changedFrom:lEe,ra_close:cEe,ra_create_boolean_state:dEe,ra_create_channel:uEe,ra_create_device:pEe,ra_create_number_state:hEe,ra_create_state:fEe,ra_create_string_state:mEe,ra_daysShortText:gEe,ra_dow_Fr:vEe,ra_dow_Mo:yEe,ra_dow_Sa:_Ee,ra_dow_Su:bEe,ra_dow_Th:wEe,ra_dow_Tu:xEe,ra_dow_We:SEe,ra_expertMode:CEe,ra_fileType_all:$Ee,ra_fileType_audio:kEe,ra_fileType_code:EEe,ra_fileType_images:TEe,ra_fileType_txt:OEe,ra_fileType_video:DEe,"ra_fileType_video,":"видео",ra_filter_customs:AEe,ra_filter_customs_without:IEe,ra_filter_func:MEe,ra_filter_id:PEe,ra_filter_name:NEe,ra_filter_role:REe,ra_filter_room:jEe,ra_filter_type:LEe,"ra_import data from %s file":"Импортировать данные из файла %s",ra_invalidConfig:zEe,ra_lastChange:FEe,ra_locally:BEe,ra_month_Apr:WEe,ra_month_Aug:HEe,ra_month_Dec:UEe,ra_month_Feb:VEe,ra_month_Jan:qEe,ra_month_Jul:GEe,ra_month_Jun:XEe,ra_month_Mai:JEe,ra_month_Mar:YEe,ra_month_Nov:KEe,ra_month_Oct:ZEe,ra_month_Sep:QEe,ra_months_Apr:e2e,ra_months_Aug:t2e,ra_months_Dec:r2e,ra_months_Feb:n2e,ra_months_Jan:o2e,ra_months_Jul:a2e,ra_months_Jun:i2e,ra_months_Mai:s2e,ra_months_Mar:l2e,ra_months_Nov:c2e,ra_months_Oct:d2e,ra_months_Sep:u2e,ra_none:p2e,ra_object_changed_by:h2e,ra_object_changed_by_user:f2e,ra_otherConfig:m2e,ra_qualityCode:g2e,ra_repeat:v2e,ra_select_folder_hint:y2e,ra_state_changed_by:_2e,ra_state_changed_from:b2e,ra_timestamp:w2e,ra_tooltip_ack:x2e,ra_tooltip_comment:S2e,ra_tooltip_copyState:C2e,ra_tooltip_customConfig:$2e,ra_tooltip_deleteObject:k2e,ra_tooltip_editObject:E2e,ra_tooltip_editState:T2e,ra_tooltip_from:O2e,ra_tooltip_lc:D2e,ra_tooltip_quality:A2e,ra_tooltip_ts:I2e,ra_tooltip_user:M2e,ra_tooltip_value:P2e,"ra_use seconds":"секунды",ra_val:N2e,"ra_via internet":"через интернет",ra_warning_every_minute:R2e,ra_warning_every_second:j2e,sc_cron:L2e,sc_date:z2e,sc_dates:F2e,sc_dow:B2e,sc_dows:W2e,sc_every:H2e,sc_everyN_dates:U2e,sc_everyN_dow:V2e,sc_everyN_dows:q2e,sc_everyN_hours:G2e,sc_everyN_minutes:X2e,sc_everyN_months:J2e,sc_everyN_seconds:Y2e,sc_every_dates:K2e,sc_every_dow:Z2e,sc_every_dows:Q2e,sc_every_hours:eTe,sc_every_minutes:tTe,sc_every_months:rTe,sc_every_seconds:nTe,sc_from:oTe,sc_hours:aTe,sc_interval:iTe,sc_intervalBetween:sTe,sc_invalid_cron:lTe,sc_minutes:cTe,sc_months:dTe,sc_once:uTe,sc_period:pTe,sc_seconds:hTe,sc_simple:fTe,sc_specific:mTe,sc_specific_dates:gTe,sc_specific_dow:vTe,sc_specific_dows:yTe,sc_specific_hours:_Te,sc_specific_minutes:bTe,sc_specific_months:wTe,sc_specific_seconds:xTe,sc_time:STe,sc_to:CTe,sc_wizard:$Te,sch_all:kTe,sch_astroDay:ETe,sch_astroNight:TTe,sch_astro_dawn:OTe,sch_astro_dusk:DTe,sch_astro_goldenHour:ATe,sch_astro_goldenHourEnd:ITe,sch_astro_nadir:MTe,sch_astro_nauticalDawn:PTe,sch_astro_nauticalDusk:NTe,sch_astro_night:RTe,sch_astro_nightEnd:jTe,sch_astro_solarNoon:LTe,sch_astro_sunrise:zTe,sch_astro_sunriseEnd:FTe,sch_astro_sunset:BTe,sch_astro_sunsetStart:WTe,sch_at:HTe,sch_desc_atTime:UTe,sch_desc_everyDay:VTe,sch_desc_everyHour:qTe,sch_desc_everyMinute:GTe,sch_desc_everyMonth:XTe,sch_desc_everyNDay:JTe,sch_desc_everyNHours:YTe,sch_desc_everyNMinutes:KTe,sch_desc_everyNMonths:ZTe,sch_desc_everyNWeeks:QTe,sch_desc_everyNYears:eOe,sch_desc_everyWeek:tOe,sch_desc_everyYear:rOe,sch_desc_intervalFromTo:nOe,sch_desc_never:oOe,sch_desc_onDate:aOe,sch_desc_onDates:iOe,sch_desc_onEveryDate:sOe,sch_desc_onMonth:lOe,sch_desc_onMonths:cOe,sch_desc_onWeekday:dOe,sch_desc_onWeekdays:uOe,sch_desc_onWeekends:pOe,sch_desc_onWorkdays:hOe,sch_desc_onceInPast:fOe,sch_desc_once_on:mOe,sch_desc_validFrom:gOe,sch_desc_validFromTo:vOe,sch_desc_validTo:yOe,sch_every:_Oe,sch_exactTime:bOe,sch_from:wOe,sch_fromTo:xOe,sch_intervalTime:SOe,sch_invert:COe,sch_no_one:$Oe,sch_on:kOe,sch_period:EOe,sch_periodDaily:TOe,sch_periodDates:OOe,sch_periodDay:DOe,sch_periodEvery:AOe,sch_periodEveryDay:IOe,sch_periodEveryMonth:MOe,sch_periodEveryWeek:POe,sch_periodEveryYear:NOe,sch_periodHours:ROe,sch_periodMinutes:jOe,sch_periodMonth:LOe,sch_periodMonthly:zOe,sch_periodOnce:FOe,sch_periodSpecificMonths:BOe,sch_periodWeek:WOe,sch_periodWeekdays:HOe,sch_periodWeekend:UOe,sch_periodWeekly:VOe,sch_periodWorkdays:qOe,sch_periodYear:GOe,sch_periodYearly:XOe,sch_specificTime:JOe,sch_time:YOe,sch_to:KOe,sch_valid:ZOe,sch_validFrom:QOe,sch_validTo:eDe,sch_wholeDay:tDe,sch_yearEveryMonth:rDe},oDe="Acrescentar",aDe="Cancelar",iDe="Categorias",sDe="Verificado",lDe="Excluir",cDe="Perto",dDe="Comercial",uDe="Configurar",pDe="Conectado",hDe="Copiado",fDe="Crio",mDe="Colheita",gDe="Delete",vDe="Excluir",yDe="Descartar",_De="Desconectado",bDe="Erro",wDe="Filtro",xDe="Sexta-feira",SDe="Latitude",CDe="Longitude",$De="mensagem",kDe="Segunda-feira",EDe="Nome",TDe="Objetos",ODe="Está bem",DDe="produtos",ADe="Repita",IDe="Substituir",MDe="Raiz",PDe="Sábado",NDe="Salve ",RDe="Selecionado",jDe="Estados",LDe="Domingo",zDe="Quinta-feira",FDe="Timestamp",BDe="Terça-feira",WDe="Atualizar",HDe="Válida até",UDe="Valor",VDe="Versão",qDe="Quarta-feira",GDe="Largura",XDe="Sim",JDe="diferente",YDe="Todos podem ler objetos",KDe="Todos podem ler o estado",ZDe="Todos podem escrever objetos",QDe="Todos podem escrever o estado",eAe="O grupo pode ler o objeto",tAe="O grupo pode ler o estado",rAe="O grupo pode escrever o objeto",nAe="O grupo pode escrever o estado",oAe="O proprietário pode ler o objeto",aAe="O proprietário pode ler o estado",iAe="O proprietário pode escrever o objeto",sAe="O proprietário pode escrever o estado",lAe="Botões",cAe="Mudou de",dAe="fechar",uAe="Criar estado booleano",pAe="Criar canal",hAe="Criar dispositivo",fAe="Criar estado numérico",mAe="Criar estado",gAe="Criar estado de string",vAe="d.",yAe="Fr",_Ae="Mo",bAe="Sa",wAe="Su",xAe="º",SAe="Tu",CAe="Nós",$Ae="Modo especialista",kAe="Todos os arquivos",EAe="áudio",TAe="Código/JSON",OAe="Imagens",DAe="Texto",AAe="Vídeo",IAe="Configurações",MAe="sem",PAe="Função",NAe="ID",RAe="Nome",jAe="Papel (Função)",LAe="Quarto",zAe="Tipo",FAe="Configurações inválidas",BAe="Última mudança",WAe="localmente",HAe="abril",UAe="agosto",VAe="dezembro",qAe="fevereiro",GAe="janeiro",XAe="julho",JAe="junho",YAe="Mai",KAe="março",ZAe="novembro",QAe="outubro",eIe="setembro",tIe="abril",rIe="agosto",nIe="dezembro",oIe="fevereiro",aIe="janeiro",iIe="julho",sIe="junho",lIe="Mai",cIe="março",dIe="novembro",uIe="outubro",pIe="setembro",hIe="Nenhum",fIe="Objeto alterado por",mIe="Objeto alterado pela última vez em",gIe="Configurações de outro adaptador %s",vIe="Código de qualidade",yIe="repetir",_Ie='Para selecionar a pasta, basta segurar a tecla "shift" clicando na pasta.',bIe="Estado alterado por",wIe="Objeto alterado de",xIe="Timestamp",SIe="Confirmado",CIe="Comente",$Ie="Copie o valor do estado",kIe="Opções customizadas",EIe="Excluir objeto",TIe="Editar objeto",OIe="Edite o valor do estado",DIe="De",AIe="Última alteração",IIe="Qualidade",MIe="Timestamp",PIe="Usuário",NIe="Valor",RIe="Valor",jIe="Aviso: O trabalho CRON será executado a cada minuto durante o período especificado!",LIe="Aviso: O trabalho CRON será executado a cada segundo durante o período especificado!",zIe="CRON",FIe="Data",BIe="Dias",WIe="Dia",HIe="Dia da semana",UIe="todos",VIe="a cada N dias",qIe="todo enésimo dia da semana",GIe="todos os N dias da semana",XIe="a cada N horas",JIe="a cada N minutos",YIe="a cada N meses",KIe="a cada N segundos",ZIe="todo dia",QIe="todos os dias da semana",eMe="todos os dias da semana",tMe="toda hora",rMe="todo minuto",nMe="todo mês",oMe="todo segundo",aMe="de",iMe="horas",sMe="intervalo",lMe="intervalo entre",cMe="CRON inválido",dMe="minutos",uMe="meses",pMe="uma vez",hMe="período",fMe="segundos",mMe="simples",gMe="tempo específico",vMe="datas específicas",yMe="dia(s) específico(s) da semana",_Me="dia específico de semanas",bMe="horas específicas",wMe="minutos específicos",xMe="meses específicos",SMe="segundos específicos",CMe="tempo",$Me="para",kMe="assistente",EMe="tudo",TMe="dia astral",OMe="noite astral",DMe="amanhecer",AMe="anoitecer",IMe="hora dourada",MMe="Fim da hora dourada",PMe="nadir",NMe="Amanhecer náutico",RMe="Anoitecer náutico",jMe="noite",LMe="fim da noite",zMe="meio-dia solar",FMe="nascer do sol",BMe="fim do nascer do sol",WMe="pôr do sol",HMe="início do pôr do sol",UMe="às",VMe="em %s",qMe="todo dia",GMe="toda hora",XMe="todo minuto",JMe="todo mês",YMe="a cada %s dias",KMe="a cada %s horas",ZMe="a cada %s minutos",QMe="a cada %s meses",ePe="a cada %s semanas",tPe="a cada %s anos",rPe="toda semana",nPe="todo ano",oPe="de %s para %s",aPe="nunca",iPe="em %s de %s",sPe="em %s e %s de",lPe="em toda data de",cPe="%s",dPe="%s e %s",uPe="em %s",pPe="em %s e %s",hPe="nos fins de semana",fPe="em dias úteis",mPe="não será mais executado, porque o começo está no passado",gPe="em %s",vPe="de %s",yPe="Executar de até",_Pe="até %s",bPe="cada",wPe="tempo específico",xPe="de",SPe="de a´t",CPe="tempo de intervalo",$Pe="invertido",kPe="nenhum",EPe="em",TPe="período",OPe="diariamente",DPe="datas",APe="dia",IPe="todos",MPe="todo dia",PPe="todo mês",NPe="toda semana",RPe="todo ano",jPe="horas",LPe="minutos",zPe="mês",FPe="por mês",BPe="uma vez",WPe="meses específicos",HPe="semana",UPe="dias úteis",VPe="final de semana",qPe="semanal",GPe="dias úteis",XPe="ano",JPe="anual",YPe="tempo específico",KPe="tempo",ZPe="para",QPe="válido",eNe="de",tNe="para",rNe="dia inteiro",nNe="todo mês",oNe={"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_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:oDe,"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:aDe,"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:iDe,"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:sDe,ra_Clear:lDe,"ra_Clear filter":"Filtro limpo","ra_Clear icon":"Ícone de limpeza","ra_Clone current row":"Clonar linha atual",ra_Close:cDe,"ra_Collapse all nodes":"Recolher todos os nós","ra_Collapse one step node":"Recolher um nível",ra_Commercial:dDe,ra_Configure:uDe,"ra_Configure visible columns":"Configurar colunas visíveis","ra_Confirm deletion of %s":"Confirme a exclusão de %s",ra_Connected:pDe,ra_Copied:hDe,"ra_Copied %s":'"%s" copiado',"ra_Copy content":"Copiar conteúdo",ra_Create:fDe,"ra_Create alias":"Criar alias","ra_Create folder":"Criar pasta","ra_Create new folder in %s":"Crie uma nova pasta em %s",ra_Crop:mDe,"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:gDe,ra_Delete:vDe,"ra_Delete (no confirm for 5 mins)":"Excluir (sem confirmação por 5 minutos)","ra_Delete current row":"Excluir linha atual","ra_Deselect all":"Desmarque todos","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:yDe,ra_Disconnected:_De,"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_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 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_Error:bDe,"ra_Expand all nodes":"Expanda todos os nós","ra_Expand one step node":"Expanda um nível","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:wDe,"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:xDe,"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_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 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:SDe,"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_Longitude:CDe,'ra_May not trigger "updateLicenses"':'Pode não acionar "updateLicenses"',ra_Message:$De,ra_Monday:kDe,"ra_Move down":"Mover para baixo","ra_Move up":"Subir",ra_Name:EDe,"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 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_Objects:TDe,ra_Ok:ODe,"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 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_Private certificate":"certificado privado",ra_Product:DDe,"ra_Public certificate":"certificado público","ra_Quality code":"Qualidade","ra_Refresh tree":"Atualizar árvore","ra_Reload files":"Recarregar arquivos",ra_Repeat:ADe,ra_Replace:IDe,"ra_Request timed out":"Solicitação expirou","ra_Restrict to folder":"Restringir à pasta",ra_Root:MDe,ra_Saturday:PDe,ra_Save:NDe,"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:RDe,"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_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:jDe,"ra_Suitable license not found in license manager":"Licença adequada não encontrada no gerenciador de licenças",ra_Sunday:LDe,"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:zDe,ra_Timestamp:FDe,"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:BDe,"ra_Unknown error":"Erro desconhecido","ra_Unknown error!":"Erro desconhecido!",ra_Update:WDe,"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:HDe,ra_Value:UDe,ra_Version:VDe,"ra_View file":"Visualizar arquivo","ra_View: %s":"Visualizar: %s",ra_Wednesday:qDe,ra_Width:GDe,ra_Yes:XDe,"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___different__:JDe,ra_aclEveryone_read_object:YDe,ra_aclEveryone_read_state:KDe,ra_aclEveryone_write_object:ZDe,ra_aclEveryone_write_state:QDe,ra_aclGroup_read_object:eAe,ra_aclGroup_read_state:tAe,ra_aclGroup_write_object:rAe,ra_aclGroup_write_state:nAe,ra_aclOwner_read_object:oAe,ra_aclOwner_read_state:aAe,ra_aclOwner_write_object:iAe,ra_aclOwner_write_state:sAe,ra_buttons:lAe,ra_changedFrom:cAe,ra_close:dAe,ra_create_boolean_state:uAe,ra_create_channel:pAe,ra_create_device:hAe,ra_create_number_state:fAe,ra_create_state:mAe,ra_create_string_state:gAe,ra_daysShortText:vAe,ra_dow_Fr:yAe,ra_dow_Mo:_Ae,ra_dow_Sa:bAe,ra_dow_Su:wAe,ra_dow_Th:xAe,ra_dow_Tu:SAe,ra_dow_We:CAe,ra_expertMode:$Ae,ra_fileType_all:kAe,ra_fileType_audio:EAe,ra_fileType_code:TAe,ra_fileType_images:OAe,ra_fileType_txt:DAe,ra_fileType_video:AAe,"ra_fileType_video,":"Vídeo",ra_filter_customs:IAe,ra_filter_customs_without:MAe,ra_filter_func:PAe,ra_filter_id:NAe,ra_filter_name:RAe,ra_filter_role:jAe,ra_filter_room:LAe,ra_filter_type:zAe,"ra_import data from %s file":"Importar dados do arquivo %s",ra_invalidConfig:FAe,ra_lastChange:BAe,ra_locally:WAe,ra_month_Apr:HAe,ra_month_Aug:UAe,ra_month_Dec:VAe,ra_month_Feb:qAe,ra_month_Jan:GAe,ra_month_Jul:XAe,ra_month_Jun:JAe,ra_month_Mai:YAe,ra_month_Mar:KAe,ra_month_Nov:ZAe,ra_month_Oct:QAe,ra_month_Sep:eIe,ra_months_Apr:tIe,ra_months_Aug:rIe,ra_months_Dec:nIe,ra_months_Feb:oIe,ra_months_Jan:aIe,ra_months_Jul:iIe,ra_months_Jun:sIe,ra_months_Mai:lIe,ra_months_Mar:cIe,ra_months_Nov:dIe,ra_months_Oct:uIe,ra_months_Sep:pIe,ra_none:hIe,ra_object_changed_by:fIe,ra_object_changed_by_user:mIe,ra_otherConfig:gIe,ra_qualityCode:vIe,ra_repeat:yIe,ra_select_folder_hint:_Ie,ra_state_changed_by:bIe,ra_state_changed_from:wIe,ra_timestamp:xIe,ra_tooltip_ack:SIe,ra_tooltip_comment:CIe,ra_tooltip_copyState:$Ie,ra_tooltip_customConfig:kIe,ra_tooltip_deleteObject:EIe,ra_tooltip_editObject:TIe,ra_tooltip_editState:OIe,ra_tooltip_from:DIe,ra_tooltip_lc:AIe,ra_tooltip_quality:IIe,ra_tooltip_ts:MIe,ra_tooltip_user:PIe,ra_tooltip_value:NIe,"ra_use seconds":"use segundos",ra_val:RIe,"ra_via internet":"via internet",ra_warning_every_minute:jIe,ra_warning_every_second:LIe,sc_cron:zIe,sc_date:FIe,sc_dates:BIe,sc_dow:WIe,sc_dows:HIe,sc_every:UIe,sc_everyN_dates:VIe,sc_everyN_dow:qIe,sc_everyN_dows:GIe,sc_everyN_hours:XIe,sc_everyN_minutes:JIe,sc_everyN_months:YIe,sc_everyN_seconds:KIe,sc_every_dates:ZIe,sc_every_dow:QIe,sc_every_dows:eMe,sc_every_hours:tMe,sc_every_minutes:rMe,sc_every_months:nMe,sc_every_seconds:oMe,sc_from:aMe,sc_hours:iMe,sc_interval:sMe,sc_intervalBetween:lMe,sc_invalid_cron:cMe,sc_minutes:dMe,sc_months:uMe,sc_once:pMe,sc_period:hMe,sc_seconds:fMe,sc_simple:mMe,sc_specific:gMe,sc_specific_dates:vMe,sc_specific_dow:yMe,sc_specific_dows:_Me,sc_specific_hours:bMe,sc_specific_minutes:wMe,sc_specific_months:xMe,sc_specific_seconds:SMe,sc_time:CMe,sc_to:$Me,sc_wizard:kMe,sch_all:EMe,sch_astroDay:TMe,sch_astroNight:OMe,sch_astro_dawn:DMe,sch_astro_dusk:AMe,sch_astro_goldenHour:IMe,sch_astro_goldenHourEnd:MMe,sch_astro_nadir:PMe,sch_astro_nauticalDawn:NMe,sch_astro_nauticalDusk:RMe,sch_astro_night:jMe,sch_astro_nightEnd:LMe,sch_astro_solarNoon:zMe,sch_astro_sunrise:FMe,sch_astro_sunriseEnd:BMe,sch_astro_sunset:WMe,sch_astro_sunsetStart:HMe,sch_at:UMe,sch_desc_atTime:VMe,sch_desc_everyDay:qMe,sch_desc_everyHour:GMe,sch_desc_everyMinute:XMe,sch_desc_everyMonth:JMe,sch_desc_everyNDay:YMe,sch_desc_everyNHours:KMe,sch_desc_everyNMinutes:ZMe,sch_desc_everyNMonths:QMe,sch_desc_everyNWeeks:ePe,sch_desc_everyNYears:tPe,sch_desc_everyWeek:rPe,sch_desc_everyYear:nPe,sch_desc_intervalFromTo:oPe,sch_desc_never:aPe,sch_desc_onDate:iPe,sch_desc_onDates:sPe,sch_desc_onEveryDate:lPe,sch_desc_onMonth:cPe,sch_desc_onMonths:dPe,sch_desc_onWeekday:uPe,sch_desc_onWeekdays:pPe,sch_desc_onWeekends:hPe,sch_desc_onWorkdays:fPe,sch_desc_onceInPast:mPe,sch_desc_once_on:gPe,sch_desc_validFrom:vPe,sch_desc_validFromTo:yPe,sch_desc_validTo:_Pe,sch_every:bPe,sch_exactTime:wPe,sch_from:xPe,sch_fromTo:SPe,sch_intervalTime:CPe,sch_invert:$Pe,sch_no_one:kPe,sch_on:EPe,sch_period:TPe,sch_periodDaily:OPe,sch_periodDates:DPe,sch_periodDay:APe,sch_periodEvery:IPe,sch_periodEveryDay:MPe,sch_periodEveryMonth:PPe,sch_periodEveryWeek:NPe,sch_periodEveryYear:RPe,sch_periodHours:jPe,sch_periodMinutes:LPe,sch_periodMonth:zPe,sch_periodMonthly:FPe,sch_periodOnce:BPe,sch_periodSpecificMonths:WPe,sch_periodWeek:HPe,sch_periodWeekdays:UPe,sch_periodWeekend:VPe,sch_periodWeekly:qPe,sch_periodWorkdays:GPe,sch_periodYear:XPe,sch_periodYearly:JPe,sch_specificTime:YPe,sch_time:KPe,sch_to:ZPe,sch_valid:QPe,sch_validFrom:eNe,sch_validTo:tNe,sch_wholeDay:rNe,sch_yearEveryMonth:nNe},aNe="toevoegen",iNe="Annuleer",sNe="Categorieën",lNe="Gecontroleerd",cNe="Verwijderen",dNe="Dichtbij",uNe="Reclame",pNe="Configureren",hNe="Verbonden",fNe="Gekopieerd",mNe="Creëer",gNe="Bijsnijden",vNe="Delete",yNe="Verwijderen",_Ne="Weggooien",bNe="Verbinding verbroken",wNe="Fout",xNe="Filter",SNe="Vrijdag",CNe="Breedtegraad",$Ne="Lengtegraad",kNe="Bericht",ENe="Maandag",TNe="Naam",ONe="Voorwerpen",DNe="OK",ANe="Product",INe="Herhaling",MNe="Vervangen",PNe="Wortel",NNe="Zaterdag",RNe="Sparen",jNe="Geselecteerd",LNe="Staten",zNe="Zondag",FNe="Donderdag",BNe="Tijdstempel",WNe="Dinsdag",HNe="Bijwerken",UNe="Geldig tot",VNe="Waarde",qNe="Versie",GNe="Woensdag",XNe="Breedte",JNe="Ja",YNe="verschillend",KNe="Iedereen kan object lezen",ZNe="Iedereen kan staat lezen",QNe="Iedereen kan object schrijven",eRe="Iedereen kan staat schrijven",tRe="Groep kan object lezen",rRe="Groep kan status lezen",nRe="Groep kan object schrijven",oRe="Groep kan staat schrijven",aRe="Eigenaar kan object lezen",iRe="Eigenaar kan staat lezen",sRe="Eigenaar kan object schrijven",lRe="Eigenaar kan staat schrijven",cRe="Toetsen",dRe="Veranderd van",uRe="dichtbij",pRe="Creëer een Booleaanse status",hRe="Kanaal maken",fRe="Apparaat maken",mRe="Nummerstatus maken",gRe="Staat creëren",vRe="Tekenreeksstatus maken",yRe="d.",_Re="Fr",bRe="Mo",wRe="Za",xRe="Zo",SRe="Th",CRe="Tu",$Re="Wij",kRe="Expert modus",ERe="Alle bestanden",TRe="Audio",ORe="Code/JSON",DRe="Afbeeldingen",ARe="Tekst",IRe="Video",MRe="Instellingen",PRe="zonder",NRe="Functie",RRe="ID",jRe="Naam",LRe="Rol",zRe="Kamer",FRe="Type",BRe="Ongeldige instellingen",WRe="Laatste wijziging",HRe="plaatselijk",URe="april",VRe="aug",qRe="dec",GRe="februari",XRe="jan",JRe="jul",YRe="juni",KRe="Mei",ZRe="mrt",QRe="nov",e5e="Okt",t5e="sept",r5e="april",n5e="aug",o5e="dec",a5e="februari",i5e="jan",s5e="jul",l5e="juni",c5e="Mei",d5e="mrt",u5e="nov",p5e="Okt",h5e="sept",f5e="geen",m5e="Object veranderd door",g5e="Object voor het laatst gewijzigd om",v5e="Instellingen van andere adapter %s",y5e="Kwaliteitscode",_5e="herhalen",b5e='Om een map te selecteren, houdt u gewoon de toets "shift" ingedrukt door op de map te klikken.',w5e="Staat veranderd door",x5e="Object veranderd van",S5e="Tijdstempel",C5e="Erkende vlag",$5e="Opmerking",k5e="Kopieer de statuswaarde",E5e="Aangepaste instellingen",T5e="Object verwijderen",O5e="Object bewerken",D5e="Bewerk de statuswaarde",A5e="Van",I5e="Laatst gewijzigd",M5e="Kwaliteit",P5e="Tijdstempel",N5e="Gebruiker",R5e="Waarde",j5e="Waarde",L5e="Waarschuwing: De CRON-taak wordt elke minuut uitgevoerd gedurende de opgegeven periode!",z5e="Waarschuwing: De CRON-taak wordt elke seconde uitgevoerd gedurende de opgegeven periode!",F5e="CRON",B5e="Datum",W5e="data",H5e="Dag",U5e="Dag van de week",V5e="elk",q5e="elke N dagen",G5e="elke N-de dag van de week",X5e="elke N dag van de week",J5e="elke N uur",Y5e="elke N minuten",K5e="elke N maanden",Z5e="elke N seconden",Q5e="elke dag",e3e="elke dag van de week",t3e="elke dag van de week",r3e="elk uur",n3e="elke minuut",o3e="elke maand",a3e="elke seconde",i3e="Van",s3e="uren",l3e="Interval",c3e="Interval tussen",d3e="Ongeldige CRON",u3e="Notulen",p3e="maanden",h3e="Een keer",f3e="Periode",m3e="seconden",g3e="Gemakkelijk",v3e="Specifieke tijd",y3e="specifieke data",_3e="specifieke dag(en) van de week",b3e="specifieke dag van weken",w3e="specifieke uren",x3e="specifieke minuten",S3e="specifieke maanden",C3e="specifieke seconden",$3e="Tijd",k3e="Naar",E3e="tovenaar",T3e="allemaal",O3e="Astro-dag",D3e="Astro-nacht",A3e="Dageraad",I3e="Schemer",M3e="gouden uur",P3e="Gouden uur einde",N3e="Nadir",R3e="Nautische dageraad",j3e="Nautische schemering",L3e="Nacht",z3e="Nacht einde",F3e="Zonne middag",B3e="zonsopkomst",W3e="Sunrise einde",H3e="Zonsondergang",U3e="Zonsondergang start",V3e="Bij",q3e="op %s",G3e="elke dag",X3e="elk uur",J3e="elke minuut",Y3e="elke maand",K3e="elke %s dag",Z3e="elke %s uur",Q3e="elke %s minuten",eje="elke %s maanden",tje="elke %s weken",rje="elke %s jaar",nje="elke week",oje="elk jaar",aje="van %s tot %s",ije="nooit",sje="op %s van %s",lje="op %s en %s van",cje="op elke datum van",dje="%s",uje="%s en %s",pje="op %s",hje="op %s en %s",fje="in het weekend",mje="op werkdagen",gje="zal niet meer worden uitgevoerd, omdat start verleden tijd is",vje="op %s",yje="van %s",_je="Uitvoeren van tot",bje="tot %s",wje="elk",xje="Specifieke tijd",Sje="van",Cje="Van naar",$je="Interval tijd",kje="omkeren",Eje="geen",Tje="Aan",Oje="Periode",Dje="Dagelijks",Aje="data",Ije="Dag",Mje="elk",Pje="Elke dag",Nje="Elke maand",Rje="Elke week",jje="Elk jaar",Lje="uren",zje="Notulen",Fje="maand",Bje="Maandelijks",Wje="Een keer",Hje="Specifieke maanden",Uje="Week",Vje="Doordeweekse dagen",qje="Weekend",Gje="Wekelijks",Xje="werkdagen",Jje="Jaar",Yje="jaar-",Kje="Specifieke tijd",Zje="Tijd",Qje="naar",e4e="Geldig",t4e="van",r4e="naar",n4e="Hele dag",o4e="elke maand",a4e={"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_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:aNe,"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:iNe,"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:sNe,"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:lNe,ra_Clear:cNe,"ra_Clear filter":"Filter wissen","ra_Clear icon":"Pictogram wissen","ra_Clone current row":"Kloon de huidige rij",ra_Close:dNe,"ra_Collapse all nodes":"Vouw alle knooppunten samen","ra_Collapse one step node":"Eén niveau samenvouwen",ra_Commercial:uNe,ra_Configure:pNe,"ra_Configure visible columns":"Configureer zichtbare kolommen","ra_Confirm deletion of %s":"Bevestig het verwijderen van %s",ra_Connected:hNe,ra_Copied:fNe,"ra_Copied %s":'"%s" gekopieerd',"ra_Copy content":"Inhoud kopiëren",ra_Create:mNe,"ra_Create alias":"Alias maken","ra_Create folder":"Map aanmaken","ra_Create new folder in %s":"Maak een nieuwe map in %s",ra_Crop:gNe,"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:vNe,ra_Delete:yNe,"ra_Delete (no confirm for 5 mins)":"Verwijderen (geen bevestiging gedurende 5 minuten)","ra_Delete current row":"Huidige rij verwijderen","ra_Deselect all":"Deselecteer alles","ra_Device → Channel → State":"Apparaat → Kanaal → Staat",ra_Discard:_Ne,ra_Disconnected:bNe,"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_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 function":"Bewerkingsfunctie","ra_Edit object field":"Bewerk objectveld","ra_Edit role":"Rol bewerken","ra_Edit room":"Kamer bewerken","ra_Edit value":"Waarde bewerken",ra_Error:wNe,"ra_Expand all nodes":"Vouw alle knooppunten uit","ra_Expand one step node":"Vouw een niveau uit","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:xNe,"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:SNe,"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_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 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:CNe,"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_Longitude:$Ne,'ra_May not trigger "updateLicenses"':'Activeert mogelijk niet "updateLicenses"',ra_Message:kNe,ra_Monday:ENe,"ra_Move down":"Naar beneden verplaatsen","ra_Move up":"Omhoog gaan",ra_Name:TNe,"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 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_Objects:ONe,ra_Ok:DNe,"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 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_Private certificate":"Privé certificaat",ra_Product:ANe,"ra_Public certificate":"Openbaar certificaat","ra_Quality code":"Kwaliteit","ra_Refresh tree":"Vernieuw de boom","ra_Reload files":"Laad bestanden opnieuw",ra_Repeat:INe,ra_Replace:MNe,"ra_Request timed out":"Verzoek verlopen","ra_Restrict to folder":"Beperken tot map",ra_Root:PNe,ra_Saturday:NNe,ra_Save:RNe,"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:jNe,"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_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:LNe,"ra_Suitable license not found in license manager":"Geschikte licentie niet gevonden in licentiebeheer",ra_Sunday:zNe,"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:FNe,ra_Timestamp:BNe,"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:WNe,"ra_Unknown error":"Onbekende fout","ra_Unknown error!":"Onbekende fout!",ra_Update:HNe,"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:UNe,ra_Value:VNe,ra_Version:qNe,"ra_View file":"Bestand bekijken","ra_View: %s":"Bekijk: %s",ra_Wednesday:GNe,ra_Width:XNe,ra_Yes:JNe,"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___different__:YNe,ra_aclEveryone_read_object:KNe,ra_aclEveryone_read_state:ZNe,ra_aclEveryone_write_object:QNe,ra_aclEveryone_write_state:eRe,ra_aclGroup_read_object:tRe,ra_aclGroup_read_state:rRe,ra_aclGroup_write_object:nRe,ra_aclGroup_write_state:oRe,ra_aclOwner_read_object:aRe,ra_aclOwner_read_state:iRe,ra_aclOwner_write_object:sRe,ra_aclOwner_write_state:lRe,ra_buttons:cRe,ra_changedFrom:dRe,ra_close:uRe,ra_create_boolean_state:pRe,ra_create_channel:hRe,ra_create_device:fRe,ra_create_number_state:mRe,ra_create_state:gRe,ra_create_string_state:vRe,ra_daysShortText:yRe,ra_dow_Fr:_Re,ra_dow_Mo:bRe,ra_dow_Sa:wRe,ra_dow_Su:xRe,ra_dow_Th:SRe,ra_dow_Tu:CRe,ra_dow_We:$Re,ra_expertMode:kRe,ra_fileType_all:ERe,ra_fileType_audio:TRe,ra_fileType_code:ORe,ra_fileType_images:DRe,ra_fileType_txt:ARe,ra_fileType_video:IRe,"ra_fileType_video,":"Video",ra_filter_customs:MRe,ra_filter_customs_without:PRe,ra_filter_func:NRe,ra_filter_id:RRe,ra_filter_name:jRe,ra_filter_role:LRe,ra_filter_room:zRe,ra_filter_type:FRe,"ra_import data from %s file":"Importeer gegevens uit %s bestand",ra_invalidConfig:BRe,ra_lastChange:WRe,ra_locally:HRe,ra_month_Apr:URe,ra_month_Aug:VRe,ra_month_Dec:qRe,ra_month_Feb:GRe,ra_month_Jan:XRe,ra_month_Jul:JRe,ra_month_Jun:YRe,ra_month_Mai:KRe,ra_month_Mar:ZRe,ra_month_Nov:QRe,ra_month_Oct:e5e,ra_month_Sep:t5e,ra_months_Apr:r5e,ra_months_Aug:n5e,ra_months_Dec:o5e,ra_months_Feb:a5e,ra_months_Jan:i5e,ra_months_Jul:s5e,ra_months_Jun:l5e,ra_months_Mai:c5e,ra_months_Mar:d5e,ra_months_Nov:u5e,ra_months_Oct:p5e,ra_months_Sep:h5e,ra_none:f5e,ra_object_changed_by:m5e,ra_object_changed_by_user:g5e,ra_otherConfig:v5e,ra_qualityCode:y5e,ra_repeat:_5e,ra_select_folder_hint:b5e,ra_state_changed_by:w5e,ra_state_changed_from:x5e,ra_timestamp:S5e,ra_tooltip_ack:C5e,ra_tooltip_comment:$5e,ra_tooltip_copyState:k5e,ra_tooltip_customConfig:E5e,ra_tooltip_deleteObject:T5e,ra_tooltip_editObject:O5e,ra_tooltip_editState:D5e,ra_tooltip_from:A5e,ra_tooltip_lc:I5e,ra_tooltip_quality:M5e,ra_tooltip_ts:P5e,ra_tooltip_user:N5e,ra_tooltip_value:R5e,"ra_use seconds":"gebruik seconden",ra_val:j5e,"ra_via internet":"via internet",ra_warning_every_minute:L5e,ra_warning_every_second:z5e,sc_cron:F5e,sc_date:B5e,sc_dates:W5e,sc_dow:H5e,sc_dows:U5e,sc_every:V5e,sc_everyN_dates:q5e,sc_everyN_dow:G5e,sc_everyN_dows:X5e,sc_everyN_hours:J5e,sc_everyN_minutes:Y5e,sc_everyN_months:K5e,sc_everyN_seconds:Z5e,sc_every_dates:Q5e,sc_every_dow:e3e,sc_every_dows:t3e,sc_every_hours:r3e,sc_every_minutes:n3e,sc_every_months:o3e,sc_every_seconds:a3e,sc_from:i3e,sc_hours:s3e,sc_interval:l3e,sc_intervalBetween:c3e,sc_invalid_cron:d3e,sc_minutes:u3e,sc_months:p3e,sc_once:h3e,sc_period:f3e,sc_seconds:m3e,sc_simple:g3e,sc_specific:v3e,sc_specific_dates:y3e,sc_specific_dow:_3e,sc_specific_dows:b3e,sc_specific_hours:w3e,sc_specific_minutes:x3e,sc_specific_months:S3e,sc_specific_seconds:C3e,sc_time:$3e,sc_to:k3e,sc_wizard:E3e,sch_all:T3e,sch_astroDay:O3e,sch_astroNight:D3e,sch_astro_dawn:A3e,sch_astro_dusk:I3e,sch_astro_goldenHour:M3e,sch_astro_goldenHourEnd:P3e,sch_astro_nadir:N3e,sch_astro_nauticalDawn:R3e,sch_astro_nauticalDusk:j3e,sch_astro_night:L3e,sch_astro_nightEnd:z3e,sch_astro_solarNoon:F3e,sch_astro_sunrise:B3e,sch_astro_sunriseEnd:W3e,sch_astro_sunset:H3e,sch_astro_sunsetStart:U3e,sch_at:V3e,sch_desc_atTime:q3e,sch_desc_everyDay:G3e,sch_desc_everyHour:X3e,sch_desc_everyMinute:J3e,sch_desc_everyMonth:Y3e,sch_desc_everyNDay:K3e,sch_desc_everyNHours:Z3e,sch_desc_everyNMinutes:Q3e,sch_desc_everyNMonths:eje,sch_desc_everyNWeeks:tje,sch_desc_everyNYears:rje,sch_desc_everyWeek:nje,sch_desc_everyYear:oje,sch_desc_intervalFromTo:aje,sch_desc_never:ije,sch_desc_onDate:sje,sch_desc_onDates:lje,sch_desc_onEveryDate:cje,sch_desc_onMonth:dje,sch_desc_onMonths:uje,sch_desc_onWeekday:pje,sch_desc_onWeekdays:hje,sch_desc_onWeekends:fje,sch_desc_onWorkdays:mje,sch_desc_onceInPast:gje,sch_desc_once_on:vje,sch_desc_validFrom:yje,sch_desc_validFromTo:_je,sch_desc_validTo:bje,sch_every:wje,sch_exactTime:xje,sch_from:Sje,sch_fromTo:Cje,sch_intervalTime:$je,sch_invert:kje,sch_no_one:Eje,sch_on:Tje,sch_period:Oje,sch_periodDaily:Dje,sch_periodDates:Aje,sch_periodDay:Ije,sch_periodEvery:Mje,sch_periodEveryDay:Pje,sch_periodEveryMonth:Nje,sch_periodEveryWeek:Rje,sch_periodEveryYear:jje,sch_periodHours:Lje,sch_periodMinutes:zje,sch_periodMonth:Fje,sch_periodMonthly:Bje,sch_periodOnce:Wje,sch_periodSpecificMonths:Hje,sch_periodWeek:Uje,sch_periodWeekdays:Vje,sch_periodWeekend:qje,sch_periodWeekly:Gje,sch_periodWorkdays:Xje,sch_periodYear:Jje,sch_periodYearly:Yje,sch_specificTime:Kje,sch_time:Zje,sch_to:Qje,sch_valid:e4e,sch_validFrom:t4e,sch_validTo:r4e,sch_wholeDay:n4e,sch_yearEveryMonth:o4e},i4e="Ajouter",s4e="Annuler",l4e="Catégories",c4e="Vérifié",d4e="Effacer",u4e="Fermer",p4e="Commercial",h4e="Configurer",f4e="Lié",m4e="Copié",g4e="Créer",v4e="Recadrer",y4e="Delete",_4e="Supprimer",b4e="Jeter",w4e="Débranché",x4e="Erreur",S4e="Filtre",C4e="Vendredi",$4e="Latitude",k4e="Longitude",E4e="Message",T4e="Lundi",O4e="Nom",D4e="Objets",A4e="D'accord",I4e="Produit",M4e="Répéter",P4e="Remplacer",N4e="Racine",R4e="Samedi",j4e="sauver",L4e="Choisi",z4e="États",F4e="Dimanche",B4e="Jeudi",W4e="Horodatage",H4e="Mardi",U4e="Mise à jour",V4e="Valable jusqu'au",q4e="Valeur",G4e="Version",X4e="Mercredi",J4e="Largeur",Y4e="Oui",K4e="différent",Z4e="Tout le monde peut lire un objet",Q4e="Tout le monde peut lire l'état",eLe="Tout le monde peut écrire un objet",tLe="Tout le monde peut écrire l'état",rLe="Le groupe peut lire l'objet",nLe="Le groupe peut lire l'état",oLe="Le groupe peut écrire un objet",aLe="Le groupe peut écrire l'état",iLe="Le propriétaire peut lire l'objet",sLe="Le propriétaire peut lire l'état",lLe="Le propriétaire peut écrire un objet",cLe="Le propriétaire peut écrire l'état",dLe="Boutons",uLe="Changé de",pLe="Fermer",hLe="Créer un état booléen",fLe="Créer une chaîne",mLe="Créer un appareil",gLe="Créer un état de numéro",vLe="Créer un état",yLe="Créer un état de chaîne",_Le="j.",bLe="Fr",wLe="Mo",xLe="Sa",SLe="Su",CLe="Th",$Le="Tu",kLe="Nous",ELe="Mode expert",TLe="Tous les fichiers",OLe="l'audio",DLe="Code/JSON",ALe="Images",ILe="Texte",MLe="Vidéo",PLe="Paramètres",NLe="sans",RLe="Une fonction",jLe="ID",LLe="Prénom",zLe="Rôle",FLe="Pièce",BLe="Type",WLe="Paramètres invalides",HLe="Dernier changement",ULe="localement",VLe="Avr",qLe="Août",GLe="Déc",XLe="Fév",JLe="Jan",YLe="Juil",KLe="Juin",ZLe="Mai",QLe="Mar",eze="Nov",tze="Oct",rze="Sep",nze="Avr",oze="Août",aze="Déc",ize="Fév",sze="Jan",lze="Juil",cze="Juin",dze="Mai",uze="Mar",pze="Nov",hze="Oct",fze="Sep",mze="rien",gze="Objet modifié par",vze="Objet modifié pour la dernière fois à",yze="Paramètres d'un autre adaptateur %s",_ze="Code de qualité",bze="répéter",wze='Pour sélectionner un dossier, maintenez simplement la touche "shift" enfoncée en cliquant sur le dossier.',xze="État modifié par",Sze="Objet changé de",Cze="Horodatage",$ze="Drapeau reconnu",kze="Commentaire",Eze="Copiez la valeur d'état",Tze="Paramètres personnalisés",Oze="Supprimer un objet",Dze="Modifier l'objet",Aze="Modifier la valeur d'état",Ize="De",Mze="Dernière modification",Pze="Qualité",Nze="Horodatage",Rze="Utilisateur",jze="Valeur",Lze="Valeur",zze="Attention : la tâche CRON s’exécutera toutes les minutes pendant la période spécifiée !",Fze="Attention : la tâche CRON s’exécutera toutes les secondes pendant la période spécifiée !",Bze="CRON",Wze="Date",Hze="Rendez-vous",Uze="Jour",Vze="Jour de la semaine",qze="Chaque",Gze="tous les N jours",Xze="chaque Nième jour de la semaine",Jze="tous les N jours de la semaine",Yze="toutes les N heures",Kze="toutes les N minutes",Zze="tous les N mois",Qze="toutes les N secondes",e6e="tous les jours",t6e="Chaque jour de la semaine",r6e="Chaque jour de la semaine",n6e="Toutes les heures",o6e="chaque minute",a6e="chaque mois",i6e="chaque seconde",s6e="De",l6e="Heures",c6e="Intervalle",d6e="Intervalle entre",u6e="CRON non valide",p6e="Minutes",h6e="mois",f6e="Une fois que",m6e="Période",g6e="Secondes",v6e="Facile",y6e="Temps spécifique",_6e="dates spécifiques",b6e="jour(s) spécifique(s) de la semaine",w6e="jour spécifique de semaines",x6e="heures spécifiques",S6e="minutes spécifiques",C6e="mois spécifiques",$6e="secondes spécifiques",k6e="Temps",E6e="À",T6e="sorcier",O6e="tout",D6e="Journée astronomique",A6e="Nuit astronomique",I6e="Aube",M6e="Crépuscule",P6e="Heure d'or",N6e="Fin de l'heure d'or",R6e="Nadir",j6e="Aube nautique",L6e="Crépuscule nautique",z6e="Nuit",F6e="Fin de nuit",B6e="Midi solaire",W6e="lever du soleil",H6e="Fin du lever du soleil",U6e="Le coucher du soleil",V6e="Coucher du soleil",q6e="à",G6e="à %s",X6e="tous les jours",J6e="Toutes les heures",Y6e="chaque minute",K6e="chaque mois",Z6e="chaque %s jour",Q6e="chaque %s heures",eFe="toutes les %s minutes",tFe="tous les %s mois",rFe="chaque %s semaines",nFe="tous les %s ans",oFe="toutes les semaines",aFe="chaque année",iFe="de %s à %s",sFe="jamais",lFe="sur %s de %s",cFe="sur %s et %s de",dFe="à chaque date de",uFe="%s",pFe="%s et %s",hFe="sur %s",fFe="sur %s et %s",mFe="les weekends",gFe="les jours ouvrables",vFe="ne sera plus exécuté, car start est dans le passé",yFe="sur %s",_Fe="de %s",bFe="Exécuter de à",wFe="à %s",xFe="chaque",SFe="Temps spécifique",CFe="de",$Fe="De à",kFe="Temps d'interval",EFe="inverser",TFe="aucun",OFe="sur",DFe="Période",AFe="du quotidien",IFe="Rendez-vous",MFe="journée",PFe="Chaque",NFe="Tous les jours",RFe="Chaque mois",jFe="Toutes les semaines",LFe="Chaque année",zFe="Heures",FFe="Minutes",BFe="mois",WFe="Mensuel",HFe="Une fois que",UFe="Mois spécifiques",VFe="La semaine",qFe="Jours de la semaine",GFe="Weekend",XFe="Hebdomadaire",JFe="Jours ouvrables",YFe="Année",KFe="Annuel",ZFe="Temps spécifique",QFe="Temps",e8e="à",t8e="Valide",r8e="de",n8e="à",o8e="Toute la journée",a8e="chaque mois",i8e={"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_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:i4e,"ra_Append %s entries or replace existing?":"Ajouter %s entrées ou remplacer l'existant ?","ra_Append or replace?":"Ajouter ou remplacer ?","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:s4e,"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 : 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 : %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:l4e,"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:c4e,ra_Clear:d4e,"ra_Clear filter":"Effacer le filtre","ra_Clear icon":"Effacer l'icône","ra_Clone current row":"Cloner la ligne actuelle",ra_Close:u4e,"ra_Collapse all nodes":"Réduire tous les nœuds","ra_Collapse one step node":"Réduire d'un niveau",ra_Commercial:p4e,ra_Configure:h4e,"ra_Configure visible columns":"Configurer les colonnes visibles","ra_Confirm deletion of %s":"Confirmer la suppression de %s",ra_Connected:f4e,ra_Copied:m4e,"ra_Copied %s":'"%s" copié',"ra_Copy content":"Copier le contenu",ra_Create:g4e,"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:v4e,"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:y4e,ra_Delete:_4e,"ra_Delete (no confirm for 5 mins)":"Supprimer (pas de confirmation pendant 5 minutes)","ra_Delete current row":"Supprimer la ligne actuelle","ra_Deselect all":"Tout déselectionner","ra_Device → Channel → State":"Appareil → Canal → État",ra_Discard:b4e,ra_Disconnected:w4e,"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_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 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_Error:x4e,"ra_Expand all nodes":"Développer tous les nœuds","ra_Expand one step node":"Développer un niveau","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:S4e,"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:C4e,"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_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 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:$4e,"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 ?","ra_Listen on all IPs":"Écoutez sur toutes les adresses IP","ra_Load configuration from file":"Charger la configuration à partir du fichier",ra_Longitude:k4e,'ra_May not trigger "updateLicenses"':'Peut ne pas déclencher "updateLicences"',ra_Message:E4e,ra_Monday:T4e,"ra_Move down":"Descendre","ra_Move up":"Déplacer vers le haut",ra_Name:O4e,"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 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_Objects:D4e,ra_Ok:A4e,"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 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_Private certificate":"Certificat privé",ra_Product:I4e,"ra_Public certificate":"Certificat public","ra_Quality code":"Qualité","ra_Refresh tree":"Rafraîchir l'arborescence","ra_Reload files":"Recharger les fichiers",ra_Repeat:M4e,ra_Replace:P4e,"ra_Request timed out":"La demande a expiré","ra_Restrict to folder":"Restreindre au dossier",ra_Root:N4e,ra_Saturday:R4e,ra_Save:j4e,"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:L4e,"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_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:z4e,"ra_Suitable license not found in license manager":"Licence appropriée introuvable dans le gestionnaire de licences",ra_Sunday:F4e,"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:B4e,ra_Timestamp:W4e,"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:H4e,"ra_Unknown error":"Erreur inconnue","ra_Unknown error!":"Erreur inconnue!",ra_Update:U4e,"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:V4e,ra_Value:q4e,ra_Version:G4e,"ra_View file":"Voir la fiche","ra_View: %s":"Affichage : %s",ra_Wednesday:X4e,ra_Width:J4e,ra_Yes:Y4e,"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___different__:K4e,ra_aclEveryone_read_object:Z4e,ra_aclEveryone_read_state:Q4e,ra_aclEveryone_write_object:eLe,ra_aclEveryone_write_state:tLe,ra_aclGroup_read_object:rLe,ra_aclGroup_read_state:nLe,ra_aclGroup_write_object:oLe,ra_aclGroup_write_state:aLe,ra_aclOwner_read_object:iLe,ra_aclOwner_read_state:sLe,ra_aclOwner_write_object:lLe,ra_aclOwner_write_state:cLe,ra_buttons:dLe,ra_changedFrom:uLe,ra_close:pLe,ra_create_boolean_state:hLe,ra_create_channel:fLe,ra_create_device:mLe,ra_create_number_state:gLe,ra_create_state:vLe,ra_create_string_state:yLe,ra_daysShortText:_Le,ra_dow_Fr:bLe,ra_dow_Mo:wLe,ra_dow_Sa:xLe,ra_dow_Su:SLe,ra_dow_Th:CLe,ra_dow_Tu:$Le,ra_dow_We:kLe,ra_expertMode:ELe,ra_fileType_all:TLe,ra_fileType_audio:OLe,ra_fileType_code:DLe,ra_fileType_images:ALe,ra_fileType_txt:ILe,ra_fileType_video:MLe,"ra_fileType_video,":"Vidéo",ra_filter_customs:PLe,ra_filter_customs_without:NLe,ra_filter_func:RLe,ra_filter_id:jLe,ra_filter_name:LLe,ra_filter_role:zLe,ra_filter_room:FLe,ra_filter_type:BLe,"ra_import data from %s file":"Importer des données à partir du fichier %s",ra_invalidConfig:WLe,ra_lastChange:HLe,ra_locally:ULe,ra_month_Apr:VLe,ra_month_Aug:qLe,ra_month_Dec:GLe,ra_month_Feb:XLe,ra_month_Jan:JLe,ra_month_Jul:YLe,ra_month_Jun:KLe,ra_month_Mai:ZLe,ra_month_Mar:QLe,ra_month_Nov:eze,ra_month_Oct:tze,ra_month_Sep:rze,ra_months_Apr:nze,ra_months_Aug:oze,ra_months_Dec:aze,ra_months_Feb:ize,ra_months_Jan:sze,ra_months_Jul:lze,ra_months_Jun:cze,ra_months_Mai:dze,ra_months_Mar:uze,ra_months_Nov:pze,ra_months_Oct:hze,ra_months_Sep:fze,ra_none:mze,ra_object_changed_by:gze,ra_object_changed_by_user:vze,ra_otherConfig:yze,ra_qualityCode:_ze,ra_repeat:bze,ra_select_folder_hint:wze,ra_state_changed_by:xze,ra_state_changed_from:Sze,ra_timestamp:Cze,ra_tooltip_ack:$ze,ra_tooltip_comment:kze,ra_tooltip_copyState:Eze,ra_tooltip_customConfig:Tze,ra_tooltip_deleteObject:Oze,ra_tooltip_editObject:Dze,ra_tooltip_editState:Aze,ra_tooltip_from:Ize,ra_tooltip_lc:Mze,ra_tooltip_quality:Pze,ra_tooltip_ts:Nze,ra_tooltip_user:Rze,ra_tooltip_value:jze,"ra_use seconds":"utiliser les secondes",ra_val:Lze,"ra_via internet":"par Internet",ra_warning_every_minute:zze,ra_warning_every_second:Fze,sc_cron:Bze,sc_date:Wze,sc_dates:Hze,sc_dow:Uze,sc_dows:Vze,sc_every:qze,sc_everyN_dates:Gze,sc_everyN_dow:Xze,sc_everyN_dows:Jze,sc_everyN_hours:Yze,sc_everyN_minutes:Kze,sc_everyN_months:Zze,sc_everyN_seconds:Qze,sc_every_dates:e6e,sc_every_dow:t6e,sc_every_dows:r6e,sc_every_hours:n6e,sc_every_minutes:o6e,sc_every_months:a6e,sc_every_seconds:i6e,sc_from:s6e,sc_hours:l6e,sc_interval:c6e,sc_intervalBetween:d6e,sc_invalid_cron:u6e,sc_minutes:p6e,sc_months:h6e,sc_once:f6e,sc_period:m6e,sc_seconds:g6e,sc_simple:v6e,sc_specific:y6e,sc_specific_dates:_6e,sc_specific_dow:b6e,sc_specific_dows:w6e,sc_specific_hours:x6e,sc_specific_minutes:S6e,sc_specific_months:C6e,sc_specific_seconds:$6e,sc_time:k6e,sc_to:E6e,sc_wizard:T6e,sch_all:O6e,sch_astroDay:D6e,sch_astroNight:A6e,sch_astro_dawn:I6e,sch_astro_dusk:M6e,sch_astro_goldenHour:P6e,sch_astro_goldenHourEnd:N6e,sch_astro_nadir:R6e,sch_astro_nauticalDawn:j6e,sch_astro_nauticalDusk:L6e,sch_astro_night:z6e,sch_astro_nightEnd:F6e,sch_astro_solarNoon:B6e,sch_astro_sunrise:W6e,sch_astro_sunriseEnd:H6e,sch_astro_sunset:U6e,sch_astro_sunsetStart:V6e,sch_at:q6e,sch_desc_atTime:G6e,sch_desc_everyDay:X6e,sch_desc_everyHour:J6e,sch_desc_everyMinute:Y6e,sch_desc_everyMonth:K6e,sch_desc_everyNDay:Z6e,sch_desc_everyNHours:Q6e,sch_desc_everyNMinutes:eFe,sch_desc_everyNMonths:tFe,sch_desc_everyNWeeks:rFe,sch_desc_everyNYears:nFe,sch_desc_everyWeek:oFe,sch_desc_everyYear:aFe,sch_desc_intervalFromTo:iFe,sch_desc_never:sFe,sch_desc_onDate:lFe,sch_desc_onDates:cFe,sch_desc_onEveryDate:dFe,sch_desc_onMonth:uFe,sch_desc_onMonths:pFe,sch_desc_onWeekday:hFe,sch_desc_onWeekdays:fFe,sch_desc_onWeekends:mFe,sch_desc_onWorkdays:gFe,sch_desc_onceInPast:vFe,sch_desc_once_on:yFe,sch_desc_validFrom:_Fe,sch_desc_validFromTo:bFe,sch_desc_validTo:wFe,sch_every:xFe,sch_exactTime:SFe,sch_from:CFe,sch_fromTo:$Fe,sch_intervalTime:kFe,sch_invert:EFe,sch_no_one:TFe,sch_on:OFe,sch_period:DFe,sch_periodDaily:AFe,sch_periodDates:IFe,sch_periodDay:MFe,sch_periodEvery:PFe,sch_periodEveryDay:NFe,sch_periodEveryMonth:RFe,sch_periodEveryWeek:jFe,sch_periodEveryYear:LFe,sch_periodHours:zFe,sch_periodMinutes:FFe,sch_periodMonth:BFe,sch_periodMonthly:WFe,sch_periodOnce:HFe,sch_periodSpecificMonths:UFe,sch_periodWeek:VFe,sch_periodWeekdays:qFe,sch_periodWeekend:GFe,sch_periodWeekly:XFe,sch_periodWorkdays:JFe,sch_periodYear:YFe,sch_periodYearly:KFe,sch_specificTime:ZFe,sch_time:QFe,sch_to:e8e,sch_valid:t8e,sch_validFrom:r8e,sch_validTo:n8e,sch_wholeDay:o8e,sch_yearEveryMonth:a8e},s8e="Aggiungere",l8e="Annulla",c8e="Categorie",d8e="Controllato",u8e="Elimina",p8e="Vicino",h8e="Commerciale",f8e="Configura",m8e="Collegato",g8e="Copiato",v8e="Creare",y8e="Raccolto",_8e="Delete",b8e="Elimina",w8e="Scartare",x8e="Disconnesso",S8e="Errore",C8e="Filtro",$8e="Venerdì",k8e="Latitudine",E8e="Longitudine",T8e="Messaggio",O8e="Lunedi",D8e="Nome",A8e="Oggetti",I8e="Ok",M8e="Prodotto",P8e="Ripetere",N8e="Sostituire",R8e="Radice",j8e="Sabato",L8e="Salva",z8e="Selezionato",F8e="stati",B8e="Domenica",W8e="Giovedì",H8e="Timestamp",U8e="Martedì",V8e="Aggiornare",q8e="Valido fino a",G8e="Valore",X8e="Versione",J8e="Mercoledì",Y8e="Larghezza",K8e="SÌ",Z8e="diverso",Q8e="Tutti possono leggere gli oggetti",eBe="Tutti possono leggere lo stato",tBe="Tutti possono scrivere oggetti",rBe="Tutti possono scrivere stato",nBe="Il gruppo può leggere l'oggetto",oBe="Il gruppo può leggere lo stato",aBe="Il gruppo può scrivere l'oggetto",iBe="Il gruppo può scrivere lo stato",sBe="Il proprietario può leggere l'oggetto",lBe="Il proprietario può leggere lo stato",cBe="Il proprietario può scrivere l'oggetto",dBe="Il proprietario può scrivere lo stato",uBe="Bottoni",pBe="Cambiato da",hBe="vicino",fBe="Crea uno stato booleano",mBe="Crea canale",gBe="Crea dispositivo",vBe="Crea lo stato del numero",yBe="Crea stato",_Be="Crea lo stato della stringa",bBe="g.",wBe="fr",xBe="momento",SBe="Sa",CBe="su",$Be="th",kBe="Tu",EBe="Noi",TBe="Modalità esperto",OBe="Tutti i files",DBe="Audio",ABe="Codice/JSON",IBe="immagini",MBe="Testo",PBe="video",NBe="impostazioni",RBe="senza",jBe="Funzione",LBe="ID",zBe="Nome",FBe="Ruolo",BBe="Camera",WBe="genere",HBe="Impostazioni non valide",UBe="Ultima modifica",VBe="localmente",qBe="apr",GBe="agosto",XBe="Dic",JBe="febbraio",YBe="gen",KBe="lug",ZBe="giu",QBe="Mai",e9e="marzo",t9e="nov",r9e="ottobre",n9e="Sett",o9e="apr",a9e="agosto",i9e="Dic",s9e="febbraio",l9e="gen",c9e="lug",d9e="giu",u9e="Mai",p9e="marzo",h9e="nov",f9e="ottobre",m9e="Sett",g9e="nessuna",v9e="Oggetto modificato da",y9e="L'oggetto è stato modificato l'ultima volta alle",_9e="Impostazioni dall'altro adattatore %s",b9e="Codice di qualità",w9e="ripetere",x9e='Per selezionare la cartella, basta tenere premuto il tasto "shift" facendo clic sulla cartella.',S9e="Stato cambiato da",C9e="Oggetto cambiato da",$9e="Timestamp",k9e="Bandiera riconosciuta",E9e="Commento",T9e="Copia il valore dello stato",O9e="Impostazioni personalizzate",D9e="Elimina oggetto",A9e="Modifica oggetto",I9e="Modifica il valore dello stato",M9e="A partire dal",P9e="Ultima modifica",N9e="Qualità",R9e="Data e ora",j9e="Utente",L9e="Valore",z9e="Valore",F9e="Attenzione: il processo CRON verrà eseguito ogni minuto durante il periodo specificato!",B9e="Attenzione: il processo CRON verrà eseguito ogni secondo durante il periodo specificato!",W9e="CRON",H9e="Data",U9e="Date",V9e="Giorno",q9e="Giorno della settimana",G9e="Ogni",X9e="ogni N giorni",J9e="ogni Nesimo giorno della settimana",Y9e="ogni N giorno della settimana",K9e="ogni N ore",Z9e="ogni N minuti",Q9e="ogni N mesi",e7e="ogni N secondi",t7e="ogni giorno",r7e="Tutti i giorni della settimana",n7e="Tutti i giorni della settimana",o7e="ogni ora",a7e="ogni minuto",i7e="ogni mese",s7e="ogni secondo",l7e="A partire dal",c7e="Ore",d7e="Intervallo",u7e="Intervallo tra",p7e="CRON non valido",h7e="Minuti",f7e="mesi",m7e="Una volta",g7e="Periodo",v7e="secondi",y7e="Semplice",_7e="Orario preciso",b7e="date specifiche",w7e="giorno/i specifico/i della settimana",x7e="giorno specifico delle settimane",S7e="orari specifici",C7e="minuti specifici",$7e="mesi specifici",k7e="secondi specifici",E7e="Tempo",T7e="Per",O7e="procedura guidata",D7e="tutti",A7e="Astro day",I7e="Astro night",M7e="Alba",P7e="Crepuscolo",N7e="Ora d'oro",R7e="Fine dell'ora d'oro",j7e="Nadir",L7e="Alba nautica",z7e="Crepuscolo nautico",F7e="Notte",B7e="Fine della notte",W7e="Mezzogiorno solare",H7e="Alba",U7e="Fine dell'alba",V7e="Tramonto",q7e="Inizio del tramonto",G7e="a",X7e="a %s",J7e="ogni giorno",Y7e="ogni ora",K7e="ogni minuto",Z7e="ogni mese",Q7e="ogni %s giorno",eWe="ogni %s ore",tWe="ogni %s minuti",rWe="ogni %s mesi",nWe="ogni %s settimane",oWe="ogni %s anni",aWe="ogni settimana",iWe="ogni anno",sWe="da %s a %s",lWe="mai",cWe="su %s di %s",dWe="su %s e %s di",uWe="in ogni data di",pWe="%s",hWe="%s e %s",fWe="su %s",mWe="su %s e %s",gWe="nei finesettimana",vWe="nei giorni lavorativi",yWe="non verrà più eseguito, perché start è nel passato",_We="su %s",bWe="da %s",wWe="Eseguire da a",xWe="a %s",SWe="ogni",CWe="Orario preciso",$We="a partire dal",kWe="Da A",EWe="Intervallo di tempo",TWe="invertire",OWe="nessuna",DWe="sopra",AWe="Periodo",IWe="Quotidiano",MWe="Date",PWe="Giorno",NWe="Ogni",RWe="Ogni giorno",jWe="Ogni mese",LWe="Ogni settimana",zWe="Ogni anno",FWe="Ore",BWe="Minuti",WWe="mese",HWe="Mensile",UWe="Una volta",VWe="Mesi specifici",qWe="Settimana",GWe="Giorni della settimana",XWe="Fine settimana",JWe="settimanalmente",YWe="giorni feriali",KWe="Anno",ZWe="Annuale",QWe="Orario preciso",eHe="Tempo",tHe="per",rHe="Valido",nHe="a partire dal",oHe="per",aHe="Giorno intero",iHe="ogni mese",sHe={"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_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:s8e,"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:l8e,"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:c8e,"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:d8e,ra_Clear:u8e,"ra_Clear filter":"Filtro pulito","ra_Clear icon":"Cancella icona","ra_Clone current row":"Clona riga corrente",ra_Close:p8e,"ra_Collapse all nodes":"Comprimi tutti i nodi","ra_Collapse one step node":"Comprimi un livello",ra_Commercial:h8e,ra_Configure:f8e,"ra_Configure visible columns":"Configura colonne visibili","ra_Confirm deletion of %s":"Conferma l'eliminazione di %s",ra_Connected:m8e,ra_Copied:g8e,"ra_Copied %s":'"%s" copiato',"ra_Copy content":"Copia contenuto",ra_Create:v8e,"ra_Create alias":"Crea alias","ra_Create folder":"Creare una cartella","ra_Create new folder in %s":"Crea nuova cartella in %s",ra_Crop:y8e,"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:_8e,ra_Delete:b8e,"ra_Delete (no confirm for 5 mins)":"Elimina (nessuna conferma per 5 minuti)","ra_Delete current row":"Elimina la riga corrente","ra_Deselect all":"Deseleziona tutto","ra_Device → Channel → State":"Dispositivo → Canale → Stato",ra_Discard:w8e,ra_Disconnected:x8e,"ra_Do not export values of states":"Non esportare i valori degli stati","ra_Do not use let's encrypt":"Non utilizzare crittografiamo","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 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_Error:S8e,"ra_Expand all nodes":"Espandi tutti i nodi","ra_Expand one step node":"Espandi un livello","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:C8e,"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:$8e,"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_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 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:k8e,"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_Longitude:E8e,'ra_May not trigger "updateLicenses"':'Potrebbe non attivare "updateLicenses"',ra_Message:T8e,ra_Monday:O8e,"ra_Move down":"Abbassati","ra_Move up":"Andare avanti",ra_Name:D8e,"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 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_Objects:A8e,ra_Ok:I8e,"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 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_Private certificate":"Certificato privato",ra_Product:M8e,"ra_Public certificate":"Certificato pubblico","ra_Quality code":"Qualità","ra_Refresh tree":"Aggiorna l'albero","ra_Reload files":"Ricarica i file",ra_Repeat:P8e,ra_Replace:N8e,"ra_Request timed out":"Tempo scaduto per la richiesta","ra_Restrict to folder":"Limita alla cartella",ra_Root:R8e,ra_Saturday:j8e,ra_Save:L8e,"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:z8e,"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_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:F8e,"ra_Suitable license not found in license manager":"Licenza adatta non trovata nel gestore delle licenze",ra_Sunday:B8e,"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:W8e,ra_Timestamp:H8e,"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:U8e,"ra_Unknown error":"Errore sconosciuto","ra_Unknown error!":"Errore sconosciuto!",ra_Update:V8e,"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:q8e,ra_Value:G8e,ra_Version:X8e,"ra_View file":"Vedi il file","ra_View: %s":"Visualizza: %s",ra_Wednesday:J8e,ra_Width:Y8e,ra_Yes:K8e,"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___different__:Z8e,ra_aclEveryone_read_object:Q8e,ra_aclEveryone_read_state:eBe,ra_aclEveryone_write_object:tBe,ra_aclEveryone_write_state:rBe,ra_aclGroup_read_object:nBe,ra_aclGroup_read_state:oBe,ra_aclGroup_write_object:aBe,ra_aclGroup_write_state:iBe,ra_aclOwner_read_object:sBe,ra_aclOwner_read_state:lBe,ra_aclOwner_write_object:cBe,ra_aclOwner_write_state:dBe,ra_buttons:uBe,ra_changedFrom:pBe,ra_close:hBe,ra_create_boolean_state:fBe,ra_create_channel:mBe,ra_create_device:gBe,ra_create_number_state:vBe,ra_create_state:yBe,ra_create_string_state:_Be,ra_daysShortText:bBe,ra_dow_Fr:wBe,ra_dow_Mo:xBe,ra_dow_Sa:SBe,ra_dow_Su:CBe,ra_dow_Th:$Be,ra_dow_Tu:kBe,ra_dow_We:EBe,ra_expertMode:TBe,ra_fileType_all:OBe,ra_fileType_audio:DBe,ra_fileType_code:ABe,ra_fileType_images:IBe,ra_fileType_txt:MBe,ra_fileType_video:PBe,"ra_fileType_video,":"video",ra_filter_customs:NBe,ra_filter_customs_without:RBe,ra_filter_func:jBe,ra_filter_id:LBe,ra_filter_name:zBe,ra_filter_role:FBe,ra_filter_room:BBe,ra_filter_type:WBe,"ra_import data from %s file":"Importa dati dal file %s",ra_invalidConfig:HBe,ra_lastChange:UBe,ra_locally:VBe,ra_month_Apr:qBe,ra_month_Aug:GBe,ra_month_Dec:XBe,ra_month_Feb:JBe,ra_month_Jan:YBe,ra_month_Jul:KBe,ra_month_Jun:ZBe,ra_month_Mai:QBe,ra_month_Mar:e9e,ra_month_Nov:t9e,ra_month_Oct:r9e,ra_month_Sep:n9e,ra_months_Apr:o9e,ra_months_Aug:a9e,ra_months_Dec:i9e,ra_months_Feb:s9e,ra_months_Jan:l9e,ra_months_Jul:c9e,ra_months_Jun:d9e,ra_months_Mai:u9e,ra_months_Mar:p9e,ra_months_Nov:h9e,ra_months_Oct:f9e,ra_months_Sep:m9e,ra_none:g9e,ra_object_changed_by:v9e,ra_object_changed_by_user:y9e,ra_otherConfig:_9e,ra_qualityCode:b9e,ra_repeat:w9e,ra_select_folder_hint:x9e,ra_state_changed_by:S9e,ra_state_changed_from:C9e,ra_timestamp:$9e,ra_tooltip_ack:k9e,ra_tooltip_comment:E9e,ra_tooltip_copyState:T9e,ra_tooltip_customConfig:O9e,ra_tooltip_deleteObject:D9e,ra_tooltip_editObject:A9e,ra_tooltip_editState:I9e,ra_tooltip_from:M9e,ra_tooltip_lc:P9e,ra_tooltip_quality:N9e,ra_tooltip_ts:R9e,ra_tooltip_user:j9e,ra_tooltip_value:L9e,"ra_use seconds":"usa i secondi",ra_val:z9e,"ra_via internet":"attraverso internet",ra_warning_every_minute:F9e,ra_warning_every_second:B9e,sc_cron:W9e,sc_date:H9e,sc_dates:U9e,sc_dow:V9e,sc_dows:q9e,sc_every:G9e,sc_everyN_dates:X9e,sc_everyN_dow:J9e,sc_everyN_dows:Y9e,sc_everyN_hours:K9e,sc_everyN_minutes:Z9e,sc_everyN_months:Q9e,sc_everyN_seconds:e7e,sc_every_dates:t7e,sc_every_dow:r7e,sc_every_dows:n7e,sc_every_hours:o7e,sc_every_minutes:a7e,sc_every_months:i7e,sc_every_seconds:s7e,sc_from:l7e,sc_hours:c7e,sc_interval:d7e,sc_intervalBetween:u7e,sc_invalid_cron:p7e,sc_minutes:h7e,sc_months:f7e,sc_once:m7e,sc_period:g7e,sc_seconds:v7e,sc_simple:y7e,sc_specific:_7e,sc_specific_dates:b7e,sc_specific_dow:w7e,sc_specific_dows:x7e,sc_specific_hours:S7e,sc_specific_minutes:C7e,sc_specific_months:$7e,sc_specific_seconds:k7e,sc_time:E7e,sc_to:T7e,sc_wizard:O7e,sch_all:D7e,sch_astroDay:A7e,sch_astroNight:I7e,sch_astro_dawn:M7e,sch_astro_dusk:P7e,sch_astro_goldenHour:N7e,sch_astro_goldenHourEnd:R7e,sch_astro_nadir:j7e,sch_astro_nauticalDawn:L7e,sch_astro_nauticalDusk:z7e,sch_astro_night:F7e,sch_astro_nightEnd:B7e,sch_astro_solarNoon:W7e,sch_astro_sunrise:H7e,sch_astro_sunriseEnd:U7e,sch_astro_sunset:V7e,sch_astro_sunsetStart:q7e,sch_at:G7e,sch_desc_atTime:X7e,sch_desc_everyDay:J7e,sch_desc_everyHour:Y7e,sch_desc_everyMinute:K7e,sch_desc_everyMonth:Z7e,sch_desc_everyNDay:Q7e,sch_desc_everyNHours:eWe,sch_desc_everyNMinutes:tWe,sch_desc_everyNMonths:rWe,sch_desc_everyNWeeks:nWe,sch_desc_everyNYears:oWe,sch_desc_everyWeek:aWe,sch_desc_everyYear:iWe,sch_desc_intervalFromTo:sWe,sch_desc_never:lWe,sch_desc_onDate:cWe,sch_desc_onDates:dWe,sch_desc_onEveryDate:uWe,sch_desc_onMonth:pWe,sch_desc_onMonths:hWe,sch_desc_onWeekday:fWe,sch_desc_onWeekdays:mWe,sch_desc_onWeekends:gWe,sch_desc_onWorkdays:vWe,sch_desc_onceInPast:yWe,sch_desc_once_on:_We,sch_desc_validFrom:bWe,sch_desc_validFromTo:wWe,sch_desc_validTo:xWe,sch_every:SWe,sch_exactTime:CWe,sch_from:$We,sch_fromTo:kWe,sch_intervalTime:EWe,sch_invert:TWe,sch_no_one:OWe,sch_on:DWe,sch_period:AWe,sch_periodDaily:IWe,sch_periodDates:MWe,sch_periodDay:PWe,sch_periodEvery:NWe,sch_periodEveryDay:RWe,sch_periodEveryMonth:jWe,sch_periodEveryWeek:LWe,sch_periodEveryYear:zWe,sch_periodHours:FWe,sch_periodMinutes:BWe,sch_periodMonth:WWe,sch_periodMonthly:HWe,sch_periodOnce:UWe,sch_periodSpecificMonths:VWe,sch_periodWeek:qWe,sch_periodWeekdays:GWe,sch_periodWeekend:XWe,sch_periodWeekly:JWe,sch_periodWorkdays:YWe,sch_periodYear:KWe,sch_periodYearly:ZWe,sch_specificTime:QWe,sch_time:eHe,sch_to:tHe,sch_valid:rHe,sch_validFrom:nHe,sch_validTo:oHe,sch_wholeDay:aHe,sch_yearEveryMonth:iHe},lHe="Adjuntar",cHe="Cancelar",dHe="Categorías",uHe="Comprobado",pHe="Borrar",hHe="Cerca",fHe="Comercial",mHe="Configurar",gHe="Conectado",vHe="Copiado",yHe="Crear",_He="Cultivo",bHe="Delete",wHe="Eliminar",xHe="Desechar",SHe="Desconectado",CHe="Error",$He="Filtrar",kHe="Viernes",EHe="Latitud",THe="Longitud",OHe="Mensaje",DHe="Lunes",AHe="Nombre",IHe="Objetos",MHe="Okay",PHe="Producto",NHe="Repetir",RHe="Reemplazar",jHe="Raíz",LHe="Sábado",zHe="Salvar",FHe="Seleccionado",BHe="Estados",WHe="Domingo",HHe="Jueves",UHe="Marca de tiempo",VHe="Martes",qHe="Actualizar",GHe="Válida hasta",XHe="Valor",JHe="Versión",YHe="Miércoles",KHe="Anchura",ZHe="Sí",QHe="diferente",eUe="Todo el mundo puede leer el objeto",tUe="Todos pueden leer el estado",rUe="Todos pueden escribir objetos",nUe="Todos pueden escribir el estado",oUe="El grupo puede leer el objeto",aUe="El grupo puede leer el estado",iUe="El grupo puede escribir un objeto",sUe="El grupo puede escribir el estado",lUe="El propietario puede leer el objeto",cUe="El propietario puede leer el estado",dUe="El propietario puede escribir el objeto",uUe="El propietario puede escribir el estado",pUe="Botones",hUe="Cambiaron desde",fUe="cerrar",mUe="Crear estado booleano",gUe="Crear canal",vUe="Crear dispositivo",yUe="Crear estado numérico",_Ue="Crear estado",bUe="Crear estado de cadena",wUe="d.",xUe="Fr",SUe="Mes",CUe="Sa",$Ue="Su",kUe="Th",EUe="Tu",TUe="Nosotros",OUe="Modo experto",DUe="Todos los archivos",AUe="Audio",IUe="Código/JSON",MUe="Imágenes",PUe="Texto",NUe="Video",RUe="Configuraciones",jUe="sin",LUe="Función",zUe="ID",FUe="Nombre",BUe="Papel",WUe="Habitación",HUe="Tipo",UUe="Configuraciones inválidas",VUe="Ultimo cambio",qUe="en la zona",GUe="Abr",XUe="Ago",JUe="Dic",YUe="Feb",KUe="Ene",ZUe="Jul",QUe="Jun",eVe="Mai",tVe="Mar",rVe="Nov",nVe="Oct",oVe="Sep",aVe="Abr",iVe="Ago",sVe="Dic",lVe="Feb",cVe="Ene",dVe="Jul",uVe="Jun",pVe="Mai",hVe="Mar",fVe="Nov",mVe="Oct",gVe="Sep",vVe="ninguno",yVe="Objeto cambiado por",_Ve="Objeto cambiado por última vez a las",bVe="Configuraciones de otro adaptador %s",wVe="Código de calidad",xVe="repetir",SVe='Para seleccionar la carpeta, simplemente mantenga presionada la tecla "shift" haciendo clic en la carpeta.',CVe="Estado cambiado por",$Ve="Objeto cambiado de",kVe="Marca de tiempo",EVe="Bandera reconocida",TVe="Comentario",OVe="Copie el valor del estado",DVe="Ajustes personalizados",AVe="Eliminar objeto",IVe="Editar objeto",MVe="Edite el valor del estado",PVe="Desde",NVe="Último cambio",RVe="Calidad",jVe="Sello de tiempo",LVe="Usuario",zVe="Valor",FVe="Valor",BVe="Advertencia: ¡El trabajo CRON se ejecutará cada minuto durante el período especificado!",WVe="Advertencia: ¡El trabajo CRON se ejecutará cada segundo durante el período especificado!",HVe="CRON",UVe="Fecha",VVe="fechas",qVe="Día",GVe="Día de la semana",XVe="Cada",JVe="cada N días",YVe="cada enésimo día de la semana",KVe="cada N día de la semana",ZVe="cada N horas",QVe="cada N minutos",eqe="cada N meses",tqe="cada N segundos",rqe="cada día",nqe="Cada día de la semana",oqe="Cada día de la semana",aqe="cada hora",iqe="cada minuto",sqe="cada mes",lqe="cada segundo",cqe="De",dqe="Horas",uqe="Intervalo",pqe="Intervalo entre",hqe="CRON no válido",fqe="Minutos",mqe="meses",gqe="Una vez",vqe="Período",yqe="Segundos",_qe="Sencillo",bqe="Tiempo específico",wqe="fechas especificas",xqe="día(s) específico(s) de la semana",Sqe="día específico de semanas",Cqe="horas específicas",$qe="minutos específicos",kqe="meses específicos",Eqe="segundos específicos",Tqe="Hora",Oqe="A",Dqe="Mago",Aqe="todas",Iqe="Día astro",Mqe="Noche astro",Pqe="Amanecer",Nqe="Oscuridad",Rqe="hora dorada",jqe="Fin de la hora dorada",Lqe="Nadir",zqe="Amanecer náutico",Fqe="Anochecer náutico",Bqe="Noche",Wqe="Fin de la noche",Hqe="Mediodía solar",Uqe="amanecer",Vqe="Fin del amanecer",qqe="Puesta de sol",Gqe="Puesta de sol",Xqe="a",Jqe="en %s",Yqe="cada día",Kqe="cada hora",Zqe="cada minuto",Qqe="cada mes",eGe="cada %s días",tGe="cada %s horas",rGe="cada %s minutos",nGe="cada %s meses",oGe="cada %s semanas",aGe="cada %s años",iGe="cada semana",sGe="todos los años",lGe="de %s a %s",cGe="Nunca",dGe="en %s de %s",uGe="en %s y %s de",pGe="en cada fecha de",hGe="%s",fGe="%s y %s",mGe="en %s",gGe="en %s y %s",vGe="en los fines de semana",yGe="en días laborables",_Ge="ya no se ejecutará más, porque el inicio está en el pasado",bGe="en %s",wGe="de %s",xGe="Ejecutar desde hasta",SGe="a %s",CGe="cada",$Ge="Tiempo específico",kGe="de",EGe="De-a",TGe="Tiempo de intervalo",OGe="invertir; poner boca abajo o en la posición opuesta, orden o arreglo; Boca abajo",DGe="ninguna",AGe="en",IGe="Período",MGe="Diario",PGe="fechas",NGe="Día",RGe="Cada",jGe="Cada día",LGe="Cada mes",zGe="Cada semana",FGe="Todos los años",BGe="Horas",WGe="Minutos",HGe="mes",UGe="Mensual",VGe="Una vez",qGe="Meses específicos",GGe="Semana",XGe="Días laborables",JGe="Fin de semana",YGe="Semanal",KGe="Días laborables",ZGe="Año",QGe="Anual",eXe="Tiempo específico",tXe="Hora",rXe="a",nXe="Válido",oXe="de",aXe="a",iXe="Todo el dia",sXe="cada mes",lXe={"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_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:lHe,"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:cHe,"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:dHe,"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:uHe,ra_Clear:pHe,"ra_Clear filter":"Filtro claro","ra_Clear icon":"Icono claro","ra_Clone current row":"Clonar fila actual",ra_Close:hHe,"ra_Collapse all nodes":"Contraer todos los nodos","ra_Collapse one step node":"Contraer un nivel",ra_Commercial:fHe,ra_Configure:mHe,"ra_Configure visible columns":"Configurar columnas visibles","ra_Confirm deletion of %s":"Confirmar la eliminación de %s",ra_Connected:gHe,ra_Copied:vHe,"ra_Copied %s":'Copiado "%s"',"ra_Copy content":"Copiar contenido",ra_Create:yHe,"ra_Create alias":"Crear alias","ra_Create folder":"Crear carpeta","ra_Create new folder in %s":"Crear nueva carpeta en %s",ra_Crop:_He,"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:bHe,ra_Delete:wHe,"ra_Delete (no confirm for 5 mins)":"Eliminar (sin confirmar durante 5 minutos)","ra_Delete current row":"Eliminar fila actual","ra_Deselect all":"Deselecciona todo","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:xHe,ra_Disconnected:SHe,"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_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 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_Error:CHe,"ra_Expand all nodes":"Expandir todos los nodos","ra_Expand one step node":"Expandir un nivel","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:$He,"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:kHe,"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_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 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:EHe,"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_Longitude:THe,'ra_May not trigger "updateLicenses"':'No puede activar "updateLicenses"',ra_Message:OHe,ra_Monday:DHe,"ra_Move down":"Mover hacia abajo","ra_Move up":"Ascender",ra_Name:AHe,"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 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_Objects:IHe,ra_Ok:MHe,"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 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_Private certificate":"certificado privado",ra_Product:PHe,"ra_Public certificate":"Certificado público","ra_Quality code":"Calidad","ra_Refresh tree":"Actualizar árbol","ra_Reload files":"Recargar archivos",ra_Repeat:NHe,ra_Replace:RHe,"ra_Request timed out":"Tiempo de espera agotado","ra_Restrict to folder":"Restringir a carpeta",ra_Root:jHe,ra_Saturday:LHe,ra_Save:zHe,"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:FHe,"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_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:BHe,"ra_Suitable license not found in license manager":"Licencia adecuada no encontrada en el administrador de licencias",ra_Sunday:WHe,"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:HHe,ra_Timestamp:UHe,"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:VHe,"ra_Unknown error":"Error desconocido","ra_Unknown error!":"¡Error desconocido!",ra_Update:qHe,"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:GHe,ra_Value:XHe,ra_Version:JHe,"ra_View file":"Ver archivo","ra_View: %s":"Ver: %s",ra_Wednesday:YHe,ra_Width:KHe,ra_Yes:ZHe,"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___different__:QHe,ra_aclEveryone_read_object:eUe,ra_aclEveryone_read_state:tUe,ra_aclEveryone_write_object:rUe,ra_aclEveryone_write_state:nUe,ra_aclGroup_read_object:oUe,ra_aclGroup_read_state:aUe,ra_aclGroup_write_object:iUe,ra_aclGroup_write_state:sUe,ra_aclOwner_read_object:lUe,ra_aclOwner_read_state:cUe,ra_aclOwner_write_object:dUe,ra_aclOwner_write_state:uUe,ra_buttons:pUe,ra_changedFrom:hUe,ra_close:fUe,ra_create_boolean_state:mUe,ra_create_channel:gUe,ra_create_device:vUe,ra_create_number_state:yUe,ra_create_state:_Ue,ra_create_string_state:bUe,ra_daysShortText:wUe,ra_dow_Fr:xUe,ra_dow_Mo:SUe,ra_dow_Sa:CUe,ra_dow_Su:$Ue,ra_dow_Th:kUe,ra_dow_Tu:EUe,ra_dow_We:TUe,ra_expertMode:OUe,ra_fileType_all:DUe,ra_fileType_audio:AUe,ra_fileType_code:IUe,ra_fileType_images:MUe,ra_fileType_txt:PUe,ra_fileType_video:NUe,"ra_fileType_video,":"Video",ra_filter_customs:RUe,ra_filter_customs_without:jUe,ra_filter_func:LUe,ra_filter_id:zUe,ra_filter_name:FUe,ra_filter_role:BUe,ra_filter_room:WUe,ra_filter_type:HUe,"ra_import data from %s file":"Importar datos del archivo %s",ra_invalidConfig:UUe,ra_lastChange:VUe,ra_locally:qUe,ra_month_Apr:GUe,ra_month_Aug:XUe,ra_month_Dec:JUe,ra_month_Feb:YUe,ra_month_Jan:KUe,ra_month_Jul:ZUe,ra_month_Jun:QUe,ra_month_Mai:eVe,ra_month_Mar:tVe,ra_month_Nov:rVe,ra_month_Oct:nVe,ra_month_Sep:oVe,ra_months_Apr:aVe,ra_months_Aug:iVe,ra_months_Dec:sVe,ra_months_Feb:lVe,ra_months_Jan:cVe,ra_months_Jul:dVe,ra_months_Jun:uVe,ra_months_Mai:pVe,ra_months_Mar:hVe,ra_months_Nov:fVe,ra_months_Oct:mVe,ra_months_Sep:gVe,ra_none:vVe,ra_object_changed_by:yVe,ra_object_changed_by_user:_Ve,ra_otherConfig:bVe,ra_qualityCode:wVe,ra_repeat:xVe,ra_select_folder_hint:SVe,ra_state_changed_by:CVe,ra_state_changed_from:$Ve,ra_timestamp:kVe,ra_tooltip_ack:EVe,ra_tooltip_comment:TVe,ra_tooltip_copyState:OVe,ra_tooltip_customConfig:DVe,ra_tooltip_deleteObject:AVe,ra_tooltip_editObject:IVe,ra_tooltip_editState:MVe,ra_tooltip_from:PVe,ra_tooltip_lc:NVe,ra_tooltip_quality:RVe,ra_tooltip_ts:jVe,ra_tooltip_user:LVe,ra_tooltip_value:zVe,"ra_use seconds":"usar segundos",ra_val:FVe,"ra_via internet":"vía Internet",ra_warning_every_minute:BVe,ra_warning_every_second:WVe,sc_cron:HVe,sc_date:UVe,sc_dates:VVe,sc_dow:qVe,sc_dows:GVe,sc_every:XVe,sc_everyN_dates:JVe,sc_everyN_dow:YVe,sc_everyN_dows:KVe,sc_everyN_hours:ZVe,sc_everyN_minutes:QVe,sc_everyN_months:eqe,sc_everyN_seconds:tqe,sc_every_dates:rqe,sc_every_dow:nqe,sc_every_dows:oqe,sc_every_hours:aqe,sc_every_minutes:iqe,sc_every_months:sqe,sc_every_seconds:lqe,sc_from:cqe,sc_hours:dqe,sc_interval:uqe,sc_intervalBetween:pqe,sc_invalid_cron:hqe,sc_minutes:fqe,sc_months:mqe,sc_once:gqe,sc_period:vqe,sc_seconds:yqe,sc_simple:_qe,sc_specific:bqe,sc_specific_dates:wqe,sc_specific_dow:xqe,sc_specific_dows:Sqe,sc_specific_hours:Cqe,sc_specific_minutes:$qe,sc_specific_months:kqe,sc_specific_seconds:Eqe,sc_time:Tqe,sc_to:Oqe,sc_wizard:Dqe,sch_all:Aqe,sch_astroDay:Iqe,sch_astroNight:Mqe,sch_astro_dawn:Pqe,sch_astro_dusk:Nqe,sch_astro_goldenHour:Rqe,sch_astro_goldenHourEnd:jqe,sch_astro_nadir:Lqe,sch_astro_nauticalDawn:zqe,sch_astro_nauticalDusk:Fqe,sch_astro_night:Bqe,sch_astro_nightEnd:Wqe,sch_astro_solarNoon:Hqe,sch_astro_sunrise:Uqe,sch_astro_sunriseEnd:Vqe,sch_astro_sunset:qqe,sch_astro_sunsetStart:Gqe,sch_at:Xqe,sch_desc_atTime:Jqe,sch_desc_everyDay:Yqe,sch_desc_everyHour:Kqe,sch_desc_everyMinute:Zqe,sch_desc_everyMonth:Qqe,sch_desc_everyNDay:eGe,sch_desc_everyNHours:tGe,sch_desc_everyNMinutes:rGe,sch_desc_everyNMonths:nGe,sch_desc_everyNWeeks:oGe,sch_desc_everyNYears:aGe,sch_desc_everyWeek:iGe,sch_desc_everyYear:sGe,sch_desc_intervalFromTo:lGe,sch_desc_never:cGe,sch_desc_onDate:dGe,sch_desc_onDates:uGe,sch_desc_onEveryDate:pGe,sch_desc_onMonth:hGe,sch_desc_onMonths:fGe,sch_desc_onWeekday:mGe,sch_desc_onWeekdays:gGe,sch_desc_onWeekends:vGe,sch_desc_onWorkdays:yGe,sch_desc_onceInPast:_Ge,sch_desc_once_on:bGe,sch_desc_validFrom:wGe,sch_desc_validFromTo:xGe,sch_desc_validTo:SGe,sch_every:CGe,sch_exactTime:$Ge,sch_from:kGe,sch_fromTo:EGe,sch_intervalTime:TGe,sch_invert:OGe,sch_no_one:DGe,sch_on:AGe,sch_period:IGe,sch_periodDaily:MGe,sch_periodDates:PGe,sch_periodDay:NGe,sch_periodEvery:RGe,sch_periodEveryDay:jGe,sch_periodEveryMonth:LGe,sch_periodEveryWeek:zGe,sch_periodEveryYear:FGe,sch_periodHours:BGe,sch_periodMinutes:WGe,sch_periodMonth:HGe,sch_periodMonthly:UGe,sch_periodOnce:VGe,sch_periodSpecificMonths:qGe,sch_periodWeek:GGe,sch_periodWeekdays:XGe,sch_periodWeekend:JGe,sch_periodWeekly:YGe,sch_periodWorkdays:KGe,sch_periodYear:ZGe,sch_periodYearly:QGe,sch_specificTime:eXe,sch_time:tXe,sch_to:rXe,sch_valid:nXe,sch_validFrom:oXe,sch_validTo:aXe,sch_wholeDay:iXe,sch_yearEveryMonth:sXe},cXe="Dodać",dXe="Anuluj",uXe="Kategorie",pXe="Sprawdzony",hXe="Kasować",fXe="Blisko",mXe="Handlowy",gXe="Konfiguruj",vXe="Połączony",yXe="Skopiowano",_Xe="Stwórz",bXe="Przyciąć",wXe="Delete",xXe="Usunąć",SXe="Wyrzucać",CXe="Niepowiązany",$Xe="Błąd",kXe="Filtr",EXe="Piątek",TXe="Szerokość",OXe="Długość geograficzna",DXe="Wiadomość",AXe="Poniedziałek",IXe="Nazwa",MXe="Obiekty",PXe="Dobrze",NXe="Produkt",RXe="Powtarzać",jXe="Zastępować",LXe="Korzeń",zXe="Sobota",FXe="Zapisać",BXe="Wybrany",WXe="Stany",HXe="Niedziela",UXe="Czwartek",VXe="Znak czasu",qXe="Wtorek",GXe="Aktualizacja",XXe="Obowiązuje do",JXe="Wartość",YXe="Wersja",KXe="Środa",ZXe="Szerokość",QXe="Tak",eJe="różne",tJe="Każdy może czytać obiekt",rJe="Każdy może czytać stan",nJe="Każdy może pisać przedmiot",oJe="Każdy może pisać stan",aJe="Grupa może odczytać obiekt",iJe="Grupa może odczytać stan",sJe="Grupa może pisać obiekt",lJe="Grupa może pisać stan",cJe="Właściciel może czytać obiekt",dJe="Właściciel może odczytać stan",uJe="Właściciel może napisać obiekt",pJe="Właściciel może pisać stan",hJe="guziki",fJe="Zmieniony z",mJe="blisko",gJe="Utwórz stan logiczny",vJe="Utwórz kanał",yJe="Utwórz urządzenie",_Je="Utwórz stan liczbowy",bJe="Utwórz stan",wJe="Utwórz stan ciągu",xJe="d.",SJe="Ks",CJe="Mo",$Je="Sa",kJe="Su",EJe="Th",TJe="Tu",OJe="My",DJe="Tryb ekspercki",AJe="Wszystkie pliki",IJe="Audio",MJe="Kod/JSON",PJe="Obrazy",NJe="Tekst",RJe="Wideo",jJe="Ustawienia",LJe="bez",zJe="Funkcjonować",FJe="ID",BJe="Imię",WJe="Rola",HJe="Sala",UJe="Rodzaj",VJe="Nieprawidłowe ustawienia",qJe="Ostatnia zmiana",GJe="lokalnie",XJe="kwiecień",JJe="sierpień",YJe="grudzień",KJe="luty",ZJe="styczeń",QJe="lipiec",eYe="czerwiec",tYe="Mai",rYe="Zniszczyć",nYe="listopad",oYe="październik",aYe="wrzesień",iYe="kwiecień",sYe="sierpień",lYe="grudzień",cYe="luty",dYe="styczeń",uYe="lipiec",pYe="czerwiec",hYe="Mai",fYe="Zniszczyć",mYe="listopad",gYe="październik",vYe="wrzesień",yYe="Żaden",_Ye="Obiekt zmieniony przez",bYe="Obiekt ostatnio zmieniony o godz",wYe="Ustawienia z innego adaptera %s",xYe="Kod jakości",SYe="powtarzać",CYe="Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.",$Ye="Stan zmieniony przez",kYe="Obiekt zmieniony z",EYe="Znak czasu",TYe="Potwierdzon",OYe="Komentarz",DYe="Skopiuj wartość stanu",AYe="Własne ustawienia",IYe="Usuń obiekt",MYe="Edytuj obiekt",PYe="Edytuj wartość stanu",NYe="Z",RYe="Ostatnia zmiana",jYe="Jakość",LYe="Znak czasu",zYe="Użytkownik",FYe="Wartość",BYe="Wartość",WYe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co minutę w określonym przedziale czasowym!",HYe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co sekundę w określonym przedziale czasowym!",UYe="CRON",VYe="Data",qYe="Daktyle",GYe="Dzień",XYe="Dzień tygodnia",JYe="Każdy",YYe="co N dni",KYe="w każdy N-ty dzień tygodnia",ZYe="co N dnia tygodnia",QYe="co N godzin",eKe="co N minut",tKe="co N miesięcy",rKe="co N sekund",nKe="codziennie",oKe="każdy dzień tygodnia",aKe="każdy dzień tygodnia",iKe="co godzinę",sKe="każda minuta",lKe="każdego miesiąca",cKe="każda sekunda",dKe="Od",uKe="godziny",pKe="Interwał",hKe="Interwał między",fKe="Nieprawidłowy CRON",mKe="Minuty",gKe="miesięcy",vKe="Pewnego razu",yKe="Kropka",_Ke="sekundy",bKe="Prosty",wKe="Określony czas",xKe="konkretne daty",SKe="określone dni tygodnia",CKe="określony dzień tygodni",$Ke="określone godziny",kKe="określone minuty",EKe="określone miesiące",TKe="określone sekundy",OKe="Czas",DKe="Do",AKe="Czarodziej",IKe="wszystko",MKe="Dzień Astro",PKe="Noc Astro",NKe="Świt",RKe="Zmierzch",jKe="złota godzina",LKe="Koniec złotej godziny",zKe="Nadir",FKe="Morski świt",BKe="Morski zmierzch",WKe="Noc",HKe="Koniec nocy",UKe="Południe słoneczne",VKe="wschód słońca",qKe="Koniec wschodu słońca",GKe="Zachód słońca",XKe="Początek zachodu słońca",JKe="w",YKe="na %s",KKe="codziennie",ZKe="co godzinę",QKe="każda minuta",eZe="każdego miesiąca",tZe="każdego dnia %s",rZe="co %s godzin",nZe="co %s minut",oZe="co %s miesięcy",aZe="co %s tygodni",iZe="co %s lat",sZe="co tydzień",lZe="każdego roku",cZe="od %s do %s",dZe="nigdy",uZe="na %s z %s",pZe="na %s i %s z",hZe="w każdą datę",fZe="%s",mZe="%s i %s",gZe="na %s",vZe="na %s i %s",yZe="w weekendy",_Ze="w dni robocze",bZe="nie będzie już wykonywany, ponieważ start jest w przeszłości",wZe="na %s",xZe="z %s",SZe="Wykonaj od do",CZe="do %s",$Ze="każdy",kZe="Określony czas",EZe="od",TZe="Od-do",OZe="Czas przerwy",DZe="odwracać",AZe="Żaden",IZe="na",MZe="Kropka",PZe="Codziennie",NZe="Daktyle",RZe="Dzień",jZe="Każdy",LZe="Codziennie",zZe="Każdego miesiąca",FZe="Co tydzień",BZe="Każdego roku",WZe="godziny",HZe="Minuty",UZe="miesiąc",VZe="Miesięczny",qZe="Pewnego razu",GZe="Określone miesiące",XZe="Tydzień",JZe="Dni powszednie",YZe="Weekend",KZe="Co tydzień",ZZe="Dni robocze",QZe="Rok",eQe="Rocznie",tQe="Określony czas",rQe="Czas",nQe="do",oQe="Ważny",aQe="od",iQe="do",sQe="Cały dzień",lQe="każdego miesiąca",cQe={"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_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:cXe,"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:dXe,"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:uXe,"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:pXe,ra_Clear:hXe,"ra_Clear filter":"Czysty filtr","ra_Clear icon":"Wyczyść ikonę","ra_Clone current row":"Sklonuj bieżący wiersz",ra_Close:fXe,"ra_Collapse all nodes":"Zwiń wszystkie węzły","ra_Collapse one step node":"Zwiń o jeden poziom",ra_Commercial:mXe,ra_Configure:gXe,"ra_Configure visible columns":"Skonfiguruj widoczne kolumny","ra_Confirm deletion of %s":"Potwierdź usunięcie %s",ra_Connected:vXe,ra_Copied:yXe,"ra_Copied %s":'Skopiowano "%s"',"ra_Copy content":"Kopiuj zawartość",ra_Create:_Xe,"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:bXe,"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:wXe,ra_Delete:xXe,"ra_Delete (no confirm for 5 mins)":"Usuń (bez potwierdzenia przez 5 minut)","ra_Delete current row":"Usuń bieżący wiersz","ra_Deselect all":"Odznacz wszystko","ra_Device → Channel → State":"Urządzenie → Kanał → Stan",ra_Discard:SXe,ra_Disconnected:CXe,"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_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 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_Error:$Xe,"ra_Expand all nodes":"Rozwiń wszystkie węzły","ra_Expand one step node":"Rozwiń o jeden poziom","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:kXe,"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:EXe,"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_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 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:TXe,"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_Longitude:OXe,'ra_May not trigger "updateLicenses"':"Może nie uruchamiać „updateLicenses”",ra_Message:DXe,ra_Monday:AXe,"ra_Move down":"Padnij","ra_Move up":"Podnieść",ra_Name:IXe,"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 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_Objects:MXe,ra_Ok:PXe,"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 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_Private certificate":"Prywatny certyfikat",ra_Product:NXe,"ra_Public certificate":"Certyfikat publiczny","ra_Quality code":"Jakości","ra_Refresh tree":"Odśwież drzewo","ra_Reload files":"Załaduj ponownie pliki",ra_Repeat:RXe,ra_Replace:jXe,"ra_Request timed out":"Upłynął limit czasu żądania","ra_Restrict to folder":"Ogranicz do folderu",ra_Root:LXe,ra_Saturday:zXe,ra_Save:FXe,"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:BXe,"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_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:WXe,"ra_Suitable license not found in license manager":"Nie znaleziono odpowiedniej licencji w menedżerze licencji",ra_Sunday:HXe,"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:UXe,ra_Timestamp:VXe,"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:qXe,"ra_Unknown error":"Nieznany błąd","ra_Unknown error!":"Nieznany błąd!",ra_Update:GXe,"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:XXe,ra_Value:JXe,ra_Version:YXe,"ra_View file":"Zobaczyć plik","ra_View: %s":"Widok: %s",ra_Wednesday:KXe,ra_Width:ZXe,ra_Yes:QXe,"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___different__:eJe,ra_aclEveryone_read_object:tJe,ra_aclEveryone_read_state:rJe,ra_aclEveryone_write_object:nJe,ra_aclEveryone_write_state:oJe,ra_aclGroup_read_object:aJe,ra_aclGroup_read_state:iJe,ra_aclGroup_write_object:sJe,ra_aclGroup_write_state:lJe,ra_aclOwner_read_object:cJe,ra_aclOwner_read_state:dJe,ra_aclOwner_write_object:uJe,ra_aclOwner_write_state:pJe,ra_buttons:hJe,ra_changedFrom:fJe,ra_close:mJe,ra_create_boolean_state:gJe,ra_create_channel:vJe,ra_create_device:yJe,ra_create_number_state:_Je,ra_create_state:bJe,ra_create_string_state:wJe,ra_daysShortText:xJe,ra_dow_Fr:SJe,ra_dow_Mo:CJe,ra_dow_Sa:$Je,ra_dow_Su:kJe,ra_dow_Th:EJe,ra_dow_Tu:TJe,ra_dow_We:OJe,ra_expertMode:DJe,ra_fileType_all:AJe,ra_fileType_audio:IJe,ra_fileType_code:MJe,ra_fileType_images:PJe,ra_fileType_txt:NJe,ra_fileType_video:RJe,"ra_fileType_video,":"Wideo",ra_filter_customs:jJe,ra_filter_customs_without:LJe,ra_filter_func:zJe,ra_filter_id:FJe,ra_filter_name:BJe,ra_filter_role:WJe,ra_filter_room:HJe,ra_filter_type:UJe,"ra_import data from %s file":"Importuj dane z pliku %s",ra_invalidConfig:VJe,ra_lastChange:qJe,ra_locally:GJe,ra_month_Apr:XJe,ra_month_Aug:JJe,ra_month_Dec:YJe,ra_month_Feb:KJe,ra_month_Jan:ZJe,ra_month_Jul:QJe,ra_month_Jun:eYe,ra_month_Mai:tYe,ra_month_Mar:rYe,ra_month_Nov:nYe,ra_month_Oct:oYe,ra_month_Sep:aYe,ra_months_Apr:iYe,ra_months_Aug:sYe,ra_months_Dec:lYe,ra_months_Feb:cYe,ra_months_Jan:dYe,ra_months_Jul:uYe,ra_months_Jun:pYe,ra_months_Mai:hYe,ra_months_Mar:fYe,ra_months_Nov:mYe,ra_months_Oct:gYe,ra_months_Sep:vYe,ra_none:yYe,ra_object_changed_by:_Ye,ra_object_changed_by_user:bYe,ra_otherConfig:wYe,ra_qualityCode:xYe,ra_repeat:SYe,ra_select_folder_hint:CYe,ra_state_changed_by:$Ye,ra_state_changed_from:kYe,ra_timestamp:EYe,ra_tooltip_ack:TYe,ra_tooltip_comment:OYe,ra_tooltip_copyState:DYe,ra_tooltip_customConfig:AYe,ra_tooltip_deleteObject:IYe,ra_tooltip_editObject:MYe,ra_tooltip_editState:PYe,ra_tooltip_from:NYe,ra_tooltip_lc:RYe,ra_tooltip_quality:jYe,ra_tooltip_ts:LYe,ra_tooltip_user:zYe,ra_tooltip_value:FYe,"ra_use seconds":"użyj sekund",ra_val:BYe,"ra_via internet":"przez internet",ra_warning_every_minute:WYe,ra_warning_every_second:HYe,sc_cron:UYe,sc_date:VYe,sc_dates:qYe,sc_dow:GYe,sc_dows:XYe,sc_every:JYe,sc_everyN_dates:YYe,sc_everyN_dow:KYe,sc_everyN_dows:ZYe,sc_everyN_hours:QYe,sc_everyN_minutes:eKe,sc_everyN_months:tKe,sc_everyN_seconds:rKe,sc_every_dates:nKe,sc_every_dow:oKe,sc_every_dows:aKe,sc_every_hours:iKe,sc_every_minutes:sKe,sc_every_months:lKe,sc_every_seconds:cKe,sc_from:dKe,sc_hours:uKe,sc_interval:pKe,sc_intervalBetween:hKe,sc_invalid_cron:fKe,sc_minutes:mKe,sc_months:gKe,sc_once:vKe,sc_period:yKe,sc_seconds:_Ke,sc_simple:bKe,sc_specific:wKe,sc_specific_dates:xKe,sc_specific_dow:SKe,sc_specific_dows:CKe,sc_specific_hours:$Ke,sc_specific_minutes:kKe,sc_specific_months:EKe,sc_specific_seconds:TKe,sc_time:OKe,sc_to:DKe,sc_wizard:AKe,sch_all:IKe,sch_astroDay:MKe,sch_astroNight:PKe,sch_astro_dawn:NKe,sch_astro_dusk:RKe,sch_astro_goldenHour:jKe,sch_astro_goldenHourEnd:LKe,sch_astro_nadir:zKe,sch_astro_nauticalDawn:FKe,sch_astro_nauticalDusk:BKe,sch_astro_night:WKe,sch_astro_nightEnd:HKe,sch_astro_solarNoon:UKe,sch_astro_sunrise:VKe,sch_astro_sunriseEnd:qKe,sch_astro_sunset:GKe,sch_astro_sunsetStart:XKe,sch_at:JKe,sch_desc_atTime:YKe,sch_desc_everyDay:KKe,sch_desc_everyHour:ZKe,sch_desc_everyMinute:QKe,sch_desc_everyMonth:eZe,sch_desc_everyNDay:tZe,sch_desc_everyNHours:rZe,sch_desc_everyNMinutes:nZe,sch_desc_everyNMonths:oZe,sch_desc_everyNWeeks:aZe,sch_desc_everyNYears:iZe,sch_desc_everyWeek:sZe,sch_desc_everyYear:lZe,sch_desc_intervalFromTo:cZe,sch_desc_never:dZe,sch_desc_onDate:uZe,sch_desc_onDates:pZe,sch_desc_onEveryDate:hZe,sch_desc_onMonth:fZe,sch_desc_onMonths:mZe,sch_desc_onWeekday:gZe,sch_desc_onWeekdays:vZe,sch_desc_onWeekends:yZe,sch_desc_onWorkdays:_Ze,sch_desc_onceInPast:bZe,sch_desc_once_on:wZe,sch_desc_validFrom:xZe,sch_desc_validFromTo:SZe,sch_desc_validTo:CZe,sch_every:$Ze,sch_exactTime:kZe,sch_from:EZe,sch_fromTo:TZe,sch_intervalTime:OZe,sch_invert:DZe,sch_no_one:AZe,sch_on:IZe,sch_period:MZe,sch_periodDaily:PZe,sch_periodDates:NZe,sch_periodDay:RZe,sch_periodEvery:jZe,sch_periodEveryDay:LZe,sch_periodEveryMonth:zZe,sch_periodEveryWeek:FZe,sch_periodEveryYear:BZe,sch_periodHours:WZe,sch_periodMinutes:HZe,sch_periodMonth:UZe,sch_periodMonthly:VZe,sch_periodOnce:qZe,sch_periodSpecificMonths:GZe,sch_periodWeek:XZe,sch_periodWeekdays:JZe,sch_periodWeekend:YZe,sch_periodWeekly:KZe,sch_periodWorkdays:ZZe,sch_periodYear:QZe,sch_periodYearly:eQe,sch_specificTime:tQe,sch_time:rQe,sch_to:nQe,sch_valid:oQe,sch_validFrom:aQe,sch_validTo:iQe,sch_wholeDay:sQe,sch_yearEveryMonth:lQe},dQe="Додайте",uQe="Скасувати",pQe="Категорії",hQe="Перевірено",fQe="Видалити",mQe="Закрити",gQe="Комерційний",vQe="Налаштувати",yQe="Підключено",_Qe="Скопійовано",bQe="Створити",wQe="Урожай",xQe="Delete",SQe="Видалити",CQe="Відкинути",$Qe="Відключено",kQe="Помилка",EQe="фільтр",TQe="П'ятниця",OQe="Широта",DQe="Довгота",AQe="повідомлення",IQe="понеділок",MQe="Ім'я",PQe="Об'єкти",NQe="В порядку",RQe="Продукт",jQe="Повторіть",LQe="Замінити",zQe="Корінь",FQe="Субота",BQe="зберегти",WQe="Вибране",HQe="держави",UQe="неділя",VQe="четвер",qQe="Мітка часу",GQe="вівторок",XQe="оновлення",JQe="Дійсний до",YQe="Значення",KQe="Версія",ZQe="Середа",QQe="Ширина",eet="Так",tet="інший",ret="Кожен може читати об'єкт",net="Кожен може читати стан",oet="Кожен може написати об'єкт",aet="Кожен може написати стан",iet="Група може читати об'єкт",set="Група може читати стан",cet="Група може писати об'єкт",det="Група може писати стан",uet="Власник може читати об'єкт",pet="Власник може читати стан",het="Власник може написати об'єкт",fet="Власник може написати стан",met="кнопки",get="Змінено з",vet="закрити",yet="Створіть логічний стан",_et="Створити канал",bet="Створити пристрій",wet="Створити номерний стан",xet="Створити состояние",Cet="Створити рядковий стан",$et="днів",ket="О",Eet="пн",Tet="Sa",Oet="Нд",Det="чт",Aet="вт",Iet="ми",Met="Експертний режим",Pet="Всі файли",Net="Аудіо",Ret="Код/JSON",jet="Зображення",Let="текст",zet="відео",Fet="Налаштування",Bet="без",Wet="функція",Het="ID",Uet="Ім'я",Vet="Роль",qet="Кімната",Get="Тип",Xet="Недійсні налаштування",Jet="Остання зміна",Yet="локально",Ket="квіт",Zet="серп",Qet="груд",ett="лютий",ttt="січня",rtt="лип",ntt="черв",ott="травень",att="березень",itt="Листопад",stt="жовт",ltt="вер",ctt="квіт",dtt="серп",utt="груд",ptt="лютий",htt="січня",ftt="лип",mtt="черв",gtt="травень",vtt="березень",ytt="Листопад",_tt="жовт",btt="вер",wtt="немає",xtt="Об'єкт змінено",Stt="Об'єкт востаннє змінено о",Ctt="Налаштування з іншого адаптера %s",$tt="Код якості",ktt="повторити",Ett="Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».",Ttt="Стан змінено на",Ott="Об'єкт змінено з",Dtt="Мітка часу",Att="Визнано",Itt="коментар",Mtt="Скопіюйте значення стану",Ptt="Спеціальні налаштування",Ntt="Видалити об'єкт",Rtt="Редагувати об'єкт",jtt="Відредагуйте значення стану",Ltt="Від",ztt="Востаннє змінено",Ftt="якість",Btt="Позначка часу",Wtt="Користувач",Htt="Значення",Utt="Значення",Vtt="Попередження: завдання CRON виконуватиметься щохвилини протягом зазначеного періоду!",qtt="Попередження: завдання CRON виконуватиметься кожну секунду протягом зазначеного періоду!",Gtt="CRON",Xtt="Дата",Jtt="дати",Ytt="День",Ktt="День тижня",Ztt="кожен",Qtt="кожні N днів",ert="кожен N-й день тижня",trt="кожні N днів тижня",rrt="кожні N годин",nrt="кожні N хвилин",ort="кожні N місяців",art="кожні N секунд",irt="кожен день",srt="кожен день тижня",lrt="кожен день тижня",crt="щогодини",drt="кожну хвилину",urt="щомісяця",prt="кожна секунда",hrt="Від",frt="години",mrt="Інтервал",grt="Інтервал між",vrt="Недійсний CRON",yrt="хвилин",_rt="місяців",brt="Один раз",wrt="Крапка",xrt="секунд",Srt="просто",Crt="Конкретний час",$rt="конкретні дати",krt="конкретний день (дні) тижня",Ert="конкретний день тижня",Trt="конкретні години",Ort="конкретні хвилини",Drt="конкретні місяці",Art="конкретні секунди",Irt="час",Mrt="до",Prt="майстер",Nrt="все",Rrt="Астродень",jrt="Астро ніч",Lrt="Світанок",zrt="Сутінки",Frt="Золота година",Brt="Кінець золотої години",Wrt="Надір",Hrt="Морський світанок",Urt="Морські сутінки",Vrt="ніч",qrt="Кінець ночі",Grt="Сонячний полудень",Xrt="Схід сонця",Jrt="Кінець сходу сонця",Yrt="Захід сонця",Krt="Початок заходу сонця",Zrt="в",Qrt="в %s",ent="кожен день",tnt="щогодини",rnt="кожну хвилину",nnt="щомісяця",ont="кожен %s день",ant="кожні %s годин",int="кожні %s хвилин",snt="кожні %s місяців",lnt="кожні %s тижнів",cnt="кожні %s років",dnt="щотижня",unt="щороку",pnt="від %s до %s",hnt="ніколи",fnt="на %s з %s",mnt="на %s і %s з",gnt="на кожну дату",vnt="%s",ynt="%s і %s",_nt="на %s",bnt="на %s і %s",wnt="на вихідних",xnt="в робочі дні",Snt="більше не виконуватиметься, оскільки запуск у минулому",Cnt="на %s",$nt="від %s",knt="Виконати від до",Ent="до %s",Tnt="кожен",Ont="Конкретний час",Dnt="від",Ant="Від до",Int="Час інтервалу",Mnt="інвертувати",Pnt="немає",Nnt="на",Rnt="Крапка",jnt="Щодня",Lnt="дати",znt="День",Fnt="кожен",Bnt="Кожен день",Wnt="Щомісяця",Hnt="Щотижня",Unt="Щороку",Vnt="години",qnt="хвилин",Gnt="місяць",Xnt="Щомісяця",Jnt="Один раз",Ynt="Конкретні місяці",Knt="тиждень",Znt="будні",Qnt="Вихідні",eot="Щотижня",tot="робочі дні",rot="рік",not="щорічно",oot="Конкретний час",aot="час",iot="до",sot="Дійсний",lot="від",cot="до",dot="Цілий день",uot="щомісяця",pot={"ra_%s links from aliases":"%s посилань із псевдонімів","ra_%s object(s) processed":"Оброблено %s об’єктів","ra_%s was imported":"%s було імпортовано","ra_Accept license":"Прийняти ліцензію","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:dQe,"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:uQe,"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:pQe,"ra_Chained certificate":"Прикутий сертифікат","ra_Change color theme":"Змінити кольорову тему","ra_Changed from":"Змінено з","ra_Channel → State":"Канал → Стан","ra_Check license":"Перевірити ліцензію",ra_Checked:hQe,ra_Clear:fQe,"ra_Clear filter":"Очистити фільтр","ra_Clear icon":"Очистити значок","ra_Clone current row":"Клонувати поточний рядок",ra_Close:mQe,"ra_Collapse all nodes":"Згорнути всі вузли","ra_Collapse one step node":"Згорнути на один рівень",ra_Commercial:gQe,ra_Configure:vQe,"ra_Configure visible columns":"Налаштувати видимі стовпці","ra_Confirm deletion of %s":"Підтвердити видалення %s",ra_Connected:yQe,ra_Copied:_Qe,"ra_Copied %s":'Скопійовано "%s"',"ra_Copy content":"Скопіюйте вміст",ra_Create:bQe,"ra_Create alias":"Створити псевдонім","ra_Create folder":"Створити папку","ra_Create new folder in %s":"Створіть нову папку в %s",ra_Crop:wQe,"ra_Define CRON...":"Визначити CRON...","ra_Define functions":"Визначити функції","ra_Define rooms":"Визначте кімнати","ra_Define schedule":"Визначити розклад","ra_Define schedule...":"Визначити розклад...",ra_Del:xQe,ra_Delete:SQe,"ra_Delete (no confirm for 5 mins)":"Видалити (без підтвердження протягом 5 хвилин)","ra_Delete current row":"Видалити поточний рядок","ra_Deselect all":"Скасувати вибір усіх","ra_Device → Channel → State":"Пристрій → Канал → Стан",ra_Discard:CQe,ra_Disconnected:$Qe,"ra_Do not export values of states":"Не експортуйте значення станів","ra_Do not use let's encrypt":"Не використовуйте let's encrypt","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 function":"функція редагування","ra_Edit object field":"Поле редагування об'єкта","ra_Edit role":"Редагувати роль","ra_Edit room":"Редагувати кімнату","ra_Edit value":"Редагувати значення",ra_Error:kQe,"ra_Expand all nodes":"Розгорнути всі вузли","ra_Expand one step node":"Розгорніть один рівень","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:EQe,"ra_Filter files":"Фільтр файлів","ra_Folder name":"Назва папки","ra_Folder → Channel → State":"Папка → Канал → Стан","ra_Folder → Device → Channel → State":"Папка → Пристрій → Канал → Стан","ra_Folder → State":"Папка → Стан","ra_Folders always first":"Папки завжди першими",ra_Friday:TQe,"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_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 answer from server":"Недійсна відповідь від сервера","ra_Invalid parent folder!":"Недійсна батьківська папка!","ra_Invalid structure":"Недійсна структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Остання зміна",ra_Latitude:OQe,"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_Longitude:DQe,'ra_May not trigger "updateLicenses"':'Може не запускати "updateLicenses"',ra_Message:AQe,ra_Monday:IQe,"ra_Move down":"Рухатися вниз","ra_Move up":"Рухатися вгору",ra_Name:MQe,"ra_No data found in file":"Немає даних у файлі","ra_No one license found in license manager":"У менеджері ліцензій не знайдено жодної ліцензії","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_Objects:PQe,ra_Ok:NQe,"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 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_Private certificate":"Приватний сертифікат",ra_Product:RQe,"ra_Public certificate":"Публічний сертифікат","ra_Quality code":"якість","ra_Refresh tree":"Оновити дерево","ra_Reload files":"Перезавантажте файли",ra_Repeat:jQe,ra_Replace:LQe,"ra_Request timed out":"Час запиту вичерпано","ra_Restrict to folder":"Обмежити папкою",ra_Root:zQe,ra_Saturday:FQe,ra_Save:BQe,"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:WQe,"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_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:HQe,"ra_Suitable license not found in license manager":"Відповідна ліцензія не знайдена в менеджері ліцензій",ra_Sunday:UQe,"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:VQe,ra_Timestamp:qQe,"ra_Toggle expert mode":"Перемкнути експертний режим","ra_Toggle the states view":"Перемкнути перегляд штатів","ra_Toggle view mode":"Перемкнути режим перегляду","ra_Too big":"Занадто великий","ra_Too small":"Занадто малий","ra_Transparent dialog":"Прозорий діалог",ra_Tuesday:GQe,"ra_Unknown error":"Невідома помилка","ra_Unknown error!":"Невідома помилка!",ra_Update:XQe,"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:JQe,ra_Value:YQe,ra_Version:KQe,"ra_View file":"Переглянути файл","ra_View: %s":"Перегляд: %s",ra_Wednesday:ZQe,ra_Width:QQe,ra_Yes:eet,"ra_You can export all objects or just the selected branch.":"Ви можете експортувати всі об’єкти або лише вибрану гілку.","ra_You can filter entries by entering here some text":"Ви можете фільтрувати записи, ввівши тут певний текст",ra___different__:tet,ra_aclEveryone_read_object:ret,ra_aclEveryone_read_state:net,ra_aclEveryone_write_object:oet,ra_aclEveryone_write_state:aet,ra_aclGroup_read_object:iet,ra_aclGroup_read_state:set,ra_aclGroup_write_object:cet,ra_aclGroup_write_state:det,ra_aclOwner_read_object:uet,ra_aclOwner_read_state:pet,ra_aclOwner_write_object:het,ra_aclOwner_write_state:fet,ra_buttons:met,ra_changedFrom:get,ra_close:vet,ra_create_boolean_state:yet,ra_create_channel:_et,ra_create_device:bet,ra_create_number_state:wet,ra_create_state:xet,ra_create_string_state:Cet,ra_daysShortText:$et,ra_dow_Fr:ket,ra_dow_Mo:Eet,ra_dow_Sa:Tet,ra_dow_Su:Oet,ra_dow_Th:Det,ra_dow_Tu:Aet,ra_dow_We:Iet,ra_expertMode:Met,ra_fileType_all:Pet,ra_fileType_audio:Net,ra_fileType_code:Ret,ra_fileType_images:jet,ra_fileType_txt:Let,ra_fileType_video:zet,"ra_fileType_video,":"відео",ra_filter_customs:Fet,ra_filter_customs_without:Bet,ra_filter_func:Wet,ra_filter_id:Het,ra_filter_name:Uet,ra_filter_role:Vet,ra_filter_room:qet,ra_filter_type:Get,"ra_import data from %s file":"Імпортувати дані з файлу %s",ra_invalidConfig:Xet,ra_lastChange:Jet,ra_locally:Yet,ra_month_Apr:Ket,ra_month_Aug:Zet,ra_month_Dec:Qet,ra_month_Feb:ett,ra_month_Jan:ttt,ra_month_Jul:rtt,ra_month_Jun:ntt,ra_month_Mai:ott,ra_month_Mar:att,ra_month_Nov:itt,ra_month_Oct:stt,ra_month_Sep:ltt,ra_months_Apr:ctt,ra_months_Aug:dtt,ra_months_Dec:utt,ra_months_Feb:ptt,ra_months_Jan:htt,ra_months_Jul:ftt,ra_months_Jun:mtt,ra_months_Mai:gtt,ra_months_Mar:vtt,ra_months_Nov:ytt,ra_months_Oct:_tt,ra_months_Sep:btt,ra_none:wtt,ra_object_changed_by:xtt,ra_object_changed_by_user:Stt,ra_otherConfig:Ctt,ra_qualityCode:$tt,ra_repeat:ktt,ra_select_folder_hint:Ett,ra_state_changed_by:Ttt,ra_state_changed_from:Ott,ra_timestamp:Dtt,ra_tooltip_ack:Att,ra_tooltip_comment:Itt,ra_tooltip_copyState:Mtt,ra_tooltip_customConfig:Ptt,ra_tooltip_deleteObject:Ntt,ra_tooltip_editObject:Rtt,ra_tooltip_editState:jtt,ra_tooltip_from:Ltt,ra_tooltip_lc:ztt,ra_tooltip_quality:Ftt,ra_tooltip_ts:Btt,ra_tooltip_user:Wtt,ra_tooltip_value:Htt,"ra_use seconds":"використовуйте секунди",ra_val:Utt,"ra_via internet":"через інтернет",ra_warning_every_minute:Vtt,ra_warning_every_second:qtt,sc_cron:Gtt,sc_date:Xtt,sc_dates:Jtt,sc_dow:Ytt,sc_dows:Ktt,sc_every:Ztt,sc_everyN_dates:Qtt,sc_everyN_dow:ert,sc_everyN_dows:trt,sc_everyN_hours:rrt,sc_everyN_minutes:nrt,sc_everyN_months:ort,sc_everyN_seconds:art,sc_every_dates:irt,sc_every_dow:srt,sc_every_dows:lrt,sc_every_hours:crt,sc_every_minutes:drt,sc_every_months:urt,sc_every_seconds:prt,sc_from:hrt,sc_hours:frt,sc_interval:mrt,sc_intervalBetween:grt,sc_invalid_cron:vrt,sc_minutes:yrt,sc_months:_rt,sc_once:brt,sc_period:wrt,sc_seconds:xrt,sc_simple:Srt,sc_specific:Crt,sc_specific_dates:$rt,sc_specific_dow:krt,sc_specific_dows:Ert,sc_specific_hours:Trt,sc_specific_minutes:Ort,sc_specific_months:Drt,sc_specific_seconds:Art,sc_time:Irt,sc_to:Mrt,sc_wizard:Prt,sch_all:Nrt,sch_astroDay:Rrt,sch_astroNight:jrt,sch_astro_dawn:Lrt,sch_astro_dusk:zrt,sch_astro_goldenHour:Frt,sch_astro_goldenHourEnd:Brt,sch_astro_nadir:Wrt,sch_astro_nauticalDawn:Hrt,sch_astro_nauticalDusk:Urt,sch_astro_night:Vrt,sch_astro_nightEnd:qrt,sch_astro_solarNoon:Grt,sch_astro_sunrise:Xrt,sch_astro_sunriseEnd:Jrt,sch_astro_sunset:Yrt,sch_astro_sunsetStart:Krt,sch_at:Zrt,sch_desc_atTime:Qrt,sch_desc_everyDay:ent,sch_desc_everyHour:tnt,sch_desc_everyMinute:rnt,sch_desc_everyMonth:nnt,sch_desc_everyNDay:ont,sch_desc_everyNHours:ant,sch_desc_everyNMinutes:int,sch_desc_everyNMonths:snt,sch_desc_everyNWeeks:lnt,sch_desc_everyNYears:cnt,sch_desc_everyWeek:dnt,sch_desc_everyYear:unt,sch_desc_intervalFromTo:pnt,sch_desc_never:hnt,sch_desc_onDate:fnt,sch_desc_onDates:mnt,sch_desc_onEveryDate:gnt,sch_desc_onMonth:vnt,sch_desc_onMonths:ynt,sch_desc_onWeekday:_nt,sch_desc_onWeekdays:bnt,sch_desc_onWeekends:wnt,sch_desc_onWorkdays:xnt,sch_desc_onceInPast:Snt,sch_desc_once_on:Cnt,sch_desc_validFrom:$nt,sch_desc_validFromTo:knt,sch_desc_validTo:Ent,sch_every:Tnt,sch_exactTime:Ont,sch_from:Dnt,sch_fromTo:Ant,sch_intervalTime:Int,sch_invert:Mnt,sch_no_one:Pnt,sch_on:Nnt,sch_period:Rnt,sch_periodDaily:jnt,sch_periodDates:Lnt,sch_periodDay:znt,sch_periodEvery:Fnt,sch_periodEveryDay:Bnt,sch_periodEveryMonth:Wnt,sch_periodEveryWeek:Hnt,sch_periodEveryYear:Unt,sch_periodHours:Vnt,sch_periodMinutes:qnt,sch_periodMonth:Gnt,sch_periodMonthly:Xnt,sch_periodOnce:Jnt,sch_periodSpecificMonths:Ynt,sch_periodWeek:Knt,sch_periodWeekdays:Znt,sch_periodWeekend:Qnt,sch_periodWeekly:eot,sch_periodWorkdays:tot,sch_periodYear:rot,sch_periodYearly:not,sch_specificTime:oot,sch_time:aot,sch_to:iot,sch_valid:sot,sch_validFrom:lot,sch_validTo:cot,sch_wholeDay:dot,sch_yearEveryMonth:uot},hot="附加",fot="取消",mot="类别",got="勾选",vot="删除",yot="关",_ot="商业的",bot="配置",wot="连接的",xot="复制的",Sot="创建",Cot="庄稼",$ot="Delete",kot="删除",Eot="丢弃",Tot="断开连接",Oot="错误",Dot="筛选",Aot="星期五",Iot="纬度",Mot="经度",Pot="信息",Not="周一",Rot="姓名",jot="对象",Lot="好",zot="产品",Fot="重复",Bot="代替",Wot="根",Hot="周六",Uot="保存",Vot="已选",qot="状态",Got="星期日",Xot="周四",Jot="时间戳记",Yot="周二",Kot="更新资料",Zot="有效期至",Qot="值",eat="版本",tat="周三",rat="宽度",nat="是的",oat="不同的",aat="每个人都可以阅读对象",iat="每个人都可以阅读状态",sat="每个人都可以写对象",lat="每个人都可以写状态",cat="组可以读取对象",dat="群组可以读取状态",uat="组可以写对象",pat="组可以写状态",hat="所有者可以读取对象",fat="所有者可以读取状态",mat="所有者可以写对象",gat="所有者可以写状态",vat="纽扣",yat="更改为",_at="关闭",bat="创建布尔状态",wat="创建频道",xat="创建设备",Sat="创建号码状态",Cat="创建状态",$at="创建字符串状态",kat="天",Eat="r",Tat="莫",Oat="萨",Dat="苏",Aat="Th",Iat="Tu",Mat="我们",Pat="专家模式",Nat="所有文件",Rat="声音的",jat="代码/JSON",Lat="图片",zat="文本",Fat="视频",Bat="设定值",Wat="没有",Hat="功能",Uat="ID",Vat="名称",qat="角色",Gat="房间",Xat="类型",Jat="无效的设定",Yat="最后一次变更",Kat="本地",Zat="4月",Qat="八月",eit="十二月",tit="二月",rit="简",nit="七月",oit="君",ait="迈",iit="三月",sit="十一月",lit="十月",cit="九月",dit="4月",uit="八月",pit="十二月",hit="二月",fit="简",mit="七月",git="君",vit="迈",yit="三月",_it="十一月",bit="十月",wit="九月",xit="没有任何",Sit="物件变更者",Cit="对象上次更改时间为",$it="来自其他适配器%s的设置",kit="质量代码",Eit="重复",Tit="要选择文件夹,只需按住“shift”键单击文件夹即可。",Oit="状态由",Dit="对象已从更改",Ait="时间戳记",Iit="致谢国旗",Mit="评论",Pit="复制状态值",Nit="自定义设置",Rit="删除物件",jit="编辑物件",Lit="编辑状态值",zit="从",Fit="最后改变了",Bit="质量",Wit="时间戳",Hit="用户",Uit="值",Vit="值",qit="警告:CRON 作业将在指定期间内每分钟运行一次!",Git="警告:CRON 作业将在指定期间内每秒运行一次!",Xit="周期任务",Jit="日期",Yit="日",Kit="天",Zit="星期",Qit="每",est="每N天",tst="每周的第 N 天",rst="每周N天",nst="每N小时一次",ost="每N分钟",ast="每N个月",ist="每N秒",sst="每天",lst="一周的每一天",cst="一周的每一天",dst="每小时",ust="每分钟",pst="每月",hst="每秒",fst="从",mst="小时",gst="间隔",vst="间隔时间",yst="无效的 CRON",_st="分钟",bst="月",wst="一次",xst="周期",Sst="秒",Cst="简单模式",$st="特定的时间",kst="特定的日子",Est="一周中的特定日子",Tst="特定的一周",Ost="特定的小时",Dst="特定的分钟",Ast="特定的月份",Ist="特定的描述",Mst="时间",Pst="至",Nst="向导模式",Rst="全选",jst="天文白天",Lst="天文夜晚",zst="黎明",Fst="黄昏",Bst="黄金时段",Wst="黄金时段结束",Hst="天底",Ust="航海黎明",Vst="航海黄昏",qst="夜晚",Gst="夜晚结束",Xst="正午",Jst="日出",Yst="日出结束",Kst="日落",Zst="日落开始",Qst="在",elt="的%s",tlt="每天",rlt="每小时",nlt="每分钟",olt="每月",alt="每%s天",ilt="每%s小时",slt="每%s分钟",llt="每%s月",clt="每%s周",dlt="每%s年",ult="每周",plt="每年",hlt="从%s到%s",flt="决不",mlt="在%s的%s上",glt="在%s和%s上",vlt="在每天",ylt="%s",_lt="%s和%s",blt="在%s上",wlt="在%s和%s上",xlt="在周末",Slt="在工作日",Clt="将不再执行,因为起始时间已经是过去的时间了。",$lt="在%s上",klt="来自%s",Elt="从执行到",Tlt="到%s",Olt="每",Dlt="特定的时间",Alt="从",Ilt="从到",Mlt="间隔时间",Plt="倒置",Nlt="取消全选",Rlt="的",jlt="周期",Llt="每天",zlt="日期",Flt="天",Blt="每",Wlt="每天",Hlt="每月",Ult="每周",Vlt="每年",qlt="小时",Glt="分钟",Xlt="月",Jlt="每月一次",Ylt="一次",Klt="特定的月份",Zlt="周",Qlt="工作日",ect="周末",tct="每周",rct="工作日",nct="年",oct="每年",act="特定的时间",ict="时间",sct="至",lct="生效",cct="从",dct="至",uct="一整天",pct="每月",hct={"ra_%s links from aliases":"来自别名的 %s 个链接","ra_%s object(s) processed":"已处理%s个对象","ra_%s was imported":"对象已导入","ra_Accept license":"接受许可","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:hot,"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:fot,"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:mot,"ra_Chained certificate":"链式证书","ra_Change color theme":"更改颜色主题","ra_Changed from":"更改为","ra_Channel → State":"频道→状态","ra_Check license":"检查许可证",ra_Checked:got,ra_Clear:vot,"ra_Clear filter":"清除筛选","ra_Clear icon":"清除图标","ra_Clone current row":"克隆当前行",ra_Close:yot,"ra_Collapse all nodes":"收合所有节点","ra_Collapse one step node":"折叠一级",ra_Commercial:_ot,ra_Configure:bot,"ra_Configure visible columns":"配置可见列","ra_Confirm deletion of %s":"确认删除%s",ra_Connected:wot,ra_Copied:xot,"ra_Copied %s":'复制的"%s"',"ra_Copy content":"复制内容",ra_Create:Sot,"ra_Create alias":"创建别名","ra_Create folder":"创建文件夹","ra_Create new folder in %s":"在%s中创建新文件夹",ra_Crop:Cot,"ra_Define CRON...":"定义 CRON...","ra_Define functions":"定义功能","ra_Define rooms":"定义房间","ra_Define schedule":"定义时间表","ra_Define schedule...":"定义时间表...",ra_Del:$ot,ra_Delete:kot,"ra_Delete (no confirm for 5 mins)":"删除(5分钟内未确认)","ra_Delete current row":"删除当前行","ra_Deselect all":"全部取消选择","ra_Device → Channel → State":"设备→频道→状态",ra_Discard:Eot,ra_Disconnected:Tot,"ra_Do not export values of states":"不导出状态值","ra_Do not use let's encrypt":"不要使用让我们加密","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 function":"编辑功能","ra_Edit object field":"编辑对象字段","ra_Edit role":"编辑角色","ra_Edit room":"编辑室","ra_Edit value":"编辑值",ra_Error:Oot,"ra_Expand all nodes":"展开所有节点","ra_Expand one step node":"扩大一级","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:Dot,"ra_Filter files":"过滤文件","ra_Folder name":"文件夹名称","ra_Folder → Channel → State":"文件夹→频道→状态","ra_Folder → Device → Channel → State":"文件夹→设备→频道→状态","ra_Folder → State":"文件夹→状态","ra_Folders always first":"资料夹永远优先",ra_Friday:Aot,"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_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 answer from server":"来自服务器的无效答案","ra_Invalid parent folder!":"父文件夹无效!","ra_Invalid structure":"结构无效","ra_JSON editor":"JSON 编辑器","ra_Last change":"最后一次变更",ra_Latitude:Iot,"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_Longitude:Mot,'ra_May not trigger "updateLicenses"':"可能不会触发“updateLicenses”",ra_Message:Pot,ra_Monday:Not,"ra_Move down":"下移","ra_Move up":"提升",ra_Name:Rot,"ra_No data found in file":"文件中未找到数据","ra_No one license found in license manager":"许可证管理器中未找到任何许可证","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_Objects:jot,ra_Ok:Lot,"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 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_Private certificate":"私有证书",ra_Product:zot,"ra_Public certificate":"公共证书","ra_Quality code":"质量代码","ra_Refresh tree":"刷新树","ra_Reload files":"重新载入文件",ra_Repeat:Fot,ra_Replace:Bot,"ra_Request timed out":"请求超时","ra_Restrict to folder":"限制到文件夹",ra_Root:Wot,ra_Saturday:Hot,ra_Save:Uot,"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:Vot,"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_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:qot,"ra_Suitable license not found in license manager":"在许可证管理器中找不到合适的许可证",ra_Sunday:Got,"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:Xot,ra_Timestamp:Jot,"ra_Toggle expert mode":"切换专家模式","ra_Toggle the states view":"切换状态视图","ra_Toggle view mode":"切换检视模式","ra_Too big":"太大","ra_Too small":"太小","ra_Transparent dialog":"透明对话框",ra_Tuesday:Yot,"ra_Unknown error":"未知错误","ra_Unknown error!":"未知错误!",ra_Update:Kot,"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:Zot,ra_Value:Qot,ra_Version:eat,"ra_View file":"查看文件","ra_View: %s":"查看:%s",ra_Wednesday:tat,ra_Width:rat,ra_Yes:nat,"ra_You can export all objects or just the selected branch.":"您可以导出所有对象或仅导出选定的分支。","ra_You can filter entries by entering here some text":"您可以通过在此处输入一些文本来过滤条目",ra___different__:oat,ra_aclEveryone_read_object:aat,ra_aclEveryone_read_state:iat,ra_aclEveryone_write_object:sat,ra_aclEveryone_write_state:lat,ra_aclGroup_read_object:cat,ra_aclGroup_read_state:dat,ra_aclGroup_write_object:uat,ra_aclGroup_write_state:pat,ra_aclOwner_read_object:hat,ra_aclOwner_read_state:fat,ra_aclOwner_write_object:mat,ra_aclOwner_write_state:gat,ra_buttons:vat,ra_changedFrom:yat,ra_close:_at,ra_create_boolean_state:bat,ra_create_channel:wat,ra_create_device:xat,ra_create_number_state:Sat,ra_create_state:Cat,ra_create_string_state:$at,ra_daysShortText:kat,ra_dow_Fr:Eat,ra_dow_Mo:Tat,ra_dow_Sa:Oat,ra_dow_Su:Dat,ra_dow_Th:Aat,ra_dow_Tu:Iat,ra_dow_We:Mat,ra_expertMode:Pat,ra_fileType_all:Nat,ra_fileType_audio:Rat,ra_fileType_code:jat,ra_fileType_images:Lat,ra_fileType_txt:zat,ra_fileType_video:Fat,"ra_fileType_video,":"视频",ra_filter_customs:Bat,ra_filter_customs_without:Wat,ra_filter_func:Hat,ra_filter_id:Uat,ra_filter_name:Vat,ra_filter_role:qat,ra_filter_room:Gat,ra_filter_type:Xat,"ra_import data from %s file":"从 %s 文件导入数据",ra_invalidConfig:Jat,ra_lastChange:Yat,ra_locally:Kat,ra_month_Apr:Zat,ra_month_Aug:Qat,ra_month_Dec:eit,ra_month_Feb:tit,ra_month_Jan:rit,ra_month_Jul:nit,ra_month_Jun:oit,ra_month_Mai:ait,ra_month_Mar:iit,ra_month_Nov:sit,ra_month_Oct:lit,ra_month_Sep:cit,ra_months_Apr:dit,ra_months_Aug:uit,ra_months_Dec:pit,ra_months_Feb:hit,ra_months_Jan:fit,ra_months_Jul:mit,ra_months_Jun:git,ra_months_Mai:vit,ra_months_Mar:yit,ra_months_Nov:_it,ra_months_Oct:bit,ra_months_Sep:wit,ra_none:xit,ra_object_changed_by:Sit,ra_object_changed_by_user:Cit,ra_otherConfig:$it,ra_qualityCode:kit,ra_repeat:Eit,ra_select_folder_hint:Tit,ra_state_changed_by:Oit,ra_state_changed_from:Dit,ra_timestamp:Ait,ra_tooltip_ack:Iit,ra_tooltip_comment:Mit,ra_tooltip_copyState:Pit,ra_tooltip_customConfig:Nit,ra_tooltip_deleteObject:Rit,ra_tooltip_editObject:jit,ra_tooltip_editState:Lit,ra_tooltip_from:zit,ra_tooltip_lc:Fit,ra_tooltip_quality:Bit,ra_tooltip_ts:Wit,ra_tooltip_user:Hit,ra_tooltip_value:Uit,"ra_use seconds":"用秒",ra_val:Vit,"ra_via internet":"通过互联网",ra_warning_every_minute:qit,ra_warning_every_second:Git,sc_cron:Xit,sc_date:Jit,sc_dates:Yit,sc_dow:Kit,sc_dows:Zit,sc_every:Qit,sc_everyN_dates:est,sc_everyN_dow:tst,sc_everyN_dows:rst,sc_everyN_hours:nst,sc_everyN_minutes:ost,sc_everyN_months:ast,sc_everyN_seconds:ist,sc_every_dates:sst,sc_every_dow:lst,sc_every_dows:cst,sc_every_hours:dst,sc_every_minutes:ust,sc_every_months:pst,sc_every_seconds:hst,sc_from:fst,sc_hours:mst,sc_interval:gst,sc_intervalBetween:vst,sc_invalid_cron:yst,sc_minutes:_st,sc_months:bst,sc_once:wst,sc_period:xst,sc_seconds:Sst,sc_simple:Cst,sc_specific:$st,sc_specific_dates:kst,sc_specific_dow:Est,sc_specific_dows:Tst,sc_specific_hours:Ost,sc_specific_minutes:Dst,sc_specific_months:Ast,sc_specific_seconds:Ist,sc_time:Mst,sc_to:Pst,sc_wizard:Nst,sch_all:Rst,sch_astroDay:jst,sch_astroNight:Lst,sch_astro_dawn:zst,sch_astro_dusk:Fst,sch_astro_goldenHour:Bst,sch_astro_goldenHourEnd:Wst,sch_astro_nadir:Hst,sch_astro_nauticalDawn:Ust,sch_astro_nauticalDusk:Vst,sch_astro_night:qst,sch_astro_nightEnd:Gst,sch_astro_solarNoon:Xst,sch_astro_sunrise:Jst,sch_astro_sunriseEnd:Yst,sch_astro_sunset:Kst,sch_astro_sunsetStart:Zst,sch_at:Qst,sch_desc_atTime:elt,sch_desc_everyDay:tlt,sch_desc_everyHour:rlt,sch_desc_everyMinute:nlt,sch_desc_everyMonth:olt,sch_desc_everyNDay:alt,sch_desc_everyNHours:ilt,sch_desc_everyNMinutes:slt,sch_desc_everyNMonths:llt,sch_desc_everyNWeeks:clt,sch_desc_everyNYears:dlt,sch_desc_everyWeek:ult,sch_desc_everyYear:plt,sch_desc_intervalFromTo:hlt,sch_desc_never:flt,sch_desc_onDate:mlt,sch_desc_onDates:glt,sch_desc_onEveryDate:vlt,sch_desc_onMonth:ylt,sch_desc_onMonths:_lt,sch_desc_onWeekday:blt,sch_desc_onWeekdays:wlt,sch_desc_onWeekends:xlt,sch_desc_onWorkdays:Slt,sch_desc_onceInPast:Clt,sch_desc_once_on:$lt,sch_desc_validFrom:klt,sch_desc_validFromTo:Elt,sch_desc_validTo:Tlt,sch_every:Olt,sch_exactTime:Dlt,sch_from:Alt,sch_fromTo:Ilt,sch_intervalTime:Mlt,sch_invert:Plt,sch_no_one:Nlt,sch_on:Rlt,sch_period:jlt,sch_periodDaily:Llt,sch_periodDates:zlt,sch_periodDay:Flt,sch_periodEvery:Blt,sch_periodEveryDay:Wlt,sch_periodEveryMonth:Hlt,sch_periodEveryWeek:Ult,sch_periodEveryYear:Vlt,sch_periodHours:qlt,sch_periodMinutes:Glt,sch_periodMonth:Xlt,sch_periodMonthly:Jlt,sch_periodOnce:Ylt,sch_periodSpecificMonths:Klt,sch_periodWeek:Zlt,sch_periodWeekdays:Qlt,sch_periodWeekend:ect,sch_periodWeekly:tct,sch_periodWorkdays:rct,sch_periodYear:nct,sch_periodYearly:oct,sch_specificTime:act,sch_time:ict,sch_to:sct,sch_valid:lct,sch_validFrom:cct,sch_validTo:dct,sch_wholeDay:uct,sch_yearEveryMonth:pct},fct={en:twe,de:rke,ru:nDe,pt:oNe,nl:a4e,fr:i8e,it:sHe,es:lXe,pl:cQe,uk:pot,"zh-cn":hct},mct=` +`).forEach(i=>{if(!i.trim())return;const s=i.indexOf(":");if(s!==-1){const l=i.substring(0,s).trim();let d=i.substring(s+1).trim();d=d.replace(/^['"]|['"]$/g,""),d==="true"?r[l]=!0:d==="false"?r[l]=!1:parseFloat(d).toString()===r[l]?r[l]=parseFloat(d):r[l]=d}else r[i.trim()]=!0}),e=e.substring(n+7))}return{header:r,body:e}}static MDremoveDocsify(e){const r=e.match(/{docsify-[^}]*}/g);return r&&r.forEach(n=>e=e.replace(n,"")),e}static generateFile(e,r){const n=document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){const r=e&4294901760,n=c1[e];let o;return n?o=[n]:e&1?o=[c1[1],`0x${(e&65534).toString(16)}`]:e&2?o=[c1[2],`0x${(e&65533).toString(16)}`]:o=[`0x${e.toString(16)}`],r&&o.push(`0x${(r>>16).toString(16).toUpperCase()}`),o}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){var o;const r=(o=e==null?void 0:e.common)==null?void 0:o.states;let n;if(r)if(typeof r=="string"&&r[0]==="{")try{n=JSON.parse(r)}catch{console.error(`Cannot parse states: ${r}`),n=null}else if(typeof r=="string"){const a=r.split(";");n={};for(let i=0;in[i]=a):(e==null?void 0:e.common.type)==="string"?r.forEach(a=>n[a]=a):(e==null?void 0:e.common.type)==="boolean"&&(n.false=r[0],n.true=r[1])):typeof r=="object"&&(n=r);return n||null}static async getSvg(e){const n=await(await fetch(e)).blob();return new Promise(o=>{const a=new FileReader;a.onload=()=>{var i;return o(((i=a.result)==null?void 0:i.toString())||"")},a.readAsDataURL(n)})}static detectMimeType(e){const r=Object.keys(W5).find(n=>e.startsWith(n));return r?W5[r]:null}static isStableRepository(e){return!!(typeof e=="string"&&e.toLowerCase().startsWith("stable")||e&&typeof e!="string"&&e.find(r=>r.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,...r){const n={};for(let o=0;o{if(typeof r[o][a]=="function")n[a]=r[o][a](e);else if(typeof r[o][a]=="object"){const i=r[o][a];n[a]={},Object.keys(i).forEach(s=>{typeof i[s]=="function"?n[a][s]=i(e):(i[s]||i[s]===0)&&(n[a][s]=i[s])})}else(r[o][a]||r[o][a]===0)&&(n[a]=r[o][a])});return n}};X(sr,"namespace",Wa),X(sr,"INSTANCES","instances"),X(sr,"dateFormat",["DD","MM"]),X(sr,"FORBIDDEN_CHARS",/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu);let ue=sr;const d1={buttonIcon:{marginRight:8}};class Qve extends m.Component{constructor(r){super(r);X(this,"isIFrame");const n=r.newReact===void 0?!0:r.newReact;if(r.isIFrame!==void 0)this.isIFrame=r.isIFrame;else try{this.isIFrame=!n&&window.self!==window.top}catch{this.isIFrame=!n}}render(){const r=this.props.noTextOnButtons,n={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},o={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(o.minHeight=48),this.props.error&&(n.border="1px solid red"),m.createElement(af,{style:o},m.createElement(ro,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:n},m.createElement(s2,{style:r?void 0:d1.buttonIcon}),!r&&P.t("ra_Save")),m.createElement(ro,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...n,marginLeft:10}},m.createElement(s2,{style:r?void 0:d1.buttonIcon}),r?"+":P.t("ra_Save and close"),r&&m.createElement(Ar,null)),m.createElement("div",{style:{flexGrow:1}}),m.createElement(ro,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:n},m.createElement(Ar,{style:r?void 0:d1.buttonIcon}),!r&&P.t("ra_Close")))}}const H5={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class PO extends A.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let r=!1;this.props.suppressQuestionMinutes&&(r=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,r?Date.now()>r&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),r=!1):r=!1),this.state={suppress:r}}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):m.createElement(or,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(e,r)=>{r!=="backdropClick"&&r!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},m.createElement(_r,{id:"ar_confirmation_dialog_title"},this.props.title||P.t("ra_Are you sure?")),m.createElement(Wr,null,m.createElement(Ds,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?m.createElement("br",null):null,this.props.suppressQuestionMinutes?m.createElement(St,{sx:{"& .FormControlLabel-label":H5.suppress,"&.FormControlLabel-root":H5.suppressRoot},control:m.createElement(yr,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||P.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),m.createElement(pr,null,m.createElement(tt,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:m.createElement(Ea,null)},this.props.ok||P.t("ra_Ok")),m.createElement(tt,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:m.createElement(Ar,null)},this.props.cancel||P.t("ra_Cancel"))))}}class eU extends A.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return m.createElement(or,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},m.createElement(_r,{id:"ar_alert_dialog_title"},this.props.title||P.t("ra_Error")),m.createElement(Wr,null,m.createElement(Ds,{id:"ar_alert_dialog_description"},this.props.text||P.t("ra_Unknown error!"))),m.createElement(pr,null,m.createElement(tt,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:m.createElement(Ea,null)},P.t("ra_Ok"))))}}const eye="Append",tye="Cancel",rye="Categories",nye="Checked",oye="Delete",aye="Close",iye="Commercial",sye="Configure",lye="Connected",cye="Copied",dye="Create",uye="Crop",pye="Delete",hye="Delete",fye="Discard",mye="Disconnected",gye="Error",vye="Filter",yye="Friday",_ye="Latitude",bye="Expires in",wye="Longitude",xye="Message",Sye="Monday",Cye="Name",$ye="Objects",kye="Ok",Eye="Product",Tye="Repeat",Oye="Replace",Dye="Root",Aye="Saturday",Iye="Save",Mye="Selected",Pye="States",Nye="Sunday",Rye="Thursday",jye="Timestamp",Lye="Tuesday",zye="Update",Fye="Valid till",Bye="Value",Wye="Version",Hye="Wednesday",Uye="Width",Vye="Yes",qye="different",Gye="Everyone can read object",Xye="Everyone can read state",Jye="Everyone can write object",Yye="Everyone can write state",Kye="Group can read object",Zye="Group can read state",Qye="Group can write object",e_e="Group can write state",t_e="Owner can read object",r_e="Owner can read state",n_e="Owner can write object",o_e="Owner can write state",a_e="Buttons",i_e="Changed from",s_e="close",l_e="Create boolean state",c_e="Create channel",d_e="Create device",u_e="Create number state",p_e="Create state",h_e="Create string state",f_e="days",m_e="Fr",g_e="Mo",v_e="Sa",y_e="Su",__e="Th",b_e="Tu",w_e="We",x_e="Expert mode",S_e="All files",C_e="Audio",$_e="Code/JSON",k_e="Images",E_e="Text",T_e="Video",O_e="Settings",D_e="without",A_e="Function",I_e="ID",M_e="Name",P_e="Role",N_e="Room",R_e="Type",j_e="Invalid settings",L_e="Last change",z_e="locally",F_e="Apr",B_e="Aug",W_e="Dec",H_e="Feb",U_e="Jan",V_e="Jul",q_e="Jun",G_e="Mai",X_e="Mar",J_e="Nov",Y_e="Oct",K_e="Sep",Z_e="Apr",Q_e="Aug",e0e="Dec",t0e="Feb",r0e="Jan",n0e="Jul",o0e="Jun",a0e="Mai",i0e="Mar",s0e="Nov",l0e="Oct",c0e="Sep",d0e="none",u0e="Object changed by",p0e="Object last changed at",h0e="Settings from other adapter %s",f0e="Quality code",m0e="repeat",g0e='To select folder, just hold the key "shift" by clicking the folder.',v0e="State changed by",y0e="Object changed from",_0e="Timestamp",b0e="Acknowledged",w0e="Comment",x0e="Copy the state value",S0e="Custom settings",C0e="Delete object",$0e="Edit object",k0e="Edit the state value",E0e="From",T0e="Last changed",O0e="Quality",D0e="Time stamp",A0e="User",I0e="Value",M0e="Value",P0e="Warning: The CRON job will run every minute during the specified period!",N0e="Warning: The CRON job will run every second during the specified period!",R0e="CRON",j0e="Date",L0e="Dates",z0e="Day",F0e="Day of week",B0e="Every",W0e="every N days",H0e="every Nth day of the week",U0e="every N day of week",V0e="every N hours",q0e="every N minutes",G0e="every N months",X0e="every N seconds",J0e="every day",Y0e="every day of the week",K0e="every day of the week",Z0e="every hour",Q0e="every minute",ebe="every month",tbe="every second",rbe="From",nbe="Hours",obe="Interval",abe="Interval between",ibe="Invalid CRON",sbe="Minutes",lbe="months",cbe="Once",dbe="Period",ube="Seconds",pbe="Simple",hbe="Specific time",fbe="specific dates",mbe="specific day(s) of the week",gbe="specific day of weeks",vbe="specific hours",ybe="specific minutes",_be="specific months",bbe="specific seconds",wbe="Time",xbe="To",Sbe="Wizard",Cbe="all",$be="Astro day",kbe="Astro night",Ebe="Dawn",Tbe="Dusk",Obe="Golden hour",Dbe="Golden hour end",Abe="Nadir",Ibe="Nautical dawn",Mbe="Nautical dusk",Pbe="Night",Nbe="Night end",Rbe="Solar noon",jbe="Sunrise",Lbe="Sunrise end",zbe="Sunset",Fbe="Sunset start",Bbe="at",Wbe="at %s",Hbe="every day",Ube="every hour",Vbe="every minute",qbe="every month",Gbe="every %s day",Xbe="every %s hours",Jbe="every %s minutes",Ybe="every %s months",Kbe="every %s weeks",Zbe="every %s years",Qbe="every week",e1e="every year",t1e="from %s to %s",r1e="never",n1e="on %s of %s",o1e="on %s and %s of",a1e="on every date of",i1e="%s",s1e="%s and %s",l1e="on %s",c1e="on %s and %s",d1e="on weekends",u1e="on working days",p1e="will ne be not executed any more, because start is in the past",h1e="on %s",f1e="from %s",m1e="Execute from to",g1e="to %s",v1e="every",y1e="Specific time",_1e="from",b1e="From-to",w1e="Interval time",x1e="invert",S1e="none",C1e="on",$1e="Period",k1e="Daily",E1e="Dates",T1e="Day",O1e="Every",D1e="Every day",A1e="Every month",I1e="Every week",M1e="Every year",P1e="Hours",N1e="Minutes",R1e="month",j1e="Monthly",L1e="Once",z1e="Specific months",F1e="Week",B1e="Weekdays",W1e="Weekend",H1e="Weekly",U1e="Workdays",V1e="Year",q1e="Yearly",G1e="Specific time",X1e="Time",J1e="to",Y1e="Valid",K1e="from",Z1e="to",Q1e="Whole day",ewe="every month",twe={"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_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:eye,"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:tye,"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:rye,"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:nye,ra_Clear:oye,"ra_Clear filter":"Clear filter","ra_Clear icon":"Clear icon","ra_Clone current row":"Clone current row",ra_Close:aye,"ra_Collapse all nodes":"Collapse all nodes","ra_Collapse one step node":"Collapse one level",ra_Commercial:iye,ra_Configure:sye,"ra_Configure visible columns":"Configure visible columns","ra_Confirm deletion of %s":"Confirm deletion of %s",ra_Connected:lye,ra_Copied:cye,"ra_Copied %s":'Copied "%s"',"ra_Copy content":"Copy content",ra_Create:dye,"ra_Create alias":"Create alias","ra_Create folder":"Create folder","ra_Create new folder in %s":"Create new folder in %s",ra_Crop:uye,"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:pye,ra_Delete:hye,"ra_Delete (no confirm for 5 mins)":"Delete (no confirm for 5 mins)","ra_Delete current row":"Delete current row","ra_Deselect all":"Unselect all","ra_Device → Channel → State":"Device → Channel → State",ra_Discard:fye,ra_Disconnected:mye,"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_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 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_Error:gye,"ra_Expand all nodes":"Expand all nodes","ra_Expand one step node":"Expand one level","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:vye,"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:yye,"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_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 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:_ye,"ra_License %s":"License %s","ra_License agreement":"License agreement","ra_License does not exist":"License does not exist",ra_tooltip_expire:bye,"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_Longitude:wye,'ra_May not trigger "updateLicenses"':'May not trigger "updateLicenses"',ra_Message:xye,ra_Monday:Sye,"ra_Move down":"Move down","ra_Move up":"Move up",ra_Name:Cye,"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 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_Objects:$ye,ra_Ok:kye,"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 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_Private certificate":"Private certificate",ra_Product:Eye,"ra_Public certificate":"Public certificate","ra_Quality code":"Quality","ra_Refresh tree":"Refresh tree","ra_Reload files":"Reload files",ra_Repeat:Tye,ra_Replace:Oye,"ra_Request timed out":"Request timed out","ra_Restrict to folder":"Restrict to folder",ra_Root:Dye,ra_Saturday:Aye,ra_Save:Iye,"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:Mye,"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_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:Pye,"ra_Suitable license not found in license manager":"Suitable license not found in license manager",ra_Sunday:Nye,"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:Rye,ra_Timestamp:jye,"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:Lye,"ra_Unknown error":"Unknown error","ra_Unknown error!":"Unknown error!",ra_Update:zye,"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:Fye,ra_Value:Bye,ra_Version:Wye,"ra_View file":"View file","ra_View: %s":"View: %s",ra_Wednesday:Hye,ra_Width:Uye,ra_Yes:Vye,"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___different__:qye,ra_aclEveryone_read_object:Gye,ra_aclEveryone_read_state:Xye,ra_aclEveryone_write_object:Jye,ra_aclEveryone_write_state:Yye,ra_aclGroup_read_object:Kye,ra_aclGroup_read_state:Zye,ra_aclGroup_write_object:Qye,ra_aclGroup_write_state:e_e,ra_aclOwner_read_object:t_e,ra_aclOwner_read_state:r_e,ra_aclOwner_write_object:n_e,ra_aclOwner_write_state:o_e,ra_buttons:a_e,ra_changedFrom:i_e,ra_close:s_e,ra_create_boolean_state:l_e,ra_create_channel:c_e,ra_create_device:d_e,ra_create_number_state:u_e,ra_create_state:p_e,ra_create_string_state:h_e,ra_daysShortText:f_e,ra_dow_Fr:m_e,ra_dow_Mo:g_e,ra_dow_Sa:v_e,ra_dow_Su:y_e,ra_dow_Th:__e,ra_dow_Tu:b_e,ra_dow_We:w_e,ra_expertMode:x_e,ra_fileType_all:S_e,ra_fileType_audio:C_e,ra_fileType_code:$_e,ra_fileType_images:k_e,ra_fileType_txt:E_e,ra_fileType_video:T_e,"ra_fileType_video,":"Video",ra_filter_customs:O_e,ra_filter_customs_without:D_e,ra_filter_func:A_e,ra_filter_id:I_e,ra_filter_name:M_e,ra_filter_role:P_e,ra_filter_room:N_e,ra_filter_type:R_e,"ra_import data from %s file":"Import data from %s file",ra_invalidConfig:j_e,ra_lastChange:L_e,ra_locally:z_e,ra_month_Apr:F_e,ra_month_Aug:B_e,ra_month_Dec:W_e,ra_month_Feb:H_e,ra_month_Jan:U_e,ra_month_Jul:V_e,ra_month_Jun:q_e,ra_month_Mai:G_e,ra_month_Mar:X_e,ra_month_Nov:J_e,ra_month_Oct:Y_e,ra_month_Sep:K_e,ra_months_Apr:Z_e,ra_months_Aug:Q_e,ra_months_Dec:e0e,ra_months_Feb:t0e,ra_months_Jan:r0e,ra_months_Jul:n0e,ra_months_Jun:o0e,ra_months_Mai:a0e,ra_months_Mar:i0e,ra_months_Nov:s0e,ra_months_Oct:l0e,ra_months_Sep:c0e,ra_none:d0e,ra_object_changed_by:u0e,ra_object_changed_by_user:p0e,ra_otherConfig:h0e,ra_qualityCode:f0e,ra_repeat:m0e,ra_select_folder_hint:g0e,ra_state_changed_by:v0e,ra_state_changed_from:y0e,ra_timestamp:_0e,ra_tooltip_ack:b0e,ra_tooltip_comment:w0e,ra_tooltip_copyState:x0e,ra_tooltip_customConfig:S0e,ra_tooltip_deleteObject:C0e,ra_tooltip_editObject:$0e,ra_tooltip_editState:k0e,ra_tooltip_from:E0e,ra_tooltip_lc:T0e,ra_tooltip_quality:O0e,ra_tooltip_ts:D0e,ra_tooltip_user:A0e,ra_tooltip_value:I0e,"ra_use seconds":"use seconds",ra_val:M0e,"ra_via internet":"via internet",ra_warning_every_minute:P0e,ra_warning_every_second:N0e,sc_cron:R0e,sc_date:j0e,sc_dates:L0e,sc_dow:z0e,sc_dows:F0e,sc_every:B0e,sc_everyN_dates:W0e,sc_everyN_dow:H0e,sc_everyN_dows:U0e,sc_everyN_hours:V0e,sc_everyN_minutes:q0e,sc_everyN_months:G0e,sc_everyN_seconds:X0e,sc_every_dates:J0e,sc_every_dow:Y0e,sc_every_dows:K0e,sc_every_hours:Z0e,sc_every_minutes:Q0e,sc_every_months:ebe,sc_every_seconds:tbe,sc_from:rbe,sc_hours:nbe,sc_interval:obe,sc_intervalBetween:abe,sc_invalid_cron:ibe,sc_minutes:sbe,sc_months:lbe,sc_once:cbe,sc_period:dbe,sc_seconds:ube,sc_simple:pbe,sc_specific:hbe,sc_specific_dates:fbe,sc_specific_dow:mbe,sc_specific_dows:gbe,sc_specific_hours:vbe,sc_specific_minutes:ybe,sc_specific_months:_be,sc_specific_seconds:bbe,sc_time:wbe,sc_to:xbe,sc_wizard:Sbe,sch_all:Cbe,sch_astroDay:$be,sch_astroNight:kbe,sch_astro_dawn:Ebe,sch_astro_dusk:Tbe,sch_astro_goldenHour:Obe,sch_astro_goldenHourEnd:Dbe,sch_astro_nadir:Abe,sch_astro_nauticalDawn:Ibe,sch_astro_nauticalDusk:Mbe,sch_astro_night:Pbe,sch_astro_nightEnd:Nbe,sch_astro_solarNoon:Rbe,sch_astro_sunrise:jbe,sch_astro_sunriseEnd:Lbe,sch_astro_sunset:zbe,sch_astro_sunsetStart:Fbe,sch_at:Bbe,sch_desc_atTime:Wbe,sch_desc_everyDay:Hbe,sch_desc_everyHour:Ube,sch_desc_everyMinute:Vbe,sch_desc_everyMonth:qbe,sch_desc_everyNDay:Gbe,sch_desc_everyNHours:Xbe,sch_desc_everyNMinutes:Jbe,sch_desc_everyNMonths:Ybe,sch_desc_everyNWeeks:Kbe,sch_desc_everyNYears:Zbe,sch_desc_everyWeek:Qbe,sch_desc_everyYear:e1e,sch_desc_intervalFromTo:t1e,sch_desc_never:r1e,sch_desc_onDate:n1e,sch_desc_onDates:o1e,sch_desc_onEveryDate:a1e,sch_desc_onMonth:i1e,sch_desc_onMonths:s1e,sch_desc_onWeekday:l1e,sch_desc_onWeekdays:c1e,sch_desc_onWeekends:d1e,sch_desc_onWorkdays:u1e,sch_desc_onceInPast:p1e,sch_desc_once_on:h1e,sch_desc_validFrom:f1e,sch_desc_validFromTo:m1e,sch_desc_validTo:g1e,sch_every:v1e,sch_exactTime:y1e,sch_from:_1e,sch_fromTo:b1e,sch_intervalTime:w1e,sch_invert:x1e,sch_no_one:S1e,sch_on:C1e,sch_period:$1e,sch_periodDaily:k1e,sch_periodDates:E1e,sch_periodDay:T1e,sch_periodEvery:O1e,sch_periodEveryDay:D1e,sch_periodEveryMonth:A1e,sch_periodEveryWeek:I1e,sch_periodEveryYear:M1e,sch_periodHours:P1e,sch_periodMinutes:N1e,sch_periodMonth:R1e,sch_periodMonthly:j1e,sch_periodOnce:L1e,sch_periodSpecificMonths:z1e,sch_periodWeek:F1e,sch_periodWeekdays:B1e,sch_periodWeekend:W1e,sch_periodWeekly:H1e,sch_periodWorkdays:U1e,sch_periodYear:V1e,sch_periodYearly:q1e,sch_specificTime:G1e,sch_time:X1e,sch_to:J1e,sch_valid:Y1e,sch_validFrom:K1e,sch_validTo:Z1e,sch_wholeDay:Q1e,sch_yearEveryMonth:ewe},rwe="Anhängen",nwe="Abbrechen",owe="Kategorien",awe="Geprüft",iwe="Löschen",swe="Schließen",lwe="Kommerziell",cwe="Konfigurieren",dwe="Verbunden",uwe="Kopiert",pwe="Erstellen",hwe="Ernte",fwe="Entf",mwe="Löschen",gwe="Verwerfen",vwe="Getrennt",ywe="Fehler",_we="Filter",bwe="Freitag",wwe="Breite",xwe="Längengrad",Swe="Meldung",Cwe="Montag",$we="Name",kwe="Objekte",Ewe="OK",Twe="Produkt",Owe="Wiederholen",Dwe="Ersetzen",Awe="Anfang",Iwe="Samstag",Mwe="Speichern",Pwe="Ausgewählt",Nwe="Zustände",Rwe="Sonntag",jwe="Donnerstag",Lwe="Zeitstempel",zwe="Dienstag",Fwe="Aktualisieren",Bwe="Gültig bis",Wwe="Wert",Hwe="Ausführung",Uwe="Mittwoch",Vwe="Breite",qwe="Ja",Gwe="unterschiedlich",Xwe="Jeder kann Objekt lesen",Jwe="Jeder kann Zustand lesen",Ywe="Jeder kann ein Objekt schreiben",Kwe="Jeder kann Zustand schreiben",Zwe="Gruppe kann Objekt lesen",Qwe="Gruppe kann Status lesen",exe="Gruppe kann Objekt schreiben",txe="Gruppe kann Status schreiben",rxe="Besitzer kann Objekt lesen",nxe="Besitzer kann Zustand lesen",oxe="Besitzer kann Objekt schreiben",axe="Besitzer kann Zustand schreiben",ixe="Tasten",sxe="Geändert von",lxe="Schließen",cxe="Booleschen Zustand erstellen",dxe="Kanal erstellen",uxe="Gerät erstellen",pxe="Nummern-Zustand erstellen",hxe="Zustand erstellen",fxe="String-Zustand erstellen",mxe="T.",gxe="Fr",vxe="Mo",yxe="Sa",_xe="So",bxe="Do",wxe="Di",xxe="Mi",Sxe="Expertenmodus",Cxe="Alle Dateien",$xe="Audio",kxe="Code/JSON",Exe="Bilder",Txe="Text",Oxe="Video",Dxe="Einstellungen",Axe="ohne",Ixe="Funktion",Mxe="ID",Pxe="Name",Nxe="Rolle",Rxe="Raum",jxe="Typ",Lxe="Ungültige Einstellungen",zxe="Letzte Änderung",Fxe="örtlich",Bxe="Apr",Wxe="Aug",Hxe="Dez",Uxe="Feb",Vxe="Jan",qxe="Jul",Gxe="Jun",Xxe="Mai",Jxe="Mär",Yxe="Nov",Kxe="Okt",Zxe="Sep",Qxe="Apr",eSe="Aug",tSe="Dez",rSe="Feb",nSe="Jan",oSe="Jul",aSe="Jun",iSe="Mai",sSe="Mär",lSe="Nov",cSe="Okt",dSe="Sep",uSe="kein",pSe="Objekt geändert von",hSe="Objekt zuletzt geändert um",fSe="Einstellungen von anderen Adaptern %s",mSe="Qualitätscode",gSe="wiederholen",vSe='Um einen Ordner auszuwählen, halten Sie einfach die Taste "Shift" gedrückt, indem Sie auf den Ordner klicken.',ySe="Zustand geändert durch",_Se="Objekt geändert von",bSe="Zeitstempel",wSe="Bestätigt",xSe="Kommentar",SSe="Statuswert kopieren",CSe="Benutzerdefinierte Einstellungen",$Se="Objekt löschen",kSe="Objekt bearbeiten",ESe="Statuswert bearbeiten",TSe="Von",OSe="Zuletzt geändert",DSe="Qualität",ASe="Zeitstempel",ISe="Benutzer",MSe="Wert",PSe="Wert",NSe="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Minute ausgeführt!",RSe="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Sekunde ausgeführt!",jSe="CRON",LSe="Datum",zSe="Tage",FSe="Tag",BSe="Wochentage",WSe="Jeden",HSe="alle N Tage",USe="jeden x-ten Tag der Woche",VSe="alle N Wochentage",qSe="alle N Stunden",GSe="alle N Minuten",XSe="alle N Monate",JSe="alle N Sekunden",YSe="jeden Tag",KSe="jeden Tag der Woche",ZSe="jeden Tag der Woche",QSe="jede Stunde",eCe="jede Minute",tCe="jeden Monat",rCe="jede Sekunde",nCe="Von",oCe="Stunden",aCe="Intervall",iCe="Intervall zwischen",sCe="Ungültiger CRON",lCe="Minuten",cCe="Monate",dCe="Einmal",uCe="Zeitraum",pCe="Sekunden",hCe="Einfach",fCe="Bestimmte Zeit",mCe="bestimmte Tage",gCe="bestimmte(r) Tag(e) der Woche",vCe="bestimmten Wochentag",yCe="bestimmte Stunden",_Ce="bestimmte Minuten",bCe="bestimmte Monate",wCe="bestimmte Sekunden",xCe="Zeit",SCe="Bis",CCe="Wizard",$Ce="alle",kCe="Astronomischer Tag",ECe="Astronomische Nacht",TCe="Morgendämmerung",OCe="Abenddämmerung",DCe="Goldene Stunde",ACe="Goldene Stundenende",ICe="Nadir",MCe="Nautische Morgendämmerung",PCe="Nautische Abenddämmerung",NCe="Nacht",RCe="Nachtende",jCe="Sonnenmittag",LCe="Sonnenaufgang",zCe="Sonnenaufgangende",FCe="Sonnenuntergang",BCe="Sonnenuntergangstart",WCe="am",HCe="um %s",UCe="jeden Tag",VCe="jede Stunde",qCe="jede Minute",GCe="jeden Monat",XCe="jeden %s Tag",JCe="alle %s Stunden",YCe="alle %s Minuten",KCe="alle %s Monate",ZCe="alle %s Wochen",QCe="alle %s Jahre",e$e="jede Woche",t$e="jedes Jahr",r$e="von %s bis %s",n$e="noch nie",o$e="am %s von %s",a$e="am %s und %s von",i$e="an jedem Datum von",s$e="%s",l$e="%s und %s",c$e="auf %s",d$e="auf %s und %s",u$e="an Wochenenden",p$e="an Werktagen",h$e="wird nicht mehr ausgeführt, weil der Start in der Vergangenheit ist",f$e="auf %s",m$e="von %s",g$e="Ausführen von bis",v$e="bis %s",y$e="jeden",_$e="Bestimmte Zeit",b$e="von",w$e="Von bis",x$e="Zeitintervall",S$e="umkehren",C$e="keiner",$$e="am",k$e="Zeitraum",E$e="Täglich",T$e="Daten",O$e="Tag",D$e="Jeden",A$e="Jeden Tag",I$e="Jeden Monat",M$e="Jede Woche",P$e="Jedes Jahr",N$e="Stunden",R$e="Minuten",j$e="Monat",L$e="Monatlich",z$e="Einmal",F$e="Bestimmte Monate",B$e="Woche",W$e="Wochentage",H$e="Wochenende",U$e="Wöchentlich",V$e="Arbeitstage",q$e="Jahr",G$e="Jährlich",X$e="Bestimmte Zeit",J$e="Zeit",Y$e="zu",K$e="Gültigkeit",Z$e="von",Q$e="bis",eke="Ganzer Tag",tke="jeden Monat",rke={"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_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:rwe,"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:nwe,"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:owe,"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:awe,ra_Clear:iwe,"ra_Clear filter":"Filter löschen","ra_Clear icon":"Symbol löschen","ra_Clone current row":"Aktuelle Zeile klonen",ra_Close:swe,"ra_Collapse all nodes":"Alle Knoten zuklappen","ra_Collapse one step node":"Eine Ebene zuklappen",ra_Commercial:lwe,ra_Configure:cwe,"ra_Configure visible columns":"Spalten Konfigurieren","ra_Confirm deletion of %s":"Das Löschen von %s bestätigen",ra_Connected:dwe,ra_Copied:uwe,"ra_Copied %s":'"%s" kopiert',"ra_Copy content":"Inhalte kopieren",ra_Create:pwe,"ra_Create alias":"Alias erstellen","ra_Create folder":"Ordner erstellen","ra_Create new folder in %s":'Neuen Ordner in "%s" erstellen',ra_Crop:hwe,"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:fwe,ra_Delete:mwe,"ra_Delete (no confirm for 5 mins)":"Löschen (keine Bestätigung für 5 Minuten)","ra_Delete current row":"Aktuelle Zeile löschen","ra_Deselect all":"Alles abwählen","ra_Device → Channel → State":"Gerät → Kanal → Zustand",ra_Discard:gwe,ra_Disconnected:vwe,"ra_Do not export values of states":"Keine Zustandswerte exportieren","ra_Do not use let's encrypt":"Let's encrypt nicht verwenden","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 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_Error:ywe,"ra_Expand all nodes":"Alle Knoten aufklappen","ra_Expand one step node":"Eine Ebene aufklappen","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:_we,"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:bwe,"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_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 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:wwe,"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_Longitude:xwe,'ra_May not trigger "updateLicenses"':"Löst möglicherweise nicht „updateLicenses“ aus",ra_Message:Swe,ra_Monday:Cwe,"ra_Move down":"Nach unten","ra_Move up":"Nach oben",ra_Name:$we,"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 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_Objects:kwe,ra_Ok:Ewe,"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 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_Private certificate":"Privates Zertifikat",ra_Product:Twe,"ra_Public certificate":"Öffentliches Zertifikat","ra_Quality code":"Qualität","ra_Refresh tree":"Baum aktualisieren","ra_Reload files":"Dateien neu laden",ra_Repeat:Owe,ra_Replace:Dwe,"ra_Request timed out":"Zeitüberschreitung der Anforderung","ra_Restrict to folder":"Auf Ordner beschränken",ra_Root:Awe,ra_Saturday:Iwe,ra_Save:Mwe,"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:Pwe,"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_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:Nwe,"ra_Suitable license not found in license manager":"Passende Lizenz im Lizenzmanager nicht gefunden",ra_Sunday:Rwe,"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:jwe,ra_Timestamp:Lwe,"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:zwe,"ra_Unknown error":"Unbekannter Fehler","ra_Unknown error!":"Unbekannter Fehler!",ra_Update:Fwe,"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:Bwe,ra_Value:Wwe,ra_Version:Hwe,"ra_View file":"Datei ansehen","ra_View: %s":"Anschauen: %s",ra_Wednesday:Uwe,ra_Width:Vwe,ra_Yes:qwe,"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___different__:Gwe,ra_aclEveryone_read_object:Xwe,ra_aclEveryone_read_state:Jwe,ra_aclEveryone_write_object:Ywe,ra_aclEveryone_write_state:Kwe,ra_aclGroup_read_object:Zwe,ra_aclGroup_read_state:Qwe,ra_aclGroup_write_object:exe,ra_aclGroup_write_state:txe,ra_aclOwner_read_object:rxe,ra_aclOwner_read_state:nxe,ra_aclOwner_write_object:oxe,ra_aclOwner_write_state:axe,ra_buttons:ixe,ra_changedFrom:sxe,ra_close:lxe,ra_create_boolean_state:cxe,ra_create_channel:dxe,ra_create_device:uxe,ra_create_number_state:pxe,ra_create_state:hxe,ra_create_string_state:fxe,ra_daysShortText:mxe,ra_dow_Fr:gxe,ra_dow_Mo:vxe,ra_dow_Sa:yxe,ra_dow_Su:_xe,ra_dow_Th:bxe,ra_dow_Tu:wxe,ra_dow_We:xxe,ra_expertMode:Sxe,ra_fileType_all:Cxe,ra_fileType_audio:$xe,ra_fileType_code:kxe,ra_fileType_images:Exe,ra_fileType_txt:Txe,ra_fileType_video:Oxe,"ra_fileType_video,":"Video",ra_filter_customs:Dxe,ra_filter_customs_without:Axe,ra_filter_func:Ixe,ra_filter_id:Mxe,ra_filter_name:Pxe,ra_filter_role:Nxe,ra_filter_room:Rxe,ra_filter_type:jxe,"ra_import data from %s file":"Daten aus %s-Datei importieren",ra_invalidConfig:Lxe,ra_lastChange:zxe,ra_locally:Fxe,ra_month_Apr:Bxe,ra_month_Aug:Wxe,ra_month_Dec:Hxe,ra_month_Feb:Uxe,ra_month_Jan:Vxe,ra_month_Jul:qxe,ra_month_Jun:Gxe,ra_month_Mai:Xxe,ra_month_Mar:Jxe,ra_month_Nov:Yxe,ra_month_Oct:Kxe,ra_month_Sep:Zxe,ra_months_Apr:Qxe,ra_months_Aug:eSe,ra_months_Dec:tSe,ra_months_Feb:rSe,ra_months_Jan:nSe,ra_months_Jul:oSe,ra_months_Jun:aSe,ra_months_Mai:iSe,ra_months_Mar:sSe,ra_months_Nov:lSe,ra_months_Oct:cSe,ra_months_Sep:dSe,ra_none:uSe,ra_object_changed_by:pSe,ra_object_changed_by_user:hSe,ra_otherConfig:fSe,ra_qualityCode:mSe,ra_repeat:gSe,ra_select_folder_hint:vSe,ra_state_changed_by:ySe,ra_state_changed_from:_Se,ra_timestamp:bSe,ra_tooltip_ack:wSe,ra_tooltip_comment:xSe,ra_tooltip_copyState:SSe,ra_tooltip_customConfig:CSe,ra_tooltip_deleteObject:$Se,ra_tooltip_editObject:kSe,ra_tooltip_editState:ESe,ra_tooltip_from:TSe,ra_tooltip_lc:OSe,ra_tooltip_quality:DSe,ra_tooltip_ts:ASe,ra_tooltip_user:ISe,ra_tooltip_value:MSe,"ra_use seconds":"Sekunden benutzen",ra_val:PSe,"ra_via internet":"übers Internet",ra_warning_every_minute:NSe,ra_warning_every_second:RSe,sc_cron:jSe,sc_date:LSe,sc_dates:zSe,sc_dow:FSe,sc_dows:BSe,sc_every:WSe,sc_everyN_dates:HSe,sc_everyN_dow:USe,sc_everyN_dows:VSe,sc_everyN_hours:qSe,sc_everyN_minutes:GSe,sc_everyN_months:XSe,sc_everyN_seconds:JSe,sc_every_dates:YSe,sc_every_dow:KSe,sc_every_dows:ZSe,sc_every_hours:QSe,sc_every_minutes:eCe,sc_every_months:tCe,sc_every_seconds:rCe,sc_from:nCe,sc_hours:oCe,sc_interval:aCe,sc_intervalBetween:iCe,sc_invalid_cron:sCe,sc_minutes:lCe,sc_months:cCe,sc_once:dCe,sc_period:uCe,sc_seconds:pCe,sc_simple:hCe,sc_specific:fCe,sc_specific_dates:mCe,sc_specific_dow:gCe,sc_specific_dows:vCe,sc_specific_hours:yCe,sc_specific_minutes:_Ce,sc_specific_months:bCe,sc_specific_seconds:wCe,sc_time:xCe,sc_to:SCe,sc_wizard:CCe,sch_all:$Ce,sch_astroDay:kCe,sch_astroNight:ECe,sch_astro_dawn:TCe,sch_astro_dusk:OCe,sch_astro_goldenHour:DCe,sch_astro_goldenHourEnd:ACe,sch_astro_nadir:ICe,sch_astro_nauticalDawn:MCe,sch_astro_nauticalDusk:PCe,sch_astro_night:NCe,sch_astro_nightEnd:RCe,sch_astro_solarNoon:jCe,sch_astro_sunrise:LCe,sch_astro_sunriseEnd:zCe,sch_astro_sunset:FCe,sch_astro_sunsetStart:BCe,sch_at:WCe,sch_desc_atTime:HCe,sch_desc_everyDay:UCe,sch_desc_everyHour:VCe,sch_desc_everyMinute:qCe,sch_desc_everyMonth:GCe,sch_desc_everyNDay:XCe,sch_desc_everyNHours:JCe,sch_desc_everyNMinutes:YCe,sch_desc_everyNMonths:KCe,sch_desc_everyNWeeks:ZCe,sch_desc_everyNYears:QCe,sch_desc_everyWeek:e$e,sch_desc_everyYear:t$e,sch_desc_intervalFromTo:r$e,sch_desc_never:n$e,sch_desc_onDate:o$e,sch_desc_onDates:a$e,sch_desc_onEveryDate:i$e,sch_desc_onMonth:s$e,sch_desc_onMonths:l$e,sch_desc_onWeekday:c$e,sch_desc_onWeekdays:d$e,sch_desc_onWeekends:u$e,sch_desc_onWorkdays:p$e,sch_desc_onceInPast:h$e,sch_desc_once_on:f$e,sch_desc_validFrom:m$e,sch_desc_validFromTo:g$e,sch_desc_validTo:v$e,sch_every:y$e,sch_exactTime:_$e,sch_from:b$e,sch_fromTo:w$e,sch_intervalTime:x$e,sch_invert:S$e,sch_no_one:C$e,sch_on:$$e,sch_period:k$e,sch_periodDaily:E$e,sch_periodDates:T$e,sch_periodDay:O$e,sch_periodEvery:D$e,sch_periodEveryDay:A$e,sch_periodEveryMonth:I$e,sch_periodEveryWeek:M$e,sch_periodEveryYear:P$e,sch_periodHours:N$e,sch_periodMinutes:R$e,sch_periodMonth:j$e,sch_periodMonthly:L$e,sch_periodOnce:z$e,sch_periodSpecificMonths:F$e,sch_periodWeek:B$e,sch_periodWeekdays:W$e,sch_periodWeekend:H$e,sch_periodWeekly:U$e,sch_periodWorkdays:V$e,sch_periodYear:q$e,sch_periodYearly:G$e,sch_specificTime:X$e,sch_time:J$e,sch_to:Y$e,sch_valid:K$e,sch_validFrom:Z$e,sch_validTo:Q$e,sch_wholeDay:eke,sch_yearEveryMonth:tke},nke="Добавить",oke="Отмена",ake="Категории",ike="Проверено",ske="Удалить",lke="Закрыть",cke="Коммерческая",dke="Настроить",uke="Соединение установлено",pke="скопировано",hke="Создать",fke="Обрезать",mke="Delete",gke="Удалить",vke="Отказаться",yke="Отключено",_ke="Ошибка",bke="Фильтр",wke="Пятница",xke="Широта",Ske="Долгота",Cke="Сообщение",$ke="Понедельник",kke="Имя",Eke="Объекты",Tke="Ok",Oke="Продукт",Dke="Повторение",Ake="Заменять",Ike="Начало",Mke="Суббота",Pke="Сохранить",Nke="выбранный",Rke="Состояния",jke="Воскресенье",Lke="Четверг",zke="Времени",Fke="Вторник",Bke="Обновить",Wke="Годен до",Hke="Значение",Uke="Версия",Vke="Среда",qke="Ширина",Gke="Да",Xke="разное",Jke="Каждый может читать объект",Yke="Каждый может читать состояние",Kke="Каждый может написать объект",Zke="Каждый может написать состояние",Qke="Группа может читать объект",eEe="Группа может читать состояние",tEe="Группа может писать объект",rEe="Группа может записывать состояние",nEe="Владелец может читать объект",oEe="Владелец может читать состояние",aEe="Владелец может писать объект",iEe="Владелец может писать состояние",sEe="Кнопки",lEe="Изменено с",cEe="Закрыть",dEe="Создать логическое состояние",uEe="Создать канал",pEe="Создать устройство",hEe="Создать состояние номера",fEe="Создать состояние",mEe="Создать состояние строки",gEe="д.",vEe="Пт",yEe="Пн",_Ee="Сб",bEe="Вс",wEe="Чт",xEe="Вт",SEe="Ср",CEe="Экспертный режим",$Ee="Все файлы",kEe="Аудио",EEe="Код/JSON",TEe="Картинки",OEe="Текст",DEe="видео",AEe="настройки",IEe="без",MEe="функция",PEe="ID",NEe="Имя",REe="роль",jEe="комната",LEe="Тип",zEe="Неверные настройки",FEe="Последнее изменение",BEe="локально",WEe="Апр",HEe="Авг",UEe="Дек",VEe="Фев",qEe="Янв",GEe="Июл",XEe="Июн",JEe="Май",YEe="Мрт",KEe="Ноя",ZEe="Окт",QEe="Сен",e2e="Апр",t2e="Авг",r2e="Дек",n2e="Фев",o2e="Янв",a2e="Июнь",i2e="Июль",s2e="Май",l2e="Март",c2e="Ноя",d2e="Окт",u2e="Сен",p2e="ничего",h2e="Объект изменен",f2e="Последний раз объект изменен в",m2e="Настройки из другого адаптера %s",g2e="Код качества",v2e="повтор",y2e="Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.",_2e="Состояние изменено",b2e="Объект изменен с",w2e="Отметка времени",x2e="Подтверждено",S2e="Комментарий",C2e="Скопируйте значение состояния",$2e="Пользовательские настройки",k2e="Удалить объект",E2e="Редактировать объект",T2e="Изменить значение состояния",O2e="От",D2e="Последнее изменение",A2e="Качество",I2e="Отметка времени",M2e="пользователь",P2e="Значение",N2e="Значение",R2e="Внимание: задание CRON будет запускаться каждую минуту в течение указанного периода!",j2e="Внимание: задание CRON будет выполняться каждую секунду в течение указанного периода!",L2e="CRON",z2e="Дата",F2e="Даты",B2e="День",W2e="День недели",H2e="каждый(ую/ые)",U2e="каждый N день",V2e="каждый N-й день недели",q2e="каждый N день недели",G2e="каждые N часов",X2e="каждые N минут",J2e="каждые N месяцев",Y2e="каждые N секунд",K2e="каждый день",Z2e="Каждый день недели",Q2e="каждый день недели",eTe="каждый час",tTe="каждую минуту",rTe="каждый месяц",nTe="каждую секунду",oTe="От",aTe="часы",iTe="Интервал",sTe="Интервал между",lTe="Неверный CRON",cTe="минуты",dTe="Месяцы",uTe="один раз",pTe="Период",hTe="секунды",fTe="Просто",mTe="Конкретное время",gTe="конкретные даты",vTe="конкретный день(а) недели",yTe="конкретный день недели",_Te="конкретные часы",bTe="конкретные минуты",wTe="конкретные месяцы",xTe="конкретные секунды",STe="Время",CTe="До",$Te="Форма",kTe="все",ETe="днём",TTe="ночью",OTe="Рассвет",DTe="Сумерки",ATe="Золотой час",ITe="Конец золотого часа",MTe="Надир",PTe="Морской рассвет",NTe="Морские сумерки",RTe="Ночь",jTe="Конец ночи",LTe="Солнечный полдень",zTe="Восход",FTe="Восход солнца",BTe="Заход солнца",WTe="Начало заката",HTe="дата",UTe="в %s",VTe="каждый день",qTe="каждый час",GTe="каждую минуту",XTe="каждый месяц",JTe="каждый %s день",YTe="каждый %s часов",KTe="каждые %s минут",ZTe="каждые %s месяцев",QTe="каждые %s недель",eOe="каждые %s лет",tOe="каждую неделю",rOe="каждый год",nOe="от %s до %s",oOe="никогда",aOe="%s %s",iOe="%s и %s",sOe="в каждый день",lOe="%s",cOe="%s и %s",dOe="%s",uOe="%s и %s",pOe="на выходных",hOe="в рабочие дни",fOe="не будет больше выполняться, потому что начало в прошлом",mOe="%s",gOe="%s",vOe="Выполнить с",yOe="%s",_Oe="каждый",bOe="Конкретное время",wOe="от",xOe="От и до",SOe="Интервал времени",COe="инвертировать",$Oe="никакой",kOe="на",EOe="период",TOe="Ежедневно",OOe="Даты",DOe="День",AOe="каждый",IOe="Каждый день",MOe="Каждый месяц",POe="Каждую неделю",NOe="Каждый год",ROe="часов",jOe="минут",LOe="месяц",zOe="ежемесячно",FOe="однажды",BOe="Конкретные месяцы",WOe="Неделю",HOe="Будние дни",UOe="выходные",VOe="еженедельно",qOe="Рабочие дни",GOe="Год",XOe="каждый год",JOe="Конкретное время",YOe="Время",KOe="в",ZOe="действительный",QOe="от",eDe="в",tDe="Весь день",rDe="каждый месяц",nDe={"ra_%s links from aliases":"%s ссылок из псевдонимов","ra_%s object(s) processed":"Объектов обработано: %s","ra_%s was imported":"%s был импортирован","ra_Accept license":"Принять лицензию","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:nke,"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:oke,"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:ake,"ra_Chained certificate":"Chained сертификат","ra_Change color theme":"Изменить цветовую тему","ra_Changed from":"Изменено","ra_Channel → State":"Канал → Состояние","ra_Check license":"Проверить лицензию",ra_Checked:ike,ra_Clear:ske,"ra_Clear filter":"Очистить фильтр","ra_Clear icon":"Очистить значок","ra_Clone current row":"Клонировать текущую строку",ra_Close:lke,"ra_Collapse all nodes":"Свернуть все узлы","ra_Collapse one step node":"Свернуть один уровень",ra_Commercial:cke,ra_Configure:dke,"ra_Configure visible columns":"Настроить видимые столбцы","ra_Confirm deletion of %s":"Подтвердите удаление %s",ra_Connected:uke,ra_Copied:pke,"ra_Copied %s":'Скопировано "%s"',"ra_Copy content":"Копировать содержимое",ra_Create:hke,"ra_Create alias":"Создать псевдоним","ra_Create folder":"Создать папку","ra_Create new folder in %s":"Создать новую папку в %s",ra_Crop:fke,"ra_Define CRON...":"Определите CRON...","ra_Define functions":"Задать функции","ra_Define rooms":"Задать комнаты","ra_Define schedule":"Задать расписание","ra_Define schedule...":"Определить расписание ...",ra_Del:mke,ra_Delete:gke,"ra_Delete (no confirm for 5 mins)":"Удалить (без подтверждения в течение 5 минут)","ra_Delete current row":"Удалить текущую строку","ra_Deselect all":"Убрать выбор везде","ra_Device → Channel → State":"Устройство → Канал → Состояние",ra_Discard:vke,ra_Disconnected:yke,"ra_Do not export values of states":"Не экспортировать значения состояний","ra_Do not use let's encrypt":"Не использовать Let’s Encrypt","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 function":"Изменить функцию","ra_Edit object field":"Поле редактирования объекта","ra_Edit role":"Изменить роль","ra_Edit room":"Редактировать комнату","ra_Edit value":"Изменить значение",ra_Error:_ke,"ra_Expand all nodes":"Развернуть все узлы","ra_Expand one step node":"Открыть один уровень","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:bke,"ra_Filter files":"Фильтровать файлы","ra_Folder name":"Имя папки","ra_Folder → Channel → State":"Папка → Канал → Состояние","ra_Folder → Device → Channel → State":"Папка → Устройство → Канал → Состояние","ra_Folder → State":"Папка → Состояние","ra_Folders always first":"Папки всегда на первом месте",ra_Friday:wke,"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_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 answer from server":"Неверный ответ от сервера","ra_Invalid parent folder!":"Неверная родительская папка!","ra_Invalid structure":"Неверная структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Последнее изменение",ra_Latitude:xke,"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_Longitude:Ske,'ra_May not trigger "updateLicenses"':"Не может запускать «updateLicenses»",ra_Message:Cke,ra_Monday:$ke,"ra_Move down":"Вниз","ra_Move up":"Вверх",ra_Name:kke,"ra_No data found in file":"Данные в файле не найдены","ra_No one license found in license manager":"В менеджере лицензий не найдена ни одна лицензия","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_Objects:Eke,ra_Ok:Tke,"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 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_Private certificate":"Частный сертификат",ra_Product:Oke,"ra_Public certificate":"Публичный сертификат","ra_Quality code":"Валидность","ra_Refresh tree":"Обновить дерево","ra_Reload files":"Обновить",ra_Repeat:Dke,ra_Replace:Ake,"ra_Request timed out":"Истекло время запроса","ra_Restrict to folder":"Ограничить папкой",ra_Root:Ike,ra_Saturday:Mke,ra_Save:Pke,"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:Nke,"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_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:Rke,"ra_Suitable license not found in license manager":"Подходящая лицензия не найдена в менеджере лицензий",ra_Sunday:jke,"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:Lke,ra_Timestamp:zke,"ra_Toggle expert mode":"Переключить экспертный режим","ra_Toggle the states view":"Переключить режим просмотра состояний","ra_Toggle view mode":"Переключить режим просмотра","ra_Too big":"Слишком большое","ra_Too small":"Слишком маленькое","ra_Transparent dialog":"Прозрачный диалог",ra_Tuesday:Fke,"ra_Unknown error":"Неизвестная ошибка","ra_Unknown error!":"Неизвестная ошибка!",ra_Update:Bke,"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:Wke,ra_Value:Hke,ra_Version:Uke,"ra_View file":"Посмотреть файл","ra_View: %s":"Просмотр: %s",ra_Wednesday:Vke,ra_Width:qke,ra_Yes:Gke,"ra_You can export all objects or just the selected branch.":"Вы можете экспортировать все объекты или только выбранную ветвь.","ra_You can filter entries by entering here some text":"Вы можете отфильтровать записи, введя здесь текст",ra___different__:Xke,ra_aclEveryone_read_object:Jke,ra_aclEveryone_read_state:Yke,ra_aclEveryone_write_object:Kke,ra_aclEveryone_write_state:Zke,ra_aclGroup_read_object:Qke,ra_aclGroup_read_state:eEe,ra_aclGroup_write_object:tEe,ra_aclGroup_write_state:rEe,ra_aclOwner_read_object:nEe,ra_aclOwner_read_state:oEe,ra_aclOwner_write_object:aEe,ra_aclOwner_write_state:iEe,ra_buttons:sEe,ra_changedFrom:lEe,ra_close:cEe,ra_create_boolean_state:dEe,ra_create_channel:uEe,ra_create_device:pEe,ra_create_number_state:hEe,ra_create_state:fEe,ra_create_string_state:mEe,ra_daysShortText:gEe,ra_dow_Fr:vEe,ra_dow_Mo:yEe,ra_dow_Sa:_Ee,ra_dow_Su:bEe,ra_dow_Th:wEe,ra_dow_Tu:xEe,ra_dow_We:SEe,ra_expertMode:CEe,ra_fileType_all:$Ee,ra_fileType_audio:kEe,ra_fileType_code:EEe,ra_fileType_images:TEe,ra_fileType_txt:OEe,ra_fileType_video:DEe,"ra_fileType_video,":"видео",ra_filter_customs:AEe,ra_filter_customs_without:IEe,ra_filter_func:MEe,ra_filter_id:PEe,ra_filter_name:NEe,ra_filter_role:REe,ra_filter_room:jEe,ra_filter_type:LEe,"ra_import data from %s file":"Импортировать данные из файла %s",ra_invalidConfig:zEe,ra_lastChange:FEe,ra_locally:BEe,ra_month_Apr:WEe,ra_month_Aug:HEe,ra_month_Dec:UEe,ra_month_Feb:VEe,ra_month_Jan:qEe,ra_month_Jul:GEe,ra_month_Jun:XEe,ra_month_Mai:JEe,ra_month_Mar:YEe,ra_month_Nov:KEe,ra_month_Oct:ZEe,ra_month_Sep:QEe,ra_months_Apr:e2e,ra_months_Aug:t2e,ra_months_Dec:r2e,ra_months_Feb:n2e,ra_months_Jan:o2e,ra_months_Jul:a2e,ra_months_Jun:i2e,ra_months_Mai:s2e,ra_months_Mar:l2e,ra_months_Nov:c2e,ra_months_Oct:d2e,ra_months_Sep:u2e,ra_none:p2e,ra_object_changed_by:h2e,ra_object_changed_by_user:f2e,ra_otherConfig:m2e,ra_qualityCode:g2e,ra_repeat:v2e,ra_select_folder_hint:y2e,ra_state_changed_by:_2e,ra_state_changed_from:b2e,ra_timestamp:w2e,ra_tooltip_ack:x2e,ra_tooltip_comment:S2e,ra_tooltip_copyState:C2e,ra_tooltip_customConfig:$2e,ra_tooltip_deleteObject:k2e,ra_tooltip_editObject:E2e,ra_tooltip_editState:T2e,ra_tooltip_from:O2e,ra_tooltip_lc:D2e,ra_tooltip_quality:A2e,ra_tooltip_ts:I2e,ra_tooltip_user:M2e,ra_tooltip_value:P2e,"ra_use seconds":"секунды",ra_val:N2e,"ra_via internet":"через интернет",ra_warning_every_minute:R2e,ra_warning_every_second:j2e,sc_cron:L2e,sc_date:z2e,sc_dates:F2e,sc_dow:B2e,sc_dows:W2e,sc_every:H2e,sc_everyN_dates:U2e,sc_everyN_dow:V2e,sc_everyN_dows:q2e,sc_everyN_hours:G2e,sc_everyN_minutes:X2e,sc_everyN_months:J2e,sc_everyN_seconds:Y2e,sc_every_dates:K2e,sc_every_dow:Z2e,sc_every_dows:Q2e,sc_every_hours:eTe,sc_every_minutes:tTe,sc_every_months:rTe,sc_every_seconds:nTe,sc_from:oTe,sc_hours:aTe,sc_interval:iTe,sc_intervalBetween:sTe,sc_invalid_cron:lTe,sc_minutes:cTe,sc_months:dTe,sc_once:uTe,sc_period:pTe,sc_seconds:hTe,sc_simple:fTe,sc_specific:mTe,sc_specific_dates:gTe,sc_specific_dow:vTe,sc_specific_dows:yTe,sc_specific_hours:_Te,sc_specific_minutes:bTe,sc_specific_months:wTe,sc_specific_seconds:xTe,sc_time:STe,sc_to:CTe,sc_wizard:$Te,sch_all:kTe,sch_astroDay:ETe,sch_astroNight:TTe,sch_astro_dawn:OTe,sch_astro_dusk:DTe,sch_astro_goldenHour:ATe,sch_astro_goldenHourEnd:ITe,sch_astro_nadir:MTe,sch_astro_nauticalDawn:PTe,sch_astro_nauticalDusk:NTe,sch_astro_night:RTe,sch_astro_nightEnd:jTe,sch_astro_solarNoon:LTe,sch_astro_sunrise:zTe,sch_astro_sunriseEnd:FTe,sch_astro_sunset:BTe,sch_astro_sunsetStart:WTe,sch_at:HTe,sch_desc_atTime:UTe,sch_desc_everyDay:VTe,sch_desc_everyHour:qTe,sch_desc_everyMinute:GTe,sch_desc_everyMonth:XTe,sch_desc_everyNDay:JTe,sch_desc_everyNHours:YTe,sch_desc_everyNMinutes:KTe,sch_desc_everyNMonths:ZTe,sch_desc_everyNWeeks:QTe,sch_desc_everyNYears:eOe,sch_desc_everyWeek:tOe,sch_desc_everyYear:rOe,sch_desc_intervalFromTo:nOe,sch_desc_never:oOe,sch_desc_onDate:aOe,sch_desc_onDates:iOe,sch_desc_onEveryDate:sOe,sch_desc_onMonth:lOe,sch_desc_onMonths:cOe,sch_desc_onWeekday:dOe,sch_desc_onWeekdays:uOe,sch_desc_onWeekends:pOe,sch_desc_onWorkdays:hOe,sch_desc_onceInPast:fOe,sch_desc_once_on:mOe,sch_desc_validFrom:gOe,sch_desc_validFromTo:vOe,sch_desc_validTo:yOe,sch_every:_Oe,sch_exactTime:bOe,sch_from:wOe,sch_fromTo:xOe,sch_intervalTime:SOe,sch_invert:COe,sch_no_one:$Oe,sch_on:kOe,sch_period:EOe,sch_periodDaily:TOe,sch_periodDates:OOe,sch_periodDay:DOe,sch_periodEvery:AOe,sch_periodEveryDay:IOe,sch_periodEveryMonth:MOe,sch_periodEveryWeek:POe,sch_periodEveryYear:NOe,sch_periodHours:ROe,sch_periodMinutes:jOe,sch_periodMonth:LOe,sch_periodMonthly:zOe,sch_periodOnce:FOe,sch_periodSpecificMonths:BOe,sch_periodWeek:WOe,sch_periodWeekdays:HOe,sch_periodWeekend:UOe,sch_periodWeekly:VOe,sch_periodWorkdays:qOe,sch_periodYear:GOe,sch_periodYearly:XOe,sch_specificTime:JOe,sch_time:YOe,sch_to:KOe,sch_valid:ZOe,sch_validFrom:QOe,sch_validTo:eDe,sch_wholeDay:tDe,sch_yearEveryMonth:rDe},oDe="Acrescentar",aDe="Cancelar",iDe="Categorias",sDe="Verificado",lDe="Excluir",cDe="Perto",dDe="Comercial",uDe="Configurar",pDe="Conectado",hDe="Copiado",fDe="Crio",mDe="Colheita",gDe="Delete",vDe="Excluir",yDe="Descartar",_De="Desconectado",bDe="Erro",wDe="Filtro",xDe="Sexta-feira",SDe="Latitude",CDe="Longitude",$De="mensagem",kDe="Segunda-feira",EDe="Nome",TDe="Objetos",ODe="Está bem",DDe="produtos",ADe="Repita",IDe="Substituir",MDe="Raiz",PDe="Sábado",NDe="Salve ",RDe="Selecionado",jDe="Estados",LDe="Domingo",zDe="Quinta-feira",FDe="Timestamp",BDe="Terça-feira",WDe="Atualizar",HDe="Válida até",UDe="Valor",VDe="Versão",qDe="Quarta-feira",GDe="Largura",XDe="Sim",JDe="diferente",YDe="Todos podem ler objetos",KDe="Todos podem ler o estado",ZDe="Todos podem escrever objetos",QDe="Todos podem escrever o estado",eAe="O grupo pode ler o objeto",tAe="O grupo pode ler o estado",rAe="O grupo pode escrever o objeto",nAe="O grupo pode escrever o estado",oAe="O proprietário pode ler o objeto",aAe="O proprietário pode ler o estado",iAe="O proprietário pode escrever o objeto",sAe="O proprietário pode escrever o estado",lAe="Botões",cAe="Mudou de",dAe="fechar",uAe="Criar estado booleano",pAe="Criar canal",hAe="Criar dispositivo",fAe="Criar estado numérico",mAe="Criar estado",gAe="Criar estado de string",vAe="d.",yAe="Fr",_Ae="Mo",bAe="Sa",wAe="Su",xAe="º",SAe="Tu",CAe="Nós",$Ae="Modo especialista",kAe="Todos os arquivos",EAe="áudio",TAe="Código/JSON",OAe="Imagens",DAe="Texto",AAe="Vídeo",IAe="Configurações",MAe="sem",PAe="Função",NAe="ID",RAe="Nome",jAe="Papel (Função)",LAe="Quarto",zAe="Tipo",FAe="Configurações inválidas",BAe="Última mudança",WAe="localmente",HAe="abril",UAe="agosto",VAe="dezembro",qAe="fevereiro",GAe="janeiro",XAe="julho",JAe="junho",YAe="Mai",KAe="março",ZAe="novembro",QAe="outubro",eIe="setembro",tIe="abril",rIe="agosto",nIe="dezembro",oIe="fevereiro",aIe="janeiro",iIe="julho",sIe="junho",lIe="Mai",cIe="março",dIe="novembro",uIe="outubro",pIe="setembro",hIe="Nenhum",fIe="Objeto alterado por",mIe="Objeto alterado pela última vez em",gIe="Configurações de outro adaptador %s",vIe="Código de qualidade",yIe="repetir",_Ie='Para selecionar a pasta, basta segurar a tecla "shift" clicando na pasta.',bIe="Estado alterado por",wIe="Objeto alterado de",xIe="Timestamp",SIe="Confirmado",CIe="Comente",$Ie="Copie o valor do estado",kIe="Opções customizadas",EIe="Excluir objeto",TIe="Editar objeto",OIe="Edite o valor do estado",DIe="De",AIe="Última alteração",IIe="Qualidade",MIe="Timestamp",PIe="Usuário",NIe="Valor",RIe="Valor",jIe="Aviso: O trabalho CRON será executado a cada minuto durante o período especificado!",LIe="Aviso: O trabalho CRON será executado a cada segundo durante o período especificado!",zIe="CRON",FIe="Data",BIe="Dias",WIe="Dia",HIe="Dia da semana",UIe="todos",VIe="a cada N dias",qIe="todo enésimo dia da semana",GIe="todos os N dias da semana",XIe="a cada N horas",JIe="a cada N minutos",YIe="a cada N meses",KIe="a cada N segundos",ZIe="todo dia",QIe="todos os dias da semana",eMe="todos os dias da semana",tMe="toda hora",rMe="todo minuto",nMe="todo mês",oMe="todo segundo",aMe="de",iMe="horas",sMe="intervalo",lMe="intervalo entre",cMe="CRON inválido",dMe="minutos",uMe="meses",pMe="uma vez",hMe="período",fMe="segundos",mMe="simples",gMe="tempo específico",vMe="datas específicas",yMe="dia(s) específico(s) da semana",_Me="dia específico de semanas",bMe="horas específicas",wMe="minutos específicos",xMe="meses específicos",SMe="segundos específicos",CMe="tempo",$Me="para",kMe="assistente",EMe="tudo",TMe="dia astral",OMe="noite astral",DMe="amanhecer",AMe="anoitecer",IMe="hora dourada",MMe="Fim da hora dourada",PMe="nadir",NMe="Amanhecer náutico",RMe="Anoitecer náutico",jMe="noite",LMe="fim da noite",zMe="meio-dia solar",FMe="nascer do sol",BMe="fim do nascer do sol",WMe="pôr do sol",HMe="início do pôr do sol",UMe="às",VMe="em %s",qMe="todo dia",GMe="toda hora",XMe="todo minuto",JMe="todo mês",YMe="a cada %s dias",KMe="a cada %s horas",ZMe="a cada %s minutos",QMe="a cada %s meses",ePe="a cada %s semanas",tPe="a cada %s anos",rPe="toda semana",nPe="todo ano",oPe="de %s para %s",aPe="nunca",iPe="em %s de %s",sPe="em %s e %s de",lPe="em toda data de",cPe="%s",dPe="%s e %s",uPe="em %s",pPe="em %s e %s",hPe="nos fins de semana",fPe="em dias úteis",mPe="não será mais executado, porque o começo está no passado",gPe="em %s",vPe="de %s",yPe="Executar de até",_Pe="até %s",bPe="cada",wPe="tempo específico",xPe="de",SPe="de a´t",CPe="tempo de intervalo",$Pe="invertido",kPe="nenhum",EPe="em",TPe="período",OPe="diariamente",DPe="datas",APe="dia",IPe="todos",MPe="todo dia",PPe="todo mês",NPe="toda semana",RPe="todo ano",jPe="horas",LPe="minutos",zPe="mês",FPe="por mês",BPe="uma vez",WPe="meses específicos",HPe="semana",UPe="dias úteis",VPe="final de semana",qPe="semanal",GPe="dias úteis",XPe="ano",JPe="anual",YPe="tempo específico",KPe="tempo",ZPe="para",QPe="válido",eNe="de",tNe="para",rNe="dia inteiro",nNe="todo mês",oNe={"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_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:oDe,"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:aDe,"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:iDe,"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:sDe,ra_Clear:lDe,"ra_Clear filter":"Filtro limpo","ra_Clear icon":"Ícone de limpeza","ra_Clone current row":"Clonar linha atual",ra_Close:cDe,"ra_Collapse all nodes":"Recolher todos os nós","ra_Collapse one step node":"Recolher um nível",ra_Commercial:dDe,ra_Configure:uDe,"ra_Configure visible columns":"Configurar colunas visíveis","ra_Confirm deletion of %s":"Confirme a exclusão de %s",ra_Connected:pDe,ra_Copied:hDe,"ra_Copied %s":'"%s" copiado',"ra_Copy content":"Copiar conteúdo",ra_Create:fDe,"ra_Create alias":"Criar alias","ra_Create folder":"Criar pasta","ra_Create new folder in %s":"Crie uma nova pasta em %s",ra_Crop:mDe,"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:gDe,ra_Delete:vDe,"ra_Delete (no confirm for 5 mins)":"Excluir (sem confirmação por 5 minutos)","ra_Delete current row":"Excluir linha atual","ra_Deselect all":"Desmarque todos","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:yDe,ra_Disconnected:_De,"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_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 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_Error:bDe,"ra_Expand all nodes":"Expanda todos os nós","ra_Expand one step node":"Expanda um nível","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:wDe,"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:xDe,"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_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 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:SDe,"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_Longitude:CDe,'ra_May not trigger "updateLicenses"':'Pode não acionar "updateLicenses"',ra_Message:$De,ra_Monday:kDe,"ra_Move down":"Mover para baixo","ra_Move up":"Subir",ra_Name:EDe,"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 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_Objects:TDe,ra_Ok:ODe,"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 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_Private certificate":"certificado privado",ra_Product:DDe,"ra_Public certificate":"certificado público","ra_Quality code":"Qualidade","ra_Refresh tree":"Atualizar árvore","ra_Reload files":"Recarregar arquivos",ra_Repeat:ADe,ra_Replace:IDe,"ra_Request timed out":"Solicitação expirou","ra_Restrict to folder":"Restringir à pasta",ra_Root:MDe,ra_Saturday:PDe,ra_Save:NDe,"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:RDe,"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_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:jDe,"ra_Suitable license not found in license manager":"Licença adequada não encontrada no gerenciador de licenças",ra_Sunday:LDe,"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:zDe,ra_Timestamp:FDe,"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:BDe,"ra_Unknown error":"Erro desconhecido","ra_Unknown error!":"Erro desconhecido!",ra_Update:WDe,"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:HDe,ra_Value:UDe,ra_Version:VDe,"ra_View file":"Visualizar arquivo","ra_View: %s":"Visualizar: %s",ra_Wednesday:qDe,ra_Width:GDe,ra_Yes:XDe,"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___different__:JDe,ra_aclEveryone_read_object:YDe,ra_aclEveryone_read_state:KDe,ra_aclEveryone_write_object:ZDe,ra_aclEveryone_write_state:QDe,ra_aclGroup_read_object:eAe,ra_aclGroup_read_state:tAe,ra_aclGroup_write_object:rAe,ra_aclGroup_write_state:nAe,ra_aclOwner_read_object:oAe,ra_aclOwner_read_state:aAe,ra_aclOwner_write_object:iAe,ra_aclOwner_write_state:sAe,ra_buttons:lAe,ra_changedFrom:cAe,ra_close:dAe,ra_create_boolean_state:uAe,ra_create_channel:pAe,ra_create_device:hAe,ra_create_number_state:fAe,ra_create_state:mAe,ra_create_string_state:gAe,ra_daysShortText:vAe,ra_dow_Fr:yAe,ra_dow_Mo:_Ae,ra_dow_Sa:bAe,ra_dow_Su:wAe,ra_dow_Th:xAe,ra_dow_Tu:SAe,ra_dow_We:CAe,ra_expertMode:$Ae,ra_fileType_all:kAe,ra_fileType_audio:EAe,ra_fileType_code:TAe,ra_fileType_images:OAe,ra_fileType_txt:DAe,ra_fileType_video:AAe,"ra_fileType_video,":"Vídeo",ra_filter_customs:IAe,ra_filter_customs_without:MAe,ra_filter_func:PAe,ra_filter_id:NAe,ra_filter_name:RAe,ra_filter_role:jAe,ra_filter_room:LAe,ra_filter_type:zAe,"ra_import data from %s file":"Importar dados do arquivo %s",ra_invalidConfig:FAe,ra_lastChange:BAe,ra_locally:WAe,ra_month_Apr:HAe,ra_month_Aug:UAe,ra_month_Dec:VAe,ra_month_Feb:qAe,ra_month_Jan:GAe,ra_month_Jul:XAe,ra_month_Jun:JAe,ra_month_Mai:YAe,ra_month_Mar:KAe,ra_month_Nov:ZAe,ra_month_Oct:QAe,ra_month_Sep:eIe,ra_months_Apr:tIe,ra_months_Aug:rIe,ra_months_Dec:nIe,ra_months_Feb:oIe,ra_months_Jan:aIe,ra_months_Jul:iIe,ra_months_Jun:sIe,ra_months_Mai:lIe,ra_months_Mar:cIe,ra_months_Nov:dIe,ra_months_Oct:uIe,ra_months_Sep:pIe,ra_none:hIe,ra_object_changed_by:fIe,ra_object_changed_by_user:mIe,ra_otherConfig:gIe,ra_qualityCode:vIe,ra_repeat:yIe,ra_select_folder_hint:_Ie,ra_state_changed_by:bIe,ra_state_changed_from:wIe,ra_timestamp:xIe,ra_tooltip_ack:SIe,ra_tooltip_comment:CIe,ra_tooltip_copyState:$Ie,ra_tooltip_customConfig:kIe,ra_tooltip_deleteObject:EIe,ra_tooltip_editObject:TIe,ra_tooltip_editState:OIe,ra_tooltip_from:DIe,ra_tooltip_lc:AIe,ra_tooltip_quality:IIe,ra_tooltip_ts:MIe,ra_tooltip_user:PIe,ra_tooltip_value:NIe,"ra_use seconds":"use segundos",ra_val:RIe,"ra_via internet":"via internet",ra_warning_every_minute:jIe,ra_warning_every_second:LIe,sc_cron:zIe,sc_date:FIe,sc_dates:BIe,sc_dow:WIe,sc_dows:HIe,sc_every:UIe,sc_everyN_dates:VIe,sc_everyN_dow:qIe,sc_everyN_dows:GIe,sc_everyN_hours:XIe,sc_everyN_minutes:JIe,sc_everyN_months:YIe,sc_everyN_seconds:KIe,sc_every_dates:ZIe,sc_every_dow:QIe,sc_every_dows:eMe,sc_every_hours:tMe,sc_every_minutes:rMe,sc_every_months:nMe,sc_every_seconds:oMe,sc_from:aMe,sc_hours:iMe,sc_interval:sMe,sc_intervalBetween:lMe,sc_invalid_cron:cMe,sc_minutes:dMe,sc_months:uMe,sc_once:pMe,sc_period:hMe,sc_seconds:fMe,sc_simple:mMe,sc_specific:gMe,sc_specific_dates:vMe,sc_specific_dow:yMe,sc_specific_dows:_Me,sc_specific_hours:bMe,sc_specific_minutes:wMe,sc_specific_months:xMe,sc_specific_seconds:SMe,sc_time:CMe,sc_to:$Me,sc_wizard:kMe,sch_all:EMe,sch_astroDay:TMe,sch_astroNight:OMe,sch_astro_dawn:DMe,sch_astro_dusk:AMe,sch_astro_goldenHour:IMe,sch_astro_goldenHourEnd:MMe,sch_astro_nadir:PMe,sch_astro_nauticalDawn:NMe,sch_astro_nauticalDusk:RMe,sch_astro_night:jMe,sch_astro_nightEnd:LMe,sch_astro_solarNoon:zMe,sch_astro_sunrise:FMe,sch_astro_sunriseEnd:BMe,sch_astro_sunset:WMe,sch_astro_sunsetStart:HMe,sch_at:UMe,sch_desc_atTime:VMe,sch_desc_everyDay:qMe,sch_desc_everyHour:GMe,sch_desc_everyMinute:XMe,sch_desc_everyMonth:JMe,sch_desc_everyNDay:YMe,sch_desc_everyNHours:KMe,sch_desc_everyNMinutes:ZMe,sch_desc_everyNMonths:QMe,sch_desc_everyNWeeks:ePe,sch_desc_everyNYears:tPe,sch_desc_everyWeek:rPe,sch_desc_everyYear:nPe,sch_desc_intervalFromTo:oPe,sch_desc_never:aPe,sch_desc_onDate:iPe,sch_desc_onDates:sPe,sch_desc_onEveryDate:lPe,sch_desc_onMonth:cPe,sch_desc_onMonths:dPe,sch_desc_onWeekday:uPe,sch_desc_onWeekdays:pPe,sch_desc_onWeekends:hPe,sch_desc_onWorkdays:fPe,sch_desc_onceInPast:mPe,sch_desc_once_on:gPe,sch_desc_validFrom:vPe,sch_desc_validFromTo:yPe,sch_desc_validTo:_Pe,sch_every:bPe,sch_exactTime:wPe,sch_from:xPe,sch_fromTo:SPe,sch_intervalTime:CPe,sch_invert:$Pe,sch_no_one:kPe,sch_on:EPe,sch_period:TPe,sch_periodDaily:OPe,sch_periodDates:DPe,sch_periodDay:APe,sch_periodEvery:IPe,sch_periodEveryDay:MPe,sch_periodEveryMonth:PPe,sch_periodEveryWeek:NPe,sch_periodEveryYear:RPe,sch_periodHours:jPe,sch_periodMinutes:LPe,sch_periodMonth:zPe,sch_periodMonthly:FPe,sch_periodOnce:BPe,sch_periodSpecificMonths:WPe,sch_periodWeek:HPe,sch_periodWeekdays:UPe,sch_periodWeekend:VPe,sch_periodWeekly:qPe,sch_periodWorkdays:GPe,sch_periodYear:XPe,sch_periodYearly:JPe,sch_specificTime:YPe,sch_time:KPe,sch_to:ZPe,sch_valid:QPe,sch_validFrom:eNe,sch_validTo:tNe,sch_wholeDay:rNe,sch_yearEveryMonth:nNe},aNe="toevoegen",iNe="Annuleer",sNe="Categorieën",lNe="Gecontroleerd",cNe="Verwijderen",dNe="Dichtbij",uNe="Reclame",pNe="Configureren",hNe="Verbonden",fNe="Gekopieerd",mNe="Creëer",gNe="Bijsnijden",vNe="Delete",yNe="Verwijderen",_Ne="Weggooien",bNe="Verbinding verbroken",wNe="Fout",xNe="Filter",SNe="Vrijdag",CNe="Breedtegraad",$Ne="Lengtegraad",kNe="Bericht",ENe="Maandag",TNe="Naam",ONe="Voorwerpen",DNe="OK",ANe="Product",INe="Herhaling",MNe="Vervangen",PNe="Wortel",NNe="Zaterdag",RNe="Sparen",jNe="Geselecteerd",LNe="Staten",zNe="Zondag",FNe="Donderdag",BNe="Tijdstempel",WNe="Dinsdag",HNe="Bijwerken",UNe="Geldig tot",VNe="Waarde",qNe="Versie",GNe="Woensdag",XNe="Breedte",JNe="Ja",YNe="verschillend",KNe="Iedereen kan object lezen",ZNe="Iedereen kan staat lezen",QNe="Iedereen kan object schrijven",eRe="Iedereen kan staat schrijven",tRe="Groep kan object lezen",rRe="Groep kan status lezen",nRe="Groep kan object schrijven",oRe="Groep kan staat schrijven",aRe="Eigenaar kan object lezen",iRe="Eigenaar kan staat lezen",sRe="Eigenaar kan object schrijven",lRe="Eigenaar kan staat schrijven",cRe="Toetsen",dRe="Veranderd van",uRe="dichtbij",pRe="Creëer een Booleaanse status",hRe="Kanaal maken",fRe="Apparaat maken",mRe="Nummerstatus maken",gRe="Staat creëren",vRe="Tekenreeksstatus maken",yRe="d.",_Re="Fr",bRe="Mo",wRe="Za",xRe="Zo",SRe="Th",CRe="Tu",$Re="Wij",kRe="Expert modus",ERe="Alle bestanden",TRe="Audio",ORe="Code/JSON",DRe="Afbeeldingen",ARe="Tekst",IRe="Video",MRe="Instellingen",PRe="zonder",NRe="Functie",RRe="ID",jRe="Naam",LRe="Rol",zRe="Kamer",FRe="Type",BRe="Ongeldige instellingen",WRe="Laatste wijziging",HRe="plaatselijk",URe="april",VRe="aug",qRe="dec",GRe="februari",XRe="jan",JRe="jul",YRe="juni",KRe="Mei",ZRe="mrt",QRe="nov",e5e="Okt",t5e="sept",r5e="april",n5e="aug",o5e="dec",a5e="februari",i5e="jan",s5e="jul",l5e="juni",c5e="Mei",d5e="mrt",u5e="nov",p5e="Okt",h5e="sept",f5e="geen",m5e="Object veranderd door",g5e="Object voor het laatst gewijzigd om",v5e="Instellingen van andere adapter %s",y5e="Kwaliteitscode",_5e="herhalen",b5e='Om een map te selecteren, houdt u gewoon de toets "shift" ingedrukt door op de map te klikken.',w5e="Staat veranderd door",x5e="Object veranderd van",S5e="Tijdstempel",C5e="Erkende vlag",$5e="Opmerking",k5e="Kopieer de statuswaarde",E5e="Aangepaste instellingen",T5e="Object verwijderen",O5e="Object bewerken",D5e="Bewerk de statuswaarde",A5e="Van",I5e="Laatst gewijzigd",M5e="Kwaliteit",P5e="Tijdstempel",N5e="Gebruiker",R5e="Waarde",j5e="Waarde",L5e="Waarschuwing: De CRON-taak wordt elke minuut uitgevoerd gedurende de opgegeven periode!",z5e="Waarschuwing: De CRON-taak wordt elke seconde uitgevoerd gedurende de opgegeven periode!",F5e="CRON",B5e="Datum",W5e="data",H5e="Dag",U5e="Dag van de week",V5e="elk",q5e="elke N dagen",G5e="elke N-de dag van de week",X5e="elke N dag van de week",J5e="elke N uur",Y5e="elke N minuten",K5e="elke N maanden",Z5e="elke N seconden",Q5e="elke dag",e3e="elke dag van de week",t3e="elke dag van de week",r3e="elk uur",n3e="elke minuut",o3e="elke maand",a3e="elke seconde",i3e="Van",s3e="uren",l3e="Interval",c3e="Interval tussen",d3e="Ongeldige CRON",u3e="Notulen",p3e="maanden",h3e="Een keer",f3e="Periode",m3e="seconden",g3e="Gemakkelijk",v3e="Specifieke tijd",y3e="specifieke data",_3e="specifieke dag(en) van de week",b3e="specifieke dag van weken",w3e="specifieke uren",x3e="specifieke minuten",S3e="specifieke maanden",C3e="specifieke seconden",$3e="Tijd",k3e="Naar",E3e="tovenaar",T3e="allemaal",O3e="Astro-dag",D3e="Astro-nacht",A3e="Dageraad",I3e="Schemer",M3e="gouden uur",P3e="Gouden uur einde",N3e="Nadir",R3e="Nautische dageraad",j3e="Nautische schemering",L3e="Nacht",z3e="Nacht einde",F3e="Zonne middag",B3e="zonsopkomst",W3e="Sunrise einde",H3e="Zonsondergang",U3e="Zonsondergang start",V3e="Bij",q3e="op %s",G3e="elke dag",X3e="elk uur",J3e="elke minuut",Y3e="elke maand",K3e="elke %s dag",Z3e="elke %s uur",Q3e="elke %s minuten",eje="elke %s maanden",tje="elke %s weken",rje="elke %s jaar",nje="elke week",oje="elk jaar",aje="van %s tot %s",ije="nooit",sje="op %s van %s",lje="op %s en %s van",cje="op elke datum van",dje="%s",uje="%s en %s",pje="op %s",hje="op %s en %s",fje="in het weekend",mje="op werkdagen",gje="zal niet meer worden uitgevoerd, omdat start verleden tijd is",vje="op %s",yje="van %s",_je="Uitvoeren van tot",bje="tot %s",wje="elk",xje="Specifieke tijd",Sje="van",Cje="Van naar",$je="Interval tijd",kje="omkeren",Eje="geen",Tje="Aan",Oje="Periode",Dje="Dagelijks",Aje="data",Ije="Dag",Mje="elk",Pje="Elke dag",Nje="Elke maand",Rje="Elke week",jje="Elk jaar",Lje="uren",zje="Notulen",Fje="maand",Bje="Maandelijks",Wje="Een keer",Hje="Specifieke maanden",Uje="Week",Vje="Doordeweekse dagen",qje="Weekend",Gje="Wekelijks",Xje="werkdagen",Jje="Jaar",Yje="jaar-",Kje="Specifieke tijd",Zje="Tijd",Qje="naar",e4e="Geldig",t4e="van",r4e="naar",n4e="Hele dag",o4e="elke maand",a4e={"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_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:aNe,"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:iNe,"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:sNe,"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:lNe,ra_Clear:cNe,"ra_Clear filter":"Filter wissen","ra_Clear icon":"Pictogram wissen","ra_Clone current row":"Kloon de huidige rij",ra_Close:dNe,"ra_Collapse all nodes":"Vouw alle knooppunten samen","ra_Collapse one step node":"Eén niveau samenvouwen",ra_Commercial:uNe,ra_Configure:pNe,"ra_Configure visible columns":"Configureer zichtbare kolommen","ra_Confirm deletion of %s":"Bevestig het verwijderen van %s",ra_Connected:hNe,ra_Copied:fNe,"ra_Copied %s":'"%s" gekopieerd',"ra_Copy content":"Inhoud kopiëren",ra_Create:mNe,"ra_Create alias":"Alias maken","ra_Create folder":"Map aanmaken","ra_Create new folder in %s":"Maak een nieuwe map in %s",ra_Crop:gNe,"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:vNe,ra_Delete:yNe,"ra_Delete (no confirm for 5 mins)":"Verwijderen (geen bevestiging gedurende 5 minuten)","ra_Delete current row":"Huidige rij verwijderen","ra_Deselect all":"Deselecteer alles","ra_Device → Channel → State":"Apparaat → Kanaal → Staat",ra_Discard:_Ne,ra_Disconnected:bNe,"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_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 function":"Bewerkingsfunctie","ra_Edit object field":"Bewerk objectveld","ra_Edit role":"Rol bewerken","ra_Edit room":"Kamer bewerken","ra_Edit value":"Waarde bewerken",ra_Error:wNe,"ra_Expand all nodes":"Vouw alle knooppunten uit","ra_Expand one step node":"Vouw een niveau uit","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:xNe,"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:SNe,"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_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 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:CNe,"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_Longitude:$Ne,'ra_May not trigger "updateLicenses"':'Activeert mogelijk niet "updateLicenses"',ra_Message:kNe,ra_Monday:ENe,"ra_Move down":"Naar beneden verplaatsen","ra_Move up":"Omhoog gaan",ra_Name:TNe,"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 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_Objects:ONe,ra_Ok:DNe,"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 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_Private certificate":"Privé certificaat",ra_Product:ANe,"ra_Public certificate":"Openbaar certificaat","ra_Quality code":"Kwaliteit","ra_Refresh tree":"Vernieuw de boom","ra_Reload files":"Laad bestanden opnieuw",ra_Repeat:INe,ra_Replace:MNe,"ra_Request timed out":"Verzoek verlopen","ra_Restrict to folder":"Beperken tot map",ra_Root:PNe,ra_Saturday:NNe,ra_Save:RNe,"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:jNe,"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_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:LNe,"ra_Suitable license not found in license manager":"Geschikte licentie niet gevonden in licentiebeheer",ra_Sunday:zNe,"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:FNe,ra_Timestamp:BNe,"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:WNe,"ra_Unknown error":"Onbekende fout","ra_Unknown error!":"Onbekende fout!",ra_Update:HNe,"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:UNe,ra_Value:VNe,ra_Version:qNe,"ra_View file":"Bestand bekijken","ra_View: %s":"Bekijk: %s",ra_Wednesday:GNe,ra_Width:XNe,ra_Yes:JNe,"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___different__:YNe,ra_aclEveryone_read_object:KNe,ra_aclEveryone_read_state:ZNe,ra_aclEveryone_write_object:QNe,ra_aclEveryone_write_state:eRe,ra_aclGroup_read_object:tRe,ra_aclGroup_read_state:rRe,ra_aclGroup_write_object:nRe,ra_aclGroup_write_state:oRe,ra_aclOwner_read_object:aRe,ra_aclOwner_read_state:iRe,ra_aclOwner_write_object:sRe,ra_aclOwner_write_state:lRe,ra_buttons:cRe,ra_changedFrom:dRe,ra_close:uRe,ra_create_boolean_state:pRe,ra_create_channel:hRe,ra_create_device:fRe,ra_create_number_state:mRe,ra_create_state:gRe,ra_create_string_state:vRe,ra_daysShortText:yRe,ra_dow_Fr:_Re,ra_dow_Mo:bRe,ra_dow_Sa:wRe,ra_dow_Su:xRe,ra_dow_Th:SRe,ra_dow_Tu:CRe,ra_dow_We:$Re,ra_expertMode:kRe,ra_fileType_all:ERe,ra_fileType_audio:TRe,ra_fileType_code:ORe,ra_fileType_images:DRe,ra_fileType_txt:ARe,ra_fileType_video:IRe,"ra_fileType_video,":"Video",ra_filter_customs:MRe,ra_filter_customs_without:PRe,ra_filter_func:NRe,ra_filter_id:RRe,ra_filter_name:jRe,ra_filter_role:LRe,ra_filter_room:zRe,ra_filter_type:FRe,"ra_import data from %s file":"Importeer gegevens uit %s bestand",ra_invalidConfig:BRe,ra_lastChange:WRe,ra_locally:HRe,ra_month_Apr:URe,ra_month_Aug:VRe,ra_month_Dec:qRe,ra_month_Feb:GRe,ra_month_Jan:XRe,ra_month_Jul:JRe,ra_month_Jun:YRe,ra_month_Mai:KRe,ra_month_Mar:ZRe,ra_month_Nov:QRe,ra_month_Oct:e5e,ra_month_Sep:t5e,ra_months_Apr:r5e,ra_months_Aug:n5e,ra_months_Dec:o5e,ra_months_Feb:a5e,ra_months_Jan:i5e,ra_months_Jul:s5e,ra_months_Jun:l5e,ra_months_Mai:c5e,ra_months_Mar:d5e,ra_months_Nov:u5e,ra_months_Oct:p5e,ra_months_Sep:h5e,ra_none:f5e,ra_object_changed_by:m5e,ra_object_changed_by_user:g5e,ra_otherConfig:v5e,ra_qualityCode:y5e,ra_repeat:_5e,ra_select_folder_hint:b5e,ra_state_changed_by:w5e,ra_state_changed_from:x5e,ra_timestamp:S5e,ra_tooltip_ack:C5e,ra_tooltip_comment:$5e,ra_tooltip_copyState:k5e,ra_tooltip_customConfig:E5e,ra_tooltip_deleteObject:T5e,ra_tooltip_editObject:O5e,ra_tooltip_editState:D5e,ra_tooltip_from:A5e,ra_tooltip_lc:I5e,ra_tooltip_quality:M5e,ra_tooltip_ts:P5e,ra_tooltip_user:N5e,ra_tooltip_value:R5e,"ra_use seconds":"gebruik seconden",ra_val:j5e,"ra_via internet":"via internet",ra_warning_every_minute:L5e,ra_warning_every_second:z5e,sc_cron:F5e,sc_date:B5e,sc_dates:W5e,sc_dow:H5e,sc_dows:U5e,sc_every:V5e,sc_everyN_dates:q5e,sc_everyN_dow:G5e,sc_everyN_dows:X5e,sc_everyN_hours:J5e,sc_everyN_minutes:Y5e,sc_everyN_months:K5e,sc_everyN_seconds:Z5e,sc_every_dates:Q5e,sc_every_dow:e3e,sc_every_dows:t3e,sc_every_hours:r3e,sc_every_minutes:n3e,sc_every_months:o3e,sc_every_seconds:a3e,sc_from:i3e,sc_hours:s3e,sc_interval:l3e,sc_intervalBetween:c3e,sc_invalid_cron:d3e,sc_minutes:u3e,sc_months:p3e,sc_once:h3e,sc_period:f3e,sc_seconds:m3e,sc_simple:g3e,sc_specific:v3e,sc_specific_dates:y3e,sc_specific_dow:_3e,sc_specific_dows:b3e,sc_specific_hours:w3e,sc_specific_minutes:x3e,sc_specific_months:S3e,sc_specific_seconds:C3e,sc_time:$3e,sc_to:k3e,sc_wizard:E3e,sch_all:T3e,sch_astroDay:O3e,sch_astroNight:D3e,sch_astro_dawn:A3e,sch_astro_dusk:I3e,sch_astro_goldenHour:M3e,sch_astro_goldenHourEnd:P3e,sch_astro_nadir:N3e,sch_astro_nauticalDawn:R3e,sch_astro_nauticalDusk:j3e,sch_astro_night:L3e,sch_astro_nightEnd:z3e,sch_astro_solarNoon:F3e,sch_astro_sunrise:B3e,sch_astro_sunriseEnd:W3e,sch_astro_sunset:H3e,sch_astro_sunsetStart:U3e,sch_at:V3e,sch_desc_atTime:q3e,sch_desc_everyDay:G3e,sch_desc_everyHour:X3e,sch_desc_everyMinute:J3e,sch_desc_everyMonth:Y3e,sch_desc_everyNDay:K3e,sch_desc_everyNHours:Z3e,sch_desc_everyNMinutes:Q3e,sch_desc_everyNMonths:eje,sch_desc_everyNWeeks:tje,sch_desc_everyNYears:rje,sch_desc_everyWeek:nje,sch_desc_everyYear:oje,sch_desc_intervalFromTo:aje,sch_desc_never:ije,sch_desc_onDate:sje,sch_desc_onDates:lje,sch_desc_onEveryDate:cje,sch_desc_onMonth:dje,sch_desc_onMonths:uje,sch_desc_onWeekday:pje,sch_desc_onWeekdays:hje,sch_desc_onWeekends:fje,sch_desc_onWorkdays:mje,sch_desc_onceInPast:gje,sch_desc_once_on:vje,sch_desc_validFrom:yje,sch_desc_validFromTo:_je,sch_desc_validTo:bje,sch_every:wje,sch_exactTime:xje,sch_from:Sje,sch_fromTo:Cje,sch_intervalTime:$je,sch_invert:kje,sch_no_one:Eje,sch_on:Tje,sch_period:Oje,sch_periodDaily:Dje,sch_periodDates:Aje,sch_periodDay:Ije,sch_periodEvery:Mje,sch_periodEveryDay:Pje,sch_periodEveryMonth:Nje,sch_periodEveryWeek:Rje,sch_periodEveryYear:jje,sch_periodHours:Lje,sch_periodMinutes:zje,sch_periodMonth:Fje,sch_periodMonthly:Bje,sch_periodOnce:Wje,sch_periodSpecificMonths:Hje,sch_periodWeek:Uje,sch_periodWeekdays:Vje,sch_periodWeekend:qje,sch_periodWeekly:Gje,sch_periodWorkdays:Xje,sch_periodYear:Jje,sch_periodYearly:Yje,sch_specificTime:Kje,sch_time:Zje,sch_to:Qje,sch_valid:e4e,sch_validFrom:t4e,sch_validTo:r4e,sch_wholeDay:n4e,sch_yearEveryMonth:o4e},i4e="Ajouter",s4e="Annuler",l4e="Catégories",c4e="Vérifié",d4e="Effacer",u4e="Fermer",p4e="Commercial",h4e="Configurer",f4e="Lié",m4e="Copié",g4e="Créer",v4e="Recadrer",y4e="Delete",_4e="Supprimer",b4e="Jeter",w4e="Débranché",x4e="Erreur",S4e="Filtre",C4e="Vendredi",$4e="Latitude",k4e="Longitude",E4e="Message",T4e="Lundi",O4e="Nom",D4e="Objets",A4e="D'accord",I4e="Produit",M4e="Répéter",P4e="Remplacer",N4e="Racine",R4e="Samedi",j4e="sauver",L4e="Choisi",z4e="États",F4e="Dimanche",B4e="Jeudi",W4e="Horodatage",H4e="Mardi",U4e="Mise à jour",V4e="Valable jusqu'au",q4e="Valeur",G4e="Version",X4e="Mercredi",J4e="Largeur",Y4e="Oui",K4e="différent",Z4e="Tout le monde peut lire un objet",Q4e="Tout le monde peut lire l'état",eLe="Tout le monde peut écrire un objet",tLe="Tout le monde peut écrire l'état",rLe="Le groupe peut lire l'objet",nLe="Le groupe peut lire l'état",oLe="Le groupe peut écrire un objet",aLe="Le groupe peut écrire l'état",iLe="Le propriétaire peut lire l'objet",sLe="Le propriétaire peut lire l'état",lLe="Le propriétaire peut écrire un objet",cLe="Le propriétaire peut écrire l'état",dLe="Boutons",uLe="Changé de",pLe="Fermer",hLe="Créer un état booléen",fLe="Créer une chaîne",mLe="Créer un appareil",gLe="Créer un état de numéro",vLe="Créer un état",yLe="Créer un état de chaîne",_Le="j.",bLe="Fr",wLe="Mo",xLe="Sa",SLe="Su",CLe="Th",$Le="Tu",kLe="Nous",ELe="Mode expert",TLe="Tous les fichiers",OLe="l'audio",DLe="Code/JSON",ALe="Images",ILe="Texte",MLe="Vidéo",PLe="Paramètres",NLe="sans",RLe="Une fonction",jLe="ID",LLe="Prénom",zLe="Rôle",FLe="Pièce",BLe="Type",WLe="Paramètres invalides",HLe="Dernier changement",ULe="localement",VLe="Avr",qLe="Août",GLe="Déc",XLe="Fév",JLe="Jan",YLe="Juil",KLe="Juin",ZLe="Mai",QLe="Mar",eze="Nov",tze="Oct",rze="Sep",nze="Avr",oze="Août",aze="Déc",ize="Fév",sze="Jan",lze="Juil",cze="Juin",dze="Mai",uze="Mar",pze="Nov",hze="Oct",fze="Sep",mze="rien",gze="Objet modifié par",vze="Objet modifié pour la dernière fois à",yze="Paramètres d'un autre adaptateur %s",_ze="Code de qualité",bze="répéter",wze='Pour sélectionner un dossier, maintenez simplement la touche "shift" enfoncée en cliquant sur le dossier.',xze="État modifié par",Sze="Objet changé de",Cze="Horodatage",$ze="Drapeau reconnu",kze="Commentaire",Eze="Copiez la valeur d'état",Tze="Paramètres personnalisés",Oze="Supprimer un objet",Dze="Modifier l'objet",Aze="Modifier la valeur d'état",Ize="De",Mze="Dernière modification",Pze="Qualité",Nze="Horodatage",Rze="Utilisateur",jze="Valeur",Lze="Valeur",zze="Attention : la tâche CRON s’exécutera toutes les minutes pendant la période spécifiée !",Fze="Attention : la tâche CRON s’exécutera toutes les secondes pendant la période spécifiée !",Bze="CRON",Wze="Date",Hze="Rendez-vous",Uze="Jour",Vze="Jour de la semaine",qze="Chaque",Gze="tous les N jours",Xze="chaque Nième jour de la semaine",Jze="tous les N jours de la semaine",Yze="toutes les N heures",Kze="toutes les N minutes",Zze="tous les N mois",Qze="toutes les N secondes",eFe="tous les jours",tFe="Chaque jour de la semaine",rFe="Chaque jour de la semaine",nFe="Toutes les heures",oFe="chaque minute",aFe="chaque mois",iFe="chaque seconde",sFe="De",lFe="Heures",cFe="Intervalle",dFe="Intervalle entre",uFe="CRON non valide",pFe="Minutes",hFe="mois",fFe="Une fois que",mFe="Période",gFe="Secondes",vFe="Facile",yFe="Temps spécifique",_Fe="dates spécifiques",bFe="jour(s) spécifique(s) de la semaine",wFe="jour spécifique de semaines",xFe="heures spécifiques",SFe="minutes spécifiques",CFe="mois spécifiques",$Fe="secondes spécifiques",kFe="Temps",EFe="À",TFe="sorcier",OFe="tout",DFe="Journée astronomique",AFe="Nuit astronomique",IFe="Aube",MFe="Crépuscule",PFe="Heure d'or",NFe="Fin de l'heure d'or",RFe="Nadir",jFe="Aube nautique",LFe="Crépuscule nautique",zFe="Nuit",FFe="Fin de nuit",BFe="Midi solaire",WFe="lever du soleil",HFe="Fin du lever du soleil",UFe="Le coucher du soleil",VFe="Coucher du soleil",qFe="à",GFe="à %s",XFe="tous les jours",JFe="Toutes les heures",YFe="chaque minute",KFe="chaque mois",ZFe="chaque %s jour",QFe="chaque %s heures",e6e="toutes les %s minutes",t6e="tous les %s mois",r6e="chaque %s semaines",n6e="tous les %s ans",o6e="toutes les semaines",a6e="chaque année",i6e="de %s à %s",s6e="jamais",l6e="sur %s de %s",c6e="sur %s et %s de",d6e="à chaque date de",u6e="%s",p6e="%s et %s",h6e="sur %s",f6e="sur %s et %s",m6e="les weekends",g6e="les jours ouvrables",v6e="ne sera plus exécuté, car start est dans le passé",y6e="sur %s",_6e="de %s",b6e="Exécuter de à",w6e="à %s",x6e="chaque",S6e="Temps spécifique",C6e="de",$6e="De à",k6e="Temps d'interval",E6e="inverser",T6e="aucun",O6e="sur",D6e="Période",A6e="du quotidien",I6e="Rendez-vous",M6e="journée",P6e="Chaque",N6e="Tous les jours",R6e="Chaque mois",j6e="Toutes les semaines",L6e="Chaque année",z6e="Heures",F6e="Minutes",B6e="mois",W6e="Mensuel",H6e="Une fois que",U6e="Mois spécifiques",V6e="La semaine",q6e="Jours de la semaine",G6e="Weekend",X6e="Hebdomadaire",J6e="Jours ouvrables",Y6e="Année",K6e="Annuel",Z6e="Temps spécifique",Q6e="Temps",e8e="à",t8e="Valide",r8e="de",n8e="à",o8e="Toute la journée",a8e="chaque mois",i8e={"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_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:i4e,"ra_Append %s entries or replace existing?":"Ajouter %s entrées ou remplacer l'existant ?","ra_Append or replace?":"Ajouter ou remplacer ?","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:s4e,"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 : 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 : %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:l4e,"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:c4e,ra_Clear:d4e,"ra_Clear filter":"Effacer le filtre","ra_Clear icon":"Effacer l'icône","ra_Clone current row":"Cloner la ligne actuelle",ra_Close:u4e,"ra_Collapse all nodes":"Réduire tous les nœuds","ra_Collapse one step node":"Réduire d'un niveau",ra_Commercial:p4e,ra_Configure:h4e,"ra_Configure visible columns":"Configurer les colonnes visibles","ra_Confirm deletion of %s":"Confirmer la suppression de %s",ra_Connected:f4e,ra_Copied:m4e,"ra_Copied %s":'"%s" copié',"ra_Copy content":"Copier le contenu",ra_Create:g4e,"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:v4e,"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:y4e,ra_Delete:_4e,"ra_Delete (no confirm for 5 mins)":"Supprimer (pas de confirmation pendant 5 minutes)","ra_Delete current row":"Supprimer la ligne actuelle","ra_Deselect all":"Tout déselectionner","ra_Device → Channel → State":"Appareil → Canal → État",ra_Discard:b4e,ra_Disconnected:w4e,"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_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 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_Error:x4e,"ra_Expand all nodes":"Développer tous les nœuds","ra_Expand one step node":"Développer un niveau","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:S4e,"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:C4e,"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_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 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:$4e,"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 ?","ra_Listen on all IPs":"Écoutez sur toutes les adresses IP","ra_Load configuration from file":"Charger la configuration à partir du fichier",ra_Longitude:k4e,'ra_May not trigger "updateLicenses"':'Peut ne pas déclencher "updateLicences"',ra_Message:E4e,ra_Monday:T4e,"ra_Move down":"Descendre","ra_Move up":"Déplacer vers le haut",ra_Name:O4e,"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 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_Objects:D4e,ra_Ok:A4e,"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 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_Private certificate":"Certificat privé",ra_Product:I4e,"ra_Public certificate":"Certificat public","ra_Quality code":"Qualité","ra_Refresh tree":"Rafraîchir l'arborescence","ra_Reload files":"Recharger les fichiers",ra_Repeat:M4e,ra_Replace:P4e,"ra_Request timed out":"La demande a expiré","ra_Restrict to folder":"Restreindre au dossier",ra_Root:N4e,ra_Saturday:R4e,ra_Save:j4e,"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:L4e,"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_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:z4e,"ra_Suitable license not found in license manager":"Licence appropriée introuvable dans le gestionnaire de licences",ra_Sunday:F4e,"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:B4e,ra_Timestamp:W4e,"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:H4e,"ra_Unknown error":"Erreur inconnue","ra_Unknown error!":"Erreur inconnue!",ra_Update:U4e,"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:V4e,ra_Value:q4e,ra_Version:G4e,"ra_View file":"Voir la fiche","ra_View: %s":"Affichage : %s",ra_Wednesday:X4e,ra_Width:J4e,ra_Yes:Y4e,"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___different__:K4e,ra_aclEveryone_read_object:Z4e,ra_aclEveryone_read_state:Q4e,ra_aclEveryone_write_object:eLe,ra_aclEveryone_write_state:tLe,ra_aclGroup_read_object:rLe,ra_aclGroup_read_state:nLe,ra_aclGroup_write_object:oLe,ra_aclGroup_write_state:aLe,ra_aclOwner_read_object:iLe,ra_aclOwner_read_state:sLe,ra_aclOwner_write_object:lLe,ra_aclOwner_write_state:cLe,ra_buttons:dLe,ra_changedFrom:uLe,ra_close:pLe,ra_create_boolean_state:hLe,ra_create_channel:fLe,ra_create_device:mLe,ra_create_number_state:gLe,ra_create_state:vLe,ra_create_string_state:yLe,ra_daysShortText:_Le,ra_dow_Fr:bLe,ra_dow_Mo:wLe,ra_dow_Sa:xLe,ra_dow_Su:SLe,ra_dow_Th:CLe,ra_dow_Tu:$Le,ra_dow_We:kLe,ra_expertMode:ELe,ra_fileType_all:TLe,ra_fileType_audio:OLe,ra_fileType_code:DLe,ra_fileType_images:ALe,ra_fileType_txt:ILe,ra_fileType_video:MLe,"ra_fileType_video,":"Vidéo",ra_filter_customs:PLe,ra_filter_customs_without:NLe,ra_filter_func:RLe,ra_filter_id:jLe,ra_filter_name:LLe,ra_filter_role:zLe,ra_filter_room:FLe,ra_filter_type:BLe,"ra_import data from %s file":"Importer des données à partir du fichier %s",ra_invalidConfig:WLe,ra_lastChange:HLe,ra_locally:ULe,ra_month_Apr:VLe,ra_month_Aug:qLe,ra_month_Dec:GLe,ra_month_Feb:XLe,ra_month_Jan:JLe,ra_month_Jul:YLe,ra_month_Jun:KLe,ra_month_Mai:ZLe,ra_month_Mar:QLe,ra_month_Nov:eze,ra_month_Oct:tze,ra_month_Sep:rze,ra_months_Apr:nze,ra_months_Aug:oze,ra_months_Dec:aze,ra_months_Feb:ize,ra_months_Jan:sze,ra_months_Jul:lze,ra_months_Jun:cze,ra_months_Mai:dze,ra_months_Mar:uze,ra_months_Nov:pze,ra_months_Oct:hze,ra_months_Sep:fze,ra_none:mze,ra_object_changed_by:gze,ra_object_changed_by_user:vze,ra_otherConfig:yze,ra_qualityCode:_ze,ra_repeat:bze,ra_select_folder_hint:wze,ra_state_changed_by:xze,ra_state_changed_from:Sze,ra_timestamp:Cze,ra_tooltip_ack:$ze,ra_tooltip_comment:kze,ra_tooltip_copyState:Eze,ra_tooltip_customConfig:Tze,ra_tooltip_deleteObject:Oze,ra_tooltip_editObject:Dze,ra_tooltip_editState:Aze,ra_tooltip_from:Ize,ra_tooltip_lc:Mze,ra_tooltip_quality:Pze,ra_tooltip_ts:Nze,ra_tooltip_user:Rze,ra_tooltip_value:jze,"ra_use seconds":"utiliser les secondes",ra_val:Lze,"ra_via internet":"par Internet",ra_warning_every_minute:zze,ra_warning_every_second:Fze,sc_cron:Bze,sc_date:Wze,sc_dates:Hze,sc_dow:Uze,sc_dows:Vze,sc_every:qze,sc_everyN_dates:Gze,sc_everyN_dow:Xze,sc_everyN_dows:Jze,sc_everyN_hours:Yze,sc_everyN_minutes:Kze,sc_everyN_months:Zze,sc_everyN_seconds:Qze,sc_every_dates:eFe,sc_every_dow:tFe,sc_every_dows:rFe,sc_every_hours:nFe,sc_every_minutes:oFe,sc_every_months:aFe,sc_every_seconds:iFe,sc_from:sFe,sc_hours:lFe,sc_interval:cFe,sc_intervalBetween:dFe,sc_invalid_cron:uFe,sc_minutes:pFe,sc_months:hFe,sc_once:fFe,sc_period:mFe,sc_seconds:gFe,sc_simple:vFe,sc_specific:yFe,sc_specific_dates:_Fe,sc_specific_dow:bFe,sc_specific_dows:wFe,sc_specific_hours:xFe,sc_specific_minutes:SFe,sc_specific_months:CFe,sc_specific_seconds:$Fe,sc_time:kFe,sc_to:EFe,sc_wizard:TFe,sch_all:OFe,sch_astroDay:DFe,sch_astroNight:AFe,sch_astro_dawn:IFe,sch_astro_dusk:MFe,sch_astro_goldenHour:PFe,sch_astro_goldenHourEnd:NFe,sch_astro_nadir:RFe,sch_astro_nauticalDawn:jFe,sch_astro_nauticalDusk:LFe,sch_astro_night:zFe,sch_astro_nightEnd:FFe,sch_astro_solarNoon:BFe,sch_astro_sunrise:WFe,sch_astro_sunriseEnd:HFe,sch_astro_sunset:UFe,sch_astro_sunsetStart:VFe,sch_at:qFe,sch_desc_atTime:GFe,sch_desc_everyDay:XFe,sch_desc_everyHour:JFe,sch_desc_everyMinute:YFe,sch_desc_everyMonth:KFe,sch_desc_everyNDay:ZFe,sch_desc_everyNHours:QFe,sch_desc_everyNMinutes:e6e,sch_desc_everyNMonths:t6e,sch_desc_everyNWeeks:r6e,sch_desc_everyNYears:n6e,sch_desc_everyWeek:o6e,sch_desc_everyYear:a6e,sch_desc_intervalFromTo:i6e,sch_desc_never:s6e,sch_desc_onDate:l6e,sch_desc_onDates:c6e,sch_desc_onEveryDate:d6e,sch_desc_onMonth:u6e,sch_desc_onMonths:p6e,sch_desc_onWeekday:h6e,sch_desc_onWeekdays:f6e,sch_desc_onWeekends:m6e,sch_desc_onWorkdays:g6e,sch_desc_onceInPast:v6e,sch_desc_once_on:y6e,sch_desc_validFrom:_6e,sch_desc_validFromTo:b6e,sch_desc_validTo:w6e,sch_every:x6e,sch_exactTime:S6e,sch_from:C6e,sch_fromTo:$6e,sch_intervalTime:k6e,sch_invert:E6e,sch_no_one:T6e,sch_on:O6e,sch_period:D6e,sch_periodDaily:A6e,sch_periodDates:I6e,sch_periodDay:M6e,sch_periodEvery:P6e,sch_periodEveryDay:N6e,sch_periodEveryMonth:R6e,sch_periodEveryWeek:j6e,sch_periodEveryYear:L6e,sch_periodHours:z6e,sch_periodMinutes:F6e,sch_periodMonth:B6e,sch_periodMonthly:W6e,sch_periodOnce:H6e,sch_periodSpecificMonths:U6e,sch_periodWeek:V6e,sch_periodWeekdays:q6e,sch_periodWeekend:G6e,sch_periodWeekly:X6e,sch_periodWorkdays:J6e,sch_periodYear:Y6e,sch_periodYearly:K6e,sch_specificTime:Z6e,sch_time:Q6e,sch_to:e8e,sch_valid:t8e,sch_validFrom:r8e,sch_validTo:n8e,sch_wholeDay:o8e,sch_yearEveryMonth:a8e},s8e="Aggiungere",l8e="Annulla",c8e="Categorie",d8e="Controllato",u8e="Elimina",p8e="Vicino",h8e="Commerciale",f8e="Configura",m8e="Collegato",g8e="Copiato",v8e="Creare",y8e="Raccolto",_8e="Delete",b8e="Elimina",w8e="Scartare",x8e="Disconnesso",S8e="Errore",C8e="Filtro",$8e="Venerdì",k8e="Latitudine",E8e="Longitudine",T8e="Messaggio",O8e="Lunedi",D8e="Nome",A8e="Oggetti",I8e="Ok",M8e="Prodotto",P8e="Ripetere",N8e="Sostituire",R8e="Radice",j8e="Sabato",L8e="Salva",z8e="Selezionato",F8e="stati",B8e="Domenica",W8e="Giovedì",H8e="Timestamp",U8e="Martedì",V8e="Aggiornare",q8e="Valido fino a",G8e="Valore",X8e="Versione",J8e="Mercoledì",Y8e="Larghezza",K8e="SÌ",Z8e="diverso",Q8e="Tutti possono leggere gli oggetti",eBe="Tutti possono leggere lo stato",tBe="Tutti possono scrivere oggetti",rBe="Tutti possono scrivere stato",nBe="Il gruppo può leggere l'oggetto",oBe="Il gruppo può leggere lo stato",aBe="Il gruppo può scrivere l'oggetto",iBe="Il gruppo può scrivere lo stato",sBe="Il proprietario può leggere l'oggetto",lBe="Il proprietario può leggere lo stato",cBe="Il proprietario può scrivere l'oggetto",dBe="Il proprietario può scrivere lo stato",uBe="Bottoni",pBe="Cambiato da",hBe="vicino",fBe="Crea uno stato booleano",mBe="Crea canale",gBe="Crea dispositivo",vBe="Crea lo stato del numero",yBe="Crea stato",_Be="Crea lo stato della stringa",bBe="g.",wBe="fr",xBe="momento",SBe="Sa",CBe="su",$Be="th",kBe="Tu",EBe="Noi",TBe="Modalità esperto",OBe="Tutti i files",DBe="Audio",ABe="Codice/JSON",IBe="immagini",MBe="Testo",PBe="video",NBe="impostazioni",RBe="senza",jBe="Funzione",LBe="ID",zBe="Nome",FBe="Ruolo",BBe="Camera",WBe="genere",HBe="Impostazioni non valide",UBe="Ultima modifica",VBe="localmente",qBe="apr",GBe="agosto",XBe="Dic",JBe="febbraio",YBe="gen",KBe="lug",ZBe="giu",QBe="Mai",e9e="marzo",t9e="nov",r9e="ottobre",n9e="Sett",o9e="apr",a9e="agosto",i9e="Dic",s9e="febbraio",l9e="gen",c9e="lug",d9e="giu",u9e="Mai",p9e="marzo",h9e="nov",f9e="ottobre",m9e="Sett",g9e="nessuna",v9e="Oggetto modificato da",y9e="L'oggetto è stato modificato l'ultima volta alle",_9e="Impostazioni dall'altro adattatore %s",b9e="Codice di qualità",w9e="ripetere",x9e='Per selezionare la cartella, basta tenere premuto il tasto "shift" facendo clic sulla cartella.',S9e="Stato cambiato da",C9e="Oggetto cambiato da",$9e="Timestamp",k9e="Bandiera riconosciuta",E9e="Commento",T9e="Copia il valore dello stato",O9e="Impostazioni personalizzate",D9e="Elimina oggetto",A9e="Modifica oggetto",I9e="Modifica il valore dello stato",M9e="A partire dal",P9e="Ultima modifica",N9e="Qualità",R9e="Data e ora",j9e="Utente",L9e="Valore",z9e="Valore",F9e="Attenzione: il processo CRON verrà eseguito ogni minuto durante il periodo specificato!",B9e="Attenzione: il processo CRON verrà eseguito ogni secondo durante il periodo specificato!",W9e="CRON",H9e="Data",U9e="Date",V9e="Giorno",q9e="Giorno della settimana",G9e="Ogni",X9e="ogni N giorni",J9e="ogni Nesimo giorno della settimana",Y9e="ogni N giorno della settimana",K9e="ogni N ore",Z9e="ogni N minuti",Q9e="ogni N mesi",e7e="ogni N secondi",t7e="ogni giorno",r7e="Tutti i giorni della settimana",n7e="Tutti i giorni della settimana",o7e="ogni ora",a7e="ogni minuto",i7e="ogni mese",s7e="ogni secondo",l7e="A partire dal",c7e="Ore",d7e="Intervallo",u7e="Intervallo tra",p7e="CRON non valido",h7e="Minuti",f7e="mesi",m7e="Una volta",g7e="Periodo",v7e="secondi",y7e="Semplice",_7e="Orario preciso",b7e="date specifiche",w7e="giorno/i specifico/i della settimana",x7e="giorno specifico delle settimane",S7e="orari specifici",C7e="minuti specifici",$7e="mesi specifici",k7e="secondi specifici",E7e="Tempo",T7e="Per",O7e="procedura guidata",D7e="tutti",A7e="Astro day",I7e="Astro night",M7e="Alba",P7e="Crepuscolo",N7e="Ora d'oro",R7e="Fine dell'ora d'oro",j7e="Nadir",L7e="Alba nautica",z7e="Crepuscolo nautico",F7e="Notte",B7e="Fine della notte",W7e="Mezzogiorno solare",H7e="Alba",U7e="Fine dell'alba",V7e="Tramonto",q7e="Inizio del tramonto",G7e="a",X7e="a %s",J7e="ogni giorno",Y7e="ogni ora",K7e="ogni minuto",Z7e="ogni mese",Q7e="ogni %s giorno",eWe="ogni %s ore",tWe="ogni %s minuti",rWe="ogni %s mesi",nWe="ogni %s settimane",oWe="ogni %s anni",aWe="ogni settimana",iWe="ogni anno",sWe="da %s a %s",lWe="mai",cWe="su %s di %s",dWe="su %s e %s di",uWe="in ogni data di",pWe="%s",hWe="%s e %s",fWe="su %s",mWe="su %s e %s",gWe="nei finesettimana",vWe="nei giorni lavorativi",yWe="non verrà più eseguito, perché start è nel passato",_We="su %s",bWe="da %s",wWe="Eseguire da a",xWe="a %s",SWe="ogni",CWe="Orario preciso",$We="a partire dal",kWe="Da A",EWe="Intervallo di tempo",TWe="invertire",OWe="nessuna",DWe="sopra",AWe="Periodo",IWe="Quotidiano",MWe="Date",PWe="Giorno",NWe="Ogni",RWe="Ogni giorno",jWe="Ogni mese",LWe="Ogni settimana",zWe="Ogni anno",FWe="Ore",BWe="Minuti",WWe="mese",HWe="Mensile",UWe="Una volta",VWe="Mesi specifici",qWe="Settimana",GWe="Giorni della settimana",XWe="Fine settimana",JWe="settimanalmente",YWe="giorni feriali",KWe="Anno",ZWe="Annuale",QWe="Orario preciso",eHe="Tempo",tHe="per",rHe="Valido",nHe="a partire dal",oHe="per",aHe="Giorno intero",iHe="ogni mese",sHe={"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_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:s8e,"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:l8e,"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:c8e,"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:d8e,ra_Clear:u8e,"ra_Clear filter":"Filtro pulito","ra_Clear icon":"Cancella icona","ra_Clone current row":"Clona riga corrente",ra_Close:p8e,"ra_Collapse all nodes":"Comprimi tutti i nodi","ra_Collapse one step node":"Comprimi un livello",ra_Commercial:h8e,ra_Configure:f8e,"ra_Configure visible columns":"Configura colonne visibili","ra_Confirm deletion of %s":"Conferma l'eliminazione di %s",ra_Connected:m8e,ra_Copied:g8e,"ra_Copied %s":'"%s" copiato',"ra_Copy content":"Copia contenuto",ra_Create:v8e,"ra_Create alias":"Crea alias","ra_Create folder":"Creare una cartella","ra_Create new folder in %s":"Crea nuova cartella in %s",ra_Crop:y8e,"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:_8e,ra_Delete:b8e,"ra_Delete (no confirm for 5 mins)":"Elimina (nessuna conferma per 5 minuti)","ra_Delete current row":"Elimina la riga corrente","ra_Deselect all":"Deseleziona tutto","ra_Device → Channel → State":"Dispositivo → Canale → Stato",ra_Discard:w8e,ra_Disconnected:x8e,"ra_Do not export values of states":"Non esportare i valori degli stati","ra_Do not use let's encrypt":"Non utilizzare crittografiamo","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 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_Error:S8e,"ra_Expand all nodes":"Espandi tutti i nodi","ra_Expand one step node":"Espandi un livello","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:C8e,"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:$8e,"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_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 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:k8e,"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_Longitude:E8e,'ra_May not trigger "updateLicenses"':'Potrebbe non attivare "updateLicenses"',ra_Message:T8e,ra_Monday:O8e,"ra_Move down":"Abbassati","ra_Move up":"Andare avanti",ra_Name:D8e,"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 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_Objects:A8e,ra_Ok:I8e,"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 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_Private certificate":"Certificato privato",ra_Product:M8e,"ra_Public certificate":"Certificato pubblico","ra_Quality code":"Qualità","ra_Refresh tree":"Aggiorna l'albero","ra_Reload files":"Ricarica i file",ra_Repeat:P8e,ra_Replace:N8e,"ra_Request timed out":"Tempo scaduto per la richiesta","ra_Restrict to folder":"Limita alla cartella",ra_Root:R8e,ra_Saturday:j8e,ra_Save:L8e,"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:z8e,"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_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:F8e,"ra_Suitable license not found in license manager":"Licenza adatta non trovata nel gestore delle licenze",ra_Sunday:B8e,"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:W8e,ra_Timestamp:H8e,"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:U8e,"ra_Unknown error":"Errore sconosciuto","ra_Unknown error!":"Errore sconosciuto!",ra_Update:V8e,"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:q8e,ra_Value:G8e,ra_Version:X8e,"ra_View file":"Vedi il file","ra_View: %s":"Visualizza: %s",ra_Wednesday:J8e,ra_Width:Y8e,ra_Yes:K8e,"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___different__:Z8e,ra_aclEveryone_read_object:Q8e,ra_aclEveryone_read_state:eBe,ra_aclEveryone_write_object:tBe,ra_aclEveryone_write_state:rBe,ra_aclGroup_read_object:nBe,ra_aclGroup_read_state:oBe,ra_aclGroup_write_object:aBe,ra_aclGroup_write_state:iBe,ra_aclOwner_read_object:sBe,ra_aclOwner_read_state:lBe,ra_aclOwner_write_object:cBe,ra_aclOwner_write_state:dBe,ra_buttons:uBe,ra_changedFrom:pBe,ra_close:hBe,ra_create_boolean_state:fBe,ra_create_channel:mBe,ra_create_device:gBe,ra_create_number_state:vBe,ra_create_state:yBe,ra_create_string_state:_Be,ra_daysShortText:bBe,ra_dow_Fr:wBe,ra_dow_Mo:xBe,ra_dow_Sa:SBe,ra_dow_Su:CBe,ra_dow_Th:$Be,ra_dow_Tu:kBe,ra_dow_We:EBe,ra_expertMode:TBe,ra_fileType_all:OBe,ra_fileType_audio:DBe,ra_fileType_code:ABe,ra_fileType_images:IBe,ra_fileType_txt:MBe,ra_fileType_video:PBe,"ra_fileType_video,":"video",ra_filter_customs:NBe,ra_filter_customs_without:RBe,ra_filter_func:jBe,ra_filter_id:LBe,ra_filter_name:zBe,ra_filter_role:FBe,ra_filter_room:BBe,ra_filter_type:WBe,"ra_import data from %s file":"Importa dati dal file %s",ra_invalidConfig:HBe,ra_lastChange:UBe,ra_locally:VBe,ra_month_Apr:qBe,ra_month_Aug:GBe,ra_month_Dec:XBe,ra_month_Feb:JBe,ra_month_Jan:YBe,ra_month_Jul:KBe,ra_month_Jun:ZBe,ra_month_Mai:QBe,ra_month_Mar:e9e,ra_month_Nov:t9e,ra_month_Oct:r9e,ra_month_Sep:n9e,ra_months_Apr:o9e,ra_months_Aug:a9e,ra_months_Dec:i9e,ra_months_Feb:s9e,ra_months_Jan:l9e,ra_months_Jul:c9e,ra_months_Jun:d9e,ra_months_Mai:u9e,ra_months_Mar:p9e,ra_months_Nov:h9e,ra_months_Oct:f9e,ra_months_Sep:m9e,ra_none:g9e,ra_object_changed_by:v9e,ra_object_changed_by_user:y9e,ra_otherConfig:_9e,ra_qualityCode:b9e,ra_repeat:w9e,ra_select_folder_hint:x9e,ra_state_changed_by:S9e,ra_state_changed_from:C9e,ra_timestamp:$9e,ra_tooltip_ack:k9e,ra_tooltip_comment:E9e,ra_tooltip_copyState:T9e,ra_tooltip_customConfig:O9e,ra_tooltip_deleteObject:D9e,ra_tooltip_editObject:A9e,ra_tooltip_editState:I9e,ra_tooltip_from:M9e,ra_tooltip_lc:P9e,ra_tooltip_quality:N9e,ra_tooltip_ts:R9e,ra_tooltip_user:j9e,ra_tooltip_value:L9e,"ra_use seconds":"usa i secondi",ra_val:z9e,"ra_via internet":"attraverso internet",ra_warning_every_minute:F9e,ra_warning_every_second:B9e,sc_cron:W9e,sc_date:H9e,sc_dates:U9e,sc_dow:V9e,sc_dows:q9e,sc_every:G9e,sc_everyN_dates:X9e,sc_everyN_dow:J9e,sc_everyN_dows:Y9e,sc_everyN_hours:K9e,sc_everyN_minutes:Z9e,sc_everyN_months:Q9e,sc_everyN_seconds:e7e,sc_every_dates:t7e,sc_every_dow:r7e,sc_every_dows:n7e,sc_every_hours:o7e,sc_every_minutes:a7e,sc_every_months:i7e,sc_every_seconds:s7e,sc_from:l7e,sc_hours:c7e,sc_interval:d7e,sc_intervalBetween:u7e,sc_invalid_cron:p7e,sc_minutes:h7e,sc_months:f7e,sc_once:m7e,sc_period:g7e,sc_seconds:v7e,sc_simple:y7e,sc_specific:_7e,sc_specific_dates:b7e,sc_specific_dow:w7e,sc_specific_dows:x7e,sc_specific_hours:S7e,sc_specific_minutes:C7e,sc_specific_months:$7e,sc_specific_seconds:k7e,sc_time:E7e,sc_to:T7e,sc_wizard:O7e,sch_all:D7e,sch_astroDay:A7e,sch_astroNight:I7e,sch_astro_dawn:M7e,sch_astro_dusk:P7e,sch_astro_goldenHour:N7e,sch_astro_goldenHourEnd:R7e,sch_astro_nadir:j7e,sch_astro_nauticalDawn:L7e,sch_astro_nauticalDusk:z7e,sch_astro_night:F7e,sch_astro_nightEnd:B7e,sch_astro_solarNoon:W7e,sch_astro_sunrise:H7e,sch_astro_sunriseEnd:U7e,sch_astro_sunset:V7e,sch_astro_sunsetStart:q7e,sch_at:G7e,sch_desc_atTime:X7e,sch_desc_everyDay:J7e,sch_desc_everyHour:Y7e,sch_desc_everyMinute:K7e,sch_desc_everyMonth:Z7e,sch_desc_everyNDay:Q7e,sch_desc_everyNHours:eWe,sch_desc_everyNMinutes:tWe,sch_desc_everyNMonths:rWe,sch_desc_everyNWeeks:nWe,sch_desc_everyNYears:oWe,sch_desc_everyWeek:aWe,sch_desc_everyYear:iWe,sch_desc_intervalFromTo:sWe,sch_desc_never:lWe,sch_desc_onDate:cWe,sch_desc_onDates:dWe,sch_desc_onEveryDate:uWe,sch_desc_onMonth:pWe,sch_desc_onMonths:hWe,sch_desc_onWeekday:fWe,sch_desc_onWeekdays:mWe,sch_desc_onWeekends:gWe,sch_desc_onWorkdays:vWe,sch_desc_onceInPast:yWe,sch_desc_once_on:_We,sch_desc_validFrom:bWe,sch_desc_validFromTo:wWe,sch_desc_validTo:xWe,sch_every:SWe,sch_exactTime:CWe,sch_from:$We,sch_fromTo:kWe,sch_intervalTime:EWe,sch_invert:TWe,sch_no_one:OWe,sch_on:DWe,sch_period:AWe,sch_periodDaily:IWe,sch_periodDates:MWe,sch_periodDay:PWe,sch_periodEvery:NWe,sch_periodEveryDay:RWe,sch_periodEveryMonth:jWe,sch_periodEveryWeek:LWe,sch_periodEveryYear:zWe,sch_periodHours:FWe,sch_periodMinutes:BWe,sch_periodMonth:WWe,sch_periodMonthly:HWe,sch_periodOnce:UWe,sch_periodSpecificMonths:VWe,sch_periodWeek:qWe,sch_periodWeekdays:GWe,sch_periodWeekend:XWe,sch_periodWeekly:JWe,sch_periodWorkdays:YWe,sch_periodYear:KWe,sch_periodYearly:ZWe,sch_specificTime:QWe,sch_time:eHe,sch_to:tHe,sch_valid:rHe,sch_validFrom:nHe,sch_validTo:oHe,sch_wholeDay:aHe,sch_yearEveryMonth:iHe},lHe="Adjuntar",cHe="Cancelar",dHe="Categorías",uHe="Comprobado",pHe="Borrar",hHe="Cerca",fHe="Comercial",mHe="Configurar",gHe="Conectado",vHe="Copiado",yHe="Crear",_He="Cultivo",bHe="Delete",wHe="Eliminar",xHe="Desechar",SHe="Desconectado",CHe="Error",$He="Filtrar",kHe="Viernes",EHe="Latitud",THe="Longitud",OHe="Mensaje",DHe="Lunes",AHe="Nombre",IHe="Objetos",MHe="Okay",PHe="Producto",NHe="Repetir",RHe="Reemplazar",jHe="Raíz",LHe="Sábado",zHe="Salvar",FHe="Seleccionado",BHe="Estados",WHe="Domingo",HHe="Jueves",UHe="Marca de tiempo",VHe="Martes",qHe="Actualizar",GHe="Válida hasta",XHe="Valor",JHe="Versión",YHe="Miércoles",KHe="Anchura",ZHe="Sí",QHe="diferente",eUe="Todo el mundo puede leer el objeto",tUe="Todos pueden leer el estado",rUe="Todos pueden escribir objetos",nUe="Todos pueden escribir el estado",oUe="El grupo puede leer el objeto",aUe="El grupo puede leer el estado",iUe="El grupo puede escribir un objeto",sUe="El grupo puede escribir el estado",lUe="El propietario puede leer el objeto",cUe="El propietario puede leer el estado",dUe="El propietario puede escribir el objeto",uUe="El propietario puede escribir el estado",pUe="Botones",hUe="Cambiaron desde",fUe="cerrar",mUe="Crear estado booleano",gUe="Crear canal",vUe="Crear dispositivo",yUe="Crear estado numérico",_Ue="Crear estado",bUe="Crear estado de cadena",wUe="d.",xUe="Fr",SUe="Mes",CUe="Sa",$Ue="Su",kUe="Th",EUe="Tu",TUe="Nosotros",OUe="Modo experto",DUe="Todos los archivos",AUe="Audio",IUe="Código/JSON",MUe="Imágenes",PUe="Texto",NUe="Video",RUe="Configuraciones",jUe="sin",LUe="Función",zUe="ID",FUe="Nombre",BUe="Papel",WUe="Habitación",HUe="Tipo",UUe="Configuraciones inválidas",VUe="Ultimo cambio",qUe="en la zona",GUe="Abr",XUe="Ago",JUe="Dic",YUe="Feb",KUe="Ene",ZUe="Jul",QUe="Jun",eVe="Mai",tVe="Mar",rVe="Nov",nVe="Oct",oVe="Sep",aVe="Abr",iVe="Ago",sVe="Dic",lVe="Feb",cVe="Ene",dVe="Jul",uVe="Jun",pVe="Mai",hVe="Mar",fVe="Nov",mVe="Oct",gVe="Sep",vVe="ninguno",yVe="Objeto cambiado por",_Ve="Objeto cambiado por última vez a las",bVe="Configuraciones de otro adaptador %s",wVe="Código de calidad",xVe="repetir",SVe='Para seleccionar la carpeta, simplemente mantenga presionada la tecla "shift" haciendo clic en la carpeta.',CVe="Estado cambiado por",$Ve="Objeto cambiado de",kVe="Marca de tiempo",EVe="Bandera reconocida",TVe="Comentario",OVe="Copie el valor del estado",DVe="Ajustes personalizados",AVe="Eliminar objeto",IVe="Editar objeto",MVe="Edite el valor del estado",PVe="Desde",NVe="Último cambio",RVe="Calidad",jVe="Sello de tiempo",LVe="Usuario",zVe="Valor",FVe="Valor",BVe="Advertencia: ¡El trabajo CRON se ejecutará cada minuto durante el período especificado!",WVe="Advertencia: ¡El trabajo CRON se ejecutará cada segundo durante el período especificado!",HVe="CRON",UVe="Fecha",VVe="fechas",qVe="Día",GVe="Día de la semana",XVe="Cada",JVe="cada N días",YVe="cada enésimo día de la semana",KVe="cada N día de la semana",ZVe="cada N horas",QVe="cada N minutos",eqe="cada N meses",tqe="cada N segundos",rqe="cada día",nqe="Cada día de la semana",oqe="Cada día de la semana",aqe="cada hora",iqe="cada minuto",sqe="cada mes",lqe="cada segundo",cqe="De",dqe="Horas",uqe="Intervalo",pqe="Intervalo entre",hqe="CRON no válido",fqe="Minutos",mqe="meses",gqe="Una vez",vqe="Período",yqe="Segundos",_qe="Sencillo",bqe="Tiempo específico",wqe="fechas especificas",xqe="día(s) específico(s) de la semana",Sqe="día específico de semanas",Cqe="horas específicas",$qe="minutos específicos",kqe="meses específicos",Eqe="segundos específicos",Tqe="Hora",Oqe="A",Dqe="Mago",Aqe="todas",Iqe="Día astro",Mqe="Noche astro",Pqe="Amanecer",Nqe="Oscuridad",Rqe="hora dorada",jqe="Fin de la hora dorada",Lqe="Nadir",zqe="Amanecer náutico",Fqe="Anochecer náutico",Bqe="Noche",Wqe="Fin de la noche",Hqe="Mediodía solar",Uqe="amanecer",Vqe="Fin del amanecer",qqe="Puesta de sol",Gqe="Puesta de sol",Xqe="a",Jqe="en %s",Yqe="cada día",Kqe="cada hora",Zqe="cada minuto",Qqe="cada mes",eGe="cada %s días",tGe="cada %s horas",rGe="cada %s minutos",nGe="cada %s meses",oGe="cada %s semanas",aGe="cada %s años",iGe="cada semana",sGe="todos los años",lGe="de %s a %s",cGe="Nunca",dGe="en %s de %s",uGe="en %s y %s de",pGe="en cada fecha de",hGe="%s",fGe="%s y %s",mGe="en %s",gGe="en %s y %s",vGe="en los fines de semana",yGe="en días laborables",_Ge="ya no se ejecutará más, porque el inicio está en el pasado",bGe="en %s",wGe="de %s",xGe="Ejecutar desde hasta",SGe="a %s",CGe="cada",$Ge="Tiempo específico",kGe="de",EGe="De-a",TGe="Tiempo de intervalo",OGe="invertir; poner boca abajo o en la posición opuesta, orden o arreglo; Boca abajo",DGe="ninguna",AGe="en",IGe="Período",MGe="Diario",PGe="fechas",NGe="Día",RGe="Cada",jGe="Cada día",LGe="Cada mes",zGe="Cada semana",FGe="Todos los años",BGe="Horas",WGe="Minutos",HGe="mes",UGe="Mensual",VGe="Una vez",qGe="Meses específicos",GGe="Semana",XGe="Días laborables",JGe="Fin de semana",YGe="Semanal",KGe="Días laborables",ZGe="Año",QGe="Anual",eXe="Tiempo específico",tXe="Hora",rXe="a",nXe="Válido",oXe="de",aXe="a",iXe="Todo el dia",sXe="cada mes",lXe={"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_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:lHe,"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:cHe,"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:dHe,"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:uHe,ra_Clear:pHe,"ra_Clear filter":"Filtro claro","ra_Clear icon":"Icono claro","ra_Clone current row":"Clonar fila actual",ra_Close:hHe,"ra_Collapse all nodes":"Contraer todos los nodos","ra_Collapse one step node":"Contraer un nivel",ra_Commercial:fHe,ra_Configure:mHe,"ra_Configure visible columns":"Configurar columnas visibles","ra_Confirm deletion of %s":"Confirmar la eliminación de %s",ra_Connected:gHe,ra_Copied:vHe,"ra_Copied %s":'Copiado "%s"',"ra_Copy content":"Copiar contenido",ra_Create:yHe,"ra_Create alias":"Crear alias","ra_Create folder":"Crear carpeta","ra_Create new folder in %s":"Crear nueva carpeta en %s",ra_Crop:_He,"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:bHe,ra_Delete:wHe,"ra_Delete (no confirm for 5 mins)":"Eliminar (sin confirmar durante 5 minutos)","ra_Delete current row":"Eliminar fila actual","ra_Deselect all":"Deselecciona todo","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:xHe,ra_Disconnected:SHe,"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_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 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_Error:CHe,"ra_Expand all nodes":"Expandir todos los nodos","ra_Expand one step node":"Expandir un nivel","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:$He,"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:kHe,"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_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 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:EHe,"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_Longitude:THe,'ra_May not trigger "updateLicenses"':'No puede activar "updateLicenses"',ra_Message:OHe,ra_Monday:DHe,"ra_Move down":"Mover hacia abajo","ra_Move up":"Ascender",ra_Name:AHe,"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 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_Objects:IHe,ra_Ok:MHe,"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 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_Private certificate":"certificado privado",ra_Product:PHe,"ra_Public certificate":"Certificado público","ra_Quality code":"Calidad","ra_Refresh tree":"Actualizar árbol","ra_Reload files":"Recargar archivos",ra_Repeat:NHe,ra_Replace:RHe,"ra_Request timed out":"Tiempo de espera agotado","ra_Restrict to folder":"Restringir a carpeta",ra_Root:jHe,ra_Saturday:LHe,ra_Save:zHe,"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:FHe,"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_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:BHe,"ra_Suitable license not found in license manager":"Licencia adecuada no encontrada en el administrador de licencias",ra_Sunday:WHe,"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:HHe,ra_Timestamp:UHe,"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:VHe,"ra_Unknown error":"Error desconocido","ra_Unknown error!":"¡Error desconocido!",ra_Update:qHe,"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:GHe,ra_Value:XHe,ra_Version:JHe,"ra_View file":"Ver archivo","ra_View: %s":"Ver: %s",ra_Wednesday:YHe,ra_Width:KHe,ra_Yes:ZHe,"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___different__:QHe,ra_aclEveryone_read_object:eUe,ra_aclEveryone_read_state:tUe,ra_aclEveryone_write_object:rUe,ra_aclEveryone_write_state:nUe,ra_aclGroup_read_object:oUe,ra_aclGroup_read_state:aUe,ra_aclGroup_write_object:iUe,ra_aclGroup_write_state:sUe,ra_aclOwner_read_object:lUe,ra_aclOwner_read_state:cUe,ra_aclOwner_write_object:dUe,ra_aclOwner_write_state:uUe,ra_buttons:pUe,ra_changedFrom:hUe,ra_close:fUe,ra_create_boolean_state:mUe,ra_create_channel:gUe,ra_create_device:vUe,ra_create_number_state:yUe,ra_create_state:_Ue,ra_create_string_state:bUe,ra_daysShortText:wUe,ra_dow_Fr:xUe,ra_dow_Mo:SUe,ra_dow_Sa:CUe,ra_dow_Su:$Ue,ra_dow_Th:kUe,ra_dow_Tu:EUe,ra_dow_We:TUe,ra_expertMode:OUe,ra_fileType_all:DUe,ra_fileType_audio:AUe,ra_fileType_code:IUe,ra_fileType_images:MUe,ra_fileType_txt:PUe,ra_fileType_video:NUe,"ra_fileType_video,":"Video",ra_filter_customs:RUe,ra_filter_customs_without:jUe,ra_filter_func:LUe,ra_filter_id:zUe,ra_filter_name:FUe,ra_filter_role:BUe,ra_filter_room:WUe,ra_filter_type:HUe,"ra_import data from %s file":"Importar datos del archivo %s",ra_invalidConfig:UUe,ra_lastChange:VUe,ra_locally:qUe,ra_month_Apr:GUe,ra_month_Aug:XUe,ra_month_Dec:JUe,ra_month_Feb:YUe,ra_month_Jan:KUe,ra_month_Jul:ZUe,ra_month_Jun:QUe,ra_month_Mai:eVe,ra_month_Mar:tVe,ra_month_Nov:rVe,ra_month_Oct:nVe,ra_month_Sep:oVe,ra_months_Apr:aVe,ra_months_Aug:iVe,ra_months_Dec:sVe,ra_months_Feb:lVe,ra_months_Jan:cVe,ra_months_Jul:dVe,ra_months_Jun:uVe,ra_months_Mai:pVe,ra_months_Mar:hVe,ra_months_Nov:fVe,ra_months_Oct:mVe,ra_months_Sep:gVe,ra_none:vVe,ra_object_changed_by:yVe,ra_object_changed_by_user:_Ve,ra_otherConfig:bVe,ra_qualityCode:wVe,ra_repeat:xVe,ra_select_folder_hint:SVe,ra_state_changed_by:CVe,ra_state_changed_from:$Ve,ra_timestamp:kVe,ra_tooltip_ack:EVe,ra_tooltip_comment:TVe,ra_tooltip_copyState:OVe,ra_tooltip_customConfig:DVe,ra_tooltip_deleteObject:AVe,ra_tooltip_editObject:IVe,ra_tooltip_editState:MVe,ra_tooltip_from:PVe,ra_tooltip_lc:NVe,ra_tooltip_quality:RVe,ra_tooltip_ts:jVe,ra_tooltip_user:LVe,ra_tooltip_value:zVe,"ra_use seconds":"usar segundos",ra_val:FVe,"ra_via internet":"vía Internet",ra_warning_every_minute:BVe,ra_warning_every_second:WVe,sc_cron:HVe,sc_date:UVe,sc_dates:VVe,sc_dow:qVe,sc_dows:GVe,sc_every:XVe,sc_everyN_dates:JVe,sc_everyN_dow:YVe,sc_everyN_dows:KVe,sc_everyN_hours:ZVe,sc_everyN_minutes:QVe,sc_everyN_months:eqe,sc_everyN_seconds:tqe,sc_every_dates:rqe,sc_every_dow:nqe,sc_every_dows:oqe,sc_every_hours:aqe,sc_every_minutes:iqe,sc_every_months:sqe,sc_every_seconds:lqe,sc_from:cqe,sc_hours:dqe,sc_interval:uqe,sc_intervalBetween:pqe,sc_invalid_cron:hqe,sc_minutes:fqe,sc_months:mqe,sc_once:gqe,sc_period:vqe,sc_seconds:yqe,sc_simple:_qe,sc_specific:bqe,sc_specific_dates:wqe,sc_specific_dow:xqe,sc_specific_dows:Sqe,sc_specific_hours:Cqe,sc_specific_minutes:$qe,sc_specific_months:kqe,sc_specific_seconds:Eqe,sc_time:Tqe,sc_to:Oqe,sc_wizard:Dqe,sch_all:Aqe,sch_astroDay:Iqe,sch_astroNight:Mqe,sch_astro_dawn:Pqe,sch_astro_dusk:Nqe,sch_astro_goldenHour:Rqe,sch_astro_goldenHourEnd:jqe,sch_astro_nadir:Lqe,sch_astro_nauticalDawn:zqe,sch_astro_nauticalDusk:Fqe,sch_astro_night:Bqe,sch_astro_nightEnd:Wqe,sch_astro_solarNoon:Hqe,sch_astro_sunrise:Uqe,sch_astro_sunriseEnd:Vqe,sch_astro_sunset:qqe,sch_astro_sunsetStart:Gqe,sch_at:Xqe,sch_desc_atTime:Jqe,sch_desc_everyDay:Yqe,sch_desc_everyHour:Kqe,sch_desc_everyMinute:Zqe,sch_desc_everyMonth:Qqe,sch_desc_everyNDay:eGe,sch_desc_everyNHours:tGe,sch_desc_everyNMinutes:rGe,sch_desc_everyNMonths:nGe,sch_desc_everyNWeeks:oGe,sch_desc_everyNYears:aGe,sch_desc_everyWeek:iGe,sch_desc_everyYear:sGe,sch_desc_intervalFromTo:lGe,sch_desc_never:cGe,sch_desc_onDate:dGe,sch_desc_onDates:uGe,sch_desc_onEveryDate:pGe,sch_desc_onMonth:hGe,sch_desc_onMonths:fGe,sch_desc_onWeekday:mGe,sch_desc_onWeekdays:gGe,sch_desc_onWeekends:vGe,sch_desc_onWorkdays:yGe,sch_desc_onceInPast:_Ge,sch_desc_once_on:bGe,sch_desc_validFrom:wGe,sch_desc_validFromTo:xGe,sch_desc_validTo:SGe,sch_every:CGe,sch_exactTime:$Ge,sch_from:kGe,sch_fromTo:EGe,sch_intervalTime:TGe,sch_invert:OGe,sch_no_one:DGe,sch_on:AGe,sch_period:IGe,sch_periodDaily:MGe,sch_periodDates:PGe,sch_periodDay:NGe,sch_periodEvery:RGe,sch_periodEveryDay:jGe,sch_periodEveryMonth:LGe,sch_periodEveryWeek:zGe,sch_periodEveryYear:FGe,sch_periodHours:BGe,sch_periodMinutes:WGe,sch_periodMonth:HGe,sch_periodMonthly:UGe,sch_periodOnce:VGe,sch_periodSpecificMonths:qGe,sch_periodWeek:GGe,sch_periodWeekdays:XGe,sch_periodWeekend:JGe,sch_periodWeekly:YGe,sch_periodWorkdays:KGe,sch_periodYear:ZGe,sch_periodYearly:QGe,sch_specificTime:eXe,sch_time:tXe,sch_to:rXe,sch_valid:nXe,sch_validFrom:oXe,sch_validTo:aXe,sch_wholeDay:iXe,sch_yearEveryMonth:sXe},cXe="Dodać",dXe="Anuluj",uXe="Kategorie",pXe="Sprawdzony",hXe="Kasować",fXe="Blisko",mXe="Handlowy",gXe="Konfiguruj",vXe="Połączony",yXe="Skopiowano",_Xe="Stwórz",bXe="Przyciąć",wXe="Delete",xXe="Usunąć",SXe="Wyrzucać",CXe="Niepowiązany",$Xe="Błąd",kXe="Filtr",EXe="Piątek",TXe="Szerokość",OXe="Długość geograficzna",DXe="Wiadomość",AXe="Poniedziałek",IXe="Nazwa",MXe="Obiekty",PXe="Dobrze",NXe="Produkt",RXe="Powtarzać",jXe="Zastępować",LXe="Korzeń",zXe="Sobota",FXe="Zapisać",BXe="Wybrany",WXe="Stany",HXe="Niedziela",UXe="Czwartek",VXe="Znak czasu",qXe="Wtorek",GXe="Aktualizacja",XXe="Obowiązuje do",JXe="Wartość",YXe="Wersja",KXe="Środa",ZXe="Szerokość",QXe="Tak",eJe="różne",tJe="Każdy może czytać obiekt",rJe="Każdy może czytać stan",nJe="Każdy może pisać przedmiot",oJe="Każdy może pisać stan",aJe="Grupa może odczytać obiekt",iJe="Grupa może odczytać stan",sJe="Grupa może pisać obiekt",lJe="Grupa może pisać stan",cJe="Właściciel może czytać obiekt",dJe="Właściciel może odczytać stan",uJe="Właściciel może napisać obiekt",pJe="Właściciel może pisać stan",hJe="guziki",fJe="Zmieniony z",mJe="blisko",gJe="Utwórz stan logiczny",vJe="Utwórz kanał",yJe="Utwórz urządzenie",_Je="Utwórz stan liczbowy",bJe="Utwórz stan",wJe="Utwórz stan ciągu",xJe="d.",SJe="Ks",CJe="Mo",$Je="Sa",kJe="Su",EJe="Th",TJe="Tu",OJe="My",DJe="Tryb ekspercki",AJe="Wszystkie pliki",IJe="Audio",MJe="Kod/JSON",PJe="Obrazy",NJe="Tekst",RJe="Wideo",jJe="Ustawienia",LJe="bez",zJe="Funkcjonować",FJe="ID",BJe="Imię",WJe="Rola",HJe="Sala",UJe="Rodzaj",VJe="Nieprawidłowe ustawienia",qJe="Ostatnia zmiana",GJe="lokalnie",XJe="kwiecień",JJe="sierpień",YJe="grudzień",KJe="luty",ZJe="styczeń",QJe="lipiec",eYe="czerwiec",tYe="Mai",rYe="Zniszczyć",nYe="listopad",oYe="październik",aYe="wrzesień",iYe="kwiecień",sYe="sierpień",lYe="grudzień",cYe="luty",dYe="styczeń",uYe="lipiec",pYe="czerwiec",hYe="Mai",fYe="Zniszczyć",mYe="listopad",gYe="październik",vYe="wrzesień",yYe="Żaden",_Ye="Obiekt zmieniony przez",bYe="Obiekt ostatnio zmieniony o godz",wYe="Ustawienia z innego adaptera %s",xYe="Kod jakości",SYe="powtarzać",CYe="Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.",$Ye="Stan zmieniony przez",kYe="Obiekt zmieniony z",EYe="Znak czasu",TYe="Potwierdzon",OYe="Komentarz",DYe="Skopiuj wartość stanu",AYe="Własne ustawienia",IYe="Usuń obiekt",MYe="Edytuj obiekt",PYe="Edytuj wartość stanu",NYe="Z",RYe="Ostatnia zmiana",jYe="Jakość",LYe="Znak czasu",zYe="Użytkownik",FYe="Wartość",BYe="Wartość",WYe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co minutę w określonym przedziale czasowym!",HYe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co sekundę w określonym przedziale czasowym!",UYe="CRON",VYe="Data",qYe="Daktyle",GYe="Dzień",XYe="Dzień tygodnia",JYe="Każdy",YYe="co N dni",KYe="w każdy N-ty dzień tygodnia",ZYe="co N dnia tygodnia",QYe="co N godzin",eKe="co N minut",tKe="co N miesięcy",rKe="co N sekund",nKe="codziennie",oKe="każdy dzień tygodnia",aKe="każdy dzień tygodnia",iKe="co godzinę",sKe="każda minuta",lKe="każdego miesiąca",cKe="każda sekunda",dKe="Od",uKe="godziny",pKe="Interwał",hKe="Interwał między",fKe="Nieprawidłowy CRON",mKe="Minuty",gKe="miesięcy",vKe="Pewnego razu",yKe="Kropka",_Ke="sekundy",bKe="Prosty",wKe="Określony czas",xKe="konkretne daty",SKe="określone dni tygodnia",CKe="określony dzień tygodni",$Ke="określone godziny",kKe="określone minuty",EKe="określone miesiące",TKe="określone sekundy",OKe="Czas",DKe="Do",AKe="Czarodziej",IKe="wszystko",MKe="Dzień Astro",PKe="Noc Astro",NKe="Świt",RKe="Zmierzch",jKe="złota godzina",LKe="Koniec złotej godziny",zKe="Nadir",FKe="Morski świt",BKe="Morski zmierzch",WKe="Noc",HKe="Koniec nocy",UKe="Południe słoneczne",VKe="wschód słońca",qKe="Koniec wschodu słońca",GKe="Zachód słońca",XKe="Początek zachodu słońca",JKe="w",YKe="na %s",KKe="codziennie",ZKe="co godzinę",QKe="każda minuta",eZe="każdego miesiąca",tZe="każdego dnia %s",rZe="co %s godzin",nZe="co %s minut",oZe="co %s miesięcy",aZe="co %s tygodni",iZe="co %s lat",sZe="co tydzień",lZe="każdego roku",cZe="od %s do %s",dZe="nigdy",uZe="na %s z %s",pZe="na %s i %s z",hZe="w każdą datę",fZe="%s",mZe="%s i %s",gZe="na %s",vZe="na %s i %s",yZe="w weekendy",_Ze="w dni robocze",bZe="nie będzie już wykonywany, ponieważ start jest w przeszłości",wZe="na %s",xZe="z %s",SZe="Wykonaj od do",CZe="do %s",$Ze="każdy",kZe="Określony czas",EZe="od",TZe="Od-do",OZe="Czas przerwy",DZe="odwracać",AZe="Żaden",IZe="na",MZe="Kropka",PZe="Codziennie",NZe="Daktyle",RZe="Dzień",jZe="Każdy",LZe="Codziennie",zZe="Każdego miesiąca",FZe="Co tydzień",BZe="Każdego roku",WZe="godziny",HZe="Minuty",UZe="miesiąc",VZe="Miesięczny",qZe="Pewnego razu",GZe="Określone miesiące",XZe="Tydzień",JZe="Dni powszednie",YZe="Weekend",KZe="Co tydzień",ZZe="Dni robocze",QZe="Rok",eQe="Rocznie",tQe="Określony czas",rQe="Czas",nQe="do",oQe="Ważny",aQe="od",iQe="do",sQe="Cały dzień",lQe="każdego miesiąca",cQe={"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_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:cXe,"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:dXe,"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:uXe,"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:pXe,ra_Clear:hXe,"ra_Clear filter":"Czysty filtr","ra_Clear icon":"Wyczyść ikonę","ra_Clone current row":"Sklonuj bieżący wiersz",ra_Close:fXe,"ra_Collapse all nodes":"Zwiń wszystkie węzły","ra_Collapse one step node":"Zwiń o jeden poziom",ra_Commercial:mXe,ra_Configure:gXe,"ra_Configure visible columns":"Skonfiguruj widoczne kolumny","ra_Confirm deletion of %s":"Potwierdź usunięcie %s",ra_Connected:vXe,ra_Copied:yXe,"ra_Copied %s":'Skopiowano "%s"',"ra_Copy content":"Kopiuj zawartość",ra_Create:_Xe,"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:bXe,"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:wXe,ra_Delete:xXe,"ra_Delete (no confirm for 5 mins)":"Usuń (bez potwierdzenia przez 5 minut)","ra_Delete current row":"Usuń bieżący wiersz","ra_Deselect all":"Odznacz wszystko","ra_Device → Channel → State":"Urządzenie → Kanał → Stan",ra_Discard:SXe,ra_Disconnected:CXe,"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_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 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_Error:$Xe,"ra_Expand all nodes":"Rozwiń wszystkie węzły","ra_Expand one step node":"Rozwiń o jeden poziom","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:kXe,"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:EXe,"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_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 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:TXe,"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_Longitude:OXe,'ra_May not trigger "updateLicenses"':"Może nie uruchamiać „updateLicenses”",ra_Message:DXe,ra_Monday:AXe,"ra_Move down":"Padnij","ra_Move up":"Podnieść",ra_Name:IXe,"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 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_Objects:MXe,ra_Ok:PXe,"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 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_Private certificate":"Prywatny certyfikat",ra_Product:NXe,"ra_Public certificate":"Certyfikat publiczny","ra_Quality code":"Jakości","ra_Refresh tree":"Odśwież drzewo","ra_Reload files":"Załaduj ponownie pliki",ra_Repeat:RXe,ra_Replace:jXe,"ra_Request timed out":"Upłynął limit czasu żądania","ra_Restrict to folder":"Ogranicz do folderu",ra_Root:LXe,ra_Saturday:zXe,ra_Save:FXe,"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:BXe,"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_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:WXe,"ra_Suitable license not found in license manager":"Nie znaleziono odpowiedniej licencji w menedżerze licencji",ra_Sunday:HXe,"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:UXe,ra_Timestamp:VXe,"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:qXe,"ra_Unknown error":"Nieznany błąd","ra_Unknown error!":"Nieznany błąd!",ra_Update:GXe,"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:XXe,ra_Value:JXe,ra_Version:YXe,"ra_View file":"Zobaczyć plik","ra_View: %s":"Widok: %s",ra_Wednesday:KXe,ra_Width:ZXe,ra_Yes:QXe,"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___different__:eJe,ra_aclEveryone_read_object:tJe,ra_aclEveryone_read_state:rJe,ra_aclEveryone_write_object:nJe,ra_aclEveryone_write_state:oJe,ra_aclGroup_read_object:aJe,ra_aclGroup_read_state:iJe,ra_aclGroup_write_object:sJe,ra_aclGroup_write_state:lJe,ra_aclOwner_read_object:cJe,ra_aclOwner_read_state:dJe,ra_aclOwner_write_object:uJe,ra_aclOwner_write_state:pJe,ra_buttons:hJe,ra_changedFrom:fJe,ra_close:mJe,ra_create_boolean_state:gJe,ra_create_channel:vJe,ra_create_device:yJe,ra_create_number_state:_Je,ra_create_state:bJe,ra_create_string_state:wJe,ra_daysShortText:xJe,ra_dow_Fr:SJe,ra_dow_Mo:CJe,ra_dow_Sa:$Je,ra_dow_Su:kJe,ra_dow_Th:EJe,ra_dow_Tu:TJe,ra_dow_We:OJe,ra_expertMode:DJe,ra_fileType_all:AJe,ra_fileType_audio:IJe,ra_fileType_code:MJe,ra_fileType_images:PJe,ra_fileType_txt:NJe,ra_fileType_video:RJe,"ra_fileType_video,":"Wideo",ra_filter_customs:jJe,ra_filter_customs_without:LJe,ra_filter_func:zJe,ra_filter_id:FJe,ra_filter_name:BJe,ra_filter_role:WJe,ra_filter_room:HJe,ra_filter_type:UJe,"ra_import data from %s file":"Importuj dane z pliku %s",ra_invalidConfig:VJe,ra_lastChange:qJe,ra_locally:GJe,ra_month_Apr:XJe,ra_month_Aug:JJe,ra_month_Dec:YJe,ra_month_Feb:KJe,ra_month_Jan:ZJe,ra_month_Jul:QJe,ra_month_Jun:eYe,ra_month_Mai:tYe,ra_month_Mar:rYe,ra_month_Nov:nYe,ra_month_Oct:oYe,ra_month_Sep:aYe,ra_months_Apr:iYe,ra_months_Aug:sYe,ra_months_Dec:lYe,ra_months_Feb:cYe,ra_months_Jan:dYe,ra_months_Jul:uYe,ra_months_Jun:pYe,ra_months_Mai:hYe,ra_months_Mar:fYe,ra_months_Nov:mYe,ra_months_Oct:gYe,ra_months_Sep:vYe,ra_none:yYe,ra_object_changed_by:_Ye,ra_object_changed_by_user:bYe,ra_otherConfig:wYe,ra_qualityCode:xYe,ra_repeat:SYe,ra_select_folder_hint:CYe,ra_state_changed_by:$Ye,ra_state_changed_from:kYe,ra_timestamp:EYe,ra_tooltip_ack:TYe,ra_tooltip_comment:OYe,ra_tooltip_copyState:DYe,ra_tooltip_customConfig:AYe,ra_tooltip_deleteObject:IYe,ra_tooltip_editObject:MYe,ra_tooltip_editState:PYe,ra_tooltip_from:NYe,ra_tooltip_lc:RYe,ra_tooltip_quality:jYe,ra_tooltip_ts:LYe,ra_tooltip_user:zYe,ra_tooltip_value:FYe,"ra_use seconds":"użyj sekund",ra_val:BYe,"ra_via internet":"przez internet",ra_warning_every_minute:WYe,ra_warning_every_second:HYe,sc_cron:UYe,sc_date:VYe,sc_dates:qYe,sc_dow:GYe,sc_dows:XYe,sc_every:JYe,sc_everyN_dates:YYe,sc_everyN_dow:KYe,sc_everyN_dows:ZYe,sc_everyN_hours:QYe,sc_everyN_minutes:eKe,sc_everyN_months:tKe,sc_everyN_seconds:rKe,sc_every_dates:nKe,sc_every_dow:oKe,sc_every_dows:aKe,sc_every_hours:iKe,sc_every_minutes:sKe,sc_every_months:lKe,sc_every_seconds:cKe,sc_from:dKe,sc_hours:uKe,sc_interval:pKe,sc_intervalBetween:hKe,sc_invalid_cron:fKe,sc_minutes:mKe,sc_months:gKe,sc_once:vKe,sc_period:yKe,sc_seconds:_Ke,sc_simple:bKe,sc_specific:wKe,sc_specific_dates:xKe,sc_specific_dow:SKe,sc_specific_dows:CKe,sc_specific_hours:$Ke,sc_specific_minutes:kKe,sc_specific_months:EKe,sc_specific_seconds:TKe,sc_time:OKe,sc_to:DKe,sc_wizard:AKe,sch_all:IKe,sch_astroDay:MKe,sch_astroNight:PKe,sch_astro_dawn:NKe,sch_astro_dusk:RKe,sch_astro_goldenHour:jKe,sch_astro_goldenHourEnd:LKe,sch_astro_nadir:zKe,sch_astro_nauticalDawn:FKe,sch_astro_nauticalDusk:BKe,sch_astro_night:WKe,sch_astro_nightEnd:HKe,sch_astro_solarNoon:UKe,sch_astro_sunrise:VKe,sch_astro_sunriseEnd:qKe,sch_astro_sunset:GKe,sch_astro_sunsetStart:XKe,sch_at:JKe,sch_desc_atTime:YKe,sch_desc_everyDay:KKe,sch_desc_everyHour:ZKe,sch_desc_everyMinute:QKe,sch_desc_everyMonth:eZe,sch_desc_everyNDay:tZe,sch_desc_everyNHours:rZe,sch_desc_everyNMinutes:nZe,sch_desc_everyNMonths:oZe,sch_desc_everyNWeeks:aZe,sch_desc_everyNYears:iZe,sch_desc_everyWeek:sZe,sch_desc_everyYear:lZe,sch_desc_intervalFromTo:cZe,sch_desc_never:dZe,sch_desc_onDate:uZe,sch_desc_onDates:pZe,sch_desc_onEveryDate:hZe,sch_desc_onMonth:fZe,sch_desc_onMonths:mZe,sch_desc_onWeekday:gZe,sch_desc_onWeekdays:vZe,sch_desc_onWeekends:yZe,sch_desc_onWorkdays:_Ze,sch_desc_onceInPast:bZe,sch_desc_once_on:wZe,sch_desc_validFrom:xZe,sch_desc_validFromTo:SZe,sch_desc_validTo:CZe,sch_every:$Ze,sch_exactTime:kZe,sch_from:EZe,sch_fromTo:TZe,sch_intervalTime:OZe,sch_invert:DZe,sch_no_one:AZe,sch_on:IZe,sch_period:MZe,sch_periodDaily:PZe,sch_periodDates:NZe,sch_periodDay:RZe,sch_periodEvery:jZe,sch_periodEveryDay:LZe,sch_periodEveryMonth:zZe,sch_periodEveryWeek:FZe,sch_periodEveryYear:BZe,sch_periodHours:WZe,sch_periodMinutes:HZe,sch_periodMonth:UZe,sch_periodMonthly:VZe,sch_periodOnce:qZe,sch_periodSpecificMonths:GZe,sch_periodWeek:XZe,sch_periodWeekdays:JZe,sch_periodWeekend:YZe,sch_periodWeekly:KZe,sch_periodWorkdays:ZZe,sch_periodYear:QZe,sch_periodYearly:eQe,sch_specificTime:tQe,sch_time:rQe,sch_to:nQe,sch_valid:oQe,sch_validFrom:aQe,sch_validTo:iQe,sch_wholeDay:sQe,sch_yearEveryMonth:lQe},dQe="Додайте",uQe="Скасувати",pQe="Категорії",hQe="Перевірено",fQe="Видалити",mQe="Закрити",gQe="Комерційний",vQe="Налаштувати",yQe="Підключено",_Qe="Скопійовано",bQe="Створити",wQe="Урожай",xQe="Delete",SQe="Видалити",CQe="Відкинути",$Qe="Відключено",kQe="Помилка",EQe="фільтр",TQe="П'ятниця",OQe="Широта",DQe="Довгота",AQe="повідомлення",IQe="понеділок",MQe="Ім'я",PQe="Об'єкти",NQe="В порядку",RQe="Продукт",jQe="Повторіть",LQe="Замінити",zQe="Корінь",FQe="Субота",BQe="зберегти",WQe="Вибране",HQe="держави",UQe="неділя",VQe="четвер",qQe="Мітка часу",GQe="вівторок",XQe="оновлення",JQe="Дійсний до",YQe="Значення",KQe="Версія",ZQe="Середа",QQe="Ширина",eet="Так",tet="інший",ret="Кожен може читати об'єкт",net="Кожен може читати стан",oet="Кожен може написати об'єкт",aet="Кожен може написати стан",iet="Група може читати об'єкт",set="Група може читати стан",cet="Група може писати об'єкт",det="Група може писати стан",uet="Власник може читати об'єкт",pet="Власник може читати стан",het="Власник може написати об'єкт",fet="Власник може написати стан",met="кнопки",get="Змінено з",vet="закрити",yet="Створіть логічний стан",_et="Створити канал",bet="Створити пристрій",wet="Створити номерний стан",xet="Створити состояние",Cet="Створити рядковий стан",$et="днів",ket="О",Eet="пн",Tet="Sa",Oet="Нд",Det="чт",Aet="вт",Iet="ми",Met="Експертний режим",Pet="Всі файли",Net="Аудіо",Ret="Код/JSON",jet="Зображення",Let="текст",zet="відео",Fet="Налаштування",Bet="без",Wet="функція",Het="ID",Uet="Ім'я",Vet="Роль",qet="Кімната",Get="Тип",Xet="Недійсні налаштування",Jet="Остання зміна",Yet="локально",Ket="квіт",Zet="серп",Qet="груд",ett="лютий",ttt="січня",rtt="лип",ntt="черв",ott="травень",att="березень",itt="Листопад",stt="жовт",ltt="вер",ctt="квіт",dtt="серп",utt="груд",ptt="лютий",htt="січня",ftt="лип",mtt="черв",gtt="травень",vtt="березень",ytt="Листопад",_tt="жовт",btt="вер",wtt="немає",xtt="Об'єкт змінено",Stt="Об'єкт востаннє змінено о",Ctt="Налаштування з іншого адаптера %s",$tt="Код якості",ktt="повторити",Ett="Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».",Ttt="Стан змінено на",Ott="Об'єкт змінено з",Dtt="Мітка часу",Att="Визнано",Itt="коментар",Mtt="Скопіюйте значення стану",Ptt="Спеціальні налаштування",Ntt="Видалити об'єкт",Rtt="Редагувати об'єкт",jtt="Відредагуйте значення стану",Ltt="Від",ztt="Востаннє змінено",Ftt="якість",Btt="Позначка часу",Wtt="Користувач",Htt="Значення",Utt="Значення",Vtt="Попередження: завдання CRON виконуватиметься щохвилини протягом зазначеного періоду!",qtt="Попередження: завдання CRON виконуватиметься кожну секунду протягом зазначеного періоду!",Gtt="CRON",Xtt="Дата",Jtt="дати",Ytt="День",Ktt="День тижня",Ztt="кожен",Qtt="кожні N днів",ert="кожен N-й день тижня",trt="кожні N днів тижня",rrt="кожні N годин",nrt="кожні N хвилин",ort="кожні N місяців",art="кожні N секунд",irt="кожен день",srt="кожен день тижня",lrt="кожен день тижня",crt="щогодини",drt="кожну хвилину",urt="щомісяця",prt="кожна секунда",hrt="Від",frt="години",mrt="Інтервал",grt="Інтервал між",vrt="Недійсний CRON",yrt="хвилин",_rt="місяців",brt="Один раз",wrt="Крапка",xrt="секунд",Srt="просто",Crt="Конкретний час",$rt="конкретні дати",krt="конкретний день (дні) тижня",Ert="конкретний день тижня",Trt="конкретні години",Ort="конкретні хвилини",Drt="конкретні місяці",Art="конкретні секунди",Irt="час",Mrt="до",Prt="майстер",Nrt="все",Rrt="Астродень",jrt="Астро ніч",Lrt="Світанок",zrt="Сутінки",Frt="Золота година",Brt="Кінець золотої години",Wrt="Надір",Hrt="Морський світанок",Urt="Морські сутінки",Vrt="ніч",qrt="Кінець ночі",Grt="Сонячний полудень",Xrt="Схід сонця",Jrt="Кінець сходу сонця",Yrt="Захід сонця",Krt="Початок заходу сонця",Zrt="в",Qrt="в %s",ent="кожен день",tnt="щогодини",rnt="кожну хвилину",nnt="щомісяця",ont="кожен %s день",ant="кожні %s годин",int="кожні %s хвилин",snt="кожні %s місяців",lnt="кожні %s тижнів",cnt="кожні %s років",dnt="щотижня",unt="щороку",pnt="від %s до %s",hnt="ніколи",fnt="на %s з %s",mnt="на %s і %s з",gnt="на кожну дату",vnt="%s",ynt="%s і %s",_nt="на %s",bnt="на %s і %s",wnt="на вихідних",xnt="в робочі дні",Snt="більше не виконуватиметься, оскільки запуск у минулому",Cnt="на %s",$nt="від %s",knt="Виконати від до",Ent="до %s",Tnt="кожен",Ont="Конкретний час",Dnt="від",Ant="Від до",Int="Час інтервалу",Mnt="інвертувати",Pnt="немає",Nnt="на",Rnt="Крапка",jnt="Щодня",Lnt="дати",znt="День",Fnt="кожен",Bnt="Кожен день",Wnt="Щомісяця",Hnt="Щотижня",Unt="Щороку",Vnt="години",qnt="хвилин",Gnt="місяць",Xnt="Щомісяця",Jnt="Один раз",Ynt="Конкретні місяці",Knt="тиждень",Znt="будні",Qnt="Вихідні",eot="Щотижня",tot="робочі дні",rot="рік",not="щорічно",oot="Конкретний час",aot="час",iot="до",sot="Дійсний",lot="від",cot="до",dot="Цілий день",uot="щомісяця",pot={"ra_%s links from aliases":"%s посилань із псевдонімів","ra_%s object(s) processed":"Оброблено %s об’єктів","ra_%s was imported":"%s було імпортовано","ra_Accept license":"Прийняти ліцензію","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:dQe,"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:uQe,"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:pQe,"ra_Chained certificate":"Прикутий сертифікат","ra_Change color theme":"Змінити кольорову тему","ra_Changed from":"Змінено з","ra_Channel → State":"Канал → Стан","ra_Check license":"Перевірити ліцензію",ra_Checked:hQe,ra_Clear:fQe,"ra_Clear filter":"Очистити фільтр","ra_Clear icon":"Очистити значок","ra_Clone current row":"Клонувати поточний рядок",ra_Close:mQe,"ra_Collapse all nodes":"Згорнути всі вузли","ra_Collapse one step node":"Згорнути на один рівень",ra_Commercial:gQe,ra_Configure:vQe,"ra_Configure visible columns":"Налаштувати видимі стовпці","ra_Confirm deletion of %s":"Підтвердити видалення %s",ra_Connected:yQe,ra_Copied:_Qe,"ra_Copied %s":'Скопійовано "%s"',"ra_Copy content":"Скопіюйте вміст",ra_Create:bQe,"ra_Create alias":"Створити псевдонім","ra_Create folder":"Створити папку","ra_Create new folder in %s":"Створіть нову папку в %s",ra_Crop:wQe,"ra_Define CRON...":"Визначити CRON...","ra_Define functions":"Визначити функції","ra_Define rooms":"Визначте кімнати","ra_Define schedule":"Визначити розклад","ra_Define schedule...":"Визначити розклад...",ra_Del:xQe,ra_Delete:SQe,"ra_Delete (no confirm for 5 mins)":"Видалити (без підтвердження протягом 5 хвилин)","ra_Delete current row":"Видалити поточний рядок","ra_Deselect all":"Скасувати вибір усіх","ra_Device → Channel → State":"Пристрій → Канал → Стан",ra_Discard:CQe,ra_Disconnected:$Qe,"ra_Do not export values of states":"Не експортуйте значення станів","ra_Do not use let's encrypt":"Не використовуйте let's encrypt","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 function":"функція редагування","ra_Edit object field":"Поле редагування об'єкта","ra_Edit role":"Редагувати роль","ra_Edit room":"Редагувати кімнату","ra_Edit value":"Редагувати значення",ra_Error:kQe,"ra_Expand all nodes":"Розгорнути всі вузли","ra_Expand one step node":"Розгорніть один рівень","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:EQe,"ra_Filter files":"Фільтр файлів","ra_Folder name":"Назва папки","ra_Folder → Channel → State":"Папка → Канал → Стан","ra_Folder → Device → Channel → State":"Папка → Пристрій → Канал → Стан","ra_Folder → State":"Папка → Стан","ra_Folders always first":"Папки завжди першими",ra_Friday:TQe,"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_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 answer from server":"Недійсна відповідь від сервера","ra_Invalid parent folder!":"Недійсна батьківська папка!","ra_Invalid structure":"Недійсна структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Остання зміна",ra_Latitude:OQe,"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_Longitude:DQe,'ra_May not trigger "updateLicenses"':'Може не запускати "updateLicenses"',ra_Message:AQe,ra_Monday:IQe,"ra_Move down":"Рухатися вниз","ra_Move up":"Рухатися вгору",ra_Name:MQe,"ra_No data found in file":"Немає даних у файлі","ra_No one license found in license manager":"У менеджері ліцензій не знайдено жодної ліцензії","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_Objects:PQe,ra_Ok:NQe,"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 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_Private certificate":"Приватний сертифікат",ra_Product:RQe,"ra_Public certificate":"Публічний сертифікат","ra_Quality code":"якість","ra_Refresh tree":"Оновити дерево","ra_Reload files":"Перезавантажте файли",ra_Repeat:jQe,ra_Replace:LQe,"ra_Request timed out":"Час запиту вичерпано","ra_Restrict to folder":"Обмежити папкою",ra_Root:zQe,ra_Saturday:FQe,ra_Save:BQe,"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:WQe,"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_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:HQe,"ra_Suitable license not found in license manager":"Відповідна ліцензія не знайдена в менеджері ліцензій",ra_Sunday:UQe,"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:VQe,ra_Timestamp:qQe,"ra_Toggle expert mode":"Перемкнути експертний режим","ra_Toggle the states view":"Перемкнути перегляд штатів","ra_Toggle view mode":"Перемкнути режим перегляду","ra_Too big":"Занадто великий","ra_Too small":"Занадто малий","ra_Transparent dialog":"Прозорий діалог",ra_Tuesday:GQe,"ra_Unknown error":"Невідома помилка","ra_Unknown error!":"Невідома помилка!",ra_Update:XQe,"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:JQe,ra_Value:YQe,ra_Version:KQe,"ra_View file":"Переглянути файл","ra_View: %s":"Перегляд: %s",ra_Wednesday:ZQe,ra_Width:QQe,ra_Yes:eet,"ra_You can export all objects or just the selected branch.":"Ви можете експортувати всі об’єкти або лише вибрану гілку.","ra_You can filter entries by entering here some text":"Ви можете фільтрувати записи, ввівши тут певний текст",ra___different__:tet,ra_aclEveryone_read_object:ret,ra_aclEveryone_read_state:net,ra_aclEveryone_write_object:oet,ra_aclEveryone_write_state:aet,ra_aclGroup_read_object:iet,ra_aclGroup_read_state:set,ra_aclGroup_write_object:cet,ra_aclGroup_write_state:det,ra_aclOwner_read_object:uet,ra_aclOwner_read_state:pet,ra_aclOwner_write_object:het,ra_aclOwner_write_state:fet,ra_buttons:met,ra_changedFrom:get,ra_close:vet,ra_create_boolean_state:yet,ra_create_channel:_et,ra_create_device:bet,ra_create_number_state:wet,ra_create_state:xet,ra_create_string_state:Cet,ra_daysShortText:$et,ra_dow_Fr:ket,ra_dow_Mo:Eet,ra_dow_Sa:Tet,ra_dow_Su:Oet,ra_dow_Th:Det,ra_dow_Tu:Aet,ra_dow_We:Iet,ra_expertMode:Met,ra_fileType_all:Pet,ra_fileType_audio:Net,ra_fileType_code:Ret,ra_fileType_images:jet,ra_fileType_txt:Let,ra_fileType_video:zet,"ra_fileType_video,":"відео",ra_filter_customs:Fet,ra_filter_customs_without:Bet,ra_filter_func:Wet,ra_filter_id:Het,ra_filter_name:Uet,ra_filter_role:Vet,ra_filter_room:qet,ra_filter_type:Get,"ra_import data from %s file":"Імпортувати дані з файлу %s",ra_invalidConfig:Xet,ra_lastChange:Jet,ra_locally:Yet,ra_month_Apr:Ket,ra_month_Aug:Zet,ra_month_Dec:Qet,ra_month_Feb:ett,ra_month_Jan:ttt,ra_month_Jul:rtt,ra_month_Jun:ntt,ra_month_Mai:ott,ra_month_Mar:att,ra_month_Nov:itt,ra_month_Oct:stt,ra_month_Sep:ltt,ra_months_Apr:ctt,ra_months_Aug:dtt,ra_months_Dec:utt,ra_months_Feb:ptt,ra_months_Jan:htt,ra_months_Jul:ftt,ra_months_Jun:mtt,ra_months_Mai:gtt,ra_months_Mar:vtt,ra_months_Nov:ytt,ra_months_Oct:_tt,ra_months_Sep:btt,ra_none:wtt,ra_object_changed_by:xtt,ra_object_changed_by_user:Stt,ra_otherConfig:Ctt,ra_qualityCode:$tt,ra_repeat:ktt,ra_select_folder_hint:Ett,ra_state_changed_by:Ttt,ra_state_changed_from:Ott,ra_timestamp:Dtt,ra_tooltip_ack:Att,ra_tooltip_comment:Itt,ra_tooltip_copyState:Mtt,ra_tooltip_customConfig:Ptt,ra_tooltip_deleteObject:Ntt,ra_tooltip_editObject:Rtt,ra_tooltip_editState:jtt,ra_tooltip_from:Ltt,ra_tooltip_lc:ztt,ra_tooltip_quality:Ftt,ra_tooltip_ts:Btt,ra_tooltip_user:Wtt,ra_tooltip_value:Htt,"ra_use seconds":"використовуйте секунди",ra_val:Utt,"ra_via internet":"через інтернет",ra_warning_every_minute:Vtt,ra_warning_every_second:qtt,sc_cron:Gtt,sc_date:Xtt,sc_dates:Jtt,sc_dow:Ytt,sc_dows:Ktt,sc_every:Ztt,sc_everyN_dates:Qtt,sc_everyN_dow:ert,sc_everyN_dows:trt,sc_everyN_hours:rrt,sc_everyN_minutes:nrt,sc_everyN_months:ort,sc_everyN_seconds:art,sc_every_dates:irt,sc_every_dow:srt,sc_every_dows:lrt,sc_every_hours:crt,sc_every_minutes:drt,sc_every_months:urt,sc_every_seconds:prt,sc_from:hrt,sc_hours:frt,sc_interval:mrt,sc_intervalBetween:grt,sc_invalid_cron:vrt,sc_minutes:yrt,sc_months:_rt,sc_once:brt,sc_period:wrt,sc_seconds:xrt,sc_simple:Srt,sc_specific:Crt,sc_specific_dates:$rt,sc_specific_dow:krt,sc_specific_dows:Ert,sc_specific_hours:Trt,sc_specific_minutes:Ort,sc_specific_months:Drt,sc_specific_seconds:Art,sc_time:Irt,sc_to:Mrt,sc_wizard:Prt,sch_all:Nrt,sch_astroDay:Rrt,sch_astroNight:jrt,sch_astro_dawn:Lrt,sch_astro_dusk:zrt,sch_astro_goldenHour:Frt,sch_astro_goldenHourEnd:Brt,sch_astro_nadir:Wrt,sch_astro_nauticalDawn:Hrt,sch_astro_nauticalDusk:Urt,sch_astro_night:Vrt,sch_astro_nightEnd:qrt,sch_astro_solarNoon:Grt,sch_astro_sunrise:Xrt,sch_astro_sunriseEnd:Jrt,sch_astro_sunset:Yrt,sch_astro_sunsetStart:Krt,sch_at:Zrt,sch_desc_atTime:Qrt,sch_desc_everyDay:ent,sch_desc_everyHour:tnt,sch_desc_everyMinute:rnt,sch_desc_everyMonth:nnt,sch_desc_everyNDay:ont,sch_desc_everyNHours:ant,sch_desc_everyNMinutes:int,sch_desc_everyNMonths:snt,sch_desc_everyNWeeks:lnt,sch_desc_everyNYears:cnt,sch_desc_everyWeek:dnt,sch_desc_everyYear:unt,sch_desc_intervalFromTo:pnt,sch_desc_never:hnt,sch_desc_onDate:fnt,sch_desc_onDates:mnt,sch_desc_onEveryDate:gnt,sch_desc_onMonth:vnt,sch_desc_onMonths:ynt,sch_desc_onWeekday:_nt,sch_desc_onWeekdays:bnt,sch_desc_onWeekends:wnt,sch_desc_onWorkdays:xnt,sch_desc_onceInPast:Snt,sch_desc_once_on:Cnt,sch_desc_validFrom:$nt,sch_desc_validFromTo:knt,sch_desc_validTo:Ent,sch_every:Tnt,sch_exactTime:Ont,sch_from:Dnt,sch_fromTo:Ant,sch_intervalTime:Int,sch_invert:Mnt,sch_no_one:Pnt,sch_on:Nnt,sch_period:Rnt,sch_periodDaily:jnt,sch_periodDates:Lnt,sch_periodDay:znt,sch_periodEvery:Fnt,sch_periodEveryDay:Bnt,sch_periodEveryMonth:Wnt,sch_periodEveryWeek:Hnt,sch_periodEveryYear:Unt,sch_periodHours:Vnt,sch_periodMinutes:qnt,sch_periodMonth:Gnt,sch_periodMonthly:Xnt,sch_periodOnce:Jnt,sch_periodSpecificMonths:Ynt,sch_periodWeek:Knt,sch_periodWeekdays:Znt,sch_periodWeekend:Qnt,sch_periodWeekly:eot,sch_periodWorkdays:tot,sch_periodYear:rot,sch_periodYearly:not,sch_specificTime:oot,sch_time:aot,sch_to:iot,sch_valid:sot,sch_validFrom:lot,sch_validTo:cot,sch_wholeDay:dot,sch_yearEveryMonth:uot},hot="附加",fot="取消",mot="类别",got="勾选",vot="删除",yot="关",_ot="商业的",bot="配置",wot="连接的",xot="复制的",Sot="创建",Cot="庄稼",$ot="Delete",kot="删除",Eot="丢弃",Tot="断开连接",Oot="错误",Dot="筛选",Aot="星期五",Iot="纬度",Mot="经度",Pot="信息",Not="周一",Rot="姓名",jot="对象",Lot="好",zot="产品",Fot="重复",Bot="代替",Wot="根",Hot="周六",Uot="保存",Vot="已选",qot="状态",Got="星期日",Xot="周四",Jot="时间戳记",Yot="周二",Kot="更新资料",Zot="有效期至",Qot="值",eat="版本",tat="周三",rat="宽度",nat="是的",oat="不同的",aat="每个人都可以阅读对象",iat="每个人都可以阅读状态",sat="每个人都可以写对象",lat="每个人都可以写状态",cat="组可以读取对象",dat="群组可以读取状态",uat="组可以写对象",pat="组可以写状态",hat="所有者可以读取对象",fat="所有者可以读取状态",mat="所有者可以写对象",gat="所有者可以写状态",vat="纽扣",yat="更改为",_at="关闭",bat="创建布尔状态",wat="创建频道",xat="创建设备",Sat="创建号码状态",Cat="创建状态",$at="创建字符串状态",kat="天",Eat="r",Tat="莫",Oat="萨",Dat="苏",Aat="Th",Iat="Tu",Mat="我们",Pat="专家模式",Nat="所有文件",Rat="声音的",jat="代码/JSON",Lat="图片",zat="文本",Fat="视频",Bat="设定值",Wat="没有",Hat="功能",Uat="ID",Vat="名称",qat="角色",Gat="房间",Xat="类型",Jat="无效的设定",Yat="最后一次变更",Kat="本地",Zat="4月",Qat="八月",eit="十二月",tit="二月",rit="简",nit="七月",oit="君",ait="迈",iit="三月",sit="十一月",lit="十月",cit="九月",dit="4月",uit="八月",pit="十二月",hit="二月",fit="简",mit="七月",git="君",vit="迈",yit="三月",_it="十一月",bit="十月",wit="九月",xit="没有任何",Sit="物件变更者",Cit="对象上次更改时间为",$it="来自其他适配器%s的设置",kit="质量代码",Eit="重复",Tit="要选择文件夹,只需按住“shift”键单击文件夹即可。",Oit="状态由",Dit="对象已从更改",Ait="时间戳记",Iit="致谢国旗",Mit="评论",Pit="复制状态值",Nit="自定义设置",Rit="删除物件",jit="编辑物件",Lit="编辑状态值",zit="从",Fit="最后改变了",Bit="质量",Wit="时间戳",Hit="用户",Uit="值",Vit="值",qit="警告:CRON 作业将在指定期间内每分钟运行一次!",Git="警告:CRON 作业将在指定期间内每秒运行一次!",Xit="周期任务",Jit="日期",Yit="日",Kit="天",Zit="星期",Qit="每",est="每N天",tst="每周的第 N 天",rst="每周N天",nst="每N小时一次",ost="每N分钟",ast="每N个月",ist="每N秒",sst="每天",lst="一周的每一天",cst="一周的每一天",dst="每小时",ust="每分钟",pst="每月",hst="每秒",fst="从",mst="小时",gst="间隔",vst="间隔时间",yst="无效的 CRON",_st="分钟",bst="月",wst="一次",xst="周期",Sst="秒",Cst="简单模式",$st="特定的时间",kst="特定的日子",Est="一周中的特定日子",Tst="特定的一周",Ost="特定的小时",Dst="特定的分钟",Ast="特定的月份",Ist="特定的描述",Mst="时间",Pst="至",Nst="向导模式",Rst="全选",jst="天文白天",Lst="天文夜晚",zst="黎明",Fst="黄昏",Bst="黄金时段",Wst="黄金时段结束",Hst="天底",Ust="航海黎明",Vst="航海黄昏",qst="夜晚",Gst="夜晚结束",Xst="正午",Jst="日出",Yst="日出结束",Kst="日落",Zst="日落开始",Qst="在",elt="的%s",tlt="每天",rlt="每小时",nlt="每分钟",olt="每月",alt="每%s天",ilt="每%s小时",slt="每%s分钟",llt="每%s月",clt="每%s周",dlt="每%s年",ult="每周",plt="每年",hlt="从%s到%s",flt="决不",mlt="在%s的%s上",glt="在%s和%s上",vlt="在每天",ylt="%s",_lt="%s和%s",blt="在%s上",wlt="在%s和%s上",xlt="在周末",Slt="在工作日",Clt="将不再执行,因为起始时间已经是过去的时间了。",$lt="在%s上",klt="来自%s",Elt="从执行到",Tlt="到%s",Olt="每",Dlt="特定的时间",Alt="从",Ilt="从到",Mlt="间隔时间",Plt="倒置",Nlt="取消全选",Rlt="的",jlt="周期",Llt="每天",zlt="日期",Flt="天",Blt="每",Wlt="每天",Hlt="每月",Ult="每周",Vlt="每年",qlt="小时",Glt="分钟",Xlt="月",Jlt="每月一次",Ylt="一次",Klt="特定的月份",Zlt="周",Qlt="工作日",ect="周末",tct="每周",rct="工作日",nct="年",oct="每年",act="特定的时间",ict="时间",sct="至",lct="生效",cct="从",dct="至",uct="一整天",pct="每月",hct={"ra_%s links from aliases":"来自别名的 %s 个链接","ra_%s object(s) processed":"已处理%s个对象","ra_%s was imported":"对象已导入","ra_Accept license":"接受许可","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:hot,"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:fot,"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:mot,"ra_Chained certificate":"链式证书","ra_Change color theme":"更改颜色主题","ra_Changed from":"更改为","ra_Channel → State":"频道→状态","ra_Check license":"检查许可证",ra_Checked:got,ra_Clear:vot,"ra_Clear filter":"清除筛选","ra_Clear icon":"清除图标","ra_Clone current row":"克隆当前行",ra_Close:yot,"ra_Collapse all nodes":"收合所有节点","ra_Collapse one step node":"折叠一级",ra_Commercial:_ot,ra_Configure:bot,"ra_Configure visible columns":"配置可见列","ra_Confirm deletion of %s":"确认删除%s",ra_Connected:wot,ra_Copied:xot,"ra_Copied %s":'复制的"%s"',"ra_Copy content":"复制内容",ra_Create:Sot,"ra_Create alias":"创建别名","ra_Create folder":"创建文件夹","ra_Create new folder in %s":"在%s中创建新文件夹",ra_Crop:Cot,"ra_Define CRON...":"定义 CRON...","ra_Define functions":"定义功能","ra_Define rooms":"定义房间","ra_Define schedule":"定义时间表","ra_Define schedule...":"定义时间表...",ra_Del:$ot,ra_Delete:kot,"ra_Delete (no confirm for 5 mins)":"删除(5分钟内未确认)","ra_Delete current row":"删除当前行","ra_Deselect all":"全部取消选择","ra_Device → Channel → State":"设备→频道→状态",ra_Discard:Eot,ra_Disconnected:Tot,"ra_Do not export values of states":"不导出状态值","ra_Do not use let's encrypt":"不要使用让我们加密","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 function":"编辑功能","ra_Edit object field":"编辑对象字段","ra_Edit role":"编辑角色","ra_Edit room":"编辑室","ra_Edit value":"编辑值",ra_Error:Oot,"ra_Expand all nodes":"展开所有节点","ra_Expand one step node":"扩大一级","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:Dot,"ra_Filter files":"过滤文件","ra_Folder name":"文件夹名称","ra_Folder → Channel → State":"文件夹→频道→状态","ra_Folder → Device → Channel → State":"文件夹→设备→频道→状态","ra_Folder → State":"文件夹→状态","ra_Folders always first":"资料夹永远优先",ra_Friday:Aot,"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_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 answer from server":"来自服务器的无效答案","ra_Invalid parent folder!":"父文件夹无效!","ra_Invalid structure":"结构无效","ra_JSON editor":"JSON 编辑器","ra_Last change":"最后一次变更",ra_Latitude:Iot,"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_Longitude:Mot,'ra_May not trigger "updateLicenses"':"可能不会触发“updateLicenses”",ra_Message:Pot,ra_Monday:Not,"ra_Move down":"下移","ra_Move up":"提升",ra_Name:Rot,"ra_No data found in file":"文件中未找到数据","ra_No one license found in license manager":"许可证管理器中未找到任何许可证","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_Objects:jot,ra_Ok:Lot,"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 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_Private certificate":"私有证书",ra_Product:zot,"ra_Public certificate":"公共证书","ra_Quality code":"质量代码","ra_Refresh tree":"刷新树","ra_Reload files":"重新载入文件",ra_Repeat:Fot,ra_Replace:Bot,"ra_Request timed out":"请求超时","ra_Restrict to folder":"限制到文件夹",ra_Root:Wot,ra_Saturday:Hot,ra_Save:Uot,"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:Vot,"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_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:qot,"ra_Suitable license not found in license manager":"在许可证管理器中找不到合适的许可证",ra_Sunday:Got,"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:Xot,ra_Timestamp:Jot,"ra_Toggle expert mode":"切换专家模式","ra_Toggle the states view":"切换状态视图","ra_Toggle view mode":"切换检视模式","ra_Too big":"太大","ra_Too small":"太小","ra_Transparent dialog":"透明对话框",ra_Tuesday:Yot,"ra_Unknown error":"未知错误","ra_Unknown error!":"未知错误!",ra_Update:Kot,"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:Zot,ra_Value:Qot,ra_Version:eat,"ra_View file":"查看文件","ra_View: %s":"查看:%s",ra_Wednesday:tat,ra_Width:rat,ra_Yes:nat,"ra_You can export all objects or just the selected branch.":"您可以导出所有对象或仅导出选定的分支。","ra_You can filter entries by entering here some text":"您可以通过在此处输入一些文本来过滤条目",ra___different__:oat,ra_aclEveryone_read_object:aat,ra_aclEveryone_read_state:iat,ra_aclEveryone_write_object:sat,ra_aclEveryone_write_state:lat,ra_aclGroup_read_object:cat,ra_aclGroup_read_state:dat,ra_aclGroup_write_object:uat,ra_aclGroup_write_state:pat,ra_aclOwner_read_object:hat,ra_aclOwner_read_state:fat,ra_aclOwner_write_object:mat,ra_aclOwner_write_state:gat,ra_buttons:vat,ra_changedFrom:yat,ra_close:_at,ra_create_boolean_state:bat,ra_create_channel:wat,ra_create_device:xat,ra_create_number_state:Sat,ra_create_state:Cat,ra_create_string_state:$at,ra_daysShortText:kat,ra_dow_Fr:Eat,ra_dow_Mo:Tat,ra_dow_Sa:Oat,ra_dow_Su:Dat,ra_dow_Th:Aat,ra_dow_Tu:Iat,ra_dow_We:Mat,ra_expertMode:Pat,ra_fileType_all:Nat,ra_fileType_audio:Rat,ra_fileType_code:jat,ra_fileType_images:Lat,ra_fileType_txt:zat,ra_fileType_video:Fat,"ra_fileType_video,":"视频",ra_filter_customs:Bat,ra_filter_customs_without:Wat,ra_filter_func:Hat,ra_filter_id:Uat,ra_filter_name:Vat,ra_filter_role:qat,ra_filter_room:Gat,ra_filter_type:Xat,"ra_import data from %s file":"从 %s 文件导入数据",ra_invalidConfig:Jat,ra_lastChange:Yat,ra_locally:Kat,ra_month_Apr:Zat,ra_month_Aug:Qat,ra_month_Dec:eit,ra_month_Feb:tit,ra_month_Jan:rit,ra_month_Jul:nit,ra_month_Jun:oit,ra_month_Mai:ait,ra_month_Mar:iit,ra_month_Nov:sit,ra_month_Oct:lit,ra_month_Sep:cit,ra_months_Apr:dit,ra_months_Aug:uit,ra_months_Dec:pit,ra_months_Feb:hit,ra_months_Jan:fit,ra_months_Jul:mit,ra_months_Jun:git,ra_months_Mai:vit,ra_months_Mar:yit,ra_months_Nov:_it,ra_months_Oct:bit,ra_months_Sep:wit,ra_none:xit,ra_object_changed_by:Sit,ra_object_changed_by_user:Cit,ra_otherConfig:$it,ra_qualityCode:kit,ra_repeat:Eit,ra_select_folder_hint:Tit,ra_state_changed_by:Oit,ra_state_changed_from:Dit,ra_timestamp:Ait,ra_tooltip_ack:Iit,ra_tooltip_comment:Mit,ra_tooltip_copyState:Pit,ra_tooltip_customConfig:Nit,ra_tooltip_deleteObject:Rit,ra_tooltip_editObject:jit,ra_tooltip_editState:Lit,ra_tooltip_from:zit,ra_tooltip_lc:Fit,ra_tooltip_quality:Bit,ra_tooltip_ts:Wit,ra_tooltip_user:Hit,ra_tooltip_value:Uit,"ra_use seconds":"用秒",ra_val:Vit,"ra_via internet":"通过互联网",ra_warning_every_minute:qit,ra_warning_every_second:Git,sc_cron:Xit,sc_date:Jit,sc_dates:Yit,sc_dow:Kit,sc_dows:Zit,sc_every:Qit,sc_everyN_dates:est,sc_everyN_dow:tst,sc_everyN_dows:rst,sc_everyN_hours:nst,sc_everyN_minutes:ost,sc_everyN_months:ast,sc_everyN_seconds:ist,sc_every_dates:sst,sc_every_dow:lst,sc_every_dows:cst,sc_every_hours:dst,sc_every_minutes:ust,sc_every_months:pst,sc_every_seconds:hst,sc_from:fst,sc_hours:mst,sc_interval:gst,sc_intervalBetween:vst,sc_invalid_cron:yst,sc_minutes:_st,sc_months:bst,sc_once:wst,sc_period:xst,sc_seconds:Sst,sc_simple:Cst,sc_specific:$st,sc_specific_dates:kst,sc_specific_dow:Est,sc_specific_dows:Tst,sc_specific_hours:Ost,sc_specific_minutes:Dst,sc_specific_months:Ast,sc_specific_seconds:Ist,sc_time:Mst,sc_to:Pst,sc_wizard:Nst,sch_all:Rst,sch_astroDay:jst,sch_astroNight:Lst,sch_astro_dawn:zst,sch_astro_dusk:Fst,sch_astro_goldenHour:Bst,sch_astro_goldenHourEnd:Wst,sch_astro_nadir:Hst,sch_astro_nauticalDawn:Ust,sch_astro_nauticalDusk:Vst,sch_astro_night:qst,sch_astro_nightEnd:Gst,sch_astro_solarNoon:Xst,sch_astro_sunrise:Jst,sch_astro_sunriseEnd:Yst,sch_astro_sunset:Kst,sch_astro_sunsetStart:Zst,sch_at:Qst,sch_desc_atTime:elt,sch_desc_everyDay:tlt,sch_desc_everyHour:rlt,sch_desc_everyMinute:nlt,sch_desc_everyMonth:olt,sch_desc_everyNDay:alt,sch_desc_everyNHours:ilt,sch_desc_everyNMinutes:slt,sch_desc_everyNMonths:llt,sch_desc_everyNWeeks:clt,sch_desc_everyNYears:dlt,sch_desc_everyWeek:ult,sch_desc_everyYear:plt,sch_desc_intervalFromTo:hlt,sch_desc_never:flt,sch_desc_onDate:mlt,sch_desc_onDates:glt,sch_desc_onEveryDate:vlt,sch_desc_onMonth:ylt,sch_desc_onMonths:_lt,sch_desc_onWeekday:blt,sch_desc_onWeekdays:wlt,sch_desc_onWeekends:xlt,sch_desc_onWorkdays:Slt,sch_desc_onceInPast:Clt,sch_desc_once_on:$lt,sch_desc_validFrom:klt,sch_desc_validFromTo:Elt,sch_desc_validTo:Tlt,sch_every:Olt,sch_exactTime:Dlt,sch_from:Alt,sch_fromTo:Ilt,sch_intervalTime:Mlt,sch_invert:Plt,sch_no_one:Nlt,sch_on:Rlt,sch_period:jlt,sch_periodDaily:Llt,sch_periodDates:zlt,sch_periodDay:Flt,sch_periodEvery:Blt,sch_periodEveryDay:Wlt,sch_periodEveryMonth:Hlt,sch_periodEveryWeek:Ult,sch_periodEveryYear:Vlt,sch_periodHours:qlt,sch_periodMinutes:Glt,sch_periodMonth:Xlt,sch_periodMonthly:Jlt,sch_periodOnce:Ylt,sch_periodSpecificMonths:Klt,sch_periodWeek:Zlt,sch_periodWeekdays:Qlt,sch_periodWeekend:ect,sch_periodWeekly:tct,sch_periodWorkdays:rct,sch_periodYear:nct,sch_periodYearly:oct,sch_specificTime:act,sch_time:ict,sch_to:sct,sch_valid:lct,sch_validFrom:cct,sch_validTo:dct,sch_wholeDay:uct,sch_yearEveryMonth:pct},fct={en:twe,de:rke,ru:nDe,pt:oNe,nl:a4e,fr:i8e,it:sHe,es:lXe,pl:cQe,uk:pot,"zh-cn":hct},mct=` html { height: 100%; } @@ -703,7 +703,7 @@ body { background-color: #58c458; } } -`;class ys extends Ph{constructor(r,n){const o=r.Connection||(n==null?void 0:n.Connection)||Oi;if(!window.document.getElementById("generic-app-iobroker-component")){const u=window.document.createElement("style");u.setAttribute("id","generic-app-iobroker-component"),u.innerHTML=mct,window.document.head.appendChild(u)}if(!ys.isWeb()&&window.io&&window.location.port==="3000")try{const u=new window.SocketClient;delete window.io,window.io=u}catch{}super(r);X(this,"socket");X(this,"instance");X(this,"adapterName");X(this,"instanceId");X(this,"newReact");X(this,"encryptedFields");X(this,"sentryDSN");X(this,"alertDialogRendered");X(this,"_secret");X(this,"_systemConfig");X(this,"savedNative");X(this,"common",null);X(this,"sentryStarted",!1);X(this,"sentryInited",!1);X(this,"resizeTimer",null);X(this,"onSystemConfigChanged",(r,n)=>{var o,a;n&&r==="system.config"&&(this.socket.systemLang!==(n==null?void 0:n.common.language)&&(this.socket.systemLang=(n==null?void 0:n.common.language)||"en",P.setLanguage(this.socket.systemLang)),((o=this._systemConfig)==null?void 0:o.expertMode)!==!!((a=n==null?void 0:n.common)!=null&&a.expertMode)?(this._systemConfig=(n==null?void 0:n.common)||{},this.setState({expertMode:this.getExpertMode()})):this._systemConfig=(n==null?void 0:n.common)||{})});X(this,"onReceiveMessage",r=>{if(r!=null&&r.data)if(r.data==="updateTheme"){const n=ue.getThemeName();ue.setThemeName(ue.getThemeName());const o=this.createTheme(n);this.setState({theme:o,themeName:this.getThemeName(o),themeType:this.getThemeType(o)},()=>{this.props.onThemeChange&&this.props.onThemeChange(n),this.onThemeChanged&&this.onThemeChanged(n)})}else r.data==="updateExpertMode"?this.onToggleExpertMode&&this.onToggleExpertMode(this.getExpertMode()):r.data!=="chartReady"&&console.debug(`Received unknown message: "${JSON.stringify(r.data)}". May be it will be processed later`)});X(this,"onResize",()=>{this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.resizeTimer=null,this.setState({width:ys.getWidth()})},200)});Vve();const a=(window.location.search||"").replace(/^\?/,"").replace(/#.*$/,""),i={};a.trim().split("&").filter(u=>u.trim()).forEach(u=>{const f=u.split("=");i[f[0]]=f.length===2?f[1]:!0,i[f[0]]==="true"?i[f[0]]=!0:i[f[0]]==="false"&&(i[f[0]]=!1)}),this.instance=(n==null?void 0:n.instance)??r.instance??(i.instance!==void 0?parseInt(i.instance,10)||0:parseInt(window.location.search.slice(1),10)||0);const s=window.location.pathname.split("/");this.adapterName=(n==null?void 0:n.adapterName)||r.adapterName||window.adapterName||s[s.length-2]||"iot",this.instanceId=`system.adapter.${this.adapterName}.${this.instance}`,this.newReact=i.newReact===!0;const l=Ph.getLocation();l.tab=l.tab||(window._localStorage||window.localStorage).getItem(`${this.adapterName}-adapter`)||"";const d=this.createTheme();this.state=Object.assign(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:d,themeName:this.getThemeName(d),themeType:this.getThemeType(d),bottomButtons:(n&&n.bottomButtons)===!1?!1:(r==null?void 0:r.bottomButtons)!==!1,width:ys.getWidth(),confirmClose:!1,_alert:!1,_alertType:"info",_alertMessage:""});const h=fct;n!=null&&n.translations?Object.keys(n.translations).forEach(u=>{n.translations&&(h[u]=Object.assign(h[u],n.translations[u]||{}))}):r.translations&&Object.keys(r.translations).forEach(u=>{r.translations&&(h[u]=Object.assign(h[u],r.translations[u]||{}))}),P.setTranslations(h),this.savedNative={},this.encryptedFields=r.encryptedFields||(n==null?void 0:n.encryptedFields)||[],this.sentryDSN=n&&n.sentryDSN||r.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.oldAlert=window.alert,window.alert=u=>{if(!this.alertDialogRendered){window.oldAlert(u);return}u&&u.toString().toLowerCase().includes("error")?(console.error(u),this.showAlert(u.toString(),"error")):(console.log(u),this.showAlert(u.toString(),"info"))},this.socket=new o({...(r==null?void 0:r.socket)||(n==null?void 0:n.socket),name:this.adapterName,doNotLoadAllObjects:n==null?void 0:n.doNotLoadAllObjects,onProgress:u=>{u===Ga.CONNECTING?this.setState({connected:!1}):u===Ga.READY?this.setState({connected:!0}):this.setState({connected:!0})},onReady:()=>{P.setLanguage(this.socket.systemLang),this.socket.subscribeObject("system.config",this.onSystemConfigChanged).then(()=>this.getSystemConfig()).then(u=>(this._secret=typeof u<"u"&&u.native&&u.native.secret||"Zgfr56gFe87jJOM",this._systemConfig=(u==null?void 0:u.common)||{},this.socket.getObject(this.instanceId))).then(async u=>{var x,S;let f;const g=u,b=((x=await this.socket.getState(`${this.instanceId}.plugins.sentry.enabled`))==null?void 0:x.val)!==!1&&((S=this._systemConfig)==null?void 0:S.diag)!=="none"&&(g==null?void 0:g.common)&&g.common.name&&g.common.version&&!g.common.disableDataReporting&&window.location.host!=="localhost:3000";!this.sentryStarted&&this.sentryDSN&&b&&(this.sentryStarted=!0,ave({dsn:this.sentryDSN,release:`iobroker.${g.common.name}@${g.common.version}`,integrations:[NH()]}),console.log("Sentry initialized")),!this.sentryInited&&b&&(this.sentryInited=!0,f=this.socket.getObject("system.meta.uuid").then(T=>{T&&T.native&&T.native.uuid&&li().setUser({id:T.native.uuid})})),f=f instanceof Promise?f:Promise.resolve(),f.then(()=>{g?(this.common=g==null?void 0:g.common,this.onPrepareLoad(g.native,g.encryptedNative),this.savedNative=JSON.parse(JSON.stringify(g.native)),this.setState({native:g.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(u=>window.alert(`Cannot settings: ${u}`))},onError:u=>{console.error(u),this.showError(u)}})}static isWeb(){return window.socketUrl!==void 0}showAlert(r,n){n!=="error"&&n!=="warning"&&n!=="info"&&n!=="success"&&(n="info"),this.setState({_alert:!0,_alertType:n,_alertMessage:r})}renderAlertSnackbar(){return this.alertDialogRendered=!0,m.createElement(Ov,{style:this.state._alertType==="error"?{backgroundColor:"#f44336"}:this.state._alertType==="success"?{backgroundColor:"#4caf50"}:void 0,open:this.state._alert,autoHideDuration:6e3,onClose:(r,n)=>n!=="clickaway"&&this.setState({_alert:!1}),message:this.state._alertMessage})}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),super.componentWillUnmount()}static getWidth(){const r={xs:0,sm:600,md:960,lg:1280,xl:1920},n=window.innerWidth;return Object.keys(r).reverse().find(i=>n>=r[i])||"xs"}createTheme(r){return Upe(ue.getThemeName(r))}getThemeName(r){return r.name}getThemeType(r){return r.palette.mode}onThemeChanged(r){}onToggleExpertMode(r){}toggleTheme(r){const n=this.state.themeName;if(r=r||(n==="dark"||n==="blue"||n==="colored"?"light":"dark"),r!==n){ue.setThemeName(r);const o=this.createTheme(r);this.setState({theme:o,themeName:this.getThemeName(o),themeType:this.getThemeType(o)},()=>{this.props.onThemeChange&&this.props.onThemeChange(r||"light"),this.onThemeChanged&&this.onThemeChanged(r||"light")})}}getSystemConfig(){return this.socket.getSystemConfig()}getExpertMode(){var r;return window.sessionStorage.getItem("App.expertMode")==="true"||!!((r=this._systemConfig)!=null&&r.expertMode)}onConnectionReady(){}encrypt(r){let n="";if(this._secret)for(let o=0;o{r[n]&&(r[n]=this.encrypt(r[n]))}),!0}onPrepareLoad(r,n){this.encryptedFields&&this.encryptedFields.forEach(o=>{r[o]&&(r[o]=this.decrypt(r[o]))}),n&&n.forEach(o=>{this.encryptedFields=this.encryptedFields||[],!this.encryptedFields.includes(o)&&this.encryptedFields.push(o),r[o]&&(r[o]=this.decrypt(r[o]))})}async getExtendableInstances(){try{const r=await this.socket.getObjectViewSystem("instance","system.adapter.","system.adapter.香");return Object.values(r).filter(n=>{var o;return!!((o=n==null?void 0:n.common)!=null&&o.webExtendable)})}catch{return[]}}async getIpAddresses(r){var i;const n=await this.socket.getHostByIp(r||((i=this.common)==null?void 0:i.host)||""),o=n.find(s=>s.address==="0.0.0.0");o&&(o.name=`[IPv4] 0.0.0.0 - ${P.t("ra_Listen on all IPs")}`);const a=n.find(s=>s.address==="::");return a&&(a.name=`[IPv4] :: - ${P.t("ra_Listen on all IPs")}`),n}onSave(r){let n;if(this.state.isConfigurationError){this.setState({errorText:this.state.isConfigurationError});return}this.socket.getObject(this.instanceId).then(o=>{n=o||{};for(const a in this.state.native)Object.prototype.hasOwnProperty.call(this.state.native,a)&&(this.state.native[a]===null?n.native[a]=null:this.state.native[a]!==void 0?n.native[a]=JSON.parse(JSON.stringify(this.state.native[a])):delete n.native[a]);if(this.state.common)for(const a in this.state.common)this.state.common[a]===null?n.common[a]=null:this.state.common[a]!==void 0?n.common[a]=JSON.parse(JSON.stringify(this.state.common[a])):delete n.common[a];return this.onPrepareSave(n.native)!==!1?this.socket.setObject(this.instanceId,n):Promise.reject(new Error("Invalid configuration"))}).then(()=>{this.savedNative=n.native,globalThis.changed=!1;try{window.parent.postMessage("nochange","*")}catch{}this.setState({changed:!1}),r&&ys.onClose()}).catch(o=>console.error(`Cannot save configuration: ${o}`))}renderToast(){var r;return this.state.toast?m.createElement(Ov,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:m.createElement("span",{id:"message-id"},this.state.toast),action:[m.createElement(Ie,{key:"close","aria-label":"Close",color:"inherit",className:(r=this.props.classes)==null?void 0:r.close,onClick:()=>this.setState({toast:""}),size:"large"},m.createElement(Ar,null))]}):null}static onClose(){if(typeof window.parent<"u"&&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?m.createElement(eU,{text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}getIsChanged(r){r=r||this.state.native;const n=JSON.stringify(r)!==JSON.stringify(this.savedNative);return globalThis.changed=n,n}onLoadConfig(r){JSON.stringify(r)!==JSON.stringify(this.state.native)&&this.setState({native:r,changed:this.getIsChanged(r)})}setConfigurationError(r){this.state.isConfigurationError!==r&&this.setState({isConfigurationError:r})}renderSaveCloseButtons(){return!this.state.confirmClose&&!this.state.bottomButtons?null:m.createElement(m.Fragment,null,this.state.bottomButtons?m.createElement(Qve,{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:r=>this.onSave(r),onClose:()=>{this.state.changed?this.setState({confirmClose:!0}):ys.onClose()}}):null,this.state.confirmClose?m.createElement(PO,{title:P.t("ra_Please confirm"),text:P.t("ra_Some data are not stored. Discard?"),ok:P.t("ra_Discard"),cancel:P.t("ra_Cancel"),onClose:r=>this.setState({confirmClose:!1},()=>r&&ys.onClose())}):null)}_updateNativeValue(r,n,o){typeof n!="object"&&(n=n.split("."));const a=n.shift()||"";if(!n.length)return o&&typeof o=="object"?JSON.stringify(r[a])!==JSON.stringify(o)?(r[a]=o,!0):!1:r[a]!==o?(r[a]=o,!0):!1;if(r[a]=r[a]||{},typeof r[a]!="object")throw new Error(`attribute ${a} is no object, but ${typeof r[a]}`);return this._updateNativeValue(r[a],n,o)}updateNativeValue(r,n,o){const a=JSON.parse(JSON.stringify(this.state.native));if(this._updateNativeValue(a,r,n)){const i=this.getIsChanged(a);if(i!==this.state.changed)try{window.parent.postMessage(i?"change":"nochange","*")}catch{}this.setState({native:a,changed:i},o)}}showError(r){this.setState({errorText:r})}showToast(r){this.setState({toast:r})}renderHelperDialogs(){return m.createElement(m.Fragment,null,this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar())}render(){return this.state.loaded?m.createElement("div",{className:"App"},this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar()):m.createElement(QH,{themeType:this.state.themeType})}}var Yn={},Bc={},u1,U5;function tU(){if(U5)return u1;U5=1;var t=typeof xs=="object"&&xs&&xs.Object===Object&&xs;return u1=t,u1}var p1,V5;function ci(){if(V5)return p1;V5=1;var t=tU(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return p1=r,p1}var h1,q5;function Rf(){if(q5)return h1;q5=1;var t=ci(),e=t.Symbol;return h1=e,h1}var f1,G5;function gct(){if(G5)return f1;G5=1;var t=Rf(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function a(i){var s=r.call(i,o),l=i[o];try{i[o]=void 0;var d=!0}catch{}var h=n.call(i);return d&&(s?i[o]=l:delete i[o]),h}return f1=a,f1}var m1,X5;function vct(){if(X5)return m1;X5=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return m1=r,m1}var g1,J5;function Jl(){if(J5)return g1;J5=1;var t=Rf(),e=gct(),r=vct(),n="[object Null]",o="[object Undefined]",a=t?t.toStringTag:void 0;function i(s){return s==null?s===void 0?o:n:a&&a in Object(s)?e(s):r(s)}return g1=i,g1}var v1,Y5;function Aa(){if(Y5)return v1;Y5=1;var t=Array.isArray;return v1=t,v1}var y1,K5;function zi(){if(K5)return y1;K5=1;function t(e){return e!=null&&typeof e=="object"}return y1=t,y1}var _1,Z5;function yct(){if(Z5)return _1;Z5=1;var t=Jl(),e=Aa(),r=zi(),n="[object String]";function o(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return _1=o,_1}var b1,Q5;function _ct(){if(Q5)return b1;Q5=1;function t(e){return function(r,n,o){for(var a=-1,i=Object(r),s=o(r),l=s.length;l--;){var d=s[e?l:++a];if(n(i[d],d,i)===!1)break}return r}}return b1=t,b1}var w1,e3;function bct(){if(e3)return w1;e3=1;var t=_ct(),e=t();return w1=e,w1}var x1,t3;function wct(){if(t3)return x1;t3=1;function t(e,r){for(var n=-1,o=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return E1=e,E1}var T1,l3;function Cct(){if(l3)return T1;l3=1;var t=Jl(),e=RO(),r=zi(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",s="[object Error]",l="[object Function]",d="[object Map]",h="[object Number]",u="[object Object]",f="[object RegExp]",g="[object Set]",y="[object String]",b="[object WeakMap]",x="[object ArrayBuffer]",S="[object DataView]",T="[object Float32Array]",E="[object Float64Array]",$="[object Int8Array]",k="[object Int16Array]",O="[object Int32Array]",M="[object Uint8Array]",R="[object Uint8ClampedArray]",j="[object Uint16Array]",I="[object Uint32Array]",z={};z[T]=z[E]=z[$]=z[k]=z[O]=z[M]=z[R]=z[j]=z[I]=!0,z[n]=z[o]=z[x]=z[a]=z[S]=z[i]=z[s]=z[l]=z[d]=z[h]=z[u]=z[f]=z[g]=z[y]=z[b]=!1;function W(L){return r(L)&&e(L.length)&&!!z[t(L)]}return T1=W,T1}var O1,c3;function jO(){if(c3)return O1;c3=1;function t(e){return function(r){return e(r)}}return O1=t,O1}var uh={exports:{}};uh.exports;var d3;function LO(){return d3||(d3=1,function(t,e){var r=tU(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();t.exports=s}(uh,uh.exports)),uh.exports}var D1,u3;function oU(){if(u3)return D1;u3=1;var t=Cct(),e=jO(),r=LO(),n=r&&r.isTypedArray,o=n?e(n):t;return D1=o,D1}var A1,p3;function aU(){if(p3)return A1;p3=1;var t=wct(),e=rU(),r=Aa(),n=NO(),o=nU(),a=oU(),i=Object.prototype,s=i.hasOwnProperty;function l(d,h){var u=r(d),f=!u&&e(d),g=!u&&!f&&n(d),y=!u&&!f&&!g&&a(d),b=u||f||g||y,x=b?t(d.length,String):[],S=x.length;for(var T in d)(h||s.call(d,T))&&!(b&&(T=="length"||g&&(T=="offset"||T=="parent")||y&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||o(T,S)))&&x.push(T);return x}return A1=l,A1}var I1,h3;function zO(){if(h3)return I1;h3=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return I1=e,I1}var M1,f3;function iU(){if(f3)return M1;f3=1;function t(e,r){return function(n){return e(r(n))}}return M1=t,M1}var P1,m3;function $ct(){if(m3)return P1;m3=1;var t=iU(),e=t(Object.keys,Object);return P1=e,P1}var N1,g3;function kct(){if(g3)return N1;g3=1;var t=zO(),e=$ct(),r=Object.prototype,n=r.hasOwnProperty;function o(a){if(!t(a))return e(a);var i=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&i.push(s);return i}return N1=o,N1}var R1,v3;function Nu(){if(v3)return R1;v3=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return R1=t,R1}var j1,y3;function sU(){if(y3)return j1;y3=1;var t=Jl(),e=Nu(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(s){if(!e(s))return!1;var l=t(s);return l==n||l==o||l==r||l==a}return j1=i,j1}var L1,_3;function qy(){if(_3)return L1;_3=1;var t=sU(),e=RO();function r(n){return n!=null&&e(n.length)&&!t(n)}return L1=r,L1}var z1,b3;function jf(){if(b3)return z1;b3=1;var t=aU(),e=kct(),r=qy();function n(o){return r(o)?t(o):e(o)}return z1=n,z1}var F1,w3;function lU(){if(w3)return F1;w3=1;var t=bct(),e=jf();function r(n,o){return n&&t(n,o,e)}return F1=r,F1}var B1,x3;function cU(){if(x3)return B1;x3=1;function t(e){return e}return B1=t,B1}var W1,S3;function Ect(){if(S3)return W1;S3=1;var t=cU();function e(r){return typeof r=="function"?r:t}return W1=e,W1}var H1,C3;function FO(){if(C3)return H1;C3=1;var t=lU(),e=Ect();function r(n,o){return n&&t(n,e(o))}return H1=r,H1}var U1,$3;function BO(){if($3)return U1;$3=1;var t=iU(),e=t(Object.getPrototypeOf,Object);return U1=e,U1}var V1,k3;function Tct(){if(k3)return V1;k3=1;var t=Jl(),e=BO(),r=zi(),n="[object Object]",o=Function.prototype,a=Object.prototype,i=o.toString,s=a.hasOwnProperty,l=i.call(Object);function d(h){if(!r(h)||t(h)!=n)return!1;var u=e(h);if(u===null)return!0;var f=s.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&i.call(f)==l}return V1=d,V1}var q1,E3;function dU(){if(E3)return q1;E3=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,a=Array(o);++n-1}return Z1=e,Z1}var Q1,P3;function Mct(){if(P3)return Q1;P3=1;var t=Gy();function e(r,n){var o=this.__data__,a=t(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return Q1=e,Q1}var ew,N3;function Xy(){if(N3)return ew;N3=1;var t=Oct(),e=Dct(),r=Act(),n=Ict(),o=Mct();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++sg))return!1;var b=u.get(i),x=u.get(s);if(b&&x)return b==s&&x==i;var S=-1,T=!0,E=l&o?new t:void 0;for(u.set(i,s),u.set(s,i);++S0&&arguments[0]!==void 0?arguments[0]:[],f=[];return(0,s.default)(u,function(g){Array.isArray(g)?h(g).map(function(y){return f.push(y)}):(0,a.default)(g)?(0,n.default)(g,function(y,b){y===!0&&f.push(b),f.push(b+"-"+y)}):(0,e.default)(g)&&f.push(g)}),f};return Bc.default=d,Bc}var Wc={},Ex,c4;function Ldt(){if(c4)return Ex;c4=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],h=l.default&&(0,n.default)(l.default)||{};return d.map(function(u){var f=l[u];return f&&(0,e.default)(f,function(g,y){h[y]||(h[y]={}),h[y]=o({},h[y],f[y])}),u}),h};return Wc.default=i,Wc}var Hc={},B4;function dut(){if(B4)return Hc;B4=1,Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.autoprefix=void 0;var t=FO(),e=n(t),r=Object.assign||function(i){for(var s=1;s1&&arguments[1]!==void 0?arguments[1]:"span";return function(u){i(f,u);function f(){var g,y,b,x;o(this,f);for(var S=arguments.length,T=Array(S),E=0;E1&&arguments[1]!==void 0?arguments[1]:"span";return function(u){i(f,u);function f(){var g,y,b,x;o(this,f);for(var S=arguments.length,T=Array(S),E=0;E1&&arguments[1]!==void 0?arguments[1]:!0;o[s]=l};return r===0&&a("first-child"),r===n-1&&a("last-child"),(r===0||r%2===0)&&a("even"),Math.abs(r%2)===1&&a("odd"),a("nth-child",r),o};return Eg.default=t,Eg}var V4;function fut(){if(V4)return Yn;V4=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.ReactCSS=Yn.loop=Yn.handleActive=Yn.handleHover=Yn.hover=void 0;var t=jdt(),e=f(t),r=cut(),n=f(r),o=dut(),a=f(o),i=uut(),s=f(i),l=put(),d=f(l),h=hut(),u=f(h);function f(y){return y&&y.__esModule?y:{default:y}}Yn.hover=s.default,Yn.handleHover=s.default,Yn.handleActive=d.default,Yn.loop=u.default;var g=Yn.ReactCSS=function(b){for(var x=arguments.length,S=Array(x>1?x-1:0),T=1;Ts?f=1:f=Math.round(u*100/s)/100,r.a!==f)return{h:r.h,s:r.s,l:r.l,a:f,source:"rgb"}}else{var g=void 0;if(h<0?g=0:h>i?g=1:g=Math.round(h*100/i)/100,o!==g)return{h:r.h,s:r.s,l:r.l,a:g,source:"rgb"}}return null},nS={},gut=function(e,r,n,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=n*2,a.height=n*2;var i=a.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,a.width,a.height),i.fillStyle=r,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),a.toDataURL()):null},vut=function(e,r,n,o){var a=e+"-"+r+"-"+n+(o?"-server":"");if(nS[a])return nS[a];var i=gut(e,r,n,o);return nS[a]=i,i},q4=Object.assign||function(t){for(var e=1;e{var o,a;n&&r==="system.config"&&(this.socket.systemLang!==(n==null?void 0:n.common.language)&&(this.socket.systemLang=(n==null?void 0:n.common.language)||"en",P.setLanguage(this.socket.systemLang)),((o=this._systemConfig)==null?void 0:o.expertMode)!==!!((a=n==null?void 0:n.common)!=null&&a.expertMode)?(this._systemConfig=(n==null?void 0:n.common)||{},this.setState({expertMode:this.getExpertMode()})):this._systemConfig=(n==null?void 0:n.common)||{})});X(this,"onReceiveMessage",r=>{if(r!=null&&r.data)if(r.data==="updateTheme"){const n=ue.getThemeName();ue.setThemeName(ue.getThemeName());const o=this.createTheme(n);this.setState({theme:o,themeName:this.getThemeName(o),themeType:this.getThemeType(o)},()=>{this.props.onThemeChange&&this.props.onThemeChange(n),this.onThemeChanged&&this.onThemeChanged(n)})}else r.data==="updateExpertMode"?this.onToggleExpertMode&&this.onToggleExpertMode(this.getExpertMode()):r.data!=="chartReady"&&console.debug(`Received unknown message: "${JSON.stringify(r.data)}". May be it will be processed later`)});X(this,"onResize",()=>{this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.resizeTimer=null,this.setState({width:ys.getWidth()})},200)});Vve();const a=(window.location.search||"").replace(/^\?/,"").replace(/#.*$/,""),i={};a.trim().split("&").filter(u=>u.trim()).forEach(u=>{const f=u.split("=");i[f[0]]=f.length===2?f[1]:!0,i[f[0]]==="true"?i[f[0]]=!0:i[f[0]]==="false"&&(i[f[0]]=!1)}),this.instance=(n==null?void 0:n.instance)??r.instance??(i.instance!==void 0?parseInt(i.instance,10)||0:parseInt(window.location.search.slice(1),10)||0);const s=window.location.pathname.split("/");this.adapterName=(n==null?void 0:n.adapterName)||r.adapterName||window.adapterName||s[s.length-2]||"iot",this.instanceId=`system.adapter.${this.adapterName}.${this.instance}`,this.newReact=i.newReact===!0;const l=Ph.getLocation();l.tab=l.tab||(window._localStorage||window.localStorage).getItem(`${this.adapterName}-adapter`)||"";const d=this.createTheme();this.state=Object.assign(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:d,themeName:this.getThemeName(d),themeType:this.getThemeType(d),bottomButtons:(n&&n.bottomButtons)===!1?!1:(r==null?void 0:r.bottomButtons)!==!1,width:ys.getWidth(),confirmClose:!1,_alert:!1,_alertType:"info",_alertMessage:""});const h=fct;n!=null&&n.translations?Object.keys(n.translations).forEach(u=>{n.translations&&(h[u]=Object.assign(h[u],n.translations[u]||{}))}):r.translations&&Object.keys(r.translations).forEach(u=>{r.translations&&(h[u]=Object.assign(h[u],r.translations[u]||{}))}),P.setTranslations(h),this.savedNative={},this.encryptedFields=r.encryptedFields||(n==null?void 0:n.encryptedFields)||[],this.sentryDSN=n&&n.sentryDSN||r.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.oldAlert=window.alert,window.alert=u=>{if(!this.alertDialogRendered){window.oldAlert(u);return}u&&u.toString().toLowerCase().includes("error")?(console.error(u),this.showAlert(u.toString(),"error")):(console.log(u),this.showAlert(u.toString(),"info"))},this.socket=new o({...(r==null?void 0:r.socket)||(n==null?void 0:n.socket),name:this.adapterName,doNotLoadAllObjects:n==null?void 0:n.doNotLoadAllObjects,onProgress:u=>{u===Ga.CONNECTING?this.setState({connected:!1}):u===Ga.READY?this.setState({connected:!0}):this.setState({connected:!0})},onReady:()=>{P.setLanguage(this.socket.systemLang),this.socket.subscribeObject("system.config",this.onSystemConfigChanged).then(()=>this.getSystemConfig()).then(u=>(this._secret=typeof u<"u"&&u.native&&u.native.secret||"Zgfr56gFe87jJOM",this._systemConfig=(u==null?void 0:u.common)||{},this.socket.getObject(this.instanceId))).then(async u=>{var x,S;let f;const g=u,b=((x=await this.socket.getState(`${this.instanceId}.plugins.sentry.enabled`))==null?void 0:x.val)!==!1&&((S=this._systemConfig)==null?void 0:S.diag)!=="none"&&(g==null?void 0:g.common)&&g.common.name&&g.common.version&&!g.common.disableDataReporting&&window.location.host!=="localhost:3000";!this.sentryStarted&&this.sentryDSN&&b&&(this.sentryStarted=!0,ave({dsn:this.sentryDSN,release:`iobroker.${g.common.name}@${g.common.version}`,integrations:[NH()]}),console.log("Sentry initialized")),!this.sentryInited&&b&&(this.sentryInited=!0,f=this.socket.getObject("system.meta.uuid").then(T=>{T&&T.native&&T.native.uuid&&li().setUser({id:T.native.uuid})})),f=f instanceof Promise?f:Promise.resolve(),f.then(()=>{g?(this.common=g==null?void 0:g.common,this.onPrepareLoad(g.native,g.encryptedNative),this.savedNative=JSON.parse(JSON.stringify(g.native)),this.setState({native:g.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(u=>window.alert(`Cannot settings: ${u}`))},onError:u=>{console.error(u),this.showError(u)}})}static isWeb(){return window.socketUrl!==void 0}showAlert(r,n){n!=="error"&&n!=="warning"&&n!=="info"&&n!=="success"&&(n="info"),this.setState({_alert:!0,_alertType:n,_alertMessage:r})}renderAlertSnackbar(){return this.alertDialogRendered=!0,m.createElement(Ov,{style:this.state._alertType==="error"?{backgroundColor:"#f44336"}:this.state._alertType==="success"?{backgroundColor:"#4caf50"}:void 0,open:this.state._alert,autoHideDuration:6e3,onClose:(r,n)=>n!=="clickaway"&&this.setState({_alert:!1}),message:this.state._alertMessage})}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),super.componentWillUnmount()}static getWidth(){const r={xs:0,sm:600,md:960,lg:1280,xl:1920},n=window.innerWidth;return Object.keys(r).reverse().find(i=>n>=r[i])||"xs"}createTheme(r){return Upe(ue.getThemeName(r))}getThemeName(r){return r.name}getThemeType(r){return r.palette.mode}onThemeChanged(r){}onToggleExpertMode(r){}toggleTheme(r){const n=this.state.themeName;if(r=r||(n==="dark"||n==="blue"||n==="colored"?"light":"dark"),r!==n){ue.setThemeName(r);const o=this.createTheme(r);this.setState({theme:o,themeName:this.getThemeName(o),themeType:this.getThemeType(o)},()=>{this.props.onThemeChange&&this.props.onThemeChange(r||"light"),this.onThemeChanged&&this.onThemeChanged(r||"light")})}}getSystemConfig(){return this.socket.getSystemConfig()}getExpertMode(){var r;return window.sessionStorage.getItem("App.expertMode")==="true"||!!((r=this._systemConfig)!=null&&r.expertMode)}onConnectionReady(){}encrypt(r){let n="";if(this._secret)for(let o=0;o{r[n]&&(r[n]=this.encrypt(r[n]))}),!0}onPrepareLoad(r,n){this.encryptedFields&&this.encryptedFields.forEach(o=>{r[o]&&(r[o]=this.decrypt(r[o]))}),n&&n.forEach(o=>{this.encryptedFields=this.encryptedFields||[],!this.encryptedFields.includes(o)&&this.encryptedFields.push(o),r[o]&&(r[o]=this.decrypt(r[o]))})}async getExtendableInstances(){try{const r=await this.socket.getObjectViewSystem("instance","system.adapter.","system.adapter.香");return Object.values(r).filter(n=>{var o;return!!((o=n==null?void 0:n.common)!=null&&o.webExtendable)})}catch{return[]}}async getIpAddresses(r){var i;const n=await this.socket.getHostByIp(r||((i=this.common)==null?void 0:i.host)||""),o=n.find(s=>s.address==="0.0.0.0");o&&(o.name=`[IPv4] 0.0.0.0 - ${P.t("ra_Listen on all IPs")}`);const a=n.find(s=>s.address==="::");return a&&(a.name=`[IPv4] :: - ${P.t("ra_Listen on all IPs")}`),n}onSave(r){let n;if(this.state.isConfigurationError){this.setState({errorText:this.state.isConfigurationError});return}this.socket.getObject(this.instanceId).then(o=>{n=o||{};for(const a in this.state.native)Object.prototype.hasOwnProperty.call(this.state.native,a)&&(this.state.native[a]===null?n.native[a]=null:this.state.native[a]!==void 0?n.native[a]=JSON.parse(JSON.stringify(this.state.native[a])):delete n.native[a]);if(this.state.common)for(const a in this.state.common)this.state.common[a]===null?n.common[a]=null:this.state.common[a]!==void 0?n.common[a]=JSON.parse(JSON.stringify(this.state.common[a])):delete n.common[a];return this.onPrepareSave(n.native)!==!1?this.socket.setObject(this.instanceId,n):Promise.reject(new Error("Invalid configuration"))}).then(()=>{this.savedNative=n.native,globalThis.changed=!1;try{window.parent.postMessage("nochange","*")}catch{}this.setState({changed:!1}),r&&ys.onClose()}).catch(o=>console.error(`Cannot save configuration: ${o}`))}renderToast(){var r;return this.state.toast?m.createElement(Ov,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:m.createElement("span",{id:"message-id"},this.state.toast),action:[m.createElement(Ie,{key:"close","aria-label":"Close",color:"inherit",className:(r=this.props.classes)==null?void 0:r.close,onClick:()=>this.setState({toast:""}),size:"large"},m.createElement(Ar,null))]}):null}static onClose(){if(typeof window.parent<"u"&&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?m.createElement(eU,{text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}getIsChanged(r){r=r||this.state.native;const n=JSON.stringify(r)!==JSON.stringify(this.savedNative);return globalThis.changed=n,n}onLoadConfig(r){JSON.stringify(r)!==JSON.stringify(this.state.native)&&this.setState({native:r,changed:this.getIsChanged(r)})}setConfigurationError(r){this.state.isConfigurationError!==r&&this.setState({isConfigurationError:r})}renderSaveCloseButtons(){return!this.state.confirmClose&&!this.state.bottomButtons?null:m.createElement(m.Fragment,null,this.state.bottomButtons?m.createElement(Qve,{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:r=>this.onSave(r),onClose:()=>{this.state.changed?this.setState({confirmClose:!0}):ys.onClose()},error:!!this.state.isConfigurationError}):null,this.state.confirmClose?m.createElement(PO,{title:P.t("ra_Please confirm"),text:P.t("ra_Some data are not stored. Discard?"),ok:P.t("ra_Discard"),cancel:P.t("ra_Cancel"),onClose:r=>this.setState({confirmClose:!1},()=>r&&ys.onClose())}):null)}_updateNativeValue(r,n,o){typeof n!="object"&&(n=n.split("."));const a=n.shift()||"";if(!n.length)return o&&typeof o=="object"?JSON.stringify(r[a])!==JSON.stringify(o)?(r[a]=o,!0):!1:r[a]!==o?(r[a]=o,!0):!1;if(r[a]=r[a]||{},typeof r[a]!="object")throw new Error(`attribute ${a} is no object, but ${typeof r[a]}`);return this._updateNativeValue(r[a],n,o)}updateNativeValue(r,n,o){const a=JSON.parse(JSON.stringify(this.state.native));if(this._updateNativeValue(a,r,n)){const i=this.getIsChanged(a);if(i!==this.state.changed)try{window.parent.postMessage(i?"change":"nochange","*")}catch{}this.setState({native:a,changed:i},o)}}showError(r){this.setState({errorText:r})}showToast(r){this.setState({toast:r})}renderHelperDialogs(){return m.createElement(m.Fragment,null,this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar())}render(){return this.state.loaded?m.createElement("div",{className:"App"},this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar()):m.createElement(QH,{themeType:this.state.themeType})}}var Yn={},Bc={},u1,U5;function tU(){if(U5)return u1;U5=1;var t=typeof xs=="object"&&xs&&xs.Object===Object&&xs;return u1=t,u1}var p1,V5;function ci(){if(V5)return p1;V5=1;var t=tU(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return p1=r,p1}var h1,q5;function Rf(){if(q5)return h1;q5=1;var t=ci(),e=t.Symbol;return h1=e,h1}var f1,G5;function gct(){if(G5)return f1;G5=1;var t=Rf(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function a(i){var s=r.call(i,o),l=i[o];try{i[o]=void 0;var d=!0}catch{}var h=n.call(i);return d&&(s?i[o]=l:delete i[o]),h}return f1=a,f1}var m1,X5;function vct(){if(X5)return m1;X5=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return m1=r,m1}var g1,J5;function Jl(){if(J5)return g1;J5=1;var t=Rf(),e=gct(),r=vct(),n="[object Null]",o="[object Undefined]",a=t?t.toStringTag:void 0;function i(s){return s==null?s===void 0?o:n:a&&a in Object(s)?e(s):r(s)}return g1=i,g1}var v1,Y5;function Aa(){if(Y5)return v1;Y5=1;var t=Array.isArray;return v1=t,v1}var y1,K5;function zi(){if(K5)return y1;K5=1;function t(e){return e!=null&&typeof e=="object"}return y1=t,y1}var _1,Z5;function yct(){if(Z5)return _1;Z5=1;var t=Jl(),e=Aa(),r=zi(),n="[object String]";function o(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return _1=o,_1}var b1,Q5;function _ct(){if(Q5)return b1;Q5=1;function t(e){return function(r,n,o){for(var a=-1,i=Object(r),s=o(r),l=s.length;l--;){var d=s[e?l:++a];if(n(i[d],d,i)===!1)break}return r}}return b1=t,b1}var w1,e3;function bct(){if(e3)return w1;e3=1;var t=_ct(),e=t();return w1=e,w1}var x1,t3;function wct(){if(t3)return x1;t3=1;function t(e,r){for(var n=-1,o=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return E1=e,E1}var T1,l3;function Cct(){if(l3)return T1;l3=1;var t=Jl(),e=RO(),r=zi(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",s="[object Error]",l="[object Function]",d="[object Map]",h="[object Number]",u="[object Object]",f="[object RegExp]",g="[object Set]",y="[object String]",b="[object WeakMap]",x="[object ArrayBuffer]",S="[object DataView]",T="[object Float32Array]",E="[object Float64Array]",$="[object Int8Array]",k="[object Int16Array]",O="[object Int32Array]",M="[object Uint8Array]",R="[object Uint8ClampedArray]",j="[object Uint16Array]",I="[object Uint32Array]",z={};z[T]=z[E]=z[$]=z[k]=z[O]=z[M]=z[R]=z[j]=z[I]=!0,z[n]=z[o]=z[x]=z[a]=z[S]=z[i]=z[s]=z[l]=z[d]=z[h]=z[u]=z[f]=z[g]=z[y]=z[b]=!1;function W(L){return r(L)&&e(L.length)&&!!z[t(L)]}return T1=W,T1}var O1,c3;function jO(){if(c3)return O1;c3=1;function t(e){return function(r){return e(r)}}return O1=t,O1}var uh={exports:{}};uh.exports;var d3;function LO(){return d3||(d3=1,function(t,e){var r=tU(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();t.exports=s}(uh,uh.exports)),uh.exports}var D1,u3;function oU(){if(u3)return D1;u3=1;var t=Cct(),e=jO(),r=LO(),n=r&&r.isTypedArray,o=n?e(n):t;return D1=o,D1}var A1,p3;function aU(){if(p3)return A1;p3=1;var t=wct(),e=rU(),r=Aa(),n=NO(),o=nU(),a=oU(),i=Object.prototype,s=i.hasOwnProperty;function l(d,h){var u=r(d),f=!u&&e(d),g=!u&&!f&&n(d),y=!u&&!f&&!g&&a(d),b=u||f||g||y,x=b?t(d.length,String):[],S=x.length;for(var T in d)(h||s.call(d,T))&&!(b&&(T=="length"||g&&(T=="offset"||T=="parent")||y&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||o(T,S)))&&x.push(T);return x}return A1=l,A1}var I1,h3;function zO(){if(h3)return I1;h3=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return I1=e,I1}var M1,f3;function iU(){if(f3)return M1;f3=1;function t(e,r){return function(n){return e(r(n))}}return M1=t,M1}var P1,m3;function $ct(){if(m3)return P1;m3=1;var t=iU(),e=t(Object.keys,Object);return P1=e,P1}var N1,g3;function kct(){if(g3)return N1;g3=1;var t=zO(),e=$ct(),r=Object.prototype,n=r.hasOwnProperty;function o(a){if(!t(a))return e(a);var i=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&i.push(s);return i}return N1=o,N1}var R1,v3;function Nu(){if(v3)return R1;v3=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return R1=t,R1}var j1,y3;function sU(){if(y3)return j1;y3=1;var t=Jl(),e=Nu(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(s){if(!e(s))return!1;var l=t(s);return l==n||l==o||l==r||l==a}return j1=i,j1}var L1,_3;function qy(){if(_3)return L1;_3=1;var t=sU(),e=RO();function r(n){return n!=null&&e(n.length)&&!t(n)}return L1=r,L1}var z1,b3;function jf(){if(b3)return z1;b3=1;var t=aU(),e=kct(),r=qy();function n(o){return r(o)?t(o):e(o)}return z1=n,z1}var F1,w3;function lU(){if(w3)return F1;w3=1;var t=bct(),e=jf();function r(n,o){return n&&t(n,o,e)}return F1=r,F1}var B1,x3;function cU(){if(x3)return B1;x3=1;function t(e){return e}return B1=t,B1}var W1,S3;function Ect(){if(S3)return W1;S3=1;var t=cU();function e(r){return typeof r=="function"?r:t}return W1=e,W1}var H1,C3;function FO(){if(C3)return H1;C3=1;var t=lU(),e=Ect();function r(n,o){return n&&t(n,e(o))}return H1=r,H1}var U1,$3;function BO(){if($3)return U1;$3=1;var t=iU(),e=t(Object.getPrototypeOf,Object);return U1=e,U1}var V1,k3;function Tct(){if(k3)return V1;k3=1;var t=Jl(),e=BO(),r=zi(),n="[object Object]",o=Function.prototype,a=Object.prototype,i=o.toString,s=a.hasOwnProperty,l=i.call(Object);function d(h){if(!r(h)||t(h)!=n)return!1;var u=e(h);if(u===null)return!0;var f=s.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&i.call(f)==l}return V1=d,V1}var q1,E3;function dU(){if(E3)return q1;E3=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,a=Array(o);++n-1}return Z1=e,Z1}var Q1,P3;function Mct(){if(P3)return Q1;P3=1;var t=Gy();function e(r,n){var o=this.__data__,a=t(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return Q1=e,Q1}var ew,N3;function Xy(){if(N3)return ew;N3=1;var t=Oct(),e=Dct(),r=Act(),n=Ict(),o=Mct();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++sg))return!1;var b=u.get(i),x=u.get(s);if(b&&x)return b==s&&x==i;var S=-1,T=!0,E=l&o?new t:void 0;for(u.set(i,s),u.set(s,i);++S0&&arguments[0]!==void 0?arguments[0]:[],f=[];return(0,s.default)(u,function(g){Array.isArray(g)?h(g).map(function(y){return f.push(y)}):(0,a.default)(g)?(0,n.default)(g,function(y,b){y===!0&&f.push(b),f.push(b+"-"+y)}):(0,e.default)(g)&&f.push(g)}),f};return Bc.default=d,Bc}var Wc={},Ex,c4;function Ldt(){if(c4)return Ex;c4=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],h=l.default&&(0,n.default)(l.default)||{};return d.map(function(u){var f=l[u];return f&&(0,e.default)(f,function(g,y){h[y]||(h[y]={}),h[y]=o({},h[y],f[y])}),u}),h};return Wc.default=i,Wc}var Hc={},B4;function dut(){if(B4)return Hc;B4=1,Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.autoprefix=void 0;var t=FO(),e=n(t),r=Object.assign||function(i){for(var s=1;s1&&arguments[1]!==void 0?arguments[1]:"span";return function(u){i(f,u);function f(){var g,y,b,x;o(this,f);for(var S=arguments.length,T=Array(S),E=0;E1&&arguments[1]!==void 0?arguments[1]:"span";return function(u){i(f,u);function f(){var g,y,b,x;o(this,f);for(var S=arguments.length,T=Array(S),E=0;E1&&arguments[1]!==void 0?arguments[1]:!0;o[s]=l};return r===0&&a("first-child"),r===n-1&&a("last-child"),(r===0||r%2===0)&&a("even"),Math.abs(r%2)===1&&a("odd"),a("nth-child",r),o};return Eg.default=t,Eg}var V4;function fut(){if(V4)return Yn;V4=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.ReactCSS=Yn.loop=Yn.handleActive=Yn.handleHover=Yn.hover=void 0;var t=jdt(),e=f(t),r=cut(),n=f(r),o=dut(),a=f(o),i=uut(),s=f(i),l=put(),d=f(l),h=hut(),u=f(h);function f(y){return y&&y.__esModule?y:{default:y}}Yn.hover=s.default,Yn.handleHover=s.default,Yn.handleActive=d.default,Yn.loop=u.default;var g=Yn.ReactCSS=function(b){for(var x=arguments.length,S=Array(x>1?x-1:0),T=1;Ts?f=1:f=Math.round(u*100/s)/100,r.a!==f)return{h:r.h,s:r.s,l:r.l,a:f,source:"rgb"}}else{var g=void 0;if(h<0?g=0:h>i?g=1:g=Math.round(h*100/i)/100,o!==g)return{h:r.h,s:r.s,l:r.l,a:g,source:"rgb"}}return null},nS={},gut=function(e,r,n,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=n*2,a.height=n*2;var i=a.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,a.width,a.height),i.fillStyle=r,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),a.toDataURL()):null},vut=function(e,r,n,o){var a=e+"-"+r+"-"+n+(o?"-server":"");if(nS[a])return nS[a];var i=gut(e,r,n,o);return nS[a]=i,i},q4=Object.assign||function(t){for(var e=1;e-1},Aut=function(e){return Number(String(e).replace(/%/g,""))},Iut=1,Lt=function(t){kut(e,t);function e(r){Cut(this,e);var n=$ut(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(o){n.setUpdatedValue(o.target.value,o)},n.handleKeyDown=function(o){var a=Aut(o.target.value);if(!isNaN(a)&&Dut(o.keyCode)){var i=n.getArrowOffset(),s=o.keyCode===kU?a+i:a-i;n.setUpdatedValue(s,o)}},n.handleDrag=function(o){if(n.props.dragLabel){var a=Math.round(n.props.value+o.movementX);a>=0&&a<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(a),o)}},n.handleMouseDown=function(o){n.props.dragLabel&&(o.preventDefault(),n.handleDrag(o),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(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+Iut++,n}return xut(e,[{key:"componentDidUpdate",value:function(n,o){this.props.value!==this.state.value&&(n.value!==this.props.value||o.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(n){return Sut({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Eut}},{key:"setUpdatedValue",value:function(n,o){var a=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(a,o),this.setState({value:n})}},{key:"render",value:function(){var n=this,o=kt({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 m.createElement("div",{style:o.wrap},m.createElement("input",{id:this.inputId,style:o.input,ref:function(i){return n.input=i},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?m.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(A.PureComponent||A.Component),Mut=function(e,r,n,o){var a=o.clientWidth,i=o.clientHeight,s=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,l=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,d=s-(o.getBoundingClientRect().left+window.pageXOffset),h=l-(o.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var u=void 0;if(h<0)u=359;else if(h>i)u=0;else{var f=-(h*100/i)+100;u=360*f/100}if(n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var g=void 0;if(d<0)g=0;else if(d>a)g=359;else{var y=d*100/a;g=360*y/100}if(n.h!==g)return{h:g,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},Put=function(){function t(e,r){for(var n=0;n=0,a=!r&&o&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?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 st(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Vft,arguments)},brighten:function(){return this._applyModification(qft,arguments)},darken:function(){return this._applyModification(Gft,arguments)},desaturate:function(){return this._applyModification(Wft,arguments)},saturate:function(){return this._applyModification(Hft,arguments)},greyscale:function(){return this._applyModification(Uft,arguments)},spin:function(){return this._applyModification(Xft,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Kft,arguments)},complement:function(){return this._applyCombination(Jft,arguments)},monochromatic:function(){return this._applyCombination(Zft,arguments)},splitcomplement:function(){return this._applyCombination(Yft,arguments)},triad:function(){return this._applyCombination(pL,[3])},tetrad:function(){return this._applyCombination(pL,[4])}};st.fromRatio=function(t,e){if(Bv(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=hh(t[n]));t=r}return st(t,e)};function jft(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,a=null,i=!1,s=!1;return typeof t=="string"&&(t=nmt(t)),Bv(t)=="object"&&(Si(t.r)&&Si(t.g)&&Si(t.b)?(e=Lft(t.r,t.g,t.b),i=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Si(t.h)&&Si(t.s)&&Si(t.v)?(n=hh(t.s),o=hh(t.v),e=Fft(t.h,n,o),i=!0,s="hsv"):Si(t.h)&&Si(t.s)&&Si(t.l)&&(n=hh(t.s),a=hh(t.l),e=zft(t.h,n,a),i=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=WU(r),{ok:i,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function Lft(t,e,r){return{r:Or(t,255)*255,g:Or(e,255)*255,b:Or(r,255)*255}}function lL(t,e,r){t=Or(t,255),e=Or(e,255),r=Or(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,s=(n+o)/2;if(n==o)a=i=0;else{var l=n-o;switch(i=s>.5?l/(2-n-o):l/(n+o),n){case t:a=(e-r)/l+(e1&&(u-=1),u<1/6?d+(h-d)*6*u:u<1/2?h:u<2/3?d+(h-d)*(2/3-u)*6:d}if(e===0)n=o=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=i(l,s,t+1/3),o=i(l,s,t),a=i(l,s,t-1/3)}return{r:n*255,g:o*255,b:a*255}}function cL(t,e,r){t=Or(t,255),e=Or(e,255),r=Or(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,s=n,l=n-o;if(i=n===0?0:l/n,n==o)a=0;else{switch(n){case t:a=(e-r)/l+(e>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(st(n));return a}function Zft(t,e){e=e||6;for(var r=st(t).toHsv(),n=r.h,o=r.s,a=r.v,i=[],s=1/e;e--;)i.push(st({h:n,s:o,v:a})),a=(a+s)%1;return i}st.mix=function(t,e,r){r=r===0?0:r||50;var n=st(t).toRgb(),o=st(e).toRgb(),a=r/100,i={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return st(i)};st.readability=function(t,e){var r=st(t),n=st(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};st.isReadable=function(t,e,r){var n=st.readability(t,e),o,a;switch(a=!1,o=omt(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};st.mostReadable=function(t,e,r){var n=null,o=0,a,i,s,l;r=r||{},i=r.includeFallbackColors,s=r.level,l=r.size;for(var d=0;do&&(o=a,n=st(e[d]));return st.isReadable(t,n,{level:s,size:l})||!i?n:(r.includeFallbackColors=!1,st.mostReadable(t,["#fff","#000"],r))};var u2=st.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"},Qft=st.hexNames=emt(u2);function emt(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function WU(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Or(t,e){tmt(t)&&(t="100%");var r=rmt(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function a_(t){return Math.min(1,Math.max(0,t))}function vo(t){return parseInt(t,16)}function tmt(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function rmt(t){return typeof t=="string"&&t.indexOf("%")!=-1}function xa(t){return t.length==1?"0"+t:""+t}function hh(t){return t<=1&&(t=t*100+"%"),t}function HU(t){return Math.round(parseFloat(t)*255).toString(16)}function hL(t){return vo(t)/255}var ma=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),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 Si(t){return!!ma.CSS_UNIT.exec(t)}function nmt(t){t=t.replace(Nft,"").replace(Rft,"").toLowerCase();var e=!1;if(u2[t])t=u2[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ma.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=ma.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ma.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=ma.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ma.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=ma.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ma.hex8.exec(t))?{r:vo(r[1]),g:vo(r[2]),b:vo(r[3]),a:hL(r[4]),format:e?"name":"hex8"}:(r=ma.hex6.exec(t))?{r:vo(r[1]),g:vo(r[2]),b:vo(r[3]),format:e?"name":"hex"}:(r=ma.hex4.exec(t))?{r:vo(r[1]+""+r[1]),g:vo(r[2]+""+r[2]),b:vo(r[3]+""+r[3]),a:hL(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=ma.hex3.exec(t))?{r:vo(r[1]+""+r[1]),g:vo(r[2]+""+r[2]),b:vo(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function omt(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var fL=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,o=0;return Pft(r,function(a){if(e[a]&&(n+=1,isNaN(e[a])||(o+=1),a==="s"||a==="l")){var i=/^\d+%$/;i.test(e[a])&&(o+=1)}}),n===o?e:!1},fh=function(e,r){var n=e.hex?st(e.hex):st(e),o=n.toHsl(),a=n.toHsv(),i=n.toRgb(),s=n.toHex();o.s===0&&(o.h=r||0,a.h=r||0);var l=s==="000000"&&i.a===0;return{hsl:o,hex:l?"transparent":"#"+s,rgb:i,hsv:a,oldHue:e.h||r||o.h,source:e.source}},Vs=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&&st(e).isValid()},iD=function(e){if(!e)return"#fff";var r=fh(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},sS=function(e,r){var n=e.replace("°","");return st(r+" ("+n+")")._ok},Bp=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){pmt(o,n);function o(){var a,i,s,l;umt(this,o);for(var d=arguments.length,h=Array(d),u=0;us))return!1;var d=a.get(t),h=a.get(e);if(d&&h)return d==e&&h==t;var u=-1,f=!0,g=r&Cmt?new Wv:void 0;for(a.set(t,e),a.set(e,t);++u=0||Object.prototype.hasOwnProperty.call(i,d)&&(l[d]=i[d]);return l}var a=24;return Og.default=function(i){var s=i.fill,l=s===void 0?"currentColor":s,d=i.width,h=d===void 0?a:d,u=i.height,f=u===void 0?a:u,g=i.style,y=g===void 0?{}:g,b=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:l,width:h,height:f},y)},b),r.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"}))},Og}var Lgt=jgt();const zgt=so(Lgt);var Fgt=function(){function t(e,r){for(var n=0;n1&&(o.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(o.a*100)/100,source:"rgb"},a)):(o.h||o.s||o.l)&&(typeof o.s=="string"&&o.s.includes("%")&&(o.s=o.s.replace("%","")),typeof o.l=="string"&&o.l.includes("%")&&(o.l=o.l.replace("%","")),o.s==1?o.s=.01:o.l==1&&(o.l=.01),n.props.onChange({h:o.h||n.props.hsl.h,s:Number(DL(o.s)?n.props.hsl.s:o.s),l:Number(DL(o.l)?n.props.hsl.l:o.l),source:"hsl"},a))},n.showHighlight=function(o){o.currentTarget.style.background="#eee"},n.hideHighlight=function(o){o.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return Fgt(e,[{key:"render",value:function(){var n=this,o=kt({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),a=void 0;return this.state.view==="hex"?a=m.createElement("div",{style:o.fields,className:"flexbox-fix"},m.createElement("div",{style:o.field},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=m.createElement("div",{style:o.fields,className:"flexbox-fix"},m.createElement("div",{style:o.field},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),m.createElement("div",{style:o.alpha},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=m.createElement("div",{style:o.fields,className:"flexbox-fix"},m.createElement("div",{style:o.field},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),m.createElement("div",{style:o.alpha},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),m.createElement("div",{style:o.wrap,className:"flexbox-fix"},a,m.createElement("div",{style:o.toggle},m.createElement("div",{style:o.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},m.createElement(zgt,{style:o.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.hsl.a!==1&&o.view==="hex"?{view:"rgb"}:null}}]),e}(m.Component);QU.defaultProps={view:"hex"};var IL=function(){var e=kt({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 m.createElement("div",{style:e.picker})},Ugt=function(){var e=kt({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return m.createElement("div",{style:e.picker})},pD=function(e){var r=e.width,n=e.onChange,o=e.disableAlpha,a=e.rgb,i=e.hsl,s=e.hsv,l=e.hex,d=e.renderers,h=e.styles,u=h===void 0?{}:h,f=e.className,g=f===void 0?"":f,y=e.defaultView,b=kt(lo({default:{picker:{width:r,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("+a.r+", "+a.g+", "+a.b+", "+a.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:o});return m.createElement("div",{style:b.picker,className:"chrome-picker "+g},m.createElement("div",{style:b.saturation},m.createElement(o_,{style:b.Saturation,hsl:i,hsv:s,pointer:Ugt,onChange:n})),m.createElement("div",{style:b.body},m.createElement("div",{style:b.controls,className:"flexbox-fix"},m.createElement("div",{style:b.color},m.createElement("div",{style:b.swatch},m.createElement("div",{style:b.active}),m.createElement(Ru,{renderers:d}))),m.createElement("div",{style:b.toggles},m.createElement("div",{style:b.hue},m.createElement(ju,{style:b.Hue,hsl:i,pointer:IL,onChange:n})),m.createElement("div",{style:b.alpha},m.createElement(ZO,{style:b.Alpha,rgb:a,hsl:i,pointer:IL,renderers:d,onChange:n})))),m.createElement(QU,{rgb:a,hsl:i,hex:l,view:y,onChange:n,disableAlpha:o})))};pD.propTypes={width:ye.oneOfType([ye.string,ye.number]),disableAlpha:ye.bool,styles:ye.object,defaultView:ye.oneOf(["hex","rgb","hsl"])};pD.defaultProps={width:225,disableAlpha:!1,styles:{}};const Vgt=co(pD);var qgt=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.active,s=kt({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:iD(r),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:i,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return m.createElement(ec,{style:s.color,color:r,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},m.createElement("div",{style:s.dot}))},Ggt=function(e){var r=e.hex,n=e.rgb,o=e.onChange,a=kt({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},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"}}}),i=function(l,d){l.r||l.g||l.b?o({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},d):o({hex:l.hex,source:"hex"},d)};return m.createElement("div",{style:a.fields,className:"flexbox-fix"},m.createElement("div",{style:a.active}),m.createElement(Lt,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:r,onChange:i}),m.createElement(Lt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:i}),m.createElement(Lt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:i}),m.createElement(Lt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:i}))},hD=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.colors,a=e.hex,i=e.rgb,s=e.styles,l=s===void 0?{}:s,d=e.className,h=d===void 0?"":d,u=kt(lo({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),f=function(y,b){y.hex?Vs(y.hex)&&r({hex:y.hex,source:"hex"},b):r(y,b)};return m.createElement(zf,{style:u.Compact,styles:l},m.createElement("div",{style:u.compact,className:"compact-picker "+h},m.createElement("div",null,tc(o,function(g){return m.createElement(qgt,{key:g,color:g,active:g.toLowerCase()===a,onClick:f,onSwatchHover:n})}),m.createElement("div",{style:u.clear})),m.createElement(Ggt,{hex:a,rgb:i,onChange:f})))};hD.propTypes={colors:ye.arrayOf(ye.string),styles:ye.object};hD.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"],styles:{}};co(hD);var Xgt=function(e){var r=e.hover,n=e.color,o=e.onClick,a=e.onSwatchHover,i={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=kt({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:i}},{hover:r});return m.createElement("div",{style:s.swatch},m.createElement(ec,{color:n,onClick:o,onHover:a,focusStyle:i}))};const Jgt=KO.handleHover(Xgt);var fD=function(e){var r=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,i=e.triangle,s=e.styles,l=s===void 0?{}:s,d=e.className,h=d===void 0?"":d,u=kt(lo({default:{card:{width:r,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)"}}},l),{"hide-triangle":i==="hide","top-left-triangle":i==="top-left","top-right-triangle":i==="top-right","bottom-left-triangle":i==="bottom-left","bottom-right-triangle":i==="bottom-right"}),f=function(y,b){return o({hex:y,source:"hex"},b)};return m.createElement("div",{style:u.card,className:"github-picker "+h},m.createElement("div",{style:u.triangleShadow}),m.createElement("div",{style:u.triangle}),tc(n,function(g){return m.createElement(Jgt,{color:g,key:g,onClick:f,onSwatchHover:a})}))};fD.propTypes={width:ye.oneOfType([ye.string,ye.number]),colors:ye.arrayOf(ye.string),triangle:ye.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:ye.object};fD.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};co(fD);var Ygt=function(e){var r=e.direction,n=kt({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:r==="vertical"});return m.createElement("div",{style:n.picker})},Kgt=Object.assign||function(t){for(var e=1;e.5});return m.createElement("div",{style:n.picker})},tvt=function(){var e=kt({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 m.createElement("div",{style:e.pointer},m.createElement("div",{style:e.left},m.createElement("div",{style:e.leftInside})),m.createElement("div",{style:e.right},m.createElement("div",{style:e.rightInside})))},ML=function(e){var r=e.onClick,n=e.label,o=e.children,a=e.active,i=kt({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:a});return m.createElement("div",{style:i.button,onClick:r},n||o)},rvt=function(e){var r=e.rgb,n=e.currentColor,o=kt({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.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 m.createElement("div",null,m.createElement("div",{style:o.label},"new"),m.createElement("div",{style:o.swatches},m.createElement("div",{style:o.new}),m.createElement("div",{style:o.current})),m.createElement("div",{style:o.label},"current"))},nvt=function(){function t(e,r){for(var n=0;n100&&(h.a=100),h.a/=100,r({h:o.h,s:o.s,l:o.l,a:h.a,source:"rgb"},u))};return m.createElement("div",{style:s.fields,className:"flexbox-fix"},m.createElement("div",{style:s.double},m.createElement(Lt,{style:{input:s.input,label:s.label},label:"hex",value:a.replace("#",""),onChange:l})),m.createElement("div",{style:s.single},m.createElement(Lt,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.single},m.createElement(Lt,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.single},m.createElement(Lt,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.alpha},m.createElement(Lt,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:l,dragLabel:"true",dragMax:"100"})))},lvt=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(i,d)&&(l[d]=i[d]);return l}var a=24;return Dg.default=function(i){var s=i.fill,l=s===void 0?"currentColor":s,d=i.width,h=d===void 0?a:d,u=i.height,f=u===void 0?a:u,g=i.style,y=g===void 0?{}:g,b=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:l,width:h,height:f},y)},b),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},Dg}var hvt=pvt();const fvt=so(hvt);var mvt=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.first,s=e.last,l=e.active,d=kt({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:iD(r),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:i,last:s,active:l,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return m.createElement(ec,{color:r,style:d.color,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},m.createElement("div",{style:d.check},m.createElement(fvt,null)))},gvt=function(e){var r=e.onClick,n=e.onSwatchHover,o=e.group,a=e.active,i=kt({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return m.createElement("div",{style:i.group},tc(o,function(s,l){return m.createElement(mvt,{key:s,color:s,active:s.toLowerCase()===a,first:l===0,last:l===o.length-1,onClick:r,onSwatchHover:n})}))},_D=function(e){var r=e.width,n=e.height,o=e.onChange,a=e.onSwatchHover,i=e.colors,s=e.hex,l=e.styles,d=l===void 0?{}:l,h=e.className,u=h===void 0?"":h,f=kt(lo({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},d)),g=function(b,x){return o({hex:b,source:"hex"},x)};return m.createElement("div",{style:f.picker,className:"swatches-picker "+u},m.createElement(zf,null,m.createElement("div",{style:f.overflow},m.createElement("div",{style:f.body},tc(i,function(y){return m.createElement(gvt,{key:y.toString(),group:y,active:s,onClick:g,onSwatchHover:a})}),m.createElement("div",{style:f.clear})))))};_D.propTypes={width:ye.oneOfType([ye.string,ye.number]),height:ye.oneOfType([ye.string,ye.number]),colors:ye.arrayOf(ye.arrayOf(ye.string)),styles:ye.object};_D.defaultProps={width:320,height:240,colors:[[ud[900],ud[700],ud[500],ud[300],ud[100]],[pd[900],pd[700],pd[500],pd[300],pd[100]],[hd[900],hd[700],hd[500],hd[300],hd[100]],[fd[900],fd[700],fd[500],fd[300],fd[100]],[md[900],md[700],md[500],md[300],md[100]],[gd[900],gd[700],gd[500],gd[300],gd[100]],[vd[900],vd[700],vd[500],vd[300],vd[100]],[yd[900],yd[700],yd[500],yd[300],yd[100]],[_d[900],_d[700],_d[500],_d[300],_d[100]],["#194D33",mh[700],mh[500],mh[300],mh[100]],[bd[900],bd[700],bd[500],bd[300],bd[100]],[wd[900],wd[700],wd[500],wd[300],wd[100]],[xd[900],xd[700],xd[500],xd[300],xd[100]],[Sd[900],Sd[700],Sd[500],Sd[300],Sd[100]],[Cd[900],Cd[700],Cd[500],Cd[300],Cd[100]],[$d[900],$d[700],$d[500],$d[300],$d[100]],[kd[900],kd[700],kd[500],kd[300],kd[100]],[Ed[900],Ed[700],Ed[500],Ed[300],Ed[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};co(_D);var bD=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,i=e.width,s=e.triangle,l=e.styles,d=l===void 0?{}:l,h=e.className,u=h===void 0?"":h,f=kt(lo({default:{card:{width:i,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"}}},d),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),g=function(b,x){Vs(b)&&r({hex:b,source:"hex"},x)};return m.createElement("div",{style:f.card,className:"twitter-picker "+u},m.createElement("div",{style:f.triangleShadow}),m.createElement("div",{style:f.triangle}),m.createElement("div",{style:f.body},tc(a,function(y,b){return m.createElement(ec,{key:b,color:y,hex:y,style:f.swatch,onClick:g,onHover:n,focusStyle:{boxShadow:"0 0 4px "+y}})}),m.createElement("div",{style:f.hash},"#"),m.createElement(Lt,{label:null,style:{input:f.input},value:o.replace("#",""),onChange:g}),m.createElement("div",{style:f.clear})))};bD.propTypes={width:ye.oneOfType([ye.string,ye.number]),triangle:ye.oneOf(["hide","top-left","top-right"]),colors:ye.arrayOf(ye.string),styles:ye.object};bD.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};co(bD);var wD=function(e){var r=kt({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 m.createElement("div",{style:r.picker})};wD.propTypes={hsl:ye.shape({h:ye.number,s:ye.number,l:ye.number,a:ye.number})};wD.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var xD=function(e){var r=kt({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 m.createElement("div",{style:r.picker})};xD.propTypes={hsl:ye.shape({h:ye.number,s:ye.number,l:ye.number,a:ye.number})};xD.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var vvt=function(e){var r=e.onChange,n=e.rgb,o=e.hsl,a=e.hex,i=e.hsv,s=function(g,y){if(g.hex)Vs(g.hex)&&r({hex:g.hex,source:"hex"},y);else if(g.rgb){var b=g.rgb.split(",");sS(g.rgb,"rgb")&&r({r:b[0],g:b[1],b:b[2],a:1,source:"rgb"},y)}else if(g.hsv){var x=g.hsv.split(",");sS(g.hsv,"hsv")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),x[1]==1?x[1]=.01:x[2]==1&&(x[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsv"},y))}else if(g.hsl){var S=g.hsl.split(",");sS(g.hsl,"hsl")&&(S[2]=S[2].replace("%",""),S[1]=S[1].replace("%",""),S[0]=S[0].replace("°",""),u[1]==1?u[1]=.01:u[2]==1&&(u[2]=.01),r({h:Number(S[0]),s:Number(S[1]),v:Number(S[2]),source:"hsl"},y))}},l=kt({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"}}}),d=n.r+", "+n.g+", "+n.b,h=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.l*100)+"%",u=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.v*100)+"%";return m.createElement("div",{style:l.wrap,className:"flexbox-fix"},m.createElement("div",{style:l.fields},m.createElement("div",{style:l.double},m.createElement(Lt,{style:{input:l.input,label:l.label},label:"hex",value:a,onChange:s})),m.createElement("div",{style:l.column},m.createElement("div",{style:l.single},m.createElement(Lt,{style:{input:l.input2,label:l.label2},label:"rgb",value:d,onChange:s})),m.createElement("div",{style:l.single},m.createElement(Lt,{style:{input:l.input2,label:l.label2},label:"hsv",value:u,onChange:s})),m.createElement("div",{style:l.single},m.createElement(Lt,{style:{input:l.input2,label:l.label2},label:"hsl",value:h,onChange:s})))))},SD=function(e){var r=e.width,n=e.onChange,o=e.rgb,a=e.hsl,i=e.hsv,s=e.hex,l=e.header,d=e.styles,h=d===void 0?{}:d,u=e.className,f=u===void 0?"":u,g=kt(lo({default:{picker:{width:r,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("+o.r+", "+o.g+", "+o.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"}}},h));return m.createElement("div",{style:g.picker,className:"google-picker "+f},m.createElement("div",{style:g.head},l),m.createElement("div",{style:g.swatch}),m.createElement("div",{style:g.saturation},m.createElement(o_,{hsl:a,hsv:i,pointer:wD,onChange:n})),m.createElement("div",{style:g.body},m.createElement("div",{style:g.controls,className:"flexbox-fix"},m.createElement("div",{style:g.hue},m.createElement(ju,{style:g.Hue,hsl:a,radius:"4px",pointer:xD,onChange:n}))),m.createElement(vvt,{rgb:o,hsl:a,hex:s,hsv:i,onChange:n})))};SD.propTypes={width:ye.oneOfType([ye.string,ye.number]),styles:ye.object,header:ye.string};SD.defaultProps={width:652,styles:{},header:"Color picker"};co(SD);const ha={color:{width:36,height:14,borderRadius:2},delButton:{marginTop:16},swatch:{mt:"16px",p:"5px",backgroundColor:"background.paper",borderRadius:"1px",boxShadow:"0 0 0 1px rgba(0,0,0,.1)",display:"inline-block",cursor:"pointer",verticalAlign:"middle"},swatchDisabled:{opacity:.5,cursor:"default"},popover:{"& .MuiPaper-root":{textAlign:"right",backgroundColor:"#00000000",boxShadow:"none"}},popoverList:{padding:0},closeButton:t=>({backgroundColor:`${t.palette.background.paper} !important`,borderRadius:"0 0 25% 25%","&:hover":{backgroundColor:`${t.palette.secondary.main} !important`}}),cover:{position:"fixed",top:0,right:0,bottom:0,left:0},textDense:{mt:0,mb:0},picker:t=>({background:`${t.palette.background.paper} !important`}),iconButton:{width:16,height:16},button:{width:32,height:32,minWidth:32,minHeight:32}};class Ai extends A.Component{constructor(r){super(r);X(this,"handleClick",r=>{this.setState({displayColorPicker:!this.state.displayColorPicker,anchorEl:this.state.displayColorPicker?null:r.currentTarget})});X(this,"handleClose",()=>{this.setState({displayColorPicker:!1,anchorEl:null})});X(this,"handleChange",r=>{this.setState({color:r},()=>this.props.onChange&&this.props.onChange(Ai.getColor(r)))});this.state={displayColorPicker:!1,color:this.props.value||this.props.color||"",anchorEl:null}}static getColor(r,n){if(r&&typeof r=="object"){const o=r;if(o.rgb)return n?`#${o.rgb.r.toString(16).padStart(2,"0")}${o.rgb.g.toString(16).padStart(2,"0")}${o.rgb.b.toString(16).padStart(2,"0")}`:`rgba(${o.rgb.r},${o.rgb.g},${o.rgb.b},${o.rgb.a})`;const a=r;return n?`#${a.r.toString(16).padStart(2,"0")}${a.g.toString(16).padStart(2,"0")}${a.b.toString(16).padStart(2,"0")}`:`rgba(${a.r},${a.g},${a.b},${a.a})`}return typeof r=="string"?n?Ai.rgb2hex(r||""):r||"":""}static rgb2hex(r){const n=r.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(n){const o=parseInt(n[1],10).toString(16).padStart(2,"0"),a=parseInt(n[2],10).toString(16).padStart(2,"0"),i=parseInt(n[3],10).toString(16).padStart(2,"0");return(n==null?void 0:n.length)===4?`#${o}${a}${i}`:r}return r}componentDidUpdate(r,n){const o=Ai.getColor(this.props.color||this.props.value||"");o!==n.color&&this.setState({color:o})}renderCustomPalette(){return this.props.customPalette?m.createElement("div",{style:{width:"100%",display:"flex",flexWrap:"wrap"}},this.props.customPalette.map(r=>m.createElement(tt,{style:ha.button,key:r,onClick:()=>{this.handleChange(r),setTimeout(()=>this.handleClose(),300)}},m.createElement("div",{style:{...ha.iconButton,background:r}})))):null}render(){var o;const r={...this.props.style||{}};r.position="relative";const{color:n}=this.state;return m.createElement(Re,{component:"div",style:r,sx:this.props.sx||void 0,className:this.props.className||""},this.props.noInputField?null:m.createElement(Ht,{disabled:this.props.disabled,variant:"standard",id:"ar_color_picker_name",label:this.props.label||this.props.name,value:n||"",margin:"dense",sx:{"&.MuiFormControl-root":ha.textDense,width:n?"calc(100% - 80px)":"calc(100% - 56px)",mr:n?void 0:1},onChange:a=>this.handleChange(a.target.value)}),!this.props.noInputField&&n?m.createElement(Ie,{disabled:this.props.disabled,onClick:()=>this.handleChange(""),size:"small",style:this.props.label||this.props.name?ha.delButton:void 0},m.createElement(Ta,null)):null,m.createElement(Re,{component:"div",onClick:a=>!this.props.disabled&&this.handleClick(a),title:P.t("ra_Select color"),sx:{...ha.swatch,...this.props.disabled?ha.swatchDisabled:void 0,background:n?void 0:"transparent",border:n?void 0:"1px dashed #ccc",boxSizing:"border-box",marginTop:this.props.noInputField||!(this.props.label||this.props.name)?0:void 0}},m.createElement("div",{style:{...ha.color,background:Ai.getColor(n),width:this.props.noInputField?this.props.barWidth||16:this.props.barWidth||36}})),this.state.displayColorPicker&&!this.props.disabled?m.createElement(eu,{sx:{...ha.popover,"&. MuiMenu-list":ha.popoverList},anchorEl:this.state.anchorEl,open:!0,onClose:()=>this.handleClose()},m.createElement(Vgt,{color:this.state.color||void 0,onChangeComplete:a=>this.handleChange(a.rgb),styles:{default:{picker:{backgroundColor:((o=this.props.theme)==null?void 0:o.palette.background.paper)||"#888"}}}}),n&&this.props.noInputField?m.createElement(Ie,{sx:ha.closeButton,onClick:()=>this.handleChange("")},m.createElement(Ta,null)):null,m.createElement(Ie,{sx:ha.closeButton,onClick:()=>this.handleClose()},m.createElement(Ar,null)),this.renderCustomPalette()):null)}}var cS={exports:{}},NL;function di(){return NL||(NL=1,function(t,e){(function(n,o){t.exports=o()})(globalThis,()=>(()=>{var r={949:(i,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CronParser=void 0;var d=l(515),h=function(){function u(f,g,y){g===void 0&&(g=!0),y===void 0&&(y=!1),this.expression=f,this.dayOfWeekStartIndexZero=g,this.monthStartIndexZero=y}return u.prototype.parse=function(){var f,g,y=(f=this.expression)!==null&&f!==void 0?f:"";if(y.startsWith("@")){var b=this.parseSpecial(this.expression);g=this.extractParts(b)}else g=this.extractParts(this.expression);return this.normalize(g),this.validate(g),g},u.prototype.parseSpecial=function(f){var g={"@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 * * * *"},y=g[f];if(!y)throw new Error("Unknown special expression.");return y},u.prototype.extractParts=function(f){if(!this.expression)throw new Error("cron expression is empty");for(var g=f.trim().split(/[ ]+/),y=0;y7)throw new Error("Expression has ".concat(g.length," parts; too many!"));return g},u.prototype.normalize=function(f){var g=this;if(f[3]=f[3].replace("?","*"),f[5]=f[5].replace("?","*"),f[2]=f[2].replace("?","*"),f[0].indexOf("0/")==0&&(f[0]=f[0].replace("0/","*/")),f[1].indexOf("0/")==0&&(f[1]=f[1].replace("0/","*/")),f[2].indexOf("0/")==0&&(f[2]=f[2].replace("0/","*/")),f[3].indexOf("1/")==0&&(f[3]=f[3].replace("1/","*/")),f[4].indexOf("1/")==0&&(f[4]=f[4].replace("1/","*/")),f[6].indexOf("1/")==0&&(f[6]=f[6].replace("1/","*/")),f[5]=f[5].replace(/(^\d)|([^#/\s]\d)/g,function(k){var O=k.replace(/\D/,""),M=O;return g.dayOfWeekStartIndexZero?O=="7"&&(M="0"):M=(parseInt(O)-1).toString(),k.replace(O,M)}),f[5]=="L"&&(f[5]="6"),f[3]=="?"&&(f[3]="*"),f[3].indexOf("W")>-1&&(f[3].indexOf(",")>-1||f[3].indexOf("-")>-1))throw new 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 y={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var b in y)f[5]=f[5].replace(new RegExp(b,"gi"),y[b].toString());f[4]=f[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(k){var O=k.replace(/\D/,""),M=O;return g.monthStartIndexZero&&(M=(parseInt(O)+1).toString()),k.replace(O,M)});var x={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 S in x)f[4]=f[4].replace(new RegExp(S,"gi"),x[S].toString());f[0]=="0"&&(f[0]=""),!/\*|\-|\,|\//.test(f[2])&&(/\*|\//.test(f[1])||/\*|\//.test(f[0]))&&(f[2]+="-".concat(f[2]));for(var T=0;T-1&&!/^\*|\-|\,/.test(f[T])){var E=null;switch(T){case 4:E="12";break;case 5:E="6";break;case 6:E="9999";break;default:E=null;break}if(E!==null){var $=f[T].split("/");f[T]="".concat($[0],"-").concat(E,"/").concat($[1])}}},u.prototype.validate=function(f){this.assertNoInvalidCharacters("DOW",f[5]),this.assertNoInvalidCharacters("DOM",f[3]),this.validateRange(f)},u.prototype.validateRange=function(f){d.default.secondRange(f[0]),d.default.minuteRange(f[1]),d.default.hourRange(f[2]),d.default.dayOfMonthRange(f[3]),d.default.monthRange(f[4],this.monthStartIndexZero),d.default.dayOfWeekRange(f[5],this.dayOfWeekStartIndexZero)},u.prototype.assertNoInvalidCharacters=function(f,g){var y=g.match(/[A-KM-VX-Z]+/gi);if(y&&y.length)throw new Error("".concat(f," part contains invalid values: '").concat(y.toString(),"'"))},u}();s.CronParser=h},333:(i,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ExpressionDescriptor=void 0;var d=l(823),h=l(949),u=function(){function f(g,y){if(this.expression=g,this.options=y,this.expressionParts=new Array(5),!this.options.locale&&f.defaultLocale&&(this.options.locale=f.defaultLocale),!f.locales[this.options.locale]){var b=Object.keys(f.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(b,"'.")),this.options.locale=b}this.i18n=f.locales[this.options.locale],y.use24HourTimeFormat===void 0&&(y.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return f.toString=function(g,y){var b=y===void 0?{}:y,x=b.throwExceptionOnParseError,S=x===void 0?!0:x,T=b.verbose,E=T===void 0?!1:T,$=b.dayOfWeekStartIndexZero,k=$===void 0?!0:$,O=b.monthStartIndexZero,M=O===void 0?!1:O,R=b.use24HourTimeFormat,j=b.locale,I=j===void 0?null:j,z=b.tzOffset,W=z===void 0?0:z,L={throwExceptionOnParseError:S,verbose:E,dayOfWeekStartIndexZero:k,monthStartIndexZero:M,use24HourTimeFormat:R,locale:I,tzOffset:W},F=new f(g,L);return F.getFullDescription()},f.initialize=function(g,y){y===void 0&&(y="en"),f.specialCharacters=["/","-",",","*"],f.defaultLocale=y,g.load(f.locales)},f.prototype.getFullDescription=function(){var g="";try{var y=new h.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=y.parse();var b=this.getTimeOfDayDescription(),x=this.getDayOfMonthDescription(),S=this.getMonthDescription(),T=this.getDayOfWeekDescription(),E=this.getYearDescription();g+=b+x+T+S+E,g=this.transformVerbosity(g,!!this.options.verbose),g=g.charAt(0).toLocaleUpperCase()+g.substr(1)}catch($){if(!this.options.throwExceptionOnParseError)g=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat($)}return g},f.prototype.getTimeOfDayDescription=function(){var g=this.expressionParts[0],y=this.expressionParts[1],b=this.expressionParts[2],x="";if(!d.StringUtilities.containsAny(y,f.specialCharacters)&&!d.StringUtilities.containsAny(b,f.specialCharacters)&&!d.StringUtilities.containsAny(g,f.specialCharacters))x+=this.i18n.atSpace()+this.formatTime(b,y,g);else if(!g&&y.indexOf("-")>-1&&!(y.indexOf(",")>-1)&&!(y.indexOf("/")>-1)&&!d.StringUtilities.containsAny(b,f.specialCharacters)){var S=y.split("-");x+=d.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(b,S[0],""),this.formatTime(b,S[1],""))}else if(!g&&b.indexOf(",")>-1&&b.indexOf("-")==-1&&b.indexOf("/")==-1&&!d.StringUtilities.containsAny(y,f.specialCharacters)){var T=b.split(",");x+=this.i18n.at();for(var E=0;E1){var S=x[x.length-1].index;b=b.substring(0,S)+":59"+b.substring(S+3)}}return b},f.prototype.getDayOfWeekDescription=function(){var g=this,y=this.i18n.daysOfTheWeek(),b=null;return this.expressionParts[5]=="*"?b="":b=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(x,S){var T=x;x.indexOf("#")>-1?T=x.substring(0,x.indexOf("#")):x.indexOf("L")>-1&&(T=T.replace("L",""));var E=parseInt(T);if(g.options.tzOffset){var $=g.expressionParts[2],k=parseInt($)+(g.options.tzOffset?g.options.tzOffset:0);k>=24?E++:k<0&&E--,E>6?E=0:E<0&&(E=6)}var O=g.i18n.daysOfTheWeekInCase?g.i18n.daysOfTheWeekInCase(S)[E]:y[E];if(x.indexOf("#")>-1){var M=null,R=x.substring(x.indexOf("#")+1),j=x.substring(0,x.indexOf("#"));switch(R){case"1":M=g.i18n.first(j);break;case"2":M=g.i18n.second(j);break;case"3":M=g.i18n.third(j);break;case"4":M=g.i18n.fourth(j);break;case"5":M=g.i18n.fifth(j);break}O=M+" "+O}return O},function(x){return parseInt(x)==1?"":d.StringUtilities.format(g.i18n.commaEveryX0DaysOfTheWeek(x),x)},function(x){var S=x.substring(0,x.indexOf("-")),T=g.expressionParts[3]!="*";return T?g.i18n.commaAndX0ThroughX1(S):g.i18n.commaX0ThroughX1(S)},function(x){var S=null;if(x.indexOf("#")>-1){var T=x.substring(x.indexOf("#")+1),E=x.substring(0,x.indexOf("#"));S=g.i18n.commaOnThe(T,E).trim()+g.i18n.spaceX0OfTheMonth()}else if(x.indexOf("L")>-1)S=g.i18n.commaOnTheLastX0OfTheMonth(x.replace("L",""));else{var $=g.expressionParts[3]!="*";S=$?g.i18n.commaAndOnX0():g.i18n.commaOnlyOnX0(x)}return S}),b},f.prototype.getMonthDescription=function(){var g=this,y=this.i18n.monthsOfTheYear(),b=this.getSegmentDescription(this.expressionParts[4],"",function(x,S){return S&&g.i18n.monthsOfTheYearInCase?g.i18n.monthsOfTheYearInCase(S)[parseInt(x)-1]:y[parseInt(x)-1]},function(x){return parseInt(x)==1?"":d.StringUtilities.format(g.i18n.commaEveryX0Months(x),x)},function(x){return g.i18n.commaMonthX0ThroughMonthX1()||g.i18n.commaX0ThroughX1()},function(x){return g.i18n.commaOnlyInMonthX0?g.i18n.commaOnlyInMonthX0():g.i18n.commaOnlyInX0()});return b},f.prototype.getDayOfMonthDescription=function(){var g=this,y=null,b=this.expressionParts[3];switch(b){case"L":y=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":y=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var x=b.match(/(\d{1,2}W)|(W\d{1,2})/);if(x){var S=parseInt(x[0].replace("W","")),T=S==1?this.i18n.firstWeekday():d.StringUtilities.format(this.i18n.weekdayNearestDayX0(),S.toString());y=d.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),T);break}else{var E=b.match(/L-(\d{1,2})/);if(E){var $=E[1];y=d.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth($),$);break}else{if(b=="*"&&this.expressionParts[5]!="*")return"";y=this.getSegmentDescription(b,this.i18n.commaEveryDay(),function(k){return k=="L"?g.i18n.lastDay():g.i18n.dayX0?d.StringUtilities.format(g.i18n.dayX0(),k):k},function(k){return k=="1"?g.i18n.commaEveryDay():g.i18n.commaEveryX0Days(k)},function(k){return g.i18n.commaBetweenDayX0AndX1OfTheMonth(k)},function(k){return g.i18n.commaOnDayX0OfTheMonth(k)})}break}}return y},f.prototype.getYearDescription=function(){var g=this,y=this.getSegmentDescription(this.expressionParts[6],"",function(b){return/^\d+$/.test(b)?new Date(parseInt(b),1).getFullYear().toString():b},function(b){return d.StringUtilities.format(g.i18n.commaEveryX0Years(b),b)},function(b){return g.i18n.commaYearX0ThroughYearX1()||g.i18n.commaX0ThroughX1()},function(b){return g.i18n.commaOnlyInYearX0?g.i18n.commaOnlyInYearX0():g.i18n.commaOnlyInX0()});return y},f.prototype.getSegmentDescription=function(g,y,b,x,S,T){var E=null,$=g.indexOf("/")>-1,k=g.indexOf("-")>-1,O=g.indexOf(",")>-1;if(!g)E="";else if(g==="*")E=y;else if(!$&&!k&&!O)E=d.StringUtilities.format(T(g),b(g));else if(O){for(var M=g.split(","),R="",j=0;j0&&M.length>2&&(R+=",",j0&&M.length>1&&(j==M.length-1||M.length==2)&&(R+="".concat(this.i18n.spaceAnd()," ")),M[j].indexOf("/")>-1||M[j].indexOf("-")>-1){var I=M[j].indexOf("-")>-1&&M[j].indexOf("/")==-1,z=this.getSegmentDescription(M[j],y,b,x,I?this.i18n.commaX0ThroughX1:S,T);I&&(z=z.replace(", ","")),R+=z}else $?R+=this.getSegmentDescription(M[j],y,b,x,S,T):R+=b(M[j]);$?E=R:E=d.StringUtilities.format(T(g),R)}else if($){var M=g.split("/");if(E=d.StringUtilities.format(x(M[1]),M[1]),M[0].indexOf("-")>-1){var W=this.generateRangeSegmentDescription(M[0],S,b);W.indexOf(", ")!=0&&(E+=", "),E+=W}else if(M[0].indexOf("*")==-1){var L=d.StringUtilities.format(T(M[0]),b(M[0]));L=L.replace(", ",""),E+=d.StringUtilities.format(this.i18n.commaStartingX0(),L)}}else k&&(E=this.generateRangeSegmentDescription(g,S,b));return E},f.prototype.generateRangeSegmentDescription=function(g,y,b){var x="",S=g.split("-"),T=b(S[0],1),E=b(S[1],2),$=y(g);return x+=d.StringUtilities.format($,T,E),x},f.prototype.formatTime=function(g,y,b){var x=0,S=0;this.options.tzOffset&&(x=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),S=parseFloat((this.options.tzOffset%1).toFixed(2)),S!=0&&(S*=60));var T=parseInt(g)+x,E=parseInt(y)+S;E>=60?(E-=60,T+=1):E<0&&(E+=60,T-=1),T>=24?T=T-24:T<0&&(T=24+T);var $="",k=!1;this.options.use24HourTimeFormat||(k=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),$=k?"".concat(this.getPeriod(T)," "):" ".concat(this.getPeriod(T)),T>12&&(T-=12),T===0&&(T=12));var O="";return b&&(O=":".concat(("00"+b).substring(b.length))),"".concat(k?$:"").concat(("00"+T.toString()).substring(T.toString().length),":").concat(("00"+E.toString()).substring(E.toString().length)).concat(O).concat(k?"":$)},f.prototype.transformVerbosity=function(g,y){return y||(g=g.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),g=g.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),g=g.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),g=g.replace(/\, ?$/,"")),g},f.prototype.getPeriod=function(g){return g>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},f.locales={},f}();s.ExpressionDescriptor=u},747:(i,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.enLocaleLoader=void 0;var d=l(486),h=function(){function u(){}return u.prototype.load=function(f){f.en=new d.en},u}();s.enLocaleLoader=h},486:(i,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.en=void 0;var l=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!1},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},d.prototype.everyMinute=function(){return"every minute"},d.prototype.everyHour=function(){return"every hour"},d.prototype.atSpace=function(){return"At "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},d.prototype.at=function(){return"At"},d.prototype.spaceAnd=function(){return" and"},d.prototype.everySecond=function(){return"every second"},d.prototype.everyX0Seconds=function(){return"every %s seconds"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},d.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},d.prototype.everyX0Minutes=function(){return"every %s minutes"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},d.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},d.prototype.everyX0Hours=function(){return"every %s hours"},d.prototype.betweenX0AndX1=function(){return"between %s and %s"},d.prototype.atX0=function(){return"at %s"},d.prototype.commaEveryDay=function(){return", every day"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},d.prototype.commaX0ThroughX1=function(){return", %s through %s"},d.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},d.prototype.first=function(){return"first"},d.prototype.second=function(){return"second"},d.prototype.third=function(){return"third"},d.prototype.fourth=function(){return"fourth"},d.prototype.fifth=function(){return"fifth"},d.prototype.commaOnThe=function(){return", on the "},d.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},d.prototype.lastDay=function(){return"the last day"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},d.prototype.commaOnlyOnX0=function(){return", only on %s"},d.prototype.commaAndOnX0=function(){return", and on %s"},d.prototype.commaEveryX0Months=function(){return", every %s months"},d.prototype.commaOnlyInX0=function(){return", only in %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},d.prototype.firstWeekday=function(){return"first weekday"},d.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},d.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},d.prototype.commaEveryX0Days=function(){return", every %s days"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},d.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},d.prototype.commaEveryHour=function(){return", every hour"},d.prototype.commaEveryX0Years=function(){return", every %s years"},d.prototype.commaStartingX0=function(){return", starting %s"},d.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},d.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},d}();s.en=l},515:(i,s)=>{Object.defineProperty(s,"__esModule",{value:!0});function l(h,u){if(!h)throw new Error(u)}var d=function(){function h(){}return h.secondRange=function(u){for(var f=u.split(","),g=0;g=0&&y<=59,"seconds part must be >= 0 and <= 59")}},h.minuteRange=function(u){for(var f=u.split(","),g=0;g=0&&y<=59,"minutes part must be >= 0 and <= 59")}},h.hourRange=function(u){for(var f=u.split(","),g=0;g=0&&y<=23,"hours part must be >= 0 and <= 23")}},h.dayOfMonthRange=function(u){for(var f=u.split(","),g=0;g=1&&y<=31,"DOM part must be >= 1 and <= 31")}},h.monthRange=function(u,f){for(var g=u.split(","),y=0;y=1&&b<=12,f?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},h.dayOfWeekRange=function(u,f){for(var g=u.split(","),y=0;y=0&&b<=6,f?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},h}();s.default=d},823:(i,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.StringUtilities=void 0;var l=function(){function d(){}return d.format=function(h){for(var u=[],f=1;f-1})},d}();s.StringUtilities=l}},n={};function o(i){var s=n[i];if(s!==void 0)return s.exports;var l=n[i]={exports:{}};return r[i](l,l.exports,o),l.exports}var a={};return(()=>{var i=a;Object.defineProperty(i,"__esModule",{value:!0}),i.toString=void 0;var s=o(333),l=o(747);s.ExpressionDescriptor.initialize(new l.enLocaleLoader),i.default=s.ExpressionDescriptor;var d=s.ExpressionDescriptor.toString;i.toString=d})(),a})())}(cS)),cS.exports}var yvt=di();const _vt=so(yvt);var dS={exports:{}},RL;function bvt(){return RL||(RL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.fr=void 0;var h=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"toutes les minutes"},u.prototype.everyHour=function(){return"toutes les heures"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},u.prototype.atSpace=function(){return"À "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},u.prototype.at=function(){return"À"},u.prototype.spaceAnd=function(){return" et"},u.prototype.everySecond=function(){return"toutes les secondes"},u.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},u.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},u.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},u.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},u.prototype.everyX0Hours=function(){return"toutes les %s heures"},u.prototype.betweenX0AndX1=function(){return"de %s à %s"},u.prototype.atX0=function(){return"à %s"},u.prototype.commaEveryDay=function(){return", tous les jours"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},u.prototype.commaX0ThroughX1=function(){return", de %s à %s"},u.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},u.prototype.first=function(){return"premier"},u.prototype.second=function(){return"second"},u.prototype.third=function(){return"troisième"},u.prototype.fourth=function(){return"quatrième"},u.prototype.fifth=function(){return"cinquième"},u.prototype.commaOnThe=function(){return", le "},u.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},u.prototype.lastDay=function(){return"le dernier jour"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},u.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},u.prototype.commaAndOnX0=function(){return", et %s"},u.prototype.commaEveryX0Months=function(){return", tous les %s mois"},u.prototype.commaOnlyInX0=function(){return", uniquement en %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},u.prototype.firstWeekday=function(){return"premier jour ouvrable"},u.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},u.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},u.prototype.commaEveryX0Days=function(){return", tous les %s jours"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},u.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},u.prototype.commaEveryX0Years=function(){return", tous les %s ans"},u.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},u.prototype.commaStartingX0=function(){return", à partir de %s"},u.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},u.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},u}();return d.fr=h,l().locales.fr=new h,i})())}(dS)),dS.exports}bvt();var uS={exports:{}},jL;function wvt(){return jL||(jL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.es=void 0;var h=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.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."},u.prototype.at=function(){return"A las"},u.prototype.atSpace=function(){return"A las "},u.prototype.atX0=function(){return"a las %s"},u.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},u.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},u.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},u.prototype.commaEveryDay=function(){return", cada día"},u.prototype.commaEveryX0Days=function(){return", cada %s días"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},u.prototype.commaEveryX0Months=function(){return", cada %s meses"},u.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},u.prototype.commaOnlyInX0=function(){return", sólo en %s"},u.prototype.commaOnlyOnX0=function(){return", sólo el %s"},u.prototype.commaAndOnX0=function(){return", y el %s"},u.prototype.commaOnThe=function(){return", en el "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},u.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},u.prototype.commaX0ThroughX1=function(){return", de %s a %s"},u.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},u.prototype.everyHour=function(){return"cada hora"},u.prototype.everyMinute=function(){return"cada minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},u.prototype.everySecond=function(){return"cada segundo"},u.prototype.everyX0Hours=function(){return"cada %s horas"},u.prototype.everyX0Minutes=function(){return"cada %s minutos"},u.prototype.everyX0Seconds=function(){return"cada %s segundos"},u.prototype.fifth=function(){return"quinto"},u.prototype.first=function(){return"primero"},u.prototype.firstWeekday=function(){return"primer día de la semana"},u.prototype.fourth=function(){return"cuarto"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},u.prototype.second=function(){return"segundo"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},u.prototype.spaceAnd=function(){return" y"},u.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},u.prototype.lastDay=function(){return"el último día"},u.prototype.third=function(){return"tercer"},u.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},u.prototype.commaEveryX0Years=function(){return", cada %s años"},u.prototype.commaStartingX0=function(){return", comenzando %s"},u.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},u.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},u}();return d.es=h,l().locales.es=new h,i})())}(uS)),uS.exports}wvt();var pS={exports:{}},LL;function xvt(){return LL||(LL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.de=void 0;var h=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"jede Minute"},u.prototype.everyHour=function(){return"jede Stunde"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},u.prototype.atSpace=function(){return"Um "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},u.prototype.at=function(){return"Um"},u.prototype.spaceAnd=function(){return" und"},u.prototype.everySecond=function(){return"Jede Sekunde"},u.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},u.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},u.prototype.everyX0Minutes=function(){return"alle %s Minuten"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},u.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},u.prototype.everyX0Hours=function(){return"alle %s Stunden"},u.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},u.prototype.atX0=function(){return"um %s"},u.prototype.commaEveryDay=function(){return", jeden Tag"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},u.prototype.commaX0ThroughX1=function(){return", %s bis %s"},u.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},u.prototype.first=function(){return"ersten"},u.prototype.second=function(){return"zweiten"},u.prototype.third=function(){return"dritten"},u.prototype.fourth=function(){return"vierten"},u.prototype.fifth=function(){return"fünften"},u.prototype.commaOnThe=function(){return", am "},u.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},u.prototype.lastDay=function(){return"der letzte Tag"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},u.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},u.prototype.commaAndOnX0=function(){return", und jeden %s"},u.prototype.commaEveryX0Months=function(){return", alle %s Monate"},u.prototype.commaOnlyInX0=function(){return", nur im %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},u.prototype.firstWeekday=function(){return"ersten Werktag"},u.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},u.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},u.prototype.commaEveryX0Days=function(){return", alle %s Tage"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},u.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},u.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},u.prototype.commaStartingX0=function(){return", beginnend %s"},u.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},u.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},u}();return d.de=h,l().locales.de=new h,i})())}(pS)),pS.exports}xvt();var hS={exports:{}},zL;function Svt(){return zL||(zL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.it=void 0;var h=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},u.prototype.at=function(){return"Alle"},u.prototype.atSpace=function(){return"Alle "},u.prototype.atX0=function(){return"alle %s"},u.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},u.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},u.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},u.prototype.commaEveryDay=function(){return", ogni giorno"},u.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},u.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},u.prototype.commaEveryX0Years=function(){return", ogni %s anni"},u.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},u.prototype.commaOnlyInX0=function(){return", solo in %s"},u.prototype.commaOnlyOnX0=function(){return", solo il %s"},u.prototype.commaAndOnX0=function(){return", e il %s"},u.prototype.commaOnThe=function(){return", il "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},u.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},u.prototype.commaX0ThroughX1=function(){return", %s al %s"},u.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},u.prototype.everyHour=function(){return"ogni ora"},u.prototype.everyMinute=function(){return"ogni minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},u.prototype.everySecond=function(){return"ogni secondo"},u.prototype.everyX0Hours=function(){return"ogni %s ore"},u.prototype.everyX0Minutes=function(){return"ogni %s minuti"},u.prototype.everyX0Seconds=function(){return"ogni %s secondi"},u.prototype.fifth=function(){return"quinto"},u.prototype.first=function(){return"primo"},u.prototype.firstWeekday=function(){return"primo giorno della settimana"},u.prototype.fourth=function(){return"quarto"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},u.prototype.second=function(){return"secondo"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},u.prototype.spaceAnd=function(){return" e"},u.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},u.prototype.lastDay=function(){return"l'ultimo giorno"},u.prototype.third=function(){return"terzo"},u.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},u.prototype.commaStartingX0=function(){return", a partire %s"},u.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},u.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},u}();return d.it=h,l().locales.it=new h,i})())}(hS)),hS.exports}Svt();var fS={exports:{}},FL;function Cvt(){return FL||(FL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:g=>{g.exports=r}},o={};function a(g){var y=o[g];if(y!==void 0)return y.exports;var b=o[g]={exports:{}};return n[g](b,b.exports,a),b.exports}a.n=g=>{var y=g&&g.__esModule?()=>g.default:()=>g;return a.d(y,{a:y}),y},a.d=(g,y)=>{for(var b in y)a.o(y,b)&&!a.o(g,b)&&Object.defineProperty(g,b,{enumerable:!0,get:y[b]})},a.o=(g,y)=>Object.prototype.hasOwnProperty.call(g,y),a.r=g=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.ru=void 0;var h=function(g,y){var b=Number(g);return b!==void 0?y[b%100>4&&b%100<20?2:[2,0,1,1,1,2][b%10<5?Math.abs(b)%10:5]]:y[2]},u=function(g,y){var b=Number(g);return b!==void 0?y[b===0?0:b===1||b===2||b===4?1:2]:y[1]},f=function(){function g(){}return g.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},g.prototype.atX0MinutesPastTheHourGt20=function(){return null},g.prototype.commaMonthX0ThroughMonthX1=function(){return null},g.prototype.commaYearX0ThroughYearX1=function(){return null},g.prototype.use24HourTimeFormatByDefault=function(){return!0},g.prototype.everyMinute=function(){return"каждую минуту"},g.prototype.everyHour=function(){return"каждый час"},g.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},g.prototype.atSpace=function(){return"В "},g.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},g.prototype.at=function(){return"В"},g.prototype.spaceAnd=function(){return" и"},g.prototype.everySecond=function(){return"каждую секунду"},g.prototype.everyX0Seconds=function(y){return h(y,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},g.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},g.prototype.atX0SecondsPastTheMinute=function(y){return h(y,["в %s секунду","в %s секунды","в %s секунд"])},g.prototype.everyX0Minutes=function(y){return h(y,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},g.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},g.prototype.atX0MinutesPastTheHour=function(y){return h(y,["в %s минуту","в %s минуты","в %s минут"])},g.prototype.everyX0Hours=function(y){return h(y,["каждый %s час","каждые %s часа","каждые %s часов"])},g.prototype.betweenX0AndX1=function(){return"с %s по %s"},g.prototype.atX0=function(){return"в %s"},g.prototype.commaEveryDay=function(){return", каждый день"},g.prototype.commaEveryX0DaysOfTheWeek=function(y){return h(y,["",", каждые %s дня недели",", каждые %s дней недели"])},g.prototype.commaX0ThroughX1=function(y){return y&&(y[0]=="2"||y[0]=="3")?", со %s по %s":", с %s по %s"},g.prototype.commaAndX0ThroughX1=function(y){return y&&(y[0]=="2"||y[0]=="3")?" и со %s по %s":" и с %s по %s"},g.prototype.first=function(y){return u(y,["первое","первый","первую"])},g.prototype.second=function(y){return u(y,["второе","второй","вторую"])},g.prototype.third=function(y){return u(y,["третье","третий","третью"])},g.prototype.fourth=function(y){return u(y,["четвертое","четвертый","четвертую"])},g.prototype.fifth=function(y){return u(y,["пятое","пятый","пятую"])},g.prototype.commaOnThe=function(y){return y==="2"?", во ":", в "},g.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},g.prototype.lastDay=function(){return"последний день"},g.prototype.commaOnTheLastX0OfTheMonth=function(y){return u(y,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},g.prototype.commaOnlyOnX0=function(y){return y&&y[0]==="2"?", только во %s":", только в %s"},g.prototype.commaAndOnX0=function(){return", и %s"},g.prototype.commaEveryX0Months=function(y){return h(y,[""," каждые %s месяца"," каждые %s месяцев"])},g.prototype.commaOnlyInMonthX0=function(){return", только %s"},g.prototype.commaOnlyInX0=function(){return", только в %s"},g.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},g.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},g.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(y){return h(y,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},g.prototype.firstWeekday=function(){return"первый будний день"},g.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},g.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},g.prototype.commaEveryX0Days=function(y){return h(y,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},g.prototype.commaBetweenDayX0AndX1OfTheMonth=function(y){return y&&y.substring(0,y.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},g.prototype.commaOnDayX0OfTheMonth=function(y){return y&&y[0]=="2"?", во %s число месяца":", в %s число месяца"},g.prototype.commaEveryX0Years=function(y){return h(y,[", каждый %s год",", каждые %s года",", каждые %s лет"])},g.prototype.commaStartingX0=function(){return", начало %s"},g.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},g.prototype.daysOfTheWeekInCase=function(y){return y===void 0&&(y=2),y==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},g.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},g.prototype.monthsOfTheYearInCase=function(y){return y==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},g}();return d.ru=f,l().locales.ru=new f,i})())}(fS)),fS.exports}Cvt();var mS={exports:{}},BL;function $vt(){return BL||(BL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.zh_CN=void 0;var h=function(){function u(){}return u.prototype.setPeriodBeforeTime=function(){return!0},u.prototype.pm=function(){return"下午"},u.prototype.am=function(){return"上午"},u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},u.prototype.use24HourTimeFormatByDefault=function(){return!1},u.prototype.everyMinute=function(){return"每分钟"},u.prototype.everyHour=function(){return"每小时"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},u.prototype.atSpace=function(){return"在"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},u.prototype.at=function(){return"在"},u.prototype.spaceAnd=function(){return" 和"},u.prototype.everySecond=function(){return"每秒"},u.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在每分钟的第 %s 到 %s 秒"},u.prototype.atX0SecondsPastTheMinute=function(){return"在每分钟的第 %s 秒"},u.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"在每小时的第 %s 到 %s 分钟"},u.prototype.atX0MinutesPastTheHour=function(){return"在每小时的第 %s 分钟"},u.prototype.everyX0Hours=function(){return"每隔 %s 小时"},u.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},u.prototype.atX0=function(){return"在%s"},u.prototype.commaEveryDay=function(){return", 每天"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},u.prototype.commaX0ThroughX1=function(){return", %s至%s"},u.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},u.prototype.first=function(){return"第一个"},u.prototype.second=function(){return"第二个"},u.prototype.third=function(){return"第三个"},u.prototype.fourth=function(){return"第四个"},u.prototype.fifth=function(){return"第五个"},u.prototype.commaOnThe=function(){return", 限每月的"},u.prototype.spaceX0OfTheMonth=function(){return"%s"},u.prototype.lastDay=function(){return"本月最后一天"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},u.prototype.commaOnlyOnX0=function(){return", 仅%s"},u.prototype.commaAndOnX0=function(){return", 或者为%s"},u.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},u.prototype.commaOnlyInX0=function(){return", 仅限%s"},u.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},u.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},u.prototype.firstWeekday=function(){return"第一个工作日"},u.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},u.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},u.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},u.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},u.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},u.prototype.commaStartingX0=function(){return", %s开始"},u.prototype.dayX0=function(){return" %s 号"},u.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},u.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u}();return d.zh_CN=h,l().locales.zh_CN=new h,i})())}(mS)),mS.exports}$vt();var gS={exports:{}},WL;function kvt(){return WL||(WL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.uk=void 0;var h=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"щохвилини"},u.prototype.everyHour=function(){return"щогодини"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},u.prototype.atSpace=function(){return"О "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},u.prototype.at=function(){return"О"},u.prototype.spaceAnd=function(){return" та"},u.prototype.everySecond=function(){return"Щосекунди"},u.prototype.everyX0Seconds=function(){return"кожні %s секунд"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},u.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},u.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},u.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},u.prototype.everyX0Hours=function(){return"кожні %s годин"},u.prototype.betweenX0AndX1=function(){return"між %s та %s"},u.prototype.atX0=function(){return"о %s"},u.prototype.commaEveryDay=function(){return", щоденно"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},u.prototype.commaX0ThroughX1=function(){return", %s по %s"},u.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},u.prototype.first=function(){return"перший"},u.prototype.second=function(){return"другий"},u.prototype.third=function(){return"третій"},u.prototype.fourth=function(){return"четвертий"},u.prototype.fifth=function(){return"п'ятий"},u.prototype.commaOnThe=function(){return", в "},u.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},u.prototype.lastDay=function(){return"останній день"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},u.prototype.commaOnlyOnX0=function(){return", тільки в %s"},u.prototype.commaAndOnX0=function(){return", і в %s"},u.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},u.prototype.commaOnlyInX0=function(){return", тільки в %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},u.prototype.firstWeekday=function(){return"перший будень"},u.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},u.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},u.prototype.commaEveryX0Days=function(){return", кожен %s день"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},u.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},u.prototype.commaEveryX0Years=function(){return", кожні %s роки"},u.prototype.commaStartingX0=function(){return", початок %s"},u.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},u.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},u}();return d.uk=h,l().locales.uk=new h,i})())}(gS)),gS.exports}kvt();var vS={exports:{}},HL;function Evt(){return HL||(HL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.pt_BR=void 0;var h=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},u.prototype.at=function(){return"às"},u.prototype.atSpace=function(){return"às "},u.prototype.atX0=function(){return"Às %s"},u.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},u.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},u.prototype.betweenX0AndX1=function(){return"entre %s e %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},u.prototype.commaEveryDay=function(){return", a cada dia"},u.prototype.commaEveryX0Days=function(){return", a cada %s dias"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},u.prototype.commaEveryX0Months=function(){return", a cada %s meses"},u.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},u.prototype.commaOnlyInX0=function(f){return f&&f.length>1&&f[1]==="-"?"somente %s":", somente em %s"},u.prototype.commaOnlyOnX0=function(f){return f&&f.length>1&&f[1]==="-"?", somente %s":", somente de %s"},u.prototype.commaAndOnX0=function(){return", e de %s"},u.prototype.commaOnThe=function(f,g){return g==="6"||g==="0"?", no":", na "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},u.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},u.prototype.commaX0ThroughX1=function(){return", de %s a %s"},u.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},u.prototype.everyHour=function(){return"a cada hora"},u.prototype.everyMinute=function(){return"a cada minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},u.prototype.everySecond=function(){return"a cada segundo"},u.prototype.everyX0Hours=function(){return"a cada %s horas"},u.prototype.everyX0Minutes=function(){return"a cada %s minutos"},u.prototype.everyX0Seconds=function(){return"a cada %s segundos"},u.prototype.fifth=function(f){return f==="6"||f==="0"?"quinto":"quinta"},u.prototype.first=function(f){return f==="6"||f==="0"?"primeiro":"primeira"},u.prototype.firstWeekday=function(){return"primeiro dia da semana"},u.prototype.fourth=function(f){return f==="6"||f==="0"?"quarto":"quarta"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},u.prototype.second=function(f){return f==="6"||f==="0"?"segundo":"segunda"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},u.prototype.spaceAnd=function(){return" e"},u.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},u.prototype.lastDay=function(){return"o último dia"},u.prototype.third=function(f){return f==="6"||f==="0"?"terceiro":"terceira"},u.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},u.prototype.commaEveryX0Years=function(){return", a cada %s anos"},u.prototype.commaStartingX0=function(){return", iniciando %s"},u.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},u.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},u}();return d.pt_BR=h,l().locales.pt_BR=new h,i})())}(vS)),vS.exports}Evt();var yS={exports:{}},UL;function Tvt(){return UL||(UL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.pl=void 0;var h=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},u.prototype.at=function(){return"O"},u.prototype.atSpace=function(){return"O "},u.prototype.atX0=function(){return"o %s"},u.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},u.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},u.prototype.betweenX0AndX1=function(){return"od %s do %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},u.prototype.commaEveryDay=function(){return", co dzień"},u.prototype.commaEveryX0Days=function(){return", co %s dni"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},u.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},u.prototype.commaEveryX0Years=function(){return", co %s lat"},u.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},u.prototype.commaOnlyInX0=function(){return", tylko %s"},u.prototype.commaOnlyOnX0=function(){return", tylko %s"},u.prototype.commaAndOnX0=function(){return", i %s"},u.prototype.commaOnThe=function(){return", "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},u.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},u.prototype.commaX0ThroughX1=function(){return", od %s do %s"},u.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},u.prototype.everyHour=function(){return"co godzinę"},u.prototype.everyMinute=function(){return"co minutę"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},u.prototype.everySecond=function(){return"co sekundę"},u.prototype.everyX0Hours=function(){return"co %s godzin"},u.prototype.everyX0Minutes=function(){return"co %s minut"},u.prototype.everyX0Seconds=function(){return"co %s sekund"},u.prototype.fifth=function(){return"piąty"},u.prototype.first=function(){return"pierwszy"},u.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},u.prototype.fourth=function(){return"czwarty"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},u.prototype.second=function(){return"drugi"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},u.prototype.spaceAnd=function(){return" i"},u.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},u.prototype.lastDay=function(){return"ostatni dzień"},u.prototype.third=function(){return"trzeci"},u.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},u.prototype.commaStartingX0=function(){return", startowy %s"},u.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},u.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},u}();return d.pl=h,l().locales.pl=new h,i})())}(yS)),yS.exports}Tvt();function tV(t,e){return _vt.toString(t,{locale:e})}const Kn={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},slider:{marginTop:20,display:"block",width:"100%"},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},numberButtonBreak:{display:"block"},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},Ovt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Dvt=["January","February","March","April","May","June","July","August","September","October","November","December"];function VL(t,e){const r=[];if(t==="*"){if(e===24||e===60||e===7)for(let o=0;o1){const i=parseInt(a[1],10);for(let s=parseInt(a[0],10);s<=i;s++)r.push(s)}else r.push(parseInt(n[o],10))}r.sort();for(let o=r.length-1;o>=0;o--)r[o]===r[o+1]&&r.splice(o+1,1);return r}function qL(t,e){if(typeof t!="object"&&(t=[t]),t.length===e)return"*";const r=[];if(!t.length)return"-";t=t.map(a=>parseInt(a,10)),t.sort((a,i)=>a-i);let n=t[0],o=t[0];for(let a=1;athis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(e){e=e.replace(/['"]/g,"").trim();const r=e.split(" ").map(o=>o.trim());let n;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",dates:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:!1,minutes:r[0]||"*",hours:r[1]||"*",dates:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n}static state2cron(e){let r=`${e.minutes} ${e.hours} ${e.dates} ${e.months} ${e.dow}`;return e.seconds!==!1&&(r=`${e.seconds} ${r}`),r}recalcCron(){const e=Cs.state2cron(this.state);e!==this.state.cron&&this.setState({cron:e},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(e,r,n){if(e===!0)this.setCronAttr(r,"*");else if(e===!1)n===60||n===24?this.setCronAttr(r,"0"):this.setCronAttr(r,"1");else{const o=VL(this.state[r],n),a=o.indexOf(e);a!==-1?o.splice(a,1):(o.push(e),o.sort()),this.setCronAttr(r,qL(o,n))}}getDigitsSelector(e,r){let n=[];if(r===7)n=[1,2,3,4,5,6,0];else if(r===60||r===24)for(let a=0;athis.onToggle(!1,e,r)},P.t("ra_Deselect all")),m.createElement(tt,{key:"addall",variant:"contained",style:Kn.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,e,r)},P.t("ra_Select all")),m.createElement("div",{key:"all"},n.map(a=>[r===7&&a===4||r===12&&a===7||r===31&&!((a-1)%10)||r===60&&a&&!(a%10)||r===24&&a&&!(a%6)?m.createElement("div",{key:`allInner${a}`,style:{width:"100%"}}):null,m.createElement(tt,{key:`_${a}`,variant:o.indexOf(a)!==-1?"contained":"outlined",style:Kn.numberButton,color:o.indexOf(a)!==-1?"secondary":"primary",onClick:()=>this.onToggle(a,e,r)},r===7?P.t(Ovt[a]):r===12?Dvt[a-1]:a)]))]}getPeriodsTab(e,r){const n=this.state[e];let o=n==="*",a=n==null?!1:n.toString().includes("/"),i;if(this.state.modes[e]===null){i=o?"every":a?"everyN":"specific";const l=JSON.parse(JSON.stringify(this.state.modes));return l[e]=i,setTimeout(()=>this.setState({modes:l},()=>this.recalcCron()),100),null}o=this.state.modes[e]==="every",a=this.state.modes[e]==="everyN",i=this.state.modes[e];let s=1;return a&&n&&(s=parseInt(n.replace("*/",""),10)||1),m.createElement("div",null,m.createElement(Bn,{variant:"standard",style:{...Kn.periodSelect,verticalAlign:"bottom"},value:i,onChange:l=>{const d=JSON.parse(JSON.stringify(this.state.modes));if(d[e]=l.target.value,l.target.value==="every")this.setCronAttr(e,"*",d);else if(l.target.value==="everyN"){const h=parseInt((this.state[e]||"").toString().replace("*/",""),10)||1;this.setCronAttr(e,`*/${h}`,d)}else if(l.target.value==="specific"){let h=parseInt((this.state[e]||"").toString().split(",")[0],10)||0;!h&&(e==="months"||e==="dates")&&(h=1),this.setCronAttr(e,qL(h,r),d)}}},m.createElement(Jt,{key:"every",value:"every"},P.t(`sc_every_${e}`)),m.createElement(Jt,{key:"everyN",value:"everyN"},P.t(`sc_everyN_${e}`)),m.createElement(Jt,{key:"specific",value:"specific"},P.t(`sc_specific_${e}`))),a&&m.createElement(Ht,{variant:"standard",key:"interval",label:P.t(`sc_${e}`),value:s,slotProps:{htmlInput:{min:1,max:r},inputLabel:{shrink:!0}},onChange:l=>{this.setState({[e]:`*/${l.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!o&&!a&&this.getDigitsSelector(e,r))}static convertCronToText(e,r){return e.split(" ").includes("-")?P.t("ra_Invalid CRON"):tV(e,r)}setCronAttr(e,r,n){n?e==="seconds"?this.setState({seconds:r,modes:n},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r,modes:n},()=>this.recalcCron()):e==="hours"?this.setState({hours:r,modes:n},()=>this.recalcCron()):e==="dates"?this.setState({dates:r,modes:n},()=>this.recalcCron()):e==="months"?this.setState({months:r,modes:n},()=>this.recalcCron()):e==="dow"?this.setState({dow:r,modes:n},()=>this.recalcCron()):this.setState({modes:n},()=>this.recalcCron()):e==="seconds"?this.setState({seconds:r},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r},()=>this.recalcCron()):e==="hours"?this.setState({hours:r},()=>this.recalcCron()):e==="dates"?this.setState({dates:r},()=>this.recalcCron()):e==="months"?this.setState({months:r},()=>this.recalcCron()):e==="dow"&&this.setState({dow:r},()=>this.recalcCron())}render(){const e=this.state.seconds!==!1?this.state.tab:this.state.tab+1,r=this.state.minutes==="*"||this.state.minutes==="*/1",n=this.state.seconds==="*"||this.state.seconds==="*/1";return m.createElement("div",{style:Kn.mainDiv},m.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)"}},m.createElement(Ht,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),m.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)",height:60}},Cs.convertCronToText(this.state.cron,this.props.language||"en"),m.createElement("span",{style:Kn.warning},n?P.t("ra_warning_every_second"):r?P.t("ra_warning_every_minute"):"")),m.createElement(St,{control:m.createElement(yr,{checked:!!this.state.seconds,onChange:o=>this.setState({seconds:o.target.checked?"*":!1},()=>this.recalcCron())}),label:P.t("ra_use seconds")}),m.createElement(PW,{position:"static",sx:{"&.MuiAppBar-root":Kn.appBar},color:"secondary"},m.createElement(sH,{value:this.state.tab,style:Kn.appBar,color:"secondary",onChange:(o,a)=>this.setState({tab:a})},this.state.seconds!==!1&&m.createElement(Uo,{id:"sc_seconds",label:P.t("sc_seconds")}),m.createElement(Uo,{id:"minutes",label:P.t("sc_minutes")}),m.createElement(Uo,{id:"hours",label:P.t("sc_hours")}),m.createElement(Uo,{id:"dates",label:P.t("sc_dates")}),m.createElement(Uo,{id:"months",label:P.t("sc_months")}),m.createElement(Uo,{id:"dow",label:P.t("sc_dows")}))),e===0&&m.createElement("div",{style:Kn.tabContent},this.getPeriodsTab("seconds",60)),e===1&&m.createElement("div",{style:Kn.tabContent},this.getPeriodsTab("minutes",60)),e===2&&m.createElement("div",{style:Kn.tabContent},this.getPeriodsTab("hours",24)),e===3&&m.createElement("div",{style:Kn.tabContent},this.getPeriodsTab("dates",31)),e===4&&m.createElement("div",{style:Kn.tabContent},this.getPeriodsTab("months",12)),e===5&&m.createElement("div",{style:Kn.tabContent},this.getPeriodsTab("dow",7)))}}function rc(t,e,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(h){try{d(n.next(h))}catch(u){i(u)}}function l(h){try{d(n.throw(h))}catch(u){i(u)}}function d(h){h.done?a(h.value):o(h.value).then(s,l)}d((n=n.apply(t,e||[])).next())})}const Avt=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 Cu(t,e,r){const n=Ivt(t),{webkitRelativePath:o}=t,a=typeof e=="string"?e:typeof o=="string"&&o.length>0?o:`./${t.name}`;return typeof n.path!="string"&&GL(n,"path",a),GL(n,"relativePath",a),n}function Ivt(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const n=e.split(".").pop().toLowerCase(),o=Avt.get(n);o&&Object.defineProperty(t,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return t}function GL(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}const Mvt=[".DS_Store","Thumbs.db"];function Pvt(t){return rc(this,void 0,void 0,function*(){return Hv(t)&&Nvt(t.dataTransfer)?zvt(t.dataTransfer,t.type):Rvt(t)?jvt(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?Lvt(t):[]})}function Nvt(t){return Hv(t)}function Rvt(t){return Hv(t)&&Hv(t.target)}function Hv(t){return typeof t=="object"&&t!==null}function jvt(t){return g2(t.target.files).map(e=>Cu(e))}function Lvt(t){return rc(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>Cu(r))})}function zvt(t,e){return rc(this,void 0,void 0,function*(){if(t.items){const r=g2(t.items).filter(o=>o.kind==="file");if(e!=="drop")return r;const n=yield Promise.all(r.map(Fvt));return XL(rV(n))}return XL(g2(t.files).map(r=>Cu(r)))})}function XL(t){return t.filter(e=>Mvt.indexOf(e.name)===-1)}function g2(t){if(t===null)return[];const e=[];for(let r=0;r[...e,...Array.isArray(r)?rV(r):[r]],[])}function JL(t,e){return rc(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const a=yield t.getAsFileSystemHandle();if(a===null)throw new Error(`${t} is not a File`);if(a!==void 0){const i=yield a.getFile();return i.handle=a,Cu(i)}}const n=t.getAsFile();if(!n)throw new Error(`${t} is not a File`);return Cu(n,(r=e==null?void 0:e.fullPath)!==null&&r!==void 0?r:void 0)})}function Bvt(t){return rc(this,void 0,void 0,function*(){return t.isDirectory?nV(t):Wvt(t)})}function nV(t){const e=t.createReader();return new Promise((r,n)=>{const o=[];function a(){e.readEntries(i=>rc(this,void 0,void 0,function*(){if(i.length){const s=Promise.all(i.map(Bvt));o.push(s),a()}else try{const s=yield Promise.all(o);r(s)}catch(s){n(s)}}),i=>{n(i)})}a()})}function Wvt(t){return rc(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(n=>{const o=Cu(n,t.fullPath);e(o)},n=>{r(n)})})})}var Ag={},YL;function Hvt(){return YL||(YL=1,Ag.__esModule=!0,Ag.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",o=(t.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return r.some(function(i){var s=i.trim().toLowerCase();return s.charAt(0)==="."?n.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):o===s})}return!0}),Ag}var Uvt=Hvt();const _S=so(Uvt);function KL(t){return Gvt(t)||qvt(t)||aV(t)||Vvt()}function Vvt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. + `),m.createElement("div",{style:h.white,className:"saturation-white"},m.createElement("div",{style:h.black,className:"saturation-black"}),m.createElement("div",{style:h.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement("div",{style:h.circle}))))}}]),e}(A.PureComponent||A.Component);function kft(t,e){for(var r=-1,n=t==null?0:t.length;++r=0,a=!r&&o&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?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 st(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Vft,arguments)},brighten:function(){return this._applyModification(qft,arguments)},darken:function(){return this._applyModification(Gft,arguments)},desaturate:function(){return this._applyModification(Wft,arguments)},saturate:function(){return this._applyModification(Hft,arguments)},greyscale:function(){return this._applyModification(Uft,arguments)},spin:function(){return this._applyModification(Xft,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Kft,arguments)},complement:function(){return this._applyCombination(Jft,arguments)},monochromatic:function(){return this._applyCombination(Zft,arguments)},splitcomplement:function(){return this._applyCombination(Yft,arguments)},triad:function(){return this._applyCombination(pL,[3])},tetrad:function(){return this._applyCombination(pL,[4])}};st.fromRatio=function(t,e){if(Bv(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=hh(t[n]));t=r}return st(t,e)};function jft(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,a=null,i=!1,s=!1;return typeof t=="string"&&(t=nmt(t)),Bv(t)=="object"&&(Si(t.r)&&Si(t.g)&&Si(t.b)?(e=Lft(t.r,t.g,t.b),i=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Si(t.h)&&Si(t.s)&&Si(t.v)?(n=hh(t.s),o=hh(t.v),e=Fft(t.h,n,o),i=!0,s="hsv"):Si(t.h)&&Si(t.s)&&Si(t.l)&&(n=hh(t.s),a=hh(t.l),e=zft(t.h,n,a),i=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=WU(r),{ok:i,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function Lft(t,e,r){return{r:Or(t,255)*255,g:Or(e,255)*255,b:Or(r,255)*255}}function lL(t,e,r){t=Or(t,255),e=Or(e,255),r=Or(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,s=(n+o)/2;if(n==o)a=i=0;else{var l=n-o;switch(i=s>.5?l/(2-n-o):l/(n+o),n){case t:a=(e-r)/l+(e1&&(u-=1),u<1/6?d+(h-d)*6*u:u<1/2?h:u<2/3?d+(h-d)*(2/3-u)*6:d}if(e===0)n=o=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=i(l,s,t+1/3),o=i(l,s,t),a=i(l,s,t-1/3)}return{r:n*255,g:o*255,b:a*255}}function cL(t,e,r){t=Or(t,255),e=Or(e,255),r=Or(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,s=n,l=n-o;if(i=n===0?0:l/n,n==o)a=0;else{switch(n){case t:a=(e-r)/l+(e>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(st(n));return a}function Zft(t,e){e=e||6;for(var r=st(t).toHsv(),n=r.h,o=r.s,a=r.v,i=[],s=1/e;e--;)i.push(st({h:n,s:o,v:a})),a=(a+s)%1;return i}st.mix=function(t,e,r){r=r===0?0:r||50;var n=st(t).toRgb(),o=st(e).toRgb(),a=r/100,i={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return st(i)};st.readability=function(t,e){var r=st(t),n=st(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};st.isReadable=function(t,e,r){var n=st.readability(t,e),o,a;switch(a=!1,o=omt(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};st.mostReadable=function(t,e,r){var n=null,o=0,a,i,s,l;r=r||{},i=r.includeFallbackColors,s=r.level,l=r.size;for(var d=0;do&&(o=a,n=st(e[d]));return st.isReadable(t,n,{level:s,size:l})||!i?n:(r.includeFallbackColors=!1,st.mostReadable(t,["#fff","#000"],r))};var u2=st.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"},Qft=st.hexNames=emt(u2);function emt(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function WU(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Or(t,e){tmt(t)&&(t="100%");var r=rmt(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function a_(t){return Math.min(1,Math.max(0,t))}function vo(t){return parseInt(t,16)}function tmt(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function rmt(t){return typeof t=="string"&&t.indexOf("%")!=-1}function xa(t){return t.length==1?"0"+t:""+t}function hh(t){return t<=1&&(t=t*100+"%"),t}function HU(t){return Math.round(parseFloat(t)*255).toString(16)}function hL(t){return vo(t)/255}var ma=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),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 Si(t){return!!ma.CSS_UNIT.exec(t)}function nmt(t){t=t.replace(Nft,"").replace(Rft,"").toLowerCase();var e=!1;if(u2[t])t=u2[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ma.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=ma.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ma.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=ma.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ma.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=ma.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ma.hex8.exec(t))?{r:vo(r[1]),g:vo(r[2]),b:vo(r[3]),a:hL(r[4]),format:e?"name":"hex8"}:(r=ma.hex6.exec(t))?{r:vo(r[1]),g:vo(r[2]),b:vo(r[3]),format:e?"name":"hex"}:(r=ma.hex4.exec(t))?{r:vo(r[1]+""+r[1]),g:vo(r[2]+""+r[2]),b:vo(r[3]+""+r[3]),a:hL(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=ma.hex3.exec(t))?{r:vo(r[1]+""+r[1]),g:vo(r[2]+""+r[2]),b:vo(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function omt(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var fL=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,o=0;return Pft(r,function(a){if(e[a]&&(n+=1,isNaN(e[a])||(o+=1),a==="s"||a==="l")){var i=/^\d+%$/;i.test(e[a])&&(o+=1)}}),n===o?e:!1},fh=function(e,r){var n=e.hex?st(e.hex):st(e),o=n.toHsl(),a=n.toHsv(),i=n.toRgb(),s=n.toHex();o.s===0&&(o.h=r||0,a.h=r||0);var l=s==="000000"&&i.a===0;return{hsl:o,hex:l?"transparent":"#"+s,rgb:i,hsv:a,oldHue:e.h||r||o.h,source:e.source}},Vs=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&&st(e).isValid()},iD=function(e){if(!e)return"#fff";var r=fh(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},sS=function(e,r){var n=e.replace("°","");return st(r+" ("+n+")")._ok},Bp=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){pmt(o,n);function o(){var a,i,s,l;umt(this,o);for(var d=arguments.length,h=Array(d),u=0;us))return!1;var d=a.get(t),h=a.get(e);if(d&&h)return d==e&&h==t;var u=-1,f=!0,g=r&Cmt?new Wv:void 0;for(a.set(t,e),a.set(e,t);++u=0||Object.prototype.hasOwnProperty.call(i,d)&&(l[d]=i[d]);return l}var a=24;return Og.default=function(i){var s=i.fill,l=s===void 0?"currentColor":s,d=i.width,h=d===void 0?a:d,u=i.height,f=u===void 0?a:u,g=i.style,y=g===void 0?{}:g,b=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:l,width:h,height:f},y)},b),r.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"}))},Og}var Lgt=jgt();const zgt=so(Lgt);var Fgt=function(){function t(e,r){for(var n=0;n1&&(o.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(o.a*100)/100,source:"rgb"},a)):(o.h||o.s||o.l)&&(typeof o.s=="string"&&o.s.includes("%")&&(o.s=o.s.replace("%","")),typeof o.l=="string"&&o.l.includes("%")&&(o.l=o.l.replace("%","")),o.s==1?o.s=.01:o.l==1&&(o.l=.01),n.props.onChange({h:o.h||n.props.hsl.h,s:Number(DL(o.s)?n.props.hsl.s:o.s),l:Number(DL(o.l)?n.props.hsl.l:o.l),source:"hsl"},a))},n.showHighlight=function(o){o.currentTarget.style.background="#eee"},n.hideHighlight=function(o){o.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return Fgt(e,[{key:"render",value:function(){var n=this,o=kt({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),a=void 0;return this.state.view==="hex"?a=m.createElement("div",{style:o.fields,className:"flexbox-fix"},m.createElement("div",{style:o.field},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=m.createElement("div",{style:o.fields,className:"flexbox-fix"},m.createElement("div",{style:o.field},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),m.createElement("div",{style:o.alpha},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=m.createElement("div",{style:o.fields,className:"flexbox-fix"},m.createElement("div",{style:o.field},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),m.createElement("div",{style:o.alpha},m.createElement(Lt,{style:{input:o.input,label:o.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),m.createElement("div",{style:o.wrap,className:"flexbox-fix"},a,m.createElement("div",{style:o.toggle},m.createElement("div",{style:o.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},m.createElement(zgt,{style:o.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.hsl.a!==1&&o.view==="hex"?{view:"rgb"}:null}}]),e}(m.Component);QU.defaultProps={view:"hex"};var IL=function(){var e=kt({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 m.createElement("div",{style:e.picker})},Ugt=function(){var e=kt({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return m.createElement("div",{style:e.picker})},pD=function(e){var r=e.width,n=e.onChange,o=e.disableAlpha,a=e.rgb,i=e.hsl,s=e.hsv,l=e.hex,d=e.renderers,h=e.styles,u=h===void 0?{}:h,f=e.className,g=f===void 0?"":f,y=e.defaultView,b=kt(lo({default:{picker:{width:r,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("+a.r+", "+a.g+", "+a.b+", "+a.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:o});return m.createElement("div",{style:b.picker,className:"chrome-picker "+g},m.createElement("div",{style:b.saturation},m.createElement(o_,{style:b.Saturation,hsl:i,hsv:s,pointer:Ugt,onChange:n})),m.createElement("div",{style:b.body},m.createElement("div",{style:b.controls,className:"flexbox-fix"},m.createElement("div",{style:b.color},m.createElement("div",{style:b.swatch},m.createElement("div",{style:b.active}),m.createElement(Ru,{renderers:d}))),m.createElement("div",{style:b.toggles},m.createElement("div",{style:b.hue},m.createElement(ju,{style:b.Hue,hsl:i,pointer:IL,onChange:n})),m.createElement("div",{style:b.alpha},m.createElement(ZO,{style:b.Alpha,rgb:a,hsl:i,pointer:IL,renderers:d,onChange:n})))),m.createElement(QU,{rgb:a,hsl:i,hex:l,view:y,onChange:n,disableAlpha:o})))};pD.propTypes={width:ye.oneOfType([ye.string,ye.number]),disableAlpha:ye.bool,styles:ye.object,defaultView:ye.oneOf(["hex","rgb","hsl"])};pD.defaultProps={width:225,disableAlpha:!1,styles:{}};const Vgt=co(pD);var qgt=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.active,s=kt({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:iD(r),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:i,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return m.createElement(ec,{style:s.color,color:r,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},m.createElement("div",{style:s.dot}))},Ggt=function(e){var r=e.hex,n=e.rgb,o=e.onChange,a=kt({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},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"}}}),i=function(l,d){l.r||l.g||l.b?o({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},d):o({hex:l.hex,source:"hex"},d)};return m.createElement("div",{style:a.fields,className:"flexbox-fix"},m.createElement("div",{style:a.active}),m.createElement(Lt,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:r,onChange:i}),m.createElement(Lt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:i}),m.createElement(Lt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:i}),m.createElement(Lt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:i}))},hD=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.colors,a=e.hex,i=e.rgb,s=e.styles,l=s===void 0?{}:s,d=e.className,h=d===void 0?"":d,u=kt(lo({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),f=function(y,b){y.hex?Vs(y.hex)&&r({hex:y.hex,source:"hex"},b):r(y,b)};return m.createElement(zf,{style:u.Compact,styles:l},m.createElement("div",{style:u.compact,className:"compact-picker "+h},m.createElement("div",null,tc(o,function(g){return m.createElement(qgt,{key:g,color:g,active:g.toLowerCase()===a,onClick:f,onSwatchHover:n})}),m.createElement("div",{style:u.clear})),m.createElement(Ggt,{hex:a,rgb:i,onChange:f})))};hD.propTypes={colors:ye.arrayOf(ye.string),styles:ye.object};hD.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"],styles:{}};co(hD);var Xgt=function(e){var r=e.hover,n=e.color,o=e.onClick,a=e.onSwatchHover,i={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=kt({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:i}},{hover:r});return m.createElement("div",{style:s.swatch},m.createElement(ec,{color:n,onClick:o,onHover:a,focusStyle:i}))};const Jgt=KO.handleHover(Xgt);var fD=function(e){var r=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,i=e.triangle,s=e.styles,l=s===void 0?{}:s,d=e.className,h=d===void 0?"":d,u=kt(lo({default:{card:{width:r,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)"}}},l),{"hide-triangle":i==="hide","top-left-triangle":i==="top-left","top-right-triangle":i==="top-right","bottom-left-triangle":i==="bottom-left","bottom-right-triangle":i==="bottom-right"}),f=function(y,b){return o({hex:y,source:"hex"},b)};return m.createElement("div",{style:u.card,className:"github-picker "+h},m.createElement("div",{style:u.triangleShadow}),m.createElement("div",{style:u.triangle}),tc(n,function(g){return m.createElement(Jgt,{color:g,key:g,onClick:f,onSwatchHover:a})}))};fD.propTypes={width:ye.oneOfType([ye.string,ye.number]),colors:ye.arrayOf(ye.string),triangle:ye.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:ye.object};fD.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};co(fD);var Ygt=function(e){var r=e.direction,n=kt({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:r==="vertical"});return m.createElement("div",{style:n.picker})},Kgt=Object.assign||function(t){for(var e=1;e.5});return m.createElement("div",{style:n.picker})},tvt=function(){var e=kt({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 m.createElement("div",{style:e.pointer},m.createElement("div",{style:e.left},m.createElement("div",{style:e.leftInside})),m.createElement("div",{style:e.right},m.createElement("div",{style:e.rightInside})))},ML=function(e){var r=e.onClick,n=e.label,o=e.children,a=e.active,i=kt({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:a});return m.createElement("div",{style:i.button,onClick:r},n||o)},rvt=function(e){var r=e.rgb,n=e.currentColor,o=kt({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.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 m.createElement("div",null,m.createElement("div",{style:o.label},"new"),m.createElement("div",{style:o.swatches},m.createElement("div",{style:o.new}),m.createElement("div",{style:o.current})),m.createElement("div",{style:o.label},"current"))},nvt=function(){function t(e,r){for(var n=0;n100&&(h.a=100),h.a/=100,r({h:o.h,s:o.s,l:o.l,a:h.a,source:"rgb"},u))};return m.createElement("div",{style:s.fields,className:"flexbox-fix"},m.createElement("div",{style:s.double},m.createElement(Lt,{style:{input:s.input,label:s.label},label:"hex",value:a.replace("#",""),onChange:l})),m.createElement("div",{style:s.single},m.createElement(Lt,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.single},m.createElement(Lt,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.single},m.createElement(Lt,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.alpha},m.createElement(Lt,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:l,dragLabel:"true",dragMax:"100"})))},lvt=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(i,d)&&(l[d]=i[d]);return l}var a=24;return Dg.default=function(i){var s=i.fill,l=s===void 0?"currentColor":s,d=i.width,h=d===void 0?a:d,u=i.height,f=u===void 0?a:u,g=i.style,y=g===void 0?{}:g,b=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:l,width:h,height:f},y)},b),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},Dg}var hvt=pvt();const fvt=so(hvt);var mvt=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.first,s=e.last,l=e.active,d=kt({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:iD(r),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:i,last:s,active:l,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return m.createElement(ec,{color:r,style:d.color,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},m.createElement("div",{style:d.check},m.createElement(fvt,null)))},gvt=function(e){var r=e.onClick,n=e.onSwatchHover,o=e.group,a=e.active,i=kt({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return m.createElement("div",{style:i.group},tc(o,function(s,l){return m.createElement(mvt,{key:s,color:s,active:s.toLowerCase()===a,first:l===0,last:l===o.length-1,onClick:r,onSwatchHover:n})}))},_D=function(e){var r=e.width,n=e.height,o=e.onChange,a=e.onSwatchHover,i=e.colors,s=e.hex,l=e.styles,d=l===void 0?{}:l,h=e.className,u=h===void 0?"":h,f=kt(lo({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},d)),g=function(b,x){return o({hex:b,source:"hex"},x)};return m.createElement("div",{style:f.picker,className:"swatches-picker "+u},m.createElement(zf,null,m.createElement("div",{style:f.overflow},m.createElement("div",{style:f.body},tc(i,function(y){return m.createElement(gvt,{key:y.toString(),group:y,active:s,onClick:g,onSwatchHover:a})}),m.createElement("div",{style:f.clear})))))};_D.propTypes={width:ye.oneOfType([ye.string,ye.number]),height:ye.oneOfType([ye.string,ye.number]),colors:ye.arrayOf(ye.arrayOf(ye.string)),styles:ye.object};_D.defaultProps={width:320,height:240,colors:[[ud[900],ud[700],ud[500],ud[300],ud[100]],[pd[900],pd[700],pd[500],pd[300],pd[100]],[hd[900],hd[700],hd[500],hd[300],hd[100]],[fd[900],fd[700],fd[500],fd[300],fd[100]],[md[900],md[700],md[500],md[300],md[100]],[gd[900],gd[700],gd[500],gd[300],gd[100]],[vd[900],vd[700],vd[500],vd[300],vd[100]],[yd[900],yd[700],yd[500],yd[300],yd[100]],[_d[900],_d[700],_d[500],_d[300],_d[100]],["#194D33",mh[700],mh[500],mh[300],mh[100]],[bd[900],bd[700],bd[500],bd[300],bd[100]],[wd[900],wd[700],wd[500],wd[300],wd[100]],[xd[900],xd[700],xd[500],xd[300],xd[100]],[Sd[900],Sd[700],Sd[500],Sd[300],Sd[100]],[Cd[900],Cd[700],Cd[500],Cd[300],Cd[100]],[$d[900],$d[700],$d[500],$d[300],$d[100]],[kd[900],kd[700],kd[500],kd[300],kd[100]],[Ed[900],Ed[700],Ed[500],Ed[300],Ed[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};co(_D);var bD=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,i=e.width,s=e.triangle,l=e.styles,d=l===void 0?{}:l,h=e.className,u=h===void 0?"":h,f=kt(lo({default:{card:{width:i,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"}}},d),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),g=function(b,x){Vs(b)&&r({hex:b,source:"hex"},x)};return m.createElement("div",{style:f.card,className:"twitter-picker "+u},m.createElement("div",{style:f.triangleShadow}),m.createElement("div",{style:f.triangle}),m.createElement("div",{style:f.body},tc(a,function(y,b){return m.createElement(ec,{key:b,color:y,hex:y,style:f.swatch,onClick:g,onHover:n,focusStyle:{boxShadow:"0 0 4px "+y}})}),m.createElement("div",{style:f.hash},"#"),m.createElement(Lt,{label:null,style:{input:f.input},value:o.replace("#",""),onChange:g}),m.createElement("div",{style:f.clear})))};bD.propTypes={width:ye.oneOfType([ye.string,ye.number]),triangle:ye.oneOf(["hide","top-left","top-right"]),colors:ye.arrayOf(ye.string),styles:ye.object};bD.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};co(bD);var wD=function(e){var r=kt({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 m.createElement("div",{style:r.picker})};wD.propTypes={hsl:ye.shape({h:ye.number,s:ye.number,l:ye.number,a:ye.number})};wD.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var xD=function(e){var r=kt({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 m.createElement("div",{style:r.picker})};xD.propTypes={hsl:ye.shape({h:ye.number,s:ye.number,l:ye.number,a:ye.number})};xD.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var vvt=function(e){var r=e.onChange,n=e.rgb,o=e.hsl,a=e.hex,i=e.hsv,s=function(g,y){if(g.hex)Vs(g.hex)&&r({hex:g.hex,source:"hex"},y);else if(g.rgb){var b=g.rgb.split(",");sS(g.rgb,"rgb")&&r({r:b[0],g:b[1],b:b[2],a:1,source:"rgb"},y)}else if(g.hsv){var x=g.hsv.split(",");sS(g.hsv,"hsv")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),x[1]==1?x[1]=.01:x[2]==1&&(x[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsv"},y))}else if(g.hsl){var S=g.hsl.split(",");sS(g.hsl,"hsl")&&(S[2]=S[2].replace("%",""),S[1]=S[1].replace("%",""),S[0]=S[0].replace("°",""),u[1]==1?u[1]=.01:u[2]==1&&(u[2]=.01),r({h:Number(S[0]),s:Number(S[1]),v:Number(S[2]),source:"hsl"},y))}},l=kt({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"}}}),d=n.r+", "+n.g+", "+n.b,h=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.l*100)+"%",u=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.v*100)+"%";return m.createElement("div",{style:l.wrap,className:"flexbox-fix"},m.createElement("div",{style:l.fields},m.createElement("div",{style:l.double},m.createElement(Lt,{style:{input:l.input,label:l.label},label:"hex",value:a,onChange:s})),m.createElement("div",{style:l.column},m.createElement("div",{style:l.single},m.createElement(Lt,{style:{input:l.input2,label:l.label2},label:"rgb",value:d,onChange:s})),m.createElement("div",{style:l.single},m.createElement(Lt,{style:{input:l.input2,label:l.label2},label:"hsv",value:u,onChange:s})),m.createElement("div",{style:l.single},m.createElement(Lt,{style:{input:l.input2,label:l.label2},label:"hsl",value:h,onChange:s})))))},SD=function(e){var r=e.width,n=e.onChange,o=e.rgb,a=e.hsl,i=e.hsv,s=e.hex,l=e.header,d=e.styles,h=d===void 0?{}:d,u=e.className,f=u===void 0?"":u,g=kt(lo({default:{picker:{width:r,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("+o.r+", "+o.g+", "+o.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"}}},h));return m.createElement("div",{style:g.picker,className:"google-picker "+f},m.createElement("div",{style:g.head},l),m.createElement("div",{style:g.swatch}),m.createElement("div",{style:g.saturation},m.createElement(o_,{hsl:a,hsv:i,pointer:wD,onChange:n})),m.createElement("div",{style:g.body},m.createElement("div",{style:g.controls,className:"flexbox-fix"},m.createElement("div",{style:g.hue},m.createElement(ju,{style:g.Hue,hsl:a,radius:"4px",pointer:xD,onChange:n}))),m.createElement(vvt,{rgb:o,hsl:a,hex:s,hsv:i,onChange:n})))};SD.propTypes={width:ye.oneOfType([ye.string,ye.number]),styles:ye.object,header:ye.string};SD.defaultProps={width:652,styles:{},header:"Color picker"};co(SD);const ha={color:{width:36,height:14,borderRadius:2},delButton:{marginTop:16},swatch:{mt:"16px",p:"5px",backgroundColor:"background.paper",borderRadius:"1px",boxShadow:"0 0 0 1px rgba(0,0,0,.1)",display:"inline-block",cursor:"pointer",verticalAlign:"middle"},swatchDisabled:{opacity:.5,cursor:"default"},popover:{"& .MuiPaper-root":{textAlign:"right",backgroundColor:"#00000000",boxShadow:"none"}},popoverList:{padding:0},closeButton:t=>({backgroundColor:`${t.palette.background.paper} !important`,borderRadius:"0 0 25% 25%","&:hover":{backgroundColor:`${t.palette.secondary.main} !important`}}),cover:{position:"fixed",top:0,right:0,bottom:0,left:0},textDense:{mt:0,mb:0},picker:t=>({background:`${t.palette.background.paper} !important`}),iconButton:{width:16,height:16},button:{width:32,height:32,minWidth:32,minHeight:32}};class Ai extends A.Component{constructor(r){super(r);X(this,"handleClick",r=>{this.setState({displayColorPicker:!this.state.displayColorPicker,anchorEl:this.state.displayColorPicker?null:r.currentTarget})});X(this,"handleClose",()=>{this.setState({displayColorPicker:!1,anchorEl:null})});X(this,"handleChange",r=>{this.setState({color:r},()=>this.props.onChange&&this.props.onChange(Ai.getColor(r)))});this.state={displayColorPicker:!1,color:this.props.value||this.props.color||"",anchorEl:null}}static getColor(r,n){if(r&&typeof r=="object"){const o=r;if(o.rgb)return n?`#${o.rgb.r.toString(16).padStart(2,"0")}${o.rgb.g.toString(16).padStart(2,"0")}${o.rgb.b.toString(16).padStart(2,"0")}`:`rgba(${o.rgb.r},${o.rgb.g},${o.rgb.b},${o.rgb.a})`;const a=r;return n?`#${a.r.toString(16).padStart(2,"0")}${a.g.toString(16).padStart(2,"0")}${a.b.toString(16).padStart(2,"0")}`:`rgba(${a.r},${a.g},${a.b},${a.a})`}return typeof r=="string"?n?Ai.rgb2hex(r||""):r||"":""}static rgb2hex(r){const n=r.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(n){const o=parseInt(n[1],10).toString(16).padStart(2,"0"),a=parseInt(n[2],10).toString(16).padStart(2,"0"),i=parseInt(n[3],10).toString(16).padStart(2,"0");return(n==null?void 0:n.length)===4?`#${o}${a}${i}`:r}return r}componentDidUpdate(r,n){const o=Ai.getColor(this.props.color||this.props.value||"");o!==n.color&&this.setState({color:o})}renderCustomPalette(){return this.props.customPalette?m.createElement("div",{style:{width:"100%",display:"flex",flexWrap:"wrap"}},this.props.customPalette.map(r=>m.createElement(tt,{style:ha.button,key:r,onClick:()=>{this.handleChange(r),setTimeout(()=>this.handleClose(),300)}},m.createElement("div",{style:{...ha.iconButton,background:r}})))):null}render(){var o;const r={...this.props.style||{}};r.position="relative";const{color:n}=this.state;return m.createElement(Re,{component:"div",style:r,sx:this.props.sx||void 0,className:this.props.className||""},this.props.noInputField?null:m.createElement(Ht,{disabled:this.props.disabled,variant:"standard",id:"ar_color_picker_name",label:this.props.label||this.props.name,value:n||"",margin:"dense",sx:{"&.MuiFormControl-root":ha.textDense,width:n?"calc(100% - 80px)":"calc(100% - 56px)",mr:n?void 0:1},onChange:a=>this.handleChange(a.target.value)}),!this.props.noInputField&&n?m.createElement(Ie,{disabled:this.props.disabled,onClick:()=>this.handleChange(""),size:"small",style:this.props.label||this.props.name?ha.delButton:void 0},m.createElement(Ta,null)):null,m.createElement(Re,{component:"div",onClick:a=>!this.props.disabled&&this.handleClick(a),title:P.t("ra_Select color"),sx:{...ha.swatch,...this.props.disabled?ha.swatchDisabled:void 0,background:n?void 0:"transparent",border:n?void 0:"1px dashed #ccc",boxSizing:"border-box",marginTop:this.props.noInputField||!(this.props.label||this.props.name)?0:void 0}},m.createElement("div",{style:{...ha.color,background:Ai.getColor(n),width:this.props.noInputField?this.props.barWidth||16:this.props.barWidth||36}})),this.state.displayColorPicker&&!this.props.disabled?m.createElement(eu,{sx:{...ha.popover,"&. MuiMenu-list":ha.popoverList},anchorEl:this.state.anchorEl,open:!0,onClose:()=>this.handleClose()},m.createElement(Vgt,{color:this.state.color||void 0,onChangeComplete:a=>this.handleChange(a.rgb),styles:{default:{picker:{backgroundColor:((o=this.props.theme)==null?void 0:o.palette.background.paper)||"#888"}}}}),n&&this.props.noInputField?m.createElement(Ie,{sx:ha.closeButton,onClick:()=>this.handleChange("")},m.createElement(Ta,null)):null,m.createElement(Ie,{sx:ha.closeButton,onClick:()=>this.handleClose()},m.createElement(Ar,null)),this.renderCustomPalette()):null)}}var cS={exports:{}},NL;function di(){return NL||(NL=1,function(t,e){(function(n,o){t.exports=o()})(globalThis,()=>(()=>{var r={949:(i,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CronParser=void 0;var d=l(515),h=function(){function u(f,g,y){g===void 0&&(g=!0),y===void 0&&(y=!1),this.expression=f,this.dayOfWeekStartIndexZero=g,this.monthStartIndexZero=y}return u.prototype.parse=function(){var f,g,y=(f=this.expression)!==null&&f!==void 0?f:"";if(y.startsWith("@")){var b=this.parseSpecial(this.expression);g=this.extractParts(b)}else g=this.extractParts(this.expression);return this.normalize(g),this.validate(g),g},u.prototype.parseSpecial=function(f){var g={"@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 * * * *"},y=g[f];if(!y)throw new Error("Unknown special expression.");return y},u.prototype.extractParts=function(f){if(!this.expression)throw new Error("cron expression is empty");for(var g=f.trim().split(/[ ]+/),y=0;y7)throw new Error("Expression has ".concat(g.length," parts; too many!"));return g},u.prototype.normalize=function(f){var g=this;if(f[3]=f[3].replace("?","*"),f[5]=f[5].replace("?","*"),f[2]=f[2].replace("?","*"),f[0].indexOf("0/")==0&&(f[0]=f[0].replace("0/","*/")),f[1].indexOf("0/")==0&&(f[1]=f[1].replace("0/","*/")),f[2].indexOf("0/")==0&&(f[2]=f[2].replace("0/","*/")),f[3].indexOf("1/")==0&&(f[3]=f[3].replace("1/","*/")),f[4].indexOf("1/")==0&&(f[4]=f[4].replace("1/","*/")),f[6].indexOf("1/")==0&&(f[6]=f[6].replace("1/","*/")),f[5]=f[5].replace(/(^\d)|([^#/\s]\d)/g,function(k){var O=k.replace(/\D/,""),M=O;return g.dayOfWeekStartIndexZero?O=="7"&&(M="0"):M=(parseInt(O)-1).toString(),k.replace(O,M)}),f[5]=="L"&&(f[5]="6"),f[3]=="?"&&(f[3]="*"),f[3].indexOf("W")>-1&&(f[3].indexOf(",")>-1||f[3].indexOf("-")>-1))throw new 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 y={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var b in y)f[5]=f[5].replace(new RegExp(b,"gi"),y[b].toString());f[4]=f[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(k){var O=k.replace(/\D/,""),M=O;return g.monthStartIndexZero&&(M=(parseInt(O)+1).toString()),k.replace(O,M)});var x={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 S in x)f[4]=f[4].replace(new RegExp(S,"gi"),x[S].toString());f[0]=="0"&&(f[0]=""),!/\*|\-|\,|\//.test(f[2])&&(/\*|\//.test(f[1])||/\*|\//.test(f[0]))&&(f[2]+="-".concat(f[2]));for(var T=0;T-1&&!/^\*|\-|\,/.test(f[T])){var E=null;switch(T){case 4:E="12";break;case 5:E="6";break;case 6:E="9999";break;default:E=null;break}if(E!==null){var $=f[T].split("/");f[T]="".concat($[0],"-").concat(E,"/").concat($[1])}}},u.prototype.validate=function(f){this.assertNoInvalidCharacters("DOW",f[5]),this.assertNoInvalidCharacters("DOM",f[3]),this.validateRange(f)},u.prototype.validateRange=function(f){d.default.secondRange(f[0]),d.default.minuteRange(f[1]),d.default.hourRange(f[2]),d.default.dayOfMonthRange(f[3]),d.default.monthRange(f[4],this.monthStartIndexZero),d.default.dayOfWeekRange(f[5],this.dayOfWeekStartIndexZero)},u.prototype.assertNoInvalidCharacters=function(f,g){var y=g.match(/[A-KM-VX-Z]+/gi);if(y&&y.length)throw new Error("".concat(f," part contains invalid values: '").concat(y.toString(),"'"))},u}();s.CronParser=h},333:(i,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ExpressionDescriptor=void 0;var d=l(823),h=l(949),u=function(){function f(g,y){if(this.expression=g,this.options=y,this.expressionParts=new Array(5),!this.options.locale&&f.defaultLocale&&(this.options.locale=f.defaultLocale),!f.locales[this.options.locale]){var b=Object.keys(f.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(b,"'.")),this.options.locale=b}this.i18n=f.locales[this.options.locale],y.use24HourTimeFormat===void 0&&(y.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return f.toString=function(g,y){var b=y===void 0?{}:y,x=b.throwExceptionOnParseError,S=x===void 0?!0:x,T=b.verbose,E=T===void 0?!1:T,$=b.dayOfWeekStartIndexZero,k=$===void 0?!0:$,O=b.monthStartIndexZero,M=O===void 0?!1:O,R=b.use24HourTimeFormat,j=b.locale,I=j===void 0?null:j,z=b.tzOffset,W=z===void 0?0:z,L={throwExceptionOnParseError:S,verbose:E,dayOfWeekStartIndexZero:k,monthStartIndexZero:M,use24HourTimeFormat:R,locale:I,tzOffset:W},F=new f(g,L);return F.getFullDescription()},f.initialize=function(g,y){y===void 0&&(y="en"),f.specialCharacters=["/","-",",","*"],f.defaultLocale=y,g.load(f.locales)},f.prototype.getFullDescription=function(){var g="";try{var y=new h.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=y.parse();var b=this.getTimeOfDayDescription(),x=this.getDayOfMonthDescription(),S=this.getMonthDescription(),T=this.getDayOfWeekDescription(),E=this.getYearDescription();g+=b+x+T+S+E,g=this.transformVerbosity(g,!!this.options.verbose),g=g.charAt(0).toLocaleUpperCase()+g.substr(1)}catch($){if(!this.options.throwExceptionOnParseError)g=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat($)}return g},f.prototype.getTimeOfDayDescription=function(){var g=this.expressionParts[0],y=this.expressionParts[1],b=this.expressionParts[2],x="";if(!d.StringUtilities.containsAny(y,f.specialCharacters)&&!d.StringUtilities.containsAny(b,f.specialCharacters)&&!d.StringUtilities.containsAny(g,f.specialCharacters))x+=this.i18n.atSpace()+this.formatTime(b,y,g);else if(!g&&y.indexOf("-")>-1&&!(y.indexOf(",")>-1)&&!(y.indexOf("/")>-1)&&!d.StringUtilities.containsAny(b,f.specialCharacters)){var S=y.split("-");x+=d.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(b,S[0],""),this.formatTime(b,S[1],""))}else if(!g&&b.indexOf(",")>-1&&b.indexOf("-")==-1&&b.indexOf("/")==-1&&!d.StringUtilities.containsAny(y,f.specialCharacters)){var T=b.split(",");x+=this.i18n.at();for(var E=0;E1){var S=x[x.length-1].index;b=b.substring(0,S)+":59"+b.substring(S+3)}}return b},f.prototype.getDayOfWeekDescription=function(){var g=this,y=this.i18n.daysOfTheWeek(),b=null;return this.expressionParts[5]=="*"?b="":b=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(x,S){var T=x;x.indexOf("#")>-1?T=x.substring(0,x.indexOf("#")):x.indexOf("L")>-1&&(T=T.replace("L",""));var E=parseInt(T);if(g.options.tzOffset){var $=g.expressionParts[2],k=parseInt($)+(g.options.tzOffset?g.options.tzOffset:0);k>=24?E++:k<0&&E--,E>6?E=0:E<0&&(E=6)}var O=g.i18n.daysOfTheWeekInCase?g.i18n.daysOfTheWeekInCase(S)[E]:y[E];if(x.indexOf("#")>-1){var M=null,R=x.substring(x.indexOf("#")+1),j=x.substring(0,x.indexOf("#"));switch(R){case"1":M=g.i18n.first(j);break;case"2":M=g.i18n.second(j);break;case"3":M=g.i18n.third(j);break;case"4":M=g.i18n.fourth(j);break;case"5":M=g.i18n.fifth(j);break}O=M+" "+O}return O},function(x){return parseInt(x)==1?"":d.StringUtilities.format(g.i18n.commaEveryX0DaysOfTheWeek(x),x)},function(x){var S=x.substring(0,x.indexOf("-")),T=g.expressionParts[3]!="*";return T?g.i18n.commaAndX0ThroughX1(S):g.i18n.commaX0ThroughX1(S)},function(x){var S=null;if(x.indexOf("#")>-1){var T=x.substring(x.indexOf("#")+1),E=x.substring(0,x.indexOf("#"));S=g.i18n.commaOnThe(T,E).trim()+g.i18n.spaceX0OfTheMonth()}else if(x.indexOf("L")>-1)S=g.i18n.commaOnTheLastX0OfTheMonth(x.replace("L",""));else{var $=g.expressionParts[3]!="*";S=$?g.i18n.commaAndOnX0():g.i18n.commaOnlyOnX0(x)}return S}),b},f.prototype.getMonthDescription=function(){var g=this,y=this.i18n.monthsOfTheYear(),b=this.getSegmentDescription(this.expressionParts[4],"",function(x,S){return S&&g.i18n.monthsOfTheYearInCase?g.i18n.monthsOfTheYearInCase(S)[parseInt(x)-1]:y[parseInt(x)-1]},function(x){return parseInt(x)==1?"":d.StringUtilities.format(g.i18n.commaEveryX0Months(x),x)},function(x){return g.i18n.commaMonthX0ThroughMonthX1()||g.i18n.commaX0ThroughX1()},function(x){return g.i18n.commaOnlyInMonthX0?g.i18n.commaOnlyInMonthX0():g.i18n.commaOnlyInX0()});return b},f.prototype.getDayOfMonthDescription=function(){var g=this,y=null,b=this.expressionParts[3];switch(b){case"L":y=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":y=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var x=b.match(/(\d{1,2}W)|(W\d{1,2})/);if(x){var S=parseInt(x[0].replace("W","")),T=S==1?this.i18n.firstWeekday():d.StringUtilities.format(this.i18n.weekdayNearestDayX0(),S.toString());y=d.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),T);break}else{var E=b.match(/L-(\d{1,2})/);if(E){var $=E[1];y=d.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth($),$);break}else{if(b=="*"&&this.expressionParts[5]!="*")return"";y=this.getSegmentDescription(b,this.i18n.commaEveryDay(),function(k){return k=="L"?g.i18n.lastDay():g.i18n.dayX0?d.StringUtilities.format(g.i18n.dayX0(),k):k},function(k){return k=="1"?g.i18n.commaEveryDay():g.i18n.commaEveryX0Days(k)},function(k){return g.i18n.commaBetweenDayX0AndX1OfTheMonth(k)},function(k){return g.i18n.commaOnDayX0OfTheMonth(k)})}break}}return y},f.prototype.getYearDescription=function(){var g=this,y=this.getSegmentDescription(this.expressionParts[6],"",function(b){return/^\d+$/.test(b)?new Date(parseInt(b),1).getFullYear().toString():b},function(b){return d.StringUtilities.format(g.i18n.commaEveryX0Years(b),b)},function(b){return g.i18n.commaYearX0ThroughYearX1()||g.i18n.commaX0ThroughX1()},function(b){return g.i18n.commaOnlyInYearX0?g.i18n.commaOnlyInYearX0():g.i18n.commaOnlyInX0()});return y},f.prototype.getSegmentDescription=function(g,y,b,x,S,T){var E=null,$=g.indexOf("/")>-1,k=g.indexOf("-")>-1,O=g.indexOf(",")>-1;if(!g)E="";else if(g==="*")E=y;else if(!$&&!k&&!O)E=d.StringUtilities.format(T(g),b(g));else if(O){for(var M=g.split(","),R="",j=0;j0&&M.length>2&&(R+=",",j0&&M.length>1&&(j==M.length-1||M.length==2)&&(R+="".concat(this.i18n.spaceAnd()," ")),M[j].indexOf("/")>-1||M[j].indexOf("-")>-1){var I=M[j].indexOf("-")>-1&&M[j].indexOf("/")==-1,z=this.getSegmentDescription(M[j],y,b,x,I?this.i18n.commaX0ThroughX1:S,T);I&&(z=z.replace(", ","")),R+=z}else $?R+=this.getSegmentDescription(M[j],y,b,x,S,T):R+=b(M[j]);$?E=R:E=d.StringUtilities.format(T(g),R)}else if($){var M=g.split("/");if(E=d.StringUtilities.format(x(M[1]),M[1]),M[0].indexOf("-")>-1){var W=this.generateRangeSegmentDescription(M[0],S,b);W.indexOf(", ")!=0&&(E+=", "),E+=W}else if(M[0].indexOf("*")==-1){var L=d.StringUtilities.format(T(M[0]),b(M[0]));L=L.replace(", ",""),E+=d.StringUtilities.format(this.i18n.commaStartingX0(),L)}}else k&&(E=this.generateRangeSegmentDescription(g,S,b));return E},f.prototype.generateRangeSegmentDescription=function(g,y,b){var x="",S=g.split("-"),T=b(S[0],1),E=b(S[1],2),$=y(g);return x+=d.StringUtilities.format($,T,E),x},f.prototype.formatTime=function(g,y,b){var x=0,S=0;this.options.tzOffset&&(x=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),S=parseFloat((this.options.tzOffset%1).toFixed(2)),S!=0&&(S*=60));var T=parseInt(g)+x,E=parseInt(y)+S;E>=60?(E-=60,T+=1):E<0&&(E+=60,T-=1),T>=24?T=T-24:T<0&&(T=24+T);var $="",k=!1;this.options.use24HourTimeFormat||(k=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),$=k?"".concat(this.getPeriod(T)," "):" ".concat(this.getPeriod(T)),T>12&&(T-=12),T===0&&(T=12));var O="";return b&&(O=":".concat(("00"+b).substring(b.length))),"".concat(k?$:"").concat(("00"+T.toString()).substring(T.toString().length),":").concat(("00"+E.toString()).substring(E.toString().length)).concat(O).concat(k?"":$)},f.prototype.transformVerbosity=function(g,y){return y||(g=g.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),g=g.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),g=g.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),g=g.replace(/\, ?$/,"")),g},f.prototype.getPeriod=function(g){return g>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},f.locales={},f}();s.ExpressionDescriptor=u},747:(i,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.enLocaleLoader=void 0;var d=l(486),h=function(){function u(){}return u.prototype.load=function(f){f.en=new d.en},u}();s.enLocaleLoader=h},486:(i,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.en=void 0;var l=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!1},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},d.prototype.everyMinute=function(){return"every minute"},d.prototype.everyHour=function(){return"every hour"},d.prototype.atSpace=function(){return"At "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},d.prototype.at=function(){return"At"},d.prototype.spaceAnd=function(){return" and"},d.prototype.everySecond=function(){return"every second"},d.prototype.everyX0Seconds=function(){return"every %s seconds"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},d.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},d.prototype.everyX0Minutes=function(){return"every %s minutes"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},d.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},d.prototype.everyX0Hours=function(){return"every %s hours"},d.prototype.betweenX0AndX1=function(){return"between %s and %s"},d.prototype.atX0=function(){return"at %s"},d.prototype.commaEveryDay=function(){return", every day"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},d.prototype.commaX0ThroughX1=function(){return", %s through %s"},d.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},d.prototype.first=function(){return"first"},d.prototype.second=function(){return"second"},d.prototype.third=function(){return"third"},d.prototype.fourth=function(){return"fourth"},d.prototype.fifth=function(){return"fifth"},d.prototype.commaOnThe=function(){return", on the "},d.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},d.prototype.lastDay=function(){return"the last day"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},d.prototype.commaOnlyOnX0=function(){return", only on %s"},d.prototype.commaAndOnX0=function(){return", and on %s"},d.prototype.commaEveryX0Months=function(){return", every %s months"},d.prototype.commaOnlyInX0=function(){return", only in %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},d.prototype.firstWeekday=function(){return"first weekday"},d.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},d.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},d.prototype.commaEveryX0Days=function(){return", every %s days"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},d.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},d.prototype.commaEveryHour=function(){return", every hour"},d.prototype.commaEveryX0Years=function(){return", every %s years"},d.prototype.commaStartingX0=function(){return", starting %s"},d.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},d.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},d}();s.en=l},515:(i,s)=>{Object.defineProperty(s,"__esModule",{value:!0});function l(h,u){if(!h)throw new Error(u)}var d=function(){function h(){}return h.secondRange=function(u){for(var f=u.split(","),g=0;g=0&&y<=59,"seconds part must be >= 0 and <= 59")}},h.minuteRange=function(u){for(var f=u.split(","),g=0;g=0&&y<=59,"minutes part must be >= 0 and <= 59")}},h.hourRange=function(u){for(var f=u.split(","),g=0;g=0&&y<=23,"hours part must be >= 0 and <= 23")}},h.dayOfMonthRange=function(u){for(var f=u.split(","),g=0;g=1&&y<=31,"DOM part must be >= 1 and <= 31")}},h.monthRange=function(u,f){for(var g=u.split(","),y=0;y=1&&b<=12,f?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},h.dayOfWeekRange=function(u,f){for(var g=u.split(","),y=0;y=0&&b<=6,f?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},h}();s.default=d},823:(i,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.StringUtilities=void 0;var l=function(){function d(){}return d.format=function(h){for(var u=[],f=1;f-1})},d}();s.StringUtilities=l}},n={};function o(i){var s=n[i];if(s!==void 0)return s.exports;var l=n[i]={exports:{}};return r[i](l,l.exports,o),l.exports}var a={};return(()=>{var i=a;Object.defineProperty(i,"__esModule",{value:!0}),i.toString=void 0;var s=o(333),l=o(747);s.ExpressionDescriptor.initialize(new l.enLocaleLoader),i.default=s.ExpressionDescriptor;var d=s.ExpressionDescriptor.toString;i.toString=d})(),a})())}(cS)),cS.exports}var yvt=di();const _vt=so(yvt);var dS={exports:{}},RL;function bvt(){return RL||(RL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.fr=void 0;var h=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"toutes les minutes"},u.prototype.everyHour=function(){return"toutes les heures"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},u.prototype.atSpace=function(){return"À "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},u.prototype.at=function(){return"À"},u.prototype.spaceAnd=function(){return" et"},u.prototype.everySecond=function(){return"toutes les secondes"},u.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},u.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},u.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},u.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},u.prototype.everyX0Hours=function(){return"toutes les %s heures"},u.prototype.betweenX0AndX1=function(){return"de %s à %s"},u.prototype.atX0=function(){return"à %s"},u.prototype.commaEveryDay=function(){return", tous les jours"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},u.prototype.commaX0ThroughX1=function(){return", de %s à %s"},u.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},u.prototype.first=function(){return"premier"},u.prototype.second=function(){return"second"},u.prototype.third=function(){return"troisième"},u.prototype.fourth=function(){return"quatrième"},u.prototype.fifth=function(){return"cinquième"},u.prototype.commaOnThe=function(){return", le "},u.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},u.prototype.lastDay=function(){return"le dernier jour"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},u.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},u.prototype.commaAndOnX0=function(){return", et %s"},u.prototype.commaEveryX0Months=function(){return", tous les %s mois"},u.prototype.commaOnlyInX0=function(){return", uniquement en %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},u.prototype.firstWeekday=function(){return"premier jour ouvrable"},u.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},u.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},u.prototype.commaEveryX0Days=function(){return", tous les %s jours"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},u.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},u.prototype.commaEveryX0Years=function(){return", tous les %s ans"},u.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},u.prototype.commaStartingX0=function(){return", à partir de %s"},u.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},u.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},u}();return d.fr=h,l().locales.fr=new h,i})())}(dS)),dS.exports}bvt();var uS={exports:{}},jL;function wvt(){return jL||(jL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.es=void 0;var h=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.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."},u.prototype.at=function(){return"A las"},u.prototype.atSpace=function(){return"A las "},u.prototype.atX0=function(){return"a las %s"},u.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},u.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},u.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},u.prototype.commaEveryDay=function(){return", cada día"},u.prototype.commaEveryX0Days=function(){return", cada %s días"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},u.prototype.commaEveryX0Months=function(){return", cada %s meses"},u.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},u.prototype.commaOnlyInX0=function(){return", sólo en %s"},u.prototype.commaOnlyOnX0=function(){return", sólo el %s"},u.prototype.commaAndOnX0=function(){return", y el %s"},u.prototype.commaOnThe=function(){return", en el "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},u.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},u.prototype.commaX0ThroughX1=function(){return", de %s a %s"},u.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},u.prototype.everyHour=function(){return"cada hora"},u.prototype.everyMinute=function(){return"cada minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},u.prototype.everySecond=function(){return"cada segundo"},u.prototype.everyX0Hours=function(){return"cada %s horas"},u.prototype.everyX0Minutes=function(){return"cada %s minutos"},u.prototype.everyX0Seconds=function(){return"cada %s segundos"},u.prototype.fifth=function(){return"quinto"},u.prototype.first=function(){return"primero"},u.prototype.firstWeekday=function(){return"primer día de la semana"},u.prototype.fourth=function(){return"cuarto"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},u.prototype.second=function(){return"segundo"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},u.prototype.spaceAnd=function(){return" y"},u.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},u.prototype.lastDay=function(){return"el último día"},u.prototype.third=function(){return"tercer"},u.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},u.prototype.commaEveryX0Years=function(){return", cada %s años"},u.prototype.commaStartingX0=function(){return", comenzando %s"},u.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},u.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},u}();return d.es=h,l().locales.es=new h,i})())}(uS)),uS.exports}wvt();var pS={exports:{}},LL;function xvt(){return LL||(LL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.de=void 0;var h=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"jede Minute"},u.prototype.everyHour=function(){return"jede Stunde"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},u.prototype.atSpace=function(){return"Um "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},u.prototype.at=function(){return"Um"},u.prototype.spaceAnd=function(){return" und"},u.prototype.everySecond=function(){return"Jede Sekunde"},u.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},u.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},u.prototype.everyX0Minutes=function(){return"alle %s Minuten"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},u.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},u.prototype.everyX0Hours=function(){return"alle %s Stunden"},u.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},u.prototype.atX0=function(){return"um %s"},u.prototype.commaEveryDay=function(){return", jeden Tag"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},u.prototype.commaX0ThroughX1=function(){return", %s bis %s"},u.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},u.prototype.first=function(){return"ersten"},u.prototype.second=function(){return"zweiten"},u.prototype.third=function(){return"dritten"},u.prototype.fourth=function(){return"vierten"},u.prototype.fifth=function(){return"fünften"},u.prototype.commaOnThe=function(){return", am "},u.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},u.prototype.lastDay=function(){return"der letzte Tag"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},u.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},u.prototype.commaAndOnX0=function(){return", und jeden %s"},u.prototype.commaEveryX0Months=function(){return", alle %s Monate"},u.prototype.commaOnlyInX0=function(){return", nur im %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},u.prototype.firstWeekday=function(){return"ersten Werktag"},u.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},u.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},u.prototype.commaEveryX0Days=function(){return", alle %s Tage"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},u.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},u.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},u.prototype.commaStartingX0=function(){return", beginnend %s"},u.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},u.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},u}();return d.de=h,l().locales.de=new h,i})())}(pS)),pS.exports}xvt();var hS={exports:{}},zL;function Svt(){return zL||(zL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.it=void 0;var h=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},u.prototype.at=function(){return"Alle"},u.prototype.atSpace=function(){return"Alle "},u.prototype.atX0=function(){return"alle %s"},u.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},u.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},u.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},u.prototype.commaEveryDay=function(){return", ogni giorno"},u.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},u.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},u.prototype.commaEveryX0Years=function(){return", ogni %s anni"},u.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},u.prototype.commaOnlyInX0=function(){return", solo in %s"},u.prototype.commaOnlyOnX0=function(){return", solo il %s"},u.prototype.commaAndOnX0=function(){return", e il %s"},u.prototype.commaOnThe=function(){return", il "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},u.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},u.prototype.commaX0ThroughX1=function(){return", %s al %s"},u.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},u.prototype.everyHour=function(){return"ogni ora"},u.prototype.everyMinute=function(){return"ogni minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},u.prototype.everySecond=function(){return"ogni secondo"},u.prototype.everyX0Hours=function(){return"ogni %s ore"},u.prototype.everyX0Minutes=function(){return"ogni %s minuti"},u.prototype.everyX0Seconds=function(){return"ogni %s secondi"},u.prototype.fifth=function(){return"quinto"},u.prototype.first=function(){return"primo"},u.prototype.firstWeekday=function(){return"primo giorno della settimana"},u.prototype.fourth=function(){return"quarto"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},u.prototype.second=function(){return"secondo"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},u.prototype.spaceAnd=function(){return" e"},u.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},u.prototype.lastDay=function(){return"l'ultimo giorno"},u.prototype.third=function(){return"terzo"},u.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},u.prototype.commaStartingX0=function(){return", a partire %s"},u.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},u.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},u}();return d.it=h,l().locales.it=new h,i})())}(hS)),hS.exports}Svt();var fS={exports:{}},FL;function Cvt(){return FL||(FL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:g=>{g.exports=r}},o={};function a(g){var y=o[g];if(y!==void 0)return y.exports;var b=o[g]={exports:{}};return n[g](b,b.exports,a),b.exports}a.n=g=>{var y=g&&g.__esModule?()=>g.default:()=>g;return a.d(y,{a:y}),y},a.d=(g,y)=>{for(var b in y)a.o(y,b)&&!a.o(g,b)&&Object.defineProperty(g,b,{enumerable:!0,get:y[b]})},a.o=(g,y)=>Object.prototype.hasOwnProperty.call(g,y),a.r=g=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.ru=void 0;var h=function(g,y){var b=Number(g);return b!==void 0?y[b%100>4&&b%100<20?2:[2,0,1,1,1,2][b%10<5?Math.abs(b)%10:5]]:y[2]},u=function(g,y){var b=Number(g);return b!==void 0?y[b===0?0:b===1||b===2||b===4?1:2]:y[1]},f=function(){function g(){}return g.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},g.prototype.atX0MinutesPastTheHourGt20=function(){return null},g.prototype.commaMonthX0ThroughMonthX1=function(){return null},g.prototype.commaYearX0ThroughYearX1=function(){return null},g.prototype.use24HourTimeFormatByDefault=function(){return!0},g.prototype.everyMinute=function(){return"каждую минуту"},g.prototype.everyHour=function(){return"каждый час"},g.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},g.prototype.atSpace=function(){return"В "},g.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},g.prototype.at=function(){return"В"},g.prototype.spaceAnd=function(){return" и"},g.prototype.everySecond=function(){return"каждую секунду"},g.prototype.everyX0Seconds=function(y){return h(y,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},g.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},g.prototype.atX0SecondsPastTheMinute=function(y){return h(y,["в %s секунду","в %s секунды","в %s секунд"])},g.prototype.everyX0Minutes=function(y){return h(y,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},g.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},g.prototype.atX0MinutesPastTheHour=function(y){return h(y,["в %s минуту","в %s минуты","в %s минут"])},g.prototype.everyX0Hours=function(y){return h(y,["каждый %s час","каждые %s часа","каждые %s часов"])},g.prototype.betweenX0AndX1=function(){return"с %s по %s"},g.prototype.atX0=function(){return"в %s"},g.prototype.commaEveryDay=function(){return", каждый день"},g.prototype.commaEveryX0DaysOfTheWeek=function(y){return h(y,["",", каждые %s дня недели",", каждые %s дней недели"])},g.prototype.commaX0ThroughX1=function(y){return y&&(y[0]=="2"||y[0]=="3")?", со %s по %s":", с %s по %s"},g.prototype.commaAndX0ThroughX1=function(y){return y&&(y[0]=="2"||y[0]=="3")?" и со %s по %s":" и с %s по %s"},g.prototype.first=function(y){return u(y,["первое","первый","первую"])},g.prototype.second=function(y){return u(y,["второе","второй","вторую"])},g.prototype.third=function(y){return u(y,["третье","третий","третью"])},g.prototype.fourth=function(y){return u(y,["четвертое","четвертый","четвертую"])},g.prototype.fifth=function(y){return u(y,["пятое","пятый","пятую"])},g.prototype.commaOnThe=function(y){return y==="2"?", во ":", в "},g.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},g.prototype.lastDay=function(){return"последний день"},g.prototype.commaOnTheLastX0OfTheMonth=function(y){return u(y,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},g.prototype.commaOnlyOnX0=function(y){return y&&y[0]==="2"?", только во %s":", только в %s"},g.prototype.commaAndOnX0=function(){return", и %s"},g.prototype.commaEveryX0Months=function(y){return h(y,[""," каждые %s месяца"," каждые %s месяцев"])},g.prototype.commaOnlyInMonthX0=function(){return", только %s"},g.prototype.commaOnlyInX0=function(){return", только в %s"},g.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},g.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},g.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(y){return h(y,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},g.prototype.firstWeekday=function(){return"первый будний день"},g.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},g.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},g.prototype.commaEveryX0Days=function(y){return h(y,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},g.prototype.commaBetweenDayX0AndX1OfTheMonth=function(y){return y&&y.substring(0,y.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},g.prototype.commaOnDayX0OfTheMonth=function(y){return y&&y[0]=="2"?", во %s число месяца":", в %s число месяца"},g.prototype.commaEveryX0Years=function(y){return h(y,[", каждый %s год",", каждые %s года",", каждые %s лет"])},g.prototype.commaStartingX0=function(){return", начало %s"},g.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},g.prototype.daysOfTheWeekInCase=function(y){return y===void 0&&(y=2),y==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},g.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},g.prototype.monthsOfTheYearInCase=function(y){return y==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},g}();return d.ru=f,l().locales.ru=new f,i})())}(fS)),fS.exports}Cvt();var mS={exports:{}},BL;function $vt(){return BL||(BL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.zh_CN=void 0;var h=function(){function u(){}return u.prototype.setPeriodBeforeTime=function(){return!0},u.prototype.pm=function(){return"下午"},u.prototype.am=function(){return"上午"},u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},u.prototype.use24HourTimeFormatByDefault=function(){return!1},u.prototype.everyMinute=function(){return"每分钟"},u.prototype.everyHour=function(){return"每小时"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},u.prototype.atSpace=function(){return"在"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},u.prototype.at=function(){return"在"},u.prototype.spaceAnd=function(){return" 和"},u.prototype.everySecond=function(){return"每秒"},u.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在每分钟的第 %s 到 %s 秒"},u.prototype.atX0SecondsPastTheMinute=function(){return"在每分钟的第 %s 秒"},u.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"在每小时的第 %s 到 %s 分钟"},u.prototype.atX0MinutesPastTheHour=function(){return"在每小时的第 %s 分钟"},u.prototype.everyX0Hours=function(){return"每隔 %s 小时"},u.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},u.prototype.atX0=function(){return"在%s"},u.prototype.commaEveryDay=function(){return", 每天"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},u.prototype.commaX0ThroughX1=function(){return", %s至%s"},u.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},u.prototype.first=function(){return"第一个"},u.prototype.second=function(){return"第二个"},u.prototype.third=function(){return"第三个"},u.prototype.fourth=function(){return"第四个"},u.prototype.fifth=function(){return"第五个"},u.prototype.commaOnThe=function(){return", 限每月的"},u.prototype.spaceX0OfTheMonth=function(){return"%s"},u.prototype.lastDay=function(){return"本月最后一天"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},u.prototype.commaOnlyOnX0=function(){return", 仅%s"},u.prototype.commaAndOnX0=function(){return", 或者为%s"},u.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},u.prototype.commaOnlyInX0=function(){return", 仅限%s"},u.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},u.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},u.prototype.firstWeekday=function(){return"第一个工作日"},u.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},u.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},u.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},u.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},u.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},u.prototype.commaStartingX0=function(){return", %s开始"},u.prototype.dayX0=function(){return" %s 号"},u.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},u.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u}();return d.zh_CN=h,l().locales.zh_CN=new h,i})())}(mS)),mS.exports}$vt();var gS={exports:{}},WL;function kvt(){return WL||(WL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.uk=void 0;var h=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"щохвилини"},u.prototype.everyHour=function(){return"щогодини"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},u.prototype.atSpace=function(){return"О "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},u.prototype.at=function(){return"О"},u.prototype.spaceAnd=function(){return" та"},u.prototype.everySecond=function(){return"Щосекунди"},u.prototype.everyX0Seconds=function(){return"кожні %s секунд"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},u.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},u.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},u.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},u.prototype.everyX0Hours=function(){return"кожні %s годин"},u.prototype.betweenX0AndX1=function(){return"між %s та %s"},u.prototype.atX0=function(){return"о %s"},u.prototype.commaEveryDay=function(){return", щоденно"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},u.prototype.commaX0ThroughX1=function(){return", %s по %s"},u.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},u.prototype.first=function(){return"перший"},u.prototype.second=function(){return"другий"},u.prototype.third=function(){return"третій"},u.prototype.fourth=function(){return"четвертий"},u.prototype.fifth=function(){return"п'ятий"},u.prototype.commaOnThe=function(){return", в "},u.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},u.prototype.lastDay=function(){return"останній день"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},u.prototype.commaOnlyOnX0=function(){return", тільки в %s"},u.prototype.commaAndOnX0=function(){return", і в %s"},u.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},u.prototype.commaOnlyInX0=function(){return", тільки в %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},u.prototype.firstWeekday=function(){return"перший будень"},u.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},u.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},u.prototype.commaEveryX0Days=function(){return", кожен %s день"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},u.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},u.prototype.commaEveryX0Years=function(){return", кожні %s роки"},u.prototype.commaStartingX0=function(){return", початок %s"},u.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},u.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},u}();return d.uk=h,l().locales.uk=new h,i})())}(gS)),gS.exports}kvt();var vS={exports:{}},HL;function Evt(){return HL||(HL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.pt_BR=void 0;var h=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},u.prototype.at=function(){return"às"},u.prototype.atSpace=function(){return"às "},u.prototype.atX0=function(){return"Às %s"},u.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},u.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},u.prototype.betweenX0AndX1=function(){return"entre %s e %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},u.prototype.commaEveryDay=function(){return", a cada dia"},u.prototype.commaEveryX0Days=function(){return", a cada %s dias"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},u.prototype.commaEveryX0Months=function(){return", a cada %s meses"},u.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},u.prototype.commaOnlyInX0=function(f){return f&&f.length>1&&f[1]==="-"?"somente %s":", somente em %s"},u.prototype.commaOnlyOnX0=function(f){return f&&f.length>1&&f[1]==="-"?", somente %s":", somente de %s"},u.prototype.commaAndOnX0=function(){return", e de %s"},u.prototype.commaOnThe=function(f,g){return g==="6"||g==="0"?", no":", na "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},u.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},u.prototype.commaX0ThroughX1=function(){return", de %s a %s"},u.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},u.prototype.everyHour=function(){return"a cada hora"},u.prototype.everyMinute=function(){return"a cada minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},u.prototype.everySecond=function(){return"a cada segundo"},u.prototype.everyX0Hours=function(){return"a cada %s horas"},u.prototype.everyX0Minutes=function(){return"a cada %s minutos"},u.prototype.everyX0Seconds=function(){return"a cada %s segundos"},u.prototype.fifth=function(f){return f==="6"||f==="0"?"quinto":"quinta"},u.prototype.first=function(f){return f==="6"||f==="0"?"primeiro":"primeira"},u.prototype.firstWeekday=function(){return"primeiro dia da semana"},u.prototype.fourth=function(f){return f==="6"||f==="0"?"quarto":"quarta"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},u.prototype.second=function(f){return f==="6"||f==="0"?"segundo":"segunda"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},u.prototype.spaceAnd=function(){return" e"},u.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},u.prototype.lastDay=function(){return"o último dia"},u.prototype.third=function(f){return f==="6"||f==="0"?"terceiro":"terceira"},u.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},u.prototype.commaEveryX0Years=function(){return", a cada %s anos"},u.prototype.commaStartingX0=function(){return", iniciando %s"},u.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},u.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},u}();return d.pt_BR=h,l().locales.pt_BR=new h,i})())}(vS)),vS.exports}Evt();var yS={exports:{}},UL;function Tvt(){return UL||(UL=1,function(t,e){(function(n,o){t.exports=o(di())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},o={};function a(u){var f=o[u];if(f!==void 0)return f.exports;var g=o[u]={exports:{}};return n[u](g,g.exports,a),g.exports}a.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return a.d(f,{a:f}),f},a.d=(u,f)=>{for(var g in f)a.o(f,g)&&!a.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},a.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),a.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};a.r(i);var s=a(93),l=a.n(s),d=i;Object.defineProperty(d,"__esModule",{value:!0}),d.pl=void 0;var h=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},u.prototype.at=function(){return"O"},u.prototype.atSpace=function(){return"O "},u.prototype.atX0=function(){return"o %s"},u.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},u.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},u.prototype.betweenX0AndX1=function(){return"od %s do %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},u.prototype.commaEveryDay=function(){return", co dzień"},u.prototype.commaEveryX0Days=function(){return", co %s dni"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},u.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},u.prototype.commaEveryX0Years=function(){return", co %s lat"},u.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},u.prototype.commaOnlyInX0=function(){return", tylko %s"},u.prototype.commaOnlyOnX0=function(){return", tylko %s"},u.prototype.commaAndOnX0=function(){return", i %s"},u.prototype.commaOnThe=function(){return", "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},u.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},u.prototype.commaX0ThroughX1=function(){return", od %s do %s"},u.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},u.prototype.everyHour=function(){return"co godzinę"},u.prototype.everyMinute=function(){return"co minutę"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},u.prototype.everySecond=function(){return"co sekundę"},u.prototype.everyX0Hours=function(){return"co %s godzin"},u.prototype.everyX0Minutes=function(){return"co %s minut"},u.prototype.everyX0Seconds=function(){return"co %s sekund"},u.prototype.fifth=function(){return"piąty"},u.prototype.first=function(){return"pierwszy"},u.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},u.prototype.fourth=function(){return"czwarty"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},u.prototype.second=function(){return"drugi"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},u.prototype.spaceAnd=function(){return" i"},u.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},u.prototype.lastDay=function(){return"ostatni dzień"},u.prototype.third=function(){return"trzeci"},u.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},u.prototype.commaStartingX0=function(){return", startowy %s"},u.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},u.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},u}();return d.pl=h,l().locales.pl=new h,i})())}(yS)),yS.exports}Tvt();function tV(t,e){return _vt.toString(t,{locale:e})}const Kn={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},slider:{marginTop:20,display:"block",width:"100%"},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},numberButtonBreak:{display:"block"},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},Ovt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Dvt=["January","February","March","April","May","June","July","August","September","October","November","December"];function VL(t,e){const r=[];if(t==="*"){if(e===24||e===60||e===7)for(let o=0;o1){const i=parseInt(a[1],10);for(let s=parseInt(a[0],10);s<=i;s++)r.push(s)}else r.push(parseInt(n[o],10))}r.sort();for(let o=r.length-1;o>=0;o--)r[o]===r[o+1]&&r.splice(o+1,1);return r}function qL(t,e){if(typeof t!="object"&&(t=[t]),t.length===e)return"*";const r=[];if(!t.length)return"-";t=t.map(a=>parseInt(a,10)),t.sort((a,i)=>a-i);let n=t[0],o=t[0];for(let a=1;athis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(e){e=e.replace(/['"]/g,"").trim();const r=e.split(" ").map(o=>o.trim());let n;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",dates:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:!1,minutes:r[0]||"*",hours:r[1]||"*",dates:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n}static state2cron(e){let r=`${e.minutes} ${e.hours} ${e.dates} ${e.months} ${e.dow}`;return e.seconds!==!1&&(r=`${e.seconds} ${r}`),r}recalcCron(){const e=Cs.state2cron(this.state);e!==this.state.cron&&this.setState({cron:e},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(e,r,n){if(e===!0)this.setCronAttr(r,"*");else if(e===!1)n===60||n===24?this.setCronAttr(r,"0"):this.setCronAttr(r,"1");else{const o=VL(this.state[r],n),a=o.indexOf(e);a!==-1?o.splice(a,1):(o.push(e),o.sort()),this.setCronAttr(r,qL(o,n))}}getDigitsSelector(e,r){let n=[];if(r===7)n=[1,2,3,4,5,6,0];else if(r===60||r===24)for(let a=0;athis.onToggle(!1,e,r)},P.t("ra_Deselect all")),m.createElement(tt,{key:"addall",variant:"contained",style:Kn.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,e,r)},P.t("ra_Select all")),m.createElement("div",{key:"all"},n.map(a=>[r===7&&a===4||r===12&&a===7||r===31&&!((a-1)%10)||r===60&&a&&!(a%10)||r===24&&a&&!(a%6)?m.createElement("div",{key:`allInner${a}`,style:{width:"100%"}}):null,m.createElement(tt,{key:`_${a}`,variant:o.indexOf(a)!==-1?"contained":"outlined",style:Kn.numberButton,color:o.indexOf(a)!==-1?"secondary":"primary",onClick:()=>this.onToggle(a,e,r)},r===7?P.t(Ovt[a]):r===12?Dvt[a-1]:a)]))]}getPeriodsTab(e,r){const n=this.state[e];let o=n==="*",a=n==null?!1:n.toString().includes("/"),i;if(this.state.modes[e]===null){i=o?"every":a?"everyN":"specific";const l=JSON.parse(JSON.stringify(this.state.modes));return l[e]=i,setTimeout(()=>this.setState({modes:l},()=>this.recalcCron()),100),null}o=this.state.modes[e]==="every",a=this.state.modes[e]==="everyN",i=this.state.modes[e];let s=1;return a&&n&&(s=parseInt(n.replace("*/",""),10)||1),m.createElement("div",null,m.createElement(Bn,{variant:"standard",style:{...Kn.periodSelect,verticalAlign:"bottom"},value:i,onChange:l=>{const d=JSON.parse(JSON.stringify(this.state.modes));if(d[e]=l.target.value,l.target.value==="every")this.setCronAttr(e,"*",d);else if(l.target.value==="everyN"){const h=parseInt((this.state[e]||"").toString().replace("*/",""),10)||1;this.setCronAttr(e,`*/${h}`,d)}else if(l.target.value==="specific"){let h=parseInt((this.state[e]||"").toString().split(",")[0],10)||0;!h&&(e==="months"||e==="dates")&&(h=1),this.setCronAttr(e,qL(h,r),d)}}},m.createElement(Xt,{key:"every",value:"every"},P.t(`sc_every_${e}`)),m.createElement(Xt,{key:"everyN",value:"everyN"},P.t(`sc_everyN_${e}`)),m.createElement(Xt,{key:"specific",value:"specific"},P.t(`sc_specific_${e}`))),a&&m.createElement(Ht,{variant:"standard",key:"interval",label:P.t(`sc_${e}`),value:s,slotProps:{htmlInput:{min:1,max:r},inputLabel:{shrink:!0}},onChange:l=>{this.setState({[e]:`*/${l.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!o&&!a&&this.getDigitsSelector(e,r))}static convertCronToText(e,r){return e.split(" ").includes("-")?P.t("ra_Invalid CRON"):tV(e,r)}setCronAttr(e,r,n){n?e==="seconds"?this.setState({seconds:r,modes:n},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r,modes:n},()=>this.recalcCron()):e==="hours"?this.setState({hours:r,modes:n},()=>this.recalcCron()):e==="dates"?this.setState({dates:r,modes:n},()=>this.recalcCron()):e==="months"?this.setState({months:r,modes:n},()=>this.recalcCron()):e==="dow"?this.setState({dow:r,modes:n},()=>this.recalcCron()):this.setState({modes:n},()=>this.recalcCron()):e==="seconds"?this.setState({seconds:r},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r},()=>this.recalcCron()):e==="hours"?this.setState({hours:r},()=>this.recalcCron()):e==="dates"?this.setState({dates:r},()=>this.recalcCron()):e==="months"?this.setState({months:r},()=>this.recalcCron()):e==="dow"&&this.setState({dow:r},()=>this.recalcCron())}render(){const e=this.state.seconds!==!1?this.state.tab:this.state.tab+1,r=this.state.minutes==="*"||this.state.minutes==="*/1",n=this.state.seconds==="*"||this.state.seconds==="*/1";return m.createElement("div",{style:Kn.mainDiv},m.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)"}},m.createElement(Ht,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),m.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)",height:60}},Cs.convertCronToText(this.state.cron,this.props.language||"en"),m.createElement("span",{style:Kn.warning},n?P.t("ra_warning_every_second"):r?P.t("ra_warning_every_minute"):"")),m.createElement(St,{control:m.createElement(yr,{checked:!!this.state.seconds,onChange:o=>this.setState({seconds:o.target.checked?"*":!1},()=>this.recalcCron())}),label:P.t("ra_use seconds")}),m.createElement(PW,{position:"static",sx:{"&.MuiAppBar-root":Kn.appBar},color:"secondary"},m.createElement(sH,{value:this.state.tab,style:Kn.appBar,color:"secondary",onChange:(o,a)=>this.setState({tab:a})},this.state.seconds!==!1&&m.createElement(Uo,{id:"sc_seconds",label:P.t("sc_seconds")}),m.createElement(Uo,{id:"minutes",label:P.t("sc_minutes")}),m.createElement(Uo,{id:"hours",label:P.t("sc_hours")}),m.createElement(Uo,{id:"dates",label:P.t("sc_dates")}),m.createElement(Uo,{id:"months",label:P.t("sc_months")}),m.createElement(Uo,{id:"dow",label:P.t("sc_dows")}))),e===0&&m.createElement("div",{style:Kn.tabContent},this.getPeriodsTab("seconds",60)),e===1&&m.createElement("div",{style:Kn.tabContent},this.getPeriodsTab("minutes",60)),e===2&&m.createElement("div",{style:Kn.tabContent},this.getPeriodsTab("hours",24)),e===3&&m.createElement("div",{style:Kn.tabContent},this.getPeriodsTab("dates",31)),e===4&&m.createElement("div",{style:Kn.tabContent},this.getPeriodsTab("months",12)),e===5&&m.createElement("div",{style:Kn.tabContent},this.getPeriodsTab("dow",7)))}}function rc(t,e,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(h){try{d(n.next(h))}catch(u){i(u)}}function l(h){try{d(n.throw(h))}catch(u){i(u)}}function d(h){h.done?a(h.value):o(h.value).then(s,l)}d((n=n.apply(t,e||[])).next())})}const Avt=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 Cu(t,e,r){const n=Ivt(t),{webkitRelativePath:o}=t,a=typeof e=="string"?e:typeof o=="string"&&o.length>0?o:`./${t.name}`;return typeof n.path!="string"&&GL(n,"path",a),GL(n,"relativePath",a),n}function Ivt(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const n=e.split(".").pop().toLowerCase(),o=Avt.get(n);o&&Object.defineProperty(t,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return t}function GL(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}const Mvt=[".DS_Store","Thumbs.db"];function Pvt(t){return rc(this,void 0,void 0,function*(){return Hv(t)&&Nvt(t.dataTransfer)?zvt(t.dataTransfer,t.type):Rvt(t)?jvt(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?Lvt(t):[]})}function Nvt(t){return Hv(t)}function Rvt(t){return Hv(t)&&Hv(t.target)}function Hv(t){return typeof t=="object"&&t!==null}function jvt(t){return g2(t.target.files).map(e=>Cu(e))}function Lvt(t){return rc(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>Cu(r))})}function zvt(t,e){return rc(this,void 0,void 0,function*(){if(t.items){const r=g2(t.items).filter(o=>o.kind==="file");if(e!=="drop")return r;const n=yield Promise.all(r.map(Fvt));return XL(rV(n))}return XL(g2(t.files).map(r=>Cu(r)))})}function XL(t){return t.filter(e=>Mvt.indexOf(e.name)===-1)}function g2(t){if(t===null)return[];const e=[];for(let r=0;r[...e,...Array.isArray(r)?rV(r):[r]],[])}function JL(t,e){return rc(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const a=yield t.getAsFileSystemHandle();if(a===null)throw new Error(`${t} is not a File`);if(a!==void 0){const i=yield a.getFile();return i.handle=a,Cu(i)}}const n=t.getAsFile();if(!n)throw new Error(`${t} is not a File`);return Cu(n,(r=e==null?void 0:e.fullPath)!==null&&r!==void 0?r:void 0)})}function Bvt(t){return rc(this,void 0,void 0,function*(){return t.isDirectory?nV(t):Wvt(t)})}function nV(t){const e=t.createReader();return new Promise((r,n)=>{const o=[];function a(){e.readEntries(i=>rc(this,void 0,void 0,function*(){if(i.length){const s=Promise.all(i.map(Bvt));o.push(s),a()}else try{const s=yield Promise.all(o);r(s)}catch(s){n(s)}}),i=>{n(i)})}a()})}function Wvt(t){return rc(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(n=>{const o=Cu(n,t.fullPath);e(o)},n=>{r(n)})})})}var Ag={},YL;function Hvt(){return YL||(YL=1,Ag.__esModule=!0,Ag.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",o=(t.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return r.some(function(i){var s=i.trim().toLowerCase();return s.charAt(0)==="."?n.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):o===s})}return!0}),Ag}var Uvt=Hvt();const _S=so(Uvt);function KL(t){return Gvt(t)||qvt(t)||aV(t)||Vvt()}function Vvt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qvt(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Gvt(t){if(Array.isArray(t))return v2(t)}function ZL(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function QL(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:"",r=e.split(","),n=r.length>1?"one of ".concat(r.join(", ")):r[0];return{code:Zvt,message:"File type must be ".concat(n)}},ez=function(e){return{code:Qvt,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},tz=function(e){return{code:eyt,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},nyt={code:tyt,message:"Too many files"};function iV(t,e){var r=t.type==="application/x-moz-file"||Kvt(t,e);return[r,r?null:ryt(e)]}function sV(t,e,r){if(gl(t.size))if(gl(e)&&gl(r)){if(t.size>r)return[!1,ez(r)];if(t.sizer)return[!1,ez(r)]}return[!0,null]}function gl(t){return t!=null}function oyt(t){var e=t.files,r=t.accept,n=t.minSize,o=t.maxSize,a=t.multiple,i=t.maxFiles,s=t.validator;return!a&&e.length>1||a&&i>=1&&e.length>i?!1:e.every(function(l){var d=iV(l,r),h=df(d,1),u=h[0],f=sV(l,n,o),g=df(f,1),y=g[0],b=s?s(l):null;return u&&y&&!b})}function Uv(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function Ig(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function rz(t){t.preventDefault()}function ayt(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function iyt(t){return t.indexOf("Edge/")!==-1}function syt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return ayt(t)||iyt(t)}function Ha(){for(var t=arguments.length,e=new Array(t),r=0;r1?o-1:0),i=1;it.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Cyt(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}var s_=A.forwardRef(function(t,e){var r=t.children,n=Vv(t,hyt),o=$yt(n),a=o.open,i=Vv(o,fyt);return A.useImperativeHandle(e,function(){return{open:a}},[a]),m.createElement(A.Fragment,null,r(jr(jr({},i),{},{open:a})))});s_.displayName="Dropzone";var uV={disabled:!1,getFilesFromEvent:Pvt,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};s_.defaultProps=uV;s_.propTypes={children:ye.func,accept:ye.objectOf(ye.arrayOf(ye.string)),multiple:ye.bool,preventDropOnDocument:ye.bool,noClick:ye.bool,noKeyboard:ye.bool,noDrag:ye.bool,noDragEventsBubbling:ye.bool,minSize:ye.number,maxSize:ye.number,maxFiles:ye.number,disabled:ye.bool,getFilesFromEvent:ye.func,onFileDialogCancel:ye.func,onFileDialogOpen:ye.func,useFsAccessApi:ye.bool,autoFocus:ye.bool,onDragEnter:ye.func,onDragLeave:ye.func,onDragOver:ye.func,onDrop:ye.func,onDropAccepted:ye.func,onDropRejected:ye.func,onError:ye.func,validator:ye.func};var b2={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function $yt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=jr(jr({},uV),t),r=e.accept,n=e.disabled,o=e.getFilesFromEvent,a=e.maxSize,i=e.minSize,s=e.multiple,l=e.maxFiles,d=e.onDragEnter,h=e.onDragLeave,u=e.onDragOver,f=e.onDrop,g=e.onDropAccepted,y=e.onDropRejected,b=e.onFileDialogCancel,x=e.onFileDialogOpen,S=e.useFsAccessApi,T=e.autoFocus,E=e.preventDropOnDocument,$=e.noClick,k=e.noKeyboard,O=e.noDrag,M=e.noDragEventsBubbling,R=e.onError,j=e.validator,I=A.useMemo(function(){return dyt(r)},[r]),z=A.useMemo(function(){return cyt(r)},[r]),W=A.useMemo(function(){return typeof x=="function"?x:oz},[x]),L=A.useMemo(function(){return typeof b=="function"?b:oz},[b]),F=A.useRef(null),H=A.useRef(null),q=A.useReducer(kyt,b2),ee=bS(q,2),Y=ee[0],G=ee[1],te=Y.isFocused,B=Y.isFileDialogActive,K=A.useRef(typeof window<"u"&&window.isSecureContext&&S&&lyt()),he=function(){!K.current&&B&&setTimeout(function(){if(H.current){var ae=H.current.files;ae.length||(G({type:"closeDialog"}),L())}},300)};A.useEffect(function(){return window.addEventListener("focus",he,!1),function(){window.removeEventListener("focus",he,!1)}},[H,B,L,K]);var fe=A.useRef([]),ge=function(ae){F.current&&F.current.contains(ae.target)||(ae.preventDefault(),fe.current=[])};A.useEffect(function(){return E&&(document.addEventListener("dragover",rz,!1),document.addEventListener("drop",ge,!1)),function(){E&&(document.removeEventListener("dragover",rz),document.removeEventListener("drop",ge))}},[F,E]),A.useEffect(function(){return!n&&T&&F.current&&F.current.focus(),function(){}},[F,T,n]);var Ee=A.useCallback(function(J){R?R(J):console.error(J)},[R]),ze=A.useCallback(function(J){J.preventDefault(),J.persist(),at(J),fe.current=[].concat(vyt(fe.current),[J.target]),Ig(J)&&Promise.resolve(o(J)).then(function(ae){if(!(Uv(J)&&!M)){var Se=ae.length,Te=Se>0&&oyt({files:ae,accept:I,minSize:i,maxSize:a,multiple:s,maxFiles:l,validator:j}),Oe=Se>0&&!Te;G({isDragAccept:Te,isDragReject:Oe,isDragActive:!0,type:"setDraggedFiles"}),d&&d(J)}}).catch(function(ae){return Ee(ae)})},[o,d,Ee,M,I,i,a,s,l,j]),Ne=A.useCallback(function(J){J.preventDefault(),J.persist(),at(J);var ae=Ig(J);if(ae&&J.dataTransfer)try{J.dataTransfer.dropEffect="copy"}catch{}return ae&&u&&u(J),!1},[u,M]),Fe=A.useCallback(function(J){J.preventDefault(),J.persist(),at(J);var ae=fe.current.filter(function(Te){return F.current&&F.current.contains(Te)}),Se=ae.indexOf(J.target);Se!==-1&&ae.splice(Se,1),fe.current=ae,!(ae.length>0)&&(G({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Ig(J)&&h&&h(J))},[F,h,M]),Pe=A.useCallback(function(J,ae){var Se=[],Te=[];J.forEach(function(Oe){var Ce=iV(Oe,I),nt=bS(Ce,2),Le=nt[0],mt=nt[1],vt=sV(Oe,i,a),wt=bS(vt,2),pe=wt[0],$e=wt[1],ot=j?j(Oe):null;if(Le&&pe&&!ot)Se.push(Oe);else{var yt=[mt,$e];ot&&(yt=yt.concat(ot)),Te.push({file:Oe,errors:yt.filter(function(Pt){return Pt})})}}),(!s&&Se.length>1||s&&l>=1&&Se.length>l)&&(Se.forEach(function(Oe){Te.push({file:Oe,errors:[nyt]})}),Se.splice(0)),G({acceptedFiles:Se,fileRejections:Te,isDragReject:Te.length>0,type:"setFiles"}),f&&f(Se,Te,ae),Te.length>0&&y&&y(Te,ae),Se.length>0&&g&&g(Se,ae)},[G,s,I,i,a,l,f,g,y,j]),Ye=A.useCallback(function(J){J.preventDefault(),J.persist(),at(J),fe.current=[],Ig(J)&&Promise.resolve(o(J)).then(function(ae){Uv(J)&&!M||Pe(ae,J)}).catch(function(ae){return Ee(ae)}),G({type:"reset"})},[o,Pe,Ee,M]),Be=A.useCallback(function(){if(K.current){G({type:"openDialog"}),W();var J={multiple:s,types:z};window.showOpenFilePicker(J).then(function(ae){return o(ae)}).then(function(ae){Pe(ae,null),G({type:"closeDialog"})}).catch(function(ae){uyt(ae)?(L(ae),G({type:"closeDialog"})):pyt(ae)?(K.current=!1,H.current?(H.current.value=null,H.current.click()):Ee(new 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 was provided."))):Ee(ae)});return}H.current&&(G({type:"openDialog"}),W(),H.current.value=null,H.current.click())},[G,W,L,S,Pe,Ee,z,s]),Ke=A.useCallback(function(J){!F.current||!F.current.isEqualNode(J.target)||(J.key===" "||J.key==="Enter"||J.keyCode===32||J.keyCode===13)&&(J.preventDefault(),Be())},[F,Be]),Xe=A.useCallback(function(){G({type:"focus"})},[]),ve=A.useCallback(function(){G({type:"blur"})},[]),le=A.useCallback(function(){$||(syt()?setTimeout(Be,0):Be())},[$,Be]),re=function(ae){return n?null:ae},He=function(ae){return k?null:re(ae)},Ve=function(ae){return O?null:re(ae)},at=function(ae){M&&ae.stopPropagation()},ut=A.useMemo(function(){return function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=J.refKey,Se=ae===void 0?"ref":ae,Te=J.role,Oe=J.onKeyDown,Ce=J.onFocus,nt=J.onBlur,Le=J.onClick,mt=J.onDragEnter,vt=J.onDragOver,wt=J.onDragLeave,pe=J.onDrop,$e=Vv(J,myt);return jr(jr(_2({onKeyDown:He(Ha(Oe,Ke)),onFocus:He(Ha(Ce,Xe)),onBlur:He(Ha(nt,ve)),onClick:re(Ha(Le,le)),onDragEnter:Ve(Ha(mt,ze)),onDragOver:Ve(Ha(vt,Ne)),onDragLeave:Ve(Ha(wt,Fe)),onDrop:Ve(Ha(pe,Ye)),role:typeof Te=="string"&&Te!==""?Te:"presentation"},Se,F),!n&&!k?{tabIndex:0}:{}),$e)}},[F,Ke,Xe,ve,le,ze,Ne,Fe,Ye,k,O,n]),ke=A.useCallback(function(J){J.stopPropagation()},[]),pt=A.useMemo(function(){return function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=J.refKey,Se=ae===void 0?"ref":ae,Te=J.onChange,Oe=J.onClick,Ce=Vv(J,gyt),nt=_2({accept:I,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:re(Ha(Te,Ye)),onClick:re(Ha(Oe,ke)),tabIndex:-1},Se,H);return jr(jr({},nt),Ce)}},[H,r,s,Ye,n]);return jr(jr({},Y),{},{isFocused:te&&!n,getRootProps:ut,getInputProps:pt,rootRef:F,inputRef:H,open:re(Be)})}function kyt(t,e){switch(e.type){case"focus":return jr(jr({},t),{},{isFocused:!0});case"blur":return jr(jr({},t),{},{isFocused:!1});case"openDialog":return jr(jr({},b2),{},{isFileDialogActive:!0});case"closeDialog":return jr(jr({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return jr(jr({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return jr(jr({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return jr({},b2);default:return t}}function oz(){}function Eyt(){const t=ai();return[...t.breakpoints.keys].reverse().reduce((r,n)=>{const o=Rce(t.breakpoints.up(n));return!r&&o?n:r},null)||"xs"}function qs(){return t=>function(r){const n=Eyt();return m.createElement(t,{...r,width:n})}}function Tyt(t){const[e,r]=m.useState(t.input||t.value||""),[n,o]=m.useState("");return m.createElement(or,{open:!0,onClose:()=>t.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:t.fullWidth!==void 0?t.fullWidth:!1},m.createElement(_r,{id:"form-dialog-title"},t.titleText),m.createElement(Wr,null,m.createElement(Ds,null,t.promptText),m.createElement(Ht,{variant:"standard",autoFocus:!0,margin:"dense",error:!!n,helperText:n===!0||!n?"":n,value:e,label:t.labelText||"",type:t.type||"text",onKeyUp:a=>a.code==="Enter"&&e&&t.onClose(e),onChange:a=>{let i="";t.verify&&(i=!t.verify(a.target.value)),t.rule?r(t.rule(a.target.value)):r(a.target.value),o(i)},fullWidth:!0})),m.createElement(pr,null,m.createElement(tt,{variant:"contained",disabled:!e||!!n,onClick:()=>t.onClose(e),color:"primary",startIcon:m.createElement(Ea,null)},t.applyText||P.t("ra_Ok")),m.createElement(tt,{color:"grey",variant:"contained",onClick:()=>t.onClose(null),startIcon:m.createElement(Ar,null)},t.cancelText||P.t("ra_Cancel"))))}const Oyt=qs()(Tyt),w2=t=>m.createElement("svg",{onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 486 486",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:t.className,style:t.style},m.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"}),m.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"})),ru=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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"})),nv=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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"})),CD=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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 Dyt=t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,r)=>{const[n,o]=r.split(/ ?: ?/).map((a,i)=>i===0?a.replace(/\s+/g,""):a.trim());if(n&&o){const a=n.replace(/(\w)-(\w)/g,(s,l,d)=>`${l}${d.toUpperCase()}`);let i=o.trim();Number.isNaN(Number(o))||(i=Number(o)),e[n.startsWith("-")?n:a]=i}return e},{});function Ayt(t=6){const e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=t;n>0;--n)r+=e[Math.round(Math.random()*(e.length-1))];return r}var Iyt=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],az={"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 Myt(t,e){var a;const{key:r,level:n,...o}=e;switch(t.nodeType){case 1:return A.createElement(Nyt(t.nodeName),Pyt(t,r),iz(t.childNodes,n,o));case 3:{const i=((a=t.nodeValue)==null?void 0:a.toString())??"";if(!o.allowWhiteSpaces&&/^\s+$/.test(i)&&!/[\u00A0\u202F]/.test(i))return null;if(!t.parentNode)return i;const s=t.parentNode.nodeName.toLowerCase();return Iyt.includes(s)?(/\S/.test(i)&&console.warn(`A textNode is not allowed inside '${s}'. Your text "${i}" will be ignored`),null):i}case 8:return null;case 11:return iz(t.childNodes,n,e);default:return null}}function Pyt(t,e){const r={key:e};if(t instanceof Element){const n=t.getAttribute("class");n&&(r.className=n),[...t.attributes].forEach(o=>{switch(o.name){case"class":break;case"style":r[o.name]=Dyt(o.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":r[az[o.name]||o.name]=!0;break;default:r[az[o.name]||o.name]=o.value}})}return r}function iz(t,e,r){const n=[...t].map((o,a)=>qv(o,{...r,index:a,level:e+1})).filter(Boolean);return n.length?n:null}function Nyt(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}function qv(t,e={}){if(!t||!(t instanceof Node))return null;const{actions:r=[],index:n=0,level:o=0,randomKey:a}=e;let i=t,s=`${o}-${n}`;const l=[];return a&&o===0&&(s=`${Ayt()}-${s}`),Array.isArray(r)&&r.forEach(d=>{d.condition(i,s,o)&&(typeof d.pre=="function"&&(i=d.pre(i,s,o),i instanceof Node||(i=t)),typeof d.post=="function"&&l.push(d.post(i,s,o)))}),l.length?l:Myt(i,{key:s,level:o,...e})}function Ryt(t,e={}){if(!t||typeof t!="string")return null;const{includeAllNodes:r=!1,nodeOnly:n=!1,selector:o="body > *",type:a="text/html"}=e;try{const s=new DOMParser().parseFromString(t,a);if(r){const{childNodes:d}=s.body;return n?d:[...d].map(h=>qv(h,e))}const l=s.querySelector(o)||s.body.childNodes[0];if(!(l instanceof Node))throw new TypeError("Error parsing input");return n?l:qv(l,e)}catch{}return null}function pV(t,e={}){return typeof t=="string"?Ryt(t,e):t instanceof Node?qv(t,e):null}var jyt=Object.defineProperty,Lyt=(t,e,r)=>e in t?jyt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Mg=(t,e,r)=>Lyt(t,typeof e!="symbol"?e+"":e,r),sz="react-inlinesvg",lz=10,rr={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function ov(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function zyt(){return Byt()&&typeof window<"u"&&window!==null}async function hV(t,e){const r=await fetch(t,e),n=r.headers.get("content-type"),[o]=(n??"").split(/ ?; ?/);if(r.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(a=>o.includes(a)))throw new Error(`Content type isn't valid: ${o}`);return r.text()}function Fyt(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}function Byt(){if(!document)return!1;const t=document.createElement("div");t.innerHTML="";const e=t.firstChild;return!!e&&e.namespaceURI==="http://www.w3.org/2000/svg"}function Wyt(t){return t[Math.floor(Math.random()*t.length)]}function Hyt(t){const e="abcdefghijklmnopqrstuvwxyz",n=`${e}${e.toUpperCase()}1234567890`;let o="";for(let a=0;a{this.cacheApi=r}).catch(r=>{console.error(`Failed to open cache: ${r.message}`)}).finally(()=>{this.isReady=!0,this.subscribers.forEach(r=>r())}):this.isReady=!0}onReady(t){this.isReady?t():this.subscribers.push(t)}async get(t,e){var r;return await(this.cacheApi?this.fetchAndAddToPersistentCache(t,e):this.fetchAndAddToInternalCache(t,e)),((r=this.cacheStore.get(t))==null?void 0:r.content)??""}set(t,e){this.cacheStore.set(t,e)}isCached(t){var e;return((e=this.cacheStore.get(t))==null?void 0:e.status)===rr.LOADED}async fetchAndAddToInternalCache(t,e){const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===rr.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:rr.IDLE}),await this.fetchAndAddToInternalCache(t,e)});return}if(!(r!=null&&r.content)){this.cacheStore.set(t,{content:"",status:rr.LOADING});try{const n=await hV(t,e);this.cacheStore.set(t,{content:n,status:rr.LOADED})}catch(n){throw this.cacheStore.set(t,{content:"",status:rr.FAILED}),n}}}async fetchAndAddToPersistentCache(t,e){var o,a,i;const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===rr.LOADED)return;if((r==null?void 0:r.status)===rr.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:rr.IDLE}),await this.fetchAndAddToPersistentCache(t,e)});return}this.cacheStore.set(t,{content:"",status:rr.LOADING});const n=await((o=this.cacheApi)==null?void 0:o.match(t));if(n){const s=await n.text();this.cacheStore.set(t,{content:s,status:rr.LOADED});return}try{await((a=this.cacheApi)==null?void 0:a.add(new Request(t,e)));const s=await((i=this.cacheApi)==null?void 0:i.match(t)),l=await(s==null?void 0:s.text())??"";this.cacheStore.set(t,{content:l,status:rr.LOADED})}catch(s){throw this.cacheStore.set(t,{content:"",status:rr.FAILED}),s}}async handleLoading(t,e){var n;let r=0;for(;((n=this.cacheStore.get(t))==null?void 0:n.status)===rr.LOADING&&r=lz&&await e()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([t,e])=>({[t]:e}))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){const t=await this.cacheApi.keys();for(const e of t)await this.cacheApi.delete(e)}this.cacheStore.clear()}};function cz(t){const e=A.useRef();return A.useEffect(()=>{e.current=t}),e.current}function qyt(t){const{baseURL:e,content:r,description:n,handleError:o,hash:a,preProcessor:i,title:s,uniquifyIDs:l=!1}=t;try{const d=Gyt(r,i),h=pV(d,{nodeOnly:!0});if(!h||!(h instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const u=fV(h,{baseURL:e,hash:a,uniquifyIDs:l});if(n){const f=u.querySelector("desc");f!=null&&f.parentNode&&f.parentNode.removeChild(f);const g=document.createElementNS("http://www.w3.org/2000/svg","desc");g.innerHTML=n,u.prepend(g)}if(typeof s<"u"){const f=u.querySelector("title");if(f!=null&&f.parentNode&&f.parentNode.removeChild(f),s){const g=document.createElementNS("http://www.w3.org/2000/svg","title");g.innerHTML=s,u.prepend(g)}}return u}catch(d){return o(d)}}function Gyt(t,e){return e?e(t):t}function fV(t,e){const{baseURL:r="",hash:n,uniquifyIDs:o}=e,a=["id","href","xlink:href","xlink:role","xlink:arcrole"],i=["href","xlink:href"],s=(l,d)=>i.includes(l)&&(d?!d.includes("#"):!1);return o&&[...t.children].forEach(l=>{var d;if((d=l.attributes)!=null&&d.length){const h=Object.values(l.attributes).map(u=>{const f=u,g=/url\((.*?)\)/.exec(u.value);return g!=null&&g[1]&&(f.value=u.value.replace(g[0],`url(${r}${g[1]}__${n})`)),f});a.forEach(u=>{const f=h.find(g=>g.name===u);f&&!s(u,f.value)&&(f.value=`${f.value}__${n}`)})}return l.children.length?fV(l,e):l}),t}var qd;function Xyt(t){const{cacheRequests:e=!0,children:r=null,description:n,fetchOptions:o,innerRef:a,loader:i=null,onError:s,onLoad:l,src:d,title:h,uniqueHash:u}=t,[f,g]=A.useReducer((F,H)=>({...F,...H}),{content:"",element:null,isCached:e&&qd.isCached(t.src),status:rr.IDLE}),{content:y,element:b,isCached:x,status:S}=f,T=cz(t),E=cz(f),$=A.useRef(u??Hyt(8)),k=A.useRef(!1),O=A.useRef(!1),M=A.useCallback(F=>{k.current&&(g({status:F.message==="Browser does not support SVG"?rr.UNSUPPORTED:rr.FAILED}),s==null||s(F))},[s]),R=A.useCallback((F,H=!1)=>{k.current&&g({content:F,isCached:H,status:rr.LOADED})},[]),j=A.useCallback(async()=>{const F=await hV(d,o);R(F)},[o,R,d]),I=A.useCallback(()=>{try{const F=qyt({...t,handleError:M,hash:$.current,content:y}),H=pV(F);if(!H||!A.isValidElement(H))throw new Error("Could not convert the src to a React element");g({element:H,status:rr.READY})}catch(F){M(new Error(F.message))}},[y,M,t]),z=A.useCallback(async()=>{const F=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(d);let H;if(F?H=F[1]?window.atob(F[2]):decodeURIComponent(F[2]):d.includes("{k.current&&g({content:"",element:null,isCached:!1,status:rr.LOADING})},[]);A.useEffect(()=>{if(k.current=!0,!ov()||O.current)return()=>{};try{if(S===rr.IDLE){if(!zyt())throw new Error("Browser does not support SVG");if(!d)throw new Error("Missing src");W()}}catch(F){M(F)}return O.current=!0,()=>{k.current=!1}},[]),A.useEffect(()=>{if(ov()&&T)if(T.src!==d){if(!d){M(new Error("Missing src"));return}W()}else(T.title!==h||T.description!==n)&&I()},[n,I,M,W,T,d,h]),A.useEffect(()=>{E&&(E.status!==rr.LOADING&&S===rr.LOADING&&z(),E.status!==rr.LOADED&&S===rr.LOADED&&I(),E.status!==rr.READY&&S===rr.READY&&(l==null||l(d,x)))},[z,I,x,l,E,d,S]);const L=Uyt(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return ov()?b?A.cloneElement(b,{ref:a,...L}):[rr.UNSUPPORTED,rr.FAILED].includes(S)?r:i:i}function x2(t){qd||(qd=new Vyt);const{loader:e}=t,r=A.useRef(!1),[n,o]=A.useState(qd.isReady);return A.useEffect(()=>{r.current||(qd.onReady(()=>{o(!0)}),r.current=!0)},[]),n?m.createElement(Xyt,{...t}):e}const Jyt=window.location.hostname.endsWith("iobroker.in"),dz=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);function xl(t){var e,r,n;if(t.src){if(typeof t.src=="string"){if(t.src.length<3)return t.sx?m.createElement(Re,{component:"span",sx:t.sx,title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:ue.clsx(t.className,"iconOwn")},t.src):m.createElement("span",{title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:ue.clsx(t.className,"iconOwn")},t.src);if(t.src.startsWith("data:image/svg"))return m.createElement(x2,{title:t.title||void 0,src:t.src,className:ue.clsx(t.className,"iconOwn"),width:((e=t.style)==null?void 0:e.width)||28,height:((r=t.style)==null?void 0:r.height)||((n=t.style)==null?void 0:n.width)||28,style:t.style||void 0});if(Jyt&&!t.src.startsWith("http://")&&!t.src.startsWith("https://")){let o=t.src;return o.startsWith("./")?o=dz+o.substring(2):o.startsWith("/")||(o=dz+o),t.sx?m.createElement(Re,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:ue.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${o}`,alt:t.alt||void 0,ref:t.ref,onError:a=>t.onError&&t.onError(a)}):m.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:ue.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${o}`,alt:t.alt||void 0,ref:t.ref,onError:a=>t.onError&&t.onError(a)})}return t.sx?m.createElement(Re,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:ue.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError}):m.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:ue.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError})}return t.src}return null}const cl={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"}},En={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp","ico"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function uz(t,e){let r="";const n=new Uint8Array((t==null?void 0:t.data)||t),o=n.byteLength;for(let a=0;a{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,o===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))});const n=ue.getFileExtension(r.href);this.state={text:null,code:null,ext:n,editing:!1,editingValue:null,copyPossible:!!n&&(En.code.includes(n)||En.txt.includes(n)),forceUpdate:Date.now(),changed:!1,imgError:!1}}readFile(){if(this.props.href){const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.socket.readFile(n,o).then(a=>{let i="";a.file!==void 0&&(i=a.file);const s={copyPossible:this.state.copyPossible,ext:this.state.ext};if(i.type==="Buffer")if(o.toLowerCase().endsWith(".json5")){s.ext="json5",s.copyPossible=!0;try{i=atob(uz(i,!0))}catch{console.error("Cannot convert base64 to string"),i=""}}else{const l=ue.detectMimeType(uz(i));l&&(s.ext=l,s.copyPossible=En.code.includes(l)||En.txt.includes(l))}s.copyPossible&&(s.ext&&En.txt.includes(s.ext)?(s.text=i,s.editingValue=i):s.ext&&En.code.includes(s.ext)&&(s.code=i,s.editingValue=i)),this.setState(s)}).catch(a=>window.alert(`Cannot read file: ${a}`))}}componentDidMount(){this.readFile();const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,o,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,o,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}getEditorOrViewer(){return m.createElement(Ht,{variant:"standard",style:cl.textarea,multiline:!0,value:this.state.editingValue||this.state.code||this.state.text,slotProps:{htmlInput:{readOnly:!this.state.editing}}})}getContent(){return this.state.ext&&En.images.includes(this.state.ext)?this.state.imgError?m.createElement(CD,{style:{...cl.img,...this.props.getStyleBackgroundImage()}}):m.createElement(xl,{onError:r=>{r.target.onerror=null,this.setState({imgError:!0})},style:{...cl.img,...this.props.getStyleBackgroundImage()},src:`${this.props.href}?ts=${this.state.forceUpdate}`,alt:this.props.href}):this.state.ext&&En.audio.includes(this.state.ext)?m.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},m.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&En.video.includes(this.state.ext)?m.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},m.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},m.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 m.createElement(or,{sx:{"&.MuiDialog-scrollPaper":cl.dialog,"& .MuiDialog-paper":cl.paper},scroll:"paper",open:!!this.props.href,onClose:()=>this.props.onClose(),fullWidth:!0,maxWidth:"xl","aria-labelledby":"ar_dialog_file_view_title"},m.createElement("div",{style:cl.dialogTitle},m.createElement(_r,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&En.images.includes(this.state.ext)&&m.createElement("div",null,m.createElement(Ie,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},m.createElement(VH,null)))),m.createElement(Wr,{style:cl.content},this.getContent()),m.createElement(pr,null,this.state.copyPossible?m.createElement(tt,{color:"grey",onClick:r=>{r.stopPropagation(),r.preventDefault(),ue.copyToClipboard(this.state.text||this.state.code||"")},startIcon:m.createElement(vve,null)},this.props.t("Copy content")):null,this.state.editing?m.createElement(tt,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:()=>this.onSave(),startIcon:m.createElement(s2,null)},this.props.t("Save")):null,m.createElement(tt,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:m.createElement(Ar,null)},this.props.t("Close"))))}}const Kyt=qs()(Yyt),qc=32,Ci=32,Pg=120,pz=64,hz="Not found",Ng={all:XH,images:$ve,code:AO,txt:Sve,audio:cve,video:Wve},qe={root:{width:"100%",overflow:"hidden",height:"100%",position:"relative"},filesDiv:{width:"calc(100% - 16px)",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% - ${48*2+8}px)`,display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${pz}px`},itemTile:t=>({position:"relative",userSelect:"none",cursor:"pointer",height:Pg,width:pz,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:t.palette.secondary.light,color:ue.invertColor(t.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:t=>({width:"100%",height:Pg-32-16-8,display:"block",pl:1,color:t.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:t=>({position:"absolute",top:22,left:18,zIndex:1,color:t.palette.mode==="dark"?"#FFF":"#000"}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:Pg-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:Pg-32-16-8,display:"block",objectFit:"contain"},itemSelected:t=>({background:t.palette.primary.main,color:ue.invertColor(t.palette.primary.main,!0)}),itemTable:t=>({userSelect:"none",cursor:"pointer",height:qc,display:"inline-flex",lineHeight:`${qc}px`,"&:hover":{background:t.palette.secondary.light,color:ue.invertColor(t.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:t=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:t.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:t=>({display:"inline-block",width:Ci,height:qc,minWidth:Ci,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${Ci/2}px`,"&:hover":{backgroundColor:t.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:t.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:Ci,height:qc,minWidth:Ci,padding:0},itemAclButtonTable:{width:Ci,height:qc,minWidth:Ci,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:Ci,height:qc,minWidth:Ci,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:t=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:t.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:t=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:t.palette.secondary.main}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:t=>({pl:"2px",pr:"2px",cursor:"pointer","&:hover":{background:t.palette.primary.main}}),pathDivBreadcrumbSelected:{},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:t=>({color:t.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},ps="0_userdata.0";function Gc(t){const e=(t||"").split("/");return e.length&&e.pop(),e.join("/")}function wS(t){const e=ue.getFileExtension(t);return!!(e!=null&&e.toLowerCase().match(/[a-z]+/)&&e.length<5)}const Vt="Table",xS="Tile";function fz(t,e){return t.folder&&e.folder?t.name>e.name?1:t.namee.name?1:t.name{const a=`${r}/${n}`,i=a.lastIndexOf("/"),s=a.substring(0,i);console.log(`File changed ${a}[${o}]`),this.state.folders[s]&&(this._tempTimeout[s]&&clearTimeout(this._tempTimeout[s]),this._tempTimeout[s]=setTimeout(()=>{delete this._tempTimeout[s],this.browseFolder(s,null,!1,!0).then(l=>this.setState({folders:l})).catch(l=>console.error(`Cannot read folder: ${l.message}`))},300))});X(this,"setStateBackgroundImage",()=>{const r=["light","dark","colored","delete"];this.setState(({backgroundImage:n})=>n&&r.indexOf(n)!==-1&&r.length-1!==r.indexOf(n)?(this.localStorage.setItem("files.backgroundImage",r[r.indexOf(n)+1]),{backgroundImage:r[r.indexOf(n)+1]}):(this.localStorage.setItem("files.backgroundImage",r[0]),{backgroundImage:r[0]}))});X(this,"getStyleBackgroundImage",()=>{switch(this.state.backgroundImage){case"light":return qe.backgroundImageLight;case"dark":return qe.backgroundImageDark;case"colored":return qe.backgroundImageColored;case"delete":return null;default:return null}});this.localStorage=window._localStorage||window.localStorage;const n=this.localStorage.getItem("files.expanded")||"[]";if(this.props.limitPath){const d=this.props.limitPath.split("/");this.limitToObjectID=d[0],this.limitToPath=d.length?d.length===1&&d[0]===""?null:d.join("/"):null,this.limitToPath&&this.limitToPath.endsWith("/")&&this.limitToPath.substring(0,this.limitToPath.length-1)}let o;try{o=JSON.parse(n),this.limitToPath&&(o=o.filter(d=>{var h;return d.startsWith(`${this.limitToPath}/`)||d===this.limitToPath||((h=this.limitToPath)==null?void 0:h.startsWith(`${d}/`))}))}catch{o=[]}let a;this.props.showViewTypeButton?a=this.localStorage.getItem("files.viewType")||Vt:a=Vt;let i=this.props.selected||this.localStorage.getItem("files.selected")||ps,s;if(r.restrictToFolder){i=r.restrictToFolder,s=r.restrictToFolder;const d=r.restrictToFolder.split("/");o=[];let h="";for(let u=0;u{if(this.state.viewType===Vt&&!this.findItem(this.state.selected)){const n=this.state.selected.split("/");for(;n.length&&!this.findItem(n.join("/"));)n.pop();let o;n.length?o=n.join("/"):o=ps,this.setState({selected:o,path:o,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){if(this.mounted){const r=document.getElementById(this.state.selected);r==null||r.scrollIntoView()}}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(r=>console.error(`Cannot load folders: ${r}`)),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(r=>r&&clearTimeout(r)),this._tempTimeout={}}browseFoldersCb(r,n,o){if(!(r!=null&&r.length))o(n);else{const a=r.shift();a?this.browseFolder(a,n).catch(i=>console.error(`Cannot read folder ${a}: ${i.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(r,n,o),0)}):setTimeout(()=>this.browseFoldersCb(r,n,o),0)}}browseFolders(r,n){let o;return n?o=n:(o={},Object.keys(this.state.folders).forEach(a=>o[a]=this.state.folders[a])),r!=null&&r.length?new Promise(a=>{this.browseFoldersCb(r,o,a)}):Promise.resolve(o)}readDirSerial(r,n){return new Promise((o,a)=>{this.browseList&&(this.browseList.push({resolve:o,reject:a,adapter:r,relPath:n}),this.browseListRunning||this.processBrowseList())})}processBrowseList(r=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.setState({queueLength:this.browseList.length}),this.browseList[0].processing=!0,this.props.socket.readDir(this.browseList[0].adapter,this.browseList[0].relPath).then(n=>{if(this.browseList){const o=this.browseList.shift();if(o){const a=o.resolve;o.resolve=null,o.reject=null,o.adapter=null,o.relPath=null,a&&a(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(n=>{if(this.browseList){const o=this.browseList.shift();if(o){const a=o.reject;o.resolve=null,o.reject=null,o.adapter=null,o.relPath=null,a&&a(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(r,n,o,a){let i;if(n?i=n:(i={},Object.keys(this.state.folders).forEach(f=>{i[f]=this.state.folders[f]})),i[r]&&!a)return o?Promise.resolve(i):new Promise((f,g)=>{Promise.all(i[r].filter(y=>y.folder).map(y=>this.browseFolder(y.id,i,!0).catch(()=>{}))).then(()=>f(i)).catch(y=>g(new Error(y)))});if(!r||r==="/"){try{let f=await this.props.socket.readMetaItems();const g=[];let y=null;if(this.state.restrictToFolder){const x=this.state.restrictToFolder.split("/")[0];f=f.filter(S=>S._id===x)}else this.state.expertMode||(f=f.filter(x=>!x._id.endsWith(".admin")));const b=f.findIndex(x=>x._id==="system.meta.uuid");if(b!==-1&&f.splice(b,1),f.forEach(x=>{if(this.limitToObjectID&&this.limitToObjectID!==x._id)return;const S={id:x._id,name:x._id,title:x.common&&x.common.name||x._id,meta:!0,from:x.from,ts:x.ts,color:x.common&&x.common.color,icon:x.common&&x.common.icon,folder:!0,acl:x.acl,level:0};S.id===ps?y=S:g.push(S)}),g.sort((x,S)=>x.id>S.id?1:x.idx.folder).map(x=>this.browseFolder(x.id,i,!0).catch(()=>{}))).then(()=>i)}catch(f){const g=f;this.initialReadFinished&&window.alert(`Cannot read meta items: ${g.message}`),i[r||"/"]=[]}return i}const s=r.split("/"),l=s.length,d=s.shift(),h=s.join("/");let u;try{u=await this.readDirSerial(d||"",h)}catch(f){if(f==="Not exists"&&d==="0_userdata.0")u=[];else throw f}try{const f=[];if(u.forEach(g=>{var b;const y={id:`${r}/${g.file}`,ext:ue.getFileExtension(g.file),folder:g.isDir,name:g.file,size:(b=g.stats)==null?void 0:b.size,modified:g.modifiedAt,acl:g.acl,level:l};this.state.restrictToFolder?(y.folder&&(y.id.startsWith(`${this.state.restrictToFolder}/`)||y.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${y.id}/`))||y.id.startsWith(`${this.state.restrictToFolder}/`))&&f.push(y):this.limitToPath?(y.folder&&(y.id.startsWith(`${this.limitToPath}/`)||y.id===this.limitToPath||this.limitToPath.startsWith(`${y.id}/`))||y.id.startsWith(`${this.limitToPath}/`))&&f.push(y):f.push(y)}),f.sort(fz),i[r]=f,!o)return Promise.all(f.filter(g=>g.folder).map(g=>this.browseFolder(g.id,i,!0))).then(()=>i)}catch(f){const g=f;this.initialReadFinished&&window.alert(`Cannot read ${d}${h?`/${h}`:""}: ${g==null?void 0:g.message}`),i[r]=[]}return i}toggleFolder(r,n){n==null||n.stopPropagation();const o=[...this.state.expanded],a=o.indexOf(r.id);a===-1?(o.push(r.id),o.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(o)),r.temp?this.setState({expanded:o}):this.browseFolder(r.id).then(i=>this.setState({expanded:o,folders:i})).catch(i=>window.alert(i===hz?this.props.t('ra_Cannot find "%s"',r.id):this.props.t('ra_Cannot read "%s"',r.id)))):(o.splice(a,1),this.localStorage.setItem("files.expanded",JSON.stringify(o)),this.setState({expanded:o}))}changeFolder(r,n){r==null||r.stopPropagation(),this.lastSelect=Date.now();let o=n||Gc(this.state.currentDir);if(o==="/"&&(o=""),this.localStorage.setItem("files.currentDir",o),n&&r&&(r.altKey||r.shiftKey||r.ctrlKey||r.metaKey)){this.setState({selected:o});return}if(o&&!this.state.folders[o]){this.browseFolder(o).then(a=>this.setState({folders:a,path:o,currentDir:o,selected:o,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(a=>console.error(`Cannot read folder: ${a.message}`));return}this.setState({currentDir:o,selected:o,path:o,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))}select(r,n,o){n&&n.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",r),this.setState({selected:r,path:r,pathFocus:!1},()=>{if(this.props.onSelect){const a=ue.getFileExtension(r);(!this.props.filterFiles||a&&this.props.filterFiles.includes(a))&&(!this.state.filterByType||a&&En[this.state.filterByType].includes(a))?this.props.onSelect(r,!1,!!this.state.folders[r]):this.props.onSelect("")}o&&o()})}getText(r){if(r)return typeof r=="object"?r[this.props.lang]||r.en||void 0:r}renderFolder(r,n){if(this.state.viewType===Vt&&this.state.filterEmpty&&(!this.state.folders[r.id]||!this.state.folders[r.id].length)&&r.id!==ps&&!r.temp)return null;const o=n?nv:ru,a=this.state.viewType===Vt?r.level*this.levelPadding:0,i=r.name===ps,s=i||r.name==="vis.0"||r.name==="vis-2.0",l=ue.getStyle(this.props.theme,qe[`itemFolderIcon${this.state.viewType}`],s&&qe.specialFolder);return m.createElement(Re,{component:"div",key:r.id,id:r.id,style:this.state.viewType===Vt?{marginLeft:a,width:`calc(100% - ${a}px`}:{},onClick:d=>this.state.viewType===Vt?this.select(r.id,d):this.changeFolder(d,r.id),onDoubleClick:d=>this.state.viewType===Vt&&this.toggleFolder(r,d),title:this.getText(r.title),className:"browserItem",sx:ue.getStyle(this.props.theme,qe[`item${this.state.viewType}`],qe[`itemFolder${this.state.viewType}`],this.state.selected===r.id?qe.itemSelected:{},r.temp?qe.itemFolderTemp:{})},m.createElement(o,{style:l,onClick:this.state.viewType===Vt?d=>this.toggleFolder(r,d):void 0}),m.createElement(Re,{component:"div",sx:ue.getStyle(this.props.theme,qe[`itemName${this.state.viewType}`],qe[`itemNameFolder${this.state.viewType}`])},i?this.props.t("ra_User files"):r.name),m.createElement(Re,{component:"div",style:qe[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Vt&&this.state.folders[r.id]?this.state.folders[r.id].length:""),m.createElement(Re,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Vt&&this.props.expertMode?this.formatAcl(r.acl):null),this.state.viewType===Vt&&this.props.expertMode?m.createElement(Re,{component:"div",sx:{...qe.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===Vt&&this.props.allowDownload?m.createElement("div",{style:qe[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===Vt&&this.props.allowDelete&&this.state.folders[r.id]&&this.state.folders[r.id].length?m.createElement(Ie,{"aria-label":"delete",onClick:d=>{d.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:qe[`itemDeleteButton${this.state.viewType}`],size:"large"},m.createElement(Ta,{fontSize:"small"})):this.state.viewType===Vt&&this.props.allowDelete?m.createElement(Re,{component:"div",sx:qe[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return m.createElement(Re,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:r=>this.changeFolder(r),title:this.props.t("ra_Back to %s",Gc(this.state.currentDir)),className:"browserItem",sx:ue.getStyle(this.props.theme,qe[`item${this.state.viewType}`],qe[`itemFolder${this.state.viewType}`])},m.createElement(ru,{style:ue.getStyle(this.props.theme,qe[`itemFolderIcon${this.state.viewType}`])}),m.createElement(sve,{sx:qe.itemFolderIconBack}),m.createElement(Re,{component:"div",sx:ue.getStyle(this.props.theme,qe[`itemName${this.state.viewType}`],qe[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(r){return m.createElement("div",{style:qe[`itemSize${this.state.viewType}`]},r||r===0?ue.formatBytes(r):"")}formatAcl(r){const n=r?r.permissions||r.file:0;let o;return n?o=n.toString(16).padStart(3,"0"):o="",m.createElement("div",{style:qe[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?m.createElement(Ie,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:qe[`itemAclButton${this.state.viewType}`]},o||"---"):o||"---")}getFileIcon(r){switch(r){case"json":case"json5":return m.createElement(uve,{style:qe[`itemIcon${this.state.viewType}`]});case"css":return m.createElement(pve,{style:qe[`itemIcon${this.state.viewType}`]});case"js":case"ts":return m.createElement(AO,{style:qe[`itemIcon${this.state.viewType}`]});case"html":case"md":return m.createElement(IO,{style:qe[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return m.createElement(Ive,{style:qe[`itemIcon${this.state.viewType}`]});default:return m.createElement(XH,{style:qe[`itemIcon${this.state.viewType}`]})}}static getEditFile(r){switch(r){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":return!0;default:return!1}}renderFile(r){const n=this.state.viewType===Vt?r.level*this.levelPadding:0,o=ue.getFileExtension(r.name);return m.createElement(Re,{component:"div",key:r.id,id:r.id,onDoubleClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&En[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:o})},onClick:a=>this.select(r.id,a),style:this.state.viewType===Vt?{marginLeft:n,width:`calc(100% - ${n}px)`}:{},className:"browserItem",sx:ue.getStyle(this.props.theme,qe[`item${this.state.viewType}`],qe[`itemFile${this.state.viewType}`],this.state.selected===r.id?qe.itemSelected:void 0)},o&&En.images.includes(o)?this.state.fileErrors.includes(r.id)?m.createElement(CD,{style:{...qe[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...qe[`itemNoImage${this.state.viewType}`]}}):m.createElement(xl,{onError:a=>{a.target.onerror=null;const i=[...this.state.fileErrors];i.includes(r.id)||(i.push(r.id),this.setState({fileErrors:i}))},style:{...qe[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+r.id,alt:r.name}):this.getFileIcon(o),m.createElement(Re,{component:"div",sx:qe[`itemName${this.state.viewType}`]},r.name),m.createElement(Re,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(r.size)),m.createElement(Re,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Vt&&this.props.expertMode?this.formatAcl(r.acl):null),m.createElement(Re,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Vt&&this.props.expertMode&&$D.getEditFile(o)?m.createElement(Ie,{"aria-label":"edit",onClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&En[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:o})},sx:qe.itemDeleteButtonTable,size:"large"},m.createElement(rv,{fontSize:"small"})):m.createElement(Re,{component:"div",sx:qe[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===Vt&&this.props.allowDownload?m.createElement(Re,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:qe.itemDownloadButtonTable,tabIndex:0,download:r.id,href:this.imagePrefix+r.id,onClick:a=>a.stopPropagation()},m.createElement(Pve,null)):null,this.state.viewType===Vt&&this.props.allowDelete&&r.id!=="vis.0/"&&r.id!=="vis-2.0/"&&r.id!==ps?m.createElement(Ie,{"aria-label":"delete",onClick:a=>{a.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:qe[`itemDeleteButton${this.state.viewType}`],size:"large"},m.createElement(Ta,{fontSize:"small"})):this.state.viewType===Vt&&this.props.allowDelete?m.createElement(Re,{component:"div",sx:qe[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(r){if(this.state.folders&&this.state.folders[r]){if(this.state.viewType===xS){const o=[];return r&&r!=="/"&&o.push(this.renderBackFolder()),this.state.folders[r].forEach(a=>{a.folder?o.push(this.renderFolder(a)):(!this.props.filterFiles||a.ext&&this.props.filterFiles.includes(a.ext))&&(!this.state.filterByType||a.ext&&En[this.state.filterByType].includes(a.ext))&&o.push(this.renderFile(a))}),o}const n=[];return this.state.folders[r].forEach(o=>{if(o.folder){const a=this.state.expanded.includes(o.id),i=this.renderFolder(o,a);if(Array.isArray(i)?i.forEach(s=>n.push(s)):n.push(i),this.state.folders[o.id]&&a){const s=this.renderItems(o.id);Array.isArray(s)?s.forEach(l=>n.push(l)):n.push(s)}}else(!this.props.filterFiles||o.ext&&this.props.filterFiles.includes(o.ext))&&(!this.state.filterByType||o.ext&&En[this.state.filterByType].includes(o.ext))&&n.push(this.renderFile(o))}),n}return m.createElement("div",{style:{position:"relative"}},m.createElement(pO,{key:r,color:"secondary",size:24}),m.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const r=this.props.showTypeSelector?Ng[this.state.filterByType||"all"]||Ng.all:null,n=this.findFirstFolder(this.state.selected);return m.createElement(af,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?m.createElement(Ie,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...qe.menuButton,...this.state.restrictToFolder?qe.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},m.createElement(xve,{fontSize:"small"})):null,this.props.showExpertButton?m.createElement(Ie,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...qe.menuButton,...this.state.expertMode?qe.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},m.createElement(w2,null)):null,this.props.showViewTypeButton?m.createElement(Ie,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:qe.menuButton,"aria-label":"view mode",onClick:()=>{const o=this.state.viewType===Vt?xS:Vt;this.localStorage.setItem("files.viewType",o);let a=this.state.selected;wS(a)&&(a=Gc(a)),this.setState({viewType:o,currentDir:a},()=>{this.state.viewType===Vt&&this.scrollToSelected()})},size:"small"},this.state.viewType!==Vt?m.createElement(Tve,{fontSize:"small"}):m.createElement(Uve,{fontSize:"small"})):null,m.createElement(Ie,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:qe.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"},m.createElement(wve,{fontSize:"small"})),m.createElement(Ie,{edge:"start",title:this.props.t("ra_Reload files"),style:qe.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},m.createElement(MO,{fontSize:"small"})),this.props.allowCreateFolder?m.createElement(Ie,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:qe.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},m.createElement(qH,{fontSize:"small"})):null,this.props.allowUpload?m.createElement(Ie,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:qe.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},m.createElement(Rv,{fontSize:"small"})):null,this.props.showTypeSelector&&r?m.createElement(Zr,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:qe.tooltip}}},m.createElement(Ie,{size:"small",onClick:o=>this.setState({showTypesMenu:o.target})},m.createElement(r,{fontSize:"small"}))):null,this.state.showTypesMenu?m.createElement(eu,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(Ng).map(o=>{const a=Ng[o];return m.createElement(Jt,{key:o,selected:this.state.filterByType===o,onClick:()=>{o==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",o),this.setState({filterByType:o,showTypesMenu:null}))}},m.createElement(ba,null,m.createElement(a,{fontSize:"small"})),m.createElement(_o,null,this.props.t(`ra_fileType_${o}`)))})):null,m.createElement(Zr,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:qe.tooltip}}},m.createElement(Ie,{color:"inherit",edge:"start",style:qe.menuButton,onClick:this.setStateBackgroundImage,size:"small"},m.createElement(VH,{fontSize:"small"}))),this.state.viewType!==Vt&&this.props.allowDelete?m.createElement(Zr,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:qe.tooltip}}},m.createElement("span",null,m.createElement(Ie,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===ps,color:"inherit",edge:"start",style:qe.menuButton,onClick:o=>{o.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},m.createElement(Ta,{fontSize:"small"})))):null)}findItem(r,n){if(n=n||this.state.folders,!n)return null;const o=r.split("/");o.pop();const a=o.join("/")||"/";return n[a]&&n[a].find(i=>i.id===r)||null}renderInputDialog(){if(this.state.addFolder){const r=this.findFirstFolder(this.state.selected);return r?m.createElement(Oyt,{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:n=>this.state.folders[r].find(o=>o.name===n)?"":this.props.t("ra_Duplicate name"),onClose:n=>{if(n){const o={};Object.keys(this.state.folders).forEach(l=>o[l]=this.state.folders[l]);const a=this.findItem(r),i=`${r}/${n}`;o[r].push({id:i,level:((a==null?void 0:a.level)||0)+1,name:n,folder:!0,temp:!0}),o[r].sort(fz),o[i]=[];const s=[...this.state.expanded];s.includes(r)||(s.push(r),s.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(s)),this.setState({addFolder:!1,folders:o,expanded:s},()=>this.select(i))}else this.setState({addFolder:!1})},replace:n=>n.replace(/[^-_\w]/,"_")}):(window.alert(this.props.t("ra_Invalid parent folder!")),null)}return null}componentDidUpdate(){this.setOpacityTimer&&clearTimeout(this.setOpacityTimer),this.setOpacityTimer=setTimeout(()=>{this.setOpacityTimer=null;const r=window.document.getElementsByClassName("browserItem");for(let n=0;nthis.setState({uploadFile:!1})},m.createElement(Ar,null)),m.createElement(s_,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:r=>{let n=r.length;r.forEach(o=>{const a=new FileReader;a.onabort=()=>console.log("file reading was aborted"),a.onerror=()=>console.log("file reading has failed"),a.onload=()=>{const i=this.findFirstFolder(this.state.selected);if(!i)window.alert(this.props.t("ra_Invalid parent folder!"));else{const s=`${i}/${o.name}`;this.uploadFile(s,a.result).then(()=>{--n||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const l=[...this.state.expanded];l.includes(i)||(l.push(i),l.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(l))),this.setState({expanded:l},()=>this.select(s))}else setTimeout(()=>this.browseFolder(i,null,!1,!0).then(l=>{const d=[...this.state.expanded];d.includes(i)||(d.push(i),d.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(d))),this.setState({folders:l,expanded:d},()=>this.select(s))}),500)})})}},a.readAsArrayBuffer(o)})}},({getRootProps:r,getInputProps:n})=>m.createElement("div",{style:{...qe.uploadDiv,...this.state.uploadFile==="dragging"?qe.uploadDivDragging:void 0},...r()},m.createElement("input",{...n()}),m.createElement(Re,{component:"div",sx:qe.uploadCenterDiv},m.createElement("div",{style:qe.uploadCenterTextAndIcon},m.createElement(Rv,{style:qe.uploadCenterIcon}),m.createElement("div",{style:qe.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(r){const n=this.findItem(r);if(n!=null&&n.folder)return(this.state.folders[r]?Promise.all(this.state.folders[r].map(i=>this.deleteRecursive(i.id))):Promise.resolve()).then(()=>{if(n.level>=1){const i=r.split("/"),s=i.shift();this.props.socket.deleteFolder(s||"",i.join("/")).then(()=>{const l=JSON.parse(JSON.stringify(this.state.folders));delete l[n.id];const d=Gc(n.id),h=l[d];if(h){const u=h.findIndex(f=>f.id===n.id);u!==-1&&h.splice(u,1),this.select(d,null,()=>this.setState({folders:l}))}})}});const o=r.split("/"),a=o.shift();return o.length?this.props.socket.deleteFile(a||"",o.join("/")).catch(i=>window.alert(`Cannot delete file: ${i}`)):Promise.resolve()}deleteItem(r){r=r||this.state.deleteItem,this.setState({deleteItem:""},()=>this.deleteRecursive(r).then(()=>{const n={},o=this.state.expanded.indexOf(r);if(o!==-1){const a=[...this.state.expanded];a.splice(o,1),this.localStorage.setItem("files.expanded",JSON.stringify(a)),n.expanded=a}if(this.state.selected===r){const a=this.state.selected.split("/");a.pop(),n.selected=a.join("/")}if(this.supportSubscribes)this.setState(n);else{const a=this.findFirstFolder(r),i={};Object.keys(this.state.folders).forEach(s=>{s!==a&&!s.startsWith(`${a}/`)&&(i[s]=this.state.folders[s])}),n.folders=i,this.setState(n,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],i).then(s=>this.setState({folders:s})).catch(s=>console.error(s))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?m.createElement(or,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},m.createElement(_r,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),m.createElement(Wr,null,m.createElement(Ds,null,this.props.t("ra_Are you sure?"))),m.createElement(pr,null,m.createElement(tt,{color:"grey",variant:"contained",onClick:()=>{this.suppressDeleteConfirm=Date.now()+6e4*5,this.deleteItem("")}},this.props.t("ra_Delete (no confirm for 5 mins)")),m.createElement(tt,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),m.createElement(tt,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){const r=this.props.FileViewer||Kyt;return this.state.viewer?m.createElement(r,{supportSubscribes:this.supportSubscribes,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile,themeType:this.props.themeType,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?m.createElement(eU,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(r){this.cacheFolders=this.cacheFolders||JSON.parse(JSON.stringify(this.state.folders));let n;r.forEach(o=>{const a=this.findItem(o.id,this.cacheFolders);a&&JSON.stringify(a.acl)!==JSON.stringify(o.acl)&&(a.acl=o.acl,n=!0)}),n&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const o=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:o})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let r=this.state.path;wS(this.state.path)&&(r=Gc(this.state.path)),new Promise(n=>{this.state.folders[r]?n(!0):this.browseFolder(r).then(o=>this.setState({folders:o},()=>n(!0))).catch(o=>this.setState({errorText:o===hz?this.props.t('ra_Cannot find "%s"',r):this.props.t('ra_Cannot read "%s"',r)}))}).then(n=>n&&this.setState({selected:this.state.path,currentDir:r,pathFocus:!1})).catch(n=>console.error(n))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const r=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),n=[];return m.createElement(Ase,{style:{paddingLeft:8}},r.map((o,a)=>{o&&n.push(o);const i=n.join("/");return athis.changeFolder(s,i||"/")},o||this.props.t("ra_Root")):m.createElement("div",{style:qe.pathDivBreadcrumbSelected,key:`${this.state.selected}_${a}`,onClick:()=>this.setState({pathFocus:!0})},o)}))}renderPath(){return m.createElement(Re,{component:"div",key:"path",sx:qe.pathDiv},this.state.pathFocus?m.createElement(ya,{value:this.state.path,onKeyDown:r=>{r.key==="Enter"?this.changeToPath():r.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:m.createElement(Ie,{size:"small",onClick:()=>this.changeToPath()},m.createElement(Eve,null)),onBlur:()=>this.changeToPath(),onChange:r=>this.setState({path:r.target.value}),style:qe.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(r=>console.error(`Cannot load folders: ${r}`))})},300)),m.createElement("div",{style:{...qe.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===xS?this.renderPath():null,m.createElement("div",{style:{...qe.filesDiv,...qe[`filesDiv${this.state.viewType}`]},onClick:r=>{this.state.viewType!==Vt&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(r,this.state.currentDir||"/"):r.stopPropagation())}},this.state.viewType===Vt?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==Vt?m.createElement("div",{style:qe.filesDivHint},this.props.t("ra_select_folder_hint")):null),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())):m.createElement(Zce,null)}}const Zyt=qs()($D),Qyt=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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 e_t(t){const e=document.createElement("div");e.innerHTML=t;const r=e.firstElementChild;return r!=null&&r.remove?r.remove():r&&e.removeChild(r),e.remove(),r}function t_t(t){const e={};if(!t)return e;for(let r,n=0;na[1].toUpperCase()),e[r]=t[n].value}return e}const _l=class _l extends A.Component{constructor(r){var n;super(r);X(this,"svg");this.state={svg:!!((n=this.props.src)!=null&&n.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(r,n){var i;const o={};let a=!1;return r&&n&&r.src!==n.src&&(o.src=r.src,o.svg=(i=r.src)==null?void 0:i.startsWith("data:"),o.created=!1,a=!0),r&&n&&r.color!==n.color&&(o.color=r.color,o.created=!1,a=!0),r&&n&&r.showError!==n.showError&&(o.showError=r.showError,a=!0),a?o:null}getSvgFromData(r){const n="data:image/svg+xml;base64,";if(!r.startsWith(n))return null;r=r.substring(n.length);try{r=atob(r);const o=e_t(r),a=o.innerHTML,i=t_t(o.attributes);return o.remove(),m.createElement("svg",{className:this.props.className,style:this.state.color?{color:this.state.color}:{},...i,dangerouslySetInnerHTML:{__html:a}})}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 m.createElement(CD,{className:this.props.className});if(_l.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let r=(this.props.imagePrefix||"")+this.state.src;return r.startsWith("./")?r=_l.REMOTE_PREFIX+r.substring(2):r.startsWith("/")||(r=_l.REMOTE_PREFIX+r),m.createElement("img",{className:this.props.className,src:`https://remote-files.iobroker.in${r}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return m.createElement("img",{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}};X(_l,"REMOTE_SERVER",window.location.hostname.includes("iobroker.in")),X(_l,"REMOTE_PREFIX",window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1));let mz=_l;class mV extends m.Component{constructor(){super(...arguments);X(this,"handleFileSelect",r=>{const n=r.target,o=n==null?void 0:n.files;if(!o||!o.length){console.error("No files found. Please report to developers");return}const a=o[0];if(a){const i=new window.FileReader;i.onload=()=>{var l;const s=((l=i.result)==null?void 0:l.toString())||"";try{const d=JSON.parse(s);d.native&&d.common?d.common.name!==this.props.common.name?this.props.onError&&this.props.onError(P.t("ra_otherConfig",d.common.name)):this.props.onLoad&&this.props.onLoad(d.native):this.props.onError&&this.props.onError(P.t("ra_invalidConfig"))}catch(d){this.props.onError&&this.props.onError(d==null?void 0:d.toString())}},i.readAsText(a)}else alert("Failed to open JSON File")})}static generateFile(r,n){const o=window.document.createElement("a");o.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(n,null,2))}`),o.setAttribute("download",r),o.style.display="none",window.document.body.appendChild(o),o.click(),window.document.body.removeChild(o)}download(){const r={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};r.common.news&&delete r.common.news,r.common.titleLang&&delete r.common.titleLang,r.common.desc&&delete r.common.desc,mV.generateFile(`${r._id}.json`,r)}upload(){const r=window.document.createElement("input");r.setAttribute("type","file"),r.setAttribute("id","files"),r.setAttribute("opacity","0"),r.addEventListener("change",this.handleFileSelect,!1),r.click()}render(){return m.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?m.createElement(xl,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?m.createElement(ro,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{const r=window.open(this.props.common.readme,"_blank");r==null||r.focus()}},m.createElement(GH,null)):null,m.createElement(ro,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:P.t("ra_Load configuration from file"),onClick:()=>this.upload()},m.createElement(Bve,null)),m.createElement(ro,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:P.t("ra_Save configuration to file"),onClick:()=>this.download()},m.createElement(Fve,null)))}}const r_t=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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"})),gV=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.createElement("g",{fill:"currentColor"},m.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),m.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),m.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),m.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),Di=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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"})),vV=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.createElement("g",{fill:"currentColor"},m.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),m.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),m.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),m.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),m.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),m.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),m.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),m.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),m.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),m.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),n_t=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",onClick:e=>t.onClick&&t.onClick(e),width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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"})),o_t=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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"}),m.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"})),gh=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),m.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"})),a_t=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 24 24",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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"})),SS={root:{width:"100%",height:"100%"},overflowHidden:{overflow:"hidden"},container:{height:"100%"}};function i_t(t){var e;return m.createElement(zn,{elevation:Number.isNaN(t.elevation)?1:t.elevation,style:{...SS.root,...((e=t.styles)==null?void 0:e.root)||void 0,...t.overflow!=="visible"?SS.overflowHidden:void 0},onKeyDown:t.onKeyDown,tabIndex:t.tabIndex},m.createElement(ws,{container:!0,direction:"column",wrap:"nowrap",sx:SS.container},t.children))}const gz={root:{height:"100%",overflow:"hidden"},overflowAuto:{overflow:"auto"}};function s_t(t){return m.createElement(ws,{sx:{...gz.root,...(t==null?void 0:t.style)||void 0,...t.overflow==="auto"?gz.overflowAuto:void 0},ref:t.ref},t.children)}function l_t(t){return m.createElement(ws,{container:!0,alignItems:"center"},t.children)}const Xc=24,Rn=32,c_t=16,Yr=20,yV=t=>t==="dark"?"#62ff25":"#37c400",_V=t=>t==="dark"?"#ee56ff":"#a204b4",d_t=t=>t==="dark"?"#fff46e":"#b89101",bV=t=>"#ff6d69",wV=t=>"#5773ff",xV="#ff413c",SV="#86211f",S2="#57ff45",C2="#098c04",$2="#f3ad11",k2="#6c5008",Q={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:t=>({pl:1,height:Rn,lineHeight:`${Rn}px`,verticalAlign:"top",userSelect:"none",position:"relative",width:"100%","&:hover":{background:`${t.palette.mode==="dark"?t.palette.primary.dark:t.palette.primary.light} !important`,color:ue.invertColor(t.palette.primary.main,!0)},whiteSpace:"nowrap",flexWrap:"nowrap"}),tableRowLines:t=>({borderBottom:`1px solid ${t.palette.mode==="dark","#8888882e"}`,"& > div":{borderRight:`1px solid ${t.palette.mode==="dark","#8888882e"}`}}),tableRowNoDragging:{cursor:"pointer"},tableRowAlias:{height:Rn+10},tableRowAliasReadWrite:{height:Rn+22},tableRowFocused:t=>({"&:after":{content:'""',position:"absolute",top:1,left:1,right:1,bottom:1,border:t.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:Rn-4,height:Rn-4,mt:"2px",float:"right"},"&:hover .iconOwn":{display:"none"},"& *":{width:"initial"}},cellIdSpan:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},cellIdIconFolder:t=>({marginRight:8,width:Rn-4,height:Rn-4,cursor:"pointer",color:t.palette.secondary.main||"#fbff7d",verticalAlign:"top"}),cellIdIconDocument:{verticalAlign:"middle",marginLeft:(Rn-Yr)/2,marginRight:8,width:Yr,height:Yr},cellIdIconOwn:{},cellIdTooltip:{fontSize:14},cellIdTooltipLink:{color:"#7ec2fd","&:hover":{color:"#7ec2fd"},"&:visited":{color:"#7ec2fd"}},cellCopyButton:{width:Yr,height:Yr,top:(Rn-Yr)/2,opacity:.8,position:"absolute",right:3},cellCopyButtonInDetails:{width:Yr,height:Yr,top:(Rn-Yr)/2,opacity:.8},cellEditButton:{width:Yr,height:Yr,color:"white",position:"absolute",top:(Rn-Yr)/2,right:Yr+3,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:t=>({fontStyle:"italic",fontSize:12,opacity:.7,"&:hover":{color:t.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:Xc,height:Xc,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:Rn,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:Yr+4,height:Yr+4,"&:hover":{opacity:1},p:0,mt:"-2px"},cellButtonsEmptyButton:{fontSize:12},cellButtonMinWidth:{minWidth:40},cellButtonsButtonAlone:{ml:`${Yr+6}px`,pt:0,mt:"-2px"},cellButtonsButtonWithCustoms:t=>({color:t.palette.mode==="dark"?t.palette.primary.main:t.palette.secondary.main}),cellButtonsButtonWithoutCustoms:{opacity:.2},cellButtonsValueButton:t=>({position:"absolute",top:Yr/2-2,opacity:.7,width:Yr-2,height:Yr-2,color:t.palette.action.active,"&:hover":{opacity:1}}),cellButtonsValueButtonCopy:{right:8,cursor:"pointer"},cellButtonsValueButtonEdit:{right:Yr/2+16},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},selectNone:{opacity:.5},itemSelected:t=>({background:`${t.palette.primary.main} !important`,color:`${ue.invertColor(t.palette.primary.main,!0)} !important`}),header:{width:"100%"},headerCell:{display:"inline-block",verticalAlign:"top"},headerCellValue:{paddingTop:4,fontSize:16},headerCellInput:{width:"calc(100% - 5px)",height:Rn,pt:0,"& .itemIcon":{verticalAlign:"middle",width:Xc,height:Xc,display:"inline-block"}},headerCellSelectItem:{"& .itemIcon":{width:Xc,height:Xc,mr:"5px",display:"inline-block"}},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"},enumButton:{float:"right"},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"},selectClearButton:{position:"absolute",top:0,right:0,borderRadius:5,backgroundColor:"background.default"},iconDeviceConnected:t=>({color:t.palette.mode==="dark"?S2:C2,opacity:.8,position:"absolute",top:4,right:32,width:20}),iconDeviceDisconnected:t=>({color:t.palette.mode==="dark"?$2:k2,opacity:.8,position:"absolute",top:4,right:32,width:20}),iconDeviceError:t=>({color:t.palette.mode==="dark"?xV:SV,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:t=>({backgroundColor:t.palette.mode==="dark"?"#9a9a9a":"#565656",padding:"0 3px",borderRadius:"2px 0 0 2px"}),invertedBackgroundFlex:t=>({backgroundColor:t.palette.mode==="dark"?"#9a9a9a":"#565656",borderRadius:"0 2px 2px 0"}),contextMenuEdit:t=>({color:t.palette.mode==="dark"?"#ffee48":"#cbb801"}),contextMenuEditValue:t=>({color:t.palette.mode==="dark"?"#5dff45":"#1cd301"}),contextMenuView:t=>({color:t.palette.mode==="dark"?"#FFF":"#000"}),contextMenuCustom:t=>({color:t.palette.mode==="dark"?"#42eaff":"#01bbc2"}),contextMenuACL:t=>({color:t.palette.mode==="dark"?"#e079ff":"#500070"}),contextMenuRoom:t=>({color:t.palette.mode==="dark"?"#ff9a33":"#642a00"}),contextMenuRole:t=>({color:t.palette.mode==="dark"?"#ffdb43":"#562d00"}),contextMenuDelete:t=>({color:t.palette.mode==="dark"?"#ff4f4f":"#cf0000"}),contextMenuKeys:{marginLeft:8,opacity:.7,fontSize:"smaller"},contextMenuWithSubMenu:{display:"flex"}};function u_t(t){return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 436 436",style:t==null?void 0:t.style,width:"24",height:"24",className:"admin-button"},m.createElement("g",{fill:"currentColor"},m.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"}),m.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 p_t(t,e){const r=[];for(let n=0;n{if(o==null)return;const i=typeof o=="object";if(r&&i&&typeof o.en=="string"&&typeof o.de=="string"){n[a]=o.en;return}n[a]=i?E2(o,e,r):o}):h_t(t,(n,o,a)=>{if(o==null||e.includes(a))return;const i=typeof o=="object";if(r&&i&&typeof o.en=="string"&&typeof o.de=="string"){n[a]=o.en;return}n[a]=i?E2(o,e,r):o})}function vz(t,e,r){const n=document.createElement("a"),o=[];r.excludeSystemRepositories&&o.push("system.repositories");const a=o.length>0||r.excludeTranslations?E2(e,o,r.excludeTranslations):e,i=r.beautify?JSON.stringify(a,null,2):JSON.stringify(a);n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(i)}`),n.setAttribute("download",t),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}function uf(t,e,r,n){if(r=r||0,n===void 0&&(n=t.length-1,!n))return t[0]===e;const o=Math.floor((r+n)/2);return e===t[o]?!0:n-1===r?t[r]===e||t[n]===e:e>t[o]?uf(t,e,o,n):ek.role.startsWith(O))||(d=!0)):d=!0),!d&&((T=i.common)==null?void 0:T.custom)==="_"&&(k!=null&&k.custom))d=!0;else if(!d&&((E=i.common)!=null&&E.custom)&&(($=i.common)==null?void 0:$.custom)!=="_"){const O=i.common.custom;if(!(k!=null&&k.custom))d=!0;else if(O==="_dataSources")Object.keys(k.custom).find(M=>M.startsWith("history.")||M.startsWith("sql.")||M.startsWith("influxdb."))||(d=!0);else if(Array.isArray(O)){const M=Object.keys(k.custom);O.find(R=>M.find(j=>j.startsWith(R)))&&(d=!0)}else O!==!0&&!Object.keys(k.custom).find(M=>M.startsWith(O))&&(d=!0)}}!d&&!e.expertMode&&(d=h.id==="system"||h.id==="enum"||h.id.startsWith("system.")||h.id.startsWith("enum.")||h.id.startsWith("_design/")||h.id.endsWith(".admin")||!!(k!=null&&k.expert)),!d&&o.id&&(h.fID===void 0&&(h.fID=h.id.toLowerCase()),d=!h.fID.includes(o.id)),!d&&o.name&&(k?(h.fName===void 0&&(h.fName=k&&xo(k.name,r)||"",h.fName=h.fName.toLowerCase()),d=!h.fName.includes(o.name)):d=!0),!d&&e.role&&k&&(k?d=!(k.role&&k.role.startsWith(o.role)):d=!0),!d&&o.room&&(d=!o.room.find(O=>O===h.id||h.id.startsWith(`${O}.`))),!d&&o.func&&(d=!o.func.find(O=>O===h.id||h.id.startsWith(`${O}.`))),!d&&o.type&&(d=!(h.obj&&h.obj.type&&h.obj.type===o.type)),!d&&s&&(d=!(h.obj&&h.obj.type&&s.includes(h.obj.type))),!d&&o.custom&&(k?o.custom==="_"?d=!!k.custom:d=!k.custom||!k.custom[o.custom]:d=!0)}return h.visible=!d,h.hasVisibleChildren=!1,t.children&&l<20&&t.children.forEach(k=>{T2(k,e,r,n,o,a,i,s,l+1)&&(h.hasVisibleChildren=!0)}),h.sumVisibility=h.visible||h.hasVisibleChildren,a&&h.sumVisibility&&a.count++,h.id&&h.sumVisibility&&t.children&&t.children.forEach(k=>k.data.hasVisibleParent=!0),h.visible||h.hasVisibleChildren}function CV(t,e,r,n){var a;n=n||[];const o=t.data;return o.sumVisibility&&(o.id&&r[o.id]&&r[o.id].type===e&&n.push(o.id),(a=t.children)==null||a.forEach(i=>CV(i,e,r,n))),n}function yz(t,e,r,n,o,a){let i;return e==="alias"||e==="alias.0"?i=m.createElement(JH,{className:"iconOwn",style:{color:_V(n)}}):e==="0_userdata"||e==="0_userdata.0"?i=m.createElement(yve,{className:"iconOwn",style:{color:yV(n)}}):e.startsWith("_design/")||e==="system"?i=m.createElement(F5,{className:"iconOwn",style:{color:bV(n)}}):e==="system.adapter"?i=m.createElement(F5,{className:"iconOwn",style:{color:wV(n)}}):e==="system.group"?i=m.createElement(ZH,{className:"iconOwn"}):e==="system.user"?i=m.createElement(YH,{className:"iconOwn"}):e==="system.host"?i=m.createElement(KH,{className:"iconOwn"}):e.endsWith(".connection")||e.endsWith(".connected")?i=m.createElement(ch,{className:"iconOwn"}):e.endsWith(".info")?i=m.createElement(kve,{className:"iconOwn"}):t[e]&&t[e].type==="meta"?i=m.createElement(IO,{className:"iconOwn"}):r<2&&t[`system.adapter.${e}`]&&(i=Gv(t,`system.adapter.${e}`,o,a)),i||null}function $V(t,e){var r,n;return(n=(r=t==null?void 0:t.obj)==null?void 0:r.common)!=null&&n.desc&&xo(t.obj.common.desc,e)||null}function f_t(t,e){const r=$V(t,e);return r!=null&&r.startsWith("http")?m.createElement(Re,{component:"a",sx:Q.cellIdTooltipLink,href:r,target:"_blank",rel:"noreferrer"},r):m.createElement("span",{style:Q.cellIdTooltip},r||t.id||"")}function _z(t,e){var h,u,f,g,y,b,x,S,T;const r=e.imagePrefix||".";let n=Object.keys(t);n.sort((E,$)=>E===$?0:(E=E.replace(/\./g,"!!!"),$=$.replace(/\./g,"!!!"),E>$?1:-1)),e.root&&(n=n.filter(E=>E===e.root||E.startsWith(`${e.root}.`)));let o=[],a="",i=0;const s={data:{name:"",id:""},children:[]},l={funcEnums:[],roomEnums:[],roles:[],ids:[],types:[],objects:t,customs:["_"],enums:[],hasSomeCustoms:!1,aliasesMap:{}};let d=s;for(let E=0;E1){let j=a;for(let I=i;Iz.data.name===O[I]));else{const z={data:{name:O[I],parent:d,id:j,obj:t[j],level:I,icon:yz(t,j,I,e.themeType,e.lang,r),generated:!0}};d.children=d.children||[],d.children.push(z),d=z,l.ids.push(j)}}const R={data:{name:O[O.length-1],title:xo((f=k==null?void 0:k.common)==null?void 0:f.name,e.lang),obj:k,parent:d,icon:Gv(t,$,e.lang,r)||yz(t,$,0,e.themeType,e.lang,r),id:$,hasCustoms:!!((g=k.common)!=null&&g.custom&&Object.keys(k.common.custom).length),level:O.length-1,generated:!1,button:k.type==="state"&&!!((y=k.common)!=null&&y.role)&&typeof k.common.role=="string"&&k.common.role.startsWith("button")&&((b=k.common)==null?void 0:b.write)!==!1,switch:k.type==="state"&&((x=k.common)==null?void 0:x.type)==="boolean"&&((S=k.common)==null?void 0:S.write)!==!1&&((T=k.common)==null?void 0:T.read)!==!1}};d.children=d.children||[],d.children.push(R),d=R,i=O.length,o=O,a=$}else{let R=0;for(;o[R]===O[R];)R++;if(R>0){let j=o.length;for(o=o.splice(0,R),i=R,a=o.join(".");j>R;)d.data.parent?d=d.data.parent:console.error(`Parent is null for ${$} ${a} ${o.join(".")}`),j--}else d=s,o=[],a="",i=0;M=!0}while(M)}return l.roomEnums.sort((E,$)=>{var M,R,j,I;const k=xo((R=(M=t[E])==null?void 0:M.common)==null?void 0:R.name,e.lang)||E.split(".").pop(),O=xo((I=(j=t[$])==null?void 0:j.common)==null?void 0:I.name,e.lang)||$.split(".").pop();return k>O?1:k{var M,R,j,I;const k=xo((R=(M=t[E])==null?void 0:M.common)==null?void 0:R.name,e.lang)||E.split(".").pop(),O=xo((I=(j=t[$])==null?void 0:j.common)==null?void 0:I.name,e.lang)||$.split(".").pop();return k>O?1:kn)break}return a?(o=o||0,kV(a,e,r,`${n}.${r[o+1]}`,o+1)):null}function EV(t,e,r,n){var i,s;if(!e)return{rooms:[],per:!1};n=n||[];for(const l of t.roomEnums){const d=(i=t.objects[l])==null?void 0:i.common;if(!d)continue;const h=xo(d.name,r);(s=d.members)!=null&&s.includes(e)&&!n.includes(h)&&n.push(h)}let o;const a=e.split(".");return a.pop(),e=a.join("."),t.objects[e]&&(o=n.length,EV(t,e,r,n)),{rooms:n,per:!o}}function Jc(t,e,r,n){var o,a;if(!e)return[];n=n||[];for(let i=0;i946681200&&d<9466812e5&&(d*=1e3),d=d&&new Date(d).toString();else h==="number"?Number.isInteger(d)||(d=Math.round(d*1e8)/1e8,n&&(d=d.toString().replace(".",","))):h==="object"?d=JSON.stringify(d):h!=="string"?d=d.toString():d.startsWith("data:image/")&&(l="image"),typeof d!="string"&&(d=d.toString());const u={v:d};i&&i[d]!==void 0&&d!==i[d]&&(u.s=d,d=i[d],u.v=d),s!=null&&s.unit&&(u.u=s.unit);let f;if(t.full&&(f=[{t:o.value,v:d}],r)){if(r.ack!==void 0&&r.ack!==null&&f.push({t:o.ack,v:r.ack.toString()}),r.ts&&f.push({t:o.ts,v:r.ts?ue.formatDate(new Date(r.ts),e):""}),r.lc&&f.push({t:o.lc,v:r.lc?ue.formatDate(new Date(r.lc),e):""}),r.from){let g=r.from.toString();g.startsWith("system.adapter.")&&(g=g.substring(15)),f.push({t:o.from,v:g})}if(r.user){let g=r.user.toString();g.startsWith("system.user.")&&(g=g.substring(12)),f.push({t:o.user,v:g})}r.c&&f.push({t:o.c,v:r.c}),f.push({t:o.quality,v:ue.quality2text(r.q||0).join(", "),nbr:!0})}return{valText:u,valFull:f,fileViewer:l}}function m_t(t){const{state:e}=t;return{color:e!=null&&e.ack?e.q?"#ffa500":"":"#ff2222c9"}}function g_t(t,e){let r=e,n=1;const o=[];for(;n=r)o.push(0);else if(n{this.contextMenu&&Date.now()-this.contextMenu.ts<2e3?(r.preventDefault(),this.setState({showContextMenu:{item:this.contextMenu.item,position:{left:r.clientX+2,top:r.clientY-6}}})):this.state.showContextMenu&&(r.preventDefault(),this.setState({showContextMenu:null})),this.contextMenu=null});X(this,"onStateChange",(r,n)=>{if(console.log(`> stateChange ${r}`),this.states[r]){const o=this.findItem(r);o!=null&&o.data.state&&(o.data.state=void 0)}n?this.states[r]=n:delete this.states[r],this.pausedSubscribes?this.statesUpdateTimer&&(clearTimeout(this.statesUpdateTimer),this.statesUpdateTimer=null):this.statesUpdateTimer||(this.statesUpdateTimer=setTimeout(()=>{this.statesUpdateTimer=null,this.forceUpdate()},300))});X(this,"onObjectChangeFromWorker",r=>{if(Array.isArray(r)){let n=null;r.forEach(o=>{const{newInnerState:a,filtered:i}=this.processOnObjectChangeElement(o.id,o.obj);i||(a&&n?Object.assign(n,a):n=a)}),n&&this.setState(n),this.afterObjectUpdated()}});X(this,"onObjectChange",(r,n)=>{const{newInnerState:o,filtered:a}=this.processOnObjectChangeElement(r,n);a||(o&&this.setState(o),this.afterObjectUpdated())});X(this,"getEnumsForId",r=>{const n=[];return this.info.enums.forEach(o=>{var a,i,s;if((s=(i=(a=this.objects[o])==null?void 0:a.common)==null?void 0:i.members)!=null&&s.includes(r)){const l={_id:this.objects[o]._id,common:JSON.parse(JSON.stringify(this.objects[o].common)),native:this.objects[o].native,type:"enum"};l.common&&(delete l.common.members,delete l.common.custom,delete l.common.mobile),n.push(l)}}),n.length?n:void 0});X(this,"_createAllEnums",async(r,n)=>{var o,a;for(let i=0;i{var o,a;const{t:r}=this.props;let n=[m.createElement("div",{key:1},r("ra_Only following structures of objects are available:")),m.createElement("div",{key:2},r("ra_Folder → State")),m.createElement("div",{key:3},r("ra_Folder → Channel → State")),m.createElement("div",{key:4},r("ra_Folder → Device → Channel → State")),m.createElement("div",{key:5},r("ra_Device → Channel → State")),m.createElement("div",{key:6},r("ra_Channel → State")),m.createElement("div",{key:7,style:{height:10}}),m.createElement("div",{key:8},r('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),m.createElement("div",{key:9},r('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){const i=this.state.selected[0]||this.state.selectedNonObject;if(!(i.split(".").length<2||this.objects[i]&&((o=this.objects[i])==null?void 0:o.type)==="state"))if(this.state.filter.expertMode)switch((a=this.objects[i])==null?void 0:a.type){case"device":n=[m.createElement("div",{key:1},r("ra_Only following structures of objects are available:")),m.createElement("div",{key:5},r("ra_Device → Channel → State")),m.createElement("div",{key:7,style:{height:10}}),m.createElement("div",{key:8},r('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),m.createElement("div",{key:9},r('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];break;case"folder":n=[m.createElement("div",{key:1},r("ra_Only following structures of objects are available:")),m.createElement("div",{key:2},r("ra_Folder → State")),m.createElement("div",{key:3},r("ra_Folder → Channel → State")),m.createElement("div",{key:4},r("ra_Folder → Device → Channel → State")),m.createElement("div",{key:7,style:{height:10}}),m.createElement("div",{key:8},r('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),m.createElement("div",{key:9},r('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];break;case"channel":n=[m.createElement("div",{key:1},r("ra_Only following structures of objects are available:")),m.createElement("div",{key:1},r("ra_Channel → State")),m.createElement("div",{key:7,style:{height:10}}),m.createElement("div",{key:8},r('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),m.createElement("div",{key:9},r('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];break}else(i.startsWith("alias.0")||i.startsWith("0_userdata"))&&(n=[m.createElement("div",{key:1},r("ra_Only following structures of objects are available:")),m.createElement("div",{key:2},r("ra_Folder → State")),m.createElement("div",{key:3},r("ra_Folder → Channel → State")),m.createElement("div",{key:4},r("ra_Folder → Device → Channel → State")),m.createElement("div",{key:5},r("ra_Device → Channel → State")),m.createElement("div",{key:6},r("ra_Channel → State")),m.createElement("div",{key:7,style:{height:10}}),m.createElement("div",{key:7},r('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),m.createElement("div",{key:8},r('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))])}return n.length?n:r("ra_Add new child object to selected parent")});X(this,"renderTooltipAccessControl",r=>{if(!r)return null;const n=[{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"}],o=[],a=i=>{const s=r[i];n.forEach((l,d)=>{s&l.valueNum&&o.push(m.createElement("span",{key:i+d},this.texts[`acl${l.group}_${l.title}_${i}`],",",m.createElement("span",{style:i==="object"?Q.rightsObject:Q.rightsState},l.value)))})};return o.push(m.createElement("span",{key:"group"},`${this.texts.ownerGroup}: ${(r.ownerGroup||"").replace("system.group.","")}`)),o.push(m.createElement("span",{key:"owner"},`${this.texts.ownerUser}: ${(r.owner||"").replace("system.user.","")}`)),a("object"),r.state&&a("state"),o.length?m.createElement("span",{style:Q.tooltipAccessControl},o.map(i=>i)):null});X(this,"resizerMouseMove",r=>{if(this.resizerActiveDiv){let n,o;this.resizeLeft?(n=this.resizerOldWidth-r.clientX+this.resizerPosition,o=this.resizerOldWidthNext+r.clientX-this.resizerPosition):(n=this.resizerOldWidth+r.clientX-this.resizerPosition,o=this.resizerOldWidthNext-r.clientX+this.resizerPosition),this.resizerActiveName&&this.resizerNextName&&(!this.resizerMin||n>this.resizerMin)&&(!this.resizerNextMin||o>this.resizerNextMin)&&(this.resizerCurrentWidths[this.resizerActiveName]=n,this.resizerCurrentWidths[this.resizerNextName]=o,this.resizerActiveDiv.style.width=`${n}px`,this.resizerNextDiv&&(this.resizerNextDiv.style.width=`${o}px`),this.columnsVisibility[this.resizerActiveName]=n,this.columnsVisibility[this.resizerNextName]=o,this.resizerNextName==="nameHeader"?(this.columnsVisibility.name=o-this.state.scrollBarWidth,this.resizerCurrentWidths.name=o-this.state.scrollBarWidth):this.resizerActiveName==="nameHeader"&&(this.columnsVisibility.name=n-this.state.scrollBarWidth,this.resizerCurrentWidths.name=n-this.state.scrollBarWidth),this.customWidth=!0,this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=null,this.forceUpdate()},200))}});X(this,"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)});X(this,"resizerMouseDown",r=>{if(this.storedWidths=this.storedWidths||JSON.parse(JSON.stringify(Vr[this.props.width||"lg"])),this.resizerCurrentWidths=this.resizerCurrentWidths||{},this.resizerActiveDiv=r.target.parentNode,this.resizerActiveName=this.resizerActiveDiv.dataset.name||null,this.resizerActiveName){let n=0;if(r.target.dataset.left==="true"){this.resizeLeft=!0,this.resizerNextDiv=this.resizerActiveDiv.previousElementSibling;let o=this.resizerNextDiv.querySelector(".iob-ob-resize-handler");for(;this.resizerNextDiv&&!o&&n<10;)this.resizerNextDiv=this.resizerNextDiv.previousElementSibling,o=this.resizerNextDiv.querySelector(".iob-ob-resize-handler"),n++;(o==null?void 0:o.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=r.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)}});X(this,"resizerReset",()=>{this.customWidth=!1,Vr[this.props.width||"lg"]=JSON.parse(JSON.stringify(this.storedWidths)),this.calculateColumnsVisibility(),this.localStorage.removeItem(`${this.props.dialogName||"App"}.table`),this.forceUpdate()});const n=this.localStorage.getItem(`${r.dialogName||"App"}.objectSelected`)||"";if(this.selectFirst="",n.startsWith("["))try{const S=JSON.parse(n);this.selectFirst=S[0]||""}catch{}else this.selectFirst=n;let o;const a=this.localStorage.getItem(`${r.dialogName||"App"}.objectExpanded`)||"[]";try{o=JSON.parse(a)}catch{o=[]}let i;const s=r.defaultFilters?"":this.localStorage.getItem(`${r.dialogName||"App"}.objectFilter`)||"";if(s)try{i=JSON.parse(s)}catch{i={...Rg}}else r.defaultFilters&&typeof r.defaultFilters=="object"?i={...r.defaultFilters}:i={...Rg};if(i.expertMode=r.expertMode!==void 0?r.expertMode:(window._sessionStorage||window.sessionStorage).getItem("App.expertMode")==="true",this.tableRef=A.createRef(),this.filterRefs={},Object.keys(Rg).forEach(S=>this.filterRefs[S]=A.createRef()),this.visibleCols=r.columns||Vr[r.width||"lg"].fields,r.types&&r.types.length===1){const S=this.visibleCols.indexOf("type");S!==-1&&this.visibleCols.splice(S,1)}this.possibleCols=Vr.xl.fields;let l=null;if(r.router){const S=r.router.getLocation();S.id&&S.dialog==="customs"&&(l=[S.id],this.pauseSubscribe(!0))}let d;Array.isArray(r.selected)?d=r.selected:d=[r.selected||""],d=d.map(S=>S.replace(/["']/g,"")).filter(S=>S),this.selectFirst=d.length&&d[0]?d[0]:this.selectFirst;const h=this.localStorage.getItem(`${r.dialogName||"App"}.columns`);let u;try{u=h?JSON.parse(h):null}catch{u=null}let f=null;try{f=f?JSON.parse(f):{}}catch{f={}}this.imagePrefix=r.imagePrefix||".";let g;const y=this.localStorage.getItem(`${r.dialogName||"App"}.foldersFirst`);y==="false"?g=!1:y==="true"?g=!0:g=r.foldersFirst===void 0?!0:r.foldersFirst;let b=!1;try{b=this.props.objectStatesView&&JSON.parse(this.localStorage.getItem(`${r.dialogName||"App"}.objectStatesView`)||"")||!1}catch{}this.state={loaded:!1,foldersFirst:g,selected:d,selectedNonObject:this.localStorage.getItem(`${r.dialogName||"App"}.selectedNonObject`)||"",filter:i,filterKey:0,focused:this.localStorage.getItem(`${r.dialogName||"App"}.focused`)||"",depth:0,expandAllVisible:!1,expanded:o,toast:"",scrollBarWidth:16,customDialog:l,editObjectDialog:"",editObjectAlias:!1,viewFileDialog:"",showAliasEditor:"",enumDialog:null,roleDialog:null,statesView:b,columns:u,columnsForAdmin:null,columnsSelectorShow:!1,columnsAuto:this.localStorage.getItem(`${r.dialogName||"App"}.columnsAuto`)!=="false",columnsWidths:f,columnsDialogTransparent:100,columnsEditCustomDialog:null,customColumnDialogValueChanged:!1,showExportDialog:!1,showAllExportOptions:!1,linesEnabled:this.localStorage.getItem(`${r.dialogName||"App"}.lines`)==="true",showDescription:this.localStorage.getItem(`${r.dialogName||"App"}.desc`)!=="false",showContextMenu:null,noStatesByExportImport:!1,beautifyJsonExport:!0,excludeSystemRepositoriesFromExport:!0,excludeTranslations:!1,tooltipInfo:null,aliasMenu:""},this.texts={name:r.t("ra_Name"),categories:r.t("ra_Categories"),value:r.t("ra_tooltip_value"),ack:r.t("ra_tooltip_ack"),ts:r.t("ra_tooltip_ts"),lc:r.t("ra_tooltip_lc"),from:r.t("ra_tooltip_from"),user:r.t("ra_tooltip_user"),c:r.t("ra_tooltip_comment"),quality:r.t("ra_tooltip_quality"),editObject:r.t("ra_tooltip_editObject"),deleteObject:r.t("ra_tooltip_deleteObject"),customConfig:r.t("ra_tooltip_customConfig"),copyState:r.t("ra_tooltip_copyState"),editState:r.t("ra_tooltip_editState"),close:r.t("ra_Close"),filter_id:r.t("ra_filter_id"),filter_name:r.t("ra_filter_name"),filter_type:r.t("ra_filter_type"),filter_role:r.t("ra_filter_role"),filter_room:r.t("ra_filter_room"),filter_func:r.t("ra_filter_func"),filter_custom:r.t("ra_filter_customs"),filterCustomsWithout:r.t("ra_filter_customs_without"),objectChangedByUser:r.t("ra_object_changed_by_user"),objectChangedBy:r.t("ra_object_changed_by"),objectChangedFrom:r.t("ra_state_changed_from"),stateChangedBy:r.t("ra_state_changed_by"),stateChangedFrom:r.t("ra_state_changed_from"),ownerGroup:r.t("ra_Owner group"),ownerUser:r.t("ra_Owner user"),deviceError:r.t("ra_Error"),deviceDisconnected:r.t("ra_Disconnected"),deviceConnected:r.t("ra_Connected"),aclOwner_read_object:r.t("ra_aclOwner_read_object"),aclOwner_read_state:r.t("ra_aclOwner_read_state"),aclOwner_write_object:r.t("ra_aclOwner_write_object"),aclOwner_write_state:r.t("ra_aclOwner_write_state"),aclGroup_read_object:r.t("ra_aclGroup_read_object"),aclGroup_read_state:r.t("ra_aclGroup_read_state"),aclGroup_write_object:r.t("ra_aclGroup_write_object"),aclGroup_write_state:r.t("ra_aclGroup_write_state"),aclEveryone_read_object:r.t("ra_aclEveryone_read_object"),aclEveryone_read_state:r.t("ra_aclEveryone_read_state"),aclEveryone_write_object:r.t("ra_aclEveryone_write_object"),aclEveryone_write_state:r.t("ra_aclEveryone_write_state"),create:r.t("ra_Create"),createBooleanState:r.t("ra_create_boolean_state"),createNumberState:r.t("ra_create_number_state"),createStringState:r.t("ra_create_string_state"),createState:r.t("ra_create_state"),createChannel:r.t("ra_create_channel"),createDevice:r.t("ra_create_device"),createFolder:r.t("ra_Create folder")},this.levelPadding=r.levelPadding||c_t;const x=this.localStorage.getItem(`${this.props.dialogName||"App"}.table`);if(x)try{const S=JSON.parse(x),T=this.props.width||"lg";this.storedWidths=JSON.parse(JSON.stringify(Vr[T])),Object.keys(S).forEach(E=>{E==="id"?Vr[T].idWidth=S.id:E==="nameHeader"?Vr[T].widths.name=S[E]:Vr[T].widths[E]!==void 0&&(Vr[T].widths[E]=S[E])}),this.customWidth=!0}catch{}this.calculateColumnsVisibility()}async loadAllObjects(r){const n=this.props;try{await new Promise(d=>{this.setState({updating:!0},()=>d())});const o=(this.props.objectsWorker?await this.props.objectsWorker.getObjects(r):await n.socket.getObjects(r,!0))||{};if(n.types&&Oi.isWeb())for(let d=0;d{try{if(d(o[h]))this.objects[h]=o[h];else{const u=o[h]&&o[h].type;u&&(u==="channel"||u==="device"||u==="folder"||u==="adapter"||u==="instance")&&(this.objects[h]=o[h])}}catch(u){console.log(`Error by filtering of "${h}": ${u}`)}})}else if(n.types){this.objects={};const d=n.types;Object.keys(o).forEach(h=>{const u=o[h]&&o[h].type;u&&(u==="channel"||u==="device"||u==="enum"||u==="folder"||u==="adapter"||u==="instance"||d.includes(u))&&(this.objects[h]=o[h])})}else this.objects=o;n.setObjectsReference&&n.setObjectsReference(this.objects),this.defaultHistory=this.systemConfig.common.defaultHistory,this.defaultHistory&&n.socket.getState(`system.adapter.${this.defaultHistory}.alive`).then(d=>{(!d||!d.val)&&(this.defaultHistory="")}).catch(d=>window.alert(`Cannot get state: ${d}`));const a=await this.getAdditionalColumns();this.calculateColumnsVisibility(null,null,a);const{info:i,root:s}=_z(this.objects,{imagePrefix:this.props.imagePrefix,root:this.props.root,lang:this.props.lang,themeType:this.props.themeType});this.root=s,this.info=i;const l=this.state.selected&&this.state.selected.length&&kV(this.root,this.state.selected[0]);this.lastAppliedFilter=null,l&&!T2(l,this.state.filter,this.props.lang,this.objects,void 0,void 0,n.customFilter,n.types)?this.setState({filter:{...Rg},columnsForAdmin:a},()=>{this.setState({loaded:!0,updating:!1},()=>this.expandAllSelected(()=>this.onAfterSelect()))}):this.setState({loaded:!0,updating:!1,columnsForAdmin:a},()=>this.expandAllSelected(()=>this.onAfterSelect()))}catch(o){this.showError(o)}}static isNonExpertId(r){return!!dP(va,iy).find(n=>r.startsWith(n))}expandAllSelected(r){const n=[...this.state.expanded];let o=!1;this.state.selected.forEach(a=>{const i=a.split("."),s=[];for(let l=0;l{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,r)):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,r)):this.props.onSelect([],""))}static getDerivedStateFromProps(r,n){const o={};let a=!1;return r.expertMode!==void 0&&r.expertMode!==n.filter.expertMode&&(a=!0,o.filter={...n.filter},o.filter.expertMode=r.expertMode),a?o:null}async componentDidMount(){await this.loadAllObjects(!wz),this.props.objectsWorker?this.props.objectsWorker.registerHandler(this.onObjectChangeFromWorker):await this.props.socket.subscribeObject("*",this.onObjectChange),wz=!0,window.addEventListener("contextmenu",this.onContextMenu,!0)}componentWillUnmount(){this.filterTimer&&(clearTimeout(this.filterTimer),this.filterTimer=null),window.removeEventListener("contextmenu",this.onContextMenu,!0),this.props.objectsWorker?this.props.objectsWorker.unregisterHandler(this.onObjectChangeFromWorker,!0):this.props.socket.unsubscribeObject("*",this.onObjectChange).catch(r=>console.error(`Cannot unsubscribe *: ${r}`)),this.subscribes.forEach(r=>{console.log(`- unsubscribe ${r}`),this.props.socket.unsubscribeState(r,this.onStateChange)}),this.subscribes=[],this.objects={}}showDeleteDialog(r){var d,h;const{id:n,obj:o,item:a}=r,i=Object.keys(this.objects);i.sort();let s=0;const l=`${n}.`;for(let u=0;ul)break;this.props.onObjectDelete&&this.props.onObjectDelete(n,!!((d=a.children)!=null&&d.length),!((h=o.common)!=null&&h.dontDelete),s+1)}refreshComponent(){this.subscribes.forEach(r=>{console.log(`- unsubscribe ${r}`),this.props.socket.unsubscribeState(r,this.onStateChange)}),this.subscribes=[],this.loadAllObjects(!0).then(()=>console.log("updated!")).catch(r=>this.showError(r))}renderErrorDialog(){return this.state.error?m.createElement(or,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({error:""}),"aria-labelledby":"error-dialog-title","aria-describedby":"error-dialog-description"},m.createElement(_r,{id:"alert-dialog-title"},this.props.t("ra_Error")),m.createElement(Wr,null,m.createElement(Ds,{id:"alert-dialog-description"},this.state.error)),m.createElement(pr,null,m.createElement(tt,{variant:"contained",onClick:()=>this.setState({error:""}),color:"primary",autoFocus:!0,startIcon:m.createElement(Ea,null)},this.props.t("ra_Ok")))):null}showError(r){this.setState({error:typeof r=="object"?r&&typeof r.toString=="function"?r.toString():JSON.stringify(r):r})}onSelect(r,n,o){if(this.localStorage.setItem(`${this.props.dialogName||"App"}.focused`,r),!this.props.multiSelect)this.objects[r]&&(!this.props.types||this.props.types.includes(this.objects[r].type))?(this.localStorage.removeItem(`${this.props.dialogName||"App"}.selectedNonObject`),this.state.selected[0]!==r?this.setState({selected:[r],selectedNonObject:"",focused:r},()=>{this.onAfterSelect(n),o&&o()}):n&&this.props.onSelect&&this.onAfterSelect(n)):(this.localStorage.setItem(`${this.props.dialogName||"App"}.selectedNonObject`,r),this.setState({selected:[],selectedNonObject:r,focused:r},()=>{this.onAfterSelect(),o&&o()}));else if(this.objects[r]&&(!this.props.types||this.props.types.includes(this.objects[r].type))){this.localStorage.removeItem(`${this.props.dialogName||"App"}.selectedNonObject`);const a=[...this.state.selected],i=a.indexOf(r);i===-1?(a.push(r),a.sort()):n||a.splice(i,1),this.setState({selected:a,selectedNonObject:"",focused:r},()=>{this.onAfterSelect(n),o&&o()})}}_renderDefinedList(r){const n=[...this.possibleCols];if(n.unshift("id"),this.props.columns&&!this.props.columns.includes("buttons")){const o=n.indexOf("buttons");o!==-1&&n.splice(o,1)}return n.filter(o=>r&&(o==="val"||o==="buttons")||!r&&o!=="val"&&o!=="buttons").map(o=>{var a;return m.createElement(Ev,{onClick:()=>{if(!this.state.columnsAuto&&o!=="id"){const i=[...this.state.columns||[]],s=i.indexOf(o);s===-1?(i.push(o),i.sort()):i.splice(s,1),this.localStorage.setItem(`${this.props.dialogName||"App"}.columns`,JSON.stringify(i)),this.calculateColumnsVisibility(null,i),this.setState({columns:i})}},key:o},m.createElement(yr,{edge:"start",disabled:o==="id"||this.state.columnsAuto,checked:o==="id"||!!(this.state.columnsAuto?this.visibleCols.includes(o):(a=this.state.columns)!=null&&a.includes(o)),disableRipple:!0}),m.createElement(_o,{primary:this.texts[`filter_${o}`]||this.props.t(`ra_${o}`)}))})}renderColumnsSelectorDialog(){return this.state.columnsSelectorShow?m.createElement(or,{onClose:()=>this.setState({columnsSelectorShow:!1}),open:!0,sx:{"& .MuiPaper-root":ue.getStyle(this.props.theme,Q.dialogColumns,Q[`transparent_${this.state.columnsDialogTransparent}`])}},m.createElement(_r,{sx:Q.fontSizeTitle},this.props.t("ra_Configure")),m.createElement(Wr,{sx:Q.fontSizeTitle},m.createElement(St,{style:Q.switchColumnAuto,control:m.createElement(ih,{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")}),m.createElement(St,{style:Q.switchColumnAuto,control:m.createElement(ih,{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")}),m.createElement(St,{style:Q.switchColumnAuto,control:m.createElement(ih,{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)")}),m.createElement(vu,null,this._renderDefinedList(!1),this.state.columnsForAdmin&&Object.keys(this.state.columnsForAdmin).sort().map(r=>this.state.columnsForAdmin&&this.state.columnsForAdmin[r].map(n=>{var o;return m.createElement(Ev,{onClick:()=>{if(!this.state.columnsAuto){const a=[...this.state.columns||[]],i=`_${r}_${n.path}`,s=a.indexOf(i);s===-1?(a.push(i),a.sort()):a.splice(s,1),this.calculateColumnsVisibility(null,a),this.localStorage.setItem(`${this.props.dialogName||"App"}.columns`,JSON.stringify(a)),this.setState({columns:a})}},key:`${r}_${n.name}`},m.createElement(ba,null,m.createElement(yr,{disabled:this.state.columnsAuto,edge:"start",checked:!this.state.columnsAuto&&((o=this.state.columns)==null?void 0:o.includes(`_${r}_${n.path}`)),disableRipple:!0})),m.createElement(_o,{primary:`${n.name} (${r})`}))})),this._renderDefinedList(!0))),m.createElement(pr,null,m.createElement(tt,{variant:"contained",onClick:()=>this.setState({columnsSelectorShow:!1}),color:"primary",startIcon:m.createElement(Ar,null)},this.texts.close))):null}async getAdditionalColumns(){try{const r=await this.props.socket.getAdapters();let n=null;return r.forEach(o=>n=this.parseObjectForAdmins(n,o)),n}catch(r){return console.error(`Cannot get adapters: ${r}`),null}}checkUnsubscribes(){for(let r=this.subscribes.length-1;r>=0;r--)this.recordStates.includes(this.subscribes[r])||this.unsubscribe(this.subscribes[r]);this.recordStates=[]}findItem(r,n,o,a){if(n=n||r.split("."),o=o||this.root,!o||!n.length)return null;if(a=(a?`${a}.`:"")+n.shift(),o.children){const i=o.children.find(s=>s.data.id===a);if(i){if(i.data.id===r)return i;if(n.length)return this.findItem(r,n,i,a)}else return null}return null}parseObjectForAdmins(r,n){if(n.common&&n.common.adminColumns&&n.common.name){const o=n.common.adminColumns;let a;o&&typeof o!="object"?a=[o]:o&&(a=o);let i;o?i=a.map(s=>{if(typeof s!="object")return{path:s,name:s.split(".").pop()};const l=s;return l.objTypes&&typeof l.objTypes!="object"?l.objTypes=[l.objTypes]:l.objTypes||(l.objTypes=void 0),!l.name&&l.path?{path:l.path,name:l.path.split(".").pop(),width:l.width,edit:!!l.edit,type:l.type,objTypes:l.objTypes}:l.path?{path:l.path,name:xo(l.name||"",this.props.lang),width:l.width,edit:!!l.edit,type:l.type,objTypes:l.objTypes}:(console.warn(`Admin columns for ${n._id} ignored, because path not found`),null)}).filter(s=>s):i=null,i&&i.length&&(r=r||{},r[n.common.name]=i.sort((s,l)=>s.path>l.path?-1:s.path{this.objectsUpdateTimer=null;const{info:r,root:n}=_z(this.objects,{imagePrefix:this.props.imagePrefix,root:this.props.root,lang:this.props.lang,themeType:this.props.themeType});this.root=n,this.info=r,this.lastAppliedFilter=null,this.pausedSubscribes||this.forceUpdate()},500))}updateAliases(r){var o,a,i;if(!this.objects||!((o=this.info)!=null&&o.aliasesMap)||!(r!=null&&r.startsWith("alias.")))return;const n=Object.keys(this.objects).filter(s=>s.startsWith("alias.0"));this.info.aliasesMap={};for(const s of n){const l=this.objects[s];if((i=(a=l==null?void 0:l.common)==null?void 0:a.alias)!=null&&i.id)if(typeof l.common.alias.id=="string"){const d=l.common.alias.id;this.info.aliasesMap[d]?this.info.aliasesMap[d].includes(s)||this.info.aliasesMap[d].push(s):this.info.aliasesMap[d]=[s]}else{const d=l.common.alias.id.read;d&&(this.info.aliasesMap[d]?this.info.aliasesMap[d].includes(s)||this.info.aliasesMap[d].push(s):this.info.aliasesMap[d]=[s]);const h=l.common.alias.id.write;h&&(this.info.aliasesMap[h]?this.info.aliasesMap[h].includes(s)||this.info.aliasesMap[h].push(s):this.info.aliasesMap[h]=[s])}}}processOnObjectChangeElement(r,n){console.log(`> objectChange ${r}`);const o=n==null?void 0:n.type;if(n&&typeof this.props.filterFunc=="function"&&!this.props.filterFunc(n)&&o!=="channel"&&o!=="device"&&o!=="folder"&&o!=="adapter"&&o!=="instance")return{newInnerState:null,filtered:!0};let a=null;if(r.startsWith("system.adapter.")&&(n==null?void 0:n.type)==="adapter"){const i=JSON.parse(JSON.stringify(this.state.columnsForAdmin));this.parseObjectForAdmins(i,n),JSON.stringify(this.state.columnsForAdmin)!==JSON.stringify(i)&&(a={columnsForAdmin:i})}return this.objects=this.objects||{},n?this.objects[r]=n:this.objects[r]&&delete this.objects[r],this.updateAliases(r),{newInnerState:a,filtered:!1}}subscribe(r){this.subscribes.includes(r)||(this.subscribes.push(r),console.log(`+ subscribe ${r}`),this.pausedSubscribes||this.props.socket.subscribeState(r,this.onStateChange).catch(n=>console.error(`Cannot subscribe on state ${r}: ${n}`)))}unsubscribe(r){const n=this.subscribes.indexOf(r);n!==-1&&(this.subscribes.splice(n,1),this.states[r]&&delete this.states[r],console.log(`- unsubscribe ${r}`),this.props.socket.unsubscribeState(r,this.onStateChange),this.pausedSubscribes&&console.warn("Unsubscribe during pause?"))}pauseSubscribe(r){!this.pausedSubscribes&&r?(this.pausedSubscribes=!0,this.subscribes.forEach(n=>this.props.socket.unsubscribeState(n,this.onStateChange))):this.pausedSubscribes&&!r&&(this.pausedSubscribes=!1,this.subscribes.forEach(n=>this.props.socket.subscribeState(n,this.onStateChange)))}onFilter(r,n){this.filterTimer=null;const o={...this.state.filter};Object.keys(this.filterRefs).forEach(a=>{if(this.filterRefs[a]&&this.filterRefs[a].current){const i=this.filterRefs[a].current;for(let s=0;sthis.props.onFilterChanged&&this.props.onFilterChanged(o)))}clearFilter(){const r={...this.state.filter};Object.keys(this.filterRefs).forEach(n=>{if(this.filterRefs[n]&&this.filterRefs[n].current){const o=this.filterRefs[n].current;for(let a=0;athis.props.onFilterChanged&&this.props.onFilterChanged(r)))}isFilterEmpty(){return!Object.keys(this.state.filter).find(n=>n!=="expertMode"&&this.state.filter[n])}getFilterInput(r){var n,o,a;return m.createElement(_a,{sx:this.styles.filterInput,key:`${r}_${this.state.filterKey}`,margin:"dense"},m.createElement(ya,{ref:this.filterRefs[r],classes:{underline:"no-underline"},id:r,placeholder:this.texts[`filter_${r}`],defaultValue:this.state.filter[r]||"",onChange:()=>{this.filterTimer&&clearTimeout(this.filterTimer),this.filterTimer=setTimeout(()=>this.onFilter(),400)},autoComplete:"off"}),(a=(o=(n=this.filterRefs[r])==null?void 0:n.current)==null?void 0:o.firstChild)!=null&&a.value?m.createElement("div",{style:{position:"absolute",right:0}},m.createElement(Ie,{size:"small",onClick:()=>{var i;((i=this.filterRefs[r].current)==null?void 0:i.firstChild).value="",this.onFilter(r,"")}},m.createElement(Ar,null))):null)}getFilterSelect(r,n){var a,i,s;const o=!!(n!=null&&n.find(l=>l.icon));return m.createElement("div",{style:{position:"relative"}},m.createElement(Bn,{variant:"standard",key:`${r}_${this.state.filterKey}`,ref:this.filterRefs[r],sx:Q.headerCellInput,className:"no-underline",onChange:()=>{this.filterTimer&&clearTimeout(this.filterTimer),this.filterTimer=setTimeout(()=>this.onFilter(),400)},defaultValue:this.state.filter[r]||"",inputProps:{name:r,id:r},displayEmpty:!0},m.createElement(Jt,{key:"empty",value:""},m.createElement("span",{style:Q.selectNone},this.texts[`filter_${r}`])),n==null?void 0:n.map(l=>{let d,h,u;return typeof l=="object"?(d=l.value,h=l.name,u=l.icon):(d=l,h=l),m.createElement(Jt,{sx:Q.headerCellSelectItem,key:d,value:d},u||(o?m.createElement("div",{className:"itemIcon"}):null),h)})),(s=(i=(a=this.filterRefs[r])==null?void 0:a.current)==null?void 0:i.childNodes[1])!=null&&s.value?m.createElement(Re,{component:"div",sx:Q.selectClearButton},m.createElement(Ie,{size:"small",onClick:()=>{var d;const l={...this.state.filter};l[r]="",((d=this.filterRefs[r].current)==null?void 0:d.childNodes[1]).value="",this.localStorage.setItem(`${this.props.dialogName||"App"}.objectFilter`,JSON.stringify(l)),this.setState({filter:l,filterKey:this.state.filterKey+1},()=>this.props.onFilterChanged&&this.props.onFilterChanged(l))}},m.createElement(Ar,null))):null)}getFilterSelectRole(){return this.getFilterSelect("role",this.info.roles)}getFilterSelectRoom(){const r=this.info.roomEnums.map(n=>{var o,a,i,s;return{name:xo((a=(o=this.objects[n])==null?void 0:o.common)==null?void 0:a.name,this.props.lang)||n.split(".").pop(),value:n,icon:m.createElement(xl,{src:((s=(i=this.objects[n])==null?void 0:i.common)==null?void 0:s.icon)||"",style:Q.selectIcon})}});return this.getFilterSelect("room",r)}getFilterSelectFunction(){const r=this.info.funcEnums.map(n=>{var o,a,i,s;return{name:xo((a=(o=this.objects[n])==null?void 0:o.common)==null?void 0:a.name,this.props.lang)||n.split(".").pop(),value:n,icon:m.createElement(xl,{src:((s=(i=this.objects[n])==null?void 0:i.common)==null?void 0:s.icon)||"",style:Q.selectIcon})}});return this.getFilterSelect("func",r)}getFilterSelectType(){const r=this.info.types.map(n=>({name:n,value:n,icon:bz[n]||null}));return this.getFilterSelect("type",r)}getFilterSelectCustoms(){if(this.info.customs.length>1){const r=this.info.customs.map(n=>({name:n==="_"?this.texts.filterCustomsWithout:n,value:n,icon:n==="_"?null:m.createElement(xl,{src:Gv(this.objects,n,this.props.lang,this.imagePrefix)||"",style:Q.selectIcon})}));return this.getFilterSelect("custom",r)}return null}onExpandAll(r,n){var a;const o=r||this.root;n=n||[],(a=o==null?void 0:o.children)==null||a.forEach(i=>{i.data.sumVisibility&&(n.push(i.data.id),this.onExpandAll(i,n))}),o===this.root&&(n.sort(),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(n)),this.setState({expanded:n}))}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(r,n,o){var a;r=r||this.root,n>0&&((a=r.children)==null||a.forEach(i=>{i.data.sumVisibility&&(uf(o,i.data.id)||(o.push(i.data.id),o.sort()),n-1>0&&this.expandDepth(i,n-1,o))}))}static collapseDepth(r,n){return n.filter(o=>o.split(".").length<=r)}onExpandVisible(){if(this.state.depth<9){const r=this.state.depth+1,n=[...this.state.expanded];this.root&&this.expandDepth(this.root,r,n),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(n)),this.setState({depth:r,expanded:n})}}onStatesViewVisible(){const r=!this.state.statesView;this.localStorage.setItem(`${this.props.dialogName||"App"}.objectStatesView`,JSON.stringify(r)),this.setState({statesView:r})}onCollapseVisible(){if(this.state.depth>0){const r=this.state.depth-1,n=va.collapseDepth(r,this.state.expanded);this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(n)),this.setState({depth:r,expanded:n})}}async loadObjects(r){if(r)for(const n in r){if(!Object.prototype.hasOwnProperty.call(r,n)||!r[n])continue;const o=r[n];let a=null,i,s;o&&o.common&&o.common.enums?(a=o.common.enums,delete o.common.enums):a=null,(o.val||o.val===0)&&(i=o.val,delete o.val),o.ack!==void 0&&(s=o.ack,delete o.ack);try{if(await this.props.socket.setObject(n,o),a&&await this._createAllEnums(a,o._id),o.type==="state")if(i!=null)try{await this.props.socket.setState(o._id,i,s!==void 0?s:!0)}catch(l){window.alert(`Cannot set state "${o._id} with ${i}": ${l}`)}else try{const l=await this.props.socket.getState(o._id);if(!l||l.val===null)try{await this.props.socket.setState(o._id,!o.common||o.common.def===void 0?null:o.common.def,!0)}catch(d){window.alert(`Cannot set state "${o._id}": ${d}`)}}catch(l){window.alert(`Cannot read state "${o._id}": ${l}`)}}catch(l){window.alert(l)}}}_getSelectedIdsForExport(){if(this.state.selected.length||this.state.selectedNonObject){const r=[],n=Object.keys(this.objects);n.sort();const o=this.state.selected[0]||this.state.selectedNonObject,a=`${o}.`,i=a.length;for(let s=0;sa)break}return r}return[]}async _exportObjects(r){var i;if(r.isAll){vz("allObjects.json",this.objects,r);return}if(!(this.state.selected.length||this.state.selectedNonObject)){window.alert(this.props.t("ra_Save of objects-tree is not possible"));return}const n={},o=this.state.selected[0]||this.state.selectedNonObject,a=this._getSelectedIdsForExport();for(const s of a){if(n[s]=JSON.parse(JSON.stringify(this.objects[s])),((i=n[s])==null?void 0:i.type)==="state"&&!r.noStatesByExportImport){const l=await this.props.socket.getState(s);l&&(n[s].val=l.val,n[s].ack=l.ack)}if(n[s].common){const l=this.getEnumsForId(s);l&&(n[s].common.enums=l)}}vz(`${o}.json`,n,r)}renderExportDialog(){return this.state.showExportDialog===!1?null:m.createElement(or,{open:!0,maxWidth:"lg"},m.createElement(_r,null,this.props.t("ra_Select type of export")),m.createElement(Wr,null,m.createElement(Ds,null,this.state.filter.expertMode||this.state.showAllExportOptions?m.createElement(m.Fragment,null,this.props.t("ra_You can export all objects or just the selected branch."),m.createElement("br",null),this.props.t("ra_Selected %s object(s)",this.state.showExportDialog),m.createElement("br",null),m.createElement(St,{control:m.createElement(yr,{checked:this.state.noStatesByExportImport,onChange:r=>this.setState({noStatesByExportImport:r.target.checked})}),label:this.props.t("ra_Do not export values of states")}),m.createElement("br",null),this.props.t("These options can reduce the size of the export file:"),m.createElement(St,{control:m.createElement(yr,{checked:this.state.beautifyJsonExport,onChange:r=>this.setState({beautifyJsonExport:r.target.checked})}),label:this.props.t("Beautify JSON output")}),m.createElement("br",null),m.createElement(St,{control:m.createElement(yr,{checked:this.state.excludeSystemRepositoriesFromExport,onChange:r=>this.setState({excludeSystemRepositoriesFromExport:r.target.checked})}),label:this.props.t("Exclude system repositories from export JSON")}),m.createElement(St,{control:m.createElement(yr,{checked:this.state.excludeTranslations,onChange:r=>this.setState({excludeTranslations:r.target.checked})}),label:this.props.t("Exclude translations (except english) from export JSON")})):null)),m.createElement(pr,null,this.state.filter.expertMode||this.state.showAllExportOptions?m.createElement(tt,{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}))},m.createElement("span",{style:{marginRight:8}},this.props.t("ra_All objects")),"(",Object.keys(this.objects).length,")"):m.createElement(tt,{color:"grey",variant:"outlined",startIcon:m.createElement(w2,null),onClick:()=>this.setState({showAllExportOptions:!0})},this.props.t("ra_Advanced options")),m.createElement(tt,{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}))},m.createElement("span",{style:{marginRight:8}},this.props.t("ra_Only selected")),"(",this.state.showExportDialog,")"),m.createElement(tt,{color:"grey",variant:"contained",onClick:()=>this.setState({showExportDialog:!1,showAllExportOptions:!1}),startIcon:m.createElement(Ar,null)},this.props.t("ra_Cancel"))))}handleJsonUpload(r){var a;const n=r.target,o=((a=n.files)==null?void 0:a.length)&&n.files[0];if(o){const i=new FileReader;i.onload=async s=>{var d;const l=(d=s.target)==null?void 0:d.result;try{const h=JSON.parse(l),u=Object.keys(h).length,f=h._id;if(f===void 0&&u)await this.loadObjects(h),window.alert(this.props.t("ra_%s object(s) processed",u));else{if(!f)return window.alert(this.props.t("ra_Invalid structure"));try{let g,y,b;if(h.common.enums&&(g=h.common.enums,delete h.common.enums),h.val&&(y=h.val,delete h.val),h.ack!==void 0&&(b=h.ack,delete h.ack),await this.props.socket.setObject(h._id,h),h.type==="state")if(y!=null)await this.props.socket.setState(h._id,y,b===void 0?!0:b);else{const x=await this.props.socket.getState(h._id);(!x||x.val===null||x.val===void 0)&&await this.props.socket.setState(h._id,h.common.def===void 0?null:h.common.def,!0)}g&&await this._createAllEnums(g,h._id),window.alert(this.props.t("ra_%s was imported",h._id))}catch(g){window.alert(g)}}}catch(h){window.alert(h)}return null},i.readAsText(o)}else window.alert(this.props.t("ra_Failed to open JSON File"))}getToolbar(){let r=!1;if(this.state.selected.length||this.state.selectedNonObject){const n=this.state.selected[0]||this.state.selectedNonObject;n.split(".").length<2||this.objects[n]&&this.objects[n].type==="state"?r=!1:(this.state.filter.expertMode||n.startsWith("alias.0")||n.startsWith("0_userdata"))&&(r=!0)}return m.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center",overflowX:"auto"}},m.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center"}},m.createElement(Zr,{title:this.props.t("ra_Refresh tree"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement("div",null,m.createElement(Ie,{onClick:()=>this.refreshComponent(),disabled:this.state.updating,size:"large"},m.createElement(MO,null)))),this.props.showExpertButton&&!this.props.expertMode&&m.createElement(Zr,{title:this.props.t("ra_expertMode"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{key:"expertMode",color:this.state.filter.expertMode?"secondary":"default",onClick:()=>this.onFilter("expertMode",!this.state.filter.expertMode),size:"large"},m.createElement(w2,null))),!this.props.disableColumnSelector&&this.props.width!=="xs"&&m.createElement(Zr,{title:this.props.t("ra_Configure"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{key:"columnSelector",color:this.state.columnsAuto?"primary":"default",onClick:()=>this.setState({columnsSelectorShow:!0}),size:"large"},m.createElement(Hve,null))),this.props.width!=="xs"&&this.state.expandAllVisible&&m.createElement(Zr,{title:this.props.t("ra_Expand all nodes"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{key:"expandAll",onClick:()=>this.onExpandAll(),size:"large"},m.createElement(nv,null))),m.createElement(Zr,{title:this.props.t("ra_Collapse all nodes"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{key:"collapseAll",onClick:()=>this.onCollapseAll(),size:"large"},m.createElement(ru,null))),this.props.width!=="xs"&&m.createElement(Zr,{title:this.props.t("ra_Expand one step node"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{key:"expandVisible",color:"primary",onClick:()=>this.onExpandVisible(),size:"large"},m.createElement(vR,{badgeContent:this.state.depth,color:"secondary",sx:n=>({badge:{right:3,top:3,border:`2px solid ${n.palette.background.paper}`,padding:"0 4px"}})},m.createElement(nv,null)))),this.props.width!=="xs"&&m.createElement(Zr,{title:this.props.t("ra_Collapse one step node"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{key:"collapseVisible",color:"primary",onClick:()=>this.onCollapseVisible(),size:"large"},m.createElement(vR,{sx:n=>({badge:{right:3,top:3,border:`2px solid ${n.palette.background.paper}`,padding:"0 4px"}}),badgeContent:this.state.depth,color:"secondary"},m.createElement(ru,null)))),this.props.objectStatesView&&m.createElement(Zr,{title:this.props.t("ra_Toggle the states view"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{onClick:()=>this.onStatesViewVisible(),size:"large"},m.createElement(Dve,{color:this.state.statesView?"primary":"inherit"}))),m.createElement(Zr,{title:this.props.t("ra_Show/Hide object descriptions"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{onClick:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.desc`,this.state.showDescription?"false":"true"),this.setState({showDescription:!this.state.showDescription})},size:"large"},m.createElement(Lve,{color:this.state.showDescription?"primary":"inherit"}))),this.props.objectAddBoolean?m.createElement(Zr,{title:this.toolTipObjectCreating(),slotProps:{popper:{sx:Q.tooltip}}},m.createElement("div",null,m.createElement(Ie,{disabled:!r,onClick:()=>this.setState({modalNewObj:{id:this.state.selected[0]||this.state.selectedNonObject}}),size:"large"},m.createElement(Nv,null)))):null,this.props.objectImportExport&&m.createElement(Zr,{title:this.props.t("ra_Add objects tree from JSON file"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{onClick:()=>{const n=document.createElement("input");n.setAttribute("type","file"),n.setAttribute("id","files"),n.setAttribute("opacity","0"),n.addEventListener("change",o=>this.handleJsonUpload(o),!1),n.click()},size:"large"},m.createElement(Rv,null))),this.props.objectImportExport&&(!!this.state.selected.length||this.state.selectedNonObject)&&m.createElement(Zr,{title:this.props.t("ra_Save objects tree as JSON file"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{onClick:()=>this.setState({showExportDialog:this._getSelectedIdsForExport().length}),size:"large"},m.createElement(Rv,{style:{transform:"rotate(180deg)"}})))),!!this.props.objectBrowserEditObject&&this.props.width!=="xs"&&m.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(n=>this.info.objects[n].type==="state").length}`),this.props.objectEditBoolean&&m.createElement(Zr,{title:this.props.t("ra_Edit custom config"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{onClick:()=>{var o;const n=this.root?CV(this.root,"state",this.objects):[];n.length?(this.pauseSubscribe(!0),n.length===1&&(this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,this.state.selected[0]),(o=this.props.router)==null||o.doNavigate(null,"custom",this.state.selected[0])),this.setState({customDialog:n,customDialogAll:!0})):this.setState({toast:this.props.t("ra_please select object")})},size:"large"},m.createElement(fve,null))))}toggleExpanded(r){const n=JSON.parse(JSON.stringify(this.state.expanded)),o=n.indexOf(r);o===-1?(n.push(r),n.sort()):n.splice(o,1),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(n)),this.setState({expanded:n})}onCopy(r,n){r.stopPropagation(),r.preventDefault(),n&&(ue.copyToClipboard(n),n.length<50?this.setState({toast:this.props.t("ra_Copied %s",n)}):this.setState({toast:this.props.t("ra_Copied")}))}renderColumnButtons(r,n){var s,l,d;if(!n.data.obj)return this.props.onObjectDelete||this.props.objectEditOfAccessControl?m.createElement("div",{style:Q.buttonDiv},this.state.filter.expertMode&&this.props.objectEditOfAccessControl?m.createElement(Ie,{sx:{...Q.cellButtonsButton,...Q.cellButtonsEmptyButton,...Q.cellButtonMinWidth},onClick:()=>this.setState({modalEditOfAccess:!0,modalEditOfAccessObjData:n.data}),size:"large"},m.createElement("div",{style:{height:15}},"---")):null,this.props.onObjectDelete&&n.children&&n.children.length?m.createElement(Ie,{sx:{...Q.cellButtonsButton,...Q.cellButtonsButtonAlone},size:"small","aria-label":"delete",title:this.texts.deleteObject,onClick:()=>{var g;const h=Object.keys(this.objects);h.sort();let u=0;const f=`${r}.`;for(let y=0;yf)break;this.props.onObjectDelete&&this.props.onObjectDelete(r,!!((g=n.children)!=null&&g.length),!1,u+1)}},m.createElement(Ta,{style:Q.cellButtonsButtonIcon})):null):null;n.data.aclTooltip=n.data.aclTooltip||this.renderTooltipAccessControl(n.data.obj.acl);const o=n.data.obj.acl?n.data.obj.type==="state"?n.data.obj.acl.state:n.data.obj.acl.object:0,a=n.data.obj.acl&&(n.data.obj.type==="state"?this.systemConfig.common.defaultNewAcl.state:this.systemConfig.common.defaultNewAcl.object),i=this.state.filter.expertMode||va.isNonExpertId(n.data.id);return[this.state.filter.expertMode&&this.props.objectEditOfAccessControl?m.createElement(Zr,{key:"acl",title:n.data.aclTooltip,slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{sx:{...Q.cellButtonsButton,...Q.cellButtonMinWidth,opacity:1},onClick:()=>this.setState({modalEditOfAccess:!0,modalEditOfAccessObjData:n.data}),size:"large"},m.createElement("div",{style:Q.aclText},Number.isNaN(Number(o))?Number(a).toString(16):Number(o).toString(16)))):m.createElement("div",{key:"aclEmpty",style:Q.cellButtonMinWidth}),i?m.createElement(Ie,{key:"edit",sx:{marginRight:"2px",...Q.cellButtonsButton},size:"small","aria-label":"edit",title:this.texts.editObject,onClick:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,r),this.setState({editObjectDialog:r,editObjectAlias:!1})}},m.createElement(rv,{style:Q.cellButtonsButtonIcon})):m.createElement(Re,{component:"div",key:"editDisabled",sx:Q.cellButtonsButton}),this.props.onObjectDelete&&((s=n.children)!=null&&s.length||!((l=n.data.obj.common)!=null&&l.dontDelete))?m.createElement(Ie,{key:"delete",sx:Q.cellButtonsButton,size:"small","aria-label":"delete",onClick:()=>{var g,y,b;const h=Object.keys(this.objects);h.sort();let u=0;const f=`${r}.`;for(let x=0;xf)break;this.props.onObjectDelete&&this.props.onObjectDelete(r,!!((g=n.children)!=null&&g.length),!((b=(y=n.data.obj)==null?void 0:y.common)!=null&&b.dontDelete),u)},title:this.texts.deleteObject},m.createElement(Ta,{style:Q.cellButtonsButtonIcon})):null,this.props.objectCustomDialog&&this.info.hasSomeCustoms&&n.data.obj.type==="state"&&((d=n.data.obj.common)==null?void 0:d.type)!=="file"?m.createElement(Ie,{sx:{...Q.cellButtonsButton,...n.data.hasCustoms?this.styles.cellButtonsButtonWithCustoms:Q.cellButtonsButtonWithoutCustoms},key:"custom",size:"small","aria-label":"config",title:this.texts.customConfig,onClick:()=>{var h;this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,r),this.pauseSubscribe(!0),(h=this.props.router)==null||h.doNavigate(null,"customs",r),this.setState({customDialog:[r],customDialogAll:!1})}},m.createElement(l2,{style:Q.cellButtonsButtonIcon})):null]}readHistory(r){var n,o;if(window.sparkline&&this.defaultHistory&&((o=(n=this.objects[r])==null?void 0:n.common)!=null&&o.custom)&&this.objects[r].common.custom[this.defaultHistory]){const a=new Date;a.setHours(a.getHours()-24),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0);const i=a.getTime();this.props.socket.getHistory(r,{instance:this.defaultHistory,start:i,end:Date.now(),step:36e5,from:!1,ack:!1,q:!1,addId:!1,aggregate:"minmax"}).then(s=>{const l=window.document.getElementsByClassName("sparkline");for(let d=0;dconsole.warn(`Cannot read history: ${s}`))}}getTooltipInfo(r,n){var d,h;const o=this.objects[r],a=this.states[r],{valFull:i,fileViewer:s}=CS({state:a,obj:o,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}),l=[];i==null||i.forEach(u=>{u.t===this.texts.quality&&a.q?(l.push(m.createElement("div",{style:Q.cellValueTooltipBoth,key:u.t},u.t,": ",u.v)),u.nbr||l.push(m.createElement("br",{key:`${u.t}_br`}))):(l.push(m.createElement("div",{style:Q.cellValueTooltipTitle,key:u.t},u.t,": ")),l.push(m.createElement("div",{style:Q.cellValueTooltipValue,key:`${u.t}_v`},u.v)),u.nbr||l.push(m.createElement("br",{key:`${u.t}_br`})))}),s==="image"?l.push(m.createElement("img",{style:Q.cellValueTooltipImage,src:a.val,alt:r})):this.defaultHistory&&((h=(d=this.objects[r])==null?void 0:d.common)!=null&&h.custom)&&this.objects[r].common.custom[this.defaultHistory]&&l.push(m.createElement("svg",{key:"sparkline",className:"sparkline","data-id":r,style:{fill:"#3d85de"},width:"200",height:"30",strokeWidth:"3"})),this.setState({tooltipInfo:{el:l,id:r}},()=>n&&n())}renderColumnValue(r,n,o){var d,h;const a=n.data.obj;if(!a||!this.states)return null;if(((d=a.common)==null?void 0:d.type)==="file")return m.createElement(Re,{component:"div",sx:{...Q.cellValueText,...Q.cellValueFile}},"[file]");if(!this.states[r])return a.type==="state"&&(this.recordStates.includes(r)||this.recordStates.push(r),this.states[r]={val:null},this.subscribe(r)),null;this.recordStates.includes(r)||this.recordStates.push(r);const i=this.states[r];let s=n.data.state;if(!s){const{valText:u}=CS({state:i,obj:a,texts:this.texts,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma}),f=[];n.data.state={valTextRx:f};const g=u.v||"";f.push(m.createElement("span",{className:`newValueBrowser-${this.props.themeType||"light"}`,key:`${u.v.toString()}valText`,style:{whiteSpace:"nowrap",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}},u.v.toString())),u.u&&f.push(m.createElement("span",{className:`newValueBrowser-${this.props.themeType||"light"}`,style:Q.cellValueTextUnit,key:`${u.v.toString()}unit`},u.u)),u.s!==void 0&&f.push(m.createElement("span",{style:Q.cellValueTextState,className:`newValueBrowser-${this.props.themeType||"light"}`,key:`${u.v.toString()}states`},"(",u.s,")")),o||f.push(m.createElement(Di,{className:"copyButton",style:this.styles.iconCopy,onClick:y=>this.onCopy(y,g),key:"cc"})),s=n.data.state}s.style=m_t({state:i,isExpertMode:this.state.filter.expertMode,isButton:n.data.button});let l=s.valTextRx;return this.state.filter.expertMode||(n.data.button?l=[m.createElement(u_t,{key:"button",style:{color:s.style.color,...Q.cellValueButton}})]:n.data.switch&&(l=[m.createElement(ih,{key:"switch",sx:{"& .MuiSwitch-thumb":{color:s.style.color},"& .MuiSwitch-track":{backgroundColor:this.states[r].val&&this.state.selected.includes(r)?this.props.themeType==="dark"?"#FFF !important":"#111 !important":void 0}},checked:!!this.states[r].val})])),m.createElement(Zr,{key:"value",title:(h=this.state.tooltipInfo)==null?void 0:h.el,slotProps:{popper:{sx:Q.cellValueTooltipBox},tooltip:{sx:Q.cellValueTooltip}},onOpen:()=>this.getTooltipInfo(r,()=>this.readHistory(r)),onClose:()=>{var u;return((u=this.state.tooltipInfo)==null?void 0:u.id)===r&&this.setState({tooltipInfo:null})}},m.createElement(Re,{component:"div",style:s.style,sx:{...Q.cellValueText,height:o?void 0:Rn,"& .admin-button:active":{transform:"translate(0, 2px)"}}},l))}_syncEnum(r,n,o,a){var l,d,h;if(!n||!n.length){a&&a();return}const i=n.pop()||"",s=[];if((l=this.info.objects[i])!=null&&l.common){if((d=this.info.objects[i].common.members)!=null&&d.length){const u=this.info.objects[i].common.members.indexOf(r);if(u!==-1&&!o.includes(i)){const f=JSON.parse(JSON.stringify(this.info.objects[i]));f.common.members.splice(u,1),s.push(this.props.socket.setObject(i,f).then(()=>this.info.objects[i]=f).catch(g=>this.showError(g)))}}if(o.includes(i)&&!((h=this.info.objects[i].common.members)!=null&&h.includes(r))){const u=JSON.parse(JSON.stringify(this.info.objects[i]));u.common.members=u.common.members||[],u.common.members.push(r),u.common.members.sort(),s.push(this.props.socket.setObject(i,u).then(()=>this.info.objects[i]=u).catch(f=>this.showError(f)))}}Promise.all(s).then(()=>{setTimeout(()=>this._syncEnum(r,n,o,a),0)})}syncEnum(r,n,o){const a=[...this.info[n==="func"?"funcEnums":"roomEnums"]];return new Promise(i=>{this._syncEnum(r,a,o,()=>{i()})})}renderEnumDialog(){if(!this.state.enumDialog)return null;const r=this.state.enumDialog.type,n=this.state.enumDialog.item,o=this.state.enumDialogEnums,a=this.state.enumDialog.enumsOriginal,i=(r==="room"?this.info.roomEnums:this.info.funcEnums).map(s=>{var l,d;return{name:xo(((d=(l=this.objects[s])==null?void 0:l.common)==null?void 0:d.name)||s.split(".").pop()||"",this.props.lang),value:s,icon:Gv(this.objects,s,this.props.lang,this.imagePrefix)}}).sort((s,l)=>s.name>l.name?1:-1);return i.forEach(s=>{s.icon&&typeof s.icon=="string"&&(s.icon=m.createElement(Re,{style:Q.enumIconDiv},m.createElement("img",{src:s.icon,style:Q.enumIcon,alt:s.name})))}),m.createElement(or,{sx:{"& .MuiPaper-root":Q.enumDialog},onClose:()=>this.setState({enumDialog:null}),"aria-labelledby":"enum-dialog-title",open:!0},m.createElement(_r,{id:"enum-dialog-title"},r==="func"?this.props.t("ra_Define functions"):this.props.t("ra_Define rooms"),m.createElement(ro,{sx:Q.enumButton,color:"primary",disabled:a===JSON.stringify(o),size:"small",onClick:()=>this.syncEnum(n.data.id,r,o).then(()=>this.setState({enumDialog:null,enumDialogEnums:null}))},m.createElement(Ea,null))),m.createElement(vu,{sx:{"&.MuiList-root":Q.enumList}},i.map(s=>{let l,d,h;typeof s=="object"?(l=s.value,d=s.name,h=s.icon):(l=s,d=s);const u=`checkbox-list-label-${l}`;return m.createElement(of,{sx:Q.headerCellSelectItem,key:l,onClick:()=>{const f=o.indexOf(l),g=JSON.parse(JSON.stringify(this.state.enumDialogEnums));f===-1?(g.push(l),g.sort()):g.splice(f,1),this.setState({enumDialogEnums:g})},secondaryAction:h},m.createElement(ba,{sx:{"&.MuiListItemIcon-root":Q.enumCheckbox}},m.createElement(yr,{edge:"start",checked:o.includes(l),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":u}})),m.createElement(_o,{id:u},d))})))}renderEditRoleDialog(){if(!this.state.roleDialog||!this.props.objectBrowserEditRole)return null;if(this.state.roleDialog&&this.props.objectBrowserEditRole){const r=this.props.objectBrowserEditRole;return m.createElement(r,{key:"objectBrowserEditRole",id:this.state.roleDialog,socket:this.props.socket,t:this.props.t,roles:this.info.roles,onClose:n=>{n&&(this.info.objects[this.state.roleDialog]=n),this.setState({roleDialog:null})}})}return null}onColumnsEditCustomDialogClose(r){var o,a;const n=this.customColumnDialog;if(r){let i=n.value;n.type==="boolean"?i=i==="true"||i===!0:n.type==="number"&&(i=parseFloat(i)),this.customColumnDialog=null,this.props.socket.getObject(((a=(o=this.state.columnsEditCustomDialog)==null?void 0:o.obj)==null?void 0:a._id)||"").then(s=>{var l;if(s&&va.setCustomValue(s,(l=this.state.columnsEditCustomDialog)==null?void 0:l.it,i))return this.props.socket.setObject(s._id,s);throw new Error(this.props.t("ra_Cannot update attribute, because not found in the object"))}).then(()=>this.setState({columnsEditCustomDialog:null})).catch(s=>this.showError(s))}else this.customColumnDialog=null,this.setState({columnsEditCustomDialog:null})}renderColumnsEditCustomDialog(){if(!this.state.columnsEditCustomDialog)return null;if(!this.customColumnDialog){const r=va.getCustomValue(this.state.columnsEditCustomDialog.obj,this.state.columnsEditCustomDialog.it);this.customColumnDialog={type:this.state.columnsEditCustomDialog.it.type||typeof r,initValue:(r??"").toString(),value:(r??"").toString()}}return m.createElement(or,{onClose:()=>this.setState({columnsEditCustomDialog:null}),maxWidth:"md","aria-labelledby":"custom-dialog-title",open:!0},m.createElement(_r,{id:"custom-dialog-title"},`${this.props.t("ra_Edit object field")}: ${this.state.columnsEditCustomDialog.obj._id}`),m.createElement(Wr,null,m.createElement(Ds,{id:"alert-dialog-description"},this.customColumnDialog.type==="boolean"?m.createElement(St,{control:m.createElement(yr,{onKeyUp:r=>r.key==="Enter"&&this.onColumnsEditCustomDialogClose(!0),defaultChecked:this.customColumnDialog.value==="true",onChange:r=>{const n=this.customColumnDialog;n.value=r.target.checked.toString();const o=n.value!==n.initValue;o===!this.state.customColumnDialogValueChanged&&this.setState({customColumnDialogValueChanged:o})}}),label:`${this.state.columnsEditCustomDialog.it.name} (${this.state.columnsEditCustomDialog.it.pathText})`}):m.createElement(Ht,{variant:"standard",defaultValue:this.customColumnDialog.value,fullWidth:!0,onKeyUp:r=>r.key==="Enter"&&this.onColumnsEditCustomDialogClose(!0),label:`${this.state.columnsEditCustomDialog.it.name} (${this.state.columnsEditCustomDialog.it.pathText})`,onChange:r=>{const n=this.customColumnDialog;n.value=r.target.value;const o=n.value!==n.initValue;o===!this.state.customColumnDialogValueChanged&&this.setState({customColumnDialogValueChanged:o})},autoFocus:!0}))),m.createElement(pr,null,m.createElement(tt,{variant:"contained",onClick:()=>this.onColumnsEditCustomDialogClose(!0),disabled:!this.state.customColumnDialogValueChanged,color:"primary",startIcon:m.createElement(Ea,null)},this.props.t("ra_Update")),m.createElement(tt,{color:"grey",variant:"contained",onClick:()=>this.onColumnsEditCustomDialogClose(),startIcon:m.createElement(Ar,null)},this.props.t("ra_Cancel"))))}static getCustomValue(r,n){var o;if((o=r==null?void 0:r._id)!=null&&o.startsWith(`${n.adapter}.`)&&n.path.length>1){const a=n.path;let i;const s=r;if(s[a[0]]&&typeof s[a[0]]=="object")return a.length===2?i=s[a[0]][a[1]]:a.length===3?i=s[a[0]][a[1]]&&typeof s[a[0]][a[1]]=="object"?s[a[0]][a[1]][a[2]]:null:a.length===4?i=s[a[0]][a[1]]&&typeof s[a[0]][a[1]]=="object"&&s[a[0]][a[1]][a[2]]?s[a[0]][a[1]][a[2]][a[3]]:null:a.length===5?i=s[a[0]][a[1]]&&typeof s[a[0]][a[1]]=="object"&&s[a[0]][a[1]][a[2]]&&s[a[0]][a[1]][a[2]][a[3]]?s[a[0]][a[1]][a[2]][a[3]][a[4]]:null:a.length===6&&(i=s[a[0]][a[1]]&&typeof s[a[0]][a[1]]=="object"&&s[a[0]][a[1]][a[2]]&&s[a[0]][a[1]][a[2]][a[3]]&&s[a[0]][a[1]][a[2]][a[3]][a[4]]?s[a[0]][a[1]][a[2]][a[3]][a[4]][a[5]]:null),i??null}return null}static setCustomValue(r,n,o){var a;if((a=r==null?void 0:r._id)!=null&&a.startsWith(`${n.adapter}.`)&&n.path.length>1){const i=n.path,s=r;if(s[i[0]]&&typeof s[i[0]]=="object"){if(i.length===2)return s[i[0]][i[1]]=o,!0;if(i.length===3){if(s[i[0]][i[1]]&&typeof s[i[0]][i[1]]=="object")return s[i[0]][i[1]][i[2]]=o,!0}else if(i.length===4){if(s[i[0]][i[1]]&&typeof s[i[0]][i[1]]=="object"&&s[i[0]][i[1]][i[2]]&&typeof s[i[0]][i[1]][i[2]]=="object")return s[i[0]][i[1]][i[2]][i[3]]=o,!0}else if(i.length===5){if(s[i[0]][i[1]]&&typeof s[i[0]][i[1]]=="object"&&s[i[0]][i[1]][i[2]]&&typeof s[i[0]][i[1]][i[2]]=="object"&&s[i[0]][i[1]][i[2]][i[3]]&&typeof s[i[0]][i[1]][i[2]][i[3]]=="object")return s[i[0]][i[1]][i[2]][i[3]][i[4]]=o,!0}else if(i.length===6&&s[i[0]][i[1]]&&typeof s[i[0]][i[1]]=="object"&&s[i[0]][i[1]][i[2]]&&typeof s[i[0]][i[1]][i[2]]=="object"&&s[i[0]][i[1]][i[2]][i[3]]&&typeof s[i[0]][i[1]][i[2]][i[3]]=="object"&&s[i[0]][i[1]][i[2]][i[3]][i[4]]&&typeof s[i[0]][i[1]][i[2]][i[3]][i[4]]=="object")return s[i[0]][i[1]][i[2]][i[3]][i[4]][i[5]]=o,!0}}return!1}renderCustomValue(r,n,o){const a=va.getCustomValue(r,n);return a!=null?n.edit&&!this.props.notEditable&&(!n.objTypes||n.objTypes.includes(r.type))?m.createElement(Re,{component:"div",style:{...Q.columnCustom,...Q.columnCustomEditable,...Q[`columnCustom_${n.align}`]},onClick:()=>this.setState({columnsEditCustomDialog:{item:o,it:n,obj:r},customColumnDialogValueChanged:!1})},a):m.createElement(Re,{component:"div",style:{...Q.columnCustom,...Q[`columnCustom_${n.align}`]}},a):null}renderAliasLink(r,n,o){const a=n||0,i=this.objects[this.info.aliasesMap[r][a]].common.alias.id;return i?m.createElement(Re,{component:"div",onClick:s=>{s.stopPropagation(),s.preventDefault();const l=this.info.aliasesMap[r][a];this.info.aliasesMap[r].length>1&&this.setState({aliasMenu:""}),this.onSelect(l),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(l)),100)},sx:o||this.styles.aliasAlone},m.createElement("span",{className:"admin-browser-arrow"},typeof i=="string"||i.read===r&&i.write===r?"↔":i.read===r?"→":"←"),this.info.aliasesMap[r][a]):null}renderLeaf(r,n,o){var K,he,fe,ge,Ee,ze,Ne,Fe,Pe,Ye,Be,Ke,Xe,ve;const a=r.data.id;o.count++,n=n===void 0?this.state.expanded.includes(a):n;let i;const s=r.data.obj,l=s==null?void 0:s.type;r.children||l==="folder"||l==="device"||l==="channel"||l==="meta"?i=n?m.createElement(nv,{style:this.styles.cellIdIconFolder,onClick:()=>this.toggleExpanded(a)}):m.createElement(ru,{style:this.styles.cellIdIconFolder,onClick:()=>this.toggleExpanded(a)}):s&&s.common&&s.common.write===!1&&s.type==="state"?i=m.createElement(o_t,{style:this.styles.cellIdIconDocument}):i=m.createElement(n_t,{style:this.styles.cellIdIconDocument});let d=null;r.data.icon&&(typeof r.data.icon=="string"?r.data.icon.length<3?d=m.createElement("span",{className:"iconOwn",style:Q.cellIdIconOwn},r.data.icon):d=m.createElement(xl,{style:Q.cellIdIconOwn,className:"iconOwn",src:r.data.icon,alt:""}):d=r.data.icon);const h=s==null?void 0:s.common,u=(s==null?void 0:s.type)&&bz[s.type]||m.createElement("div",{className:"itemIcon"}),f=this.levelPadding*(r.data.level||0);if(r.data.lang!==this.props.lang){const{rooms:le,per:re}=EV(this.info,a,this.props.lang);r.data.rooms=le.join(", "),r.data.per=re;const{funcs:He,pef:Ve}=TV(this.info,a,this.props.lang);r.data.funcs=He.join(", "),r.data.pef=Ve,r.data.lang=this.props.lang}const g=this.props.multiSelect&&this.objects[a]&&(!this.props.types||this.props.types.includes(this.objects[a].type))?m.createElement(yr,{style:Q.checkBox,checked:this.state.selected.includes(a)}):null;let y=!this.props.notEditable&&l==="state"&&(this.state.filter.expertMode||(h==null?void 0:h.write)!==!1);this.props.objectBrowserViewFile&&(h==null?void 0:h.type)==="file"&&(y=!0);const b=!this.props.notEditable&&this.objects[a]&&(this.state.filter.expertMode||l==="state"||l==="channel"||l==="device"),x=this.state.statesView&&(l==="state"||l==="channel"||l==="device");let S="";const T=[];if(x&&(S=(K=this.states[a])==null?void 0:K.from,S===void 0?S=" ":(S=S?S.replace(/^system\.adapter\.|^system\./,""):"",T.push(`${this.texts.stateChangedFrom} ${S}`)),s!=null&&s.user)){const le=s.user.replace("system.user.","");S+=`/${le}`,T.push(`${this.texts.stateChangedBy} ${le}`)}s&&(s.from&&T.push(`${this.texts.objectChangedFrom} ${s.from.replace(/^system\.adapter\.|^system\./,"")}`),s.user&&T.push(`${this.texts.objectChangedBy} ${s.user.replace(/^system\.user\./,"")}`),s.ts&&T.push(`${this.texts.objectChangedByUser} ${ue.formatDate(new Date(s.ts),this.props.dateFormat||this.systemConfig.common.dateFormat)}`));let E=!1,$=null;a.startsWith("alias.")&&((he=h==null?void 0:h.alias)!=null&&he.id)?(E=typeof h.alias.id=="object",E?$=m.createElement("div",{style:Q.cellIdAliasReadWriteDiv},h.alias.id.read?m.createElement(Re,{component:"div",onClick:le=>{le.stopPropagation(),le.preventDefault(),this.onSelect(h.alias.id.read),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(h.alias.id.read)),100)},sx:this.styles.aliasReadWrite},"←",h.alias.id.read):null,h.alias.id.write?m.createElement(Re,{component:"div",onClick:le=>{le.stopPropagation(),le.preventDefault(),this.onSelect(h.alias.id.write),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(h.alias.id.write)),100)},sx:this.styles.aliasReadWrite},"→",h.alias.id.write):null):$=m.createElement(Re,{component:"div",onClick:le=>{le.stopPropagation(),le.preventDefault(),this.onSelect(h.alias.id),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(h.alias.id)),100)},sx:this.styles.aliasAlone},"→",h.alias.id)):this.info.aliasesMap[a]&&(this.info.aliasesMap[a].length>1?$=m.createElement(Re,{component:"div",id:`alias_${a}`,onClick:le=>{le.stopPropagation(),le.preventDefault(),this.setState({aliasMenu:a})},sx:this.styles.aliasAlone},this.props.t("ra_%s links from aliases",this.info.aliasesMap[a].length)):$=this.renderAliasLink(a,0));let k=h==null?void 0:h.color,O;if(k&&!this.state.selected.includes(a)){const le=this.props.themeName==="dark"?"#1f1f1f":this.props.themeName==="blue"?"#222a2e":"#FFFFFF";ue.colorDistance(k,le)<1e3&&(O=this.props.themeType==="dark"?"#9a9a9a":"#565656")}let M=!1;a==="0_userdata"?(k=yV(this.props.themeType),M=!0):a==="alias"?(k=_V(this.props.themeType),M=!0):a==="javascript"?(k=d_t(this.props.themeType),M=!0):a==="system"?(k=bV(this.props.themeType),M=!0):a==="system.adapter"?k=wV(this.props.themeType):(!k||this.state.selected.includes(a))&&(k="inherit");const R=[];if(h!=null&&h.statusStates){const le={};Object.keys(h.statusStates).forEach(He=>{var at;let Ve=h.statusStates[He];Ve.split(".").length<3&&(Ve=`${a}.${Ve}`),le[He]=Ve,this.states[Ve]?this.recordStates.includes(Ve)||this.recordStates.push(Ve):((at=this.objects[Ve])==null?void 0:at.type)==="state"&&(this.recordStates.includes(Ve)||this.recordStates.push(Ve),this.states[Ve]={val:null},this.subscribe(Ve))});let re=!1;h.statusStates.errorId&&this.states[le.errorId]&&this.states[le.errorId].val&&(k=this.props.themeType==="dark"?xV:SV,re=!0,R.push(m.createElement(_ve,{key:"error",style:this.styles.iconDeviceError}))),le.onlineId&&this.states[le.onlineId]?re?this.states[le.onlineId].val?R.push(m.createElement(ch,{key:"conn",style:this.styles.iconDeviceConnected})):R.push(m.createElement(kg,{key:"disc",style:this.styles.iconDeviceDisconnected})):this.states[le.onlineId].val?(k=this.props.themeType==="dark"?S2:C2,R.push(m.createElement(ch,{key:"conn",style:this.styles.iconDeviceConnected}))):(k=this.props.themeType==="dark"?$2:k2,R.push(m.createElement(kg,{key:"disc",style:this.styles.iconDeviceDisconnected}))):le.offlineId&&this.states[le.offlineId]&&(re?this.states[le.offlineId].val?R.push(m.createElement(kg,{key:"disc",style:this.styles.iconDeviceDisconnected})):R.push(m.createElement(ch,{key:"conn",style:this.styles.iconDeviceConnected})):this.states[le.offlineId].val?(k=this.props.themeType==="dark"?$2:k2,R.push(m.createElement(kg,{key:"disc",style:this.styles.iconDeviceDisconnected}))):(k=this.props.themeType==="dark"?S2:C2,R.push(m.createElement(ch,{key:"conn",style:this.styles.iconDeviceConnected}))))}const j=x?ue.quality2text(((fe=this.states[a])==null?void 0:fe.q)||0).join(", "):null;let I=((ge=r.data)==null?void 0:ge.title)||"",z=!1;if(this.state.showDescription){const le=$V(r.data,this.props.lang);le&&(I=[m.createElement("div",{key:"name",style:Q.cellNameDivDiv},I),m.createElement("div",{key:"desc",style:Q.cellDescription},le)],z=!!le)}const W=this.props.width==="xs"&&this.state.focused===a,L=m.createElement(ws,{container:!0,wrap:"nowrap",direction:"row",sx:Q.cellId,style:{width:this.columnsVisibility.id,paddingLeft:f}},m.createElement(ws,{container:!0,alignItems:"center"},g,i),m.createElement(ws,{style:{...Q.cellIdSpan,...O?this.styles.invertedBackground:void 0,color:k,fontWeight:M?"bold":void 0}},m.createElement(Zr,{title:f_t(r.data,this.props.lang),slotProps:{popper:{sx:Q.tooltip}}},m.createElement("div",null,r.data.name)),$,R),m.createElement("div",{style:{...Q.grow,...O?this.styles.invertedBackgroundFlex:{}}}),m.createElement(ws,{container:!0,alignItems:"center"},d),this.props.width!=="xs"?m.createElement("div",null,m.createElement(Di,{className:W?"":"copyButton",style:Q.cellCopyButton,onClick:le=>this.onCopy(le,a)})):null);let F=W&&I||this.columnsVisibility.name?m.createElement(Re,{component:"div",sx:{...Q.cellName,...z?Q.cellNameWithDesc:void 0,width:this.props.width!=="xs"?this.columnsVisibility.name:void 0,ml:W?0:"5px"}},I,!W&&((Ee=r.data)!=null&&Ee.title)?m.createElement(Re,{style:{color:k}},m.createElement(Di,{className:"copyButton",style:Q.cellCopyButton,onClick:le=>{var re;return this.onCopy(le,(re=r.data)==null?void 0:re.title)}})):null):null,H;this.state.statesView?H=[W&&x&&((ze=this.states[a])!=null&&ze.from)||this.columnsVisibility.changedFrom?{el:m.createElement("div",{key:"from",style:{...Q.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.changedFrom:void 0},title:T.join(` -`)},x&&((Ne=this.states[a])!=null&&Ne.from)?S:null),type:"from"}:null,W&&j||this.columnsVisibility.qualityCode?{el:m.createElement("div",{key:"q",style:{...Q.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.qualityCode:void 0},title:j||""},j),type:"quality"}:null,W&&x&&((Fe=this.states[a])!=null&&Fe.ts)||this.columnsVisibility.timestamp?{el:m.createElement("div",{key:"ts",style:{...Q.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.timestamp:void 0}},x&&((Pe=this.states[a])!=null&&Pe.ts)?ue.formatDate(new Date(this.states[a].ts),this.props.dateFormat||this.systemConfig.common.dateFormat):null),type:"ts"}:null,W&&x&&((Ye=this.states[a])!=null&&Ye.lc)||this.columnsVisibility.lastChange?{el:m.createElement("div",{key:"lc",style:{...Q.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.lastChange:void 0}},x&&((Be=this.states[a])!=null&&Be.lc)?ue.formatDate(new Date(this.states[a].lc),this.props.dateFormat||this.systemConfig.common.dateFormat):null),type:"lc"}:null]:H=[W&&(s!=null&&s.type)||this.columnsVisibility.type?{el:m.createElement("div",{key:"type",style:{...Q.cellType,width:this.props.width!=="xs"?this.columnsVisibility.type:void 0}},u," ",s==null?void 0:s.type),type:"filter_type"}:null,W&&h||this.columnsVisibility.role?{el:m.createElement("div",{key:"role",style:{...Q.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.role:"100%",cursor:this.state.filter.expertMode&&b&&this.props.objectBrowserEditRole?"text":"default"},onClick:!W&&this.state.filter.expertMode&&b&&this.props.objectBrowserEditRole?()=>this.setState({roleDialog:r.data.id}):void 0},h==null?void 0:h.role),type:"filter_role",onClick:W&&this.state.filter.expertMode&&b&&this.props.objectBrowserEditRole?()=>this.setState({roleDialog:r.data.id}):void 0}:null,W&&h||this.columnsVisibility.room?{el:m.createElement("div",{key:"room",style:{...Q.cellRoom,...r.data.per?Q.cellEnumParent:{},width:this.props.width!=="xs"?this.columnsVisibility.room:"100%",cursor:b?"text":"default"},onClick:!W&&b?()=>{const le=Jc(this.info,r.data.id,"roomEnums");this.setState({enumDialogEnums:le,enumDialog:{item:r,type:"room",enumsOriginal:JSON.stringify(le)}})}:void 0},r.data.rooms),type:"filter_room",onClick:W&&b?()=>{const le=Jc(this.info,r.data.id,"roomEnums");this.setState({enumDialogEnums:le,enumDialog:{item:r,type:"room",enumsOriginal:JSON.stringify(le)}})}:void 0}:null,W&&h||this.columnsVisibility.func?{el:m.createElement("div",{key:"func",style:{...Q.cellFunc,...r.data.pef?Q.cellEnumParent:{},width:this.props.width!=="xs"?this.columnsVisibility.func:"100%",cursor:b?"text":"default"},onClick:!W&&b?()=>{const le=Jc(this.info,r.data.id,"funcEnums");this.setState({enumDialogEnums:le,enumDialog:{item:r,type:"func",enumsOriginal:JSON.stringify(le)}})}:void 0},r.data.funcs),type:"filter_func",onClick:W&&b?()=>{const le=Jc(this.info,r.data.id,"funcEnums");this.setState({enumDialogEnums:le,enumDialog:{item:r,type:"func",enumsOriginal:JSON.stringify(le)}})}:void 0}:null];let q=((Ke=this.adapterColumns)==null?void 0:Ke.map(le=>m.createElement("div",{style:{...Q.cellAdapter,width:this.props.width!=="xs"?this.columnsVisibility[le.id]:void 0},key:le.id,title:`${le.adapter} => ${le.pathText}`},s?this.renderCustomValue(s,le,r):null)))||null;const ee=W||this.columnsVisibility.val?this.renderColumnValue(a,r,W):null;let Y=W&&ee||this.columnsVisibility.val?m.createElement("div",{style:{...Q.cellValue,width:this.props.width!=="xs"?this.columnsVisibility.val:"calc(100% - 100px)",cursor:y?(h==null?void 0:h.type)==="file"?"zoom-in":r.data.button?"grab":"text":"default"},onClick:y?()=>{!s||!this.states||((h==null?void 0:h.type)==="file"?this.setState({viewFileDialog:a}):!this.state.filter.expertMode&&r.data.button?this.props.socket.setState(a,!0).catch(le=>window.alert(`Cannot write state "${a}": ${le}`)):!this.state.filter.expertMode&&r.data.switch?this.props.socket.setState(a,!this.states[a].val).catch(le=>window.alert(`Cannot write state "${a}": ${le}`)):(this.edit={val:this.states[a]?this.states[a].val:"",q:this.states[a]&&this.states[a].q||0,ack:!1,id:a},this.setState({updateOpened:!0})))}:void 0},ee):null,G=W||this.columnsVisibility.buttons?m.createElement("div",{style:{...Q.cellButtons,width:this.props.width!=="xs"?this.columnsVisibility.buttons:void 0}},this.renderColumnButtons(a,r)):null,te=null;if(this.props.width==="xs"&&this.state.focused===a){H=H.filter(re=>re);let le;H.length?le=H.map(re=>re?m.createElement("div",{key:re.type,style:Q.cellDetailsLine},m.createElement("span",{style:Q.cellDetailsName},this.texts[re.type],":"),re.el,m.createElement("div",{style:{flexGrow:1}}),re.onClick?m.createElement(rv,{style:Q.cellCopyButtonInDetails,onClick:()=>{re!=null&&re.onClick&&re.onClick()}}):null):null):le=null,q.length||(q=null),te=m.createElement(zn,{style:{width:"100%",display:"flex",flexDirection:"column",padding:10,backgroundColor:this.props.theme.palette.mode==="dark"?"#333":"#ccc"}},m.createElement("div",{style:Q.cellDetailsLine},m.createElement("div",{style:{flexGrow:1}}),m.createElement(Di,{style:Q.cellCopyButtonInDetails,onClick:re=>this.onCopy(re,a)})),F&&m.createElement("div",{style:Q.cellDetailsLine},m.createElement("span",{style:Q.cellDetailsName},this.texts.name,":"),F,m.createElement("div",{style:{flexGrow:1}}),(Xe=r.data)!=null&&Xe.title?m.createElement(Di,{className:"copyButton",style:Q.cellCopyButtonInDetails,onClick:re=>{var He;return this.onCopy(re,(He=r.data)==null?void 0:He.title)}}):null),le,q&&m.createElement("div",{style:Q.cellDetailsLine},q),((ve=this.objects[a])==null?void 0:ve.type)==="state"&&m.createElement("div",{style:Q.cellDetailsLine},m.createElement("span",{style:Q.cellDetailsName},this.texts.value,":"),Y,m.createElement("div",{style:{flexGrow:1}}),m.createElement(Di,{className:"copyButton",style:Q.cellCopyButtonInDetails,onClick:re=>{const{valText:He}=CS({state:this.states[a],obj:this.objects[a],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(re,He.v.toString())},key:"cc"})),G&&m.createElement("div",{style:{...Q.cellDetailsLine,justifyContent:"right"}},G)),F=null,H=null,q=null,Y=null,G=null}return{row:m.createElement(ws,{container:!0,direction:"row",wrap:"nowrap",sx:ue.getStyle(this.props.theme,Q.tableRow,this.state.linesEnabled&&Q.tableRowLines,!this.props.dragEnabled&&Q.tableRowNoDragging,$&&Q.tableRowAlias,E&&Q.tableRowAliasReadWrite,this.state.focused===a&&this.props.multiSelect&&Q.tableRowFocused,!r.data.visible&&Q.filteredOut,r.data.hasVisibleParent&&!r.data.visible&&!r.data.hasVisibleChildren&&Q.filteredParentOut,this.state.selected.includes(a)&&Q.itemSelected,this.state.selectedNonObject===a&&Q.itemSelected),key:a,id:a,onMouseDown:le=>{this.onSelect(a);let re;"which"in le?re=le.which===3:"button"in le&&(re=le.button===2),re?this.contextMenu={item:r,ts:Date.now()}:this.contextMenu=null},onDoubleClick:()=>{r.children?this.toggleExpanded(a):this.onSelect(a,!0)}},L,F,H==null?void 0:H.map(le=>le==null?void 0:le.el),q,Y,G),details:te}}renderItem(r,n,o){const a=[];o=o||{count:0};const i=this.renderLeaf(r,n,o);let s;const l=this.props.DragWrapper;return this.props.dragEnabled&&l?r.data.sumVisibility?s=m.createElement(l,{key:r.data.id,item:r,style:Q.draggable},i.row):s=m.createElement("div",{key:r.data.id,style:Q.nonDraggable},i.row):s=i.row,r.data.id&&s&&a.push(s),i.details&&a.push(i.details),n=n===void 0?uf(this.state.expanded,r.data.id):n,(!r.data.id||n)&&(this.state.foldersFirst?r.children&&(a.push(r.children.map(d=>d.children&&(!this.state.columnsSelectorShow||o.count<15)&&d.data.sumVisibility?this.renderItem(d,void 0,o):null)),a.push(r.children.map(d=>!d.children&&(!this.state.columnsSelectorShow||o.count<15)&&d.data.sumVisibility?this.renderItem(d,void 0,o):null))):r.children&&a.push(r.children.map(d=>(!this.state.columnsSelectorShow||o.count<15)&&d.data.sumVisibility?this.renderItem(d,void 0,o):null))),a}calculateColumnsVisibility(r,n,o,a){let i=a||this.state.columnsWidths;const s=o||this.state.columnsForAdmin,l=n||this.state.columns||[],d=typeof r!="boolean"?this.state.columnsAuto:r;i=JSON.parse(JSON.stringify(i)),Object.keys(i).forEach(u=>{i[u]&&(i[u]=parseInt(i[u],10)||0)}),this.adapterColumns=[];const h=Vr[this.props.width||"lg"].widths;if(d){if(this.columnsVisibility={id:Vr[this.props.width||"lg"].idWidth,name:this.visibleCols.includes("name")&&h.name||0,nameHeader:this.visibleCols.includes("name")&&h.name||0,type:this.visibleCols.includes("type")&&h.type||0,role:this.visibleCols.includes("role")&&h.role||0,room:this.visibleCols.includes("room")&&h.room||0,func:this.visibleCols.includes("func")&&h.func||0,changedFrom:this.visibleCols.includes("changedFrom")&&h.changedFrom||0,qualityCode:this.visibleCols.includes("qualityCode")&&h.qualityCode||0,timestamp:this.visibleCols.includes("timestamp")&&h.timestamp||0,lastChange:this.visibleCols.includes("lastChange")&&h.lastChange||0,val:this.visibleCols.includes("val")&&h.val||0,buttons:this.visibleCols.includes("buttons")&&h.buttons||0},this.columnsVisibility.name&&!this.customWidth){let u=this.columnsVisibility.id||0;this.state.statesView?(u+=this.columnsVisibility.changedFrom||0,u+=this.columnsVisibility.qualityCode||0,u+=this.columnsVisibility.timestamp||0,u+=this.columnsVisibility.lastChange||0):(u+=this.columnsVisibility.type||0,u+=this.columnsVisibility.role||0,u+=this.columnsVisibility.room||0,u+=this.columnsVisibility.func||0),u+=this.columnsVisibility.val||0,u+=this.columnsVisibility.buttons||0,this.columnsVisibility.name=`calc(100% - ${u+5}px)`,this.columnsVisibility.nameHeader=`calc(100% - ${u+5+this.state.scrollBarWidth}px)`}else if(!this.customWidth){let u=0;this.state.statesView?(u+=this.columnsVisibility.changedFrom||0,u+=this.columnsVisibility.qualityCode||0,u+=this.columnsVisibility.timestamp||0,u+=this.columnsVisibility.lastChange||0):(u+=this.columnsVisibility.type||0,u+=this.columnsVisibility.role||0,u+=this.columnsVisibility.room||0,u+=this.columnsVisibility.func||0),u+=this.columnsVisibility.val||0,u+=this.columnsVisibility.buttons||0,this.columnsVisibility.id=`calc(100% - ${u+5}px)`}}else{const u=this.props.width||"lg";this.columnsVisibility={id:i.id||Vr[u].idWidth,name:l.includes("name")&&(i.name||h.name||Vr[u].widths.name)||0,type:l.includes("type")&&(i.type||h.type||Vr[u].widths.type)||0,role:l.includes("role")&&(i.role||h.role||Vr[u].widths.role)||0,room:l.includes("room")&&(i.room||h.room||Vr[u].widths.room)||0,func:l.includes("func")&&(i.func||h.func||Vr[u].widths.func)||0};let f=this.columnsVisibility.id;if(this.columnsVisibility.name&&(f+=this.columnsVisibility.type||0,f+=this.columnsVisibility.role||0,f+=this.columnsVisibility.room||0,f+=this.columnsVisibility.func||0),s&&l&&Object.keys(s).sort().forEach(g=>s[g].forEach(y=>{const b=`_${g}_${y.path}`;if(l.includes(b)){const x={adapter:g,id:`_${g}_${y.path}`,name:y.name,path:y.path.split("."),pathText:y.path};y.edit&&(x.edit=!0,y.type&&(x.type=y.type),y.objTypes&&(x.objTypes=y.objTypes)),this.adapterColumns.push(x),this.columnsVisibility[b]=i[x.id]||y.width||Vr[u].widths.func||Vr.xl.widths.func||0,f+=this.columnsVisibility[b]}else this.columnsVisibility[b]=0})),this.adapterColumns.sort((g,y)=>g.id>y.id?-1:g.idb==="id"||typeof this.columnsVisibility[b]=="string"||!this.columnsVisibility[b]?y:y+this.columnsVisibility[b],0);this.columnsVisibility.id=`calc(100% - ${g}px)`}}}navigateKeyPress(r){var o,a;const n=this.state.selectedNonObject||this.state.selected[0];if(n){if(r.code==="ArrowUp"||r.code==="ArrowDown"){r.preventDefault();const i=[];(o=this.tableRef.current)==null||o.childNodes.forEach(h=>i.push(h.id));const s=i.indexOf(n),l=r.code==="ArrowDown"?s+1:s-1,d=i[l]||n;this.onSelect(d),this.scrollToItem(d)}if((r.code==="ArrowRight"||r.code==="ArrowLeft")&&this.toggleExpanded(n),r.code==="Delete"&&this.root&&n){const i=va.getItemFromRoot(this.root,n);if(i){const{obj:s}=i.data;s&&!((a=s.common)!=null&&a.dontDelete)&&this.showDeleteDialog({id:n,obj:s,item:i})}}}}static getItemFromRoot(r,n){const o=n.split(".");let a="",i=r;for(let s=0;sthis.clearFilter(),style:Q.buttonClearFilter,title:this.props.t("ra_Clear filter"),size:"large"},m.createElement(a_t,null),m.createElement(Ar,{style:Q.buttonClearFilterIcon}))),this.props.width==="xs"?m.createElement("div",{style:Q.headerRow},m.createElement("div",{style:{...Q.headerCell,width:"100%"}},this.getFilterInput("id"))):m.createElement("div",{style:Q.headerRow},m.createElement("div",{style:{...Q.headerCell,width:this.columnsVisibility.id,position:"relative"},"data-min":240,"data-name":"id"},this.getFilterInput("id"),this.renderHandleRight()),this.columnsVisibility.name?m.createElement("div",{style:{...Q.headerCell,width:this.columnsVisibility.nameHeader,position:"relative"},"data-min":100,"data-name":"nameHeader"},this.getFilterInput("name"),this.renderHandleRight()):null,!this.state.statesView&&m.createElement(m.Fragment,null,this.columnsVisibility.type?m.createElement("div",{style:{...Q.headerCell,width:this.columnsVisibility.type,position:"relative"},"data-min":100,"data-name":"type"},this.getFilterSelectType(),this.renderHandleRight()):null,this.columnsVisibility.role?m.createElement("div",{style:{...Q.headerCell,width:this.columnsVisibility.role,position:"relative"},"data-min":100,"data-name":"role"},this.getFilterSelectRole(),this.renderHandleRight()):null,this.columnsVisibility.room?m.createElement("div",{style:{...Q.headerCell,width:this.columnsVisibility.room,position:"relative"},"data-min":100,"data-name":"room"},this.getFilterSelectRoom(),this.renderHandleRight()):null,this.columnsVisibility.func?m.createElement("div",{style:{...Q.headerCell,width:this.columnsVisibility.func,position:"relative"},"data-min":100,"data-name":"func"},this.getFilterSelectFunction(),this.renderHandleRight()):null),this.state.statesView&&m.createElement(m.Fragment,null,m.createElement("div",{style:{...Q.headerCell,...Q.headerCellValue,width:this.columnsVisibility.changedFrom,position:"relative"},"data-min":100,"data-name":"changedFrom"},this.props.t("ra_Changed from"),this.renderHandleRight()),m.createElement("div",{style:{...Q.headerCell,...Q.headerCellValue,width:this.columnsVisibility.qualityCode,position:"relative"},"data-min":100,"data-name":"qualityCode"},this.props.t("ra_Quality code"),this.renderHandleRight()),m.createElement("div",{style:{...Q.headerCell,...Q.headerCellValue,width:this.columnsVisibility.timestamp,position:"relative"},"data-min":100,"data-name":"timestamp"},this.props.t("ra_Timestamp"),this.renderHandleRight()),m.createElement("div",{style:{...Q.headerCell,...Q.headerCellValue,width:this.columnsVisibility.lastChange,position:"relative"},"data-min":100,"data-name":"lastChange"},this.props.t("ra_Last change"),this.renderHandleRight())),this.adapterColumns.map(n=>m.createElement("div",{style:{...Q.headerCell,...Q.headerCellValue,width:this.columnsVisibility[n.id]},title:n.adapter,key:n.id,"data-min":100,"data-name":n.id},n.name)),this.columnsVisibility.val?m.createElement("div",{style:{...Q.headerCell,...Q.headerCellValue,width:this.columnsVisibility.val,position:"relative"},"data-min":120,"data-name":"val"},this.props.t("ra_Value"),r):null,this.columnsVisibility.buttons?m.createElement("div",{title:this.texts.filter_custom,style:{...Q.headerCell,width:this.columnsVisibility.buttons}}," ",this.getFilterSelectCustoms()):null)}renderToast(){return m.createElement(Ov,{open:!!this.state.toast,autoHideDuration:3e3,onClick:()=>this.setState({toast:""}),onClose:()=>this.setState({toast:""}),message:this.state.toast,action:m.createElement(Ie,{size:"small","aria-label":"close",color:"inherit",onClick:()=>this.setState({toast:""})},m.createElement(Ar,{fontSize:"small"}))})}componentDidUpdate(){if(this.tableRef.current){const r=this.tableRef.current.offsetWidth-this.tableRef.current.clientWidth;this.state.scrollBarWidth!==r?setTimeout(()=>this.setState({scrollBarWidth:r}),100):this.selectFirst&&this.scrollToItem(this.selectFirst)}}scrollToItem(r){this.selectFirst="";const n=window.document.getElementById(r);n==null||n.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}renderCustomDialog(){if(this.state.customDialog&&this.props.objectCustomDialog){const r=this.props.objectCustomDialog;return m.createElement(r,{reportChangedIds:n=>this.changedIds=[...n],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:()=>{var n;this.pauseSubscribe(!1),this.setState({customDialog:null}),this.changedIds&&(this.changedIds=null,this.forceUpdate()),(n=this.props.router)==null||n.doNavigate("tab-objects")},systemConfig:this.systemConfig})}return null}onUpdate(r){this.props.socket.setState(this.edit.id,{val:r.val,ack:r.ack,q:r.q||0,expire:r.expire||void 0}).catch(n=>this.showError(`Cannot write value: ${n}`))}renderEditObjectDialog(){if(!this.state.editObjectDialog||!this.props.objectBrowserEditObject)return null;const r=this.props.objectBrowserEditObject;return m.createElement(r,{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:n=>this.props.socket.setObject(n._id,n).then(()=>this.setState({editObjectDialog:n._id,editObjectAlias:!1},()=>this.onSelect(n._id))).catch(o=>this.showError(`Cannot write object: ${o}`)),onClose:n=>{var o,a;if(n){let i;this.state.editObjectDialog.startsWith("alias.")&&JSON.stringify((o=this.objects[this.state.editObjectDialog].common)==null?void 0:o.alias)!==JSON.stringify((a=n.common)==null?void 0:a.alias)&&(i=this.state.editObjectDialog),this.props.socket.setObject(n._id,n).then(()=>{i&&this.subscribes.includes(i)&&(this.unsubscribe(i),setTimeout(()=>this.subscribe(i),100))}).catch(s=>this.showError(`Cannot write object: ${s}`))}this.setState({editObjectDialog:"",editObjectAlias:!1})},width:this.props.width})}renderViewObjectFileDialog(){if(!this.state.viewFileDialog||!this.props.objectBrowserViewFile)return null;const r=this.props.objectBrowserViewFile;return m.createElement(r,{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;const r=this.props.objectBrowserAliasEditor;return m.createElement(r,{key:"editAlias",obj:this.objects[this.state.showAliasEditor],objects:this.objects,socket:this.props.socket,t:this.props.t,onClose:()=>this.setState({showAliasEditor:""}),onRedirect:(n,o)=>setTimeout(()=>this.onSelect(n,!1,()=>this.expandAllSelected(()=>{this.scrollToItem(n),setTimeout(()=>this.setState({editObjectDialog:n,showAliasEditor:"",editObjectAlias:!0}),300)})),o||0)})}showAddDataPointDialog(r,n,o){this.setState({showContextMenu:null,modalNewObj:{id:r,initialType:n,initialStateType:o}})}renderAliasMenu(){return this.state.aliasMenu?m.createElement(eu,{key:"aliasmenu",open:!0,anchorEl:window.document.getElementById(`alias_${this.state.aliasMenu}`),onClose:()=>this.setState({aliasMenu:""})},this.info.aliasesMap[this.state.aliasMenu].map((r,n)=>m.createElement(Jt,{key:r,onClick:()=>this.onSelect(r)},m.createElement(_o,null,this.renderAliasLink(this.state.aliasMenu,n,{"& .admin-browser-arrow":{mr:"8px"}}))))):null}renderContextMenu(){var g,y,b,x,S,T,E;if(!this.state.showContextMenu)return null;const r=this.state.showContextMenu.item,n=r.data.id,o=[],a=r.data.obj;let i="";if(this.props.objectEditOfAccessControl&&this.state.filter.expertMode)if(!a)i="---";else{const $=a.acl?a.type==="state"?a.acl.state:a.acl.object:0,k=a.acl&&(a.type==="state"?this.systemConfig.common.defaultNewAcl.state:this.systemConfig.common.defaultNewAcl.object);i=Number.isNaN(Number($))?Number(k).toString(16):Number($).toString(16)}const s=!this.props.notEditable&&a&&(this.state.filter.expertMode||a.type==="state"||a.type==="channel"||a.type==="device"),l=!r.data.obj||r.data.obj.type==="folder"||r.data.obj.type==="channel"||r.data.obj.type==="device"||r.data.id==="0_userdata.0"||r.data.obj.type==="meta",d=!r.data.obj||r.data.obj.type==="folder"||r.data.obj.type==="device"||r.data.id==="0_userdata.0"||r.data.obj.type==="meta",h=!r.data.obj||r.data.obj.type==="folder"||r.data.id==="0_userdata.0"||r.data.obj.type==="meta",u=!r.data.obj||r.data.obj.type==="folder"||r.data.id==="0_userdata.0"||r.data.obj.type==="meta",f={EDIT:{key:"0",visibility:!!(this.props.objectBrowserEditObject&&a&&(this.state.filter.expertMode||va.isNonExpertId(n))),icon:m.createElement(rv,{fontSize:"small",style:this.styles.contextMenuEdit}),label:this.texts.editObject,onClick:()=>this.setState({editObjectDialog:r.data.id,showContextMenu:null,editObjectAlias:!1})},EDIT_VALUE:{key:"1",visibility:!!(this.states&&!this.props.notEditable&&a&&a.type==="state"&&((g=a.common)==null?void 0:g.type)!=="file"&&(this.state.filter.expertMode||a.common.write!==!1)),icon:m.createElement(Cve,{fontSize:"small",style:this.styles.contextMenuEditValue}),label:this.props.t("ra_Edit value"),onClick:()=>{this.edit={val:this.states[n]?this.states[n].val:"",q:this.states[n]&&this.states[n].q||0,ack:!1,id:n},this.setState({updateOpened:!0,showContextMenu:null})}},VIEW:{visibility:!!this.props.objectBrowserViewFile&&(a==null?void 0:a.type)==="state"&&((y=a.common)==null?void 0:y.type)==="file",icon:m.createElement(bve,{fontSize:"small",style:this.styles.contextMenuView}),label:this.props.t("ra_View file"),onClick:()=>this.setState({viewFileDialog:(a==null?void 0:a._id)||"",showContextMenu:null})},CUSTOM:{key:"2",visibility:!(this.props.objectCustomDialog&&this.info.hasSomeCustoms&&a&&a.type==="state"&&((b=a.common)==null?void 0:b.type)!=="file"),icon:m.createElement(l2,{fontSize:"small",style:r.data.hasCustoms?this.styles.cellButtonsButtonWithCustoms:Q.cellButtonsButtonWithoutCustoms}),style:this.styles.contextMenuCustom,label:this.texts.customConfig,onClick:()=>{var $;this.pauseSubscribe(!0),($=this.props.router)==null||$.doNavigate(null,"customs",n),this.setState({customDialog:[n],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:r.data})},ROLE:{key:"4",visibility:!!(this.state.filter.expertMode&&s&&this.props.objectBrowserEditRole),icon:m.createElement(hve,{fontSize:"small",style:this.styles.contextMenuRole}),label:this.props.t("ra_Edit role"),onClick:()=>this.setState({roleDialog:r.data.id,showContextMenu:null})},FUNCTION:{key:"5",visibility:!!s,icon:m.createElement(dve,{fontSize:"small",style:this.styles.contextMenuRole}),label:this.props.t("ra_Edit function"),onClick:()=>{const $=Jc(this.info,r.data.id,"funcEnums");this.setState({enumDialogEnums:$,enumDialog:{item:r,type:"func",enumsOriginal:JSON.stringify($)},showContextMenu:null})}},ROOM:{key:"6",visibility:!!s,icon:m.createElement(gve,{fontSize:"small",style:this.styles.contextMenuRoom}),label:this.props.t("ra_Edit room"),onClick:()=>{const $=Jc(this.info,r.data.id,"roomEnums");this.setState({enumDialogEnums:$,enumDialog:{item:r,type:"room",enumsOriginal:JSON.stringify($)},showContextMenu:null})}},ALIAS:{key:"7",visibility:!!(!this.props.notEditable&&this.props.objectBrowserAliasEditor&&this.props.objectBrowserEditObject&&(a==null?void 0:a.type)==="state"&&((x=a.common)==null?void 0:x.type)!=="file"),icon:m.createElement(JH,{style:(S=a==null?void 0:a.common)!=null&&S.alias?this.styles.cellButtonsButtonWithCustoms:Q.cellButtonsButtonWithoutCustoms}),label:this.info.aliasesMap[r.data.id]||r.data.id.startsWith("alias.0.")?this.props.t("ra_Edit alias"):this.props.t("ra_Create alias"),onClick:()=>{var $;($=a==null?void 0:a.common)!=null&&$.alias?this.setState({showContextMenu:null,editObjectDialog:r.data.id,editObjectAlias:!0}):this.setState({showContextMenu:null,showAliasEditor:r.data.id})}},CREATE:{key:"+",visibility:(r.data.id.startsWith("0_userdata.0")||r.data.id.startsWith("javascript."))&&(l||d||h||u),icon:m.createElement(Nv,{fontSize:"small",style:this.styles.cellButtonsButtonWithCustoms}),style:Q.contextMenuWithSubMenu,label:this.texts.create,subMenu:[{label:this.texts.createBooleanState,visibility:l,icon:m.createElement(gh,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(r.data.id,"state","boolean")},{label:this.texts.createNumberState,visibility:l,icon:m.createElement(gh,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(r.data.id,"state","number")},{label:this.texts.createStringState,visibility:l,icon:m.createElement(gh,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(r.data.id,"state","string")},{label:this.texts.createState,visibility:l,icon:m.createElement(gh,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(r.data.id,"state")},{label:this.texts.createChannel,visibility:d,icon:m.createElement(gV,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(r.data.id,"channel")},{label:this.texts.createDevice,visibility:h,icon:m.createElement(vV,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(r.data.id,"device")},{label:this.texts.createFolder,icon:m.createElement(qH,{fontSize:"small"}),visibility:u,onClick:()=>this.showAddDataPointDialog(r.data.id,"folder")}]},DELETE:{key:"Delete",visibility:!!(this.props.onObjectDelete&&((T=r.children)!=null&&T.length||a&&!((E=a.common)!=null&&E.dontDelete))),icon:m.createElement(Ta,{fontSize:"small",style:this.styles.contextMenuDelete}),style:this.styles.contextMenuDelete,label:this.texts.deleteObject,onClick:()=>this.setState({showContextMenu:null},()=>this.showDeleteDialog({id:n,obj:a||{},item:r}))}};return Object.keys(f).forEach($=>{var k,O;f[$].visibility&&(f[$].subMenu?(o.push(m.createElement(Jt,{key:$,href:"",onClick:M=>this.state.showContextMenu&&this.setState({showContextMenu:{item:this.state.showContextMenu.item,position:this.state.showContextMenu.position,subItem:$,subAnchor:M.target}}),style:f[$].style},m.createElement(ba,{style:{...f[$].iconStyle,...f[$].listItemIconStyle}},f[$].icon),m.createElement(_o,null,f[$].label,"..."),m.createElement("div",{style:{...Q.contextMenuKeys,opacity:1}},m.createElement(lve,null)))),((k=this.state.showContextMenu)==null?void 0:k.subItem)===$&&o.push(m.createElement(eu,{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}},(O=f[$].subMenu)==null?void 0:O.map(M=>M.visibility?m.createElement(Jt,{key:M.label,onClick:M.onClick,style:M.style},m.createElement(ba,{style:{...M.iconStyle,...M.listItemIconStyle||void 0}},M.icon),m.createElement(_o,null,M.label)):null)))):o.push(m.createElement(Jt,{key:$,onClick:f[$].onClick,sx:f[$].style},m.createElement(ba,{style:{...f[$].iconStyle,...f[$].listItemIconStyle}},f[$].icon),m.createElement(_o,null,f[$].label),f[$].key?m.createElement("div",{style:Q.contextMenuKeys},`Alt+${f[$].key==="Delete"?this.props.t("ra_Del"):f[$].key}`):null)))}),o.length?m.createElement(eu,{key:"contextMenu",open:!0,onKeyUp:$=>{$.preventDefault(),$.altKey&&Object.keys(f).forEach(k=>{$.key===f[k].key&&f[k].onClick&&f[k].onClick()})},anchorReference:"anchorPosition",anchorPosition:this.state.showContextMenu.position,onClose:()=>{this.setState({showContextMenu:null}),this.contextMenu=null}},o):(setTimeout(()=>this.setState({showContextMenu:null}),100),null)}renderEditValueDialog(){var a;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;const r=(a=this.objects[this.edit.id].common)!=null&&a.type?this.objects[this.edit.id].common.type:typeof this.edit.val,n=this.objects[this.edit.id].common.role,o=this.props.objectBrowserValue;return m.createElement(o,{t:this.props.t,lang:this.props.lang,type:r,role:n||"",states:ue.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:i=>{this.setState({updateOpened:!1}),i&&this.onUpdate(i)},width:this.props.width})}render(){this.recordStates=[],this.unsubscribeTimer&&clearTimeout(this.unsubscribeTimer),this.styleTheme!==this.props.themeType&&(this.styles={cellIdIconFolder:ue.getStyle(this.props.theme,Q.cellIdIconFolder),cellIdIconDocument:ue.getStyle(this.props.theme,Q.cellIdIconDocument),iconDeviceError:ue.getStyle(this.props.theme,Q.iconDeviceError),iconDeviceConnected:ue.getStyle(this.props.theme,Q.iconDeviceConnected),iconDeviceDisconnected:ue.getStyle(this.props.theme,Q.iconDeviceDisconnected),cellButtonsButtonWithCustoms:ue.getStyle(this.props.theme,Q.cellButtonsButtonWithCustoms),invertedBackground:ue.getStyle(this.props.theme,Q.invertedBackground),invertedBackgroundFlex:ue.getStyle(this.props.theme,Q.invertedBackgroundFlex),contextMenuEdit:ue.getStyle(this.props.theme,Q.contextMenuEdit),contextMenuEditValue:ue.getStyle(this.props.theme,Q.contextMenuEditValue),contextMenuView:ue.getStyle(this.props.theme,Q.contextMenuView),contextMenuCustom:ue.getStyle(this.props.theme,Q.contextMenuCustom),contextMenuACL:ue.getStyle(this.props.theme,Q.contextMenuACL),contextMenuRoom:ue.getStyle(this.props.theme,Q.contextMenuRoom),contextMenuRole:ue.getStyle(this.props.theme,Q.contextMenuRole),contextMenuDelete:ue.getStyle(this.props.theme,Q.contextMenuDelete),filterInput:ue.getStyle(this.props.theme,Q.headerCellInput,Q.filterInput),iconCopy:ue.getStyle(this.props.theme,Q.cellButtonsValueButton,Q.cellButtonsValueButtonCopy),aliasReadWrite:ue.getStyle(this.props.theme,Q.cellIdAlias,Q.cellIdAliasReadWrite),aliasAlone:ue.getStyle(this.props.theme,Q.cellIdAlias,Q.cellIdAliasAlone)},this.styleTheme=this.props.themeType);const r=JSON.stringify(this.state.filter);if(this.lastAppliedFilter!==r&&this.objects&&this.root){const o={count:0};T2(this.root,this.state.filter,this.props.lang,this.objects,void 0,o,this.props.customFilter,this.props.types),o.count<500&&!this.state.expandAllVisible?setTimeout(()=>this.setState({expandAllVisible:!0})):o.count>=500&&this.state.expandAllVisible&&setTimeout(()=>this.setState({expandAllVisible:!1})),this.lastAppliedFilter=r}if(this.unsubscribeTimer=setTimeout(()=>{this.unsubscribeTimer=null,this.checkUnsubscribes()},200),!this.state.loaded)return m.createElement(pO,{key:`${this.props.dialogName}_c`});const n=this.root?this.renderItem(this.root,void 0):null;return m.createElement(i_t,{key:this.props.dialogName},m.createElement("style",null,` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dV(t,e){if(t){if(typeof t=="string")return y2(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y2(t,e)}}function y2(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Cyt(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}var s_=A.forwardRef(function(t,e){var r=t.children,n=Vv(t,hyt),o=$yt(n),a=o.open,i=Vv(o,fyt);return A.useImperativeHandle(e,function(){return{open:a}},[a]),m.createElement(A.Fragment,null,r(jr(jr({},i),{},{open:a})))});s_.displayName="Dropzone";var uV={disabled:!1,getFilesFromEvent:Pvt,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};s_.defaultProps=uV;s_.propTypes={children:ye.func,accept:ye.objectOf(ye.arrayOf(ye.string)),multiple:ye.bool,preventDropOnDocument:ye.bool,noClick:ye.bool,noKeyboard:ye.bool,noDrag:ye.bool,noDragEventsBubbling:ye.bool,minSize:ye.number,maxSize:ye.number,maxFiles:ye.number,disabled:ye.bool,getFilesFromEvent:ye.func,onFileDialogCancel:ye.func,onFileDialogOpen:ye.func,useFsAccessApi:ye.bool,autoFocus:ye.bool,onDragEnter:ye.func,onDragLeave:ye.func,onDragOver:ye.func,onDrop:ye.func,onDropAccepted:ye.func,onDropRejected:ye.func,onError:ye.func,validator:ye.func};var b2={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function $yt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=jr(jr({},uV),t),r=e.accept,n=e.disabled,o=e.getFilesFromEvent,a=e.maxSize,i=e.minSize,s=e.multiple,l=e.maxFiles,d=e.onDragEnter,h=e.onDragLeave,u=e.onDragOver,f=e.onDrop,g=e.onDropAccepted,y=e.onDropRejected,b=e.onFileDialogCancel,x=e.onFileDialogOpen,S=e.useFsAccessApi,T=e.autoFocus,E=e.preventDropOnDocument,$=e.noClick,k=e.noKeyboard,O=e.noDrag,M=e.noDragEventsBubbling,R=e.onError,j=e.validator,I=A.useMemo(function(){return dyt(r)},[r]),z=A.useMemo(function(){return cyt(r)},[r]),W=A.useMemo(function(){return typeof x=="function"?x:oz},[x]),L=A.useMemo(function(){return typeof b=="function"?b:oz},[b]),F=A.useRef(null),H=A.useRef(null),q=A.useReducer(kyt,b2),ee=bS(q,2),Y=ee[0],G=ee[1],te=Y.isFocused,B=Y.isFileDialogActive,K=A.useRef(typeof window<"u"&&window.isSecureContext&&S&&lyt()),he=function(){!K.current&&B&&setTimeout(function(){if(H.current){var ae=H.current.files;ae.length||(G({type:"closeDialog"}),L())}},300)};A.useEffect(function(){return window.addEventListener("focus",he,!1),function(){window.removeEventListener("focus",he,!1)}},[H,B,L,K]);var fe=A.useRef([]),ge=function(ae){F.current&&F.current.contains(ae.target)||(ae.preventDefault(),fe.current=[])};A.useEffect(function(){return E&&(document.addEventListener("dragover",rz,!1),document.addEventListener("drop",ge,!1)),function(){E&&(document.removeEventListener("dragover",rz),document.removeEventListener("drop",ge))}},[F,E]),A.useEffect(function(){return!n&&T&&F.current&&F.current.focus(),function(){}},[F,T,n]);var Ee=A.useCallback(function(J){R?R(J):console.error(J)},[R]),ze=A.useCallback(function(J){J.preventDefault(),J.persist(),at(J),fe.current=[].concat(vyt(fe.current),[J.target]),Ig(J)&&Promise.resolve(o(J)).then(function(ae){if(!(Uv(J)&&!M)){var Se=ae.length,Te=Se>0&&oyt({files:ae,accept:I,minSize:i,maxSize:a,multiple:s,maxFiles:l,validator:j}),Oe=Se>0&&!Te;G({isDragAccept:Te,isDragReject:Oe,isDragActive:!0,type:"setDraggedFiles"}),d&&d(J)}}).catch(function(ae){return Ee(ae)})},[o,d,Ee,M,I,i,a,s,l,j]),Ne=A.useCallback(function(J){J.preventDefault(),J.persist(),at(J);var ae=Ig(J);if(ae&&J.dataTransfer)try{J.dataTransfer.dropEffect="copy"}catch{}return ae&&u&&u(J),!1},[u,M]),Fe=A.useCallback(function(J){J.preventDefault(),J.persist(),at(J);var ae=fe.current.filter(function(Te){return F.current&&F.current.contains(Te)}),Se=ae.indexOf(J.target);Se!==-1&&ae.splice(Se,1),fe.current=ae,!(ae.length>0)&&(G({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Ig(J)&&h&&h(J))},[F,h,M]),Pe=A.useCallback(function(J,ae){var Se=[],Te=[];J.forEach(function(Oe){var Ce=iV(Oe,I),nt=bS(Ce,2),Le=nt[0],mt=nt[1],vt=sV(Oe,i,a),wt=bS(vt,2),pe=wt[0],$e=wt[1],ot=j?j(Oe):null;if(Le&&pe&&!ot)Se.push(Oe);else{var yt=[mt,$e];ot&&(yt=yt.concat(ot)),Te.push({file:Oe,errors:yt.filter(function(Pt){return Pt})})}}),(!s&&Se.length>1||s&&l>=1&&Se.length>l)&&(Se.forEach(function(Oe){Te.push({file:Oe,errors:[nyt]})}),Se.splice(0)),G({acceptedFiles:Se,fileRejections:Te,isDragReject:Te.length>0,type:"setFiles"}),f&&f(Se,Te,ae),Te.length>0&&y&&y(Te,ae),Se.length>0&&g&&g(Se,ae)},[G,s,I,i,a,l,f,g,y,j]),Ye=A.useCallback(function(J){J.preventDefault(),J.persist(),at(J),fe.current=[],Ig(J)&&Promise.resolve(o(J)).then(function(ae){Uv(J)&&!M||Pe(ae,J)}).catch(function(ae){return Ee(ae)}),G({type:"reset"})},[o,Pe,Ee,M]),Be=A.useCallback(function(){if(K.current){G({type:"openDialog"}),W();var J={multiple:s,types:z};window.showOpenFilePicker(J).then(function(ae){return o(ae)}).then(function(ae){Pe(ae,null),G({type:"closeDialog"})}).catch(function(ae){uyt(ae)?(L(ae),G({type:"closeDialog"})):pyt(ae)?(K.current=!1,H.current?(H.current.value=null,H.current.click()):Ee(new 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 was provided."))):Ee(ae)});return}H.current&&(G({type:"openDialog"}),W(),H.current.value=null,H.current.click())},[G,W,L,S,Pe,Ee,z,s]),Ke=A.useCallback(function(J){!F.current||!F.current.isEqualNode(J.target)||(J.key===" "||J.key==="Enter"||J.keyCode===32||J.keyCode===13)&&(J.preventDefault(),Be())},[F,Be]),Xe=A.useCallback(function(){G({type:"focus"})},[]),ve=A.useCallback(function(){G({type:"blur"})},[]),le=A.useCallback(function(){$||(syt()?setTimeout(Be,0):Be())},[$,Be]),re=function(ae){return n?null:ae},He=function(ae){return k?null:re(ae)},Ve=function(ae){return O?null:re(ae)},at=function(ae){M&&ae.stopPropagation()},ut=A.useMemo(function(){return function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=J.refKey,Se=ae===void 0?"ref":ae,Te=J.role,Oe=J.onKeyDown,Ce=J.onFocus,nt=J.onBlur,Le=J.onClick,mt=J.onDragEnter,vt=J.onDragOver,wt=J.onDragLeave,pe=J.onDrop,$e=Vv(J,myt);return jr(jr(_2({onKeyDown:He(Ha(Oe,Ke)),onFocus:He(Ha(Ce,Xe)),onBlur:He(Ha(nt,ve)),onClick:re(Ha(Le,le)),onDragEnter:Ve(Ha(mt,ze)),onDragOver:Ve(Ha(vt,Ne)),onDragLeave:Ve(Ha(wt,Fe)),onDrop:Ve(Ha(pe,Ye)),role:typeof Te=="string"&&Te!==""?Te:"presentation"},Se,F),!n&&!k?{tabIndex:0}:{}),$e)}},[F,Ke,Xe,ve,le,ze,Ne,Fe,Ye,k,O,n]),ke=A.useCallback(function(J){J.stopPropagation()},[]),pt=A.useMemo(function(){return function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=J.refKey,Se=ae===void 0?"ref":ae,Te=J.onChange,Oe=J.onClick,Ce=Vv(J,gyt),nt=_2({accept:I,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:re(Ha(Te,Ye)),onClick:re(Ha(Oe,ke)),tabIndex:-1},Se,H);return jr(jr({},nt),Ce)}},[H,r,s,Ye,n]);return jr(jr({},Y),{},{isFocused:te&&!n,getRootProps:ut,getInputProps:pt,rootRef:F,inputRef:H,open:re(Be)})}function kyt(t,e){switch(e.type){case"focus":return jr(jr({},t),{},{isFocused:!0});case"blur":return jr(jr({},t),{},{isFocused:!1});case"openDialog":return jr(jr({},b2),{},{isFileDialogActive:!0});case"closeDialog":return jr(jr({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return jr(jr({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return jr(jr({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return jr({},b2);default:return t}}function oz(){}function Eyt(){const t=ai();return[...t.breakpoints.keys].reverse().reduce((r,n)=>{const o=Rce(t.breakpoints.up(n));return!r&&o?n:r},null)||"xs"}function qs(){return t=>function(r){const n=Eyt();return m.createElement(t,{...r,width:n})}}function Tyt(t){const[e,r]=m.useState(t.input||t.value||""),[n,o]=m.useState("");return m.createElement(or,{open:!0,onClose:()=>t.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:t.fullWidth!==void 0?t.fullWidth:!1},m.createElement(_r,{id:"form-dialog-title"},t.titleText),m.createElement(Wr,null,m.createElement(Ds,null,t.promptText),m.createElement(Ht,{variant:"standard",autoFocus:!0,margin:"dense",error:!!n,helperText:n===!0||!n?"":n,value:e,label:t.labelText||"",type:t.type||"text",onKeyUp:a=>a.code==="Enter"&&e&&t.onClose(e),onChange:a=>{let i="";t.verify&&(i=!t.verify(a.target.value)),t.rule?r(t.rule(a.target.value)):r(a.target.value),o(i)},fullWidth:!0})),m.createElement(pr,null,m.createElement(tt,{variant:"contained",disabled:!e||!!n,onClick:()=>t.onClose(e),color:"primary",startIcon:m.createElement(Ea,null)},t.applyText||P.t("ra_Ok")),m.createElement(tt,{color:"grey",variant:"contained",onClick:()=>t.onClose(null),startIcon:m.createElement(Ar,null)},t.cancelText||P.t("ra_Cancel"))))}const Oyt=qs()(Tyt),w2=t=>m.createElement("svg",{onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 486 486",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:t.className,style:t.style},m.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"}),m.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"})),ru=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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"})),nv=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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"})),CD=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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 Dyt=t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,r)=>{const[n,o]=r.split(/ ?: ?/).map((a,i)=>i===0?a.replace(/\s+/g,""):a.trim());if(n&&o){const a=n.replace(/(\w)-(\w)/g,(s,l,d)=>`${l}${d.toUpperCase()}`);let i=o.trim();Number.isNaN(Number(o))||(i=Number(o)),e[n.startsWith("-")?n:a]=i}return e},{});function Ayt(t=6){const e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=t;n>0;--n)r+=e[Math.round(Math.random()*(e.length-1))];return r}var Iyt=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],az={"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 Myt(t,e){var a;const{key:r,level:n,...o}=e;switch(t.nodeType){case 1:return A.createElement(Nyt(t.nodeName),Pyt(t,r),iz(t.childNodes,n,o));case 3:{const i=((a=t.nodeValue)==null?void 0:a.toString())??"";if(!o.allowWhiteSpaces&&/^\s+$/.test(i)&&!/[\u00A0\u202F]/.test(i))return null;if(!t.parentNode)return i;const s=t.parentNode.nodeName.toLowerCase();return Iyt.includes(s)?(/\S/.test(i)&&console.warn(`A textNode is not allowed inside '${s}'. Your text "${i}" will be ignored`),null):i}case 8:return null;case 11:return iz(t.childNodes,n,e);default:return null}}function Pyt(t,e){const r={key:e};if(t instanceof Element){const n=t.getAttribute("class");n&&(r.className=n),[...t.attributes].forEach(o=>{switch(o.name){case"class":break;case"style":r[o.name]=Dyt(o.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":r[az[o.name]||o.name]=!0;break;default:r[az[o.name]||o.name]=o.value}})}return r}function iz(t,e,r){const n=[...t].map((o,a)=>qv(o,{...r,index:a,level:e+1})).filter(Boolean);return n.length?n:null}function Nyt(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}function qv(t,e={}){if(!t||!(t instanceof Node))return null;const{actions:r=[],index:n=0,level:o=0,randomKey:a}=e;let i=t,s=`${o}-${n}`;const l=[];return a&&o===0&&(s=`${Ayt()}-${s}`),Array.isArray(r)&&r.forEach(d=>{d.condition(i,s,o)&&(typeof d.pre=="function"&&(i=d.pre(i,s,o),i instanceof Node||(i=t)),typeof d.post=="function"&&l.push(d.post(i,s,o)))}),l.length?l:Myt(i,{key:s,level:o,...e})}function Ryt(t,e={}){if(!t||typeof t!="string")return null;const{includeAllNodes:r=!1,nodeOnly:n=!1,selector:o="body > *",type:a="text/html"}=e;try{const s=new DOMParser().parseFromString(t,a);if(r){const{childNodes:d}=s.body;return n?d:[...d].map(h=>qv(h,e))}const l=s.querySelector(o)||s.body.childNodes[0];if(!(l instanceof Node))throw new TypeError("Error parsing input");return n?l:qv(l,e)}catch{}return null}function pV(t,e={}){return typeof t=="string"?Ryt(t,e):t instanceof Node?qv(t,e):null}var jyt=Object.defineProperty,Lyt=(t,e,r)=>e in t?jyt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Mg=(t,e,r)=>Lyt(t,typeof e!="symbol"?e+"":e,r),sz="react-inlinesvg",lz=10,rr={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function ov(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function zyt(){return Byt()&&typeof window<"u"&&window!==null}async function hV(t,e){const r=await fetch(t,e),n=r.headers.get("content-type"),[o]=(n??"").split(/ ?; ?/);if(r.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(a=>o.includes(a)))throw new Error(`Content type isn't valid: ${o}`);return r.text()}function Fyt(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}function Byt(){if(!document)return!1;const t=document.createElement("div");t.innerHTML="";const e=t.firstChild;return!!e&&e.namespaceURI==="http://www.w3.org/2000/svg"}function Wyt(t){return t[Math.floor(Math.random()*t.length)]}function Hyt(t){const e="abcdefghijklmnopqrstuvwxyz",n=`${e}${e.toUpperCase()}1234567890`;let o="";for(let a=0;a{this.cacheApi=r}).catch(r=>{console.error(`Failed to open cache: ${r.message}`)}).finally(()=>{this.isReady=!0,this.subscribers.forEach(r=>r())}):this.isReady=!0}onReady(t){this.isReady?t():this.subscribers.push(t)}async get(t,e){var r;return await(this.cacheApi?this.fetchAndAddToPersistentCache(t,e):this.fetchAndAddToInternalCache(t,e)),((r=this.cacheStore.get(t))==null?void 0:r.content)??""}set(t,e){this.cacheStore.set(t,e)}isCached(t){var e;return((e=this.cacheStore.get(t))==null?void 0:e.status)===rr.LOADED}async fetchAndAddToInternalCache(t,e){const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===rr.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:rr.IDLE}),await this.fetchAndAddToInternalCache(t,e)});return}if(!(r!=null&&r.content)){this.cacheStore.set(t,{content:"",status:rr.LOADING});try{const n=await hV(t,e);this.cacheStore.set(t,{content:n,status:rr.LOADED})}catch(n){throw this.cacheStore.set(t,{content:"",status:rr.FAILED}),n}}}async fetchAndAddToPersistentCache(t,e){var o,a,i;const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===rr.LOADED)return;if((r==null?void 0:r.status)===rr.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:rr.IDLE}),await this.fetchAndAddToPersistentCache(t,e)});return}this.cacheStore.set(t,{content:"",status:rr.LOADING});const n=await((o=this.cacheApi)==null?void 0:o.match(t));if(n){const s=await n.text();this.cacheStore.set(t,{content:s,status:rr.LOADED});return}try{await((a=this.cacheApi)==null?void 0:a.add(new Request(t,e)));const s=await((i=this.cacheApi)==null?void 0:i.match(t)),l=await(s==null?void 0:s.text())??"";this.cacheStore.set(t,{content:l,status:rr.LOADED})}catch(s){throw this.cacheStore.set(t,{content:"",status:rr.FAILED}),s}}async handleLoading(t,e){var n;let r=0;for(;((n=this.cacheStore.get(t))==null?void 0:n.status)===rr.LOADING&&r=lz&&await e()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([t,e])=>({[t]:e}))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){const t=await this.cacheApi.keys();for(const e of t)await this.cacheApi.delete(e)}this.cacheStore.clear()}};function cz(t){const e=A.useRef();return A.useEffect(()=>{e.current=t}),e.current}function qyt(t){const{baseURL:e,content:r,description:n,handleError:o,hash:a,preProcessor:i,title:s,uniquifyIDs:l=!1}=t;try{const d=Gyt(r,i),h=pV(d,{nodeOnly:!0});if(!h||!(h instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const u=fV(h,{baseURL:e,hash:a,uniquifyIDs:l});if(n){const f=u.querySelector("desc");f!=null&&f.parentNode&&f.parentNode.removeChild(f);const g=document.createElementNS("http://www.w3.org/2000/svg","desc");g.innerHTML=n,u.prepend(g)}if(typeof s<"u"){const f=u.querySelector("title");if(f!=null&&f.parentNode&&f.parentNode.removeChild(f),s){const g=document.createElementNS("http://www.w3.org/2000/svg","title");g.innerHTML=s,u.prepend(g)}}return u}catch(d){return o(d)}}function Gyt(t,e){return e?e(t):t}function fV(t,e){const{baseURL:r="",hash:n,uniquifyIDs:o}=e,a=["id","href","xlink:href","xlink:role","xlink:arcrole"],i=["href","xlink:href"],s=(l,d)=>i.includes(l)&&(d?!d.includes("#"):!1);return o&&[...t.children].forEach(l=>{var d;if((d=l.attributes)!=null&&d.length){const h=Object.values(l.attributes).map(u=>{const f=u,g=/url\((.*?)\)/.exec(u.value);return g!=null&&g[1]&&(f.value=u.value.replace(g[0],`url(${r}${g[1]}__${n})`)),f});a.forEach(u=>{const f=h.find(g=>g.name===u);f&&!s(u,f.value)&&(f.value=`${f.value}__${n}`)})}return l.children.length?fV(l,e):l}),t}var qd;function Xyt(t){const{cacheRequests:e=!0,children:r=null,description:n,fetchOptions:o,innerRef:a,loader:i=null,onError:s,onLoad:l,src:d,title:h,uniqueHash:u}=t,[f,g]=A.useReducer((F,H)=>({...F,...H}),{content:"",element:null,isCached:e&&qd.isCached(t.src),status:rr.IDLE}),{content:y,element:b,isCached:x,status:S}=f,T=cz(t),E=cz(f),$=A.useRef(u??Hyt(8)),k=A.useRef(!1),O=A.useRef(!1),M=A.useCallback(F=>{k.current&&(g({status:F.message==="Browser does not support SVG"?rr.UNSUPPORTED:rr.FAILED}),s==null||s(F))},[s]),R=A.useCallback((F,H=!1)=>{k.current&&g({content:F,isCached:H,status:rr.LOADED})},[]),j=A.useCallback(async()=>{const F=await hV(d,o);R(F)},[o,R,d]),I=A.useCallback(()=>{try{const F=qyt({...t,handleError:M,hash:$.current,content:y}),H=pV(F);if(!H||!A.isValidElement(H))throw new Error("Could not convert the src to a React element");g({element:H,status:rr.READY})}catch(F){M(new Error(F.message))}},[y,M,t]),z=A.useCallback(async()=>{const F=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(d);let H;if(F?H=F[1]?window.atob(F[2]):decodeURIComponent(F[2]):d.includes("{k.current&&g({content:"",element:null,isCached:!1,status:rr.LOADING})},[]);A.useEffect(()=>{if(k.current=!0,!ov()||O.current)return()=>{};try{if(S===rr.IDLE){if(!zyt())throw new Error("Browser does not support SVG");if(!d)throw new Error("Missing src");W()}}catch(F){M(F)}return O.current=!0,()=>{k.current=!1}},[]),A.useEffect(()=>{if(ov()&&T)if(T.src!==d){if(!d){M(new Error("Missing src"));return}W()}else(T.title!==h||T.description!==n)&&I()},[n,I,M,W,T,d,h]),A.useEffect(()=>{E&&(E.status!==rr.LOADING&&S===rr.LOADING&&z(),E.status!==rr.LOADED&&S===rr.LOADED&&I(),E.status!==rr.READY&&S===rr.READY&&(l==null||l(d,x)))},[z,I,x,l,E,d,S]);const L=Uyt(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return ov()?b?A.cloneElement(b,{ref:a,...L}):[rr.UNSUPPORTED,rr.FAILED].includes(S)?r:i:i}function x2(t){qd||(qd=new Vyt);const{loader:e}=t,r=A.useRef(!1),[n,o]=A.useState(qd.isReady);return A.useEffect(()=>{r.current||(qd.onReady(()=>{o(!0)}),r.current=!0)},[]),n?m.createElement(Xyt,{...t}):e}const Jyt=window.location.hostname.endsWith("iobroker.in"),dz=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);function xl(t){var e,r,n;if(t.src){if(typeof t.src=="string"){if(t.src.length<3)return t.sx?m.createElement(Re,{component:"span",sx:t.sx,title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:ue.clsx(t.className,"iconOwn")},t.src):m.createElement("span",{title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:ue.clsx(t.className,"iconOwn")},t.src);if(t.src.startsWith("data:image/svg"))return m.createElement(x2,{title:t.title||void 0,src:t.src,className:ue.clsx(t.className,"iconOwn"),width:((e=t.style)==null?void 0:e.width)||28,height:((r=t.style)==null?void 0:r.height)||((n=t.style)==null?void 0:n.width)||28,style:t.style||void 0});if(Jyt&&!t.src.startsWith("http://")&&!t.src.startsWith("https://")){let o=t.src;return o.startsWith("./")?o=dz+o.substring(2):o.startsWith("/")||(o=dz+o),t.sx?m.createElement(Re,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:ue.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${o}`,alt:t.alt||void 0,ref:t.ref,onError:a=>t.onError&&t.onError(a)}):m.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:ue.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${o}`,alt:t.alt||void 0,ref:t.ref,onError:a=>t.onError&&t.onError(a)})}return t.sx?m.createElement(Re,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:ue.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError}):m.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:ue.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError})}return t.src}return null}const cl={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"}},En={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp","ico"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function uz(t,e){let r="";const n=new Uint8Array((t==null?void 0:t.data)||t),o=n.byteLength;for(let a=0;a{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,o===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))});const n=ue.getFileExtension(r.href);this.state={text:null,code:null,ext:n,editing:!1,editingValue:null,copyPossible:!!n&&(En.code.includes(n)||En.txt.includes(n)),forceUpdate:Date.now(),changed:!1,imgError:!1}}readFile(){if(this.props.href){const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.socket.readFile(n,o).then(a=>{let i="";a.file!==void 0&&(i=a.file);const s={copyPossible:this.state.copyPossible,ext:this.state.ext};if(i.type==="Buffer")if(o.toLowerCase().endsWith(".json5")){s.ext="json5",s.copyPossible=!0;try{i=atob(uz(i,!0))}catch{console.error("Cannot convert base64 to string"),i=""}}else{const l=ue.detectMimeType(uz(i));l&&(s.ext=l,s.copyPossible=En.code.includes(l)||En.txt.includes(l))}s.copyPossible&&(s.ext&&En.txt.includes(s.ext)?(s.text=i,s.editingValue=i):s.ext&&En.code.includes(s.ext)&&(s.code=i,s.editingValue=i)),this.setState(s)}).catch(a=>window.alert(`Cannot read file: ${a}`))}}componentDidMount(){this.readFile();const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,o,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,o,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}getEditorOrViewer(){return m.createElement(Ht,{variant:"standard",style:cl.textarea,multiline:!0,value:this.state.editingValue||this.state.code||this.state.text,slotProps:{htmlInput:{readOnly:!this.state.editing}}})}getContent(){return this.state.ext&&En.images.includes(this.state.ext)?this.state.imgError?m.createElement(CD,{style:{...cl.img,...this.props.getStyleBackgroundImage()}}):m.createElement(xl,{onError:r=>{r.target.onerror=null,this.setState({imgError:!0})},style:{...cl.img,...this.props.getStyleBackgroundImage()},src:`${this.props.href}?ts=${this.state.forceUpdate}`,alt:this.props.href}):this.state.ext&&En.audio.includes(this.state.ext)?m.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},m.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&En.video.includes(this.state.ext)?m.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},m.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},m.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 m.createElement(or,{sx:{"&.MuiDialog-scrollPaper":cl.dialog,"& .MuiDialog-paper":cl.paper},scroll:"paper",open:!!this.props.href,onClose:()=>this.props.onClose(),fullWidth:!0,maxWidth:"xl","aria-labelledby":"ar_dialog_file_view_title"},m.createElement("div",{style:cl.dialogTitle},m.createElement(_r,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&En.images.includes(this.state.ext)&&m.createElement("div",null,m.createElement(Ie,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},m.createElement(VH,null)))),m.createElement(Wr,{style:cl.content},this.getContent()),m.createElement(pr,null,this.state.copyPossible?m.createElement(tt,{color:"grey",onClick:r=>{r.stopPropagation(),r.preventDefault(),ue.copyToClipboard(this.state.text||this.state.code||"")},startIcon:m.createElement(vve,null)},this.props.t("Copy content")):null,this.state.editing?m.createElement(tt,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:()=>this.onSave(),startIcon:m.createElement(s2,null)},this.props.t("Save")):null,m.createElement(tt,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:m.createElement(Ar,null)},this.props.t("Close"))))}}const Kyt=qs()(Yyt),qc=32,Ci=32,Pg=120,pz=64,hz="Not found",Ng={all:XH,images:$ve,code:AO,txt:Sve,audio:cve,video:Wve},qe={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% - ${48*2+8}px)`,display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${pz}px`},itemTile:t=>({position:"relative",userSelect:"none",cursor:"pointer",height:Pg,width:pz,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:t.palette.secondary.light,color:ue.invertColor(t.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:t=>({width:"100%",height:Pg-32-16-8,display:"block",pl:1,color:t.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:t=>({position:"absolute",top:22,left:18,zIndex:1,color:(t.palette.mode==="dark","#FFF")}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:Pg-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:Pg-32-16-8,display:"block",objectFit:"contain"},itemSelected:t=>({background:t.palette.primary.main,color:ue.invertColor(t.palette.primary.main,!0)}),itemTable:t=>({userSelect:"none",cursor:"pointer",height:qc,display:"inline-flex",lineHeight:`${qc}px`,"&:hover":{background:t.palette.secondary.light,color:ue.invertColor(t.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:t=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:t.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:t=>({display:"inline-block",width:Ci,height:qc,minWidth:Ci,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${Ci/2}px`,"&:hover":{backgroundColor:t.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:t.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:Ci,height:qc,minWidth:Ci,padding:0},itemAclButtonTable:{width:Ci,height:qc,minWidth:Ci,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:Ci,height:qc,minWidth:Ci,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:t=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:t.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:t=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText,borderRadius:"4px 4px 0 0"}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:t=>({pl:"2px",pr:"2px",cursor:"pointer",color:"white","&:hover":{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText}}),pathDivBreadcrumbSelected:{color:"#FFF"},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:t=>({color:t.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},ps="0_userdata.0";function Gc(t){const e=(t||"").split("/");return e.length&&e.pop(),e.join("/")}function wS(t){const e=ue.getFileExtension(t);return!!(e!=null&&e.toLowerCase().match(/[a-z]+/)&&e.length<5)}const Zt="Table",xS="Tile";function fz(t,e){return t.folder&&e.folder?t.name>e.name?1:t.namee.name?1:t.name{const a=`${r}/${n}`,i=a.lastIndexOf("/"),s=a.substring(0,i);console.log(`File changed ${a}[${o}]`),this.state.folders[s]&&(this._tempTimeout[s]&&clearTimeout(this._tempTimeout[s]),this._tempTimeout[s]=setTimeout(()=>{delete this._tempTimeout[s],this.browseFolder(s,null,!1,!0).then(l=>this.setState({folders:l})).catch(l=>console.error(`Cannot read folder: ${l.message}`))},300))});X(this,"setStateBackgroundImage",()=>{const r=["light","dark","colored","delete"];this.setState(({backgroundImage:n})=>n&&r.indexOf(n)!==-1&&r.length-1!==r.indexOf(n)?(this.localStorage.setItem("files.backgroundImage",r[r.indexOf(n)+1]),{backgroundImage:r[r.indexOf(n)+1]}):(this.localStorage.setItem("files.backgroundImage",r[0]),{backgroundImage:r[0]}))});X(this,"getStyleBackgroundImage",()=>{switch(this.state.backgroundImage){case"light":return qe.backgroundImageLight;case"dark":return qe.backgroundImageDark;case"colored":return qe.backgroundImageColored;case"delete":return null;default:return null}});this.localStorage=window._localStorage||window.localStorage;const n=this.localStorage.getItem("files.expanded")||"[]";if(this.refFileDiv=m.createRef(),this.props.limitPath){const d=this.props.limitPath.split("/");this.limitToObjectID=d[0],this.limitToPath=d.length?d.length===1&&d[0]===""?null:d.join("/"):null,this.limitToPath&&this.limitToPath.endsWith("/")&&this.limitToPath.substring(0,this.limitToPath.length-1)}let o;try{o=JSON.parse(n),this.limitToPath&&(o=o.filter(d=>{var h;return d.startsWith(`${this.limitToPath}/`)||d===this.limitToPath||((h=this.limitToPath)==null?void 0:h.startsWith(`${d}/`))}))}catch{o=[]}let a;this.props.showViewTypeButton?a=this.localStorage.getItem("files.viewType")||Zt:a=Zt;let i=this.props.selected||this.localStorage.getItem("files.selected")||ps,s;if(r.restrictToFolder){i=r.restrictToFolder,s=r.restrictToFolder;const d=r.restrictToFolder.split("/");o=[];let h="";for(let u=0;u{if(this.state.viewType===Zt&&!this.findItem(this.state.selected)){const n=this.state.selected.split("/");for(;n.length&&!this.findItem(n.join("/"));)n.pop();let o;n.length?o=n.join("/"):o=ps,this.setState({selected:o,path:o,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){if(this.mounted){const r=document.getElementById(this.state.selected);r==null||r.scrollIntoView()}}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(r=>console.error(`Cannot load folders: ${r}`)),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(r=>r&&clearTimeout(r)),this._tempTimeout={}}browseFoldersCb(r,n,o){if(!(r!=null&&r.length))o(n);else{const a=r.shift();a?this.browseFolder(a,n).catch(i=>console.error(`Cannot read folder ${a}: ${i.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(r,n,o),0)}):setTimeout(()=>this.browseFoldersCb(r,n,o),0)}}browseFolders(r,n){let o;return n?o=n:(o={},Object.keys(this.state.folders).forEach(a=>o[a]=this.state.folders[a])),r!=null&&r.length?new Promise(a=>{this.browseFoldersCb(r,o,a)}):Promise.resolve(o)}readDirSerial(r,n){return new Promise((o,a)=>{this.browseList&&(this.browseList.push({resolve:o,reject:a,adapter:r,relPath:n}),this.browseListRunning||this.processBrowseList())})}processBrowseList(r=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.setState({queueLength:this.browseList.length}),this.browseList[0].processing=!0,this.props.socket.readDir(this.browseList[0].adapter,this.browseList[0].relPath).then(n=>{if(this.browseList){const o=this.browseList.shift();if(o){const a=o.resolve;o.resolve=null,o.reject=null,o.adapter=null,o.relPath=null,a&&a(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(n=>{if(this.browseList){const o=this.browseList.shift();if(o){const a=o.reject;o.resolve=null,o.reject=null,o.adapter=null,o.relPath=null,a&&a(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(r,n,o,a){let i;if(n?i=n:(i={},Object.keys(this.state.folders).forEach(f=>{i[f]=this.state.folders[f]})),i[r]&&!a)return o?Promise.resolve(i):new Promise((f,g)=>{Promise.all(i[r].filter(y=>y.folder).map(y=>this.browseFolder(y.id,i,!0).catch(()=>{}))).then(()=>f(i)).catch(y=>g(new Error(y)))});if(!r||r==="/"){try{let f=await this.props.socket.readMetaItems();const g=[];let y=null;if(this.state.restrictToFolder){const x=this.state.restrictToFolder.split("/")[0];f=f.filter(S=>S._id===x)}else this.state.expertMode||(f=f.filter(x=>!x._id.endsWith(".admin")));const b=f.findIndex(x=>x._id==="system.meta.uuid");if(b!==-1&&f.splice(b,1),f.forEach(x=>{if(this.limitToObjectID&&this.limitToObjectID!==x._id)return;const S={id:x._id,name:x._id,title:x.common&&x.common.name||x._id,meta:!0,from:x.from,ts:x.ts,color:x.common&&x.common.color,icon:x.common&&x.common.icon,folder:!0,acl:x.acl,level:0};S.id===ps?y=S:g.push(S)}),g.sort((x,S)=>x.id>S.id?1:x.idx.folder).map(x=>this.browseFolder(x.id,i,!0).catch(()=>{}))).then(()=>i)}catch(f){const g=f;this.initialReadFinished&&window.alert(`Cannot read meta items: ${g.message}`),i[r||"/"]=[]}return i}const s=r.split("/"),l=s.length,d=s.shift(),h=s.join("/");let u;try{u=await this.readDirSerial(d||"",h)}catch(f){if(f==="Not exists"&&d==="0_userdata.0")u=[];else throw f}try{const f=[];if(u.forEach(g=>{var b;const y={id:`${r}/${g.file}`,ext:ue.getFileExtension(g.file),folder:g.isDir,name:g.file,size:(b=g.stats)==null?void 0:b.size,modified:g.modifiedAt,acl:g.acl,level:l};this.state.restrictToFolder?(y.folder&&(y.id.startsWith(`${this.state.restrictToFolder}/`)||y.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${y.id}/`))||y.id.startsWith(`${this.state.restrictToFolder}/`))&&f.push(y):this.limitToPath?(y.folder&&(y.id.startsWith(`${this.limitToPath}/`)||y.id===this.limitToPath||this.limitToPath.startsWith(`${y.id}/`))||y.id.startsWith(`${this.limitToPath}/`))&&f.push(y):f.push(y)}),f.sort(fz),i[r]=f,!o)return Promise.all(f.filter(g=>g.folder).map(g=>this.browseFolder(g.id,i,!0))).then(()=>i)}catch(f){const g=f;this.initialReadFinished&&window.alert(`Cannot read ${d}${h?`/${h}`:""}: ${g==null?void 0:g.message}`),i[r]=[]}return i}toggleFolder(r,n){n==null||n.stopPropagation();const o=[...this.state.expanded],a=o.indexOf(r.id);a===-1?(o.push(r.id),o.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(o)),r.temp?this.setState({expanded:o}):this.browseFolder(r.id).then(i=>this.setState({expanded:o,folders:i})).catch(i=>window.alert(i===hz?this.props.t('ra_Cannot find "%s"',r.id):this.props.t('ra_Cannot read "%s"',r.id)))):(o.splice(a,1),this.localStorage.setItem("files.expanded",JSON.stringify(o)),this.setState({expanded:o}))}changeFolder(r,n){var a;r==null||r.stopPropagation(),this.lastSelect=Date.now();let o=n||Gc(this.state.currentDir);if(o==="/"&&(o=""),this.state.viewType==="Tile"&&((a=this.refFileDiv.current)!=null&&a.scrollTop)&&(this.scrollPositions[this.state.currentDir]=this.refFileDiv.current.scrollTop),this.localStorage.setItem("files.currentDir",o),n&&r&&(r.altKey||r.shiftKey||r.ctrlKey||r.metaKey)){this.setState({selected:o});return}if(o&&!this.state.folders[o]){this.browseFolder(o).then(i=>this.setState({folders:i,path:o,currentDir:o,selected:o,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(i=>console.error(`Cannot read folder: ${i.message}`));return}this.setState({currentDir:o,selected:o,path:o,pathFocus:!1},()=>{if(this.props.onSelect&&this.props.onSelect(""),this.state.viewType==="Tile"&&this.scrollPositions[this.state.currentDir]){const i=this.scrollPositions[this.state.currentDir];delete this.scrollPositions[this.state.currentDir],this.refFileDiv.current&&(this.refFileDiv.current.scrollTop=i)}})}select(r,n,o){n&&n.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",r),this.setState({selected:r,path:r,pathFocus:!1},()=>{if(this.props.onSelect){const a=ue.getFileExtension(r);(!this.props.filterFiles||a&&this.props.filterFiles.includes(a))&&(!this.state.filterByType||a&&En[this.state.filterByType].includes(a))?this.props.onSelect(r,!1,!!this.state.folders[r]):this.props.onSelect("")}o&&o()})}getText(r){if(r)return typeof r=="object"?r[this.props.lang]||r.en||void 0:r}renderFolder(r,n){var d;if(this.state.filterEmpty&&!((d=this.state.folders[r.id])!=null&&d.length)&&r.id!==ps&&!r.temp)return null;const o=n?nv:ru,a=this.state.viewType===Zt?r.level*this.levelPadding:0,i=r.name===ps,s=i||r.name==="vis.0"||r.name==="vis-2.0",l=ue.getStyle(this.props.theme,qe[`itemFolderIcon${this.state.viewType}`],s&&qe.specialFolder);return m.createElement(Re,{component:"div",key:r.id,id:r.id,style:this.state.viewType===Zt?{marginLeft:a,width:`calc(100% - ${a}px`}:void 0,onClick:h=>this.state.viewType===Zt?this.select(r.id,h):this.changeFolder(h,r.id),onDoubleClick:h=>this.state.viewType===Zt&&this.toggleFolder(r,h),title:this.getText(r.title),className:"browserItem",sx:ue.getStyle(this.props.theme,qe[`item${this.state.viewType}`],qe[`itemFolder${this.state.viewType}`],this.state.selected===r.id?qe.itemSelected:{},r.temp?qe.itemFolderTemp:{})},m.createElement(o,{style:l,onClick:this.state.viewType===Zt?h=>this.toggleFolder(r,h):void 0}),m.createElement(Re,{component:"div",sx:ue.getStyle(this.props.theme,qe[`itemName${this.state.viewType}`],qe[`itemNameFolder${this.state.viewType}`])},i?this.props.t("ra_User files"):r.name),m.createElement(Re,{component:"div",style:qe[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Zt&&this.state.folders[r.id]?this.state.folders[r.id].length:""),m.createElement(Re,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Zt&&this.props.expertMode?this.formatAcl(r.acl):null),this.state.viewType===Zt&&this.props.expertMode?m.createElement(Re,{component:"div",sx:{...qe.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===Zt&&this.props.allowDownload?m.createElement("div",{style:qe[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===Zt&&this.props.allowDelete&&this.state.folders[r.id]&&this.state.folders[r.id].length?m.createElement(Ie,{"aria-label":"delete",onClick:h=>{h.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:qe[`itemDeleteButton${this.state.viewType}`],size:"large"},m.createElement(Ta,{fontSize:"small"})):this.state.viewType===Zt&&this.props.allowDelete?m.createElement(Re,{component:"div",sx:qe[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return m.createElement(Re,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:r=>this.changeFolder(r),title:this.props.t("ra_Back to %s",Gc(this.state.currentDir)),className:"browserItem",sx:ue.getStyle(this.props.theme,qe[`item${this.state.viewType}`],qe[`itemFolder${this.state.viewType}`])},m.createElement(ru,{style:ue.getStyle(this.props.theme,qe[`itemFolderIcon${this.state.viewType}`])}),m.createElement(sve,{sx:qe.itemFolderIconBack}),m.createElement(Re,{component:"div",sx:ue.getStyle(this.props.theme,qe[`itemName${this.state.viewType}`],qe[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(r){return m.createElement("div",{style:qe[`itemSize${this.state.viewType}`]},r||r===0?ue.formatBytes(r):"")}formatAcl(r){const n=r?r.permissions||r.file:0;let o;return n?o=n.toString(16).padStart(3,"0"):o="",m.createElement("div",{style:qe[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?m.createElement(Ie,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:qe[`itemAclButton${this.state.viewType}`]},o||"---"):o||"---")}getFileIcon(r){switch(r){case"json":case"json5":return m.createElement(uve,{style:qe[`itemIcon${this.state.viewType}`]});case"css":return m.createElement(pve,{style:qe[`itemIcon${this.state.viewType}`]});case"js":case"ts":return m.createElement(AO,{style:qe[`itemIcon${this.state.viewType}`]});case"html":case"md":return m.createElement(IO,{style:qe[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return m.createElement(Ive,{style:qe[`itemIcon${this.state.viewType}`]});default:return m.createElement(XH,{style:qe[`itemIcon${this.state.viewType}`]})}}static getEditFile(r){switch(r){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":return!0;default:return!1}}renderFile(r){const n=this.state.viewType===Zt?r.level*this.levelPadding:0,o=ue.getFileExtension(r.name);return m.createElement(Re,{component:"div",key:r.id,id:r.id,onDoubleClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&En[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:o})},onClick:a=>this.select(r.id,a),style:this.state.viewType===Zt?{marginLeft:n,width:`calc(100% - ${n}px)`}:void 0,className:"browserItem",sx:ue.getStyle(this.props.theme,qe[`item${this.state.viewType}`],qe[`itemFile${this.state.viewType}`],this.state.selected===r.id?qe.itemSelected:void 0)},o&&En.images.includes(o)?this.state.fileErrors.includes(r.id)?m.createElement(CD,{style:{...qe[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...qe[`itemNoImage${this.state.viewType}`]}}):m.createElement(xl,{onError:a=>{a.target.onerror=null;const i=[...this.state.fileErrors];i.includes(r.id)||(i.push(r.id),this.setState({fileErrors:i}))},style:{...qe[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+r.id,alt:r.name}):this.getFileIcon(o),m.createElement(Re,{component:"div",sx:qe[`itemName${this.state.viewType}`]},r.name),m.createElement(Re,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(r.size)),m.createElement(Re,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Zt&&this.props.expertMode?this.formatAcl(r.acl):null),m.createElement(Re,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Zt&&this.props.expertMode&&$D.getEditFile(o)?m.createElement(Ie,{"aria-label":"edit",onClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&En[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:o})},sx:qe.itemDeleteButtonTable,size:"large"},m.createElement(rv,{fontSize:"small"})):m.createElement(Re,{component:"div",sx:qe[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===Zt&&this.props.allowDownload?m.createElement(Re,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:qe.itemDownloadButtonTable,tabIndex:0,download:r.id,href:this.imagePrefix+r.id,onClick:a=>a.stopPropagation()},m.createElement(Pve,null)):null,this.state.viewType===Zt&&this.props.allowDelete&&r.id!=="vis.0/"&&r.id!=="vis-2.0/"&&r.id!==ps?m.createElement(Ie,{"aria-label":"delete",onClick:a=>{a.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:qe[`itemDeleteButton${this.state.viewType}`],size:"large"},m.createElement(Ta,{fontSize:"small"})):this.state.viewType===Zt&&this.props.allowDelete?m.createElement(Re,{component:"div",sx:qe[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(r){var n;if((n=this.state.folders)!=null&&n[r]){if(this.state.viewType===xS){const a=[];return r&&r!=="/"&&a.push(this.renderBackFolder()),this.state.folders[r].forEach(i=>{i.folder?a.push(this.renderFolder(i)):(!this.props.filterFiles||i.ext&&this.props.filterFiles.includes(i.ext))&&(!this.state.filterByType||i.ext&&En[this.state.filterByType].includes(i.ext))&&a.push(this.renderFile(i))}),a}const o=[];return this.state.folders[r].forEach(a=>{if(a.folder){const i=this.state.expanded.includes(a.id),s=this.renderFolder(a,i);if(Array.isArray(s)?s.forEach(l=>o.push(l)):o.push(s),this.state.folders[a.id]&&i){const l=this.renderItems(a.id);Array.isArray(l)?l.forEach(d=>o.push(d)):o.push(l)}}else(!this.props.filterFiles||a.ext&&this.props.filterFiles.includes(a.ext))&&(!this.state.filterByType||a.ext&&En[this.state.filterByType].includes(a.ext))&&o.push(this.renderFile(a))}),o}return m.createElement("div",{style:{position:"relative"}},m.createElement(pO,{key:r,color:"secondary",size:24}),m.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const r=this.props.showTypeSelector?Ng[this.state.filterByType||"all"]||Ng.all:null,n=this.findFirstFolder(this.state.selected);return m.createElement(af,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?m.createElement(Ie,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...qe.menuButton,...this.state.restrictToFolder?qe.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},m.createElement(xve,{fontSize:"small"})):null,this.props.showExpertButton?m.createElement(Ie,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...qe.menuButton,...this.state.expertMode?qe.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},m.createElement(w2,null)):null,this.props.showViewTypeButton?m.createElement(Ie,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:qe.menuButton,"aria-label":"view mode",onClick:()=>{const o=this.state.viewType===Zt?xS:Zt;this.localStorage.setItem("files.viewType",o);let a=this.state.selected;wS(a)&&(a=Gc(a)),this.setState({viewType:o,currentDir:a},()=>{this.state.viewType===Zt&&this.scrollToSelected()})},size:"small"},this.state.viewType!==Zt?m.createElement(Tve,{fontSize:"small"}):m.createElement(Uve,{fontSize:"small"})):null,m.createElement(Ie,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:qe.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"},m.createElement(wve,{fontSize:"small"})),m.createElement(Ie,{edge:"start",title:this.props.t("ra_Reload files"),style:qe.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},m.createElement(MO,{fontSize:"small"})),this.props.allowCreateFolder?m.createElement(Ie,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:qe.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},m.createElement(qH,{fontSize:"small"})):null,this.props.allowUpload?m.createElement(Ie,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:qe.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},m.createElement(Rv,{fontSize:"small"})):null,this.props.showTypeSelector&&r?m.createElement(Zr,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:qe.tooltip}}},m.createElement(Ie,{size:"small",onClick:o=>this.setState({showTypesMenu:o.target})},m.createElement(r,{fontSize:"small"}))):null,this.state.showTypesMenu?m.createElement(eu,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(Ng).map(o=>{const a=Ng[o];return m.createElement(Xt,{key:o,selected:this.state.filterByType===o,onClick:()=>{o==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",o),this.setState({filterByType:o,showTypesMenu:null}))}},m.createElement(ba,null,m.createElement(a,{fontSize:"small"})),m.createElement(_o,null,this.props.t(`ra_fileType_${o}`)))})):null,m.createElement(Zr,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:qe.tooltip}}},m.createElement(Ie,{color:"inherit",edge:"start",style:qe.menuButton,onClick:this.setStateBackgroundImage,size:"small"},m.createElement(VH,{fontSize:"small"}))),this.state.viewType!==Zt&&this.props.allowDelete?m.createElement(Zr,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:qe.tooltip}}},m.createElement("span",null,m.createElement(Ie,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===ps,color:"inherit",edge:"start",style:qe.menuButton,onClick:o=>{o.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},m.createElement(Ta,{fontSize:"small"})))):null)}findItem(r,n){if(n=n||this.state.folders,!n)return null;const o=r.split("/");o.pop();const a=o.join("/")||"/";return n[a]&&n[a].find(i=>i.id===r)||null}renderInputDialog(){if(this.state.addFolder){const r=this.findFirstFolder(this.state.selected);return r?m.createElement(Oyt,{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:n=>this.state.folders[r].find(o=>o.name===n)?"":this.props.t("ra_Duplicate name"),onClose:n=>{if(n){const o={};Object.keys(this.state.folders).forEach(l=>o[l]=this.state.folders[l]);const a=this.findItem(r),i=`${r}/${n}`;o[r].push({id:i,level:((a==null?void 0:a.level)||0)+1,name:n,folder:!0,temp:!0}),o[r].sort(fz),o[i]=[];const s=[...this.state.expanded];s.includes(r)||(s.push(r),s.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(s)),this.setState({addFolder:!1,folders:o,expanded:s},()=>this.select(i))}else this.setState({addFolder:!1})},replace:n=>n.replace(/[^-_\w]/,"_")}):(window.alert(this.props.t("ra_Invalid parent folder!")),null)}return null}componentDidUpdate(){this.setOpacityTimer&&clearTimeout(this.setOpacityTimer),this.setOpacityTimer=setTimeout(()=>{this.setOpacityTimer=null;const r=window.document.getElementsByClassName("browserItem");for(let n=0;nthis.setState({uploadFile:!1})},m.createElement(Ar,null)),m.createElement(s_,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:r=>{let n=r.length;r.forEach(o=>{const a=new FileReader;a.onabort=()=>console.log("file reading was aborted"),a.onerror=()=>console.log("file reading has failed"),a.onload=()=>{const i=this.findFirstFolder(this.state.selected);if(!i)window.alert(this.props.t("ra_Invalid parent folder!"));else{const s=`${i}/${o.name}`;this.uploadFile(s,a.result).then(()=>{--n||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const l=[...this.state.expanded];l.includes(i)||(l.push(i),l.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(l))),this.setState({expanded:l},()=>this.select(s))}else setTimeout(()=>this.browseFolder(i,null,!1,!0).then(l=>{const d=[...this.state.expanded];d.includes(i)||(d.push(i),d.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(d))),this.setState({folders:l,expanded:d},()=>this.select(s))}),500)})})}},a.readAsArrayBuffer(o)})}},({getRootProps:r,getInputProps:n})=>m.createElement("div",{style:{...qe.uploadDiv,...this.state.uploadFile==="dragging"?qe.uploadDivDragging:void 0},...r()},m.createElement("input",{...n()}),m.createElement(Re,{component:"div",sx:qe.uploadCenterDiv},m.createElement("div",{style:qe.uploadCenterTextAndIcon},m.createElement(Rv,{style:qe.uploadCenterIcon}),m.createElement("div",{style:qe.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(r){const n=this.findItem(r);if(n!=null&&n.folder)return(this.state.folders[r]?Promise.all(this.state.folders[r].map(i=>this.deleteRecursive(i.id))):Promise.resolve()).then(()=>{if(n.level>=1){const i=r.split("/"),s=i.shift();this.props.socket.deleteFolder(s||"",i.join("/")).then(()=>{const l=JSON.parse(JSON.stringify(this.state.folders));delete l[n.id];const d=Gc(n.id),h=l[d];if(h){const u=h.findIndex(f=>f.id===n.id);u!==-1&&h.splice(u,1),this.select(d,null,()=>this.setState({folders:l}))}})}});const o=r.split("/"),a=o.shift();return o.length?this.props.socket.deleteFile(a||"",o.join("/")).catch(i=>window.alert(`Cannot delete file: ${i}`)):Promise.resolve()}deleteItem(r){r=r||this.state.deleteItem,this.setState({deleteItem:""},()=>this.deleteRecursive(r).then(()=>{const n={},o=this.state.expanded.indexOf(r);if(o!==-1){const a=[...this.state.expanded];a.splice(o,1),this.localStorage.setItem("files.expanded",JSON.stringify(a)),n.expanded=a}if(this.state.selected===r){const a=this.state.selected.split("/");a.pop(),n.selected=a.join("/")}if(this.supportSubscribes)this.setState(n);else{const a=this.findFirstFolder(r),i={};Object.keys(this.state.folders).forEach(s=>{s!==a&&!s.startsWith(`${a}/`)&&(i[s]=this.state.folders[s])}),n.folders=i,this.setState(n,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],i).then(s=>this.setState({folders:s})).catch(s=>console.error(s))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?m.createElement(or,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},m.createElement(_r,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),m.createElement(Wr,null,m.createElement(Ds,null,this.props.t("ra_Are you sure?"))),m.createElement(pr,null,m.createElement(tt,{color:"grey",variant:"contained",onClick:()=>{this.suppressDeleteConfirm=Date.now()+6e4*5,this.deleteItem("")}},this.props.t("ra_Delete (no confirm for 5 mins)")),m.createElement(tt,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),m.createElement(tt,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){const r=this.props.FileViewer||Kyt;return this.state.viewer?m.createElement(r,{supportSubscribes:this.supportSubscribes,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile,themeType:this.props.themeType,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?m.createElement(eU,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(r){this.cacheFolders=this.cacheFolders||JSON.parse(JSON.stringify(this.state.folders));let n;r.forEach(o=>{const a=this.findItem(o.id,this.cacheFolders);a&&JSON.stringify(a.acl)!==JSON.stringify(o.acl)&&(a.acl=o.acl,n=!0)}),n&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const o=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:o})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let r=this.state.path;wS(this.state.path)&&(r=Gc(this.state.path)),new Promise(n=>{this.state.folders[r]?n(!0):this.browseFolder(r).then(o=>this.setState({folders:o},()=>n(!0))).catch(o=>this.setState({errorText:o===hz?this.props.t('ra_Cannot find "%s"',r):this.props.t('ra_Cannot read "%s"',r)}))}).then(n=>n&&this.setState({selected:this.state.path,currentDir:r,pathFocus:!1})).catch(n=>console.error(n))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const r=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),n=[];return m.createElement(Ase,{style:{paddingLeft:8,color:"#FFF"}},r.map((o,a)=>{o&&n.push(o);const i=n.join("/");return athis.changeFolder(s,i||"/")},o||this.props.t("ra_Root")):m.createElement("div",{style:qe.pathDivBreadcrumbSelected,key:`${this.state.selected}_${a}`,onClick:()=>this.setState({pathFocus:!0})},o)}))}renderPath(){return m.createElement(Re,{component:"div",key:"path",sx:qe.pathDiv},this.state.pathFocus?m.createElement(ya,{value:this.state.path,onKeyDown:r=>{r.key==="Enter"?this.changeToPath():r.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:m.createElement(Ie,{size:"small",onClick:()=>this.changeToPath()},m.createElement(Eve,null)),onBlur:()=>this.changeToPath(),onChange:r=>this.setState({path:r.target.value}),style:qe.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(r=>console.error(`Cannot load folders: ${r}`))})},300)),m.createElement("div",{style:{...qe.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===xS?this.renderPath():null,m.createElement("div",{style:{...qe.filesDiv,...qe[`filesDiv${this.state.viewType}`]},onClick:r=>{this.state.viewType!==Zt&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(r,this.state.currentDir||"/"):r.stopPropagation())},id:"dev",ref:this.refFileDiv},this.state.viewType===Zt?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==Zt?m.createElement("div",{style:qe.filesDivHint},this.props.t("ra_select_folder_hint")):null),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())):m.createElement(Zce,null)}}const Zyt=qs()($D),Qyt=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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 e_t(t){const e=document.createElement("div");e.innerHTML=t;const r=e.firstElementChild;return r!=null&&r.remove?r.remove():r&&e.removeChild(r),e.remove(),r}function t_t(t){const e={};if(!t)return e;for(let r,n=0;na[1].toUpperCase()),e[r]=t[n].value}return e}const _l=class _l extends A.Component{constructor(r){var n;super(r);X(this,"svg");this.state={svg:!!((n=this.props.src)!=null&&n.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(r,n){var i;const o={};let a=!1;return r&&n&&r.src!==n.src&&(o.src=r.src,o.svg=(i=r.src)==null?void 0:i.startsWith("data:"),o.created=!1,a=!0),r&&n&&r.color!==n.color&&(o.color=r.color,o.created=!1,a=!0),r&&n&&r.showError!==n.showError&&(o.showError=r.showError,a=!0),a?o:null}getSvgFromData(r){const n="data:image/svg+xml;base64,";if(!r.startsWith(n))return null;r=r.substring(n.length);try{r=atob(r);const o=e_t(r),a=o.innerHTML,i=t_t(o.attributes);return o.remove(),m.createElement("svg",{className:this.props.className,style:this.state.color?{color:this.state.color}:{},...i,dangerouslySetInnerHTML:{__html:a}})}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 m.createElement(CD,{className:this.props.className});if(_l.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let r=(this.props.imagePrefix||"")+this.state.src;return r.startsWith("./")?r=_l.REMOTE_PREFIX+r.substring(2):r.startsWith("/")||(r=_l.REMOTE_PREFIX+r),m.createElement("img",{className:this.props.className,src:`https://remote-files.iobroker.in${r}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return m.createElement("img",{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}};X(_l,"REMOTE_SERVER",window.location.hostname.includes("iobroker.in")),X(_l,"REMOTE_PREFIX",window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1));let mz=_l;class mV extends m.Component{constructor(){super(...arguments);X(this,"handleFileSelect",r=>{const n=r.target,o=n==null?void 0:n.files;if(!o||!o.length){console.error("No files found. Please report to developers");return}const a=o[0];if(a){const i=new window.FileReader;i.onload=()=>{var l;const s=((l=i.result)==null?void 0:l.toString())||"";try{const d=JSON.parse(s);d.native&&d.common?d.common.name!==this.props.common.name?this.props.onError&&this.props.onError(P.t("ra_otherConfig",d.common.name)):this.props.onLoad&&this.props.onLoad(d.native):this.props.onError&&this.props.onError(P.t("ra_invalidConfig"))}catch(d){this.props.onError&&this.props.onError(d==null?void 0:d.toString())}},i.readAsText(a)}else alert("Failed to open JSON File")})}static generateFile(r,n){const o=window.document.createElement("a");o.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(n,null,2))}`),o.setAttribute("download",r),o.style.display="none",window.document.body.appendChild(o),o.click(),window.document.body.removeChild(o)}download(){const r={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};r.common.news&&delete r.common.news,r.common.titleLang&&delete r.common.titleLang,r.common.desc&&delete r.common.desc,mV.generateFile(`${r._id}.json`,r)}upload(){const r=window.document.createElement("input");r.setAttribute("type","file"),r.setAttribute("id","files"),r.setAttribute("opacity","0"),r.addEventListener("change",this.handleFileSelect,!1),r.click()}render(){return m.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?m.createElement(xl,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?m.createElement(ro,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{const r=window.open(this.props.common.readme,"_blank");r==null||r.focus()}},m.createElement(GH,null)):null,m.createElement(ro,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:P.t("ra_Load configuration from file"),onClick:()=>this.upload()},m.createElement(Bve,null)),m.createElement(ro,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:P.t("ra_Save configuration to file"),onClick:()=>this.download()},m.createElement(Fve,null)))}}const r_t=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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"})),gV=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.createElement("g",{fill:"currentColor"},m.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),m.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),m.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),m.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),Di=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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"})),vV=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.createElement("g",{fill:"currentColor"},m.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),m.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),m.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),m.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),m.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),m.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),m.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),m.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),m.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),m.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),n_t=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",onClick:e=>t.onClick&&t.onClick(e),width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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"})),o_t=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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"}),m.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"})),gh=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),m.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"})),a_t=t=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 24 24",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},m.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"})),SS={root:{width:"100%",height:"100%"},overflowHidden:{overflow:"hidden"},container:{height:"100%"}};function i_t(t){var e;return m.createElement(zn,{elevation:Number.isNaN(t.elevation)?1:t.elevation,style:{...SS.root,...((e=t.styles)==null?void 0:e.root)||void 0,...t.overflow!=="visible"?SS.overflowHidden:void 0},onKeyDown:t.onKeyDown,tabIndex:t.tabIndex},m.createElement(ws,{container:!0,direction:"column",wrap:"nowrap",sx:SS.container},t.children))}const gz={root:{height:"100%",overflow:"hidden"},overflowAuto:{overflow:"auto"}};function s_t(t){return m.createElement(ws,{sx:{...gz.root,...(t==null?void 0:t.style)||void 0,...t.overflow==="auto"?gz.overflowAuto:void 0},ref:t.ref},t.children)}function l_t(t){return m.createElement(ws,{container:!0,alignItems:"center"},t.children)}const Xc=24,Rn=32,c_t=16,Yr=20,yV=t=>t==="dark"?"#62ff25":"#37c400",_V=t=>t==="dark"?"#ee56ff":"#a204b4",d_t=t=>t==="dark"?"#fff46e":"#b89101",bV=t=>"#ff6d69",wV=t=>"#5773ff",xV="#ff413c",SV="#86211f",S2="#57ff45",C2="#098c04",$2="#f3ad11",k2="#6c5008",Q={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:t=>({pl:1,height:Rn,lineHeight:`${Rn}px`,verticalAlign:"top",userSelect:"none",position:"relative",width:"100%","&:hover":{background:`${t.palette.mode==="dark"?t.palette.primary.dark:t.palette.primary.light} !important`,color:ue.invertColor(t.palette.primary.main,!0)},whiteSpace:"nowrap",flexWrap:"nowrap"}),tableRowLines:t=>({borderBottom:`1px solid ${t.palette.mode==="dark","#8888882e"}`,"& > div":{borderRight:`1px solid ${t.palette.mode==="dark","#8888882e"}`}}),tableRowNoDragging:{cursor:"pointer"},tableRowAlias:{height:Rn+10},tableRowAliasReadWrite:{height:Rn+22},tableRowFocused:t=>({"&:after":{content:'""',position:"absolute",top:1,left:1,right:1,bottom:1,border:t.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:Rn-4,height:Rn-4,mt:"2px",float:"right"},"&:hover .iconOwn":{display:"none"},"& *":{width:"initial"}},cellIdSpan:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},cellIdIconFolder:t=>({marginRight:8,width:Rn-4,height:Rn-4,cursor:"pointer",color:t.palette.secondary.main||"#fbff7d",verticalAlign:"top"}),cellIdIconDocument:{verticalAlign:"middle",marginLeft:(Rn-Yr)/2,marginRight:8,width:Yr,height:Yr},cellIdIconOwn:{},cellIdTooltip:{fontSize:14},cellIdTooltipLink:{color:"#7ec2fd","&:hover":{color:"#7ec2fd"},"&:visited":{color:"#7ec2fd"}},cellCopyButton:{width:Yr,height:Yr,top:(Rn-Yr)/2,opacity:.8,position:"absolute",right:3},cellCopyButtonInDetails:{width:Yr,height:Yr,top:(Rn-Yr)/2,opacity:.8},cellEditButton:{width:Yr,height:Yr,color:"white",position:"absolute",top:(Rn-Yr)/2,right:Yr+3,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:t=>({fontStyle:"italic",fontSize:12,opacity:.7,"&:hover":{color:t.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:Xc,height:Xc,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:Rn,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:Yr+4,height:Yr+4,"&:hover":{opacity:1},p:0,mt:"-2px"},cellButtonsEmptyButton:{fontSize:12},cellButtonMinWidth:{minWidth:40},cellButtonsButtonAlone:{ml:`${Yr+6}px`,pt:0,mt:"-2px"},cellButtonsButtonWithCustoms:t=>({color:t.palette.mode==="dark"?t.palette.primary.main:t.palette.secondary.main}),cellButtonsButtonWithoutCustoms:{opacity:.2},cellButtonsValueButton:t=>({position:"absolute",top:Yr/2-2,opacity:.7,width:Yr-2,height:Yr-2,color:t.palette.action.active,"&:hover":{opacity:1}}),cellButtonsValueButtonCopy:{right:8,cursor:"pointer"},cellButtonsValueButtonEdit:{right:Yr/2+16},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},selectNone:{opacity:.5},itemSelected:t=>({background:`${t.palette.primary.main} !important`,color:`${ue.invertColor(t.palette.primary.main,!0)} !important`}),header:{width:"100%"},headerCell:{display:"inline-block",verticalAlign:"top"},headerCellValue:{paddingTop:4,fontSize:16},headerCellInput:{width:"calc(100% - 5px)",height:Rn,pt:0,"& .itemIcon":{verticalAlign:"middle",width:Xc,height:Xc,display:"inline-block"}},headerCellSelectItem:{"& .itemIcon":{width:Xc,height:Xc,mr:"5px",display:"inline-block"}},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"},enumButton:{float:"right"},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"},selectClearButton:{position:"absolute",top:0,right:0,borderRadius:5,backgroundColor:"background.default"},iconDeviceConnected:t=>({color:t.palette.mode==="dark"?S2:C2,opacity:.8,position:"absolute",top:4,right:32,width:20}),iconDeviceDisconnected:t=>({color:t.palette.mode==="dark"?$2:k2,opacity:.8,position:"absolute",top:4,right:32,width:20}),iconDeviceError:t=>({color:t.palette.mode==="dark"?xV:SV,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:t=>({backgroundColor:t.palette.mode==="dark"?"#9a9a9a":"#565656",padding:"0 3px",borderRadius:"2px 0 0 2px"}),invertedBackgroundFlex:t=>({backgroundColor:t.palette.mode==="dark"?"#9a9a9a":"#565656",borderRadius:"0 2px 2px 0"}),contextMenuEdit:t=>({color:t.palette.mode==="dark"?"#ffee48":"#cbb801"}),contextMenuEditValue:t=>({color:t.palette.mode==="dark"?"#5dff45":"#1cd301"}),contextMenuView:t=>({color:t.palette.mode==="dark"?"#FFF":"#000"}),contextMenuCustom:t=>({color:t.palette.mode==="dark"?"#42eaff":"#01bbc2"}),contextMenuACL:t=>({color:t.palette.mode==="dark"?"#e079ff":"#500070"}),contextMenuRoom:t=>({color:t.palette.mode==="dark"?"#ff9a33":"#642a00"}),contextMenuRole:t=>({color:t.palette.mode==="dark"?"#ffdb43":"#562d00"}),contextMenuDelete:t=>({color:t.palette.mode==="dark"?"#ff4f4f":"#cf0000"}),contextMenuKeys:{marginLeft:8,opacity:.7,fontSize:"smaller"},contextMenuWithSubMenu:{display:"flex"}};function u_t(t){return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 436 436",style:t==null?void 0:t.style,width:"24",height:"24",className:"admin-button"},m.createElement("g",{fill:"currentColor"},m.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"}),m.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 p_t(t,e){const r=[];for(let n=0;n{if(o==null)return;const i=typeof o=="object";if(r&&i&&typeof o.en=="string"&&typeof o.de=="string"){n[a]=o.en;return}n[a]=i?E2(o,e,r):o}):h_t(t,(n,o,a)=>{if(o==null||e.includes(a))return;const i=typeof o=="object";if(r&&i&&typeof o.en=="string"&&typeof o.de=="string"){n[a]=o.en;return}n[a]=i?E2(o,e,r):o})}function vz(t,e,r){const n=document.createElement("a"),o=[];r.excludeSystemRepositories&&o.push("system.repositories");const a=o.length>0||r.excludeTranslations?E2(e,o,r.excludeTranslations):e,i=r.beautify?JSON.stringify(a,null,2):JSON.stringify(a);n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(i)}`),n.setAttribute("download",t),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}function uf(t,e,r,n){if(r=r||0,n===void 0&&(n=t.length-1,!n))return t[0]===e;const o=Math.floor((r+n)/2);return e===t[o]?!0:n-1===r?t[r]===e||t[n]===e:e>t[o]?uf(t,e,o,n):ek.role.startsWith(O))||(d=!0)):d=!0),!d&&((T=i.common)==null?void 0:T.custom)==="_"&&(k!=null&&k.custom))d=!0;else if(!d&&((E=i.common)!=null&&E.custom)&&(($=i.common)==null?void 0:$.custom)!=="_"){const O=i.common.custom;if(!(k!=null&&k.custom))d=!0;else if(O==="_dataSources")Object.keys(k.custom).find(M=>M.startsWith("history.")||M.startsWith("sql.")||M.startsWith("influxdb."))||(d=!0);else if(Array.isArray(O)){const M=Object.keys(k.custom);O.find(R=>M.find(j=>j.startsWith(R)))&&(d=!0)}else O!==!0&&!Object.keys(k.custom).find(M=>M.startsWith(O))&&(d=!0)}}!d&&!e.expertMode&&(d=h.id==="system"||h.id==="enum"||h.id.startsWith("system.")||h.id.startsWith("enum.")||h.id.startsWith("_design/")||h.id.endsWith(".admin")||!!(k!=null&&k.expert)),!d&&o.id&&(h.fID===void 0&&(h.fID=h.id.toLowerCase()),d=!h.fID.includes(o.id)),!d&&o.name&&(k?(h.fName===void 0&&(h.fName=k&&xo(k.name,r)||"",h.fName=h.fName.toLowerCase()),d=!h.fName.includes(o.name)):d=!0),!d&&e.role&&k&&(k?d=!(k.role&&k.role.startsWith(o.role)):d=!0),!d&&o.room&&(d=!o.room.find(O=>O===h.id||h.id.startsWith(`${O}.`))),!d&&o.func&&(d=!o.func.find(O=>O===h.id||h.id.startsWith(`${O}.`))),!d&&o.type&&(d=!(h.obj&&h.obj.type&&h.obj.type===o.type)),!d&&s&&(d=!(h.obj&&h.obj.type&&s.includes(h.obj.type))),!d&&o.custom&&(k?o.custom==="_"?d=!!k.custom:d=!k.custom||!k.custom[o.custom]:d=!0)}return h.visible=!d,h.hasVisibleChildren=!1,t.children&&l<20&&t.children.forEach(k=>{T2(k,e,r,n,o,a,i,s,l+1)&&(h.hasVisibleChildren=!0)}),h.sumVisibility=h.visible||h.hasVisibleChildren,a&&h.sumVisibility&&a.count++,h.id&&h.sumVisibility&&t.children&&t.children.forEach(k=>k.data.hasVisibleParent=!0),h.visible||h.hasVisibleChildren}function CV(t,e,r,n){var a;n=n||[];const o=t.data;return o.sumVisibility&&(o.id&&r[o.id]&&r[o.id].type===e&&n.push(o.id),(a=t.children)==null||a.forEach(i=>CV(i,e,r,n))),n}function yz(t,e,r,n,o,a){let i;return e==="alias"||e==="alias.0"?i=m.createElement(JH,{className:"iconOwn",style:{color:_V(n)}}):e==="0_userdata"||e==="0_userdata.0"?i=m.createElement(yve,{className:"iconOwn",style:{color:yV(n)}}):e.startsWith("_design/")||e==="system"?i=m.createElement(F5,{className:"iconOwn",style:{color:bV(n)}}):e==="system.adapter"?i=m.createElement(F5,{className:"iconOwn",style:{color:wV(n)}}):e==="system.group"?i=m.createElement(ZH,{className:"iconOwn"}):e==="system.user"?i=m.createElement(YH,{className:"iconOwn"}):e==="system.host"?i=m.createElement(KH,{className:"iconOwn"}):e.endsWith(".connection")||e.endsWith(".connected")?i=m.createElement(ch,{className:"iconOwn"}):e.endsWith(".info")?i=m.createElement(kve,{className:"iconOwn"}):t[e]&&t[e].type==="meta"?i=m.createElement(IO,{className:"iconOwn"}):r<2&&t[`system.adapter.${e}`]&&(i=Gv(t,`system.adapter.${e}`,o,a)),i||null}function $V(t,e){var r,n;return(n=(r=t==null?void 0:t.obj)==null?void 0:r.common)!=null&&n.desc&&xo(t.obj.common.desc,e)||null}function f_t(t,e){const r=$V(t,e);return r!=null&&r.startsWith("http")?m.createElement(Re,{component:"a",sx:Q.cellIdTooltipLink,href:r,target:"_blank",rel:"noreferrer"},r):m.createElement("span",{style:Q.cellIdTooltip},r||t.id||"")}function _z(t,e){var h,u,f,g,y,b,x,S,T;const r=e.imagePrefix||".";let n=Object.keys(t);n.sort((E,$)=>E===$?0:(E=E.replace(/\./g,"!!!"),$=$.replace(/\./g,"!!!"),E>$?1:-1)),e.root&&(n=n.filter(E=>E===e.root||E.startsWith(`${e.root}.`)));let o=[],a="",i=0;const s={data:{name:"",id:""},children:[]},l={funcEnums:[],roomEnums:[],roles:[],ids:[],types:[],objects:t,customs:["_"],enums:[],hasSomeCustoms:!1,aliasesMap:{}};let d=s;for(let E=0;EI.role===j)?l.roles.push({role:j,type:R.type}):$.startsWith("enum.rooms.")?(l.roomEnums.push($),l.enums.push($)):$.startsWith("enum.functions.")?(l.funcEnums.push($),l.enums.push($)):k.type==="enum"?l.enums.push($):k.type==="instance"&&R&&(R.supportCustoms||(h=R.adminUI)!=null&&h.custom)&&(l.hasSomeCustoms=!0,l.customs.push($.substring(15))),$.startsWith("alias.")&&((u=k.common.alias)!=null&&u.id))if(typeof k.common.alias.id=="string"){const I=k.common.alias.id;l.aliasesMap[I]?l.aliasesMap[I].includes($)||l.aliasesMap[I].push($):l.aliasesMap[I]=[$]}else{const I=k.common.alias.id.read;I&&(l.aliasesMap[I]?l.aliasesMap[I].includes($)||l.aliasesMap[I].push($):l.aliasesMap[I]=[$]);const z=k.common.alias.id.write;z&&(l.aliasesMap[z]?l.aliasesMap[z].includes($)||l.aliasesMap[z].push($):l.aliasesMap[z]=[$])}}l.ids.push($);let M;do if(M=!1,!a||$.startsWith(`${a}.`)){if(O.length-i>1){let j=a;for(let I=i;Iz.data.name===O[I]));else{const z={data:{name:O[I],parent:d,id:j,obj:t[j],level:I,icon:yz(t,j,I,e.themeType,e.lang,r),generated:!0}};d.children=d.children||[],d.children.push(z),d=z,l.ids.push(j)}}const R={data:{name:O[O.length-1],title:xo((f=k==null?void 0:k.common)==null?void 0:f.name,e.lang),obj:k,parent:d,icon:Gv(t,$,e.lang,r)||yz(t,$,0,e.themeType,e.lang,r),id:$,hasCustoms:!!((g=k.common)!=null&&g.custom&&Object.keys(k.common.custom).length),level:O.length-1,generated:!1,button:k.type==="state"&&!!((y=k.common)!=null&&y.role)&&typeof k.common.role=="string"&&k.common.role.startsWith("button")&&((b=k.common)==null?void 0:b.write)!==!1,switch:k.type==="state"&&((x=k.common)==null?void 0:x.type)==="boolean"&&((S=k.common)==null?void 0:S.write)!==!1&&((T=k.common)==null?void 0:T.read)!==!1}};d.children=d.children||[],d.children.push(R),d=R,i=O.length,o=O,a=$}else{let R=0;for(;o[R]===O[R];)R++;if(R>0){let j=o.length;for(o=o.splice(0,R),i=R,a=o.join(".");j>R;)d.data.parent?d=d.data.parent:console.error(`Parent is null for ${$} ${a} ${o.join(".")}`),j--}else d=s,o=[],a="",i=0;M=!0}while(M)}return l.roomEnums.sort((E,$)=>{var M,R,j,I;const k=xo((R=(M=t[E])==null?void 0:M.common)==null?void 0:R.name,e.lang)||E.split(".").pop(),O=xo((I=(j=t[$])==null?void 0:j.common)==null?void 0:I.name,e.lang)||$.split(".").pop();return k>O?1:k{var M,R,j,I;const k=xo((R=(M=t[E])==null?void 0:M.common)==null?void 0:R.name,e.lang)||E.split(".").pop(),O=xo((I=(j=t[$])==null?void 0:j.common)==null?void 0:I.name,e.lang)||$.split(".").pop();return k>O?1:kE.role.localeCompare($.role)),l.types.sort(),{info:l,root:s}}function kV(t,e,r,n,o){if(t.data.id===e)return t;if(r||(r=e.split("."),o=0,n=r[o]),!t.children&&t.data.id!==e)return null;let a;if(t.children)for(let i=0;in)break}return a?(o=o||0,kV(a,e,r,`${n}.${r[o+1]}`,o+1)):null}function EV(t,e,r,n){var i,s;if(!e)return{rooms:[],per:!1};n=n||[];for(const l of t.roomEnums){const d=(i=t.objects[l])==null?void 0:i.common;if(!d)continue;const h=xo(d.name,r);(s=d.members)!=null&&s.includes(e)&&!n.includes(h)&&n.push(h)}let o;const a=e.split(".");return a.pop(),e=a.join("."),t.objects[e]&&(o=n.length,EV(t,e,r,n)),{rooms:n,per:!o}}function Jc(t,e,r,n){var o,a;if(!e)return[];n=n||[];for(let i=0;i946681200&&d<9466812e5&&(d*=1e3),d=d&&new Date(d).toString();else h==="number"?Number.isInteger(d)||(d=Math.round(d*1e8)/1e8,n&&(d=d.toString().replace(".",","))):h==="object"?d=JSON.stringify(d):h!=="string"?d=d.toString():d.startsWith("data:image/")&&(l="image"),typeof d!="string"&&(d=d.toString());const u={v:d};i&&i[d]!==void 0&&d!==i[d]&&(u.s=d,d=i[d],u.v=d),s!=null&&s.unit&&(u.u=s.unit);let f;if(t.full&&(f=[{t:o.value,v:d}],r)){if(r.ack!==void 0&&r.ack!==null&&f.push({t:o.ack,v:r.ack.toString()}),r.ts&&f.push({t:o.ts,v:r.ts?ue.formatDate(new Date(r.ts),e):""}),r.lc&&f.push({t:o.lc,v:r.lc?ue.formatDate(new Date(r.lc),e):""}),r.from){let g=r.from.toString();g.startsWith("system.adapter.")&&(g=g.substring(15)),f.push({t:o.from,v:g})}if(r.user){let g=r.user.toString();g.startsWith("system.user.")&&(g=g.substring(12)),f.push({t:o.user,v:g})}r.c&&f.push({t:o.c,v:r.c}),f.push({t:o.quality,v:ue.quality2text(r.q||0).join(", "),nbr:!0})}return{valText:u,valFull:f,fileViewer:l}}function m_t(t){const{state:e}=t;return{color:e!=null&&e.ack?e.q?"#ffa500":"":"#ff2222c9"}}function g_t(t,e){let r=e,n=1;const o=[];for(;n=r)o.push(0);else if(n{this.contextMenu&&Date.now()-this.contextMenu.ts<2e3?(r.preventDefault(),this.setState({showContextMenu:{item:this.contextMenu.item,position:{left:r.clientX+2,top:r.clientY-6}}})):this.state.showContextMenu&&(r.preventDefault(),this.setState({showContextMenu:null})),this.contextMenu=null});X(this,"onStateChange",(r,n)=>{if(console.log(`> stateChange ${r}`),this.states[r]){const o=this.findItem(r);o!=null&&o.data.state&&(o.data.state=void 0)}n?this.states[r]=n:delete this.states[r],this.pausedSubscribes?this.statesUpdateTimer&&(clearTimeout(this.statesUpdateTimer),this.statesUpdateTimer=null):this.statesUpdateTimer||(this.statesUpdateTimer=setTimeout(()=>{this.statesUpdateTimer=null,this.forceUpdate()},300))});X(this,"onObjectChangeFromWorker",r=>{if(Array.isArray(r)){let n=null;r.forEach(o=>{const{newInnerState:a,filtered:i}=this.processOnObjectChangeElement(o.id,o.obj);i||(a&&n?Object.assign(n,a):n=a)}),n&&this.setState(n),this.afterObjectUpdated()}});X(this,"onObjectChange",(r,n)=>{const{newInnerState:o,filtered:a}=this.processOnObjectChangeElement(r,n);a||(o&&this.setState(o),this.afterObjectUpdated())});X(this,"getEnumsForId",r=>{const n=[];return this.info.enums.forEach(o=>{var a,i,s;if((s=(i=(a=this.objects[o])==null?void 0:a.common)==null?void 0:i.members)!=null&&s.includes(r)){const l={_id:this.objects[o]._id,common:JSON.parse(JSON.stringify(this.objects[o].common)),native:this.objects[o].native,type:"enum"};l.common&&(delete l.common.members,delete l.common.custom,delete l.common.mobile),n.push(l)}}),n.length?n:void 0});X(this,"_createAllEnums",async(r,n)=>{var o,a;for(let i=0;i{var o,a;const{t:r}=this.props;let n=[m.createElement("div",{key:1},r("ra_Only following structures of objects are available:")),m.createElement("div",{key:2},r("ra_Folder → State")),m.createElement("div",{key:3},r("ra_Folder → Channel → State")),m.createElement("div",{key:4},r("ra_Folder → Device → Channel → State")),m.createElement("div",{key:5},r("ra_Device → Channel → State")),m.createElement("div",{key:6},r("ra_Channel → State")),m.createElement("div",{key:7,style:{height:10}}),m.createElement("div",{key:8},r('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),m.createElement("div",{key:9},r('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){const i=this.state.selected[0]||this.state.selectedNonObject;if(!(i.split(".").length<2||this.objects[i]&&((o=this.objects[i])==null?void 0:o.type)==="state"))if(this.state.filter.expertMode)switch((a=this.objects[i])==null?void 0:a.type){case"device":n=[m.createElement("div",{key:1},r("ra_Only following structures of objects are available:")),m.createElement("div",{key:5},r("ra_Device → Channel → State")),m.createElement("div",{key:7,style:{height:10}}),m.createElement("div",{key:8},r('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),m.createElement("div",{key:9},r('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];break;case"folder":n=[m.createElement("div",{key:1},r("ra_Only following structures of objects are available:")),m.createElement("div",{key:2},r("ra_Folder → State")),m.createElement("div",{key:3},r("ra_Folder → Channel → State")),m.createElement("div",{key:4},r("ra_Folder → Device → Channel → State")),m.createElement("div",{key:7,style:{height:10}}),m.createElement("div",{key:8},r('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),m.createElement("div",{key:9},r('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];break;case"channel":n=[m.createElement("div",{key:1},r("ra_Only following structures of objects are available:")),m.createElement("div",{key:1},r("ra_Channel → State")),m.createElement("div",{key:7,style:{height:10}}),m.createElement("div",{key:8},r('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),m.createElement("div",{key:9},r('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))];break}else(i.startsWith("alias.0")||i.startsWith("0_userdata"))&&(n=[m.createElement("div",{key:1},r("ra_Only following structures of objects are available:")),m.createElement("div",{key:2},r("ra_Folder → State")),m.createElement("div",{key:3},r("ra_Folder → Channel → State")),m.createElement("div",{key:4},r("ra_Folder → Device → Channel → State")),m.createElement("div",{key:5},r("ra_Device → Channel → State")),m.createElement("div",{key:6},r("ra_Channel → State")),m.createElement("div",{key:7,style:{height:10}}),m.createElement("div",{key:7},r('ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".')),m.createElement("div",{key:8},r('ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").'))])}return n.length?n:r("ra_Add new child object to selected parent")});X(this,"renderTooltipAccessControl",r=>{if(!r)return null;const n=[{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"}],o=[],a=i=>{const s=r[i];n.forEach((l,d)=>{s&l.valueNum&&o.push(m.createElement("span",{key:i+d},this.texts[`acl${l.group}_${l.title}_${i}`],",",m.createElement("span",{style:i==="object"?Q.rightsObject:Q.rightsState},l.value)))})};return o.push(m.createElement("span",{key:"group"},`${this.texts.ownerGroup}: ${(r.ownerGroup||"").replace("system.group.","")}`)),o.push(m.createElement("span",{key:"owner"},`${this.texts.ownerUser}: ${(r.owner||"").replace("system.user.","")}`)),a("object"),r.state&&a("state"),o.length?m.createElement("span",{style:Q.tooltipAccessControl},o.map(i=>i)):null});X(this,"resizerMouseMove",r=>{if(this.resizerActiveDiv){let n,o;this.resizeLeft?(n=this.resizerOldWidth-r.clientX+this.resizerPosition,o=this.resizerOldWidthNext+r.clientX-this.resizerPosition):(n=this.resizerOldWidth+r.clientX-this.resizerPosition,o=this.resizerOldWidthNext-r.clientX+this.resizerPosition),this.resizerActiveName&&this.resizerNextName&&(!this.resizerMin||n>this.resizerMin)&&(!this.resizerNextMin||o>this.resizerNextMin)&&(this.resizerCurrentWidths[this.resizerActiveName]=n,this.resizerCurrentWidths[this.resizerNextName]=o,this.resizerActiveDiv.style.width=`${n}px`,this.resizerNextDiv&&(this.resizerNextDiv.style.width=`${o}px`),this.columnsVisibility[this.resizerActiveName]=n,this.columnsVisibility[this.resizerNextName]=o,this.resizerNextName==="nameHeader"?(this.columnsVisibility.name=o-this.state.scrollBarWidth,this.resizerCurrentWidths.name=o-this.state.scrollBarWidth):this.resizerActiveName==="nameHeader"&&(this.columnsVisibility.name=n-this.state.scrollBarWidth,this.resizerCurrentWidths.name=n-this.state.scrollBarWidth),this.customWidth=!0,this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=null,this.forceUpdate()},200))}});X(this,"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)});X(this,"resizerMouseDown",r=>{if(this.storedWidths=this.storedWidths||JSON.parse(JSON.stringify(Vr[this.props.width||"lg"])),this.resizerCurrentWidths=this.resizerCurrentWidths||{},this.resizerActiveDiv=r.target.parentNode,this.resizerActiveName=this.resizerActiveDiv.dataset.name||null,this.resizerActiveName){let n=0;if(r.target.dataset.left==="true"){this.resizeLeft=!0,this.resizerNextDiv=this.resizerActiveDiv.previousElementSibling;let o=this.resizerNextDiv.querySelector(".iob-ob-resize-handler");for(;this.resizerNextDiv&&!o&&n<10;)this.resizerNextDiv=this.resizerNextDiv.previousElementSibling,o=this.resizerNextDiv.querySelector(".iob-ob-resize-handler"),n++;(o==null?void 0:o.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=r.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)}});X(this,"resizerReset",()=>{this.customWidth=!1,Vr[this.props.width||"lg"]=JSON.parse(JSON.stringify(this.storedWidths)),this.calculateColumnsVisibility(),this.localStorage.removeItem(`${this.props.dialogName||"App"}.table`),this.forceUpdate()});const n=this.localStorage.getItem(`${r.dialogName||"App"}.objectSelected`)||"";if(this.selectFirst="",n.startsWith("["))try{const S=JSON.parse(n);this.selectFirst=S[0]||""}catch{}else this.selectFirst=n;let o;const a=this.localStorage.getItem(`${r.dialogName||"App"}.objectExpanded`)||"[]";try{o=JSON.parse(a)}catch{o=[]}let i;const s=r.defaultFilters?"":this.localStorage.getItem(`${r.dialogName||"App"}.objectFilter`)||"";if(s)try{i=JSON.parse(s)}catch{i={...Rg}}else r.defaultFilters&&typeof r.defaultFilters=="object"?i={...r.defaultFilters}:i={...Rg};if(i.expertMode=r.expertMode!==void 0?r.expertMode:(window._sessionStorage||window.sessionStorage).getItem("App.expertMode")==="true",this.tableRef=A.createRef(),this.filterRefs={},Object.keys(Rg).forEach(S=>this.filterRefs[S]=A.createRef()),this.visibleCols=r.columns||Vr[r.width||"lg"].fields,r.types&&r.types.length===1){const S=this.visibleCols.indexOf("type");S!==-1&&this.visibleCols.splice(S,1)}this.possibleCols=Vr.xl.fields;let l=null;if(r.router){const S=r.router.getLocation();S.id&&S.dialog==="customs"&&(l=[S.id],this.pauseSubscribe(!0))}let d;Array.isArray(r.selected)?d=r.selected:d=[r.selected||""],d=d.map(S=>S.replace(/["']/g,"")).filter(S=>S),this.selectFirst=d.length&&d[0]?d[0]:this.selectFirst;const h=this.localStorage.getItem(`${r.dialogName||"App"}.columns`);let u;try{u=h?JSON.parse(h):null}catch{u=null}let f=null;try{f=f?JSON.parse(f):{}}catch{f={}}this.imagePrefix=r.imagePrefix||".";let g;const y=this.localStorage.getItem(`${r.dialogName||"App"}.foldersFirst`);y==="false"?g=!1:y==="true"?g=!0:g=r.foldersFirst===void 0?!0:r.foldersFirst;let b=!1;try{b=this.props.objectStatesView&&JSON.parse(this.localStorage.getItem(`${r.dialogName||"App"}.objectStatesView`)||"")||!1}catch{}this.state={loaded:!1,foldersFirst:g,selected:d,selectedNonObject:this.localStorage.getItem(`${r.dialogName||"App"}.selectedNonObject`)||"",filter:i,filterKey:0,focused:this.localStorage.getItem(`${r.dialogName||"App"}.focused`)||"",depth:0,expandAllVisible:!1,expanded:o,toast:"",scrollBarWidth:16,customDialog:l,editObjectDialog:"",editObjectAlias:!1,viewFileDialog:"",showAliasEditor:"",enumDialog:null,roleDialog:null,statesView:b,columns:u,columnsForAdmin:null,columnsSelectorShow:!1,columnsAuto:this.localStorage.getItem(`${r.dialogName||"App"}.columnsAuto`)!=="false",columnsWidths:f,columnsDialogTransparent:100,columnsEditCustomDialog:null,customColumnDialogValueChanged:!1,showExportDialog:!1,showAllExportOptions:!1,linesEnabled:this.localStorage.getItem(`${r.dialogName||"App"}.lines`)==="true",showDescription:this.localStorage.getItem(`${r.dialogName||"App"}.desc`)!=="false",showContextMenu:null,noStatesByExportImport:!1,beautifyJsonExport:!0,excludeSystemRepositoriesFromExport:!0,excludeTranslations:!1,tooltipInfo:null,aliasMenu:""},this.texts={name:r.t("ra_Name"),categories:r.t("ra_Categories"),value:r.t("ra_tooltip_value"),ack:r.t("ra_tooltip_ack"),ts:r.t("ra_tooltip_ts"),lc:r.t("ra_tooltip_lc"),from:r.t("ra_tooltip_from"),user:r.t("ra_tooltip_user"),c:r.t("ra_tooltip_comment"),quality:r.t("ra_tooltip_quality"),editObject:r.t("ra_tooltip_editObject"),deleteObject:r.t("ra_tooltip_deleteObject"),customConfig:r.t("ra_tooltip_customConfig"),copyState:r.t("ra_tooltip_copyState"),editState:r.t("ra_tooltip_editState"),close:r.t("ra_Close"),filter_id:r.t("ra_filter_id"),filter_name:r.t("ra_filter_name"),filter_type:r.t("ra_filter_type"),filter_role:r.t("ra_filter_role"),filter_room:r.t("ra_filter_room"),filter_func:r.t("ra_filter_func"),filter_custom:r.t("ra_filter_customs"),filterCustomsWithout:r.t("ra_filter_customs_without"),objectChangedByUser:r.t("ra_object_changed_by_user"),objectChangedBy:r.t("ra_object_changed_by"),objectChangedFrom:r.t("ra_state_changed_from"),stateChangedBy:r.t("ra_state_changed_by"),stateChangedFrom:r.t("ra_state_changed_from"),ownerGroup:r.t("ra_Owner group"),ownerUser:r.t("ra_Owner user"),deviceError:r.t("ra_Error"),deviceDisconnected:r.t("ra_Disconnected"),deviceConnected:r.t("ra_Connected"),aclOwner_read_object:r.t("ra_aclOwner_read_object"),aclOwner_read_state:r.t("ra_aclOwner_read_state"),aclOwner_write_object:r.t("ra_aclOwner_write_object"),aclOwner_write_state:r.t("ra_aclOwner_write_state"),aclGroup_read_object:r.t("ra_aclGroup_read_object"),aclGroup_read_state:r.t("ra_aclGroup_read_state"),aclGroup_write_object:r.t("ra_aclGroup_write_object"),aclGroup_write_state:r.t("ra_aclGroup_write_state"),aclEveryone_read_object:r.t("ra_aclEveryone_read_object"),aclEveryone_read_state:r.t("ra_aclEveryone_read_state"),aclEveryone_write_object:r.t("ra_aclEveryone_write_object"),aclEveryone_write_state:r.t("ra_aclEveryone_write_state"),create:r.t("ra_Create"),createBooleanState:r.t("ra_create_boolean_state"),createNumberState:r.t("ra_create_number_state"),createStringState:r.t("ra_create_string_state"),createState:r.t("ra_create_state"),createChannel:r.t("ra_create_channel"),createDevice:r.t("ra_create_device"),createFolder:r.t("ra_Create folder")},this.levelPadding=r.levelPadding||c_t;const x=this.localStorage.getItem(`${this.props.dialogName||"App"}.table`);if(x)try{const S=JSON.parse(x),T=this.props.width||"lg";this.storedWidths=JSON.parse(JSON.stringify(Vr[T])),Object.keys(S).forEach(E=>{E==="id"?Vr[T].idWidth=S.id:E==="nameHeader"?Vr[T].widths.name=S[E]:Vr[T].widths[E]!==void 0&&(Vr[T].widths[E]=S[E])}),this.customWidth=!0}catch{}this.calculateColumnsVisibility()}async loadAllObjects(r){const n=this.props;try{await new Promise(d=>{this.setState({updating:!0},()=>d())});const o=(this.props.objectsWorker?await this.props.objectsWorker.getObjects(r):await n.socket.getObjects(r,!0))||{};if(n.types&&Oi.isWeb())for(let d=0;d{try{if(d(o[h]))this.objects[h]=o[h];else{const u=o[h]&&o[h].type;u&&(u==="channel"||u==="device"||u==="folder"||u==="adapter"||u==="instance")&&(this.objects[h]=o[h])}}catch(u){console.log(`Error by filtering of "${h}": ${u}`)}})}else if(n.types){this.objects={};const d=n.types;Object.keys(o).forEach(h=>{const u=o[h]&&o[h].type;u&&(u==="channel"||u==="device"||u==="enum"||u==="folder"||u==="adapter"||u==="instance"||d.includes(u))&&(this.objects[h]=o[h])})}else this.objects=o;n.setObjectsReference&&n.setObjectsReference(this.objects),this.defaultHistory=this.systemConfig.common.defaultHistory,this.defaultHistory&&n.socket.getState(`system.adapter.${this.defaultHistory}.alive`).then(d=>{(!d||!d.val)&&(this.defaultHistory="")}).catch(d=>window.alert(`Cannot get state: ${d}`));const a=await this.getAdditionalColumns();this.calculateColumnsVisibility(null,null,a);const{info:i,root:s}=_z(this.objects,{imagePrefix:this.props.imagePrefix,root:this.props.root,lang:this.props.lang,themeType:this.props.themeType});this.root=s,this.info=i;const l=this.state.selected&&this.state.selected.length&&kV(this.root,this.state.selected[0]);this.lastAppliedFilter=null,l&&!T2(l,this.state.filter,this.props.lang,this.objects,void 0,void 0,n.customFilter,n.types)?this.setState({filter:{...Rg},columnsForAdmin:a},()=>{this.setState({loaded:!0,updating:!1},()=>this.expandAllSelected(()=>this.onAfterSelect()))}):this.setState({loaded:!0,updating:!1,columnsForAdmin:a},()=>this.expandAllSelected(()=>this.onAfterSelect()))}catch(o){this.showError(o)}}static isNonExpertId(r){return!!dP(va,iy).find(n=>r.startsWith(n))}expandAllSelected(r){const n=[...this.state.expanded];let o=!1;this.state.selected.forEach(a=>{const i=a.split("."),s=[];for(let l=0;l{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,r)):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,r)):this.props.onSelect([],""))}static getDerivedStateFromProps(r,n){const o={};let a=!1;return r.expertMode!==void 0&&r.expertMode!==n.filter.expertMode&&(a=!0,o.filter={...n.filter},o.filter.expertMode=r.expertMode),a?o:null}async componentDidMount(){await this.loadAllObjects(!wz),this.props.objectsWorker?this.props.objectsWorker.registerHandler(this.onObjectChangeFromWorker):await this.props.socket.subscribeObject("*",this.onObjectChange),wz=!0,window.addEventListener("contextmenu",this.onContextMenu,!0)}componentWillUnmount(){this.filterTimer&&(clearTimeout(this.filterTimer),this.filterTimer=null),window.removeEventListener("contextmenu",this.onContextMenu,!0),this.props.objectsWorker?this.props.objectsWorker.unregisterHandler(this.onObjectChangeFromWorker,!0):this.props.socket.unsubscribeObject("*",this.onObjectChange).catch(r=>console.error(`Cannot unsubscribe *: ${r}`)),this.subscribes.forEach(r=>{console.log(`- unsubscribe ${r}`),this.props.socket.unsubscribeState(r,this.onStateChange)}),this.subscribes=[],this.objects={}}showDeleteDialog(r){var d,h;const{id:n,obj:o,item:a}=r,i=Object.keys(this.objects);i.sort();let s=0;const l=`${n}.`;for(let u=0;ul)break;this.props.onObjectDelete&&this.props.onObjectDelete(n,!!((d=a.children)!=null&&d.length),!((h=o.common)!=null&&h.dontDelete),s+1)}refreshComponent(){this.subscribes.forEach(r=>{console.log(`- unsubscribe ${r}`),this.props.socket.unsubscribeState(r,this.onStateChange)}),this.subscribes=[],this.loadAllObjects(!0).then(()=>console.log("updated!")).catch(r=>this.showError(r))}renderErrorDialog(){return this.state.error?m.createElement(or,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.setState({error:""}),"aria-labelledby":"error-dialog-title","aria-describedby":"error-dialog-description"},m.createElement(_r,{id:"alert-dialog-title"},this.props.t("ra_Error")),m.createElement(Wr,null,m.createElement(Ds,{id:"alert-dialog-description"},this.state.error)),m.createElement(pr,null,m.createElement(tt,{variant:"contained",onClick:()=>this.setState({error:""}),color:"primary",autoFocus:!0,startIcon:m.createElement(Ea,null)},this.props.t("ra_Ok")))):null}showError(r){this.setState({error:typeof r=="object"?r&&typeof r.toString=="function"?r.toString():JSON.stringify(r):r})}onSelect(r,n,o){if(this.localStorage.setItem(`${this.props.dialogName||"App"}.focused`,r),!this.props.multiSelect)this.objects[r]&&(!this.props.types||this.props.types.includes(this.objects[r].type))?(this.localStorage.removeItem(`${this.props.dialogName||"App"}.selectedNonObject`),this.state.selected[0]!==r?this.setState({selected:[r],selectedNonObject:"",focused:r},()=>{this.onAfterSelect(n),o&&o()}):n&&this.props.onSelect&&this.onAfterSelect(n)):(this.localStorage.setItem(`${this.props.dialogName||"App"}.selectedNonObject`,r),this.setState({selected:[],selectedNonObject:r,focused:r},()=>{this.onAfterSelect(),o&&o()}));else if(this.objects[r]&&(!this.props.types||this.props.types.includes(this.objects[r].type))){this.localStorage.removeItem(`${this.props.dialogName||"App"}.selectedNonObject`);const a=[...this.state.selected],i=a.indexOf(r);i===-1?(a.push(r),a.sort()):n||a.splice(i,1),this.setState({selected:a,selectedNonObject:"",focused:r},()=>{this.onAfterSelect(n),o&&o()})}}_renderDefinedList(r){const n=[...this.possibleCols];if(n.unshift("id"),this.props.columns&&!this.props.columns.includes("buttons")){const o=n.indexOf("buttons");o!==-1&&n.splice(o,1)}return n.filter(o=>r&&(o==="val"||o==="buttons")||!r&&o!=="val"&&o!=="buttons").map(o=>{var a;return m.createElement(Ev,{onClick:()=>{if(!this.state.columnsAuto&&o!=="id"){const i=[...this.state.columns||[]],s=i.indexOf(o);s===-1?(i.push(o),i.sort()):i.splice(s,1),this.localStorage.setItem(`${this.props.dialogName||"App"}.columns`,JSON.stringify(i)),this.calculateColumnsVisibility(null,i),this.setState({columns:i})}},key:o},m.createElement(yr,{edge:"start",disabled:o==="id"||this.state.columnsAuto,checked:o==="id"||!!(this.state.columnsAuto?this.visibleCols.includes(o):(a=this.state.columns)!=null&&a.includes(o)),disableRipple:!0}),m.createElement(_o,{primary:this.texts[`filter_${o}`]||this.props.t(`ra_${o}`)}))})}renderColumnsSelectorDialog(){return this.state.columnsSelectorShow?m.createElement(or,{onClose:()=>this.setState({columnsSelectorShow:!1}),open:!0,sx:{"& .MuiPaper-root":ue.getStyle(this.props.theme,Q.dialogColumns,Q[`transparent_${this.state.columnsDialogTransparent}`])}},m.createElement(_r,{sx:Q.fontSizeTitle},this.props.t("ra_Configure")),m.createElement(Wr,{sx:Q.fontSizeTitle},m.createElement(St,{style:Q.switchColumnAuto,control:m.createElement(ih,{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")}),m.createElement(St,{style:Q.switchColumnAuto,control:m.createElement(ih,{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")}),m.createElement(St,{style:Q.switchColumnAuto,control:m.createElement(ih,{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)")}),m.createElement(vu,null,this._renderDefinedList(!1),this.state.columnsForAdmin&&Object.keys(this.state.columnsForAdmin).sort().map(r=>this.state.columnsForAdmin&&this.state.columnsForAdmin[r].map(n=>{var o;return m.createElement(Ev,{onClick:()=>{if(!this.state.columnsAuto){const a=[...this.state.columns||[]],i=`_${r}_${n.path}`,s=a.indexOf(i);s===-1?(a.push(i),a.sort()):a.splice(s,1),this.calculateColumnsVisibility(null,a),this.localStorage.setItem(`${this.props.dialogName||"App"}.columns`,JSON.stringify(a)),this.setState({columns:a})}},key:`${r}_${n.name}`},m.createElement(ba,null,m.createElement(yr,{disabled:this.state.columnsAuto,edge:"start",checked:!this.state.columnsAuto&&((o=this.state.columns)==null?void 0:o.includes(`_${r}_${n.path}`)),disableRipple:!0})),m.createElement(_o,{primary:`${n.name} (${r})`}))})),this._renderDefinedList(!0))),m.createElement(pr,null,m.createElement(tt,{variant:"contained",onClick:()=>this.setState({columnsSelectorShow:!1}),color:"primary",startIcon:m.createElement(Ar,null)},this.texts.close))):null}async getAdditionalColumns(){try{const r=await this.props.socket.getAdapters();let n=null;return r.forEach(o=>n=this.parseObjectForAdmins(n,o)),n}catch(r){return console.error(`Cannot get adapters: ${r}`),null}}checkUnsubscribes(){for(let r=this.subscribes.length-1;r>=0;r--)this.recordStates.includes(this.subscribes[r])||this.unsubscribe(this.subscribes[r]);this.recordStates=[]}findItem(r,n,o,a){if(n=n||r.split("."),o=o||this.root,!o||!n.length)return null;if(a=(a?`${a}.`:"")+n.shift(),o.children){const i=o.children.find(s=>s.data.id===a);if(i){if(i.data.id===r)return i;if(n.length)return this.findItem(r,n,i,a)}else return null}return null}parseObjectForAdmins(r,n){if(n.common&&n.common.adminColumns&&n.common.name){const o=n.common.adminColumns;let a;o&&typeof o!="object"?a=[o]:o&&(a=o);let i;o?i=a.map(s=>{if(typeof s!="object")return{path:s,name:s.split(".").pop()};const l=s;return l.objTypes&&typeof l.objTypes!="object"?l.objTypes=[l.objTypes]:l.objTypes||(l.objTypes=void 0),!l.name&&l.path?{path:l.path,name:l.path.split(".").pop(),width:l.width,edit:!!l.edit,type:l.type,objTypes:l.objTypes}:l.path?{path:l.path,name:xo(l.name||"",this.props.lang),width:l.width,edit:!!l.edit,type:l.type,objTypes:l.objTypes}:(console.warn(`Admin columns for ${n._id} ignored, because path not found`),null)}).filter(s=>s):i=null,i&&i.length&&(r=r||{},r[n.common.name]=i.sort((s,l)=>s.path>l.path?-1:s.path{this.objectsUpdateTimer=null;const{info:r,root:n}=_z(this.objects,{imagePrefix:this.props.imagePrefix,root:this.props.root,lang:this.props.lang,themeType:this.props.themeType});this.root=n,this.info=r,this.lastAppliedFilter=null,this.pausedSubscribes||this.forceUpdate()},500))}updateAliases(r){var o,a,i;if(!this.objects||!((o=this.info)!=null&&o.aliasesMap)||!(r!=null&&r.startsWith("alias.")))return;const n=Object.keys(this.objects).filter(s=>s.startsWith("alias.0"));this.info.aliasesMap={};for(const s of n){const l=this.objects[s];if((i=(a=l==null?void 0:l.common)==null?void 0:a.alias)!=null&&i.id)if(typeof l.common.alias.id=="string"){const d=l.common.alias.id;this.info.aliasesMap[d]?this.info.aliasesMap[d].includes(s)||this.info.aliasesMap[d].push(s):this.info.aliasesMap[d]=[s]}else{const d=l.common.alias.id.read;d&&(this.info.aliasesMap[d]?this.info.aliasesMap[d].includes(s)||this.info.aliasesMap[d].push(s):this.info.aliasesMap[d]=[s]);const h=l.common.alias.id.write;h&&(this.info.aliasesMap[h]?this.info.aliasesMap[h].includes(s)||this.info.aliasesMap[h].push(s):this.info.aliasesMap[h]=[s])}}}processOnObjectChangeElement(r,n){console.log(`> objectChange ${r}`);const o=n==null?void 0:n.type;if(n&&typeof this.props.filterFunc=="function"&&!this.props.filterFunc(n)&&o!=="channel"&&o!=="device"&&o!=="folder"&&o!=="adapter"&&o!=="instance")return{newInnerState:null,filtered:!0};let a=null;if(r.startsWith("system.adapter.")&&(n==null?void 0:n.type)==="adapter"){const i=JSON.parse(JSON.stringify(this.state.columnsForAdmin));this.parseObjectForAdmins(i,n),JSON.stringify(this.state.columnsForAdmin)!==JSON.stringify(i)&&(a={columnsForAdmin:i})}return this.objects=this.objects||{},n?this.objects[r]=n:this.objects[r]&&delete this.objects[r],this.updateAliases(r),{newInnerState:a,filtered:!1}}subscribe(r){this.subscribes.includes(r)||(this.subscribes.push(r),console.log(`+ subscribe ${r}`),this.pausedSubscribes||this.props.socket.subscribeState(r,this.onStateChange).catch(n=>console.error(`Cannot subscribe on state ${r}: ${n}`)))}unsubscribe(r){const n=this.subscribes.indexOf(r);n!==-1&&(this.subscribes.splice(n,1),this.states[r]&&delete this.states[r],console.log(`- unsubscribe ${r}`),this.props.socket.unsubscribeState(r,this.onStateChange),this.pausedSubscribes&&console.warn("Unsubscribe during pause?"))}pauseSubscribe(r){!this.pausedSubscribes&&r?(this.pausedSubscribes=!0,this.subscribes.forEach(n=>this.props.socket.unsubscribeState(n,this.onStateChange))):this.pausedSubscribes&&!r&&(this.pausedSubscribes=!1,this.subscribes.forEach(n=>this.props.socket.subscribeState(n,this.onStateChange)))}onFilter(r,n){this.filterTimer=null;const o={...this.state.filter};Object.keys(this.filterRefs).forEach(a=>{if(this.filterRefs[a]&&this.filterRefs[a].current){const i=this.filterRefs[a].current;for(let s=0;sthis.props.onFilterChanged&&this.props.onFilterChanged(o)))}clearFilter(){const r={...this.state.filter};Object.keys(this.filterRefs).forEach(n=>{if(this.filterRefs[n]&&this.filterRefs[n].current){const o=this.filterRefs[n].current;for(let a=0;athis.props.onFilterChanged&&this.props.onFilterChanged(r)))}isFilterEmpty(){return!Object.keys(this.state.filter).find(n=>n!=="expertMode"&&this.state.filter[n])}getFilterInput(r){var n,o,a;return m.createElement(_a,{sx:this.styles.filterInput,key:`${r}_${this.state.filterKey}`,margin:"dense"},m.createElement(ya,{ref:this.filterRefs[r],classes:{underline:"no-underline"},id:r,placeholder:this.texts[`filter_${r}`],defaultValue:this.state.filter[r]||"",onChange:()=>{this.filterTimer&&clearTimeout(this.filterTimer),this.filterTimer=setTimeout(()=>this.onFilter(),400)},autoComplete:"off"}),(a=(o=(n=this.filterRefs[r])==null?void 0:n.current)==null?void 0:o.firstChild)!=null&&a.value?m.createElement("div",{style:{position:"absolute",right:0}},m.createElement(Ie,{size:"small",onClick:()=>{var i;((i=this.filterRefs[r].current)==null?void 0:i.firstChild).value="",this.onFilter(r,"")}},m.createElement(Ar,null))):null)}getFilterSelect(r,n){var a,i,s;const o=!!(n!=null&&n.find(l=>l.icon));return m.createElement("div",{style:{position:"relative"}},m.createElement(Bn,{variant:"standard",key:`${r}_${this.state.filterKey}`,ref:this.filterRefs[r],sx:Q.headerCellInput,className:"no-underline",onChange:()=>{this.filterTimer&&clearTimeout(this.filterTimer),this.filterTimer=setTimeout(()=>this.onFilter(),400)},defaultValue:this.state.filter[r]||"",inputProps:{name:r,id:r},displayEmpty:!0},m.createElement(Xt,{key:"empty",value:""},m.createElement("span",{style:Q.selectNone},this.texts[`filter_${r}`])),n==null?void 0:n.map(l=>{let d,h,u;return typeof l=="object"?(d=l.value,h=l.name,u=l.icon):(d=l,h=l),m.createElement(Xt,{sx:Q.headerCellSelectItem,key:d,value:d},u||(o?m.createElement("div",{className:"itemIcon"}):null),h)})),(s=(i=(a=this.filterRefs[r])==null?void 0:a.current)==null?void 0:i.childNodes[1])!=null&&s.value?m.createElement(Re,{component:"div",sx:Q.selectClearButton},m.createElement(Ie,{size:"small",onClick:()=>{var d;const l={...this.state.filter};l[r]="",((d=this.filterRefs[r].current)==null?void 0:d.childNodes[1]).value="",this.localStorage.setItem(`${this.props.dialogName||"App"}.objectFilter`,JSON.stringify(l)),this.setState({filter:l,filterKey:this.state.filterKey+1},()=>this.props.onFilterChanged&&this.props.onFilterChanged(l))}},m.createElement(Ar,null))):null)}getFilterSelectRole(){return this.getFilterSelect("role",this.info.roles.map(r=>r.role))}getFilterSelectRoom(){const r=this.info.roomEnums.map(n=>{var o,a,i,s;return{name:xo((a=(o=this.objects[n])==null?void 0:o.common)==null?void 0:a.name,this.props.lang)||n.split(".").pop(),value:n,icon:m.createElement(xl,{src:((s=(i=this.objects[n])==null?void 0:i.common)==null?void 0:s.icon)||"",style:Q.selectIcon})}});return this.getFilterSelect("room",r)}getFilterSelectFunction(){const r=this.info.funcEnums.map(n=>{var o,a,i,s;return{name:xo((a=(o=this.objects[n])==null?void 0:o.common)==null?void 0:a.name,this.props.lang)||n.split(".").pop(),value:n,icon:m.createElement(xl,{src:((s=(i=this.objects[n])==null?void 0:i.common)==null?void 0:s.icon)||"",style:Q.selectIcon})}});return this.getFilterSelect("func",r)}getFilterSelectType(){const r=this.info.types.map(n=>({name:n,value:n,icon:bz[n]||null}));return this.getFilterSelect("type",r)}getFilterSelectCustoms(){if(this.info.customs.length>1){const r=this.info.customs.map(n=>({name:n==="_"?this.texts.filterCustomsWithout:n,value:n,icon:n==="_"?null:m.createElement(xl,{src:Gv(this.objects,n,this.props.lang,this.imagePrefix)||"",style:Q.selectIcon})}));return this.getFilterSelect("custom",r)}return null}onExpandAll(r,n){var a;const o=r||this.root;n=n||[],(a=o==null?void 0:o.children)==null||a.forEach(i=>{i.data.sumVisibility&&(n.push(i.data.id),this.onExpandAll(i,n))}),o===this.root&&(n.sort(),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(n)),this.setState({expanded:n}))}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(r,n,o){var a;r=r||this.root,n>0&&((a=r.children)==null||a.forEach(i=>{i.data.sumVisibility&&(uf(o,i.data.id)||(o.push(i.data.id),o.sort()),n-1>0&&this.expandDepth(i,n-1,o))}))}static collapseDepth(r,n){return n.filter(o=>o.split(".").length<=r)}onExpandVisible(){if(this.state.depth<9){const r=this.state.depth+1,n=[...this.state.expanded];this.root&&this.expandDepth(this.root,r,n),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(n)),this.setState({depth:r,expanded:n})}}onStatesViewVisible(){const r=!this.state.statesView;this.localStorage.setItem(`${this.props.dialogName||"App"}.objectStatesView`,JSON.stringify(r)),this.setState({statesView:r})}onCollapseVisible(){if(this.state.depth>0){const r=this.state.depth-1,n=va.collapseDepth(r,this.state.expanded);this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(n)),this.setState({depth:r,expanded:n})}}async loadObjects(r){if(r)for(const n in r){if(!Object.prototype.hasOwnProperty.call(r,n)||!r[n])continue;const o=r[n];let a=null,i,s;o&&o.common&&o.common.enums?(a=o.common.enums,delete o.common.enums):a=null,(o.val||o.val===0)&&(i=o.val,delete o.val),o.ack!==void 0&&(s=o.ack,delete o.ack);try{if(await this.props.socket.setObject(n,o),a&&await this._createAllEnums(a,o._id),o.type==="state")if(i!=null)try{await this.props.socket.setState(o._id,i,s!==void 0?s:!0)}catch(l){window.alert(`Cannot set state "${o._id} with ${i}": ${l}`)}else try{const l=await this.props.socket.getState(o._id);if(!l||l.val===null)try{await this.props.socket.setState(o._id,!o.common||o.common.def===void 0?null:o.common.def,!0)}catch(d){window.alert(`Cannot set state "${o._id}": ${d}`)}}catch(l){window.alert(`Cannot read state "${o._id}": ${l}`)}}catch(l){window.alert(l)}}}_getSelectedIdsForExport(){if(this.state.selected.length||this.state.selectedNonObject){const r=[],n=Object.keys(this.objects);n.sort();const o=this.state.selected[0]||this.state.selectedNonObject,a=`${o}.`,i=a.length;for(let s=0;sa)break}return r}return[]}async _exportObjects(r){var i;if(r.isAll){vz("allObjects.json",this.objects,r);return}if(!(this.state.selected.length||this.state.selectedNonObject)){window.alert(this.props.t("ra_Save of objects-tree is not possible"));return}const n={},o=this.state.selected[0]||this.state.selectedNonObject,a=this._getSelectedIdsForExport();for(const s of a){if(n[s]=JSON.parse(JSON.stringify(this.objects[s])),((i=n[s])==null?void 0:i.type)==="state"&&!r.noStatesByExportImport){const l=await this.props.socket.getState(s);l&&(n[s].val=l.val,n[s].ack=l.ack)}if(n[s].common){const l=this.getEnumsForId(s);l&&(n[s].common.enums=l)}}vz(`${o}.json`,n,r)}renderExportDialog(){return this.state.showExportDialog===!1?null:m.createElement(or,{open:!0,maxWidth:"lg"},m.createElement(_r,null,this.props.t("ra_Select type of export")),m.createElement(Wr,null,m.createElement(Ds,null,this.state.filter.expertMode||this.state.showAllExportOptions?m.createElement(m.Fragment,null,this.props.t("ra_You can export all objects or just the selected branch."),m.createElement("br",null),this.props.t("ra_Selected %s object(s)",this.state.showExportDialog),m.createElement("br",null),m.createElement(St,{control:m.createElement(yr,{checked:this.state.noStatesByExportImport,onChange:r=>this.setState({noStatesByExportImport:r.target.checked})}),label:this.props.t("ra_Do not export values of states")}),m.createElement("br",null),this.props.t("These options can reduce the size of the export file:"),m.createElement(St,{control:m.createElement(yr,{checked:this.state.beautifyJsonExport,onChange:r=>this.setState({beautifyJsonExport:r.target.checked})}),label:this.props.t("Beautify JSON output")}),m.createElement("br",null),m.createElement(St,{control:m.createElement(yr,{checked:this.state.excludeSystemRepositoriesFromExport,onChange:r=>this.setState({excludeSystemRepositoriesFromExport:r.target.checked})}),label:this.props.t("Exclude system repositories from export JSON")}),m.createElement(St,{control:m.createElement(yr,{checked:this.state.excludeTranslations,onChange:r=>this.setState({excludeTranslations:r.target.checked})}),label:this.props.t("Exclude translations (except english) from export JSON")})):null)),m.createElement(pr,null,this.state.filter.expertMode||this.state.showAllExportOptions?m.createElement(tt,{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}))},m.createElement("span",{style:{marginRight:8}},this.props.t("ra_All objects")),"(",Object.keys(this.objects).length,")"):m.createElement(tt,{color:"grey",variant:"outlined",startIcon:m.createElement(w2,null),onClick:()=>this.setState({showAllExportOptions:!0})},this.props.t("ra_Advanced options")),m.createElement(tt,{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}))},m.createElement("span",{style:{marginRight:8}},this.props.t("ra_Only selected")),"(",this.state.showExportDialog,")"),m.createElement(tt,{color:"grey",variant:"contained",onClick:()=>this.setState({showExportDialog:!1,showAllExportOptions:!1}),startIcon:m.createElement(Ar,null)},this.props.t("ra_Cancel"))))}handleJsonUpload(r){var a;const n=r.target,o=((a=n.files)==null?void 0:a.length)&&n.files[0];if(o){const i=new FileReader;i.onload=async s=>{var d;const l=(d=s.target)==null?void 0:d.result;try{const h=JSON.parse(l),u=Object.keys(h).length,f=h._id;if(f===void 0&&u)await this.loadObjects(h),window.alert(this.props.t("ra_%s object(s) processed",u));else{if(!f)return window.alert(this.props.t("ra_Invalid structure"));try{let g,y,b;if(h.common.enums&&(g=h.common.enums,delete h.common.enums),h.val&&(y=h.val,delete h.val),h.ack!==void 0&&(b=h.ack,delete h.ack),await this.props.socket.setObject(h._id,h),h.type==="state")if(y!=null)await this.props.socket.setState(h._id,y,b===void 0?!0:b);else{const x=await this.props.socket.getState(h._id);(!x||x.val===null||x.val===void 0)&&await this.props.socket.setState(h._id,h.common.def===void 0?null:h.common.def,!0)}g&&await this._createAllEnums(g,h._id),window.alert(this.props.t("ra_%s was imported",h._id))}catch(g){window.alert(g)}}}catch(h){window.alert(h)}return null},i.readAsText(o)}else window.alert(this.props.t("ra_Failed to open JSON File"))}getToolbar(){let r=!1;if(this.state.selected.length||this.state.selectedNonObject){const n=this.state.selected[0]||this.state.selectedNonObject;n.split(".").length<2||this.objects[n]&&this.objects[n].type==="state"?r=!1:(this.state.filter.expertMode||n.startsWith("alias.0")||n.startsWith("0_userdata"))&&(r=!0)}return m.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center",overflowX:"auto"}},m.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center"}},m.createElement(Zr,{title:this.props.t("ra_Refresh tree"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement("div",null,m.createElement(Ie,{onClick:()=>this.refreshComponent(),disabled:this.state.updating,size:"large"},m.createElement(MO,null)))),this.props.showExpertButton&&!this.props.expertMode&&m.createElement(Zr,{title:this.props.t("ra_expertMode"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{key:"expertMode",color:this.state.filter.expertMode?"secondary":"default",onClick:()=>this.onFilter("expertMode",!this.state.filter.expertMode),size:"large"},m.createElement(w2,null))),!this.props.disableColumnSelector&&this.props.width!=="xs"&&m.createElement(Zr,{title:this.props.t("ra_Configure"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{key:"columnSelector",color:this.state.columnsAuto?"primary":"default",onClick:()=>this.setState({columnsSelectorShow:!0}),size:"large"},m.createElement(Hve,null))),this.props.width!=="xs"&&this.state.expandAllVisible&&m.createElement(Zr,{title:this.props.t("ra_Expand all nodes"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{key:"expandAll",onClick:()=>this.onExpandAll(),size:"large"},m.createElement(nv,null))),m.createElement(Zr,{title:this.props.t("ra_Collapse all nodes"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{key:"collapseAll",onClick:()=>this.onCollapseAll(),size:"large"},m.createElement(ru,null))),this.props.width!=="xs"&&m.createElement(Zr,{title:this.props.t("ra_Expand one step node"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{key:"expandVisible",color:"primary",onClick:()=>this.onExpandVisible(),size:"large"},m.createElement(vR,{badgeContent:this.state.depth,color:"secondary",sx:n=>({badge:{right:3,top:3,border:`2px solid ${n.palette.background.paper}`,padding:"0 4px"}})},m.createElement(nv,null)))),this.props.width!=="xs"&&m.createElement(Zr,{title:this.props.t("ra_Collapse one step node"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{key:"collapseVisible",color:"primary",onClick:()=>this.onCollapseVisible(),size:"large"},m.createElement(vR,{sx:n=>({badge:{right:3,top:3,border:`2px solid ${n.palette.background.paper}`,padding:"0 4px"}}),badgeContent:this.state.depth,color:"secondary"},m.createElement(ru,null)))),this.props.objectStatesView&&m.createElement(Zr,{title:this.props.t("ra_Toggle the states view"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{onClick:()=>this.onStatesViewVisible(),size:"large"},m.createElement(Dve,{color:this.state.statesView?"primary":"inherit"}))),m.createElement(Zr,{title:this.props.t("ra_Show/Hide object descriptions"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{onClick:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.desc`,this.state.showDescription?"false":"true"),this.setState({showDescription:!this.state.showDescription})},size:"large"},m.createElement(Lve,{color:this.state.showDescription?"primary":"inherit"}))),this.props.objectAddBoolean?m.createElement(Zr,{title:this.toolTipObjectCreating(),slotProps:{popper:{sx:Q.tooltip}}},m.createElement("div",null,m.createElement(Ie,{disabled:!r,onClick:()=>this.setState({modalNewObj:{id:this.state.selected[0]||this.state.selectedNonObject}}),size:"large"},m.createElement(Nv,null)))):null,this.props.objectImportExport&&m.createElement(Zr,{title:this.props.t("ra_Add objects tree from JSON file"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{onClick:()=>{const n=document.createElement("input");n.setAttribute("type","file"),n.setAttribute("id","files"),n.setAttribute("opacity","0"),n.addEventListener("change",o=>this.handleJsonUpload(o),!1),n.click()},size:"large"},m.createElement(Rv,null))),this.props.objectImportExport&&(!!this.state.selected.length||this.state.selectedNonObject)&&m.createElement(Zr,{title:this.props.t("ra_Save objects tree as JSON file"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{onClick:()=>this.setState({showExportDialog:this._getSelectedIdsForExport().length}),size:"large"},m.createElement(Rv,{style:{transform:"rotate(180deg)"}})))),!!this.props.objectBrowserEditObject&&this.props.width!=="xs"&&m.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(n=>this.info.objects[n].type==="state").length}`),this.props.objectEditBoolean&&m.createElement(Zr,{title:this.props.t("ra_Edit custom config"),slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{onClick:()=>{var o;const n=this.root?CV(this.root,"state",this.objects):[];n.length?(this.pauseSubscribe(!0),n.length===1&&(this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,this.state.selected[0]),(o=this.props.router)==null||o.doNavigate(null,"custom",this.state.selected[0])),this.setState({customDialog:n,customDialogAll:!0})):this.setState({toast:this.props.t("ra_please select object")})},size:"large"},m.createElement(fve,null))))}toggleExpanded(r){const n=JSON.parse(JSON.stringify(this.state.expanded)),o=n.indexOf(r);o===-1?(n.push(r),n.sort()):n.splice(o,1),this.localStorage.setItem(`${this.props.dialogName||"App"}.objectExpanded`,JSON.stringify(n)),this.setState({expanded:n})}onCopy(r,n){r.stopPropagation(),r.preventDefault(),n&&(ue.copyToClipboard(n),n.length<50?this.setState({toast:this.props.t("ra_Copied %s",n)}):this.setState({toast:this.props.t("ra_Copied")}))}renderColumnButtons(r,n){var s,l,d;if(!n.data.obj)return this.props.onObjectDelete||this.props.objectEditOfAccessControl?m.createElement("div",{style:Q.buttonDiv},this.state.filter.expertMode&&this.props.objectEditOfAccessControl?m.createElement(Ie,{sx:{...Q.cellButtonsButton,...Q.cellButtonsEmptyButton,...Q.cellButtonMinWidth},onClick:()=>this.setState({modalEditOfAccess:!0,modalEditOfAccessObjData:n.data}),size:"large"},m.createElement("div",{style:{height:15}},"---")):null,this.props.onObjectDelete&&n.children&&n.children.length?m.createElement(Ie,{sx:{...Q.cellButtonsButton,...Q.cellButtonsButtonAlone},size:"small","aria-label":"delete",title:this.texts.deleteObject,onClick:()=>{var g;const h=Object.keys(this.objects);h.sort();let u=0;const f=`${r}.`;for(let y=0;yf)break;this.props.onObjectDelete&&this.props.onObjectDelete(r,!!((g=n.children)!=null&&g.length),!1,u+1)}},m.createElement(Ta,{style:Q.cellButtonsButtonIcon})):null):null;n.data.aclTooltip=n.data.aclTooltip||this.renderTooltipAccessControl(n.data.obj.acl);const o=n.data.obj.acl?n.data.obj.type==="state"?n.data.obj.acl.state:n.data.obj.acl.object:0,a=n.data.obj.acl&&(n.data.obj.type==="state"?this.systemConfig.common.defaultNewAcl.state:this.systemConfig.common.defaultNewAcl.object),i=this.state.filter.expertMode||va.isNonExpertId(n.data.id);return[this.state.filter.expertMode&&this.props.objectEditOfAccessControl?m.createElement(Zr,{key:"acl",title:n.data.aclTooltip,slotProps:{popper:{sx:Q.tooltip}}},m.createElement(Ie,{sx:{...Q.cellButtonsButton,...Q.cellButtonMinWidth,opacity:1},onClick:()=>this.setState({modalEditOfAccess:!0,modalEditOfAccessObjData:n.data}),size:"large"},m.createElement("div",{style:Q.aclText},Number.isNaN(Number(o))?Number(a).toString(16):Number(o).toString(16)))):m.createElement("div",{key:"aclEmpty",style:Q.cellButtonMinWidth}),i?m.createElement(Ie,{key:"edit",sx:{marginRight:"2px",...Q.cellButtonsButton},size:"small","aria-label":"edit",title:this.texts.editObject,onClick:()=>{this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,r),this.setState({editObjectDialog:r,editObjectAlias:!1})}},m.createElement(rv,{style:Q.cellButtonsButtonIcon})):m.createElement(Re,{component:"div",key:"editDisabled",sx:Q.cellButtonsButton}),this.props.onObjectDelete&&((s=n.children)!=null&&s.length||!((l=n.data.obj.common)!=null&&l.dontDelete))?m.createElement(Ie,{key:"delete",sx:Q.cellButtonsButton,size:"small","aria-label":"delete",onClick:()=>{var g,y,b;const h=Object.keys(this.objects);h.sort();let u=0;const f=`${r}.`;for(let x=0;xf)break;this.props.onObjectDelete&&this.props.onObjectDelete(r,!!((g=n.children)!=null&&g.length),!((b=(y=n.data.obj)==null?void 0:y.common)!=null&&b.dontDelete),u)},title:this.texts.deleteObject},m.createElement(Ta,{style:Q.cellButtonsButtonIcon})):null,this.props.objectCustomDialog&&this.info.hasSomeCustoms&&n.data.obj.type==="state"&&((d=n.data.obj.common)==null?void 0:d.type)!=="file"?m.createElement(Ie,{sx:{...Q.cellButtonsButton,...n.data.hasCustoms?this.styles.cellButtonsButtonWithCustoms:Q.cellButtonsButtonWithoutCustoms},key:"custom",size:"small","aria-label":"config",title:this.texts.customConfig,onClick:()=>{var h;this.localStorage.setItem(`${this.props.dialogName||"App"}.objectSelected`,r),this.pauseSubscribe(!0),(h=this.props.router)==null||h.doNavigate(null,"customs",r),this.setState({customDialog:[r],customDialogAll:!1})}},m.createElement(l2,{style:Q.cellButtonsButtonIcon})):null]}readHistory(r){var n,o;if(window.sparkline&&this.defaultHistory&&((o=(n=this.objects[r])==null?void 0:n.common)!=null&&o.custom)&&this.objects[r].common.custom[this.defaultHistory]){const a=new Date;a.setHours(a.getHours()-24),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0);const i=a.getTime();this.props.socket.getHistory(r,{instance:this.defaultHistory,start:i,end:Date.now(),step:36e5,from:!1,ack:!1,q:!1,addId:!1,aggregate:"minmax"}).then(s=>{const l=window.document.getElementsByClassName("sparkline");for(let d=0;dconsole.warn(`Cannot read history: ${s}`))}}getTooltipInfo(r,n){var d,h;const o=this.objects[r],a=this.states[r],{valFull:i,fileViewer:s}=CS({state:a,obj:o,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}),l=[];i==null||i.forEach(u=>{u.t===this.texts.quality&&a.q?(l.push(m.createElement("div",{style:Q.cellValueTooltipBoth,key:u.t},u.t,": ",u.v)),u.nbr||l.push(m.createElement("br",{key:`${u.t}_br`}))):(l.push(m.createElement("div",{style:Q.cellValueTooltipTitle,key:u.t},u.t,": ")),l.push(m.createElement("div",{style:Q.cellValueTooltipValue,key:`${u.t}_v`},u.v)),u.nbr||l.push(m.createElement("br",{key:`${u.t}_br`})))}),s==="image"?l.push(m.createElement("img",{style:Q.cellValueTooltipImage,src:a.val,alt:r})):this.defaultHistory&&((h=(d=this.objects[r])==null?void 0:d.common)!=null&&h.custom)&&this.objects[r].common.custom[this.defaultHistory]&&l.push(m.createElement("svg",{key:"sparkline",className:"sparkline","data-id":r,style:{fill:"#3d85de"},width:"200",height:"30",strokeWidth:"3"})),this.setState({tooltipInfo:{el:l,id:r}},()=>n&&n())}renderColumnValue(r,n,o){var d,h;const a=n.data.obj;if(!a||!this.states)return null;if(((d=a.common)==null?void 0:d.type)==="file")return m.createElement(Re,{component:"div",sx:{...Q.cellValueText,...Q.cellValueFile}},"[file]");if(!this.states[r])return a.type==="state"&&(this.recordStates.includes(r)||this.recordStates.push(r),this.states[r]={val:null},this.subscribe(r)),null;this.recordStates.includes(r)||this.recordStates.push(r);const i=this.states[r];let s=n.data.state;if(!s){const{valText:u}=CS({state:i,obj:a,texts:this.texts,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma}),f=[];n.data.state={valTextRx:f};const g=u.v||"";f.push(m.createElement("span",{className:`newValueBrowser-${this.props.themeType||"light"}`,key:`${u.v.toString()}valText`,style:{whiteSpace:"nowrap",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}},u.v.toString())),u.u&&f.push(m.createElement("span",{className:`newValueBrowser-${this.props.themeType||"light"}`,style:Q.cellValueTextUnit,key:`${u.v.toString()}unit`},u.u)),u.s!==void 0&&f.push(m.createElement("span",{style:Q.cellValueTextState,className:`newValueBrowser-${this.props.themeType||"light"}`,key:`${u.v.toString()}states`},"(",u.s,")")),o||f.push(m.createElement(Di,{className:"copyButton",style:this.styles.iconCopy,onClick:y=>this.onCopy(y,g),key:"cc"})),s=n.data.state}s.style=m_t({state:i,isExpertMode:this.state.filter.expertMode,isButton:n.data.button});let l=s.valTextRx;return this.state.filter.expertMode||(n.data.button?l=[m.createElement(u_t,{key:"button",style:{color:s.style.color,...Q.cellValueButton}})]:n.data.switch&&(l=[m.createElement(ih,{key:"switch",sx:{"& .MuiSwitch-thumb":{color:s.style.color},"& .MuiSwitch-track":{backgroundColor:this.states[r].val&&this.state.selected.includes(r)?this.props.themeType==="dark"?"#FFF !important":"#111 !important":void 0}},checked:!!this.states[r].val})])),m.createElement(Zr,{key:"value",title:(h=this.state.tooltipInfo)==null?void 0:h.el,slotProps:{popper:{sx:Q.cellValueTooltipBox},tooltip:{sx:Q.cellValueTooltip}},onOpen:()=>this.getTooltipInfo(r,()=>this.readHistory(r)),onClose:()=>{var u;return((u=this.state.tooltipInfo)==null?void 0:u.id)===r&&this.setState({tooltipInfo:null})}},m.createElement(Re,{component:"div",style:s.style,sx:{...Q.cellValueText,height:o?void 0:Rn,"& .admin-button:active":{transform:"translate(0, 2px)"}}},l))}_syncEnum(r,n,o,a){var l,d,h;if(!n||!n.length){a&&a();return}const i=n.pop()||"",s=[];if((l=this.info.objects[i])!=null&&l.common){if((d=this.info.objects[i].common.members)!=null&&d.length){const u=this.info.objects[i].common.members.indexOf(r);if(u!==-1&&!o.includes(i)){const f=JSON.parse(JSON.stringify(this.info.objects[i]));f.common.members.splice(u,1),s.push(this.props.socket.setObject(i,f).then(()=>this.info.objects[i]=f).catch(g=>this.showError(g)))}}if(o.includes(i)&&!((h=this.info.objects[i].common.members)!=null&&h.includes(r))){const u=JSON.parse(JSON.stringify(this.info.objects[i]));u.common.members=u.common.members||[],u.common.members.push(r),u.common.members.sort(),s.push(this.props.socket.setObject(i,u).then(()=>this.info.objects[i]=u).catch(f=>this.showError(f)))}}Promise.all(s).then(()=>{setTimeout(()=>this._syncEnum(r,n,o,a),0)})}syncEnum(r,n,o){const a=[...this.info[n==="func"?"funcEnums":"roomEnums"]];return new Promise(i=>{this._syncEnum(r,a,o,()=>{i()})})}renderEnumDialog(){if(!this.state.enumDialog)return null;const r=this.state.enumDialog.type,n=this.state.enumDialog.item,o=this.state.enumDialogEnums,a=this.state.enumDialog.enumsOriginal,i=(r==="room"?this.info.roomEnums:this.info.funcEnums).map(s=>{var l,d;return{name:xo(((d=(l=this.objects[s])==null?void 0:l.common)==null?void 0:d.name)||s.split(".").pop()||"",this.props.lang),value:s,icon:Gv(this.objects,s,this.props.lang,this.imagePrefix)}}).sort((s,l)=>s.name>l.name?1:-1);return i.forEach(s=>{s.icon&&typeof s.icon=="string"&&(s.icon=m.createElement(Re,{style:Q.enumIconDiv},m.createElement("img",{src:s.icon,style:Q.enumIcon,alt:s.name})))}),m.createElement(or,{sx:{"& .MuiPaper-root":Q.enumDialog},onClose:()=>this.setState({enumDialog:null}),"aria-labelledby":"enum-dialog-title",open:!0},m.createElement(_r,{id:"enum-dialog-title"},r==="func"?this.props.t("ra_Define functions"):this.props.t("ra_Define rooms"),m.createElement(ro,{sx:Q.enumButton,color:"primary",disabled:a===JSON.stringify(o),size:"small",onClick:()=>this.syncEnum(n.data.id,r,o).then(()=>this.setState({enumDialog:null,enumDialogEnums:null}))},m.createElement(Ea,null))),m.createElement(vu,{sx:{"&.MuiList-root":Q.enumList}},i.map(s=>{let l,d,h;typeof s=="object"?(l=s.value,d=s.name,h=s.icon):(l=s,d=s);const u=`checkbox-list-label-${l}`;return m.createElement(of,{sx:Q.headerCellSelectItem,key:l,onClick:()=>{const f=o.indexOf(l),g=JSON.parse(JSON.stringify(this.state.enumDialogEnums));f===-1?(g.push(l),g.sort()):g.splice(f,1),this.setState({enumDialogEnums:g})},secondaryAction:h},m.createElement(ba,{sx:{"&.MuiListItemIcon-root":Q.enumCheckbox}},m.createElement(yr,{edge:"start",checked:o.includes(l),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":u}})),m.createElement(_o,{id:u},d))})))}renderEditRoleDialog(){var r,n;if(!this.state.roleDialog||!this.props.objectBrowserEditRole)return null;if(this.state.roleDialog&&this.props.objectBrowserEditRole){const o=this.props.objectBrowserEditRole;return m.createElement(o,{key:"objectBrowserEditRole",id:this.state.roleDialog,socket:this.props.socket,t:this.props.t,roleArray:this.info.roles,commonType:(n=(r=this.info.objects[this.state.roleDialog])==null?void 0:r.common)==null?void 0:n.type,onClose:a=>{a&&(this.info.objects[this.state.roleDialog]=a),this.setState({roleDialog:null})}})}return null}onColumnsEditCustomDialogClose(r){var o,a;const n=this.customColumnDialog;if(r){let i=n.value;n.type==="boolean"?i=i==="true"||i===!0:n.type==="number"&&(i=parseFloat(i)),this.customColumnDialog=null,this.props.socket.getObject(((a=(o=this.state.columnsEditCustomDialog)==null?void 0:o.obj)==null?void 0:a._id)||"").then(s=>{var l;if(s&&va.setCustomValue(s,(l=this.state.columnsEditCustomDialog)==null?void 0:l.it,i))return this.props.socket.setObject(s._id,s);throw new Error(this.props.t("ra_Cannot update attribute, because not found in the object"))}).then(()=>this.setState({columnsEditCustomDialog:null})).catch(s=>this.showError(s))}else this.customColumnDialog=null,this.setState({columnsEditCustomDialog:null})}renderColumnsEditCustomDialog(){if(!this.state.columnsEditCustomDialog)return null;if(!this.customColumnDialog){const r=va.getCustomValue(this.state.columnsEditCustomDialog.obj,this.state.columnsEditCustomDialog.it);this.customColumnDialog={type:this.state.columnsEditCustomDialog.it.type||typeof r,initValue:(r??"").toString(),value:(r??"").toString()}}return m.createElement(or,{onClose:()=>this.setState({columnsEditCustomDialog:null}),maxWidth:"md","aria-labelledby":"custom-dialog-title",open:!0},m.createElement(_r,{id:"custom-dialog-title"},`${this.props.t("ra_Edit object field")}: ${this.state.columnsEditCustomDialog.obj._id}`),m.createElement(Wr,null,m.createElement(Ds,{id:"alert-dialog-description"},this.customColumnDialog.type==="boolean"?m.createElement(St,{control:m.createElement(yr,{onKeyUp:r=>r.key==="Enter"&&this.onColumnsEditCustomDialogClose(!0),defaultChecked:this.customColumnDialog.value==="true",onChange:r=>{const n=this.customColumnDialog;n.value=r.target.checked.toString();const o=n.value!==n.initValue;o===!this.state.customColumnDialogValueChanged&&this.setState({customColumnDialogValueChanged:o})}}),label:`${this.state.columnsEditCustomDialog.it.name} (${this.state.columnsEditCustomDialog.it.pathText})`}):m.createElement(Ht,{variant:"standard",defaultValue:this.customColumnDialog.value,fullWidth:!0,onKeyUp:r=>r.key==="Enter"&&this.onColumnsEditCustomDialogClose(!0),label:`${this.state.columnsEditCustomDialog.it.name} (${this.state.columnsEditCustomDialog.it.pathText})`,onChange:r=>{const n=this.customColumnDialog;n.value=r.target.value;const o=n.value!==n.initValue;o===!this.state.customColumnDialogValueChanged&&this.setState({customColumnDialogValueChanged:o})},autoFocus:!0}))),m.createElement(pr,null,m.createElement(tt,{variant:"contained",onClick:()=>this.onColumnsEditCustomDialogClose(!0),disabled:!this.state.customColumnDialogValueChanged,color:"primary",startIcon:m.createElement(Ea,null)},this.props.t("ra_Update")),m.createElement(tt,{color:"grey",variant:"contained",onClick:()=>this.onColumnsEditCustomDialogClose(),startIcon:m.createElement(Ar,null)},this.props.t("ra_Cancel"))))}static getCustomValue(r,n){var o;if((o=r==null?void 0:r._id)!=null&&o.startsWith(`${n.adapter}.`)&&n.path.length>1){const a=n.path;let i;const s=r;if(s[a[0]]&&typeof s[a[0]]=="object")return a.length===2?i=s[a[0]][a[1]]:a.length===3?i=s[a[0]][a[1]]&&typeof s[a[0]][a[1]]=="object"?s[a[0]][a[1]][a[2]]:null:a.length===4?i=s[a[0]][a[1]]&&typeof s[a[0]][a[1]]=="object"&&s[a[0]][a[1]][a[2]]?s[a[0]][a[1]][a[2]][a[3]]:null:a.length===5?i=s[a[0]][a[1]]&&typeof s[a[0]][a[1]]=="object"&&s[a[0]][a[1]][a[2]]&&s[a[0]][a[1]][a[2]][a[3]]?s[a[0]][a[1]][a[2]][a[3]][a[4]]:null:a.length===6&&(i=s[a[0]][a[1]]&&typeof s[a[0]][a[1]]=="object"&&s[a[0]][a[1]][a[2]]&&s[a[0]][a[1]][a[2]][a[3]]&&s[a[0]][a[1]][a[2]][a[3]][a[4]]?s[a[0]][a[1]][a[2]][a[3]][a[4]][a[5]]:null),i??null}return null}static setCustomValue(r,n,o){var a;if((a=r==null?void 0:r._id)!=null&&a.startsWith(`${n.adapter}.`)&&n.path.length>1){const i=n.path,s=r;if(s[i[0]]&&typeof s[i[0]]=="object"){if(i.length===2)return s[i[0]][i[1]]=o,!0;if(i.length===3){if(s[i[0]][i[1]]&&typeof s[i[0]][i[1]]=="object")return s[i[0]][i[1]][i[2]]=o,!0}else if(i.length===4){if(s[i[0]][i[1]]&&typeof s[i[0]][i[1]]=="object"&&s[i[0]][i[1]][i[2]]&&typeof s[i[0]][i[1]][i[2]]=="object")return s[i[0]][i[1]][i[2]][i[3]]=o,!0}else if(i.length===5){if(s[i[0]][i[1]]&&typeof s[i[0]][i[1]]=="object"&&s[i[0]][i[1]][i[2]]&&typeof s[i[0]][i[1]][i[2]]=="object"&&s[i[0]][i[1]][i[2]][i[3]]&&typeof s[i[0]][i[1]][i[2]][i[3]]=="object")return s[i[0]][i[1]][i[2]][i[3]][i[4]]=o,!0}else if(i.length===6&&s[i[0]][i[1]]&&typeof s[i[0]][i[1]]=="object"&&s[i[0]][i[1]][i[2]]&&typeof s[i[0]][i[1]][i[2]]=="object"&&s[i[0]][i[1]][i[2]][i[3]]&&typeof s[i[0]][i[1]][i[2]][i[3]]=="object"&&s[i[0]][i[1]][i[2]][i[3]][i[4]]&&typeof s[i[0]][i[1]][i[2]][i[3]][i[4]]=="object")return s[i[0]][i[1]][i[2]][i[3]][i[4]][i[5]]=o,!0}}return!1}renderCustomValue(r,n,o){const a=va.getCustomValue(r,n);return a!=null?n.edit&&!this.props.notEditable&&(!n.objTypes||n.objTypes.includes(r.type))?m.createElement(Re,{component:"div",style:{...Q.columnCustom,...Q.columnCustomEditable,...Q[`columnCustom_${n.align}`]},onClick:()=>this.setState({columnsEditCustomDialog:{item:o,it:n,obj:r},customColumnDialogValueChanged:!1})},a):m.createElement(Re,{component:"div",style:{...Q.columnCustom,...Q[`columnCustom_${n.align}`]}},a):null}renderAliasLink(r,n,o){const a=n||0,i=this.objects[this.info.aliasesMap[r][a]].common.alias.id;return i?m.createElement(Re,{component:"div",onClick:s=>{s.stopPropagation(),s.preventDefault();const l=this.info.aliasesMap[r][a];this.info.aliasesMap[r].length>1&&this.setState({aliasMenu:""}),this.onSelect(l),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(l)),100)},sx:o||this.styles.aliasAlone},m.createElement("span",{className:"admin-browser-arrow"},typeof i=="string"||i.read===r&&i.write===r?"↔":i.read===r?"→":"←"),this.info.aliasesMap[r][a]):null}renderLeaf(r,n,o){var K,he,fe,ge,Ee,ze,Ne,Fe,Pe,Ye,Be,Ke,Xe,ve;const a=r.data.id;o.count++,n=n===void 0?this.state.expanded.includes(a):n;let i;const s=r.data.obj,l=s==null?void 0:s.type;r.children||l==="folder"||l==="device"||l==="channel"||l==="meta"?i=n?m.createElement(nv,{style:this.styles.cellIdIconFolder,onClick:()=>this.toggleExpanded(a)}):m.createElement(ru,{style:this.styles.cellIdIconFolder,onClick:()=>this.toggleExpanded(a)}):s&&s.common&&s.common.write===!1&&s.type==="state"?i=m.createElement(o_t,{style:this.styles.cellIdIconDocument}):i=m.createElement(n_t,{style:this.styles.cellIdIconDocument});let d=null;r.data.icon&&(typeof r.data.icon=="string"?r.data.icon.length<3?d=m.createElement("span",{className:"iconOwn",style:Q.cellIdIconOwn},r.data.icon):d=m.createElement(xl,{style:Q.cellIdIconOwn,className:"iconOwn",src:r.data.icon,alt:""}):d=r.data.icon);const h=s==null?void 0:s.common,u=(s==null?void 0:s.type)&&bz[s.type]||m.createElement("div",{className:"itemIcon"}),f=this.levelPadding*(r.data.level||0);if(r.data.lang!==this.props.lang){const{rooms:le,per:re}=EV(this.info,a,this.props.lang);r.data.rooms=le.join(", "),r.data.per=re;const{funcs:He,pef:Ve}=TV(this.info,a,this.props.lang);r.data.funcs=He.join(", "),r.data.pef=Ve,r.data.lang=this.props.lang}const g=this.props.multiSelect&&this.objects[a]&&(!this.props.types||this.props.types.includes(this.objects[a].type))?m.createElement(yr,{style:Q.checkBox,checked:this.state.selected.includes(a)}):null;let y=!this.props.notEditable&&l==="state"&&(this.state.filter.expertMode||(h==null?void 0:h.write)!==!1);this.props.objectBrowserViewFile&&(h==null?void 0:h.type)==="file"&&(y=!0);const b=!this.props.notEditable&&this.objects[a]&&(this.state.filter.expertMode||l==="state"||l==="channel"||l==="device"),x=this.state.statesView&&(l==="state"||l==="channel"||l==="device");let S="";const T=[];if(x&&(S=(K=this.states[a])==null?void 0:K.from,S===void 0?S=" ":(S=S?S.replace(/^system\.adapter\.|^system\./,""):"",T.push(`${this.texts.stateChangedFrom} ${S}`)),s!=null&&s.user)){const le=s.user.replace("system.user.","");S+=`/${le}`,T.push(`${this.texts.stateChangedBy} ${le}`)}s&&(s.from&&T.push(`${this.texts.objectChangedFrom} ${s.from.replace(/^system\.adapter\.|^system\./,"")}`),s.user&&T.push(`${this.texts.objectChangedBy} ${s.user.replace(/^system\.user\./,"")}`),s.ts&&T.push(`${this.texts.objectChangedByUser} ${ue.formatDate(new Date(s.ts),this.props.dateFormat||this.systemConfig.common.dateFormat)}`));let E=!1,$=null;a.startsWith("alias.")&&((he=h==null?void 0:h.alias)!=null&&he.id)?(E=typeof h.alias.id=="object",E?$=m.createElement("div",{style:Q.cellIdAliasReadWriteDiv},h.alias.id.read?m.createElement(Re,{component:"div",onClick:le=>{le.stopPropagation(),le.preventDefault(),this.onSelect(h.alias.id.read),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(h.alias.id.read)),100)},sx:this.styles.aliasReadWrite},"←",h.alias.id.read):null,h.alias.id.write?m.createElement(Re,{component:"div",onClick:le=>{le.stopPropagation(),le.preventDefault(),this.onSelect(h.alias.id.write),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(h.alias.id.write)),100)},sx:this.styles.aliasReadWrite},"→",h.alias.id.write):null):$=m.createElement(Re,{component:"div",onClick:le=>{le.stopPropagation(),le.preventDefault(),this.onSelect(h.alias.id),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(h.alias.id)),100)},sx:this.styles.aliasAlone},"→",h.alias.id)):this.info.aliasesMap[a]&&(this.info.aliasesMap[a].length>1?$=m.createElement(Re,{component:"div",id:`alias_${a}`,onClick:le=>{le.stopPropagation(),le.preventDefault(),this.setState({aliasMenu:a})},sx:this.styles.aliasAlone},this.props.t("ra_%s links from aliases",this.info.aliasesMap[a].length)):$=this.renderAliasLink(a,0));let k=h==null?void 0:h.color,O;if(k&&!this.state.selected.includes(a)){const le=this.props.themeName==="dark"?"#1f1f1f":this.props.themeName==="blue"?"#222a2e":"#FFFFFF";ue.colorDistance(k,le)<1e3&&(O=this.props.themeType==="dark"?"#9a9a9a":"#565656")}let M=!1;a==="0_userdata"?(k=yV(this.props.themeType),M=!0):a==="alias"?(k=_V(this.props.themeType),M=!0):a==="javascript"?(k=d_t(this.props.themeType),M=!0):a==="system"?(k=bV(this.props.themeType),M=!0):a==="system.adapter"?k=wV(this.props.themeType):(!k||this.state.selected.includes(a))&&(k="inherit");const R=[];if(h!=null&&h.statusStates){const le={};Object.keys(h.statusStates).forEach(He=>{var at;let Ve=h.statusStates[He];Ve.split(".").length<3&&(Ve=`${a}.${Ve}`),le[He]=Ve,this.states[Ve]?this.recordStates.includes(Ve)||this.recordStates.push(Ve):((at=this.objects[Ve])==null?void 0:at.type)==="state"&&(this.recordStates.includes(Ve)||this.recordStates.push(Ve),this.states[Ve]={val:null},this.subscribe(Ve))});let re=!1;h.statusStates.errorId&&this.states[le.errorId]&&this.states[le.errorId].val&&(k=this.props.themeType==="dark"?xV:SV,re=!0,R.push(m.createElement(_ve,{key:"error",style:this.styles.iconDeviceError}))),le.onlineId&&this.states[le.onlineId]?re?this.states[le.onlineId].val?R.push(m.createElement(ch,{key:"conn",style:this.styles.iconDeviceConnected})):R.push(m.createElement(kg,{key:"disc",style:this.styles.iconDeviceDisconnected})):this.states[le.onlineId].val?(k=this.props.themeType==="dark"?S2:C2,R.push(m.createElement(ch,{key:"conn",style:this.styles.iconDeviceConnected}))):(k=this.props.themeType==="dark"?$2:k2,R.push(m.createElement(kg,{key:"disc",style:this.styles.iconDeviceDisconnected}))):le.offlineId&&this.states[le.offlineId]&&(re?this.states[le.offlineId].val?R.push(m.createElement(kg,{key:"disc",style:this.styles.iconDeviceDisconnected})):R.push(m.createElement(ch,{key:"conn",style:this.styles.iconDeviceConnected})):this.states[le.offlineId].val?(k=this.props.themeType==="dark"?$2:k2,R.push(m.createElement(kg,{key:"disc",style:this.styles.iconDeviceDisconnected}))):(k=this.props.themeType==="dark"?S2:C2,R.push(m.createElement(ch,{key:"conn",style:this.styles.iconDeviceConnected}))))}const j=x?ue.quality2text(((fe=this.states[a])==null?void 0:fe.q)||0).join(", "):null;let I=((ge=r.data)==null?void 0:ge.title)||"",z=!1;if(this.state.showDescription){const le=$V(r.data,this.props.lang);le&&(I=[m.createElement("div",{key:"name",style:Q.cellNameDivDiv},I),m.createElement("div",{key:"desc",style:Q.cellDescription},le)],z=!!le)}const W=this.props.width==="xs"&&this.state.focused===a,L=m.createElement(ws,{container:!0,wrap:"nowrap",direction:"row",sx:Q.cellId,style:{width:this.columnsVisibility.id,paddingLeft:f}},m.createElement(ws,{container:!0,alignItems:"center"},g,i),m.createElement(ws,{style:{...Q.cellIdSpan,...O?this.styles.invertedBackground:void 0,color:k,fontWeight:M?"bold":void 0}},m.createElement(Zr,{title:f_t(r.data,this.props.lang),slotProps:{popper:{sx:Q.tooltip}}},m.createElement("div",null,r.data.name)),$,R),m.createElement("div",{style:{...Q.grow,...O?this.styles.invertedBackgroundFlex:{}}}),m.createElement(ws,{container:!0,alignItems:"center"},d),this.props.width!=="xs"?m.createElement("div",null,m.createElement(Di,{className:W?"":"copyButton",style:Q.cellCopyButton,onClick:le=>this.onCopy(le,a)})):null);let F=W&&I||this.columnsVisibility.name?m.createElement(Re,{component:"div",sx:{...Q.cellName,...z?Q.cellNameWithDesc:void 0,width:this.props.width!=="xs"?this.columnsVisibility.name:void 0,ml:W?0:"5px"}},I,!W&&((Ee=r.data)!=null&&Ee.title)?m.createElement(Re,{style:{color:k}},m.createElement(Di,{className:"copyButton",style:Q.cellCopyButton,onClick:le=>{var re;return this.onCopy(le,(re=r.data)==null?void 0:re.title)}})):null):null,H;this.state.statesView?H=[W&&x&&((ze=this.states[a])!=null&&ze.from)||this.columnsVisibility.changedFrom?{el:m.createElement("div",{key:"from",style:{...Q.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.changedFrom:void 0},title:T.join(` +`)},x&&((Ne=this.states[a])!=null&&Ne.from)?S:null),type:"from"}:null,W&&j||this.columnsVisibility.qualityCode?{el:m.createElement("div",{key:"q",style:{...Q.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.qualityCode:void 0},title:j||""},j),type:"quality"}:null,W&&x&&((Fe=this.states[a])!=null&&Fe.ts)||this.columnsVisibility.timestamp?{el:m.createElement("div",{key:"ts",style:{...Q.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.timestamp:void 0}},x&&((Pe=this.states[a])!=null&&Pe.ts)?ue.formatDate(new Date(this.states[a].ts),this.props.dateFormat||this.systemConfig.common.dateFormat):null),type:"ts"}:null,W&&x&&((Ye=this.states[a])!=null&&Ye.lc)||this.columnsVisibility.lastChange?{el:m.createElement("div",{key:"lc",style:{...Q.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.lastChange:void 0}},x&&((Be=this.states[a])!=null&&Be.lc)?ue.formatDate(new Date(this.states[a].lc),this.props.dateFormat||this.systemConfig.common.dateFormat):null),type:"lc"}:null]:H=[W&&(s!=null&&s.type)||this.columnsVisibility.type?{el:m.createElement("div",{key:"type",style:{...Q.cellType,width:this.props.width!=="xs"?this.columnsVisibility.type:void 0}},u," ",s==null?void 0:s.type),type:"filter_type"}:null,W&&h||this.columnsVisibility.role?{el:m.createElement("div",{key:"role",style:{...Q.cellRole,width:this.props.width!=="xs"?this.columnsVisibility.role:"100%",cursor:this.state.filter.expertMode&&b&&this.props.objectBrowserEditRole?"text":"default"},onClick:!W&&this.state.filter.expertMode&&b&&this.props.objectBrowserEditRole?()=>this.setState({roleDialog:r.data.id}):void 0},h==null?void 0:h.role),type:"filter_role",onClick:W&&this.state.filter.expertMode&&b&&this.props.objectBrowserEditRole?()=>this.setState({roleDialog:r.data.id}):void 0}:null,W&&h||this.columnsVisibility.room?{el:m.createElement("div",{key:"room",style:{...Q.cellRoom,...r.data.per?Q.cellEnumParent:{},width:this.props.width!=="xs"?this.columnsVisibility.room:"100%",cursor:b?"text":"default"},onClick:!W&&b?()=>{const le=Jc(this.info,r.data.id,"roomEnums");this.setState({enumDialogEnums:le,enumDialog:{item:r,type:"room",enumsOriginal:JSON.stringify(le)}})}:void 0},r.data.rooms),type:"filter_room",onClick:W&&b?()=>{const le=Jc(this.info,r.data.id,"roomEnums");this.setState({enumDialogEnums:le,enumDialog:{item:r,type:"room",enumsOriginal:JSON.stringify(le)}})}:void 0}:null,W&&h||this.columnsVisibility.func?{el:m.createElement("div",{key:"func",style:{...Q.cellFunc,...r.data.pef?Q.cellEnumParent:{},width:this.props.width!=="xs"?this.columnsVisibility.func:"100%",cursor:b?"text":"default"},onClick:!W&&b?()=>{const le=Jc(this.info,r.data.id,"funcEnums");this.setState({enumDialogEnums:le,enumDialog:{item:r,type:"func",enumsOriginal:JSON.stringify(le)}})}:void 0},r.data.funcs),type:"filter_func",onClick:W&&b?()=>{const le=Jc(this.info,r.data.id,"funcEnums");this.setState({enumDialogEnums:le,enumDialog:{item:r,type:"func",enumsOriginal:JSON.stringify(le)}})}:void 0}:null];let q=((Ke=this.adapterColumns)==null?void 0:Ke.map(le=>m.createElement("div",{style:{...Q.cellAdapter,width:this.props.width!=="xs"?this.columnsVisibility[le.id]:void 0},key:le.id,title:`${le.adapter} => ${le.pathText}`},s?this.renderCustomValue(s,le,r):null)))||null;const ee=W||this.columnsVisibility.val?this.renderColumnValue(a,r,W):null;let Y=W&&ee||this.columnsVisibility.val?m.createElement("div",{style:{...Q.cellValue,width:this.props.width!=="xs"?this.columnsVisibility.val:"calc(100% - 100px)",cursor:y?(h==null?void 0:h.type)==="file"?"zoom-in":r.data.button?"grab":"text":"default"},onClick:y?()=>{!s||!this.states||((h==null?void 0:h.type)==="file"?this.setState({viewFileDialog:a}):!this.state.filter.expertMode&&r.data.button?this.props.socket.setState(a,!0).catch(le=>window.alert(`Cannot write state "${a}": ${le}`)):!this.state.filter.expertMode&&r.data.switch?this.props.socket.setState(a,!this.states[a].val).catch(le=>window.alert(`Cannot write state "${a}": ${le}`)):(this.edit={val:this.states[a]?this.states[a].val:"",q:this.states[a]&&this.states[a].q||0,ack:!1,id:a},this.setState({updateOpened:!0})))}:void 0},ee):null,G=W||this.columnsVisibility.buttons?m.createElement("div",{style:{...Q.cellButtons,width:this.props.width!=="xs"?this.columnsVisibility.buttons:void 0}},this.renderColumnButtons(a,r)):null,te=null;if(this.props.width==="xs"&&this.state.focused===a){H=H.filter(re=>re);let le;H.length?le=H.map(re=>re?m.createElement("div",{key:re.type,style:Q.cellDetailsLine},m.createElement("span",{style:Q.cellDetailsName},this.texts[re.type],":"),re.el,m.createElement("div",{style:{flexGrow:1}}),re.onClick?m.createElement(rv,{style:Q.cellCopyButtonInDetails,onClick:()=>{re!=null&&re.onClick&&re.onClick()}}):null):null):le=null,q.length||(q=null),te=m.createElement(zn,{style:{width:"100%",display:"flex",flexDirection:"column",padding:10,backgroundColor:this.props.theme.palette.mode==="dark"?"#333":"#ccc"}},m.createElement("div",{style:Q.cellDetailsLine},m.createElement("div",{style:{flexGrow:1}}),m.createElement(Di,{style:Q.cellCopyButtonInDetails,onClick:re=>this.onCopy(re,a)})),F&&m.createElement("div",{style:Q.cellDetailsLine},m.createElement("span",{style:Q.cellDetailsName},this.texts.name,":"),F,m.createElement("div",{style:{flexGrow:1}}),(Xe=r.data)!=null&&Xe.title?m.createElement(Di,{className:"copyButton",style:Q.cellCopyButtonInDetails,onClick:re=>{var He;return this.onCopy(re,(He=r.data)==null?void 0:He.title)}}):null),le,q&&m.createElement("div",{style:Q.cellDetailsLine},q),((ve=this.objects[a])==null?void 0:ve.type)==="state"&&m.createElement("div",{style:Q.cellDetailsLine},m.createElement("span",{style:Q.cellDetailsName},this.texts.value,":"),Y,m.createElement("div",{style:{flexGrow:1}}),m.createElement(Di,{className:"copyButton",style:Q.cellCopyButtonInDetails,onClick:re=>{const{valText:He}=CS({state:this.states[a],obj:this.objects[a],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(re,He.v.toString())},key:"cc"})),G&&m.createElement("div",{style:{...Q.cellDetailsLine,justifyContent:"right"}},G)),F=null,H=null,q=null,Y=null,G=null}return{row:m.createElement(ws,{container:!0,direction:"row",wrap:"nowrap",sx:ue.getStyle(this.props.theme,Q.tableRow,this.state.linesEnabled&&Q.tableRowLines,!this.props.dragEnabled&&Q.tableRowNoDragging,$&&Q.tableRowAlias,E&&Q.tableRowAliasReadWrite,this.state.focused===a&&this.props.multiSelect&&Q.tableRowFocused,!r.data.visible&&Q.filteredOut,r.data.hasVisibleParent&&!r.data.visible&&!r.data.hasVisibleChildren&&Q.filteredParentOut,this.state.selected.includes(a)&&Q.itemSelected,this.state.selectedNonObject===a&&Q.itemSelected),key:a,id:a,onMouseDown:le=>{this.onSelect(a);let re;"which"in le?re=le.which===3:"button"in le&&(re=le.button===2),re?this.contextMenu={item:r,ts:Date.now()}:this.contextMenu=null},onDoubleClick:()=>{r.children?this.toggleExpanded(a):this.onSelect(a,!0)}},L,F,H==null?void 0:H.map(le=>le==null?void 0:le.el),q,Y,G),details:te}}renderItem(r,n,o){const a=[];o=o||{count:0};const i=this.renderLeaf(r,n,o);let s;const l=this.props.DragWrapper;return this.props.dragEnabled&&l?r.data.sumVisibility?s=m.createElement(l,{key:r.data.id,item:r,style:Q.draggable},i.row):s=m.createElement("div",{key:r.data.id,style:Q.nonDraggable},i.row):s=i.row,r.data.id&&s&&a.push(s),i.details&&a.push(i.details),n=n===void 0?uf(this.state.expanded,r.data.id):n,(!r.data.id||n)&&(this.state.foldersFirst?r.children&&(a.push(r.children.map(d=>d.children&&(!this.state.columnsSelectorShow||o.count<15)&&d.data.sumVisibility?this.renderItem(d,void 0,o):null)),a.push(r.children.map(d=>!d.children&&(!this.state.columnsSelectorShow||o.count<15)&&d.data.sumVisibility?this.renderItem(d,void 0,o):null))):r.children&&a.push(r.children.map(d=>(!this.state.columnsSelectorShow||o.count<15)&&d.data.sumVisibility?this.renderItem(d,void 0,o):null))),a}calculateColumnsVisibility(r,n,o,a){let i=a||this.state.columnsWidths;const s=o||this.state.columnsForAdmin,l=n||this.state.columns||[],d=typeof r!="boolean"?this.state.columnsAuto:r;i=JSON.parse(JSON.stringify(i)),Object.keys(i).forEach(u=>{i[u]&&(i[u]=parseInt(i[u],10)||0)}),this.adapterColumns=[];const h=Vr[this.props.width||"lg"].widths;if(d){if(this.columnsVisibility={id:Vr[this.props.width||"lg"].idWidth,name:this.visibleCols.includes("name")&&h.name||0,nameHeader:this.visibleCols.includes("name")&&h.name||0,type:this.visibleCols.includes("type")&&h.type||0,role:this.visibleCols.includes("role")&&h.role||0,room:this.visibleCols.includes("room")&&h.room||0,func:this.visibleCols.includes("func")&&h.func||0,changedFrom:this.visibleCols.includes("changedFrom")&&h.changedFrom||0,qualityCode:this.visibleCols.includes("qualityCode")&&h.qualityCode||0,timestamp:this.visibleCols.includes("timestamp")&&h.timestamp||0,lastChange:this.visibleCols.includes("lastChange")&&h.lastChange||0,val:this.visibleCols.includes("val")&&h.val||0,buttons:this.visibleCols.includes("buttons")&&h.buttons||0},this.columnsVisibility.name&&!this.customWidth){let u=this.columnsVisibility.id||0;this.state.statesView?(u+=this.columnsVisibility.changedFrom||0,u+=this.columnsVisibility.qualityCode||0,u+=this.columnsVisibility.timestamp||0,u+=this.columnsVisibility.lastChange||0):(u+=this.columnsVisibility.type||0,u+=this.columnsVisibility.role||0,u+=this.columnsVisibility.room||0,u+=this.columnsVisibility.func||0),u+=this.columnsVisibility.val||0,u+=this.columnsVisibility.buttons||0,this.columnsVisibility.name=`calc(100% - ${u+5}px)`,this.columnsVisibility.nameHeader=`calc(100% - ${u+5+this.state.scrollBarWidth}px)`}else if(!this.customWidth){let u=0;this.state.statesView?(u+=this.columnsVisibility.changedFrom||0,u+=this.columnsVisibility.qualityCode||0,u+=this.columnsVisibility.timestamp||0,u+=this.columnsVisibility.lastChange||0):(u+=this.columnsVisibility.type||0,u+=this.columnsVisibility.role||0,u+=this.columnsVisibility.room||0,u+=this.columnsVisibility.func||0),u+=this.columnsVisibility.val||0,u+=this.columnsVisibility.buttons||0,this.columnsVisibility.id=`calc(100% - ${u+5}px)`}}else{const u=this.props.width||"lg";this.columnsVisibility={id:i.id||Vr[u].idWidth,name:l.includes("name")&&(i.name||h.name||Vr[u].widths.name)||0,type:l.includes("type")&&(i.type||h.type||Vr[u].widths.type)||0,role:l.includes("role")&&(i.role||h.role||Vr[u].widths.role)||0,room:l.includes("room")&&(i.room||h.room||Vr[u].widths.room)||0,func:l.includes("func")&&(i.func||h.func||Vr[u].widths.func)||0};let f=this.columnsVisibility.id;if(this.columnsVisibility.name&&(f+=this.columnsVisibility.type||0,f+=this.columnsVisibility.role||0,f+=this.columnsVisibility.room||0,f+=this.columnsVisibility.func||0),s&&l&&Object.keys(s).sort().forEach(g=>s[g].forEach(y=>{const b=`_${g}_${y.path}`;if(l.includes(b)){const x={adapter:g,id:`_${g}_${y.path}`,name:y.name,path:y.path.split("."),pathText:y.path};y.edit&&(x.edit=!0,y.type&&(x.type=y.type),y.objTypes&&(x.objTypes=y.objTypes)),this.adapterColumns.push(x),this.columnsVisibility[b]=i[x.id]||y.width||Vr[u].widths.func||Vr.xl.widths.func||0,f+=this.columnsVisibility[b]}else this.columnsVisibility[b]=0})),this.adapterColumns.sort((g,y)=>g.id>y.id?-1:g.idb==="id"||typeof this.columnsVisibility[b]=="string"||!this.columnsVisibility[b]?y:y+this.columnsVisibility[b],0);this.columnsVisibility.id=`calc(100% - ${g}px)`}}}navigateKeyPress(r){var o,a;const n=this.state.selectedNonObject||this.state.selected[0];if(n){if(r.code==="ArrowUp"||r.code==="ArrowDown"){r.preventDefault();const i=[];(o=this.tableRef.current)==null||o.childNodes.forEach(h=>i.push(h.id));const s=i.indexOf(n),l=r.code==="ArrowDown"?s+1:s-1,d=i[l]||n;this.onSelect(d),this.scrollToItem(d)}if((r.code==="ArrowRight"||r.code==="ArrowLeft")&&this.toggleExpanded(n),r.code==="Delete"&&this.root&&n){const i=va.getItemFromRoot(this.root,n);if(i){const{obj:s}=i.data;s&&!((a=s.common)!=null&&a.dontDelete)&&this.showDeleteDialog({id:n,obj:s,item:i})}}}}static getItemFromRoot(r,n){const o=n.split(".");let a="",i=r;for(let s=0;sthis.clearFilter(),style:Q.buttonClearFilter,title:this.props.t("ra_Clear filter"),size:"large"},m.createElement(a_t,null),m.createElement(Ar,{style:Q.buttonClearFilterIcon}))),this.props.width==="xs"?m.createElement("div",{style:Q.headerRow},m.createElement("div",{style:{...Q.headerCell,width:"100%"}},this.getFilterInput("id"))):m.createElement("div",{style:Q.headerRow},m.createElement("div",{style:{...Q.headerCell,width:this.columnsVisibility.id,position:"relative"},"data-min":240,"data-name":"id"},this.getFilterInput("id"),this.renderHandleRight()),this.columnsVisibility.name?m.createElement("div",{style:{...Q.headerCell,width:this.columnsVisibility.nameHeader,position:"relative"},"data-min":100,"data-name":"nameHeader"},this.getFilterInput("name"),this.renderHandleRight()):null,!this.state.statesView&&m.createElement(m.Fragment,null,this.columnsVisibility.type?m.createElement("div",{style:{...Q.headerCell,width:this.columnsVisibility.type,position:"relative"},"data-min":100,"data-name":"type"},this.getFilterSelectType(),this.renderHandleRight()):null,this.columnsVisibility.role?m.createElement("div",{style:{...Q.headerCell,width:this.columnsVisibility.role,position:"relative"},"data-min":100,"data-name":"role"},this.getFilterSelectRole(),this.renderHandleRight()):null,this.columnsVisibility.room?m.createElement("div",{style:{...Q.headerCell,width:this.columnsVisibility.room,position:"relative"},"data-min":100,"data-name":"room"},this.getFilterSelectRoom(),this.renderHandleRight()):null,this.columnsVisibility.func?m.createElement("div",{style:{...Q.headerCell,width:this.columnsVisibility.func,position:"relative"},"data-min":100,"data-name":"func"},this.getFilterSelectFunction(),this.renderHandleRight()):null),this.state.statesView&&m.createElement(m.Fragment,null,m.createElement("div",{style:{...Q.headerCell,...Q.headerCellValue,width:this.columnsVisibility.changedFrom,position:"relative"},"data-min":100,"data-name":"changedFrom"},this.props.t("ra_Changed from"),this.renderHandleRight()),m.createElement("div",{style:{...Q.headerCell,...Q.headerCellValue,width:this.columnsVisibility.qualityCode,position:"relative"},"data-min":100,"data-name":"qualityCode"},this.props.t("ra_Quality code"),this.renderHandleRight()),m.createElement("div",{style:{...Q.headerCell,...Q.headerCellValue,width:this.columnsVisibility.timestamp,position:"relative"},"data-min":100,"data-name":"timestamp"},this.props.t("ra_Timestamp"),this.renderHandleRight()),m.createElement("div",{style:{...Q.headerCell,...Q.headerCellValue,width:this.columnsVisibility.lastChange,position:"relative"},"data-min":100,"data-name":"lastChange"},this.props.t("ra_Last change"),this.renderHandleRight())),this.adapterColumns.map(n=>m.createElement("div",{style:{...Q.headerCell,...Q.headerCellValue,width:this.columnsVisibility[n.id]},title:n.adapter,key:n.id,"data-min":100,"data-name":n.id},n.name)),this.columnsVisibility.val?m.createElement("div",{style:{...Q.headerCell,...Q.headerCellValue,width:this.columnsVisibility.val,position:"relative"},"data-min":120,"data-name":"val"},this.props.t("ra_Value"),r):null,this.columnsVisibility.buttons?m.createElement("div",{title:this.texts.filter_custom,style:{...Q.headerCell,width:this.columnsVisibility.buttons}}," ",this.getFilterSelectCustoms()):null)}renderToast(){return m.createElement(Ov,{open:!!this.state.toast,autoHideDuration:3e3,onClick:()=>this.setState({toast:""}),onClose:()=>this.setState({toast:""}),message:this.state.toast,action:m.createElement(Ie,{size:"small","aria-label":"close",color:"inherit",onClick:()=>this.setState({toast:""})},m.createElement(Ar,{fontSize:"small"}))})}componentDidUpdate(){if(this.tableRef.current){const r=this.tableRef.current.offsetWidth-this.tableRef.current.clientWidth;this.state.scrollBarWidth!==r?setTimeout(()=>this.setState({scrollBarWidth:r}),100):this.selectFirst&&this.scrollToItem(this.selectFirst)}}scrollToItem(r){this.selectFirst="";const n=window.document.getElementById(r);n==null||n.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}renderCustomDialog(){if(this.state.customDialog&&this.props.objectCustomDialog){const r=this.props.objectCustomDialog;return m.createElement(r,{reportChangedIds:n=>this.changedIds=[...n],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:()=>{var n;this.pauseSubscribe(!1),this.setState({customDialog:null}),this.changedIds&&(this.changedIds=null,this.forceUpdate()),(n=this.props.router)==null||n.doNavigate("tab-objects")},systemConfig:this.systemConfig})}return null}onUpdate(r){this.props.socket.setState(this.edit.id,{val:r.val,ack:r.ack,q:r.q||0,expire:r.expire||void 0}).catch(n=>this.showError(`Cannot write value: ${n}`))}renderEditObjectDialog(){if(!this.state.editObjectDialog||!this.props.objectBrowserEditObject)return null;const r=this.props.objectBrowserEditObject;return m.createElement(r,{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:n=>this.props.socket.setObject(n._id,n).then(()=>this.setState({editObjectDialog:n._id,editObjectAlias:!1},()=>this.onSelect(n._id))).catch(o=>this.showError(`Cannot write object: ${o}`)),onClose:n=>{var o,a;if(n){let i;this.state.editObjectDialog.startsWith("alias.")&&JSON.stringify((o=this.objects[this.state.editObjectDialog].common)==null?void 0:o.alias)!==JSON.stringify((a=n.common)==null?void 0:a.alias)&&(i=this.state.editObjectDialog),this.props.socket.setObject(n._id,n).then(()=>{i&&this.subscribes.includes(i)&&(this.unsubscribe(i),setTimeout(()=>this.subscribe(i),100))}).catch(s=>this.showError(`Cannot write object: ${s}`))}this.setState({editObjectDialog:"",editObjectAlias:!1})},width:this.props.width})}renderViewObjectFileDialog(){if(!this.state.viewFileDialog||!this.props.objectBrowserViewFile)return null;const r=this.props.objectBrowserViewFile;return m.createElement(r,{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;const r=this.props.objectBrowserAliasEditor;return m.createElement(r,{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:(n,o)=>setTimeout(()=>this.onSelect(n,!1,()=>this.expandAllSelected(()=>{this.scrollToItem(n),setTimeout(()=>this.setState({editObjectDialog:n,showAliasEditor:"",editObjectAlias:!0}),300)})),o||0)})}showAddDataPointDialog(r,n,o){this.setState({showContextMenu:null,modalNewObj:{id:r,initialType:n,initialStateType:o}})}renderAliasMenu(){return this.state.aliasMenu?m.createElement(eu,{key:"aliasmenu",open:!0,anchorEl:window.document.getElementById(`alias_${this.state.aliasMenu}`),onClose:()=>this.setState({aliasMenu:""})},this.info.aliasesMap[this.state.aliasMenu].map((r,n)=>m.createElement(Xt,{key:r,onClick:()=>this.onSelect(r)},m.createElement(_o,null,this.renderAliasLink(this.state.aliasMenu,n,{"& .admin-browser-arrow":{mr:"8px"}}))))):null}renderContextMenu(){var g,y,b,x,S,T,E;if(!this.state.showContextMenu)return null;const r=this.state.showContextMenu.item,n=r.data.id,o=[],a=r.data.obj;let i="";if(this.props.objectEditOfAccessControl&&this.state.filter.expertMode)if(!a)i="---";else{const $=a.acl?a.type==="state"?a.acl.state:a.acl.object:0,k=a.acl&&(a.type==="state"?this.systemConfig.common.defaultNewAcl.state:this.systemConfig.common.defaultNewAcl.object);i=Number.isNaN(Number($))?Number(k).toString(16):Number($).toString(16)}const s=!this.props.notEditable&&a&&(this.state.filter.expertMode||a.type==="state"||a.type==="channel"||a.type==="device"),l=!r.data.obj||r.data.obj.type==="folder"||r.data.obj.type==="channel"||r.data.obj.type==="device"||r.data.id==="0_userdata.0"||r.data.obj.type==="meta",d=!r.data.obj||r.data.obj.type==="folder"||r.data.obj.type==="device"||r.data.id==="0_userdata.0"||r.data.obj.type==="meta",h=!r.data.obj||r.data.obj.type==="folder"||r.data.id==="0_userdata.0"||r.data.obj.type==="meta",u=!r.data.obj||r.data.obj.type==="folder"||r.data.id==="0_userdata.0"||r.data.obj.type==="meta",f={EDIT:{key:"0",visibility:!!(this.props.objectBrowserEditObject&&a&&(this.state.filter.expertMode||va.isNonExpertId(n))),icon:m.createElement(rv,{fontSize:"small",style:this.styles.contextMenuEdit}),label:this.texts.editObject,onClick:()=>this.setState({editObjectDialog:r.data.id,showContextMenu:null,editObjectAlias:!1})},EDIT_VALUE:{key:"1",visibility:!!(this.states&&!this.props.notEditable&&a&&a.type==="state"&&((g=a.common)==null?void 0:g.type)!=="file"&&(this.state.filter.expertMode||a.common.write!==!1)),icon:m.createElement(Cve,{fontSize:"small",style:this.styles.contextMenuEditValue}),label:this.props.t("ra_Edit value"),onClick:()=>{this.edit={val:this.states[n]?this.states[n].val:"",q:this.states[n]&&this.states[n].q||0,ack:!1,id:n},this.setState({updateOpened:!0,showContextMenu:null})}},VIEW:{visibility:!!this.props.objectBrowserViewFile&&(a==null?void 0:a.type)==="state"&&((y=a.common)==null?void 0:y.type)==="file",icon:m.createElement(bve,{fontSize:"small",style:this.styles.contextMenuView}),label:this.props.t("ra_View file"),onClick:()=>this.setState({viewFileDialog:(a==null?void 0:a._id)||"",showContextMenu:null})},CUSTOM:{key:"2",visibility:!(this.props.objectCustomDialog&&this.info.hasSomeCustoms&&a&&a.type==="state"&&((b=a.common)==null?void 0:b.type)!=="file"),icon:m.createElement(l2,{fontSize:"small",style:r.data.hasCustoms?this.styles.cellButtonsButtonWithCustoms:Q.cellButtonsButtonWithoutCustoms}),style:this.styles.contextMenuCustom,label:this.texts.customConfig,onClick:()=>{var $;this.pauseSubscribe(!0),($=this.props.router)==null||$.doNavigate(null,"customs",n),this.setState({customDialog:[n],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:r.data})},ROLE:{key:"4",visibility:!!(this.state.filter.expertMode&&s&&this.props.objectBrowserEditRole),icon:m.createElement(hve,{fontSize:"small",style:this.styles.contextMenuRole}),label:this.props.t("ra_Edit role"),onClick:()=>this.setState({roleDialog:r.data.id,showContextMenu:null})},FUNCTION:{key:"5",visibility:!!s,icon:m.createElement(dve,{fontSize:"small",style:this.styles.contextMenuRole}),label:this.props.t("ra_Edit function"),onClick:()=>{const $=Jc(this.info,r.data.id,"funcEnums");this.setState({enumDialogEnums:$,enumDialog:{item:r,type:"func",enumsOriginal:JSON.stringify($)},showContextMenu:null})}},ROOM:{key:"6",visibility:!!s,icon:m.createElement(gve,{fontSize:"small",style:this.styles.contextMenuRoom}),label:this.props.t("ra_Edit room"),onClick:()=>{const $=Jc(this.info,r.data.id,"roomEnums");this.setState({enumDialogEnums:$,enumDialog:{item:r,type:"room",enumsOriginal:JSON.stringify($)},showContextMenu:null})}},ALIAS:{key:"7",visibility:!!(!this.props.notEditable&&this.props.objectBrowserAliasEditor&&this.props.objectBrowserEditObject&&(a==null?void 0:a.type)==="state"&&((x=a.common)==null?void 0:x.type)!=="file"),icon:m.createElement(JH,{style:(S=a==null?void 0:a.common)!=null&&S.alias?this.styles.cellButtonsButtonWithCustoms:Q.cellButtonsButtonWithoutCustoms}),label:this.info.aliasesMap[r.data.id]||r.data.id.startsWith("alias.0.")?this.props.t("ra_Edit alias"):this.props.t("ra_Create alias"),onClick:()=>{var $;($=a==null?void 0:a.common)!=null&&$.alias?this.setState({showContextMenu:null,editObjectDialog:r.data.id,editObjectAlias:!0}):this.setState({showContextMenu:null,showAliasEditor:r.data.id})}},CREATE:{key:"+",visibility:(r.data.id.startsWith("0_userdata.0")||r.data.id.startsWith("javascript."))&&(l||d||h||u),icon:m.createElement(Nv,{fontSize:"small",style:this.styles.cellButtonsButtonWithCustoms}),style:Q.contextMenuWithSubMenu,label:this.texts.create,subMenu:[{label:this.texts.createBooleanState,visibility:l,icon:m.createElement(gh,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(r.data.id,"state","boolean")},{label:this.texts.createNumberState,visibility:l,icon:m.createElement(gh,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(r.data.id,"state","number")},{label:this.texts.createStringState,visibility:l,icon:m.createElement(gh,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(r.data.id,"state","string")},{label:this.texts.createState,visibility:l,icon:m.createElement(gh,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(r.data.id,"state")},{label:this.texts.createChannel,visibility:d,icon:m.createElement(gV,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(r.data.id,"channel")},{label:this.texts.createDevice,visibility:h,icon:m.createElement(vV,{fontSize:"small"}),onClick:()=>this.showAddDataPointDialog(r.data.id,"device")},{label:this.texts.createFolder,icon:m.createElement(qH,{fontSize:"small"}),visibility:u,onClick:()=>this.showAddDataPointDialog(r.data.id,"folder")}]},DELETE:{key:"Delete",visibility:!!(this.props.onObjectDelete&&((T=r.children)!=null&&T.length||a&&!((E=a.common)!=null&&E.dontDelete))),icon:m.createElement(Ta,{fontSize:"small",style:this.styles.contextMenuDelete}),style:this.styles.contextMenuDelete,label:this.texts.deleteObject,onClick:()=>this.setState({showContextMenu:null},()=>this.showDeleteDialog({id:n,obj:a||{},item:r}))}};return Object.keys(f).forEach($=>{var k,O;f[$].visibility&&(f[$].subMenu?(o.push(m.createElement(Xt,{key:$,href:"",onClick:M=>this.state.showContextMenu&&this.setState({showContextMenu:{item:this.state.showContextMenu.item,position:this.state.showContextMenu.position,subItem:$,subAnchor:M.target}}),style:f[$].style},m.createElement(ba,{style:{...f[$].iconStyle,...f[$].listItemIconStyle}},f[$].icon),m.createElement(_o,null,f[$].label,"..."),m.createElement("div",{style:{...Q.contextMenuKeys,opacity:1}},m.createElement(lve,null)))),((k=this.state.showContextMenu)==null?void 0:k.subItem)===$&&o.push(m.createElement(eu,{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}},(O=f[$].subMenu)==null?void 0:O.map(M=>M.visibility?m.createElement(Xt,{key:M.label,onClick:M.onClick,style:M.style},m.createElement(ba,{style:{...M.iconStyle,...M.listItemIconStyle||void 0}},M.icon),m.createElement(_o,null,M.label)):null)))):o.push(m.createElement(Xt,{key:$,onClick:f[$].onClick,sx:f[$].style},m.createElement(ba,{style:{...f[$].iconStyle,...f[$].listItemIconStyle}},f[$].icon),m.createElement(_o,null,f[$].label),f[$].key?m.createElement("div",{style:Q.contextMenuKeys},`Alt+${f[$].key==="Delete"?this.props.t("ra_Del"):f[$].key}`):null)))}),o.length?m.createElement(eu,{key:"contextMenu",open:!0,onKeyUp:$=>{$.preventDefault(),$.altKey&&Object.keys(f).forEach(k=>{$.key===f[k].key&&f[k].onClick&&f[k].onClick()})},anchorReference:"anchorPosition",anchorPosition:this.state.showContextMenu.position,onClose:()=>{this.setState({showContextMenu:null}),this.contextMenu=null}},o):(setTimeout(()=>this.setState({showContextMenu:null}),100),null)}renderEditValueDialog(){var a;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;const r=(a=this.objects[this.edit.id].common)!=null&&a.type?this.objects[this.edit.id].common.type:typeof this.edit.val,n=this.objects[this.edit.id].common.role,o=this.props.objectBrowserValue;return m.createElement(o,{t:this.props.t,lang:this.props.lang,type:r,role:n||"",states:ue.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:i=>{this.setState({updateOpened:!1}),i&&this.onUpdate(i)},width:this.props.width})}render(){this.recordStates=[],this.unsubscribeTimer&&clearTimeout(this.unsubscribeTimer),this.styleTheme!==this.props.themeType&&(this.styles={cellIdIconFolder:ue.getStyle(this.props.theme,Q.cellIdIconFolder),cellIdIconDocument:ue.getStyle(this.props.theme,Q.cellIdIconDocument),iconDeviceError:ue.getStyle(this.props.theme,Q.iconDeviceError),iconDeviceConnected:ue.getStyle(this.props.theme,Q.iconDeviceConnected),iconDeviceDisconnected:ue.getStyle(this.props.theme,Q.iconDeviceDisconnected),cellButtonsButtonWithCustoms:ue.getStyle(this.props.theme,Q.cellButtonsButtonWithCustoms),invertedBackground:ue.getStyle(this.props.theme,Q.invertedBackground),invertedBackgroundFlex:ue.getStyle(this.props.theme,Q.invertedBackgroundFlex),contextMenuEdit:ue.getStyle(this.props.theme,Q.contextMenuEdit),contextMenuEditValue:ue.getStyle(this.props.theme,Q.contextMenuEditValue),contextMenuView:ue.getStyle(this.props.theme,Q.contextMenuView),contextMenuCustom:ue.getStyle(this.props.theme,Q.contextMenuCustom),contextMenuACL:ue.getStyle(this.props.theme,Q.contextMenuACL),contextMenuRoom:ue.getStyle(this.props.theme,Q.contextMenuRoom),contextMenuRole:ue.getStyle(this.props.theme,Q.contextMenuRole),contextMenuDelete:ue.getStyle(this.props.theme,Q.contextMenuDelete),filterInput:ue.getStyle(this.props.theme,Q.headerCellInput,Q.filterInput),iconCopy:ue.getStyle(this.props.theme,Q.cellButtonsValueButton,Q.cellButtonsValueButtonCopy),aliasReadWrite:ue.getStyle(this.props.theme,Q.cellIdAlias,Q.cellIdAliasReadWrite),aliasAlone:ue.getStyle(this.props.theme,Q.cellIdAlias,Q.cellIdAliasAlone)},this.styleTheme=this.props.themeType);const r=JSON.stringify(this.state.filter);if(this.lastAppliedFilter!==r&&this.objects&&this.root){const o={count:0};T2(this.root,this.state.filter,this.props.lang,this.objects,void 0,o,this.props.customFilter,this.props.types),o.count<500&&!this.state.expandAllVisible?setTimeout(()=>this.setState({expandAllVisible:!0})):o.count>=500&&this.state.expandAllVisible&&setTimeout(()=>this.setState({expandAllVisible:!1})),this.lastAppliedFilter=r}if(this.unsubscribeTimer=setTimeout(()=>{this.unsubscribeTimer=null,this.checkUnsubscribes()},200),!this.state.loaded)return m.createElement(pO,{key:`${this.props.dialogName}_c`});const n=this.root?this.renderItem(this.root,void 0):null;return m.createElement(i_t,{key:this.props.dialogName},m.createElement("style",null,` @keyframes newValueAnimation-light { 0% { color: #00f900; @@ -763,7 +763,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .newValueBrowser-light { animation: newValueAnimation-light 2s ease-in-out; } -`),m.createElement(l_t,null,this.getToolbar()),m.createElement(s_t,null,this.renderHeader(),m.createElement("div",{style:Q.tableDiv,ref:this.tableRef,onKeyDown:o=>this.navigateKeyPress(o)},n)),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.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))}};iy=new WeakMap,uP(va,iy,["0_userdata.0.","alias.0."]);let O2=va;const v_t=qs()(O2),we={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:t=>({background:t.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:t=>({background:t.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowDates:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#747a86"}),rowWeeks:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#717680"}),rowMonths:t=>({background:t.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:t=>({background:t.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:t=>({background:t.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDaysDows:t=>({background:t.palette.mode!=="dark"?"#EEEAFF":"#573544",pl:"10px",pb:"10px"}),rowDowsDows:t=>({background:t.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},$S=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],jg=["January","February","March","April","May","June","July","August","September","October","November","December"],kS={minutes:"minutes",hours:"hours"},Hp=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function $i(t){return t<10?`0${t}`:`${t}`}const xz={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function ES(t){const e=t.split(".");return e.length===3?`${e[2]}-${e[1]}-${e[0]}`:""}class gn extends A.Component{constructor(r){super(r);X(this,"refFrom");X(this,"refTo");X(this,"refOnce");X(this,"timerOnce",null);X(this,"timerFrom",null);X(this,"timerTo",null);let n;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{n=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(n=this.props.schedule);(!n||!Object.keys(n).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),n=xz),n={...xz,...n},n.valid.from=n.valid.from||gn.now2string(),this.refFrom=m.createRef(),this.refTo=m.createRef(),this.refOnce=m.createRef(),this.state={schedule:n,desc:gn.state2text(n)},JSON.stringify(n)!==this.props.schedule&&setTimeout(()=>this.props.onChange&&this.props.onChange(JSON.stringify(n)),100)}onChange(r,n){const o=JSON.stringify(r)!==JSON.stringify(this.state.schedule);if(n||o){o&&this.setState({schedule:r,desc:gn.state2text(r)});const a=JSON.parse(JSON.stringify(r));if(a.period.once){const i=a.period.once;delete a.period,a.period={once:i},delete a.valid}else if(a.period.days){const i=a.period.days,s=a.period.dows;delete a.period,a.period={days:i},s&&s!=="[]"&&(a.period.dows=s)}else if(a.period.weeks){const i=a.period.weeks,s=a.period.dows;delete a.period,a.period={weeks:i},s&&s!=="[]"&&(a.period.dows=s)}else if(a.period.months){const i=a.period.months,s=a.period.dates;delete a.period,a.period={months:i},s&&s!=="[]"&&(a.period.dates=s)}else if(a.period.years){const i=a.period.years,s=a.period.yearMonth,l=a.period.yearDate;delete a.period,a.period={years:i,yearDate:l},s&&(a.period.yearMonth=s)}if(a.time.exactTime?(delete a.time.end,delete a.time.mode,delete a.time.interval):delete a.time.exactTime,a.valid){if(a.valid.to||delete a.valid.to,a.period.days===1||a.period.weeks===1||a.period.months===1||a.period.years===1){const i=gn.string2date(a.valid.from),s=new Date;s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0),i<=s&&delete a.valid.from}!a.valid.from&&!a.valid.to&&delete a.valid}this.props.onChange&&this.props.onChange(JSON.stringify(a),gn.state2text(r))}}static state2text(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{return""}const n=[],o=gn.string2date(r.valid.from);if(r.period.once){const a=gn.string2date(r.period.once),i=new Date;if(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0),aP.t($S[s]));if(i.length===1)n.push(P.t("sch_desc_onWeekday",i[0]));else if(i.length===7)n.push(P.t("sch_desc_everyDay"));else{const s=i.pop();n.push(P.t("sch_desc_onWeekdays",i.join(", "),s))}}}else n.push(P.t("sch_desc_everyDay"));else n.push(P.t("sch_desc_everyNDay",r.period.days.toString()));else if(r.period.weeks)if(r.period.weeks===1?n.push(P.t("sch_desc_everyWeek")):n.push(P.t("sch_desc_everyNWeeks",r.period.weeks.toString())),r.period.dows){const a=JSON.parse(r.period.dows);if(a.length===2&&a[0]===0&&a[1]===6)n.push(P.t("sch_desc_onWeekends"));else if(a.length===5&&a[0]===1&&a[1]===2&&a[2]===3&&a[3]===4&&a[4]===5)n.push(P.t("sch_desc_onWorkdays"));else{const i=a.map(s=>P.t($S[s]));if(i.length===1)n.push(P.t("sch_desc_onWeekday",i[0]));else if(i.length===7)n.push(P.t("sch_desc_everyDay"));else{const s=i.pop();n.push(P.t("sch_desc_onWeekdays",i.join(", "),s))}}}else return P.t("sch_desc_never");else if(r.period.months){if(r.period.dates){const a=JSON.parse(r.period.dates);if(a.length===1)n.push(P.t("sch_desc_onDate",a[0]));else if(a.length===31)n.push(P.t("sch_desc_onEveryDate"));else if(a.length){const i=a.pop();n.push(P.t("sch_desc_onDates",a.join(", "),i))}else return P.t("sch_desc_never")}else n.push(P.t("sch_desc_onEveryDate"));if(r.period.months===1)n.push(P.t("sch_desc_everyMonth"));else if(typeof r.period.months=="number")n.push(P.t("sch_desc_everyNMonths",r.period.months.toString()));else{const i=JSON.parse(r.period.months).map(s=>P.t(jg[s-1]));if(!i.length)return P.t("sch_desc_never");if(i.length===1)n.push(P.t("sch_desc_onMonth",i[0]));else if(i.length===12)n.push(P.t("sch_desc_everyMonth"));else{const s=i.pop();n.push(P.t("sch_desc_onMonths",i.join(", "),s))}}}else r.period.years&&(r.period.years===1?n.push(P.t("sch_desc_everyYear")):n.push(P.t("sch_desc_everyNYears",r.period.years.toString())),n.push(P.t("sch_desc_onDate",r.period.yearDate.toString(),r.period.yearMonth?P.t(jg[r.period.yearMonth-1]):P.t("sch_desc_everyMonth"))));if(r.time.exactTime)Hp.includes(r.time.start)?n.push(P.t("sch_desc_atTime",P.t(`sch_astro_${r.time.start}`))):n.push(P.t("sch_desc_atTime",r.time.start));else{r.time.mode===kS.minutes?r.time.interval===1?n.push(P.t("sch_desc_everyMinute")):n.push(P.t("sch_desc_everyNMinutes",r.time.interval.toString())):r.time.interval===1?n.push(P.t("sch_desc_everyHour")):n.push(P.t("sch_desc_everyNHours",r.time.interval.toString()));const a=Hp.indexOf(r.time.start)!==-1?P.t(`sch_astro_${r.time.start}`):r.time.start,i=Hp.indexOf(r.time.end)!==-1?P.t(`sch_astro_${r.time.end}`):r.time.end;(a!=="00:00"||i!=="24:00"&&i!=="23:59")&&n.push(P.t("sch_desc_intervalFromTo",a,i))}return r.period.once||(o.getTime()>Date.now()&&r.valid.to?n.push(P.t("sch_desc_validFromTo",r.valid.from,r.valid.to)):o.getTime()>Date.now()?n.push(P.t("sch_desc_validFrom",r.valid.from)):r.valid.to&&n.push(P.t("sch_desc_validTo",r.valid.to))),n.join(" ")}getTimePeriodElements(){const r=this.state.schedule;let n=!1,o=!1,a=!1,i=!0;return r.time.start==="00:00"&&r.time.end==="24:00"?(n=!0,i=!1):r.time.start==="sunrise"?(o=!0,i=!1):r.time.start==="sunset"&&(a=!0,i=!1),m.createElement("div",{key:"timePeriod",style:we.rowDiv},m.createElement("div",{style:we.modeDiv},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!r.time.exactTime,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.exactTime=!1,this.onChange(s)}}),label:P.t("sch_intervalTime")})),m.createElement("div",{style:we.settingsDiv},m.createElement("div",{style:we.settingsDiv},!r.time.exactTime&&m.createElement("div",null,m.createElement("div",null,m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!i,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="00:00",s.time.end="23:59",this.onChange(s)}}),label:i?"":P.t("sch_fromTo")}),i&&[m.createElement(Ht,{variant:"standard",style:{...we.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:s=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:s.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:s=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start=s.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:P.t("sch_from"),margin:"normal"}),m.createElement(Ht,{variant:"standard",style:we.inputTime,key:"exactTimeTo",type:"time",sx:s=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:s.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:s=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.end=s.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:P.t("sch_to"),margin:"normal"})])),!r.time.exactTime&&m.createElement("div",null,m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!n,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="00:00",s.time.end="24:00",this.onChange(s)}}),label:P.t("sch_wholeDay")})),!r.time.exactTime&&m.createElement("div",null,m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!o,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="sunrise",s.time.end="sunset",this.onChange(s)}}),label:P.t("sch_astroDay")})),!r.time.exactTime&&m.createElement("div",null,m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!a,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="sunset",s.time.end="sunrise",this.onChange(s)}}),label:P.t("sch_astroNight")}))),!r.time.exactTime&&this.getPeriodSettingsMinutes(i)))}getTimeExactElements(){const r=Hp.includes(this.state.schedule.time.start);return m.createElement("div",{key:"timeExact",style:we.rowDiv},m.createElement("div",{style:we.modeDiv},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.exactTime=!0,this.onChange(n)}}),label:P.t("sch_exactTime")})),this.state.schedule.time.exactTime&&m.createElement(Bn,{variant:"standard",value:r?this.state.schedule.time.start:"00:00",onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.start=n.target.value,this.onChange(o)}},m.createElement(Jt,{key:"specific",value:"00:00"},P.t("sch_specificTime")),Hp.map(n=>m.createElement(Jt,{key:n,value:n},P.t(`sch_astro_${n}`)))),this.state.schedule.time.exactTime&&!r&&m.createElement("div",{style:we.settingsDiv},m.createElement(Ht,{variant:"standard",style:we.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.start=n.target.value,this.onChange(o)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return m.createElement("hr",{style:we.hr})}getPeriodModes(){const r=this.state.schedule,n=!r.period.dows&&!r.period.months&&!r.period.dates&&!r.period.years&&!r.period.days&&!r.period.weeks;return n&&!r.period.once&&(r.period.once=gn.now2string(!0)),[m.createElement("div",{key:"once",style:{...we.rowDiv,...we.rowOnce}},m.createElement("div",{style:we.modeDiv},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!n,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.once=o.period.once||gn.now2string(!0),o.period.dows="",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,this.onChange(o)}}),label:P.t("sch_periodOnce")})),n&&m.createElement("div",{style:we.settingsDiv},m.createElement(Ht,{variant:"standard",style:we.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:ES(r.period.once),onChange:o=>{this.timerOnce&&clearTimeout(this.timerOnce),this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(a=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const i=JSON.parse(JSON.stringify(this.state.schedule)),s=gn.string2date(a);s.toString()!=="Invalid Date"&&(i.period.once=`${$i(s.getDate())}.${$i(s.getMonth()+1)}.${s.getFullYear()}`,this.onChange(i))},1500,o.target.value)},slotProps:{inputLabel:{shrink:!0}},label:P.t("sch_at"),margin:"normal"}))),m.createElement(Re,{component:"div",key:"days",sx:ue.getStyle(this.props.theme,we.rowDiv,we.rowDays)},m.createElement("div",{style:we.modeDiv},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!r.period.days,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=1,o.period.dows="",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.once="",this.onChange(o)}}),label:P.t("sch_periodDaily")})),m.createElement("div",{style:we.settingsDiv},this.getPeriodSettingsDaily(),r.period.days?this.getPeriodSettingsWeekdays():null)),m.createElement(Re,{component:"div",key:"weeks",sx:ue.getStyle(this.props.theme,we.rowDiv,we.rowDows)},m.createElement("div",{style:we.modeDiv},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!r.period.weeks,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=r.period.weeks?0:1,o.period.dows=r.period.dows||"[0]",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:P.t("sch_periodWeekly")})),m.createElement(Re,{component:"div",style:we.settingsDiv},m.createElement("div",{style:we.settingsDiv},this.getPeriodSettingsWeekly()),m.createElement(Re,{component:"div",sx:ue.getStyle(this.props.theme,we.settingsDiv,we.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),m.createElement(Re,{component:"div",key:"months",sx:ue.getStyle(this.props.theme,we.rowDiv,we.rowMonths)},m.createElement("div",{style:we.modeDiv},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!r.period.months,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=1,o.period.dows="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:P.t("sch_periodMonthly")})),m.createElement("div",{style:we.settingsDiv},this.getPeriodSettingsMonthly(),r.period.months?m.createElement(Re,null,m.createElement(Re,{component:"div",sx:ue.getStyle(this.props.theme,we.settingsDiv,we.rowMonthsDates)},m.createElement(St,{control:m.createElement(yr,{style:we.inputRadio,checked:!!r.period.dates,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=o.period.months||1;const a=[];for(let i=1;i<=31;i++)a.push(i);o.period.dates=o.period.dates||JSON.stringify(a),o.period.dows="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:P.t("sch_periodDates")})),m.createElement(Re,{component:"div",sx:ue.getStyle(this.props.theme,we.settingsDiv,we.rowMonthsDates)},this.getPeriodSettingsDates())):null)),m.createElement(Re,{component:"div",key:"years",sx:ue.getStyle(this.props.theme,we.rowDiv,we.rowYears)},m.createElement("div",{style:we.modeDiv},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!r.period.years,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=1,o.period.yearDate=1,o.period.yearMonth=1,o.period.dows="",o.period.months=0,o.period.dates="",o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:P.t("sch_periodYearly")})),m.createElement("div",{style:we.settingsDiv},m.createElement("div",{style:we.settingsDiv},this.getPeriodSettingsYearly()),!!r.period.years&&m.createElement("div",{style:we.settingsDiv},m.createElement("span",null,P.t("sch_on")),m.createElement(ya,{key:"input",value:this.state.schedule.period.yearDate,style:we.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearDate=parseInt(o.target.value,10),a.period.yearDate<1&&(a.period.yearDate=31),a.period.yearDate>31&&(a.period.yearDate=1),this.onChange(a)}}),m.createElement(Bn,{variant:"standard",value:r.period.yearMonth,onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearMonth=o.target.value,this.onChange(a)}},m.createElement(Jt,{key:"every",value:0},P.t("sch_yearEveryMonth")),jg.map((o,a)=>m.createElement(Jt,{key:o,value:a+1},P.t(o)))))))]}getPeriodSettingsMinutes(r){return m.createElement("div",{style:{display:"inline-block",marginTop:r?15:"inherit"}},m.createElement("label",{style:{marginLeft:4,marginRight:4}},P.t("sch_every")),m.createElement(ya,{value:this.state.schedule.time.interval,style:{...we.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.interval=parseInt(n.target.value,10),this.onChange(o)}}),m.createElement(Bn,{variant:"standard",value:this.state.schedule.time.mode,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.mode=n.target.value,this.onChange(o)}},m.createElement(Jt,{value:kS.minutes},P.t("sch_periodMinutes")),m.createElement(Jt,{value:kS.hours},P.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const r=this.state.schedule,n=r.period.dows&&r.period.dows!=="[1, 2, 3, 4, 5]"&&r.period.dows!=="[0, 6]";return[m.createElement("div",{key:"workdays"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[1, 2, 3, 4, 5]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:P.t("sch_periodWorkdays")})),m.createElement("div",{key:"weekend"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.dows==="[0, 6]",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[0, 6]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:P.t("sch_periodWeekend")})),m.createElement("div",{key:"specific",style:{verticalAlign:"top"}},m.createElement(St,{style:{verticalAlign:"top"},control:m.createElement(ur,{style:we.inputRadio,checked:!!n,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[0, 1, 2, 3, 4, 5, 6]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:P.t("sch_periodWeekdays")}),n&&(r.period.days===1||r.period.weeks)&&m.createElement(Kb,{row:!0,style:{...we.inputGroup,width:150}},[1,2,3,4,5,6,0].map(o=>m.createElement(St,{key:`specific_${o}`,style:we.inputGroupElement,control:m.createElement(yr,{style:we.inputSmallCheck,checked:r.period.dows.includes(o.toString()),onChange:a=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let s;try{s=JSON.parse(i.period.dows)}catch{s=[]}a.target.checked&&!s.includes(o)?s.push(o):!a.target.checked&&s.includes(o)&&s.splice(s.indexOf(o),1),s.sort((l,d)=>l-d),i.period.dows=JSON.stringify(s),i.period.days&&(i.period.days=1),this.onChange(i)}}),label:P.t($S[o])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const r=this.state.schedule;return[m.createElement("div",{key:"every_day"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.days===1&&!r.period.dows,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=1,n.period.dows="",this.onChange(n)}}),label:P.t("sch_periodEveryDay")})),m.createElement("div",{key:"everyN_day"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.days>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=2,n.period.dows="",this.onChange(n)}}),label:P.t("sch_periodEvery")}),r.period.days>1&&[m.createElement(ya,{key:"input",value:this.state.schedule.period.days,style:we.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=parseInt(n.target.value,10),o.period.dows="",this.onChange(o)}}),m.createElement("span",{key:"span",style:{paddingRight:10}},P.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const r=this.state.schedule;return[m.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},m.createElement("div",null,m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.weeks===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=1,this.onChange(n)}}),label:P.t("sch_periodEveryWeek")})),m.createElement("div",null,m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.weeks>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=2,this.onChange(n)}}),label:P.t("sch_periodEvery")}),r.period.weeks>1&&[m.createElement(ya,{key:"input",value:this.state.schedule.period.weeks,style:we.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=parseInt(n.target.value,10),this.onChange(o)}}),m.createElement("span",{key:"text"},P.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const r=this.state.schedule,n=[];for(let a=1;a<=31;a++)n.push(a);const o=JSON.parse(r.period.dates);return m.createElement(Kb,{row:!0,style:{...we.inputGroup,maxWidth:620}},m.createElement(St,{style:we.inputDateDay,control:m.createElement(yr,{style:we.inputDateDayCheck,checked:o.length===31,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),i=[];for(let s=1;s<=31;s++)i.push(s);a.period.dates=JSON.stringify(i),this.onChange(a)}}),label:P.t("sch_all")}),m.createElement(St,{style:we.inputDateDay,control:m.createElement(yr,{style:we.inputDateDayCheck,checked:!o.length,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.dates="[]",this.onChange(a)}}),label:P.t("sch_no_one")}),o.length!==31&&!!o.length&&m.createElement(St,{style:we.inputDateDay,control:m.createElement(yr,{style:we.inputDateDayCheck,checked:!1,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),i=[],s=JSON.parse(a.period.dates);for(let l=1;l<=31;l++)s.includes(l)||i.push(l);i.sort((l,d)=>l-d),a.period.dates=JSON.stringify(i),this.onChange(a)}}),label:P.t("sch_invert")}),m.createElement("div",null),n.map(a=>m.createElement(St,{key:`date_${a}`,style:a?we.inputDateDay:{...we.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:m.createElement(yr,{style:we.inputDateDayCheck,checked:JSON.parse(r.period.dates).includes(a),onChange:i=>{const s=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(s.period.dates)}catch{l=[]}i.target.checked&&!l.includes(a)?l.push(a):!i.target.checked&&l.includes(a)&&l.splice(l.indexOf(a),1),l.sort((d,h)=>d-h),s.period.dates=JSON.stringify(l),this.onChange(s)}}),label:a<10?[m.createElement("span",{key:"0",style:{opacity:0}},"0"),m.createElement("span",{key:"num"},a)]:a})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const r=this.state.schedule,n=typeof r.period.months=="string"?JSON.parse(r.period.months):[];return[m.createElement("div",{key:"every"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:typeof r.period.months=="number"&&r.period.months===1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=1,this.onChange(r)}}),label:P.t("sch_periodEveryMonth")})),m.createElement("div",{key:"everyN"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:typeof r.period.months=="number"&&r.period.months>1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=2,this.onChange(o)}}),label:P.t("sch_periodEvery")}),typeof r.period.months=="number"&&r.period.months>1&&[m.createElement(ya,{key:"input",value:r.period.months,style:we.inputEvery,type:"number",inputProps:{min:2},onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=parseInt(o.target.value,10),a.period.months<1&&(a.period.months=1),this.onChange(a)}}),m.createElement("span",{key:"text"},P.t("sch_periodMonth"))]),m.createElement("div",{key:"specific",style:{verticalAlign:"top"}},m.createElement(St,{style:{verticalAlign:"top"},control:m.createElement(ur,{style:we.inputRadio,checked:typeof r.period.months=="string",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(o)}}),label:P.t("sch_periodSpecificMonths")}),typeof r.period.months=="string"&&m.createElement(Kb,{row:!0,style:we.inputGroup},m.createElement(St,{style:we.inputDateDay,control:m.createElement(yr,{style:we.inputDateDayCheck,checked:n.length===12,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[];for(let i=1;i<=12;i++)a.push(i);o.period.months=JSON.stringify(a),this.onChange(o)}}),label:P.t("sch_all")}),m.createElement(St,{style:we.inputDateDay,control:m.createElement(yr,{style:we.inputDateDayCheck,checked:!n.length,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months="[]",this.onChange(o)}}),label:P.t("sch_no_one")}),n.length!==12&&!!n.length&&m.createElement(St,{style:we.inputDateDay,control:m.createElement(yr,{style:we.inputDateDayCheck,checked:!1,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[],i=JSON.parse(o.period.months);for(let s=1;s<=12;s++)i.includes(s)||a.push(s);a.sort((s,l)=>s-l),o.period.months=JSON.stringify(a),this.onChange(o)}}),label:P.t("sch_invert")}),m.createElement("div",null),jg.map((o,a)=>m.createElement(St,{key:`month_${a}`,style:we.inputGroupElement,control:m.createElement(yr,{style:we.inputSmallCheck,checked:typeof r.period.months=="string"?JSON.parse(r.period.months).includes(a+1):r.period.months===a,onChange:i=>{const s=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(s.period.months)}catch{l=[]}i.target.checked&&!l.includes(a+1)?l.push(a+1):!i.target.checked&&l.includes(a+1)&&l.splice(l.indexOf(a+1),1),l.sort((d,h)=>d-h),s.period.months=JSON.stringify(l),this.onChange(s)}}),label:P.t(o)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const r=this.state.schedule;return[m.createElement("div",{key:"year"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.years===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=1,this.onChange(n)}}),label:P.t("sch_periodEveryYear")})),m.createElement("div",{key:"every"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.years>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=2,this.onChange(n)}}),label:P.t("sch_periodEvery")}),r.period.years>1&&[m.createElement(ya,{key:"input",value:this.state.schedule.period.years,style:we.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=parseInt(n.target.value,10),o.period.years<1&&(o.period.years=1),this.onChange(o)}}),m.createElement("span",{key:"text"},P.t("sch_periodYear"))])]}static now2string(r){const n=new Date;return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),r&&(n.setDate(n.getDate()+2),n.setMilliseconds(n.getMilliseconds()-1)),`${$i(n.getDate())}.${$i(n.getMonth()+1)}.${$i(n.getFullYear())}`}static string2date(r){let n=r.split(".");return n.length===1?(n=r.split("-"),new Date(parseInt(n[0],10),parseInt(n[1],10)-1,parseInt(n[2],10))):new Date(parseInt(n[2],10),parseInt(n[1],10)-1,parseInt(n[0],10))}getValidSettings(){const r=this.state.schedule;return m.createElement("div",{style:we.rowDiv},m.createElement("div",{style:{...we.modeDiv,verticalAlign:"middle"}},m.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},P.t("sch_valid")),m.createElement("span",null,P.t("sch_validFrom"))),m.createElement("div",{style:we.settingsDiv},m.createElement(Ht,{variant:"standard",style:{...we.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:ES(r.valid.from),type:"date",onChange:n=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(o=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),i=gn.string2date(o);i.toString()!=="Invalid Date"&&(a.valid.from=`${$i(i.getDate())}.${$i(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),m.createElement(St,{control:m.createElement(yr,{style:we.inputRadio,checked:!!r.valid.to,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.valid.to=n.valid.to?"":gn.now2string(!0),this.onChange(n)}}),label:P.t("sch_validTo")}),!!r.valid.to&&m.createElement(Ht,{variant:"standard",inputRef:this.refTo,style:{...we.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:ES(r.valid.to),onChange:n=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(o=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),i=gn.string2date(o);i.toString()!=="Invalid Date"&&(a.valid.to=`${$i(i.getDate())}.${$i(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return m.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},m.createElement("div",null,this.state.desc),m.createElement("div",{style:we.scrollWindow},m.createElement("h5",null,P.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),gn.getDivider(),m.createElement("h5",null,P.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&gn.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}class OV extends A.Component{constructor(r){super(r);X(this,"dialogName");X(this,"filters");X(this,"filterFunc");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectID.${this.dialogName}`;const n=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(n)}catch{this.filters={}}r.filters&&(this.filters={...this.filters,...r.filters||{}});let o=this.props.selected||[];if(Array.isArray(o)||(o=[o]),o=o.filter(a=>a),r.filterFunc)if(typeof r.filterFunc=="string")try{this.filterFunc=new Function("obj",r.filterFunc)}catch{console.error(`Cannot parse filter function: "obj => ${r.filterFunc}"`),this.filterFunc=void 0}else this.filterFunc=r.filterFunc;this.state={selected:o,name:""}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect?this.state.selected:this.state.selected[0]||"",this.state.name),this.props.onClose()}render(){let r;return this.state.name||this.state.selected.length?this.state.selected.length===1?r=[m.createElement("span",{key:"selected"},P.t("ra_Selected")," "),m.createElement("span",{key:"id",style:{fontWeight:"bold",fontStyle:"italic"}},(this.state.name||this.state.selected[0])+(this.state.name?` [${this.state.selected[0]}]`:""))]:r=[m.createElement("span",{key:"selected"},P.t("ra_Selected")," "),m.createElement("span",{key:"id",style:{fontWeight:"bold",fontStyle:"italic"}},P.t("%s items",this.state.selected.length.toString()))]:r=this.props.title||P.t("ra_Please select object ID..."),m.createElement(or,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{height:"95%",p:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)"}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectid_title"},m.createElement(_r,{id:"ar_dialog_selectid_title",style:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}},r),m.createElement(Wr,{style:{height:"100%",overflow:"hidden",padding:"8px 4px"}},m.createElement(v_t,{foldersFirst:this.props.foldersFirst,imagePrefix:this.props.imagePrefix||this.props.prefix,dateFormat:this.props.dateFormat,defaultFilters:this.filters,dialogName:this.dialogName,isFloatComma:this.props.isFloatComma,showExpertButton:this.props.showExpertButton!==void 0?this.props.showExpertButton:!0,expertMode:this.props.expertMode,columns:this.props.columns||["name","type","role","room","func","val"],types:this.props.types?Array.isArray(this.props.types)?this.props.types:[this.props.types]:["state"],root:this.props.root,t:P.t,lang:this.props.lang||P.getLanguage(),socket:this.props.socket,selected:this.state.selected,multiSelect:this.props.multiSelect,notEditable:this.props.notEditable===void 0?!0:this.props.notEditable,themeName:this.props.themeName,themeType:this.props.themeType,theme:this.props.theme,customFilter:this.props.customFilter,allowNonObjects:this.props.allowNonObjects,onFilterChanged:n=>{this.filters=n,(window._localStorage||window.localStorage).setItem(this.dialogName,JSON.stringify(n))},onSelect:(n,o,a)=>{let i;Array.isArray(n)?i=n:i=[n],JSON.stringify(i)!==JSON.stringify(this.state.selected)?this.setState({selected:i,name:o},()=>a&&this.handleOk()):a&&this.handleOk()},filterFunc:this.filterFunc,title:"",classes:{}})),m.createElement(pr,null,m.createElement(tt,{id:`ar_dialog_selectid_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),startIcon:m.createElement(Ea,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||P.t("ra_Ok")),m.createElement(tt,{id:`ar_dialog_selectid_cancel_${this.props.dialogName||""}`,color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:m.createElement(Nf,null)},this.props.cancel||P.t("ra_Cancel"))))}}/*! +`),m.createElement(l_t,null,this.getToolbar()),m.createElement(s_t,null,this.renderHeader(),m.createElement("div",{style:Q.tableDiv,ref:this.tableRef,onKeyDown:o=>this.navigateKeyPress(o)},n)),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.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))}};iy=new WeakMap,uP(va,iy,["0_userdata.0.","alias.0."]);let O2=va;const v_t=qs()(O2),we={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:t=>({background:t.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:t=>({background:t.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowDates:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#747a86"}),rowWeeks:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#717680"}),rowMonths:t=>({background:t.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:t=>({background:t.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:t=>({background:t.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDaysDows:t=>({background:t.palette.mode!=="dark"?"#EEEAFF":"#573544",pl:"10px",pb:"10px"}),rowDowsDows:t=>({background:t.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},$S=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],jg=["January","February","March","April","May","June","July","August","September","October","November","December"],kS={minutes:"minutes",hours:"hours"},Hp=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function $i(t){return t<10?`0${t}`:`${t}`}const xz={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function ES(t){const e=t.split(".");return e.length===3?`${e[2]}-${e[1]}-${e[0]}`:""}class gn extends A.Component{constructor(r){super(r);X(this,"refFrom");X(this,"refTo");X(this,"refOnce");X(this,"timerOnce",null);X(this,"timerFrom",null);X(this,"timerTo",null);let n;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{n=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(n=this.props.schedule);(!n||!Object.keys(n).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),n=xz),n={...xz,...n},n.valid.from=n.valid.from||gn.now2string(),this.refFrom=m.createRef(),this.refTo=m.createRef(),this.refOnce=m.createRef(),this.state={schedule:n,desc:gn.state2text(n)},JSON.stringify(n)!==this.props.schedule&&setTimeout(()=>this.props.onChange&&this.props.onChange(JSON.stringify(n)),100)}onChange(r,n){const o=JSON.stringify(r)!==JSON.stringify(this.state.schedule);if(n||o){o&&this.setState({schedule:r,desc:gn.state2text(r)});const a=JSON.parse(JSON.stringify(r));if(a.period.once){const i=a.period.once;delete a.period,a.period={once:i},delete a.valid}else if(a.period.days){const i=a.period.days,s=a.period.dows;delete a.period,a.period={days:i},s&&s!=="[]"&&(a.period.dows=s)}else if(a.period.weeks){const i=a.period.weeks,s=a.period.dows;delete a.period,a.period={weeks:i},s&&s!=="[]"&&(a.period.dows=s)}else if(a.period.months){const i=a.period.months,s=a.period.dates;delete a.period,a.period={months:i},s&&s!=="[]"&&(a.period.dates=s)}else if(a.period.years){const i=a.period.years,s=a.period.yearMonth,l=a.period.yearDate;delete a.period,a.period={years:i,yearDate:l},s&&(a.period.yearMonth=s)}if(a.time.exactTime?(delete a.time.end,delete a.time.mode,delete a.time.interval):delete a.time.exactTime,a.valid){if(a.valid.to||delete a.valid.to,a.period.days===1||a.period.weeks===1||a.period.months===1||a.period.years===1){const i=gn.string2date(a.valid.from),s=new Date;s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0),i<=s&&delete a.valid.from}!a.valid.from&&!a.valid.to&&delete a.valid}this.props.onChange&&this.props.onChange(JSON.stringify(a),gn.state2text(r))}}static state2text(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{return""}const n=[],o=gn.string2date(r.valid.from);if(r.period.once){const a=gn.string2date(r.period.once),i=new Date;if(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0),aP.t($S[s]));if(i.length===1)n.push(P.t("sch_desc_onWeekday",i[0]));else if(i.length===7)n.push(P.t("sch_desc_everyDay"));else{const s=i.pop();n.push(P.t("sch_desc_onWeekdays",i.join(", "),s))}}}else n.push(P.t("sch_desc_everyDay"));else n.push(P.t("sch_desc_everyNDay",r.period.days.toString()));else if(r.period.weeks)if(r.period.weeks===1?n.push(P.t("sch_desc_everyWeek")):n.push(P.t("sch_desc_everyNWeeks",r.period.weeks.toString())),r.period.dows){const a=JSON.parse(r.period.dows);if(a.length===2&&a[0]===0&&a[1]===6)n.push(P.t("sch_desc_onWeekends"));else if(a.length===5&&a[0]===1&&a[1]===2&&a[2]===3&&a[3]===4&&a[4]===5)n.push(P.t("sch_desc_onWorkdays"));else{const i=a.map(s=>P.t($S[s]));if(i.length===1)n.push(P.t("sch_desc_onWeekday",i[0]));else if(i.length===7)n.push(P.t("sch_desc_everyDay"));else{const s=i.pop();n.push(P.t("sch_desc_onWeekdays",i.join(", "),s))}}}else return P.t("sch_desc_never");else if(r.period.months){if(r.period.dates){const a=JSON.parse(r.period.dates);if(a.length===1)n.push(P.t("sch_desc_onDate",a[0]));else if(a.length===31)n.push(P.t("sch_desc_onEveryDate"));else if(a.length){const i=a.pop();n.push(P.t("sch_desc_onDates",a.join(", "),i))}else return P.t("sch_desc_never")}else n.push(P.t("sch_desc_onEveryDate"));if(r.period.months===1)n.push(P.t("sch_desc_everyMonth"));else if(typeof r.period.months=="number")n.push(P.t("sch_desc_everyNMonths",r.period.months.toString()));else{const i=JSON.parse(r.period.months).map(s=>P.t(jg[s-1]));if(!i.length)return P.t("sch_desc_never");if(i.length===1)n.push(P.t("sch_desc_onMonth",i[0]));else if(i.length===12)n.push(P.t("sch_desc_everyMonth"));else{const s=i.pop();n.push(P.t("sch_desc_onMonths",i.join(", "),s))}}}else r.period.years&&(r.period.years===1?n.push(P.t("sch_desc_everyYear")):n.push(P.t("sch_desc_everyNYears",r.period.years.toString())),n.push(P.t("sch_desc_onDate",r.period.yearDate.toString(),r.period.yearMonth?P.t(jg[r.period.yearMonth-1]):P.t("sch_desc_everyMonth"))));if(r.time.exactTime)Hp.includes(r.time.start)?n.push(P.t("sch_desc_atTime",P.t(`sch_astro_${r.time.start}`))):n.push(P.t("sch_desc_atTime",r.time.start));else{r.time.mode===kS.minutes?r.time.interval===1?n.push(P.t("sch_desc_everyMinute")):n.push(P.t("sch_desc_everyNMinutes",r.time.interval.toString())):r.time.interval===1?n.push(P.t("sch_desc_everyHour")):n.push(P.t("sch_desc_everyNHours",r.time.interval.toString()));const a=Hp.indexOf(r.time.start)!==-1?P.t(`sch_astro_${r.time.start}`):r.time.start,i=Hp.indexOf(r.time.end)!==-1?P.t(`sch_astro_${r.time.end}`):r.time.end;(a!=="00:00"||i!=="24:00"&&i!=="23:59")&&n.push(P.t("sch_desc_intervalFromTo",a,i))}return r.period.once||(o.getTime()>Date.now()&&r.valid.to?n.push(P.t("sch_desc_validFromTo",r.valid.from,r.valid.to)):o.getTime()>Date.now()?n.push(P.t("sch_desc_validFrom",r.valid.from)):r.valid.to&&n.push(P.t("sch_desc_validTo",r.valid.to))),n.join(" ")}getTimePeriodElements(){const r=this.state.schedule;let n=!1,o=!1,a=!1,i=!0;return r.time.start==="00:00"&&r.time.end==="24:00"?(n=!0,i=!1):r.time.start==="sunrise"?(o=!0,i=!1):r.time.start==="sunset"&&(a=!0,i=!1),m.createElement("div",{key:"timePeriod",style:we.rowDiv},m.createElement("div",{style:we.modeDiv},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!r.time.exactTime,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.exactTime=!1,this.onChange(s)}}),label:P.t("sch_intervalTime")})),m.createElement("div",{style:we.settingsDiv},m.createElement("div",{style:we.settingsDiv},!r.time.exactTime&&m.createElement("div",null,m.createElement("div",null,m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!i,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="00:00",s.time.end="23:59",this.onChange(s)}}),label:i?"":P.t("sch_fromTo")}),i&&[m.createElement(Ht,{variant:"standard",style:{...we.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:s=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:s.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:s=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start=s.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:P.t("sch_from"),margin:"normal"}),m.createElement(Ht,{variant:"standard",style:we.inputTime,key:"exactTimeTo",type:"time",sx:s=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:s.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:s=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.end=s.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:P.t("sch_to"),margin:"normal"})])),!r.time.exactTime&&m.createElement("div",null,m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!n,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="00:00",s.time.end="24:00",this.onChange(s)}}),label:P.t("sch_wholeDay")})),!r.time.exactTime&&m.createElement("div",null,m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!o,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="sunrise",s.time.end="sunset",this.onChange(s)}}),label:P.t("sch_astroDay")})),!r.time.exactTime&&m.createElement("div",null,m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!a,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="sunset",s.time.end="sunrise",this.onChange(s)}}),label:P.t("sch_astroNight")}))),!r.time.exactTime&&this.getPeriodSettingsMinutes(i)))}getTimeExactElements(){const r=Hp.includes(this.state.schedule.time.start);return m.createElement("div",{key:"timeExact",style:we.rowDiv},m.createElement("div",{style:we.modeDiv},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.exactTime=!0,this.onChange(n)}}),label:P.t("sch_exactTime")})),this.state.schedule.time.exactTime&&m.createElement(Bn,{variant:"standard",value:r?this.state.schedule.time.start:"00:00",onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.start=n.target.value,this.onChange(o)}},m.createElement(Xt,{key:"specific",value:"00:00"},P.t("sch_specificTime")),Hp.map(n=>m.createElement(Xt,{key:n,value:n},P.t(`sch_astro_${n}`)))),this.state.schedule.time.exactTime&&!r&&m.createElement("div",{style:we.settingsDiv},m.createElement(Ht,{variant:"standard",style:we.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.start=n.target.value,this.onChange(o)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return m.createElement("hr",{style:we.hr})}getPeriodModes(){const r=this.state.schedule,n=!r.period.dows&&!r.period.months&&!r.period.dates&&!r.period.years&&!r.period.days&&!r.period.weeks;return n&&!r.period.once&&(r.period.once=gn.now2string(!0)),[m.createElement("div",{key:"once",style:{...we.rowDiv,...we.rowOnce}},m.createElement("div",{style:we.modeDiv},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!n,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.once=o.period.once||gn.now2string(!0),o.period.dows="",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,this.onChange(o)}}),label:P.t("sch_periodOnce")})),n&&m.createElement("div",{style:we.settingsDiv},m.createElement(Ht,{variant:"standard",style:we.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:ES(r.period.once),onChange:o=>{this.timerOnce&&clearTimeout(this.timerOnce),this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(a=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const i=JSON.parse(JSON.stringify(this.state.schedule)),s=gn.string2date(a);s.toString()!=="Invalid Date"&&(i.period.once=`${$i(s.getDate())}.${$i(s.getMonth()+1)}.${s.getFullYear()}`,this.onChange(i))},1500,o.target.value)},slotProps:{inputLabel:{shrink:!0}},label:P.t("sch_at"),margin:"normal"}))),m.createElement(Re,{component:"div",key:"days",sx:ue.getStyle(this.props.theme,we.rowDiv,we.rowDays)},m.createElement("div",{style:we.modeDiv},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!r.period.days,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=1,o.period.dows="",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.once="",this.onChange(o)}}),label:P.t("sch_periodDaily")})),m.createElement("div",{style:we.settingsDiv},this.getPeriodSettingsDaily(),r.period.days?this.getPeriodSettingsWeekdays():null)),m.createElement(Re,{component:"div",key:"weeks",sx:ue.getStyle(this.props.theme,we.rowDiv,we.rowDows)},m.createElement("div",{style:we.modeDiv},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!r.period.weeks,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=r.period.weeks?0:1,o.period.dows=r.period.dows||"[0]",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:P.t("sch_periodWeekly")})),m.createElement(Re,{component:"div",style:we.settingsDiv},m.createElement("div",{style:we.settingsDiv},this.getPeriodSettingsWeekly()),m.createElement(Re,{component:"div",sx:ue.getStyle(this.props.theme,we.settingsDiv,we.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),m.createElement(Re,{component:"div",key:"months",sx:ue.getStyle(this.props.theme,we.rowDiv,we.rowMonths)},m.createElement("div",{style:we.modeDiv},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!r.period.months,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=1,o.period.dows="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:P.t("sch_periodMonthly")})),m.createElement("div",{style:we.settingsDiv},this.getPeriodSettingsMonthly(),r.period.months?m.createElement(Re,null,m.createElement(Re,{component:"div",sx:ue.getStyle(this.props.theme,we.settingsDiv,we.rowMonthsDates)},m.createElement(St,{control:m.createElement(yr,{style:we.inputRadio,checked:!!r.period.dates,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=o.period.months||1;const a=[];for(let i=1;i<=31;i++)a.push(i);o.period.dates=o.period.dates||JSON.stringify(a),o.period.dows="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:P.t("sch_periodDates")})),m.createElement(Re,{component:"div",sx:ue.getStyle(this.props.theme,we.settingsDiv,we.rowMonthsDates)},this.getPeriodSettingsDates())):null)),m.createElement(Re,{component:"div",key:"years",sx:ue.getStyle(this.props.theme,we.rowDiv,we.rowYears)},m.createElement("div",{style:we.modeDiv},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:!!r.period.years,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=1,o.period.yearDate=1,o.period.yearMonth=1,o.period.dows="",o.period.months=0,o.period.dates="",o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:P.t("sch_periodYearly")})),m.createElement("div",{style:we.settingsDiv},m.createElement("div",{style:we.settingsDiv},this.getPeriodSettingsYearly()),!!r.period.years&&m.createElement("div",{style:we.settingsDiv},m.createElement("span",null,P.t("sch_on")),m.createElement(ya,{key:"input",value:this.state.schedule.period.yearDate,style:we.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearDate=parseInt(o.target.value,10),a.period.yearDate<1&&(a.period.yearDate=31),a.period.yearDate>31&&(a.period.yearDate=1),this.onChange(a)}}),m.createElement(Bn,{variant:"standard",value:r.period.yearMonth,onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearMonth=o.target.value,this.onChange(a)}},m.createElement(Xt,{key:"every",value:0},P.t("sch_yearEveryMonth")),jg.map((o,a)=>m.createElement(Xt,{key:o,value:a+1},P.t(o)))))))]}getPeriodSettingsMinutes(r){return m.createElement("div",{style:{display:"inline-block",marginTop:r?15:"inherit"}},m.createElement("label",{style:{marginLeft:4,marginRight:4}},P.t("sch_every")),m.createElement(ya,{value:this.state.schedule.time.interval,style:{...we.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.interval=parseInt(n.target.value,10),this.onChange(o)}}),m.createElement(Bn,{variant:"standard",value:this.state.schedule.time.mode,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.mode=n.target.value,this.onChange(o)}},m.createElement(Xt,{value:kS.minutes},P.t("sch_periodMinutes")),m.createElement(Xt,{value:kS.hours},P.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const r=this.state.schedule,n=r.period.dows&&r.period.dows!=="[1, 2, 3, 4, 5]"&&r.period.dows!=="[0, 6]";return[m.createElement("div",{key:"workdays"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[1, 2, 3, 4, 5]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:P.t("sch_periodWorkdays")})),m.createElement("div",{key:"weekend"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.dows==="[0, 6]",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[0, 6]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:P.t("sch_periodWeekend")})),m.createElement("div",{key:"specific",style:{verticalAlign:"top"}},m.createElement(St,{style:{verticalAlign:"top"},control:m.createElement(ur,{style:we.inputRadio,checked:!!n,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[0, 1, 2, 3, 4, 5, 6]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:P.t("sch_periodWeekdays")}),n&&(r.period.days===1||r.period.weeks)&&m.createElement(Kb,{row:!0,style:{...we.inputGroup,width:150}},[1,2,3,4,5,6,0].map(o=>m.createElement(St,{key:`specific_${o}`,style:we.inputGroupElement,control:m.createElement(yr,{style:we.inputSmallCheck,checked:r.period.dows.includes(o.toString()),onChange:a=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let s;try{s=JSON.parse(i.period.dows)}catch{s=[]}a.target.checked&&!s.includes(o)?s.push(o):!a.target.checked&&s.includes(o)&&s.splice(s.indexOf(o),1),s.sort((l,d)=>l-d),i.period.dows=JSON.stringify(s),i.period.days&&(i.period.days=1),this.onChange(i)}}),label:P.t($S[o])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const r=this.state.schedule;return[m.createElement("div",{key:"every_day"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.days===1&&!r.period.dows,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=1,n.period.dows="",this.onChange(n)}}),label:P.t("sch_periodEveryDay")})),m.createElement("div",{key:"everyN_day"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.days>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=2,n.period.dows="",this.onChange(n)}}),label:P.t("sch_periodEvery")}),r.period.days>1&&[m.createElement(ya,{key:"input",value:this.state.schedule.period.days,style:we.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=parseInt(n.target.value,10),o.period.dows="",this.onChange(o)}}),m.createElement("span",{key:"span",style:{paddingRight:10}},P.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const r=this.state.schedule;return[m.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},m.createElement("div",null,m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.weeks===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=1,this.onChange(n)}}),label:P.t("sch_periodEveryWeek")})),m.createElement("div",null,m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.weeks>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=2,this.onChange(n)}}),label:P.t("sch_periodEvery")}),r.period.weeks>1&&[m.createElement(ya,{key:"input",value:this.state.schedule.period.weeks,style:we.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=parseInt(n.target.value,10),this.onChange(o)}}),m.createElement("span",{key:"text"},P.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const r=this.state.schedule,n=[];for(let a=1;a<=31;a++)n.push(a);const o=JSON.parse(r.period.dates);return m.createElement(Kb,{row:!0,style:{...we.inputGroup,maxWidth:620}},m.createElement(St,{style:we.inputDateDay,control:m.createElement(yr,{style:we.inputDateDayCheck,checked:o.length===31,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),i=[];for(let s=1;s<=31;s++)i.push(s);a.period.dates=JSON.stringify(i),this.onChange(a)}}),label:P.t("sch_all")}),m.createElement(St,{style:we.inputDateDay,control:m.createElement(yr,{style:we.inputDateDayCheck,checked:!o.length,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.dates="[]",this.onChange(a)}}),label:P.t("sch_no_one")}),o.length!==31&&!!o.length&&m.createElement(St,{style:we.inputDateDay,control:m.createElement(yr,{style:we.inputDateDayCheck,checked:!1,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),i=[],s=JSON.parse(a.period.dates);for(let l=1;l<=31;l++)s.includes(l)||i.push(l);i.sort((l,d)=>l-d),a.period.dates=JSON.stringify(i),this.onChange(a)}}),label:P.t("sch_invert")}),m.createElement("div",null),n.map(a=>m.createElement(St,{key:`date_${a}`,style:a?we.inputDateDay:{...we.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:m.createElement(yr,{style:we.inputDateDayCheck,checked:JSON.parse(r.period.dates).includes(a),onChange:i=>{const s=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(s.period.dates)}catch{l=[]}i.target.checked&&!l.includes(a)?l.push(a):!i.target.checked&&l.includes(a)&&l.splice(l.indexOf(a),1),l.sort((d,h)=>d-h),s.period.dates=JSON.stringify(l),this.onChange(s)}}),label:a<10?[m.createElement("span",{key:"0",style:{opacity:0}},"0"),m.createElement("span",{key:"num"},a)]:a})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const r=this.state.schedule,n=typeof r.period.months=="string"?JSON.parse(r.period.months):[];return[m.createElement("div",{key:"every"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:typeof r.period.months=="number"&&r.period.months===1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=1,this.onChange(r)}}),label:P.t("sch_periodEveryMonth")})),m.createElement("div",{key:"everyN"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:typeof r.period.months=="number"&&r.period.months>1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=2,this.onChange(o)}}),label:P.t("sch_periodEvery")}),typeof r.period.months=="number"&&r.period.months>1&&[m.createElement(ya,{key:"input",value:r.period.months,style:we.inputEvery,type:"number",inputProps:{min:2},onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=parseInt(o.target.value,10),a.period.months<1&&(a.period.months=1),this.onChange(a)}}),m.createElement("span",{key:"text"},P.t("sch_periodMonth"))]),m.createElement("div",{key:"specific",style:{verticalAlign:"top"}},m.createElement(St,{style:{verticalAlign:"top"},control:m.createElement(ur,{style:we.inputRadio,checked:typeof r.period.months=="string",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(o)}}),label:P.t("sch_periodSpecificMonths")}),typeof r.period.months=="string"&&m.createElement(Kb,{row:!0,style:we.inputGroup},m.createElement(St,{style:we.inputDateDay,control:m.createElement(yr,{style:we.inputDateDayCheck,checked:n.length===12,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[];for(let i=1;i<=12;i++)a.push(i);o.period.months=JSON.stringify(a),this.onChange(o)}}),label:P.t("sch_all")}),m.createElement(St,{style:we.inputDateDay,control:m.createElement(yr,{style:we.inputDateDayCheck,checked:!n.length,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months="[]",this.onChange(o)}}),label:P.t("sch_no_one")}),n.length!==12&&!!n.length&&m.createElement(St,{style:we.inputDateDay,control:m.createElement(yr,{style:we.inputDateDayCheck,checked:!1,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[],i=JSON.parse(o.period.months);for(let s=1;s<=12;s++)i.includes(s)||a.push(s);a.sort((s,l)=>s-l),o.period.months=JSON.stringify(a),this.onChange(o)}}),label:P.t("sch_invert")}),m.createElement("div",null),jg.map((o,a)=>m.createElement(St,{key:`month_${a}`,style:we.inputGroupElement,control:m.createElement(yr,{style:we.inputSmallCheck,checked:typeof r.period.months=="string"?JSON.parse(r.period.months).includes(a+1):r.period.months===a,onChange:i=>{const s=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(s.period.months)}catch{l=[]}i.target.checked&&!l.includes(a+1)?l.push(a+1):!i.target.checked&&l.includes(a+1)&&l.splice(l.indexOf(a+1),1),l.sort((d,h)=>d-h),s.period.months=JSON.stringify(l),this.onChange(s)}}),label:P.t(o)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const r=this.state.schedule;return[m.createElement("div",{key:"year"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.years===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=1,this.onChange(n)}}),label:P.t("sch_periodEveryYear")})),m.createElement("div",{key:"every"},m.createElement(St,{control:m.createElement(ur,{style:we.inputRadio,checked:r.period.years>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=2,this.onChange(n)}}),label:P.t("sch_periodEvery")}),r.period.years>1&&[m.createElement(ya,{key:"input",value:this.state.schedule.period.years,style:we.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=parseInt(n.target.value,10),o.period.years<1&&(o.period.years=1),this.onChange(o)}}),m.createElement("span",{key:"text"},P.t("sch_periodYear"))])]}static now2string(r){const n=new Date;return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),r&&(n.setDate(n.getDate()+2),n.setMilliseconds(n.getMilliseconds()-1)),`${$i(n.getDate())}.${$i(n.getMonth()+1)}.${$i(n.getFullYear())}`}static string2date(r){let n=r.split(".");return n.length===1?(n=r.split("-"),new Date(parseInt(n[0],10),parseInt(n[1],10)-1,parseInt(n[2],10))):new Date(parseInt(n[2],10),parseInt(n[1],10)-1,parseInt(n[0],10))}getValidSettings(){const r=this.state.schedule;return m.createElement("div",{style:we.rowDiv},m.createElement("div",{style:{...we.modeDiv,verticalAlign:"middle"}},m.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},P.t("sch_valid")),m.createElement("span",null,P.t("sch_validFrom"))),m.createElement("div",{style:we.settingsDiv},m.createElement(Ht,{variant:"standard",style:{...we.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:ES(r.valid.from),type:"date",onChange:n=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(o=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),i=gn.string2date(o);i.toString()!=="Invalid Date"&&(a.valid.from=`${$i(i.getDate())}.${$i(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),m.createElement(St,{control:m.createElement(yr,{style:we.inputRadio,checked:!!r.valid.to,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.valid.to=n.valid.to?"":gn.now2string(!0),this.onChange(n)}}),label:P.t("sch_validTo")}),!!r.valid.to&&m.createElement(Ht,{variant:"standard",inputRef:this.refTo,style:{...we.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:ES(r.valid.to),onChange:n=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(o=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),i=gn.string2date(o);i.toString()!=="Invalid Date"&&(a.valid.to=`${$i(i.getDate())}.${$i(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return m.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},m.createElement("div",null,this.state.desc),m.createElement("div",{style:we.scrollWindow},m.createElement("h5",null,P.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),gn.getDivider(),m.createElement("h5",null,P.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&gn.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}class OV extends A.Component{constructor(r){super(r);X(this,"dialogName");X(this,"filters");X(this,"filterFunc");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectID.${this.dialogName}`;const n=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(n)}catch{this.filters={}}r.filters&&(this.filters={...this.filters,...r.filters||{}});let o=this.props.selected||[];if(Array.isArray(o)||(o=[o]),o=o.filter(a=>a),r.filterFunc)if(typeof r.filterFunc=="string")try{this.filterFunc=new Function("obj",r.filterFunc)}catch{console.error(`Cannot parse filter function: "obj => ${r.filterFunc}"`),this.filterFunc=void 0}else this.filterFunc=r.filterFunc;this.state={selected:o,name:""}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect?this.state.selected:this.state.selected[0]||"",this.state.name),this.props.onClose()}render(){let r;return this.state.name||this.state.selected.length?this.state.selected.length===1?r=[m.createElement("span",{key:"selected"},P.t("ra_Selected")," "),m.createElement("span",{key:"id",style:{fontWeight:"bold",fontStyle:"italic"}},(this.state.name||this.state.selected[0])+(this.state.name?` [${this.state.selected[0]}]`:""))]:r=[m.createElement("span",{key:"selected"},P.t("ra_Selected")," "),m.createElement("span",{key:"id",style:{fontWeight:"bold",fontStyle:"italic"}},P.t("%s items",this.state.selected.length.toString()))]:r=this.props.title||P.t("ra_Please select object ID..."),m.createElement(or,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{height:"95%",p:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)"}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectid_title"},m.createElement(_r,{id:"ar_dialog_selectid_title",style:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}},r),m.createElement(Wr,{style:{height:"100%",overflow:"hidden",padding:"8px 4px"}},m.createElement(v_t,{foldersFirst:this.props.foldersFirst,imagePrefix:this.props.imagePrefix||this.props.prefix,dateFormat:this.props.dateFormat,defaultFilters:this.filters,dialogName:this.dialogName,isFloatComma:this.props.isFloatComma,showExpertButton:this.props.showExpertButton!==void 0?this.props.showExpertButton:!0,expertMode:this.props.expertMode,columns:this.props.columns||["name","type","role","room","func","val"],types:this.props.types?Array.isArray(this.props.types)?this.props.types:[this.props.types]:["state"],root:this.props.root,t:P.t,lang:this.props.lang||P.getLanguage(),socket:this.props.socket,selected:this.state.selected,multiSelect:this.props.multiSelect,notEditable:this.props.notEditable===void 0?!0:this.props.notEditable,themeName:this.props.themeName,themeType:this.props.themeType,theme:this.props.theme,customFilter:this.props.customFilter,allowNonObjects:this.props.allowNonObjects,onFilterChanged:n=>{this.filters=n,(window._localStorage||window.localStorage).setItem(this.dialogName,JSON.stringify(n))},onSelect:(n,o,a)=>{let i;Array.isArray(n)?i=n:i=[n],JSON.stringify(i)!==JSON.stringify(this.state.selected)?this.setState({selected:i,name:o},()=>a&&this.handleOk()):a&&this.handleOk()},filterFunc:this.filterFunc,title:"",classes:{}})),m.createElement(pr,null,m.createElement(tt,{id:`ar_dialog_selectid_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),startIcon:m.createElement(Ea,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||P.t("ra_Ok")),m.createElement(tt,{id:`ar_dialog_selectid_cancel_${this.props.dialogName||""}`,color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:m.createElement(Nf,null)},this.props.cancel||P.t("ra_Cancel"))))}}/*! * Cropper.js v1.6.2 * https://fengyuanchen.github.io/cropperjs * @@ -772,7 +772,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * Date: 2024-04-21T07:43:05.335Z */function Sz(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function DV(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r
',N_t=Number.isNaN||oi.isNaN;function Nt(t){return typeof t=="number"&&!N_t(t)}var Rz=function(e){return e>0&&e<1/0};function TS(t){return typeof t>"u"}function Fl(t){return D2(t)==="object"&&t!==null}var R_t=Object.prototype.hasOwnProperty;function Gd(t){if(!Fl(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&R_t.call(r,"isPrototypeOf")}catch{return!1}}function eo(t){return typeof t=="function"}var j_t=Array.prototype.slice;function FV(t){return Array.from?Array.from(t):j_t.call(t)}function en(t,e){return t&&eo(e)&&(Array.isArray(t)||Nt(t.length)?FV(t).forEach(function(r,n){e.call(t,r,n,t)}):Fl(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var Ir=Object.assign||function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o0&&n.forEach(function(a){Fl(a)&&Object.keys(a).forEach(function(i){e[i]=a[i]})}),e},L_t=/\.\d*(?:0|9){12}\d*$/;function nu(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return L_t.test(t)?Math.round(t*e)/e:t}var z_t=/^width|height|left|top|marginLeft|marginTop$/;function $s(t,e){var r=t.style;en(e,function(n,o){z_t.test(o)&&Nt(n)&&(n="".concat(n,"px")),r[o]=n})}function F_t(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function dn(t,e){if(e){if(Nt(t.length)){en(t,function(n){dn(n,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?r.indexOf(e)<0&&(t.className="".concat(r," ").concat(e)):t.className=e}}function ti(t,e){if(e){if(Nt(t.length)){en(t,function(r){ti(r,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function Xd(t,e,r){if(e){if(Nt(t.length)){en(t,function(n){Xd(n,e,r)});return}r?dn(t,e):ti(t,e)}}var B_t=/([a-z\d])([A-Z])/g;function DD(t){return t.replace(B_t,"$1-$2").toLowerCase()}function z2(t,e){return Fl(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(DD(e)))}function hf(t,e,r){Fl(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(DD(e)),r)}function W_t(t,e){if(Fl(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(DD(e)))}var BV=/\s\s*/,WV=function(){var t=!1;if(l_){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(a){e=a}});oi.addEventListener("test",r,n),oi.removeEventListener("test",r,n)}return t}();function fa(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(BV).forEach(function(a){if(!WV){var i=t.listeners;i&&i[a]&&i[a][r]&&(o=i[a][r],delete i[a][r],Object.keys(i[a]).length===0&&delete i[a],Object.keys(i).length===0&&delete t.listeners)}t.removeEventListener(a,o,n)})}function Bo(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(BV).forEach(function(a){if(n.once&&!WV){var i=t.listeners,s=i===void 0?{}:i;o=function(){delete s[a][r],t.removeEventListener(a,o,n);for(var d=arguments.length,h=new Array(d),u=0;uMath.abs(r)&&(r=f)})}),r}function zg(t,e){var r=t.pageX,n=t.pageY,o={endX:r,endY:n};return e?o:DV({startX:r,startY:n},o)}function V_t(t){var e=0,r=0,n=0;return en(t,function(o){var a=o.startX,i=o.startY;e+=a,r+=i,n+=1}),e/=n,r/=n,{pageX:e,pageY:r}}function ks(t){var e=t.aspectRatio,r=t.height,n=t.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",a=Rz(n),i=Rz(r);if(a&&i){var s=r*e;o==="contain"&&s>n||o==="cover"&&s90?{width:l,height:s}:{width:s,height:l}}function G_t(t,e,r,n){var o=e.aspectRatio,a=e.naturalWidth,i=e.naturalHeight,s=e.rotate,l=s===void 0?0:s,d=e.scaleX,h=d===void 0?1:d,u=e.scaleY,f=u===void 0?1:u,g=r.aspectRatio,y=r.naturalWidth,b=r.naturalHeight,x=n.fillColor,S=x===void 0?"transparent":x,T=n.imageSmoothingEnabled,E=T===void 0?!0:T,$=n.imageSmoothingQuality,k=$===void 0?"low":$,O=n.maxWidth,M=O===void 0?1/0:O,R=n.maxHeight,j=R===void 0?1/0:R,I=n.minWidth,z=I===void 0?0:I,W=n.minHeight,L=W===void 0?0:W,F=document.createElement("canvas"),H=F.getContext("2d"),q=ks({aspectRatio:g,width:M,height:j}),ee=ks({aspectRatio:g,width:z,height:L},"cover"),Y=Math.min(q.width,Math.max(ee.width,y)),G=Math.min(q.height,Math.max(ee.height,b)),te=ks({aspectRatio:o,width:M,height:j}),B=ks({aspectRatio:o,width:z,height:L},"cover"),K=Math.min(te.width,Math.max(B.width,a)),he=Math.min(te.height,Math.max(B.height,i)),fe=[-K/2,-he/2,K,he];return F.width=nu(Y),F.height=nu(G),H.fillStyle=S,H.fillRect(0,0,Y,G),H.save(),H.translate(Y/2,G/2),H.rotate(l*Math.PI/180),H.scale(h,f),H.imageSmoothingEnabled=E,H.imageSmoothingQuality=k,H.drawImage.apply(H,[t].concat(IV(fe.map(function(ge){return Math.floor(nu(ge))})))),H.restore(),F}var UV=String.fromCharCode;function X_t(t,e,r){var n="";r+=e;for(var o=e;o0;)r.push(UV.apply(null,FV(o.subarray(0,n)))),o=o.subarray(n);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}function Z_t(t){var e=new DataView(t),r;try{var n,o,a;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var i=e.byteLength,s=2;s+1=8&&(a=d+u)}}}if(a){var f=e.getUint16(a,n),g,y;for(y=0;y=0?a:LV),height:Math.max(n.offsetHeight,i>=0?i:zV)};this.containerData=s,$s(o,{width:s.width,height:s.height}),dn(e,to),ti(o,to)},initCanvas:function(){var e=this.containerData,r=this.imageData,n=this.options.viewMode,o=Math.abs(r.rotate)%180===90,a=o?r.naturalHeight:r.naturalWidth,i=o?r.naturalWidth:r.naturalHeight,s=a/i,l=e.width,d=e.height;e.height*s>e.width?n===3?l=e.height*s:d=e.width/s:n===3?d=e.width/s:l=e.height*s;var h={aspectRatio:s,naturalWidth:a,naturalHeight:i,width:l,height:d};this.canvasData=h,this.limited=n===1||n===2,this.limitCanvas(!0,!0),h.width=Math.min(Math.max(h.width,h.minWidth),h.maxWidth),h.height=Math.min(Math.max(h.height,h.minHeight),h.maxHeight),h.left=(e.width-h.width)/2,h.top=(e.height-h.height)/2,h.oldLeft=h.left,h.oldTop=h.top,this.initialCanvasData=Ir({},h)},limitCanvas:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,i=this.cropBoxData,s=n.viewMode,l=a.aspectRatio,d=this.cropped&&i;if(e){var h=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;s>1?(h=Math.max(h,o.width),u=Math.max(u,o.height),s===3&&(u*l>h?h=u*l:u=h/l)):s>0&&(h?h=Math.max(h,d?i.width:0):u?u=Math.max(u,d?i.height:0):d&&(h=i.width,u=i.height,u*l>h?h=u*l:u=h/l));var f=ks({aspectRatio:l,width:h,height:u});h=f.width,u=f.height,a.minWidth=h,a.minHeight=u,a.maxWidth=1/0,a.maxHeight=1/0}if(r)if(s>(d?0:1)){var g=o.width-a.width,y=o.height-a.height;a.minLeft=Math.min(0,g),a.minTop=Math.min(0,y),a.maxLeft=Math.max(0,g),a.maxTop=Math.max(0,y),d&&this.limited&&(a.minLeft=Math.min(i.left,i.left+(i.width-a.width)),a.minTop=Math.min(i.top,i.top+(i.height-a.height)),a.maxLeft=i.left,a.maxTop=i.top,s===2&&(a.width>=o.width&&(a.minLeft=Math.min(0,g),a.maxLeft=Math.max(0,g)),a.height>=o.height&&(a.minTop=Math.min(0,y),a.maxTop=Math.max(0,y))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=o.width,a.maxTop=o.height},renderCanvas:function(e,r){var n=this.canvasData,o=this.imageData;if(r){var a=q_t({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),i=a.width,s=a.height,l=n.width*(i/n.naturalWidth),d=n.height*(s/n.naturalHeight);n.left-=(l-n.width)/2,n.top-=(d-n.height)/2,n.width=l,n.height=d,n.aspectRatio=i/s,n.naturalWidth=i,n.naturalHeight=s,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heightr.width?a.height=a.width/n:a.width=a.height*n),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*o),a.height=Math.max(a.minHeight,a.height*o),a.left=r.left+(r.width-a.width)/2,a.top=r.top+(r.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=Ir({},a)},limitCropBox:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,i=this.cropBoxData,s=this.limited,l=n.aspectRatio;if(e){var d=Number(n.minCropBoxWidth)||0,h=Number(n.minCropBoxHeight)||0,u=s?Math.min(o.width,a.width,a.width+a.left,o.width-a.left):o.width,f=s?Math.min(o.height,a.height,a.height+a.top,o.height-a.top):o.height;d=Math.min(d,o.width),h=Math.min(h,o.height),l&&(d&&h?h*l>d?h=d/l:d=h*l:d?h=d/l:h&&(d=h*l),f*l>u?f=u/l:u=f*l),i.minWidth=Math.min(d,u),i.minHeight=Math.min(h,f),i.maxWidth=u,i.maxHeight=f}r&&(s?(i.minLeft=Math.max(0,a.left),i.minTop=Math.max(0,a.top),i.maxLeft=Math.min(o.width,a.left+a.width)-i.width,i.maxTop=Math.min(o.height,a.top+a.height)-i.height):(i.minLeft=0,i.minTop=0,i.maxLeft=o.width-i.width,i.maxTop=o.height-i.height))},renderCropBox:function(){var e=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=r.width&&n.height>=r.height?PV:TD),$s(this.cropBox,Ir({width:n.width,height:n.height},Rh({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),ou(this.element,P2,this.getData())}},t0t={initPreview:function(){var e=this.element,r=this.crossOrigin,n=this.options.preview,o=r?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",i=document.createElement("img");if(r&&(i.crossOrigin=r),i.src=o,i.alt=a,this.viewBox.appendChild(i),this.viewBoxImage=i,!!n){var s=n;typeof n=="string"?s=e.ownerDocument.querySelectorAll(n):n.querySelector&&(s=[n]),this.previews=s,en(s,function(l){var d=document.createElement("img");hf(l,Lg,{width:l.offsetWidth,height:l.offsetHeight,html:l.innerHTML}),r&&(d.crossOrigin=r),d.src=o,d.alt=a,d.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;"',l.innerHTML="",l.appendChild(d)})}},resetPreview:function(){en(this.previews,function(e){var r=z2(e,Lg);$s(e,{width:r.width,height:r.height}),e.innerHTML=r.html,W_t(e,Lg)})},preview:function(){var e=this.imageData,r=this.canvasData,n=this.cropBoxData,o=n.width,a=n.height,i=e.width,s=e.height,l=n.left-r.left-e.left,d=n.top-r.top-e.top;!this.cropped||this.disabled||($s(this.viewBoxImage,Ir({width:i,height:s},Rh(Ir({translateX:-l,translateY:-d},e)))),en(this.previews,function(h){var u=z2(h,Lg),f=u.width,g=u.height,y=f,b=g,x=1;o&&(x=f/o,b=a*x),a&&b>g&&(x=g/a,y=o*x,b=g),$s(h,{width:y,height:b}),$s(h.getElementsByTagName("img")[0],Ir({width:i*x,height:s*x},Rh(Ir({translateX:-l*x,translateY:-d*x},e))))}))}},r0t={bind:function(){var e=this.element,r=this.options,n=this.cropper;eo(r.cropstart)&&Bo(e,j2,r.cropstart),eo(r.cropmove)&&Bo(e,R2,r.cropmove),eo(r.cropend)&&Bo(e,N2,r.cropend),eo(r.crop)&&Bo(e,P2,r.crop),eo(r.zoom)&&Bo(e,L2,r.zoom),Bo(n,Tz,this.onCropStart=this.cropStart.bind(this)),r.zoomable&&r.zoomOnWheel&&Bo(n,Mz,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&Bo(n,Ez,this.onDblclick=this.dblclick.bind(this)),Bo(e.ownerDocument,Oz,this.onCropMove=this.cropMove.bind(this)),Bo(e.ownerDocument,Dz,this.onCropEnd=this.cropEnd.bind(this)),r.responsive&&Bo(window,Iz,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,r=this.options,n=this.cropper;eo(r.cropstart)&&fa(e,j2,r.cropstart),eo(r.cropmove)&&fa(e,R2,r.cropmove),eo(r.cropend)&&fa(e,N2,r.cropend),eo(r.crop)&&fa(e,P2,r.crop),eo(r.zoom)&&fa(e,L2,r.zoom),fa(n,Tz,this.onCropStart),r.zoomable&&r.zoomOnWheel&&fa(n,Mz,this.onWheel,{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&fa(n,Ez,this.onDblclick),fa(e.ownerDocument,Oz,this.onCropMove),fa(e.ownerDocument,Dz,this.onCropEnd),r.responsive&&fa(window,Iz,this.onResize)}},n0t={resize:function(){if(!this.disabled){var e=this.options,r=this.container,n=this.containerData,o=r.offsetWidth/n.width,a=r.offsetHeight/n.height,i=Math.abs(o-1)>Math.abs(a-1)?o:a;if(i!==1){var s,l;e.restore&&(s=this.getCanvasData(),l=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(en(s,function(d,h){s[h]=d*i})),this.setCropBoxData(en(l,function(d,h){l[h]=d*i})))}}},dblclick:function(){this.disabled||this.options.dragMode===jV||this.setDragMode(F_t(this.dragBox,I2)?RV:OD)},wheel:function(e){var r=this,n=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50),e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*n,e)))},cropStart:function(e){var r=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(Nt(r)&&r!==1||Nt(n)&&n!==0||e.ctrlKey))){var o=this.options,a=this.pointers,i;e.changedTouches?en(e.changedTouches,function(s){a[s.identifier]=zg(s)}):a[e.pointerId||0]=zg(e),Object.keys(a).length>1&&o.zoomable&&o.zoomOnTouch?i=NV:i=z2(e.target,pf),D_t.test(i)&&ou(this.element,j2,{originalEvent:e,action:i})!==!1&&(e.preventDefault(),this.action=i,this.cropping=!1,i===MV&&(this.cropping=!0,dn(this.dragBox,Xv)))}},cropMove:function(e){var r=this.action;if(!(this.disabled||!r)){var n=this.pointers;e.preventDefault(),ou(this.element,R2,{originalEvent:e,action:r})!==!1&&(e.changedTouches?en(e.changedTouches,function(o){Ir(n[o.identifier]||{},zg(o,!0))}):Ir(n[e.pointerId||0]||{},zg(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var r=this.action,n=this.pointers;e.changedTouches?en(e.changedTouches,function(o){delete n[o.identifier]}):delete n[e.pointerId||0],r&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Xd(this.dragBox,Xv,this.cropped&&this.options.modal)),ou(this.element,N2,{originalEvent:e,action:r}))}}},o0t={change:function(e){var r=this.options,n=this.canvasData,o=this.containerData,a=this.cropBoxData,i=this.pointers,s=this.action,l=r.aspectRatio,d=a.left,h=a.top,u=a.width,f=a.height,g=d+u,y=h+f,b=0,x=0,S=o.width,T=o.height,E=!0,$;!l&&e.shiftKey&&(l=u&&f?u/f:1),this.limited&&(b=a.minLeft,x=a.minTop,S=b+Math.min(o.width,n.width,n.left+n.width),T=x+Math.min(o.height,n.height,n.top+n.height));var k=i[Object.keys(i)[0]],O={x:k.endX-k.startX,y:k.endY-k.startY},M=function(j){switch(j){case dl:g+O.x>S&&(O.x=S-g);break;case ul:d+O.xT&&(O.y=T-y);break}};switch(s){case TD:d+=O.x,h+=O.y;break;case dl:if(O.x>=0&&(g>=S||l&&(h<=x||y>=T))){E=!1;break}M(dl),u+=O.x,u<0&&(s=ul,u=-u,d-=u),l&&(f=u/l,h+=(a.height-f)/2);break;case hs:if(O.y<=0&&(h<=x||l&&(d<=b||g>=S))){E=!1;break}M(hs),f-=O.y,h+=O.y,f<0&&(s=Yc,f=-f,h-=f),l&&(u=f*l,d+=(a.width-u)/2);break;case ul:if(O.x<=0&&(d<=b||l&&(h<=x||y>=T))){E=!1;break}M(ul),u-=O.x,d+=O.x,u<0&&(s=dl,u=-u,d-=u),l&&(f=u/l,h+=(a.height-f)/2);break;case Yc:if(O.y>=0&&(y>=T||l&&(d<=b||g>=S))){E=!1;break}M(Yc),f+=O.y,f<0&&(s=hs,f=-f,h-=f),l&&(u=f*l,d+=(a.width-u)/2);break;case Up:if(l){if(O.y<=0&&(h<=x||g>=S)){E=!1;break}M(hs),f-=O.y,h+=O.y,u=f*l}else M(hs),M(dl),O.x>=0?gx&&(f-=O.y,h+=O.y):(f-=O.y,h+=O.y);u<0&&f<0?(s=Gp,f=-f,u=-u,h-=f,d-=u):u<0?(s=Vp,u=-u,d-=u):f<0&&(s=qp,f=-f,h-=f);break;case Vp:if(l){if(O.y<=0&&(h<=x||d<=b)){E=!1;break}M(hs),f-=O.y,h+=O.y,u=f*l,d+=a.width-u}else M(hs),M(ul),O.x<=0?d>b?(u-=O.x,d+=O.x):O.y<=0&&h<=x&&(E=!1):(u-=O.x,d+=O.x),O.y<=0?h>x&&(f-=O.y,h+=O.y):(f-=O.y,h+=O.y);u<0&&f<0?(s=qp,f=-f,u=-u,h-=f,d-=u):u<0?(s=Up,u=-u,d-=u):f<0&&(s=Gp,f=-f,h-=f);break;case Gp:if(l){if(O.x<=0&&(d<=b||y>=T)){E=!1;break}M(ul),u-=O.x,d+=O.x,f=u/l}else M(Yc),M(ul),O.x<=0?d>b?(u-=O.x,d+=O.x):O.y>=0&&y>=T&&(E=!1):(u-=O.x,d+=O.x),O.y>=0?y=0&&(g>=S||y>=T)){E=!1;break}M(dl),u+=O.x,f=u/l}else M(Yc),M(dl),O.x>=0?g=0&&y>=T&&(E=!1):u+=O.x,O.y>=0?y0?s=O.y>0?qp:Up:O.x<0&&(d-=u,s=O.y>0?Gp:Vp),O.y<0&&(h-=f),this.cropped||(ti(this.cropBox,to),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}E&&(a.width=u,a.height=f,a.left=d,a.top=h,this.action=s,this.renderCropBox()),en(i,function(R){R.startX=R.endX,R.startY=R.endY})}},a0t={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&dn(this.dragBox,Xv),ti(this.cropBox,to),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Ir({},this.initialImageData),this.canvasData=Ir({},this.initialCanvasData),this.cropBoxData=Ir({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Ir(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),ti(this.dragBox,Xv),dn(this.cropBox,to)),this},replace:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),r?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,en(this.previews,function(n){n.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,ti(this.cropper,$z)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,dn(this.cropper,$z)),this},destroy:function(){var e=this.element;return e[kr]?(e[kr]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=n.left,a=n.top;return this.moveTo(TS(e)?e:o+Number(e),TS(r)?r:a+Number(r))},moveTo:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.movable&&(Nt(e)&&(n.left=e,o=!0),Nt(r)&&(n.top=r,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(e,r){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,r)},zoomTo:function(e,r,n){var o=this.options,a=this.canvasData,i=a.width,s=a.height,l=a.naturalWidth,d=a.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&o.zoomable){var h=l*e,u=d*e;if(ou(this.element,L2,{ratio:e,oldRatio:i/l,originalEvent:n})===!1)return this;if(n){var f=this.pointers,g=HV(this.cropper),y=f&&Object.keys(f).length?V_t(f):{pageX:n.pageX,pageY:n.pageY};a.left-=(h-i)*((y.pageX-g.left-a.left)/i),a.top-=(u-s)*((y.pageY-g.top-a.top)/s)}else Gd(r)&&Nt(r.x)&&Nt(r.y)?(a.left-=(h-i)*((r.x-a.left)/i),a.top-=(u-s)*((r.y-a.top)/s)):(a.left-=(h-i)/2,a.top-=(u-s)/2);a.width=h,a.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),Nt(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var r=this.imageData.scaleY;return this.scale(e,Nt(r)?r:1)},scaleY:function(e){var r=this.imageData.scaleX;return this.scale(Nt(r)?r:1,e)},scale:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.scalable&&(Nt(e)&&(n.scaleX=e,o=!0),Nt(r)&&(n.scaleY=r,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.options,n=this.imageData,o=this.canvasData,a=this.cropBoxData,i;if(this.ready&&this.cropped){i={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height};var s=n.width/n.naturalWidth;if(en(i,function(h,u){i[u]=h/s}),e){var l=Math.round(i.y+i.height),d=Math.round(i.x+i.width);i.x=Math.round(i.x),i.y=Math.round(i.y),i.width=d-i.x,i.height=l-i.y}}else i={x:0,y:0,width:0,height:0};return r.rotatable&&(i.rotate=n.rotate||0),r.scalable&&(i.scaleX=n.scaleX||1,i.scaleY=n.scaleY||1),i},setData:function(e){var r=this.options,n=this.imageData,o=this.canvasData,a={};if(this.ready&&!this.disabled&&Gd(e)){var i=!1;r.rotatable&&Nt(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,i=!0),r.scalable&&(Nt(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,i=!0),Nt(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,i=!0)),i&&this.renderCanvas(!0,!0);var s=n.width/n.naturalWidth;Nt(e.x)&&(a.left=e.x*s+o.left),Nt(e.y)&&(a.top=e.y*s+o.top),Nt(e.width)&&(a.width=e.width*s),Nt(e.height)&&(a.height=e.height*s),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?Ir({},this.containerData):{}},getImageData:function(){return this.sized?Ir({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,r={};return this.ready&&en(["left","top","width","height","naturalWidth","naturalHeight"],function(n){r[n]=e[n]}),r},setCanvasData:function(e){var r=this.canvasData,n=r.aspectRatio;return this.ready&&!this.disabled&&Gd(e)&&(Nt(e.left)&&(r.left=e.left),Nt(e.top)&&(r.top=e.top),Nt(e.width)?(r.width=e.width,r.height=e.width/n):Nt(e.height)&&(r.height=e.height,r.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,r;return this.ready&&this.cropped&&(r={left:e.left,top:e.top,width:e.width,height:e.height}),r||{}},setCropBoxData:function(e){var r=this.cropBoxData,n=this.options.aspectRatio,o,a;return this.ready&&this.cropped&&!this.disabled&&Gd(e)&&(Nt(e.left)&&(r.left=e.left),Nt(e.top)&&(r.top=e.top),Nt(e.width)&&e.width!==r.width&&(o=!0,r.width=e.width),Nt(e.height)&&e.height!==r.height&&(a=!0,r.height=e.height),n&&(o?r.height=r.width/n:a&&(r.width=r.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 r=this.canvasData,n=G_t(this.image,this.imageData,r,e);if(!this.cropped)return n;var o=this.getData(e.rounded),a=o.x,i=o.y,s=o.width,l=o.height,d=n.width/Math.floor(r.naturalWidth);d!==1&&(a*=d,i*=d,s*=d,l*=d);var h=s/l,u=ks({aspectRatio:h,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),f=ks({aspectRatio:h,width:e.minWidth||0,height:e.minHeight||0},"cover"),g=ks({aspectRatio:h,width:e.width||(d!==1?n.width:s),height:e.height||(d!==1?n.height:l)}),y=g.width,b=g.height;y=Math.min(u.width,Math.max(f.width,y)),b=Math.min(u.height,Math.max(f.height,b));var x=document.createElement("canvas"),S=x.getContext("2d");x.width=nu(y),x.height=nu(b),S.fillStyle=e.fillColor||"transparent",S.fillRect(0,0,y,b);var T=e.imageSmoothingEnabled,E=T===void 0?!0:T,$=e.imageSmoothingQuality;S.imageSmoothingEnabled=E,$&&(S.imageSmoothingQuality=$);var k=n.width,O=n.height,M=a,R=i,j,I,z,W,L,F;M<=-s||M>k?(M=0,j=0,z=0,L=0):M<=0?(z=-M,M=0,j=Math.min(k,s+M),L=j):M<=k&&(z=0,j=Math.min(s,k-M),L=j),j<=0||R<=-l||R>O?(R=0,I=0,W=0,F=0):R<=0?(W=-R,R=0,I=Math.min(O,l+R),F=I):R<=O&&(W=0,I=Math.min(l,O-R),F=I);var H=[M,R,j,I];if(L>0&&F>0){var q=y/s;H.push(z*q,W*q,L*q,F*q)}return S.drawImage.apply(S,[n].concat(IV(H.map(function(ee){return Math.floor(nu(ee))})))),x},setAspectRatio:function(e){var r=this.options;return!this.disabled&&!TS(e)&&(r.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var r=this.options,n=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var a=e===OD,i=r.movable&&e===RV;e=a||i?e:jV,r.dragMode=e,hf(n,pf,e),Xd(n,I2,a),Xd(n,M2,i),r.cropBoxMovable||(hf(o,pf,e),Xd(o,I2,a),Xd(o,M2,i))}return this}},i0t=oi.Cropper,VV=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(__t(this,t),!e||!M_t.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=Ir({},Nz,Gd(r)&&r),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 b_t(t,[{key:"init",value:function(){var r=this.element,n=r.tagName.toLowerCase(),o;if(!r[kr]){if(r[kr]=this,n==="img"){if(this.isImg=!0,o=r.getAttribute("src")||"",this.originalUrl=o,!o)return;o=r.src}else n==="canvas"&&window.HTMLCanvasElement&&(o=r.toDataURL());this.load(o)}}},{key:"load",value:function(r){var n=this;if(r){this.url=r,this.imageData={};var o=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(A_t.test(r)){I_t.test(r)?this.read(Y_t(r)):this.clone();return}var i=new XMLHttpRequest,s=this.clone.bind(this);this.reloading=!0,this.xhr=i,i.onabort=s,i.onerror=s,i.ontimeout=s,i.onprogress=function(){i.getResponseHeader("content-type")!==Pz&&i.abort()},i.onload=function(){n.read(i.response)},i.onloadend=function(){n.reloading=!1,n.xhr=null},a.checkCrossOrigin&&jz(r)&&o.crossOrigin&&(r=Lz(r)),i.open("GET",r,!0),i.responseType="arraybuffer",i.withCredentials=o.crossOrigin==="use-credentials",i.send()}}},{key:"read",value:function(r){var n=this.options,o=this.imageData,a=Z_t(r),i=0,s=1,l=1;if(a>1){this.url=K_t(r,Pz);var d=Q_t(a);i=d.rotate,s=d.scaleX,l=d.scaleY}n.rotatable&&(o.rotate=i),n.scalable&&(o.scaleX=s,o.scaleY=l),this.clone()}},{key:"clone",value:function(){var r=this.element,n=this.url,o=r.crossOrigin,a=n;this.options.checkCrossOrigin&&jz(n)&&(o||(o="anonymous"),a=Lz(n)),this.crossOrigin=o,this.crossOriginUrl=a;var i=document.createElement("img");o&&(i.crossOrigin=o),i.src=a||n,i.alt=r.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),dn(i,kz),r.parentNode.insertBefore(i,r.nextSibling)}},{key:"start",value:function(){var r=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var o=oi.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(oi.navigator.userAgent),a=function(d,h){Ir(r.imageData,{naturalWidth:d,naturalHeight:h,aspectRatio:d/h}),r.initialImageData=Ir({},r.imageData),r.sizing=!1,r.sized=!0,r.build()};if(n.naturalWidth&&!o){a(n.naturalWidth,n.naturalHeight);return}var i=document.createElement("img"),s=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){a(i.width,i.height),o||s.removeChild(i)},i.src=n.src,o||(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;",s.appendChild(i))}},{key:"stop",value:function(){var r=this.image;r.onload=null,r.onerror=null,r.parentNode.removeChild(r),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var r=this.element,n=this.options,o=this.image,a=r.parentNode,i=document.createElement("div");i.innerHTML=P_t;var s=i.querySelector(".".concat(kr,"-container")),l=s.querySelector(".".concat(kr,"-canvas")),d=s.querySelector(".".concat(kr,"-drag-box")),h=s.querySelector(".".concat(kr,"-crop-box")),u=h.querySelector(".".concat(kr,"-face"));this.container=a,this.cropper=s,this.canvas=l,this.dragBox=d,this.cropBox=h,this.viewBox=s.querySelector(".".concat(kr,"-view-box")),this.face=u,l.appendChild(o),dn(r,to),a.insertBefore(s,r.nextSibling),ti(o,kz),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,dn(h,to),n.guides||dn(h.getElementsByClassName("".concat(kr,"-dashed")),to),n.center||dn(h.getElementsByClassName("".concat(kr,"-center")),to),n.background&&dn(s,"".concat(kr,"-bg")),n.highlight||dn(u,k_t),n.cropBoxMovable&&(dn(u,M2),hf(u,pf,TD)),n.cropBoxResizable||(dn(h.getElementsByClassName("".concat(kr,"-line")),to),dn(h.getElementsByClassName("".concat(kr,"-point")),to)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),eo(n.ready)&&Bo(r,Az,n.ready,{once:!0}),ou(r,Az)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var r=this.cropper.parentNode;r&&r.removeChild(this.cropper),ti(this.element,to)}}},{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=i0t,t}},{key:"setDefaults",value:function(r){Ir(Nz,Gd(r)&&r)}}])}();Ir(VV.prototype,e0t,t0t,r0t,n0t,o0t,a0t);var vl=function(){return vl=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&R.zoomTo(ee)}(M.currentTarget.cropper,E),x&&x(M)}}));S&&S(O)}return function(){var M,R;(R=(M=$.current)===null||M===void 0?void 0:M.cropper)===null||R===void 0||R.destroy()}},[$]);var k=function(O){return s0t.reduce(function(M,R){var j=M,I=R;return j[I],DS(j,[typeof I=="symbol"?I:I+""])},O)}(vl(vl({},T),{crossOrigin:l,src:a,alt:b}));return m.createElement("div",{style:i,className:s},m.createElement("img",vl({},k,{style:l0t,ref:$})))});const fs={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},c0t={once:"once",interval:"interval",intervalBetween:"intervalBetween",specific:"specific"},Tn={seconds:"seconds",minutes:"minutes"},zz=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function Xa(t){return t<10?`0${t}`:`${t}`}const d0t={mode:"interval",interval:{period:1,unit:Tn.minutes}};function av(t){if(t==="*")return[0,1,2,3,4,5,6];const e=t.split(","),r=[];return e.forEach(n=>{const o=n.split("-");if(o.length===2){const a=parseInt(o[0],10),i=parseInt(o[1],10);for(let s=a;s<=i;s++)r.includes(s===7?0:s)||r.push(s===7?0:s)}else{n==="7"&&(n="0");const a=parseInt(n,10);r.includes(a)||r.push(a)}}),r.sort(),r}function qV(t,e){t=t.replace(/['"]/g,"").trim();const r=t.split(" ");let n,o=null;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",date:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:null,minutes:r[0]||"*",hours:r[1]||"*",date:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n.seconds===null&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)&&(o={mode:"interval",interval:{period:1,unit:Tn.minutes}}),n.seconds==="*"&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:1,unit:Tn.seconds}}:n.seconds===null&&n.minutes.includes("/")&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.minutes.split("/")[1],10),unit:Tn.minutes}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.seconds.split("/")[1],10),unit:Tn.seconds}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.seconds.split("/")[1],10),unit:Tn.seconds,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:av(n.dow)}}:n.seconds===null&&n.minutes.includes("/")&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.minutes.split("/")[1],10),unit:Tn.minutes,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:av(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"specific",specific:{time:`${Xa(parseInt(n.hours,10))}:${Xa(parseInt(n.minutes,10))}`,weekdays:av(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&parseInt(n.date,10).toString()===n.date&&parseInt(n.months,10).toString()===n.months&&(n.dow==="*"||e)&&(o={mode:"once",once:{time:`${Xa(parseInt(n.hours,10))}:${Xa(parseInt(n.minutes,10))}`,date:`${Xa(parseInt(n.date,10))}.${Xa(parseInt(n.months,10))}`}}),o}class ff extends m.Component{constructor(e){super(e);let r=typeof e.cronExpression=="string"?e.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";r[0]==="{"&&(r="");const n=qV(r||"* * * * *",!0)||d0t;this.state={extended:!1,cron:ff.state2cron(n),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:Tn.minutes},intervalBetween:{period:1,unit:Tn.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,n),this.state.cron!==e.cronExpression&&setTimeout(()=>e.onChange&&e.onChange(this.state.cron),100)}static periodArray2text(e,r=7){if(r=r||7,e.length===r)return"*";const n=[];let o=null,a=null;if(!e.length)return"_";for(let i=0;i60&&(n.period=60),n.period!==void 0&&n.period<1&&(n.period=1),n.minutes!==void 0&&n.minutes!==null&&n.minutes>60&&(n.minutes=60),n.minutes!==void 0&&n.minutes!==null&&n.minutes<1&&(n.minutes=1),n.hours!==void 0&&n.hours!==null&&n.hours>24&&(n.hours=24),n.hours!==void 0&&n.hours!==null&&n.hours<1&&(n.hours=1),e.extended)r=`${n.minutes!==void 0&&n.minutes!==null&&n.minutes>1?`*/${n.minutes}`:"*"} ${n.hours!==void 0&&n.hours!==null&&n.hours>1?`*/${n.hours}`:"*"} * * *`;else switch(n.unit){case Tn.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * * * * *`;break;case Tn.minutes:r=`${n.period>1?`*/${n.period}`:"*"} * * * *`;break}}else if(e.mode==="intervalBetween"){const n=e.intervalBetween||{period:1,unit:Tn.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let o;switch(n.timeFrom=n.timeFrom||0,n.timeTo=n.timeTo===void 0?24:n.timeTo,n.timeFrom!==0&&n.timeTo===24&&(n.timeTo=23),n.timeFrom===0&&n.timeTo===24?o="*":o=n.timeFrom!==n.timeTo?`${n.timeFrom}-${n.timeTo}`:"*",n.period>60&&(n.period=60),n.period<1&&(n.period=1),n.unit=n.unit||Tn.minutes,n.unit){case Tn.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * ${o} * * ${this.periodArray2text(n.weekdays)}`;break;case Tn.minutes:r=`${n.period>1?`*/${n.period}`:"*"} ${o} * * ${this.periodArray2text(n.weekdays)}`;break}}else if(e.mode==="specific"){const n=e.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},o=(n.time||"00:00").split(":");let a=parseInt(o[1],10)||0;a>59&&(a=59),a<0&&(a=0);let i=parseInt(o[0],10)||0;i>23&&(i=59),i<0&&(i=0),r=`${a} ${i} * * ${this.periodArray2text(n.weekdays||[])}`}else if(e.mode==="once"){const n=e.once||{time:"00:00",date:""};n.date||(n.date=`${new Date().getDate()}.${Xa(new Date().getMonth()+1)}`);const o=(n.time||"00:00").split(":"),a=n.date.split(".");let i=parseInt(o[1],10)||0;i>59&&(i=59),i<0&&(i=0);let s=parseInt(o[0],10)||0;s>23&&(s=59),s<0&&(s=0);let l=parseInt(a[0],10)||1;l>31&&(l=31),l<1&&(s=1);let d=parseInt(a[1],10)||1;d>12&&(d=12),d<1&&(d=1),r=`${i} ${s} ${l} ${d} *`}return r}recalcCron(){this.onChange(ff.state2cron(this.state))}getControlsWeekdaysElements(e){const r=e==="intervalBetween"?this.state.intervalBetween:this.state.specific;return m.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},m.createElement("h5",null,P.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(n=>m.createElement(St,{key:zz[n],control:m.createElement(yr,{checked:r.weekdays.includes(n),onChange:o=>{const a=JSON.parse(JSON.stringify(this.state[e])),i=a.weekdays.indexOf(n);o.target.checked?i===-1&&a.weekdays.push(n):i!==-1&&a.weekdays.splice(i,1),a.weekdays.sort(),e==="intervalBetween"?this.setState({intervalBetween:a},()=>this.recalcCron()):this.setState({specific:a},()=>this.recalcCron())},value:n.toString()}),label:P.t(zz[n])})))}getControlsPeriodElements(e){const r=e==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?m.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},m.createElement("h5",{style:{marginBottom:5}},P.t("sc_period")),m.createElement(Ht,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:P.t("sc_minutes"),value:r.minutes,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.minutes=parseInt(n.target.value,10),o.minutes<1&&(o.minutes=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),m.createElement(Ht,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:P.t("sc_hours"),value:r.hours,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.hours=parseInt(n.target.value,10),o.hours<1&&(o.hours=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):m.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},m.createElement("h5",{style:{marginBottom:5}},P.t("sc_period")),m.createElement(Ht,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:P.t("sc_every"),value:r.period,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.period=parseInt(n.target.value,10),o.period<1&&(o.period=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),m.createElement(Bn,{variant:"standard",style:{verticalAlign:"bottom"},value:r.unit,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.unit=n.target.value,e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())}},m.createElement(Jt,{value:"seconds"},P.t("sc_seconds")),")",m.createElement(Jt,{value:"minutes"},P.t("sc_minutes")),")"))}getControlsTime(e){const r=e==="once"?this.state.once:this.state.specific;return m.createElement(_a,{variant:"standard",sx:{...fs.formControl,"&.MuiFormControl-root":fs.formControlMarginRight}},m.createElement(Ht,{variant:"standard",key:"at",label:P.t("sc_time"),value:r.time,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.time=n.target.value,e==="once"?this.setState({once:o},()=>this.recalcCron()):this.setState({specific:o},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const e=this.state.once;if(!e.date){const r=new Date;e.date=`${r.getDate()}.${Xa(r.getMonth()+1)}`}return m.createElement(_a,{variant:"standard",style:fs.formControl},m.createElement(Ht,{variant:"standard",key:"date",label:P.t("sc_date"),value:e.date,type:"text",slotProps:{htmlInput:{style:fs.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.once));n.date=r.target.value,this.setState({once:n},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return m.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const e=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),m.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},m.createElement("h5",{style:{marginBottom:5}},P.t("sc_hours")),m.createElement(_a,{variant:"standard",style:fs.formControl},m.createElement($l,{shrink:!0,htmlFor:"age-label-placeholder"},P.t("sc_from")),m.createElement(Bn,{variant:"standard",style:{width:100},value:e.timeFrom,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeFrom=parseInt(r.target.value,10),n.timeTo===24&&(n.timeTo=23),this.setState({intervalBetween:n},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>m.createElement(Jt,{key:`B_${r}`,value:r},`${Xa(r)}:00`)))),m.createElement(_a,{variant:"standard",style:fs.formControl},m.createElement($l,{shrink:!0,htmlFor:"age-label-placeholder"},P.t("sc_to")),m.createElement(Bn,{variant:"standard",style:{width:100},value:e.timeTo,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeTo=parseInt(r.target.value,10),this.setState({intervalBetween:n},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>m.createElement(Jt,{key:`A_${r}`,value:r},`${Xa(r)}:00`)),!e.timeFrom&&m.createElement(Jt,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[m.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(e){e!==this.state.mode&&this.setState({mode:e},()=>this.recalcCron())}onChange(e){e!==this.state.cron&&(this.setState({cron:e}),this.props.onChange&&this.props.onChange(e))}render(){return m.createElement("div",{style:fs.mainDiv},m.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},m.createElement(Ht,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),m.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?P.t("sc_invalid_cron"):tV(this.state.cron,this.props.language||"en")),m.createElement("div",null,m.createElement(_a,{variant:"standard",style:{...fs.formControl,marginLeft:8,marginTop:8}},m.createElement($l,null,P.t("ra_Repeat")),m.createElement(Bn,{variant:"standard",value:this.state.mode,onChange:e=>this.onModeChange(e.target.value),inputProps:{name:"mode",id:"mode"}},m.createElement(Jt,{value:"once"},P.t("sc_once")),m.createElement(Jt,{value:"interval"},P.t("sc_interval")),m.createElement(Jt,{value:"intervalBetween"},P.t("sc_intervalBetween")),m.createElement(Jt,{value:"specific"},P.t("sc_specific"))))),this.state.mode===c0t.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const u0t={headerID:{fontWeight:"bold",fontStyle:"italic"},radio:{display:"inline-block"},dialogPaper:{height:"calc(100% - 96px)"}};class Dnr extends m.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:r}}handleCancel(){this.props.onClose()}handleOk(e){if(!e){const r=Cs.cron2state(this.state.cron);if(r.seconds==="*"||r.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(r.minutes==="*"||r.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?m.createElement(PO,{title:P.t("ra_Please confirm"),text:P.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:e=>this.setState({showWarning:""},()=>{e&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return m.createElement(or,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":u0t.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),m.createElement(_r,{id:"cron-dialog-title"},this.props.title||P.t("ra_Define schedule...")),m.createElement(Wr,{style:{height:"100%",overflow:"hidden"}},m.createElement(Cs,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:P.getLanguage()})),m.createElement(pr,null,!!this.props.clearButton&&m.createElement(tt,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:m.createElement(Ta,null)},this.props.clear||P.t("ra_Clear")),m.createElement(tt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:m.createElement(Ea,null)},this.props.ok||P.t("ra_Ok")),m.createElement(tt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:m.createElement(Nf,null)},this.props.cancel||P.t("ra_Cancel"))))}}const p0t={dialogPaper:{height:"calc(100% - 96px)"}};class Anr extends m.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof r=="object"||r[0]==="{")&&!this.props.noWizard?"wizard":qV(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(e){this.setState({mode:e})}render(){return m.createElement(or,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":p0t.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},m.createElement(_r,{id:"cron-dialog-title"},this.props.title||P.t("ra_Define schedule...")),m.createElement(Wr,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?m.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&m.createElement(m.Fragment,null,m.createElement(ur,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),m.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},P.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&m.createElement(m.Fragment,null,m.createElement(ur,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),m.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},P.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&m.createElement(m.Fragment,null,m.createElement(ur,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),m.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},P.t("sc_cron")))):null,this.state.mode==="simple"&&m.createElement(ff,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:P.getLanguage()}),this.state.mode==="wizard"&&m.createElement(gn,{theme:this.props.theme,schedule:this.state.cron,onChange:e=>this.setState({cron:e})}),this.state.mode==="complex"&&m.createElement(Cs,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:P.getLanguage()})),m.createElement(pr,null,m.createElement(tt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:m.createElement(Ea,null)},this.props.ok||P.t("ra_Ok")),m.createElement(tt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:m.createElement(Nf,null)},this.props.cancel||P.t("ra_Cancel"))))}}const pl={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class Inr extends m.Component{constructor(r){super(r);X(this,"dialogName");X(this,"filters");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const n=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(n)}catch{this.filters={}}r.filters&&(this.filters={...this.filters,...r.filters});let o=this.props.selected||[];typeof o!="object"?o=[o]:o=[...o],o=o.filter(a=>a),this.state={selected:o}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let r;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?r=[m.createElement("span",{key:"selected"},P.t("ra_Selected")," "),m.createElement("span",{key:"id",style:pl.headerID},this.state.selected)]:r=[m.createElement("span",{key:"selected"},P.t("ra_Selected")," "),m.createElement("span",{key:"id",style:pl.headerID},P.t("%s items",this.state.selected.length))]:r=this.props.title||P.t("ra_Please select file..."),m.createElement(or,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{...pl.dialog,...pl.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},m.createElement(_r,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":pl.titleRoot}},r),m.createElement(Wr,{style:{...pl.content,...pl.contentMobile}},m.createElement(Zyt,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(n,o,a)=>{this.setState({selected:Array.isArray(n)?n:[n]},()=>o&&(!this.props.selectOnlyFolders||a)&&this.handleOk())},t:this.props.t||P.t,lang:this.props.lang||P.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),m.createElement(pr,null,m.createElement(tt,{variant:"contained",onClick:()=>this.handleOk(),startIcon:m.createElement(Ea,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||P.t("ra_Ok")),m.createElement(tt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:m.createElement(Nf,null)},this.props.cancel||P.t("ra_Cancel"))))}}const h0t={dialogPaper:{height:"calc(100% - 96px)"}};class Mnr extends m.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return m.createElement(or,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":h0t.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},m.createElement(_r,{id:"cron-dialog-title"},this.props.title||P.t("ra_Define CRON...")),m.createElement(Wr,{style:{height:"100%",overflow:"hidden"}},m.createElement(ff,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:P.getLanguage()})),m.createElement(pr,null,m.createElement(tt,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:m.createElement(Ea,null)},this.props.ok||P.t("ra_Ok")),m.createElement(tt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:m.createElement(Nf,null)},this.props.cancel||P.t("ra_Cancel"))))}}const f0t="Acknowledged",m0t="Add",g0t="Aggregate",v0t="Type",y0t="All",_0t="Appearance",b0t="Apply",w0t="Auto",x0t="Axis",S0t="Backgrounds",C0t="Bar",$0t="Border",k0t="Cancel",E0t="Circle",T0t="Close",O0t="Collapse",D0t="Color",A0t="Copy",I0t="Counts",M0t="Create",P0t="Data",N0t="Default",R0t="Delete",j0t="Dialog",L0t="Edit",z0t="End",F0t="Expand",B0t="Fill",W0t="Folder",H0t="From: ",U0t="Functions",V0t="Grid",q0t="Height",G0t="ID",X0t="IDs",J0t="Individual",Y0t="Instance",K0t="Intervals",Z0t="Label",Q0t="Labels",ebt="Left",tbt="Legend",rbt="Limits",nbt="Line",obt="Link",abt="Main",ibt="Marking",sbt="Markings",lbt="Max",cbt="Members",dbt="Min",ubt="MinMax",pbt="more",hbt="Multiple",fbt="Name",mbt="None",gbt="X-Offset",vbt="Ok",ybt="Open",_bt="Options",bbt="Orientation",wbt="Others",xbt="Paste",Sbt="Percentile",Cbt="Pie",$bt="Points",kbt="Polar chart (Radar)",Ebt="Polygonal",Tbt="Presets",Obt="Processing",Dbt="Range",Abt="Relative",Ibt="Rename",Mbt="Right",Pbt="Role",Nbt="Room",Rbt="Rooms",jbt="Root",Lbt="Seconds",zbt="Select",Fbt="Smoothing",Bbt="Source",Wbt="Spline",Hbt="Stack",Ubt="Steps",Vbt="Style",qbt="Text",Gbt="Texts",Xbt="Theme",Jbt="Time",Ybt="Title",Kbt="Type",Zbt="Unit",Qbt="Update",e1t="Value",t1t="Width",r1t="With",n1t="Without",o1t="Area",a1t="auto",i1t="average",s1t="Bar",l1t="bottom",c1t="bottom colored",d1t='Enter the formula like "val / 1000 + 3". This formula will be applied to all values of the selected datapoint.',u1t="copied",p1t="copy",h1t="count",f1t="counts",m1t="Current value",g1t="dashed",v1t="day",y1t="difference",_1t="dotted",b1t="Day of week",w1t="edit",x1t="horizontal",S1t="15 minutes",C1t="1 day",$1t="1 hour",k1t="30 days",E1t="integral",T1t="left",O1t="left colored",D1t="Line",A1t="linear",I1t="Line plot",M1t="load",P1t="max",N1t="middle",R1t="min",j1t="minmax",L1t="month",z1t="no",F1t="none",B1t="none",W1t="now",H1t="off",U1t="on change",V1t="percentile",q1t="Polar chart",G1t="raw",X1t="relative",J1t="reload",Y1t="right",K1t="right colored",Z1t="role",Q1t="save",ewt="Scatter plot",twt="seconds",rwt="solid",nwt="Spline",owt="standard",awt="Steps",iwt="to",swt="today",lwt="top",cwt="top colored",dwt="total",uwt="vertical",pwt="end of day",hwt="end of sunday",fwt="year",mwt="yes",gwt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"%s ago","ØL":"ØL","ØS":"ØS","0 seconds":"0 seconds","0s":"0 seconds","1 day":"1 day","1 hour":"1 hour","1 minute":"1 minute","1 month":"1 month","1 week":"1 week","1 year":"1 year","10 minutes":"10 minutes","10 seconds":"10 seconds","10m":"10 minutes","10minutes":"end of 10 minutes","10s":"10 seconds","12 hours":"12 hours","12H":"12 hours","12W":"12 weeks","12hours":"end of 12 hours","14 days":"14 days","15 minutes":"15 minutes","15 seconds":"15 seconds","15m":"15 minutes","1D":"1 day","1H":"1 hour","1M":"1 month","1W":"1 week","1Y":"1 year","1hour":"end of hour","1minute":"end of minute","1s":"1 second","2 days":"2 days","2 hours":"2 hours","2 minutes":"2 minutes","2 months":"2 months","2 weeks":"2 weeks","2 years":"2 years","20 minutes":"20 minutes","20 seconds":"20 seconds","26W":"26 weeks","2D":"2 days","2H":"2 hours","2M":"2 months","2W":"2 weeks","2Y":"2 years","2hours":"end of 2 hours","2m":"2 minutes","2s":"2 seconds","3 days":"3 days","3 hours":"3 hours","3 minutes":"3 minutes","3 months":"3 months","30 minutes":"30 minutes","30 seconds":"30 seconds","300ms":"300ms","30m":"30 minutes","30minutes":"end of 30 minutes","30s":"30 seconds","3D":"3 days","3M":"3 months","3hours":"end of 3 hours","3m":"3 minutes","3s":"3 seconds","4 days":"4 days","4 minutes":"4 minutes","45 minutes":"45 minutes","45m":"45 minutes","4D":"4 days","4W":"4 weeks","4hours":"end of 4 hours","4m":"4 minutes","5 minutes":"5 minutes","5 seconds":"5 seconds","500ms":"500ms","5m":"5 minutes","5minutes":"end of 5 minutes","5s":"5 seconds","6 hours":"6 hours","6 months":"6 months","60 seconds":"60 seconds","60s":"60 seconds","6H":"6 hours","6M":"6 months","6hours":"end of 6 hours","7 days":"7 days","8W":"8 weeks","8hours":"end of 8 hours","90 seconds":"90 seconds",Acknowledged:f0t,Add:m0t,"Add line to chart":"Add line to chart","Add marking line to chart":"Add marking line to chart","Add new line":"Add new line","Add new markings":"Add new markings","Add new state name":"Add new state name","Add new value":"Add new value","After comma":"After comma",Aggregate:g0t,"Aggregate for lines":"Aggregation for lines",Aggregation:v0t,"Aggregation:":"Type:",All:y0t,"Animation:":"Animation:",Appearance:_0t,Apply:b0t,"Are you sure for closing folder and discard unsaved changes?":"Are you sure for closing folder and discard unsaved changes?","Are you sure for delete this line?":"Are you sure for delete this line?","Are you sure for delete this mark?":"Are you sure for delete this mark?","Are you sure for delete this preset?":"Are you sure for delete this preset?","Are you sure for loading the chart and discard unsaved changes?":"Are you sure for loading the chart and discard unsaved changes?","Are you sure for loading the preset and discard unsaved changes?":"Are you sure for loading the preset and discard unsaved changes?","Arrange bools":"Arrange booleans",Auto:w0t,"Auto (Line or Steps)":"Auto (Line or Steps)","Auto padding":"Auto-padding","Auto save":"Auto save","Auto-refresh":"Auto-refresh","Auto-update:":"Auto-update:",Axis:x0t,"Background of radar chart":"Background of radar chart","Background:":"Background:",Backgrounds:S0t,Bar:C0t,"Bar settings":"Bar settings","Bars width:":"Bars width:",Border:$0t,"Border color:":"Border color:","Border padding":"Border padding","Border width":"Border width","Border width:":"Border width:","Bottom, center, inside":"Bottom, center, inside","Bottom, center, outside":"Bottom, center, outside","Bottom, left":"Bottom, left","Bottom, left, inside":"Bottom, left, inside","Bottom, right":"Bottom, right","Bottom, right, inside":"Bottom, right, inside","Bottom, right, outside":"Bottom, right, outside",Cancel:k0t,"Cannot create unique ID":"Cannot create unique ID","Chart Type":"Chart Type","Chart background":"Chart background","Chart background:":"Chart background:","Chart size":"Chart size","Chart type":"Chart type","Charts preview":"Charts preview",Circle:E0t,Close:T0t,Collapse:O0t,"Collapse all lines":"Collapse all lines","Collapse all markings":"Collapse all markings",Color:D0t,"Common Y Axis":"Common Y Axis","Convert formula":"Convertion formula",Copy:A0t,"Copy link to clipboard":"Copy link to clipboard",Counts:I0t,Create:M0t,"Create folder":"Create folder","Create new folder":"Create new folder","Create new preset":"Create new preset","Create preset":"Create preset","Custom chart background:":"Custom chart background:","Custom time format":"Custom time format",Data:P0t,Default:N0t,Delete:R0t,"Delete object":"Delete object","Delete text value":"Delete text value",Dialog:j0t,"Digits after comma":"Digits after comma","Drag me":"Drag me",Edit:L0t,"Edit folder name":"Edit folder name","Edit options for line %s":"Edit options for line %s","Edit state names":"Edit state names","Empty preset cannot be saved!":"Empty preset cannot be saved!","Enable logging for new state":"Enable logging for new state","Enable zoom and pan":"Enable zoom and pan","Enable zoom and pan:":"Enable zoom and pan:",End:z0t,"End:":"End:","Enter chart name":"Enter chart name",Expand:F0t,"Expand all lines":"Expand all lines","Expand all markings":"Expand all markings","Export data color":"Export data button color",Fill:B0t,"Fill color:":"Fill color:","Fill range:":"Fill range:","Fill(0to1)":"Fill(0to1)",Folder:W0t,"Font size":"Font size",From:H0t,"From line %s":"From line %s",Functions:U0t,Grid:V0t,"Grid color":"Grid color","Grid color:":"Grid color:","Group by":"Group by","HH:MM dd.mm":"HH:MM dd.mm",Height:q0t,"Height:":"Height:","Hide X grid":"Hide X grid","Hide Y grid":"Hide Y grid","Hide edit button:":"Hide edit button:","Hide nulls in tooltip":"Hide nulls in tooltip","Hover details":"Hover details","Hover details:":"Hover details:",ID:G0t,IDs:X0t,"If the current value is not older than X seconds, assume it is still the same.":"If the current value is not older than X seconds, assume it is still the same.","In seconds":"In seconds",Individual:J0t,"Input data":"Input data","Inside / No lines":"Inside / No lines","Inside / With lines":"Inside / With lines","Inside end":"Inside, on end","Inside end bottom":"Inside, at the end, on bottom","Inside end top":"Inside, at the end, on top","Inside middle":"Inside, in the middle","Inside middle bottom":"Inside, in the middle, on bottom","Inside middle top":"Inside, in the middle, at top","Inside start":"Inside, at start","Inside start bottom":"Inside, at start, on bottom","Inside start top":"Inside, at start, on top",Instance:Y0t,"Integral unit":"Integral unit","Interpolate:":"Interpolate:","Interpolation method":"Interpolation method",Intervals:K0t,"Invalid object":"Invalid object",Label:Z0t,"Label color:":"Label color:","Label font size:":"Label font size:",Labels:Q0t,"Last changed":"Last changed",Left:ebt,Legend:tbt,"Legend background":"Legend background","Legend background:":"Legend background:","Legend columns:":"Legend columns:","Legend opacity (from 0 to 1):":"Legend opacity (from 0 to 1):","Legend text color":"Legend text color",Limits:rbt,Line:nbt,"Line ID":"Line ID","Line Width":"Line Width","Line and area":"Line and area","Line style":"Line style",Link:obt,"Live update every":"Live update every","Live update every:":"Live update every:","Load without save":"Load without save","Loading...":"Loading...","Lower value or ID":"Lower value or ID",Main:abt,Mark:ibt,Markings:sbt,Max:lbt,"Max:":"Maximum:",Members:cbt,"Middle, left, inside":"Middle, left, inside","Middle, right, inside":"Middle, right, inside","Middle, right, outside":"Middle, right, outside",Min:dbt,"Min:":"Minimum:",MinMax:ubt,More:pbt,"Move to folder":"Move to folder",Multiple:hbt,"NULL as":"NULL as",Name:fbt,"Name:":"Name:","No ID yet":"No ID yet","No background":"No background","No border:":"No border:","No future":"No values in future","No interpolate in hover":"No interpolation in tooltip","No presets created yet":"No presets created yet",None:mbt,Offset:gbt,Ok:vbt,Open:ybt,"Open chart in own window":"Open chart in own window","Open in own window":"Open in own window",Options:_bt,Orientation:bbt,Others:wbt,"Outside / No lines":"Outside / No lines","Outside/ With lines":"Outside/ With lines",Paste:xbt,Percentile:Sbt,Pie:Cbt,"Please confirm":"Please confirm",Points:$bt,Polar:kbt,Polygonal:Ebt,"Predefined background:":"Predefined background:",Presets:Tbt,Processing:Obt,"Processing...":"Processing...",Range:Dbt,"Range:":"Range:",Relative:Abt,Rename:Ibt,"Rename preset":"Rename preset","Reorder presets in folders":"Reorder presets in folders","Reset settings":"Reset settings","Reset zoom after idle":"Reset zoom after idle",Right:Mbt,Role:Pbt,Room:Nbt,Rooms:Rbt,Root:jbt,"Save current preset and load":"Save current preset and load","Save image button color":"Save image button color","Save into:":"Save into:","Scatter plot":"Scatter plot",Seconds:Lbt,Select:zbt,"Select ID":"Select ID","Select for":"Select for","Shadow Size":"Shadow Size","Show controls":"Show controls","Show export data button":"Show export data button","Show labels:":"Show labels:","Show legend":"Show legend","Show legend:":"Show legend:","Show only in legend":"Show only in legend","Show points":"Show points","Show save image button":"Show save image button","Show values":"Show values",Smoothing:Fbt,Source:Bbt,Spline:Wbt,Stack:Hbt,"Start:":"Start:","State value":"State value","State value text":"State value text","Step span:":"Step span:","Step type":"Step type","Step type:":"Step type:",Steps:Ubt,"Steps on start":"Steps on start",Style:Vbt,"System settings":"System settings",Text:qbt,"Text X offset":"Text X-offset","Text Y offset":"Text Y-offset","Text by false":"Text by false","Text by true":"Text by true","Text color":"Text color","Text position":"Text position","Text size":"Text size","Text values not used":"Text values not used",Texts:Gbt,Theme:Xbt,"This time offset will be added to the X label by displaying data on the chart":"This time offset will be added to the X label by displaying data on the chart","This time offset will be added to the request by reading data from DB":"This time offset will be added to the request by reading data from DB","Ticks from:":"Use X-ticks from:",Time:Jbt,"Time Span":"Time Span","Time format":"Time format","Time format:":"Time format:","Time span":"Time span","Time stamp":"Time stamp",Title:Ybt,"Title color":"Title color","Title color:":"Title color:","Title position":"Title position","Title position:":"Title position:","Title size":"Title size","Title size:":"Title size:","Title:":"Title:","Top, center, inside":"Top, center, inside","Top, left":"Top, left","Top, left, inside":"Top, left, inside","Top, right":"Top, right","Top, right, inside":"Top, right, inside","Top, right, outside":"Top, right, outside",Type:Kbt,Unit:Zbt,"Units:":"Units:",Update:Qbt,"Update objects":"Update objects","Update states":"Update states","Upper value or ID":"Upper value or ID","Use comma":"Use comma","Use comma:":"Use comma:","Use state names":"Use state names","User defined":"User defined","User defined names:":"User defined names:","Valid time (sec)":"Valid time (sec)",Value:e1t,Width:t1t,"Width:":"Width:","Window background":"Window background","Window background:":"Window background:",With:r1t,"With border":"With border","With lines":"With lines",Without:n1t,"Without border":"Without border","Without lines":"Without lines","X Axis":"X Axis","X Axis position":"X Axis position","X axis labels color:":"X labels color:","X labels color":"X labels color","X labels size":"X font size","X ticks color":"X ticks color","X-Axis ticks":"X-Axis ticks","X-Label-Offset":"X-Label Offset","X-Offset":"X-Offset","Y Axis":"Y Axis","Y Axis position":"Y Axis position","Y axis labels color:":"Y labels color:","Y labels color":"Y labels color","Y labels size":"Y font size","Y ticks color":"Y ticks color","Y-Axis ticks":"Y-Axis ticks","Y-Offset":"Y-Offset",'You can create a new markings with a "+" on the right.':'You can create a new markings with a "+" on the right.',"You can drag and drop simple lines from the left list.":"You can drag and drop simple lines from the left list.","add children":"add children",area:o1t,auto:a1t,average:i1t,bar:s1t,bottom:l1t,bottomColor:c1t,convert_help:d1t,copied:u1t,copy:p1t,count:h1t,counts:f1t,current:m1t,dashed:g1t,day:v1t,default:"default",difference:y1t,dotted:_1t,dow:b1t,edit:w1t,"edit enum":"edit enum","edit file":"edit file","end of 10 minutes":"end of 10 minutes","end of 12 hours":"end of 12 hours","end of 2 hours":"end of 2 hours","end of 3 hours":"end of 3 hours","end of 30 minutes":"end of 30 minutes","end of 4 hours":"end of 4 hours","end of 5 minutes":"end of 5 minutes","end of 6 hours":"end of 6 hours","end of 8 hours":"end of 8 hours","end of day":"end of day","end of hour":"end of hour","end of minute":"end of minute","end of previous saturday":"end of previous saturday (2 weeks)","end of previous sunday":"end of previous sunday (2 weeks)","end of saturday":"end of saturday","end of sunday":"end of sunday",false:"null",horizontal:x1t,i15min:S1t,i1day:C1t,i1hour:$1t,i30days:k1t,"ignore 'null'":"ignore 'null'","ignore 'null':":"ignore 'null':","ignore null values":"ignore null values",integral:E1t,"last value":"last value",left:T1t,"left colored":"left colored",leftColor:O1t,line:D1t,linear:A1t,lineplot:I1t,load:M1t,max:P1t,middle:N1t,min:R1t,minmax:j1t,month:L1t,new:"new",no:z1t,"no null":" no null","non-processed":"non-processed",none:F1t,none_no:B1t,now:W1t,null:"null",off:H1t,onchange:U1t,"own axis":"own axis",percentile:V1t,polar:q1t,raw:G1t,relative:X1t,reload:J1t,"restart script":"restart script",right:Y1t,"right colored":"right colored",rightColor:K1t,role:Z1t,save:Q1t,"save %s":"save %s",scatterplot:ewt,seconds:twt,solid:rwt,spline:nwt,standard:owt,static:"static",steps:awt,"this month":"this month","this year":"this year",to:iwt,today:swt,top:lwt,"top over":"top over","top under":"top under",topColor:cwt,total:dwt,true:"last value","update Preview":"update Preview","use 0 instead of null values":"use 0 instead of null values",vertical:uwt,weekEurope:pwt,weekUsa:hwt,year:fwt,yes:mwt,ØL:"ØL","ØL - Line thickness":"ØL - Line thickness","ØL Line thickness":"ØL Line thickness",ØS:"ØS","ØS - Shadow size":"ØS - Shadow size","ØS Shadow size":"ØS Shadow size"},vwt="Bestätigt",ywt="Hinzufügen",_wt="Aggregat",bwt="Art",wwt="Alle",xwt="Erscheinung",Swt="Anwenden",Cwt="Auto",$wt="Achsen",kwt="Hintergründe",Ewt="Bar",Twt="Rand",Owt="Abbrechen",Dwt="Kreis",Awt="Schließen",Iwt="Zusammenklappen",Mwt="Farbe",Pwt="Kopieren",Nwt="Anzahl",Rwt="Erstellen",jwt="Datenquellen",Lwt="Standard",zwt="Löschen",Fwt="Dialog",Bwt="Editieren",Wwt="Ende",Hwt="Ausklappen",Uwt="Füllen",Vwt="Mappe",qwt="Von",Gwt="Funktionen",Xwt="Gitter",Jwt="Höhe",Ywt="ID",Kwt="IDs",Zwt="Individuell",Qwt="Instanz",ext="Intervalle",txt="Etikette",rxt="Etiketten",nxt="Links",oxt="Legende",axt="Grenzen",ixt="Linie",sxt="Link",lxt="Haupt-Einstellungen",cxt="Markierung",dxt="Markierungen",uxt="Max",pxt="Mitglied",hxt="Min",fxt="MinMax",mxt="mehr",gxt="Mehrere",vxt="Name",yxt="Nichts",_xt="X-Offset",bxt="Ok",wxt="Zeige im Fenster",xxt="Optionen",Sxt="Orientierung",Cxt="Andere",$xt="Einfügen",kxt="Perzentil",Ext="Kuchen",Txt="Punkte",Oxt="Polardiagramm (Radar)",Dxt="Polygonal",Axt="Voreinstellung",Ixt="wird bearbeitet",Mxt="Reichweite",Pxt="Relativ",Nxt="Umbenennen",Rxt="Rechts",jxt="Rolle",Lxt="Raum",zxt="Räume",Fxt="Root-Ordner",Bxt="Sekunden",Wxt="Auswählen",Hxt="Glätten",Uxt="Quelle",Vxt="Spline",qxt="Stack",Gxt="Schritte",Xxt="Stil",Jxt="Text",Yxt="Texte",Kxt="Thema",Zxt="Zeit",Qxt="Beschriftung",eSt="Typ",tSt="Einheiten",rSt="Aktualisieren",nSt="Wert",oSt="Breite",aSt="mit",iSt="ohne",sSt="Area",lSt="Auto",cSt="mittel",dSt="Bar",uSt="unten",pSt="unten farblich",hSt='Hier die Formel wie "val / 1000 + 3" eingeben. Diese Formel wird auf alle Werte des ausgewählten Datenpunkts angewendet.',fSt="kopiert",mSt="Kopieren",gSt="zählen",vSt="Anzahl",ySt="Aktueller Wert",_St="gestrichelt",bSt="Tag",wSt="Unterschied",xSt="gepunktet",SSt="Wochentag",CSt="bearbeiten",$St="horizontal",kSt="15 Minuten",ESt="1 Tag",TSt="1 Stunde",OSt="30 Tage",DSt="Integral",ASt="links",ISt="links farblich",MSt="Linie",PSt="linear",NSt="Liniendiagramm",RSt="laden",jSt="max",LSt="mittig",zSt="min",FSt="minmax",BSt="Monat",WSt="keine",HSt="nichts",USt="keins",VSt="jetzt",qSt="nichts",GSt="bei Änderung",XSt="Perzentil",JSt="Polardiagramm",YSt="unverarbeitet",KSt="relative",ZSt="Neu laden",QSt="rechts",eCt="rechts farblich",tCt="Rolle",rCt="Speichern",nCt="Streudiagramm",oCt="Sekunden",aCt="normal",iCt="Spline",sCt="Standard",lCt="Schritte",cCt="bis",dCt="heute",uCt="oben",pCt="oben farblich",hCt="total",fCt="vertikal",mCt="Tagesende",gCt="Wochenssende",vCt="Jahr",yCt="ja",_Ct={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"vor %s","ØL":"ØL","ØS":"ØS","0 seconds":"0 Sekunden","0s":"0s","1 day":"1 Tag","1 hour":"1 Stunde","1 minute":"1 Minute","1 month":"1 Monat","1 week":"1 Woche","1 year":"1 Jahr","10 minutes":"10 Minuten","10 seconds":"10 Sekunden","10m":"10 Minuten","10minutes":"Ende von 10 Minuten","10s":"10 Sekunden","12 hours":"12 Stunden","12H":"12 Stunden","12W":"12 Wochen","12hours":"Ende von 12 Stunden","14 days":"14 Tage","15 minutes":"15 Minuten","15 seconds":"15 Sekunden","15m":"15 Minuten","1D":"1 Tag","1H":"1 Stunde","1M":"1 Monat","1W":"1 Woche","1Y":"1 Jahr","1hour":"Stundenende","1minute":"Minutenende","1s":"1 Sekunde","2 days":"2 Tage","2 hours":"2 Stunden","2 minutes":"2 Minuten","2 months":"2 Monate","2 weeks":"2 Wochen","2 years":"2 Jahren","20 minutes":"20 Minuten","20 seconds":"20 Sekunden","26W":"26 Wochen","2D":"2 Tage","2H":"2 Stunden","2M":"2 Monate","2W":"2 Wochen","2Y":"2 Jahre","2hours":"Ende von 2 Stunden","2m":"2 Minuten","2s":"2 Sekunden","3 days":"3 Tage","3 hours":"3 Stunden","3 minutes":"3 Minuten","3 months":"3 Monate","30 minutes":"30 Minuten","30 seconds":"30 Sekunden","300ms":"300ms","30m":"30 Minuten","30minutes":"Ende von 30 Minuten","30s":"30 Sekunden","3D":"3 Tage","3M":"3 Monate","3hours":"Ende von 3 Stunden","3m":"3 Minuten","3s":"3 Sekunden","4 days":"4 Tage","4 minutes":"4 Minuten","45 minutes":"45 Minuten","45m":"45 Minuten","4D":"4 Tage","4W":"4 Wochen","4hours":"Ende von 4 Stunden","4m":"4 Minuten","5 minutes":"5 Minuten","5 seconds":"5 Sekunden","500ms":"500ms","5m":"5 Minuten","5minutes":"Ende von 5 Minuten","5s":"5 Sekunden","6 hours":"6 Stunden","6 months":"6 Monate","60 seconds":"60 Sekunden","60s":"60 Sekunden","6H":"6 Stunden","6M":"6 Monate","6hours":"Ende von 6 Stunden","7 days":"7 Tage","8W":"8 Wochen","8hours":"Ende von 8 Stunden","90 seconds":"90 Sekunden",Acknowledged:vwt,Add:ywt,"Add line to chart":"Linie zum Preset hinzufügen","Add marking line to chart":"Markierungslinie zum Preset hinzufügen","Add new line":"Linie hinzufügen","Add new markings":"Neue Markierung hinzufügen","Add new state name":"Neuen Statusnamen hinzufügen","Add new value":"Fügen Sie neuen Wert hinzu","After comma":"Nach Komma",Aggregate:_wt,"Aggregate for lines":"Aggregation für Zeilen",Aggregation:bwt,"Aggregation:":"Art:",All:wwt,"Animation:":"Animation:",Appearance:xwt,Apply:Swt,"Are you sure for closing folder and discard unsaved changes?":"Möchten Sie den Ordner wirklich schließen und nicht gespeicherte Änderungen verwerfen?","Are you sure for delete this line?":"Sind Sie sicher, diese Zeile zu löschen?","Are you sure for delete this mark?":"Sind Sie sicher, diese Marke zu löschen?","Are you sure for delete this preset?":"Sind Sie sicher, diese Voreinstellung zu löschen?","Are you sure for loading the chart and discard unsaved changes?":"Möchten Sie das Diagramm wirklich laden und nicht gespeicherte Änderungen verwerfen?","Are you sure for loading the preset and discard unsaved changes?":"Möchten Sie die Vorgabe wirklich laden und nicht gespeicherte Änderungen verwerfen?","Arrange bools":"Platziere Booleans",Auto:Cwt,"Auto (Line or Steps)":"Auto (Linie oder Schritte)","Auto padding":"Auto-Abstand","Auto save":"Automatisch speichern","Auto-refresh":"Automatische Aktualisierung","Auto-update:":"Auto-update:",Axis:$wt,"Background of radar chart":"Hintergrund der Radarkarte","Background:":"Hintergrund:",Backgrounds:kwt,Bar:Ewt,"Bar settings":"Bar-Einstellungen","Bars width:":"Barbreite:",Border:Twt,"Border color:":"Rahmenfarbe:","Border padding":"Randabstand","Border width":"Rahmenbreite","Border width:":"Rahmenbreite:","Bottom, center, inside":"Unten, mittig, innen","Bottom, center, outside":"Unten, mittig, außen","Bottom, left":"Unten, links","Bottom, left, inside":"Unten, links, innen","Bottom, right":"Unten, rechts","Bottom, right, inside":"Unten, rechts, innen","Bottom, right, outside":"Unten, rechts, außen",Cancel:Owt,"Cannot create unique ID":"Eindeutige ID kann nicht erstellt werden","Chart Type":"Chart Type","Chart background":"Diagrammhintergrund","Chart background:":"Chart-Hintergrund:","Chart size":"Diagrammgröße","Chart type":"Diagramm Typ","Charts preview":"Diagrammvorschau",Circle:Dwt,Close:Awt,Collapse:Iwt,"Collapse all lines":"Alle Zeilen zumachen","Collapse all markings":"Alle Markierungen zusammenklappen",Color:Mwt,"Common Y Axis":"Gemeinsame Y-Achse","Convert formula":"Umrechnungsformel",Copy:Pwt,"Copy link to clipboard":"Link in Zwischenablage kopieren",Counts:Nwt,Create:Rwt,"Create folder":"Ordner erstellen","Create new folder":"Neuen Ordner erstellen","Create new preset":"Neues Preset erstellen","Create preset":"Preset erstellen","Custom chart background:":"Anwender-Chart-Hintergrund:","Custom time format":"Benutzerdefiniertes Zeitformat",Data:jwt,Default:Lwt,Delete:zwt,"Delete object":"Object löschen","Delete text value":"Textwert löschen",Dialog:Fwt,"Digits after comma":"Ziffern nach Komma","Drag me":"Zieh mich",Edit:Bwt,"Edit folder name":"Ordnername ändern","Edit options for line %s":"Editieren weitere Einstellungen für Linie %s","Edit state names":"Zustandsnamen bearbeiten","Empty preset cannot be saved!":"Leeres Preset kann nicht gespeichert werden!","Enable logging for new state":"Protokollierung für einen neuen Zustand aktivieren","Enable zoom and pan":"Zoom erlauben","Enable zoom and pan:":"Aktiviere Zoom und Schieben:",End:Wwt,"End:":"Ende:","Enter chart name":"Chartname eintragen",Expand:Hwt,"Expand all lines":"Alle Zeilen ausklappen","Expand all markings":"Alle Markierungen aufklappen","Export data color":"Farbe der Schaltfläche „Daten exportieren“.",Fill:Uwt,"Fill color:":"Füllfarbe color:","Fill range:":"Ganzer Bereich:","Fill(0to1)":"Füllen(0bis1)",Folder:Vwt,"Font size":"Schriftgröße",From:qwt,"From line %s":"Zeile %s",Functions:Gwt,Grid:Xwt,"Grid color":"Gitterfarbe","Grid color:":"Gitterfarbe:","Group by":"Gruppiere nach","HH:MM dd.mm":"SS:MM tt.mm.",Height:Jwt,"Height:":"Höhe:","Hide X grid":"X-Gitter ausblenden","Hide Y grid":"Y-Gitter ausblenden","Hide edit button:":"Kein 'Edit'-Knopf:","Hide nulls in tooltip":"Nullen im Tooltip ausblenden","Hover details":"Hover-Details","Hover details:":"Hover details:",ID:Ywt,IDs:Kwt,"If the current value is not older than X seconds, assume it is still the same.":"Wenn der aktuelle Wert nicht älter als X Sekunden ist, annehmen, dass er immer noch derselbe ist.","In seconds":"In Sekunden",Individual:Zwt,"Input data":"Eingangsdaten","Inside / No lines":"Innen / ohne Linien","Inside / With lines":"Innen / mit Linien","Inside end":"Innen, am Ende","Inside end bottom":"Innen, am Ende, unten","Inside end top":"Innen, am Ende, oben","Inside middle":"Innen, in der Mitte","Inside middle bottom":"Innen, in der Mitte, unten","Inside middle top":"Innen, in der Mitte, oben","Inside start":"Innen, am Start","Inside start bottom":"Innen, am Anfang, unten","Inside start top":"Innen, am Anfang, oben",Instance:Qwt,"Integral unit":"Integrale Einheit","Interpolate:":"Interpolieren:","Interpolation method":"Interpolationsmethode",Intervals:ext,"Invalid object":"Ungültiges Objekt",Label:txt,"Label color:":"Labelfarbe:","Label font size:":"Labelschriftgröße:",Labels:rxt,"Last changed":"Letze Änderung",Left:nxt,Legend:oxt,"Legend background":"Legendenhintergrund","Legend background:":"Legende-Hintergrund:","Legend columns:":"Spalten in Legende:","Legend opacity (from 0 to 1):":"Legende-Opacity (von 0 bis 1):","Legend text color":"Legende Textfarbe",Limits:axt,Line:ixt,"Line ID":"Linie ID","Line Width":"Linienstärke","Line and area":"Linie und Fläche","Line style":"Linienstil",Link:sxt,"Live update every":"Autoupdate alle","Live update every:":"Autoupdate alle:","Load without save":"Laden ohne Speichern","Loading...":"Lade...","Lower value or ID":"Unterer Wert oder ID",Main:lxt,Mark:cxt,Markings:dxt,Max:uxt,"Max:":"Maximum:",Members:pxt,"Middle, left, inside":"Middle, links, innen","Middle, right, inside":"Middle, rechts, innen","Middle, right, outside":"Middle, rechts, außen",Min:hxt,"Min:":"Minimum:",MinMax:fxt,More:mxt,"Move to folder":"In den Ordner verschieben",Multiple:gxt,"NULL as":"NULL als",Name:vxt,"Name:":"Name:","No ID yet":"Noch kein ID","No background":"Kein Hintergrund","No border:":"Kein Rahmen:","No future":"Keine Werte in der Zukunft","No interpolate in hover":"Keine Interpolation im Tooltip","No presets created yet":"Noch keine Presets erstellt",None:yxt,Offset:_xt,Ok:bxt,Open:wxt,"Open chart in own window":"Das Diagramm in einem eigenen Fenster öffnen","Open in own window":"In eigenem Fenster öffnen",Options:xxt,Orientation:Sxt,Others:Cxt,"Outside / No lines":"Außen / ohne Linien","Outside/ With lines":"Außen/ mit Linien",Paste:$xt,Percentile:kxt,Pie:Ext,"Please confirm":"Bitte bestätigen",Points:Txt,Polar:Oxt,Polygonal:Dxt,"Predefined background:":"Vordefinierter Hintergrund:",Presets:Axt,Processing:Ixt,"Processing...":"Bearbeite...",Range:Mxt,"Range:":"Umfang:",Relative:Pxt,Rename:Nxt,"Rename preset":"Preset umbenennen","Reorder presets in folders":"Presets in Ordnern neu anordnen","Reset settings":"Einstellungen löschen","Reset zoom after idle":"Zoom nach Leerlauf zurücksetzen",Right:Rxt,Role:jxt,Room:Lxt,Rooms:zxt,Root:Fxt,"Save current preset and load":"Aktuelles Preset speichern und laden","Save image button color":"Farbe der Bildschaltfläche speichern","Save into:":"Save into:","Scatter plot":"Scatter plot",Seconds:Bxt,Select:Wxt,"Select ID":"ID Auswählen","Select for":"Wählen Sie für","Shadow Size":"Schattengröße","Show controls":"Steuerelemente anzeigen","Show export data button":"Schaltfläche „Exportdaten anzeigen“.","Show labels:":"Zeige Labels:","Show legend":"Legende anzeigen","Show legend:":"Zeige Legende:","Show only in legend":"Nur in der Legende anzeigen","Show points":"Punkte anzeigen","Show save image button":"Schaltfläche „Bild speichern“ anzeigen","Show values":"Werte anzeigen",Smoothing:Hxt,Source:Uxt,Spline:Vxt,Stack:qxt,"Start:":"Start:","State value":"Wert angeben","State value text":"Werttext angeben","Step span:":"Schrittweite:","Step type":"Schrittart","Step type:":"Schritttyp:",Steps:Gxt,"Steps on start":"Schritte beim Start",Style:Xxt,"System settings":"Systemeinstellungen",Text:Jxt,"Text X offset":"Text-X-Offset","Text Y offset":"Text Y-Offset","Text by false":"Text bei falsch","Text by true":"Text bei wahr","Text color":"Textfarbe","Text position":"Textposition","Text size":"Textgröße","Text values not used":"Textwerte nicht verwendet",Texts:Yxt,Theme:Kxt,"This time offset will be added to the X label by displaying data on the chart":"Dieser Zeitversatz wird der X-Beschriftung hinzugefügt, indem Daten im Diagramm angezeigt werden","This time offset will be added to the request by reading data from DB":"Dieser Zeitversatz wird der Anfrage durch das Lesen von Daten aus der Datenbank hinzugefügt","Ticks from:":"Benutze X-Ticks aus:",Time:Zxt,"Time Span":"Zeit Spanne","Time format":"Zeitformat","Time format:":"Zeitformat:","Time span":"Zeitspanne","Time stamp":"Zeitstempel",Title:Qxt,"Title color":"Titelfarbe","Title color:":"Titelfarbe:","Title position":"Titelposition","Title position:":"Beschriftungs-Position:","Title size":"Titelgröße","Title size:":"Titelgröße:","Title:":"Beschriftung:","Top, center, inside":"Oben, mittig, innen","Top, left":"Oben, links","Top, left, inside":"Oben, links, innen","Top, right":"Oben, rechts","Top, right, inside":"Oben, rechts, innen","Top, right, outside":"Oben, rechts, außen",Type:eSt,Unit:tSt,"Units:":"Einheiten:",Update:rSt,"Update objects":"Objekte aktualisieren","Update states":"States aktualisieren","Upper value or ID":"Oberer Wert oder ID","Use comma":"Komma benutzen","Use comma:":"Benutze Komma:","Use state names":"Zustandsnamen verwenden ","User defined":"Anwenderdefiniert","User defined names:":"Benutzerdefinierte Namen:","Valid time (sec)":"Gültige Zeit (Sek.)",Value:nSt,Width:oSt,"Width:":"Breite:","Window background":"Fensterhintergrund","Window background:":"Fenster-Hintergrund:",With:aSt,"With border":"Mit Grenze","With lines":"mit Linien",Without:iSt,"Without border":"Ohne Rand","Without lines":"ohne Linien","X Axis":"X Axe","X Axis position":"X Achsenposition","X axis labels color:":"X Beschriftungsfarbe:","X labels color":"X Beschriftungsfarbe","X labels size":"X Schriftgröße","X ticks color":"X-Strichfarbe","X-Axis ticks":"X-Achse-Ticks","X-Label-Offset":"X-Label-Offset","X-Offset":"X-Offset","Y Axis":"Y Axe","Y Axis position":"Y Achsenposition","Y axis labels color:":"Y Beschriftungsfarbe:","Y labels color":"Y Beschriftungsfarbe","Y labels size":"Y-Schriftgröße","Y ticks color":"Y-Strichfarbe","Y-Axis ticks":"Y-Achse-Ticks","Y-Offset":"Y-Offset",'You can create a new markings with a "+" on the right.':'Man kann neue Markierungen mit einem "+" rechts erstellen.',"You can drag and drop simple lines from the left list.":"Man kann einfache Linien aus der linken Liste ziehen und ablegen.","add children":"Sub-enums einfügen",area:sSt,auto:lSt,average:cSt,bar:dSt,bottom:uSt,bottomColor:pSt,convert_help:hSt,copied:fSt,copy:mSt,count:gSt,counts:vSt,current:ySt,dashed:_St,day:bSt,default:"default",difference:wSt,dotted:xSt,dow:SSt,edit:CSt,"edit enum":"Enum ändern","edit file":"Datei editieren","end of 10 minutes":"Ende von 10 Minuten","end of 12 hours":"Ende von 12 Stunden","end of 2 hours":"Ende von 2 Stunden","end of 3 hours":"Ende von 3 Stunden","end of 30 minutes":"Ende von 30 Minuten","end of 4 hours":"Ende von 4 Stunden","end of 5 minutes":"Ende von 5 Minuten","end of 6 hours":"Ende von 6 Stunden","end of 8 hours":"Ende von 8 Stunden","end of day":"Tagesende","end of hour":"Stundenende","end of minute":"Minutenende","end of previous saturday":"Ende Vorsamstag (2 Wochen)","end of previous sunday":"Ende Vorsonntag (2 Wochen)","end of saturday":"Samstagsende","end of sunday":"Wochenssende",false:"null",horizontal:$St,i15min:kSt,i1day:ESt,i1hour:TSt,i30days:OSt,"ignore 'null'":"'null' ignorieren","ignore 'null':":"'null' ignorieren:","ignore null values":"null-Werte ignorieren",integral:DSt,"last value":"letztes Wert",left:ASt,"left colored":"links farbig",leftColor:ISt,line:MSt,linear:PSt,lineplot:NSt,load:RSt,max:jSt,middle:LSt,min:zSt,minmax:FSt,month:BSt,new:"unter neuen Namen",no:WSt,"no null":" kein NULL","non-processed":"unbearbeitet",none:HSt,none_no:USt,now:VSt,null:"null",off:qSt,onchange:GSt,"own axis":"eigene Achse",percentile:XSt,polar:JSt,raw:YSt,relative:KSt,reload:ZSt,"restart script":"Skript neu starten",right:QSt,"right colored":"rechts gefärbt",rightColor:eCt,role:tCt,save:rCt,"save %s":"Speichern %s",scatterplot:nCt,seconds:oCt,solid:aCt,spline:iCt,standard:sCt,static:"statik",steps:lCt,"this month":"dieser Monat","this year":"dieses Jahr",to:cCt,today:dCt,top:uCt,"top over":"oben über","top under":"oben unten",topColor:pCt,total:hCt,true:"letztes Wert","update Preview":"Vorschau aktualisieren","use 0 instead of null values":"0 statt null benutzen",vertical:fCt,weekEurope:mCt,weekUsa:gCt,year:vCt,yes:yCt,ØL:"ØL","ØL - Line thickness":"ØL - Liniendicke","ØL Line thickness":"ØL Linienstärke",ØS:"ØS","ØS - Shadow size":"ØS - Schattengröße","ØS Shadow size":"ØS Schattengröße"},bCt="Подтверждён",wCt="Добавить",xCt="Агрегатная функция",SCt="Тип",CCt="все",$Ct="Оформление",kCt="Применить",ECt="Авто",TCt="Оси",OCt="Фоны",DCt="Bar",ACt="Граница",ICt="отменить",MCt="Круг",PCt="Закрыть",NCt="Свернуть",RCt="Цвет",jCt="Копировать",LCt="Кол-во значений",zCt="Создайте",FCt="Данные",BCt="по умолчанию",WCt="Удалить",HCt="Диалог",UCt="Edit",VCt="Конец",qCt="Развернуть",GCt="Заливка",XCt="Папка",JCt="От",YCt="Функции",KCt="Сетка",ZCt="Высота",QCt="ID",e$t="Объекты",t$t="Индивидуально",r$t="Драйвер",n$t="Интервалы",o$t="этикетка",a$t="Этикетки",i$t="слева",s$t="Легенда",l$t="Пределы",c$t="Линия",d$t="URL",u$t="Главные",p$t="Маркировка",h$t="Разметка",f$t="Макс",m$t="Объекты",g$t="Мин",v$t="MinMax",y$t="ещё",_$t="Несколько",b$t="Имя",w$t="Нет",x$t="Сдвиг по Х",S$t="Ok",C$t="Показать",$$t="Опции",k$t="Ориентация",E$t="Другие",T$t="Вставить",O$t="Процентиль",D$t="Круговая диаграмма",A$t="Точки",I$t="Полярная карта (Радар)",M$t="Полигональный",P$t="Пресеты",N$t="Обработка",R$t="Диапазон",j$t="Родственник",L$t="Переименовать",z$t="справа",F$t="Роль",B$t="Комната",W$t="Номера",H$t="Корневая папка",U$t="Cекунды",V$t="Выбрать",q$t="Сглаживание",G$t="Источник",X$t="Сплайн",J$t="Stack",Y$t="Ступени",K$t="Стиль",Z$t="Текст",Q$t="Тексты",ekt="Тема",tkt="Время",rkt="Подпись",nkt="Тип",okt="Единицы",akt="Обновить",ikt="Значение",skt="Ширина",lkt="с",ckt="без",dkt="Область",ukt="авто",pkt="среднее",hkt="Bar",fkt="снизу",mkt="снизу цветом",gkt="Введите формулу типа «val / 1000 + 3». Эта формула будет применяться ко всем значениям выбранной точки данных.",vkt="скопировано",ykt="Скопировать",_kt="считать",bkt="кол-во",wkt="Текущая стоимость",xkt="пунктирная",Skt="День",Ckt="разница",$kt="пунктирный",kkt="День недели",Ekt="редактировать",Tkt="горизонтальный",Okt="15 минут",Dkt="1 день",Akt="1 час",Ikt="30 дней",Mkt="интеграл",Pkt="слева",Nkt="слева цветом",Rkt="Линия",jkt="линейный",Lkt="Линия с точками",zkt="загрузить",Fkt="макс",Bkt="В середине",Wkt="мин",Hkt="minmax",Ukt="month",Vkt="нет",qkt="ничего",Gkt="нет",Xkt="сейчас",Jkt="скрыть",Ykt="при изменении",Kkt="процентиль",Zkt="Полярная карта (радар)",Qkt="необработанные",eEt="относительно",tEt="Перезагрузить",rEt="справа",nEt="справа цветом",oEt="Роль",aEt="сохранить",iEt="Точки",sEt="секунды",lEt="обычный",cEt="Сллайн",dEt="стандарт",uEt="Шаги",pEt="до",hEt="сегодня",fEt="сверху",mEt="сверху цветом",gEt="всего",vEt="вертикальный",yEt="Конец дня",_Et="Конец недели",bEt="year",wEt="да",xEt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"%s назад","ØL":"ØL","ØS":"ØS","0 seconds":"0 секунд","0s":"0c","1 day":"1 день","1 hour":"1 час","1 minute":"1 минуту","1 month":"1 месяц","1 week":"1 неделя","1 year":"1 год","10 minutes":"10 минут","10 seconds":"10 секунд","10m":"10 минут","10minutes":"Конец 10 minutes","10s":"10 секунд","12 hours":"12 часов","12H":"12 часов","12W":"12 недель","12hours":"Конец 12 часов","14 days":"14 дней","15 minutes":"15 минут","15 seconds":"15 секунд","15m":"15 минут","1D":"1 день","1H":"1 час","1M":"1 месяц","1W":"1 неделя","1Y":"1 год","1hour":"Конец часа","1minute":"Конец минуты","1s":"1 секунда","2 days":"2 дня","2 hours":"2 часа","2 minutes":"2 минуты","2 months":"2 месяца","2 weeks":"2 недели","2 years":"2 года","20 minutes":"20 минут","20 seconds":"20 секунд","26W":"26 недель","2D":"2 дня","2H":"2 часа","2M":"2 месяца","2W":"2 недели","2Y":"2 года","2hours":"Конец 2 часов","2m":"2 минуты","2s":"2 секунды","3 days":"3 дня","3 hours":"3 часа","3 minutes":"3 минуты","3 months":"3 месяца","30 minutes":"30 минут","30 seconds":"30 секунд","300ms":"300мс","30m":"30 минут","30minutes":"Конец 30 minutes","30s":"30 секунд","3D":"3 дня","3M":"3 месяца","3hours":"Конец 3 часов","3m":"3 минуты","3s":"3 секунды","4 days":"4 дня","4 minutes":"4 минуты","45 minutes":"45 минут","45m":"45 минут","4D":"4 дня","4W":"4 недели","4hours":"Конец 4 часов","4m":"4 минуты","5 minutes":"5 минут","5 seconds":"5 секунд","500ms":"500мс","5m":"5 минут","5minutes":"Конец 5 minutes","5s":"5 секунд","6 hours":"6 часов","6 months":"6 месяцев","60 seconds":"60 секунд","60s":"60 секунд","6H":"6 часов","6M":"6 месяцев","6hours":"Конец 6 часов","7 days":"7 дней","8W":"8 недель","8hours":"Конец 8 часов","90 seconds":"90 секунд",Acknowledged:bCt,Add:wCt,"Add line to chart":"Добавить линию в пресет","Add marking line to chart":"Добавить линию разметки на график","Add new line":"Добавить линию","Add new markings":"Добавить разметку","Add new state name":"Добавить новое название штата","Add new value":"Добавить новое значение","After comma":"После запятой",Aggregate:xCt,"Aggregate for lines":"Агрегация для линий",Aggregation:SCt,"Aggregation:":"Тип:",All:CCt,"Animation:":"Анимация:",Appearance:$Ct,Apply:kCt,"Are you sure for closing folder and discard unsaved changes?":"Вы уверены, что хотите закрыть папку и отменить несохраненные изменения?","Are you sure for delete this line?":"Вы уверены, что удалите эту строку?","Are you sure for delete this mark?":"Вы уверены, что удалите эту отметку?","Are you sure for delete this preset?":"Вы уверены, что хотите удалить этот пресет?","Are you sure for loading the chart and discard unsaved changes?":"Вы уверены, что хотите загрузить диаграмму и отменить несохраненные изменения?","Are you sure for loading the preset and discard unsaved changes?":"Вы уверены, что хотите загрузить предустановку и отменить несохраненные изменения?","Arrange bools":"Выстроить bool графики",Auto:ECt,"Auto (Line or Steps)":"Авто (линия или шаги)","Auto padding":"Авто-отступы","Auto save":"Автосохранение","Auto-refresh":"Автообновление","Auto-update:":"Обновлять сразу:",Axis:TCt,"Background of radar chart":"Фон радиолокационной диаграммы","Background:":"Фон:",Backgrounds:OCt,Bar:DCt,"Bar settings":"Настройки Bar","Bars width:":"Ширина бара:",Border:ACt,"Border color:":"Цвет рамки:","Border padding":"Отступы границы","Border width":"Ширина рамки","Border width:":"Ширина рамки:","Bottom, center, inside":"Снизу, по центру, внутри","Bottom, center, outside":"Снизу, по центру, снаружи","Bottom, left":"Снизу, слева","Bottom, left, inside":"Снизу, слева, внутри","Bottom, right":"Снизу, справа","Bottom, right, inside":"Снизу, справа, внутри","Bottom, right, outside":"Снизу, справа, снаружи",Cancel:ICt,"Cannot create unique ID":"Невозможно создать уникальный идентификатор","Chart Type":"Тип графика","Chart background":"Фон диаграммы","Chart background:":"Фон графика:","Chart size":"Размер диаграммы","Chart type":"Тип диаграммы","Charts preview":"Предварительный просмотр диаграмм",Circle:MCt,Close:PCt,Collapse:NCt,"Collapse all lines":"Свернуть все строки","Collapse all markings":"Свернуть все маркировки",Color:RCt,"Common Y Axis":"Общая ось Y","Convert formula":"Формула преобразования",Copy:jCt,"Copy link to clipboard":"Скопировать ссылку в буфер обмена",Counts:LCt,Create:zCt,"Create folder":"Создать папку","Create new folder":"Создать новую папку","Create new preset":"Создать новый пресет","Create preset":"Создать пресет","Custom chart background:":"Пользовательский фон графика:","Custom time format":"Пользовательский формат времени",Data:FCt,Default:BCt,Delete:WCt,"Delete object":"Удалить объект","Delete text value":"Удалить текстовое значение",Dialog:HCt,"Digits after comma":"Цифры после запятой","Drag me":"Перетащи меня",Edit:UCt,"Edit folder name":"Изменить имя папки","Edit options for line %s":"Редактировать настройки для линии %s","Edit state names":"Изменить названия штатов","Empty preset cannot be saved!":"Пустой пресет не может быть сохранен!","Enable logging for new state":"Включить ведение журнала для нового состояния","Enable zoom and pan":"Разрешить зум","Enable zoom and pan:":"Разрешить увеличение и сдвиг:",End:VCt,"End:":"Конец:","Enter chart name":"Введите имя графика",Expand:qCt,"Expand all lines":"Развернуть все строки","Expand all markings":"Развернуть все маркировки","Export data color":"Цвет кнопки экспорта данных",Fill:GCt,"Fill color:":"Цвет заливки:","Fill range:":"Всегда весь интервал:","Fill(0to1)":"Фон(0to1)",Folder:XCt,"Font size":"Размер шрифта",From:JCt,"From line %s":"Из строки %s",Functions:YCt,Grid:KCt,"Grid color":"Цвет сетки","Grid color:":"Цвет сетки:","Group by":"Группа по","HH:MM dd.mm":"ЧЧ:ММ дд.мм",Height:ZCt,"Height:":"Высота:","Hide X grid":"Скрыть сетку X","Hide Y grid":"Скрыть сетку Y","Hide edit button:":"Скрыть кнопку 'Редактировать':","Hide nulls in tooltip":"Скрыть нули в подсказке","Hover details":"Детали при наведении","Hover details:":"Показывать подсказку:",ID:QCt,IDs:e$t,"If the current value is not older than X seconds, assume it is still the same.":"Если текущее значение не старше X секунд, предположим, что оно осталось прежним.","In seconds":"В секундах",Individual:t$t,"Input data":"Входные данные","Inside / No lines":"Внутри / Без линий","Inside / With lines":"Внутри / С линиями","Inside end":"Внутри, на конце","Inside end bottom":"Внутри, в конце, внизу","Inside end top":"Внутри, в конце, сверху","Inside middle":"Внутри, посередине","Inside middle bottom":"Внутри, посередине, снизу","Inside middle top":"Внутри, посередине, вверху","Inside start":"Внутри, в начале","Inside start bottom":"Внутри, в начале, внизу","Inside start top":"Внутри, на старте, сверху",Instance:r$t,"Integral unit":"Интегральный блок","Interpolate:":"Интерполяция:","Interpolation method":"Метод интерполяции",Intervals:n$t,"Invalid object":"Недопустимый объект",Label:o$t,"Label color:":"Цвет подписи:","Label font size:":"Шрифт подписи:",Labels:a$t,"Last changed":"Изменён",Left:i$t,Legend:s$t,"Legend background":"Фон легенды","Legend background:":"Фон легенды:","Legend columns:":"Колонок в легенде:","Legend opacity (from 0 to 1):":"Прозрачность легенды (от 0 до 1):","Legend text color":"Цвет текста легенды",Limits:l$t,Line:c$t,"Line ID":"ID линии","Line Width":"Ширина линии","Line and area":"Линия и область","Line style":"Стиль линии",Link:d$t,"Live update every":"Обновление каждые","Live update every:":"Обновлять каждые:","Load without save":"Загрузить без сохранения","Loading...":"Загрузка...","Lower value or ID":"Нижнее значение или ID",Main:u$t,Mark:p$t,Markings:h$t,Max:f$t,"Max:":"Максимум:",Members:m$t,"Middle, left, inside":"Посередине, слева, внутри","Middle, right, inside":"Посередине, справа, внутри","Middle, right, outside":"Посередине, справа, снаружи",Min:g$t,"Min:":"Минимум:",MinMax:v$t,More:y$t,"Move to folder":"Переместить в папку",Multiple:_$t,"NULL as":"NULL как",Name:b$t,"Name:":"Имя:","No ID yet":"ID еще нет","No background":"Без фона","No border:":"Без рамки:","No future":"Никаких ценностей в будущем","No interpolate in hover":"В подсказке не интерполировать","No presets created yet":"Предварительные настройки еще не созданы",None:w$t,Offset:x$t,Ok:S$t,Open:C$t,"Open chart in own window":"Открыть график в собственном окне","Open in own window":"Открыть в собственном окне",Options:$$t,Orientation:k$t,Others:E$t,"Outside / No lines":"Снаружи / Без линий","Outside/ With lines":"Снаружи/ С линиями",Paste:T$t,Percentile:O$t,Pie:D$t,"Please confirm":"Пожалуйста, подтвердите",Points:A$t,Polar:I$t,Polygonal:M$t,"Predefined background:":"Выбрать фон:",Presets:P$t,Processing:N$t,"Processing...":"Обработка...",Range:R$t,"Range:":"Интервал:",Relative:j$t,Rename:L$t,"Rename preset":"Переименовать пресет","Reorder presets in folders":"Изменить порядок пресетов в папках","Reset settings":"Сбросить настройки","Reset zoom after idle":"Сбросить масштаб после простоя",Right:z$t,Role:F$t,Room:B$t,Rooms:W$t,Root:H$t,"Save current preset and load":"Сохранить текущую предустановку и загрузить","Save image button color":"Сохранить цвет кнопки изображения","Save into:":"Сохранить как:","Scatter plot":"Scatter plot",Seconds:U$t,Select:V$t,"Select ID":"Выбрать ID","Select for":"Выберите для","Shadow Size":"Ширина тени","Show controls":"Показать элементы управления","Show export data button":"Показать кнопку экспорта данных","Show labels:":"Подписи:","Show legend":"Показать легенду","Show legend:":"Показать легенду:","Show only in legend":"Показать только в легенде","Show points":"Показать баллы","Show save image button":"Показать кнопку сохранения изображения","Show values":"Показать значения",Smoothing:q$t,Source:G$t,Spline:X$t,Stack:J$t,"Start:":"Начало:","State value":"Числовое значение","State value text":"Текст значения","Step span:":"Интервал шага:","Step type":"Тип шага","Step type:":"Шаги:",Steps:Y$t,"Steps on start":"Шаги на старте",Style:K$t,"System settings":"Системные настройки",Text:Z$t,"Text X offset":"Сдвиг текста по X","Text Y offset":"Смещение текста по Y","Text by false":"Текст для false","Text by true":"Текст для true","Text color":"Цвет текста","Text position":"Расположение текста","Text size":"Размер текста","Text values not used":"Текстовые значения не используются",Texts:Q$t,Theme:ekt,"This time offset will be added to the X label by displaying data on the chart":"Это временное смещение будет добавлено к метке X при отображении данных на диаграмме.","This time offset will be added to the request by reading data from DB":"Это смещение времени будет добавлено к запросу при чтении данных из БД.","Ticks from:":"Подписи X-делений из:",Time:tkt,"Time Span":"Временной интервал","Time format":"Формат времени","Time format:":"Формат времени:","Time span":"Промежуток времени","Time stamp":"Время",Title:rkt,"Title color":"Цвет заголовка","Title color:":"Цвет названия:","Title position":"Позиция заголовка","Title position:":"Позиция названия:","Title size":"Размер заголовка","Title size:":"Размер названия:","Title:":"Название:","Top, center, inside":"Сверху, по центру, внутри","Top, left":"Сверху, слева","Top, left, inside":"Сверху, слева, внутри","Top, right":"Сверху, справа","Top, right, inside":"Сверху, справа, внутри","Top, right, outside":"Сверху, справа, снаружи",Type:nkt,Unit:okt,"Units:":"Единицы:",Update:akt,"Update objects":"Обновить объекты","Update states":"Обновить состояния","Upper value or ID":"Верхнее значение или ID","Use comma":"Используйте запятую","Use comma:":"Запятая-разделитель:","Use state names":"Используйте имена значений","User defined":"Пользовательские","User defined names:":"Задать имена графиков:","Valid time (sec)":"Действительное время (сек)",Value:ikt,Width:skt,"Width:":"Ширина:","Window background":"Фон окна","Window background:":"Фон окна:",With:lkt,"With border":"С границей","With lines":"С линиями",Without:ckt,"Without border":"Без границы","Without lines":"Без линий","X Axis":"Ось X","X Axis position":"Положение оси X","X axis labels color:":"Цвет текста по оси X:","X labels color":"Цвет меток X","X labels size":"Размер шрифта X","X ticks color":"Цвет меток X","X-Axis ticks":"Кол-во делений на шкале X","X-Label-Offset":"Смещение X-метки","X-Offset":"X-смещение","Y Axis":"Ось Y","Y Axis position":"Положение оси Y","Y axis labels color:":"Цвет текста по оси Y:","Y labels color":"Цвет ярлыков Y","Y labels size":"Размер шрифта Y","Y ticks color":"Цвет отметок Y","Y-Axis ticks":"Кол-во делений на шкале Y","Y-Offset":"Сдвиг по Y",'You can create a new markings with a "+" on the right.':"Вы можете создать новую маркировку знаком «+» справа.","You can drag and drop simple lines from the left list.":"Вы можете перетаскивать простые линии из левого списка.","add children":"Добавить под-категории",area:dkt,auto:ukt,average:pkt,bar:hkt,bottom:fkt,bottomColor:mkt,convert_help:gkt,copied:vkt,copy:ykt,count:_kt,counts:bkt,current:wkt,dashed:xkt,day:Skt,default:"по умолчанию",difference:Ckt,dotted:$kt,dow:kkt,edit:Ekt,"edit enum":"Изменить категорию","edit file":"Редактировать","end of 10 minutes":"Конец 10 minutes","end of 12 hours":"Конец 12 часов","end of 2 hours":"Конец 2 часов","end of 3 hours":"Конец 3 часов","end of 30 minutes":"Конец 30 minutes","end of 4 hours":"Конец 4 часов","end of 5 minutes":"Конец 5 minutes","end of 6 hours":"Конец 6 часов","end of 8 hours":"Конец 8 часов","end of day":"Конец дня","end of hour":"Конец часа","end of minute":"Конец минуты","end of previous saturday":"конец предыдущей субботы (2 недели)","end of previous sunday":"конец предыдущего воскресенья (2 недели)","end of saturday":"Конец субботы","end of sunday":"Конец недели",false:"null",horizontal:Tkt,i15min:Okt,i1day:Dkt,i1hour:Akt,i30days:Ikt,"ignore 'null'":"Игнорировать 'null'","ignore 'null':":"Игнорировать 'null':","ignore null values":"игнорировать значения null",integral:Mkt,"last value":"пред. значение",left:Pkt,"left colored":"cлева в цвете",leftColor:Nkt,line:Rkt,linear:jkt,lineplot:Lkt,load:zkt,max:Fkt,middle:Bkt,min:Wkt,minmax:Hkt,month:Ukt,new:"новое",no:Vkt,"no null":" без null","non-processed":"необработанный",none:qkt,none_no:Gkt,now:Xkt,null:"null",off:Jkt,onchange:Ykt,"own axis":"собственная ось",percentile:Kkt,polar:Zkt,raw:Qkt,relative:eEt,reload:tEt,"restart script":"Перезапустить скрипт",right:rEt,"right colored":"справа в цвете",rightColor:nEt,role:oEt,save:aEt,"save %s":"сохранить %s",scatterplot:iEt,seconds:sEt,solid:lEt,spline:cEt,standard:dEt,static:"постоянный",steps:uEt,"this month":"этот месяц","this year":"этот год",to:pEt,today:hEt,top:fEt,"top over":"Сверху над","top under":"Сверху под",topColor:mEt,total:gEt,true:"пред. значение","update Preview":"Обновить","use 0 instead of null values":"Заменять null на 0",vertical:vEt,weekEurope:yEt,weekUsa:_Et,year:bEt,yes:wEt,ØL:"ØL","ØL - Line thickness":"ØL - толщина линии","ØL Line thickness":"ØL Толщина линии",ØS:"ØS","ØS - Shadow size":"ØS - Размер тени","ØS Shadow size":"ØS Размер тени"},SEt="Reconhecido",CEt="Adicionar",$Et="Agregar",kEt="Tipo",EEt="Todos",TEt="Aparência",OEt="Aplicar",DEt="Auto",AEt="Eixo",IEt="Fundos",MEt="Bar",PEt="Fronteira",NEt="Cancelar",REt="Círculo",jEt="Fechar",LEt="Colapso",zEt="Cor",FEt="cópia de",BEt="Contagens",WEt="Crio",HEt="Dados",UEt="Padrão",VEt="Excluir",qEt="Diálogo",GEt="Editar",XEt="Fim",JEt="Expandir",YEt="Preencher",KEt="Pasta",ZEt="A partir de:",QEt="Funções",e2t="Rede",t2t="Altura",r2t="identidade",n2t="IDs",o2t="Individual",a2t="Instância",i2t="intervalos",s2t="Rótulo",l2t="Etiquetas",c2t="Esquerda",d2t="lenda",u2t="Limites",p2t="Linha",h2t="Ligação",f2t="a Principal",m2t="Marcando",g2t="Marcas",v2t="Max",y2t="Membros",_2t="Min",b2t="Mínimo máximo",w2t="Mais",x2t="Múltiplo",S2t="Nome",C2t="Nenhum",$2t="X-Offset",k2t="Está bem",E2t="Aberto",T2t="Opções",O2t="Orientação",D2t="Outras",A2t="Colar",I2t="Percentil",M2t="Torta",P2t="Pontos",N2t="Gráfico polar",R2t="Poligonal",j2t="Presets",L2t="Em processamento",z2t="Alcance",F2t="Relativo",B2t="Renomear",W2t="Certo",H2t="Função",U2t="Quarto",V2t="quartos",q2t="Raiz",G2t="Segundos",X2t="Selecione",J2t="Suavização",Y2t="Fonte",K2t="Spline",Z2t="Pilha",Q2t="Passos",eTt="Estilo",tTt="Texto",rTt="Texto:% s",nTt="Tema",oTt="Tempo",aTt="Título",iTt="Tipo",sTt="Unidade",lTt="Atualizar",cTt="Valor",dTt="Largura",uTt="Com",pTt="Sem",hTt="Área",fTt="auto",mTt="média",gTt="Barra",vTt="inferior",yTt="colorido inferior",_Tt='Digite a fórmula como "val / 1000 + 3". Esta fórmula será aplicada a todos os valores do ponto de dados selecionado.',bTt="copiado",wTt="cópia",xTt="contar",STt="contagens",CTt="Valor atual",$Tt="tracejadas",kTt="dia",ETt="diferença",TTt="pontilhado",OTt="Dia da semana",DTt="editar",ATt="horizontal",ITt="15 minutos",MTt="1 dia",PTt="1 hora",NTt="30 dias",RTt="integrante",jTt="esquerda",LTt="colorido esquerdo",zTt="Linha",FTt="linear",BTt="Trama de linha",WTt="carga",HTt="máximo",UTt="meio",VTt="min",qTt="mínimo máximo",GTt="mês",XTt="não",JTt="Nenhum",YTt="Nenhum",KTt="agora",ZTt="fora",QTt="em mudança",eOt="percentil",tOt="Gráfico polar",rOt="cru",nOt="relativo",oOt="recarregar",aOt="certo",iOt="cor clara",sOt="Função",lOt="Salve ",cOt="Parcela de dispersão",dOt="segundos",uOt="sólido",pOt="Spline",hOt="padrão",fOt="Passos",mOt="para",gOt="hoje",vOt="topo",yOt="colorido superior",_Ot="total",bOt="vertical",wOt="fim do dia",xOt="fim de domingo",SOt="ano",COt="sim",$Ot={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"% s atrás","ØL":"& # 216L","ØS":"& # 216S","0 seconds":"0 segundos","0s":"0 segundos","1 day":"1 dia","1 hour":"1 hora","1 minute":"1 minuto","1 month":"1 mês","1 week":"1 semana","1 year":"1 ano","10 minutes":"10 minutos","10 seconds":"10 segundos","10m":"10 minutos","10minutes":"fim de 10 minutos","10s":"10 segundos","12 hours":"12 horas","12H":"12 horas","12W":"12 semanas","12hours":"fim de 12 horas","14 days":"14 dias","15 minutes":"15 minutos","15 seconds":"15 segundos","15m":"15 minutos","1D":"1 dia","1H":"1 hora","1M":"1 mês","1W":"1 semana","1Y":"1 ano","1hour":"fim de hora","1minute":"fim de minuto","1s":"1 segundo","2 days":"2 dias","2 hours":"2 horas","2 minutes":"2 minutos","2 months":"2 meses","2 weeks":"2 semanas","2 years":"2 anos","20 minutes":"20 minutos","20 seconds":"20 segundos","26W":"26 semanas","2D":"2 dias","2H":"2 horas","2M":"2 meses","2W":"2 semanas","2Y":"2 anos","2hours":"fim de 2 horas","2m":"2 minutos","2s":"2 segundos","3 days":"3 dias","3 hours":"3 horas","3 minutes":"3 minutos","3 months":"3 meses","30 minutes":"30 minutos","30 seconds":"30 segundos","300ms":"300ms","30m":"30 minutos","30minutes":"fim de 30 minutos","30s":"30 segundos","3D":"3 dias","3M":"3 meses","3hours":"fim de 3 horas","3m":"3 minutos","3s":"3 segundos","4 days":"4 dias","4 minutes":"4 minutos","45 minutes":"45 minutos","45m":"45 minutos","4D":"4 dias","4W":"4 semanas","4hours":"fim de 4 horas","4m":"4 minutos","5 minutes":"5 minutos","5 seconds":"5 segundos","500ms":"500ms","5m":"5 minutos","5minutes":"fim de 5 minutos","5s":"5 segundos","6 hours":"6 horas","6 months":"6 meses","60 seconds":"60 segundos","60s":"60 segundos","6H":"6 horas","6M":"6 meses","6hours":"fim de 6 horas","7 days":"7 dias","8W":"8 semanas","8hours":"fim de 8 horas","90 seconds":"90 segundos",Acknowledged:SEt,Add:CEt,"Add line to chart":"Adicionar linha ao gráfico","Add marking line to chart":"Adicionar linha de marcação ao gráfico","Add new line":"Adicionar nova linha","Add new markings":"Adicionar novas marcações","Add new state name":"Adicionar novo nome de estado","Add new value":"Adicionar novo valor","After comma":"Após a vírgula",Aggregate:$Et,"Aggregate for lines":"Agregação para linhas",Aggregation:kEt,"Aggregation:":"Tipo:",All:EEt,"Animation:":"Animação:",Appearance:TEt,Apply:OEt,"Are you sure for closing folder and discard unsaved changes?":"Tem certeza de que deseja fechar a pasta e descartar as alterações não salvas?","Are you sure for delete this line?":"Tem certeza que deseja excluir esta linha?","Are you sure for delete this mark?":"Tem certeza de que deseja excluir esta marca?","Are you sure for delete this preset?":"Tem certeza de que deseja excluir esta predefinição?","Are you sure for loading the chart and discard unsaved changes?":"Tem certeza de que deseja carregar o gráfico e descartar as alterações não salvas?","Are you sure for loading the preset and discard unsaved changes?":"Tem certeza de que deseja carregar a predefinição e descartar as alterações não salvas?","Arrange bools":"Organizar booleanos",Auto:DEt,"Auto (Line or Steps)":"Auto (linha ou etapas)","Auto padding":"Recuo automático","Auto save":"Salvamento automático","Auto-refresh":"Atualização automática","Auto-update:":"Atualização automática:",Axis:AEt,"Background of radar chart":"Plano de fundo do gráfico de radar","Background:":"Fundo:",Backgrounds:IEt,Bar:MEt,"Bar settings":"Configurações da barra","Bars width:":"Largura das barras:",Border:PEt,"Border color:":"Cor da borda:","Border padding":"Preenchimento de borda","Border width":"Largura da borda","Border width:":"Largura da borda:","Bottom, center, inside":"No fundo, no centro, no interior","Bottom, center, outside":"Fundo, centro, fora","Bottom, left":"Inferior esquerdo","Bottom, left, inside":"Parte inferior, esquerda, dentro","Bottom, right":"Canto inferior direito","Bottom, right, inside":"Parte inferior, direita, dentro","Bottom, right, outside":"Parte inferior, direita, fora",Cancel:NEt,"Cannot create unique ID":"Não é possível criar ID exclusivo","Chart Type":"Tipo de gráfico","Chart background":"Plano de fundo do gráfico","Chart background:":"Contexto do gráfico:","Chart size":"Tamanho do gráfico","Chart type":"Tipo de Gráfico","Charts preview":"Visualização de gráficos",Circle:REt,Close:jEt,Collapse:LEt,"Collapse all lines":"Recolher todas as linhas","Collapse all markings":"Recolher todas as marcações",Color:zEt,"Common Y Axis":"Eixo Y comum","Convert formula":"Fórmula de conversão",Copy:FEt,"Copy link to clipboard":"Copiar link para a área de transferência",Counts:BEt,Create:WEt,"Create folder":"Criar pasta","Create new folder":"Criar nova pasta","Create new preset":"Criar uma nova predefinição","Create preset":"Criar predefinição","Custom chart background:":"Fundo de gráfico personalizado:","Custom time format":"Formato de hora personalizado",Data:HEt,Default:UEt,Delete:VEt,"Delete object":"Eliminar objeto","Delete text value":"Excluir valor de texto",Dialog:qEt,"Digits after comma":"Dígitos depois da vírgula","Drag me":"Arraste-me",Edit:GEt,"Edit folder name":"Editar o nome da pasta","Edit options for line %s":"Editar opções para a linha% s","Edit state names":"Editar nomes de estado","Empty preset cannot be saved!":"Predefinição vazia não pode ser salva!","Enable logging for new state":"Ativar registro para novo estado","Enable zoom and pan":"Ativar zoom e panorâmica","Enable zoom and pan:":"Ative o zoom e pan:",End:XEt,"End:":"Fim:","Enter chart name":"Digite o nome do gráfico",Expand:JEt,"Expand all lines":"Expandir todas as linhas","Expand all markings":"Expanda todas as marcações","Export data color":"Cor do botão de exportação de dados",Fill:YEt,"Fill color:":"Cor de preenchimento:","Fill range:":"Faixa de preenchimento:","Fill(0to1)":"Preencher (0 a 1)",Folder:KEt,"Font size":"Tamanho da fonte",From:ZEt,"From line %s":"Da linha %s",Functions:QEt,Grid:e2t,"Grid color":"Cor da grade","Grid color:":"Cor da grade:","Group by":"Grupo por","HH:MM dd.mm":"HH:MM dd.mm",Height:t2t,"Height:":"Altura:","Hide X grid":"Ocultar grade X","Hide Y grid":"Ocultar grade Y","Hide edit button:":"Ocultar botão de edição:","Hide nulls in tooltip":"Ocultar nulos na dica de ferramenta","Hover details":"Detalhes de navegação","Hover details:":"Detalhes do mouse:",ID:r2t,IDs:n2t,"If the current value is not older than X seconds, assume it is still the same.":"Se o valor atual não for mais antigo do que X segundos, assuma que ainda é o mesmo.","In seconds":"Em segundos",Individual:o2t,"Input data":"Dados de entrada","Inside / No lines":"Dentro / Sem linhas","Inside / With lines":"Dentro / Com linhas","Inside end":"Dentro, no final","Inside end bottom":"Dentro, no final, no fundo","Inside end top":"Dentro, no final, em cima","Inside middle":"Dentro, no meio","Inside middle bottom":"Dentro, no meio, embaixo","Inside middle top":"Dentro, no meio, em cima","Inside start":"Dentro, no começo","Inside start bottom":"Dentro, no início, na parte inferior","Inside start top":"Dentro, no começo, no topo",Instance:a2t,"Integral unit":"Unidade integral","Interpolate:":"Interpolar:","Interpolation method":"Método de interpolação",Intervals:i2t,"Invalid object":"Objeto inválido",Label:s2t,"Label color:":"Cor do rótulo:","Label font size:":"Etiquetar tamanho da fonte:",Labels:l2t,"Last changed":"Última modificação",Left:c2t,Legend:d2t,"Legend background":"Fundo da legenda","Legend background:":"Legend background:","Legend columns:":"Colunas da legenda:","Legend opacity (from 0 to 1):":"Opacidade da legenda (de 0 a 1):","Legend text color":"Cor do texto da legenda",Limits:u2t,Line:p2t,"Line ID":"ID da linha","Line Width":"Espessura da linha","Line and area":"Linha e área","Line style":"Estilo de linha",Link:h2t,"Live update every":"Atualização ao vivo a cada","Live update every:":"Atualização ao vivo a cada:","Load without save":"Carregar sem salvar","Loading...":"Carregando...","Lower value or ID":"Menor valor ou ID",Main:f2t,Mark:m2t,Markings:g2t,Max:v2t,"Max:":"Máximo:",Members:y2t,"Middle, left, inside":"Médio, esquerda, dentro","Middle, right, inside":"Médio, direito, dentro","Middle, right, outside":"Médio, direito, fora",Min:_2t,"Min:":"Mínimo:",MinMax:b2t,More:w2t,"Move to folder":"Mover para a pasta",Multiple:x2t,"NULL as":"NULL como",Name:S2t,"Name:":"Nome:","No ID yet":"Sem ID ainda","No background":"Sem fundo","No border:":"Sem borda:","No future":"Sem valores no futuro","No interpolate in hover":"Sem interpolação na dica de ferramenta","No presets created yet":"Nenhuma predefinição criada ainda",None:C2t,Offset:$2t,Ok:k2t,Open:E2t,"Open chart in own window":"Abra o gráfico na própria janela","Open in own window":"Abra na própria janela",Options:T2t,Orientation:O2t,Others:D2t,"Outside / No lines":"Fora / Sem linhas","Outside/ With lines":"Fora / Com linhas",Paste:A2t,Percentile:I2t,Pie:M2t,"Please confirm":"Por favor confirme",Points:P2t,Polar:N2t,Polygonal:R2t,"Predefined background:":"Antecedentes predefinidos:",Presets:j2t,Processing:L2t,"Processing...":"Em processamento...",Range:z2t,"Range:":"Alcance:",Relative:F2t,Rename:B2t,"Rename preset":"Renomear predefinição","Reorder presets in folders":"Reordenar predefinições em pastas","Reset settings":"Redefinir configurações","Reset zoom after idle":"Redefinir o zoom após inatividade",Right:W2t,Role:H2t,Room:U2t,Rooms:V2t,Root:q2t,"Save current preset and load":"Salvar predefinição atual e carregar","Save image button color":"Salvar cor do botão de imagem","Save into:":"Salvar em:","Scatter plot":"Gráfico de dispersão",Seconds:G2t,Select:X2t,"Select ID":"Selecione ID","Select for":"Selecione para","Shadow Size":"Tamanho da sombra","Show controls":"Mostrar controles","Show export data button":"Mostrar botão de exportação de dados","Show labels:":"Mostrar rótulos:","Show legend":"Mostrar legenda","Show legend:":"Mostrar lenda:","Show only in legend":"Mostrar apenas na legenda","Show points":"Mostrar pontos","Show save image button":"Mostrar botão de salvar imagem","Show values":"Mostrar valores",Smoothing:J2t,Source:Y2t,Spline:K2t,Stack:Z2t,"Start:":"Começar:","State value":"valor do estado","State value text":"Texto do valor do estado","Step span:":"Passo:","Step type":"Tipo de etapa","Step type:":"Tipo de etapa:",Steps:Q2t,"Steps on start":"Passos no início",Style:eTt,"System settings":"Configurações de sistema",Text:tTt,"Text X offset":"X-Deslocamento de texto","Text Y offset":"Deslocamento Y do texto","Text by false":"Texto por falso","Text by true":"Texto por verdadeiro","Text color":"Cor do texto","Text position":"Posição de texto","Text size":"Tamanho do texto","Text values not used":"Valores de texto não usados",Texts:rTt,Theme:nTt,"This time offset will be added to the X label by displaying data on the chart":"Este deslocamento de tempo será adicionado ao rótulo X exibindo dados no gráfico","This time offset will be added to the request by reading data from DB":"Este deslocamento de tempo será adicionado à solicitação lendo os dados do banco de dados","Ticks from:":"Use X-ticks de:",Time:oTt,"Time Span":"Intervalo de tempo","Time format":"Formato de hora","Time format:":"Formato do tempo:","Time span":"Intervalo de tempo","Time stamp":"Marca de horário",Title:aTt,"Title color":"Cor do título","Title color:":"Cor do título:","Title position":"Posição do título","Title position:":"Posição do título:","Title size":"Tamanho do título","Title size:":"Tamanho do título:","Title:":"Título:","Top, center, inside":"Topo, centro, dentro","Top, left":"Superior esquerdo","Top, left, inside":"Topo, esquerda, dentro","Top, right":"Canto superior direito","Top, right, inside":"Topo, direito, dentro","Top, right, outside":"Topo, direito, fora",Type:iTt,Unit:sTt,"Units:":"Unidades:",Update:lTt,"Update objects":"Atualizar objetos","Update states":"Estado de atualização","Upper value or ID":"Valor superior ou ID","Use comma":"Use vírgula","Use comma:":"Usar vírgula:","Use state names":"Usar nomes de estado","User defined":"Usuário definido","User defined names:":"Nomes definidos pelo usuário:","Valid time (sec)":"Tempo válido (s)",Value:cTt,Width:dTt,"Width:":"Largura:","Window background":"Fundo da janela","Window background:":"Fundo da janela:",With:uTt,"With border":"Com fronteira","With lines":"Com linhas",Without:pTt,"Without border":"Sem fronteira","Without lines":"Sem linhas","X Axis":"X Axis","X Axis position":"Posição do eixo X","X axis labels color:":"Cor de etiquetas X:","X labels color":"Cor dos rótulos X","X labels size":"Tamanho da fonte X","X ticks color":"Cor X carrapatos","X-Axis ticks":"Carrapatos do X-Axis","X-Label-Offset":"Deslocamento da etiqueta X","X-Offset":"X-Offset","Y Axis":"Eixo Y","Y Axis position":"Posição do eixo Y","Y axis labels color:":"Etiquetas de etiquetas Y:","Y labels color":"Cor dos rótulos Y","Y labels size":"Tamanho da fonte Y","Y ticks color":"Cor dos carrapatos Y","Y-Axis ticks":"Carrapatos do Y-Axis","Y-Offset":"Y-Offset",'You can create a new markings with a "+" on the right.':'Você pode criar uma nova marcação com um "+" à direita.',"You can drag and drop simple lines from the left list.":"Você pode arrastar e soltar linhas simples da lista à esquerda.","add children":"adicionar filhos",area:hTt,auto:fTt,average:mTt,bar:gTt,bottom:vTt,bottomColor:yTt,convert_help:_Tt,copied:bTt,copy:wTt,count:xTt,counts:STt,current:CTt,dashed:$Tt,day:kTt,default:"padrão",difference:ETt,dotted:TTt,dow:OTt,edit:DTt,"edit enum":"editar enum","edit file":"editar arquivo","end of 10 minutes":"fim de 10 minutos","end of 12 hours":"fim de 12 horas","end of 2 hours":"fim de 2 horas","end of 3 hours":"fim de 3 horas","end of 30 minutes":"fim de 30 minutos","end of 4 hours":"fim de 4 horas","end of 5 minutes":"fim de 5 minutos","end of 6 hours":"fim de 6 horas","end of 8 hours":"fim de 8 horas","end of day":"fim do dia","end of hour":"fim de hora","end of minute":"fim de minuto","end of previous saturday":"final do sábado anterior (2 semanas)","end of previous sunday":"final do domingo anterior (2 semanas)","end of saturday":"fim de sábado","end of sunday":"fim de domingo",false:"nulo",horizontal:ATt,i15min:ITt,i1day:MTt,i1hour:PTt,i30days:NTt,"ignore 'null'":"ignore 'null'","ignore 'null':":"ignore 'null':","ignore null values":"ignore valores nulos",integral:RTt,"last value":"último valor",left:jTt,"left colored":"cor esquerda",leftColor:LTt,line:zTt,linear:FTt,lineplot:BTt,load:WTt,max:HTt,middle:UTt,min:VTt,minmax:qTt,month:GTt,new:"Novo",no:XTt,"no null":"& nbsp; nulo","non-processed":"não processado",none:JTt,none_no:YTt,now:KTt,null:"nulo",off:ZTt,onchange:QTt,"own axis":"próprio eixo",percentile:eOt,polar:tOt,raw:rOt,relative:nOt,reload:oOt,"restart script":"reiniciar o script",right:aOt,"right colored":"cor certa",rightColor:iOt,role:sOt,save:lOt,"save %s":"salvar% s",scatterplot:cOt,seconds:dOt,solid:uOt,spline:pOt,standard:hOt,static:"estático",steps:fOt,"this month":"este mês","this year":"este ano",to:mOt,today:gOt,top:vOt,"top over":"mais alto","top under":"top sob",topColor:yOt,total:_Ot,true:"último valor","update Preview":"atualização Visualização","use 0 instead of null values":"use 0 em vez de valores nulos",vertical:bOt,weekEurope:wOt,weekUsa:xOt,year:SOt,yes:COt,ØL:"ØL","ØL - Line thickness":"ØL - Espessura da linha","ØL Line thickness":"Espessura da linha ØL",ØS:"ØS","ØS - Shadow size":"ØS - Tamanho da sombra","ØS Shadow size":"ØS tamanho da sombra"},kOt="Erkend",EOt="Toevoegen",TOt="Totaal",OOt="Type",DOt="Alle",AOt="Uiterlijk",IOt="Toepassen",MOt="Auto",POt="As",NOt="Achtergronden",ROt="Bar",jOt="Grens",LOt="Annuleer",zOt="Cirkel",FOt="Dichtbij",BOt="Ineenstorting",WOt="Kleur",HOt="Kopiëren",UOt="tellingen",VOt="Creëer",qOt="Gegevens",GOt="Standaard",XOt="Verwijderen",JOt="Dialoog",YOt="Bewerk",KOt="Einde",ZOt="Uitbreiden",QOt="Vullen",eDt="Map",tDt="Van:",rDt="Functies",nDt="Raster",oDt="Hoogte",aDt="ID kaart",iDt="IDs",sDt="individu",lDt="Aanleg",cDt="intervallen",dDt="Etiket",uDt="Etiketten",pDt="Links",hDt="Legende",fDt="Grenzen",mDt="Lijn",gDt="Link",vDt="Hoofd",yDt="Markering",_Dt="markeringen",bDt="Max",wDt="leden",xDt="min",SDt="MinMax",CDt="meer",$Dt="Meerdere",kDt="Naam",EDt="Geen",TDt="-X Offset",ODt="OK",DDt="Open",ADt="opties",IDt="Oriëntatie",MDt="Anderen",PDt="Plakken",NDt="percentiel",RDt="Taart",jDt="punten",LDt="Polaire kaart",zDt="Veelhoekig",FDt="presets",BDt="Verwerken",WDt="Bereik",HDt="Familielid",UDt="Hernoemen",VDt="Rechts",qDt="Rol",GDt="Kamer",XDt="Kamers",JDt="Wortel",YDt="seconden",KDt="kiezen",ZDt="smoothing",QDt="Bron",eAt="Spline",tAt="stack",rAt="Stappen",nAt="Stijl",oAt="Tekst",aAt="Teksten",iAt="Thema",sAt="Tijd",lAt="Titel",cAt="Type",dAt="Eenheid",uAt="Bijwerken",pAt="Waarde",hAt="Breedte",fAt="Met",mAt="Zonder",gAt="Gebied",vAt="auto",yAt="gemiddelde",_At="Bar",bAt="bodem",wAt="onderaan gekleurd",xAt='Voer de formule in zoals "val / 1000 + 3". Deze formule wordt toegepast op alle waarden van het geselecteerde datapunt.',SAt="gekopieerd",CAt="kopiëren",$At="graaf",kAt="tellingen",EAt="Huidige waarde",TAt="onderbroken",OAt="dag",DAt="verschil",AAt="gestippeld",IAt="Dag van de week",MAt="bewerking",PAt="horizontaal",NAt="15 minuten",RAt="1 dag",jAt="1 uur",LAt="30 dagen",zAt="integraal",FAt="links",BAt="links gekleurd",WAt="Lijn",HAt="lineair",UAt="Lijnplot",VAt="laden",qAt="max",GAt="midden-",XAt="min",JAt="MinMax",YAt="maand",KAt="Nee",ZAt="geen",QAt="geen",eIt="nu",tIt="uit",rIt="over verandering",nIt="percentiel",oIt="Polaire kaart",aIt="rauw",iIt="familielid",sIt="herladen",lIt="rechts",cIt="rechts gekleurd",dIt="rol",uIt="opslaan",pIt="Scatterplot",hIt="seconden",fIt="solide",mIt="spline",gIt="standaard-",vIt="Stappen",yIt="naar",_It="vandaag",bIt="top",wIt="bovenaan gekleurd",xIt="totaal",SIt="verticaal",CIt="einde van de dag",$It="einde van zondag",kIt="jaar",EIt="Ja",TIt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"% s geleden","ØL":"& # 216L","ØS":"& # 216S","0 seconds":"0 seconden","0s":"0 seconden","1 day":"1 dag","1 hour":"1 uur","1 minute":"1 minuut","1 month":"1 maand","1 week":"1 week","1 year":"1 jaar","10 minutes":"10 minuten","10 seconds":"10 seconden","10m":"10 minuten","10minutes":"einde van 10 minuten","10s":"10 seconden","12 hours":"12 uren","12H":"12 uren","12W":"12 weken","12hours":"einde van 12 uur","14 days":"14 dagen","15 minutes":"15 minuten","15 seconds":"15 seconden","15m":"15 minuten","1D":"1 dag","1H":"1 uur","1M":"1 maand","1W":"1 week","1Y":"1 jaar","1hour":"einde van het uur","1minute":"einde van de minuut","1s":"1 seconde","2 days":"2 dagen","2 hours":"twee uur","2 minutes":"2 minuten","2 months":"2 maanden","2 weeks":"2 weken","2 years":"2 jaar","20 minutes":"20 minuten","20 seconds":"20 seconden","26W":"26 weken","2D":"2 dagen","2H":"twee uur","2M":"2 maanden","2W":"2 weken","2Y":"2 jaar","2hours":"einde van 2 uur","2m":"2 minuten","2s":"2 seconden","3 days":"3 dagen","3 hours":"3 uur","3 minutes":"3 minuten","3 months":"3 maanden","30 minutes":"30 minuten","30 seconds":"30 seconden","300ms":"300ms","30m":"30 minuten","30minutes":"einde van 30 minuten","30s":"30 seconden","3D":"3 dagen","3M":"3 maanden","3hours":"einde van 3 uur","3m":"3 minuten","3s":"3 seconden","4 days":"4 dagen","4 minutes":"4 minuten","45 minutes":"45 minuten","45m":"45 minuten","4D":"4 dagen","4W":"4 weken","4hours":"einde van 4 uur","4m":"4 minuten","5 minutes":"5 minuten","5 seconds":"5 seconden","500ms":"500ms","5m":"5 minuten","5minutes":"einde van 5 minuten","5s":"5 seconden","6 hours":"6 uur","6 months":"6 maanden","60 seconds":"60 seconden","60s":"60 seconden","6H":"6 uur","6M":"6 maanden","6hours":"einde van 6 uur","7 days":"7 dagen","8W":"8 weken","8hours":"einde van 8 uur","90 seconds":"90 seconden",Acknowledged:kOt,Add:EOt,"Add line to chart":"Voeg lijn toe aan diagram","Add marking line to chart":"Voeg een markeringslijn toe aan de grafiek","Add new line":"Voeg een nieuwe regel toe","Add new markings":"Voeg nieuwe markeringen toe","Add new state name":"Nieuwe staatsnaam toevoegen","Add new value":"Nieuwe waarde toevoegen","After comma":"Na een komma",Aggregate:TOt,"Aggregate for lines":"Aggregatie voor lijnen",Aggregation:OOt,"Aggregation:":"Type:",All:DOt,"Animation:":"animatie:",Appearance:AOt,Apply:IOt,"Are you sure for closing folder and discard unsaved changes?":"Weet u zeker dat u de map wilt sluiten en de niet-opgeslagen wijzigingen wilt verwijderen?","Are you sure for delete this line?":"Weet u zeker dat u deze regel wilt verwijderen?","Are you sure for delete this mark?":"Weet u zeker dat u deze markering wilt verwijderen?","Are you sure for delete this preset?":"Weet u zeker dat u deze voorinstelling wilt verwijderen?","Are you sure for loading the chart and discard unsaved changes?":"Weet u zeker dat u de grafiek wilt laden en niet-opgeslagen wijzigingen wilt verwijderen?","Are you sure for loading the preset and discard unsaved changes?":"Weet u zeker dat u de voorinstelling wilt laden en niet-opgeslagen wijzigingen wilt verwijderen?","Arrange bools":"Booleans regelen",Auto:MOt,"Auto (Line or Steps)":"Auto (lijn of stappen)","Auto padding":"Automatisch inspringen","Auto save":"Automatisch opslaan","Auto-refresh":"Automatisch vernieuwen","Auto-update:":"Auto update:",Axis:POt,"Background of radar chart":"Achtergrond van radargrafiek","Background:":"Achtergrond:",Backgrounds:NOt,Bar:ROt,"Bar settings":"Bar-instellingen","Bars width:":"Staaf breedte:",Border:jOt,"Border color:":"Rand kleur:","Border padding":"Rand opvulling","Border width":"Grensbreedte","Border width:":"Grensbreedte:","Bottom, center, inside":"Onder, midden, binnen","Bottom, center, outside":"Onder, midden, buiten","Bottom, left":"Linksonder","Bottom, left, inside":"Onder, links, binnen","Bottom, right":"Rechts onder","Bottom, right, inside":"Onder, rechts, binnen","Bottom, right, outside":"Onder, rechts, buiten",Cancel:LOt,"Cannot create unique ID":"Kan geen unieke ID aanmaken","Chart Type":"Diagramtype","Chart background":"Grafiek achtergrond","Chart background:":"Grafiek achtergrond:","Chart size":"Grootte van de grafiek","Chart type":"Grafiektype","Charts preview":"Grafiekvoorbeeld",Circle:zOt,Close:FOt,Collapse:BOt,"Collapse all lines":"Vouw alle regels samen","Collapse all markings":"Vouw alle markeringen samen",Color:WOt,"Common Y Axis":"Gemeenschappelijke Y-as","Convert formula":"Conversie formule",Copy:HOt,"Copy link to clipboard":"Kopieer link naar klembord",Counts:UOt,Create:VOt,"Create folder":"Map aanmaken","Create new folder":"Maak een nieuwe map","Create new preset":"Maak een nieuwe voorinstelling","Create preset":"Maak een voorinstelling","Custom chart background:":"Aangepaste grafiek achtergrond:","Custom time format":"Aangepast tijdformaat",Data:qOt,Default:GOt,Delete:XOt,"Delete object":"Object verwijderen","Delete text value":"Tekstwaarde verwijderen",Dialog:JOt,"Digits after comma":"Cijfers na komma","Drag me":"Sleep me",Edit:YOt,"Edit folder name":"Bewerk mapnaam","Edit options for line %s":"Bewerk opties voor regel% s","Edit state names":"Staatsnamen bewerken","Empty preset cannot be saved!":"Lege presets kunnen niet worden opgeslagen!","Enable logging for new state":"Schakel logboekregistratie in voor nieuwe staat","Enable zoom and pan":"Schakel zoomen en pannen in","Enable zoom and pan:":"Zoom en pan inschakelen:",End:KOt,"End:":"Einde:","Enter chart name":"Voer de diagramnaam in",Expand:ZOt,"Expand all lines":"Vouw alle regels uit","Expand all markings":"Vouw alle markeringen uit","Export data color":"Knopkleur gegevens exporteren",Fill:QOt,"Fill color:":"Opvulkleur:","Fill range:":"Vulbereik:","Fill(0to1)":"Fill (0to1)",Folder:eDt,"Font size":"Lettertypegrootte",From:tDt,"From line %s":"Van regel %s",Functions:rDt,Grid:nDt,"Grid color":"Rasterkleur","Grid color:":"Raster kleur:","Group by":"Groeperen op","HH:MM dd.mm":"UU:MM dd.mm",Height:oDt,"Height:":"Hoogte:","Hide X grid":"Verberg X-raster","Hide Y grid":"Verberg Y-raster","Hide edit button:":"Verberg bewerken knop:","Hide nulls in tooltip":"Verberg null-waarden in tooltip","Hover details":"Beweeg de details","Hover details:":"Hover details:",ID:aDt,IDs:iDt,"If the current value is not older than X seconds, assume it is still the same.":"Als de huidige waarde niet ouder is dan X seconden, neem dan aan dat deze nog steeds hetzelfde is.","In seconds":"In seconden",Individual:sDt,"Input data":"Invoergegevens","Inside / No lines":"Binnenkant / Geen regels","Inside / With lines":"Binnen / met lijnen","Inside end":"Binnen, aan het einde","Inside end bottom":"Binnen, aan het einde, onderaan","Inside end top":"Binnen, aan het einde, bovenop","Inside middle":"Binnen, in het midden","Inside middle bottom":"Binnen, in het midden, onderaan","Inside middle top":"Binnen, in het midden, bovenaan","Inside start":"Binnen, aan het begin","Inside start bottom":"Binnen, aan het begin, aan de onderkant","Inside start top":"Binnen, aan het begin, bovenop",Instance:lDt,"Integral unit":"Integrale eenheid","Interpolate:":"Interpoleren:","Interpolation method":"Interpolatie methode:",Intervals:cDt,"Invalid object":"Ongeldig object",Label:dDt,"Label color:":"Label kleur:","Label font size:":"Label lettergrootte:",Labels:uDt,"Last changed":"Laatst gewijzigd",Left:pDt,Legend:hDt,"Legend background":"Legenda achtergrond","Legend background:":"Legenda achtergrond:","Legend columns:":"Legenda kolommen:","Legend opacity (from 0 to 1):":"Legenda opaciteit (van 0 tot 1):","Legend text color":"Tekstkleur legenda",Limits:fDt,Line:mDt,"Line ID":"Lijn-ID","Line Width":"Lijnbreedte","Line and area":"Lijn en gebied","Line style":"Lijnstijl",Link:gDt,"Live update every":"Live update elke","Live update every:":"Live update elke:","Load without save":"Laden zonder opslaan","Loading...":"Bezig met laden...","Lower value or ID":"Lagere waarde of ID",Main:vDt,Mark:yDt,Markings:_Dt,Max:bDt,"Max:":"maximaal:",Members:wDt,"Middle, left, inside":"Midden, links, binnenkant","Middle, right, inside":"Midden, rechts, binnenkant","Middle, right, outside":"Midden, rechts, buiten",Min:xDt,"Min:":"Minimum:",MinMax:SDt,More:CDt,"Move to folder":"Verplaats naar map",Multiple:$Dt,"NULL as":"NULL als",Name:kDt,"Name:":"Naam:","No ID yet":"Nog geen ID","No background":"Geen achtergrond","No border:":"Geen grens:","No future":"Geen waarden in de toekomst","No interpolate in hover":"Geen interpolatie in tooltip","No presets created yet":"Er zijn nog geen voorinstellingen gemaakt",None:EDt,Offset:TDt,Ok:ODt,Open:DDt,"Open chart in own window":"Open kaart in eigen venster","Open in own window":"Openen in eigen raam",Options:ADt,Orientation:IDt,Others:MDt,"Outside / No lines":"Buiten / Geen lijnen","Outside/ With lines":"Buiten / met lijnen",Paste:PDt,Percentile:NDt,Pie:RDt,"Please confirm":"Bevestig alstublieft",Points:jDt,Polar:LDt,Polygonal:zDt,"Predefined background:":"Voorgedefinieerde achtergrond:",Presets:FDt,Processing:BDt,"Processing...":"Verwerken...",Range:WDt,"Range:":"bereik:",Relative:HDt,Rename:UDt,"Rename preset":"Hernoem preset","Reorder presets in folders":"Voorinstellingen in mappen opnieuw ordenen","Reset settings":"Reset instellingen","Reset zoom after idle":"Zoom opnieuw instellen na inactiviteit",Right:VDt,Role:qDt,Room:GDt,Rooms:XDt,Root:JDt,"Save current preset and load":"Huidige voorinstelling opslaan en laden","Save image button color":"Bewaar de kleur van de afbeeldingsknop","Save into:":"Bewaar in:","Scatter plot":"Scatterplot",Seconds:YDt,Select:KDt,"Select ID":"Selecteer ID","Select for":"Selecteer voor","Shadow Size":"Schaduwgrootte","Show controls":"Bedieningselementen weergeven","Show export data button":"Knop Exportgegevens weergeven","Show labels:":"Toon labels:","Show legend":"Legenda weergeven","Show legend:":"Legenda weergeven:","Show only in legend":"Alleen in legenda weergeven","Show points":"Toon punten","Show save image button":"Toon knop afbeelding opslaan","Show values":"Toon waarden",Smoothing:ZDt,Source:QDt,Spline:eAt,Stack:tAt,"Start:":"Begin:","State value":"Staat waarde","State value text":"Staat waarde tekst","Step span:":"Stap overspanning:","Step type":"Stap type","Step type:":"Stap type:",Steps:rAt,"Steps on start":"Stappen bij het starten",Style:nAt,"System settings":"Systeem instellingen",Text:oAt,"Text X offset":"Tekst X-offset","Text Y offset":"Tekst Y-offset","Text by false":"Tekst door vals","Text by true":"Tekst door waar","Text color":"Tekst kleur","Text position":"Tekstpositie","Text size":"Lettergrootte","Text values not used":"Tekstwaarden worden niet gebruikt",Texts:aAt,Theme:iAt,"This time offset will be added to the X label by displaying data on the chart":"Deze tijdsverschuiving wordt toegevoegd aan het X-label door gegevens op de kaart weer te geven","This time offset will be added to the request by reading data from DB":"Deze tijdverschuiving wordt aan het verzoek toegevoegd door gegevens uit DB te lezen","Ticks from:":"Gebruik X-ticks van:",Time:sAt,"Time Span":"Tijdspanne","Time format":"Tijd formaat","Time format:":"Tijd formaat:","Time span":"Tijdspanne","Time stamp":"Tijdstempel",Title:lAt,"Title color":"Titel kleur","Title color:":"Titel kleur:","Title position":"Titelpositie","Title position:":"Titel positie:","Title size":"Titel grootte","Title size:":"Titel grootte:","Title:":"Titel:","Top, center, inside":"Boven, midden, binnenkant","Top, left":"Linksboven","Top, left, inside":"Boven, links, binnen","Top, right":"Rechtsboven","Top, right, inside":"Boven, rechts, binnen","Top, right, outside":"Boven, rechts, buiten",Type:cAt,Unit:dAt,"Units:":"units:",Update:uAt,"Update objects":"Objecten bijwerken","Update states":"Status bijwerken","Upper value or ID":"Hoogste waarde of ID","Use comma":"Gebruik een komma","Use comma:":"Gebruik komma:","Use state names":"Gebruik staatsnamen","User defined":"Gebruiker gedefinieerde","User defined names:":"Door de gebruiker gedefinieerde namen:","Valid time (sec)":"Geldige tijd (sec)",Value:pAt,Width:hAt,"Width:":"Breedte:","Window background":"Venster achtergrond","Window background:":"Venster achtergrond:",With:fAt,"With border":"Met rand","With lines":"Met lijnen",Without:mAt,"Without border":"Zonder rand","Without lines":"Zonder lijnen","X Axis":"X-as","X Axis position":"X-as positie","X axis labels color:":"X labels kleur:","X labels color":"X labels kleur","X labels size":"X lettergrootte","X ticks color":"X tikt kleur","X-Axis ticks":"X-as-teken","X-Label-Offset":"X-label-offset","X-Offset":"X-offset","Y Axis":"Y-as","Y Axis position":"Y-as positie","Y axis labels color:":"Y-labels kleur:","Y labels color":"Y-labels kleur","Y labels size":"Y-lettergrootte","Y ticks color":"Y tikt kleur","Y-Axis ticks":"Y-as tikken","Y-Offset":"Y-offset",'You can create a new markings with a "+" on the right.':'U kunt nieuwe markeringen maken met een "+" aan de rechterkant.',"You can drag and drop simple lines from the left list.":"U kunt eenvoudige regels vanuit de linkerlijst slepen en neerzetten.","add children":"voeg kinderen toe",area:gAt,auto:vAt,average:yAt,bar:_At,bottom:bAt,bottomColor:wAt,convert_help:xAt,copied:SAt,copy:CAt,count:$At,counts:kAt,current:EAt,dashed:TAt,day:OAt,default:"standaard",difference:DAt,dotted:AAt,dow:IAt,edit:MAt,"edit enum":"edit enum","edit file":"bestand bewerken","end of 10 minutes":"einde van 10 minuten","end of 12 hours":"einde van 12 uur","end of 2 hours":"einde van 2 uur","end of 3 hours":"einde van 3 uur","end of 30 minutes":"einde van 30 minuten","end of 4 hours":"einde van 4 uur","end of 5 minutes":"einde van 5 minuten","end of 6 hours":"einde van 6 uur","end of 8 hours":"einde van 8 uur","end of day":"einde van de dag","end of hour":"einde van het uur","end of minute":"einde van de minuut","end of previous saturday":"eind vorige zaterdag (2 weken)","end of previous sunday":"eind vorige zondag (2 weken)","end of saturday":"einde van zaterdag","end of sunday":"einde van zondag",false:"nul",horizontal:PAt,i15min:NAt,i1day:RAt,i1hour:jAt,i30days:LAt,"ignore 'null'":"negeer 'null'","ignore 'null':":"negeer 'null':","ignore null values":"Negeer waarden negeren",integral:zAt,"last value":"laatste waarde",left:FAt,"left colored":"links gekleurd",leftColor:BAt,line:WAt,linear:HAt,lineplot:UAt,load:VAt,max:qAt,middle:GAt,min:XAt,minmax:JAt,month:YAt,new:"nieuwe",no:KAt,"no null":"& nbsp; geen null","non-processed":"niet-verwerkt",none:ZAt,none_no:QAt,now:eIt,null:"nul",off:tIt,onchange:rIt,"own axis":"eigen as",percentile:nIt,polar:oIt,raw:aIt,relative:iIt,reload:sIt,"restart script":"herstart script",right:lIt,"right colored":"rechts gekleurd",rightColor:cIt,role:dIt,save:uIt,"save %s":"bespaar% s",scatterplot:pIt,seconds:hIt,solid:fIt,spline:mIt,standard:gIt,static:"statisch",steps:vIt,"this month":"deze maand","this year":"dit jaar",to:yIt,today:_It,top:bIt,"top over":"opnieuw gedaan","top under":"top onder",topColor:wIt,total:xIt,true:"laatste waarde","update Preview":"voorproefje van de nieuwe versie","use 0 instead of null values":"gebruik 0 in plaats van nulwaarden",vertical:SIt,weekEurope:CIt,weekUsa:$It,year:kIt,yes:EIt,ØL:"ØL","ØL - Line thickness":"ØL - Lijndikte","ØL Line thickness":"ØL Lijndikte",ØS:"Os","ØS - Shadow size":"ØS - Schaduwmaat","ØS Shadow size":"ØS Schaduwmaat"},OIt="Reconnu",DIt="Ajouter",AIt="Agrégat",IIt="Type",MIt="Tout",PIt="Apparence",NIt="Appliquer",RIt="Auto",jIt="Axe",LIt="Arrière-plans",zIt="Bar",FIt="Frontière",BIt="Annuler",WIt="Cercle",HIt="Fermer",UIt="Effondrer",VIt="Couleur",qIt="Copie",GIt="Compte",XIt="Créer",JIt="Les données",YIt="Défaut",KIt="Effacer",ZIt="Dialogue",QIt="modifier",eMt="Fin",tMt="Développer",rMt="Remplir",nMt="Dossier",oMt="De:",aMt="Les fonctions",iMt="la grille",sMt="la taille",lMt="ID",cMt="ID",dMt="Individuel",uMt="Exemple",pMt="Intervalles",hMt="Étiquette",fMt="Étiquettes",mMt="La gauche",gMt="Légende",vMt="Limites",yMt="Ligne",_Mt="Lien",bMt="Principale",wMt="Marquage",xMt="Marquages",SMt="Max",CMt="Membres",$Mt="Min",kMt="Min max",EMt="plus",TMt="Plusieurs",OMt="prénom",DMt="Aucun",AMt="X-Offset",IMt="D'accord",MMt="Ouvrir",PMt="Options",NMt="Orientation",RMt="Autres",jMt="Pâte",LMt="Centile",zMt="Tarte",FMt="Points",BMt="Carte polaire",WMt="Polygonal",HMt="Presets",UMt="Traitement",VMt="Gamme",qMt="Relatif",GMt="Renommer",XMt="Droite",JMt="Rôle",YMt="Chambre",KMt="Pièces",ZMt="Racine",QMt="Secondes",ePt="Sélectionner",tPt="Lissage",rPt="Source",nPt="Spline",oPt="Empiler",aPt="Pas",iPt="Style",sPt="Texte",lPt="Les textes",cPt="Thème",dPt="Temps",uPt="Titre",pPt="Type",hPt="Unité",fPt="Mettre à jour",mPt="Valeur",gPt="Largeur",vPt="Avec",yPt="Sans pour autant",_Pt="Région",bPt="auto",wPt="moyenne",xPt="Bar",SPt="bas",CPt="fond coloré",$Pt='Entrez la formule comme "val / 1000 + 3". Cette formule sera appliquée à toutes les valeurs du point de données sélectionné.',kPt="copié",EPt="copie",TPt="compter",OPt="compte",DPt="Valeur actuelle",APt="brisé",IPt="journée",MPt="différence",PPt="pointé",NPt="Jour de la semaine",RPt="modifier",jPt="horizontal",LPt="15 minutes",zPt="Un jour",FPt="1 heure",BPt="30 jours",WPt="intégral",HPt="la gauche",UPt="laissé coloré",VPt="Ligne",qPt="linéaire",GPt="Graphique linéaire",XPt="charge",JPt="max",YPt="milieu",KPt="min",ZPt="min max",QPt="mois",eNt="non",tNt="aucun",rNt="rien",nNt="à présent",oNt="de",aNt="sur le changement",iNt="centile",sNt="Carte polaire",lNt="brut",cNt="relatif",dNt="recharger",uNt="droite",pNt="couleur droite",hNt="rôle",fNt="enregistrer",mNt="Scatter plot",gNt="secondes",vNt="solide",yNt="Spline",_Nt="la norme",bNt="Pas",wNt="à",xNt="aujourd'hui",SNt="Haut",CNt="top coloré",$Nt="total",kNt="verticale",ENt="fin de la journée",TNt="fin de dimanche",ONt="an",DNt="Oui",ANt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"il y a% s","ØL":"& # 216L","ØS":"& # 216S","0 seconds":"0 seconde","0s":"0 seconde","1 day":"Un jour","1 hour":"1 heure","1 minute":"1 minute","1 month":"1 mois","1 week":"1 semaine","1 year":"1 an","10 minutes":"10 minutes","10 seconds":"10 secondes","10m":"10 minutes","10minutes":"fin de 10 minutes","10s":"10 secondes","12 hours":"12 heures","12H":"12 heures","12W":"12 semaines","12hours":"fin de 12 heures","14 days":"14 jours","15 minutes":"15 minutes","15 seconds":"15 secondes","15m":"15 minutes","1D":"Un jour","1H":"1 heure","1M":"1 mois","1W":"1 semaine","1Y":"1 an","1hour":"fin de l'heure","1minute":"fin de minute","1s":"1 seconde","2 days":"2 jours","2 hours":"2 heures","2 minutes":"2 minutes","2 months":"2 mois","2 weeks":"2 semaines","2 years":"2 ans","20 minutes":"20 minutes","20 seconds":"20 secondes","26W":"26 semaines","2D":"2 jours","2H":"2 heures","2M":"2 mois","2W":"2 semaines","2Y":"2 ans","2hours":"fin de 2 heures","2m":"2 minutes","2s":"2 secondes","3 days":"3 jours","3 hours":"3 heures","3 minutes":"3 minutes","3 months":"3 mois","30 minutes":"30 minutes","30 seconds":"30 secondes","300ms":"300ms","30m":"30 minutes","30minutes":"fin de 30 minutes","30s":"30 secondes","3D":"3 jours","3M":"3 mois","3hours":"fin de 3 heures","3m":"3 minutes","3s":"3 secondes","4 days":"4 jours","4 minutes":"4 minutes","45 minutes":"45 minutes","45m":"45 minutes","4D":"4 jours","4W":"4 semaines","4hours":"fin de 4 heures","4m":"4 minutes","5 minutes":"5 minutes","5 seconds":"5 secondes","500ms":"500ms","5m":"5 minutes","5minutes":"fin de 5 minutes","5s":"5 secondes","6 hours":"6 heures","6 months":"6 mois","60 seconds":"60 secondes","60s":"60 secondes","6H":"6 heures","6M":"6 mois","6hours":"fin de 6 heures","7 days":"7 jours","8W":"8 semaines","8hours":"fin de 8 heures","90 seconds":"90 secondes",Acknowledged:OIt,Add:DIt,"Add line to chart":"Ajouter une ligne au graphique","Add marking line to chart":"Ajouter une ligne de marquage au graphique","Add new line":"Ajouter une nouvelle ligne","Add new markings":"Ajouter de nouvelles marques","Add new state name":"Ajouter un nouveau nom d'état","Add new value":"Ajouter une nouvelle valeur","After comma":"Après la virgule",Aggregate:AIt,"Aggregate for lines":"Agrégation pour les lignes",Aggregation:IIt,"Aggregation:":"Type:",All:MIt,"Animation:":"Animation:",Appearance:PIt,Apply:NIt,"Are you sure for closing folder and discard unsaved changes?":"Êtes-vous sûr de vouloir fermer le dossier et d’ignorer les modifications non enregistrées ?","Are you sure for delete this line?":"Êtes-vous sûr de vouloir supprimer cette ligne?","Are you sure for delete this mark?":"Êtes-vous sûr de vouloir supprimer cette marque?","Are you sure for delete this preset?":"Êtes-vous sûr de vouloir supprimer ce préréglage?","Are you sure for loading the chart and discard unsaved changes?":"Êtes-vous sûr de vouloir charger le graphique et d’ignorer les modifications non enregistrées ?","Are you sure for loading the preset and discard unsaved changes?":"Êtes-vous sûr de vouloir charger le préréglage et d’ignorer les modifications non enregistrées ?","Arrange bools":"Organiser les booléens",Auto:RIt,"Auto (Line or Steps)":"Auto (ligne ou pas)","Auto padding":"Retrait automatique","Auto save":"Sauvegarde automatique","Auto-refresh":"Actualisation automatique","Auto-update:":"Mise à jour automatique:",Axis:jIt,"Background of radar chart":"Fond de carte radar","Background:":"Contexte:",Backgrounds:LIt,Bar:zIt,"Bar settings":"Paramètres du bar","Bars width:":"Largeur des barres:",Border:FIt,"Border color:":"Couleur de la bordure:","Border padding":"Rembourrage de la bordure","Border width":"Largeur de la bordure","Border width:":"Largeur de la bordure:","Bottom, center, inside":"Bas, centre, intérieur","Bottom, center, outside":"Bas, centre, extérieur","Bottom, left":"En bas à gauche","Bottom, left, inside":"Bas, gauche, intérieur","Bottom, right":"En bas à droite","Bottom, right, inside":"En bas, à droite, à l'intérieur","Bottom, right, outside":"En bas, à droite, à l'extérieur",Cancel:BIt,"Cannot create unique ID":"Impossible de créer un identifiant unique","Chart Type":"Type de graphique","Chart background":"Fond de graphique","Chart background:":"Arrière-plan du graphique","Chart size":"Taille du graphique","Chart type":"Type de graphique","Charts preview":"Aperçu des graphiques",Circle:WIt,Close:HIt,Collapse:UIt,"Collapse all lines":"Réduire toutes les lignes","Collapse all markings":"Réduire toutes les marques",Color:VIt,"Common Y Axis":"Axe Y commun","Convert formula":"Formule de conversion",Copy:qIt,"Copy link to clipboard":"Copier le lien dans le presse-papiers",Counts:GIt,Create:XIt,"Create folder":"Créer le dossier","Create new folder":"Créer un nouveau dossier","Create new preset":"Créer un nouveau préréglage","Create preset":"Créer un préréglage","Custom chart background:":"Arrière-plan de graphique personnalisé:","Custom time format":"Format d'heure personnalisé",Data:JIt,Default:YIt,Delete:KIt,"Delete object":"Supprimer un objet","Delete text value":"Supprimer la valeur du texte",Dialog:ZIt,"Digits after comma":"Chiffres après virgule","Drag me":"Tire moi",Edit:QIt,"Edit folder name":"Modifier le nom du dossier","Edit options for line %s":"Modifier les options pour la ligne% s","Edit state names":"Modifier les noms d'état","Empty preset cannot be saved!":"Un préréglage vide ne peut pas être enregistré !","Enable logging for new state":"Activer la journalisation pour le nouvel état","Enable zoom and pan":"Activer le zoom et le panoramique","Enable zoom and pan:":"Activer le zoom et le panoramique:",End:eMt,"End:":"Fin:","Enter chart name":"Entrez le nom du diagramme",Expand:tMt,"Expand all lines":"Développer toutes les lignes","Expand all markings":"Développer toutes les marques","Export data color":"Couleur du bouton Exporter les données",Fill:rMt,"Fill color:":"La couleur de remplissage:","Fill range:":"Remplir gamme:","Fill(0to1)":"Remplir (0to1)",Folder:nMt,"Font size":"Taille de police",From:oMt,"From line %s":"De la ligne %s",Functions:aMt,Grid:iMt,"Grid color":"Couleur de la grille","Grid color:":"Couleur de la grille:","Group by":"Par groupe","HH:MM dd.mm":"HH:MM jj.mm",Height:sMt,"Height:":"La taille:","Hide X grid":"Masquer la grille X","Hide Y grid":"Masquer la grille Y","Hide edit button:":"Masquer le bouton d'édition:","Hide nulls in tooltip":"Masquer les valeurs nulles dans l'info-bulle","Hover details":"Survolez les détails","Hover details:":"Hover détails:",ID:lMt,IDs:cMt,"If the current value is not older than X seconds, assume it is still the same.":"Si la valeur actuelle n'est pas plus ancienne que X secondes, supposez qu'elle est toujours la même.","In seconds":"En secondes",Individual:dMt,"Input data":"Des données d'entrée","Inside / No lines":"À l'intérieur / Pas de lignes","Inside / With lines":"À l'intérieur / Avec des lignes","Inside end":"À l'intérieur, à la fin","Inside end bottom":"À l'intérieur, à la fin, en bas","Inside end top":"À l'intérieur, à la fin, au-dessus","Inside middle":"A l'intérieur, au milieu","Inside middle bottom":"A l'intérieur, au milieu, en bas","Inside middle top":"A l'intérieur, au milieu, en haut","Inside start":"À l'intérieur, au début","Inside start bottom":"À l'intérieur, au début, en bas","Inside start top":"À l'intérieur, au début, au-dessus",Instance:uMt,"Integral unit":"Unité intégrale","Interpolate:":"Interpoler:","Interpolation method":"Méthode d'interpolation",Intervals:pMt,"Invalid object":"Objet invalide",Label:hMt,"Label color:":"Étiquette couleur:","Label font size:":"Étiquette taille de la police:",Labels:fMt,"Last changed":"Dernière modification",Left:mMt,Legend:gMt,"Legend background":"Arrière-plan de la légende","Legend background:":"Contexte de la légende","Legend columns:":"Colonnes de légende:","Legend opacity (from 0 to 1):":"Opacité de la légende (de 0 à 1):","Legend text color":"Couleur du texte de la légende",Limits:vMt,Line:yMt,"Line ID":"Id de ligne","Line Width":"Largeur de ligne","Line and area":"Ligne et zone","Line style":"Style de ligne",Link:_Mt,"Live update every":"Mise à jour en direct tous les","Live update every:":"Mise à jour en direct tous les:","Load without save":"Charger sans sauvegarder","Loading...":"Chargement...","Lower value or ID":"Valeur inférieure ou ID",Main:bMt,Mark:wMt,Markings:xMt,Max:SMt,"Max:":"Maximum:",Members:CMt,"Middle, left, inside":"Milieu, gauche, intérieur","Middle, right, inside":"Moyen, droit, intérieur","Middle, right, outside":"Moyen, droit, dehors",Min:$Mt,"Min:":"Le minimum:",MinMax:kMt,More:EMt,"Move to folder":"Déplacer vers un dossier",Multiple:TMt,"NULL as":"NULL comme",Name:OMt,"Name:":"Prénom:","No ID yet":"Pas encore d'ID ","No background":"Pas de fond","No border:":"Pas de frontière:","No future":"Aucune valeur à l'avenir","No interpolate in hover":"Aucune interpolation dans l'info-bulle","No presets created yet":"Aucun préréglage n'a encore été créé",None:DMt,Offset:AMt,Ok:IMt,Open:MMt,"Open chart in own window":"Ouvrir le graphique dans sa propre fenêtre","Open in own window":"Ouvrir dans sa propre fenêtre",Options:PMt,Orientation:NMt,Others:RMt,"Outside / No lines":"Extérieur / Pas de lignes","Outside/ With lines":"Extérieur / Avec lignes",Paste:jMt,Percentile:LMt,Pie:zMt,"Please confirm":"Veuillez confirmer",Points:FMt,Polar:BMt,Polygonal:WMt,"Predefined background:":"Arrière-plan prédéfini:",Presets:HMt,Processing:UMt,"Processing...":"En traitement...",Range:VMt,"Range:":"Gamme:",Relative:qMt,Rename:GMt,"Rename preset":"Renommer le préréglage","Reorder presets in folders":"Réorganiser les préréglages dans les dossiers","Reset settings":"Réinitialiser les options","Reset zoom after idle":"Réinitialiser le zoom après inactivité",Right:XMt,Role:JMt,Room:YMt,Rooms:KMt,Root:ZMt,"Save current preset and load":"Enregistrer le préréglage actuel et charger","Save image button color":"Couleur du bouton Enregistrer l'image","Save into:":"Enregistrer dans:","Scatter plot":"Nuage de points",Seconds:QMt,Select:ePt,"Select ID":"Sélectionner un identifiant","Select for":"Sélectionnez pour","Shadow Size":"Taille de l'ombre","Show controls":"Afficher les contrôles","Show export data button":"Afficher le bouton d'exportation des données","Show labels:":"Afficher les étiquettes:","Show legend":"Afficher la légende","Show legend:":"Afficher la légende:","Show only in legend":"Afficher uniquement dans la légende","Show points":"Afficher les points","Show save image button":"Afficher le bouton d'enregistrement de l'image","Show values":"Afficher les valeurs",Smoothing:tPt,Source:rPt,Spline:nPt,Stack:oPt,"Start:":"Début:","State value":"Valeur d'état","State value text":"Texte de la valeur d'état","Step span:":"Étape span:","Step type":"Type d'étape","Step type:":"Type d'étape:",Steps:aPt,"Steps on start":"Étapes au démarrage",Style:iPt,"System settings":"Les paramètres du système",Text:sPt,"Text X offset":"X-Décalage de texte","Text Y offset":"Décalage Y du texte","Text by false":"Texte par faux","Text by true":"Texte par vrai","Text color":"Couleur du texte","Text position":"Position du texte","Text size":"Taille du texte","Text values not used":"Valeurs de texte non utilisées",Texts:lPt,Theme:cPt,"This time offset will be added to the X label by displaying data on the chart":"Ce décalage temporel sera ajouté à l'étiquette X en affichant les données sur le graphique","This time offset will be added to the request by reading data from DB":"Ce décalage horaire sera ajouté à la requête en lisant les données de la base de données","Ticks from:":"Utilisez les X-ticks de:",Time:dPt,"Time Span":"Durée","Time format":"Format de l'heure","Time format:":"Format de l'heure:","Time span":"Durée","Time stamp":"Horodatage",Title:uPt,"Title color":"Couleur du titre","Title color:":"Couleur du titre:","Title position":"Position du titre","Title position:":"Titre du poste:","Title size":"Taille du titre","Title size:":"Taille du titre:","Title:":"Titre:","Top, center, inside":"Haut, centre, intérieur","Top, left":"En haut à gauche","Top, left, inside":"Haut, gauche, intérieur","Top, right":"En haut à droite","Top, right, inside":"En haut, à droite, à l'intérieur","Top, right, outside":"Haut, droit, dehors",Type:pPt,Unit:hPt,"Units:":"Unités:",Update:fPt,"Update objects":"Mettre à jour","Update states":"Mettre à jour","Upper value or ID":"Valeur supérieure ou ID","Use comma":"Utilisez une virgule","Use comma:":"Utilisez une virgule:","Use state names":"Utiliser les noms d'état","User defined":"Défini par l'utilisateur","User defined names:":"Noms définis par l'utilisateur:","Valid time (sec)":"Temps valide (sec)",Value:mPt,Width:gPt,"Width:":"Largeur:","Window background":"Fond de fenêtre","Window background:":"Fond de fenêtre:",With:vPt,"With border":"Avec bordure","With lines":"Avec des lignes",Without:yPt,"Without border":"Sans bordure","Without lines":"Sans lignes","X Axis":"Axe X","X Axis position":"Position de l'axe X","X axis labels color:":"X étiquettes couleur:","X labels color":"Couleur des étiquettes X","X labels size":"X taille de police","X ticks color":"X ticks couleur","X-Axis ticks":"Tiques de l'axe des X","X-Label-Offset":"Décalage de l'étiquette X","X-Offset":"Décalage X","Y Axis":"Axe Y","Y Axis position":"Position de l'axe Y","Y axis labels color:":"Couleur des étiquettes Y:","Y labels color":"Couleur des étiquettes Y","Y labels size":"Taille de police Y","Y ticks color":"Couleur des graduations Y","Y-Axis ticks":"Tiques de l'axe des Y","Y-Offset":"Y-Offset",'You can create a new markings with a "+" on the right.':'Vous pouvez créer un nouveau marquage avec un "+" sur la droite.',"You can drag and drop simple lines from the left list.":"Vous pouvez faire glisser et déposer des lignes simples à partir de la liste de gauche.","add children":"ajouter des enfants",area:_Pt,auto:bPt,average:wPt,bar:xPt,bottom:SPt,bottomColor:CPt,convert_help:$Pt,copied:kPt,copy:EPt,count:TPt,counts:OPt,current:DPt,dashed:APt,day:IPt,default:"défaut",difference:MPt,dotted:PPt,dow:NPt,edit:RPt,"edit enum":"éditer enum","edit file":"modifier le fichier","end of 10 minutes":"fin de 10 minutes","end of 12 hours":"fin de 12 heures","end of 2 hours":"fin de 2 heures","end of 3 hours":"fin de 3 heures","end of 30 minutes":"fin de 30 minutes","end of 4 hours":"fin de 4 heures","end of 5 minutes":"fin de 5 minutes","end of 6 hours":"fin de 6 heures","end of 8 hours":"fin de 8 heures","end of day":"fin de la journée","end of hour":"fin de l'heure","end of minute":"fin de minute","end of previous saturday":"fin du samedi précédent (2 semaines)","end of previous sunday":"fin du dimanche précédent (2 semaines)","end of saturday":"fin de samedi","end of sunday":"fin de dimanche",false:"nul",horizontal:jPt,i15min:LPt,i1day:zPt,i1hour:FPt,i30days:BPt,"ignore 'null'":"ignore 'null'","ignore 'null':":"ignore 'null':","ignore null values":"ignorer les valeurs nulles",integral:WPt,"last value":"dernière valeur",left:HPt,"left colored":"gauche coloré",leftColor:UPt,line:VPt,linear:qPt,lineplot:GPt,load:XPt,max:JPt,middle:YPt,min:KPt,minmax:ZPt,month:QPt,new:"Nouveau",no:eNt,"no null":"& nbsp; non nul","non-processed":"non transformé",none:tNt,none_no:rNt,now:nNt,null:"nul",off:oNt,onchange:aNt,"own axis":"propre axe",percentile:iNt,polar:sNt,raw:lNt,relative:cNt,reload:dNt,"restart script":"redémarrer le script",right:uNt,"right colored":"bonne couleur",rightColor:pNt,role:hNt,save:fNt,"save %s":"enregistrer% s",scatterplot:mNt,seconds:gNt,solid:vNt,spline:yNt,standard:_Nt,static:"statique",steps:bNt,"this month":"ce mois-ci","this year":"cette année",to:wNt,today:xNt,top:SNt,"top over":"dessus","top under":"haut sous",topColor:CNt,total:$Nt,true:"dernière valeur","update Preview":"aperçu de mise à jour","use 0 instead of null values":"utilise 0 au lieu de valeurs nulles",vertical:kNt,weekEurope:ENt,weekUsa:TNt,year:ONt,yes:DNt,ØL:"ØL","ØL - Line thickness":"ØL - Épaisseur de ligne","ØL Line thickness":"ØL Épaisseur de ligne",ØS:"ØS","ØS - Shadow size":"ØS - Taille de l'ombre","ØS Shadow size":"ØS Taille de l'ombre"},INt="Riconosciuto",MNt="Aggiungere",PNt="Aggregato",NNt="Associazione",RNt="Tutti",jNt="Aspetto",LNt="Fare domanda a",zNt="Auto",FNt="Asse",BNt="Sfondi",WNt="Bar",HNt="Confine",UNt="Annulla",VNt="Cerchio",qNt="Vicino",GNt="Crollo",XNt="Colore",JNt="copia",YNt="Conteggio",KNt="Creare",ZNt="Dati",QNt="Predefinito",eRt="Elimina",tRt="Dialogo",rRt="Modifica",nRt="Fine",oRt="Espandere",aRt="Riempire",iRt="Cartella",sRt="A partire da:",lRt="Funzioni",cRt="Griglia",dRt="Altezza",uRt="ID",pRt="ID",hRt="Individuale",fRt="Esempio",mRt="Intervalli",gRt="Etichetta",vRt="Etichette",yRt="Sinistra",_Rt="Leggenda",bRt="Limiti",wRt="Linea",xRt="Collegamento",SRt="Principale",CRt="Marcatura",$Rt="Marcature",kRt="Massimo",ERt="Utenti",TRt="Minimo",ORt="MinMax",DRt="Oltre",ARt="Molteplici",IRt="Nome",MRt="Nessuna",PRt="X-Offset",NRt="Ok",RRt="Aperto",jRt="Opzioni",LRt="Orientamento",zRt="Altri",FRt="Incolla",BRt="percentile",WRt="Torta",HRt="Punti",URt="Carta polare",VRt="Poligonale",qRt="Predefiniti",GRt="in lavorazione",XRt="Gamma",JRt="Parente",YRt="Rinominare",KRt="Destra",ZRt="Ruolo",QRt="Stanza",e5t="Camere",t5t="Radice",r5t="Secondi",n5t="Seleziona",o5t="Smussare",a5t="Fonte",i5t="Spline",s5t="Catasta",l5t="Passi",c5t="Stile",d5t="Testo",u5t="Testi",p5t="Tema",h5t="Orario",f5t="Titolo",m5t="genere",g5t="Unità",v5t="Aggiorna",y5t="Valore",_5t="Larghezza",b5t="Con",w5t="Senza",x5t="Area",S5t="auto",C5t="Media",$5t="Barretta",k5t="In basso",E5t="Colorato in basso",T5t='Inserisci la formula come "val / 1000 + 3". Questa formula verrà applicata a tutti i valori del datapoint selezionato.',O5t="copiato",D5t="copia",A5t="contare",I5t="Conteggi",M5t="Valore corrente",P5t="tratteggiata",N5t="Giorno",R5t="differenza",j5t="punteggiato",L5t="Giorno della settimana",z5t="modificare",F5t="orizzontale",B5t="15 minuti",W5t="1 giorno",H5t="1 ora",U5t="30 giorni",V5t="integrante",q5t="sinistra",G5t="Colorato a sinistra",X5t="Linea",J5t="lineare",Y5t="Plot linea",K5t="Carica",Z5t="Massimo",Q5t="In mezzo",e3t="Minimo",t3t="minmax",r3t="Mese",n3t="No",o3t="Nulla",a3t="nessuno",i3t="Adesso",s3t="Spento",l3t="Con cambiamento",c3t="percentile",d3t="Carta polare",u3t="crudo",p3t="Corrispondente",h3t="Ricarica",f3t="destra",m3t="Colorato a destra",g3t="Ruolo",v3t="Salva",y3t="Diagramma di dispersione",_3t="secondi",b3t="solido",w3t="Linguetta",x3t="standard",S3t="Passi",C3t="per",$3t="Oggi",k3t="In alto",E3t="Colorato in alto",T3t="Totale",O3t="verticale",D3t="Fine del giorno",A3t="Fine della domenica",I3t="Anno",M3t="Sì",P3t={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"%s fa","ØL":"ØL","ØS":"ØS","0 seconds":"0 secondi","0s":"0 secondi","1 day":"1 giorno","1 hour":"1 ora","1 minute":"1 minuto","1 month":"1 mese","1 week":"1 settimana","1 year":"1 anno","10 minutes":"10 minuti","10 seconds":"10 secondi","10m":"10 minuti","10minutes":"Fine di 10 minuti","10s":"10 secondi","12 hours":"12 ore","12H":"12 ore","12W":"12 settimane","12hours":"Fine di 12 ore","14 days":"14 giorni","15 minutes":"15 minuti","15 seconds":"15 secondi","15m":"15 minuti","1D":"1 giorno","1H":"1 ora","1M":"1 mese","1W":"1 settimana","1Y":"1 anno","1hour":"Fine dell'ora","1minute":"Fine del minuto","1s":"1 secondo","2 days":"2 giorni","2 hours":"2 ore","2 minutes":"2 minuti","2 months":"2 mesi","2 weeks":"2 settimane","2 years":"2 anni","20 minutes":"20 minuti","20 seconds":"20 secondi","26W":"26 settimane","2D":"2 giorni","2H":"2 ore","2M":"2 mesi","2W":"2 settimane","2Y":"2 anni","2hours":"Fine di 2 ore","2m":"2 minuti","2s":"2 secondi","3 days":"3 giorni","3 hours":"3 ore","3 minutes":"3 minuti","3 months":"3 mesi","30 minutes":"30 minuti","30 seconds":"30 secondi","300ms":"300ms","30m":"30 minuti","30minutes":"Fine di 30 minuti","30s":"30 secondi","3D":"3 giorni","3M":"3 mesi","3hours":"Fine di 3 ore","3m":"3 minuti","3s":"3 secondi","4 days":"4 giorni","4 minutes":"4 minuti","45 minutes":"45 minuti","45m":"45 minuti","4D":"4 giorni","4W":"4 settimane","4hours":"Fine di 4 ore","4m":"4 minuti","5 minutes":"5 minuti","5 seconds":"5 secondi","500ms":"500ms","5m":"5 minuti","5minutes":"Fine di 5 minuti","5s":"5 secondi","6 hours":"6 ore","6 months":"6 mesi","60 seconds":"60 secondi","60s":"60 secondi","6H":"6 ore","6M":"6 mesi","6hours":"Fine di 6 ore","7 days":"7 giorni","8W":"8 settimane","8hours":"Fine di 8 ore","90 seconds":"90 secondi",Acknowledged:INt,Add:MNt,"Add line to chart":"Aggiungi linea al grafico","Add marking line to chart":"Aggiungi una linea di marcatura al grafico","Add new line":"Aggiungi una nuova linea","Add new markings":"Aggiungi nuovi segni","Add new state name":"Aggiungi il nome del nuovo stato","Add new value":"Aggiungi nuovo valore","After comma":"Dopo la virgola",Aggregate:PNt,"Aggregate for lines":"Aggregazione per linee",Aggregation:NNt,"Aggregation:":"Genere:",All:RNt,"Animation:":"Animazione:",Appearance:jNt,Apply:LNt,"Are you sure for closing folder and discard unsaved changes?":"Vuoi chiudere la cartella e ignorare le modifiche non salvate?","Are you sure for delete this line?":"Sei sicuro di cancellare questa riga?","Are you sure for delete this mark?":"Sei sicuro di cancellare questo segno?","Are you sure for delete this preset?":"Sei sicuro di eliminare questo preset?","Are you sure for loading the chart and discard unsaved changes?":"Vuoi caricare il grafico e ignorare le modifiche non salvate?","Are you sure for loading the preset and discard unsaved changes?":"Vuoi caricare il preset e ignorare le modifiche non salvate?","Arrange bools":"Disponi sfere",Auto:zNt,"Auto (Line or Steps)":"Auto (linea o gradini)","Auto padding":"Rientro automatico","Auto save":"Salvataggio automatico","Auto-refresh":"Auto aggiornamento","Auto-update:":"Aggiornamento automatico:",Axis:FNt,"Background of radar chart":"Sfondo del grafico radar","Background:":"Sfondo:",Backgrounds:BNt,Bar:WNt,"Bar settings":"Impostazioni della barra","Bars width:":"Larghezza delle barre:",Border:HNt,"Border color:":"Colore del bordo:","Border padding":"Imbottitura del bordo","Border width":"Larghezza del bordo","Border width:":"Larghezza del bordo:","Bottom, center, inside":"In basso, centrato, interno","Bottom, center, outside":"In basso, centrato, esterno","Bottom, left":"In basso, a sinistra","Bottom, left, inside":"In basso, a sinistra, interno","Bottom, right":"In basso, a destra","Bottom, right, inside":"In basso, a destra, interno","Bottom, right, outside":"In basso, a destra, esterno",Cancel:UNt,"Cannot create unique ID":"Impossibile creare un ID univoco","Chart Type":"Tipo di grafico","Chart background":"Sfondo grafico","Chart background:":"Sfondo del grafico:","Chart size":"Dimensioni del grafico","Chart type":"Tipo di grafico","Charts preview":"Anteprima dei grafici",Circle:VNt,Close:qNt,Collapse:GNt,"Collapse all lines":"Comprimi tutte le righe","Collapse all markings":"Comprimi tutti i contrassegni",Color:XNt,"Common Y Axis":"Asse comune Y","Convert formula":"Formula di conversione",Copy:JNt,"Copy link to clipboard":"Copia il link negli appunti",Counts:YNt,Create:KNt,"Create folder":"Creare una cartella","Create new folder":"Crea una nuova cartella","Create new preset":"Crea nuovo preset","Create preset":"Crea preset","Custom chart background:":"Sfondo grafico personalizzato:","Custom time format":"Formato ora personalizzato",Data:ZNt,Default:QNt,Delete:eRt,"Delete object":"Elimina oggetto","Delete text value":"Elimina il valore del testo",Dialog:tRt,"Digits after comma":"Cifre dopo la virgola","Drag me":"Trascinami",Edit:rRt,"Edit folder name":"Modifica il nome della cartella","Edit options for line %s":"Modifica le opzioni per la riga %s","Edit state names":"Modifica i nomi degli stati","Empty preset cannot be saved!":"Non è possibile salvare il preset vuoto!","Enable logging for new state":"Abilita la registrazione per il nuovo stato","Enable zoom and pan":"Abilita zoom e panoramica","Enable zoom and pan:":"Abilita zoom e panoramica:",End:nRt,"End:":"Fine:","Enter chart name":"Inserisci il nome del grafico",Expand:oRt,"Expand all lines":"Espandi tutte le linee","Expand all markings":"Espandi tutti i segni","Export data color":"Esporta colore pulsante dati",Fill:aRt,"Fill color:":"Colore di riempimento:","Fill range:":"Gamma di riempimento:","Fill(0to1)":"Riempi(0to1)",Folder:iRt,"Font size":"Dimensione del font",From:sRt,"From line %s":"Dalla riga %s",Functions:lRt,Grid:cRt,"Grid color":"Colore griglia","Grid color:":"Colore griglia:","Group by":"Raggruppare per","HH:MM dd.mm":"HH:MM gg.mm",Height:dRt,"Height:":"Altezza:","Hide X grid":"Nascondi griglia X.","Hide Y grid":"Nascondi griglia Y.","Hide edit button:":"Nascondi pulsante di modifica:","Hide nulls in tooltip":"Nascondi i valori nulli nella descrizione comando","Hover details":"Dettagli al passaggio del mouse","Hover details:":"Dettagli al passaggio del mouse:",ID:uRt,IDs:pRt,"If the current value is not older than X seconds, assume it is still the same.":"Se il valore corrente non è più vecchio di X secondi, supponi che sia sempre lo stesso.","In seconds":"In secondi",Individual:hRt,"Input data":"Dati in ingresso","Inside / No lines":"Interno / Senza linea","Inside / With lines":"Interno / Con linee","Inside end":"Dentro, alla fine","Inside end bottom":"Dentro, alla fine, in fondo","Inside end top":"Dentro, alla fine, sopra","Inside middle":"Dentro, in mezzo","Inside middle bottom":"Dentro, in mezzo, in basso","Inside middle top":"Dentro, in mezzo, in alto","Inside start":"All'interno, all'inizio","Inside start bottom":"All'interno, all'inizio, in basso","Inside start top":"Dentro, all'inizio, sopra",Instance:fRt,"Integral unit":"Unità integrale","Interpolate:":"Interpolare:","Interpolation method":"Metodo di interpolazione",Intervals:mRt,"Invalid object":"Oggetto non valido",Label:gRt,"Label color:":"Colore dell'etichetta:","Label font size:":"Dimensione del carattere dell'etichetta:",Labels:vRt,"Last changed":"Ultima modifica",Left:yRt,Legend:_Rt,"Legend background":"Sfondo della legenda","Legend background:":"Sfondo leggenda:","Legend columns:":"Colonne della legenda:","Legend opacity (from 0 to 1):":"Opacità della legenda (da 0 a 1):","Legend text color":"Colore del testo della legenda",Limits:bRt,Line:wRt,"Line ID":"ID linea","Line Width":"Larghezza della linea","Line and area":"Linea e area","Line style":"Stile della linea",Link:xRt,"Live update every":"Aggiornamento live ogni","Live update every:":"Aggiornamento in tempo reale ogni:","Load without save":"Carica senza salvare","Loading...":"Sto caricando...","Lower value or ID":"Valore minimo o ID",Main:SRt,Mark:CRt,Markings:$Rt,Max:kRt,"Max:":"Massimo:",Members:ERt,"Middle, left, inside":"In mezzo, a sinistra, interno","Middle, right, inside":"In mezzo, a destra, interno","Middle, right, outside":"In mezzo, a destra, esterno",Min:TRt,"Min:":"Minimo:",MinMax:ORt,More:DRt,"Move to folder":"Sposta nella cartella",Multiple:ARt,"NULL as":"NULL come",Name:IRt,"Name:":"Nome:","No ID yet":"Nessun ID ancora","No background":"Nessuno sfondo","No border:":"Nessun bordo:","No future":"Nessun valore in futuro","No interpolate in hover":"Nessuna interpolazione nel tooltip","No presets created yet":"Nessun preset ancora creato",None:MRt,Offset:PRt,Ok:NRt,Open:RRt,"Open chart in own window":"Apri il grafico nella propria finestra","Open in own window":"Apri nella propria finestra",Options:jRt,Orientation:LRt,Others:zRt,"Outside / No lines":"Esterno / Senza linea","Outside/ With lines":"Esterno / Con linee",Paste:FRt,Percentile:BRt,Pie:WRt,"Please confirm":"Per favore conferma",Points:HRt,Polar:URt,Polygonal:VRt,"Predefined background:":"Sfondo predefinito:",Presets:qRt,Processing:GRt,"Processing...":"In elaborazione...",Range:XRt,"Range:":"Intervallo:",Relative:JRt,Rename:YRt,"Rename preset":"Rinomina preset","Reorder presets in folders":"Riordina i preset nelle cartelle","Reset settings":"Ripristina l'impostazioni","Reset zoom after idle":"Reimposta lo zoom dopo il periodo di inattività",Right:KRt,Role:ZRt,Room:QRt,Rooms:e5t,Root:t5t,"Save current preset and load":"Salva il preset corrente e carica","Save image button color":"Salva il colore del pulsante dell'immagine","Save into:":"Salva in:","Scatter plot":"Trama a dispersione",Seconds:r5t,Select:n5t,"Select ID":"Seleziona ID","Select for":"Seleziona per","Shadow Size":"Dimensione ombreggatura","Show controls":"Mostra controlli","Show export data button":"Pulsante Mostra dati di esportazione","Show labels:":"Mostra etichette:","Show legend":"Mostra legenda","Show legend:":"Mostra legenda:","Show only in legend":"Mostra solo nella legenda","Show points":"Mostra punti","Show save image button":"Mostra pulsante salva immagine","Show values":"Mostra valori",Smoothing:o5t,Source:a5t,Spline:i5t,Stack:s5t,"Start:":"Inizio:","State value":"Valore statale","State value text":"Testo del valore di stato","Step span:":"Intervallo:","Step type":"Tipo di passo","Step type:":"Tipo di passa:",Steps:l5t,"Steps on start":"Passi all'avvio",Style:c5t,"System settings":"Impostazioni di sistema",Text:d5t,"Text X offset":"X-Offset del testo","Text Y offset":"Offset Y del testo","Text by false":"Testo per falso","Text by true":"Testo per vero","Text color":"Colore del testo","Text position":"Posizione del testo","Text size":"Dimensione del testo","Text values not used":"Valori di testo non utilizzati",Texts:u5t,Theme:p5t,"This time offset will be added to the X label by displaying data on the chart":"Questa differenza di tempo verrà aggiunta all'etichetta X visualizzando i dati sul grafico","This time offset will be added to the request by reading data from DB":"Questo offset temporale verrà aggiunto alla richiesta leggendo i dati dal DB","Ticks from:":"Usa X-tick da:",Time:h5t,"Time Span":"Arco di tempo","Time format":"Formato orario","Time format:":"Formato orario:","Time span":"Arco di tempo","Time stamp":"Data e ora",Title:f5t,"Title color":"Colore del titolo","Title color:":"Colore del titolo:","Title position":"Posizione del titolo","Title position:":"Posizione del titolo:","Title size":"Dimensioni del titolo","Title size:":"Dimensione del titolo:","Title:":"Titolo:","Top, center, inside":"In alto, centrato, interno","Top, left":"In alto, a sinistra","Top, left, inside":"In alto, a sinistra, interno","Top, right":"In alto, a destra","Top, right, inside":"In alto, a destra, interno","Top, right, outside":"In alto, a destra, esterno",Type:m5t,Unit:g5t,"Units:":"Unità:",Update:v5t,"Update objects":"Aggiorna gli Oggetti","Update states":"Stati di aggiornamento","Upper value or ID":"Valore massimo o ID","Use comma":"Usa la virgola","Use comma:":"Usa la virgola:","Use state names":"Usa nomi di stato","User defined":"Definito dall'utente","User defined names:":"Nomi definiti dall'utente:","Valid time (sec)":"Tempo valido (sec)",Value:y5t,Width:_5t,"Width:":"Larghezza:","Window background":"Sfondo della finestra","Window background:":"Sfondo finestra:",With:b5t,"With border":"Con bordo","With lines":"Con linee",Without:w5t,"Without border":"Senza bordo","Without lines":"Senza linee","X Axis":"Asse X.","X Axis position":"Posizione dell'asse X.","X axis labels color:":"Colore etichette asso X:","X labels color":"Colore delle etichette X.","X labels size":"Dimensione carattere X","X ticks color":"Colore delle zecche X.","X-Axis ticks":"Interasse Asse X","X-Label-Offset":"Offset etichetta X","X-Offset":"X-Offset","Y Axis":"Asse Y.","Y Axis position":"Posizione dell'asse Y.","Y axis labels color:":"Colore etichette asso Y:","Y labels color":"Colore etichette Y","Y labels size":"Y dimensione del carattere","Y ticks color":"Y fa il colore","Y-Axis ticks":"Interasse Asse Y.","Y-Offset":"Y-Offset",'You can create a new markings with a "+" on the right.':'È possibile creare una nuova marcatura con un "+" a destra.',"You can drag and drop simple lines from the left list.":"Puoi trascinare e rilasciare semplici righe dall'elenco a sinistra.","add children":"Aggiungi figlio",area:x5t,auto:S5t,average:C5t,bar:$5t,bottom:k5t,bottomColor:E5t,convert_help:T5t,copied:O5t,copy:D5t,count:A5t,counts:I5t,current:M5t,dashed:P5t,day:N5t,default:"Predefinito",difference:R5t,dotted:j5t,dow:L5t,edit:z5t,"edit enum":"Modifica enum","edit file":"Modifica file","end of 10 minutes":"Fine dei 10 minuti","end of 12 hours":"Fine di 12 ore","end of 2 hours":"Fine di 2 ore","end of 3 hours":"Fine di 3 ore","end of 30 minutes":"Fine dei 30 minuti","end of 4 hours":"Fine di 4 ore","end of 5 minutes":"Fine dei 5 minuti","end of 6 hours":"Fine di 6 ore","end of 8 hours":"Fine di 8 ore","end of day":"Fine del giorno","end of hour":"Fine dell'ora","end of minute":"Fine del minuto","end of previous saturday":"fine del sabato precedente (2 settimane)","end of previous sunday":"fine della domenica precedente (2 settimane)","end of saturday":"Fine di sabato","end of sunday":"Fine della domenica",false:"Null",horizontal:F5t,i15min:B5t,i1day:W5t,i1hour:H5t,i30days:U5t,"ignore 'null'":"Ignora 'null'","ignore 'null':":"Ignora 'null':","ignore null values":"Ignora valori null",integral:V5t,"last value":"Ultimo valore",left:q5t,"left colored":"lasciato colorato",leftColor:G5t,line:X5t,linear:J5t,lineplot:Y5t,load:K5t,max:Z5t,middle:Q5t,min:e3t,minmax:t3t,month:r3t,new:"Nuovo",no:n3t,"no null":"& nbsp; non null","non-processed":"non elaborato",none:o3t,none_no:a3t,now:i3t,null:"Null",off:s3t,onchange:l3t,"own axis":"proprio asse",percentile:c3t,polar:d3t,raw:u3t,relative:p3t,reload:h3t,"restart script":"Riavvia lo script",right:f3t,"right colored":"colore giusto",rightColor:m3t,role:g3t,save:v3t,"save %s":"salva %s",scatterplot:y3t,seconds:_3t,solid:b3t,spline:w3t,standard:x3t,static:"Statico",steps:S3t,"this month":"Questo mese","this year":"Quest'anno",to:C3t,today:$3t,top:k3t,"top over":"Al di sopra","top under":"Al di sotto",topColor:E3t,total:T3t,true:"Ultimo valore","update Preview":"Aggiorna anteprima","use 0 instead of null values":"usa 0 invece di valori null",vertical:O3t,weekEurope:D3t,weekUsa:A3t,year:I3t,yes:M3t,ØL:"ØL","ØL - Line thickness":"ØL - Spessore della linea","ØL Line thickness":"ØL Spessore della linea",ØS:"ØS","ØS - Shadow size":"ØS - Dimensione ombra","ØS Shadow size":"ØS Dimensione ombra"},N3t="Admitido",R3t="Agregar",j3t="Agregar",L3t="Tipo",z3t="Todas",F3t="Apariencia",B3t="Aplicar",W3t="Auto",H3t="Eje",U3t="Antecedentes",V3t="Bar",q3t="Frontera",G3t="Cancelar",X3t="Círculo",J3t="Cerca",Y3t="Colapso",K3t="Color",Z3t="Copiar",Q3t="Cuenta",ejt="Crear",tjt="Datos",rjt="Defecto",njt="Eliminar",ojt="Diálogo",ajt="Editar",ijt="Fin",sjt="Expandir",ljt="Llenar",cjt="Carpeta",djt="De:",ujt="Funciones",pjt="Cuadrícula",hjt="Altura",fjt="CARNÉ DE IDENTIDAD",mjt="IDs",gjt="Individual",vjt="Ejemplo",yjt="Intervalos",_jt="Etiqueta",bjt="Etiquetas",wjt="Izquierda",xjt="Leyenda",Sjt="Limites",Cjt="Línea",$jt="Enlazar",kjt="Principal",Ejt="Calificación",Tjt="Marcas",Ojt="Max",Djt="Miembros",Ajt="Min.",Ijt="Mínimo máximo",Mjt="Más",Pjt="Múltiple",Njt="Nombre",Rjt="Ninguna",jjt="X-Offset",Ljt="De acuerdo",zjt="Abierto",Fjt="Opciones",Bjt="Orientación",Wjt="Otros",Hjt="Pegar",Ujt="percentil",Vjt="Tarta",qjt="Puntos",Gjt="carta polar",Xjt="Poligonal",Jjt="Presets",Yjt="Procesando",Kjt="Rango",Zjt="Relativo",Qjt="Rebautizar",e4t="Derecha",t4t="Papel",r4t="Habitación",n4t="Habitaciones",o4t="Raíz",a4t="Segundos",i4t="Seleccionar",s4t="Suavizado",l4t="Fuente",c4t="Ranura",d4t="Apilar",u4t="Pasos",p4t="Estilo",h4t="Texto",f4t="Textos",m4t="Tema",g4t="Hora",v4t="Título",y4t="Tipo",_4t="Unidad",b4t="Actualizar",w4t="Valor",x4t="Anchura",S4t="Con",C4t="Sin",$4t="Zona",k4t="auto",E4t="promedio",T4t="Bar",O4t="fondo",D4t="color de fondo",A4t='Ingrese la fórmula como "val / 1000 + 3". Esta fórmula se aplicará a todos los valores del punto de datos seleccionado.',I4t="copiado",M4t="Copiar",P4t="contar",N4t="conteos",R4t="Valor actual",j4t="estropeado",L4t="día",z4t="diferencia",F4t="punteado",B4t="Día de la semana",W4t="editar",H4t="horizontal",U4t="15 minutos",V4t="1 día",q4t="1 hora",G4t="30 dias",X4t="integral",J4t="izquierda",Y4t="color izquierdo",K4t="Línea",Z4t="lineal",Q4t="Linear plot",eLt="carga",tLt="máximo",rLt="medio",nLt="min",oLt="mínimo máximo",aLt="mes",iLt="no",sLt="ninguna",lLt="ninguna",cLt="ahora",dLt="apagado",uLt="en cambio",pLt="percentil",hLt="Carta polar",fLt="crudo",mLt="relativo",gLt="recargar",vLt="derecho",yLt="color derecho",_Lt="papel",bLt="salvar",wLt="Gráfico de dispersión",xLt="segundos",SLt="sólido",CLt="Ranura",$Lt="estándar",kLt="Pasos",ELt="a",TLt="hoy",OLt="parte superior",DLt="tapa coloreada",ALt="total",ILt="vertical",MLt="fin del día",PLt="fin del domingo",NLt="año",RLt="sí",jLt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"hace% s","ØL":"& # 216L","ØS":"& # 216S","0 seconds":"0 segundos","0s":"0 segundos","1 day":"1 día","1 hour":"1 hora","1 minute":"1 minuto","1 month":"1 mes","1 week":"1 semana","1 year":"1 año","10 minutes":"10 minutos","10 seconds":"10 segundos","10m":"10 minutos","10minutes":"fin de 10 minutos","10s":"10 segundos","12 hours":"12 horas","12H":"12 horas","12W":"12 semanas","12hours":"fin de 12 horas","14 days":"14 dias","15 minutes":"15 minutos","15 seconds":"15 segundos","15m":"15 minutos","1D":"1 día","1H":"1 hora","1M":"1 mes","1W":"1 semana","1Y":"1 año","1hour":"fin de hora","1minute":"fin del minuto","1s":"1 segundo","2 days":"2 días","2 hours":"2 horas","2 minutes":"2 minutos","2 months":"2 meses","2 weeks":"2 semanas","2 years":"2 años","20 minutes":"20 minutos","20 seconds":"20 segundos","26W":"26 semanas","2D":"2 días","2H":"2 horas","2M":"2 meses","2W":"2 semanas","2Y":"2 años","2hours":"fin de 2 horas","2m":"2 minutos","2s":"2 segundos","3 days":"3 días","3 hours":"3 horas","3 minutes":"3 minutos","3 months":"3 meses","30 minutes":"30 minutos","30 seconds":"30 segundos","300ms":"300ms","30m":"30 minutos","30minutes":"fin de 30 minutos","30s":"30 segundos","3D":"3 días","3M":"3 meses","3hours":"fin de 3 horas","3m":"3 minutos","3s":"3 segundos","4 days":"4 dias","4 minutes":"4 minutos","45 minutes":"45 minutos","45m":"45 minutos","4D":"4 dias","4W":"4 semanas","4hours":"fin de 4 horas","4m":"4 minutos","5 minutes":"5 minutos","5 seconds":"5 segundos","500ms":"500ms","5m":"5 minutos","5minutes":"fin de 5 minutos","5s":"5 segundos","6 hours":"6 horas","6 months":"6 meses","60 seconds":"60 segundos","60s":"60 segundos","6H":"6 horas","6M":"6 meses","6hours":"fin de 6 horas","7 days":"7 días","8W":"8 semanas","8hours":"fin de 8 horas","90 seconds":"90 segundos",Acknowledged:N3t,Add:R3t,"Add line to chart":"Agregar línea al gráfico","Add marking line to chart":"Agregar línea de marcado al gráfico","Add new line":"Agregar nueva línea","Add new markings":"Agregar nuevas marcas","Add new state name":"Agregar nuevo nombre de estado","Add new value":"Agregar nuevo valor","After comma":"Después de la coma",Aggregate:j3t,"Aggregate for lines":"Agregación por líneas",Aggregation:L3t,"Aggregation:":"Tipo:",All:z3t,"Animation:":"Animación:",Appearance:F3t,Apply:B3t,"Are you sure for closing folder and discard unsaved changes?":"¿Está seguro de cerrar la carpeta y descartar los cambios no guardados?","Are you sure for delete this line?":"¿Está seguro de eliminar esta línea?","Are you sure for delete this mark?":"¿Está seguro de eliminar esta marca?","Are you sure for delete this preset?":"¿Está seguro de eliminar este ajuste preestablecido?","Are you sure for loading the chart and discard unsaved changes?":"¿Está seguro de cargar el gráfico y descartar los cambios no guardados?","Are you sure for loading the preset and discard unsaved changes?":"¿Está seguro de cargar el ajuste preestablecido y descartar los cambios no guardados?","Arrange bools":"Organizar booleanos",Auto:W3t,"Auto (Line or Steps)":"Auto (línea o pasos)","Auto padding":"Sangría automática","Auto save":"Auto guardar","Auto-refresh":"Autorefrescar","Auto-update:":"Actualización automática:",Axis:H3t,"Background of radar chart":"Fondo del gráfico de radar","Background:":"Fondo:",Backgrounds:U3t,Bar:V3t,"Bar settings":"Configuración de barra","Bars width:":"Ancho de barras:",Border:q3t,"Border color:":"Color del borde:","Border padding":"Relleno de borde","Border width":"Ancho del borde","Border width:":"Ancho del borde:","Bottom, center, inside":"Abajo, centro, adentro","Bottom, center, outside":"Abajo, centro, afuera","Bottom, left":"Abajo, izquierda","Bottom, left, inside":"Abajo, izquierda, adentro","Bottom, right":"Abajo a la derecha","Bottom, right, inside":"Abajo, derecha, adentro","Bottom, right, outside":"Abajo, a la derecha, afuera",Cancel:G3t,"Cannot create unique ID":"No se puede crear una identificación única","Chart Type":"Tipo de gráfico","Chart background":"Fondo gráfico","Chart background:":"Fondo de la carta:","Chart size":"Tamaño del gráfico","Chart type":"Tipo de gráfico","Charts preview":"Vista previa de gráficos",Circle:X3t,Close:J3t,Collapse:Y3t,"Collapse all lines":"Contraer todas las líneas","Collapse all markings":"Contraer todas las marcas",Color:K3t,"Common Y Axis":"Eje Y común","Convert formula":"fórmula de conversión",Copy:Z3t,"Copy link to clipboard":"Copiar enlace al portapapeles",Counts:Q3t,Create:ejt,"Create folder":"Crear carpeta","Create new folder":"Crear nueva carpeta","Create new preset":"Crear nuevo preset","Create preset":"Crear preajuste","Custom chart background:":"Fondo de carta personalizada:","Custom time format":"Formato de hora personalizado",Data:tjt,Default:rjt,Delete:njt,"Delete object":"Eliminar objeto","Delete text value":"Eliminar valor de texto",Dialog:ojt,"Digits after comma":"Dígitos después de la coma","Drag me":"Arrástrame",Edit:ajt,"Edit folder name":"Editar nombre de carpeta","Edit options for line %s":"Editar opciones para la línea% s","Edit state names":"Editar nombres de estado","Empty preset cannot be saved!":"¡No se puede guardar un ajuste preestablecido vacío!","Enable logging for new state":"Habilitar el registro para el nuevo estado","Enable zoom and pan":"Habilitar zoom y panorámica","Enable zoom and pan:":"Habilitar zoom y pan:",End:ijt,"End:":"Fin:","Enter chart name":"Ingrese el nombre del gráfico",Expand:sjt,"Expand all lines":"Expandir todas las líneas","Expand all markings":"Expandir todas las marcas","Export data color":"Color del botón Exportar datos",Fill:ljt,"Fill color:":"Color de relleno:","Fill range:":"Rango de llenado:","Fill(0to1)":"Rellenar (0to1)",Folder:cjt,"Font size":"Tamaño de fuente",From:djt,"From line %s":"De la línea %s",Functions:ujt,Grid:pjt,"Grid color":"Color de cuadrícula","Grid color:":"Color de cuadrícula","Group by":"Agrupar por","HH:MM dd.mm":"HH:MM dd.mm",Height:hjt,"Height:":"Altura:","Hide X grid":"Ocultar cuadrícula X","Hide Y grid":"Ocultar cuadrícula Y","Hide edit button:":"Ocultar botón de edición:","Hide nulls in tooltip":"Ocultar nulos en la información sobre herramientas","Hover details":"Hover detalles","Hover details:":"Hover detalles:",ID:fjt,IDs:mjt,"If the current value is not older than X seconds, assume it is still the same.":"Si el valor actual no tiene más de X segundos, suponga que sigue siendo el mismo.","In seconds":"En segundos",Individual:gjt,"Input data":"Datos de entrada","Inside / No lines":"Dentro / Sin líneas","Inside / With lines":"Dentro / Con líneas","Inside end":"adentro, al final","Inside end bottom":"Adentro, al final, abajo","Inside end top":"Adentro, al final, arriba","Inside middle":"adentro, en el medio","Inside middle bottom":"Adentro, en el medio, abajo","Inside middle top":"Adentro, en el medio, arriba","Inside start":"Dentro, al principio","Inside start bottom":"En el interior, al principio, en la parte inferior","Inside start top":"Adentro, al principio, arriba",Instance:vjt,"Integral unit":"unidad integral","Interpolate:":"Interpolar:","Interpolation method":"método de interpolación",Intervals:yjt,"Invalid object":"Objeto no válido",Label:_jt,"Label color:":"Color de etiqueta:","Label font size:":"Tamaño de letra de la etiqueta:",Labels:bjt,"Last changed":"Último cambio",Left:wjt,Legend:xjt,"Legend background":"Fondo de leyenda","Legend background:":"Antecedentes de leyenda:","Legend columns:":"Columnas leyenda","Legend opacity (from 0 to 1):":"Opacidad de la leyenda (de 0 a 1):","Legend text color":"Color del texto de la leyenda",Limits:Sjt,Line:Cjt,"Line ID":"Identificación de línea","Line Width":"Ancho de línea","Line and area":"Línea y área","Line style":"Estilo de línea",Link:$jt,"Live update every":"Actualización en vivo cada","Live update every:":"Actualización en vivo cada:","Load without save":"Cargar sin guardar","Loading...":"Cargando...","Lower value or ID":"Menor valor o ID",Main:kjt,Mark:Ejt,Markings:Tjt,Max:Ojt,"Max:":"Máximo:",Members:Djt,"Middle, left, inside":"Medio, izquierdo, adentro","Middle, right, inside":"Medio, derecho, adentro","Middle, right, outside":"Medio, derecho, afuera",Min:Ajt,"Min:":"Mínimo:",MinMax:Ijt,More:Mjt,"Move to folder":"Mover a la carpeta",Multiple:Pjt,"NULL as":"NULL como",Name:Njt,"Name:":"Nombre:","No ID yet":"Sin ID todavía","No background":"Sin antecedentes","No border:":"Sin bordes:","No future":"Sin valores en el futuro","No interpolate in hover":"Sin interpolación en la información sobre herramientas","No presets created yet":"Aún no se han creado ajustes preestablecidos",None:Rjt,Offset:jjt,Ok:Ljt,Open:zjt,"Open chart in own window":"Abrir gráfico en su propia ventana","Open in own window":"Abrir en su propia ventana",Options:Fjt,Orientation:Bjt,Others:Wjt,"Outside / No lines":"Fuera / Sin líneas","Outside/ With lines":"Fuera / Con líneas",Paste:Hjt,Percentile:Ujt,Pie:Vjt,"Please confirm":"Por favor confirme",Points:qjt,Polar:Gjt,Polygonal:Xjt,"Predefined background:":"Antecedentes predefinidos:",Presets:Jjt,Processing:Yjt,"Processing...":"Tratamiento...",Range:Kjt,"Range:":"Distancia:",Relative:Zjt,Rename:Qjt,"Rename preset":"Cambiar nombre de preset","Reorder presets in folders":"Reordenar los ajustes preestablecidos en carpetas","Reset settings":"Reiniciar ajustes","Reset zoom after idle":"Restablecer el zoom después de inactivo",Right:e4t,Role:t4t,Room:r4t,Rooms:n4t,Root:o4t,"Save current preset and load":"Guardar el ajuste preestablecido actual y cargarlo","Save image button color":"Color del botón Guardar imagen","Save into:":"Guardar en:","Scatter plot":"Gráfico de dispersión",Seconds:a4t,Select:i4t,"Select ID":"Seleccionar ID","Select for":"Seleccionar para","Shadow Size":"Tamaño de las Sombras","Show controls":"Mostrar controles","Show export data button":"Mostrar botón de exportación de datos","Show labels:":"Mostrar etiquetas:","Show legend":"Mostrar leyenda","Show legend:":"Mostrar leyenda:","Show only in legend":"Mostrar solo en leyenda","Show points":"Mostrar puntos","Show save image button":"Mostrar el botón Guardar imagen","Show values":"Mostrar valores",Smoothing:s4t,Source:l4t,Spline:c4t,Stack:d4t,"Start:":"Comienzo:","State value":"valor del estado","State value text":"Texto de valor de estado","Step span:":"Lapso de paso:","Step type":"Tipo de paso","Step type:":"Tipo de paso:",Steps:u4t,"Steps on start":"Pasos al inicio",Style:p4t,"System settings":"Ajustes del sistema",Text:h4t,"Text X offset":"X-Offset de texto","Text Y offset":"Desplazamiento Y de texto","Text by false":"Texto por falso","Text by true":"Texto por verdadero","Text color":"Color de texto","Text position":"Posición del texto","Text size":"Tamano del texto","Text values not used":"Valores de texto no utilizados",Texts:f4t,Theme:m4t,"This time offset will be added to the X label by displaying data on the chart":"Este desplazamiento de tiempo se agregará a la etiqueta X al mostrar datos en el gráfico.","This time offset will be added to the request by reading data from DB":"Este desplazamiento de tiempo se agregará a la solicitud leyendo los datos de la base de datos.","Ticks from:":"Use X-ticks desde:",Time:g4t,"Time Span":"Espacio de tiempo","Time format":"Formato de tiempo","Time format:":"Formato de tiempo:","Time span":"Espacio de tiempo","Time stamp":"Marca de tiempo",Title:v4t,"Title color":"Color del título","Title color:":"Color del título:","Title position":"Posición del título","Title position:":"Posición del título:","Title size":"Tamaño del título","Title size:":"Tamaño del título:","Title:":"Título:","Top, center, inside":"Arriba, centro, adentro","Top, left":"Arriba a la izquierda","Top, left, inside":"Arriba, izquierda, adentro","Top, right":"Parte superior derecha","Top, right, inside":"Arriba, derecha, adentro","Top, right, outside":"Arriba, a la derecha, afuera",Type:y4t,Unit:_4t,"Units:":"Unidades:",Update:b4t,"Update objects":"Actualizar objetos","Update states":"Actualizar estados","Upper value or ID":"Valor superior o ID","Use comma":"Usa coma","Use comma:":"Usa la coma","Use state names":"Usar nombres de estado","User defined":"Usuario definido","User defined names:":"Nombres definidos por el usuario:","Valid time (sec)":"Tiempo válido (seg)",Value:w4t,Width:x4t,"Width:":"Anchura:","Window background":"Fondo de ventana","Window background:":"Fondo de la ventana:",With:S4t,"With border":"Con frontera","With lines":"Con líneas",Without:C4t,"Without border":"Sin borde","Without lines":"Sin líneas","X Axis":"Eje X","X Axis position":"Posición del eje X","X axis labels color:":"X etiquetas de color:","X labels color":"Color de etiquetas X","X labels size":"Tamaño de fuente X","X ticks color":"X ticks color","X-Axis ticks":"Garrapatas X-Axis","X-Label-Offset":"Desplazamiento de etiqueta X","X-Offset":"Desplazamiento X","Y Axis":"Eje Y","Y Axis position":"Posición del eje Y","Y axis labels color:":"Color de etiquetas Y:","Y labels color":"Y etiquetas de color","Y labels size":"Tamaño de fuente Y","Y ticks color":"Y ticks color","Y-Axis ticks":"Señales del eje Y","Y-Offset":"Y-Offset",'You can create a new markings with a "+" on the right.':'Puede crear nuevas marcas con un "+" a la derecha.',"You can drag and drop simple lines from the left list.":"Puede arrastrar y soltar líneas simples de la lista de la izquierda.","add children":"agregar niños",area:$4t,auto:k4t,average:E4t,bar:T4t,bottom:O4t,bottomColor:D4t,convert_help:A4t,copied:I4t,copy:M4t,count:P4t,counts:N4t,current:R4t,dashed:j4t,day:L4t,default:"defecto",difference:z4t,dotted:F4t,dow:B4t,edit:W4t,"edit enum":"editar enum","edit file":"editar archivo","end of 10 minutes":"fin de 10 minutos","end of 12 hours":"fin de 12 horas","end of 2 hours":"fin de 2 horas","end of 3 hours":"fin de 3 horas","end of 30 minutes":"fin de 30 minutos","end of 4 hours":"fin de 4 horas","end of 5 minutes":"fin de 5 minutos","end of 6 hours":"fin de 6 horas","end of 8 hours":"fin de 8 horas","end of day":"fin del día","end of hour":"fin de hora","end of minute":"fin del minuto","end of previous saturday":"fin del sábado anterior (2 semanas)","end of previous sunday":"fin del domingo anterior (2 semanas)","end of saturday":"fin de sabado","end of sunday":"fin del domingo",false:"nulo",horizontal:H4t,i15min:U4t,i1day:V4t,i1hour:q4t,i30days:G4t,"ignore 'null'":"ignorar 'nulo'","ignore 'null':":"ignorar 'nulo':","ignore null values":"ignorar valores nulos",integral:X4t,"last value":"último valor",left:J4t,"left colored":"izquierda coloreada",leftColor:Y4t,line:K4t,linear:Z4t,lineplot:Q4t,load:eLt,max:tLt,middle:rLt,min:nLt,minmax:oLt,month:aLt,new:"nuevo",no:iLt,"no null":"& nbsp; no null","non-processed":"no procesado",none:sLt,none_no:lLt,now:cLt,null:"nulo",off:dLt,onchange:uLt,"own axis":"propio eje",percentile:pLt,polar:hLt,raw:fLt,relative:mLt,reload:gLt,"restart script":"script de reinicio",right:vLt,"right colored":"color correcto",rightColor:yLt,role:_Lt,save:bLt,"save %s":"ahorra",scatterplot:wLt,seconds:xLt,solid:SLt,spline:CLt,standard:$Lt,static:"estático",steps:kLt,"this month":"este mes","this year":"este año",to:ELt,today:TLt,top:OLt,"top over":"arriba encima","top under":"arriba debajo",topColor:DLt,total:ALt,true:"último valor","update Preview":"actualización de Vista previa","use 0 instead of null values":"use 0 en lugar de valores nulos",vertical:ILt,weekEurope:MLt,weekUsa:PLt,year:NLt,yes:RLt,ØL:"ØL","ØL - Line thickness":"ØL - Espesor de línea","ØL Line thickness":"ØL espesor de la línea",ØS:"ØS","ØS - Shadow size":"ØS - Tamaño de sombra","ØS Shadow size":"ØS tamaño de la sombra"},LLt="Przyznane",zLt="Dodać",FLt="Agregat",BLt="Rodzaj",WLt="Wszystko",HLt="Wygląd",ULt="Stosować",VLt="Automatyczny",qLt="Oś",GLt="Tła",XLt="Bar",JLt="Granica",YLt="Anuluj",KLt="Koło",ZLt="Zamknąć",QLt="Zawalić się",ezt="Kolor",tzt="Kopiuj",rzt="Liczy",nzt="Stwórz",ozt="Dane",azt="Domyślna",izt="Kasować",szt="Dialog",lzt="Edytować",czt="Koniec",dzt="Rozszerzać",uzt="Napełnić",pzt="Teczka",hzt="Od:",fzt="Funkcje",mzt="Krata",gzt="Wysokość",vzt="ID",yzt="ID",_zt="Indywidualny",bzt="Instancja",wzt="Interwały",xzt="Etykieta",Szt="Etykiety",Czt="Lewo",$zt="Legenda",kzt="Limity",Ezt="Linia",Tzt="Połączyć",Ozt="Główny",Dzt="Cechowanie",Azt="Znakowania",Izt="Max",Mzt="Członkowie",Pzt="Min",Nzt="Minimum maksimum",Rzt="jeszcze",jzt="Wielokrotność",Lzt="Nazwa",zzt="Żaden",Fzt="X-Offset",Bzt="Ok",Wzt="otwarty",Hzt="Opcje",Uzt="Orientacja",Vzt="Inni",qzt="Pasta",Gzt="Percentyl",Xzt="Ciasto",Jzt="Zwrotnica",Yzt="Wykres polarny",Kzt="Wielokątny",Zzt="Presets",Qzt="Przetwarzanie",e6t="Zasięg",t6t="Krewny",r6t="Przemianować",n6t="Dobrze",o6t="Rola",a6t="Pokój",i6t="Pokoje",s6t="Korzeń",l6t="sekundy",c6t="Wybierz",d6t="Wygładzanie",u6t="Źródło",p6t="Klin",h6t="Stos",f6t="Kroki",m6t="Styl",g6t="Tekst",v6t="Teksty",y6t="Motyw",_6t="Czas",b6t="Tytuł",w6t="Rodzaj",x6t="Jednostka",S6t="Aktualizacja",C6t="Wartość",$6t="Szerokość",k6t="Z",E6t="Bez",T6t="Powierzchnia",O6t="automatyczny",D6t="średni",A6t="Bar",I6t="Dolny",M6t="u dołu w kolorze",P6t="Wprowadź formułę, np. „val / 1000 + 3”. Ta formuła zostanie zastosowana do wszystkich wartości wybranego punktu danych.",N6t="skopiowane",R6t="kopia",j6t="liczyć",L6t="liczy",z6t="Aktualna wartość",F6t="przerywana",B6t="dzień",W6t="różnica",H6t="kropkowany",U6t="Dzień tygodnia",V6t="edytować",q6t="poziomy",G6t="15 minut",X6t="1 dzień",J6t="1 godzina",Y6t="30 dni",K6t="całka",Z6t="lewo",Q6t="pozostawione w kolorze",eFt="Linia",tFt="liniowy",rFt="Fabuła linii",nFt="obciążenie",oFt="maks",aFt="środkowy",iFt="min",sFt="minimum maksimum",lFt="miesiąc",cFt="Nie",dFt="Żaden",uFt="Żaden",pFt="teraz",hFt="poza",fFt="o zmianie",mFt="percentyl",gFt="Wykres polarny",vFt="surowy",yFt="krewny",_Ft="przeładować",bFt="dobrze",wFt="prawe kolorowe",xFt="rola",SFt="zapisać",CFt="Wykres punktowy",$Ft="sekundy",kFt="solidny",EFt="Klin",TFt="standard",OFt="Kroki",DFt="do",AFt="dzisiaj",IFt="Top",MFt="górne kolorowe",PFt="całkowity",NFt="pionowy",RFt="koniec dnia",jFt="koniec niedzieli",LFt="rok",zFt="tak",FFt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"% s temu","ØL":"& # 216L","ØS":"& # 216S","0 seconds":"0 sekund","0s":"0 sekund","1 day":"1 dzień","1 hour":"1 godzina","1 minute":"1 minuta","1 month":"1 miesiąc","1 week":"1 tydzień","1 year":"1 rok","10 minutes":"10 minut","10 seconds":"10 sekund","10m":"10 minut","10minutes":"koniec 10 minut","10s":"10 sekund","12 hours":"12 godzin","12H":"12 godzin","12W":"12 tygodni","12hours":"koniec 12 godzin","14 days":"14 dni","15 minutes":"15 minut","15 seconds":"15 sekund","15m":"15 minut","1D":"1 dzień","1H":"1 godzina","1M":"1 miesiąc","1W":"1 tydzień","1Y":"1 rok","1hour":"koniec godziny","1minute":"koniec minuty","1s":"1 sekunda","2 days":"2 dni","2 hours":"2 godziny","2 minutes":"2 minuty","2 months":"2 miesiące","2 weeks":"2 tygodnie","2 years":"2 lata","20 minutes":"20 minut","20 seconds":"20 sekund","26W":"26 tygodni","2D":"2 dni","2H":"2 godziny","2M":"2 miesiące","2W":"2 tygodnie","2Y":"2 lata","2hours":"koniec 2 godzin","2m":"2 minuty","2s":"2 sekundy","3 days":"3 dni","3 hours":"3 godziny","3 minutes":"3 minuty","3 months":"3 miesiące","30 minutes":"30 minut","30 seconds":"30 sekund","300ms":"300ms","30m":"30 minut","30minutes":"koniec 30 minut","30s":"30 sekund","3D":"3 dni","3M":"3 miesiące","3hours":"koniec 3 godzin","3m":"3 minuty","3s":"3 sekundy","4 days":"4 dni","4 minutes":"4 minuty","45 minutes":"45 minut","45m":"45 minut","4D":"4 dni","4W":"4 tygodnie","4hours":"koniec 4 godzin","4m":"4 minuty","5 minutes":"5 minut","5 seconds":"5 sekund","500ms":"500 ms","5m":"5 minut","5minutes":"koniec 5 minut","5s":"5 sekund","6 hours":"6 godzin","6 months":"6 miesięcy","60 seconds":"60 sekund","60s":"60 sekund","6H":"6 godzin","6M":"6 miesięcy","6hours":"koniec 6 godzin","7 days":"7 dni","8W":"8 tygodni","8hours":"koniec 8 godzin","90 seconds":"90 sekund",Acknowledged:LLt,Add:zLt,"Add line to chart":"Dodaj linię do wykresu","Add marking line to chart":"Dodaj linię zaznaczania do wykresu","Add new line":"Dodaj nową linię","Add new markings":"Dodaj nowe oznaczenia","Add new state name":"Dodaj nową nazwę stanu","Add new value":"Dodaj nową wartość","After comma":"Po przecinku",Aggregate:FLt,"Aggregate for lines":"Agregacja dla linii",Aggregation:BLt,"Aggregation:":"Rodzaj:",All:WLt,"Animation:":"Animacja:",Appearance:HLt,Apply:ULt,"Are you sure for closing folder and discard unsaved changes?":"Czy na pewno chcesz zamknąć folder i odrzucić niezapisane zmiany?","Are you sure for delete this line?":"Czy na pewno chcesz usunąć tę linię?","Are you sure for delete this mark?":"Czy na pewno chcesz usunąć ten znak?","Are you sure for delete this preset?":"Czy na pewno chcesz usunąć to ustawienie wstępne?","Are you sure for loading the chart and discard unsaved changes?":"Czy na pewno chcesz załadować wykres i odrzucić niezapisane zmiany?","Are you sure for loading the preset and discard unsaved changes?":"Czy na pewno chcesz załadować ustawienia wstępne i odrzucić niezapisane zmiany?","Arrange bools":"Rozmieść booleans",Auto:VLt,"Auto (Line or Steps)":"Auto (linia lub kroki)","Auto padding":"Automatyczne wcięcie","Auto save":"Automatyczne zapisywanie","Auto-refresh":"Automatyczne odświeżanie","Auto-update:":"Automatyczna aktualizacja:",Axis:qLt,"Background of radar chart":"Tło mapy radarowej","Background:":"Tło:",Backgrounds:GLt,Bar:XLt,"Bar settings":"Ustawienia paska","Bars width:":"Szerokość prętów:",Border:JLt,"Border color:":"Kolor ramki:","Border padding":"Obramowanie","Border width":"Szerokość granicy","Border width:":"Szerokość granicy:","Bottom, center, inside":"Dół, środek, wnętrze","Bottom, center, outside":"Dół, środek, na zewnątrz","Bottom, left":"Na dole po lewej","Bottom, left, inside":"Dół, lewo, wnętrze","Bottom, right":"Prawy dolny","Bottom, right, inside":"Dół, prawo, wewnątrz","Bottom, right, outside":"Dół, prawo, na zewnątrz",Cancel:YLt,"Cannot create unique ID":"Nie można utworzyć unikalnego identyfikatora","Chart Type":"Typ wykresu","Chart background":"Tło wykresu","Chart background:":"Tło wykresu:","Chart size":"Rozmiar wykresu","Chart type":"Typ wykresu","Charts preview":"Podgląd wykresów",Circle:KLt,Close:ZLt,Collapse:QLt,"Collapse all lines":"Zwiń wszystkie linie","Collapse all markings":"Zwiń wszystkie oznaczenia",Color:ezt,"Common Y Axis":"Wspólna oś Y.","Convert formula":"Formuła konwersji",Copy:tzt,"Copy link to clipboard":"Skopiuj link do schowka",Counts:rzt,Create:nzt,"Create folder":"Utwórz folder","Create new folder":"Stwórz nowy folder","Create new preset":"Utwórz nowe ustawienie wstępne","Create preset":"Utwórz ustawienie wstępne","Custom chart background:":"Niestandardowe tło wykresu:","Custom time format":"Niestandardowy format czasu",Data:ozt,Default:azt,Delete:izt,"Delete object":"Usuń obiekt","Delete text value":"Usuń wartość tekstową",Dialog:szt,"Digits after comma":"Cyfry po przecinku","Drag me":"Pociągnij mnie",Edit:lzt,"Edit folder name":"Edytuj nazwę folderu","Edit options for line %s":"Edytuj opcje linii% s","Edit state names":"Edytuj nazwy stanów","Empty preset cannot be saved!":"Nie można zapisać pustego ustawienia wstępnego!","Enable logging for new state":"Włącz rejestrowanie dla nowego stanu","Enable zoom and pan":"Włącz powiększanie i przesuwanie","Enable zoom and pan:":"Włącz powiększanie i panoramowanie:",End:czt,"End:":"Koniec:","Enter chart name":"Wprowadź nazwę wykresu",Expand:dzt,"Expand all lines":"Rozwiń wszystkie linie","Expand all markings":"Rozwiń wszystkie oznaczenia","Export data color":"Kolor przycisku eksportu danych",Fill:uzt,"Fill color:":"Kolor wypełnienia:","Fill range:":"Zakres wypełnienia:","Fill(0to1)":"Wypełnij (0to1)",Folder:pzt,"Font size":"Rozmiar czcionki",From:hzt,"From line %s":"Z linii %s",Functions:fzt,Grid:mzt,"Grid color":"Kolor siatki","Grid color:":"Kolor siatki:","Group by":"Grupuj według","HH:MM dd.mm":"HH:MM dd.mm",Height:gzt,"Height:":"Wysokość:","Hide X grid":"Ukryj siatkę X.","Hide Y grid":"Ukryj siatkę Y.","Hide edit button:":"Ukryj przycisk edycji:","Hide nulls in tooltip":"Ukryj null w podpowiedzi","Hover details":"Najedź na szczegóły","Hover details:":"Po najechaniu szczegóły:",ID:vzt,IDs:yzt,"If the current value is not older than X seconds, assume it is still the same.":"Jeśli bieżąca wartość nie jest starsza niż X sekund, załóżmy, że nadal jest taka sama.","In seconds":"W sekundy",Individual:_zt,"Input data":"Dane wejściowe","Inside / No lines":"Wewnątrz / Bez linii","Inside / With lines":"Wewnątrz / Z liniami","Inside end":"Wewnątrz, na końcu","Inside end bottom":"Wewnątrz, na końcu, na dole","Inside end top":"Wewnątrz, na końcu, na górze","Inside middle":"Wewnątrz, w środku","Inside middle bottom":"Wewnątrz, na środku, na dole","Inside middle top":"Wewnątrz, w środku, na górze","Inside start":"Wewnątrz, na początku","Inside start bottom":"Wewnątrz, na początku, na dole","Inside start top":"Wewnątrz, na początku, na górze",Instance:bzt,"Integral unit":"Jednostka integralna","Interpolate:":"Interpolować:","Interpolation method":"Metoda interpolacji",Intervals:wzt,"Invalid object":"Nieprawidłowy obiekt",Label:xzt,"Label color:":"Kolor etykiety:","Label font size:":"Rozmiar czcionki etykiety:",Labels:Szt,"Last changed":"Ostatnia zmiana",Left:Czt,Legend:$zt,"Legend background":"Tło legendy","Legend background:":"Tło legendy:","Legend columns:":"Kolumny legendy:","Legend opacity (from 0 to 1):":"Krycie Legendy (od 0 do 1):","Legend text color":"Kolor tekstu legendy",Limits:kzt,Line:Ezt,"Line ID":"Identyfikator linii","Line Width":"Szerokość linii","Line and area":"Linia i obszar","Line style":"Styl linii",Link:Tzt,"Live update every":"Aktualizacja na żywo co","Live update every:":"Aktualizacja na żywo co:","Load without save":"Załaduj bez zapisywania","Loading...":"Ładuję...","Lower value or ID":"Niższa wartość lub ID",Main:Ozt,Mark:Dzt,Markings:Azt,Max:Izt,"Max:":"Maksymalny:",Members:Mzt,"Middle, left, inside":"Środkowy, lewy, w środku","Middle, right, inside":"Środkowy, prawy, wewnątrz","Middle, right, outside":"Środkowy, prawy, na zewnątrz",Min:Pzt,"Min:":"Minimum:",MinMax:Nzt,More:Rzt,"Move to folder":"Przenieś do folderu",Multiple:jzt,"NULL as":"NULL as",Name:Lzt,"Name:":"Nazwa:","No ID yet":"Nie ma ID tożsamości","No background":"Bez tła","No border:":"Bez granic:","No future":"Żadnych wartości w przyszłości","No interpolate in hover":"Brak interpolacji w podpowiedzi","No presets created yet":"Nie utworzono jeszcze żadnych ustawień wstępnych",None:zzt,Offset:Fzt,Ok:Bzt,Open:Wzt,"Open chart in own window":"Otwórz wykres we własnym oknie","Open in own window":"Otwórz we własnym oknie",Options:Hzt,Orientation:Uzt,Others:Vzt,"Outside / No lines":"Poza / Bez linii","Outside/ With lines":"Na zewnątrz / Z liniami",Paste:qzt,Percentile:Gzt,Pie:Xzt,"Please confirm":"Proszę potwierdzić",Points:Jzt,Polar:Yzt,Polygonal:Kzt,"Predefined background:":"Wstępnie zdefiniowane tło:",Presets:Zzt,Processing:Qzt,"Processing...":"Przetwarzanie...",Range:e6t,"Range:":"Zasięg:",Relative:t6t,Rename:r6t,"Rename preset":"Zmień nazwę ustawienia wstępnego","Reorder presets in folders":"Zmień kolejność ustawień wstępnych w folderach","Reset settings":"Resetowanie ustawień","Reset zoom after idle":"Zresetuj powiększenie po bezczynności",Right:n6t,Role:o6t,Room:a6t,Rooms:i6t,Root:s6t,"Save current preset and load":"Zapisz bieżące ustawienie wstępne i załaduj","Save image button color":"Zapisz kolor przycisku obrazu","Save into:":"Zapisz w:","Scatter plot":"Wykres punktowy",Seconds:l6t,Select:c6t,"Select ID":"Wybierz ID","Select for":"Wybierz dla","Shadow Size":"Rozmiar cienia","Show controls":"Pokaż kontrolki","Show export data button":"Pokaż przycisk eksportu danych","Show labels:":"Pokaż etykiety:","Show legend":"Pokaż legendę","Show legend:":"Pokaż legendę:","Show only in legend":"Pokaż tylko w legendzie","Show points":"Pokaż punkty","Show save image button":"Pokaż przycisk zapisywania obrazu","Show values":"Pokaż wartości",Smoothing:d6t,Source:u6t,Spline:p6t,Stack:h6t,"Start:":"Początek:","State value":"Wartość stanu","State value text":"Podaj tekst wartości","Step span:":"Zakres kroku:","Step type":"Typ kroku","Step type:":"Rodzaj kroku:",Steps:f6t,"Steps on start":"Kroki na starcie",Style:m6t,"System settings":"Ustawienia systemowe",Text:g6t,"Text X offset":"X-Przesunięcie tekstu","Text Y offset":"Przesunięcie Y tekstu","Text by false":"Tekst fałszywy","Text by true":"Tekst od prawda","Text color":"Kolor tekstu","Text position":"Pozycja tekstu","Text size":"Rozmiar czcionki","Text values not used":"Wartości tekstowe nie są używane",Texts:v6t,Theme:y6t,"This time offset will be added to the X label by displaying data on the chart":"To przesunięcie czasowe zostanie dodane do etykiety X poprzez wyświetlenie danych na wykresie","This time offset will be added to the request by reading data from DB":"To przesunięcie czasowe zostanie dodane do żądania poprzez odczyt danych z bazy danych","Ticks from:":"Użyj tyknięć X z:",Time:_6t,"Time Span":"Okres czasu","Time format":"Format czasu","Time format:":"Format czasu:","Time span":"Okres czasu","Time stamp":"Znak czasu",Title:b6t,"Title color":"Kolor tytułu","Title color:":"Kolor tytułu:","Title position":"Pozycja tytułu","Title position:":"Pozycja tytułu:","Title size":"Rozmiar tytułu","Title size:":"Rozmiar tytułu:","Title:":"Tytuł:","Top, center, inside":"Góra, środek, wnętrze","Top, left":"Lewy górny","Top, left, inside":"Góra, lewa, wewnątrz","Top, right":"W prawym górnym rogu","Top, right, inside":"Góra, prawo, wewnątrz","Top, right, outside":"Góra, prawo, na zewnątrz",Type:w6t,Unit:x6t,"Units:":"Jednostki:",Update:S6t,"Update objects":"Zaktualizuj obiekty","Update states":"Zaktualizuj stany","Upper value or ID":"Górna wartość lub ID","Use comma":"Użyj przecinka","Use comma:":"Użyj przecinka:","Use state names":"Używaj nazw stanów","User defined":"Określony przez użytkownika","User defined names:":"Nazwy zdefiniowane przez użytkownika:","Valid time (sec)":"Ważny czas (s)",Value:C6t,Width:$6t,"Width:":"Szerokość:","Window background":"Tło okna","Window background:":"Tło okna:",With:k6t,"With border":"Z obramowaniem","With lines":"Z liniami",Without:E6t,"Without border":"Bez obramowania","Without lines":"Bez linii","X Axis":"Oś X.","X Axis position":"Położenie osi X.","X axis labels color:":"Kolor etykiet X:","X labels color":"Kolor etykiet X.","X labels size":"X rozmiar czcionki","X ticks color":"X zaznacza kolor","X-Axis ticks":"Tiki X-Axis","X-Label-Offset":"Przesunięcie etykiety X","X-Offset":"Przesunięcie X","Y Axis":"Oś Y.","Y Axis position":"Pozycja osi Y.","Y axis labels color:":"Kolor etykiet Y:","Y labels color":"Kolor etykiety Y.","Y labels size":"Rozmiar czcionki Y","Y ticks color":"Y zaznacza kolor","Y-Axis ticks":"Tyksy Y-Axis","Y-Offset":"Przesunięcie Y",'You can create a new markings with a "+" on the right.':"Możesz utworzyć nowe oznaczenia ze znakiem „+” po prawej stronie.","You can drag and drop simple lines from the left list.":"Możesz przeciągać i upuszczać proste linie z lewej listy.","add children":"dodaj dzieci",area:T6t,auto:O6t,average:D6t,bar:A6t,bottom:I6t,bottomColor:M6t,convert_help:P6t,copied:N6t,copy:R6t,count:j6t,counts:L6t,current:z6t,dashed:F6t,day:B6t,default:"domyślna",difference:W6t,dotted:H6t,dow:U6t,edit:V6t,"edit enum":"edytuj wyliczenie","edit file":"edytuj plik","end of 10 minutes":"koniec 10 minut","end of 12 hours":"koniec 12 godzin","end of 2 hours":"koniec 2 godzin","end of 3 hours":"koniec 3 godzin","end of 30 minutes":"koniec 30 minut","end of 4 hours":"koniec 4 godzin","end of 5 minutes":"koniec 5 minut","end of 6 hours":"koniec 6 godzin","end of 8 hours":"koniec 8 godzin","end of day":"koniec dnia","end of hour":"koniec godziny","end of minute":"koniec minuty","end of previous saturday":"koniec poprzedniej soboty (2 tygodnie)","end of previous sunday":"koniec poprzedniej niedzieli (2 tygodnie)","end of saturday":"koniec soboty","end of sunday":"koniec niedzieli",false:"zero",horizontal:q6t,i15min:G6t,i1day:X6t,i1hour:J6t,i30days:Y6t,"ignore 'null'":'zignoruj ​​"zero"',"ignore 'null':":'zignoruj ​​"null":',"ignore null values":"ignoruj ​​wartości puste",integral:K6t,"last value":"ostatnia wartość",left:Z6t,"left colored":"lewy kolorowy",leftColor:Q6t,line:eFt,linear:tFt,lineplot:rFt,load:nFt,max:oFt,middle:aFt,min:iFt,minmax:sFt,month:lFt,new:"Nowy",no:cFt,"no null":"& nbsp; no null","non-processed":"nieprzetworzone",none:dFt,none_no:uFt,now:pFt,null:"zero",off:hFt,onchange:fFt,"own axis":"własną oś",percentile:mFt,polar:gFt,raw:vFt,relative:yFt,reload:_Ft,"restart script":"zrestartuj skrypt",right:bFt,"right colored":"w odpowiednim kolorze",rightColor:wFt,role:xFt,save:SFt,"save %s":"zapisz% s",scatterplot:CFt,seconds:$Ft,solid:kFt,spline:EFt,standard:TFt,static:"statyczny",steps:OFt,"this month":"ten miesiąc","this year":"W tym roku",to:DFt,today:AFt,top:IFt,"top over":"do góry","top under":"górny pod",topColor:MFt,total:PFt,true:"ostatnia wartość","update Preview":"aktualizuj podgląd","use 0 instead of null values":"użyj 0 zamiast wartości zerowych",vertical:NFt,weekEurope:RFt,weekUsa:jFt,year:LFt,yes:zFt,ØL:"ØL","ØL - Line thickness":"ØL - grubość linii","ØL Line thickness":"ØL Grubość linii",ØS:"ØS","ØS - Shadow size":"ØS - Rozmiar cienia","ØS Shadow size":"ØS Rozmiar cienia"},BFt="Визнано",WFt="додати",HFt="Агрегатний",UFt="Тип",VFt="все",qFt="Зовнішній вигляд",GFt="Застосувати",XFt="Авто",JFt="Вісь",YFt="Фони",KFt="Bar",ZFt="Кордон",QFt="Скасувати",e8t="Коло",t8t="Закрити",r8t="Згорнути",n8t="колір",o8t="Копія",a8t="Розраховує",i8t="Створити",s8t="Дані",l8t="За замовчуванням",c8t="Видалити",d8t="Діалог",u8t="Редагувати",p8t="Кінець",h8t="Розгорнути",f8t="Заповнити",m8t="Папка",g8t="Від:",v8t="Функції",y8t="Сітка",_8t="Висота",b8t="ID",w8t="ідентифікатори",x8t="Індивідуальний",S8t="Екземпляр",C8t="Інтервали",$8t="Мітка",k8t="етикетки",E8t="Ліворуч",T8t="Легенда",O8t="Межі",D8t="лінія",A8t="Посилання",I8t="Головна",M8t="Маркування",P8t="Маркування",N8t="Макс",R8t="Члени",j8t="Хв",L8t="MinMax",z8t="більше",F8t="множинний",B8t="Ім'я",W8t="Жодного",H8t="Х-зсув",U8t="В порядку",V8t="ВІДЧИНЕНО",q8t="Опції",G8t="Орієнтація",X8t="інші",J8t="Вставити",Y8t="Процентиль",K8t="пиріг",Z8t="Очки",Q8t="Полярна діаграма",eBt="Багатокутний",tBt="Предустановки",rBt="Обробка",nBt="Діапазон",oBt="Відносна",aBt="Перейменувати",iBt="правильно",sBt="Роль",lBt="Кімната",cBt="Кімнати",dBt="Корінь",uBt="секунд",pBt="Виберіть",hBt="Згладжування",fBt="Джерело",mBt="Сплайн",gBt="Стек",vBt="Кроки",yBt="Стиль",_Bt="текст",bBt="Тексти",wBt="Тема",xBt="час",SBt="Назва",CBt="Тип",$Bt="одиниця",kBt="оновлення",EBt="Значення",TBt="Ширина",OBt="с",DBt="без",ABt="Площа",IBt="авто",MBt="середній",PBt="Бар",NBt="дно",RBt="низ кольоровий",jBt="Введіть формулу на зразок «val / 1000 + 3». Ця формула буде застосована до всіх значень вибраної точки даних.",LBt="скопійовано",zBt="копія",FBt="розраховувати",BBt="розраховує",WBt="Поточне значення",HBt="штриховий",UBt="день",VBt="різниця",qBt="пунктирний",GBt="День тижня",XBt="редагувати",JBt="горизонтальний",YBt="15 хвилин",KBt="1 день",ZBt="1 година",QBt="30 днів",e9t="інтегральний",t9t="зліва",r9t="лівий кольоровий",n9t="лінія",o9t="лінійний",a9t="Лінійний сюжет",i9t="навантаження",s9t="макс",l9t="середина",c9t="хв",d9t="minmax",u9t="місяць",p9t="ні",h9t="немає",f9t="немає",m9t="зараз",g9t="вимкнено",v9t="на зміну",y9t="процентиль",_9t="Полярна діаграма",b9t="сирий",w9t="відносний",x9t="перезавантажити",S9t="правильно",C9t="правильний колір",$9t="роль",k9t="зберегти",E9t="Діаграма розкиду",T9t="секунд",O9t="твердий",D9t="Сплайн",A9t="стандарт",I9t="Кроки",M9t="до",P9t="сьогодні",N9t="зверху",R9t="верх кольоровий",j9t="всього",L9t="вертикальний",z9t="кінець дня",F9t="кінець неділі",B9t="рік",W9t="так",H9t={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"%s тому","ØL":"ØL","ØS":"ØS","0 seconds":"0 секунд","0s":"0 секунд","1 day":"1 день","1 hour":"1 година","1 minute":"1 хвилина","1 month":"1 місяць","1 week":"1 тиждень","1 year":"1 рік","10 minutes":"10 хвилин","10 seconds":"10 секунд","10m":"10 хвилин","10minutes":"кінець 10 хвилин","10s":"10 секунд","12 hours":"12 годин","12H":"12 годин","12W":"12 тижнів","12hours":"кінець 12 год","14 days":"14 днів","15 minutes":"15 хвилин","15 seconds":"15 секунд","15m":"15 хвилин","1D":"1 день","1H":"1 година","1M":"1 місяць","1W":"1 тиждень","1Y":"1 рік","1hour":"кінець години","1minute":"кінець хвилини","1s":"1 секунда","2 days":"2 дні","2 hours":"2 години","2 minutes":"2 хвилини","2 months":"2 місяці","2 weeks":"2 тижні","2 years":"2 роки","20 minutes":"20 хвилин","20 seconds":"20 секунд","26W":"26 тижнів","2D":"2 дні","2H":"2 години","2M":"2 місяці","2W":"2 тижні","2Y":"2 роки","2hours":"кінець 2 год","2m":"2 хвилини","2s":"2 секунди","3 days":"3 дні","3 hours":"3 години","3 minutes":"3 хвилини","3 months":"3 місяці","30 minutes":"30 хвилин","30 seconds":"30 секунд","300ms":"300 мс","30m":"30 хвилин","30minutes":"закінчення 30 хвилин","30s":"30 секунд","3D":"3 дні","3M":"3 місяці","3hours":"кінець 3 год","3m":"3 хвилини","3s":"3 секунди","4 days":"4 дні","4 minutes":"4 хвилини","45 minutes":"45 хвилин","45m":"45 хвилин","4D":"4 дні","4W":"4 тижні","4hours":"кінець 4 год","4m":"4 хвилини","5 minutes":"5 хвилин","5 seconds":"5 секунд","500ms":"500 мс","5m":"5 хвилин","5minutes":"закінчення 5 хвилин","5s":"5 секунд","6 hours":"6 годин","6 months":"6 місяців","60 seconds":"60 секунд","60s":"60 секунд","6H":"6 годин","6M":"6 місяців","6hours":"кінець 6 год","7 days":"7 днів","8W":"8 тижнів","8hours":"кінець 8 год","90 seconds":"90 секунд",Acknowledged:BFt,Add:WFt,"Add line to chart":"Додайте лінію до діаграми","Add marking line to chart":"Додати лінію розмітки до діаграми","Add new line":"Додайте новий рядок","Add new markings":"Додайте нові позначки","Add new state name":"Додайте нову назву штату","Add new value":"Додати нове значення","After comma":"Після коми",Aggregate:HFt,"Aggregate for lines":"Агрегація для ліній",Aggregation:UFt,"Aggregation:":"тип:",All:VFt,"Animation:":"анімація:",Appearance:qFt,Apply:GFt,"Are you sure for closing folder and discard unsaved changes?":"Ви впевнені, що хочете закрити папку та скасувати незбережені зміни?","Are you sure for delete this line?":"Ви впевнені, що хочете видалити цей рядок?","Are you sure for delete this mark?":"Ви впевнені, що хочете видалити цю позначку?","Are you sure for delete this preset?":"Ви впевнені, що хочете видалити цей стиль?","Are you sure for loading the chart and discard unsaved changes?":"Ви впевнені, що хочете завантажити діаграму та відхилити незбережені зміни?","Are you sure for loading the preset and discard unsaved changes?":"Ви впевнені, що хочете завантажити попередні налаштування та відхилити незбережені зміни?","Arrange bools":"Упорядкуйте логічні значення",Auto:XFt,"Auto (Line or Steps)":"Авто (лінії або кроки)","Auto padding":"Авто-відступи","Auto save":"Автоматичне збереження","Auto-refresh":"Автооновлення","Auto-update:":"Автоматичне оновлення:",Axis:JFt,"Background of radar chart":"Фон радіолокаційної діаграми","Background:":"фон:",Backgrounds:YFt,Bar:KFt,"Bar settings":"Налаштування панелі","Bars width:":"Ширина барів:",Border:ZFt,"Border color:":"Колір рамки:","Border padding":"Заповнення межі","Border width":"Ширина кордону","Border width:":"Ширина межі:","Bottom, center, inside":"Знизу, по центру, всередині","Bottom, center, outside":"Знизу, по центру, зовні","Bottom, left":"Внизу, зліва","Bottom, left, inside":"Внизу, зліва, всередині","Bottom, right":"Внизу праворуч","Bottom, right, inside":"Внизу, справа, всередині","Bottom, right, outside":"Внизу, справа, зовні",Cancel:QFt,"Cannot create unique ID":"Неможливо створити унікальний ідентифікатор","Chart Type":"Тип діаграми","Chart background":"Тло діаграми","Chart background:":"Фон діаграми:","Chart size":"Розмір діаграми","Chart type":"Тип діаграми","Charts preview":"Попередній перегляд діаграм",Circle:e8t,Close:t8t,Collapse:r8t,"Collapse all lines":"Згорнути всі рядки","Collapse all markings":"Згорнути всі позначки",Color:n8t,"Common Y Axis":"Загальна вісь Y","Convert formula":"Формула перетворення",Copy:o8t,"Copy link to clipboard":"Копіювати посилання в буфер обміну",Counts:a8t,Create:i8t,"Create folder":"Створити папку","Create new folder":"Створити нову папку","Create new preset":"Створити новий стиль","Create preset":"Створити пресет","Custom chart background:":"Користувацький фон діаграми:","Custom time format":"Спеціальний формат часу",Data:s8t,Default:l8t,Delete:c8t,"Delete object":"Видалити об'єкт","Delete text value":"Видалити текстове значення",Dialog:d8t,"Digits after comma":"Цифри після коми","Drag me":"Перетягни мене",Edit:u8t,"Edit folder name":"Редагувати назву папки","Edit options for line %s":"Редагувати параметри для лінії %s","Edit state names":"Редагувати назви штатів","Empty preset cannot be saved!":"Порожній пресет неможливо зберегти!","Enable logging for new state":"Увімкнути журналювання для нового стану","Enable zoom and pan":"Увімкніть масштабування та панорамування","Enable zoom and pan:":"Увімкнути масштабування та панорамування:",End:p8t,"End:":"Кінець:","Enter chart name":"Введіть назву діаграми",Expand:h8t,"Expand all lines":"Розгорнути всі рядки","Expand all markings":"Розгорнути всі позначки","Export data color":"Колір кнопки експорту даних",Fill:f8t,"Fill color:":"Колір заливки:","Fill range:":"Діапазон заповнення:","Fill(0to1)":"Заповнити (0до1)",Folder:m8t,"Font size":"Розмір шрифту",From:g8t,"From line %s":"З рядка %s",Functions:v8t,Grid:y8t,"Grid color":"Колір сітки","Grid color:":"Колір сітки:","Group by":"Групувати за","HH:MM dd.mm":"ГГ:МХ дд.хв",Height:_8t,"Height:":"Висота:","Hide X grid":"Приховати сітку X","Hide Y grid":"Приховати сітку Y","Hide edit button:":"Приховати кнопку редагування:","Hide nulls in tooltip":"Приховати нулі у підказці","Hover details":"Деталі наведення","Hover details:":"Деталі наведення:",ID:b8t,IDs:w8t,"If the current value is not older than X seconds, assume it is still the same.":"Якщо поточне значення не старше X секунд, припустимо, що воно все ще те саме.","In seconds":"За секунди",Individual:x8t,"Input data":"Вхідні дані","Inside / No lines":"Всередині / без ліній","Inside / With lines":"Всередині / З лініями","Inside end":"Всередині, на кінці","Inside end bottom":"Всередині, на кінці, на дні","Inside end top":"Всередині, в кінці, зверху","Inside middle":"Всередині, посередині","Inside middle bottom":"Всередині, посередині, внизу","Inside middle top":"Всередині, посередині, зверху","Inside start":"Всередині, на початку","Inside start bottom":"Всередині, на початку, внизу","Inside start top":"Всередині, на початку, зверху",Instance:S8t,"Integral unit":"Цілісний блок","Interpolate:":"Інтерполяція:","Interpolation method":"Метод інтерполяції",Intervals:C8t,"Invalid object":"Недійсний об'єкт",Label:$8t,"Label color:":"Колір етикетки:","Label font size:":"Розмір шрифту етикетки:",Labels:k8t,"Last changed":"Востаннє змінено",Left:E8t,Legend:T8t,"Legend background":"Легенда фону","Legend background:":"Фон легенди:","Legend columns:":"Умовні стовпці:","Legend opacity (from 0 to 1):":"Непрозорість легенди (від 0 до 1):","Legend text color":"Колір тексту легенди",Limits:O8t,Line:D8t,"Line ID":"Ідентифікатор лінії","Line Width":"Ширина лінії","Line and area":"Лінія і площа","Line style":"Стиль лінії",Link:A8t,"Live update every":"Оновлення в реальному часі кожні","Live update every:":"Оновлення в реальному часі кожні:","Load without save":"Завантажити без збереження","Loading...":"Завантаження...","Lower value or ID":"Нижнє значення або ID",Main:I8t,Mark:M8t,Markings:P8t,Max:N8t,"Max:":"Максимум:",Members:R8t,"Middle, left, inside":"Посередині, зліва, всередині","Middle, right, inside":"Посередині, справа, всередині","Middle, right, outside":"Посередині, справа, зовні",Min:j8t,"Min:":"мінімум:",MinMax:L8t,More:z8t,"Move to folder":"Перемістити в папку",Multiple:F8t,"NULL as":"NULL як",Name:B8t,"Name:":"Ім'я:","No ID yet":"Поки що немає ідентифікатора","No background":"Без фону","No border:":"Без кордону:","No future":"Жодних цінностей у майбутньому","No interpolate in hover":"Немає інтерполяції в спливаючій підказці","No presets created yet":"Попередніх налаштувань ще не створено",None:W8t,Offset:H8t,Ok:U8t,Open:V8t,"Open chart in own window":"Відкрити діаграму у власному вікні","Open in own window":"Відкрити у власному вікні",Options:q8t,Orientation:G8t,Others:X8t,"Outside / No lines":"Зовні / без ліній","Outside/ With lines":"Зовні/ З лініями",Paste:J8t,Percentile:Y8t,Pie:K8t,"Please confirm":"Будь ласка, підтвердьте",Points:Z8t,Polar:Q8t,Polygonal:eBt,"Predefined background:":"Попередньо визначений фон:",Presets:tBt,Processing:rBt,"Processing...":"Обробка...",Range:nBt,"Range:":"діапазон:",Relative:oBt,Rename:aBt,"Rename preset":"Перейменувати стиль","Reorder presets in folders":"Зміна порядку налаштувань у папках","Reset settings":"Скидання налаштувань","Reset zoom after idle":"Скинути масштаб після простою",Right:iBt,Role:sBt,Room:lBt,Rooms:cBt,Root:dBt,"Save current preset and load":"Зберегти поточний пресет і завантажити","Save image button color":"Зберегти колір кнопки зображення","Save into:":"Зберегти в:","Scatter plot":"Діаграма розкиду",Seconds:uBt,Select:pBt,"Select ID":"Виберіть ID","Select for":"Виберіть для","Shadow Size":"Розмір тіні","Show controls":"Показати елементи керування","Show export data button":"Показати кнопку експорту даних","Show labels:":"Показати мітки:","Show legend":"Показати легенду","Show legend:":"Показати легенду:","Show only in legend":"Показувати лише в легенді","Show points":"Показати бали","Show save image button":"Показати кнопку збереження зображення","Show values":"Показати значення",Smoothing:hBt,Source:fBt,Spline:mBt,Stack:gBt,"Start:":"початок:","State value":"Державне значення","State value text":"Вкажіть текст значення","Step span:":"Діапазон кроків:","Step type":"Тип кроку","Step type:":"Тип кроку:",Steps:vBt,"Steps on start":"Кроки на старті",Style:yBt,"System settings":"Налаштування системи",Text:_Bt,"Text X offset":"Зміщення тексту X","Text Y offset":"Текст Y-зсув","Text by false":"Текст від false","Text by true":"Текст від правда","Text color":"Колір тексту","Text position":"Позиція тексту","Text size":"Розмір тексту","Text values not used":"Текстові значення не використовуються",Texts:bBt,Theme:wBt,"This time offset will be added to the X label by displaying data on the chart":"Цей часовий зсув буде додано до мітки X шляхом відображення даних на діаграмі","This time offset will be added to the request by reading data from DB":"Цей часовий зсув буде додано до запиту шляхом читання даних з БД","Ticks from:":"Використовуйте X-ticks з:",Time:xBt,"Time Span":"Проміжок часу","Time format":"Формат часу","Time format:":"Формат часу:","Time span":"Проміжок часу","Time stamp":"Позначка часу",Title:SBt,"Title color":"Колір заголовка","Title color:":"Колір заголовка:","Title position":"Титульна позиція","Title position:":"Титульна позиція:","Title size":"Розмір заголовка","Title size:":"Розмір назви:","Title:":"Назва:","Top, center, inside":"Верх, центр, всередині","Top, left":"Зверху, зліва","Top, left, inside":"Зверху, зліва, всередині","Top, right":"Зверху, справа","Top, right, inside":"Зверху, справа, всередині","Top, right, outside":"Зверху, справа, зовні",Type:CBt,Unit:$Bt,"Units:":"Одиниці вимірювання:",Update:kBt,"Update objects":"Оновлення об'єктів","Update states":"Оновити штати","Upper value or ID":"Верхнє значення або ID","Use comma":"Використовуйте кому","Use comma:":"Використовуйте кому:","Use state names":"Використовуйте назви держав","User defined":"Визначений користувачем","User defined names:":"Визначені користувачем імена:","Valid time (sec)":"Дійсний час (с)",Value:EBt,Width:TBt,"Width:":"Ширина:","Window background":"Фон вікна","Window background:":"Фон вікна:",With:OBt,"With border":"З бордюром","With lines":"З лініями",Without:DBt,"Without border":"Без кордону","Without lines":"Без ліній","X Axis":"Вісь X","X Axis position":"Положення осі X","X axis labels color:":"Колір міток X:","X labels color":"Колір міток X","X labels size":"Розмір шрифту X","X ticks color":"Колір галочок X","X-Axis ticks":"Кліщі осі X","X-Label-Offset":"X-Label Offset","X-Offset":"Х-зсув","Y Axis":"Вісь Y","Y Axis position":"Положення осі Y","Y axis labels color:":"Колір міток Y:","Y labels color":"Колір міток Y","Y labels size":"Розмір шрифту Y","Y ticks color":"Колір галочок Y","Y-Axis ticks":"Відмітки осі Y","Y-Offset":"Y-зсув",'You can create a new markings with a "+" on the right.':"Ви можете створити нові позначки за допомогою «+» праворуч.","You can drag and drop simple lines from the left list.":"Ви можете перетягувати прості лінії зі списку ліворуч.","add children":"додати дітей",area:ABt,auto:IBt,average:MBt,bar:PBt,bottom:NBt,bottomColor:RBt,convert_help:jBt,copied:LBt,copy:zBt,count:FBt,counts:BBt,current:WBt,dashed:HBt,day:UBt,default:"за замовчуванням",difference:VBt,dotted:qBt,dow:GBt,edit:XBt,"edit enum":"редагувати enum","edit file":"редагувати файл","end of 10 minutes":"кінець 10 хвилин","end of 12 hours":"кінець 12 год","end of 2 hours":"кінець 2 год","end of 3 hours":"кінець 3 год","end of 30 minutes":"закінчення 30 хвилин","end of 4 hours":"кінець 4 год","end of 5 minutes":"закінчення 5 хвилин","end of 6 hours":"кінець 6 год","end of 8 hours":"кінець 8 год","end of day":"кінець дня","end of hour":"кінець години","end of minute":"кінець хвилини","end of previous saturday":"кінець попередньої суботи (2 тижні)","end of previous sunday":"кінець попередньої неділі (2 тижні)","end of saturday":"кінець суботи","end of sunday":"кінець неділі",false:"нуль",horizontal:JBt,i15min:YBt,i1day:KBt,i1hour:ZBt,i30days:QBt,"ignore 'null'":'ігнорувати "null"',"ignore 'null':":"ігнорувати 'null':","ignore null values":"ігнорувати нульові значення",integral:e9t,"last value":"останнє значення",left:t9t,"left colored":"лівий кольоровий",leftColor:r9t,line:n9t,linear:o9t,lineplot:a9t,load:i9t,max:s9t,middle:l9t,min:c9t,minmax:d9t,month:u9t,new:"новий",no:p9t,"no null":" немає нуля","non-processed":"необроблені",none:h9t,none_no:f9t,now:m9t,null:"нуль",off:g9t,onchange:v9t,"own axis":"власна вісь",percentile:y9t,polar:_9t,raw:b9t,relative:w9t,reload:x9t,"restart script":"перезапустити сценарій",right:S9t,"right colored":"правильний колір",rightColor:C9t,role:$9t,save:k9t,"save %s":"зберегти %s",scatterplot:E9t,seconds:T9t,solid:O9t,spline:D9t,standard:A9t,static:"статичний",steps:I9t,"this month":"цього місяця","this year":"цього року",to:M9t,today:P9t,top:N9t,"top over":"зверху","top under":"зверху під",topColor:R9t,total:j9t,true:"останнє значення","update Preview":"оновлення попереднього перегляду","use 0 instead of null values":"використовувати 0 замість нульових значень",vertical:L9t,weekEurope:z9t,weekUsa:F9t,year:B9t,yes:W9t,ØL:"ØL","ØL - Line thickness":"ØL - Товщина лінії","ØL Line thickness":"ØL Товщина лінії",ØS:"ØS","ØS - Shadow size":"ØS - розмір тіні","ØS Shadow size":"ØS Розмір тіні"},U9t="承认",V9t="添加",q9t="总计的",G9t="类型",X9t="所有",J9t="外观",Y9t="申请",K9t="汽车",Z9t="轴",Q9t="背景资料",e7t="Bar",t7t="边界",r7t="取消",n7t="圆圈",o7t="关闭",a7t="坍方",i7t="颜色",s7t="复制",l7t="计数",c7t="创造",d7t="数据",u7t="默认的",p7t="删除",h7t="对话",f7t="编辑",m7t="结束",g7t="扩大",v7t="填充",y7t="夹",_7t="自: ",b7t="功能",w7t="格",x7t="高度",S7t="ID",C7t="IDs",$7t="个人",k7t="实例",E7t="间隔",T7t="标签",O7t="标签",D7t="左",A7t="传说",I7t="限度",M7t="线",P7t="链接",N7t="主要",R7t="打标",j7t="标记",L7t="Max",z7t="成员",F7t="Min",B7t="MinMax",W7t="更多",H7t="多",U7t="名称",V7t="没有",q7t="X-Offset",G7t='"确定"',X7t="打开",J7t="选项",Y7t="方向",K7t="其他",Z7t="糊",Q7t="百分位数",eWt="馅饼",tWt="点",rWt="极坐标图",nWt="多边形",oWt="预置",aWt="加工",iWt="范围",sWt="相对的",lWt="改名",cWt="右",dWt="作用",uWt="房间",pWt="房间数",hWt="根",fWt="几秒钟",mWt="选择",gWt="平滑",vWt="来源",yWt="花键",_Wt="栈",bWt="步骤",wWt="风格",xWt="文本",SWt="文字",CWt="主题",$Wt="时间",kWt="标题",EWt="类型",TWt="单元",OWt="更新",DWt="值",AWt="宽度",IWt="与",MWt="没有",PWt="区域",NWt="汽车",RWt="平均",jWt="酒吧",LWt="底部",zWt="底色",FWt="输入公式,如“val / 1000 + 3”。此公式将应用于所选数据点的所有值。",BWt="复制的",WWt="复制",HWt="数数",UWt="计数",VWt="当前值",qWt="虚线",GWt="一天",XWt="不同之处",JWt="点缀",YWt="星期几",KWt="编辑",ZWt="水平的",QWt="15分钟",eHt="1天",tHt="1小时",rHt="30天",nHt="不可缺少的",oHt="左",aHt="留着色",iHt="线",sHt="线性的",lHt="线图",cHt="负载",dHt="max",uHt="中间",pHt="min",hHt="minmax",fHt="一个月",mHt="没有",gHt="没有",vHt="没有任何",yHt="现在",_Ht="关闭",bHt="在改变",wHt="百分位数",xHt="极坐标图",SHt="生的",CHt="相对",$Ht="重新加载",kHt="右",EHt="右色",THt="作用",OHt="保存",DHt="散点图",AHt="几秒钟",IHt="固体",MHt="样",PHt="标准",NHt="步骤",RHt="至",jHt="今天",LHt="顶部",zHt="顶颜色的",FHt="总",BHt="垂直",WHt="结束一天",HHt="结束的星期天",UHt="年",VHt="是的",qHt={0:"零",1:"一个",2:"两个",3:"三",4:"四个",5:"五个","%s ago":"%s前","ØL":"ØL","ØS":"ØS","0 seconds":"0秒","0s":"0秒","1 day":"1天","1 hour":"1小时","1 minute":"1分钟","1 month":"1个月","1 week":"1周","1 year":"1年","10 minutes":"10分钟","10 seconds":"10秒钟","10m":"10分钟","10minutes":"结束的10分钟","10s":"10秒钟","12 hours":"12小时","12H":"12小时","12W":"12周","12hours":"结束的12小时","14 days":"14天","15 minutes":"15分钟","15 seconds":"15秒","15m":"15分钟","1D":"1天","1H":"1小时","1M":"1个月","1W":"1星期","1Y":"1年","1hour":"结束小时","1minute":"结束的分钟","1s":"1秒","2 days":"2天","2 hours":"2小时","2 minutes":"2分钟","2 months":"2个月","2 weeks":"2周","2 years":"2年","20 minutes":"20分钟","20 seconds":"20秒","26W":"26周","2D":"2天","2H":"2小时","2M":"2个月","2W":"2个星期","2Y":"2年","2hours":"结束2个小时","2m":"2分钟","2s":"2秒","3 days":"3天","3 hours":"3小时","3 minutes":"3分钟","3 months":"3个月","30 minutes":"30分钟","30 seconds":"30秒","300ms":"300毫秒","30m":"30分钟","30minutes":"30分钟","30s":"30秒","3D":"3天","3M":"3个月","3hours":"结束的3小时","3m":"3分钟","3s":"3秒","4 days":"4天","4 minutes":"4分钟","45 minutes":"45分钟","45m":"45分钟","4D":"4天","4W":"4个星期","4hours":"结束4个小时","4m":"4分钟","5 minutes":"5分钟","5 seconds":"5秒钟","500ms":"500毫秒","5m":"5分钟","5minutes":"结束5分钟","5s":"5秒钟","6 hours":"6小时","6 months":"6个月","60 seconds":"60秒","60s":"60秒","6H":"6小时","6M":"6个月","6hours":"结束的6个小时","7 days":"7天","8W":"8个星期","8hours":"端8个小时","90 seconds":"90秒",Acknowledged:U9t,Add:V9t,"Add line to chart":"向图表添加线","Add marking line to chart":"将标记线添加到图表","Add new line":"添加新的线","Add new markings":"添加新的标记","Add new state name":"添加新州名","Add new value":"增加新价值","After comma":"之后的逗号",Aggregate:q9t,"Aggregate for lines":"线路聚合",Aggregation:G9t,"Aggregation:":"类型:",All:X9t,"Animation:":"动画:",Appearance:J9t,Apply:Y9t,"Are you sure for closing folder and discard unsaved changes?":"您确定要关闭文件夹并放弃未保存的更改吗?","Are you sure for delete this line?":"您确定要删除此行吗?","Are you sure for delete this mark?":"您确定要删除此标记吗?","Are you sure for delete this preset?":"您确定要删除此预设吗?","Are you sure for loading the chart and discard unsaved changes?":"您确定要加载图表并放弃未保存的更改吗?","Are you sure for loading the preset and discard unsaved changes?":"您确定要加载预设并放弃未保存的更改吗?","Arrange bools":"安排布尔",Auto:K9t,"Auto (Line or Steps)":"自动(行或步)","Auto padding":"自动缩进","Auto save":"自动保存","Auto-refresh":"自动刷新","Auto-update:":"自动更新:",Axis:Z9t,"Background of radar chart":"雷达图背景","Background:":"背景:",Backgrounds:Q9t,Bar:e7t,"Bar settings":"酒吧设置","Bars width:":"酒吧宽度:",Border:t7t,"Border color:":"边界颜色:","Border padding":"边框填充","Border width":"边框宽度","Border width:":"边界的宽度:","Bottom, center, inside":"底,中心,里面","Bottom, center, outside":"底,中心,外","Bottom, left":"底,左","Bottom, left, inside":"底,左,内部","Bottom, right":"底,右","Bottom, right, inside":"底,右,内部","Bottom, right, outside":"底,右,外",Cancel:r7t,"Cannot create unique ID":"无法创建唯一 ID","Chart Type":"图表的类型","Chart background":"图表背景","Chart background:":"图背景:","Chart size":"图表大小","Chart type":"图表类型","Charts preview":"图表预览",Circle:n7t,Close:o7t,Collapse:a7t,"Collapse all lines":"收合所有行","Collapse all markings":"收起所有标记",Color:i7t,"Common Y Axis":"共同Y轴","Convert formula":"换算公式",Copy:s7t,"Copy link to clipboard":"复制链接到剪贴板",Counts:l7t,Create:c7t,"Create folder":"创建文件夹","Create new folder":"建立新资料夹","Create new preset":"创建新的预设","Create preset":"创建预设","Custom chart background:":"定制图背景:","Custom time format":"自定义时间格式",Data:d7t,Default:u7t,Delete:p7t,"Delete object":"删除的对象","Delete text value":"删除文本值",Dialog:h7t,"Digits after comma":"逗号后的数字","Drag me":"拉我一把",Edit:f7t,"Edit folder name":"编辑文件夹名称","Edit options for line %s":"编辑的选择行%s","Edit state names":"编辑州名称","Empty preset cannot be saved!":"空预设无法保存!","Enable logging for new state":"启用新状态的日志记录","Enable zoom and pan":"启用缩放和平移","Enable zoom and pan:":"使缩小和锅:",End:m7t,"End:":"结束:","Enter chart name":"该图表的名字",Expand:g7t,"Expand all lines":"展开所有行","Expand all markings":"展开所有标记","Export data color":"导出数据按钮颜色",Fill:v7t,"Fill color:":"填补颜色:","Fill range:":"填补范围:","Fill(0to1)":"填补(0to1)",Folder:y7t,"Font size":"字体大小",From:_7t,"From line %s":"从第%s行",Functions:b7t,Grid:w7t,"Grid color":"网格颜色","Grid color:":"格颜色:","Group by":"通过...分组","HH:MM dd.mm":"HH:MM dd.mm",Height:x7t,"Height:":"高度:","Hide X grid":"隐藏X网格","Hide Y grid":"隐藏Y格","Hide edit button:":"隐藏编辑按钮:","Hide nulls in tooltip":"在工具提示中隐藏空值","Hover details":"悬停详细信息","Hover details:":"悬停的详细信息:",ID:S7t,IDs:C7t,"If the current value is not older than X seconds, assume it is still the same.":"如果当前值不超过X秒,则假定它仍然相同。","In seconds":"马上",Individual:$7t,"Input data":"输入数据","Inside / No lines":"内部/无线","Inside / With lines":"内部/有线","Inside end":"里面,尽头","Inside end bottom":"里面,最后,底部","Inside end top":"在里面,在最后,在上面","Inside middle":"在里面,在中间","Inside middle bottom":"里面,中间,底部","Inside middle top":"里面,中间,顶部","Inside start":"里面,一开始","Inside start bottom":"里面,开始,底部","Inside start top":"里面,开始,在上面",Instance:k7t,"Integral unit":"整体单元","Interpolate:":"插入:","Interpolation method":"插值法",Intervals:E7t,"Invalid object":"无效对象",Label:T7t,"Label color:":"标签颜色:","Label font size:":"签字体大小:",Labels:O7t,"Last changed":"最后改变",Left:D7t,Legend:A7t,"Legend background":"图例背景","Legend background:":"传说背景:","Legend columns:":"图例列:","Legend opacity (from 0 to 1):":"传说不透明(从0至1):","Legend text color":"图例文字颜色",Limits:I7t,Line:M7t,"Line ID":"行ID","Line Width":"线宽度","Line and area":"线和面积","Line style":"线型",Link:P7t,"Live update every":"实时更新","Live update every:":"实时更新每:","Load without save":"载入但不保存","Loading...":"装载...","Lower value or ID":"值较低或身份",Main:N7t,Mark:R7t,Markings:j7t,Max:L7t,"Max:":"最大值:",Members:z7t,"Middle, left, inside":"中间,左,内部","Middle, right, inside":"中间,正确的,里面","Middle, right, outside":"中间,正确的,外",Min:F7t,"Min:":"最低限度:",MinMax:B7t,More:W7t,"Move to folder":"移至文件夹",Multiple:H7t,"NULL as":"NULL作",Name:U7t,"Name:":"名称:","No ID yet":"暂无ID","No background":"没有背景","No border:":"没有边界:","No future":"未来没有任何价值","No interpolate in hover":"工具提示中没有插值","No presets created yet":"尚未创建预设",None:V7t,Offset:q7t,Ok:G7t,Open:X7t,"Open chart in own window":"在自己的窗口中打开图表","Open in own window":"在自己的窗口中打开",Options:J7t,Orientation:Y7t,Others:K7t,"Outside / No lines":"外面/有线","Outside/ With lines":"外面/有线",Paste:Z7t,Percentile:Q7t,Pie:eWt,"Please confirm":"请确认",Points:tWt,Polar:rWt,Polygonal:nWt,"Predefined background:":"预先定义的背景:",Presets:oWt,Processing:aWt,"Processing...":"处理...",Range:iWt,"Range:":"范围:",Relative:sWt,Rename:lWt,"Rename preset":"重命名预设","Reorder presets in folders":"重新排序文件夹中的预设","Reset settings":"重置的设置","Reset zoom after idle":"闲置后重置变焦",Right:cWt,Role:dWt,Room:uWt,Rooms:pWt,Root:hWt,"Save current preset and load":"保存当前预设并加载","Save image button color":"保存图像按钮颜色","Save into:":"节省成:","Scatter plot":"散点图",Seconds:fWt,Select:mWt,"Select ID":"Select ID","Select for":"选择用于","Shadow Size":"影子的尺寸","Show controls":"显示控件","Show export data button":"显示导出数据按钮","Show labels:":"显示标签:","Show legend":"显示图例","Show legend:":"示例:","Show only in legend":"仅在图例中显示","Show points":"显示点","Show save image button":"显示保存图像按钮","Show values":"显示数值",Smoothing:gWt,Source:vWt,Spline:yWt,Stack:_Wt,"Start:":"开始:","State value":"状态值","State value text":"状态值文本","Step span:":"步范围:","Step type":"步骤类型","Step type:":"步骤类型:",Steps:bWt,"Steps on start":"开始步骤",Style:wWt,"System settings":"系统设置的",Text:xWt,"Text X offset":"文本偏 X","Text Y offset":"文本 Y 偏移","Text by false":"假文字","Text by true":"文字真实","Text color":"文字颜色","Text position":"文的位置","Text size":"文字的大小","Text values not used":"未使用文本值",Texts:SWt,Theme:CWt,"This time offset will be added to the X label by displaying data on the chart":"通过在图表上显示数据,此时间偏移量将添加到 X 标签","This time offset will be added to the request by reading data from DB":"该时间偏移量将通过从 DB 读取数据添加到请求中","Ticks from:":"使用X-蜱:",Time:$Wt,"Time Span":"时间跨度","Time format":"时间格式","Time format:":"时间格式:","Time span":"时间跨度","Time stamp":"时间戳",Title:kWt,"Title color":"标题颜色","Title color:":"标题颜色:","Title position":"头衔","Title position:":"标题中的位置:","Title size":"标题大小","Title size:":"标题尺寸:","Title:":"标题:","Top, center, inside":"顶部,中心,里面","Top, left":"顶,左","Top, left, inside":"顶,左,内部","Top, right":"顶部右","Top, right, inside":"上右内侧","Top, right, outside":"上右之外",Type:EWt,Unit:TWt,"Units:":"单位:",Update:OWt,"Update objects":"更新对象","Update states":"更新国家","Upper value or ID":"上值或身份","Use comma":"使用逗号","Use comma:":"使用逗号:","Use state names":"使用州名","User defined":"用户定义的","User defined names:":"用户限定的名称:","Valid time (sec)":"有效时间(秒)",Value:DWt,Width:AWt,"Width:":"宽度:","Window background":"窗口背景","Window background:":"窗口背景:",With:IWt,"With border":"有边框","With lines":"有线",Without:MWt,"Without border":"无国界","Without lines":"无线","X Axis":"X轴","X Axis position":"X轴位置","X axis labels color:":"X标颜色:","X labels color":"X标签颜色","X labels size":"X 字体大小","X ticks color":"X刻度颜色","X-Axis ticks":"X轴蜱","X-Label-Offset":"X 标签偏移","X-Offset":"X偏移","Y Axis":"Y轴","Y Axis position":"Y轴位置","Y axis labels color:":"Y颜色的标签:","Y labels color":"Y标签颜色","Y labels size":"Y字号","Y ticks color":"Y刻度颜色","Y-Axis ticks":"Y轴蜱","Y-Offset":"Y-Offset",'You can create a new markings with a "+" on the right.':"您可以在右侧创建带有“ +”的新标记。","You can drag and drop simple lines from the left list.":"您可以从左侧列表中拖放简单的行。","add children":"添加儿童",area:PWt,auto:NWt,average:RWt,bar:jWt,bottom:LWt,bottomColor:zWt,convert_help:FWt,copied:BWt,copy:WWt,count:HWt,counts:UWt,current:VWt,dashed:qWt,day:GWt,default:"默认的",difference:XWt,dotted:JWt,dow:YWt,edit:KWt,"edit enum":"编辑enum","edit file":"编辑的文件","end of 10 minutes":"结束的10分钟","end of 12 hours":"结束的12小时","end of 2 hours":"结束2个小时","end of 3 hours":"结束的3小时","end of 30 minutes":"30分钟","end of 4 hours":"结束4个小时","end of 5 minutes":"结束5分钟","end of 6 hours":"结束的6个小时","end of 8 hours":"端8个小时","end of day":"结束一天","end of hour":"结束小时","end of minute":"结束的分钟","end of previous saturday":"上周六结束(2周)","end of previous sunday":"上周日结束(2 周)","end of saturday":"结束的星期六","end of sunday":"结束的星期天",false:"空",horizontal:ZWt,i15min:QWt,i1day:eHt,i1hour:tHt,i30days:rHt,"ignore 'null'":"忽略'null'","ignore 'null':":"忽略'null':","ignore null values":"忽略空值",integral:nHt,"last value":"最后一个值",left:oHt,"left colored":"左色",leftColor:aHt,line:iHt,linear:sHt,lineplot:lHt,load:cHt,max:dHt,middle:uHt,min:pHt,minmax:hHt,month:fHt,new:"新的",no:mHt,"no null":"与nbsp;没有空","non-processed":"未加工",none:gHt,none_no:vHt,now:yHt,null:"空",off:_Ht,onchange:bHt,"own axis":"自己的轴",percentile:wHt,polar:xHt,raw:SHt,relative:CHt,reload:$Ht,"restart script":"重新启动脚本",right:kHt,"right colored":"正确的颜色",rightColor:EHt,role:THt,save:OHt,"save %s":"保存%s",scatterplot:DHt,seconds:AHt,solid:IHt,spline:MHt,standard:PHt,static:"静",steps:NHt,"this month":"这个月","this year":"今年",to:RHt,today:jHt,top:LHt,"top over":"顶上","top under":"顶下",topColor:zHt,total:FHt,true:"最后一个值","update Preview":"更新预览","use 0 instead of null values":"使用0,而不是空值",vertical:BHt,weekEurope:WHt,weekUsa:HHt,year:UHt,yes:VHt,ØL:"ØL","ØL - Line thickness":"ØL-线宽","ØL Line thickness":"ØL线宽",ØS:"ØS","ØS - Shadow size":"ØS-阴影尺寸","ØS Shadow size":"ØS阴影尺寸"};var Zn={},Kc={},AS,Fz;function GV(){if(Fz)return AS;Fz=1;var t=typeof xs=="object"&&xs&&xs.Object===Object&&xs;return AS=t,AS}var IS,Bz;function ui(){if(Bz)return IS;Bz=1;var t=GV(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return IS=r,IS}var MS,Wz;function Ff(){if(Wz)return MS;Wz=1;var t=ui(),e=t.Symbol;return MS=e,MS}var PS,Hz;function GHt(){if(Hz)return PS;Hz=1;var t=Ff(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function a(i){var s=r.call(i,o),l=i[o];try{i[o]=void 0;var d=!0}catch{}var h=n.call(i);return d&&(s?i[o]=l:delete i[o]),h}return PS=a,PS}var NS,Uz;function XHt(){if(Uz)return NS;Uz=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return NS=r,NS}var RS,Vz;function nc(){if(Vz)return RS;Vz=1;var t=Ff(),e=GHt(),r=XHt(),n="[object Null]",o="[object Undefined]",a=t?t.toStringTag:void 0;function i(s){return s==null?s===void 0?o:n:a&&a in Object(s)?e(s):r(s)}return RS=i,RS}var jS,qz;function Ma(){if(qz)return jS;qz=1;var t=Array.isArray;return jS=t,jS}var LS,Gz;function Wi(){if(Gz)return LS;Gz=1;function t(e){return e!=null&&typeof e=="object"}return LS=t,LS}var zS,Xz;function JHt(){if(Xz)return zS;Xz=1;var t=nc(),e=Ma(),r=Wi(),n="[object String]";function o(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return zS=o,zS}var FS,Jz;function YHt(){if(Jz)return FS;Jz=1;function t(e){return function(r,n,o){for(var a=-1,i=Object(r),s=o(r),l=s.length;l--;){var d=s[e?l:++a];if(n(i[d],d,i)===!1)break}return r}}return FS=t,FS}var BS,Yz;function KHt(){if(Yz)return BS;Yz=1;var t=YHt(),e=t();return BS=e,BS}var WS,Kz;function ZHt(){if(Kz)return WS;Kz=1;function t(e,r){for(var n=-1,o=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return GS=e,GS}var XS,o6;function tUt(){if(o6)return XS;o6=1;var t=nc(),e=ID(),r=Wi(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",s="[object Error]",l="[object Function]",d="[object Map]",h="[object Number]",u="[object Object]",f="[object RegExp]",g="[object Set]",y="[object String]",b="[object WeakMap]",x="[object ArrayBuffer]",S="[object DataView]",T="[object Float32Array]",E="[object Float64Array]",$="[object Int8Array]",k="[object Int16Array]",O="[object Int32Array]",M="[object Uint8Array]",R="[object Uint8ClampedArray]",j="[object Uint16Array]",I="[object Uint32Array]",z={};z[T]=z[E]=z[$]=z[k]=z[O]=z[M]=z[R]=z[j]=z[I]=!0,z[n]=z[o]=z[x]=z[a]=z[S]=z[i]=z[s]=z[l]=z[d]=z[h]=z[u]=z[f]=z[g]=z[y]=z[b]=!1;function W(L){return r(L)&&e(L.length)&&!!z[t(L)]}return XS=W,XS}var JS,a6;function MD(){if(a6)return JS;a6=1;function t(e){return function(r){return e(r)}}return JS=t,JS}var yh={exports:{}};yh.exports;var i6;function PD(){return i6||(i6=1,function(t,e){var r=GV(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();t.exports=s}(yh,yh.exports)),yh.exports}var YS,s6;function YV(){if(s6)return YS;s6=1;var t=tUt(),e=MD(),r=PD(),n=r&&r.isTypedArray,o=n?e(n):t;return YS=o,YS}var KS,l6;function KV(){if(l6)return KS;l6=1;var t=ZHt(),e=XV(),r=Ma(),n=AD(),o=JV(),a=YV(),i=Object.prototype,s=i.hasOwnProperty;function l(d,h){var u=r(d),f=!u&&e(d),g=!u&&!f&&n(d),y=!u&&!f&&!g&&a(d),b=u||f||g||y,x=b?t(d.length,String):[],S=x.length;for(var T in d)(h||s.call(d,T))&&!(b&&(T=="length"||g&&(T=="offset"||T=="parent")||y&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||o(T,S)))&&x.push(T);return x}return KS=l,KS}var ZS,c6;function ND(){if(c6)return ZS;c6=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return ZS=e,ZS}var QS,d6;function ZV(){if(d6)return QS;d6=1;function t(e,r){return function(n){return e(r(n))}}return QS=t,QS}var eC,u6;function rUt(){if(u6)return eC;u6=1;var t=ZV(),e=t(Object.keys,Object);return eC=e,eC}var tC,p6;function nUt(){if(p6)return tC;p6=1;var t=ND(),e=rUt(),r=Object.prototype,n=r.hasOwnProperty;function o(a){if(!t(a))return e(a);var i=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&i.push(s);return i}return tC=o,tC}var rC,h6;function zu(){if(h6)return rC;h6=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return rC=t,rC}var nC,f6;function QV(){if(f6)return nC;f6=1;var t=nc(),e=zu(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(s){if(!e(s))return!1;var l=t(s);return l==n||l==o||l==r||l==a}return nC=i,nC}var oC,m6;function c_(){if(m6)return oC;m6=1;var t=QV(),e=ID();function r(n){return n!=null&&e(n.length)&&!t(n)}return oC=r,oC}var aC,g6;function Bf(){if(g6)return aC;g6=1;var t=KV(),e=nUt(),r=c_();function n(o){return r(o)?t(o):e(o)}return aC=n,aC}var iC,v6;function eq(){if(v6)return iC;v6=1;var t=KHt(),e=Bf();function r(n,o){return n&&t(n,o,e)}return iC=r,iC}var sC,y6;function tq(){if(y6)return sC;y6=1;function t(e){return e}return sC=t,sC}var lC,_6;function oUt(){if(_6)return lC;_6=1;var t=tq();function e(r){return typeof r=="function"?r:t}return lC=e,lC}var cC,b6;function RD(){if(b6)return cC;b6=1;var t=eq(),e=oUt();function r(n,o){return n&&t(n,e(o))}return cC=r,cC}var dC,w6;function jD(){if(w6)return dC;w6=1;var t=ZV(),e=t(Object.getPrototypeOf,Object);return dC=e,dC}var uC,x6;function aUt(){if(x6)return uC;x6=1;var t=nc(),e=jD(),r=Wi(),n="[object Object]",o=Function.prototype,a=Object.prototype,i=o.toString,s=a.hasOwnProperty,l=i.call(Object);function d(h){if(!r(h)||t(h)!=n)return!1;var u=e(h);if(u===null)return!0;var f=s.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&i.call(f)==l}return uC=d,uC}var pC,S6;function rq(){if(S6)return pC;S6=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,a=Array(o);++n-1}return yC=e,yC}var _C,D6;function dUt(){if(D6)return _C;D6=1;var t=d_();function e(r,n){var o=this.__data__,a=t(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return _C=e,_C}var bC,A6;function u_(){if(A6)return bC;A6=1;var t=iUt(),e=sUt(),r=lUt(),n=cUt(),o=dUt();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++sg))return!1;var b=u.get(i),x=u.get(s);if(b&&x)return b==s&&x==i;var S=-1,T=!0,E=l&o?new t:void 0;for(u.set(i,s),u.set(s,i);++S0&&arguments[0]!==void 0?arguments[0]:[],f=[];return(0,s.default)(u,function(g){Array.isArray(g)?h(g).map(function(y){return f.push(y)}):(0,a.default)(g)?(0,n.default)(g,function(y,b){y===!0&&f.push(b),f.push(b+"-"+y)}):(0,e.default)(g)&&f.push(g)}),f};return Kc.default=d,Kc}var Zc={},G$,a8;function mVt(){if(a8)return G$;a8=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],h=l.default&&(0,n.default)(l.default)||{};return d.map(function(u){var f=l[u];return f&&(0,e.default)(f,function(g,y){h[y]||(h[y]={}),h[y]=o({},h[y],f[y])}),u}),h};return Zc.default=i,Zc}var Qc={},j8;function BVt(){if(j8)return Qc;j8=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.autoprefix=void 0;var t=RD(),e=n(t),r=Object.assign||function(i){for(var s=1;s1&&arguments[1]!==void 0?arguments[1]:"span";return function(u){i(f,u);function f(){var g,y,b,x;o(this,f);for(var S=arguments.length,T=Array(S),E=0;E1&&arguments[1]!==void 0?arguments[1]:"span";return function(u){i(f,u);function f(){var g,y,b,x;o(this,f);for(var S=arguments.length,T=Array(S),E=0;E1&&arguments[1]!==void 0?arguments[1]:!0;o[s]=l};return r===0&&a("first-child"),r===n-1&&a("last-child"),(r===0||r%2===0)&&a("even"),Math.abs(r%2)===1&&a("odd"),a("nth-child",r),o};return Fg.default=t,Fg}var B8;function VVt(){if(B8)return Zn;B8=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.ReactCSS=Zn.loop=Zn.handleActive=Zn.handleHover=Zn.hover=void 0;var t=fVt(),e=f(t),r=FVt(),n=f(r),o=BVt(),a=f(o),i=WVt(),s=f(i),l=HVt(),d=f(l),h=UVt(),u=f(h);function f(y){return y&&y.__esModule?y:{default:y}}Zn.hover=s.default,Zn.handleHover=s.default,Zn.handleActive=d.default,Zn.loop=u.default;var g=Zn.ReactCSS=function(b){for(var x=arguments.length,S=Array(x>1?x-1:0),T=1;Ts?f=1:f=Math.round(u*100/s)/100,r.a!==f)return{h:r.h,s:r.s,l:r.l,a:f,source:"rgb"}}else{var g=void 0;if(h<0?g=0:h>i?g=1:g=Math.round(h*100/i)/100,o!==g)return{h:r.h,s:r.s,l:r.l,a:g,source:"rgb"}}return null},Sk={},GVt=function(e,r,n,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=n*2,a.height=n*2;var i=a.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,a.width,a.height),i.fillStyle=r,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),a.toDataURL()):null},XVt=function(e,r,n,o){var a=e+"-"+r+"-"+n+(o?"-server":"");if(Sk[a])return Sk[a];var i=GVt(e,r,n,o);return Sk[a]=i,i},W8=Object.assign||function(t){for(var e=1;e
',N_t=Number.isNaN||oi.isNaN;function Nt(t){return typeof t=="number"&&!N_t(t)}var Rz=function(e){return e>0&&e<1/0};function TS(t){return typeof t>"u"}function Fl(t){return D2(t)==="object"&&t!==null}var R_t=Object.prototype.hasOwnProperty;function Gd(t){if(!Fl(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&R_t.call(r,"isPrototypeOf")}catch{return!1}}function eo(t){return typeof t=="function"}var j_t=Array.prototype.slice;function FV(t){return Array.from?Array.from(t):j_t.call(t)}function en(t,e){return t&&eo(e)&&(Array.isArray(t)||Nt(t.length)?FV(t).forEach(function(r,n){e.call(t,r,n,t)}):Fl(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var Ir=Object.assign||function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o0&&n.forEach(function(a){Fl(a)&&Object.keys(a).forEach(function(i){e[i]=a[i]})}),e},L_t=/\.\d*(?:0|9){12}\d*$/;function nu(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return L_t.test(t)?Math.round(t*e)/e:t}var z_t=/^width|height|left|top|marginLeft|marginTop$/;function $s(t,e){var r=t.style;en(e,function(n,o){z_t.test(o)&&Nt(n)&&(n="".concat(n,"px")),r[o]=n})}function F_t(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function dn(t,e){if(e){if(Nt(t.length)){en(t,function(n){dn(n,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?r.indexOf(e)<0&&(t.className="".concat(r," ").concat(e)):t.className=e}}function ti(t,e){if(e){if(Nt(t.length)){en(t,function(r){ti(r,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function Xd(t,e,r){if(e){if(Nt(t.length)){en(t,function(n){Xd(n,e,r)});return}r?dn(t,e):ti(t,e)}}var B_t=/([a-z\d])([A-Z])/g;function DD(t){return t.replace(B_t,"$1-$2").toLowerCase()}function z2(t,e){return Fl(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(DD(e)))}function hf(t,e,r){Fl(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(DD(e)),r)}function W_t(t,e){if(Fl(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(DD(e)))}var BV=/\s\s*/,WV=function(){var t=!1;if(l_){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(a){e=a}});oi.addEventListener("test",r,n),oi.removeEventListener("test",r,n)}return t}();function fa(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(BV).forEach(function(a){if(!WV){var i=t.listeners;i&&i[a]&&i[a][r]&&(o=i[a][r],delete i[a][r],Object.keys(i[a]).length===0&&delete i[a],Object.keys(i).length===0&&delete t.listeners)}t.removeEventListener(a,o,n)})}function Bo(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(BV).forEach(function(a){if(n.once&&!WV){var i=t.listeners,s=i===void 0?{}:i;o=function(){delete s[a][r],t.removeEventListener(a,o,n);for(var d=arguments.length,h=new Array(d),u=0;uMath.abs(r)&&(r=f)})}),r}function zg(t,e){var r=t.pageX,n=t.pageY,o={endX:r,endY:n};return e?o:DV({startX:r,startY:n},o)}function V_t(t){var e=0,r=0,n=0;return en(t,function(o){var a=o.startX,i=o.startY;e+=a,r+=i,n+=1}),e/=n,r/=n,{pageX:e,pageY:r}}function ks(t){var e=t.aspectRatio,r=t.height,n=t.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",a=Rz(n),i=Rz(r);if(a&&i){var s=r*e;o==="contain"&&s>n||o==="cover"&&s90?{width:l,height:s}:{width:s,height:l}}function G_t(t,e,r,n){var o=e.aspectRatio,a=e.naturalWidth,i=e.naturalHeight,s=e.rotate,l=s===void 0?0:s,d=e.scaleX,h=d===void 0?1:d,u=e.scaleY,f=u===void 0?1:u,g=r.aspectRatio,y=r.naturalWidth,b=r.naturalHeight,x=n.fillColor,S=x===void 0?"transparent":x,T=n.imageSmoothingEnabled,E=T===void 0?!0:T,$=n.imageSmoothingQuality,k=$===void 0?"low":$,O=n.maxWidth,M=O===void 0?1/0:O,R=n.maxHeight,j=R===void 0?1/0:R,I=n.minWidth,z=I===void 0?0:I,W=n.minHeight,L=W===void 0?0:W,F=document.createElement("canvas"),H=F.getContext("2d"),q=ks({aspectRatio:g,width:M,height:j}),ee=ks({aspectRatio:g,width:z,height:L},"cover"),Y=Math.min(q.width,Math.max(ee.width,y)),G=Math.min(q.height,Math.max(ee.height,b)),te=ks({aspectRatio:o,width:M,height:j}),B=ks({aspectRatio:o,width:z,height:L},"cover"),K=Math.min(te.width,Math.max(B.width,a)),he=Math.min(te.height,Math.max(B.height,i)),fe=[-K/2,-he/2,K,he];return F.width=nu(Y),F.height=nu(G),H.fillStyle=S,H.fillRect(0,0,Y,G),H.save(),H.translate(Y/2,G/2),H.rotate(l*Math.PI/180),H.scale(h,f),H.imageSmoothingEnabled=E,H.imageSmoothingQuality=k,H.drawImage.apply(H,[t].concat(IV(fe.map(function(ge){return Math.floor(nu(ge))})))),H.restore(),F}var UV=String.fromCharCode;function X_t(t,e,r){var n="";r+=e;for(var o=e;o0;)r.push(UV.apply(null,FV(o.subarray(0,n)))),o=o.subarray(n);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}function Z_t(t){var e=new DataView(t),r;try{var n,o,a;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var i=e.byteLength,s=2;s+1=8&&(a=d+u)}}}if(a){var f=e.getUint16(a,n),g,y;for(y=0;y=0?a:LV),height:Math.max(n.offsetHeight,i>=0?i:zV)};this.containerData=s,$s(o,{width:s.width,height:s.height}),dn(e,to),ti(o,to)},initCanvas:function(){var e=this.containerData,r=this.imageData,n=this.options.viewMode,o=Math.abs(r.rotate)%180===90,a=o?r.naturalHeight:r.naturalWidth,i=o?r.naturalWidth:r.naturalHeight,s=a/i,l=e.width,d=e.height;e.height*s>e.width?n===3?l=e.height*s:d=e.width/s:n===3?d=e.width/s:l=e.height*s;var h={aspectRatio:s,naturalWidth:a,naturalHeight:i,width:l,height:d};this.canvasData=h,this.limited=n===1||n===2,this.limitCanvas(!0,!0),h.width=Math.min(Math.max(h.width,h.minWidth),h.maxWidth),h.height=Math.min(Math.max(h.height,h.minHeight),h.maxHeight),h.left=(e.width-h.width)/2,h.top=(e.height-h.height)/2,h.oldLeft=h.left,h.oldTop=h.top,this.initialCanvasData=Ir({},h)},limitCanvas:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,i=this.cropBoxData,s=n.viewMode,l=a.aspectRatio,d=this.cropped&&i;if(e){var h=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;s>1?(h=Math.max(h,o.width),u=Math.max(u,o.height),s===3&&(u*l>h?h=u*l:u=h/l)):s>0&&(h?h=Math.max(h,d?i.width:0):u?u=Math.max(u,d?i.height:0):d&&(h=i.width,u=i.height,u*l>h?h=u*l:u=h/l));var f=ks({aspectRatio:l,width:h,height:u});h=f.width,u=f.height,a.minWidth=h,a.minHeight=u,a.maxWidth=1/0,a.maxHeight=1/0}if(r)if(s>(d?0:1)){var g=o.width-a.width,y=o.height-a.height;a.minLeft=Math.min(0,g),a.minTop=Math.min(0,y),a.maxLeft=Math.max(0,g),a.maxTop=Math.max(0,y),d&&this.limited&&(a.minLeft=Math.min(i.left,i.left+(i.width-a.width)),a.minTop=Math.min(i.top,i.top+(i.height-a.height)),a.maxLeft=i.left,a.maxTop=i.top,s===2&&(a.width>=o.width&&(a.minLeft=Math.min(0,g),a.maxLeft=Math.max(0,g)),a.height>=o.height&&(a.minTop=Math.min(0,y),a.maxTop=Math.max(0,y))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=o.width,a.maxTop=o.height},renderCanvas:function(e,r){var n=this.canvasData,o=this.imageData;if(r){var a=q_t({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),i=a.width,s=a.height,l=n.width*(i/n.naturalWidth),d=n.height*(s/n.naturalHeight);n.left-=(l-n.width)/2,n.top-=(d-n.height)/2,n.width=l,n.height=d,n.aspectRatio=i/s,n.naturalWidth=i,n.naturalHeight=s,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heightr.width?a.height=a.width/n:a.width=a.height*n),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*o),a.height=Math.max(a.minHeight,a.height*o),a.left=r.left+(r.width-a.width)/2,a.top=r.top+(r.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=Ir({},a)},limitCropBox:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,i=this.cropBoxData,s=this.limited,l=n.aspectRatio;if(e){var d=Number(n.minCropBoxWidth)||0,h=Number(n.minCropBoxHeight)||0,u=s?Math.min(o.width,a.width,a.width+a.left,o.width-a.left):o.width,f=s?Math.min(o.height,a.height,a.height+a.top,o.height-a.top):o.height;d=Math.min(d,o.width),h=Math.min(h,o.height),l&&(d&&h?h*l>d?h=d/l:d=h*l:d?h=d/l:h&&(d=h*l),f*l>u?f=u/l:u=f*l),i.minWidth=Math.min(d,u),i.minHeight=Math.min(h,f),i.maxWidth=u,i.maxHeight=f}r&&(s?(i.minLeft=Math.max(0,a.left),i.minTop=Math.max(0,a.top),i.maxLeft=Math.min(o.width,a.left+a.width)-i.width,i.maxTop=Math.min(o.height,a.top+a.height)-i.height):(i.minLeft=0,i.minTop=0,i.maxLeft=o.width-i.width,i.maxTop=o.height-i.height))},renderCropBox:function(){var e=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=r.width&&n.height>=r.height?PV:TD),$s(this.cropBox,Ir({width:n.width,height:n.height},Rh({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),ou(this.element,P2,this.getData())}},t0t={initPreview:function(){var e=this.element,r=this.crossOrigin,n=this.options.preview,o=r?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",i=document.createElement("img");if(r&&(i.crossOrigin=r),i.src=o,i.alt=a,this.viewBox.appendChild(i),this.viewBoxImage=i,!!n){var s=n;typeof n=="string"?s=e.ownerDocument.querySelectorAll(n):n.querySelector&&(s=[n]),this.previews=s,en(s,function(l){var d=document.createElement("img");hf(l,Lg,{width:l.offsetWidth,height:l.offsetHeight,html:l.innerHTML}),r&&(d.crossOrigin=r),d.src=o,d.alt=a,d.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;"',l.innerHTML="",l.appendChild(d)})}},resetPreview:function(){en(this.previews,function(e){var r=z2(e,Lg);$s(e,{width:r.width,height:r.height}),e.innerHTML=r.html,W_t(e,Lg)})},preview:function(){var e=this.imageData,r=this.canvasData,n=this.cropBoxData,o=n.width,a=n.height,i=e.width,s=e.height,l=n.left-r.left-e.left,d=n.top-r.top-e.top;!this.cropped||this.disabled||($s(this.viewBoxImage,Ir({width:i,height:s},Rh(Ir({translateX:-l,translateY:-d},e)))),en(this.previews,function(h){var u=z2(h,Lg),f=u.width,g=u.height,y=f,b=g,x=1;o&&(x=f/o,b=a*x),a&&b>g&&(x=g/a,y=o*x,b=g),$s(h,{width:y,height:b}),$s(h.getElementsByTagName("img")[0],Ir({width:i*x,height:s*x},Rh(Ir({translateX:-l*x,translateY:-d*x},e))))}))}},r0t={bind:function(){var e=this.element,r=this.options,n=this.cropper;eo(r.cropstart)&&Bo(e,j2,r.cropstart),eo(r.cropmove)&&Bo(e,R2,r.cropmove),eo(r.cropend)&&Bo(e,N2,r.cropend),eo(r.crop)&&Bo(e,P2,r.crop),eo(r.zoom)&&Bo(e,L2,r.zoom),Bo(n,Tz,this.onCropStart=this.cropStart.bind(this)),r.zoomable&&r.zoomOnWheel&&Bo(n,Mz,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&Bo(n,Ez,this.onDblclick=this.dblclick.bind(this)),Bo(e.ownerDocument,Oz,this.onCropMove=this.cropMove.bind(this)),Bo(e.ownerDocument,Dz,this.onCropEnd=this.cropEnd.bind(this)),r.responsive&&Bo(window,Iz,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,r=this.options,n=this.cropper;eo(r.cropstart)&&fa(e,j2,r.cropstart),eo(r.cropmove)&&fa(e,R2,r.cropmove),eo(r.cropend)&&fa(e,N2,r.cropend),eo(r.crop)&&fa(e,P2,r.crop),eo(r.zoom)&&fa(e,L2,r.zoom),fa(n,Tz,this.onCropStart),r.zoomable&&r.zoomOnWheel&&fa(n,Mz,this.onWheel,{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&fa(n,Ez,this.onDblclick),fa(e.ownerDocument,Oz,this.onCropMove),fa(e.ownerDocument,Dz,this.onCropEnd),r.responsive&&fa(window,Iz,this.onResize)}},n0t={resize:function(){if(!this.disabled){var e=this.options,r=this.container,n=this.containerData,o=r.offsetWidth/n.width,a=r.offsetHeight/n.height,i=Math.abs(o-1)>Math.abs(a-1)?o:a;if(i!==1){var s,l;e.restore&&(s=this.getCanvasData(),l=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(en(s,function(d,h){s[h]=d*i})),this.setCropBoxData(en(l,function(d,h){l[h]=d*i})))}}},dblclick:function(){this.disabled||this.options.dragMode===jV||this.setDragMode(F_t(this.dragBox,I2)?RV:OD)},wheel:function(e){var r=this,n=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50),e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*n,e)))},cropStart:function(e){var r=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(Nt(r)&&r!==1||Nt(n)&&n!==0||e.ctrlKey))){var o=this.options,a=this.pointers,i;e.changedTouches?en(e.changedTouches,function(s){a[s.identifier]=zg(s)}):a[e.pointerId||0]=zg(e),Object.keys(a).length>1&&o.zoomable&&o.zoomOnTouch?i=NV:i=z2(e.target,pf),D_t.test(i)&&ou(this.element,j2,{originalEvent:e,action:i})!==!1&&(e.preventDefault(),this.action=i,this.cropping=!1,i===MV&&(this.cropping=!0,dn(this.dragBox,Xv)))}},cropMove:function(e){var r=this.action;if(!(this.disabled||!r)){var n=this.pointers;e.preventDefault(),ou(this.element,R2,{originalEvent:e,action:r})!==!1&&(e.changedTouches?en(e.changedTouches,function(o){Ir(n[o.identifier]||{},zg(o,!0))}):Ir(n[e.pointerId||0]||{},zg(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var r=this.action,n=this.pointers;e.changedTouches?en(e.changedTouches,function(o){delete n[o.identifier]}):delete n[e.pointerId||0],r&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Xd(this.dragBox,Xv,this.cropped&&this.options.modal)),ou(this.element,N2,{originalEvent:e,action:r}))}}},o0t={change:function(e){var r=this.options,n=this.canvasData,o=this.containerData,a=this.cropBoxData,i=this.pointers,s=this.action,l=r.aspectRatio,d=a.left,h=a.top,u=a.width,f=a.height,g=d+u,y=h+f,b=0,x=0,S=o.width,T=o.height,E=!0,$;!l&&e.shiftKey&&(l=u&&f?u/f:1),this.limited&&(b=a.minLeft,x=a.minTop,S=b+Math.min(o.width,n.width,n.left+n.width),T=x+Math.min(o.height,n.height,n.top+n.height));var k=i[Object.keys(i)[0]],O={x:k.endX-k.startX,y:k.endY-k.startY},M=function(j){switch(j){case dl:g+O.x>S&&(O.x=S-g);break;case ul:d+O.xT&&(O.y=T-y);break}};switch(s){case TD:d+=O.x,h+=O.y;break;case dl:if(O.x>=0&&(g>=S||l&&(h<=x||y>=T))){E=!1;break}M(dl),u+=O.x,u<0&&(s=ul,u=-u,d-=u),l&&(f=u/l,h+=(a.height-f)/2);break;case hs:if(O.y<=0&&(h<=x||l&&(d<=b||g>=S))){E=!1;break}M(hs),f-=O.y,h+=O.y,f<0&&(s=Yc,f=-f,h-=f),l&&(u=f*l,d+=(a.width-u)/2);break;case ul:if(O.x<=0&&(d<=b||l&&(h<=x||y>=T))){E=!1;break}M(ul),u-=O.x,d+=O.x,u<0&&(s=dl,u=-u,d-=u),l&&(f=u/l,h+=(a.height-f)/2);break;case Yc:if(O.y>=0&&(y>=T||l&&(d<=b||g>=S))){E=!1;break}M(Yc),f+=O.y,f<0&&(s=hs,f=-f,h-=f),l&&(u=f*l,d+=(a.width-u)/2);break;case Up:if(l){if(O.y<=0&&(h<=x||g>=S)){E=!1;break}M(hs),f-=O.y,h+=O.y,u=f*l}else M(hs),M(dl),O.x>=0?gx&&(f-=O.y,h+=O.y):(f-=O.y,h+=O.y);u<0&&f<0?(s=Gp,f=-f,u=-u,h-=f,d-=u):u<0?(s=Vp,u=-u,d-=u):f<0&&(s=qp,f=-f,h-=f);break;case Vp:if(l){if(O.y<=0&&(h<=x||d<=b)){E=!1;break}M(hs),f-=O.y,h+=O.y,u=f*l,d+=a.width-u}else M(hs),M(ul),O.x<=0?d>b?(u-=O.x,d+=O.x):O.y<=0&&h<=x&&(E=!1):(u-=O.x,d+=O.x),O.y<=0?h>x&&(f-=O.y,h+=O.y):(f-=O.y,h+=O.y);u<0&&f<0?(s=qp,f=-f,u=-u,h-=f,d-=u):u<0?(s=Up,u=-u,d-=u):f<0&&(s=Gp,f=-f,h-=f);break;case Gp:if(l){if(O.x<=0&&(d<=b||y>=T)){E=!1;break}M(ul),u-=O.x,d+=O.x,f=u/l}else M(Yc),M(ul),O.x<=0?d>b?(u-=O.x,d+=O.x):O.y>=0&&y>=T&&(E=!1):(u-=O.x,d+=O.x),O.y>=0?y=0&&(g>=S||y>=T)){E=!1;break}M(dl),u+=O.x,f=u/l}else M(Yc),M(dl),O.x>=0?g=0&&y>=T&&(E=!1):u+=O.x,O.y>=0?y0?s=O.y>0?qp:Up:O.x<0&&(d-=u,s=O.y>0?Gp:Vp),O.y<0&&(h-=f),this.cropped||(ti(this.cropBox,to),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}E&&(a.width=u,a.height=f,a.left=d,a.top=h,this.action=s,this.renderCropBox()),en(i,function(R){R.startX=R.endX,R.startY=R.endY})}},a0t={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&dn(this.dragBox,Xv),ti(this.cropBox,to),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Ir({},this.initialImageData),this.canvasData=Ir({},this.initialCanvasData),this.cropBoxData=Ir({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Ir(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),ti(this.dragBox,Xv),dn(this.cropBox,to)),this},replace:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),r?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,en(this.previews,function(n){n.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,ti(this.cropper,$z)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,dn(this.cropper,$z)),this},destroy:function(){var e=this.element;return e[kr]?(e[kr]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=n.left,a=n.top;return this.moveTo(TS(e)?e:o+Number(e),TS(r)?r:a+Number(r))},moveTo:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.movable&&(Nt(e)&&(n.left=e,o=!0),Nt(r)&&(n.top=r,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(e,r){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,r)},zoomTo:function(e,r,n){var o=this.options,a=this.canvasData,i=a.width,s=a.height,l=a.naturalWidth,d=a.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&o.zoomable){var h=l*e,u=d*e;if(ou(this.element,L2,{ratio:e,oldRatio:i/l,originalEvent:n})===!1)return this;if(n){var f=this.pointers,g=HV(this.cropper),y=f&&Object.keys(f).length?V_t(f):{pageX:n.pageX,pageY:n.pageY};a.left-=(h-i)*((y.pageX-g.left-a.left)/i),a.top-=(u-s)*((y.pageY-g.top-a.top)/s)}else Gd(r)&&Nt(r.x)&&Nt(r.y)?(a.left-=(h-i)*((r.x-a.left)/i),a.top-=(u-s)*((r.y-a.top)/s)):(a.left-=(h-i)/2,a.top-=(u-s)/2);a.width=h,a.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),Nt(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var r=this.imageData.scaleY;return this.scale(e,Nt(r)?r:1)},scaleY:function(e){var r=this.imageData.scaleX;return this.scale(Nt(r)?r:1,e)},scale:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.scalable&&(Nt(e)&&(n.scaleX=e,o=!0),Nt(r)&&(n.scaleY=r,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.options,n=this.imageData,o=this.canvasData,a=this.cropBoxData,i;if(this.ready&&this.cropped){i={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height};var s=n.width/n.naturalWidth;if(en(i,function(h,u){i[u]=h/s}),e){var l=Math.round(i.y+i.height),d=Math.round(i.x+i.width);i.x=Math.round(i.x),i.y=Math.round(i.y),i.width=d-i.x,i.height=l-i.y}}else i={x:0,y:0,width:0,height:0};return r.rotatable&&(i.rotate=n.rotate||0),r.scalable&&(i.scaleX=n.scaleX||1,i.scaleY=n.scaleY||1),i},setData:function(e){var r=this.options,n=this.imageData,o=this.canvasData,a={};if(this.ready&&!this.disabled&&Gd(e)){var i=!1;r.rotatable&&Nt(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,i=!0),r.scalable&&(Nt(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,i=!0),Nt(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,i=!0)),i&&this.renderCanvas(!0,!0);var s=n.width/n.naturalWidth;Nt(e.x)&&(a.left=e.x*s+o.left),Nt(e.y)&&(a.top=e.y*s+o.top),Nt(e.width)&&(a.width=e.width*s),Nt(e.height)&&(a.height=e.height*s),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?Ir({},this.containerData):{}},getImageData:function(){return this.sized?Ir({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,r={};return this.ready&&en(["left","top","width","height","naturalWidth","naturalHeight"],function(n){r[n]=e[n]}),r},setCanvasData:function(e){var r=this.canvasData,n=r.aspectRatio;return this.ready&&!this.disabled&&Gd(e)&&(Nt(e.left)&&(r.left=e.left),Nt(e.top)&&(r.top=e.top),Nt(e.width)?(r.width=e.width,r.height=e.width/n):Nt(e.height)&&(r.height=e.height,r.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,r;return this.ready&&this.cropped&&(r={left:e.left,top:e.top,width:e.width,height:e.height}),r||{}},setCropBoxData:function(e){var r=this.cropBoxData,n=this.options.aspectRatio,o,a;return this.ready&&this.cropped&&!this.disabled&&Gd(e)&&(Nt(e.left)&&(r.left=e.left),Nt(e.top)&&(r.top=e.top),Nt(e.width)&&e.width!==r.width&&(o=!0,r.width=e.width),Nt(e.height)&&e.height!==r.height&&(a=!0,r.height=e.height),n&&(o?r.height=r.width/n:a&&(r.width=r.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 r=this.canvasData,n=G_t(this.image,this.imageData,r,e);if(!this.cropped)return n;var o=this.getData(e.rounded),a=o.x,i=o.y,s=o.width,l=o.height,d=n.width/Math.floor(r.naturalWidth);d!==1&&(a*=d,i*=d,s*=d,l*=d);var h=s/l,u=ks({aspectRatio:h,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),f=ks({aspectRatio:h,width:e.minWidth||0,height:e.minHeight||0},"cover"),g=ks({aspectRatio:h,width:e.width||(d!==1?n.width:s),height:e.height||(d!==1?n.height:l)}),y=g.width,b=g.height;y=Math.min(u.width,Math.max(f.width,y)),b=Math.min(u.height,Math.max(f.height,b));var x=document.createElement("canvas"),S=x.getContext("2d");x.width=nu(y),x.height=nu(b),S.fillStyle=e.fillColor||"transparent",S.fillRect(0,0,y,b);var T=e.imageSmoothingEnabled,E=T===void 0?!0:T,$=e.imageSmoothingQuality;S.imageSmoothingEnabled=E,$&&(S.imageSmoothingQuality=$);var k=n.width,O=n.height,M=a,R=i,j,I,z,W,L,F;M<=-s||M>k?(M=0,j=0,z=0,L=0):M<=0?(z=-M,M=0,j=Math.min(k,s+M),L=j):M<=k&&(z=0,j=Math.min(s,k-M),L=j),j<=0||R<=-l||R>O?(R=0,I=0,W=0,F=0):R<=0?(W=-R,R=0,I=Math.min(O,l+R),F=I):R<=O&&(W=0,I=Math.min(l,O-R),F=I);var H=[M,R,j,I];if(L>0&&F>0){var q=y/s;H.push(z*q,W*q,L*q,F*q)}return S.drawImage.apply(S,[n].concat(IV(H.map(function(ee){return Math.floor(nu(ee))})))),x},setAspectRatio:function(e){var r=this.options;return!this.disabled&&!TS(e)&&(r.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var r=this.options,n=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var a=e===OD,i=r.movable&&e===RV;e=a||i?e:jV,r.dragMode=e,hf(n,pf,e),Xd(n,I2,a),Xd(n,M2,i),r.cropBoxMovable||(hf(o,pf,e),Xd(o,I2,a),Xd(o,M2,i))}return this}},i0t=oi.Cropper,VV=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(__t(this,t),!e||!M_t.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=Ir({},Nz,Gd(r)&&r),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 b_t(t,[{key:"init",value:function(){var r=this.element,n=r.tagName.toLowerCase(),o;if(!r[kr]){if(r[kr]=this,n==="img"){if(this.isImg=!0,o=r.getAttribute("src")||"",this.originalUrl=o,!o)return;o=r.src}else n==="canvas"&&window.HTMLCanvasElement&&(o=r.toDataURL());this.load(o)}}},{key:"load",value:function(r){var n=this;if(r){this.url=r,this.imageData={};var o=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(A_t.test(r)){I_t.test(r)?this.read(Y_t(r)):this.clone();return}var i=new XMLHttpRequest,s=this.clone.bind(this);this.reloading=!0,this.xhr=i,i.onabort=s,i.onerror=s,i.ontimeout=s,i.onprogress=function(){i.getResponseHeader("content-type")!==Pz&&i.abort()},i.onload=function(){n.read(i.response)},i.onloadend=function(){n.reloading=!1,n.xhr=null},a.checkCrossOrigin&&jz(r)&&o.crossOrigin&&(r=Lz(r)),i.open("GET",r,!0),i.responseType="arraybuffer",i.withCredentials=o.crossOrigin==="use-credentials",i.send()}}},{key:"read",value:function(r){var n=this.options,o=this.imageData,a=Z_t(r),i=0,s=1,l=1;if(a>1){this.url=K_t(r,Pz);var d=Q_t(a);i=d.rotate,s=d.scaleX,l=d.scaleY}n.rotatable&&(o.rotate=i),n.scalable&&(o.scaleX=s,o.scaleY=l),this.clone()}},{key:"clone",value:function(){var r=this.element,n=this.url,o=r.crossOrigin,a=n;this.options.checkCrossOrigin&&jz(n)&&(o||(o="anonymous"),a=Lz(n)),this.crossOrigin=o,this.crossOriginUrl=a;var i=document.createElement("img");o&&(i.crossOrigin=o),i.src=a||n,i.alt=r.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),dn(i,kz),r.parentNode.insertBefore(i,r.nextSibling)}},{key:"start",value:function(){var r=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var o=oi.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(oi.navigator.userAgent),a=function(d,h){Ir(r.imageData,{naturalWidth:d,naturalHeight:h,aspectRatio:d/h}),r.initialImageData=Ir({},r.imageData),r.sizing=!1,r.sized=!0,r.build()};if(n.naturalWidth&&!o){a(n.naturalWidth,n.naturalHeight);return}var i=document.createElement("img"),s=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){a(i.width,i.height),o||s.removeChild(i)},i.src=n.src,o||(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;",s.appendChild(i))}},{key:"stop",value:function(){var r=this.image;r.onload=null,r.onerror=null,r.parentNode.removeChild(r),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var r=this.element,n=this.options,o=this.image,a=r.parentNode,i=document.createElement("div");i.innerHTML=P_t;var s=i.querySelector(".".concat(kr,"-container")),l=s.querySelector(".".concat(kr,"-canvas")),d=s.querySelector(".".concat(kr,"-drag-box")),h=s.querySelector(".".concat(kr,"-crop-box")),u=h.querySelector(".".concat(kr,"-face"));this.container=a,this.cropper=s,this.canvas=l,this.dragBox=d,this.cropBox=h,this.viewBox=s.querySelector(".".concat(kr,"-view-box")),this.face=u,l.appendChild(o),dn(r,to),a.insertBefore(s,r.nextSibling),ti(o,kz),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,dn(h,to),n.guides||dn(h.getElementsByClassName("".concat(kr,"-dashed")),to),n.center||dn(h.getElementsByClassName("".concat(kr,"-center")),to),n.background&&dn(s,"".concat(kr,"-bg")),n.highlight||dn(u,k_t),n.cropBoxMovable&&(dn(u,M2),hf(u,pf,TD)),n.cropBoxResizable||(dn(h.getElementsByClassName("".concat(kr,"-line")),to),dn(h.getElementsByClassName("".concat(kr,"-point")),to)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),eo(n.ready)&&Bo(r,Az,n.ready,{once:!0}),ou(r,Az)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var r=this.cropper.parentNode;r&&r.removeChild(this.cropper),ti(this.element,to)}}},{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=i0t,t}},{key:"setDefaults",value:function(r){Ir(Nz,Gd(r)&&r)}}])}();Ir(VV.prototype,e0t,t0t,r0t,n0t,o0t,a0t);var vl=function(){return vl=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&R.zoomTo(ee)}(M.currentTarget.cropper,E),x&&x(M)}}));S&&S(O)}return function(){var M,R;(R=(M=$.current)===null||M===void 0?void 0:M.cropper)===null||R===void 0||R.destroy()}},[$]);var k=function(O){return s0t.reduce(function(M,R){var j=M,I=R;return j[I],DS(j,[typeof I=="symbol"?I:I+""])},O)}(vl(vl({},T),{crossOrigin:l,src:a,alt:b}));return m.createElement("div",{style:i,className:s},m.createElement("img",vl({},k,{style:l0t,ref:$})))});const fs={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},c0t={once:"once",interval:"interval",intervalBetween:"intervalBetween",specific:"specific"},Tn={seconds:"seconds",minutes:"minutes"},zz=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function Xa(t){return t<10?`0${t}`:`${t}`}const d0t={mode:"interval",interval:{period:1,unit:Tn.minutes}};function av(t){if(t==="*")return[0,1,2,3,4,5,6];const e=t.split(","),r=[];return e.forEach(n=>{const o=n.split("-");if(o.length===2){const a=parseInt(o[0],10),i=parseInt(o[1],10);for(let s=a;s<=i;s++)r.includes(s===7?0:s)||r.push(s===7?0:s)}else{n==="7"&&(n="0");const a=parseInt(n,10);r.includes(a)||r.push(a)}}),r.sort(),r}function qV(t,e){t=t.replace(/['"]/g,"").trim();const r=t.split(" ");let n,o=null;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",date:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:null,minutes:r[0]||"*",hours:r[1]||"*",date:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n.seconds===null&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)&&(o={mode:"interval",interval:{period:1,unit:Tn.minutes}}),n.seconds==="*"&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:1,unit:Tn.seconds}}:n.seconds===null&&n.minutes.includes("/")&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.minutes.split("/")[1],10),unit:Tn.minutes}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.seconds.split("/")[1],10),unit:Tn.seconds}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.seconds.split("/")[1],10),unit:Tn.seconds,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:av(n.dow)}}:n.seconds===null&&n.minutes.includes("/")&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.minutes.split("/")[1],10),unit:Tn.minutes,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:av(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"specific",specific:{time:`${Xa(parseInt(n.hours,10))}:${Xa(parseInt(n.minutes,10))}`,weekdays:av(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&parseInt(n.date,10).toString()===n.date&&parseInt(n.months,10).toString()===n.months&&(n.dow==="*"||e)&&(o={mode:"once",once:{time:`${Xa(parseInt(n.hours,10))}:${Xa(parseInt(n.minutes,10))}`,date:`${Xa(parseInt(n.date,10))}.${Xa(parseInt(n.months,10))}`}}),o}class ff extends m.Component{constructor(e){super(e);let r=typeof e.cronExpression=="string"?e.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";r[0]==="{"&&(r="");const n=qV(r||"* * * * *",!0)||d0t;this.state={extended:!1,cron:ff.state2cron(n),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:Tn.minutes},intervalBetween:{period:1,unit:Tn.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,n),this.state.cron!==e.cronExpression&&setTimeout(()=>e.onChange&&e.onChange(this.state.cron),100)}static periodArray2text(e,r=7){if(r=r||7,e.length===r)return"*";const n=[];let o=null,a=null;if(!e.length)return"_";for(let i=0;i60&&(n.period=60),n.period!==void 0&&n.period<1&&(n.period=1),n.minutes!==void 0&&n.minutes!==null&&n.minutes>60&&(n.minutes=60),n.minutes!==void 0&&n.minutes!==null&&n.minutes<1&&(n.minutes=1),n.hours!==void 0&&n.hours!==null&&n.hours>24&&(n.hours=24),n.hours!==void 0&&n.hours!==null&&n.hours<1&&(n.hours=1),e.extended)r=`${n.minutes!==void 0&&n.minutes!==null&&n.minutes>1?`*/${n.minutes}`:"*"} ${n.hours!==void 0&&n.hours!==null&&n.hours>1?`*/${n.hours}`:"*"} * * *`;else switch(n.unit){case Tn.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * * * * *`;break;case Tn.minutes:r=`${n.period>1?`*/${n.period}`:"*"} * * * *`;break}}else if(e.mode==="intervalBetween"){const n=e.intervalBetween||{period:1,unit:Tn.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let o;switch(n.timeFrom=n.timeFrom||0,n.timeTo=n.timeTo===void 0?24:n.timeTo,n.timeFrom!==0&&n.timeTo===24&&(n.timeTo=23),n.timeFrom===0&&n.timeTo===24?o="*":o=n.timeFrom!==n.timeTo?`${n.timeFrom}-${n.timeTo}`:"*",n.period>60&&(n.period=60),n.period<1&&(n.period=1),n.unit=n.unit||Tn.minutes,n.unit){case Tn.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * ${o} * * ${this.periodArray2text(n.weekdays)}`;break;case Tn.minutes:r=`${n.period>1?`*/${n.period}`:"*"} ${o} * * ${this.periodArray2text(n.weekdays)}`;break}}else if(e.mode==="specific"){const n=e.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},o=(n.time||"00:00").split(":");let a=parseInt(o[1],10)||0;a>59&&(a=59),a<0&&(a=0);let i=parseInt(o[0],10)||0;i>23&&(i=59),i<0&&(i=0),r=`${a} ${i} * * ${this.periodArray2text(n.weekdays||[])}`}else if(e.mode==="once"){const n=e.once||{time:"00:00",date:""};n.date||(n.date=`${new Date().getDate()}.${Xa(new Date().getMonth()+1)}`);const o=(n.time||"00:00").split(":"),a=n.date.split(".");let i=parseInt(o[1],10)||0;i>59&&(i=59),i<0&&(i=0);let s=parseInt(o[0],10)||0;s>23&&(s=59),s<0&&(s=0);let l=parseInt(a[0],10)||1;l>31&&(l=31),l<1&&(s=1);let d=parseInt(a[1],10)||1;d>12&&(d=12),d<1&&(d=1),r=`${i} ${s} ${l} ${d} *`}return r}recalcCron(){this.onChange(ff.state2cron(this.state))}getControlsWeekdaysElements(e){const r=e==="intervalBetween"?this.state.intervalBetween:this.state.specific;return m.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},m.createElement("h5",null,P.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(n=>m.createElement(St,{key:zz[n],control:m.createElement(yr,{checked:r.weekdays.includes(n),onChange:o=>{const a=JSON.parse(JSON.stringify(this.state[e])),i=a.weekdays.indexOf(n);o.target.checked?i===-1&&a.weekdays.push(n):i!==-1&&a.weekdays.splice(i,1),a.weekdays.sort(),e==="intervalBetween"?this.setState({intervalBetween:a},()=>this.recalcCron()):this.setState({specific:a},()=>this.recalcCron())},value:n.toString()}),label:P.t(zz[n])})))}getControlsPeriodElements(e){const r=e==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?m.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},m.createElement("h5",{style:{marginBottom:5}},P.t("sc_period")),m.createElement(Ht,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:P.t("sc_minutes"),value:r.minutes,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.minutes=parseInt(n.target.value,10),o.minutes<1&&(o.minutes=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),m.createElement(Ht,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:P.t("sc_hours"),value:r.hours,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.hours=parseInt(n.target.value,10),o.hours<1&&(o.hours=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):m.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},m.createElement("h5",{style:{marginBottom:5}},P.t("sc_period")),m.createElement(Ht,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:P.t("sc_every"),value:r.period,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.period=parseInt(n.target.value,10),o.period<1&&(o.period=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),m.createElement(Bn,{variant:"standard",style:{verticalAlign:"bottom"},value:r.unit,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.unit=n.target.value,e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())}},m.createElement(Xt,{value:"seconds"},P.t("sc_seconds")),")",m.createElement(Xt,{value:"minutes"},P.t("sc_minutes")),")"))}getControlsTime(e){const r=e==="once"?this.state.once:this.state.specific;return m.createElement(_a,{variant:"standard",sx:{...fs.formControl,"&.MuiFormControl-root":fs.formControlMarginRight}},m.createElement(Ht,{variant:"standard",key:"at",label:P.t("sc_time"),value:r.time,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.time=n.target.value,e==="once"?this.setState({once:o},()=>this.recalcCron()):this.setState({specific:o},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const e=this.state.once;if(!e.date){const r=new Date;e.date=`${r.getDate()}.${Xa(r.getMonth()+1)}`}return m.createElement(_a,{variant:"standard",style:fs.formControl},m.createElement(Ht,{variant:"standard",key:"date",label:P.t("sc_date"),value:e.date,type:"text",slotProps:{htmlInput:{style:fs.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.once));n.date=r.target.value,this.setState({once:n},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return m.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const e=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),m.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},m.createElement("h5",{style:{marginBottom:5}},P.t("sc_hours")),m.createElement(_a,{variant:"standard",style:fs.formControl},m.createElement($l,{shrink:!0,htmlFor:"age-label-placeholder"},P.t("sc_from")),m.createElement(Bn,{variant:"standard",style:{width:100},value:e.timeFrom,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeFrom=parseInt(r.target.value,10),n.timeTo===24&&(n.timeTo=23),this.setState({intervalBetween:n},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>m.createElement(Xt,{key:`B_${r}`,value:r},`${Xa(r)}:00`)))),m.createElement(_a,{variant:"standard",style:fs.formControl},m.createElement($l,{shrink:!0,htmlFor:"age-label-placeholder"},P.t("sc_to")),m.createElement(Bn,{variant:"standard",style:{width:100},value:e.timeTo,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeTo=parseInt(r.target.value,10),this.setState({intervalBetween:n},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>m.createElement(Xt,{key:`A_${r}`,value:r},`${Xa(r)}:00`)),!e.timeFrom&&m.createElement(Xt,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[m.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(e){e!==this.state.mode&&this.setState({mode:e},()=>this.recalcCron())}onChange(e){e!==this.state.cron&&(this.setState({cron:e}),this.props.onChange&&this.props.onChange(e))}render(){return m.createElement("div",{style:fs.mainDiv},m.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},m.createElement(Ht,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),m.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?P.t("sc_invalid_cron"):tV(this.state.cron,this.props.language||"en")),m.createElement("div",null,m.createElement(_a,{variant:"standard",style:{...fs.formControl,marginLeft:8,marginTop:8}},m.createElement($l,null,P.t("ra_Repeat")),m.createElement(Bn,{variant:"standard",value:this.state.mode,onChange:e=>this.onModeChange(e.target.value),inputProps:{name:"mode",id:"mode"}},m.createElement(Xt,{value:"once"},P.t("sc_once")),m.createElement(Xt,{value:"interval"},P.t("sc_interval")),m.createElement(Xt,{value:"intervalBetween"},P.t("sc_intervalBetween")),m.createElement(Xt,{value:"specific"},P.t("sc_specific"))))),this.state.mode===c0t.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const u0t={headerID:{fontWeight:"bold",fontStyle:"italic"},radio:{display:"inline-block"},dialogPaper:{height:"calc(100% - 96px)"}};class Dnr extends m.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:r}}handleCancel(){this.props.onClose()}handleOk(e){if(!e){const r=Cs.cron2state(this.state.cron);if(r.seconds==="*"||r.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(r.minutes==="*"||r.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?m.createElement(PO,{title:P.t("ra_Please confirm"),text:P.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:e=>this.setState({showWarning:""},()=>{e&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return m.createElement(or,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":u0t.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),m.createElement(_r,{id:"cron-dialog-title"},this.props.title||P.t("ra_Define schedule...")),m.createElement(Wr,{style:{height:"100%",overflow:"hidden"}},m.createElement(Cs,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:P.getLanguage()})),m.createElement(pr,null,!!this.props.clearButton&&m.createElement(tt,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:m.createElement(Ta,null)},this.props.clear||P.t("ra_Clear")),m.createElement(tt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:m.createElement(Ea,null)},this.props.ok||P.t("ra_Ok")),m.createElement(tt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:m.createElement(Nf,null)},this.props.cancel||P.t("ra_Cancel"))))}}const p0t={dialogPaper:{height:"calc(100% - 96px)"}};class Anr extends m.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof r=="object"||r[0]==="{")&&!this.props.noWizard?"wizard":qV(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(e){this.setState({mode:e})}render(){return m.createElement(or,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":p0t.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},m.createElement(_r,{id:"cron-dialog-title"},this.props.title||P.t("ra_Define schedule...")),m.createElement(Wr,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?m.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&m.createElement(m.Fragment,null,m.createElement(ur,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),m.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},P.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&m.createElement(m.Fragment,null,m.createElement(ur,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),m.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},P.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&m.createElement(m.Fragment,null,m.createElement(ur,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),m.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},P.t("sc_cron")))):null,this.state.mode==="simple"&&m.createElement(ff,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:P.getLanguage()}),this.state.mode==="wizard"&&m.createElement(gn,{theme:this.props.theme,schedule:this.state.cron,onChange:e=>this.setState({cron:e})}),this.state.mode==="complex"&&m.createElement(Cs,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:P.getLanguage()})),m.createElement(pr,null,m.createElement(tt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:m.createElement(Ea,null)},this.props.ok||P.t("ra_Ok")),m.createElement(tt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:m.createElement(Nf,null)},this.props.cancel||P.t("ra_Cancel"))))}}const pl={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class Inr extends m.Component{constructor(r){super(r);X(this,"dialogName");X(this,"filters");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const n=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(n)}catch{this.filters={}}r.filters&&(this.filters={...this.filters,...r.filters});let o=this.props.selected||[];typeof o!="object"?o=[o]:o=[...o],o=o.filter(a=>a),this.state={selected:o}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let r;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?r=[m.createElement("span",{key:"selected"},P.t("ra_Selected")," "),m.createElement("span",{key:"id",style:pl.headerID},this.state.selected)]:r=[m.createElement("span",{key:"selected"},P.t("ra_Selected")," "),m.createElement("span",{key:"id",style:pl.headerID},P.t("%s items",this.state.selected.length))]:r=this.props.title||P.t("ra_Please select file..."),m.createElement(or,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{...pl.dialog,...pl.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},m.createElement(_r,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":pl.titleRoot}},r),m.createElement(Wr,{style:{...pl.content,...pl.contentMobile}},m.createElement(Zyt,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(n,o,a)=>{this.setState({selected:Array.isArray(n)?n:[n]},()=>o&&(!this.props.selectOnlyFolders||a)&&this.handleOk())},t:this.props.t||P.t,lang:this.props.lang||P.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),m.createElement(pr,null,m.createElement(tt,{variant:"contained",onClick:()=>this.handleOk(),startIcon:m.createElement(Ea,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||P.t("ra_Ok")),m.createElement(tt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:m.createElement(Nf,null)},this.props.cancel||P.t("ra_Cancel"))))}}const h0t={dialogPaper:{height:"calc(100% - 96px)"}};class Mnr extends m.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return m.createElement(or,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":h0t.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},m.createElement(_r,{id:"cron-dialog-title"},this.props.title||P.t("ra_Define CRON...")),m.createElement(Wr,{style:{height:"100%",overflow:"hidden"}},m.createElement(ff,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:P.getLanguage()})),m.createElement(pr,null,m.createElement(tt,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:m.createElement(Ea,null)},this.props.ok||P.t("ra_Ok")),m.createElement(tt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:m.createElement(Nf,null)},this.props.cancel||P.t("ra_Cancel"))))}}const f0t="Acknowledged",m0t="Add",g0t="Aggregate",v0t="Type",y0t="All",_0t="Appearance",b0t="Apply",w0t="Auto",x0t="Axis",S0t="Backgrounds",C0t="Bar",$0t="Border",k0t="Cancel",E0t="Circle",T0t="Close",O0t="Collapse",D0t="Color",A0t="Copy",I0t="Counts",M0t="Create",P0t="Data",N0t="Default",R0t="Delete",j0t="Dialog",L0t="Edit",z0t="End",F0t="Expand",B0t="Fill",W0t="Folder",H0t="From: ",U0t="Functions",V0t="Grid",q0t="Height",G0t="ID",X0t="IDs",J0t="Individual",Y0t="Instance",K0t="Intervals",Z0t="Label",Q0t="Labels",ebt="Left",tbt="Legend",rbt="Limits",nbt="Line",obt="Link",abt="Main",ibt="Marking",sbt="Markings",lbt="Max",cbt="Members",dbt="Min",ubt="MinMax",pbt="more",hbt="Multiple",fbt="Name",mbt="None",gbt="X-Offset",vbt="Ok",ybt="Open",_bt="Options",bbt="Orientation",wbt="Others",xbt="Paste",Sbt="Percentile",Cbt="Pie",$bt="Points",kbt="Polar chart (Radar)",Ebt="Polygonal",Tbt="Presets",Obt="Processing",Dbt="Range",Abt="Relative",Ibt="Rename",Mbt="Right",Pbt="Role",Nbt="Room",Rbt="Rooms",jbt="Root",Lbt="Seconds",zbt="Select",Fbt="Smoothing",Bbt="Source",Wbt="Spline",Hbt="Stack",Ubt="Steps",Vbt="Style",qbt="Text",Gbt="Texts",Xbt="Theme",Jbt="Time",Ybt="Title",Kbt="Type",Zbt="Unit",Qbt="Update",e1t="Value",t1t="Width",r1t="With",n1t="Without",o1t="Area",a1t="auto",i1t="average",s1t="Bar",l1t="bottom",c1t="bottom colored",d1t='Enter the formula like "val / 1000 + 3". This formula will be applied to all values of the selected datapoint.',u1t="copied",p1t="copy",h1t="count",f1t="counts",m1t="Current value",g1t="dashed",v1t="day",y1t="difference",_1t="dotted",b1t="Day of week",w1t="edit",x1t="horizontal",S1t="15 minutes",C1t="1 day",$1t="1 hour",k1t="30 days",E1t="integral",T1t="left",O1t="left colored",D1t="Line",A1t="linear",I1t="Line plot",M1t="load",P1t="max",N1t="middle",R1t="min",j1t="minmax",L1t="month",z1t="no",F1t="none",B1t="none",W1t="now",H1t="off",U1t="on change",V1t="percentile",q1t="Polar chart",G1t="raw",X1t="relative",J1t="reload",Y1t="right",K1t="right colored",Z1t="role",Q1t="save",ewt="Scatter plot",twt="seconds",rwt="solid",nwt="Spline",owt="standard",awt="Steps",iwt="to",swt="today",lwt="top",cwt="top colored",dwt="total",uwt="vertical",pwt="end of day",hwt="end of sunday",fwt="year",mwt="yes",gwt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"%s ago","ØL":"ØL","ØS":"ØS","0 seconds":"0 seconds","0s":"0 seconds","1 day":"1 day","1 hour":"1 hour","1 minute":"1 minute","1 month":"1 month","1 week":"1 week","1 year":"1 year","10 minutes":"10 minutes","10 seconds":"10 seconds","10m":"10 minutes","10minutes":"end of 10 minutes","10s":"10 seconds","12 hours":"12 hours","12H":"12 hours","12W":"12 weeks","12hours":"end of 12 hours","14 days":"14 days","15 minutes":"15 minutes","15 seconds":"15 seconds","15m":"15 minutes","1D":"1 day","1H":"1 hour","1M":"1 month","1W":"1 week","1Y":"1 year","1hour":"end of hour","1minute":"end of minute","1s":"1 second","2 days":"2 days","2 hours":"2 hours","2 minutes":"2 minutes","2 months":"2 months","2 weeks":"2 weeks","2 years":"2 years","20 minutes":"20 minutes","20 seconds":"20 seconds","26W":"26 weeks","2D":"2 days","2H":"2 hours","2M":"2 months","2W":"2 weeks","2Y":"2 years","2hours":"end of 2 hours","2m":"2 minutes","2s":"2 seconds","3 days":"3 days","3 hours":"3 hours","3 minutes":"3 minutes","3 months":"3 months","30 minutes":"30 minutes","30 seconds":"30 seconds","300ms":"300ms","30m":"30 minutes","30minutes":"end of 30 minutes","30s":"30 seconds","3D":"3 days","3M":"3 months","3hours":"end of 3 hours","3m":"3 minutes","3s":"3 seconds","4 days":"4 days","4 minutes":"4 minutes","45 minutes":"45 minutes","45m":"45 minutes","4D":"4 days","4W":"4 weeks","4hours":"end of 4 hours","4m":"4 minutes","5 minutes":"5 minutes","5 seconds":"5 seconds","500ms":"500ms","5m":"5 minutes","5minutes":"end of 5 minutes","5s":"5 seconds","6 hours":"6 hours","6 months":"6 months","60 seconds":"60 seconds","60s":"60 seconds","6H":"6 hours","6M":"6 months","6hours":"end of 6 hours","7 days":"7 days","8W":"8 weeks","8hours":"end of 8 hours","90 seconds":"90 seconds",Acknowledged:f0t,Add:m0t,"Add line to chart":"Add line to chart","Add marking line to chart":"Add marking line to chart","Add new line":"Add new line","Add new markings":"Add new markings","Add new state name":"Add new state name","Add new value":"Add new value","After comma":"After comma",Aggregate:g0t,"Aggregate for lines":"Aggregation for lines",Aggregation:v0t,"Aggregation:":"Type:",All:y0t,"Animation:":"Animation:",Appearance:_0t,Apply:b0t,"Are you sure for closing folder and discard unsaved changes?":"Are you sure for closing folder and discard unsaved changes?","Are you sure for delete this line?":"Are you sure for delete this line?","Are you sure for delete this mark?":"Are you sure for delete this mark?","Are you sure for delete this preset?":"Are you sure for delete this preset?","Are you sure for loading the chart and discard unsaved changes?":"Are you sure for loading the chart and discard unsaved changes?","Are you sure for loading the preset and discard unsaved changes?":"Are you sure for loading the preset and discard unsaved changes?","Arrange bools":"Arrange booleans",Auto:w0t,"Auto (Line or Steps)":"Auto (Line or Steps)","Auto padding":"Auto-padding","Auto save":"Auto save","Auto-refresh":"Auto-refresh","Auto-update:":"Auto-update:",Axis:x0t,"Background of radar chart":"Background of radar chart","Background:":"Background:",Backgrounds:S0t,Bar:C0t,"Bar settings":"Bar settings","Bars width:":"Bars width:",Border:$0t,"Border color:":"Border color:","Border padding":"Border padding","Border width":"Border width","Border width:":"Border width:","Bottom, center, inside":"Bottom, center, inside","Bottom, center, outside":"Bottom, center, outside","Bottom, left":"Bottom, left","Bottom, left, inside":"Bottom, left, inside","Bottom, right":"Bottom, right","Bottom, right, inside":"Bottom, right, inside","Bottom, right, outside":"Bottom, right, outside",Cancel:k0t,"Cannot create unique ID":"Cannot create unique ID","Chart Type":"Chart Type","Chart background":"Chart background","Chart background:":"Chart background:","Chart size":"Chart size","Chart type":"Chart type","Charts preview":"Charts preview",Circle:E0t,Close:T0t,Collapse:O0t,"Collapse all lines":"Collapse all lines","Collapse all markings":"Collapse all markings",Color:D0t,"Common Y Axis":"Common Y Axis","Convert formula":"Convertion formula",Copy:A0t,"Copy link to clipboard":"Copy link to clipboard",Counts:I0t,Create:M0t,"Create folder":"Create folder","Create new folder":"Create new folder","Create new preset":"Create new preset","Create preset":"Create preset","Custom chart background:":"Custom chart background:","Custom time format":"Custom time format",Data:P0t,Default:N0t,Delete:R0t,"Delete object":"Delete object","Delete text value":"Delete text value",Dialog:j0t,"Digits after comma":"Digits after comma","Drag me":"Drag me",Edit:L0t,"Edit folder name":"Edit folder name","Edit options for line %s":"Edit options for line %s","Edit state names":"Edit state names","Empty preset cannot be saved!":"Empty preset cannot be saved!","Enable logging for new state":"Enable logging for new state","Enable zoom and pan":"Enable zoom and pan","Enable zoom and pan:":"Enable zoom and pan:",End:z0t,"End:":"End:","Enter chart name":"Enter chart name",Expand:F0t,"Expand all lines":"Expand all lines","Expand all markings":"Expand all markings","Export data color":"Export data button color",Fill:B0t,"Fill color:":"Fill color:","Fill range:":"Fill range:","Fill(0to1)":"Fill(0to1)",Folder:W0t,"Font size":"Font size",From:H0t,"From line %s":"From line %s",Functions:U0t,Grid:V0t,"Grid color":"Grid color","Grid color:":"Grid color:","Group by":"Group by","HH:MM dd.mm":"HH:MM dd.mm",Height:q0t,"Height:":"Height:","Hide X grid":"Hide X grid","Hide Y grid":"Hide Y grid","Hide edit button:":"Hide edit button:","Hide nulls in tooltip":"Hide nulls in tooltip","Hover details":"Hover details","Hover details:":"Hover details:",ID:G0t,IDs:X0t,"If the current value is not older than X seconds, assume it is still the same.":"If the current value is not older than X seconds, assume it is still the same.","In seconds":"In seconds",Individual:J0t,"Input data":"Input data","Inside / No lines":"Inside / No lines","Inside / With lines":"Inside / With lines","Inside end":"Inside, on end","Inside end bottom":"Inside, at the end, on bottom","Inside end top":"Inside, at the end, on top","Inside middle":"Inside, in the middle","Inside middle bottom":"Inside, in the middle, on bottom","Inside middle top":"Inside, in the middle, at top","Inside start":"Inside, at start","Inside start bottom":"Inside, at start, on bottom","Inside start top":"Inside, at start, on top",Instance:Y0t,"Integral unit":"Integral unit","Interpolate:":"Interpolate:","Interpolation method":"Interpolation method",Intervals:K0t,"Invalid object":"Invalid object",Label:Z0t,"Label color:":"Label color:","Label font size:":"Label font size:",Labels:Q0t,"Last changed":"Last changed",Left:ebt,Legend:tbt,"Legend background":"Legend background","Legend background:":"Legend background:","Legend columns:":"Legend columns:","Legend opacity (from 0 to 1):":"Legend opacity (from 0 to 1):","Legend text color":"Legend text color",Limits:rbt,Line:nbt,"Line ID":"Line ID","Line Width":"Line Width","Line and area":"Line and area","Line style":"Line style",Link:obt,"Live update every":"Live update every","Live update every:":"Live update every:","Load without save":"Load without save","Loading...":"Loading...","Lower value or ID":"Lower value or ID",Main:abt,Mark:ibt,Markings:sbt,Max:lbt,"Max:":"Maximum:",Members:cbt,"Middle, left, inside":"Middle, left, inside","Middle, right, inside":"Middle, right, inside","Middle, right, outside":"Middle, right, outside",Min:dbt,"Min:":"Minimum:",MinMax:ubt,More:pbt,"Move to folder":"Move to folder",Multiple:hbt,"NULL as":"NULL as",Name:fbt,"Name:":"Name:","No ID yet":"No ID yet","No background":"No background","No border:":"No border:","No future":"No values in future","No interpolate in hover":"No interpolation in tooltip","No presets created yet":"No presets created yet",None:mbt,Offset:gbt,Ok:vbt,Open:ybt,"Open chart in own window":"Open chart in own window","Open in own window":"Open in own window",Options:_bt,Orientation:bbt,Others:wbt,"Outside / No lines":"Outside / No lines","Outside/ With lines":"Outside/ With lines",Paste:xbt,Percentile:Sbt,Pie:Cbt,"Please confirm":"Please confirm",Points:$bt,Polar:kbt,Polygonal:Ebt,"Predefined background:":"Predefined background:",Presets:Tbt,Processing:Obt,"Processing...":"Processing...",Range:Dbt,"Range:":"Range:",Relative:Abt,Rename:Ibt,"Rename preset":"Rename preset","Reorder presets in folders":"Reorder presets in folders","Reset settings":"Reset settings","Reset zoom after idle":"Reset zoom after idle",Right:Mbt,Role:Pbt,Room:Nbt,Rooms:Rbt,Root:jbt,"Save current preset and load":"Save current preset and load","Save image button color":"Save image button color","Save into:":"Save into:","Scatter plot":"Scatter plot",Seconds:Lbt,Select:zbt,"Select ID":"Select ID","Select for":"Select for","Shadow Size":"Shadow Size","Show controls":"Show controls","Show export data button":"Show export data button","Show labels:":"Show labels:","Show legend":"Show legend","Show legend:":"Show legend:","Show only in legend":"Show only in legend","Show points":"Show points","Show save image button":"Show save image button","Show values":"Show values",Smoothing:Fbt,Source:Bbt,Spline:Wbt,Stack:Hbt,"Start:":"Start:","State value":"State value","State value text":"State value text","Step span:":"Step span:","Step type":"Step type","Step type:":"Step type:",Steps:Ubt,"Steps on start":"Steps on start",Style:Vbt,"System settings":"System settings",Text:qbt,"Text X offset":"Text X-offset","Text Y offset":"Text Y-offset","Text by false":"Text by false","Text by true":"Text by true","Text color":"Text color","Text position":"Text position","Text size":"Text size","Text values not used":"Text values not used",Texts:Gbt,Theme:Xbt,"This time offset will be added to the X label by displaying data on the chart":"This time offset will be added to the X label by displaying data on the chart","This time offset will be added to the request by reading data from DB":"This time offset will be added to the request by reading data from DB","Ticks from:":"Use X-ticks from:",Time:Jbt,"Time Span":"Time Span","Time format":"Time format","Time format:":"Time format:","Time span":"Time span","Time stamp":"Time stamp",Title:Ybt,"Title color":"Title color","Title color:":"Title color:","Title position":"Title position","Title position:":"Title position:","Title size":"Title size","Title size:":"Title size:","Title:":"Title:","Top, center, inside":"Top, center, inside","Top, left":"Top, left","Top, left, inside":"Top, left, inside","Top, right":"Top, right","Top, right, inside":"Top, right, inside","Top, right, outside":"Top, right, outside",Type:Kbt,Unit:Zbt,"Units:":"Units:",Update:Qbt,"Update objects":"Update objects","Update states":"Update states","Upper value or ID":"Upper value or ID","Use comma":"Use comma","Use comma:":"Use comma:","Use state names":"Use state names","User defined":"User defined","User defined names:":"User defined names:","Valid time (sec)":"Valid time (sec)",Value:e1t,Width:t1t,"Width:":"Width:","Window background":"Window background","Window background:":"Window background:",With:r1t,"With border":"With border","With lines":"With lines",Without:n1t,"Without border":"Without border","Without lines":"Without lines","X Axis":"X Axis","X Axis position":"X Axis position","X axis labels color:":"X labels color:","X labels color":"X labels color","X labels size":"X font size","X ticks color":"X ticks color","X-Axis ticks":"X-Axis ticks","X-Label-Offset":"X-Label Offset","X-Offset":"X-Offset","Y Axis":"Y Axis","Y Axis position":"Y Axis position","Y axis labels color:":"Y labels color:","Y labels color":"Y labels color","Y labels size":"Y font size","Y ticks color":"Y ticks color","Y-Axis ticks":"Y-Axis ticks","Y-Offset":"Y-Offset",'You can create a new markings with a "+" on the right.':'You can create a new markings with a "+" on the right.',"You can drag and drop simple lines from the left list.":"You can drag and drop simple lines from the left list.","add children":"add children",area:o1t,auto:a1t,average:i1t,bar:s1t,bottom:l1t,bottomColor:c1t,convert_help:d1t,copied:u1t,copy:p1t,count:h1t,counts:f1t,current:m1t,dashed:g1t,day:v1t,default:"default",difference:y1t,dotted:_1t,dow:b1t,edit:w1t,"edit enum":"edit enum","edit file":"edit file","end of 10 minutes":"end of 10 minutes","end of 12 hours":"end of 12 hours","end of 2 hours":"end of 2 hours","end of 3 hours":"end of 3 hours","end of 30 minutes":"end of 30 minutes","end of 4 hours":"end of 4 hours","end of 5 minutes":"end of 5 minutes","end of 6 hours":"end of 6 hours","end of 8 hours":"end of 8 hours","end of day":"end of day","end of hour":"end of hour","end of minute":"end of minute","end of previous saturday":"end of previous saturday (2 weeks)","end of previous sunday":"end of previous sunday (2 weeks)","end of saturday":"end of saturday","end of sunday":"end of sunday",false:"null",horizontal:x1t,i15min:S1t,i1day:C1t,i1hour:$1t,i30days:k1t,"ignore 'null'":"ignore 'null'","ignore 'null':":"ignore 'null':","ignore null values":"ignore null values",integral:E1t,"last value":"last value",left:T1t,"left colored":"left colored",leftColor:O1t,line:D1t,linear:A1t,lineplot:I1t,load:M1t,max:P1t,middle:N1t,min:R1t,minmax:j1t,month:L1t,new:"new",no:z1t,"no null":" no null","non-processed":"non-processed",none:F1t,none_no:B1t,now:W1t,null:"null",off:H1t,onchange:U1t,"own axis":"own axis",percentile:V1t,polar:q1t,raw:G1t,relative:X1t,reload:J1t,"restart script":"restart script",right:Y1t,"right colored":"right colored",rightColor:K1t,role:Z1t,save:Q1t,"save %s":"save %s",scatterplot:ewt,seconds:twt,solid:rwt,spline:nwt,standard:owt,static:"static",steps:awt,"this month":"this month","this year":"this year",to:iwt,today:swt,top:lwt,"top over":"top over","top under":"top under",topColor:cwt,total:dwt,true:"last value","update Preview":"update Preview","use 0 instead of null values":"use 0 instead of null values",vertical:uwt,weekEurope:pwt,weekUsa:hwt,year:fwt,yes:mwt,ØL:"ØL","ØL - Line thickness":"ØL - Line thickness","ØL Line thickness":"ØL Line thickness",ØS:"ØS","ØS - Shadow size":"ØS - Shadow size","ØS Shadow size":"ØS Shadow size"},vwt="Bestätigt",ywt="Hinzufügen",_wt="Aggregat",bwt="Art",wwt="Alle",xwt="Erscheinung",Swt="Anwenden",Cwt="Auto",$wt="Achsen",kwt="Hintergründe",Ewt="Bar",Twt="Rand",Owt="Abbrechen",Dwt="Kreis",Awt="Schließen",Iwt="Zusammenklappen",Mwt="Farbe",Pwt="Kopieren",Nwt="Anzahl",Rwt="Erstellen",jwt="Datenquellen",Lwt="Standard",zwt="Löschen",Fwt="Dialog",Bwt="Editieren",Wwt="Ende",Hwt="Ausklappen",Uwt="Füllen",Vwt="Mappe",qwt="Von",Gwt="Funktionen",Xwt="Gitter",Jwt="Höhe",Ywt="ID",Kwt="IDs",Zwt="Individuell",Qwt="Instanz",ext="Intervalle",txt="Etikette",rxt="Etiketten",nxt="Links",oxt="Legende",axt="Grenzen",ixt="Linie",sxt="Link",lxt="Haupt-Einstellungen",cxt="Markierung",dxt="Markierungen",uxt="Max",pxt="Mitglied",hxt="Min",fxt="MinMax",mxt="mehr",gxt="Mehrere",vxt="Name",yxt="Nichts",_xt="X-Offset",bxt="Ok",wxt="Zeige im Fenster",xxt="Optionen",Sxt="Orientierung",Cxt="Andere",$xt="Einfügen",kxt="Perzentil",Ext="Kuchen",Txt="Punkte",Oxt="Polardiagramm (Radar)",Dxt="Polygonal",Axt="Voreinstellung",Ixt="wird bearbeitet",Mxt="Reichweite",Pxt="Relativ",Nxt="Umbenennen",Rxt="Rechts",jxt="Rolle",Lxt="Raum",zxt="Räume",Fxt="Root-Ordner",Bxt="Sekunden",Wxt="Auswählen",Hxt="Glätten",Uxt="Quelle",Vxt="Spline",qxt="Stack",Gxt="Schritte",Xxt="Stil",Jxt="Text",Yxt="Texte",Kxt="Thema",Zxt="Zeit",Qxt="Beschriftung",eSt="Typ",tSt="Einheiten",rSt="Aktualisieren",nSt="Wert",oSt="Breite",aSt="mit",iSt="ohne",sSt="Area",lSt="Auto",cSt="mittel",dSt="Bar",uSt="unten",pSt="unten farblich",hSt='Hier die Formel wie "val / 1000 + 3" eingeben. Diese Formel wird auf alle Werte des ausgewählten Datenpunkts angewendet.',fSt="kopiert",mSt="Kopieren",gSt="zählen",vSt="Anzahl",ySt="Aktueller Wert",_St="gestrichelt",bSt="Tag",wSt="Unterschied",xSt="gepunktet",SSt="Wochentag",CSt="bearbeiten",$St="horizontal",kSt="15 Minuten",ESt="1 Tag",TSt="1 Stunde",OSt="30 Tage",DSt="Integral",ASt="links",ISt="links farblich",MSt="Linie",PSt="linear",NSt="Liniendiagramm",RSt="laden",jSt="max",LSt="mittig",zSt="min",FSt="minmax",BSt="Monat",WSt="keine",HSt="nichts",USt="keins",VSt="jetzt",qSt="nichts",GSt="bei Änderung",XSt="Perzentil",JSt="Polardiagramm",YSt="unverarbeitet",KSt="relative",ZSt="Neu laden",QSt="rechts",eCt="rechts farblich",tCt="Rolle",rCt="Speichern",nCt="Streudiagramm",oCt="Sekunden",aCt="normal",iCt="Spline",sCt="Standard",lCt="Schritte",cCt="bis",dCt="heute",uCt="oben",pCt="oben farblich",hCt="total",fCt="vertikal",mCt="Tagesende",gCt="Wochenssende",vCt="Jahr",yCt="ja",_Ct={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"vor %s","ØL":"ØL","ØS":"ØS","0 seconds":"0 Sekunden","0s":"0s","1 day":"1 Tag","1 hour":"1 Stunde","1 minute":"1 Minute","1 month":"1 Monat","1 week":"1 Woche","1 year":"1 Jahr","10 minutes":"10 Minuten","10 seconds":"10 Sekunden","10m":"10 Minuten","10minutes":"Ende von 10 Minuten","10s":"10 Sekunden","12 hours":"12 Stunden","12H":"12 Stunden","12W":"12 Wochen","12hours":"Ende von 12 Stunden","14 days":"14 Tage","15 minutes":"15 Minuten","15 seconds":"15 Sekunden","15m":"15 Minuten","1D":"1 Tag","1H":"1 Stunde","1M":"1 Monat","1W":"1 Woche","1Y":"1 Jahr","1hour":"Stundenende","1minute":"Minutenende","1s":"1 Sekunde","2 days":"2 Tage","2 hours":"2 Stunden","2 minutes":"2 Minuten","2 months":"2 Monate","2 weeks":"2 Wochen","2 years":"2 Jahren","20 minutes":"20 Minuten","20 seconds":"20 Sekunden","26W":"26 Wochen","2D":"2 Tage","2H":"2 Stunden","2M":"2 Monate","2W":"2 Wochen","2Y":"2 Jahre","2hours":"Ende von 2 Stunden","2m":"2 Minuten","2s":"2 Sekunden","3 days":"3 Tage","3 hours":"3 Stunden","3 minutes":"3 Minuten","3 months":"3 Monate","30 minutes":"30 Minuten","30 seconds":"30 Sekunden","300ms":"300ms","30m":"30 Minuten","30minutes":"Ende von 30 Minuten","30s":"30 Sekunden","3D":"3 Tage","3M":"3 Monate","3hours":"Ende von 3 Stunden","3m":"3 Minuten","3s":"3 Sekunden","4 days":"4 Tage","4 minutes":"4 Minuten","45 minutes":"45 Minuten","45m":"45 Minuten","4D":"4 Tage","4W":"4 Wochen","4hours":"Ende von 4 Stunden","4m":"4 Minuten","5 minutes":"5 Minuten","5 seconds":"5 Sekunden","500ms":"500ms","5m":"5 Minuten","5minutes":"Ende von 5 Minuten","5s":"5 Sekunden","6 hours":"6 Stunden","6 months":"6 Monate","60 seconds":"60 Sekunden","60s":"60 Sekunden","6H":"6 Stunden","6M":"6 Monate","6hours":"Ende von 6 Stunden","7 days":"7 Tage","8W":"8 Wochen","8hours":"Ende von 8 Stunden","90 seconds":"90 Sekunden",Acknowledged:vwt,Add:ywt,"Add line to chart":"Linie zum Preset hinzufügen","Add marking line to chart":"Markierungslinie zum Preset hinzufügen","Add new line":"Linie hinzufügen","Add new markings":"Neue Markierung hinzufügen","Add new state name":"Neuen Statusnamen hinzufügen","Add new value":"Fügen Sie neuen Wert hinzu","After comma":"Nach Komma",Aggregate:_wt,"Aggregate for lines":"Aggregation für Zeilen",Aggregation:bwt,"Aggregation:":"Art:",All:wwt,"Animation:":"Animation:",Appearance:xwt,Apply:Swt,"Are you sure for closing folder and discard unsaved changes?":"Möchten Sie den Ordner wirklich schließen und nicht gespeicherte Änderungen verwerfen?","Are you sure for delete this line?":"Sind Sie sicher, diese Zeile zu löschen?","Are you sure for delete this mark?":"Sind Sie sicher, diese Marke zu löschen?","Are you sure for delete this preset?":"Sind Sie sicher, diese Voreinstellung zu löschen?","Are you sure for loading the chart and discard unsaved changes?":"Möchten Sie das Diagramm wirklich laden und nicht gespeicherte Änderungen verwerfen?","Are you sure for loading the preset and discard unsaved changes?":"Möchten Sie die Vorgabe wirklich laden und nicht gespeicherte Änderungen verwerfen?","Arrange bools":"Platziere Booleans",Auto:Cwt,"Auto (Line or Steps)":"Auto (Linie oder Schritte)","Auto padding":"Auto-Abstand","Auto save":"Automatisch speichern","Auto-refresh":"Automatische Aktualisierung","Auto-update:":"Auto-update:",Axis:$wt,"Background of radar chart":"Hintergrund der Radarkarte","Background:":"Hintergrund:",Backgrounds:kwt,Bar:Ewt,"Bar settings":"Bar-Einstellungen","Bars width:":"Barbreite:",Border:Twt,"Border color:":"Rahmenfarbe:","Border padding":"Randabstand","Border width":"Rahmenbreite","Border width:":"Rahmenbreite:","Bottom, center, inside":"Unten, mittig, innen","Bottom, center, outside":"Unten, mittig, außen","Bottom, left":"Unten, links","Bottom, left, inside":"Unten, links, innen","Bottom, right":"Unten, rechts","Bottom, right, inside":"Unten, rechts, innen","Bottom, right, outside":"Unten, rechts, außen",Cancel:Owt,"Cannot create unique ID":"Eindeutige ID kann nicht erstellt werden","Chart Type":"Chart Type","Chart background":"Diagrammhintergrund","Chart background:":"Chart-Hintergrund:","Chart size":"Diagrammgröße","Chart type":"Diagramm Typ","Charts preview":"Diagrammvorschau",Circle:Dwt,Close:Awt,Collapse:Iwt,"Collapse all lines":"Alle Zeilen zumachen","Collapse all markings":"Alle Markierungen zusammenklappen",Color:Mwt,"Common Y Axis":"Gemeinsame Y-Achse","Convert formula":"Umrechnungsformel",Copy:Pwt,"Copy link to clipboard":"Link in Zwischenablage kopieren",Counts:Nwt,Create:Rwt,"Create folder":"Ordner erstellen","Create new folder":"Neuen Ordner erstellen","Create new preset":"Neues Preset erstellen","Create preset":"Preset erstellen","Custom chart background:":"Anwender-Chart-Hintergrund:","Custom time format":"Benutzerdefiniertes Zeitformat",Data:jwt,Default:Lwt,Delete:zwt,"Delete object":"Object löschen","Delete text value":"Textwert löschen",Dialog:Fwt,"Digits after comma":"Ziffern nach Komma","Drag me":"Zieh mich",Edit:Bwt,"Edit folder name":"Ordnername ändern","Edit options for line %s":"Editieren weitere Einstellungen für Linie %s","Edit state names":"Zustandsnamen bearbeiten","Empty preset cannot be saved!":"Leeres Preset kann nicht gespeichert werden!","Enable logging for new state":"Protokollierung für einen neuen Zustand aktivieren","Enable zoom and pan":"Zoom erlauben","Enable zoom and pan:":"Aktiviere Zoom und Schieben:",End:Wwt,"End:":"Ende:","Enter chart name":"Chartname eintragen",Expand:Hwt,"Expand all lines":"Alle Zeilen ausklappen","Expand all markings":"Alle Markierungen aufklappen","Export data color":"Farbe der Schaltfläche „Daten exportieren“.",Fill:Uwt,"Fill color:":"Füllfarbe color:","Fill range:":"Ganzer Bereich:","Fill(0to1)":"Füllen(0bis1)",Folder:Vwt,"Font size":"Schriftgröße",From:qwt,"From line %s":"Zeile %s",Functions:Gwt,Grid:Xwt,"Grid color":"Gitterfarbe","Grid color:":"Gitterfarbe:","Group by":"Gruppiere nach","HH:MM dd.mm":"SS:MM tt.mm.",Height:Jwt,"Height:":"Höhe:","Hide X grid":"X-Gitter ausblenden","Hide Y grid":"Y-Gitter ausblenden","Hide edit button:":"Kein 'Edit'-Knopf:","Hide nulls in tooltip":"Nullen im Tooltip ausblenden","Hover details":"Hover-Details","Hover details:":"Hover details:",ID:Ywt,IDs:Kwt,"If the current value is not older than X seconds, assume it is still the same.":"Wenn der aktuelle Wert nicht älter als X Sekunden ist, annehmen, dass er immer noch derselbe ist.","In seconds":"In Sekunden",Individual:Zwt,"Input data":"Eingangsdaten","Inside / No lines":"Innen / ohne Linien","Inside / With lines":"Innen / mit Linien","Inside end":"Innen, am Ende","Inside end bottom":"Innen, am Ende, unten","Inside end top":"Innen, am Ende, oben","Inside middle":"Innen, in der Mitte","Inside middle bottom":"Innen, in der Mitte, unten","Inside middle top":"Innen, in der Mitte, oben","Inside start":"Innen, am Start","Inside start bottom":"Innen, am Anfang, unten","Inside start top":"Innen, am Anfang, oben",Instance:Qwt,"Integral unit":"Integrale Einheit","Interpolate:":"Interpolieren:","Interpolation method":"Interpolationsmethode",Intervals:ext,"Invalid object":"Ungültiges Objekt",Label:txt,"Label color:":"Labelfarbe:","Label font size:":"Labelschriftgröße:",Labels:rxt,"Last changed":"Letze Änderung",Left:nxt,Legend:oxt,"Legend background":"Legendenhintergrund","Legend background:":"Legende-Hintergrund:","Legend columns:":"Spalten in Legende:","Legend opacity (from 0 to 1):":"Legende-Opacity (von 0 bis 1):","Legend text color":"Legende Textfarbe",Limits:axt,Line:ixt,"Line ID":"Linie ID","Line Width":"Linienstärke","Line and area":"Linie und Fläche","Line style":"Linienstil",Link:sxt,"Live update every":"Autoupdate alle","Live update every:":"Autoupdate alle:","Load without save":"Laden ohne Speichern","Loading...":"Lade...","Lower value or ID":"Unterer Wert oder ID",Main:lxt,Mark:cxt,Markings:dxt,Max:uxt,"Max:":"Maximum:",Members:pxt,"Middle, left, inside":"Middle, links, innen","Middle, right, inside":"Middle, rechts, innen","Middle, right, outside":"Middle, rechts, außen",Min:hxt,"Min:":"Minimum:",MinMax:fxt,More:mxt,"Move to folder":"In den Ordner verschieben",Multiple:gxt,"NULL as":"NULL als",Name:vxt,"Name:":"Name:","No ID yet":"Noch kein ID","No background":"Kein Hintergrund","No border:":"Kein Rahmen:","No future":"Keine Werte in der Zukunft","No interpolate in hover":"Keine Interpolation im Tooltip","No presets created yet":"Noch keine Presets erstellt",None:yxt,Offset:_xt,Ok:bxt,Open:wxt,"Open chart in own window":"Das Diagramm in einem eigenen Fenster öffnen","Open in own window":"In eigenem Fenster öffnen",Options:xxt,Orientation:Sxt,Others:Cxt,"Outside / No lines":"Außen / ohne Linien","Outside/ With lines":"Außen/ mit Linien",Paste:$xt,Percentile:kxt,Pie:Ext,"Please confirm":"Bitte bestätigen",Points:Txt,Polar:Oxt,Polygonal:Dxt,"Predefined background:":"Vordefinierter Hintergrund:",Presets:Axt,Processing:Ixt,"Processing...":"Bearbeite...",Range:Mxt,"Range:":"Umfang:",Relative:Pxt,Rename:Nxt,"Rename preset":"Preset umbenennen","Reorder presets in folders":"Presets in Ordnern neu anordnen","Reset settings":"Einstellungen löschen","Reset zoom after idle":"Zoom nach Leerlauf zurücksetzen",Right:Rxt,Role:jxt,Room:Lxt,Rooms:zxt,Root:Fxt,"Save current preset and load":"Aktuelles Preset speichern und laden","Save image button color":"Farbe der Bildschaltfläche speichern","Save into:":"Save into:","Scatter plot":"Scatter plot",Seconds:Bxt,Select:Wxt,"Select ID":"ID Auswählen","Select for":"Wählen Sie für","Shadow Size":"Schattengröße","Show controls":"Steuerelemente anzeigen","Show export data button":"Schaltfläche „Exportdaten anzeigen“.","Show labels:":"Zeige Labels:","Show legend":"Legende anzeigen","Show legend:":"Zeige Legende:","Show only in legend":"Nur in der Legende anzeigen","Show points":"Punkte anzeigen","Show save image button":"Schaltfläche „Bild speichern“ anzeigen","Show values":"Werte anzeigen",Smoothing:Hxt,Source:Uxt,Spline:Vxt,Stack:qxt,"Start:":"Start:","State value":"Wert angeben","State value text":"Werttext angeben","Step span:":"Schrittweite:","Step type":"Schrittart","Step type:":"Schritttyp:",Steps:Gxt,"Steps on start":"Schritte beim Start",Style:Xxt,"System settings":"Systemeinstellungen",Text:Jxt,"Text X offset":"Text-X-Offset","Text Y offset":"Text Y-Offset","Text by false":"Text bei falsch","Text by true":"Text bei wahr","Text color":"Textfarbe","Text position":"Textposition","Text size":"Textgröße","Text values not used":"Textwerte nicht verwendet",Texts:Yxt,Theme:Kxt,"This time offset will be added to the X label by displaying data on the chart":"Dieser Zeitversatz wird der X-Beschriftung hinzugefügt, indem Daten im Diagramm angezeigt werden","This time offset will be added to the request by reading data from DB":"Dieser Zeitversatz wird der Anfrage durch das Lesen von Daten aus der Datenbank hinzugefügt","Ticks from:":"Benutze X-Ticks aus:",Time:Zxt,"Time Span":"Zeit Spanne","Time format":"Zeitformat","Time format:":"Zeitformat:","Time span":"Zeitspanne","Time stamp":"Zeitstempel",Title:Qxt,"Title color":"Titelfarbe","Title color:":"Titelfarbe:","Title position":"Titelposition","Title position:":"Beschriftungs-Position:","Title size":"Titelgröße","Title size:":"Titelgröße:","Title:":"Beschriftung:","Top, center, inside":"Oben, mittig, innen","Top, left":"Oben, links","Top, left, inside":"Oben, links, innen","Top, right":"Oben, rechts","Top, right, inside":"Oben, rechts, innen","Top, right, outside":"Oben, rechts, außen",Type:eSt,Unit:tSt,"Units:":"Einheiten:",Update:rSt,"Update objects":"Objekte aktualisieren","Update states":"States aktualisieren","Upper value or ID":"Oberer Wert oder ID","Use comma":"Komma benutzen","Use comma:":"Benutze Komma:","Use state names":"Zustandsnamen verwenden ","User defined":"Anwenderdefiniert","User defined names:":"Benutzerdefinierte Namen:","Valid time (sec)":"Gültige Zeit (Sek.)",Value:nSt,Width:oSt,"Width:":"Breite:","Window background":"Fensterhintergrund","Window background:":"Fenster-Hintergrund:",With:aSt,"With border":"Mit Grenze","With lines":"mit Linien",Without:iSt,"Without border":"Ohne Rand","Without lines":"ohne Linien","X Axis":"X Axe","X Axis position":"X Achsenposition","X axis labels color:":"X Beschriftungsfarbe:","X labels color":"X Beschriftungsfarbe","X labels size":"X Schriftgröße","X ticks color":"X-Strichfarbe","X-Axis ticks":"X-Achse-Ticks","X-Label-Offset":"X-Label-Offset","X-Offset":"X-Offset","Y Axis":"Y Axe","Y Axis position":"Y Achsenposition","Y axis labels color:":"Y Beschriftungsfarbe:","Y labels color":"Y Beschriftungsfarbe","Y labels size":"Y-Schriftgröße","Y ticks color":"Y-Strichfarbe","Y-Axis ticks":"Y-Achse-Ticks","Y-Offset":"Y-Offset",'You can create a new markings with a "+" on the right.':'Man kann neue Markierungen mit einem "+" rechts erstellen.',"You can drag and drop simple lines from the left list.":"Man kann einfache Linien aus der linken Liste ziehen und ablegen.","add children":"Sub-enums einfügen",area:sSt,auto:lSt,average:cSt,bar:dSt,bottom:uSt,bottomColor:pSt,convert_help:hSt,copied:fSt,copy:mSt,count:gSt,counts:vSt,current:ySt,dashed:_St,day:bSt,default:"default",difference:wSt,dotted:xSt,dow:SSt,edit:CSt,"edit enum":"Enum ändern","edit file":"Datei editieren","end of 10 minutes":"Ende von 10 Minuten","end of 12 hours":"Ende von 12 Stunden","end of 2 hours":"Ende von 2 Stunden","end of 3 hours":"Ende von 3 Stunden","end of 30 minutes":"Ende von 30 Minuten","end of 4 hours":"Ende von 4 Stunden","end of 5 minutes":"Ende von 5 Minuten","end of 6 hours":"Ende von 6 Stunden","end of 8 hours":"Ende von 8 Stunden","end of day":"Tagesende","end of hour":"Stundenende","end of minute":"Minutenende","end of previous saturday":"Ende Vorsamstag (2 Wochen)","end of previous sunday":"Ende Vorsonntag (2 Wochen)","end of saturday":"Samstagsende","end of sunday":"Wochenssende",false:"null",horizontal:$St,i15min:kSt,i1day:ESt,i1hour:TSt,i30days:OSt,"ignore 'null'":"'null' ignorieren","ignore 'null':":"'null' ignorieren:","ignore null values":"null-Werte ignorieren",integral:DSt,"last value":"letztes Wert",left:ASt,"left colored":"links farbig",leftColor:ISt,line:MSt,linear:PSt,lineplot:NSt,load:RSt,max:jSt,middle:LSt,min:zSt,minmax:FSt,month:BSt,new:"unter neuen Namen",no:WSt,"no null":" kein NULL","non-processed":"unbearbeitet",none:HSt,none_no:USt,now:VSt,null:"null",off:qSt,onchange:GSt,"own axis":"eigene Achse",percentile:XSt,polar:JSt,raw:YSt,relative:KSt,reload:ZSt,"restart script":"Skript neu starten",right:QSt,"right colored":"rechts gefärbt",rightColor:eCt,role:tCt,save:rCt,"save %s":"Speichern %s",scatterplot:nCt,seconds:oCt,solid:aCt,spline:iCt,standard:sCt,static:"statik",steps:lCt,"this month":"dieser Monat","this year":"dieses Jahr",to:cCt,today:dCt,top:uCt,"top over":"oben über","top under":"oben unten",topColor:pCt,total:hCt,true:"letztes Wert","update Preview":"Vorschau aktualisieren","use 0 instead of null values":"0 statt null benutzen",vertical:fCt,weekEurope:mCt,weekUsa:gCt,year:vCt,yes:yCt,ØL:"ØL","ØL - Line thickness":"ØL - Liniendicke","ØL Line thickness":"ØL Linienstärke",ØS:"ØS","ØS - Shadow size":"ØS - Schattengröße","ØS Shadow size":"ØS Schattengröße"},bCt="Подтверждён",wCt="Добавить",xCt="Агрегатная функция",SCt="Тип",CCt="все",$Ct="Оформление",kCt="Применить",ECt="Авто",TCt="Оси",OCt="Фоны",DCt="Bar",ACt="Граница",ICt="отменить",MCt="Круг",PCt="Закрыть",NCt="Свернуть",RCt="Цвет",jCt="Копировать",LCt="Кол-во значений",zCt="Создайте",FCt="Данные",BCt="по умолчанию",WCt="Удалить",HCt="Диалог",UCt="Edit",VCt="Конец",qCt="Развернуть",GCt="Заливка",XCt="Папка",JCt="От",YCt="Функции",KCt="Сетка",ZCt="Высота",QCt="ID",e$t="Объекты",t$t="Индивидуально",r$t="Драйвер",n$t="Интервалы",o$t="этикетка",a$t="Этикетки",i$t="слева",s$t="Легенда",l$t="Пределы",c$t="Линия",d$t="URL",u$t="Главные",p$t="Маркировка",h$t="Разметка",f$t="Макс",m$t="Объекты",g$t="Мин",v$t="MinMax",y$t="ещё",_$t="Несколько",b$t="Имя",w$t="Нет",x$t="Сдвиг по Х",S$t="Ok",C$t="Показать",$$t="Опции",k$t="Ориентация",E$t="Другие",T$t="Вставить",O$t="Процентиль",D$t="Круговая диаграмма",A$t="Точки",I$t="Полярная карта (Радар)",M$t="Полигональный",P$t="Пресеты",N$t="Обработка",R$t="Диапазон",j$t="Родственник",L$t="Переименовать",z$t="справа",F$t="Роль",B$t="Комната",W$t="Номера",H$t="Корневая папка",U$t="Cекунды",V$t="Выбрать",q$t="Сглаживание",G$t="Источник",X$t="Сплайн",J$t="Stack",Y$t="Ступени",K$t="Стиль",Z$t="Текст",Q$t="Тексты",ekt="Тема",tkt="Время",rkt="Подпись",nkt="Тип",okt="Единицы",akt="Обновить",ikt="Значение",skt="Ширина",lkt="с",ckt="без",dkt="Область",ukt="авто",pkt="среднее",hkt="Bar",fkt="снизу",mkt="снизу цветом",gkt="Введите формулу типа «val / 1000 + 3». Эта формула будет применяться ко всем значениям выбранной точки данных.",vkt="скопировано",ykt="Скопировать",_kt="считать",bkt="кол-во",wkt="Текущая стоимость",xkt="пунктирная",Skt="День",Ckt="разница",$kt="пунктирный",kkt="День недели",Ekt="редактировать",Tkt="горизонтальный",Okt="15 минут",Dkt="1 день",Akt="1 час",Ikt="30 дней",Mkt="интеграл",Pkt="слева",Nkt="слева цветом",Rkt="Линия",jkt="линейный",Lkt="Линия с точками",zkt="загрузить",Fkt="макс",Bkt="В середине",Wkt="мин",Hkt="minmax",Ukt="month",Vkt="нет",qkt="ничего",Gkt="нет",Xkt="сейчас",Jkt="скрыть",Ykt="при изменении",Kkt="процентиль",Zkt="Полярная карта (радар)",Qkt="необработанные",eEt="относительно",tEt="Перезагрузить",rEt="справа",nEt="справа цветом",oEt="Роль",aEt="сохранить",iEt="Точки",sEt="секунды",lEt="обычный",cEt="Сллайн",dEt="стандарт",uEt="Шаги",pEt="до",hEt="сегодня",fEt="сверху",mEt="сверху цветом",gEt="всего",vEt="вертикальный",yEt="Конец дня",_Et="Конец недели",bEt="year",wEt="да",xEt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"%s назад","ØL":"ØL","ØS":"ØS","0 seconds":"0 секунд","0s":"0c","1 day":"1 день","1 hour":"1 час","1 minute":"1 минуту","1 month":"1 месяц","1 week":"1 неделя","1 year":"1 год","10 minutes":"10 минут","10 seconds":"10 секунд","10m":"10 минут","10minutes":"Конец 10 minutes","10s":"10 секунд","12 hours":"12 часов","12H":"12 часов","12W":"12 недель","12hours":"Конец 12 часов","14 days":"14 дней","15 minutes":"15 минут","15 seconds":"15 секунд","15m":"15 минут","1D":"1 день","1H":"1 час","1M":"1 месяц","1W":"1 неделя","1Y":"1 год","1hour":"Конец часа","1minute":"Конец минуты","1s":"1 секунда","2 days":"2 дня","2 hours":"2 часа","2 minutes":"2 минуты","2 months":"2 месяца","2 weeks":"2 недели","2 years":"2 года","20 minutes":"20 минут","20 seconds":"20 секунд","26W":"26 недель","2D":"2 дня","2H":"2 часа","2M":"2 месяца","2W":"2 недели","2Y":"2 года","2hours":"Конец 2 часов","2m":"2 минуты","2s":"2 секунды","3 days":"3 дня","3 hours":"3 часа","3 minutes":"3 минуты","3 months":"3 месяца","30 minutes":"30 минут","30 seconds":"30 секунд","300ms":"300мс","30m":"30 минут","30minutes":"Конец 30 minutes","30s":"30 секунд","3D":"3 дня","3M":"3 месяца","3hours":"Конец 3 часов","3m":"3 минуты","3s":"3 секунды","4 days":"4 дня","4 minutes":"4 минуты","45 minutes":"45 минут","45m":"45 минут","4D":"4 дня","4W":"4 недели","4hours":"Конец 4 часов","4m":"4 минуты","5 minutes":"5 минут","5 seconds":"5 секунд","500ms":"500мс","5m":"5 минут","5minutes":"Конец 5 minutes","5s":"5 секунд","6 hours":"6 часов","6 months":"6 месяцев","60 seconds":"60 секунд","60s":"60 секунд","6H":"6 часов","6M":"6 месяцев","6hours":"Конец 6 часов","7 days":"7 дней","8W":"8 недель","8hours":"Конец 8 часов","90 seconds":"90 секунд",Acknowledged:bCt,Add:wCt,"Add line to chart":"Добавить линию в пресет","Add marking line to chart":"Добавить линию разметки на график","Add new line":"Добавить линию","Add new markings":"Добавить разметку","Add new state name":"Добавить новое название штата","Add new value":"Добавить новое значение","After comma":"После запятой",Aggregate:xCt,"Aggregate for lines":"Агрегация для линий",Aggregation:SCt,"Aggregation:":"Тип:",All:CCt,"Animation:":"Анимация:",Appearance:$Ct,Apply:kCt,"Are you sure for closing folder and discard unsaved changes?":"Вы уверены, что хотите закрыть папку и отменить несохраненные изменения?","Are you sure for delete this line?":"Вы уверены, что удалите эту строку?","Are you sure for delete this mark?":"Вы уверены, что удалите эту отметку?","Are you sure for delete this preset?":"Вы уверены, что хотите удалить этот пресет?","Are you sure for loading the chart and discard unsaved changes?":"Вы уверены, что хотите загрузить диаграмму и отменить несохраненные изменения?","Are you sure for loading the preset and discard unsaved changes?":"Вы уверены, что хотите загрузить предустановку и отменить несохраненные изменения?","Arrange bools":"Выстроить bool графики",Auto:ECt,"Auto (Line or Steps)":"Авто (линия или шаги)","Auto padding":"Авто-отступы","Auto save":"Автосохранение","Auto-refresh":"Автообновление","Auto-update:":"Обновлять сразу:",Axis:TCt,"Background of radar chart":"Фон радиолокационной диаграммы","Background:":"Фон:",Backgrounds:OCt,Bar:DCt,"Bar settings":"Настройки Bar","Bars width:":"Ширина бара:",Border:ACt,"Border color:":"Цвет рамки:","Border padding":"Отступы границы","Border width":"Ширина рамки","Border width:":"Ширина рамки:","Bottom, center, inside":"Снизу, по центру, внутри","Bottom, center, outside":"Снизу, по центру, снаружи","Bottom, left":"Снизу, слева","Bottom, left, inside":"Снизу, слева, внутри","Bottom, right":"Снизу, справа","Bottom, right, inside":"Снизу, справа, внутри","Bottom, right, outside":"Снизу, справа, снаружи",Cancel:ICt,"Cannot create unique ID":"Невозможно создать уникальный идентификатор","Chart Type":"Тип графика","Chart background":"Фон диаграммы","Chart background:":"Фон графика:","Chart size":"Размер диаграммы","Chart type":"Тип диаграммы","Charts preview":"Предварительный просмотр диаграмм",Circle:MCt,Close:PCt,Collapse:NCt,"Collapse all lines":"Свернуть все строки","Collapse all markings":"Свернуть все маркировки",Color:RCt,"Common Y Axis":"Общая ось Y","Convert formula":"Формула преобразования",Copy:jCt,"Copy link to clipboard":"Скопировать ссылку в буфер обмена",Counts:LCt,Create:zCt,"Create folder":"Создать папку","Create new folder":"Создать новую папку","Create new preset":"Создать новый пресет","Create preset":"Создать пресет","Custom chart background:":"Пользовательский фон графика:","Custom time format":"Пользовательский формат времени",Data:FCt,Default:BCt,Delete:WCt,"Delete object":"Удалить объект","Delete text value":"Удалить текстовое значение",Dialog:HCt,"Digits after comma":"Цифры после запятой","Drag me":"Перетащи меня",Edit:UCt,"Edit folder name":"Изменить имя папки","Edit options for line %s":"Редактировать настройки для линии %s","Edit state names":"Изменить названия штатов","Empty preset cannot be saved!":"Пустой пресет не может быть сохранен!","Enable logging for new state":"Включить ведение журнала для нового состояния","Enable zoom and pan":"Разрешить зум","Enable zoom and pan:":"Разрешить увеличение и сдвиг:",End:VCt,"End:":"Конец:","Enter chart name":"Введите имя графика",Expand:qCt,"Expand all lines":"Развернуть все строки","Expand all markings":"Развернуть все маркировки","Export data color":"Цвет кнопки экспорта данных",Fill:GCt,"Fill color:":"Цвет заливки:","Fill range:":"Всегда весь интервал:","Fill(0to1)":"Фон(0to1)",Folder:XCt,"Font size":"Размер шрифта",From:JCt,"From line %s":"Из строки %s",Functions:YCt,Grid:KCt,"Grid color":"Цвет сетки","Grid color:":"Цвет сетки:","Group by":"Группа по","HH:MM dd.mm":"ЧЧ:ММ дд.мм",Height:ZCt,"Height:":"Высота:","Hide X grid":"Скрыть сетку X","Hide Y grid":"Скрыть сетку Y","Hide edit button:":"Скрыть кнопку 'Редактировать':","Hide nulls in tooltip":"Скрыть нули в подсказке","Hover details":"Детали при наведении","Hover details:":"Показывать подсказку:",ID:QCt,IDs:e$t,"If the current value is not older than X seconds, assume it is still the same.":"Если текущее значение не старше X секунд, предположим, что оно осталось прежним.","In seconds":"В секундах",Individual:t$t,"Input data":"Входные данные","Inside / No lines":"Внутри / Без линий","Inside / With lines":"Внутри / С линиями","Inside end":"Внутри, на конце","Inside end bottom":"Внутри, в конце, внизу","Inside end top":"Внутри, в конце, сверху","Inside middle":"Внутри, посередине","Inside middle bottom":"Внутри, посередине, снизу","Inside middle top":"Внутри, посередине, вверху","Inside start":"Внутри, в начале","Inside start bottom":"Внутри, в начале, внизу","Inside start top":"Внутри, на старте, сверху",Instance:r$t,"Integral unit":"Интегральный блок","Interpolate:":"Интерполяция:","Interpolation method":"Метод интерполяции",Intervals:n$t,"Invalid object":"Недопустимый объект",Label:o$t,"Label color:":"Цвет подписи:","Label font size:":"Шрифт подписи:",Labels:a$t,"Last changed":"Изменён",Left:i$t,Legend:s$t,"Legend background":"Фон легенды","Legend background:":"Фон легенды:","Legend columns:":"Колонок в легенде:","Legend opacity (from 0 to 1):":"Прозрачность легенды (от 0 до 1):","Legend text color":"Цвет текста легенды",Limits:l$t,Line:c$t,"Line ID":"ID линии","Line Width":"Ширина линии","Line and area":"Линия и область","Line style":"Стиль линии",Link:d$t,"Live update every":"Обновление каждые","Live update every:":"Обновлять каждые:","Load without save":"Загрузить без сохранения","Loading...":"Загрузка...","Lower value or ID":"Нижнее значение или ID",Main:u$t,Mark:p$t,Markings:h$t,Max:f$t,"Max:":"Максимум:",Members:m$t,"Middle, left, inside":"Посередине, слева, внутри","Middle, right, inside":"Посередине, справа, внутри","Middle, right, outside":"Посередине, справа, снаружи",Min:g$t,"Min:":"Минимум:",MinMax:v$t,More:y$t,"Move to folder":"Переместить в папку",Multiple:_$t,"NULL as":"NULL как",Name:b$t,"Name:":"Имя:","No ID yet":"ID еще нет","No background":"Без фона","No border:":"Без рамки:","No future":"Никаких ценностей в будущем","No interpolate in hover":"В подсказке не интерполировать","No presets created yet":"Предварительные настройки еще не созданы",None:w$t,Offset:x$t,Ok:S$t,Open:C$t,"Open chart in own window":"Открыть график в собственном окне","Open in own window":"Открыть в собственном окне",Options:$$t,Orientation:k$t,Others:E$t,"Outside / No lines":"Снаружи / Без линий","Outside/ With lines":"Снаружи/ С линиями",Paste:T$t,Percentile:O$t,Pie:D$t,"Please confirm":"Пожалуйста, подтвердите",Points:A$t,Polar:I$t,Polygonal:M$t,"Predefined background:":"Выбрать фон:",Presets:P$t,Processing:N$t,"Processing...":"Обработка...",Range:R$t,"Range:":"Интервал:",Relative:j$t,Rename:L$t,"Rename preset":"Переименовать пресет","Reorder presets in folders":"Изменить порядок пресетов в папках","Reset settings":"Сбросить настройки","Reset zoom after idle":"Сбросить масштаб после простоя",Right:z$t,Role:F$t,Room:B$t,Rooms:W$t,Root:H$t,"Save current preset and load":"Сохранить текущую предустановку и загрузить","Save image button color":"Сохранить цвет кнопки изображения","Save into:":"Сохранить как:","Scatter plot":"Scatter plot",Seconds:U$t,Select:V$t,"Select ID":"Выбрать ID","Select for":"Выберите для","Shadow Size":"Ширина тени","Show controls":"Показать элементы управления","Show export data button":"Показать кнопку экспорта данных","Show labels:":"Подписи:","Show legend":"Показать легенду","Show legend:":"Показать легенду:","Show only in legend":"Показать только в легенде","Show points":"Показать баллы","Show save image button":"Показать кнопку сохранения изображения","Show values":"Показать значения",Smoothing:q$t,Source:G$t,Spline:X$t,Stack:J$t,"Start:":"Начало:","State value":"Числовое значение","State value text":"Текст значения","Step span:":"Интервал шага:","Step type":"Тип шага","Step type:":"Шаги:",Steps:Y$t,"Steps on start":"Шаги на старте",Style:K$t,"System settings":"Системные настройки",Text:Z$t,"Text X offset":"Сдвиг текста по X","Text Y offset":"Смещение текста по Y","Text by false":"Текст для false","Text by true":"Текст для true","Text color":"Цвет текста","Text position":"Расположение текста","Text size":"Размер текста","Text values not used":"Текстовые значения не используются",Texts:Q$t,Theme:ekt,"This time offset will be added to the X label by displaying data on the chart":"Это временное смещение будет добавлено к метке X при отображении данных на диаграмме.","This time offset will be added to the request by reading data from DB":"Это смещение времени будет добавлено к запросу при чтении данных из БД.","Ticks from:":"Подписи X-делений из:",Time:tkt,"Time Span":"Временной интервал","Time format":"Формат времени","Time format:":"Формат времени:","Time span":"Промежуток времени","Time stamp":"Время",Title:rkt,"Title color":"Цвет заголовка","Title color:":"Цвет названия:","Title position":"Позиция заголовка","Title position:":"Позиция названия:","Title size":"Размер заголовка","Title size:":"Размер названия:","Title:":"Название:","Top, center, inside":"Сверху, по центру, внутри","Top, left":"Сверху, слева","Top, left, inside":"Сверху, слева, внутри","Top, right":"Сверху, справа","Top, right, inside":"Сверху, справа, внутри","Top, right, outside":"Сверху, справа, снаружи",Type:nkt,Unit:okt,"Units:":"Единицы:",Update:akt,"Update objects":"Обновить объекты","Update states":"Обновить состояния","Upper value or ID":"Верхнее значение или ID","Use comma":"Используйте запятую","Use comma:":"Запятая-разделитель:","Use state names":"Используйте имена значений","User defined":"Пользовательские","User defined names:":"Задать имена графиков:","Valid time (sec)":"Действительное время (сек)",Value:ikt,Width:skt,"Width:":"Ширина:","Window background":"Фон окна","Window background:":"Фон окна:",With:lkt,"With border":"С границей","With lines":"С линиями",Without:ckt,"Without border":"Без границы","Without lines":"Без линий","X Axis":"Ось X","X Axis position":"Положение оси X","X axis labels color:":"Цвет текста по оси X:","X labels color":"Цвет меток X","X labels size":"Размер шрифта X","X ticks color":"Цвет меток X","X-Axis ticks":"Кол-во делений на шкале X","X-Label-Offset":"Смещение X-метки","X-Offset":"X-смещение","Y Axis":"Ось Y","Y Axis position":"Положение оси Y","Y axis labels color:":"Цвет текста по оси Y:","Y labels color":"Цвет ярлыков Y","Y labels size":"Размер шрифта Y","Y ticks color":"Цвет отметок Y","Y-Axis ticks":"Кол-во делений на шкале Y","Y-Offset":"Сдвиг по Y",'You can create a new markings with a "+" on the right.':"Вы можете создать новую маркировку знаком «+» справа.","You can drag and drop simple lines from the left list.":"Вы можете перетаскивать простые линии из левого списка.","add children":"Добавить под-категории",area:dkt,auto:ukt,average:pkt,bar:hkt,bottom:fkt,bottomColor:mkt,convert_help:gkt,copied:vkt,copy:ykt,count:_kt,counts:bkt,current:wkt,dashed:xkt,day:Skt,default:"по умолчанию",difference:Ckt,dotted:$kt,dow:kkt,edit:Ekt,"edit enum":"Изменить категорию","edit file":"Редактировать","end of 10 minutes":"Конец 10 minutes","end of 12 hours":"Конец 12 часов","end of 2 hours":"Конец 2 часов","end of 3 hours":"Конец 3 часов","end of 30 minutes":"Конец 30 minutes","end of 4 hours":"Конец 4 часов","end of 5 minutes":"Конец 5 minutes","end of 6 hours":"Конец 6 часов","end of 8 hours":"Конец 8 часов","end of day":"Конец дня","end of hour":"Конец часа","end of minute":"Конец минуты","end of previous saturday":"конец предыдущей субботы (2 недели)","end of previous sunday":"конец предыдущего воскресенья (2 недели)","end of saturday":"Конец субботы","end of sunday":"Конец недели",false:"null",horizontal:Tkt,i15min:Okt,i1day:Dkt,i1hour:Akt,i30days:Ikt,"ignore 'null'":"Игнорировать 'null'","ignore 'null':":"Игнорировать 'null':","ignore null values":"игнорировать значения null",integral:Mkt,"last value":"пред. значение",left:Pkt,"left colored":"cлева в цвете",leftColor:Nkt,line:Rkt,linear:jkt,lineplot:Lkt,load:zkt,max:Fkt,middle:Bkt,min:Wkt,minmax:Hkt,month:Ukt,new:"новое",no:Vkt,"no null":" без null","non-processed":"необработанный",none:qkt,none_no:Gkt,now:Xkt,null:"null",off:Jkt,onchange:Ykt,"own axis":"собственная ось",percentile:Kkt,polar:Zkt,raw:Qkt,relative:eEt,reload:tEt,"restart script":"Перезапустить скрипт",right:rEt,"right colored":"справа в цвете",rightColor:nEt,role:oEt,save:aEt,"save %s":"сохранить %s",scatterplot:iEt,seconds:sEt,solid:lEt,spline:cEt,standard:dEt,static:"постоянный",steps:uEt,"this month":"этот месяц","this year":"этот год",to:pEt,today:hEt,top:fEt,"top over":"Сверху над","top under":"Сверху под",topColor:mEt,total:gEt,true:"пред. значение","update Preview":"Обновить","use 0 instead of null values":"Заменять null на 0",vertical:vEt,weekEurope:yEt,weekUsa:_Et,year:bEt,yes:wEt,ØL:"ØL","ØL - Line thickness":"ØL - толщина линии","ØL Line thickness":"ØL Толщина линии",ØS:"ØS","ØS - Shadow size":"ØS - Размер тени","ØS Shadow size":"ØS Размер тени"},SEt="Reconhecido",CEt="Adicionar",$Et="Agregar",kEt="Tipo",EEt="Todos",TEt="Aparência",OEt="Aplicar",DEt="Auto",AEt="Eixo",IEt="Fundos",MEt="Bar",PEt="Fronteira",NEt="Cancelar",REt="Círculo",jEt="Fechar",LEt="Colapso",zEt="Cor",FEt="cópia de",BEt="Contagens",WEt="Crio",HEt="Dados",UEt="Padrão",VEt="Excluir",qEt="Diálogo",GEt="Editar",XEt="Fim",JEt="Expandir",YEt="Preencher",KEt="Pasta",ZEt="A partir de:",QEt="Funções",e2t="Rede",t2t="Altura",r2t="identidade",n2t="IDs",o2t="Individual",a2t="Instância",i2t="intervalos",s2t="Rótulo",l2t="Etiquetas",c2t="Esquerda",d2t="lenda",u2t="Limites",p2t="Linha",h2t="Ligação",f2t="a Principal",m2t="Marcando",g2t="Marcas",v2t="Max",y2t="Membros",_2t="Min",b2t="Mínimo máximo",w2t="Mais",x2t="Múltiplo",S2t="Nome",C2t="Nenhum",$2t="X-Offset",k2t="Está bem",E2t="Aberto",T2t="Opções",O2t="Orientação",D2t="Outras",A2t="Colar",I2t="Percentil",M2t="Torta",P2t="Pontos",N2t="Gráfico polar",R2t="Poligonal",j2t="Presets",L2t="Em processamento",z2t="Alcance",F2t="Relativo",B2t="Renomear",W2t="Certo",H2t="Função",U2t="Quarto",V2t="quartos",q2t="Raiz",G2t="Segundos",X2t="Selecione",J2t="Suavização",Y2t="Fonte",K2t="Spline",Z2t="Pilha",Q2t="Passos",eTt="Estilo",tTt="Texto",rTt="Texto:% s",nTt="Tema",oTt="Tempo",aTt="Título",iTt="Tipo",sTt="Unidade",lTt="Atualizar",cTt="Valor",dTt="Largura",uTt="Com",pTt="Sem",hTt="Área",fTt="auto",mTt="média",gTt="Barra",vTt="inferior",yTt="colorido inferior",_Tt='Digite a fórmula como "val / 1000 + 3". Esta fórmula será aplicada a todos os valores do ponto de dados selecionado.',bTt="copiado",wTt="cópia",xTt="contar",STt="contagens",CTt="Valor atual",$Tt="tracejadas",kTt="dia",ETt="diferença",TTt="pontilhado",OTt="Dia da semana",DTt="editar",ATt="horizontal",ITt="15 minutos",MTt="1 dia",PTt="1 hora",NTt="30 dias",RTt="integrante",jTt="esquerda",LTt="colorido esquerdo",zTt="Linha",FTt="linear",BTt="Trama de linha",WTt="carga",HTt="máximo",UTt="meio",VTt="min",qTt="mínimo máximo",GTt="mês",XTt="não",JTt="Nenhum",YTt="Nenhum",KTt="agora",ZTt="fora",QTt="em mudança",eOt="percentil",tOt="Gráfico polar",rOt="cru",nOt="relativo",oOt="recarregar",aOt="certo",iOt="cor clara",sOt="Função",lOt="Salve ",cOt="Parcela de dispersão",dOt="segundos",uOt="sólido",pOt="Spline",hOt="padrão",fOt="Passos",mOt="para",gOt="hoje",vOt="topo",yOt="colorido superior",_Ot="total",bOt="vertical",wOt="fim do dia",xOt="fim de domingo",SOt="ano",COt="sim",$Ot={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"% s atrás","ØL":"& # 216L","ØS":"& # 216S","0 seconds":"0 segundos","0s":"0 segundos","1 day":"1 dia","1 hour":"1 hora","1 minute":"1 minuto","1 month":"1 mês","1 week":"1 semana","1 year":"1 ano","10 minutes":"10 minutos","10 seconds":"10 segundos","10m":"10 minutos","10minutes":"fim de 10 minutos","10s":"10 segundos","12 hours":"12 horas","12H":"12 horas","12W":"12 semanas","12hours":"fim de 12 horas","14 days":"14 dias","15 minutes":"15 minutos","15 seconds":"15 segundos","15m":"15 minutos","1D":"1 dia","1H":"1 hora","1M":"1 mês","1W":"1 semana","1Y":"1 ano","1hour":"fim de hora","1minute":"fim de minuto","1s":"1 segundo","2 days":"2 dias","2 hours":"2 horas","2 minutes":"2 minutos","2 months":"2 meses","2 weeks":"2 semanas","2 years":"2 anos","20 minutes":"20 minutos","20 seconds":"20 segundos","26W":"26 semanas","2D":"2 dias","2H":"2 horas","2M":"2 meses","2W":"2 semanas","2Y":"2 anos","2hours":"fim de 2 horas","2m":"2 minutos","2s":"2 segundos","3 days":"3 dias","3 hours":"3 horas","3 minutes":"3 minutos","3 months":"3 meses","30 minutes":"30 minutos","30 seconds":"30 segundos","300ms":"300ms","30m":"30 minutos","30minutes":"fim de 30 minutos","30s":"30 segundos","3D":"3 dias","3M":"3 meses","3hours":"fim de 3 horas","3m":"3 minutos","3s":"3 segundos","4 days":"4 dias","4 minutes":"4 minutos","45 minutes":"45 minutos","45m":"45 minutos","4D":"4 dias","4W":"4 semanas","4hours":"fim de 4 horas","4m":"4 minutos","5 minutes":"5 minutos","5 seconds":"5 segundos","500ms":"500ms","5m":"5 minutos","5minutes":"fim de 5 minutos","5s":"5 segundos","6 hours":"6 horas","6 months":"6 meses","60 seconds":"60 segundos","60s":"60 segundos","6H":"6 horas","6M":"6 meses","6hours":"fim de 6 horas","7 days":"7 dias","8W":"8 semanas","8hours":"fim de 8 horas","90 seconds":"90 segundos",Acknowledged:SEt,Add:CEt,"Add line to chart":"Adicionar linha ao gráfico","Add marking line to chart":"Adicionar linha de marcação ao gráfico","Add new line":"Adicionar nova linha","Add new markings":"Adicionar novas marcações","Add new state name":"Adicionar novo nome de estado","Add new value":"Adicionar novo valor","After comma":"Após a vírgula",Aggregate:$Et,"Aggregate for lines":"Agregação para linhas",Aggregation:kEt,"Aggregation:":"Tipo:",All:EEt,"Animation:":"Animação:",Appearance:TEt,Apply:OEt,"Are you sure for closing folder and discard unsaved changes?":"Tem certeza de que deseja fechar a pasta e descartar as alterações não salvas?","Are you sure for delete this line?":"Tem certeza que deseja excluir esta linha?","Are you sure for delete this mark?":"Tem certeza de que deseja excluir esta marca?","Are you sure for delete this preset?":"Tem certeza de que deseja excluir esta predefinição?","Are you sure for loading the chart and discard unsaved changes?":"Tem certeza de que deseja carregar o gráfico e descartar as alterações não salvas?","Are you sure for loading the preset and discard unsaved changes?":"Tem certeza de que deseja carregar a predefinição e descartar as alterações não salvas?","Arrange bools":"Organizar booleanos",Auto:DEt,"Auto (Line or Steps)":"Auto (linha ou etapas)","Auto padding":"Recuo automático","Auto save":"Salvamento automático","Auto-refresh":"Atualização automática","Auto-update:":"Atualização automática:",Axis:AEt,"Background of radar chart":"Plano de fundo do gráfico de radar","Background:":"Fundo:",Backgrounds:IEt,Bar:MEt,"Bar settings":"Configurações da barra","Bars width:":"Largura das barras:",Border:PEt,"Border color:":"Cor da borda:","Border padding":"Preenchimento de borda","Border width":"Largura da borda","Border width:":"Largura da borda:","Bottom, center, inside":"No fundo, no centro, no interior","Bottom, center, outside":"Fundo, centro, fora","Bottom, left":"Inferior esquerdo","Bottom, left, inside":"Parte inferior, esquerda, dentro","Bottom, right":"Canto inferior direito","Bottom, right, inside":"Parte inferior, direita, dentro","Bottom, right, outside":"Parte inferior, direita, fora",Cancel:NEt,"Cannot create unique ID":"Não é possível criar ID exclusivo","Chart Type":"Tipo de gráfico","Chart background":"Plano de fundo do gráfico","Chart background:":"Contexto do gráfico:","Chart size":"Tamanho do gráfico","Chart type":"Tipo de Gráfico","Charts preview":"Visualização de gráficos",Circle:REt,Close:jEt,Collapse:LEt,"Collapse all lines":"Recolher todas as linhas","Collapse all markings":"Recolher todas as marcações",Color:zEt,"Common Y Axis":"Eixo Y comum","Convert formula":"Fórmula de conversão",Copy:FEt,"Copy link to clipboard":"Copiar link para a área de transferência",Counts:BEt,Create:WEt,"Create folder":"Criar pasta","Create new folder":"Criar nova pasta","Create new preset":"Criar uma nova predefinição","Create preset":"Criar predefinição","Custom chart background:":"Fundo de gráfico personalizado:","Custom time format":"Formato de hora personalizado",Data:HEt,Default:UEt,Delete:VEt,"Delete object":"Eliminar objeto","Delete text value":"Excluir valor de texto",Dialog:qEt,"Digits after comma":"Dígitos depois da vírgula","Drag me":"Arraste-me",Edit:GEt,"Edit folder name":"Editar o nome da pasta","Edit options for line %s":"Editar opções para a linha% s","Edit state names":"Editar nomes de estado","Empty preset cannot be saved!":"Predefinição vazia não pode ser salva!","Enable logging for new state":"Ativar registro para novo estado","Enable zoom and pan":"Ativar zoom e panorâmica","Enable zoom and pan:":"Ative o zoom e pan:",End:XEt,"End:":"Fim:","Enter chart name":"Digite o nome do gráfico",Expand:JEt,"Expand all lines":"Expandir todas as linhas","Expand all markings":"Expanda todas as marcações","Export data color":"Cor do botão de exportação de dados",Fill:YEt,"Fill color:":"Cor de preenchimento:","Fill range:":"Faixa de preenchimento:","Fill(0to1)":"Preencher (0 a 1)",Folder:KEt,"Font size":"Tamanho da fonte",From:ZEt,"From line %s":"Da linha %s",Functions:QEt,Grid:e2t,"Grid color":"Cor da grade","Grid color:":"Cor da grade:","Group by":"Grupo por","HH:MM dd.mm":"HH:MM dd.mm",Height:t2t,"Height:":"Altura:","Hide X grid":"Ocultar grade X","Hide Y grid":"Ocultar grade Y","Hide edit button:":"Ocultar botão de edição:","Hide nulls in tooltip":"Ocultar nulos na dica de ferramenta","Hover details":"Detalhes de navegação","Hover details:":"Detalhes do mouse:",ID:r2t,IDs:n2t,"If the current value is not older than X seconds, assume it is still the same.":"Se o valor atual não for mais antigo do que X segundos, assuma que ainda é o mesmo.","In seconds":"Em segundos",Individual:o2t,"Input data":"Dados de entrada","Inside / No lines":"Dentro / Sem linhas","Inside / With lines":"Dentro / Com linhas","Inside end":"Dentro, no final","Inside end bottom":"Dentro, no final, no fundo","Inside end top":"Dentro, no final, em cima","Inside middle":"Dentro, no meio","Inside middle bottom":"Dentro, no meio, embaixo","Inside middle top":"Dentro, no meio, em cima","Inside start":"Dentro, no começo","Inside start bottom":"Dentro, no início, na parte inferior","Inside start top":"Dentro, no começo, no topo",Instance:a2t,"Integral unit":"Unidade integral","Interpolate:":"Interpolar:","Interpolation method":"Método de interpolação",Intervals:i2t,"Invalid object":"Objeto inválido",Label:s2t,"Label color:":"Cor do rótulo:","Label font size:":"Etiquetar tamanho da fonte:",Labels:l2t,"Last changed":"Última modificação",Left:c2t,Legend:d2t,"Legend background":"Fundo da legenda","Legend background:":"Legend background:","Legend columns:":"Colunas da legenda:","Legend opacity (from 0 to 1):":"Opacidade da legenda (de 0 a 1):","Legend text color":"Cor do texto da legenda",Limits:u2t,Line:p2t,"Line ID":"ID da linha","Line Width":"Espessura da linha","Line and area":"Linha e área","Line style":"Estilo de linha",Link:h2t,"Live update every":"Atualização ao vivo a cada","Live update every:":"Atualização ao vivo a cada:","Load without save":"Carregar sem salvar","Loading...":"Carregando...","Lower value or ID":"Menor valor ou ID",Main:f2t,Mark:m2t,Markings:g2t,Max:v2t,"Max:":"Máximo:",Members:y2t,"Middle, left, inside":"Médio, esquerda, dentro","Middle, right, inside":"Médio, direito, dentro","Middle, right, outside":"Médio, direito, fora",Min:_2t,"Min:":"Mínimo:",MinMax:b2t,More:w2t,"Move to folder":"Mover para a pasta",Multiple:x2t,"NULL as":"NULL como",Name:S2t,"Name:":"Nome:","No ID yet":"Sem ID ainda","No background":"Sem fundo","No border:":"Sem borda:","No future":"Sem valores no futuro","No interpolate in hover":"Sem interpolação na dica de ferramenta","No presets created yet":"Nenhuma predefinição criada ainda",None:C2t,Offset:$2t,Ok:k2t,Open:E2t,"Open chart in own window":"Abra o gráfico na própria janela","Open in own window":"Abra na própria janela",Options:T2t,Orientation:O2t,Others:D2t,"Outside / No lines":"Fora / Sem linhas","Outside/ With lines":"Fora / Com linhas",Paste:A2t,Percentile:I2t,Pie:M2t,"Please confirm":"Por favor confirme",Points:P2t,Polar:N2t,Polygonal:R2t,"Predefined background:":"Antecedentes predefinidos:",Presets:j2t,Processing:L2t,"Processing...":"Em processamento...",Range:z2t,"Range:":"Alcance:",Relative:F2t,Rename:B2t,"Rename preset":"Renomear predefinição","Reorder presets in folders":"Reordenar predefinições em pastas","Reset settings":"Redefinir configurações","Reset zoom after idle":"Redefinir o zoom após inatividade",Right:W2t,Role:H2t,Room:U2t,Rooms:V2t,Root:q2t,"Save current preset and load":"Salvar predefinição atual e carregar","Save image button color":"Salvar cor do botão de imagem","Save into:":"Salvar em:","Scatter plot":"Gráfico de dispersão",Seconds:G2t,Select:X2t,"Select ID":"Selecione ID","Select for":"Selecione para","Shadow Size":"Tamanho da sombra","Show controls":"Mostrar controles","Show export data button":"Mostrar botão de exportação de dados","Show labels:":"Mostrar rótulos:","Show legend":"Mostrar legenda","Show legend:":"Mostrar lenda:","Show only in legend":"Mostrar apenas na legenda","Show points":"Mostrar pontos","Show save image button":"Mostrar botão de salvar imagem","Show values":"Mostrar valores",Smoothing:J2t,Source:Y2t,Spline:K2t,Stack:Z2t,"Start:":"Começar:","State value":"valor do estado","State value text":"Texto do valor do estado","Step span:":"Passo:","Step type":"Tipo de etapa","Step type:":"Tipo de etapa:",Steps:Q2t,"Steps on start":"Passos no início",Style:eTt,"System settings":"Configurações de sistema",Text:tTt,"Text X offset":"X-Deslocamento de texto","Text Y offset":"Deslocamento Y do texto","Text by false":"Texto por falso","Text by true":"Texto por verdadeiro","Text color":"Cor do texto","Text position":"Posição de texto","Text size":"Tamanho do texto","Text values not used":"Valores de texto não usados",Texts:rTt,Theme:nTt,"This time offset will be added to the X label by displaying data on the chart":"Este deslocamento de tempo será adicionado ao rótulo X exibindo dados no gráfico","This time offset will be added to the request by reading data from DB":"Este deslocamento de tempo será adicionado à solicitação lendo os dados do banco de dados","Ticks from:":"Use X-ticks de:",Time:oTt,"Time Span":"Intervalo de tempo","Time format":"Formato de hora","Time format:":"Formato do tempo:","Time span":"Intervalo de tempo","Time stamp":"Marca de horário",Title:aTt,"Title color":"Cor do título","Title color:":"Cor do título:","Title position":"Posição do título","Title position:":"Posição do título:","Title size":"Tamanho do título","Title size:":"Tamanho do título:","Title:":"Título:","Top, center, inside":"Topo, centro, dentro","Top, left":"Superior esquerdo","Top, left, inside":"Topo, esquerda, dentro","Top, right":"Canto superior direito","Top, right, inside":"Topo, direito, dentro","Top, right, outside":"Topo, direito, fora",Type:iTt,Unit:sTt,"Units:":"Unidades:",Update:lTt,"Update objects":"Atualizar objetos","Update states":"Estado de atualização","Upper value or ID":"Valor superior ou ID","Use comma":"Use vírgula","Use comma:":"Usar vírgula:","Use state names":"Usar nomes de estado","User defined":"Usuário definido","User defined names:":"Nomes definidos pelo usuário:","Valid time (sec)":"Tempo válido (s)",Value:cTt,Width:dTt,"Width:":"Largura:","Window background":"Fundo da janela","Window background:":"Fundo da janela:",With:uTt,"With border":"Com fronteira","With lines":"Com linhas",Without:pTt,"Without border":"Sem fronteira","Without lines":"Sem linhas","X Axis":"X Axis","X Axis position":"Posição do eixo X","X axis labels color:":"Cor de etiquetas X:","X labels color":"Cor dos rótulos X","X labels size":"Tamanho da fonte X","X ticks color":"Cor X carrapatos","X-Axis ticks":"Carrapatos do X-Axis","X-Label-Offset":"Deslocamento da etiqueta X","X-Offset":"X-Offset","Y Axis":"Eixo Y","Y Axis position":"Posição do eixo Y","Y axis labels color:":"Etiquetas de etiquetas Y:","Y labels color":"Cor dos rótulos Y","Y labels size":"Tamanho da fonte Y","Y ticks color":"Cor dos carrapatos Y","Y-Axis ticks":"Carrapatos do Y-Axis","Y-Offset":"Y-Offset",'You can create a new markings with a "+" on the right.':'Você pode criar uma nova marcação com um "+" à direita.',"You can drag and drop simple lines from the left list.":"Você pode arrastar e soltar linhas simples da lista à esquerda.","add children":"adicionar filhos",area:hTt,auto:fTt,average:mTt,bar:gTt,bottom:vTt,bottomColor:yTt,convert_help:_Tt,copied:bTt,copy:wTt,count:xTt,counts:STt,current:CTt,dashed:$Tt,day:kTt,default:"padrão",difference:ETt,dotted:TTt,dow:OTt,edit:DTt,"edit enum":"editar enum","edit file":"editar arquivo","end of 10 minutes":"fim de 10 minutos","end of 12 hours":"fim de 12 horas","end of 2 hours":"fim de 2 horas","end of 3 hours":"fim de 3 horas","end of 30 minutes":"fim de 30 minutos","end of 4 hours":"fim de 4 horas","end of 5 minutes":"fim de 5 minutos","end of 6 hours":"fim de 6 horas","end of 8 hours":"fim de 8 horas","end of day":"fim do dia","end of hour":"fim de hora","end of minute":"fim de minuto","end of previous saturday":"final do sábado anterior (2 semanas)","end of previous sunday":"final do domingo anterior (2 semanas)","end of saturday":"fim de sábado","end of sunday":"fim de domingo",false:"nulo",horizontal:ATt,i15min:ITt,i1day:MTt,i1hour:PTt,i30days:NTt,"ignore 'null'":"ignore 'null'","ignore 'null':":"ignore 'null':","ignore null values":"ignore valores nulos",integral:RTt,"last value":"último valor",left:jTt,"left colored":"cor esquerda",leftColor:LTt,line:zTt,linear:FTt,lineplot:BTt,load:WTt,max:HTt,middle:UTt,min:VTt,minmax:qTt,month:GTt,new:"Novo",no:XTt,"no null":"& nbsp; nulo","non-processed":"não processado",none:JTt,none_no:YTt,now:KTt,null:"nulo",off:ZTt,onchange:QTt,"own axis":"próprio eixo",percentile:eOt,polar:tOt,raw:rOt,relative:nOt,reload:oOt,"restart script":"reiniciar o script",right:aOt,"right colored":"cor certa",rightColor:iOt,role:sOt,save:lOt,"save %s":"salvar% s",scatterplot:cOt,seconds:dOt,solid:uOt,spline:pOt,standard:hOt,static:"estático",steps:fOt,"this month":"este mês","this year":"este ano",to:mOt,today:gOt,top:vOt,"top over":"mais alto","top under":"top sob",topColor:yOt,total:_Ot,true:"último valor","update Preview":"atualização Visualização","use 0 instead of null values":"use 0 em vez de valores nulos",vertical:bOt,weekEurope:wOt,weekUsa:xOt,year:SOt,yes:COt,ØL:"ØL","ØL - Line thickness":"ØL - Espessura da linha","ØL Line thickness":"Espessura da linha ØL",ØS:"ØS","ØS - Shadow size":"ØS - Tamanho da sombra","ØS Shadow size":"ØS tamanho da sombra"},kOt="Erkend",EOt="Toevoegen",TOt="Totaal",OOt="Type",DOt="Alle",AOt="Uiterlijk",IOt="Toepassen",MOt="Auto",POt="As",NOt="Achtergronden",ROt="Bar",jOt="Grens",LOt="Annuleer",zOt="Cirkel",FOt="Dichtbij",BOt="Ineenstorting",WOt="Kleur",HOt="Kopiëren",UOt="tellingen",VOt="Creëer",qOt="Gegevens",GOt="Standaard",XOt="Verwijderen",JOt="Dialoog",YOt="Bewerk",KOt="Einde",ZOt="Uitbreiden",QOt="Vullen",eDt="Map",tDt="Van:",rDt="Functies",nDt="Raster",oDt="Hoogte",aDt="ID kaart",iDt="IDs",sDt="individu",lDt="Aanleg",cDt="intervallen",dDt="Etiket",uDt="Etiketten",pDt="Links",hDt="Legende",fDt="Grenzen",mDt="Lijn",gDt="Link",vDt="Hoofd",yDt="Markering",_Dt="markeringen",bDt="Max",wDt="leden",xDt="min",SDt="MinMax",CDt="meer",$Dt="Meerdere",kDt="Naam",EDt="Geen",TDt="-X Offset",ODt="OK",DDt="Open",ADt="opties",IDt="Oriëntatie",MDt="Anderen",PDt="Plakken",NDt="percentiel",RDt="Taart",jDt="punten",LDt="Polaire kaart",zDt="Veelhoekig",FDt="presets",BDt="Verwerken",WDt="Bereik",HDt="Familielid",UDt="Hernoemen",VDt="Rechts",qDt="Rol",GDt="Kamer",XDt="Kamers",JDt="Wortel",YDt="seconden",KDt="kiezen",ZDt="smoothing",QDt="Bron",eAt="Spline",tAt="stack",rAt="Stappen",nAt="Stijl",oAt="Tekst",aAt="Teksten",iAt="Thema",sAt="Tijd",lAt="Titel",cAt="Type",dAt="Eenheid",uAt="Bijwerken",pAt="Waarde",hAt="Breedte",fAt="Met",mAt="Zonder",gAt="Gebied",vAt="auto",yAt="gemiddelde",_At="Bar",bAt="bodem",wAt="onderaan gekleurd",xAt='Voer de formule in zoals "val / 1000 + 3". Deze formule wordt toegepast op alle waarden van het geselecteerde datapunt.',SAt="gekopieerd",CAt="kopiëren",$At="graaf",kAt="tellingen",EAt="Huidige waarde",TAt="onderbroken",OAt="dag",DAt="verschil",AAt="gestippeld",IAt="Dag van de week",MAt="bewerking",PAt="horizontaal",NAt="15 minuten",RAt="1 dag",jAt="1 uur",LAt="30 dagen",zAt="integraal",FAt="links",BAt="links gekleurd",WAt="Lijn",HAt="lineair",UAt="Lijnplot",VAt="laden",qAt="max",GAt="midden-",XAt="min",JAt="MinMax",YAt="maand",KAt="Nee",ZAt="geen",QAt="geen",eIt="nu",tIt="uit",rIt="over verandering",nIt="percentiel",oIt="Polaire kaart",aIt="rauw",iIt="familielid",sIt="herladen",lIt="rechts",cIt="rechts gekleurd",dIt="rol",uIt="opslaan",pIt="Scatterplot",hIt="seconden",fIt="solide",mIt="spline",gIt="standaard-",vIt="Stappen",yIt="naar",_It="vandaag",bIt="top",wIt="bovenaan gekleurd",xIt="totaal",SIt="verticaal",CIt="einde van de dag",$It="einde van zondag",kIt="jaar",EIt="Ja",TIt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"% s geleden","ØL":"& # 216L","ØS":"& # 216S","0 seconds":"0 seconden","0s":"0 seconden","1 day":"1 dag","1 hour":"1 uur","1 minute":"1 minuut","1 month":"1 maand","1 week":"1 week","1 year":"1 jaar","10 minutes":"10 minuten","10 seconds":"10 seconden","10m":"10 minuten","10minutes":"einde van 10 minuten","10s":"10 seconden","12 hours":"12 uren","12H":"12 uren","12W":"12 weken","12hours":"einde van 12 uur","14 days":"14 dagen","15 minutes":"15 minuten","15 seconds":"15 seconden","15m":"15 minuten","1D":"1 dag","1H":"1 uur","1M":"1 maand","1W":"1 week","1Y":"1 jaar","1hour":"einde van het uur","1minute":"einde van de minuut","1s":"1 seconde","2 days":"2 dagen","2 hours":"twee uur","2 minutes":"2 minuten","2 months":"2 maanden","2 weeks":"2 weken","2 years":"2 jaar","20 minutes":"20 minuten","20 seconds":"20 seconden","26W":"26 weken","2D":"2 dagen","2H":"twee uur","2M":"2 maanden","2W":"2 weken","2Y":"2 jaar","2hours":"einde van 2 uur","2m":"2 minuten","2s":"2 seconden","3 days":"3 dagen","3 hours":"3 uur","3 minutes":"3 minuten","3 months":"3 maanden","30 minutes":"30 minuten","30 seconds":"30 seconden","300ms":"300ms","30m":"30 minuten","30minutes":"einde van 30 minuten","30s":"30 seconden","3D":"3 dagen","3M":"3 maanden","3hours":"einde van 3 uur","3m":"3 minuten","3s":"3 seconden","4 days":"4 dagen","4 minutes":"4 minuten","45 minutes":"45 minuten","45m":"45 minuten","4D":"4 dagen","4W":"4 weken","4hours":"einde van 4 uur","4m":"4 minuten","5 minutes":"5 minuten","5 seconds":"5 seconden","500ms":"500ms","5m":"5 minuten","5minutes":"einde van 5 minuten","5s":"5 seconden","6 hours":"6 uur","6 months":"6 maanden","60 seconds":"60 seconden","60s":"60 seconden","6H":"6 uur","6M":"6 maanden","6hours":"einde van 6 uur","7 days":"7 dagen","8W":"8 weken","8hours":"einde van 8 uur","90 seconds":"90 seconden",Acknowledged:kOt,Add:EOt,"Add line to chart":"Voeg lijn toe aan diagram","Add marking line to chart":"Voeg een markeringslijn toe aan de grafiek","Add new line":"Voeg een nieuwe regel toe","Add new markings":"Voeg nieuwe markeringen toe","Add new state name":"Nieuwe staatsnaam toevoegen","Add new value":"Nieuwe waarde toevoegen","After comma":"Na een komma",Aggregate:TOt,"Aggregate for lines":"Aggregatie voor lijnen",Aggregation:OOt,"Aggregation:":"Type:",All:DOt,"Animation:":"animatie:",Appearance:AOt,Apply:IOt,"Are you sure for closing folder and discard unsaved changes?":"Weet u zeker dat u de map wilt sluiten en de niet-opgeslagen wijzigingen wilt verwijderen?","Are you sure for delete this line?":"Weet u zeker dat u deze regel wilt verwijderen?","Are you sure for delete this mark?":"Weet u zeker dat u deze markering wilt verwijderen?","Are you sure for delete this preset?":"Weet u zeker dat u deze voorinstelling wilt verwijderen?","Are you sure for loading the chart and discard unsaved changes?":"Weet u zeker dat u de grafiek wilt laden en niet-opgeslagen wijzigingen wilt verwijderen?","Are you sure for loading the preset and discard unsaved changes?":"Weet u zeker dat u de voorinstelling wilt laden en niet-opgeslagen wijzigingen wilt verwijderen?","Arrange bools":"Booleans regelen",Auto:MOt,"Auto (Line or Steps)":"Auto (lijn of stappen)","Auto padding":"Automatisch inspringen","Auto save":"Automatisch opslaan","Auto-refresh":"Automatisch vernieuwen","Auto-update:":"Auto update:",Axis:POt,"Background of radar chart":"Achtergrond van radargrafiek","Background:":"Achtergrond:",Backgrounds:NOt,Bar:ROt,"Bar settings":"Bar-instellingen","Bars width:":"Staaf breedte:",Border:jOt,"Border color:":"Rand kleur:","Border padding":"Rand opvulling","Border width":"Grensbreedte","Border width:":"Grensbreedte:","Bottom, center, inside":"Onder, midden, binnen","Bottom, center, outside":"Onder, midden, buiten","Bottom, left":"Linksonder","Bottom, left, inside":"Onder, links, binnen","Bottom, right":"Rechts onder","Bottom, right, inside":"Onder, rechts, binnen","Bottom, right, outside":"Onder, rechts, buiten",Cancel:LOt,"Cannot create unique ID":"Kan geen unieke ID aanmaken","Chart Type":"Diagramtype","Chart background":"Grafiek achtergrond","Chart background:":"Grafiek achtergrond:","Chart size":"Grootte van de grafiek","Chart type":"Grafiektype","Charts preview":"Grafiekvoorbeeld",Circle:zOt,Close:FOt,Collapse:BOt,"Collapse all lines":"Vouw alle regels samen","Collapse all markings":"Vouw alle markeringen samen",Color:WOt,"Common Y Axis":"Gemeenschappelijke Y-as","Convert formula":"Conversie formule",Copy:HOt,"Copy link to clipboard":"Kopieer link naar klembord",Counts:UOt,Create:VOt,"Create folder":"Map aanmaken","Create new folder":"Maak een nieuwe map","Create new preset":"Maak een nieuwe voorinstelling","Create preset":"Maak een voorinstelling","Custom chart background:":"Aangepaste grafiek achtergrond:","Custom time format":"Aangepast tijdformaat",Data:qOt,Default:GOt,Delete:XOt,"Delete object":"Object verwijderen","Delete text value":"Tekstwaarde verwijderen",Dialog:JOt,"Digits after comma":"Cijfers na komma","Drag me":"Sleep me",Edit:YOt,"Edit folder name":"Bewerk mapnaam","Edit options for line %s":"Bewerk opties voor regel% s","Edit state names":"Staatsnamen bewerken","Empty preset cannot be saved!":"Lege presets kunnen niet worden opgeslagen!","Enable logging for new state":"Schakel logboekregistratie in voor nieuwe staat","Enable zoom and pan":"Schakel zoomen en pannen in","Enable zoom and pan:":"Zoom en pan inschakelen:",End:KOt,"End:":"Einde:","Enter chart name":"Voer de diagramnaam in",Expand:ZOt,"Expand all lines":"Vouw alle regels uit","Expand all markings":"Vouw alle markeringen uit","Export data color":"Knopkleur gegevens exporteren",Fill:QOt,"Fill color:":"Opvulkleur:","Fill range:":"Vulbereik:","Fill(0to1)":"Fill (0to1)",Folder:eDt,"Font size":"Lettertypegrootte",From:tDt,"From line %s":"Van regel %s",Functions:rDt,Grid:nDt,"Grid color":"Rasterkleur","Grid color:":"Raster kleur:","Group by":"Groeperen op","HH:MM dd.mm":"UU:MM dd.mm",Height:oDt,"Height:":"Hoogte:","Hide X grid":"Verberg X-raster","Hide Y grid":"Verberg Y-raster","Hide edit button:":"Verberg bewerken knop:","Hide nulls in tooltip":"Verberg null-waarden in tooltip","Hover details":"Beweeg de details","Hover details:":"Hover details:",ID:aDt,IDs:iDt,"If the current value is not older than X seconds, assume it is still the same.":"Als de huidige waarde niet ouder is dan X seconden, neem dan aan dat deze nog steeds hetzelfde is.","In seconds":"In seconden",Individual:sDt,"Input data":"Invoergegevens","Inside / No lines":"Binnenkant / Geen regels","Inside / With lines":"Binnen / met lijnen","Inside end":"Binnen, aan het einde","Inside end bottom":"Binnen, aan het einde, onderaan","Inside end top":"Binnen, aan het einde, bovenop","Inside middle":"Binnen, in het midden","Inside middle bottom":"Binnen, in het midden, onderaan","Inside middle top":"Binnen, in het midden, bovenaan","Inside start":"Binnen, aan het begin","Inside start bottom":"Binnen, aan het begin, aan de onderkant","Inside start top":"Binnen, aan het begin, bovenop",Instance:lDt,"Integral unit":"Integrale eenheid","Interpolate:":"Interpoleren:","Interpolation method":"Interpolatie methode:",Intervals:cDt,"Invalid object":"Ongeldig object",Label:dDt,"Label color:":"Label kleur:","Label font size:":"Label lettergrootte:",Labels:uDt,"Last changed":"Laatst gewijzigd",Left:pDt,Legend:hDt,"Legend background":"Legenda achtergrond","Legend background:":"Legenda achtergrond:","Legend columns:":"Legenda kolommen:","Legend opacity (from 0 to 1):":"Legenda opaciteit (van 0 tot 1):","Legend text color":"Tekstkleur legenda",Limits:fDt,Line:mDt,"Line ID":"Lijn-ID","Line Width":"Lijnbreedte","Line and area":"Lijn en gebied","Line style":"Lijnstijl",Link:gDt,"Live update every":"Live update elke","Live update every:":"Live update elke:","Load without save":"Laden zonder opslaan","Loading...":"Bezig met laden...","Lower value or ID":"Lagere waarde of ID",Main:vDt,Mark:yDt,Markings:_Dt,Max:bDt,"Max:":"maximaal:",Members:wDt,"Middle, left, inside":"Midden, links, binnenkant","Middle, right, inside":"Midden, rechts, binnenkant","Middle, right, outside":"Midden, rechts, buiten",Min:xDt,"Min:":"Minimum:",MinMax:SDt,More:CDt,"Move to folder":"Verplaats naar map",Multiple:$Dt,"NULL as":"NULL als",Name:kDt,"Name:":"Naam:","No ID yet":"Nog geen ID","No background":"Geen achtergrond","No border:":"Geen grens:","No future":"Geen waarden in de toekomst","No interpolate in hover":"Geen interpolatie in tooltip","No presets created yet":"Er zijn nog geen voorinstellingen gemaakt",None:EDt,Offset:TDt,Ok:ODt,Open:DDt,"Open chart in own window":"Open kaart in eigen venster","Open in own window":"Openen in eigen raam",Options:ADt,Orientation:IDt,Others:MDt,"Outside / No lines":"Buiten / Geen lijnen","Outside/ With lines":"Buiten / met lijnen",Paste:PDt,Percentile:NDt,Pie:RDt,"Please confirm":"Bevestig alstublieft",Points:jDt,Polar:LDt,Polygonal:zDt,"Predefined background:":"Voorgedefinieerde achtergrond:",Presets:FDt,Processing:BDt,"Processing...":"Verwerken...",Range:WDt,"Range:":"bereik:",Relative:HDt,Rename:UDt,"Rename preset":"Hernoem preset","Reorder presets in folders":"Voorinstellingen in mappen opnieuw ordenen","Reset settings":"Reset instellingen","Reset zoom after idle":"Zoom opnieuw instellen na inactiviteit",Right:VDt,Role:qDt,Room:GDt,Rooms:XDt,Root:JDt,"Save current preset and load":"Huidige voorinstelling opslaan en laden","Save image button color":"Bewaar de kleur van de afbeeldingsknop","Save into:":"Bewaar in:","Scatter plot":"Scatterplot",Seconds:YDt,Select:KDt,"Select ID":"Selecteer ID","Select for":"Selecteer voor","Shadow Size":"Schaduwgrootte","Show controls":"Bedieningselementen weergeven","Show export data button":"Knop Exportgegevens weergeven","Show labels:":"Toon labels:","Show legend":"Legenda weergeven","Show legend:":"Legenda weergeven:","Show only in legend":"Alleen in legenda weergeven","Show points":"Toon punten","Show save image button":"Toon knop afbeelding opslaan","Show values":"Toon waarden",Smoothing:ZDt,Source:QDt,Spline:eAt,Stack:tAt,"Start:":"Begin:","State value":"Staat waarde","State value text":"Staat waarde tekst","Step span:":"Stap overspanning:","Step type":"Stap type","Step type:":"Stap type:",Steps:rAt,"Steps on start":"Stappen bij het starten",Style:nAt,"System settings":"Systeem instellingen",Text:oAt,"Text X offset":"Tekst X-offset","Text Y offset":"Tekst Y-offset","Text by false":"Tekst door vals","Text by true":"Tekst door waar","Text color":"Tekst kleur","Text position":"Tekstpositie","Text size":"Lettergrootte","Text values not used":"Tekstwaarden worden niet gebruikt",Texts:aAt,Theme:iAt,"This time offset will be added to the X label by displaying data on the chart":"Deze tijdsverschuiving wordt toegevoegd aan het X-label door gegevens op de kaart weer te geven","This time offset will be added to the request by reading data from DB":"Deze tijdverschuiving wordt aan het verzoek toegevoegd door gegevens uit DB te lezen","Ticks from:":"Gebruik X-ticks van:",Time:sAt,"Time Span":"Tijdspanne","Time format":"Tijd formaat","Time format:":"Tijd formaat:","Time span":"Tijdspanne","Time stamp":"Tijdstempel",Title:lAt,"Title color":"Titel kleur","Title color:":"Titel kleur:","Title position":"Titelpositie","Title position:":"Titel positie:","Title size":"Titel grootte","Title size:":"Titel grootte:","Title:":"Titel:","Top, center, inside":"Boven, midden, binnenkant","Top, left":"Linksboven","Top, left, inside":"Boven, links, binnen","Top, right":"Rechtsboven","Top, right, inside":"Boven, rechts, binnen","Top, right, outside":"Boven, rechts, buiten",Type:cAt,Unit:dAt,"Units:":"units:",Update:uAt,"Update objects":"Objecten bijwerken","Update states":"Status bijwerken","Upper value or ID":"Hoogste waarde of ID","Use comma":"Gebruik een komma","Use comma:":"Gebruik komma:","Use state names":"Gebruik staatsnamen","User defined":"Gebruiker gedefinieerde","User defined names:":"Door de gebruiker gedefinieerde namen:","Valid time (sec)":"Geldige tijd (sec)",Value:pAt,Width:hAt,"Width:":"Breedte:","Window background":"Venster achtergrond","Window background:":"Venster achtergrond:",With:fAt,"With border":"Met rand","With lines":"Met lijnen",Without:mAt,"Without border":"Zonder rand","Without lines":"Zonder lijnen","X Axis":"X-as","X Axis position":"X-as positie","X axis labels color:":"X labels kleur:","X labels color":"X labels kleur","X labels size":"X lettergrootte","X ticks color":"X tikt kleur","X-Axis ticks":"X-as-teken","X-Label-Offset":"X-label-offset","X-Offset":"X-offset","Y Axis":"Y-as","Y Axis position":"Y-as positie","Y axis labels color:":"Y-labels kleur:","Y labels color":"Y-labels kleur","Y labels size":"Y-lettergrootte","Y ticks color":"Y tikt kleur","Y-Axis ticks":"Y-as tikken","Y-Offset":"Y-offset",'You can create a new markings with a "+" on the right.':'U kunt nieuwe markeringen maken met een "+" aan de rechterkant.',"You can drag and drop simple lines from the left list.":"U kunt eenvoudige regels vanuit de linkerlijst slepen en neerzetten.","add children":"voeg kinderen toe",area:gAt,auto:vAt,average:yAt,bar:_At,bottom:bAt,bottomColor:wAt,convert_help:xAt,copied:SAt,copy:CAt,count:$At,counts:kAt,current:EAt,dashed:TAt,day:OAt,default:"standaard",difference:DAt,dotted:AAt,dow:IAt,edit:MAt,"edit enum":"edit enum","edit file":"bestand bewerken","end of 10 minutes":"einde van 10 minuten","end of 12 hours":"einde van 12 uur","end of 2 hours":"einde van 2 uur","end of 3 hours":"einde van 3 uur","end of 30 minutes":"einde van 30 minuten","end of 4 hours":"einde van 4 uur","end of 5 minutes":"einde van 5 minuten","end of 6 hours":"einde van 6 uur","end of 8 hours":"einde van 8 uur","end of day":"einde van de dag","end of hour":"einde van het uur","end of minute":"einde van de minuut","end of previous saturday":"eind vorige zaterdag (2 weken)","end of previous sunday":"eind vorige zondag (2 weken)","end of saturday":"einde van zaterdag","end of sunday":"einde van zondag",false:"nul",horizontal:PAt,i15min:NAt,i1day:RAt,i1hour:jAt,i30days:LAt,"ignore 'null'":"negeer 'null'","ignore 'null':":"negeer 'null':","ignore null values":"Negeer waarden negeren",integral:zAt,"last value":"laatste waarde",left:FAt,"left colored":"links gekleurd",leftColor:BAt,line:WAt,linear:HAt,lineplot:UAt,load:VAt,max:qAt,middle:GAt,min:XAt,minmax:JAt,month:YAt,new:"nieuwe",no:KAt,"no null":"& nbsp; geen null","non-processed":"niet-verwerkt",none:ZAt,none_no:QAt,now:eIt,null:"nul",off:tIt,onchange:rIt,"own axis":"eigen as",percentile:nIt,polar:oIt,raw:aIt,relative:iIt,reload:sIt,"restart script":"herstart script",right:lIt,"right colored":"rechts gekleurd",rightColor:cIt,role:dIt,save:uIt,"save %s":"bespaar% s",scatterplot:pIt,seconds:hIt,solid:fIt,spline:mIt,standard:gIt,static:"statisch",steps:vIt,"this month":"deze maand","this year":"dit jaar",to:yIt,today:_It,top:bIt,"top over":"opnieuw gedaan","top under":"top onder",topColor:wIt,total:xIt,true:"laatste waarde","update Preview":"voorproefje van de nieuwe versie","use 0 instead of null values":"gebruik 0 in plaats van nulwaarden",vertical:SIt,weekEurope:CIt,weekUsa:$It,year:kIt,yes:EIt,ØL:"ØL","ØL - Line thickness":"ØL - Lijndikte","ØL Line thickness":"ØL Lijndikte",ØS:"Os","ØS - Shadow size":"ØS - Schaduwmaat","ØS Shadow size":"ØS Schaduwmaat"},OIt="Reconnu",DIt="Ajouter",AIt="Agrégat",IIt="Type",MIt="Tout",PIt="Apparence",NIt="Appliquer",RIt="Auto",jIt="Axe",LIt="Arrière-plans",zIt="Bar",FIt="Frontière",BIt="Annuler",WIt="Cercle",HIt="Fermer",UIt="Effondrer",VIt="Couleur",qIt="Copie",GIt="Compte",XIt="Créer",JIt="Les données",YIt="Défaut",KIt="Effacer",ZIt="Dialogue",QIt="modifier",eMt="Fin",tMt="Développer",rMt="Remplir",nMt="Dossier",oMt="De:",aMt="Les fonctions",iMt="la grille",sMt="la taille",lMt="ID",cMt="ID",dMt="Individuel",uMt="Exemple",pMt="Intervalles",hMt="Étiquette",fMt="Étiquettes",mMt="La gauche",gMt="Légende",vMt="Limites",yMt="Ligne",_Mt="Lien",bMt="Principale",wMt="Marquage",xMt="Marquages",SMt="Max",CMt="Membres",$Mt="Min",kMt="Min max",EMt="plus",TMt="Plusieurs",OMt="prénom",DMt="Aucun",AMt="X-Offset",IMt="D'accord",MMt="Ouvrir",PMt="Options",NMt="Orientation",RMt="Autres",jMt="Pâte",LMt="Centile",zMt="Tarte",FMt="Points",BMt="Carte polaire",WMt="Polygonal",HMt="Presets",UMt="Traitement",VMt="Gamme",qMt="Relatif",GMt="Renommer",XMt="Droite",JMt="Rôle",YMt="Chambre",KMt="Pièces",ZMt="Racine",QMt="Secondes",ePt="Sélectionner",tPt="Lissage",rPt="Source",nPt="Spline",oPt="Empiler",aPt="Pas",iPt="Style",sPt="Texte",lPt="Les textes",cPt="Thème",dPt="Temps",uPt="Titre",pPt="Type",hPt="Unité",fPt="Mettre à jour",mPt="Valeur",gPt="Largeur",vPt="Avec",yPt="Sans pour autant",_Pt="Région",bPt="auto",wPt="moyenne",xPt="Bar",SPt="bas",CPt="fond coloré",$Pt='Entrez la formule comme "val / 1000 + 3". Cette formule sera appliquée à toutes les valeurs du point de données sélectionné.',kPt="copié",EPt="copie",TPt="compter",OPt="compte",DPt="Valeur actuelle",APt="brisé",IPt="journée",MPt="différence",PPt="pointé",NPt="Jour de la semaine",RPt="modifier",jPt="horizontal",LPt="15 minutes",zPt="Un jour",FPt="1 heure",BPt="30 jours",WPt="intégral",HPt="la gauche",UPt="laissé coloré",VPt="Ligne",qPt="linéaire",GPt="Graphique linéaire",XPt="charge",JPt="max",YPt="milieu",KPt="min",ZPt="min max",QPt="mois",eNt="non",tNt="aucun",rNt="rien",nNt="à présent",oNt="de",aNt="sur le changement",iNt="centile",sNt="Carte polaire",lNt="brut",cNt="relatif",dNt="recharger",uNt="droite",pNt="couleur droite",hNt="rôle",fNt="enregistrer",mNt="Scatter plot",gNt="secondes",vNt="solide",yNt="Spline",_Nt="la norme",bNt="Pas",wNt="à",xNt="aujourd'hui",SNt="Haut",CNt="top coloré",$Nt="total",kNt="verticale",ENt="fin de la journée",TNt="fin de dimanche",ONt="an",DNt="Oui",ANt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"il y a% s","ØL":"& # 216L","ØS":"& # 216S","0 seconds":"0 seconde","0s":"0 seconde","1 day":"Un jour","1 hour":"1 heure","1 minute":"1 minute","1 month":"1 mois","1 week":"1 semaine","1 year":"1 an","10 minutes":"10 minutes","10 seconds":"10 secondes","10m":"10 minutes","10minutes":"fin de 10 minutes","10s":"10 secondes","12 hours":"12 heures","12H":"12 heures","12W":"12 semaines","12hours":"fin de 12 heures","14 days":"14 jours","15 minutes":"15 minutes","15 seconds":"15 secondes","15m":"15 minutes","1D":"Un jour","1H":"1 heure","1M":"1 mois","1W":"1 semaine","1Y":"1 an","1hour":"fin de l'heure","1minute":"fin de minute","1s":"1 seconde","2 days":"2 jours","2 hours":"2 heures","2 minutes":"2 minutes","2 months":"2 mois","2 weeks":"2 semaines","2 years":"2 ans","20 minutes":"20 minutes","20 seconds":"20 secondes","26W":"26 semaines","2D":"2 jours","2H":"2 heures","2M":"2 mois","2W":"2 semaines","2Y":"2 ans","2hours":"fin de 2 heures","2m":"2 minutes","2s":"2 secondes","3 days":"3 jours","3 hours":"3 heures","3 minutes":"3 minutes","3 months":"3 mois","30 minutes":"30 minutes","30 seconds":"30 secondes","300ms":"300ms","30m":"30 minutes","30minutes":"fin de 30 minutes","30s":"30 secondes","3D":"3 jours","3M":"3 mois","3hours":"fin de 3 heures","3m":"3 minutes","3s":"3 secondes","4 days":"4 jours","4 minutes":"4 minutes","45 minutes":"45 minutes","45m":"45 minutes","4D":"4 jours","4W":"4 semaines","4hours":"fin de 4 heures","4m":"4 minutes","5 minutes":"5 minutes","5 seconds":"5 secondes","500ms":"500ms","5m":"5 minutes","5minutes":"fin de 5 minutes","5s":"5 secondes","6 hours":"6 heures","6 months":"6 mois","60 seconds":"60 secondes","60s":"60 secondes","6H":"6 heures","6M":"6 mois","6hours":"fin de 6 heures","7 days":"7 jours","8W":"8 semaines","8hours":"fin de 8 heures","90 seconds":"90 secondes",Acknowledged:OIt,Add:DIt,"Add line to chart":"Ajouter une ligne au graphique","Add marking line to chart":"Ajouter une ligne de marquage au graphique","Add new line":"Ajouter une nouvelle ligne","Add new markings":"Ajouter de nouvelles marques","Add new state name":"Ajouter un nouveau nom d'état","Add new value":"Ajouter une nouvelle valeur","After comma":"Après la virgule",Aggregate:AIt,"Aggregate for lines":"Agrégation pour les lignes",Aggregation:IIt,"Aggregation:":"Type:",All:MIt,"Animation:":"Animation:",Appearance:PIt,Apply:NIt,"Are you sure for closing folder and discard unsaved changes?":"Êtes-vous sûr de vouloir fermer le dossier et d’ignorer les modifications non enregistrées ?","Are you sure for delete this line?":"Êtes-vous sûr de vouloir supprimer cette ligne?","Are you sure for delete this mark?":"Êtes-vous sûr de vouloir supprimer cette marque?","Are you sure for delete this preset?":"Êtes-vous sûr de vouloir supprimer ce préréglage?","Are you sure for loading the chart and discard unsaved changes?":"Êtes-vous sûr de vouloir charger le graphique et d’ignorer les modifications non enregistrées ?","Are you sure for loading the preset and discard unsaved changes?":"Êtes-vous sûr de vouloir charger le préréglage et d’ignorer les modifications non enregistrées ?","Arrange bools":"Organiser les booléens",Auto:RIt,"Auto (Line or Steps)":"Auto (ligne ou pas)","Auto padding":"Retrait automatique","Auto save":"Sauvegarde automatique","Auto-refresh":"Actualisation automatique","Auto-update:":"Mise à jour automatique:",Axis:jIt,"Background of radar chart":"Fond de carte radar","Background:":"Contexte:",Backgrounds:LIt,Bar:zIt,"Bar settings":"Paramètres du bar","Bars width:":"Largeur des barres:",Border:FIt,"Border color:":"Couleur de la bordure:","Border padding":"Rembourrage de la bordure","Border width":"Largeur de la bordure","Border width:":"Largeur de la bordure:","Bottom, center, inside":"Bas, centre, intérieur","Bottom, center, outside":"Bas, centre, extérieur","Bottom, left":"En bas à gauche","Bottom, left, inside":"Bas, gauche, intérieur","Bottom, right":"En bas à droite","Bottom, right, inside":"En bas, à droite, à l'intérieur","Bottom, right, outside":"En bas, à droite, à l'extérieur",Cancel:BIt,"Cannot create unique ID":"Impossible de créer un identifiant unique","Chart Type":"Type de graphique","Chart background":"Fond de graphique","Chart background:":"Arrière-plan du graphique","Chart size":"Taille du graphique","Chart type":"Type de graphique","Charts preview":"Aperçu des graphiques",Circle:WIt,Close:HIt,Collapse:UIt,"Collapse all lines":"Réduire toutes les lignes","Collapse all markings":"Réduire toutes les marques",Color:VIt,"Common Y Axis":"Axe Y commun","Convert formula":"Formule de conversion",Copy:qIt,"Copy link to clipboard":"Copier le lien dans le presse-papiers",Counts:GIt,Create:XIt,"Create folder":"Créer le dossier","Create new folder":"Créer un nouveau dossier","Create new preset":"Créer un nouveau préréglage","Create preset":"Créer un préréglage","Custom chart background:":"Arrière-plan de graphique personnalisé:","Custom time format":"Format d'heure personnalisé",Data:JIt,Default:YIt,Delete:KIt,"Delete object":"Supprimer un objet","Delete text value":"Supprimer la valeur du texte",Dialog:ZIt,"Digits after comma":"Chiffres après virgule","Drag me":"Tire moi",Edit:QIt,"Edit folder name":"Modifier le nom du dossier","Edit options for line %s":"Modifier les options pour la ligne% s","Edit state names":"Modifier les noms d'état","Empty preset cannot be saved!":"Un préréglage vide ne peut pas être enregistré !","Enable logging for new state":"Activer la journalisation pour le nouvel état","Enable zoom and pan":"Activer le zoom et le panoramique","Enable zoom and pan:":"Activer le zoom et le panoramique:",End:eMt,"End:":"Fin:","Enter chart name":"Entrez le nom du diagramme",Expand:tMt,"Expand all lines":"Développer toutes les lignes","Expand all markings":"Développer toutes les marques","Export data color":"Couleur du bouton Exporter les données",Fill:rMt,"Fill color:":"La couleur de remplissage:","Fill range:":"Remplir gamme:","Fill(0to1)":"Remplir (0to1)",Folder:nMt,"Font size":"Taille de police",From:oMt,"From line %s":"De la ligne %s",Functions:aMt,Grid:iMt,"Grid color":"Couleur de la grille","Grid color:":"Couleur de la grille:","Group by":"Par groupe","HH:MM dd.mm":"HH:MM jj.mm",Height:sMt,"Height:":"La taille:","Hide X grid":"Masquer la grille X","Hide Y grid":"Masquer la grille Y","Hide edit button:":"Masquer le bouton d'édition:","Hide nulls in tooltip":"Masquer les valeurs nulles dans l'info-bulle","Hover details":"Survolez les détails","Hover details:":"Hover détails:",ID:lMt,IDs:cMt,"If the current value is not older than X seconds, assume it is still the same.":"Si la valeur actuelle n'est pas plus ancienne que X secondes, supposez qu'elle est toujours la même.","In seconds":"En secondes",Individual:dMt,"Input data":"Des données d'entrée","Inside / No lines":"À l'intérieur / Pas de lignes","Inside / With lines":"À l'intérieur / Avec des lignes","Inside end":"À l'intérieur, à la fin","Inside end bottom":"À l'intérieur, à la fin, en bas","Inside end top":"À l'intérieur, à la fin, au-dessus","Inside middle":"A l'intérieur, au milieu","Inside middle bottom":"A l'intérieur, au milieu, en bas","Inside middle top":"A l'intérieur, au milieu, en haut","Inside start":"À l'intérieur, au début","Inside start bottom":"À l'intérieur, au début, en bas","Inside start top":"À l'intérieur, au début, au-dessus",Instance:uMt,"Integral unit":"Unité intégrale","Interpolate:":"Interpoler:","Interpolation method":"Méthode d'interpolation",Intervals:pMt,"Invalid object":"Objet invalide",Label:hMt,"Label color:":"Étiquette couleur:","Label font size:":"Étiquette taille de la police:",Labels:fMt,"Last changed":"Dernière modification",Left:mMt,Legend:gMt,"Legend background":"Arrière-plan de la légende","Legend background:":"Contexte de la légende","Legend columns:":"Colonnes de légende:","Legend opacity (from 0 to 1):":"Opacité de la légende (de 0 à 1):","Legend text color":"Couleur du texte de la légende",Limits:vMt,Line:yMt,"Line ID":"Id de ligne","Line Width":"Largeur de ligne","Line and area":"Ligne et zone","Line style":"Style de ligne",Link:_Mt,"Live update every":"Mise à jour en direct tous les","Live update every:":"Mise à jour en direct tous les:","Load without save":"Charger sans sauvegarder","Loading...":"Chargement...","Lower value or ID":"Valeur inférieure ou ID",Main:bMt,Mark:wMt,Markings:xMt,Max:SMt,"Max:":"Maximum:",Members:CMt,"Middle, left, inside":"Milieu, gauche, intérieur","Middle, right, inside":"Moyen, droit, intérieur","Middle, right, outside":"Moyen, droit, dehors",Min:$Mt,"Min:":"Le minimum:",MinMax:kMt,More:EMt,"Move to folder":"Déplacer vers un dossier",Multiple:TMt,"NULL as":"NULL comme",Name:OMt,"Name:":"Prénom:","No ID yet":"Pas encore d'ID ","No background":"Pas de fond","No border:":"Pas de frontière:","No future":"Aucune valeur à l'avenir","No interpolate in hover":"Aucune interpolation dans l'info-bulle","No presets created yet":"Aucun préréglage n'a encore été créé",None:DMt,Offset:AMt,Ok:IMt,Open:MMt,"Open chart in own window":"Ouvrir le graphique dans sa propre fenêtre","Open in own window":"Ouvrir dans sa propre fenêtre",Options:PMt,Orientation:NMt,Others:RMt,"Outside / No lines":"Extérieur / Pas de lignes","Outside/ With lines":"Extérieur / Avec lignes",Paste:jMt,Percentile:LMt,Pie:zMt,"Please confirm":"Veuillez confirmer",Points:FMt,Polar:BMt,Polygonal:WMt,"Predefined background:":"Arrière-plan prédéfini:",Presets:HMt,Processing:UMt,"Processing...":"En traitement...",Range:VMt,"Range:":"Gamme:",Relative:qMt,Rename:GMt,"Rename preset":"Renommer le préréglage","Reorder presets in folders":"Réorganiser les préréglages dans les dossiers","Reset settings":"Réinitialiser les options","Reset zoom after idle":"Réinitialiser le zoom après inactivité",Right:XMt,Role:JMt,Room:YMt,Rooms:KMt,Root:ZMt,"Save current preset and load":"Enregistrer le préréglage actuel et charger","Save image button color":"Couleur du bouton Enregistrer l'image","Save into:":"Enregistrer dans:","Scatter plot":"Nuage de points",Seconds:QMt,Select:ePt,"Select ID":"Sélectionner un identifiant","Select for":"Sélectionnez pour","Shadow Size":"Taille de l'ombre","Show controls":"Afficher les contrôles","Show export data button":"Afficher le bouton d'exportation des données","Show labels:":"Afficher les étiquettes:","Show legend":"Afficher la légende","Show legend:":"Afficher la légende:","Show only in legend":"Afficher uniquement dans la légende","Show points":"Afficher les points","Show save image button":"Afficher le bouton d'enregistrement de l'image","Show values":"Afficher les valeurs",Smoothing:tPt,Source:rPt,Spline:nPt,Stack:oPt,"Start:":"Début:","State value":"Valeur d'état","State value text":"Texte de la valeur d'état","Step span:":"Étape span:","Step type":"Type d'étape","Step type:":"Type d'étape:",Steps:aPt,"Steps on start":"Étapes au démarrage",Style:iPt,"System settings":"Les paramètres du système",Text:sPt,"Text X offset":"X-Décalage de texte","Text Y offset":"Décalage Y du texte","Text by false":"Texte par faux","Text by true":"Texte par vrai","Text color":"Couleur du texte","Text position":"Position du texte","Text size":"Taille du texte","Text values not used":"Valeurs de texte non utilisées",Texts:lPt,Theme:cPt,"This time offset will be added to the X label by displaying data on the chart":"Ce décalage temporel sera ajouté à l'étiquette X en affichant les données sur le graphique","This time offset will be added to the request by reading data from DB":"Ce décalage horaire sera ajouté à la requête en lisant les données de la base de données","Ticks from:":"Utilisez les X-ticks de:",Time:dPt,"Time Span":"Durée","Time format":"Format de l'heure","Time format:":"Format de l'heure:","Time span":"Durée","Time stamp":"Horodatage",Title:uPt,"Title color":"Couleur du titre","Title color:":"Couleur du titre:","Title position":"Position du titre","Title position:":"Titre du poste:","Title size":"Taille du titre","Title size:":"Taille du titre:","Title:":"Titre:","Top, center, inside":"Haut, centre, intérieur","Top, left":"En haut à gauche","Top, left, inside":"Haut, gauche, intérieur","Top, right":"En haut à droite","Top, right, inside":"En haut, à droite, à l'intérieur","Top, right, outside":"Haut, droit, dehors",Type:pPt,Unit:hPt,"Units:":"Unités:",Update:fPt,"Update objects":"Mettre à jour","Update states":"Mettre à jour","Upper value or ID":"Valeur supérieure ou ID","Use comma":"Utilisez une virgule","Use comma:":"Utilisez une virgule:","Use state names":"Utiliser les noms d'état","User defined":"Défini par l'utilisateur","User defined names:":"Noms définis par l'utilisateur:","Valid time (sec)":"Temps valide (sec)",Value:mPt,Width:gPt,"Width:":"Largeur:","Window background":"Fond de fenêtre","Window background:":"Fond de fenêtre:",With:vPt,"With border":"Avec bordure","With lines":"Avec des lignes",Without:yPt,"Without border":"Sans bordure","Without lines":"Sans lignes","X Axis":"Axe X","X Axis position":"Position de l'axe X","X axis labels color:":"X étiquettes couleur:","X labels color":"Couleur des étiquettes X","X labels size":"X taille de police","X ticks color":"X ticks couleur","X-Axis ticks":"Tiques de l'axe des X","X-Label-Offset":"Décalage de l'étiquette X","X-Offset":"Décalage X","Y Axis":"Axe Y","Y Axis position":"Position de l'axe Y","Y axis labels color:":"Couleur des étiquettes Y:","Y labels color":"Couleur des étiquettes Y","Y labels size":"Taille de police Y","Y ticks color":"Couleur des graduations Y","Y-Axis ticks":"Tiques de l'axe des Y","Y-Offset":"Y-Offset",'You can create a new markings with a "+" on the right.':'Vous pouvez créer un nouveau marquage avec un "+" sur la droite.',"You can drag and drop simple lines from the left list.":"Vous pouvez faire glisser et déposer des lignes simples à partir de la liste de gauche.","add children":"ajouter des enfants",area:_Pt,auto:bPt,average:wPt,bar:xPt,bottom:SPt,bottomColor:CPt,convert_help:$Pt,copied:kPt,copy:EPt,count:TPt,counts:OPt,current:DPt,dashed:APt,day:IPt,default:"défaut",difference:MPt,dotted:PPt,dow:NPt,edit:RPt,"edit enum":"éditer enum","edit file":"modifier le fichier","end of 10 minutes":"fin de 10 minutes","end of 12 hours":"fin de 12 heures","end of 2 hours":"fin de 2 heures","end of 3 hours":"fin de 3 heures","end of 30 minutes":"fin de 30 minutes","end of 4 hours":"fin de 4 heures","end of 5 minutes":"fin de 5 minutes","end of 6 hours":"fin de 6 heures","end of 8 hours":"fin de 8 heures","end of day":"fin de la journée","end of hour":"fin de l'heure","end of minute":"fin de minute","end of previous saturday":"fin du samedi précédent (2 semaines)","end of previous sunday":"fin du dimanche précédent (2 semaines)","end of saturday":"fin de samedi","end of sunday":"fin de dimanche",false:"nul",horizontal:jPt,i15min:LPt,i1day:zPt,i1hour:FPt,i30days:BPt,"ignore 'null'":"ignore 'null'","ignore 'null':":"ignore 'null':","ignore null values":"ignorer les valeurs nulles",integral:WPt,"last value":"dernière valeur",left:HPt,"left colored":"gauche coloré",leftColor:UPt,line:VPt,linear:qPt,lineplot:GPt,load:XPt,max:JPt,middle:YPt,min:KPt,minmax:ZPt,month:QPt,new:"Nouveau",no:eNt,"no null":"& nbsp; non nul","non-processed":"non transformé",none:tNt,none_no:rNt,now:nNt,null:"nul",off:oNt,onchange:aNt,"own axis":"propre axe",percentile:iNt,polar:sNt,raw:lNt,relative:cNt,reload:dNt,"restart script":"redémarrer le script",right:uNt,"right colored":"bonne couleur",rightColor:pNt,role:hNt,save:fNt,"save %s":"enregistrer% s",scatterplot:mNt,seconds:gNt,solid:vNt,spline:yNt,standard:_Nt,static:"statique",steps:bNt,"this month":"ce mois-ci","this year":"cette année",to:wNt,today:xNt,top:SNt,"top over":"dessus","top under":"haut sous",topColor:CNt,total:$Nt,true:"dernière valeur","update Preview":"aperçu de mise à jour","use 0 instead of null values":"utilise 0 au lieu de valeurs nulles",vertical:kNt,weekEurope:ENt,weekUsa:TNt,year:ONt,yes:DNt,ØL:"ØL","ØL - Line thickness":"ØL - Épaisseur de ligne","ØL Line thickness":"ØL Épaisseur de ligne",ØS:"ØS","ØS - Shadow size":"ØS - Taille de l'ombre","ØS Shadow size":"ØS Taille de l'ombre"},INt="Riconosciuto",MNt="Aggiungere",PNt="Aggregato",NNt="Associazione",RNt="Tutti",jNt="Aspetto",LNt="Fare domanda a",zNt="Auto",FNt="Asse",BNt="Sfondi",WNt="Bar",HNt="Confine",UNt="Annulla",VNt="Cerchio",qNt="Vicino",GNt="Crollo",XNt="Colore",JNt="copia",YNt="Conteggio",KNt="Creare",ZNt="Dati",QNt="Predefinito",eRt="Elimina",tRt="Dialogo",rRt="Modifica",nRt="Fine",oRt="Espandere",aRt="Riempire",iRt="Cartella",sRt="A partire da:",lRt="Funzioni",cRt="Griglia",dRt="Altezza",uRt="ID",pRt="ID",hRt="Individuale",fRt="Esempio",mRt="Intervalli",gRt="Etichetta",vRt="Etichette",yRt="Sinistra",_Rt="Leggenda",bRt="Limiti",wRt="Linea",xRt="Collegamento",SRt="Principale",CRt="Marcatura",$Rt="Marcature",kRt="Massimo",ERt="Utenti",TRt="Minimo",ORt="MinMax",DRt="Oltre",ARt="Molteplici",IRt="Nome",MRt="Nessuna",PRt="X-Offset",NRt="Ok",RRt="Aperto",jRt="Opzioni",LRt="Orientamento",zRt="Altri",FRt="Incolla",BRt="percentile",WRt="Torta",HRt="Punti",URt="Carta polare",VRt="Poligonale",qRt="Predefiniti",GRt="in lavorazione",XRt="Gamma",JRt="Parente",YRt="Rinominare",KRt="Destra",ZRt="Ruolo",QRt="Stanza",e5t="Camere",t5t="Radice",r5t="Secondi",n5t="Seleziona",o5t="Smussare",a5t="Fonte",i5t="Spline",s5t="Catasta",l5t="Passi",c5t="Stile",d5t="Testo",u5t="Testi",p5t="Tema",h5t="Orario",f5t="Titolo",m5t="genere",g5t="Unità",v5t="Aggiorna",y5t="Valore",_5t="Larghezza",b5t="Con",w5t="Senza",x5t="Area",S5t="auto",C5t="Media",$5t="Barretta",k5t="In basso",E5t="Colorato in basso",T5t='Inserisci la formula come "val / 1000 + 3". Questa formula verrà applicata a tutti i valori del datapoint selezionato.',O5t="copiato",D5t="copia",A5t="contare",I5t="Conteggi",M5t="Valore corrente",P5t="tratteggiata",N5t="Giorno",R5t="differenza",j5t="punteggiato",L5t="Giorno della settimana",z5t="modificare",F5t="orizzontale",B5t="15 minuti",W5t="1 giorno",H5t="1 ora",U5t="30 giorni",V5t="integrante",q5t="sinistra",G5t="Colorato a sinistra",X5t="Linea",J5t="lineare",Y5t="Plot linea",K5t="Carica",Z5t="Massimo",Q5t="In mezzo",e3t="Minimo",t3t="minmax",r3t="Mese",n3t="No",o3t="Nulla",a3t="nessuno",i3t="Adesso",s3t="Spento",l3t="Con cambiamento",c3t="percentile",d3t="Carta polare",u3t="crudo",p3t="Corrispondente",h3t="Ricarica",f3t="destra",m3t="Colorato a destra",g3t="Ruolo",v3t="Salva",y3t="Diagramma di dispersione",_3t="secondi",b3t="solido",w3t="Linguetta",x3t="standard",S3t="Passi",C3t="per",$3t="Oggi",k3t="In alto",E3t="Colorato in alto",T3t="Totale",O3t="verticale",D3t="Fine del giorno",A3t="Fine della domenica",I3t="Anno",M3t="Sì",P3t={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"%s fa","ØL":"ØL","ØS":"ØS","0 seconds":"0 secondi","0s":"0 secondi","1 day":"1 giorno","1 hour":"1 ora","1 minute":"1 minuto","1 month":"1 mese","1 week":"1 settimana","1 year":"1 anno","10 minutes":"10 minuti","10 seconds":"10 secondi","10m":"10 minuti","10minutes":"Fine di 10 minuti","10s":"10 secondi","12 hours":"12 ore","12H":"12 ore","12W":"12 settimane","12hours":"Fine di 12 ore","14 days":"14 giorni","15 minutes":"15 minuti","15 seconds":"15 secondi","15m":"15 minuti","1D":"1 giorno","1H":"1 ora","1M":"1 mese","1W":"1 settimana","1Y":"1 anno","1hour":"Fine dell'ora","1minute":"Fine del minuto","1s":"1 secondo","2 days":"2 giorni","2 hours":"2 ore","2 minutes":"2 minuti","2 months":"2 mesi","2 weeks":"2 settimane","2 years":"2 anni","20 minutes":"20 minuti","20 seconds":"20 secondi","26W":"26 settimane","2D":"2 giorni","2H":"2 ore","2M":"2 mesi","2W":"2 settimane","2Y":"2 anni","2hours":"Fine di 2 ore","2m":"2 minuti","2s":"2 secondi","3 days":"3 giorni","3 hours":"3 ore","3 minutes":"3 minuti","3 months":"3 mesi","30 minutes":"30 minuti","30 seconds":"30 secondi","300ms":"300ms","30m":"30 minuti","30minutes":"Fine di 30 minuti","30s":"30 secondi","3D":"3 giorni","3M":"3 mesi","3hours":"Fine di 3 ore","3m":"3 minuti","3s":"3 secondi","4 days":"4 giorni","4 minutes":"4 minuti","45 minutes":"45 minuti","45m":"45 minuti","4D":"4 giorni","4W":"4 settimane","4hours":"Fine di 4 ore","4m":"4 minuti","5 minutes":"5 minuti","5 seconds":"5 secondi","500ms":"500ms","5m":"5 minuti","5minutes":"Fine di 5 minuti","5s":"5 secondi","6 hours":"6 ore","6 months":"6 mesi","60 seconds":"60 secondi","60s":"60 secondi","6H":"6 ore","6M":"6 mesi","6hours":"Fine di 6 ore","7 days":"7 giorni","8W":"8 settimane","8hours":"Fine di 8 ore","90 seconds":"90 secondi",Acknowledged:INt,Add:MNt,"Add line to chart":"Aggiungi linea al grafico","Add marking line to chart":"Aggiungi una linea di marcatura al grafico","Add new line":"Aggiungi una nuova linea","Add new markings":"Aggiungi nuovi segni","Add new state name":"Aggiungi il nome del nuovo stato","Add new value":"Aggiungi nuovo valore","After comma":"Dopo la virgola",Aggregate:PNt,"Aggregate for lines":"Aggregazione per linee",Aggregation:NNt,"Aggregation:":"Genere:",All:RNt,"Animation:":"Animazione:",Appearance:jNt,Apply:LNt,"Are you sure for closing folder and discard unsaved changes?":"Vuoi chiudere la cartella e ignorare le modifiche non salvate?","Are you sure for delete this line?":"Sei sicuro di cancellare questa riga?","Are you sure for delete this mark?":"Sei sicuro di cancellare questo segno?","Are you sure for delete this preset?":"Sei sicuro di eliminare questo preset?","Are you sure for loading the chart and discard unsaved changes?":"Vuoi caricare il grafico e ignorare le modifiche non salvate?","Are you sure for loading the preset and discard unsaved changes?":"Vuoi caricare il preset e ignorare le modifiche non salvate?","Arrange bools":"Disponi sfere",Auto:zNt,"Auto (Line or Steps)":"Auto (linea o gradini)","Auto padding":"Rientro automatico","Auto save":"Salvataggio automatico","Auto-refresh":"Auto aggiornamento","Auto-update:":"Aggiornamento automatico:",Axis:FNt,"Background of radar chart":"Sfondo del grafico radar","Background:":"Sfondo:",Backgrounds:BNt,Bar:WNt,"Bar settings":"Impostazioni della barra","Bars width:":"Larghezza delle barre:",Border:HNt,"Border color:":"Colore del bordo:","Border padding":"Imbottitura del bordo","Border width":"Larghezza del bordo","Border width:":"Larghezza del bordo:","Bottom, center, inside":"In basso, centrato, interno","Bottom, center, outside":"In basso, centrato, esterno","Bottom, left":"In basso, a sinistra","Bottom, left, inside":"In basso, a sinistra, interno","Bottom, right":"In basso, a destra","Bottom, right, inside":"In basso, a destra, interno","Bottom, right, outside":"In basso, a destra, esterno",Cancel:UNt,"Cannot create unique ID":"Impossibile creare un ID univoco","Chart Type":"Tipo di grafico","Chart background":"Sfondo grafico","Chart background:":"Sfondo del grafico:","Chart size":"Dimensioni del grafico","Chart type":"Tipo di grafico","Charts preview":"Anteprima dei grafici",Circle:VNt,Close:qNt,Collapse:GNt,"Collapse all lines":"Comprimi tutte le righe","Collapse all markings":"Comprimi tutti i contrassegni",Color:XNt,"Common Y Axis":"Asse comune Y","Convert formula":"Formula di conversione",Copy:JNt,"Copy link to clipboard":"Copia il link negli appunti",Counts:YNt,Create:KNt,"Create folder":"Creare una cartella","Create new folder":"Crea una nuova cartella","Create new preset":"Crea nuovo preset","Create preset":"Crea preset","Custom chart background:":"Sfondo grafico personalizzato:","Custom time format":"Formato ora personalizzato",Data:ZNt,Default:QNt,Delete:eRt,"Delete object":"Elimina oggetto","Delete text value":"Elimina il valore del testo",Dialog:tRt,"Digits after comma":"Cifre dopo la virgola","Drag me":"Trascinami",Edit:rRt,"Edit folder name":"Modifica il nome della cartella","Edit options for line %s":"Modifica le opzioni per la riga %s","Edit state names":"Modifica i nomi degli stati","Empty preset cannot be saved!":"Non è possibile salvare il preset vuoto!","Enable logging for new state":"Abilita la registrazione per il nuovo stato","Enable zoom and pan":"Abilita zoom e panoramica","Enable zoom and pan:":"Abilita zoom e panoramica:",End:nRt,"End:":"Fine:","Enter chart name":"Inserisci il nome del grafico",Expand:oRt,"Expand all lines":"Espandi tutte le linee","Expand all markings":"Espandi tutti i segni","Export data color":"Esporta colore pulsante dati",Fill:aRt,"Fill color:":"Colore di riempimento:","Fill range:":"Gamma di riempimento:","Fill(0to1)":"Riempi(0to1)",Folder:iRt,"Font size":"Dimensione del font",From:sRt,"From line %s":"Dalla riga %s",Functions:lRt,Grid:cRt,"Grid color":"Colore griglia","Grid color:":"Colore griglia:","Group by":"Raggruppare per","HH:MM dd.mm":"HH:MM gg.mm",Height:dRt,"Height:":"Altezza:","Hide X grid":"Nascondi griglia X.","Hide Y grid":"Nascondi griglia Y.","Hide edit button:":"Nascondi pulsante di modifica:","Hide nulls in tooltip":"Nascondi i valori nulli nella descrizione comando","Hover details":"Dettagli al passaggio del mouse","Hover details:":"Dettagli al passaggio del mouse:",ID:uRt,IDs:pRt,"If the current value is not older than X seconds, assume it is still the same.":"Se il valore corrente non è più vecchio di X secondi, supponi che sia sempre lo stesso.","In seconds":"In secondi",Individual:hRt,"Input data":"Dati in ingresso","Inside / No lines":"Interno / Senza linea","Inside / With lines":"Interno / Con linee","Inside end":"Dentro, alla fine","Inside end bottom":"Dentro, alla fine, in fondo","Inside end top":"Dentro, alla fine, sopra","Inside middle":"Dentro, in mezzo","Inside middle bottom":"Dentro, in mezzo, in basso","Inside middle top":"Dentro, in mezzo, in alto","Inside start":"All'interno, all'inizio","Inside start bottom":"All'interno, all'inizio, in basso","Inside start top":"Dentro, all'inizio, sopra",Instance:fRt,"Integral unit":"Unità integrale","Interpolate:":"Interpolare:","Interpolation method":"Metodo di interpolazione",Intervals:mRt,"Invalid object":"Oggetto non valido",Label:gRt,"Label color:":"Colore dell'etichetta:","Label font size:":"Dimensione del carattere dell'etichetta:",Labels:vRt,"Last changed":"Ultima modifica",Left:yRt,Legend:_Rt,"Legend background":"Sfondo della legenda","Legend background:":"Sfondo leggenda:","Legend columns:":"Colonne della legenda:","Legend opacity (from 0 to 1):":"Opacità della legenda (da 0 a 1):","Legend text color":"Colore del testo della legenda",Limits:bRt,Line:wRt,"Line ID":"ID linea","Line Width":"Larghezza della linea","Line and area":"Linea e area","Line style":"Stile della linea",Link:xRt,"Live update every":"Aggiornamento live ogni","Live update every:":"Aggiornamento in tempo reale ogni:","Load without save":"Carica senza salvare","Loading...":"Sto caricando...","Lower value or ID":"Valore minimo o ID",Main:SRt,Mark:CRt,Markings:$Rt,Max:kRt,"Max:":"Massimo:",Members:ERt,"Middle, left, inside":"In mezzo, a sinistra, interno","Middle, right, inside":"In mezzo, a destra, interno","Middle, right, outside":"In mezzo, a destra, esterno",Min:TRt,"Min:":"Minimo:",MinMax:ORt,More:DRt,"Move to folder":"Sposta nella cartella",Multiple:ARt,"NULL as":"NULL come",Name:IRt,"Name:":"Nome:","No ID yet":"Nessun ID ancora","No background":"Nessuno sfondo","No border:":"Nessun bordo:","No future":"Nessun valore in futuro","No interpolate in hover":"Nessuna interpolazione nel tooltip","No presets created yet":"Nessun preset ancora creato",None:MRt,Offset:PRt,Ok:NRt,Open:RRt,"Open chart in own window":"Apri il grafico nella propria finestra","Open in own window":"Apri nella propria finestra",Options:jRt,Orientation:LRt,Others:zRt,"Outside / No lines":"Esterno / Senza linea","Outside/ With lines":"Esterno / Con linee",Paste:FRt,Percentile:BRt,Pie:WRt,"Please confirm":"Per favore conferma",Points:HRt,Polar:URt,Polygonal:VRt,"Predefined background:":"Sfondo predefinito:",Presets:qRt,Processing:GRt,"Processing...":"In elaborazione...",Range:XRt,"Range:":"Intervallo:",Relative:JRt,Rename:YRt,"Rename preset":"Rinomina preset","Reorder presets in folders":"Riordina i preset nelle cartelle","Reset settings":"Ripristina l'impostazioni","Reset zoom after idle":"Reimposta lo zoom dopo il periodo di inattività",Right:KRt,Role:ZRt,Room:QRt,Rooms:e5t,Root:t5t,"Save current preset and load":"Salva il preset corrente e carica","Save image button color":"Salva il colore del pulsante dell'immagine","Save into:":"Salva in:","Scatter plot":"Trama a dispersione",Seconds:r5t,Select:n5t,"Select ID":"Seleziona ID","Select for":"Seleziona per","Shadow Size":"Dimensione ombreggatura","Show controls":"Mostra controlli","Show export data button":"Pulsante Mostra dati di esportazione","Show labels:":"Mostra etichette:","Show legend":"Mostra legenda","Show legend:":"Mostra legenda:","Show only in legend":"Mostra solo nella legenda","Show points":"Mostra punti","Show save image button":"Mostra pulsante salva immagine","Show values":"Mostra valori",Smoothing:o5t,Source:a5t,Spline:i5t,Stack:s5t,"Start:":"Inizio:","State value":"Valore statale","State value text":"Testo del valore di stato","Step span:":"Intervallo:","Step type":"Tipo di passo","Step type:":"Tipo di passa:",Steps:l5t,"Steps on start":"Passi all'avvio",Style:c5t,"System settings":"Impostazioni di sistema",Text:d5t,"Text X offset":"X-Offset del testo","Text Y offset":"Offset Y del testo","Text by false":"Testo per falso","Text by true":"Testo per vero","Text color":"Colore del testo","Text position":"Posizione del testo","Text size":"Dimensione del testo","Text values not used":"Valori di testo non utilizzati",Texts:u5t,Theme:p5t,"This time offset will be added to the X label by displaying data on the chart":"Questa differenza di tempo verrà aggiunta all'etichetta X visualizzando i dati sul grafico","This time offset will be added to the request by reading data from DB":"Questo offset temporale verrà aggiunto alla richiesta leggendo i dati dal DB","Ticks from:":"Usa X-tick da:",Time:h5t,"Time Span":"Arco di tempo","Time format":"Formato orario","Time format:":"Formato orario:","Time span":"Arco di tempo","Time stamp":"Data e ora",Title:f5t,"Title color":"Colore del titolo","Title color:":"Colore del titolo:","Title position":"Posizione del titolo","Title position:":"Posizione del titolo:","Title size":"Dimensioni del titolo","Title size:":"Dimensione del titolo:","Title:":"Titolo:","Top, center, inside":"In alto, centrato, interno","Top, left":"In alto, a sinistra","Top, left, inside":"In alto, a sinistra, interno","Top, right":"In alto, a destra","Top, right, inside":"In alto, a destra, interno","Top, right, outside":"In alto, a destra, esterno",Type:m5t,Unit:g5t,"Units:":"Unità:",Update:v5t,"Update objects":"Aggiorna gli Oggetti","Update states":"Stati di aggiornamento","Upper value or ID":"Valore massimo o ID","Use comma":"Usa la virgola","Use comma:":"Usa la virgola:","Use state names":"Usa nomi di stato","User defined":"Definito dall'utente","User defined names:":"Nomi definiti dall'utente:","Valid time (sec)":"Tempo valido (sec)",Value:y5t,Width:_5t,"Width:":"Larghezza:","Window background":"Sfondo della finestra","Window background:":"Sfondo finestra:",With:b5t,"With border":"Con bordo","With lines":"Con linee",Without:w5t,"Without border":"Senza bordo","Without lines":"Senza linee","X Axis":"Asse X.","X Axis position":"Posizione dell'asse X.","X axis labels color:":"Colore etichette asso X:","X labels color":"Colore delle etichette X.","X labels size":"Dimensione carattere X","X ticks color":"Colore delle zecche X.","X-Axis ticks":"Interasse Asse X","X-Label-Offset":"Offset etichetta X","X-Offset":"X-Offset","Y Axis":"Asse Y.","Y Axis position":"Posizione dell'asse Y.","Y axis labels color:":"Colore etichette asso Y:","Y labels color":"Colore etichette Y","Y labels size":"Y dimensione del carattere","Y ticks color":"Y fa il colore","Y-Axis ticks":"Interasse Asse Y.","Y-Offset":"Y-Offset",'You can create a new markings with a "+" on the right.':'È possibile creare una nuova marcatura con un "+" a destra.',"You can drag and drop simple lines from the left list.":"Puoi trascinare e rilasciare semplici righe dall'elenco a sinistra.","add children":"Aggiungi figlio",area:x5t,auto:S5t,average:C5t,bar:$5t,bottom:k5t,bottomColor:E5t,convert_help:T5t,copied:O5t,copy:D5t,count:A5t,counts:I5t,current:M5t,dashed:P5t,day:N5t,default:"Predefinito",difference:R5t,dotted:j5t,dow:L5t,edit:z5t,"edit enum":"Modifica enum","edit file":"Modifica file","end of 10 minutes":"Fine dei 10 minuti","end of 12 hours":"Fine di 12 ore","end of 2 hours":"Fine di 2 ore","end of 3 hours":"Fine di 3 ore","end of 30 minutes":"Fine dei 30 minuti","end of 4 hours":"Fine di 4 ore","end of 5 minutes":"Fine dei 5 minuti","end of 6 hours":"Fine di 6 ore","end of 8 hours":"Fine di 8 ore","end of day":"Fine del giorno","end of hour":"Fine dell'ora","end of minute":"Fine del minuto","end of previous saturday":"fine del sabato precedente (2 settimane)","end of previous sunday":"fine della domenica precedente (2 settimane)","end of saturday":"Fine di sabato","end of sunday":"Fine della domenica",false:"Null",horizontal:F5t,i15min:B5t,i1day:W5t,i1hour:H5t,i30days:U5t,"ignore 'null'":"Ignora 'null'","ignore 'null':":"Ignora 'null':","ignore null values":"Ignora valori null",integral:V5t,"last value":"Ultimo valore",left:q5t,"left colored":"lasciato colorato",leftColor:G5t,line:X5t,linear:J5t,lineplot:Y5t,load:K5t,max:Z5t,middle:Q5t,min:e3t,minmax:t3t,month:r3t,new:"Nuovo",no:n3t,"no null":"& nbsp; non null","non-processed":"non elaborato",none:o3t,none_no:a3t,now:i3t,null:"Null",off:s3t,onchange:l3t,"own axis":"proprio asse",percentile:c3t,polar:d3t,raw:u3t,relative:p3t,reload:h3t,"restart script":"Riavvia lo script",right:f3t,"right colored":"colore giusto",rightColor:m3t,role:g3t,save:v3t,"save %s":"salva %s",scatterplot:y3t,seconds:_3t,solid:b3t,spline:w3t,standard:x3t,static:"Statico",steps:S3t,"this month":"Questo mese","this year":"Quest'anno",to:C3t,today:$3t,top:k3t,"top over":"Al di sopra","top under":"Al di sotto",topColor:E3t,total:T3t,true:"Ultimo valore","update Preview":"Aggiorna anteprima","use 0 instead of null values":"usa 0 invece di valori null",vertical:O3t,weekEurope:D3t,weekUsa:A3t,year:I3t,yes:M3t,ØL:"ØL","ØL - Line thickness":"ØL - Spessore della linea","ØL Line thickness":"ØL Spessore della linea",ØS:"ØS","ØS - Shadow size":"ØS - Dimensione ombra","ØS Shadow size":"ØS Dimensione ombra"},N3t="Admitido",R3t="Agregar",j3t="Agregar",L3t="Tipo",z3t="Todas",F3t="Apariencia",B3t="Aplicar",W3t="Auto",H3t="Eje",U3t="Antecedentes",V3t="Bar",q3t="Frontera",G3t="Cancelar",X3t="Círculo",J3t="Cerca",Y3t="Colapso",K3t="Color",Z3t="Copiar",Q3t="Cuenta",ejt="Crear",tjt="Datos",rjt="Defecto",njt="Eliminar",ojt="Diálogo",ajt="Editar",ijt="Fin",sjt="Expandir",ljt="Llenar",cjt="Carpeta",djt="De:",ujt="Funciones",pjt="Cuadrícula",hjt="Altura",fjt="CARNÉ DE IDENTIDAD",mjt="IDs",gjt="Individual",vjt="Ejemplo",yjt="Intervalos",_jt="Etiqueta",bjt="Etiquetas",wjt="Izquierda",xjt="Leyenda",Sjt="Limites",Cjt="Línea",$jt="Enlazar",kjt="Principal",Ejt="Calificación",Tjt="Marcas",Ojt="Max",Djt="Miembros",Ajt="Min.",Ijt="Mínimo máximo",Mjt="Más",Pjt="Múltiple",Njt="Nombre",Rjt="Ninguna",jjt="X-Offset",Ljt="De acuerdo",zjt="Abierto",Fjt="Opciones",Bjt="Orientación",Wjt="Otros",Hjt="Pegar",Ujt="percentil",Vjt="Tarta",qjt="Puntos",Gjt="carta polar",Xjt="Poligonal",Jjt="Presets",Yjt="Procesando",Kjt="Rango",Zjt="Relativo",Qjt="Rebautizar",e4t="Derecha",t4t="Papel",r4t="Habitación",n4t="Habitaciones",o4t="Raíz",a4t="Segundos",i4t="Seleccionar",s4t="Suavizado",l4t="Fuente",c4t="Ranura",d4t="Apilar",u4t="Pasos",p4t="Estilo",h4t="Texto",f4t="Textos",m4t="Tema",g4t="Hora",v4t="Título",y4t="Tipo",_4t="Unidad",b4t="Actualizar",w4t="Valor",x4t="Anchura",S4t="Con",C4t="Sin",$4t="Zona",k4t="auto",E4t="promedio",T4t="Bar",O4t="fondo",D4t="color de fondo",A4t='Ingrese la fórmula como "val / 1000 + 3". Esta fórmula se aplicará a todos los valores del punto de datos seleccionado.',I4t="copiado",M4t="Copiar",P4t="contar",N4t="conteos",R4t="Valor actual",j4t="estropeado",L4t="día",z4t="diferencia",F4t="punteado",B4t="Día de la semana",W4t="editar",H4t="horizontal",U4t="15 minutos",V4t="1 día",q4t="1 hora",G4t="30 dias",X4t="integral",J4t="izquierda",Y4t="color izquierdo",K4t="Línea",Z4t="lineal",Q4t="Linear plot",eLt="carga",tLt="máximo",rLt="medio",nLt="min",oLt="mínimo máximo",aLt="mes",iLt="no",sLt="ninguna",lLt="ninguna",cLt="ahora",dLt="apagado",uLt="en cambio",pLt="percentil",hLt="Carta polar",fLt="crudo",mLt="relativo",gLt="recargar",vLt="derecho",yLt="color derecho",_Lt="papel",bLt="salvar",wLt="Gráfico de dispersión",xLt="segundos",SLt="sólido",CLt="Ranura",$Lt="estándar",kLt="Pasos",ELt="a",TLt="hoy",OLt="parte superior",DLt="tapa coloreada",ALt="total",ILt="vertical",MLt="fin del día",PLt="fin del domingo",NLt="año",RLt="sí",jLt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"hace% s","ØL":"& # 216L","ØS":"& # 216S","0 seconds":"0 segundos","0s":"0 segundos","1 day":"1 día","1 hour":"1 hora","1 minute":"1 minuto","1 month":"1 mes","1 week":"1 semana","1 year":"1 año","10 minutes":"10 minutos","10 seconds":"10 segundos","10m":"10 minutos","10minutes":"fin de 10 minutos","10s":"10 segundos","12 hours":"12 horas","12H":"12 horas","12W":"12 semanas","12hours":"fin de 12 horas","14 days":"14 dias","15 minutes":"15 minutos","15 seconds":"15 segundos","15m":"15 minutos","1D":"1 día","1H":"1 hora","1M":"1 mes","1W":"1 semana","1Y":"1 año","1hour":"fin de hora","1minute":"fin del minuto","1s":"1 segundo","2 days":"2 días","2 hours":"2 horas","2 minutes":"2 minutos","2 months":"2 meses","2 weeks":"2 semanas","2 years":"2 años","20 minutes":"20 minutos","20 seconds":"20 segundos","26W":"26 semanas","2D":"2 días","2H":"2 horas","2M":"2 meses","2W":"2 semanas","2Y":"2 años","2hours":"fin de 2 horas","2m":"2 minutos","2s":"2 segundos","3 days":"3 días","3 hours":"3 horas","3 minutes":"3 minutos","3 months":"3 meses","30 minutes":"30 minutos","30 seconds":"30 segundos","300ms":"300ms","30m":"30 minutos","30minutes":"fin de 30 minutos","30s":"30 segundos","3D":"3 días","3M":"3 meses","3hours":"fin de 3 horas","3m":"3 minutos","3s":"3 segundos","4 days":"4 dias","4 minutes":"4 minutos","45 minutes":"45 minutos","45m":"45 minutos","4D":"4 dias","4W":"4 semanas","4hours":"fin de 4 horas","4m":"4 minutos","5 minutes":"5 minutos","5 seconds":"5 segundos","500ms":"500ms","5m":"5 minutos","5minutes":"fin de 5 minutos","5s":"5 segundos","6 hours":"6 horas","6 months":"6 meses","60 seconds":"60 segundos","60s":"60 segundos","6H":"6 horas","6M":"6 meses","6hours":"fin de 6 horas","7 days":"7 días","8W":"8 semanas","8hours":"fin de 8 horas","90 seconds":"90 segundos",Acknowledged:N3t,Add:R3t,"Add line to chart":"Agregar línea al gráfico","Add marking line to chart":"Agregar línea de marcado al gráfico","Add new line":"Agregar nueva línea","Add new markings":"Agregar nuevas marcas","Add new state name":"Agregar nuevo nombre de estado","Add new value":"Agregar nuevo valor","After comma":"Después de la coma",Aggregate:j3t,"Aggregate for lines":"Agregación por líneas",Aggregation:L3t,"Aggregation:":"Tipo:",All:z3t,"Animation:":"Animación:",Appearance:F3t,Apply:B3t,"Are you sure for closing folder and discard unsaved changes?":"¿Está seguro de cerrar la carpeta y descartar los cambios no guardados?","Are you sure for delete this line?":"¿Está seguro de eliminar esta línea?","Are you sure for delete this mark?":"¿Está seguro de eliminar esta marca?","Are you sure for delete this preset?":"¿Está seguro de eliminar este ajuste preestablecido?","Are you sure for loading the chart and discard unsaved changes?":"¿Está seguro de cargar el gráfico y descartar los cambios no guardados?","Are you sure for loading the preset and discard unsaved changes?":"¿Está seguro de cargar el ajuste preestablecido y descartar los cambios no guardados?","Arrange bools":"Organizar booleanos",Auto:W3t,"Auto (Line or Steps)":"Auto (línea o pasos)","Auto padding":"Sangría automática","Auto save":"Auto guardar","Auto-refresh":"Autorefrescar","Auto-update:":"Actualización automática:",Axis:H3t,"Background of radar chart":"Fondo del gráfico de radar","Background:":"Fondo:",Backgrounds:U3t,Bar:V3t,"Bar settings":"Configuración de barra","Bars width:":"Ancho de barras:",Border:q3t,"Border color:":"Color del borde:","Border padding":"Relleno de borde","Border width":"Ancho del borde","Border width:":"Ancho del borde:","Bottom, center, inside":"Abajo, centro, adentro","Bottom, center, outside":"Abajo, centro, afuera","Bottom, left":"Abajo, izquierda","Bottom, left, inside":"Abajo, izquierda, adentro","Bottom, right":"Abajo a la derecha","Bottom, right, inside":"Abajo, derecha, adentro","Bottom, right, outside":"Abajo, a la derecha, afuera",Cancel:G3t,"Cannot create unique ID":"No se puede crear una identificación única","Chart Type":"Tipo de gráfico","Chart background":"Fondo gráfico","Chart background:":"Fondo de la carta:","Chart size":"Tamaño del gráfico","Chart type":"Tipo de gráfico","Charts preview":"Vista previa de gráficos",Circle:X3t,Close:J3t,Collapse:Y3t,"Collapse all lines":"Contraer todas las líneas","Collapse all markings":"Contraer todas las marcas",Color:K3t,"Common Y Axis":"Eje Y común","Convert formula":"fórmula de conversión",Copy:Z3t,"Copy link to clipboard":"Copiar enlace al portapapeles",Counts:Q3t,Create:ejt,"Create folder":"Crear carpeta","Create new folder":"Crear nueva carpeta","Create new preset":"Crear nuevo preset","Create preset":"Crear preajuste","Custom chart background:":"Fondo de carta personalizada:","Custom time format":"Formato de hora personalizado",Data:tjt,Default:rjt,Delete:njt,"Delete object":"Eliminar objeto","Delete text value":"Eliminar valor de texto",Dialog:ojt,"Digits after comma":"Dígitos después de la coma","Drag me":"Arrástrame",Edit:ajt,"Edit folder name":"Editar nombre de carpeta","Edit options for line %s":"Editar opciones para la línea% s","Edit state names":"Editar nombres de estado","Empty preset cannot be saved!":"¡No se puede guardar un ajuste preestablecido vacío!","Enable logging for new state":"Habilitar el registro para el nuevo estado","Enable zoom and pan":"Habilitar zoom y panorámica","Enable zoom and pan:":"Habilitar zoom y pan:",End:ijt,"End:":"Fin:","Enter chart name":"Ingrese el nombre del gráfico",Expand:sjt,"Expand all lines":"Expandir todas las líneas","Expand all markings":"Expandir todas las marcas","Export data color":"Color del botón Exportar datos",Fill:ljt,"Fill color:":"Color de relleno:","Fill range:":"Rango de llenado:","Fill(0to1)":"Rellenar (0to1)",Folder:cjt,"Font size":"Tamaño de fuente",From:djt,"From line %s":"De la línea %s",Functions:ujt,Grid:pjt,"Grid color":"Color de cuadrícula","Grid color:":"Color de cuadrícula","Group by":"Agrupar por","HH:MM dd.mm":"HH:MM dd.mm",Height:hjt,"Height:":"Altura:","Hide X grid":"Ocultar cuadrícula X","Hide Y grid":"Ocultar cuadrícula Y","Hide edit button:":"Ocultar botón de edición:","Hide nulls in tooltip":"Ocultar nulos en la información sobre herramientas","Hover details":"Hover detalles","Hover details:":"Hover detalles:",ID:fjt,IDs:mjt,"If the current value is not older than X seconds, assume it is still the same.":"Si el valor actual no tiene más de X segundos, suponga que sigue siendo el mismo.","In seconds":"En segundos",Individual:gjt,"Input data":"Datos de entrada","Inside / No lines":"Dentro / Sin líneas","Inside / With lines":"Dentro / Con líneas","Inside end":"adentro, al final","Inside end bottom":"Adentro, al final, abajo","Inside end top":"Adentro, al final, arriba","Inside middle":"adentro, en el medio","Inside middle bottom":"Adentro, en el medio, abajo","Inside middle top":"Adentro, en el medio, arriba","Inside start":"Dentro, al principio","Inside start bottom":"En el interior, al principio, en la parte inferior","Inside start top":"Adentro, al principio, arriba",Instance:vjt,"Integral unit":"unidad integral","Interpolate:":"Interpolar:","Interpolation method":"método de interpolación",Intervals:yjt,"Invalid object":"Objeto no válido",Label:_jt,"Label color:":"Color de etiqueta:","Label font size:":"Tamaño de letra de la etiqueta:",Labels:bjt,"Last changed":"Último cambio",Left:wjt,Legend:xjt,"Legend background":"Fondo de leyenda","Legend background:":"Antecedentes de leyenda:","Legend columns:":"Columnas leyenda","Legend opacity (from 0 to 1):":"Opacidad de la leyenda (de 0 a 1):","Legend text color":"Color del texto de la leyenda",Limits:Sjt,Line:Cjt,"Line ID":"Identificación de línea","Line Width":"Ancho de línea","Line and area":"Línea y área","Line style":"Estilo de línea",Link:$jt,"Live update every":"Actualización en vivo cada","Live update every:":"Actualización en vivo cada:","Load without save":"Cargar sin guardar","Loading...":"Cargando...","Lower value or ID":"Menor valor o ID",Main:kjt,Mark:Ejt,Markings:Tjt,Max:Ojt,"Max:":"Máximo:",Members:Djt,"Middle, left, inside":"Medio, izquierdo, adentro","Middle, right, inside":"Medio, derecho, adentro","Middle, right, outside":"Medio, derecho, afuera",Min:Ajt,"Min:":"Mínimo:",MinMax:Ijt,More:Mjt,"Move to folder":"Mover a la carpeta",Multiple:Pjt,"NULL as":"NULL como",Name:Njt,"Name:":"Nombre:","No ID yet":"Sin ID todavía","No background":"Sin antecedentes","No border:":"Sin bordes:","No future":"Sin valores en el futuro","No interpolate in hover":"Sin interpolación en la información sobre herramientas","No presets created yet":"Aún no se han creado ajustes preestablecidos",None:Rjt,Offset:jjt,Ok:Ljt,Open:zjt,"Open chart in own window":"Abrir gráfico en su propia ventana","Open in own window":"Abrir en su propia ventana",Options:Fjt,Orientation:Bjt,Others:Wjt,"Outside / No lines":"Fuera / Sin líneas","Outside/ With lines":"Fuera / Con líneas",Paste:Hjt,Percentile:Ujt,Pie:Vjt,"Please confirm":"Por favor confirme",Points:qjt,Polar:Gjt,Polygonal:Xjt,"Predefined background:":"Antecedentes predefinidos:",Presets:Jjt,Processing:Yjt,"Processing...":"Tratamiento...",Range:Kjt,"Range:":"Distancia:",Relative:Zjt,Rename:Qjt,"Rename preset":"Cambiar nombre de preset","Reorder presets in folders":"Reordenar los ajustes preestablecidos en carpetas","Reset settings":"Reiniciar ajustes","Reset zoom after idle":"Restablecer el zoom después de inactivo",Right:e4t,Role:t4t,Room:r4t,Rooms:n4t,Root:o4t,"Save current preset and load":"Guardar el ajuste preestablecido actual y cargarlo","Save image button color":"Color del botón Guardar imagen","Save into:":"Guardar en:","Scatter plot":"Gráfico de dispersión",Seconds:a4t,Select:i4t,"Select ID":"Seleccionar ID","Select for":"Seleccionar para","Shadow Size":"Tamaño de las Sombras","Show controls":"Mostrar controles","Show export data button":"Mostrar botón de exportación de datos","Show labels:":"Mostrar etiquetas:","Show legend":"Mostrar leyenda","Show legend:":"Mostrar leyenda:","Show only in legend":"Mostrar solo en leyenda","Show points":"Mostrar puntos","Show save image button":"Mostrar el botón Guardar imagen","Show values":"Mostrar valores",Smoothing:s4t,Source:l4t,Spline:c4t,Stack:d4t,"Start:":"Comienzo:","State value":"valor del estado","State value text":"Texto de valor de estado","Step span:":"Lapso de paso:","Step type":"Tipo de paso","Step type:":"Tipo de paso:",Steps:u4t,"Steps on start":"Pasos al inicio",Style:p4t,"System settings":"Ajustes del sistema",Text:h4t,"Text X offset":"X-Offset de texto","Text Y offset":"Desplazamiento Y de texto","Text by false":"Texto por falso","Text by true":"Texto por verdadero","Text color":"Color de texto","Text position":"Posición del texto","Text size":"Tamano del texto","Text values not used":"Valores de texto no utilizados",Texts:f4t,Theme:m4t,"This time offset will be added to the X label by displaying data on the chart":"Este desplazamiento de tiempo se agregará a la etiqueta X al mostrar datos en el gráfico.","This time offset will be added to the request by reading data from DB":"Este desplazamiento de tiempo se agregará a la solicitud leyendo los datos de la base de datos.","Ticks from:":"Use X-ticks desde:",Time:g4t,"Time Span":"Espacio de tiempo","Time format":"Formato de tiempo","Time format:":"Formato de tiempo:","Time span":"Espacio de tiempo","Time stamp":"Marca de tiempo",Title:v4t,"Title color":"Color del título","Title color:":"Color del título:","Title position":"Posición del título","Title position:":"Posición del título:","Title size":"Tamaño del título","Title size:":"Tamaño del título:","Title:":"Título:","Top, center, inside":"Arriba, centro, adentro","Top, left":"Arriba a la izquierda","Top, left, inside":"Arriba, izquierda, adentro","Top, right":"Parte superior derecha","Top, right, inside":"Arriba, derecha, adentro","Top, right, outside":"Arriba, a la derecha, afuera",Type:y4t,Unit:_4t,"Units:":"Unidades:",Update:b4t,"Update objects":"Actualizar objetos","Update states":"Actualizar estados","Upper value or ID":"Valor superior o ID","Use comma":"Usa coma","Use comma:":"Usa la coma","Use state names":"Usar nombres de estado","User defined":"Usuario definido","User defined names:":"Nombres definidos por el usuario:","Valid time (sec)":"Tiempo válido (seg)",Value:w4t,Width:x4t,"Width:":"Anchura:","Window background":"Fondo de ventana","Window background:":"Fondo de la ventana:",With:S4t,"With border":"Con frontera","With lines":"Con líneas",Without:C4t,"Without border":"Sin borde","Without lines":"Sin líneas","X Axis":"Eje X","X Axis position":"Posición del eje X","X axis labels color:":"X etiquetas de color:","X labels color":"Color de etiquetas X","X labels size":"Tamaño de fuente X","X ticks color":"X ticks color","X-Axis ticks":"Garrapatas X-Axis","X-Label-Offset":"Desplazamiento de etiqueta X","X-Offset":"Desplazamiento X","Y Axis":"Eje Y","Y Axis position":"Posición del eje Y","Y axis labels color:":"Color de etiquetas Y:","Y labels color":"Y etiquetas de color","Y labels size":"Tamaño de fuente Y","Y ticks color":"Y ticks color","Y-Axis ticks":"Señales del eje Y","Y-Offset":"Y-Offset",'You can create a new markings with a "+" on the right.':'Puede crear nuevas marcas con un "+" a la derecha.',"You can drag and drop simple lines from the left list.":"Puede arrastrar y soltar líneas simples de la lista de la izquierda.","add children":"agregar niños",area:$4t,auto:k4t,average:E4t,bar:T4t,bottom:O4t,bottomColor:D4t,convert_help:A4t,copied:I4t,copy:M4t,count:P4t,counts:N4t,current:R4t,dashed:j4t,day:L4t,default:"defecto",difference:z4t,dotted:F4t,dow:B4t,edit:W4t,"edit enum":"editar enum","edit file":"editar archivo","end of 10 minutes":"fin de 10 minutos","end of 12 hours":"fin de 12 horas","end of 2 hours":"fin de 2 horas","end of 3 hours":"fin de 3 horas","end of 30 minutes":"fin de 30 minutos","end of 4 hours":"fin de 4 horas","end of 5 minutes":"fin de 5 minutos","end of 6 hours":"fin de 6 horas","end of 8 hours":"fin de 8 horas","end of day":"fin del día","end of hour":"fin de hora","end of minute":"fin del minuto","end of previous saturday":"fin del sábado anterior (2 semanas)","end of previous sunday":"fin del domingo anterior (2 semanas)","end of saturday":"fin de sabado","end of sunday":"fin del domingo",false:"nulo",horizontal:H4t,i15min:U4t,i1day:V4t,i1hour:q4t,i30days:G4t,"ignore 'null'":"ignorar 'nulo'","ignore 'null':":"ignorar 'nulo':","ignore null values":"ignorar valores nulos",integral:X4t,"last value":"último valor",left:J4t,"left colored":"izquierda coloreada",leftColor:Y4t,line:K4t,linear:Z4t,lineplot:Q4t,load:eLt,max:tLt,middle:rLt,min:nLt,minmax:oLt,month:aLt,new:"nuevo",no:iLt,"no null":"& nbsp; no null","non-processed":"no procesado",none:sLt,none_no:lLt,now:cLt,null:"nulo",off:dLt,onchange:uLt,"own axis":"propio eje",percentile:pLt,polar:hLt,raw:fLt,relative:mLt,reload:gLt,"restart script":"script de reinicio",right:vLt,"right colored":"color correcto",rightColor:yLt,role:_Lt,save:bLt,"save %s":"ahorra",scatterplot:wLt,seconds:xLt,solid:SLt,spline:CLt,standard:$Lt,static:"estático",steps:kLt,"this month":"este mes","this year":"este año",to:ELt,today:TLt,top:OLt,"top over":"arriba encima","top under":"arriba debajo",topColor:DLt,total:ALt,true:"último valor","update Preview":"actualización de Vista previa","use 0 instead of null values":"use 0 en lugar de valores nulos",vertical:ILt,weekEurope:MLt,weekUsa:PLt,year:NLt,yes:RLt,ØL:"ØL","ØL - Line thickness":"ØL - Espesor de línea","ØL Line thickness":"ØL espesor de la línea",ØS:"ØS","ØS - Shadow size":"ØS - Tamaño de sombra","ØS Shadow size":"ØS tamaño de la sombra"},LLt="Przyznane",zLt="Dodać",FLt="Agregat",BLt="Rodzaj",WLt="Wszystko",HLt="Wygląd",ULt="Stosować",VLt="Automatyczny",qLt="Oś",GLt="Tła",XLt="Bar",JLt="Granica",YLt="Anuluj",KLt="Koło",ZLt="Zamknąć",QLt="Zawalić się",ezt="Kolor",tzt="Kopiuj",rzt="Liczy",nzt="Stwórz",ozt="Dane",azt="Domyślna",izt="Kasować",szt="Dialog",lzt="Edytować",czt="Koniec",dzt="Rozszerzać",uzt="Napełnić",pzt="Teczka",hzt="Od:",fzt="Funkcje",mzt="Krata",gzt="Wysokość",vzt="ID",yzt="ID",_zt="Indywidualny",bzt="Instancja",wzt="Interwały",xzt="Etykieta",Szt="Etykiety",Czt="Lewo",$zt="Legenda",kzt="Limity",Ezt="Linia",Tzt="Połączyć",Ozt="Główny",Dzt="Cechowanie",Azt="Znakowania",Izt="Max",Mzt="Członkowie",Pzt="Min",Nzt="Minimum maksimum",Rzt="jeszcze",jzt="Wielokrotność",Lzt="Nazwa",zzt="Żaden",Fzt="X-Offset",Bzt="Ok",Wzt="otwarty",Hzt="Opcje",Uzt="Orientacja",Vzt="Inni",qzt="Pasta",Gzt="Percentyl",Xzt="Ciasto",Jzt="Zwrotnica",Yzt="Wykres polarny",Kzt="Wielokątny",Zzt="Presets",Qzt="Przetwarzanie",eFt="Zasięg",tFt="Krewny",rFt="Przemianować",nFt="Dobrze",oFt="Rola",aFt="Pokój",iFt="Pokoje",sFt="Korzeń",lFt="sekundy",cFt="Wybierz",dFt="Wygładzanie",uFt="Źródło",pFt="Klin",hFt="Stos",fFt="Kroki",mFt="Styl",gFt="Tekst",vFt="Teksty",yFt="Motyw",_Ft="Czas",bFt="Tytuł",wFt="Rodzaj",xFt="Jednostka",SFt="Aktualizacja",CFt="Wartość",$Ft="Szerokość",kFt="Z",EFt="Bez",TFt="Powierzchnia",OFt="automatyczny",DFt="średni",AFt="Bar",IFt="Dolny",MFt="u dołu w kolorze",PFt="Wprowadź formułę, np. „val / 1000 + 3”. Ta formuła zostanie zastosowana do wszystkich wartości wybranego punktu danych.",NFt="skopiowane",RFt="kopia",jFt="liczyć",LFt="liczy",zFt="Aktualna wartość",FFt="przerywana",BFt="dzień",WFt="różnica",HFt="kropkowany",UFt="Dzień tygodnia",VFt="edytować",qFt="poziomy",GFt="15 minut",XFt="1 dzień",JFt="1 godzina",YFt="30 dni",KFt="całka",ZFt="lewo",QFt="pozostawione w kolorze",e6t="Linia",t6t="liniowy",r6t="Fabuła linii",n6t="obciążenie",o6t="maks",a6t="środkowy",i6t="min",s6t="minimum maksimum",l6t="miesiąc",c6t="Nie",d6t="Żaden",u6t="Żaden",p6t="teraz",h6t="poza",f6t="o zmianie",m6t="percentyl",g6t="Wykres polarny",v6t="surowy",y6t="krewny",_6t="przeładować",b6t="dobrze",w6t="prawe kolorowe",x6t="rola",S6t="zapisać",C6t="Wykres punktowy",$6t="sekundy",k6t="solidny",E6t="Klin",T6t="standard",O6t="Kroki",D6t="do",A6t="dzisiaj",I6t="Top",M6t="górne kolorowe",P6t="całkowity",N6t="pionowy",R6t="koniec dnia",j6t="koniec niedzieli",L6t="rok",z6t="tak",F6t={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"% s temu","ØL":"& # 216L","ØS":"& # 216S","0 seconds":"0 sekund","0s":"0 sekund","1 day":"1 dzień","1 hour":"1 godzina","1 minute":"1 minuta","1 month":"1 miesiąc","1 week":"1 tydzień","1 year":"1 rok","10 minutes":"10 minut","10 seconds":"10 sekund","10m":"10 minut","10minutes":"koniec 10 minut","10s":"10 sekund","12 hours":"12 godzin","12H":"12 godzin","12W":"12 tygodni","12hours":"koniec 12 godzin","14 days":"14 dni","15 minutes":"15 minut","15 seconds":"15 sekund","15m":"15 minut","1D":"1 dzień","1H":"1 godzina","1M":"1 miesiąc","1W":"1 tydzień","1Y":"1 rok","1hour":"koniec godziny","1minute":"koniec minuty","1s":"1 sekunda","2 days":"2 dni","2 hours":"2 godziny","2 minutes":"2 minuty","2 months":"2 miesiące","2 weeks":"2 tygodnie","2 years":"2 lata","20 minutes":"20 minut","20 seconds":"20 sekund","26W":"26 tygodni","2D":"2 dni","2H":"2 godziny","2M":"2 miesiące","2W":"2 tygodnie","2Y":"2 lata","2hours":"koniec 2 godzin","2m":"2 minuty","2s":"2 sekundy","3 days":"3 dni","3 hours":"3 godziny","3 minutes":"3 minuty","3 months":"3 miesiące","30 minutes":"30 minut","30 seconds":"30 sekund","300ms":"300ms","30m":"30 minut","30minutes":"koniec 30 minut","30s":"30 sekund","3D":"3 dni","3M":"3 miesiące","3hours":"koniec 3 godzin","3m":"3 minuty","3s":"3 sekundy","4 days":"4 dni","4 minutes":"4 minuty","45 minutes":"45 minut","45m":"45 minut","4D":"4 dni","4W":"4 tygodnie","4hours":"koniec 4 godzin","4m":"4 minuty","5 minutes":"5 minut","5 seconds":"5 sekund","500ms":"500 ms","5m":"5 minut","5minutes":"koniec 5 minut","5s":"5 sekund","6 hours":"6 godzin","6 months":"6 miesięcy","60 seconds":"60 sekund","60s":"60 sekund","6H":"6 godzin","6M":"6 miesięcy","6hours":"koniec 6 godzin","7 days":"7 dni","8W":"8 tygodni","8hours":"koniec 8 godzin","90 seconds":"90 sekund",Acknowledged:LLt,Add:zLt,"Add line to chart":"Dodaj linię do wykresu","Add marking line to chart":"Dodaj linię zaznaczania do wykresu","Add new line":"Dodaj nową linię","Add new markings":"Dodaj nowe oznaczenia","Add new state name":"Dodaj nową nazwę stanu","Add new value":"Dodaj nową wartość","After comma":"Po przecinku",Aggregate:FLt,"Aggregate for lines":"Agregacja dla linii",Aggregation:BLt,"Aggregation:":"Rodzaj:",All:WLt,"Animation:":"Animacja:",Appearance:HLt,Apply:ULt,"Are you sure for closing folder and discard unsaved changes?":"Czy na pewno chcesz zamknąć folder i odrzucić niezapisane zmiany?","Are you sure for delete this line?":"Czy na pewno chcesz usunąć tę linię?","Are you sure for delete this mark?":"Czy na pewno chcesz usunąć ten znak?","Are you sure for delete this preset?":"Czy na pewno chcesz usunąć to ustawienie wstępne?","Are you sure for loading the chart and discard unsaved changes?":"Czy na pewno chcesz załadować wykres i odrzucić niezapisane zmiany?","Are you sure for loading the preset and discard unsaved changes?":"Czy na pewno chcesz załadować ustawienia wstępne i odrzucić niezapisane zmiany?","Arrange bools":"Rozmieść booleans",Auto:VLt,"Auto (Line or Steps)":"Auto (linia lub kroki)","Auto padding":"Automatyczne wcięcie","Auto save":"Automatyczne zapisywanie","Auto-refresh":"Automatyczne odświeżanie","Auto-update:":"Automatyczna aktualizacja:",Axis:qLt,"Background of radar chart":"Tło mapy radarowej","Background:":"Tło:",Backgrounds:GLt,Bar:XLt,"Bar settings":"Ustawienia paska","Bars width:":"Szerokość prętów:",Border:JLt,"Border color:":"Kolor ramki:","Border padding":"Obramowanie","Border width":"Szerokość granicy","Border width:":"Szerokość granicy:","Bottom, center, inside":"Dół, środek, wnętrze","Bottom, center, outside":"Dół, środek, na zewnątrz","Bottom, left":"Na dole po lewej","Bottom, left, inside":"Dół, lewo, wnętrze","Bottom, right":"Prawy dolny","Bottom, right, inside":"Dół, prawo, wewnątrz","Bottom, right, outside":"Dół, prawo, na zewnątrz",Cancel:YLt,"Cannot create unique ID":"Nie można utworzyć unikalnego identyfikatora","Chart Type":"Typ wykresu","Chart background":"Tło wykresu","Chart background:":"Tło wykresu:","Chart size":"Rozmiar wykresu","Chart type":"Typ wykresu","Charts preview":"Podgląd wykresów",Circle:KLt,Close:ZLt,Collapse:QLt,"Collapse all lines":"Zwiń wszystkie linie","Collapse all markings":"Zwiń wszystkie oznaczenia",Color:ezt,"Common Y Axis":"Wspólna oś Y.","Convert formula":"Formuła konwersji",Copy:tzt,"Copy link to clipboard":"Skopiuj link do schowka",Counts:rzt,Create:nzt,"Create folder":"Utwórz folder","Create new folder":"Stwórz nowy folder","Create new preset":"Utwórz nowe ustawienie wstępne","Create preset":"Utwórz ustawienie wstępne","Custom chart background:":"Niestandardowe tło wykresu:","Custom time format":"Niestandardowy format czasu",Data:ozt,Default:azt,Delete:izt,"Delete object":"Usuń obiekt","Delete text value":"Usuń wartość tekstową",Dialog:szt,"Digits after comma":"Cyfry po przecinku","Drag me":"Pociągnij mnie",Edit:lzt,"Edit folder name":"Edytuj nazwę folderu","Edit options for line %s":"Edytuj opcje linii% s","Edit state names":"Edytuj nazwy stanów","Empty preset cannot be saved!":"Nie można zapisać pustego ustawienia wstępnego!","Enable logging for new state":"Włącz rejestrowanie dla nowego stanu","Enable zoom and pan":"Włącz powiększanie i przesuwanie","Enable zoom and pan:":"Włącz powiększanie i panoramowanie:",End:czt,"End:":"Koniec:","Enter chart name":"Wprowadź nazwę wykresu",Expand:dzt,"Expand all lines":"Rozwiń wszystkie linie","Expand all markings":"Rozwiń wszystkie oznaczenia","Export data color":"Kolor przycisku eksportu danych",Fill:uzt,"Fill color:":"Kolor wypełnienia:","Fill range:":"Zakres wypełnienia:","Fill(0to1)":"Wypełnij (0to1)",Folder:pzt,"Font size":"Rozmiar czcionki",From:hzt,"From line %s":"Z linii %s",Functions:fzt,Grid:mzt,"Grid color":"Kolor siatki","Grid color:":"Kolor siatki:","Group by":"Grupuj według","HH:MM dd.mm":"HH:MM dd.mm",Height:gzt,"Height:":"Wysokość:","Hide X grid":"Ukryj siatkę X.","Hide Y grid":"Ukryj siatkę Y.","Hide edit button:":"Ukryj przycisk edycji:","Hide nulls in tooltip":"Ukryj null w podpowiedzi","Hover details":"Najedź na szczegóły","Hover details:":"Po najechaniu szczegóły:",ID:vzt,IDs:yzt,"If the current value is not older than X seconds, assume it is still the same.":"Jeśli bieżąca wartość nie jest starsza niż X sekund, załóżmy, że nadal jest taka sama.","In seconds":"W sekundy",Individual:_zt,"Input data":"Dane wejściowe","Inside / No lines":"Wewnątrz / Bez linii","Inside / With lines":"Wewnątrz / Z liniami","Inside end":"Wewnątrz, na końcu","Inside end bottom":"Wewnątrz, na końcu, na dole","Inside end top":"Wewnątrz, na końcu, na górze","Inside middle":"Wewnątrz, w środku","Inside middle bottom":"Wewnątrz, na środku, na dole","Inside middle top":"Wewnątrz, w środku, na górze","Inside start":"Wewnątrz, na początku","Inside start bottom":"Wewnątrz, na początku, na dole","Inside start top":"Wewnątrz, na początku, na górze",Instance:bzt,"Integral unit":"Jednostka integralna","Interpolate:":"Interpolować:","Interpolation method":"Metoda interpolacji",Intervals:wzt,"Invalid object":"Nieprawidłowy obiekt",Label:xzt,"Label color:":"Kolor etykiety:","Label font size:":"Rozmiar czcionki etykiety:",Labels:Szt,"Last changed":"Ostatnia zmiana",Left:Czt,Legend:$zt,"Legend background":"Tło legendy","Legend background:":"Tło legendy:","Legend columns:":"Kolumny legendy:","Legend opacity (from 0 to 1):":"Krycie Legendy (od 0 do 1):","Legend text color":"Kolor tekstu legendy",Limits:kzt,Line:Ezt,"Line ID":"Identyfikator linii","Line Width":"Szerokość linii","Line and area":"Linia i obszar","Line style":"Styl linii",Link:Tzt,"Live update every":"Aktualizacja na żywo co","Live update every:":"Aktualizacja na żywo co:","Load without save":"Załaduj bez zapisywania","Loading...":"Ładuję...","Lower value or ID":"Niższa wartość lub ID",Main:Ozt,Mark:Dzt,Markings:Azt,Max:Izt,"Max:":"Maksymalny:",Members:Mzt,"Middle, left, inside":"Środkowy, lewy, w środku","Middle, right, inside":"Środkowy, prawy, wewnątrz","Middle, right, outside":"Środkowy, prawy, na zewnątrz",Min:Pzt,"Min:":"Minimum:",MinMax:Nzt,More:Rzt,"Move to folder":"Przenieś do folderu",Multiple:jzt,"NULL as":"NULL as",Name:Lzt,"Name:":"Nazwa:","No ID yet":"Nie ma ID tożsamości","No background":"Bez tła","No border:":"Bez granic:","No future":"Żadnych wartości w przyszłości","No interpolate in hover":"Brak interpolacji w podpowiedzi","No presets created yet":"Nie utworzono jeszcze żadnych ustawień wstępnych",None:zzt,Offset:Fzt,Ok:Bzt,Open:Wzt,"Open chart in own window":"Otwórz wykres we własnym oknie","Open in own window":"Otwórz we własnym oknie",Options:Hzt,Orientation:Uzt,Others:Vzt,"Outside / No lines":"Poza / Bez linii","Outside/ With lines":"Na zewnątrz / Z liniami",Paste:qzt,Percentile:Gzt,Pie:Xzt,"Please confirm":"Proszę potwierdzić",Points:Jzt,Polar:Yzt,Polygonal:Kzt,"Predefined background:":"Wstępnie zdefiniowane tło:",Presets:Zzt,Processing:Qzt,"Processing...":"Przetwarzanie...",Range:eFt,"Range:":"Zasięg:",Relative:tFt,Rename:rFt,"Rename preset":"Zmień nazwę ustawienia wstępnego","Reorder presets in folders":"Zmień kolejność ustawień wstępnych w folderach","Reset settings":"Resetowanie ustawień","Reset zoom after idle":"Zresetuj powiększenie po bezczynności",Right:nFt,Role:oFt,Room:aFt,Rooms:iFt,Root:sFt,"Save current preset and load":"Zapisz bieżące ustawienie wstępne i załaduj","Save image button color":"Zapisz kolor przycisku obrazu","Save into:":"Zapisz w:","Scatter plot":"Wykres punktowy",Seconds:lFt,Select:cFt,"Select ID":"Wybierz ID","Select for":"Wybierz dla","Shadow Size":"Rozmiar cienia","Show controls":"Pokaż kontrolki","Show export data button":"Pokaż przycisk eksportu danych","Show labels:":"Pokaż etykiety:","Show legend":"Pokaż legendę","Show legend:":"Pokaż legendę:","Show only in legend":"Pokaż tylko w legendzie","Show points":"Pokaż punkty","Show save image button":"Pokaż przycisk zapisywania obrazu","Show values":"Pokaż wartości",Smoothing:dFt,Source:uFt,Spline:pFt,Stack:hFt,"Start:":"Początek:","State value":"Wartość stanu","State value text":"Podaj tekst wartości","Step span:":"Zakres kroku:","Step type":"Typ kroku","Step type:":"Rodzaj kroku:",Steps:fFt,"Steps on start":"Kroki na starcie",Style:mFt,"System settings":"Ustawienia systemowe",Text:gFt,"Text X offset":"X-Przesunięcie tekstu","Text Y offset":"Przesunięcie Y tekstu","Text by false":"Tekst fałszywy","Text by true":"Tekst od prawda","Text color":"Kolor tekstu","Text position":"Pozycja tekstu","Text size":"Rozmiar czcionki","Text values not used":"Wartości tekstowe nie są używane",Texts:vFt,Theme:yFt,"This time offset will be added to the X label by displaying data on the chart":"To przesunięcie czasowe zostanie dodane do etykiety X poprzez wyświetlenie danych na wykresie","This time offset will be added to the request by reading data from DB":"To przesunięcie czasowe zostanie dodane do żądania poprzez odczyt danych z bazy danych","Ticks from:":"Użyj tyknięć X z:",Time:_Ft,"Time Span":"Okres czasu","Time format":"Format czasu","Time format:":"Format czasu:","Time span":"Okres czasu","Time stamp":"Znak czasu",Title:bFt,"Title color":"Kolor tytułu","Title color:":"Kolor tytułu:","Title position":"Pozycja tytułu","Title position:":"Pozycja tytułu:","Title size":"Rozmiar tytułu","Title size:":"Rozmiar tytułu:","Title:":"Tytuł:","Top, center, inside":"Góra, środek, wnętrze","Top, left":"Lewy górny","Top, left, inside":"Góra, lewa, wewnątrz","Top, right":"W prawym górnym rogu","Top, right, inside":"Góra, prawo, wewnątrz","Top, right, outside":"Góra, prawo, na zewnątrz",Type:wFt,Unit:xFt,"Units:":"Jednostki:",Update:SFt,"Update objects":"Zaktualizuj obiekty","Update states":"Zaktualizuj stany","Upper value or ID":"Górna wartość lub ID","Use comma":"Użyj przecinka","Use comma:":"Użyj przecinka:","Use state names":"Używaj nazw stanów","User defined":"Określony przez użytkownika","User defined names:":"Nazwy zdefiniowane przez użytkownika:","Valid time (sec)":"Ważny czas (s)",Value:CFt,Width:$Ft,"Width:":"Szerokość:","Window background":"Tło okna","Window background:":"Tło okna:",With:kFt,"With border":"Z obramowaniem","With lines":"Z liniami",Without:EFt,"Without border":"Bez obramowania","Without lines":"Bez linii","X Axis":"Oś X.","X Axis position":"Położenie osi X.","X axis labels color:":"Kolor etykiet X:","X labels color":"Kolor etykiet X.","X labels size":"X rozmiar czcionki","X ticks color":"X zaznacza kolor","X-Axis ticks":"Tiki X-Axis","X-Label-Offset":"Przesunięcie etykiety X","X-Offset":"Przesunięcie X","Y Axis":"Oś Y.","Y Axis position":"Pozycja osi Y.","Y axis labels color:":"Kolor etykiet Y:","Y labels color":"Kolor etykiety Y.","Y labels size":"Rozmiar czcionki Y","Y ticks color":"Y zaznacza kolor","Y-Axis ticks":"Tyksy Y-Axis","Y-Offset":"Przesunięcie Y",'You can create a new markings with a "+" on the right.':"Możesz utworzyć nowe oznaczenia ze znakiem „+” po prawej stronie.","You can drag and drop simple lines from the left list.":"Możesz przeciągać i upuszczać proste linie z lewej listy.","add children":"dodaj dzieci",area:TFt,auto:OFt,average:DFt,bar:AFt,bottom:IFt,bottomColor:MFt,convert_help:PFt,copied:NFt,copy:RFt,count:jFt,counts:LFt,current:zFt,dashed:FFt,day:BFt,default:"domyślna",difference:WFt,dotted:HFt,dow:UFt,edit:VFt,"edit enum":"edytuj wyliczenie","edit file":"edytuj plik","end of 10 minutes":"koniec 10 minut","end of 12 hours":"koniec 12 godzin","end of 2 hours":"koniec 2 godzin","end of 3 hours":"koniec 3 godzin","end of 30 minutes":"koniec 30 minut","end of 4 hours":"koniec 4 godzin","end of 5 minutes":"koniec 5 minut","end of 6 hours":"koniec 6 godzin","end of 8 hours":"koniec 8 godzin","end of day":"koniec dnia","end of hour":"koniec godziny","end of minute":"koniec minuty","end of previous saturday":"koniec poprzedniej soboty (2 tygodnie)","end of previous sunday":"koniec poprzedniej niedzieli (2 tygodnie)","end of saturday":"koniec soboty","end of sunday":"koniec niedzieli",false:"zero",horizontal:qFt,i15min:GFt,i1day:XFt,i1hour:JFt,i30days:YFt,"ignore 'null'":'zignoruj ​​"zero"',"ignore 'null':":'zignoruj ​​"null":',"ignore null values":"ignoruj ​​wartości puste",integral:KFt,"last value":"ostatnia wartość",left:ZFt,"left colored":"lewy kolorowy",leftColor:QFt,line:e6t,linear:t6t,lineplot:r6t,load:n6t,max:o6t,middle:a6t,min:i6t,minmax:s6t,month:l6t,new:"Nowy",no:c6t,"no null":"& nbsp; no null","non-processed":"nieprzetworzone",none:d6t,none_no:u6t,now:p6t,null:"zero",off:h6t,onchange:f6t,"own axis":"własną oś",percentile:m6t,polar:g6t,raw:v6t,relative:y6t,reload:_6t,"restart script":"zrestartuj skrypt",right:b6t,"right colored":"w odpowiednim kolorze",rightColor:w6t,role:x6t,save:S6t,"save %s":"zapisz% s",scatterplot:C6t,seconds:$6t,solid:k6t,spline:E6t,standard:T6t,static:"statyczny",steps:O6t,"this month":"ten miesiąc","this year":"W tym roku",to:D6t,today:A6t,top:I6t,"top over":"do góry","top under":"górny pod",topColor:M6t,total:P6t,true:"ostatnia wartość","update Preview":"aktualizuj podgląd","use 0 instead of null values":"użyj 0 zamiast wartości zerowych",vertical:N6t,weekEurope:R6t,weekUsa:j6t,year:L6t,yes:z6t,ØL:"ØL","ØL - Line thickness":"ØL - grubość linii","ØL Line thickness":"ØL Grubość linii",ØS:"ØS","ØS - Shadow size":"ØS - Rozmiar cienia","ØS Shadow size":"ØS Rozmiar cienia"},B6t="Визнано",W6t="додати",H6t="Агрегатний",U6t="Тип",V6t="все",q6t="Зовнішній вигляд",G6t="Застосувати",X6t="Авто",J6t="Вісь",Y6t="Фони",K6t="Bar",Z6t="Кордон",Q6t="Скасувати",e8t="Коло",t8t="Закрити",r8t="Згорнути",n8t="колір",o8t="Копія",a8t="Розраховує",i8t="Створити",s8t="Дані",l8t="За замовчуванням",c8t="Видалити",d8t="Діалог",u8t="Редагувати",p8t="Кінець",h8t="Розгорнути",f8t="Заповнити",m8t="Папка",g8t="Від:",v8t="Функції",y8t="Сітка",_8t="Висота",b8t="ID",w8t="ідентифікатори",x8t="Індивідуальний",S8t="Екземпляр",C8t="Інтервали",$8t="Мітка",k8t="етикетки",E8t="Ліворуч",T8t="Легенда",O8t="Межі",D8t="лінія",A8t="Посилання",I8t="Головна",M8t="Маркування",P8t="Маркування",N8t="Макс",R8t="Члени",j8t="Хв",L8t="MinMax",z8t="більше",F8t="множинний",B8t="Ім'я",W8t="Жодного",H8t="Х-зсув",U8t="В порядку",V8t="ВІДЧИНЕНО",q8t="Опції",G8t="Орієнтація",X8t="інші",J8t="Вставити",Y8t="Процентиль",K8t="пиріг",Z8t="Очки",Q8t="Полярна діаграма",eBt="Багатокутний",tBt="Предустановки",rBt="Обробка",nBt="Діапазон",oBt="Відносна",aBt="Перейменувати",iBt="правильно",sBt="Роль",lBt="Кімната",cBt="Кімнати",dBt="Корінь",uBt="секунд",pBt="Виберіть",hBt="Згладжування",fBt="Джерело",mBt="Сплайн",gBt="Стек",vBt="Кроки",yBt="Стиль",_Bt="текст",bBt="Тексти",wBt="Тема",xBt="час",SBt="Назва",CBt="Тип",$Bt="одиниця",kBt="оновлення",EBt="Значення",TBt="Ширина",OBt="с",DBt="без",ABt="Площа",IBt="авто",MBt="середній",PBt="Бар",NBt="дно",RBt="низ кольоровий",jBt="Введіть формулу на зразок «val / 1000 + 3». Ця формула буде застосована до всіх значень вибраної точки даних.",LBt="скопійовано",zBt="копія",FBt="розраховувати",BBt="розраховує",WBt="Поточне значення",HBt="штриховий",UBt="день",VBt="різниця",qBt="пунктирний",GBt="День тижня",XBt="редагувати",JBt="горизонтальний",YBt="15 хвилин",KBt="1 день",ZBt="1 година",QBt="30 днів",e9t="інтегральний",t9t="зліва",r9t="лівий кольоровий",n9t="лінія",o9t="лінійний",a9t="Лінійний сюжет",i9t="навантаження",s9t="макс",l9t="середина",c9t="хв",d9t="minmax",u9t="місяць",p9t="ні",h9t="немає",f9t="немає",m9t="зараз",g9t="вимкнено",v9t="на зміну",y9t="процентиль",_9t="Полярна діаграма",b9t="сирий",w9t="відносний",x9t="перезавантажити",S9t="правильно",C9t="правильний колір",$9t="роль",k9t="зберегти",E9t="Діаграма розкиду",T9t="секунд",O9t="твердий",D9t="Сплайн",A9t="стандарт",I9t="Кроки",M9t="до",P9t="сьогодні",N9t="зверху",R9t="верх кольоровий",j9t="всього",L9t="вертикальний",z9t="кінець дня",F9t="кінець неділі",B9t="рік",W9t="так",H9t={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5","%s ago":"%s тому","ØL":"ØL","ØS":"ØS","0 seconds":"0 секунд","0s":"0 секунд","1 day":"1 день","1 hour":"1 година","1 minute":"1 хвилина","1 month":"1 місяць","1 week":"1 тиждень","1 year":"1 рік","10 minutes":"10 хвилин","10 seconds":"10 секунд","10m":"10 хвилин","10minutes":"кінець 10 хвилин","10s":"10 секунд","12 hours":"12 годин","12H":"12 годин","12W":"12 тижнів","12hours":"кінець 12 год","14 days":"14 днів","15 minutes":"15 хвилин","15 seconds":"15 секунд","15m":"15 хвилин","1D":"1 день","1H":"1 година","1M":"1 місяць","1W":"1 тиждень","1Y":"1 рік","1hour":"кінець години","1minute":"кінець хвилини","1s":"1 секунда","2 days":"2 дні","2 hours":"2 години","2 minutes":"2 хвилини","2 months":"2 місяці","2 weeks":"2 тижні","2 years":"2 роки","20 minutes":"20 хвилин","20 seconds":"20 секунд","26W":"26 тижнів","2D":"2 дні","2H":"2 години","2M":"2 місяці","2W":"2 тижні","2Y":"2 роки","2hours":"кінець 2 год","2m":"2 хвилини","2s":"2 секунди","3 days":"3 дні","3 hours":"3 години","3 minutes":"3 хвилини","3 months":"3 місяці","30 minutes":"30 хвилин","30 seconds":"30 секунд","300ms":"300 мс","30m":"30 хвилин","30minutes":"закінчення 30 хвилин","30s":"30 секунд","3D":"3 дні","3M":"3 місяці","3hours":"кінець 3 год","3m":"3 хвилини","3s":"3 секунди","4 days":"4 дні","4 minutes":"4 хвилини","45 minutes":"45 хвилин","45m":"45 хвилин","4D":"4 дні","4W":"4 тижні","4hours":"кінець 4 год","4m":"4 хвилини","5 minutes":"5 хвилин","5 seconds":"5 секунд","500ms":"500 мс","5m":"5 хвилин","5minutes":"закінчення 5 хвилин","5s":"5 секунд","6 hours":"6 годин","6 months":"6 місяців","60 seconds":"60 секунд","60s":"60 секунд","6H":"6 годин","6M":"6 місяців","6hours":"кінець 6 год","7 days":"7 днів","8W":"8 тижнів","8hours":"кінець 8 год","90 seconds":"90 секунд",Acknowledged:B6t,Add:W6t,"Add line to chart":"Додайте лінію до діаграми","Add marking line to chart":"Додати лінію розмітки до діаграми","Add new line":"Додайте новий рядок","Add new markings":"Додайте нові позначки","Add new state name":"Додайте нову назву штату","Add new value":"Додати нове значення","After comma":"Після коми",Aggregate:H6t,"Aggregate for lines":"Агрегація для ліній",Aggregation:U6t,"Aggregation:":"тип:",All:V6t,"Animation:":"анімація:",Appearance:q6t,Apply:G6t,"Are you sure for closing folder and discard unsaved changes?":"Ви впевнені, що хочете закрити папку та скасувати незбережені зміни?","Are you sure for delete this line?":"Ви впевнені, що хочете видалити цей рядок?","Are you sure for delete this mark?":"Ви впевнені, що хочете видалити цю позначку?","Are you sure for delete this preset?":"Ви впевнені, що хочете видалити цей стиль?","Are you sure for loading the chart and discard unsaved changes?":"Ви впевнені, що хочете завантажити діаграму та відхилити незбережені зміни?","Are you sure for loading the preset and discard unsaved changes?":"Ви впевнені, що хочете завантажити попередні налаштування та відхилити незбережені зміни?","Arrange bools":"Упорядкуйте логічні значення",Auto:X6t,"Auto (Line or Steps)":"Авто (лінії або кроки)","Auto padding":"Авто-відступи","Auto save":"Автоматичне збереження","Auto-refresh":"Автооновлення","Auto-update:":"Автоматичне оновлення:",Axis:J6t,"Background of radar chart":"Фон радіолокаційної діаграми","Background:":"фон:",Backgrounds:Y6t,Bar:K6t,"Bar settings":"Налаштування панелі","Bars width:":"Ширина барів:",Border:Z6t,"Border color:":"Колір рамки:","Border padding":"Заповнення межі","Border width":"Ширина кордону","Border width:":"Ширина межі:","Bottom, center, inside":"Знизу, по центру, всередині","Bottom, center, outside":"Знизу, по центру, зовні","Bottom, left":"Внизу, зліва","Bottom, left, inside":"Внизу, зліва, всередині","Bottom, right":"Внизу праворуч","Bottom, right, inside":"Внизу, справа, всередині","Bottom, right, outside":"Внизу, справа, зовні",Cancel:Q6t,"Cannot create unique ID":"Неможливо створити унікальний ідентифікатор","Chart Type":"Тип діаграми","Chart background":"Тло діаграми","Chart background:":"Фон діаграми:","Chart size":"Розмір діаграми","Chart type":"Тип діаграми","Charts preview":"Попередній перегляд діаграм",Circle:e8t,Close:t8t,Collapse:r8t,"Collapse all lines":"Згорнути всі рядки","Collapse all markings":"Згорнути всі позначки",Color:n8t,"Common Y Axis":"Загальна вісь Y","Convert formula":"Формула перетворення",Copy:o8t,"Copy link to clipboard":"Копіювати посилання в буфер обміну",Counts:a8t,Create:i8t,"Create folder":"Створити папку","Create new folder":"Створити нову папку","Create new preset":"Створити новий стиль","Create preset":"Створити пресет","Custom chart background:":"Користувацький фон діаграми:","Custom time format":"Спеціальний формат часу",Data:s8t,Default:l8t,Delete:c8t,"Delete object":"Видалити об'єкт","Delete text value":"Видалити текстове значення",Dialog:d8t,"Digits after comma":"Цифри після коми","Drag me":"Перетягни мене",Edit:u8t,"Edit folder name":"Редагувати назву папки","Edit options for line %s":"Редагувати параметри для лінії %s","Edit state names":"Редагувати назви штатів","Empty preset cannot be saved!":"Порожній пресет неможливо зберегти!","Enable logging for new state":"Увімкнути журналювання для нового стану","Enable zoom and pan":"Увімкніть масштабування та панорамування","Enable zoom and pan:":"Увімкнути масштабування та панорамування:",End:p8t,"End:":"Кінець:","Enter chart name":"Введіть назву діаграми",Expand:h8t,"Expand all lines":"Розгорнути всі рядки","Expand all markings":"Розгорнути всі позначки","Export data color":"Колір кнопки експорту даних",Fill:f8t,"Fill color:":"Колір заливки:","Fill range:":"Діапазон заповнення:","Fill(0to1)":"Заповнити (0до1)",Folder:m8t,"Font size":"Розмір шрифту",From:g8t,"From line %s":"З рядка %s",Functions:v8t,Grid:y8t,"Grid color":"Колір сітки","Grid color:":"Колір сітки:","Group by":"Групувати за","HH:MM dd.mm":"ГГ:МХ дд.хв",Height:_8t,"Height:":"Висота:","Hide X grid":"Приховати сітку X","Hide Y grid":"Приховати сітку Y","Hide edit button:":"Приховати кнопку редагування:","Hide nulls in tooltip":"Приховати нулі у підказці","Hover details":"Деталі наведення","Hover details:":"Деталі наведення:",ID:b8t,IDs:w8t,"If the current value is not older than X seconds, assume it is still the same.":"Якщо поточне значення не старше X секунд, припустимо, що воно все ще те саме.","In seconds":"За секунди",Individual:x8t,"Input data":"Вхідні дані","Inside / No lines":"Всередині / без ліній","Inside / With lines":"Всередині / З лініями","Inside end":"Всередині, на кінці","Inside end bottom":"Всередині, на кінці, на дні","Inside end top":"Всередині, в кінці, зверху","Inside middle":"Всередині, посередині","Inside middle bottom":"Всередині, посередині, внизу","Inside middle top":"Всередині, посередині, зверху","Inside start":"Всередині, на початку","Inside start bottom":"Всередині, на початку, внизу","Inside start top":"Всередині, на початку, зверху",Instance:S8t,"Integral unit":"Цілісний блок","Interpolate:":"Інтерполяція:","Interpolation method":"Метод інтерполяції",Intervals:C8t,"Invalid object":"Недійсний об'єкт",Label:$8t,"Label color:":"Колір етикетки:","Label font size:":"Розмір шрифту етикетки:",Labels:k8t,"Last changed":"Востаннє змінено",Left:E8t,Legend:T8t,"Legend background":"Легенда фону","Legend background:":"Фон легенди:","Legend columns:":"Умовні стовпці:","Legend opacity (from 0 to 1):":"Непрозорість легенди (від 0 до 1):","Legend text color":"Колір тексту легенди",Limits:O8t,Line:D8t,"Line ID":"Ідентифікатор лінії","Line Width":"Ширина лінії","Line and area":"Лінія і площа","Line style":"Стиль лінії",Link:A8t,"Live update every":"Оновлення в реальному часі кожні","Live update every:":"Оновлення в реальному часі кожні:","Load without save":"Завантажити без збереження","Loading...":"Завантаження...","Lower value or ID":"Нижнє значення або ID",Main:I8t,Mark:M8t,Markings:P8t,Max:N8t,"Max:":"Максимум:",Members:R8t,"Middle, left, inside":"Посередині, зліва, всередині","Middle, right, inside":"Посередині, справа, всередині","Middle, right, outside":"Посередині, справа, зовні",Min:j8t,"Min:":"мінімум:",MinMax:L8t,More:z8t,"Move to folder":"Перемістити в папку",Multiple:F8t,"NULL as":"NULL як",Name:B8t,"Name:":"Ім'я:","No ID yet":"Поки що немає ідентифікатора","No background":"Без фону","No border:":"Без кордону:","No future":"Жодних цінностей у майбутньому","No interpolate in hover":"Немає інтерполяції в спливаючій підказці","No presets created yet":"Попередніх налаштувань ще не створено",None:W8t,Offset:H8t,Ok:U8t,Open:V8t,"Open chart in own window":"Відкрити діаграму у власному вікні","Open in own window":"Відкрити у власному вікні",Options:q8t,Orientation:G8t,Others:X8t,"Outside / No lines":"Зовні / без ліній","Outside/ With lines":"Зовні/ З лініями",Paste:J8t,Percentile:Y8t,Pie:K8t,"Please confirm":"Будь ласка, підтвердьте",Points:Z8t,Polar:Q8t,Polygonal:eBt,"Predefined background:":"Попередньо визначений фон:",Presets:tBt,Processing:rBt,"Processing...":"Обробка...",Range:nBt,"Range:":"діапазон:",Relative:oBt,Rename:aBt,"Rename preset":"Перейменувати стиль","Reorder presets in folders":"Зміна порядку налаштувань у папках","Reset settings":"Скидання налаштувань","Reset zoom after idle":"Скинути масштаб після простою",Right:iBt,Role:sBt,Room:lBt,Rooms:cBt,Root:dBt,"Save current preset and load":"Зберегти поточний пресет і завантажити","Save image button color":"Зберегти колір кнопки зображення","Save into:":"Зберегти в:","Scatter plot":"Діаграма розкиду",Seconds:uBt,Select:pBt,"Select ID":"Виберіть ID","Select for":"Виберіть для","Shadow Size":"Розмір тіні","Show controls":"Показати елементи керування","Show export data button":"Показати кнопку експорту даних","Show labels:":"Показати мітки:","Show legend":"Показати легенду","Show legend:":"Показати легенду:","Show only in legend":"Показувати лише в легенді","Show points":"Показати бали","Show save image button":"Показати кнопку збереження зображення","Show values":"Показати значення",Smoothing:hBt,Source:fBt,Spline:mBt,Stack:gBt,"Start:":"початок:","State value":"Державне значення","State value text":"Вкажіть текст значення","Step span:":"Діапазон кроків:","Step type":"Тип кроку","Step type:":"Тип кроку:",Steps:vBt,"Steps on start":"Кроки на старті",Style:yBt,"System settings":"Налаштування системи",Text:_Bt,"Text X offset":"Зміщення тексту X","Text Y offset":"Текст Y-зсув","Text by false":"Текст від false","Text by true":"Текст від правда","Text color":"Колір тексту","Text position":"Позиція тексту","Text size":"Розмір тексту","Text values not used":"Текстові значення не використовуються",Texts:bBt,Theme:wBt,"This time offset will be added to the X label by displaying data on the chart":"Цей часовий зсув буде додано до мітки X шляхом відображення даних на діаграмі","This time offset will be added to the request by reading data from DB":"Цей часовий зсув буде додано до запиту шляхом читання даних з БД","Ticks from:":"Використовуйте X-ticks з:",Time:xBt,"Time Span":"Проміжок часу","Time format":"Формат часу","Time format:":"Формат часу:","Time span":"Проміжок часу","Time stamp":"Позначка часу",Title:SBt,"Title color":"Колір заголовка","Title color:":"Колір заголовка:","Title position":"Титульна позиція","Title position:":"Титульна позиція:","Title size":"Розмір заголовка","Title size:":"Розмір назви:","Title:":"Назва:","Top, center, inside":"Верх, центр, всередині","Top, left":"Зверху, зліва","Top, left, inside":"Зверху, зліва, всередині","Top, right":"Зверху, справа","Top, right, inside":"Зверху, справа, всередині","Top, right, outside":"Зверху, справа, зовні",Type:CBt,Unit:$Bt,"Units:":"Одиниці вимірювання:",Update:kBt,"Update objects":"Оновлення об'єктів","Update states":"Оновити штати","Upper value or ID":"Верхнє значення або ID","Use comma":"Використовуйте кому","Use comma:":"Використовуйте кому:","Use state names":"Використовуйте назви держав","User defined":"Визначений користувачем","User defined names:":"Визначені користувачем імена:","Valid time (sec)":"Дійсний час (с)",Value:EBt,Width:TBt,"Width:":"Ширина:","Window background":"Фон вікна","Window background:":"Фон вікна:",With:OBt,"With border":"З бордюром","With lines":"З лініями",Without:DBt,"Without border":"Без кордону","Without lines":"Без ліній","X Axis":"Вісь X","X Axis position":"Положення осі X","X axis labels color:":"Колір міток X:","X labels color":"Колір міток X","X labels size":"Розмір шрифту X","X ticks color":"Колір галочок X","X-Axis ticks":"Кліщі осі X","X-Label-Offset":"X-Label Offset","X-Offset":"Х-зсув","Y Axis":"Вісь Y","Y Axis position":"Положення осі Y","Y axis labels color:":"Колір міток Y:","Y labels color":"Колір міток Y","Y labels size":"Розмір шрифту Y","Y ticks color":"Колір галочок Y","Y-Axis ticks":"Відмітки осі Y","Y-Offset":"Y-зсув",'You can create a new markings with a "+" on the right.':"Ви можете створити нові позначки за допомогою «+» праворуч.","You can drag and drop simple lines from the left list.":"Ви можете перетягувати прості лінії зі списку ліворуч.","add children":"додати дітей",area:ABt,auto:IBt,average:MBt,bar:PBt,bottom:NBt,bottomColor:RBt,convert_help:jBt,copied:LBt,copy:zBt,count:FBt,counts:BBt,current:WBt,dashed:HBt,day:UBt,default:"за замовчуванням",difference:VBt,dotted:qBt,dow:GBt,edit:XBt,"edit enum":"редагувати enum","edit file":"редагувати файл","end of 10 minutes":"кінець 10 хвилин","end of 12 hours":"кінець 12 год","end of 2 hours":"кінець 2 год","end of 3 hours":"кінець 3 год","end of 30 minutes":"закінчення 30 хвилин","end of 4 hours":"кінець 4 год","end of 5 minutes":"закінчення 5 хвилин","end of 6 hours":"кінець 6 год","end of 8 hours":"кінець 8 год","end of day":"кінець дня","end of hour":"кінець години","end of minute":"кінець хвилини","end of previous saturday":"кінець попередньої суботи (2 тижні)","end of previous sunday":"кінець попередньої неділі (2 тижні)","end of saturday":"кінець суботи","end of sunday":"кінець неділі",false:"нуль",horizontal:JBt,i15min:YBt,i1day:KBt,i1hour:ZBt,i30days:QBt,"ignore 'null'":'ігнорувати "null"',"ignore 'null':":"ігнорувати 'null':","ignore null values":"ігнорувати нульові значення",integral:e9t,"last value":"останнє значення",left:t9t,"left colored":"лівий кольоровий",leftColor:r9t,line:n9t,linear:o9t,lineplot:a9t,load:i9t,max:s9t,middle:l9t,min:c9t,minmax:d9t,month:u9t,new:"новий",no:p9t,"no null":" немає нуля","non-processed":"необроблені",none:h9t,none_no:f9t,now:m9t,null:"нуль",off:g9t,onchange:v9t,"own axis":"власна вісь",percentile:y9t,polar:_9t,raw:b9t,relative:w9t,reload:x9t,"restart script":"перезапустити сценарій",right:S9t,"right colored":"правильний колір",rightColor:C9t,role:$9t,save:k9t,"save %s":"зберегти %s",scatterplot:E9t,seconds:T9t,solid:O9t,spline:D9t,standard:A9t,static:"статичний",steps:I9t,"this month":"цього місяця","this year":"цього року",to:M9t,today:P9t,top:N9t,"top over":"зверху","top under":"зверху під",topColor:R9t,total:j9t,true:"останнє значення","update Preview":"оновлення попереднього перегляду","use 0 instead of null values":"використовувати 0 замість нульових значень",vertical:L9t,weekEurope:z9t,weekUsa:F9t,year:B9t,yes:W9t,ØL:"ØL","ØL - Line thickness":"ØL - Товщина лінії","ØL Line thickness":"ØL Товщина лінії",ØS:"ØS","ØS - Shadow size":"ØS - розмір тіні","ØS Shadow size":"ØS Розмір тіні"},U9t="承认",V9t="添加",q9t="总计的",G9t="类型",X9t="所有",J9t="外观",Y9t="申请",K9t="汽车",Z9t="轴",Q9t="背景资料",e7t="Bar",t7t="边界",r7t="取消",n7t="圆圈",o7t="关闭",a7t="坍方",i7t="颜色",s7t="复制",l7t="计数",c7t="创造",d7t="数据",u7t="默认的",p7t="删除",h7t="对话",f7t="编辑",m7t="结束",g7t="扩大",v7t="填充",y7t="夹",_7t="自: ",b7t="功能",w7t="格",x7t="高度",S7t="ID",C7t="IDs",$7t="个人",k7t="实例",E7t="间隔",T7t="标签",O7t="标签",D7t="左",A7t="传说",I7t="限度",M7t="线",P7t="链接",N7t="主要",R7t="打标",j7t="标记",L7t="Max",z7t="成员",F7t="Min",B7t="MinMax",W7t="更多",H7t="多",U7t="名称",V7t="没有",q7t="X-Offset",G7t='"确定"',X7t="打开",J7t="选项",Y7t="方向",K7t="其他",Z7t="糊",Q7t="百分位数",eWt="馅饼",tWt="点",rWt="极坐标图",nWt="多边形",oWt="预置",aWt="加工",iWt="范围",sWt="相对的",lWt="改名",cWt="右",dWt="作用",uWt="房间",pWt="房间数",hWt="根",fWt="几秒钟",mWt="选择",gWt="平滑",vWt="来源",yWt="花键",_Wt="栈",bWt="步骤",wWt="风格",xWt="文本",SWt="文字",CWt="主题",$Wt="时间",kWt="标题",EWt="类型",TWt="单元",OWt="更新",DWt="值",AWt="宽度",IWt="与",MWt="没有",PWt="区域",NWt="汽车",RWt="平均",jWt="酒吧",LWt="底部",zWt="底色",FWt="输入公式,如“val / 1000 + 3”。此公式将应用于所选数据点的所有值。",BWt="复制的",WWt="复制",HWt="数数",UWt="计数",VWt="当前值",qWt="虚线",GWt="一天",XWt="不同之处",JWt="点缀",YWt="星期几",KWt="编辑",ZWt="水平的",QWt="15分钟",eHt="1天",tHt="1小时",rHt="30天",nHt="不可缺少的",oHt="左",aHt="留着色",iHt="线",sHt="线性的",lHt="线图",cHt="负载",dHt="max",uHt="中间",pHt="min",hHt="minmax",fHt="一个月",mHt="没有",gHt="没有",vHt="没有任何",yHt="现在",_Ht="关闭",bHt="在改变",wHt="百分位数",xHt="极坐标图",SHt="生的",CHt="相对",$Ht="重新加载",kHt="右",EHt="右色",THt="作用",OHt="保存",DHt="散点图",AHt="几秒钟",IHt="固体",MHt="样",PHt="标准",NHt="步骤",RHt="至",jHt="今天",LHt="顶部",zHt="顶颜色的",FHt="总",BHt="垂直",WHt="结束一天",HHt="结束的星期天",UHt="年",VHt="是的",qHt={0:"零",1:"一个",2:"两个",3:"三",4:"四个",5:"五个","%s ago":"%s前","ØL":"ØL","ØS":"ØS","0 seconds":"0秒","0s":"0秒","1 day":"1天","1 hour":"1小时","1 minute":"1分钟","1 month":"1个月","1 week":"1周","1 year":"1年","10 minutes":"10分钟","10 seconds":"10秒钟","10m":"10分钟","10minutes":"结束的10分钟","10s":"10秒钟","12 hours":"12小时","12H":"12小时","12W":"12周","12hours":"结束的12小时","14 days":"14天","15 minutes":"15分钟","15 seconds":"15秒","15m":"15分钟","1D":"1天","1H":"1小时","1M":"1个月","1W":"1星期","1Y":"1年","1hour":"结束小时","1minute":"结束的分钟","1s":"1秒","2 days":"2天","2 hours":"2小时","2 minutes":"2分钟","2 months":"2个月","2 weeks":"2周","2 years":"2年","20 minutes":"20分钟","20 seconds":"20秒","26W":"26周","2D":"2天","2H":"2小时","2M":"2个月","2W":"2个星期","2Y":"2年","2hours":"结束2个小时","2m":"2分钟","2s":"2秒","3 days":"3天","3 hours":"3小时","3 minutes":"3分钟","3 months":"3个月","30 minutes":"30分钟","30 seconds":"30秒","300ms":"300毫秒","30m":"30分钟","30minutes":"30分钟","30s":"30秒","3D":"3天","3M":"3个月","3hours":"结束的3小时","3m":"3分钟","3s":"3秒","4 days":"4天","4 minutes":"4分钟","45 minutes":"45分钟","45m":"45分钟","4D":"4天","4W":"4个星期","4hours":"结束4个小时","4m":"4分钟","5 minutes":"5分钟","5 seconds":"5秒钟","500ms":"500毫秒","5m":"5分钟","5minutes":"结束5分钟","5s":"5秒钟","6 hours":"6小时","6 months":"6个月","60 seconds":"60秒","60s":"60秒","6H":"6小时","6M":"6个月","6hours":"结束的6个小时","7 days":"7天","8W":"8个星期","8hours":"端8个小时","90 seconds":"90秒",Acknowledged:U9t,Add:V9t,"Add line to chart":"向图表添加线","Add marking line to chart":"将标记线添加到图表","Add new line":"添加新的线","Add new markings":"添加新的标记","Add new state name":"添加新州名","Add new value":"增加新价值","After comma":"之后的逗号",Aggregate:q9t,"Aggregate for lines":"线路聚合",Aggregation:G9t,"Aggregation:":"类型:",All:X9t,"Animation:":"动画:",Appearance:J9t,Apply:Y9t,"Are you sure for closing folder and discard unsaved changes?":"您确定要关闭文件夹并放弃未保存的更改吗?","Are you sure for delete this line?":"您确定要删除此行吗?","Are you sure for delete this mark?":"您确定要删除此标记吗?","Are you sure for delete this preset?":"您确定要删除此预设吗?","Are you sure for loading the chart and discard unsaved changes?":"您确定要加载图表并放弃未保存的更改吗?","Are you sure for loading the preset and discard unsaved changes?":"您确定要加载预设并放弃未保存的更改吗?","Arrange bools":"安排布尔",Auto:K9t,"Auto (Line or Steps)":"自动(行或步)","Auto padding":"自动缩进","Auto save":"自动保存","Auto-refresh":"自动刷新","Auto-update:":"自动更新:",Axis:Z9t,"Background of radar chart":"雷达图背景","Background:":"背景:",Backgrounds:Q9t,Bar:e7t,"Bar settings":"酒吧设置","Bars width:":"酒吧宽度:",Border:t7t,"Border color:":"边界颜色:","Border padding":"边框填充","Border width":"边框宽度","Border width:":"边界的宽度:","Bottom, center, inside":"底,中心,里面","Bottom, center, outside":"底,中心,外","Bottom, left":"底,左","Bottom, left, inside":"底,左,内部","Bottom, right":"底,右","Bottom, right, inside":"底,右,内部","Bottom, right, outside":"底,右,外",Cancel:r7t,"Cannot create unique ID":"无法创建唯一 ID","Chart Type":"图表的类型","Chart background":"图表背景","Chart background:":"图背景:","Chart size":"图表大小","Chart type":"图表类型","Charts preview":"图表预览",Circle:n7t,Close:o7t,Collapse:a7t,"Collapse all lines":"收合所有行","Collapse all markings":"收起所有标记",Color:i7t,"Common Y Axis":"共同Y轴","Convert formula":"换算公式",Copy:s7t,"Copy link to clipboard":"复制链接到剪贴板",Counts:l7t,Create:c7t,"Create folder":"创建文件夹","Create new folder":"建立新资料夹","Create new preset":"创建新的预设","Create preset":"创建预设","Custom chart background:":"定制图背景:","Custom time format":"自定义时间格式",Data:d7t,Default:u7t,Delete:p7t,"Delete object":"删除的对象","Delete text value":"删除文本值",Dialog:h7t,"Digits after comma":"逗号后的数字","Drag me":"拉我一把",Edit:f7t,"Edit folder name":"编辑文件夹名称","Edit options for line %s":"编辑的选择行%s","Edit state names":"编辑州名称","Empty preset cannot be saved!":"空预设无法保存!","Enable logging for new state":"启用新状态的日志记录","Enable zoom and pan":"启用缩放和平移","Enable zoom and pan:":"使缩小和锅:",End:m7t,"End:":"结束:","Enter chart name":"该图表的名字",Expand:g7t,"Expand all lines":"展开所有行","Expand all markings":"展开所有标记","Export data color":"导出数据按钮颜色",Fill:v7t,"Fill color:":"填补颜色:","Fill range:":"填补范围:","Fill(0to1)":"填补(0to1)",Folder:y7t,"Font size":"字体大小",From:_7t,"From line %s":"从第%s行",Functions:b7t,Grid:w7t,"Grid color":"网格颜色","Grid color:":"格颜色:","Group by":"通过...分组","HH:MM dd.mm":"HH:MM dd.mm",Height:x7t,"Height:":"高度:","Hide X grid":"隐藏X网格","Hide Y grid":"隐藏Y格","Hide edit button:":"隐藏编辑按钮:","Hide nulls in tooltip":"在工具提示中隐藏空值","Hover details":"悬停详细信息","Hover details:":"悬停的详细信息:",ID:S7t,IDs:C7t,"If the current value is not older than X seconds, assume it is still the same.":"如果当前值不超过X秒,则假定它仍然相同。","In seconds":"马上",Individual:$7t,"Input data":"输入数据","Inside / No lines":"内部/无线","Inside / With lines":"内部/有线","Inside end":"里面,尽头","Inside end bottom":"里面,最后,底部","Inside end top":"在里面,在最后,在上面","Inside middle":"在里面,在中间","Inside middle bottom":"里面,中间,底部","Inside middle top":"里面,中间,顶部","Inside start":"里面,一开始","Inside start bottom":"里面,开始,底部","Inside start top":"里面,开始,在上面",Instance:k7t,"Integral unit":"整体单元","Interpolate:":"插入:","Interpolation method":"插值法",Intervals:E7t,"Invalid object":"无效对象",Label:T7t,"Label color:":"标签颜色:","Label font size:":"签字体大小:",Labels:O7t,"Last changed":"最后改变",Left:D7t,Legend:A7t,"Legend background":"图例背景","Legend background:":"传说背景:","Legend columns:":"图例列:","Legend opacity (from 0 to 1):":"传说不透明(从0至1):","Legend text color":"图例文字颜色",Limits:I7t,Line:M7t,"Line ID":"行ID","Line Width":"线宽度","Line and area":"线和面积","Line style":"线型",Link:P7t,"Live update every":"实时更新","Live update every:":"实时更新每:","Load without save":"载入但不保存","Loading...":"装载...","Lower value or ID":"值较低或身份",Main:N7t,Mark:R7t,Markings:j7t,Max:L7t,"Max:":"最大值:",Members:z7t,"Middle, left, inside":"中间,左,内部","Middle, right, inside":"中间,正确的,里面","Middle, right, outside":"中间,正确的,外",Min:F7t,"Min:":"最低限度:",MinMax:B7t,More:W7t,"Move to folder":"移至文件夹",Multiple:H7t,"NULL as":"NULL作",Name:U7t,"Name:":"名称:","No ID yet":"暂无ID","No background":"没有背景","No border:":"没有边界:","No future":"未来没有任何价值","No interpolate in hover":"工具提示中没有插值","No presets created yet":"尚未创建预设",None:V7t,Offset:q7t,Ok:G7t,Open:X7t,"Open chart in own window":"在自己的窗口中打开图表","Open in own window":"在自己的窗口中打开",Options:J7t,Orientation:Y7t,Others:K7t,"Outside / No lines":"外面/有线","Outside/ With lines":"外面/有线",Paste:Z7t,Percentile:Q7t,Pie:eWt,"Please confirm":"请确认",Points:tWt,Polar:rWt,Polygonal:nWt,"Predefined background:":"预先定义的背景:",Presets:oWt,Processing:aWt,"Processing...":"处理...",Range:iWt,"Range:":"范围:",Relative:sWt,Rename:lWt,"Rename preset":"重命名预设","Reorder presets in folders":"重新排序文件夹中的预设","Reset settings":"重置的设置","Reset zoom after idle":"闲置后重置变焦",Right:cWt,Role:dWt,Room:uWt,Rooms:pWt,Root:hWt,"Save current preset and load":"保存当前预设并加载","Save image button color":"保存图像按钮颜色","Save into:":"节省成:","Scatter plot":"散点图",Seconds:fWt,Select:mWt,"Select ID":"Select ID","Select for":"选择用于","Shadow Size":"影子的尺寸","Show controls":"显示控件","Show export data button":"显示导出数据按钮","Show labels:":"显示标签:","Show legend":"显示图例","Show legend:":"示例:","Show only in legend":"仅在图例中显示","Show points":"显示点","Show save image button":"显示保存图像按钮","Show values":"显示数值",Smoothing:gWt,Source:vWt,Spline:yWt,Stack:_Wt,"Start:":"开始:","State value":"状态值","State value text":"状态值文本","Step span:":"步范围:","Step type":"步骤类型","Step type:":"步骤类型:",Steps:bWt,"Steps on start":"开始步骤",Style:wWt,"System settings":"系统设置的",Text:xWt,"Text X offset":"文本偏 X","Text Y offset":"文本 Y 偏移","Text by false":"假文字","Text by true":"文字真实","Text color":"文字颜色","Text position":"文的位置","Text size":"文字的大小","Text values not used":"未使用文本值",Texts:SWt,Theme:CWt,"This time offset will be added to the X label by displaying data on the chart":"通过在图表上显示数据,此时间偏移量将添加到 X 标签","This time offset will be added to the request by reading data from DB":"该时间偏移量将通过从 DB 读取数据添加到请求中","Ticks from:":"使用X-蜱:",Time:$Wt,"Time Span":"时间跨度","Time format":"时间格式","Time format:":"时间格式:","Time span":"时间跨度","Time stamp":"时间戳",Title:kWt,"Title color":"标题颜色","Title color:":"标题颜色:","Title position":"头衔","Title position:":"标题中的位置:","Title size":"标题大小","Title size:":"标题尺寸:","Title:":"标题:","Top, center, inside":"顶部,中心,里面","Top, left":"顶,左","Top, left, inside":"顶,左,内部","Top, right":"顶部右","Top, right, inside":"上右内侧","Top, right, outside":"上右之外",Type:EWt,Unit:TWt,"Units:":"单位:",Update:OWt,"Update objects":"更新对象","Update states":"更新国家","Upper value or ID":"上值或身份","Use comma":"使用逗号","Use comma:":"使用逗号:","Use state names":"使用州名","User defined":"用户定义的","User defined names:":"用户限定的名称:","Valid time (sec)":"有效时间(秒)",Value:DWt,Width:AWt,"Width:":"宽度:","Window background":"窗口背景","Window background:":"窗口背景:",With:IWt,"With border":"有边框","With lines":"有线",Without:MWt,"Without border":"无国界","Without lines":"无线","X Axis":"X轴","X Axis position":"X轴位置","X axis labels color:":"X标颜色:","X labels color":"X标签颜色","X labels size":"X 字体大小","X ticks color":"X刻度颜色","X-Axis ticks":"X轴蜱","X-Label-Offset":"X 标签偏移","X-Offset":"X偏移","Y Axis":"Y轴","Y Axis position":"Y轴位置","Y axis labels color:":"Y颜色的标签:","Y labels color":"Y标签颜色","Y labels size":"Y字号","Y ticks color":"Y刻度颜色","Y-Axis ticks":"Y轴蜱","Y-Offset":"Y-Offset",'You can create a new markings with a "+" on the right.':"您可以在右侧创建带有“ +”的新标记。","You can drag and drop simple lines from the left list.":"您可以从左侧列表中拖放简单的行。","add children":"添加儿童",area:PWt,auto:NWt,average:RWt,bar:jWt,bottom:LWt,bottomColor:zWt,convert_help:FWt,copied:BWt,copy:WWt,count:HWt,counts:UWt,current:VWt,dashed:qWt,day:GWt,default:"默认的",difference:XWt,dotted:JWt,dow:YWt,edit:KWt,"edit enum":"编辑enum","edit file":"编辑的文件","end of 10 minutes":"结束的10分钟","end of 12 hours":"结束的12小时","end of 2 hours":"结束2个小时","end of 3 hours":"结束的3小时","end of 30 minutes":"30分钟","end of 4 hours":"结束4个小时","end of 5 minutes":"结束5分钟","end of 6 hours":"结束的6个小时","end of 8 hours":"端8个小时","end of day":"结束一天","end of hour":"结束小时","end of minute":"结束的分钟","end of previous saturday":"上周六结束(2周)","end of previous sunday":"上周日结束(2 周)","end of saturday":"结束的星期六","end of sunday":"结束的星期天",false:"空",horizontal:ZWt,i15min:QWt,i1day:eHt,i1hour:tHt,i30days:rHt,"ignore 'null'":"忽略'null'","ignore 'null':":"忽略'null':","ignore null values":"忽略空值",integral:nHt,"last value":"最后一个值",left:oHt,"left colored":"左色",leftColor:aHt,line:iHt,linear:sHt,lineplot:lHt,load:cHt,max:dHt,middle:uHt,min:pHt,minmax:hHt,month:fHt,new:"新的",no:mHt,"no null":"与nbsp;没有空","non-processed":"未加工",none:gHt,none_no:vHt,now:yHt,null:"空",off:_Ht,onchange:bHt,"own axis":"自己的轴",percentile:wHt,polar:xHt,raw:SHt,relative:CHt,reload:$Ht,"restart script":"重新启动脚本",right:kHt,"right colored":"正确的颜色",rightColor:EHt,role:THt,save:OHt,"save %s":"保存%s",scatterplot:DHt,seconds:AHt,solid:IHt,spline:MHt,standard:PHt,static:"静",steps:NHt,"this month":"这个月","this year":"今年",to:RHt,today:jHt,top:LHt,"top over":"顶上","top under":"顶下",topColor:zHt,total:FHt,true:"最后一个值","update Preview":"更新预览","use 0 instead of null values":"使用0,而不是空值",vertical:BHt,weekEurope:WHt,weekUsa:HHt,year:UHt,yes:VHt,ØL:"ØL","ØL - Line thickness":"ØL-线宽","ØL Line thickness":"ØL线宽",ØS:"ØS","ØS - Shadow size":"ØS-阴影尺寸","ØS Shadow size":"ØS阴影尺寸"};var Zn={},Kc={},AS,Fz;function GV(){if(Fz)return AS;Fz=1;var t=typeof xs=="object"&&xs&&xs.Object===Object&&xs;return AS=t,AS}var IS,Bz;function ui(){if(Bz)return IS;Bz=1;var t=GV(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return IS=r,IS}var MS,Wz;function Ff(){if(Wz)return MS;Wz=1;var t=ui(),e=t.Symbol;return MS=e,MS}var PS,Hz;function GHt(){if(Hz)return PS;Hz=1;var t=Ff(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function a(i){var s=r.call(i,o),l=i[o];try{i[o]=void 0;var d=!0}catch{}var h=n.call(i);return d&&(s?i[o]=l:delete i[o]),h}return PS=a,PS}var NS,Uz;function XHt(){if(Uz)return NS;Uz=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return NS=r,NS}var RS,Vz;function nc(){if(Vz)return RS;Vz=1;var t=Ff(),e=GHt(),r=XHt(),n="[object Null]",o="[object Undefined]",a=t?t.toStringTag:void 0;function i(s){return s==null?s===void 0?o:n:a&&a in Object(s)?e(s):r(s)}return RS=i,RS}var jS,qz;function Ma(){if(qz)return jS;qz=1;var t=Array.isArray;return jS=t,jS}var LS,Gz;function Wi(){if(Gz)return LS;Gz=1;function t(e){return e!=null&&typeof e=="object"}return LS=t,LS}var zS,Xz;function JHt(){if(Xz)return zS;Xz=1;var t=nc(),e=Ma(),r=Wi(),n="[object String]";function o(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return zS=o,zS}var FS,Jz;function YHt(){if(Jz)return FS;Jz=1;function t(e){return function(r,n,o){for(var a=-1,i=Object(r),s=o(r),l=s.length;l--;){var d=s[e?l:++a];if(n(i[d],d,i)===!1)break}return r}}return FS=t,FS}var BS,Yz;function KHt(){if(Yz)return BS;Yz=1;var t=YHt(),e=t();return BS=e,BS}var WS,Kz;function ZHt(){if(Kz)return WS;Kz=1;function t(e,r){for(var n=-1,o=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return GS=e,GS}var XS,oF;function tUt(){if(oF)return XS;oF=1;var t=nc(),e=ID(),r=Wi(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",s="[object Error]",l="[object Function]",d="[object Map]",h="[object Number]",u="[object Object]",f="[object RegExp]",g="[object Set]",y="[object String]",b="[object WeakMap]",x="[object ArrayBuffer]",S="[object DataView]",T="[object Float32Array]",E="[object Float64Array]",$="[object Int8Array]",k="[object Int16Array]",O="[object Int32Array]",M="[object Uint8Array]",R="[object Uint8ClampedArray]",j="[object Uint16Array]",I="[object Uint32Array]",z={};z[T]=z[E]=z[$]=z[k]=z[O]=z[M]=z[R]=z[j]=z[I]=!0,z[n]=z[o]=z[x]=z[a]=z[S]=z[i]=z[s]=z[l]=z[d]=z[h]=z[u]=z[f]=z[g]=z[y]=z[b]=!1;function W(L){return r(L)&&e(L.length)&&!!z[t(L)]}return XS=W,XS}var JS,aF;function MD(){if(aF)return JS;aF=1;function t(e){return function(r){return e(r)}}return JS=t,JS}var yh={exports:{}};yh.exports;var iF;function PD(){return iF||(iF=1,function(t,e){var r=GV(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();t.exports=s}(yh,yh.exports)),yh.exports}var YS,sF;function YV(){if(sF)return YS;sF=1;var t=tUt(),e=MD(),r=PD(),n=r&&r.isTypedArray,o=n?e(n):t;return YS=o,YS}var KS,lF;function KV(){if(lF)return KS;lF=1;var t=ZHt(),e=XV(),r=Ma(),n=AD(),o=JV(),a=YV(),i=Object.prototype,s=i.hasOwnProperty;function l(d,h){var u=r(d),f=!u&&e(d),g=!u&&!f&&n(d),y=!u&&!f&&!g&&a(d),b=u||f||g||y,x=b?t(d.length,String):[],S=x.length;for(var T in d)(h||s.call(d,T))&&!(b&&(T=="length"||g&&(T=="offset"||T=="parent")||y&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||o(T,S)))&&x.push(T);return x}return KS=l,KS}var ZS,cF;function ND(){if(cF)return ZS;cF=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return ZS=e,ZS}var QS,dF;function ZV(){if(dF)return QS;dF=1;function t(e,r){return function(n){return e(r(n))}}return QS=t,QS}var eC,uF;function rUt(){if(uF)return eC;uF=1;var t=ZV(),e=t(Object.keys,Object);return eC=e,eC}var tC,pF;function nUt(){if(pF)return tC;pF=1;var t=ND(),e=rUt(),r=Object.prototype,n=r.hasOwnProperty;function o(a){if(!t(a))return e(a);var i=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&i.push(s);return i}return tC=o,tC}var rC,hF;function zu(){if(hF)return rC;hF=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return rC=t,rC}var nC,fF;function QV(){if(fF)return nC;fF=1;var t=nc(),e=zu(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(s){if(!e(s))return!1;var l=t(s);return l==n||l==o||l==r||l==a}return nC=i,nC}var oC,mF;function c_(){if(mF)return oC;mF=1;var t=QV(),e=ID();function r(n){return n!=null&&e(n.length)&&!t(n)}return oC=r,oC}var aC,gF;function Bf(){if(gF)return aC;gF=1;var t=KV(),e=nUt(),r=c_();function n(o){return r(o)?t(o):e(o)}return aC=n,aC}var iC,vF;function eq(){if(vF)return iC;vF=1;var t=KHt(),e=Bf();function r(n,o){return n&&t(n,o,e)}return iC=r,iC}var sC,yF;function tq(){if(yF)return sC;yF=1;function t(e){return e}return sC=t,sC}var lC,_F;function oUt(){if(_F)return lC;_F=1;var t=tq();function e(r){return typeof r=="function"?r:t}return lC=e,lC}var cC,bF;function RD(){if(bF)return cC;bF=1;var t=eq(),e=oUt();function r(n,o){return n&&t(n,e(o))}return cC=r,cC}var dC,wF;function jD(){if(wF)return dC;wF=1;var t=ZV(),e=t(Object.getPrototypeOf,Object);return dC=e,dC}var uC,xF;function aUt(){if(xF)return uC;xF=1;var t=nc(),e=jD(),r=Wi(),n="[object Object]",o=Function.prototype,a=Object.prototype,i=o.toString,s=a.hasOwnProperty,l=i.call(Object);function d(h){if(!r(h)||t(h)!=n)return!1;var u=e(h);if(u===null)return!0;var f=s.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&i.call(f)==l}return uC=d,uC}var pC,SF;function rq(){if(SF)return pC;SF=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,a=Array(o);++n-1}return yC=e,yC}var _C,DF;function dUt(){if(DF)return _C;DF=1;var t=d_();function e(r,n){var o=this.__data__,a=t(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return _C=e,_C}var bC,AF;function u_(){if(AF)return bC;AF=1;var t=iUt(),e=sUt(),r=lUt(),n=cUt(),o=dUt();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++sg))return!1;var b=u.get(i),x=u.get(s);if(b&&x)return b==s&&x==i;var S=-1,T=!0,E=l&o?new t:void 0;for(u.set(i,s),u.set(s,i);++S0&&arguments[0]!==void 0?arguments[0]:[],f=[];return(0,s.default)(u,function(g){Array.isArray(g)?h(g).map(function(y){return f.push(y)}):(0,a.default)(g)?(0,n.default)(g,function(y,b){y===!0&&f.push(b),f.push(b+"-"+y)}):(0,e.default)(g)&&f.push(g)}),f};return Kc.default=d,Kc}var Zc={},G$,a8;function mVt(){if(a8)return G$;a8=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],h=l.default&&(0,n.default)(l.default)||{};return d.map(function(u){var f=l[u];return f&&(0,e.default)(f,function(g,y){h[y]||(h[y]={}),h[y]=o({},h[y],f[y])}),u}),h};return Zc.default=i,Zc}var Qc={},j8;function BVt(){if(j8)return Qc;j8=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.autoprefix=void 0;var t=RD(),e=n(t),r=Object.assign||function(i){for(var s=1;s1&&arguments[1]!==void 0?arguments[1]:"span";return function(u){i(f,u);function f(){var g,y,b,x;o(this,f);for(var S=arguments.length,T=Array(S),E=0;E1&&arguments[1]!==void 0?arguments[1]:"span";return function(u){i(f,u);function f(){var g,y,b,x;o(this,f);for(var S=arguments.length,T=Array(S),E=0;E1&&arguments[1]!==void 0?arguments[1]:!0;o[s]=l};return r===0&&a("first-child"),r===n-1&&a("last-child"),(r===0||r%2===0)&&a("even"),Math.abs(r%2)===1&&a("odd"),a("nth-child",r),o};return Fg.default=t,Fg}var B8;function VVt(){if(B8)return Zn;B8=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.ReactCSS=Zn.loop=Zn.handleActive=Zn.handleHover=Zn.hover=void 0;var t=fVt(),e=f(t),r=FVt(),n=f(r),o=BVt(),a=f(o),i=WVt(),s=f(i),l=HVt(),d=f(l),h=UVt(),u=f(h);function f(y){return y&&y.__esModule?y:{default:y}}Zn.hover=s.default,Zn.handleHover=s.default,Zn.handleActive=d.default,Zn.loop=u.default;var g=Zn.ReactCSS=function(b){for(var x=arguments.length,S=Array(x>1?x-1:0),T=1;Ts?f=1:f=Math.round(u*100/s)/100,r.a!==f)return{h:r.h,s:r.s,l:r.l,a:f,source:"rgb"}}else{var g=void 0;if(h<0?g=0:h>i?g=1:g=Math.round(h*100/i)/100,o!==g)return{h:r.h,s:r.s,l:r.l,a:g,source:"rgb"}}return null},Sk={},GVt=function(e,r,n,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=n*2,a.height=n*2;var i=a.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,a.width,a.height),i.fillStyle=r,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),a.toDataURL()):null},XVt=function(e,r,n,o){var a=e+"-"+r+"-"+n+(o?"-server":"");if(Sk[a])return Sk[a];var i=GVt(e,r,n,o);return Sk[a]=i,i},W8=Object.assign||function(t){for(var e=1;e-1},lqt=function(e){return Number(String(e).replace(/%/g,""))},cqt=1,zt=function(t){nqt(e,t);function e(r){tqt(this,e);var n=rqt(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(o){n.setUpdatedValue(o.target.value,o)},n.handleKeyDown=function(o){var a=lqt(o.target.value);if(!isNaN(a)&&sqt(o.keyCode)){var i=n.getArrowOffset(),s=o.keyCode===yq?a+i:a-i;n.setUpdatedValue(s,o)}},n.handleDrag=function(o){if(n.props.dragLabel){var a=Math.round(n.props.value+o.movementX);a>=0&&a<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(a),o)}},n.handleMouseDown=function(o){n.props.dragLabel&&(o.preventDefault(),n.handleDrag(o),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(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+cqt++,n}return QVt(e,[{key:"componentDidUpdate",value:function(n,o){this.props.value!==this.state.value&&(n.value!==this.props.value||o.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(n){return eqt({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||oqt}},{key:"setUpdatedValue",value:function(n,o){var a=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(a,o),this.setState({value:n})}},{key:"render",value:function(){var n=this,o=Et({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 m.createElement("div",{style:o.wrap},m.createElement("input",{id:this.inputId,style:o.input,ref:function(i){return n.input=i},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?m.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(A.PureComponent||A.Component),dqt=function(e,r,n,o){var a=o.clientWidth,i=o.clientHeight,s=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,l=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,d=s-(o.getBoundingClientRect().left+window.pageXOffset),h=l-(o.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var u=void 0;if(h<0)u=359;else if(h>i)u=0;else{var f=-(h*100/i)+100;u=360*f/100}if(n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var g=void 0;if(d<0)g=0;else if(d>a)g=359;else{var y=d*100/a;g=360*y/100}if(n.h!==g)return{h:g,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},uqt=function(){function t(e,r){for(var n=0;n=0,a=!r&&o&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?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 lt(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(xJt,arguments)},brighten:function(){return this._applyModification(SJt,arguments)},darken:function(){return this._applyModification(CJt,arguments)},desaturate:function(){return this._applyModification(_Jt,arguments)},saturate:function(){return this._applyModification(bJt,arguments)},greyscale:function(){return this._applyModification(wJt,arguments)},spin:function(){return this._applyModification($Jt,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(TJt,arguments)},complement:function(){return this._applyCombination(kJt,arguments)},monochromatic:function(){return this._applyCombination(OJt,arguments)},splitcomplement:function(){return this._applyCombination(EJt,arguments)},triad:function(){return this._applyCombination(lB,[3])},tetrad:function(){return this._applyCombination(lB,[4])}};lt.fromRatio=function(t,e){if(Qv(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=bh(t[n]));t=r}return lt(t,e)};function fJt(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,a=null,i=!1,s=!1;return typeof t=="string"&&(t=PJt(t)),Qv(t)=="object"&&(ki(t.r)&&ki(t.g)&&ki(t.b)?(e=mJt(t.r,t.g,t.b),i=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):ki(t.h)&&ki(t.s)&&ki(t.v)?(n=bh(t.s),o=bh(t.v),e=vJt(t.h,n,o),i=!0,s="hsv"):ki(t.h)&&ki(t.s)&&ki(t.l)&&(n=bh(t.s),a=bh(t.l),e=gJt(t.h,n,a),i=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=Pq(r),{ok:i,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function mJt(t,e,r){return{r:Dr(t,255)*255,g:Dr(e,255)*255,b:Dr(r,255)*255}}function oB(t,e,r){t=Dr(t,255),e=Dr(e,255),r=Dr(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,s=(n+o)/2;if(n==o)a=i=0;else{var l=n-o;switch(i=s>.5?l/(2-n-o):l/(n+o),n){case t:a=(e-r)/l+(e1&&(u-=1),u<1/6?d+(h-d)*6*u:u<1/2?h:u<2/3?d+(h-d)*(2/3-u)*6:d}if(e===0)n=o=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=i(l,s,t+1/3),o=i(l,s,t),a=i(l,s,t-1/3)}return{r:n*255,g:o*255,b:a*255}}function aB(t,e,r){t=Dr(t,255),e=Dr(e,255),r=Dr(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,s=n,l=n-o;if(i=n===0?0:l/n,n==o)a=0;else{switch(n){case t:a=(e-r)/l+(e>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(lt(n));return a}function OJt(t,e){e=e||6;for(var r=lt(t).toHsv(),n=r.h,o=r.s,a=r.v,i=[],s=1/e;e--;)i.push(lt({h:n,s:o,v:a})),a=(a+s)%1;return i}lt.mix=function(t,e,r){r=r===0?0:r||50;var n=lt(t).toRgb(),o=lt(e).toRgb(),a=r/100,i={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return lt(i)};lt.readability=function(t,e){var r=lt(t),n=lt(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};lt.isReadable=function(t,e,r){var n=lt.readability(t,e),o,a;switch(a=!1,o=NJt(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};lt.mostReadable=function(t,e,r){var n=null,o=0,a,i,s,l;r=r||{},i=r.includeFallbackColors,s=r.level,l=r.size;for(var d=0;do&&(o=a,n=lt(e[d]));return lt.isReadable(t,n,{level:s,size:l})||!i?n:(r.includeFallbackColors=!1,lt.mostReadable(t,["#fff","#000"],r))};var W2=lt.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"},DJt=lt.hexNames=AJt(W2);function AJt(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function Pq(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Dr(t,e){IJt(t)&&(t="100%");var r=MJt(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function x_(t){return Math.min(1,Math.max(0,t))}function yo(t){return parseInt(t,16)}function IJt(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function MJt(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Sa(t){return t.length==1?"0"+t:""+t}function bh(t){return t<=1&&(t=t*100+"%"),t}function Nq(t){return Math.round(parseFloat(t)*255).toString(16)}function cB(t){return yo(t)/255}var ga=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),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 ki(t){return!!ga.CSS_UNIT.exec(t)}function PJt(t){t=t.replace(pJt,"").replace(hJt,"").toLowerCase();var e=!1;if(W2[t])t=W2[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ga.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=ga.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ga.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=ga.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ga.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=ga.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ga.hex8.exec(t))?{r:yo(r[1]),g:yo(r[2]),b:yo(r[3]),a:cB(r[4]),format:e?"name":"hex8"}:(r=ga.hex6.exec(t))?{r:yo(r[1]),g:yo(r[2]),b:yo(r[3]),format:e?"name":"hex"}:(r=ga.hex4.exec(t))?{r:yo(r[1]+""+r[1]),g:yo(r[2]+""+r[2]),b:yo(r[3]+""+r[3]),a:cB(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=ga.hex3.exec(t))?{r:yo(r[1]+""+r[1]),g:yo(r[2]+""+r[2]),b:yo(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function NJt(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var dB=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,o=0;return uJt(r,function(a){if(e[a]&&(n+=1,isNaN(e[a])||(o+=1),a==="s"||a==="l")){var i=/^\d+%$/;i.test(e[a])&&(o+=1)}}),n===o?e:!1},wh=function(e,r){var n=e.hex?lt(e.hex):lt(e),o=n.toHsl(),a=n.toHsv(),i=n.toRgb(),s=n.toHex();o.s===0&&(o.h=r||0,a.h=r||0);var l=s==="000000"&&i.a===0;return{hsl:o,hex:l?"transparent":"#"+s,rgb:i,hsv:a,oldHue:e.h||r||o.h,source:e.source}},Gs=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&<(e).isValid()},rA=function(e){if(!e)return"#fff";var r=wh(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},Ek=function(e,r){var n=e.replace("°","");return lt(r+" ("+n+")")._ok},Jp=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){HJt(o,n);function o(){var a,i,s,l;WJt(this,o);for(var d=arguments.length,h=Array(d),u=0;us))return!1;var d=a.get(t),h=a.get(e);if(d&&h)return d==e&&h==t;var u=-1,f=!0,g=r&tYt?new ey:void 0;for(a.set(t,e),a.set(e,t);++u=0||Object.prototype.hasOwnProperty.call(i,d)&&(l[d]=i[d]);return l}var a=24;return Wg.default=function(i){var s=i.fill,l=s===void 0?"currentColor":s,d=i.width,h=d===void 0?a:d,u=i.height,f=u===void 0?a:u,g=i.style,y=g===void 0?{}:g,b=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:l,width:h,height:f},y)},b),r.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"}))},Wg}var mKt=fKt();const gKt=so(mKt);var vKt=function(){function t(e,r){for(var n=0;n1&&(o.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(o.a*100)/100,source:"rgb"},a)):(o.h||o.s||o.l)&&(typeof o.s=="string"&&o.s.includes("%")&&(o.s=o.s.replace("%","")),typeof o.l=="string"&&o.l.includes("%")&&(o.l=o.l.replace("%","")),o.s==1?o.s=.01:o.l==1&&(o.l=.01),n.props.onChange({h:o.h||n.props.hsl.h,s:Number(kB(o.s)?n.props.hsl.s:o.s),l:Number(kB(o.l)?n.props.hsl.l:o.l),source:"hsl"},a))},n.showHighlight=function(o){o.currentTarget.style.background="#eee"},n.hideHighlight=function(o){o.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return vKt(e,[{key:"render",value:function(){var n=this,o=Et({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),a=void 0;return this.state.view==="hex"?a=m.createElement("div",{style:o.fields,className:"flexbox-fix"},m.createElement("div",{style:o.field},m.createElement(zt,{style:{input:o.input,label:o.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=m.createElement("div",{style:o.fields,className:"flexbox-fix"},m.createElement("div",{style:o.field},m.createElement(zt,{style:{input:o.input,label:o.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(zt,{style:{input:o.input,label:o.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(zt,{style:{input:o.input,label:o.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),m.createElement("div",{style:o.alpha},m.createElement(zt,{style:{input:o.input,label:o.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=m.createElement("div",{style:o.fields,className:"flexbox-fix"},m.createElement("div",{style:o.field},m.createElement(zt,{style:{input:o.input,label:o.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(zt,{style:{input:o.input,label:o.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(zt,{style:{input:o.input,label:o.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),m.createElement("div",{style:o.alpha},m.createElement(zt,{style:{input:o.input,label:o.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),m.createElement("div",{style:o.wrap,className:"flexbox-fix"},a,m.createElement("div",{style:o.toggle},m.createElement("div",{style:o.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},m.createElement(gKt,{style:o.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.hsl.a!==1&&o.view==="hex"?{view:"rgb"}:null}}]),e}(m.Component);Vq.defaultProps={view:"hex"};var TB=function(){var e=Et({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 m.createElement("div",{style:e.picker})},wKt=function(){var e=Et({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return m.createElement("div",{style:e.picker})},lA=function(e){var r=e.width,n=e.onChange,o=e.disableAlpha,a=e.rgb,i=e.hsl,s=e.hsv,l=e.hex,d=e.renderers,h=e.styles,u=h===void 0?{}:h,f=e.className,g=f===void 0?"":f,y=e.defaultView,b=Et(uo({default:{picker:{width:r,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("+a.r+", "+a.g+", "+a.b+", "+a.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:o});return m.createElement("div",{style:b.picker,className:"chrome-picker "+g},m.createElement("div",{style:b.saturation},m.createElement(w_,{style:b.Saturation,hsl:i,hsv:s,pointer:wKt,onChange:n})),m.createElement("div",{style:b.body},m.createElement("div",{style:b.controls,className:"flexbox-fix"},m.createElement("div",{style:b.color},m.createElement("div",{style:b.swatch},m.createElement("div",{style:b.active}),m.createElement(Fu,{renderers:d}))),m.createElement("div",{style:b.toggles},m.createElement("div",{style:b.hue},m.createElement(Bu,{style:b.Hue,hsl:i,pointer:TB,onChange:n})),m.createElement("div",{style:b.alpha},m.createElement(XD,{style:b.Alpha,rgb:a,hsl:i,pointer:TB,renderers:d,onChange:n})))),m.createElement(Vq,{rgb:a,hsl:i,hex:l,view:y,onChange:n,disableAlpha:o})))};lA.propTypes={width:We.oneOfType([We.string,We.number]),disableAlpha:We.bool,styles:We.object,defaultView:We.oneOf(["hex","rgb","hsl"])};lA.defaultProps={width:225,disableAlpha:!1,styles:{}};const xKt=po(lA);var SKt=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.active,s=Et({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:rA(r),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:i,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return m.createElement(lc,{style:s.color,color:r,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},m.createElement("div",{style:s.dot}))},CKt=function(e){var r=e.hex,n=e.rgb,o=e.onChange,a=Et({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},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"}}}),i=function(l,d){l.r||l.g||l.b?o({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},d):o({hex:l.hex,source:"hex"},d)};return m.createElement("div",{style:a.fields,className:"flexbox-fix"},m.createElement("div",{style:a.active}),m.createElement(zt,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:r,onChange:i}),m.createElement(zt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:i}),m.createElement(zt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:i}),m.createElement(zt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:i}))},cA=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.colors,a=e.hex,i=e.rgb,s=e.styles,l=s===void 0?{}:s,d=e.className,h=d===void 0?"":d,u=Et(uo({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),f=function(y,b){y.hex?Gs(y.hex)&&r({hex:y.hex,source:"hex"},b):r(y,b)};return m.createElement(Hf,{style:u.Compact,styles:l},m.createElement("div",{style:u.compact,className:"compact-picker "+h},m.createElement("div",null,cc(o,function(g){return m.createElement(SKt,{key:g,color:g,active:g.toLowerCase()===a,onClick:f,onSwatchHover:n})}),m.createElement("div",{style:u.clear})),m.createElement(CKt,{hex:a,rgb:i,onChange:f})))};cA.propTypes={colors:We.arrayOf(We.string),styles:We.object};cA.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"],styles:{}};po(cA);var $Kt=function(e){var r=e.hover,n=e.color,o=e.onClick,a=e.onSwatchHover,i={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=Et({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:i}},{hover:r});return m.createElement("div",{style:s.swatch},m.createElement(lc,{color:n,onClick:o,onHover:a,focusStyle:i}))};const kKt=GD.handleHover($Kt);var dA=function(e){var r=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,i=e.triangle,s=e.styles,l=s===void 0?{}:s,d=e.className,h=d===void 0?"":d,u=Et(uo({default:{card:{width:r,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)"}}},l),{"hide-triangle":i==="hide","top-left-triangle":i==="top-left","top-right-triangle":i==="top-right","bottom-left-triangle":i==="bottom-left","bottom-right-triangle":i==="bottom-right"}),f=function(y,b){return o({hex:y,source:"hex"},b)};return m.createElement("div",{style:u.card,className:"github-picker "+h},m.createElement("div",{style:u.triangleShadow}),m.createElement("div",{style:u.triangle}),cc(n,function(g){return m.createElement(kKt,{color:g,key:g,onClick:f,onSwatchHover:a})}))};dA.propTypes={width:We.oneOfType([We.string,We.number]),colors:We.arrayOf(We.string),triangle:We.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:We.object};dA.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};po(dA);var EKt=function(e){var r=e.direction,n=Et({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:r==="vertical"});return m.createElement("div",{style:n.picker})},TKt=Object.assign||function(t){for(var e=1;e.5});return m.createElement("div",{style:n.picker})},IKt=function(){var e=Et({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 m.createElement("div",{style:e.pointer},m.createElement("div",{style:e.left},m.createElement("div",{style:e.leftInside})),m.createElement("div",{style:e.right},m.createElement("div",{style:e.rightInside})))},OB=function(e){var r=e.onClick,n=e.label,o=e.children,a=e.active,i=Et({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:a});return m.createElement("div",{style:i.button,onClick:r},n||o)},MKt=function(e){var r=e.rgb,n=e.currentColor,o=Et({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.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 m.createElement("div",null,m.createElement("div",{style:o.label},"new"),m.createElement("div",{style:o.swatches},m.createElement("div",{style:o.new}),m.createElement("div",{style:o.current})),m.createElement("div",{style:o.label},"current"))},PKt=function(){function t(e,r){for(var n=0;n100&&(h.a=100),h.a/=100,r({h:o.h,s:o.s,l:o.l,a:h.a,source:"rgb"},u))};return m.createElement("div",{style:s.fields,className:"flexbox-fix"},m.createElement("div",{style:s.double},m.createElement(zt,{style:{input:s.input,label:s.label},label:"hex",value:a.replace("#",""),onChange:l})),m.createElement("div",{style:s.single},m.createElement(zt,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.single},m.createElement(zt,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.single},m.createElement(zt,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.alpha},m.createElement(zt,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:l,dragLabel:"true",dragMax:"100"})))},zKt=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(i,d)&&(l[d]=i[d]);return l}var a=24;return Hg.default=function(i){var s=i.fill,l=s===void 0?"currentColor":s,d=i.width,h=d===void 0?a:d,u=i.height,f=u===void 0?a:u,g=i.style,y=g===void 0?{}:g,b=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:l,width:h,height:f},y)},b),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},Hg}var UKt=HKt();const VKt=so(UKt);var qKt=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.first,s=e.last,l=e.active,d=Et({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:rA(r),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:i,last:s,active:l,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return m.createElement(lc,{color:r,style:d.color,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},m.createElement("div",{style:d.check},m.createElement(VKt,null)))},GKt=function(e){var r=e.onClick,n=e.onSwatchHover,o=e.group,a=e.active,i=Et({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return m.createElement("div",{style:i.group},cc(o,function(s,l){return m.createElement(qKt,{key:s,color:s,active:s.toLowerCase()===a,first:l===0,last:l===o.length-1,onClick:r,onSwatchHover:n})}))},mA=function(e){var r=e.width,n=e.height,o=e.onChange,a=e.onSwatchHover,i=e.colors,s=e.hex,l=e.styles,d=l===void 0?{}:l,h=e.className,u=h===void 0?"":h,f=Et(uo({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},d)),g=function(b,x){return o({hex:b,source:"hex"},x)};return m.createElement("div",{style:f.picker,className:"swatches-picker "+u},m.createElement(Hf,null,m.createElement("div",{style:f.overflow},m.createElement("div",{style:f.body},cc(i,function(y){return m.createElement(GKt,{key:y.toString(),group:y,active:s,onClick:g,onSwatchHover:a})}),m.createElement("div",{style:f.clear})))))};mA.propTypes={width:We.oneOfType([We.string,We.number]),height:We.oneOfType([We.string,We.number]),colors:We.arrayOf(We.arrayOf(We.string)),styles:We.object};mA.defaultProps={width:320,height:240,colors:[[Td[900],Td[700],Td[500],Td[300],Td[100]],[Od[900],Od[700],Od[500],Od[300],Od[100]],[Dd[900],Dd[700],Dd[500],Dd[300],Dd[100]],[Ad[900],Ad[700],Ad[500],Ad[300],Ad[100]],[Id[900],Id[700],Id[500],Id[300],Id[100]],[Md[900],Md[700],Md[500],Md[300],Md[100]],[Pd[900],Pd[700],Pd[500],Pd[300],Pd[100]],[Nd[900],Nd[700],Nd[500],Nd[300],Nd[100]],[Rd[900],Rd[700],Rd[500],Rd[300],Rd[100]],["#194D33",xh[700],xh[500],xh[300],xh[100]],[jd[900],jd[700],jd[500],jd[300],jd[100]],[Ld[900],Ld[700],Ld[500],Ld[300],Ld[100]],[zd[900],zd[700],zd[500],zd[300],zd[100]],[Fd[900],Fd[700],Fd[500],Fd[300],Fd[100]],[Bd[900],Bd[700],Bd[500],Bd[300],Bd[100]],[Wd[900],Wd[700],Wd[500],Wd[300],Wd[100]],[Hd[900],Hd[700],Hd[500],Hd[300],Hd[100]],[Ud[900],Ud[700],Ud[500],Ud[300],Ud[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};po(mA);var gA=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,i=e.width,s=e.triangle,l=e.styles,d=l===void 0?{}:l,h=e.className,u=h===void 0?"":h,f=Et(uo({default:{card:{width:i,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"}}},d),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),g=function(b,x){Gs(b)&&r({hex:b,source:"hex"},x)};return m.createElement("div",{style:f.card,className:"twitter-picker "+u},m.createElement("div",{style:f.triangleShadow}),m.createElement("div",{style:f.triangle}),m.createElement("div",{style:f.body},cc(a,function(y,b){return m.createElement(lc,{key:b,color:y,hex:y,style:f.swatch,onClick:g,onHover:n,focusStyle:{boxShadow:"0 0 4px "+y}})}),m.createElement("div",{style:f.hash},"#"),m.createElement(zt,{label:null,style:{input:f.input},value:o.replace("#",""),onChange:g}),m.createElement("div",{style:f.clear})))};gA.propTypes={width:We.oneOfType([We.string,We.number]),triangle:We.oneOf(["hide","top-left","top-right"]),colors:We.arrayOf(We.string),styles:We.object};gA.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};po(gA);var vA=function(e){var r=Et({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 m.createElement("div",{style:r.picker})};vA.propTypes={hsl:We.shape({h:We.number,s:We.number,l:We.number,a:We.number})};vA.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var yA=function(e){var r=Et({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 m.createElement("div",{style:r.picker})};yA.propTypes={hsl:We.shape({h:We.number,s:We.number,l:We.number,a:We.number})};yA.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var XKt=function(e){var r=e.onChange,n=e.rgb,o=e.hsl,a=e.hex,i=e.hsv,s=function(g,y){if(g.hex)Gs(g.hex)&&r({hex:g.hex,source:"hex"},y);else if(g.rgb){var b=g.rgb.split(",");Ek(g.rgb,"rgb")&&r({r:b[0],g:b[1],b:b[2],a:1,source:"rgb"},y)}else if(g.hsv){var x=g.hsv.split(",");Ek(g.hsv,"hsv")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),x[1]==1?x[1]=.01:x[2]==1&&(x[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsv"},y))}else if(g.hsl){var S=g.hsl.split(",");Ek(g.hsl,"hsl")&&(S[2]=S[2].replace("%",""),S[1]=S[1].replace("%",""),S[0]=S[0].replace("°",""),u[1]==1?u[1]=.01:u[2]==1&&(u[2]=.01),r({h:Number(S[0]),s:Number(S[1]),v:Number(S[2]),source:"hsl"},y))}},l=Et({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"}}}),d=n.r+", "+n.g+", "+n.b,h=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.l*100)+"%",u=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.v*100)+"%";return m.createElement("div",{style:l.wrap,className:"flexbox-fix"},m.createElement("div",{style:l.fields},m.createElement("div",{style:l.double},m.createElement(zt,{style:{input:l.input,label:l.label},label:"hex",value:a,onChange:s})),m.createElement("div",{style:l.column},m.createElement("div",{style:l.single},m.createElement(zt,{style:{input:l.input2,label:l.label2},label:"rgb",value:d,onChange:s})),m.createElement("div",{style:l.single},m.createElement(zt,{style:{input:l.input2,label:l.label2},label:"hsv",value:u,onChange:s})),m.createElement("div",{style:l.single},m.createElement(zt,{style:{input:l.input2,label:l.label2},label:"hsl",value:h,onChange:s})))))},_A=function(e){var r=e.width,n=e.onChange,o=e.rgb,a=e.hsl,i=e.hsv,s=e.hex,l=e.header,d=e.styles,h=d===void 0?{}:d,u=e.className,f=u===void 0?"":u,g=Et(uo({default:{picker:{width:r,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("+o.r+", "+o.g+", "+o.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"}}},h));return m.createElement("div",{style:g.picker,className:"google-picker "+f},m.createElement("div",{style:g.head},l),m.createElement("div",{style:g.swatch}),m.createElement("div",{style:g.saturation},m.createElement(w_,{hsl:a,hsv:i,pointer:vA,onChange:n})),m.createElement("div",{style:g.body},m.createElement("div",{style:g.controls,className:"flexbox-fix"},m.createElement("div",{style:g.hue},m.createElement(Bu,{style:g.Hue,hsl:a,radius:"4px",pointer:yA,onChange:n}))),m.createElement(XKt,{rgb:o,hsl:a,hex:s,hsv:i,onChange:n})))};_A.propTypes={width:We.oneOfType([We.string,We.number]),styles:We.object,header:We.string};_A.defaultProps={width:652,styles:{},header:"Color picker"};po(_A);const Wn={fieldContainer:{paddingTop:10,whiteSpace:"nowrap"},checkBoxLabel:{fontSize:"0.8rem",whiteSpace:"break-spaces"},objectContainer:{display:"flex",alignItems:"center"},objectField:{flex:1},objectButton:{marginTop:"auto",paddingLeft:0,maxHeight:29,height:29},sliderContainer:{position:"relative"},sliderLabel:{position:"absolute",top:0,left:0,fontSize:"small"},sliderRoot:{paddingBottom:0,paddingTop:16},selectIcon:{paddingRight:4},tooltip:{pointerEvents:"none"}},Dt=t=>{var r;const e=P.t(t.label);return w.jsx("div",{style:{...t.fullWidth?{width:"100%"}:void 0,...((r=t.styles)==null?void 0:r.fieldContainer)||Wn.fieldContainer,...t.style},children:w.jsx(Zr,{title:t.tooltip?P.t(t.tooltip):null,slotProps:{popper:{sx:Wn.tooltip}},children:w.jsxs(_a,{fullWidth:t.fullWidth,style:{minWidth:t.minWidth||200,width:t.width},variant:"standard",children:[w.jsx($l,{shrink:!0,children:e}),w.jsx(Bn,{fullWidth:t.fullWidth,variant:"standard",disabled:!!t.disabled,label:e,style:{color:t.colors&&t.colors[t.value]||void 0},onChange:n=>t.updateValue(n.target.value),value:t.value||"",renderValue:t.renderValue,displayEmpty:!0,children:t.options?Object.keys(t.options).map(n=>t.options[n]===void 0?null:w.jsxs(Jt,{value:n,style:{color:t.colors&&t.colors[n]||void 0},children:[t.icons&&t.icons[n]?w.jsx("span",{style:Wn.selectIcon,children:t.icons[n]}):null,t.noTranslate?t.options[n]:t.options[n]!==""&&t.options[n]!==null&&t.options[n]!==void 0?t.options[n].startsWith("-")?`-${P.t(t.options[n].substring(1))}`:P.t(t.options[n]):""]},n)):null})]})})})},kn=t=>{var e;return w.jsx("div",{style:{...t.fullWidth?{width:"100%"}:void 0,...((e=t.styles)==null?void 0:e.fieldContainer)||Wn.fieldContainer},children:w.jsx(St,{style:{paddingTop:10},label:w.jsx("span",{style:Wn.checkBoxLabel,children:P.t(t.label)}),control:w.jsx(yr,{disabled:!!t.disabled,onChange:r=>t.updateValue(r.target.checked),checked:t.value||!1})})})},Ln=t=>{var e;return w.jsx("div",{style:{...t.fullWidth?{width:"100%"}:void 0,...((e=t.styles)==null?void 0:e.fieldContainer)||Wn.fieldContainer},children:w.jsx(Ht,{variant:"standard",disabled:!!t.disabled,fullWidth:!0,style:{minWidth:t.minWidth},label:P.t(t.label),onChange:r=>t.updateValue(r.target.value),value:t.value||"",type:"text",title:t.tooltip||"",slotProps:{inputLabel:{shrink:!0},input:{startAdornment:!t.disabled&&t.helperLink?w.jsx(Ie,{size:"small",onClick:()=>{typeof t.helperLink=="function"?t.helperLink():window.open(t.helperLink,"_blank")},children:w.jsx(GH,{})}):void 0,endAdornment:!t.disabled&&t.value?w.jsx(Ie,{size:"small",onClick:()=>t.updateValue(""),children:w.jsx(Ar,{})}):void 0}}})})},Er=t=>{var e;return w.jsx("div",{style:{...t.fullWidth?{width:"100%"}:void 0,...((e=t.styles)==null?void 0:e.fieldContainer)||Wn.fieldContainer},children:w.jsx(Ht,{variant:"standard",disabled:!!t.disabled,fullWidth:t.fullWidth,style:{width:t.width||"100%"},label:P.t(t.label),onChange:r=>t.updateValue(parseInt(r.target.value)),value:t.value||"",type:"number",title:t.tooltip||"",slotProps:{inputLabel:{shrink:!0},htmlInput:{min:t.min,max:t.max}}})})},ty=t=>{var e;return w.jsx("div",{style:{...t.fullWidth?{width:"100%"}:void 0,...((e=t.styles)==null?void 0:e.fieldContainer)||Wn.fieldContainer},children:w.jsx(Ht,{variant:"standard",type:"datetime-local",label:P.t(t.label),fullWidth:t.fullWidth,slotProps:{inputLabel:{shrink:!0}},onChange:r=>{const n=r.target.value.split("T");t.updateValue(n[0],n[1])},value:t.date?`${t.date}T${t.time}`:""})})},Jd=t=>{var n,o,a;const[e,r]=A.useState(!1);return w.jsxs("div",{style:{...t.fullWidth?{width:"100%"}:void 0,...((n=t.styles)==null?void 0:n.fieldContainer)||Wn.fieldContainer,width:t.width,minWidth:t.minWidth},children:[w.jsxs("div",{style:{...t.fullWidth?{width:"100%"}:void 0,...((o=t.styles)==null?void 0:o.objectContainer)||Wn.objectContainer},children:[w.jsx(Ht,{variant:"standard",disabled:!!t.disabled,style:(a=t.styles)==null?void 0:a.objectField,label:P.t(t.label),fullWidth:!0,slotProps:{inputLabel:{shrink:!0},input:{endAdornment:!t.disabled&&t.value?w.jsx(Ie,{size:"small",onClick:()=>t.updateValue(""),children:w.jsx(Ar,{})}):void 0}},value:t.value||"",onChange:i=>t.updateValue(i.target.value)}),w.jsx(Ie,{disabled:!!t.disabled,size:"small",onClick:()=>r(!0),style:Wn.objectButton,children:w.jsx(jve,{})})]}),e?w.jsx(OV,{theme:t.theme,imagePrefix:"../..",socket:t.socket,dialogName:t.name,customFilter:t.customFilter,title:`${P.t("Select for")} ${t.label}`,selected:t.value,onOk:i=>{Array.isArray(i)?t.updateValue(i[0]||""):t.updateValue(i),r(!1)},onClose:()=>r(!1)},`selectDialog_${t.name}`):null]})},$u=t=>{var e,r,n,o;return w.jsxs("div",{style:{...((e=t.styles)==null?void 0:e.fieldContainer)||Wn.fieldContainer,...((r=t.styles)==null?void 0:r.sliderContainer)||Wn.sliderContainer},children:[w.jsx(Ka,{style:((n=t.styles)==null?void 0:n.sliderLabel)||Wn.sliderLabel,children:t.label}),w.jsx(Rue,{disabled:!!t.disabled,style:((o=t.styles)==null?void 0:o.sliderRoot)||Wn.sliderRoot,value:parseFloat(t.value||t.min)||0,step:parseFloat(t.step)||(parseFloat(t.max)||1)-(parseFloat(t.min)||0)/10||.1,marks:!0,onChange:(a,i)=>t.updateValue(i),min:parseFloat(t.min)||0,max:parseFloat(t.max)||1,valueLabelDisplay:"auto"})]})};function vf(t){return Pr({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z"},child:[]}]})(t)}function yf(t){return Pr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"},child:[]}]})(t)}function JKt(t){return Pr({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M48 0C21.53 0 0 21.53 0 48v64c0 8.84 7.16 16 16 16h80V48C96 21.53 74.47 0 48 0zm208 412.57V352h288V96c0-52.94-43.06-96-96-96H111.59C121.74 13.41 128 29.92 128 48v368c0 38.87 34.65 69.65 74.75 63.12C234.22 474 256 444.46 256 412.57zM288 384v32c0 52.93-43.06 96-96 96h336c61.86 0 112-50.14 112-112 0-8.84-7.16-16-16-16H288z"},child:[]}]})(t)}function YKt(t){return Pr({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M476 480H324a36 36 0 0 1-36-36V96h-96v156a36 36 0 0 1-36 36H16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h112V68a36 36 0 0 1 36-36h152a36 36 0 0 1 36 36v348h96V260a36 36 0 0 1 36-36h140a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H512v156a36 36 0 0 1-36 36z"},child:[]}]})(t)}function KKt(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M4 11H8V13H4V11Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M10 11H14V13H10V11Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M20 11H16V13H20V11Z",fill:"currentColor"},child:[]}]})(t)}function ZKt(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M3 11H1V13H3V11Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M7 11H5V13H7V11Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M9 11H11V13H9V11Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M15 11H13V13H15V11Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M17 11H19V13H17V11Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M23 11H21V13H23V11Z",fill:"currentColor"},child:[]}]})(t)}function QKt(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M2 11H22V13H2V11Z",fill:"currentColor"},child:[]}]})(t)}const AB={dialogSlider:{padding:"20px 0px"}};class eZt extends m.Component{render(){return w.jsxs(or,{open:this.props.open,onClose:this.props.onClose,children:[w.jsxs(_r,{children:[P.t("Line")," ",this.props.index+1,this.props.line.name?` - ${this.props.line.name}`:""," ",P.t("edit")]}),w.jsxs(Wr,{children:[w.jsx(Dt,{value:this.props.line.lineStyle,updateValue:e=>{const r=JSON.parse(JSON.stringify(this.props.line));r.lineStyle=e,this.props.updateLine(this.props.index,r)},label:"Line style",options:{solid:"solid",dashed:"dashed",dotted:"dotted"},icons:{solid:w.jsx(QKt,{}),dashed:w.jsx(KKt,{}),dotted:w.jsx(ZKt,{})}}),w.jsx("div",{style:AB.dialogSlider,children:w.jsx($u,{value:this.props.line.fill,updateValue:e=>{const r=JSON.parse(JSON.stringify(this.props.line));r.fill=e,e<.01&&!parseFloat(r.thickness)&&(r.thickness=1),this.props.updateLine(this.props.index,r)},min:0,max:1,step:.1,label:"Fill (from 0 to 1)"})}),w.jsx("div",{style:AB.dialogSlider,children:w.jsx($u,{value:this.props.line.thickness,updateValue:e=>{const r=JSON.parse(JSON.stringify(this.props.line));r.thickness=e,this.props.updateLine(this.props.index,r)},label:"ØL - Line thickness",min:this.props.line.fill>.01?0:1,max:10,step:1})})]}),w.jsx(pr,{children:w.jsx(tt,{variant:"contained",color:"primary",onClick:this.props.onClose,startIcon:w.jsx(wo,{}),children:P.t("Close")})})]})}}const Ok={stateValueEdit:{marginBottom:10}};class tZt extends m.Component{constructor(r){super(r);X(this,"originalStates");X(this,"statesBeforeEdit");this.originalStates=JSON.parse(r.originalStates),this.statesBeforeEdit=JSON.stringify(r.withStates);const n=r.withStates?JSON.parse(JSON.stringify(r.withStates)):{};r.isBoolean&&(n.true&&(n[1]=n.true,delete n.true),n.false&&(n[0]=n.false,delete n.false),n[1]=n[1]||"true",n[0]=n[0]||"false"),this.state={withStates:n,disabledStates:this.props.withStates?JSON.stringify(r.withStates):r.originalStates,showAddStateDialog:!1,newValue:"",newTextValue:""}}renderAddStateDialog(){return this.state.showAddStateDialog?w.jsxs(or,{open:!0,onClose:()=>this.setState({showAddStateDialog:!1}),children:[w.jsx(_r,{children:P.t("Add new state name")}),w.jsxs(Wr,{children:[w.jsx(Ht,{style:Ok.stateValueEdit,variant:"standard",label:P.t("State value"),value:this.state.newValue,onChange:r=>this.setState({newValue:r.target.value})}),w.jsx("br",{}),w.jsx(Ht,{style:Ok.stateValueEdit,variant:"standard",label:P.t("State value text"),value:this.state.newTextValue,onChange:r=>this.setState({newTextValue:r.target.value}),onKeyUp:r=>{if(r.key==="Enter"&&this.state.newValue&&this.state.withStates[this.state.newValue]===void 0){const n=JSON.parse(JSON.stringify(this.state.withStates));n[this.state.newValue]=this.state.newTextValue,this.setState({showAddStateDialog:null,withStates:n})}}})]}),w.jsxs(pr,{children:[w.jsx(tt,{variant:"contained",color:"primary",autoFocus:!0,disabled:!this.state.newValue||this.state.withStates[this.state.newValue]!==void 0,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.withStates));r[this.state.newValue]=this.state.newTextValue,this.setState({showAddStateDialog:null,withStates:r})},startIcon:w.jsx(Il,{}),children:P.t("Add")}),w.jsx(tt,{variant:"contained",color:"grey",onClick:()=>this.setState({showAddStateDialog:!1}),startIcon:w.jsx(wo,{}),children:P.t("Cancel")})]})]}):null}render(){return w.jsxs(w.Fragment,{children:[this.renderAddStateDialog(),w.jsxs(or,{open:!0,onClose:()=>this.props.onClose(),children:[w.jsx(_r,{children:P.t("Edit state names")}),w.jsxs(Wr,{children:[w.jsx(St,{control:w.jsx(ih,{checked:this.state.withStates!==!1,onChange:()=>{this.state.withStates===!1?this.setState({withStates:JSON.parse(this.state.disabledStates)}):this.setState({withStates:!1,disabledStates:JSON.stringify(this.state.withStates)})}}),label:P.t("Use state names")}),this.state.withStates!==!1?w.jsxs(w.Fragment,{children:[w.jsx("br",{}),this.props.isBoolean?null:w.jsx(Ie,{onClick:()=>{const r=Object.keys(this.state.withStates).sort();let n="";window.isFinite(parseInt(r[r.length-1],10))&&(n=(parseInt(r[r.length-1],10)+1).toString()),this.setState({showAddStateDialog:!0,newValue:n,newTextValue:""})},title:P.t("Add new value"),children:w.jsx(Il,{})}),w.jsx("br",{}),Object.keys(this.state.withStates).map(r=>w.jsxs("div",{children:[w.jsx(Ht,{style:Ok.stateValueEdit,variant:"standard",label:this.props.isBoolean?r==="1"?P.t("TRUE"):r==="0"?P.t("FALSE"):r:r.toString(),value:this.state.withStates[r],onChange:n=>this.setState({withStates:{...this.state.withStates,[r]:n.target.value}}),slotProps:{input:{endAdornment:this.state.withStates[r]?w.jsx(Ie,{size:"small",onClick:()=>this.setState({withStates:{...this.state.withStates,[r]:""}}),children:w.jsx(wo,{})}):void 0}}}),!this.props.isBoolean&&this.originalStates[r]===void 0?w.jsx(Ie,{onClick:()=>{const n={...this.state.withStates};delete n[r],this.setState({withStates:n})},title:P.t("Delete text value"),children:w.jsx(yu,{})}):null]},r))]}):null]}),w.jsxs(pr,{children:[w.jsx(tt,{variant:"contained",color:"primary",autoFocus:!0,disabled:this.statesBeforeEdit===JSON.stringify(this.state.withStates),onClick:()=>this.props.onClose(this.state.withStates),startIcon:w.jsx(sh,{}),children:P.t("Apply")}),w.jsx(tt,{variant:"contained",color:"grey",onClick:()=>this.props.onClose(),startIcon:w.jsx(wo,{}),children:P.t("Close")})]})]})]})}}const jt={instance:100,id:100,chartType:120,dataType:110,color:100,name:150,buttons:166},Ct={card:t=>({borderStyle:"dashed",borderWidth:1,mb:"8px",p:"8px",borderColor:t.palette.grey[600],overflow:"initial"}),cardPaste:t=>({borderColor:t.palette.mode==="dark"?t.palette.grey[400]:t.palette.grey[800],backgroundColor:"rgba(0,0,0,0)",opacity:.8}),cardContent:{p:0,m:0,"&:last-child":{p:0}},shortFields:t=>({display:"flex","& > div":{display:"inline-flex",pr:"20px",width:200},flexWrap:"wrap",alignItems:"center",position:"relative",pb:"16px",borderBottom:`1px dotted ${t.palette.grey[400]}`}),lineClosed:{display:"flex",gap:4,alignItems:"center"},title:{width:"inherit",position:"absolute",whiteSpace:"nowrap",right:0,fontSize:48,opacity:.1,lineHeight:"48px",padding:0,marginTop:20,marginLeft:0,marginRight:0,marginBottom:0,paddingRight:10},shortFieldsLast:{borderBottom:"0px",paddingBottom:0},shortInstanceField:{display:"inline-block",minWidth:jt.instance,paddingTop:0,verticalAlign:"top"},shortIdField:{display:"inline-block",minWidth:jt.id,paddingTop:0,verticalAlign:"top"},shortDataTypeField:{display:"inline-block",minWidth:jt.dataType,paddingTop:0,verticalAlign:"top"},shortChartTypeField:{display:"inline-block",minWidth:jt.chartType,paddingTop:0,verticalAlign:"top"},shortColorField:{display:"inline-block",minWidth:jt.color,width:jt.color,paddingTop:0,verticalAlign:"top"},shortNameField:{display:"inline-block",minWidth:jt.name,paddingTop:0,verticalAlign:"top"},shortButtonsField:{display:"inline-block",minWidth:jt.buttons,paddingTop:0,verticalAlign:"top"},editButton:{},deleteButton:{},editButtonFull:{},deleteButtonFull:{},copyButtonFull:{},fullWidth:{width:"100%",minWidth:200},paste:{opacity:.3},emptyDrag:{display:"inline-block",width:16},chapterMain:{backgroundColor:"rgba(3,104,255,0.1)"},chapterTexts:{backgroundColor:"rgba(101,253,0,0.1)"},chapterLine:{backgroundColor:"rgba(255,20,0,0.1)"},chapterAxis:{backgroundColor:"rgba(179,2,255,0.1)"},chapterOther:{backgroundColor:"rgba(255,146,0,0.1)"},states:{verticalAlign:"top",marginTop:12},state:{textAlign:"center",marginRight:8},stateValue:{fontSize:10},stateText:{fontSize:12,fontStyle:"italic",display:"block",whiteSpace:"nowrap"}};class IB extends m.Component{constructor(r){super(r);X(this,"onIdChanged",async r=>{var o,a,i,s,l;const n=JSON.parse(JSON.stringify(this.props.line));if(n.id=r,this.props.updateLine(this.props.index,n),this.props.line.id!==r){try{const u=await this.props.socket.getObject(r),f=JSON.parse(JSON.stringify(this.props.line));let g;if((o=u==null?void 0:u.common)!=null&&o.name)g=ue.getObjectNameFromObj(u,null,{language:P.getLanguage()});else{const b=r.split(".");g=b.length?b[b.length-1]:""}(a=u==null?void 0:u.common)!=null&&a.unit&&(f.unit=u.common.unit),u!=null&&u.common&&(u.common.type==="boolean"||u.common.type==="number")&&(f.chartType="auto",delete f.aggregate);const y={isBoolean:((i=u==null?void 0:u.common)==null?void 0:i.type)==="boolean"};(s=u==null?void 0:u.common)!=null&&s.states&&typeof((l=u==null?void 0:u.common)==null?void 0:l.states)!="string"&&!Array.isArray(u.common.states)&&!u.common.unit?(y.withStates=u.common.states,y.originalStates=JSON.stringify(u.common.states),f.states?Object.assign(y.withStates,f.states):f.states===!1&&(y.withStates=!1)):(y.withStates=null,delete f.states),(y.isBoolean!==this.state.isBoolean||JSON.stringify(this.state.withStates)!==JSON.stringify(y.withStates)||this.state.originalStates!==y.originalStates)&&setTimeout(b=>this.setState(b),50,y),f.name=g,this.props.updateLine(this.props.index,f);return}catch(u){console.error(u)}const d=JSON.parse(JSON.stringify(this.props.line)),h=r.split(".");d.name=h.length?h[h.length-1]:"",this.props.updateLine(this.props.index,d)}});X(this,"showConvertHelp",()=>this.setState({showConvertHelp:!0}));this.state={width:this.props.width,dialogOpen:!1,showConvertHelp:!1,isBoolean:!1,withStates:null,color:this.props.line.color||""},this.props.line.id&&this.props.socket.getObject(this.props.line.id).then(n=>{var a,i;let o=null;((a=n==null?void 0:n.common)==null?void 0:a.type)==="boolean"&&(o={isBoolean:!0}),(i=n==null?void 0:n.common)!=null&&i.states&&typeof n.common.states!="string"&&!Array.isArray(n.common.states)&&!n.common.unit&&(o=o||{},o.withStates=n.common.states,o.originalStates=JSON.stringify(n.common.states),this.props.line.states?Object.assign(o.withStates,this.props.line.states):this.props.line.states===!1&&(o.withStates=!1)),o&&this.setState(o)}).catch(()=>{})}static getDerivedStateFromProps(r,n){return r.width!==n.width?{width:r.width}:null}renderClosedLine(){const r={},n=(this.props.width||1024)-32-40-20,o=4;n>=jt.instance+jt.id+jt.chartType+jt.dataType+jt.color+jt.name+jt.buttons+o*6?(r.chartType=!0,r.dataType=!0,r.color=!0,r.name=!0):n>=jt.instance+jt.id+jt.chartType+jt.dataType+jt.color+jt.buttons+o*5?(r.chartType=!0,r.dataType=!0,r.color=!0):n>=jt.instance+jt.id+jt.chartType+jt.dataType+jt.buttons+o*4?(r.chartType=!0,r.dataType=!0):n>=jt.instance+jt.id+jt.chartType+jt.buttons+o*3&&(r.chartType=!0);const a=this.props.presetData.l.find(s=>s.chartType==="bar"||s.chartType==="polar"),i={minmax:"minmax",average:"average",min:"min",max:"max",total:"total",count:"count",onchange:"raw",percentile:"percentile",integral:"integral",current:void 0,none:void 0};return a&&(delete i.minmax,this.props.presetData.l.find(s=>s.chartType==="polar")&&(i.current="current")),w.jsxs("div",{style:Ct.lineClosed,children:[this.props.provided?w.jsx("span",{title:P.t("Drag me"),style:{marginTop:4},...this.props.provided.dragHandleProps,children:w.jsx(HE,{})}):w.jsx("div",{style:Ct.emptyDrag}),this.props.onPaste?w.jsx(Ie,{title:P.t("Paste"),onClick:()=>this.props.onPaste(),children:w.jsx(uH,{})}):w.jsx(Ie,{title:P.t("Edit"),onClick:()=>this.props.lineOpenToggle(this.props.index),children:w.jsx(yf,{})}),w.jsx(Dt,{disabled:!!this.props.onPaste,value:this.props.line.instance||"",updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.instance=s,this.props.updateLine(this.props.index,l)},label:"Source",noTranslate:!0,options:(()=>{const s={"":P.t("standard")};return this.props.instances.forEach(l=>s[l._id]=l._id.replace("system.adapter.","")),s.json="JSON",s[this.props.line.instance]||(s[this.props.line.instance]=this.props.line.instance.replace("system.adapter.","")),s})(),minWidth:jt.instance,styles:{fieldContainer:{...Ct.shortInstanceField,...this.props.onPaste?Ct.paste:void 0,marginTop:2}}}),w.jsx(Jd,{disabled:!!this.props.onPaste,value:this.props.line.id,updateValue:this.onIdChanged,theme:this.props.theme,name:"id",label:"ID",customFilter:this.props.line.instance!=="json"?{common:{custom:this.props.line.instance?this.props.line.instance.replace("system.adapter.",""):this.props.systemConfig.common.defaultHistory||!0}}:null,styles:{fieldContainer:{...Ct.shortIdField,...this.props.onPaste?Ct.paste:void 0,flexGrow:1}},socket:this.props.socket}),r.chartType?w.jsx(Dt,{disabled:!!this.props.onPaste,value:this.props.line.chartType,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.chartType=s,this.props.updateLine(this.props.index,l)},minWidth:jt.chartType,label:"Chart type",options:{auto:"Auto",line:"Line",bar:"Bar",polar:"Polar",scatterplot:"Scatter plot",steps:"Steps",stepsStart:"Steps on start",spline:"Spline"},styles:{fieldContainer:{...Ct.shortChartTypeField,...this.props.onPaste?Ct.paste:void 0,marginTop:2}}}):null,this.props.line.instance!=="json"&&r.dataType&&this.props.line.chartType!=="auto"?w.jsx(Dt,{disabled:!!this.props.onPaste,value:this.props.line.aggregate,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.aggregate=s,s==="percentile"&&(l.percentile===void 0||l.percentile<0||l.percentile>100)?l.percentile=50:s==="integral"&&(l.integralUnit=l.integralUnit||60,l.integralInterpolation=l.integralInterpolation||"none"),this.props.updateLine(this.props.index,l)},minWidth:jt.dataType,label:"Type",options:i,styles:{fieldContainer:{...Ct.shortDataTypeField,...this.props.onPaste?Ct.paste:void 0}}}):null,r.color?this.renderColorField(jt.color,{...Ct.shortColorField,...this.props.onPaste?Ct.paste:void 0},!0):null,r.name?w.jsx(Ln,{disabled:!!this.props.onPaste,width:jt.name,value:this.props.line.name,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.name=s,this.props.updateLine(this.props.index,l)},label:"Name",styles:{fieldContainer:{...Ct.shortNameField,...this.props.onPaste?Ct.paste:void 0}}}):null,!this.props.onPaste&&this.props.line.chartType!=="scatterplot"&&this.props.line.chartType!=="bar"&&(!this.props.index||this.props.line.chartType!=="polar")?w.jsx(Ie,{style:Ct.editButton,"aria-label":"Edit",title:P.t("Edit"),onClick:()=>this.setState({dialogOpen:!0}),children:w.jsx(r1,{})}):null,w.jsx(Ie,{style:Ct.deleteButton,"aria-label":"Delete",title:P.t("Delete"),onClick:()=>this.props.deleteLine(this.props.index),children:w.jsx(yu,{})}),w.jsx("div",{style:{width:30}})]})}renderColorField(r,n,o){let a=ue.isUseBright(this.props.line.color,null);a===null&&(a=void 0);const i=s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.color=s,this.props.updateLine(this.props.index,l)};return w.jsx("div",{style:n,children:w.jsx(Ht,{variant:"standard",disabled:!!this.props.onPaste,style:{minWidth:r,width:"calc(100% - 8px)"},label:P.t("Color"),value:this.props.line.color||"",onClick:()=>{this.props.onPaste||this.setState({color:this.props.line.color},()=>this.props.onSelectColor(this.state.color,s=>this.setState({color:s},()=>i(Ai.getColor(s,!0)))))},onChange:s=>{const l=s.target.value;this.setState({color:l},()=>i(l))},slotProps:{htmlInput:{style:{paddingLeft:o?0:8,backgroundColor:this.props.line.color,color:a?"#FFF":"#000"}},input:{endAdornment:this.props.line.color?w.jsx(Ie,{disabled:!!this.props.onPaste,size:"small",onClick:s=>{s.stopPropagation(),this.setState({color:""},()=>{i("")})},children:w.jsx(Ar,{})}):void 0},inputLabel:{shrink:!0}}})})}renderConvertHelp(){return this.state.showConvertHelp?w.jsxs(or,{open:!0,onClose:()=>this.setState({showConvertHelp:!1}),children:[w.jsx(Wr,{children:w.jsx(Ds,{children:P.t("convert_help")})}),w.jsx(pr,{children:w.jsx(tt,{variant:"contained",onClick:()=>this.setState({showConvertHelp:!1}),color:"primary",startIcon:w.jsx(wo,{}),children:P.t("Close")})})]}):null}renderStates(){return this.state.withStates===null?null:w.jsxs("div",{style:Ct.states,children:[this.state.withStates?Object.keys(this.state.withStates).map(r=>w.jsxs("div",{style:Ct.state,children:[w.jsx("span",{style:Ct.stateValue,children:r}),"↓",w.jsx("span",{style:Ct.stateText,children:this.state.withStates[r]})]},r)):w.jsx("div",{style:Ct.state,children:w.jsx("span",{style:Ct.stateText,children:P.t("Text values not used")})}),w.jsx(tt,{variant:"outlined",onClick:()=>this.setState({showStatesEdit:!0}),startIcon:w.jsx(r1,{}),title:P.t("Edit state names"),children:"..."}),this.state.showStatesEdit?w.jsx(tZt,{withStates:this.state.withStates,originalStates:this.state.originalStates,isBoolean:this.state.isBoolean,onClose:r=>{if(r!==void 0){this.setState({showStatesEdit:!1,withStates:JSON.parse(JSON.stringify(r))});const n=JSON.parse(JSON.stringify(this.props.line));if(r){const o=JSON.parse(JSON.stringify(r)),a=JSON.parse(this.state.originalStates);Object.keys(o).forEach(i=>{o[i]===a[i]&&delete o[i]}),n.states=o}else n.states=!1;this.props.updateLine(this.props.index,n)}else this.setState({showStatesEdit:!1})}}):null]})}renderOpenedLine(){const r={"":P.t("own axis")};for(let s=0;ss.chartType==="bar"||s.chartType==="polar"),o={auto:"Auto (Line or Steps)",line:"Line",bar:"Bar",polar:"Polar",scatterplot:"Scatter plot",steps:"Steps",stepsStart:"Steps on start",spline:"Spline"},a={minmax:"minmax",average:"average",min:"min",max:"max",total:"total",count:"count",onchange:"raw",percentile:"percentile",integral:"integral",current:void 0,none:void 0};n&&(delete a.minmax,this.props.presetData.l.find(s=>s.chartType==="polar")&&(a.current="current"));const i=this.props.line.commonYAxis===void 0;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{style:Ct.lineClosed,children:[this.props.provided?w.jsx("span",{title:P.t("Drag me"),...this.props.provided.dragHandleProps,children:w.jsx(HE,{})}):null,w.jsx(Ie,{title:P.t("Close"),onClick:()=>this.props.lineOpenToggle(this.props.index),children:w.jsx(vf,{})}),P.t("Line")," ",this.props.index+1,this.props.line.name?` - ${this.props.line.name}`:"",w.jsx("div",{style:{flexGrow:1}}),w.jsx(Ie,{style:Ct.copyButtonFull,"aria-label":"Copy",title:P.t("Copy"),onClick:()=>this.props.onCopy(this.props.line),children:w.jsx(dH,{})}),this.props.line.chartType!=="scatterplot"&&this.props.line.chartType!=="bar"&&(!this.props.index||this.props.line.chartType!=="polar")?w.jsx(Ie,{style:Ct.editButtonFull,"aria-label":"Edit",title:P.t("Edit"),onClick:()=>this.setState({dialogOpen:!0}),children:w.jsx(r1,{})}):null,w.jsx(Ie,{style:Ct.deleteButtonFull,"aria-label":"Delete",title:P.t("Delete"),onClick:()=>this.props.deleteLine(this.props.index),children:w.jsx(yu,{})}),w.jsx("div",{style:{width:30}})]}),w.jsxs(Re,{component:"div",sx:Ct.shortFields,style:{marginRight:30},children:[w.jsx(Dt,{value:this.props.line.instance,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.instance=s,this.props.updateLine(this.props.index,l)},label:"Source",noTranslate:!0,options:(()=>{const s={};return this.props.instances.forEach(l=>s[l._id]=l._id.replace("system.adapter.","")),s.json="JSON",s})()}),w.jsx(Jd,{theme:this.props.theme,value:this.props.line.id,styles:{objectContainer:Ct.fullWidth},updateValue:this.onIdChanged,name:"id",label:"ID",width:"calc(100% - 250px)",customFilter:this.props.line.instance!=="json"?{common:{custom:this.props.line.instance?this.props.line.instance.replace("system.adapter.",""):this.props.systemConfig.common.defaultHistory||!0}}:void 0,socket:this.props.socket})]}),w.jsxs(Re,{component:"div",sx:ue.getStyle(this.props.theme,Ct.shortFields,Ct.chapterMain),children:[w.jsx("p",{style:Ct.title,children:P.t("Main")}),!this.props.index||this.props.line.chartType!=="polar"?this.renderColorField():null,w.jsx(Dt,{value:this.props.line.chartType,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.chartType=s,this.props.updateLine(this.props.index,l)},label:"Chart type",options:o}),this.props.line.instance!=="json"&&this.props.line.chartType!=="auto"?w.jsx(Dt,{value:this.props.line.aggregate,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.aggregate=s,this.props.updateLine(this.props.index,l)},label:"Type",options:a}):null,this.props.line.chartType==="bar"?w.jsx(Dt,{value:this.props.line.postProcessing,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.postProcessing=s,this.props.updateLine(this.props.index,l)},label:"Processing",options:{"":"non-processed",diff:"difference"}}):null,this.props.line.aggregate==="percentile"?w.jsx($u,{value:this.props.line.percentile,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.percentile=s,this.props.updateLine(this.props.index,l)},step:5,min:0,max:100,label:"Percentile"}):null,this.props.line.aggregate==="integral"?w.jsx(Er,{value:this.props.line.integralUnit,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.integralUnit=s,this.props.updateLine(this.props.index,l)},label:"Integral unit",min:1,tooltip:P.t("In seconds")}):null,this.props.line.aggregate==="integral"?w.jsx(Dt,{value:this.props.line.integralInterpolation,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.integralInterpolation=s,this.props.updateLine(this.props.index,l)},label:"Interpolation method",options:{none:"none_no",linear:"linear"}}):null,this.props.line.chartType==="scatterplot"||this.props.line.points?w.jsx(Er,{value:this.props.line.symbolSize,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.symbolSize=s,this.props.updateLine(this.props.index,l)},label:"Point size",min:1}):null,this.props.line.chartType!=="scatterplot"&&this.props.line.chartType!=="bar"&&this.props.line.chartType!=="polar"?w.jsx(Er,{value:this.props.line.validTime,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.validTime=s,this.props.updateLine(this.props.index,l)},label:"Valid time (sec)",min:0,tooltip:P.t("If the current value is not older than X seconds, assume it is still the same.")}):null,this.props.presetData.legend?w.jsx(kn,{value:this.props.line.hide,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.hide=s,this.props.updateLine(this.props.index,l)},label:"Show only in legend"}):null,this.props.line.chartType!=="bar"&&this.props.line.chartType!=="polar"?w.jsx(kn,{value:this.props.line.noFuture,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.noFuture=s,this.props.updateLine(this.props.index,l)},label:"No future"}):null]}),w.jsxs(Re,{component:"div",sx:ue.getStyle(this.props.theme,Ct.shortFields,Ct.chapterTexts),children:[w.jsx("p",{style:Ct.title,children:P.t("Texts")}),w.jsx(Ln,{value:this.props.line.name,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.name=s,this.props.updateLine(this.props.index,l)},label:"Name"}),!this.state.isBoolean&&i?w.jsx(Ln,{value:this.props.line.unit,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.unit=s,this.props.updateLine(this.props.index,l)},label:"Unit"}):null,this.state.isBoolean&&this.state.withStates===null?w.jsx(Ln,{value:this.props.line.falseText,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.falseText=s,this.props.updateLine(this.props.index,l)},label:"Text by false"}):null,this.state.isBoolean&&this.state.withStates===null?w.jsx(Ln,{value:this.props.line.trueText,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.trueText=s,this.props.updateLine(this.props.index,l)},label:"Text by true"}):null,this.renderStates()]}),this.props.line.chartType!=="scatterplot"&&this.props.line.chartType!=="bar"&&(!this.props.index||this.props.line.chartType!=="polar")?w.jsxs(Re,{component:"div",sx:ue.getStyle(this.props.theme,Ct.shortFields,Ct.chapterLine),children:[w.jsx("p",{style:Ct.title,children:P.t("Line and area")}),w.jsx($u,{value:this.props.line.fill,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.fill=s,s<.01&&!parseFloat(l.thickness)&&(l.thickness=1),this.props.updateLine(this.props.index,l)},min:0,max:1,step:.1,label:"Fill (from 0 to 1)"}),w.jsx(kn,{value:this.props.line.points,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.points=s,this.props.updateLine(this.props.index,l)},label:"Show points"}),this.props.line.points?w.jsx(Er,{value:this.props.line.symbolSize,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.symbolSize=s,this.props.updateLine(this.props.index,l)},label:"Point size",min:1}):null,w.jsx(Er,{value:this.props.line.thickness,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.thickness=s,this.props.updateLine(this.props.index,l)},label:"ØL - Line thickness",min:this.props.line.fill>.01?0:1}),w.jsx(Er,{value:this.props.line.shadowsize,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.shadowsize=s,this.props.updateLine(this.props.index,l)},label:"ØS - Shadow size",min:0})]}):null,w.jsxs(Re,{component:"div",sx:ue.getStyle(this.props.theme,Ct.shortFields,Ct.chapterAxis),children:[w.jsx("p",{style:Ct.title,children:P.t("Axis")}),!this.props.index&&this.props.line.chartType!=="polar"?w.jsx(Dt,{value:this.props.line.xaxe,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.xaxe=s,this.props.updateLine(this.props.index,l)},label:"X Axis position",options:{"":"bottom",top:"top",off:"off"}}):null,!this.props.index&&this.props.line.chartType!=="polar"?w.jsx(Er,{value:this.props.line.xticks,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.xticks=s,this.props.updateLine(this.props.index,l)},label:"X-Axis ticks",min:1}):null,this.props.line.chartType!=="polar"?w.jsx(Dt,{value:this.props.line.offset===void 0?"0":this.props.line.offset.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));s?l.offset=s:delete l.offset,this.props.updateLine(this.props.index,l)},tooltip:P.t("This time offset will be added to the request by reading data from DB"),label:"X-Offset",options:{0:"0 seconds",10:"10 seconds",30:"30 seconds",60:"60 seconds",120:"2 minutes",180:"3 minutes",240:"4 minutes",300:"5 minutes",600:"10 minutes",900:"15 minutes",1800:"30 minutes",2700:"45 minutes",3600:"1 hour",7200:"2 hours",21600:"6 hours",43200:"12 hours",86400:"1 day",172800:"2 days",259200:"3 days",345600:"4 days",604800:"1 week",1209600:"2 weeks","1m":"1 month","2m":"2 months","3m":"3 months","6m":"6 months","1y":"1 year","2y":"2 years","-10":"-10 seconds","-30":"-30 seconds","-60":"-60 seconds","-120":"-2 minutes","-180":"-3 minutes","-240":"-4 minutes","-300":"-5 minutes","-600":"-10 minutes","-900":"-15 minutes","-1800":"-30 minutes","-2700":"-45 minutes","-3600":"-1 hour","-7200":"-2 hours","-21600":"-6 hours","-43200":"-12 hours","-86400":"-1 day","-172800":"-2 days","-259200":"-3 days","-345600":"-4 days","-604800":"-1 week","-1209600":"-2 weeks","-1m":"-1 month","-2m":"-2 months","-3m":"-3 months","-6m":"-6 months","-1y":"-1 year","-2y":"-2 years"}}):null,this.props.line.chartType!=="polar"?w.jsx(Er,{value:this.props.line.yOffset,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.yOffset=s,this.props.updateLine(this.props.index,l)},label:"Y-Offset"}):null,w.jsx("br",{}),this.props.line.chartType!=="polar"?w.jsx(Dt,{value:this.props.line.commonYAxis===void 0?"":this.props.line.commonYAxis.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.commonYAxis=s===""?void 0:parseInt(s,10),this.props.updateLine(this.props.index,l)},label:"Common Y Axis",noTranslate:!0,options:r}):null,this.props.line.chartType!=="polar"&&i?w.jsx(Dt,{value:this.props.line.yaxe,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.yaxe=s,this.props.updateLine(this.props.index,l)},label:"Y Axis position",options:{"":"",off:"off",left:"left",right:"right",leftColor:"left colored",rightColor:"right colored"}}):null,this.props.line.chartType!=="polar"&&i?w.jsx(Ln,{value:this.props.line.min===void 0?"":this.props.line.min.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.min=s,this.props.updateLine(this.props.index,l)},label:"Min"}):null,i?w.jsx(Ln,{value:this.props.line.max===void 0?"":this.props.line.max.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.max=s,this.props.updateLine(this.props.index,l)},label:"Max"}):null,this.props.line.chartType!=="polar"&&i?w.jsx(Er,{value:this.props.line.yticks,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.yticks=s,this.props.updateLine(this.props.index,l)},label:"Y-Axis ticks"}):null]}),w.jsxs(Re,{component:"div",sx:ue.getStyle(this.props.theme,Ct.shortFields,Ct.chapterOther),children:[w.jsx("p",{style:Ct.title,children:P.t("Others")}),w.jsx(Dt,{value:this.props.line.ignoreNull===void 0?"false":this.props.line.ignoreNull.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.ignoreNull=s==="true"?!0:s==="0"?0:!1,this.props.updateLine(this.props.index,l)},label:"NULL as",options:{false:"default",true:"ignore null values",0:"use 0 instead of null values"}}),w.jsx(Er,{value:this.props.line.afterComma,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.afterComma=s,this.props.updateLine(this.props.index,l)},label:"Digits after comma",min:0}),this.props.line.chartType!=="bar"?w.jsx(Dt,{value:this.props.line.lineStyle,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.lineStyle=s,this.props.updateLine(this.props.index,l)},label:"Line style",options:{solid:"solid",dashed:"dashed",dotted:"dotted"}}):null,w.jsx(Ln,{value:this.props.line.convert,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.convert=s,this.props.updateLine(this.props.index,l)},label:"Convert formula",helperLink:this.showConvertHelp})]})]})}render(){var r;return w.jsxs(JW,{sx:ue.getStyle(this.props.theme,Ct.card,this.props.onPaste&&Ct.cardPaste),style:{background:(r=this.props.snapshot)!=null&&r.isDragging?this.props.theme.palette.secondary.light:void 0},children:[w.jsxs(YW,{sx:Ct.cardContent,children:[this.props.opened&&!this.props.onPaste?this.renderOpenedLine():this.renderClosedLine(),w.jsx(eZt,{open:this.state.dialogOpen,onClose:()=>this.setState({dialogOpen:!1}),line:this.props.line,index:this.props.index,updateLine:(n,o)=>this.props.updateLine(n,o)})]}),this.renderConvertHelp()]})}}const Ft={lineId:100,upperValueOrId:150,lowerValueOrId:100,color:100,fill:100,text:150,buttons:70},Kr={card:t=>({borderStyle:"dashed",borderWidth:1,mb:"8px",p:"8px",borderColor:t.palette.grey[600],overflow:"initial"}),cardPaste:t=>({borderColor:t.palette.mode==="dark"?t.palette.grey[400]:t.palette.grey[800],backgroundColor:"rgba(0,0,0,0)",opacity:.8}),cardContent:{p:0,m:0,"&:last-child":{p:0}},shortFields:t=>({display:"block","& > div":{display:"inline-flex",pr:"20px",width:200},pb:"16px",borderBottom:`1px dotted ${t.palette.grey[400]}`}),shortFieldsLast:{borderBottom:0,paddingBottom:0,position:"relative"},shortLineIdField:{display:"inline-flex",minWidth:Ft.lineId,paddingTop:0,verticalAlign:"top",marginTop:2},shortUpperValueOrIdField:{display:"inline-flex",minWidth:Ft.upperValueOrId,paddingTop:0,verticalAlign:"top"},shortLowerValueOrIdField:{display:"inline-flex",minWidth:Ft.lowerValueOrId,paddingTop:0,verticalAlign:"top"},shortColorField:{display:"inline-flex",minWidth:Ft.color,paddingTop:0,verticalAlign:"top"},shortFillField:{display:"inline-flex",width:Ft.fill,paddingTop:0,verticalAlign:"top"},sliderRoot:{marginTop:10},shortTextField:{display:"inline-flex",minWidth:Ft.text,paddingTop:0,verticalAlign:"top"},shortButtonsField:{display:"inline-flex",minWidth:Ft.buttons,paddingTop:0,verticalAlign:"top"},lineClosed:{display:"inline-flex",flexFlow:"column wrap",overflow:"hidden",flexDirection:"row",flex:1},lineClosedContainer:{display:"flex",alignItems:"center",gap:4},deleteButton:{},deleteButtonFull:{},copyButtonFull:{},title:{width:"inherit",position:"absolute",whiteSpace:"nowrap",right:0,fontSize:48,opacity:.1,lineHeight:"48px",padding:0,marginTop:20,marginLeft:0,marginRight:0,marginBottom:0,paddingRight:40}};class MB extends m.Component{constructor(e){super(e),this.state={color:e.mark.color,textColor:e.mark.textColor}}renderColorField(e,r){let n=ue.isUseBright(this.props.mark.color,null);n===null&&(n=void 0);const o=a=>{const i=JSON.parse(JSON.stringify(this.props.mark));i.color=a,this.props.updateMark(this.props.index,i)};return w.jsx("div",{style:r,children:w.jsx(Ht,{variant:"standard",disabled:!!this.props.onPaste,style:{minWidth:e,width:"calc(100% - 8px)"},label:P.t("Color"),value:this.props.mark.color,onClick:()=>!this.props.onPaste&&this.setState({color:this.props.mark.color},()=>this.props.onSelectColor(this.state.color,a=>this.setState({color:a},()=>o(Ai.getColor(a,!0))))),onChange:a=>{const i=a.target.value;this.setState({color:i},()=>o(i))},slotProps:{htmlInput:{style:{paddingLeft:8,backgroundColor:this.props.mark.color,color:n?"#FFF":"#000"}},input:{endAdornment:!this.props.onPaste&&this.props.mark.color?w.jsx(Ie,{size:"small",onClick:a=>{a.stopPropagation(),this.setState({color:""},()=>o(""))},children:w.jsx(Ar,{})}):void 0},inputLabel:{shrink:!0}}})})}renderTextColorField(e,r){let n=ue.isUseBright(this.props.mark.textColor,null);n===null&&(n=void 0);const o=a=>{const i=JSON.parse(JSON.stringify(this.props.mark));i.textColor=a,this.props.updateMark(this.props.index,i)};return w.jsx("div",{style:r,children:w.jsx(Ht,{variant:"standard",disabled:!!this.props.onPaste,style:{minWidth:e,width:"calc(100% - 8px)"},label:P.t("Text color"),value:this.props.mark.textColor,onClick:()=>!this.props.onPaste&&this.setState({textColor:this.props.mark.textColor},()=>this.props.onSelectColor(this.state.textColor,a=>this.setState({textColor:a},()=>o(Ai.getColor(a,!0))))),onChange:a=>{const i=a.target.value;this.setState({textColor:i},()=>o(i))},slotProps:{htmlInput:{style:{paddingLeft:8,backgroundColor:this.props.mark.textColor,color:n?"#FFF":"#000"}},input:{endAdornment:!this.props.onPaste&&this.props.mark.textColor?w.jsx(Ie,{size:"small",onClick:a=>{a.stopPropagation(),this.setState({textColor:""},()=>o(""))},children:w.jsx(Ar,{})}):void 0},inputLabel:{shrink:!0}}})})}renderClosedLine(e,r){const n={},o=this.props.mark.lineId!==null&&this.props.mark.lineId!==void 0?1:0,a=o&&this.props.mark.upperValueOrId!==null&&this.props.mark.upperValueOrId!==void 0&&this.props.mark.upperValueOrId!==""?1:0,i=a&&this.props.mark.lowerValueOrId!==null&&this.props.mark.lowerValueOrId!==void 0&&this.props.mark.lowerValueOrId!==""?1:0,s=(this.props.width||1024)-32-40,l=4;return s>=Ft.lineId+Ft.upperValueOrId*o+Ft.lowerValueOrId*a+Ft.color*a+Ft.fill*i+Ft.text*a+Ft.buttons+l*6?(n.upper=!!o,n.lower=!!a,n.color=!!a,n.fill=!!i,n.text=!!a):s>=Ft.lineId+Ft.upperValueOrId*o+Ft.lowerValueOrId*a+Ft.color*a+Ft.fill*i+Ft.buttons+l*5?(n.upper=!!o,n.lower=!!a,n.color=!!a,n.fill=!!i):s>=Ft.lineId+Ft.upperValueOrId*o+Ft.lowerValueOrId*a+Ft.color*a+Ft.buttons+l*4?(n.upper=!!o,n.lower=!!a,n.color=!!a):s>=Ft.lineId+Ft.upperValueOrId*o+Ft.lowerValueOrId*a+Ft.buttons+l*3?(n.upper=!!o,n.lower=!!a):n.upper=!!o,w.jsxs("div",{style:Kr.lineClosedContainer,children:[this.props.onPaste?w.jsx(Ie,{title:P.t("Paste"),onClick:()=>this.props.onPaste(),children:w.jsx(uH,{})}):w.jsx(Ie,{title:P.t("Edit"),onClick:()=>this.props.markOpenToggle(this.props.index),children:w.jsx(yf,{})}),w.jsx(Dt,{disabled:!!this.props.onPaste,noTranslate:!0,value:this.props.mark.lineId===void 0?"":this.props.mark.lineId.toString(),updateValue:d=>{const h=JSON.parse(JSON.stringify(this.props.mark));h.lineId=d?parseInt(d,10):void 0,this.props.updateMark(this.props.index,h)},label:"Line ID",options:e,colors:r,styles:{fieldContainer:Kr.shortLineIdField},minWidth:Ft.lineId}),n.upper?w.jsx(Jd,{theme:this.props.theme,disabled:!!this.props.onPaste,value:this.props.mark.upperValueOrId===void 0?"":this.props.mark.upperValueOrId.toString(),updateValue:d=>{const h=JSON.parse(JSON.stringify(this.props.mark));h.upperValueOrId=d,this.props.updateMark(this.props.index,h)},name:"upperValueOrId",label:"Upper value or ID",socket:this.props.socket,styles:{fieldContainer:Kr.shortUpperValueOrIdField},minWidth:Ft.upperValueOrId}):null,n.lower?w.jsx(Jd,{theme:this.props.theme,disabled:!!this.props.onPaste,value:this.props.mark.lowerValueOrId===void 0?"":this.props.mark.lowerValueOrId.toString(),updateValue:d=>{const h=JSON.parse(JSON.stringify(this.props.mark));h.lowerValueOrId=d,this.props.updateMark(this.props.index,h)},name:"lowerValueOrId",label:"Lower value or ID",socket:this.props.socket,styles:{fieldContainer:Kr.shortLowerValueOrIdField},minWidth:Ft.lowerValueOrId}):null,n.color?this.renderColorField(Ft.color,Kr.shortColorField):null,n.fill?w.jsx($u,{disabled:!!this.props.onPaste,value:this.props.mark.fill,updateValue:d=>{const h=JSON.parse(JSON.stringify(this.props.mark));h.fill=d,this.props.updateMark(this.props.index,h)},styles:{fieldContainer:Kr.shortFillField,sliderRoot:Kr.sliderRoot},label:"Fill (from 0 to 1)",min:0,max:1,step:.1}):null,n.text?w.jsx(Ln,{disabled:!!this.props.onPaste,value:this.props.mark.text,updateValue:d=>{const h=JSON.parse(JSON.stringify(this.props.mark));h.text=d,this.props.updateMark(this.props.index,h)},label:"Text",styles:{fieldContainer:Kr.shortTextField},minWidth:Ft.fill}):null,w.jsx("div",{style:{flexGrow:1}}),w.jsx(Ie,{"aria-label":"Delete",title:P.t("Delete"),onClick:()=>this.props.deleteMark(this.props.index),children:w.jsx(yu,{})}),w.jsx("div",{style:{width:30}})]})}renderOpenedCard(e,r){return w.jsxs(w.Fragment,{children:[w.jsxs("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[w.jsx(Ie,{title:P.t("Close"),onClick:()=>this.props.markOpenToggle(this.props.index),children:w.jsx(vf,{})}),P.t("Mark")," ",this.props.index+1,this.props.mark.text?` - ${this.props.mark.text}`:"",w.jsx("div",{style:{flexGrow:1}}),w.jsx(Ie,{style:Kr.copyButtonFull,"aria-label":"Copy",title:P.t("Copy"),onClick:()=>this.props.onCopy(this.props.mark),children:w.jsx(dH,{})}),w.jsx(Ie,{style:Kr.deleteButtonFull,"aria-label":"Delete",title:P.t("Delete"),onClick:()=>this.props.deleteMark(this.props.index),children:w.jsx(yu,{})}),w.jsx("div",{style:{width:30}})]}),w.jsxs(Re,{component:"div",sx:Kr.shortFields,children:[w.jsx("p",{style:Kr.title,children:P.t("Limits")}),w.jsx(Dt,{value:this.props.mark.lineId===void 0||this.props.mark.lineId===null?"":this.props.mark.lineId.toString(),updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.lineId=n?parseInt(n,10):void 0,this.props.updateMark(this.props.index,o)},noTranslate:!0,label:"Line ID",options:e,colors:r}),this.props.mark.lineId!==null&&this.props.mark.lineId!==void 0?w.jsx(Jd,{theme:this.props.theme,value:this.props.mark.upperValueOrId===void 0?"":this.props.mark.upperValueOrId.toString(),updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.upperValueOrId=n,this.props.updateMark(this.props.index,o)},name:"upperValueOrId",label:"Upper value or ID",socket:this.props.socket}):null,this.props.mark.upperValueOrId!==null&&this.props.mark.upperValueOrId!==void 0&&this.props.mark.upperValueOrId!==""?w.jsx(Jd,{theme:this.props.theme,value:this.props.mark.lowerValueOrId===void 0?"":this.props.mark.lowerValueOrId.toString(),updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.lowerValueOrId=n,this.props.updateMark(this.props.index,o)},name:"lowerValueOrId",label:"Lower value or ID",socket:this.props.socket}):null]}),this.props.mark.upperValueOrId!==null&&this.props.mark.upperValueOrId!==void 0&&this.props.mark.upperValueOrId!==""||this.props.mark.lowerValueOrId!==null&&this.props.mark.lowerValueOrId!==void 0&&this.props.mark.lowerValueOrId!==""?w.jsxs(Re,{component:"div",sx:Kr.shortFields,children:[w.jsx("p",{style:Kr.title,children:P.t("Style")}),this.renderColorField(),w.jsx(Er,{value:this.props.mark.ol,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.ol=n,this.props.updateMark(this.props.index,o)},label:"ØL Line thickness"}),w.jsx(Er,{value:this.props.mark.os,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.os=n,this.props.updateMark(this.props.index,o)},label:"ØS Shadow size"}),w.jsx(Dt,{value:this.props.mark.lineStyle,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.lineStyle=n,this.props.updateMark(this.props.index,o)},label:"Line style",options:{solid:"solid",dashed:"dashed",dotted:"dotted"}}),this.props.mark.upperValueOrId!==null&&this.props.mark.upperValueOrId!==void 0&&this.props.mark.upperValueOrId!==""&&this.props.mark.lowerValueOrId!==null&&this.props.mark.lowerValueOrId!==void 0&&this.props.mark.lowerValueOrId!==""?w.jsx($u,{value:this.props.mark.fill,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.fill=n,this.props.updateMark(this.props.index,o)},label:"Fill (from 0 to 1)",min:0,max:1,step:.1}):null]}):null,this.props.mark.upperValueOrId!==null&&this.props.mark.upperValueOrId!==void 0&&this.props.mark.upperValueOrId!==""||this.props.mark.lowerValueOrId!==null&&this.props.mark.lowerValueOrId!==void 0&&this.props.mark.lowerValueOrId!==""?w.jsxs(Re,{component:"div",sx:ue.getStyle(this.props.theme,Kr.shortFields,Kr.shortFieldsLast),children:[w.jsx("p",{style:Kr.title,children:P.t("Label")}),w.jsx(Ln,{value:this.props.mark.text,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.text=n,this.props.updateMark(this.props.index,o)},label:"Text"}),this.props.mark.text?w.jsx(Dt,{value:this.props.mark.textPosition,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.textPosition=n,this.props.updateMark(this.props.index,o)},label:"Text position",options:{l:"Left",r:"Right",insideStart:"Inside start",insideStartTop:"Inside start top",insideStartBottom:"Inside start bottom",insideMiddle:"Inside middle",insideMiddleTop:"Inside middle top",insideMiddleBottom:"Inside middle bottom",insideEnd:"Inside end",insideEndTop:"Inside end top",insideEndBottom:"Inside end bottom"}}):null,this.props.mark.text?w.jsx(Er,{value:this.props.mark.textOffset,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.textOffset=n,this.props.updateMark(this.props.index,o)},label:"Text X offset"}):null,this.props.mark.text?w.jsx(Er,{value:this.props.mark.textSize,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.textSize=n,this.props.updateMark(this.props.index,o)},label:"Text size"}):null,this.props.mark.text?this.renderTextColorField():null]}):null]})}render(){var n;const e={},r={};return(n=this.props.presetData)==null||n.l.forEach((o,a)=>{e[a]=`${a} - ${o.id||P.t("No ID yet")}`,r[a]=o.color}),w.jsx(JW,{sx:ue.getStyle(this.props.theme,Kr.card,this.props.onPaste&&Kr.cardPaste),children:w.jsx(YW,{sx:Kr.cardContent,children:this.props.opened&&!this.props.onPaste?this.renderOpenedCard(e,r):this.renderClosedLine(e,r)})})}}const rZt={l:[],marks:[],timeType:"relative",relativeEnd:"30minutes",range:120,aggregateType:"count",aggregateSpan:300,legend:"ne",hoverDetail:!0,zoom:!0,animation:0,live:15,ticks:"",width:"100%",height:"100%",noBorder:"noborder",window_bg:"",bg_custom:"",x_labels_color:"",y_labels_color:"",border_color:"",grid_color:"",grid_hideX:!1,grid_hideY:!1,border_width:0,barLabels:"topover",barFontColor:"",title:"",titlePos:"",titleColor:"",legBg:"",timeFormat:"",export:!0};function Lh(t,e,r,n){var i,s,l;const o=((i=r==null?void 0:r.common)==null?void 0:i.type)==="boolean",a={name:(((s=r==null?void 0:r.common)==null?void 0:s.name)&&ue.getObjectNameFromObj(r,null,{language:n||P.getLanguage()})||"").trim(),id:(r==null?void 0:r._id)||"",instance:e===t.common.defaultHistory?"":e||"",thickness:2,chartType:o?"steps":"line",aggregate:o?"onchange":"minmax",isBoolean:o,symbolSize:3,validTime:35};return(l=r==null?void 0:r.common)!=null&&l.color&&(a.color=r.common.color),r&&r.common&&r.common.unit&&(a.unit=r.common.unit),o&&(a.yaxe="off",a.min=0,a.yticks=1,a.fill=.3,a.symbolSize=1),a}function G2(t,e,r,n){const o=JSON.parse(JSON.stringify(rZt));return o.useComma=t.common.isFloatComma||!1,t.common.dateFormat,o.l.push(Lh(t,e,r,n)),o}const Ue={tabsBody:{overflowY:"auto",flex:1,height:"calc(100% - 48px)"},tabsContainer:{flexDirection:"row"},tabContent:{padding:8,position:"relative",minHeight:"calc(100% - 32px)"},buttonAdd:{position:"absolute",top:8,right:8,zIndex:3},buttonExpandAll:{position:"absolute",top:50,right:8,opacity:.5,zIndex:3},buttonCollapseAll:{position:"absolute",top:8+42*2,right:8,opacity:.5,zIndex:3},button:{height:40,width:40,marginTop:5,marginLeft:5},buttonSave:{color:"#CC0000"},noContent:{padding:8,height:64,verticalAlign:"middle",lineHeight:"64px",width:"100%"},dragHint:{paddingLeft:8,fontSize:10,fontStyle:"italic",opacity:.8},marginTop:{marginTop:16},noPaddingOnSide:{},group:t=>({display:"block","& > div":{display:"inline-flex",pr:"20px",width:200},position:"relative",pb:"16px",borderBottom:`1px dotted ${t.palette.grey[400]}`}),title:{width:"inherit",position:"absolute",whiteSpace:"nowrap",right:0,fontSize:48,opacity:.1,lineHeight:"48px",padding:0,marginTop:20,marginLeft:0,marginRight:0,marginBottom:0,paddingRight:10},buttonCopyLink:{minHeight:30,marginTop:20,marginBottom:10,marginLeft:16},selected:t=>({color:t.palette.mode==="dark"?void 0:"#FFF !important"}),indicator:t=>({backgroundColor:(t.palette.mode==="dark",t.palette.secondary.main)})},PB=["#144578","#1868A8","#665191","#a05195","#d45087","#f95d6a","#ff7c43","#ffa600"],nZt=(t,e)=>({userSelect:"none",width:"100%",background:t?"lightgreen":"grey",...e});class oZt extends m.Component{constructor(r){super(r);X(this,"colorPickerCb");X(this,"paperLineRef");X(this,"paperMarkRef");X(this,"windowWidth");X(this,"handleResize",()=>{(!this.state.selectedTab||this.state.selectedTab==="data")&&this.paperLineRef.current&&this.paperLineRef.current.clientWidth!==this.state.clientWidth?this.setState({clientWidth:this.paperLineRef.current.clientWidth}):this.state.selectedTab==="markings"&&this.paperMarkRef.current&&this.paperMarkRef.current.clientWidth!==this.state.clientWidth&&this.setState({clientWidth:this.paperMarkRef.current.clientWidth})});X(this,"lineOpenToggle",r=>{const n=[...this.state.linesOpened];n[r]=!this.state.linesOpened[r],this.setState({linesOpened:n}),window.localStorage.setItem("App.echarts.Lines.opened",JSON.stringify(n))});X(this,"markOpenToggle",r=>{const n=[...this.state.marksOpened];n[r]=!this.state.marksOpened[r],this.setState({marksOpened:n}),window.localStorage.setItem("App.echarts.Marks.opened",JSON.stringify(n))});X(this,"updateMark",(r,n)=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.marks[r]=n,this.props.onChange(o)});X(this,"updateLine",(r,n)=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.l[r]=n,o.l[r].chartType==="bar"?o.l.forEach(a=>{a.chartType="bar",a.aggregate==="minmax"&&(a.aggregate="max")}):o.l[r].chartType==="polar"?o.l.forEach(a=>{a.chartType="polar",a.aggregate==="minmax"&&(a.aggregate="current")}):o.l.find(a=>a.chartType==="bar")?o.l.forEach(a=>{a.chartType=o.l[r].chartType,a.aggregate==="current"&&(a.aggregate="minmax")}):o.l.find(a=>a.chartType==="polar")&&o.l.forEach(a=>{a.chartType=o.l[r].chartType,a.aggregate==="current"&&(a.aggregate="minmax")}),this.props.onChange(o)});X(this,"expandAllLines",()=>{const r=this.props.presetData.l.map(()=>!0);window.localStorage.setItem("App.echarts.Lines.opened",JSON.stringify(r)),this.setState({linesOpened:r})});X(this,"collapseAllLines",()=>{window.localStorage.setItem("App.echarts.Lines.opened",JSON.stringify([])),this.setState({linesOpened:[]})});X(this,"expandAllMarks",()=>{const r=this.props.presetData.marks.map(()=>!0);window.localStorage.setItem("App.echarts.Marks.opened",JSON.stringify([])),this.setState({marksOpened:r})});X(this,"collapseAllMarks",()=>{window.localStorage.setItem("App.echarts.Marks.opened",JSON.stringify([])),this.setState({marksOpened:[]})});X(this,"deleteMark",r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.marks.splice(r,1);const o=[...this.state.marksOpened];o.splice(r,1),this.setState({marksOpened:o},()=>this.props.onChange(n))});X(this,"deleteLine",r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));for(let a=0;ar?n.l[a].commonYAxis=n.l[a].commonYAxis-1:n.l[a].commonYAxis===r&&delete n.l[a].commonYAxis);n.l.splice(r,1);const o=[...this.state.linesOpened];o.splice(r,1),this.setState({linesOpened:o},()=>this.props.onChange(n))});this.windowWidth=this.props.windowWidth;const n=window.sessionStorage.getItem("echarts.copiedObject");let o=null;if(n)try{o=JSON.parse(n),o.data&&(o.type==="line"?o.line=o.data:o.mark=o.data,delete o.data)}catch{o=null}this.state={presetData:G2(this.props.systemConfig),selectedTab:window.localStorage.getItem("App.echarts.presetTabs.selectedTab")!==null?window.localStorage.getItem("App.echarts.presetTabs.selectedTab"):"data",linesOpened:window.localStorage.getItem("App.echarts.Lines.opened")!==null?JSON.parse(window.localStorage.getItem("App.echarts.Lines.opened")):[],marksOpened:window.localStorage.getItem("App.echarts.Marks.opened")!==null?JSON.parse(window.localStorage.getItem("App.echarts.Marks.opened")):[],deleteLineDialog:null,deleteMarkDialog:null,showColorDialog:!1,colorDialogValue:"",webInstances:[],toast:"",copiedObject:o,clientWidth:0,legColor:"",legBg:"",exportColor:"",exportDataColor:"",titleColor:"",window_bg:"",bg_custom:"",x_labels_color:"",y_labels_color:"",y_ticks_color:"",border_color:"",barFontColor:"",x_ticks_color:"",grid_color:""},this.props.socket.getAdapterInstances("web").then(a=>{const i=a.map(s=>({index:s._id.split(".").pop(),link:`http${s.native.secure?"s":""}://${s.native.bind==="0.0.0.0"?window.location.hostname:s.native.bind}:${s.native.port}`}));this.setState({webInstances:i})}),this.paperLineRef=m.createRef(),this.paperMarkRef=m.createRef(),this.colorPickerCb=null}componentDidMount(){window.addEventListener("resize",this.handleResize)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}addMark(r){const n=JSON.parse(JSON.stringify(this.props.presetData));if(r)n.marks.push(JSON.parse(JSON.stringify(r)));else{const o=this.props.presetData.marks.length,a=PB[o%PB.length];n.marks.push({color:a})}this.props.onChange(n)}addLine(r){const n=JSON.parse(JSON.stringify(this.props.presetData));if(r)n.l.push(JSON.parse(JSON.stringify(r)));else{const o=this.props.presetData.l.length,a=Lh(this.props.systemConfig);a.xaxe=o?"off":void 0,n.l.push(a)}if(n.l.find(o=>o.chartType==="bar")){const o=n.l[n.l.length-1];o.chartType="bar",o.aggregate==="minmax"&&(o.aggregate="max")}else if(n.l.find(o=>o.chartType==="polar")){const o=n.l[n.l.length-1];o.chartType="polar",o.aggregate==="minmax"&&(o.aggregate="current")}this.props.onChange(n)}renderDeleteLineDialog(){return this.state.deleteLineDialog!==null?w.jsxs(or,{open:!0,onClose:()=>this.setState({deleteLineDialog:null}),children:[w.jsx(_r,{children:P.t("Are you sure for delete this line?")}),w.jsxs(pr,{style:{...Ue.alignRight,...Ue.buttonsContainer},children:[w.jsx(tt,{variant:"contained",color:"secondary",autoFocus:!0,onClick:()=>{this.deleteLine(this.state.deleteLineDialog),this.setState({deleteLineDialog:null})},startIcon:w.jsx(Ta,{}),children:P.t("Delete")}),w.jsx(tt,{color:"grey",variant:"contained",onClick:()=>this.setState({deleteLineDialog:null}),startIcon:w.jsx(wo,{}),children:P.t("Cancel")})]})]},"deleteLineDialog"):null}renderDeleteMarkDialog(){return this.state.deleteMarkDialog!==null?w.jsxs(or,{open:!0,onClose:()=>this.setState({deleteMarkDialog:null}),children:[w.jsx(_r,{children:P.t("Are you sure for delete this mark?")}),w.jsxs(pr,{style:{...Ue.alignRight,...Ue.buttonsContainer},children:[w.jsx(tt,{variant:"contained",color:"secondary",onClick:()=>{this.deleteMark(this.state.deleteMarkDialog),this.setState({deleteMarkDialog:null})},startIcon:w.jsx(Ta,{}),children:P.t("Delete")}),w.jsx(tt,{color:"grey",variant:"contained",onClick:()=>this.setState({deleteMarkDialog:null}),startIcon:w.jsx(wo,{}),children:P.t("Cancel")})]})]},"deleteMarkDialog"):null}showColorPicker(r,n){this.colorPickerCb=n,this.setState({colorDialogValue:r,showColorDialog:!0})}renderColorDialog(){return w.jsx(or,{onClose:()=>{this.colorPickerCb=null,this.setState({showColorDialog:!1})},open:this.state.showColorDialog,children:w.jsx(xKt,{color:this.state.colorDialogValue,onChange:r=>{this.setState({colorDialogValue:r.hex},()=>this.colorPickerCb&&this.colorPickerCb(r.hex))}})})}componentDidUpdate(){(!this.state.selectedTab||this.state.selectedTab==="data")&&this.paperLineRef.current&&this.paperLineRef.current.clientWidth!==this.state.clientWidth?(this.windowWidth=this.props.windowWidth,this.setState({clientWidth:this.paperLineRef.current.clientWidth})):this.state.selectedTab==="markings"&&this.paperMarkRef.current&&this.paperMarkRef.current.clientWidth!==this.state.clientWidth&&(this.windowWidth=this.props.windowWidth,this.setState({clientWidth:this.paperMarkRef.current.clientWidth}))}renderTabLines(){const r=this.props.presetData.l.length>1&&this.props.presetData.l.find((o,a)=>!this.state.linesOpened[a]),n=this.props.presetData.l.length>1&&this.props.presetData.l.find((o,a)=>this.state.linesOpened[a]);return w.jsx(QT,{droppableId:"tabs",children:(o,a)=>{var i;return w.jsx("div",{...o.droppableProps,ref:o.innerRef,style:{background:a.isDraggingOver?this.props.theme.palette.secondary.dark:void 0,width:"100%",minHeight:"calc(100% - 32px)"},children:w.jsxs(zn,{style:Ue.tabContent,ref:this.paperLineRef,children:[w.jsx(ro,{onClick:()=>this.addLine(),size:"small",color:"secondary",style:Ue.buttonAdd,title:P.t("Add line to chart"),children:w.jsx(Il,{})}),r?w.jsx(ro,{onClick:this.expandAllLines,size:"small",color:"default",style:Ue.buttonExpandAll,title:P.t("Expand all lines"),children:w.jsx(sf,{})}):null,n?w.jsx(ro,{onClick:this.collapseAllLines,size:"small",color:"default",style:Ue.buttonCollapseAll,title:P.t("Collapse all lines"),children:w.jsx(YR,{})}):null,this.props.presetData.l.length?this.props.presetData.l.map((s,l)=>w.jsx(EE,{draggableId:`${s.id}_${l}`,index:l,children:(d,h)=>w.jsx("div",{ref:d.innerRef,...d.draggableProps,style:nZt(h.isDragging,d.draggableProps.style),children:w.jsx(IB,{provided:d,snapshot:h,theme:this.props.theme,instances:this.props.instances,systemConfig:this.props.systemConfig,line:s,presetData:this.props.presetData,width:this.state.clientWidth,updateLine:this.updateLine,deleteLine:u=>this.setState({deleteLineDialog:u}),index:l,socket:this.props.socket,opened:typeof this.state.linesOpened[l]<"u"&&this.state.linesOpened[l]===!0,lineOpenToggle:this.lineOpenToggle,maxLines:this.props.presetData.l.length,onSelectColor:(u,f)=>this.showColorPicker(u,f),onCopy:u=>{this.setState({copiedObject:{type:"line",line:JSON.parse(JSON.stringify(u))}}),window.sessionStorage.setItem("echarts.copiedObject",JSON.stringify({type:"line",line:u}))}},l)})},`${s.id}_${l}`)):w.jsx("div",{style:Ue.noContent,children:P.t('Create a new line with a "+" on the right.')}),((i=this.state.copiedObject)==null?void 0:i.type)==="line"?w.jsx(IB,{presetData:this.props.presetData,line:this.state.copiedObject.line,theme:this.props.theme,instances:this.props.instances,systemConfig:this.props.systemConfig,width:this.state.clientWidth,deleteLine:()=>{window.sessionStorage.removeItem("echarts.copiedObject"),this.setState({copiedObject:null})},socket:this.props.socket,opened:!1,onPaste:()=>{var s;return((s=this.state.copiedObject)==null?void 0:s.type)==="line"&&this.addLine(this.state.copiedObject.line)}},"copiedLine"):null,o.placeholder,w.jsx("div",{style:Ue.dragHint,children:P.t("You can drag and drop simple lines from the left list.")})]})})}})}renderTabMarkings(){var o;const r=this.props.presetData.marks.length>1&&this.props.presetData.marks.find((a,i)=>!this.state.marksOpened[i]),n=this.props.presetData.marks.length>1&&this.props.presetData.marks.find((a,i)=>this.state.marksOpened[i]);return w.jsxs(zn,{style:Ue.tabContent,ref:this.paperMarkRef,children:[w.jsx(ro,{onClick:()=>this.addMark(),size:"small",color:"secondary",style:Ue.buttonAdd,title:P.t("Add marking line to chart"),children:w.jsx(Il,{})}),r?w.jsx(ro,{onClick:this.expandAllMarks,size:"small",color:"default",style:Ue.buttonExpandAll,title:P.t("Expand all markings"),children:w.jsx(sf,{})}):null,n?w.jsx(ro,{onClick:this.collapseAllMarks,size:"small",color:"default",style:Ue.buttonCollapseAll,title:P.t("Collapse all markings"),children:w.jsx(YR,{})}):null,this.props.presetData.marks.length?this.props.presetData.marks.map((a,i)=>w.jsx(MB,{mark:a,presetData:this.props.presetData,updateMark:this.updateMark,theme:this.props.theme,deleteMark:s=>{this.setState({deleteMarkDialog:s})},index:i,socket:this.props.socket,width:this.state.clientWidth,opened:typeof this.state.marksOpened[i]<"u"&&this.state.marksOpened[i]===!0,markOpenToggle:this.markOpenToggle,onSelectColor:(s,l)=>this.showColorPicker(s,l),onCopy:s=>{this.setState({copiedObject:{type:"marking",mark:JSON.parse(JSON.stringify(s))}}),window.sessionStorage.setItem("echarts.copiedObject",JSON.stringify({type:"marking",mark:s}))}},i)):w.jsx("div",{style:Ue.noContent,children:P.t('You can create a new markings with a "+" on the right.')}),((o=this.state.copiedObject)==null?void 0:o.type)==="marking"?w.jsx(MB,{presetData:this.props.presetData,mark:this.state.copiedObject.mark,theme:this.props.theme,width:this.state.clientWidth,deleteMark:()=>{window.sessionStorage.removeItem("echarts.copiedObject"),this.setState({copiedObject:null})},opened:!1,onPaste:()=>{var a;return((a=this.state.copiedObject)==null?void 0:a.type)==="marking"&&this.addMark(this.state.copiedObject.mark)}},"copiedMark"):null]})}renderTabTime(){const r=this.props.presetData.l.find(s=>s.chartType!=="bar"&&s.chartType!=="polar"),n=this.props.presetData.l.find(s=>s.chartType==="bar"||s.chartType==="polar"),o=this.props.presetData.l.find(s=>s.aggregate!=="onchange"),a=this.props.presetData.l.find(s=>s.instance!=="json"),i={0:"auto",15:"i15min",60:"i1hour",1440:"i1day",43200:"i30days"};return this.props.presetData.timeType!=="static"&&(this.props.presetData.range===10||this.props.presetData.range===30||this.props.presetData.range===60?(delete i[60],delete i[1440],delete i[43200]):this.props.presetData.range===120||this.props.presetData.range===180||this.props.presetData.range===360||this.props.presetData.range===720||this.props.presetData.range===1440?(delete i[1440],delete i[43200]):(this.props.presetData.range===2880||this.props.presetData.range===4320||this.props.presetData.range===10080||this.props.presetData.range===20160||this.props.presetData.range==="1m")&&delete i[43200]),w.jsxs(zn,{style:Ue.tabContent,children:[a?w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Type")}),w.jsx(Dt,{value:this.props.presetData.timeType||"relative",updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));l.timeType=s,this.props.onChange(l)},label:"Type",options:{relative:"relative",static:"static"}})]}):null,a?w.jsx(Re,{component:"div",sx:Ue.group,children:this.props.presetData.timeType==="static"?w.jsxs(w.Fragment,{children:[w.jsx("p",{style:Ue.title,children:P.t("Start and end")}),w.jsx(ty,{date:this.props.presetData.start===void 0?"":this.props.presetData.start.toString(),time:this.props.presetData.start_time,updateValue:(s,l)=>{const d=JSON.parse(JSON.stringify(this.props.presetData));d.start=s,d.start_time=l,this.props.onChange(d)},label:"Start"}),w.jsx(ty,{date:this.props.presetData.end===void 0?"":this.props.presetData.end.toString(),time:this.props.presetData.end_time,updateValue:(s,l)=>{const d=JSON.parse(JSON.stringify(this.props.presetData));d.end=s,d.end_time=l,this.props.onChange(d)},label:"End"})]}):w.jsxs(w.Fragment,{children:[w.jsx("p",{style:Ue.title,children:P.t("Relative")}),w.jsx(Dt,{value:this.props.presetData.relativeEnd,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));l.relativeEnd=s,this.props.onChange(l)},label:"End",options:{now:"now","1minute":"end of minute","5minutes":"end of 5 minutes","10minutes":"end of 10 minutes","30minutes":"end of 30 minutes","1hour":"end of hour","2hours":"end of 2 hours","3hours":"end of 3 hours","4hours":"end of 4 hours","6hours":"end of 6 hours","8hours":"end of 8 hours","12hours":"end of 12 hours",today:"end of day",weekEurope:"end of sunday",weekUsa:"end of saturday",month:"this month",year:"this year"}}),w.jsx(Dt,{value:this.props.presetData.range===void 0?"":this.props.presetData.range.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));!s.includes("m")&&!s.includes("y")?l.range=parseInt(s,10):l.range=s,this.props.onChange(l)},label:"Range",options:{10:"10 minutes",30:"30 minutes",60:"1 hour",120:"2 hours",180:"3 hours",360:"6 hours",720:"12 hours",1440:"1 day",2880:"2 days",4320:"3 days",10080:"7 days",20160:"14 days","1m":"1 month","2m":"2 months","3m":"3 months","6m":"6 months","1y":"1 year","2y":"2 years"}}),w.jsx(Dt,{value:this.props.presetData.live===void 0?"":this.props.presetData.live.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));s?l.live=parseInt(s,10):delete l.live,this.props.onChange(l)},label:"Live update every",options:{"":"none",5:"5 seconds",10:"10 seconds",15:"15 seconds",20:"20 seconds",30:"30 seconds",60:"1 minute",120:"2 minutes",300:"5 minutes",600:"10 minutes",900:"15 minutes",1200:"20 minutes",1800:"30 minutes",3600:"1 hour",7200:"2 hours",10800:"3 hours",21600:"6 hours",43200:"12 hours",86400:"1 day"}})]})}):null,a&&o&&r?w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Aggregate for lines")}),w.jsx(Dt,{value:this.props.presetData.aggregateType,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));l.aggregateType=s,this.props.onChange(l)},label:"Step type",options:{count:"counts",step:"seconds"}}),w.jsx(Ln,{value:this.props.presetData.aggregateSpan===void 0?"":this.props.presetData.aggregateSpan.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));s?l.aggregateSpan=parseInt(s,10):delete l.aggregateSpan,this.props.onChange(l)},label:this.props.presetData.aggregateType==="step"?"Seconds":"Counts"})]}):null,n?w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Aggregate for bars")}),w.jsx(Dt,{value:this.props.presetData.aggregateBar===void 0?"":this.props.presetData.aggregateBar.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));s?l.aggregateBar=parseInt(s,10):delete l.aggregateBar,this.props.onChange(l)},label:P.t("Intervals"),options:i})]}):null,w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Time format")}),w.jsx(kn,{value:this.props.presetData.timeFormatCustom,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));l.timeFormatCustom=s,this.props.onChange(l)},label:"Custom time format"}),this.props.presetData.timeFormatCustom?w.jsx(Ln,{value:this.props.presetData.timeFormat,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));l.timeFormat=s,this.props.onChange(l)},label:"Time format",helperLink:"https://momentjs.com/docs/#/displaying/format/"}):w.jsx(Dt,{value:this.props.presetData.timeFormat,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));l.timeFormat=s,this.props.onChange(l)},label:"Time format",options:{"":"Default","HH:mm DD.MM":"HH:MM dd.mm","HH:mm DD.MM.":"HH:MM dd.mm.","HH:mm
DD.MM":"HH:MM / dd.mm","HH:mm
DD.MM.":"HH:MM / dd.mm.","HH:mm
DD.MM.YY":"HH:MM / dd.mm.yy","HH:mm:ss DD.MM.YY":"HH:MM:SS dd.mm.yy","HH:mm DD.MM.YY":"HH:MM dd.mm.yy","hh:mm:ss MM/DD/YY a":"HH:MM:SS mm/dd/yy am (US)","HH:mm:ss DD/MM/YY":"HH:MM:SS dd/mm/yy (UK)","HH:mm:ss MM.DD.YY":"HH:MM:SS mm.dd.yy","HH:mm ddd":"HH:MM dow","HH:mm:ss ddd":"HH:MM:SS dow","HH:mm MM.DD":"HH:MM mm.dd","HH:mm:ss":"HH:MM:SS","HH:mm":"HH:MM","DD.MM":"dd.mm","DD.MM.":"dd.mm.","MM/DD":"mm/dd",DD:"dd",MM:"mm",YY:"y",HH:"HH",mm:"MM",ddd:"dow","DD.MM.YY":"dd.mm.yy"}})]})]})}renderToast(){return this.state.toast?w.jsx(Ov,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:2e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:w.jsx("span",{id:"message-id",children:this.state.toast}),action:[w.jsx(Ie,{"aria-label":"Close",color:"inherit",style:Ue.close,onClick:()=>this.setState({toast:""}),children:w.jsx(Ar,{})},"close")]}):null}renderTabOptions(){const r=this.props.presetData.l.find(n=>n.chartType==="polar");return w.jsxs(zn,{style:Ue.tabContent,children:[w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Legend")}),w.jsx(Dt,{value:this.props.presetData.legend,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.legend=n,this.props.onChange(o)},label:"Show legend",options:{"":"none",nw:"Top, left",ne:"Top, right",sw:"Bottom, left",se:"Bottom, right",dialog:"Dialog"}}),this.props.presetData.legend?w.jsxs(w.Fragment,{children:[this.renderColorField(this.props.presetData.legColor,"Legend text color","legColor"),this.renderColorField(this.props.presetData.legBg,"Legend background","legBg"),w.jsx(kn,{value:this.props.presetData.legActual,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.legActual=n,this.props.onChange(o)},label:"Show values"}),w.jsx(Dt,{value:this.props.presetData.legendDirection==="vertical"?"vertical":"",updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.legendDirection=n,this.props.onChange(o)},label:"Orientation",options:{"":"horizontal",vertical:"vertical"}}),w.jsx(Er,{value:this.props.presetData.legFontSize,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.legFontSize=n,this.props.onChange(o)},label:"Font size",min:6}),w.jsx(Er,{value:this.props.presetData.legendHeight,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.legendHeight=n,this.props.onChange(o)},label:"Height",min:6})]}):null]}),w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Options")}),w.jsx(kn,{value:this.props.presetData.hoverDetail,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.hoverDetail=n,this.props.onChange(o)},label:"Hover details"}),w.jsx(kn,{value:this.props.presetData.hoverNoInterpolate,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.hoverNoInterpolate=n,this.props.onChange(o)},label:"No interpolate in hover"}),this.props.presetData.hoverDetail?w.jsx(kn,{value:this.props.presetData.hoverNoNulls,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.hoverNoNulls=n,this.props.onChange(o)},label:"Hide nulls in tooltip"}):null,w.jsx(kn,{value:this.props.presetData.useComma,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.useComma=n,this.props.onChange(o)},label:"Use comma"}),w.jsx(kn,{value:this.props.presetData.zoom,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.zoom=n,this.props.onChange(o)},label:"Enable zoom and pan"}),w.jsx(kn,{value:this.props.presetData.export,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.export=n,this.props.onChange(o)},label:"Show save image button"}),this.props.presetData.export?this.renderColorField(this.props.presetData.exportColor,"Save image button color","exportColor"):null,w.jsx(kn,{value:this.props.presetData.exportData,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.exportData=n,this.props.onChange(o)},label:"Show export data button"}),this.props.presetData.export?this.renderColorField(this.props.presetData.exportDataColor,"Export data color","exportDataColor"):null,w.jsx(kn,{value:this.props.presetData.autoGridPadding,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.autoGridPadding=n,this.props.onChange(o)},label:"Auto padding"}),this.props.presetData.zoom?w.jsx(Dt,{value:this.props.presetData.resetZoom===void 0?"":this.props.presetData.resetZoom.toString(),updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));n?o.resetZoom=parseInt(n,10):delete o.resetZoom,this.props.onChange(o)},label:"Reset zoom after idle",options:{"":"none",10:"10 seconds",15:"15 seconds",30:"30 seconds",60:"1 minute",90:"90 seconds",120:"2 minutes",180:"3 minutes",300:"5 minutes",600:"10 minutes",1200:"20 minutes",1800:"30 minutes"}}):null,r?w.jsx(Dt,{value:this.props.presetData.radarCircle||"",updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));n?o.radarCircle="circle":delete o.radarCircle,this.props.onChange(o)},label:"Background of radar chart",options:{"":"Polygonal",circle:"Circle"}}):null]}),w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Copy link to clipboard")}),w.jsxs(tt,{color:"grey",variant:"contained",style:Ue.buttonCopyLink,onClick:()=>{const n=`${window.location.protocol}//${window.location.host}/adapter/echarts/chart/index.html?preset=${this.props.selectedId}`;this.setState({toast:`${P.t("copied")}: ${n}`},()=>ue.copyToClipboard(n))},children:[w.jsx(Di,{}),"admin"]}),this.state.webInstances.map((n,o)=>w.jsxs(tt,{color:"grey",variant:"contained",style:Ue.buttonCopyLink,onClick:()=>{const a=`${n.link}/echarts/index.html?preset=${this.props.selectedId}`;this.setState({toast:`${P.t("copied")}: ${a}`},()=>ue.copyToClipboard(a))},children:[w.jsx(Di,{}),`web.${n.index}`]},o))]})]})}renderTabTitle(){return w.jsx(zn,{style:Ue.tabContent,children:w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Title")}),w.jsx(Ln,{value:this.props.presetData.title,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.title=r,this.props.onChange(n)},label:"Title"}),this.props.presetData.title?w.jsxs(w.Fragment,{children:[w.jsx(Dt,{value:this.props.presetData.titlePos,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.titlePos=r,this.props.onChange(n)},label:"Title position",options:{"":"default","top:35;left:65":"Top, left, inside","top:35;right:5":"Top, right, inside","top:35;left:50":"Top, center, inside","top:50;left:65":"Middle, left, inside","top:50;right:5":"Middle, right, inside","bottom:5;left:65":"Bottom, left, inside","bottom:5;right:5":"Bottom, right, inside","bottom:5;left:50":"Bottom, center, inside"}}),this.renderColorField(this.props.presetData.titleColor,"Title color","titleColor"),w.jsx(Er,{value:this.props.presetData.titleSize,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.titleSize=r,this.props.onChange(n)},label:"Title size",min:0})]}):null]})})}renderTabAppearance(){return w.jsxs(zn,{style:Ue.tabContent,children:[w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Theme")}),w.jsx(Dt,{value:this.props.presetData.theme,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.theme=r,this.props.onChange(n)},label:"Theme",noTranslate:!0,options:{"":"auto",default:"default",dark:"dark","dark-bold":"dark-bold","dark-blue":"dark-blue",gray:"gray",vintage:"vintage",macarons:"macarons",infographic:"infographic",shine:"shine",roma:"roma",azul:"azul","bee-inspired":"",blue:"blue",royal:"royal","tech-blue":"tech-blue",red:"red","red-velvet":"red-velvet",green:"green"}})]}),w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Chart size")}),w.jsx(Ln,{value:this.props.presetData.width===void 0?"":this.props.presetData.width.toString(),updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));r?n.width=r:delete n.width,this.props.onChange(n)},label:"Width",styles:{fieldContainer:Ue.marginTop}}),w.jsx(Ln,{value:this.props.presetData.height===void 0?"":this.props.presetData.height.toString(),updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));r?n.height=r:delete n.height,this.props.onChange(n)},label:"Height",styles:{fieldContainer:Ue.marginTop}})]}),w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Backgrounds")}),w.jsx(kn,{value:this.props.presetData.noBackground,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.noBackground=r,this.props.onChange(n)},label:"No background"}),this.props.presetData.noBackground?null:this.renderColorField(this.props.presetData.window_bg,"Window background","window_bg",void 0,Ue.marginTop),this.renderColorField(this.props.presetData.bg_custom,"Chart background","bg_custom",void 0,Ue.marginTop)]}),w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Labels")}),this.renderColorField(this.props.presetData.x_labels_color,"X labels color","x_labels_color",void 0,Ue.marginTop),w.jsx(Er,{value:this.props.presetData.x_labels_size,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.x_labels_size=r,this.props.onChange(n)},label:"X labels size",min:6}),this.renderColorField(this.props.presetData.x_ticks_color,"X ticks color","x_ticks_color",void 0,Ue.marginTop),this.renderColorField(this.props.presetData.y_labels_color,"Y labels color","y_labels_color",void 0,Ue.marginTop),w.jsx(Er,{value:this.props.presetData.y_labels_size,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.y_labels_size=r,this.props.onChange(n)},label:"Y labels size",min:6}),this.renderColorField(this.props.presetData.y_ticks_color,"Y ticks color","y_ticks_color",void 0,Ue.marginTop),w.jsx(Dt,{value:this.props.presetData.xLabelShift===void 0?"":this.props.presetData.xLabelShift.toString(),updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));r.includes("m")||r.includes("y")?n.xLabelShift=r:n.xLabelShift=parseInt(r,10),this.props.onChange(n)},tooltip:"This time offset will be added to the X label by displaying data on the chart",label:"X-Label-Offset",options:{0:"0 seconds",10:"10 seconds",30:"30 seconds",60:"60 seconds",120:"2 minutes",180:"3 minutes",240:"4 minutes",300:"5 minutes",600:"10 minutes",900:"15 minutes",1800:"30 minutes",2700:"45 minutes",3600:"1 hour",7200:"2 hours",21600:"6 hours",43200:"12 hours",86400:"1 day",172800:"2 days",259200:"3 days",345600:"4 days",604800:"1 week",1209600:"2 weeks","1m":"1 month","2m":"2 months","3m":"3 months","6m":"6 months","1y":"1 year","2y":"2 years","-10":"-10 seconds","-30":"-30 seconds","-60":"-60 seconds","-120":"-2 minutes","-180":"-3 minutes","-240":"-4 minutes","-300":"-5 minutes","-600":"-10 minutes","-900":"-15 minutes","-1800":"-30 minutes","-2700":"-45 minutes","-3600":"-1 hour","-7200":"-2 hours","-21600":"-6 hours","-43200":"-12 hours","-86400":"-1 day","-172800":"-2 days","-259200":"-3 days","-345600":"-4 days","-604800":"-1 week","-1209600":"-2 weeks","-1m":"-1 month","-2m":"-2 months","-3m":"-3 months","-6m":"-6 months","-1y":"-1 year","-2y":"-2 years"}})]}),w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Grid")}),w.jsx(kn,{value:this.props.presetData.grid_hideX,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.grid_hideX=r,this.props.onChange(n)},label:"Hide X grid"}),w.jsx(kn,{value:this.props.presetData.grid_hideY,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.grid_hideY=r,this.props.onChange(n)},label:"Hide Y grid"}),!this.props.presetData.grid_hideX||!this.props.presetData.grid_hideY?this.renderColorField(this.props.presetData.grid_color,"Grid color","grid_color"):null]}),w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Border")}),w.jsx(Dt,{value:this.props.presetData.noBorder||"",updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));r?n.noBorder="noborder":delete n.noBorder,this.props.onChange(n)},label:"Border",options:{"":"With border",noborder:"Without border"}}),this.props.presetData.noBorder!=="noborder"?w.jsxs(w.Fragment,{children:[w.jsx(Er,{value:this.props.presetData.border_width,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.border_width=r,this.props.onChange(n)},label:"Border width",min:0}),this.props.presetData.border_width?this.renderColorField(this.props.presetData.border_color,"Border color","border_color"):null,this.props.presetData.border_width?w.jsx(Dt,{value:this.props.presetData.border_style,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.border_style=r,this.props.onChange(n)},label:"Border style",options:{solid:"solid",dotted:"dotted",dashed:"dashed",double:"double",groove:"groove",ridge:"ridge",inset:"inset",outset:"outset"}}):null,w.jsx(Er,{value:this.props.presetData.border_padding,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.border_padding=r,this.props.onChange(n)},label:"Border padding",min:0})]}):null]}),this.props.presetData.l.find(r=>r.chartType==="bar")?w.jsxs(Pce,{item:!0,sm:6,xs:12,children:[w.jsx("p",{style:Ue.title,children:P.t("Bar settings")}),w.jsx(Dt,{value:this.props.presetData.barLabels,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.barLabels=r,this.props.onChange(n)},label:"Show labels",options:{"":"none",topover:"top over",topunder:"top under",bottom:"bottom",middle:"middle"}}),w.jsx(Er,{value:this.props.presetData.barWidth,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.barWidth=r,this.props.onChange(n)},label:"Bars width",min:0}),w.jsx(Er,{value:this.props.presetData.barFontSize,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.barFontSize=r,this.props.onChange(n)},label:"Label font size",min:0}),this.renderColorField(this.props.presetData.barFontColor,"Label color","barFontColor")]}):null]})}renderColorField(r,n,o,a,i){let s=ue.isUseBright(r,null);s===null&&(s=void 0);const l=d=>{const h=JSON.parse(JSON.stringify(this.props.presetData));h[o]=d,this.props.onChange(h)};return w.jsx("div",{style:i,children:w.jsx(Ht,{variant:"standard",style:{minWidth:a,width:"calc(100% - 8px)"},label:P.t(n),value:r||"",onClick:()=>{this.setState({[o]:r},()=>this.showColorPicker(this.state[o],d=>this.setState({[o]:d},()=>l(Ai.getColor(d,!0)))))},onChange:d=>{const h=d.target.value;this.setState({[o]:h},()=>l(h))},slotProps:{inputLabel:{shrink:!0},htmlInput:{style:{backgroundColor:r,color:s?"#FFF":"#000"}},input:{endAdornment:r?w.jsx(Ie,{size:"small",onClick:d=>{d.stopPropagation(),this.setState({[o]:""},()=>l(""))},children:w.jsx(Ar,{})}):void 0}}})})}render(){const r=this.props.presetData.l.find(o=>o.chartType==="polar"),n=this.props.presetData.l.find(o=>o.aggregate!=="current");return w.jsxs("div",{style:{width:"100%",height:"100%",overflow:"hidden"},children:[w.jsxs(PW,{position:"static",style:Ue.tabsContainer,children:[this.props.selectedPresetChanged||this.props.autoSave?w.jsx(yr,{style:{...Ue.button,color:this.props.theme.palette.text.primary},checked:!!this.props.autoSave,title:P.t("Auto save"),onChange:o=>this.props.onAutoSave(o.target.checked)}):null,this.props.selectedPresetChanged?null:w.jsx(Ie,{style:{...Ue.button,...Ue.noPaddingOnSide},onClick:()=>window.open(`chart/index.html?preset=${this.props.selectedId}`,"own-preset-echarts"),title:P.t("Open chart in own window"),children:w.jsx(hH,{})}),!this.props.autoSave&&this.props.selectedPresetChanged?w.jsx(Ie,{style:{...Ue.noPaddingOnSide,...Ue.buttonSave,...Ue.button},onClick:()=>this.props.savePreset(),children:w.jsx(pH,{})}):null,w.jsxs(sH,{onChange:(o,a)=>{window.localStorage.setItem("App.echarts.presetTabs.selectedTab",a),this.setState({selectedTab:a})},value:this.state.selectedTab||"data",variant:"scrollable",scrollButtons:!0,sx:{"& .MuiTabs-indicator":Ue.indicator},children:[w.jsx(Uo,{sx:{"&.Mui-selected":Ue.selected},label:P.t("Data"),value:"data"}),r?null:w.jsx(Uo,{sx:{"&.Mui-selected":Ue.selected},label:P.t("Markings"),value:"markings"}),n?w.jsx(Uo,{sx:{"&.Mui-selected":Ue.selected},label:P.t("Time"),value:"time"}):null,w.jsx(Uo,{sx:{"&.Mui-selected":Ue.selected},label:P.t("Options"),value:"options"}),w.jsx(Uo,{sx:{"&.Mui-selected":Ue.selected},label:P.t("Title"),value:"title"}),w.jsx(Uo,{sx:{"&.Mui-selected":Ue.selected},label:P.t("Appearance"),value:"appearance"})]})]}),w.jsxs("div",{style:Ue.tabsBody,children:[this.state.selectedTab==="data"||!this.state.selectedTab?this.renderTabLines():null,this.state.selectedTab==="markings"&&!r?this.renderTabMarkings():null,this.state.selectedTab==="time"&&n?this.renderTabTime():null,this.state.selectedTab==="options"?this.renderTabOptions():null,this.state.selectedTab==="title"?this.renderTabTitle():null,this.state.selectedTab==="appearance"?this.renderTabAppearance():null]}),this.renderDeleteLineDialog(),this.renderDeleteMarkDialog(),this.renderColorDialog(),this.renderToast()]})}}const NB=0,RB={logBox:{width:"100%",height:"100%",position:"relative",overflow:"hidden"},logBoxInner:t=>({color:t.palette.mode==="dark"?"white":"black",width:`calc(100% - ${NB}px)`,height:"100%",marginLeft:NB,overflow:"none",position:"relative",display:"flex",flexDirection:"column"})};class aZt extends m.Component{render(){return w.jsx("div",{style:RB.logBox,children:w.jsx(Re,{component:"div",sx:RB.logBoxInner,children:w.jsx(oZt,{width:this.props.width,socket:this.props.socket,presetData:this.props.presetData,selectedId:this.props.selectedId,onChange:this.props.onChange,instances:this.props.instances,systemConfig:this.props.systemConfig,selectedPresetChanged:this.props.selectedPresetChanged,savePreset:this.props.savePreset,theme:this.props.theme,onAutoSave:e=>this.props.onAutoSave(e),autoSave:this.props.autoSave,windowWidth:this.props.windowWidth})})})}}class iZt extends m.Component{render(){return w.jsx("svg",{onClick:e=>this.props.onClick&&this.props.onClick(e),viewBox:"0 0 32 32",width:this.props.width||20,height:this.props.width||20,xmlns:"http://www.w3.org/2000/svg",className:this.props.className,style:this.props.style,children:w.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",d:"M16,9 L9,9 L9,16 L9,16 C9,19.8659932 12.1340068,23 16,23 L16,23 C19.8659932,23 23,19.8659932 23,16 C23,12.1340068 19.8659932,9 16,9 L16,9 Z M8,15 L15,15 L15,8 L15,8 C15,4.13400675 11.8659932,1 8,1 L8,1 C4.13400675,1 1,4.13400675 1,8 C1,11.8659932 4.13400675,15 8,15 L8,15 Z",transform:"rotate(180 12 12)"})})}}var ry={black:"#000",white:"#fff"},Dk={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"},Ak={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"},Ik={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"},Mk={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"},Pk={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"},Nk={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"},bA={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function Rk(t){return t&&su(t)==="object"&&t.constructor===Object}function ku(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?De({},t):t;return Rk(t)&&Rk(e)&&Object.keys(e).forEach(function(o){o!=="__proto__"&&(Rk(e[o])&&o in t?n[o]=ku(t[o],e[o],r):n[o]=e[o])}),n}function X2(t){for(var e="https://mui.com/production-error/?code="+t,r=1;r1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.min(Math.max(e,t),r)}function sZt(t){t=t.substr(1);var e=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),r=t.match(e);return r&&r[0].length===1&&(r=r.map(function(n){return n+n})),r?"rgb".concat(r.length===4?"a":"","(").concat(r.map(function(n,o){return o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3}).join(", "),")"):""}function lZt(t){t=Eu(t);var e=t,r=e.values,n=r[0],o=r[1]/100,a=r[2]/100,i=o*Math.min(a,1-a),s=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(u+n/30)%12;return a-i*Math.max(Math.min(f-3,9-f,1),-1)},l="rgb",d=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(l+="a",d.push(r[3])),wA({type:l,values:d})}function Eu(t){if(t.type)return t;if(t.charAt(0)==="#")return Eu(sZt(t));var e=t.indexOf("("),r=t.substring(0,e);if(["rgb","rgba","hsl","hsla"].indexOf(r)===-1)throw new Error(X2(3,t));var n=t.substring(e+1,t.length-1).split(",");return n=n.map(function(o){return parseFloat(o)}),{type:r,values:n}}function wA(t){var e=t.type,r=t.values;return e.indexOf("rgb")!==-1?r=r.map(function(n,o){return o<3?parseInt(n,10):n}):e.indexOf("hsl")!==-1&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(e,"(").concat(r.join(", "),")")}function cZt(t,e){var r=jB(t),n=jB(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function jB(t){t=Eu(t);var e=t.type==="hsl"?Eu(lZt(t)).values:t.values;return e=e.map(function(r){return r/=255,r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function dZt(t,e){if(t=Eu(t),e=Gq(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)t.values[r]*=1-e;return wA(t)}function uZt(t,e){if(t=Eu(t),e=Gq(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;return wA(t)}function ji(t,e){if(t==null)return{};var r,n,o=lu(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n0?b:g;return"@media (max-width:".concat(x-i/100).concat(o,")")}function h(g,y){var b=ms.indexOf(y);return b===ms.length-1?l(g):"@media (min-width:".concat(typeof r[g]=="number"?r[g]:g).concat(o,") and ")+"(max-width:".concat((b!==-1&&typeof r[ms[b+1]]=="number"?r[ms[b+1]]:y)-i/100).concat(o,")")}function u(g){return h(g,g)}function f(g){return r[g]}return De({keys:ms,values:r,up:l,down:d,between:h,only:u,width:f},s)}function hZt(t,e,r){var n;return De({gutters:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",` + `),m.createElement("div",{style:h.white,className:"saturation-white"},m.createElement("div",{style:h.black,className:"saturation-black"}),m.createElement("div",{style:h.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement("div",{style:h.circle}))))}}]),e}(A.PureComponent||A.Component);function nJt(t,e){for(var r=-1,n=t==null?0:t.length;++r=0,a=!r&&o&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?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 lt(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(xJt,arguments)},brighten:function(){return this._applyModification(SJt,arguments)},darken:function(){return this._applyModification(CJt,arguments)},desaturate:function(){return this._applyModification(_Jt,arguments)},saturate:function(){return this._applyModification(bJt,arguments)},greyscale:function(){return this._applyModification(wJt,arguments)},spin:function(){return this._applyModification($Jt,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(TJt,arguments)},complement:function(){return this._applyCombination(kJt,arguments)},monochromatic:function(){return this._applyCombination(OJt,arguments)},splitcomplement:function(){return this._applyCombination(EJt,arguments)},triad:function(){return this._applyCombination(lB,[3])},tetrad:function(){return this._applyCombination(lB,[4])}};lt.fromRatio=function(t,e){if(Qv(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=bh(t[n]));t=r}return lt(t,e)};function fJt(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,a=null,i=!1,s=!1;return typeof t=="string"&&(t=PJt(t)),Qv(t)=="object"&&(ki(t.r)&&ki(t.g)&&ki(t.b)?(e=mJt(t.r,t.g,t.b),i=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):ki(t.h)&&ki(t.s)&&ki(t.v)?(n=bh(t.s),o=bh(t.v),e=vJt(t.h,n,o),i=!0,s="hsv"):ki(t.h)&&ki(t.s)&&ki(t.l)&&(n=bh(t.s),a=bh(t.l),e=gJt(t.h,n,a),i=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=Pq(r),{ok:i,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function mJt(t,e,r){return{r:Dr(t,255)*255,g:Dr(e,255)*255,b:Dr(r,255)*255}}function oB(t,e,r){t=Dr(t,255),e=Dr(e,255),r=Dr(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,s=(n+o)/2;if(n==o)a=i=0;else{var l=n-o;switch(i=s>.5?l/(2-n-o):l/(n+o),n){case t:a=(e-r)/l+(e1&&(u-=1),u<1/6?d+(h-d)*6*u:u<1/2?h:u<2/3?d+(h-d)*(2/3-u)*6:d}if(e===0)n=o=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=i(l,s,t+1/3),o=i(l,s,t),a=i(l,s,t-1/3)}return{r:n*255,g:o*255,b:a*255}}function aB(t,e,r){t=Dr(t,255),e=Dr(e,255),r=Dr(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,s=n,l=n-o;if(i=n===0?0:l/n,n==o)a=0;else{switch(n){case t:a=(e-r)/l+(e>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(lt(n));return a}function OJt(t,e){e=e||6;for(var r=lt(t).toHsv(),n=r.h,o=r.s,a=r.v,i=[],s=1/e;e--;)i.push(lt({h:n,s:o,v:a})),a=(a+s)%1;return i}lt.mix=function(t,e,r){r=r===0?0:r||50;var n=lt(t).toRgb(),o=lt(e).toRgb(),a=r/100,i={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return lt(i)};lt.readability=function(t,e){var r=lt(t),n=lt(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};lt.isReadable=function(t,e,r){var n=lt.readability(t,e),o,a;switch(a=!1,o=NJt(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};lt.mostReadable=function(t,e,r){var n=null,o=0,a,i,s,l;r=r||{},i=r.includeFallbackColors,s=r.level,l=r.size;for(var d=0;do&&(o=a,n=lt(e[d]));return lt.isReadable(t,n,{level:s,size:l})||!i?n:(r.includeFallbackColors=!1,lt.mostReadable(t,["#fff","#000"],r))};var W2=lt.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"},DJt=lt.hexNames=AJt(W2);function AJt(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function Pq(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Dr(t,e){IJt(t)&&(t="100%");var r=MJt(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function x_(t){return Math.min(1,Math.max(0,t))}function yo(t){return parseInt(t,16)}function IJt(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function MJt(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Sa(t){return t.length==1?"0"+t:""+t}function bh(t){return t<=1&&(t=t*100+"%"),t}function Nq(t){return Math.round(parseFloat(t)*255).toString(16)}function cB(t){return yo(t)/255}var ga=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),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 ki(t){return!!ga.CSS_UNIT.exec(t)}function PJt(t){t=t.replace(pJt,"").replace(hJt,"").toLowerCase();var e=!1;if(W2[t])t=W2[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ga.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=ga.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ga.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=ga.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ga.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=ga.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ga.hex8.exec(t))?{r:yo(r[1]),g:yo(r[2]),b:yo(r[3]),a:cB(r[4]),format:e?"name":"hex8"}:(r=ga.hex6.exec(t))?{r:yo(r[1]),g:yo(r[2]),b:yo(r[3]),format:e?"name":"hex"}:(r=ga.hex4.exec(t))?{r:yo(r[1]+""+r[1]),g:yo(r[2]+""+r[2]),b:yo(r[3]+""+r[3]),a:cB(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=ga.hex3.exec(t))?{r:yo(r[1]+""+r[1]),g:yo(r[2]+""+r[2]),b:yo(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function NJt(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var dB=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,o=0;return uJt(r,function(a){if(e[a]&&(n+=1,isNaN(e[a])||(o+=1),a==="s"||a==="l")){var i=/^\d+%$/;i.test(e[a])&&(o+=1)}}),n===o?e:!1},wh=function(e,r){var n=e.hex?lt(e.hex):lt(e),o=n.toHsl(),a=n.toHsv(),i=n.toRgb(),s=n.toHex();o.s===0&&(o.h=r||0,a.h=r||0);var l=s==="000000"&&i.a===0;return{hsl:o,hex:l?"transparent":"#"+s,rgb:i,hsv:a,oldHue:e.h||r||o.h,source:e.source}},Gs=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&<(e).isValid()},rA=function(e){if(!e)return"#fff";var r=wh(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},Ek=function(e,r){var n=e.replace("°","");return lt(r+" ("+n+")")._ok},Jp=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){HJt(o,n);function o(){var a,i,s,l;WJt(this,o);for(var d=arguments.length,h=Array(d),u=0;us))return!1;var d=a.get(t),h=a.get(e);if(d&&h)return d==e&&h==t;var u=-1,f=!0,g=r&tYt?new ey:void 0;for(a.set(t,e),a.set(e,t);++u=0||Object.prototype.hasOwnProperty.call(i,d)&&(l[d]=i[d]);return l}var a=24;return Wg.default=function(i){var s=i.fill,l=s===void 0?"currentColor":s,d=i.width,h=d===void 0?a:d,u=i.height,f=u===void 0?a:u,g=i.style,y=g===void 0?{}:g,b=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:l,width:h,height:f},y)},b),r.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"}))},Wg}var mKt=fKt();const gKt=so(mKt);var vKt=function(){function t(e,r){for(var n=0;n1&&(o.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(o.a*100)/100,source:"rgb"},a)):(o.h||o.s||o.l)&&(typeof o.s=="string"&&o.s.includes("%")&&(o.s=o.s.replace("%","")),typeof o.l=="string"&&o.l.includes("%")&&(o.l=o.l.replace("%","")),o.s==1?o.s=.01:o.l==1&&(o.l=.01),n.props.onChange({h:o.h||n.props.hsl.h,s:Number(kB(o.s)?n.props.hsl.s:o.s),l:Number(kB(o.l)?n.props.hsl.l:o.l),source:"hsl"},a))},n.showHighlight=function(o){o.currentTarget.style.background="#eee"},n.hideHighlight=function(o){o.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return vKt(e,[{key:"render",value:function(){var n=this,o=Et({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),a=void 0;return this.state.view==="hex"?a=m.createElement("div",{style:o.fields,className:"flexbox-fix"},m.createElement("div",{style:o.field},m.createElement(zt,{style:{input:o.input,label:o.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=m.createElement("div",{style:o.fields,className:"flexbox-fix"},m.createElement("div",{style:o.field},m.createElement(zt,{style:{input:o.input,label:o.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(zt,{style:{input:o.input,label:o.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(zt,{style:{input:o.input,label:o.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),m.createElement("div",{style:o.alpha},m.createElement(zt,{style:{input:o.input,label:o.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=m.createElement("div",{style:o.fields,className:"flexbox-fix"},m.createElement("div",{style:o.field},m.createElement(zt,{style:{input:o.input,label:o.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(zt,{style:{input:o.input,label:o.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),m.createElement("div",{style:o.field},m.createElement(zt,{style:{input:o.input,label:o.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),m.createElement("div",{style:o.alpha},m.createElement(zt,{style:{input:o.input,label:o.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),m.createElement("div",{style:o.wrap,className:"flexbox-fix"},a,m.createElement("div",{style:o.toggle},m.createElement("div",{style:o.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},m.createElement(gKt,{style:o.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.hsl.a!==1&&o.view==="hex"?{view:"rgb"}:null}}]),e}(m.Component);Vq.defaultProps={view:"hex"};var TB=function(){var e=Et({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 m.createElement("div",{style:e.picker})},wKt=function(){var e=Et({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return m.createElement("div",{style:e.picker})},lA=function(e){var r=e.width,n=e.onChange,o=e.disableAlpha,a=e.rgb,i=e.hsl,s=e.hsv,l=e.hex,d=e.renderers,h=e.styles,u=h===void 0?{}:h,f=e.className,g=f===void 0?"":f,y=e.defaultView,b=Et(uo({default:{picker:{width:r,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("+a.r+", "+a.g+", "+a.b+", "+a.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:o});return m.createElement("div",{style:b.picker,className:"chrome-picker "+g},m.createElement("div",{style:b.saturation},m.createElement(w_,{style:b.Saturation,hsl:i,hsv:s,pointer:wKt,onChange:n})),m.createElement("div",{style:b.body},m.createElement("div",{style:b.controls,className:"flexbox-fix"},m.createElement("div",{style:b.color},m.createElement("div",{style:b.swatch},m.createElement("div",{style:b.active}),m.createElement(Fu,{renderers:d}))),m.createElement("div",{style:b.toggles},m.createElement("div",{style:b.hue},m.createElement(Bu,{style:b.Hue,hsl:i,pointer:TB,onChange:n})),m.createElement("div",{style:b.alpha},m.createElement(XD,{style:b.Alpha,rgb:a,hsl:i,pointer:TB,renderers:d,onChange:n})))),m.createElement(Vq,{rgb:a,hsl:i,hex:l,view:y,onChange:n,disableAlpha:o})))};lA.propTypes={width:We.oneOfType([We.string,We.number]),disableAlpha:We.bool,styles:We.object,defaultView:We.oneOf(["hex","rgb","hsl"])};lA.defaultProps={width:225,disableAlpha:!1,styles:{}};const xKt=po(lA);var SKt=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.active,s=Et({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:rA(r),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:i,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return m.createElement(lc,{style:s.color,color:r,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},m.createElement("div",{style:s.dot}))},CKt=function(e){var r=e.hex,n=e.rgb,o=e.onChange,a=Et({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},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"}}}),i=function(l,d){l.r||l.g||l.b?o({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},d):o({hex:l.hex,source:"hex"},d)};return m.createElement("div",{style:a.fields,className:"flexbox-fix"},m.createElement("div",{style:a.active}),m.createElement(zt,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:r,onChange:i}),m.createElement(zt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:i}),m.createElement(zt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:i}),m.createElement(zt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:i}))},cA=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.colors,a=e.hex,i=e.rgb,s=e.styles,l=s===void 0?{}:s,d=e.className,h=d===void 0?"":d,u=Et(uo({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),f=function(y,b){y.hex?Gs(y.hex)&&r({hex:y.hex,source:"hex"},b):r(y,b)};return m.createElement(Hf,{style:u.Compact,styles:l},m.createElement("div",{style:u.compact,className:"compact-picker "+h},m.createElement("div",null,cc(o,function(g){return m.createElement(SKt,{key:g,color:g,active:g.toLowerCase()===a,onClick:f,onSwatchHover:n})}),m.createElement("div",{style:u.clear})),m.createElement(CKt,{hex:a,rgb:i,onChange:f})))};cA.propTypes={colors:We.arrayOf(We.string),styles:We.object};cA.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"],styles:{}};po(cA);var $Kt=function(e){var r=e.hover,n=e.color,o=e.onClick,a=e.onSwatchHover,i={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=Et({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:i}},{hover:r});return m.createElement("div",{style:s.swatch},m.createElement(lc,{color:n,onClick:o,onHover:a,focusStyle:i}))};const kKt=GD.handleHover($Kt);var dA=function(e){var r=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,i=e.triangle,s=e.styles,l=s===void 0?{}:s,d=e.className,h=d===void 0?"":d,u=Et(uo({default:{card:{width:r,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)"}}},l),{"hide-triangle":i==="hide","top-left-triangle":i==="top-left","top-right-triangle":i==="top-right","bottom-left-triangle":i==="bottom-left","bottom-right-triangle":i==="bottom-right"}),f=function(y,b){return o({hex:y,source:"hex"},b)};return m.createElement("div",{style:u.card,className:"github-picker "+h},m.createElement("div",{style:u.triangleShadow}),m.createElement("div",{style:u.triangle}),cc(n,function(g){return m.createElement(kKt,{color:g,key:g,onClick:f,onSwatchHover:a})}))};dA.propTypes={width:We.oneOfType([We.string,We.number]),colors:We.arrayOf(We.string),triangle:We.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:We.object};dA.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};po(dA);var EKt=function(e){var r=e.direction,n=Et({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:r==="vertical"});return m.createElement("div",{style:n.picker})},TKt=Object.assign||function(t){for(var e=1;e.5});return m.createElement("div",{style:n.picker})},IKt=function(){var e=Et({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 m.createElement("div",{style:e.pointer},m.createElement("div",{style:e.left},m.createElement("div",{style:e.leftInside})),m.createElement("div",{style:e.right},m.createElement("div",{style:e.rightInside})))},OB=function(e){var r=e.onClick,n=e.label,o=e.children,a=e.active,i=Et({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:a});return m.createElement("div",{style:i.button,onClick:r},n||o)},MKt=function(e){var r=e.rgb,n=e.currentColor,o=Et({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.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 m.createElement("div",null,m.createElement("div",{style:o.label},"new"),m.createElement("div",{style:o.swatches},m.createElement("div",{style:o.new}),m.createElement("div",{style:o.current})),m.createElement("div",{style:o.label},"current"))},PKt=function(){function t(e,r){for(var n=0;n100&&(h.a=100),h.a/=100,r({h:o.h,s:o.s,l:o.l,a:h.a,source:"rgb"},u))};return m.createElement("div",{style:s.fields,className:"flexbox-fix"},m.createElement("div",{style:s.double},m.createElement(zt,{style:{input:s.input,label:s.label},label:"hex",value:a.replace("#",""),onChange:l})),m.createElement("div",{style:s.single},m.createElement(zt,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.single},m.createElement(zt,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.single},m.createElement(zt,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.alpha},m.createElement(zt,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:l,dragLabel:"true",dragMax:"100"})))},zKt=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(i,d)&&(l[d]=i[d]);return l}var a=24;return Hg.default=function(i){var s=i.fill,l=s===void 0?"currentColor":s,d=i.width,h=d===void 0?a:d,u=i.height,f=u===void 0?a:u,g=i.style,y=g===void 0?{}:g,b=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:l,width:h,height:f},y)},b),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},Hg}var UKt=HKt();const VKt=so(UKt);var qKt=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.first,s=e.last,l=e.active,d=Et({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:rA(r),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:i,last:s,active:l,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return m.createElement(lc,{color:r,style:d.color,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},m.createElement("div",{style:d.check},m.createElement(VKt,null)))},GKt=function(e){var r=e.onClick,n=e.onSwatchHover,o=e.group,a=e.active,i=Et({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return m.createElement("div",{style:i.group},cc(o,function(s,l){return m.createElement(qKt,{key:s,color:s,active:s.toLowerCase()===a,first:l===0,last:l===o.length-1,onClick:r,onSwatchHover:n})}))},mA=function(e){var r=e.width,n=e.height,o=e.onChange,a=e.onSwatchHover,i=e.colors,s=e.hex,l=e.styles,d=l===void 0?{}:l,h=e.className,u=h===void 0?"":h,f=Et(uo({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},d)),g=function(b,x){return o({hex:b,source:"hex"},x)};return m.createElement("div",{style:f.picker,className:"swatches-picker "+u},m.createElement(Hf,null,m.createElement("div",{style:f.overflow},m.createElement("div",{style:f.body},cc(i,function(y){return m.createElement(GKt,{key:y.toString(),group:y,active:s,onClick:g,onSwatchHover:a})}),m.createElement("div",{style:f.clear})))))};mA.propTypes={width:We.oneOfType([We.string,We.number]),height:We.oneOfType([We.string,We.number]),colors:We.arrayOf(We.arrayOf(We.string)),styles:We.object};mA.defaultProps={width:320,height:240,colors:[[Td[900],Td[700],Td[500],Td[300],Td[100]],[Od[900],Od[700],Od[500],Od[300],Od[100]],[Dd[900],Dd[700],Dd[500],Dd[300],Dd[100]],[Ad[900],Ad[700],Ad[500],Ad[300],Ad[100]],[Id[900],Id[700],Id[500],Id[300],Id[100]],[Md[900],Md[700],Md[500],Md[300],Md[100]],[Pd[900],Pd[700],Pd[500],Pd[300],Pd[100]],[Nd[900],Nd[700],Nd[500],Nd[300],Nd[100]],[Rd[900],Rd[700],Rd[500],Rd[300],Rd[100]],["#194D33",xh[700],xh[500],xh[300],xh[100]],[jd[900],jd[700],jd[500],jd[300],jd[100]],[Ld[900],Ld[700],Ld[500],Ld[300],Ld[100]],[zd[900],zd[700],zd[500],zd[300],zd[100]],[Fd[900],Fd[700],Fd[500],Fd[300],Fd[100]],[Bd[900],Bd[700],Bd[500],Bd[300],Bd[100]],[Wd[900],Wd[700],Wd[500],Wd[300],Wd[100]],[Hd[900],Hd[700],Hd[500],Hd[300],Hd[100]],[Ud[900],Ud[700],Ud[500],Ud[300],Ud[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};po(mA);var gA=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,i=e.width,s=e.triangle,l=e.styles,d=l===void 0?{}:l,h=e.className,u=h===void 0?"":h,f=Et(uo({default:{card:{width:i,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"}}},d),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),g=function(b,x){Gs(b)&&r({hex:b,source:"hex"},x)};return m.createElement("div",{style:f.card,className:"twitter-picker "+u},m.createElement("div",{style:f.triangleShadow}),m.createElement("div",{style:f.triangle}),m.createElement("div",{style:f.body},cc(a,function(y,b){return m.createElement(lc,{key:b,color:y,hex:y,style:f.swatch,onClick:g,onHover:n,focusStyle:{boxShadow:"0 0 4px "+y}})}),m.createElement("div",{style:f.hash},"#"),m.createElement(zt,{label:null,style:{input:f.input},value:o.replace("#",""),onChange:g}),m.createElement("div",{style:f.clear})))};gA.propTypes={width:We.oneOfType([We.string,We.number]),triangle:We.oneOf(["hide","top-left","top-right"]),colors:We.arrayOf(We.string),styles:We.object};gA.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};po(gA);var vA=function(e){var r=Et({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 m.createElement("div",{style:r.picker})};vA.propTypes={hsl:We.shape({h:We.number,s:We.number,l:We.number,a:We.number})};vA.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var yA=function(e){var r=Et({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 m.createElement("div",{style:r.picker})};yA.propTypes={hsl:We.shape({h:We.number,s:We.number,l:We.number,a:We.number})};yA.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var XKt=function(e){var r=e.onChange,n=e.rgb,o=e.hsl,a=e.hex,i=e.hsv,s=function(g,y){if(g.hex)Gs(g.hex)&&r({hex:g.hex,source:"hex"},y);else if(g.rgb){var b=g.rgb.split(",");Ek(g.rgb,"rgb")&&r({r:b[0],g:b[1],b:b[2],a:1,source:"rgb"},y)}else if(g.hsv){var x=g.hsv.split(",");Ek(g.hsv,"hsv")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),x[1]==1?x[1]=.01:x[2]==1&&(x[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsv"},y))}else if(g.hsl){var S=g.hsl.split(",");Ek(g.hsl,"hsl")&&(S[2]=S[2].replace("%",""),S[1]=S[1].replace("%",""),S[0]=S[0].replace("°",""),u[1]==1?u[1]=.01:u[2]==1&&(u[2]=.01),r({h:Number(S[0]),s:Number(S[1]),v:Number(S[2]),source:"hsl"},y))}},l=Et({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"}}}),d=n.r+", "+n.g+", "+n.b,h=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.l*100)+"%",u=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.v*100)+"%";return m.createElement("div",{style:l.wrap,className:"flexbox-fix"},m.createElement("div",{style:l.fields},m.createElement("div",{style:l.double},m.createElement(zt,{style:{input:l.input,label:l.label},label:"hex",value:a,onChange:s})),m.createElement("div",{style:l.column},m.createElement("div",{style:l.single},m.createElement(zt,{style:{input:l.input2,label:l.label2},label:"rgb",value:d,onChange:s})),m.createElement("div",{style:l.single},m.createElement(zt,{style:{input:l.input2,label:l.label2},label:"hsv",value:u,onChange:s})),m.createElement("div",{style:l.single},m.createElement(zt,{style:{input:l.input2,label:l.label2},label:"hsl",value:h,onChange:s})))))},_A=function(e){var r=e.width,n=e.onChange,o=e.rgb,a=e.hsl,i=e.hsv,s=e.hex,l=e.header,d=e.styles,h=d===void 0?{}:d,u=e.className,f=u===void 0?"":u,g=Et(uo({default:{picker:{width:r,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("+o.r+", "+o.g+", "+o.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"}}},h));return m.createElement("div",{style:g.picker,className:"google-picker "+f},m.createElement("div",{style:g.head},l),m.createElement("div",{style:g.swatch}),m.createElement("div",{style:g.saturation},m.createElement(w_,{hsl:a,hsv:i,pointer:vA,onChange:n})),m.createElement("div",{style:g.body},m.createElement("div",{style:g.controls,className:"flexbox-fix"},m.createElement("div",{style:g.hue},m.createElement(Bu,{style:g.Hue,hsl:a,radius:"4px",pointer:yA,onChange:n}))),m.createElement(XKt,{rgb:o,hsl:a,hex:s,hsv:i,onChange:n})))};_A.propTypes={width:We.oneOfType([We.string,We.number]),styles:We.object,header:We.string};_A.defaultProps={width:652,styles:{},header:"Color picker"};po(_A);const Wn={fieldContainer:{paddingTop:10,whiteSpace:"nowrap"},checkBoxLabel:{fontSize:"0.8rem",whiteSpace:"break-spaces"},objectContainer:{display:"flex",alignItems:"center"},objectField:{flex:1},objectButton:{marginTop:"auto",paddingLeft:0,maxHeight:29,height:29},sliderContainer:{position:"relative"},sliderLabel:{position:"absolute",top:0,left:0,fontSize:"small"},sliderRoot:{paddingBottom:0,paddingTop:16},selectIcon:{paddingRight:4},tooltip:{pointerEvents:"none"}},Dt=t=>{var r;const e=P.t(t.label);return w.jsx("div",{style:{...t.fullWidth?{width:"100%"}:void 0,...((r=t.styles)==null?void 0:r.fieldContainer)||Wn.fieldContainer,...t.style},children:w.jsx(Zr,{title:t.tooltip?P.t(t.tooltip):null,slotProps:{popper:{sx:Wn.tooltip}},children:w.jsxs(_a,{fullWidth:t.fullWidth,style:{minWidth:t.minWidth||200,width:t.width},variant:"standard",children:[w.jsx($l,{shrink:!0,children:e}),w.jsx(Bn,{fullWidth:t.fullWidth,variant:"standard",disabled:!!t.disabled,label:e,style:{color:t.colors&&t.colors[t.value]||void 0},onChange:n=>t.updateValue(n.target.value),value:t.value||"",renderValue:t.renderValue,displayEmpty:!0,children:t.options?Object.keys(t.options).map(n=>t.options[n]===void 0?null:w.jsxs(Xt,{value:n,style:{color:t.colors&&t.colors[n]||void 0},children:[t.icons&&t.icons[n]?w.jsx("span",{style:Wn.selectIcon,children:t.icons[n]}):null,t.noTranslate?t.options[n]:t.options[n]!==""&&t.options[n]!==null&&t.options[n]!==void 0?t.options[n].startsWith("-")?`-${P.t(t.options[n].substring(1))}`:P.t(t.options[n]):""]},n)):null})]})})})},kn=t=>{var e;return w.jsx("div",{style:{...t.fullWidth?{width:"100%"}:void 0,...((e=t.styles)==null?void 0:e.fieldContainer)||Wn.fieldContainer},children:w.jsx(St,{style:{paddingTop:10},label:w.jsx("span",{style:Wn.checkBoxLabel,children:P.t(t.label)}),control:w.jsx(yr,{disabled:!!t.disabled,onChange:r=>t.updateValue(r.target.checked),checked:t.value||!1})})})},Ln=t=>{var e;return w.jsx("div",{style:{...t.fullWidth?{width:"100%"}:void 0,...((e=t.styles)==null?void 0:e.fieldContainer)||Wn.fieldContainer},children:w.jsx(Ht,{variant:"standard",disabled:!!t.disabled,fullWidth:!0,style:{minWidth:t.minWidth},label:P.t(t.label),onChange:r=>t.updateValue(r.target.value),value:t.value||"",type:"text",title:t.tooltip||"",slotProps:{inputLabel:{shrink:!0},input:{startAdornment:!t.disabled&&t.helperLink?w.jsx(Ie,{size:"small",onClick:()=>{typeof t.helperLink=="function"?t.helperLink():window.open(t.helperLink,"_blank")},children:w.jsx(GH,{})}):void 0,endAdornment:!t.disabled&&t.value?w.jsx(Ie,{size:"small",onClick:()=>t.updateValue(""),children:w.jsx(Ar,{})}):void 0}}})})},Er=t=>{var e;return w.jsx("div",{style:{...t.fullWidth?{width:"100%"}:void 0,...((e=t.styles)==null?void 0:e.fieldContainer)||Wn.fieldContainer},children:w.jsx(Ht,{variant:"standard",disabled:!!t.disabled,fullWidth:t.fullWidth,style:{width:t.width||"100%"},label:P.t(t.label),onChange:r=>t.updateValue(parseInt(r.target.value)),value:t.value||"",type:"number",title:t.tooltip||"",slotProps:{inputLabel:{shrink:!0},htmlInput:{min:t.min,max:t.max}}})})},ty=t=>{var e;return w.jsx("div",{style:{...t.fullWidth?{width:"100%"}:void 0,...((e=t.styles)==null?void 0:e.fieldContainer)||Wn.fieldContainer},children:w.jsx(Ht,{variant:"standard",type:"datetime-local",label:P.t(t.label),fullWidth:t.fullWidth,slotProps:{inputLabel:{shrink:!0}},onChange:r=>{const n=r.target.value.split("T");t.updateValue(n[0],n[1])},value:t.date?`${t.date}T${t.time}`:""})})},Jd=t=>{var n,o,a;const[e,r]=A.useState(!1);return w.jsxs("div",{style:{...t.fullWidth?{width:"100%"}:void 0,...((n=t.styles)==null?void 0:n.fieldContainer)||Wn.fieldContainer,width:t.width,minWidth:t.minWidth},children:[w.jsxs("div",{style:{...t.fullWidth?{width:"100%"}:void 0,...((o=t.styles)==null?void 0:o.objectContainer)||Wn.objectContainer},children:[w.jsx(Ht,{variant:"standard",disabled:!!t.disabled,style:(a=t.styles)==null?void 0:a.objectField,label:P.t(t.label),fullWidth:!0,ref:t.ref,slotProps:{inputLabel:{shrink:!0},input:{endAdornment:!t.disabled&&t.value?w.jsx(Ie,{size:"small",onClick:()=>t.updateValue(""),children:w.jsx(Ar,{})}):void 0}},value:t.value||"",onChange:i=>t.updateValue(i.target.value)}),w.jsx(Ie,{disabled:!!t.disabled,size:"small",onClick:()=>r(!0),style:Wn.objectButton,children:w.jsx(jve,{})})]}),e?w.jsx(OV,{theme:t.theme,imagePrefix:"../..",socket:t.socket,dialogName:t.name,customFilter:t.customFilter,title:`${P.t("Select for")} ${t.label}`,selected:t.value,onOk:i=>{Array.isArray(i)?t.updateValue(i[0]||""):t.updateValue(i),r(!1)},onClose:()=>r(!1)},`selectDialog_${t.name}`):null]})},$u=t=>{var e,r,n,o;return w.jsxs("div",{style:{...((e=t.styles)==null?void 0:e.fieldContainer)||Wn.fieldContainer,...((r=t.styles)==null?void 0:r.sliderContainer)||Wn.sliderContainer},children:[w.jsx(Ka,{style:((n=t.styles)==null?void 0:n.sliderLabel)||Wn.sliderLabel,children:t.label}),w.jsx(Rue,{disabled:!!t.disabled,style:((o=t.styles)==null?void 0:o.sliderRoot)||Wn.sliderRoot,value:parseFloat(t.value||t.min)||0,step:parseFloat(t.step)||(parseFloat(t.max)||1)-(parseFloat(t.min)||0)/10||.1,marks:!0,onChange:(a,i)=>t.updateValue(i),min:parseFloat(t.min)||0,max:parseFloat(t.max)||1,valueLabelDisplay:"auto"})]})};function vf(t){return Pr({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z"},child:[]}]})(t)}function yf(t){return Pr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"},child:[]}]})(t)}function JKt(t){return Pr({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M48 0C21.53 0 0 21.53 0 48v64c0 8.84 7.16 16 16 16h80V48C96 21.53 74.47 0 48 0zm208 412.57V352h288V96c0-52.94-43.06-96-96-96H111.59C121.74 13.41 128 29.92 128 48v368c0 38.87 34.65 69.65 74.75 63.12C234.22 474 256 444.46 256 412.57zM288 384v32c0 52.93-43.06 96-96 96h336c61.86 0 112-50.14 112-112 0-8.84-7.16-16-16-16H288z"},child:[]}]})(t)}function YKt(t){return Pr({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M476 480H324a36 36 0 0 1-36-36V96h-96v156a36 36 0 0 1-36 36H16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h112V68a36 36 0 0 1 36-36h152a36 36 0 0 1 36 36v348h96V260a36 36 0 0 1 36-36h140a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H512v156a36 36 0 0 1-36 36z"},child:[]}]})(t)}function KKt(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M4 11H8V13H4V11Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M10 11H14V13H10V11Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M20 11H16V13H20V11Z",fill:"currentColor"},child:[]}]})(t)}function ZKt(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M3 11H1V13H3V11Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M7 11H5V13H7V11Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M9 11H11V13H9V11Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M15 11H13V13H15V11Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M17 11H19V13H17V11Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M23 11H21V13H23V11Z",fill:"currentColor"},child:[]}]})(t)}function QKt(t){return Pr({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M2 11H22V13H2V11Z",fill:"currentColor"},child:[]}]})(t)}const AB={dialogSlider:{padding:"20px 0px"}};class eZt extends m.Component{render(){return w.jsxs(or,{open:this.props.open,onClose:this.props.onClose,children:[w.jsxs(_r,{children:[P.t("Line")," ",this.props.index+1,this.props.line.name?` - ${this.props.line.name}`:""," ",P.t("edit")]}),w.jsxs(Wr,{children:[w.jsx(Dt,{value:this.props.line.lineStyle,updateValue:e=>{const r=JSON.parse(JSON.stringify(this.props.line));r.lineStyle=e,this.props.updateLine(this.props.index,r)},label:"Line style",options:{solid:"solid",dashed:"dashed",dotted:"dotted"},icons:{solid:w.jsx(QKt,{}),dashed:w.jsx(KKt,{}),dotted:w.jsx(ZKt,{})}}),w.jsx("div",{style:AB.dialogSlider,children:w.jsx($u,{value:this.props.line.fill,updateValue:e=>{const r=JSON.parse(JSON.stringify(this.props.line));r.fill=e,e<.01&&!parseFloat(r.thickness)&&(r.thickness=1),this.props.updateLine(this.props.index,r)},min:0,max:1,step:.1,label:"Fill (from 0 to 1)"})}),w.jsx("div",{style:AB.dialogSlider,children:w.jsx($u,{value:this.props.line.thickness,updateValue:e=>{const r=JSON.parse(JSON.stringify(this.props.line));r.thickness=e,this.props.updateLine(this.props.index,r)},label:"ØL - Line thickness",min:this.props.line.fill>.01?0:1,max:10,step:1})})]}),w.jsx(pr,{children:w.jsx(tt,{variant:"contained",color:"primary",onClick:this.props.onClose,startIcon:w.jsx(wo,{}),children:P.t("Close")})})]})}}const Ok={stateValueEdit:{marginBottom:10}};class tZt extends m.Component{constructor(r){super(r);X(this,"originalStates");X(this,"statesBeforeEdit");this.originalStates=JSON.parse(r.originalStates),this.statesBeforeEdit=JSON.stringify(r.withStates);const n=r.withStates?JSON.parse(JSON.stringify(r.withStates)):{};r.isBoolean&&(n.true&&(n[1]=n.true,delete n.true),n.false&&(n[0]=n.false,delete n.false),n[1]=n[1]||"true",n[0]=n[0]||"false"),this.state={withStates:n,disabledStates:this.props.withStates?JSON.stringify(r.withStates):r.originalStates,showAddStateDialog:!1,newValue:"",newTextValue:""}}renderAddStateDialog(){return this.state.showAddStateDialog?w.jsxs(or,{open:!0,onClose:()=>this.setState({showAddStateDialog:!1}),children:[w.jsx(_r,{children:P.t("Add new state name")}),w.jsxs(Wr,{children:[w.jsx(Ht,{style:Ok.stateValueEdit,variant:"standard",label:P.t("State value"),value:this.state.newValue,onChange:r=>this.setState({newValue:r.target.value})}),w.jsx("br",{}),w.jsx(Ht,{style:Ok.stateValueEdit,variant:"standard",label:P.t("State value text"),value:this.state.newTextValue,onChange:r=>this.setState({newTextValue:r.target.value}),onKeyUp:r=>{if(r.key==="Enter"&&this.state.newValue&&this.state.withStates[this.state.newValue]===void 0){const n=JSON.parse(JSON.stringify(this.state.withStates));n[this.state.newValue]=this.state.newTextValue,this.setState({showAddStateDialog:null,withStates:n})}}})]}),w.jsxs(pr,{children:[w.jsx(tt,{variant:"contained",color:"primary",autoFocus:!0,disabled:!this.state.newValue||this.state.withStates[this.state.newValue]!==void 0,onClick:()=>{const r=JSON.parse(JSON.stringify(this.state.withStates));r[this.state.newValue]=this.state.newTextValue,this.setState({showAddStateDialog:null,withStates:r})},startIcon:w.jsx(Il,{}),children:P.t("Add")}),w.jsx(tt,{variant:"contained",color:"grey",onClick:()=>this.setState({showAddStateDialog:!1}),startIcon:w.jsx(wo,{}),children:P.t("Cancel")})]})]}):null}render(){return w.jsxs(w.Fragment,{children:[this.renderAddStateDialog(),w.jsxs(or,{open:!0,onClose:()=>this.props.onClose(),children:[w.jsx(_r,{children:P.t("Edit state names")}),w.jsxs(Wr,{children:[w.jsx(St,{control:w.jsx(ih,{checked:this.state.withStates!==!1,onChange:()=>{this.state.withStates===!1?this.setState({withStates:JSON.parse(this.state.disabledStates)}):this.setState({withStates:!1,disabledStates:JSON.stringify(this.state.withStates)})}}),label:P.t("Use state names")}),this.state.withStates!==!1?w.jsxs(w.Fragment,{children:[w.jsx("br",{}),this.props.isBoolean?null:w.jsx(Ie,{onClick:()=>{const r=Object.keys(this.state.withStates).sort();let n="";window.isFinite(parseInt(r[r.length-1],10))&&(n=(parseInt(r[r.length-1],10)+1).toString()),this.setState({showAddStateDialog:!0,newValue:n,newTextValue:""})},title:P.t("Add new value"),children:w.jsx(Il,{})}),w.jsx("br",{}),Object.keys(this.state.withStates).map(r=>w.jsxs("div",{children:[w.jsx(Ht,{style:Ok.stateValueEdit,variant:"standard",label:this.props.isBoolean?r==="1"?P.t("TRUE"):r==="0"?P.t("FALSE"):r:r.toString(),value:this.state.withStates[r],onChange:n=>this.setState({withStates:{...this.state.withStates,[r]:n.target.value}}),slotProps:{input:{endAdornment:this.state.withStates[r]?w.jsx(Ie,{size:"small",onClick:()=>this.setState({withStates:{...this.state.withStates,[r]:""}}),children:w.jsx(wo,{})}):void 0}}}),!this.props.isBoolean&&this.originalStates[r]===void 0?w.jsx(Ie,{onClick:()=>{const n={...this.state.withStates};delete n[r],this.setState({withStates:n})},title:P.t("Delete text value"),children:w.jsx(yu,{})}):null]},r))]}):null]}),w.jsxs(pr,{children:[w.jsx(tt,{variant:"contained",color:"primary",autoFocus:!0,disabled:this.statesBeforeEdit===JSON.stringify(this.state.withStates),onClick:()=>this.props.onClose(this.state.withStates),startIcon:w.jsx(sh,{}),children:P.t("Apply")}),w.jsx(tt,{variant:"contained",color:"grey",onClick:()=>this.props.onClose(),startIcon:w.jsx(wo,{}),children:P.t("Close")})]})]})]})}}const jt={instance:100,id:100,chartType:120,dataType:110,color:100,name:150,buttons:166},Ct={card:t=>({borderStyle:"dashed",borderWidth:1,mb:"8px",p:"8px",borderColor:t.palette.grey[600],overflow:"initial"}),cardPaste:t=>({borderColor:t.palette.mode==="dark"?t.palette.grey[400]:t.palette.grey[800],backgroundColor:"rgba(0,0,0,0)",opacity:.8}),cardContent:{p:0,m:0,"&:last-child":{p:0}},shortFields:t=>({display:"flex","& > div":{display:"inline-flex",pr:"20px",width:200},flexWrap:"wrap",alignItems:"center",position:"relative",pb:"16px",borderBottom:`1px dotted ${t.palette.grey[400]}`}),lineClosed:{display:"flex",gap:4,alignItems:"center"},title:{width:"inherit",position:"absolute",whiteSpace:"nowrap",right:0,fontSize:48,opacity:.1,lineHeight:"48px",padding:0,marginTop:20,marginLeft:0,marginRight:0,marginBottom:0,paddingRight:10},shortFieldsLast:{borderBottom:"0px",paddingBottom:0},shortInstanceField:{display:"inline-block",minWidth:jt.instance,paddingTop:0,verticalAlign:"top"},shortIdField:{display:"inline-block",minWidth:jt.id,paddingTop:0,verticalAlign:"top"},shortDataTypeField:{display:"inline-block",minWidth:jt.dataType,paddingTop:0,verticalAlign:"top"},shortChartTypeField:{display:"inline-block",minWidth:jt.chartType,paddingTop:0,verticalAlign:"top"},shortColorField:{display:"inline-block",minWidth:jt.color,width:jt.color,paddingTop:0,verticalAlign:"top"},shortNameField:{display:"inline-block",minWidth:jt.name,paddingTop:0,verticalAlign:"top"},shortButtonsField:{display:"inline-block",minWidth:jt.buttons,paddingTop:0,verticalAlign:"top"},editButton:{},deleteButton:{},editButtonFull:{},deleteButtonFull:{},copyButtonFull:{},fullWidth:{width:"100%",minWidth:200},paste:{opacity:.3},emptyDrag:{display:"inline-block",width:16},chapterMain:{backgroundColor:"rgba(3,104,255,0.1)"},chapterTexts:{backgroundColor:"rgba(101,253,0,0.1)"},chapterLine:{backgroundColor:"rgba(255,20,0,0.1)"},chapterAxis:{backgroundColor:"rgba(179,2,255,0.1)"},chapterOther:{backgroundColor:"rgba(255,146,0,0.1)"},states:{verticalAlign:"top",marginTop:12},state:{textAlign:"center",marginRight:8},stateValue:{fontSize:10},stateText:{fontSize:12,fontStyle:"italic",display:"block",whiteSpace:"nowrap"}};class IB extends m.Component{constructor(r){super(r);X(this,"onIdChanged",async r=>{var o,a,i,s,l;const n=JSON.parse(JSON.stringify(this.props.line));if(n.id!==r){n.id=r;try{const h=r?await this.props.socket.getObject(r):null;let u;if((o=h==null?void 0:h.common)!=null&&o.name)u=ue.getObjectNameFromObj(h,null,{language:P.getLanguage()});else{const g=r.split(".");u=g.length?g[g.length-1]:""}(a=h==null?void 0:h.common)!=null&&a.unit&&(n.unit=h.common.unit),h!=null&&h.common&&(h.common.type==="boolean"||h.common.type==="number")&&(n.chartType="auto",delete n.aggregate);const f={isBoolean:((i=h==null?void 0:h.common)==null?void 0:i.type)==="boolean"};(s=h==null?void 0:h.common)!=null&&s.states&&typeof((l=h==null?void 0:h.common)==null?void 0:l.states)!="string"&&!Array.isArray(h.common.states)&&!h.common.unit?(f.withStates=h.common.states,f.originalStates=JSON.stringify(h.common.states),n.states?Object.assign(f.withStates,n.states):n.states===!1&&(f.withStates=!1)):(f.withStates=null,delete n.states),(f.isBoolean!==this.state.isBoolean||JSON.stringify(this.state.withStates)!==JSON.stringify(f.withStates)||this.state.originalStates!==f.originalStates)&&setTimeout(g=>this.setState(g),50,f),n.name=u,this.props.updateLine(this.props.index,n);return}catch(h){console.error(h)}const d=r.split(".");n.name=d.length?d[d.length-1]:"",this.props.updateLine(this.props.index,n)}});X(this,"showConvertHelp",()=>this.setState({showConvertHelp:!0}));this.state={width:this.props.width,dialogOpen:!1,showConvertHelp:!1,isBoolean:!1,withStates:null,color:this.props.line.color||""},this.props.line.id&&this.props.socket.getObject(this.props.line.id).then(n=>{var a,i;let o=null;((a=n==null?void 0:n.common)==null?void 0:a.type)==="boolean"&&(o={isBoolean:!0}),(i=n==null?void 0:n.common)!=null&&i.states&&typeof n.common.states!="string"&&!Array.isArray(n.common.states)&&!n.common.unit&&(o=o||{},o.withStates=n.common.states,o.originalStates=JSON.stringify(n.common.states),this.props.line.states?Object.assign(o.withStates,this.props.line.states):this.props.line.states===!1&&(o.withStates=!1)),o&&this.setState(o)}).catch(()=>{})}static getDerivedStateFromProps(r,n){return r.width!==n.width?{width:r.width}:null}renderClosedLine(){const r={},n=(this.props.width||1024)-32-40-20,o=4;n>=jt.instance+jt.id+jt.chartType+jt.dataType+jt.color+jt.name+jt.buttons+o*6?(r.chartType=!0,r.dataType=!0,r.color=!0,r.name=!0):n>=jt.instance+jt.id+jt.chartType+jt.dataType+jt.color+jt.buttons+o*5?(r.chartType=!0,r.dataType=!0,r.color=!0):n>=jt.instance+jt.id+jt.chartType+jt.dataType+jt.buttons+o*4?(r.chartType=!0,r.dataType=!0):n>=jt.instance+jt.id+jt.chartType+jt.buttons+o*3&&(r.chartType=!0);const a=this.props.presetData.l.find(s=>s.chartType==="bar"||s.chartType==="polar"),i={minmax:"minmax",average:"average",min:"min",max:"max",total:"total",count:"count",onchange:"raw",percentile:"percentile",integral:"integral",current:void 0,none:void 0};return a&&(delete i.minmax,this.props.presetData.l.find(s=>s.chartType==="polar")&&(i.current="current")),w.jsxs("div",{style:Ct.lineClosed,children:[this.props.provided?w.jsx("span",{title:P.t("Drag me"),style:{marginTop:4},...this.props.provided.dragHandleProps,children:w.jsx(HE,{})}):w.jsx("div",{style:Ct.emptyDrag}),this.props.onPaste?w.jsx(Ie,{title:P.t("Paste"),onClick:()=>this.props.onPaste(),children:w.jsx(uH,{})}):w.jsx(Ie,{title:P.t("Edit"),onClick:()=>this.props.lineOpenToggle(this.props.index),children:w.jsx(yf,{})}),w.jsx(Dt,{disabled:!!this.props.onPaste,value:this.props.line.instance||"",updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.instance=s,this.props.updateLine(this.props.index,l)},label:"Source",noTranslate:!0,options:(()=>{const s={"":P.t("standard")};return this.props.instances.forEach(l=>s[l._id]=l._id.replace("system.adapter.","")),s.json="JSON",s[this.props.line.instance]||(s[this.props.line.instance]=this.props.line.instance.replace("system.adapter.","")),s})(),minWidth:jt.instance,styles:{fieldContainer:{...Ct.shortInstanceField,...this.props.onPaste?Ct.paste:void 0,marginTop:2}}}),w.jsx(Jd,{disabled:!!this.props.onPaste,value:this.props.line.id,updateValue:this.onIdChanged,theme:this.props.theme,name:"id",label:"ID",customFilter:this.props.line.instance!=="json"?{common:{custom:this.props.line.instance?this.props.line.instance.replace("system.adapter.",""):this.props.systemConfig.common.defaultHistory||!0}}:null,styles:{fieldContainer:{...Ct.shortIdField,...this.props.onPaste?Ct.paste:void 0,flexGrow:1}},socket:this.props.socket}),r.chartType?w.jsx(Dt,{disabled:!!this.props.onPaste,value:this.props.line.chartType,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.chartType=s,this.props.updateLine(this.props.index,l)},minWidth:jt.chartType,label:"Chart type",options:{auto:"Auto",line:"Line",bar:"Bar",polar:"Polar",scatterplot:"Scatter plot",steps:"Steps",stepsStart:"Steps on start",spline:"Spline"},styles:{fieldContainer:{...Ct.shortChartTypeField,...this.props.onPaste?Ct.paste:void 0,marginTop:2}}}):null,this.props.line.instance!=="json"&&r.dataType&&this.props.line.chartType!=="auto"?w.jsx(Dt,{disabled:!!this.props.onPaste,value:this.props.line.aggregate,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.aggregate=s,s==="percentile"&&(l.percentile===void 0||l.percentile<0||l.percentile>100)?l.percentile=50:s==="integral"&&(l.integralUnit=l.integralUnit||60,l.integralInterpolation=l.integralInterpolation||"none"),this.props.updateLine(this.props.index,l)},minWidth:jt.dataType,label:"Type",options:i,styles:{fieldContainer:{...Ct.shortDataTypeField,...this.props.onPaste?Ct.paste:void 0}}}):null,r.color?this.renderColorField(jt.color,{...Ct.shortColorField,...this.props.onPaste?Ct.paste:void 0},!0):null,r.name?w.jsx(Ln,{disabled:!!this.props.onPaste,width:jt.name,value:this.props.line.name,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.name=s,this.props.updateLine(this.props.index,l)},label:"Name",styles:{fieldContainer:{...Ct.shortNameField,...this.props.onPaste?Ct.paste:void 0}}}):null,!this.props.onPaste&&this.props.line.chartType!=="scatterplot"&&this.props.line.chartType!=="bar"&&(!this.props.index||this.props.line.chartType!=="polar")?w.jsx(Ie,{style:Ct.editButton,"aria-label":"Edit",title:P.t("Edit"),onClick:()=>this.setState({dialogOpen:!0}),children:w.jsx(r1,{})}):null,w.jsx(Ie,{style:Ct.deleteButton,"aria-label":"Delete",title:P.t("Delete"),onClick:()=>this.props.deleteLine(this.props.index),children:w.jsx(yu,{})}),w.jsx("div",{style:{width:30}})]})}renderColorField(r,n,o){let a=ue.isUseBright(this.props.line.color,null);a===null&&(a=void 0);const i=s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.color=s,this.props.updateLine(this.props.index,l)};return w.jsx("div",{style:n,children:w.jsx(Ht,{variant:"standard",disabled:!!this.props.onPaste,style:{minWidth:r,width:"calc(100% - 8px)"},label:P.t("Color"),value:this.props.line.color||"",onClick:()=>{this.props.onPaste||this.setState({color:this.props.line.color},()=>this.props.onSelectColor(this.state.color,s=>this.setState({color:s},()=>i(Ai.getColor(s,!0)))))},onChange:s=>{const l=s.target.value;this.setState({color:l},()=>i(l))},slotProps:{htmlInput:{style:{paddingLeft:o?0:8,backgroundColor:this.props.line.color,color:a?"#FFF":"#000"}},input:{endAdornment:this.props.line.color?w.jsx(Ie,{disabled:!!this.props.onPaste,size:"small",onClick:s=>{s.stopPropagation(),this.setState({color:""},()=>{i("")})},children:w.jsx(Ar,{})}):void 0},inputLabel:{shrink:!0}}})})}renderConvertHelp(){return this.state.showConvertHelp?w.jsxs(or,{open:!0,onClose:()=>this.setState({showConvertHelp:!1}),children:[w.jsx(Wr,{children:w.jsx(Ds,{children:P.t("convert_help")})}),w.jsx(pr,{children:w.jsx(tt,{variant:"contained",onClick:()=>this.setState({showConvertHelp:!1}),color:"primary",startIcon:w.jsx(wo,{}),children:P.t("Close")})})]}):null}renderStates(){return this.state.withStates===null?null:w.jsxs("div",{style:Ct.states,children:[this.state.withStates?Object.keys(this.state.withStates).map(r=>w.jsxs("div",{style:Ct.state,children:[w.jsx("span",{style:Ct.stateValue,children:r}),"↓",w.jsx("span",{style:Ct.stateText,children:this.state.withStates[r]})]},r)):w.jsx("div",{style:Ct.state,children:w.jsx("span",{style:Ct.stateText,children:P.t("Text values not used")})}),w.jsx(tt,{variant:"outlined",onClick:()=>this.setState({showStatesEdit:!0}),startIcon:w.jsx(r1,{}),title:P.t("Edit state names"),children:"..."}),this.state.showStatesEdit?w.jsx(tZt,{withStates:this.state.withStates,originalStates:this.state.originalStates,isBoolean:this.state.isBoolean,onClose:r=>{if(r!==void 0){this.setState({showStatesEdit:!1,withStates:JSON.parse(JSON.stringify(r))});const n=JSON.parse(JSON.stringify(this.props.line));if(r){const o=JSON.parse(JSON.stringify(r)),a=JSON.parse(this.state.originalStates);Object.keys(o).forEach(i=>{o[i]===a[i]&&delete o[i]}),n.states=o}else n.states=!1;this.props.updateLine(this.props.index,n)}else this.setState({showStatesEdit:!1})}}):null]})}renderOpenedLine(){const r={"":P.t("own axis")};for(let s=0;ss.chartType==="bar"||s.chartType==="polar"),o={auto:"Auto (Line or Steps)",line:"Line",bar:"Bar",polar:"Polar",scatterplot:"Scatter plot",steps:"Steps",stepsStart:"Steps on start",spline:"Spline"},a={minmax:"minmax",average:"average",min:"min",max:"max",total:"total",count:"count",onchange:"raw",percentile:"percentile",integral:"integral",current:void 0,none:void 0};n&&(delete a.minmax,this.props.presetData.l.find(s=>s.chartType==="polar")&&(a.current="current"));const i=this.props.line.commonYAxis===void 0;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{style:Ct.lineClosed,children:[this.props.provided?w.jsx("span",{title:P.t("Drag me"),...this.props.provided.dragHandleProps,children:w.jsx(HE,{})}):null,w.jsx(Ie,{title:P.t("Close"),onClick:()=>this.props.lineOpenToggle(this.props.index),children:w.jsx(vf,{})}),P.t("Line")," ",this.props.index+1,this.props.line.name?` - ${this.props.line.name}`:"",w.jsx("div",{style:{flexGrow:1}}),w.jsx(Ie,{style:Ct.copyButtonFull,"aria-label":"Copy",title:P.t("Copy"),onClick:()=>this.props.onCopy(this.props.line),children:w.jsx(dH,{})}),this.props.line.chartType!=="scatterplot"&&this.props.line.chartType!=="bar"&&(!this.props.index||this.props.line.chartType!=="polar")?w.jsx(Ie,{style:Ct.editButtonFull,"aria-label":"Edit",title:P.t("Edit"),onClick:()=>this.setState({dialogOpen:!0}),children:w.jsx(r1,{})}):null,w.jsx(Ie,{style:Ct.deleteButtonFull,"aria-label":"Delete",title:P.t("Delete"),onClick:()=>this.props.deleteLine(this.props.index),children:w.jsx(yu,{})}),w.jsx("div",{style:{width:30}})]}),w.jsxs(Re,{component:"div",sx:Ct.shortFields,style:{marginRight:30},children:[w.jsx(Dt,{value:this.props.line.instance,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.instance=s,this.props.updateLine(this.props.index,l)},label:"Source",noTranslate:!0,options:(()=>{const s={};return this.props.instances.forEach(l=>s[l._id]=l._id.replace("system.adapter.","")),s.json="JSON",s})()}),w.jsx(Jd,{theme:this.props.theme,value:this.props.line.id,styles:{objectContainer:Ct.fullWidth},updateValue:this.onIdChanged,name:"id",label:"ID",width:"calc(100% - 250px)",customFilter:this.props.line.instance!=="json"?{common:{custom:this.props.line.instance?this.props.line.instance.replace("system.adapter.",""):this.props.systemConfig.common.defaultHistory||!0}}:void 0,socket:this.props.socket})]}),w.jsxs(Re,{component:"div",sx:ue.getStyle(this.props.theme,Ct.shortFields,Ct.chapterMain),children:[w.jsx("p",{style:Ct.title,children:P.t("Main")}),!this.props.index||this.props.line.chartType!=="polar"?this.renderColorField():null,w.jsx(Dt,{value:this.props.line.chartType,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.chartType=s,this.props.updateLine(this.props.index,l)},label:"Chart type",options:o}),this.props.line.instance!=="json"&&this.props.line.chartType!=="auto"?w.jsx(Dt,{value:this.props.line.aggregate,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.aggregate=s,this.props.updateLine(this.props.index,l)},label:"Type",options:a}):null,this.props.line.chartType==="bar"?w.jsx(Dt,{value:this.props.line.postProcessing,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.postProcessing=s,this.props.updateLine(this.props.index,l)},label:"Processing",options:{"":"non-processed",diff:"difference"}}):null,this.props.line.aggregate==="percentile"?w.jsx($u,{value:this.props.line.percentile,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.percentile=s,this.props.updateLine(this.props.index,l)},step:5,min:0,max:100,label:"Percentile"}):null,this.props.line.aggregate==="integral"?w.jsx(Er,{value:this.props.line.integralUnit,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.integralUnit=s,this.props.updateLine(this.props.index,l)},label:"Integral unit",min:1,tooltip:P.t("In seconds")}):null,this.props.line.aggregate==="integral"?w.jsx(Dt,{value:this.props.line.integralInterpolation,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.integralInterpolation=s,this.props.updateLine(this.props.index,l)},label:"Interpolation method",options:{none:"none_no",linear:"linear"}}):null,this.props.line.chartType==="scatterplot"||this.props.line.points?w.jsx(Er,{value:this.props.line.symbolSize,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.symbolSize=s,this.props.updateLine(this.props.index,l)},label:"Point size",min:1}):null,this.props.line.chartType!=="scatterplot"&&this.props.line.chartType!=="bar"&&this.props.line.chartType!=="polar"?w.jsx(Er,{value:this.props.line.validTime,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.validTime=s,this.props.updateLine(this.props.index,l)},label:"Valid time (sec)",min:0,tooltip:P.t("If the current value is not older than X seconds, assume it is still the same.")}):null,this.props.presetData.legend?w.jsx(kn,{value:this.props.line.hide,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.hide=s,this.props.updateLine(this.props.index,l)},label:"Show only in legend"}):null,this.props.line.chartType!=="bar"&&this.props.line.chartType!=="polar"?w.jsx(kn,{value:this.props.line.noFuture,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.noFuture=s,this.props.updateLine(this.props.index,l)},label:"No future"}):null]}),w.jsxs(Re,{component:"div",sx:ue.getStyle(this.props.theme,Ct.shortFields,Ct.chapterTexts),children:[w.jsx("p",{style:Ct.title,children:P.t("Texts")}),w.jsx(Ln,{value:this.props.line.name,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.name=s,this.props.updateLine(this.props.index,l)},label:"Name"}),!this.state.isBoolean&&i?w.jsx(Ln,{value:this.props.line.unit,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.unit=s,this.props.updateLine(this.props.index,l)},label:"Unit"}):null,this.state.isBoolean&&this.state.withStates===null?w.jsx(Ln,{value:this.props.line.falseText,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.falseText=s,this.props.updateLine(this.props.index,l)},label:"Text by false"}):null,this.state.isBoolean&&this.state.withStates===null?w.jsx(Ln,{value:this.props.line.trueText,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.trueText=s,this.props.updateLine(this.props.index,l)},label:"Text by true"}):null,this.renderStates()]}),this.props.line.chartType!=="scatterplot"&&this.props.line.chartType!=="bar"&&(!this.props.index||this.props.line.chartType!=="polar")?w.jsxs(Re,{component:"div",sx:ue.getStyle(this.props.theme,Ct.shortFields,Ct.chapterLine),children:[w.jsx("p",{style:Ct.title,children:P.t("Line and area")}),w.jsx($u,{value:this.props.line.fill,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.fill=s,s<.01&&!parseFloat(l.thickness)&&(l.thickness=1),this.props.updateLine(this.props.index,l)},min:0,max:1,step:.1,label:"Fill (from 0 to 1)"}),w.jsx(kn,{value:this.props.line.points,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.points=s,this.props.updateLine(this.props.index,l)},label:"Show points"}),this.props.line.points?w.jsx(Er,{value:this.props.line.symbolSize,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.symbolSize=s,this.props.updateLine(this.props.index,l)},label:"Point size",min:1}):null,w.jsx(Er,{value:this.props.line.thickness,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.thickness=s,this.props.updateLine(this.props.index,l)},label:"ØL - Line thickness",min:this.props.line.fill>.01?0:1}),w.jsx(Er,{value:this.props.line.shadowsize,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.shadowsize=s,this.props.updateLine(this.props.index,l)},label:"ØS - Shadow size",min:0})]}):null,w.jsxs(Re,{component:"div",sx:ue.getStyle(this.props.theme,Ct.shortFields,Ct.chapterAxis),children:[w.jsx("p",{style:Ct.title,children:P.t("Axis")}),!this.props.index&&this.props.line.chartType!=="polar"?w.jsx(Dt,{value:this.props.line.xaxe,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.xaxe=s,this.props.updateLine(this.props.index,l)},label:"X Axis position",options:{"":"bottom",top:"top",off:"off"}}):null,!this.props.index&&this.props.line.chartType!=="polar"?w.jsx(Er,{value:this.props.line.xticks,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.xticks=s,this.props.updateLine(this.props.index,l)},label:"X-Axis ticks",min:1}):null,this.props.line.chartType!=="polar"?w.jsx(Dt,{value:this.props.line.offset===void 0?"0":this.props.line.offset.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));s?l.offset=s:delete l.offset,this.props.updateLine(this.props.index,l)},tooltip:P.t("This time offset will be added to the request by reading data from DB"),label:"X-Offset",options:{0:"0 seconds",10:"10 seconds",30:"30 seconds",60:"60 seconds",120:"2 minutes",180:"3 minutes",240:"4 minutes",300:"5 minutes",600:"10 minutes",900:"15 minutes",1800:"30 minutes",2700:"45 minutes",3600:"1 hour",7200:"2 hours",21600:"6 hours",43200:"12 hours",86400:"1 day",172800:"2 days",259200:"3 days",345600:"4 days",604800:"1 week",1209600:"2 weeks","1m":"1 month","2m":"2 months","3m":"3 months","6m":"6 months","1y":"1 year","2y":"2 years","-10":"-10 seconds","-30":"-30 seconds","-60":"-60 seconds","-120":"-2 minutes","-180":"-3 minutes","-240":"-4 minutes","-300":"-5 minutes","-600":"-10 minutes","-900":"-15 minutes","-1800":"-30 minutes","-2700":"-45 minutes","-3600":"-1 hour","-7200":"-2 hours","-21600":"-6 hours","-43200":"-12 hours","-86400":"-1 day","-172800":"-2 days","-259200":"-3 days","-345600":"-4 days","-604800":"-1 week","-1209600":"-2 weeks","-1m":"-1 month","-2m":"-2 months","-3m":"-3 months","-6m":"-6 months","-1y":"-1 year","-2y":"-2 years"}}):null,this.props.line.chartType!=="polar"?w.jsx(Er,{value:this.props.line.yOffset,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.yOffset=s,this.props.updateLine(this.props.index,l)},label:"Y-Offset"}):null,w.jsx("br",{}),this.props.line.chartType!=="polar"?w.jsx(Dt,{value:this.props.line.commonYAxis===void 0?"":this.props.line.commonYAxis.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.commonYAxis=s===""?void 0:parseInt(s,10),this.props.updateLine(this.props.index,l)},label:"Common Y Axis",noTranslate:!0,options:r}):null,this.props.line.chartType!=="polar"&&i?w.jsx(Dt,{value:this.props.line.yaxe,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.yaxe=s,this.props.updateLine(this.props.index,l)},label:"Y Axis position",options:{"":"",off:"off",left:"left",right:"right",leftColor:"left colored",rightColor:"right colored"}}):null,this.props.line.chartType!=="polar"&&i?w.jsx(Ln,{value:this.props.line.min===void 0?"":this.props.line.min.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.min=s,this.props.updateLine(this.props.index,l)},label:"Min"}):null,i?w.jsx(Ln,{value:this.props.line.max===void 0?"":this.props.line.max.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.max=s,this.props.updateLine(this.props.index,l)},label:"Max"}):null,this.props.line.chartType!=="polar"&&i?w.jsx(Er,{value:this.props.line.yticks,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.yticks=s,this.props.updateLine(this.props.index,l)},label:"Y-Axis ticks"}):null]}),w.jsxs(Re,{component:"div",sx:ue.getStyle(this.props.theme,Ct.shortFields,Ct.chapterOther),children:[w.jsx("p",{style:Ct.title,children:P.t("Others")}),w.jsx(Dt,{value:this.props.line.ignoreNull===void 0?"false":this.props.line.ignoreNull.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.ignoreNull=s==="true"?!0:s==="0"?0:!1,this.props.updateLine(this.props.index,l)},label:"NULL as",options:{false:"default",true:"ignore null values",0:"use 0 instead of null values"}}),w.jsx(Er,{value:this.props.line.afterComma,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.afterComma=s,this.props.updateLine(this.props.index,l)},label:"Digits after comma",min:0}),this.props.line.chartType!=="bar"?w.jsx(Dt,{value:this.props.line.lineStyle,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.lineStyle=s,this.props.updateLine(this.props.index,l)},label:"Line style",options:{solid:"solid",dashed:"dashed",dotted:"dotted"}}):null,w.jsx(Ln,{value:this.props.line.convert,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.line));l.convert=s,this.props.updateLine(this.props.index,l)},label:"Convert formula",helperLink:this.showConvertHelp})]})]})}render(){var r;return w.jsxs(JW,{sx:ue.getStyle(this.props.theme,Ct.card,this.props.onPaste&&Ct.cardPaste),style:{background:(r=this.props.snapshot)!=null&&r.isDragging?this.props.theme.palette.secondary.light:void 0},children:[w.jsxs(YW,{sx:Ct.cardContent,children:[this.props.opened&&!this.props.onPaste?this.renderOpenedLine():this.renderClosedLine(),w.jsx(eZt,{open:this.state.dialogOpen,onClose:()=>this.setState({dialogOpen:!1}),line:this.props.line,index:this.props.index,updateLine:(n,o)=>this.props.updateLine(n,o)})]}),this.renderConvertHelp()]})}}const Ft={lineId:100,upperValueOrId:150,lowerValueOrId:100,color:100,fill:100,text:150,buttons:70},Kr={card:t=>({borderStyle:"dashed",borderWidth:1,mb:"8px",p:"8px",borderColor:t.palette.grey[600],overflow:"initial"}),cardPaste:t=>({borderColor:t.palette.mode==="dark"?t.palette.grey[400]:t.palette.grey[800],backgroundColor:"rgba(0,0,0,0)",opacity:.8}),cardContent:{p:0,m:0,"&:last-child":{p:0}},shortFields:t=>({display:"block","& > div":{display:"inline-flex",pr:"20px",width:200},pb:"16px",borderBottom:`1px dotted ${t.palette.grey[400]}`}),shortFieldsLast:{borderBottom:0,paddingBottom:0,position:"relative"},shortLineIdField:{display:"inline-flex",minWidth:Ft.lineId,paddingTop:0,verticalAlign:"top",marginTop:2},shortUpperValueOrIdField:{display:"inline-flex",minWidth:Ft.upperValueOrId,paddingTop:0,verticalAlign:"top"},shortLowerValueOrIdField:{display:"inline-flex",minWidth:Ft.lowerValueOrId,paddingTop:0,verticalAlign:"top"},shortColorField:{display:"inline-flex",minWidth:Ft.color,paddingTop:0,verticalAlign:"top"},shortFillField:{display:"inline-flex",width:Ft.fill,paddingTop:0,verticalAlign:"top"},sliderRoot:{marginTop:10},shortTextField:{display:"inline-flex",minWidth:Ft.text,paddingTop:0,verticalAlign:"top"},shortButtonsField:{display:"inline-flex",minWidth:Ft.buttons,paddingTop:0,verticalAlign:"top"},lineClosed:{display:"inline-flex",flexFlow:"column wrap",overflow:"hidden",flexDirection:"row",flex:1},lineClosedContainer:{display:"flex",alignItems:"center",gap:4},deleteButton:{},deleteButtonFull:{},copyButtonFull:{},title:{width:"inherit",position:"absolute",whiteSpace:"nowrap",right:0,fontSize:48,opacity:.1,lineHeight:"48px",padding:0,marginTop:20,marginLeft:0,marginRight:0,marginBottom:0,paddingRight:40}};class MB extends m.Component{constructor(e){super(e),this.state={color:e.mark.color,textColor:e.mark.textColor}}renderColorField(e,r){let n=ue.isUseBright(this.props.mark.color,null);n===null&&(n=void 0);const o=a=>{const i=JSON.parse(JSON.stringify(this.props.mark));i.color=a,this.props.updateMark(this.props.index,i)};return w.jsx("div",{style:r,children:w.jsx(Ht,{variant:"standard",disabled:!!this.props.onPaste,style:{minWidth:e,width:"calc(100% - 8px)"},label:P.t("Color"),value:this.props.mark.color,onClick:()=>!this.props.onPaste&&this.setState({color:this.props.mark.color},()=>this.props.onSelectColor(this.state.color,a=>this.setState({color:a},()=>o(Ai.getColor(a,!0))))),onChange:a=>{const i=a.target.value;this.setState({color:i},()=>o(i))},slotProps:{htmlInput:{style:{paddingLeft:8,backgroundColor:this.props.mark.color,color:n?"#FFF":"#000"}},input:{endAdornment:!this.props.onPaste&&this.props.mark.color?w.jsx(Ie,{size:"small",onClick:a=>{a.stopPropagation(),this.setState({color:""},()=>o(""))},children:w.jsx(Ar,{})}):void 0},inputLabel:{shrink:!0}}})})}renderTextColorField(e,r){let n=ue.isUseBright(this.props.mark.textColor,null);n===null&&(n=void 0);const o=a=>{const i=JSON.parse(JSON.stringify(this.props.mark));i.textColor=a,this.props.updateMark(this.props.index,i)};return w.jsx("div",{style:r,children:w.jsx(Ht,{variant:"standard",disabled:!!this.props.onPaste,style:{minWidth:e,width:"calc(100% - 8px)"},label:P.t("Text color"),value:this.props.mark.textColor,onClick:()=>!this.props.onPaste&&this.setState({textColor:this.props.mark.textColor},()=>this.props.onSelectColor(this.state.textColor,a=>this.setState({textColor:a},()=>o(Ai.getColor(a,!0))))),onChange:a=>{const i=a.target.value;this.setState({textColor:i},()=>o(i))},slotProps:{htmlInput:{style:{paddingLeft:8,backgroundColor:this.props.mark.textColor,color:n?"#FFF":"#000"}},input:{endAdornment:!this.props.onPaste&&this.props.mark.textColor?w.jsx(Ie,{size:"small",onClick:a=>{a.stopPropagation(),this.setState({textColor:""},()=>o(""))},children:w.jsx(Ar,{})}):void 0},inputLabel:{shrink:!0}}})})}renderClosedLine(e,r){const n={},o=this.props.mark.lineId!==null&&this.props.mark.lineId!==void 0?1:0,a=o&&this.props.mark.upperValueOrId!==null&&this.props.mark.upperValueOrId!==void 0&&this.props.mark.upperValueOrId!==""?1:0,i=a&&this.props.mark.lowerValueOrId!==null&&this.props.mark.lowerValueOrId!==void 0&&this.props.mark.lowerValueOrId!==""?1:0,s=(this.props.width||1024)-32-40,l=4;return s>=Ft.lineId+Ft.upperValueOrId*o+Ft.lowerValueOrId*a+Ft.color*a+Ft.fill*i+Ft.text*a+Ft.buttons+l*6?(n.upper=!!o,n.lower=!!a,n.color=!!a,n.fill=!!i,n.text=!!a):s>=Ft.lineId+Ft.upperValueOrId*o+Ft.lowerValueOrId*a+Ft.color*a+Ft.fill*i+Ft.buttons+l*5?(n.upper=!!o,n.lower=!!a,n.color=!!a,n.fill=!!i):s>=Ft.lineId+Ft.upperValueOrId*o+Ft.lowerValueOrId*a+Ft.color*a+Ft.buttons+l*4?(n.upper=!!o,n.lower=!!a,n.color=!!a):s>=Ft.lineId+Ft.upperValueOrId*o+Ft.lowerValueOrId*a+Ft.buttons+l*3?(n.upper=!!o,n.lower=!!a):n.upper=!!o,w.jsxs("div",{style:Kr.lineClosedContainer,children:[this.props.onPaste?w.jsx(Ie,{title:P.t("Paste"),onClick:()=>this.props.onPaste(),children:w.jsx(uH,{})}):w.jsx(Ie,{title:P.t("Edit"),onClick:()=>this.props.markOpenToggle(this.props.index),children:w.jsx(yf,{})}),w.jsx(Dt,{disabled:!!this.props.onPaste,noTranslate:!0,value:this.props.mark.lineId===void 0?"":this.props.mark.lineId.toString(),updateValue:d=>{const h=JSON.parse(JSON.stringify(this.props.mark));h.lineId=d?parseInt(d,10):void 0,this.props.updateMark(this.props.index,h)},label:"Line ID",options:e,colors:r,styles:{fieldContainer:Kr.shortLineIdField},minWidth:Ft.lineId}),n.upper?w.jsx(Jd,{theme:this.props.theme,disabled:!!this.props.onPaste,value:this.props.mark.upperValueOrId===void 0?"":this.props.mark.upperValueOrId.toString(),updateValue:d=>{const h=JSON.parse(JSON.stringify(this.props.mark));h.upperValueOrId=d,this.props.updateMark(this.props.index,h)},name:"upperValueOrId",label:"Upper value or ID",socket:this.props.socket,styles:{fieldContainer:Kr.shortUpperValueOrIdField},minWidth:Ft.upperValueOrId}):null,n.lower?w.jsx(Jd,{theme:this.props.theme,disabled:!!this.props.onPaste,value:this.props.mark.lowerValueOrId===void 0?"":this.props.mark.lowerValueOrId.toString(),updateValue:d=>{const h=JSON.parse(JSON.stringify(this.props.mark));h.lowerValueOrId=d,this.props.updateMark(this.props.index,h)},name:"lowerValueOrId",label:"Lower value or ID",socket:this.props.socket,styles:{fieldContainer:Kr.shortLowerValueOrIdField},minWidth:Ft.lowerValueOrId}):null,n.color?this.renderColorField(Ft.color,Kr.shortColorField):null,n.fill?w.jsx($u,{disabled:!!this.props.onPaste,value:this.props.mark.fill,updateValue:d=>{const h=JSON.parse(JSON.stringify(this.props.mark));h.fill=d,this.props.updateMark(this.props.index,h)},styles:{fieldContainer:Kr.shortFillField,sliderRoot:Kr.sliderRoot},label:"Fill (from 0 to 1)",min:0,max:1,step:.1}):null,n.text?w.jsx(Ln,{disabled:!!this.props.onPaste,value:this.props.mark.text,updateValue:d=>{const h=JSON.parse(JSON.stringify(this.props.mark));h.text=d,this.props.updateMark(this.props.index,h)},label:"Text",styles:{fieldContainer:Kr.shortTextField},minWidth:Ft.fill}):null,w.jsx("div",{style:{flexGrow:1}}),w.jsx(Ie,{"aria-label":"Delete",title:P.t("Delete"),onClick:()=>this.props.deleteMark(this.props.index),children:w.jsx(yu,{})}),w.jsx("div",{style:{width:30}})]})}renderOpenedCard(e,r){return w.jsxs(w.Fragment,{children:[w.jsxs("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[w.jsx(Ie,{title:P.t("Close"),onClick:()=>this.props.markOpenToggle(this.props.index),children:w.jsx(vf,{})}),P.t("Mark")," ",this.props.index+1,this.props.mark.text?` - ${this.props.mark.text}`:"",w.jsx("div",{style:{flexGrow:1}}),w.jsx(Ie,{style:Kr.copyButtonFull,"aria-label":"Copy",title:P.t("Copy"),onClick:()=>this.props.onCopy(this.props.mark),children:w.jsx(dH,{})}),w.jsx(Ie,{style:Kr.deleteButtonFull,"aria-label":"Delete",title:P.t("Delete"),onClick:()=>this.props.deleteMark(this.props.index),children:w.jsx(yu,{})}),w.jsx("div",{style:{width:30}})]}),w.jsxs(Re,{component:"div",sx:Kr.shortFields,children:[w.jsx("p",{style:Kr.title,children:P.t("Limits")}),w.jsx(Dt,{value:this.props.mark.lineId===void 0||this.props.mark.lineId===null?"":this.props.mark.lineId.toString(),updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.lineId=n?parseInt(n,10):void 0,this.props.updateMark(this.props.index,o)},noTranslate:!0,label:"Line ID",options:e,colors:r}),this.props.mark.lineId!==null&&this.props.mark.lineId!==void 0?w.jsx(Jd,{theme:this.props.theme,value:this.props.mark.upperValueOrId===void 0?"":this.props.mark.upperValueOrId.toString(),updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.upperValueOrId=n,this.props.updateMark(this.props.index,o)},name:"upperValueOrId",label:"Upper value or ID",socket:this.props.socket}):null,this.props.mark.upperValueOrId!==null&&this.props.mark.upperValueOrId!==void 0&&this.props.mark.upperValueOrId!==""?w.jsx(Jd,{theme:this.props.theme,value:this.props.mark.lowerValueOrId===void 0?"":this.props.mark.lowerValueOrId.toString(),updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.lowerValueOrId=n,this.props.updateMark(this.props.index,o)},name:"lowerValueOrId",label:"Lower value or ID",socket:this.props.socket}):null]}),this.props.mark.upperValueOrId!==null&&this.props.mark.upperValueOrId!==void 0&&this.props.mark.upperValueOrId!==""||this.props.mark.lowerValueOrId!==null&&this.props.mark.lowerValueOrId!==void 0&&this.props.mark.lowerValueOrId!==""?w.jsxs(Re,{component:"div",sx:Kr.shortFields,children:[w.jsx("p",{style:Kr.title,children:P.t("Style")}),this.renderColorField(),w.jsx(Er,{value:this.props.mark.ol,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.ol=n,this.props.updateMark(this.props.index,o)},label:"ØL Line thickness"}),w.jsx(Er,{value:this.props.mark.os,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.os=n,this.props.updateMark(this.props.index,o)},label:"ØS Shadow size"}),w.jsx(Dt,{value:this.props.mark.lineStyle,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.lineStyle=n,this.props.updateMark(this.props.index,o)},label:"Line style",options:{solid:"solid",dashed:"dashed",dotted:"dotted"}}),this.props.mark.upperValueOrId!==null&&this.props.mark.upperValueOrId!==void 0&&this.props.mark.upperValueOrId!==""&&this.props.mark.lowerValueOrId!==null&&this.props.mark.lowerValueOrId!==void 0&&this.props.mark.lowerValueOrId!==""?w.jsx($u,{value:this.props.mark.fill,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.fill=n,this.props.updateMark(this.props.index,o)},label:"Fill (from 0 to 1)",min:0,max:1,step:.1}):null]}):null,this.props.mark.upperValueOrId!==null&&this.props.mark.upperValueOrId!==void 0&&this.props.mark.upperValueOrId!==""||this.props.mark.lowerValueOrId!==null&&this.props.mark.lowerValueOrId!==void 0&&this.props.mark.lowerValueOrId!==""?w.jsxs(Re,{component:"div",sx:ue.getStyle(this.props.theme,Kr.shortFields,Kr.shortFieldsLast),children:[w.jsx("p",{style:Kr.title,children:P.t("Label")}),w.jsx(Ln,{value:this.props.mark.text,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.text=n,this.props.updateMark(this.props.index,o)},label:"Text"}),this.props.mark.text?w.jsx(Dt,{value:this.props.mark.textPosition,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.textPosition=n,this.props.updateMark(this.props.index,o)},label:"Text position",options:{l:"Left",r:"Right",insideStart:"Inside start",insideStartTop:"Inside start top",insideStartBottom:"Inside start bottom",insideMiddle:"Inside middle",insideMiddleTop:"Inside middle top",insideMiddleBottom:"Inside middle bottom",insideEnd:"Inside end",insideEndTop:"Inside end top",insideEndBottom:"Inside end bottom"}}):null,this.props.mark.text?w.jsx(Er,{value:this.props.mark.textOffset,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.textOffset=n,this.props.updateMark(this.props.index,o)},label:"Text X offset"}):null,this.props.mark.text?w.jsx(Er,{value:this.props.mark.textSize,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.mark));o.textSize=n,this.props.updateMark(this.props.index,o)},label:"Text size"}):null,this.props.mark.text?this.renderTextColorField():null]}):null]})}render(){var n;const e={},r={};return(n=this.props.presetData)==null||n.l.forEach((o,a)=>{e[a]=`${a} - ${o.id||P.t("No ID yet")}`,r[a]=o.color}),w.jsx(JW,{sx:ue.getStyle(this.props.theme,Kr.card,this.props.onPaste&&Kr.cardPaste),children:w.jsx(YW,{sx:Kr.cardContent,children:this.props.opened&&!this.props.onPaste?this.renderOpenedCard(e,r):this.renderClosedLine(e,r)})})}}const rZt={l:[],marks:[],timeType:"relative",relativeEnd:"30minutes",range:120,aggregateType:"count",aggregateSpan:300,legend:"ne",hoverDetail:!0,zoom:!0,animation:0,live:15,ticks:"",width:"100%",height:"100%",noBorder:"noborder",window_bg:"",bg_custom:"",x_labels_color:"",y_labels_color:"",border_color:"",grid_color:"",grid_hideX:!1,grid_hideY:!1,border_width:0,barLabels:"topover",barFontColor:"",title:"",titlePos:"",titleColor:"",legBg:"",timeFormat:"",export:!0};function Lh(t,e,r,n){var i,s,l;const o=((i=r==null?void 0:r.common)==null?void 0:i.type)==="boolean",a={name:(((s=r==null?void 0:r.common)==null?void 0:s.name)&&ue.getObjectNameFromObj(r,null,{language:n||P.getLanguage()})||"").trim(),id:(r==null?void 0:r._id)||"",instance:e===t.common.defaultHistory?"":e||"",thickness:2,chartType:o?"steps":"line",aggregate:o?"onchange":"minmax",isBoolean:o,symbolSize:3,validTime:35};return(l=r==null?void 0:r.common)!=null&&l.color&&(a.color=r.common.color),r&&r.common&&r.common.unit&&(a.unit=r.common.unit),o&&(a.yaxe="off",a.min=0,a.yticks=1,a.fill=.3,a.symbolSize=1),a}function G2(t,e,r,n){const o=JSON.parse(JSON.stringify(rZt));return o.useComma=t.common.isFloatComma||!1,t.common.dateFormat,o.l.push(Lh(t,e,r,n)),o}const Ue={tabsBody:{overflowY:"auto",flex:1,height:"calc(100% - 48px)"},tabsContainer:{flexDirection:"row"},tabContent:{padding:8,position:"relative",minHeight:"calc(100% - 32px)"},buttonAdd:{position:"absolute",top:8,right:8,zIndex:3},buttonExpandAll:{position:"absolute",top:50,right:8,opacity:.5,zIndex:3},buttonCollapseAll:{position:"absolute",top:8+42*2,right:8,opacity:.5,zIndex:3},button:{height:40,width:40,marginTop:5,marginLeft:5},buttonSave:{color:"#CC0000"},noContent:{padding:8,height:64,verticalAlign:"middle",lineHeight:"64px",width:"100%"},dragHint:{paddingLeft:8,fontSize:10,fontStyle:"italic",opacity:.8},marginTop:{marginTop:16},noPaddingOnSide:{},group:t=>({display:"block","& > div":{display:"inline-flex",pr:"20px",width:200},position:"relative",pb:"16px",borderBottom:`1px dotted ${t.palette.grey[400]}`}),title:{width:"inherit",position:"absolute",whiteSpace:"nowrap",right:0,fontSize:48,opacity:.1,lineHeight:"48px",padding:0,marginTop:20,marginLeft:0,marginRight:0,marginBottom:0,paddingRight:10},buttonCopyLink:{minHeight:30,marginTop:20,marginBottom:10,marginLeft:16},selected:t=>({color:t.palette.mode==="dark"?void 0:"#FFF !important"}),indicator:t=>({backgroundColor:(t.palette.mode==="dark",t.palette.secondary.main)})},PB=["#144578","#1868A8","#665191","#a05195","#d45087","#f95d6a","#ff7c43","#ffa600"],nZt=(t,e)=>({userSelect:"none",width:"100%",background:t?"lightgreen":"grey",...e});class oZt extends m.Component{constructor(r){super(r);X(this,"colorPickerCb");X(this,"paperLineRef");X(this,"paperMarkRef");X(this,"windowWidth");X(this,"handleResize",()=>{(!this.state.selectedTab||this.state.selectedTab==="data")&&this.paperLineRef.current&&this.paperLineRef.current.clientWidth!==this.state.clientWidth?this.setState({clientWidth:this.paperLineRef.current.clientWidth}):this.state.selectedTab==="markings"&&this.paperMarkRef.current&&this.paperMarkRef.current.clientWidth!==this.state.clientWidth&&this.setState({clientWidth:this.paperMarkRef.current.clientWidth})});X(this,"lineOpenToggle",r=>{const n=[...this.state.linesOpened];n[r]=!this.state.linesOpened[r],this.setState({linesOpened:n}),window.localStorage.setItem("App.echarts.Lines.opened",JSON.stringify(n))});X(this,"markOpenToggle",r=>{const n=[...this.state.marksOpened];n[r]=!this.state.marksOpened[r],this.setState({marksOpened:n}),window.localStorage.setItem("App.echarts.Marks.opened",JSON.stringify(n))});X(this,"updateMark",(r,n)=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.marks[r]=n,this.props.onChange(o)});X(this,"updateLine",(r,n)=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.l[r]=n,o.l[r].chartType==="bar"?o.l.forEach(a=>{a.chartType="bar",a.aggregate==="minmax"&&(a.aggregate="max")}):o.l[r].chartType==="polar"?o.l.forEach(a=>{a.chartType="polar",a.aggregate==="minmax"&&(a.aggregate="current")}):o.l.find(a=>a.chartType==="bar")?o.l.forEach(a=>{a.chartType=o.l[r].chartType,a.aggregate==="current"&&(a.aggregate="minmax")}):o.l.find(a=>a.chartType==="polar")&&o.l.forEach(a=>{a.chartType=o.l[r].chartType,a.aggregate==="current"&&(a.aggregate="minmax")}),this.props.onChange(o)});X(this,"expandAllLines",()=>{const r=this.props.presetData.l.map(()=>!0);window.localStorage.setItem("App.echarts.Lines.opened",JSON.stringify(r)),this.setState({linesOpened:r})});X(this,"collapseAllLines",()=>{window.localStorage.setItem("App.echarts.Lines.opened",JSON.stringify([])),this.setState({linesOpened:[]})});X(this,"expandAllMarks",()=>{const r=this.props.presetData.marks.map(()=>!0);window.localStorage.setItem("App.echarts.Marks.opened",JSON.stringify([])),this.setState({marksOpened:r})});X(this,"collapseAllMarks",()=>{window.localStorage.setItem("App.echarts.Marks.opened",JSON.stringify([])),this.setState({marksOpened:[]})});X(this,"deleteMark",r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.marks.splice(r,1);const o=[...this.state.marksOpened];o.splice(r,1),this.setState({marksOpened:o},()=>this.props.onChange(n))});X(this,"deleteLine",r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));for(let a=0;ar?n.l[a].commonYAxis=n.l[a].commonYAxis-1:n.l[a].commonYAxis===r&&delete n.l[a].commonYAxis);n.l.splice(r,1);const o=[...this.state.linesOpened];o.splice(r,1),this.setState({linesOpened:o},()=>this.props.onChange(n))});this.windowWidth=this.props.windowWidth;const n=window.sessionStorage.getItem("echarts.copiedObject");let o=null;if(n)try{o=JSON.parse(n),o.data&&(o.type==="line"?o.line=o.data:o.mark=o.data,delete o.data)}catch{o=null}this.state={presetData:G2(this.props.systemConfig),selectedTab:window.localStorage.getItem("App.echarts.presetTabs.selectedTab")!==null?window.localStorage.getItem("App.echarts.presetTabs.selectedTab"):"data",linesOpened:window.localStorage.getItem("App.echarts.Lines.opened")!==null?JSON.parse(window.localStorage.getItem("App.echarts.Lines.opened")):[],marksOpened:window.localStorage.getItem("App.echarts.Marks.opened")!==null?JSON.parse(window.localStorage.getItem("App.echarts.Marks.opened")):[],deleteLineDialog:null,deleteMarkDialog:null,showColorDialog:!1,colorDialogValue:"",webInstances:[],toast:"",copiedObject:o,clientWidth:0,legColor:"",legBg:"",exportColor:"",exportDataColor:"",titleColor:"",window_bg:"",bg_custom:"",x_labels_color:"",y_labels_color:"",y_ticks_color:"",border_color:"",barFontColor:"",x_ticks_color:"",grid_color:""},this.props.socket.getAdapterInstances("web").then(a=>{const i=a.map(s=>({index:s._id.split(".").pop(),link:`http${s.native.secure?"s":""}://${s.native.bind==="0.0.0.0"?window.location.hostname:s.native.bind}:${s.native.port}`}));this.setState({webInstances:i})}),this.paperLineRef=m.createRef(),this.paperMarkRef=m.createRef(),this.colorPickerCb=null}componentDidMount(){window.addEventListener("resize",this.handleResize)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}addMark(r){const n=JSON.parse(JSON.stringify(this.props.presetData));if(r)n.marks.push(JSON.parse(JSON.stringify(r)));else{const o=this.props.presetData.marks.length,a=PB[o%PB.length];n.marks.push({color:a})}this.props.onChange(n)}addLine(r){const n=JSON.parse(JSON.stringify(this.props.presetData));if(r)n.l.push(JSON.parse(JSON.stringify(r)));else{const o=this.props.presetData.l.length,a=Lh(this.props.systemConfig);a.xaxe=o?"off":void 0,n.l.push(a)}if(n.l.find(o=>o.chartType==="bar")){const o=n.l[n.l.length-1];o.chartType="bar",o.aggregate==="minmax"&&(o.aggregate="max")}else if(n.l.find(o=>o.chartType==="polar")){const o=n.l[n.l.length-1];o.chartType="polar",o.aggregate==="minmax"&&(o.aggregate="current")}this.props.onChange(n)}renderDeleteLineDialog(){return this.state.deleteLineDialog!==null?w.jsxs(or,{open:!0,onClose:()=>this.setState({deleteLineDialog:null}),children:[w.jsx(_r,{children:P.t("Are you sure for delete this line?")}),w.jsxs(pr,{style:{...Ue.alignRight,...Ue.buttonsContainer},children:[w.jsx(tt,{variant:"contained",color:"secondary",autoFocus:!0,onClick:()=>{this.deleteLine(this.state.deleteLineDialog),this.setState({deleteLineDialog:null})},startIcon:w.jsx(Ta,{}),children:P.t("Delete")}),w.jsx(tt,{color:"grey",variant:"contained",onClick:()=>this.setState({deleteLineDialog:null}),startIcon:w.jsx(wo,{}),children:P.t("Cancel")})]})]},"deleteLineDialog"):null}renderDeleteMarkDialog(){return this.state.deleteMarkDialog!==null?w.jsxs(or,{open:!0,onClose:()=>this.setState({deleteMarkDialog:null}),children:[w.jsx(_r,{children:P.t("Are you sure for delete this mark?")}),w.jsxs(pr,{style:{...Ue.alignRight,...Ue.buttonsContainer},children:[w.jsx(tt,{variant:"contained",color:"secondary",onClick:()=>{this.deleteMark(this.state.deleteMarkDialog),this.setState({deleteMarkDialog:null})},startIcon:w.jsx(Ta,{}),children:P.t("Delete")}),w.jsx(tt,{color:"grey",variant:"contained",onClick:()=>this.setState({deleteMarkDialog:null}),startIcon:w.jsx(wo,{}),children:P.t("Cancel")})]})]},"deleteMarkDialog"):null}showColorPicker(r,n){this.colorPickerCb=n,this.setState({colorDialogValue:r,showColorDialog:!0})}renderColorDialog(){return w.jsx(or,{onClose:()=>{this.colorPickerCb=null,this.setState({showColorDialog:!1})},open:this.state.showColorDialog,children:w.jsx(xKt,{color:this.state.colorDialogValue,onChange:r=>{this.setState({colorDialogValue:r.hex},()=>this.colorPickerCb&&this.colorPickerCb(r.hex))}})})}componentDidUpdate(){(!this.state.selectedTab||this.state.selectedTab==="data")&&this.paperLineRef.current&&this.paperLineRef.current.clientWidth!==this.state.clientWidth?(this.windowWidth=this.props.windowWidth,this.setState({clientWidth:this.paperLineRef.current.clientWidth})):this.state.selectedTab==="markings"&&this.paperMarkRef.current&&this.paperMarkRef.current.clientWidth!==this.state.clientWidth&&(this.windowWidth=this.props.windowWidth,this.setState({clientWidth:this.paperMarkRef.current.clientWidth}))}renderTabLines(){const r=this.props.presetData.l.length>1&&this.props.presetData.l.find((o,a)=>!this.state.linesOpened[a]),n=this.props.presetData.l.length>1&&this.props.presetData.l.find((o,a)=>this.state.linesOpened[a]);return w.jsx(QT,{droppableId:"tabs",children:(o,a)=>{var i;return w.jsx("div",{...o.droppableProps,ref:o.innerRef,style:{background:a.isDraggingOver?this.props.theme.palette.secondary.dark:void 0,width:"100%",minHeight:"calc(100% - 32px)"},children:w.jsxs(zn,{style:Ue.tabContent,ref:this.paperLineRef,children:[w.jsx(ro,{onClick:()=>this.addLine(),size:"small",color:"secondary",style:Ue.buttonAdd,title:P.t("Add line to chart"),children:w.jsx(Il,{})}),r?w.jsx(ro,{onClick:this.expandAllLines,size:"small",color:"default",style:Ue.buttonExpandAll,title:P.t("Expand all lines"),children:w.jsx(sf,{})}):null,n?w.jsx(ro,{onClick:this.collapseAllLines,size:"small",color:"default",style:Ue.buttonCollapseAll,title:P.t("Collapse all lines"),children:w.jsx(YR,{})}):null,this.props.presetData.l.length?this.props.presetData.l.map((s,l)=>w.jsx(EE,{draggableId:`${s.id}_${l}`,index:l,children:(d,h)=>w.jsx("div",{ref:d.innerRef,...d.draggableProps,style:nZt(h.isDragging,d.draggableProps.style),children:w.jsx(IB,{provided:d,snapshot:h,theme:this.props.theme,instances:this.props.instances,systemConfig:this.props.systemConfig,line:s,presetData:this.props.presetData,width:this.state.clientWidth,updateLine:this.updateLine,deleteLine:u=>this.setState({deleteLineDialog:u}),index:l,socket:this.props.socket,opened:typeof this.state.linesOpened[l]<"u"&&this.state.linesOpened[l]===!0,lineOpenToggle:this.lineOpenToggle,maxLines:this.props.presetData.l.length,onSelectColor:(u,f)=>this.showColorPicker(u,f),onCopy:u=>{this.setState({copiedObject:{type:"line",line:JSON.parse(JSON.stringify(u))}}),window.sessionStorage.setItem("echarts.copiedObject",JSON.stringify({type:"line",line:u}))}},l)})},`${s.id}_${l}`)):w.jsx("div",{style:Ue.noContent,children:P.t('Create a new line with a "+" on the right.')}),((i=this.state.copiedObject)==null?void 0:i.type)==="line"?w.jsx(IB,{presetData:this.props.presetData,line:this.state.copiedObject.line,theme:this.props.theme,instances:this.props.instances,systemConfig:this.props.systemConfig,width:this.state.clientWidth,deleteLine:()=>{window.sessionStorage.removeItem("echarts.copiedObject"),this.setState({copiedObject:null})},socket:this.props.socket,opened:!1,onPaste:()=>{var s;return((s=this.state.copiedObject)==null?void 0:s.type)==="line"&&this.addLine(this.state.copiedObject.line)}},"copiedLine"):null,o.placeholder,w.jsx("div",{style:Ue.dragHint,children:P.t("You can drag and drop simple lines from the left list.")})]})})}})}renderTabMarkings(){var o;const r=this.props.presetData.marks.length>1&&this.props.presetData.marks.find((a,i)=>!this.state.marksOpened[i]),n=this.props.presetData.marks.length>1&&this.props.presetData.marks.find((a,i)=>this.state.marksOpened[i]);return w.jsxs(zn,{style:Ue.tabContent,ref:this.paperMarkRef,children:[w.jsx(ro,{onClick:()=>this.addMark(),size:"small",color:"secondary",style:Ue.buttonAdd,title:P.t("Add marking line to chart"),children:w.jsx(Il,{})}),r?w.jsx(ro,{onClick:this.expandAllMarks,size:"small",color:"default",style:Ue.buttonExpandAll,title:P.t("Expand all markings"),children:w.jsx(sf,{})}):null,n?w.jsx(ro,{onClick:this.collapseAllMarks,size:"small",color:"default",style:Ue.buttonCollapseAll,title:P.t("Collapse all markings"),children:w.jsx(YR,{})}):null,this.props.presetData.marks.length?this.props.presetData.marks.map((a,i)=>w.jsx(MB,{mark:a,presetData:this.props.presetData,updateMark:this.updateMark,theme:this.props.theme,deleteMark:s=>{this.setState({deleteMarkDialog:s})},index:i,socket:this.props.socket,width:this.state.clientWidth,opened:typeof this.state.marksOpened[i]<"u"&&this.state.marksOpened[i]===!0,markOpenToggle:this.markOpenToggle,onSelectColor:(s,l)=>this.showColorPicker(s,l),onCopy:s=>{this.setState({copiedObject:{type:"marking",mark:JSON.parse(JSON.stringify(s))}}),window.sessionStorage.setItem("echarts.copiedObject",JSON.stringify({type:"marking",mark:s}))}},i)):w.jsx("div",{style:Ue.noContent,children:P.t('You can create a new markings with a "+" on the right.')}),((o=this.state.copiedObject)==null?void 0:o.type)==="marking"?w.jsx(MB,{presetData:this.props.presetData,mark:this.state.copiedObject.mark,theme:this.props.theme,width:this.state.clientWidth,deleteMark:()=>{window.sessionStorage.removeItem("echarts.copiedObject"),this.setState({copiedObject:null})},opened:!1,onPaste:()=>{var a;return((a=this.state.copiedObject)==null?void 0:a.type)==="marking"&&this.addMark(this.state.copiedObject.mark)}},"copiedMark"):null]})}renderTabTime(){const r=this.props.presetData.l.find(s=>s.chartType!=="bar"&&s.chartType!=="polar"),n=this.props.presetData.l.find(s=>s.chartType==="bar"||s.chartType==="polar"),o=this.props.presetData.l.find(s=>s.aggregate!=="onchange"),a=this.props.presetData.l.find(s=>s.instance!=="json"),i={0:"auto",15:"i15min",60:"i1hour",1440:"i1day",43200:"i30days"};return this.props.presetData.timeType!=="static"&&(this.props.presetData.range===10||this.props.presetData.range===30||this.props.presetData.range===60?(delete i[60],delete i[1440],delete i[43200]):this.props.presetData.range===120||this.props.presetData.range===180||this.props.presetData.range===360||this.props.presetData.range===720||this.props.presetData.range===1440?(delete i[1440],delete i[43200]):(this.props.presetData.range===2880||this.props.presetData.range===4320||this.props.presetData.range===10080||this.props.presetData.range===20160||this.props.presetData.range==="1m")&&delete i[43200]),w.jsxs(zn,{style:Ue.tabContent,children:[a?w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Type")}),w.jsx(Dt,{value:this.props.presetData.timeType||"relative",updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));l.timeType=s,this.props.onChange(l)},label:"Type",options:{relative:"relative",static:"static"}})]}):null,a?w.jsx(Re,{component:"div",sx:Ue.group,children:this.props.presetData.timeType==="static"?w.jsxs(w.Fragment,{children:[w.jsx("p",{style:Ue.title,children:P.t("Start and end")}),w.jsx(ty,{date:this.props.presetData.start===void 0?"":this.props.presetData.start.toString(),time:this.props.presetData.start_time,updateValue:(s,l)=>{const d=JSON.parse(JSON.stringify(this.props.presetData));d.start=s,d.start_time=l,this.props.onChange(d)},label:"Start"}),w.jsx(ty,{date:this.props.presetData.end===void 0?"":this.props.presetData.end.toString(),time:this.props.presetData.end_time,updateValue:(s,l)=>{const d=JSON.parse(JSON.stringify(this.props.presetData));d.end=s,d.end_time=l,this.props.onChange(d)},label:"End"})]}):w.jsxs(w.Fragment,{children:[w.jsx("p",{style:Ue.title,children:P.t("Relative")}),w.jsx(Dt,{value:this.props.presetData.relativeEnd,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));l.relativeEnd=s,this.props.onChange(l)},label:"End",options:{now:"now","1minute":"end of minute","5minutes":"end of 5 minutes","10minutes":"end of 10 minutes","30minutes":"end of 30 minutes","1hour":"end of hour","2hours":"end of 2 hours","3hours":"end of 3 hours","4hours":"end of 4 hours","6hours":"end of 6 hours","8hours":"end of 8 hours","12hours":"end of 12 hours",today:"end of day",weekEurope:"end of sunday",weekUsa:"end of saturday",month:"this month",year:"this year"}}),w.jsx(Dt,{value:this.props.presetData.range===void 0?"":this.props.presetData.range.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));!s.includes("m")&&!s.includes("y")?l.range=parseInt(s,10):l.range=s,this.props.onChange(l)},label:"Range",options:{10:"10 minutes",30:"30 minutes",60:"1 hour",120:"2 hours",180:"3 hours",360:"6 hours",720:"12 hours",1440:"1 day",2880:"2 days",4320:"3 days",10080:"7 days",20160:"14 days","1m":"1 month","2m":"2 months","3m":"3 months","6m":"6 months","1y":"1 year","2y":"2 years"}}),w.jsx(Dt,{value:this.props.presetData.live===void 0?"":this.props.presetData.live.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));s?l.live=parseInt(s,10):delete l.live,this.props.onChange(l)},label:"Live update every",options:{"":"none",5:"5 seconds",10:"10 seconds",15:"15 seconds",20:"20 seconds",30:"30 seconds",60:"1 minute",120:"2 minutes",300:"5 minutes",600:"10 minutes",900:"15 minutes",1200:"20 minutes",1800:"30 minutes",3600:"1 hour",7200:"2 hours",10800:"3 hours",21600:"6 hours",43200:"12 hours",86400:"1 day"}})]})}):null,a&&o&&r?w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Aggregate for lines")}),w.jsx(Dt,{value:this.props.presetData.aggregateType,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));l.aggregateType=s,this.props.onChange(l)},label:"Step type",options:{count:"counts",step:"seconds"}}),w.jsx(Ln,{value:this.props.presetData.aggregateSpan===void 0?"":this.props.presetData.aggregateSpan.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));s?l.aggregateSpan=parseInt(s,10):delete l.aggregateSpan,this.props.onChange(l)},label:this.props.presetData.aggregateType==="step"?"Seconds":"Counts"})]}):null,n?w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Aggregate for bars")}),w.jsx(Dt,{value:this.props.presetData.aggregateBar===void 0?"":this.props.presetData.aggregateBar.toString(),updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));s?l.aggregateBar=parseInt(s,10):delete l.aggregateBar,this.props.onChange(l)},label:P.t("Intervals"),options:i})]}):null,w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Time format")}),w.jsx(kn,{value:this.props.presetData.timeFormatCustom,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));l.timeFormatCustom=s,this.props.onChange(l)},label:"Custom time format"}),this.props.presetData.timeFormatCustom?w.jsx(Ln,{value:this.props.presetData.timeFormat,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));l.timeFormat=s,this.props.onChange(l)},label:"Time format",helperLink:"https://momentjs.com/docs/#/displaying/format/"}):w.jsx(Dt,{value:this.props.presetData.timeFormat,updateValue:s=>{const l=JSON.parse(JSON.stringify(this.props.presetData));l.timeFormat=s,this.props.onChange(l)},label:"Time format",options:{"":"Default","HH:mm DD.MM":"HH:MM dd.mm","HH:mm DD.MM.":"HH:MM dd.mm.","HH:mm
DD.MM":"HH:MM / dd.mm","HH:mm
DD.MM.":"HH:MM / dd.mm.","HH:mm
DD.MM.YY":"HH:MM / dd.mm.yy","HH:mm:ss DD.MM.YY":"HH:MM:SS dd.mm.yy","HH:mm DD.MM.YY":"HH:MM dd.mm.yy","hh:mm:ss MM/DD/YY a":"HH:MM:SS mm/dd/yy am (US)","HH:mm:ss DD/MM/YY":"HH:MM:SS dd/mm/yy (UK)","HH:mm:ss MM.DD.YY":"HH:MM:SS mm.dd.yy","HH:mm ddd":"HH:MM dow","HH:mm:ss ddd":"HH:MM:SS dow","HH:mm MM.DD":"HH:MM mm.dd","HH:mm:ss":"HH:MM:SS","HH:mm":"HH:MM","DD.MM":"dd.mm","DD.MM.":"dd.mm.","MM/DD":"mm/dd",DD:"dd",MM:"mm",YY:"y",HH:"HH",mm:"MM",ddd:"dow","DD.MM.YY":"dd.mm.yy"}})]})]})}renderToast(){return this.state.toast?w.jsx(Ov,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:2e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:w.jsx("span",{id:"message-id",children:this.state.toast}),action:[w.jsx(Ie,{"aria-label":"Close",color:"inherit",style:Ue.close,onClick:()=>this.setState({toast:""}),children:w.jsx(Ar,{})},"close")]}):null}renderTabOptions(){const r=this.props.presetData.l.find(n=>n.chartType==="polar");return w.jsxs(zn,{style:Ue.tabContent,children:[w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Legend")}),w.jsx(Dt,{value:this.props.presetData.legend,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.legend=n,this.props.onChange(o)},label:"Show legend",options:{"":"none",nw:"Top, left",ne:"Top, right",sw:"Bottom, left",se:"Bottom, right",dialog:"Dialog"}}),this.props.presetData.legend?w.jsxs(w.Fragment,{children:[this.renderColorField(this.props.presetData.legColor,"Legend text color","legColor"),this.renderColorField(this.props.presetData.legBg,"Legend background","legBg"),w.jsx(kn,{value:this.props.presetData.legActual,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.legActual=n,this.props.onChange(o)},label:"Show values"}),w.jsx(Dt,{value:this.props.presetData.legendDirection==="vertical"?"vertical":"",updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.legendDirection=n,this.props.onChange(o)},label:"Orientation",options:{"":"horizontal",vertical:"vertical"}}),w.jsx(Er,{value:this.props.presetData.legFontSize,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.legFontSize=n,this.props.onChange(o)},label:"Font size",min:6}),w.jsx(Er,{value:this.props.presetData.legendHeight,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.legendHeight=n,this.props.onChange(o)},label:"Height",min:6})]}):null]}),w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Options")}),w.jsx(kn,{value:this.props.presetData.hoverDetail,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.hoverDetail=n,this.props.onChange(o)},label:"Hover details"}),w.jsx(kn,{value:this.props.presetData.hoverNoInterpolate,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.hoverNoInterpolate=n,this.props.onChange(o)},label:"No interpolate in hover"}),this.props.presetData.hoverDetail?w.jsx(kn,{value:this.props.presetData.hoverNoNulls,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.hoverNoNulls=n,this.props.onChange(o)},label:"Hide nulls in tooltip"}):null,w.jsx(kn,{value:this.props.presetData.useComma,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.useComma=n,this.props.onChange(o)},label:"Use comma"}),w.jsx(kn,{value:this.props.presetData.zoom,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.zoom=n,this.props.onChange(o)},label:"Enable zoom and pan"}),w.jsx(kn,{value:this.props.presetData.export,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.export=n,this.props.onChange(o)},label:"Show save image button"}),this.props.presetData.export?this.renderColorField(this.props.presetData.exportColor,"Save image button color","exportColor"):null,w.jsx(kn,{value:this.props.presetData.exportData,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.exportData=n,this.props.onChange(o)},label:"Show export data button"}),this.props.presetData.export?this.renderColorField(this.props.presetData.exportDataColor,"Export data color","exportDataColor"):null,w.jsx(kn,{value:this.props.presetData.autoGridPadding,updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.autoGridPadding=n,this.props.onChange(o)},label:"Auto padding"}),this.props.presetData.zoom?w.jsx(Dt,{value:this.props.presetData.resetZoom===void 0?"":this.props.presetData.resetZoom.toString(),updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));n?o.resetZoom=parseInt(n,10):delete o.resetZoom,this.props.onChange(o)},label:"Reset zoom after idle",options:{"":"none",10:"10 seconds",15:"15 seconds",30:"30 seconds",60:"1 minute",90:"90 seconds",120:"2 minutes",180:"3 minutes",300:"5 minutes",600:"10 minutes",1200:"20 minutes",1800:"30 minutes"}}):null,r?w.jsx(Dt,{value:this.props.presetData.radarCircle||"",updateValue:n=>{const o=JSON.parse(JSON.stringify(this.props.presetData));n?o.radarCircle="circle":delete o.radarCircle,this.props.onChange(o)},label:"Background of radar chart",options:{"":"Polygonal",circle:"Circle"}}):null]}),w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Copy link to clipboard")}),w.jsxs(tt,{color:"grey",variant:"contained",style:Ue.buttonCopyLink,onClick:()=>{const n=`${window.location.protocol}//${window.location.host}/adapter/echarts/chart/index.html?preset=${this.props.selectedId}`;this.setState({toast:`${P.t("copied")}: ${n}`},()=>ue.copyToClipboard(n))},children:[w.jsx(Di,{}),"admin"]}),this.state.webInstances.map((n,o)=>w.jsxs(tt,{color:"grey",variant:"contained",style:Ue.buttonCopyLink,onClick:()=>{const a=`${n.link}/echarts/index.html?preset=${this.props.selectedId}`;this.setState({toast:`${P.t("copied")}: ${a}`},()=>ue.copyToClipboard(a))},children:[w.jsx(Di,{}),`web.${n.index}`]},o))]})]})}renderTabTitle(){return w.jsx(zn,{style:Ue.tabContent,children:w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Title")}),w.jsx(Ln,{value:this.props.presetData.title,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.title=r,this.props.onChange(n)},label:"Title"}),this.props.presetData.title?w.jsxs(w.Fragment,{children:[w.jsx(Dt,{value:this.props.presetData.titlePos,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.titlePos=r,this.props.onChange(n)},label:"Title position",options:{"":"default","top:35;left:65":"Top, left, inside","top:35;right:5":"Top, right, inside","top:35;left:50":"Top, center, inside","top:50;left:65":"Middle, left, inside","top:50;right:5":"Middle, right, inside","bottom:5;left:65":"Bottom, left, inside","bottom:5;right:5":"Bottom, right, inside","bottom:5;left:50":"Bottom, center, inside"}}),this.renderColorField(this.props.presetData.titleColor,"Title color","titleColor"),w.jsx(Er,{value:this.props.presetData.titleSize,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.titleSize=r,this.props.onChange(n)},label:"Title size",min:0})]}):null]})})}renderTabAppearance(){return w.jsxs(zn,{style:Ue.tabContent,children:[w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Theme")}),w.jsx(Dt,{value:this.props.presetData.theme,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.theme=r,this.props.onChange(n)},label:"Theme",noTranslate:!0,options:{"":"auto",default:"default",dark:"dark","dark-bold":"dark-bold","dark-blue":"dark-blue",gray:"gray",vintage:"vintage",macarons:"macarons",infographic:"infographic",shine:"shine",roma:"roma",azul:"azul","bee-inspired":"",blue:"blue",royal:"royal","tech-blue":"tech-blue",red:"red","red-velvet":"red-velvet",green:"green"}})]}),w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Chart size")}),w.jsx(Ln,{value:this.props.presetData.width===void 0?"":this.props.presetData.width.toString(),updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));r?n.width=r:delete n.width,this.props.onChange(n)},label:"Width",styles:{fieldContainer:Ue.marginTop}}),w.jsx(Ln,{value:this.props.presetData.height===void 0?"":this.props.presetData.height.toString(),updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));r?n.height=r:delete n.height,this.props.onChange(n)},label:"Height",styles:{fieldContainer:Ue.marginTop}})]}),w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Backgrounds")}),w.jsx(kn,{value:this.props.presetData.noBackground,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.noBackground=r,this.props.onChange(n)},label:"No background"}),this.props.presetData.noBackground?null:this.renderColorField(this.props.presetData.window_bg,"Window background","window_bg",void 0,Ue.marginTop),this.renderColorField(this.props.presetData.bg_custom,"Chart background","bg_custom",void 0,Ue.marginTop)]}),w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Labels")}),this.renderColorField(this.props.presetData.x_labels_color,"X labels color","x_labels_color",void 0,Ue.marginTop),w.jsx(Er,{value:this.props.presetData.x_labels_size,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.x_labels_size=r,this.props.onChange(n)},label:"X labels size",min:6}),this.renderColorField(this.props.presetData.x_ticks_color,"X ticks color","x_ticks_color",void 0,Ue.marginTop),this.renderColorField(this.props.presetData.y_labels_color,"Y labels color","y_labels_color",void 0,Ue.marginTop),w.jsx(Er,{value:this.props.presetData.y_labels_size,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.y_labels_size=r,this.props.onChange(n)},label:"Y labels size",min:6}),this.renderColorField(this.props.presetData.y_ticks_color,"Y ticks color","y_ticks_color",void 0,Ue.marginTop),w.jsx(Dt,{value:this.props.presetData.xLabelShift===void 0?"":this.props.presetData.xLabelShift.toString(),updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));r.includes("m")||r.includes("y")?n.xLabelShift=r:n.xLabelShift=parseInt(r,10),this.props.onChange(n)},tooltip:"This time offset will be added to the X label by displaying data on the chart",label:"X-Label-Offset",options:{0:"0 seconds",10:"10 seconds",30:"30 seconds",60:"60 seconds",120:"2 minutes",180:"3 minutes",240:"4 minutes",300:"5 minutes",600:"10 minutes",900:"15 minutes",1800:"30 minutes",2700:"45 minutes",3600:"1 hour",7200:"2 hours",21600:"6 hours",43200:"12 hours",86400:"1 day",172800:"2 days",259200:"3 days",345600:"4 days",604800:"1 week",1209600:"2 weeks","1m":"1 month","2m":"2 months","3m":"3 months","6m":"6 months","1y":"1 year","2y":"2 years","-10":"-10 seconds","-30":"-30 seconds","-60":"-60 seconds","-120":"-2 minutes","-180":"-3 minutes","-240":"-4 minutes","-300":"-5 minutes","-600":"-10 minutes","-900":"-15 minutes","-1800":"-30 minutes","-2700":"-45 minutes","-3600":"-1 hour","-7200":"-2 hours","-21600":"-6 hours","-43200":"-12 hours","-86400":"-1 day","-172800":"-2 days","-259200":"-3 days","-345600":"-4 days","-604800":"-1 week","-1209600":"-2 weeks","-1m":"-1 month","-2m":"-2 months","-3m":"-3 months","-6m":"-6 months","-1y":"-1 year","-2y":"-2 years"}})]}),w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Grid")}),w.jsx(kn,{value:this.props.presetData.grid_hideX,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.grid_hideX=r,this.props.onChange(n)},label:"Hide X grid"}),w.jsx(kn,{value:this.props.presetData.grid_hideY,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.grid_hideY=r,this.props.onChange(n)},label:"Hide Y grid"}),!this.props.presetData.grid_hideX||!this.props.presetData.grid_hideY?this.renderColorField(this.props.presetData.grid_color,"Grid color","grid_color"):null]}),w.jsxs(Re,{component:"div",sx:Ue.group,children:[w.jsx("p",{style:Ue.title,children:P.t("Border")}),w.jsx(Dt,{value:this.props.presetData.noBorder||"",updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));r?n.noBorder="noborder":delete n.noBorder,this.props.onChange(n)},label:"Border",options:{"":"With border",noborder:"Without border"}}),this.props.presetData.noBorder!=="noborder"?w.jsxs(w.Fragment,{children:[w.jsx(Er,{value:this.props.presetData.border_width,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.border_width=r,this.props.onChange(n)},label:"Border width",min:0}),this.props.presetData.border_width?this.renderColorField(this.props.presetData.border_color,"Border color","border_color"):null,this.props.presetData.border_width?w.jsx(Dt,{value:this.props.presetData.border_style,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.border_style=r,this.props.onChange(n)},label:"Border style",options:{solid:"solid",dotted:"dotted",dashed:"dashed",double:"double",groove:"groove",ridge:"ridge",inset:"inset",outset:"outset"}}):null,w.jsx(Er,{value:this.props.presetData.border_padding,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.border_padding=r,this.props.onChange(n)},label:"Border padding",min:0})]}):null]}),this.props.presetData.l.find(r=>r.chartType==="bar")?w.jsxs(Pce,{item:!0,sm:6,xs:12,children:[w.jsx("p",{style:Ue.title,children:P.t("Bar settings")}),w.jsx(Dt,{value:this.props.presetData.barLabels,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.barLabels=r,this.props.onChange(n)},label:"Show labels",options:{"":"none",topover:"top over",topunder:"top under",bottom:"bottom",middle:"middle"}}),w.jsx(Er,{value:this.props.presetData.barWidth,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.barWidth=r,this.props.onChange(n)},label:"Bars width",min:0}),w.jsx(Er,{value:this.props.presetData.barFontSize,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.barFontSize=r,this.props.onChange(n)},label:"Label font size",min:0}),this.renderColorField(this.props.presetData.barFontColor,"Label color","barFontColor")]}):null]})}renderColorField(r,n,o,a,i){let s=ue.isUseBright(r,null);s===null&&(s=void 0);const l=d=>{const h=JSON.parse(JSON.stringify(this.props.presetData));h[o]=d,this.props.onChange(h)};return w.jsx("div",{style:i,children:w.jsx(Ht,{variant:"standard",style:{minWidth:a,width:"calc(100% - 8px)"},label:P.t(n),value:r||"",onClick:()=>{this.setState({[o]:r},()=>this.showColorPicker(this.state[o],d=>this.setState({[o]:d},()=>l(Ai.getColor(d,!0)))))},onChange:d=>{const h=d.target.value;this.setState({[o]:h},()=>l(h))},slotProps:{inputLabel:{shrink:!0},htmlInput:{style:{backgroundColor:r,color:s?"#FFF":"#000"}},input:{endAdornment:r?w.jsx(Ie,{size:"small",onClick:d=>{d.stopPropagation(),this.setState({[o]:""},()=>l(""))},children:w.jsx(Ar,{})}):void 0}}})})}render(){const r=this.props.presetData.l.find(o=>o.chartType==="polar"),n=this.props.presetData.l.find(o=>o.aggregate!=="current");return w.jsxs("div",{style:{width:"100%",height:"100%",overflow:"hidden"},children:[w.jsxs(PW,{position:"static",style:Ue.tabsContainer,children:[this.props.selectedPresetChanged||this.props.autoSave?w.jsx(yr,{style:{...Ue.button,color:this.props.theme.palette.text.primary},checked:!!this.props.autoSave,title:P.t("Auto save"),onChange:o=>this.props.onAutoSave(o.target.checked)}):null,this.props.selectedPresetChanged?null:w.jsx(Ie,{style:{...Ue.button,...Ue.noPaddingOnSide},onClick:()=>window.open(`chart/index.html?preset=${this.props.selectedId}`,"own-preset-echarts"),title:P.t("Open chart in own window"),children:w.jsx(hH,{})}),!this.props.autoSave&&this.props.selectedPresetChanged?w.jsx(Ie,{style:{...Ue.noPaddingOnSide,...Ue.buttonSave,...Ue.button},onClick:()=>this.props.savePreset(),children:w.jsx(pH,{})}):null,w.jsxs(sH,{onChange:(o,a)=>{window.localStorage.setItem("App.echarts.presetTabs.selectedTab",a),this.setState({selectedTab:a})},value:this.state.selectedTab||"data",variant:"scrollable",scrollButtons:!0,sx:{"& .MuiTabs-indicator":Ue.indicator},children:[w.jsx(Uo,{sx:{"&.Mui-selected":Ue.selected},label:P.t("Data"),value:"data"}),r?null:w.jsx(Uo,{sx:{"&.Mui-selected":Ue.selected},label:P.t("Markings"),value:"markings"}),n?w.jsx(Uo,{sx:{"&.Mui-selected":Ue.selected},label:P.t("Time"),value:"time"}):null,w.jsx(Uo,{sx:{"&.Mui-selected":Ue.selected},label:P.t("Options"),value:"options"}),w.jsx(Uo,{sx:{"&.Mui-selected":Ue.selected},label:P.t("Title"),value:"title"}),w.jsx(Uo,{sx:{"&.Mui-selected":Ue.selected},label:P.t("Appearance"),value:"appearance"})]})]}),w.jsxs("div",{style:Ue.tabsBody,children:[this.state.selectedTab==="data"||!this.state.selectedTab?this.renderTabLines():null,this.state.selectedTab==="markings"&&!r?this.renderTabMarkings():null,this.state.selectedTab==="time"&&n?this.renderTabTime():null,this.state.selectedTab==="options"?this.renderTabOptions():null,this.state.selectedTab==="title"?this.renderTabTitle():null,this.state.selectedTab==="appearance"?this.renderTabAppearance():null]}),this.renderDeleteLineDialog(),this.renderDeleteMarkDialog(),this.renderColorDialog(),this.renderToast()]})}}const NB=0,RB={logBox:{width:"100%",height:"100%",position:"relative",overflow:"hidden"},logBoxInner:t=>({color:t.palette.mode==="dark"?"white":"black",width:`calc(100% - ${NB}px)`,height:"100%",marginLeft:NB,overflow:"none",position:"relative",display:"flex",flexDirection:"column"})};class aZt extends m.Component{render(){return w.jsx("div",{style:RB.logBox,children:w.jsx(Re,{component:"div",sx:RB.logBoxInner,children:w.jsx(oZt,{width:this.props.width,socket:this.props.socket,presetData:this.props.presetData,selectedId:this.props.selectedId,onChange:this.props.onChange,instances:this.props.instances,systemConfig:this.props.systemConfig,selectedPresetChanged:this.props.selectedPresetChanged,savePreset:this.props.savePreset,theme:this.props.theme,onAutoSave:e=>this.props.onAutoSave(e),autoSave:this.props.autoSave,windowWidth:this.props.windowWidth})})})}}class iZt extends m.Component{render(){return w.jsx("svg",{onClick:e=>this.props.onClick&&this.props.onClick(e),viewBox:"0 0 32 32",width:this.props.width||20,height:this.props.width||20,xmlns:"http://www.w3.org/2000/svg",className:this.props.className,style:this.props.style,children:w.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",d:"M16,9 L9,9 L9,16 L9,16 C9,19.8659932 12.1340068,23 16,23 L16,23 C19.8659932,23 23,19.8659932 23,16 C23,12.1340068 19.8659932,9 16,9 L16,9 Z M8,15 L15,15 L15,8 L15,8 C15,4.13400675 11.8659932,1 8,1 L8,1 C4.13400675,1 1,4.13400675 1,8 C1,11.8659932 4.13400675,15 8,15 L8,15 Z",transform:"rotate(180 12 12)"})})}}var ry={black:"#000",white:"#fff"},Dk={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"},Ak={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"},Ik={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"},Mk={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"},Pk={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"},Nk={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"},bA={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function Rk(t){return t&&su(t)==="object"&&t.constructor===Object}function ku(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?De({},t):t;return Rk(t)&&Rk(e)&&Object.keys(e).forEach(function(o){o!=="__proto__"&&(Rk(e[o])&&o in t?n[o]=ku(t[o],e[o],r):n[o]=e[o])}),n}function X2(t){for(var e="https://mui.com/production-error/?code="+t,r=1;r1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.min(Math.max(e,t),r)}function sZt(t){t=t.substr(1);var e=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),r=t.match(e);return r&&r[0].length===1&&(r=r.map(function(n){return n+n})),r?"rgb".concat(r.length===4?"a":"","(").concat(r.map(function(n,o){return o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3}).join(", "),")"):""}function lZt(t){t=Eu(t);var e=t,r=e.values,n=r[0],o=r[1]/100,a=r[2]/100,i=o*Math.min(a,1-a),s=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(u+n/30)%12;return a-i*Math.max(Math.min(f-3,9-f,1),-1)},l="rgb",d=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(l+="a",d.push(r[3])),wA({type:l,values:d})}function Eu(t){if(t.type)return t;if(t.charAt(0)==="#")return Eu(sZt(t));var e=t.indexOf("("),r=t.substring(0,e);if(["rgb","rgba","hsl","hsla"].indexOf(r)===-1)throw new Error(X2(3,t));var n=t.substring(e+1,t.length-1).split(",");return n=n.map(function(o){return parseFloat(o)}),{type:r,values:n}}function wA(t){var e=t.type,r=t.values;return e.indexOf("rgb")!==-1?r=r.map(function(n,o){return o<3?parseInt(n,10):n}):e.indexOf("hsl")!==-1&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(e,"(").concat(r.join(", "),")")}function cZt(t,e){var r=jB(t),n=jB(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function jB(t){t=Eu(t);var e=t.type==="hsl"?Eu(lZt(t)).values:t.values;return e=e.map(function(r){return r/=255,r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function dZt(t,e){if(t=Eu(t),e=Gq(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)t.values[r]*=1-e;return wA(t)}function uZt(t,e){if(t=Eu(t),e=Gq(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;return wA(t)}function ji(t,e){if(t==null)return{};var r,n,o=lu(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n0?b:g;return"@media (max-width:".concat(x-i/100).concat(o,")")}function h(g,y){var b=ms.indexOf(y);return b===ms.length-1?l(g):"@media (min-width:".concat(typeof r[g]=="number"?r[g]:g).concat(o,") and ")+"(max-width:".concat((b!==-1&&typeof r[ms[b+1]]=="number"?r[ms[b+1]]:y)-i/100).concat(o,")")}function u(g){return h(g,g)}function f(g){return r[g]}return De({keys:ms,values:r,up:l,down:d,between:h,only:u,width:f},s)}function hZt(t,e,r){var n;return De({gutters:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",` paddingLeft: theme.spacing(2), paddingRight: theme.spacing(2), [theme.breakpoints.up('sm')]: { @@ -819,5 +819,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present * @website https://github.com/cssinjs/jss * @license MIT - */eG();var rG=Date.now(),Fk="fnValues"+rG,Bk="fnStyle"+ ++rG,xQt=function(){return{onCreateRule:function(r,n,o){if(typeof n!="function")return null;var a=xA(r,{},o);return a[Bk]=n,a},onProcessStyle:function(r,n){if(Fk in n||Bk in n)return r;var o={};for(var a in r){var i=r[a];typeof i=="function"&&(delete r[a],o[a]=i)}return n[Fk]=o,r},onUpdate:function(r,n,o,a){var i=n,s=i[Bk];s&&(i.style=s(r)||{});var l=i[Fk];if(l)for(var d in l)i.prop(d,l[d](r),a)}}},As="@global",rT="@global ",SQt=function(){function t(r,n,o){this.type="global",this.at=As,this.isProcessed=!1,this.key=r,this.options=o,this.rules=new C_(De({},o,{parent:this}));for(var a in n)this.rules.add(a,n[a]);this.rules.process()}var e=t.prototype;return e.getRule=function(n){return this.rules.get(n)},e.addRule=function(n,o,a){var i=this.rules.add(n,o,a);return i&&this.options.jss.plugins.onProcessRule(i),i},e.replaceRule=function(n,o,a){var i=this.rules.replace(n,o,a);return i&&this.options.jss.plugins.onProcessRule(i),i},e.indexOf=function(n){return this.rules.indexOf(n)},e.toString=function(n){return this.rules.toString(n)},t}(),CQt=function(){function t(r,n,o){this.type="global",this.at=As,this.isProcessed=!1,this.key=r,this.options=o;var a=r.substr(rT.length);this.rule=o.jss.createRule(a,n,De({},o,{parent:this}))}var e=t.prototype;return e.toString=function(n){return this.rule?this.rule.toString(n):""},t}(),$Qt=/\s*,\s*/g;function nG(t,e){for(var r=t.split($Qt),n="",o=0;o-1){var a=lG[e];if(!Array.isArray(a))return It.js+Fs(a)in r?It.css+a:!1;if(!o)return!1;for(var i=0;in?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var o={},a=Object.keys(r).sort(t),i=0;i"u"?null:fer(),mer()]}}function dG(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.baseClasses,r=t.newClasses;if(t.Component,!r)return e;var n=De({},e);return Object.keys(r).forEach(function(o){r[o]&&(n[o]="".concat(e[o]," ").concat(r[o]))}),n}var Yd={set:function(e,r,n,o){var a=e.get(r);a||(a=new Map,e.set(r,a)),a.set(n,o)},get:function(e,r,n){var o=e.get(r);return o?o.get(n):void 0},delete:function(e,r,n){var o=e.get(r);o.delete(n)}},ver=m.createContext(null);function uG(){var t=m.useContext(ver);return t}var yer=eG(ger()),_er=NZt(),ber=new Map,wer={disableGeneration:!1,generateClassName:_er,jss:yer,sheetsCache:null,sheetsManager:ber,sheetsRegistry:null},xer=m.createContext(wer),a9=-1e9;function Ser(){return a9+=1,a9}var Cer={};function $er(t){var e=typeof t=="function";return{create:function(n,o){var a;try{a=e?t(n):t}catch(l){throw l}if(!o||!n.overrides||!n.overrides[o])return a;var i=n.overrides[o],s=De({},a);return Object.keys(i).forEach(function(l){s[l]=ku(s[l],i[l])}),s},options:{}}}function ker(t,e,r){var n=t.state,o=t.stylesOptions;if(o.disableGeneration)return e||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var a=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,a=!0),e!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=e,a=!0),a&&(n.cacheClasses.value=dG({baseClasses:n.cacheClasses.lastJSS,newClasses:e,Component:r})),n.cacheClasses.value}function Eer(t,e){var r=t.state,n=t.theme,o=t.stylesOptions,a=t.stylesCreator,i=t.name;if(!o.disableGeneration){var s=Yd.get(o.sheetsManager,a,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Yd.set(o.sheetsManager,a,n,s));var l=De({},a.options,o,{theme:n,flip:typeof o.flip=="boolean"?o.flip:n.direction==="rtl"});l.generateId=l.serverGenerateClassName||l.generateClassName;var d=o.sheetsRegistry;if(s.refs===0){var h;o.sheetsCache&&(h=Yd.get(o.sheetsCache,a,n));var u=a.create(n,i);h||(h=o.jss.createStyleSheet(u,De({link:!1},l)),h.attach(),o.sheetsCache&&Yd.set(o.sheetsCache,a,n,h)),d&&d.add(h),s.staticSheet=h,s.dynamicStyles=tG(u)}if(s.dynamicStyles){var f=o.jss.createStyleSheet(s.dynamicStyles,De({link:!0},l));f.update(e),f.attach(),r.dynamicSheet=f,r.classes=dG({baseClasses:s.staticSheet.classes,newClasses:f.classes}),d&&d.add(f)}else r.classes=s.staticSheet.classes;s.refs+=1}}function Ter(t,e){var r=t.state;r.dynamicSheet&&r.dynamicSheet.update(e)}function Oer(t){var e=t.state,r=t.theme,n=t.stylesOptions,o=t.stylesCreator;if(!n.disableGeneration){var a=Yd.get(n.sheetsManager,o,r);a.refs-=1;var i=n.sheetsRegistry;a.refs===0&&(Yd.delete(n.sheetsManager,o,r),n.jss.removeStyleSheet(a.staticSheet),i&&i.remove(a.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),i&&i.remove(e.dynamicSheet))}}function Der(t,e){var r=m.useRef([]),n,o=m.useMemo(function(){return{}},e);r.current!==o&&(r.current=o,n=t()),m.useEffect(function(){return function(){n&&n()}},[o])}function Aer(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.name,n=e.classNamePrefix,o=e.Component,a=e.defaultTheme,i=a===void 0?Cer:a,s=ji(e,["name","classNamePrefix","Component","defaultTheme"]),l=$er(t),d=r||n||"makeStyles";l.options={index:Ser(),name:r,meta:d,classNamePrefix:d};var h=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=uG()||i,y=De({},m.useContext(xer),s),b=m.useRef(),x=m.useRef();Der(function(){var T={name:r,state:{},stylesCreator:l,stylesOptions:y,theme:g};return Eer(T,f),x.current=!1,b.current=T,function(){Oer(T)}},[g,l]),m.useEffect(function(){x.current&&Ter(b.current,f),x.current=!0});var S=ker(b.current,f.classes,o);return S};return h}function pG(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e1&&arguments[1]!==void 0?arguments[1]:{};return function(n){var o=r.defaultTheme,a=r.withTheme,i=a===void 0?!1:a,s=r.name,l=ji(r,["defaultTheme","withTheme","name"]),d=s,h=Aer(e,De({defaultTheme:o,Component:n,name:s||n.displayName,classNamePrefix:d},l)),u=m.forwardRef(function(g,y){g.classes;var b=g.innerRef,x=ji(g,["classes","innerRef"]),S=h(De({},n.defaultProps,g)),T,E=x;return(typeof s=="string"||i)&&(T=uG()||o,s&&(E=RZt({theme:T,name:s,props:x})),i&&!E.theme&&(E.theme=T)),m.createElement(n,De({ref:b||y,classes:S},E))});return bE(u,n),u}},Per=AZt();function Ner(t,e){return Mer(t,De({defaultTheme:Per},e))}var Rer=function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}},jer=A.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.dividers,i=a===void 0?!1:a,s=ji(e,["classes","className","dividers"]);return A.createElement("div",De({className:Ier(n.root,o,i&&n.dividers),ref:r},s))});const Ler=Ner(Rer,{name:"MuiDialogContent"})(jer),Ua={timeSpan:200,aggregate:250,autoRefresh:150,bigButton:200},Nn={mainDiv:{gap:2},fieldsContainer:{"& > div":{display:"flex",pr:"20px",width:200}},popOver:{padding:16},refreshSelect:{display:"inline-block","& > div:before":{borderWidth:0},"& > div:hover:before":{borderBottom:0}},refreshSelectButtonTitle:{display:"inline-flex",paddingTop:6},settingsButton:{color:"currentColor",fontSize:16,textTransform:"inherit",flexGrow:1},grow1:{flexGrow:2},aggregateIcon:{marginTop:4},divider:t=>({borderLeftColor:t.palette.mode==="dark"?"#CCC":"#444",borderLeftStyle:"dotted",borderLeftWidth:"1px",width:"1px",height:"80%"})},zer=t=>w.jsx(Re,{component:"div",sx:t.sx,title:t.tooltip,children:w.jsx(Bn,{variant:"standard",onChange:e=>t.updateValue(parseInt(e.target.value,10)),value:t.value.toString()||"",renderValue:t.renderValue,displayEmpty:!0,children:t.options?Object.keys(t.options).map(e=>w.jsx(Jt,{value:e,children:t.noTranslate?t.options[e]:P.t(t.options[e])},e)):null})}),i9={10:"10 minutes",30:"30 minutes",60:"1 hour",120:"2 hours",180:"3 hours",360:"6 hours",720:"12 hours",1440:"1 day",2880:"2 days",4320:"3 days",10080:"7 days",20160:"14 days","1m":"1 month","2m":"2 months","3m":"3 months","6m":"6 months","1y":"1 year","2y":"2 years"},s9={now:"now","1minute":"end of minute","5minutes":"end of 5 minutes","10minutes":"end of 10 minutes","30minutes":"end of 30 minutes","1hour":"end of hour","2hours":"end of 2 hours","3hours":"end of 3 hours","4hours":"end of 4 hours","6hours":"end of 6 hours","8hours":"end of 8 hours","12hours":"end of 12 hours",today:"end of day",weekEurope:"end of sunday",weekUsa:"end of saturday",week2Europe:"end of previous sunday",week2Usa:"end of previous saturday",month:"this month",year:"this year"},l9={"":"none",5:"5 seconds",10:"10 seconds",15:"15 seconds",20:"20 seconds",30:"30 seconds",60:"1 minute",120:"2 minutes",300:"5 minutes",600:"10 minutes",900:"15 minutes",1200:"20 minutes",1800:"30 minutes",3600:"1 hour",7200:"2 hours",10800:"3 hours",21600:"6 hours",43200:"12 hours",86400:"1 day"},Xk={auto:"Auto (Line or Steps)",line:"Line",bar:"Bar",polar:"Polar",scatterplot:"Scatter plot",steps:"Steps",stepsStart:"Steps on start",spline:"Spline"},Jk={minmax:"minmax",average:"average",min:"min",max:"max",total:"total",onchange:"raw",percentile:"percentile",integral:"integral",count:"count",none:"none",current:"current"};class Fer extends m.Component{constructor(r){super(r);X(this,"windowWidth");X(this,"toolbarRef");X(this,"handleResize",()=>{this.toolbarRef.current&&this.toolbarRef.current.clientWidth!==this.state.clientWidth&&this.setState({clientWidth:this.toolbarRef.current.clientWidth})});this.windowWidth=this.props.windowWidth,this.state={timeSpanOpened:!1,aggregateOpened:!1,clientWidth:0,showMore:!1},this.toolbarRef=m.createRef()}componentDidMount(){window.addEventListener("resize",this.handleResize)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}componentDidUpdate(){this.toolbarRef.current&&this.toolbarRef.current.clientWidth!==this.state.clientWidth&&(this.windowWidth=this.props.windowWidth,this.setState({clientWidth:this.toolbarRef.current.clientWidth}))}renderShowMore(){return this.state.showMore?w.jsxs(or,{maxWidth:"xs",fullWidth:!0,open:!0,onClose:()=>this.setState({showMore:!1}),children:[w.jsxs(Ler,{children:[this.renderTimeSpanElements(),this.renderAggregateElements(),this.renderAutoRefresh()]}),w.jsx(pr,{children:w.jsx(tt,{variant:"contained",onClick:()=>this.setState({showMore:!1}),startIcon:w.jsx(Ar,{}),children:P.t("Close")})})]}):null}renderTimeSpanElements(){return[w.jsx(Dt,{fullWidth:!0,value:this.props.presetData.timeType,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.timeType=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__timeType",r.toString())},label:"Type",options:{relative:"relative",static:"static"}},"time-type"),this.props.presetData.timeType==="static"?w.jsx(ty,{fullWidth:!0,date:this.props.presetData.start.toString(),time:this.props.presetData.start_time,updateValue:(r,n)=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.start=r,o.start_time=n,this.props.onChange(o),window.localStorage.setItem("App.echarts.__start",r),window.localStorage.setItem("App.echarts.__start_time",n)},label:"Start"},"static-start"):null,this.props.presetData.timeType==="static"?w.jsx(ty,{fullWidth:!0,date:this.props.presetData.end.toString(),time:this.props.presetData.end_time,updateValue:(r,n)=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.end=r,o.end_time=n,this.props.onChange(o),window.localStorage.setItem("App.echarts.__end",r),window.localStorage.setItem("App.echarts.__end_time",n)},label:"End"},"static-end"):null,this.props.presetData.timeType!=="static"?w.jsx(Dt,{fullWidth:!0,value:this.props.presetData.relativeEnd,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.relativeEnd=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__relativeEnd",r)},label:"End",options:s9},"non-static-end"):null,this.props.presetData.timeType!=="static"?w.jsx(Dt,{fullWidth:!0,value:this.props.presetData.range.toString(),updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.range=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__range",r)},label:"Range",options:i9},"non-static-range"):null]}renderTimeSpan(){return w.jsxs(w.Fragment,{children:[w.jsxs(tt,{color:"grey",title:P.t("Time span"),size:"small",style:Nn.settingsButton,id:"timeSpanOpenButton",onClick:()=>this.setState({timeSpanOpened:!this.state.timeSpanOpened}),children:[w.jsx(ive,{}),this.props.presetData.timeType==="relative"?`${P.t(i9[this.props.presetData.range])} ${P.t("to")} ${P.t(s9[this.props.presetData.relativeEnd])}`:`${this.props.presetData.start} ${this.props.presetData.start_time} - ${this.props.presetData.end} ${this.props.presetData.end_time}`,w.jsx(z5,{})]}),w.jsx(Re,{sx:Nn.divider}),w.jsx(WE,{style:Nn.popOver,open:this.state.timeSpanOpened,onClose:()=>{this.setState({timeSpanOpened:!1})},anchorEl:()=>document.getElementById("timeSpanOpenButton"),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:w.jsx("div",{style:Nn.popOver,children:w.jsx(Re,{component:"div",sx:Nn.fieldsContainer,children:this.renderTimeSpanElements()})})})]})}renderAggregateElements(){return[w.jsx(Dt,{fullWidth:!0,value:this.props.presetData.chartType,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.chartType=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__chartType",r)},label:"Chart type",options:Xk},"chart-type"),this.props.presetData.chartType!=="auto"?w.jsx(Dt,{fullWidth:!0,value:this.props.presetData.aggregate,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.aggregate=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__aggregate",r)},label:"Aggregate",options:Jk},"aggregate"):null,this.props.presetData.aggregate!=="onchange"?w.jsx(Dt,{fullWidth:!0,value:this.props.presetData.aggregateType,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.aggregateType=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__aggregateType",r)},label:"Step type",options:{count:"counts",step:"seconds"}},"aggregateType"):null,this.props.presetData.aggregate!=="onchange"?w.jsx(Er,{fullWidth:!0,value:this.props.presetData.aggregateSpan,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.aggregateSpan=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__aggregateSpan",r.toString())},label:this.props.presetData.aggregateType==="step"?"Seconds":"Counts"},"aggregateSpan"):null]}renderAggregate(){return w.jsxs(w.Fragment,{children:[w.jsxs(tt,{color:"grey",title:P.t("Aggregate"),size:"small",style:Nn.settingsButton,id:"aggregateOpenButton",onClick:()=>this.setState({aggregateOpened:!this.state.aggregateOpened}),children:[w.jsx(iZt,{style:Nn.aggregateIcon}),Xk[this.props.presetData.chartType]?P.t(Xk[this.props.presetData.chartType]):"","/",Jk[this.props.presetData.aggregate]?P.t(Jk[this.props.presetData.aggregate]):"",w.jsx(z5,{})]}),w.jsx(Re,{sx:Nn.divider}),w.jsx(WE,{open:this.state.aggregateOpened,anchorEl:()=>document.getElementById("aggregateOpenButton"),onClose:()=>{this.setState({aggregateOpened:!1})},children:w.jsx("div",{style:Nn.popOver,children:w.jsx(Re,{component:"div",sx:Nn.fieldsContainer,children:this.renderAggregateElements()})})})]})}renderAutoRefresh(){return this.props.presetData.timeType!=="relative"?null:w.jsx(zer,{sx:Nn.refreshSelect,value:this.props.presetData.live,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.live=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__live",r.toString())},tooltip:P.t("Auto-refresh"),options:l9,renderValue:()=>w.jsxs("div",{style:Nn.refreshSelectButtonTitle,children:[w.jsx(MO,{})," ",P.t(l9[this.props.presetData.live])]})})}render(){const r={timeSpan:!1,aggregate:!1,autoRefresh:!1,bigButton:!1};let n=!1;const o=(this.state.clientWidth||1024)-32-40-20,a=4,i=this.props.presetData.timeType==="relative"?1:0;return o>=Ua.timeSpan+Ua.aggregate+Ua.autoRefresh*i+Ua.bigButton+a*3?(r.timeSpan=!0,r.aggregate=!0,r.autoRefresh=!0,r.bigButton=!0):o>=Ua.timeSpan+Ua.aggregate+Ua.autoRefresh*i+48+a*3?(r.timeSpan=!0,r.aggregate=!0,r.autoRefresh=!!i,r.bigButton=!1):o>=Ua.timeSpan+Ua.aggregate+48+a*2?(r.timeSpan=!0,r.aggregate=!0,n=!!i):(o>=Ua.timeSpan+48+a&&(r.timeSpan=!0),n=!0),w.jsxs(af,{ref:this.toolbarRef,style:Nn.mainDiv,variant:"dense",children:[this.renderShowMore(),r.timeSpan?this.renderTimeSpan():null,r.aggregate?this.renderAggregate():null,r.autoRefresh?w.jsxs(w.Fragment,{children:[this.renderAutoRefresh(),w.jsx(Re,{sx:Nn.divider})]}):null,w.jsx("div",{style:Nn.grow1}),n?w.jsx(Ie,{size:"small",title:P.t("Show controls"),onClick:()=>this.setState({showMore:!0}),children:w.jsx(Ave,{})}):null,r.bigButton?w.jsx(tt,{variant:"contained",color:"primary",onClick:()=>this.props.onCreatePreset(!0),startIcon:w.jsx(Nv,{}),style:{whiteSpace:"nowrap"},children:P.t("Create preset")}):w.jsx(Ie,{size:"small",color:"primary",title:P.t("Create preset"),onClick:()=>this.props.onCreatePreset(!0),children:w.jsx(Nv,{})})]})}}const c9={darkBackground:{stroke:"#3a3a3a !important",fill:"#515151 !important"},iframe:t=>({width:"100%",height:"100%",overflow:"auto",border:0,color:t.palette.primary.main})};class Ber extends m.Component{constructor(){super(...arguments);X(this,"ready",!1);X(this,"refIframe",null);X(this,"lastPresetData","");X(this,"onReceiveMessage",r=>{var n;(r==null?void 0:r.data)==="chartReady"&&(this.ready=!0,this.lastPresetData=JSON.stringify(this.props.presetData),(n=this.refIframe.contentWindow)==null||n.postMessage(this.lastPresetData,"*"),console.log("Received ready from iframe"))})}componentDidMount(){window.addEventListener("message",this.onReceiveMessage,!1)}componentWillUnmount(){window.removeEventListener("message",this.onReceiveMessage,!1)}render(){var r;return window.location.port==="3000"?w.jsx(zn,{sx:c9.iframe,style:{background:"#333"},children:w.jsx("pre",{children:JSON.stringify(this.props.presetData,null,2)})}):(this.lastPresetData!==JSON.stringify(this.props.presetData)&&this.ready&&(this.lastPresetData=JSON.stringify(this.props.presetData),(r=this.refIframe.contentWindow)==null||r.postMessage(this.lastPresetData,"*")),w.jsx("iframe",{ref:n=>{this.refIframe=n},title:"iobrokerChart",style:ue.getStyle(this.props.theme,c9.iframe),src:this.props.src}))}}const Yk={container:{height:"100%",width:"100%",overflow:"hidden"},heightWithoutToolbar:{height:"calc(100% - 48px)"},height100:{height:"100%"}};class Wer extends m.Component{renderToolbar(){return this.props.selectedId&&typeof this.props.selectedId=="string"?null:w.jsx(Fer,{windowWidth:this.props.windowWidth,onChange:this.props.onChange,presetData:this.props.presetData,onCreatePreset:(e,r)=>this.props.onCreatePreset(e,r)})}getChartFrame(){const e=(window.location.search||"").includes("dev=true")?"http://localhost:3000/":"chart/",r=JSON.parse(JSON.stringify(this.props.presetData));return typeof this.props.selectedId=="object"&&r.l&&(delete r.l[0].aggregate,delete r.l[0].chartType),w.jsx("div",{style:typeof this.props.selectedId!="string"?Yk.heightWithoutToolbar:Yk.height100,children:this.props.visible?w.jsx(Ber,{src:`${e}index.html?edit=1`,presetData:r,theme:this.props.theme}):w.jsx(zve,{style:{height:"100%",width:"100%"}})})}render(){return w.jsx(uE,{injectFirst:!0,children:w.jsx(yE,{theme:this.props.theme,children:w.jsxs("div",{style:Yk.container,children:[this.renderToolbar(),this.getChartFrame()]})})})}}function Her(){const t=(window.location.search||"").replace(/^\?/,"").split("&"),e={};return t.forEach(r=>{const[n,o]=r.split("=");e[decodeURIComponent(n)]=o!==void 0?decodeURIComponent(o):!0}),e}const hG=A.createContext({dragDropManager:void 0});function At(t,e,...r){if(Uer()&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){let n;if(e===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let o=0;n=new Error(e.replace(/%s/g,function(){return r[o++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}}function Uer(){return typeof process<"u"&&!0}function Ver(t,e,r){return e.split(".").reduce((n,o)=>n&&n[o]?n[o]:r||null,t)}function qer(t,e){return t.filter(r=>r!==e)}function fG(t){return typeof t=="object"}function Ger(t,e){const r=new Map,n=a=>{r.set(a,r.has(a)?r.get(a)+1:1)};t.forEach(n),e.forEach(n);const o=[];return r.forEach((a,i)=>{a===1&&o.push(i)}),o}function Xer(t,e){return t.filter(r=>e.indexOf(r)>-1)}const kA="dnd-core/INIT_COORDS",$_="dnd-core/BEGIN_DRAG",EA="dnd-core/PUBLISH_DRAG_SOURCE",k_="dnd-core/HOVER",E_="dnd-core/DROP",T_="dnd-core/END_DRAG";function d9(t,e){return{type:kA,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const Jer={type:kA,payload:{clientOffset:null,sourceClientOffset:null}};function Yer(t){return function(r=[],n={publishSource:!0}){const{publishSource:o=!0,clientOffset:a,getSourceClientOffset:i}=n,s=t.getMonitor(),l=t.getRegistry();t.dispatch(d9(a)),Ker(r,s,l);const d=etr(r,s);if(d==null){t.dispatch(Jer);return}let h=null;if(a){if(!i)throw new Error("getSourceClientOffset must be defined");Zer(i),h=i(d)}t.dispatch(d9(a,h));const f=l.getSource(d).beginDrag(s,d);if(f==null)return;Qer(f),l.pinSource(d);const g=l.getSourceType(d);return{type:$_,payload:{itemType:g,item:f,sourceId:d,clientOffset:a||null,sourceClientOffset:h||null,isSourcePublic:!!o}}}}function Ker(t,e,r){At(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){At(r.getSource(n),"Expected sourceIds to be registered.")})}function Zer(t){At(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Qer(t){At(fG(t),"Item must be an object.")}function etr(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function ttr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rtr(t){for(var e=1;e{const l=atr(i,s,o,n),d={type:E_,payload:{dropResult:rtr({},r,l)}};t.dispatch(d)})}}function otr(t){At(t.isDragging(),"Cannot call drop while not dragging."),At(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function atr(t,e,r,n){const o=r.getTarget(t);let a=o?o.drop(n,t):void 0;return itr(a),typeof a>"u"&&(a=e===0?{}:n.getDropResult()),a}function itr(t){At(typeof t>"u"||fG(t),"Drop result must either be an object or undefined.")}function str(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function ltr(t){return function(){const r=t.getMonitor(),n=t.getRegistry();ctr(r);const o=r.getSourceId();return o!=null&&(n.getSource(o,!0).endDrag(r,o),n.unpinSource()),{type:T_}}}function ctr(t){At(t.isDragging(),"Cannot call endDrag while not dragging.")}function aT(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function dtr(t){return function(r,{clientOffset:n}={}){utr(r);const o=r.slice(0),a=t.getMonitor(),i=t.getRegistry(),s=a.getItemType();return htr(o,i,s),ptr(o,a,i),ftr(o,a,i),{type:k_,payload:{targetIds:o,clientOffset:n||null}}}}function utr(t){At(Array.isArray(t),"Expected targetIds to be an array.")}function ptr(t,e,r){At(e.isDragging(),"Cannot call hover while not dragging."),At(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n=0;n--){const o=t[n],a=e.getTargetType(o);aT(a,r)||t.splice(n,1)}}function ftr(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function mtr(t){return function(){if(t.getMonitor().isDragging())return{type:EA}}}function gtr(t){return{beginDrag:Yer(t),publishDragSource:mtr(t),hover:dtr(t),drop:ntr(t),endDrag:ltr(t)}}class vtr{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(a){return(...i)=>{const s=a.apply(e,i);typeof s<"u"&&r(s)}}const o=gtr(this);return Object.keys(o).reduce((a,i)=>{const s=o[i];return a[i]=n(s),a},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function ytr(t,e){return{x:t.x+e.x,y:t.y+e.y}}function mG(t,e){return{x:t.x-e.x,y:t.y-e.y}}function _tr(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:mG(ytr(e,n),r)}function btr(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:mG(e,r)}const Bh=[],TA=[];Bh.__IS_NONE__=!0;TA.__IS_ALL__=!0;function wtr(t,e){return t===Bh?!1:t===TA||typeof e>"u"?!0:Xer(e,t).length>0}class xtr{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;At(typeof e=="function","listener must be a function."),At(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let o=this.store.getState().stateId;const a=()=>{const i=this.store.getState(),s=i.stateId;try{s===o||s===o+1&&!wtr(i.dirtyHandlerIds,n)||e()}finally{o=s}};return this.store.subscribe(a)}subscribeToOffsetChange(e){At(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const o=this.store.getState().dragOffset;o!==r&&(r=o,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return At(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(At(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),o=this.getItemType();return aT(n,o)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(At(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),o=this.getItemType();return n!==o?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const o=this.registry.getTargetType(e),a=this.getItemType();if(a&&!aT(o,a))return!1;const i=this.getTargetIds();if(!i.length)return!1;const s=i.indexOf(e);return n?s===i.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return _tr(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return btr(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const u9=typeof global<"u"?global:self,gG=u9.MutationObserver||u9.WebKitMutationObserver;function vG(t){return function(){const r=setTimeout(o,0),n=setInterval(o,50);function o(){clearTimeout(r),clearInterval(n),t()}}}function Str(t){let e=1;const r=new gG(t),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){e=-e,n.data=e}}const Ctr=typeof gG=="function"?Str:vG;class $tr{enqueueTask(e){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.indexthis.capacity){for(let n=0,o=e.length-this.index;n{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Ctr(this.flush),this.requestErrorThrow=vG(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class ktr{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,r){this.onError=e,this.release=r,this.task=null}}class Etr{create(e){const r=this.freeTasks,n=r.length?r.pop():new ktr(this.onError,o=>r[r.length]=o);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}const yG=new $tr,Ttr=new Etr(yG.registerPendingError);function Otr(t){yG.enqueueTask(Ttr.create(t))}const OA="dnd-core/ADD_SOURCE",DA="dnd-core/ADD_TARGET",AA="dnd-core/REMOVE_SOURCE",O_="dnd-core/REMOVE_TARGET";function Dtr(t){return{type:OA,payload:{sourceId:t}}}function Atr(t){return{type:DA,payload:{targetId:t}}}function Itr(t){return{type:AA,payload:{sourceId:t}}}function Mtr(t){return{type:O_,payload:{targetId:t}}}function Ptr(t){At(typeof t.canDrag=="function","Expected canDrag to be a function."),At(typeof t.beginDrag=="function","Expected beginDrag to be a function."),At(typeof t.endDrag=="function","Expected endDrag to be a function.")}function Ntr(t){At(typeof t.canDrop=="function","Expected canDrop to be a function."),At(typeof t.hover=="function","Expected hover to be a function."),At(typeof t.drop=="function","Expected beginDrag to be a function.")}function iT(t,e){if(e&&Array.isArray(t)){t.forEach(r=>iT(r,!1));return}At(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var qo;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(qo||(qo={}));let Rtr=0;function jtr(){return Rtr++}function Ltr(t){const e=jtr().toString();switch(t){case qo.SOURCE:return`S${e}`;case qo.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function p9(t){switch(t[0]){case"S":return qo.SOURCE;case"T":return qo.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function h9(t,e){const r=t.entries();let n=!1;do{const{done:o,value:[,a]}=r.next();if(a===e)return!0;n=!!o}while(!n);return!1}class ztr{addSource(e,r){iT(e),Ptr(r);const n=this.addHandler(qo.SOURCE,e,r);return this.store.dispatch(Dtr(n)),n}addTarget(e,r){iT(e,!0),Ntr(r);const n=this.addHandler(qo.TARGET,e,r);return this.store.dispatch(Atr(n)),n}containsHandler(e){return h9(this.dragSources,e)||h9(this.dropTargets,e)}getSource(e,r=!1){return At(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return At(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return At(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return At(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return p9(e)===qo.SOURCE}isTargetId(e){return p9(e)===qo.TARGET}removeSource(e){At(this.getSource(e),"Expected an existing source."),this.store.dispatch(Itr(e)),Otr(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){At(this.getTarget(e),"Expected an existing target."),this.store.dispatch(Mtr(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);At(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){At(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const o=Ltr(e);return this.types.set(o,r),e===qo.SOURCE?this.dragSources.set(o,n):e===qo.TARGET&&this.dropTargets.set(o,n),o}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Ftr=(t,e)=>t===e;function Btr(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Wtr(t,e,r=Ftr){if(t.length!==e.length)return!1;for(let n=0;n0||!Wtr(r,n)))return Bh;const i=n[n.length-1],s=r[r.length-1];return i!==s&&(i&&o.push(i),s&&o.push(s)),o}function Utr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vtr(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function orr(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}let m9=0;const iv=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var arr=A.memo(function(e){var{children:r}=e,n=nrr(e,["children"]);const[o,a]=irr(n);return A.useEffect(()=>{if(a){const i=_G();return++m9,()=>{--m9===0&&(i[iv]=null)}}},[]),w.jsx(hG.Provider,{value:o,children:r})});function irr(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=srr(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[e,r]}function srr(t,e=_G(),r,n){const o=e;return o[iv]||(o[iv]={dragDropManager:trr(t,e,r,n)}),o[iv]}function _G(){return typeof global<"u"?global:window}var Kk,g9;function lrr(){return g9||(g9=1,Kk=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;o--!==0;){var i=a[o];if(!t(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}),Kk}var crr=lrr();const drr=so(crr),Wl=typeof window<"u"?A.useLayoutEffect:A.useEffect;function urr(t,e,r){const[n,o]=A.useState(()=>e(t)),a=A.useCallback(()=>{const i=e(t);drr(n,i)||(o(i),r&&r())},[n,t,r]);return Wl(a),[n,a]}function prr(t,e,r){const[n,o]=urr(t,e,r);return Wl(function(){const i=t.getHandlerId();if(i!=null)return t.subscribeToStateChange(o,{handlerIds:[i]})},[t,o]),n}function bG(t,e,r){return prr(e,t||(()=>({})),()=>r.reconnect())}function wG(t,e){const r=[];return typeof t!="function"&&r.push(t),A.useMemo(()=>typeof t=="function"?t():t,r)}function hrr(t){return A.useMemo(()=>t.hooks.dragSource(),[t])}function frr(t){return A.useMemo(()=>t.hooks.dragPreview(),[t])}let Zk=!1,Qk=!1;class mrr{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){At(!Zk,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Zk=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Zk=!1}}isDragging(){if(!this.sourceId)return!1;At(!Qk,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Qk=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Qk=!1}}subscribeToStateChange(e,r){return this.internalMonitor.subscribeToStateChange(e,r)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,r){return this.internalMonitor.isOverTarget(e,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let eE=!1;class grr{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,r){return this.internalMonitor.subscribeToStateChange(e,r)}canDrop(){if(!this.targetId)return!1;At(!eE,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return eE=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{eE=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function vrr(t,e,r){const n=r.getRegistry(),o=n.addTarget(t,e);return[o,()=>n.removeTarget(o)]}function yrr(t,e,r){const n=r.getRegistry(),o=n.addSource(t,e);return[o,()=>n.removeSource(o)]}function sT(t,e,r,n){let o;if(o!==void 0)return!!o;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const a=Object.keys(t),i=Object.keys(e);if(a.length!==i.length)return!1;const s=Object.prototype.hasOwnProperty.bind(e);for(let l=0;l, or turn it into a drag source or a drop target itself.`)}function brr(t){return(e=null,r=null)=>{if(!A.isValidElement(e)){const a=e;return t(a,r),a}const n=e;return _rr(n),wrr(n,r?a=>t(a,r):t)}}function xG(t){const e={};return Object.keys(t).forEach(r=>{const n=t[r];if(r.endsWith("Ref"))e[r]=t[r];else{const o=brr(n);e[r]=()=>o}}),e}function v9(t,e){typeof t=="function"?t(e):t.current=e}function wrr(t,e){const r=t.ref;return At(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
',Uke=Number.isNaN||is.isNaN;function Bt(t){return typeof t=="number"&&!Uke(t)}var Uj=function(e){return e>0&&e<1/0};function eD(t){return typeof t>"u"}function _d(t){return o$(t)==="object"&&t!==null}var Vke=Object.prototype.hasOwnProperty;function Sh(t){if(!_d(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&Vke.call(r,"isPrototypeOf")}catch{return!1}}function Ta(t){return typeof t=="function"}var Yke=Array.prototype.slice;function tX(t){return Array.from?Array.from(t):Yke.call(t)}function nn(t,e){return t&&Ta(e)&&(Array.isArray(t)||Bt(t.length)?tX(t).forEach(function(r,n){e.call(t,r,n,t)}):_d(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var Nr=Object.assign||function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a0&&n.forEach(function(o){_d(o)&&Object.keys(o).forEach(function(i){e[i]=o[i]})}),e},Gke=/\.\d*(?:0|9){12}\d*$/;function Ah(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Gke.test(t)?Math.round(t*e)/e:t}var qke=/^width|height|left|top|marginLeft|marginTop$/;function hc(t,e){var r=t.style;nn(e,function(n,a){qke.test(a)&&Bt(n)&&(n="".concat(n,"px")),r[a]=n})}function Xke(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function gn(t,e){if(e){if(Bt(t.length)){nn(t,function(n){gn(n,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?r.indexOf(e)<0&&(t.className="".concat(r," ").concat(e)):t.className=e}}function rs(t,e){if(e){if(Bt(t.length)){nn(t,function(r){rs(r,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function xh(t,e,r){if(e){if(Bt(t.length)){nn(t,function(n){xh(n,e,r)});return}r?gn(t,e):rs(t,e)}}var Jke=/([a-z\d])([A-Z])/g;function BI(t){return t.replace(Jke,"$1-$2").toLowerCase()}function p$(t,e){return _d(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(BI(e)))}function hg(t,e,r){_d(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(BI(e)),r)}function Kke(t,e){if(_d(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(BI(e)))}var rX=/\s\s*/,nX=function(){var t=!1;if(SS){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(o){e=o}});is.addEventListener("test",r,n),is.removeEventListener("test",r,n)}return t}();function Ko(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r;e.trim().split(rX).forEach(function(o){if(!nX){var i=t.listeners;i&&i[o]&&i[o][r]&&(a=i[o][r],delete i[o][r],Object.keys(i[o]).length===0&&delete i[o],Object.keys(i).length===0&&delete t.listeners)}t.removeEventListener(o,a,n)})}function po(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r;e.trim().split(rX).forEach(function(o){if(n.once&&!nX){var i=t.listeners,s=i===void 0?{}:i;a=function(){delete s[o][r],t.removeEventListener(o,a,n);for(var c=arguments.length,d=new Array(c),u=0;uMath.abs(r)&&(r=f)})}),r}function w0(t,e){var r=t.pageX,n=t.pageY,a={endX:r,endY:n};return e?a:Vq({startX:r,startY:n},a)}function e2e(t){var e=0,r=0,n=0;return nn(t,function(a){var o=a.startX,i=a.startY;e+=o,r+=i,n+=1}),e/=n,r/=n,{pageX:e,pageY:r}}function pc(t){var e=t.aspectRatio,r=t.height,n=t.width,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",o=Uj(n),i=Uj(r);if(o&&i){var s=r*e;a==="contain"&&s>n||a==="cover"&&s90?{width:l,height:s}:{width:s,height:l}}function r2e(t,e,r,n){var a=e.aspectRatio,o=e.naturalWidth,i=e.naturalHeight,s=e.rotate,l=s===void 0?0:s,c=e.scaleX,d=c===void 0?1:c,u=e.scaleY,f=u===void 0?1:u,p=r.aspectRatio,m=r.naturalWidth,g=r.naturalHeight,_=n.fillColor,b=_===void 0?"transparent":_,w=n.imageSmoothingEnabled,S=w===void 0?!0:w,x=n.imageSmoothingQuality,E=x===void 0?"low":x,T=n.maxWidth,D=T===void 0?1/0:T,A=n.maxHeight,P=A===void 0?1/0:A,O=n.minWidth,I=O===void 0?0:O,F=n.minHeight,N=F===void 0?0:F,B=document.createElement("canvas"),j=B.getContext("2d"),V=pc({aspectRatio:p,width:D,height:P}),Q=pc({aspectRatio:p,width:I,height:N},"cover"),G=Math.min(V.width,Math.max(Q.width,m)),q=Math.min(V.height,Math.max(Q.height,g)),te=pc({aspectRatio:a,width:D,height:P}),z=pc({aspectRatio:a,width:I,height:N},"cover"),U=Math.min(te.width,Math.max(z.width,o)),Z=Math.min(te.height,Math.max(z.height,i)),K=[-U/2,-Z/2,U,Z];return B.width=Ah(G),B.height=Ah(q),j.fillStyle=b,j.fillRect(0,0,G,q),j.save(),j.translate(G/2,q/2),j.rotate(l*Math.PI/180),j.scale(d,f),j.imageSmoothingEnabled=S,j.imageSmoothingQuality=E,j.drawImage.apply(j,[t].concat(Gq(K.map(function(se){return Math.floor(Ah(se))})))),j.restore(),B}var oX=String.fromCharCode;function n2e(t,e,r){var n="";r+=e;for(var a=e;a0;)r.push(oX.apply(null,tX(a.subarray(0,n)))),a=a.subarray(n);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}function s2e(t){var e=new DataView(t),r;try{var n,a,o;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var i=e.byteLength,s=2;s+1=8&&(o=c+u)}}}if(o){var f=e.getUint16(o,n),p,m;for(m=0;m=0?o:Qq),height:Math.max(n.offsetHeight,i>=0?i:eX)};this.containerData=s,hc(a,{width:s.width,height:s.height}),gn(e,ka),rs(a,ka)},initCanvas:function(){var e=this.containerData,r=this.imageData,n=this.options.viewMode,a=Math.abs(r.rotate)%180===90,o=a?r.naturalHeight:r.naturalWidth,i=a?r.naturalWidth:r.naturalHeight,s=o/i,l=e.width,c=e.height;e.height*s>e.width?n===3?l=e.height*s:c=e.width/s:n===3?c=e.width/s:l=e.height*s;var d={aspectRatio:s,naturalWidth:o,naturalHeight:i,width:l,height:c};this.canvasData=d,this.limited=n===1||n===2,this.limitCanvas(!0,!0),d.width=Math.min(Math.max(d.width,d.minWidth),d.maxWidth),d.height=Math.min(Math.max(d.height,d.minHeight),d.maxHeight),d.left=(e.width-d.width)/2,d.top=(e.height-d.height)/2,d.oldLeft=d.left,d.oldTop=d.top,this.initialCanvasData=Nr({},d)},limitCanvas:function(e,r){var n=this.options,a=this.containerData,o=this.canvasData,i=this.cropBoxData,s=n.viewMode,l=o.aspectRatio,c=this.cropped&&i;if(e){var d=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;s>1?(d=Math.max(d,a.width),u=Math.max(u,a.height),s===3&&(u*l>d?d=u*l:u=d/l)):s>0&&(d?d=Math.max(d,c?i.width:0):u?u=Math.max(u,c?i.height:0):c&&(d=i.width,u=i.height,u*l>d?d=u*l:u=d/l));var f=pc({aspectRatio:l,width:d,height:u});d=f.width,u=f.height,o.minWidth=d,o.minHeight=u,o.maxWidth=1/0,o.maxHeight=1/0}if(r)if(s>(c?0:1)){var p=a.width-o.width,m=a.height-o.height;o.minLeft=Math.min(0,p),o.minTop=Math.min(0,m),o.maxLeft=Math.max(0,p),o.maxTop=Math.max(0,m),c&&this.limited&&(o.minLeft=Math.min(i.left,i.left+(i.width-o.width)),o.minTop=Math.min(i.top,i.top+(i.height-o.height)),o.maxLeft=i.left,o.maxTop=i.top,s===2&&(o.width>=a.width&&(o.minLeft=Math.min(0,p),o.maxLeft=Math.max(0,p)),o.height>=a.height&&(o.minTop=Math.min(0,m),o.maxTop=Math.max(0,m))))}else o.minLeft=-o.width,o.minTop=-o.height,o.maxLeft=a.width,o.maxTop=a.height},renderCanvas:function(e,r){var n=this.canvasData,a=this.imageData;if(r){var o=t2e({width:a.naturalWidth*Math.abs(a.scaleX||1),height:a.naturalHeight*Math.abs(a.scaleY||1),degree:a.rotate||0}),i=o.width,s=o.height,l=n.width*(i/n.naturalWidth),c=n.height*(s/n.naturalHeight);n.left-=(l-n.width)/2,n.top-=(c-n.height)/2,n.width=l,n.height=c,n.aspectRatio=i/s,n.naturalWidth=i,n.naturalHeight=s,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heightr.width?o.height=o.width/n:o.width=o.height*n),this.cropBoxData=o,this.limitCropBox(!0,!0),o.width=Math.min(Math.max(o.width,o.minWidth),o.maxWidth),o.height=Math.min(Math.max(o.height,o.minHeight),o.maxHeight),o.width=Math.max(o.minWidth,o.width*a),o.height=Math.max(o.minHeight,o.height*a),o.left=r.left+(r.width-o.width)/2,o.top=r.top+(r.height-o.height)/2,o.oldLeft=o.left,o.oldTop=o.top,this.initialCropBoxData=Nr({},o)},limitCropBox:function(e,r){var n=this.options,a=this.containerData,o=this.canvasData,i=this.cropBoxData,s=this.limited,l=n.aspectRatio;if(e){var c=Number(n.minCropBoxWidth)||0,d=Number(n.minCropBoxHeight)||0,u=s?Math.min(a.width,o.width,o.width+o.left,a.width-o.left):a.width,f=s?Math.min(a.height,o.height,o.height+o.top,a.height-o.top):a.height;c=Math.min(c,a.width),d=Math.min(d,a.height),l&&(c&&d?d*l>c?d=c/l:c=d*l:c?d=c/l:d&&(c=d*l),f*l>u?f=u/l:u=f*l),i.minWidth=Math.min(c,u),i.minHeight=Math.min(d,f),i.maxWidth=u,i.maxHeight=f}r&&(s?(i.minLeft=Math.max(0,o.left),i.minTop=Math.max(0,o.top),i.maxLeft=Math.min(a.width,o.left+o.width)-i.width,i.maxTop=Math.min(a.height,o.top+o.height)-i.height):(i.minLeft=0,i.minTop=0,i.maxLeft=a.width-i.width,i.maxTop=a.height-i.height))},renderCropBox:function(){var e=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=r.width&&n.height>=r.height?Xq:FI),hc(this.cropBox,Nr({width:n.width,height:n.height},Bm({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Ph(this.element,c$,this.getData())}},u2e={initPreview:function(){var e=this.element,r=this.crossOrigin,n=this.options.preview,a=r?this.crossOriginUrl:this.url,o=e.alt||"The image to preview",i=document.createElement("img");if(r&&(i.crossOrigin=r),i.src=a,i.alt=o,this.viewBox.appendChild(i),this.viewBoxImage=i,!!n){var s=n;typeof n=="string"?s=e.ownerDocument.querySelectorAll(n):n.querySelector&&(s=[n]),this.previews=s,nn(s,function(l){var c=document.createElement("img");hg(l,b0,{width:l.offsetWidth,height:l.offsetHeight,html:l.innerHTML}),r&&(c.crossOrigin=r),c.src=a,c.alt=o,c.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;"',l.innerHTML="",l.appendChild(c)})}},resetPreview:function(){nn(this.previews,function(e){var r=p$(e,b0);hc(e,{width:r.width,height:r.height}),e.innerHTML=r.html,Kke(e,b0)})},preview:function(){var e=this.imageData,r=this.canvasData,n=this.cropBoxData,a=n.width,o=n.height,i=e.width,s=e.height,l=n.left-r.left-e.left,c=n.top-r.top-e.top;!this.cropped||this.disabled||(hc(this.viewBoxImage,Nr({width:i,height:s},Bm(Nr({translateX:-l,translateY:-c},e)))),nn(this.previews,function(d){var u=p$(d,b0),f=u.width,p=u.height,m=f,g=p,_=1;a&&(_=f/a,g=o*_),o&&g>p&&(_=p/o,m=a*_,g=p),hc(d,{width:m,height:g}),hc(d.getElementsByTagName("img")[0],Nr({width:i*_,height:s*_},Bm(Nr({translateX:-l*_,translateY:-c*_},e))))}))}},d2e={bind:function(){var e=this.element,r=this.options,n=this.cropper;Ta(r.cropstart)&&po(e,f$,r.cropstart),Ta(r.cropmove)&&po(e,d$,r.cropmove),Ta(r.cropend)&&po(e,u$,r.cropend),Ta(r.crop)&&po(e,c$,r.crop),Ta(r.zoom)&&po(e,h$,r.zoom),po(n,Lj,this.onCropStart=this.cropStart.bind(this)),r.zoomable&&r.zoomOnWheel&&po(n,jj,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&po(n,Rj,this.onDblclick=this.dblclick.bind(this)),po(e.ownerDocument,Nj,this.onCropMove=this.cropMove.bind(this)),po(e.ownerDocument,Fj,this.onCropEnd=this.cropEnd.bind(this)),r.responsive&&po(window,Bj,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,r=this.options,n=this.cropper;Ta(r.cropstart)&&Ko(e,f$,r.cropstart),Ta(r.cropmove)&&Ko(e,d$,r.cropmove),Ta(r.cropend)&&Ko(e,u$,r.cropend),Ta(r.crop)&&Ko(e,c$,r.crop),Ta(r.zoom)&&Ko(e,h$,r.zoom),Ko(n,Lj,this.onCropStart),r.zoomable&&r.zoomOnWheel&&Ko(n,jj,this.onWheel,{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&Ko(n,Rj,this.onDblclick),Ko(e.ownerDocument,Nj,this.onCropMove),Ko(e.ownerDocument,Fj,this.onCropEnd),r.responsive&&Ko(window,Bj,this.onResize)}},f2e={resize:function(){if(!this.disabled){var e=this.options,r=this.container,n=this.containerData,a=r.offsetWidth/n.width,o=r.offsetHeight/n.height,i=Math.abs(a-1)>Math.abs(o-1)?a:o;if(i!==1){var s,l;e.restore&&(s=this.getCanvasData(),l=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(nn(s,function(c,d){s[d]=c*i})),this.setCropBoxData(nn(l,function(c,d){l[d]=c*i})))}}},dblclick:function(){this.disabled||this.options.dragMode===Zq||this.setDragMode(Xke(this.dragBox,s$)?Kq:zI)},wheel:function(e){var r=this,n=Number(this.options.wheelZoomRatio)||.1,a=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50),e.deltaY?a=e.deltaY>0?1:-1:e.wheelDelta?a=-e.wheelDelta/120:e.detail&&(a=e.detail>0?1:-1),this.zoom(-a*n,e)))},cropStart:function(e){var r=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(Bt(r)&&r!==1||Bt(n)&&n!==0||e.ctrlKey))){var a=this.options,o=this.pointers,i;e.changedTouches?nn(e.changedTouches,function(s){o[s.identifier]=w0(s)}):o[e.pointerId||0]=w0(e),Object.keys(o).length>1&&a.zoomable&&a.zoomOnTouch?i=Jq:i=p$(e.target,fg),zke.test(i)&&Ph(this.element,f$,{originalEvent:e,action:i})!==!1&&(e.preventDefault(),this.action=i,this.cropping=!1,i===qq&&(this.cropping=!0,gn(this.dragBox,R1)))}},cropMove:function(e){var r=this.action;if(!(this.disabled||!r)){var n=this.pointers;e.preventDefault(),Ph(this.element,d$,{originalEvent:e,action:r})!==!1&&(e.changedTouches?nn(e.changedTouches,function(a){Nr(n[a.identifier]||{},w0(a,!0))}):Nr(n[e.pointerId||0]||{},w0(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var r=this.action,n=this.pointers;e.changedTouches?nn(e.changedTouches,function(a){delete n[a.identifier]}):delete n[e.pointerId||0],r&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,xh(this.dragBox,R1,this.cropped&&this.options.modal)),Ph(this.element,u$,{originalEvent:e,action:r}))}}},h2e={change:function(e){var r=this.options,n=this.canvasData,a=this.containerData,o=this.cropBoxData,i=this.pointers,s=this.action,l=r.aspectRatio,c=o.left,d=o.top,u=o.width,f=o.height,p=c+u,m=d+f,g=0,_=0,b=a.width,w=a.height,S=!0,x;!l&&e.shiftKey&&(l=u&&f?u/f:1),this.limited&&(g=o.minLeft,_=o.minTop,b=g+Math.min(a.width,n.width,n.left+n.width),w=_+Math.min(a.height,n.height,n.top+n.height));var E=i[Object.keys(i)[0]],T={x:E.endX-E.startX,y:E.endY-E.startY},D=function(P){switch(P){case cu:p+T.x>b&&(T.x=b-p);break;case uu:c+T.xw&&(T.y=w-m);break}};switch(s){case FI:c+=T.x,d+=T.y;break;case cu:if(T.x>=0&&(p>=b||l&&(d<=_||m>=w))){S=!1;break}D(cu),u+=T.x,u<0&&(s=uu,u=-u,c-=u),l&&(f=u/l,d+=(o.height-f)/2);break;case ql:if(T.y<=0&&(d<=_||l&&(c<=g||p>=b))){S=!1;break}D(ql),f-=T.y,d+=T.y,f<0&&(s=Of,f=-f,d-=f),l&&(u=f*l,c+=(o.width-u)/2);break;case uu:if(T.x<=0&&(c<=g||l&&(d<=_||m>=w))){S=!1;break}D(uu),u-=T.x,c+=T.x,u<0&&(s=cu,u=-u,c-=u),l&&(f=u/l,d+=(o.height-f)/2);break;case Of:if(T.y>=0&&(m>=w||l&&(c<=g||p>=b))){S=!1;break}D(Of),f+=T.y,f<0&&(s=ql,f=-f,d-=f),l&&(u=f*l,c+=(o.width-u)/2);break;case Dv:if(l){if(T.y<=0&&(d<=_||p>=b)){S=!1;break}D(ql),f-=T.y,d+=T.y,u=f*l}else D(ql),D(cu),T.x>=0?p_&&(f-=T.y,d+=T.y):(f-=T.y,d+=T.y);u<0&&f<0?(s=$v,f=-f,u=-u,d-=f,c-=u):u<0?(s=Mv,u=-u,c-=u):f<0&&(s=Ov,f=-f,d-=f);break;case Mv:if(l){if(T.y<=0&&(d<=_||c<=g)){S=!1;break}D(ql),f-=T.y,d+=T.y,u=f*l,c+=o.width-u}else D(ql),D(uu),T.x<=0?c>g?(u-=T.x,c+=T.x):T.y<=0&&d<=_&&(S=!1):(u-=T.x,c+=T.x),T.y<=0?d>_&&(f-=T.y,d+=T.y):(f-=T.y,d+=T.y);u<0&&f<0?(s=Ov,f=-f,u=-u,d-=f,c-=u):u<0?(s=Dv,u=-u,c-=u):f<0&&(s=$v,f=-f,d-=f);break;case $v:if(l){if(T.x<=0&&(c<=g||m>=w)){S=!1;break}D(uu),u-=T.x,c+=T.x,f=u/l}else D(Of),D(uu),T.x<=0?c>g?(u-=T.x,c+=T.x):T.y>=0&&m>=w&&(S=!1):(u-=T.x,c+=T.x),T.y>=0?m=0&&(p>=b||m>=w)){S=!1;break}D(cu),u+=T.x,f=u/l}else D(Of),D(cu),T.x>=0?p=0&&m>=w&&(S=!1):u+=T.x,T.y>=0?m0?s=T.y>0?Ov:Dv:T.x<0&&(c-=u,s=T.y>0?$v:Mv),T.y<0&&(d-=f),this.cropped||(rs(this.cropBox,ka),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}S&&(o.width=u,o.height=f,o.left=c,o.top=d,this.action=s,this.renderCropBox()),nn(i,function(A){A.startX=A.endX,A.startY=A.endY})}},p2e={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&gn(this.dragBox,R1),rs(this.cropBox,ka),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Nr({},this.initialImageData),this.canvasData=Nr({},this.initialCanvasData),this.cropBoxData=Nr({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Nr(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),rs(this.dragBox,R1),gn(this.cropBox,ka)),this},replace:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),r?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,nn(this.previews,function(n){n.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,rs(this.cropper,Pj)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,gn(this.cropper,Pj)),this},destroy:function(){var e=this.element;return e[Pr]?(e[Pr]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,a=n.left,o=n.top;return this.moveTo(eD(e)?e:a+Number(e),eD(r)?r:o+Number(r))},moveTo:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,a=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.movable&&(Bt(e)&&(n.left=e,a=!0),Bt(r)&&(n.top=r,a=!0),a&&this.renderCanvas(!0)),this},zoom:function(e,r){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,r)},zoomTo:function(e,r,n){var a=this.options,o=this.canvasData,i=o.width,s=o.height,l=o.naturalWidth,c=o.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&a.zoomable){var d=l*e,u=c*e;if(Ph(this.element,h$,{ratio:e,oldRatio:i/l,originalEvent:n})===!1)return this;if(n){var f=this.pointers,p=aX(this.cropper),m=f&&Object.keys(f).length?e2e(f):{pageX:n.pageX,pageY:n.pageY};o.left-=(d-i)*((m.pageX-p.left-o.left)/i),o.top-=(u-s)*((m.pageY-p.top-o.top)/s)}else Sh(r)&&Bt(r.x)&&Bt(r.y)?(o.left-=(d-i)*((r.x-o.left)/i),o.top-=(u-s)*((r.y-o.top)/s)):(o.left-=(d-i)/2,o.top-=(u-s)/2);o.width=d,o.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),Bt(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var r=this.imageData.scaleY;return this.scale(e,Bt(r)?r:1)},scaleY:function(e){var r=this.imageData.scaleX;return this.scale(Bt(r)?r:1,e)},scale:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,a=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.scalable&&(Bt(e)&&(n.scaleX=e,a=!0),Bt(r)&&(n.scaleY=r,a=!0),a&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.options,n=this.imageData,a=this.canvasData,o=this.cropBoxData,i;if(this.ready&&this.cropped){i={x:o.left-a.left,y:o.top-a.top,width:o.width,height:o.height};var s=n.width/n.naturalWidth;if(nn(i,function(d,u){i[u]=d/s}),e){var l=Math.round(i.y+i.height),c=Math.round(i.x+i.width);i.x=Math.round(i.x),i.y=Math.round(i.y),i.width=c-i.x,i.height=l-i.y}}else i={x:0,y:0,width:0,height:0};return r.rotatable&&(i.rotate=n.rotate||0),r.scalable&&(i.scaleX=n.scaleX||1,i.scaleY=n.scaleY||1),i},setData:function(e){var r=this.options,n=this.imageData,a=this.canvasData,o={};if(this.ready&&!this.disabled&&Sh(e)){var i=!1;r.rotatable&&Bt(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,i=!0),r.scalable&&(Bt(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,i=!0),Bt(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,i=!0)),i&&this.renderCanvas(!0,!0);var s=n.width/n.naturalWidth;Bt(e.x)&&(o.left=e.x*s+a.left),Bt(e.y)&&(o.top=e.y*s+a.top),Bt(e.width)&&(o.width=e.width*s),Bt(e.height)&&(o.height=e.height*s),this.setCropBoxData(o)}return this},getContainerData:function(){return this.ready?Nr({},this.containerData):{}},getImageData:function(){return this.sized?Nr({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,r={};return this.ready&&nn(["left","top","width","height","naturalWidth","naturalHeight"],function(n){r[n]=e[n]}),r},setCanvasData:function(e){var r=this.canvasData,n=r.aspectRatio;return this.ready&&!this.disabled&&Sh(e)&&(Bt(e.left)&&(r.left=e.left),Bt(e.top)&&(r.top=e.top),Bt(e.width)?(r.width=e.width,r.height=e.width/n):Bt(e.height)&&(r.height=e.height,r.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,r;return this.ready&&this.cropped&&(r={left:e.left,top:e.top,width:e.width,height:e.height}),r||{}},setCropBoxData:function(e){var r=this.cropBoxData,n=this.options.aspectRatio,a,o;return this.ready&&this.cropped&&!this.disabled&&Sh(e)&&(Bt(e.left)&&(r.left=e.left),Bt(e.top)&&(r.top=e.top),Bt(e.width)&&e.width!==r.width&&(a=!0,r.width=e.width),Bt(e.height)&&e.height!==r.height&&(o=!0,r.height=e.height),n&&(a?r.height=r.width/n:o&&(r.width=r.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 r=this.canvasData,n=r2e(this.image,this.imageData,r,e);if(!this.cropped)return n;var a=this.getData(e.rounded),o=a.x,i=a.y,s=a.width,l=a.height,c=n.width/Math.floor(r.naturalWidth);c!==1&&(o*=c,i*=c,s*=c,l*=c);var d=s/l,u=pc({aspectRatio:d,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),f=pc({aspectRatio:d,width:e.minWidth||0,height:e.minHeight||0},"cover"),p=pc({aspectRatio:d,width:e.width||(c!==1?n.width:s),height:e.height||(c!==1?n.height:l)}),m=p.width,g=p.height;m=Math.min(u.width,Math.max(f.width,m)),g=Math.min(u.height,Math.max(f.height,g));var _=document.createElement("canvas"),b=_.getContext("2d");_.width=Ah(m),_.height=Ah(g),b.fillStyle=e.fillColor||"transparent",b.fillRect(0,0,m,g);var w=e.imageSmoothingEnabled,S=w===void 0?!0:w,x=e.imageSmoothingQuality;b.imageSmoothingEnabled=S,x&&(b.imageSmoothingQuality=x);var E=n.width,T=n.height,D=o,A=i,P,O,I,F,N,B;D<=-s||D>E?(D=0,P=0,I=0,N=0):D<=0?(I=-D,D=0,P=Math.min(E,s+D),N=P):D<=E&&(I=0,P=Math.min(s,E-D),N=P),P<=0||A<=-l||A>T?(A=0,O=0,F=0,B=0):A<=0?(F=-A,A=0,O=Math.min(T,l+A),B=O):A<=T&&(F=0,O=Math.min(l,T-A),B=O);var j=[D,A,P,O];if(N>0&&B>0){var V=m/s;j.push(I*V,F*V,N*V,B*V)}return b.drawImage.apply(b,[n].concat(Gq(j.map(function(Q){return Math.floor(Ah(Q))})))),_},setAspectRatio:function(e){var r=this.options;return!this.disabled&&!eD(e)&&(r.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var r=this.options,n=this.dragBox,a=this.face;if(this.ready&&!this.disabled){var o=e===zI,i=r.movable&&e===Kq;e=o||i?e:Zq,r.dragMode=e,hg(n,fg,e),xh(n,s$,o),xh(n,l$,i),r.cropBoxMovable||(hg(a,fg,e),xh(a,s$,o),xh(a,l$,i))}return this}},v2e=is.Cropper,iX=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Dke(this,t),!e||!Wke.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=Nr({},Hj,Sh(r)&&r),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 Mke(t,[{key:"init",value:function(){var r=this.element,n=r.tagName.toLowerCase(),a;if(!r[Pr]){if(r[Pr]=this,n==="img"){if(this.isImg=!0,a=r.getAttribute("src")||"",this.originalUrl=a,!a)return;a=r.src}else n==="canvas"&&window.HTMLCanvasElement&&(a=r.toDataURL());this.load(a)}}},{key:"load",value:function(r){var n=this;if(r){this.url=r,this.imageData={};var a=this.element,o=this.options;if(!o.rotatable&&!o.scalable&&(o.checkOrientation=!1),!o.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Bke.test(r)){jke.test(r)?this.read(o2e(r)):this.clone();return}var i=new XMLHttpRequest,s=this.clone.bind(this);this.reloading=!0,this.xhr=i,i.onabort=s,i.onerror=s,i.ontimeout=s,i.onprogress=function(){i.getResponseHeader("content-type")!==Wj&&i.abort()},i.onload=function(){n.read(i.response)},i.onloadend=function(){n.reloading=!1,n.xhr=null},o.checkCrossOrigin&&Vj(r)&&a.crossOrigin&&(r=Yj(r)),i.open("GET",r,!0),i.responseType="arraybuffer",i.withCredentials=a.crossOrigin==="use-credentials",i.send()}}},{key:"read",value:function(r){var n=this.options,a=this.imageData,o=s2e(r),i=0,s=1,l=1;if(o>1){this.url=i2e(r,Wj);var c=l2e(o);i=c.rotate,s=c.scaleX,l=c.scaleY}n.rotatable&&(a.rotate=i),n.scalable&&(a.scaleX=s,a.scaleY=l),this.clone()}},{key:"clone",value:function(){var r=this.element,n=this.url,a=r.crossOrigin,o=n;this.options.checkCrossOrigin&&Vj(n)&&(a||(a="anonymous"),o=Yj(n)),this.crossOrigin=a,this.crossOriginUrl=o;var i=document.createElement("img");a&&(i.crossOrigin=a),i.src=o||n,i.alt=r.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),gn(i,Ij),r.parentNode.insertBefore(i,r.nextSibling)}},{key:"start",value:function(){var r=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var a=is.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(is.navigator.userAgent),o=function(c,d){Nr(r.imageData,{naturalWidth:c,naturalHeight:d,aspectRatio:c/d}),r.initialImageData=Nr({},r.imageData),r.sizing=!1,r.sized=!0,r.build()};if(n.naturalWidth&&!a){o(n.naturalWidth,n.naturalHeight);return}var i=document.createElement("img"),s=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){o(i.width,i.height),a||s.removeChild(i)},i.src=n.src,a||(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;",s.appendChild(i))}},{key:"stop",value:function(){var r=this.image;r.onload=null,r.onerror=null,r.parentNode.removeChild(r),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var r=this.element,n=this.options,a=this.image,o=r.parentNode,i=document.createElement("div");i.innerHTML=Hke;var s=i.querySelector(".".concat(Pr,"-container")),l=s.querySelector(".".concat(Pr,"-canvas")),c=s.querySelector(".".concat(Pr,"-drag-box")),d=s.querySelector(".".concat(Pr,"-crop-box")),u=d.querySelector(".".concat(Pr,"-face"));this.container=o,this.cropper=s,this.canvas=l,this.dragBox=c,this.cropBox=d,this.viewBox=s.querySelector(".".concat(Pr,"-view-box")),this.face=u,l.appendChild(a),gn(r,ka),o.insertBefore(s,r.nextSibling),rs(a,Ij),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,gn(d,ka),n.guides||gn(d.getElementsByClassName("".concat(Pr,"-dashed")),ka),n.center||gn(d.getElementsByClassName("".concat(Pr,"-center")),ka),n.background&&gn(s,"".concat(Pr,"-bg")),n.highlight||gn(u,Rke),n.cropBoxMovable&&(gn(u,l$),hg(u,fg,FI)),n.cropBoxResizable||(gn(d.getElementsByClassName("".concat(Pr,"-line")),ka),gn(d.getElementsByClassName("".concat(Pr,"-point")),ka)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),Ta(n.ready)&&po(r,zj,n.ready,{once:!0}),Ph(r,zj)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var r=this.cropper.parentNode;r&&r.removeChild(this.cropper),rs(this.element,ka)}}},{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=v2e,t}},{key:"setDefaults",value:function(r){Nr(Hj,Sh(r)&&r)}}])}();Nr(iX.prototype,c2e,u2e,d2e,f2e,h2e,p2e);var Hu=function(){return Hu=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&A.zoomTo(Q)}(D.currentTarget.cropper,S),_&&_(D)}}));b&&b(T)}return function(){var D,A;(A=(D=x.current)===null||D===void 0?void 0:D.cropper)===null||A===void 0||A.destroy()}},[x]);var E=function(T){return m2e.reduce(function(D,A){var P=D,O=A;return P[O],rD(P,[typeof O=="symbol"?O:O+""])},T)}(Hu(Hu({},w),{crossOrigin:l,src:o,alt:g}));return k.createElement("div",{style:i,className:s},k.createElement("img",Hu({},E,{style:g2e,ref:x})))});const Xl={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},_2e={once:"once",interval:"interval",intervalBetween:"intervalBetween",specific:"specific"},Wn={seconds:"seconds",minutes:"minutes"},Gj=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function Yi(t){return t<10?`0${t}`:`${t}`}const y2e={mode:"interval",interval:{period:1,unit:Wn.minutes}};function Vb(t){if(t==="*")return[0,1,2,3,4,5,6];const e=t.split(","),r=[];return e.forEach(n=>{const a=n.split("-");if(a.length===2){const o=parseInt(a[0],10),i=parseInt(a[1],10);for(let s=o;s<=i;s++)r.includes(s===7?0:s)||r.push(s===7?0:s)}else{n==="7"&&(n="0");const o=parseInt(n,10);r.includes(o)||r.push(o)}}),r.sort(),r}function sX(t,e){t=t.replace(/['"]/g,"").trim();const r=t.split(" ");let n,a=null;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",date:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:null,minutes:r[0]||"*",hours:r[1]||"*",date:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n.seconds===null&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)&&(a={mode:"interval",interval:{period:1,unit:Wn.minutes}}),n.seconds==="*"&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?a={mode:"interval",interval:{period:1,unit:Wn.seconds}}:n.seconds===null&&n.minutes.includes("/")&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?a={mode:"interval",interval:{period:parseInt(n.minutes.split("/")[1],10),unit:Wn.minutes}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?a={mode:"interval",interval:{period:parseInt(n.seconds.split("/")[1],10),unit:Wn.seconds}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?a={mode:"intervalBetween",intervalBetween:{period:parseInt(n.seconds.split("/")[1],10),unit:Wn.seconds,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Vb(n.dow)}}:n.seconds===null&&n.minutes.includes("/")&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?a={mode:"intervalBetween",intervalBetween:{period:parseInt(n.minutes.split("/")[1],10),unit:Wn.minutes,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Vb(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?a={mode:"specific",specific:{time:`${Yi(parseInt(n.hours,10))}:${Yi(parseInt(n.minutes,10))}`,weekdays:Vb(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&parseInt(n.date,10).toString()===n.date&&parseInt(n.months,10).toString()===n.months&&(n.dow==="*"||e)&&(a={mode:"once",once:{time:`${Yi(parseInt(n.hours,10))}:${Yi(parseInt(n.minutes,10))}`,date:`${Yi(parseInt(n.date,10))}.${Yi(parseInt(n.months,10))}`}}),a}class pg extends k.Component{constructor(e){super(e);let r=typeof e.cronExpression=="string"?e.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";r[0]==="{"&&(r="");const n=sX(r||"* * * * *",!0)||y2e;this.state={extended:!1,cron:pg.state2cron(n),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:Wn.minutes},intervalBetween:{period:1,unit:Wn.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,n),this.state.cron!==e.cronExpression&&setTimeout(()=>e.onChange&&e.onChange(this.state.cron),100)}static periodArray2text(e,r=7){if(r=r||7,e.length===r)return"*";const n=[];let a=null,o=null;if(!e.length)return"_";for(let i=0;i60&&(n.period=60),n.period!==void 0&&n.period<1&&(n.period=1),n.minutes!==void 0&&n.minutes!==null&&n.minutes>60&&(n.minutes=60),n.minutes!==void 0&&n.minutes!==null&&n.minutes<1&&(n.minutes=1),n.hours!==void 0&&n.hours!==null&&n.hours>24&&(n.hours=24),n.hours!==void 0&&n.hours!==null&&n.hours<1&&(n.hours=1),e.extended)r=`${n.minutes!==void 0&&n.minutes!==null&&n.minutes>1?`*/${n.minutes}`:"*"} ${n.hours!==void 0&&n.hours!==null&&n.hours>1?`*/${n.hours}`:"*"} * * *`;else switch(n.unit){case Wn.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * * * * *`;break;case Wn.minutes:r=`${n.period>1?`*/${n.period}`:"*"} * * * *`;break}}else if(e.mode==="intervalBetween"){const n=e.intervalBetween||{period:1,unit:Wn.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let a;switch(n.timeFrom=n.timeFrom||0,n.timeTo=n.timeTo===void 0?24:n.timeTo,n.timeFrom!==0&&n.timeTo===24&&(n.timeTo=23),n.timeFrom===0&&n.timeTo===24?a="*":a=n.timeFrom!==n.timeTo?`${n.timeFrom}-${n.timeTo}`:"*",n.period>60&&(n.period=60),n.period<1&&(n.period=1),n.unit=n.unit||Wn.minutes,n.unit){case Wn.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * ${a} * * ${this.periodArray2text(n.weekdays)}`;break;case Wn.minutes:r=`${n.period>1?`*/${n.period}`:"*"} ${a} * * ${this.periodArray2text(n.weekdays)}`;break}}else if(e.mode==="specific"){const n=e.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},a=(n.time||"00:00").split(":");let o=parseInt(a[1],10)||0;o>59&&(o=59),o<0&&(o=0);let i=parseInt(a[0],10)||0;i>23&&(i=59),i<0&&(i=0),r=`${o} ${i} * * ${this.periodArray2text(n.weekdays||[])}`}else if(e.mode==="once"){const n=e.once||{time:"00:00",date:""};n.date||(n.date=`${new Date().getDate()}.${Yi(new Date().getMonth()+1)}`);const a=(n.time||"00:00").split(":"),o=n.date.split(".");let i=parseInt(a[1],10)||0;i>59&&(i=59),i<0&&(i=0);let s=parseInt(a[0],10)||0;s>23&&(s=59),s<0&&(s=0);let l=parseInt(o[0],10)||1;l>31&&(l=31),l<1&&(s=1);let c=parseInt(o[1],10)||1;c>12&&(c=12),c<1&&(c=1),r=`${i} ${s} ${l} ${c} *`}return r}recalcCron(){this.onChange(pg.state2cron(this.state))}getControlsWeekdaysElements(e){const r=e==="intervalBetween"?this.state.intervalBetween:this.state.specific;return k.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},k.createElement("h5",null,X.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(n=>k.createElement(At,{key:Gj[n],control:k.createElement(vn,{checked:r.weekdays.includes(n),onChange:a=>{const o=JSON.parse(JSON.stringify(this.state[e])),i=o.weekdays.indexOf(n);a.target.checked?i===-1&&o.weekdays.push(n):i!==-1&&o.weekdays.splice(i,1),o.weekdays.sort(),e==="intervalBetween"?this.setState({intervalBetween:o},()=>this.recalcCron()):this.setState({specific:o},()=>this.recalcCron())},value:n.toString()}),label:X.t(Gj[n])})))}getControlsPeriodElements(e){const r=e==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?k.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},k.createElement("h5",{style:{marginBottom:5}},X.t("sc_period")),k.createElement(Vn,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:X.t("sc_minutes"),value:r.minutes,onChange:n=>{const a=JSON.parse(JSON.stringify(this.state[e]));a.minutes=parseInt(n.target.value,10),a.minutes<1&&(a.minutes=1),e==="interval"?this.setState({interval:a},()=>this.recalcCron()):this.setState({intervalBetween:a},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),k.createElement(Vn,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:X.t("sc_hours"),value:r.hours,onChange:n=>{const a=JSON.parse(JSON.stringify(this.state[e]));a.hours=parseInt(n.target.value,10),a.hours<1&&(a.hours=1),e==="interval"?this.setState({interval:a},()=>this.recalcCron()):this.setState({intervalBetween:a},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):k.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},k.createElement("h5",{style:{marginBottom:5}},X.t("sc_period")),k.createElement(Vn,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:X.t("sc_every"),value:r.period,onChange:n=>{const a=JSON.parse(JSON.stringify(this.state[e]));a.period=parseInt(n.target.value,10),a.period<1&&(a.period=1),e==="interval"?this.setState({interval:a},()=>this.recalcCron()):this.setState({intervalBetween:a},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),k.createElement(ii,{variant:"standard",style:{verticalAlign:"bottom"},value:r.unit,onChange:n=>{const a=JSON.parse(JSON.stringify(this.state[e]));a.unit=n.target.value,e==="interval"?this.setState({interval:a},()=>this.recalcCron()):this.setState({intervalBetween:a},()=>this.recalcCron())}},k.createElement(Rr,{value:"seconds"},X.t("sc_seconds")),")",k.createElement(Rr,{value:"minutes"},X.t("sc_minutes")),")"))}getControlsTime(e){const r=e==="once"?this.state.once:this.state.specific;return k.createElement(ju,{variant:"standard",sx:{...Xl.formControl,"&.MuiFormControl-root":Xl.formControlMarginRight}},k.createElement(Vn,{variant:"standard",key:"at",label:X.t("sc_time"),value:r.time,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const a=JSON.parse(JSON.stringify(this.state[e]));a.time=n.target.value,e==="once"?this.setState({once:a},()=>this.recalcCron()):this.setState({specific:a},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const e=this.state.once;if(!e.date){const r=new Date;e.date=`${r.getDate()}.${Yi(r.getMonth()+1)}`}return k.createElement(ju,{variant:"standard",style:Xl.formControl},k.createElement(Vn,{variant:"standard",key:"date",label:X.t("sc_date"),value:e.date,type:"text",slotProps:{htmlInput:{style:Xl.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.once));n.date=r.target.value,this.setState({once:n},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return k.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const e=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),k.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},k.createElement("h5",{style:{marginBottom:5}},X.t("sc_hours")),k.createElement(ju,{variant:"standard",style:Xl.formControl},k.createElement(Fm,{shrink:!0,htmlFor:"age-label-placeholder"},X.t("sc_from")),k.createElement(ii,{variant:"standard",style:{width:100},value:e.timeFrom,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeFrom=parseInt(r.target.value,10),n.timeTo===24&&(n.timeTo=23),this.setState({intervalBetween:n},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>k.createElement(Rr,{key:`B_${r}`,value:r},`${Yi(r)}:00`)))),k.createElement(ju,{variant:"standard",style:Xl.formControl},k.createElement(Fm,{shrink:!0,htmlFor:"age-label-placeholder"},X.t("sc_to")),k.createElement(ii,{variant:"standard",style:{width:100},value:e.timeTo,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeTo=parseInt(r.target.value,10),this.setState({intervalBetween:n},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>k.createElement(Rr,{key:`A_${r}`,value:r},`${Yi(r)}:00`)),!e.timeFrom&&k.createElement(Rr,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[k.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(e){e!==this.state.mode&&this.setState({mode:e},()=>this.recalcCron())}onChange(e){e!==this.state.cron&&(this.setState({cron:e}),this.props.onChange&&this.props.onChange(e))}render(){return k.createElement("div",{style:Xl.mainDiv},k.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},k.createElement(Vn,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),k.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?X.t("sc_invalid_cron"):Oq(this.state.cron,this.props.language||"en")),k.createElement("div",null,k.createElement(ju,{variant:"standard",style:{...Xl.formControl,marginLeft:8,marginTop:8}},k.createElement(Fm,null,X.t("ra_Repeat")),k.createElement(ii,{variant:"standard",value:this.state.mode,onChange:e=>this.onModeChange(e.target.value),inputProps:{name:"mode",id:"mode"}},k.createElement(Rr,{value:"once"},X.t("sc_once")),k.createElement(Rr,{value:"interval"},X.t("sc_interval")),k.createElement(Rr,{value:"intervalBetween"},X.t("sc_intervalBetween")),k.createElement(Rr,{value:"specific"},X.t("sc_specific"))))),this.state.mode===_2e.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const b2e={headerID:{fontWeight:"bold",fontStyle:"italic"},radio:{display:"inline-block"},dialogPaper:{height:"calc(100% - 96px)"}};class I5t extends k.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:r}}handleCancel(){this.props.onClose()}handleOk(e){if(!e){const r=fc.cron2state(this.state.cron);if(r.seconds==="*"||r.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(r.minutes==="*"||r.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?k.createElement(I_e,{title:X.t("ra_Please confirm"),text:X.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:e=>this.setState({showWarning:""},()=>{e&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return k.createElement(_i,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":b2e.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),k.createElement(wi,{id:"cron-dialog-title"},this.props.title||X.t("ra_Define schedule...")),k.createElement(bi,{style:{height:"100%",overflow:"hidden"}},k.createElement(fc,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:X.getLanguage()})),k.createElement(yi,null,!!this.props.clearButton&&k.createElement(Tr,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:k.createElement(Hb,null)},this.props.clear||X.t("ra_Clear")),k.createElement(Tr,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:k.createElement(Pd,null)},this.props.ok||X.t("ra_Ok")),k.createElement(Tr,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:k.createElement(oS,null)},this.props.cancel||X.t("ra_Cancel"))))}}const w2e={dialogPaper:{height:"calc(100% - 96px)"}};class R5t extends k.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof r=="object"||r[0]==="{")&&!this.props.noWizard?"wizard":sX(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(e){this.setState({mode:e})}render(){return k.createElement(_i,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":w2e.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},k.createElement(wi,{id:"cron-dialog-title"},this.props.title||X.t("ra_Define schedule...")),k.createElement(bi,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?k.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&k.createElement(k.Fragment,null,k.createElement(Cr,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),k.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},X.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&k.createElement(k.Fragment,null,k.createElement(Cr,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),k.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},X.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&k.createElement(k.Fragment,null,k.createElement(Cr,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),k.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},X.t("sc_cron")))):null,this.state.mode==="simple"&&k.createElement(pg,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:X.getLanguage()}),this.state.mode==="wizard"&&k.createElement(Sn,{theme:this.props.theme,schedule:this.state.cron,onChange:e=>this.setState({cron:e})}),this.state.mode==="complex"&&k.createElement(fc,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:X.getLanguage()})),k.createElement(yi,null,k.createElement(Tr,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:k.createElement(Pd,null)},this.props.ok||X.t("ra_Ok")),k.createElement(Tr,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:k.createElement(oS,null)},this.props.cancel||X.t("ra_Cancel"))))}}const du={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class L5t extends k.Component{constructor(r){super(r);ae(this,"dialogName");ae(this,"filters");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const n=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(n)}catch{this.filters={}}r.filters&&(this.filters={...this.filters,...r.filters});let a=this.props.selected||[];typeof a!="object"?a=[a]:a=[...a],a=a.filter(o=>o),this.state={selected:a}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let r;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?r=[k.createElement("span",{key:"selected"},X.t("ra_Selected")," "),k.createElement("span",{key:"id",style:du.headerID},this.state.selected)]:r=[k.createElement("span",{key:"selected"},X.t("ra_Selected")," "),k.createElement("span",{key:"id",style:du.headerID},X.t("%s items",this.state.selected.length))]:r=this.props.title||X.t("ra_Please select file..."),k.createElement(_i,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{...du.dialog,...du.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},k.createElement(wi,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":du.titleRoot}},r),k.createElement(bi,{style:{...du.content,...du.contentMobile}},k.createElement(yke,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(n,a,o)=>{this.setState({selected:Array.isArray(n)?n:[n]},()=>a&&(!this.props.selectOnlyFolders||o)&&this.handleOk())},t:this.props.t||X.t,lang:this.props.lang||X.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),k.createElement(yi,null,k.createElement(Tr,{variant:"contained",onClick:()=>this.handleOk(),startIcon:k.createElement(Pd,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||X.t("ra_Ok")),k.createElement(Tr,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:k.createElement(oS,null)},this.props.cancel||X.t("ra_Cancel"))))}}const S2e={dialogPaper:{height:"calc(100% - 96px)"}};class N5t extends k.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return k.createElement(_i,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":S2e.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},k.createElement(wi,{id:"cron-dialog-title"},this.props.title||X.t("ra_Define CRON...")),k.createElement(bi,{style:{height:"100%",overflow:"hidden"}},k.createElement(pg,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:X.getLanguage()})),k.createElement(yi,null,k.createElement(Tr,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:k.createElement(Pd,null)},this.props.ok||X.t("ra_Ok")),k.createElement(Tr,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:k.createElement(oS,null)},this.props.cancel||X.t("ra_Cancel"))))}}const x2e="Append",C2e="Cancel",T2e="Categories",k2e="Checked",E2e="Delete",D2e="Close",M2e="Commercial",O2e="Configure",$2e="Connected",A2e="Copied",P2e="Create",I2e="Crop",R2e="Delete",L2e="Delete",N2e="Discard",F2e="Disconnected",z2e="Error",B2e="Filter",j2e="Friday",W2e="Latitude",H2e="Expires in",U2e="Longitude",V2e="Message",Y2e="Monday",G2e="Name",q2e="Objects",X2e="Ok",J2e="Product",K2e="Repeat",Z2e="Replace",Q2e="Root",eEe="Saturday",tEe="Save",rEe="Selected",nEe="States",aEe="Sunday",oEe="Thursday",iEe="Timestamp",sEe="Tuesday",lEe="Update",cEe="Valid till",uEe="Value",dEe="Version",fEe="Wednesday",hEe="Width",pEe="Yes",vEe="different",mEe="Everyone can read object",gEe="Everyone can read state",_Ee="Everyone can write object",yEe="Everyone can write state",bEe="Group can read object",wEe="Group can read state",SEe="Group can write object",xEe="Group can write state",CEe="Owner can read object",TEe="Owner can read state",kEe="Owner can write object",EEe="Owner can write state",DEe="Buttons",MEe="Changed from",OEe="close",$Ee="Create boolean state",AEe="Create channel",PEe="Create device",IEe="Create number state",REe="Create state",LEe="Create string state",NEe="days",FEe="Fr",zEe="Mo",BEe="Sa",jEe="Su",WEe="Th",HEe="Tu",UEe="We",VEe="Expert mode",YEe="All files",GEe="Audio",qEe="Code/JSON",XEe="Images",JEe="Text",KEe="Video",ZEe="Settings",QEe="without",eDe="Function",tDe="ID",rDe="Name",nDe="Role",aDe="Room",oDe="Type",iDe="Invalid settings",sDe="Last change",lDe="locally",cDe="Apr",uDe="Aug",dDe="Dec",fDe="Feb",hDe="Jan",pDe="Jul",vDe="Jun",mDe="Mai",gDe="Mar",_De="Nov",yDe="Oct",bDe="Sep",wDe="Apr",SDe="Aug",xDe="Dec",CDe="Feb",TDe="Jan",kDe="Jul",EDe="Jun",DDe="Mai",MDe="Mar",ODe="Nov",$De="Oct",ADe="Sep",PDe="none",IDe="Object changed by",RDe="Object last changed at",LDe="Settings from other adapter %s",NDe="Quality code",FDe="repeat",zDe='To select folder, just hold the key "shift" by clicking the folder.',BDe="State changed by",jDe="Object changed from",WDe="Timestamp",HDe="Acknowledged",UDe="Comment",VDe="Copy the state value",YDe="Custom settings",GDe="Delete object",qDe="Edit object",XDe="Edit the state value",JDe="From",KDe="Last changed",ZDe="Quality",QDe="Time stamp",eMe="User",tMe="Value",rMe="Value",nMe="Warning: The CRON job will run every minute during the specified period!",aMe="Warning: The CRON job will run every second during the specified period!",oMe="CRON",iMe="Date",sMe="Dates",lMe="Day",cMe="Day of week",uMe="Every",dMe="every N days",fMe="every Nth day of the week",hMe="every N day of week",pMe="every N hours",vMe="every N minutes",mMe="every N months",gMe="every N seconds",_Me="every day",yMe="every day of the week",bMe="every day of the week",wMe="every hour",SMe="every minute",xMe="every month",CMe="every second",TMe="From",kMe="Hours",EMe="Interval",DMe="Interval between",MMe="Invalid CRON",OMe="Minutes",$Me="months",AMe="Once",PMe="Period",IMe="Seconds",RMe="Simple",LMe="Specific time",NMe="specific dates",FMe="specific day(s) of the week",zMe="specific day of weeks",BMe="specific hours",jMe="specific minutes",WMe="specific months",HMe="specific seconds",UMe="Time",VMe="To",YMe="Wizard",GMe="all",qMe="Astro day",XMe="Astro night",JMe="Dawn",KMe="Dusk",ZMe="Golden hour",QMe="Golden hour end",eOe="Nadir",tOe="Nautical dawn",rOe="Nautical dusk",nOe="Night",aOe="Night end",oOe="Solar noon",iOe="Sunrise",sOe="Sunrise end",lOe="Sunset",cOe="Sunset start",uOe="at",dOe="at %s",fOe="every day",hOe="every hour",pOe="every minute",vOe="every month",mOe="every %s day",gOe="every %s hours",_Oe="every %s minutes",yOe="every %s months",bOe="every %s weeks",wOe="every %s years",SOe="every week",xOe="every year",COe="from %s to %s",TOe="never",kOe="on %s of %s",EOe="on %s and %s of",DOe="on every date of",MOe="%s",OOe="%s and %s",$Oe="on %s",AOe="on %s and %s",POe="on weekends",IOe="on working days",ROe="will ne be not executed any more, because start is in the past",LOe="on %s",NOe="from %s",FOe="Execute from to",zOe="to %s",BOe="every",jOe="Specific time",WOe="from",HOe="From-to",UOe="Interval time",VOe="invert",YOe="none",GOe="on",qOe="Period",XOe="Daily",JOe="Dates",KOe="Day",ZOe="Every",QOe="Every day",e$e="Every month",t$e="Every week",r$e="Every year",n$e="Hours",a$e="Minutes",o$e="month",i$e="Monthly",s$e="Once",l$e="Specific months",c$e="Week",u$e="Weekdays",d$e="Weekend",f$e="Weekly",h$e="Workdays",p$e="Year",v$e="Yearly",m$e="Specific time",g$e="Time",_$e="to",y$e="Valid",b$e="from",w$e="to",S$e="Whole day",x$e="every month",C$e={"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_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:x2e,"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:C2e,"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:T2e,"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:k2e,ra_Clear:E2e,"ra_Clear filter":"Clear filter","ra_Clear icon":"Clear icon","ra_Clone current row":"Clone current row",ra_Close:D2e,"ra_Collapse all nodes":"Collapse all nodes","ra_Collapse one step node":"Collapse one level",ra_Commercial:M2e,ra_Configure:O2e,"ra_Configure visible columns":"Configure visible columns","ra_Confirm deletion of %s":"Confirm deletion of %s",ra_Connected:$2e,ra_Copied:A2e,"ra_Copied %s":'Copied "%s"',"ra_Copy content":"Copy content",ra_Create:P2e,"ra_Create alias":"Create alias","ra_Create folder":"Create folder","ra_Create new folder in %s":"Create new folder in %s",ra_Crop:I2e,"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:R2e,ra_Delete:L2e,"ra_Delete (no confirm for 5 mins)":"Delete (no confirm for 5 mins)","ra_Delete current row":"Delete current row","ra_Deselect all":"Unselect all","ra_Device → Channel → State":"Device → Channel → State",ra_Discard:N2e,ra_Disconnected:F2e,"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_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 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_Error:z2e,"ra_Expand all nodes":"Expand all nodes","ra_Expand one step node":"Expand one level","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:B2e,"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:j2e,"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_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 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:W2e,"ra_License %s":"License %s","ra_License agreement":"License agreement","ra_License does not exist":"License does not exist",ra_tooltip_expire:H2e,"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_Longitude:U2e,'ra_May not trigger "updateLicenses"':'May not trigger "updateLicenses"',ra_Message:V2e,ra_Monday:Y2e,"ra_Move down":"Move down","ra_Move up":"Move up",ra_Name:G2e,"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 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_Objects:q2e,ra_Ok:X2e,"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 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_Private certificate":"Private certificate",ra_Product:J2e,"ra_Public certificate":"Public certificate","ra_Quality code":"Quality","ra_Refresh tree":"Refresh tree","ra_Reload files":"Reload files",ra_Repeat:K2e,ra_Replace:Z2e,"ra_Request timed out":"Request timed out","ra_Restrict to folder":"Restrict to folder",ra_Root:Q2e,ra_Saturday:eEe,ra_Save:tEe,"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:rEe,"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_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:nEe,"ra_Suitable license not found in license manager":"Suitable license not found in license manager",ra_Sunday:aEe,"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:oEe,ra_Timestamp:iEe,"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:sEe,"ra_Unknown error":"Unknown error","ra_Unknown error!":"Unknown error!",ra_Update:lEe,"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:cEe,ra_Value:uEe,ra_Version:dEe,"ra_View file":"View file","ra_View: %s":"View: %s",ra_Wednesday:fEe,ra_Width:hEe,ra_Yes:pEe,"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___different__:vEe,ra_aclEveryone_read_object:mEe,ra_aclEveryone_read_state:gEe,ra_aclEveryone_write_object:_Ee,ra_aclEveryone_write_state:yEe,ra_aclGroup_read_object:bEe,ra_aclGroup_read_state:wEe,ra_aclGroup_write_object:SEe,ra_aclGroup_write_state:xEe,ra_aclOwner_read_object:CEe,ra_aclOwner_read_state:TEe,ra_aclOwner_write_object:kEe,ra_aclOwner_write_state:EEe,ra_buttons:DEe,ra_changedFrom:MEe,ra_close:OEe,ra_create_boolean_state:$Ee,ra_create_channel:AEe,ra_create_device:PEe,ra_create_number_state:IEe,ra_create_state:REe,ra_create_string_state:LEe,ra_daysShortText:NEe,ra_dow_Fr:FEe,ra_dow_Mo:zEe,ra_dow_Sa:BEe,ra_dow_Su:jEe,ra_dow_Th:WEe,ra_dow_Tu:HEe,ra_dow_We:UEe,ra_expertMode:VEe,ra_fileType_all:YEe,ra_fileType_audio:GEe,ra_fileType_code:qEe,ra_fileType_images:XEe,ra_fileType_txt:JEe,ra_fileType_video:KEe,"ra_fileType_video,":"Video",ra_filter_customs:ZEe,ra_filter_customs_without:QEe,ra_filter_func:eDe,ra_filter_id:tDe,ra_filter_name:rDe,ra_filter_role:nDe,ra_filter_room:aDe,ra_filter_type:oDe,"ra_import data from %s file":"Import data from %s file",ra_invalidConfig:iDe,ra_lastChange:sDe,ra_locally:lDe,ra_month_Apr:cDe,ra_month_Aug:uDe,ra_month_Dec:dDe,ra_month_Feb:fDe,ra_month_Jan:hDe,ra_month_Jul:pDe,ra_month_Jun:vDe,ra_month_Mai:mDe,ra_month_Mar:gDe,ra_month_Nov:_De,ra_month_Oct:yDe,ra_month_Sep:bDe,ra_months_Apr:wDe,ra_months_Aug:SDe,ra_months_Dec:xDe,ra_months_Feb:CDe,ra_months_Jan:TDe,ra_months_Jul:kDe,ra_months_Jun:EDe,ra_months_Mai:DDe,ra_months_Mar:MDe,ra_months_Nov:ODe,ra_months_Oct:$De,ra_months_Sep:ADe,ra_none:PDe,ra_object_changed_by:IDe,ra_object_changed_by_user:RDe,ra_otherConfig:LDe,ra_qualityCode:NDe,ra_repeat:FDe,ra_select_folder_hint:zDe,ra_state_changed_by:BDe,ra_state_changed_from:jDe,ra_timestamp:WDe,ra_tooltip_ack:HDe,ra_tooltip_comment:UDe,ra_tooltip_copyState:VDe,ra_tooltip_customConfig:YDe,ra_tooltip_deleteObject:GDe,ra_tooltip_editObject:qDe,ra_tooltip_editState:XDe,ra_tooltip_from:JDe,ra_tooltip_lc:KDe,ra_tooltip_quality:ZDe,ra_tooltip_ts:QDe,ra_tooltip_user:eMe,ra_tooltip_value:tMe,"ra_use seconds":"use seconds",ra_val:rMe,"ra_via internet":"via internet",ra_warning_every_minute:nMe,ra_warning_every_second:aMe,sc_cron:oMe,sc_date:iMe,sc_dates:sMe,sc_dow:lMe,sc_dows:cMe,sc_every:uMe,sc_everyN_dates:dMe,sc_everyN_dow:fMe,sc_everyN_dows:hMe,sc_everyN_hours:pMe,sc_everyN_minutes:vMe,sc_everyN_months:mMe,sc_everyN_seconds:gMe,sc_every_dates:_Me,sc_every_dow:yMe,sc_every_dows:bMe,sc_every_hours:wMe,sc_every_minutes:SMe,sc_every_months:xMe,sc_every_seconds:CMe,sc_from:TMe,sc_hours:kMe,sc_interval:EMe,sc_intervalBetween:DMe,sc_invalid_cron:MMe,sc_minutes:OMe,sc_months:$Me,sc_once:AMe,sc_period:PMe,sc_seconds:IMe,sc_simple:RMe,sc_specific:LMe,sc_specific_dates:NMe,sc_specific_dow:FMe,sc_specific_dows:zMe,sc_specific_hours:BMe,sc_specific_minutes:jMe,sc_specific_months:WMe,sc_specific_seconds:HMe,sc_time:UMe,sc_to:VMe,sc_wizard:YMe,sch_all:GMe,sch_astroDay:qMe,sch_astroNight:XMe,sch_astro_dawn:JMe,sch_astro_dusk:KMe,sch_astro_goldenHour:ZMe,sch_astro_goldenHourEnd:QMe,sch_astro_nadir:eOe,sch_astro_nauticalDawn:tOe,sch_astro_nauticalDusk:rOe,sch_astro_night:nOe,sch_astro_nightEnd:aOe,sch_astro_solarNoon:oOe,sch_astro_sunrise:iOe,sch_astro_sunriseEnd:sOe,sch_astro_sunset:lOe,sch_astro_sunsetStart:cOe,sch_at:uOe,sch_desc_atTime:dOe,sch_desc_everyDay:fOe,sch_desc_everyHour:hOe,sch_desc_everyMinute:pOe,sch_desc_everyMonth:vOe,sch_desc_everyNDay:mOe,sch_desc_everyNHours:gOe,sch_desc_everyNMinutes:_Oe,sch_desc_everyNMonths:yOe,sch_desc_everyNWeeks:bOe,sch_desc_everyNYears:wOe,sch_desc_everyWeek:SOe,sch_desc_everyYear:xOe,sch_desc_intervalFromTo:COe,sch_desc_never:TOe,sch_desc_onDate:kOe,sch_desc_onDates:EOe,sch_desc_onEveryDate:DOe,sch_desc_onMonth:MOe,sch_desc_onMonths:OOe,sch_desc_onWeekday:$Oe,sch_desc_onWeekdays:AOe,sch_desc_onWeekends:POe,sch_desc_onWorkdays:IOe,sch_desc_onceInPast:ROe,sch_desc_once_on:LOe,sch_desc_validFrom:NOe,sch_desc_validFromTo:FOe,sch_desc_validTo:zOe,sch_every:BOe,sch_exactTime:jOe,sch_from:WOe,sch_fromTo:HOe,sch_intervalTime:UOe,sch_invert:VOe,sch_no_one:YOe,sch_on:GOe,sch_period:qOe,sch_periodDaily:XOe,sch_periodDates:JOe,sch_periodDay:KOe,sch_periodEvery:ZOe,sch_periodEveryDay:QOe,sch_periodEveryMonth:e$e,sch_periodEveryWeek:t$e,sch_periodEveryYear:r$e,sch_periodHours:n$e,sch_periodMinutes:a$e,sch_periodMonth:o$e,sch_periodMonthly:i$e,sch_periodOnce:s$e,sch_periodSpecificMonths:l$e,sch_periodWeek:c$e,sch_periodWeekdays:u$e,sch_periodWeekend:d$e,sch_periodWeekly:f$e,sch_periodWorkdays:h$e,sch_periodYear:p$e,sch_periodYearly:v$e,sch_specificTime:m$e,sch_time:g$e,sch_to:_$e,sch_valid:y$e,sch_validFrom:b$e,sch_validTo:w$e,sch_wholeDay:S$e,sch_yearEveryMonth:x$e},T$e="Anhängen",k$e="Abbrechen",E$e="Kategorien",D$e="Geprüft",M$e="Löschen",O$e="Schließen",$$e="Kommerziell",A$e="Konfigurieren",P$e="Verbunden",I$e="Kopiert",R$e="Erstellen",L$e="Ernte",N$e="Entf",F$e="Löschen",z$e="Verwerfen",B$e="Getrennt",j$e="Fehler",W$e="Filter",H$e="Freitag",U$e="Breite",V$e="Längengrad",Y$e="Meldung",G$e="Montag",q$e="Name",X$e="Objekte",J$e="OK",K$e="Produkt",Z$e="Wiederholen",Q$e="Ersetzen",eAe="Anfang",tAe="Samstag",rAe="Speichern",nAe="Ausgewählt",aAe="Zustände",oAe="Sonntag",iAe="Donnerstag",sAe="Zeitstempel",lAe="Dienstag",cAe="Aktualisieren",uAe="Gültig bis",dAe="Wert",fAe="Ausführung",hAe="Mittwoch",pAe="Breite",vAe="Ja",mAe="unterschiedlich",gAe="Jeder kann Objekt lesen",_Ae="Jeder kann Zustand lesen",yAe="Jeder kann ein Objekt schreiben",bAe="Jeder kann Zustand schreiben",wAe="Gruppe kann Objekt lesen",SAe="Gruppe kann Status lesen",xAe="Gruppe kann Objekt schreiben",CAe="Gruppe kann Status schreiben",TAe="Besitzer kann Objekt lesen",kAe="Besitzer kann Zustand lesen",EAe="Besitzer kann Objekt schreiben",DAe="Besitzer kann Zustand schreiben",MAe="Tasten",OAe="Geändert von",$Ae="Schließen",AAe="Booleschen Zustand erstellen",PAe="Kanal erstellen",IAe="Gerät erstellen",RAe="Nummern-Zustand erstellen",LAe="Zustand erstellen",NAe="String-Zustand erstellen",FAe="T.",zAe="Fr",BAe="Mo",jAe="Sa",WAe="So",HAe="Do",UAe="Di",VAe="Mi",YAe="Expertenmodus",GAe="Alle Dateien",qAe="Audio",XAe="Code/JSON",JAe="Bilder",KAe="Text",ZAe="Video",QAe="Einstellungen",ePe="ohne",tPe="Funktion",rPe="ID",nPe="Name",aPe="Rolle",oPe="Raum",iPe="Typ",sPe="Ungültige Einstellungen",lPe="Letzte Änderung",cPe="örtlich",uPe="Apr",dPe="Aug",fPe="Dez",hPe="Feb",pPe="Jan",vPe="Jul",mPe="Jun",gPe="Mai",_Pe="Mär",yPe="Nov",bPe="Okt",wPe="Sep",SPe="Apr",xPe="Aug",CPe="Dez",TPe="Feb",kPe="Jan",EPe="Jul",DPe="Jun",MPe="Mai",OPe="Mär",$Pe="Nov",APe="Okt",PPe="Sep",IPe="kein",RPe="Objekt geändert von",LPe="Objekt zuletzt geändert um",NPe="Einstellungen von anderen Adaptern %s",FPe="Qualitätscode",zPe="wiederholen",BPe='Um einen Ordner auszuwählen, halten Sie einfach die Taste "Shift" gedrückt, indem Sie auf den Ordner klicken.',jPe="Zustand geändert durch",WPe="Objekt geändert von",HPe="Zeitstempel",UPe="Bestätigt",VPe="Kommentar",YPe="Statuswert kopieren",GPe="Benutzerdefinierte Einstellungen",qPe="Objekt löschen",XPe="Objekt bearbeiten",JPe="Statuswert bearbeiten",KPe="Von",ZPe="Zuletzt geändert",QPe="Qualität",eIe="Zeitstempel",tIe="Benutzer",rIe="Wert",nIe="Wert",aIe="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Minute ausgeführt!",oIe="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Sekunde ausgeführt!",iIe="CRON",sIe="Datum",lIe="Tage",cIe="Tag",uIe="Wochentage",dIe="Jeden",fIe="alle N Tage",hIe="jeden x-ten Tag der Woche",pIe="alle N Wochentage",vIe="alle N Stunden",mIe="alle N Minuten",gIe="alle N Monate",_Ie="alle N Sekunden",yIe="jeden Tag",bIe="jeden Tag der Woche",wIe="jeden Tag der Woche",SIe="jede Stunde",xIe="jede Minute",CIe="jeden Monat",TIe="jede Sekunde",kIe="Von",EIe="Stunden",DIe="Intervall",MIe="Intervall zwischen",OIe="Ungültiger CRON",$Ie="Minuten",AIe="Monate",PIe="Einmal",IIe="Zeitraum",RIe="Sekunden",LIe="Einfach",NIe="Bestimmte Zeit",FIe="bestimmte Tage",zIe="bestimmte(r) Tag(e) der Woche",BIe="bestimmten Wochentag",jIe="bestimmte Stunden",WIe="bestimmte Minuten",HIe="bestimmte Monate",UIe="bestimmte Sekunden",VIe="Zeit",YIe="Bis",GIe="Wizard",qIe="alle",XIe="Astronomischer Tag",JIe="Astronomische Nacht",KIe="Morgendämmerung",ZIe="Abenddämmerung",QIe="Goldene Stunde",eRe="Goldene Stundenende",tRe="Nadir",rRe="Nautische Morgendämmerung",nRe="Nautische Abenddämmerung",aRe="Nacht",oRe="Nachtende",iRe="Sonnenmittag",sRe="Sonnenaufgang",lRe="Sonnenaufgangende",cRe="Sonnenuntergang",uRe="Sonnenuntergangstart",dRe="am",fRe="um %s",hRe="jeden Tag",pRe="jede Stunde",vRe="jede Minute",mRe="jeden Monat",gRe="jeden %s Tag",_Re="alle %s Stunden",yRe="alle %s Minuten",bRe="alle %s Monate",wRe="alle %s Wochen",SRe="alle %s Jahre",xRe="jede Woche",CRe="jedes Jahr",TRe="von %s bis %s",kRe="noch nie",ERe="am %s von %s",DRe="am %s und %s von",MRe="an jedem Datum von",ORe="%s",$Re="%s und %s",ARe="auf %s",PRe="auf %s und %s",IRe="an Wochenenden",RRe="an Werktagen",LRe="wird nicht mehr ausgeführt, weil der Start in der Vergangenheit ist",NRe="auf %s",FRe="von %s",zRe="Ausführen von bis",BRe="bis %s",jRe="jeden",WRe="Bestimmte Zeit",HRe="von",URe="Von bis",VRe="Zeitintervall",YRe="umkehren",GRe="keiner",qRe="am",XRe="Zeitraum",JRe="Täglich",KRe="Daten",ZRe="Tag",QRe="Jeden",eLe="Jeden Tag",tLe="Jeden Monat",rLe="Jede Woche",nLe="Jedes Jahr",aLe="Stunden",oLe="Minuten",iLe="Monat",sLe="Monatlich",lLe="Einmal",cLe="Bestimmte Monate",uLe="Woche",dLe="Wochentage",fLe="Wochenende",hLe="Wöchentlich",pLe="Arbeitstage",vLe="Jahr",mLe="Jährlich",gLe="Bestimmte Zeit",_Le="Zeit",yLe="zu",bLe="Gültigkeit",wLe="von",SLe="bis",xLe="Ganzer Tag",CLe="jeden Monat",TLe={"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_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:T$e,"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:k$e,"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:E$e,"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:D$e,ra_Clear:M$e,"ra_Clear filter":"Filter löschen","ra_Clear icon":"Symbol löschen","ra_Clone current row":"Aktuelle Zeile klonen",ra_Close:O$e,"ra_Collapse all nodes":"Alle Knoten zuklappen","ra_Collapse one step node":"Eine Ebene zuklappen",ra_Commercial:$$e,ra_Configure:A$e,"ra_Configure visible columns":"Spalten Konfigurieren","ra_Confirm deletion of %s":"Das Löschen von %s bestätigen",ra_Connected:P$e,ra_Copied:I$e,"ra_Copied %s":'"%s" kopiert',"ra_Copy content":"Inhalte kopieren",ra_Create:R$e,"ra_Create alias":"Alias erstellen","ra_Create folder":"Ordner erstellen","ra_Create new folder in %s":'Neuen Ordner in "%s" erstellen',ra_Crop:L$e,"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:N$e,ra_Delete:F$e,"ra_Delete (no confirm for 5 mins)":"Löschen (keine Bestätigung für 5 Minuten)","ra_Delete current row":"Aktuelle Zeile löschen","ra_Deselect all":"Alles abwählen","ra_Device → Channel → State":"Gerät → Kanal → Zustand",ra_Discard:z$e,ra_Disconnected:B$e,"ra_Do not export values of states":"Keine Zustandswerte exportieren","ra_Do not use let's encrypt":"Let's encrypt nicht verwenden","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 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_Error:j$e,"ra_Expand all nodes":"Alle Knoten aufklappen","ra_Expand one step node":"Eine Ebene aufklappen","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:W$e,"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:H$e,"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_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 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:U$e,"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_Longitude:V$e,'ra_May not trigger "updateLicenses"':"Löst möglicherweise nicht „updateLicenses“ aus",ra_Message:Y$e,ra_Monday:G$e,"ra_Move down":"Nach unten","ra_Move up":"Nach oben",ra_Name:q$e,"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 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_Objects:X$e,ra_Ok:J$e,"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 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_Private certificate":"Privates Zertifikat",ra_Product:K$e,"ra_Public certificate":"Öffentliches Zertifikat","ra_Quality code":"Qualität","ra_Refresh tree":"Baum aktualisieren","ra_Reload files":"Dateien neu laden",ra_Repeat:Z$e,ra_Replace:Q$e,"ra_Request timed out":"Zeitüberschreitung der Anforderung","ra_Restrict to folder":"Auf Ordner beschränken",ra_Root:eAe,ra_Saturday:tAe,ra_Save:rAe,"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:nAe,"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_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:aAe,"ra_Suitable license not found in license manager":"Passende Lizenz im Lizenzmanager nicht gefunden",ra_Sunday:oAe,"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:iAe,ra_Timestamp:sAe,"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:lAe,"ra_Unknown error":"Unbekannter Fehler","ra_Unknown error!":"Unbekannter Fehler!",ra_Update:cAe,"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:uAe,ra_Value:dAe,ra_Version:fAe,"ra_View file":"Datei ansehen","ra_View: %s":"Anschauen: %s",ra_Wednesday:hAe,ra_Width:pAe,ra_Yes:vAe,"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___different__:mAe,ra_aclEveryone_read_object:gAe,ra_aclEveryone_read_state:_Ae,ra_aclEveryone_write_object:yAe,ra_aclEveryone_write_state:bAe,ra_aclGroup_read_object:wAe,ra_aclGroup_read_state:SAe,ra_aclGroup_write_object:xAe,ra_aclGroup_write_state:CAe,ra_aclOwner_read_object:TAe,ra_aclOwner_read_state:kAe,ra_aclOwner_write_object:EAe,ra_aclOwner_write_state:DAe,ra_buttons:MAe,ra_changedFrom:OAe,ra_close:$Ae,ra_create_boolean_state:AAe,ra_create_channel:PAe,ra_create_device:IAe,ra_create_number_state:RAe,ra_create_state:LAe,ra_create_string_state:NAe,ra_daysShortText:FAe,ra_dow_Fr:zAe,ra_dow_Mo:BAe,ra_dow_Sa:jAe,ra_dow_Su:WAe,ra_dow_Th:HAe,ra_dow_Tu:UAe,ra_dow_We:VAe,ra_expertMode:YAe,ra_fileType_all:GAe,ra_fileType_audio:qAe,ra_fileType_code:XAe,ra_fileType_images:JAe,ra_fileType_txt:KAe,ra_fileType_video:ZAe,"ra_fileType_video,":"Video",ra_filter_customs:QAe,ra_filter_customs_without:ePe,ra_filter_func:tPe,ra_filter_id:rPe,ra_filter_name:nPe,ra_filter_role:aPe,ra_filter_room:oPe,ra_filter_type:iPe,"ra_import data from %s file":"Daten aus %s-Datei importieren",ra_invalidConfig:sPe,ra_lastChange:lPe,ra_locally:cPe,ra_month_Apr:uPe,ra_month_Aug:dPe,ra_month_Dec:fPe,ra_month_Feb:hPe,ra_month_Jan:pPe,ra_month_Jul:vPe,ra_month_Jun:mPe,ra_month_Mai:gPe,ra_month_Mar:_Pe,ra_month_Nov:yPe,ra_month_Oct:bPe,ra_month_Sep:wPe,ra_months_Apr:SPe,ra_months_Aug:xPe,ra_months_Dec:CPe,ra_months_Feb:TPe,ra_months_Jan:kPe,ra_months_Jul:EPe,ra_months_Jun:DPe,ra_months_Mai:MPe,ra_months_Mar:OPe,ra_months_Nov:$Pe,ra_months_Oct:APe,ra_months_Sep:PPe,ra_none:IPe,ra_object_changed_by:RPe,ra_object_changed_by_user:LPe,ra_otherConfig:NPe,ra_qualityCode:FPe,ra_repeat:zPe,ra_select_folder_hint:BPe,ra_state_changed_by:jPe,ra_state_changed_from:WPe,ra_timestamp:HPe,ra_tooltip_ack:UPe,ra_tooltip_comment:VPe,ra_tooltip_copyState:YPe,ra_tooltip_customConfig:GPe,ra_tooltip_deleteObject:qPe,ra_tooltip_editObject:XPe,ra_tooltip_editState:JPe,ra_tooltip_from:KPe,ra_tooltip_lc:ZPe,ra_tooltip_quality:QPe,ra_tooltip_ts:eIe,ra_tooltip_user:tIe,ra_tooltip_value:rIe,"ra_use seconds":"Sekunden benutzen",ra_val:nIe,"ra_via internet":"übers Internet",ra_warning_every_minute:aIe,ra_warning_every_second:oIe,sc_cron:iIe,sc_date:sIe,sc_dates:lIe,sc_dow:cIe,sc_dows:uIe,sc_every:dIe,sc_everyN_dates:fIe,sc_everyN_dow:hIe,sc_everyN_dows:pIe,sc_everyN_hours:vIe,sc_everyN_minutes:mIe,sc_everyN_months:gIe,sc_everyN_seconds:_Ie,sc_every_dates:yIe,sc_every_dow:bIe,sc_every_dows:wIe,sc_every_hours:SIe,sc_every_minutes:xIe,sc_every_months:CIe,sc_every_seconds:TIe,sc_from:kIe,sc_hours:EIe,sc_interval:DIe,sc_intervalBetween:MIe,sc_invalid_cron:OIe,sc_minutes:$Ie,sc_months:AIe,sc_once:PIe,sc_period:IIe,sc_seconds:RIe,sc_simple:LIe,sc_specific:NIe,sc_specific_dates:FIe,sc_specific_dow:zIe,sc_specific_dows:BIe,sc_specific_hours:jIe,sc_specific_minutes:WIe,sc_specific_months:HIe,sc_specific_seconds:UIe,sc_time:VIe,sc_to:YIe,sc_wizard:GIe,sch_all:qIe,sch_astroDay:XIe,sch_astroNight:JIe,sch_astro_dawn:KIe,sch_astro_dusk:ZIe,sch_astro_goldenHour:QIe,sch_astro_goldenHourEnd:eRe,sch_astro_nadir:tRe,sch_astro_nauticalDawn:rRe,sch_astro_nauticalDusk:nRe,sch_astro_night:aRe,sch_astro_nightEnd:oRe,sch_astro_solarNoon:iRe,sch_astro_sunrise:sRe,sch_astro_sunriseEnd:lRe,sch_astro_sunset:cRe,sch_astro_sunsetStart:uRe,sch_at:dRe,sch_desc_atTime:fRe,sch_desc_everyDay:hRe,sch_desc_everyHour:pRe,sch_desc_everyMinute:vRe,sch_desc_everyMonth:mRe,sch_desc_everyNDay:gRe,sch_desc_everyNHours:_Re,sch_desc_everyNMinutes:yRe,sch_desc_everyNMonths:bRe,sch_desc_everyNWeeks:wRe,sch_desc_everyNYears:SRe,sch_desc_everyWeek:xRe,sch_desc_everyYear:CRe,sch_desc_intervalFromTo:TRe,sch_desc_never:kRe,sch_desc_onDate:ERe,sch_desc_onDates:DRe,sch_desc_onEveryDate:MRe,sch_desc_onMonth:ORe,sch_desc_onMonths:$Re,sch_desc_onWeekday:ARe,sch_desc_onWeekdays:PRe,sch_desc_onWeekends:IRe,sch_desc_onWorkdays:RRe,sch_desc_onceInPast:LRe,sch_desc_once_on:NRe,sch_desc_validFrom:FRe,sch_desc_validFromTo:zRe,sch_desc_validTo:BRe,sch_every:jRe,sch_exactTime:WRe,sch_from:HRe,sch_fromTo:URe,sch_intervalTime:VRe,sch_invert:YRe,sch_no_one:GRe,sch_on:qRe,sch_period:XRe,sch_periodDaily:JRe,sch_periodDates:KRe,sch_periodDay:ZRe,sch_periodEvery:QRe,sch_periodEveryDay:eLe,sch_periodEveryMonth:tLe,sch_periodEveryWeek:rLe,sch_periodEveryYear:nLe,sch_periodHours:aLe,sch_periodMinutes:oLe,sch_periodMonth:iLe,sch_periodMonthly:sLe,sch_periodOnce:lLe,sch_periodSpecificMonths:cLe,sch_periodWeek:uLe,sch_periodWeekdays:dLe,sch_periodWeekend:fLe,sch_periodWeekly:hLe,sch_periodWorkdays:pLe,sch_periodYear:vLe,sch_periodYearly:mLe,sch_specificTime:gLe,sch_time:_Le,sch_to:yLe,sch_valid:bLe,sch_validFrom:wLe,sch_validTo:SLe,sch_wholeDay:xLe,sch_yearEveryMonth:CLe},kLe="Добавить",ELe="Отмена",DLe="Категории",MLe="Проверено",OLe="Удалить",$Le="Закрыть",ALe="Коммерческая",PLe="Настроить",ILe="Соединение установлено",RLe="скопировано",LLe="Создать",NLe="Обрезать",FLe="Delete",zLe="Удалить",BLe="Отказаться",jLe="Отключено",WLe="Ошибка",HLe="Фильтр",ULe="Пятница",VLe="Широта",YLe="Долгота",GLe="Сообщение",qLe="Понедельник",XLe="Имя",JLe="Объекты",KLe="Ok",ZLe="Продукт",QLe="Повторение",eNe="Заменять",tNe="Начало",rNe="Суббота",nNe="Сохранить",aNe="выбранный",oNe="Состояния",iNe="Воскресенье",sNe="Четверг",lNe="Времени",cNe="Вторник",uNe="Обновить",dNe="Годен до",fNe="Значение",hNe="Версия",pNe="Среда",vNe="Ширина",mNe="Да",gNe="разное",_Ne="Каждый может читать объект",yNe="Каждый может читать состояние",bNe="Каждый может написать объект",wNe="Каждый может написать состояние",SNe="Группа может читать объект",xNe="Группа может читать состояние",CNe="Группа может писать объект",TNe="Группа может записывать состояние",kNe="Владелец может читать объект",ENe="Владелец может читать состояние",DNe="Владелец может писать объект",MNe="Владелец может писать состояние",ONe="Кнопки",$Ne="Изменено с",ANe="Закрыть",PNe="Создать логическое состояние",INe="Создать канал",RNe="Создать устройство",LNe="Создать состояние номера",NNe="Создать состояние",FNe="Создать состояние строки",zNe="д.",BNe="Пт",jNe="Пн",WNe="Сб",HNe="Вс",UNe="Чт",VNe="Вт",YNe="Ср",GNe="Экспертный режим",qNe="Все файлы",XNe="Аудио",JNe="Код/JSON",KNe="Картинки",ZNe="Текст",QNe="видео",e5e="настройки",t5e="без",r5e="функция",n5e="ID",a5e="Имя",o5e="роль",i5e="комната",s5e="Тип",l5e="Неверные настройки",c5e="Последнее изменение",u5e="локально",d5e="Апр",f5e="Авг",h5e="Дек",p5e="Фев",v5e="Янв",m5e="Июл",g5e="Июн",_5e="Май",y5e="Мрт",b5e="Ноя",w5e="Окт",S5e="Сен",x5e="Апр",C5e="Авг",T5e="Дек",k5e="Фев",E5e="Янв",D5e="Июнь",M5e="Июль",O5e="Май",$5e="Март",A5e="Ноя",P5e="Окт",I5e="Сен",R5e="ничего",L5e="Объект изменен",N5e="Последний раз объект изменен в",F5e="Настройки из другого адаптера %s",z5e="Код качества",B5e="повтор",j5e="Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.",W5e="Состояние изменено",H5e="Объект изменен с",U5e="Отметка времени",V5e="Подтверждено",Y5e="Комментарий",G5e="Скопируйте значение состояния",q5e="Пользовательские настройки",X5e="Удалить объект",J5e="Редактировать объект",K5e="Изменить значение состояния",Z5e="От",Q5e="Последнее изменение",e3e="Качество",t3e="Отметка времени",r3e="пользователь",n3e="Значение",a3e="Значение",o3e="Внимание: задание CRON будет запускаться каждую минуту в течение указанного периода!",i3e="Внимание: задание CRON будет выполняться каждую секунду в течение указанного периода!",s3e="CRON",l3e="Дата",c3e="Даты",u3e="День",d3e="День недели",f3e="каждый(ую/ые)",h3e="каждый N день",p3e="каждый N-й день недели",v3e="каждый N день недели",m3e="каждые N часов",g3e="каждые N минут",_3e="каждые N месяцев",y3e="каждые N секунд",b3e="каждый день",w3e="Каждый день недели",S3e="каждый день недели",x3e="каждый час",C3e="каждую минуту",T3e="каждый месяц",k3e="каждую секунду",E3e="От",D3e="часы",M3e="Интервал",O3e="Интервал между",$3e="Неверный CRON",A3e="минуты",P3e="Месяцы",I3e="один раз",R3e="Период",L3e="секунды",N3e="Просто",F3e="Конкретное время",z3e="конкретные даты",B3e="конкретный день(а) недели",j3e="конкретный день недели",W3e="конкретные часы",H3e="конкретные минуты",U3e="конкретные месяцы",V3e="конкретные секунды",Y3e="Время",G3e="До",q3e="Форма",X3e="все",J3e="днём",K3e="ночью",Z3e="Рассвет",Q3e="Сумерки",e4e="Золотой час",t4e="Конец золотого часа",r4e="Надир",n4e="Морской рассвет",a4e="Морские сумерки",o4e="Ночь",i4e="Конец ночи",s4e="Солнечный полдень",l4e="Восход",c4e="Восход солнца",u4e="Заход солнца",d4e="Начало заката",f4e="дата",h4e="в %s",p4e="каждый день",v4e="каждый час",m4e="каждую минуту",g4e="каждый месяц",_4e="каждый %s день",y4e="каждый %s часов",b4e="каждые %s минут",w4e="каждые %s месяцев",S4e="каждые %s недель",x4e="каждые %s лет",C4e="каждую неделю",T4e="каждый год",k4e="от %s до %s",E4e="никогда",D4e="%s %s",M4e="%s и %s",O4e="в каждый день",$4e="%s",A4e="%s и %s",P4e="%s",I4e="%s и %s",R4e="на выходных",L4e="в рабочие дни",N4e="не будет больше выполняться, потому что начало в прошлом",F4e="%s",z4e="%s",B4e="Выполнить с",j4e="%s",W4e="каждый",H4e="Конкретное время",U4e="от",V4e="От и до",Y4e="Интервал времени",G4e="инвертировать",q4e="никакой",X4e="на",J4e="период",K4e="Ежедневно",Z4e="Даты",Q4e="День",eFe="каждый",tFe="Каждый день",rFe="Каждый месяц",nFe="Каждую неделю",aFe="Каждый год",oFe="часов",iFe="минут",sFe="месяц",lFe="ежемесячно",cFe="однажды",uFe="Конкретные месяцы",dFe="Неделю",fFe="Будние дни",hFe="выходные",pFe="еженедельно",vFe="Рабочие дни",mFe="Год",gFe="каждый год",_Fe="Конкретное время",yFe="Время",bFe="в",wFe="действительный",SFe="от",xFe="в",CFe="Весь день",TFe="каждый месяц",kFe={"ra_%s links from aliases":"%s ссылок из псевдонимов","ra_%s object(s) processed":"Объектов обработано: %s","ra_%s was imported":"%s был импортирован","ra_Accept license":"Принять лицензию","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:kLe,"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:ELe,"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:DLe,"ra_Chained certificate":"Chained сертификат","ra_Change color theme":"Изменить цветовую тему","ra_Changed from":"Изменено","ra_Channel → State":"Канал → Состояние","ra_Check license":"Проверить лицензию",ra_Checked:MLe,ra_Clear:OLe,"ra_Clear filter":"Очистить фильтр","ra_Clear icon":"Очистить значок","ra_Clone current row":"Клонировать текущую строку",ra_Close:$Le,"ra_Collapse all nodes":"Свернуть все узлы","ra_Collapse one step node":"Свернуть один уровень",ra_Commercial:ALe,ra_Configure:PLe,"ra_Configure visible columns":"Настроить видимые столбцы","ra_Confirm deletion of %s":"Подтвердите удаление %s",ra_Connected:ILe,ra_Copied:RLe,"ra_Copied %s":'Скопировано "%s"',"ra_Copy content":"Копировать содержимое",ra_Create:LLe,"ra_Create alias":"Создать псевдоним","ra_Create folder":"Создать папку","ra_Create new folder in %s":"Создать новую папку в %s",ra_Crop:NLe,"ra_Define CRON...":"Определите CRON...","ra_Define functions":"Задать функции","ra_Define rooms":"Задать комнаты","ra_Define schedule":"Задать расписание","ra_Define schedule...":"Определить расписание ...",ra_Del:FLe,ra_Delete:zLe,"ra_Delete (no confirm for 5 mins)":"Удалить (без подтверждения в течение 5 минут)","ra_Delete current row":"Удалить текущую строку","ra_Deselect all":"Убрать выбор везде","ra_Device → Channel → State":"Устройство → Канал → Состояние",ra_Discard:BLe,ra_Disconnected:jLe,"ra_Do not export values of states":"Не экспортировать значения состояний","ra_Do not use let's encrypt":"Не использовать Let’s Encrypt","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 function":"Изменить функцию","ra_Edit object field":"Поле редактирования объекта","ra_Edit role":"Изменить роль","ra_Edit room":"Редактировать комнату","ra_Edit value":"Изменить значение",ra_Error:WLe,"ra_Expand all nodes":"Развернуть все узлы","ra_Expand one step node":"Открыть один уровень","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:HLe,"ra_Filter files":"Фильтровать файлы","ra_Folder name":"Имя папки","ra_Folder → Channel → State":"Папка → Канал → Состояние","ra_Folder → Device → Channel → State":"Папка → Устройство → Канал → Состояние","ra_Folder → State":"Папка → Состояние","ra_Folders always first":"Папки всегда на первом месте",ra_Friday:ULe,"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_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 answer from server":"Неверный ответ от сервера","ra_Invalid parent folder!":"Неверная родительская папка!","ra_Invalid structure":"Неверная структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Последнее изменение",ra_Latitude:VLe,"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_Longitude:YLe,'ra_May not trigger "updateLicenses"':"Не может запускать «updateLicenses»",ra_Message:GLe,ra_Monday:qLe,"ra_Move down":"Вниз","ra_Move up":"Вверх",ra_Name:XLe,"ra_No data found in file":"Данные в файле не найдены","ra_No one license found in license manager":"В менеджере лицензий не найдена ни одна лицензия","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_Objects:JLe,ra_Ok:KLe,"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 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_Private certificate":"Частный сертификат",ra_Product:ZLe,"ra_Public certificate":"Публичный сертификат","ra_Quality code":"Валидность","ra_Refresh tree":"Обновить дерево","ra_Reload files":"Обновить",ra_Repeat:QLe,ra_Replace:eNe,"ra_Request timed out":"Истекло время запроса","ra_Restrict to folder":"Ограничить папкой",ra_Root:tNe,ra_Saturday:rNe,ra_Save:nNe,"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:aNe,"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_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:oNe,"ra_Suitable license not found in license manager":"Подходящая лицензия не найдена в менеджере лицензий",ra_Sunday:iNe,"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:sNe,ra_Timestamp:lNe,"ra_Toggle expert mode":"Переключить экспертный режим","ra_Toggle the states view":"Переключить режим просмотра состояний","ra_Toggle view mode":"Переключить режим просмотра","ra_Too big":"Слишком большое","ra_Too small":"Слишком маленькое","ra_Transparent dialog":"Прозрачный диалог",ra_Tuesday:cNe,"ra_Unknown error":"Неизвестная ошибка","ra_Unknown error!":"Неизвестная ошибка!",ra_Update:uNe,"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:dNe,ra_Value:fNe,ra_Version:hNe,"ra_View file":"Посмотреть файл","ra_View: %s":"Просмотр: %s",ra_Wednesday:pNe,ra_Width:vNe,ra_Yes:mNe,"ra_You can export all objects or just the selected branch.":"Вы можете экспортировать все объекты или только выбранную ветвь.","ra_You can filter entries by entering here some text":"Вы можете отфильтровать записи, введя здесь текст",ra___different__:gNe,ra_aclEveryone_read_object:_Ne,ra_aclEveryone_read_state:yNe,ra_aclEveryone_write_object:bNe,ra_aclEveryone_write_state:wNe,ra_aclGroup_read_object:SNe,ra_aclGroup_read_state:xNe,ra_aclGroup_write_object:CNe,ra_aclGroup_write_state:TNe,ra_aclOwner_read_object:kNe,ra_aclOwner_read_state:ENe,ra_aclOwner_write_object:DNe,ra_aclOwner_write_state:MNe,ra_buttons:ONe,ra_changedFrom:$Ne,ra_close:ANe,ra_create_boolean_state:PNe,ra_create_channel:INe,ra_create_device:RNe,ra_create_number_state:LNe,ra_create_state:NNe,ra_create_string_state:FNe,ra_daysShortText:zNe,ra_dow_Fr:BNe,ra_dow_Mo:jNe,ra_dow_Sa:WNe,ra_dow_Su:HNe,ra_dow_Th:UNe,ra_dow_Tu:VNe,ra_dow_We:YNe,ra_expertMode:GNe,ra_fileType_all:qNe,ra_fileType_audio:XNe,ra_fileType_code:JNe,ra_fileType_images:KNe,ra_fileType_txt:ZNe,ra_fileType_video:QNe,"ra_fileType_video,":"видео",ra_filter_customs:e5e,ra_filter_customs_without:t5e,ra_filter_func:r5e,ra_filter_id:n5e,ra_filter_name:a5e,ra_filter_role:o5e,ra_filter_room:i5e,ra_filter_type:s5e,"ra_import data from %s file":"Импортировать данные из файла %s",ra_invalidConfig:l5e,ra_lastChange:c5e,ra_locally:u5e,ra_month_Apr:d5e,ra_month_Aug:f5e,ra_month_Dec:h5e,ra_month_Feb:p5e,ra_month_Jan:v5e,ra_month_Jul:m5e,ra_month_Jun:g5e,ra_month_Mai:_5e,ra_month_Mar:y5e,ra_month_Nov:b5e,ra_month_Oct:w5e,ra_month_Sep:S5e,ra_months_Apr:x5e,ra_months_Aug:C5e,ra_months_Dec:T5e,ra_months_Feb:k5e,ra_months_Jan:E5e,ra_months_Jul:D5e,ra_months_Jun:M5e,ra_months_Mai:O5e,ra_months_Mar:$5e,ra_months_Nov:A5e,ra_months_Oct:P5e,ra_months_Sep:I5e,ra_none:R5e,ra_object_changed_by:L5e,ra_object_changed_by_user:N5e,ra_otherConfig:F5e,ra_qualityCode:z5e,ra_repeat:B5e,ra_select_folder_hint:j5e,ra_state_changed_by:W5e,ra_state_changed_from:H5e,ra_timestamp:U5e,ra_tooltip_ack:V5e,ra_tooltip_comment:Y5e,ra_tooltip_copyState:G5e,ra_tooltip_customConfig:q5e,ra_tooltip_deleteObject:X5e,ra_tooltip_editObject:J5e,ra_tooltip_editState:K5e,ra_tooltip_from:Z5e,ra_tooltip_lc:Q5e,ra_tooltip_quality:e3e,ra_tooltip_ts:t3e,ra_tooltip_user:r3e,ra_tooltip_value:n3e,"ra_use seconds":"секунды",ra_val:a3e,"ra_via internet":"через интернет",ra_warning_every_minute:o3e,ra_warning_every_second:i3e,sc_cron:s3e,sc_date:l3e,sc_dates:c3e,sc_dow:u3e,sc_dows:d3e,sc_every:f3e,sc_everyN_dates:h3e,sc_everyN_dow:p3e,sc_everyN_dows:v3e,sc_everyN_hours:m3e,sc_everyN_minutes:g3e,sc_everyN_months:_3e,sc_everyN_seconds:y3e,sc_every_dates:b3e,sc_every_dow:w3e,sc_every_dows:S3e,sc_every_hours:x3e,sc_every_minutes:C3e,sc_every_months:T3e,sc_every_seconds:k3e,sc_from:E3e,sc_hours:D3e,sc_interval:M3e,sc_intervalBetween:O3e,sc_invalid_cron:$3e,sc_minutes:A3e,sc_months:P3e,sc_once:I3e,sc_period:R3e,sc_seconds:L3e,sc_simple:N3e,sc_specific:F3e,sc_specific_dates:z3e,sc_specific_dow:B3e,sc_specific_dows:j3e,sc_specific_hours:W3e,sc_specific_minutes:H3e,sc_specific_months:U3e,sc_specific_seconds:V3e,sc_time:Y3e,sc_to:G3e,sc_wizard:q3e,sch_all:X3e,sch_astroDay:J3e,sch_astroNight:K3e,sch_astro_dawn:Z3e,sch_astro_dusk:Q3e,sch_astro_goldenHour:e4e,sch_astro_goldenHourEnd:t4e,sch_astro_nadir:r4e,sch_astro_nauticalDawn:n4e,sch_astro_nauticalDusk:a4e,sch_astro_night:o4e,sch_astro_nightEnd:i4e,sch_astro_solarNoon:s4e,sch_astro_sunrise:l4e,sch_astro_sunriseEnd:c4e,sch_astro_sunset:u4e,sch_astro_sunsetStart:d4e,sch_at:f4e,sch_desc_atTime:h4e,sch_desc_everyDay:p4e,sch_desc_everyHour:v4e,sch_desc_everyMinute:m4e,sch_desc_everyMonth:g4e,sch_desc_everyNDay:_4e,sch_desc_everyNHours:y4e,sch_desc_everyNMinutes:b4e,sch_desc_everyNMonths:w4e,sch_desc_everyNWeeks:S4e,sch_desc_everyNYears:x4e,sch_desc_everyWeek:C4e,sch_desc_everyYear:T4e,sch_desc_intervalFromTo:k4e,sch_desc_never:E4e,sch_desc_onDate:D4e,sch_desc_onDates:M4e,sch_desc_onEveryDate:O4e,sch_desc_onMonth:$4e,sch_desc_onMonths:A4e,sch_desc_onWeekday:P4e,sch_desc_onWeekdays:I4e,sch_desc_onWeekends:R4e,sch_desc_onWorkdays:L4e,sch_desc_onceInPast:N4e,sch_desc_once_on:F4e,sch_desc_validFrom:z4e,sch_desc_validFromTo:B4e,sch_desc_validTo:j4e,sch_every:W4e,sch_exactTime:H4e,sch_from:U4e,sch_fromTo:V4e,sch_intervalTime:Y4e,sch_invert:G4e,sch_no_one:q4e,sch_on:X4e,sch_period:J4e,sch_periodDaily:K4e,sch_periodDates:Z4e,sch_periodDay:Q4e,sch_periodEvery:eFe,sch_periodEveryDay:tFe,sch_periodEveryMonth:rFe,sch_periodEveryWeek:nFe,sch_periodEveryYear:aFe,sch_periodHours:oFe,sch_periodMinutes:iFe,sch_periodMonth:sFe,sch_periodMonthly:lFe,sch_periodOnce:cFe,sch_periodSpecificMonths:uFe,sch_periodWeek:dFe,sch_periodWeekdays:fFe,sch_periodWeekend:hFe,sch_periodWeekly:pFe,sch_periodWorkdays:vFe,sch_periodYear:mFe,sch_periodYearly:gFe,sch_specificTime:_Fe,sch_time:yFe,sch_to:bFe,sch_valid:wFe,sch_validFrom:SFe,sch_validTo:xFe,sch_wholeDay:CFe,sch_yearEveryMonth:TFe},EFe="Acrescentar",DFe="Cancelar",MFe="Categorias",OFe="Verificado",$Fe="Excluir",AFe="Perto",PFe="Comercial",IFe="Configurar",RFe="Conectado",LFe="Copiado",NFe="Crio",FFe="Colheita",zFe="Delete",BFe="Excluir",jFe="Descartar",WFe="Desconectado",HFe="Erro",UFe="Filtro",VFe="Sexta-feira",YFe="Latitude",GFe="Longitude",qFe="mensagem",XFe="Segunda-feira",JFe="Nome",KFe="Objetos",ZFe="Está bem",QFe="produtos",eze="Repita",tze="Substituir",rze="Raiz",nze="Sábado",aze="Salve ",oze="Selecionado",ize="Estados",sze="Domingo",lze="Quinta-feira",cze="Timestamp",uze="Terça-feira",dze="Atualizar",fze="Válida até",hze="Valor",pze="Versão",vze="Quarta-feira",mze="Largura",gze="Sim",_ze="diferente",yze="Todos podem ler objetos",bze="Todos podem ler o estado",wze="Todos podem escrever objetos",Sze="Todos podem escrever o estado",xze="O grupo pode ler o objeto",Cze="O grupo pode ler o estado",Tze="O grupo pode escrever o objeto",kze="O grupo pode escrever o estado",Eze="O proprietário pode ler o objeto",Dze="O proprietário pode ler o estado",Mze="O proprietário pode escrever o objeto",Oze="O proprietário pode escrever o estado",$ze="Botões",Aze="Mudou de",Pze="fechar",Ize="Criar estado booleano",Rze="Criar canal",Lze="Criar dispositivo",Nze="Criar estado numérico",Fze="Criar estado",zze="Criar estado de string",Bze="d.",jze="Fr",Wze="Mo",Hze="Sa",Uze="Su",Vze="º",Yze="Tu",Gze="Nós",qze="Modo especialista",Xze="Todos os arquivos",Jze="áudio",Kze="Código/JSON",Zze="Imagens",Qze="Texto",e6e="Vídeo",t6e="Configurações",r6e="sem",n6e="Função",a6e="ID",o6e="Nome",i6e="Papel (Função)",s6e="Quarto",l6e="Tipo",c6e="Configurações inválidas",u6e="Última mudança",d6e="localmente",f6e="abril",h6e="agosto",p6e="dezembro",v6e="fevereiro",m6e="janeiro",g6e="julho",_6e="junho",y6e="Mai",b6e="março",w6e="novembro",S6e="outubro",x6e="setembro",C6e="abril",T6e="agosto",k6e="dezembro",E6e="fevereiro",D6e="janeiro",M6e="julho",O6e="junho",$6e="Mai",A6e="março",P6e="novembro",I6e="outubro",R6e="setembro",L6e="Nenhum",N6e="Objeto alterado por",F6e="Objeto alterado pela última vez em",z6e="Configurações de outro adaptador %s",B6e="Código de qualidade",j6e="repetir",W6e='Para selecionar a pasta, basta segurar a tecla "shift" clicando na pasta.',H6e="Estado alterado por",U6e="Objeto alterado de",V6e="Timestamp",Y6e="Confirmado",G6e="Comente",q6e="Copie o valor do estado",X6e="Opções customizadas",J6e="Excluir objeto",K6e="Editar objeto",Z6e="Edite o valor do estado",Q6e="De",e8e="Última alteração",t8e="Qualidade",r8e="Timestamp",n8e="Usuário",a8e="Valor",o8e="Valor",i8e="Aviso: O trabalho CRON será executado a cada minuto durante o período especificado!",s8e="Aviso: O trabalho CRON será executado a cada segundo durante o período especificado!",l8e="CRON",c8e="Data",u8e="Dias",d8e="Dia",f8e="Dia da semana",h8e="todos",p8e="a cada N dias",v8e="todo enésimo dia da semana",m8e="todos os N dias da semana",g8e="a cada N horas",_8e="a cada N minutos",y8e="a cada N meses",b8e="a cada N segundos",w8e="todo dia",S8e="todos os dias da semana",x8e="todos os dias da semana",C8e="toda hora",T8e="todo minuto",k8e="todo mês",E8e="todo segundo",D8e="de",M8e="horas",O8e="intervalo",$8e="intervalo entre",A8e="CRON inválido",P8e="minutos",I8e="meses",R8e="uma vez",L8e="período",N8e="segundos",F8e="simples",z8e="tempo específico",B8e="datas específicas",j8e="dia(s) específico(s) da semana",W8e="dia específico de semanas",H8e="horas específicas",U8e="minutos específicos",V8e="meses específicos",Y8e="segundos específicos",G8e="tempo",q8e="para",X8e="assistente",J8e="tudo",K8e="dia astral",Z8e="noite astral",Q8e="amanhecer",eBe="anoitecer",tBe="hora dourada",rBe="Fim da hora dourada",nBe="nadir",aBe="Amanhecer náutico",oBe="Anoitecer náutico",iBe="noite",sBe="fim da noite",lBe="meio-dia solar",cBe="nascer do sol",uBe="fim do nascer do sol",dBe="pôr do sol",fBe="início do pôr do sol",hBe="às",pBe="em %s",vBe="todo dia",mBe="toda hora",gBe="todo minuto",_Be="todo mês",yBe="a cada %s dias",bBe="a cada %s horas",wBe="a cada %s minutos",SBe="a cada %s meses",xBe="a cada %s semanas",CBe="a cada %s anos",TBe="toda semana",kBe="todo ano",EBe="de %s para %s",DBe="nunca",MBe="em %s de %s",OBe="em %s e %s de",$Be="em toda data de",ABe="%s",PBe="%s e %s",IBe="em %s",RBe="em %s e %s",LBe="nos fins de semana",NBe="em dias úteis",FBe="não será mais executado, porque o começo está no passado",zBe="em %s",BBe="de %s",jBe="Executar de até",WBe="até %s",HBe="cada",UBe="tempo específico",VBe="de",YBe="de a´t",GBe="tempo de intervalo",qBe="invertido",XBe="nenhum",JBe="em",KBe="período",ZBe="diariamente",QBe="datas",eje="dia",tje="todos",rje="todo dia",nje="todo mês",aje="toda semana",oje="todo ano",ije="horas",sje="minutos",lje="mês",cje="por mês",uje="uma vez",dje="meses específicos",fje="semana",hje="dias úteis",pje="final de semana",vje="semanal",mje="dias úteis",gje="ano",_je="anual",yje="tempo específico",bje="tempo",wje="para",Sje="válido",xje="de",Cje="para",Tje="dia inteiro",kje="todo mês",Eje={"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_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:EFe,"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:DFe,"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:MFe,"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:OFe,ra_Clear:$Fe,"ra_Clear filter":"Filtro limpo","ra_Clear icon":"Ícone de limpeza","ra_Clone current row":"Clonar linha atual",ra_Close:AFe,"ra_Collapse all nodes":"Recolher todos os nós","ra_Collapse one step node":"Recolher um nível",ra_Commercial:PFe,ra_Configure:IFe,"ra_Configure visible columns":"Configurar colunas visíveis","ra_Confirm deletion of %s":"Confirme a exclusão de %s",ra_Connected:RFe,ra_Copied:LFe,"ra_Copied %s":'"%s" copiado',"ra_Copy content":"Copiar conteúdo",ra_Create:NFe,"ra_Create alias":"Criar alias","ra_Create folder":"Criar pasta","ra_Create new folder in %s":"Crie uma nova pasta em %s",ra_Crop:FFe,"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:zFe,ra_Delete:BFe,"ra_Delete (no confirm for 5 mins)":"Excluir (sem confirmação por 5 minutos)","ra_Delete current row":"Excluir linha atual","ra_Deselect all":"Desmarque todos","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:jFe,ra_Disconnected:WFe,"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_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 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_Error:HFe,"ra_Expand all nodes":"Expanda todos os nós","ra_Expand one step node":"Expanda um nível","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:UFe,"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:VFe,"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_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 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:YFe,"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_Longitude:GFe,'ra_May not trigger "updateLicenses"':'Pode não acionar "updateLicenses"',ra_Message:qFe,ra_Monday:XFe,"ra_Move down":"Mover para baixo","ra_Move up":"Subir",ra_Name:JFe,"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 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_Objects:KFe,ra_Ok:ZFe,"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 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_Private certificate":"certificado privado",ra_Product:QFe,"ra_Public certificate":"certificado público","ra_Quality code":"Qualidade","ra_Refresh tree":"Atualizar árvore","ra_Reload files":"Recarregar arquivos",ra_Repeat:eze,ra_Replace:tze,"ra_Request timed out":"Solicitação expirou","ra_Restrict to folder":"Restringir à pasta",ra_Root:rze,ra_Saturday:nze,ra_Save:aze,"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:oze,"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_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:ize,"ra_Suitable license not found in license manager":"Licença adequada não encontrada no gerenciador de licenças",ra_Sunday:sze,"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:lze,ra_Timestamp:cze,"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:uze,"ra_Unknown error":"Erro desconhecido","ra_Unknown error!":"Erro desconhecido!",ra_Update:dze,"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:fze,ra_Value:hze,ra_Version:pze,"ra_View file":"Visualizar arquivo","ra_View: %s":"Visualizar: %s",ra_Wednesday:vze,ra_Width:mze,ra_Yes:gze,"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___different__:_ze,ra_aclEveryone_read_object:yze,ra_aclEveryone_read_state:bze,ra_aclEveryone_write_object:wze,ra_aclEveryone_write_state:Sze,ra_aclGroup_read_object:xze,ra_aclGroup_read_state:Cze,ra_aclGroup_write_object:Tze,ra_aclGroup_write_state:kze,ra_aclOwner_read_object:Eze,ra_aclOwner_read_state:Dze,ra_aclOwner_write_object:Mze,ra_aclOwner_write_state:Oze,ra_buttons:$ze,ra_changedFrom:Aze,ra_close:Pze,ra_create_boolean_state:Ize,ra_create_channel:Rze,ra_create_device:Lze,ra_create_number_state:Nze,ra_create_state:Fze,ra_create_string_state:zze,ra_daysShortText:Bze,ra_dow_Fr:jze,ra_dow_Mo:Wze,ra_dow_Sa:Hze,ra_dow_Su:Uze,ra_dow_Th:Vze,ra_dow_Tu:Yze,ra_dow_We:Gze,ra_expertMode:qze,ra_fileType_all:Xze,ra_fileType_audio:Jze,ra_fileType_code:Kze,ra_fileType_images:Zze,ra_fileType_txt:Qze,ra_fileType_video:e6e,"ra_fileType_video,":"Vídeo",ra_filter_customs:t6e,ra_filter_customs_without:r6e,ra_filter_func:n6e,ra_filter_id:a6e,ra_filter_name:o6e,ra_filter_role:i6e,ra_filter_room:s6e,ra_filter_type:l6e,"ra_import data from %s file":"Importar dados do arquivo %s",ra_invalidConfig:c6e,ra_lastChange:u6e,ra_locally:d6e,ra_month_Apr:f6e,ra_month_Aug:h6e,ra_month_Dec:p6e,ra_month_Feb:v6e,ra_month_Jan:m6e,ra_month_Jul:g6e,ra_month_Jun:_6e,ra_month_Mai:y6e,ra_month_Mar:b6e,ra_month_Nov:w6e,ra_month_Oct:S6e,ra_month_Sep:x6e,ra_months_Apr:C6e,ra_months_Aug:T6e,ra_months_Dec:k6e,ra_months_Feb:E6e,ra_months_Jan:D6e,ra_months_Jul:M6e,ra_months_Jun:O6e,ra_months_Mai:$6e,ra_months_Mar:A6e,ra_months_Nov:P6e,ra_months_Oct:I6e,ra_months_Sep:R6e,ra_none:L6e,ra_object_changed_by:N6e,ra_object_changed_by_user:F6e,ra_otherConfig:z6e,ra_qualityCode:B6e,ra_repeat:j6e,ra_select_folder_hint:W6e,ra_state_changed_by:H6e,ra_state_changed_from:U6e,ra_timestamp:V6e,ra_tooltip_ack:Y6e,ra_tooltip_comment:G6e,ra_tooltip_copyState:q6e,ra_tooltip_customConfig:X6e,ra_tooltip_deleteObject:J6e,ra_tooltip_editObject:K6e,ra_tooltip_editState:Z6e,ra_tooltip_from:Q6e,ra_tooltip_lc:e8e,ra_tooltip_quality:t8e,ra_tooltip_ts:r8e,ra_tooltip_user:n8e,ra_tooltip_value:a8e,"ra_use seconds":"use segundos",ra_val:o8e,"ra_via internet":"via internet",ra_warning_every_minute:i8e,ra_warning_every_second:s8e,sc_cron:l8e,sc_date:c8e,sc_dates:u8e,sc_dow:d8e,sc_dows:f8e,sc_every:h8e,sc_everyN_dates:p8e,sc_everyN_dow:v8e,sc_everyN_dows:m8e,sc_everyN_hours:g8e,sc_everyN_minutes:_8e,sc_everyN_months:y8e,sc_everyN_seconds:b8e,sc_every_dates:w8e,sc_every_dow:S8e,sc_every_dows:x8e,sc_every_hours:C8e,sc_every_minutes:T8e,sc_every_months:k8e,sc_every_seconds:E8e,sc_from:D8e,sc_hours:M8e,sc_interval:O8e,sc_intervalBetween:$8e,sc_invalid_cron:A8e,sc_minutes:P8e,sc_months:I8e,sc_once:R8e,sc_period:L8e,sc_seconds:N8e,sc_simple:F8e,sc_specific:z8e,sc_specific_dates:B8e,sc_specific_dow:j8e,sc_specific_dows:W8e,sc_specific_hours:H8e,sc_specific_minutes:U8e,sc_specific_months:V8e,sc_specific_seconds:Y8e,sc_time:G8e,sc_to:q8e,sc_wizard:X8e,sch_all:J8e,sch_astroDay:K8e,sch_astroNight:Z8e,sch_astro_dawn:Q8e,sch_astro_dusk:eBe,sch_astro_goldenHour:tBe,sch_astro_goldenHourEnd:rBe,sch_astro_nadir:nBe,sch_astro_nauticalDawn:aBe,sch_astro_nauticalDusk:oBe,sch_astro_night:iBe,sch_astro_nightEnd:sBe,sch_astro_solarNoon:lBe,sch_astro_sunrise:cBe,sch_astro_sunriseEnd:uBe,sch_astro_sunset:dBe,sch_astro_sunsetStart:fBe,sch_at:hBe,sch_desc_atTime:pBe,sch_desc_everyDay:vBe,sch_desc_everyHour:mBe,sch_desc_everyMinute:gBe,sch_desc_everyMonth:_Be,sch_desc_everyNDay:yBe,sch_desc_everyNHours:bBe,sch_desc_everyNMinutes:wBe,sch_desc_everyNMonths:SBe,sch_desc_everyNWeeks:xBe,sch_desc_everyNYears:CBe,sch_desc_everyWeek:TBe,sch_desc_everyYear:kBe,sch_desc_intervalFromTo:EBe,sch_desc_never:DBe,sch_desc_onDate:MBe,sch_desc_onDates:OBe,sch_desc_onEveryDate:$Be,sch_desc_onMonth:ABe,sch_desc_onMonths:PBe,sch_desc_onWeekday:IBe,sch_desc_onWeekdays:RBe,sch_desc_onWeekends:LBe,sch_desc_onWorkdays:NBe,sch_desc_onceInPast:FBe,sch_desc_once_on:zBe,sch_desc_validFrom:BBe,sch_desc_validFromTo:jBe,sch_desc_validTo:WBe,sch_every:HBe,sch_exactTime:UBe,sch_from:VBe,sch_fromTo:YBe,sch_intervalTime:GBe,sch_invert:qBe,sch_no_one:XBe,sch_on:JBe,sch_period:KBe,sch_periodDaily:ZBe,sch_periodDates:QBe,sch_periodDay:eje,sch_periodEvery:tje,sch_periodEveryDay:rje,sch_periodEveryMonth:nje,sch_periodEveryWeek:aje,sch_periodEveryYear:oje,sch_periodHours:ije,sch_periodMinutes:sje,sch_periodMonth:lje,sch_periodMonthly:cje,sch_periodOnce:uje,sch_periodSpecificMonths:dje,sch_periodWeek:fje,sch_periodWeekdays:hje,sch_periodWeekend:pje,sch_periodWeekly:vje,sch_periodWorkdays:mje,sch_periodYear:gje,sch_periodYearly:_je,sch_specificTime:yje,sch_time:bje,sch_to:wje,sch_valid:Sje,sch_validFrom:xje,sch_validTo:Cje,sch_wholeDay:Tje,sch_yearEveryMonth:kje},Dje="toevoegen",Mje="Annuleer",Oje="Categorieën",$je="Gecontroleerd",Aje="Verwijderen",Pje="Dichtbij",Ije="Reclame",Rje="Configureren",Lje="Verbonden",Nje="Gekopieerd",Fje="Creëer",zje="Bijsnijden",Bje="Delete",jje="Verwijderen",Wje="Weggooien",Hje="Verbinding verbroken",Uje="Fout",Vje="Filter",Yje="Vrijdag",Gje="Breedtegraad",qje="Lengtegraad",Xje="Bericht",Jje="Maandag",Kje="Naam",Zje="Voorwerpen",Qje="OK",e9e="Product",t9e="Herhaling",r9e="Vervangen",n9e="Wortel",a9e="Zaterdag",o9e="Sparen",i9e="Geselecteerd",s9e="Staten",l9e="Zondag",c9e="Donderdag",u9e="Tijdstempel",d9e="Dinsdag",f9e="Bijwerken",h9e="Geldig tot",p9e="Waarde",v9e="Versie",m9e="Woensdag",g9e="Breedte",_9e="Ja",y9e="verschillend",b9e="Iedereen kan object lezen",w9e="Iedereen kan staat lezen",S9e="Iedereen kan object schrijven",x9e="Iedereen kan staat schrijven",C9e="Groep kan object lezen",T9e="Groep kan status lezen",k9e="Groep kan object schrijven",E9e="Groep kan staat schrijven",D9e="Eigenaar kan object lezen",M9e="Eigenaar kan staat lezen",O9e="Eigenaar kan object schrijven",$9e="Eigenaar kan staat schrijven",A9e="Toetsen",P9e="Veranderd van",I9e="dichtbij",R9e="Creëer een Booleaanse status",L9e="Kanaal maken",N9e="Apparaat maken",F9e="Nummerstatus maken",z9e="Staat creëren",B9e="Tekenreeksstatus maken",j9e="d.",W9e="Fr",H9e="Mo",U9e="Za",V9e="Zo",Y9e="Th",G9e="Tu",q9e="Wij",X9e="Expert modus",J9e="Alle bestanden",K9e="Audio",Z9e="Code/JSON",Q9e="Afbeeldingen",e7e="Tekst",t7e="Video",r7e="Instellingen",n7e="zonder",a7e="Functie",o7e="ID",i7e="Naam",s7e="Rol",l7e="Kamer",c7e="Type",u7e="Ongeldige instellingen",d7e="Laatste wijziging",f7e="plaatselijk",h7e="april",p7e="aug",v7e="dec",m7e="februari",g7e="jan",_7e="jul",y7e="juni",b7e="Mei",w7e="mrt",S7e="nov",x7e="Okt",C7e="sept",T7e="april",k7e="aug",E7e="dec",D7e="februari",M7e="jan",O7e="jul",$7e="juni",A7e="Mei",P7e="mrt",I7e="nov",R7e="Okt",L7e="sept",N7e="geen",F7e="Object veranderd door",z7e="Object voor het laatst gewijzigd om",B7e="Instellingen van andere adapter %s",j7e="Kwaliteitscode",W7e="herhalen",H7e='Om een map te selecteren, houdt u gewoon de toets "shift" ingedrukt door op de map te klikken.',U7e="Staat veranderd door",V7e="Object veranderd van",Y7e="Tijdstempel",G7e="Erkende vlag",q7e="Opmerking",X7e="Kopieer de statuswaarde",J7e="Aangepaste instellingen",K7e="Object verwijderen",Z7e="Object bewerken",Q7e="Bewerk de statuswaarde",eWe="Van",tWe="Laatst gewijzigd",rWe="Kwaliteit",nWe="Tijdstempel",aWe="Gebruiker",oWe="Waarde",iWe="Waarde",sWe="Waarschuwing: De CRON-taak wordt elke minuut uitgevoerd gedurende de opgegeven periode!",lWe="Waarschuwing: De CRON-taak wordt elke seconde uitgevoerd gedurende de opgegeven periode!",cWe="CRON",uWe="Datum",dWe="data",fWe="Dag",hWe="Dag van de week",pWe="elk",vWe="elke N dagen",mWe="elke N-de dag van de week",gWe="elke N dag van de week",_We="elke N uur",yWe="elke N minuten",bWe="elke N maanden",wWe="elke N seconden",SWe="elke dag",xWe="elke dag van de week",CWe="elke dag van de week",TWe="elk uur",kWe="elke minuut",EWe="elke maand",DWe="elke seconde",MWe="Van",OWe="uren",$We="Interval",AWe="Interval tussen",PWe="Ongeldige CRON",IWe="Notulen",RWe="maanden",LWe="Een keer",NWe="Periode",FWe="seconden",zWe="Gemakkelijk",BWe="Specifieke tijd",jWe="specifieke data",WWe="specifieke dag(en) van de week",HWe="specifieke dag van weken",UWe="specifieke uren",VWe="specifieke minuten",YWe="specifieke maanden",GWe="specifieke seconden",qWe="Tijd",XWe="Naar",JWe="tovenaar",KWe="allemaal",ZWe="Astro-dag",QWe="Astro-nacht",eHe="Dageraad",tHe="Schemer",rHe="gouden uur",nHe="Gouden uur einde",aHe="Nadir",oHe="Nautische dageraad",iHe="Nautische schemering",sHe="Nacht",lHe="Nacht einde",cHe="Zonne middag",uHe="zonsopkomst",dHe="Sunrise einde",fHe="Zonsondergang",hHe="Zonsondergang start",pHe="Bij",vHe="op %s",mHe="elke dag",gHe="elk uur",_He="elke minuut",yHe="elke maand",bHe="elke %s dag",wHe="elke %s uur",SHe="elke %s minuten",xHe="elke %s maanden",CHe="elke %s weken",THe="elke %s jaar",kHe="elke week",EHe="elk jaar",DHe="van %s tot %s",MHe="nooit",OHe="op %s van %s",$He="op %s en %s van",AHe="op elke datum van",PHe="%s",IHe="%s en %s",RHe="op %s",LHe="op %s en %s",NHe="in het weekend",FHe="op werkdagen",zHe="zal niet meer worden uitgevoerd, omdat start verleden tijd is",BHe="op %s",jHe="van %s",WHe="Uitvoeren van tot",HHe="tot %s",UHe="elk",VHe="Specifieke tijd",YHe="van",GHe="Van naar",qHe="Interval tijd",XHe="omkeren",JHe="geen",KHe="Aan",ZHe="Periode",QHe="Dagelijks",eUe="data",tUe="Dag",rUe="elk",nUe="Elke dag",aUe="Elke maand",oUe="Elke week",iUe="Elk jaar",sUe="uren",lUe="Notulen",cUe="maand",uUe="Maandelijks",dUe="Een keer",fUe="Specifieke maanden",hUe="Week",pUe="Doordeweekse dagen",vUe="Weekend",mUe="Wekelijks",gUe="werkdagen",_Ue="Jaar",yUe="jaar-",bUe="Specifieke tijd",wUe="Tijd",SUe="naar",xUe="Geldig",CUe="van",TUe="naar",kUe="Hele dag",EUe="elke maand",DUe={"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_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:Dje,"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:Mje,"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:Oje,"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:$je,ra_Clear:Aje,"ra_Clear filter":"Filter wissen","ra_Clear icon":"Pictogram wissen","ra_Clone current row":"Kloon de huidige rij",ra_Close:Pje,"ra_Collapse all nodes":"Vouw alle knooppunten samen","ra_Collapse one step node":"Eén niveau samenvouwen",ra_Commercial:Ije,ra_Configure:Rje,"ra_Configure visible columns":"Configureer zichtbare kolommen","ra_Confirm deletion of %s":"Bevestig het verwijderen van %s",ra_Connected:Lje,ra_Copied:Nje,"ra_Copied %s":'"%s" gekopieerd',"ra_Copy content":"Inhoud kopiëren",ra_Create:Fje,"ra_Create alias":"Alias maken","ra_Create folder":"Map aanmaken","ra_Create new folder in %s":"Maak een nieuwe map in %s",ra_Crop:zje,"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:Bje,ra_Delete:jje,"ra_Delete (no confirm for 5 mins)":"Verwijderen (geen bevestiging gedurende 5 minuten)","ra_Delete current row":"Huidige rij verwijderen","ra_Deselect all":"Deselecteer alles","ra_Device → Channel → State":"Apparaat → Kanaal → Staat",ra_Discard:Wje,ra_Disconnected:Hje,"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_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 function":"Bewerkingsfunctie","ra_Edit object field":"Bewerk objectveld","ra_Edit role":"Rol bewerken","ra_Edit room":"Kamer bewerken","ra_Edit value":"Waarde bewerken",ra_Error:Uje,"ra_Expand all nodes":"Vouw alle knooppunten uit","ra_Expand one step node":"Vouw een niveau uit","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:Vje,"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:Yje,"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_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 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:Gje,"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_Longitude:qje,'ra_May not trigger "updateLicenses"':'Activeert mogelijk niet "updateLicenses"',ra_Message:Xje,ra_Monday:Jje,"ra_Move down":"Naar beneden verplaatsen","ra_Move up":"Omhoog gaan",ra_Name:Kje,"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 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_Objects:Zje,ra_Ok:Qje,"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 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_Private certificate":"Privé certificaat",ra_Product:e9e,"ra_Public certificate":"Openbaar certificaat","ra_Quality code":"Kwaliteit","ra_Refresh tree":"Vernieuw de boom","ra_Reload files":"Laad bestanden opnieuw",ra_Repeat:t9e,ra_Replace:r9e,"ra_Request timed out":"Verzoek verlopen","ra_Restrict to folder":"Beperken tot map",ra_Root:n9e,ra_Saturday:a9e,ra_Save:o9e,"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:i9e,"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_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:s9e,"ra_Suitable license not found in license manager":"Geschikte licentie niet gevonden in licentiebeheer",ra_Sunday:l9e,"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:c9e,ra_Timestamp:u9e,"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:d9e,"ra_Unknown error":"Onbekende fout","ra_Unknown error!":"Onbekende fout!",ra_Update:f9e,"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:h9e,ra_Value:p9e,ra_Version:v9e,"ra_View file":"Bestand bekijken","ra_View: %s":"Bekijk: %s",ra_Wednesday:m9e,ra_Width:g9e,ra_Yes:_9e,"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___different__:y9e,ra_aclEveryone_read_object:b9e,ra_aclEveryone_read_state:w9e,ra_aclEveryone_write_object:S9e,ra_aclEveryone_write_state:x9e,ra_aclGroup_read_object:C9e,ra_aclGroup_read_state:T9e,ra_aclGroup_write_object:k9e,ra_aclGroup_write_state:E9e,ra_aclOwner_read_object:D9e,ra_aclOwner_read_state:M9e,ra_aclOwner_write_object:O9e,ra_aclOwner_write_state:$9e,ra_buttons:A9e,ra_changedFrom:P9e,ra_close:I9e,ra_create_boolean_state:R9e,ra_create_channel:L9e,ra_create_device:N9e,ra_create_number_state:F9e,ra_create_state:z9e,ra_create_string_state:B9e,ra_daysShortText:j9e,ra_dow_Fr:W9e,ra_dow_Mo:H9e,ra_dow_Sa:U9e,ra_dow_Su:V9e,ra_dow_Th:Y9e,ra_dow_Tu:G9e,ra_dow_We:q9e,ra_expertMode:X9e,ra_fileType_all:J9e,ra_fileType_audio:K9e,ra_fileType_code:Z9e,ra_fileType_images:Q9e,ra_fileType_txt:e7e,ra_fileType_video:t7e,"ra_fileType_video,":"Video",ra_filter_customs:r7e,ra_filter_customs_without:n7e,ra_filter_func:a7e,ra_filter_id:o7e,ra_filter_name:i7e,ra_filter_role:s7e,ra_filter_room:l7e,ra_filter_type:c7e,"ra_import data from %s file":"Importeer gegevens uit %s bestand",ra_invalidConfig:u7e,ra_lastChange:d7e,ra_locally:f7e,ra_month_Apr:h7e,ra_month_Aug:p7e,ra_month_Dec:v7e,ra_month_Feb:m7e,ra_month_Jan:g7e,ra_month_Jul:_7e,ra_month_Jun:y7e,ra_month_Mai:b7e,ra_month_Mar:w7e,ra_month_Nov:S7e,ra_month_Oct:x7e,ra_month_Sep:C7e,ra_months_Apr:T7e,ra_months_Aug:k7e,ra_months_Dec:E7e,ra_months_Feb:D7e,ra_months_Jan:M7e,ra_months_Jul:O7e,ra_months_Jun:$7e,ra_months_Mai:A7e,ra_months_Mar:P7e,ra_months_Nov:I7e,ra_months_Oct:R7e,ra_months_Sep:L7e,ra_none:N7e,ra_object_changed_by:F7e,ra_object_changed_by_user:z7e,ra_otherConfig:B7e,ra_qualityCode:j7e,ra_repeat:W7e,ra_select_folder_hint:H7e,ra_state_changed_by:U7e,ra_state_changed_from:V7e,ra_timestamp:Y7e,ra_tooltip_ack:G7e,ra_tooltip_comment:q7e,ra_tooltip_copyState:X7e,ra_tooltip_customConfig:J7e,ra_tooltip_deleteObject:K7e,ra_tooltip_editObject:Z7e,ra_tooltip_editState:Q7e,ra_tooltip_from:eWe,ra_tooltip_lc:tWe,ra_tooltip_quality:rWe,ra_tooltip_ts:nWe,ra_tooltip_user:aWe,ra_tooltip_value:oWe,"ra_use seconds":"gebruik seconden",ra_val:iWe,"ra_via internet":"via internet",ra_warning_every_minute:sWe,ra_warning_every_second:lWe,sc_cron:cWe,sc_date:uWe,sc_dates:dWe,sc_dow:fWe,sc_dows:hWe,sc_every:pWe,sc_everyN_dates:vWe,sc_everyN_dow:mWe,sc_everyN_dows:gWe,sc_everyN_hours:_We,sc_everyN_minutes:yWe,sc_everyN_months:bWe,sc_everyN_seconds:wWe,sc_every_dates:SWe,sc_every_dow:xWe,sc_every_dows:CWe,sc_every_hours:TWe,sc_every_minutes:kWe,sc_every_months:EWe,sc_every_seconds:DWe,sc_from:MWe,sc_hours:OWe,sc_interval:$We,sc_intervalBetween:AWe,sc_invalid_cron:PWe,sc_minutes:IWe,sc_months:RWe,sc_once:LWe,sc_period:NWe,sc_seconds:FWe,sc_simple:zWe,sc_specific:BWe,sc_specific_dates:jWe,sc_specific_dow:WWe,sc_specific_dows:HWe,sc_specific_hours:UWe,sc_specific_minutes:VWe,sc_specific_months:YWe,sc_specific_seconds:GWe,sc_time:qWe,sc_to:XWe,sc_wizard:JWe,sch_all:KWe,sch_astroDay:ZWe,sch_astroNight:QWe,sch_astro_dawn:eHe,sch_astro_dusk:tHe,sch_astro_goldenHour:rHe,sch_astro_goldenHourEnd:nHe,sch_astro_nadir:aHe,sch_astro_nauticalDawn:oHe,sch_astro_nauticalDusk:iHe,sch_astro_night:sHe,sch_astro_nightEnd:lHe,sch_astro_solarNoon:cHe,sch_astro_sunrise:uHe,sch_astro_sunriseEnd:dHe,sch_astro_sunset:fHe,sch_astro_sunsetStart:hHe,sch_at:pHe,sch_desc_atTime:vHe,sch_desc_everyDay:mHe,sch_desc_everyHour:gHe,sch_desc_everyMinute:_He,sch_desc_everyMonth:yHe,sch_desc_everyNDay:bHe,sch_desc_everyNHours:wHe,sch_desc_everyNMinutes:SHe,sch_desc_everyNMonths:xHe,sch_desc_everyNWeeks:CHe,sch_desc_everyNYears:THe,sch_desc_everyWeek:kHe,sch_desc_everyYear:EHe,sch_desc_intervalFromTo:DHe,sch_desc_never:MHe,sch_desc_onDate:OHe,sch_desc_onDates:$He,sch_desc_onEveryDate:AHe,sch_desc_onMonth:PHe,sch_desc_onMonths:IHe,sch_desc_onWeekday:RHe,sch_desc_onWeekdays:LHe,sch_desc_onWeekends:NHe,sch_desc_onWorkdays:FHe,sch_desc_onceInPast:zHe,sch_desc_once_on:BHe,sch_desc_validFrom:jHe,sch_desc_validFromTo:WHe,sch_desc_validTo:HHe,sch_every:UHe,sch_exactTime:VHe,sch_from:YHe,sch_fromTo:GHe,sch_intervalTime:qHe,sch_invert:XHe,sch_no_one:JHe,sch_on:KHe,sch_period:ZHe,sch_periodDaily:QHe,sch_periodDates:eUe,sch_periodDay:tUe,sch_periodEvery:rUe,sch_periodEveryDay:nUe,sch_periodEveryMonth:aUe,sch_periodEveryWeek:oUe,sch_periodEveryYear:iUe,sch_periodHours:sUe,sch_periodMinutes:lUe,sch_periodMonth:cUe,sch_periodMonthly:uUe,sch_periodOnce:dUe,sch_periodSpecificMonths:fUe,sch_periodWeek:hUe,sch_periodWeekdays:pUe,sch_periodWeekend:vUe,sch_periodWeekly:mUe,sch_periodWorkdays:gUe,sch_periodYear:_Ue,sch_periodYearly:yUe,sch_specificTime:bUe,sch_time:wUe,sch_to:SUe,sch_valid:xUe,sch_validFrom:CUe,sch_validTo:TUe,sch_wholeDay:kUe,sch_yearEveryMonth:EUe},MUe="Ajouter",OUe="Annuler",$Ue="Catégories",AUe="Vérifié",PUe="Effacer",IUe="Fermer",RUe="Commercial",LUe="Configurer",NUe="Lié",FUe="Copié",zUe="Créer",BUe="Recadrer",jUe="Delete",WUe="Supprimer",HUe="Jeter",UUe="Débranché",VUe="Erreur",YUe="Filtre",GUe="Vendredi",qUe="Latitude",XUe="Longitude",JUe="Message",KUe="Lundi",ZUe="Nom",QUe="Objets",eVe="D'accord",tVe="Produit",rVe="Répéter",nVe="Remplacer",aVe="Racine",oVe="Samedi",iVe="sauver",sVe="Choisi",lVe="États",cVe="Dimanche",uVe="Jeudi",dVe="Horodatage",fVe="Mardi",hVe="Mise à jour",pVe="Valable jusqu'au",vVe="Valeur",mVe="Version",gVe="Mercredi",_Ve="Largeur",yVe="Oui",bVe="différent",wVe="Tout le monde peut lire un objet",SVe="Tout le monde peut lire l'état",xVe="Tout le monde peut écrire un objet",CVe="Tout le monde peut écrire l'état",TVe="Le groupe peut lire l'objet",kVe="Le groupe peut lire l'état",EVe="Le groupe peut écrire un objet",DVe="Le groupe peut écrire l'état",MVe="Le propriétaire peut lire l'objet",OVe="Le propriétaire peut lire l'état",$Ve="Le propriétaire peut écrire un objet",AVe="Le propriétaire peut écrire l'état",PVe="Boutons",IVe="Changé de",RVe="Fermer",LVe="Créer un état booléen",NVe="Créer une chaîne",FVe="Créer un appareil",zVe="Créer un état de numéro",BVe="Créer un état",jVe="Créer un état de chaîne",WVe="j.",HVe="Fr",UVe="Mo",VVe="Sa",YVe="Su",GVe="Th",qVe="Tu",XVe="Nous",JVe="Mode expert",KVe="Tous les fichiers",ZVe="l'audio",QVe="Code/JSON",eYe="Images",tYe="Texte",rYe="Vidéo",nYe="Paramètres",aYe="sans",oYe="Une fonction",iYe="ID",sYe="Prénom",lYe="Rôle",cYe="Pièce",uYe="Type",dYe="Paramètres invalides",fYe="Dernier changement",hYe="localement",pYe="Avr",vYe="Août",mYe="Déc",gYe="Fév",_Ye="Jan",yYe="Juil",bYe="Juin",wYe="Mai",SYe="Mar",xYe="Nov",CYe="Oct",TYe="Sep",kYe="Avr",EYe="Août",DYe="Déc",MYe="Fév",OYe="Jan",$Ye="Juil",AYe="Juin",PYe="Mai",IYe="Mar",RYe="Nov",LYe="Oct",NYe="Sep",FYe="rien",zYe="Objet modifié par",BYe="Objet modifié pour la dernière fois à",jYe="Paramètres d'un autre adaptateur %s",WYe="Code de qualité",HYe="répéter",UYe='Pour sélectionner un dossier, maintenez simplement la touche "shift" enfoncée en cliquant sur le dossier.',VYe="État modifié par",YYe="Objet changé de",GYe="Horodatage",qYe="Drapeau reconnu",XYe="Commentaire",JYe="Copiez la valeur d'état",KYe="Paramètres personnalisés",ZYe="Supprimer un objet",QYe="Modifier l'objet",eGe="Modifier la valeur d'état",tGe="De",rGe="Dernière modification",nGe="Qualité",aGe="Horodatage",oGe="Utilisateur",iGe="Valeur",sGe="Valeur",lGe="Attention : la tâche CRON s’exécutera toutes les minutes pendant la période spécifiée !",cGe="Attention : la tâche CRON s’exécutera toutes les secondes pendant la période spécifiée !",uGe="CRON",dGe="Date",fGe="Rendez-vous",hGe="Jour",pGe="Jour de la semaine",vGe="Chaque",mGe="tous les N jours",gGe="chaque Nième jour de la semaine",_Ge="tous les N jours de la semaine",yGe="toutes les N heures",bGe="toutes les N minutes",wGe="tous les N mois",SGe="toutes les N secondes",xGe="tous les jours",CGe="Chaque jour de la semaine",TGe="Chaque jour de la semaine",kGe="Toutes les heures",EGe="chaque minute",DGe="chaque mois",MGe="chaque seconde",OGe="De",$Ge="Heures",AGe="Intervalle",PGe="Intervalle entre",IGe="CRON non valide",RGe="Minutes",LGe="mois",NGe="Une fois que",FGe="Période",zGe="Secondes",BGe="Facile",jGe="Temps spécifique",WGe="dates spécifiques",HGe="jour(s) spécifique(s) de la semaine",UGe="jour spécifique de semaines",VGe="heures spécifiques",YGe="minutes spécifiques",GGe="mois spécifiques",qGe="secondes spécifiques",XGe="Temps",JGe="À",KGe="sorcier",ZGe="tout",QGe="Journée astronomique",eqe="Nuit astronomique",tqe="Aube",rqe="Crépuscule",nqe="Heure d'or",aqe="Fin de l'heure d'or",oqe="Nadir",iqe="Aube nautique",sqe="Crépuscule nautique",lqe="Nuit",cqe="Fin de nuit",uqe="Midi solaire",dqe="lever du soleil",fqe="Fin du lever du soleil",hqe="Le coucher du soleil",pqe="Coucher du soleil",vqe="à",mqe="à %s",gqe="tous les jours",_qe="Toutes les heures",yqe="chaque minute",bqe="chaque mois",wqe="chaque %s jour",Sqe="chaque %s heures",xqe="toutes les %s minutes",Cqe="tous les %s mois",Tqe="chaque %s semaines",kqe="tous les %s ans",Eqe="toutes les semaines",Dqe="chaque année",Mqe="de %s à %s",Oqe="jamais",$qe="sur %s de %s",Aqe="sur %s et %s de",Pqe="à chaque date de",Iqe="%s",Rqe="%s et %s",Lqe="sur %s",Nqe="sur %s et %s",Fqe="les weekends",zqe="les jours ouvrables",Bqe="ne sera plus exécuté, car start est dans le passé",jqe="sur %s",Wqe="de %s",Hqe="Exécuter de à",Uqe="à %s",Vqe="chaque",Yqe="Temps spécifique",Gqe="de",qqe="De à",Xqe="Temps d'interval",Jqe="inverser",Kqe="aucun",Zqe="sur",Qqe="Période",eXe="du quotidien",tXe="Rendez-vous",rXe="journée",nXe="Chaque",aXe="Tous les jours",oXe="Chaque mois",iXe="Toutes les semaines",sXe="Chaque année",lXe="Heures",cXe="Minutes",uXe="mois",dXe="Mensuel",fXe="Une fois que",hXe="Mois spécifiques",pXe="La semaine",vXe="Jours de la semaine",mXe="Weekend",gXe="Hebdomadaire",_Xe="Jours ouvrables",yXe="Année",bXe="Annuel",wXe="Temps spécifique",SXe="Temps",xXe="à",CXe="Valide",TXe="de",kXe="à",EXe="Toute la journée",DXe="chaque mois",MXe={"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_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:MUe,"ra_Append %s entries or replace existing?":"Ajouter %s entrées ou remplacer l'existant ?","ra_Append or replace?":"Ajouter ou remplacer ?","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:OUe,"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 : 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 : %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:$Ue,"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:AUe,ra_Clear:PUe,"ra_Clear filter":"Effacer le filtre","ra_Clear icon":"Effacer l'icône","ra_Clone current row":"Cloner la ligne actuelle",ra_Close:IUe,"ra_Collapse all nodes":"Réduire tous les nœuds","ra_Collapse one step node":"Réduire d'un niveau",ra_Commercial:RUe,ra_Configure:LUe,"ra_Configure visible columns":"Configurer les colonnes visibles","ra_Confirm deletion of %s":"Confirmer la suppression de %s",ra_Connected:NUe,ra_Copied:FUe,"ra_Copied %s":'"%s" copié',"ra_Copy content":"Copier le contenu",ra_Create:zUe,"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:BUe,"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:jUe,ra_Delete:WUe,"ra_Delete (no confirm for 5 mins)":"Supprimer (pas de confirmation pendant 5 minutes)","ra_Delete current row":"Supprimer la ligne actuelle","ra_Deselect all":"Tout déselectionner","ra_Device → Channel → State":"Appareil → Canal → État",ra_Discard:HUe,ra_Disconnected:UUe,"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_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 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_Error:VUe,"ra_Expand all nodes":"Développer tous les nœuds","ra_Expand one step node":"Développer un niveau","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:YUe,"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:GUe,"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_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 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:qUe,"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 ?","ra_Listen on all IPs":"Écoutez sur toutes les adresses IP","ra_Load configuration from file":"Charger la configuration à partir du fichier",ra_Longitude:XUe,'ra_May not trigger "updateLicenses"':'Peut ne pas déclencher "updateLicences"',ra_Message:JUe,ra_Monday:KUe,"ra_Move down":"Descendre","ra_Move up":"Déplacer vers le haut",ra_Name:ZUe,"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 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_Objects:QUe,ra_Ok:eVe,"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 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_Private certificate":"Certificat privé",ra_Product:tVe,"ra_Public certificate":"Certificat public","ra_Quality code":"Qualité","ra_Refresh tree":"Rafraîchir l'arborescence","ra_Reload files":"Recharger les fichiers",ra_Repeat:rVe,ra_Replace:nVe,"ra_Request timed out":"La demande a expiré","ra_Restrict to folder":"Restreindre au dossier",ra_Root:aVe,ra_Saturday:oVe,ra_Save:iVe,"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:sVe,"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_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:lVe,"ra_Suitable license not found in license manager":"Licence appropriée introuvable dans le gestionnaire de licences",ra_Sunday:cVe,"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:uVe,ra_Timestamp:dVe,"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:fVe,"ra_Unknown error":"Erreur inconnue","ra_Unknown error!":"Erreur inconnue!",ra_Update:hVe,"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:pVe,ra_Value:vVe,ra_Version:mVe,"ra_View file":"Voir la fiche","ra_View: %s":"Affichage : %s",ra_Wednesday:gVe,ra_Width:_Ve,ra_Yes:yVe,"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___different__:bVe,ra_aclEveryone_read_object:wVe,ra_aclEveryone_read_state:SVe,ra_aclEveryone_write_object:xVe,ra_aclEveryone_write_state:CVe,ra_aclGroup_read_object:TVe,ra_aclGroup_read_state:kVe,ra_aclGroup_write_object:EVe,ra_aclGroup_write_state:DVe,ra_aclOwner_read_object:MVe,ra_aclOwner_read_state:OVe,ra_aclOwner_write_object:$Ve,ra_aclOwner_write_state:AVe,ra_buttons:PVe,ra_changedFrom:IVe,ra_close:RVe,ra_create_boolean_state:LVe,ra_create_channel:NVe,ra_create_device:FVe,ra_create_number_state:zVe,ra_create_state:BVe,ra_create_string_state:jVe,ra_daysShortText:WVe,ra_dow_Fr:HVe,ra_dow_Mo:UVe,ra_dow_Sa:VVe,ra_dow_Su:YVe,ra_dow_Th:GVe,ra_dow_Tu:qVe,ra_dow_We:XVe,ra_expertMode:JVe,ra_fileType_all:KVe,ra_fileType_audio:ZVe,ra_fileType_code:QVe,ra_fileType_images:eYe,ra_fileType_txt:tYe,ra_fileType_video:rYe,"ra_fileType_video,":"Vidéo",ra_filter_customs:nYe,ra_filter_customs_without:aYe,ra_filter_func:oYe,ra_filter_id:iYe,ra_filter_name:sYe,ra_filter_role:lYe,ra_filter_room:cYe,ra_filter_type:uYe,"ra_import data from %s file":"Importer des données à partir du fichier %s",ra_invalidConfig:dYe,ra_lastChange:fYe,ra_locally:hYe,ra_month_Apr:pYe,ra_month_Aug:vYe,ra_month_Dec:mYe,ra_month_Feb:gYe,ra_month_Jan:_Ye,ra_month_Jul:yYe,ra_month_Jun:bYe,ra_month_Mai:wYe,ra_month_Mar:SYe,ra_month_Nov:xYe,ra_month_Oct:CYe,ra_month_Sep:TYe,ra_months_Apr:kYe,ra_months_Aug:EYe,ra_months_Dec:DYe,ra_months_Feb:MYe,ra_months_Jan:OYe,ra_months_Jul:$Ye,ra_months_Jun:AYe,ra_months_Mai:PYe,ra_months_Mar:IYe,ra_months_Nov:RYe,ra_months_Oct:LYe,ra_months_Sep:NYe,ra_none:FYe,ra_object_changed_by:zYe,ra_object_changed_by_user:BYe,ra_otherConfig:jYe,ra_qualityCode:WYe,ra_repeat:HYe,ra_select_folder_hint:UYe,ra_state_changed_by:VYe,ra_state_changed_from:YYe,ra_timestamp:GYe,ra_tooltip_ack:qYe,ra_tooltip_comment:XYe,ra_tooltip_copyState:JYe,ra_tooltip_customConfig:KYe,ra_tooltip_deleteObject:ZYe,ra_tooltip_editObject:QYe,ra_tooltip_editState:eGe,ra_tooltip_from:tGe,ra_tooltip_lc:rGe,ra_tooltip_quality:nGe,ra_tooltip_ts:aGe,ra_tooltip_user:oGe,ra_tooltip_value:iGe,"ra_use seconds":"utiliser les secondes",ra_val:sGe,"ra_via internet":"par Internet",ra_warning_every_minute:lGe,ra_warning_every_second:cGe,sc_cron:uGe,sc_date:dGe,sc_dates:fGe,sc_dow:hGe,sc_dows:pGe,sc_every:vGe,sc_everyN_dates:mGe,sc_everyN_dow:gGe,sc_everyN_dows:_Ge,sc_everyN_hours:yGe,sc_everyN_minutes:bGe,sc_everyN_months:wGe,sc_everyN_seconds:SGe,sc_every_dates:xGe,sc_every_dow:CGe,sc_every_dows:TGe,sc_every_hours:kGe,sc_every_minutes:EGe,sc_every_months:DGe,sc_every_seconds:MGe,sc_from:OGe,sc_hours:$Ge,sc_interval:AGe,sc_intervalBetween:PGe,sc_invalid_cron:IGe,sc_minutes:RGe,sc_months:LGe,sc_once:NGe,sc_period:FGe,sc_seconds:zGe,sc_simple:BGe,sc_specific:jGe,sc_specific_dates:WGe,sc_specific_dow:HGe,sc_specific_dows:UGe,sc_specific_hours:VGe,sc_specific_minutes:YGe,sc_specific_months:GGe,sc_specific_seconds:qGe,sc_time:XGe,sc_to:JGe,sc_wizard:KGe,sch_all:ZGe,sch_astroDay:QGe,sch_astroNight:eqe,sch_astro_dawn:tqe,sch_astro_dusk:rqe,sch_astro_goldenHour:nqe,sch_astro_goldenHourEnd:aqe,sch_astro_nadir:oqe,sch_astro_nauticalDawn:iqe,sch_astro_nauticalDusk:sqe,sch_astro_night:lqe,sch_astro_nightEnd:cqe,sch_astro_solarNoon:uqe,sch_astro_sunrise:dqe,sch_astro_sunriseEnd:fqe,sch_astro_sunset:hqe,sch_astro_sunsetStart:pqe,sch_at:vqe,sch_desc_atTime:mqe,sch_desc_everyDay:gqe,sch_desc_everyHour:_qe,sch_desc_everyMinute:yqe,sch_desc_everyMonth:bqe,sch_desc_everyNDay:wqe,sch_desc_everyNHours:Sqe,sch_desc_everyNMinutes:xqe,sch_desc_everyNMonths:Cqe,sch_desc_everyNWeeks:Tqe,sch_desc_everyNYears:kqe,sch_desc_everyWeek:Eqe,sch_desc_everyYear:Dqe,sch_desc_intervalFromTo:Mqe,sch_desc_never:Oqe,sch_desc_onDate:$qe,sch_desc_onDates:Aqe,sch_desc_onEveryDate:Pqe,sch_desc_onMonth:Iqe,sch_desc_onMonths:Rqe,sch_desc_onWeekday:Lqe,sch_desc_onWeekdays:Nqe,sch_desc_onWeekends:Fqe,sch_desc_onWorkdays:zqe,sch_desc_onceInPast:Bqe,sch_desc_once_on:jqe,sch_desc_validFrom:Wqe,sch_desc_validFromTo:Hqe,sch_desc_validTo:Uqe,sch_every:Vqe,sch_exactTime:Yqe,sch_from:Gqe,sch_fromTo:qqe,sch_intervalTime:Xqe,sch_invert:Jqe,sch_no_one:Kqe,sch_on:Zqe,sch_period:Qqe,sch_periodDaily:eXe,sch_periodDates:tXe,sch_periodDay:rXe,sch_periodEvery:nXe,sch_periodEveryDay:aXe,sch_periodEveryMonth:oXe,sch_periodEveryWeek:iXe,sch_periodEveryYear:sXe,sch_periodHours:lXe,sch_periodMinutes:cXe,sch_periodMonth:uXe,sch_periodMonthly:dXe,sch_periodOnce:fXe,sch_periodSpecificMonths:hXe,sch_periodWeek:pXe,sch_periodWeekdays:vXe,sch_periodWeekend:mXe,sch_periodWeekly:gXe,sch_periodWorkdays:_Xe,sch_periodYear:yXe,sch_periodYearly:bXe,sch_specificTime:wXe,sch_time:SXe,sch_to:xXe,sch_valid:CXe,sch_validFrom:TXe,sch_validTo:kXe,sch_wholeDay:EXe,sch_yearEveryMonth:DXe},OXe="Aggiungere",$Xe="Annulla",AXe="Categorie",PXe="Controllato",IXe="Elimina",RXe="Vicino",LXe="Commerciale",NXe="Configura",FXe="Collegato",zXe="Copiato",BXe="Creare",jXe="Raccolto",WXe="Delete",HXe="Elimina",UXe="Scartare",VXe="Disconnesso",YXe="Errore",GXe="Filtro",qXe="Venerdì",XXe="Latitudine",JXe="Longitudine",KXe="Messaggio",ZXe="Lunedi",QXe="Nome",eJe="Oggetti",tJe="Ok",rJe="Prodotto",nJe="Ripetere",aJe="Sostituire",oJe="Radice",iJe="Sabato",sJe="Salva",lJe="Selezionato",cJe="stati",uJe="Domenica",dJe="Giovedì",fJe="Timestamp",hJe="Martedì",pJe="Aggiornare",vJe="Valido fino a",mJe="Valore",gJe="Versione",_Je="Mercoledì",yJe="Larghezza",bJe="SÌ",wJe="diverso",SJe="Tutti possono leggere gli oggetti",xJe="Tutti possono leggere lo stato",CJe="Tutti possono scrivere oggetti",TJe="Tutti possono scrivere stato",kJe="Il gruppo può leggere l'oggetto",EJe="Il gruppo può leggere lo stato",DJe="Il gruppo può scrivere l'oggetto",MJe="Il gruppo può scrivere lo stato",OJe="Il proprietario può leggere l'oggetto",$Je="Il proprietario può leggere lo stato",AJe="Il proprietario può scrivere l'oggetto",PJe="Il proprietario può scrivere lo stato",IJe="Bottoni",RJe="Cambiato da",LJe="vicino",NJe="Crea uno stato booleano",FJe="Crea canale",zJe="Crea dispositivo",BJe="Crea lo stato del numero",jJe="Crea stato",WJe="Crea lo stato della stringa",HJe="g.",UJe="fr",VJe="momento",YJe="Sa",GJe="su",qJe="th",XJe="Tu",JJe="Noi",KJe="Modalità esperto",ZJe="Tutti i files",QJe="Audio",eKe="Codice/JSON",tKe="immagini",rKe="Testo",nKe="video",aKe="impostazioni",oKe="senza",iKe="Funzione",sKe="ID",lKe="Nome",cKe="Ruolo",uKe="Camera",dKe="genere",fKe="Impostazioni non valide",hKe="Ultima modifica",pKe="localmente",vKe="apr",mKe="agosto",gKe="Dic",_Ke="febbraio",yKe="gen",bKe="lug",wKe="giu",SKe="Mai",xKe="marzo",CKe="nov",TKe="ottobre",kKe="Sett",EKe="apr",DKe="agosto",MKe="Dic",OKe="febbraio",$Ke="gen",AKe="lug",PKe="giu",IKe="Mai",RKe="marzo",LKe="nov",NKe="ottobre",FKe="Sett",zKe="nessuna",BKe="Oggetto modificato da",jKe="L'oggetto è stato modificato l'ultima volta alle",WKe="Impostazioni dall'altro adattatore %s",HKe="Codice di qualità",UKe="ripetere",VKe='Per selezionare la cartella, basta tenere premuto il tasto "shift" facendo clic sulla cartella.',YKe="Stato cambiato da",GKe="Oggetto cambiato da",qKe="Timestamp",XKe="Bandiera riconosciuta",JKe="Commento",KKe="Copia il valore dello stato",ZKe="Impostazioni personalizzate",QKe="Elimina oggetto",eZe="Modifica oggetto",tZe="Modifica il valore dello stato",rZe="A partire dal",nZe="Ultima modifica",aZe="Qualità",oZe="Data e ora",iZe="Utente",sZe="Valore",lZe="Valore",cZe="Attenzione: il processo CRON verrà eseguito ogni minuto durante il periodo specificato!",uZe="Attenzione: il processo CRON verrà eseguito ogni secondo durante il periodo specificato!",dZe="CRON",fZe="Data",hZe="Date",pZe="Giorno",vZe="Giorno della settimana",mZe="Ogni",gZe="ogni N giorni",_Ze="ogni Nesimo giorno della settimana",yZe="ogni N giorno della settimana",bZe="ogni N ore",wZe="ogni N minuti",SZe="ogni N mesi",xZe="ogni N secondi",CZe="ogni giorno",TZe="Tutti i giorni della settimana",kZe="Tutti i giorni della settimana",EZe="ogni ora",DZe="ogni minuto",MZe="ogni mese",OZe="ogni secondo",$Ze="A partire dal",AZe="Ore",PZe="Intervallo",IZe="Intervallo tra",RZe="CRON non valido",LZe="Minuti",NZe="mesi",FZe="Una volta",zZe="Periodo",BZe="secondi",jZe="Semplice",WZe="Orario preciso",HZe="date specifiche",UZe="giorno/i specifico/i della settimana",VZe="giorno specifico delle settimane",YZe="orari specifici",GZe="minuti specifici",qZe="mesi specifici",XZe="secondi specifici",JZe="Tempo",KZe="Per",ZZe="procedura guidata",QZe="tutti",eQe="Astro day",tQe="Astro night",rQe="Alba",nQe="Crepuscolo",aQe="Ora d'oro",oQe="Fine dell'ora d'oro",iQe="Nadir",sQe="Alba nautica",lQe="Crepuscolo nautico",cQe="Notte",uQe="Fine della notte",dQe="Mezzogiorno solare",fQe="Alba",hQe="Fine dell'alba",pQe="Tramonto",vQe="Inizio del tramonto",mQe="a",gQe="a %s",_Qe="ogni giorno",yQe="ogni ora",bQe="ogni minuto",wQe="ogni mese",SQe="ogni %s giorno",xQe="ogni %s ore",CQe="ogni %s minuti",TQe="ogni %s mesi",kQe="ogni %s settimane",EQe="ogni %s anni",DQe="ogni settimana",MQe="ogni anno",OQe="da %s a %s",$Qe="mai",AQe="su %s di %s",PQe="su %s e %s di",IQe="in ogni data di",RQe="%s",LQe="%s e %s",NQe="su %s",FQe="su %s e %s",zQe="nei finesettimana",BQe="nei giorni lavorativi",jQe="non verrà più eseguito, perché start è nel passato",WQe="su %s",HQe="da %s",UQe="Eseguire da a",VQe="a %s",YQe="ogni",GQe="Orario preciso",qQe="a partire dal",XQe="Da A",JQe="Intervallo di tempo",KQe="invertire",ZQe="nessuna",QQe="sopra",eet="Periodo",tet="Quotidiano",ret="Date",net="Giorno",aet="Ogni",oet="Ogni giorno",iet="Ogni mese",set="Ogni settimana",cet="Ogni anno",uet="Ore",det="Minuti",fet="mese",het="Mensile",pet="Una volta",vet="Mesi specifici",met="Settimana",get="Giorni della settimana",_et="Fine settimana",yet="settimanalmente",bet="giorni feriali",wet="Anno",xet="Annuale",Cet="Orario preciso",Tet="Tempo",ket="per",Eet="Valido",Det="a partire dal",Met="per",Oet="Giorno intero",$et="ogni mese",Aet={"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_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:OXe,"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:$Xe,"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:AXe,"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:PXe,ra_Clear:IXe,"ra_Clear filter":"Filtro pulito","ra_Clear icon":"Cancella icona","ra_Clone current row":"Clona riga corrente",ra_Close:RXe,"ra_Collapse all nodes":"Comprimi tutti i nodi","ra_Collapse one step node":"Comprimi un livello",ra_Commercial:LXe,ra_Configure:NXe,"ra_Configure visible columns":"Configura colonne visibili","ra_Confirm deletion of %s":"Conferma l'eliminazione di %s",ra_Connected:FXe,ra_Copied:zXe,"ra_Copied %s":'"%s" copiato',"ra_Copy content":"Copia contenuto",ra_Create:BXe,"ra_Create alias":"Crea alias","ra_Create folder":"Creare una cartella","ra_Create new folder in %s":"Crea nuova cartella in %s",ra_Crop:jXe,"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:WXe,ra_Delete:HXe,"ra_Delete (no confirm for 5 mins)":"Elimina (nessuna conferma per 5 minuti)","ra_Delete current row":"Elimina la riga corrente","ra_Deselect all":"Deseleziona tutto","ra_Device → Channel → State":"Dispositivo → Canale → Stato",ra_Discard:UXe,ra_Disconnected:VXe,"ra_Do not export values of states":"Non esportare i valori degli stati","ra_Do not use let's encrypt":"Non utilizzare crittografiamo","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 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_Error:YXe,"ra_Expand all nodes":"Espandi tutti i nodi","ra_Expand one step node":"Espandi un livello","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:GXe,"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:qXe,"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_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 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:XXe,"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_Longitude:JXe,'ra_May not trigger "updateLicenses"':'Potrebbe non attivare "updateLicenses"',ra_Message:KXe,ra_Monday:ZXe,"ra_Move down":"Abbassati","ra_Move up":"Andare avanti",ra_Name:QXe,"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 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_Objects:eJe,ra_Ok:tJe,"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 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_Private certificate":"Certificato privato",ra_Product:rJe,"ra_Public certificate":"Certificato pubblico","ra_Quality code":"Qualità","ra_Refresh tree":"Aggiorna l'albero","ra_Reload files":"Ricarica i file",ra_Repeat:nJe,ra_Replace:aJe,"ra_Request timed out":"Tempo scaduto per la richiesta","ra_Restrict to folder":"Limita alla cartella",ra_Root:oJe,ra_Saturday:iJe,ra_Save:sJe,"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:lJe,"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_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:cJe,"ra_Suitable license not found in license manager":"Licenza adatta non trovata nel gestore delle licenze",ra_Sunday:uJe,"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:dJe,ra_Timestamp:fJe,"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:hJe,"ra_Unknown error":"Errore sconosciuto","ra_Unknown error!":"Errore sconosciuto!",ra_Update:pJe,"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:vJe,ra_Value:mJe,ra_Version:gJe,"ra_View file":"Vedi il file","ra_View: %s":"Visualizza: %s",ra_Wednesday:_Je,ra_Width:yJe,ra_Yes:bJe,"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___different__:wJe,ra_aclEveryone_read_object:SJe,ra_aclEveryone_read_state:xJe,ra_aclEveryone_write_object:CJe,ra_aclEveryone_write_state:TJe,ra_aclGroup_read_object:kJe,ra_aclGroup_read_state:EJe,ra_aclGroup_write_object:DJe,ra_aclGroup_write_state:MJe,ra_aclOwner_read_object:OJe,ra_aclOwner_read_state:$Je,ra_aclOwner_write_object:AJe,ra_aclOwner_write_state:PJe,ra_buttons:IJe,ra_changedFrom:RJe,ra_close:LJe,ra_create_boolean_state:NJe,ra_create_channel:FJe,ra_create_device:zJe,ra_create_number_state:BJe,ra_create_state:jJe,ra_create_string_state:WJe,ra_daysShortText:HJe,ra_dow_Fr:UJe,ra_dow_Mo:VJe,ra_dow_Sa:YJe,ra_dow_Su:GJe,ra_dow_Th:qJe,ra_dow_Tu:XJe,ra_dow_We:JJe,ra_expertMode:KJe,ra_fileType_all:ZJe,ra_fileType_audio:QJe,ra_fileType_code:eKe,ra_fileType_images:tKe,ra_fileType_txt:rKe,ra_fileType_video:nKe,"ra_fileType_video,":"video",ra_filter_customs:aKe,ra_filter_customs_without:oKe,ra_filter_func:iKe,ra_filter_id:sKe,ra_filter_name:lKe,ra_filter_role:cKe,ra_filter_room:uKe,ra_filter_type:dKe,"ra_import data from %s file":"Importa dati dal file %s",ra_invalidConfig:fKe,ra_lastChange:hKe,ra_locally:pKe,ra_month_Apr:vKe,ra_month_Aug:mKe,ra_month_Dec:gKe,ra_month_Feb:_Ke,ra_month_Jan:yKe,ra_month_Jul:bKe,ra_month_Jun:wKe,ra_month_Mai:SKe,ra_month_Mar:xKe,ra_month_Nov:CKe,ra_month_Oct:TKe,ra_month_Sep:kKe,ra_months_Apr:EKe,ra_months_Aug:DKe,ra_months_Dec:MKe,ra_months_Feb:OKe,ra_months_Jan:$Ke,ra_months_Jul:AKe,ra_months_Jun:PKe,ra_months_Mai:IKe,ra_months_Mar:RKe,ra_months_Nov:LKe,ra_months_Oct:NKe,ra_months_Sep:FKe,ra_none:zKe,ra_object_changed_by:BKe,ra_object_changed_by_user:jKe,ra_otherConfig:WKe,ra_qualityCode:HKe,ra_repeat:UKe,ra_select_folder_hint:VKe,ra_state_changed_by:YKe,ra_state_changed_from:GKe,ra_timestamp:qKe,ra_tooltip_ack:XKe,ra_tooltip_comment:JKe,ra_tooltip_copyState:KKe,ra_tooltip_customConfig:ZKe,ra_tooltip_deleteObject:QKe,ra_tooltip_editObject:eZe,ra_tooltip_editState:tZe,ra_tooltip_from:rZe,ra_tooltip_lc:nZe,ra_tooltip_quality:aZe,ra_tooltip_ts:oZe,ra_tooltip_user:iZe,ra_tooltip_value:sZe,"ra_use seconds":"usa i secondi",ra_val:lZe,"ra_via internet":"attraverso internet",ra_warning_every_minute:cZe,ra_warning_every_second:uZe,sc_cron:dZe,sc_date:fZe,sc_dates:hZe,sc_dow:pZe,sc_dows:vZe,sc_every:mZe,sc_everyN_dates:gZe,sc_everyN_dow:_Ze,sc_everyN_dows:yZe,sc_everyN_hours:bZe,sc_everyN_minutes:wZe,sc_everyN_months:SZe,sc_everyN_seconds:xZe,sc_every_dates:CZe,sc_every_dow:TZe,sc_every_dows:kZe,sc_every_hours:EZe,sc_every_minutes:DZe,sc_every_months:MZe,sc_every_seconds:OZe,sc_from:$Ze,sc_hours:AZe,sc_interval:PZe,sc_intervalBetween:IZe,sc_invalid_cron:RZe,sc_minutes:LZe,sc_months:NZe,sc_once:FZe,sc_period:zZe,sc_seconds:BZe,sc_simple:jZe,sc_specific:WZe,sc_specific_dates:HZe,sc_specific_dow:UZe,sc_specific_dows:VZe,sc_specific_hours:YZe,sc_specific_minutes:GZe,sc_specific_months:qZe,sc_specific_seconds:XZe,sc_time:JZe,sc_to:KZe,sc_wizard:ZZe,sch_all:QZe,sch_astroDay:eQe,sch_astroNight:tQe,sch_astro_dawn:rQe,sch_astro_dusk:nQe,sch_astro_goldenHour:aQe,sch_astro_goldenHourEnd:oQe,sch_astro_nadir:iQe,sch_astro_nauticalDawn:sQe,sch_astro_nauticalDusk:lQe,sch_astro_night:cQe,sch_astro_nightEnd:uQe,sch_astro_solarNoon:dQe,sch_astro_sunrise:fQe,sch_astro_sunriseEnd:hQe,sch_astro_sunset:pQe,sch_astro_sunsetStart:vQe,sch_at:mQe,sch_desc_atTime:gQe,sch_desc_everyDay:_Qe,sch_desc_everyHour:yQe,sch_desc_everyMinute:bQe,sch_desc_everyMonth:wQe,sch_desc_everyNDay:SQe,sch_desc_everyNHours:xQe,sch_desc_everyNMinutes:CQe,sch_desc_everyNMonths:TQe,sch_desc_everyNWeeks:kQe,sch_desc_everyNYears:EQe,sch_desc_everyWeek:DQe,sch_desc_everyYear:MQe,sch_desc_intervalFromTo:OQe,sch_desc_never:$Qe,sch_desc_onDate:AQe,sch_desc_onDates:PQe,sch_desc_onEveryDate:IQe,sch_desc_onMonth:RQe,sch_desc_onMonths:LQe,sch_desc_onWeekday:NQe,sch_desc_onWeekdays:FQe,sch_desc_onWeekends:zQe,sch_desc_onWorkdays:BQe,sch_desc_onceInPast:jQe,sch_desc_once_on:WQe,sch_desc_validFrom:HQe,sch_desc_validFromTo:UQe,sch_desc_validTo:VQe,sch_every:YQe,sch_exactTime:GQe,sch_from:qQe,sch_fromTo:XQe,sch_intervalTime:JQe,sch_invert:KQe,sch_no_one:ZQe,sch_on:QQe,sch_period:eet,sch_periodDaily:tet,sch_periodDates:ret,sch_periodDay:net,sch_periodEvery:aet,sch_periodEveryDay:oet,sch_periodEveryMonth:iet,sch_periodEveryWeek:set,sch_periodEveryYear:cet,sch_periodHours:uet,sch_periodMinutes:det,sch_periodMonth:fet,sch_periodMonthly:het,sch_periodOnce:pet,sch_periodSpecificMonths:vet,sch_periodWeek:met,sch_periodWeekdays:get,sch_periodWeekend:_et,sch_periodWeekly:yet,sch_periodWorkdays:bet,sch_periodYear:wet,sch_periodYearly:xet,sch_specificTime:Cet,sch_time:Tet,sch_to:ket,sch_valid:Eet,sch_validFrom:Det,sch_validTo:Met,sch_wholeDay:Oet,sch_yearEveryMonth:$et},Pet="Adjuntar",Iet="Cancelar",Ret="Categorías",Let="Comprobado",Net="Borrar",Fet="Cerca",zet="Comercial",Bet="Configurar",jet="Conectado",Wet="Copiado",Het="Crear",Uet="Cultivo",Vet="Delete",Yet="Eliminar",Get="Desechar",qet="Desconectado",Xet="Error",Jet="Filtrar",Ket="Viernes",Zet="Latitud",Qet="Longitud",ett="Mensaje",ttt="Lunes",rtt="Nombre",ntt="Objetos",att="Okay",ott="Producto",itt="Repetir",stt="Reemplazar",ltt="Raíz",ctt="Sábado",utt="Salvar",dtt="Seleccionado",ftt="Estados",htt="Domingo",ptt="Jueves",vtt="Marca de tiempo",mtt="Martes",gtt="Actualizar",_tt="Válida hasta",ytt="Valor",btt="Versión",wtt="Miércoles",Stt="Anchura",xtt="Sí",Ctt="diferente",Ttt="Todo el mundo puede leer el objeto",ktt="Todos pueden leer el estado",Ett="Todos pueden escribir objetos",Dtt="Todos pueden escribir el estado",Mtt="El grupo puede leer el objeto",Ott="El grupo puede leer el estado",$tt="El grupo puede escribir un objeto",Att="El grupo puede escribir el estado",Ptt="El propietario puede leer el objeto",Itt="El propietario puede leer el estado",Rtt="El propietario puede escribir el objeto",Ltt="El propietario puede escribir el estado",Ntt="Botones",Ftt="Cambiaron desde",ztt="cerrar",Btt="Crear estado booleano",jtt="Crear canal",Wtt="Crear dispositivo",Htt="Crear estado numérico",Utt="Crear estado",Vtt="Crear estado de cadena",Ytt="d.",Gtt="Fr",qtt="Mes",Xtt="Sa",Jtt="Su",Ktt="Th",Ztt="Tu",Qtt="Nosotros",ert="Modo experto",trt="Todos los archivos",rrt="Audio",nrt="Código/JSON",art="Imágenes",ort="Texto",irt="Video",srt="Configuraciones",lrt="sin",crt="Función",urt="ID",drt="Nombre",frt="Papel",hrt="Habitación",prt="Tipo",vrt="Configuraciones inválidas",mrt="Ultimo cambio",grt="en la zona",_rt="Abr",yrt="Ago",brt="Dic",wrt="Feb",Srt="Ene",xrt="Jul",Crt="Jun",Trt="Mai",krt="Mar",Ert="Nov",Drt="Oct",Mrt="Sep",Ort="Abr",$rt="Ago",Art="Dic",Prt="Feb",Irt="Ene",Rrt="Jul",Lrt="Jun",Nrt="Mai",Frt="Mar",zrt="Nov",Brt="Oct",jrt="Sep",Wrt="ninguno",Hrt="Objeto cambiado por",Urt="Objeto cambiado por última vez a las",Vrt="Configuraciones de otro adaptador %s",Yrt="Código de calidad",Grt="repetir",qrt='Para seleccionar la carpeta, simplemente mantenga presionada la tecla "shift" haciendo clic en la carpeta.',Xrt="Estado cambiado por",Jrt="Objeto cambiado de",Krt="Marca de tiempo",Zrt="Bandera reconocida",Qrt="Comentario",ent="Copie el valor del estado",tnt="Ajustes personalizados",rnt="Eliminar objeto",nnt="Editar objeto",ant="Edite el valor del estado",ont="Desde",int="Último cambio",snt="Calidad",lnt="Sello de tiempo",cnt="Usuario",unt="Valor",dnt="Valor",fnt="Advertencia: ¡El trabajo CRON se ejecutará cada minuto durante el período especificado!",hnt="Advertencia: ¡El trabajo CRON se ejecutará cada segundo durante el período especificado!",pnt="CRON",vnt="Fecha",mnt="fechas",gnt="Día",_nt="Día de la semana",ynt="Cada",bnt="cada N días",wnt="cada enésimo día de la semana",Snt="cada N día de la semana",xnt="cada N horas",Cnt="cada N minutos",Tnt="cada N meses",knt="cada N segundos",Ent="cada día",Dnt="Cada día de la semana",Mnt="Cada día de la semana",Ont="cada hora",$nt="cada minuto",Ant="cada mes",Pnt="cada segundo",Int="De",Rnt="Horas",Lnt="Intervalo",Nnt="Intervalo entre",Fnt="CRON no válido",znt="Minutos",Bnt="meses",jnt="Una vez",Wnt="Período",Hnt="Segundos",Unt="Sencillo",Vnt="Tiempo específico",Ynt="fechas especificas",Gnt="día(s) específico(s) de la semana",qnt="día específico de semanas",Xnt="horas específicas",Jnt="minutos específicos",Knt="meses específicos",Znt="segundos específicos",Qnt="Hora",eat="A",tat="Mago",rat="todas",nat="Día astro",aat="Noche astro",oat="Amanecer",iat="Oscuridad",sat="hora dorada",lat="Fin de la hora dorada",cat="Nadir",uat="Amanecer náutico",dat="Anochecer náutico",fat="Noche",hat="Fin de la noche",pat="Mediodía solar",vat="amanecer",mat="Fin del amanecer",gat="Puesta de sol",_at="Puesta de sol",yat="a",bat="en %s",wat="cada día",Sat="cada hora",xat="cada minuto",Cat="cada mes",Tat="cada %s días",kat="cada %s horas",Eat="cada %s minutos",Dat="cada %s meses",Mat="cada %s semanas",Oat="cada %s años",$at="cada semana",Aat="todos los años",Pat="de %s a %s",Iat="Nunca",Rat="en %s de %s",Lat="en %s y %s de",Nat="en cada fecha de",Fat="%s",zat="%s y %s",Bat="en %s",jat="en %s y %s",Wat="en los fines de semana",Hat="en días laborables",Uat="ya no se ejecutará más, porque el inicio está en el pasado",Vat="en %s",Yat="de %s",Gat="Ejecutar desde hasta",qat="a %s",Xat="cada",Jat="Tiempo específico",Kat="de",Zat="De-a",Qat="Tiempo de intervalo",eot="invertir; poner boca abajo o en la posición opuesta, orden o arreglo; Boca abajo",tot="ninguna",rot="en",not="Período",aot="Diario",oot="fechas",iot="Día",sot="Cada",lot="Cada día",cot="Cada mes",uot="Cada semana",dot="Todos los años",fot="Horas",hot="Minutos",pot="mes",vot="Mensual",mot="Una vez",got="Meses específicos",_ot="Semana",yot="Días laborables",bot="Fin de semana",wot="Semanal",Sot="Días laborables",xot="Año",Cot="Anual",Tot="Tiempo específico",kot="Hora",Eot="a",Dot="Válido",Mot="de",Oot="a",$ot="Todo el dia",Aot="cada mes",Pot={"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_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:Pet,"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:Iet,"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:Ret,"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:Let,ra_Clear:Net,"ra_Clear filter":"Filtro claro","ra_Clear icon":"Icono claro","ra_Clone current row":"Clonar fila actual",ra_Close:Fet,"ra_Collapse all nodes":"Contraer todos los nodos","ra_Collapse one step node":"Contraer un nivel",ra_Commercial:zet,ra_Configure:Bet,"ra_Configure visible columns":"Configurar columnas visibles","ra_Confirm deletion of %s":"Confirmar la eliminación de %s",ra_Connected:jet,ra_Copied:Wet,"ra_Copied %s":'Copiado "%s"',"ra_Copy content":"Copiar contenido",ra_Create:Het,"ra_Create alias":"Crear alias","ra_Create folder":"Crear carpeta","ra_Create new folder in %s":"Crear nueva carpeta en %s",ra_Crop:Uet,"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:Vet,ra_Delete:Yet,"ra_Delete (no confirm for 5 mins)":"Eliminar (sin confirmar durante 5 minutos)","ra_Delete current row":"Eliminar fila actual","ra_Deselect all":"Deselecciona todo","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:Get,ra_Disconnected:qet,"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_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 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_Error:Xet,"ra_Expand all nodes":"Expandir todos los nodos","ra_Expand one step node":"Expandir un nivel","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:Jet,"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:Ket,"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_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 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:Zet,"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_Longitude:Qet,'ra_May not trigger "updateLicenses"':'No puede activar "updateLicenses"',ra_Message:ett,ra_Monday:ttt,"ra_Move down":"Mover hacia abajo","ra_Move up":"Ascender",ra_Name:rtt,"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 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_Objects:ntt,ra_Ok:att,"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 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_Private certificate":"certificado privado",ra_Product:ott,"ra_Public certificate":"Certificado público","ra_Quality code":"Calidad","ra_Refresh tree":"Actualizar árbol","ra_Reload files":"Recargar archivos",ra_Repeat:itt,ra_Replace:stt,"ra_Request timed out":"Tiempo de espera agotado","ra_Restrict to folder":"Restringir a carpeta",ra_Root:ltt,ra_Saturday:ctt,ra_Save:utt,"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:dtt,"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_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:ftt,"ra_Suitable license not found in license manager":"Licencia adecuada no encontrada en el administrador de licencias",ra_Sunday:htt,"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:ptt,ra_Timestamp:vtt,"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:mtt,"ra_Unknown error":"Error desconocido","ra_Unknown error!":"¡Error desconocido!",ra_Update:gtt,"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:_tt,ra_Value:ytt,ra_Version:btt,"ra_View file":"Ver archivo","ra_View: %s":"Ver: %s",ra_Wednesday:wtt,ra_Width:Stt,ra_Yes:xtt,"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___different__:Ctt,ra_aclEveryone_read_object:Ttt,ra_aclEveryone_read_state:ktt,ra_aclEveryone_write_object:Ett,ra_aclEveryone_write_state:Dtt,ra_aclGroup_read_object:Mtt,ra_aclGroup_read_state:Ott,ra_aclGroup_write_object:$tt,ra_aclGroup_write_state:Att,ra_aclOwner_read_object:Ptt,ra_aclOwner_read_state:Itt,ra_aclOwner_write_object:Rtt,ra_aclOwner_write_state:Ltt,ra_buttons:Ntt,ra_changedFrom:Ftt,ra_close:ztt,ra_create_boolean_state:Btt,ra_create_channel:jtt,ra_create_device:Wtt,ra_create_number_state:Htt,ra_create_state:Utt,ra_create_string_state:Vtt,ra_daysShortText:Ytt,ra_dow_Fr:Gtt,ra_dow_Mo:qtt,ra_dow_Sa:Xtt,ra_dow_Su:Jtt,ra_dow_Th:Ktt,ra_dow_Tu:Ztt,ra_dow_We:Qtt,ra_expertMode:ert,ra_fileType_all:trt,ra_fileType_audio:rrt,ra_fileType_code:nrt,ra_fileType_images:art,ra_fileType_txt:ort,ra_fileType_video:irt,"ra_fileType_video,":"Video",ra_filter_customs:srt,ra_filter_customs_without:lrt,ra_filter_func:crt,ra_filter_id:urt,ra_filter_name:drt,ra_filter_role:frt,ra_filter_room:hrt,ra_filter_type:prt,"ra_import data from %s file":"Importar datos del archivo %s",ra_invalidConfig:vrt,ra_lastChange:mrt,ra_locally:grt,ra_month_Apr:_rt,ra_month_Aug:yrt,ra_month_Dec:brt,ra_month_Feb:wrt,ra_month_Jan:Srt,ra_month_Jul:xrt,ra_month_Jun:Crt,ra_month_Mai:Trt,ra_month_Mar:krt,ra_month_Nov:Ert,ra_month_Oct:Drt,ra_month_Sep:Mrt,ra_months_Apr:Ort,ra_months_Aug:$rt,ra_months_Dec:Art,ra_months_Feb:Prt,ra_months_Jan:Irt,ra_months_Jul:Rrt,ra_months_Jun:Lrt,ra_months_Mai:Nrt,ra_months_Mar:Frt,ra_months_Nov:zrt,ra_months_Oct:Brt,ra_months_Sep:jrt,ra_none:Wrt,ra_object_changed_by:Hrt,ra_object_changed_by_user:Urt,ra_otherConfig:Vrt,ra_qualityCode:Yrt,ra_repeat:Grt,ra_select_folder_hint:qrt,ra_state_changed_by:Xrt,ra_state_changed_from:Jrt,ra_timestamp:Krt,ra_tooltip_ack:Zrt,ra_tooltip_comment:Qrt,ra_tooltip_copyState:ent,ra_tooltip_customConfig:tnt,ra_tooltip_deleteObject:rnt,ra_tooltip_editObject:nnt,ra_tooltip_editState:ant,ra_tooltip_from:ont,ra_tooltip_lc:int,ra_tooltip_quality:snt,ra_tooltip_ts:lnt,ra_tooltip_user:cnt,ra_tooltip_value:unt,"ra_use seconds":"usar segundos",ra_val:dnt,"ra_via internet":"vía Internet",ra_warning_every_minute:fnt,ra_warning_every_second:hnt,sc_cron:pnt,sc_date:vnt,sc_dates:mnt,sc_dow:gnt,sc_dows:_nt,sc_every:ynt,sc_everyN_dates:bnt,sc_everyN_dow:wnt,sc_everyN_dows:Snt,sc_everyN_hours:xnt,sc_everyN_minutes:Cnt,sc_everyN_months:Tnt,sc_everyN_seconds:knt,sc_every_dates:Ent,sc_every_dow:Dnt,sc_every_dows:Mnt,sc_every_hours:Ont,sc_every_minutes:$nt,sc_every_months:Ant,sc_every_seconds:Pnt,sc_from:Int,sc_hours:Rnt,sc_interval:Lnt,sc_intervalBetween:Nnt,sc_invalid_cron:Fnt,sc_minutes:znt,sc_months:Bnt,sc_once:jnt,sc_period:Wnt,sc_seconds:Hnt,sc_simple:Unt,sc_specific:Vnt,sc_specific_dates:Ynt,sc_specific_dow:Gnt,sc_specific_dows:qnt,sc_specific_hours:Xnt,sc_specific_minutes:Jnt,sc_specific_months:Knt,sc_specific_seconds:Znt,sc_time:Qnt,sc_to:eat,sc_wizard:tat,sch_all:rat,sch_astroDay:nat,sch_astroNight:aat,sch_astro_dawn:oat,sch_astro_dusk:iat,sch_astro_goldenHour:sat,sch_astro_goldenHourEnd:lat,sch_astro_nadir:cat,sch_astro_nauticalDawn:uat,sch_astro_nauticalDusk:dat,sch_astro_night:fat,sch_astro_nightEnd:hat,sch_astro_solarNoon:pat,sch_astro_sunrise:vat,sch_astro_sunriseEnd:mat,sch_astro_sunset:gat,sch_astro_sunsetStart:_at,sch_at:yat,sch_desc_atTime:bat,sch_desc_everyDay:wat,sch_desc_everyHour:Sat,sch_desc_everyMinute:xat,sch_desc_everyMonth:Cat,sch_desc_everyNDay:Tat,sch_desc_everyNHours:kat,sch_desc_everyNMinutes:Eat,sch_desc_everyNMonths:Dat,sch_desc_everyNWeeks:Mat,sch_desc_everyNYears:Oat,sch_desc_everyWeek:$at,sch_desc_everyYear:Aat,sch_desc_intervalFromTo:Pat,sch_desc_never:Iat,sch_desc_onDate:Rat,sch_desc_onDates:Lat,sch_desc_onEveryDate:Nat,sch_desc_onMonth:Fat,sch_desc_onMonths:zat,sch_desc_onWeekday:Bat,sch_desc_onWeekdays:jat,sch_desc_onWeekends:Wat,sch_desc_onWorkdays:Hat,sch_desc_onceInPast:Uat,sch_desc_once_on:Vat,sch_desc_validFrom:Yat,sch_desc_validFromTo:Gat,sch_desc_validTo:qat,sch_every:Xat,sch_exactTime:Jat,sch_from:Kat,sch_fromTo:Zat,sch_intervalTime:Qat,sch_invert:eot,sch_no_one:tot,sch_on:rot,sch_period:not,sch_periodDaily:aot,sch_periodDates:oot,sch_periodDay:iot,sch_periodEvery:sot,sch_periodEveryDay:lot,sch_periodEveryMonth:cot,sch_periodEveryWeek:uot,sch_periodEveryYear:dot,sch_periodHours:fot,sch_periodMinutes:hot,sch_periodMonth:pot,sch_periodMonthly:vot,sch_periodOnce:mot,sch_periodSpecificMonths:got,sch_periodWeek:_ot,sch_periodWeekdays:yot,sch_periodWeekend:bot,sch_periodWeekly:wot,sch_periodWorkdays:Sot,sch_periodYear:xot,sch_periodYearly:Cot,sch_specificTime:Tot,sch_time:kot,sch_to:Eot,sch_valid:Dot,sch_validFrom:Mot,sch_validTo:Oot,sch_wholeDay:$ot,sch_yearEveryMonth:Aot},Iot="Dodać",Rot="Anuluj",Lot="Kategorie",Not="Sprawdzony",Fot="Kasować",zot="Blisko",Bot="Handlowy",jot="Konfiguruj",Wot="Połączony",Hot="Skopiowano",Uot="Stwórz",Vot="Przyciąć",Yot="Delete",Got="Usunąć",qot="Wyrzucać",Xot="Niepowiązany",Jot="Błąd",Kot="Filtr",Zot="Piątek",Qot="Szerokość",eit="Długość geograficzna",tit="Wiadomość",rit="Poniedziałek",nit="Nazwa",ait="Obiekty",oit="Dobrze",iit="Produkt",sit="Powtarzać",lit="Zastępować",cit="Korzeń",uit="Sobota",dit="Zapisać",fit="Wybrany",hit="Stany",pit="Niedziela",vit="Czwartek",mit="Znak czasu",git="Wtorek",_it="Aktualizacja",yit="Obowiązuje do",bit="Wartość",wit="Wersja",Sit="Środa",xit="Szerokość",Cit="Tak",Tit="różne",kit="Każdy może czytać obiekt",Eit="Każdy może czytać stan",Dit="Każdy może pisać przedmiot",Mit="Każdy może pisać stan",Oit="Grupa może odczytać obiekt",$it="Grupa może odczytać stan",Ait="Grupa może pisać obiekt",Pit="Grupa może pisać stan",Iit="Właściciel może czytać obiekt",Rit="Właściciel może odczytać stan",Lit="Właściciel może napisać obiekt",Nit="Właściciel może pisać stan",Fit="guziki",zit="Zmieniony z",Bit="blisko",jit="Utwórz stan logiczny",Wit="Utwórz kanał",Hit="Utwórz urządzenie",Uit="Utwórz stan liczbowy",Vit="Utwórz stan",Yit="Utwórz stan ciągu",Git="d.",qit="Ks",Xit="Mo",Jit="Sa",Kit="Su",Zit="Th",Qit="Tu",est="My",tst="Tryb ekspercki",rst="Wszystkie pliki",nst="Audio",ast="Kod/JSON",ost="Obrazy",ist="Tekst",sst="Wideo",lst="Ustawienia",cst="bez",ust="Funkcjonować",dst="ID",fst="Imię",hst="Rola",pst="Sala",vst="Rodzaj",mst="Nieprawidłowe ustawienia",gst="Ostatnia zmiana",_st="lokalnie",yst="kwiecień",bst="sierpień",wst="grudzień",Sst="luty",xst="styczeń",Cst="lipiec",Tst="czerwiec",kst="Mai",Est="Zniszczyć",Dst="listopad",Mst="październik",Ost="wrzesień",$st="kwiecień",Ast="sierpień",Pst="grudzień",Ist="luty",Rst="styczeń",Lst="lipiec",Nst="czerwiec",Fst="Mai",zst="Zniszczyć",Bst="listopad",jst="październik",Wst="wrzesień",Hst="Żaden",Ust="Obiekt zmieniony przez",Vst="Obiekt ostatnio zmieniony o godz",Yst="Ustawienia z innego adaptera %s",Gst="Kod jakości",qst="powtarzać",Xst="Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.",Jst="Stan zmieniony przez",Kst="Obiekt zmieniony z",Zst="Znak czasu",Qst="Potwierdzon",elt="Komentarz",tlt="Skopiuj wartość stanu",rlt="Własne ustawienia",nlt="Usuń obiekt",alt="Edytuj obiekt",olt="Edytuj wartość stanu",ilt="Z",slt="Ostatnia zmiana",llt="Jakość",clt="Znak czasu",ult="Użytkownik",dlt="Wartość",flt="Wartość",hlt="Ostrzeżenie: Zadanie CRON będzie uruchamiane co minutę w określonym przedziale czasowym!",plt="Ostrzeżenie: Zadanie CRON będzie uruchamiane co sekundę w określonym przedziale czasowym!",vlt="CRON",mlt="Data",glt="Daktyle",_lt="Dzień",ylt="Dzień tygodnia",blt="Każdy",wlt="co N dni",Slt="w każdy N-ty dzień tygodnia",xlt="co N dnia tygodnia",Clt="co N godzin",Tlt="co N minut",klt="co N miesięcy",Elt="co N sekund",Dlt="codziennie",Mlt="każdy dzień tygodnia",Olt="każdy dzień tygodnia",$lt="co godzinę",Alt="każda minuta",Plt="każdego miesiąca",Ilt="każda sekunda",Rlt="Od",Llt="godziny",Nlt="Interwał",Flt="Interwał między",zlt="Nieprawidłowy CRON",Blt="Minuty",jlt="miesięcy",Wlt="Pewnego razu",Hlt="Kropka",Ult="sekundy",Vlt="Prosty",Ylt="Określony czas",Glt="konkretne daty",qlt="określone dni tygodnia",Xlt="określony dzień tygodni",Jlt="określone godziny",Klt="określone minuty",Zlt="określone miesiące",Qlt="określone sekundy",ect="Czas",tct="Do",rct="Czarodziej",nct="wszystko",act="Dzień Astro",oct="Noc Astro",ict="Świt",sct="Zmierzch",lct="złota godzina",cct="Koniec złotej godziny",uct="Nadir",dct="Morski świt",fct="Morski zmierzch",hct="Noc",pct="Koniec nocy",vct="Południe słoneczne",mct="wschód słońca",gct="Koniec wschodu słońca",_ct="Zachód słońca",yct="Początek zachodu słońca",bct="w",wct="na %s",Sct="codziennie",xct="co godzinę",Cct="każda minuta",Tct="każdego miesiąca",kct="każdego dnia %s",Ect="co %s godzin",Dct="co %s minut",Mct="co %s miesięcy",Oct="co %s tygodni",$ct="co %s lat",Act="co tydzień",Pct="każdego roku",Ict="od %s do %s",Rct="nigdy",Lct="na %s z %s",Nct="na %s i %s z",Fct="w każdą datę",zct="%s",Bct="%s i %s",jct="na %s",Wct="na %s i %s",Hct="w weekendy",Uct="w dni robocze",Vct="nie będzie już wykonywany, ponieważ start jest w przeszłości",Yct="na %s",Gct="z %s",qct="Wykonaj od do",Xct="do %s",Jct="każdy",Kct="Określony czas",Zct="od",Qct="Od-do",eut="Czas przerwy",tut="odwracać",rut="Żaden",nut="na",aut="Kropka",out="Codziennie",iut="Daktyle",sut="Dzień",lut="Każdy",cut="Codziennie",uut="Każdego miesiąca",dut="Co tydzień",fut="Każdego roku",hut="godziny",put="Minuty",vut="miesiąc",mut="Miesięczny",gut="Pewnego razu",_ut="Określone miesiące",yut="Tydzień",but="Dni powszednie",wut="Weekend",Sut="Co tydzień",xut="Dni robocze",Cut="Rok",Tut="Rocznie",kut="Określony czas",Eut="Czas",Dut="do",Mut="Ważny",Out="od",$ut="do",Aut="Cały dzień",Put="każdego miesiąca",Iut={"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_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:Iot,"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:Rot,"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:Lot,"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:Not,ra_Clear:Fot,"ra_Clear filter":"Czysty filtr","ra_Clear icon":"Wyczyść ikonę","ra_Clone current row":"Sklonuj bieżący wiersz",ra_Close:zot,"ra_Collapse all nodes":"Zwiń wszystkie węzły","ra_Collapse one step node":"Zwiń o jeden poziom",ra_Commercial:Bot,ra_Configure:jot,"ra_Configure visible columns":"Skonfiguruj widoczne kolumny","ra_Confirm deletion of %s":"Potwierdź usunięcie %s",ra_Connected:Wot,ra_Copied:Hot,"ra_Copied %s":'Skopiowano "%s"',"ra_Copy content":"Kopiuj zawartość",ra_Create:Uot,"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:Vot,"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:Yot,ra_Delete:Got,"ra_Delete (no confirm for 5 mins)":"Usuń (bez potwierdzenia przez 5 minut)","ra_Delete current row":"Usuń bieżący wiersz","ra_Deselect all":"Odznacz wszystko","ra_Device → Channel → State":"Urządzenie → Kanał → Stan",ra_Discard:qot,ra_Disconnected:Xot,"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_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 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_Error:Jot,"ra_Expand all nodes":"Rozwiń wszystkie węzły","ra_Expand one step node":"Rozwiń o jeden poziom","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:Kot,"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:Zot,"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_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 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:Qot,"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_Longitude:eit,'ra_May not trigger "updateLicenses"':"Może nie uruchamiać „updateLicenses”",ra_Message:tit,ra_Monday:rit,"ra_Move down":"Padnij","ra_Move up":"Podnieść",ra_Name:nit,"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 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_Objects:ait,ra_Ok:oit,"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 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_Private certificate":"Prywatny certyfikat",ra_Product:iit,"ra_Public certificate":"Certyfikat publiczny","ra_Quality code":"Jakości","ra_Refresh tree":"Odśwież drzewo","ra_Reload files":"Załaduj ponownie pliki",ra_Repeat:sit,ra_Replace:lit,"ra_Request timed out":"Upłynął limit czasu żądania","ra_Restrict to folder":"Ogranicz do folderu",ra_Root:cit,ra_Saturday:uit,ra_Save:dit,"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:fit,"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_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:hit,"ra_Suitable license not found in license manager":"Nie znaleziono odpowiedniej licencji w menedżerze licencji",ra_Sunday:pit,"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:vit,ra_Timestamp:mit,"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:git,"ra_Unknown error":"Nieznany błąd","ra_Unknown error!":"Nieznany błąd!",ra_Update:_it,"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:yit,ra_Value:bit,ra_Version:wit,"ra_View file":"Zobaczyć plik","ra_View: %s":"Widok: %s",ra_Wednesday:Sit,ra_Width:xit,ra_Yes:Cit,"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___different__:Tit,ra_aclEveryone_read_object:kit,ra_aclEveryone_read_state:Eit,ra_aclEveryone_write_object:Dit,ra_aclEveryone_write_state:Mit,ra_aclGroup_read_object:Oit,ra_aclGroup_read_state:$it,ra_aclGroup_write_object:Ait,ra_aclGroup_write_state:Pit,ra_aclOwner_read_object:Iit,ra_aclOwner_read_state:Rit,ra_aclOwner_write_object:Lit,ra_aclOwner_write_state:Nit,ra_buttons:Fit,ra_changedFrom:zit,ra_close:Bit,ra_create_boolean_state:jit,ra_create_channel:Wit,ra_create_device:Hit,ra_create_number_state:Uit,ra_create_state:Vit,ra_create_string_state:Yit,ra_daysShortText:Git,ra_dow_Fr:qit,ra_dow_Mo:Xit,ra_dow_Sa:Jit,ra_dow_Su:Kit,ra_dow_Th:Zit,ra_dow_Tu:Qit,ra_dow_We:est,ra_expertMode:tst,ra_fileType_all:rst,ra_fileType_audio:nst,ra_fileType_code:ast,ra_fileType_images:ost,ra_fileType_txt:ist,ra_fileType_video:sst,"ra_fileType_video,":"Wideo",ra_filter_customs:lst,ra_filter_customs_without:cst,ra_filter_func:ust,ra_filter_id:dst,ra_filter_name:fst,ra_filter_role:hst,ra_filter_room:pst,ra_filter_type:vst,"ra_import data from %s file":"Importuj dane z pliku %s",ra_invalidConfig:mst,ra_lastChange:gst,ra_locally:_st,ra_month_Apr:yst,ra_month_Aug:bst,ra_month_Dec:wst,ra_month_Feb:Sst,ra_month_Jan:xst,ra_month_Jul:Cst,ra_month_Jun:Tst,ra_month_Mai:kst,ra_month_Mar:Est,ra_month_Nov:Dst,ra_month_Oct:Mst,ra_month_Sep:Ost,ra_months_Apr:$st,ra_months_Aug:Ast,ra_months_Dec:Pst,ra_months_Feb:Ist,ra_months_Jan:Rst,ra_months_Jul:Lst,ra_months_Jun:Nst,ra_months_Mai:Fst,ra_months_Mar:zst,ra_months_Nov:Bst,ra_months_Oct:jst,ra_months_Sep:Wst,ra_none:Hst,ra_object_changed_by:Ust,ra_object_changed_by_user:Vst,ra_otherConfig:Yst,ra_qualityCode:Gst,ra_repeat:qst,ra_select_folder_hint:Xst,ra_state_changed_by:Jst,ra_state_changed_from:Kst,ra_timestamp:Zst,ra_tooltip_ack:Qst,ra_tooltip_comment:elt,ra_tooltip_copyState:tlt,ra_tooltip_customConfig:rlt,ra_tooltip_deleteObject:nlt,ra_tooltip_editObject:alt,ra_tooltip_editState:olt,ra_tooltip_from:ilt,ra_tooltip_lc:slt,ra_tooltip_quality:llt,ra_tooltip_ts:clt,ra_tooltip_user:ult,ra_tooltip_value:dlt,"ra_use seconds":"użyj sekund",ra_val:flt,"ra_via internet":"przez internet",ra_warning_every_minute:hlt,ra_warning_every_second:plt,sc_cron:vlt,sc_date:mlt,sc_dates:glt,sc_dow:_lt,sc_dows:ylt,sc_every:blt,sc_everyN_dates:wlt,sc_everyN_dow:Slt,sc_everyN_dows:xlt,sc_everyN_hours:Clt,sc_everyN_minutes:Tlt,sc_everyN_months:klt,sc_everyN_seconds:Elt,sc_every_dates:Dlt,sc_every_dow:Mlt,sc_every_dows:Olt,sc_every_hours:$lt,sc_every_minutes:Alt,sc_every_months:Plt,sc_every_seconds:Ilt,sc_from:Rlt,sc_hours:Llt,sc_interval:Nlt,sc_intervalBetween:Flt,sc_invalid_cron:zlt,sc_minutes:Blt,sc_months:jlt,sc_once:Wlt,sc_period:Hlt,sc_seconds:Ult,sc_simple:Vlt,sc_specific:Ylt,sc_specific_dates:Glt,sc_specific_dow:qlt,sc_specific_dows:Xlt,sc_specific_hours:Jlt,sc_specific_minutes:Klt,sc_specific_months:Zlt,sc_specific_seconds:Qlt,sc_time:ect,sc_to:tct,sc_wizard:rct,sch_all:nct,sch_astroDay:act,sch_astroNight:oct,sch_astro_dawn:ict,sch_astro_dusk:sct,sch_astro_goldenHour:lct,sch_astro_goldenHourEnd:cct,sch_astro_nadir:uct,sch_astro_nauticalDawn:dct,sch_astro_nauticalDusk:fct,sch_astro_night:hct,sch_astro_nightEnd:pct,sch_astro_solarNoon:vct,sch_astro_sunrise:mct,sch_astro_sunriseEnd:gct,sch_astro_sunset:_ct,sch_astro_sunsetStart:yct,sch_at:bct,sch_desc_atTime:wct,sch_desc_everyDay:Sct,sch_desc_everyHour:xct,sch_desc_everyMinute:Cct,sch_desc_everyMonth:Tct,sch_desc_everyNDay:kct,sch_desc_everyNHours:Ect,sch_desc_everyNMinutes:Dct,sch_desc_everyNMonths:Mct,sch_desc_everyNWeeks:Oct,sch_desc_everyNYears:$ct,sch_desc_everyWeek:Act,sch_desc_everyYear:Pct,sch_desc_intervalFromTo:Ict,sch_desc_never:Rct,sch_desc_onDate:Lct,sch_desc_onDates:Nct,sch_desc_onEveryDate:Fct,sch_desc_onMonth:zct,sch_desc_onMonths:Bct,sch_desc_onWeekday:jct,sch_desc_onWeekdays:Wct,sch_desc_onWeekends:Hct,sch_desc_onWorkdays:Uct,sch_desc_onceInPast:Vct,sch_desc_once_on:Yct,sch_desc_validFrom:Gct,sch_desc_validFromTo:qct,sch_desc_validTo:Xct,sch_every:Jct,sch_exactTime:Kct,sch_from:Zct,sch_fromTo:Qct,sch_intervalTime:eut,sch_invert:tut,sch_no_one:rut,sch_on:nut,sch_period:aut,sch_periodDaily:out,sch_periodDates:iut,sch_periodDay:sut,sch_periodEvery:lut,sch_periodEveryDay:cut,sch_periodEveryMonth:uut,sch_periodEveryWeek:dut,sch_periodEveryYear:fut,sch_periodHours:hut,sch_periodMinutes:put,sch_periodMonth:vut,sch_periodMonthly:mut,sch_periodOnce:gut,sch_periodSpecificMonths:_ut,sch_periodWeek:yut,sch_periodWeekdays:but,sch_periodWeekend:wut,sch_periodWeekly:Sut,sch_periodWorkdays:xut,sch_periodYear:Cut,sch_periodYearly:Tut,sch_specificTime:kut,sch_time:Eut,sch_to:Dut,sch_valid:Mut,sch_validFrom:Out,sch_validTo:$ut,sch_wholeDay:Aut,sch_yearEveryMonth:Put},Rut="Додайте",Lut="Скасувати",Nut="Категорії",Fut="Перевірено",zut="Видалити",But="Закрити",jut="Комерційний",Wut="Налаштувати",Hut="Підключено",Uut="Скопійовано",Vut="Створити",Yut="Урожай",Gut="Delete",qut="Видалити",Xut="Відкинути",Jut="Відключено",Kut="Помилка",Zut="фільтр",Qut="П'ятниця",edt="Широта",tdt="Довгота",rdt="повідомлення",ndt="понеділок",adt="Ім'я",odt="Об'єкти",idt="В порядку",sdt="Продукт",ldt="Повторіть",cdt="Замінити",udt="Корінь",ddt="Субота",fdt="зберегти",hdt="Вибране",pdt="держави",vdt="неділя",mdt="четвер",gdt="Мітка часу",_dt="вівторок",ydt="оновлення",bdt="Дійсний до",wdt="Значення",Sdt="Версія",xdt="Середа",Cdt="Ширина",Tdt="Так",kdt="інший",Edt="Кожен може читати об'єкт",Ddt="Кожен може читати стан",Mdt="Кожен може написати об'єкт",Odt="Кожен може написати стан",$dt="Група може читати об'єкт",Adt="Група може читати стан",Pdt="Група може писати об'єкт",Idt="Група може писати стан",Rdt="Власник може читати об'єкт",Ldt="Власник може читати стан",Ndt="Власник може написати об'єкт",Fdt="Власник може написати стан",zdt="кнопки",Bdt="Змінено з",jdt="закрити",Wdt="Створіть логічний стан",Hdt="Створити канал",Udt="Створити пристрій",Vdt="Створити номерний стан",Ydt="Створити состояние",Gdt="Створити рядковий стан",qdt="днів",Xdt="О",Jdt="пн",Kdt="Sa",Zdt="Нд",Qdt="чт",eft="вт",tft="ми",rft="Експертний режим",nft="Всі файли",aft="Аудіо",oft="Код/JSON",ift="Зображення",sft="текст",lft="відео",cft="Налаштування",uft="без",dft="функція",fft="ID",hft="Ім'я",pft="Роль",vft="Кімната",mft="Тип",gft="Недійсні налаштування",_ft="Остання зміна",yft="локально",bft="квіт",wft="серп",Sft="груд",xft="лютий",Cft="січня",Tft="лип",kft="черв",Eft="травень",Dft="березень",Mft="Листопад",Oft="жовт",$ft="вер",Aft="квіт",Pft="серп",Ift="груд",Rft="лютий",Lft="січня",Nft="лип",Fft="черв",zft="травень",Bft="березень",jft="Листопад",Wft="жовт",Hft="вер",Uft="немає",Vft="Об'єкт змінено",Yft="Об'єкт востаннє змінено о",Gft="Налаштування з іншого адаптера %s",qft="Код якості",Xft="повторити",Jft="Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».",Kft="Стан змінено на",Zft="Об'єкт змінено з",Qft="Мітка часу",eht="Визнано",tht="коментар",rht="Скопіюйте значення стану",nht="Спеціальні налаштування",aht="Видалити об'єкт",oht="Редагувати об'єкт",iht="Відредагуйте значення стану",sht="Від",lht="Востаннє змінено",cht="якість",uht="Позначка часу",dht="Користувач",fht="Значення",hht="Значення",pht="Попередження: завдання CRON виконуватиметься щохвилини протягом зазначеного періоду!",vht="Попередження: завдання CRON виконуватиметься кожну секунду протягом зазначеного періоду!",mht="CRON",ght="Дата",_ht="дати",yht="День",bht="День тижня",wht="кожен",Sht="кожні N днів",xht="кожен N-й день тижня",Cht="кожні N днів тижня",Tht="кожні N годин",kht="кожні N хвилин",Eht="кожні N місяців",Dht="кожні N секунд",Mht="кожен день",Oht="кожен день тижня",$ht="кожен день тижня",Aht="щогодини",Pht="кожну хвилину",Iht="щомісяця",Rht="кожна секунда",Lht="Від",Nht="години",Fht="Інтервал",zht="Інтервал між",Bht="Недійсний CRON",jht="хвилин",Wht="місяців",Hht="Один раз",Uht="Крапка",Vht="секунд",Yht="просто",Ght="Конкретний час",qht="конкретні дати",Xht="конкретний день (дні) тижня",Jht="конкретний день тижня",Kht="конкретні години",Zht="конкретні хвилини",Qht="конкретні місяці",ept="конкретні секунди",tpt="час",rpt="до",npt="майстер",apt="все",opt="Астродень",ipt="Астро ніч",spt="Світанок",lpt="Сутінки",cpt="Золота година",upt="Кінець золотої години",dpt="Надір",fpt="Морський світанок",hpt="Морські сутінки",ppt="ніч",vpt="Кінець ночі",mpt="Сонячний полудень",gpt="Схід сонця",_pt="Кінець сходу сонця",ypt="Захід сонця",bpt="Початок заходу сонця",wpt="в",Spt="в %s",xpt="кожен день",Cpt="щогодини",Tpt="кожну хвилину",kpt="щомісяця",Ept="кожен %s день",Dpt="кожні %s годин",Mpt="кожні %s хвилин",Opt="кожні %s місяців",$pt="кожні %s тижнів",Apt="кожні %s років",Ppt="щотижня",Ipt="щороку",Rpt="від %s до %s",Lpt="ніколи",Npt="на %s з %s",Fpt="на %s і %s з",zpt="на кожну дату",Bpt="%s",jpt="%s і %s",Wpt="на %s",Hpt="на %s і %s",Upt="на вихідних",Vpt="в робочі дні",Ypt="більше не виконуватиметься, оскільки запуск у минулому",Gpt="на %s",qpt="від %s",Xpt="Виконати від до",Jpt="до %s",Kpt="кожен",Zpt="Конкретний час",Qpt="від",evt="Від до",tvt="Час інтервалу",rvt="інвертувати",nvt="немає",avt="на",ovt="Крапка",ivt="Щодня",svt="дати",lvt="День",cvt="кожен",uvt="Кожен день",dvt="Щомісяця",fvt="Щотижня",hvt="Щороку",pvt="години",vvt="хвилин",mvt="місяць",gvt="Щомісяця",_vt="Один раз",yvt="Конкретні місяці",bvt="тиждень",wvt="будні",Svt="Вихідні",xvt="Щотижня",Cvt="робочі дні",Tvt="рік",kvt="щорічно",Evt="Конкретний час",Dvt="час",Mvt="до",Ovt="Дійсний",$vt="від",Avt="до",Pvt="Цілий день",Ivt="щомісяця",Rvt={"ra_%s links from aliases":"%s посилань із псевдонімів","ra_%s object(s) processed":"Оброблено %s об’єктів","ra_%s was imported":"%s було імпортовано","ra_Accept license":"Прийняти ліцензію","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:Rut,"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:Lut,"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:Nut,"ra_Chained certificate":"Прикутий сертифікат","ra_Change color theme":"Змінити кольорову тему","ra_Changed from":"Змінено з","ra_Channel → State":"Канал → Стан","ra_Check license":"Перевірити ліцензію",ra_Checked:Fut,ra_Clear:zut,"ra_Clear filter":"Очистити фільтр","ra_Clear icon":"Очистити значок","ra_Clone current row":"Клонувати поточний рядок",ra_Close:But,"ra_Collapse all nodes":"Згорнути всі вузли","ra_Collapse one step node":"Згорнути на один рівень",ra_Commercial:jut,ra_Configure:Wut,"ra_Configure visible columns":"Налаштувати видимі стовпці","ra_Confirm deletion of %s":"Підтвердити видалення %s",ra_Connected:Hut,ra_Copied:Uut,"ra_Copied %s":'Скопійовано "%s"',"ra_Copy content":"Скопіюйте вміст",ra_Create:Vut,"ra_Create alias":"Створити псевдонім","ra_Create folder":"Створити папку","ra_Create new folder in %s":"Створіть нову папку в %s",ra_Crop:Yut,"ra_Define CRON...":"Визначити CRON...","ra_Define functions":"Визначити функції","ra_Define rooms":"Визначте кімнати","ra_Define schedule":"Визначити розклад","ra_Define schedule...":"Визначити розклад...",ra_Del:Gut,ra_Delete:qut,"ra_Delete (no confirm for 5 mins)":"Видалити (без підтвердження протягом 5 хвилин)","ra_Delete current row":"Видалити поточний рядок","ra_Deselect all":"Скасувати вибір усіх","ra_Device → Channel → State":"Пристрій → Канал → Стан",ra_Discard:Xut,ra_Disconnected:Jut,"ra_Do not export values of states":"Не експортуйте значення станів","ra_Do not use let's encrypt":"Не використовуйте let's encrypt","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 function":"функція редагування","ra_Edit object field":"Поле редагування об'єкта","ra_Edit role":"Редагувати роль","ra_Edit room":"Редагувати кімнату","ra_Edit value":"Редагувати значення",ra_Error:Kut,"ra_Expand all nodes":"Розгорнути всі вузли","ra_Expand one step node":"Розгорніть один рівень","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:Zut,"ra_Filter files":"Фільтр файлів","ra_Folder name":"Назва папки","ra_Folder → Channel → State":"Папка → Канал → Стан","ra_Folder → Device → Channel → State":"Папка → Пристрій → Канал → Стан","ra_Folder → State":"Папка → Стан","ra_Folders always first":"Папки завжди першими",ra_Friday:Qut,"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_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 answer from server":"Недійсна відповідь від сервера","ra_Invalid parent folder!":"Недійсна батьківська папка!","ra_Invalid structure":"Недійсна структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Остання зміна",ra_Latitude:edt,"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_Longitude:tdt,'ra_May not trigger "updateLicenses"':'Може не запускати "updateLicenses"',ra_Message:rdt,ra_Monday:ndt,"ra_Move down":"Рухатися вниз","ra_Move up":"Рухатися вгору",ra_Name:adt,"ra_No data found in file":"Немає даних у файлі","ra_No one license found in license manager":"У менеджері ліцензій не знайдено жодної ліцензії","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_Objects:odt,ra_Ok:idt,"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 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_Private certificate":"Приватний сертифікат",ra_Product:sdt,"ra_Public certificate":"Публічний сертифікат","ra_Quality code":"якість","ra_Refresh tree":"Оновити дерево","ra_Reload files":"Перезавантажте файли",ra_Repeat:ldt,ra_Replace:cdt,"ra_Request timed out":"Час запиту вичерпано","ra_Restrict to folder":"Обмежити папкою",ra_Root:udt,ra_Saturday:ddt,ra_Save:fdt,"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:hdt,"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_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:pdt,"ra_Suitable license not found in license manager":"Відповідна ліцензія не знайдена в менеджері ліцензій",ra_Sunday:vdt,"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:mdt,ra_Timestamp:gdt,"ra_Toggle expert mode":"Перемкнути експертний режим","ra_Toggle the states view":"Перемкнути перегляд штатів","ra_Toggle view mode":"Перемкнути режим перегляду","ra_Too big":"Занадто великий","ra_Too small":"Занадто малий","ra_Transparent dialog":"Прозорий діалог",ra_Tuesday:_dt,"ra_Unknown error":"Невідома помилка","ra_Unknown error!":"Невідома помилка!",ra_Update:ydt,"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:bdt,ra_Value:wdt,ra_Version:Sdt,"ra_View file":"Переглянути файл","ra_View: %s":"Перегляд: %s",ra_Wednesday:xdt,ra_Width:Cdt,ra_Yes:Tdt,"ra_You can export all objects or just the selected branch.":"Ви можете експортувати всі об’єкти або лише вибрану гілку.","ra_You can filter entries by entering here some text":"Ви можете фільтрувати записи, ввівши тут певний текст",ra___different__:kdt,ra_aclEveryone_read_object:Edt,ra_aclEveryone_read_state:Ddt,ra_aclEveryone_write_object:Mdt,ra_aclEveryone_write_state:Odt,ra_aclGroup_read_object:$dt,ra_aclGroup_read_state:Adt,ra_aclGroup_write_object:Pdt,ra_aclGroup_write_state:Idt,ra_aclOwner_read_object:Rdt,ra_aclOwner_read_state:Ldt,ra_aclOwner_write_object:Ndt,ra_aclOwner_write_state:Fdt,ra_buttons:zdt,ra_changedFrom:Bdt,ra_close:jdt,ra_create_boolean_state:Wdt,ra_create_channel:Hdt,ra_create_device:Udt,ra_create_number_state:Vdt,ra_create_state:Ydt,ra_create_string_state:Gdt,ra_daysShortText:qdt,ra_dow_Fr:Xdt,ra_dow_Mo:Jdt,ra_dow_Sa:Kdt,ra_dow_Su:Zdt,ra_dow_Th:Qdt,ra_dow_Tu:eft,ra_dow_We:tft,ra_expertMode:rft,ra_fileType_all:nft,ra_fileType_audio:aft,ra_fileType_code:oft,ra_fileType_images:ift,ra_fileType_txt:sft,ra_fileType_video:lft,"ra_fileType_video,":"відео",ra_filter_customs:cft,ra_filter_customs_without:uft,ra_filter_func:dft,ra_filter_id:fft,ra_filter_name:hft,ra_filter_role:pft,ra_filter_room:vft,ra_filter_type:mft,"ra_import data from %s file":"Імпортувати дані з файлу %s",ra_invalidConfig:gft,ra_lastChange:_ft,ra_locally:yft,ra_month_Apr:bft,ra_month_Aug:wft,ra_month_Dec:Sft,ra_month_Feb:xft,ra_month_Jan:Cft,ra_month_Jul:Tft,ra_month_Jun:kft,ra_month_Mai:Eft,ra_month_Mar:Dft,ra_month_Nov:Mft,ra_month_Oct:Oft,ra_month_Sep:$ft,ra_months_Apr:Aft,ra_months_Aug:Pft,ra_months_Dec:Ift,ra_months_Feb:Rft,ra_months_Jan:Lft,ra_months_Jul:Nft,ra_months_Jun:Fft,ra_months_Mai:zft,ra_months_Mar:Bft,ra_months_Nov:jft,ra_months_Oct:Wft,ra_months_Sep:Hft,ra_none:Uft,ra_object_changed_by:Vft,ra_object_changed_by_user:Yft,ra_otherConfig:Gft,ra_qualityCode:qft,ra_repeat:Xft,ra_select_folder_hint:Jft,ra_state_changed_by:Kft,ra_state_changed_from:Zft,ra_timestamp:Qft,ra_tooltip_ack:eht,ra_tooltip_comment:tht,ra_tooltip_copyState:rht,ra_tooltip_customConfig:nht,ra_tooltip_deleteObject:aht,ra_tooltip_editObject:oht,ra_tooltip_editState:iht,ra_tooltip_from:sht,ra_tooltip_lc:lht,ra_tooltip_quality:cht,ra_tooltip_ts:uht,ra_tooltip_user:dht,ra_tooltip_value:fht,"ra_use seconds":"використовуйте секунди",ra_val:hht,"ra_via internet":"через інтернет",ra_warning_every_minute:pht,ra_warning_every_second:vht,sc_cron:mht,sc_date:ght,sc_dates:_ht,sc_dow:yht,sc_dows:bht,sc_every:wht,sc_everyN_dates:Sht,sc_everyN_dow:xht,sc_everyN_dows:Cht,sc_everyN_hours:Tht,sc_everyN_minutes:kht,sc_everyN_months:Eht,sc_everyN_seconds:Dht,sc_every_dates:Mht,sc_every_dow:Oht,sc_every_dows:$ht,sc_every_hours:Aht,sc_every_minutes:Pht,sc_every_months:Iht,sc_every_seconds:Rht,sc_from:Lht,sc_hours:Nht,sc_interval:Fht,sc_intervalBetween:zht,sc_invalid_cron:Bht,sc_minutes:jht,sc_months:Wht,sc_once:Hht,sc_period:Uht,sc_seconds:Vht,sc_simple:Yht,sc_specific:Ght,sc_specific_dates:qht,sc_specific_dow:Xht,sc_specific_dows:Jht,sc_specific_hours:Kht,sc_specific_minutes:Zht,sc_specific_months:Qht,sc_specific_seconds:ept,sc_time:tpt,sc_to:rpt,sc_wizard:npt,sch_all:apt,sch_astroDay:opt,sch_astroNight:ipt,sch_astro_dawn:spt,sch_astro_dusk:lpt,sch_astro_goldenHour:cpt,sch_astro_goldenHourEnd:upt,sch_astro_nadir:dpt,sch_astro_nauticalDawn:fpt,sch_astro_nauticalDusk:hpt,sch_astro_night:ppt,sch_astro_nightEnd:vpt,sch_astro_solarNoon:mpt,sch_astro_sunrise:gpt,sch_astro_sunriseEnd:_pt,sch_astro_sunset:ypt,sch_astro_sunsetStart:bpt,sch_at:wpt,sch_desc_atTime:Spt,sch_desc_everyDay:xpt,sch_desc_everyHour:Cpt,sch_desc_everyMinute:Tpt,sch_desc_everyMonth:kpt,sch_desc_everyNDay:Ept,sch_desc_everyNHours:Dpt,sch_desc_everyNMinutes:Mpt,sch_desc_everyNMonths:Opt,sch_desc_everyNWeeks:$pt,sch_desc_everyNYears:Apt,sch_desc_everyWeek:Ppt,sch_desc_everyYear:Ipt,sch_desc_intervalFromTo:Rpt,sch_desc_never:Lpt,sch_desc_onDate:Npt,sch_desc_onDates:Fpt,sch_desc_onEveryDate:zpt,sch_desc_onMonth:Bpt,sch_desc_onMonths:jpt,sch_desc_onWeekday:Wpt,sch_desc_onWeekdays:Hpt,sch_desc_onWeekends:Upt,sch_desc_onWorkdays:Vpt,sch_desc_onceInPast:Ypt,sch_desc_once_on:Gpt,sch_desc_validFrom:qpt,sch_desc_validFromTo:Xpt,sch_desc_validTo:Jpt,sch_every:Kpt,sch_exactTime:Zpt,sch_from:Qpt,sch_fromTo:evt,sch_intervalTime:tvt,sch_invert:rvt,sch_no_one:nvt,sch_on:avt,sch_period:ovt,sch_periodDaily:ivt,sch_periodDates:svt,sch_periodDay:lvt,sch_periodEvery:cvt,sch_periodEveryDay:uvt,sch_periodEveryMonth:dvt,sch_periodEveryWeek:fvt,sch_periodEveryYear:hvt,sch_periodHours:pvt,sch_periodMinutes:vvt,sch_periodMonth:mvt,sch_periodMonthly:gvt,sch_periodOnce:_vt,sch_periodSpecificMonths:yvt,sch_periodWeek:bvt,sch_periodWeekdays:wvt,sch_periodWeekend:Svt,sch_periodWeekly:xvt,sch_periodWorkdays:Cvt,sch_periodYear:Tvt,sch_periodYearly:kvt,sch_specificTime:Evt,sch_time:Dvt,sch_to:Mvt,sch_valid:Ovt,sch_validFrom:$vt,sch_validTo:Avt,sch_wholeDay:Pvt,sch_yearEveryMonth:Ivt},Lvt="附加",Nvt="取消",Fvt="类别",zvt="勾选",Bvt="删除",jvt="关",Wvt="商业的",Hvt="配置",Uvt="连接的",Vvt="复制的",Yvt="创建",Gvt="庄稼",qvt="Delete",Xvt="删除",Jvt="丢弃",Kvt="断开连接",Zvt="错误",Qvt="筛选",emt="星期五",tmt="纬度",rmt="经度",nmt="信息",amt="周一",omt="姓名",imt="对象",smt="好",lmt="产品",cmt="重复",umt="代替",dmt="根",fmt="周六",hmt="保存",pmt="已选",vmt="状态",mmt="星期日",gmt="周四",_mt="时间戳记",ymt="周二",bmt="更新资料",wmt="有效期至",Smt="值",xmt="版本",Cmt="周三",Tmt="宽度",kmt="是的",Emt="不同的",Dmt="每个人都可以阅读对象",Mmt="每个人都可以阅读状态",Omt="每个人都可以写对象",$mt="每个人都可以写状态",Amt="组可以读取对象",Pmt="群组可以读取状态",Imt="组可以写对象",Rmt="组可以写状态",Lmt="所有者可以读取对象",Nmt="所有者可以读取状态",Fmt="所有者可以写对象",zmt="所有者可以写状态",Bmt="纽扣",jmt="更改为",Wmt="关闭",Hmt="创建布尔状态",Umt="创建频道",Vmt="创建设备",Ymt="创建号码状态",Gmt="创建状态",qmt="创建字符串状态",Xmt="天",Jmt="r",Kmt="莫",Zmt="萨",Qmt="苏",egt="Th",tgt="Tu",rgt="我们",ngt="专家模式",agt="所有文件",ogt="声音的",igt="代码/JSON",sgt="图片",lgt="文本",cgt="视频",ugt="设定值",dgt="没有",fgt="功能",hgt="ID",pgt="名称",vgt="角色",mgt="房间",ggt="类型",_gt="无效的设定",ygt="最后一次变更",bgt="本地",wgt="4月",Sgt="八月",xgt="十二月",Cgt="二月",Tgt="简",kgt="七月",Egt="君",Dgt="迈",Mgt="三月",Ogt="十一月",$gt="十月",Agt="九月",Pgt="4月",Igt="八月",Rgt="十二月",Lgt="二月",Ngt="简",Fgt="七月",zgt="君",Bgt="迈",jgt="三月",Wgt="十一月",Hgt="十月",Ugt="九月",Vgt="没有任何",Ygt="物件变更者",Ggt="对象上次更改时间为",qgt="来自其他适配器%s的设置",Xgt="质量代码",Jgt="重复",Kgt="要选择文件夹,只需按住“shift”键单击文件夹即可。",Zgt="状态由",Qgt="对象已从更改",e_t="时间戳记",t_t="致谢国旗",r_t="评论",n_t="复制状态值",a_t="自定义设置",o_t="删除物件",i_t="编辑物件",s_t="编辑状态值",l_t="从",c_t="最后改变了",u_t="质量",d_t="时间戳",f_t="用户",h_t="值",p_t="值",v_t="警告:CRON 作业将在指定期间内每分钟运行一次!",m_t="警告:CRON 作业将在指定期间内每秒运行一次!",g_t="周期任务",__t="日期",y_t="日",b_t="天",w_t="星期",S_t="每",x_t="每N天",C_t="每周的第 N 天",T_t="每周N天",k_t="每N小时一次",E_t="每N分钟",D_t="每N个月",M_t="每N秒",O_t="每天",$_t="一周的每一天",A_t="一周的每一天",P_t="每小时",I_t="每分钟",R_t="每月",L_t="每秒",N_t="从",F_t="小时",z_t="间隔",B_t="间隔时间",j_t="无效的 CRON",W_t="分钟",H_t="月",U_t="一次",V_t="周期",Y_t="秒",G_t="简单模式",q_t="特定的时间",X_t="特定的日子",J_t="一周中的特定日子",K_t="特定的一周",Z_t="特定的小时",Q_t="特定的分钟",eyt="特定的月份",tyt="特定的描述",ryt="时间",nyt="至",ayt="向导模式",oyt="全选",iyt="天文白天",syt="天文夜晚",lyt="黎明",cyt="黄昏",uyt="黄金时段",dyt="黄金时段结束",fyt="天底",hyt="航海黎明",pyt="航海黄昏",vyt="夜晚",myt="夜晚结束",gyt="正午",_yt="日出",yyt="日出结束",byt="日落",wyt="日落开始",Syt="在",xyt="的%s",Cyt="每天",Tyt="每小时",kyt="每分钟",Eyt="每月",Dyt="每%s天",Myt="每%s小时",Oyt="每%s分钟",$yt="每%s月",Ayt="每%s周",Pyt="每%s年",Iyt="每周",Ryt="每年",Lyt="从%s到%s",Nyt="决不",Fyt="在%s的%s上",zyt="在%s和%s上",Byt="在每天",jyt="%s",Wyt="%s和%s",Hyt="在%s上",Uyt="在%s和%s上",Vyt="在周末",Yyt="在工作日",Gyt="将不再执行,因为起始时间已经是过去的时间了。",qyt="在%s上",Xyt="来自%s",Jyt="从执行到",Kyt="到%s",Zyt="每",Qyt="特定的时间",e0t="从",t0t="从到",r0t="间隔时间",n0t="倒置",a0t="取消全选",o0t="的",i0t="周期",s0t="每天",l0t="日期",c0t="天",u0t="每",d0t="每天",f0t="每月",h0t="每周",p0t="每年",v0t="小时",m0t="分钟",g0t="月",_0t="每月一次",y0t="一次",b0t="特定的月份",w0t="周",S0t="工作日",x0t="周末",C0t="每周",T0t="工作日",k0t="年",E0t="每年",D0t="特定的时间",M0t="时间",O0t="至",$0t="生效",A0t="从",P0t="至",I0t="一整天",R0t="每月",L0t={"ra_%s links from aliases":"来自别名的 %s 个链接","ra_%s object(s) processed":"已处理%s个对象","ra_%s was imported":"对象已导入","ra_Accept license":"接受许可","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:Lvt,"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:Nvt,"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:Fvt,"ra_Chained certificate":"链式证书","ra_Change color theme":"更改颜色主题","ra_Changed from":"更改为","ra_Channel → State":"频道→状态","ra_Check license":"检查许可证",ra_Checked:zvt,ra_Clear:Bvt,"ra_Clear filter":"清除筛选","ra_Clear icon":"清除图标","ra_Clone current row":"克隆当前行",ra_Close:jvt,"ra_Collapse all nodes":"收合所有节点","ra_Collapse one step node":"折叠一级",ra_Commercial:Wvt,ra_Configure:Hvt,"ra_Configure visible columns":"配置可见列","ra_Confirm deletion of %s":"确认删除%s",ra_Connected:Uvt,ra_Copied:Vvt,"ra_Copied %s":'复制的"%s"',"ra_Copy content":"复制内容",ra_Create:Yvt,"ra_Create alias":"创建别名","ra_Create folder":"创建文件夹","ra_Create new folder in %s":"在%s中创建新文件夹",ra_Crop:Gvt,"ra_Define CRON...":"定义 CRON...","ra_Define functions":"定义功能","ra_Define rooms":"定义房间","ra_Define schedule":"定义时间表","ra_Define schedule...":"定义时间表...",ra_Del:qvt,ra_Delete:Xvt,"ra_Delete (no confirm for 5 mins)":"删除(5分钟内未确认)","ra_Delete current row":"删除当前行","ra_Deselect all":"全部取消选择","ra_Device → Channel → State":"设备→频道→状态",ra_Discard:Jvt,ra_Disconnected:Kvt,"ra_Do not export values of states":"不导出状态值","ra_Do not use let's encrypt":"不要使用让我们加密","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 function":"编辑功能","ra_Edit object field":"编辑对象字段","ra_Edit role":"编辑角色","ra_Edit room":"编辑室","ra_Edit value":"编辑值",ra_Error:Zvt,"ra_Expand all nodes":"展开所有节点","ra_Expand one step node":"扩大一级","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:Qvt,"ra_Filter files":"过滤文件","ra_Folder name":"文件夹名称","ra_Folder → Channel → State":"文件夹→频道→状态","ra_Folder → Device → Channel → State":"文件夹→设备→频道→状态","ra_Folder → State":"文件夹→状态","ra_Folders always first":"资料夹永远优先",ra_Friday:emt,"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_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 answer from server":"来自服务器的无效答案","ra_Invalid parent folder!":"父文件夹无效!","ra_Invalid structure":"结构无效","ra_JSON editor":"JSON 编辑器","ra_Last change":"最后一次变更",ra_Latitude:tmt,"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_Longitude:rmt,'ra_May not trigger "updateLicenses"':"可能不会触发“updateLicenses”",ra_Message:nmt,ra_Monday:amt,"ra_Move down":"下移","ra_Move up":"提升",ra_Name:omt,"ra_No data found in file":"文件中未找到数据","ra_No one license found in license manager":"许可证管理器中未找到任何许可证","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_Objects:imt,ra_Ok:smt,"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 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_Private certificate":"私有证书",ra_Product:lmt,"ra_Public certificate":"公共证书","ra_Quality code":"质量代码","ra_Refresh tree":"刷新树","ra_Reload files":"重新载入文件",ra_Repeat:cmt,ra_Replace:umt,"ra_Request timed out":"请求超时","ra_Restrict to folder":"限制到文件夹",ra_Root:dmt,ra_Saturday:fmt,ra_Save:hmt,"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:pmt,"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_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:vmt,"ra_Suitable license not found in license manager":"在许可证管理器中找不到合适的许可证",ra_Sunday:mmt,"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:gmt,ra_Timestamp:_mt,"ra_Toggle expert mode":"切换专家模式","ra_Toggle the states view":"切换状态视图","ra_Toggle view mode":"切换检视模式","ra_Too big":"太大","ra_Too small":"太小","ra_Transparent dialog":"透明对话框",ra_Tuesday:ymt,"ra_Unknown error":"未知错误","ra_Unknown error!":"未知错误!",ra_Update:bmt,"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:wmt,ra_Value:Smt,ra_Version:xmt,"ra_View file":"查看文件","ra_View: %s":"查看:%s",ra_Wednesday:Cmt,ra_Width:Tmt,ra_Yes:kmt,"ra_You can export all objects or just the selected branch.":"您可以导出所有对象或仅导出选定的分支。","ra_You can filter entries by entering here some text":"您可以通过在此处输入一些文本来过滤条目",ra___different__:Emt,ra_aclEveryone_read_object:Dmt,ra_aclEveryone_read_state:Mmt,ra_aclEveryone_write_object:Omt,ra_aclEveryone_write_state:$mt,ra_aclGroup_read_object:Amt,ra_aclGroup_read_state:Pmt,ra_aclGroup_write_object:Imt,ra_aclGroup_write_state:Rmt,ra_aclOwner_read_object:Lmt,ra_aclOwner_read_state:Nmt,ra_aclOwner_write_object:Fmt,ra_aclOwner_write_state:zmt,ra_buttons:Bmt,ra_changedFrom:jmt,ra_close:Wmt,ra_create_boolean_state:Hmt,ra_create_channel:Umt,ra_create_device:Vmt,ra_create_number_state:Ymt,ra_create_state:Gmt,ra_create_string_state:qmt,ra_daysShortText:Xmt,ra_dow_Fr:Jmt,ra_dow_Mo:Kmt,ra_dow_Sa:Zmt,ra_dow_Su:Qmt,ra_dow_Th:egt,ra_dow_Tu:tgt,ra_dow_We:rgt,ra_expertMode:ngt,ra_fileType_all:agt,ra_fileType_audio:ogt,ra_fileType_code:igt,ra_fileType_images:sgt,ra_fileType_txt:lgt,ra_fileType_video:cgt,"ra_fileType_video,":"视频",ra_filter_customs:ugt,ra_filter_customs_without:dgt,ra_filter_func:fgt,ra_filter_id:hgt,ra_filter_name:pgt,ra_filter_role:vgt,ra_filter_room:mgt,ra_filter_type:ggt,"ra_import data from %s file":"从 %s 文件导入数据",ra_invalidConfig:_gt,ra_lastChange:ygt,ra_locally:bgt,ra_month_Apr:wgt,ra_month_Aug:Sgt,ra_month_Dec:xgt,ra_month_Feb:Cgt,ra_month_Jan:Tgt,ra_month_Jul:kgt,ra_month_Jun:Egt,ra_month_Mai:Dgt,ra_month_Mar:Mgt,ra_month_Nov:Ogt,ra_month_Oct:$gt,ra_month_Sep:Agt,ra_months_Apr:Pgt,ra_months_Aug:Igt,ra_months_Dec:Rgt,ra_months_Feb:Lgt,ra_months_Jan:Ngt,ra_months_Jul:Fgt,ra_months_Jun:zgt,ra_months_Mai:Bgt,ra_months_Mar:jgt,ra_months_Nov:Wgt,ra_months_Oct:Hgt,ra_months_Sep:Ugt,ra_none:Vgt,ra_object_changed_by:Ygt,ra_object_changed_by_user:Ggt,ra_otherConfig:qgt,ra_qualityCode:Xgt,ra_repeat:Jgt,ra_select_folder_hint:Kgt,ra_state_changed_by:Zgt,ra_state_changed_from:Qgt,ra_timestamp:e_t,ra_tooltip_ack:t_t,ra_tooltip_comment:r_t,ra_tooltip_copyState:n_t,ra_tooltip_customConfig:a_t,ra_tooltip_deleteObject:o_t,ra_tooltip_editObject:i_t,ra_tooltip_editState:s_t,ra_tooltip_from:l_t,ra_tooltip_lc:c_t,ra_tooltip_quality:u_t,ra_tooltip_ts:d_t,ra_tooltip_user:f_t,ra_tooltip_value:h_t,"ra_use seconds":"用秒",ra_val:p_t,"ra_via internet":"通过互联网",ra_warning_every_minute:v_t,ra_warning_every_second:m_t,sc_cron:g_t,sc_date:__t,sc_dates:y_t,sc_dow:b_t,sc_dows:w_t,sc_every:S_t,sc_everyN_dates:x_t,sc_everyN_dow:C_t,sc_everyN_dows:T_t,sc_everyN_hours:k_t,sc_everyN_minutes:E_t,sc_everyN_months:D_t,sc_everyN_seconds:M_t,sc_every_dates:O_t,sc_every_dow:$_t,sc_every_dows:A_t,sc_every_hours:P_t,sc_every_minutes:I_t,sc_every_months:R_t,sc_every_seconds:L_t,sc_from:N_t,sc_hours:F_t,sc_interval:z_t,sc_intervalBetween:B_t,sc_invalid_cron:j_t,sc_minutes:W_t,sc_months:H_t,sc_once:U_t,sc_period:V_t,sc_seconds:Y_t,sc_simple:G_t,sc_specific:q_t,sc_specific_dates:X_t,sc_specific_dow:J_t,sc_specific_dows:K_t,sc_specific_hours:Z_t,sc_specific_minutes:Q_t,sc_specific_months:eyt,sc_specific_seconds:tyt,sc_time:ryt,sc_to:nyt,sc_wizard:ayt,sch_all:oyt,sch_astroDay:iyt,sch_astroNight:syt,sch_astro_dawn:lyt,sch_astro_dusk:cyt,sch_astro_goldenHour:uyt,sch_astro_goldenHourEnd:dyt,sch_astro_nadir:fyt,sch_astro_nauticalDawn:hyt,sch_astro_nauticalDusk:pyt,sch_astro_night:vyt,sch_astro_nightEnd:myt,sch_astro_solarNoon:gyt,sch_astro_sunrise:_yt,sch_astro_sunriseEnd:yyt,sch_astro_sunset:byt,sch_astro_sunsetStart:wyt,sch_at:Syt,sch_desc_atTime:xyt,sch_desc_everyDay:Cyt,sch_desc_everyHour:Tyt,sch_desc_everyMinute:kyt,sch_desc_everyMonth:Eyt,sch_desc_everyNDay:Dyt,sch_desc_everyNHours:Myt,sch_desc_everyNMinutes:Oyt,sch_desc_everyNMonths:$yt,sch_desc_everyNWeeks:Ayt,sch_desc_everyNYears:Pyt,sch_desc_everyWeek:Iyt,sch_desc_everyYear:Ryt,sch_desc_intervalFromTo:Lyt,sch_desc_never:Nyt,sch_desc_onDate:Fyt,sch_desc_onDates:zyt,sch_desc_onEveryDate:Byt,sch_desc_onMonth:jyt,sch_desc_onMonths:Wyt,sch_desc_onWeekday:Hyt,sch_desc_onWeekdays:Uyt,sch_desc_onWeekends:Vyt,sch_desc_onWorkdays:Yyt,sch_desc_onceInPast:Gyt,sch_desc_once_on:qyt,sch_desc_validFrom:Xyt,sch_desc_validFromTo:Jyt,sch_desc_validTo:Kyt,sch_every:Zyt,sch_exactTime:Qyt,sch_from:e0t,sch_fromTo:t0t,sch_intervalTime:r0t,sch_invert:n0t,sch_no_one:a0t,sch_on:o0t,sch_period:i0t,sch_periodDaily:s0t,sch_periodDates:l0t,sch_periodDay:c0t,sch_periodEvery:u0t,sch_periodEveryDay:d0t,sch_periodEveryMonth:f0t,sch_periodEveryWeek:h0t,sch_periodEveryYear:p0t,sch_periodHours:v0t,sch_periodMinutes:m0t,sch_periodMonth:g0t,sch_periodMonthly:_0t,sch_periodOnce:y0t,sch_periodSpecificMonths:b0t,sch_periodWeek:w0t,sch_periodWeekdays:S0t,sch_periodWeekend:x0t,sch_periodWeekly:C0t,sch_periodWorkdays:T0t,sch_periodYear:k0t,sch_periodYearly:E0t,sch_specificTime:D0t,sch_time:M0t,sch_to:O0t,sch_valid:$0t,sch_validFrom:A0t,sch_validTo:P0t,sch_wholeDay:I0t,sch_yearEveryMonth:R0t},N0t="Export",F0t="Cancel",z0t="Close",B0t={"Save as image":"Save as image","Reset pan and zoom":"Reset pan and zoom","Save chart as svg":"Save chart as SVG","Unfortunately your browser does not support this feature":"Unfortunately your browser does not support this feature","Save chart as png":"Save chart as png","No data found":"No data found","Export raw data as CSV":"Export raw data as CSV","Select lines for export":"Select lines for export","Time format":"Time format","Browser format":"Browser time format","Time stamp in milliseconds":"Time stamp in milliseconds",Export:N0t,Cancel:F0t,"Select lines":"Select lines","Select lines to show":"Select lines to show","Select all":"Select all",Close:z0t,"Unselect all":"Unselect all"},j0t="Export",W0t="Abbrechen",H0t="Schließen",U0t={"Save as image":"Als Bild speichern","Reset pan and zoom":"Verschiebung und Zoomen zurücksetzen","Save chart as svg":"Diagramm als SVG speichern","Unfortunately your browser does not support this feature":"Leider unterstützt Ihr Browser diese Funktion nicht","Save chart as png":"Diagramm als PNG speichern","No data found":"Keine Daten gefunden","Export raw data as CSV":"Rohdaten als CSV exportieren","Select lines for export":"Wählen Sie Zeilen für den Export aus","Time format":"Zeitformat","Browser format":"Browser-Zeitformat","Time stamp in milliseconds":"Zeitstempel in Millisekunden",Export:j0t,Cancel:W0t,"Select lines":"Wählen Sie Zeilen aus","Select lines to show":"Wählen Sie die anzuzeigenden Linien aus","Select all":"Wählen Sie Alle",Close:H0t,"Unselect all":"Alles wiederufen"},V0t="Экспорт",Y0t="Отмена",G0t="Закрыть",q0t={"Save as image":"Сохранить как изображение","Reset pan and zoom":"Сбросить сдвиг и масштабирование","Save chart as svg":"Сохранить график как SVG","Unfortunately your browser does not support this feature":"К сожалению, ваш браузер не поддерживает эту функцию","Save chart as png":"Сохранить диаграмму как png","No data found":"Данные не найдены","Export raw data as CSV":"Экспорт необработанных данных в формате CSV","Select lines for export":"Выбрать строки для экспорта","Time format":"Формат времени","Browser format":"Формат времени браузера","Time stamp in milliseconds":"Отметка времени в миллисекундах",Export:V0t,Cancel:Y0t,"Select lines":"Выберите строки","Select lines to show":"Выберите строки для отображения","Select all":"Выбрать все",Close:G0t,"Unselect all":"Снять все"},X0t="Exportar",J0t="Cancelar",K0t="Fechar",Z0t={"Save as image":"Salvar como imagem","Reset pan and zoom":"Redefinir panorâmica e zoom","Save chart as svg":"Salvar gráfico como SVG","Unfortunately your browser does not support this feature":"Infelizmente, seu navegador não oferece suporte a esse recurso","Save chart as png":"Salvar gráfico como png","No data found":"Nenhum dado encontrado","Export raw data as CSV":"Exportar dados brutos como CSV","Select lines for export":"Selecione as linhas para exportação","Time format":"Formato de hora","Browser format":"Formato de hora do navegador","Time stamp in milliseconds":"Carimbo de hora em milissegundos",Export:X0t,Cancel:J0t,"Select lines":"Selecione linhas","Select lines to show":"Selecione linhas para mostrar","Select all":"Selecionar tudo",Close:K0t,"Unselect all":"Desmarque todos"},Q0t="Exporteren",ebt="Annuleren",tbt="Dichtbij",rbt={"Save as image":"Bewaar als afbeelding","Reset pan and zoom":"Stel pannen en zoomen opnieuw in","Save chart as svg":"Bewaar grafiek als SVG","Unfortunately your browser does not support this feature":"Helaas ondersteunt uw browser deze functie niet","Save chart as png":"Bewaar grafiek als png","No data found":"Geen data gevonden","Export raw data as CSV":"Exporteer onbewerkte gegevens als CSV","Select lines for export":"Selecteer regels voor export","Time format":"Tijd formaat","Browser format":"Browser tijdformaat","Time stamp in milliseconds":"Tijdstempel in milliseconden",Export:Q0t,Cancel:ebt,"Select lines":"Selecteer lijnen","Select lines to show":"Selecteer lijnen om weer te geven","Select all":"Selecteer alles",Close:tbt,"Unselect all":"Deselecteer alles"},nbt="Exporter",abt="Annuler",obt="Fermer",ibt={"Save as image":"Enregistrer comme image","Reset pan and zoom":"Réinitialiser le panoramique et le zoom","Save chart as svg":"Enregistrer le graphique au format SVG","Unfortunately your browser does not support this feature":"Malheureusement, votre navigateur ne prend pas en charge cette fonctionnalité","Save chart as png":"Enregistrer le graphique au format png","No data found":"Aucune donnée disponible","Export raw data as CSV":"Exporter les données brutes au format CSV","Select lines for export":"Sélectionner les lignes à exporter","Time format":"Format de l'heure","Browser format":"Format d'heure du navigateur","Time stamp in milliseconds":"Horodatage en millisecondes",Export:nbt,Cancel:abt,"Select lines":"Sélectionner des lignes","Select lines to show":"Sélectionnez les lignes à afficher","Select all":"Tout sélectionner",Close:obt,"Unselect all":"Tout déselectionner"},sbt="Esportare",lbt="Annulla",cbt="Vicino",ubt={"Save as image":"Salva come immagine","Reset pan and zoom":"Reimposta panoramica e zoom","Save chart as svg":"Salva grafico come SVG","Unfortunately your browser does not support this feature":"Purtroppo il tuo browser non supporta questa funzionalità","Save chart as png":"Salva grafico come png","No data found":"Nessun dato trovato","Export raw data as CSV":"Esporta i dati grezzi come CSV","Select lines for export":"Seleziona le linee per l'esportazione","Time format":"Formato orario","Browser format":"Formato dell'ora del browser","Time stamp in milliseconds":"Timestamp in millisecondi",Export:sbt,Cancel:lbt,"Select lines":"Seleziona linee","Select lines to show":"Seleziona le righe da mostrare","Select all":"Seleziona tutto",Close:cbt,"Unselect all":"Deseleziona tutto"},dbt="Exportar",fbt="Cancelar",hbt="Cerca",pbt={"Save as image":"Guardar como imagen","Reset pan and zoom":"Restablecer panorámica y zoom","Save chart as svg":"Guardar gráfico como SVG","Unfortunately your browser does not support this feature":"Lamentablemente, su navegador no es compatible con esta función.","Save chart as png":"Guardar gráfico como png","No data found":"Datos no encontrados","Export raw data as CSV":"Exportar datos sin procesar como CSV","Select lines for export":"Seleccionar líneas para exportar","Time format":"Formato de tiempo","Browser format":"formato de hora del navegador","Time stamp in milliseconds":"Marca de tiempo en milisegundos",Export:dbt,Cancel:fbt,"Select lines":"Seleccionar líneas","Select lines to show":"Seleccionar líneas para mostrar","Select all":"Seleccionar todo",Close:hbt,"Unselect all":"Deselecciona todo"},vbt="Eksport",mbt="Anulować",gbt="Zamknąć",_bt={"Save as image":"Zapisz jako obraz","Reset pan and zoom":"Zresetuj przesuwanie i powiększanie","Save chart as svg":"Zapisz wykres jako SVG","Unfortunately your browser does not support this feature":"Niestety Twoja przeglądarka nie obsługuje tej funkcji","Save chart as png":"Zapisz wykres jako png","No data found":"Nie znaleziono danych","Export raw data as CSV":"Eksportuj surowe dane jako CSV","Select lines for export":"Wybierz linie do eksportu","Time format":"Format czasu","Browser format":"Format czasu przeglądarki","Time stamp in milliseconds":"Znacznik czasu w milisekundach",Export:vbt,Cancel:mbt,"Select lines":"Wybierz linie","Select lines to show":"Wybierz linie do pokazania","Select all":"Zaznacz wszystko",Close:gbt,"Unselect all":"Odznacz wszystko"},ybt="Експорт",bbt="Скасувати",wbt="Закрити",Sbt={"No data found":"Даних не знайдено","Reset pan and zoom":"Скинути панорамування та масштабування","Save as image":"Зберегти як зображення","Save chart as png":"Зберегти діаграму як png","Save chart as svg":"Зберегти діаграму як SVG","Unfortunately your browser does not support this feature":"На жаль, ваш браузер не підтримує цю функцію","Export raw data as CSV":"Експорт необроблених даних як CSV","Select lines for export":"Виберіть рядки для експорту","Time format":"Формат часу","Browser format":"Формат часу браузера","Time stamp in milliseconds":"Мітка часу в мілісекундах",Export:ybt,Cancel:bbt,"Select lines":"Виберіть лінії","Select lines to show":"Виберіть рядки для показу","Select all":"Вибрати все",Close:wbt,"Unselect all":"Скасувати вибір усіх"},xbt="出口",Cbt="取消",Tbt="关闭",kbt={"Save as image":"另存为图片","Reset pan and zoom":"重置平移和缩放","Save chart as svg":"将图表另存为SVG","Unfortunately your browser does not support this feature":"不幸的是,您的浏览器不支持此功能","Save chart as png":"将图表另存为png","No data found":"没有找到数据","Export raw data as CSV":"将原始数据导出为 CSV","Select lines for export":"选择要导出的行","Time format":"时间格式","Browser format":"浏览器时间格式","Time stamp in milliseconds":"以毫秒为单位的时间戳",Export:xbt,Cancel:Cbt,"Select lines":"选择线路","Select lines to show":"选择要显示的行","Select all":"全选",Close:Tbt,"Unselect all":"全部取消选择"};function qj(t){t=(t||"").toString().replace(/^\?/,"");const e={};return t.split("&").forEach(r=>{if(r=r.trim(),r){const n=r.split("="),a=decodeURIComponent(n[0]).trim();if(n.length>1)if(e[a]=decodeURIComponent(n[1]),e[a]==="true")e[a]=!0;else if(e[a]==="false")e[a]=!1;else{const o=parseFloat(e[a]);o.toString()===e[a]&&(e[a]=o)}else e[a]=!0}}),e}function Av(t){var r;const e=JSON.parse(JSON.stringify(t));if(t.lines&&(e.l=t.lines,delete e.lines),t._ids){const n=t._ids?t._ids.split(";"):[],a=t._colors?t._colors.split(";"):[],o=t._names?t._names.split(";"):[],i=t._units?t._units.split(";"):[];e.l=[];for(let s=0;s{this.lastHash!==window.location.hash&&(this.lastHash=window.location.hash,this.analyseAndLoadConfig())});ae(this,"onPresetUpdate",(e,r)=>{e===this.preset&&(this.presetUpdateTimeout&&clearTimeout(this.presetUpdateTimeout),this.presetUpdateTimeout=setTimeout(()=>{this.presetUpdateTimeout=null;let n;r?n=Av(r.native.data):n=Av({}),JSON.stringify(n)!==JSON.stringify(this.config)&&(this.config=n,this.updateInterval&&clearInterval(this.updateInterval),this.updateInterval=null,this.config.live&&(!this.zoomData||!this.zoomData.stopLive)&&(this.updateInterval=setInterval(()=>this.readData(),this.config.live*1e3)),this.readData())},100))});ae(this,"onStateChange",(e,r)=>{if(!e||!r||this.reading)return;this.debug&&console.log(`State update ${e} - ${r.val}`);let n=!1;for(let a=0;ac.ts-d.ts?-1:c.ts(a.toString().includes(Li)&&this.onErrorFunc&&this.onErrorFunc(a),console.error(`Cannot read systemConfig: ${a.toString()}`),null)).then(a=>(this.systemConfig=a!=null&&a.common?a.common:{},this.defaultHistory=this.systemConfig.defaultHistory,this.analyseAndLoadConfig(r)))}async analyseAndLoadConfig(e){var r,n,a,o,i;if(e)typeof e=="string"?this.preset=e:this.config=Av(e);else if(!this.serverSide){const s=qj(window.location.search);if(this.debug=s.debug===!0||s.debug==="true"||s.debug===1||s.debug==="1",s.preset&&typeof s.preset=="string")this.preset=s.preset;else{const l=qj((window.location.hash||"").toString().replace(/^#/,""));let c={};if(l.data&&typeof l.data=="string")try{c=JSON.parse(l.data)}catch{}if(s.data&&typeof s.data=="string")try{Object.assign(c,JSON.parse(s.data),!0)}catch{}l.preset?(this.preset=l.preset,(l.range||l.relativeEnd)&&(this.hash={range:l.range,relativeEnd:l.relativeEnd})):(l.noLoader!==void 0&&(c.noLoader=l.noLoader===!0||l.noLoader==="true"||l.noLoader===1||l.noLoader==="1"),s.noLoader!==void 0&&(c.noLoader=s.noLoader===!0||s.noLoader==="true"||s.noLoader===1||s.noLoader==="1"),this.config=Av(c))}}if(this.seriesData=[],this.barData=[],this.barCategories=null,this.updateInterval&&(clearInterval(this.updateInterval),this.updateInterval=null),this.preset){(!this.preset.startsWith("echarts.")&&!this.preset.startsWith("flot.")||!this.preset.includes("."))&&(this.preset=`echarts.0.${this.preset}`);try{const s=await this.socket.getObject(this.preset);if(!((r=s==null?void 0:s.native)!=null&&r.data)||s.type!=="chart"){console.error(`[ChartModel] Invalid object ${this.preset}: ${JSON.stringify(s)}`);return}this.config=Av(s.native.data),this.config.useComma=this.config.useComma===void 0?this.systemConfig.isFloatComma:this.config.useComma,this.config.lang=this.systemConfig.language,this.config.live=parseInt(this.config.live,10)||0,this.config.debug=this.debug,this.config.presetId=this.preset,(n=this.hash)!=null&&n.range&&(typeof this.hash.range=="string"&&!this.hash.range.includes("y")&&!this.hash.range.includes("m")?this.config.range=parseInt(this.hash.range,10):this.config.range=this.hash.range),(a=this.hash)!=null&&a.relativeEnd&&(this.config.relativeEnd=this.hash.relativeEnd),await this.readData(),!this.serverSide&&this.presetSubscribed!==this.preset&&(this.presetSubscribed&&await this.socket.unsubscribeObject(this.presetSubscribed,this.onPresetUpdate),this.presetSubscribed=this.preset,await this.socket.subscribeObject(this.preset,this.onPresetUpdate)),!this.serverSide&&this.config.live&&!((o=this.zoomData)!=null&&o.stopLive)&&(this.updateInterval=setInterval(()=>this.readData(),this.config.live*1e3))}catch(s){s===Li&&this.onErrorFunc&&this.onErrorFunc(s),console.error(`Cannot read "${this.preset}": ${s}`)}}else this.config.useComma=this.config.useComma===void 0?this.systemConfig.isFloatComma===!0:this.config.useComma===!0,this.config.lang=this.systemConfig.language,this.config.live=parseInt(this.config.live,10)||0,this.config.debug=this.debug,await this.readData(),!this.serverSide&&this.config.live&&!((i=this.zoomData)!=null&&i.stopLive)&&(this.updateInterval=setInterval(()=>this.readData(),this.config.live*1e3))}setNewRange(e){var r;if(this.debug&&console.log(`[ChartModel] [${new Date().toISOString()}] setNewRange: ${JSON.stringify(e)}`),!e)this.zoomData&&(this.zoomData=null,this.readOnZoomTimeout&&clearTimeout(this.readOnZoomTimeout),this.readOnZoomTimeout=setTimeout(()=>{this.readOnZoomTimeout=null,this.config.live&&(!this.zoomData||!this.zoomData.stopLive)&&(console.log("Restore update"),this.updateInterval&&clearInterval(this.updateInterval),this.updateInterval=setInterval(()=>this.readData(),this.config.live*1e3)),this.readData()},this.updateTimeout));else if(e.stopLive)this.zoomData=this.zoomData||{},this.zoomData.stopLive=!0,this.updateInterval&&(console.log("Clear interval"),clearInterval(this.updateInterval),this.updateInterval=null);else{const n=(r=this.zoomData)==null?void 0:r.stopLive;n&&delete this.zoomData.stopLive,!this.zoomData||JSON.stringify(this.zoomData)!==JSON.stringify(e)?(this.zoomData=e,n&&(this.zoomData.stopLive=!0),this.readOnZoomTimeout&&clearTimeout(this.readOnZoomTimeout),this.readOnZoomTimeout=setTimeout(()=>{this.readOnZoomTimeout=null,this.readData()},this.updateTimeout)):n&&(this.zoomData.stopLive=!0)}}destroy(){this.subscribed&&(this.serverSide||this.subscribes.forEach(e=>this.socket.unsubscribeState(e,this.onStateChange)),this.subscribes=[],this.subscribed=!1),this.readOnZoomTimeout&&(clearTimeout(this.readOnZoomTimeout),this.readOnZoomTimeout=null),this.presetUpdateTimeout&&(clearTimeout(this.presetUpdateTimeout),this.presetUpdateTimeout=null),this.presetSubscribed&&(this.serverSide||this.socket.unsubscribeObject(this.presetSubscribed,this.onPresetUpdate),this.presetSubscribed=null),this.updateInterval&&(clearInterval(this.updateInterval),this.updateInterval=null),this.serverSide||this.onHashInstalled&&(window.removeEventListener("hashchange",this.onHashChange,!1),this.onHashInstalled=!1)}onUpdate(e){this.onUpdateFunc=e}onReading(e){this.onReadingFunc=e}onError(e){this.onErrorFunc=e}getConfig(){return this.config}getSystemConfig(){return this.systemConfig}setConfig(e){this.analyseAndLoadConfig(e)}increaseRegionForBar(e,r,n){this.config.aggregateBar=parseInt(this.config.aggregateBar,10)||0;let a=typeof r=="number"?r:r.getTime(),o=typeof e=="number"?e:e.getTime();if(this.config.aggregateBar||(a-o<=36e5*12?this.config.aggregateBar=15:a-o>=36e5*24*60?this.config.aggregateBar=43200:a-o>36e5*24*3?this.config.aggregateBar=1440:this.config.aggregateBar=60),n=n||{},this.config.aggregateBar===15){const i=new Date(o);i.setMinutes(Math.floor(i.getMinutes()/15)*15),this.config.postProcessing==="diff"&&i.setMinutes(i.getMinutes()-15),i.setSeconds(0),i.setMilliseconds(0),o=i.getTime();const s=new Date(a);s.setMinutes(Math.ceil(s.getMinutes()/15)*15),s.setSeconds(0),s.setMilliseconds(0),a=s.getTime(),n.count=Math.round((a-o)/9e5)}else if(this.config.aggregateBar===60){const i=new Date(o);i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),this.config.postProcessing==="diff"&&i.setMinutes(i.getMinutes()-60),o=i.getTime();const s=new Date(a);s.setMinutes(60),s.setSeconds(0),s.setMilliseconds(0),a=s.getTime(),n.count=Math.round((a-o)/36e5)}else if(this.config.aggregateBar===1440){const i=new Date(o);i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),this.config.postProcessing==="diff"&&i.setDate(i.getDate()-1),o=i.getTime();const s=new Date(a);s.setDate(s.getDate()+1),s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0),a=s.getTime(),n.count=Math.round((a-o)/864e5)}else if(this.config.aggregateBar===43200){const i=new Date(o);i.setDate(1),i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),this.config.postProcessing==="diff"&&i.setDate(i.getDate()-30),o=i.getTime();const s=new Date(a);s.setDate(1),s.setHours(0),s.setMinutes(0),s.setMonth(s.getMonth()+1),s.setSeconds(0),s.setMilliseconds(0),a=s.getTime(),n.count=Math.round((a-o)/(864e5*30))}n.start=o,n.end=a}getStartStop(e,r){let n,a,o,i;if(this.config.l[e].offset=this.config.l[e].offset||0,typeof this.config.range=="string"&&this.config.range.includes("m")&&this.config.l.length>1){const s=parseInt(this.config.range,10)||1;for(let l=0;l1){const s=parseInt(this.config.range,10)||1;for(let l=0;lc+d,0);o[i]=l/s.length}else if(n==="min"){let l=s[0];for(let c=1;cl&&(l=s[c]);o[i]=l}else n==="total"?o[i]=s.reduce((l,c)=>l+c,0):o[i]=s[s.length-1]}if(a==="diff"){for(let i=e.length-1;i>0;i--)o[i-1]!==null&&o[i]!==null?o[i]-=o[i-1]:o[i]=0;o.splice(0,1),r.splice(0,1)}for(let i=0;is.push([]))}let c;if((u=r.convert)!=null&&u.trim()){if(!this.convertFunctions[r.convert.trim()]){let f=r.convert.trim();f.includes("return")||(f=`return ${f}`);try{this.convertFunctions[r.convert.trim()]=new Function("val",f)}catch(p){console.error(`[ChartModel] Cannot parse convert function: ${p}`)}}c=this.convertFunctions[r.convert.trim()]}for(let f=0;f=n[f].ts&&n[f].tsthis.now)break;const m={value:[n[f].ts,p]};n[f].i&&(m.exact=!1),i.push(m)}}if(r.chartType!=="bar"&&r.chartType!=="polar"){let f=typeof a.end=="number"?a.end:typeof a.end=="string"?new Date(a.end).getTime():a.end.getTime();const p=typeof a.start=="number"?a.start:typeof a.start=="string"?new Date(a.start).getTime():a.start.getTime();if(f>this.now&&(f=this.now),i.length){i[0].value[0]>p&&i.unshift({value:[p,null],exact:!1});const m=i[i.length-1];m.value[0]m.value[0]>g.value[0]?1:m.value[0]c),s[0]){const c=Object.keys(s[0]);(!c.includes("val")||!c.includes("ts"))&&(c.includes("y")&&c.includes("t")?s=s.map(d=>({ts:d.t,val:d.y})):(c.includes("y")?s.forEach(d=>d.val=d.y):c.includes("value")?s.forEach(d=>d.val=d.value):c.includes("data")?s.forEach(d=>d.val=d.data):c.includes("v")&&s.forEach(d=>d.val=d.v),c.includes("t")?s.forEach(d=>d.ts=d.t):c.includes("time")?s.forEach(d=>d.ts=d.time):c.includes("date")&&s.forEach(d=>d.ts=d.date))),s[0].ts&&(typeof s[0].ts=="string"&&window.isFinite(s[0].ts)?s.forEach(d=>d.ts=parseInt(d.ts,10)):typeof s[0].ts=="string"&&new Date(s[0].ts).toString()!=="Invalid Date"&&s.forEach(d=>d.ts=new Date(d.ts).getTime()),typeof s[0].ts=="number"&&s[0].ts<9466812e5&&s.forEach(d=>d.ts*=1e3))}s.sort((c,d)=>c.ts-d.ts?-1:c.ts({ts:c.t,val:c.y})):(l.includes("y")?s.forEach(c=>c.val=c.y):l.includes("value")?s.forEach(c=>c.val=c.value):l.includes("data")?s.forEach(c=>c.val=c.data):l.includes("v")&&s.forEach(c=>c.val=c.v),l.includes("t")?s.forEach(c=>c.ts=c.t):l.includes("time")?s.forEach(c=>c.ts=c.time):l.includes("date")&&s.forEach(c=>c.ts=c.date))),s[0].ts&&(typeof s[0].ts=="string"&&window.isFinite(s[0].ts)?s.forEach(c=>c.ts=parseInt(c.ts,10)):typeof s[0].ts=="string"&&new Date(s[0].ts).toString()!=="Invalid Date"&&s.forEach(c=>c.ts=new Date(c.ts).getTime()),typeof s[0].ts=="number"&&s[0].ts<9466812e5&&s.forEach(c=>c.ts*=1e3))}return Array.isArray(s)||(s=[],console.warn("JSON is not an array")),s.sort((l,c)=>l.ts-c.ts?-1:l.ts(r.toString().includes(Li)&&this.onErrorFunc&&this.onErrorFunc(r),console.error(`Cannot read "${e}": ${r.toString()}`),null))),this.objectPromises[e]}async _readOneLine(e){const r=this.config.l[e];try{const n=await this._readObject(r.id);if(n!=null&&n.common){const a=r.name||n.common.name;if(r.name=a&&typeof a=="object"?a[this.systemConfig.language]||a.en||r.id:a||"",r.unit=r.unit||(n.common.unit?n.common.unit.replace("�","°"):""),r.type=n.common.type,r.chartType==="auto"&&(r.chartType=n.common.type==="boolean"?"steps":"line",r.aggregate=n.common.type==="boolean"?"none":"minmax"),r.unit&&(r.falseText||r.trueText)&&delete r.unit,n.common.states&&!Array.isArray(n.common.states)&&r.states!==!1&&!n.common.unit){if(r.states?r.states=Object.assign(n.common.states,r.states):r.states=n.common.states,Object.keys(r.states).find(o=>o==="true"||o==="false")){const o={};Object.keys(r.states).forEach(i=>{o[i==="true"?1:i==="false"?0:i]=r.states[i]}),r.states=o}r.unit&&r.states&&delete r.unit}(r.commonYAxis||r.commonYAxis===0)&&(r.yaxe="off")}}catch(n){n===Li&&this.onErrorFunc&&this.onErrorFunc(n),console.error(`[ChartModel] Cannot read object ${r.id}: ${n}`)}r.name=r.name||r.id||"",r.unit=r.unit||"",r.chartType==="auto"&&(r.chartType="line",r.aggregate="minmax"),await this.readOneChart(r.id,r.instance||this.defaultHistory,e)}async _readData(){var e;for(let r=0;rn.start&&o.unshift({value:[n.start,""]}),o[o.length-1].value[0]{r.chartType==="bar"?e[n]=this.barData[n]:e[n]=this.seriesData[n]}),this.onUpdateFunc(e,this.actualValues,this.barCategories)}static addTime(e,r,n){const a=new Date(e);return typeof r=="string"?r[1]==="m"||r[2]==="m"?(r=parseInt(r,10),a.setMonth(a.getMonth()-r),e=a.getTime()):r[1]==="y"||r[2]==="y"?(r=parseInt(r,10),a.setFullYear(a.getFullYear()-r),e=a.getTime()):(e=a.getTime(),n?e-=(parseInt(r,10)||0)*6e4:e-=(parseInt(r,10)||0)*1e3):(r=r||0,e=a.getTime(),n?e-=r*6e4:e-=r*1e3),e}async exportData(e,r,n){const a={};for(let o=0;o16777215&&(this.sessionId=1),this.config.l){this.reading=!0,this.onReadingFunc&&this.onReadingFunc(!0),this.seriesData=[],this.barData=[],this.barCategories=null,await this._readData();for(let e=0;e=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Mbt(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function L1(){return L1=Object.assign?Object.assign.bind():function(t){for(var e=1;ek.createElement(e.tag,N1({key:r},e.attr),cX(e.child)))}function bp(t){return e=>k.createElement(Pbt,L1({attr:N1({},t.attr)},e),cX(t.child))}function Pbt(t){var e=r=>{var{attr:n,size:a,title:o}=t,i=Dbt(t,Ebt),s=a||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),k.createElement("svg",L1({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:l,style:N1(N1({color:t.color||r.color},r.style),t.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&k.createElement("title",null,o),t.children)};return Xj!==void 0?k.createElement(Xj.Consumer,null,r=>e(r)):e(lX)}function Ibt(t){return bp({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(t)}function Rbt(t){return bp({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(t)}function Lbt(t){return bp({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"},child:[]}]})(t)}function Nbt(t){return bp({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},child:[]}]})(t)}function Fbt(t){return bp({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128zM571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-379 28v-32c0-8.8 7.2-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.8 0-16-7.2-16-16z"},child:[]}]})(t)}function zbt(t){return bp({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"},child:[]}]})(t)}//! moment.js +//! version : 2.30.1 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var uX;function De(){return uX.apply(null,arguments)}function Bbt(t){uX=t}function Si(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function nd(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function Kt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function jI(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(Kt(t,e))return!1;return!0}function Ca(t){return t===void 0}function dl(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function i_(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function dX(t,e){var r=[],n,a=t.length;for(n=0;n>>0,n;for(n=0;n0)for(r=0;r=0;return(o?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var VI=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,S0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,aD={},Ih={};function tt(t,e,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),t&&(Ih[t]=a),e&&(Ih[e[0]]=function(){return ss(a.apply(this,arguments),e[1],e[2])}),r&&(Ih[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function Vbt(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Ybt(t){var e=t.match(VI),r,n;for(r=0,n=e.length;r=0&&S0.test(t);)t=t.replace(S0,n),S0.lastIndex=0,r-=1;return t}var Gbt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function qbt(t){var e=this._longDateFormat[t],r=this._longDateFormat[t.toUpperCase()];return e||!r?e:(this._longDateFormat[t]=r.match(VI).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[t])}var Xbt="Invalid date";function Jbt(){return this._invalidDate}var Kbt="%d",Zbt=/\d{1,2}/;function Qbt(t){return this._ordinal.replace("%d",t)}var e1t={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function t1t(t,e,r,n){var a=this._relativeTime[r];return _s(a)?a(t,e,r,n):a.replace(/%d/i,t)}function r1t(t,e){var r=this._relativeTime[t>0?"future":"past"];return _s(r)?r(e):r.replace(/%s/i,e)}var Qj={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Fo(t){return typeof t=="string"?Qj[t]||Qj[t.toLowerCase()]:void 0}function YI(t){var e={},r,n;for(n in t)Kt(t,n)&&(r=Fo(n),r&&(e[r]=t[n]));return e}var n1t={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function a1t(t){var e=[],r;for(r in t)Kt(t,r)&&e.push({unit:r,priority:n1t[r]});return e.sort(function(n,a){return n.priority-a.priority}),e}var vX=/\d/,ro=/\d\d/,mX=/\d{3}/,GI=/\d{4}/,CS=/[+-]?\d{6}/,Or=/\d\d?/,gX=/\d\d\d\d?/,_X=/\d\d\d\d\d\d?/,TS=/\d{1,3}/,qI=/\d{1,4}/,kS=/[+-]?\d{1,6}/,wp=/\d+/,ES=/[+-]?\d+/,o1t=/Z|[+-]\d\d:?\d\d/gi,DS=/Z|[+-]\d\d(?::?\d\d)?/gi,i1t=/[+-]?\d+(\.\d{1,3})?/,l_=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Sp=/^[1-9]\d?/,XI=/^([1-9]\d|\d)/,F1;F1={};function je(t,e,r){F1[t]=_s(e)?e:function(n,a){return n&&r?r:e}}function s1t(t,e){return Kt(F1,t)?F1[t](e._strict,e._locale):new RegExp(l1t(t))}function l1t(t){return al(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,r,n,a,o){return r||n||a||o}))}function al(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function So(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function jt(t){var e=+t,r=0;return e!==0&&isFinite(e)&&(r=So(e)),r}var _$={};function pr(t,e){var r,n=e,a;for(typeof t=="string"&&(t=[t]),dl(e)&&(n=function(o,i){i[e]=jt(o)}),a=t.length,r=0;r68?1900:2e3)};var yX=xp("FullYear",!0);function f1t(){return MS(this.year())}function xp(t,e){return function(r){return r!=null?(bX(this,t,r),De.updateOffset(this,e),this):vg(this,t)}}function vg(t,e){if(!t.isValid())return NaN;var r=t._d,n=t._isUTC;switch(e){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function bX(t,e,r){var n,a,o,i,s;if(!(!t.isValid()||isNaN(r))){switch(n=t._d,a=t._isUTC,e){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}o=r,i=t.month(),s=t.date(),s=s===29&&i===1&&!MS(o)?28:s,a?n.setUTCFullYear(o,i,s):n.setFullYear(o,i,s)}}function h1t(t){return t=Fo(t),_s(this[t])?this[t]():this}function p1t(t,e){if(typeof t=="object"){t=YI(t);var r=a1t(t),n,a=r.length;for(n=0;n=0?(s=new Date(t+400,e,r,n,a,o,i),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,r,n,a,o,i),s}function mg(t){var e,r;return t<100&&t>=0?(r=Array.prototype.slice.call(arguments),r[0]=t+400,e=new Date(Date.UTC.apply(null,r)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function z1(t,e,r){var n=7+e-r,a=(7+mg(t,0,n).getUTCDay()-e)%7;return-a+n-1}function kX(t,e,r,n,a){var o=(7+r-n)%7,i=z1(t,n,a),s=1+7*(e-1)+o+i,l,c;return s<=0?(l=t-1,c=jm(l)+s):s>jm(t)?(l=t+1,c=s-jm(t)):(l=t,c=s),{year:l,dayOfYear:c}}function gg(t,e,r){var n=z1(t.year(),e,r),a=Math.floor((t.dayOfYear()-n-1)/7)+1,o,i;return a<1?(i=t.year()-1,o=a+ol(i,e,r)):a>ol(t.year(),e,r)?(o=a-ol(t.year(),e,r),i=t.year()+1):(i=t.year(),o=a),{week:o,year:i}}function ol(t,e,r){var n=z1(t,e,r),a=z1(t+1,e,r);return(jm(t)-n+a)/7}tt("w",["ww",2],"wo","week");tt("W",["WW",2],"Wo","isoWeek");je("w",Or,Sp);je("ww",Or,ro);je("W",Or,Sp);je("WW",Or,ro);c_(["w","ww","W","WW"],function(t,e,r,n){e[n.substr(0,1)]=jt(t)});function E1t(t){return gg(t,this._week.dow,this._week.doy).week}var D1t={dow:0,doy:6};function M1t(){return this._week.dow}function O1t(){return this._week.doy}function $1t(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function A1t(t){var e=gg(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}tt("d",0,"do","day");tt("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)});tt("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)});tt("dddd",0,0,function(t){return this.localeData().weekdays(this,t)});tt("e",0,0,"weekday");tt("E",0,0,"isoWeekday");je("d",Or);je("e",Or);je("E",Or);je("dd",function(t,e){return e.weekdaysMinRegex(t)});je("ddd",function(t,e){return e.weekdaysShortRegex(t)});je("dddd",function(t,e){return e.weekdaysRegex(t)});c_(["dd","ddd","dddd"],function(t,e,r,n){var a=r._locale.weekdaysParse(t,n,r._strict);a!=null?e.d=a:Ot(r).invalidWeekday=t});c_(["d","e","E"],function(t,e,r,n){e[n]=jt(t)});function P1t(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function I1t(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function KI(t,e){return t.slice(e,7).concat(t.slice(0,e))}var R1t="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),EX="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),L1t="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),N1t=l_,F1t=l_,z1t=l_;function B1t(t,e){var r=Si(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?KI(r,this._week.dow):t?r[t.day()]:r}function j1t(t){return t===!0?KI(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function W1t(t){return t===!0?KI(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function H1t(t,e,r){var n,a,o,i=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=gs([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return r?e==="dddd"?(a=Jr.call(this._weekdaysParse,i),a!==-1?a:null):e==="ddd"?(a=Jr.call(this._shortWeekdaysParse,i),a!==-1?a:null):(a=Jr.call(this._minWeekdaysParse,i),a!==-1?a:null):e==="dddd"?(a=Jr.call(this._weekdaysParse,i),a!==-1||(a=Jr.call(this._shortWeekdaysParse,i),a!==-1)?a:(a=Jr.call(this._minWeekdaysParse,i),a!==-1?a:null)):e==="ddd"?(a=Jr.call(this._shortWeekdaysParse,i),a!==-1||(a=Jr.call(this._weekdaysParse,i),a!==-1)?a:(a=Jr.call(this._minWeekdaysParse,i),a!==-1?a:null)):(a=Jr.call(this._minWeekdaysParse,i),a!==-1||(a=Jr.call(this._weekdaysParse,i),a!==-1)?a:(a=Jr.call(this._shortWeekdaysParse,i),a!==-1?a:null))}function U1t(t,e,r){var n,a,o;if(this._weekdaysParseExact)return H1t.call(this,t,e,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=gs([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),r&&e==="dddd"&&this._fullWeekdaysParse[n].test(t))return n;if(r&&e==="ddd"&&this._shortWeekdaysParse[n].test(t))return n;if(r&&e==="dd"&&this._minWeekdaysParse[n].test(t))return n;if(!r&&this._weekdaysParse[n].test(t))return n}}function V1t(t){if(!this.isValid())return t!=null?this:NaN;var e=vg(this,"Day");return t!=null?(t=P1t(t,this.localeData()),this.add(t-e,"d")):e}function Y1t(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function G1t(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=I1t(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function q1t(t){return this._weekdaysParseExact?(Kt(this,"_weekdaysRegex")||ZI.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(Kt(this,"_weekdaysRegex")||(this._weekdaysRegex=N1t),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function X1t(t){return this._weekdaysParseExact?(Kt(this,"_weekdaysRegex")||ZI.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Kt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=F1t),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function J1t(t){return this._weekdaysParseExact?(Kt(this,"_weekdaysRegex")||ZI.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Kt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=z1t),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ZI(){function t(d,u){return u.length-d.length}var e=[],r=[],n=[],a=[],o,i,s,l,c;for(o=0;o<7;o++)i=gs([2e3,1]).day(o),s=al(this.weekdaysMin(i,"")),l=al(this.weekdaysShort(i,"")),c=al(this.weekdays(i,"")),e.push(s),r.push(l),n.push(c),a.push(s),a.push(l),a.push(c);e.sort(t),r.sort(t),n.sort(t),a.sort(t),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function QI(){return this.hours()%12||12}function K1t(){return this.hours()||24}tt("H",["HH",2],0,"hour");tt("h",["hh",2],0,QI);tt("k",["kk",2],0,K1t);tt("hmm",0,0,function(){return""+QI.apply(this)+ss(this.minutes(),2)});tt("hmmss",0,0,function(){return""+QI.apply(this)+ss(this.minutes(),2)+ss(this.seconds(),2)});tt("Hmm",0,0,function(){return""+this.hours()+ss(this.minutes(),2)});tt("Hmmss",0,0,function(){return""+this.hours()+ss(this.minutes(),2)+ss(this.seconds(),2)});function DX(t,e){tt(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}DX("a",!0);DX("A",!1);function MX(t,e){return e._meridiemParse}je("a",MX);je("A",MX);je("H",Or,XI);je("h",Or,Sp);je("k",Or,Sp);je("HH",Or,ro);je("hh",Or,ro);je("kk",Or,ro);je("hmm",gX);je("hmmss",_X);je("Hmm",gX);je("Hmmss",_X);pr(["H","HH"],un);pr(["k","kk"],function(t,e,r){var n=jt(t);e[un]=n===24?0:n});pr(["a","A"],function(t,e,r){r._isPm=r._locale.isPM(t),r._meridiem=t});pr(["h","hh"],function(t,e,r){e[un]=jt(t),Ot(r).bigHour=!0});pr("hmm",function(t,e,r){var n=t.length-2;e[un]=jt(t.substr(0,n)),e[li]=jt(t.substr(n)),Ot(r).bigHour=!0});pr("hmmss",function(t,e,r){var n=t.length-4,a=t.length-2;e[un]=jt(t.substr(0,n)),e[li]=jt(t.substr(n,2)),e[Js]=jt(t.substr(a)),Ot(r).bigHour=!0});pr("Hmm",function(t,e,r){var n=t.length-2;e[un]=jt(t.substr(0,n)),e[li]=jt(t.substr(n))});pr("Hmmss",function(t,e,r){var n=t.length-4,a=t.length-2;e[un]=jt(t.substr(0,n)),e[li]=jt(t.substr(n,2)),e[Js]=jt(t.substr(a))});function Z1t(t){return(t+"").toLowerCase().charAt(0)==="p"}var Q1t=/[ap]\.?m?\.?/i,ewt=xp("Hours",!0);function twt(t,e,r){return t>11?r?"pm":"PM":r?"am":"AM"}var OX={calendar:Hbt,longDateFormat:Gbt,invalidDate:Xbt,ordinal:Kbt,dayOfMonthOrdinalParse:Zbt,relativeTime:e1t,months:m1t,monthsShort:wX,week:D1t,weekdays:R1t,weekdaysMin:L1t,weekdaysShort:EX,meridiemParse:Q1t},Ir={},Pv={},_g;function rwt(t,e){var r,n=Math.min(t.length,e.length);for(r=0;r0;){if(a=OS(o.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&rwt(o,n)>=r-1)break;r--}e++}return _g}function awt(t){return!!(t&&t.match("^[^/\\\\]*$"))}function OS(t){var e=null,r;if(Ir[t]===void 0&&typeof Gn<"u"&&Gn&&Gn.exports&&awt(t))try{e=_g._abbr,r=require,r("./locale/"+t),Cc(e)}catch{Ir[t]=null}return Ir[t]}function Cc(t,e){var r;return t&&(Ca(e)?r=bl(t):r=eR(t,e),r?_g=r:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),_g._abbr}function eR(t,e){if(e!==null){var r,n=OX;if(e.abbr=t,Ir[t]!=null)hX("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Ir[t]._config;else if(e.parentLocale!=null)if(Ir[e.parentLocale]!=null)n=Ir[e.parentLocale]._config;else if(r=OS(e.parentLocale),r!=null)n=r._config;else return Pv[e.parentLocale]||(Pv[e.parentLocale]=[]),Pv[e.parentLocale].push({name:t,config:e}),null;return Ir[t]=new UI(m$(n,e)),Pv[t]&&Pv[t].forEach(function(a){eR(a.name,a.config)}),Cc(t),Ir[t]}else return delete Ir[t],null}function owt(t,e){if(e!=null){var r,n,a=OX;Ir[t]!=null&&Ir[t].parentLocale!=null?Ir[t].set(m$(Ir[t]._config,e)):(n=OS(t),n!=null&&(a=n._config),e=m$(a,e),n==null&&(e.abbr=t),r=new UI(e),r.parentLocale=Ir[t],Ir[t]=r),Cc(t)}else Ir[t]!=null&&(Ir[t].parentLocale!=null?(Ir[t]=Ir[t].parentLocale,t===Cc()&&Cc(t)):Ir[t]!=null&&delete Ir[t]);return Ir[t]}function bl(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return _g;if(!Si(t)){if(e=OS(t),e)return e;t=[t]}return nwt(t)}function iwt(){return g$(Ir)}function tR(t){var e,r=t._a;return r&&Ot(t).overflow===-2&&(e=r[Xs]<0||r[Xs]>11?Xs:r[Xi]<1||r[Xi]>JI(r[Xn],r[Xs])?Xi:r[un]<0||r[un]>24||r[un]===24&&(r[li]!==0||r[Js]!==0||r[Xu]!==0)?un:r[li]<0||r[li]>59?li:r[Js]<0||r[Js]>59?Js:r[Xu]<0||r[Xu]>999?Xu:-1,Ot(t)._overflowDayOfYear&&(eXi)&&(e=Xi),Ot(t)._overflowWeeks&&e===-1&&(e=u1t),Ot(t)._overflowWeekday&&e===-1&&(e=d1t),Ot(t).overflow=e),t}var swt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lwt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cwt=/Z|[+-]\d\d(?::?\d\d)?/,x0=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],oD=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],uwt=/^\/?Date\((-?\d+)/i,dwt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,fwt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function $X(t){var e,r,n=t._i,a=swt.exec(n)||lwt.exec(n),o,i,s,l,c=x0.length,d=oD.length;if(a){for(Ot(t).iso=!0,e=0,r=c;ejm(i)||t._dayOfYear===0)&&(Ot(t)._overflowDayOfYear=!0),r=mg(i,0,t._dayOfYear),t._a[Xs]=r.getUTCMonth(),t._a[Xi]=r.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=n[e]=a[e];for(;e<7;e++)t._a[e]=n[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[un]===24&&t._a[li]===0&&t._a[Js]===0&&t._a[Xu]===0&&(t._nextDay=!0,t._a[un]=0),t._d=(t._useUTC?mg:k1t).apply(null,n),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[un]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==o&&(Ot(t).weekdayMismatch=!0)}}function bwt(t){var e,r,n,a,o,i,s,l,c;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(o=1,i=4,r=ph(e.GG,t._a[Xn],gg(Mr(),1,4).year),n=ph(e.W,1),a=ph(e.E,1),(a<1||a>7)&&(l=!0)):(o=t._locale._week.dow,i=t._locale._week.doy,c=gg(Mr(),o,i),r=ph(e.gg,t._a[Xn],c.year),n=ph(e.w,c.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+o,(e.e<0||e.e>6)&&(l=!0)):a=o),n<1||n>ol(r,o,i)?Ot(t)._overflowWeeks=!0:l!=null?Ot(t)._overflowWeekday=!0:(s=kX(r,n,a,o,i),t._a[Xn]=s.year,t._dayOfYear=s.dayOfYear)}De.ISO_8601=function(){};De.RFC_2822=function(){};function nR(t){if(t._f===De.ISO_8601){$X(t);return}if(t._f===De.RFC_2822){AX(t);return}t._a=[],Ot(t).empty=!0;var e=""+t._i,r,n,a,o,i,s=e.length,l=0,c,d;for(a=pX(t._f,t._locale).match(VI)||[],d=a.length,r=0;r0&&Ot(t).unusedInput.push(i),e=e.slice(e.indexOf(n)+n.length),l+=n.length),Ih[o]?(n?Ot(t).empty=!1:Ot(t).unusedTokens.push(o),c1t(o,n,t)):t._strict&&!n&&Ot(t).unusedTokens.push(o);Ot(t).charsLeftOver=s-l,e.length>0&&Ot(t).unusedInput.push(e),t._a[un]<=12&&Ot(t).bigHour===!0&&t._a[un]>0&&(Ot(t).bigHour=void 0),Ot(t).parsedDateParts=t._a.slice(0),Ot(t).meridiem=t._meridiem,t._a[un]=wwt(t._locale,t._a[un],t._meridiem),c=Ot(t).era,c!==null&&(t._a[Xn]=t._locale.erasConvertYear(c,t._a[Xn])),rR(t),tR(t)}function wwt(t,e,r){var n;return r==null?e:t.meridiemHour!=null?t.meridiemHour(e,r):(t.isPM!=null&&(n=t.isPM(r),n&&e<12&&(e+=12),!n&&e===12&&(e=0)),e)}function Swt(t){var e,r,n,a,o,i,s=!1,l=t._f.length;if(l===0){Ot(t).invalidFormat=!0,t._d=new Date(NaN);return}for(a=0;athis?this:t:xS()});function RX(t,e){var r,n;if(e.length===1&&Si(e[0])&&(e=e[0]),!e.length)return Mr();for(r=e[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Hwt(){if(!Ca(this._isDSTShifted))return this._isDSTShifted;var t={},e;return HI(t,this),t=PX(t),t._a?(e=t._isUTC?gs(t._a):Mr(t._a),this._isDSTShifted=this.isValid()&&Iwt(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Uwt(){return this.isValid()?!this._isUTC:!1}function Vwt(){return this.isValid()?this._isUTC:!1}function NX(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ywt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gwt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ki(t,e){var r=t,n=null,a,o,i;return Gb(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:dl(t)||!isNaN(+t)?(r={},e?r[e]=+t:r.milliseconds=+t):(n=Ywt.exec(t))?(a=n[1]==="-"?-1:1,r={y:0,d:jt(n[Xi])*a,h:jt(n[un])*a,m:jt(n[li])*a,s:jt(n[Js])*a,ms:jt(y$(n[Xu]*1e3))*a}):(n=Gwt.exec(t))?(a=n[1]==="-"?-1:1,r={y:fu(n[2],a),M:fu(n[3],a),w:fu(n[4],a),d:fu(n[5],a),h:fu(n[6],a),m:fu(n[7],a),s:fu(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=qwt(Mr(r.from),Mr(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),o=new $S(r),Gb(t)&&Kt(t,"_locale")&&(o._locale=t._locale),Gb(t)&&Kt(t,"_isValid")&&(o._isValid=t._isValid),o}ki.fn=$S.prototype;ki.invalid=Pwt;function fu(t,e){var r=t&&parseFloat(t.replace(",","."));return(isNaN(r)?0:r)*e}function t9(t,e){var r={};return r.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(r.months,"M").isAfter(e)&&--r.months,r.milliseconds=+e-+t.clone().add(r.months,"M"),r}function qwt(t,e){var r;return t.isValid()&&e.isValid()?(e=oR(e,t),t.isBefore(e)?r=t9(t,e):(r=t9(e,t),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function FX(t,e){return function(r,n){var a,o;return n!==null&&!isNaN(+n)&&(hX(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=r,r=n,n=o),a=ki(r,n),zX(this,a,t),this}}function zX(t,e,r,n){var a=e._milliseconds,o=y$(e._days),i=y$(e._months);t.isValid()&&(n=n??!0,i&&xX(t,vg(t,"Month")+i*r),o&&bX(t,"Date",vg(t,"Date")+o*r),a&&t._d.setTime(t._d.valueOf()+a*r),n&&De.updateOffset(t,o||i))}var Xwt=FX(1,"add"),Jwt=FX(-1,"subtract");function BX(t){return typeof t=="string"||t instanceof String}function Kwt(t){return xi(t)||i_(t)||BX(t)||dl(t)||Qwt(t)||Zwt(t)||t===null||t===void 0}function Zwt(t){var e=nd(t)&&!jI(t),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,o,i=n.length;for(a=0;ar.valueOf():r.valueOf()9999?Yb(r,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_s(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Yb(r,"Z")):Yb(r,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hSt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",r,n,a,o;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),r="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",o=e+'[")]',this.format(r+n+a+o)}function pSt(t){t||(t=this.isUtc()?De.defaultFormatUtc:De.defaultFormat);var e=Yb(this,t);return this.localeData().postformat(e)}function vSt(t,e){return this.isValid()&&(xi(t)&&t.isValid()||Mr(t).isValid())?ki({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function mSt(t){return this.from(Mr(),t)}function gSt(t,e){return this.isValid()&&(xi(t)&&t.isValid()||Mr(t).isValid())?ki({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function _St(t){return this.to(Mr(),t)}function jX(t){var e;return t===void 0?this._locale._abbr:(e=bl(t),e!=null&&(this._locale=e),this)}var WX=No("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function HX(){return this._locale}var B1=1e3,Rh=60*B1,j1=60*Rh,UX=(365*400+97)*24*j1;function Lh(t,e){return(t%e+e)%e}function VX(t,e,r){return t<100&&t>=0?new Date(t+400,e,r)-UX:new Date(t,e,r).valueOf()}function YX(t,e,r){return t<100&&t>=0?Date.UTC(t+400,e,r)-UX:Date.UTC(t,e,r)}function ySt(t){var e,r;if(t=Fo(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?YX:VX,t){case"year":e=r(this.year(),0,1);break;case"quarter":e=r(this.year(),this.month()-this.month()%3,1);break;case"month":e=r(this.year(),this.month(),1);break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=r(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Lh(e+(this._isUTC?0:this.utcOffset()*Rh),j1);break;case"minute":e=this._d.valueOf(),e-=Lh(e,Rh);break;case"second":e=this._d.valueOf(),e-=Lh(e,B1);break}return this._d.setTime(e),De.updateOffset(this,!0),this}function bSt(t){var e,r;if(t=Fo(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?YX:VX,t){case"year":e=r(this.year()+1,0,1)-1;break;case"quarter":e=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=r(this.year(),this.month()+1,1)-1;break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=j1-Lh(e+(this._isUTC?0:this.utcOffset()*Rh),j1)-1;break;case"minute":e=this._d.valueOf(),e+=Rh-Lh(e,Rh)-1;break;case"second":e=this._d.valueOf(),e+=B1-Lh(e,B1)-1;break}return this._d.setTime(e),De.updateOffset(this,!0),this}function wSt(){return this._d.valueOf()-(this._offset||0)*6e4}function SSt(){return Math.floor(this.valueOf()/1e3)}function xSt(){return new Date(this.valueOf())}function CSt(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function TSt(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function kSt(){return this.isValid()?this.toISOString():null}function ESt(){return WI(this)}function DSt(){return vc({},Ot(this))}function MSt(){return Ot(this).overflow}function OSt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}tt("N",0,0,"eraAbbr");tt("NN",0,0,"eraAbbr");tt("NNN",0,0,"eraAbbr");tt("NNNN",0,0,"eraName");tt("NNNNN",0,0,"eraNarrow");tt("y",["y",1],"yo","eraYear");tt("y",["yy",2],0,"eraYear");tt("y",["yyy",3],0,"eraYear");tt("y",["yyyy",4],0,"eraYear");je("N",iR);je("NN",iR);je("NNN",iR);je("NNNN",jSt);je("NNNNN",WSt);pr(["N","NN","NNN","NNNN","NNNNN"],function(t,e,r,n){var a=r._locale.erasParse(t,n,r._strict);a?Ot(r).era=a:Ot(r).invalidEra=t});je("y",wp);je("yy",wp);je("yyy",wp);je("yyyy",wp);je("yo",HSt);pr(["y","yy","yyy","yyyy"],Xn);pr(["yo"],function(t,e,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=t.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?e[Xn]=r._locale.eraYearOrdinalParse(t,a):e[Xn]=parseInt(t,10)});function $St(t,e){var r,n,a,o=this._eras||bl("en")._eras;for(r=0,n=o.length;r=0)return o[n]}function PSt(t,e){var r=t.since<=t.until?1:-1;return e===void 0?De(t.since).year():De(t.since).year()+(e-t.offset)*r}function ISt(){var t,e,r,n=this.localeData().eras();for(t=0,e=n.length;to&&(e=o),JSt.call(this,t,e,r,n,a))}function JSt(t,e,r,n,a){var o=kX(t,e,r,n,a),i=mg(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}tt("Q",0,"Qo","quarter");je("Q",vX);pr("Q",function(t,e){e[Xs]=(jt(t)-1)*3});function KSt(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}tt("D",["DD",2],"Do","date");je("D",Or,Sp);je("DD",Or,ro);je("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});pr(["D","DD"],Xi);pr("Do",function(t,e){e[Xi]=jt(t.match(Or)[0])});var qX=xp("Date",!0);tt("DDD",["DDDD",3],"DDDo","dayOfYear");je("DDD",TS);je("DDDD",mX);pr(["DDD","DDDD"],function(t,e,r){r._dayOfYear=jt(t)});function ZSt(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}tt("m",["mm",2],0,"minute");je("m",Or,XI);je("mm",Or,ro);pr(["m","mm"],li);var QSt=xp("Minutes",!1);tt("s",["ss",2],0,"second");je("s",Or,XI);je("ss",Or,ro);pr(["s","ss"],Js);var ext=xp("Seconds",!1);tt("S",0,0,function(){return~~(this.millisecond()/100)});tt(0,["SS",2],0,function(){return~~(this.millisecond()/10)});tt(0,["SSS",3],0,"millisecond");tt(0,["SSSS",4],0,function(){return this.millisecond()*10});tt(0,["SSSSS",5],0,function(){return this.millisecond()*100});tt(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});tt(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});tt(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});tt(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});je("S",TS,vX);je("SS",TS,ro);je("SSS",TS,mX);var mc,XX;for(mc="SSSS";mc.length<=9;mc+="S")je(mc,wp);function txt(t,e){e[Xu]=jt(("0."+t)*1e3)}for(mc="S";mc.length<=9;mc+="S")pr(mc,txt);XX=xp("Milliseconds",!1);tt("z",0,0,"zoneAbbr");tt("zz",0,0,"zoneName");function rxt(){return this._isUTC?"UTC":""}function nxt(){return this._isUTC?"Coordinated Universal Time":""}var xe=s_.prototype;xe.add=Xwt;xe.calendar=rSt;xe.clone=nSt;xe.diff=uSt;xe.endOf=bSt;xe.format=pSt;xe.from=vSt;xe.fromNow=mSt;xe.to=gSt;xe.toNow=_St;xe.get=h1t;xe.invalidAt=MSt;xe.isAfter=aSt;xe.isBefore=oSt;xe.isBetween=iSt;xe.isSame=sSt;xe.isSameOrAfter=lSt;xe.isSameOrBefore=cSt;xe.isValid=ESt;xe.lang=WX;xe.locale=jX;xe.localeData=HX;xe.max=Ewt;xe.min=kwt;xe.parsingFlags=DSt;xe.set=p1t;xe.startOf=ySt;xe.subtract=Jwt;xe.toArray=CSt;xe.toObject=TSt;xe.toDate=xSt;xe.toISOString=fSt;xe.inspect=hSt;typeof Symbol<"u"&&Symbol.for!=null&&(xe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});xe.toJSON=kSt;xe.toString=dSt;xe.unix=SSt;xe.valueOf=wSt;xe.creationData=OSt;xe.eraName=ISt;xe.eraNarrow=RSt;xe.eraAbbr=LSt;xe.eraYear=NSt;xe.year=yX;xe.isLeapYear=f1t;xe.weekYear=USt;xe.isoWeekYear=VSt;xe.quarter=xe.quarters=KSt;xe.month=CX;xe.daysInMonth=x1t;xe.week=xe.weeks=$1t;xe.isoWeek=xe.isoWeeks=A1t;xe.weeksInYear=qSt;xe.weeksInWeekYear=XSt;xe.isoWeeksInYear=YSt;xe.isoWeeksInISOWeekYear=GSt;xe.date=qX;xe.day=xe.days=V1t;xe.weekday=Y1t;xe.isoWeekday=G1t;xe.dayOfYear=ZSt;xe.hour=xe.hours=ewt;xe.minute=xe.minutes=QSt;xe.second=xe.seconds=ext;xe.millisecond=xe.milliseconds=XX;xe.utcOffset=Lwt;xe.utc=Fwt;xe.local=zwt;xe.parseZone=Bwt;xe.hasAlignedHourOffset=jwt;xe.isDST=Wwt;xe.isLocal=Uwt;xe.isUtcOffset=Vwt;xe.isUtc=NX;xe.isUTC=NX;xe.zoneAbbr=rxt;xe.zoneName=nxt;xe.dates=No("dates accessor is deprecated. Use date instead.",qX);xe.months=No("months accessor is deprecated. Use month instead",CX);xe.years=No("years accessor is deprecated. Use year instead",yX);xe.zone=No("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Nwt);xe.isDSTShifted=No("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Hwt);function axt(t){return Mr(t*1e3)}function oxt(){return Mr.apply(null,arguments).parseZone()}function JX(t){return t}var Zt=UI.prototype;Zt.calendar=Ubt;Zt.longDateFormat=qbt;Zt.invalidDate=Jbt;Zt.ordinal=Qbt;Zt.preparse=JX;Zt.postformat=JX;Zt.relativeTime=t1t;Zt.pastFuture=r1t;Zt.set=Wbt;Zt.eras=$St;Zt.erasParse=ASt;Zt.erasConvertYear=PSt;Zt.erasAbbrRegex=zSt;Zt.erasNameRegex=FSt;Zt.erasNarrowRegex=BSt;Zt.months=y1t;Zt.monthsShort=b1t;Zt.monthsParse=S1t;Zt.monthsRegex=T1t;Zt.monthsShortRegex=C1t;Zt.week=E1t;Zt.firstDayOfYear=O1t;Zt.firstDayOfWeek=M1t;Zt.weekdays=B1t;Zt.weekdaysMin=W1t;Zt.weekdaysShort=j1t;Zt.weekdaysParse=U1t;Zt.weekdaysRegex=q1t;Zt.weekdaysShortRegex=X1t;Zt.weekdaysMinRegex=J1t;Zt.isPM=Z1t;Zt.meridiem=twt;function W1(t,e,r,n){var a=bl(),o=gs().set(n,e);return a[r](o,t)}function KX(t,e,r){if(dl(t)&&(e=t,t=void 0),t=t||"",e!=null)return W1(t,e,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=W1(t,n,r,"month");return a}function lR(t,e,r,n){typeof t=="boolean"?(dl(e)&&(r=e,e=void 0),e=e||""):(e=t,r=e,t=!1,dl(e)&&(r=e,e=void 0),e=e||"");var a=bl(),o=t?a._week.dow:0,i,s=[];if(r!=null)return W1(e,(r+o)%7,n,"day");for(i=0;i<7;i++)s[i]=W1(e,(i+o)%7,n,"day");return s}function ixt(t,e){return KX(t,e,"months")}function sxt(t,e){return KX(t,e,"monthsShort")}function lxt(t,e,r){return lR(t,e,r,"weekdays")}function cxt(t,e,r){return lR(t,e,r,"weekdaysShort")}function uxt(t,e,r){return lR(t,e,r,"weekdaysMin")}Cc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,r=jt(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+r}});De.lang=No("moment.lang is deprecated. Use moment.locale instead.",Cc);De.langData=No("moment.langData is deprecated. Use moment.localeData instead.",bl);var Is=Math.abs;function dxt(){var t=this._data;return this._milliseconds=Is(this._milliseconds),this._days=Is(this._days),this._months=Is(this._months),t.milliseconds=Is(t.milliseconds),t.seconds=Is(t.seconds),t.minutes=Is(t.minutes),t.hours=Is(t.hours),t.months=Is(t.months),t.years=Is(t.years),this}function ZX(t,e,r,n){var a=ki(e,r);return t._milliseconds+=n*a._milliseconds,t._days+=n*a._days,t._months+=n*a._months,t._bubble()}function fxt(t,e){return ZX(this,t,e,1)}function hxt(t,e){return ZX(this,t,e,-1)}function r9(t){return t<0?Math.floor(t):Math.ceil(t)}function pxt(){var t=this._milliseconds,e=this._days,r=this._months,n=this._data,a,o,i,s,l;return t>=0&&e>=0&&r>=0||t<=0&&e<=0&&r<=0||(t+=r9(w$(r)+e)*864e5,e=0,r=0),n.milliseconds=t%1e3,a=So(t/1e3),n.seconds=a%60,o=So(a/60),n.minutes=o%60,i=So(o/60),n.hours=i%24,e+=So(i/24),l=So(QX(e)),r+=l,e-=r9(w$(l)),s=So(r/12),r%=12,n.days=e,n.months=r,n.years=s,this}function QX(t){return t*4800/146097}function w$(t){return t*146097/4800}function vxt(t){if(!this.isValid())return NaN;var e,r,n=this._milliseconds;if(t=Fo(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+n/864e5,r=this._months+QX(e),t){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(e=this._days+Math.round(w$(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return e*24+n/36e5;case"minute":return e*1440+n/6e4;case"second":return e*86400+n/1e3;case"millisecond":return Math.floor(e*864e5)+n;default:throw new Error("Unknown unit "+t)}}function wl(t){return function(){return this.as(t)}}var eJ=wl("ms"),mxt=wl("s"),gxt=wl("m"),_xt=wl("h"),yxt=wl("d"),bxt=wl("w"),wxt=wl("M"),Sxt=wl("Q"),xxt=wl("y"),Cxt=eJ;function Txt(){return ki(this)}function kxt(t){return t=Fo(t),this.isValid()?this[t+"s"]():NaN}function Wd(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ext=Wd("milliseconds"),Dxt=Wd("seconds"),Mxt=Wd("minutes"),Oxt=Wd("hours"),$xt=Wd("days"),Axt=Wd("months"),Pxt=Wd("years");function Ixt(){return So(this.days()/7)}var Us=Math.round,Ch={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Rxt(t,e,r,n,a){return a.relativeTime(e||1,!!r,t,n)}function Lxt(t,e,r,n){var a=ki(t).abs(),o=Us(a.as("s")),i=Us(a.as("m")),s=Us(a.as("h")),l=Us(a.as("d")),c=Us(a.as("M")),d=Us(a.as("w")),u=Us(a.as("y")),f=o<=r.ss&&["s",o]||o0,f[4]=n,Rxt.apply(null,f)}function Nxt(t){return t===void 0?Us:typeof t=="function"?(Us=t,!0):!1}function Fxt(t,e){return Ch[t]===void 0?!1:e===void 0?Ch[t]:(Ch[t]=e,t==="s"&&(Ch.ss=e-1),!0)}function zxt(t,e){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Ch,a,o;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(r=t),typeof e=="object"&&(n=Object.assign({},Ch,e),e.s!=null&&e.ss==null&&(n.ss=e.s-1)),a=this.localeData(),o=Lxt(this,!r,n,a),r&&(o=a.pastFuture(+this,o)),a.postformat(o)}var iD=Math.abs;function $f(t){return(t>0)-(t<0)||+t}function PS(){if(!this.isValid())return this.localeData().invalidDate();var t=iD(this._milliseconds)/1e3,e=iD(this._days),r=iD(this._months),n,a,o,i,s=this.asSeconds(),l,c,d,u;return s?(n=So(t/60),a=So(n/60),t%=60,n%=60,o=So(r/12),r%=12,i=t?t.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=$f(this._months)!==$f(s)?"-":"",d=$f(this._days)!==$f(s)?"-":"",u=$f(this._milliseconds)!==$f(s)?"-":"",l+"P"+(o?c+o+"Y":"")+(r?c+r+"M":"")+(e?d+e+"D":"")+(a||n||t?"T":"")+(a?u+a+"H":"")+(n?u+n+"M":"")+(t?u+i+"S":"")):"P0D"}var Vt=$S.prototype;Vt.isValid=Awt;Vt.abs=dxt;Vt.add=fxt;Vt.subtract=hxt;Vt.as=vxt;Vt.asMilliseconds=eJ;Vt.asSeconds=mxt;Vt.asMinutes=gxt;Vt.asHours=_xt;Vt.asDays=yxt;Vt.asWeeks=bxt;Vt.asMonths=wxt;Vt.asQuarters=Sxt;Vt.asYears=xxt;Vt.valueOf=Cxt;Vt._bubble=pxt;Vt.clone=Txt;Vt.get=kxt;Vt.milliseconds=Ext;Vt.seconds=Dxt;Vt.minutes=Mxt;Vt.hours=Oxt;Vt.days=$xt;Vt.weeks=Ixt;Vt.months=Axt;Vt.years=Pxt;Vt.humanize=zxt;Vt.toISOString=PS;Vt.toString=PS;Vt.toJSON=PS;Vt.locale=jX;Vt.localeData=HX;Vt.toIsoString=No("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",PS);Vt.lang=WX;tt("X",0,0,"unix");tt("x",0,0,"valueOf");je("x",ES);je("X",i1t);pr("X",function(t,e,r){r._d=new Date(parseFloat(t)*1e3)});pr("x",function(t,e,r){r._d=new Date(jt(t))});//! moment.js +De.version="2.30.1";Bbt(Mr);De.fn=xe;De.min=Dwt;De.max=Mwt;De.now=Owt;De.utc=gs;De.unix=axt;De.months=ixt;De.isDate=i_;De.locale=Cc;De.invalid=xS;De.duration=ki;De.isMoment=xi;De.weekdays=lxt;De.parseZone=oxt;De.localeData=bl;De.isDuration=Gb;De.monthsShort=sxt;De.weekdaysMin=uxt;De.defineLocale=eR;De.updateLocale=owt;De.locales=iwt;De.weekdaysShort=cxt;De.normalizeUnits=Fo;De.relativeTimeRounding=Nxt;De.relativeTimeThreshold=Fxt;De.calendarFormat=tSt;De.prototype=xe;De.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};//! moment.js locale configuration +//! locale : English (United Kingdom) [en-gb] +//! author : Chris Gedrim : https://github.com/chrisgedrim +De.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,r=~~(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+r},week:{dow:1,doy:4}});//! moment.js locale configuration +//! locale : Spanish [es] +//! author : Julio Napurí : https://github.com/julionc +var n9="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Bxt="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),sD=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a9=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;De.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,e){return t?/-MMM-/.test(e)?Bxt[t.month()]:n9[t.month()]:n9},monthsRegex:a9,monthsShortRegex:a9,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:sD,longMonthsParse:sD,shortMonthsParse:sD,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});//! moment.js locale configuration +//! locale : French [fr] +//! author : John Fischer : https://github.com/jfroffice +var jxt=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Wxt=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,o9=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,lD=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];De.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:o9,monthsShortRegex:o9,monthsStrictRegex:jxt,monthsShortStrictRegex:Wxt,monthsParse:lD,longMonthsParse:lD,shortMonthsParse:lD,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(t===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(t===1?"er":"e");case"w":case"W":return t+(t===1?"re":"e")}},week:{dow:1,doy:4}});//! moment.js locale configuration +//! locale : Polish [pl] +//! author : Rafal Hirsz : https://github.com/evoL +var i9="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),Hxt="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),cD=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function Af(t){return t%10<5&&t%10>1&&~~(t/10)%10!==1}function Jl(t,e,r){var n=t+" ";switch(r){case"ss":return n+(Af(t)?"sekundy":"sekund");case"m":return e?"minuta":"minutę";case"mm":return n+(Af(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return n+(Af(t)?"godziny":"godzin");case"ww":return n+(Af(t)?"tygodnie":"tygodni");case"MM":return n+(Af(t)?"miesiące":"miesięcy");case"yy":return n+(Af(t)?"lata":"lat")}}De.defineLocale("pl",{months:function(t,e){return t?/D MMMM/.test(e)?Hxt[t.month()]:i9[t.month()]:i9},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:cD,longMonthsParse:cD,shortMonthsParse:cD,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:Jl,m:Jl,mm:Jl,h:Jl,hh:Jl,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:Jl,M:"miesiąc",MM:Jl,y:"rok",yy:Jl},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration +//! locale : Portuguese [pt] +//! author : Jefferson : https://github.com/jalex79 +De.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return this.day()===0||this.day()===6?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration +//! locale : Italian [it] +//! author : Lorenzo : https://github.com/aliem +//! author: Mattia Larentis: https://github.com/nostalgiaz +//! author: Marco : https://github.com/Manfre98 +De.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration +//! locale : Dutch [nl] +//! author : Joris Röling : https://github.com/jorisroling +//! author : Jacob Middag : https://github.com/middagj +var s9="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Uxt="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),uD=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],l9=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;De.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,e){return t?/-MMM-/.test(e)?Uxt[t.month()]:s9[t.month()]:s9},monthsRegex:l9,monthsShortRegex:l9,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:uD,longMonthsParse:uD,shortMonthsParse:uD,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(t===1||t===8||t>=20?"ste":"de")},week:{dow:1,doy:4}});//! moment.js locale configuration +//! locale : Russian [ru] +//! author : Viktorminator : https://github.com/Viktorminator +//! author : Menelion Elensúle : https://github.com/Oire +//! author : Коренберг Марк : https://github.com/socketpair +function Vxt(t,e){var r=t.split("_");return e%10===1&&e%100!==11?r[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?r[1]:r[2]}function Kl(t,e,r){var n={ss:e?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:e?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return r==="m"?e?"минута":"минуту":t+" "+Vxt(n[r],+t)}var dD=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];De.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:dD,longMonthsParse:dD,shortMonthsParse:dD,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(t){if(t.week()!==this.week())switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},lastWeek:function(t){if(t.week()!==this.week())switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:Kl,m:Kl,mm:Kl,h:"час",hh:Kl,d:"день",dd:Kl,w:"неделя",ww:Kl,M:"месяц",MM:Kl,y:"год",yy:Kl},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,r){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}});//! moment.js locale configuration +//! locale : Chinese (China) [zh-cn] +//! author : suupic : https://github.com/suupic +//! author : Zeno Zeng : https://github.com/zenozeng +//! author : uu109 : https://github.com/uu109 +De.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return t===12&&(t=0),e==="凌晨"||e==="早上"||e==="上午"?t:e==="下午"||e==="晚上"?t+12:t>=11?t:t+12},meridiem:function(t,e,r){var n=t*100+e;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(t){return t.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(t){return this.week()!==t.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});//! moment.js locale configuration +//! locale : German [de] +//! author : lluchs : https://github.com/lluchs +//! author: Menelion Elensúle: https://github.com/Oire +//! author : Mikolaj Dadela : https://github.com/mik01aj +function Rs(t,e,r,n){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?a[r][0]:a[r][1]}De.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Rs,mm:"%d Minuten",h:Rs,hh:"%d Stunden",d:Rs,dd:Rs,w:Rs,ww:"%d Wochen",M:Rs,MM:Rs,y:Rs,yy:Rs},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration +//! locale : Ukrainian [uk] +//! author : zemlanin : https://github.com/zemlanin +//! Author : Menelion Elensúle : https://github.com/Oire +function Yxt(t,e){var r=t.split("_");return e%10===1&&e%100!==11?r[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?r[1]:r[2]}function hu(t,e,r){var n={ss:e?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:e?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:e?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return r==="m"?e?"хвилина":"хвилину":r==="h"?e?"година":"годину":t+" "+Yxt(n[r],+t)}function Gxt(t,e){var r={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},n;return t===!0?r.nominative.slice(1,7).concat(r.nominative.slice(0,1)):t?(n=/(\[[ВвУу]\]) ?dddd/.test(e)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(e)?"genitive":"nominative",r[n][t.day()]):r.nominative}function Pf(t){return function(){return t+"о"+(this.hours()===11?"б":"")+"] LT"}}De.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:Gxt,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:Pf("[Сьогодні "),nextDay:Pf("[Завтра "),lastDay:Pf("[Вчора "),nextWeek:Pf("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return Pf("[Минулої] dddd [").call(this);case 1:case 2:case 4:return Pf("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:hu,m:hu,mm:hu,h:"годину",hh:hu,d:"день",dd:hu,M:"місяць",MM:hu,y:"рік",yy:hu},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(t){return/^(дня|вечора)$/.test(t)},meridiem:function(t,e,r){return t<4?"ночі":t<12?"ранку":t<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}});var C0={};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var S$=function(t,e){return S$=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},S$(t,e)};function le(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");S$(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var x$=function(){return x$=Object.assign||function(e){for(var r,n=1,a=arguments.length;n=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,r,o):i(e,r))||o);return a>3&&o&&Object.defineProperty(e,r,o),o}function Jxt(t,e){return function(r,n){e(r,n,t)}}function Kxt(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function Zxt(t,e,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(d){try{c(n.next(d))}catch(u){i(u)}}function l(d){try{c(n.throw(d))}catch(u){i(u)}}function c(d){d.done?o(d.value):a(d.value).then(s,l)}c((n=n.apply(t,e||[])).next())})}function Qxt(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(c){return function(d){return l([c,d])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,a=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function tJ(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),a,o=[],i;try{for(;(e===void 0||e-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(s){i={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return o}function tCt(){for(var t=[],e=0;e1||s(f,p)})})}function s(f,p){try{l(n[f](p))}catch(m){u(o[0][3],m)}}function l(f){f.value instanceof yg?Promise.resolve(f.value.v).then(c,d):u(o[0][2],f)}function c(f){s("next",f)}function d(f){s("throw",f)}function u(f,p){f(p),o.shift(),o.length&&s(o[0][0],o[0][1])}}function oCt(t){var e,r;return e={},n("next"),n("throw",function(a){throw a}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(a,o){e[a]=t[a]?function(i){return(r=!r)?{value:yg(t[a](i)),done:a==="return"}:o?o(i):i}:o}}function iCt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof C$=="function"?C$(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(i){return new Promise(function(s,l){i=t[o](i),a(s,l,i.done,i.value)})}}function a(o,i,s,l){Promise.resolve(l).then(function(c){o({value:c,done:s})},i)}}function sCt(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var lCt=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function cCt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&cR(e,t,r);return lCt(e,t),e}function uCt(t){return t&&t.__esModule?t:{default:t}}function dCt(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function fCt(t,e,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(t,r):a?a.value=r:e.set(t,r),r}const rJ=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return x$},__asyncDelegator:oCt,__asyncGenerator:aCt,__asyncValues:iCt,__await:yg,__awaiter:Zxt,__classPrivateFieldGet:dCt,__classPrivateFieldSet:fCt,__createBinding:cR,__decorate:Xxt,__exportStar:eCt,__extends:le,__generator:Qxt,__importDefault:uCt,__importStar:cCt,__makeTemplateObject:sCt,__metadata:Kxt,__param:Jxt,__read:tJ,__rest:qxt,__spread:tCt,__spreadArray:nCt,__spreadArrays:rCt,__values:C$},Symbol.toStringTag,{value:"Module"}));var Ls={},Ns={},fD={},c9;function hCt(){return c9||(c9=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=1,r=function(){return"".concat(e++)};t.default=r}(fD)),fD}var Rv={},Lv={},hD={},u9;function nJ(){return u9||(u9=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,o=null;return function(){for(var i=this,s=arguments.length,l=new Array(s),c=0;c"u"&&typeof self<"u"?ut.worker=!0:!ut.hasGlobalWindow||"Deno"in window?(ut.node=!0,ut.svgSupported=!0):MCt(navigator.userAgent,ut);function MCt(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),i=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),o&&(r.edge=!0,r.version=o[1],r.newEdge=+o[1].split(".")[0]>18),i&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}var dR=12,aJ="sans-serif",Lc=dR+"px "+aJ,OCt=20,$Ct=100,ACt="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function PCt(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r=0)s=i*r.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[c]+":0",n[1-l]+":auto",a[1-c]+":auto",""].join("!important;"),t.appendChild(i),r.push(i)}return r}function nTt(t,e,r){for(var n=r?"invTrans":"trans",a=e[n],o=e.srcCoords,i=[],s=[],l=!0,c=0;c<4;c++){var d=t[c].getBoundingClientRect(),u=2*c,f=d.left,p=d.top;i.push(f,p),l=l&&o&&f===o[u]&&p===o[u+1],s.push(t[c].offsetLeft,t[c].offsetTop)}return l&&a?a:(e.srcCoords=i,e[n]=r?C9(s,i):C9(i,s))}function _J(t){return t.nodeName.toUpperCase()==="CANVAS"}var aTt=/([&<>"'])/g,oTt={"&":"&","<":"<",">":">",'"':""","'":"'"};function Yn(t){return t==null?"":(t+"").replace(aTt,function(e,r){return oTt[r]})}var iTt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mD=[],sTt=ut.browser.firefox&&+ut.browser.version.split(".")[0]<39;function M$(t,e,r,n){return r=r||{},n?k9(t,e,r):sTt&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):k9(t,e,r),r}function k9(t,e,r){if(ut.domSupported&&t.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(_J(t)){var o=t.getBoundingClientRect();r.zrX=n-o.left,r.zrY=a-o.top;return}else if(D$(mD,t,n,a)){r.zrX=mD[0],r.zrY=mD[1];return}}r.zrX=r.zrY=0}function SR(t){return t||window.event}function mo(t,e,r){if(e=SR(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var i=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];i&&M$(t,i,e,r)}else{M$(t,e,e,r);var o=lTt(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&iTt.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function lTt(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var a=Math.abs(n!==0?n:r),o=n>0?-1:n<0?1:r>0?-1:1;return 3*a*o}function O$(t,e,r,n){t.addEventListener(e,r,n)}function cTt(t,e,r,n){t.removeEventListener(e,r,n)}var np=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function E9(t){return t.which===2||t.which===3}var uTt=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var a=e.touches;if(a){for(var o={points:[],touches:[],target:r,event:e},i=0,s=a.length;i1&&n&&n.length>1){var o=D9(n)/D9(a);!isFinite(o)&&(o=1),e.pinchScale=o;var i=dTt(n);return e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}}}}};function il(){return[1,0,0,1,0,0]}function f_(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function xR(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Tc(t,e,r){var n=e[0]*r[0]+e[2]*r[1],a=e[1]*r[0]+e[3]*r[1],o=e[0]*r[2]+e[2]*r[3],i=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=a,t[2]=o,t[3]=i,t[4]=s,t[5]=l,t}function ap(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function h_(t,e,r,n){n===void 0&&(n=[0,0]);var a=e[0],o=e[2],i=e[4],s=e[1],l=e[3],c=e[5],d=Math.sin(r),u=Math.cos(r);return t[0]=a*u+s*d,t[1]=-a*d+s*u,t[2]=o*u+l*d,t[3]=-o*d+u*l,t[4]=u*(i-n[0])+d*(c-n[1])+n[0],t[5]=u*(c-n[1])-d*(i-n[0])+n[1],t}function yJ(t,e,r){var n=r[0],a=r[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t}function Tp(t,e){var r=e[0],n=e[2],a=e[4],o=e[1],i=e[3],s=e[5],l=r*i-o*n;return l?(l=1/l,t[0]=i*l,t[1]=-o*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-i*a)*l,t[5]=(o*a-r*s)*l,t):null}function fTt(t){var e=il();return xR(e,t),e}const bJ=Object.freeze(Object.defineProperty({__proto__:null,clone:fTt,copy:xR,create:il,identity:f_,invert:Tp,mul:Tc,rotate:h_,scale:yJ,translate:ap},Symbol.toStringTag,{value:"Module"}));var It=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,a){e.x=r.x+n.x*a,e.y=r.y+n.y*a},t.lerp=function(e,r,n,a){var o=1-a;e.x=o*r.x+a*n.x,e.y=o*r.y+a*n.y},t}(),k0=Math.min,E0=Math.max,pu=new It,vu=new It,mu=new It,gu=new It,Wv=new It,Hv=new It,Ft=function(){function t(e,r,n,a){n<0&&(e=e+n,n=-n),a<0&&(r=r+a,a=-a),this.x=e,this.y=r,this.width=n,this.height=a}return t.prototype.union=function(e){var r=k0(e.x,this.x),n=k0(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=E0(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=E0(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,a=e.height/r.height,o=il();return ap(o,o,[-r.x,-r.y]),yJ(o,o,[n,a]),ap(o,o,[e.x,e.y]),o},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,a=n.x,o=n.x+n.width,i=n.y,s=n.y+n.height,l=e.x,c=e.x+e.width,d=e.y,u=e.y+e.height,f=!(om&&(m=S,g<_?It.set(Hv,-g,0):It.set(Hv,_,0)):Sm&&(m=x,b=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],o=n[3],i=n[4],s=n[5];e.x=r.x*a+i,e.y=r.y*o+s,e.width=r.width*a,e.height=r.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}pu.x=mu.x=r.x,pu.y=gu.y=r.y,vu.x=gu.x=r.x+r.width,vu.y=mu.y=r.y+r.height,pu.transform(n),gu.transform(n),vu.transform(n),mu.transform(n),e.x=k0(pu.x,vu.x,mu.x,gu.x),e.y=k0(pu.y,vu.y,mu.y,gu.y);var l=E0(pu.x,vu.x,mu.x,gu.x),c=E0(pu.y,vu.y,mu.y,gu.y);e.width=l-e.x,e.height=c-e.y},t}(),wJ="silent";function hTt(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:pTt}}function pTt(){np(this.event)}var vTt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(zo),Uv=function(){function t(e,r){this.x=e,this.y=r}return t}(),mTt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_D=new Ft(0,0,0,0),SJ=function(t){le(e,t);function e(r,n,a,o,i){var s=t.call(this)||this;return s._hovered=new Uv(0,0),s.storage=r,s.painter=n,s.painterRoot=o,s._pointerSize=i,a=a||new vTt,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new QCt(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(W(mTt,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,o=xJ(this,n,a),i=this._hovered,s=i.target;s&&!s.__zr&&(i=this.findHover(i.x,i.y),s=i.target);var l=this._hovered=o?new Uv(n,a):this.findHover(n,a),c=l.target,d=this.proxy;d.setCursor&&d.setCursor(c?c.cursor:"default"),s&&c!==s&&this.dispatchToElement(i,"mouseout",r),this.dispatchToElement(l,"mousemove",r),c&&c!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Uv(0,0)},e.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,a){r=r||{};var o=r.target;if(!(o&&o.silent)){for(var i="on"+n,s=hTt(n,r,a);o&&(o[i]&&(s.cancelBubble=!!o[i].call(o,s)),o.trigger(n,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[i]=="function"&&l[i].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,a){var o=this.storage.getDisplayList(),i=new Uv(r,n);if(M9(o,i,r,n,a),this._pointerSize&&!i.target){for(var s=[],l=this._pointerSize,c=l/2,d=new Ft(r-c,n-c,l,l),u=o.length-1;u>=0;u--){var f=o[u];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(_D.copy(f.getBoundingRect()),f.transform&&_D.applyTransform(f.transform),_D.intersect(d)&&s.push(f))}if(s.length)for(var p=4,m=Math.PI/12,g=Math.PI*2,_=0;_4)return;this._downPoint=null}this.dispatchToElement(o,t,e)}});function gTt(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,a=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var i=n.getClipPath();if(i&&!i.contain(e,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?wJ:!0}return!1}function M9(t,e,r,n,a){for(var o=t.length-1;o>=0;o--){var i=t[o],s=void 0;if(i!==a&&!i.ignore&&(s=gTt(i,r,n))&&(!e.topTarget&&(e.topTarget=i),s!==wJ)){e.target=i;break}}}function xJ(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var CJ=32,Vv=7;function _Tt(t){for(var e=0;t>=CJ;)e|=t&1,t>>=1;return t+e}function O9(t,e,r,n){var a=e+1;if(a===r)return 1;if(n(t[a++],t[e])<0){for(;a=0;)a++;return a-e}function yTt(t,e,r){for(r--;e>>1,a(o,t[l])<0?s=l:i=l+1;var c=n-i;switch(c){case 3:t[i+3]=t[i+2];case 2:t[i+2]=t[i+1];case 1:t[i+1]=t[i];break;default:for(;c>0;)t[i+c]=t[i+c-1],c--}t[i]=o}}function yD(t,e,r,n,a,o){var i=0,s=0,l=1;if(o(t,e[r+a])>0){for(s=n-a;l0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),i+=a,l+=a}else{for(s=a+1;ls&&(l=s);var c=i;i=a-l,l=a-c}for(i++;i>>1);o(t,e[r+d])>0?i=d+1:l=d}return l}function bD(t,e,r,n,a,o){var i=0,s=0,l=1;if(o(t,e[r+a])<0){for(s=a+1;ls&&(l=s);var c=i;i=a-l,l=a-c}else{for(s=n-a;l=0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),i+=a,l+=a}for(i++;i>>1);o(t,e[r+d])<0?l=d:i=d+1}return l}function bTt(t,e){var r=Vv,n,a,o=0,i=[];n=[],a=[];function s(p,m){n[o]=p,a[o]=m,o+=1}function l(){for(;o>1;){var p=o-2;if(p>=1&&a[p-1]<=a[p]+a[p+1]||p>=2&&a[p-2]<=a[p]+a[p-1])a[p-1]a[p+1])break;d(p)}}function c(){for(;o>1;){var p=o-2;p>0&&a[p-1]=Vv||D>=Vv);if(A)break;E<0&&(E=0),E+=2}if(r=E,r<1&&(r=1),m===1){for(b=0;b<_;b++)t[x+b]=t[S+b];t[x+_]=i[w]}else{if(m===0)throw new Error;for(b=0;b=0;b--)t[T+b]=t[E+b];t[x]=i[S];return}for(var D=r;;){var A=0,P=0,O=!1;do if(e(i[S],t[w])<0){if(t[x--]=t[w--],A++,P=0,--m===0){O=!0;break}}else if(t[x--]=i[S--],P++,A=0,--_===1){O=!0;break}while((A|P)=0;b--)t[T+b]=t[E+b];if(m===0){O=!0;break}}if(t[x--]=i[S--],--_===1){O=!0;break}if(P=_-yD(t[w],i,0,_,_-1,e),P!==0){for(x-=P,S-=P,_-=P,T=x+1,E=S+1,b=0;b=Vv||P>=Vv);if(O)break;D<0&&(D=0),D+=2}if(r=D,r<1&&(r=1),_===1){for(x-=m,w-=m,T=x+1,E=w+1,b=m-1;b>=0;b--)t[T+b]=t[E+b];t[x]=i[S]}else{if(_===0)throw new Error;for(E=x-(_-1),b=0;b<_;b++)t[E+b]=i[b]}}return{mergeRuns:l,forceMergeRuns:c,pushRun:s}}function Kb(t,e,r,n){r||(r=0),n||(n=t.length);var a=n-r;if(!(a<2)){var o=0;if(as&&(l=s),$9(t,r,r+l,r+o,e),o=l}i.pushRun(r,o),i.mergeRuns(),a-=o,r+=o}while(a!==0);i.forceMergeRuns()}}var Ya=1,Tm=2,vh=4,A9=!1;function wD(){A9||(A9=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function P9(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var wTt=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=P9}return t.prototype.traverse=function(e,r){for(var n=0;n0&&(d.__clipPaths=[]),isNaN(d.z)&&(wD(),d.z=0),isNaN(d.z2)&&(wD(),d.z2=0),isNaN(d.zlevel)&&(wD(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,r,n);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,r,n);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Y1;Y1=ut.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Um={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Um.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?Um.bounceIn(t*2)*.5:Um.bounceOut(t*2-1)*.5+.5}},D0=Math.pow,kc=Math.sqrt,G1=1e-8,TJ=1e-4,I9=kc(3),M0=1/3,Ji=Hd(),xo=Hd(),Fh=Hd();function yc(t){return t>-G1&&tG1||t<-G1}function cn(t,e,r,n,a){var o=1-a;return o*o*(o*t+3*a*e)+a*a*(a*n+3*o*r)}function R9(t,e,r,n,a){var o=1-a;return 3*(((e-t)*o+2*(r-e)*a)*o+(n-r)*a*a)}function q1(t,e,r,n,a,o){var i=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),c=t-a,d=s*s-3*i*l,u=s*l-9*i*c,f=l*l-3*s*c,p=0;if(yc(d)&&yc(u))if(yc(s))o[0]=0;else{var m=-l/s;m>=0&&m<=1&&(o[p++]=m)}else{var g=u*u-4*d*f;if(yc(g)){var _=u/d,m=-s/i+_,b=-_/2;m>=0&&m<=1&&(o[p++]=m),b>=0&&b<=1&&(o[p++]=b)}else if(g>0){var w=kc(g),S=d*s+1.5*i*(-u+w),x=d*s+1.5*i*(-u-w);S<0?S=-D0(-S,M0):S=D0(S,M0),x<0?x=-D0(-x,M0):x=D0(x,M0);var m=(-s-(S+x))/(3*i);m>=0&&m<=1&&(o[p++]=m)}else{var E=(2*d*s-3*i*u)/(2*kc(d*d*d)),T=Math.acos(E)/3,D=kc(d),A=Math.cos(T),m=(-s-2*D*A)/(3*i),b=(-s+D*(A+I9*Math.sin(T)))/(3*i),P=(-s+D*(A-I9*Math.sin(T)))/(3*i);m>=0&&m<=1&&(o[p++]=m),b>=0&&b<=1&&(o[p++]=b),P>=0&&P<=1&&(o[p++]=P)}}return p}function EJ(t,e,r,n,a){var o=6*r-12*e+6*t,i=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(yc(i)){if(kJ(o)){var c=-s/o;c>=0&&c<=1&&(a[l++]=c)}}else{var d=o*o-4*i*s;if(yc(d))a[0]=-o/(2*i);else if(d>0){var u=kc(d),c=(-o+u)/(2*i),f=(-o-u)/(2*i);c>=0&&c<=1&&(a[l++]=c),f>=0&&f<=1&&(a[l++]=f)}}return l}function X1(t,e,r,n,a,o){var i=(e-t)*a+t,s=(r-e)*a+e,l=(n-r)*a+r,c=(s-i)*a+i,d=(l-s)*a+s,u=(d-c)*a+c;o[0]=t,o[1]=i,o[2]=c,o[3]=u,o[4]=u,o[5]=d,o[6]=l,o[7]=n}function DJ(t,e,r,n,a,o,i,s,l,c,d){var u,f=.005,p=1/0,m,g,_,b;Ji[0]=l,Ji[1]=c;for(var w=0;w<1;w+=.05)xo[0]=cn(t,r,a,i,w),xo[1]=cn(e,n,o,s,w),_=ad(Ji,xo),_=0&&_=0&&c<=1&&(a[l++]=c)}}else{var d=i*i-4*o*s;if(yc(d)){var c=-i/(2*o);c>=0&&c<=1&&(a[l++]=c)}else if(d>0){var u=kc(d),c=(-i+u)/(2*o),f=(-i-u)/(2*o);c>=0&&c<=1&&(a[l++]=c),f>=0&&f<=1&&(a[l++]=f)}}return l}function MJ(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function J1(t,e,r,n,a){var o=(e-t)*n+t,i=(r-e)*n+e,s=(i-o)*n+o;a[0]=t,a[1]=o,a[2]=s,a[3]=s,a[4]=i,a[5]=r}function OJ(t,e,r,n,a,o,i,s,l){var c,d=.005,u=1/0;Ji[0]=i,Ji[1]=s;for(var f=0;f<1;f+=.05){xo[0]=Hn(t,r,a,f),xo[1]=Hn(e,n,o,f);var p=ad(Ji,xo);p=0&&p=1?1:q1(0,n,o,1,l,s)&&cn(0,a,i,1,s[0])}}}var kTt=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||kn,this.ondestroy=e.ondestroy||kn,this.onrestart=e.onrestart||kn,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=e-this._startTime-this._pausedTime,o=a/n;o<0&&(o=0),o=Math.min(o,1);var i=this.easingFunc,s=i?i(o):o;if(this.onframe(s),o===1)if(this.loop){var l=a%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ot(e)?e:Um[e]||CR(e)},t}(),$J=function(){function t(e){this.value=e}return t}(),ETt=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new $J(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),p_=function(){function t(e){this._list=new ETt,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,a=this._map,o=null;if(a[e]==null){var i=n.len(),s=this._lastRemovedEntry;if(i>=this._maxSize&&i>0){var l=n.head;n.remove(l),delete a[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new $J(r),s.key=e,n.insertEntry(s),a[e]=s}return o},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),N9={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function vi(t){return t=Math.round(t),t<0?0:t>255?255:t}function DTt(t){return t=Math.round(t),t<0?0:t>360?360:t}function Sg(t){return t<0?0:t>1?1:t}function SD(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?vi(parseFloat(e)/100*255):vi(parseInt(e,10))}function od(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Sg(parseFloat(e)/100):Sg(parseFloat(e))}function xD(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function bc(t,e,r){return t+(e-t)*r}function vo(t,e,r,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t}function $$(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var AJ=new p_(20),O0=null;function Rf(t,e){O0&&$$(O0,e),O0=AJ.put(t,O0||e.slice())}function $a(t,e){if(t){e=e||[];var r=AJ.get(t);if(r)return $$(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in N9)return $$(e,N9[n]),Rf(t,e),e;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var o=parseInt(n.slice(1,4),16);if(!(o>=0&&o<=4095)){vo(e,0,0,0,1);return}return vo(e,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Rf(t,e),e}else if(a===7||a===9){var o=parseInt(n.slice(1,7),16);if(!(o>=0&&o<=16777215)){vo(e,0,0,0,1);return}return vo(e,(o&16711680)>>16,(o&65280)>>8,o&255,a===9?parseInt(n.slice(7),16)/255:1),Rf(t,e),e}return}var i=n.indexOf("("),s=n.indexOf(")");if(i!==-1&&s+1===a){var l=n.substr(0,i),c=n.substr(i+1,s-(i+1)).split(","),d=1;switch(l){case"rgba":if(c.length!==4)return c.length===3?vo(e,+c[0],+c[1],+c[2],1):vo(e,0,0,0,1);d=od(c.pop());case"rgb":if(c.length>=3)return vo(e,SD(c[0]),SD(c[1]),SD(c[2]),c.length===3?d:od(c[3])),Rf(t,e),e;vo(e,0,0,0,1);return;case"hsla":if(c.length!==4){vo(e,0,0,0,1);return}return c[3]=od(c[3]),A$(c,e),Rf(t,e),e;case"hsl":if(c.length!==3){vo(e,0,0,0,1);return}return A$(c,e),Rf(t,e),e;default:return}}vo(e,0,0,0,1)}}function A$(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=od(t[1]),a=od(t[2]),o=a<=.5?a*(n+1):a+n-a*n,i=a*2-o;return e=e||[],vo(e,vi(xD(i,o,r+1/3)*255),vi(xD(i,o,r)*255),vi(xD(i,o,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function MTt(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.min(e,r,n),o=Math.max(e,r,n),i=o-a,s=(o+a)/2,l,c;if(i===0)l=0,c=0;else{s<.5?c=i/(o+a):c=i/(2-o-a);var d=((o-e)/6+i/2)/i,u=((o-r)/6+i/2)/i,f=((o-n)/6+i/2)/i;e===o?l=f-u:r===o?l=1/3+d-f:n===o&&(l=2/3+u-d),l<0&&(l+=1),l>1&&(l-=1)}var p=[l*360,c,s];return t[3]!=null&&p.push(t[3]),p}}function P$(t,e){var r=$a(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Vc(r,r.length===4?"rgba":"rgb")}}function OTt(t){var e=$a(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function PJ(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),a=Math.floor(n),o=Math.ceil(n),i=e[a],s=e[o],l=n-a;return r[0]=vi(bc(i[0],s[0],l)),r[1]=vi(bc(i[1],s[1],l)),r[2]=vi(bc(i[2],s[2],l)),r[3]=Sg(bc(i[3],s[3],l)),r}}var $Tt=PJ;function TR(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),a=Math.floor(n),o=Math.ceil(n),i=$a(e[a]),s=$a(e[o]),l=n-a,c=Vc([vi(bc(i[0],s[0],l)),vi(bc(i[1],s[1],l)),vi(bc(i[2],s[2],l)),Sg(bc(i[3],s[3],l))],"rgba");return r?{color:c,leftIndex:a,rightIndex:o,value:n}:c}}var ATt=TR;function PTt(t,e,r,n){var a=$a(t);if(t)return a=MTt(a),e!=null&&(a[0]=DTt(e)),r!=null&&(a[1]=od(r)),n!=null&&(a[2]=od(n)),Vc(A$(a),"rgba")}function I$(t,e){var r=$a(t);if(r&&e!=null)return r[3]=Sg(e),Vc(r,"rgba")}function Vc(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function xg(t,e){var r=$a(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function ITt(){return Vc([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var F9=new p_(100);function K1(t){if(Re(t)){var e=F9.get(t);return e||(e=P$(t,-.1),F9.put(t,e)),e}else if(u_(t)){var r=_e({},t);return r.colorStops=ye(t.colorStops,function(n){return{offset:n.offset,color:P$(n.color,-.1)}}),r}return t}const IJ=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:PJ,fastMapToColor:$Tt,lerp:TR,lift:P$,liftColor:K1,lum:xg,mapToColor:ATt,modifyAlpha:I$,modifyHSL:PTt,parse:$a,random:ITt,stringify:Vc,toHex:OTt},Symbol.toStringTag,{value:"Module"}));var Z1=Math.round;function Cg(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=$a(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var z9=1e-4;function wc(t){return t-z9}function $0(t){return Z1(t*1e3)/1e3}function R$(t){return Z1(t*1e4)/1e4}function RTt(t){return"matrix("+$0(t[0])+","+$0(t[1])+","+$0(t[2])+","+$0(t[3])+","+R$(t[4])+","+R$(t[5])+")"}var LTt={left:"start",right:"end",center:"middle",middle:"middle"};function NTt(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function FTt(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function zTt(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function RJ(t){return t&&!!t.image}function BTt(t){return t&&!!t.svgElement}function kR(t){return RJ(t)||BTt(t)}function LJ(t){return t.type==="linear"}function NJ(t){return t.type==="radial"}function FJ(t){return t&&(t.type==="linear"||t.type==="radial")}function FS(t){return"url(#"+t+")"}function zJ(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function BJ(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*Hm,a=et(t.scaleX,1),o=et(t.scaleY,1),i=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(a!==1||o!==1)&&l.push("scale("+a+","+o+")"),(i||s)&&l.push("skew("+Z1(i*Hm)+"deg, "+Z1(s*Hm)+"deg)"),l.join(" ")}var jTt=function(){return ut.hasGlobalWindow&&ot(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}}(),L$=Array.prototype.slice;function Vs(t,e,r){return(e-t)*r+t}function CD(t,e,r,n){for(var a=e.length,o=0;on?e:t,o=Math.min(r,n),i=a[o-1]||{color:[0,0,0,0],offset:0},s=o;si;if(s)n.length=i;else for(var l=o;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var a=this.keyframes,o=a.length,i=!1,s=j9,l=r;if(ca(r)){var c=VTt(r);s=c,(c===1&&!dr(r[0])||c===2&&!dr(r[0][0]))&&(i=!0)}else if(dr(r)&&!bg(r))s=P0;else if(Re(r))if(!isNaN(+r))s=P0;else{var d=$a(r);d&&(l=d,s=km)}else if(u_(r)){var u=_e({},l);u.colorStops=ye(r.colorStops,function(p){return{offset:p.offset,color:$a(p.color)}}),LJ(r)?s=N$:NJ(r)&&(s=F$),l=u}o===0?this.valType=s:(s!==this.valType||s===j9)&&(i=!0),this.discrete=this.discrete||i;var f={time:e,value:l,rawValue:r,percent:0};return n&&(f.easing=n,f.easingFunc=ot(n)?n:Um[n]||CR(n)),a.push(f),f},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,_){return g.time-_.time});for(var a=this.valType,o=n.length,i=n[o-1],s=this.discrete,l=I0(a),c=W9(a),d=0;d=0&&!(i[d].percent<=r);d--);d=f(d,s-2)}else{for(d=u;dr);d++);d=f(d-1,s-2)}m=i[d+1],p=i[d]}if(p&&m){this._lastFr=d,this._lastFrP=r;var _=m.percent-p.percent,b=_===0?1:f((r-p.percent)/_,1);m.easingFunc&&(b=m.easingFunc(b));var w=n?this._additiveValue:c?Yv:e[l];if((I0(o)||c)&&!w&&(w=this._additiveValue=[]),this.discrete)e[l]=b<1?p.rawValue:m.rawValue;else if(I0(o))o===e1?CD(w,p[a],m[a],b):WTt(w,p[a],m[a],b);else if(W9(o)){var S=p[a],x=m[a],E=o===N$;e[l]={type:E?"linear":"radial",x:Vs(S.x,x.x,b),y:Vs(S.y,x.y,b),colorStops:ye(S.colorStops,function(D,A){var P=x.colorStops[A];return{offset:Vs(D.offset,P.offset,b),color:Qb(CD([],D.color,P.color,b))}}),global:x.global},E?(e[l].x2=Vs(S.x2,x.x2,b),e[l].y2=Vs(S.y2,x.y2,b)):e[l].r=Vs(S.r,x.r,b)}else if(c)CD(w,p[a],m[a],b),n||(e[l]=Qb(w));else{var T=Vs(p[a],m[a],b);n?this._additiveValue=T:e[l]=T}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,a=this._additiveValue;r===P0?e[n]=e[n]+a:r===km?($a(e[n],Yv),A0(Yv,Yv,a,1),e[n]=Qb(Yv)):r===e1?A0(e[n],e[n],a,1):r===jJ&&B9(e[n],e[n],a,1)},t}(),ER=function(){function t(e,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&a){RS("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Ht(r),n)},t.prototype.whenWithKeys=function(e,r,n,a){for(var o=this._tracks,i=0;i0&&l.addKeyframe(0,Zb(c),a),this._trackKeys.push(s)}l.addKeyframe(e,Zb(r[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,o=0;o1){var s=i.pop();o.addKeyframe(s.time,e[a]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},t}();function Th(){return new Date().getTime()}var GTt=function(t){le(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Th()-this._pausedTime,a=n-this._time,o=this._head;o;){var i=o.next,s=o.step(n,a);s&&(o.ondestroy(),this.removeClip(o)),o=i}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Y1(n),!r._paused&&r.update())}Y1(n)},e.prototype.start=function(){this._running||(this._time=Th(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Th(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Th()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var a=new ER(r,n.loop);return this.addAnimator(a),a},e}(zo),qTt=300,TD=ut.domSupported,kD=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ye(t,function(a){var o=a.replace("mouse","pointer");return r.hasOwnProperty(o)?o:a});return{mouse:t,touch:e,pointer:n}}(),H9={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},U9=!1;function z$(t){var e=t.pointerType;return e==="pen"||e==="touch"}function XTt(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function ED(t){t&&(t.zrByTouch=!0)}function JTt(t,e){return mo(t.dom,new KTt(t,e),!0)}function WJ(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var KTt=function(){function t(e,r){this.stopPropagation=kn,this.stopImmediatePropagation=kn,this.preventDefault=kn,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),ri={mousedown:function(t){t=mo(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=mo(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=mo(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=mo(this.dom,t);var e=t.toElement||t.relatedTarget;WJ(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){U9=!0,t=mo(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){U9||(t=mo(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=mo(this.dom,t),ED(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),ri.mousemove.call(this,t),ri.mousedown.call(this,t)},touchmove:function(t){t=mo(this.dom,t),ED(t),this.handler.processGesture(t,"change"),ri.mousemove.call(this,t)},touchend:function(t){t=mo(this.dom,t),ED(t),this.handler.processGesture(t,"end"),ri.mouseup.call(this,t),+new Date-+this.__lastTouchMomentG9||t<-G9}var yu=[],Lf=[],MD=il(),OD=Math.abs,zS=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return _u(this.rotation)||_u(this.x)||_u(this.y)||_u(this.scaleX-1)||_u(this.scaleY-1)||_u(this.skewX)||_u(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(Y9(n),this.invTransform=null);return}n=n||il(),r?this.getLocalTransform(n):Y9(n),e&&(r?Tc(n,e,n):xR(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(yu);var n=yu[0]<0?-1:1,a=yu[1]<0?-1:1,o=((yu[0]-n)*r+n)/yu[0]||0,i=((yu[1]-a)*r+a)/yu[1]||0;e[0]*=o,e[1]*=o,e[2]*=i,e[3]*=i}this.invTransform=this.invTransform||il(),Tp(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),o=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(o),r=Math.sqrt(r),this.skewX=o,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||il(),Tc(Lf,e.invTransform,r),r=Lf);var n=this.originX,a=this.originY;(n||a)&&(MD[4]=n,MD[5]=a,Tc(Lf,r,MD),Lf[4]-=n,Lf[5]-=a,r=Lf),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],a=this.invTransform;return a&&sa(n,n,a),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],a=this.transform;return a&&sa(n,n,a),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&OD(e[0]-1)>1e-10&&OD(e[3]-1)>1e-10?Math.sqrt(OD(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){UJ(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,a=e.originY||0,o=e.scaleX,i=e.scaleY,s=e.anchorX,l=e.anchorY,c=e.rotation||0,d=e.x,u=e.y,f=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||l){var m=n+s,g=a+l;r[4]=-m*o-f*g*i,r[5]=-g*i-p*m*o}else r[4]=r[5]=0;return r[0]=o,r[3]=i,r[1]=p*o,r[2]=f*i,c&&h_(r,r,c),r[4]+=n+d,r[5]+=a+u,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Tg=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function UJ(t,e){for(var r=0;r=0?parseFloat(t)/100*e:parseFloat(t):t}function ew(t,e,r){var n=e.position||"inside",a=e.distance!=null?e.distance:5,o=r.height,i=r.width,s=o/2,l=r.x,c=r.y,d="left",u="top";if(n instanceof Array)l+=hl(n[0],r.width),c+=hl(n[1],r.height),d=null,u=null;else switch(n){case"left":l-=a,c+=s,d="right",u="middle";break;case"right":l+=a+i,c+=s,u="middle";break;case"top":l+=i/2,c-=a,d="center",u="bottom";break;case"bottom":l+=i/2,c+=o+a,d="center";break;case"inside":l+=i/2,c+=s,d="center",u="middle";break;case"insideLeft":l+=a,c+=s,u="middle";break;case"insideRight":l+=i-a,c+=s,d="right",u="middle";break;case"insideTop":l+=i/2,c+=a,d="center";break;case"insideBottom":l+=i/2,c+=o-a,d="center",u="bottom";break;case"insideTopLeft":l+=a,c+=a;break;case"insideTopRight":l+=i-a,c+=a,d="right";break;case"insideBottomLeft":l+=a,c+=o-a,u="bottom";break;case"insideBottomRight":l+=i-a,c+=o-a,d="right",u="bottom";break}return t=t||{},t.x=l,t.y=c,t.align=d,t.verticalAlign=u,t}var $D="__zr_normal__",AD=Tg.concat(["ignore"]),rkt=ls(Tg,function(t,e){return t[e]=!0,t},{ignore:!1}),Nf={},nkt=new Ft(0,0,0,0),WS=function(){function t(e){this.id=vR(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,o=r.innerTransformable,i=void 0,s=void 0,l=!1;o.parent=a?this:null;var c=!1;if(o.copyTransform(r),n.position!=null){var d=nkt;n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),a||d.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Nf,n,d):ew(Nf,n,d),o.x=Nf.x,o.y=Nf.y,i=Nf.align,s=Nf.verticalAlign;var u=n.origin;if(u&&n.rotation!=null){var f=void 0,p=void 0;u==="center"?(f=d.width*.5,p=d.height*.5):(f=hl(u[0],d.width),p=hl(u[1],d.height)),c=!0,o.originX=-o.x+f+(a?0:d.x),o.originY=-o.y+p+(a?0:d.y)}}n.rotation!=null&&(o.rotation=n.rotation);var m=n.offset;m&&(o.x+=m[0],o.y+=m[1],c||(o.originX=-m[0],o.originY=-m[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),b=void 0,w=void 0,S=void 0;g&&this.canBeInsideText()?(b=n.insideFill,w=n.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(b),S=!0)):(b=n.outsideFill,w=n.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(b),S=!0)),b=b||"#000",(b!==_.fill||w!==_.stroke||S!==_.autoStroke||i!==_.align||s!==_.verticalAlign)&&(l=!0,_.fill=b,_.stroke=w,_.autoStroke=S,_.align=i,_.verticalAlign=s,r.setDefaultTextStyle(_)),r.__dirty|=Ya,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?H$:W$},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&$a(r);n||(n=[255,255,255,1]);for(var a=n[3],o=this.__zr.isDarkMode(),i=0;i<3;i++)n[i]=n[i]*a+(o?0:255)*(1-a);return n[3]=1,Vc(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},_e(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(Ke(e))for(var n=e,a=Ht(n),o=0;o0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState($D,!1,e)},t.prototype.useState=function(e,r,n,a){var o=e===$D,i=this.hasState();if(!(!i&&o)){var s=this.currentStates,l=this.stateTransition;if(!($t(s,e)>=0&&(r||s.length===1))){var c;if(this.stateProxy&&!o&&(c=this.stateProxy(e)),c||(c=this.states&&this.states[e]),!c&&!o){RS("State "+e+" not exists.");return}o||this.saveCurrentToNormalState(c);var d=!!(c&&c.hoverLayer||a);d&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,c,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var u=this._textContent,f=this._textGuide;return u&&u.useState(e,r,n,d),f&&f.useState(e,r,n,d),o?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ya),c}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var a=[],o=this.currentStates,i=e.length,s=i===o.length;if(s){for(var l=0;l0,m);var g=this._textContent,_=this._textGuide;g&&g.useStates(e,r,f),_&&_.useStates(e,r,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ya)}},t.prototype.isSilent=function(){for(var e=this.silent,r=this.parent;!e&&r;){if(r.silent){e=!0;break}r=r.parent}return e},t.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var a=this.currentStates.slice(),o=$t(a,e),i=$t(a,r)>=0;o>=0?i?a.splice(o,1):a[o]=r:n&&!i&&a.push(r),this.useStates(a)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,a=0;a=0&&o.splice(i,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,a=n.length,o=[],i=0;i0&&r.during&&o[0].during(function(m,g){r.during(g)});for(var f=0;f0||a.force&&!i.length){var A=void 0,P=void 0,O=void 0;if(s){P={},f&&(A={});for(var x=0;x=0&&(a.splice(o,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var a=$t(this._children,r);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(r,n){var a=this._children,o=a[n];if(r&&r!==this&&r.parent!==this&&r!==o){a[n]=r,o.parent=null;var i=this.__zr;i&&o.removeSelfFromZr(i),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,a=this._children,o=$t(a,r);return o<0?this:(a.splice(o,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r0){if(t<=a)return i;if(t>=o)return s}else{if(t>=a)return i;if(t<=o)return s}else{if(t===a)return i;if(t===o)return s}return(t-a)/l*c+i}function wr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Re(t)?vkt(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Yr(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),JJ),t=(+t).toFixed(e),r?t:+t}function Ks(t){return t.sort(function(e,r){return e-r}),t}function di(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return KJ(t)}function KJ(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,a=r>0?r:e.length,o=e.indexOf("."),i=o<0?0:a-1-o;return Math.max(0,i-n)}function DR(t,e){var r=Math.log,n=Math.LN10,a=Math.floor(r(t[1]-t[0])/n),o=Math.round(r(Math.abs(e[1]-e[0]))/n),i=Math.min(Math.max(-a+o,0),20);return isFinite(i)?i:20}function mkt(t,e,r){if(!t[e])return 0;var n=gkt(t,r);return n[e]||0}function gkt(t,e){var r=ls(t,function(p,m){return p+(isNaN(m)?0:m)},0);if(r===0)return[];for(var n=Math.pow(10,e),a=ye(t,function(p){return(isNaN(p)?0:p)/r*n*100}),o=n*100,i=ye(a,function(p){return Math.floor(p)}),s=ls(i,function(p,m){return p+m},0),l=ye(a,function(p,m){return p-i[m]});sc&&(c=l[u],d=u);++i[d],l[d]=0,++s}return ye(i,function(p){return p/n})}function _kt(t,e){var r=Math.max(di(t),di(e)),n=t+e;return r>JJ?n:Yr(n,r)}var ykt=9007199254740991;function MR(t){var e=Math.PI*2;return(t%e+e)%e}function kg(t){return t>-J9&&t=10&&e++,e}function OR(t,e){var r=HS(t),n=Math.pow(10,r),a=t/n,o;return e?a<1.5?o=1:a<2.5?o=2:a<4?o=3:a<7?o=5:o=10:a<1?o=1:a<2?o=2:a<3?o=3:a<5?o=5:o=10,t=o*n,r>=-20?+t.toFixed(r<0?-r:0):t}function wkt(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),a=+t[n-1],o=r-n;return o?a+o*(t[n]-a):a}function Skt(t){t.sort(function(l,c){return s(l,c,0)?-1:1});for(var e=-1/0,r=1,n=0;n=0||o&&$t(o,l)<0)){var c=n.getShallow(l,e);c!=null&&(i[t[s][0]]=c)}}return i}}var Ykt=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Gkt=Mg(Ykt),qkt=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return Gkt(this,e,r)},t}(),G$=new p_(50);function Xkt(t){if(typeof t=="string"){var e=G$.get(t);return e&&e.image}else return t}function IR(t,e,r,n,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var o=G$.get(t),i={hostEl:r,cb:n,cbPayload:a};return o?(e=o.image,!VS(e)&&o.pending.push(i)):(e=fl.loadImage(t,e7,e7),e.__zrImageSrc=t,G$.put(t,e.__cachedImgObj={image:e,pending:[i]})),e}else return t;else return e}function e7(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=i;l++)s-=i;var c=Ja(r,e);return c>s&&(r="",c=0),s=t-c,a.ellipsis=r,a.ellipsisWidth=c,a.contentWidth=s,a.containerWidth=t,a}function dK(t,e,r){var n=r.containerWidth,a=r.font,o=r.contentWidth;if(!n){t.textLine="",t.isTruncated=!1;return}var i=Ja(e,a);if(i<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(i<=o||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?Kkt(e,o,r.ascCharWidth,r.cnCharWidth):i>0?Math.floor(e.length*o/i):0;e=e.substr(0,l),i=Ja(e,a)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function Kkt(t,e,r,n){for(var a=0,o=0,i=t.length;om&&c){var g=Math.floor(m/s);d=d||f.length>g,f=f.slice(0,g)}if(t&&o&&u!=null)for(var _=uK(u,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;ws&&LD(r,t.substring(s,c),e,i),LD(r,l[2],e,i,l[1]),s=RD.lastIndex}sa){var N=r.lines.length;T>0?(S.tokens=S.tokens.slice(0,T),b(S,E,x),r.lines=r.lines.slice(0,w+1)):r.lines=r.lines.slice(0,w),r.isTruncated=r.isTruncated||r.lines.length0&&m+n.accumWidth>n.width&&(d=e.split(` +`),c=!0),n.accumWidth=m}else{var g=fK(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+p,u=g.linesWidths,d=g.lines}}else d=e.split(` +`);for(var _=0;_=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var n2t=ls(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function a2t(t){return r2t(t)?!!n2t[t]:!0}function fK(t,e,r,n,a){for(var o=[],i=[],s="",l="",c=0,d=0,u=0;ur:a+d+p>r){d?(s||l)&&(m?(s||(s=l,l="",c=0,d=c),o.push(s),i.push(d-c),l+=f,c+=p,s="",d=c):(l&&(s+=l,l="",c=0),o.push(s),i.push(d),s=f,d=p)):m?(o.push(l),i.push(c),l=f,c=p):(o.push(f),i.push(p));continue}d+=p,m?(l+=f,c+=p):(l&&(s+=l,l="",c=0),s+=f)}return!o.length&&!s&&(s=t,l="",c=0),l&&(s+=l),s&&(o.push(s),i.push(d)),o.length===1&&(d+=a),{accumWidth:d,lines:o,linesWidths:i}}var q$="__zr_style_"+Math.round(Math.random()*10),id={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},YS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};id[q$]=!0;var r7=["z","z2","invisible"],o2t=["invisible"],m_=function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Ht(r),a=0;a1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(R0[0]=BD(a)*r+t,R0[1]=zD(a)*n+e,L0[0]=BD(o)*r+t,L0[1]=zD(o)*n+e,c(s,R0,L0),d(l,R0,L0),a=a%wu,a<0&&(a=a+wu),o=o%wu,o<0&&(o=o+wu),a>o&&!i?o+=wu:aa&&(N0[0]=BD(p)*r+t,N0[1]=zD(p)*n+e,c(s,N0,s),d(l,N0,l))}var ir={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Su=[],xu=[],Ni=[],Zl=[],Fi=[],zi=[],jD=Math.min,WD=Math.max,Cu=Math.cos,Tu=Math.sin,zs=Math.abs,X$=Math.PI,sc=X$*2,HD=typeof Float32Array<"u",Gv=[];function UD(t){var e=Math.round(t/X$*1e8)/1e8;return e%2*X$}function u2t(t,e){var r=UD(t[0]);r<0&&(r+=sc);var n=r-t[0],a=t[1];a+=n,!e&&a-r>=sc?a=r+sc:e&&r-a>=sc?a=r-sc:!e&&r>a?a=r+(sc-UD(r-a)):e&&r0&&(this._ux=zs(n/Q1/e)||0,this._uy=zs(n/Q1/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(ir.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=zs(e-this._xi),a=zs(r-this._yi),o=n>this._ux||a>this._uy;if(this.addData(ir.L,e,r),this._ctx&&o&&this._ctx.lineTo(e,r),o)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var i=n*n+a*a;i>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=i)}return this},t.prototype.bezierCurveTo=function(e,r,n,a,o,i){return this._drawPendingPt(),this.addData(ir.C,e,r,n,a,o,i),this._ctx&&this._ctx.bezierCurveTo(e,r,n,a,o,i),this._xi=o,this._yi=i,this},t.prototype.quadraticCurveTo=function(e,r,n,a){return this._drawPendingPt(),this.addData(ir.Q,e,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,a),this._xi=n,this._yi=a,this},t.prototype.arc=function(e,r,n,a,o,i){this._drawPendingPt(),Gv[0]=a,Gv[1]=o,u2t(Gv,i),a=Gv[0],o=Gv[1];var s=o-a;return this.addData(ir.A,e,r,n,n,a,s,0,i?0:1),this._ctx&&this._ctx.arc(e,r,n,a,o,i),this._xi=Cu(o)*n+e,this._yi=Tu(o)*n+r,this},t.prototype.arcTo=function(e,r,n,a,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,a,o),this},t.prototype.rect=function(e,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,a),this.addData(ir.R,e,r,n,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ir.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var r=e.length;!(this.data&&this.data.length===r)&&HD&&(this.data=new Float32Array(r));for(var n=0;nd.length&&(this._expandData(),d=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Ni[0]=Ni[1]=Fi[0]=Fi[1]=Number.MAX_VALUE,Zl[0]=Zl[1]=zi[0]=zi[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,a=0,o=0,i;for(i=0;in||zs(S)>a||f===r-1)&&(g=Math.sqrt(w*w+S*S),o=_,i=b);break}case ir.C:{var x=e[f++],E=e[f++],_=e[f++],b=e[f++],T=e[f++],D=e[f++];g=STt(o,i,x,E,_,b,T,D,10),o=T,i=D;break}case ir.Q:{var x=e[f++],E=e[f++],_=e[f++],b=e[f++];g=CTt(o,i,x,E,_,b,10),o=_,i=b;break}case ir.A:var A=e[f++],P=e[f++],O=e[f++],I=e[f++],F=e[f++],N=e[f++],B=N+F;f+=1,m&&(s=Cu(F)*O+A,l=Tu(F)*I+P),g=WD(O,I)*jD(sc,Math.abs(N)),o=Cu(B)*O+A,i=Tu(B)*I+P;break;case ir.R:{s=o=e[f++],l=i=e[f++];var j=e[f++],V=e[f++];g=j*2+V*2;break}case ir.Z:{var w=s-o,S=l-i;g=Math.sqrt(w*w+S*S),o=s,i=l;break}}g>=0&&(c[u++]=g,d+=g)}return this._pathLen=d,d},t.prototype.rebuildPath=function(e,r){var n=this.data,a=this._ux,o=this._uy,i=this._len,s,l,c,d,u,f,p=r<1,m,g,_=0,b=0,w,S=0,x,E;if(!(p&&(this._pathSegLen||this._calculateLength(),m=this._pathSegLen,g=this._pathLen,w=r*g,!w)))e:for(var T=0;T0&&(e.lineTo(x,E),S=0),D){case ir.M:s=c=n[T++],l=d=n[T++],e.moveTo(c,d);break;case ir.L:{u=n[T++],f=n[T++];var P=zs(u-c),O=zs(f-d);if(P>a||O>o){if(p){var I=m[b++];if(_+I>w){var F=(w-_)/I;e.lineTo(c*(1-F)+u*F,d*(1-F)+f*F);break e}_+=I}e.lineTo(u,f),c=u,d=f,S=0}else{var N=P*P+O*O;N>S&&(x=u,E=f,S=N)}break}case ir.C:{var B=n[T++],j=n[T++],V=n[T++],Q=n[T++],G=n[T++],q=n[T++];if(p){var I=m[b++];if(_+I>w){var F=(w-_)/I;X1(c,B,V,G,F,Su),X1(d,j,Q,q,F,xu),e.bezierCurveTo(Su[1],xu[1],Su[2],xu[2],Su[3],xu[3]);break e}_+=I}e.bezierCurveTo(B,j,V,Q,G,q),c=G,d=q;break}case ir.Q:{var B=n[T++],j=n[T++],V=n[T++],Q=n[T++];if(p){var I=m[b++];if(_+I>w){var F=(w-_)/I;J1(c,B,V,F,Su),J1(d,j,Q,F,xu),e.quadraticCurveTo(Su[1],xu[1],Su[2],xu[2]);break e}_+=I}e.quadraticCurveTo(B,j,V,Q),c=V,d=Q;break}case ir.A:var te=n[T++],z=n[T++],U=n[T++],Z=n[T++],K=n[T++],se=n[T++],we=n[T++],Le=!n[T++],$e=U>Z?U:Z,Me=zs(U-Z)>.001,ke=K+se,me=!1;if(p){var I=m[b++];_+I>w&&(ke=K+se*(w-_)/I,me=!0),_+=I}if(Me&&e.ellipse?e.ellipse(te,z,U,Z,we,K,ke,Le):e.arc(te,z,$e,K,ke,Le),me)break e;A&&(s=Cu(K)*U+te,l=Tu(K)*Z+z),c=Cu(ke)*U+te,d=Tu(ke)*Z+z;break;case ir.R:s=c=n[T],l=d=n[T+1],u=n[T++],f=n[T++];var he=n[T++],rt=n[T++];if(p){var I=m[b++];if(_+I>w){var Pe=w-_;e.moveTo(u,f),e.lineTo(u+jD(Pe,he),f),Pe-=he,Pe>0&&e.lineTo(u+he,f+jD(Pe,rt)),Pe-=rt,Pe>0&&e.lineTo(u+WD(he-Pe,0),f+rt),Pe-=he,Pe>0&&e.lineTo(u,f+WD(rt-Pe,0));break e}_+=I}e.rect(u,f,he,rt);break;case ir.Z:if(p){var I=m[b++];if(_+I>w){var F=(w-_)/I;e.lineTo(c*(1-F)+s*F,d*(1-F)+l*F);break e}_+=I}e.closePath(),c=s,d=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=ir,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function Ff(t,e,r,n,a,o,i){if(a===0)return!1;var s=a,l=0,c=t;if(i>e+s&&i>n+s||it+s&&o>r+s||oe+u&&d>n+u&&d>o+u&&d>s+u||dt+u&&c>r+u&&c>a+u&&c>i+u||ce+c&&l>n+c&&l>o+c||lt+c&&s>r+c&&s>a+c||sr||d+ca&&(a+=qv);var f=Math.atan2(l,s);return f<0&&(f+=qv),f>=n&&f<=a||f+qv>=n&&f+qv<=a}function Ys(t,e,r,n,a,o){if(o>e&&o>n||oa?s:0}var Ql=pl.CMD,ku=Math.PI*2,p2t=1e-4;function v2t(t,e){return Math.abs(t-e)e&&c>n&&c>o&&c>s||c1&&m2t(),p=cn(e,n,o,s,_o[0]),f>1&&(m=cn(e,n,o,s,_o[1]))),f===2?_<_o[0]?u+=pe&&s>n&&s>o||s=0&&c<=1){for(var d=0,u=Hn(e,n,o,c),f=0;fr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);na[0]=-l,na[1]=l;var c=Math.abs(n-a);if(c<1e-4)return 0;if(c>=ku-1e-4){n=0,a=ku;var d=o?1:-1;return i>=na[0]+t&&i<=na[1]+t?d:0}if(n>a){var u=n;n=a,a=u}n<0&&(n+=ku,a+=ku);for(var f=0,p=0;p<2;p++){var m=na[p];if(m+t>i){var g=Math.atan2(s,m),d=o?1:-1;g<0&&(g=ku+g),(g>=n&&g<=a||g+ku>=n&&g+ku<=a)&&(g>Math.PI/2&&g1&&(r||(s+=Ys(l,c,d,u,n,a))),_&&(l=o[m],c=o[m+1],d=l,u=c),g){case Ql.M:d=o[m++],u=o[m++],l=d,c=u;break;case Ql.L:if(r){if(Ff(l,c,o[m],o[m+1],e,n,a))return!0}else s+=Ys(l,c,o[m],o[m+1],n,a)||0;l=o[m++],c=o[m++];break;case Ql.C:if(r){if(d2t(l,c,o[m++],o[m++],o[m++],o[m++],o[m],o[m+1],e,n,a))return!0}else s+=g2t(l,c,o[m++],o[m++],o[m++],o[m++],o[m],o[m+1],n,a)||0;l=o[m++],c=o[m++];break;case Ql.Q:if(r){if(f2t(l,c,o[m++],o[m++],o[m],o[m+1],e,n,a))return!0}else s+=_2t(l,c,o[m++],o[m++],o[m],o[m+1],n,a)||0;l=o[m++],c=o[m++];break;case Ql.A:var b=o[m++],w=o[m++],S=o[m++],x=o[m++],E=o[m++],T=o[m++];m+=1;var D=!!(1-o[m++]);f=Math.cos(E)*S+b,p=Math.sin(E)*x+w,_?(d=f,u=p):s+=Ys(l,c,f,p,n,a);var A=(n-b)*x/S+b;if(r){if(h2t(b,w,x,E,E+T,D,e,A,a))return!0}else s+=y2t(b,w,x,E,E+T,D,A,a);l=Math.cos(E+T)*S+b,c=Math.sin(E+T)*x+w;break;case Ql.R:d=l=o[m++],u=c=o[m++];var P=o[m++],O=o[m++];if(f=d+P,p=u+O,r){if(Ff(d,u,f,u,e,n,a)||Ff(f,u,f,p,e,n,a)||Ff(f,p,d,p,e,n,a)||Ff(d,p,d,u,e,n,a))return!0}else s+=Ys(f,u,f,p,n,a),s+=Ys(d,p,d,u,n,a);break;case Ql.Z:if(r){if(Ff(l,c,d,u,e,n,a))return!0}else s+=Ys(l,c,d,u,n,a);l=d,c=u;break}}return!r&&!v2t(c,u)&&(s+=Ys(l,c,d,u,n,a)||0),s!==0}function b2t(t,e,r){return hK(t,0,!1,e,r)}function w2t(t,e,r,n){return hK(t,e,!0,r,n)}var tw=bt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},id),S2t={style:bt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},YS.style)},VD=Tg.concat(["invisible","culling","z","z2","zlevel","parent"]),Xt=function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var o=a.style;for(var i in n)o[i]!==n[i]&&(o[i]=n[i]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s.5?W$:n>.2?tkt:H$}else if(r)return H$}return W$},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Re(n)){var a=this.__zr,o=!!(a&&a.isDarkMode()),i=xg(r,0)0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var o=!1;this.path||(o=!0,this.createPathProxy());var i=this.path;(o||this.__dirty&vh)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),r=i.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,c=n.lineWidth;if(!this.hasFill()){var d=this.strokeContainThreshold;c=Math.max(c,d??4)}l>1e-10&&(s.width+=c/l,s.height+=c/l,s.x-=c/l/2,s.y-=c/l/2)}return s}return r},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),o=this.getBoundingRect(),i=this.style;if(r=a[0],n=a[1],o.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=i.lineWidth,c=i.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),w2t(s,l/c,r,n)))return!0}if(this.hasFill())return b2t(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=vh,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:_e(a,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&vh)},e.prototype.createStyle=function(r){return d_(tw,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=_e({},this.shape))},e.prototype._applyStateObj=function(r,n,a,o,i,s){t.prototype._applyStateObj.call(this,r,n,a,o,i,s);var l=!(n&&o),c;if(n&&n.shape?i?o?c=n.shape:(c=_e({},a.shape),_e(c,n.shape)):(c=_e({},o?this.shape:a.shape),_e(c,n.shape)):l&&(c=a.shape),c)if(i){this.shape=_e({},this.shape);for(var d={},u=Ht(c),f=0;f0},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return d_(x2t,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=BS(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var o=r.lineWidth;a.x-=o/2,a.y-=o/2,a.width+=o,a.height+=o}this._rect=a}return this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(m_);Og.prototype.type="tspan";var C2t=bt({x:0,y:0},id),T2t={style:bt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},YS.style)};function k2t(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Bo=function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return d_(C2t,r)},e.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var o=k2t(n.image)?n.image:this.__image;if(!o)return 0;var i=r==="width"?"height":"width",s=n[i];return s==null?o[r]:o[r]/o[i]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return T2t},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ft(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(m_);Bo.prototype.type="image";function E2t(t,e){var r=e.x,n=e.y,a=e.width,o=e.height,i=e.r,s,l,c,d;a<0&&(r=r+a,a=-a),o<0&&(n=n+o,o=-o),typeof i=="number"?s=l=c=d=i:i instanceof Array?i.length===1?s=l=c=d=i[0]:i.length===2?(s=c=i[0],l=d=i[1]):i.length===3?(s=i[0],l=d=i[1],c=i[2]):(s=i[0],l=i[1],c=i[2],d=i[3]):s=l=c=d=0;var u;s+l>a&&(u=s+l,s*=a/u,l*=a/u),c+d>a&&(u=c+d,c*=a/u,d*=a/u),l+c>o&&(u=l+c,l*=o/u,c*=o/u),s+d>o&&(u=s+d,s*=o/u,d*=o/u),t.moveTo(r+s,n),t.lineTo(r+a-l,n),l!==0&&t.arc(r+a-l,n+l,l,-Math.PI/2,0),t.lineTo(r+a,n+o-c),c!==0&&t.arc(r+a-c,n+o-c,c,0,Math.PI/2),t.lineTo(r+d,n+o),d!==0&&t.arc(r+d,n+o-d,d,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var kh=Math.round;function pK(t,e,r){if(e){var n=e.x1,a=e.x2,o=e.y1,i=e.y2;t.x1=n,t.x2=a,t.y1=o,t.y2=i;var s=r&&r.lineWidth;return s&&(kh(n*2)===kh(a*2)&&(t.x1=t.x2=Ku(n,s,!0)),kh(o*2)===kh(i*2)&&(t.y1=t.y2=Ku(o,s,!0))),t}}function vK(t,e,r){if(e){var n=e.x,a=e.y,o=e.width,i=e.height;t.x=n,t.y=a,t.width=o,t.height=i;var s=r&&r.lineWidth;return s&&(t.x=Ku(n,s,!0),t.y=Ku(a,s,!0),t.width=Math.max(Ku(n+o,s,!1)-t.x,o===0?0:1),t.height=Math.max(Ku(a+i,s,!1)-t.y,i===0?0:1)),t}}function Ku(t,e,r){if(!e)return t;var n=kh(t*2);return(n+kh(e))%2===0?n/2:(n+(r?1:-1))/2}var D2t=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),M2t={},Sr=function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new D2t},e.prototype.buildPath=function(r,n){var a,o,i,s;if(this.subPixelOptimize){var l=vK(M2t,n,this.style);a=l.x,o=l.y,i=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,o=n.y,i=n.width,s=n.height;n.r?E2t(r,n):r.rect(a,o,i,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Xt);Sr.prototype.type="rect";var s7={fill:"#000"},l7=2,O2t={style:bt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},YS.style)},Gr=function(t){le(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=s7,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,F=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),N=i.calculatedLineHeight,B=0;B=0&&(B=T[N],B.align==="right");)this._placeToken(B,r,A,b,F,"right",S),P-=B.width,F-=B.width,N--;for(I+=(o-(I-_)-(w-F)-P)/2;O<=N;)B=T[O],this._placeToken(B,r,A,b,I+B.width/2,"center",S),I+=B.width,O++;b+=A}},e.prototype._placeToken=function(r,n,a,o,i,s,l){var c=n.rich[r.styleName]||{};c.text=r.text;var d=r.verticalAlign,u=o+a/2;d==="top"?u=o+r.height/2:d==="bottom"&&(u=o+a-r.height/2);var f=!r.isLineHolder&&YD(c);f&&this._renderBackground(c,n,s==="right"?i-r.width:s==="center"?i-r.width/2:i,u-r.height/2,r.width,r.height);var p=!!c.backgroundColor,m=r.textPadding;m&&(i=p7(i,s,m),u-=r.height/2-m[0]-r.innerHeight/2);var g=this._getOrCreateChild(Og),_=g.createStyle();g.useStyle(_);var b=this._defaultStyle,w=!1,S=0,x=h7("fill"in c?c.fill:"fill"in n?n.fill:(w=!0,b.fill)),E=f7("stroke"in c?c.stroke:"stroke"in n?n.stroke:!p&&!l&&(!b.autoStroke||w)?(S=l7,b.stroke):null),T=c.textShadowBlur>0||n.textShadowBlur>0;_.text=r.text,_.x=i,_.y=u,T&&(_.shadowBlur=c.textShadowBlur||n.textShadowBlur||0,_.shadowColor=c.textShadowColor||n.textShadowColor||"transparent",_.shadowOffsetX=c.textShadowOffsetX||n.textShadowOffsetX||0,_.shadowOffsetY=c.textShadowOffsetY||n.textShadowOffsetY||0),_.textAlign=s,_.textBaseline="middle",_.font=r.font||Lc,_.opacity=Wm(c.opacity,n.opacity,1),u7(_,c),E&&(_.lineWidth=Wm(c.lineWidth,n.lineWidth,S),_.lineDash=et(c.lineDash,n.lineDash),_.lineDashOffset=n.lineDashOffset||0,_.stroke=E),x&&(_.fill=x);var D=r.contentWidth,A=r.contentHeight;g.setBoundingRect(new Ft(Em(_.x,D,_.textAlign),mh(_.y,A,_.textBaseline),D,A))},e.prototype._renderBackground=function(r,n,a,o,i,s){var l=r.backgroundColor,c=r.borderWidth,d=r.borderColor,u=l&&l.image,f=l&&!u,p=r.borderRadius,m=this,g,_;if(f||r.lineHeight||c&&d){g=this._getOrCreateChild(Sr),g.useStyle(g.createStyle()),g.style.fill=null;var b=g.shape;b.x=a,b.y=o,b.width=i,b.height=s,b.r=p,g.dirtyShape()}if(f){var w=g.style;w.fill=l||null,w.fillOpacity=et(r.fillOpacity,1)}else if(u){_=this._getOrCreateChild(Bo),_.onload=function(){m.dirtyStyle()};var S=_.style;S.image=l.image,S.x=a,S.y=o,S.width=i,S.height=s}if(c&&d){var w=g.style;w.lineWidth=c,w.stroke=d,w.strokeOpacity=et(r.strokeOpacity,1),w.lineDash=r.borderDash,w.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(w.strokeFirst=!0,w.lineWidth*=2)}var x=(g||_).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=Wm(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return gK(r)&&(n=[r.fontStyle,r.fontWeight,mK(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&ui(n)||r.textFont||r.font},e}(m_),$2t={left:!0,right:1,center:1},A2t={top:1,bottom:1,middle:1},c7=["fontStyle","fontWeight","fontSize","fontFamily"];function mK(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?dR+"px":t+"px"}function u7(t,e){for(var r=0;r=0,o=!1;if(t instanceof Xt){var i=_K(t),s=a&&i.selectFill||i.normalFill,l=a&&i.selectStroke||i.normalStroke;if(zf(s)||zf(l)){n=n||{};var c=n.style||{};c.fill==="inherit"?(o=!0,n=_e({},n),c=_e({},c),c.fill=s):!zf(c.fill)&&zf(s)?(o=!0,n=_e({},n),c=_e({},c),c.fill=K1(s)):!zf(c.stroke)&&zf(l)&&(o||(n=_e({},n),c=_e({},c)),c.stroke=K1(l)),n.style=c}}if(n&&n.z2==null){o||(n=_e({},n));var d=t.z2EmphasisLift;n.z2=t.z2+(d??R2t)}return n}function j2t(t,e,r){if(r&&r.z2==null){r=_e({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??L2t)}return r}function W2t(t,e,r){var n=$t(t.currentStates,e)>=0,a=t.style.opacity,o=n?null:z2t(t,["opacity"],e,{opacity:1});r=r||{};var i=r.style||{};return i.opacity==null&&(r=_e({},r),i=_e({opacity:n?a:o.opacity*.1},i),r.style=i),r}function GD(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return B2t(this,t,e,r);if(t==="blur")return W2t(this,t,r);if(t==="select")return j2t(this,t,r)}return r}function H2t(t){t.stateProxy=GD;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=GD),r&&(r.stateProxy=GD)}function b7(t,e){!TK(t,e)&&!t.__highByOuter&&Sl(t,yK)}function w7(t,e){!TK(t,e)&&!t.__highByOuter&&Sl(t,bK)}function wd(t,e){t.__highByOuter|=1<<(e||0),Sl(t,yK)}function Sd(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Sl(t,bK)}function SK(t){Sl(t,NR)}function FR(t){Sl(t,wK)}function xK(t){Sl(t,N2t)}function CK(t){Sl(t,F2t)}function TK(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function kK(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(a,o){var i=RR(o),s=a==="series",l=s?t.getViewOfSeriesModel(o):t.getViewOfComponentModel(o);!s&&n.push(l),i.isBlured&&(l.group.traverse(function(c){wK(c)}),s&&r.push(o)),i.isBlured=!1}),W(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,e)})}function J$(t,e,r,n){var a=n.getModel();r=r||"coordinateSystem";function o(c,d){for(var u=0;u0){var s={dataIndex:i,seriesIndex:r.seriesIndex};o!=null&&(s.dataType=o),e.push(s)}})}),e}function Ec(t,e,r){EK(t,!0),Sl(t,H2t),J2t(t,e,r)}function X2t(t){EK(t,!1)}function xd(t,e,r,n){n?X2t(t):Ec(t,e,r)}function J2t(t,e,r){var n=Et(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var x7=["emphasis","blur","select"],K2t={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function op(t,e,r,n){r=r||"itemStyle";for(var a=0;a1&&(i*=qD(m),s*=qD(m));var g=(a===o?-1:1)*qD((i*i*(s*s)-i*i*(p*p)-s*s*(f*f))/(i*i*(p*p)+s*s*(f*f)))||0,_=g*i*p/s,b=g*-s*f/i,w=(t+r)/2+z0(u)*_-F0(u)*b,S=(e+n)/2+F0(u)*_+z0(u)*b,x=E7([1,0],[(f-_)/i,(p-b)/s]),E=[(f-_)/i,(p-b)/s],T=[(-1*f-_)/i,(-1*p-b)/s],D=E7(E,T);if(eA(E,T)<=-1&&(D=Xv),eA(E,T)>=1&&(D=0),D<0){var A=Math.round(D/Xv*1e6)/1e6;D=Xv*2+A%2*Xv}d.addData(c,w,S,i,s,x,D,u,o)}var nEt=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,aEt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function oEt(t){var e=new pl;if(!t)return e;var r=0,n=0,a=r,o=n,i,s=pl.CMD,l=t.match(nEt);if(!l)return e;for(var c=0;cB*B+j*j&&(A=O,P=I),{cx:A,cy:P,x0:-d,y0:-u,x1:A*(a/E-1),y1:P*(a/E-1)}}function hEt(t){var e;if(Ee(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function pEt(t,e){var r,n=Dm(e.r,0),a=Dm(e.r0||0,0),o=n>0,i=a>0;if(!(!o&&!i)){if(o||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=e.startAngle,c=e.endAngle;if(!(isNaN(l)||isNaN(c))){var d=e.cx,u=e.cy,f=!!e.clockwise,p=M7(c-l),m=p>XD&&p%XD;if(m>ti&&(p=m),!(n>ti))t.moveTo(d,u);else if(p>XD-ti)t.moveTo(d+n*jf(l),u+n*Eu(l)),t.arc(d,u,n,l,c,!f),a>ti&&(t.moveTo(d+a*jf(c),u+a*Eu(c)),t.arc(d,u,a,c,l,f));else{var g=void 0,_=void 0,b=void 0,w=void 0,S=void 0,x=void 0,E=void 0,T=void 0,D=void 0,A=void 0,P=void 0,O=void 0,I=void 0,F=void 0,N=void 0,B=void 0,j=n*jf(l),V=n*Eu(l),Q=a*jf(c),G=a*Eu(c),q=p>ti;if(q){var te=e.cornerRadius;te&&(r=hEt(te),g=r[0],_=r[1],b=r[2],w=r[3]);var z=M7(n-a)/2;if(S=Bi(z,b),x=Bi(z,w),E=Bi(z,g),T=Bi(z,_),P=D=Dm(S,x),O=A=Dm(E,T),(D>ti||A>ti)&&(I=n*jf(c),F=n*Eu(c),N=a*jf(l),B=a*Eu(l),p<$K)){var U=fEt(j,V,N,B,I,F,Q,G);if(U){var Z=j-U[0],K=V-U[1],se=I-U[0],we=F-U[1],Le=1/Eu(dEt((Z*se+K*we)/(Xm(Z*Z+K*K)*Xm(se*se+we*we)))/2),$e=Xm(U[0]*U[0]+U[1]*U[1]);P=Bi(D,(n-$e)/(Le+1)),O=Bi(A,(a-$e)/(Le-1))}}}if(!q)t.moveTo(d+j,u+V);else if(P>ti){var Me=Bi(b,P),ke=Bi(w,P),me=B0(N,B,j,V,n,Me,f),he=B0(I,F,Q,G,n,ke,f);t.moveTo(d+me.cx+me.x0,u+me.cy+me.y0),P0&&t.arc(d+me.cx,u+me.cy,Me,Ln(me.y0,me.x0),Ln(me.y1,me.x1),!f),t.arc(d,u,n,Ln(me.cy+me.y1,me.cx+me.x1),Ln(he.cy+he.y1,he.cx+he.x1),!f),ke>0&&t.arc(d+he.cx,u+he.cy,ke,Ln(he.y1,he.x1),Ln(he.y0,he.x0),!f))}else t.moveTo(d+j,u+V),t.arc(d,u,n,l,c,!f);if(!(a>ti)||!q)t.lineTo(d+Q,u+G);else if(O>ti){var Me=Bi(g,O),ke=Bi(_,O),me=B0(Q,G,I,F,a,-ke,f),he=B0(j,V,N,B,a,-Me,f);t.lineTo(d+me.cx+me.x0,u+me.cy+me.y0),O0&&t.arc(d+me.cx,u+me.cy,ke,Ln(me.y0,me.x0),Ln(me.y1,me.x1),!f),t.arc(d,u,a,Ln(me.cy+me.y1,me.cx+me.x1),Ln(he.cy+he.y1,he.cx+he.x1),f),Me>0&&t.arc(d+he.cx,u+he.cy,Me,Ln(he.y1,he.x1),Ln(he.y0,he.x0),!f))}else t.lineTo(d+Q,u+G),t.arc(d,u,a,c,l,f)}t.closePath()}}}var vEt=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),Ud=function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new vEt},e.prototype.buildPath=function(r,n){pEt(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Xt);Ud.prototype.type="sector";var mEt=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),g_=function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new mEt},e.prototype.buildPath=function(r,n){var a=n.cx,o=n.cy,i=Math.PI*2;r.moveTo(a+n.r,o),r.arc(a,o,n.r,0,i,!1),r.moveTo(a+n.r0,o),r.arc(a,o,n.r0,0,i,!0)},e}(Xt);g_.prototype.type="ring";function gEt(t,e,r,n){var a=[],o=[],i=[],s=[],l,c,d,u;if(n){d=[1/0,1/0],u=[-1/0,-1/0];for(var f=0,p=t.length;f=2){if(n){var o=gEt(a,n,r,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var i=a.length,s=0;s<(r?i:i-1);s++){var l=o[s*2],c=o[s*2+1],d=a[(s+1)%i];t.bezierCurveTo(l[0],l[1],c[0],c[1],d[0],d[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var s=1,u=a.length;sMu[1]){if(s=!1,o)return s;var d=Math.abs(Mu[0]-Du[1]),u=Math.abs(Du[0]-Mu[1]);Math.min(d,u)>a.len()&&(d0){var u=d.duration,f=d.delay,p=d.easing,m={duration:u,delay:f||0,easing:p,done:o,force:!!o||!!i,setToFinal:!c,scope:t,during:i};s?e.animateFrom(r,m):e.animateTo(r,m)}else e.stopAnimation(),!s&&e.attr(r),i&&i(1),o&&o()}function Zr(t,e,r,n,a,o){WR("update",t,e,r,n,a,o)}function Jn(t,e,r,n,a,o){WR("enter",t,e,r,n,a,o)}function zh(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function A7(t){return!t.isGroup}function OEt(t){return t.shape!=null}function BK(t,e,r){if(!t||!e)return;function n(i){var s={};return i.traverse(function(l){A7(l)&&l.anid&&(s[l.anid]=l)}),s}function a(i){var s={x:i.x,y:i.y,rotation:i.rotation};return OEt(i)&&(s.shape=_e({},i.shape)),s}var o=n(t);e.traverse(function(i){if(A7(i)&&i.anid){var s=o[i.anid];if(s){var l=a(i);i.attr(a(s)),Zr(i,l,r,Et(i).dataIndex)}}})}function YR(t,e){return ye(t,function(r){var n=r[0];n=iw(n,e.x),n=sw(n,e.x+e.width);var a=r[1];return a=iw(a,e.y),a=sw(a,e.y+e.height),[n,a]})}function jK(t,e){var r=iw(t.x,e.x),n=sw(t.x+t.width,e.x+e.width),a=iw(t.y,e.y),o=sw(t.y+t.height,e.y+e.height);if(n>=r&&o>=a)return{x:r,y:a,width:n-r,height:o-a}}function Dp(t,e,r){var n=_e({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),bt(a,r),new Bo(n)):KS(t.replace("path://",""),n,r,"center")}function $Et(t,e,r,n,a){for(var o=0,i=a[a.length-1];o1)return!1;var _=JD(p,m,d,u)/f;return!(_<0||_>1)}function JD(t,e,r,n){return t*n-r*e}function AEt(t){return t<=1e-6&&t>=-1e-6}function w_(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,a=Re(e)?{formatter:e}:e,o=r.mainType,i=r.componentIndex,s={componentType:o,name:n,$vars:["name"]};s[o+"Index"]=i;var l=t.formatterParamsExtra;l&&W(Ht(l),function(d){Nc(s,d)||(s[d]=l[d],s.$vars.push(d))});var c=Et(t.el);c.componentMainType=o,c.componentIndex=i,c.tooltipConfig={name:n,option:bt({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function P7(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function S_(t,e){if(t)if(Ee(t))for(var r=0;r=0&&s.push(l)}),s}}function C_(t,e){return pt(pt({},t,!0),e,!0)}const YEt={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},GEt={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var cw="ZH",GR="EN",Bh=GR,o1={},qR={},qK=ut.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Bh).toUpperCase();return t.indexOf(cw)>-1?cw:Bh}():Bh;function QS(t,e){t=t.toUpperCase(),qR[t]=new hr(e),o1[t]=e}function qEt(t){if(Re(t)){var e=o1[t.toUpperCase()]||{};return t===cw||t===GR?lt(e):pt(lt(e),lt(o1[Bh]),!1)}else return pt(lt(t),lt(o1[Bh]),!1)}function XEt(t){return qR[t]}function JEt(){return qR[Bh]}QS(GR,YEt);QS(cw,GEt);var XR=1e3,JR=XR*60,Jm=JR*60,ko=Jm*24,z7=ko*365,Mm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},H0="{yyyy}-{MM}-{dd}",B7={year:"{yyyy}",month:"{yyyy}-{MM}",day:H0,hour:H0+" "+Mm.hour,minute:H0+" "+Mm.minute,second:H0+" "+Mm.second,millisecond:Mm.none},QD=["year","month","day","hour","minute","second","millisecond"],XK=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function aa(t,e){return t+="","0000".substr(0,e-t.length)+t}function jh(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function KEt(t){return t===jh(t)}function ZEt(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function T_(t,e,r,n){var a=Io(t),o=a[KR(r)](),i=a[Wh(r)]()+1,s=Math.floor((i-1)/3)+1,l=a[ex(r)](),c=a["get"+(r?"UTC":"")+"Day"](),d=a[Ag(r)](),u=(d-1)%12+1,f=a[tx(r)](),p=a[rx(r)](),m=a[nx(r)](),g=d>=12?"pm":"am",_=g.toUpperCase(),b=n instanceof hr?n:XEt(n||qK)||JEt(),w=b.getModel("time"),S=w.get("month"),x=w.get("monthAbbr"),E=w.get("dayOfWeek"),T=w.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,aa(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,S[i-1]).replace(/{MMM}/g,x[i-1]).replace(/{MM}/g,aa(i,2)).replace(/{M}/g,i+"").replace(/{dd}/g,aa(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,E[c]).replace(/{ee}/g,T[c]).replace(/{e}/g,c+"").replace(/{HH}/g,aa(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,aa(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,aa(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,aa(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,aa(m,3)).replace(/{S}/g,m+"")}function QEt(t,e,r,n,a){var o=null;if(Re(r))o=r;else if(ot(r))o=r(t.value,e,{level:t.level});else{var i=_e({},Mm);if(t.level>0)for(var s=0;s=0;--s)if(l[c]){o=l[c];break}o=o||i.none}if(Ee(o)){var u=t.level==null?0:t.level>=0?t.level:o.length+t.level;u=Math.min(u,o.length-1),o=o[u]}}return T_(new Date(t.value),o,a,n)}function JK(t,e){var r=Io(t),n=r[Wh(e)]()+1,a=r[ex(e)](),o=r[Ag(e)](),i=r[tx(e)](),s=r[rx(e)](),l=r[nx(e)](),c=l===0,d=c&&s===0,u=d&&i===0,f=u&&o===0,p=f&&a===1,m=p&&n===1;return m?"year":p?"month":f?"day":u?"hour":d?"minute":c?"second":"millisecond"}function j7(t,e,r){var n=dr(t)?Io(t):t;switch(e=e||JK(t,r),e){case"year":return n[KR(r)]();case"half-year":return n[Wh(r)]()>=6?1:0;case"quarter":return Math.floor((n[Wh(r)]()+1)/4);case"month":return n[Wh(r)]();case"day":return n[ex(r)]();case"half-day":return n[Ag(r)]()/24;case"hour":return n[Ag(r)]();case"minute":return n[tx(r)]();case"second":return n[rx(r)]();case"millisecond":return n[nx(r)]()}}function KR(t){return t?"getUTCFullYear":"getFullYear"}function Wh(t){return t?"getUTCMonth":"getMonth"}function ex(t){return t?"getUTCDate":"getDate"}function Ag(t){return t?"getUTCHours":"getHours"}function tx(t){return t?"getUTCMinutes":"getMinutes"}function rx(t){return t?"getUTCSeconds":"getSeconds"}function nx(t){return t?"getUTCMilliseconds":"getMilliseconds"}function eDt(t){return t?"setUTCFullYear":"setFullYear"}function KK(t){return t?"setUTCMonth":"setMonth"}function ZK(t){return t?"setUTCDate":"setDate"}function QK(t){return t?"setUTCHours":"setHours"}function eZ(t){return t?"setUTCMinutes":"setMinutes"}function tZ(t){return t?"setUTCSeconds":"setSeconds"}function rZ(t){return t?"setUTCMilliseconds":"setMilliseconds"}function tDt(t,e,r,n,a,o,i,s){var l=new Gr({style:{text:t,font:e,align:r,verticalAlign:n,padding:a,rich:o,overflow:i?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function ZR(t){if(!QJ(t))return Re(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function QR(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var k_=gR;function aA(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(d){return d&&ui(d)?d:"-"}function o(d){return!!(d!=null&&!isNaN(d)&&isFinite(d))}var i=e==="time",s=t instanceof Date;if(i||s){var l=i?Io(t):t;if(isNaN(+l)){if(s)return"-"}else return T_(l,n,r)}if(e==="ordinal")return H1(t)?a(t):dr(t)&&o(t)?t+"":"-";var c=Eg(t);return o(c)?ZR(c):H1(t)?a(t):typeof t=="boolean"?t+"":"-"}var W7=["a","b","c","d","e","f","g"],eM=function(t,e){return"{"+t+(e??"")+"}"};function eL(t,e,r){Ee(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],o=0;o':'';var i=r.markerId||"markerX";return{renderMode:o,content:"{"+i+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function rDt(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd +yyyy`);var n=Io(e),a=r?"getUTC":"get",o=n[a+"FullYear"](),i=n[a+"Month"]()+1,s=n[a+"Date"](),l=n[a+"Hours"](),c=n[a+"Minutes"](),d=n[a+"Seconds"](),u=n[a+"Milliseconds"]();return t=t.replace("MM",aa(i,2)).replace("M",i).replace("yyyy",o).replace("yy",aa(o%100+"",2)).replace("dd",aa(s,2)).replace("d",s).replace("hh",aa(l,2)).replace("h",l).replace("mm",aa(c,2)).replace("m",c).replace("ss",aa(d,2)).replace("s",d).replace("SSS",aa(u,3)),t}function nDt(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function Cd(t,e){return e=e||"transparent",Re(t)?t:Ke(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function H7(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var i1=W,aDt=["left","right","top","bottom","width","height"],U0=[["width","left","right"],["height","top","bottom"]];function tL(t,e,r,n,a){var o=0,i=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,c){var d=l.getBoundingRect(),u=e.childAt(c+1),f=u&&u.getBoundingRect(),p,m;if(t==="horizontal"){var g=d.width+(f?-f.x+d.x:0);p=o+g,p>n||l.newline?(o=0,p=g,i+=s+r,s=d.height):s=Math.max(s,d.height)}else{var _=d.height+(f?-f.y+d.y:0);m=i+_,m>a||l.newline?(o+=s+r,i=0,m=_,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=i,l.markRedraw(),t==="horizontal"?o=p+r:i=m+r)})}var Hh=tL;Dt(tL,"vertical");Dt(tL,"horizontal");function us(t,e,r){r=k_(r||0);var n=e.width,a=e.height,o=wr(t.left,n),i=wr(t.top,a),s=wr(t.right,n),l=wr(t.bottom,a),c=wr(t.width,n),d=wr(t.height,a),u=r[2]+r[0],f=r[1]+r[3],p=t.aspect;switch(isNaN(c)&&(c=n-s-f-o),isNaN(d)&&(d=a-l-u-i),p!=null&&(isNaN(c)&&isNaN(d)&&(p>n/a?c=n*.8:d=a*.8),isNaN(c)&&(c=p*d),isNaN(d)&&(d=c/p)),isNaN(o)&&(o=n-s-c-f),isNaN(i)&&(i=a-l-d-u),t.left||t.right){case"center":o=n/2-c/2-r[3];break;case"right":o=n-c-f;break}switch(t.top||t.bottom){case"middle":case"center":i=a/2-d/2-r[0];break;case"bottom":i=a-d-u;break}o=o||0,i=i||0,isNaN(c)&&(c=n-f-o-(s||0)),isNaN(d)&&(d=a-u-i-(l||0));var m=new Ft(o+r[3],i+r[0],c,d);return m.margin=r,m}function oDt(t,e,r,n,a,o){o=o||t,o.x=t.x,o.y=t.y;var i;if(i=t.getBoundingRect(),t.needLocalTransform()){var s=t.getLocalTransform();i=i.clone(),i.applyTransform(s)}var l=us(bt({width:i.width,height:i.height},e),r,n),c=l.x-i.x,d=l.y-i.y;return o.x+=c,o.y+=d,o===t&&t.markRedraw(),!0}function Pg(t){var e=t.layoutMode||t.constructor.layoutMode;return Ke(e)?e:e?{type:e}:null}function sp(t,e,r){var n=r&&r.ignoreSize;!Ee(n)&&(n=[n,n]);var a=i(U0[0],0),o=i(U0[1],1);c(U0[0],t,a),c(U0[1],t,o);function i(d,u){var f={},p=0,m={},g=0,_=2;if(i1(d,function(S){m[S]=t[S]}),i1(d,function(S){s(e,S)&&(f[S]=m[S]=e[S]),l(f,S)&&p++,l(m,S)&&g++}),n[u])return l(e,d[1])?m[d[2]]=null:l(e,d[2])&&(m[d[1]]=null),m;if(g===_||!p)return m;if(p>=_)return f;for(var b=0;b=0;l--)s=pt(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var a=r+"Index",o=r+"Id";return v_(this.ecModel,r,{index:this.get(a,!0),id:this.get(o,!0)},n)},e.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(hr);lK(Pt,hr);US(Pt);UEt(Pt);VEt(Pt,lDt);function lDt(t){var e=[];return W(Pt.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=ye(e,function(r){return Zi(r).main}),t!=="dataset"&&$t(e,"dataset")<=0&&e.unshift("dataset"),e}var aZ="";typeof navigator<"u"&&(aZ=navigator.platform||"");var Wf="rgba(0, 0, 0, 0.2)";const cDt={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Wf,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Wf,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Wf,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Wf,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Wf,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Wf,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:aZ.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var oZ=dt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Wo="original",Ra="arrayRows",ys="objectRows",Cl="keyedColumns",Dc="typedArray",iZ="unknown",ns="column",Op="row",Ha={Must:1,Might:2,Not:3},sZ=fr();function uDt(t){sZ(t).datasetMap=dt()}function dDt(t,e,r){var n={},a=lZ(e);if(!a||!t)return n;var o=[],i=[],s=e.ecModel,l=sZ(s).datasetMap,c=a.uid+"_"+r.seriesLayoutBy,d,u;t=t.slice(),W(t,function(g,_){var b=Ke(g)?g:t[_]={name:g};b.type==="ordinal"&&d==null&&(d=_,u=m(b)),n[b.name]=[]});var f=l.get(c)||l.set(c,{categoryWayDim:u,valueWayDim:0});W(t,function(g,_){var b=g.name,w=m(g);if(d==null){var S=f.valueWayDim;p(n[b],S,w),p(i,S,w),f.valueWayDim+=w}else if(d===_)p(n[b],0,w),p(o,0,w);else{var S=f.categoryWayDim;p(n[b],S,w),p(i,S,w),f.categoryWayDim+=w}});function p(g,_,b){for(var w=0;we)return t[n];return t[r-1]}function gDt(t,e,r,n,a,o,i){o=o||t;var s=e(o),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(a))return c[a];var d=i==null||!n?r:mDt(n,i);if(d=d||r,!(!d||!d.length)){var u=d[l];return a&&(c[a]=u),s.paletteIdx=(l+1)%d.length,u}}function _Dt(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var V0,Jv,V7,Y7="\0_ec_inner",yDt=1,nL=function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,a,o,i,s){o=o||{},this.option=null,this._theme=new hr(o),this._locale=new hr(i),this._optionManager=s},e.prototype.setOption=function(r,n,a){var o=X7(n);this._optionManager.setOption(r,a,o),this._resetOption(null,o)},e.prototype.resetOption=function(r,n){return this._resetOption(r,X7(n))},e.prototype._resetOption=function(r,n){var a=!1,o=this._optionManager;if(!r||r==="recreate"){var i=o.mountOption(r==="recreate");!this.option||r==="recreate"?V7(this,i):(this.restoreData(),this._mergeOption(i,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=o.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=o.getMediaOption(this);l.length&&W(l,function(c){a=!0,this._mergeOption(c,n)},this)}return a},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var a=this.option,o=this._componentsMap,i=this._componentsCount,s=[],l=dt(),c=n&&n.replaceMergeMainTypeMap;uDt(this),W(r,function(u,f){u!=null&&(Pt.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?lt(u):pt(a[f],u,!0))}),c&&c.each(function(u,f){Pt.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),Pt.topologicalTravel(s,Pt.getAllClassMainTypes(),d,this);function d(u){var f=vDt(this,u,la(r[u])),p=o.get(u),m=p?c&&c.get(u)?"replaceMerge":"normalMerge":"replaceAll",g=Ckt(p,f,m);Akt(g,u,Pt),a[u]=null,o.set(u,null),i.set(u,0);var _=[],b=[],w=0,S;W(g,function(x,E){var T=x.existing,D=x.newOption;if(!D)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var A=u==="series",P=Pt.getClass(u,x.keyInfo.subType,!A);if(!P)return;if(u==="tooltip"){if(S)return;S=!0}if(T&&T.constructor===P)T.name=x.keyInfo.name,T.mergeOption(D,this),T.optionUpdated(D,!1);else{var O=_e({componentIndex:E},x.keyInfo);T=new P(D,this,this,O),_e(T,O),x.brandNew&&(T.__requireNewView=!0),T.init(D,this,this),T.optionUpdated(null,!0)}}T?(_.push(T.option),b.push(T),w++):(_.push(void 0),b.push(void 0))},this),a[u]=_,o.set(u,b),i.set(u,w),u==="series"&&V0(this)}this._seriesIndices||V0(this)},e.prototype.getOption=function(){var r=lt(this.option);return W(r,function(n,a){if(Pt.hasClass(a)){for(var o=la(n),i=o.length,s=!1,l=i-1;l>=0;l--)o[l]&&!Dg(o[l])?s=!0:(o[l]=null,!s&&i--);o.length=i,r[a]=o}}),delete r[Y7],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var o=a[n||0];if(o)return o;if(n==null){for(var i=0;i=e:r==="max"?t<=e:t===e}function DDt(t,e){return t.join(",")===e.join(",")}var Zo=W,Ig=Ke,J7=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function rM(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=J7.length;r=0;_--){var b=t[_];if(s||(m=b.data.rawIndexOf(b.stackedByDimension,p)),m>=0){var w=b.data.getByRawIndex(b.stackResultDimension,m);if(l==="all"||l==="positive"&&w>0||l==="negative"&&w<0||l==="samesign"&&f>=0&&w>0||l==="samesign"&&f<=0&&w<0){f=_kt(f,w),g=w;break}}}return n[0]=f,n[1]=g,n})})}var ox=function(){function t(e){this.data=e.data||(e.sourceFormat===Cl?{}:[]),this.sourceFormat=e.sourceFormat||iZ,this.seriesLayoutBy=e.seriesLayoutBy||ns,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;ng&&(g=S)}p[0]=m,p[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};nW=(e={},e[Ra+"_"+ns]={pure:!0,appendData:o},e[Ra+"_"+Op]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[ys]={pure:!0,appendData:o},e[Cl]={pure:!0,appendData:function(i){var s=this._data;W(i,function(l,c){for(var d=s[c]||(s[c]=[]),u=0;u<(l||[]).length;u++)d.push(l[u])})}},e[Wo]={appendData:o},e[Dc]={persistent:!1,pure:!0,appendData:function(i){this._data=i},clean:function(){this._offset+=this.count(),this._data=null}},e);function o(i){for(var s=0;s=0&&(g=i.interpolatedValue[_])}return g!=null?g+"":""})}},t.prototype.getRawValue=function(e,r){return lp(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function sW(t){var e,r;return Ke(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Km(t){return new VDt(t)}var VDt=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!n&&(o=this._plan(this.context));var i=d(this._modBy),s=this._modDataCount||0,l=d(e&&e.modBy),c=e&&e.modDataCount||0;(i!==l||s!==c)&&(o="reset");function d(w){return!(w>=1)&&(w=1),w}var u;(this._dirty||o==="reset")&&(this._dirty=!1,u=this._doReset(n)),this._modBy=l,this._modDataCount=c;var f=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,m=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!n&&(u||p1&&n>0?s:i}};return o;function i(){return e=t?null:la?-this._resultLT:0},t}(),GDt=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Mc(e,r)},t}();function qDt(t,e){var r=new GDt,n=t.data,a=r.sourceFormat=t.sourceFormat,o=t.startIndex,i="";t.seriesLayoutBy!==ns&&Ea(i);var s=[],l={},c=t.dimensionsDefine;if(c)W(c,function(g,_){var b=g.name,w={index:_,name:b,displayName:g.displayName};if(s.push(w),b!=null){var S="";Nc(l,b)&&Ea(S),l[b]=w}});else for(var d=0;d65535?rMt:nMt}function Uf(){return[1/0,-1/0]}function aMt(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function uW(t,e,r,n,a){var o=SZ[r||"float"];if(a){var i=t[e],s=i&&i.length;if(s!==n){for(var l=new o(n),c=0;c_[1]&&(_[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var a=this._provider,o=this._chunks,i=this._dimensions,s=i.length,l=this._rawExtent,c=ye(i,function(w){return w.property}),d=0;db[1]&&(b[1]=_)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r=0&&r=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&ne)o=i-1;else return i}return-1},t.prototype.indicesOfNearest=function(e,r,n){var a=this._chunks,o=a[e],i=[];if(!o)return i;n==null&&(n=1/0);for(var s=1/0,l=-1,c=0,d=0,u=this.count();d=0&&l<0)&&(s=m,l=p,c=0),p===l&&(i[c++]=d))}return i.length=c,i},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){e=new n(a);for(var o=0;o=u&&w<=f||isNaN(w))&&(l[c++]=g),g++}m=!0}else if(o===2){for(var _=p[a[0]],S=p[a[1]],x=e[a[1]][0],E=e[a[1]][1],b=0;b=u&&w<=f||isNaN(w))&&(T>=x&&T<=E||isNaN(T))&&(l[c++]=g),g++}m=!0}}if(!m)if(o===1)for(var b=0;b=u&&w<=f||isNaN(w))&&(l[c++]=D)}else for(var b=0;be[O][1])&&(A=!1)}A&&(l[c++]=r.getRawIndex(b))}return cb[1]&&(b[1]=_)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),a=n._chunks,o=a[e],i=this.count(),s=0,l=Math.floor(1/r),c=this.getRawIndex(0),d,u,f,p=new(Hf(this._rawCount))(Math.min((Math.ceil(i/l)+2)*2,i));p[s++]=c;for(var m=1;md&&(d=u,f=x)}I>0&&Is&&(g=s-d);for(var _=0;_m&&(m=w,p=d+_)}var S=this.getRawIndex(u),x=this.getRawIndex(p);ud-m&&(l=d-m,s.length=l);for(var g=0;gu[1]&&(u[1]=b),f[p++]=w}return o._count=p,o._indices=f,o._updateGetRawIdx(),o},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,a=this._chunks,o=0,i=this.count();ol&&(l=u)}return i=[s,l],this._extent[e]=i,i},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,o=0;o=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,a,o){return Mc(r[o],this._dimensions[o])}oM={arrayRows:e,objectRows:function(r,n,a,o){return Mc(r[n],this._dimensions[o])},keyedColumns:e,original:function(r,n,a,o){var i=r&&(r.value==null?r:r.value);return Mc(i instanceof Array?i[o]:i,this._dimensions[o])},typedArray:function(r,n,a,o){return r[o]}}}(),t}(),xZ=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,o;if(Y0(e)){var i=e,s=void 0,l=void 0,c=void 0;if(n){var d=r[0];d.prepareSource(),c=d.getSource(),s=c.data,l=c.sourceFormat,o=[d._getVersionSign()]}else s=i.get("data",!0),l=ua(s)?Dc:Wo,o=[];var u=this._getSourceMetaRawOption()||{},f=c&&c.metaRawOption||{},p=et(u.seriesLayoutBy,f.seriesLayoutBy)||null,m=et(u.sourceHeader,f.sourceHeader),g=et(u.dimensions,f.dimensions),_=p!==f.seriesLayoutBy||!!m!=!!f.sourceHeader||g;a=_?[iA(s,{seriesLayoutBy:p,sourceHeader:m,dimensions:g},l)]:[]}else{var b=e;if(n){var w=this._applyTransform(r);a=w.sourceList,o=w.upstreamSignList}else{var S=b.get("source",!0);a=[iA(S,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(a,o)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var o="";e.length!==1&&fW(o)}var i,s=[],l=[];return W(e,function(c){c.prepareSource();var d=c.getSource(a||0),u="";a!=null&&!d&&fW(u),s.push(d),l.push(c._getVersionSign())}),n?i=eMt(n,s,{datasetIndex:r.componentIndex}):a!=null&&(i=[FDt(s[0])]),{sourceList:i,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!t.noHeader;return W(t.blocks,function(a){var o=EZ(a);o>=e&&(e=o+ +(n&&(!o||lA(a)&&!a.noHeader)))}),e}return 0}function lMt(t,e,r,n){var a=e.noHeader,o=uMt(EZ(e)),i=[],s=e.blocks||[];eo(!s||Ee(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Nc(c,l)){var d=new YDt(c[l],null);s.sort(function(g,_){return d.evaluate(g.sortParam,_.sortParam)})}else l==="seriesDesc"&&s.reverse()}W(s,function(g,_){var b=e.valueFormatter,w=kZ(g)(b?_e(_e({},t),{valueFormatter:b}):t,g,_>0?o.html:0,n);w!=null&&i.push(w)});var u=t.renderMode==="richText"?i.join(o.richText):cA(n,i.join(""),a?r:o.html);if(a)return u;var f=aA(e.header,"ordinal",t.useUTC),p=TZ(n,t.renderMode).nameStyle,m=CZ(n);return t.renderMode==="richText"?DZ(t,f,p)+o.richText+u:cA(n,'
'+Yn(f)+"
"+u,r)}function cMt(t,e,r,n){var a=t.renderMode,o=e.noName,i=e.noValue,s=!e.markerType,l=e.name,c=t.useUTC,d=e.valueFormatter||t.valueFormatter||function(x){return x=Ee(x)?x:[x],ye(x,function(E,T){return aA(E,Ee(p)?p[T]:p,c)})};if(!(o&&i)){var u=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=o?"":aA(l,"ordinal",c),p=e.valueType,m=i?[]:d(e.value,e.dataIndex),g=!s||!o,_=!s&&o,b=TZ(n,a),w=b.nameStyle,S=b.valueStyle;return a==="richText"?(s?"":u)+(o?"":DZ(t,f,w))+(i?"":hMt(t,m,g,_,S)):cA(n,(s?"":u)+(o?"":dMt(f,!s,w))+(i?"":fMt(m,g,_,S)),r)}}function hW(t,e,r,n,a,o){if(t){var i=kZ(t),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return i(s,t,0,o)}}function uMt(t){return{html:iMt[t],richText:sMt[t]}}function cA(t,e,r){var n='
',a="margin: "+r+"px 0 0",o=CZ(t);return'
'+e+n+"
"}function dMt(t,e,r){var n=e?"margin-left:2px":"";return''+Yn(t)+""}function fMt(t,e,r,n){var a=r?"10px":"20px",o=e?"float:right;margin-left:"+a:"";return t=Ee(t)?t:[t],''+ye(t,function(i){return Yn(i)}).join("  ")+""}function DZ(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function hMt(t,e,r,n,a){var o=[a],i=n?10:20;return r&&o.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Ee(e)?e.join(" "):e,o)}function MZ(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Cd(n)}function OZ(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var iM=function(){function t(){this.richTextStyles={},this._nextStyleNameId=eK()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var a=n==="richText"?this._generateStyleName():null,o=nZ({color:r,type:e,renderMode:n,markerId:a});return Re(o)?o:(this.richTextStyles[a]=o.style,o.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};Ee(r)?W(r,function(o){return _e(n,o)}):_e(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},t}();function pMt(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,a=e.getData(),o=a.mapDimensionsAll("defaultedTooltip"),i=o.length,s=e.getRawValue(r),l=Ee(s),c=MZ(e,r),d,u,f,p;if(i>1||l&&!i){var m=vMt(s,e,r,o,c);d=m.inlineValues,u=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(i){var g=a.getDimensionInfo(o[0]);p=d=lp(a,r,o[0]),u=g.type}else p=d=l?s[0]:s;var _=$R(e),b=_&&e.name||"",w=a.getName(r),S=n?b:w;return ds("section",{header:b,noHeader:n||!_,sortParam:p,blocks:[ds("nameValue",{markerType:"item",markerColor:c,name:S,noName:!ui(S),value:d,valueType:u,dataIndex:r})].concat(f||[])})}function vMt(t,e,r,n,a){var o=e.getData(),i=ls(t,function(u,f,p){var m=o.getDimensionInfo(p);return u=u||m&&m.tooltip!==!1&&m.displayName!=null},!1),s=[],l=[],c=[];n.length?W(n,function(u){d(lp(o,r,u),u)}):W(t,d);function d(u,f){var p=o.getDimensionInfo(f);!p||p.otherDims.tooltip===!1||(i?c.push(ds("nameValue",{markerType:"subItem",markerColor:a,name:p.displayName,value:u,valueType:p.type})):(s.push(u),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:c}}var ec=fr();function G0(t,e){return t.getName(e)||t.getId(e)}var mMt="__universalTransitionEnabled",Kn=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Km({count:_Mt,reset:yMt}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var o=ec(this).sourceManager=new xZ(this);o.prepareSource();var i=this.getInitialData(r,a);vW(i,this),this.dataTask.context.data=i,ec(this).dataBeforeProcessed=i,pW(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=Pg(this),o=a?E_(r):{},i=this.subType;Pt.hasClass(i)&&(i+="Series"),pt(r,n.getTheme().get(this.subType)),pt(r,this.getDefaultOption()),Y$(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&sp(r,o,a)},e.prototype.mergeOption=function(r,n){r=pt(this.option,r,!0),this.fillDataTextStyle(r.data);var a=Pg(this);a&&sp(this.option,r,a);var o=ec(this).sourceManager;o.dirty(),o.prepareSource();var i=this.getInitialData(r,n);vW(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,ec(this).dataBeforeProcessed=i,pW(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(r){if(r&&!ua(r))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,a){var o=this.ecModel,i=rL.prototype.getColorFromPalette.call(this,r,n,a);return i||(i=o.getColorFromPalette(r,n,a)),i},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var o=this.option.selectedMode,i=this.getData(n);if(o==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(i)}return a},e.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var o=this.getData(n);return(a==="all"||a[G0(o,r)])&&!o.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[mMt])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var a,o,i=this.option,s=i.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")i.selectedMap="all";else if(s==="multiple"){Ke(i.selectedMap)||(i.selectedMap={});for(var c=i.selectedMap,d=0;d0&&this._innerSelect(r,n)}},e.registerClass=function(r){return Pt.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(Pt);da(Kn,ix);da(Kn,rL);lK(Kn,Pt);function pW(t){var e=t.name;$R(t)||(t.name=gMt(t)||e)}function gMt(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return W(r,function(a){var o=e.getDimensionInfo(a);o.displayName&&n.push(o.displayName)}),n.join(" ")}function _Mt(t){return t.model.getRawData().count()}function yMt(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),bMt}function bMt(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function vW(t,e){W(hJ(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Dt(wMt,e))})}function wMt(t,e){var r=uA(t);return r&&r.setOutputEnd((e||this).count()),e}function uA(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}var Qr=function(){function t(){this.group=new sr,this.uid=x_("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){},t.prototype.updateLayout=function(e,r,n,a){},t.prototype.updateVisual=function(e,r,n,a){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();PR(Qr);US(Qr);function sL(){var t=fr();return function(e){var r=t(e),n=e.pipelineContext,a=!!r.large,o=!!r.progressiveRender,i=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==i||o!==s)&&"reset"}}var $Z=fr(),SMt=sL(),En=function(){function t(){this.group=new sr,this.uid=x_("viewChart"),this.renderTask=Km({plan:xMt,reset:CMt}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.highlight=function(e,r,n,a){var o=e.getData(a&&a.dataType);o&&gW(o,a,"emphasis")},t.prototype.downplay=function(e,r,n,a){var o=e.getData(a&&a.dataType);o&&gW(o,a,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateLayout=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateVisual=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.eachRendered=function(e){S_(this.group,e)},t.markUpdateMethod=function(e,r){$Z(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function mW(t,e,r){t&&Z$(t)&&(e==="emphasis"?wd:Sd)(t,r)}function gW(t,e,r){var n=bd(t,e),a=e&&e.highlightKey!=null?Z2t(e.highlightKey):null;n!=null?W(la(n),function(o){mW(t.getItemGraphicEl(o),r,a)}):t.eachItemGraphicEl(function(o){mW(o,r,a)})}PR(En);US(En);function xMt(t){return SMt(t.model)}function CMt(t){var e=t.model,r=t.ecModel,n=t.api,a=t.payload,o=e.pipelineContext.progressiveRender,i=t.view,s=a&&$Z(a).updateMethod,l=o?"incrementalPrepareRender":s&&i[s]?s:"render";return l!=="render"&&i[l](e,r,n,a),TMt[l]}var TMt={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},uw="\0__throttleOriginMethod",_W="\0__throttleRate",yW="\0__throttleType";function D_(t,e,r){var n,a=0,o=0,i=null,s,l,c,d;e=e||0;function u(){o=new Date().getTime(),i=null,t.apply(l,c||[])}var f=function(){for(var p=[],m=0;m=0?u():i=setTimeout(u,-s),a=n};return f.clear=function(){i&&(clearTimeout(i),i=null)},f.debounceNextCall=function(p){d=p},f}function lx(t,e,r,n){var a=t[e];if(a){var o=a[uw]||a,i=a[yW],s=a[_W];if(s!==r||i!==n){if(r==null||!n)return t[e]=o;a=t[e]=D_(o,r,n==="debounce"),a[uw]=o,a[yW]=n,a[_W]=r}return a}}function dw(t,e){var r=t[e];r&&r[uw]&&(r.clear&&r.clear(),t[e]=r[uw])}var bW=fr(),wW={itemStyle:Mg(GK,!0),lineStyle:Mg(YK,!0)},kMt={lineStyle:"stroke",itemStyle:"fill"};function AZ(t,e){var r=t.visualStyleMapper||wW[e];return r||(console.warn("Unknown style type '"+e+"'."),wW.itemStyle)}function PZ(t,e){var r=t.visualDrawType||kMt[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var EMt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=t.getModel(n),o=AZ(t,n),i=o(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=PZ(t,n),c=i[l],d=ot(c)?c:null,u=i.fill==="auto"||i.stroke==="auto";if(!i[l]||d||u){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());i[l]||(i[l]=f,r.setVisual("colorFromPalette",!0)),i.fill=i.fill==="auto"||ot(i.fill)?f:i.fill,i.stroke=i.stroke==="auto"||ot(i.stroke)?f:i.stroke}if(r.setVisual("style",i),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&d)return r.setVisual("colorFromPalette",!1),{dataEach:function(p,m){var g=t.getDataParams(m),_=_e({},i);_[l]=d(g),p.setItemVisual(m,"style",_)}}}},Zv=new hr,DMt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=AZ(t,n),o=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(i,s){var l=i.getRawDataItem(s);if(l&&l[n]){Zv.option=l[n];var c=a(Zv),d=i.ensureUniqueItemVisual(s,"style");_e(d,c),Zv.option.decal&&(i.setItemVisual(s,"decal",Zv.option.decal),Zv.option.decal.dirty=!0),o in c&&i.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},MMt={performRawSeries:!0,overallReset:function(t){var e=dt();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,o=e.get(a);o||(o={},e.set(a,o)),bW(r).scope=o}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),a={},o=r.getData(),i=bW(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=PZ(r,s);o.each(function(c){var d=o.getRawIndex(c);a[d]=c}),n.each(function(c){var d=a[c],u=o.getItemVisual(d,"colorFromPalette");if(u){var f=o.ensureUniqueItemVisual(d,"style"),p=n.getName(c)||c+"",m=n.count();f[l]=r.getColorFromPalette(p,i,m)}})}})}},q0=Math.PI;function OMt(t,e){e=e||{},bt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new sr,n=new Sr({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var a=new Gr({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new Sr({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(o);var i;return e.showSpinner&&(i=new y_({shape:{startAngle:-q0/2,endAngle:-q0/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:q0*3/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:q0*3/2}).delay(300).start("circularInOut"),r.add(i)),r.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,c=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),d=t.getHeight()/2;e.showSpinner&&i.setShape({cx:c,cy:d}),o.setShape({x:c-l,y:d-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var IZ=function(){function t(e,r,n,a){this._stageTaskMap=dt(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,o=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,i=o?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/i):null;return{step:i,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),a=e.getData(),o=a.count(),i=n.progressiveEnabled&&r.incrementalPrepareRender&&o>=n.threshold,s=e.get("large")&&o>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?o:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=dt();e.eachSeries(function(a){var o=a.getProgressive(),i=a.uid;n.set(i,{id:i,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),r._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;W(this._allHandlers,function(a){var o=e.get(a.uid)||e.set(a.uid,{}),i="";eo(!(a.reset&&a.overallReset),i),a.reset&&this._createSeriesStageTask(a,o,r,n),a.overallReset&&this._createOverallStageTask(a,o,r,n)},this)},t.prototype.prepareView=function(e,r,n,a){var o=e.renderTask,i=o.context;i.model=r,i.ecModel=n,i.api=a,o.__block=!e.incrementalPrepareRender,this._pipe(r,o)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,a){a=a||{};var o=!1,i=this;W(e,function(l,c){if(!(a.visualType&&a.visualType!==l.visualType)){var d=i._stageTaskMap.get(l.uid),u=d.seriesTaskMap,f=d.overallTask;if(f){var p,m=f.agentStubMap;m.each(function(_){s(a,_)&&(_.dirty(),p=!0)}),p&&f.dirty(),i.updatePayload(f,n);var g=i.getPerformArgs(f,a.block);m.each(function(_){_.perform(g)}),f.perform(g)&&(o=!0)}else u&&u.each(function(_,b){s(a,_)&&_.dirty();var w=i.getPerformArgs(_,a.block);w.skip=!l.performRawSeries&&r.isSeriesFiltered(_.context.model),i.updatePayload(_,n),_.perform(w)&&(o=!0)})}});function s(l,c){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(c.__pipeline.id))}this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,a){var o=this,i=r.seriesTaskMap,s=r.seriesTaskMap=dt(),l=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(d):l?n.eachRawSeriesByType(l,d):c&&c(n,a).each(d);function d(u){var f=u.uid,p=s.set(f,i&&i.get(f)||Km({plan:RMt,reset:LMt,count:FMt}));p.context={model:u,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:o},o._pipe(u,p)}},t.prototype._createOverallStageTask=function(e,r,n,a){var o=this,i=r.overallTask=r.overallTask||Km({reset:$Mt});i.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:o};var s=i.agentStubMap,l=i.agentStubMap=dt(),c=e.seriesType,d=e.getTargetSeries,u=!0,f=!1,p="";eo(!e.createOnAllSeries,p),c?n.eachRawSeriesByType(c,m):d?d(n,a).each(m):(u=!1,W(n.getSeries(),m));function m(g){var _=g.uid,b=l.set(_,s&&s.get(_)||(f=!0,Km({reset:AMt,onDirty:IMt})));b.context={model:g,overallProgress:u},b.agent=i,b.__block=u,o._pipe(g,b)}f&&i.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},t.wrapStageHandler=function(e,r){return ot(e)&&(e={overallReset:e,seriesType:zMt(e)}),e.uid=x_("stageHandler"),r&&(e.visualType=r),e},t}();function $Mt(t){t.overallReset(t.ecModel,t.api,t.payload)}function AMt(t){return t.overallProgress&&PMt}function PMt(){this.agent.dirty(),this.getDownstream().dirty()}function IMt(){this.agent&&this.agent.dirty()}function RMt(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function LMt(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=la(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ye(e,function(r,n){return RZ(n)}):NMt}var NMt=RZ(0);function RZ(t){return function(e,r){var n=r.data,a=r.resetDefines[t];if(a&&a.dataEach)for(var o=e.start;o0&&p===c.length-f.length){var m=c.slice(0,p);m!=="data"&&(r.mainType=m,r[f.toLowerCase()]=l,d=!0)}}s.hasOwnProperty(c)&&(n[c]=l,d=!0),d||(a[c]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,o=n.packedEvent,i=n.model,s=n.view;if(!i||!s)return!0;var l=r.cptQuery,c=r.dataQuery;return d(l,i,"mainType")&&d(l,i,"subType")&&d(l,i,"index","componentIndex")&&d(l,i,"name")&&d(l,i,"id")&&d(c,o,"name")&&d(c,o,"dataIndex")&&d(c,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,a,o));function d(u,f,p,m){return u[p]==null||f[m||p]===u[p]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),dA=["symbol","symbolSize","symbolRotate","symbolOffset"],TW=dA.concat(["symbolKeepAspect"]),WMt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},a={},o=!1,i=0;i=0&&Zu(l)?l:.5;var c=t.createRadialGradient(i,s,0,i,s,l);return c}function fA(t,e,r){for(var n=e.type==="radial"?aOt(t,e,r):nOt(t,e,r),a=e.colorStops,o=0;o0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:dr(t)?[t]:Ee(t)?t:null}function cL(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&iOt(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(r=ye(r,function(o){return o/a}),n/=a)}return[r,n]}var sOt=new pl(!0);function pw(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function kW(t){return typeof t=="string"&&t!=="none"}function vw(t){var e=t.fill;return e!=null&&e!=="none"}function EW(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function DW(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function hA(t,e,r){var n=IR(e.image,e.__image,r);if(VS(n)){var a=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*Hm),o.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(o)}return a}}function lOt(t,e,r,n){var a,o=pw(r),i=vw(r),s=r.strokePercent,l=s<1,c=!e.path;(!e.silent||l)&&c&&e.createPathProxy();var d=e.path||sOt,u=e.__dirty;if(!n){var f=r.fill,p=r.stroke,m=i&&!!f.colorStops,g=o&&!!p.colorStops,_=i&&!!f.image,b=o&&!!p.image,w=void 0,S=void 0,x=void 0,E=void 0,T=void 0;(m||g)&&(T=e.getBoundingRect()),m&&(w=u?fA(t,f,T):e.__canvasFillGradient,e.__canvasFillGradient=w),g&&(S=u?fA(t,p,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),_&&(x=u||!e.__canvasFillPattern?hA(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=x),b&&(E=u||!e.__canvasStrokePattern?hA(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),m?t.fillStyle=w:_&&(x?t.fillStyle=x:i=!1),g?t.strokeStyle=S:b&&(E?t.strokeStyle=E:o=!1)}var D=e.getGlobalScale();d.setScale(D[0],D[1],e.segmentIgnoreThreshold);var A,P;t.setLineDash&&r.lineDash&&(a=cL(e),A=a[0],P=a[1]);var O=!0;(c||u&vh)&&(d.setDPR(t.dpr),l?d.setContext(null):(d.setContext(t),O=!1),d.reset(),e.buildPath(d,e.shape,n),d.toStatic(),e.pathUpdated()),O&&d.rebuildPath(t,l?s:1),A&&(t.setLineDash(A),t.lineDashOffset=P),n||(r.strokeFirst?(o&&DW(t,r),i&&EW(t,r)):(i&&EW(t,r),o&&DW(t,r))),A&&t.setLineDash([])}function cOt(t,e,r){var n=e.__image=IR(r.image,e.__image,e,e.onload);if(!(!n||!VS(n))){var a=r.x||0,o=r.y||0,i=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(i==null&&s!=null?i=s*l:s==null&&i!=null?s=i/l:i==null&&s==null&&(i=n.width,s=n.height),r.sWidth&&r.sHeight){var c=r.sx||0,d=r.sy||0;t.drawImage(n,c,d,r.sWidth,r.sHeight,a,o,i,s)}else if(r.sx&&r.sy){var c=r.sx,d=r.sy,u=i-c,f=s-d;t.drawImage(n,c,d,u,f,a,o,i,s)}else t.drawImage(n,a,o,i,s)}}function uOt(t,e,r){var n,a=r.text;if(a!=null&&(a+=""),a){t.font=r.font||Lc,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var o=void 0,i=void 0;t.setLineDash&&r.lineDash&&(n=cL(e),o=n[0],i=n[1]),o&&(t.setLineDash(o),t.lineDashOffset=i),r.strokeFirst?(pw(r)&&t.strokeText(a,r.x,r.y),vw(r)&&t.fillText(a,r.x,r.y)):(vw(r)&&t.fillText(a,r.x,r.y),pw(r)&&t.strokeText(a,r.x,r.y)),o&&t.setLineDash([])}}var MW=["shadowBlur","shadowOffsetX","shadowOffsetY"],OW=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function zZ(t,e,r,n,a){var o=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Da(t,a),o=!0;var i=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(i)?id.opacity:i}(n||e.blend!==r.blend)&&(o||(Da(t,a),o=!0),t.globalCompositeOperation=e.blend||id.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,a){if(!this[Nn]){if(this._disposed){this.id;return}var o,i,s;if(Ke(n)&&(a=n.lazyUpdate,o=n.silent,i=n.replaceMerge,s=n.transition,n=n.notMerge),this[Nn]=!0,!this._model||n){var l=new CDt(this._api),c=this._theme,d=this._model=new nL;d.scheduler=this._scheduler,d.ssr=this._ssr,d.init(null,null,null,c,this._locale,l)}this._model.setOption(r,{replaceMerge:i},mA);var u={seriesTransition:s,optionChanged:!0};if(a)this[Sa]={silent:o,updateParams:u},this[Nn]=!1,this.getZr().wakeUp();else{try{Yf(this),tc.update.call(this,null,u)}catch(f){throw this[Sa]=null,this[Nn]=!1,f}this._ssr||this._zr.flush(),this[Sa]=null,this[Nn]=!1,Qv.call(this,o),em.call(this,o)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ut.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(ut.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return W(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,o=[],i=this;W(n,function(l){a.eachComponent({mainType:l},function(c){var d=i._componentsMap[c.__viewId];d.group.ignore||(o.push(d),d.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return W(o,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,o=Math.min,i=Math.max,s=1/0;if(yw[a]){var l=s,c=s,d=-s,u=-s,f=[],p=r&&r.pixelRatio||this.getDevicePixelRatio();W(ld,function(S,x){if(S.group===a){var E=n?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(lt(r)),T=S.getDom().getBoundingClientRect();l=o(T.left,l),c=o(T.top,c),d=i(T.right,d),u=i(T.bottom,u),f.push({dom:E,left:T.left,top:T.top})}}),l*=p,c*=p,d*=p,u*=p;var m=d-l,g=u-c,_=fl.createCanvas(),b=U$(_,{renderer:n?"svg":"canvas"});if(b.resize({width:m,height:g}),n){var w="";return W(f,function(S){var x=S.left-l,E=S.top-c;w+=''+S.dom+""}),b.painter.getSvgRoot().innerHTML=w,r.connectedBackgroundColor&&b.painter.setBackgroundColor(r.connectedBackgroundColor),b.refreshImmediately(),b.painter.toDataURL()}else return r.connectedBackgroundColor&&b.add(new Sr({shape:{x:0,y:0,width:m,height:g},style:{fill:r.connectedBackgroundColor}})),W(f,function(S){var x=new Bo({style:{x:S.left*p-l,y:S.top*p-c,image:S.dom}});b.add(x)}),b.refreshImmediately(),_.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return dM(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return dM(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,o,i=Ym(a,r);return W(i,function(s,l){l.indexOf("Models")>=0&&W(s,function(c){var d=c.coordinateSystem;if(d&&d.containPoint)o=o||!!d.containPoint(n);else if(l==="seriesModels"){var u=this._chartsMap[c.__viewId];u&&u.containPoint&&(o=o||u.containPoint(n,c))}},this)},this),!!o},e.prototype.getVisual=function(r,n){var a=this._model,o=Ym(a,r,{defaultMainType:"series"}),i=o.seriesModel,s=i.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?UMt(s,l,n):lL(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;W(POt,function(n){var a=function(o){var i=r.getModel(),s=o.target,l,c=n==="globalout";if(c?l={}:s&&$m(s,function(m){var g=Et(m);if(g&&g.dataIndex!=null){var _=g.dataModel||i.getSeriesByIndex(g.seriesIndex);return l=_&&_.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=_e({},g.eventData),!0},!0),l){var d=l.componentType,u=l.componentIndex;(d==="markLine"||d==="markPoint"||d==="markArea")&&(d="series",u=l.seriesIndex);var f=d&&u!=null&&i.getComponent(d,u),p=f&&r[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=o,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:p},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),W(Zm,function(n,a){r._messageCenter.on(a,function(o){this.trigger(a,o)},r)}),W(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),VMt(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&oK(this.getDom(),hL,"");var n=this,a=n._api,o=n._model;W(n._componentsViews,function(i){i.dispose(o,a)}),W(n._chartsViews,function(i){i.dispose(o,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete ld[n.id]},e.prototype.resize=function(r){if(!this[Nn]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),o=r&&r.silent;this[Sa]&&(o==null&&(o=this[Sa].silent),a=!0,this[Sa]=null),this[Nn]=!0;try{a&&Yf(this),tc.update.call(this,{type:"resize",animation:_e({duration:0},r&&r.animation)})}catch(i){throw this[Nn]=!1,i}this[Nn]=!1,Qv.call(this,o),em.call(this,o)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Ke(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!gA[r]){var a=gA[r](this._api,n),o=this._zr;this._loadingFX=a,o.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=_e({},r);return n.type=Zm[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Ke(n)||(n={silent:!!n}),!!gw[r.type]&&this._model){if(this[Nn]){this._pendingActions.push(r);return}var a=n.silent;hM.call(this,r,a);var o=n.flush;o?this._zr.flush():o!==!1&&ut.browser.weChat&&this._throttledZrFlush(),Qv.call(this,a),em.call(this,a)}},e.prototype.updateLabelLayout=function(){ni.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),o=a.getSeriesByIndex(n);o.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Yf=function(u){var f=u._scheduler;f.restorePipelines(u._model),f.prepareStageTasks(),uM(u,!0),uM(u,!1),f.plan()},uM=function(u,f){for(var p=u._model,m=u._scheduler,g=f?u._componentsViews:u._chartsViews,_=f?u._componentsMap:u._chartsMap,b=u._zr,w=u._api,S=0;Sf.get("hoverLayerThreshold")&&!ut.node&&!ut.worker&&f.eachSeries(function(_){if(!_.preventUsingHoverLayer){var b=u._chartsMap[_.__viewId];b.__alive&&b.eachRendered(function(w){w.states.emphasis&&(w.states.emphasis.hoverLayer=!0)})}})}function i(u,f){var p=u.get("blendMode")||null;f.eachRendered(function(m){m.isGroup||(m.style.blend=p)})}function s(u,f){if(!u.preventAutoZ){var p=u.get("z")||0,m=u.get("zlevel")||0;f.eachRendered(function(g){return l(g,p,m,-1/0),!0})}}function l(u,f,p,m){var g=u.getTextContent(),_=u.getTextGuideLine(),b=u.isGroup;if(b)for(var w=u.childrenRef(),S=0;S0?{duration:g,delay:p.get("delay"),easing:p.get("easing")}:null;f.eachRendered(function(b){if(b.states&&b.states.emphasis){if(zh(b))return;if(b instanceof Xt&&Q2t(b),b.__dirty){var w=b.prevStates;w&&b.useStates(w)}if(m){b.stateTransition=_;var S=b.getTextContent(),x=b.getTextGuideLine();S&&(S.stateTransition=_),x&&(x.stateTransition=_)}b.__dirty&&a(b)}})}HW=function(u){return new(function(f){le(p,f);function p(){return f!==null&&f.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return u._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(m){for(;m;){var g=m.__ecComponentInfo;if(g!=null)return u._model.getComponent(g.mainType,g.index);m=m.parent}},p.prototype.enterEmphasis=function(m,g){wd(m,g),uo(u)},p.prototype.leaveEmphasis=function(m,g){Sd(m,g),uo(u)},p.prototype.enterBlur=function(m){SK(m),uo(u)},p.prototype.leaveBlur=function(m){FR(m),uo(u)},p.prototype.enterSelect=function(m){xK(m),uo(u)},p.prototype.leaveSelect=function(m){CK(m),uo(u)},p.prototype.getModel=function(){return u.getModel()},p.prototype.getViewOfComponentModel=function(m){return u.getViewOfComponentModel(m)},p.prototype.getViewOfSeriesModel=function(m){return u.getViewOfSeriesModel(m)},p}(uZ))(u)},rQ=function(u){function f(p,m){for(var g=0;g=0)){VW.push(r);var o=IZ.wrapStageHandler(r,a);o.__prio=e,o.__raw=r,t.push(o)}}function vx(t,e){gA[t]=e}function cQ(t){fR({createCanvas:t})}function wL(t,e,r){var n=VZ("registerMap");n&&n(t,e,r)}function uQ(t){var e=VZ("getMap");return e&&e(t)}var SL=QDt;Tl(uL,EMt);Tl(ux,DMt);Tl(ux,MMt);Tl(uL,WMt);Tl(ux,HMt);Tl(JZ,_Ot);hx(fZ);px(SOt,LDt);vx("default",OMt);Ho({type:sd,event:sd,update:sd},kn);Ho({type:n1,event:n1,update:n1},kn);Ho({type:Gm,event:Gm,update:Gm},kn);Ho({type:a1,event:a1,update:a1},kn);Ho({type:qm,event:qm,update:qm},kn);fx("light",BMt);fx("dark",FZ);var dQ={};function tm(t){return t==null?0:t.length||1}function YW(t){return t}var xL=function(){function t(e,r,n,a,o,i){this._old=e,this._new=r,this._oldKeyGetter=n||YW,this._newKeyGetter=a||YW,this.context=o,this._diffModeMultiple=i==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},a=new Array(e.length),o=new Array(r.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var i=0;i1){var d=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(d,i)}else c===1?(n[s]=null,this._update&&this._update(l,i)):this._remove&&this._remove(i)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},a={},o=[],i=[];this._initIndexMap(e,n,o,"_oldKeyGetter"),this._initIndexMap(r,a,i,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(d,c),a[l]=null;else if(u===1&&f>1)this._updateOneToMany&&this._updateOneToMany(d,c),a[l]=null;else if(u===1&&f===1)this._update&&this._update(d,c),a[l]=null;else if(u>1&&f>1)this._updateManyToMany&&this._updateManyToMany(d,c),a[l]=null;else if(u>1)for(var p=0;p1)for(var s=0;s30}var rm=Ke,rc=ye,WOt=typeof Int32Array>"u"?Array:Int32Array,HOt="e\0\0",GW=-1,UOt=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],VOt=["_approximateExtent"],qW,Q0,nm,am,mM,om,gM,as=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;hQ(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var o={},i=[],s={},l=!1,c={},d=0;d=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var o=this._nameList,i=this._idList,s=a.getSource().sourceFormat,l=s===Wo;if(l&&!a.pure)for(var c=[],d=e;d0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var o=a[r];return o==null&&(o=this.getVisual(r),Ee(o)?o=o.slice():rm(o)&&(o=_e({},o)),a[r]=o),o},t.prototype.setItemVisual=function(e,r,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,rm(r)?_e(a,r):a[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){rm(e)?_e(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?_e(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;I2t(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){W(this._graphicEls,function(n,a){n&&e&&e.call(r,n,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:rc(this.dimensions,this._getDimInfo,this),this.hostModel)),mM(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ot(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(LS(arguments)))})},t.internalField=function(){qW=function(e){var r=e._invertedIndicesMap;W(r,function(n,a){var o=e._dimInfos[a],i=o.ordinalMeta,s=e._store;if(i){n=r[a]=new WOt(i.categories.length);for(var l=0;l1&&(l+="__ec__"+d),a[r]=l}}}(),t}();function YOt(t,e){return CL(t,e).dimensions}function CL(t,e){aL(t)||(t=hZ(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],a=dt(),o=[],i=qOt(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&mQ(i),l=n===t.dimensionsDefine,c=l?vQ(t):pQ(n),d=e.encodeDefine;!d&&e.encodeDefaulter&&(d=e.encodeDefaulter(t,i));for(var u=dt(d),f=new wZ(i),p=0;p0&&(n.name=a+(o-1)),o++,e.set(a,o)}}function qOt(t,e,r,n){var a=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return W(e,function(o){var i;Ke(o)&&(i=o.dimsDef)&&(a=Math.max(a,i.length))}),a}function XOt(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var JOt=function(){function t(e){this.coordSysDims=[],this.axisMap=dt(),this.categoryAxisMap=dt(),this.coordSysName=e}return t}();function KOt(t){var e=t.get("coordinateSystem"),r=new JOt(e),n=ZOt[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var ZOt={cartesian2d:function(t,e,r,n){var a=t.getReferringComponents("xAxis",ia).models[0],o=t.getReferringComponents("yAxis",ia).models[0];e.coordSysDims=["x","y"],r.set("x",a),r.set("y",o),Gf(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),Gf(o)&&(n.set("y",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var a=t.getReferringComponents("singleAxis",ia).models[0];e.coordSysDims=["single"],r.set("single",a),Gf(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var a=t.getReferringComponents("polar",ia).models[0],o=a.findAxisModel("radiusAxis"),i=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",o),r.set("angle",i),Gf(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),Gf(i)&&(n.set("angle",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var a=t.ecModel,o=a.getComponent("parallel",t.get("parallelIndex")),i=e.coordSysDims=o.dimensions.slice();W(o.parallelAxisIndex,function(s,l){var c=a.getComponent("parallelAxis",s),d=i[l];r.set(d,c),Gf(c)&&(n.set(d,c),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Gf(t){return t.get("type")==="category"}function gQ(t,e,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,o,i,s;QOt(e)?o=e:(i=e.schema,o=i.dimensions,s=e.store);var l=!!(t&&t.get("stack")),c,d,u,f;if(W(o,function(w,S){Re(w)&&(o[S]=w={name:w}),l&&!w.isExtraCoord&&(!n&&!c&&w.ordinalMeta&&(c=w),!d&&w.type!=="ordinal"&&w.type!=="time"&&(!a||a===w.coordDim)&&(d=w))}),d&&!n&&!c&&(n=!0),d){u="__\0ecstackresult_"+t.id,f="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var p=d.coordDim,m=d.type,g=0;W(o,function(w){w.coordDim===p&&g++});var _={name:u,coordDim:p,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},b={name:f,coordDim:f,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};i?(s&&(_.storeDimIndex=s.ensureCalculationDimension(f,m),b.storeDimIndex=s.ensureCalculationDimension(u,m)),i.appendCalculationDimension(_),i.appendCalculationDimension(b)):(o.push(_),o.push(b))}return{stackedDimension:d&&d.name,stackedByDimension:c&&c.name,isStackedByIndex:n,stackedOverDimension:f,stackResultDimension:u}}function QOt(t){return!hQ(t.schema)}function Fc(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function TL(t,e){return Fc(t,e)?t.getCalculationInfo("stackResultDimension"):e}function e$t(t,e){var r=t.get("coordinateSystem"),n=ax.get(r),a;return e&&e.coordSysDims&&(a=ye(e.coordSysDims,function(o){var i={name:o},s=e.axisMap.get(o);if(s){var l=s.get("type");i.type=FOt(l)}return i})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function t$t(t,e,r){var n,a;return r&&W(t,function(o,i){var s=o.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=i),o.ordinalMeta=l.getOrdinalMeta(),e&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(t[n].otherDims.itemName=0),n}function A_(t,e,r){r=r||{};var n=e.getSourceManager(),a,o=!1;a=n.getSource(),o=a.sourceFormat===Wo;var i=KOt(e),s=e$t(e,i),l=r.useEncodeDefaulter,c=ot(l)?l:l?Dt(dDt,s,e):null,d={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},u=CL(a,d),f=t$t(u.dimensions,r.createInvertedIndices,i),p=o?null:n.getSharedDataStore(u),m=gQ(e,{schema:u,store:p}),g=new as(u,e);g.setCalculationInfo(m);var _=f!=null&&r$t(a)?function(b,w,S,x){return x===f?S:this.defaultDimValueGetter(b,w,S,x)}:null;return g.hasItemOption=!1,g.initData(o?a:p,null,_),g}function r$t(t){if(t.sourceFormat===Wo){var e=n$t(t.data||[]);return!Ee(kp(e))}}function n$t(t){for(var e=0;er[1]&&(r[1]=e[1])},t.prototype.unionExtentFromData=function(e,r){this.unionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();US(bs);var a$t=0,_A=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++a$t}return t.createByAxisModel=function(e){var r=e.option,n=r.data,a=n&&ye(n,o$t);return new t({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!Re(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,r;var a=this._getOrCreateMap();return r=a.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,a.set(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=dt(this.categories))},t}();function o$t(t){return Ke(t)&&t.value!=null?t.value:t+""}function yA(t){return t.type==="interval"||t.type==="log"}function i$t(t,e,r,n){var a={},o=t[1]-t[0],i=a.interval=OR(o/e,!0);r!=null&&in&&(i=a.interval=n);var s=a.intervalPrecision=_Q(i),l=a.niceTickExtent=[Yr(Math.ceil(t[0]/i)*i,s),Yr(Math.floor(t[1]/i)*i,s)];return s$t(l,t),a}function _M(t){var e=Math.pow(10,HS(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Yr(r*e)}function _Q(t){return di(t)+2}function XW(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function s$t(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),XW(t,0,e),XW(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function mx(t,e){return t>=e[0]&&t<=e[1]}function gx(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function _x(t,e){return t*(e[1]-e[0])+e[0]}var yx=function(t){le(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new _A({})),Ee(a)&&(a=new _A({categories:ye(a,function(o){return Ke(o)?o.value:o})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:Re(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return r=this.parse(r),mx(r,this._extent)&&this._ordinalMeta.categories[r]!=null},e.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),gx(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(_x(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],i=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);i=0&&r=0&&r=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(bs);bs.registerClass(yx);var Pu=Yr,vl=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return mx(r,this._extent)},e.prototype.normalize=function(r){return gx(r,this._extent)},e.prototype.scale=function(r){return _x(r,this._extent)},e.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},e.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=_Q(r)},e.prototype.getTicks=function(r){var n=this._interval,a=this._extent,o=this._niceExtent,i=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]l)return[];var d=s.length?s[s.length-1].value:o[1];return a[1]>d&&(r?s.push({value:Pu(d+n,i)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],o=this.getExtent(),i=1;io[0]&&p0&&(o=o===null?s:Math.min(o,s))}r[n]=o}}return r}function SQ(t){var e=u$t(t),r=[];return W(t,function(n){var a=n.coordinateSystem,o=a.getBaseAxis(),i=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,c=e[l],d=Math.abs(i[1]-i[0]),u=o.scale.getExtent(),f=Math.abs(u[1]-u[0]);s=c?d/f*c:d}else{var p=n.getData();s=Math.abs(i[1]-i[0])/p.count()}var m=wr(n.get("barWidth"),s),g=wr(n.get("barMaxWidth"),s),_=wr(n.get("barMinWidth")||(CQ(n)?.5:1),s),b=n.get("barGap"),w=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:m,barMaxWidth:g,barMinWidth:_,barGap:b,barCategoryGap:w,axisKey:kL(o),stackId:bQ(n)})}),d$t(r)}function d$t(t){var e={};W(t,function(n,a){var o=n.axisKey,i=n.bandWidth,s=e[o]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[o]=s;var c=n.stackId;l[c]||s.autoWidthCount++,l[c]=l[c]||{width:0,maxWidth:0};var d=n.barWidth;d&&!l[c].width&&(l[c].width=d,d=Math.min(s.remainedWidth,d),s.remainedWidth-=d);var u=n.barMaxWidth;u&&(l[c].maxWidth=u);var f=n.barMinWidth;f&&(l[c].minWidth=f);var p=n.barGap;p!=null&&(s.gap=p);var m=n.barCategoryGap;m!=null&&(s.categoryGap=m)});var r={};return W(e,function(n,a){r[a]={};var o=n.stacks,i=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ht(o).length;s=Math.max(35-l*4,15)+"%"}var c=wr(s,i),d=wr(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,p=(u-c)/(f+(f-1)*d);p=Math.max(p,0),W(o,function(b){var w=b.maxWidth,S=b.minWidth;if(b.width){var x=b.width;w&&(x=Math.min(x,w)),S&&(x=Math.max(x,S)),b.width=x,u-=x+d*x,f--}else{var x=p;w&&wx&&(x=S),x!==p&&(b.width=x,u-=x+d*x,f--)}}),p=(u-c)/(f+(f-1)*d),p=Math.max(p,0);var m=0,g;W(o,function(b,w){b.width||(b.width=p),g=b,m+=b.width*(1+d)}),g&&(m-=g.width*d);var _=-m/2;W(o,function(b,w){r[a][w]=r[a][w]||{bandWidth:i,offset:_,width:b.width},_+=b.width*(1+d)})}),r}function f$t(t,e,r){if(t&&e){var n=t[kL(e)];return n}}function h$t(t,e){var r=wQ(t,e),n=SQ(r);W(r,function(a){var o=a.getData(),i=a.coordinateSystem,s=i.getBaseAxis(),l=bQ(a),c=n[kL(s)][l],d=c.offset,u=c.width;o.setLayout({bandWidth:c.bandWidth,offset:d,size:u})})}function p$t(t){return{seriesType:t,plan:sL(),reset:function(e){if(xQ(e)){var r=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),o=n.getOtherAxis(a),i=r.getDimensionIndex(r.mapDimension(o.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=e.get("showBackground",!0),c=r.mapDimension(o.dim),d=r.getCalculationInfo("stackResultDimension"),u=Fc(r,c)&&!!r.getCalculationInfo("stackedOnSeries"),f=o.isHorizontal(),p=v$t(a,o),m=CQ(e),g=e.get("barMinHeight")||0,_=d&&r.getDimensionIndex(d),b=r.getLayout("size"),w=r.getLayout("offset");return{progress:function(S,x){for(var E=S.count,T=m&&Qs(E*3),D=m&&l&&Qs(E*3),A=m&&Qs(E),P=n.master.getRect(),O=f?P.width:P.height,I,F=x.getStore(),N=0;(I=S.next())!=null;){var B=F.get(u?_:i,I),j=F.get(s,I),V=p,Q=void 0;u&&(Q=+B-F.get(i,I));var G=void 0,q=void 0,te=void 0,z=void 0;if(f){var U=n.dataToPoint([B,j]);if(u){var Z=n.dataToPoint([Q,j]);V=Z[0]}G=V,q=U[1]+w,te=U[0]-V,z=b,Math.abs(te)0?r:1:r))}var m$t=function(t,e,r,n){for(;r>>1;t[a][1]a&&(this._approxInterval=a);var s=eb.length,l=Math.min(m$t(eb,this._approxInterval,0,s),s-1);this._interval=eb[l][1],this._minLevelUnit=eb[Math.max(l-1,0)][0]},e.prototype.parse=function(r){return dr(r)?r:+Io(r)},e.prototype.contain=function(r){return mx(this.parse(r),this._extent)},e.prototype.normalize=function(r){return gx(this.parse(r),this._extent)},e.prototype.scale=function(r){return _x(r,this._extent)},e.type="time",e}(vl),eb=[["second",XR],["minute",JR],["hour",Jm],["quarter-day",Jm*6],["half-day",Jm*12],["day",ko*1.2],["half-week",ko*3.5],["week",ko*7],["month",ko*31],["quarter",ko*95],["half-year",z7/2],["year",z7]];function g$t(t,e,r,n){var a=Io(e),o=Io(r),i=function(m){return j7(a,m,n)===j7(o,m,n)},s=function(){return i("year")},l=function(){return s()&&i("month")},c=function(){return l()&&i("day")},d=function(){return c()&&i("hour")},u=function(){return d()&&i("minute")},f=function(){return u()&&i("second")},p=function(){return f()&&i("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return c();case"hour":return d();case"minute":return u();case"second":return f();case"millisecond":return p()}}function _$t(t,e){return t/=ko,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function y$t(t){var e=30*ko;return t/=e,t>6?6:t>3?3:t>2?2:1}function b$t(t){return t/=Jm,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function JW(t,e){return t/=e?JR:XR,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function w$t(t){return OR(t,!0)}function S$t(t,e,r){var n=new Date(t);switch(jh(e)){case"year":case"month":n[KK(r)](0);case"day":n[ZK(r)](1);case"hour":n[QK(r)](0);case"minute":n[eZ(r)](0);case"second":n[tZ(r)](0),n[rZ(r)](0)}return n.getTime()}function x$t(t,e,r,n){var a=1e4,o=XK,i=0;function s(O,I,F,N,B,j,V){for(var Q=new Date(I),G=I,q=Q[N]();G1&&j===0&&F.unshift({value:F[0].value-G})}}for(var j=0;j=n[0]&&w<=n[1]&&u++)}var S=(n[1]-n[0])/e;if(u>S*1.5&&f>S/1.5||(c.push(_),u>S||t===o[p]))break}d=[]}}}for(var x=br(ye(c,function(O){return br(O,function(I){return I.value>=n[0]&&I.value<=n[1]&&!I.notAdd})}),function(O){return O.length>0}),E=[],T=x.length-1,p=0;p0;)o*=10;var s=[Yr(k$t(n[0]/o)*o),Yr(T$t(n[1]/o)*o)];this._interval=o,this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){Qm.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return r=Qo(r)/Qo(this.base),mx(r,this._extent)},e.prototype.normalize=function(r){return r=Qo(r)/Qo(this.base),gx(r,this._extent)},e.prototype.scale=function(r){return r=_x(r,this._extent),tb(this.base,r)},e.type="log",e}(bs),TQ=DL.prototype;TQ.getMinorTicks=Qm.getMinorTicks;TQ.getLabel=Qm.getLabel;function rb(t,e){return C$t(t,di(e))}bs.registerClass(DL);var E$t=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]0&&l>0&&!c&&(s=0),s<0&&l<0&&!d&&(l=0));var f=this._determinedMin,p=this._determinedMax;return f!=null&&(s=f,c=!0),p!=null&&(l=p,d=!0),{min:s,max:l,minFixed:c,maxFixed:d,isBlank:u}},t.prototype.modifyDataMinMax=function(e,r){this[M$t[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=D$t[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),D$t={min:"_determinedMin",max:"_determinedMax"},M$t={min:"_dataMin",max:"_dataMax"};function kQ(t,e,r){var n=t.rawExtentInfo;return n||(n=new E$t(t,e,r),t.rawExtentInfo=n,n)}function nb(t,e){return e==null?null:bg(e)?NaN:t.parse(e)}function EQ(t,e){var r=t.type,n=kQ(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var a=n.min,o=n.max,i=e.ecModel;if(i&&r==="time"){var s=wQ("bar",i),l=!1;if(W(s,function(u){l=l||u.getBaseAxis()===e.axis}),l){var c=SQ(s),d=O$t(a,o,e,c);a=d.min,o=d.max}}return{extent:[a,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function O$t(t,e,r,n){var a=r.axis.getExtent(),o=Math.abs(a[1]-a[0]),i=f$t(n,r.axis);if(i===void 0)return{min:t,max:e};var s=1/0;W(i,function(p){s=Math.min(p.offset,s)});var l=-1/0;W(i,function(p){l=Math.max(p.offset+p.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,d=e-t,u=1-(s+l)/o,f=d/u-d;return e+=f*(l/c),t-=f*(s/c),{min:t,max:e}}function bA(t,e){var r=e,n=EQ(t,r),a=n.extent,o=r.get("splitNumber");t instanceof DL&&(t.base=r.get("logBase"));var i=t.type,s=r.get("interval"),l=i==="interval"||i==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function DQ(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new yx({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new EL({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(bs.getClass(e)||vl)}}function $$t(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function $p(t){var e=t.getLabelModel().get("formatter"),r=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(n){return function(a,o){return t.scale.getFormattedLabel(a,o,n)}}(e):Re(e)?function(n){return function(a){var o=t.scale.getLabel(a),i=n.replace("{value}",o??"");return i}}(e):ot(e)?function(n){return function(a,o){return r!=null&&(o=a.value-r),n(ML(t,a),o,a.level!=null?{level:a.level}:null)}}(e):function(n){return t.scale.getLabel(n)}}function ML(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function A$t(t){var e=t.model,r=t.scale;if(!(!e.get(["axisLabel","show"])||r.isBlank())){var n,a,o=r.getExtent();r instanceof yx?a=r.count():(n=r.getTicks(),a=n.length);var i=t.getLabelModel(),s=$p(t),l,c=1;a>40&&(c=Math.ceil(a/40));for(var d=0;dt[1]&&(t[1]=a[1])})}var $L=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}();function R$t(t){return A_(null,t)}var L$t={isDimensionStacked:Fc,enableDataStack:gQ,getStackedDimension:TL};function N$t(t,e){var r=e;e instanceof hr||(r=new hr(e));var n=DQ(r);return n.setExtent(t[0],t[1]),bA(n,r),n}function F$t(t){da(t,$L)}function z$t(t,e){return e=e||{},Ka(t,null,null,e.state!=="normal")}const $Q=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:YOt,createList:R$t,createScale:N$t,createSymbol:to,createTextStyle:z$t,dataStack:L$t,enableHoverEmphasis:Ec,getECData:Et,getLayoutRect:us,mixinAxisModelCommonMethods:F$t},Symbol.toStringTag,{value:"Module"}));var ZW=[],B$t={registerPreprocessor:hx,registerProcessor:px,registerPostInit:mL,registerPostUpdate:gL,registerUpdateLifecycle:$_,registerAction:Ho,registerCoordinateSystem:_L,registerLayout:yL,registerVisual:Tl,registerTransform:SL,registerLoading:vx,registerMap:wL,registerImpl:yOt,PRIORITY:dL,ComponentModel:Pt,ComponentView:Qr,SeriesModel:Kn,ChartView:En,registerComponentModel:function(t){Pt.registerClass(t)},registerComponentView:function(t){Qr.registerClass(t)},registerSeriesModel:function(t){Kn.registerClass(t)},registerChartView:function(t){En.registerClass(t)},registerSubTypeDefaulter:function(t,e){Pt.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){YJ(t,e)}};function Dn(t){if(Ee(t)){W(t,function(e){Dn(e)});return}$t(ZW,t)>=0||(ZW.push(t),ot(t)&&(t={install:t}),t.install(B$t))}var j$t=1e-8;function QW(t,e){return Math.abs(t-e)a&&(n=i,a=l)}if(n)return H$t(n.exterior);var c=this.getBoundingRect();return[c.x+c.width/2,c.y+c.height/2]},e.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var a=[1/0,1/0],o=[-1/0,-1/0],i=this.geometries;return W(i,function(s){s.type==="polygon"?tH(s.exterior,a,o,r):W(s.points,function(l){tH(l,a,o,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(o[0])&&isFinite(o[1])||(a[0]=a[1]=o[0]=o[1]=0),n=new Ft(a[0],a[1],o[0]-a[0],o[1]-a[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var o=0,i=a.length;o>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=o,a=s,o=l,n.push([s/r,l/r])}return n}function bw(t,e){return t=V$t(t),ye(br(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,a=r.geometry,o=[];switch(a.type){case"Polygon":var i=a.coordinates;o.push(new rH(i[0],i.slice(1)));break;case"MultiPolygon":W(a.coordinates,function(l){l[0]&&o.push(new rH(l[0],l.slice(1)))});break;case"LineString":o.push(new nH([a.coordinates]));break;case"MultiLineString":o.push(new nH(a.coordinates))}var s=new U$t(n[e||"name"],o,n.cp);return s.properties=n,s})}const IQ=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:ykt,asc:Ks,getPercentWithPrecision:mkt,getPixelPrecision:DR,getPrecision:di,getPrecisionSafe:KJ,isNumeric:QJ,isRadianAroundZero:kg,linearMap:Cn,nice:OR,numericToNumber:Eg,parseDate:Io,quantile:wkt,quantity:ZJ,quantityExponent:HS,reformIntervals:Skt,remRadian:MR,round:Yr},Symbol.toStringTag,{value:"Module"})),RQ=Object.freeze(Object.defineProperty({__proto__:null,format:T_,parse:Io},Symbol.toStringTag,{value:"Module"})),LQ=Object.freeze(Object.defineProperty({__proto__:null,Arc:y_,BezierCurve:__,BoundingRect:Ft,Circle:Ep,CompoundPath:BR,Ellipse:JS,Group:sr,Image:Bo,IncrementalDisplayable:RK,Line:Ro,LinearGradient:jR,Polygon:cs,Polyline:xl,RadialGradient:IK,Rect:Sr,Ring:g_,Sector:Ud,Text:Gr,clipPointsByRect:YR,clipRectByRect:jK,createIcon:Dp,extendPath:NK,extendShape:LK,getShapeClass:FK,getTransform:b_,initProps:Jn,makeImage:HR,makePath:KS,mergePath:lw,registerShape:jo,resizePath:UR,updateProps:Zr},Symbol.toStringTag,{value:"Module"})),NQ=Object.freeze(Object.defineProperty({__proto__:null,addCommas:ZR,capitalFirst:nDt,encodeHTML:Yn,formatTime:rDt,formatTpl:eL,getTextRect:tDt,getTooltipMarker:nZ,normalizeCssArray:k_,toCamelCase:QR,truncateText:Jkt},Symbol.toStringTag,{value:"Module"})),FQ=Object.freeze(Object.defineProperty({__proto__:null,bind:qe,clone:lt,curry:Dt,defaults:bt,each:W,extend:_e,filter:br,indexOf:$t,inherits:mR,isArray:Ee,isFunction:ot,isObject:Ke,isString:Re,map:ye,merge:pt,reduce:ls},Symbol.toStringTag,{value:"Module"}));var Ng=fr();function zQ(t,e){var r=ye(e,function(n){return t.scale.parse(n)});return t.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function Y$t(t){var e=t.getLabelModel().get("customValues");if(e){var r=$p(t),n=t.scale.getExtent(),a=zQ(t,e),o=br(a,function(i){return i>=n[0]&&i<=n[1]});return{labels:ye(o,function(i){var s={value:i};return{formattedLabel:r(s),rawLabel:t.scale.getLabel(s),tickValue:i}})}}return t.type==="category"?q$t(t):J$t(t)}function G$t(t,e){var r=t.getTickModel().get("customValues");if(r){var n=t.scale.getExtent(),a=zQ(t,r);return{ticks:br(a,function(o){return o>=n[0]&&o<=n[1]})}}return t.type==="category"?X$t(t,e):{ticks:ye(t.scale.getTicks(),function(o){return o.value})}}function q$t(t){var e=t.getLabelModel(),r=BQ(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function BQ(t,e){var r=jQ(t,"labels"),n=OL(e),a=WQ(r,n);if(a)return a;var o,i;return ot(n)?o=VQ(t,n):(i=n==="auto"?K$t(t):n,o=UQ(t,i)),HQ(r,n,{labels:o,labelCategoryInterval:i})}function X$t(t,e){var r=jQ(t,"ticks"),n=OL(e),a=WQ(r,n);if(a)return a;var o,i;if((!e.get("show")||t.scale.isBlank())&&(o=[]),ot(n))o=VQ(t,n,!0);else if(n==="auto"){var s=BQ(t,t.getLabelModel());i=s.labelCategoryInterval,o=ye(s.labels,function(l){return l.tickValue})}else i=n,o=UQ(t,i,!0);return HQ(r,n,{ticks:o,tickCategoryInterval:i})}function J$t(t){var e=t.scale.getTicks(),r=$p(t);return{labels:ye(e,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:t.scale.getLabel(n),tickValue:n.value}})}}function jQ(t,e){return Ng(t)[e]||(Ng(t)[e]=[])}function WQ(t,e){for(var r=0;r40&&(s=Math.max(1,Math.floor(i/40)));for(var l=o[0],c=t.dataToCoord(l+1)-t.dataToCoord(l),d=Math.abs(c*Math.cos(n)),u=Math.abs(c*Math.sin(n)),f=0,p=0;l<=o[1];l+=s){var m=0,g=0,_=BS(r({value:l}),e.font,"center","top");m=_.width*1.3,g=_.height*1.3,f=Math.max(f,m,7),p=Math.max(p,g,7)}var b=f/d,w=p/u;isNaN(b)&&(b=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(b,w))),x=Ng(t.model),E=t.getExtent(),T=x.lastAutoInterval,D=x.lastTickCount;return T!=null&&D!=null&&Math.abs(T-S)<=1&&Math.abs(D-i)<=1&&T>S&&x.axisExtent0===E[0]&&x.axisExtent1===E[1]?S=T:(x.lastTickCount=i,x.lastAutoInterval=S,x.axisExtent0=E[0],x.axisExtent1=E[1]),S}function Q$t(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function UQ(t,e,r){var n=$p(t),a=t.scale,o=a.getExtent(),i=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),c=o[0],d=a.count();c!==0&&l>1&&d/l>2&&(c=Math.round(Math.ceil(c/l)*l));var u=MQ(t),f=i.get("showMinLabel")||u,p=i.get("showMaxLabel")||u;f&&c!==o[0]&&g(o[0]);for(var m=c;m<=o[1];m+=l)g(m);p&&m-l!==o[1]&&g(o[1]);function g(_){var b={value:_};s.push(r?_:{formattedLabel:n(b),rawLabel:a.getLabel(b),tickValue:_})}return s}function VQ(t,e,r){var n=t.scale,a=$p(t),o=[];return W(n.getTicks(),function(i){var s=n.getLabel(i),l=i.value;e(i.value,s)&&o.push(r?l:{formattedLabel:a(i),rawLabel:s,tickValue:l})}),o}var aH=[0,1],P_=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return e>=n&&e<=a},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return DR(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(n=n.slice(),oH(n,a.count())),Cn(e,aH,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),oH(n,a.count()));var o=Cn(e,n,aH,r);return this.scale.scale(o)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=G$t(this,r),a=n.ticks,o=ye(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),i=r.get("alignWithLabel");return eAt(this,o,i,e.clamp),o},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=ye(n,function(o){return ye(o,function(i){return{coord:this.dataToCoord(i),tickValue:i}},this)},this);return a},t.prototype.getViewLabels=function(){return Y$t(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},t.prototype.calculateCategoryInterval=function(){return Z$t(this)},t}();function oH(t,e){var r=t[1]-t[0],n=e,a=r/n/2;t[0]+=a,t[1]-=a}function eAt(t,e,r,n){var a=e.length;if(!t.onBand||r||!a)return;var o=t.getExtent(),i,s;if(a===1)e[0].coord=o[0],i=e[1]={coord:o[1],tickValue:e[0].tickValue};else{var l=e[a-1].tickValue-e[0].tickValue,c=(e[a-1].coord-e[0].coord)/l;W(e,function(p){p.coord-=c/2});var d=t.scale.getExtent();s=1+d[1]-e[a-1].tickValue,i={coord:e[a-1].coord+c*s,tickValue:d[1]+1},e.push(i)}var u=o[0]>o[1];f(e[0].coord,o[0])&&(n?e[0].coord=o[0]:e.shift()),n&&f(o[0],e[0].coord)&&e.unshift({coord:o[0]}),f(o[1],i.coord)&&(n?i.coord=o[1]:e.pop()),n&&f(i.coord,o[1])&&e.push({coord:o[1]});function f(p,m){return p=Yr(p),m=Yr(m),u?p>m:pa&&(a+=im);var p=Math.atan2(s,i);if(p<0&&(p+=im),p>=n&&p<=a||p+im>=n&&p+im<=a)return l[0]=d,l[1]=u,c-r;var m=r*Math.cos(n)+t,g=r*Math.sin(n)+e,_=r*Math.cos(a)+t,b=r*Math.sin(a)+e,w=(m-i)*(m-i)+(g-s)*(g-s),S=(_-i)*(_-i)+(b-s)*(b-s);return w0){e=e/180*Math.PI,ed.fromArray(t[0]),mn.fromArray(t[1]),Ua.fromArray(t[2]),It.sub(Dh,ed,mn),It.sub(sm,Ua,mn);var r=Dh.len(),n=sm.len();if(!(r<.001||n<.001)){Dh.scale(1/r),sm.scale(1/n);var a=Dh.dot(sm),o=Math.cos(e);if(o1&&It.copy(Ru,Ua),Ru.toArray(t[1])}}}}function wM(t,e,r,n){var a=r==="normal",o=a?t:t.ensureState(r);o.ignore=e;var i=n.get("smooth");i&&i===!0&&(i=.3),o.shape=o.shape||{},i>0&&(o.shape.smooth=i);var s=n.getModel("lineStyle").getLineStyle();a?t.useStyle(s):o.style=s}function sAt(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=V1(n[0],n[1]),o=V1(n[1],n[2]);if(!a||!o){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var i=Math.min(a,o)*r,s=Jb([],n[1],n[0],i/a),l=Jb([],n[1],n[2],i/o),c=Jb([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var d=1;d0){S(P*A,0,i);var O=P+T;O<0&&x(-O*A,1)}else x(-T*A,1)}}function S(T,D,A){T!==0&&(c=!0);for(var P=D;P0)for(var O=0;O0;O--){var B=A[O-1]*N;S(-B,O,i)}}}function E(T){var D=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(i-1)),P=0;P0?S(A,0,P+1):S(-A,i-P-1,i),T-=A,T<=0)return}return c}function uAt(t,e,r,n){return ZQ(t,"x","width",e,r)}function dAt(t,e,r,n){return ZQ(t,"y","height",e,r)}function QQ(t){var e=[];t.sort(function(g,_){return _.priority-g.priority});var r=new Ft(0,0,0,0);function n(g){if(!g.ignore){var _=g.ensureState("emphasis");_.ignore==null&&(_.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&n.attr(o.oldLayoutSelect),$t(f,"emphasis")>=0&&n.attr(o.oldLayoutEmphasis)),Zr(n,c,r,l)}else if(n.attr(c),!Mp(n).valueAnimation){var u=et(n.style.opacity,1);n.style.opacity=0,Jn(n,{style:{opacity:u}},r,l)}if(o.oldLayout=c,n.states.select){var p=o.oldLayoutSelect={};ab(p,c,ob),ab(p,n.states.select,ob)}if(n.states.emphasis){var m=o.oldLayoutEmphasis={};ab(m,c,ob),ab(m,n.states.emphasis,ob)}LEt(n,l,d,r,r)}if(a&&!a.ignore&&!a.invisible){var o=pAt(a),i=o.oldLayout,g={points:a.shape.points};i?(a.attr({shape:i}),Zr(a,{shape:g},r)):(a.setShape(g),a.style.strokePercent=0,Jn(a,{style:{strokePercent:1}},r)),o.oldLayout=g}},t}(),xM=fr();function mAt(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var a=xM(r).labelManager;a||(a=xM(r).labelManager=new vAt),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var a=xM(r).labelManager;n.updatedSeries.forEach(function(o){a.addLabelsOfSeries(r.getViewOfSeriesModel(o))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}const gAt=Object.freeze(Object.defineProperty({__proto__:null,Axis:P_,ChartView:En,ComponentModel:Pt,ComponentView:Qr,List:as,Model:hr,PRIORITY:dL,SeriesModel:Kn,color:IJ,connect:aQ,dataTool:dQ,dependencies:GZ,disConnect:oQ,disconnect:vL,dispose:iQ,env:ut,extendChartView:XQ,extendComponentModel:YQ,extendComponentView:GQ,extendSeriesModel:qQ,format:NQ,getCoordinateSystemDimensions:lQ,getInstanceByDom:dx,getInstanceById:sQ,getMap:uQ,graphic:LQ,helper:$Q,init:pL,innerDrawElementOnCanvas:cx,matrix:bJ,number:IQ,parseGeoJSON:bw,parseGeoJson:bw,registerAction:Ho,registerCoordinateSystem:_L,registerLayout:yL,registerLoading:vx,registerLocale:QS,registerMap:wL,registerPostInit:mL,registerPostUpdate:gL,registerPreprocessor:hx,registerProcessor:px,registerTheme:fx,registerTransform:SL,registerUpdateLifecycle:$_,registerVisual:Tl,setCanvasCreator:cQ,setPlatformAPI:fR,throttle:D_,time:RQ,use:Dn,util:FQ,vector:gJ,version:YZ,zrUtil:pJ,zrender:XJ},Symbol.toStringTag,{value:"Module"}));var _At=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return A_(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new sr,a=to("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var o=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=r.itemHeight*.8,c=to(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(c),c.setStyle(r.itemStyle);var d=r.iconRotate==="inherit"?i:r.iconRotate||0;return c.rotation=d*Math.PI/180,c.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Kn);function AL(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=lp(t,e,r[0]);return a!=null?a+"":null}else if(n){for(var o=[],i=0;i=0&&n.push(e[o])}return n.join(" ")}var PL=function(t){le(e,t);function e(r,n,a,o){var i=t.call(this)||this;return i.updateData(r,n,a,o),i}return e.prototype._createSymbol=function(r,n,a,o,i){this.removeAll();var s=to(r,-1,-1,2,2,null,i);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=yAt,this._symbolType=r,this.add(s)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){wd(this.childAt(0))},e.prototype.downplay=function(){Sd(this.childAt(0))},e.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},e.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},e.prototype.updateData=function(r,n,a,o){this.silent=!1;var i=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),c=i!==this._symbolType,d=o&&o.disableAnimation;if(c){var u=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(i,r,n,l,u)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};d?f.attr(p):Zr(f,p,s,n),ow(f)}if(this._updateCommon(r,n,l,a,o),c){var f=this.childAt(0);if(!d){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Jn(f,p,s,n)}}d&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,a,o,i){var s=this.childAt(0),l=r.hostModel,c,d,u,f,p,m,g,_,b;if(o&&(c=o.emphasisItemStyle,d=o.blurItemStyle,u=o.selectItemStyle,f=o.focus,p=o.blurScope,g=o.labelStatesModels,_=o.hoverScale,b=o.cursorStyle,m=o.emphasisDisabled),!o||r.hasItemOption){var w=o&&o.itemModel?o.itemModel:r.getItemModel(n),S=w.getModel("emphasis");c=S.getModel("itemStyle").getItemStyle(),u=w.getModel(["select","itemStyle"]).getItemStyle(),d=w.getModel(["blur","itemStyle"]).getItemStyle(),f=S.get("focus"),p=S.get("blurScope"),m=S.get("disabled"),g=Yc(w),_=S.getShallow("scale"),b=w.getShallow("cursor")}var x=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var E=O_(r.getItemVisual(n,"symbolOffset"),a);E&&(s.x=E[0],s.y=E[1]),b&&s.attr("cursor",b);var T=r.getItemVisual(n,"style"),D=T.fill;if(s instanceof Bo){var A=s.style;s.useStyle(_e({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},T))}else s.__isEmptyBrush?s.useStyle(_e({},T)):s.useStyle(T),s.style.decal=null,s.setColor(D,i&&i.symbolInnerColor),s.style.strokeNoScale=!0;var P=r.getItemVisual(n,"liftZ"),O=this._z2;P!=null?O==null&&(this._z2=s.z2,s.z2+=P):O!=null&&(s.z2=O,this._z2=null);var I=i&&i.useNameLabel;Vd(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:F,inheritColor:D,defaultOpacity:T.opacity});function F(j){return I?r.getName(j):AL(r,j)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var N=s.ensureState("emphasis");N.style=c,s.ensureState("select").style=u,s.ensureState("blur").style=d;var B=_==null||_===!0?Math.max(1.1,3/this._sizeY):isFinite(_)&&_>0?+_:1;N.scaleX=this._sizeX*B,N.scaleY=this._sizeY*B,this.setSymbolScale(1),xd(this,f,p,m)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,a){var o=this.childAt(0),i=Et(this).dataIndex,s=a&&a.animation;if(this.silent=o.silent=!0,a&&a.fadeLabel){var l=o.getTextContent();l&&aw(l,{style:{opacity:0}},n,{dataIndex:i,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();aw(o,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:i,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return M_(r.getItemVisual(n,"symbolSize"))},e}(sr);function yAt(t,e){this.parent.drift(t,e)}function CM(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function cH(t){return t!=null&&!Ke(t)&&(t={isIgnore:t}),t||{}}function uH(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Yc(e),cursorStyle:e.get("cursor")}}var tee=function(){function t(e){this.group=new sr,this._SymbolCtor=e||PL}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=cH(r);var n=this.group,a=e.hostModel,o=this._data,i=this._SymbolCtor,s=r.disableAnimation,l=uH(e),c={disableAnimation:s},d=r.getSymbolPoint||function(u){return e.getItemLayout(u)};o||n.removeAll(),e.diff(o).add(function(u){var f=d(u);if(CM(e,f,u,r)){var p=new i(e,u,l,c);p.setPosition(f),e.setItemGraphicEl(u,p),n.add(p)}}).update(function(u,f){var p=o.getItemGraphicEl(f),m=d(u);if(!CM(e,m,u,r)){n.remove(p);return}var g=e.getItemVisual(u,"symbol")||"circle",_=p&&p.getSymbolType&&p.getSymbolType();if(!p||_&&_!==g)n.remove(p),p=new i(e,u,l,c),p.setPosition(m);else{p.updateData(e,u,l,c);var b={x:m[0],y:m[1]};s?p.attr(b):Zr(p,b,a)}n.add(p),e.setItemGraphicEl(u,p)}).remove(function(u){var f=o.getItemGraphicEl(u);f&&f.fadeOut(function(){n.remove(f)},a)}).execute(),this._getSymbolPoint=d,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var o=e._getSymbolPoint(a);n.setPosition(o),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=uH(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=cH(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=e.start;o0?r=n[0]:n[1]<0&&(r=n[1]),r}function nee(t,e,r,n){var a=NaN;t.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=t.valueStart);var o=t.baseDataOffset,i=[];return i[o]=r.get(t.baseDim,n),i[1-o]=a,e.dataToPoint(i)}function wAt(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function SAt(t,e,r,n,a,o,i,s){for(var l=wAt(t,e),c=[],d=[],u=[],f=[],p=[],m=[],g=[],_=ree(a,e,i),b=t.getLayout("points")||[],w=e.getLayout("points")||[],S=0;S=a||g<0)break;if(cd(b,w)){if(l){g+=o;continue}break}if(g===r)t[o>0?"moveTo":"lineTo"](b,w),u=b,f=w;else{var S=b-c,x=w-d;if(S*S+x*x<.5){g+=o;continue}if(i>0){for(var E=g+o,T=e[E*2],D=e[E*2+1];T===b&&D===w&&_=n||cd(T,D))p=b,m=w;else{O=T-c,I=D-d;var B=b-c,j=T-b,V=w-d,Q=D-w,G=void 0,q=void 0;if(s==="x"){G=Math.abs(B),q=Math.abs(j);var te=O>0?1:-1;p=b-te*G*i,m=w,F=b+te*q*i,N=w}else if(s==="y"){G=Math.abs(V),q=Math.abs(Q);var z=I>0?1:-1;p=b,m=w-z*G*i,F=b,N=w+z*q*i}else G=Math.sqrt(B*B+V*V),q=Math.sqrt(j*j+Q*Q),P=q/(q+G),p=b-O*i*(1-P),m=w-I*i*(1-P),F=b+O*i*P,N=w+I*i*P,F=nc(F,ac(T,b)),N=nc(N,ac(D,w)),F=ac(F,nc(T,b)),N=ac(N,nc(D,w)),O=F-b,I=N-w,p=b-O*G/q,m=w-I*G/q,p=nc(p,ac(c,b)),m=nc(m,ac(d,w)),p=ac(p,nc(c,b)),m=ac(m,nc(d,w)),O=b-p,I=w-m,F=b+O*q/G,N=w+I*q/G}t.bezierCurveTo(u,f,p,m,b,w),u=F,f=N}else t.lineTo(b,w)}c=b,d=w,g+=o}return _}var aee=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),xAt=function(t){le(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new aee},e.prototype.buildPath=function(r,n){var a=n.points,o=0,i=a.length/2;if(n.connectNulls){for(;i>0&&cd(a[i*2-2],a[i*2-1]);i--);for(;o=0){var x=c?(m-l)*S+l:(p-s)*S+s;return c?[r,x]:[x,r]}s=p,l=m;break;case i.C:p=o[u++],m=o[u++],g=o[u++],_=o[u++],b=o[u++],w=o[u++];var E=c?q1(s,p,g,b,r,d):q1(l,m,_,w,r,d);if(E>0)for(var T=0;T=0){var x=c?cn(l,m,_,w,D):cn(s,p,g,b,D);return c?[r,x]:[x,r]}}s=b,l=w;break}}},e}(Xt),CAt=function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(aee),TAt=function(t){le(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new CAt},e.prototype.buildPath=function(r,n){var a=n.points,o=n.stackedOnPoints,i=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&cd(a[s*2-2],a[s*2-1]);s--);for(;ie){o?r.push(i(o,l,e)):a&&r.push(i(a,l,0),i(a,l,e));break}else a&&(r.push(i(a,l,0)),a=null),r.push(l),o=l}return r}function MAt(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var a,o,i=n.length-1;i>=0;i--){var s=t.getDimensionInfo(n[i].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){o=n[i];break}}if(o){var l=e.getAxis(a),c=ye(o.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),d=c.length,u=o.outerColors.slice();d&&c[0].coord>c[d-1].coord&&(c.reverse(),u.reverse());var f=DAt(c,a==="x"?r.getWidth():r.getHeight()),p=f.length;if(!p&&d)return c[0].coord<0?u[1]?u[1]:c[d-1].color:u[0]?u[0]:c[0].color;var m=10,g=f[0].coord-m,_=f[p-1].coord+m,b=_-g;if(b<.001)return"transparent";W(f,function(S){S.offset=(S.coord-g)/b}),f.push({offset:p?f[p-1].offset:.5,color:u[1]||"transparent"}),f.unshift({offset:p?f[0].offset:.5,color:u[0]||"transparent"});var w=new jR(0,0,0,0,f,!0);return w[a]=g,w[a+"2"]=_,w}}}function OAt(t,e,r){var n=t.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var o=r.getAxesByScale("ordinal")[0];if(o&&!(a&&$At(o,e))){var i=e.mapDimension(o.dim),s={};return W(o.getViewLabels(),function(l){var c=o.scale.getRawOrdinalNumber(l.tickValue);s[c]=1}),function(l){return!s.hasOwnProperty(e.get(i,l))}}}}function $At(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),o=Math.max(1,Math.round(a/5)),i=0;in)return!1;return!0}function AAt(t,e){return isNaN(t)||isNaN(e)}function PAt(t){for(var e=t.length/2;e>0&&AAt(t[e*2-2],t[e*2-1]);e--);return e-1}function vH(t,e){return[t[e*2],t[e*2+1]]}function IAt(t,e,r){for(var n=t.length/2,a=r==="x"?0:1,o,i,s=0,l=-1,c=0;c=e||o>=e&&i<=e){l=c;break}s=c,o=i}return{range:[s,l],t:(e-o)/(i-o)}}function see(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var q=m.getState("emphasis").style;q.lineWidth=+m.style.lineWidth+1}Et(m).seriesIndex=r.seriesIndex,xd(m,V,Q,G);var te=pH(r.get("smooth")),z=r.get("smoothMonotone");if(m.setShape({smooth:te,smoothMonotone:z,connectNulls:D}),g){var U=s.getCalculationInfo("stackedOnSeries"),Z=0;g.useStyle(bt(c.getAreaStyle(),{fill:F,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(Z=pH(U.get("smooth"))),g.setShape({smooth:te,stackedOnSmooth:Z,smoothMonotone:z,connectNulls:D}),op(g,r,"areaStyle"),Et(g).seriesIndex=r.seriesIndex,xd(g,V,Q,G)}var K=this._changePolyState;s.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=K)}),this._polyline.onHoverStateChange=K,this._data=s,this._coordSys=o,this._stackedOnPoints=E,this._points=d,this._step=O,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,m),g&&this.packEventData(r,g))},e.prototype.packEventData=function(r,n){Et(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,a,o){var i=r.getData(),s=bd(i,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=i.getLayout("points"),c=i.getItemGraphicEl(s);if(!c){var d=l[s*2],u=l[s*2+1];if(isNaN(d)||isNaN(u)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(d,u))return;var f=r.get("zlevel")||0,p=r.get("z")||0;c=new PL(i,s),c.x=d,c.y=u,c.setZ(f,p);var m=c.getSymbolPath().getTextContent();m&&(m.zlevel=f,m.z=p,m.z2=this._polyline.z2+1),c.__temp=!0,i.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else En.prototype.highlight.call(this,r,n,a,o)},e.prototype.downplay=function(r,n,a,o){var i=r.getData(),s=bd(i,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=i.getItemGraphicEl(s);l&&(l.__temp?(i.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else En.prototype.downplay.call(this,r,n,a,o)},e.prototype._changePolyState=function(r){var n=this._polygon;y7(this._polyline,r),n&&y7(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new xAt({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new TAt({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(r,n,a){var o,i,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(o=s.isHorizontal(),i=!1):n.type==="polar"&&(o=s.dim==="angle",i=!0);var c=r.hostModel,d=c.get("animationDuration");ot(d)&&(d=d(null));var u=c.get("animationDelay")||0,f=ot(u)?u(null):u;r.eachItemGraphicEl(function(p,m){var g=p;if(g){var _=[p.x,p.y],b=void 0,w=void 0,S=void 0;if(a)if(i){var x=a,E=n.pointToCoord(_);o?(b=x.startAngle,w=x.endAngle,S=-E[1]/180*Math.PI):(b=x.r0,w=x.r,S=E[0])}else{var T=a;o?(b=T.x,w=T.x+T.width,S=p.x):(b=T.y+T.height,w=T.y,S=p.y)}var D=w===b?0:(S-b)/(w-b);l&&(D=1-D);var A=ot(u)?u(m):d*D+f,P=g.getSymbolPath(),O=P.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),O&&O.animateFrom({style:{opacity:0}},{duration:300,delay:A}),P.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,a){var o=r.getModel("endLabel");if(see(r)){var i=r.getData(),s=this._polyline,l=i.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new Gr({z2:200}),c.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var d=PAt(l);d>=0&&(Vd(s,Yc(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:d,defaultText:function(u,f,p){return p!=null?eee(i,p):AL(i,u)},enableTextSetter:!0},RAt(o,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,a,o,i,s,l){var c=this._endLabel,d=this._polyline;if(c){r<1&&o.originalX==null&&(o.originalX=c.x,o.originalY=c.y);var u=a.getLayout("points"),f=a.hostModel,p=f.get("connectNulls"),m=s.get("precision"),g=s.get("distance")||0,_=l.getBaseAxis(),b=_.isHorizontal(),w=_.inverse,S=n.shape,x=w?b?S.x:S.y+S.height:b?S.x+S.width:S.y,E=(b?g:0)*(w?-1:1),T=(b?0:-g)*(w?-1:1),D=b?"x":"y",A=IAt(u,x,D),P=A.range,O=P[1]-P[0],I=void 0;if(O>=1){if(O>1&&!p){var F=vH(u,P[0]);c.attr({x:F[0]+E,y:F[1]+T}),i&&(I=f.getRawValue(P[0]))}else{var F=d.getPointOn(x,D);F&&c.attr({x:F[0]+E,y:F[1]+T});var N=f.getRawValue(P[0]),B=f.getRawValue(P[1]);i&&(I=iK(a,m,N,B,A.t))}o.lastFrameIndex=P[0]}else{var j=r===1||o.lastFrameIndex>0?P[0]:0,F=vH(u,j);i&&(I=f.getRawValue(j)),c.attr({x:F[0]+E,y:F[1]+T})}if(i){var V=Mp(c);typeof V.setLabelText=="function"&&V.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(r,n,a,o,i,s,l){var c=this._polyline,d=this._polygon,u=r.hostModel,f=SAt(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),p=f.current,m=f.stackedOnCurrent,g=f.next,_=f.stackedOnNext;if(i&&(m=oc(f.stackedOnCurrent,f.current,a,i,l),p=oc(f.current,null,a,i,l),_=oc(f.stackedOnNext,f.next,a,i,l),g=oc(f.next,null,a,i,l)),hH(p,g)>3e3||d&&hH(m,_)>3e3){c.stopAnimation(),c.setShape({points:g}),d&&(d.stopAnimation(),d.setShape({points:g,stackedOnPoints:_}));return}c.shape.__points=f.current,c.shape.points=p;var b={shape:{points:g}};f.current!==p&&(b.shape.__points=f.next),c.stopAnimation(),Zr(c,b,u),d&&(d.setShape({points:p,stackedOnPoints:m}),d.stopAnimation(),Zr(d,{shape:{stackedOnPoints:_}},u),c.shape.points!==d.shape.points&&(d.shape.points=c.shape.points));for(var w=[],S=f.status,x=0;xe&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r10&&i.type==="cartesian2d"&&o){var l=i.getBaseAxis(),c=i.getOtherAxis(l),d=l.getExtent(),u=n.getDevicePixelRatio(),f=Math.abs(d[1]-d[0])*(u||1),p=Math.round(s/f);if(isFinite(p)&&p>1){o==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(c.dim),1/p)):o==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(c.dim),1/p));var m=void 0;Re(o)?m=NAt[o]:ot(o)&&(m=o),m&&e.setData(a.downSample(a.mapDimension(c.dim),1/p,m,FAt))}}}}}function zAt(t){t.registerChartView(LAt),t.registerSeriesModel(_At),t.registerLayout(IL("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,lee("line"))}var xA=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return A_(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,a){var o=this.coordinateSystem;if(o&&o.clampData){var i=o.clampData(r),s=o.dataToPoint(i);if(a)W(o.getAxes(),function(f,p){if(f.type==="category"&&n!=null){var m=f.getTicksCoords(),g=f.getTickModel().get("alignWithLabel"),_=i[p],b=n[p]==="x1"||n[p]==="y1";if(b&&!g&&(_+=1),m.length<2)return;if(m.length===2){s[p]=f.toGlobalCoord(f.getExtent()[b?1:0]);return}for(var w=void 0,S=void 0,x=1,E=0;E_){S=(T+w)/2;break}E===1&&(x=D-m[0].tickValue)}S==null&&(w?w&&(S=m[m.length-1].coord):S=m[0].coord),s[p]=f.toGlobalCoord(S)}});else{var l=this.getData(),c=l.getLayout("offset"),d=l.getLayout("size"),u=o.getBaseAxis().isHorizontal()?0:1;s[u]+=c+d/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Kn);Kn.registerClass(xA);var BAt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return A_(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=C_(xA.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(xA),jAt=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),mH=function(t){le(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new jAt},e.prototype.buildPath=function(r,n){var a=n.cx,o=n.cy,i=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-i)*.5,c=i+l,d=n.startAngle,u=n.endAngle,f=n.clockwise,p=Math.PI*2,m=f?u-dMath.PI/2&&ds)return!0;s=u}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,o=a.getExtent(),i=Math.max(0,o[0]),s=Math.min(o[1],a.getOrdinalMeta().categories.length-1);i<=s;++i)if(r.ordinalNumbers[i]!==a.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(r,n,a,o){if(this._isOrderChangedWithinSameData(r,n,a)){var i=this._dataSort(r,a,n);this._isOrderDifferentInView(i,a)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(r,n,a){var o=n.baseAxis,i=this._dataSort(r,o,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:i})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(o){tA(o,r,Et(o).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(En),gH={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,o=t.y+t.height,i=kM(e.x,t.x),s=EM(e.x+e.width,a),l=kM(e.y,t.y),c=EM(e.y+e.height,o),d=sa?s:i,e.y=u&&l>o?c:l,e.width=d?0:s-i,e.height=u?0:c-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),d||u},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var a=EM(e.r,t.r),o=kM(e.r0,t.r0);e.r=a,e.r0=o;var i=a-o<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return i}},_H={cartesian2d:function(t,e,r,n,a,o,i,s,l){var c=new Sr({shape:_e({},n),z2:1});if(c.__dataIndex=r,c.name="item",o){var d=c.shape,u=a?"height":"width";d[u]=0}return c},polar:function(t,e,r,n,a,o,i,s,l){var c=!a&&l?mH:Ud,d=new c({shape:n,z2:1});d.name="item";var u=cee(a);if(d.calculateTextPosition=WAt(u,{isRoundCap:c===mH}),o){var f=d.shape,p=a?"r":"endAngle",m={};f[p]=a?n.r0:n.startAngle,m[p]=n[p],(s?Zr:Jn)(d,{shape:m},o)}return d}};function GAt(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function yH(t,e,r,n,a,o,i,s){var l,c;o?(c={x:n.x,width:n.width},l={y:n.y,height:n.height}):(c={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(i?Zr:Jn)(r,{shape:l},e,a,null);var d=e?t.baseAxis.model:null;(i?Zr:Jn)(r,{shape:c},d,a)}function bH(t,e){for(var r=0;r0?1:-1,i=n.height>0?1:-1;return{x:n.x+o*a/2,y:n.y+i*a/2,width:n.width-o*a,height:n.height-i*a}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function JAt(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function cee(t){return function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(t)}function SH(t,e,r,n,a,o,i,s){var l=e.getItemVisual(r,"style");if(s){if(!o.get("roundCap")){var d=t.shape,u=UAt(n.getModel("itemStyle"),d);_e(d,u),t.setShape(d)}}else{var c=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(l);var f=n.getShallow("cursor");f&&t.attr("cursor",f);var p=s?i?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":i?a.height>=0?"bottom":"top":a.width>=0?"right":"left",m=Yc(n);Vd(t,m,{labelFetcher:o,labelDataIndex:r,defaultText:AL(o.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=t.getTextContent();if(s&&g){var _=n.get(["label","position"]);t.textConfig.inside=_==="middle"?!0:null,HAt(t,_==="outside"?p:_,cee(i),n.get(["label","rotate"]))}REt(g,m,o.getRawValue(r),function(w){return eee(e,w)});var b=n.getModel(["emphasis"]);xd(t,b.get("focus"),b.get("blurScope"),b.get("disabled")),op(t,n),JAt(a)&&(t.style.fill="none",t.style.stroke="none",W(t.states,function(w){w.style&&(w.style.fill=w.style.stroke="none")}))}function KAt(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,o)}var ZAt=function(){function t(){}return t}(),xH=function(t){le(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new ZAt},e.prototype.buildPath=function(r,n){for(var a=n.points,o=this.baseDimIdx,i=1-this.baseDimIdx,s=[],l=[],c=this.barWidth,d=0;d=0?r:null},30,!1);function QAt(t,e,r){for(var n=t.baseDimIdx,a=1-n,o=t.shape.points,i=t.largeDataIndices,s=[],l=[],c=t.barWidth,d=0,u=o.length/3;d=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return i[d]}return-1}function uee(t,e,r){if(Ap(r,"cartesian2d")){var n=e,a=r.getArea();return{x:t?n.x:a.x,y:t?a.y:n.y,width:t?n.width:a.width,height:t?a.height:n.height}}else{var a=r.getArea(),o=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:o.r0,r:t?a.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:Math.PI*2}}}function ePt(t,e,r){var n=t.type==="polar"?Ud:Sr;return new n({shape:uee(e,r,t),silent:!0,z2:0})}function tPt(t){t.registerChartView(YAt),t.registerSeriesModel(BAt),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Dt(h$t,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,p$t("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,lee("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}function rPt(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.getData();a.filterSelf(function(o){for(var i=a.getName(o),s=0;s=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t}(),oPt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return A_(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Kn),dee=4,iPt=function(){function t(){}return t}(),sPt=function(t){le(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new iPt},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(r,n){var a=n.points,o=n.size,i=this.symbolProxy,s=i.shape,l=r.getContext?r.getContext():r,c=l&&o[0]=0;c--){var d=c*2,u=o[d]-s/2,f=o[d+1]-l/2;if(r>=u&&n>=f&&r<=u+s&&n<=f+l)return c}return-1},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),o=this.getBoundingRect();if(r=a[0],n=a[1],o.contain(r,n)){var i=this.hoverDataIdx=this.findDataIndex(r,n);return i>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,a=n.points,o=n.size,i=o[0],s=o[1],l=1/0,c=1/0,d=-1/0,u=-1/0,f=0;f=0&&(c.dataIndex=u+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),cPt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var o=r.getData(),i=this._updateSymbolDraw(o,r);i.updateData(o,{clipShape:this._getClipShape(r)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,a){var o=r.getData(),i=this._updateSymbolDraw(o,r);i.incrementalPrepareUpdate(o),this._finished=!1},e.prototype.incrementalRender=function(r,n,a){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,a){var o=r.getData();if(this.group.dirty(),!this._finished||o.count()>1e4)return{update:!0};var i=IL("").reset(r,n,a);i.progress&&i.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(o)},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(r,n){var a=this._symbolDraw,o=n.pipelineContext,i=o.large;return(!a||i!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=i?new lPt:new tee,this._isLargeDraw=i,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(En),uPt=function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Pt),CA=function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ia).models[0]},e.type="cartesian2dAxis",e}(Pt);da(CA,$L);var fee={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},dPt=pt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},fee),RL=pt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},fee),fPt=pt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},RL),hPt=bt({logBase:10},RL);const hee={category:dPt,value:RL,time:fPt,log:hPt};var pPt={value:1,category:1,time:1,log:1};function kH(t,e,r,n){W(pPt,function(a,o){var i=pt(pt({},hee[o],!0),n,!0),s=function(l){le(c,l);function c(){var d=l!==null&&l.apply(this,arguments)||this;return d.type=e+"Axis."+o,d}return c.prototype.mergeDefaultAndTheme=function(d,u){var f=Pg(this),p=f?E_(d):{},m=u.getTheme();pt(d,m.get(o+"Axis")),pt(d,this.getDefaultOption()),d.type=EH(d),f&&sp(d,p,f)},c.prototype.optionUpdated=function(){var d=this.option;d.type==="category"&&(this.__ordinalMeta=_A.createByAxisModel(this))},c.prototype.getCategories=function(d){var u=this.option;if(u.type==="category")return d?u.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=e+"Axis."+o,c.defaultOption=i,c}(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",EH)}function EH(t){return t.type||(t.data?"category":"value")}var vPt=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return ye(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),br(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t}(),TA=["x","y"];function DH(t){return t.type==="interval"||t.type==="time"}var mPt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=TA,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!DH(r)||!DH(n))){var a=r.getExtent(),o=n.getExtent(),i=this.dataToPoint([a[0],o[0]]),s=this.dataToPoint([a[1],o[1]]),l=a[1]-a[0],c=o[1]-o[0];if(!(!l||!c)){var d=(s[0]-i[0])/l,u=(s[1]-i[1])/c,f=i[0]-a[0]*d,p=i[1]-o[0]*u,m=this._transform=[d,0,0,u,f,p];this._invTransform=Tp([],m)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var a=this.dataToPoint(r),o=this.dataToPoint(n),i=this.getArea(),s=new Ft(a[0],a[1],o[0]-a[0],o[1]-a[1]);return i.intersect(s)},e.prototype.dataToPoint=function(r,n,a){a=a||[];var o=r[0],i=r[1];if(this._transform&&o!=null&&isFinite(o)&&i!=null&&isFinite(i))return sa(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(o,n)),a[1]=l.toGlobalCoord(l.dataToCoord(i,n)),a},e.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,o=this.getAxis("y").scale,i=a.getExtent(),s=o.getExtent(),l=a.parse(r[0]),c=o.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(i[0],i[1]),l),Math.max(i[0],i[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return sa(a,r,this._invTransform);var o=this.getAxis("x"),i=this.getAxis("y");return a[0]=o.coordToData(o.toLocalCoord(r[0]),n),a[1]=i.coordToData(i.toLocalCoord(r[1]),n),a},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),o=Math.min(n[0],n[1])-r,i=Math.min(a[0],a[1])-r,s=Math.max(n[0],n[1])-o+r,l=Math.max(a[0],a[1])-i+r;return new Ft(o,i,s,l)},e}(vPt),gPt=function(t){le(e,t);function e(r,n,a,o,i){var s=t.call(this,r,n,a)||this;return s.index=0,s.type=o||"value",s.position=i||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e}(P_);function kA(t,e,r){r=r||{};var n=t.coordinateSystem,a=e.axis,o={},i=a.getAxesOnZeroOf()[0],s=a.position,l=i?"onZero":s,c=a.dim,d=n.getRect(),u=[d.x,d.x+d.width,d.y,d.y+d.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,m=c==="x"?[u[2]-p,u[3]+p]:[u[0]-p,u[1]+p];if(i){var g=i.toGlobalCoord(i.dataToCoord(0));m[f.onZero]=Math.max(Math.min(g,m[1]),m[0])}o.position=[c==="y"?m[f[l]]:u[0],c==="x"?m[f[l]]:u[3]],o.rotation=Math.PI/2*(c==="x"?0:1);var _={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=_[s],o.labelOffset=i?m[f[s]]-m[f.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),ci(r.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var b=e.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-b:b,o.z2=1,o}function MH(t){return t.get("coordinateSystem")==="cartesian2d"}function OH(t){var e={xAxisModel:null,yAxisModel:null};return W(e,function(r,n){var a=n.replace(/Model$/,""),o=t.getReferringComponents(a,ia).models[0];e[n]=o}),e}var DM=Math.log;function pee(t,e,r){var n=vl.prototype,a=n.getTicks.call(r),o=n.getTicks.call(r,!0),i=a.length-1,s=n.getInterval.call(r),l=EQ(t,e),c=l.extent,d=l.fixMin,u=l.fixMax;if(t.type==="log"){var f=DM(t.base);c=[DM(c[0])/f,DM(c[1])/f]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:i,fixMin:d,fixMax:u});var p=n.getExtent.call(t);d&&(c[0]=p[0]),u&&(c[1]=p[1]);var m=n.getInterval.call(t),g=c[0],_=c[1];if(d&&u)m=(_-g)/i;else if(d)for(_=c[0]+m*i;_c[0]&&isFinite(g)&&isFinite(c[0]);)m=_M(m),g=c[1]-m*i;else{var b=t.getTicks().length-1;b>i&&(m=_M(m));var w=m*i;_=Math.ceil(c[1]/m)*m,g=Yr(_-w),g<0&&c[0]>=0?(g=0,_=Yr(w)):_>0&&c[1]<=0&&(_=0,g=-Yr(w))}var S=(a[0].value-o[0].value)/s,x=(a[i].value-o[i].value)/s;n.setExtent.call(t,g+m*S,_+m*x),n.setInterval.call(t,m),(S||x)&&n.setNiceExtent.call(t,g+m,_-m)}var _Pt=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=TA,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function a(i){var s,l=Ht(i),c=l.length;if(c){for(var d=[],u=c-1;u>=0;u--){var f=+l[u],p=i[f],m=p.model,g=p.scale;yA(g)&&m.get("alignTicks")&&m.get("interval")==null?d.push(p):(bA(g,m),yA(g)&&(s=p))}d.length&&(s||(s=d.pop(),bA(s.scale,s.model)),W(d,function(_){pee(_.scale,_.model,s.scale)}))}}a(n.x),a(n.y);var o={};W(n.x,function(i){$H(n,"y",i,o)}),W(n.y,function(i){$H(n,"x",i,o)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var a=e.getBoxLayoutParams(),o=!n&&e.get("containLabel"),i=us(a,{width:r.getWidth(),height:r.getHeight()});this._rect=i;var s=this._axesList;l(),o&&(W(s,function(c){if(!c.model.get(["axisLabel","inside"])){var d=A$t(c);if(d){var u=c.isHorizontal()?"height":"width",f=c.model.get(["axisLabel","margin"]);i[u]-=d[u]+f,c.position==="top"?i.y+=d.height+f:c.position==="left"&&(i.x+=d.width+f)}}}),l()),W(this._coordsList,function(c){c.calcAffineTransform()});function l(){W(s,function(c){var d=c.isHorizontal(),u=d?[0,i.width]:[0,i.height],f=c.inverse?1:0;c.setExtent(u[f],u[1-f]),yPt(c,d?i.x:i.y)})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}Ke(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,o=this._coordsList;a0?"top":"bottom",o="center"):kg(a-Sc)?(i=n>0?"bottom":"top",o="center"):(i="middle",a>0&&a0?"right":"left":o=n>0?"left":"right"),{rotation:a,textAlign:o,textVerticalAlign:i}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),PH={axisLine:function(t,e,r,n){var a=e.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var o=e.axis.getExtent(),i=n.transform,s=[o[0],0],l=[o[1],0],c=s[0]>l[0];i&&(sa(s,s,i),sa(l,l,i));var d=_e({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),u=new Ro({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:d,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});$g(u.shape,u.style.lineWidth),u.anid="line",r.add(u);var f=e.get(["axisLine","symbol"]);if(f!=null){var p=e.get(["axisLine","symbolSize"]);Re(f)&&(f=[f,f]),(Re(p)||dr(p))&&(p=[p,p]);var m=O_(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],_=p[1];W([{rotate:t.rotation+Math.PI/2,offset:m[0],r:0},{rotate:t.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(b,w){if(f[w]!=="none"&&f[w]!=null){var S=to(f[w],-g/2,-_/2,g,_,d.stroke,!0),x=b.r+b.offset,E=c?l:s;S.attr({rotation:b.rotate,x:E[0]+x*Math.cos(t.rotation),y:E[1]-x*Math.sin(t.rotation),silent:!0,z2:11}),r.add(S)}})}}},axisTickLabel:function(t,e,r,n){var a=SPt(r,n,e,t),o=CPt(r,n,e,t);if(wPt(e,o,a),xPt(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var i=KQ(ye(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));QQ(i)}},axisName:function(t,e,r,n){var a=ci(t.axisName,e.get("name"));if(a){var o=e.get("nameLocation"),i=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,c=e.axis.getExtent(),d=c[0]>c[1]?-1:1,u=[o==="start"?c[0]-d*l:o==="end"?c[1]+d*l:(c[0]+c[1])/2,RH(o)?t.labelOffset+i*l:0],f,p=e.get("nameRotate");p!=null&&(p=p*Sc/180);var m;RH(o)?f=sl.innerTextLayout(t.rotation,p??t.rotation,i):(f=bPt(t.rotation,o,p||0,c),m=t.axisNameAvailableWidth,m!=null&&(m=Math.abs(m/Math.sin(f.rotation)),!isFinite(m)&&(m=null)));var g=s.getFont(),_=e.get("nameTruncate",!0)||{},b=_.ellipsis,w=ci(t.nameTruncateMaxWidth,_.maxWidth,m),S=new Gr({x:u[0],y:u[1],rotation:f.rotation,silent:sl.isLabelSilent(e),style:Ka(s,{text:a,font:g,overflow:"truncate",width:w,ellipsis:b,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(w_({el:S,componentModel:e,itemName:a}),S.__fullText=a,S.anid="name",e.get("triggerEvent")){var x=sl.makeAxisEventDataBase(e);x.targetType="axisName",x.name=a,Et(S).eventData=x}n.add(S),S.updateTransform(),r.add(S),S.decomposeTransform()}}};function bPt(t,e,r,n){var a=MR(r-t),o,i,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return kg(a-Sc/2)?(i=l?"bottom":"top",o="center"):kg(a-Sc*1.5)?(i=l?"top":"bottom",o="center"):(i="middle",aSc/2?o=l?"left":"right":o=l?"right":"left"),{rotation:a,textAlign:o,textVerticalAlign:i}}function wPt(t,e,r){if(!MQ(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var o=e[0],i=e[1],s=e[e.length-1],l=e[e.length-2],c=r[0],d=r[1],u=r[r.length-1],f=r[r.length-2];n===!1?(fo(o),fo(c)):IH(o,i)&&(n?(fo(i),fo(d)):(fo(o),fo(c))),a===!1?(fo(s),fo(u)):IH(l,s)&&(a?(fo(l),fo(f)):(fo(s),fo(u)))}}function fo(t){t&&(t.ignore=!0)}function IH(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var a=f_([]);return h_(a,a,-t.rotation),r.applyTransform(Tc([],a,t.getLocalTransform())),n.applyTransform(Tc([],a,e.getLocalTransform())),r.intersect(n)}}function RH(t){return t==="middle"||t==="center"}function vee(t,e,r,n,a){for(var o=[],i=[],s=[],l=0;l=0||t===e}function OPt(t){var e=LL(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,a=r.option,o=r.get("status"),i=r.get("value");i!=null&&(i=n.parse(i));var s=EA(r);o==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(i==null||i>l[1])&&(i=l[1]),i0&&!m.min?m.min=0:m.min!=null&&m.min<0&&!m.max&&(m.max=0);var g=l;m.color!=null&&(g=bt({color:m.color},l));var _=pt(lt(m),{boundaryGap:r,splitNumber:n,scale:a,axisLine:o,axisTick:i,axisLabel:s,name:m.text,showName:c,nameLocation:"end",nameGap:u,nameTextStyle:g,triggerEvent:f},!1);if(Re(d)){var b=_.name;_.name=d.replace("{value}",b??"")}else ot(d)&&(_.name=d(_.name,_));var w=new hr(_,null,this.ecModel);return da(w,$L.prototype),w.mainType="radar",w.componentIndex=this.componentIndex,w},this);this._indicatorModels=p},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:pt({lineStyle:{color:"#bbb"}},lm.axisLine),axisLabel:cb(lm.axisLabel,!1),axisTick:cb(lm.axisTick,!1),splitLine:cb(lm.splitLine,!0),splitArea:cb(lm.splitArea,!0),indicator:[]},e}(Pt),VPt=["axisLine","axisTickLabel","axisName"],YPt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var o=this.group;o.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes(),o=ye(a,function(i){var s=i.model.get("showName")?i.name:"",l=new sl(i.model,{axisName:s,position:[n.cx,n.cy],rotation:i.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});W(o,function(i){W(VPt,i.add,i),this.group.add(i.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var o=r.get("shape"),i=r.getModel("splitLine"),s=r.getModel("splitArea"),l=i.getModel("lineStyle"),c=s.getModel("areaStyle"),d=i.get("show"),u=s.get("show"),f=l.get("color"),p=c.get("color"),m=Ee(f)?f:[f],g=Ee(p)?p:[p],_=[],b=[];function w(j,V,Q){var G=Q%V.length;return j[G]=j[G]||[],G}if(o==="circle")for(var S=a[0].getTicksCoords(),x=n.cx,E=n.cy,T=0;T3?1.4:i>1?1.2:1.1,d=o>0?c:1/c;$M(this,"zoom","zoomOnMouseWheel",r,{scale:d,originX:s,originY:l,isAvailableBehavior:null})}if(a){var u=Math.abs(o),f=(o>0?1:-1)*(u>3?.4:u>1?.15:.05);$M(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(r){if(!jH(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;$M(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},e}(zo);function $M(t,e,r,n,a){t.pointerChecker&&t.pointerChecker(n,a.originX,a.originY)&&(np(n.event),bee(t,e,r,n,a))}function bee(t,e,r,n,a){a.isAvailableBehavior=qe(l1,null,r,n),t.trigger(e,a)}function l1(t,e,r){var n=r[t];return!t||n&&(!Re(n)||e.event[n+"Key"])}var eIt={axisPointer:1,tooltip:1,brush:1};function tIt(t,e,r){var n=e.getComponentByElement(t.topTarget),a=n&&n.coordinateSystem;return n&&n!==r&&!eIt.hasOwnProperty(n.mainType)&&a&&a.model!==r}var WH=Ro.prototype,AM=__.prototype,wee=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(wee);function PM(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var rIt=function(t){le(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new wee},e.prototype.buildPath=function(r,n){PM(n)?WH.buildPath.call(this,r,n):AM.buildPath.call(this,r,n)},e.prototype.pointAt=function(r){return PM(this.shape)?WH.pointAt.call(this,r):AM.pointAt.call(this,r)},e.prototype.tangentAt=function(r){var n=this.shape,a=PM(n)?[n.x2-n.x1,n.y2-n.y1]:AM.tangentAt.call(this,r);return NS(a,a)},e}(Xt),IM=["fromSymbol","toSymbol"];function HH(t){return"_"+t+"Type"}function UH(t,e,r){var n=e.getItemVisual(r,t);if(!n||n==="none")return n;var a=e.getItemVisual(r,t+"Size"),o=e.getItemVisual(r,t+"Rotate"),i=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=M_(a),c=O_(i||0,l);return n+l+c+(o||"")+(s||"")}function VH(t,e,r){var n=e.getItemVisual(r,t);if(!(!n||n==="none")){var a=e.getItemVisual(r,t+"Size"),o=e.getItemVisual(r,t+"Rotate"),i=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=M_(a),c=O_(i||0,l),d=to(n,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,s);return d.__specifiedRotation=o==null||isNaN(o)?void 0:+o*Math.PI/180||0,d.name=t,d}}function nIt(t){var e=new rIt({name:"line",subPixelOptimize:!0});return MA(e.shape,t),e}function MA(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var r=e[2];r?(t.cpx1=r[0],t.cpy1=r[1]):(t.cpx1=NaN,t.cpy1=NaN)}var aIt=function(t){le(e,t);function e(r,n,a){var o=t.call(this)||this;return o._createLine(r,n,a),o}return e.prototype._createLine=function(r,n,a){var o=r.hostModel,i=r.getItemLayout(n),s=nIt(i);s.shape.percent=0,Jn(s,{shape:{percent:1}},o,n),this.add(s),W(IM,function(l){var c=VH(l,r,n);this.add(c),this[HH(l)]=UH(l,r,n)},this),this._updateCommonStl(r,n,a)},e.prototype.updateData=function(r,n,a){var o=r.hostModel,i=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};MA(l.shape,s),Zr(i,l,o,n),W(IM,function(c){var d=UH(c,r,n),u=HH(c);if(this[u]!==d){this.remove(this.childOfName(c));var f=VH(c,r,n);this.add(f)}this[u]=d},this),this._updateCommonStl(r,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(r,n,a){var o=r.hostModel,i=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,c=a&&a.selectLineStyle,d=a&&a.labelStatesModels,u=a&&a.emphasisDisabled,f=a&&a.focus,p=a&&a.blurScope;if(!a||r.hasItemOption){var m=r.getItemModel(n),g=m.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=m.getModel(["blur","lineStyle"]).getLineStyle(),c=m.getModel(["select","lineStyle"]).getLineStyle(),u=g.get("disabled"),f=g.get("focus"),p=g.get("blurScope"),d=Yc(m)}var _=r.getItemVisual(n,"style"),b=_.stroke;i.useStyle(_),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=s,i.ensureState("blur").style=l,i.ensureState("select").style=c,W(IM,function(T){var D=this.childOfName(T);if(D){D.setColor(b),D.style.opacity=_.opacity;for(var A=0;A0&&(E[0]=-E[0],E[1]=-E[1]);var D=x[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var A=-Math.atan2(x[1],x[0]);u[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":o.x=-f[0]*b+d[0],o.y=-f[1]*w+d[1],m=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=b*D+d[0],o.y=d[1]+P,m=x[0]<0?"right":"left",o.originX=-b*D,o.originY=-P;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=T[0],o.y=T[1]+P,m="center",o.originY=-P;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-b*D+u[0],o.y=u[1]+P,m=x[0]>=0?"right":"left",o.originX=b*D,o.originY=-P;break}o.scaleX=o.scaleY=i,o.setStyle({verticalAlign:o.__verticalAlign||g,align:o.__align||m})}},e}(sr),oIt=function(){function t(e){this.group=new sr,this._LineCtor=e||aIt}return t.prototype.updateData=function(e){var r=this;this._progressiveEls=null;var n=this,a=n.group,o=n._lineData;n._lineData=e,o||a.removeAll();var i=YH(e);e.diff(o).add(function(s){r._doAdd(e,s,i)}).update(function(s,l){r._doUpdate(o,e,l,s,i)}).remove(function(s){a.remove(o.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(r,n){r.updateLayout(e,n)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=YH(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r){this._progressiveEls=[];function n(s){!s.isGroup&&!iIt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function YH(t){var e=t.hostModel,r=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Yc(e)}}function GH(t){return isNaN(t[0])||isNaN(t[1])}function RM(t){return t&&!GH(t[0])&&!GH(t[1])}function I_(t,e,r,n,a,o){t=t||0;var i=r[1]-r[0];if(a!=null&&(a=qf(a,[0,i])),o!=null&&(o=Math.max(o,a??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=qf(s,[0,i]),a=o=qf(s,[a,o]),n=0}e[0]=qf(e[0],r),e[1]=qf(e[1],r);var l=LM(e,n);e[n]+=t;var c=a||0,d=r.slice();l.sign<0?d[0]+=c:d[1]-=c,e[n]=qf(e[n],d);var u;return u=LM(e,n),a!=null&&(u.sign!==l.sign||u.spano&&(e[1-n]=e[n]+u.sign*o),e}function LM(t,e){var r=t[e]-t[1-e];return{span:Math.abs(r),sign:r>0?-1:r<0?1:e?-1:1}}function qf(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var Td=!0,zg=Math.min,cp=Math.max,sIt=Math.pow,lIt=1e4,cIt=6,uIt=6,qH="globalPan",dIt={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},fIt={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},XH={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},hIt=0,pIt=function(t){le(e,t);function e(r){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new sr,n._uid="brushController_"+hIt++,W(wIt,function(a,o){this._handlers[o]=qe(a,this)},n),n}return e.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},e.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||KPt(n,qH,this._uid),W(this._handlers,function(a,o){n.on(o,a)}),this._brushType=r.brushType,this._brushOption=pt(lt(XH),r,!0)},e.prototype._doDisableBrush=function(){var r=this._zr;ZPt(r,qH,this._uid),W(this._handlers,function(n,a){r.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};W(r,function(a){n[a.panelId]=lt(a)})}else this._panels=null;return this},e.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(r){r=ye(r,function(f){return pt(lt(XH),f,!0)});var n="\0-brush-index-",a=this._covers,o=this._covers=[],i=this,s=this._creatingCover;return new xL(a,r,c,l).add(d).update(d).remove(u).execute(),this;function l(f,p){return(f.id!=null?f.id:n+p)+"-"+f.brushType}function c(f,p){return l(f.__brushOption,p)}function d(f,p){var m=r[f];if(p!=null&&a[p]===s)o[f]=a[p];else{var g=o[f]=p!=null?(a[p].__brushOption=m,a[p]):xee(i,See(i,m));FL(i,g)}}function u(f){a[f]!==s&&i.group.remove(a[f])}},e.prototype.unmount=function(){return this.enableBrush(!1),OA(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(zo);function See(t,e){var r=bx[e.brushType].createCover(t,e);return r.__brushOption=e,Tee(r,e),t.group.add(r),r}function xee(t,e){var r=zL(e);return r.endCreating&&(r.endCreating(t,e),Tee(e,e.__brushOption)),e}function Cee(t,e){var r=e.__brushOption;zL(e).updateCoverShape(t,e,r.range,r)}function Tee(t,e){var r=e.z;r==null&&(r=lIt),t.traverse(function(n){n.z=r,n.z2=r})}function FL(t,e){zL(e).updateCommon(t,e),Cee(t,e)}function zL(t){return bx[t.__brushOption.brushType]}function BL(t,e,r){var n=t._panels;if(!n)return Td;var a,o=t._transform;return W(n,function(i){i.isTargetByCursor(e,r,o)&&(a=i)}),a}function kee(t,e){var r=t._panels;if(!r)return Td;var n=e.__brushOption.panelId;return n!=null?r[n]:Td}function OA(t){var e=t._covers,r=e.length;return W(e,function(n){t.group.remove(n)},t),e.length=0,!!r}function kd(t,e){var r=ye(t._covers,function(n){var a=n.__brushOption,o=lt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:o}});t.trigger("brush",{areas:r,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function vIt(t){var e=t._track;if(!e.length)return!1;var r=e[e.length-1],n=e[0],a=r[0]-n[0],o=r[1]-n[1],i=sIt(a*a+o*o,.5);return i>cIt}function Eee(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Dee(t,e,r,n){var a=new sr;return a.add(new Sr({name:"main",style:jL(r),silent:!0,draggable:!0,cursor:"move",drift:Dt(JH,t,e,a,["n","s","w","e"]),ondragend:Dt(kd,e,{isEnd:!0})})),W(n,function(o){a.add(new Sr({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Dt(JH,t,e,a,o),ondragend:Dt(kd,e,{isEnd:!0})}))}),a}function Mee(t,e,r,n){var a=n.brushStyle.lineWidth||0,o=cp(a,uIt),i=r[0][0],s=r[1][0],l=i-a/2,c=s-a/2,d=r[0][1],u=r[1][1],f=d-o+a/2,p=u-o+a/2,m=d-i,g=u-s,_=m+a,b=g+a;js(t,e,"main",i,s,m,g),n.transformable&&(js(t,e,"w",l,c,o,b),js(t,e,"e",f,c,o,b),js(t,e,"n",l,c,_,o),js(t,e,"s",l,p,_,o),js(t,e,"nw",l,c,o,o),js(t,e,"ne",f,c,o,o),js(t,e,"sw",l,p,o,o),js(t,e,"se",f,p,o,o))}function $A(t,e){var r=e.__brushOption,n=r.transformable,a=e.childAt(0);a.useStyle(jL(r)),a.attr({silent:!n,cursor:n?"move":"default"}),W([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var i=e.childOfName(o.join("")),s=o.length===1?AA(t,o[0]):gIt(t,o);i&&i.attr({silent:!n,invisible:!n,cursor:n?fIt[s]+"-resize":null})})}function js(t,e,r,n,a,o,i){var s=e.childOfName(r);s&&s.setShape(yIt(WL(t,e,[[n,a],[n+o,a+i]])))}function jL(t){return bt({strokeNoScale:!0},t.brushStyle)}function Oee(t,e,r,n){var a=[zg(t,r),zg(e,n)],o=[cp(t,r),cp(e,n)];return[[a[0],o[0]],[a[1],o[1]]]}function mIt(t){return b_(t.group)}function AA(t,e){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=VR(r[e],mIt(t));return n[a]}function gIt(t,e){var r=[AA(t,e[0]),AA(t,e[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function JH(t,e,r,n,a,o){var i=r.__brushOption,s=t.toRectRange(i.range),l=$ee(e,a,o);W(n,function(c){var d=dIt[c];s[d[0]][d[1]]+=l[d[0]]}),i.range=t.fromRectRange(Oee(s[0][0],s[1][0],s[0][1],s[1][1])),FL(e,r),kd(e,{isEnd:!1})}function _It(t,e,r,n){var a=e.__brushOption.range,o=$ee(t,r,n);W(a,function(i){i[0]+=o[0],i[1]+=o[1]}),FL(t,e),kd(t,{isEnd:!1})}function $ee(t,e,r){var n=t.group,a=n.transformCoordToLocal(e,r),o=n.transformCoordToLocal(0,0);return[a[0]-o[0],a[1]-o[1]]}function WL(t,e,r){var n=kee(t,e);return n&&n!==Td?n.clipPath(r,t._transform):lt(r)}function yIt(t){var e=zg(t[0][0],t[1][0]),r=zg(t[0][1],t[1][1]),n=cp(t[0][0],t[1][0]),a=cp(t[0][1],t[1][1]);return{x:e,y:r,width:n-e,height:a-r}}function bIt(t,e,r){if(!(!t._brushType||SIt(t,e.offsetX,e.offsetY))){var n=t._zr,a=t._covers,o=BL(t,e,r);if(!t._dragging)for(var i=0;in.getWidth()||r<0||r>n.getHeight()}var bx={lineX:QH(0),lineY:QH(1),rect:{createCover:function(t,e){function r(n){return n}return Dee({toRectRange:r,fromRectRange:r},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=Eee(t);return Oee(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,r,n){Mee(t,e,r,n)},updateCommon:$A,contain:IA},polygon:{createCover:function(t,e){var r=new sr;return r.add(new xl({name:"main",style:jL(e),silent:!0})),r},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new cs({name:"main",draggable:!0,drift:Dt(_It,t,e),ondragend:Dt(kd,t,{isEnd:!0})}))},updateCoverShape:function(t,e,r,n){e.childAt(0).setShape({points:WL(t,e,r)})},updateCommon:$A,contain:IA}};function QH(t){return{createCover:function(e,r){return Dee({toRectRange:function(n){var a=[n,[0,100]];return t&&a.reverse(),a},fromRectRange:function(n){return n[t]}},e,r,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var r=Eee(e),n=zg(r[0][t],r[1][t]),a=cp(r[0][t],r[1][t]);return[n,a]},updateCoverShape:function(e,r,n,a){var o,i=kee(e,r);if(i!==Td&&i.getLinearBrushOtherExtent)o=i.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,o];t&&l.reverse(),Mee(e,r,l,a)},updateCommon:$A,contain:IA}}function xIt(t){return t=HL(t),function(e){return YR(e,t)}}function CIt(t,e){return t=HL(t),function(r){var n=e??r,a=n?t.width:t.height,o=n?t.x:t.y;return[o,o+(a||0)]}}function TIt(t,e,r){var n=HL(t);return function(a,o){return n.contain(o[0],o[1])&&!tIt(a,e,r)}}function HL(t){return Ft.create(t)}var Uu=fr(),eU=lt,NM=qe,kIt=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,a){var o=r.get("value"),i=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===o&&this._lastStatus===i)){this._lastValue=o,this._lastStatus=i;var s=this._group,l=this._handle;if(!i||i==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var c={};this.makeElOption(c,o,e,r,n);var d=c.graphicKey;d!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=d;var u=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new sr,this.createPointerEl(s,c,e,r),this.createLabelEl(s,c,e,r),n.getZr().add(s);else{var f=Dt(tU,r,u);this.updatePointerEl(s,c,f),this.updateLabelEl(s,c,f,r)}nU(s,r,!0),this._renderHandle(o)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),a=e.axis,o=a.type==="category",i=r.get("snap");if(!i&&!o)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(o&&a.getBandWidth()>s)return!0;if(i){var l=LL(e).seriesDataCount,c=a.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,a,o){},t.prototype.createPointerEl=function(e,r,n,a){var o=r.pointer;if(o){var i=Uu(e).pointerEl=new HK[o.type](eU(r.pointer));e.add(i)}},t.prototype.createLabelEl=function(e,r,n,a){if(r.label){var o=Uu(e).labelEl=new Gr(eU(r.label));e.add(o),rU(o,a)}},t.prototype.updatePointerEl=function(e,r,n){var a=Uu(e).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,a){var o=Uu(e).labelEl;o&&(o.setStyle(r.label.style),n(o,{x:r.label.x,y:r.label.y}),rU(o,a))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,o=r.getModel("handle"),i=r.get("status");if(!o.get("show")||!i||i==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Dp(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){np(c.event)},onmousedown:NM(this._onHandleDragMove,this,0,0),drift:NM(this._onHandleDragMove,this),ondragend:NM(this._onHandleDragEnd,this)}),n.add(a)),nU(a,r,!1),a.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");Ee(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,lx(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){tU(this._axisPointerModel,!r&&this._moveAnimation,this._handle,FM(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(FM(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(FM(a)),Uu(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),dw(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t}();function tU(t,e,r,n){Pee(Uu(r).lastProp,n)||(Uu(r).lastProp=n,e?Zr(r,n,t):(r.stopAnimation(),r.attr(n)))}function Pee(t,e){if(Ke(t)&&Ke(e)){var r=!0;return W(e,function(n,a){r=r&&Pee(t[a],n)}),!!r}else return t===e}function rU(t,e){t[e.get(["label","show"])?"show":"hide"]()}function FM(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function nU(t,e,r){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(o){o.type!=="group"&&(n!=null&&(o.z=n),a!=null&&(o.zlevel=a),o.silent=r)})}function EIt(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function DIt(t,e,r,n,a){var o=r.get("value"),i=Iee(o,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=k_(s.get("padding")||0),c=s.getFont(),d=BS(i,c),u=a.position,f=d.width+l[1]+l[3],p=d.height+l[0]+l[2],m=a.align;m==="right"&&(u[0]-=f),m==="center"&&(u[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(u[1]-=p),g==="middle"&&(u[1]-=p/2),MIt(u,f,p,n);var _=s.get("backgroundColor");(!_||_==="auto")&&(_=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:Ka(s,{text:i,font:c,fill:s.getTextColor(),padding:l,backgroundColor:_}),z2:10}}function MIt(t,e,r,n){var a=n.getWidth(),o=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+r,o)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Iee(t,e,r,n,a){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:a.precision}),i=a.formatter;if(i){var s={value:ML(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};W(n,function(l){var c=r.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,u=c&&c.getDataParams(d);u&&s.seriesData.push(u)}),Re(i)?o=i.replace("{value}",o):ot(i)&&(o=i(s))}return o}function Ree(t,e,r){var n=il();return h_(n,n,r.rotation),ap(n,n,r.position),ip([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function OIt(t,e,r,n,a,o){var i=sl.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),DIt(e,n,a,o,{position:Ree(n.axis,t,r),align:i.textAlign,verticalAlign:i.textVerticalAlign})}function $It(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function AIt(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var PIt=function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,a,o,i){var s=a.axis,l=s.grid,c=o.get("type"),d=aU(l,s).getOtherAxis(s).getGlobalExtent(),u=s.toGlobalCoord(s.dataToCoord(n,!0));if(c&&c!=="none"){var f=EIt(o),p=IIt[c](s,u,d);p.style=f,r.graphicKey=p.type,r.pointer=p}var m=kA(l.model,a);OIt(n,r,m,a,o,i)},e.prototype.getHandleTransform=function(r,n,a){var o=kA(n.axis.grid.model,n,{labelInside:!1});o.labelMargin=a.get(["handle","margin"]);var i=Ree(n.axis,r,o);return{x:i[0],y:i[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,a,o){var i=a.axis,s=i.grid,l=i.getGlobalExtent(!0),c=aU(s,i).getOtherAxis(i).getGlobalExtent(),d=i.dim==="x"?0:1,u=[r.x,r.y];u[d]+=n[d],u[d]=Math.min(l[1],u[d]),u[d]=Math.max(l[0],u[d]);var f=(c[1]+c[0])/2,p=[f,f];p[d]=u[d];var m=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:r.rotation,cursorPoint:p,tooltipOption:m[d]}},e}(kIt);function aU(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var IIt={line:function(t,e,r){var n=$It([e,r[0]],[e,r[1]],oU(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:AIt([e-n/2,r[0]],[n,a],oU(t))}}};function oU(t){return t.dim==="x"?0:1}var RIt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Pt),el=fr(),LIt=W;function Lee(t,e,r){if(!ut.node){var n=e.getZr();el(n).records||(el(n).records={}),NIt(n,e);var a=el(n).records[t]||(el(n).records[t]={});a.handler=r}}function NIt(t,e){if(el(t).initialized)return;el(t).initialized=!0,r("click",Dt(iU,"click")),r("mousemove",Dt(iU,"mousemove")),r("globalout",zIt);function r(n,a){t.on(n,function(o){var i=BIt(e);LIt(el(t).records,function(s){s&&a(s,o,i.dispatchAction)}),FIt(i.pendings,e)})}}function FIt(t,e){var r=t.showTip.length,n=t.hideTip.length,a;r?a=t.showTip[r-1]:n&&(a=t.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function zIt(t,e,r){t.handler("leave",null,r)}function iU(t,e,r,n){e.handler(t,r,n)}function BIt(t){var e={showTip:[],hideTip:[]},r=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function RA(t,e){if(!ut.node){var r=e.getZr(),n=(el(r).records||{})[t];n&&(el(r).records[t]=null)}}var jIt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var o=n.getComponent("tooltip"),i=r.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";Lee("axisPointer",a,function(s,l,c){i!=="none"&&(s==="leave"||i.indexOf(s)>=0)&&c({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){RA("axisPointer",n)},e.prototype.dispose=function(r,n){RA("axisPointer",n)},e.type="axisPointer",e}(Qr);function Nee(t,e){var r=[],n=t.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var o=a.getData(),i=bd(o,t);if(i==null||i<0||Ee(i))return{point:[]};var s=o.getItemGraphicEl(i),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(i)||[];else if(l&&l.dataToPoint)if(t.isStacked){var c=l.getBaseAxis(),d=l.getOtherAxis(c),u=d.dim,f=c.dim,p=u==="x"||u==="radius"?1:0,m=o.mapDimension(f),g=[];g[p]=o.get(m,i),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),i),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(ye(l.dimensions,function(b){return o.mapDimension(b)}),i))||[];else if(s){var _=s.getBoundingRect().clone();_.applyTransform(s.transform),r=[_.x+_.width/2,_.y+_.height/2]}return{point:r,el:s}}var sU=fr();function WIt(t,e,r){var n=t.currTrigger,a=[t.x,t.y],o=t,i=t.dispatchAction||qe(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){c1(a)&&(a=Nee({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=c1(a),c=o.axesInfo,d=s.axesInfo,u=n==="leave"||c1(a),f={},p={},m={list:[],map:{}},g={showPointer:Dt(UIt,p),showTooltip:Dt(VIt,m)};W(s.coordSysMap,function(b,w){var S=l||b.containPoint(a);W(s.coordSysAxesInfo[w],function(x,E){var T=x.axis,D=XIt(c,x);if(!u&&S&&(!c||D)){var A=D&&D.value;A==null&&!l&&(A=T.pointToData(a)),A!=null&&lU(x,A,g,!1,f)}})});var _={};return W(d,function(b,w){var S=b.linkGroup;S&&!p[w]&&W(S.axesInfo,function(x,E){var T=p[E];if(x!==b&&T){var D=T.value;S.mapper&&(D=b.axis.scale.parse(S.mapper(D,cU(x),cU(b)))),_[b.key]=D}})}),W(_,function(b,w){lU(d[w],b,g,!0,f)}),YIt(p,d,f),GIt(m,a,t,i),qIt(d,i,r),f}}function lU(t,e,r,n,a){var o=t.axis;if(!(o.scale.isBlank()||!o.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var i=HIt(e,t),s=i.payloadBatch,l=i.snapToValue;s[0]&&a.seriesIndex==null&&_e(a,s[0]),!n&&t.snap&&o.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,i,l)}}function HIt(t,e){var r=e.axis,n=r.dim,a=t,o=[],i=Number.MAX_VALUE,s=-1;return W(e.seriesModels,function(l,c){var d=l.getData().mapDimensionsAll(n),u,f;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(d,t,r);f=p.dataIndices,u=p.nestestValue}else{if(f=l.getData().indicesOfNearest(d[0],t,r.type==="category"?.5:null),!f.length)return;u=l.getData().get(d[0],f[0])}if(!(u==null||!isFinite(u))){var m=t-u,g=Math.abs(m);g<=i&&((g=0&&s<0)&&(i=g,s=m,a=u,o.length=0),W(f,function(_){o.push({seriesIndex:l.seriesIndex,dataIndexInside:_,dataIndex:l.getData().getRawIndex(_)})}))}}),{payloadBatch:o,snapToValue:a}}function UIt(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function VIt(t,e,r,n){var a=r.payloadBatch,o=e.axis,i=o.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,c=Fg(l),d=t.map[c];d||(d=t.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(d)),d.dataByAxis.push({axisDim:o.dim,axisIndex:i.componentIndex,axisType:i.type,axisId:i.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function YIt(t,e,r){var n=r.axesInfo=[];W(e,function(a,o){var i=a.axisPointerModel.option,s=t[o];s?(!a.useHandle&&(i.status="show"),i.value=s.value,i.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(i.status="hide"),i.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:i.value})})}function GIt(t,e,r,n){if(c1(e)||!t.list.length){n({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function qIt(t,e,r){var n=r.getZr(),a="axisPointerLastHighlights",o=sU(n)[a]||{},i=sU(n)[a]={};W(t,function(c,d){var u=c.axisPointerModel.option;u.status==="show"&&c.triggerEmphasis&&W(u.seriesDataIndices,function(f){var p=f.seriesIndex+" | "+f.dataIndex;i[p]=f})});var s=[],l=[];W(o,function(c,d){!i[d]&&l.push(c)}),W(i,function(c,d){!o[d]&&s.push(c)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function XIt(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function cU(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function c1(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Fee(t){mee.registerAxisPointerClass("CartesianAxisPointer",PIt),t.registerComponentModel(RIt),t.registerComponentView(jIt),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!Ee(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=TPt(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},WIt)}function uU(t){Dn(yee),Dn(Fee)}var dU=["x","y","radius","angle","single"],JIt=["cartesian2d","polar","singleAxis"];function KIt(t){var e=t.get("coordinateSystem");return $t(JIt,e)>=0}function xc(t){return t+"Axis"}function ZIt(t,e){var r=dt(),n=[],a=dt();t.eachComponent({mainType:"dataZoom",query:e},function(d){a.get(d.uid)||s(d)});var o;do o=!1,t.eachComponent("dataZoom",i);while(o);function i(d){!a.get(d.uid)&&l(d)&&(s(d),o=!0)}function s(d){a.set(d.uid,!0),n.push(d),c(d)}function l(d){var u=!1;return d.eachTargetAxis(function(f,p){var m=r.get(f);m&&m[p]&&(u=!0)}),u}function c(d){d.eachTargetAxis(function(u,f){(r.get(u)||r.set(u,[]))[f]=!0})}return n}function zee(t){var e=t.ecModel,r={infoList:[],infoMap:dt()};return t.eachTargetAxis(function(n,a){var o=e.getComponent(xc(n),a);if(o){var i=o.getCoordSysModel();if(i){var s=i.uid,l=r.infoMap.get(s);l||(l={model:i,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(o)}}}),r}var zM=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t}(),Bg=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return e.prototype.init=function(r,n,a){var o=fU(r);this.settledOption=o,this.mergeDefaultAndTheme(r,a),this._doInit(o)},e.prototype.mergeOption=function(r){var n=fU(r);pt(this.option,r,!0),pt(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;W([["start","startValue"],["end","endValue"]],function(o,i){this._rangePropMode[i]==="value"&&(n[o[0]]=a[o[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=dt(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(o){o.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return W(dU,function(a){var o=this.getReferringComponents(xc(a),Rkt);if(o.specified){n=!0;var i=new zM;W(o.models,function(s){i.add(s.componentIndex)}),r.set(a,i)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(r,n){var a=this.ecModel,o=!0;if(o){var i=n==="vertical"?"y":"x",s=a.findComponents({mainType:i+"Axis"});l(s,i)}if(o){var s=a.findComponents({mainType:"singleAxis",filter:function(d){return d.get("orient",!0)===n}});l(s,"single")}function l(c,d){var u=c[0];if(u){var f=new zM;if(f.add(u.componentIndex),r.set(d,f),o=!1,d==="x"||d==="y"){var p=u.getReferringComponents("grid",ia).models[0];p&&W(c,function(m){u.componentIndex!==m.componentIndex&&p===m.getReferringComponents("grid",ia).models[0]&&f.add(m.componentIndex)})}}}o&&W(dU,function(c){if(o){var d=a.findComponents({mainType:xc(c),filter:function(f){return f.get("type",!0)==="category"}});if(d[0]){var u=new zM;u.add(d[0].componentIndex),r.set(c,u),o=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(r){var n=this._rangePropMode,a=this.get("rangeMode");W([["start","startValue"],["end","endValue"]],function(o,i){var s=r[o[0]]!=null,l=r[o[1]]!=null;s&&!l?n[i]="percent":!s&&l?n[i]="value":a?n[i]=a[i]:s&&(n[i]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(xc(n),a))},this),r},e.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,o){W(a.indexList,function(i){r.call(n,o,i)})})},e.prototype.getAxisProxy=function(r,n){var a=this.getAxisModel(r,n);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(r,n){var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(xc(r),n)},e.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;W([["start","startValue"],["end","endValue"]],function(o){(r[o[0]]!=null||r[o[1]]!=null)&&(n[o[0]]=a[o[0]]=r[o[0]],n[o[1]]=a[o[1]]=r[o[1]])},this),this._updateRangeUse(r)},e.prototype.setCalculatedRange=function(r){var n=this.option;W(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},e.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},e.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),o=0;oi[1];if(S&&!x&&!E)return!0;S&&(_=!0),x&&(m=!0),E&&(g=!0)}return _&&m&&g})}else gh(d,function(p){if(o==="empty")l.setData(c=c.map(p,function(g){return s(g)?g:NaN}));else{var m={};m[p]=i,c.selectRange(m)}});gh(d,function(p){c.setApproximateExtent(i,p)})}});function s(l){return l>=i[0]&&l<=i[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;gh(["min","max"],function(a){var o=r.get(a+"Span"),i=r.get(a+"ValueSpan");i!=null&&(i=this.getAxisModel().axis.scale.parse(i)),i!=null?o=Cn(n[0]+i,n,[0,100],!0):o!=null&&(i=Cn(o,[0,100],n,!0)-n[0]),e[a+"Span"]=o,e[a+"ValueSpan"]=i},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var a=DR(n,[0,500]);a=Math.min(a,20);var o=e.axis.scale.rawExtentInfo;r[0]!==0&&o.setDeterminedMinMax("min",+n[0].toFixed(a)),r[1]!==100&&o.setDeterminedMinMax("max",+n[1].toFixed(a)),o.freeze()}},t}();function rRt(t,e,r){var n=[1/0,-1/0];gh(r,function(i){I$t(n,i.getData(),e)});var a=t.getAxisModel(),o=kQ(a.axis.scale,a,n).calculate();return[o.min,o.max]}var nRt={getTargetSeries:function(t){function e(a){t.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(i,s){var l=t.getComponent(xc(i),s);a(i,s,l,o)})})}e(function(a,o,i,s){i.__dzAxisProxy=null});var r=[];e(function(a,o,i,s){i.__dzAxisProxy||(i.__dzAxisProxy=new tRt(a,o,s,t),r.push(i.__dzAxisProxy))});var n=dt();return W(r,function(a){W(a.getTargetSeriesModels(),function(o){n.set(o.uid,o)})}),n},overallReset:function(t,e){t.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).reset(r)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,e)})}),t.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),o=n.getDataValueWindow();r.setCalculatedRange({start:a[0],end:a[1],startValue:o[0],endValue:o[1]})}})}};function aRt(t){t.registerAction("dataZoom",function(e,r){var n=ZIt(r,e);W(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var pU=!1;function VL(t){pU||(pU=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,nRt),aRt(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function oRt(t){t.registerComponentModel(QIt),t.registerComponentView(eRt),VL(t)}var oi=function(){function t(){}return t}(),Bee={};function cm(t,e){Bee[t]=e}function jee(t){return Bee[t]}var iRt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;W(this.option.feature,function(n,a){var o=jee(a);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(r)),pt(n,o.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Pt);function sRt(t,e,r){var n=e.getBoxLayoutParams(),a=e.get("padding"),o={width:r.getWidth(),height:r.getHeight()},i=us(n,o,a);Hh(e.get("orient"),t,e.get("itemGap"),i.width,i.height),oDt(t,n,o,a)}function Wee(t,e){var r=k_(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new Sr({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var lRt=function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,a,o){var i=this.group;if(i.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",c=r.get("feature")||{},d=this._features||(this._features={}),u=[];W(c,function(m,g){u.push(g)}),new xL(this._featureNames||[],u).add(f).update(f).remove(Dt(f,null)).execute(),this._featureNames=u;function f(m,g){var _=u[m],b=u[g],w=c[_],S=new hr(w,r,r.ecModel),x;if(o&&o.newTitle!=null&&o.featureName===_&&(w.title=o.newTitle),_&&!b){if(cRt(_))x={onclick:S.option.onclick,featureName:_};else{var E=jee(_);if(!E)return;x=new E}d[_]=x}else if(x=d[b],!x)return;x.uid=x_("toolbox-feature"),x.model=S,x.ecModel=n,x.api=a;var T=x instanceof oi;if(!_&&b){T&&x.dispose&&x.dispose(n,a);return}if(!S.get("show")||T&&x.unusable){T&&x.remove&&x.remove(n,a);return}p(S,x,_),S.setIconStatus=function(D,A){var P=this.option,O=this.iconPaths;P.iconStatus=P.iconStatus||{},P.iconStatus[D]=A,O[D]&&(A==="emphasis"?wd:Sd)(O[D])},x instanceof oi&&x.render&&x.render(S,n,a,o)}function p(m,g,_){var b=m.getModel("iconStyle"),w=m.getModel(["emphasis","iconStyle"]),S=g instanceof oi&&g.getIcons?g.getIcons():m.get("icon"),x=m.get("title")||{},E,T;Re(S)?(E={},E[_]=S):E=S,Re(x)?(T={},T[_]=x):T=x;var D=m.iconPaths={};W(E,function(A,P){var O=Dp(A,{},{x:-s/2,y:-s/2,width:s,height:s});O.setStyle(b.getItemStyle());var I=O.ensureState("emphasis");I.style=w.getItemStyle();var F=new Gr({style:{text:T[P],align:w.get("textAlign"),borderRadius:w.get("textBorderRadius"),padding:w.get("textPadding"),fill:null,font:VK({fontStyle:w.get("textFontStyle"),fontFamily:w.get("textFontFamily"),fontSize:w.get("textFontSize"),fontWeight:w.get("textFontWeight")},n)},ignore:!0});O.setTextContent(F),w_({el:O,componentModel:r,itemName:P,formatterParamsExtra:{title:T[P]}}),O.__title=T[P],O.on("mouseover",function(){var N=w.getItemStyle(),B=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";F.setStyle({fill:w.get("textFill")||N.fill||N.stroke||"#000",backgroundColor:w.get("textBackgroundColor")}),O.setTextConfig({position:w.get("textPosition")||B}),F.ignore=!r.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",P])!=="emphasis"&&a.leaveEmphasis(this),F.hide()}),(m.get(["iconStatus",P])==="emphasis"?wd:Sd)(O),i.add(O),O.on("click",qe(g.onclick,g,n,a,P)),D[P]=O})}sRt(i,r,a),i.add(Wee(i.getBoundingRect(),r)),l||i.eachChild(function(m){var g=m.__title,_=m.ensureState("emphasis"),b=_.textConfig||(_.textConfig={}),w=m.getTextContent(),S=w&&w.ensureState("emphasis");if(S&&!ot(S)&&g){var x=S.style||(S.style={}),E=BS(g,Gr.makeFont(x)),T=m.x+i.x,D=m.y+i.y+s,A=!1;D+E.height>a.getHeight()&&(b.position="top",A=!0);var P=A?-5-E.height:s+10;T+E.width/2>a.getWidth()?(b.position=["100%",P],x.align="right"):T-E.width/2<0&&(b.position=[0,P],x.align="left")}})},e.prototype.updateView=function(r,n,a,o){W(this._features,function(i){i instanceof oi&&i.updateView&&i.updateView(i.model,n,a,o)})},e.prototype.remove=function(r,n){W(this._features,function(a){a instanceof oi&&a.remove&&a.remove(r,n)}),this.group.removeAll()},e.prototype.dispose=function(r,n){W(this._features,function(a){a instanceof oi&&a.dispose&&a.dispose(r,n)})},e.type="toolbox",e}(Qr);function cRt(t){return t.indexOf("my")===0}var uRt=function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,n){var a=this.model,o=a.get("name")||r.get("title.0.text")||"echarts",i=n.getZr().painter.getType()==="svg",s=i?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),c=ut.browser;if(typeof MouseEvent=="function"&&(c.newEdge||!c.ie&&!c.edge)){var d=document.createElement("a");d.download=o+"."+s,d.target="_blank",d.href=l;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});d.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||i){var f=l.split(","),p=f[0].indexOf("base64")>-1,m=i?decodeURIComponent(f[1]):f[1];p&&(m=window.atob(m));var g=o+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var _=m.length,b=new Uint8Array(_);_--;)b[_]=m.charCodeAt(_);var w=new Blob([b]);window.navigator.msSaveOrOpenBlob(w,g)}else{var S=document.createElement("iframe");document.body.appendChild(S);var x=S.contentWindow,E=x.document;E.open("image/svg+xml","replace"),E.write(m),E.close(),x.focus(),E.execCommand("SaveAs",!0,g),document.body.removeChild(S)}}else{var T=a.get("lang"),D='',A=window.open();A.document.write(D),A.document.title=o}},e.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(oi),vU="__ec_magicType_stack__",dRt=[["line","bar"],["stack"]],fRt=function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),a={};return W(r.get("type"),function(o){n[o]&&(a[o]=n[o])}),a},e.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(r,n,a){var o=this.model,i=o.get(["seriesIndex",a]);if(mU[a]){var s={series:[]},l=function(u){var f=u.subType,p=u.id,m=mU[a](f,p,u,o);m&&(bt(m,u.option),s.series.push(m));var g=u.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var _=g.getAxesByScale("ordinal")[0];if(_){var b=_.dim,w=b+"Axis",S=u.getReferringComponents(w,ia).models[0],x=S.componentIndex;s[w]=s[w]||[];for(var E=0;E<=x;E++)s[w][x]=s[w][x]||{};s[w][x].boundaryGap=a==="bar"}}};W(dRt,function(u){$t(u,a)>=0&&W(u,function(f){o.setIconStatus(f,"normal")})}),o.setIconStatus(a,"emphasis"),r.eachComponent({mainType:"series",query:i==null?null:{seriesIndex:i}},l);var c,d=a;a==="stack"&&(c=pt({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",a])!=="emphasis"&&(d="tiled")),n.dispatchAction({type:"changeMagicType",currentType:d,newOption:s,newTitle:c,featureName:"magicType"})}},e}(oi),mU={line:function(t,e,r,n){if(t==="bar")return pt({id:e,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(t,e,r,n){if(t==="line")return pt({id:e,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(t,e,r,n){var a=r.get("stack")===vU;if(t==="line"||t==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),pt({id:e,stack:a?"":vU},n.get(["option","stack"])||{},!0)}};Ho({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var Sx=new Array(60).join("-"),up=" ";function hRt(t){var e={},r=[],n=[];return t.eachRawSeries(function(a){var o=a.coordinateSystem;if(o&&(o.type==="cartesian2d"||o.type==="polar")){var i=o.getBaseAxis();if(i.type==="category"){var s=i.dim+"_"+i.index;e[s]||(e[s]={categoryAxis:i,valueAxis:o.getOtherAxis(i),series:[]},n.push({axisDim:i.dim,axisIndex:i.index})),e[s].series.push(a)}else r.push(a)}else r.push(a)}),{seriesGroupByCategoryAxis:e,other:r,meta:n}}function pRt(t){var e=[];return W(t,function(r,n){var a=r.categoryAxis,o=r.valueAxis,i=o.dim,s=[" "].concat(ye(r.series,function(p){return p.name})),l=[a.model.getCategories()];W(r.series,function(p){var m=p.getRawData();l.push(p.getRawData().mapArray(m.mapDimension(i),function(g){return g}))});for(var c=[s.join(up)],d=0;d=0)return!0}var LA=new RegExp("["+up+"]+","g");function _Rt(t){for(var e=t.split(/\n+/g),r=ww(e.shift()).split(LA),n=[],a=ye(r,function(l){return{name:l,data:[]}}),o=0;o=0;o--){var i=r[o];if(i[a])break}if(o<0){var s=t.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();r[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),r.push(e)}function CRt(t){var e=YL(t),r=e[e.length-1];e.length>1&&e.pop();var n={};return Hee(r,function(a,o){for(var i=e.length-1;i>=0;i--)if(a=e[i][o],a){n[o]=a;break}}),n}function TRt(t){Uee(t).snapshots=null}function kRt(t){return YL(t).length}function YL(t){var e=Uee(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var ERt=function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,n){TRt(r),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},e}(oi);Ho({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var DRt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Vee=function(){function t(e,r,n){var a=this;this._targetInfoList=[];var o=gU(r,e);W(MRt,function(i,s){(!n||!n.include||$t(n.include,s)>=0)&&i(o,a._targetInfoList)})}return t.prototype.setOutputRanges=function(e,r){return this.matchOutputRanges(e,r,function(n,a,o){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var i=BM[n.brushType](0,o,a);n.__rangeOffset={offset:wU[n.brushType](i.values,n.range,[1,1]),xyMinMax:i.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,r,n){W(e,function(a){var o=this.findTargetInfo(a,r);o&&o!==!0&&W(o.coordSyses,function(i){var s=BM[a.brushType](1,i,a.range,!0);n(a,s.values,i,r)})},this)},t.prototype.setInputRanges=function(e,r){W(e,function(n){var a=this.findTargetInfo(n,r);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var o=BM[n.brushType](0,a.coordSys,n.coordRange),i=n.__rangeOffset;n.range=i?wU[n.brushType](o.values,i.offset,ORt(o.xyMinMax,i.xyMinMax)):o.values}},this)},t.prototype.makePanelOpts=function(e,r){return ye(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:xIt(a),isTargetByCursor:TIt(a,e,n.coordSysModel),getLinearBrushOtherExtent:CIt(a)}})},t.prototype.controlSeries=function(e,r,n){var a=this.findTargetInfo(e,n);return a===!0||a&&$t(a.coordSyses,r.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,r){for(var n=this._targetInfoList,a=gU(r,e),o=0;ot[1]&&t.reverse(),t}function gU(t,e){return Ym(t,e,{includeMainTypes:DRt})}var MRt={grid:function(t,e){var r=t.xAxisModels,n=t.yAxisModels,a=t.gridModels,o=dt(),i={},s={};!r&&!n&&!a||(W(r,function(l){var c=l.axis.grid.model;o.set(c.id,c),i[c.id]=!0}),W(n,function(l){var c=l.axis.grid.model;o.set(c.id,c),s[c.id]=!0}),W(a,function(l){o.set(l.id,l),i[l.id]=!0,s[l.id]=!0}),o.each(function(l){var c=l.coordinateSystem,d=[];W(c.getCartesians(),function(u,f){($t(r,u.getAxis("x").model)>=0||$t(n,u.getAxis("y").model)>=0)&&d.push(u)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:d[0],coordSyses:d,getPanelRect:yU.grid,xAxisDeclared:i[l.id],yAxisDeclared:s[l.id]})}))},geo:function(t,e){W(t.geoModels,function(r){var n=r.coordinateSystem;e.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:yU.geo})})}},_U=[function(t,e){var r=t.xAxisModel,n=t.yAxisModel,a=t.gridModel;return!a&&r&&(a=r.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(t,e){var r=t.geoModel;return r&&r===e.geoModel}],yU={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(b_(t)),e}},BM={lineX:Dt(bU,0),lineY:Dt(bU,1),rect:function(t,e,r,n){var a=t?e.pointToData([r[0][0],r[1][0]],n):e.dataToPoint([r[0][0],r[1][0]],n),o=t?e.pointToData([r[0][1],r[1][1]],n):e.dataToPoint([r[0][1],r[1][1]],n),i=[NA([a[0],o[0]]),NA([a[1],o[1]])];return{values:i,xyMinMax:i}},polygon:function(t,e,r,n){var a=[[1/0,-1/0],[1/0,-1/0]],o=ye(r,function(i){var s=t?e.pointToData(i,n):e.dataToPoint(i,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:o,xyMinMax:a}}};function bU(t,e,r,n){var a=r.getAxis(["x","y"][t]),o=NA(ye([0,1],function(s){return e?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),i=[];return i[t]=o,i[1-t]=[NaN,NaN],{values:o,xyMinMax:i}}var wU={lineX:Dt(SU,0),lineY:Dt(SU,1),rect:function(t,e,r){return[[t[0][0]-r[0]*e[0][0],t[0][1]-r[0]*e[0][1]],[t[1][0]-r[1]*e[1][0],t[1][1]-r[1]*e[1][1]]]},polygon:function(t,e,r){return ye(t,function(n,a){return[n[0]-r[0]*e[a][0],n[1]-r[1]*e[a][1]]})}};function SU(t,e,r,n){return[e[0]-n[t]*r[0],e[1]-n[t]*r[1]]}function ORt(t,e){var r=xU(t),n=xU(e),a=[r[0]/n[0],r[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function xU(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var FA=W,$Rt=$kt("toolbox-dataZoom_"),ARt=function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,a,o){this._brushController||(this._brushController=new pIt(a.getZr()),this._brushController.on("brush",qe(this._onBrush,this)).mount()),RRt(r,n,this,o,a),IRt(r,n)},e.prototype.onclick=function(r,n,a){PRt[a].call(this)},e.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var a={},o=this.ecModel;this._brushController.updateCovers([]);var i=new Vee(GL(this.model),o,{include:["grid"]});i.matchOutputRanges(n,o,function(c,d,u){if(u.type==="cartesian2d"){var f=c.brushType;f==="rect"?(s("x",u,d[0]),s("y",u,d[1])):s({lineX:"x",lineY:"y"}[f],u,d)}}),xRt(o,a),this._dispatchZoomAction(a);function s(c,d,u){var f=d.getAxis(c),p=f.model,m=l(c,p,o),g=m.findRepresentativeAxisProxy(p).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(u=I_(0,u.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),m&&(a[m.id]={dataZoomId:m.id,startValue:u[0],endValue:u[1]})}function l(c,d,u){var f;return u.eachComponent({mainType:"dataZoom",subType:"select"},function(p){var m=p.getAxisModel(c,d.componentIndex);m&&(f=p)}),f}},e.prototype._dispatchZoomAction=function(r){var n=[];FA(r,function(a,o){n.push(lt(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},e}(oi),PRt={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(CRt(this.ecModel))}};function GL(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function IRt(t,e){t.setIconStatus("back",kRt(e)>1?"emphasis":"normal")}function RRt(t,e,r,n,a){var o=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(o=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var i=new Vee(GL(t),e,{include:["grid"]}),s=i.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(o&&s.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}pDt("dataZoom",function(t){var e=t.getComponent("toolbox",0),r=["feature","dataZoom"];if(!e||e.get(r)==null)return;var n=e.getModel(r),a=[],o=GL(n),i=Ym(t,o);FA(i.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),FA(i.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,c,d){var u=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:$Rt+c+u};f[d]=u,a.push(f)}return a});function LRt(t){t.registerComponentModel(iRt),t.registerComponentView(lRt),cm("saveAsImage",uRt),cm("magicType",fRt),cm("dataView",wRt),cm("dataZoom",ARt),cm("restore",ERt),Dn(oRt)}var NRt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Pt);function Yee(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function Gee(t){if(ut.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(c=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c=o==="top"?225:45)+"deg)");var d=c*Math.PI/180,u=i+a,f=u*Math.abs(Math.cos(d))+u*Math.abs(Math.sin(d)),p=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-u)/2)*100)/100;s+=";"+o+":-"+p+"px";var m=e+" solid "+a+"px;",g=["position:absolute;width:"+i+"px;height:"+i+"px;z-index:-1;",s+";"+l+";","border-bottom:"+m,"border-right:"+m,"background-color:"+n+";"];return'
'}function URt(t,e){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+r,a="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+r,a+=ut.transformSupported?","+qL+n:",left"+n+",top"+n),BRt+":"+a}function CU(t,e,r){var n=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ut.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var o=ut.transform3dSupported,i="translate"+(o?"3d":"")+"("+n+","+a+(o?",0":"")+")";return r?"top:0;left:0;"+qL+":"+i+";":[["top",0],["left",0],[qee,i]]}function VRt(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var a=et(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+a+"px");var o=t.get("textShadowColor"),i=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&i&&e.push("text-shadow:"+s+"px "+l+"px "+i+"px "+o),W(["decoration","align"],function(c){var d=t.get(c);d&&e.push("text-"+c+":"+d)}),e.join(";")}function YRt(t,e,r){var n=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),i=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),d=t.getModel("textStyle"),u=OZ(t,"html"),f=l+"px "+c+"px "+i+"px "+s;return n.push("box-shadow:"+f),e&&a&&n.push(URt(a,r)),o&&n.push("background-color:"+o),W(["width","color","radius"],function(p){var m="border-"+p,g=QR(m),_=t.get(g);_!=null&&n.push(m+":"+_+(p==="color"?"":"px"))}),n.push(VRt(d)),u!=null&&n.push("padding:"+k_(u).join("px ")+"px"),n.join(";")+";"}function TU(t,e,r,n,a){var o=e&&e.painter;if(r){var i=o&&o.getViewportRoot();i&&tTt(t,i,r,n,a)}else{t[0]=n,t[1]=a;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var GRt=function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ut.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),o=r.appendTo,i=o&&(Re(o)?document.querySelector(o):yd(o)?o:ot(o)&&o(e.getDom()));TU(this._styleCoord,a,i,e.getWidth()/2,e.getHeight()/2),(i||e.getDom()).appendChild(n),this._api=e,this._container=i;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var c=a.handler,d=a.painter.getViewportRoot();mo(d,l,!0),c.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=zRt(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var o=e.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,o=this._styleCoord;n.innerHTML?a.cssText=jRt+YRt(e,!this._firstShow,this._longHide)+CU(o[0],o[1],!0)+("border-color:"+Cd(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,a,o){var i=this.el;if(e==null){i.innerHTML="";return}var s="";if(Re(o)&&n.get("trigger")==="item"&&!Yee(n)&&(s=HRt(n,a,o)),Re(e))i.innerHTML=e+s;else if(e){i.innerHTML="",Ee(e)||(e=[e]);for(var l=0;l=0?this._tryShow(o,i):a==="leave"&&this._hide(i))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,o=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&i.manuallyShowTip(r,n,a,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,a,o){if(!(o.from===this.uid||ut.node||!a.getDom())){var i=DU(o,a);this._ticket="";var s=o.dataByCoordSys,l=eLt(o,n,a);if(l){var c=l.el.getBoundingRect().clone();c.applyTransform(l.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:l.el,position:o.position,positionDefault:"bottom"},i)}else if(o.tooltip&&o.x!=null&&o.y!=null){var d=XRt;d.x=o.x,d.y=o.y,d.update(),Et(d).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:d},i)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},i);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,o))return;var u=Nee(o,n),f=u.point[0],p=u.point[1];f!=null&&p!=null&&this._tryShow({offsetX:f,offsetY:p,target:u.el,position:o.position,positionDefault:"bottom"},i)}else o.x!=null&&o.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:a.getZr().findHover(o.x,o.y).target},i))}},e.prototype.manuallyHideTip=function(r,n,a,o){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(DU(o,a))},e.prototype._manuallyAxisShowTip=function(r,n,a,o){var i=o.seriesIndex,s=o.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(i==null||s==null||l==null)){var c=n.getSeriesByIndex(i);if(c){var d=c.getData(),u=um([d.getItemModel(s),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(u.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:s,position:o.position}),!0}}},e.prototype._tryShow=function(r,n){var a=r.target,o=this._tooltipModel;if(o){this._lastX=r.offsetX,this._lastY=r.offsetY;var i=r.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,r);else if(a){var s=Et(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,c;$m(a,function(d){if(Et(d).dataIndex!=null)return l=d,!0;if(Et(d).tooltipConfig!=null)return c=d,!0},!0),l?this._showSeriesItemTooltip(r,l,n):c?this._showComponentItemTooltip(r,c,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=qe(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,o=this._tooltipModel,i=[n.offsetX,n.offsetY],s=um([n.tooltipOption],o),l=this._renderMode,c=[],d=ds("section",{blocks:[],noHeader:!0}),u=[],f=new iM;W(r,function(w){W(w.dataByAxis,function(S){var x=a.getComponent(S.axisDim+"Axis",S.axisIndex),E=S.value;if(!(!x||E==null)){var T=Iee(E,x.axis,a,S.seriesDataIndices,S.valueLabelOpt),D=ds("section",{header:T,noHeader:!ui(T),sortBlocks:!0,blocks:[]});d.blocks.push(D),W(S.seriesDataIndices,function(A){var P=a.getSeriesByIndex(A.seriesIndex),O=A.dataIndexInside,I=P.getDataParams(O);if(!(I.dataIndex<0)){I.axisDim=S.axisDim,I.axisIndex=S.axisIndex,I.axisType=S.axisType,I.axisId=S.axisId,I.axisValue=ML(x.axis,{value:E}),I.axisValueLabel=T,I.marker=f.makeTooltipMarker("item",Cd(I.color),l);var F=sW(P.formatTooltip(O,!0,null)),N=F.frag;if(N){var B=um([P],o).get("valueFormatter");D.blocks.push(B?_e({valueFormatter:B},N):N)}F.text&&u.push(F.text),c.push(I)}})}})}),d.blocks.reverse(),u.reverse();var p=n.position,m=s.get("order"),g=hW(d,f,l,m,a.get("useUTC"),s.get("textStyle"));g&&u.unshift(g);var _=l==="richText"?` + +`:"
",b=u.join(_);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,c)?this._updatePosition(s,p,i[0],i[1],this._tooltipContent,c):this._showTooltipContent(s,b,c,Math.random()+"",i[0],i[1],p,null,f)})},e.prototype._showSeriesItemTooltip=function(r,n,a){var o=this._ecModel,i=Et(n),s=i.seriesIndex,l=o.getSeriesByIndex(s),c=i.dataModel||l,d=i.dataIndex,u=i.dataType,f=c.getData(u),p=this._renderMode,m=r.positionDefault,g=um([f.getItemModel(d),c,l&&(l.coordinateSystem||{}).model],this._tooltipModel,m?{position:m}:null),_=g.get("trigger");if(!(_!=null&&_!=="item")){var b=c.getDataParams(d,u),w=new iM;b.marker=w.makeTooltipMarker("item",Cd(b.color),p);var S=sW(c.formatTooltip(d,!1,u)),x=g.get("order"),E=g.get("valueFormatter"),T=S.frag,D=T?hW(E?_e({valueFormatter:E},T):T,w,p,x,o.get("useUTC"),g.get("textStyle")):S.text,A="item_"+c.name+"_"+d;this._showOrMove(g,function(){this._showTooltipContent(g,D,b,A,r.offsetX,r.offsetY,r.position,r.target,w)}),a({type:"showTip",dataIndexInside:d,dataIndex:f.getRawIndex(d),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,a){var o=this._renderMode==="html",i=Et(n),s=i.tooltipConfig,l=s.option||{},c=l.encodeHTMLContent;if(Re(l)){var d=l;l={content:d,formatter:d},c=!0}c&&o&&l.content&&(l=lt(l),l.content=Yn(l.content));var u=[l],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:l.content});var p=r.positionDefault,m=um(u,this._tooltipModel,p?{position:p}:null),g=m.get("content"),_=Math.random()+"",b=new iM;this._showOrMove(m,function(){var w=lt(m.get("formatterParams")||{});this._showTooltipContent(m,g,w,_,r.offsetX,r.offsetY,r.position,n,b)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,a,o,i,s,l,c,d){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var u=this._tooltipContent;u.setEnterable(r.get("enterable"));var f=r.get("formatter");l=l||r.get("position");var p=n,m=this._getNearestPoint([i,s],a,r.get("trigger"),r.get("borderColor")),g=m.color;if(f)if(Re(f)){var _=r.ecModel.get("useUTC"),b=Ee(a)?a[0]:a,w=b&&b.axisType&&b.axisType.indexOf("time")>=0;p=f,w&&(p=T_(b.axisValue,p,_)),p=eL(p,a,!0)}else if(ot(f)){var S=qe(function(x,E){x===this._ticket&&(u.setContent(E,d,r,g,l),this._updatePosition(r,l,i,s,u,a,c))},this);this._ticket=o,p=f(a,o,S)}else p=f;u.setContent(p,d,r,g,l),u.show(r,g),this._updatePosition(r,l,i,s,u,a,c)}},e.prototype._getNearestPoint=function(r,n,a,o){if(a==="axis"||Ee(n))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!Ee(n))return{color:o||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,a,o,i,s,l){var c=this._api.getWidth(),d=this._api.getHeight();n=n||r.get("position");var u=i.getSize(),f=r.get("align"),p=r.get("verticalAlign"),m=l&&l.getBoundingRect().clone();if(l&&m.applyTransform(l.transform),ot(n)&&(n=n([a,o],s,i.el,m,{viewSize:[c,d],contentSize:u.slice()})),Ee(n))a=wr(n[0],c),o=wr(n[1],d);else if(Ke(n)){var g=n;g.width=u[0],g.height=u[1];var _=us(g,{width:c,height:d});a=_.x,o=_.y,f=null,p=null}else if(Re(n)&&l){var b=QRt(n,m,u,r.get("borderWidth"));a=b[0],o=b[1]}else{var b=KRt(a,o,i,c,d,f?null:20,p?null:20);a=b[0],o=b[1]}if(f&&(a-=MU(f)?u[0]/2:f==="right"?u[0]:0),p&&(o-=MU(p)?u[1]/2:p==="bottom"?u[1]:0),Yee(r)){var b=ZRt(a,o,i,c,d);a=b[0],o=b[1]}i.moveTo(a,o)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,o=this._cbParamsList,i=!!a&&a.length===r.length;return i&&W(a,function(s,l){var c=s.dataByAxis||[],d=r[l]||{},u=d.dataByAxis||[];i=i&&c.length===u.length,i&&W(c,function(f,p){var m=u[p]||{},g=f.seriesDataIndices||[],_=m.seriesDataIndices||[];i=i&&f.value===m.value&&f.axisType===m.axisType&&f.axisId===m.axisId&&g.length===_.length,i&&W(g,function(b,w){var S=_[w];i=i&&b.seriesIndex===S.seriesIndex&&b.dataIndex===S.dataIndex}),o&&W(f.seriesDataIndices,function(b){var w=b.seriesIndex,S=n[w],x=o[w];S&&x&&x.data!==S.data&&(i=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!i},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){ut.node||!n.getDom()||(dw(this,"_updatePosition"),this._tooltipContent.dispose(),RA("itemTooltip",n))},e.type="tooltip",e}(Qr);function um(t,e,r){var n=e.ecModel,a;r?(a=new hr(r,n,n),a=new hr(e.option,a,n)):a=e;for(var o=t.length-1;o>=0;o--){var i=t[o];i&&(i instanceof hr&&(i=i.get("tooltip",!0)),Re(i)&&(i={formatter:i}),i&&(a=new hr(i,a,n)))}return a}function DU(t,e){return t.dispatchAction||qe(e.dispatchAction,e)}function KRt(t,e,r,n,a,o,i){var s=r.getSize(),l=s[0],c=s[1];return o!=null&&(t+l+o+2>n?t-=l+o:t+=o),i!=null&&(e+c+i>a?e-=c+i:e+=i),[t,e]}function ZRt(t,e,r,n,a){var o=r.getSize(),i=o[0],s=o[1];return t=Math.min(t+i,n)-i,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function QRt(t,e,r,n){var a=r[0],o=r[1],i=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,c=e.width,d=e.height;switch(t){case"inside":s=e.x+c/2-a/2,l=e.y+d/2-o/2;break;case"top":s=e.x+c/2-a/2,l=e.y-o-i;break;case"bottom":s=e.x+c/2-a/2,l=e.y+d+i;break;case"left":s=e.x-a-i,l=e.y+d/2-o/2;break;case"right":s=e.x+c+i,l=e.y+d/2-o/2}return[s,l]}function MU(t){return t==="center"||t==="middle"}function eLt(t,e,r){var n=AR(t).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var o=v_(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),i=o.models[0];if(i){var s=r.getViewOfComponentModel(i),l;if(s.group.traverse(function(c){var d=Et(c).tooltipConfig;if(d&&d.name===t.name)return l=c,!0}),l)return{componentMainType:a,componentIndex:i.componentIndex,el:l}}}}function tLt(t){Dn(Fee),t.registerComponentModel(NRt),t.registerComponentView(JRt),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},kn),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},kn)}var rLt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Pt),nLt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var o=this.group,i=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),c=et(r.get("textBaseline"),r.get("textVerticalAlign")),d=new Gr({style:Ka(i,{text:r.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=d.getBoundingRect(),f=r.get("subtext"),p=new Gr({style:Ka(s,{text:f,fill:s.getTextColor(),y:u.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),m=r.get("link"),g=r.get("sublink"),_=r.get("triggerEvent",!0);d.silent=!m&&!_,p.silent=!g&&!_,m&&d.on("click",function(){H7(m,"_"+r.get("target"))}),g&&p.on("click",function(){H7(g,"_"+r.get("subtarget"))}),Et(d).eventData=Et(p).eventData=_?{componentType:"title",componentIndex:r.componentIndex}:null,o.add(d),f&&o.add(p);var b=o.getBoundingRect(),w=r.getBoxLayoutParams();w.width=b.width,w.height=b.height;var S=us(w,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),c||(c=r.get("top")||r.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?S.y+=S.height:c==="middle"&&(S.y+=S.height/2),c=c||"top"),o.x=S.x,o.y=S.y,o.markRedraw();var x={align:l,verticalAlign:c};d.setStyle(x),p.setStyle(x),b=o.getBoundingRect();var E=S.margin,T=r.getItemStyle(["color","opacity"]);T.fill=r.get("backgroundColor");var D=new Sr({shape:{x:b.x-E[3],y:b.y-E[0],width:b.width+E[1]+E[3],height:b.height+E[0]+E[2],r:r.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});o.add(D)}},e.type="title",e}(Qr);function aLt(t){t.registerComponentModel(rLt),t.registerComponentView(nLt)}var OU=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode="box",r}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._initData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(r){this.option.autoPlay=!!r},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var r=this.option,n=r.data||[],a=r.axisType,o=this._names=[],i;a==="category"?(i=[],W(n,function(c,d){var u=mi(kp(c),""),f;Ke(c)?(f=lt(c),f.value=d):f=d,i.push(f),o.push(u)})):i=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new as([{name:"value",type:s}],this);l.initData(i,o)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Pt),Jee=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="timeline.slider",e.defaultOption=C_(OU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(OU);da(Jee,ix.prototype);var oLt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="timeline",e}(Qr),iLt=function(t){le(e,t);function e(r,n,a,o){var i=t.call(this,r,n,a)||this;return i.type=o||"value",i}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(P_),jM=Math.PI,$U=fr(),sLt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){this.api=n},e.prototype.render=function(r,n,a){if(this.model=r,this.api=a,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var o=this._layout(r,a),i=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(o,r);r.formatTooltip=function(c){var d=l.scale.getLabel({value:c});return ds("nameValue",{noName:!0,value:d})},W(["AxisLine","AxisTick","Control","CurrentPointer"],function(c){this["_render"+c](o,i,l,r)},this),this._renderAxisLabel(o,s,l,r),this._position(o,r)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(r,n){var a=r.get(["label","position"]),o=r.get("orient"),i=cLt(r,n),s;a==null||a==="auto"?s=o==="horizontal"?i.y+i.height/2=0||s==="+"?"left":"right"},c={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:jM/2},u=o==="vertical"?i.height:i.width,f=r.getModel("controlStyle"),p=f.get("show",!0),m=p?f.get("itemSize"):0,g=p?f.get("itemGap"):0,_=m+g,b=r.get(["label","rotate"])||0;b=b*jM/180;var w,S,x,E=f.get("position",!0),T=p&&f.get("showPlayBtn",!0),D=p&&f.get("showPrevBtn",!0),A=p&&f.get("showNextBtn",!0),P=0,O=u;E==="left"||E==="bottom"?(T&&(w=[0,0],P+=_),D&&(S=[P,0],P+=_),A&&(x=[O-m,0],O-=_)):(T&&(w=[O-m,0],O-=_),D&&(S=[0,0],P+=_),A&&(x=[O-m,0],O-=_));var I=[P,O];return r.get("inverse")&&I.reverse(),{viewRect:i,mainLength:u,orient:o,rotation:d[o],labelRotation:b,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[o],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||c[o],playPosition:w,prevBtnPosition:S,nextBtnPosition:x,axisExtent:I,controlSize:m,controlGap:g}},e.prototype._position=function(r,n){var a=this._mainGroup,o=this._labelGroup,i=r.viewRect;if(r.orient==="vertical"){var s=il(),l=i.x,c=i.y+i.height;ap(s,s,[-l,-c]),h_(s,s,-jM/2),ap(s,s,[l,c]),i=i.clone(),i.applyTransform(s)}var d=w(i),u=w(a.getBoundingRect()),f=w(o.getBoundingRect()),p=[a.x,a.y],m=[o.x,o.y];m[0]=p[0]=d[0][0];var g=r.labelPosOpt;if(g==null||Re(g)){var _=g==="+"?0:1;S(p,u,d,1,_),S(m,f,d,1,1-_)}else{var _=g>=0?0:1;S(p,u,d,1,_),m[1]=p[1]+g}a.setPosition(p),o.setPosition(m),a.rotation=o.rotation=r.rotation,b(a),b(o);function b(x){x.originX=d[0][0]-x.x,x.originY=d[1][0]-x.y}function w(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function S(x,E,T,D,A){x[D]+=T[D][A]-E[D][A]}},e.prototype._createAxis=function(r,n){var a=n.getData(),o=n.get("axisType"),i=lLt(n,o);i.getTicks=function(){return a.mapArray(["value"],function(c){return{value:c}})};var s=a.getDataExtent("value");i.setExtent(s[0],s[1]),i.calcNiceTicks();var l=new iLt("value",i,r.axisExtent,o);return l.model=n,l},e.prototype._createGroup=function(r){var n=this[r]=new sr;return this.group.add(n),n},e.prototype._renderAxisLine=function(r,n,a,o){var i=a.getExtent();if(o.get(["lineStyle","show"])){var s=new Ro({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:_e({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Ro({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:bt({lineCap:"round",lineWidth:s.style.lineWidth},o.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(r,n,a,o){var i=this,s=o.getData(),l=a.scale.getTicks();this._tickSymbols=[],W(l,function(c){var d=a.dataToCoord(c.value),u=s.getItemModel(c.value),f=u.getModel("itemStyle"),p=u.getModel(["emphasis","itemStyle"]),m=u.getModel(["progress","itemStyle"]),g={x:d,y:0,onclick:qe(i._changeTimeline,i,c.value)},_=AU(u,f,n,g);_.ensureState("emphasis").style=p.getItemStyle(),_.ensureState("progress").style=m.getItemStyle(),Ec(_);var b=Et(_);u.get("tooltip")?(b.dataIndex=c.value,b.dataModel=o):b.dataIndex=b.dataModel=null,i._tickSymbols.push(_)})},e.prototype._renderAxisLabel=function(r,n,a,o){var i=this,s=a.getLabelModel();if(s.get("show")){var l=o.getData(),c=a.getViewLabels();this._tickLabels=[],W(c,function(d){var u=d.tickValue,f=l.getItemModel(u),p=f.getModel("label"),m=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),_=a.dataToCoord(d.tickValue),b=new Gr({x:_,y:0,rotation:r.labelRotation-r.rotation,onclick:qe(i._changeTimeline,i,u),silent:!1,style:Ka(p,{text:d.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});b.ensureState("emphasis").style=Ka(m),b.ensureState("progress").style=Ka(g),n.add(b),Ec(b),$U(b).dataIndex=u,i._tickLabels.push(b)})}},e.prototype._renderControl=function(r,n,a,o){var i=r.controlSize,s=r.rotation,l=o.getModel("controlStyle").getItemStyle(),c=o.getModel(["emphasis","controlStyle"]).getItemStyle(),d=o.getPlayState(),u=o.get("inverse",!0);f(r.nextBtnPosition,"next",qe(this._changeTimeline,this,u?"-":"+")),f(r.prevBtnPosition,"prev",qe(this._changeTimeline,this,u?"+":"-")),f(r.playPosition,d?"stop":"play",qe(this._handlePlayClick,this,!d),!0);function f(p,m,g,_){if(p){var b=hl(et(o.get(["controlStyle",m+"BtnSize"]),i),i),w=[0,-b/2,b,b],S=uLt(o,m+"Icon",w,{x:p[0],y:p[1],originX:i/2,originY:0,rotation:_?-s:0,rectHover:!0,style:l,onclick:g});S.ensureState("emphasis").style=c,n.add(S),Ec(S)}}},e.prototype._renderCurrentPointer=function(r,n,a,o){var i=o.getData(),s=o.getCurrentIndex(),l=i.getItemModel(s).getModel("checkpointStyle"),c=this,d={onCreate:function(u){u.draggable=!0,u.drift=qe(c._handlePointerDrag,c),u.ondragend=qe(c._handlePointerDragend,c),PU(u,c._progressLine,s,a,o,!0)},onUpdate:function(u){PU(u,c._progressLine,s,a,o)}};this._currentPointer=AU(l,l,this._mainGroup,{},this._currentPointer,d)},e.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},e.prototype._handlePointerDrag=function(r,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},e.prototype._pointerChangeTimeline=function(r,n){var a=this._toAxisCoord(r)[0],o=this._axis,i=Ks(o.getExtent().slice());a>i[1]&&(a=i[1]),a=0&&(i[o]=+i[o].toFixed(f)),[i,u]}var WM={min:Dt(fb,"min"),max:Dt(fb,"max"),average:Dt(fb,"average"),median:Dt(fb,"median")};function Sw(t,e){if(e){var r=t.getData(),n=t.coordinateSystem,a=n&&n.dimensions;if(!vLt(e)&&!Ee(e.coord)&&Ee(a)){var o=Zee(e,r,n,t);if(e=lt(e),e.type&&WM[e.type]&&o.baseAxis&&o.valueAxis){var i=$t(a,o.baseAxis.dim),s=$t(a,o.valueAxis.dim),l=WM[e.type](r,o.baseDataDim,o.valueDataDim,i,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!Ee(a))e.coord=[];else for(var c=e.coord,d=0;d<2;d++)WM[c[d]]&&(c[d]=XL(r,r.mapDimension(a[d]),c[d]));return e}}function Zee(t,e,r,n){var a={};return t.valueIndex!=null||t.valueDim!=null?(a.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=r.getAxis(mLt(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function mLt(t,e){var r=t.getData().getDimensionInfo(e);return r&&r.coordDim}function xw(t,e){return t&&t.containData&&e.coord&&!zA(e)?t.containData(e.coord):!0}function gLt(t,e,r){return t&&t.containZone&&e.coord&&r.coord&&!zA(e)&&!zA(r)?t.containZone(e.coord,r.coord):!0}function _Lt(t,e){return t?function(r,n,a,o){var i=o<2?r.coord&&r.coord[o]:r.value;return Mc(i,e[o])}:function(r,n,a,o){return Mc(r.value,e[o])}}function XL(t,e,r){if(r==="average"){var n=0,a=0;return t.each(e,function(o,i){isNaN(o)||(n+=o,a++)}),n/a}else return r==="median"?t.getMedian(e):t.getDataExtent(e)[r==="max"?1:0]}var HM=fr(),Qee=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this.markerGroupMap=dt()},e.prototype.render=function(r,n,a){var o=this,i=this.markerGroupMap;i.each(function(s){HM(s).keep=!1}),n.eachSeries(function(s){var l=Ed.getMarkerModelFromSeries(s,o.type);l&&o.renderSeries(s,l,n,a)}),i.each(function(s){!HM(s).keep&&o.group.remove(s.group)})},e.prototype.markKeep=function(r){HM(r).keep=!0},e.prototype.toggleBlurSeries=function(r,n){var a=this;W(r,function(o){var i=Ed.getMarkerModelFromSeries(o,a.type);if(i){var s=i.getData();s.eachItemGraphicEl(function(l){l&&(n?SK(l):FR(l))})}})},e.type="marker",e}(Qr),yLt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,a){return new e(r,n,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Ed),hb=fr(),bLt=function(t,e,r,n){var a=t.getData(),o;if(Ee(n))o=n;else{var i=n.type;if(i==="min"||i==="max"||i==="average"||i==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),l=ci(n.yAxis,n.xAxis);else{var c=Zee(n,a,e,t);s=c.valueAxis;var d=TL(a,c.valueDataDim);l=XL(a,d,i)}var u=s.dim==="x"?0:1,f=1-u,p=lt(n),m={coord:[]};p.type=null,p.coord=[],p.coord[f]=-1/0,m.coord[f]=1/0;var g=r.get("precision");g>=0&&dr(l)&&(l=+l.toFixed(Math.min(g,20))),p.coord[u]=m.coord[u]=l,o=[p,m,{type:i,valueIndex:n.valueIndex,value:l}]}else o=[]}var _=[Sw(t,o[0]),Sw(t,o[1]),_e({},o[2])];return _[2].type=_[2].type||null,pt(_[2],_[0]),pt(_[2],_[1]),_};function Cw(t){return!isNaN(t)&&!isFinite(t)}function RU(t,e,r,n){var a=1-t,o=n.dimensions[t];return Cw(e[a])&&Cw(r[a])&&e[t]===r[t]&&n.getAxis(o).containData(e[t])}function wLt(t,e){if(t.type==="cartesian2d"){var r=e[0].coord,n=e[1].coord;if(r&&n&&(RU(1,r,n,t)||RU(0,r,n,t)))return!0}return xw(t,e[0])&&xw(t,e[1])}function UM(t,e,r,n,a){var o=n.coordinateSystem,i=t.getItemModel(e),s,l=wr(i.get("x"),a.getWidth()),c=wr(i.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(c))s=[l,c];else{if(n.getMarkerPosition)s=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=o.dimensions,u=t.get(d[0],e),f=t.get(d[1],e);s=o.dataToPoint([u,f])}if(Ap(o,"cartesian2d")){var p=o.getAxis("x"),m=o.getAxis("y"),d=o.dimensions;Cw(t.get(d[0],e))?s[0]=p.toGlobalCoord(p.getExtent()[r?0:1]):Cw(t.get(d[1],e))&&(s[1]=m.toGlobalCoord(m.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(c)||(s[1]=c)}t.setItemLayout(e,s)}var SLt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,a){n.eachSeries(function(o){var i=Ed.getMarkerModelFromSeries(o,"markLine");if(i){var s=i.getData(),l=hb(i).from,c=hb(i).to;l.each(function(d){UM(l,d,!0,o,a),UM(c,d,!1,o,a)}),s.each(function(d){s.setItemLayout(d,[l.getItemLayout(d),c.getItemLayout(d)])}),this.markerGroupMap.get(o.id).updateLayout()}},this)},e.prototype.renderSeries=function(r,n,a,o){var i=r.coordinateSystem,s=r.id,l=r.getData(),c=this.markerGroupMap,d=c.get(s)||c.set(s,new oIt);this.group.add(d.group);var u=xLt(i,r,n),f=u.from,p=u.to,m=u.line;hb(n).from=f,hb(n).to=p,n.setData(m);var g=n.get("symbol"),_=n.get("symbolSize"),b=n.get("symbolRotate"),w=n.get("symbolOffset");Ee(g)||(g=[g,g]),Ee(_)||(_=[_,_]),Ee(b)||(b=[b,b]),Ee(w)||(w=[w,w]),u.from.each(function(x){S(f,x,!0),S(p,x,!1)}),m.each(function(x){var E=m.getItemModel(x).getModel("lineStyle").getLineStyle();m.setItemLayout(x,[f.getItemLayout(x),p.getItemLayout(x)]),E.stroke==null&&(E.stroke=f.getItemVisual(x,"style").fill),m.setItemVisual(x,{fromSymbolKeepAspect:f.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(x,"symbolOffset"),fromSymbolRotate:f.getItemVisual(x,"symbolRotate"),fromSymbolSize:f.getItemVisual(x,"symbolSize"),fromSymbol:f.getItemVisual(x,"symbol"),toSymbolKeepAspect:p.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(x,"symbolOffset"),toSymbolRotate:p.getItemVisual(x,"symbolRotate"),toSymbolSize:p.getItemVisual(x,"symbolSize"),toSymbol:p.getItemVisual(x,"symbol"),style:E})}),d.updateData(m),u.line.eachItemGraphicEl(function(x){Et(x).dataModel=n,x.traverse(function(E){Et(E).dataModel=n})});function S(x,E,T){var D=x.getItemModel(E);UM(x,E,T,r,o);var A=D.getModel("itemStyle").getItemStyle();A.fill==null&&(A.fill=lL(l,"color")),x.setItemVisual(E,{symbolKeepAspect:D.get("symbolKeepAspect"),symbolOffset:et(D.get("symbolOffset",!0),w[T?0:1]),symbolRotate:et(D.get("symbolRotate",!0),b[T?0:1]),symbolSize:et(D.get("symbolSize"),_[T?0:1]),symbol:et(D.get("symbol",!0),g[T?0:1]),style:A})}this.markKeep(d),d.group.silent=n.get("silent")||r.get("silent")},e.type="markLine",e}(Qee);function xLt(t,e,r){var n;t?n=ye(t&&t.dimensions,function(c){var d=e.getData().getDimensionInfo(e.getData().mapDimension(c))||{};return _e(_e({},d),{name:c,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new as(n,r),o=new as(n,r),i=new as([],r),s=ye(r.get("data"),Dt(bLt,e,t,r));t&&(s=br(s,Dt(wLt,t)));var l=_Lt(!!t,n);return a.initData(ye(s,function(c){return c[0]}),null,l),o.initData(ye(s,function(c){return c[1]}),null,l),i.initData(ye(s,function(c){return c[2]})),i.hasItemOption=!0,{from:a,to:o,line:i}}function CLt(t){t.registerComponentModel(yLt),t.registerComponentView(SLt),t.registerPreprocessor(function(e){Kee(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var TLt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,a){return new e(r,n,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Ed),pb=fr(),kLt=function(t,e,r,n){var a=n[0],o=n[1];if(!(!a||!o)){var i=Sw(t,a),s=Sw(t,o),l=i.coord,c=s.coord;l[0]=ci(l[0],-1/0),l[1]=ci(l[1],-1/0),c[0]=ci(c[0],1/0),c[1]=ci(c[1],1/0);var d=sJ([{},i,s]);return d.coord=[i.coord,s.coord],d.x0=i.x,d.y0=i.y,d.x1=s.x,d.y1=s.y,d}};function Tw(t){return!isNaN(t)&&!isFinite(t)}function LU(t,e,r,n){var a=1-t;return Tw(e[a])&&Tw(r[a])}function ELt(t,e){var r=e.coord[0],n=e.coord[1],a={coord:r,x:e.x0,y:e.y0},o={coord:n,x:e.x1,y:e.y1};return Ap(t,"cartesian2d")?r&&n&&(LU(1,r,n)||LU(0,r,n))?!0:gLt(t,a,o):xw(t,a)||xw(t,o)}function NU(t,e,r,n,a){var o=n.coordinateSystem,i=t.getItemModel(e),s,l=wr(i.get(r[0]),a.getWidth()),c=wr(i.get(r[1]),a.getHeight());if(!isNaN(l)&&!isNaN(c))s=[l,c];else{if(n.getMarkerPosition){var d=t.getValues(["x0","y0"],e),u=t.getValues(["x1","y1"],e),f=o.clampData(d),p=o.clampData(u),m=[];r[0]==="x0"?m[0]=f[0]>p[0]?u[0]:d[0]:m[0]=f[0]>p[0]?d[0]:u[0],r[1]==="y0"?m[1]=f[1]>p[1]?u[1]:d[1]:m[1]=f[1]>p[1]?d[1]:u[1],s=n.getMarkerPosition(m,r,!0)}else{var g=t.get(r[0],e),_=t.get(r[1],e),b=[g,_];o.clampData&&o.clampData(b,b),s=o.dataToPoint(b,!0)}if(Ap(o,"cartesian2d")){var w=o.getAxis("x"),S=o.getAxis("y"),g=t.get(r[0],e),_=t.get(r[1],e);Tw(g)?s[0]=w.toGlobalCoord(w.getExtent()[r[0]==="x0"?0:1]):Tw(_)&&(s[1]=S.toGlobalCoord(S.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(c)||(s[1]=c)}return s}var FU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],DLt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,a){n.eachSeries(function(o){var i=Ed.getMarkerModelFromSeries(o,"markArea");if(i){var s=i.getData();s.each(function(l){var c=ye(FU,function(u){return NU(s,l,u,o,a)});s.setItemLayout(l,c);var d=s.getItemGraphicEl(l);d.setShape("points",c)})}},this)},e.prototype.renderSeries=function(r,n,a,o){var i=r.coordinateSystem,s=r.id,l=r.getData(),c=this.markerGroupMap,d=c.get(s)||c.set(s,{group:new sr});this.group.add(d.group),this.markKeep(d);var u=MLt(i,r,n);n.setData(u),u.each(function(f){var p=ye(FU,function(A){return NU(u,f,A,r,o)}),m=i.getAxis("x").scale,g=i.getAxis("y").scale,_=m.getExtent(),b=g.getExtent(),w=[m.parse(u.get("x0",f)),m.parse(u.get("x1",f))],S=[g.parse(u.get("y0",f)),g.parse(u.get("y1",f))];Ks(w),Ks(S);var x=!(_[0]>w[1]||_[1]S[1]||b[1]=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Pt),Xf=Dt,jA=W,vb=sr,ete=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new vb),this.group.add(this._selectorGroup=new vb),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,a){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var i=r.get("align"),s=r.get("orient");(!i||i==="auto")&&(i=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),c=r.get("selectorPosition",!0);l&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(i,r,n,a,l,s,c);var d=r.getBoxLayoutParams(),u={width:a.getWidth(),height:a.getHeight()},f=r.get("padding"),p=us(d,u,f),m=this.layoutInner(r,i,p,o,l,c),g=us(bt({width:m.width,height:m.height},d),u,f);this.group.x=g.x-m.x,this.group.y=g.y-m.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Wee(m,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,a,o,i,s,l){var c=this.getContentGroup(),d=dt(),u=n.get("selectedMode"),f=[];a.eachRawSeries(function(p){!p.get("legendHoverLink")&&f.push(p.id)}),jA(n.getData(),function(p,m){var g=p.get("name");if(!this.newlineDisabled&&(g===""||g===` +`)){var _=new vb;_.newline=!0,c.add(_);return}var b=a.getSeriesByName(g)[0];if(!d.get(g))if(b){var w=b.getData(),S=w.getVisual("legendLineStyle")||{},x=w.getVisual("legendIcon"),E=w.getVisual("style"),T=this._createItem(b,g,m,p,n,r,S,E,x,u,o);T.on("click",Xf(zU,g,null,o,f)).on("mouseover",Xf(WA,b.name,null,o,f)).on("mouseout",Xf(HA,b.name,null,o,f)),a.ssr&&T.eachChild(function(D){var A=Et(D);A.seriesIndex=b.seriesIndex,A.dataIndex=m,A.ssrType="legend"}),d.set(g,!0)}else a.eachRawSeries(function(D){if(!d.get(g)&&D.legendVisualProvider){var A=D.legendVisualProvider;if(!A.containName(g))return;var P=A.indexOfName(g),O=A.getItemVisual(P,"style"),I=A.getItemVisual(P,"legendIcon"),F=$a(O.fill);F&&F[3]===0&&(F[3]=.2,O=_e(_e({},O),{fill:Vc(F,"rgba")}));var N=this._createItem(D,g,m,p,n,r,{},O,I,u,o);N.on("click",Xf(zU,null,g,o,f)).on("mouseover",Xf(WA,null,g,o,f)).on("mouseout",Xf(HA,null,g,o,f)),a.ssr&&N.eachChild(function(B){var j=Et(B);j.seriesIndex=D.seriesIndex,j.dataIndex=m,j.ssrType="legend"}),d.set(g,!0)}},this)},this),i&&this._createSelector(i,n,o,s,l)},e.prototype._createSelector=function(r,n,a,o,i){var s=this.getSelectorGroup();jA(r,function(c){var d=c.type,u=new Gr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:d==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(u);var f=n.getModel("selectorLabel"),p=n.getModel(["emphasis","selectorLabel"]);Vd(u,{normal:f,emphasis:p},{defaultText:c.title}),Ec(u)})},e.prototype._createItem=function(r,n,a,o,i,s,l,c,d,u,f){var p=r.visualDrawType,m=i.get("itemWidth"),g=i.get("itemHeight"),_=i.isSelected(n),b=o.get("symbolRotate"),w=o.get("symbolKeepAspect"),S=o.get("icon");d=S||d||"roundRect";var x=ALt(d,o,l,c,p,_,f),E=new vb,T=o.getModel("textStyle");if(ot(r.getLegendIcon)&&(!S||S==="inherit"))E.add(r.getLegendIcon({itemWidth:m,itemHeight:g,icon:d,iconRotate:b,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:w}));else{var D=S==="inherit"&&r.getData().getVisual("symbol")?b==="inherit"?r.getData().getVisual("symbolRotate"):b:0;E.add(PLt({itemWidth:m,itemHeight:g,icon:d,iconRotate:D,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:w}))}var A=s==="left"?m+5:-5,P=s,O=i.get("formatter"),I=n;Re(O)&&O?I=O.replace("{name}",n??""):ot(O)&&(I=O(n));var F=_?T.getTextColor():o.get("inactiveColor");E.add(new Gr({style:Ka(T,{text:I,x:A,y:g/2,fill:F,align:P,verticalAlign:"middle"},{inheritColor:F})}));var N=new Sr({shape:E.getBoundingRect(),style:{fill:"transparent"}}),B=o.getModel("tooltip");return B.get("show")&&w_({el:N,componentModel:i,itemName:n,itemTooltipOption:B.option}),E.add(N),E.eachChild(function(j){j.silent=!0}),N.silent=!u,this.getContentGroup().add(E),Ec(E),E.__legendDataIndex=a,E},e.prototype.layoutInner=function(r,n,a,o,i,s){var l=this.getContentGroup(),c=this.getSelectorGroup();Hh(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var d=l.getBoundingRect(),u=[-d.x,-d.y];if(c.markRedraw(),l.markRedraw(),i){Hh("horizontal",c,r.get("selectorItemGap",!0));var f=c.getBoundingRect(),p=[-f.x,-f.y],m=r.get("selectorButtonGap",!0),g=r.getOrient().index,_=g===0?"width":"height",b=g===0?"height":"width",w=g===0?"y":"x";s==="end"?p[g]+=d[_]+m:u[g]+=f[_]+m,p[1-g]+=d[b]/2-f[b]/2,c.x=p[0],c.y=p[1],l.x=u[0],l.y=u[1];var S={x:0,y:0};return S[_]=d[_]+m+f[_],S[b]=Math.max(d[b],f[b]),S[w]=Math.min(0,f[w]+p[1-g]),S}else return l.x=u[0],l.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Qr);function ALt(t,e,r,n,a,o,i){function s(_,b){_.lineWidth==="auto"&&(_.lineWidth=b.lineWidth>0?2:0),jA(_,function(w,S){_[S]==="inherit"&&(_[S]=b[S])})}var l=e.getModel("itemStyle"),c=l.getItemStyle(),d=t.lastIndexOf("empty",0)===0?"fill":"stroke",u=l.getShallow("decal");c.decal=!u||u==="inherit"?n.decal:pA(u,i),c.fill==="inherit"&&(c.fill=n[a]),c.stroke==="inherit"&&(c.stroke=n[d]),c.opacity==="inherit"&&(c.opacity=(a==="fill"?n:r).opacity),s(c,n);var f=e.getModel("lineStyle"),p=f.getLineStyle();if(s(p,r),c.fill==="auto"&&(c.fill=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),p.stroke==="auto"&&(p.stroke=n.fill),!o){var m=e.get("inactiveBorderWidth"),g=c[d];c.lineWidth=m==="auto"?n.lineWidth>0&&g?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),p.stroke=f.get("inactiveColor"),p.lineWidth=f.get("inactiveWidth")}return{itemStyle:c,lineStyle:p}}function PLt(t){var e=t.icon||"roundRect",r=to(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function zU(t,e,r,n){HA(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),WA(t,e,r,n)}function tte(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,a=e.length;na[i],_=[-p.x,-p.y];n||(_[o]=d[c]);var b=[0,0],w=[-m.x,-m.y],S=et(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var x=r.get("pageButtonPosition",!0);x==="end"?w[o]+=a[i]-m[i]:b[o]+=m[i]+S}w[1-o]+=p[s]/2-m[s]/2,d.setPosition(_),u.setPosition(b),f.setPosition(w);var E={x:0,y:0};if(E[i]=g?a[i]:p[i],E[s]=Math.max(p[s],m[s]),E[l]=Math.min(0,m[l]+w[1-o]),u.__rectSize=a[i],g){var T={x:0,y:0};T[i]=Math.max(a[i]-m[i]-S,0),T[s]=E[s],u.setClipPath(new Sr({shape:T})),u.__rectSize=T[i]}else f.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var D=this._getPageInfo(r);return D.pageIndex!=null&&Zr(d,{x:D.contentPosition[0],y:D.contentPosition[1]},g?r:null),this._updatePageInfoView(r,D),E},e.prototype._pageGo=function(r,n,a){var o=this._getPageInfo(n)[r];o!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;W(["pagePrev","pageNext"],function(d){var u=d+"DataIndex",f=n[u]!=null,p=a.childOfName(d);p&&(p.setStyle("fill",f?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),p.cursor=f?"pointer":"default")});var o=a.childOfName("pageText"),i=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,c=n.pageCount;o&&i&&o.setStyle("text",Re(i)?i.replace("{current}",l==null?"":l+"").replace("{total}",c==null?"":c+""):i({current:l,total:c}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),o=this._containerGroup.__rectSize,i=r.getOrient().index,s=VM[i],l=YM[i],c=this._findTargetItemIndex(n),d=a.children(),u=d[c],f=d.length,p=f?1:0,m={contentPosition:[a.x,a.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return m;var g=x(u);m.contentPosition[i]=-g.s;for(var _=c+1,b=g,w=g,S=null;_<=f;++_)S=x(d[_]),(!S&&w.e>b.s+o||S&&!E(S,b.s))&&(w.i>b.i?b=w:b=S,b&&(m.pageNextDataIndex==null&&(m.pageNextDataIndex=b.i),++m.pageCount)),w=S;for(var _=c-1,b=g,w=g,S=null;_>=-1;--_)S=x(d[_]),(!S||!E(w,S.s))&&b.i=D&&T.s<=D+o}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),o;return a.eachChild(function(i,s){var l=i.__legendDataIndex;o==null&&l!=null&&(o=s),l===r&&(n=s)}),n??o},e.type="legend.scroll",e}(ete);function FLt(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function zLt(t){Dn(rte),t.registerComponentModel(LLt),t.registerComponentView(NLt),FLt(t)}function BLt(t){Dn(rte),Dn(zLt)}var jLt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.inside",e.defaultOption=C_(Bg.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Bg),JL=fr();function WLt(t,e,r){JL(t).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=r)})}function HLt(t,e){for(var r=JL(t).coordSysRecordMap,n=r.keys(),a=0;an[r+e]&&(e=s),a=a&&i.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function qLt(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,r){var n=JL(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=dt());a.each(function(o){o.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var i=zee(o);W(i.infoList,function(s){var l=s.model.uid,c=a.get(l)||a.set(l,ULt(r,s.model)),d=c.dataZoomInfoMap||(c.dataZoomInfoMap=dt());d.set(o.uid,{dzReferCoordSysInfo:s,model:o,getRange:null})})}),a.each(function(o){var i=o.controller,s,l=o.dataZoomInfoMap;if(l){var c=l.keys()[0];c!=null&&(s=l.get(c))}if(!s){nte(a,o);return}var d=GLt(l);i.enable(d.controlType,d.opt),i.setPointerChecker(o.containsPoint),lx(o,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var XLt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return e.prototype.render=function(r,n,a){if(t.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),WLt(a,r,{pan:qe(GM.pan,this),zoom:qe(GM.zoom,this),scrollMove:qe(GM.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){HLt(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(UL),GM={zoom:function(t,e,r,n){var a=this.range,o=a.slice(),i=t.axisModels[0];if(i){var s=qM[e](null,[n.originX,n.originY],i,r,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/n.scale,0);o[0]=(o[0]-l)*c+l,o[1]=(o[1]-l)*c+l;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(I_(0,o,[0,100],0,d.minSpan,d.maxSpan),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}},pan:HU(function(t,e,r,n,a,o){var i=qM[n]([o.oldX,o.oldY],[o.newX,o.newY],e,a,r);return i.signal*(t[1]-t[0])*i.pixel/i.pixelLength}),scrollMove:HU(function(t,e,r,n,a,o){var i=qM[n]([0,0],[o.scrollDelta,o.scrollDelta],e,a,r);return i.signal*(t[1]-t[0])*o.scrollDelta})};function HU(t){return function(e,r,n,a){var o=this.range,i=o.slice(),s=e.axisModels[0];if(s){var l=t(i,s,e,r,n,a);if(I_(l,i,[0,100],"all"),this.range=i,o[0]!==i[0]||o[1]!==i[1])return i}}}var qM={grid:function(t,e,r,n,a){var o=r.axis,i={},s=a.model.coordinateSystem.getRect();return t=t||[0,0],o.dim==="x"?(i.pixel=e[0]-t[0],i.pixelLength=s.width,i.pixelStart=s.x,i.signal=o.inverse?1:-1):(i.pixel=e[1]-t[1],i.pixelLength=s.height,i.pixelStart=s.y,i.signal=o.inverse?-1:1),i},polar:function(t,e,r,n,a){var o=r.axis,i={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),r.mainType==="radiusAxis"?(i.pixel=e[0]-t[0],i.pixelLength=l[1]-l[0],i.pixelStart=l[0],i.signal=o.inverse?1:-1):(i.pixel=e[1]-t[1],i.pixelLength=c[1]-c[0],i.pixelStart=c[0],i.signal=o.inverse?-1:1),i},singleAxis:function(t,e,r,n,a){var o=r.axis,i=a.model.coordinateSystem.getRect(),s={};return t=t||[0,0],o.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=i.width,s.pixelStart=i.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=i.height,s.pixelStart=i.y,s.signal=o.inverse?-1:1),s}};function JLt(t){VL(t),t.registerComponentModel(jLt),t.registerComponentView(XLt),qLt(t)}var KLt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=C_(Bg.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Bg),fm=Sr,UU=7,ZLt=1,XM=30,QLt=7,hm="horizontal",VU="vertical",eNt=5,tNt=["line","bar","candlestick","scatter"],rNt={easing:"cubicOut",duration:100,delay:0},nNt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._displayables={},r}return e.prototype.init=function(r,n){this.api=n,this._onBrush=qe(this._onBrush,this),this._onBrushEnd=qe(this._onBrushEnd,this)},e.prototype.render=function(r,n,a,o){if(t.prototype.render.apply(this,arguments),lx(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){dw(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new sr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),o=a?QLt:0,i=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===hm?{right:s.width-i.x-i.width,top:s.height-XM-UU-o,width:i.width,height:XM}:{right:UU,top:i.y,width:XM,height:i.height},c=E_(r.option);W(["right","top","width","height"],function(u){c[u]==="ph"&&(c[u]=l[u])});var d=us(c,s);this._location={x:d.x,y:d.y},this._size=[d.width,d.height],this._orient===VU&&this._size.reverse()},e.prototype._positionGroup=function(){var r=this.group,n=this._location,a=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),i=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===hm&&!i?{scaleY:l?1:-1,scaleX:1}:a===hm&&i?{scaleY:l?1:-1,scaleX:-1}:a===VU&&!i?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var c=r.getBoundingRect([s]);r.x=n.x-c.x,r.y=n.y-c.y,r.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,o=r.get("brushSelect");a.add(new fm({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var i=new fm({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:qe(this._onClickPanel,this)}),s=this.api.getZr();o?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(i)},e.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,a=this._shadowSize||[],o=r.series,i=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&i.getDimensionInfo(s)?o.getShadowDim():r.otherDim;if(l==null)return;var c=this._shadowPolygonPts,d=this._shadowPolylinePts;if(i!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var u=i.getDataExtent(l),f=(u[1]-u[0])*.3;u=[u[0]-f,u[1]+f];var p=[0,n[1]],m=[0,n[0]],g=[[n[0],0],[0,0]],_=[],b=m[1]/(i.count()-1),w=0,S=Math.round(i.count()/n[0]),x;i.each([l],function(P,O){if(S>0&&O%S){w+=b;return}var I=P==null||isNaN(P)||P==="",F=I?0:Cn(P,u,p,!0);I&&!x&&O?(g.push([g[g.length-1][0],0]),_.push([_[_.length-1][0],0])):!I&&x&&(g.push([w,0]),_.push([w,0])),g.push([w,F]),_.push([w,F]),w+=b,x=I}),c=this._shadowPolygonPts=g,d=this._shadowPolylinePts=_}this._shadowData=i,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var E=this.dataZoomModel;function T(P){var O=E.getModel(P?"selectedDataBackground":"dataBackground"),I=new sr,F=new cs({shape:{points:c},segmentIgnoreThreshold:1,style:O.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),N=new xl({shape:{points:d},segmentIgnoreThreshold:1,style:O.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(F),I.add(N),I}for(var D=0;D<3;D++){var A=T(D===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},e.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var a,o=this.ecModel;return r.eachTargetAxis(function(i,s){var l=r.getAxisProxy(i,s).getTargetSeriesModels();W(l,function(c){if(!a&&!(n!==!0&&$t(tNt,c.get("type"))<0)){var d=o.getComponent(xc(i),s).axis,u=aNt(i),f,p=c.coordinateSystem;u!=null&&p.getOtherAxis&&(f=p.getOtherAxis(d).inverse),u=c.getData().mapDimension(u),a={thisAxis:d,series:c,thisDim:i,otherDim:u,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var r=this.group,n=this._displayables,a=n.handles=[null,null],o=n.handleLabels=[null,null],i=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,c=this.api,d=l.get("borderRadius")||0,u=l.get("brushSelect"),f=n.filler=new fm({silent:u,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});i.add(f),i.add(new fm({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:d},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:ZLt,fill:"rgba(0,0,0,0)"}})),W([0,1],function(S){var x=l.get("handleIcon");!hw[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var E=to(x,-1,0,2,2,null,!0);E.attr({cursor:YU(this._orient),draggable:!0,drift:qe(this._onDragMove,this,S),ondragend:qe(this._onDragEnd,this),onmouseover:qe(this._showDataInfo,this,!0),onmouseout:qe(this._showDataInfo,this,!1),z2:5});var T=E.getBoundingRect(),D=l.get("handleSize");this._handleHeight=wr(D,this._size[1]),this._handleWidth=T.width/T.height*this._handleHeight,E.setStyle(l.getModel("handleStyle").getItemStyle()),E.style.strokeNoScale=!0,E.rectHover=!0,E.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ec(E);var A=l.get("handleColor");A!=null&&(E.style.fill=A),i.add(a[S]=E);var P=l.getModel("textStyle"),O=l.get("handleLabel")||{},I=O.show||!1;r.add(o[S]=new Gr({silent:!0,invisible:!I,style:Ka(P,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:P.getTextColor(),font:P.getFont()}),z2:10}))},this);var p=f;if(u){var m=wr(l.get("moveHandleSize"),s[1]),g=n.moveHandle=new Sr({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:m}}),_=m*.8,b=n.moveHandleIcon=to(l.get("moveHandleIcon"),-_/2,-_/2,_,_,"#fff",!0);b.silent=!0,b.y=s[1]+m/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var w=Math.min(s[1]/2,Math.max(m,10));p=n.moveZone=new Sr({invisible:!0,shape:{y:s[1]-w,height:m+w}}),p.on("mouseover",function(){c.enterEmphasis(g)}).on("mouseout",function(){c.leaveEmphasis(g)}),i.add(g),i.add(b),i.add(p)}p.attr({draggable:!0,cursor:YU(this._orient),drift:qe(this._onDragMove,this,"all"),ondragstart:qe(this._showDataInfo,this,!0),ondragend:qe(this._onDragEnd,this),onmouseover:qe(this._showDataInfo,this,!0),onmouseout:qe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Cn(r[0],[0,100],n,!0),Cn(r[1],[0,100],n,!0)]},e.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,o=this._handleEnds,i=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];I_(n,o,i,a.get("zoomLock")?"all":r,s.minSpan!=null?Cn(s.minSpan,l,i,!0):null,s.maxSpan!=null?Cn(s.maxSpan,l,i,!0):null);var c=this._range,d=this._range=Ks([Cn(o[0],i,l,!0),Cn(o[1],i,l,!0)]);return!c||c[0]!==d[0]||c[1]!==d[1]},e.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,o=Ks(a.slice()),i=this._size;W([0,1],function(p){var m=n.handles[p],g=this._handleHeight;m.attr({scaleX:g/2,scaleY:g/2,x:a[p]+(p?-1:1),y:i[1]/2-g/2})},this),n.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:i[1]});var s={x:o[0],width:o[1]-o[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,c=[0,o[0],o[1],i[0]],d=0;dn[0]||a[1]<0||a[1]>n[1])){var o=this._handleEnds,i=(o[0]+o[1])/2,s=this._updateInterval("all",a[0]-i);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new It(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(a.width)<5)){var i=this._getViewExtent(),s=[0,100];this._range=Ks([Cn(a.x,i,s,!0),Cn(a.x+a.width,i,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(r){this._brushing&&(np(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},e.prototype._updateBrushRect=function(r,n){var a=this._displayables,o=this.dataZoomModel,i=a.brushRect;i||(i=a.brushRect=new fm({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(i)),i.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,c=l.transformCoordToLocal(r,n),d=l.transformCoordToLocal(s.x,s.y),u=this._size;c[0]=Math.max(Math.min(u[0],c[0]),0),i.setShape({x:d[0],y:0,width:c[0]-d[0],height:u[1]})},e.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?rNt:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var r,n=zee(this.dataZoomModel).infoList;if(!r&&n.length){var a=n[0].model.coordinateSystem;r=a.getRect&&a.getRect()}if(!r){var o=this.api.getWidth(),i=this.api.getHeight();r={x:o*.2,y:i*.2,width:o*.6,height:i*.6}}return r},e.type="dataZoom.slider",e}(UL);function aNt(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function YU(t){return t==="vertical"?"ns-resize":"ew-resize"}function oNt(t){t.registerComponentModel(KLt),t.registerComponentView(nNt),VL(t)}function iNt(t){Dn(JLt),Dn(oNt)}var sNt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,n,a){t.prototype.init.call(this,r,n,a),this._sourceManager=new xZ(this),dW(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),dW(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:ns},e}(Pt),lNt=function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e}(Qr);function cNt(t){t.registerComponentModel(sNt),t.registerComponentView(lNt)}var JM=Math.sin,KM=Math.cos,ate=Math.PI,Lu=Math.PI*2,uNt=180/ate,ote=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,a,o,i){this._add("C",e,r,n,a,o,i)},t.prototype.quadraticCurveTo=function(e,r,n,a){this._add("Q",e,r,n,a)},t.prototype.arc=function(e,r,n,a,o,i){this.ellipse(e,r,n,n,0,a,o,i)},t.prototype.ellipse=function(e,r,n,a,o,i,s,l){var c=s-i,d=!l,u=Math.abs(c),f=wc(u-Lu)||(d?c>=Lu:-c>=Lu),p=c>0?c%Lu:c%Lu+Lu,m=!1;f?m=!0:wc(u)?m=!1:m=p>=ate==!!d;var g=e+n*KM(i),_=r+a*JM(i);this._start&&this._add("M",g,_);var b=Math.round(o*uNt);if(f){var w=1/this._p,S=(d?1:-1)*(Lu-w);this._add("A",n,a,b,1,+d,e+n*KM(i+S),r+a*JM(i+S)),w>.01&&this._add("A",n,a,b,0,+d,g,_)}else{var x=e+n*KM(s),E=r+a*JM(s);this._add("A",n,a,b,+m,+d,x,E)}},t.prototype.rect=function(e,r,n,a){this._add("M",e,r),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,a,o,i,s,l,c){for(var d=[],u=this._p,f=1;f"}function yNt(t){return""}function ZL(t,e){e=e||{};var r=e.newline?` +`:"";function n(a){var o=a.children,i=a.tag,s=a.attrs,l=a.text;return _Nt(i,s)+(i!=="style"?Yn(l):l||"")+(o?""+r+ye(o,function(c){return n(c)}).join(r)+r:"")+yNt(i)}return n(t)}function bNt(t,e,r){r=r||{};var n=r.newline?` +`:"",a=" {"+n,o=n+"}",i=ye(Ht(t),function(l){return l+a+ye(Ht(t[l]),function(c){return c+":"+t[l][c]+";"}).join(n)+o}).join(n),s=ye(Ht(e),function(l){return"@keyframes "+l+a+ye(Ht(e[l]),function(c){return c+a+ye(Ht(e[l][c]),function(d){var u=e[l][c][d];return d==="d"&&(u='path("'+u+'")'),d+":"+u+";"}).join(n)+o}).join(n)+o}).join(n);return!i&&!s?"":[""].join(n)}function VA(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function qU(t,e,r,n){return dn("svg","root",{width:t,height:e,xmlns:ite,"xmlns:xlink":ste,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var wNt=0;function cte(){return wNt++}var XU={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Bu="transform-origin";function SNt(t,e,r){var n=_e({},t.shape);_e(n,e),t.buildPath(r,n);var a=new ote;return a.reset(zJ(t)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function xNt(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[Bu]=r+"px "+n+"px")}var CNt={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ute(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function TNt(t,e,r){var n=t.shape.paths,a={},o,i;if(W(n,function(l){var c=VA(r.zrId);c.animation=!0,xx(l,{},c,!0);var d=c.cssAnims,u=c.cssNodes,f=Ht(d),p=f.length;if(p){i=f[p-1];var m=d[i];for(var g in m){var _=m[g];a[g]=a[g]||{d:""},a[g].d+=_.d||""}for(var b in u){var w=u[b].animation;w.indexOf(i)>=0&&(o=w)}}}),!!o){e.d=!1;var s=ute(a,r);return o.replace(i,s)}}function JU(t){return Re(t)?XU[t]?"cubic-bezier("+XU[t]+")":CR(t)?t:"":""}function xx(t,e,r,n){var a=t.animators,o=a.length,i=[];if(t instanceof BR){var s=TNt(t,e,r);if(s)i.push(s);else if(!o)return}else if(!o)return;for(var l={},c=0;c0}).length){var Le=ute(D,r);return Le+" "+w[0]+" both"}}for(var _ in l){var s=g(l[_]);s&&i.push(s)}if(i.length){var b=r.zrId+"-cls-"+cte();r.cssNodes["."+b]={animation:i.join(",")},e.class=b}}function kNt(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};KU(n,e,r)}else{var a=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},o=a.fill;if(!o){var i=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||i;l&&(o=K1(l))}var c=a.lineWidth;if(c){var d=!a.strokeNoScale&&t.transform?t.transform[0]:1;c=c/d}var n={cursor:"pointer"};o&&(n.fill=o),a.stroke&&(n.stroke=a.stroke),c&&(n["stroke-width"]=c),KU(n,e,r)}}function KU(t,e,r,n){var a=JSON.stringify(t),o=r.cssStyleCache[a];o||(o=r.zrId+"-cls-"+cte(),r.cssStyleCache[a]=o,r.cssNodes["."+o+":hover"]=t),e.class=e.class?e.class+" "+o:o}var jg=Math.round;function dte(t){return t&&Re(t.src)}function fte(t){return t&&ot(t.toDataURL)}function QL(t,e,r,n){vNt(function(a,o){var i=a==="fill"||a==="stroke";i&&FJ(o)?pte(e,t,a,n):i&&kR(o)?vte(r,t,a,n):t[a]=o,i&&n.ssr&&o==="none"&&(t["pointer-events"]="visible")},e,r,!1),PNt(r,t,n)}function eN(t,e){var r=GJ(e);r&&(r.each(function(n,a){n!=null&&(t[(GU+a).toLowerCase()]=n+"")}),e.isSilent()&&(t[GU+"silent"]="true"))}function ZU(t){return wc(t[0]-1)&&wc(t[1])&&wc(t[2])&&wc(t[3]-1)}function ENt(t){return wc(t[4])&&wc(t[5])}function tN(t,e,r){if(e&&!(ENt(e)&&ZU(e))){var n=1e4;t.transform=ZU(e)?"translate("+jg(e[4]*n)/n+" "+jg(e[5]*n)/n+")":RTt(e)}}function QU(t,e,r){for(var n=t.points,a=[],o=0;o"u"){var _="Image width/height must been given explictly in svg-ssr renderer.";eo(f,_),eo(p,_)}else if(f==null||p==null){var b=function(O,I){if(O){var F=O.elm,N=f||I.width,B=p||I.height;O.tag==="pattern"&&(c?(B=1,N/=o.width):d&&(N=1,B/=o.height)),O.attrs.width=N,O.attrs.height=B,F&&(F.setAttribute("width",N),F.setAttribute("height",B))}},w=IR(m,null,t,function(O){l||b(T,O),b(u,O)});w&&w.width&&w.height&&(f=f||w.width,p=p||w.height)}u=dn("image","img",{href:m,width:f,height:p}),i.width=f,i.height=p}else a.svgElement&&(u=lt(a.svgElement),i.width=a.svgWidth,i.height=a.svgHeight);if(u){var S,x;l?S=x=1:c?(x=1,S=i.width/o.width):d?(S=1,x=i.height/o.height):i.patternUnits="userSpaceOnUse",S!=null&&!isNaN(S)&&(i.width=S),x!=null&&!isNaN(x)&&(i.height=x);var E=BJ(a);E&&(i.patternTransform=E);var T=dn("pattern","",i,[u]),D=ZL(T),A=n.patternCache,P=A[D];P||(P=n.zrId+"-p"+n.patternIdx++,A[D]=P,i.id=P,T=n.defs[P]=dn("pattern",P,i,[u])),e[r]=FS(P)}}function INt(t,e,r){var n=r.clipPathCache,a=r.defs,o=n[t.id];if(!o){o=r.zrId+"-c"+r.clipPathIdx++;var i={id:o};n[t.id]=o,a[o]=dn("clipPath",o,i,[hte(t,r)])}e["clip-path"]=FS(o)}function rV(t){return document.createTextNode(t)}function Yu(t,e,r){t.insertBefore(e,r)}function nV(t,e){t.removeChild(e)}function aV(t,e){t.appendChild(e)}function mte(t){return t.parentNode}function gte(t){return t.nextSibling}function ZM(t,e){t.textContent=e}var oV=58,RNt=120,LNt=dn("","");function YA(t){return t===void 0}function ji(t){return t!==void 0}function NNt(t,e,r){for(var n={},a=e;a<=r;++a){var o=t[a].key;o!==void 0&&(n[o]=a)}return n}function Am(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function Wg(t){var e,r=t.children,n=t.tag;if(ji(n)){var a=t.elm=lte(n);if(rN(LNt,t),Ee(r))for(e=0;eo?(m=r[l+1]==null?null:r[l+1].elm,_te(t,m,r,a,l)):kw(t,e,n,o))}function _h(t,e){var r=e.elm=t.elm,n=t.children,a=e.children;t!==e&&(rN(t,e),YA(e.text)?ji(n)&&ji(a)?n!==a&&FNt(r,n,a):ji(a)?(ji(t.text)&&ZM(r,""),_te(r,null,a,0,a.length-1)):ji(n)?kw(r,n,0,n.length-1):ji(t.text)&&ZM(r,""):t.text!==e.text&&(ji(n)&&kw(r,n,0,n.length-1),ZM(r,e.text)))}function zNt(t,e){if(Am(t,e))_h(t,e);else{var r=t.elm,n=mte(r);Wg(e),n!==null&&(Yu(n,e.elm,gte(r)),kw(n,[t],0,0))}return e}var BNt=0,jNt=function(){function t(e,r,n){if(this.type="svg",this.refreshHover=iV(),this.configLayer=iV(),this.storage=r,this._opts=n=_e({},n),this.root=e,this._id="zr"+BNt++,this._oldVNode=qU(n.width,n.height),e&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=lte("svg");rN(null,this._oldVNode),a.appendChild(o),e.appendChild(a)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",zNt(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return tV(e,VA(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,a=this._height,o=VA(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress,o.emphasis=e.emphasis,o.ssr=this._opts.ssr;var i=[],s=this._bgVNode=WNt(n,a,this._backgroundColor,o);s&&i.push(s);var l=e.compress?null:this._mainVNode=dn("g","main",{},[]);this._paintList(r,o,l?l.children:i),l&&i.push(l);var c=ye(Ht(o.defs),function(f){return o.defs[f]});if(c.length&&i.push(dn("defs","defs",{},c)),e.animation){var d=bNt(o.cssNodes,o.cssAnims,{newline:!0});if(d){var u=dn("style","stl",{},[],d);i.push(u)}}return qU(n,a,i,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},ZL(this.renderToVNode({animation:et(e.cssAnimation,!0),emphasis:et(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:et(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var a=e.length,o=[],i=0,s,l,c=0,d=0;d=0&&!(f&&l&&f[g]===l[g]);g--);for(var _=m-1;_>g;_--)i--,s=o[i-1];for(var b=g+1;b=s)}}for(var u=this.__startIndex;u15)break}}B.prevElClipPaths&&b.restore()};if(w)if(w.length===0)A=_.__endIndex;else for(var O=p.dpr,I=0;I0&&e>a[0]){for(l=0;le);l++);s=n[a[l]]}if(a.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var c=s.dom;c.nextSibling?i.insertBefore(r.dom,c.nextSibling):i.appendChild(r.dom)}else i.firstChild?i.insertBefore(r.dom,i.firstChild):i.appendChild(r.dom);r.painter||(r.painter=this)}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,a=0;a0?mb:0),this._needsManuallyCompositing),d.__builtin__||RS("ZLevel "+c+" has been used by unkown layer "+d.id),d!==o&&(d.__used=!0,d.__startIndex!==l&&(d.__dirty=!0),d.__startIndex=l,d.incremental?d.__drawIndex=-1:d.__drawIndex=l,r(l),o=d),a.__dirty&Ya&&!a.__inHover&&(d.__dirty=!0,d.incremental&&d.__drawIndex<0&&(d.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(u,f){!u.__used&&u.getElementCount()>0&&(u.__dirty=!0,u.__startIndex=u.__endIndex=u.__drawIndex=0),u.__dirty&&u.__drawIndex<0&&(u.__drawIndex=u.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,W(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?pt(n[e],r,!0):n[e]=r;for(var a=0;a>16)+e;a>255?a=255:a<0&&(a=0);let o=(n>>8&255)+e;o>255?o=255:o<0&&(o=0);let i=(n&255)+e;return i>255?i=255:i<0&&(i=0),(r?"#":"")+(i|o<<8|a<<16).toString(16)}function JNt(t){return{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:XNt(t,30)},{offset:1,color:t}]}}class Ew{constructor(e,r,n,a,o){ae(this,"moment");ae(this,"calcTextWidth");ae(this,"config");ae(this,"themeType");ae(this,"chart");ae(this,"isTouch",typeof window<"u"?"ontouchstart"in window.document.documentElement:!1);ae(this,"compact");ae(this,"lastFormattedTime");ae(this,"option");ae(this,"debug",!1);if(this.moment=e,!this.moment)throw new Error("moment must be set and initialized");this.config=a?JSON.parse(JSON.stringify(a)):null,this.calcTextWidth=n,this.themeType=r||"light",this.chart={yAxis:[]},this.compact=o,this.lastFormattedTime=null}getHelperChartData(){return this.chart}convertData(e,r,n){const a=e[r];if(!(a!=null&&a.length))return[];const o=this.chart.yAxis[n]||{max:null,min:null};this.chart.yAxis[n]=o;for(let i=0;ia[i].value[1])&&(o.min=a[i].value[1]),(o.max===null||o.maxa[0].value[0])&&(this.chart.xMin=a[0].value[0]),(this.chart.xMax===null||this.chart.xMaxEw.getCommonAxis(o.commonYAxis,i)!==i);return this.config.l.map((o,i)=>{const s=o.color||(eO[r]?eO[r][n%eO[r].length]:"");o.color||n++,o.shadowsize=parseFloat(o.shadowsize)||0,o.dashes==="false"?o.dashes=!1:o.dashes==="true"&&(o.dashes=!0);const l=Ew.getCommonAxis(o.commonYAxis,i);if(o.chartType==="bar")return{name:o.name,clip:!0,label:{show:!!this.config.barLabels,position:this.config.barLabels==="topover"?"top":this.config.barLabels==="topunder"?"insideTop":this.config.barLabels==="bottom"?"insideBottom":"inside",formatter:u=>this.yFormatter(u,i,!0),color:this.config.barFontColor||(this.themeType==="dark"?"#fff":"#000"),fontSize:parseInt(this.config.barFontSize,10)||void 0},barWidth:parseInt(this.config.barWidth,10)||void 0,stack:a?"total":void 0,silent:!0,type:"bar",animation:!1,data:e[i],color:s};if(o.chartType==="polar")return{clip:!0,ttt:84,label:{show:!!this.config.barLabels,position:this.config.barLabels==="topover"?"top":this.config.barLabels==="topunder"?"insideTop":this.config.barLabels==="bottom"?"insideBottom":"inside",formatter:u=>this.yFormatter(u,i,!0),color:this.config.barFontColor||(this.themeType==="dark"?"#fff":"#000"),fontSize:parseInt(this.config.barFontSize,10)||void 0},stack:a?"total":void 0,silent:!0,type:"radar",animation:!1,data:e[i],color:s};let c;if(o.chartType==="scatterplot")c={name:o.name,clip:!0,xAxisIndex:0,silent:!0,yAxisIndex:l,type:"scatter",animation:!1,data:this.convertData(e,i,l),itemStyle:{color:s},symbolSize:o.points?o.symbolSize||3:void 0,symbol:o.points?"circle":"none",emphasis:{scale:!1,focus:"none",disabled:!0}};else{const d={name:o.name,clip:!0,xAxisIndex:0,silent:!0,yAxisIndex:l,type:"line",animation:!1,step:o.chartType==="steps"?"end":o.chartType==="stepsStart"?"start":void 0,smooth:o.chartType==="spline",data:this.convertData(e,i,l),itemStyle:{color:s},symbolSize:o.points?o.symbolSize||3:void 0,symbol:o.points?"circle":"none",emphasis:{scale:!1,focus:"none",disabled:!0,lineStyle:{width:o.thickness!==void 0?parseFloat(o.thickness):1,shadowBlur:o.shadowsize?o.shadowsize+1:0,shadowOffsetY:o.shadowsize?o.shadowsize+1:0,shadowColor:s,type:o.dashes?"dashed":o.lineStyle||"solid"}},lineStyle:{width:o.thickness!==void 0?parseFloat(o.thickness):1,shadowBlur:o.shadowsize?o.shadowsize+1:0,shadowOffsetY:o.shadowsize?o.shadowsize+1:0,shadowColor:s,type:o.dashes?"dashed":o.lineStyle||"solid"}};if(parseFloat(o.fill)){let u;this.isTouch?u=s:u=JNt(s),d.areaStyle={color:u,opacity:parseFloat(o.fill)||0}}c=d}return c})}getXAxis(e){return this.config.l.find(n=>n.chartType==="bar")?[{type:"category",data:e.map(a=>`b${a}`),splitLine:{show:!this.config.grid_hideX,lineStyle:this.config.l[0].xaxe==="off"?{color:"rgba(0,0,0,0)",type:"dashed"}:this.config.grid_color?{color:this.config.grid_color,type:"dashed"}:{type:"dashed"}},position:this.config.l[0].xaxe==="top"?"top":"bottom",axisLabel:{show:!this.compact,formatter:(a,o)=>this.xFormatter(a,o,this.config.l[0].xaxe==="top"),fontSize:parseInt(this.config.x_labels_size,10)||12,color:this.config.l[0].xaxe==="off"?"rgba(0,0,0,0)":this.config.x_labels_color||void 0,rich:{a:{fontWeight:"bold"},b:{opacity:0}}}}]:[{type:"time",splitLine:{show:!this.config.grid_hideX,lineStyle:this.config.l[0].xaxe==="off"?{color:"rgba(0,0,0,0)",type:"dashed"}:this.config.grid_color?{color:this.config.grid_color,type:"dashed"}:{type:"dashed"}},splitNumber:parseInt(this.config.l[0].xticks,10)||void 0,position:this.config.l[0].xaxe==="top"?"top":"bottom",min:this.chart.xMin,max:this.chart.xMax,axisTick:{lineStyle:this.config.l[0].xaxe==="off"?{color:"rgba(0,0,0,0)"}:this.config.x_ticks_color?{color:this.config.x_ticks_color}:void 0},axisLabel:{show:!this.compact,formatter:(n,a)=>this.xFormatter(n,a,this.config.l[0].xaxe==="top"),fontSize:parseInt(this.config.x_labels_size,10)||12,color:this.config.l[0].xaxe==="off"?"rgba(0,0,0,0)":this.config.x_labels_color||void 0,rich:{a:{fontWeight:"bold"},b:{opacity:0}}}}]}getYAxis(e){return this.config.l.map((r,n)=>{var l,c;if(!r||r.commonYAxis!==""&&r.commonYAxis!==void 0)return{};let a=parseFloat(r.min),o=parseFloat(r.max);const i=this.chart.yAxis;if(i[n]){const d=i[n].max-i[n].min;Number.isNaN(a)&&(a=i[n].min-d*.1,d>25e3?a=Math.floor(a/1e4)*1e4:d>5e3?a=Math.floor(a/1e3)*1e3:d>200?a=Math.floor(a/100)*100:d>30?a=Math.floor(a/10)*10:d>10?a=Math.floor(a):d>1&&(a=Math.floor(a*10)/10)),Number.isNaN(o)&&(o=i[n].max+d*.1,d>25e3?o=Math.ceil(o/1e4)*1e4:d>5e3?o=Math.ceil(o/1e3)*1e3:d>200?o=Math.ceil(o/100)*100:d>30?o=Math.ceil(o/10)*10:d>10?o=Math.ceil(o):d>1&&(o=Math.floor(o*10)/10))}else Number.isNaN(a)&&(a=void 0),Number.isNaN(o)&&(o=void 0);let s=r.yaxe==="off"?"rgba(0,0,0,0)":this.config.grid_color||void 0;return(r.yaxe==="leftColor"||r.yaxe==="rightColor")&&(s=(c=(l=e[n])==null?void 0:l.itemStyle)==null?void 0:c.color),{type:"value",min:a,max:o,position:r.yaxe==="left"||r.yaxe==="off"||r.yaxe==="leftColor"?"left":r.yaxe==="right"||r.yaxe==="rightColor"||n?"right":"left",splitLine:n?void 0:{show:!this.config.grid_hideY,lineStyle:{color:s||void 0,type:"dashed"}},splitNumber:parseInt(r.yticks,10)||void 0,axisLabel:{show:!this.compact,formatter:d=>this.yFormatter(d,n,!0),color:r.yaxe==="off"||r.yaxe==="leftColor"||r.yaxe==="rightColor"?s:this.config.y_labels_color||void 0,fontSize:parseInt(this.config.y_labels_size,10)||12},axisTick:{alignWithLabel:!0,lineStyle:s?{color:s}:this.config.y_ticks_color?{color:this.config.y_ticks_color}:void 0}}})}getMarkings(e){var r;return(r=this.config.marks)==null||r.forEach(n=>{if(!n)return;const a=n.lowerValue!==void 0?n.lowerValue:parseFloat(n.lowerValueOrId),o=n.upperValue!==void 0?n.upperValue:parseFloat(n.upperValueOrId),i=a!==null&&!Number.isNaN(a),s=o!==null&&!Number.isNaN(o),l=e.series[n.lineId];if(!l){console.error("Mark line has no chart line");return}if(i&&s&&(l.markArea=l.markArea||{data:[]},l.markArea.data.push([{yAxis:a,itemStyle:{color:n.color||l.itemStyle.color,borderWidth:0,opacity:parseFloat(n.fill)||0}},{yAxis:o}])),i||s)for(let c=0;c<2;c++){if(!c&&!s)continue;if(c&&!i)continue;const d=c?a:o;if(l.markLine=l.markLine||{symbol:["none","none"],data:[]},l.markLine.data.push({yAxis:d,name:n.text,lineStyle:{color:n.color||l.itemStyle.color,width:parseFloat(n.ol)||1,shadowBlur:parseFloat(n.os)?parseFloat(n.os)+1:0,shadowOffsetY:parseFloat(n.os)?parseFloat(n.os)+1:0,shadowColor:n.color,type:n.lineStyle||"solid"},label:{show:!!n.text,formatter:u=>u.name,position:n.textPosition==="r"?"end":n.textPosition==="l"?"start":n.textPosition||"start",distance:[n.textPosition==="r"||n.textPosition==="l"?-1*n.textOffset||-35:parseFloat(n.textOffset)||0,0],fontStyle:"normal",color:n.textColor||"#FFF",fontSize:n.textSize||void 0}}),this.config.l[n.lineId]){const u=parseFloat(this.config.l[n.lineId].min);Number.isNaN(u)&&this.chart.yAxis[n.lineId]&&this.chart.yAxis[n.lineId].min>d&&d<0&&(e.yAxis[0].min=d);const f=parseFloat(this.config.l[n.lineId].min);Number.isNaN(f)&&this.chart.yAxis[n.lineId]&&this.chart.yAxis[n.lineId].max=.5?this.config.l[r].trueText||"TRUE":this.config.l[r].falseText||"FALSE":"";if(i==null)return"";const s=this.config.l[r].afterComma;return s!=null?(i=parseFloat(i),this.config.useComma?i.toFixed(s).replace(".",",")+(n?this.config.l[r].unit:""):i.toFixed(s)+(n?this.config.l[r].unit:"")):(a&&(i=Math.round(i*1e4)/1e4),this.config.useComma?(i=parseFloat(i)||0,i=i.toString().replace(".",",")+(n?this.config.l[r].unit:""),i):i.toString()+(n?this.config.l[r].unit:""))}isXLabelHasBreak(){return this.config.timeFormat?this.config.timeFormat.replace("
",` +`).includes(` +`):(this.chart.withSeconds||this.chart.withTime,!0)}xFormatter(e,r,n){if(typeof e=="string"&&e.startsWith("b")){const s=new Date(parseInt(e.substring(1),10));if(this.config.xLabelShift&&(this.config.xLabelShiftMonth?s.setMonth(s.getMonth()+this.config.xLabelShift):this.config.xLabelShiftYear?s.setFullYear(s.getFullYear()+this.config.xLabelShift):s.setSeconds(s.getSeconds()+this.config.xLabelShift)),this.config.aggregateBar===60)return`.${s.getDate()} ${s.getHours().toString().padStart(2,"0")}:00`;if(this.config.aggregateBar===15)return`${s.getHours().toString().padStart(2,"0")}:${s.getMinutes().toString().padStart(2,"0")}`;if(this.config.aggregateBar===1440)return`${s.getDate()}.${s.getMonth()+1}`;if(this.config.aggregateBar===43200){const l=new Date(s);return l.setDate(l.getDate()+15),`${l.getMonth()+1}.${l.getFullYear()}`}}const a=new Date(e);if(this.config.xLabelShift&&(this.config.xLabelShiftMonth?a.setMonth(a.getMonth()+this.config.xLabelShift):this.config.xLabelShiftYear?a.setFullYear(a.getFullYear()+this.config.xLabelShift):a.setSeconds(a.getSeconds()+this.config.xLabelShift)),this.config.timeFormat)return this.moment(a).format(this.config.timeFormat).replace("
",` +`);let o="";const i=a.getDate();if(this.chart.withSeconds||this.chart.withTime){let s=!1;if((r<2||this.lastFormattedTime===null||er||i[i.length-1].value[0]u.chartType==="bar"||u.chartType==="polar");let s;const l=r.map((u,f)=>{var b;const p=this.config.l[f],m=e.find(w=>w.seriesIndex===f);if(i){if(!m)return null;let w;if(p.afterComma!==void 0){const S=10**p.afterComma;w=Math.round(m.value*S)/S}else w=m.value;return s=m.name,`
${p.name}:
${w}${p.unit||""}
`}let g;if(m&&(g={exact:m.data.exact!==void 0?m.data.exact:!0,val:m.value[1]}),g=g||this.getInterpolatedValue(f,n,p.type,o),!g||!g.exact&&this.config.hoverNoInterpolate)return"";const _=g.val===null?"null":this.yFormatter(g.val,f,!1,!g.exact,!0);return`
${u.name}:
${g.exact?"":"i "}${_}${g.val!==null?p.unit:""}
`});if(i){const u=this.config.timeFormat||"dd, MM Do YYYY, HH:mm",f=new Date(parseInt(s.substring(1),10));return`${this.moment(f).format(u)}
${l.filter(p=>p).join("
")}`}const c=this.config.timeFormat||"dd, MM Do YYYY, HH:mm:ss.SSS";return`${this.moment(a).format(c)}
${l.filter(u=>u).join("
")}`}getLegend(e){if(!this.config.legend||this.config.legend==="dialog")return;const r={data:this.config.l.map(n=>n.name),show:!0,left:this.config.legend==="nw"||this.config.legend==="sw"?this.chart.padLeft+1:void 0,right:this.config.legend==="ne"||this.config.legend==="se"?this.chart.padRight+1:void 0,top:this.config.legend==="nw"||this.config.legend==="ne"?this.chart.padTop+2:void 0,bottom:this.config.legend==="sw"||this.config.legend==="se"?this.chart.padBottom+2:void 0,backgroundColor:this.config.legBg||void 0,height:this.config.legendHeight||void 0,formatter:n=>{if(this.config.legActual&&e){for(let a=0;ar.selected[n.name]=n.hide!==!0),r}getTitle(){if(!this.config||!this.config.title)return;const e={};return(this.config.titlePos||"top:35;left:65").split(";").forEach(r=>{const n=r.split(":");e[n[0].trim()]=parseInt(n[1].trim(),10)}),{text:this.config.title,textStyle:{fontSize:this.config.titleSize?parseInt(this.config.titleSize,10):20,color:this.config.titleColor||(this.themeType==="light"?"#000":"#FFF")},textVerticalAlign:e.bottom?"bottom":"top",textAlign:e.left===50?"center":e.right===-5?"right":"left",top:e.top===35?5+this.chart.padTop:e.top===50?"50%":void 0,left:e.left===50?"50%":e.left===65?this.chart.padLeft:void 0,bottom:e.bottom?e.bottom>0?e.bottom+this.chart.padBottom-15:e.bottom:void 0,right:e.right===5?this.chart.padRight:void 0}}getOption(e,r,n,a){var u;r&&(this.config=JSON.parse(JSON.stringify(r)));const o=this.isTouch&&this.config.zoom;let i=this.config.theme;(!i||i==="default")&&(i=this.themeType==="light"?"roma":"dark-bold"),this.debug=(u=this.config)==null?void 0:u.debug,this.debug&&console.log(`[ChartView ] [${new Date().toISOString()}] ${JSON.stringify(this.config,null,2)}`);const s=this.getSeries(e,i);if(this.config.start){const f=parseInt(this.config.end,10);this.chart.xMaxp&&(this.chart.xMin=p)}this.chart.diff=this.chart.xMax-this.chart.xMin,this.chart.withTime=this.chart.diff<36e5*24*7,this.chart.withSeconds=this.chart.diff<6e4*30,this.config.y_labels_size=parseInt(this.config.y_labels_size,10)||12,this.config.x_labels_size=parseInt(this.config.x_labels_size,10)||12,this.config.legFontSize=parseInt(this.config.legFontSize,10)||12;const l=this.getYAxis(s),c=this.getXAxis(a),d={theme:i,backgroundColor:"transparent",animation:!this.config.noAnimation&&!this.config.noLoader,grid:{backgroundColor:this.config.bg_custom||"transparent",show:!!this.config.bg_custom,left:10,top:8,right:this.config.export===!0||this.config.export==="true"?30:0,bottom:this.compact?4:this.isXLabelHasBreak()?40:24,containLabel:this.config.autoGridPadding},tooltip:!this.compact&&this.config.hoverDetail?{trigger:"axis",formatter:f=>this.renderTooltip(f)}:void 0,axisPointer:this.compact&&this.config.hoverDetail?{animation:!0}:void 0,xAxis:c,yAxis:l,series:s,useCanvas:o};if(this.config.l.forEach((f,p)=>{f.aggregate==="current"&&(d.series[p].data=[n[p]])}),this.config.l.find(f=>f.chartType==="polar")){d.animation=!1,d.radar={shape:this.config.radarCircle==="circle"?"circle":void 0,indicator:[]};const f=[{type:"radar",data:[{value:[]}],lineStyle:{color:d.series[0].color},label:d.series[0].label}];d.series.forEach((p,m)=>{const g=this.config.l[m].max&&parseFloat(this.config.l[m].max)||void 0;d.radar.indicator.push({name:p.name+(g!==void 0?` (max ${this.yFormatter(g,m,!0)})`:""),max:g});let _;for(let b=p.data.length-1;b>=0;b--)if(p.data[b]!==void 0&&p.data[b]!==null){_=p.data[b];break}_!==void 0?f[0].data[0].value.push(_):f[0].data[0].value.push(0)}),d.series=f,delete d.xAxis,delete d.yAxis,delete d.grid}else if(this.getMarkings(d),!this.compact&&!this.config.autoGridPadding){const f=s;let p=0,m=0,g=0,_=0;f.forEach((b,w)=>{let S=d.yAxis[b.yAxisIndex];if(!S){const P=this.config.l[b.yAxisIndex]?this.config.l[b.yAxisIndex].commonYAxis:void 0;if(P!==void 0)S=d.yAxis[P];else if(this.config.l[w].chartType==="bar"){S={min:b.data[0],max:b.data[0]};for(let O=1;OS.max||S.max===null)&&(S.max=b.data[O]))}else{console.log(`Cannot find Y axis for line ${w}`);return}}const x=this.yFormatter(S.min,w,!0,!1,!0),E=this.yFormatter(!S.min&&S.max===S.min?.8:S.max,w,!0,!1,!0);c[0].position==="top"?_=this.isXLabelHasBreak()?40:24:c[0].position==="bottom"&&(g=this.isXLabelHasBreak()?40:24);const T=S.position;if(S.axisLabel&&S.axisLabel.color==="rgba(0,0,0,0)")return;const D=this.calcTextWidth(x,this.config.y_labels_size)+4;let A=this.calcTextWidth(E,this.config.y_labels_size)+4;if(b.states){let P="";Object.keys(b.states).forEach(O=>{b.states[O].length>P.length&&(P=b.states[O])}),A=this.calcTextWidth(P,this.config.y_labels_size)+4}T!=="right"?(D>p&&(p=D),A>p&&(p=A)):(D>m&&(m=D),A>m&&(m=A))}),d.grid.left=p+10,d.grid.right=m+10+(this.config.export===!0||this.config.export==="true"?20:0),d.grid.right<=10&&(_||g)&&(d.grid.right=18),d.grid.left<=10&&(_||g)&&(d.grid.left=18),this.chart.padLeft=d.grid.left,this.chart.padRight=d.grid.right,_||(_=8),g||(g=8),d.grid.top=_,d.grid.bottom=g,this.chart.padTop=d.grid.top,this.chart.padBottom=d.grid.bottom}return d.legend=this.getLegend(n),d.title=this.getTitle(),!this.config.grid_color&&Array.isArray(d.yAxis)&&(d.yAxis.forEach(f=>f.splitLine&&delete f.splitLine.lineStyle),d.xAxis.forEach(f=>f.splitLine&&delete f.splitLine.lineStyle)),this.option=d,this.option}}var gb={};Dn([yte,cNt]);const KNt={init:function(){return pL.apply(null,arguments)}};Dn(mAt);const Mn=Object.freeze(Object.defineProperty({__proto__:null,Axis:P_,ChartView:En,ComponentModel:Pt,ComponentView:Qr,List:as,Model:hr,PRIORITY:dL,SeriesModel:Kn,color:IJ,connect:aQ,dataTool:dQ,default:KNt,dependencies:GZ,disConnect:oQ,disconnect:vL,dispose:iQ,env:ut,extendChartView:XQ,extendComponentModel:YQ,extendComponentView:GQ,extendSeriesModel:qQ,format:NQ,getCoordinateSystemDimensions:lQ,getInstanceByDom:dx,getInstanceById:sQ,getMap:uQ,graphic:LQ,helper:$Q,init:pL,innerDrawElementOnCanvas:cx,matrix:bJ,number:IQ,parseGeoJSON:bw,parseGeoJson:bw,registerAction:Ho,registerCoordinateSystem:_L,registerLayout:yL,registerLoading:vx,registerLocale:QS,registerMap:wL,registerPostInit:mL,registerPostUpdate:gL,registerPreprocessor:hx,registerProcessor:px,registerTheme:fx,registerTransform:SL,registerUpdateLifecycle:$_,registerVisual:Tl,setCanvasCreator:cQ,setPlatformAPI:fR,throttle:D_,time:RQ,use:Dn,util:FQ,vector:gJ,version:YZ,zrUtil:pJ,zrender:XJ},Symbol.toStringTag,{value:"Module"}));var cV;function ZNt(){return cV||(cV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(gb,function(e,r){var n=function(i){typeof console<"u"&&console&&console.error&&console.error(i)};if(!r){n("ECharts is not Loaded");return}var a=["#f2385a","#f5a503","#4ad9d9","#f7879c","#c1d7a8","#4dffd2","#fccfd7","#d5f6f6"],o={color:a,title:{textStyle:{fontWeight:"normal",color:"#f2385a"}},visualMap:{color:["#f2385a","#f5a503"]},toolbox:{color:["#f2385a","#f2385a","#f2385a","#f2385a"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#f2385a",type:"dashed"},crossStyle:{color:"#f2385a"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#f2385a"},timeline:{lineStyle:{color:"#f2385a"},controlStyle:{color:"#f2385a",borderColor:"#f2385a"}},candlestick:{itemStyle:{color:"#f2385a",color0:"#f5a503"},lineStyle:{width:1,color:"#f2385a",color0:"#f5a503"},areaStyle:{color:"#c1d7a8",color0:"#4ad9d9"}},map:{itemStyle:{color:"#f2385a"},areaStyle:{color:"#ddd"},label:{color:"#c12e34"}},graph:{itemStyle:{color:"#f2385a"},linkStyle:{color:"#f2385a"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#f5a503"],[.8,"#f2385a"],[1,"#c1d7a8"]],width:8}}}};r.registerTheme("azul",o)})}(gb)),gb}ZNt();var _b={},uV;function QNt(){return uV||(uV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(_b,function(e,r){var n=function(i){typeof console<"u"&&console&&console.error&&console.error(i)};if(!r){n("ECharts is not Loaded");return}var a=["#001727","#805500","#ffff00","#ffd11a","#f2d71f","#f2be19","#f3a81a","#fff5cc"],o={color:a,title:{textStyle:{fontWeight:"normal",color:"#001727"}},visualMap:{color:["#001727","#805500"]},toolbox:{color:["#001727","#001727","#001727","#001727"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#001727",type:"dashed"},crossStyle:{color:"#001727"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#001727"},timeline:{lineStyle:{color:"#001727"},controlStyle:{color:"#001727",borderColor:"#001727"}},candlestick:{itemStyle:{color:"#f3a81a",color0:"#ffff00"},lineStyle:{width:1,color:"#ffff00",color0:"#f3a81a"},areaStyle:{color:"#805500",color0:"#ffff00"}},chord:{padding:4,itemStyle:{color:"#f3a81a",borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)"},lineStyle:{color:"rgba(128, 128, 128, 0.5)"},areaStyle:{color:"#805500"}},map:{itemStyle:{color:"#ffd11a"},areaStyle:{color:"#f2be19"},label:{color:"#ffd11a"}},graph:{itemStyle:{color:"#001727"},linkStyle:{color:"#001727"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#f2d71f"],[.8,"#001727"],[1,"#ffff00"]],width:8}}}};r.registerTheme("bee-inspired",o)})}(_b)),_b}QNt();var yb={},dV;function e5t(){return dV||(dV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(yb,function(e,r){var n=function(i){typeof console<"u"&&console&&console.error&&console.error(i)};if(!r){n("ECharts is not Loaded");return}var a=["#1790cf","#1bb2d8","#99d2dd","#88b0bb","#1c7099","#038cc4","#75abd0","#afd6dd"],o={color:a,title:{textStyle:{fontWeight:"normal",color:"#1790cf"}},visualMap:{color:["#1790cf","#a2d4e6"]},toolbox:{color:["#1790cf","#1790cf","#1790cf","#1790cf"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#1790cf",type:"dashed"},crossStyle:{color:"#1790cf"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(144,197,237,0.2)",handleColor:"#1790cf"},timeline:{lineStyle:{color:"#1790cfa"},controlStyle:{color:"#1790cf",borderColor:"#1790cf"}},candlestick:{itemStyle:{color:"#1bb2d8",color0:"#99d2dd"},lineStyle:{width:1,color:"#1c7099",color0:"#88b0bb"},areaStyle:{color:"#1790cf",color0:"#1bb2d8"}},chord:{padding:4,itemStyle:{color:"#1bb2d8",borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)"},lineStyle:{color:"rgba(128, 128, 128, 0.5)"},areaStyle:{color:"#1790cf"}},graph:{itemStyle:{color:"#1bb2d8"},linkStyle:{color:"#88b0bb"}},map:{itemStyle:{color:"#ddd"},areaStyle:{color:"99d2dd"},label:{color:"#c12e34"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#1bb2d8"],[.8,"#1790cf"],[1,"#1c7099"]],width:8}}}};r.registerTheme("blue",o)})}(yb)),yb}e5t();var bb={},fV;function t5t(){return fV||(fV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(bb,function(e,r){var n=function(i){typeof console<"u"&&console&&console.error&&console.error(i)};if(!r){n("ECharts is not Loaded");return}var a=["#C1232B","#27727B","#FCCE10","#E87C25","#B5C334","#FE8463","#9BCA63","#FAD860","#F3A43B","#60C0DD","#D7504B","#C6E579","#F4E001","#F0805A","#26C0C0"],o={color:a,title:{textStyle:{fontWeight:"normal",color:"#27727B"}},visualMap:{color:["#C1232B","#FCCE10"]},toolbox:{iconStyle:{borderColor:a[0]}},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#27727B",type:"dashed"},crossStyle:{color:"#27727B"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"rgba(181,195,52,0.3)",fillerColor:"rgba(181,195,52,0.2)",handleColor:"#27727B"},categoryAxis:{axisLine:{lineStyle:{color:"#27727B"}},splitLine:{show:!1}},valueAxis:{axisLine:{show:!1},splitArea:{show:!1},splitLine:{lineStyle:{color:["#ccc"],type:"dashed"}}},timeline:{itemStyle:{color:"#27727B"},lineStyle:{color:"#27727B"},controlStyle:{color:"#27727B",borderColor:"#27727B"},symbol:"emptyCircle",symbolSize:3},line:{itemStyle:{borderWidth:2,borderColor:"#fff",lineStyle:{width:3}},emphasis:{itemStyle:{borderWidth:0}},symbol:"circle",symbolSize:3.5},candlestick:{itemStyle:{color:"#c1232b",color0:"#b5c334"},lineStyle:{width:1,color:"#c1232b",color0:"#b5c334"},areaStyle:{color:"#c1232b",color0:"#27727b"}},graph:{itemStyle:{color:"#c1232b"},linkStyle:{color:"#b5c334"}},map:{itemStyle:{color:"#f2385a",areaColor:"#ddd",borderColor:"#eee"},areaStyle:{color:"#fe994e"},label:{color:"#c1232b"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#B5C334"],[.8,"#27727B"],[1,"#C1232B"]]}},axisTick:{splitNumber:2,length:5,lineStyle:{color:"#fff"}},axisLabel:{color:"#fff"},splitLine:{length:"5%",lineStyle:{color:"#fff"}},title:{offsetCenter:[0,-20]}}};r.registerTheme("infographic",o)})}(bb)),bb}t5t();var wb={},hV;function r5t(){return hV||(hV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(wb,function(e,r){var n=function(o){typeof console<"u"&&console&&console.error&&console.error(o)};if(!r){n("ECharts is not Loaded");return}var a=["#d87c7c","#919e8b","#d7ab82","#6e7074","#61a0a8","#efa18d","#787464","#cc7e63","#724e58","#4b565b"];r.registerTheme("vintage",{color:a,backgroundColor:"#fef8ef",graph:{color:a}})})}(wb)),wb}r5t();var Sb={},pV;function n5t(){return pV||(pV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(Sb,function(e,r){var n=function(c){typeof console<"u"&&console&&console.error&&console.error(c)};if(!r){n("ECharts is not Loaded");return}var a="#B9B8CE",o="#100C2A",i=function(){return{axisLine:{lineStyle:{color:a}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},s=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],l={darkMode:!0,color:s,backgroundColor:o,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:a}},textStyle:{color:a},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:a}},dataZoom:{borderColor:"#71708A",textStyle:{color:a},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:a}},timeline:{lineStyle:{color:a},label:{color:a},controlStyle:{color:a,borderColor:a}},calendar:{itemStyle:{color:o},dayLabel:{color:a},monthLabel:{color:a},yearLabel:{color:a}},timeAxis:i(),logAxis:i(),valueAxis:i(),categoryAxis:i(),line:{symbol:"circle"},graph:{color:s},gauge:{title:{color:a}},candlestick:{itemStyle:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}};l.categoryAxis.splitLine.show=!1,r.registerTheme("dark",l)})}(Sb)),Sb}n5t();var xb={},vV;function a5t(){return vV||(vV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(xb,function(e,r){var n=function(i){typeof console<"u"&&console&&console.error&&console.error(i)};if(!r){n("ECharts is not Loaded");return}var a=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],o={color:a,title:{textStyle:{fontWeight:"normal",color:"#008acd"}},visualMap:{itemWidth:15,color:["#5ab1ef","#e0ffff"]},toolbox:{iconStyle:{borderColor:a[0]}},tooltip:{borderWidth:0,backgroundColor:"rgba(50,50,50,0.5)",textStyle:{color:"#FFF"},axisPointer:{type:"line",lineStyle:{color:"#008acd"},crossStyle:{color:"#008acd"},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},dataZoom:{dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd"},grid:{borderColor:"#eee"},categoryAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#008acd"},controlStyle:{color:"#008acd",borderColor:"#008acd"},symbol:"emptyCircle",symbolSize:3},line:{smooth:!0,symbol:"emptyCircle",symbolSize:3},candlestick:{itemStyle:{color:"#d87a80",color0:"#2ec7c9"},lineStyle:{width:1,color:"#d87a80",color0:"#2ec7c9"},areaStyle:{color:"#2ec7c9",color0:"#b6a2de"}},scatter:{symbol:"circle",symbolSize:4},map:{itemStyle:{color:"#ddd"},areaStyle:{color:"#fe994e"},label:{color:"#d87a80"}},graph:{itemStyle:{color:"#d87a80"},linkStyle:{color:"#2ec7c9"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#2ec7c9"],[.8,"#5ab1ef"],[1,"#d87a80"]],width:10}},axisTick:{splitNumber:10,length:15,lineStyle:{color:"auto"}},splitLine:{length:22,lineStyle:{color:"auto"}},pointer:{width:5}}};r.registerTheme("macarons",o)})}(xb)),xb}a5t();var Cb={},mV;function o5t(){return mV||(mV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(Cb,function(e,r){var n=function(i){typeof console<"u"&&console&&console.error&&console.error(i)};if(!r){n("ECharts is not Loaded");return}var a=["#c12e34","#e6b600","#0098d9","#2b821d","#005eaa","#339ca8","#cda819","#32a487"],o={color:a,title:{textStyle:{fontWeight:"normal"}},visualMap:{color:["#1790cf","#a2d4e6"]},toolbox:{iconStyle:{borderColor:"#06467c"}},tooltip:{backgroundColor:"rgba(0,0,0,0.6)"},dataZoom:{dataBackgroundColor:"#dedede",fillerColor:"rgba(154,217,247,0.2)",handleColor:"#005eaa"},timeline:{lineStyle:{color:"#005eaa"},controlStyle:{color:"#005eaa",borderColor:"#005eaa"}},candlestick:{itemStyle:{color:"#c12e34",color0:"#2b821d"},lineStyle:{width:1,color:"#c12e34",color0:"#2b821d"},areaStyle:{color:"#e6b600",color0:"#005eaa"}},graph:{itemStyle:{color:"#e6b600"},linkStyle:{color:"#005eaa"}},map:{itemStyle:{color:"#f2385a",borderColor:"#eee",areaColor:"#ddd"},areaStyle:{color:"#ddd"},label:{color:"#c12e34"}},gauge:{axisLine:{show:!0,lineStyle:{color:[[.2,"#2b821d"],[.8,"#005eaa"],[1,"#c12e34"]],width:5}},axisTick:{splitNumber:10,length:8,lineStyle:{color:"auto"}},axisLabel:{color:"auto"},splitLine:{length:12,lineStyle:{color:"auto"}},pointer:{length:"90%",width:3,color:"auto"},title:{color:"#333"},detail:{color:"auto"}}};r.registerTheme("shine",o)})}(Cb)),Cb}o5t();var Tb={},gV;function i5t(){return gV||(gV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(Tb,function(e,r){var n=function(i){typeof console<"u"&&console&&console.error&&console.error(i)};if(!r){n("ECharts is not Loaded");return}var a=["#E01F54","#001852","#f5e8c8","#b8d2c7","#c6b38e","#a4d8c2","#f3d999","#d3758f","#dcc392","#2e4783","#82b6e9","#ff6347","#a092f1","#0a915d","#eaf889","#6699FF","#ff6666","#3cb371","#d5b158","#38b6b6"],o={color:a,visualMap:{color:["#e01f54","#e7dbc3"],textStyle:{color:"#333"}},candlestick:{itemStyle:{color:"#e01f54",color0:"#001852"},lineStyle:{width:1,color:"#f5e8c8",color0:"#b8d2c7"},areaStyle:{color:"#a4d8c2",color0:"#f3d999"}},graph:{itemStyle:{color:"#a4d8c2"},linkStyle:{color:"#f3d999"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#E01F54"],[.8,"#b8d2c7"],[1,"#001852"]],width:8}}}};r.registerTheme("roma",o)})}(Tb)),Tb}i5t();var kb={},_V;function s5t(){return _V||(_V=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(kb,function(e,r){var n=function(i){typeof console<"u"&&console&&console.error&&console.error(i)};if(!r){n("ECharts is not Loaded");return}var a=["#3f7ea6","#993366","#408000","#8c6f56","#a65149","#731f17","#adc2eb","#d9c3b0"],o={color:a,title:{textStyle:{fontWeight:"normal",color:"#3f7ea6"}},visualMap:{color:["#3f7ea6","#993366"]},toolbox:{color:["#3f7ea6","#3f7ea6","#3f7ea6","#3f7ea6"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#3f7ea6",type:"dashed"},crossStyle:{color:"#3f7ea6"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#3f7ea6"},timeline:{lineStyle:{color:"#3f7ea6"},controlStyle:{color:"#3f7ea6",borderColor:"#3f7ea6"}},candlestick:{itemStyle:{color:"#d9c3b0",color0:"#8c6f56"},lineStyle:{width:1,color:"#731f17",color0:"#a65149"},areaStyle:{color:"#3f7ea6",color0:"#993366"}},map:{itemStyle:{color:"#d9c3b0"},areaStyle:{color:"#ddd"},label:{color:"#c12e34"}},graph:{itemStyle:{color:"#993366"},linkStyle:{color:"#3f7ea6"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#d9c3b0"],[.8,"#3f7ea6"],[1,"#731f17"]],width:8}}}};r.registerTheme("royal",o)})}(kb)),kb}s5t();var Eb={},yV;function l5t(){return yV||(yV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(Eb,function(e,r){var n=function(l){typeof console<"u"&&console&&console.error&&console.error(l)};if(!r){n("ECharts is not Loaded");return}var a="#eee",o=function(){return{axisLine:{lineStyle:{color:a}},axisTick:{lineStyle:{color:a}},axisLabel:{color:a},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:a}}}},i=["#00305a","#004b8d","#0074d9","#4192d9","#7abaf2","#99cce6","#d6ebf5","#eeeeee"],s={color:i,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:a},crossStyle:{color:a}}},legend:{textStyle:{color:a}},title:{textStyle:{color:a}},toolbox:{iconStyle:{borderColor:a}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#00305a"},timeline:{itemStyle:{color:i[1]},lineStyle:{color:a},controlStyle:{color:a,borderColor:a},label:{color:a}},timeAxis:o(),logAxis:o(),valueAxis:o(),categoryAxis:o(),line:{symbol:"circle"},graph:{color:i},gauge:{axisLine:{lineStyle:{color:[[.2,"#004b8d"],[.8,"#00305a"],[1,"#7abaf2"]],width:8}}}};s.categoryAxis.splitLine.show=!1,r.registerTheme("dark-blue",s)})}(Eb)),Eb}l5t();var Db={},bV;function c5t(){return bV||(bV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(Db,function(e,r){var n=function(i){typeof console<"u"&&console&&console.error&&console.error(i)};if(!r){n("ECharts is not Loaded");return}var a=["#4d4d4d","#3a5897","#007bb6","#7094db","#0080ff","#b3b3ff","#00bdec","#33ccff","#ccddff","#eeeeee"],o={color:a,title:{textStyle:{fontWeight:"normal",color:"#00aecd"}},visualMap:{color:["#00aecd","#a2d4e6"]},toolbox:{color:["#00aecd","#00aecd","#00aecd","#00aecd"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#00aecd",type:"dashed"},crossStyle:{color:"#00aecd"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(144,197,237,0.2)",handleColor:"#00aecd"},timeline:{lineStyle:{color:"#00aecd"},controlStyle:{color:"#00aecd"},emphasis:{controlStyle:{color:"#00aecd"}}},candlestick:{itemStyle:{color:"#ddd",color0:"#eee"},lineStyle:{width:1,color:"#33ccff",color0:"#1bb4cf"},areaStyle:{color:"#7094db",color0:"#33ccff"}},chord:{padding:4,itemStyle:{color:"#7094db",borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)"},lineStyle:{color:"rgba(128, 128, 128, 0.5)"},areaStyle:{color:"#33ccff"}},graph:{itemStyle:{color:"#7094db"},linkStyle:{color:"#33ccff"}},map:{itemStyle:{color:"#7094db"},areaStyle:{color:"#33ccff"},label:{color:"#ddd"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#dddddd"],[.8,"#00aecd"],[1,"#33ccff"]],width:8}}}};r.registerTheme("tech-blue",o)})}(Db)),Db}c5t();var Mb={},wV;function u5t(){return wV||(wV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(Mb,function(e,r){var n=function(i){typeof console<"u"&&console&&console.error&&console.error(i)};if(!r){n("ECharts is not Loaded");return}var a=["#d8361b","#f16b4c","#f7b4a9","#d26666","#99311c","#c42703","#d07e75"],o={color:a,title:{textStyle:{fontWeight:"normal",color:"#d8361b"}},visualMap:{color:["#d8361b","#ffd2d2"]},dataRange:{color:["#bd0707","#ffd2d2"]},toolbox:{color:["#d8361b","#d8361b","#d8361b","#d8361b"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#d8361b",type:"dashed"},crossStyle:{color:"#d8361b"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(216,54,27,0.2)",handleColor:"#d8361b"},grid:{borderWidth:0},categoryAxis:{axisLine:{lineStyle:{color:"#d8361b"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#d8361b"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#d8361b"},controlStyle:{color:"#d8361b",borderColor:"#d8361b"}},candlestick:{itemStyle:{color:"#f16b4c",color0:"#f7b4a9"},lineStyle:{width:1,color:"#d8361b",color0:"#d26666"},areaStyle:{color:"#d8361b",color0:"#d07e75"}},graph:{itemStyle:{color:"#d07e75"},linkStyle:{color:"#d8361b"}},chord:{padding:4,itemStyle:{color:"#d07e75",borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)"},lineStyle:{color:"rgba(128, 128, 128, 0.5)"},areaStyle:{color:"#d8361b"}},map:{itemStyle:{color:"#d8361b"},areaStyle:{color:"#d07e75"},label:{color:"#c12e34"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#f16b4c"],[.8,"#d8361b"],[1,"#99311c"]],width:8}}}};r.registerTheme("red",o)})}(Mb)),Mb}u5t();var Ob={},SV;function d5t(){return SV||(SV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(Ob,function(e,r){var n=function(i){typeof console<"u"&&console&&console.error&&console.error(i)};if(!r){n("ECharts is not Loaded");return}var a=["#8b1a2d","#a7314b","#e6004c","#ff8066","#8e5c4e","#ff1a66","#d6c582","#f0d4af"],o={color:a,title:{textStyle:{fontWeight:"normal",color:"#8b1a2d"}},visualMap:{color:["#8b1a2d","#a7314b"]},toolbox:{color:["#8b1a2d","#8b1a2d","#8b1a2d","#8b1a2d"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#8b1a2d",type:"dashed"},crossStyle:{color:"#8b1a2d"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#8b1a2d"},timeline:{lineStyle:{color:"#8b1a2d"},controlStyle:{color:"#8b1a2d",borderColor:"#8b1a2d"}},candlestick:{itemStyle:{color:"#a7314b",color0:"#d6c582"},lineStyle:{width:1,color:"#8e5c4e",color0:"#f0d4af"},areaStyle:{color:"#8b1a2d",color0:"#ff8066"}},map:{itemStyle:{color:"#8b1a2d"},areaStyle:{color:"#ff8066"},label:{color:"#c12e34"}},graph:{itemStyle:{color:"#ff8066"},linkStyle:{color:"#8b1a2d"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#a7314b"],[.8,"#8b1a2d"],[1,"#8e5c4e"]],width:8}}}};r.registerTheme("red-velvet",o)})}(Ob)),Ob}d5t();var $b={},xV;function f5t(){return xV||(xV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})($b,function(e,r){var n=function(i){typeof console<"u"&&console&&console.error&&console.error(i)};if(!r){n("ECharts is not Loaded");return}var a=["#408829","#68a54a","#a9cba2","#86b379","#397b29","#8abb6f","#759c6a","#bfd3b7"],o={color:a,title:{textStyle:{fontWeight:"normal",color:"#408829"}},visualMap:{color:["408829","#a9cba2"]},toolbox:{color:["#408829","#408829","#408829","#408829"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#408829",type:"dashed"},crossStyle:{color:"#408829"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(64,136,41,0.2)",handleColor:"#408829"},grid:{borderWidth:0},categoryAxis:{axisLine:{lineStyle:{color:"#408829"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#408829"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#408829"},controlStyle:{color:"#408829",borderColor:"#408829"}},candlestick:{itemStyle:{color:"#68a54a",color0:"#a9cba2"},lineStyle:{width:1,color:"#408829",color0:"#86b379"},areaStyle:{color:"#408829",color0:"#bfd3b7"}},graph:{itemStyle:{color:"#bfd3b7"},linkStyle:{color:"#408829"}},chord:{padding:4,itemStyle:{color:"#bfd3b7",borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)"},lineStyle:{color:"rgba(128, 128, 128, 0.5)"},areaStyle:{color:"#408829"}},map:{itemStyle:{color:"#ddd"},areaStyle:{color:"#408829"},label:{color:"#000"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#86b379"],[.8,"#68a54a"],[1,"#408829"]],width:8}}}};r.registerTheme("green",o)})}($b)),$b}f5t();var Ab={},CV;function h5t(){return CV||(CV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(Ab,function(e,r){var n=function(i){typeof console<"u"&&console&&console.error&&console.error(i)};if(!r){n("ECharts is not Loaded");return}var a=["#757575","#c7c7c7","#dadada","#8b8b8b","#b5b5b5","#e9e9e9"],o={color:a,title:{textStyle:{fontWeight:"normal",color:"#757575"}},dataRange:{color:["#636363","#dcdcdc"]},toolbox:{color:["#757575","#757575","#757575","#757575"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#757575",type:"dashed"},crossStyle:{color:"#757575"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(117,117,117,0.2)",handleColor:"#757575"},grid:{borderWidth:0},categoryAxis:{axisLine:{lineStyle:{color:"#757575"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#757575"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#757575"},controlStyle:{color:"#757575",borderColor:"#757575"}},candlestick:{itemStyle:{color:"#8b8b8b",color0:"#dadada"},lineStyle:{width:1,color:"#757575",color0:"#c7c7c7"},areaStyle:{color:"#757575",color0:"#e9e9e9"}},map:{itemStyle:{color:"#c7c7c7"},areaStyle:{color:"ddd"},label:{color:"#c12e34"}},graph:{itemStyle:{color:"#e9e9e9"},linkStyle:{color:"#757575"}},chord:{padding:4,itemStyle:{color:"#e9e9e9",borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)"},lineStyle:{color:"rgba(128, 128, 128, 0.5)"},areaStyle:{color:"#757575"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#b5b5b5"],[.8,"#757575"],[1,"#5c5c5c"]],width:8}}}};r.registerTheme("gray",o)})}(Ab)),Ab}h5t();var Pb={},TV;function p5t(){return TV||(TV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,Mn):r({},e.echarts)})(Pb,function(e,r){var n=function(l){typeof console<"u"&&console&&console.error&&console.error(l)};if(!r){n("ECharts is not Loaded");return}var a="#eee",o=function(){return{axisLine:{lineStyle:{color:a}},axisTick:{lineStyle:{color:a}},axisLabel:{color:a},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:a}}}},i=["#458c6b","#f2da87","#d9a86c","#d94436","#a62424","#76bc9b","#cce6da","#eeeeee"],s={color:i,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:a},crossStyle:{color:a}}},legend:{textStyle:{color:a}},title:{textStyle:{color:a}},toolbox:{iconStyle:{borderColor:a}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#458c6b"},timeline:{itemStyle:{color:i[1]},lineStyle:{color:a},controlStyle:{color:a,borderColor:a},label:{color:a}},timeAxis:o(),logAxis:o(),valueAxis:o(),categoryAxis:o(),line:{symbol:"circle"},graph:{color:i},gauge:{axisLine:{lineStyle:{color:[[.2,"#f2da87"],[.8,"#458c6b"],[1,"#a62424"]],width:8}}}};s.categoryAxis.splitLine.show=!1,r.registerTheme("dark-bold",s)})}(Pb)),Pb}p5t();Dn([uU,LRt,aLt,BLt,iNt,pLt,CLt,OLt,tLt,uU,zAt,zPt,tPt,JPt,HNt,yte]);const ic={chart:{maxHeight:"100%",maxWidth:"100%",width:"100%",height:"100%",overflow:"hidden",position:"relative"},saveImageButton:{position:"absolute",top:40,right:5,width:20,height:20,zIndex:2,opacity:.7,cursor:"pointer"},exportDataButton:{position:"absolute",top:70,right:5,width:20,height:20,zIndex:2,opacity:.7,cursor:"pointer"},copyButton:{position:"absolute",top:100,right:5,width:20,height:20,zIndex:2,opacity:.7,cursor:"pointer"},resetButton:{position:"absolute",top:10,right:25,zIndex:2,opacity:.7},legendButton:{position:"absolute",top:10,left:30,zIndex:2,opacity:.7},resetButtonIcon:{paddingTop:6}};let kV=null;function v5t(t,e,r){const a=(kV||(kV=document.createElement("canvas"))).getContext("2d");a.font=`${e||12}px ${r||"Microsoft YaHei"}`;const o=a.measureText(t);return Math.ceil(o.width)}class m5t extends k.Component{constructor(r){var n,a;super(r);ae(this,"divRef");ae(this,"echartsReact",null);ae(this,"divResetButton");ae(this,"selected",null);ae(this,"lastIds");ae(this,"chartOption");ae(this,"resetZoomAndTiltTimer",null);ae(this,"timerResize",null);ae(this,"updatePropertiesTimeout",null);ae(this,"updateDataTimer",null);ae(this,"debug",!1);ae(this,"mouseDown",!1);ae(this,"option",null);ae(this,"zr",null);ae(this,"zrMousemove",!1);ae(this,"zrIobInstalled",!1);ae(this,"updateProperties",r=>{var n,a;if(this.updatePropertiesTimeout=null,this.echartsReact&&typeof this.echartsReact.getEchartsInstance=="function"){const o=this.echartsReact.getEchartsInstance(),i=((a=(n=r.config)==null?void 0:n.l)==null?void 0:a.map(l=>l.id))||[];i.sort();const s=JSON.stringify(i)!==JSON.stringify(this.lastIds);s&&(this.lastIds=i,o.clear()),this.option=this.chartOption.getOption(r.data,r.config,r.actualValues,r.categories),this.applySelected(),this.debug&&console.log(`[ChartView ] [${new Date().toISOString()}] updateProperties: {min: ${this.option.xAxis[0].min}, ${this.option.xAxis[0].max}}`);try{o.setOption(this.option,s)}catch{console.error(`Cannot apply options: ${JSON.stringify(this.option)}`)}}});ae(this,"onResize",()=>{this.timerResize&&clearTimeout(this.timerResize),this.timerResize=setTimeout(()=>{this.timerResize=null,this.componentDidUpdate()})});ae(this,"onMouseMove",r=>{if(this.mouseDown){this.divResetButton.current&&this.divResetButton.current.style.display!=="block"&&(this.divResetButton.current.style.display="block");const n=this.chartOption.getHelperChartData();if(r.shiftKey){n.yMoved=!0;const a=n.lastY-(r.offsetY-n.padTop);n.lastY=r.offsetY-n.padTop;const o=this.state.chartHeight-n.padTop-n.padBottom;let i,s;n._yAxis.forEach(l=>{s=l.max-l.min,i=a*s/o,l.min-=i,l.max-=i}),this.setNewYAxis(n._yAxis)}else{n.xMoved=!0;const a=n.lastX-(r.offsetX-n.padLeft);n.lastX=r.offsetX-n.padLeft;const o=n.xMax-n.xMin,i=this.state.chartWidth-n.padRight-n.padLeft,s=Math.round(a*o/i);n.xMin+=s,n.xMax+=s,this.setNewRange()}}});ae(this,"onMouseDown",r=>{this.mouseDown=!0;const n=this.chartOption.getHelperChartData();n.lastX=r.offsetX,n.lastY=r.offsetY,n.yMoved=!1,n.xMoved=!1,n._yAxis=JSON.parse(JSON.stringify(n.yAxis)),this.zr&&!this.zrMousemove&&(this.zrMousemove=!0,this.zr.on("mousemove",this.onMouseMove)),this.props.config.live&&this.props.onRangeChange&&(console.log("Stop update"),this.props.onRangeChange({stopLive:!0}))});ae(this,"onMouseUp",()=>{this.mouseDown=!1,this.chartOption.getHelperChartData().xMoved&&this.setNewRange(!0),this.zr&&this.zrMousemove&&(this.zrMousemove=!1,this.zr.off("mousemove",this.onMouseMove))});ae(this,"onMouseWheel",r=>{const n=this.chartOption.getHelperChartData();if(r.shiftKey){const a=this.state.chartHeight-n.padBottom-n.padTop,i=(r.offsetY-n.padTop)/a,s=r.deltaY>0||r.deltaX>0?1.1:.9,l=JSON.parse(JSON.stringify(n.yAxis));n.yAxis.forEach(c=>{let d=c.max-c.min;const u=d;d*=s;const f=u-d;c.max+=f*(1-i),c.min-=f*i}),this.setNewYAxis(l)}else{let a=n.xMax-n.xMin;const o=this.state.chartWidth-n.padRight-n.padLeft,s=(r.offsetX-n.padLeft)/o,l=a,c=r.deltaY>0||r.deltaX>0?1.1:.9;a*=c;const d=l-a;n.xMax+=d*(1-s),n.xMin-=d*s,this.setNewRange(),this.updateDataTimer&&clearTimeout(this.updateDataTimer),this.updateDataTimer=setTimeout(()=>this.setNewRange(!0),1e3)}});ae(this,"onTouchStart",r=>{this.mouseDown=!0;const n=r.touches||r.originalEvent.touches;if(n){r.preventDefault(),r.stopImmediatePropagation();const a=this.chartOption.getHelperChartData();a.lastX=n[n.length-1].pageX,n.length>1?a.lastWidth=Math.round(Math.abs(n[0].pageX-n[1].pageX)):a.lastWidth=null}});ae(this,"onTouchEnd",r=>{this.mouseDown&&(r.stopImmediatePropagation(),r.preventDefault(),this.mouseDown=!1,this.setNewRange(!0))});ae(this,"onTouchMove",r=>{const n=r.touches||r.originalEvent.touches;if(!n)return;const a=this.chartOption.getHelperChartData(),o=n[n.length-1].pageX-a.padLeft;if(this.mouseDown)if(r.preventDefault(),r.stopImmediatePropagation(),this.divResetButton.current&&this.divResetButton.current.style.display!=="block"&&(this.divResetButton.current.style.display="block"),n.length>1){console.log(`touch move: ${n.length}`);const i=Math.round(Math.abs(n[0].pageX-n[1].pageX));if(a.lastWidth!==null&&i!==a.lastWidth){let s=a.xMax-a.xMin;const l=this.state.chartWidth-a.padRight-a.padLeft,c=i>a.lastWidth?1.05:.95,u=(n[0].pageX>n[1].pageX?n[1].pageX-a.padLeft+i/2:n[0].pageX-a.padLeft+i/2)/l,f=s;s*=c;const p=f-s;console.log(`Move: ${Math.round(p/1e3)} => ${Math.round(p*u/1e3)} -- ${Math.round(p*(1-u)/1e3)}`),a.xMax+=p*(1-u),a.xMin-=p*u,a.xMax=Math.round(a.xMax),a.xMin=Math.round(a.xMin),this.setNewRange()}a.lastWidth=i}else{const i=a.lastX-o,s=a.xMax-a.xMin,l=this.state.chartWidth-a.padRight-a.padLeft,c=Math.round(i*s/l);a.xMin+=c,a.xMax+=c,this.setNewRange()}a.lastX=o});this.state={chartHeight:null,chartWidth:null,excluded:[],timeFormat:window.localStorage.getItem("Chart.timeFormat")||"locale",data:null,exporting:!1,showExportDataDialog:!1,showLegendDialog:!1},this.divRef=k.createRef(),this.divResetButton=k.createRef(),De.locale(X.getLanguage()),this.lastIds=((a=(n=this.props.config)==null?void 0:n.l)==null?void 0:a.map(o=>o.id))||[],this.lastIds.sort(),this.chartOption=new Ew(De,this.props.themeType,v5t,void 0,this.props.compact)}componentDidMount(){window.addEventListener("resize",this.onResize)}componentWillUnmount(){this.resetZoomAndTiltTimer&&(clearTimeout(this.resetZoomAndTiltTimer),this.resetZoomAndTiltTimer=null),this.timerResize&&(clearTimeout(this.timerResize),this.timerResize=null),this.updatePropertiesTimeout&&(clearTimeout(this.updatePropertiesTimeout),this.updatePropertiesTimeout=null),this.updateDataTimer&&(clearTimeout(this.updateDataTimer),this.updateDataTimer=null),window.removeEventListener("resize",this.onResize)}UNSAFE_componentWillReceiveProps(r){r.data!==this.state.data&&(this.updatePropertiesTimeout&&clearTimeout(this.updatePropertiesTimeout),this.updatePropertiesTimeout=setTimeout(this.updateProperties,100,r))}setNewRange(r){var a;const n=this.chartOption.getHelperChartData();if(n.diff=n.xMax-n.xMin,n.withTime=n.diff<36e5*24*7,n.withSeconds=n.diff<6e4*30,console.log(`[ChartView ] [${new Date().toISOString()}] setNewRange: ${!!r}, {min: ${new Date(n.xMin).toString()}, max: ${new Date(n.xMax).toString()}}`),r)this.updateDataTimer&&(clearTimeout(this.updateDataTimer),this.updateDataTimer=null),this.props.onRangeChange&&this.props.onRangeChange({start:n.xMin,end:n.xMax}),this.props.config.resetZoom&&(this.resetZoomAndTiltTimer&&clearTimeout(this.resetZoomAndTiltTimer),this.resetZoomAndTiltTimer=setTimeout(()=>{this.resetZoomAndTiltTimer=null,this.divResetButton.current&&(this.divResetButton.current.style.display="none"),this.props.onRangeChange&&this.props.onRangeChange()},1e3*this.props.config.resetZoom));else{console.log(`[ChartView ] [${new Date().toISOString()}] setOption in setNewRange`),this.option.xAxis[0].min=n.xMin,this.option.xAxis[0].max=n.xMax;try{typeof((a=this.echartsReact)==null?void 0:a.getEchartsInstance)=="function"&&this.echartsReact.getEchartsInstance().setOption({xAxis:{min:n.xMin,max:n.xMax}})}catch{console.error(`Cannot apply options 1: ${JSON.stringify(this.option)}`)}}}setNewYAxis(r){var n;this.option.yAxis=r;try{typeof((n=this.echartsReact)==null?void 0:n.getEchartsInstance)=="function"&&this.echartsReact.getEchartsInstance().setOption({yAxis:r})}catch{console.error(`Cannot apply options 2: ${JSON.stringify(this.option)}`)}}installEventHandlers(){var a;this.zr=(a=this.echartsReact)!=null&&a.getEchartsInstance?this.echartsReact.getEchartsInstance().getZr():null;const r=this.divRef.current&&this.divRef.current.getElementsByClassName("echarts-for-react"),n=r==null?void 0:r[0];this.zr&&this.props.config.zoom&&!this.zrIobInstalled?(this.zrIobInstalled=!0,!this.option||!this.option.useCanvas?(this.zr.on("mousedown",this.onMouseDown),this.zr.on("mouseup",this.onMouseUp),this.zr.on("mousewheel",this.onMouseWheel)):n&&(n.addEventListener("touchstart",this.onTouchStart,!1),n.addEventListener("touchend",this.onTouchEnd,!1),n.addEventListener("touchmove",this.onTouchMove,!1))):this.zr&&!this.props.config.zoom&&this.zrIobInstalled&&(this.zrIobInstalled=!1,this.option||!this.option.useCanvas?(this.zr.off("mousedown",this.onMouseDown),this.zr.off("mouseup",this.onMouseUp),this.zr.off("mousewheel",this.onMouseWheel),this.zr&&this.zrMousemove&&(this.zrMousemove=!1,this.zr.off("mousemove",this.onMouseMove))):n&&(n.removeEventListener("touchstart",this.onTouchStart,!1),n.removeEventListener("touchend",this.onTouchEnd,!1),n.removeEventListener("touchmove",this.onTouchMove,!1)))}applySelected(){this.props.config.legend==="dialog"?(this.option.legend={data:this.props.config.l.map(r=>r.name),show:!1,selected:{}},this.props.config.l.forEach(r=>this.option.legend.selected[r.name]=!this.state.excluded.includes(r.id))):this.selected&&this.option.legend&&Object.keys(this.selected).forEach(r=>this.option.legend.selected[r]=this.selected[r])}renderChart(){if(this.props.data){this.option=this.option||this.chartOption.getOption(this.props.data,this.props.config,this.props.actualValues,this.props.categories);const r=!!this.props.config.l.find(n=>n.chartType==="bar"||n.chartType==="polar");return this.props.config.title?window.document.title=this.props.config.title:this.props.config.presetId&&(window.document.title=this.props.config.presetId),this.debug&&console.log(`[ChartView ] [${new Date().toISOString()}] render chart`),this.applySelected(),H.jsx(kCt,{ref:n=>{this.echartsReact=n},echarts:gAt,option:this.option,notMerge:!0,lazyUpdate:!0,theme:this.option.theme,style:{height:`${this.state.chartHeight}px`,width:"100%"},opts:this.option&&this.option.useCanvas?void 0:{renderer:"svg"},onEvents:{legendselectchanged:n=>{this.selected=JSON.parse(JSON.stringify(n.selected))},rendered:()=>!this.props.compact&&this.props.config.zoom&&!r&&this.installEventHandlers()}})}return H.jsx(zP,{})}componentDidUpdate(){if(this.divRef.current){const r=this.props.config.noBorder!=="noborder"&&parseFloat(this.props.config.border_width)||0,n=parseFloat(this.props.config.border_padding)||0,a=this.divRef.current.offsetHeight-(r+n)*2;if(this.state.chartHeight!==a){const o=this.divRef.current.offsetWidth-(r+n)*2;setTimeout(()=>this.setState({chartHeight:a,chartWidth:o}),10)}}}renderResetButton(){return H.jsx(nl,{ref:this.divResetButton,size:"small",color:"default",style:{...ic.resetButton,display:"none"},title:X.t("Reset pan and zoom"),onClick:()=>{this.divResetButton.current&&(this.divResetButton.current.style.display="none"),this.props.onRangeChange&&this.props.onRangeChange()},children:H.jsx(zbt,{style:ic.resetButtonIcon})})}renderSaveImageButton(){return this.props.config.export?H.jsx(Nbt,{color:this.props.config.exportColor||"default",style:ic.saveImageButton,title:this.option&&this.option.useCanvas?X.t("Save chart as png"):X.t("Save chart as svg"),onClick:()=>{var r,n;if(this.echartsReact&&typeof this.echartsReact.getEchartsInstance=="function"){let o=this.echartsReact.getEchartsInstance().getDataURL({pixelRatio:2,backgroundColor:this.props.config.window_bg||(this.props.themeType==="dark"?"#000":"#FFF")});if(!this.option||!this.option.useCanvas)try{const d=o.split(",");let u=decodeURIComponent(d[1]);u=u.replace('fill="none"',`fill="${this.props.config.window_bg||(this.props.themeType==="dark"?"#000":"#FFF")}"`),u=u.replace('fill="transparent"',`fill="${this.props.config.window_bg||(this.props.themeType==="dark"?"#000":"#FFF")}"`),o=`${d[0]},${encodeURIComponent(u)}`}catch(d){console.warn(`cannot attach background: ${d}`)}const i=document.createElement("a");document.body.appendChild(i),i.href=o,i.target="_self";let s;this.props.config.l.length===1?s=this.props.config.l[0].name:s="chart";const l=this.option,c=l==null?void 0:l.series;if((n=(r=c==null?void 0:c[0])==null?void 0:r.data)!=null&&n.length){const d=new Date(l.xAxis[0].max||c[0].data[c[0].data.length-1].value[0]);try{i.download=`${d.getFullYear()}_${(d.getMonth()+1).toString().padStart(2,"0")}_${d.getDate().toString().padStart(2,"0")}_${d.getHours().toString().padStart(2,"0")}_${d.getMinutes().toString().padStart(2,"0")}_${s}.${this.option&&this.option.useCanvas?"png":"svg"}`,i.click()}catch(u){console.error(`Cannot access download: ${u}`),window.alert(X.t("Unfortunately your browser does not support this feature"))}}else window.alert(X.t("No data found"))}}}):null}exportData(){const r=this.chartOption.getHelperChartData();this.setState({exporting:!0},()=>this.props.exportData(r.xMin,r.xMax,this.state.excluded).then(n=>{const a=document.createElement("a");document.body.appendChild(a);const o=["time"],i=[];Object.keys(n).forEach((u,f)=>{o.push(u),n[u].forEach(p=>{const m=[p.ts];m[f+1]=p.val,i.push(m)})}),i.sort((u,f)=>u[0]-f[0]);for(let u=0;u{let f;if(l==="iso")f=new Date(u.shift()).toISOString();else if(l==="locale"){const p=new Date(u.shift());f=`${p.toLocaleDateString()} ${p.toLocaleTimeString()}.${p.getMilliseconds().toString().padStart(3,"0")}`}else f=u.shift().toString();s.push(`${f};${u.join(";")}`)}),a.href=`data:text/plain;charset=utf-8,${o.join(";")} +${s.join(` +`)}`,a.target="_self";let c;this.props.config.l.length===1?c=this.props.config.l[0].name:c="chart";const d=new Date(r.xMin);try{a.download=`${d.getFullYear()}_${(d.getMonth()+1).toString().padStart(2,"0")}_${d.getDate().toString().padStart(2,"0")}_${d.getHours().toString().padStart(2,"0")}_${d.getMinutes().toString().padStart(2,"0")}_${c}.csv`,a.click()}catch(u){console.error(`Cannot access download: ${u}`),window.alert(X.t("Unfortunately your browser does not support this feature"))}this.setState({exporting:!1})}))}renderExportDataButton(){return this.props.config.exportData?H.jsx(Fbt,{color:this.props.config.exportDataColor||"default",style:{...ic.exportDataButton,opacity:this.state.exporting?.5:1},title:X.t("Export raw data as CSV"),onClick:()=>{this.state.exporting||(this.props.config.l.length===1?this.exportData():this.setState({showExportDataDialog:!0}))}}):null}renderLegendDialog(){var r,n;return this.props.config.legend!=="dialog"?null:H.jsxs(H.Fragment,{children:[H.jsx(nl,{size:"small",color:"default",style:{...ic.legendButton,left:((n=(r=this.option)==null?void 0:r.grid)==null?void 0:n.left)||0},title:X.t("Select lines"),onClick:()=>this.setState({showLegendDialog:!0}),children:H.jsx(Ibt,{style:ic.resetButtonIcon})}),this.state.showLegendDialog?H.jsxs(_i,{open:!0,onClose:()=>this.setState({showLegendDialog:!1}),children:[H.jsx(wi,{children:X.t("Select lines to show")}),H.jsxs(bi,{children:[H.jsx(At,{control:H.jsx(vn,{checked:!this.state.excluded.length,indeterminate:this.state.excluded.length&&this.state.excluded.length!==this.props.config.l.length,onChange:()=>{this.state.excluded.length?this.setState({excluded:[]}):this.setState({excluded:this.props.config.l.map(a=>a.id)})}}),label:this.state.excluded.length!==this.props.config.l.length?X.t("Select all"):X.t("Unselect all")}),this.props.config.l.map((a,o)=>H.jsxs(Rr,{onClick:()=>{const i=[...this.state.excluded],s=i.indexOf(a.id);s===-1?i.push(a.id):i.splice(s,1),this.setState({excluded:i})},children:[H.jsx(vn,{checked:!this.state.excluded.includes(a==null?void 0:a.id)}),H.jsxs("div",{children:[H.jsx("div",{children:(a==null?void 0:a.name)||(a==null?void 0:a.id)}),H.jsx("div",{style:{opacity:.7,fontStyle:"italic",fontSize:"smaller"},children:a!=null&&a.name?a==null?void 0:a.id:null})]})]},o))]}),H.jsx(yi,{children:H.jsx(Tr,{variant:"contained",color:"grey",onClick:()=>this.setState({showLegendDialog:!1}),startIcon:H.jsx("span",{style:{fontSize:14},children:"X"}),children:X.t("Close")})})]}):null]})}renderExportDataDialog(){return this.state.showExportDataDialog?H.jsxs(_i,{open:!0,onClose:()=>this.setState({showExportDataDialog:!1}),children:[H.jsx(wi,{children:X.t("Select lines for export")}),H.jsxs(bi,{children:[H.jsxs(ju,{fullWidth:!0,variant:"standard",children:[H.jsx(Fm,{children:X.t("Time format")}),H.jsxs(ii,{value:this.state.timeFormat,onChange:r=>{window.localStorage.setItem("Chart.timeFormat",r.target.value),this.setState({timeFormat:r.target.value})},children:[H.jsx(Rr,{value:"iso",children:"ISO"}),H.jsx(Rr,{value:"locale",children:X.t("Browser format")}),H.jsx(Rr,{value:"ts",children:X.t("Time stamp in milliseconds")})]})]}),H.jsx(At,{control:H.jsx(vn,{checked:!this.state.excluded.length,indeterminate:this.state.excluded.length&&this.state.excluded.length!==this.props.config.l.length,onChange:()=>{this.state.excluded.length?this.setState({excluded:[]}):this.setState({excluded:this.props.config.l.map(r=>r.id)})}}),label:this.state.excluded.length!==this.props.config.l.length?X.t("Select all"):X.t("Unselect all")}),this.props.config.l.map((r,n)=>H.jsxs(Rr,{onClick:()=>{const a=[...this.state.excluded],o=a.indexOf(r.id);o===-1?a.push(r.id):a.splice(o,1),this.setState({excluded:a})},children:[H.jsx(vn,{checked:!this.state.excluded.includes(r==null?void 0:r.id)}),H.jsxs("div",{children:[H.jsx("div",{children:(r==null?void 0:r.name)||(r==null?void 0:r.id)}),H.jsx("div",{style:{opacity:.7,fontStyle:"italic",fontSize:"smaller"},children:r!=null&&r.name?r==null?void 0:r.id:null})]})]},n))]}),H.jsxs(yi,{children:[H.jsx(Tr,{variant:"contained",color:"primary",disabled:this.state.excluded.length===this.props.config.l.length,startIcon:H.jsx(Rbt,{}),onClick:()=>{this.setState({showExportDataDialog:!1}),this.exportData()},children:X.t("Export")}),H.jsx(Tr,{variant:"contained",color:"grey",onClick:()=>this.setState({showExportDataDialog:!1}),startIcon:H.jsx("span",{style:{fontSize:14},children:"X"}),children:X.t("Cancel")})]})]}):null}renderDevCopyButton(){return window.location.port==="3000"?H.jsx(Lbt,{color:"default",style:ic.copyButton,title:"Copy option to clipboard",onClick:()=>Nt.copyToClipboard(JSON.stringify(this.option,null,2))}):null}render(){this.divRef.current||setTimeout(()=>this.forceUpdate(),10);const r=this.props.config.noBorder!=="noborder"&&parseFloat(this.props.config.border_width)||0,n=parseFloat(this.props.config.border_padding)||0;return H.jsxs("div",{ref:this.divRef,style:{...ic.chart,borderWidth:r,width:r||n?`calc(100% - ${(r+n)*2+1}px)`:"100%",height:r||n?`calc(100% - ${(r+n)*2}px)`:"100%",background:this.props.config.noBackground?void 0:this.props.config.window_bg||void 0,borderColor:this.props.config.noBorder!=="noborder"&&this.props.config.border_color||void 0,borderStyle:this.props.config.noBorder!=="noborder"&&r?this.props.config.border_style||"solid":"hidden",padding:n||0},children:[this.renderSaveImageButton(),this.renderExportDataDialog(),this.renderExportDataButton(),this.renderResetButton(),this.renderDevCopyButton(),this.state.chartHeight!==null?this.renderChart():null,this.option?this.renderLegendDialog():null]})}}const g5t=o_()(m5t),EV={root:{width:"100%",height:"100%",position:"relative"},progress:{position:"absolute",top:0,left:0,right:0,display:"block"}};class Dw extends R.Component{constructor(r){super(r);ae(this,"socket");ae(this,"chartData");ae(this,"inEdit");ae(this,"divRef");ae(this,"progressRef");ae(this,"progressShown");ae(this,"adminCorrectTimeout",null);ae(this,"onReceiveMessage",r=>{if(r&&r.data!=="chartReady")try{const n=JSON.parse(r.data);this.chartData?this.chartData.setConfig(n):this.createChartData(n)}catch{console.log(`Cannot parse ${r.data}`)}});const n=Dw.createTheme(),a=Nt.parseQuery(window.location.search),o=Nt.parseQuery((window.location.hash||"").replace(/^#/,""));this.state={connected:!1,seriesData:null,categories:null,actualValues:null,noLoader:!!a.noLoader||!!o.noLoader||!1,theme:n,themeType:Dw.getThemeType(n),noBackground:!!a.noBG||!!o.noBG||!1,compact:!!a.compact||!!o.compact||!1,dataLoaded:!1},this.inEdit=a.edit==="1"||a.edit===1||a.edit===!0||a.edit==="true"||o.edit==="1"||o.edit===1||o.edit===!0||o.edit==="true",this.divRef=k.createRef(),this.progressRef=k.createRef(),this.progressShown=!0;const i={en:C$e,de:TLe,ru:kFe,pt:Eje,nl:DUe,fr:MXe,it:Aet,es:Pot,pl:Iut,uk:Rvt,"zh-cn":L0t},s={en:B0t,de:U0t,ru:q0t,pt:Z0t,nl:rbt,fr:ibt,it:ubt,es:pbt,pl:_bt,uk:Sbt,"zh-cn":kbt};Object.keys(i).forEach(l=>i[l]=Object.assign(i[l],s[l])),X.setTranslations(i),window.socketUrl&&window.socketUrl.startsWith(":")&&(window.socketUrl=`${window.location.protocol}//${window.location.hostname}${window.socketUrl}`),window.location.port==="8082"&&window.location.pathname.includes("/adapter/echarts/chart/")&&(this.adminCorrectTimeout=setTimeout(()=>{this.adminCorrectTimeout=null,window.location.href=window.location.href.replace("/adapter/echarts/chart/","/echarts/")},2e3)),this.socket=new uc({name:window.adapterName,onProgress:l=>{l===Vi.CONNECTING?this.state.seriesData?(this.divRef.current&&(this.divRef.current.style.opacity="0.5"),this.progressRef.current&&(this.progressRef.current.style.display="block")):this.setState({connected:!1}):l===Vi.READY?(this.setState({connected:!0}),this.restoreAfterReconnection()):(this.setState({connected:!0}),this.restoreAfterReconnection())},onReady:()=>{if(this.adminCorrectTimeout&&(clearTimeout(this.adminCorrectTimeout),this.adminCorrectTimeout=null),X.setLanguage(this.socket.systemLang),this.inEdit){if(window.addEventListener("message",this.onReceiveMessage),window.self!==window.parent)try{window.parent.postMessage("chartReady","*")}catch(l){console.warn("Cannot send ready event to parent window"),console.error(l)}}else this.createChartData()},onError:l=>{console.error(l),this.showError(l)}})}restoreAfterReconnection(){this.divRef.current&&(this.divRef.current.style.opacity="1"),this.progressRef.current&&!this.progressShown&&(this.progressRef.current.style.display="none"),this.state.seriesData&&!this.state.seriesData.find(r=>r.length)&&this.chartData.setNewRange()}createChartData(r){this.chartData=new xa(this.socket,r,{compact:this.state.compact}),this.chartData.onError(n=>{n.toString().includes(qs.NOT_CONNECTED)?(this.divRef.current&&(this.divRef.current.style.opacity="0.5"),this.progressRef.current&&(this.progressRef.current.style.display="block")):this.showError(X.t(n.toString()))}),this.chartData.onReading(n=>this.showProgress(n)),this.chartData.onUpdate((n,a,o)=>{const i={connected:!0,dataLoaded:!0};n&&(i.seriesData=n,i.categories=o),a&&(i.actualValues=a),this.setState(i,()=>this.showProgress(!1))})}showProgress(r){this.progressShown=r,this.progressRef.current&&(this.progressRef.current.style.display=r?"block":"none")}componentWillUnmount(){this.inEdit&&window.removeEventListener("message",this.onReceiveMessage,!1),this.chartData&&this.chartData.destroy()}static createTheme(r){return qge(Nt.getThemeName(r))}static getThemeType(r){return r.palette.mode}showError(r){this.setState({errorText:r})}renderError(){return this.state.errorText?H.jsx(MG,{text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}componentDidUpdate(){!this.progressShown&&this.progressRef.current&&this.progressRef.current.style.display!=="none"&&(this.progressRef.current.style.display="none")}render(){var a;if(!this.state.connected||!this.state.seriesData)return this.state.noLoader?null:H.jsx(W4,{injectFirst:!0,children:H.jsx(uF,{theme:this.state.theme,children:H.jsx(E_e,{themeType:this.state.themeType})})});const r=this.chartData.getConfig(),n=Sde(JSON.stringify((((a=r==null?void 0:r.l)==null?void 0:a.map(o=>o.id))||[]).sort())).toString();return this.state.seriesData&&r.debug&&console.log(`seriesData: ${JSON.stringify(this.state.seriesData)}`),H.jsx(W4,{injectFirst:!0,children:H.jsx(uF,{theme:this.state.theme,children:H.jsxs("div",{ref:this.divRef,style:{...EV.root,width:r.width,height:r.height,background:this.state.noBackground||r.noBackground?void 0:this.state.theme.palette.background.default,color:this.state.theme.palette.text.primary},children:[H.jsx(zP,{ref:this.progressRef,style:EV.progress}),H.jsx(g5t,{socket:this.socket,t:X.t,noAnimation:this.state.noLoader,data:this.state.seriesData,actualValues:this.state.actualValues,categories:this.state.categories||[],config:r,compact:this.state.compact,lang:X.getLanguage(),themeType:this.state.themeType,onRangeChange:o=>this.chartData.setNewRange(o),exportData:(o,i,s)=>this.chartData.exportData(o,i,s)},n),this.renderError()]})})})}}const _5t=o_()(Dw);window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function y5t(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const b5t="echarts.index",w5t="1.9.5",S5t={"@types/crypto-js":"^4.2.2","@vitejs/plugin-react":"^4.3.4","crypto-js":"^4.2.0",echarts:"^5.6.0","echarts-for-react":"^3.0.2",moment:"^2.30.1","react-i18next":"^15.4.0","react-icons":"^5.4.0",typescript:"^5.7.3"},x5t=".",C5t="http://localhost:8081",T5t={start:"vite dev --config vite.config.mjs --host",build:"vite build --config vite.config.mjs",lint:"eslint -c eslint.config.mjs"},k5t={extends:"react-app"},E5t=[">0.2%","not dead","not ie <= 11","not op_mini all"],bte={name:b5t,version:w5t,private:!0,dependencies:S5t,homepage:x5t,_proxy:C5t,scripts:T5t,eslintConfig:k5t,browserslist:E5t};window.adapterName="echarts-show";window.sentryDSN="https://cf39325071144219aa91bb3510addcdf@sentry.iobroker.net/95";console.log(`iobroker.${window.adapterName}@${bte.version}"`);window.location.host!=="localhost:3000"&&Fse({dsn:window.sentryDSN,release:`iobroker.${window.adapterName}@${bte.version}`,integrations:[KV()],beforeSend(t){let e=!1;return t.exception&&t.exception.values&&t.exception.values[0]&&(t.exception.values[0].type==="NS_ERROR_FAILURE"||t.exception.values[0].value&&(t.exception.values[0].value.includes("Microsoft YaHei")||t.exception.values[0].value==="ResizeObserver loop completed with undelivered notifications."||t.exception.values[0].value==="undefined is not an object (evaluating 't.get')"||t.exception.values[0].value==="Cannot read property 'get' of undefined"||t.exception.values[0].value==="this.painter is null"||t.exception.values[0].value.includes("ioBroker is not connected")||t.exception.values[0].value==="Cannot read property 'getDisplayList' of null"))&&(e=!0),e?null:t}});const DV=document.getElementById("root");DV&&kne.createRoot(DV).render(H.jsx(_5t,{}));y5t()});export default D5t(); diff --git a/admin/chart/index.html b/admin/chart/index.html index 3c01193e..8ff2ab04 100644 --- a/admin/chart/index.html +++ b/admin/chart/index.html @@ -20,7 +20,7 @@ /> Echarts [ioBroker] - + diff --git a/www/preview/assets/index-CgqD6xas.js b/admin/preview/assets/index-pOd0B7Ce.js similarity index 87% rename from www/preview/assets/index-CgqD6xas.js rename to admin/preview/assets/index-pOd0B7Ce.js index 44f622b4..2857c8b7 100644 --- a/www/preview/assets/index-CgqD6xas.js +++ b/admin/preview/assets/index-pOd0B7Ce.js @@ -1,4 +1,4 @@ -var kA=Object.defineProperty;var CA=(t,e,r)=>e in t?kA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var xe=(t,e,r)=>CA(t,typeof e!="symbol"?e+"":e,r);function $A(t,e){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var Ld=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ha(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Lm={exports:{}},yl={},zm={exports:{}},mt={};/** +var kA=Object.defineProperty;var CA=(t,e,r)=>e in t?kA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var we=(t,e,r)=>CA(t,typeof e!="symbol"?e+"":e,r);function $A(t,e){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var Ld=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ha(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Lm={exports:{}},yl={},Fm={exports:{}},mt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var kA=Object.defineProperty;var CA=(t,e,r)=>e in t?kA(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var yS;function EA(){if(yS)return mt;yS=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.iterator;function _(I){return I===null||typeof I!="object"?null:(I=d&&I[d]||I["@@iterator"],typeof I=="function"?I:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function S(I,Q,me){this.props=I,this.context=Q,this.refs=w,this.updater=me||g}S.prototype.isReactComponent={},S.prototype.setState=function(I,Q){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,Q,"setState")},S.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function k(){}k.prototype=S.prototype;function D(I,Q,me){this.props=I,this.context=Q,this.refs=w,this.updater=me||g}var C=D.prototype=new k;C.constructor=D,b(C,S.prototype),C.isPureReactComponent=!0;var O=Array.isArray,M=Object.prototype.hasOwnProperty,T={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function j(I,Q,me){var pe,ge={},Ce=null,Re=null;if(Q!=null)for(pe in Q.ref!==void 0&&(Re=Q.ref),Q.key!==void 0&&(Ce=""+Q.key),Q)M.call(Q,pe)&&!P.hasOwnProperty(pe)&&(ge[pe]=Q[pe]);var Te=arguments.length-2;if(Te===1)ge.children=me;else if(1e in t?kA(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var bS;function TA(){if(bS)return yl;bS=1;var t=js(),e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,u,f){var h,d={},_=null,g=null;f!==void 0&&(_=""+f),u.key!==void 0&&(_=""+u.key),u.ref!==void 0&&(g=u.ref);for(h in u)n.call(u,h)&&!a.hasOwnProperty(h)&&(d[h]=u[h]);if(l&&l.defaultProps)for(h in u=l.defaultProps,u)d[h]===void 0&&(d[h]=u[h]);return{$$typeof:e,type:l,key:_,ref:g,props:d,_owner:o.current}}return yl.Fragment=r,yl.jsx=i,yl.jsxs=i,yl}var wS;function OA(){return wS||(wS=1,Lm.exports=TA()),Lm.exports}var R=OA(),zd={},Fm={exports:{}},Zr={},Bm={exports:{}},Wm={};/** + */var bS;function TA(){if(bS)return yl;bS=1;var t=js(),e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,u,f){var h,d={},_=null,g=null;f!==void 0&&(_=""+f),u.key!==void 0&&(_=""+u.key),u.ref!==void 0&&(g=u.ref);for(h in u)n.call(u,h)&&!a.hasOwnProperty(h)&&(d[h]=u[h]);if(l&&l.defaultProps)for(h in u=l.defaultProps,u)d[h]===void 0&&(d[h]=u[h]);return{$$typeof:e,type:l,key:_,ref:g,props:d,_owner:o.current}}return yl.Fragment=r,yl.jsx=i,yl.jsxs=i,yl}var wS;function OA(){return wS||(wS=1,Lm.exports=TA()),Lm.exports}var R=OA(),Fd={},zm={exports:{}},Zr={},Bm={exports:{}},Wm={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var kA=Object.defineProperty;var CA=(t,e,r)=>e in t?kA(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var xS;function DA(){return xS||(xS=1,function(t){function e(Y,X){var re=Y.length;Y.push(X);e:for(;0>>1,Q=Y[I];if(0>>1;Io(ge,re))Ceo(Re,ge)?(Y[I]=Re,Y[Ce]=re,I=Ce):(Y[I]=ge,Y[pe]=re,I=pe);else if(Ceo(Re,re))Y[I]=Re,Y[Ce]=re,I=Ce;else break e}}return X}function o(Y,X){var re=Y.sortIndex-X.sortIndex;return re!==0?re:Y.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();t.unstable_now=function(){return i.now()-l}}var u=[],f=[],h=1,d=null,_=3,g=!1,b=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(Y){for(var X=r(f);X!==null;){if(X.callback===null)n(f);else if(X.startTime<=Y)n(f),X.sortIndex=X.expirationTime,e(u,X);else break;X=r(f)}}function O(Y){if(w=!1,C(Y),!b)if(r(u)!==null)b=!0,K(M);else{var X=r(f);X!==null&&ee(O,X.startTime-Y)}}function M(Y,X){b=!1,w&&(w=!1,k(j),j=-1),g=!0;var re=_;try{for(C(X),d=r(u);d!==null&&(!(d.expirationTime>X)||Y&&!L());){var I=d.callback;if(typeof I=="function"){d.callback=null,_=d.priorityLevel;var Q=I(d.expirationTime<=X);X=t.unstable_now(),typeof Q=="function"?d.callback=Q:d===r(u)&&n(u),C(X)}else n(u);d=r(u)}if(d!==null)var me=!0;else{var pe=r(f);pe!==null&&ee(O,pe.startTime-X),me=!1}return me}finally{d=null,_=re,g=!1}}var T=!1,P=null,j=-1,z=5,E=-1;function L(){return!(t.unstable_now()-EY||125I?(Y.sortIndex=re,e(f,Y),r(u)===null&&Y===r(f)&&(w?(k(j),j=-1):w=!0,ee(O,re-I))):(Y.sortIndex=Q,e(u,Y),b||g||(b=!0,K(M))),Y},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(Y){var X=_;return function(){var re=_;_=X;try{return Y.apply(this,arguments)}finally{_=re}}}}(Wm)),Wm}var SS;function MA(){return SS||(SS=1,Bm.exports=DA()),Bm.exports}/** + */var xS;function DA(){return xS||(xS=1,function(t){function e(Y,X){var re=Y.length;Y.push(X);e:for(;0>>1,Q=Y[I];if(0>>1;Io(ge,re))Ceo(Re,ge)?(Y[I]=Re,Y[Ce]=re,I=Ce):(Y[I]=ge,Y[pe]=re,I=pe);else if(Ceo(Re,re))Y[I]=Re,Y[Ce]=re,I=Ce;else break e}}return X}function o(Y,X){var re=Y.sortIndex-X.sortIndex;return re!==0?re:Y.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();t.unstable_now=function(){return i.now()-l}}var u=[],f=[],h=1,d=null,_=3,g=!1,b=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(Y){for(var X=r(f);X!==null;){if(X.callback===null)n(f);else if(X.startTime<=Y)n(f),X.sortIndex=X.expirationTime,e(u,X);else break;X=r(f)}}function O(Y){if(w=!1,C(Y),!b)if(r(u)!==null)b=!0,K(M);else{var X=r(f);X!==null&&ee(O,X.startTime-Y)}}function M(Y,X){b=!1,w&&(w=!1,k(j),j=-1),g=!0;var re=_;try{for(C(X),d=r(u);d!==null&&(!(d.expirationTime>X)||Y&&!L());){var I=d.callback;if(typeof I=="function"){d.callback=null,_=d.priorityLevel;var Q=I(d.expirationTime<=X);X=t.unstable_now(),typeof Q=="function"?d.callback=Q:d===r(u)&&n(u),C(X)}else n(u);d=r(u)}if(d!==null)var me=!0;else{var pe=r(f);pe!==null&&ee(O,pe.startTime-X),me=!1}return me}finally{d=null,_=re,g=!1}}var T=!1,P=null,j=-1,F=5,E=-1;function L(){return!(t.unstable_now()-EY||125I?(Y.sortIndex=re,e(f,Y),r(u)===null&&Y===r(f)&&(w?(k(j),j=-1):w=!0,ee(O,re-I))):(Y.sortIndex=Q,e(u,Y),b||g||(b=!0,K(M))),Y},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(Y){var X=_;return function(){var re=_;_=X;try{return Y.apply(this,arguments)}finally{_=re}}}}(Wm)),Wm}var SS;function MA(){return SS||(SS=1,Bm.exports=DA()),Bm.exports}/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ var kA=Object.defineProperty;var CA=(t,e,r)=>e in t?kA(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var kS;function NA(){if(kS)return Zr;kS=1;var t=js(),e=MA();function r(s){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+s,p=1;p"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},d={};function _(s){return u.call(d,s)?!0:u.call(h,s)?!1:f.test(s)?d[s]=!0:(h[s]=!0,!1)}function g(s,c,p,m){if(p!==null&&p.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return m?!1:p!==null?!p.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function b(s,c,p,m){if(c===null||typeof c>"u"||g(s,c,p,m))return!0;if(m)return!1;if(p!==null)switch(p.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function w(s,c,p,m,v,x,N){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=m,this.attributeNamespace=v,this.mustUseProperty=p,this.propertyName=s,this.type=c,this.sanitizeURL=x,this.removeEmptyString=N}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){S[s]=new w(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];S[c]=new w(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){S[s]=new w(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){S[s]=new w(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){S[s]=new w(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){S[s]=new w(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){S[s]=new w(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){S[s]=new w(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){S[s]=new w(s,5,!1,s.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function D(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var c=s.replace(k,D);S[c]=new w(c,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var c=s.replace(k,D);S[c]=new w(c,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(k,D);S[c]=new w(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){S[s]=new w(s,1,!1,s.toLowerCase(),null,!1,!1)}),S.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){S[s]=new w(s,1,!1,s.toLowerCase(),null,!0,!0)});function C(s,c,p,m){var v=S.hasOwnProperty(c)?S[c]:null;(v!==null?v.type!==0:m||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},d={};function _(s){return u.call(d,s)?!0:u.call(h,s)?!1:f.test(s)?d[s]=!0:(h[s]=!0,!1)}function g(s,c,p,m){if(p!==null&&p.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return m?!1:p!==null?!p.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function b(s,c,p,m){if(c===null||typeof c>"u"||g(s,c,p,m))return!0;if(m)return!1;if(p!==null)switch(p.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function w(s,c,p,m,v,x,N){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=m,this.attributeNamespace=v,this.mustUseProperty=p,this.propertyName=s,this.type=c,this.sanitizeURL=x,this.removeEmptyString=N}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){S[s]=new w(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];S[c]=new w(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){S[s]=new w(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){S[s]=new w(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){S[s]=new w(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){S[s]=new w(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){S[s]=new w(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){S[s]=new w(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){S[s]=new w(s,5,!1,s.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function D(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var c=s.replace(k,D);S[c]=new w(c,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var c=s.replace(k,D);S[c]=new w(c,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(k,D);S[c]=new w(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){S[s]=new w(s,1,!1,s.toLowerCase(),null,!1,!1)}),S.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){S[s]=new w(s,1,!1,s.toLowerCase(),null,!0,!0)});function C(s,c,p,m){var v=S.hasOwnProperty(c)?S[c]:null;(v!==null?v.type!==0:m||!(2A||v[N]!==x[A]){var W=` -`+v[N].replace(" at new "," at ");return s.displayName&&W.includes("")&&(W=W.replace("",s.displayName)),W}while(1<=N&&0<=A);break}}}finally{me=!1,Error.prepareStackTrace=p}return(s=s?s.displayName||s.name:"")?Q(s):""}function ge(s){switch(s.tag){case 5:return Q(s.type);case 16:return Q("Lazy");case 13:return Q("Suspense");case 19:return Q("SuspenseList");case 0:case 2:case 15:return s=pe(s.type,!1),s;case 11:return s=pe(s.type.render,!1),s;case 1:return s=pe(s.type,!0),s;default:return""}}function Ce(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case P:return"Fragment";case T:return"Portal";case z:return"Profiler";case j:return"StrictMode";case B:return"Suspense";case F:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case L:return(s.displayName||"Context")+".Consumer";case E:return(s._context.displayName||"Context")+".Provider";case G:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case H:return c=s.displayName||null,c!==null?c:Ce(s.type)||"Memo";case K:c=s._payload,s=s._init;try{return Ce(s(c))}catch{}}return null}function Re(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ce(c);case 8:return c===j?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function Te(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Pe(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Oe(s){var c=Pe(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),m=""+s[c];if(!s.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var v=p.get,x=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return v.call(this)},set:function(N){m=""+N,x.call(this,N)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return m},setValue:function(N){m=""+N},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Fe(s){s._valueTracker||(s._valueTracker=Oe(s))}function Me(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),m="";return s&&(m=Pe(s)?s.checked?"true":"false":s.value),s=m,s!==p?(c.setValue(s),!0):!1}function Be(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function We(s,c){var p=c.checked;return re({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??s._wrapperState.initialChecked})}function De(s,c){var p=c.defaultValue==null?"":c.defaultValue,m=c.checked!=null?c.checked:c.defaultChecked;p=Te(c.value!=null?c.value:p),s._wrapperState={initialChecked:m,initialValue:p,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function pt(s,c){c=c.checked,c!=null&&C(s,"checked",c,!1)}function ce(s,c){pt(s,c);var p=Te(c.value),m=c.type;if(p!=null)m==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=""+p):s.value!==""+p&&(s.value=""+p);else if(m==="submit"||m==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?st(s,c.type,p):c.hasOwnProperty("defaultValue")&&st(s,c.type,Te(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function qe(s,c,p){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var m=c.type;if(!(m!=="submit"&&m!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+s._wrapperState.initialValue,p||c===s.value||(s.value=c),s.defaultValue=c}p=s.name,p!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,p!==""&&(s.name=p)}function st(s,c,p){(c!=="number"||Be(s.ownerDocument)!==s)&&(p==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+p&&(s.defaultValue=""+p))}var rt=Array.isArray;function Je(s,c,p,m){if(s=s.options,c){c={};for(var v=0;v"+c.valueOf().toString()+"",c=ke.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function Ve(s,c){if(c){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=c;return}}s.textContent=c}var $e={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ye=["Webkit","ms","Moz","O"];Object.keys($e).forEach(function(s){Ye.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),$e[c]=$e[s]})});function lt(s,c,p){return c==null||typeof c=="boolean"||c===""?"":p||typeof c!="number"||c===0||$e.hasOwnProperty(s)&&$e[s]?(""+c).trim():c+"px"}function ft(s,c){s=s.style;for(var p in c)if(c.hasOwnProperty(p)){var m=p.indexOf("--")===0,v=lt(p,c[p],m);p==="float"&&(p="cssFloat"),m?s.setProperty(p,v):s[p]=v}}var ae=re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _e(s,c){if(c){if(ae[s]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(r(137,s));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(r(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(r(61))}if(c.style!=null&&typeof c.style!="object")throw Error(r(62))}}function ze(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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 Ke=null;function _t(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var ur=null,yr=null,vt=null;function Ft(s){if(s=nl(s)){if(typeof ur!="function")throw Error(r(280));var c=s.stateNode;c&&(c=Qu(c),ur(s.stateNode,s.type,c))}}function wn(s){yr?vt?vt.push(s):vt=[s]:yr=s}function No(){if(yr){var s=yr,c=vt;if(vt=yr=null,Ft(s),c)for(s=0;s>>=0,s===0?32:31-(BP(s)/WP|0)|0}var Au=64,Iu=4194304;function zc(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function ju(s,c){var p=s.pendingLanes;if(p===0)return 0;var m=0,v=s.suspendedLanes,x=s.pingedLanes,N=p&268435455;if(N!==0){var A=N&~v;A!==0?m=zc(A):(x&=N,x!==0&&(m=zc(x)))}else N=p&~v,N!==0?m=zc(N):x!==0&&(m=zc(x));if(m===0)return 0;if(c!==0&&c!==m&&!(c&v)&&(v=m&-m,x=c&-c,v>=x||v===16&&(x&4194240)!==0))return c;if(m&4&&(m|=p&16),c=s.entangledLanes,c!==0)for(s=s.entanglements,c&=m;0p;p++)c.push(s);return c}function Fc(s,c,p){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-Bn(c),s[c]=p}function VP(s,c){var p=s.pendingLanes&~c;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=c,s.mutableReadLanes&=c,s.entangledLanes&=c,c=s.entanglements;var m=s.eventTimes;for(s=s.expirationTimes;0=Gc),d1=" ",p1=!1;function f1(s,c){switch(s){case"keyup":return bR.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function h1(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var ti=!1;function xR(s,c){switch(s){case"compositionend":return h1(c);case"keypress":return c.which!==32?null:(p1=!0,d1);case"textInput":return s=c.data,s===d1&&p1?null:s;default:return null}}function SR(s,c){if(ti)return s==="compositionend"||!yh&&f1(s,c)?(s=a1(),Wu=ph=fa=null,ti=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:p,offset:c-s};s=m}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=w1(p)}}function S1(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?S1(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function k1(){for(var s=window,c=Be();c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=Be(s.document)}return c}function wh(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function NR(s){var c=k1(),p=s.focusedElem,m=s.selectionRange;if(c!==p&&p&&p.ownerDocument&&S1(p.ownerDocument.documentElement,p)){if(m!==null&&wh(p)){if(c=m.start,s=m.end,s===void 0&&(s=c),"selectionStart"in p)p.selectionStart=c,p.selectionEnd=Math.min(s,p.value.length);else if(s=(c=p.ownerDocument||document)&&c.defaultView||window,s.getSelection){s=s.getSelection();var v=p.textContent.length,x=Math.min(m.start,v);m=m.end===void 0?x:Math.min(m.end,v),!s.extend&&x>m&&(v=m,m=x,x=v),v=x1(p,x);var N=x1(p,m);v&&N&&(s.rangeCount!==1||s.anchorNode!==v.node||s.anchorOffset!==v.offset||s.focusNode!==N.node||s.focusOffset!==N.offset)&&(c=c.createRange(),c.setStart(v.node,v.offset),s.removeAllRanges(),x>m?(s.addRange(c),s.extend(N.node,N.offset)):(c.setEnd(N.node,N.offset),s.addRange(c)))}}for(c=[],s=p;s=s.parentNode;)s.nodeType===1&&c.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p=document.documentMode,ri=null,xh=null,Zc=null,Sh=!1;function C1(s,c,p){var m=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Sh||ri==null||ri!==Be(m)||(m=ri,"selectionStart"in m&&wh(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Zc&&Kc(Zc,m)||(Zc=m,m=Yu(xh,"onSelect"),0ii||(s.current=Ah[ii],Ah[ii]=null,ii--)}function Lt(s,c){ii++,Ah[ii]=s.current,s.current=c}var ga={},Pr=_a(ga),Xr=_a(!1),Za=ga;function ci(s,c){var p=s.type.contextTypes;if(!p)return ga;var m=s.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===c)return m.__reactInternalMemoizedMaskedChildContext;var v={},x;for(x in p)v[x]=c[x];return m&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=v),v}function Gr(s){return s=s.childContextTypes,s!=null}function ed(){Wt(Xr),Wt(Pr)}function F1(s,c,p){if(Pr.current!==ga)throw Error(r(168));Lt(Pr,c),Lt(Xr,p)}function B1(s,c,p){var m=s.stateNode;if(c=c.childContextTypes,typeof m.getChildContext!="function")return p;m=m.getChildContext();for(var v in m)if(!(v in c))throw Error(r(108,Re(s)||"Unknown",v));return re({},p,m)}function td(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||ga,Za=Pr.current,Lt(Pr,s),Lt(Xr,Xr.current),!0}function W1(s,c,p){var m=s.stateNode;if(!m)throw Error(r(169));p?(s=B1(s,c,Za),m.__reactInternalMemoizedMergedChildContext=s,Wt(Xr),Wt(Pr),Lt(Pr,s)):Wt(Xr),Lt(Xr,p)}var Ro=null,rd=!1,Ih=!1;function U1(s){Ro===null?Ro=[s]:Ro.push(s)}function HR(s){rd=!0,U1(s)}function ya(){if(!Ih&&Ro!==null){Ih=!0;var s=0,c=Ot;try{var p=Ro;for(Ot=1;s>=N,v-=N,Ao=1<<32-Bn(c)+v|p<at?(wr=et,et=null):wr=et.sibling;var St=le(J,et,Z[at],be);if(St===null){et===null&&(et=wr);break}s&&et&&St.alternate===null&&c(J,et),V=x(St,V,at),Qe===null?Ue=St:Qe.sibling=St,Qe=St,et=wr}if(at===Z.length)return p(J,et),Ht&&es(J,at),Ue;if(et===null){for(;atat?(wr=et,et=null):wr=et.sibling;var Ea=le(J,et,St.value,be);if(Ea===null){et===null&&(et=wr);break}s&&et&&Ea.alternate===null&&c(J,et),V=x(Ea,V,at),Qe===null?Ue=Ea:Qe.sibling=Ea,Qe=Ea,et=wr}if(St.done)return p(J,et),Ht&&es(J,at),Ue;if(et===null){for(;!St.done;at++,St=Z.next())St=fe(J,St.value,be),St!==null&&(V=x(St,V,at),Qe===null?Ue=St:Qe.sibling=St,Qe=St);return Ht&&es(J,at),Ue}for(et=m(J,et);!St.done;at++,St=Z.next())St=Ae(et,J,at,St.value,be),St!==null&&(s&&St.alternate!==null&&et.delete(St.key===null?at:St.key),V=x(St,V,at),Qe===null?Ue=St:Qe.sibling=St,Qe=St);return s&&et.forEach(function(SA){return c(J,SA)}),Ht&&es(J,at),Ue}function ir(J,V,Z,be){if(typeof Z=="object"&&Z!==null&&Z.type===P&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case M:e:{for(var Ue=Z.key,Qe=V;Qe!==null;){if(Qe.key===Ue){if(Ue=Z.type,Ue===P){if(Qe.tag===7){p(J,Qe.sibling),V=v(Qe,Z.props.children),V.return=J,J=V;break e}}else if(Qe.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===K&&J1(Ue)===Qe.type){p(J,Qe.sibling),V=v(Qe,Z.props),V.ref=ol(J,Qe,Z),V.return=J,J=V;break e}p(J,Qe);break}else c(J,Qe);Qe=Qe.sibling}Z.type===P?(V=cs(Z.props.children,J.mode,be,Z.key),V.return=J,J=V):(be=Dd(Z.type,Z.key,Z.props,null,J.mode,be),be.ref=ol(J,V,Z),be.return=J,J=be)}return N(J);case T:e:{for(Qe=Z.key;V!==null;){if(V.key===Qe)if(V.tag===4&&V.stateNode.containerInfo===Z.containerInfo&&V.stateNode.implementation===Z.implementation){p(J,V.sibling),V=v(V,Z.children||[]),V.return=J,J=V;break e}else{p(J,V);break}else c(J,V);V=V.sibling}V=Pm(Z,J.mode,be),V.return=J,J=V}return N(J);case K:return Qe=Z._init,ir(J,V,Qe(Z._payload),be)}if(rt(Z))return je(J,V,Z,be);if(X(Z))return Le(J,V,Z,be);sd(J,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"?(Z=""+Z,V!==null&&V.tag===6?(p(J,V.sibling),V=v(V,Z),V.return=J,J=V):(p(J,V),V=Nm(Z,J.mode,be),V.return=J,J=V),N(J)):p(J,V)}return ir}var pi=Y1(!0),K1=Y1(!1),id=_a(null),cd=null,fi=null,Wh=null;function Uh(){Wh=fi=cd=null}function Hh(s){var c=id.current;Wt(id),s._currentValue=c}function qh(s,c,p){for(;s!==null;){var m=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,m!==null&&(m.childLanes|=c)):m!==null&&(m.childLanes&c)!==c&&(m.childLanes|=c),s===p)break;s=s.return}}function hi(s,c){cd=s,Wh=fi=null,s=s.dependencies,s!==null&&s.firstContext!==null&&(s.lanes&c&&(Jr=!0),s.firstContext=null)}function kn(s){var c=s._currentValue;if(Wh!==s)if(s={context:s,memoizedValue:c,next:null},fi===null){if(cd===null)throw Error(r(308));fi=s,cd.dependencies={lanes:0,firstContext:s}}else fi=fi.next=s;return c}var ts=null;function Vh(s){ts===null?ts=[s]:ts.push(s)}function Z1(s,c,p,m){var v=c.interleaved;return v===null?(p.next=p,Vh(c)):(p.next=v.next,v.next=p),c.interleaved=p,jo(s,m)}function jo(s,c){s.lanes|=c;var p=s.alternate;for(p!==null&&(p.lanes|=c),p=s,s=s.return;s!==null;)s.childLanes|=c,p=s.alternate,p!==null&&(p.childLanes|=c),p=s,s=s.return;return p.tag===3?p.stateNode:null}var va=!1;function Xh(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Q1(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Lo(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function ba(s,c,p){var m=s.updateQueue;if(m===null)return null;if(m=m.shared,xt&2){var v=m.pending;return v===null?c.next=c:(c.next=v.next,v.next=c),m.pending=c,jo(s,p)}return v=m.interleaved,v===null?(c.next=c,Vh(m)):(c.next=v.next,v.next=c),m.interleaved=c,jo(s,p)}function ld(s,c,p){if(c=c.updateQueue,c!==null&&(c=c.shared,(p&4194240)!==0)){var m=c.lanes;m&=s.pendingLanes,p|=m,c.lanes=p,ih(s,p)}}function ex(s,c){var p=s.updateQueue,m=s.alternate;if(m!==null&&(m=m.updateQueue,p===m)){var v=null,x=null;if(p=p.firstBaseUpdate,p!==null){do{var N={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};x===null?v=x=N:x=x.next=N,p=p.next}while(p!==null);x===null?v=x=c:x=x.next=c}else v=x=c;p={baseState:m.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:m.shared,effects:m.effects},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=c:s.next=c,p.lastBaseUpdate=c}function ud(s,c,p,m){var v=s.updateQueue;va=!1;var x=v.firstBaseUpdate,N=v.lastBaseUpdate,A=v.shared.pending;if(A!==null){v.shared.pending=null;var W=A,te=W.next;W.next=null,N===null?x=te:N.next=te,N=W;var ue=s.alternate;ue!==null&&(ue=ue.updateQueue,A=ue.lastBaseUpdate,A!==N&&(A===null?ue.firstBaseUpdate=te:A.next=te,ue.lastBaseUpdate=W))}if(x!==null){var fe=v.baseState;N=0,ue=te=W=null,A=x;do{var le=A.lane,Ae=A.eventTime;if((m&le)===le){ue!==null&&(ue=ue.next={eventTime:Ae,lane:0,tag:A.tag,payload:A.payload,callback:A.callback,next:null});e:{var je=s,Le=A;switch(le=c,Ae=p,Le.tag){case 1:if(je=Le.payload,typeof je=="function"){fe=je.call(Ae,fe,le);break e}fe=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Le.payload,le=typeof je=="function"?je.call(Ae,fe,le):je,le==null)break e;fe=re({},fe,le);break e;case 2:va=!0}}A.callback!==null&&A.lane!==0&&(s.flags|=64,le=v.effects,le===null?v.effects=[A]:le.push(A))}else Ae={eventTime:Ae,lane:le,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ue===null?(te=ue=Ae,W=fe):ue=ue.next=Ae,N|=le;if(A=A.next,A===null){if(A=v.shared.pending,A===null)break;le=A,A=le.next,le.next=null,v.lastBaseUpdate=le,v.shared.pending=null}}while(!0);if(ue===null&&(W=fe),v.baseState=W,v.firstBaseUpdate=te,v.lastBaseUpdate=ue,c=v.shared.interleaved,c!==null){v=c;do N|=v.lane,v=v.next;while(v!==c)}else x===null&&(v.shared.lanes=0);os|=N,s.lanes=N,s.memoizedState=fe}}function tx(s,c,p){if(s=c.effects,c.effects=null,s!==null)for(c=0;cp?p:4,s(!0);var m=Zh.transition;Zh.transition={};try{s(!1),c()}finally{Ot=p,Zh.transition=m}}function bx(){return Cn().memoizedState}function GR(s,c,p){var m=ka(s);if(p={lane:m,action:p,hasEagerState:!1,eagerState:null,next:null},wx(s))xx(c,p);else if(p=Z1(s,c,p,m),p!==null){var v=Hr();Xn(p,s,m,v),Sx(p,c,m)}}function JR(s,c,p){var m=ka(s),v={lane:m,action:p,hasEagerState:!1,eagerState:null,next:null};if(wx(s))xx(c,v);else{var x=s.alternate;if(s.lanes===0&&(x===null||x.lanes===0)&&(x=c.lastRenderedReducer,x!==null))try{var N=c.lastRenderedState,A=x(N,p);if(v.hasEagerState=!0,v.eagerState=A,Wn(A,N)){var W=c.interleaved;W===null?(v.next=v,Vh(c)):(v.next=W.next,W.next=v),c.interleaved=v;return}}catch{}finally{}p=Z1(s,c,v,m),p!==null&&(v=Hr(),Xn(p,s,m,v),Sx(p,c,m))}}function wx(s){var c=s.alternate;return s===Kt||c!==null&&c===Kt}function xx(s,c){cl=fd=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function Sx(s,c,p){if(p&4194240){var m=c.lanes;m&=s.pendingLanes,p|=m,c.lanes=p,ih(s,p)}}var _d={readContext:kn,useCallback:Rr,useContext:Rr,useEffect:Rr,useImperativeHandle:Rr,useInsertionEffect:Rr,useLayoutEffect:Rr,useMemo:Rr,useReducer:Rr,useRef:Rr,useState:Rr,useDebugValue:Rr,useDeferredValue:Rr,useTransition:Rr,useMutableSource:Rr,useSyncExternalStore:Rr,useId:Rr,unstable_isNewReconciler:!1},YR={readContext:kn,useCallback:function(s,c){return so().memoizedState=[s,c===void 0?null:c],s},useContext:kn,useEffect:px,useImperativeHandle:function(s,c,p){return p=p!=null?p.concat([s]):null,hd(4194308,4,mx.bind(null,c,s),p)},useLayoutEffect:function(s,c){return hd(4194308,4,s,c)},useInsertionEffect:function(s,c){return hd(4,2,s,c)},useMemo:function(s,c){var p=so();return c=c===void 0?null:c,s=s(),p.memoizedState=[s,c],s},useReducer:function(s,c,p){var m=so();return c=p!==void 0?p(c):c,m.memoizedState=m.baseState=c,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:c},m.queue=s,s=s.dispatch=GR.bind(null,Kt,s),[m.memoizedState,s]},useRef:function(s){var c=so();return s={current:s},c.memoizedState=s},useState:ux,useDebugValue:am,useDeferredValue:function(s){return so().memoizedState=s},useTransition:function(){var s=ux(!1),c=s[0];return s=XR.bind(null,s[1]),so().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,p){var m=Kt,v=so();if(Ht){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),br===null)throw Error(r(349));ns&30||ax(m,c,p)}v.memoizedState=p;var x={value:p,getSnapshot:c};return v.queue=x,px(ix.bind(null,m,x,s),[s]),m.flags|=2048,dl(9,sx.bind(null,m,x,p,c),void 0,null),p},useId:function(){var s=so(),c=br.identifierPrefix;if(Ht){var p=Io,m=Ao;p=(m&~(1<<32-Bn(m)-1)).toString(32)+p,c=":"+c+"R"+p,p=ll++,0")&&(W=W.replace("",s.displayName)),W}while(1<=N&&0<=A);break}}}finally{me=!1,Error.prepareStackTrace=p}return(s=s?s.displayName||s.name:"")?Q(s):""}function ge(s){switch(s.tag){case 5:return Q(s.type);case 16:return Q("Lazy");case 13:return Q("Suspense");case 19:return Q("SuspenseList");case 0:case 2:case 15:return s=pe(s.type,!1),s;case 11:return s=pe(s.type.render,!1),s;case 1:return s=pe(s.type,!0),s;default:return""}}function Ce(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case P:return"Fragment";case T:return"Portal";case F:return"Profiler";case j:return"StrictMode";case B:return"Suspense";case z:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case L:return(s.displayName||"Context")+".Consumer";case E:return(s._context.displayName||"Context")+".Provider";case G:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case H:return c=s.displayName||null,c!==null?c:Ce(s.type)||"Memo";case K:c=s._payload,s=s._init;try{return Ce(s(c))}catch{}}return null}function Re(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ce(c);case 8:return c===j?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function Te(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Pe(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Oe(s){var c=Pe(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),m=""+s[c];if(!s.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var v=p.get,x=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return v.call(this)},set:function(N){m=""+N,x.call(this,N)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return m},setValue:function(N){m=""+N},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function ze(s){s._valueTracker||(s._valueTracker=Oe(s))}function Me(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),m="";return s&&(m=Pe(s)?s.checked?"true":"false":s.value),s=m,s!==p?(c.setValue(s),!0):!1}function Be(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function We(s,c){var p=c.checked;return re({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??s._wrapperState.initialChecked})}function De(s,c){var p=c.defaultValue==null?"":c.defaultValue,m=c.checked!=null?c.checked:c.defaultChecked;p=Te(c.value!=null?c.value:p),s._wrapperState={initialChecked:m,initialValue:p,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function pt(s,c){c=c.checked,c!=null&&C(s,"checked",c,!1)}function ce(s,c){pt(s,c);var p=Te(c.value),m=c.type;if(p!=null)m==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=""+p):s.value!==""+p&&(s.value=""+p);else if(m==="submit"||m==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?st(s,c.type,p):c.hasOwnProperty("defaultValue")&&st(s,c.type,Te(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function qe(s,c,p){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var m=c.type;if(!(m!=="submit"&&m!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+s._wrapperState.initialValue,p||c===s.value||(s.value=c),s.defaultValue=c}p=s.name,p!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,p!==""&&(s.name=p)}function st(s,c,p){(c!=="number"||Be(s.ownerDocument)!==s)&&(p==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+p&&(s.defaultValue=""+p))}var rt=Array.isArray;function Je(s,c,p,m){if(s=s.options,c){c={};for(var v=0;v"+c.valueOf().toString()+"",c=ke.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function Ve(s,c){if(c){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=c;return}}s.textContent=c}var $e={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ye=["Webkit","ms","Moz","O"];Object.keys($e).forEach(function(s){Ye.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),$e[c]=$e[s]})});function lt(s,c,p){return c==null||typeof c=="boolean"||c===""?"":p||typeof c!="number"||c===0||$e.hasOwnProperty(s)&&$e[s]?(""+c).trim():c+"px"}function ft(s,c){s=s.style;for(var p in c)if(c.hasOwnProperty(p)){var m=p.indexOf("--")===0,v=lt(p,c[p],m);p==="float"&&(p="cssFloat"),m?s.setProperty(p,v):s[p]=v}}var ae=re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _e(s,c){if(c){if(ae[s]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(r(137,s));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(r(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(r(61))}if(c.style!=null&&typeof c.style!="object")throw Error(r(62))}}function Fe(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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 Ke=null;function _t(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var ur=null,yr=null,vt=null;function zt(s){if(s=nl(s)){if(typeof ur!="function")throw Error(r(280));var c=s.stateNode;c&&(c=Qu(c),ur(s.stateNode,s.type,c))}}function wn(s){yr?vt?vt.push(s):vt=[s]:yr=s}function No(){if(yr){var s=yr,c=vt;if(vt=yr=null,zt(s),c)for(s=0;s>>=0,s===0?32:31-(BP(s)/WP|0)|0}var Au=64,Iu=4194304;function Fc(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function ju(s,c){var p=s.pendingLanes;if(p===0)return 0;var m=0,v=s.suspendedLanes,x=s.pingedLanes,N=p&268435455;if(N!==0){var A=N&~v;A!==0?m=Fc(A):(x&=N,x!==0&&(m=Fc(x)))}else N=p&~v,N!==0?m=Fc(N):x!==0&&(m=Fc(x));if(m===0)return 0;if(c!==0&&c!==m&&!(c&v)&&(v=m&-m,x=c&-c,v>=x||v===16&&(x&4194240)!==0))return c;if(m&4&&(m|=p&16),c=s.entangledLanes,c!==0)for(s=s.entanglements,c&=m;0p;p++)c.push(s);return c}function zc(s,c,p){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-Bn(c),s[c]=p}function VP(s,c){var p=s.pendingLanes&~c;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=c,s.mutableReadLanes&=c,s.entangledLanes&=c,c=s.entanglements;var m=s.eventTimes;for(s=s.expirationTimes;0=Gc),d1=" ",p1=!1;function f1(s,c){switch(s){case"keyup":return bR.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function h1(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var ti=!1;function xR(s,c){switch(s){case"compositionend":return h1(c);case"keypress":return c.which!==32?null:(p1=!0,d1);case"textInput":return s=c.data,s===d1&&p1?null:s;default:return null}}function SR(s,c){if(ti)return s==="compositionend"||!yh&&f1(s,c)?(s=a1(),Wu=ph=fa=null,ti=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:p,offset:c-s};s=m}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=w1(p)}}function S1(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?S1(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function k1(){for(var s=window,c=Be();c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=Be(s.document)}return c}function wh(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function NR(s){var c=k1(),p=s.focusedElem,m=s.selectionRange;if(c!==p&&p&&p.ownerDocument&&S1(p.ownerDocument.documentElement,p)){if(m!==null&&wh(p)){if(c=m.start,s=m.end,s===void 0&&(s=c),"selectionStart"in p)p.selectionStart=c,p.selectionEnd=Math.min(s,p.value.length);else if(s=(c=p.ownerDocument||document)&&c.defaultView||window,s.getSelection){s=s.getSelection();var v=p.textContent.length,x=Math.min(m.start,v);m=m.end===void 0?x:Math.min(m.end,v),!s.extend&&x>m&&(v=m,m=x,x=v),v=x1(p,x);var N=x1(p,m);v&&N&&(s.rangeCount!==1||s.anchorNode!==v.node||s.anchorOffset!==v.offset||s.focusNode!==N.node||s.focusOffset!==N.offset)&&(c=c.createRange(),c.setStart(v.node,v.offset),s.removeAllRanges(),x>m?(s.addRange(c),s.extend(N.node,N.offset)):(c.setEnd(N.node,N.offset),s.addRange(c)))}}for(c=[],s=p;s=s.parentNode;)s.nodeType===1&&c.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p=document.documentMode,ri=null,xh=null,Zc=null,Sh=!1;function C1(s,c,p){var m=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Sh||ri==null||ri!==Be(m)||(m=ri,"selectionStart"in m&&wh(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Zc&&Kc(Zc,m)||(Zc=m,m=Yu(xh,"onSelect"),0ii||(s.current=Ah[ii],Ah[ii]=null,ii--)}function Lt(s,c){ii++,Ah[ii]=s.current,s.current=c}var ga={},Pr=_a(ga),Xr=_a(!1),Za=ga;function ci(s,c){var p=s.type.contextTypes;if(!p)return ga;var m=s.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===c)return m.__reactInternalMemoizedMaskedChildContext;var v={},x;for(x in p)v[x]=c[x];return m&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=v),v}function Gr(s){return s=s.childContextTypes,s!=null}function ed(){Wt(Xr),Wt(Pr)}function z1(s,c,p){if(Pr.current!==ga)throw Error(r(168));Lt(Pr,c),Lt(Xr,p)}function B1(s,c,p){var m=s.stateNode;if(c=c.childContextTypes,typeof m.getChildContext!="function")return p;m=m.getChildContext();for(var v in m)if(!(v in c))throw Error(r(108,Re(s)||"Unknown",v));return re({},p,m)}function td(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||ga,Za=Pr.current,Lt(Pr,s),Lt(Xr,Xr.current),!0}function W1(s,c,p){var m=s.stateNode;if(!m)throw Error(r(169));p?(s=B1(s,c,Za),m.__reactInternalMemoizedMergedChildContext=s,Wt(Xr),Wt(Pr),Lt(Pr,s)):Wt(Xr),Lt(Xr,p)}var Ro=null,rd=!1,Ih=!1;function U1(s){Ro===null?Ro=[s]:Ro.push(s)}function HR(s){rd=!0,U1(s)}function ya(){if(!Ih&&Ro!==null){Ih=!0;var s=0,c=Ot;try{var p=Ro;for(Ot=1;s>=N,v-=N,Ao=1<<32-Bn(c)+v|p<at?(wr=et,et=null):wr=et.sibling;var St=le(J,et,Z[at],be);if(St===null){et===null&&(et=wr);break}s&&et&&St.alternate===null&&c(J,et),V=x(St,V,at),Qe===null?Ue=St:Qe.sibling=St,Qe=St,et=wr}if(at===Z.length)return p(J,et),Ht&&es(J,at),Ue;if(et===null){for(;atat?(wr=et,et=null):wr=et.sibling;var Ea=le(J,et,St.value,be);if(Ea===null){et===null&&(et=wr);break}s&&et&&Ea.alternate===null&&c(J,et),V=x(Ea,V,at),Qe===null?Ue=Ea:Qe.sibling=Ea,Qe=Ea,et=wr}if(St.done)return p(J,et),Ht&&es(J,at),Ue;if(et===null){for(;!St.done;at++,St=Z.next())St=fe(J,St.value,be),St!==null&&(V=x(St,V,at),Qe===null?Ue=St:Qe.sibling=St,Qe=St);return Ht&&es(J,at),Ue}for(et=m(J,et);!St.done;at++,St=Z.next())St=Ae(et,J,at,St.value,be),St!==null&&(s&&St.alternate!==null&&et.delete(St.key===null?at:St.key),V=x(St,V,at),Qe===null?Ue=St:Qe.sibling=St,Qe=St);return s&&et.forEach(function(SA){return c(J,SA)}),Ht&&es(J,at),Ue}function ir(J,V,Z,be){if(typeof Z=="object"&&Z!==null&&Z.type===P&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case M:e:{for(var Ue=Z.key,Qe=V;Qe!==null;){if(Qe.key===Ue){if(Ue=Z.type,Ue===P){if(Qe.tag===7){p(J,Qe.sibling),V=v(Qe,Z.props.children),V.return=J,J=V;break e}}else if(Qe.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===K&&J1(Ue)===Qe.type){p(J,Qe.sibling),V=v(Qe,Z.props),V.ref=ol(J,Qe,Z),V.return=J,J=V;break e}p(J,Qe);break}else c(J,Qe);Qe=Qe.sibling}Z.type===P?(V=cs(Z.props.children,J.mode,be,Z.key),V.return=J,J=V):(be=Dd(Z.type,Z.key,Z.props,null,J.mode,be),be.ref=ol(J,V,Z),be.return=J,J=be)}return N(J);case T:e:{for(Qe=Z.key;V!==null;){if(V.key===Qe)if(V.tag===4&&V.stateNode.containerInfo===Z.containerInfo&&V.stateNode.implementation===Z.implementation){p(J,V.sibling),V=v(V,Z.children||[]),V.return=J,J=V;break e}else{p(J,V);break}else c(J,V);V=V.sibling}V=Pm(Z,J.mode,be),V.return=J,J=V}return N(J);case K:return Qe=Z._init,ir(J,V,Qe(Z._payload),be)}if(rt(Z))return je(J,V,Z,be);if(X(Z))return Le(J,V,Z,be);sd(J,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"?(Z=""+Z,V!==null&&V.tag===6?(p(J,V.sibling),V=v(V,Z),V.return=J,J=V):(p(J,V),V=Nm(Z,J.mode,be),V.return=J,J=V),N(J)):p(J,V)}return ir}var pi=Y1(!0),K1=Y1(!1),id=_a(null),cd=null,fi=null,Wh=null;function Uh(){Wh=fi=cd=null}function Hh(s){var c=id.current;Wt(id),s._currentValue=c}function qh(s,c,p){for(;s!==null;){var m=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,m!==null&&(m.childLanes|=c)):m!==null&&(m.childLanes&c)!==c&&(m.childLanes|=c),s===p)break;s=s.return}}function hi(s,c){cd=s,Wh=fi=null,s=s.dependencies,s!==null&&s.firstContext!==null&&(s.lanes&c&&(Jr=!0),s.firstContext=null)}function kn(s){var c=s._currentValue;if(Wh!==s)if(s={context:s,memoizedValue:c,next:null},fi===null){if(cd===null)throw Error(r(308));fi=s,cd.dependencies={lanes:0,firstContext:s}}else fi=fi.next=s;return c}var ts=null;function Vh(s){ts===null?ts=[s]:ts.push(s)}function Z1(s,c,p,m){var v=c.interleaved;return v===null?(p.next=p,Vh(c)):(p.next=v.next,v.next=p),c.interleaved=p,jo(s,m)}function jo(s,c){s.lanes|=c;var p=s.alternate;for(p!==null&&(p.lanes|=c),p=s,s=s.return;s!==null;)s.childLanes|=c,p=s.alternate,p!==null&&(p.childLanes|=c),p=s,s=s.return;return p.tag===3?p.stateNode:null}var va=!1;function Xh(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Q1(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Lo(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function ba(s,c,p){var m=s.updateQueue;if(m===null)return null;if(m=m.shared,xt&2){var v=m.pending;return v===null?c.next=c:(c.next=v.next,v.next=c),m.pending=c,jo(s,p)}return v=m.interleaved,v===null?(c.next=c,Vh(m)):(c.next=v.next,v.next=c),m.interleaved=c,jo(s,p)}function ld(s,c,p){if(c=c.updateQueue,c!==null&&(c=c.shared,(p&4194240)!==0)){var m=c.lanes;m&=s.pendingLanes,p|=m,c.lanes=p,ih(s,p)}}function ex(s,c){var p=s.updateQueue,m=s.alternate;if(m!==null&&(m=m.updateQueue,p===m)){var v=null,x=null;if(p=p.firstBaseUpdate,p!==null){do{var N={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};x===null?v=x=N:x=x.next=N,p=p.next}while(p!==null);x===null?v=x=c:x=x.next=c}else v=x=c;p={baseState:m.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:m.shared,effects:m.effects},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=c:s.next=c,p.lastBaseUpdate=c}function ud(s,c,p,m){var v=s.updateQueue;va=!1;var x=v.firstBaseUpdate,N=v.lastBaseUpdate,A=v.shared.pending;if(A!==null){v.shared.pending=null;var W=A,te=W.next;W.next=null,N===null?x=te:N.next=te,N=W;var ue=s.alternate;ue!==null&&(ue=ue.updateQueue,A=ue.lastBaseUpdate,A!==N&&(A===null?ue.firstBaseUpdate=te:A.next=te,ue.lastBaseUpdate=W))}if(x!==null){var fe=v.baseState;N=0,ue=te=W=null,A=x;do{var le=A.lane,Ae=A.eventTime;if((m&le)===le){ue!==null&&(ue=ue.next={eventTime:Ae,lane:0,tag:A.tag,payload:A.payload,callback:A.callback,next:null});e:{var je=s,Le=A;switch(le=c,Ae=p,Le.tag){case 1:if(je=Le.payload,typeof je=="function"){fe=je.call(Ae,fe,le);break e}fe=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Le.payload,le=typeof je=="function"?je.call(Ae,fe,le):je,le==null)break e;fe=re({},fe,le);break e;case 2:va=!0}}A.callback!==null&&A.lane!==0&&(s.flags|=64,le=v.effects,le===null?v.effects=[A]:le.push(A))}else Ae={eventTime:Ae,lane:le,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ue===null?(te=ue=Ae,W=fe):ue=ue.next=Ae,N|=le;if(A=A.next,A===null){if(A=v.shared.pending,A===null)break;le=A,A=le.next,le.next=null,v.lastBaseUpdate=le,v.shared.pending=null}}while(!0);if(ue===null&&(W=fe),v.baseState=W,v.firstBaseUpdate=te,v.lastBaseUpdate=ue,c=v.shared.interleaved,c!==null){v=c;do N|=v.lane,v=v.next;while(v!==c)}else x===null&&(v.shared.lanes=0);os|=N,s.lanes=N,s.memoizedState=fe}}function tx(s,c,p){if(s=c.effects,c.effects=null,s!==null)for(c=0;cp?p:4,s(!0);var m=Zh.transition;Zh.transition={};try{s(!1),c()}finally{Ot=p,Zh.transition=m}}function bx(){return Cn().memoizedState}function GR(s,c,p){var m=ka(s);if(p={lane:m,action:p,hasEagerState:!1,eagerState:null,next:null},wx(s))xx(c,p);else if(p=Z1(s,c,p,m),p!==null){var v=Hr();Xn(p,s,m,v),Sx(p,c,m)}}function JR(s,c,p){var m=ka(s),v={lane:m,action:p,hasEagerState:!1,eagerState:null,next:null};if(wx(s))xx(c,v);else{var x=s.alternate;if(s.lanes===0&&(x===null||x.lanes===0)&&(x=c.lastRenderedReducer,x!==null))try{var N=c.lastRenderedState,A=x(N,p);if(v.hasEagerState=!0,v.eagerState=A,Wn(A,N)){var W=c.interleaved;W===null?(v.next=v,Vh(c)):(v.next=W.next,W.next=v),c.interleaved=v;return}}catch{}finally{}p=Z1(s,c,v,m),p!==null&&(v=Hr(),Xn(p,s,m,v),Sx(p,c,m))}}function wx(s){var c=s.alternate;return s===Kt||c!==null&&c===Kt}function xx(s,c){cl=fd=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function Sx(s,c,p){if(p&4194240){var m=c.lanes;m&=s.pendingLanes,p|=m,c.lanes=p,ih(s,p)}}var _d={readContext:kn,useCallback:Rr,useContext:Rr,useEffect:Rr,useImperativeHandle:Rr,useInsertionEffect:Rr,useLayoutEffect:Rr,useMemo:Rr,useReducer:Rr,useRef:Rr,useState:Rr,useDebugValue:Rr,useDeferredValue:Rr,useTransition:Rr,useMutableSource:Rr,useSyncExternalStore:Rr,useId:Rr,unstable_isNewReconciler:!1},YR={readContext:kn,useCallback:function(s,c){return so().memoizedState=[s,c===void 0?null:c],s},useContext:kn,useEffect:px,useImperativeHandle:function(s,c,p){return p=p!=null?p.concat([s]):null,hd(4194308,4,mx.bind(null,c,s),p)},useLayoutEffect:function(s,c){return hd(4194308,4,s,c)},useInsertionEffect:function(s,c){return hd(4,2,s,c)},useMemo:function(s,c){var p=so();return c=c===void 0?null:c,s=s(),p.memoizedState=[s,c],s},useReducer:function(s,c,p){var m=so();return c=p!==void 0?p(c):c,m.memoizedState=m.baseState=c,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:c},m.queue=s,s=s.dispatch=GR.bind(null,Kt,s),[m.memoizedState,s]},useRef:function(s){var c=so();return s={current:s},c.memoizedState=s},useState:ux,useDebugValue:am,useDeferredValue:function(s){return so().memoizedState=s},useTransition:function(){var s=ux(!1),c=s[0];return s=XR.bind(null,s[1]),so().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,p){var m=Kt,v=so();if(Ht){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),br===null)throw Error(r(349));ns&30||ax(m,c,p)}v.memoizedState=p;var x={value:p,getSnapshot:c};return v.queue=x,px(ix.bind(null,m,x,s),[s]),m.flags|=2048,dl(9,sx.bind(null,m,x,p,c),void 0,null),p},useId:function(){var s=so(),c=br.identifierPrefix;if(Ht){var p=Io,m=Ao;p=(m&~(1<<32-Bn(m)-1)).toString(32)+p,c=":"+c+"R"+p,p=ll++,0<\/script>",s=s.removeChild(s.firstChild)):typeof m.is=="string"?s=N.createElement(p,{is:m.is}):(s=N.createElement(p),p==="select"&&(N=s,m.multiple?N.multiple=!0:m.size&&(N.size=m.size))):s=N.createElementNS(s,p),s[oo]=c,s[rl]=m,Ux(s,c,!1,!1),c.stateNode=s;e:{switch(N=ze(p,m),p){case"dialog":Bt("cancel",s),Bt("close",s),v=m;break;case"iframe":case"object":case"embed":Bt("load",s),v=m;break;case"video":case"audio":for(v=0;vvi&&(c.flags|=128,m=!0,pl(x,!1),c.lanes=4194304)}else{if(!m)if(s=dd(N),s!==null){if(c.flags|=128,m=!0,p=s.updateQueue,p!==null&&(c.updateQueue=p,c.flags|=4),pl(x,!0),x.tail===null&&x.tailMode==="hidden"&&!N.alternate&&!Ht)return Ar(c),null}else 2*sr()-x.renderingStartTime>vi&&p!==1073741824&&(c.flags|=128,m=!0,pl(x,!1),c.lanes=4194304);x.isBackwards?(N.sibling=c.child,c.child=N):(p=x.last,p!==null?p.sibling=N:c.child=N,x.last=N)}return x.tail!==null?(c=x.tail,x.rendering=c,x.tail=c.sibling,x.renderingStartTime=sr(),c.sibling=null,p=Yt.current,Lt(Yt,m?p&1|2:p&1),c):(Ar(c),null);case 22:case 23:return Om(),m=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==m&&(c.flags|=8192),m&&c.mode&1?fn&1073741824&&(Ar(c),c.subtreeFlags&6&&(c.flags|=8192)):Ar(c),null;case 24:return null;case 25:return null}throw Error(r(156,c.tag))}function oA(s,c){switch(Lh(c),c.tag){case 1:return Gr(c.type)&&ed(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return mi(),Wt(Xr),Wt(Pr),Kh(),s=c.flags,s&65536&&!(s&128)?(c.flags=s&-65537|128,c):null;case 5:return Jh(c),null;case 13:if(Wt(Yt),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));di()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return Wt(Yt),null;case 4:return mi(),null;case 10:return Hh(c.type._context),null;case 22:case 23:return Om(),null;case 24:return null;default:return null}}var bd=!1,Ir=!1,aA=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function gi(s,c){var p=s.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(m){er(s,c,m)}else p.current=null}function gm(s,c,p){try{p()}catch(m){er(s,c,m)}}var Vx=!1;function sA(s,c){if(Oh=Fu,s=k1(),wh(s)){if("selectionStart"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var m=p.getSelection&&p.getSelection();if(m&&m.rangeCount!==0){p=m.anchorNode;var v=m.anchorOffset,x=m.focusNode;m=m.focusOffset;try{p.nodeType,x.nodeType}catch{p=null;break e}var N=0,A=-1,W=-1,te=0,ue=0,fe=s,le=null;t:for(;;){for(var Ae;fe!==p||v!==0&&fe.nodeType!==3||(A=N+v),fe!==x||m!==0&&fe.nodeType!==3||(W=N+m),fe.nodeType===3&&(N+=fe.nodeValue.length),(Ae=fe.firstChild)!==null;)le=fe,fe=Ae;for(;;){if(fe===s)break t;if(le===p&&++te===v&&(A=N),le===x&&++ue===m&&(W=N),(Ae=fe.nextSibling)!==null)break;fe=le,le=fe.parentNode}fe=Ae}p=A===-1||W===-1?null:{start:A,end:W}}else p=null}p=p||{start:0,end:0}}else p=null;for(Dh={focusedElem:s,selectionRange:p},Fu=!1,Ie=c;Ie!==null;)if(c=Ie,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,Ie=s;else for(;Ie!==null;){c=Ie;try{var je=c.alternate;if(c.flags&1024)switch(c.tag){case 0:case 11:case 15:break;case 1:if(je!==null){var Le=je.memoizedProps,ir=je.memoizedState,J=c.stateNode,V=J.getSnapshotBeforeUpdate(c.elementType===c.type?Le:Hn(c.type,Le),ir);J.__reactInternalSnapshotBeforeUpdate=V}break;case 3:var Z=c.stateNode.containerInfo;Z.nodeType===1?Z.textContent="":Z.nodeType===9&&Z.documentElement&&Z.removeChild(Z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(be){er(c,c.return,be)}if(s=c.sibling,s!==null){s.return=c.return,Ie=s;break}Ie=c.return}return je=Vx,Vx=!1,je}function fl(s,c,p){var m=c.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var v=m=m.next;do{if((v.tag&s)===s){var x=v.destroy;v.destroy=void 0,x!==void 0&&gm(c,p,x)}v=v.next}while(v!==m)}}function wd(s,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&s)===s){var m=p.create;p.destroy=m()}p=p.next}while(p!==c)}}function ym(s){var c=s.ref;if(c!==null){var p=s.stateNode;switch(s.tag){case 5:s=p;break;default:s=p}typeof c=="function"?c(s):c.current=s}}function Xx(s){var c=s.alternate;c!==null&&(s.alternate=null,Xx(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[oo],delete c[rl],delete c[Rh],delete c[WR],delete c[UR])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function Gx(s){return s.tag===5||s.tag===3||s.tag===4}function Jx(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Gx(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function vm(s,c,p){var m=s.tag;if(m===5||m===6)s=s.stateNode,c?p.nodeType===8?p.parentNode.insertBefore(s,c):p.insertBefore(s,c):(p.nodeType===8?(c=p.parentNode,c.insertBefore(s,p)):(c=p,c.appendChild(s)),p=p._reactRootContainer,p!=null||c.onclick!==null||(c.onclick=Zu));else if(m!==4&&(s=s.child,s!==null))for(vm(s,c,p),s=s.sibling;s!==null;)vm(s,c,p),s=s.sibling}function bm(s,c,p){var m=s.tag;if(m===5||m===6)s=s.stateNode,c?p.insertBefore(s,c):p.appendChild(s);else if(m!==4&&(s=s.child,s!==null))for(bm(s,c,p),s=s.sibling;s!==null;)bm(s,c,p),s=s.sibling}var $r=null,qn=!1;function wa(s,c,p){for(p=p.child;p!==null;)Yx(s,c,p),p=p.sibling}function Yx(s,c,p){if(no&&typeof no.onCommitFiberUnmount=="function")try{no.onCommitFiberUnmount(Ru,p)}catch{}switch(p.tag){case 5:Ir||gi(p,c);case 6:var m=$r,v=qn;$r=null,wa(s,c,p),$r=m,qn=v,$r!==null&&(qn?(s=$r,p=p.stateNode,s.nodeType===8?s.parentNode.removeChild(p):s.removeChild(p)):$r.removeChild(p.stateNode));break;case 18:$r!==null&&(qn?(s=$r,p=p.stateNode,s.nodeType===8?Ph(s.parentNode,p):s.nodeType===1&&Ph(s,p),qc(s)):Ph($r,p.stateNode));break;case 4:m=$r,v=qn,$r=p.stateNode.containerInfo,qn=!0,wa(s,c,p),$r=m,qn=v;break;case 0:case 11:case 14:case 15:if(!Ir&&(m=p.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){v=m=m.next;do{var x=v,N=x.destroy;x=x.tag,N!==void 0&&(x&2||x&4)&&gm(p,c,N),v=v.next}while(v!==m)}wa(s,c,p);break;case 1:if(!Ir&&(gi(p,c),m=p.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=p.memoizedProps,m.state=p.memoizedState,m.componentWillUnmount()}catch(A){er(p,c,A)}wa(s,c,p);break;case 21:wa(s,c,p);break;case 22:p.mode&1?(Ir=(m=Ir)||p.memoizedState!==null,wa(s,c,p),Ir=m):wa(s,c,p);break;default:wa(s,c,p)}}function Kx(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var p=s.stateNode;p===null&&(p=s.stateNode=new aA),c.forEach(function(m){var v=mA.bind(null,s,m);p.has(m)||(p.add(m),m.then(v,v))})}}function Vn(s,c){var p=c.deletions;if(p!==null)for(var m=0;mv&&(v=N),m&=~x}if(m=v,m=sr()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*cA(m/1960))-m,10s?16:s,Sa===null)var m=!1;else{if(s=Sa,Sa=null,$d=0,xt&6)throw Error(r(331));var v=xt;for(xt|=4,Ie=s.current;Ie!==null;){var x=Ie,N=x.child;if(Ie.flags&16){var A=x.deletions;if(A!==null){for(var W=0;Wsr()-Sm?ss(s,0):xm|=p),Kr(s,c)}function uS(s,c){c===0&&(s.mode&1?(c=Iu,Iu<<=1,!(Iu&130023424)&&(Iu=4194304)):c=1);var p=Hr();s=jo(s,c),s!==null&&(Fc(s,c,p),Kr(s,p))}function hA(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),uS(s,p)}function mA(s,c){var p=0;switch(s.tag){case 13:var m=s.stateNode,v=s.memoizedState;v!==null&&(p=v.retryLane);break;case 19:m=s.stateNode;break;default:throw Error(r(314))}m!==null&&m.delete(c),uS(s,p)}var dS;dS=function(s,c,p){if(s!==null)if(s.memoizedProps!==c.pendingProps||Xr.current)Jr=!0;else{if(!(s.lanes&p)&&!(c.flags&128))return Jr=!1,rA(s,c,p);Jr=!!(s.flags&131072)}else Jr=!1,Ht&&c.flags&1048576&&H1(c,od,c.index);switch(c.lanes=0,c.tag){case 2:var m=c.type;vd(s,c),s=c.pendingProps;var v=ci(c,Pr.current);hi(c,p),v=em(null,c,m,s,v,p);var x=tm();return c.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,Gr(m)?(x=!0,td(c)):x=!1,c.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,Xh(c),v.updater=gd,c.stateNode=v,v._reactInternals=c,im(c,m,s,p),c=dm(null,c,m,!0,x,p)):(c.tag=0,Ht&&x&&jh(c),Ur(null,c,v,p),c=c.child),c;case 16:m=c.elementType;e:{switch(vd(s,c),s=c.pendingProps,v=m._init,m=v(m._payload),c.type=m,v=c.tag=gA(m),s=Hn(m,s),v){case 0:c=um(null,c,m,s,p);break e;case 1:c=jx(null,c,m,s,p);break e;case 11:c=Nx(null,c,m,s,p);break e;case 14:c=Px(null,c,m,Hn(m.type,s),p);break e}throw Error(r(306,m,""))}return c;case 0:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),um(s,c,m,v,p);case 1:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),jx(s,c,m,v,p);case 3:e:{if(Lx(c),s===null)throw Error(r(387));m=c.pendingProps,x=c.memoizedState,v=x.element,Q1(s,c),ud(c,m,null,p);var N=c.memoizedState;if(m=N.element,x.isDehydrated)if(x={element:m,isDehydrated:!1,cache:N.cache,pendingSuspenseBoundaries:N.pendingSuspenseBoundaries,transitions:N.transitions},c.updateQueue.baseState=x,c.memoizedState=x,c.flags&256){v=_i(Error(r(423)),c),c=zx(s,c,m,p,v);break e}else if(m!==v){v=_i(Error(r(424)),c),c=zx(s,c,m,p,v);break e}else for(pn=ma(c.stateNode.containerInfo.firstChild),dn=c,Ht=!0,Un=null,p=K1(c,null,m,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(di(),m===v){c=zo(s,c,p);break e}Ur(s,c,m,p)}c=c.child}return c;case 5:return rx(c),s===null&&Fh(c),m=c.type,v=c.pendingProps,x=s!==null?s.memoizedProps:null,N=v.children,Mh(m,v)?N=null:x!==null&&Mh(m,x)&&(c.flags|=32),Ix(s,c),Ur(s,c,N,p),c.child;case 6:return s===null&&Fh(c),null;case 13:return Fx(s,c,p);case 4:return Gh(c,c.stateNode.containerInfo),m=c.pendingProps,s===null?c.child=pi(c,null,m,p):Ur(s,c,m,p),c.child;case 11:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),Nx(s,c,m,v,p);case 7:return Ur(s,c,c.pendingProps,p),c.child;case 8:return Ur(s,c,c.pendingProps.children,p),c.child;case 12:return Ur(s,c,c.pendingProps.children,p),c.child;case 10:e:{if(m=c.type._context,v=c.pendingProps,x=c.memoizedProps,N=v.value,Lt(id,m._currentValue),m._currentValue=N,x!==null)if(Wn(x.value,N)){if(x.children===v.children&&!Xr.current){c=zo(s,c,p);break e}}else for(x=c.child,x!==null&&(x.return=c);x!==null;){var A=x.dependencies;if(A!==null){N=x.child;for(var W=A.firstContext;W!==null;){if(W.context===m){if(x.tag===1){W=Lo(-1,p&-p),W.tag=2;var te=x.updateQueue;if(te!==null){te=te.shared;var ue=te.pending;ue===null?W.next=W:(W.next=ue.next,ue.next=W),te.pending=W}}x.lanes|=p,W=x.alternate,W!==null&&(W.lanes|=p),qh(x.return,p,c),A.lanes|=p;break}W=W.next}}else if(x.tag===10)N=x.type===c.type?null:x.child;else if(x.tag===18){if(N=x.return,N===null)throw Error(r(341));N.lanes|=p,A=N.alternate,A!==null&&(A.lanes|=p),qh(N,p,c),N=x.sibling}else N=x.child;if(N!==null)N.return=x;else for(N=x;N!==null;){if(N===c){N=null;break}if(x=N.sibling,x!==null){x.return=N.return,N=x;break}N=N.return}x=N}Ur(s,c,v.children,p),c=c.child}return c;case 9:return v=c.type,m=c.pendingProps.children,hi(c,p),v=kn(v),m=m(v),c.flags|=1,Ur(s,c,m,p),c.child;case 14:return m=c.type,v=Hn(m,c.pendingProps),v=Hn(m.type,v),Px(s,c,m,v,p);case 15:return Rx(s,c,c.type,c.pendingProps,p);case 17:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),vd(s,c),c.tag=1,Gr(m)?(s=!0,td(c)):s=!1,hi(c,p),Cx(c,m,v),im(c,m,v,p),dm(null,c,m,!0,s,p);case 19:return Wx(s,c,p);case 22:return Ax(s,c,p)}throw Error(r(156,c.tag))};function pS(s,c){return qw(s,c)}function _A(s,c,p,m){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function En(s,c,p,m){return new _A(s,c,p,m)}function Mm(s){return s=s.prototype,!(!s||!s.isReactComponent)}function gA(s){if(typeof s=="function")return Mm(s)?1:0;if(s!=null){if(s=s.$$typeof,s===G)return 11;if(s===H)return 14}return 2}function $a(s,c){var p=s.alternate;return p===null?(p=En(s.tag,c,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p.alternate=s,s.alternate=p):(p.pendingProps=c,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=s.flags&14680064,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,c=s.dependencies,p.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p}function Dd(s,c,p,m,v,x){var N=2;if(m=s,typeof s=="function")Mm(s)&&(N=1);else if(typeof s=="string")N=5;else e:switch(s){case P:return cs(p.children,v,x,c);case j:N=8,v|=8;break;case z:return s=En(12,p,c,v|2),s.elementType=z,s.lanes=x,s;case B:return s=En(13,p,c,v),s.elementType=B,s.lanes=x,s;case F:return s=En(19,p,c,v),s.elementType=F,s.lanes=x,s;case ee:return Md(p,v,x,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case E:N=10;break e;case L:N=9;break e;case G:N=11;break e;case H:N=14;break e;case K:N=16,m=null;break e}throw Error(r(130,s==null?s:typeof s,""))}return c=En(N,p,c,v),c.elementType=s,c.type=m,c.lanes=x,c}function cs(s,c,p,m){return s=En(7,s,m,c),s.lanes=p,s}function Md(s,c,p,m){return s=En(22,s,m,c),s.elementType=ee,s.lanes=p,s.stateNode={isHidden:!1},s}function Nm(s,c,p){return s=En(6,s,null,c),s.lanes=p,s}function Pm(s,c,p){return c=En(4,s.children!==null?s.children:[],s.key,c),c.lanes=p,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function yA(s,c,p,m,v){this.tag=c,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sh(0),this.expirationTimes=sh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sh(0),this.identifierPrefix=m,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function Rm(s,c,p,m,v,x,N,A,W){return s=new yA(s,c,p,A,W),c===1?(c=1,x===!0&&(c|=8)):c=0,x=En(3,null,null,c),s.current=x,x.stateNode=s,x.memoizedState={element:m,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xh(x),s}function vA(s,c,p){var m=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Fm.exports=NA(),Fm.exports}var $S;function PA(){if($S)return zd;$S=1;var t=HO();return zd.createRoot=t.createRoot,zd.hydrateRoot=t.hydrateRoot,zd}var RA=PA();const It=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ws="8.47.0",Et=globalThis;function sf(t,e,r){const n=r||Et,o=n.__SENTRY__=n.__SENTRY__||{},a=o[ws]=o[ws]||{};return a[t]||(a[t]=e())}const Ls=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,AA="Sentry Logger ",Av=["debug","info","warn","error","log","assert","trace"],Pp={};function zs(t){if(!("console"in Et))return t();const e=Et.console,r={},n=Object.keys(Pp);n.forEach(o=>{const a=Pp[o];r[o]=e[o],e[o]=a});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function IA(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Ls?Av.forEach(r=>{e[r]=(...n)=>{t&&zs(()=>{Et.console[r](`${AA}[${r}]:`,...n)})}}):Av.forEach(r=>{e[r]=()=>{}}),e}const it=sf("logger",IA),qO=50,$s="?",ES=/\(error: (.*)\)/,TS=/captureMessage|captureException/;function VO(...t){const e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,o=0)=>{const a=[],i=r.split(` -`);for(let l=n;l1024)continue;const f=ES.test(u)?u.replace(ES,"$1"):u;if(!f.match(/\S*Error: /)){for(const h of e){const d=h(f);if(d){a.push(d);break}}if(a.length>=qO+o)break}}return LA(a.slice(o))}}function jA(t){return Array.isArray(t)?VO(...t):t}function LA(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(Fd(e).function||"")&&e.pop(),e.reverse(),TS.test(Fd(e).function||"")&&(e.pop(),TS.test(Fd(e).function||"")&&e.pop()),e.slice(0,qO).map(r=>({...r,filename:r.filename||Fd(e).filename,function:r.function||$s}))}function Fd(t){return t[t.length-1]||{}}const Um="";function La(t){try{return!t||typeof t!="function"?Um:t.name||Um}catch{return Um}}function OS(t){const e=t.exception;if(e){const r=[];try{return e.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch{return}}}const wp={},DS={};function Fs(t,e){wp[t]=wp[t]||[],wp[t].push(e)}function Bs(t,e){if(!DS[t]){DS[t]=!0;try{e()}catch(r){Ls&&it.error(`Error while instrumenting ${t}`,r)}}}function Kn(t,e){const r=t&&wp[t];if(r)for(const n of r)try{n(e)}catch(o){Ls&&it.error(`Error while triggering instrumentation handler. +`+x.stack}return{value:s,source:c,stack:v,digest:null}}function cm(s,c,p){return{value:s,source:null,stack:p??null,digest:c??null}}function lm(s,c){try{console.error(c.value)}catch(p){setTimeout(function(){throw p})}}var QR=typeof WeakMap=="function"?WeakMap:Map;function Ex(s,c,p){p=Lo(-1,p),p.tag=3,p.payload={element:null};var m=c.value;return p.callback=function(){kd||(kd=!0,km=m),lm(s,c)},p}function Tx(s,c,p){p=Lo(-1,p),p.tag=3;var m=s.type.getDerivedStateFromError;if(typeof m=="function"){var v=c.value;p.payload=function(){return m(v)},p.callback=function(){lm(s,c)}}var x=s.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(p.callback=function(){lm(s,c),typeof m!="function"&&(xa===null?xa=new Set([this]):xa.add(this));var N=c.stack;this.componentDidCatch(c.value,{componentStack:N!==null?N:""})}),p}function Ox(s,c,p){var m=s.pingCache;if(m===null){m=s.pingCache=new QR;var v=new Set;m.set(c,v)}else v=m.get(c),v===void 0&&(v=new Set,m.set(c,v));v.has(p)||(v.add(p),s=fA.bind(null,s,c,p),c.then(s,s))}function Dx(s){do{var c;if((c=s.tag===13)&&(c=s.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return s;s=s.return}while(s!==null);return null}function Mx(s,c,p,m,v){return s.mode&1?(s.flags|=65536,s.lanes=v,s):(s===c?s.flags|=65536:(s.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(c=Lo(-1,1),c.tag=2,ba(p,c,1))),p.lanes|=1),s)}var eA=O.ReactCurrentOwner,Jr=!1;function Ur(s,c,p,m){c.child=s===null?K1(c,null,p,m):pi(c,s.child,p,m)}function Nx(s,c,p,m,v){p=p.render;var x=c.ref;return hi(c,v),m=em(s,c,p,m,x,v),p=tm(),s!==null&&!Jr?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~v,Fo(s,c,v)):(Ht&&p&&jh(c),c.flags|=1,Ur(s,c,m,v),c.child)}function Px(s,c,p,m,v){if(s===null){var x=p.type;return typeof x=="function"&&!Mm(x)&&x.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(c.tag=15,c.type=x,Rx(s,c,x,m,v)):(s=Dd(p.type,null,m,c,c.mode,v),s.ref=c.ref,s.return=c,c.child=s)}if(x=s.child,!(s.lanes&v)){var N=x.memoizedProps;if(p=p.compare,p=p!==null?p:Kc,p(N,m)&&s.ref===c.ref)return Fo(s,c,v)}return c.flags|=1,s=$a(x,m),s.ref=c.ref,s.return=c,c.child=s}function Rx(s,c,p,m,v){if(s!==null){var x=s.memoizedProps;if(Kc(x,m)&&s.ref===c.ref)if(Jr=!1,c.pendingProps=m=x,(s.lanes&v)!==0)s.flags&131072&&(Jr=!0);else return c.lanes=s.lanes,Fo(s,c,v)}return um(s,c,p,m,v)}function Ax(s,c,p){var m=c.pendingProps,v=m.children,x=s!==null?s.memoizedState:null;if(m.mode==="hidden")if(!(c.mode&1))c.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lt(yi,fn),fn|=p;else{if(!(p&1073741824))return s=x!==null?x.baseLanes|p:p,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:s,cachePool:null,transitions:null},c.updateQueue=null,Lt(yi,fn),fn|=s,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},m=x!==null?x.baseLanes:p,Lt(yi,fn),fn|=m}else x!==null?(m=x.baseLanes|p,c.memoizedState=null):m=p,Lt(yi,fn),fn|=m;return Ur(s,c,v,p),c.child}function Ix(s,c){var p=c.ref;(s===null&&p!==null||s!==null&&s.ref!==p)&&(c.flags|=512,c.flags|=2097152)}function um(s,c,p,m,v){var x=Gr(p)?Za:Pr.current;return x=ci(c,x),hi(c,v),p=em(s,c,p,m,x,v),m=tm(),s!==null&&!Jr?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~v,Fo(s,c,v)):(Ht&&m&&jh(c),c.flags|=1,Ur(s,c,p,v),c.child)}function jx(s,c,p,m,v){if(Gr(p)){var x=!0;td(c)}else x=!1;if(hi(c,v),c.stateNode===null)vd(s,c),Cx(c,p,m),im(c,p,m,v),m=!0;else if(s===null){var N=c.stateNode,A=c.memoizedProps;N.props=A;var W=N.context,te=p.contextType;typeof te=="object"&&te!==null?te=kn(te):(te=Gr(p)?Za:Pr.current,te=ci(c,te));var ue=p.getDerivedStateFromProps,fe=typeof ue=="function"||typeof N.getSnapshotBeforeUpdate=="function";fe||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(A!==m||W!==te)&&$x(c,N,m,te),va=!1;var le=c.memoizedState;N.state=le,ud(c,m,N,v),W=c.memoizedState,A!==m||le!==W||Xr.current||va?(typeof ue=="function"&&(sm(c,p,ue,m),W=c.memoizedState),(A=va||kx(c,p,A,m,le,W,te))?(fe||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount=="function"&&(c.flags|=4194308)):(typeof N.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=m,c.memoizedState=W),N.props=m,N.state=W,N.context=te,m=A):(typeof N.componentDidMount=="function"&&(c.flags|=4194308),m=!1)}else{N=c.stateNode,Q1(s,c),A=c.memoizedProps,te=c.type===c.elementType?A:Hn(c.type,A),N.props=te,fe=c.pendingProps,le=N.context,W=p.contextType,typeof W=="object"&&W!==null?W=kn(W):(W=Gr(p)?Za:Pr.current,W=ci(c,W));var Ae=p.getDerivedStateFromProps;(ue=typeof Ae=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(A!==fe||le!==W)&&$x(c,N,m,W),va=!1,le=c.memoizedState,N.state=le,ud(c,m,N,v);var je=c.memoizedState;A!==fe||le!==je||Xr.current||va?(typeof Ae=="function"&&(sm(c,p,Ae,m),je=c.memoizedState),(te=va||kx(c,p,te,m,le,je,W)||!1)?(ue||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(m,je,W),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(m,je,W)),typeof N.componentDidUpdate=="function"&&(c.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof N.componentDidUpdate!="function"||A===s.memoizedProps&&le===s.memoizedState||(c.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||A===s.memoizedProps&&le===s.memoizedState||(c.flags|=1024),c.memoizedProps=m,c.memoizedState=je),N.props=m,N.state=je,N.context=W,m=te):(typeof N.componentDidUpdate!="function"||A===s.memoizedProps&&le===s.memoizedState||(c.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||A===s.memoizedProps&&le===s.memoizedState||(c.flags|=1024),m=!1)}return dm(s,c,p,m,x,v)}function dm(s,c,p,m,v,x){Ix(s,c);var N=(c.flags&128)!==0;if(!m&&!N)return v&&W1(c,p,!1),Fo(s,c,x);m=c.stateNode,eA.current=c;var A=N&&typeof p.getDerivedStateFromError!="function"?null:m.render();return c.flags|=1,s!==null&&N?(c.child=pi(c,s.child,null,x),c.child=pi(c,null,A,x)):Ur(s,c,A,x),c.memoizedState=m.state,v&&W1(c,p,!0),c.child}function Lx(s){var c=s.stateNode;c.pendingContext?z1(s,c.pendingContext,c.pendingContext!==c.context):c.context&&z1(s,c.context,!1),Gh(s,c.containerInfo)}function Fx(s,c,p,m,v){return di(),Bh(v),c.flags|=256,Ur(s,c,p,m),c.child}var pm={dehydrated:null,treeContext:null,retryLane:0};function fm(s){return{baseLanes:s,cachePool:null,transitions:null}}function zx(s,c,p){var m=c.pendingProps,v=Yt.current,x=!1,N=(c.flags&128)!==0,A;if((A=N)||(A=s!==null&&s.memoizedState===null?!1:(v&2)!==0),A?(x=!0,c.flags&=-129):(s===null||s.memoizedState!==null)&&(v|=1),Lt(Yt,v&1),s===null)return zh(c),s=c.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?(c.mode&1?s.data==="$!"?c.lanes=8:c.lanes=1073741824:c.lanes=1,null):(N=m.children,s=m.fallback,x?(m=c.mode,x=c.child,N={mode:"hidden",children:N},!(m&1)&&x!==null?(x.childLanes=0,x.pendingProps=N):x=Md(N,m,0,null),s=cs(s,m,p,null),x.return=c,s.return=c,x.sibling=s,c.child=x,c.child.memoizedState=fm(p),c.memoizedState=pm,s):hm(c,N));if(v=s.memoizedState,v!==null&&(A=v.dehydrated,A!==null))return tA(s,c,N,m,A,v,p);if(x){x=m.fallback,N=c.mode,v=s.child,A=v.sibling;var W={mode:"hidden",children:m.children};return!(N&1)&&c.child!==v?(m=c.child,m.childLanes=0,m.pendingProps=W,c.deletions=null):(m=$a(v,W),m.subtreeFlags=v.subtreeFlags&14680064),A!==null?x=$a(A,x):(x=cs(x,N,p,null),x.flags|=2),x.return=c,m.return=c,m.sibling=x,c.child=m,m=x,x=c.child,N=s.child.memoizedState,N=N===null?fm(p):{baseLanes:N.baseLanes|p,cachePool:null,transitions:N.transitions},x.memoizedState=N,x.childLanes=s.childLanes&~p,c.memoizedState=pm,m}return x=s.child,s=x.sibling,m=$a(x,{mode:"visible",children:m.children}),!(c.mode&1)&&(m.lanes=p),m.return=c,m.sibling=null,s!==null&&(p=c.deletions,p===null?(c.deletions=[s],c.flags|=16):p.push(s)),c.child=m,c.memoizedState=null,m}function hm(s,c){return c=Md({mode:"visible",children:c},s.mode,0,null),c.return=s,s.child=c}function yd(s,c,p,m){return m!==null&&Bh(m),pi(c,s.child,null,p),s=hm(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function tA(s,c,p,m,v,x,N){if(p)return c.flags&256?(c.flags&=-257,m=cm(Error(r(422))),yd(s,c,N,m)):c.memoizedState!==null?(c.child=s.child,c.flags|=128,null):(x=m.fallback,v=c.mode,m=Md({mode:"visible",children:m.children},v,0,null),x=cs(x,v,N,null),x.flags|=2,m.return=c,x.return=c,m.sibling=x,c.child=m,c.mode&1&&pi(c,s.child,null,N),c.child.memoizedState=fm(N),c.memoizedState=pm,x);if(!(c.mode&1))return yd(s,c,N,null);if(v.data==="$!"){if(m=v.nextSibling&&v.nextSibling.dataset,m)var A=m.dgst;return m=A,x=Error(r(419)),m=cm(x,m,void 0),yd(s,c,N,m)}if(A=(N&s.childLanes)!==0,Jr||A){if(m=br,m!==null){switch(N&-N){case 4:v=2;break;case 16:v=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:v=32;break;case 536870912:v=268435456;break;default:v=0}v=v&(m.suspendedLanes|N)?0:v,v!==0&&v!==x.retryLane&&(x.retryLane=v,jo(s,v),Xn(m,s,v,-1))}return Dm(),m=cm(Error(r(421))),yd(s,c,N,m)}return v.data==="$?"?(c.flags|=128,c.child=s.child,c=hA.bind(null,s),v._reactRetry=c,null):(s=x.treeContext,pn=ma(v.nextSibling),dn=c,Ht=!0,Un=null,s!==null&&(xn[Sn++]=Ao,xn[Sn++]=Io,xn[Sn++]=Qa,Ao=s.id,Io=s.overflow,Qa=c),c=hm(c,m.children),c.flags|=4096,c)}function Bx(s,c,p){s.lanes|=c;var m=s.alternate;m!==null&&(m.lanes|=c),qh(s.return,c,p)}function mm(s,c,p,m,v){var x=s.memoizedState;x===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:m,tail:p,tailMode:v}:(x.isBackwards=c,x.rendering=null,x.renderingStartTime=0,x.last=m,x.tail=p,x.tailMode=v)}function Wx(s,c,p){var m=c.pendingProps,v=m.revealOrder,x=m.tail;if(Ur(s,c,m.children,p),m=Yt.current,m&2)m=m&1|2,c.flags|=128;else{if(s!==null&&s.flags&128)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Bx(s,p,c);else if(s.tag===19)Bx(s,p,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}m&=1}if(Lt(Yt,m),!(c.mode&1))c.memoizedState=null;else switch(v){case"forwards":for(p=c.child,v=null;p!==null;)s=p.alternate,s!==null&&dd(s)===null&&(v=p),p=p.sibling;p=v,p===null?(v=c.child,c.child=null):(v=p.sibling,p.sibling=null),mm(c,!1,v,p,x);break;case"backwards":for(p=null,v=c.child,c.child=null;v!==null;){if(s=v.alternate,s!==null&&dd(s)===null){c.child=v;break}s=v.sibling,v.sibling=p,p=v,v=s}mm(c,!0,p,null,x);break;case"together":mm(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function vd(s,c){!(c.mode&1)&&s!==null&&(s.alternate=null,c.alternate=null,c.flags|=2)}function Fo(s,c,p){if(s!==null&&(c.dependencies=s.dependencies),os|=c.lanes,!(p&c.childLanes))return null;if(s!==null&&c.child!==s.child)throw Error(r(153));if(c.child!==null){for(s=c.child,p=$a(s,s.pendingProps),c.child=p,p.return=c;s.sibling!==null;)s=s.sibling,p=p.sibling=$a(s,s.pendingProps),p.return=c;p.sibling=null}return c.child}function rA(s,c,p){switch(c.tag){case 3:Lx(c),di();break;case 5:rx(c);break;case 1:Gr(c.type)&&td(c);break;case 4:Gh(c,c.stateNode.containerInfo);break;case 10:var m=c.type._context,v=c.memoizedProps.value;Lt(id,m._currentValue),m._currentValue=v;break;case 13:if(m=c.memoizedState,m!==null)return m.dehydrated!==null?(Lt(Yt,Yt.current&1),c.flags|=128,null):p&c.child.childLanes?zx(s,c,p):(Lt(Yt,Yt.current&1),s=Fo(s,c,p),s!==null?s.sibling:null);Lt(Yt,Yt.current&1);break;case 19:if(m=(p&c.childLanes)!==0,s.flags&128){if(m)return Wx(s,c,p);c.flags|=128}if(v=c.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Lt(Yt,Yt.current),m)break;return null;case 22:case 23:return c.lanes=0,Ax(s,c,p)}return Fo(s,c,p)}var Ux,_m,Hx,qx;Ux=function(s,c){for(var p=c.child;p!==null;){if(p.tag===5||p.tag===6)s.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===c)break;for(;p.sibling===null;){if(p.return===null||p.return===c)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},_m=function(){},Hx=function(s,c,p,m){var v=s.memoizedProps;if(v!==m){s=c.stateNode,rs(ao.current);var x=null;switch(p){case"input":v=We(s,v),m=We(s,m),x=[];break;case"select":v=re({},v,{value:void 0}),m=re({},m,{value:void 0}),x=[];break;case"textarea":v=Se(s,v),m=Se(s,m),x=[];break;default:typeof v.onClick!="function"&&typeof m.onClick=="function"&&(s.onclick=Zu)}_e(p,m);var N;p=null;for(te in v)if(!m.hasOwnProperty(te)&&v.hasOwnProperty(te)&&v[te]!=null)if(te==="style"){var A=v[te];for(N in A)A.hasOwnProperty(N)&&(p||(p={}),p[N]="")}else te!=="dangerouslySetInnerHTML"&&te!=="children"&&te!=="suppressContentEditableWarning"&&te!=="suppressHydrationWarning"&&te!=="autoFocus"&&(o.hasOwnProperty(te)?x||(x=[]):(x=x||[]).push(te,null));for(te in m){var W=m[te];if(A=v!=null?v[te]:void 0,m.hasOwnProperty(te)&&W!==A&&(W!=null||A!=null))if(te==="style")if(A){for(N in A)!A.hasOwnProperty(N)||W&&W.hasOwnProperty(N)||(p||(p={}),p[N]="");for(N in W)W.hasOwnProperty(N)&&A[N]!==W[N]&&(p||(p={}),p[N]=W[N])}else p||(x||(x=[]),x.push(te,p)),p=W;else te==="dangerouslySetInnerHTML"?(W=W?W.__html:void 0,A=A?A.__html:void 0,W!=null&&A!==W&&(x=x||[]).push(te,W)):te==="children"?typeof W!="string"&&typeof W!="number"||(x=x||[]).push(te,""+W):te!=="suppressContentEditableWarning"&&te!=="suppressHydrationWarning"&&(o.hasOwnProperty(te)?(W!=null&&te==="onScroll"&&Bt("scroll",s),x||A===W||(x=[])):(x=x||[]).push(te,W))}p&&(x=x||[]).push("style",p);var te=x;(c.updateQueue=te)&&(c.flags|=4)}},qx=function(s,c,p,m){p!==m&&(c.flags|=4)};function pl(s,c){if(!Ht)switch(s.tailMode){case"hidden":c=s.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?s.tail=null:p.sibling=null;break;case"collapsed":p=s.tail;for(var m=null;p!==null;)p.alternate!==null&&(m=p),p=p.sibling;m===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:m.sibling=null}}function Ar(s){var c=s.alternate!==null&&s.alternate.child===s.child,p=0,m=0;if(c)for(var v=s.child;v!==null;)p|=v.lanes|v.childLanes,m|=v.subtreeFlags&14680064,m|=v.flags&14680064,v.return=s,v=v.sibling;else for(v=s.child;v!==null;)p|=v.lanes|v.childLanes,m|=v.subtreeFlags,m|=v.flags,v.return=s,v=v.sibling;return s.subtreeFlags|=m,s.childLanes=p,c}function nA(s,c,p){var m=c.pendingProps;switch(Lh(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ar(c),null;case 1:return Gr(c.type)&&ed(),Ar(c),null;case 3:return m=c.stateNode,mi(),Wt(Xr),Wt(Pr),Kh(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(s===null||s.child===null)&&(ad(c)?c.flags|=4:s===null||s.memoizedState.isDehydrated&&!(c.flags&256)||(c.flags|=1024,Un!==null&&(Em(Un),Un=null))),_m(s,c),Ar(c),null;case 5:Jh(c);var v=rs(il.current);if(p=c.type,s!==null&&c.stateNode!=null)Hx(s,c,p,m,v),s.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!m){if(c.stateNode===null)throw Error(r(166));return Ar(c),null}if(s=rs(ao.current),ad(c)){m=c.stateNode,p=c.type;var x=c.memoizedProps;switch(m[oo]=c,m[rl]=x,s=(c.mode&1)!==0,p){case"dialog":Bt("cancel",m),Bt("close",m);break;case"iframe":case"object":case"embed":Bt("load",m);break;case"video":case"audio":for(v=0;v<\/script>",s=s.removeChild(s.firstChild)):typeof m.is=="string"?s=N.createElement(p,{is:m.is}):(s=N.createElement(p),p==="select"&&(N=s,m.multiple?N.multiple=!0:m.size&&(N.size=m.size))):s=N.createElementNS(s,p),s[oo]=c,s[rl]=m,Ux(s,c,!1,!1),c.stateNode=s;e:{switch(N=Fe(p,m),p){case"dialog":Bt("cancel",s),Bt("close",s),v=m;break;case"iframe":case"object":case"embed":Bt("load",s),v=m;break;case"video":case"audio":for(v=0;vvi&&(c.flags|=128,m=!0,pl(x,!1),c.lanes=4194304)}else{if(!m)if(s=dd(N),s!==null){if(c.flags|=128,m=!0,p=s.updateQueue,p!==null&&(c.updateQueue=p,c.flags|=4),pl(x,!0),x.tail===null&&x.tailMode==="hidden"&&!N.alternate&&!Ht)return Ar(c),null}else 2*sr()-x.renderingStartTime>vi&&p!==1073741824&&(c.flags|=128,m=!0,pl(x,!1),c.lanes=4194304);x.isBackwards?(N.sibling=c.child,c.child=N):(p=x.last,p!==null?p.sibling=N:c.child=N,x.last=N)}return x.tail!==null?(c=x.tail,x.rendering=c,x.tail=c.sibling,x.renderingStartTime=sr(),c.sibling=null,p=Yt.current,Lt(Yt,m?p&1|2:p&1),c):(Ar(c),null);case 22:case 23:return Om(),m=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==m&&(c.flags|=8192),m&&c.mode&1?fn&1073741824&&(Ar(c),c.subtreeFlags&6&&(c.flags|=8192)):Ar(c),null;case 24:return null;case 25:return null}throw Error(r(156,c.tag))}function oA(s,c){switch(Lh(c),c.tag){case 1:return Gr(c.type)&&ed(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return mi(),Wt(Xr),Wt(Pr),Kh(),s=c.flags,s&65536&&!(s&128)?(c.flags=s&-65537|128,c):null;case 5:return Jh(c),null;case 13:if(Wt(Yt),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));di()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return Wt(Yt),null;case 4:return mi(),null;case 10:return Hh(c.type._context),null;case 22:case 23:return Om(),null;case 24:return null;default:return null}}var bd=!1,Ir=!1,aA=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function gi(s,c){var p=s.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(m){er(s,c,m)}else p.current=null}function gm(s,c,p){try{p()}catch(m){er(s,c,m)}}var Vx=!1;function sA(s,c){if(Oh=zu,s=k1(),wh(s)){if("selectionStart"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var m=p.getSelection&&p.getSelection();if(m&&m.rangeCount!==0){p=m.anchorNode;var v=m.anchorOffset,x=m.focusNode;m=m.focusOffset;try{p.nodeType,x.nodeType}catch{p=null;break e}var N=0,A=-1,W=-1,te=0,ue=0,fe=s,le=null;t:for(;;){for(var Ae;fe!==p||v!==0&&fe.nodeType!==3||(A=N+v),fe!==x||m!==0&&fe.nodeType!==3||(W=N+m),fe.nodeType===3&&(N+=fe.nodeValue.length),(Ae=fe.firstChild)!==null;)le=fe,fe=Ae;for(;;){if(fe===s)break t;if(le===p&&++te===v&&(A=N),le===x&&++ue===m&&(W=N),(Ae=fe.nextSibling)!==null)break;fe=le,le=fe.parentNode}fe=Ae}p=A===-1||W===-1?null:{start:A,end:W}}else p=null}p=p||{start:0,end:0}}else p=null;for(Dh={focusedElem:s,selectionRange:p},zu=!1,Ie=c;Ie!==null;)if(c=Ie,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,Ie=s;else for(;Ie!==null;){c=Ie;try{var je=c.alternate;if(c.flags&1024)switch(c.tag){case 0:case 11:case 15:break;case 1:if(je!==null){var Le=je.memoizedProps,ir=je.memoizedState,J=c.stateNode,V=J.getSnapshotBeforeUpdate(c.elementType===c.type?Le:Hn(c.type,Le),ir);J.__reactInternalSnapshotBeforeUpdate=V}break;case 3:var Z=c.stateNode.containerInfo;Z.nodeType===1?Z.textContent="":Z.nodeType===9&&Z.documentElement&&Z.removeChild(Z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(be){er(c,c.return,be)}if(s=c.sibling,s!==null){s.return=c.return,Ie=s;break}Ie=c.return}return je=Vx,Vx=!1,je}function fl(s,c,p){var m=c.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var v=m=m.next;do{if((v.tag&s)===s){var x=v.destroy;v.destroy=void 0,x!==void 0&&gm(c,p,x)}v=v.next}while(v!==m)}}function wd(s,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&s)===s){var m=p.create;p.destroy=m()}p=p.next}while(p!==c)}}function ym(s){var c=s.ref;if(c!==null){var p=s.stateNode;switch(s.tag){case 5:s=p;break;default:s=p}typeof c=="function"?c(s):c.current=s}}function Xx(s){var c=s.alternate;c!==null&&(s.alternate=null,Xx(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[oo],delete c[rl],delete c[Rh],delete c[WR],delete c[UR])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function Gx(s){return s.tag===5||s.tag===3||s.tag===4}function Jx(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Gx(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function vm(s,c,p){var m=s.tag;if(m===5||m===6)s=s.stateNode,c?p.nodeType===8?p.parentNode.insertBefore(s,c):p.insertBefore(s,c):(p.nodeType===8?(c=p.parentNode,c.insertBefore(s,p)):(c=p,c.appendChild(s)),p=p._reactRootContainer,p!=null||c.onclick!==null||(c.onclick=Zu));else if(m!==4&&(s=s.child,s!==null))for(vm(s,c,p),s=s.sibling;s!==null;)vm(s,c,p),s=s.sibling}function bm(s,c,p){var m=s.tag;if(m===5||m===6)s=s.stateNode,c?p.insertBefore(s,c):p.appendChild(s);else if(m!==4&&(s=s.child,s!==null))for(bm(s,c,p),s=s.sibling;s!==null;)bm(s,c,p),s=s.sibling}var $r=null,qn=!1;function wa(s,c,p){for(p=p.child;p!==null;)Yx(s,c,p),p=p.sibling}function Yx(s,c,p){if(no&&typeof no.onCommitFiberUnmount=="function")try{no.onCommitFiberUnmount(Ru,p)}catch{}switch(p.tag){case 5:Ir||gi(p,c);case 6:var m=$r,v=qn;$r=null,wa(s,c,p),$r=m,qn=v,$r!==null&&(qn?(s=$r,p=p.stateNode,s.nodeType===8?s.parentNode.removeChild(p):s.removeChild(p)):$r.removeChild(p.stateNode));break;case 18:$r!==null&&(qn?(s=$r,p=p.stateNode,s.nodeType===8?Ph(s.parentNode,p):s.nodeType===1&&Ph(s,p),qc(s)):Ph($r,p.stateNode));break;case 4:m=$r,v=qn,$r=p.stateNode.containerInfo,qn=!0,wa(s,c,p),$r=m,qn=v;break;case 0:case 11:case 14:case 15:if(!Ir&&(m=p.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){v=m=m.next;do{var x=v,N=x.destroy;x=x.tag,N!==void 0&&(x&2||x&4)&&gm(p,c,N),v=v.next}while(v!==m)}wa(s,c,p);break;case 1:if(!Ir&&(gi(p,c),m=p.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=p.memoizedProps,m.state=p.memoizedState,m.componentWillUnmount()}catch(A){er(p,c,A)}wa(s,c,p);break;case 21:wa(s,c,p);break;case 22:p.mode&1?(Ir=(m=Ir)||p.memoizedState!==null,wa(s,c,p),Ir=m):wa(s,c,p);break;default:wa(s,c,p)}}function Kx(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var p=s.stateNode;p===null&&(p=s.stateNode=new aA),c.forEach(function(m){var v=mA.bind(null,s,m);p.has(m)||(p.add(m),m.then(v,v))})}}function Vn(s,c){var p=c.deletions;if(p!==null)for(var m=0;mv&&(v=N),m&=~x}if(m=v,m=sr()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*cA(m/1960))-m,10s?16:s,Sa===null)var m=!1;else{if(s=Sa,Sa=null,$d=0,xt&6)throw Error(r(331));var v=xt;for(xt|=4,Ie=s.current;Ie!==null;){var x=Ie,N=x.child;if(Ie.flags&16){var A=x.deletions;if(A!==null){for(var W=0;Wsr()-Sm?ss(s,0):xm|=p),Kr(s,c)}function uS(s,c){c===0&&(s.mode&1?(c=Iu,Iu<<=1,!(Iu&130023424)&&(Iu=4194304)):c=1);var p=Hr();s=jo(s,c),s!==null&&(zc(s,c,p),Kr(s,p))}function hA(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),uS(s,p)}function mA(s,c){var p=0;switch(s.tag){case 13:var m=s.stateNode,v=s.memoizedState;v!==null&&(p=v.retryLane);break;case 19:m=s.stateNode;break;default:throw Error(r(314))}m!==null&&m.delete(c),uS(s,p)}var dS;dS=function(s,c,p){if(s!==null)if(s.memoizedProps!==c.pendingProps||Xr.current)Jr=!0;else{if(!(s.lanes&p)&&!(c.flags&128))return Jr=!1,rA(s,c,p);Jr=!!(s.flags&131072)}else Jr=!1,Ht&&c.flags&1048576&&H1(c,od,c.index);switch(c.lanes=0,c.tag){case 2:var m=c.type;vd(s,c),s=c.pendingProps;var v=ci(c,Pr.current);hi(c,p),v=em(null,c,m,s,v,p);var x=tm();return c.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,Gr(m)?(x=!0,td(c)):x=!1,c.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,Xh(c),v.updater=gd,c.stateNode=v,v._reactInternals=c,im(c,m,s,p),c=dm(null,c,m,!0,x,p)):(c.tag=0,Ht&&x&&jh(c),Ur(null,c,v,p),c=c.child),c;case 16:m=c.elementType;e:{switch(vd(s,c),s=c.pendingProps,v=m._init,m=v(m._payload),c.type=m,v=c.tag=gA(m),s=Hn(m,s),v){case 0:c=um(null,c,m,s,p);break e;case 1:c=jx(null,c,m,s,p);break e;case 11:c=Nx(null,c,m,s,p);break e;case 14:c=Px(null,c,m,Hn(m.type,s),p);break e}throw Error(r(306,m,""))}return c;case 0:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),um(s,c,m,v,p);case 1:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),jx(s,c,m,v,p);case 3:e:{if(Lx(c),s===null)throw Error(r(387));m=c.pendingProps,x=c.memoizedState,v=x.element,Q1(s,c),ud(c,m,null,p);var N=c.memoizedState;if(m=N.element,x.isDehydrated)if(x={element:m,isDehydrated:!1,cache:N.cache,pendingSuspenseBoundaries:N.pendingSuspenseBoundaries,transitions:N.transitions},c.updateQueue.baseState=x,c.memoizedState=x,c.flags&256){v=_i(Error(r(423)),c),c=Fx(s,c,m,p,v);break e}else if(m!==v){v=_i(Error(r(424)),c),c=Fx(s,c,m,p,v);break e}else for(pn=ma(c.stateNode.containerInfo.firstChild),dn=c,Ht=!0,Un=null,p=K1(c,null,m,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(di(),m===v){c=Fo(s,c,p);break e}Ur(s,c,m,p)}c=c.child}return c;case 5:return rx(c),s===null&&zh(c),m=c.type,v=c.pendingProps,x=s!==null?s.memoizedProps:null,N=v.children,Mh(m,v)?N=null:x!==null&&Mh(m,x)&&(c.flags|=32),Ix(s,c),Ur(s,c,N,p),c.child;case 6:return s===null&&zh(c),null;case 13:return zx(s,c,p);case 4:return Gh(c,c.stateNode.containerInfo),m=c.pendingProps,s===null?c.child=pi(c,null,m,p):Ur(s,c,m,p),c.child;case 11:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),Nx(s,c,m,v,p);case 7:return Ur(s,c,c.pendingProps,p),c.child;case 8:return Ur(s,c,c.pendingProps.children,p),c.child;case 12:return Ur(s,c,c.pendingProps.children,p),c.child;case 10:e:{if(m=c.type._context,v=c.pendingProps,x=c.memoizedProps,N=v.value,Lt(id,m._currentValue),m._currentValue=N,x!==null)if(Wn(x.value,N)){if(x.children===v.children&&!Xr.current){c=Fo(s,c,p);break e}}else for(x=c.child,x!==null&&(x.return=c);x!==null;){var A=x.dependencies;if(A!==null){N=x.child;for(var W=A.firstContext;W!==null;){if(W.context===m){if(x.tag===1){W=Lo(-1,p&-p),W.tag=2;var te=x.updateQueue;if(te!==null){te=te.shared;var ue=te.pending;ue===null?W.next=W:(W.next=ue.next,ue.next=W),te.pending=W}}x.lanes|=p,W=x.alternate,W!==null&&(W.lanes|=p),qh(x.return,p,c),A.lanes|=p;break}W=W.next}}else if(x.tag===10)N=x.type===c.type?null:x.child;else if(x.tag===18){if(N=x.return,N===null)throw Error(r(341));N.lanes|=p,A=N.alternate,A!==null&&(A.lanes|=p),qh(N,p,c),N=x.sibling}else N=x.child;if(N!==null)N.return=x;else for(N=x;N!==null;){if(N===c){N=null;break}if(x=N.sibling,x!==null){x.return=N.return,N=x;break}N=N.return}x=N}Ur(s,c,v.children,p),c=c.child}return c;case 9:return v=c.type,m=c.pendingProps.children,hi(c,p),v=kn(v),m=m(v),c.flags|=1,Ur(s,c,m,p),c.child;case 14:return m=c.type,v=Hn(m,c.pendingProps),v=Hn(m.type,v),Px(s,c,m,v,p);case 15:return Rx(s,c,c.type,c.pendingProps,p);case 17:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),vd(s,c),c.tag=1,Gr(m)?(s=!0,td(c)):s=!1,hi(c,p),Cx(c,m,v),im(c,m,v,p),dm(null,c,m,!0,s,p);case 19:return Wx(s,c,p);case 22:return Ax(s,c,p)}throw Error(r(156,c.tag))};function pS(s,c){return qw(s,c)}function _A(s,c,p,m){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function En(s,c,p,m){return new _A(s,c,p,m)}function Mm(s){return s=s.prototype,!(!s||!s.isReactComponent)}function gA(s){if(typeof s=="function")return Mm(s)?1:0;if(s!=null){if(s=s.$$typeof,s===G)return 11;if(s===H)return 14}return 2}function $a(s,c){var p=s.alternate;return p===null?(p=En(s.tag,c,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p.alternate=s,s.alternate=p):(p.pendingProps=c,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=s.flags&14680064,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,c=s.dependencies,p.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p}function Dd(s,c,p,m,v,x){var N=2;if(m=s,typeof s=="function")Mm(s)&&(N=1);else if(typeof s=="string")N=5;else e:switch(s){case P:return cs(p.children,v,x,c);case j:N=8,v|=8;break;case F:return s=En(12,p,c,v|2),s.elementType=F,s.lanes=x,s;case B:return s=En(13,p,c,v),s.elementType=B,s.lanes=x,s;case z:return s=En(19,p,c,v),s.elementType=z,s.lanes=x,s;case ee:return Md(p,v,x,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case E:N=10;break e;case L:N=9;break e;case G:N=11;break e;case H:N=14;break e;case K:N=16,m=null;break e}throw Error(r(130,s==null?s:typeof s,""))}return c=En(N,p,c,v),c.elementType=s,c.type=m,c.lanes=x,c}function cs(s,c,p,m){return s=En(7,s,m,c),s.lanes=p,s}function Md(s,c,p,m){return s=En(22,s,m,c),s.elementType=ee,s.lanes=p,s.stateNode={isHidden:!1},s}function Nm(s,c,p){return s=En(6,s,null,c),s.lanes=p,s}function Pm(s,c,p){return c=En(4,s.children!==null?s.children:[],s.key,c),c.lanes=p,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function yA(s,c,p,m,v){this.tag=c,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sh(0),this.expirationTimes=sh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sh(0),this.identifierPrefix=m,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function Rm(s,c,p,m,v,x,N,A,W){return s=new yA(s,c,p,A,W),c===1?(c=1,x===!0&&(c|=8)):c=0,x=En(3,null,null,c),s.current=x,x.stateNode=s,x.memoizedState={element:m,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xh(x),s}function vA(s,c,p){var m=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),zm.exports=NA(),zm.exports}var $S;function PA(){if($S)return Fd;$S=1;var t=HO();return Fd.createRoot=t.createRoot,Fd.hydrateRoot=t.hydrateRoot,Fd}var RA=PA();const It=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ws="8.47.0",$t=globalThis;function sf(t,e,r){const n=r||$t,o=n.__SENTRY__=n.__SENTRY__||{},a=o[ws]=o[ws]||{};return a[t]||(a[t]=e())}const Ls=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,AA="Sentry Logger ",Av=["debug","info","warn","error","log","assert","trace"],Pp={};function Fs(t){if(!("console"in $t))return t();const e=$t.console,r={},n=Object.keys(Pp);n.forEach(o=>{const a=Pp[o];r[o]=e[o],e[o]=a});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function IA(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Ls?Av.forEach(r=>{e[r]=(...n)=>{t&&Fs(()=>{$t.console[r](`${AA}[${r}]:`,...n)})}}):Av.forEach(r=>{e[r]=()=>{}}),e}const it=sf("logger",IA),qO=50,$s="?",ES=/\(error: (.*)\)/,TS=/captureMessage|captureException/;function VO(...t){const e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,o=0)=>{const a=[],i=r.split(` +`);for(let l=n;l1024)continue;const f=ES.test(u)?u.replace(ES,"$1"):u;if(!f.match(/\S*Error: /)){for(const h of e){const d=h(f);if(d){a.push(d);break}}if(a.length>=qO+o)break}}return LA(a.slice(o))}}function jA(t){return Array.isArray(t)?VO(...t):t}function LA(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(zd(e).function||"")&&e.pop(),e.reverse(),TS.test(zd(e).function||"")&&(e.pop(),TS.test(zd(e).function||"")&&e.pop()),e.slice(0,qO).map(r=>({...r,filename:r.filename||zd(e).filename,function:r.function||$s}))}function zd(t){return t[t.length-1]||{}}const Um="";function La(t){try{return!t||typeof t!="function"?Um:t.name||Um}catch{return Um}}function OS(t){const e=t.exception;if(e){const r=[];try{return e.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch{return}}}const wp={},DS={};function zs(t,e){wp[t]=wp[t]||[],wp[t].push(e)}function Bs(t,e){if(!DS[t]){DS[t]=!0;try{e()}catch(r){Ls&&it.error(`Error while instrumenting ${t}`,r)}}}function Kn(t,e){const r=t&&wp[t];if(r)for(const n of r)try{n(e)}catch(o){Ls&&it.error(`Error while triggering instrumentation handler. Type: ${t} Name: ${La(n)} -Error:`,o)}}let Hm=null;function zA(t){const e="error";Fs(e,t),Bs(e,FA)}function FA(){Hm=Et.onerror,Et.onerror=function(t,e,r,n,o){return Kn("error",{column:n,error:o,line:r,msg:t,url:e}),Hm?Hm.apply(this,arguments):!1},Et.onerror.__SENTRY_INSTRUMENTED__=!0}let qm=null;function BA(t){const e="unhandledrejection";Fs(e,t),Bs(e,WA)}function WA(){qm=Et.onunhandledrejection,Et.onunhandledrejection=function(t){return Kn("unhandledrejection",t),qm?qm.apply(this,arguments):!0},Et.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function cf(){return X0(Et),Et}function X0(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||ws,e[ws]=e[ws]||{}}const XO=Object.prototype.toString;function G0(t){switch(XO.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Es(t,Error)}}function Tc(t,e){return XO.call(t)===`[object ${e}]`}function GO(t){return Tc(t,"ErrorEvent")}function MS(t){return Tc(t,"DOMError")}function UA(t){return Tc(t,"DOMException")}function Yo(t){return Tc(t,"String")}function J0(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Y0(t){return t===null||J0(t)||typeof t!="object"&&typeof t!="function"}function fc(t){return Tc(t,"Object")}function lf(t){return typeof Event<"u"&&Es(t,Event)}function HA(t){return typeof Element<"u"&&Es(t,Element)}function qA(t){return Tc(t,"RegExp")}function uf(t){return!!(t&&t.then&&typeof t.then=="function")}function VA(t){return fc(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Es(t,e){try{return t instanceof e}catch{return!1}}function JO(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}const K0=Et,XA=80;function YO(t,e={}){if(!t)return"";try{let r=t;const n=5,o=[];let a=0,i=0;const l=" > ",u=l.length;let f;const h=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||XA;for(;r&&a++1&&i+o.length*u+f.length>=d));)o.push(f),i+=f.length,r=r.parentNode;return o.reverse().join(l)}catch{return""}}function GA(t,e){const r=t,n=[];if(!r||!r.tagName)return"";if(K0.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const o=e&&e.length?e.filter(i=>r.getAttribute(i)).map(i=>[i,r.getAttribute(i)]):null;if(o&&o.length)o.forEach(i=>{n.push(`[${i[0]}="${i[1]}"]`)});else{r.id&&n.push(`#${r.id}`);const i=r.className;if(i&&Yo(i)){const l=i.split(/\s+/);for(const u of l)n.push(`.${u}`)}}const a=["aria-label","type","name","title","alt"];for(const i of a){const l=r.getAttribute(i);l&&n.push(`[${i}="${l}"]`)}return n.join("")}function JA(){try{return K0.document.location.href}catch{return""}}function YA(t){if(!K0.HTMLElement)return null;let e=t;const r=5;for(let n=0;nKA(t,n,r))}function _n(t,e,r){if(!(e in t))return;const n=t[e],o=r(n);typeof o=="function"&&KO(o,n);try{t[e]=o}catch{Ls&&it.log(`Failed to replace method "${e}" in object`,t)}}function Ts(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{Ls&&it.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function KO(t,e){try{const r=e.prototype||{};t.prototype=e.prototype=r,Ts(t,"__sentry_original__",e)}catch{}}function Z0(t){return t.__sentry_original__}function ZO(t){if(G0(t))return{message:t.message,name:t.name,stack:t.stack,...RS(t)};if(lf(t)){const e={type:t.type,target:PS(t.target),currentTarget:PS(t.currentTarget),...RS(t)};return typeof CustomEvent<"u"&&Es(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function PS(t){try{return HA(t)?YO(t):Object.prototype.toString.call(t)}catch{return""}}function RS(t){if(typeof t=="object"&&t!==null){const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function ZA(t,e=40){const r=Object.keys(ZO(t));r.sort();const n=r[0];if(!n)return"[object has no keys]";if(n.length>=e)return cc(n,e);for(let o=r.length;o>0;o--){const a=r.slice(0,o).join(", ");if(!(a.length>e))return o===r.length?a:cc(a,e)}return""}function Pn(t){return Iv(t,new Map)}function Iv(t,e){if(QA(t)){const r=e.get(t);if(r!==void 0)return r;const n={};e.set(t,n);for(const o of Object.getOwnPropertyNames(t))typeof t[o]<"u"&&(n[o]=Iv(t[o],e));return n}if(Array.isArray(t)){const r=e.get(t);if(r!==void 0)return r;const n=[];return e.set(t,n),t.forEach(o=>{n.push(Iv(o,e))}),n}return t}function QA(t){if(!fc(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}const QO=1e3;function mu(){return Date.now()/QO}function e5(){const{performance:t}=Et;if(!t||!t.now)return mu;const e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/QO}const Ko=e5();(()=>{const{performance:t}=Et;if(!t||!t.now)return;const e=3600*1e3,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,a=oMath.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function eD(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Na(t){const{message:e,event_id:r}=t;if(e)return e;const n=eD(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function jv(t,e,r){const n=t.exception=t.exception||{},o=n.values=n.values||[],a=o[0]=o[0]||{};a.value||(a.value=e||""),a.type||(a.type="Error")}function hc(t,e){const r=eD(t);if(!r)return;const n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){const a={...o&&o.data,...e.data};r.mechanism.data=a}}function AS(t){if(t5(t))return!0;try{Ts(t,"__sentry_captured__",!0)}catch{}return!1}function t5(t){try{return t.__sentry_captured__}catch{}}var Vo;(function(t){t[t.PENDING=0]="PENDING";const r=1;t[t.RESOLVED=r]="RESOLVED";const n=2;t[t.REJECTED=n]="REJECTED"})(Vo||(Vo={}));function Os(t){return new Mn(e=>{e(t)})}function Rp(t){return new Mn((e,r)=>{r(t)})}class Mn{constructor(e){Mn.prototype.__init.call(this),Mn.prototype.__init2.call(this),Mn.prototype.__init3.call(this),Mn.prototype.__init4.call(this),this._state=Vo.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new Mn((n,o)=>{this._handlers.push([!1,a=>{if(!e)n(a);else try{n(e(a))}catch(i){o(i)}},a=>{if(!r)o(a);else try{n(r(a))}catch(i){o(i)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new Mn((r,n)=>{let o,a;return this.then(i=>{a=!1,o=i,e&&e()},i=>{a=!0,o=i,e&&e()}).then(()=>{if(a){n(o);return}r(o)})})}__init(){this._resolve=e=>{this._setResult(Vo.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Vo.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===Vo.PENDING){if(uf(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Vo.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===Vo.RESOLVED&&r[1](this._value),this._state===Vo.REJECTED&&r[2](this._value),r[0]=!0)})}}}function r5(t){const e=Ko(),r={sid:An(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>o5(r)};return mc(r,t),r}function mc(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Ko(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:An()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function n5(t,e){let r={};t.status==="ok"&&(r={status:"exited"}),mc(t,r)}function o5(t){return Pn({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}function IS(){return An()}function Lv(){return An().substring(16)}function pf(t,e,r=2){if(!e||typeof e!="object"||r<=0)return e;if(t&&e&&Object.keys(e).length===0)return t;const n={...t};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=pf(n[o],e[o],r-1));return n}const zv="_sentrySpan";function jS(t,e){e?Ts(t,zv,e):delete t[zv]}function LS(t){return t[zv]}const a5=100;class Q0{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:IS(),spanId:Lv()}}clone(){const e=new Q0;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,jS(e,LS(this)),e}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&&mc(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},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,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const r=typeof e=="function"?e(this):e,[n,o]=r instanceof Ds?[r.getScopeData(),r.getRequestSession()]:fc(r)?[e,e.requestSession]:[],{tags:a,extra:i,user:l,contexts:u,level:f,fingerprint:h=[],propagationContext:d}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...i},this._contexts={...this._contexts,...u},l&&Object.keys(l).length&&(this._user=l),f&&(this._level=f),h.length&&(this._fingerprint=h),d&&(this._propagationContext=d),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,jS(this,void 0),this._attachments=[],this.setPropagationContext({traceId:IS()}),this._notifyScopeListeners(),this}addBreadcrumb(e,r){const n=typeof r=="number"?r:a5;if(n<=0)return this;const o={timestamp:mu(),...e},a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>n?a.slice(-n):a,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,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:LS(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=pf(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:Lv(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,r){const n=r&&r.event_id?r.event_id:An();if(!this._client)return it.warn("No client configured on scope - will not capture exception!"),n;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){const o=n&&n.event_id?n.event_id:An();if(!this._client)return it.warn("No client configured on scope - will not capture message!"),o;const a=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:o},this),o}captureEvent(e,r){const n=r&&r.event_id?r.event_id:An();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(it.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}const Ds=Q0;function s5(){return sf("defaultCurrentScope",()=>new Ds)}function i5(){return sf("defaultIsolationScope",()=>new Ds)}class c5{constructor(e,r){let n;e?n=e:n=new Ds;let o;r?o=r:o=new Ds,this._stack=[{scope:n}],this._isolationScope=o}withScope(e){const r=this._pushScope();let n;try{n=e(r)}catch(o){throw this._popScope(),o}return uf(n)?n.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(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(){const 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 _c(){const t=cf(),e=X0(t);return e.stack=e.stack||new c5(s5(),i5())}function l5(t){return _c().withScope(t)}function u5(t,e){const r=_c();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function zS(t){return _c().withScope(()=>t(_c().getIsolationScope()))}function d5(){return{withIsolationScope:zS,withScope:l5,withSetScope:u5,withSetIsolationScope:(t,e)=>zS(e),getCurrentScope:()=>_c().getScope(),getIsolationScope:()=>_c().getIsolationScope()}}function eb(t){const e=X0(t);return e.acs?e.acs:d5()}function ea(){const t=cf();return eb(t).getCurrentScope()}function _u(){const t=cf();return eb(t).getIsolationScope()}function p5(){return sf("globalScope",()=>new Ds)}function f5(...t){const e=cf(),r=eb(e);if(t.length===2){const[n,o]=t;return n?r.withSetScope(n,o):r.withScope(o)}return r.withScope(t[0])}function Br(){return ea().getClient()}function h5(t){const e=t.getPropagationContext(),{traceId:r,spanId:n,parentSpanId:o}=e;return Pn({trace_id:r,span_id:n,parent_span_id:o})}const m5="_sentryMetrics";function _5(t){const e=t[m5];if(!e)return;const r={};for(const[,[n,o]]of e)(r[n]||(r[n]=[])).push(Pn(o));return r}const g5="sentry.source",y5="sentry.sample_rate",v5="sentry.op",b5="sentry.origin",w5=0,x5=1,S5="sentry-",k5=/^sentry-/;function C5(t){const e=$5(t);if(!e)return;const r=Object.entries(e).reduce((n,[o,a])=>{if(o.match(k5)){const i=o.slice(S5.length);n[i]=a}return n},{});if(Object.keys(r).length>0)return r}function $5(t){if(!(!t||!Yo(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,r)=>{const n=FS(r);return Object.entries(n).forEach(([o,a])=>{e[o]=a}),e},{}):FS(t)}function FS(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(r&&n&&(e[r]=n),e),{})}const E5=1;let BS=!1;function T5(t){const{spanId:e,traceId:r,isRemote:n}=t.spanContext(),o=n?e:tb(t).parent_span_id,a=n?Lv():e;return Pn({parent_span_id:o,span_id:a,trace_id:r})}function WS(t){return typeof t=="number"?US(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?US(t.getTime()):Ko()}function US(t){return t>9999999999?t/1e3:t}function tb(t){if(D5(t))return t.getSpanJSON();try{const{spanId:e,traceId:r}=t.spanContext();if(O5(t)){const{attributes:n,startTime:o,name:a,endTime:i,parentSpanId:l,status:u}=t;return Pn({span_id:e,trace_id:r,data:n,description:a,parent_span_id:l,start_timestamp:WS(o),timestamp:WS(i)||void 0,status:N5(u),op:n[v5],origin:n[b5],_metrics_summary:_5(t)})}return{span_id:e,trace_id:r}}catch{return{}}}function O5(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function D5(t){return typeof t.getSpanJSON=="function"}function M5(t){const{traceFlags:e}=t.spanContext();return e===E5}function N5(t){if(!(!t||t.code===w5))return t.code===x5?"ok":t.message||"unknown_error"}const P5="_sentryRootSpan";function tD(t){return t[P5]||t}function R5(){BS||(zs(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),BS=!0)}function A5(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=Br(),r=e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}const rb="production",I5="_frozenDsc";function rD(t,e){const r=e.getOptions(),{publicKey:n}=e.getDsn()||{},o=Pn({environment:r.environment||rb,release:r.release,public_key:n,trace_id:t});return e.emit("createDsc",o),o}function j5(t,e){const r=e.getPropagationContext();return r.dsc||rD(r.traceId,t)}function L5(t){const e=Br();if(!e)return{};const r=tD(t),n=r[I5];if(n)return n;const o=r.spanContext().traceState,a=o&&o.get("sentry.dsc"),i=a&&C5(a);if(i)return i;const l=rD(t.spanContext().traceId,e),u=tb(r),f=u.data||{},h=f[y5];h!=null&&(l.sample_rate=`${h}`);const d=f[g5],_=u.description;return d!=="url"&&_&&(l.transaction=_),A5()&&(l.sampled=String(M5(r))),e.emit("createDsc",l,r),l}function z5(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>1){It&&it.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}const F5=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function B5(t){return t==="http"||t==="https"}function ff(t,e=!1){const{host:r,path:n,pass:o,port:a,projectId:i,protocol:l,publicKey:u}=t;return`${l}://${u}${e&&o?`:${o}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${i}`}function W5(t){const e=F5.exec(t);if(!e){zs(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[r,n,o="",a="",i="",l=""]=e.slice(1);let u="",f=l;const h=f.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),f=h.pop()),f){const d=f.match(/^\d+/);d&&(f=d[0])}return nD({host:a,pass:o,path:u,projectId:f,port:i,protocol:r,publicKey:n})}function nD(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function U5(t){if(!Ls)return!0;const{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(i=>t[i]?!1:(it.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:r.match(/^\d+$/)?B5(n)?e&&isNaN(parseInt(e,10))?(it.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(it.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(it.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function H5(t){const e=typeof t=="string"?W5(t):nD(t);if(!(!e||!U5(e)))return e}function q5(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(o){if(t)return e.has(o)?!0:(e.add(o),!1);for(let a=0;ar?oD(t,e-1,r):n}function Fv(t,e,r=1/0,n=1/0,o=q5()){const[a,i]=o;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const l=V5(t,e);if(!l.startsWith("[object "))return l;if(e.__sentry_skip_normalization__)return e;const u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(u===0)return l.replace("object ","");if(a(e))return"[Circular ~]";const f=e;if(f&&typeof f.toJSON=="function")try{const g=f.toJSON();return Fv("",g,u-1,n,o)}catch{}const h=Array.isArray(e)?[]:{};let d=0;const _=ZO(e);for(const g in _){if(!Object.prototype.hasOwnProperty.call(_,g))continue;if(d>=n){h[g]="[MaxProperties ~]";break}const b=_[g];h[g]=Fv(g,b,u-1,n,o),d++}return i(e),h}function V5(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(JO(e))return"[VueViewModel]";if(VA(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${La(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const r=X5(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function X5(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function G5(t){return~-encodeURI(t).split(/%..|./).length}function J5(t){return G5(JSON.stringify(t))}function gu(t,e=[]){return[t,e]}function Y5(t,e){const[r,n]=t;return[r,[...n,e]]}function HS(t,e){const r=t[1];for(const n of r){const o=n[0].type;if(e(n,o))return!0}return!1}function Bv(t){return Et.__SENTRY__&&Et.__SENTRY__.encodePolyfill?Et.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function K5(t){const[e,r]=t;let n=JSON.stringify(e);function o(a){typeof n=="string"?n=typeof a=="string"?n+a:[Bv(n),a]:n.push(typeof a=="string"?Bv(a):a)}for(const a of r){const[i,l]=a;if(o(` +Error:`,o)}}let Hm=null;function FA(t){const e="error";zs(e,t),Bs(e,zA)}function zA(){Hm=$t.onerror,$t.onerror=function(t,e,r,n,o){return Kn("error",{column:n,error:o,line:r,msg:t,url:e}),Hm?Hm.apply(this,arguments):!1},$t.onerror.__SENTRY_INSTRUMENTED__=!0}let qm=null;function BA(t){const e="unhandledrejection";zs(e,t),Bs(e,WA)}function WA(){qm=$t.onunhandledrejection,$t.onunhandledrejection=function(t){return Kn("unhandledrejection",t),qm?qm.apply(this,arguments):!0},$t.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function cf(){return X0($t),$t}function X0(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||ws,e[ws]=e[ws]||{}}const XO=Object.prototype.toString;function G0(t){switch(XO.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Es(t,Error)}}function Tc(t,e){return XO.call(t)===`[object ${e}]`}function GO(t){return Tc(t,"ErrorEvent")}function MS(t){return Tc(t,"DOMError")}function UA(t){return Tc(t,"DOMException")}function Yo(t){return Tc(t,"String")}function J0(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Y0(t){return t===null||J0(t)||typeof t!="object"&&typeof t!="function"}function fc(t){return Tc(t,"Object")}function lf(t){return typeof Event<"u"&&Es(t,Event)}function HA(t){return typeof Element<"u"&&Es(t,Element)}function qA(t){return Tc(t,"RegExp")}function uf(t){return!!(t&&t.then&&typeof t.then=="function")}function VA(t){return fc(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Es(t,e){try{return t instanceof e}catch{return!1}}function JO(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}const K0=$t,XA=80;function YO(t,e={}){if(!t)return"";try{let r=t;const n=5,o=[];let a=0,i=0;const l=" > ",u=l.length;let f;const h=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||XA;for(;r&&a++1&&i+o.length*u+f.length>=d));)o.push(f),i+=f.length,r=r.parentNode;return o.reverse().join(l)}catch{return""}}function GA(t,e){const r=t,n=[];if(!r||!r.tagName)return"";if(K0.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const o=e&&e.length?e.filter(i=>r.getAttribute(i)).map(i=>[i,r.getAttribute(i)]):null;if(o&&o.length)o.forEach(i=>{n.push(`[${i[0]}="${i[1]}"]`)});else{r.id&&n.push(`#${r.id}`);const i=r.className;if(i&&Yo(i)){const l=i.split(/\s+/);for(const u of l)n.push(`.${u}`)}}const a=["aria-label","type","name","title","alt"];for(const i of a){const l=r.getAttribute(i);l&&n.push(`[${i}="${l}"]`)}return n.join("")}function JA(){try{return K0.document.location.href}catch{return""}}function YA(t){if(!K0.HTMLElement)return null;let e=t;const r=5;for(let n=0;nKA(t,n,r))}function _n(t,e,r){if(!(e in t))return;const n=t[e],o=r(n);typeof o=="function"&&KO(o,n);try{t[e]=o}catch{Ls&&it.log(`Failed to replace method "${e}" in object`,t)}}function Ts(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{Ls&&it.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function KO(t,e){try{const r=e.prototype||{};t.prototype=e.prototype=r,Ts(t,"__sentry_original__",e)}catch{}}function Z0(t){return t.__sentry_original__}function ZO(t){if(G0(t))return{message:t.message,name:t.name,stack:t.stack,...RS(t)};if(lf(t)){const e={type:t.type,target:PS(t.target),currentTarget:PS(t.currentTarget),...RS(t)};return typeof CustomEvent<"u"&&Es(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function PS(t){try{return HA(t)?YO(t):Object.prototype.toString.call(t)}catch{return""}}function RS(t){if(typeof t=="object"&&t!==null){const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function ZA(t,e=40){const r=Object.keys(ZO(t));r.sort();const n=r[0];if(!n)return"[object has no keys]";if(n.length>=e)return cc(n,e);for(let o=r.length;o>0;o--){const a=r.slice(0,o).join(", ");if(!(a.length>e))return o===r.length?a:cc(a,e)}return""}function Pn(t){return Iv(t,new Map)}function Iv(t,e){if(QA(t)){const r=e.get(t);if(r!==void 0)return r;const n={};e.set(t,n);for(const o of Object.getOwnPropertyNames(t))typeof t[o]<"u"&&(n[o]=Iv(t[o],e));return n}if(Array.isArray(t)){const r=e.get(t);if(r!==void 0)return r;const n=[];return e.set(t,n),t.forEach(o=>{n.push(Iv(o,e))}),n}return t}function QA(t){if(!fc(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}const QO=1e3;function mu(){return Date.now()/QO}function e5(){const{performance:t}=$t;if(!t||!t.now)return mu;const e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/QO}const Ko=e5();(()=>{const{performance:t}=$t;if(!t||!t.now)return;const e=3600*1e3,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,a=oMath.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function eD(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Na(t){const{message:e,event_id:r}=t;if(e)return e;const n=eD(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function jv(t,e,r){const n=t.exception=t.exception||{},o=n.values=n.values||[],a=o[0]=o[0]||{};a.value||(a.value=e||""),a.type||(a.type="Error")}function hc(t,e){const r=eD(t);if(!r)return;const n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){const a={...o&&o.data,...e.data};r.mechanism.data=a}}function AS(t){if(t5(t))return!0;try{Ts(t,"__sentry_captured__",!0)}catch{}return!1}function t5(t){try{return t.__sentry_captured__}catch{}}var Vo;(function(t){t[t.PENDING=0]="PENDING";const r=1;t[t.RESOLVED=r]="RESOLVED";const n=2;t[t.REJECTED=n]="REJECTED"})(Vo||(Vo={}));function Os(t){return new Mn(e=>{e(t)})}function Rp(t){return new Mn((e,r)=>{r(t)})}class Mn{constructor(e){Mn.prototype.__init.call(this),Mn.prototype.__init2.call(this),Mn.prototype.__init3.call(this),Mn.prototype.__init4.call(this),this._state=Vo.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new Mn((n,o)=>{this._handlers.push([!1,a=>{if(!e)n(a);else try{n(e(a))}catch(i){o(i)}},a=>{if(!r)o(a);else try{n(r(a))}catch(i){o(i)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new Mn((r,n)=>{let o,a;return this.then(i=>{a=!1,o=i,e&&e()},i=>{a=!0,o=i,e&&e()}).then(()=>{if(a){n(o);return}r(o)})})}__init(){this._resolve=e=>{this._setResult(Vo.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Vo.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===Vo.PENDING){if(uf(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Vo.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===Vo.RESOLVED&&r[1](this._value),this._state===Vo.REJECTED&&r[2](this._value),r[0]=!0)})}}}function r5(t){const e=Ko(),r={sid:An(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>o5(r)};return mc(r,t),r}function mc(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Ko(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:An()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function n5(t,e){let r={};t.status==="ok"&&(r={status:"exited"}),mc(t,r)}function o5(t){return Pn({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}function IS(){return An()}function Lv(){return An().substring(16)}function pf(t,e,r=2){if(!e||typeof e!="object"||r<=0)return e;if(t&&e&&Object.keys(e).length===0)return t;const n={...t};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=pf(n[o],e[o],r-1));return n}const Fv="_sentrySpan";function jS(t,e){e?Ts(t,Fv,e):delete t[Fv]}function LS(t){return t[Fv]}const a5=100;class Q0{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:IS(),spanId:Lv()}}clone(){const e=new Q0;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,jS(e,LS(this)),e}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&&mc(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},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,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const r=typeof e=="function"?e(this):e,[n,o]=r instanceof Ds?[r.getScopeData(),r.getRequestSession()]:fc(r)?[e,e.requestSession]:[],{tags:a,extra:i,user:l,contexts:u,level:f,fingerprint:h=[],propagationContext:d}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...i},this._contexts={...this._contexts,...u},l&&Object.keys(l).length&&(this._user=l),f&&(this._level=f),h.length&&(this._fingerprint=h),d&&(this._propagationContext=d),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,jS(this,void 0),this._attachments=[],this.setPropagationContext({traceId:IS()}),this._notifyScopeListeners(),this}addBreadcrumb(e,r){const n=typeof r=="number"?r:a5;if(n<=0)return this;const o={timestamp:mu(),...e},a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>n?a.slice(-n):a,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,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:LS(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=pf(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:Lv(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,r){const n=r&&r.event_id?r.event_id:An();if(!this._client)return it.warn("No client configured on scope - will not capture exception!"),n;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){const o=n&&n.event_id?n.event_id:An();if(!this._client)return it.warn("No client configured on scope - will not capture message!"),o;const a=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:o},this),o}captureEvent(e,r){const n=r&&r.event_id?r.event_id:An();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(it.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}const Ds=Q0;function s5(){return sf("defaultCurrentScope",()=>new Ds)}function i5(){return sf("defaultIsolationScope",()=>new Ds)}class c5{constructor(e,r){let n;e?n=e:n=new Ds;let o;r?o=r:o=new Ds,this._stack=[{scope:n}],this._isolationScope=o}withScope(e){const r=this._pushScope();let n;try{n=e(r)}catch(o){throw this._popScope(),o}return uf(n)?n.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(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(){const 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 _c(){const t=cf(),e=X0(t);return e.stack=e.stack||new c5(s5(),i5())}function l5(t){return _c().withScope(t)}function u5(t,e){const r=_c();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function FS(t){return _c().withScope(()=>t(_c().getIsolationScope()))}function d5(){return{withIsolationScope:FS,withScope:l5,withSetScope:u5,withSetIsolationScope:(t,e)=>FS(e),getCurrentScope:()=>_c().getScope(),getIsolationScope:()=>_c().getIsolationScope()}}function eb(t){const e=X0(t);return e.acs?e.acs:d5()}function ea(){const t=cf();return eb(t).getCurrentScope()}function _u(){const t=cf();return eb(t).getIsolationScope()}function p5(){return sf("globalScope",()=>new Ds)}function f5(...t){const e=cf(),r=eb(e);if(t.length===2){const[n,o]=t;return n?r.withSetScope(n,o):r.withScope(o)}return r.withScope(t[0])}function Br(){return ea().getClient()}function h5(t){const e=t.getPropagationContext(),{traceId:r,spanId:n,parentSpanId:o}=e;return Pn({trace_id:r,span_id:n,parent_span_id:o})}const m5="_sentryMetrics";function _5(t){const e=t[m5];if(!e)return;const r={};for(const[,[n,o]]of e)(r[n]||(r[n]=[])).push(Pn(o));return r}const g5="sentry.source",y5="sentry.sample_rate",v5="sentry.op",b5="sentry.origin",w5=0,x5=1,S5="sentry-",k5=/^sentry-/;function C5(t){const e=$5(t);if(!e)return;const r=Object.entries(e).reduce((n,[o,a])=>{if(o.match(k5)){const i=o.slice(S5.length);n[i]=a}return n},{});if(Object.keys(r).length>0)return r}function $5(t){if(!(!t||!Yo(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,r)=>{const n=zS(r);return Object.entries(n).forEach(([o,a])=>{e[o]=a}),e},{}):zS(t)}function zS(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(r&&n&&(e[r]=n),e),{})}const E5=1;let BS=!1;function T5(t){const{spanId:e,traceId:r,isRemote:n}=t.spanContext(),o=n?e:tb(t).parent_span_id,a=n?Lv():e;return Pn({parent_span_id:o,span_id:a,trace_id:r})}function WS(t){return typeof t=="number"?US(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?US(t.getTime()):Ko()}function US(t){return t>9999999999?t/1e3:t}function tb(t){if(D5(t))return t.getSpanJSON();try{const{spanId:e,traceId:r}=t.spanContext();if(O5(t)){const{attributes:n,startTime:o,name:a,endTime:i,parentSpanId:l,status:u}=t;return Pn({span_id:e,trace_id:r,data:n,description:a,parent_span_id:l,start_timestamp:WS(o),timestamp:WS(i)||void 0,status:N5(u),op:n[v5],origin:n[b5],_metrics_summary:_5(t)})}return{span_id:e,trace_id:r}}catch{return{}}}function O5(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function D5(t){return typeof t.getSpanJSON=="function"}function M5(t){const{traceFlags:e}=t.spanContext();return e===E5}function N5(t){if(!(!t||t.code===w5))return t.code===x5?"ok":t.message||"unknown_error"}const P5="_sentryRootSpan";function tD(t){return t[P5]||t}function R5(){BS||(Fs(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),BS=!0)}function A5(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=Br(),r=e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}const rb="production",I5="_frozenDsc";function rD(t,e){const r=e.getOptions(),{publicKey:n}=e.getDsn()||{},o=Pn({environment:r.environment||rb,release:r.release,public_key:n,trace_id:t});return e.emit("createDsc",o),o}function j5(t,e){const r=e.getPropagationContext();return r.dsc||rD(r.traceId,t)}function L5(t){const e=Br();if(!e)return{};const r=tD(t),n=r[I5];if(n)return n;const o=r.spanContext().traceState,a=o&&o.get("sentry.dsc"),i=a&&C5(a);if(i)return i;const l=rD(t.spanContext().traceId,e),u=tb(r),f=u.data||{},h=f[y5];h!=null&&(l.sample_rate=`${h}`);const d=f[g5],_=u.description;return d!=="url"&&_&&(l.transaction=_),A5()&&(l.sampled=String(M5(r))),e.emit("createDsc",l,r),l}function F5(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>1){It&&it.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}const z5=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function B5(t){return t==="http"||t==="https"}function ff(t,e=!1){const{host:r,path:n,pass:o,port:a,projectId:i,protocol:l,publicKey:u}=t;return`${l}://${u}${e&&o?`:${o}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${i}`}function W5(t){const e=z5.exec(t);if(!e){Fs(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[r,n,o="",a="",i="",l=""]=e.slice(1);let u="",f=l;const h=f.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),f=h.pop()),f){const d=f.match(/^\d+/);d&&(f=d[0])}return nD({host:a,pass:o,path:u,projectId:f,port:i,protocol:r,publicKey:n})}function nD(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function U5(t){if(!Ls)return!0;const{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(i=>t[i]?!1:(it.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:r.match(/^\d+$/)?B5(n)?e&&isNaN(parseInt(e,10))?(it.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(it.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(it.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function H5(t){const e=typeof t=="string"?W5(t):nD(t);if(!(!e||!U5(e)))return e}function q5(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(o){if(t)return e.has(o)?!0:(e.add(o),!1);for(let a=0;ar?oD(t,e-1,r):n}function zv(t,e,r=1/0,n=1/0,o=q5()){const[a,i]=o;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const l=V5(t,e);if(!l.startsWith("[object "))return l;if(e.__sentry_skip_normalization__)return e;const u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(u===0)return l.replace("object ","");if(a(e))return"[Circular ~]";const f=e;if(f&&typeof f.toJSON=="function")try{const g=f.toJSON();return zv("",g,u-1,n,o)}catch{}const h=Array.isArray(e)?[]:{};let d=0;const _=ZO(e);for(const g in _){if(!Object.prototype.hasOwnProperty.call(_,g))continue;if(d>=n){h[g]="[MaxProperties ~]";break}const b=_[g];h[g]=zv(g,b,u-1,n,o),d++}return i(e),h}function V5(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(JO(e))return"[VueViewModel]";if(VA(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${La(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const r=X5(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function X5(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function G5(t){return~-encodeURI(t).split(/%..|./).length}function J5(t){return G5(JSON.stringify(t))}function gu(t,e=[]){return[t,e]}function Y5(t,e){const[r,n]=t;return[r,[...n,e]]}function HS(t,e){const r=t[1];for(const n of r){const o=n[0].type;if(e(n,o))return!0}return!1}function Bv(t){return $t.__SENTRY__&&$t.__SENTRY__.encodePolyfill?$t.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function K5(t){const[e,r]=t;let n=JSON.stringify(e);function o(a){typeof n=="string"?n=typeof a=="string"?n+a:[Bv(n),a]:n.push(typeof a=="string"?Bv(a):a)}for(const a of r){const[i,l]=a;if(o(` ${JSON.stringify(i)} -`),typeof l=="string"||l instanceof Uint8Array)o(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(Xo(l))}o(u)}}return typeof n=="string"?n:Z5(n)}function Z5(t){const e=t.reduce((o,a)=>o+a.length,0),r=new Uint8Array(e);let n=0;for(const o of t)r.set(o,n),n+=o.length;return r}function Q5(t){const e=typeof t.data=="string"?Bv(t.data):t.data;return[Pn({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const eI={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function qS(t){return eI[t]}function aD(t){if(!t||!t.sdk)return;const{name:e,version:r}=t.sdk;return{name:e,version:r}}function tI(t,e,r,n){const o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:ff(n)},...o&&{trace:Pn({...o})}}}function rI(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function nI(t,e,r,n){const o=aD(r),a={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:ff(e)}},i="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return gu(a,[i])}function oI(t,e,r,n){const o=aD(r),a=t.type&&t.type!=="replay_event"?t.type:"event";rI(t,r&&r.sdk);const i=tI(t,o,n,e);return delete t.sdkProcessingMetadata,gu(i,[[{type:a},t]])}function Wv(t,e,r,n=0){return new Mn((o,a)=>{const i=t[n];if(e===null||typeof i!="function")o(e);else{const l=i({...e},r);It&&i.id&&l===null&&it.log(`Event processor "${i.id}" dropped event`),uf(l)?l.then(u=>Wv(t,u,r,n+1).then(o)).then(null,a):Wv(t,l,r,n+1).then(o).then(null,a)}})}let Bd,VS,Wd;function aI(t){const e=Et._sentryDebugIds;if(!e)return{};const r=Object.keys(e);return Wd&&r.length===VS||(VS=r.length,Wd=r.reduce((n,o)=>{Bd||(Bd={});const a=Bd[o];if(a)n[a[0]]=a[1];else{const i=t(o);for(let l=i.length-1;l>=0;l--){const u=i[l],f=u&&u.filename,h=e[o];if(f&&h){n[f]=h,Bd[o]=[f,h];break}}}return n},{})),Wd}function sI(t,e){const{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:a}=e;iI(t,e),n&&uI(t,n),dI(t,r),cI(t,o),lI(t,a)}function XS(t,e){const{extra:r,tags:n,user:o,contexts:a,level:i,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:f,eventProcessors:h,attachments:d,propagationContext:_,transactionName:g,span:b}=e;Ud(t,"extra",r),Ud(t,"tags",n),Ud(t,"user",o),Ud(t,"contexts",a),t.sdkProcessingMetadata=pf(t.sdkProcessingMetadata,l,2),i&&(t.level=i),g&&(t.transactionName=g),b&&(t.span=b),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),f.length&&(t.fingerprint=[...t.fingerprint,...f]),h.length&&(t.eventProcessors=[...t.eventProcessors,...h]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,..._}}function Ud(t,e,r){t[e]=pf(t[e],r,1)}function iI(t,e){const{extra:r,tags:n,user:o,contexts:a,level:i,transactionName:l}=e,u=Pn(r);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const f=Pn(n);f&&Object.keys(f).length&&(t.tags={...f,...t.tags});const h=Pn(o);h&&Object.keys(h).length&&(t.user={...h,...t.user});const d=Pn(a);d&&Object.keys(d).length&&(t.contexts={...d,...t.contexts}),i&&(t.level=i),l&&t.type!=="transaction"&&(t.transaction=l)}function cI(t,e){const r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function lI(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function uI(t,e){t.contexts={trace:T5(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:L5(e),...t.sdkProcessingMetadata};const r=tD(e),n=tb(r).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function dI(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function pI(t,e,r,n,o,a){const{normalizeDepth:i=3,normalizeMaxBreadth:l=1e3}=t,u={...e,event_id:e.event_id||r.event_id||An(),timestamp:e.timestamp||mu()},f=r.integrations||t.integrations.map(S=>S.name);fI(u,t),_I(u,f),o&&o.emit("applyFrameMetadata",e),e.type===void 0&&hI(u,t.stackParser);const h=yI(n,r.captureContext);r.mechanism&&hc(u,r.mechanism);const d=o?o.getEventProcessors():[],_=p5().getScopeData();if(a){const S=a.getScopeData();XS(_,S)}if(h){const S=h.getScopeData();XS(_,S)}const g=[...r.attachments||[],..._.attachments];g.length&&(r.attachments=g),sI(u,_);const b=[...d,..._.eventProcessors];return Wv(b,u,r).then(S=>(S&&mI(S),typeof i=="number"&&i>0?gI(S,i,l):S))}function fI(t,e){const{environment:r,release:n,dist:o,maxValueLength:a=250}=e;t.environment=t.environment||r||rb,!t.release&&n&&(t.release=n),!t.dist&&o&&(t.dist=o),t.message&&(t.message=cc(t.message,a));const i=t.exception&&t.exception.values&&t.exception.values[0];i&&i.value&&(i.value=cc(i.value,a));const l=t.request;l&&l.url&&(l.url=cc(l.url,a))}function hI(t,e){const r=aI(e);try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{r&&o.filename&&(o.debug_id=r[o.filename])})})}catch{}}function mI(t){const e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const r=t.debug_meta.images;Object.entries(e).forEach(([n,o])=>{r.push({type:"sourcemap",code_file:n,debug_id:o})})}function _I(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function gI(t,e,r){if(!t)return null;const n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:Xo(o.data,e,r)}}))},...t.user&&{user:Xo(t.user,e,r)},...t.contexts&&{contexts:Xo(t.contexts,e,r)},...t.extra&&{extra:Xo(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=Xo(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(o=>({...o,...o.data&&{data:Xo(o.data,e,r)}}))),t.contexts&&t.contexts.flags&&n.contexts&&(n.contexts.flags=Xo(t.contexts.flags,3,r)),n}function yI(t,e){if(!e)return t;const r=t?t.clone():new Ds;return r.update(e),r}function vI(t,e){return ea().captureException(t,void 0)}function sD(t,e){return ea().captureEvent(t,e)}function GS(t){const e=Br(),r=_u(),n=ea(),{release:o,environment:a=rb}=e&&e.getOptions()||{},{userAgent:i}=Et.navigator||{},l=r5({release:o,environment:a,user:n.getUser()||r.getUser(),...i&&{userAgent:i},...t}),u=r.getSession();return u&&u.status==="ok"&&mc(u,{status:"exited"}),iD(),r.setSession(l),n.setSession(l),l}function iD(){const t=_u(),e=ea(),r=e.getSession()||t.getSession();r&&n5(r),cD(),t.setSession(),e.setSession()}function cD(){const t=_u(),e=ea(),r=Br(),n=e.getSession()||t.getSession();n&&r&&r.captureSession(n)}function JS(t=!1){if(t){iD();return}cD()}const bI="7";function wI(t){const e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function xI(t){return`${wI(t)}${t.projectId}/envelope/`}function SI(t,e){const r={sentry_version:bI};return t.publicKey&&(r.sentry_key=t.publicKey),e&&(r.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(r).toString()}function kI(t,e,r){return e||`${xI(t)}?${SI(t,r)}`}const YS=[];function CI(t){const e={};return t.forEach(r=>{const{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.values(e)}function $I(t){const e=t.defaultIntegrations||[],r=t.integrations;e.forEach(i=>{i.isDefaultInstance=!0});let n;if(Array.isArray(r))n=[...e,...r];else if(typeof r=="function"){const i=r(e);n=Array.isArray(i)?i:[i]}else n=e;const o=CI(n),a=o.findIndex(i=>i.name==="Debug");if(a>-1){const[i]=o.splice(a,1);o.push(i)}return o}function EI(t,e){const r={};return e.forEach(n=>{n&&lD(t,n,r)}),r}function KS(t,e){for(const r of e)r&&r.afterAllSetup&&r.afterAllSetup(t)}function lD(t,e,r){if(r[e.name]){It&&it.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,YS.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),YS.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,a)=>n(o,a,t))}if(typeof e.processEvent=="function"){const n=e.processEvent.bind(e),o=Object.assign((a,i)=>n(a,i,t),{id:e.name});t.addEventProcessor(o)}It&&it.log(`Integration installed: ${e.name}`)}function TI(t,e,r){const n=[{type:"client_report"},{timestamp:mu(),discarded_events:t}];return gu(e?{dsn:e}:{},[n])}class yo extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}}const ZS="Not capturing exception because it's already been captured.";class OI{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=H5(e.dsn):It&&it.warn("No DSN provided, client will not send events."),this._dsn){const o=kI(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:o})}const n=["enableTracing","tracesSampleRate","tracesSampler"].find(o=>o in e&&e[o]==null);n&&zs(()=>{console.warn(`[Sentry] Deprecation warning: \`${n}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,r,n){const o=An();if(AS(e))return It&&it.log(ZS),o;const a={event_id:o,...r};return this._process(this.eventFromException(e,a).then(i=>this._captureEvent(i,a,n))),a.event_id}captureMessage(e,r,n,o){const a={event_id:An(),...n},i=J0(e)?e:String(e),l=Y0(e)?this.eventFromMessage(i,r,a):this.eventFromException(e,a);return this._process(l.then(u=>this._captureEvent(u,a,o))),a.event_id}captureEvent(e,r,n){const o=An();if(r&&r.originalException&&AS(r.originalException))return It&&it.log(ZS),o;const a={event_id:o,...r},l=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,a,l||n)),a.event_id}captureSession(e){typeof e.release!="string"?It&&it.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),mc(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>r.flush(e).then(o=>n&&o))):Os(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}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]}addIntegration(e){const r=this._integrations[e.name];lD(this,e,this._integrations),r||KS(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=oI(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of r.attachments||[])n=Y5(n,Q5(a));const o=this.sendEnvelope(n);o&&o.then(a=>this.emit("afterSendEvent",e,a),null)}sendSession(e){const r=nI(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){const o=typeof n=="number"?n:1,a=`${e}:${r}`;It&&it.log(`Recording outcome: "${a}"${o>1?` (${o} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+o}}on(e,r){const n=this._hooks[e]=this._hooks[e]||[];return n.push(r),()=>{const o=n.indexOf(r);o>-1&&n.splice(o,1)}}emit(e,...r){const n=this._hooks[e];n&&n.forEach(o=>o(...r))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,r=>(It&&it.error("Error while sending envelope:",r),r)):(It&&it.error("Transport disabled"),Os({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=EI(this,e),KS(this,e)}_updateSessionFromEvent(e,r){let n=!1,o=!1;const a=r.exception&&r.exception.values;if(a){o=!0;for(const u of a){const f=u.mechanism;if(f&&f.handled===!1){n=!0;break}}}const i=e.status==="ok";(i&&e.errors===0||i&&n)&&(mc(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Mn(r=>{let n=0;const o=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),r(!0)):(n+=o,e&&n>=e&&(clearInterval(a),r(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n=ea(),o=_u()){const a=this.getOptions(),i=Object.keys(this._integrations);return!r.integrations&&i.length>0&&(r.integrations=i),this.emit("preprocessEvent",e,r),e.type||o.setLastEventId(e.event_id||r.event_id),pI(a,e,r,n,this,o).then(l=>{if(l===null)return l;l.contexts={trace:h5(n),...l.contexts};const u=j5(this,n);return l.sdkProcessingMetadata={dynamicSamplingContext:u,...l.sdkProcessingMetadata},l})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(o=>o.event_id,o=>{if(It){const a=o;a.logLevel==="log"?it.log(a.message):it.warn(a)}})}_processEvent(e,r,n){const o=this.getOptions(),{sampleRate:a}=o,i=dD(e),l=uD(e),u=e.type||"error",f=`before send for type \`${u}\``,h=typeof a>"u"?void 0:z5(a);if(l&&typeof h=="number"&&Math.random()>h)return this.recordDroppedEvent("sample_rate","error",e),Rp(new yo(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const d=u==="replay_event"?"replay":u,g=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,r,n,g).then(b=>{if(b===null)throw this.recordDroppedEvent("event_processor",d,e),new yo("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return b;const S=MI(this,o,b,r);return DI(S,f)}).then(b=>{if(b===null){if(this.recordDroppedEvent("before_send",d,e),i){const D=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",D)}throw new yo(`${f} returned \`null\`, will not send event.`,"log")}const w=n&&n.getSession();if(!i&&w&&this._updateSessionFromEvent(w,b),i){const k=b.sdkProcessingMetadata&&b.sdkProcessingMetadata.spanCountBeforeProcessing||0,D=b.spans?b.spans.length:0,C=k-D;C>0&&this.recordDroppedEvent("before_send","span",C)}const S=b.transaction_info;if(i&&S&&b.transaction!==e.transaction){const k="custom";b.transaction_info={...S,source:k}}return this.sendEvent(b,r),b}).then(null,b=>{throw b instanceof yo?b:(this.captureException(b,{data:{__sentry__:!0},originalException:b}),new yo(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${b}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([r,n])=>{const[o,a]=r.split(":");return{reason:o,category:a,quantity:n}})}_flushOutcomes(){It&&it.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){It&&it.log("No outcomes to send");return}if(!this._dsn){It&&it.log("No dsn provided, will not send outcomes");return}It&&it.log("Sending outcomes:",e);const r=TI(e,this._options.tunnel&&ff(this._dsn));this.sendEnvelope(r)}}function DI(t,e){const r=`${e} must return \`null\` or a valid event.`;if(uf(t))return t.then(n=>{if(!fc(n)&&n!==null)throw new yo(r);return n},n=>{throw new yo(`${e} rejected with ${n}`)});if(!fc(t)&&t!==null)throw new yo(r);return t}function MI(t,e,r,n){const{beforeSend:o,beforeSendTransaction:a,beforeSendSpan:i}=e;if(uD(r)&&o)return o(r,n);if(dD(r)){if(r.spans&&i){const l=[];for(const u of r.spans){const f=i(u);f?l.push(f):(R5(),t.recordDroppedEvent("before_send","span"))}r.spans=l}if(a){if(r.spans){const l=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:l}}return a(r,n)}}return r}function uD(t){return t.type===void 0}function dD(t){return t.type==="transaction"}function NI(t,e){e.debug===!0&&(It?it.enable():zs(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),ea().update(e.initialScope);const n=new t(e);return PI(n),n.init(),n}function PI(t){ea().setClient(t)}function RI(t){const e=[];function r(){return t===void 0||e.lengthn(l)).then(null,()=>n(l).then(null,()=>{})),l}function a(i){return new Mn((l,u)=>{let f=e.length;if(!f)return l(!0);const h=setTimeout(()=>{i&&i>0&&l(!1)},i);e.forEach(d=>{Os(d).then(()=>{--f||(clearTimeout(h),l(!0))},u)})})}return{$:e,add:o,drain:a}}const AI=60*1e3;function II(t,e=Date.now()){const r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;const n=Date.parse(`${t}`);return isNaN(n)?AI:n-e}function jI(t,e){return t[e]||t.all||0}function LI(t,e,r=Date.now()){return jI(t,e)>r}function zI(t,{statusCode:e,headers:r},n=Date.now()){const o={...t},a=r&&r["x-sentry-rate-limits"],i=r&&r["retry-after"];if(a)for(const l of a.trim().split(",")){const[u,f,,,h]=l.split(":",5),d=parseInt(u,10),_=(isNaN(d)?60:d)*1e3;if(!f)o.all=n+_;else for(const g of f.split(";"))g==="metric_bucket"?(!h||h.split(";").includes("custom"))&&(o[g]=n+_):o[g]=n+_}else i?o.all=n+II(i,n):e===429&&(o.all=n+60*1e3);return o}const FI=64;function BI(t,e,r=RI(t.bufferSize||FI)){let n={};const o=i=>r.drain(i);function a(i){const l=[];if(HS(i,(d,_)=>{const g=qS(_);if(LI(n,g)){const b=QS(d,_);t.recordDroppedEvent("ratelimit_backoff",g,b)}else l.push(d)}),l.length===0)return Os({});const u=gu(i[0],l),f=d=>{HS(u,(_,g)=>{const b=QS(_,g);t.recordDroppedEvent(d,qS(g),b)})},h=()=>e({body:K5(u)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&It&&it.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),n=zI(n,d),d),d=>{throw f("network_error"),d});return r.add(h).then(d=>d,d=>{if(d instanceof yo)return It&&it.error("Skipped sending event because buffer is full."),f("queue_overflow"),Os({});throw d})}return{send:a,flush:o}}function QS(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}function WI(t,e,r=[e],n="npm"){const o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:r.map(a=>({name:`${n}:@sentry/${a}`,version:ws})),version:ws}),t._metadata=o}const UI=100;function Ms(t,e){const r=Br(),n=_u();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=UI}=r.getOptions();if(a<=0)return;const l={timestamp:mu(),...t},u=o?zs(()=>o(l,e)):l;u!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",u,e),n.addBreadcrumb(u,a))}let ek;const HI="FunctionToString",tk=new WeakMap,qI=()=>({name:HI,setupOnce(){ek=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Z0(this),r=tk.has(Br())&&e!==void 0?e:this;return ek.apply(r,t)}}catch{}},setup(t){tk.set(t,!0)}}),VI=qI,XI=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],GI="InboundFilters",JI=(t={})=>({name:GI,processEvent(e,r,n){const o=n.getOptions(),a=KI(t,o);return ZI(e,a)?null:e}}),YI=JI;function KI(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:XI],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function ZI(t,e){return e.ignoreInternal&&o4(t)?(It&&it.warn(`Event dropped due to being internal Sentry Error. +`),typeof l=="string"||l instanceof Uint8Array)o(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(Xo(l))}o(u)}}return typeof n=="string"?n:Z5(n)}function Z5(t){const e=t.reduce((o,a)=>o+a.length,0),r=new Uint8Array(e);let n=0;for(const o of t)r.set(o,n),n+=o.length;return r}function Q5(t){const e=typeof t.data=="string"?Bv(t.data):t.data;return[Pn({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const eI={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function qS(t){return eI[t]}function aD(t){if(!t||!t.sdk)return;const{name:e,version:r}=t.sdk;return{name:e,version:r}}function tI(t,e,r,n){const o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:ff(n)},...o&&{trace:Pn({...o})}}}function rI(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function nI(t,e,r,n){const o=aD(r),a={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:ff(e)}},i="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return gu(a,[i])}function oI(t,e,r,n){const o=aD(r),a=t.type&&t.type!=="replay_event"?t.type:"event";rI(t,r&&r.sdk);const i=tI(t,o,n,e);return delete t.sdkProcessingMetadata,gu(i,[[{type:a},t]])}function Wv(t,e,r,n=0){return new Mn((o,a)=>{const i=t[n];if(e===null||typeof i!="function")o(e);else{const l=i({...e},r);It&&i.id&&l===null&&it.log(`Event processor "${i.id}" dropped event`),uf(l)?l.then(u=>Wv(t,u,r,n+1).then(o)).then(null,a):Wv(t,l,r,n+1).then(o).then(null,a)}})}let Bd,VS,Wd;function aI(t){const e=$t._sentryDebugIds;if(!e)return{};const r=Object.keys(e);return Wd&&r.length===VS||(VS=r.length,Wd=r.reduce((n,o)=>{Bd||(Bd={});const a=Bd[o];if(a)n[a[0]]=a[1];else{const i=t(o);for(let l=i.length-1;l>=0;l--){const u=i[l],f=u&&u.filename,h=e[o];if(f&&h){n[f]=h,Bd[o]=[f,h];break}}}return n},{})),Wd}function sI(t,e){const{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:a}=e;iI(t,e),n&&uI(t,n),dI(t,r),cI(t,o),lI(t,a)}function XS(t,e){const{extra:r,tags:n,user:o,contexts:a,level:i,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:f,eventProcessors:h,attachments:d,propagationContext:_,transactionName:g,span:b}=e;Ud(t,"extra",r),Ud(t,"tags",n),Ud(t,"user",o),Ud(t,"contexts",a),t.sdkProcessingMetadata=pf(t.sdkProcessingMetadata,l,2),i&&(t.level=i),g&&(t.transactionName=g),b&&(t.span=b),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),f.length&&(t.fingerprint=[...t.fingerprint,...f]),h.length&&(t.eventProcessors=[...t.eventProcessors,...h]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,..._}}function Ud(t,e,r){t[e]=pf(t[e],r,1)}function iI(t,e){const{extra:r,tags:n,user:o,contexts:a,level:i,transactionName:l}=e,u=Pn(r);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const f=Pn(n);f&&Object.keys(f).length&&(t.tags={...f,...t.tags});const h=Pn(o);h&&Object.keys(h).length&&(t.user={...h,...t.user});const d=Pn(a);d&&Object.keys(d).length&&(t.contexts={...d,...t.contexts}),i&&(t.level=i),l&&t.type!=="transaction"&&(t.transaction=l)}function cI(t,e){const r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function lI(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function uI(t,e){t.contexts={trace:T5(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:L5(e),...t.sdkProcessingMetadata};const r=tD(e),n=tb(r).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function dI(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function pI(t,e,r,n,o,a){const{normalizeDepth:i=3,normalizeMaxBreadth:l=1e3}=t,u={...e,event_id:e.event_id||r.event_id||An(),timestamp:e.timestamp||mu()},f=r.integrations||t.integrations.map(S=>S.name);fI(u,t),_I(u,f),o&&o.emit("applyFrameMetadata",e),e.type===void 0&&hI(u,t.stackParser);const h=yI(n,r.captureContext);r.mechanism&&hc(u,r.mechanism);const d=o?o.getEventProcessors():[],_=p5().getScopeData();if(a){const S=a.getScopeData();XS(_,S)}if(h){const S=h.getScopeData();XS(_,S)}const g=[...r.attachments||[],..._.attachments];g.length&&(r.attachments=g),sI(u,_);const b=[...d,..._.eventProcessors];return Wv(b,u,r).then(S=>(S&&mI(S),typeof i=="number"&&i>0?gI(S,i,l):S))}function fI(t,e){const{environment:r,release:n,dist:o,maxValueLength:a=250}=e;t.environment=t.environment||r||rb,!t.release&&n&&(t.release=n),!t.dist&&o&&(t.dist=o),t.message&&(t.message=cc(t.message,a));const i=t.exception&&t.exception.values&&t.exception.values[0];i&&i.value&&(i.value=cc(i.value,a));const l=t.request;l&&l.url&&(l.url=cc(l.url,a))}function hI(t,e){const r=aI(e);try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{r&&o.filename&&(o.debug_id=r[o.filename])})})}catch{}}function mI(t){const e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const r=t.debug_meta.images;Object.entries(e).forEach(([n,o])=>{r.push({type:"sourcemap",code_file:n,debug_id:o})})}function _I(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function gI(t,e,r){if(!t)return null;const n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:Xo(o.data,e,r)}}))},...t.user&&{user:Xo(t.user,e,r)},...t.contexts&&{contexts:Xo(t.contexts,e,r)},...t.extra&&{extra:Xo(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=Xo(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(o=>({...o,...o.data&&{data:Xo(o.data,e,r)}}))),t.contexts&&t.contexts.flags&&n.contexts&&(n.contexts.flags=Xo(t.contexts.flags,3,r)),n}function yI(t,e){if(!e)return t;const r=t?t.clone():new Ds;return r.update(e),r}function vI(t,e){return ea().captureException(t,void 0)}function sD(t,e){return ea().captureEvent(t,e)}function GS(t){const e=Br(),r=_u(),n=ea(),{release:o,environment:a=rb}=e&&e.getOptions()||{},{userAgent:i}=$t.navigator||{},l=r5({release:o,environment:a,user:n.getUser()||r.getUser(),...i&&{userAgent:i},...t}),u=r.getSession();return u&&u.status==="ok"&&mc(u,{status:"exited"}),iD(),r.setSession(l),n.setSession(l),l}function iD(){const t=_u(),e=ea(),r=e.getSession()||t.getSession();r&&n5(r),cD(),t.setSession(),e.setSession()}function cD(){const t=_u(),e=ea(),r=Br(),n=e.getSession()||t.getSession();n&&r&&r.captureSession(n)}function JS(t=!1){if(t){iD();return}cD()}const bI="7";function wI(t){const e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function xI(t){return`${wI(t)}${t.projectId}/envelope/`}function SI(t,e){const r={sentry_version:bI};return t.publicKey&&(r.sentry_key=t.publicKey),e&&(r.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(r).toString()}function kI(t,e,r){return e||`${xI(t)}?${SI(t,r)}`}const YS=[];function CI(t){const e={};return t.forEach(r=>{const{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.values(e)}function $I(t){const e=t.defaultIntegrations||[],r=t.integrations;e.forEach(i=>{i.isDefaultInstance=!0});let n;if(Array.isArray(r))n=[...e,...r];else if(typeof r=="function"){const i=r(e);n=Array.isArray(i)?i:[i]}else n=e;const o=CI(n),a=o.findIndex(i=>i.name==="Debug");if(a>-1){const[i]=o.splice(a,1);o.push(i)}return o}function EI(t,e){const r={};return e.forEach(n=>{n&&lD(t,n,r)}),r}function KS(t,e){for(const r of e)r&&r.afterAllSetup&&r.afterAllSetup(t)}function lD(t,e,r){if(r[e.name]){It&&it.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,YS.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),YS.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,a)=>n(o,a,t))}if(typeof e.processEvent=="function"){const n=e.processEvent.bind(e),o=Object.assign((a,i)=>n(a,i,t),{id:e.name});t.addEventProcessor(o)}It&&it.log(`Integration installed: ${e.name}`)}function TI(t,e,r){const n=[{type:"client_report"},{timestamp:mu(),discarded_events:t}];return gu(e?{dsn:e}:{},[n])}class yo extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}}const ZS="Not capturing exception because it's already been captured.";class OI{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=H5(e.dsn):It&&it.warn("No DSN provided, client will not send events."),this._dsn){const o=kI(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:o})}const n=["enableTracing","tracesSampleRate","tracesSampler"].find(o=>o in e&&e[o]==null);n&&Fs(()=>{console.warn(`[Sentry] Deprecation warning: \`${n}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,r,n){const o=An();if(AS(e))return It&&it.log(ZS),o;const a={event_id:o,...r};return this._process(this.eventFromException(e,a).then(i=>this._captureEvent(i,a,n))),a.event_id}captureMessage(e,r,n,o){const a={event_id:An(),...n},i=J0(e)?e:String(e),l=Y0(e)?this.eventFromMessage(i,r,a):this.eventFromException(e,a);return this._process(l.then(u=>this._captureEvent(u,a,o))),a.event_id}captureEvent(e,r,n){const o=An();if(r&&r.originalException&&AS(r.originalException))return It&&it.log(ZS),o;const a={event_id:o,...r},l=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,a,l||n)),a.event_id}captureSession(e){typeof e.release!="string"?It&&it.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),mc(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>r.flush(e).then(o=>n&&o))):Os(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}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]}addIntegration(e){const r=this._integrations[e.name];lD(this,e,this._integrations),r||KS(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=oI(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of r.attachments||[])n=Y5(n,Q5(a));const o=this.sendEnvelope(n);o&&o.then(a=>this.emit("afterSendEvent",e,a),null)}sendSession(e){const r=nI(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){const o=typeof n=="number"?n:1,a=`${e}:${r}`;It&&it.log(`Recording outcome: "${a}"${o>1?` (${o} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+o}}on(e,r){const n=this._hooks[e]=this._hooks[e]||[];return n.push(r),()=>{const o=n.indexOf(r);o>-1&&n.splice(o,1)}}emit(e,...r){const n=this._hooks[e];n&&n.forEach(o=>o(...r))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,r=>(It&&it.error("Error while sending envelope:",r),r)):(It&&it.error("Transport disabled"),Os({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=EI(this,e),KS(this,e)}_updateSessionFromEvent(e,r){let n=!1,o=!1;const a=r.exception&&r.exception.values;if(a){o=!0;for(const u of a){const f=u.mechanism;if(f&&f.handled===!1){n=!0;break}}}const i=e.status==="ok";(i&&e.errors===0||i&&n)&&(mc(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Mn(r=>{let n=0;const o=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),r(!0)):(n+=o,e&&n>=e&&(clearInterval(a),r(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n=ea(),o=_u()){const a=this.getOptions(),i=Object.keys(this._integrations);return!r.integrations&&i.length>0&&(r.integrations=i),this.emit("preprocessEvent",e,r),e.type||o.setLastEventId(e.event_id||r.event_id),pI(a,e,r,n,this,o).then(l=>{if(l===null)return l;l.contexts={trace:h5(n),...l.contexts};const u=j5(this,n);return l.sdkProcessingMetadata={dynamicSamplingContext:u,...l.sdkProcessingMetadata},l})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(o=>o.event_id,o=>{if(It){const a=o;a.logLevel==="log"?it.log(a.message):it.warn(a)}})}_processEvent(e,r,n){const o=this.getOptions(),{sampleRate:a}=o,i=dD(e),l=uD(e),u=e.type||"error",f=`before send for type \`${u}\``,h=typeof a>"u"?void 0:F5(a);if(l&&typeof h=="number"&&Math.random()>h)return this.recordDroppedEvent("sample_rate","error",e),Rp(new yo(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const d=u==="replay_event"?"replay":u,g=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,r,n,g).then(b=>{if(b===null)throw this.recordDroppedEvent("event_processor",d,e),new yo("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return b;const S=MI(this,o,b,r);return DI(S,f)}).then(b=>{if(b===null){if(this.recordDroppedEvent("before_send",d,e),i){const D=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",D)}throw new yo(`${f} returned \`null\`, will not send event.`,"log")}const w=n&&n.getSession();if(!i&&w&&this._updateSessionFromEvent(w,b),i){const k=b.sdkProcessingMetadata&&b.sdkProcessingMetadata.spanCountBeforeProcessing||0,D=b.spans?b.spans.length:0,C=k-D;C>0&&this.recordDroppedEvent("before_send","span",C)}const S=b.transaction_info;if(i&&S&&b.transaction!==e.transaction){const k="custom";b.transaction_info={...S,source:k}}return this.sendEvent(b,r),b}).then(null,b=>{throw b instanceof yo?b:(this.captureException(b,{data:{__sentry__:!0},originalException:b}),new yo(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${b}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([r,n])=>{const[o,a]=r.split(":");return{reason:o,category:a,quantity:n}})}_flushOutcomes(){It&&it.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){It&&it.log("No outcomes to send");return}if(!this._dsn){It&&it.log("No dsn provided, will not send outcomes");return}It&&it.log("Sending outcomes:",e);const r=TI(e,this._options.tunnel&&ff(this._dsn));this.sendEnvelope(r)}}function DI(t,e){const r=`${e} must return \`null\` or a valid event.`;if(uf(t))return t.then(n=>{if(!fc(n)&&n!==null)throw new yo(r);return n},n=>{throw new yo(`${e} rejected with ${n}`)});if(!fc(t)&&t!==null)throw new yo(r);return t}function MI(t,e,r,n){const{beforeSend:o,beforeSendTransaction:a,beforeSendSpan:i}=e;if(uD(r)&&o)return o(r,n);if(dD(r)){if(r.spans&&i){const l=[];for(const u of r.spans){const f=i(u);f?l.push(f):(R5(),t.recordDroppedEvent("before_send","span"))}r.spans=l}if(a){if(r.spans){const l=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:l}}return a(r,n)}}return r}function uD(t){return t.type===void 0}function dD(t){return t.type==="transaction"}function NI(t,e){e.debug===!0&&(It?it.enable():Fs(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),ea().update(e.initialScope);const n=new t(e);return PI(n),n.init(),n}function PI(t){ea().setClient(t)}function RI(t){const e=[];function r(){return t===void 0||e.lengthn(l)).then(null,()=>n(l).then(null,()=>{})),l}function a(i){return new Mn((l,u)=>{let f=e.length;if(!f)return l(!0);const h=setTimeout(()=>{i&&i>0&&l(!1)},i);e.forEach(d=>{Os(d).then(()=>{--f||(clearTimeout(h),l(!0))},u)})})}return{$:e,add:o,drain:a}}const AI=60*1e3;function II(t,e=Date.now()){const r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;const n=Date.parse(`${t}`);return isNaN(n)?AI:n-e}function jI(t,e){return t[e]||t.all||0}function LI(t,e,r=Date.now()){return jI(t,e)>r}function FI(t,{statusCode:e,headers:r},n=Date.now()){const o={...t},a=r&&r["x-sentry-rate-limits"],i=r&&r["retry-after"];if(a)for(const l of a.trim().split(",")){const[u,f,,,h]=l.split(":",5),d=parseInt(u,10),_=(isNaN(d)?60:d)*1e3;if(!f)o.all=n+_;else for(const g of f.split(";"))g==="metric_bucket"?(!h||h.split(";").includes("custom"))&&(o[g]=n+_):o[g]=n+_}else i?o.all=n+II(i,n):e===429&&(o.all=n+60*1e3);return o}const zI=64;function BI(t,e,r=RI(t.bufferSize||zI)){let n={};const o=i=>r.drain(i);function a(i){const l=[];if(HS(i,(d,_)=>{const g=qS(_);if(LI(n,g)){const b=QS(d,_);t.recordDroppedEvent("ratelimit_backoff",g,b)}else l.push(d)}),l.length===0)return Os({});const u=gu(i[0],l),f=d=>{HS(u,(_,g)=>{const b=QS(_,g);t.recordDroppedEvent(d,qS(g),b)})},h=()=>e({body:K5(u)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&It&&it.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),n=FI(n,d),d),d=>{throw f("network_error"),d});return r.add(h).then(d=>d,d=>{if(d instanceof yo)return It&&it.error("Skipped sending event because buffer is full."),f("queue_overflow"),Os({});throw d})}return{send:a,flush:o}}function QS(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}function WI(t,e,r=[e],n="npm"){const o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:r.map(a=>({name:`${n}:@sentry/${a}`,version:ws})),version:ws}),t._metadata=o}const UI=100;function Ms(t,e){const r=Br(),n=_u();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=UI}=r.getOptions();if(a<=0)return;const l={timestamp:mu(),...t},u=o?Fs(()=>o(l,e)):l;u!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",u,e),n.addBreadcrumb(u,a))}let ek;const HI="FunctionToString",tk=new WeakMap,qI=()=>({name:HI,setupOnce(){ek=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Z0(this),r=tk.has(Br())&&e!==void 0?e:this;return ek.apply(r,t)}}catch{}},setup(t){tk.set(t,!0)}}),VI=qI,XI=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],GI="InboundFilters",JI=(t={})=>({name:GI,processEvent(e,r,n){const o=n.getOptions(),a=KI(t,o);return ZI(e,a)?null:e}}),YI=JI;function KI(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:XI],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function ZI(t,e){return e.ignoreInternal&&o4(t)?(It&&it.warn(`Event dropped due to being internal Sentry Error. Event: ${Na(t)}`),!0):QI(t,e.ignoreErrors)?(It&&it.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${Na(t)}`),!0):s4(t)?(It&&it.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${Na(t)}`),!0):e4(t,e.ignoreTransactions)?(It&&it.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. @@ -52,20 +52,20 @@ Event: ${Na(t)}`),!0):t4(t,e.denyUrls)?(It&&it.warn(`Event dropped due to being Event: ${Na(t)}. Url: ${Ap(t)}`),!0):r4(t,e.allowUrls)?!1:(It&&it.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${Na(t)}. -Url: ${Ap(t)}`),!0)}function QI(t,e){return t.type||!e||!e.length?!1:n4(t).some(r=>df(r,e))}function e4(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const r=t.transaction;return r?df(r,e):!1}function t4(t,e){if(!e||!e.length)return!1;const r=Ap(t);return r?df(r,e):!1}function r4(t,e){if(!e||!e.length)return!0;const r=Ap(t);return r?df(r,e):!0}function n4(t){const e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch{}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),e}function o4(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function a4(t=[]){for(let e=t.length-1;e>=0;e--){const r=t[e];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function Ap(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?a4(e):null}catch{return It&&it.error(`Cannot extract url for event ${Na(t)}`),null}}function s4(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}function i4(t,e,r=250,n,o,a,i){if(!a.exception||!a.exception.values||!i||!Es(i.originalException,Error))return;const l=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;l&&(a.exception.values=c4(Uv(t,e,o,i.originalException,n,a.exception.values,l,0),r))}function Uv(t,e,r,n,o,a,i,l){if(a.length>=r+1)return a;let u=[...a];if(Es(n[o],Error)){rk(i,l);const f=t(e,n[o]),h=u.length;nk(f,o,h,l),u=Uv(t,e,r,n[o],o,[f,...u],f,h)}return Array.isArray(n.errors)&&n.errors.forEach((f,h)=>{if(Es(f,Error)){rk(i,l);const d=t(e,f),_=u.length;nk(d,`errors[${h}]`,_,l),u=Uv(t,e,r,f,o,[d,...u],d,_)}}),u}function rk(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function nk(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function c4(t,e){return t.map(r=>(r.value&&(r.value=cc(r.value,e)),r))}function Vm(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}function l4(t){const e="console";Fs(e,t),Bs(e,u4)}function u4(){"console"in Et&&Av.forEach(function(t){t in Et.console&&_n(Et.console,t,function(e){return Pp[t]=e,function(...r){Kn("console",{args:r,level:t});const o=Pp[t];o&&o.apply(Et.console,r)}})})}function d4(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const p4="Dedupe",f4=()=>{let t;return{name:p4,processEvent(e){if(e.type)return e;try{if(h4(e,t))return It&&it.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},pD=f4;function h4(t,e){return e?!!(m4(t,e)||_4(t,e)):!1}function m4(t,e){const r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!hD(t,e)||!fD(t,e))}function _4(t,e){const r=ok(e),n=ok(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!hD(t,e)||!fD(t,e))}function fD(t,e){let r=OS(t),n=OS(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o=400&&t<500?"warning":t>=500?"error":void 0}const Hv=Et;function _D(){if(!("fetch"in Hv))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function qv(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function g4(){if(typeof EdgeRuntime=="string")return!0;if(!_D())return!1;if(qv(Hv.fetch))return!0;let t=!1;const e=Hv.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=qv(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){Ls&&it.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function y4(t,e){const r="fetch";Fs(r,t),Bs(r,()=>v4(void 0,e))}function v4(t,e=!1){e&&!g4()||_n(Et,"fetch",function(r){return function(...n){const o=new Error,{method:a,url:i}=b4(n),l={args:n,fetchData:{method:a,url:i},startTimestamp:Ko()*1e3,virtualError:o};return Kn("fetch",{...l}),r.apply(Et,n).then(async u=>(Kn("fetch",{...l,endTimestamp:Ko()*1e3,response:u}),u),u=>{throw Kn("fetch",{...l,endTimestamp:Ko()*1e3,error:u}),G0(u)&&u.stack===void 0&&(u.stack=o.stack,Ts(u,"framesToPop",1)),u})}})}function Vv(t,e){return!!t&&typeof t=="object"&&!!t[e]}function ak(t){return typeof t=="string"?t:t?Vv(t,"url")?t.url:t.toString?t.toString():"":""}function b4(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[r,n]=t;return{url:ak(r),method:Vv(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:ak(e),method:Vv(e,"method")?String(e.method).toUpperCase():"GET"}}function w4(){return"npm"}const Hd=Et;function x4(){const t=Hd.chrome,e=t&&t.app&&t.app.runtime,r="history"in Hd&&!!Hd.history.pushState&&!!Hd.history.replaceState;return!e&&r}const jt=Et;let Xv=0;function gD(){return Xv>0}function S4(){Xv++,setTimeout(()=>{Xv--})}function gc(t,e={}){function r(o){return typeof o=="function"}if(!r(t))return t;try{const o=t.__sentry_wrapped__;if(o)return typeof o=="function"?o:t;if(Z0(t))return t}catch{return t}const n=function(...o){try{const a=o.map(i=>gc(i,e));return t.apply(this,a)}catch(a){throw S4(),f5(i=>{i.addEventProcessor(l=>(e.mechanism&&(jv(l,void 0),hc(l,e.mechanism)),l.extra={...l.extra,arguments:o},l)),vI(a)}),a}};try{for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}catch{}KO(n,t),Ts(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}const yu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function nb(t,e){const r=ob(t,e),n={type:T4(e),value:O4(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function k4(t,e,r,n){const o=Br(),a=o&&o.getOptions().normalizeDepth,i=R4(e),l={__serialized__:oD(e,a)};if(i)return{exception:{values:[nb(t,i)]},extra:l};const u={exception:{values:[{type:lf(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:N4(e,{isUnhandledRejection:n})}]},extra:l};if(r){const f=ob(t,r);f.length&&(u.exception.values[0].stacktrace={frames:f})}return u}function Xm(t,e){return{exception:{values:[nb(t,e)]}}}function ob(t,e){const r=e.stacktrace||e.stack||"",n=$4(e),o=E4(e);try{return t(r,n,o)}catch{}return[]}const C4=/Minified React error #\d+;/i;function $4(t){return t&&C4.test(t.message)?1:0}function E4(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function yD(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function T4(t){const e=t&&t.name;return!e&&yD(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function O4(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:yD(t)&&Array.isArray(t.message)&&t.message.length==2?t.message[1]:e:"No error message"}function D4(t,e,r,n){const o=r&&r.syntheticException||void 0,a=ab(t,e,o,n);return hc(a),a.level="error",r&&r.event_id&&(a.event_id=r.event_id),Os(a)}function M4(t,e,r="info",n,o){const a=n&&n.syntheticException||void 0,i=Gv(t,e,a,o);return i.level=r,n&&n.event_id&&(i.event_id=n.event_id),Os(i)}function ab(t,e,r,n,o){let a;if(GO(e)&&e.error)return Xm(t,e.error);if(MS(e)||UA(e)){const i=e;if("stack"in e)a=Xm(t,e);else{const l=i.name||(MS(i)?"DOMError":"DOMException"),u=i.message?`${l}: ${i.message}`:l;a=Gv(t,u,r,n),jv(a,u)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return G0(e)?Xm(t,e):fc(e)||lf(e)?(a=k4(t,e,r,o),hc(a,{synthetic:!0}),a):(a=Gv(t,e,r,n),jv(a,`${e}`),hc(a,{synthetic:!0}),a)}function Gv(t,e,r,n){const o={};if(n&&r){const a=ob(t,r);a.length&&(o.exception={values:[{value:e,stacktrace:{frames:a}}]}),hc(o,{synthetic:!0})}if(J0(e)){const{__sentry_template_string__:a,__sentry_template_values__:i}=e;return o.logentry={message:a,params:i},o}return o.message=e,o}function N4(t,{isUnhandledRejection:e}){const r=ZA(t),n=e?"promise rejection":"exception";return GO(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:lf(t)?`Event \`${P4(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function P4(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function R4(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];if(r instanceof Error)return r}}function A4(t,{metadata:e,tunnel:r,dsn:n}){const o={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!r&&!!n&&{dsn:ff(n)}},a=I4(t);return gu(o,[a])}function I4(t){return[{type:"user_report"},t]}class j4 extends OI{constructor(e){const r={parentSpanIsAlwaysRootSpan:!0,...e},n=jt.SENTRY_SDK_SOURCE||w4();WI(r,"browser",["browser"],n),super(r),r.sendClientReports&&jt.document&&jt.document.addEventListener("visibilitychange",()=>{jt.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,r){return D4(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return M4(this._options.stackParser,e,r,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){yu&&it.warn("SDK not enabled, will not capture user feedback.");return}const r=A4(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(r)}_prepareEvent(e,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n)}}const L4=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qr=Et,z4=1e3;let sk,Jv,Yv;function F4(t){const e="dom";Fs(e,t),Bs(e,B4)}function B4(){if(!qr.document)return;const t=Kn.bind(null,"dom"),e=ik(t,!0);qr.document.addEventListener("click",e,!1),qr.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{const o=qr[r],a=o&&o.prototype;!a||!a.hasOwnProperty||!a.hasOwnProperty("addEventListener")||(_n(a,"addEventListener",function(i){return function(l,u,f){if(l==="click"||l=="keypress")try{const h=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=h[l]=h[l]||{refCount:0};if(!d.handler){const _=ik(t);d.handler=_,i.call(this,l,_,f)}d.refCount++}catch{}return i.call(this,l,u,f)}}),_n(a,"removeEventListener",function(i){return function(l,u,f){if(l==="click"||l=="keypress")try{const h=this.__sentry_instrumentation_handlers__||{},d=h[l];d&&(d.refCount--,d.refCount<=0&&(i.call(this,l,d.handler,f),d.handler=void 0,delete h[l]),Object.keys(h).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,l,u,f)}}))})}function W4(t){if(t.type!==Jv)return!1;try{if(!t.target||t.target._sentryId!==Yv)return!1}catch{}return!0}function U4(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function ik(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;const n=H4(r);if(U4(r.type,n))return;Ts(r,"_sentryCaptured",!0),n&&!n._sentryId&&Ts(n,"_sentryId",An());const o=r.type==="keypress"?"input":r.type;W4(r)||(t({event:r,name:o,global:e}),Jv=r.type,Yv=n?n._sentryId:void 0),clearTimeout(sk),sk=qr.setTimeout(()=>{Yv=void 0,Jv=void 0},z4)}}function H4(t){try{return t.target}catch{return null}}let qd;function vD(t){const e="history";Fs(e,t),Bs(e,q4)}function q4(){if(!x4())return;const t=qr.onpopstate;qr.onpopstate=function(...r){const n=qr.location.href,o=qd;if(qd=n,Kn("history",{from:o,to:n}),t)try{return t.apply(this,r)}catch{}};function e(r){return function(...n){const o=n.length>2?n[2]:void 0;if(o){const a=qd,i=String(o);qd=i,Kn("history",{from:a,to:i})}return r.apply(this,n)}}_n(qr.history,"pushState",e),_n(qr.history,"replaceState",e)}const xp={};function V4(t){const e=xp[t];if(e)return e;let r=qr[t];if(qv(r))return xp[t]=r.bind(qr);const n=qr.document;if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a&&a[t]&&(r=a[t]),n.head.removeChild(o)}catch(o){L4&&it.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,o)}return r&&(xp[t]=r.bind(qr))}function ck(t){xp[t]=void 0}const Rl="__sentry_xhr_v3__";function X4(t){const e="xhr";Fs(e,t),Bs(e,G4)}function G4(){if(!qr.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,r,n){const o=new Error,a=Ko()*1e3,i=Yo(n[0])?n[0].toUpperCase():void 0,l=J4(n[1]);if(!i||!l)return e.apply(r,n);r[Rl]={method:i,url:l,request_headers:{}},i==="POST"&&l.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const u=()=>{const f=r[Rl];if(f&&r.readyState===4){try{f.status_code=r.status}catch{}const h={endTimestamp:Ko()*1e3,startTimestamp:a,xhr:r,virtualError:o};Kn("xhr",h)}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(f,h,d){return u(),f.apply(h,d)}}):r.addEventListener("readystatechange",u),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(f,h,d){const[_,g]=d,b=h[Rl];return b&&Yo(_)&&Yo(g)&&(b.request_headers[_.toLowerCase()]=g),f.apply(h,d)}}),e.apply(r,n)}}),t.send=new Proxy(t.send,{apply(e,r,n){const o=r[Rl];if(!o)return e.apply(r,n);n[0]!==void 0&&(o.body=n[0]);const a={startTimestamp:Ko()*1e3,xhr:r};return Kn("xhr",a),e.apply(r,n)}})}function J4(t){if(Yo(t))return t;try{return t.toString()}catch{}}function Y4(t,e=V4("fetch")){let r=0,n=0;function o(a){const i=a.body.length;r+=i,n++;const l={body:a.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};if(!e)return ck("fetch"),Rp("No fetch implementation available");try{return e(t.url,l).then(u=>(r-=i,n--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return ck("fetch"),r-=i,n--,Rp(u)}}return BI(t,o)}const K4=30,Z4=50;function Kv(t,e,r,n){const o={filename:t,function:e===""?$s:e,in_app:!0};return r!==void 0&&(o.lineno=r),n!==void 0&&(o.colno=n),o}const Q4=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ej=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tj=/\((\S*)(?::(\d+))(?::(\d+))\)/,rj=t=>{const e=Q4.exec(t);if(e){const[,n,o,a]=e;return Kv(n,$s,+o,+a)}const r=ej.exec(t);if(r){if(r[2]&&r[2].indexOf("eval")===0){const i=tj.exec(r[2]);i&&(r[2]=i[1],r[3]=i[2],r[4]=i[3])}const[o,a]=bD(r[1]||$s,r[2]);return Kv(a,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},nj=[K4,rj],oj=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,aj=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,sj=t=>{const e=oj.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const a=aj.exec(e[3]);a&&(e[1]=e[1]||"eval",e[3]=a[1],e[4]=a[2],e[5]="")}let n=e[3],o=e[1]||$s;return[o,n]=bD(o,n),Kv(n,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},ij=[Z4,sj],cj=[nj,ij],lj=VO(...cj),bD=(t,e)=>{const r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:$s,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Vd=1024,uj="Breadcrumbs",dj=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:uj,setup(r){e.console&&l4(mj(r)),e.dom&&F4(hj(r,e.dom)),e.xhr&&X4(_j(r)),e.fetch&&y4(gj(r)),e.history&&vD(yj(r)),e.sentry&&r.on("beforeSendEvent",fj(r))}}},pj=dj;function fj(t){return function(r){Br()===t&&Ms({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:Na(r)},{event:r})}}function hj(t,e){return function(n){if(Br()!==t)return;let o,a,i=typeof e=="object"?e.serializeAttribute:void 0,l=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;l&&l>Vd&&(yu&&it.warn(`\`dom.maxStringLength\` cannot exceed ${Vd}, but a value of ${l} was configured. Sentry will use ${Vd} instead.`),l=Vd),typeof i=="string"&&(i=[i]);try{const f=n.event,h=vj(f)?f.target:f;o=YO(h,{keyAttrs:i,maxStringLength:l}),a=YA(h)}catch{o=""}if(o.length===0)return;const u={category:`ui.${n.name}`,message:o};a&&(u.data={"ui.component_name":a}),Ms(u,{event:n.event,name:n.name,global:n.global})}}function mj(t){return function(r){if(Br()!==t)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:d4(r.level),message:NS(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${NS(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;Ms(n,{input:r.args,level:r.level})}}function _j(t){return function(r){if(Br()!==t)return;const{startTimestamp:n,endTimestamp:o}=r,a=r.xhr[Rl];if(!n||!o||!a)return;const{method:i,url:l,status_code:u,body:f}=a,h={method:i,url:l,status_code:u},d={xhr:r.xhr,input:f,startTimestamp:n,endTimestamp:o},_=mD(u);Ms({category:"xhr",data:h,type:"http",level:_},d)}}function gj(t){return function(r){if(Br()!==t)return;const{startTimestamp:n,endTimestamp:o}=r;if(o&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){const a=r.fetchData,i={data:r.error,input:r.args,startTimestamp:n,endTimestamp:o};Ms({category:"fetch",data:a,level:"error",type:"http"},i)}else{const a=r.response,i={...r.fetchData,status_code:a&&a.status},l={input:r.args,response:a,startTimestamp:n,endTimestamp:o},u=mD(i.status_code);Ms({category:"fetch",data:i,type:"http",level:u},l)}}}function yj(t){return function(r){if(Br()!==t)return;let n=r.from,o=r.to;const a=Vm(jt.location.href);let i=n?Vm(n):void 0;const l=Vm(o);(!i||!i.path)&&(i=a),a.protocol===l.protocol&&a.host===l.host&&(o=l.relative),a.protocol===i.protocol&&a.host===i.host&&(n=i.relative),Ms({category:"navigation",data:{from:n,to:o}})}}function vj(t){return!!t&&!!t.target}const bj=["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"],wj="BrowserApiErrors",xj=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:wj,setupOnce(){e.setTimeout&&_n(jt,"setTimeout",lk),e.setInterval&&_n(jt,"setInterval",lk),e.requestAnimationFrame&&_n(jt,"requestAnimationFrame",kj),e.XMLHttpRequest&&"XMLHttpRequest"in jt&&_n(XMLHttpRequest.prototype,"send",Cj);const r=e.eventTarget;r&&(Array.isArray(r)?r:bj).forEach($j)}}},Sj=xj;function lk(t){return function(...e){const r=e[0];return e[0]=gc(r,{mechanism:{data:{function:La(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function kj(t){return function(e){return t.apply(this,[gc(e,{mechanism:{data:{function:"requestAnimationFrame",handler:La(t)},handled:!1,type:"instrument"}})])}}function Cj(t){return function(...e){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in r&&typeof r[o]=="function"&&_n(r,o,function(a){const i={mechanism:{data:{function:o,handler:La(a)},handled:!1,type:"instrument"}},l=Z0(a);return l&&(i.mechanism.data.handler=La(l)),gc(a,i)})}),t.apply(this,e)}}function $j(t){const r=jt[t],n=r&&r.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(_n(n,"addEventListener",function(o){return function(a,i,l){try{Ej(i)&&(i.handleEvent=gc(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:La(i),target:t},handled:!1,type:"instrument"}}))}catch{}return o.apply(this,[a,gc(i,{mechanism:{data:{function:"addEventListener",handler:La(i),target:t},handled:!1,type:"instrument"}}),l])}}),_n(n,"removeEventListener",function(o){return function(a,i,l){try{const u=i.__sentry_wrapped__;u&&o.call(this,a,u,l)}catch{}return o.call(this,a,i,l)}}))}function Ej(t){return typeof t.handleEvent=="function"}const Tj=()=>({name:"BrowserSession",setupOnce(){if(typeof jt.document>"u"){yu&&it.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}GS({ignoreDuration:!0}),JS(),vD(({from:t,to:e})=>{t!==void 0&&t!==e&&(GS({ignoreDuration:!0}),JS())})}}),Oj="GlobalHandlers",Dj=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Oj,setupOnce(){Error.stackTraceLimit=50},setup(r){e.onerror&&(Nj(r),uk("onerror")),e.onunhandledrejection&&(Pj(r),uk("onunhandledrejection"))}}},Mj=Dj;function Nj(t){zA(e=>{const{stackParser:r,attachStacktrace:n}=wD();if(Br()!==t||gD())return;const{msg:o,url:a,line:i,column:l,error:u}=e,f=Ij(ab(r,u||o,void 0,n,!1),a,i,l);f.level="error",sD(f,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function Pj(t){BA(e=>{const{stackParser:r,attachStacktrace:n}=wD();if(Br()!==t||gD())return;const o=Rj(e),a=Y0(o)?Aj(o):ab(r,o,void 0,n,!0);a.level="error",sD(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Rj(t){if(Y0(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function Aj(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Ij(t,e,r,n){const o=t.exception=t.exception||{},a=o.values=o.values||[],i=a[0]=a[0]||{},l=i.stacktrace=i.stacktrace||{},u=l.frames=l.frames||[],f=n,h=r,d=Yo(e)&&e.length>0?e:JA();return u.length===0&&u.push({colno:f,filename:d,function:$s,in_app:!0,lineno:h}),t}function uk(t){yu&&it.log(`Global Handler attached: ${t}`)}function wD(){const t=Br();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const jj=()=>({name:"HttpContext",preprocessEvent(t){if(!jt.navigator&&!jt.location&&!jt.document)return;const e=t.request&&t.request.url||jt.location&&jt.location.href,{referrer:r}=jt.document||{},{userAgent:n}=jt.navigator||{},o={...t.request&&t.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...t.request,...e&&{url:e},headers:o};t.request=a}}),Lj="cause",zj=5,Fj="LinkedErrors",Bj=(t={})=>{const e=t.limit||zj,r=t.key||Lj;return{name:Fj,preprocessEvent(n,o,a){const i=a.getOptions();i4(nb,i.stackParser,i.maxValueLength,r,e,n,o)}}},Wj=Bj;function Uj(t){const e=[YI(),VI(),Sj(),pj(),Mj(),Wj(),pD(),jj()];return t.autoSessionTracking!==!1&&e.push(Tj()),e}function Hj(t={}){const e={defaultIntegrations:Uj(t),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:jt.SENTRY_RELEASE&&jt.SENTRY_RELEASE.id?jt.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return t.defaultIntegrations==null&&delete t.defaultIntegrations,{...e,...t}}function qj(){const t=typeof jt.window<"u"&&jt;if(!t)return!1;const e=t.chrome?"chrome":"browser",r=t[e],n=r&&r.runtime&&r.runtime.id,o=jt.location&&jt.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!n&&jt===jt.top&&a.some(u=>o.startsWith(`${u}//`)),l=typeof t.nw<"u";return!!n&&!i&&!l}function Vj(t={}){const e=Hj(t);if(!e.skipBrowserExtensionCheck&&qj()){zs(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}yu&&(_D()||it.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const r={...e,stackParser:jA(e.stackParser||lj),integrations:$I(e),transport:e.transport||Y4};return NI(j4,r)}var $=js();const y=Ha($),Ip=$A({__proto__:null,default:y},[$]);function Zo(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const Zn="$$material";function jp(){return jp=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?Mr(Oc,--sn):0,yc--,hr===10&&(yc=1,mf--),hr}function gn(){return hr=sn<$D?Mr(Oc,sn++):0,yc++,hr===10&&(yc=1,mf++),hr}function xo(){return Mr(Oc,sn)}function Sp(){return sn}function vu(t,e){return Zl(Oc,t,e)}function Ql(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ED(t){return mf=yc=1,$D=fo(Oc=t),sn=0,[]}function TD(t){return Oc="",t}function kp(t){return CD(vu(sn-1,Qv(t===91?t+2:t===40?t+1:t)))}function a3(t){for(;(hr=xo())&&hr<33;)gn();return Ql(t)>2||Ql(hr)>3?"":" "}function s3(t,e){for(;--e&&gn()&&!(hr<48||hr>102||hr>57&&hr<65||hr>70&&hr<97););return vu(t,Sp()+(e<6&&xo()==32&&gn()==32))}function Qv(t){for(;gn();)switch(hr){case t:return sn;case 34:case 39:t!==34&&t!==39&&Qv(hr);break;case 40:t===41&&Qv(t);break;case 92:gn();break}return sn}function i3(t,e){for(;gn()&&t+hr!==57;)if(t+hr===84&&xo()===47)break;return"/*"+vu(e,sn-1)+"*"+hf(t===47?t:gn())}function c3(t){for(;!Ql(xo());)gn();return vu(t,sn)}function l3(t){return TD(Cp("",null,null,null,[""],t=ED(t),0,[0],t))}function Cp(t,e,r,n,o,a,i,l,u){for(var f=0,h=0,d=i,_=0,g=0,b=0,w=1,S=1,k=1,D=0,C="",O=o,M=a,T=n,P=C;S;)switch(b=D,D=gn()){case 40:if(b!=108&&Mr(P,d-1)==58){Zv(P+=$t(kp(D),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:P+=kp(D);break;case 9:case 10:case 13:case 32:P+=a3(b);break;case 92:P+=s3(Sp()-1,7);continue;case 47:switch(xo()){case 42:case 47:Xd(u3(i3(gn(),Sp()),e,r),u);break;default:P+="/"}break;case 123*w:l[f++]=fo(P)*k;case 125*w:case 59:case 0:switch(D){case 0:case 125:S=0;case 59+h:k==-1&&(P=$t(P,/\f/g,"")),g>0&&fo(P)-d&&Xd(g>32?pk(P+";",n,r,d-1):pk($t(P," ","")+";",n,r,d-2),u);break;case 59:P+=";";default:if(Xd(T=dk(P,e,r,f,h,o,l,C,O=[],M=[],d),a),D===123)if(h===0)Cp(P,e,T,T,O,a,d,l,M);else switch(_===99&&Mr(P,3)===110?100:_){case 100:case 108:case 109:case 115:Cp(t,T,T,n&&Xd(dk(t,T,T,0,0,o,l,C,o,O=[],d),M),o,M,d,l,n?O:M);break;default:Cp(P,T,T,T,[""],M,0,l,M)}}f=h=g=0,w=k=1,C=P="",d=i;break;case 58:d=1+fo(P),g=b;default:if(w<1){if(D==123)--w;else if(D==125&&w++==0&&o3()==125)continue}switch(P+=hf(D),D*w){case 38:k=h>0?1:(P+="\f",-1);break;case 44:l[f++]=(fo(P)-1)*k,k=1;break;case 64:xo()===45&&(P+=kp(gn())),_=xo(),h=d=fo(C=P+=c3(Sp())),D++;break;case 45:b===45&&fo(P)==2&&(w=0)}}return a}function dk(t,e,r,n,o,a,i,l,u,f,h){for(var d=o-1,_=o===0?a:[""],g=cb(_),b=0,w=0,S=0;b0?_[k]+" "+D:$t(D,/&\f/g,_[k])))&&(u[S++]=C);return _f(t,e,r,o===0?sb:l,u,f,h)}function u3(t,e,r){return _f(t,e,r,SD,hf(n3()),Zl(t,2,-2),0)}function pk(t,e,r,n){return _f(t,e,r,ib,Zl(t,0,n),Zl(t,n+1,-1),n)}function lc(t,e){for(var r="",n=cb(t),o=0;o6)switch(Mr(t,e+1)){case 109:if(Mr(t,e+4)!==45)break;case 102:return $t(t,/(.+:)(.+)-([^]+)/,"$1"+Ct+"$2-$3$1"+Lp+(Mr(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Zv(t,"stretch")?DD($t(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Mr(t,e+1)!==115)break;case 6444:switch(Mr(t,fo(t)-3-(~Zv(t,"!important")&&10))){case 107:return $t(t,":",":"+Ct)+t;case 101:return $t(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ct+(Mr(t,14)===45?"inline-":"")+"box$3$1"+Ct+"$2$3$1"+jr+"$2box$3")+t}break;case 5936:switch(Mr(t,e+11)){case 114:return Ct+t+jr+$t(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ct+t+jr+$t(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ct+t+jr+$t(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ct+t+jr+t+t}return t}var v3=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case ib:e.return=DD(e.value,e.length);break;case kD:return lc([vl(e,{value:$t(e.value,"@","@"+Ct)})],o);case sb:if(e.length)return r3(e.props,function(a){switch(t3(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lc([vl(e,{props:[$t(a,/:(read-\w+)/,":"+Lp+"$1")]})],o);case"::placeholder":return lc([vl(e,{props:[$t(a,/:(plac\w+)/,":"+Ct+"input-$1")]}),vl(e,{props:[$t(a,/:(plac\w+)/,":"+Lp+"$1")]}),vl(e,{props:[$t(a,/:(plac\w+)/,jr+"input-$1")]})],o)}return""})}},b3=[v3],MD=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var S=w.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=e.stylisPlugins||b3,a={},i,l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var S=w.getAttribute("data-emotion").split(" "),k=1;kdf(r,e))}function e4(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const r=t.transaction;return r?df(r,e):!1}function t4(t,e){if(!e||!e.length)return!1;const r=Ap(t);return r?df(r,e):!1}function r4(t,e){if(!e||!e.length)return!0;const r=Ap(t);return r?df(r,e):!0}function n4(t){const e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch{}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),e}function o4(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function a4(t=[]){for(let e=t.length-1;e>=0;e--){const r=t[e];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function Ap(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?a4(e):null}catch{return It&&it.error(`Cannot extract url for event ${Na(t)}`),null}}function s4(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}function i4(t,e,r=250,n,o,a,i){if(!a.exception||!a.exception.values||!i||!Es(i.originalException,Error))return;const l=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;l&&(a.exception.values=c4(Uv(t,e,o,i.originalException,n,a.exception.values,l,0),r))}function Uv(t,e,r,n,o,a,i,l){if(a.length>=r+1)return a;let u=[...a];if(Es(n[o],Error)){rk(i,l);const f=t(e,n[o]),h=u.length;nk(f,o,h,l),u=Uv(t,e,r,n[o],o,[f,...u],f,h)}return Array.isArray(n.errors)&&n.errors.forEach((f,h)=>{if(Es(f,Error)){rk(i,l);const d=t(e,f),_=u.length;nk(d,`errors[${h}]`,_,l),u=Uv(t,e,r,f,o,[d,...u],d,_)}}),u}function rk(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function nk(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function c4(t,e){return t.map(r=>(r.value&&(r.value=cc(r.value,e)),r))}function Vm(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}function l4(t){const e="console";zs(e,t),Bs(e,u4)}function u4(){"console"in $t&&Av.forEach(function(t){t in $t.console&&_n($t.console,t,function(e){return Pp[t]=e,function(...r){Kn("console",{args:r,level:t});const o=Pp[t];o&&o.apply($t.console,r)}})})}function d4(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const p4="Dedupe",f4=()=>{let t;return{name:p4,processEvent(e){if(e.type)return e;try{if(h4(e,t))return It&&it.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},pD=f4;function h4(t,e){return e?!!(m4(t,e)||_4(t,e)):!1}function m4(t,e){const r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!hD(t,e)||!fD(t,e))}function _4(t,e){const r=ok(e),n=ok(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!hD(t,e)||!fD(t,e))}function fD(t,e){let r=OS(t),n=OS(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o=400&&t<500?"warning":t>=500?"error":void 0}const Hv=$t;function _D(){if(!("fetch"in Hv))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function qv(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function g4(){if(typeof EdgeRuntime=="string")return!0;if(!_D())return!1;if(qv(Hv.fetch))return!0;let t=!1;const e=Hv.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=qv(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){Ls&&it.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function y4(t,e){const r="fetch";zs(r,t),Bs(r,()=>v4(void 0,e))}function v4(t,e=!1){e&&!g4()||_n($t,"fetch",function(r){return function(...n){const o=new Error,{method:a,url:i}=b4(n),l={args:n,fetchData:{method:a,url:i},startTimestamp:Ko()*1e3,virtualError:o};return Kn("fetch",{...l}),r.apply($t,n).then(async u=>(Kn("fetch",{...l,endTimestamp:Ko()*1e3,response:u}),u),u=>{throw Kn("fetch",{...l,endTimestamp:Ko()*1e3,error:u}),G0(u)&&u.stack===void 0&&(u.stack=o.stack,Ts(u,"framesToPop",1)),u})}})}function Vv(t,e){return!!t&&typeof t=="object"&&!!t[e]}function ak(t){return typeof t=="string"?t:t?Vv(t,"url")?t.url:t.toString?t.toString():"":""}function b4(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[r,n]=t;return{url:ak(r),method:Vv(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:ak(e),method:Vv(e,"method")?String(e.method).toUpperCase():"GET"}}function w4(){return"npm"}const Hd=$t;function x4(){const t=Hd.chrome,e=t&&t.app&&t.app.runtime,r="history"in Hd&&!!Hd.history.pushState&&!!Hd.history.replaceState;return!e&&r}const jt=$t;let Xv=0;function gD(){return Xv>0}function S4(){Xv++,setTimeout(()=>{Xv--})}function gc(t,e={}){function r(o){return typeof o=="function"}if(!r(t))return t;try{const o=t.__sentry_wrapped__;if(o)return typeof o=="function"?o:t;if(Z0(t))return t}catch{return t}const n=function(...o){try{const a=o.map(i=>gc(i,e));return t.apply(this,a)}catch(a){throw S4(),f5(i=>{i.addEventProcessor(l=>(e.mechanism&&(jv(l,void 0),hc(l,e.mechanism)),l.extra={...l.extra,arguments:o},l)),vI(a)}),a}};try{for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}catch{}KO(n,t),Ts(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}const yu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function nb(t,e){const r=ob(t,e),n={type:T4(e),value:O4(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function k4(t,e,r,n){const o=Br(),a=o&&o.getOptions().normalizeDepth,i=R4(e),l={__serialized__:oD(e,a)};if(i)return{exception:{values:[nb(t,i)]},extra:l};const u={exception:{values:[{type:lf(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:N4(e,{isUnhandledRejection:n})}]},extra:l};if(r){const f=ob(t,r);f.length&&(u.exception.values[0].stacktrace={frames:f})}return u}function Xm(t,e){return{exception:{values:[nb(t,e)]}}}function ob(t,e){const r=e.stacktrace||e.stack||"",n=$4(e),o=E4(e);try{return t(r,n,o)}catch{}return[]}const C4=/Minified React error #\d+;/i;function $4(t){return t&&C4.test(t.message)?1:0}function E4(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function yD(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function T4(t){const e=t&&t.name;return!e&&yD(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function O4(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:yD(t)&&Array.isArray(t.message)&&t.message.length==2?t.message[1]:e:"No error message"}function D4(t,e,r,n){const o=r&&r.syntheticException||void 0,a=ab(t,e,o,n);return hc(a),a.level="error",r&&r.event_id&&(a.event_id=r.event_id),Os(a)}function M4(t,e,r="info",n,o){const a=n&&n.syntheticException||void 0,i=Gv(t,e,a,o);return i.level=r,n&&n.event_id&&(i.event_id=n.event_id),Os(i)}function ab(t,e,r,n,o){let a;if(GO(e)&&e.error)return Xm(t,e.error);if(MS(e)||UA(e)){const i=e;if("stack"in e)a=Xm(t,e);else{const l=i.name||(MS(i)?"DOMError":"DOMException"),u=i.message?`${l}: ${i.message}`:l;a=Gv(t,u,r,n),jv(a,u)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return G0(e)?Xm(t,e):fc(e)||lf(e)?(a=k4(t,e,r,o),hc(a,{synthetic:!0}),a):(a=Gv(t,e,r,n),jv(a,`${e}`),hc(a,{synthetic:!0}),a)}function Gv(t,e,r,n){const o={};if(n&&r){const a=ob(t,r);a.length&&(o.exception={values:[{value:e,stacktrace:{frames:a}}]}),hc(o,{synthetic:!0})}if(J0(e)){const{__sentry_template_string__:a,__sentry_template_values__:i}=e;return o.logentry={message:a,params:i},o}return o.message=e,o}function N4(t,{isUnhandledRejection:e}){const r=ZA(t),n=e?"promise rejection":"exception";return GO(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:lf(t)?`Event \`${P4(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function P4(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function R4(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];if(r instanceof Error)return r}}function A4(t,{metadata:e,tunnel:r,dsn:n}){const o={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!r&&!!n&&{dsn:ff(n)}},a=I4(t);return gu(o,[a])}function I4(t){return[{type:"user_report"},t]}class j4 extends OI{constructor(e){const r={parentSpanIsAlwaysRootSpan:!0,...e},n=jt.SENTRY_SDK_SOURCE||w4();WI(r,"browser",["browser"],n),super(r),r.sendClientReports&&jt.document&&jt.document.addEventListener("visibilitychange",()=>{jt.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,r){return D4(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return M4(this._options.stackParser,e,r,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){yu&&it.warn("SDK not enabled, will not capture user feedback.");return}const r=A4(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(r)}_prepareEvent(e,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n)}}const L4=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qr=$t,F4=1e3;let sk,Jv,Yv;function z4(t){const e="dom";zs(e,t),Bs(e,B4)}function B4(){if(!qr.document)return;const t=Kn.bind(null,"dom"),e=ik(t,!0);qr.document.addEventListener("click",e,!1),qr.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{const o=qr[r],a=o&&o.prototype;!a||!a.hasOwnProperty||!a.hasOwnProperty("addEventListener")||(_n(a,"addEventListener",function(i){return function(l,u,f){if(l==="click"||l=="keypress")try{const h=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=h[l]=h[l]||{refCount:0};if(!d.handler){const _=ik(t);d.handler=_,i.call(this,l,_,f)}d.refCount++}catch{}return i.call(this,l,u,f)}}),_n(a,"removeEventListener",function(i){return function(l,u,f){if(l==="click"||l=="keypress")try{const h=this.__sentry_instrumentation_handlers__||{},d=h[l];d&&(d.refCount--,d.refCount<=0&&(i.call(this,l,d.handler,f),d.handler=void 0,delete h[l]),Object.keys(h).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,l,u,f)}}))})}function W4(t){if(t.type!==Jv)return!1;try{if(!t.target||t.target._sentryId!==Yv)return!1}catch{}return!0}function U4(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function ik(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;const n=H4(r);if(U4(r.type,n))return;Ts(r,"_sentryCaptured",!0),n&&!n._sentryId&&Ts(n,"_sentryId",An());const o=r.type==="keypress"?"input":r.type;W4(r)||(t({event:r,name:o,global:e}),Jv=r.type,Yv=n?n._sentryId:void 0),clearTimeout(sk),sk=qr.setTimeout(()=>{Yv=void 0,Jv=void 0},F4)}}function H4(t){try{return t.target}catch{return null}}let qd;function vD(t){const e="history";zs(e,t),Bs(e,q4)}function q4(){if(!x4())return;const t=qr.onpopstate;qr.onpopstate=function(...r){const n=qr.location.href,o=qd;if(qd=n,Kn("history",{from:o,to:n}),t)try{return t.apply(this,r)}catch{}};function e(r){return function(...n){const o=n.length>2?n[2]:void 0;if(o){const a=qd,i=String(o);qd=i,Kn("history",{from:a,to:i})}return r.apply(this,n)}}_n(qr.history,"pushState",e),_n(qr.history,"replaceState",e)}const xp={};function V4(t){const e=xp[t];if(e)return e;let r=qr[t];if(qv(r))return xp[t]=r.bind(qr);const n=qr.document;if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a&&a[t]&&(r=a[t]),n.head.removeChild(o)}catch(o){L4&&it.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,o)}return r&&(xp[t]=r.bind(qr))}function ck(t){xp[t]=void 0}const Rl="__sentry_xhr_v3__";function X4(t){const e="xhr";zs(e,t),Bs(e,G4)}function G4(){if(!qr.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,r,n){const o=new Error,a=Ko()*1e3,i=Yo(n[0])?n[0].toUpperCase():void 0,l=J4(n[1]);if(!i||!l)return e.apply(r,n);r[Rl]={method:i,url:l,request_headers:{}},i==="POST"&&l.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const u=()=>{const f=r[Rl];if(f&&r.readyState===4){try{f.status_code=r.status}catch{}const h={endTimestamp:Ko()*1e3,startTimestamp:a,xhr:r,virtualError:o};Kn("xhr",h)}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(f,h,d){return u(),f.apply(h,d)}}):r.addEventListener("readystatechange",u),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(f,h,d){const[_,g]=d,b=h[Rl];return b&&Yo(_)&&Yo(g)&&(b.request_headers[_.toLowerCase()]=g),f.apply(h,d)}}),e.apply(r,n)}}),t.send=new Proxy(t.send,{apply(e,r,n){const o=r[Rl];if(!o)return e.apply(r,n);n[0]!==void 0&&(o.body=n[0]);const a={startTimestamp:Ko()*1e3,xhr:r};return Kn("xhr",a),e.apply(r,n)}})}function J4(t){if(Yo(t))return t;try{return t.toString()}catch{}}function Y4(t,e=V4("fetch")){let r=0,n=0;function o(a){const i=a.body.length;r+=i,n++;const l={body:a.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};if(!e)return ck("fetch"),Rp("No fetch implementation available");try{return e(t.url,l).then(u=>(r-=i,n--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return ck("fetch"),r-=i,n--,Rp(u)}}return BI(t,o)}const K4=30,Z4=50;function Kv(t,e,r,n){const o={filename:t,function:e===""?$s:e,in_app:!0};return r!==void 0&&(o.lineno=r),n!==void 0&&(o.colno=n),o}const Q4=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ej=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tj=/\((\S*)(?::(\d+))(?::(\d+))\)/,rj=t=>{const e=Q4.exec(t);if(e){const[,n,o,a]=e;return Kv(n,$s,+o,+a)}const r=ej.exec(t);if(r){if(r[2]&&r[2].indexOf("eval")===0){const i=tj.exec(r[2]);i&&(r[2]=i[1],r[3]=i[2],r[4]=i[3])}const[o,a]=bD(r[1]||$s,r[2]);return Kv(a,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},nj=[K4,rj],oj=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,aj=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,sj=t=>{const e=oj.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const a=aj.exec(e[3]);a&&(e[1]=e[1]||"eval",e[3]=a[1],e[4]=a[2],e[5]="")}let n=e[3],o=e[1]||$s;return[o,n]=bD(o,n),Kv(n,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},ij=[Z4,sj],cj=[nj,ij],lj=VO(...cj),bD=(t,e)=>{const r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:$s,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Vd=1024,uj="Breadcrumbs",dj=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:uj,setup(r){e.console&&l4(mj(r)),e.dom&&z4(hj(r,e.dom)),e.xhr&&X4(_j(r)),e.fetch&&y4(gj(r)),e.history&&vD(yj(r)),e.sentry&&r.on("beforeSendEvent",fj(r))}}},pj=dj;function fj(t){return function(r){Br()===t&&Ms({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:Na(r)},{event:r})}}function hj(t,e){return function(n){if(Br()!==t)return;let o,a,i=typeof e=="object"?e.serializeAttribute:void 0,l=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;l&&l>Vd&&(yu&&it.warn(`\`dom.maxStringLength\` cannot exceed ${Vd}, but a value of ${l} was configured. Sentry will use ${Vd} instead.`),l=Vd),typeof i=="string"&&(i=[i]);try{const f=n.event,h=vj(f)?f.target:f;o=YO(h,{keyAttrs:i,maxStringLength:l}),a=YA(h)}catch{o=""}if(o.length===0)return;const u={category:`ui.${n.name}`,message:o};a&&(u.data={"ui.component_name":a}),Ms(u,{event:n.event,name:n.name,global:n.global})}}function mj(t){return function(r){if(Br()!==t)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:d4(r.level),message:NS(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${NS(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;Ms(n,{input:r.args,level:r.level})}}function _j(t){return function(r){if(Br()!==t)return;const{startTimestamp:n,endTimestamp:o}=r,a=r.xhr[Rl];if(!n||!o||!a)return;const{method:i,url:l,status_code:u,body:f}=a,h={method:i,url:l,status_code:u},d={xhr:r.xhr,input:f,startTimestamp:n,endTimestamp:o},_=mD(u);Ms({category:"xhr",data:h,type:"http",level:_},d)}}function gj(t){return function(r){if(Br()!==t)return;const{startTimestamp:n,endTimestamp:o}=r;if(o&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){const a=r.fetchData,i={data:r.error,input:r.args,startTimestamp:n,endTimestamp:o};Ms({category:"fetch",data:a,level:"error",type:"http"},i)}else{const a=r.response,i={...r.fetchData,status_code:a&&a.status},l={input:r.args,response:a,startTimestamp:n,endTimestamp:o},u=mD(i.status_code);Ms({category:"fetch",data:i,type:"http",level:u},l)}}}function yj(t){return function(r){if(Br()!==t)return;let n=r.from,o=r.to;const a=Vm(jt.location.href);let i=n?Vm(n):void 0;const l=Vm(o);(!i||!i.path)&&(i=a),a.protocol===l.protocol&&a.host===l.host&&(o=l.relative),a.protocol===i.protocol&&a.host===i.host&&(n=i.relative),Ms({category:"navigation",data:{from:n,to:o}})}}function vj(t){return!!t&&!!t.target}const bj=["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"],wj="BrowserApiErrors",xj=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:wj,setupOnce(){e.setTimeout&&_n(jt,"setTimeout",lk),e.setInterval&&_n(jt,"setInterval",lk),e.requestAnimationFrame&&_n(jt,"requestAnimationFrame",kj),e.XMLHttpRequest&&"XMLHttpRequest"in jt&&_n(XMLHttpRequest.prototype,"send",Cj);const r=e.eventTarget;r&&(Array.isArray(r)?r:bj).forEach($j)}}},Sj=xj;function lk(t){return function(...e){const r=e[0];return e[0]=gc(r,{mechanism:{data:{function:La(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function kj(t){return function(e){return t.apply(this,[gc(e,{mechanism:{data:{function:"requestAnimationFrame",handler:La(t)},handled:!1,type:"instrument"}})])}}function Cj(t){return function(...e){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in r&&typeof r[o]=="function"&&_n(r,o,function(a){const i={mechanism:{data:{function:o,handler:La(a)},handled:!1,type:"instrument"}},l=Z0(a);return l&&(i.mechanism.data.handler=La(l)),gc(a,i)})}),t.apply(this,e)}}function $j(t){const r=jt[t],n=r&&r.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(_n(n,"addEventListener",function(o){return function(a,i,l){try{Ej(i)&&(i.handleEvent=gc(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:La(i),target:t},handled:!1,type:"instrument"}}))}catch{}return o.apply(this,[a,gc(i,{mechanism:{data:{function:"addEventListener",handler:La(i),target:t},handled:!1,type:"instrument"}}),l])}}),_n(n,"removeEventListener",function(o){return function(a,i,l){try{const u=i.__sentry_wrapped__;u&&o.call(this,a,u,l)}catch{}return o.call(this,a,i,l)}}))}function Ej(t){return typeof t.handleEvent=="function"}const Tj=()=>({name:"BrowserSession",setupOnce(){if(typeof jt.document>"u"){yu&&it.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}GS({ignoreDuration:!0}),JS(),vD(({from:t,to:e})=>{t!==void 0&&t!==e&&(GS({ignoreDuration:!0}),JS())})}}),Oj="GlobalHandlers",Dj=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Oj,setupOnce(){Error.stackTraceLimit=50},setup(r){e.onerror&&(Nj(r),uk("onerror")),e.onunhandledrejection&&(Pj(r),uk("onunhandledrejection"))}}},Mj=Dj;function Nj(t){FA(e=>{const{stackParser:r,attachStacktrace:n}=wD();if(Br()!==t||gD())return;const{msg:o,url:a,line:i,column:l,error:u}=e,f=Ij(ab(r,u||o,void 0,n,!1),a,i,l);f.level="error",sD(f,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function Pj(t){BA(e=>{const{stackParser:r,attachStacktrace:n}=wD();if(Br()!==t||gD())return;const o=Rj(e),a=Y0(o)?Aj(o):ab(r,o,void 0,n,!0);a.level="error",sD(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Rj(t){if(Y0(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function Aj(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Ij(t,e,r,n){const o=t.exception=t.exception||{},a=o.values=o.values||[],i=a[0]=a[0]||{},l=i.stacktrace=i.stacktrace||{},u=l.frames=l.frames||[],f=n,h=r,d=Yo(e)&&e.length>0?e:JA();return u.length===0&&u.push({colno:f,filename:d,function:$s,in_app:!0,lineno:h}),t}function uk(t){yu&&it.log(`Global Handler attached: ${t}`)}function wD(){const t=Br();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const jj=()=>({name:"HttpContext",preprocessEvent(t){if(!jt.navigator&&!jt.location&&!jt.document)return;const e=t.request&&t.request.url||jt.location&&jt.location.href,{referrer:r}=jt.document||{},{userAgent:n}=jt.navigator||{},o={...t.request&&t.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...t.request,...e&&{url:e},headers:o};t.request=a}}),Lj="cause",Fj=5,zj="LinkedErrors",Bj=(t={})=>{const e=t.limit||Fj,r=t.key||Lj;return{name:zj,preprocessEvent(n,o,a){const i=a.getOptions();i4(nb,i.stackParser,i.maxValueLength,r,e,n,o)}}},Wj=Bj;function Uj(t){const e=[YI(),VI(),Sj(),pj(),Mj(),Wj(),pD(),jj()];return t.autoSessionTracking!==!1&&e.push(Tj()),e}function Hj(t={}){const e={defaultIntegrations:Uj(t),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:jt.SENTRY_RELEASE&&jt.SENTRY_RELEASE.id?jt.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return t.defaultIntegrations==null&&delete t.defaultIntegrations,{...e,...t}}function qj(){const t=typeof jt.window<"u"&&jt;if(!t)return!1;const e=t.chrome?"chrome":"browser",r=t[e],n=r&&r.runtime&&r.runtime.id,o=jt.location&&jt.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!n&&jt===jt.top&&a.some(u=>o.startsWith(`${u}//`)),l=typeof t.nw<"u";return!!n&&!i&&!l}function Vj(t={}){const e=Hj(t);if(!e.skipBrowserExtensionCheck&&qj()){Fs(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}yu&&(_D()||it.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const r={...e,stackParser:jA(e.stackParser||lj),integrations:$I(e),transport:e.transport||Y4};return NI(j4,r)}var $=js();const y=Ha($),Ip=$A({__proto__:null,default:y},[$]);function Zo(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const Zn="$$material";function jp(){return jp=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?Mr(Oc,--sn):0,yc--,hr===10&&(yc=1,mf--),hr}function gn(){return hr=sn<$D?Mr(Oc,sn++):0,yc++,hr===10&&(yc=1,mf++),hr}function xo(){return Mr(Oc,sn)}function Sp(){return sn}function vu(t,e){return Zl(Oc,t,e)}function Ql(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ED(t){return mf=yc=1,$D=fo(Oc=t),sn=0,[]}function TD(t){return Oc="",t}function kp(t){return CD(vu(sn-1,Qv(t===91?t+2:t===40?t+1:t)))}function a3(t){for(;(hr=xo())&&hr<33;)gn();return Ql(t)>2||Ql(hr)>3?"":" "}function s3(t,e){for(;--e&&gn()&&!(hr<48||hr>102||hr>57&&hr<65||hr>70&&hr<97););return vu(t,Sp()+(e<6&&xo()==32&&gn()==32))}function Qv(t){for(;gn();)switch(hr){case t:return sn;case 34:case 39:t!==34&&t!==39&&Qv(hr);break;case 40:t===41&&Qv(t);break;case 92:gn();break}return sn}function i3(t,e){for(;gn()&&t+hr!==57;)if(t+hr===84&&xo()===47)break;return"/*"+vu(e,sn-1)+"*"+hf(t===47?t:gn())}function c3(t){for(;!Ql(xo());)gn();return vu(t,sn)}function l3(t){return TD(Cp("",null,null,null,[""],t=ED(t),0,[0],t))}function Cp(t,e,r,n,o,a,i,l,u){for(var f=0,h=0,d=i,_=0,g=0,b=0,w=1,S=1,k=1,D=0,C="",O=o,M=a,T=n,P=C;S;)switch(b=D,D=gn()){case 40:if(b!=108&&Mr(P,d-1)==58){Zv(P+=Ct(kp(D),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:P+=kp(D);break;case 9:case 10:case 13:case 32:P+=a3(b);break;case 92:P+=s3(Sp()-1,7);continue;case 47:switch(xo()){case 42:case 47:Xd(u3(i3(gn(),Sp()),e,r),u);break;default:P+="/"}break;case 123*w:l[f++]=fo(P)*k;case 125*w:case 59:case 0:switch(D){case 0:case 125:S=0;case 59+h:k==-1&&(P=Ct(P,/\f/g,"")),g>0&&fo(P)-d&&Xd(g>32?pk(P+";",n,r,d-1):pk(Ct(P," ","")+";",n,r,d-2),u);break;case 59:P+=";";default:if(Xd(T=dk(P,e,r,f,h,o,l,C,O=[],M=[],d),a),D===123)if(h===0)Cp(P,e,T,T,O,a,d,l,M);else switch(_===99&&Mr(P,3)===110?100:_){case 100:case 108:case 109:case 115:Cp(t,T,T,n&&Xd(dk(t,T,T,0,0,o,l,C,o,O=[],d),M),o,M,d,l,n?O:M);break;default:Cp(P,T,T,T,[""],M,0,l,M)}}f=h=g=0,w=k=1,C=P="",d=i;break;case 58:d=1+fo(P),g=b;default:if(w<1){if(D==123)--w;else if(D==125&&w++==0&&o3()==125)continue}switch(P+=hf(D),D*w){case 38:k=h>0?1:(P+="\f",-1);break;case 44:l[f++]=(fo(P)-1)*k,k=1;break;case 64:xo()===45&&(P+=kp(gn())),_=xo(),h=d=fo(C=P+=c3(Sp())),D++;break;case 45:b===45&&fo(P)==2&&(w=0)}}return a}function dk(t,e,r,n,o,a,i,l,u,f,h){for(var d=o-1,_=o===0?a:[""],g=cb(_),b=0,w=0,S=0;b0?_[k]+" "+D:Ct(D,/&\f/g,_[k])))&&(u[S++]=C);return _f(t,e,r,o===0?sb:l,u,f,h)}function u3(t,e,r){return _f(t,e,r,SD,hf(n3()),Zl(t,2,-2),0)}function pk(t,e,r,n){return _f(t,e,r,ib,Zl(t,0,n),Zl(t,n+1,-1),n)}function lc(t,e){for(var r="",n=cb(t),o=0;o6)switch(Mr(t,e+1)){case 109:if(Mr(t,e+4)!==45)break;case 102:return Ct(t,/(.+:)(.+)-([^]+)/,"$1"+kt+"$2-$3$1"+Lp+(Mr(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Zv(t,"stretch")?DD(Ct(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Mr(t,e+1)!==115)break;case 6444:switch(Mr(t,fo(t)-3-(~Zv(t,"!important")&&10))){case 107:return Ct(t,":",":"+kt)+t;case 101:return Ct(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+kt+(Mr(t,14)===45?"inline-":"")+"box$3$1"+kt+"$2$3$1"+jr+"$2box$3")+t}break;case 5936:switch(Mr(t,e+11)){case 114:return kt+t+jr+Ct(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return kt+t+jr+Ct(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return kt+t+jr+Ct(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return kt+t+jr+t+t}return t}var v3=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case ib:e.return=DD(e.value,e.length);break;case kD:return lc([vl(e,{value:Ct(e.value,"@","@"+kt)})],o);case sb:if(e.length)return r3(e.props,function(a){switch(t3(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lc([vl(e,{props:[Ct(a,/:(read-\w+)/,":"+Lp+"$1")]})],o);case"::placeholder":return lc([vl(e,{props:[Ct(a,/:(plac\w+)/,":"+kt+"input-$1")]}),vl(e,{props:[Ct(a,/:(plac\w+)/,":"+Lp+"$1")]}),vl(e,{props:[Ct(a,/:(plac\w+)/,jr+"input-$1")]})],o)}return""})}},b3=[v3],MD=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var S=w.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=e.stylisPlugins||b3,a={},i,l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var S=w.getAttribute("data-emotion").split(" "),k=1;k=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var $3={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},E3=/[A-Z]|^ms/g,T3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PD=function(e){return e.charCodeAt(1)===45},gk=function(e){return e!=null&&typeof e!="boolean"},Ym=OD(function(t){return PD(t)?t:t.replace(E3,"-$&").toLowerCase()}),yk=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(T3,function(n,o,a){return ho={name:o,styles:a,next:ho},o})}return $3[e]!==1&&!PD(e)&&typeof r=="number"&&r!==0?r+"px":r};function eu(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return ho={name:o.name,styles:o.styles,next:ho},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)ho={name:i.name,styles:i.styles,next:ho},i=i.next;var l=a.styles+";";return l}return O3(t,e,r)}case"function":{if(t!==void 0){var u=ho,f=r(t);return ho=u,eu(t,e,f)}break}}var h=r;if(e==null)return h;var d=e[h];return d!==void 0?d:h}function O3(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o96?B3:W3},xk=function(e,r,n){var o;if(r){var a=r.shouldForwardProp;o=e.__emotion_forwardProp&&a?function(i){return e.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},U3=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return lb(r,n,o),AD(function(){return ub(r,n,o)}),null},H3=function t(e,r){var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,a,i;r!==void 0&&(a=r.label,i=r.target);var l=xk(e,r,n),u=l||wk(o),f=!u("as");return function(){var h=arguments,d=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)d.push.apply(d,h);else{var _=h[0];d.push(_[0]);for(var g=h.length,b=1;b{const r=MD(t);return r.sheet=new e({key:r.key,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy,prepend:r.sheet.prepend,insertionPoint:r.sheet.insertionPoint}),r};let r0;if(typeof document=="object"){let t=document.querySelector('[name="emotion-insertion-point"]');if(!t){t=document.createElement("meta"),t.setAttribute("name","emotion-insertion-point"),t.setAttribute("content","");const r=document.querySelector("head");r&&r.prepend(t)}class e extends xD{insert(n,o){return this.key&&this.key.endsWith("global")&&(this.before=t),super.insert(n,o)}}r0=Y3({key:"css",insertionPoint:t},e)}function $k(t){const{injectFirst:e,children:r}=t;return e&&r0?R.jsx(N3,{value:r0,children:r}):r}function K3(t){return t==null||Object.keys(t).length===0}function jD(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?o=>e(K3(o)?r:o):e;return R.jsx(L3,{styles:n})}/** - * @mui/styled-engine v6.3.0 + */var hk;function w3(){if(hk)return Et;hk=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,_=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,b=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,S=t?Symbol.for("react.fundamental"):60117,k=t?Symbol.for("react.responder"):60118,D=t?Symbol.for("react.scope"):60119;function C(M){if(typeof M=="object"&&M!==null){var T=M.$$typeof;switch(T){case e:switch(M=M.type,M){case u:case f:case n:case a:case o:case d:return M;default:switch(M=M&&M.$$typeof,M){case l:case h:case b:case g:case i:return M;default:return T}}case r:return T}}}function O(M){return C(M)===f}return Et.AsyncMode=u,Et.ConcurrentMode=f,Et.ContextConsumer=l,Et.ContextProvider=i,Et.Element=e,Et.ForwardRef=h,Et.Fragment=n,Et.Lazy=b,Et.Memo=g,Et.Portal=r,Et.Profiler=a,Et.StrictMode=o,Et.Suspense=d,Et.isAsyncMode=function(M){return O(M)||C(M)===u},Et.isConcurrentMode=O,Et.isContextConsumer=function(M){return C(M)===l},Et.isContextProvider=function(M){return C(M)===i},Et.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===e},Et.isForwardRef=function(M){return C(M)===h},Et.isFragment=function(M){return C(M)===n},Et.isLazy=function(M){return C(M)===b},Et.isMemo=function(M){return C(M)===g},Et.isPortal=function(M){return C(M)===r},Et.isProfiler=function(M){return C(M)===a},Et.isStrictMode=function(M){return C(M)===o},Et.isSuspense=function(M){return C(M)===d},Et.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===n||M===f||M===a||M===o||M===d||M===_||typeof M=="object"&&M!==null&&(M.$$typeof===b||M.$$typeof===g||M.$$typeof===i||M.$$typeof===l||M.$$typeof===h||M.$$typeof===S||M.$$typeof===k||M.$$typeof===D||M.$$typeof===w)},Et.typeOf=C,Et}var mk;function x3(){return mk||(mk=1,Gm.exports=w3()),Gm.exports}var Jm,_k;function S3(){if(_k)return Jm;_k=1;var t=x3(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]=n,a[t.Memo]=o;function i(b){return t.isMemo(b)?o:a[b.$$typeof]||e}var l=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,_=Object.prototype;function g(b,w,S){if(typeof w!="string"){if(_){var k=d(w);k&&k!==_&&g(b,k,S)}var D=u(w);f&&(D=D.concat(f(w)));for(var C=i(b),O=i(w),M=0;M=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var $3={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},E3=/[A-Z]|^ms/g,T3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PD=function(e){return e.charCodeAt(1)===45},gk=function(e){return e!=null&&typeof e!="boolean"},Ym=OD(function(t){return PD(t)?t:t.replace(E3,"-$&").toLowerCase()}),yk=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(T3,function(n,o,a){return ho={name:o,styles:a,next:ho},o})}return $3[e]!==1&&!PD(e)&&typeof r=="number"&&r!==0?r+"px":r};function eu(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return ho={name:o.name,styles:o.styles,next:ho},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)ho={name:i.name,styles:i.styles,next:ho},i=i.next;var l=a.styles+";";return l}return O3(t,e,r)}case"function":{if(t!==void 0){var u=ho,f=r(t);return ho=u,eu(t,e,f)}break}}var h=r;if(e==null)return h;var d=e[h];return d!==void 0?d:h}function O3(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o96?B3:W3},xk=function(e,r,n){var o;if(r){var a=r.shouldForwardProp;o=e.__emotion_forwardProp&&a?function(i){return e.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},U3=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return lb(r,n,o),AD(function(){return ub(r,n,o)}),null},H3=function t(e,r){var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,a,i;r!==void 0&&(a=r.label,i=r.target);var l=xk(e,r,n),u=l||wk(o),f=!u("as");return function(){var h=arguments,d=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)d.push.apply(d,h);else{var _=h[0];d.push(_[0]);for(var g=h.length,b=1;b{const r=MD(t);return r.sheet=new e({key:r.key,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy,prepend:r.sheet.prepend,insertionPoint:r.sheet.insertionPoint}),r};let r0;if(typeof document=="object"){let t=document.querySelector('[name="emotion-insertion-point"]');if(!t){t=document.createElement("meta"),t.setAttribute("name","emotion-insertion-point"),t.setAttribute("content","");const r=document.querySelector("head");r&&r.prepend(t)}class e extends xD{insert(n,o){return this.key&&this.key.endsWith("global")&&(this.before=t),super.insert(n,o)}}r0=Y3({key:"css",insertionPoint:t},e)}function $k(t){const{injectFirst:e,children:r}=t;return e&&r0?R.jsx(N3,{value:r0,children:r}):r}function K3(t){return t==null||Object.keys(t).length===0}function jD(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?o=>e(K3(o)?r:o):e;return R.jsx(L3,{styles:n})}/** + * @mui/styled-engine v6.3.1 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function LD(t,e){return t0(t,e)}function Z3(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const Ek=[];function Tk(t){return Ek[0]=t,bu(Ek)}function vo(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function zD(t){if($.isValidElement(t)||!vo(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=zD(t[r])}),e}function kr(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return vo(t)&&vo(e)&&Object.keys(e).forEach(o=>{$.isValidElement(e[o])?n[o]=e[o]:vo(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&vo(t[o])?n[o]=kr(t[o],e[o],r):r.clone?n[o]=vo(e[o])?zD(e[o]):e[o]:n[o]=e[o]}),n}const Q3=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function eL(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=t,a=Q3(e),i=Object.keys(a);function l(_){return`@media (min-width:${typeof e[_]=="number"?e[_]:_}${r})`}function u(_){return`@media (max-width:${(typeof e[_]=="number"?e[_]:_)-n/100}${r})`}function f(_,g){const b=i.indexOf(g);return`@media (min-width:${typeof e[_]=="number"?e[_]:_}${r}) and (max-width:${(b!==-1&&typeof e[i[b]]=="number"?e[i[b]]:g)-n/100}${r})`}function h(_){return i.indexOf(_)+1n.startsWith("@container")).sort((n,o)=>{var i,l;const a=/min-width:\s*([0-9.]+)/;return+(((i=n.match(a))==null?void 0:i[1])||0)-+(((l=o.match(a))==null?void 0:l[1])||0)});return r.length?r.reduce((n,o)=>{const a=e[o];return delete n[o],n[o]=a,n},{...e}):e}function rL(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function nL(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return t.containerQueries(o).up(a)}function oL(t){const e=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function r(a,i){a.up=(...l)=>e(t.breakpoints.up(...l),i),a.down=(...l)=>e(t.breakpoints.down(...l),i),a.between=(...l)=>e(t.breakpoints.between(...l),i),a.only=(...l)=>e(t.breakpoints.only(...l),i),a.not=(...l)=>{const u=e(t.breakpoints.not(...l),i);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},o=a=>(r(n,a),n);return r(o),{...t,containerQueries:o}}const aL={borderRadius:4};function ql(t,e){return e?kr(t,e,{clone:!1}):t}const gf={xs:0,sm:600,md:900,lg:1200,xl:1536},Ok={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${gf[t]}px)`},sL={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:gf[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function Qn(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const a=n.breakpoints||Ok;return e.reduce((i,l,u)=>(i[a.up(a.keys[u])]=r(e[u]),i),{})}if(typeof e=="object"){const a=n.breakpoints||Ok;return Object.keys(e).reduce((i,l)=>{if(rL(a.keys,l)){const u=nL(n.containerQueries?n:sL,l);u&&(i[u]=r(e[l],l))}else if(Object.keys(a.values||gf).includes(l)){const u=a.up(l);i[u]=r(e[l],l)}else{const u=l;i[u]=e[u]}return i},{})}return r(e)}function FD(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((n,o)=>{const a=t.up(o);return n[a]={},n},{}))||{}}function BD(t,e){return t.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},e)}function iL(t,...e){const r=FD(t),n=[r,...e].reduce((o,a)=>kr(o,a),{});return BD(Object.keys(r),n)}function cL(t,e){if(typeof t!="object")return{};const r={},n=Object.keys(e);return Array.isArray(t)?n.forEach((o,a)=>{a{t[o]!=null&&(r[o]=!0)}),r}function e_({values:t,breakpoints:e,base:r}){const n=r||cL(t,e),o=Object.keys(n);if(o.length===0)return t;let a;return o.reduce((i,l,u)=>(Array.isArray(t)?(i[l]=t[u]!=null?t[u]:t[a],a=u):typeof t=="object"?(i[l]=t[l]!=null?t[l]:t[a],a=l):i[l]=t,i),{})}function he(t){if(typeof t!="string")throw new Error(Zo(7));return t.charAt(0).toUpperCase()+t.slice(1)}function vc(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,t);if(n!=null)return n}return e.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,t)}function zp(t,e,r,n=r){let o;return typeof t=="function"?o=t(r):Array.isArray(t)?o=t[r]||n:o=vc(t,r)||n,e&&(o=e(o,n,t)),o}function lr(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:o}=t,a=i=>{if(i[e]==null)return null;const l=i[e],u=i.theme,f=vc(u,n)||{};return Qn(i,l,d=>{let _=zp(f,o,d);return d===_&&typeof d=="string"&&(_=zp(f,o,`${e}${d==="default"?"":he(d)}`,d)),r===!1?_:{[r]:_}})};return a.propTypes={},a.filterProps=[e],a}function lL(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const uL={m:"margin",p:"padding"},dL={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Dk={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pL=lL(t=>{if(t.length>2)if(Dk[t])t=Dk[t];else return[t];const[e,r]=t.split(""),n=uL[e],o=dL[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),fb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...fb,...hb];function xu(t,e,r,n){const o=vc(t,e,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),l=o[i];return a>=0?l:typeof l=="number"?-l:`-${l}`}:typeof o=="function"?o:()=>{}}function yf(t){return xu(t,"spacing",8)}function Ns(t,e){return typeof e=="string"||e==null?e:t(e)}function fL(t,e){return r=>t.reduce((n,o)=>(n[o]=Ns(e,r),n),{})}function hL(t,e,r,n){if(!e.includes(r))return null;const o=pL(r),a=fL(o,n),i=t[r];return Qn(t,i,a)}function WD(t,e){const r=yf(t.theme);return Object.keys(t).map(n=>hL(t,e,n,r)).reduce(ql,{})}function tr(t){return WD(t,fb)}tr.propTypes={};tr.filterProps=fb;function rr(t){return WD(t,hb)}rr.propTypes={};rr.filterProps=hb;function UD(t=8,e=yf({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=e(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function vf(...t){const e=t.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>e[a]?ql(o,e[a](n)):o,{});return r.propTypes={},r.filterProps=t.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Nn(t){return typeof t!="number"?t:`${t}px solid`}function Fn(t,e){return lr({prop:t,themeKey:"borders",transform:e})}const mL=Fn("border",Nn),_L=Fn("borderTop",Nn),gL=Fn("borderRight",Nn),yL=Fn("borderBottom",Nn),vL=Fn("borderLeft",Nn),bL=Fn("borderColor"),wL=Fn("borderTopColor"),xL=Fn("borderRightColor"),SL=Fn("borderBottomColor"),kL=Fn("borderLeftColor"),CL=Fn("outline",Nn),$L=Fn("outlineColor"),bf=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=xu(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ns(e,n)});return Qn(t,t.borderRadius,r)}return null};bf.propTypes={};bf.filterProps=["borderRadius"];vf(mL,_L,gL,yL,vL,bL,wL,xL,SL,kL,bf,CL,$L);const wf=t=>{if(t.gap!==void 0&&t.gap!==null){const e=xu(t.theme,"spacing",8),r=n=>({gap:Ns(e,n)});return Qn(t,t.gap,r)}return null};wf.propTypes={};wf.filterProps=["gap"];const xf=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=xu(t.theme,"spacing",8),r=n=>({columnGap:Ns(e,n)});return Qn(t,t.columnGap,r)}return null};xf.propTypes={};xf.filterProps=["columnGap"];const Sf=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=xu(t.theme,"spacing",8),r=n=>({rowGap:Ns(e,n)});return Qn(t,t.rowGap,r)}return null};Sf.propTypes={};Sf.filterProps=["rowGap"];const EL=lr({prop:"gridColumn"}),TL=lr({prop:"gridRow"}),OL=lr({prop:"gridAutoFlow"}),DL=lr({prop:"gridAutoColumns"}),ML=lr({prop:"gridAutoRows"}),NL=lr({prop:"gridTemplateColumns"}),PL=lr({prop:"gridTemplateRows"}),RL=lr({prop:"gridTemplateAreas"}),AL=lr({prop:"gridArea"});vf(wf,xf,Sf,EL,TL,OL,DL,ML,NL,PL,RL,AL);function uc(t,e){return e==="grey"?e:t}const IL=lr({prop:"color",themeKey:"palette",transform:uc}),jL=lr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:uc}),LL=lr({prop:"backgroundColor",themeKey:"palette",transform:uc});vf(IL,jL,LL);function mn(t){return t<=1&&t!==0?`${t*100}%`:t}const zL=lr({prop:"width",transform:mn}),mb=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{var o,a,i,l,u;const n=((i=(a=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[r])||gf[r];return n?((u=(l=t.theme)==null?void 0:l.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:mn(r)}};return Qn(t,t.maxWidth,e)}return null};mb.filterProps=["maxWidth"];const FL=lr({prop:"minWidth",transform:mn}),BL=lr({prop:"height",transform:mn}),WL=lr({prop:"maxHeight",transform:mn}),UL=lr({prop:"minHeight",transform:mn});lr({prop:"size",cssProperty:"width",transform:mn});lr({prop:"size",cssProperty:"height",transform:mn});const HL=lr({prop:"boxSizing"});vf(zL,mb,FL,BL,WL,UL,HL);const Su={border:{themeKey:"borders",transform:Nn},borderTop:{themeKey:"borders",transform:Nn},borderRight:{themeKey:"borders",transform:Nn},borderBottom:{themeKey:"borders",transform:Nn},borderLeft:{themeKey:"borders",transform:Nn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Nn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bf},color:{themeKey:"palette",transform:uc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:uc},backgroundColor:{themeKey:"palette",transform:uc},p:{style:rr},pt:{style:rr},pr:{style:rr},pb:{style:rr},pl:{style:rr},px:{style:rr},py:{style:rr},padding:{style:rr},paddingTop:{style:rr},paddingRight:{style:rr},paddingBottom:{style:rr},paddingLeft:{style:rr},paddingX:{style:rr},paddingY:{style:rr},paddingInline:{style:rr},paddingInlineStart:{style:rr},paddingInlineEnd:{style:rr},paddingBlock:{style:rr},paddingBlockStart:{style:rr},paddingBlockEnd:{style:rr},m:{style:tr},mt:{style:tr},mr:{style:tr},mb:{style:tr},ml:{style:tr},mx:{style:tr},my:{style:tr},margin:{style:tr},marginTop:{style:tr},marginRight:{style:tr},marginBottom:{style:tr},marginLeft:{style:tr},marginX:{style:tr},marginY:{style:tr},marginInline:{style:tr},marginInlineStart:{style:tr},marginInlineEnd:{style:tr},marginBlock:{style:tr},marginBlockStart:{style:tr},marginBlockEnd:{style:tr},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:wf},rowGap:{style:Sf},columnGap:{style:xf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mn},maxWidth:{style:mb},minWidth:{transform:mn},height:{transform:mn},maxHeight:{transform:mn},minHeight:{transform:mn},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 qL(...t){const e=t.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function VL(t,e){return typeof t=="function"?t(e):t}function XL(){function t(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:f,transform:h,style:d}=l;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const _=vc(o,f)||{};return d?d(i):Qn(i,n,b=>{let w=zp(_,h,b);return b===w&&typeof b=="string"&&(w=zp(_,h,`${r}${b==="default"?"":he(b)}`,b)),u===!1?w:{[u]:w}})}function e(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const a=o.unstable_sxConfig??Su;function i(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const f=FD(o.breakpoints),h=Object.keys(f);let d=f;return Object.keys(u).forEach(_=>{const g=VL(u[_],o);if(g!=null)if(typeof g=="object")if(a[_])d=ql(d,t(_,g,o,a));else{const b=Qn({theme:o},g,w=>({[_]:w}));qL(b,g)?d[_]=e({sx:g,theme:o}):d=ql(d,b)}else d=ql(d,t(_,g,o,a))}),tL(o,BD(h,d))}return Array.isArray(n)?n.map(i):i(n)}return e}const za=XL();za.filterProps=["sx"];function GL(t,e){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[t])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(t);return o==="&"?e:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:e})}return r.palette.mode===t?e:{}}function kf(t={},...e){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...i}=t,l=eL(r),u=UD(o);let f=kr({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...aL,...a}},i);return f=oL(f),f.applyStyles=GL,f=e.reduce((h,d)=>kr(h,d),f),f.unstable_sxConfig={...Su,...i==null?void 0:i.unstable_sxConfig},f.unstable_sx=function(d){return za({sx:d,theme:this})},f}function JL(t){return Object.keys(t).length===0}function _b(t=null){const e=$.useContext(wu);return!e||JL(e)?t:e}const YL=kf();function Cf(t=YL){return _b(t)}function KL({styles:t,themeId:e,defaultTheme:r={}}){const n=Cf(r),o=typeof t=="function"?t(e&&n[e]||n):t;return R.jsx(jD,{styles:o})}const ZL=t=>{var n;const e={systemProps:{},otherProps:{}},r=((n=t==null?void 0:t.theme)==null?void 0:n.unstable_sxConfig)??Su;return Object.keys(t).forEach(o=>{r[o]?e.systemProps[o]=t[o]:e.otherProps[o]=t[o]}),e};function gb(t){const{sx:e,...r}=t,{systemProps:n,otherProps:o}=ZL(r);let a;return Array.isArray(e)?a=[n,...e]:typeof e=="function"?a=(...i)=>{const l=e(...i);return vo(l)?{...n,...l}:n}:a={...n,...e},{...o,sx:a}}const Mk=t=>t,QL=()=>{let t=Mk;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Mk}}},HD=QL();function qD(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;el!=="theme"&&l!=="sx"&&l!=="as"})(za);return $.forwardRef(function(u,f){const h=Cf(r),{className:d,component:_="div",...g}=gb(u);return R.jsx(a,{as:_,ref:f,className:Ee(d,o?o(n):n),theme:e&&h[e]||h,...g})})}const tz={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 tt(t,e,r="Mui"){const n=tz[e];return n?`${r}-${n}`:`${HD.generate(t)}-${e}`}function Ze(t,e,r="Mui"){const n={};return e.forEach(o=>{n[o]=tt(t,o,r)}),n}function VD(t){const{variants:e,...r}=t,n={variants:e,style:Tk(r),isProcessed:!0};return n.style===r||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=Tk(o.style))}),n}const rz=kf();function t_(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function nz(t){return t?(e,r)=>r[t]:null}function oz(t,e,r){t.theme=sz(t.theme)?r:t.theme[e]||t.theme}function $p(t,e){const r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(n=>$p(t,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:o,...a}=r;n=a}return XD(t,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function XD(t,e,r=[]){var o;let n;e:for(let a=0;a{Z3(l,M=>M.filter(T=>T!==za));const{name:f,slot:h,skipVariantsResolver:d,skipSx:_,overridesResolver:g=nz(cz(h)),...b}=u,w=d!==void 0?d:h&&h!=="Root"&&h!=="root"||!1,S=_||!1;let k=t_;h==="Root"||h==="root"?k=n:h?k=o:iz(l)&&(k=void 0);const D=LD(l,{shouldForwardProp:k,label:az(),...b}),C=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function(P){return $p(P,M)};if(vo(M)){const T=VD(M);return T.variants?function(j){return $p(j,T)}:T.style}return M},O=(...M)=>{const T=[],P=M.map(C),j=[];if(T.push(a),f&&g&&j.push(function(G){var K,ee;const F=(ee=(K=G.theme.components)==null?void 0:K[f])==null?void 0:ee.styleOverrides;if(!F)return null;const H={};for(const Y in F)H[Y]=$p(G,F[Y]);return g(G,H)}),f&&!w&&j.push(function(G){var H,K;const B=G.theme,F=(K=(H=B==null?void 0:B.components)==null?void 0:H[f])==null?void 0:K.variants;return F?XD(G,F):null}),S||j.push(za),Array.isArray(P[0])){const L=P.shift(),G=new Array(T.length).fill(""),B=new Array(j.length).fill("");let F;F=[...G,...L,...B],F.raw=[...G,...L.raw,...B],T.unshift(F)}const z=[...T,...P,...j],E=D(...z);return l.muiName&&(E.muiName=l.muiName),E};return D.withConfig&&(O.withConfig=D.withConfig),O}}function az(t,e){return void 0}function sz(t){for(const e in t)return!1;return!0}function iz(t){return typeof t=="string"&&t.charCodeAt(0)>96}function cz(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const lz=GD();function tu(t,e){const r={...e};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const o=n;if(o==="components"||o==="slots")r[o]={...t[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=t[o],i=e[o];if(!i)r[o]=a||{};else if(!a)r[o]=i;else{r[o]={...i};for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const u=l;r[o][u]=tu(a[u],i[u])}}}else r[o]===void 0&&(r[o]=t[o])}return r}function JD(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:tu(e.components[r].defaultProps,n)}function uz({props:t,name:e,defaultTheme:r,themeId:n}){let o=Cf(r);return n&&(o=o[n]||o),JD({theme:o,name:e,props:t})}const yn=typeof window<"u"?$.useLayoutEffect:$.useEffect;function dz(t,e,r,n,o){const[a,i]=$.useState(()=>o&&r?r(t).matches:n?n(t).matches:e);return yn(()=>{if(!r)return;const l=r(t),u=()=>{i(l.matches)};return u(),l.addEventListener("change",u),()=>{l.removeEventListener("change",u)}},[t,r]),a}const pz={...Ip},YD=pz.useSyncExternalStore;function fz(t,e,r,n,o){const a=$.useCallback(()=>e,[e]),i=$.useMemo(()=>{if(o&&r)return()=>r(t).matches;if(n!==null){const{matches:h}=n(t);return()=>h}return a},[a,t,n,o,r]),[l,u]=$.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const h=r(t);return[()=>h.matches,d=>(h.addEventListener("change",d),()=>{h.removeEventListener("change",d)})]},[a,r,t]);return YD(u,l,i)}function hz(t={}){const{themeId:e}=t;return function(n,o={}){let a=_b();a&&e&&(a=a[e]||a);const i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:u=i?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:h=!1}=JD({name:"MuiUseMediaQuery",props:o,theme:a});let d=typeof n=="function"?n(a):n;return d=d.replace(/^@media( ?)/m,""),(YD!==void 0?fz:dz)(d,l,u,f,h)}}function Li(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function yb(t,e=0,r=1){return Li(t,e,r)}function mz(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Fa(t){if(t.type)return t;if(t.charAt(0)==="#")return Fa(mz(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Zo(9,t));let n=t.substring(e+1,t.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Zo(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const _z=t=>{const e=Fa(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Al=(t,e)=>{try{return _z(t)}catch{return t}};function $f(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function KD(t){t=Fa(t);const{values:e}=t,r=e[0],n=e[1]/100,o=e[2]/100,a=n*Math.min(o,1-o),i=(f,h=(f+r/30)%12)=>o-a*Math.max(Math.min(h-3,9-h,1),-1);let l="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return t.type==="hsla"&&(l+="a",u.push(e[3])),$f({type:l,values:u})}function n0(t){t=Fa(t);let e=t.type==="hsl"||t.type==="hsla"?Fa(KD(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function gz(t,e){const r=n0(t),n=n0(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Nt(t,e){return t=Fa(t),e=yb(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,$f(t)}function Gd(t,e,r){try{return Nt(t,e)}catch{return t}}function bc(t,e){if(t=Fa(t),e=yb(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return $f(t)}function Pt(t,e,r){try{return bc(t,e)}catch{return t}}function wc(t,e){if(t=Fa(t),e=yb(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return $f(t)}function Rt(t,e,r){try{return wc(t,e)}catch{return t}}function Fp(t,e=.15){return n0(t)>.5?bc(t,e):wc(t,e)}function Jd(t,e,r){try{return Fp(t,e)}catch{return t}}function o0(...t){return t.reduce((e,r)=>r==null?e:function(...o){e.apply(this,o),r.apply(this,o)},()=>{})}function Ef(t,e=166){let r;function n(...o){const a=()=>{t.apply(this,o)};clearTimeout(r),r=setTimeout(a,e)}return n.clear=()=>{clearTimeout(r)},n}function r_(t,e){var r,n,o;return $.isValidElement(t)&&e.indexOf(t.type.muiName??((o=(n=(r=t.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:o.muiName))!==-1}function cr(t){return t&&t.ownerDocument||document}function eo(t){return cr(t).defaultView||window}function a0(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let Nk=0;function yz(t){const[e,r]=$.useState(t),n=t||e;return $.useEffect(()=>{e==null&&(Nk+=1,r(`mui-${Nk}`))},[e]),n}const vz={...Ip},Pk=vz.useId;function Tf(t){if(Pk!==void 0){const e=Pk();return t??e}return yz(t)}function ru({controlled:t,default:e,name:r,state:n="value"}){const{current:o}=$.useRef(t!==void 0),[a,i]=$.useState(e),l=o?t:a,u=$.useCallback(f=>{o||i(f)},[]);return[l,u]}function Nr(t){const e=$.useRef(t);return yn(()=>{e.current=t}),$.useRef((...r)=>(0,e.current)(...r)).current}function ar(...t){return $.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{a0(r,e)})},t)}const Rk={};function ZD(t,e){const r=$.useRef(Rk);return r.current===Rk&&(r.current=t(e)),r}const bz=[];function wz(t){$.useEffect(t,bz)}class Of{constructor(){xe(this,"currentId",null);xe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});xe(this,"disposeEffect",()=>this.clear)}static create(){return new Of}start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}}function vs(){const t=ZD(Of.create).current;return wz(t.disposeEffect),t}function Ba(t){try{return t.matches(":focus-visible")}catch{}return!1}function QD(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}const xz={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function nt(t,e,r=void 0){const n={};for(const o in t){const a=t[o];let i="",l=!0;for(let u=0;un.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function Ak(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function tM(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=t;if(!e){const g=Ee(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),b={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},w={...r,...o,...n};return g.length>0&&(w.className=g),Object.keys(b).length>0&&(w.style=b),{props:w,internalRef:void 0}}const i=xs({...o,...n}),l=Ak(n),u=Ak(o),f=e(i),h=Ee(f==null?void 0:f.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),d={...f==null?void 0:f.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},_={...f,...r,...u,...l};return h.length>0&&(_.className=h),Object.keys(d).length>0&&(_.style=d),{props:_,internalRef:f.ref}}function rM(t,e,r){return typeof t=="function"?t(e,r):t}function Dr(t){var d;const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=t,i=o?{}:rM(r,n),{props:l,internalRef:u}=tM({...a,externalSlotProps:i}),f=ar(u,i==null?void 0:i.ref,(d=t.additionalProps)==null?void 0:d.ref);return eM(e,{...l,ref:f},n)}function Ws(t){var e;return parseInt($.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}const nM=$.createContext(null);function vb(){return $.useContext(nM)}const kz=typeof Symbol=="function"&&Symbol.for,Cz=kz?Symbol.for("mui.nested"):"__THEME_NESTED__";function $z(t,e){return typeof e=="function"?e(t):{...t,...e}}function Ez(t){const{children:e,theme:r}=t,n=vb(),o=$.useMemo(()=>{const a=n===null?{...r}:$z(n,r);return a!=null&&(a[Cz]=n!==null),a},[r,n]);return R.jsx(nM.Provider,{value:o,children:e})}const oM=$.createContext();function Tz({value:t,...e}){return R.jsx(oM.Provider,{value:t??!0,...e})}const Us=()=>$.useContext(oM)??!1,aM=$.createContext(void 0);function Oz({value:t,children:e}){return R.jsx(aM.Provider,{value:t,children:e})}function Dz(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const o=e.components[r];return o.defaultProps?tu(o.defaultProps,n):!o.styleOverrides&&!o.variants?tu(o,n):n}function Mz({props:t,name:e}){const r=$.useContext(aM);return Dz({props:t,name:e,theme:{components:r}})}const Ik={};function jk(t,e,r,n=!1){return $.useMemo(()=>{const o=t&&e[t]||e;if(typeof r=="function"){const a=r(o),i=t?{...e,[t]:a}:a;return n?()=>i:i}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function sM(t){const{children:e,theme:r,themeId:n}=t,o=_b(Ik),a=vb()||Ik,i=jk(n,o,r),l=jk(n,a,r,!0),u=(n?i[n]:i).direction==="rtl";return R.jsx(Ez,{theme:l,children:R.jsx(wu.Provider,{value:i,children:R.jsx(Tz,{value:u,children:R.jsx(Oz,{value:n?i[n].components:i.components,children:e})})})})}const Lk={theme:void 0};function Nz(t){let e,r;return function(o){let a=e;return(a===void 0||o.theme!==r)&&(Lk.theme=o.theme,a=VD(t(Lk)),e=a,r=o.theme),a}}const bb="mode",wb="color-scheme",Pz="data-color-scheme";function Rz(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=bb,colorSchemeStorageKey:a=wb,attribute:i=Pz,colorSchemeNode:l="document.documentElement",nonce:u}=t;let f="",h=i;if(i==="class"&&(h=".%s"),i==="data"&&(h="[data-%s]"),h.startsWith(".")){const _=h.substring(1);f+=`${l}.classList.remove('${_}'.replace('%s', light), '${_}'.replace('%s', dark)); + */function LD(t,e){return t0(t,e)}function Z3(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const Ek=[];function Tk(t){return Ek[0]=t,bu(Ek)}function vo(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function FD(t){if($.isValidElement(t)||!vo(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=FD(t[r])}),e}function kr(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return vo(t)&&vo(e)&&Object.keys(e).forEach(o=>{$.isValidElement(e[o])?n[o]=e[o]:vo(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&vo(t[o])?n[o]=kr(t[o],e[o],r):r.clone?n[o]=vo(e[o])?FD(e[o]):e[o]:n[o]=e[o]}),n}const Q3=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function eL(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=t,a=Q3(e),i=Object.keys(a);function l(_){return`@media (min-width:${typeof e[_]=="number"?e[_]:_}${r})`}function u(_){return`@media (max-width:${(typeof e[_]=="number"?e[_]:_)-n/100}${r})`}function f(_,g){const b=i.indexOf(g);return`@media (min-width:${typeof e[_]=="number"?e[_]:_}${r}) and (max-width:${(b!==-1&&typeof e[i[b]]=="number"?e[i[b]]:g)-n/100}${r})`}function h(_){return i.indexOf(_)+1n.startsWith("@container")).sort((n,o)=>{var i,l;const a=/min-width:\s*([0-9.]+)/;return+(((i=n.match(a))==null?void 0:i[1])||0)-+(((l=o.match(a))==null?void 0:l[1])||0)});return r.length?r.reduce((n,o)=>{const a=e[o];return delete n[o],n[o]=a,n},{...e}):e}function rL(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function nL(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return t.containerQueries(o).up(a)}function oL(t){const e=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function r(a,i){a.up=(...l)=>e(t.breakpoints.up(...l),i),a.down=(...l)=>e(t.breakpoints.down(...l),i),a.between=(...l)=>e(t.breakpoints.between(...l),i),a.only=(...l)=>e(t.breakpoints.only(...l),i),a.not=(...l)=>{const u=e(t.breakpoints.not(...l),i);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},o=a=>(r(n,a),n);return r(o),{...t,containerQueries:o}}const aL={borderRadius:4};function ql(t,e){return e?kr(t,e,{clone:!1}):t}const gf={xs:0,sm:600,md:900,lg:1200,xl:1536},Ok={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${gf[t]}px)`},sL={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:gf[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function Qn(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const a=n.breakpoints||Ok;return e.reduce((i,l,u)=>(i[a.up(a.keys[u])]=r(e[u]),i),{})}if(typeof e=="object"){const a=n.breakpoints||Ok;return Object.keys(e).reduce((i,l)=>{if(rL(a.keys,l)){const u=nL(n.containerQueries?n:sL,l);u&&(i[u]=r(e[l],l))}else if(Object.keys(a.values||gf).includes(l)){const u=a.up(l);i[u]=r(e[l],l)}else{const u=l;i[u]=e[u]}return i},{})}return r(e)}function zD(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((n,o)=>{const a=t.up(o);return n[a]={},n},{}))||{}}function BD(t,e){return t.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},e)}function iL(t,...e){const r=zD(t),n=[r,...e].reduce((o,a)=>kr(o,a),{});return BD(Object.keys(r),n)}function cL(t,e){if(typeof t!="object")return{};const r={},n=Object.keys(e);return Array.isArray(t)?n.forEach((o,a)=>{a{t[o]!=null&&(r[o]=!0)}),r}function e_({values:t,breakpoints:e,base:r}){const n=r||cL(t,e),o=Object.keys(n);if(o.length===0)return t;let a;return o.reduce((i,l,u)=>(Array.isArray(t)?(i[l]=t[u]!=null?t[u]:t[a],a=u):typeof t=="object"?(i[l]=t[l]!=null?t[l]:t[a],a=l):i[l]=t,i),{})}function he(t){if(typeof t!="string")throw new Error(Zo(7));return t.charAt(0).toUpperCase()+t.slice(1)}function vc(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,t);if(n!=null)return n}return e.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,t)}function Fp(t,e,r,n=r){let o;return typeof t=="function"?o=t(r):Array.isArray(t)?o=t[r]||n:o=vc(t,r)||n,e&&(o=e(o,n,t)),o}function lr(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:o}=t,a=i=>{if(i[e]==null)return null;const l=i[e],u=i.theme,f=vc(u,n)||{};return Qn(i,l,d=>{let _=Fp(f,o,d);return d===_&&typeof d=="string"&&(_=Fp(f,o,`${e}${d==="default"?"":he(d)}`,d)),r===!1?_:{[r]:_}})};return a.propTypes={},a.filterProps=[e],a}function lL(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const uL={m:"margin",p:"padding"},dL={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Dk={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pL=lL(t=>{if(t.length>2)if(Dk[t])t=Dk[t];else return[t];const[e,r]=t.split(""),n=uL[e],o=dL[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),fb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...fb,...hb];function xu(t,e,r,n){const o=vc(t,e,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),l=o[i];return a>=0?l:typeof l=="number"?-l:`-${l}`}:typeof o=="function"?o:()=>{}}function yf(t){return xu(t,"spacing",8)}function Ns(t,e){return typeof e=="string"||e==null?e:t(e)}function fL(t,e){return r=>t.reduce((n,o)=>(n[o]=Ns(e,r),n),{})}function hL(t,e,r,n){if(!e.includes(r))return null;const o=pL(r),a=fL(o,n),i=t[r];return Qn(t,i,a)}function WD(t,e){const r=yf(t.theme);return Object.keys(t).map(n=>hL(t,e,n,r)).reduce(ql,{})}function tr(t){return WD(t,fb)}tr.propTypes={};tr.filterProps=fb;function rr(t){return WD(t,hb)}rr.propTypes={};rr.filterProps=hb;function UD(t=8,e=yf({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=e(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function vf(...t){const e=t.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>e[a]?ql(o,e[a](n)):o,{});return r.propTypes={},r.filterProps=t.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Nn(t){return typeof t!="number"?t:`${t}px solid`}function zn(t,e){return lr({prop:t,themeKey:"borders",transform:e})}const mL=zn("border",Nn),_L=zn("borderTop",Nn),gL=zn("borderRight",Nn),yL=zn("borderBottom",Nn),vL=zn("borderLeft",Nn),bL=zn("borderColor"),wL=zn("borderTopColor"),xL=zn("borderRightColor"),SL=zn("borderBottomColor"),kL=zn("borderLeftColor"),CL=zn("outline",Nn),$L=zn("outlineColor"),bf=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=xu(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ns(e,n)});return Qn(t,t.borderRadius,r)}return null};bf.propTypes={};bf.filterProps=["borderRadius"];vf(mL,_L,gL,yL,vL,bL,wL,xL,SL,kL,bf,CL,$L);const wf=t=>{if(t.gap!==void 0&&t.gap!==null){const e=xu(t.theme,"spacing",8),r=n=>({gap:Ns(e,n)});return Qn(t,t.gap,r)}return null};wf.propTypes={};wf.filterProps=["gap"];const xf=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=xu(t.theme,"spacing",8),r=n=>({columnGap:Ns(e,n)});return Qn(t,t.columnGap,r)}return null};xf.propTypes={};xf.filterProps=["columnGap"];const Sf=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=xu(t.theme,"spacing",8),r=n=>({rowGap:Ns(e,n)});return Qn(t,t.rowGap,r)}return null};Sf.propTypes={};Sf.filterProps=["rowGap"];const EL=lr({prop:"gridColumn"}),TL=lr({prop:"gridRow"}),OL=lr({prop:"gridAutoFlow"}),DL=lr({prop:"gridAutoColumns"}),ML=lr({prop:"gridAutoRows"}),NL=lr({prop:"gridTemplateColumns"}),PL=lr({prop:"gridTemplateRows"}),RL=lr({prop:"gridTemplateAreas"}),AL=lr({prop:"gridArea"});vf(wf,xf,Sf,EL,TL,OL,DL,ML,NL,PL,RL,AL);function uc(t,e){return e==="grey"?e:t}const IL=lr({prop:"color",themeKey:"palette",transform:uc}),jL=lr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:uc}),LL=lr({prop:"backgroundColor",themeKey:"palette",transform:uc});vf(IL,jL,LL);function mn(t){return t<=1&&t!==0?`${t*100}%`:t}const FL=lr({prop:"width",transform:mn}),mb=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{var o,a,i,l,u;const n=((i=(a=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[r])||gf[r];return n?((u=(l=t.theme)==null?void 0:l.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:mn(r)}};return Qn(t,t.maxWidth,e)}return null};mb.filterProps=["maxWidth"];const zL=lr({prop:"minWidth",transform:mn}),BL=lr({prop:"height",transform:mn}),WL=lr({prop:"maxHeight",transform:mn}),UL=lr({prop:"minHeight",transform:mn});lr({prop:"size",cssProperty:"width",transform:mn});lr({prop:"size",cssProperty:"height",transform:mn});const HL=lr({prop:"boxSizing"});vf(FL,mb,zL,BL,WL,UL,HL);const Su={border:{themeKey:"borders",transform:Nn},borderTop:{themeKey:"borders",transform:Nn},borderRight:{themeKey:"borders",transform:Nn},borderBottom:{themeKey:"borders",transform:Nn},borderLeft:{themeKey:"borders",transform:Nn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Nn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bf},color:{themeKey:"palette",transform:uc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:uc},backgroundColor:{themeKey:"palette",transform:uc},p:{style:rr},pt:{style:rr},pr:{style:rr},pb:{style:rr},pl:{style:rr},px:{style:rr},py:{style:rr},padding:{style:rr},paddingTop:{style:rr},paddingRight:{style:rr},paddingBottom:{style:rr},paddingLeft:{style:rr},paddingX:{style:rr},paddingY:{style:rr},paddingInline:{style:rr},paddingInlineStart:{style:rr},paddingInlineEnd:{style:rr},paddingBlock:{style:rr},paddingBlockStart:{style:rr},paddingBlockEnd:{style:rr},m:{style:tr},mt:{style:tr},mr:{style:tr},mb:{style:tr},ml:{style:tr},mx:{style:tr},my:{style:tr},margin:{style:tr},marginTop:{style:tr},marginRight:{style:tr},marginBottom:{style:tr},marginLeft:{style:tr},marginX:{style:tr},marginY:{style:tr},marginInline:{style:tr},marginInlineStart:{style:tr},marginInlineEnd:{style:tr},marginBlock:{style:tr},marginBlockStart:{style:tr},marginBlockEnd:{style:tr},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:wf},rowGap:{style:Sf},columnGap:{style:xf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mn},maxWidth:{style:mb},minWidth:{transform:mn},height:{transform:mn},maxHeight:{transform:mn},minHeight:{transform:mn},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 qL(...t){const e=t.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function VL(t,e){return typeof t=="function"?t(e):t}function XL(){function t(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:f,transform:h,style:d}=l;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const _=vc(o,f)||{};return d?d(i):Qn(i,n,b=>{let w=Fp(_,h,b);return b===w&&typeof b=="string"&&(w=Fp(_,h,`${r}${b==="default"?"":he(b)}`,b)),u===!1?w:{[u]:w}})}function e(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const a=o.unstable_sxConfig??Su;function i(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const f=zD(o.breakpoints),h=Object.keys(f);let d=f;return Object.keys(u).forEach(_=>{const g=VL(u[_],o);if(g!=null)if(typeof g=="object")if(a[_])d=ql(d,t(_,g,o,a));else{const b=Qn({theme:o},g,w=>({[_]:w}));qL(b,g)?d[_]=e({sx:g,theme:o}):d=ql(d,b)}else d=ql(d,t(_,g,o,a))}),tL(o,BD(h,d))}return Array.isArray(n)?n.map(i):i(n)}return e}const Fa=XL();Fa.filterProps=["sx"];function GL(t,e){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[t])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(t);return o==="&"?e:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:e})}return r.palette.mode===t?e:{}}function kf(t={},...e){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...i}=t,l=eL(r),u=UD(o);let f=kr({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...aL,...a}},i);return f=oL(f),f.applyStyles=GL,f=e.reduce((h,d)=>kr(h,d),f),f.unstable_sxConfig={...Su,...i==null?void 0:i.unstable_sxConfig},f.unstable_sx=function(d){return Fa({sx:d,theme:this})},f}function JL(t){return Object.keys(t).length===0}function _b(t=null){const e=$.useContext(wu);return!e||JL(e)?t:e}const YL=kf();function Cf(t=YL){return _b(t)}function KL({styles:t,themeId:e,defaultTheme:r={}}){const n=Cf(r),o=typeof t=="function"?t(e&&n[e]||n):t;return R.jsx(jD,{styles:o})}const ZL=t=>{var n;const e={systemProps:{},otherProps:{}},r=((n=t==null?void 0:t.theme)==null?void 0:n.unstable_sxConfig)??Su;return Object.keys(t).forEach(o=>{r[o]?e.systemProps[o]=t[o]:e.otherProps[o]=t[o]}),e};function gb(t){const{sx:e,...r}=t,{systemProps:n,otherProps:o}=ZL(r);let a;return Array.isArray(e)?a=[n,...e]:typeof e=="function"?a=(...i)=>{const l=e(...i);return vo(l)?{...n,...l}:n}:a={...n,...e},{...o,sx:a}}const Mk=t=>t,QL=()=>{let t=Mk;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Mk}}},HD=QL();function qD(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;el!=="theme"&&l!=="sx"&&l!=="as"})(Fa);return $.forwardRef(function(u,f){const h=Cf(r),{className:d,component:_="div",...g}=gb(u);return R.jsx(a,{as:_,ref:f,className:Ee(d,o?o(n):n),theme:e&&h[e]||h,...g})})}const tF={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 tt(t,e,r="Mui"){const n=tF[e];return n?`${r}-${n}`:`${HD.generate(t)}-${e}`}function Ze(t,e,r="Mui"){const n={};return e.forEach(o=>{n[o]=tt(t,o,r)}),n}function VD(t){const{variants:e,...r}=t,n={variants:e,style:Tk(r),isProcessed:!0};return n.style===r||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=Tk(o.style))}),n}const rF=kf();function t_(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function nF(t){return t?(e,r)=>r[t]:null}function oF(t,e,r){t.theme=sF(t.theme)?r:t.theme[e]||t.theme}function $p(t,e){const r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(n=>$p(t,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:o,...a}=r;n=a}return XD(t,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function XD(t,e,r=[]){var o;let n;e:for(let a=0;a{Z3(l,M=>M.filter(T=>T!==Fa));const{name:f,slot:h,skipVariantsResolver:d,skipSx:_,overridesResolver:g=nF(cF(h)),...b}=u,w=d!==void 0?d:h&&h!=="Root"&&h!=="root"||!1,S=_||!1;let k=t_;h==="Root"||h==="root"?k=n:h?k=o:iF(l)&&(k=void 0);const D=LD(l,{shouldForwardProp:k,label:aF(),...b}),C=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function(P){return $p(P,M)};if(vo(M)){const T=VD(M);return T.variants?function(j){return $p(j,T)}:T.style}return M},O=(...M)=>{const T=[],P=M.map(C),j=[];if(T.push(a),f&&g&&j.push(function(G){var K,ee;const z=(ee=(K=G.theme.components)==null?void 0:K[f])==null?void 0:ee.styleOverrides;if(!z)return null;const H={};for(const Y in z)H[Y]=$p(G,z[Y]);return g(G,H)}),f&&!w&&j.push(function(G){var H,K;const B=G.theme,z=(K=(H=B==null?void 0:B.components)==null?void 0:H[f])==null?void 0:K.variants;return z?XD(G,z):null}),S||j.push(Fa),Array.isArray(P[0])){const L=P.shift(),G=new Array(T.length).fill(""),B=new Array(j.length).fill("");let z;z=[...G,...L,...B],z.raw=[...G,...L.raw,...B],T.unshift(z)}const F=[...T,...P,...j],E=D(...F);return l.muiName&&(E.muiName=l.muiName),E};return D.withConfig&&(O.withConfig=D.withConfig),O}}function aF(t,e){return void 0}function sF(t){for(const e in t)return!1;return!0}function iF(t){return typeof t=="string"&&t.charCodeAt(0)>96}function cF(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const lF=GD();function tu(t,e){const r={...e};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const o=n;if(o==="components"||o==="slots")r[o]={...t[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=t[o],i=e[o];if(!i)r[o]=a||{};else if(!a)r[o]=i;else{r[o]={...i};for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const u=l;r[o][u]=tu(a[u],i[u])}}}else r[o]===void 0&&(r[o]=t[o])}return r}function JD(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:tu(e.components[r].defaultProps,n)}function uF({props:t,name:e,defaultTheme:r,themeId:n}){let o=Cf(r);return n&&(o=o[n]||o),JD({theme:o,name:e,props:t})}const yn=typeof window<"u"?$.useLayoutEffect:$.useEffect;function dF(t,e,r,n,o){const[a,i]=$.useState(()=>o&&r?r(t).matches:n?n(t).matches:e);return yn(()=>{if(!r)return;const l=r(t),u=()=>{i(l.matches)};return u(),l.addEventListener("change",u),()=>{l.removeEventListener("change",u)}},[t,r]),a}const pF={...Ip},YD=pF.useSyncExternalStore;function fF(t,e,r,n,o){const a=$.useCallback(()=>e,[e]),i=$.useMemo(()=>{if(o&&r)return()=>r(t).matches;if(n!==null){const{matches:h}=n(t);return()=>h}return a},[a,t,n,o,r]),[l,u]=$.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const h=r(t);return[()=>h.matches,d=>(h.addEventListener("change",d),()=>{h.removeEventListener("change",d)})]},[a,r,t]);return YD(u,l,i)}function hF(t={}){const{themeId:e}=t;return function(n,o={}){let a=_b();a&&e&&(a=a[e]||a);const i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:u=i?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:h=!1}=JD({name:"MuiUseMediaQuery",props:o,theme:a});let d=typeof n=="function"?n(a):n;return d=d.replace(/^@media( ?)/m,""),(YD!==void 0?fF:dF)(d,l,u,f,h)}}function Li(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function yb(t,e=0,r=1){return Li(t,e,r)}function mF(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function za(t){if(t.type)return t;if(t.charAt(0)==="#")return za(mF(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Zo(9,t));let n=t.substring(e+1,t.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Zo(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const _F=t=>{const e=za(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Al=(t,e)=>{try{return _F(t)}catch{return t}};function $f(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function KD(t){t=za(t);const{values:e}=t,r=e[0],n=e[1]/100,o=e[2]/100,a=n*Math.min(o,1-o),i=(f,h=(f+r/30)%12)=>o-a*Math.max(Math.min(h-3,9-h,1),-1);let l="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return t.type==="hsla"&&(l+="a",u.push(e[3])),$f({type:l,values:u})}function n0(t){t=za(t);let e=t.type==="hsl"||t.type==="hsla"?za(KD(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function gF(t,e){const r=n0(t),n=n0(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Nt(t,e){return t=za(t),e=yb(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,$f(t)}function Gd(t,e,r){try{return Nt(t,e)}catch{return t}}function bc(t,e){if(t=za(t),e=yb(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return $f(t)}function Pt(t,e,r){try{return bc(t,e)}catch{return t}}function wc(t,e){if(t=za(t),e=yb(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return $f(t)}function Rt(t,e,r){try{return wc(t,e)}catch{return t}}function zp(t,e=.15){return n0(t)>.5?bc(t,e):wc(t,e)}function Jd(t,e,r){try{return zp(t,e)}catch{return t}}function o0(...t){return t.reduce((e,r)=>r==null?e:function(...o){e.apply(this,o),r.apply(this,o)},()=>{})}function Ef(t,e=166){let r;function n(...o){const a=()=>{t.apply(this,o)};clearTimeout(r),r=setTimeout(a,e)}return n.clear=()=>{clearTimeout(r)},n}function r_(t,e){var r,n,o;return $.isValidElement(t)&&e.indexOf(t.type.muiName??((o=(n=(r=t.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:o.muiName))!==-1}function cr(t){return t&&t.ownerDocument||document}function eo(t){return cr(t).defaultView||window}function a0(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let Nk=0;function yF(t){const[e,r]=$.useState(t),n=t||e;return $.useEffect(()=>{e==null&&(Nk+=1,r(`mui-${Nk}`))},[e]),n}const vF={...Ip},Pk=vF.useId;function Tf(t){if(Pk!==void 0){const e=Pk();return t??e}return yF(t)}function ru({controlled:t,default:e,name:r,state:n="value"}){const{current:o}=$.useRef(t!==void 0),[a,i]=$.useState(e),l=o?t:a,u=$.useCallback(f=>{o||i(f)},[]);return[l,u]}function Nr(t){const e=$.useRef(t);return yn(()=>{e.current=t}),$.useRef((...r)=>(0,e.current)(...r)).current}function ar(...t){return $.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{a0(r,e)})},t)}const Rk={};function ZD(t,e){const r=$.useRef(Rk);return r.current===Rk&&(r.current=t(e)),r}const bF=[];function wF(t){$.useEffect(t,bF)}class Of{constructor(){we(this,"currentId",null);we(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});we(this,"disposeEffect",()=>this.clear)}static create(){return new Of}start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}}function vs(){const t=ZD(Of.create).current;return wF(t.disposeEffect),t}function Ba(t){try{return t.matches(":focus-visible")}catch{}return!1}function QD(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}const xF={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function nt(t,e,r=void 0){const n={};for(const o in t){const a=t[o];let i="",l=!0;for(let u=0;un.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function Ak(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function tM(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=t;if(!e){const g=Ee(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),b={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},w={...r,...o,...n};return g.length>0&&(w.className=g),Object.keys(b).length>0&&(w.style=b),{props:w,internalRef:void 0}}const i=xs({...o,...n}),l=Ak(n),u=Ak(o),f=e(i),h=Ee(f==null?void 0:f.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),d={...f==null?void 0:f.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},_={...f,...r,...u,...l};return h.length>0&&(_.className=h),Object.keys(d).length>0&&(_.style=d),{props:_,internalRef:f.ref}}function rM(t,e,r){return typeof t=="function"?t(e,r):t}function Dr(t){var d;const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=t,i=o?{}:rM(r,n),{props:l,internalRef:u}=tM({...a,externalSlotProps:i}),f=ar(u,i==null?void 0:i.ref,(d=t.additionalProps)==null?void 0:d.ref);return eM(e,{...l,ref:f},n)}function Ws(t){var e;return parseInt($.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}const nM=$.createContext(null);function vb(){return $.useContext(nM)}const kF=typeof Symbol=="function"&&Symbol.for,CF=kF?Symbol.for("mui.nested"):"__THEME_NESTED__";function $F(t,e){return typeof e=="function"?e(t):{...t,...e}}function EF(t){const{children:e,theme:r}=t,n=vb(),o=$.useMemo(()=>{const a=n===null?{...r}:$F(n,r);return a!=null&&(a[CF]=n!==null),a},[r,n]);return R.jsx(nM.Provider,{value:o,children:e})}const oM=$.createContext();function TF({value:t,...e}){return R.jsx(oM.Provider,{value:t??!0,...e})}const Us=()=>$.useContext(oM)??!1,aM=$.createContext(void 0);function OF({value:t,children:e}){return R.jsx(aM.Provider,{value:t,children:e})}function DF(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const o=e.components[r];return o.defaultProps?tu(o.defaultProps,n):!o.styleOverrides&&!o.variants?tu(o,n):n}function MF({props:t,name:e}){const r=$.useContext(aM);return DF({props:t,name:e,theme:{components:r}})}const Ik={};function jk(t,e,r,n=!1){return $.useMemo(()=>{const o=t&&e[t]||e;if(typeof r=="function"){const a=r(o),i=t?{...e,[t]:a}:a;return n?()=>i:i}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function sM(t){const{children:e,theme:r,themeId:n}=t,o=_b(Ik),a=vb()||Ik,i=jk(n,o,r),l=jk(n,a,r,!0),u=(n?i[n]:i).direction==="rtl";return R.jsx(EF,{theme:l,children:R.jsx(wu.Provider,{value:i,children:R.jsx(TF,{value:u,children:R.jsx(OF,{value:n?i[n].components:i.components,children:e})})})})}const Lk={theme:void 0};function NF(t){let e,r;return function(o){let a=e;return(a===void 0||o.theme!==r)&&(Lk.theme=o.theme,a=VD(t(Lk)),e=a,r=o.theme),a}}const bb="mode",wb="color-scheme",PF="data-color-scheme";function RF(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=bb,colorSchemeStorageKey:a=wb,attribute:i=PF,colorSchemeNode:l="document.documentElement",nonce:u}=t;let f="",h=i;if(i==="class"&&(h=".%s"),i==="data"&&(h="[data-%s]"),h.startsWith(".")){const _=h.substring(1);f+=`${l}.classList.remove('${_}'.replace('%s', light), '${_}'.replace('%s', dark)); ${l}.classList.add('${_}'.replace('%s', colorScheme));`}const d=h.match(/\[([^\]]+)\]/);if(d){const[_,g]=d[1].split("=");g||(f+=`${l}.removeAttribute('${_}'.replace('%s', light)); ${l}.removeAttribute('${_}'.replace('%s', dark));`),f+=` ${l}.setAttribute('${_}'.replace('%s', colorScheme), ${g?`${g}.replace('%s', colorScheme)`:'""'});`}else f+=`${l}.setAttribute('${h}', colorScheme);`;return R.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() { @@ -92,14 +92,14 @@ try { if (colorScheme) { ${f} } -} catch(e){}})();`}},"mui-color-scheme-init")}function zk(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function iM(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function Az(t){return iM(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function n_(t,e){if(typeof window>"u")return;let r;try{r=localStorage.getItem(t)||void 0,r||localStorage.setItem(t,e)}catch{}return r||e}function Iz(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:a=bb,colorSchemeStorageKey:i=wb,storageWindow:l=typeof window>"u"?void 0:window,noSsr:u=!1}=t,f=o.join(","),h=o.length>1,[d,_]=$.useState(()=>{const O=n_(a,e),M=n_(`${i}-light`,r),T=n_(`${i}-dark`,n);return{mode:O,systemMode:zk(O),lightColorScheme:M,darkColorScheme:T}}),[g,b]=$.useState(u||!h);$.useEffect(()=>{b(!0)},[]);const w=Az(d),S=$.useCallback(O=>{_(M=>{if(O===M.mode)return M;const T=O??e;try{localStorage.setItem(a,T)}catch{}return{...M,mode:T,systemMode:zk(T)}})},[a,e]),k=$.useCallback(O=>{O?typeof O=="string"?O&&!f.includes(O)?console.error(`\`${O}\` does not exist in \`theme.colorSchemes\`.`):_(M=>{const T={...M};return iM(M,P=>{try{localStorage.setItem(`${i}-${P}`,O)}catch{}P==="light"&&(T.lightColorScheme=O),P==="dark"&&(T.darkColorScheme=O)}),T}):_(M=>{const T={...M},P=O.light===null?r:O.light,j=O.dark===null?n:O.dark;if(P)if(!f.includes(P))console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`);else{T.lightColorScheme=P;try{localStorage.setItem(`${i}-light`,P)}catch{}}if(j)if(!f.includes(j))console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`);else{T.darkColorScheme=j;try{localStorage.setItem(`${i}-dark`,j)}catch{}}return T}):_(M=>{try{localStorage.setItem(`${i}-light`,r),localStorage.setItem(`${i}-dark`,n)}catch{}return{...M,lightColorScheme:r,darkColorScheme:n}})},[f,i,r,n]),D=$.useCallback(O=>{d.mode==="system"&&_(M=>{const T=O!=null&&O.matches?"dark":"light";return M.systemMode===T?M:{...M,systemMode:T}})},[d.mode]),C=$.useRef(D);return C.current=D,$.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const O=(...T)=>C.current(...T),M=window.matchMedia("(prefers-color-scheme: dark)");return M.addListener(O),O(M),()=>{M.removeListener(O)}},[h]),$.useEffect(()=>{if(l&&h){const O=M=>{const T=M.newValue;typeof M.key=="string"&&M.key.startsWith(i)&&(!T||f.match(T))&&(M.key.endsWith("light")&&k({light:T}),M.key.endsWith("dark")&&k({dark:T})),M.key===a&&(!T||["light","dark","system"].includes(T))&&S(T||e)};return l.addEventListener("storage",O),()=>{l.removeEventListener("storage",O)}}},[k,S,a,i,f,e,l,h]),{...d,mode:g?d.mode:void 0,systemMode:g?d.systemMode:void 0,colorScheme:g?w:void 0,setMode:S,setColorScheme:k}}const jz="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Lz(t){const{themeId:e,theme:r={},modeStorageKey:n=bb,colorSchemeStorageKey:o=wb,disableTransitionOnChange:a=!1,defaultColorScheme:i,resolveTheme:l}=t,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=$.createContext(void 0),h=()=>$.useContext(f)||u,d={},_={};function g(k){var ut,q,ne,ye;const{children:D,theme:C,modeStorageKey:O=n,colorSchemeStorageKey:M=o,disableTransitionOnChange:T=a,storageWindow:P=typeof window>"u"?void 0:window,documentNode:j=typeof document>"u"?void 0:document,colorSchemeNode:z=typeof document>"u"?void 0:document.documentElement,disableNestedContext:E=!1,disableStyleSheetGeneration:L=!1,defaultMode:G="system",noSsr:B}=k,F=$.useRef(!1),H=vb(),K=$.useContext(f),ee=!!K&&!E,Y=$.useMemo(()=>C||(typeof r=="function"?r():r),[C]),X=Y[e],re=X||Y,{colorSchemes:I=d,components:Q=_,cssVarPrefix:me}=re,pe=Object.keys(I).filter(we=>!!I[we]).join(","),ge=$.useMemo(()=>pe.split(","),[pe]),Ce=typeof i=="string"?i:i.light,Re=typeof i=="string"?i:i.dark,Te=I[Ce]&&I[Re]?G:((q=(ut=I[re.defaultColorScheme])==null?void 0:ut.palette)==null?void 0:q.mode)||((ne=re.palette)==null?void 0:ne.mode),{mode:Pe,setMode:Oe,systemMode:Fe,lightColorScheme:Me,darkColorScheme:Be,colorScheme:We,setColorScheme:De}=Iz({supportedColorSchemes:ge,defaultLightColorScheme:Ce,defaultDarkColorScheme:Re,modeStorageKey:O,colorSchemeStorageKey:M,defaultMode:Te,storageWindow:P,noSsr:B});let pt=Pe,ce=We;ee&&(pt=K.mode,ce=K.colorScheme);const qe=$.useMemo(()=>{var Ve;const we=ce||re.defaultColorScheme,ke=((Ve=re.generateThemeVars)==null?void 0:Ve.call(re))||re.vars,ve={...re,components:Q,colorSchemes:I,cssVarPrefix:me,vars:ke};if(typeof ve.generateSpacing=="function"&&(ve.spacing=ve.generateSpacing()),we){const $e=I[we];$e&&typeof $e=="object"&&Object.keys($e).forEach(Ye=>{$e[Ye]&&typeof $e[Ye]=="object"?ve[Ye]={...ve[Ye],...$e[Ye]}:ve[Ye]=$e[Ye]})}return l?l(ve):ve},[re,ce,Q,I,me]),st=re.colorSchemeSelector;$.useEffect(()=>{if(ce&&z&&st&&st!=="media"){const we=st;let ke=st;if(we==="class"&&(ke=".%s"),we==="data"&&(ke="[data-%s]"),we!=null&&we.startsWith("data-")&&!we.includes("%s")&&(ke=`[${we}="%s"]`),ke.startsWith("."))z.classList.remove(...ge.map(ve=>ke.substring(1).replace("%s",ve))),z.classList.add(ke.substring(1).replace("%s",ce));else{const ve=ke.replace("%s",ce).match(/\[([^\]]+)\]/);if(ve){const[Ve,$e]=ve[1].split("=");$e||ge.forEach(Ye=>{z.removeAttribute(Ve.replace(ce,Ye))}),z.setAttribute(Ve,$e?$e.replace(/"|'/g,""):"")}else z.setAttribute(ke,ce)}}},[ce,st,z,ge]),$.useEffect(()=>{let we;if(T&&F.current&&j){const ke=j.createElement("style");ke.appendChild(j.createTextNode(jz)),j.head.appendChild(ke),window.getComputedStyle(j.body),we=setTimeout(()=>{j.head.removeChild(ke)},1)}return()=>{clearTimeout(we)}},[ce,T,j]),$.useEffect(()=>(F.current=!0,()=>{F.current=!1}),[]);const rt=$.useMemo(()=>({allColorSchemes:ge,colorScheme:ce,darkColorScheme:Be,lightColorScheme:Me,mode:pt,setColorScheme:De,setMode:Oe,systemMode:Fe}),[ge,ce,Be,Me,pt,De,Oe,Fe,qe.colorSchemeSelector]);let Je=!0;(L||re.cssVariables===!1||ee&&(H==null?void 0:H.cssVarPrefix)===me)&&(Je=!1);const Se=R.jsxs($.Fragment,{children:[R.jsx(sM,{themeId:X?e:void 0,theme:qe,children:D}),Je&&R.jsx(jD,{styles:((ye=qe.generateStyleSheets)==null?void 0:ye.call(qe))||[]})]});return ee?Se:R.jsx(f.Provider,{value:rt,children:Se})}const b=typeof i=="string"?i:i.light,w=typeof i=="string"?i:i.dark;return{CssVarsProvider:g,useColorScheme:h,getInitColorSchemeScript:k=>Rz({colorSchemeStorageKey:o,defaultLightColorScheme:b,defaultDarkColorScheme:w,modeStorageKey:n,...k})}}function zz(t=""){function e(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${t?`${t}-`:""}${n}${e(...o)})`}const Fk=(t,e,r,n=[])=>{let o=t;e.forEach((a,i)=>{i===e.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},Fz=(t,e,r)=>{function n(o,a=[],i=[]){Object.entries(o).forEach(([l,u])=>{(!r||!r([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...a,l],Array.isArray(u)?[...i,l]:i):e([...a,l],u,i))})}n(t)},Bz=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function o_(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},o={},a={},i={};return Fz(t,(l,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(l,u))){const h=`--${r?`${r}-`:""}${l.join("-")}`,d=Bz(l,u);Object.assign(o,{[h]:d}),Fk(a,l,`var(${h})`,f),Fk(i,l,`var(${h}, ${d})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function Wz(t,e={}){const{getSelector:r=S,disableCssColorScheme:n,colorSchemeSelector:o}=e,{colorSchemes:a={},components:i,defaultColorScheme:l="light",...u}=t,{vars:f,css:h,varsWithDefaults:d}=o_(u,e);let _=d;const g={},{[l]:b,...w}=a;if(Object.entries(w||{}).forEach(([C,O])=>{const{vars:M,css:T,varsWithDefaults:P}=o_(O,e);_=kr(_,P),g[C]={css:T,vars:M}}),b){const{css:C,vars:O,varsWithDefaults:M}=o_(b,e);_=kr(_,M),g[l]={css:C,vars:O}}function S(C,O){var T,P;let M=o;if(o==="class"&&(M=".%s"),o==="data"&&(M="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(M=`[${o}="%s"]`),C){if(M==="media")return t.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((P=(T=a[C])==null?void 0:T.palette)==null?void 0:P.mode)||C})`]:{":root":O}};if(M)return t.defaultColorScheme===C?`:root, ${M.replace("%s",String(C))}`:M.replace("%s",String(C))}return":root"}return{vars:_,generateThemeVars:()=>{let C={...f};return Object.entries(g).forEach(([,{vars:O}])=>{C=kr(C,O)}),C},generateStyleSheets:()=>{var j,z;const C=[],O=t.defaultColorScheme||"light";function M(E,L){Object.keys(L).length&&C.push(typeof E=="string"?{[E]:{...L}}:E)}M(r(void 0,{...h}),h);const{[O]:T,...P}=g;if(T){const{css:E}=T,L=(z=(j=a[O])==null?void 0:j.palette)==null?void 0:z.mode,G=!n&&L?{colorScheme:L,...E}:{...E};M(r(O,{...G}),G)}return Object.entries(P).forEach(([E,{css:L}])=>{var F,H;const G=(H=(F=a[E])==null?void 0:F.palette)==null?void 0:H.mode,B=!n&&G?{colorScheme:G,...L}:{...L};M(r(E,{...B}),B)}),C}}}function Uz(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}const Hz=kf(),qz=lz("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function Vz(t){return uz({props:t,name:"MuiStack",defaultTheme:Hz})}function Xz(t,e){const r=$.Children.toArray(t).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],Jz=({ownerState:t,theme:e})=>{let r={display:"flex",flexDirection:"column",...Qn({theme:e},e_({values:t.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n}))};if(t.spacing){const n=yf(e),o=Object.keys(e.breakpoints.values).reduce((u,f)=>((typeof t.spacing=="object"&&t.spacing[f]!=null||typeof t.direction=="object"&&t.direction[f]!=null)&&(u[f]=!0),u),{}),a=e_({values:t.direction,base:o}),i=e_({values:t.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,f,h)=>{if(!a[u]){const _=f>0?a[h[f-1]]:"column";a[u]=_}}),r=kr(r,Qn({theme:e},i,(u,f)=>t.useFlexGap?{gap:Ns(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Gz(f?a[f]:t.direction)}`]:Ns(n,u)}}))}return r=iL(e.breakpoints,r),r};function Yz(t={}){const{createStyledComponent:e=qz,useThemeProps:r=Vz,componentName:n="MuiStack"}=t,o=()=>nt({root:["root"]},u=>tt(n,u),{}),a=e(Jz);return $.forwardRef(function(u,f){const h=r(u),d=gb(h),{component:_="div",direction:g="column",spacing:b=0,divider:w,children:S,className:k,useFlexGap:D=!1,...C}=d,O={direction:g,spacing:b,useFlexGap:D},M=o();return R.jsx(a,{as:_,ownerState:O,ref:f,className:Ee(M.root,k),...C,children:w?Xz(S,w):S})})}const nu={black:"#000",white:"#fff"},s0={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"},wi={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"},xi={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"},Or={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"},Si={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"},ki={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"},Ci={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 cM(){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:nu.white,default:nu.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Kz=cM();function lM(){return{text:{primary:nu.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:nu.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Bk=lM();function Wk(t,e,r,n){const o=n.light||n,a=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=wc(t.main,o):e==="dark"&&(t.dark=bc(t.main,a)))}function Zz(t="light"){return t==="dark"?{main:Si[200],light:Si[50],dark:Si[400]}:{main:Si[700],light:Si[400],dark:Si[800]}}function Qz(t="light"){return t==="dark"?{main:wi[200],light:wi[50],dark:wi[400]}:{main:wi[500],light:wi[300],dark:wi[700]}}function eF(t="light"){return t==="dark"?{main:xi[500],light:xi[300],dark:xi[700]}:{main:xi[700],light:xi[400],dark:xi[800]}}function tF(t="light"){return t==="dark"?{main:ki[400],light:ki[300],dark:ki[700]}:{main:ki[700],light:ki[500],dark:ki[900]}}function rF(t="light"){return t==="dark"?{main:Ci[400],light:Ci[300],dark:Ci[700]}:{main:Ci[800],light:Ci[500],dark:Ci[900]}}function nF(t="light"){return t==="dark"?{main:Or[400],light:Or[300],dark:Or[700]}:{main:"#ed6c02",light:Or[500],dark:Or[900]}}function xb(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=t,a=t.primary||Zz(e),i=t.secondary||Qz(e),l=t.error||eF(e),u=t.info||tF(e),f=t.success||rF(e),h=t.warning||nF(e);function d(w){return gz(w,Bk.text.primary)>=r?Bk.text.primary:Kz.text.primary}const _=({color:w,name:S,mainShade:k=500,lightShade:D=300,darkShade:C=700})=>{if(w={...w},!w.main&&w[k]&&(w.main=w[k]),!w.hasOwnProperty("main"))throw new Error(Zo(11,S?` (${S})`:"",k));if(typeof w.main!="string")throw new Error(Zo(12,S?` (${S})`:"",JSON.stringify(w.main)));return Wk(w,"light",D,n),Wk(w,"dark",C,n),w.contrastText||(w.contrastText=d(w.main)),w};let g;return e==="light"?g=cM():e==="dark"&&(g=lM()),kr({common:{...nu},mode:e,primary:_({color:a,name:"primary"}),secondary:_({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:_({color:l,name:"error"}),warning:_({color:h,name:"warning"}),info:_({color:u,name:"info"}),success:_({color:f,name:"success"}),grey:s0,contrastThreshold:r,getContrastText:d,augmentColor:_,tonalOffset:n,...g},o)}function oF(t){const e={};return Object.entries(t).forEach(n=>{const[o,a]=n;typeof a=="object"&&(e[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),e}function aF(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function sF(t){return Math.round(t*1e5)/1e5}const Uk={textTransform:"uppercase"},Hk='"Roboto", "Helvetica", "Arial", sans-serif';function uM(t,e){const{fontFamily:r=Hk,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:h,...d}=typeof e=="function"?e(t):e,_=n/14,g=h||(S=>`${S/u*_}rem`),b=(S,k,D,C,O)=>({fontFamily:r,fontWeight:S,fontSize:g(k),lineHeight:D,...r===Hk?{letterSpacing:`${sF(C/k)}em`}:{},...O,...f}),w={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(i,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(i,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(i,14,1.75,.4,Uk),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,Uk),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kr({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:l,...w},d,{clone:!1})}const iF=.2,cF=.14,lF=.12;function qt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${iF})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${cF})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${lF})`].join(",")}const uF=["none",qt(0,2,1,-1,0,1,1,0,0,1,3,0),qt(0,3,1,-2,0,2,2,0,0,1,5,0),qt(0,3,3,-2,0,3,4,0,0,1,8,0),qt(0,2,4,-1,0,4,5,0,0,1,10,0),qt(0,3,5,-1,0,5,8,0,0,1,14,0),qt(0,3,5,-1,0,6,10,0,0,1,18,0),qt(0,4,5,-2,0,7,10,1,0,2,16,1),qt(0,5,5,-3,0,8,10,1,0,3,14,2),qt(0,5,6,-3,0,9,12,1,0,3,16,2),qt(0,6,6,-3,0,10,14,1,0,4,18,3),qt(0,6,7,-4,0,11,15,1,0,4,20,3),qt(0,7,8,-4,0,12,17,2,0,5,22,4),qt(0,7,8,-4,0,13,19,2,0,5,24,4),qt(0,7,9,-4,0,14,21,2,0,5,26,4),qt(0,8,9,-5,0,15,22,2,0,6,28,5),qt(0,8,10,-5,0,16,24,2,0,6,30,5),qt(0,8,11,-5,0,17,26,2,0,6,32,5),qt(0,9,11,-5,0,18,28,2,0,7,34,6),qt(0,9,12,-6,0,19,29,2,0,7,36,6),qt(0,10,13,-6,0,20,31,3,0,8,38,7),qt(0,10,13,-6,0,21,33,3,0,8,40,7),qt(0,10,14,-6,0,22,35,3,0,8,42,7),qt(0,11,14,-7,0,23,36,3,0,9,44,8),qt(0,11,15,-7,0,24,38,3,0,9,46,8)],dF={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)"},pF={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qk(t){return`${Math.round(t)}ms`}function fF(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function hF(t){const e={...dF,...t.easing},r={...pF,...t.duration};return{getAutoHeightDuration:fF,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=e.easeInOut,delay:u=0,...f}=a;return(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof i=="string"?i:qk(i)} ${l} ${typeof u=="string"?u:qk(u)}`).join(",")},...t,easing:e,duration:r}}const mF={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _F(t){return vo(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function dM(t={}){const e={...t};function r(n){const o=Object.entries(n);for(let a=0;a{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function n_(t,e){if(typeof window>"u")return;let r;try{r=localStorage.getItem(t)||void 0,r||localStorage.setItem(t,e)}catch{}return r||e}function IF(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:a=bb,colorSchemeStorageKey:i=wb,storageWindow:l=typeof window>"u"?void 0:window,noSsr:u=!1}=t,f=o.join(","),h=o.length>1,[d,_]=$.useState(()=>{const O=n_(a,e),M=n_(`${i}-light`,r),T=n_(`${i}-dark`,n);return{mode:O,systemMode:Fk(O),lightColorScheme:M,darkColorScheme:T}}),[g,b]=$.useState(u||!h);$.useEffect(()=>{b(!0)},[]);const w=AF(d),S=$.useCallback(O=>{_(M=>{if(O===M.mode)return M;const T=O??e;try{localStorage.setItem(a,T)}catch{}return{...M,mode:T,systemMode:Fk(T)}})},[a,e]),k=$.useCallback(O=>{O?typeof O=="string"?O&&!f.includes(O)?console.error(`\`${O}\` does not exist in \`theme.colorSchemes\`.`):_(M=>{const T={...M};return iM(M,P=>{try{localStorage.setItem(`${i}-${P}`,O)}catch{}P==="light"&&(T.lightColorScheme=O),P==="dark"&&(T.darkColorScheme=O)}),T}):_(M=>{const T={...M},P=O.light===null?r:O.light,j=O.dark===null?n:O.dark;if(P)if(!f.includes(P))console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`);else{T.lightColorScheme=P;try{localStorage.setItem(`${i}-light`,P)}catch{}}if(j)if(!f.includes(j))console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`);else{T.darkColorScheme=j;try{localStorage.setItem(`${i}-dark`,j)}catch{}}return T}):_(M=>{try{localStorage.setItem(`${i}-light`,r),localStorage.setItem(`${i}-dark`,n)}catch{}return{...M,lightColorScheme:r,darkColorScheme:n}})},[f,i,r,n]),D=$.useCallback(O=>{d.mode==="system"&&_(M=>{const T=O!=null&&O.matches?"dark":"light";return M.systemMode===T?M:{...M,systemMode:T}})},[d.mode]),C=$.useRef(D);return C.current=D,$.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const O=(...T)=>C.current(...T),M=window.matchMedia("(prefers-color-scheme: dark)");return M.addListener(O),O(M),()=>{M.removeListener(O)}},[h]),$.useEffect(()=>{if(l&&h){const O=M=>{const T=M.newValue;typeof M.key=="string"&&M.key.startsWith(i)&&(!T||f.match(T))&&(M.key.endsWith("light")&&k({light:T}),M.key.endsWith("dark")&&k({dark:T})),M.key===a&&(!T||["light","dark","system"].includes(T))&&S(T||e)};return l.addEventListener("storage",O),()=>{l.removeEventListener("storage",O)}}},[k,S,a,i,f,e,l,h]),{...d,mode:g?d.mode:void 0,systemMode:g?d.systemMode:void 0,colorScheme:g?w:void 0,setMode:S,setColorScheme:k}}const jF="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function LF(t){const{themeId:e,theme:r={},modeStorageKey:n=bb,colorSchemeStorageKey:o=wb,disableTransitionOnChange:a=!1,defaultColorScheme:i,resolveTheme:l}=t,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=$.createContext(void 0),h=()=>$.useContext(f)||u,d={},_={};function g(k){var ut,q,ne,ye;const{children:D,theme:C,modeStorageKey:O=n,colorSchemeStorageKey:M=o,disableTransitionOnChange:T=a,storageWindow:P=typeof window>"u"?void 0:window,documentNode:j=typeof document>"u"?void 0:document,colorSchemeNode:F=typeof document>"u"?void 0:document.documentElement,disableNestedContext:E=!1,disableStyleSheetGeneration:L=!1,defaultMode:G="system",noSsr:B}=k,z=$.useRef(!1),H=vb(),K=$.useContext(f),ee=!!K&&!E,Y=$.useMemo(()=>C||(typeof r=="function"?r():r),[C]),X=Y[e],re=X||Y,{colorSchemes:I=d,components:Q=_,cssVarPrefix:me}=re,pe=Object.keys(I).filter(xe=>!!I[xe]).join(","),ge=$.useMemo(()=>pe.split(","),[pe]),Ce=typeof i=="string"?i:i.light,Re=typeof i=="string"?i:i.dark,Te=I[Ce]&&I[Re]?G:((q=(ut=I[re.defaultColorScheme])==null?void 0:ut.palette)==null?void 0:q.mode)||((ne=re.palette)==null?void 0:ne.mode),{mode:Pe,setMode:Oe,systemMode:ze,lightColorScheme:Me,darkColorScheme:Be,colorScheme:We,setColorScheme:De}=IF({supportedColorSchemes:ge,defaultLightColorScheme:Ce,defaultDarkColorScheme:Re,modeStorageKey:O,colorSchemeStorageKey:M,defaultMode:Te,storageWindow:P,noSsr:B});let pt=Pe,ce=We;ee&&(pt=K.mode,ce=K.colorScheme);const qe=$.useMemo(()=>{var Ve;const xe=ce||re.defaultColorScheme,ke=((Ve=re.generateThemeVars)==null?void 0:Ve.call(re))||re.vars,ve={...re,components:Q,colorSchemes:I,cssVarPrefix:me,vars:ke};if(typeof ve.generateSpacing=="function"&&(ve.spacing=ve.generateSpacing()),xe){const $e=I[xe];$e&&typeof $e=="object"&&Object.keys($e).forEach(Ye=>{$e[Ye]&&typeof $e[Ye]=="object"?ve[Ye]={...ve[Ye],...$e[Ye]}:ve[Ye]=$e[Ye]})}return l?l(ve):ve},[re,ce,Q,I,me]),st=re.colorSchemeSelector;$.useEffect(()=>{if(ce&&F&&st&&st!=="media"){const xe=st;let ke=st;if(xe==="class"&&(ke=".%s"),xe==="data"&&(ke="[data-%s]"),xe!=null&&xe.startsWith("data-")&&!xe.includes("%s")&&(ke=`[${xe}="%s"]`),ke.startsWith("."))F.classList.remove(...ge.map(ve=>ke.substring(1).replace("%s",ve))),F.classList.add(ke.substring(1).replace("%s",ce));else{const ve=ke.replace("%s",ce).match(/\[([^\]]+)\]/);if(ve){const[Ve,$e]=ve[1].split("=");$e||ge.forEach(Ye=>{F.removeAttribute(Ve.replace(ce,Ye))}),F.setAttribute(Ve,$e?$e.replace(/"|'/g,""):"")}else F.setAttribute(ke,ce)}}},[ce,st,F,ge]),$.useEffect(()=>{let xe;if(T&&z.current&&j){const ke=j.createElement("style");ke.appendChild(j.createTextNode(jF)),j.head.appendChild(ke),window.getComputedStyle(j.body),xe=setTimeout(()=>{j.head.removeChild(ke)},1)}return()=>{clearTimeout(xe)}},[ce,T,j]),$.useEffect(()=>(z.current=!0,()=>{z.current=!1}),[]);const rt=$.useMemo(()=>({allColorSchemes:ge,colorScheme:ce,darkColorScheme:Be,lightColorScheme:Me,mode:pt,setColorScheme:De,setMode:Oe,systemMode:ze}),[ge,ce,Be,Me,pt,De,Oe,ze,qe.colorSchemeSelector]);let Je=!0;(L||re.cssVariables===!1||ee&&(H==null?void 0:H.cssVarPrefix)===me)&&(Je=!1);const Se=R.jsxs($.Fragment,{children:[R.jsx(sM,{themeId:X?e:void 0,theme:qe,children:D}),Je&&R.jsx(jD,{styles:((ye=qe.generateStyleSheets)==null?void 0:ye.call(qe))||[]})]});return ee?Se:R.jsx(f.Provider,{value:rt,children:Se})}const b=typeof i=="string"?i:i.light,w=typeof i=="string"?i:i.dark;return{CssVarsProvider:g,useColorScheme:h,getInitColorSchemeScript:k=>RF({colorSchemeStorageKey:o,defaultLightColorScheme:b,defaultDarkColorScheme:w,modeStorageKey:n,...k})}}function FF(t=""){function e(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${t?`${t}-`:""}${n}${e(...o)})`}const zk=(t,e,r,n=[])=>{let o=t;e.forEach((a,i)=>{i===e.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},zF=(t,e,r)=>{function n(o,a=[],i=[]){Object.entries(o).forEach(([l,u])=>{(!r||!r([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...a,l],Array.isArray(u)?[...i,l]:i):e([...a,l],u,i))})}n(t)},BF=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function o_(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},o={},a={},i={};return zF(t,(l,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(l,u))){const h=`--${r?`${r}-`:""}${l.join("-")}`,d=BF(l,u);Object.assign(o,{[h]:d}),zk(a,l,`var(${h})`,f),zk(i,l,`var(${h}, ${d})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function WF(t,e={}){const{getSelector:r=S,disableCssColorScheme:n,colorSchemeSelector:o}=e,{colorSchemes:a={},components:i,defaultColorScheme:l="light",...u}=t,{vars:f,css:h,varsWithDefaults:d}=o_(u,e);let _=d;const g={},{[l]:b,...w}=a;if(Object.entries(w||{}).forEach(([C,O])=>{const{vars:M,css:T,varsWithDefaults:P}=o_(O,e);_=kr(_,P),g[C]={css:T,vars:M}}),b){const{css:C,vars:O,varsWithDefaults:M}=o_(b,e);_=kr(_,M),g[l]={css:C,vars:O}}function S(C,O){var T,P;let M=o;if(o==="class"&&(M=".%s"),o==="data"&&(M="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(M=`[${o}="%s"]`),C){if(M==="media")return t.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((P=(T=a[C])==null?void 0:T.palette)==null?void 0:P.mode)||C})`]:{":root":O}};if(M)return t.defaultColorScheme===C?`:root, ${M.replace("%s",String(C))}`:M.replace("%s",String(C))}return":root"}return{vars:_,generateThemeVars:()=>{let C={...f};return Object.entries(g).forEach(([,{vars:O}])=>{C=kr(C,O)}),C},generateStyleSheets:()=>{var j,F;const C=[],O=t.defaultColorScheme||"light";function M(E,L){Object.keys(L).length&&C.push(typeof E=="string"?{[E]:{...L}}:E)}M(r(void 0,{...h}),h);const{[O]:T,...P}=g;if(T){const{css:E}=T,L=(F=(j=a[O])==null?void 0:j.palette)==null?void 0:F.mode,G=!n&&L?{colorScheme:L,...E}:{...E};M(r(O,{...G}),G)}return Object.entries(P).forEach(([E,{css:L}])=>{var z,H;const G=(H=(z=a[E])==null?void 0:z.palette)==null?void 0:H.mode,B=!n&&G?{colorScheme:G,...L}:{...L};M(r(E,{...B}),B)}),C}}}function UF(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}const HF=kf(),qF=lF("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function VF(t){return uF({props:t,name:"MuiStack",defaultTheme:HF})}function XF(t,e){const r=$.Children.toArray(t).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],JF=({ownerState:t,theme:e})=>{let r={display:"flex",flexDirection:"column",...Qn({theme:e},e_({values:t.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n}))};if(t.spacing){const n=yf(e),o=Object.keys(e.breakpoints.values).reduce((u,f)=>((typeof t.spacing=="object"&&t.spacing[f]!=null||typeof t.direction=="object"&&t.direction[f]!=null)&&(u[f]=!0),u),{}),a=e_({values:t.direction,base:o}),i=e_({values:t.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,f,h)=>{if(!a[u]){const _=f>0?a[h[f-1]]:"column";a[u]=_}}),r=kr(r,Qn({theme:e},i,(u,f)=>t.useFlexGap?{gap:Ns(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${GF(f?a[f]:t.direction)}`]:Ns(n,u)}}))}return r=iL(e.breakpoints,r),r};function YF(t={}){const{createStyledComponent:e=qF,useThemeProps:r=VF,componentName:n="MuiStack"}=t,o=()=>nt({root:["root"]},u=>tt(n,u),{}),a=e(JF);return $.forwardRef(function(u,f){const h=r(u),d=gb(h),{component:_="div",direction:g="column",spacing:b=0,divider:w,children:S,className:k,useFlexGap:D=!1,...C}=d,O={direction:g,spacing:b,useFlexGap:D},M=o();return R.jsx(a,{as:_,ownerState:O,ref:f,className:Ee(M.root,k),...C,children:w?XF(S,w):S})})}const nu={black:"#000",white:"#fff"},s0={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"},wi={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"},xi={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"},Or={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"},Si={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"},ki={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"},Ci={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 cM(){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:nu.white,default:nu.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const KF=cM();function lM(){return{text:{primary:nu.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:nu.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Bk=lM();function Wk(t,e,r,n){const o=n.light||n,a=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=wc(t.main,o):e==="dark"&&(t.dark=bc(t.main,a)))}function ZF(t="light"){return t==="dark"?{main:Si[200],light:Si[50],dark:Si[400]}:{main:Si[700],light:Si[400],dark:Si[800]}}function QF(t="light"){return t==="dark"?{main:wi[200],light:wi[50],dark:wi[400]}:{main:wi[500],light:wi[300],dark:wi[700]}}function ez(t="light"){return t==="dark"?{main:xi[500],light:xi[300],dark:xi[700]}:{main:xi[700],light:xi[400],dark:xi[800]}}function tz(t="light"){return t==="dark"?{main:ki[400],light:ki[300],dark:ki[700]}:{main:ki[700],light:ki[500],dark:ki[900]}}function rz(t="light"){return t==="dark"?{main:Ci[400],light:Ci[300],dark:Ci[700]}:{main:Ci[800],light:Ci[500],dark:Ci[900]}}function nz(t="light"){return t==="dark"?{main:Or[400],light:Or[300],dark:Or[700]}:{main:"#ed6c02",light:Or[500],dark:Or[900]}}function xb(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=t,a=t.primary||ZF(e),i=t.secondary||QF(e),l=t.error||ez(e),u=t.info||tz(e),f=t.success||rz(e),h=t.warning||nz(e);function d(w){return gF(w,Bk.text.primary)>=r?Bk.text.primary:KF.text.primary}const _=({color:w,name:S,mainShade:k=500,lightShade:D=300,darkShade:C=700})=>{if(w={...w},!w.main&&w[k]&&(w.main=w[k]),!w.hasOwnProperty("main"))throw new Error(Zo(11,S?` (${S})`:"",k));if(typeof w.main!="string")throw new Error(Zo(12,S?` (${S})`:"",JSON.stringify(w.main)));return Wk(w,"light",D,n),Wk(w,"dark",C,n),w.contrastText||(w.contrastText=d(w.main)),w};let g;return e==="light"?g=cM():e==="dark"&&(g=lM()),kr({common:{...nu},mode:e,primary:_({color:a,name:"primary"}),secondary:_({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:_({color:l,name:"error"}),warning:_({color:h,name:"warning"}),info:_({color:u,name:"info"}),success:_({color:f,name:"success"}),grey:s0,contrastThreshold:r,getContrastText:d,augmentColor:_,tonalOffset:n,...g},o)}function oz(t){const e={};return Object.entries(t).forEach(n=>{const[o,a]=n;typeof a=="object"&&(e[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),e}function az(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function sz(t){return Math.round(t*1e5)/1e5}const Uk={textTransform:"uppercase"},Hk='"Roboto", "Helvetica", "Arial", sans-serif';function uM(t,e){const{fontFamily:r=Hk,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:h,...d}=typeof e=="function"?e(t):e,_=n/14,g=h||(S=>`${S/u*_}rem`),b=(S,k,D,C,O)=>({fontFamily:r,fontWeight:S,fontSize:g(k),lineHeight:D,...r===Hk?{letterSpacing:`${sz(C/k)}em`}:{},...O,...f}),w={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(i,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(i,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(i,14,1.75,.4,Uk),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,Uk),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kr({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:l,...w},d,{clone:!1})}const iz=.2,cz=.14,lz=.12;function qt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${iz})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${cz})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${lz})`].join(",")}const uz=["none",qt(0,2,1,-1,0,1,1,0,0,1,3,0),qt(0,3,1,-2,0,2,2,0,0,1,5,0),qt(0,3,3,-2,0,3,4,0,0,1,8,0),qt(0,2,4,-1,0,4,5,0,0,1,10,0),qt(0,3,5,-1,0,5,8,0,0,1,14,0),qt(0,3,5,-1,0,6,10,0,0,1,18,0),qt(0,4,5,-2,0,7,10,1,0,2,16,1),qt(0,5,5,-3,0,8,10,1,0,3,14,2),qt(0,5,6,-3,0,9,12,1,0,3,16,2),qt(0,6,6,-3,0,10,14,1,0,4,18,3),qt(0,6,7,-4,0,11,15,1,0,4,20,3),qt(0,7,8,-4,0,12,17,2,0,5,22,4),qt(0,7,8,-4,0,13,19,2,0,5,24,4),qt(0,7,9,-4,0,14,21,2,0,5,26,4),qt(0,8,9,-5,0,15,22,2,0,6,28,5),qt(0,8,10,-5,0,16,24,2,0,6,30,5),qt(0,8,11,-5,0,17,26,2,0,6,32,5),qt(0,9,11,-5,0,18,28,2,0,7,34,6),qt(0,9,12,-6,0,19,29,2,0,7,36,6),qt(0,10,13,-6,0,20,31,3,0,8,38,7),qt(0,10,13,-6,0,21,33,3,0,8,40,7),qt(0,10,14,-6,0,22,35,3,0,8,42,7),qt(0,11,14,-7,0,23,36,3,0,9,44,8),qt(0,11,15,-7,0,24,38,3,0,9,46,8)],dz={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)"},pz={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qk(t){return`${Math.round(t)}ms`}function fz(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function hz(t){const e={...dz,...t.easing},r={...pz,...t.duration};return{getAutoHeightDuration:fz,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=e.easeInOut,delay:u=0,...f}=a;return(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof i=="string"?i:qk(i)} ${l} ${typeof u=="string"?u:qk(u)}`).join(",")},...t,easing:e,duration:r}}const mz={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _z(t){return vo(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function dM(t={}){const e={...t};function r(n){const o=Object.entries(n);for(let a=0;akr(g,b),_),_.unstable_sxConfig={...Su,...f==null?void 0:f.unstable_sxConfig},_.unstable_sx=function(b){return za({sx:b,theme:this})},_.toRuntimeSource=dM,_}function c0(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const gF=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=c0(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function pM(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function fM(t){return t==="dark"?gF:[]}function yF(t){const{palette:e={mode:"light"},opacity:r,overlays:n,...o}=t,a=xb(e);return{palette:a,opacity:{...pM(a.mode),...r},overlays:n||fM(a.mode),...o}}function vF(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const bF=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],wF=t=>(e,r)=>{const n=t.rootSelector||":root",o=t.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const i={};return bF(t.cssVarPrefix).forEach(l=>{i[l]=r[l],delete r[l]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:a?{[a.replace("%s",e)]:i,[`${n}, ${a.replace("%s",e)}`]:r}:{[n]:{...r,...i}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(e))}`}else if(e){if(a==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(a)return a.replace("%s",String(e))}return n};function xF(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function oe(t,e,r){!t[e]&&r&&(t[e]=r)}function Il(t){return typeof t!="string"||!t.startsWith("hsl")?t:KD(t)}function Bo(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Al(Il(t[e])))}function SF(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const co=t=>{try{return t()}catch{}},kF=(t="mui")=>zz(t);function a_(t,e,r,n){if(!e)return;e=e===!0?{}:e;const o=n==="dark"?"dark":"light";if(!r){t[n]=yF({...e,palette:{mode:o,...e==null?void 0:e.palette}});return}const{palette:a,...i}=i0({...r,palette:{mode:o,...e==null?void 0:e.palette}});return t[n]={...e,palette:a,opacity:{...pM(o),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||fM(o)},i}function CF(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=vF,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...f}=t,h=Object.keys(r)[0],d=n||(r.light&&h!=="light"?"light":h),_=kF(a),{[d]:g,light:b,dark:w,...S}=r,k={...S};let D=g;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(D=!0),!D)throw new Error(Zo(21,d));const C=a_(k,D,f,d);b&&!k.light&&a_(k,b,void 0,"light"),w&&!k.dark&&a_(k,w,void 0,"dark");let O={defaultColorScheme:d,...C,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:_,colorSchemes:k,font:{...oF(C.typography),...C.font},spacing:SF(f.spacing)};Object.keys(O.colorSchemes).forEach(z=>{const E=O.colorSchemes[z].palette,L=G=>{const B=G.split("-"),F=B[1],H=B[2];return _(G,E[F][H])};if(E.mode==="light"&&(oe(E.common,"background","#fff"),oe(E.common,"onBackground","#000")),E.mode==="dark"&&(oe(E.common,"background","#000"),oe(E.common,"onBackground","#fff")),xF(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){oe(E.Alert,"errorColor",Pt(E.error.light,.6)),oe(E.Alert,"infoColor",Pt(E.info.light,.6)),oe(E.Alert,"successColor",Pt(E.success.light,.6)),oe(E.Alert,"warningColor",Pt(E.warning.light,.6)),oe(E.Alert,"errorFilledBg",L("palette-error-main")),oe(E.Alert,"infoFilledBg",L("palette-info-main")),oe(E.Alert,"successFilledBg",L("palette-success-main")),oe(E.Alert,"warningFilledBg",L("palette-warning-main")),oe(E.Alert,"errorFilledColor",co(()=>E.getContrastText(E.error.main))),oe(E.Alert,"infoFilledColor",co(()=>E.getContrastText(E.info.main))),oe(E.Alert,"successFilledColor",co(()=>E.getContrastText(E.success.main))),oe(E.Alert,"warningFilledColor",co(()=>E.getContrastText(E.warning.main))),oe(E.Alert,"errorStandardBg",Rt(E.error.light,.9)),oe(E.Alert,"infoStandardBg",Rt(E.info.light,.9)),oe(E.Alert,"successStandardBg",Rt(E.success.light,.9)),oe(E.Alert,"warningStandardBg",Rt(E.warning.light,.9)),oe(E.Alert,"errorIconColor",L("palette-error-main")),oe(E.Alert,"infoIconColor",L("palette-info-main")),oe(E.Alert,"successIconColor",L("palette-success-main")),oe(E.Alert,"warningIconColor",L("palette-warning-main")),oe(E.AppBar,"defaultBg",L("palette-grey-100")),oe(E.Avatar,"defaultBg",L("palette-grey-400")),oe(E.Button,"inheritContainedBg",L("palette-grey-300")),oe(E.Button,"inheritContainedHoverBg",L("palette-grey-A100")),oe(E.Chip,"defaultBorder",L("palette-grey-400")),oe(E.Chip,"defaultAvatarColor",L("palette-grey-700")),oe(E.Chip,"defaultIconColor",L("palette-grey-700")),oe(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(E.LinearProgress,"primaryBg",Rt(E.primary.main,.62)),oe(E.LinearProgress,"secondaryBg",Rt(E.secondary.main,.62)),oe(E.LinearProgress,"errorBg",Rt(E.error.main,.62)),oe(E.LinearProgress,"infoBg",Rt(E.info.main,.62)),oe(E.LinearProgress,"successBg",Rt(E.success.main,.62)),oe(E.LinearProgress,"warningBg",Rt(E.warning.main,.62)),oe(E.Skeleton,"bg",`rgba(${L("palette-text-primaryChannel")} / 0.11)`),oe(E.Slider,"primaryTrack",Rt(E.primary.main,.62)),oe(E.Slider,"secondaryTrack",Rt(E.secondary.main,.62)),oe(E.Slider,"errorTrack",Rt(E.error.main,.62)),oe(E.Slider,"infoTrack",Rt(E.info.main,.62)),oe(E.Slider,"successTrack",Rt(E.success.main,.62)),oe(E.Slider,"warningTrack",Rt(E.warning.main,.62));const G=Jd(E.background.default,.8);oe(E.SnackbarContent,"bg",G),oe(E.SnackbarContent,"color",co(()=>E.getContrastText(G))),oe(E.SpeedDialAction,"fabHoverBg",Jd(E.background.paper,.15)),oe(E.StepConnector,"border",L("palette-grey-400")),oe(E.StepContent,"border",L("palette-grey-400")),oe(E.Switch,"defaultColor",L("palette-common-white")),oe(E.Switch,"defaultDisabledColor",L("palette-grey-100")),oe(E.Switch,"primaryDisabledColor",Rt(E.primary.main,.62)),oe(E.Switch,"secondaryDisabledColor",Rt(E.secondary.main,.62)),oe(E.Switch,"errorDisabledColor",Rt(E.error.main,.62)),oe(E.Switch,"infoDisabledColor",Rt(E.info.main,.62)),oe(E.Switch,"successDisabledColor",Rt(E.success.main,.62)),oe(E.Switch,"warningDisabledColor",Rt(E.warning.main,.62)),oe(E.TableCell,"border",Rt(Gd(E.divider,1),.88)),oe(E.Tooltip,"bg",Gd(E.grey[700],.92))}if(E.mode==="dark"){oe(E.Alert,"errorColor",Rt(E.error.light,.6)),oe(E.Alert,"infoColor",Rt(E.info.light,.6)),oe(E.Alert,"successColor",Rt(E.success.light,.6)),oe(E.Alert,"warningColor",Rt(E.warning.light,.6)),oe(E.Alert,"errorFilledBg",L("palette-error-dark")),oe(E.Alert,"infoFilledBg",L("palette-info-dark")),oe(E.Alert,"successFilledBg",L("palette-success-dark")),oe(E.Alert,"warningFilledBg",L("palette-warning-dark")),oe(E.Alert,"errorFilledColor",co(()=>E.getContrastText(E.error.dark))),oe(E.Alert,"infoFilledColor",co(()=>E.getContrastText(E.info.dark))),oe(E.Alert,"successFilledColor",co(()=>E.getContrastText(E.success.dark))),oe(E.Alert,"warningFilledColor",co(()=>E.getContrastText(E.warning.dark))),oe(E.Alert,"errorStandardBg",Pt(E.error.light,.9)),oe(E.Alert,"infoStandardBg",Pt(E.info.light,.9)),oe(E.Alert,"successStandardBg",Pt(E.success.light,.9)),oe(E.Alert,"warningStandardBg",Pt(E.warning.light,.9)),oe(E.Alert,"errorIconColor",L("palette-error-main")),oe(E.Alert,"infoIconColor",L("palette-info-main")),oe(E.Alert,"successIconColor",L("palette-success-main")),oe(E.Alert,"warningIconColor",L("palette-warning-main")),oe(E.AppBar,"defaultBg",L("palette-grey-900")),oe(E.AppBar,"darkBg",L("palette-background-paper")),oe(E.AppBar,"darkColor",L("palette-text-primary")),oe(E.Avatar,"defaultBg",L("palette-grey-600")),oe(E.Button,"inheritContainedBg",L("palette-grey-800")),oe(E.Button,"inheritContainedHoverBg",L("palette-grey-700")),oe(E.Chip,"defaultBorder",L("palette-grey-700")),oe(E.Chip,"defaultAvatarColor",L("palette-grey-300")),oe(E.Chip,"defaultIconColor",L("palette-grey-300")),oe(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(E.LinearProgress,"primaryBg",Pt(E.primary.main,.5)),oe(E.LinearProgress,"secondaryBg",Pt(E.secondary.main,.5)),oe(E.LinearProgress,"errorBg",Pt(E.error.main,.5)),oe(E.LinearProgress,"infoBg",Pt(E.info.main,.5)),oe(E.LinearProgress,"successBg",Pt(E.success.main,.5)),oe(E.LinearProgress,"warningBg",Pt(E.warning.main,.5)),oe(E.Skeleton,"bg",`rgba(${L("palette-text-primaryChannel")} / 0.13)`),oe(E.Slider,"primaryTrack",Pt(E.primary.main,.5)),oe(E.Slider,"secondaryTrack",Pt(E.secondary.main,.5)),oe(E.Slider,"errorTrack",Pt(E.error.main,.5)),oe(E.Slider,"infoTrack",Pt(E.info.main,.5)),oe(E.Slider,"successTrack",Pt(E.success.main,.5)),oe(E.Slider,"warningTrack",Pt(E.warning.main,.5));const G=Jd(E.background.default,.98);oe(E.SnackbarContent,"bg",G),oe(E.SnackbarContent,"color",co(()=>E.getContrastText(G))),oe(E.SpeedDialAction,"fabHoverBg",Jd(E.background.paper,.15)),oe(E.StepConnector,"border",L("palette-grey-600")),oe(E.StepContent,"border",L("palette-grey-600")),oe(E.Switch,"defaultColor",L("palette-grey-300")),oe(E.Switch,"defaultDisabledColor",L("palette-grey-600")),oe(E.Switch,"primaryDisabledColor",Pt(E.primary.main,.55)),oe(E.Switch,"secondaryDisabledColor",Pt(E.secondary.main,.55)),oe(E.Switch,"errorDisabledColor",Pt(E.error.main,.55)),oe(E.Switch,"infoDisabledColor",Pt(E.info.main,.55)),oe(E.Switch,"successDisabledColor",Pt(E.success.main,.55)),oe(E.Switch,"warningDisabledColor",Pt(E.warning.main,.55)),oe(E.TableCell,"border",Pt(Gd(E.divider,1),.68)),oe(E.Tooltip,"bg",Gd(E.grey[700],.92))}Bo(E.background,"default"),Bo(E.background,"paper"),Bo(E.common,"background"),Bo(E.common,"onBackground"),Bo(E,"divider"),Object.keys(E).forEach(G=>{const B=E[G];G!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&oe(E[G],"mainChannel",Al(Il(B.main))),B.light&&oe(E[G],"lightChannel",Al(Il(B.light))),B.dark&&oe(E[G],"darkChannel",Al(Il(B.dark))),B.contrastText&&oe(E[G],"contrastTextChannel",Al(Il(B.contrastText))),G==="text"&&(Bo(E[G],"primary"),Bo(E[G],"secondary")),G==="action"&&(B.active&&Bo(E[G],"active"),B.selected&&Bo(E[G],"selected")))})}),O=e.reduce((z,E)=>kr(z,E),O);const M={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:wF(O)},{vars:T,generateThemeVars:P,generateStyleSheets:j}=Wz(O,M);return O.vars=T,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([z,E])=>{O[z]=E}),O.generateThemeVars=P,O.generateStyleSheets=j,O.generateSpacing=function(){return UD(f.spacing,yf(this))},O.getColorSchemeSelector=Uz(l),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=i,O.unstable_sxConfig={...Su,...f==null?void 0:f.unstable_sxConfig},O.unstable_sx=function(E){return za({sx:E,theme:this})},O.toRuntimeSource=dM,O}function Vk(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:xb({...r===!0?{}:r.palette,mode:e})})}function ou(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...i}=t,l=a||"light",u=o==null?void 0:o[l],f={...o,...r?{[l]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return i0(t,...e);let h=r;"palette"in t||f[l]&&(f[l]!==!0?h=f[l].palette:l==="dark"&&(h={mode:"dark"}));const d=i0({...t,palette:h},...e);return d.defaultColorScheme=l,d.colorSchemes=f,d.palette.mode==="light"&&(d.colorSchemes.light={...f.light!==!0&&f.light,palette:d.palette},Vk(d,"dark",f.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:d.palette},Vk(d,"light",f.light)),d}return!r&&!("light"in f)&&l==="light"&&(f.light=!0),CF({...i,colorSchemes:f,defaultColorScheme:l,...typeof n!="boolean"&&n},...e)}const Sb=ou();function ta(){const t=Cf(Sb);return t[Zn]||t}function Df(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Cr=t=>Df(t)&&t!=="classes",ie=GD({themeId:Zn,defaultTheme:Sb,rootShouldForwardProp:Cr});function Xk({theme:t,...e}){const r=Zn in t?t[Zn]:void 0;return R.jsx(sM,{...e,themeId:r?Zn:void 0,theme:r||t})}const Yd={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:$F,useColorScheme:EXe,getInitColorSchemeScript:TXe}=Lz({themeId:Zn,theme:()=>ou({cssVariables:!0}),colorSchemeStorageKey:Yd.colorSchemeStorageKey,modeStorageKey:Yd.modeStorageKey,defaultColorScheme:{light:Yd.defaultLightColorScheme,dark:Yd.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:uM(t.palette,t.typography)};return e.unstable_sx=function(n){return za({sx:n,theme:this})},e}}),EF=$F;function Gk({theme:t,...e}){return typeof t=="function"?R.jsx(Xk,{theme:t,...e}):"colorSchemes"in(Zn in t?t[Zn]:t)?R.jsx(EF,{theme:t,...e}):R.jsx(Xk,{theme:t,...e})}function TF(t){return R.jsx(KL,{...t,defaultTheme:Sb,themeId:Zn})}function OF(t){return function(r){return R.jsx(TF,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function DF(){return gb}const Xe=Nz;function ot(t){return Mz(t)}function MF(t){return tt("MuiSvgIcon",t)}Ze("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const NF=t=>{const{color:e,fontSize:r,classes:n}=t,o={root:["root",e!=="inherit"&&`color${he(e)}`,`fontSize${he(r)}`]};return nt(o,MF,n)},PF=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${he(r.color)}`],e[`fontSize${he(r.fontSize)}`]]}})(Xe(({theme:t})=>{var e,r,n,o,a,i,l,u,f,h,d,_,g,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(n=(r=(t.vars??t).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(l=t.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(f=t.typography)==null?void 0:f.pxToRem)==null?void 0:h.call(f,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,w])=>w&&w.main).map(([w])=>{var S,k;return{props:{color:w},style:{color:(k=(S=(t.vars??t).palette)==null?void 0:S[w])==null?void 0:k.main}}}),{props:{color:"action"},style:{color:(_=(d=(t.vars??t).palette)==null?void 0:d.action)==null?void 0:_.active}},{props:{color:"disabled"},style:{color:(b=(g=(t.vars??t).palette)==null?void 0:g.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),l0=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:d,viewBox:_="0 0 24 24",...g}=n,b=$.isValidElement(o)&&o.type==="svg",w={...n,color:i,component:l,fontSize:u,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:_,hasSvgAsChild:b},S={};h||(S.viewBox=_);const k=NF(w);return R.jsxs(PF,{as:l,className:Ee(k.root,a),focusable:"false",color:f,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...S,...g,...b&&o.props,ownerState:w,children:[b?o.props.children:o,d?R.jsx("title",{children:d}):null]})});l0.muiName="SvgIcon";function Ge(t,e){function r(n,o){return R.jsx(l0,{"data-testid":`${e}Icon`,ref:o,...n,children:t})}return r.muiName=l0.muiName,$.memo($.forwardRef(r))}function hM(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}function u0(t,e){return u0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},u0(t,e)}function mM(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,u0(t,e)}var _M=HO();const Kd=Ha(_M),Jk={disabled:!1},Bp=y.createContext(null);var RF=function(e){return e.scrollTop},jl="unmounted",hs="exited",ms="entering",zi="entered",d0="exiting",To=function(t){mM(e,t);function e(n,o){var a;a=t.call(this,n,o)||this;var i=o,l=i&&!i.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?l?(u=hs,a.appearStatus=ms):u=zi:n.unmountOnExit||n.mountOnEnter?u=jl:u=hs,a.state={status:u},a.nextCallback=null,a}e.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===jl?{status:hs}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==ms&&i!==zi&&(a=ms):(i===ms||i===zi)&&(a=d0)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,l;return a=i=l=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:l}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===ms){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Kd.findDOMNode(this);i&&RF(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hs&&this.setState({status:jl})},r.performEnter=function(o){var a=this,i=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[Kd.findDOMNode(this),l],f=u[0],h=u[1],d=this.getTimeouts(),_=l?d.appear:d.enter;if(!o&&!i||Jk.disabled){this.safeSetState({status:zi},function(){a.props.onEntered(f)});return}this.props.onEnter(f,h),this.safeSetState({status:ms},function(){a.props.onEntering(f,h),a.onTransitionEnd(_,function(){a.safeSetState({status:zi},function(){a.props.onEntered(f,h)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:Kd.findDOMNode(this);if(!a||Jk.disabled){this.safeSetState({status:hs},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:d0},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:hs},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Kd.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],f=u[0],h=u[1];this.props.addEndListener(f,h)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===jl)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=hM(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(Bp.Provider,{value:null},typeof i=="function"?i(o,l):y.cloneElement(y.Children.only(i),l))},e}(y.Component);To.contextType=Bp;To.propTypes={};function $i(){}To.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$i,onEntering:$i,onEntered:$i,onExit:$i,onExiting:$i,onExited:$i};To.UNMOUNTED=jl;To.EXITED=hs;To.ENTERING=ms;To.ENTERED=zi;To.EXITING=d0;function AF(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kb(t,e){var r=function(a){return e&&$.isValidElement(a)?e(a):a},n=Object.create(null);return t&&$.Children.map(t,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function IF(t,e){t=t||{},e=e||{};function r(h){return h in e?e[h]:t[h]}var n=Object.create(null),o=[];for(var a in t)a in e?o.length&&(n[a]=o,o=[]):o.push(a);var i,l={};for(var u in e){if(n[u])for(i=0;it.scrollTop;function Wp(t,e){const{timeout:r,easing:n,style:o={}}=t;return{duration:o.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:o.transitionDelay}}function BF(t){return tt("MuiPaper",t)}Ze("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const WF=t=>{const{square:e,elevation:r,variant:n,classes:o}=t,a={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return nt(a,BF,o)},UF=ie("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(Xe(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),ku=$.forwardRef(function(e,r){var g;const n=ot({props:e,name:"MuiPaper"}),o=ta(),{className:a,component:i="div",elevation:l=1,square:u=!1,variant:f="elevation",...h}=n,d={...n,component:i,elevation:l,square:u,variant:f},_=WF(d);return R.jsx(UF,{as:i,ownerState:d,className:Ee(_.root,a),ref:r,...h,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":(g=o.vars.overlays)==null?void 0:g[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Nt("#fff",c0(l))}, ${Nt("#fff",c0(l))})`}},...h.style}})});function Sr(t,e){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,...l}=e,{component:u,slots:f={[t]:void 0},slotProps:h={[t]:void 0},...d}=a,_=f[t]||n,g=rM(h[t],o),{props:{component:b,...w},internalRef:S}=tM({className:r,...l,externalForwardedProps:t==="root"?d:void 0,externalSlotProps:g}),k=ar(S,g==null?void 0:g.ref,e.ref),D=t==="root"?b||u:b,C=eM(_,{...t==="root"&&!u&&!f[t]&&i,...t!=="root"&&!f[t]&&i,...w,...D&&{as:D},ref:k},o);return[_,C]}class Up{constructor(){xe(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Up}static use(){const e=ZD(Up.create).current,[r,n]=$.useState(!1);return e.shouldMount=r,e.setShouldMount=n,$.useEffect(e.mountEffect,[r]),e}mount(){return this.mounted||(this.mounted=qF(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...e)})}stop(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...e)})}pulsate(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...e)})}}function HF(){return Up.use()}function qF(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function VF(t){const{className:e,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:u,timeout:f}=t,[h,d]=$.useState(!1),_=Ee(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),g={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ee(r.child,h&&r.childLeaving,n&&r.childPulsate);return!l&&!h&&d(!0),$.useEffect(()=>{if(!l&&u!=null){const w=setTimeout(u,f);return()=>{clearTimeout(w)}}},[u,l,f]),R.jsx("span",{className:_,style:g,children:R.jsx("span",{className:b})})}const Dn=Ze("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),p0=550,XF=80,GF=qa` +export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},spacing:o,palette:a={},transitions:i={},typography:l={},shape:u,...f}=t;if(t.vars)throw new Error(Zo(20));const h=xb(a),d=kf(t);let _=kr(d,{mixins:az(d.breakpoints,n),palette:h,shadows:uz.slice(),typography:uM(h,l),transitions:hz(i),zIndex:{...mz}});return _=kr(_,f),_=e.reduce((g,b)=>kr(g,b),_),_.unstable_sxConfig={...Su,...f==null?void 0:f.unstable_sxConfig},_.unstable_sx=function(b){return Fa({sx:b,theme:this})},_.toRuntimeSource=dM,_}function c0(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const gz=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=c0(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function pM(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function fM(t){return t==="dark"?gz:[]}function yz(t){const{palette:e={mode:"light"},opacity:r,overlays:n,...o}=t,a=xb(e);return{palette:a,opacity:{...pM(a.mode),...r},overlays:n||fM(a.mode),...o}}function vz(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const bz=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],wz=t=>(e,r)=>{const n=t.rootSelector||":root",o=t.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const i={};return bz(t.cssVarPrefix).forEach(l=>{i[l]=r[l],delete r[l]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:a?{[a.replace("%s",e)]:i,[`${n}, ${a.replace("%s",e)}`]:r}:{[n]:{...r,...i}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(e))}`}else if(e){if(a==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(a)return a.replace("%s",String(e))}return n};function xz(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function oe(t,e,r){!t[e]&&r&&(t[e]=r)}function Il(t){return typeof t!="string"||!t.startsWith("hsl")?t:KD(t)}function Bo(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Al(Il(t[e])))}function Sz(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const co=t=>{try{return t()}catch{}},kz=(t="mui")=>FF(t);function a_(t,e,r,n){if(!e)return;e=e===!0?{}:e;const o=n==="dark"?"dark":"light";if(!r){t[n]=yz({...e,palette:{mode:o,...e==null?void 0:e.palette}});return}const{palette:a,...i}=i0({...r,palette:{mode:o,...e==null?void 0:e.palette}});return t[n]={...e,palette:a,opacity:{...pM(o),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||fM(o)},i}function Cz(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=vz,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...f}=t,h=Object.keys(r)[0],d=n||(r.light&&h!=="light"?"light":h),_=kz(a),{[d]:g,light:b,dark:w,...S}=r,k={...S};let D=g;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(D=!0),!D)throw new Error(Zo(21,d));const C=a_(k,D,f,d);b&&!k.light&&a_(k,b,void 0,"light"),w&&!k.dark&&a_(k,w,void 0,"dark");let O={defaultColorScheme:d,...C,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:_,colorSchemes:k,font:{...oz(C.typography),...C.font},spacing:Sz(f.spacing)};Object.keys(O.colorSchemes).forEach(F=>{const E=O.colorSchemes[F].palette,L=G=>{const B=G.split("-"),z=B[1],H=B[2];return _(G,E[z][H])};if(E.mode==="light"&&(oe(E.common,"background","#fff"),oe(E.common,"onBackground","#000")),E.mode==="dark"&&(oe(E.common,"background","#000"),oe(E.common,"onBackground","#fff")),xz(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){oe(E.Alert,"errorColor",Pt(E.error.light,.6)),oe(E.Alert,"infoColor",Pt(E.info.light,.6)),oe(E.Alert,"successColor",Pt(E.success.light,.6)),oe(E.Alert,"warningColor",Pt(E.warning.light,.6)),oe(E.Alert,"errorFilledBg",L("palette-error-main")),oe(E.Alert,"infoFilledBg",L("palette-info-main")),oe(E.Alert,"successFilledBg",L("palette-success-main")),oe(E.Alert,"warningFilledBg",L("palette-warning-main")),oe(E.Alert,"errorFilledColor",co(()=>E.getContrastText(E.error.main))),oe(E.Alert,"infoFilledColor",co(()=>E.getContrastText(E.info.main))),oe(E.Alert,"successFilledColor",co(()=>E.getContrastText(E.success.main))),oe(E.Alert,"warningFilledColor",co(()=>E.getContrastText(E.warning.main))),oe(E.Alert,"errorStandardBg",Rt(E.error.light,.9)),oe(E.Alert,"infoStandardBg",Rt(E.info.light,.9)),oe(E.Alert,"successStandardBg",Rt(E.success.light,.9)),oe(E.Alert,"warningStandardBg",Rt(E.warning.light,.9)),oe(E.Alert,"errorIconColor",L("palette-error-main")),oe(E.Alert,"infoIconColor",L("palette-info-main")),oe(E.Alert,"successIconColor",L("palette-success-main")),oe(E.Alert,"warningIconColor",L("palette-warning-main")),oe(E.AppBar,"defaultBg",L("palette-grey-100")),oe(E.Avatar,"defaultBg",L("palette-grey-400")),oe(E.Button,"inheritContainedBg",L("palette-grey-300")),oe(E.Button,"inheritContainedHoverBg",L("palette-grey-A100")),oe(E.Chip,"defaultBorder",L("palette-grey-400")),oe(E.Chip,"defaultAvatarColor",L("palette-grey-700")),oe(E.Chip,"defaultIconColor",L("palette-grey-700")),oe(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(E.LinearProgress,"primaryBg",Rt(E.primary.main,.62)),oe(E.LinearProgress,"secondaryBg",Rt(E.secondary.main,.62)),oe(E.LinearProgress,"errorBg",Rt(E.error.main,.62)),oe(E.LinearProgress,"infoBg",Rt(E.info.main,.62)),oe(E.LinearProgress,"successBg",Rt(E.success.main,.62)),oe(E.LinearProgress,"warningBg",Rt(E.warning.main,.62)),oe(E.Skeleton,"bg",`rgba(${L("palette-text-primaryChannel")} / 0.11)`),oe(E.Slider,"primaryTrack",Rt(E.primary.main,.62)),oe(E.Slider,"secondaryTrack",Rt(E.secondary.main,.62)),oe(E.Slider,"errorTrack",Rt(E.error.main,.62)),oe(E.Slider,"infoTrack",Rt(E.info.main,.62)),oe(E.Slider,"successTrack",Rt(E.success.main,.62)),oe(E.Slider,"warningTrack",Rt(E.warning.main,.62));const G=Jd(E.background.default,.8);oe(E.SnackbarContent,"bg",G),oe(E.SnackbarContent,"color",co(()=>E.getContrastText(G))),oe(E.SpeedDialAction,"fabHoverBg",Jd(E.background.paper,.15)),oe(E.StepConnector,"border",L("palette-grey-400")),oe(E.StepContent,"border",L("palette-grey-400")),oe(E.Switch,"defaultColor",L("palette-common-white")),oe(E.Switch,"defaultDisabledColor",L("palette-grey-100")),oe(E.Switch,"primaryDisabledColor",Rt(E.primary.main,.62)),oe(E.Switch,"secondaryDisabledColor",Rt(E.secondary.main,.62)),oe(E.Switch,"errorDisabledColor",Rt(E.error.main,.62)),oe(E.Switch,"infoDisabledColor",Rt(E.info.main,.62)),oe(E.Switch,"successDisabledColor",Rt(E.success.main,.62)),oe(E.Switch,"warningDisabledColor",Rt(E.warning.main,.62)),oe(E.TableCell,"border",Rt(Gd(E.divider,1),.88)),oe(E.Tooltip,"bg",Gd(E.grey[700],.92))}if(E.mode==="dark"){oe(E.Alert,"errorColor",Rt(E.error.light,.6)),oe(E.Alert,"infoColor",Rt(E.info.light,.6)),oe(E.Alert,"successColor",Rt(E.success.light,.6)),oe(E.Alert,"warningColor",Rt(E.warning.light,.6)),oe(E.Alert,"errorFilledBg",L("palette-error-dark")),oe(E.Alert,"infoFilledBg",L("palette-info-dark")),oe(E.Alert,"successFilledBg",L("palette-success-dark")),oe(E.Alert,"warningFilledBg",L("palette-warning-dark")),oe(E.Alert,"errorFilledColor",co(()=>E.getContrastText(E.error.dark))),oe(E.Alert,"infoFilledColor",co(()=>E.getContrastText(E.info.dark))),oe(E.Alert,"successFilledColor",co(()=>E.getContrastText(E.success.dark))),oe(E.Alert,"warningFilledColor",co(()=>E.getContrastText(E.warning.dark))),oe(E.Alert,"errorStandardBg",Pt(E.error.light,.9)),oe(E.Alert,"infoStandardBg",Pt(E.info.light,.9)),oe(E.Alert,"successStandardBg",Pt(E.success.light,.9)),oe(E.Alert,"warningStandardBg",Pt(E.warning.light,.9)),oe(E.Alert,"errorIconColor",L("palette-error-main")),oe(E.Alert,"infoIconColor",L("palette-info-main")),oe(E.Alert,"successIconColor",L("palette-success-main")),oe(E.Alert,"warningIconColor",L("palette-warning-main")),oe(E.AppBar,"defaultBg",L("palette-grey-900")),oe(E.AppBar,"darkBg",L("palette-background-paper")),oe(E.AppBar,"darkColor",L("palette-text-primary")),oe(E.Avatar,"defaultBg",L("palette-grey-600")),oe(E.Button,"inheritContainedBg",L("palette-grey-800")),oe(E.Button,"inheritContainedHoverBg",L("palette-grey-700")),oe(E.Chip,"defaultBorder",L("palette-grey-700")),oe(E.Chip,"defaultAvatarColor",L("palette-grey-300")),oe(E.Chip,"defaultIconColor",L("palette-grey-300")),oe(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(E.LinearProgress,"primaryBg",Pt(E.primary.main,.5)),oe(E.LinearProgress,"secondaryBg",Pt(E.secondary.main,.5)),oe(E.LinearProgress,"errorBg",Pt(E.error.main,.5)),oe(E.LinearProgress,"infoBg",Pt(E.info.main,.5)),oe(E.LinearProgress,"successBg",Pt(E.success.main,.5)),oe(E.LinearProgress,"warningBg",Pt(E.warning.main,.5)),oe(E.Skeleton,"bg",`rgba(${L("palette-text-primaryChannel")} / 0.13)`),oe(E.Slider,"primaryTrack",Pt(E.primary.main,.5)),oe(E.Slider,"secondaryTrack",Pt(E.secondary.main,.5)),oe(E.Slider,"errorTrack",Pt(E.error.main,.5)),oe(E.Slider,"infoTrack",Pt(E.info.main,.5)),oe(E.Slider,"successTrack",Pt(E.success.main,.5)),oe(E.Slider,"warningTrack",Pt(E.warning.main,.5));const G=Jd(E.background.default,.98);oe(E.SnackbarContent,"bg",G),oe(E.SnackbarContent,"color",co(()=>E.getContrastText(G))),oe(E.SpeedDialAction,"fabHoverBg",Jd(E.background.paper,.15)),oe(E.StepConnector,"border",L("palette-grey-600")),oe(E.StepContent,"border",L("palette-grey-600")),oe(E.Switch,"defaultColor",L("palette-grey-300")),oe(E.Switch,"defaultDisabledColor",L("palette-grey-600")),oe(E.Switch,"primaryDisabledColor",Pt(E.primary.main,.55)),oe(E.Switch,"secondaryDisabledColor",Pt(E.secondary.main,.55)),oe(E.Switch,"errorDisabledColor",Pt(E.error.main,.55)),oe(E.Switch,"infoDisabledColor",Pt(E.info.main,.55)),oe(E.Switch,"successDisabledColor",Pt(E.success.main,.55)),oe(E.Switch,"warningDisabledColor",Pt(E.warning.main,.55)),oe(E.TableCell,"border",Pt(Gd(E.divider,1),.68)),oe(E.Tooltip,"bg",Gd(E.grey[700],.92))}Bo(E.background,"default"),Bo(E.background,"paper"),Bo(E.common,"background"),Bo(E.common,"onBackground"),Bo(E,"divider"),Object.keys(E).forEach(G=>{const B=E[G];G!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&oe(E[G],"mainChannel",Al(Il(B.main))),B.light&&oe(E[G],"lightChannel",Al(Il(B.light))),B.dark&&oe(E[G],"darkChannel",Al(Il(B.dark))),B.contrastText&&oe(E[G],"contrastTextChannel",Al(Il(B.contrastText))),G==="text"&&(Bo(E[G],"primary"),Bo(E[G],"secondary")),G==="action"&&(B.active&&Bo(E[G],"active"),B.selected&&Bo(E[G],"selected")))})}),O=e.reduce((F,E)=>kr(F,E),O);const M={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:wz(O)},{vars:T,generateThemeVars:P,generateStyleSheets:j}=WF(O,M);return O.vars=T,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([F,E])=>{O[F]=E}),O.generateThemeVars=P,O.generateStyleSheets=j,O.generateSpacing=function(){return UD(f.spacing,yf(this))},O.getColorSchemeSelector=UF(l),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=i,O.unstable_sxConfig={...Su,...f==null?void 0:f.unstable_sxConfig},O.unstable_sx=function(E){return Fa({sx:E,theme:this})},O.toRuntimeSource=dM,O}function Vk(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:xb({...r===!0?{}:r.palette,mode:e})})}function ou(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...i}=t,l=a||"light",u=o==null?void 0:o[l],f={...o,...r?{[l]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return i0(t,...e);let h=r;"palette"in t||f[l]&&(f[l]!==!0?h=f[l].palette:l==="dark"&&(h={mode:"dark"}));const d=i0({...t,palette:h},...e);return d.defaultColorScheme=l,d.colorSchemes=f,d.palette.mode==="light"&&(d.colorSchemes.light={...f.light!==!0&&f.light,palette:d.palette},Vk(d,"dark",f.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:d.palette},Vk(d,"light",f.light)),d}return!r&&!("light"in f)&&l==="light"&&(f.light=!0),Cz({...i,colorSchemes:f,defaultColorScheme:l,...typeof n!="boolean"&&n},...e)}const Sb=ou();function ta(){const t=Cf(Sb);return t[Zn]||t}function Df(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Cr=t=>Df(t)&&t!=="classes",ie=GD({themeId:Zn,defaultTheme:Sb,rootShouldForwardProp:Cr});function Xk({theme:t,...e}){const r=Zn in t?t[Zn]:void 0;return R.jsx(sM,{...e,themeId:r?Zn:void 0,theme:r||t})}const Yd={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:$z,useColorScheme:EXe,getInitColorSchemeScript:TXe}=LF({themeId:Zn,theme:()=>ou({cssVariables:!0}),colorSchemeStorageKey:Yd.colorSchemeStorageKey,modeStorageKey:Yd.modeStorageKey,defaultColorScheme:{light:Yd.defaultLightColorScheme,dark:Yd.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:uM(t.palette,t.typography)};return e.unstable_sx=function(n){return Fa({sx:n,theme:this})},e}}),Ez=$z;function Gk({theme:t,...e}){return typeof t=="function"?R.jsx(Xk,{theme:t,...e}):"colorSchemes"in(Zn in t?t[Zn]:t)?R.jsx(Ez,{theme:t,...e}):R.jsx(Xk,{theme:t,...e})}function Tz(t){return R.jsx(KL,{...t,defaultTheme:Sb,themeId:Zn})}function Oz(t){return function(r){return R.jsx(Tz,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function Dz(){return gb}const Xe=NF;function ot(t){return MF(t)}function Mz(t){return tt("MuiSvgIcon",t)}Ze("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Nz=t=>{const{color:e,fontSize:r,classes:n}=t,o={root:["root",e!=="inherit"&&`color${he(e)}`,`fontSize${he(r)}`]};return nt(o,Mz,n)},Pz=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${he(r.color)}`],e[`fontSize${he(r.fontSize)}`]]}})(Xe(({theme:t})=>{var e,r,n,o,a,i,l,u,f,h,d,_,g,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(n=(r=(t.vars??t).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(l=t.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(f=t.typography)==null?void 0:f.pxToRem)==null?void 0:h.call(f,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,w])=>w&&w.main).map(([w])=>{var S,k;return{props:{color:w},style:{color:(k=(S=(t.vars??t).palette)==null?void 0:S[w])==null?void 0:k.main}}}),{props:{color:"action"},style:{color:(_=(d=(t.vars??t).palette)==null?void 0:d.action)==null?void 0:_.active}},{props:{color:"disabled"},style:{color:(b=(g=(t.vars??t).palette)==null?void 0:g.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),l0=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:d,viewBox:_="0 0 24 24",...g}=n,b=$.isValidElement(o)&&o.type==="svg",w={...n,color:i,component:l,fontSize:u,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:_,hasSvgAsChild:b},S={};h||(S.viewBox=_);const k=Nz(w);return R.jsxs(Pz,{as:l,className:Ee(k.root,a),focusable:"false",color:f,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...S,...g,...b&&o.props,ownerState:w,children:[b?o.props.children:o,d?R.jsx("title",{children:d}):null]})});l0.muiName="SvgIcon";function Ge(t,e){function r(n,o){return R.jsx(l0,{"data-testid":`${e}Icon`,ref:o,...n,children:t})}return r.muiName=l0.muiName,$.memo($.forwardRef(r))}function hM(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}function u0(t,e){return u0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},u0(t,e)}function mM(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,u0(t,e)}var _M=HO();const Kd=Ha(_M),Jk={disabled:!1},Bp=y.createContext(null);var Rz=function(e){return e.scrollTop},jl="unmounted",hs="exited",ms="entering",Fi="entered",d0="exiting",To=function(t){mM(e,t);function e(n,o){var a;a=t.call(this,n,o)||this;var i=o,l=i&&!i.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?l?(u=hs,a.appearStatus=ms):u=Fi:n.unmountOnExit||n.mountOnEnter?u=jl:u=hs,a.state={status:u},a.nextCallback=null,a}e.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===jl?{status:hs}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==ms&&i!==Fi&&(a=ms):(i===ms||i===Fi)&&(a=d0)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,l;return a=i=l=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:l}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===ms){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Kd.findDOMNode(this);i&&Rz(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hs&&this.setState({status:jl})},r.performEnter=function(o){var a=this,i=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[Kd.findDOMNode(this),l],f=u[0],h=u[1],d=this.getTimeouts(),_=l?d.appear:d.enter;if(!o&&!i||Jk.disabled){this.safeSetState({status:Fi},function(){a.props.onEntered(f)});return}this.props.onEnter(f,h),this.safeSetState({status:ms},function(){a.props.onEntering(f,h),a.onTransitionEnd(_,function(){a.safeSetState({status:Fi},function(){a.props.onEntered(f,h)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:Kd.findDOMNode(this);if(!a||Jk.disabled){this.safeSetState({status:hs},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:d0},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:hs},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Kd.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],f=u[0],h=u[1];this.props.addEndListener(f,h)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===jl)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=hM(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(Bp.Provider,{value:null},typeof i=="function"?i(o,l):y.cloneElement(y.Children.only(i),l))},e}(y.Component);To.contextType=Bp;To.propTypes={};function $i(){}To.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$i,onEntering:$i,onEntered:$i,onExit:$i,onExiting:$i,onExited:$i};To.UNMOUNTED=jl;To.EXITED=hs;To.ENTERING=ms;To.ENTERED=Fi;To.EXITING=d0;function Az(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kb(t,e){var r=function(a){return e&&$.isValidElement(a)?e(a):a},n=Object.create(null);return t&&$.Children.map(t,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function Iz(t,e){t=t||{},e=e||{};function r(h){return h in e?e[h]:t[h]}var n=Object.create(null),o=[];for(var a in t)a in e?o.length&&(n[a]=o,o=[]):o.push(a);var i,l={};for(var u in e){if(n[u])for(i=0;it.scrollTop;function Wp(t,e){const{timeout:r,easing:n,style:o={}}=t;return{duration:o.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:o.transitionDelay}}function Bz(t){return tt("MuiPaper",t)}Ze("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Wz=t=>{const{square:e,elevation:r,variant:n,classes:o}=t,a={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return nt(a,Bz,o)},Uz=ie("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(Xe(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),ku=$.forwardRef(function(e,r){var g;const n=ot({props:e,name:"MuiPaper"}),o=ta(),{className:a,component:i="div",elevation:l=1,square:u=!1,variant:f="elevation",...h}=n,d={...n,component:i,elevation:l,square:u,variant:f},_=Wz(d);return R.jsx(Uz,{as:i,ownerState:d,className:Ee(_.root,a),ref:r,...h,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":(g=o.vars.overlays)==null?void 0:g[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Nt("#fff",c0(l))}, ${Nt("#fff",c0(l))})`}},...h.style}})});function Sr(t,e){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,...l}=e,{component:u,slots:f={[t]:void 0},slotProps:h={[t]:void 0},...d}=a,_=f[t]||n,g=rM(h[t],o),{props:{component:b,...w},internalRef:S}=tM({className:r,...l,externalForwardedProps:t==="root"?d:void 0,externalSlotProps:g}),k=ar(S,g==null?void 0:g.ref,e.ref),D=t==="root"?b||u:b,C=eM(_,{...t==="root"&&!u&&!f[t]&&i,...t!=="root"&&!f[t]&&i,...w,...D&&{as:D},ref:k},o);return[_,C]}class Up{constructor(){we(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Up}static use(){const e=ZD(Up.create).current,[r,n]=$.useState(!1);return e.shouldMount=r,e.setShouldMount=n,$.useEffect(e.mountEffect,[r]),e}mount(){return this.mounted||(this.mounted=qz(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...e)})}stop(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...e)})}pulsate(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...e)})}}function Hz(){return Up.use()}function qz(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function Vz(t){const{className:e,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:u,timeout:f}=t,[h,d]=$.useState(!1),_=Ee(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),g={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ee(r.child,h&&r.childLeaving,n&&r.childPulsate);return!l&&!h&&d(!0),$.useEffect(()=>{if(!l&&u!=null){const w=setTimeout(u,f);return()=>{clearTimeout(w)}}},[u,l,f]),R.jsx("span",{className:_,style:g,children:R.jsx("span",{className:b})})}const Dn=Ze("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),p0=550,Xz=80,Gz=qa` 0% { transform: scale(0); opacity: 0.1; @@ -109,7 +109,7 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp transform: scale(1); opacity: 0.3; } -`,JF=qa` +`,Jz=qa` 0% { opacity: 1; } @@ -117,7 +117,7 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp 100% { opacity: 0; } -`,YF=qa` +`,Yz=qa` 0% { transform: scale(1); } @@ -129,14 +129,14 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp 100% { transform: scale(1); } -`,KF=ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ZF=ie(VF,{name:"MuiTouchRipple",slot:"Ripple"})` +`,Kz=ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Zz=ie(Vz,{name:"MuiTouchRipple",slot:"Ripple"})` opacity: 0; position: absolute; &.${Dn.rippleVisible} { opacity: 0.3; transform: scale(1); - animation-name: ${GF}; + animation-name: ${Gz}; animation-duration: ${p0}ms; animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; } @@ -156,7 +156,7 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp & .${Dn.childLeaving} { opacity: 0; - animation-name: ${JF}; + animation-name: ${Jz}; animation-duration: ${p0}ms; animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; } @@ -166,14 +166,14 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp /* @noflip */ left: 0px; top: 0; - animation-name: ${YF}; + animation-name: ${Yz}; animation-duration: 2500ms; animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; animation-iteration-count: infinite; animation-delay: 200ms; } -`,QF=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...l}=n,[u,f]=$.useState([]),h=$.useRef(0),d=$.useRef(null);$.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const _=$.useRef(!1),g=vs(),b=$.useRef(null),w=$.useRef(null),S=$.useCallback(O=>{const{pulsate:M,rippleX:T,rippleY:P,rippleSize:j,cb:z}=O;f(E=>[...E,R.jsx(ZF,{classes:{ripple:Ee(a.ripple,Dn.ripple),rippleVisible:Ee(a.rippleVisible,Dn.rippleVisible),ripplePulsate:Ee(a.ripplePulsate,Dn.ripplePulsate),child:Ee(a.child,Dn.child),childLeaving:Ee(a.childLeaving,Dn.childLeaving),childPulsate:Ee(a.childPulsate,Dn.childPulsate)},timeout:p0,pulsate:M,rippleX:T,rippleY:P,rippleSize:j},h.current)]),h.current+=1,d.current=z},[a]),k=$.useCallback((O={},M={},T=()=>{})=>{const{pulsate:P=!1,center:j=o||M.pulsate,fakeElement:z=!1}=M;if((O==null?void 0:O.type)==="mousedown"&&_.current){_.current=!1;return}(O==null?void 0:O.type)==="touchstart"&&(_.current=!0);const E=z?null:w.current,L=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let G,B,F;if(j||O===void 0||O.clientX===0&&O.clientY===0||!O.clientX&&!O.touches)G=Math.round(L.width/2),B=Math.round(L.height/2);else{const{clientX:H,clientY:K}=O.touches&&O.touches.length>0?O.touches[0]:O;G=Math.round(H-L.left),B=Math.round(K-L.top)}if(j)F=Math.sqrt((2*L.width**2+L.height**2)/3),F%2===0&&(F+=1);else{const H=Math.max(Math.abs((E?E.clientWidth:0)-G),G)*2+2,K=Math.max(Math.abs((E?E.clientHeight:0)-B),B)*2+2;F=Math.sqrt(H**2+K**2)}O!=null&&O.touches?b.current===null&&(b.current=()=>{S({pulsate:P,rippleX:G,rippleY:B,rippleSize:F,cb:T})},g.start(XF,()=>{b.current&&(b.current(),b.current=null)})):S({pulsate:P,rippleX:G,rippleY:B,rippleSize:F,cb:T})},[o,S,g]),D=$.useCallback(()=>{k({},{pulsate:!0})},[k]),C=$.useCallback((O,M)=>{if(g.clear(),(O==null?void 0:O.type)==="touchend"&&b.current){b.current(),b.current=null,g.start(0,()=>{C(O,M)});return}b.current=null,f(T=>T.length>0?T.slice(1):T),d.current=M},[g]);return $.useImperativeHandle(r,()=>({pulsate:D,start:k,stop:C}),[D,k,C]),R.jsx(KF,{className:Ee(Dn.root,a.root,i),ref:w,...l,children:R.jsx(Cb,{component:null,exit:!0,children:u})})});function e6(t){return tt("MuiButtonBase",t)}const t6=Ze("MuiButtonBase",["root","disabled","focusVisible"]),r6=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:o}=t,i=nt({root:["root",e&&"disabled",r&&"focusVisible"]},e6,o);return r&&n&&(i.root+=` ${n}`),i},n6=ie("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.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"},[`&.${t6.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Va=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:l,component:u="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:d=!1,focusRipple:_=!1,focusVisibleClassName:g,LinkComponent:b="a",onBlur:w,onClick:S,onContextMenu:k,onDragLeave:D,onFocus:C,onFocusVisible:O,onKeyDown:M,onKeyUp:T,onMouseDown:P,onMouseLeave:j,onMouseUp:z,onTouchEnd:E,onTouchMove:L,onTouchStart:G,tabIndex:B=0,TouchRippleProps:F,touchRippleRef:H,type:K,...ee}=n,Y=$.useRef(null),X=HF(),re=ar(X.ref,H),[I,Q]=$.useState(!1);f&&I&&Q(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{Q(!0),Y.current.focus()}}),[]);const me=X.shouldMount&&!h&&!f;$.useEffect(()=>{I&&_&&!h&&X.pulsate()},[h,_,I,X]);const pe=Wo(X,"start",P,d),ge=Wo(X,"stop",k,d),Ce=Wo(X,"stop",D,d),Re=Wo(X,"stop",z,d),Te=Wo(X,"stop",Se=>{I&&Se.preventDefault(),j&&j(Se)},d),Pe=Wo(X,"start",G,d),Oe=Wo(X,"stop",E,d),Fe=Wo(X,"stop",L,d),Me=Wo(X,"stop",Se=>{Ba(Se.target)||Q(!1),w&&w(Se)},!1),Be=Nr(Se=>{Y.current||(Y.current=Se.currentTarget),Ba(Se.target)&&(Q(!0),O&&O(Se)),C&&C(Se)}),We=()=>{const Se=Y.current;return u&&u!=="button"&&!(Se.tagName==="A"&&Se.href)},De=Nr(Se=>{_&&!Se.repeat&&I&&Se.key===" "&&X.stop(Se,()=>{X.start(Se)}),Se.target===Se.currentTarget&&We()&&Se.key===" "&&Se.preventDefault(),M&&M(Se),Se.target===Se.currentTarget&&We()&&Se.key==="Enter"&&!f&&(Se.preventDefault(),S&&S(Se))}),pt=Nr(Se=>{_&&Se.key===" "&&I&&!Se.defaultPrevented&&X.stop(Se,()=>{X.pulsate(Se)}),T&&T(Se),S&&Se.target===Se.currentTarget&&We()&&Se.key===" "&&!Se.defaultPrevented&&S(Se)});let ce=u;ce==="button"&&(ee.href||ee.to)&&(ce=b);const qe={};ce==="button"?(qe.type=K===void 0?"button":K,qe.disabled=f):(!ee.href&&!ee.to&&(qe.role="button"),f&&(qe["aria-disabled"]=f));const st=ar(r,Y),rt={...n,centerRipple:a,component:u,disabled:f,disableRipple:h,disableTouchRipple:d,focusRipple:_,tabIndex:B,focusVisible:I},Je=r6(rt);return R.jsxs(n6,{as:ce,className:Ee(Je.root,l),ownerState:rt,onBlur:Me,onClick:S,onContextMenu:ge,onFocus:Be,onKeyDown:De,onKeyUp:pt,onMouseDown:pe,onMouseLeave:Te,onMouseUp:Re,onDragLeave:Ce,onTouchEnd:Oe,onTouchMove:Fe,onTouchStart:Pe,ref:st,tabIndex:f?-1:B,type:K,...qe,...ee,children:[i,me?R.jsx(QF,{ref:re,center:a,...F}):null]})});function Wo(t,e,r,n=!1){return Nr(o=>(r&&r(o),n||t[e](o),!0))}function o6(t){return typeof t.main=="string"}function a6(t,e=[]){if(!o6(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function Jt(t=[]){return([,e])=>e&&a6(e,t)}function s6(t){return tt("MuiIconButton",t)}const i6=Ze("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),c6=t=>{const{classes:e,disabled:r,color:n,edge:o,size:a}=t,i={root:["root",r&&"disabled",n!=="default"&&`color${he(n)}`,o&&`edge${he(o)}`,`size${he(a)}`]};return nt(i,s6,e)},l6=ie(Va,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="default"&&e[`color${he(r.color)}`],r.edge&&e[`edge${he(r.edge)}`],e[`size${he(r.size)}`]]}})(Xe(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Xe(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${i6.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}}))),nr=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:l="default",disabled:u=!1,disableFocusRipple:f=!1,size:h="medium",...d}=n,_={...n,edge:o,color:l,disabled:u,disableFocusRipple:f,size:h},g=c6(_);return R.jsx(l6,{className:Ee(g.root,i),centerRipple:!0,focusRipple:!f,disabled:u,ref:r,...d,ownerState:_,children:a})});function u6(t){return tt("MuiTypography",t)}const Yk=Ze("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),d6={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},p6=DF(),f6=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=t,l={root:["root",a,t.align!=="inherit"&&`align${he(e)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return nt(l,u6,i)},h6=ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${he(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(Xe(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(t.palette).filter(Jt()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${he(r)}`},style:{color:(t.vars||t).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Kk={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bo=$.forwardRef(function(e,r){const{color:n,...o}=ot({props:e,name:"MuiTypography"}),a=!d6[n],i=p6({...o,...a&&{color:n}}),{align:l="inherit",className:u,component:f,gutterBottom:h=!1,noWrap:d=!1,paragraph:_=!1,variant:g="body1",variantMapping:b=Kk,...w}=i,S={...i,align:l,color:n,className:u,component:f,gutterBottom:h,noWrap:d,paragraph:_,variant:g,variantMapping:b},k=f||(_?"p":b[g]||Kk[g])||"span",D=f6(S);return R.jsx(h6,{as:k,ref:r,className:Ee(D.root,u),...w,ownerState:S,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...w.style}})});function m6(t){return tt("MuiAppBar",t)}Ze("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const _6=t=>{const{color:e,position:r,classes:n}=t,o={root:["root",`color${he(e)}`,`position${he(r)}`]};return nt(o,m6,n)},Zk=(t,e)=>t?`${t==null?void 0:t.replace(")","")}, ${e})`:e,g6=ie(ku,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${he(r.position)}`],e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).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":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(Jt(["contrastText"])).map(([e])=>({props:{color:e},style:{"--AppBar-background":(t.vars??t).palette[e].main,"--AppBar-color":(t.vars??t).palette[e].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)",...t.applyStyles("dark",{backgroundColor:t.vars?Zk(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?Zk(t.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)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),yM=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:l="fixed",...u}=n,f={...n,color:a,position:l,enableColorOnDark:i},h=_6(f);return R.jsx(g6,{square:!0,component:"header",ownerState:f,elevation:4,className:Ee(h.root,o,l==="fixed"&&"mui-fixed"),ref:r,...u})});var on="top",jn="bottom",Ln="right",an="left",$b="auto",Cu=[on,jn,Ln,an],xc="start",au="end",y6="clippingParents",vM="viewport",bl="popper",v6="reference",Qk=Cu.reduce(function(t,e){return t.concat([e+"-"+xc,e+"-"+au])},[]),bM=[].concat(Cu,[$b]).reduce(function(t,e){return t.concat([e,e+"-"+xc,e+"-"+au])},[]),b6="beforeRead",w6="read",x6="afterRead",S6="beforeMain",k6="main",C6="afterMain",$6="beforeWrite",E6="write",T6="afterWrite",O6=[b6,w6,x6,S6,k6,C6,$6,E6,T6];function $o(t){return t?(t.nodeName||"").toLowerCase():null}function vn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ps(t){var e=vn(t).Element;return t instanceof e||t instanceof Element}function In(t){var e=vn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Eb(t){if(typeof ShadowRoot>"u")return!1;var e=vn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function D6(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},a=e.elements[r];!In(a)||!$o(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var l=o[i];l===!1?a.removeAttribute(i):a.setAttribute(i,l===!0?"":l)}))})}function M6(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],a=e.attributes[n]||{},i=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),l=i.reduce(function(u,f){return u[f]="",u},{});!In(o)||!$o(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const N6={name:"applyStyles",enabled:!0,phase:"write",fn:D6,effect:M6,requires:["computeStyles"]};function So(t){return t.split("-")[0]}var Ss=Math.max,Hp=Math.min,Sc=Math.round;function f0(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function wM(){return!/^((?!chrome|android).)*safari/i.test(f0())}function kc(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,a=1;e&&In(t)&&(o=t.offsetWidth>0&&Sc(n.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Sc(n.height)/t.offsetHeight||1);var i=Ps(t)?vn(t):window,l=i.visualViewport,u=!wM()&&r,f=(n.left+(u&&l?l.offsetLeft:0))/o,h=(n.top+(u&&l?l.offsetTop:0))/a,d=n.width/o,_=n.height/a;return{width:d,height:_,top:h,right:f+d,bottom:h+_,left:f,x:f,y:h}}function Tb(t){var e=kc(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function xM(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Eb(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Qo(t){return vn(t).getComputedStyle(t)}function P6(t){return["table","td","th"].indexOf($o(t))>=0}function Xa(t){return((Ps(t)?t.ownerDocument:t.document)||window.document).documentElement}function Mf(t){return $o(t)==="html"?t:t.assignedSlot||t.parentNode||(Eb(t)?t.host:null)||Xa(t)}function eC(t){return!In(t)||Qo(t).position==="fixed"?null:t.offsetParent}function R6(t){var e=/firefox/i.test(f0()),r=/Trident/i.test(f0());if(r&&In(t)){var n=Qo(t);if(n.position==="fixed")return null}var o=Mf(t);for(Eb(o)&&(o=o.host);In(o)&&["html","body"].indexOf($o(o))<0;){var a=Qo(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function $u(t){for(var e=vn(t),r=eC(t);r&&P6(r)&&Qo(r).position==="static";)r=eC(r);return r&&($o(r)==="html"||$o(r)==="body"&&Qo(r).position==="static")?e:r||R6(t)||e}function Ob(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Vl(t,e,r){return Ss(t,Hp(e,r))}function A6(t,e,r){var n=Vl(t,e,r);return n>r?r:n}function SM(){return{top:0,right:0,bottom:0,left:0}}function kM(t){return Object.assign({},SM(),t)}function CM(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var I6=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,kM(typeof e!="number"?e:CM(e,Cu))};function j6(t){var e,r=t.state,n=t.name,o=t.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,l=So(r.placement),u=Ob(l),f=[an,Ln].indexOf(l)>=0,h=f?"height":"width";if(!(!a||!i)){var d=I6(o.padding,r),_=Tb(a),g=u==="y"?on:an,b=u==="y"?jn:Ln,w=r.rects.reference[h]+r.rects.reference[u]-i[u]-r.rects.popper[h],S=i[u]-r.rects.reference[u],k=$u(a),D=k?u==="y"?k.clientHeight||0:k.clientWidth||0:0,C=w/2-S/2,O=d[g],M=D-_[h]-d[b],T=D/2-_[h]/2+C,P=Vl(O,T,M),j=u;r.modifiersData[n]=(e={},e[j]=P,e.centerOffset=P-T,e)}}function L6(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||xM(e.elements.popper,o)&&(e.elements.arrow=o))}const z6={name:"arrow",enabled:!0,phase:"main",fn:j6,effect:L6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Cc(t){return t.split("-")[1]}var F6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function B6(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:Sc(r*o)/o||0,y:Sc(n*o)/o||0}}function tC(t){var e,r=t.popper,n=t.popperRect,o=t.placement,a=t.variation,i=t.offsets,l=t.position,u=t.gpuAcceleration,f=t.adaptive,h=t.roundOffsets,d=t.isFixed,_=i.x,g=_===void 0?0:_,b=i.y,w=b===void 0?0:b,S=typeof h=="function"?h({x:g,y:w}):{x:g,y:w};g=S.x,w=S.y;var k=i.hasOwnProperty("x"),D=i.hasOwnProperty("y"),C=an,O=on,M=window;if(f){var T=$u(r),P="clientHeight",j="clientWidth";if(T===vn(r)&&(T=Xa(r),Qo(T).position!=="static"&&l==="absolute"&&(P="scrollHeight",j="scrollWidth")),T=T,o===on||(o===an||o===Ln)&&a===au){O=jn;var z=d&&T===M&&M.visualViewport?M.visualViewport.height:T[P];w-=z-n.height,w*=u?1:-1}if(o===an||(o===on||o===jn)&&a===au){C=Ln;var E=d&&T===M&&M.visualViewport?M.visualViewport.width:T[j];g-=E-n.width,g*=u?1:-1}}var L=Object.assign({position:l},f&&F6),G=h===!0?B6({x:g,y:w},vn(r)):{x:g,y:w};if(g=G.x,w=G.y,u){var B;return Object.assign({},L,(B={},B[O]=D?"0":"",B[C]=k?"0":"",B.transform=(M.devicePixelRatio||1)<=1?"translate("+g+"px, "+w+"px)":"translate3d("+g+"px, "+w+"px, 0)",B))}return Object.assign({},L,(e={},e[O]=D?w+"px":"",e[C]=k?g+"px":"",e.transform="",e))}function W6(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,l=r.roundOffsets,u=l===void 0?!0:l,f={placement:So(e.placement),variation:Cc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,tC(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,tC(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const U6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:W6,data:{}};var Zd={passive:!0};function H6(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,l=i===void 0?!0:i,u=vn(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&f.forEach(function(h){h.addEventListener("scroll",r.update,Zd)}),l&&u.addEventListener("resize",r.update,Zd),function(){a&&f.forEach(function(h){h.removeEventListener("scroll",r.update,Zd)}),l&&u.removeEventListener("resize",r.update,Zd)}}const q6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:H6,data:{}};var V6={left:"right",right:"left",bottom:"top",top:"bottom"};function Ep(t){return t.replace(/left|right|bottom|top/g,function(e){return V6[e]})}var X6={start:"end",end:"start"};function rC(t){return t.replace(/start|end/g,function(e){return X6[e]})}function Db(t){var e=vn(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Mb(t){return kc(Xa(t)).left+Db(t).scrollLeft}function G6(t,e){var r=vn(t),n=Xa(t),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;var f=wM();(f||!f&&e==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l+Mb(t),y:u}}function J6(t){var e,r=Xa(t),n=Db(t),o=(e=t.ownerDocument)==null?void 0:e.body,a=Ss(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Ss(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+Mb(t),u=-n.scrollTop;return Qo(o||r).direction==="rtl"&&(l+=Ss(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:u}}function Nb(t){var e=Qo(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function $M(t){return["html","body","#document"].indexOf($o(t))>=0?t.ownerDocument.body:In(t)&&Nb(t)?t:$M(Mf(t))}function Xl(t,e){var r;e===void 0&&(e=[]);var n=$M(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),a=vn(n),i=o?[a].concat(a.visualViewport||[],Nb(n)?n:[]):n,l=e.concat(i);return o?l:l.concat(Xl(Mf(i)))}function h0(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Y6(t,e){var r=kc(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function nC(t,e,r){return e===vM?h0(G6(t,r)):Ps(e)?Y6(e,r):h0(J6(Xa(t)))}function K6(t){var e=Xl(Mf(t)),r=["absolute","fixed"].indexOf(Qo(t).position)>=0,n=r&&In(t)?$u(t):t;return Ps(n)?e.filter(function(o){return Ps(o)&&xM(o,n)&&$o(o)!=="body"}):[]}function Z6(t,e,r,n){var o=e==="clippingParents"?K6(t):[].concat(e),a=[].concat(o,[r]),i=a[0],l=a.reduce(function(u,f){var h=nC(t,f,n);return u.top=Ss(h.top,u.top),u.right=Hp(h.right,u.right),u.bottom=Hp(h.bottom,u.bottom),u.left=Ss(h.left,u.left),u},nC(t,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function EM(t){var e=t.reference,r=t.element,n=t.placement,o=n?So(n):null,a=n?Cc(n):null,i=e.x+e.width/2-r.width/2,l=e.y+e.height/2-r.height/2,u;switch(o){case on:u={x:i,y:e.y-r.height};break;case jn:u={x:i,y:e.y+e.height};break;case Ln:u={x:e.x+e.width,y:l};break;case an:u={x:e.x-r.width,y:l};break;default:u={x:e.x,y:e.y}}var f=o?Ob(o):null;if(f!=null){var h=f==="y"?"height":"width";switch(a){case xc:u[f]=u[f]-(e[h]/2-r[h]/2);break;case au:u[f]=u[f]+(e[h]/2-r[h]/2);break}}return u}function su(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,a=r.strategy,i=a===void 0?t.strategy:a,l=r.boundary,u=l===void 0?y6:l,f=r.rootBoundary,h=f===void 0?vM:f,d=r.elementContext,_=d===void 0?bl:d,g=r.altBoundary,b=g===void 0?!1:g,w=r.padding,S=w===void 0?0:w,k=kM(typeof S!="number"?S:CM(S,Cu)),D=_===bl?v6:bl,C=t.rects.popper,O=t.elements[b?D:_],M=Z6(Ps(O)?O:O.contextElement||Xa(t.elements.popper),u,h,i),T=kc(t.elements.reference),P=EM({reference:T,element:C,strategy:"absolute",placement:o}),j=h0(Object.assign({},C,P)),z=_===bl?j:T,E={top:M.top-z.top+k.top,bottom:z.bottom-M.bottom+k.bottom,left:M.left-z.left+k.left,right:z.right-M.right+k.right},L=t.modifiersData.offset;if(_===bl&&L){var G=L[o];Object.keys(E).forEach(function(B){var F=[Ln,jn].indexOf(B)>=0?1:-1,H=[on,jn].indexOf(B)>=0?"y":"x";E[B]+=G[H]*F})}return E}function Q6(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,l=r.flipVariations,u=r.allowedAutoPlacements,f=u===void 0?bM:u,h=Cc(n),d=h?l?Qk:Qk.filter(function(b){return Cc(b)===h}):Cu,_=d.filter(function(b){return f.indexOf(b)>=0});_.length===0&&(_=d);var g=_.reduce(function(b,w){return b[w]=su(t,{placement:w,boundary:o,rootBoundary:a,padding:i})[So(w)],b},{});return Object.keys(g).sort(function(b,w){return g[b]-g[w]})}function e8(t){if(So(t)===$b)return[];var e=Ep(t);return[rC(t),e,rC(e)]}function t8(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!0:i,u=r.fallbackPlacements,f=r.padding,h=r.boundary,d=r.rootBoundary,_=r.altBoundary,g=r.flipVariations,b=g===void 0?!0:g,w=r.allowedAutoPlacements,S=e.options.placement,k=So(S),D=k===S,C=u||(D||!b?[Ep(S)]:e8(S)),O=[S].concat(C).reduce(function(pe,ge){return pe.concat(So(ge)===$b?Q6(e,{placement:ge,boundary:h,rootBoundary:d,padding:f,flipVariations:b,allowedAutoPlacements:w}):ge)},[]),M=e.rects.reference,T=e.rects.popper,P=new Map,j=!0,z=O[0],E=0;E=0,H=F?"width":"height",K=su(e,{placement:L,boundary:h,rootBoundary:d,altBoundary:_,padding:f}),ee=F?B?Ln:an:B?jn:on;M[H]>T[H]&&(ee=Ep(ee));var Y=Ep(ee),X=[];if(a&&X.push(K[G]<=0),l&&X.push(K[ee]<=0,K[Y]<=0),X.every(function(pe){return pe})){z=L,j=!1;break}P.set(L,X)}if(j)for(var re=b?3:1,I=function(ge){var Ce=O.find(function(Re){var Te=P.get(Re);if(Te)return Te.slice(0,ge).every(function(Pe){return Pe})});if(Ce)return z=Ce,"break"},Q=re;Q>0;Q--){var me=I(Q);if(me==="break")break}e.placement!==z&&(e.modifiersData[n]._skip=!0,e.placement=z,e.reset=!0)}}const r8={name:"flip",enabled:!0,phase:"main",fn:t8,requiresIfExists:["offset"],data:{_skip:!1}};function oC(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function aC(t){return[on,Ln,jn,an].some(function(e){return t[e]>=0})}function n8(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,i=su(e,{elementContext:"reference"}),l=su(e,{altBoundary:!0}),u=oC(i,n),f=oC(l,o,a),h=aC(u),d=aC(f);e.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}const o8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:n8};function a8(t,e,r){var n=So(t),o=[an,on].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[an,Ln].indexOf(n)>=0?{x:l,y:i}:{x:i,y:l}}function s8(t){var e=t.state,r=t.options,n=t.name,o=r.offset,a=o===void 0?[0,0]:o,i=bM.reduce(function(h,d){return h[d]=a8(d,e.rects,a),h},{}),l=i[e.placement],u=l.x,f=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=i}const i8={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:s8};function c8(t){var e=t.state,r=t.name;e.modifiersData[r]=EM({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const l8={name:"popperOffsets",enabled:!0,phase:"read",fn:c8,data:{}};function u8(t){return t==="x"?"y":"x"}function d8(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!1:i,u=r.boundary,f=r.rootBoundary,h=r.altBoundary,d=r.padding,_=r.tether,g=_===void 0?!0:_,b=r.tetherOffset,w=b===void 0?0:b,S=su(e,{boundary:u,rootBoundary:f,padding:d,altBoundary:h}),k=So(e.placement),D=Cc(e.placement),C=!D,O=Ob(k),M=u8(O),T=e.modifiersData.popperOffsets,P=e.rects.reference,j=e.rects.popper,z=typeof w=="function"?w(Object.assign({},e.rects,{placement:e.placement})):w,E=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,G={x:0,y:0};if(T){if(a){var B,F=O==="y"?on:an,H=O==="y"?jn:Ln,K=O==="y"?"height":"width",ee=T[O],Y=ee+S[F],X=ee-S[H],re=g?-j[K]/2:0,I=D===xc?P[K]:j[K],Q=D===xc?-j[K]:-P[K],me=e.elements.arrow,pe=g&&me?Tb(me):{width:0,height:0},ge=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:SM(),Ce=ge[F],Re=ge[H],Te=Vl(0,P[K],pe[K]),Pe=C?P[K]/2-re-Te-Ce-E.mainAxis:I-Te-Ce-E.mainAxis,Oe=C?-P[K]/2+re+Te+Re+E.mainAxis:Q+Te+Re+E.mainAxis,Fe=e.elements.arrow&&$u(e.elements.arrow),Me=Fe?O==="y"?Fe.clientTop||0:Fe.clientLeft||0:0,Be=(B=L==null?void 0:L[O])!=null?B:0,We=ee+Pe-Be-Me,De=ee+Oe-Be,pt=Vl(g?Hp(Y,We):Y,ee,g?Ss(X,De):X);T[O]=pt,G[O]=pt-ee}if(l){var ce,qe=O==="x"?on:an,st=O==="x"?jn:Ln,rt=T[M],Je=M==="y"?"height":"width",Se=rt+S[qe],ut=rt-S[st],q=[on,an].indexOf(k)!==-1,ne=(ce=L==null?void 0:L[M])!=null?ce:0,ye=q?Se:rt-P[Je]-j[Je]-ne+E.altAxis,we=q?rt+P[Je]+j[Je]-ne-E.altAxis:ut,ke=g&&q?A6(ye,rt,we):Vl(g?ye:Se,rt,g?we:ut);T[M]=ke,G[M]=ke-rt}e.modifiersData[n]=G}}const p8={name:"preventOverflow",enabled:!0,phase:"main",fn:d8,requiresIfExists:["offset"]};function f8(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function h8(t){return t===vn(t)||!In(t)?Db(t):f8(t)}function m8(t){var e=t.getBoundingClientRect(),r=Sc(e.width)/t.offsetWidth||1,n=Sc(e.height)/t.offsetHeight||1;return r!==1||n!==1}function _8(t,e,r){r===void 0&&(r=!1);var n=In(e),o=In(e)&&m8(e),a=Xa(e),i=kc(t,o,r),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&(($o(e)!=="body"||Nb(a))&&(l=h8(e)),In(e)?(u=kc(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Mb(a))),{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}function g8(t){var e=new Map,r=new Set,n=[];t.forEach(function(a){e.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(l){if(!r.has(l)){var u=e.get(l);u&&o(u)}}),n.push(a)}return t.forEach(function(a){r.has(a.name)||o(a)}),n}function y8(t){var e=g8(t);return O6.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function v8(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function b8(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var sC={placement:"bottom",modifiers:[],strategy:"absolute"};function iC(){for(var t=arguments.length,e=new Array(t),r=0;r{a||l(k8(o)||document.body)},[o,a]),yn(()=>{if(i&&!a)return a0(r,i),()=>{a0(r,null)}},[r,i,a]),a){if($.isValidElement(n)){const f={ref:u};return $.cloneElement(n,f)}return n}return i&&_M.createPortal(n,i)});function C8(t){return tt("MuiPopper",t)}Ze("MuiPopper",["root"]);function $8(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function m0(t){return typeof t=="function"?t():t}function E8(t){return t.nodeType!==void 0}const T8=t=>{const{classes:e}=t;return nt({root:["root"]},C8,e)},O8={},D8=$.forwardRef(function(e,r){const{anchorEl:n,children:o,direction:a,disablePortal:i,modifiers:l,open:u,placement:f,popperOptions:h,popperRef:d,slotProps:_={},slots:g={},TransitionProps:b,ownerState:w,...S}=e,k=$.useRef(null),D=ar(k,r),C=$.useRef(null),O=ar(C,d),M=$.useRef(O);yn(()=>{M.current=O},[O]),$.useImperativeHandle(d,()=>C.current,[]);const T=$8(f,a),[P,j]=$.useState(T),[z,E]=$.useState(m0(n));$.useEffect(()=>{C.current&&C.current.forceUpdate()}),$.useEffect(()=>{n&&E(m0(n))},[n]),yn(()=>{if(!z||!u)return;const H=Y=>{j(Y.placement)};let K=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{H(Y)}}];l!=null&&(K=K.concat(l)),h&&h.modifiers!=null&&(K=K.concat(h.modifiers));const ee=S8(z,k.current,{placement:T,...h,modifiers:K});return M.current(ee),()=>{ee.destroy(),M.current(null)}},[z,i,l,u,h,T]);const L={placement:P};b!==null&&(L.TransitionProps=b);const G=T8(e),B=g.root??"div",F=Dr({elementType:B,externalSlotProps:_.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:D},ownerState:e,className:G.root});return R.jsx(B,{...F,children:typeof o=="function"?o(L):o})}),M8=$.forwardRef(function(e,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:f,open:h,placement:d="bottom",popperOptions:_=O8,popperRef:g,style:b,transition:w=!1,slotProps:S={},slots:k={},...D}=e,[C,O]=$.useState(!0),M=()=>{O(!1)},T=()=>{O(!0)};if(!u&&!h&&(!w||C))return null;let P;if(a)P=a;else if(n){const E=m0(n);P=E&&E8(E)?cr(E).body:cr(null).body}const j=!h&&u&&(!w||C)?"none":void 0,z=w?{in:h,onEnter:M,onExited:T}:void 0;return R.jsx(TM,{disablePortal:l,container:P,children:R.jsx(D8,{anchorEl:n,direction:i,disablePortal:l,modifiers:f,ref:r,open:w?!C:h,placement:d,popperOptions:_,popperRef:g,slotProps:S,slots:k,...D,style:{position:"fixed",top:0,left:0,display:j,...b},TransitionProps:z,children:o})})}),N8=ie(M8,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),OM=$.forwardRef(function(e,r){const n=Us(),o=ot({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:u,container:f,disablePortal:h,keepMounted:d,modifiers:_,open:g,placement:b,popperOptions:w,popperRef:S,transition:k,slots:D,slotProps:C,...O}=o,M=(D==null?void 0:D.root)??(l==null?void 0:l.Root),T={anchorEl:a,container:f,disablePortal:h,keepMounted:d,modifiers:_,open:g,placement:b,popperOptions:w,popperRef:S,transition:k,...O};return R.jsx(N8,{as:i,direction:n?"rtl":"ltr",slots:{root:M},slotProps:C??u,...T,ref:r})});function Qd(t){return parseInt(t,10)||0}const P8={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function R8(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflowing}const A8=$.forwardRef(function(e,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:l,...u}=e,{current:f}=$.useRef(l!=null),h=$.useRef(null),d=ar(r,h),_=$.useRef(null),g=$.useRef(null),b=$.useCallback(()=>{const k=h.current,C=eo(k).getComputedStyle(k);if(C.width==="0px")return{outerHeightStyle:0,overflowing:!1};const O=g.current;O.style.width=C.width,O.value=k.value||e.placeholder||"x",O.value.slice(-1)===` -`&&(O.value+=" ");const M=C.boxSizing,T=Qd(C.paddingBottom)+Qd(C.paddingTop),P=Qd(C.borderBottomWidth)+Qd(C.borderTopWidth),j=O.scrollHeight;O.value="x";const z=O.scrollHeight;let E=j;a&&(E=Math.max(Number(a)*z,E)),o&&(E=Math.min(Number(o)*z,E)),E=Math.max(E,z);const L=E+(M==="border-box"?T+P:0),G=Math.abs(E-j)<=1;return{outerHeightStyle:L,overflowing:G}},[o,a,e.placeholder]),w=$.useCallback(()=>{const k=b();if(R8(k))return;const D=k.outerHeightStyle,C=h.current;_.current!==D&&(_.current=D,C.style.height=`${D}px`),C.style.overflow=k.overflowing?"hidden":""},[b]);yn(()=>{const k=()=>{w()};let D;const C=Ef(k),O=h.current,M=eo(O);M.addEventListener("resize",C);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(k),T.observe(O)),()=>{C.clear(),cancelAnimationFrame(D),M.removeEventListener("resize",C),T&&T.disconnect()}},[b,w]),yn(()=>{w()});const S=k=>{f||w(),n&&n(k)};return R.jsxs($.Fragment,{children:[R.jsx("textarea",{value:l,onChange:S,ref:d,rows:a,style:i,...u}),R.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:g,tabIndex:-1,style:{...P8.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function ks(t){return typeof t=="string"}function Ga({props:t,states:e,muiFormControl:r}){return e.reduce((n,o)=>(n[o]=t[o],r&&typeof t[o]>"u"&&(n[o]=r[o]),n),{})}const Pb=$.createContext(void 0);function Oo(){return $.useContext(Pb)}function cC(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function qp(t,e=!1){return t&&(cC(t.value)&&t.value!==""||e&&cC(t.defaultValue)&&t.defaultValue!=="")}function I8(t){return t.startAdornment}function j8(t){return tt("MuiInputBase",t)}const $c=Ze("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var lC;const Nf=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${he(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},Pf=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},L8=t=>{const{classes:e,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:u,hiddenLabel:f,multiline:h,readOnly:d,size:_,startAdornment:g,type:b}=t,w={root:["root",`color${he(r)}`,n&&"disabled",o&&"error",u&&"fullWidth",i&&"focused",l&&"formControl",_&&_!=="medium"&&`size${he(_)}`,h&&"multiline",g&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",b==="search"&&"inputTypeSearch",h&&"inputMultiline",_==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return nt(w,j8,e)},Rf=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Nf})(Xe(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${$c.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Af=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Pf})(Xe(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${$c.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${$c.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.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:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),uC=OF({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Rb=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,color:u,components:f={},componentsProps:h={},defaultValue:d,disabled:_,disableInjectingGlobalStyles:g,endAdornment:b,error:w,fullWidth:S=!1,id:k,inputComponent:D="input",inputProps:C={},inputRef:O,margin:M,maxRows:T,minRows:P,multiline:j=!1,name:z,onBlur:E,onChange:L,onClick:G,onFocus:B,onKeyDown:F,onKeyUp:H,placeholder:K,readOnly:ee,renderSuffix:Y,rows:X,size:re,slotProps:I={},slots:Q={},startAdornment:me,type:pe="text",value:ge,...Ce}=n,Re=C.value!=null?C.value:ge,{current:Te}=$.useRef(Re!=null),Pe=$.useRef(),Oe=$.useCallback($e=>{},[]),Fe=ar(Pe,O,C.ref,Oe),[Me,Be]=$.useState(!1),We=Oo(),De=Ga({props:n,muiFormControl:We,states:["color","disabled","error","hiddenLabel","size","required","filled"]});De.focused=We?We.focused:Me,$.useEffect(()=>{!We&&_&&Me&&(Be(!1),E&&E())},[We,_,Me,E]);const pt=We&&We.onFilled,ce=We&&We.onEmpty,qe=$.useCallback($e=>{qp($e)?pt&&pt():ce&&ce()},[pt,ce]);yn(()=>{Te&&qe({value:Re})},[Re,qe,Te]);const st=$e=>{B&&B($e),C.onFocus&&C.onFocus($e),We&&We.onFocus?We.onFocus($e):Be(!0)},rt=$e=>{E&&E($e),C.onBlur&&C.onBlur($e),We&&We.onBlur?We.onBlur($e):Be(!1)},Je=($e,...Ye)=>{if(!Te){const lt=$e.target||Pe.current;if(lt==null)throw new Error(Zo(1));qe({value:lt.value})}C.onChange&&C.onChange($e,...Ye),L&&L($e,...Ye)};$.useEffect(()=>{qe(Pe.current)},[]);const Se=$e=>{Pe.current&&$e.currentTarget===$e.target&&Pe.current.focus(),G&&G($e)};let ut=D,q=C;j&&ut==="input"&&(X?q={type:void 0,minRows:X,maxRows:X,...q}:q={type:void 0,maxRows:T,minRows:P,...q},ut=A8);const ne=$e=>{qe($e.animationName==="mui-auto-fill-cancel"?Pe.current:{value:"x"})};$.useEffect(()=>{We&&We.setAdornedStart(!!me)},[We,me]);const ye={...n,color:De.color||"primary",disabled:De.disabled,endAdornment:b,error:De.error,focused:De.focused,formControl:We,fullWidth:S,hiddenLabel:De.hiddenLabel,multiline:j,size:De.size,startAdornment:me,type:pe},we=L8(ye),ke=Q.root||f.Root||Rf,ve=I.root||h.root||{},Ve=Q.input||f.Input||Af;return q={...q,...I.input??h.input},R.jsxs($.Fragment,{children:[!g&&typeof uC=="function"&&(lC||(lC=R.jsx(uC,{}))),R.jsxs(ke,{...ve,ref:r,onClick:Se,...Ce,...!ks(ke)&&{ownerState:{...ye,...ve.ownerState}},className:Ee(we.root,ve.className,l,ee&&"MuiInputBase-readOnly"),children:[me,R.jsx(Pb.Provider,{value:null,children:R.jsx(Ve,{"aria-invalid":De.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:d,disabled:De.disabled,id:k,onAnimationStart:ne,name:z,placeholder:K,readOnly:ee,required:De.required,rows:X,value:Re,onKeyDown:F,onKeyUp:H,type:pe,...q,...!ks(Ve)&&{as:ut,ownerState:{...ye,...q.ownerState}},ref:Fe,className:Ee(we.input,q.className,ee&&"MuiInputBase-readOnly"),onBlur:rt,onChange:Je,onFocus:st})}),b,Y?Y({...De,startAdornment:me}):null]})]})});function z8(t){return tt("MuiInput",t)}const wl={...$c,...Ze("MuiInput",["root","underline","input"])};function F8(t){return tt("MuiOutlinedInput",t)}const lo={...$c,...Ze("MuiOutlinedInput",["root","notchedOutline","input"])};function B8(t){return tt("MuiFilledInput",t)}const ls={...$c,...Ze("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},W8=Ge(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),U8={entering:{opacity:1},entered:{opacity:1}},DM=$.forwardRef(function(e,r){const n=ta(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,easing:u,in:f,onEnter:h,onEntered:d,onEntering:_,onExit:g,onExited:b,onExiting:w,style:S,timeout:k=o,TransitionComponent:D=To,...C}=e,O=$.useRef(null),M=ar(O,Ws(l),r),T=F=>H=>{if(F){const K=O.current;H===void 0?F(K):F(K,H)}},P=T(_),j=T((F,H)=>{gM(F);const K=Wp({style:S,timeout:k,easing:u},{mode:"enter"});F.style.webkitTransition=n.transitions.create("opacity",K),F.style.transition=n.transitions.create("opacity",K),h&&h(F,H)}),z=T(d),E=T(w),L=T(F=>{const H=Wp({style:S,timeout:k,easing:u},{mode:"exit"});F.style.webkitTransition=n.transitions.create("opacity",H),F.style.transition=n.transitions.create("opacity",H),g&&g(F)}),G=T(b),B=F=>{a&&a(O.current,F)};return R.jsx(D,{appear:i,in:f,nodeRef:O,onEnter:j,onEntered:z,onEntering:P,onExit:L,onExited:G,onExiting:E,addEndListener:B,timeout:k,...C,children:(F,{ownerState:H,...K})=>$.cloneElement(l,{style:{opacity:0,visibility:F==="exited"&&!f?"hidden":void 0,...U8[F],...S,...l.props.style},ref:M,...K})})});function H8(t){return tt("MuiBackdrop",t)}Ze("MuiBackdrop",["root","invisible"]);const q8=t=>{const{classes:e,invisible:r}=t;return nt({root:["root",r&&"invisible"]},H8,e)},V8=ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),MM=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiBackdrop"}),{children:o,className:a,component:i="div",invisible:l=!1,open:u,components:f={},componentsProps:h={},slotProps:d={},slots:_={},TransitionComponent:g,transitionDuration:b,...w}=n,S={...n,component:i,invisible:l},k=q8(S),D={transition:g,root:f.Root,..._},C={...h,...d},O={slots:D,slotProps:C},[M,T]=Sr("root",{elementType:V8,externalForwardedProps:O,className:Ee(k.root,a),ownerState:S}),[P,j]=Sr("transition",{elementType:DM,externalForwardedProps:O,ownerState:S});return R.jsx(P,{in:u,timeout:b,...w,...j,children:R.jsx(M,{"aria-hidden":!0,...T,classes:k,ref:r,children:o})})}),X8=Ze("MuiBox",["root"]),G8=ou(),wt=ez({themeId:Zn,defaultTheme:G8,defaultClassName:X8.root,generateClassName:HD.generate}),J8=Ge(R.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"),Y8=ie(Va)(Xe(({theme:t})=>({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`,...t.palette.mode==="light"?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...t.palette.mode==="light"?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}},"&:active":{boxShadow:t.shadows[0],...t.palette.mode==="light"?{backgroundColor:Fp(t.palette.grey[200],.12)}:{backgroundColor:Fp(t.palette.grey[600],.12)}}}))),K8=ie(J8)({width:24,height:16});function Z8(t){const{slots:e={},slotProps:r={},...n}=t,o=t;return R.jsx("li",{children:R.jsx(Y8,{focusRipple:!0,...n,ownerState:o,children:R.jsx(K8,{as:e.CollapsedIcon,ownerState:o,...r.collapsedIcon})})})}function Q8(t){return tt("MuiBreadcrumbs",t)}const e9=Ze("MuiBreadcrumbs",["root","ol","li","separator"]),t9=t=>{const{classes:e}=t;return nt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Q8,e)},r9=ie(bo,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(t,e)=>[{[`& .${e9.li}`]:e.li},e.root]})({}),n9=ie("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(t,e)=>e.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),o9=ie("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(t,e)=>e.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function a9(t,e,r,n){return t.reduce((o,a,i)=>(i{const j=()=>{S(!0);const z=O.current.querySelector("a[href],button,[tabindex]");z&&z.focus()};return d+h>=P.length?P:[...P.slice(0,d),R.jsx(Z8,{"aria-label":f,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:C},onClick:j},"ellipsis"),...P.slice(P.length-h,P.length)]},T=$.Children.toArray(o).filter(P=>$.isValidElement(P)).map((P,j)=>R.jsx("li",{className:D.li,children:P},`child-${j}`));return R.jsx(r9,{ref:r,component:i,color:"textSecondary",className:Ee(D.root,a),ownerState:k,...b,children:R.jsx(n9,{className:D.ol,ref:O,ownerState:k,children:a9(w||_&&T.length<=_?T:M(T),D.separator,g,k)})})});function s9(t){return tt("MuiButton",t)}const Ei=Ze("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"]),i9=$.createContext({}),c9=$.createContext(void 0),l9=t=>{const{color:e,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=t,l={root:["root",a,`${a}${he(e)}`,`size${he(o)}`,`${a}Size${he(o)}`,`color${he(e)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${he(o)}`],endIcon:["icon","endIcon",`iconSize${he(o)}`]},u=nt(l,s9,i);return{...i,...u}},PM=[{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}}}],u9=ie(Va,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${he(r.color)}`],e[`size${he(r.size)}`],e[`${r.variant}Size${he(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth]}})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ei.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Ei.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Ei.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ei.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Jt()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(t.vars||t).palette[n].main,"--variant-outlinedColor":(t.vars||t).palette[n].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.5)`:Nt(t.palette[n].main,.5),"--variant-containedColor":(t.vars||t).palette[n].contrastText,"--variant-containedBg":(t.vars||t).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[n].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[n].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[n].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[n].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ei.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ei.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),d9=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,e[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...PM]}),p9=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,e[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...PM]}),Qt=$.forwardRef(function(e,r){const n=$.useContext(i9),o=$.useContext(c9),a=tu(n,e),i=ot({props:a,name:"MuiButton"}),{children:l,color:u="primary",component:f="button",className:h,disabled:d=!1,disableElevation:_=!1,disableFocusRipple:g=!1,endIcon:b,focusVisibleClassName:w,fullWidth:S=!1,size:k="medium",startIcon:D,type:C,variant:O="text",...M}=i,T={...i,color:u,component:f,disabled:d,disableElevation:_,disableFocusRipple:g,fullWidth:S,size:k,type:C,variant:O},P=l9(T),j=D&&R.jsx(d9,{className:P.startIcon,ownerState:T,children:D}),z=b&&R.jsx(p9,{className:P.endIcon,ownerState:T,children:b}),E=o||"";return R.jsxs(u9,{ownerState:T,className:Ee(n.className,P.root,h,E),component:f,disabled:d,focusRipple:!g,focusVisibleClassName:Ee(P.focusVisible,w),ref:r,type:C,...M,classes:P,children:[j,l,z]})});function f9(t){return tt("PrivateSwitchBase",t)}Ze("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const h9=t=>{const{classes:e,checked:r,disabled:n,edge:o}=t,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${he(o)}`],input:["input"]};return nt(a,f9,e)},m9=ie(Va)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),_9=ie("input",{shouldForwardProp:Cr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),RM=$.forwardRef(function(e,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:l,disabled:u,disableFocusRipple:f=!1,edge:h=!1,icon:d,id:_,inputProps:g,inputRef:b,name:w,onBlur:S,onChange:k,onFocus:D,readOnly:C,required:O=!1,tabIndex:M,type:T,value:P,...j}=e,[z,E]=ru({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),L=Oo(),G=X=>{D&&D(X),L&&L.onFocus&&L.onFocus(X)},B=X=>{S&&S(X),L&&L.onBlur&&L.onBlur(X)},F=X=>{if(X.nativeEvent.defaultPrevented)return;const re=X.target.checked;E(re),k&&k(X,re)};let H=u;L&&typeof H>"u"&&(H=L.disabled);const K=T==="checkbox"||T==="radio",ee={...e,checked:z,disabled:H,disableFocusRipple:f,edge:h},Y=h9(ee);return R.jsxs(m9,{component:"span",className:Ee(Y.root,i),centerRipple:!0,focusRipple:!f,disabled:H,tabIndex:null,role:void 0,onFocus:G,onBlur:B,ownerState:ee,ref:r,...j,children:[R.jsx(_9,{autoFocus:n,checked:o,defaultChecked:l,className:Y.input,disabled:H,id:K?_:void 0,name:w,onChange:F,readOnly:C,ref:b,required:O,ownerState:ee,tabIndex:M,type:T,...T==="checkbox"&&P===void 0?{}:{value:P},...g}),z?a:d]})}),g9=Ge(R.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"),y9=Ge(R.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"),v9=Ge(R.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 b9(t){return tt("MuiCheckbox",t)}const s_=Ze("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),w9=t=>{const{classes:e,indeterminate:r,color:n,size:o}=t,a={root:["root",r&&"indeterminate",`color${he(n)}`,`size${he(o)}`]},i=nt(a,b9,e);return{...e,...i}},x9=ie(RM,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${he(r.size)}`],r.color!=="default"&&e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{[`&.${s_.checked}, &.${s_.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${s_.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),S9=R.jsx(y9,{}),k9=R.jsx(g9,{}),C9=R.jsx(v9,{}),tn=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiCheckbox"}),{checkedIcon:o=S9,color:a="primary",icon:i=k9,indeterminate:l=!1,indeterminateIcon:u=C9,inputProps:f,size:h="medium",disableRipple:d=!1,className:_,...g}=n,b=l?u:i,w=l?u:o,S={...n,disableRipple:d,color:a,indeterminate:l,size:h},k=w9(S);return R.jsx(x9,{type:"checkbox",inputProps:{"data-indeterminate":l,...f},icon:$.cloneElement(b,{fontSize:b.props.fontSize??h}),checkedIcon:$.cloneElement(w,{fontSize:w.props.fontSize??h}),ownerState:S,ref:r,className:Ee(k.root,_),disableRipple:d,...g,classes:k})});function $9(t){return tt("MuiCircularProgress",t)}Ze("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ta=44,_0=qa` +`,Qz=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...l}=n,[u,f]=$.useState([]),h=$.useRef(0),d=$.useRef(null);$.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const _=$.useRef(!1),g=vs(),b=$.useRef(null),w=$.useRef(null),S=$.useCallback(O=>{const{pulsate:M,rippleX:T,rippleY:P,rippleSize:j,cb:F}=O;f(E=>[...E,R.jsx(Zz,{classes:{ripple:Ee(a.ripple,Dn.ripple),rippleVisible:Ee(a.rippleVisible,Dn.rippleVisible),ripplePulsate:Ee(a.ripplePulsate,Dn.ripplePulsate),child:Ee(a.child,Dn.child),childLeaving:Ee(a.childLeaving,Dn.childLeaving),childPulsate:Ee(a.childPulsate,Dn.childPulsate)},timeout:p0,pulsate:M,rippleX:T,rippleY:P,rippleSize:j},h.current)]),h.current+=1,d.current=F},[a]),k=$.useCallback((O={},M={},T=()=>{})=>{const{pulsate:P=!1,center:j=o||M.pulsate,fakeElement:F=!1}=M;if((O==null?void 0:O.type)==="mousedown"&&_.current){_.current=!1;return}(O==null?void 0:O.type)==="touchstart"&&(_.current=!0);const E=F?null:w.current,L=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let G,B,z;if(j||O===void 0||O.clientX===0&&O.clientY===0||!O.clientX&&!O.touches)G=Math.round(L.width/2),B=Math.round(L.height/2);else{const{clientX:H,clientY:K}=O.touches&&O.touches.length>0?O.touches[0]:O;G=Math.round(H-L.left),B=Math.round(K-L.top)}if(j)z=Math.sqrt((2*L.width**2+L.height**2)/3),z%2===0&&(z+=1);else{const H=Math.max(Math.abs((E?E.clientWidth:0)-G),G)*2+2,K=Math.max(Math.abs((E?E.clientHeight:0)-B),B)*2+2;z=Math.sqrt(H**2+K**2)}O!=null&&O.touches?b.current===null&&(b.current=()=>{S({pulsate:P,rippleX:G,rippleY:B,rippleSize:z,cb:T})},g.start(Xz,()=>{b.current&&(b.current(),b.current=null)})):S({pulsate:P,rippleX:G,rippleY:B,rippleSize:z,cb:T})},[o,S,g]),D=$.useCallback(()=>{k({},{pulsate:!0})},[k]),C=$.useCallback((O,M)=>{if(g.clear(),(O==null?void 0:O.type)==="touchend"&&b.current){b.current(),b.current=null,g.start(0,()=>{C(O,M)});return}b.current=null,f(T=>T.length>0?T.slice(1):T),d.current=M},[g]);return $.useImperativeHandle(r,()=>({pulsate:D,start:k,stop:C}),[D,k,C]),R.jsx(Kz,{className:Ee(Dn.root,a.root,i),ref:w,...l,children:R.jsx(Cb,{component:null,exit:!0,children:u})})});function e6(t){return tt("MuiButtonBase",t)}const t6=Ze("MuiButtonBase",["root","disabled","focusVisible"]),r6=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:o}=t,i=nt({root:["root",e&&"disabled",r&&"focusVisible"]},e6,o);return r&&n&&(i.root+=` ${n}`),i},n6=ie("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.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"},[`&.${t6.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Va=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:l,component:u="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:d=!1,focusRipple:_=!1,focusVisibleClassName:g,LinkComponent:b="a",onBlur:w,onClick:S,onContextMenu:k,onDragLeave:D,onFocus:C,onFocusVisible:O,onKeyDown:M,onKeyUp:T,onMouseDown:P,onMouseLeave:j,onMouseUp:F,onTouchEnd:E,onTouchMove:L,onTouchStart:G,tabIndex:B=0,TouchRippleProps:z,touchRippleRef:H,type:K,...ee}=n,Y=$.useRef(null),X=Hz(),re=ar(X.ref,H),[I,Q]=$.useState(!1);f&&I&&Q(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{Q(!0),Y.current.focus()}}),[]);const me=X.shouldMount&&!h&&!f;$.useEffect(()=>{I&&_&&!h&&X.pulsate()},[h,_,I,X]);const pe=Wo(X,"start",P,d),ge=Wo(X,"stop",k,d),Ce=Wo(X,"stop",D,d),Re=Wo(X,"stop",F,d),Te=Wo(X,"stop",Se=>{I&&Se.preventDefault(),j&&j(Se)},d),Pe=Wo(X,"start",G,d),Oe=Wo(X,"stop",E,d),ze=Wo(X,"stop",L,d),Me=Wo(X,"stop",Se=>{Ba(Se.target)||Q(!1),w&&w(Se)},!1),Be=Nr(Se=>{Y.current||(Y.current=Se.currentTarget),Ba(Se.target)&&(Q(!0),O&&O(Se)),C&&C(Se)}),We=()=>{const Se=Y.current;return u&&u!=="button"&&!(Se.tagName==="A"&&Se.href)},De=Nr(Se=>{_&&!Se.repeat&&I&&Se.key===" "&&X.stop(Se,()=>{X.start(Se)}),Se.target===Se.currentTarget&&We()&&Se.key===" "&&Se.preventDefault(),M&&M(Se),Se.target===Se.currentTarget&&We()&&Se.key==="Enter"&&!f&&(Se.preventDefault(),S&&S(Se))}),pt=Nr(Se=>{_&&Se.key===" "&&I&&!Se.defaultPrevented&&X.stop(Se,()=>{X.pulsate(Se)}),T&&T(Se),S&&Se.target===Se.currentTarget&&We()&&Se.key===" "&&!Se.defaultPrevented&&S(Se)});let ce=u;ce==="button"&&(ee.href||ee.to)&&(ce=b);const qe={};ce==="button"?(qe.type=K===void 0?"button":K,qe.disabled=f):(!ee.href&&!ee.to&&(qe.role="button"),f&&(qe["aria-disabled"]=f));const st=ar(r,Y),rt={...n,centerRipple:a,component:u,disabled:f,disableRipple:h,disableTouchRipple:d,focusRipple:_,tabIndex:B,focusVisible:I},Je=r6(rt);return R.jsxs(n6,{as:ce,className:Ee(Je.root,l),ownerState:rt,onBlur:Me,onClick:S,onContextMenu:ge,onFocus:Be,onKeyDown:De,onKeyUp:pt,onMouseDown:pe,onMouseLeave:Te,onMouseUp:Re,onDragLeave:Ce,onTouchEnd:Oe,onTouchMove:ze,onTouchStart:Pe,ref:st,tabIndex:f?-1:B,type:K,...qe,...ee,children:[i,me?R.jsx(Qz,{ref:re,center:a,...z}):null]})});function Wo(t,e,r,n=!1){return Nr(o=>(r&&r(o),n||t[e](o),!0))}function o6(t){return typeof t.main=="string"}function a6(t,e=[]){if(!o6(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function Jt(t=[]){return([,e])=>e&&a6(e,t)}function s6(t){return tt("MuiIconButton",t)}const i6=Ze("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),c6=t=>{const{classes:e,disabled:r,color:n,edge:o,size:a}=t,i={root:["root",r&&"disabled",n!=="default"&&`color${he(n)}`,o&&`edge${he(o)}`,`size${he(a)}`]};return nt(i,s6,e)},l6=ie(Va,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="default"&&e[`color${he(r.color)}`],r.edge&&e[`edge${he(r.edge)}`],e[`size${he(r.size)}`]]}})(Xe(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Xe(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${i6.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}}))),nr=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:l="default",disabled:u=!1,disableFocusRipple:f=!1,size:h="medium",...d}=n,_={...n,edge:o,color:l,disabled:u,disableFocusRipple:f,size:h},g=c6(_);return R.jsx(l6,{className:Ee(g.root,i),centerRipple:!0,focusRipple:!f,disabled:u,ref:r,...d,ownerState:_,children:a})});function u6(t){return tt("MuiTypography",t)}const Yk=Ze("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),d6={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},p6=Dz(),f6=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=t,l={root:["root",a,t.align!=="inherit"&&`align${he(e)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return nt(l,u6,i)},h6=ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${he(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(Xe(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(t.palette).filter(Jt()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${he(r)}`},style:{color:(t.vars||t).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Kk={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bo=$.forwardRef(function(e,r){const{color:n,...o}=ot({props:e,name:"MuiTypography"}),a=!d6[n],i=p6({...o,...a&&{color:n}}),{align:l="inherit",className:u,component:f,gutterBottom:h=!1,noWrap:d=!1,paragraph:_=!1,variant:g="body1",variantMapping:b=Kk,...w}=i,S={...i,align:l,color:n,className:u,component:f,gutterBottom:h,noWrap:d,paragraph:_,variant:g,variantMapping:b},k=f||(_?"p":b[g]||Kk[g])||"span",D=f6(S);return R.jsx(h6,{as:k,ref:r,className:Ee(D.root,u),...w,ownerState:S,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...w.style}})});function m6(t){return tt("MuiAppBar",t)}Ze("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const _6=t=>{const{color:e,position:r,classes:n}=t,o={root:["root",`color${he(e)}`,`position${he(r)}`]};return nt(o,m6,n)},Zk=(t,e)=>t?`${t==null?void 0:t.replace(")","")}, ${e})`:e,g6=ie(ku,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${he(r.position)}`],e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).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":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(Jt(["contrastText"])).map(([e])=>({props:{color:e},style:{"--AppBar-background":(t.vars??t).palette[e].main,"--AppBar-color":(t.vars??t).palette[e].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)",...t.applyStyles("dark",{backgroundColor:t.vars?Zk(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?Zk(t.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)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),yM=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:l="fixed",...u}=n,f={...n,color:a,position:l,enableColorOnDark:i},h=_6(f);return R.jsx(g6,{square:!0,component:"header",ownerState:f,elevation:4,className:Ee(h.root,o,l==="fixed"&&"mui-fixed"),ref:r,...u})});var on="top",jn="bottom",Ln="right",an="left",$b="auto",Cu=[on,jn,Ln,an],xc="start",au="end",y6="clippingParents",vM="viewport",bl="popper",v6="reference",Qk=Cu.reduce(function(t,e){return t.concat([e+"-"+xc,e+"-"+au])},[]),bM=[].concat(Cu,[$b]).reduce(function(t,e){return t.concat([e,e+"-"+xc,e+"-"+au])},[]),b6="beforeRead",w6="read",x6="afterRead",S6="beforeMain",k6="main",C6="afterMain",$6="beforeWrite",E6="write",T6="afterWrite",O6=[b6,w6,x6,S6,k6,C6,$6,E6,T6];function $o(t){return t?(t.nodeName||"").toLowerCase():null}function vn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ps(t){var e=vn(t).Element;return t instanceof e||t instanceof Element}function In(t){var e=vn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Eb(t){if(typeof ShadowRoot>"u")return!1;var e=vn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function D6(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},a=e.elements[r];!In(a)||!$o(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var l=o[i];l===!1?a.removeAttribute(i):a.setAttribute(i,l===!0?"":l)}))})}function M6(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],a=e.attributes[n]||{},i=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),l=i.reduce(function(u,f){return u[f]="",u},{});!In(o)||!$o(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const N6={name:"applyStyles",enabled:!0,phase:"write",fn:D6,effect:M6,requires:["computeStyles"]};function So(t){return t.split("-")[0]}var Ss=Math.max,Hp=Math.min,Sc=Math.round;function f0(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function wM(){return!/^((?!chrome|android).)*safari/i.test(f0())}function kc(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,a=1;e&&In(t)&&(o=t.offsetWidth>0&&Sc(n.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Sc(n.height)/t.offsetHeight||1);var i=Ps(t)?vn(t):window,l=i.visualViewport,u=!wM()&&r,f=(n.left+(u&&l?l.offsetLeft:0))/o,h=(n.top+(u&&l?l.offsetTop:0))/a,d=n.width/o,_=n.height/a;return{width:d,height:_,top:h,right:f+d,bottom:h+_,left:f,x:f,y:h}}function Tb(t){var e=kc(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function xM(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Eb(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Qo(t){return vn(t).getComputedStyle(t)}function P6(t){return["table","td","th"].indexOf($o(t))>=0}function Xa(t){return((Ps(t)?t.ownerDocument:t.document)||window.document).documentElement}function Mf(t){return $o(t)==="html"?t:t.assignedSlot||t.parentNode||(Eb(t)?t.host:null)||Xa(t)}function eC(t){return!In(t)||Qo(t).position==="fixed"?null:t.offsetParent}function R6(t){var e=/firefox/i.test(f0()),r=/Trident/i.test(f0());if(r&&In(t)){var n=Qo(t);if(n.position==="fixed")return null}var o=Mf(t);for(Eb(o)&&(o=o.host);In(o)&&["html","body"].indexOf($o(o))<0;){var a=Qo(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function $u(t){for(var e=vn(t),r=eC(t);r&&P6(r)&&Qo(r).position==="static";)r=eC(r);return r&&($o(r)==="html"||$o(r)==="body"&&Qo(r).position==="static")?e:r||R6(t)||e}function Ob(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Vl(t,e,r){return Ss(t,Hp(e,r))}function A6(t,e,r){var n=Vl(t,e,r);return n>r?r:n}function SM(){return{top:0,right:0,bottom:0,left:0}}function kM(t){return Object.assign({},SM(),t)}function CM(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var I6=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,kM(typeof e!="number"?e:CM(e,Cu))};function j6(t){var e,r=t.state,n=t.name,o=t.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,l=So(r.placement),u=Ob(l),f=[an,Ln].indexOf(l)>=0,h=f?"height":"width";if(!(!a||!i)){var d=I6(o.padding,r),_=Tb(a),g=u==="y"?on:an,b=u==="y"?jn:Ln,w=r.rects.reference[h]+r.rects.reference[u]-i[u]-r.rects.popper[h],S=i[u]-r.rects.reference[u],k=$u(a),D=k?u==="y"?k.clientHeight||0:k.clientWidth||0:0,C=w/2-S/2,O=d[g],M=D-_[h]-d[b],T=D/2-_[h]/2+C,P=Vl(O,T,M),j=u;r.modifiersData[n]=(e={},e[j]=P,e.centerOffset=P-T,e)}}function L6(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||xM(e.elements.popper,o)&&(e.elements.arrow=o))}const F6={name:"arrow",enabled:!0,phase:"main",fn:j6,effect:L6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Cc(t){return t.split("-")[1]}var z6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function B6(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:Sc(r*o)/o||0,y:Sc(n*o)/o||0}}function tC(t){var e,r=t.popper,n=t.popperRect,o=t.placement,a=t.variation,i=t.offsets,l=t.position,u=t.gpuAcceleration,f=t.adaptive,h=t.roundOffsets,d=t.isFixed,_=i.x,g=_===void 0?0:_,b=i.y,w=b===void 0?0:b,S=typeof h=="function"?h({x:g,y:w}):{x:g,y:w};g=S.x,w=S.y;var k=i.hasOwnProperty("x"),D=i.hasOwnProperty("y"),C=an,O=on,M=window;if(f){var T=$u(r),P="clientHeight",j="clientWidth";if(T===vn(r)&&(T=Xa(r),Qo(T).position!=="static"&&l==="absolute"&&(P="scrollHeight",j="scrollWidth")),T=T,o===on||(o===an||o===Ln)&&a===au){O=jn;var F=d&&T===M&&M.visualViewport?M.visualViewport.height:T[P];w-=F-n.height,w*=u?1:-1}if(o===an||(o===on||o===jn)&&a===au){C=Ln;var E=d&&T===M&&M.visualViewport?M.visualViewport.width:T[j];g-=E-n.width,g*=u?1:-1}}var L=Object.assign({position:l},f&&z6),G=h===!0?B6({x:g,y:w},vn(r)):{x:g,y:w};if(g=G.x,w=G.y,u){var B;return Object.assign({},L,(B={},B[O]=D?"0":"",B[C]=k?"0":"",B.transform=(M.devicePixelRatio||1)<=1?"translate("+g+"px, "+w+"px)":"translate3d("+g+"px, "+w+"px, 0)",B))}return Object.assign({},L,(e={},e[O]=D?w+"px":"",e[C]=k?g+"px":"",e.transform="",e))}function W6(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,l=r.roundOffsets,u=l===void 0?!0:l,f={placement:So(e.placement),variation:Cc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,tC(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,tC(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const U6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:W6,data:{}};var Zd={passive:!0};function H6(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,l=i===void 0?!0:i,u=vn(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&f.forEach(function(h){h.addEventListener("scroll",r.update,Zd)}),l&&u.addEventListener("resize",r.update,Zd),function(){a&&f.forEach(function(h){h.removeEventListener("scroll",r.update,Zd)}),l&&u.removeEventListener("resize",r.update,Zd)}}const q6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:H6,data:{}};var V6={left:"right",right:"left",bottom:"top",top:"bottom"};function Ep(t){return t.replace(/left|right|bottom|top/g,function(e){return V6[e]})}var X6={start:"end",end:"start"};function rC(t){return t.replace(/start|end/g,function(e){return X6[e]})}function Db(t){var e=vn(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Mb(t){return kc(Xa(t)).left+Db(t).scrollLeft}function G6(t,e){var r=vn(t),n=Xa(t),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;var f=wM();(f||!f&&e==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l+Mb(t),y:u}}function J6(t){var e,r=Xa(t),n=Db(t),o=(e=t.ownerDocument)==null?void 0:e.body,a=Ss(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Ss(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+Mb(t),u=-n.scrollTop;return Qo(o||r).direction==="rtl"&&(l+=Ss(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:u}}function Nb(t){var e=Qo(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function $M(t){return["html","body","#document"].indexOf($o(t))>=0?t.ownerDocument.body:In(t)&&Nb(t)?t:$M(Mf(t))}function Xl(t,e){var r;e===void 0&&(e=[]);var n=$M(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),a=vn(n),i=o?[a].concat(a.visualViewport||[],Nb(n)?n:[]):n,l=e.concat(i);return o?l:l.concat(Xl(Mf(i)))}function h0(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Y6(t,e){var r=kc(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function nC(t,e,r){return e===vM?h0(G6(t,r)):Ps(e)?Y6(e,r):h0(J6(Xa(t)))}function K6(t){var e=Xl(Mf(t)),r=["absolute","fixed"].indexOf(Qo(t).position)>=0,n=r&&In(t)?$u(t):t;return Ps(n)?e.filter(function(o){return Ps(o)&&xM(o,n)&&$o(o)!=="body"}):[]}function Z6(t,e,r,n){var o=e==="clippingParents"?K6(t):[].concat(e),a=[].concat(o,[r]),i=a[0],l=a.reduce(function(u,f){var h=nC(t,f,n);return u.top=Ss(h.top,u.top),u.right=Hp(h.right,u.right),u.bottom=Hp(h.bottom,u.bottom),u.left=Ss(h.left,u.left),u},nC(t,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function EM(t){var e=t.reference,r=t.element,n=t.placement,o=n?So(n):null,a=n?Cc(n):null,i=e.x+e.width/2-r.width/2,l=e.y+e.height/2-r.height/2,u;switch(o){case on:u={x:i,y:e.y-r.height};break;case jn:u={x:i,y:e.y+e.height};break;case Ln:u={x:e.x+e.width,y:l};break;case an:u={x:e.x-r.width,y:l};break;default:u={x:e.x,y:e.y}}var f=o?Ob(o):null;if(f!=null){var h=f==="y"?"height":"width";switch(a){case xc:u[f]=u[f]-(e[h]/2-r[h]/2);break;case au:u[f]=u[f]+(e[h]/2-r[h]/2);break}}return u}function su(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,a=r.strategy,i=a===void 0?t.strategy:a,l=r.boundary,u=l===void 0?y6:l,f=r.rootBoundary,h=f===void 0?vM:f,d=r.elementContext,_=d===void 0?bl:d,g=r.altBoundary,b=g===void 0?!1:g,w=r.padding,S=w===void 0?0:w,k=kM(typeof S!="number"?S:CM(S,Cu)),D=_===bl?v6:bl,C=t.rects.popper,O=t.elements[b?D:_],M=Z6(Ps(O)?O:O.contextElement||Xa(t.elements.popper),u,h,i),T=kc(t.elements.reference),P=EM({reference:T,element:C,strategy:"absolute",placement:o}),j=h0(Object.assign({},C,P)),F=_===bl?j:T,E={top:M.top-F.top+k.top,bottom:F.bottom-M.bottom+k.bottom,left:M.left-F.left+k.left,right:F.right-M.right+k.right},L=t.modifiersData.offset;if(_===bl&&L){var G=L[o];Object.keys(E).forEach(function(B){var z=[Ln,jn].indexOf(B)>=0?1:-1,H=[on,jn].indexOf(B)>=0?"y":"x";E[B]+=G[H]*z})}return E}function Q6(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,l=r.flipVariations,u=r.allowedAutoPlacements,f=u===void 0?bM:u,h=Cc(n),d=h?l?Qk:Qk.filter(function(b){return Cc(b)===h}):Cu,_=d.filter(function(b){return f.indexOf(b)>=0});_.length===0&&(_=d);var g=_.reduce(function(b,w){return b[w]=su(t,{placement:w,boundary:o,rootBoundary:a,padding:i})[So(w)],b},{});return Object.keys(g).sort(function(b,w){return g[b]-g[w]})}function e8(t){if(So(t)===$b)return[];var e=Ep(t);return[rC(t),e,rC(e)]}function t8(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!0:i,u=r.fallbackPlacements,f=r.padding,h=r.boundary,d=r.rootBoundary,_=r.altBoundary,g=r.flipVariations,b=g===void 0?!0:g,w=r.allowedAutoPlacements,S=e.options.placement,k=So(S),D=k===S,C=u||(D||!b?[Ep(S)]:e8(S)),O=[S].concat(C).reduce(function(pe,ge){return pe.concat(So(ge)===$b?Q6(e,{placement:ge,boundary:h,rootBoundary:d,padding:f,flipVariations:b,allowedAutoPlacements:w}):ge)},[]),M=e.rects.reference,T=e.rects.popper,P=new Map,j=!0,F=O[0],E=0;E=0,H=z?"width":"height",K=su(e,{placement:L,boundary:h,rootBoundary:d,altBoundary:_,padding:f}),ee=z?B?Ln:an:B?jn:on;M[H]>T[H]&&(ee=Ep(ee));var Y=Ep(ee),X=[];if(a&&X.push(K[G]<=0),l&&X.push(K[ee]<=0,K[Y]<=0),X.every(function(pe){return pe})){F=L,j=!1;break}P.set(L,X)}if(j)for(var re=b?3:1,I=function(ge){var Ce=O.find(function(Re){var Te=P.get(Re);if(Te)return Te.slice(0,ge).every(function(Pe){return Pe})});if(Ce)return F=Ce,"break"},Q=re;Q>0;Q--){var me=I(Q);if(me==="break")break}e.placement!==F&&(e.modifiersData[n]._skip=!0,e.placement=F,e.reset=!0)}}const r8={name:"flip",enabled:!0,phase:"main",fn:t8,requiresIfExists:["offset"],data:{_skip:!1}};function oC(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function aC(t){return[on,Ln,jn,an].some(function(e){return t[e]>=0})}function n8(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,i=su(e,{elementContext:"reference"}),l=su(e,{altBoundary:!0}),u=oC(i,n),f=oC(l,o,a),h=aC(u),d=aC(f);e.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}const o8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:n8};function a8(t,e,r){var n=So(t),o=[an,on].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[an,Ln].indexOf(n)>=0?{x:l,y:i}:{x:i,y:l}}function s8(t){var e=t.state,r=t.options,n=t.name,o=r.offset,a=o===void 0?[0,0]:o,i=bM.reduce(function(h,d){return h[d]=a8(d,e.rects,a),h},{}),l=i[e.placement],u=l.x,f=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=i}const i8={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:s8};function c8(t){var e=t.state,r=t.name;e.modifiersData[r]=EM({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const l8={name:"popperOffsets",enabled:!0,phase:"read",fn:c8,data:{}};function u8(t){return t==="x"?"y":"x"}function d8(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!1:i,u=r.boundary,f=r.rootBoundary,h=r.altBoundary,d=r.padding,_=r.tether,g=_===void 0?!0:_,b=r.tetherOffset,w=b===void 0?0:b,S=su(e,{boundary:u,rootBoundary:f,padding:d,altBoundary:h}),k=So(e.placement),D=Cc(e.placement),C=!D,O=Ob(k),M=u8(O),T=e.modifiersData.popperOffsets,P=e.rects.reference,j=e.rects.popper,F=typeof w=="function"?w(Object.assign({},e.rects,{placement:e.placement})):w,E=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,G={x:0,y:0};if(T){if(a){var B,z=O==="y"?on:an,H=O==="y"?jn:Ln,K=O==="y"?"height":"width",ee=T[O],Y=ee+S[z],X=ee-S[H],re=g?-j[K]/2:0,I=D===xc?P[K]:j[K],Q=D===xc?-j[K]:-P[K],me=e.elements.arrow,pe=g&&me?Tb(me):{width:0,height:0},ge=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:SM(),Ce=ge[z],Re=ge[H],Te=Vl(0,P[K],pe[K]),Pe=C?P[K]/2-re-Te-Ce-E.mainAxis:I-Te-Ce-E.mainAxis,Oe=C?-P[K]/2+re+Te+Re+E.mainAxis:Q+Te+Re+E.mainAxis,ze=e.elements.arrow&&$u(e.elements.arrow),Me=ze?O==="y"?ze.clientTop||0:ze.clientLeft||0:0,Be=(B=L==null?void 0:L[O])!=null?B:0,We=ee+Pe-Be-Me,De=ee+Oe-Be,pt=Vl(g?Hp(Y,We):Y,ee,g?Ss(X,De):X);T[O]=pt,G[O]=pt-ee}if(l){var ce,qe=O==="x"?on:an,st=O==="x"?jn:Ln,rt=T[M],Je=M==="y"?"height":"width",Se=rt+S[qe],ut=rt-S[st],q=[on,an].indexOf(k)!==-1,ne=(ce=L==null?void 0:L[M])!=null?ce:0,ye=q?Se:rt-P[Je]-j[Je]-ne+E.altAxis,xe=q?rt+P[Je]+j[Je]-ne-E.altAxis:ut,ke=g&&q?A6(ye,rt,xe):Vl(g?ye:Se,rt,g?xe:ut);T[M]=ke,G[M]=ke-rt}e.modifiersData[n]=G}}const p8={name:"preventOverflow",enabled:!0,phase:"main",fn:d8,requiresIfExists:["offset"]};function f8(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function h8(t){return t===vn(t)||!In(t)?Db(t):f8(t)}function m8(t){var e=t.getBoundingClientRect(),r=Sc(e.width)/t.offsetWidth||1,n=Sc(e.height)/t.offsetHeight||1;return r!==1||n!==1}function _8(t,e,r){r===void 0&&(r=!1);var n=In(e),o=In(e)&&m8(e),a=Xa(e),i=kc(t,o,r),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&(($o(e)!=="body"||Nb(a))&&(l=h8(e)),In(e)?(u=kc(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Mb(a))),{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}function g8(t){var e=new Map,r=new Set,n=[];t.forEach(function(a){e.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(l){if(!r.has(l)){var u=e.get(l);u&&o(u)}}),n.push(a)}return t.forEach(function(a){r.has(a.name)||o(a)}),n}function y8(t){var e=g8(t);return O6.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function v8(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function b8(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var sC={placement:"bottom",modifiers:[],strategy:"absolute"};function iC(){for(var t=arguments.length,e=new Array(t),r=0;r{a||l(k8(o)||document.body)},[o,a]),yn(()=>{if(i&&!a)return a0(r,i),()=>{a0(r,null)}},[r,i,a]),a){if($.isValidElement(n)){const f={ref:u};return $.cloneElement(n,f)}return n}return i&&_M.createPortal(n,i)});function C8(t){return tt("MuiPopper",t)}Ze("MuiPopper",["root"]);function $8(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function m0(t){return typeof t=="function"?t():t}function E8(t){return t.nodeType!==void 0}const T8=t=>{const{classes:e}=t;return nt({root:["root"]},C8,e)},O8={},D8=$.forwardRef(function(e,r){const{anchorEl:n,children:o,direction:a,disablePortal:i,modifiers:l,open:u,placement:f,popperOptions:h,popperRef:d,slotProps:_={},slots:g={},TransitionProps:b,ownerState:w,...S}=e,k=$.useRef(null),D=ar(k,r),C=$.useRef(null),O=ar(C,d),M=$.useRef(O);yn(()=>{M.current=O},[O]),$.useImperativeHandle(d,()=>C.current,[]);const T=$8(f,a),[P,j]=$.useState(T),[F,E]=$.useState(m0(n));$.useEffect(()=>{C.current&&C.current.forceUpdate()}),$.useEffect(()=>{n&&E(m0(n))},[n]),yn(()=>{if(!F||!u)return;const H=Y=>{j(Y.placement)};let K=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{H(Y)}}];l!=null&&(K=K.concat(l)),h&&h.modifiers!=null&&(K=K.concat(h.modifiers));const ee=S8(F,k.current,{placement:T,...h,modifiers:K});return M.current(ee),()=>{ee.destroy(),M.current(null)}},[F,i,l,u,h,T]);const L={placement:P};b!==null&&(L.TransitionProps=b);const G=T8(e),B=g.root??"div",z=Dr({elementType:B,externalSlotProps:_.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:D},ownerState:e,className:G.root});return R.jsx(B,{...z,children:typeof o=="function"?o(L):o})}),M8=$.forwardRef(function(e,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:f,open:h,placement:d="bottom",popperOptions:_=O8,popperRef:g,style:b,transition:w=!1,slotProps:S={},slots:k={},...D}=e,[C,O]=$.useState(!0),M=()=>{O(!1)},T=()=>{O(!0)};if(!u&&!h&&(!w||C))return null;let P;if(a)P=a;else if(n){const E=m0(n);P=E&&E8(E)?cr(E).body:cr(null).body}const j=!h&&u&&(!w||C)?"none":void 0,F=w?{in:h,onEnter:M,onExited:T}:void 0;return R.jsx(TM,{disablePortal:l,container:P,children:R.jsx(D8,{anchorEl:n,direction:i,disablePortal:l,modifiers:f,ref:r,open:w?!C:h,placement:d,popperOptions:_,popperRef:g,slotProps:S,slots:k,...D,style:{position:"fixed",top:0,left:0,display:j,...b},TransitionProps:F,children:o})})}),N8=ie(M8,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),OM=$.forwardRef(function(e,r){const n=Us(),o=ot({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:u,container:f,disablePortal:h,keepMounted:d,modifiers:_,open:g,placement:b,popperOptions:w,popperRef:S,transition:k,slots:D,slotProps:C,...O}=o,M=(D==null?void 0:D.root)??(l==null?void 0:l.Root),T={anchorEl:a,container:f,disablePortal:h,keepMounted:d,modifiers:_,open:g,placement:b,popperOptions:w,popperRef:S,transition:k,...O};return R.jsx(N8,{as:i,direction:n?"rtl":"ltr",slots:{root:M},slotProps:C??u,...T,ref:r})});function Qd(t){return parseInt(t,10)||0}const P8={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function R8(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflowing}const A8=$.forwardRef(function(e,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:l,...u}=e,{current:f}=$.useRef(l!=null),h=$.useRef(null),d=ar(r,h),_=$.useRef(null),g=$.useRef(null),b=$.useCallback(()=>{const k=h.current,C=eo(k).getComputedStyle(k);if(C.width==="0px")return{outerHeightStyle:0,overflowing:!1};const O=g.current;O.style.width=C.width,O.value=k.value||e.placeholder||"x",O.value.slice(-1)===` +`&&(O.value+=" ");const M=C.boxSizing,T=Qd(C.paddingBottom)+Qd(C.paddingTop),P=Qd(C.borderBottomWidth)+Qd(C.borderTopWidth),j=O.scrollHeight;O.value="x";const F=O.scrollHeight;let E=j;a&&(E=Math.max(Number(a)*F,E)),o&&(E=Math.min(Number(o)*F,E)),E=Math.max(E,F);const L=E+(M==="border-box"?T+P:0),G=Math.abs(E-j)<=1;return{outerHeightStyle:L,overflowing:G}},[o,a,e.placeholder]),w=$.useCallback(()=>{const k=b();if(R8(k))return;const D=k.outerHeightStyle,C=h.current;_.current!==D&&(_.current=D,C.style.height=`${D}px`),C.style.overflow=k.overflowing?"hidden":""},[b]);yn(()=>{const k=()=>{w()};let D;const C=Ef(k),O=h.current,M=eo(O);M.addEventListener("resize",C);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(k),T.observe(O)),()=>{C.clear(),cancelAnimationFrame(D),M.removeEventListener("resize",C),T&&T.disconnect()}},[b,w]),yn(()=>{w()});const S=k=>{f||w(),n&&n(k)};return R.jsxs($.Fragment,{children:[R.jsx("textarea",{value:l,onChange:S,ref:d,rows:a,style:i,...u}),R.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:g,tabIndex:-1,style:{...P8.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function ks(t){return typeof t=="string"}function Ga({props:t,states:e,muiFormControl:r}){return e.reduce((n,o)=>(n[o]=t[o],r&&typeof t[o]>"u"&&(n[o]=r[o]),n),{})}const Pb=$.createContext(void 0);function Oo(){return $.useContext(Pb)}function cC(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function qp(t,e=!1){return t&&(cC(t.value)&&t.value!==""||e&&cC(t.defaultValue)&&t.defaultValue!=="")}function I8(t){return t.startAdornment}function j8(t){return tt("MuiInputBase",t)}const $c=Ze("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var lC;const Nf=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${he(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},Pf=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},L8=t=>{const{classes:e,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:u,hiddenLabel:f,multiline:h,readOnly:d,size:_,startAdornment:g,type:b}=t,w={root:["root",`color${he(r)}`,n&&"disabled",o&&"error",u&&"fullWidth",i&&"focused",l&&"formControl",_&&_!=="medium"&&`size${he(_)}`,h&&"multiline",g&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",b==="search"&&"inputTypeSearch",h&&"inputMultiline",_==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return nt(w,j8,e)},Rf=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Nf})(Xe(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${$c.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Af=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Pf})(Xe(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${$c.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${$c.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.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:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),uC=Oz({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Rb=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,color:u,components:f={},componentsProps:h={},defaultValue:d,disabled:_,disableInjectingGlobalStyles:g,endAdornment:b,error:w,fullWidth:S=!1,id:k,inputComponent:D="input",inputProps:C={},inputRef:O,margin:M,maxRows:T,minRows:P,multiline:j=!1,name:F,onBlur:E,onChange:L,onClick:G,onFocus:B,onKeyDown:z,onKeyUp:H,placeholder:K,readOnly:ee,renderSuffix:Y,rows:X,size:re,slotProps:I={},slots:Q={},startAdornment:me,type:pe="text",value:ge,...Ce}=n,Re=C.value!=null?C.value:ge,{current:Te}=$.useRef(Re!=null),Pe=$.useRef(),Oe=$.useCallback($e=>{},[]),ze=ar(Pe,O,C.ref,Oe),[Me,Be]=$.useState(!1),We=Oo(),De=Ga({props:n,muiFormControl:We,states:["color","disabled","error","hiddenLabel","size","required","filled"]});De.focused=We?We.focused:Me,$.useEffect(()=>{!We&&_&&Me&&(Be(!1),E&&E())},[We,_,Me,E]);const pt=We&&We.onFilled,ce=We&&We.onEmpty,qe=$.useCallback($e=>{qp($e)?pt&&pt():ce&&ce()},[pt,ce]);yn(()=>{Te&&qe({value:Re})},[Re,qe,Te]);const st=$e=>{B&&B($e),C.onFocus&&C.onFocus($e),We&&We.onFocus?We.onFocus($e):Be(!0)},rt=$e=>{E&&E($e),C.onBlur&&C.onBlur($e),We&&We.onBlur?We.onBlur($e):Be(!1)},Je=($e,...Ye)=>{if(!Te){const lt=$e.target||Pe.current;if(lt==null)throw new Error(Zo(1));qe({value:lt.value})}C.onChange&&C.onChange($e,...Ye),L&&L($e,...Ye)};$.useEffect(()=>{qe(Pe.current)},[]);const Se=$e=>{Pe.current&&$e.currentTarget===$e.target&&Pe.current.focus(),G&&G($e)};let ut=D,q=C;j&&ut==="input"&&(X?q={type:void 0,minRows:X,maxRows:X,...q}:q={type:void 0,maxRows:T,minRows:P,...q},ut=A8);const ne=$e=>{qe($e.animationName==="mui-auto-fill-cancel"?Pe.current:{value:"x"})};$.useEffect(()=>{We&&We.setAdornedStart(!!me)},[We,me]);const ye={...n,color:De.color||"primary",disabled:De.disabled,endAdornment:b,error:De.error,focused:De.focused,formControl:We,fullWidth:S,hiddenLabel:De.hiddenLabel,multiline:j,size:De.size,startAdornment:me,type:pe},xe=L8(ye),ke=Q.root||f.Root||Rf,ve=I.root||h.root||{},Ve=Q.input||f.Input||Af;return q={...q,...I.input??h.input},R.jsxs($.Fragment,{children:[!g&&typeof uC=="function"&&(lC||(lC=R.jsx(uC,{}))),R.jsxs(ke,{...ve,ref:r,onClick:Se,...Ce,...!ks(ke)&&{ownerState:{...ye,...ve.ownerState}},className:Ee(xe.root,ve.className,l,ee&&"MuiInputBase-readOnly"),children:[me,R.jsx(Pb.Provider,{value:null,children:R.jsx(Ve,{"aria-invalid":De.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:d,disabled:De.disabled,id:k,onAnimationStart:ne,name:F,placeholder:K,readOnly:ee,required:De.required,rows:X,value:Re,onKeyDown:z,onKeyUp:H,type:pe,...q,...!ks(Ve)&&{as:ut,ownerState:{...ye,...q.ownerState}},ref:ze,className:Ee(xe.input,q.className,ee&&"MuiInputBase-readOnly"),onBlur:rt,onChange:Je,onFocus:st})}),b,Y?Y({...De,startAdornment:me}):null]})]})});function F8(t){return tt("MuiInput",t)}const wl={...$c,...Ze("MuiInput",["root","underline","input"])};function z8(t){return tt("MuiOutlinedInput",t)}const lo={...$c,...Ze("MuiOutlinedInput",["root","notchedOutline","input"])};function B8(t){return tt("MuiFilledInput",t)}const ls={...$c,...Ze("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},W8=Ge(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),U8={entering:{opacity:1},entered:{opacity:1}},DM=$.forwardRef(function(e,r){const n=ta(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,easing:u,in:f,onEnter:h,onEntered:d,onEntering:_,onExit:g,onExited:b,onExiting:w,style:S,timeout:k=o,TransitionComponent:D=To,...C}=e,O=$.useRef(null),M=ar(O,Ws(l),r),T=z=>H=>{if(z){const K=O.current;H===void 0?z(K):z(K,H)}},P=T(_),j=T((z,H)=>{gM(z);const K=Wp({style:S,timeout:k,easing:u},{mode:"enter"});z.style.webkitTransition=n.transitions.create("opacity",K),z.style.transition=n.transitions.create("opacity",K),h&&h(z,H)}),F=T(d),E=T(w),L=T(z=>{const H=Wp({style:S,timeout:k,easing:u},{mode:"exit"});z.style.webkitTransition=n.transitions.create("opacity",H),z.style.transition=n.transitions.create("opacity",H),g&&g(z)}),G=T(b),B=z=>{a&&a(O.current,z)};return R.jsx(D,{appear:i,in:f,nodeRef:O,onEnter:j,onEntered:F,onEntering:P,onExit:L,onExited:G,onExiting:E,addEndListener:B,timeout:k,...C,children:(z,{ownerState:H,...K})=>$.cloneElement(l,{style:{opacity:0,visibility:z==="exited"&&!f?"hidden":void 0,...U8[z],...S,...l.props.style},ref:M,...K})})});function H8(t){return tt("MuiBackdrop",t)}Ze("MuiBackdrop",["root","invisible"]);const q8=t=>{const{classes:e,invisible:r}=t;return nt({root:["root",r&&"invisible"]},H8,e)},V8=ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),MM=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiBackdrop"}),{children:o,className:a,component:i="div",invisible:l=!1,open:u,components:f={},componentsProps:h={},slotProps:d={},slots:_={},TransitionComponent:g,transitionDuration:b,...w}=n,S={...n,component:i,invisible:l},k=q8(S),D={transition:g,root:f.Root,..._},C={...h,...d},O={slots:D,slotProps:C},[M,T]=Sr("root",{elementType:V8,externalForwardedProps:O,className:Ee(k.root,a),ownerState:S}),[P,j]=Sr("transition",{elementType:DM,externalForwardedProps:O,ownerState:S});return R.jsx(P,{in:u,timeout:b,...w,...j,children:R.jsx(M,{"aria-hidden":!0,...T,classes:k,ref:r,children:o})})}),X8=Ze("MuiBox",["root"]),G8=ou(),wt=eF({themeId:Zn,defaultTheme:G8,defaultClassName:X8.root,generateClassName:HD.generate}),J8=Ge(R.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"),Y8=ie(Va)(Xe(({theme:t})=>({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`,...t.palette.mode==="light"?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...t.palette.mode==="light"?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}},"&:active":{boxShadow:t.shadows[0],...t.palette.mode==="light"?{backgroundColor:zp(t.palette.grey[200],.12)}:{backgroundColor:zp(t.palette.grey[600],.12)}}}))),K8=ie(J8)({width:24,height:16});function Z8(t){const{slots:e={},slotProps:r={},...n}=t,o=t;return R.jsx("li",{children:R.jsx(Y8,{focusRipple:!0,...n,ownerState:o,children:R.jsx(K8,{as:e.CollapsedIcon,ownerState:o,...r.collapsedIcon})})})}function Q8(t){return tt("MuiBreadcrumbs",t)}const e9=Ze("MuiBreadcrumbs",["root","ol","li","separator"]),t9=t=>{const{classes:e}=t;return nt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Q8,e)},r9=ie(bo,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(t,e)=>[{[`& .${e9.li}`]:e.li},e.root]})({}),n9=ie("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(t,e)=>e.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),o9=ie("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(t,e)=>e.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function a9(t,e,r,n){return t.reduce((o,a,i)=>(i{const j=()=>{S(!0);const F=O.current.querySelector("a[href],button,[tabindex]");F&&F.focus()};return d+h>=P.length?P:[...P.slice(0,d),R.jsx(Z8,{"aria-label":f,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:C},onClick:j},"ellipsis"),...P.slice(P.length-h,P.length)]},T=$.Children.toArray(o).filter(P=>$.isValidElement(P)).map((P,j)=>R.jsx("li",{className:D.li,children:P},`child-${j}`));return R.jsx(r9,{ref:r,component:i,color:"textSecondary",className:Ee(D.root,a),ownerState:k,...b,children:R.jsx(n9,{className:D.ol,ref:O,ownerState:k,children:a9(w||_&&T.length<=_?T:M(T),D.separator,g,k)})})});function s9(t){return tt("MuiButton",t)}const Ei=Ze("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"]),i9=$.createContext({}),c9=$.createContext(void 0),l9=t=>{const{color:e,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=t,l={root:["root",a,`${a}${he(e)}`,`size${he(o)}`,`${a}Size${he(o)}`,`color${he(e)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${he(o)}`],endIcon:["icon","endIcon",`iconSize${he(o)}`]},u=nt(l,s9,i);return{...i,...u}},PM=[{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}}}],u9=ie(Va,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${he(r.color)}`],e[`size${he(r.size)}`],e[`${r.variant}Size${he(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth]}})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ei.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Ei.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Ei.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ei.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Jt()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(t.vars||t).palette[n].main,"--variant-outlinedColor":(t.vars||t).palette[n].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.5)`:Nt(t.palette[n].main,.5),"--variant-containedColor":(t.vars||t).palette[n].contrastText,"--variant-containedBg":(t.vars||t).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[n].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[n].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[n].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[n].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ei.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ei.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),d9=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,e[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...PM]}),p9=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,e[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...PM]}),Qt=$.forwardRef(function(e,r){const n=$.useContext(i9),o=$.useContext(c9),a=tu(n,e),i=ot({props:a,name:"MuiButton"}),{children:l,color:u="primary",component:f="button",className:h,disabled:d=!1,disableElevation:_=!1,disableFocusRipple:g=!1,endIcon:b,focusVisibleClassName:w,fullWidth:S=!1,size:k="medium",startIcon:D,type:C,variant:O="text",...M}=i,T={...i,color:u,component:f,disabled:d,disableElevation:_,disableFocusRipple:g,fullWidth:S,size:k,type:C,variant:O},P=l9(T),j=D&&R.jsx(d9,{className:P.startIcon,ownerState:T,children:D}),F=b&&R.jsx(p9,{className:P.endIcon,ownerState:T,children:b}),E=o||"";return R.jsxs(u9,{ownerState:T,className:Ee(n.className,P.root,h,E),component:f,disabled:d,focusRipple:!g,focusVisibleClassName:Ee(P.focusVisible,w),ref:r,type:C,...M,classes:P,children:[j,l,F]})});function f9(t){return tt("PrivateSwitchBase",t)}Ze("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const h9=t=>{const{classes:e,checked:r,disabled:n,edge:o}=t,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${he(o)}`],input:["input"]};return nt(a,f9,e)},m9=ie(Va)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),_9=ie("input",{shouldForwardProp:Cr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),RM=$.forwardRef(function(e,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:l,disabled:u,disableFocusRipple:f=!1,edge:h=!1,icon:d,id:_,inputProps:g,inputRef:b,name:w,onBlur:S,onChange:k,onFocus:D,readOnly:C,required:O=!1,tabIndex:M,type:T,value:P,...j}=e,[F,E]=ru({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),L=Oo(),G=X=>{D&&D(X),L&&L.onFocus&&L.onFocus(X)},B=X=>{S&&S(X),L&&L.onBlur&&L.onBlur(X)},z=X=>{if(X.nativeEvent.defaultPrevented)return;const re=X.target.checked;E(re),k&&k(X,re)};let H=u;L&&typeof H>"u"&&(H=L.disabled);const K=T==="checkbox"||T==="radio",ee={...e,checked:F,disabled:H,disableFocusRipple:f,edge:h},Y=h9(ee);return R.jsxs(m9,{component:"span",className:Ee(Y.root,i),centerRipple:!0,focusRipple:!f,disabled:H,tabIndex:null,role:void 0,onFocus:G,onBlur:B,ownerState:ee,ref:r,...j,children:[R.jsx(_9,{autoFocus:n,checked:o,defaultChecked:l,className:Y.input,disabled:H,id:K?_:void 0,name:w,onChange:z,readOnly:C,ref:b,required:O,ownerState:ee,tabIndex:M,type:T,...T==="checkbox"&&P===void 0?{}:{value:P},...g}),F?a:d]})}),g9=Ge(R.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"),y9=Ge(R.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"),v9=Ge(R.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 b9(t){return tt("MuiCheckbox",t)}const s_=Ze("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),w9=t=>{const{classes:e,indeterminate:r,color:n,size:o}=t,a={root:["root",r&&"indeterminate",`color${he(n)}`,`size${he(o)}`]},i=nt(a,b9,e);return{...e,...i}},x9=ie(RM,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${he(r.size)}`],r.color!=="default"&&e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{[`&.${s_.checked}, &.${s_.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${s_.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),S9=R.jsx(y9,{}),k9=R.jsx(g9,{}),C9=R.jsx(v9,{}),tn=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiCheckbox"}),{checkedIcon:o=S9,color:a="primary",icon:i=k9,indeterminate:l=!1,indeterminateIcon:u=C9,inputProps:f,size:h="medium",disableRipple:d=!1,className:_,...g}=n,b=l?u:i,w=l?u:o,S={...n,disableRipple:d,color:a,indeterminate:l,size:h},k=w9(S);return R.jsx(x9,{type:"checkbox",inputProps:{"data-indeterminate":l,...f},icon:$.cloneElement(b,{fontSize:b.props.fontSize??h}),checkedIcon:$.cloneElement(w,{fontSize:w.props.fontSize??h}),ownerState:S,ref:r,className:Ee(k.root,_),disableRipple:d,...g,classes:k})});function $9(t){return tt("MuiCircularProgress",t)}Ze("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ta=44,_0=qa` 0% { transform: rotate(0deg); } @@ -200,7 +200,7 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp animation: ${_0} 1.4s linear infinite; `:null,T9=typeof g0!="string"?Dc` animation: ${g0} 1.4s ease-in-out infinite; - `:null,O9=t=>{const{classes:e,variant:r,color:n,disableShrink:o}=t,a={root:["root",r,`color${he(n)}`],svg:["svg"],circle:["circle",`circle${he(r)}`,o&&"circleDisableShrink"]};return nt(a,$9,e)},D9=ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:E9||{animation:`${_0} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),M9=ie("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),N9=ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${he(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(Xe(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:T9||{animation:`${g0} 1.4s ease-in-out infinite`}}]}))),P9=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:l=40,style:u,thickness:f=3.6,value:h=0,variant:d="indeterminate",..._}=n,g={...n,color:a,disableShrink:i,size:l,thickness:f,value:h,variant:d},b=O9(g),w={},S={},k={};if(d==="determinate"){const D=2*Math.PI*((Ta-f)/2);w.strokeDasharray=D.toFixed(3),k["aria-valuenow"]=Math.round(h),w.strokeDashoffset=`${((100-h)/100*D).toFixed(3)}px`,S.transform="rotate(-90deg)"}return R.jsx(D9,{className:Ee(b.root,o),style:{width:l,height:l,...S,...u},ownerState:g,ref:r,role:"progressbar",...k,..._,children:R.jsx(M9,{className:b.svg,ownerState:g,viewBox:`${Ta/2} ${Ta/2} ${Ta} ${Ta}`,children:R.jsx(N9,{className:b.circle,style:w,ownerState:g,cx:Ta,cy:Ta,r:(Ta-f)/2,fill:"none",strokeWidth:f})})})});function dC(t){return t.substring(2).toLowerCase()}function R9(t,e){return e.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const h=ar(Ws(e),l),d=Nr(b=>{const w=f.current;f.current=!1;const S=cr(l.current);if(!u.current||!l.current||"clientX"in b&&R9(b,S))return;if(i.current){i.current=!1;return}let k;b.composedPath?k=b.composedPath().includes(l.current):k=!S.documentElement.contains(b.target)||l.current.contains(b.target),!k&&(r||!w)&&o(b)}),_=b=>w=>{f.current=!0;const S=e.props[b];S&&S(w)},g={ref:h};return a!==!1&&(g[a]=_(a)),$.useEffect(()=>{if(a!==!1){const b=dC(a),w=cr(l.current),S=()=>{i.current=!0};return w.addEventListener(b,d),w.addEventListener("touchmove",S),()=>{w.removeEventListener(b,d),w.removeEventListener("touchmove",S)}}},[d,a]),n!==!1&&(g[n]=_(n)),$.useEffect(()=>{if(n!==!1){const b=dC(n),w=cr(l.current);return w.addEventListener(b,d),()=>{w.removeEventListener(b,d)}}},[d,n]),$.cloneElement(e,g)}function I9(t){const e=cr(t);return e.body===t?eo(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Gl(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function pC(t){return parseInt(eo(t).getComputedStyle(t).paddingRight,10)||0}function j9(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function fC(t,e,r,n,o){const a=[e,r,...n];[].forEach.call(t.children,i=>{const l=!a.includes(i),u=!j9(i);l&&u&&Gl(i,o)})}function i_(t,e){let r=-1;return t.some((n,o)=>e(n)?(r=o,!0):!1),r}function L9(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if(I9(n)){const i=QD(eo(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${pC(n)+i}px`;const l=cr(n).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${pC(u)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=cr(n).body;else{const i=n.parentElement,l=eo(n);a=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:l})=>{a?i.style.setProperty(l,a):i.style.removeProperty(l)})}}function z9(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class F9{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Gl(e.modalRef,!1);const o=z9(r);fC(r,e.mount,e.modalRef,o,!0);const a=i_(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:o}),n)}mount(e,r){const n=i_(this.containers,a=>a.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=L9(o,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=i_(this.containers,i=>i.modals.includes(e)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),e.modalRef&&Gl(e.modalRef,r),fC(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&Gl(i.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const B9=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function W9(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function U9(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function H9(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||U9(t))}function q9(t){const e=[],r=[];return Array.from(t.querySelectorAll(B9)).forEach((n,o)=>{const a=W9(n);a===-1||!H9(n)||(a===0?e.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(e)}function V9(){return!0}function X9(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=q9,isEnabled:i=V9,open:l}=t,u=$.useRef(!1),f=$.useRef(null),h=$.useRef(null),d=$.useRef(null),_=$.useRef(null),g=$.useRef(!1),b=$.useRef(null),w=ar(Ws(e),b),S=$.useRef(null);$.useEffect(()=>{!l||!b.current||(g.current=!r)},[r,l]),$.useEffect(()=>{if(!l||!b.current)return;const C=cr(b.current);return b.current.contains(C.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),g.current&&b.current.focus()),()=>{o||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[l]),$.useEffect(()=>{if(!l||!b.current)return;const C=cr(b.current),O=P=>{S.current=P,!(n||!i()||P.key!=="Tab")&&C.activeElement===b.current&&P.shiftKey&&(u.current=!0,h.current&&h.current.focus())},M=()=>{var z,E;const P=b.current;if(P===null)return;if(!C.hasFocus()||!i()||u.current){u.current=!1;return}if(P.contains(C.activeElement)||n&&C.activeElement!==f.current&&C.activeElement!==h.current)return;if(C.activeElement!==_.current)_.current=null;else if(_.current!==null)return;if(!g.current)return;let j=[];if((C.activeElement===f.current||C.activeElement===h.current)&&(j=a(b.current)),j.length>0){const L=!!((z=S.current)!=null&&z.shiftKey&&((E=S.current)==null?void 0:E.key)==="Tab"),G=j[0],B=j[j.length-1];typeof G!="string"&&typeof B!="string"&&(L?B.focus():G.focus())}else P.focus()};C.addEventListener("focusin",M),C.addEventListener("keydown",O,!0);const T=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(T),C.removeEventListener("focusin",M),C.removeEventListener("keydown",O,!0)}},[r,n,o,i,l,a]);const k=C=>{d.current===null&&(d.current=C.relatedTarget),g.current=!0,_.current=C.target;const O=e.props.onFocus;O&&O(C)},D=C=>{d.current===null&&(d.current=C.relatedTarget),g.current=!0};return R.jsxs($.Fragment,{children:[R.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:f,"data-testid":"sentinelStart"}),$.cloneElement(e,{ref:w,onFocus:k}),R.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:h,"data-testid":"sentinelEnd"})]})}function G9(t){return typeof t=="function"?t():t}function J9(t){return t?t.props.hasOwnProperty("in"):!1}const hC=()=>{},ep=new F9;function Y9(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:i,children:l,onClose:u,open:f,rootRef:h}=t,d=$.useRef({}),_=$.useRef(null),g=$.useRef(null),b=ar(g,h),[w,S]=$.useState(!f),k=J9(l);let D=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(D=!1);const C=()=>cr(_.current),O=()=>(d.current.modalRef=g.current,d.current.mount=_.current,d.current),M=()=>{ep.mount(O(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},T=Nr(()=>{const H=G9(e)||C().body;ep.add(O(),H),g.current&&M()}),P=()=>ep.isTopModal(O()),j=Nr(H=>{_.current=H,H&&(f&&P()?M():g.current&&Gl(g.current,D))}),z=$.useCallback(()=>{ep.remove(O(),D)},[D]);$.useEffect(()=>()=>{z()},[z]),$.useEffect(()=>{f?T():(!k||!o)&&z()},[f,z,k,o,T]);const E=H=>K=>{var ee;(ee=H.onKeyDown)==null||ee.call(H,K),!(K.key!=="Escape"||K.which===229||!P())&&(r||(K.stopPropagation(),u&&u(K,"escapeKeyDown")))},L=H=>K=>{var ee;(ee=H.onClick)==null||ee.call(H,K),K.target===K.currentTarget&&u&&u(K,"backdropClick")};return{getRootProps:(H={})=>{const K=xs(t);delete K.onTransitionEnter,delete K.onTransitionExited;const ee={...K,...H};return{role:"presentation",...ee,onKeyDown:E(ee),ref:b}},getBackdropProps:(H={})=>{const K=H;return{"aria-hidden":!0,...K,onClick:L(K),open:f}},getTransitionProps:()=>{const H=()=>{S(!1),a&&a()},K=()=>{S(!0),i&&i(),o&&z()};return{onEnter:o0(H,(l==null?void 0:l.props.onEnter)??hC),onExited:o0(K,(l==null?void 0:l.props.onExited)??hC)}},rootRef:b,portalRef:j,isTopModal:P,exited:w,hasTransition:k}}function K9(t){return tt("MuiModal",t)}Ze("MuiModal",["root","hidden","backdrop"]);const Z9=t=>{const{open:e,exited:r,classes:n}=t;return nt({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},K9,n)},Q9=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(Xe(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),eB=ie(MM,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),AM=$.forwardRef(function(e,r){const n=ot({name:"MuiModal",props:e}),{BackdropComponent:o=eB,BackdropProps:a,classes:i,className:l,closeAfterTransition:u=!1,children:f,container:h,component:d,components:_={},componentsProps:g={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:k=!1,disableRestoreFocus:D=!1,disableScrollLock:C=!1,hideBackdrop:O=!1,keepMounted:M=!1,onBackdropClick:T,onClose:P,onTransitionEnter:j,onTransitionExited:z,open:E,slotProps:L={},slots:G={},theme:B,...F}=n,H={...n,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:k,disableRestoreFocus:D,disableScrollLock:C,hideBackdrop:O,keepMounted:M},{getRootProps:K,getBackdropProps:ee,getTransitionProps:Y,portalRef:X,isTopModal:re,exited:I,hasTransition:Q}=Y9({...H,rootRef:r}),me={...H,exited:I},pe=Z9(me),ge={};if(f.props.tabIndex===void 0&&(ge.tabIndex="-1"),Q){const{onEnter:Me,onExited:Be}=Y();ge.onEnter=Me,ge.onExited=Be}const Ce={...F,slots:{root:_.Root,backdrop:_.Backdrop,...G},slotProps:{...g,...L}},[Re,Te]=Sr("root",{elementType:Q9,externalForwardedProps:Ce,getSlotProps:K,additionalProps:{ref:r,as:d},ownerState:me,className:Ee(l,pe==null?void 0:pe.root,!me.open&&me.exited&&(pe==null?void 0:pe.hidden))}),[Pe,Oe]=Sr("backdrop",{elementType:o,externalForwardedProps:Ce,additionalProps:a,getSlotProps:Me=>ee({...Me,onClick:Be=>{T&&T(Be),Me!=null&&Me.onClick&&Me.onClick(Be)}}),className:Ee(a==null?void 0:a.className,pe==null?void 0:pe.backdrop),ownerState:me}),Fe=ar(a==null?void 0:a.ref,Oe.ref);return!M&&!E&&(!Q||I)?null:R.jsx(TM,{ref:X,container:h,disablePortal:k,children:R.jsxs(Re,{...Te,children:[!O&&o?R.jsx(Pe,{...Oe,ref:Fe}):null,R.jsx(X9,{disableEnforceFocus:w,disableAutoFocus:b,disableRestoreFocus:D,isEnabled:re,open:E,children:$.cloneElement(f,ge)})]})})});function tB(t){return tt("MuiDialog",t)}const c_=Ze("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),IM=$.createContext({}),rB=ie(MM,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),nB=t=>{const{classes:e,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=t,i={root:["root"],container:["container",`scroll${he(r)}`],paper:["paper",`paperScroll${he(r)}`,`paperWidth${he(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return nt(i,tB,e)},oB=ie(AM,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),aB=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e[`scroll${he(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),sB=ie(ku,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e[`scrollPaper${he(r.scroll)}`],e[`paperWidth${he(String(r.maxWidth))}`],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})(Xe(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${c_.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${c_.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+32*2)]:{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,[`&.${c_.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ra=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialog"}),o=ta(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,"aria-modal":u=!0,BackdropComponent:f,BackdropProps:h,children:d,className:_,disableEscapeKeyDown:g=!1,fullScreen:b=!1,fullWidth:w=!1,maxWidth:S="sm",onBackdropClick:k,onClick:D,onClose:C,open:O,PaperComponent:M=ku,PaperProps:T={},scroll:P="paper",TransitionComponent:j=DM,transitionDuration:z=a,TransitionProps:E,...L}=n,G={...n,disableEscapeKeyDown:g,fullScreen:b,fullWidth:w,maxWidth:S,scroll:P},B=nB(G),F=$.useRef(),H=X=>{F.current=X.target===X.currentTarget},K=X=>{D&&D(X),F.current&&(F.current=null,k&&k(X),C&&C(X,"backdropClick"))},ee=Tf(l),Y=$.useMemo(()=>({titleId:ee}),[ee]);return R.jsx(oB,{className:Ee(B.root,_),closeAfterTransition:!0,components:{Backdrop:rB},componentsProps:{backdrop:{transitionDuration:z,as:f,...h}},disableEscapeKeyDown:g,onClose:C,open:O,ref:r,onClick:K,ownerState:G,...L,children:R.jsx(j,{appear:!0,in:O,timeout:z,role:"presentation",...E,children:R.jsx(aB,{className:Ee(B.container),onMouseDown:H,ownerState:G,children:R.jsx(sB,{as:M,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":ee,"aria-modal":u,...T,className:Ee(B.paper,T.className),ownerState:G,children:R.jsx(IM.Provider,{value:Y,children:d})})})})})});function iB(t){return tt("MuiDialogActions",t)}Ze("MuiDialogActions",["root","spacing"]);const cB=t=>{const{classes:e,disableSpacing:r}=t;return nt({root:["root",!r&&"spacing"]},iB,e)},lB=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),na=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...i}=n,l={...n,disableSpacing:a},u=cB(l);return R.jsx(lB,{className:Ee(u.root,o),ownerState:l,ref:r,...i})});function uB(t){return tt("MuiDialogContent",t)}Ze("MuiDialogContent",["root","dividers"]);function dB(t){return tt("MuiDialogTitle",t)}const pB=Ze("MuiDialogTitle",["root"]),fB=t=>{const{classes:e,dividers:r}=t;return nt({root:["root",r&&"dividers"]},uB,e)},hB=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})(Xe(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${pB.root} + &`]:{paddingTop:0}}}]}))),oa=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...i}=n,l={...n,dividers:a},u=fB(l);return R.jsx(hB,{className:Ee(u.root,o),ownerState:l,ref:r,...i})});function mB(t){return tt("MuiDialogContentText",t)}Ze("MuiDialogContentText",["root"]);const _B=t=>{const{classes:e}=t,n=nt({root:["root"]},mB,e);return{...e,...n}},gB=ie(bo,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({}),If=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogContentText"}),{children:o,className:a,...i}=n,l=_B(i);return R.jsx(gB,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:i,className:Ee(l.root,a),...n,classes:l})}),yB=t=>{const{classes:e}=t;return nt({root:["root"]},dB,e)},vB=ie(bo,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),aa=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogTitle"}),{className:o,id:a,...i}=n,l=n,u=yB(l),{titleId:f=a}=$.useContext(IM);return R.jsx(vB,{component:"h2",className:Ee(u.root,o),ownerState:l,ref:r,variant:"h6",id:a??f,...i})}),mC=Ze("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function bB(t){return tt("MuiFab",t)}const _C=Ze("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),wB=t=>{const{color:e,variant:r,classes:n,size:o}=t,a={root:["root",r,`size${he(o)}`,e==="inherit"?"colorInherit":e]},i=nt(a,bB,n);return{...n,...i}},xB=ie(Va,{name:"MuiFab",slot:"Root",shouldForwardProp:t=>Cr(t)||t==="classes",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${he(r.size)}`],r.color==="inherit"&&e.colorInherit,e[he(r.size)],e[r.color]]}})(Xe(({theme:t})=>{var e,r;return{...t.typography.button,minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:(r=(e=t.palette).getContrastText)==null?void 0:r.call(e,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},[`&.${_C.focusVisible}`]:{boxShadow:(t.vars||t).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"}}]}}),Xe(({theme:t})=>({variants:[...Object.entries(t.palette).filter(Jt(["dark","contrastText"])).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}}}}))]})),Xe(({theme:t})=>({[`&.${_C.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}))),Cs=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFab"}),{children:o,className:a,color:i="default",component:l="button",disabled:u=!1,disableFocusRipple:f=!1,focusVisibleClassName:h,size:d="large",variant:_="circular",...g}=n,b={...n,color:i,component:l,disabled:u,disableFocusRipple:f,size:d,variant:_},w=wB(b);return R.jsx(xB,{className:Ee(w.root,a),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:Ee(w.focusVisible,h),ownerState:b,ref:r,...g,classes:w,children:o})}),SB=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:o,size:a,hiddenLabel:i,multiline:l}=t,u={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${he(a)}`,i&&"hiddenLabel",l&&"multiline"],input:["input"]},f=nt(u,B8,e);return{...e,...f}},kB=ie(Rf,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Nf(t,e),!r.disableUnderline&&e.underline]}})(Xe(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${ls.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${ls.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ls.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ls.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ls.disabled}, .${ls.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${ls.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Jt()).map(([i])=>{var l;return{props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(l=(t.vars||t).palette[i])==null?void 0:l.main}`}}}}),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:l})=>i.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),CB=ie(Af,{name:"MuiFilledInput",slot:"Input",overridesResolver:Pf})(Xe(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ab=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:l=!1,hiddenLabel:u,inputComponent:f="input",multiline:h=!1,slotProps:d,slots:_={},type:g="text",...b}=n,w={...n,disableUnderline:o,fullWidth:l,inputComponent:f,multiline:h,type:g},S=SB(n),k={root:{ownerState:w},input:{ownerState:w}},D=d??i?kr(k,d??i):k,C=_.root??a.Root??kB,O=_.input??a.Input??CB;return R.jsx(Rb,{slots:{root:C,input:O},slotProps:D,fullWidth:l,inputComponent:f,multiline:h,ref:r,type:g,...b,classes:S})});Ab.muiName="Input";function $B(t){return tt("MuiFormControl",t)}Ze("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const EB=t=>{const{classes:e,margin:r,fullWidth:n}=t,o={root:["root",r!=="none"&&`margin${he(r)}`,n&&"fullWidth"]};return nt(o,$B,e)},TB=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`margin${he(r.margin)}`],r.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Fi=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:l="div",disabled:u=!1,error:f=!1,focused:h,fullWidth:d=!1,hiddenLabel:_=!1,margin:g="none",required:b=!1,size:w="medium",variant:S="outlined",...k}=n,D={...n,color:i,component:l,disabled:u,error:f,fullWidth:d,hiddenLabel:_,margin:g,required:b,size:w,variant:S},C=EB(D),[O,M]=$.useState(()=>{let B=!1;return o&&$.Children.forEach(o,F=>{if(!r_(F,["Input","Select"]))return;const H=r_(F,["Select"])?F.props.input:F;H&&I8(H.props)&&(B=!0)}),B}),[T,P]=$.useState(()=>{let B=!1;return o&&$.Children.forEach(o,F=>{r_(F,["Input","Select"])&&(qp(F.props,!0)||qp(F.props.inputProps,!0))&&(B=!0)}),B}),[j,z]=$.useState(!1);u&&j&&z(!1);const E=h!==void 0&&!u?h:j;let L;$.useRef(!1);const G=$.useMemo(()=>({adornedStart:O,setAdornedStart:M,color:i,disabled:u,error:f,filled:T,focused:E,fullWidth:d,hiddenLabel:_,size:w,onBlur:()=>{z(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{z(!0)},registerEffect:L,required:b,variant:S}),[O,i,u,f,T,E,d,_,L,b,w,S]);return R.jsx(Pb.Provider,{value:G,children:R.jsx(TB,{as:l,ownerState:D,className:Ee(C.root,a),ref:r,...k,children:o})})});function OB(t){return tt("MuiFormControlLabel",t)}const Ll=Ze("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),DB=t=>{const{classes:e,disabled:r,labelPlacement:n,error:o,required:a}=t,i={root:["root",r&&"disabled",`labelPlacement${he(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return nt(i,OB,e)},MB=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ll.label}`]:e.label},e.root,e[`labelPlacement${he(r.labelPlacement)}`]]}})(Xe(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ll.disabled}`]:{cursor:"default"},[`& .${Ll.label}`]:{[`&.${Ll.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),NB=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Xe(({theme:t})=>({[`&.${Ll.error}`]:{color:(t.vars||t).palette.error.main}}))),gt=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:i={},control:l,disabled:u,disableTypography:f,inputRef:h,label:d,labelPlacement:_="end",name:g,onChange:b,required:w,slots:S={},slotProps:k={},value:D,...C}=n,O=Oo(),M=u??l.props.disabled??(O==null?void 0:O.disabled),T=w??l.props.required,P={disabled:M,required:T};["checked","name","onChange","value","inputRef"].forEach(H=>{typeof l.props[H]>"u"&&typeof n[H]<"u"&&(P[H]=n[H])});const j=Ga({props:n,muiFormControl:O,states:["error"]}),z={...n,disabled:M,labelPlacement:_,required:T,error:j.error},E=DB(z),L={slots:S,slotProps:{...i,...k}},[G,B]=Sr("typography",{elementType:bo,externalForwardedProps:L,ownerState:z});let F=d;return F!=null&&F.type!==bo&&!f&&(F=R.jsx(G,{component:"span",...B,className:Ee(E.label,B==null?void 0:B.className),children:F})),R.jsxs(MB,{className:Ee(E.root,a),ownerState:z,ref:r,...C,children:[$.cloneElement(l,P),T?R.jsxs("div",{children:[F,R.jsxs(NB,{ownerState:z,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):F]})});function PB(t){return tt("MuiFormGroup",t)}Ze("MuiFormGroup",["root","row","error"]);const RB=t=>{const{classes:e,row:r,error:n}=t;return nt({root:["root",r&&"row",n&&"error"]},PB,e)},AB=ie("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.row&&e.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),l_=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormGroup"}),{className:o,row:a=!1,...i}=n,l=Oo(),u=Ga({props:n,muiFormControl:l,states:["error"]}),f={...n,row:a,error:u.error},h=RB(f);return R.jsx(AB,{className:Ee(h.root,o),ownerState:f,ref:r,...i})});function IB(t){return tt("MuiFormHelperText",t)}const gC=Ze("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var yC;const jB=t=>{const{classes:e,contained:r,size:n,disabled:o,error:a,filled:i,focused:l,required:u}=t,f={root:["root",o&&"disabled",a&&"error",n&&`size${he(n)}`,r&&"contained",l&&"focused",i&&"filled",u&&"required"]};return nt(f,IB,e)},LB=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${he(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${gC.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${gC.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),zB=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p",disabled:l,error:u,filled:f,focused:h,margin:d,required:_,variant:g,...b}=n,w=Oo(),S=Ga({props:n,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),k={...n,component:i,contained:S.variant==="filled"||S.variant==="outlined",variant:S.variant,size:S.size,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required};delete k.ownerState;const D=jB(k);return R.jsx(LB,{as:i,className:Ee(D.root,a),ref:r,...b,ownerState:k,children:o===" "?yC||(yC=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function FB(t){return tt("MuiFormLabel",t)}const Jl=Ze("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),BB=t=>{const{classes:e,color:r,focused:n,disabled:o,error:a,filled:i,required:l}=t,u={root:["root",`color${he(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return nt(u,FB,e)},WB=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{[`&.${Jl.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${Jl.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Jl.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),UB=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Xe(({theme:t})=>({[`&.${Jl.error}`]:{color:(t.vars||t).palette.error.main}}))),HB=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormLabel"}),{children:o,className:a,color:i,component:l="label",disabled:u,error:f,filled:h,focused:d,required:_,...g}=n,b=Oo(),w=Ga({props:n,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),S={...n,color:w.color||"primary",component:l,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required},k=BB(S);return R.jsxs(WB,{as:l,ownerState:S,className:Ee(k.root,a),ref:r,...g,children:[o,w.required&&R.jsxs(UB,{ownerState:S,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]})});function y0(t){return`scale(${t}, ${t**2})`}const qB={entering:{opacity:1,transform:y0(1)},entered:{opacity:1,transform:"none"}},u_=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),iu=$.forwardRef(function(e,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:l,onEnter:u,onEntered:f,onEntering:h,onExit:d,onExited:_,onExiting:g,style:b,timeout:w="auto",TransitionComponent:S=To,...k}=e,D=vs(),C=$.useRef(),O=ta(),M=$.useRef(null),T=ar(M,Ws(a),r),P=H=>K=>{if(H){const ee=M.current;K===void 0?H(ee):H(ee,K)}},j=P(h),z=P((H,K)=>{gM(H);const{duration:ee,delay:Y,easing:X}=Wp({style:b,timeout:w,easing:i},{mode:"enter"});let re;w==="auto"?(re=O.transitions.getAutoHeightDuration(H.clientHeight),C.current=re):re=ee,H.style.transition=[O.transitions.create("opacity",{duration:re,delay:Y}),O.transitions.create("transform",{duration:u_?re:re*.666,delay:Y,easing:X})].join(","),u&&u(H,K)}),E=P(f),L=P(g),G=P(H=>{const{duration:K,delay:ee,easing:Y}=Wp({style:b,timeout:w,easing:i},{mode:"exit"});let X;w==="auto"?(X=O.transitions.getAutoHeightDuration(H.clientHeight),C.current=X):X=K,H.style.transition=[O.transitions.create("opacity",{duration:X,delay:ee}),O.transitions.create("transform",{duration:u_?X:X*.666,delay:u_?ee:ee||X*.333,easing:Y})].join(","),H.style.opacity=0,H.style.transform=y0(.75),d&&d(H)}),B=P(_),F=H=>{w==="auto"&&D.start(C.current||0,H),n&&n(M.current,H)};return R.jsx(S,{appear:o,in:l,nodeRef:M,onEnter:z,onEntered:E,onEntering:j,onExit:G,onExited:B,onExiting:L,addEndListener:F,timeout:w==="auto"?null:w,...k,children:(H,{ownerState:K,...ee})=>$.cloneElement(a,{style:{opacity:0,transform:y0(.75),visibility:H==="exited"&&!l?"hidden":void 0,...qB[H],...b,...a.props.style},ref:T,...ee})})});iu&&(iu.muiSupportAuto=!0);const VB=hz({themeId:Zn}),XB=t=>{const{classes:e,disableUnderline:r}=t,o=nt({root:["root",!r&&"underline"],input:["input"]},z8,e);return{...e,...o}},GB=ie(Rf,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Nf(t,e),!r.disableUnderline&&e.underline]}})(Xe(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wl.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${wl.disabled}, .${wl.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${wl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Jt()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),JB=ie(Af,{name:"MuiInput",slot:"Input",overridesResolver:Pf})({}),mo=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:l=!1,inputComponent:u="input",multiline:f=!1,slotProps:h,slots:d={},type:_="text",...g}=n,b=XB(n),S={root:{ownerState:{disableUnderline:o}}},k=h??i?kr(h??i,S):S,D=d.root??a.Root??GB,C=d.input??a.Input??JB;return R.jsx(Rb,{slots:{root:D,input:C},slotProps:k,fullWidth:l,inputComponent:u,multiline:f,ref:r,type:_,...g,classes:b})});mo.muiName="Input";function YB(t){return tt("MuiInputLabel",t)}Ze("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const KB=t=>{const{classes:e,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:l}=t,u={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${he(n)}`,i],asterisk:[l&&"asterisk"]},f=nt(u,YB,e);return{...e,...f}},ZB=ie(HB,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Jl.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(Xe(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Tp=$.forwardRef(function(e,r){const n=ot({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:a,shrink:i,variant:l,className:u,...f}=n,h=Oo();let d=i;typeof d>"u"&&h&&(d=h.filled||h.focused||h.adornedStart);const _=Ga({props:n,muiFormControl:h,states:["size","variant","required","focused"]}),g={...n,disableAnimation:o,formControl:h,shrink:d,size:_.size,variant:_.variant,required:_.required,focused:_.focused},b=KB(g);return R.jsx(ZB,{"data-shrink":d,ref:r,className:Ee(b.root,u),...f,ownerState:g,classes:b})});function QB(t){return tt("MuiLinearProgress",t)}Ze("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const v0=4,b0=qa` + `:null,O9=t=>{const{classes:e,variant:r,color:n,disableShrink:o}=t,a={root:["root",r,`color${he(n)}`],svg:["svg"],circle:["circle",`circle${he(r)}`,o&&"circleDisableShrink"]};return nt(a,$9,e)},D9=ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:E9||{animation:`${_0} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),M9=ie("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),N9=ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${he(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(Xe(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:T9||{animation:`${g0} 1.4s ease-in-out infinite`}}]}))),P9=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:l=40,style:u,thickness:f=3.6,value:h=0,variant:d="indeterminate",..._}=n,g={...n,color:a,disableShrink:i,size:l,thickness:f,value:h,variant:d},b=O9(g),w={},S={},k={};if(d==="determinate"){const D=2*Math.PI*((Ta-f)/2);w.strokeDasharray=D.toFixed(3),k["aria-valuenow"]=Math.round(h),w.strokeDashoffset=`${((100-h)/100*D).toFixed(3)}px`,S.transform="rotate(-90deg)"}return R.jsx(D9,{className:Ee(b.root,o),style:{width:l,height:l,...S,...u},ownerState:g,ref:r,role:"progressbar",...k,..._,children:R.jsx(M9,{className:b.svg,ownerState:g,viewBox:`${Ta/2} ${Ta/2} ${Ta} ${Ta}`,children:R.jsx(N9,{className:b.circle,style:w,ownerState:g,cx:Ta,cy:Ta,r:(Ta-f)/2,fill:"none",strokeWidth:f})})})});function dC(t){return t.substring(2).toLowerCase()}function R9(t,e){return e.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const h=ar(Ws(e),l),d=Nr(b=>{const w=f.current;f.current=!1;const S=cr(l.current);if(!u.current||!l.current||"clientX"in b&&R9(b,S))return;if(i.current){i.current=!1;return}let k;b.composedPath?k=b.composedPath().includes(l.current):k=!S.documentElement.contains(b.target)||l.current.contains(b.target),!k&&(r||!w)&&o(b)}),_=b=>w=>{f.current=!0;const S=e.props[b];S&&S(w)},g={ref:h};return a!==!1&&(g[a]=_(a)),$.useEffect(()=>{if(a!==!1){const b=dC(a),w=cr(l.current),S=()=>{i.current=!0};return w.addEventListener(b,d),w.addEventListener("touchmove",S),()=>{w.removeEventListener(b,d),w.removeEventListener("touchmove",S)}}},[d,a]),n!==!1&&(g[n]=_(n)),$.useEffect(()=>{if(n!==!1){const b=dC(n),w=cr(l.current);return w.addEventListener(b,d),()=>{w.removeEventListener(b,d)}}},[d,n]),$.cloneElement(e,g)}function I9(t){const e=cr(t);return e.body===t?eo(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Gl(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function pC(t){return parseInt(eo(t).getComputedStyle(t).paddingRight,10)||0}function j9(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function fC(t,e,r,n,o){const a=[e,r,...n];[].forEach.call(t.children,i=>{const l=!a.includes(i),u=!j9(i);l&&u&&Gl(i,o)})}function i_(t,e){let r=-1;return t.some((n,o)=>e(n)?(r=o,!0):!1),r}function L9(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if(I9(n)){const i=QD(eo(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${pC(n)+i}px`;const l=cr(n).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${pC(u)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=cr(n).body;else{const i=n.parentElement,l=eo(n);a=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:l})=>{a?i.style.setProperty(l,a):i.style.removeProperty(l)})}}function F9(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class z9{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Gl(e.modalRef,!1);const o=F9(r);fC(r,e.mount,e.modalRef,o,!0);const a=i_(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:o}),n)}mount(e,r){const n=i_(this.containers,a=>a.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=L9(o,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=i_(this.containers,i=>i.modals.includes(e)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),e.modalRef&&Gl(e.modalRef,r),fC(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&Gl(i.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const B9=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function W9(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function U9(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function H9(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||U9(t))}function q9(t){const e=[],r=[];return Array.from(t.querySelectorAll(B9)).forEach((n,o)=>{const a=W9(n);a===-1||!H9(n)||(a===0?e.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(e)}function V9(){return!0}function X9(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=q9,isEnabled:i=V9,open:l}=t,u=$.useRef(!1),f=$.useRef(null),h=$.useRef(null),d=$.useRef(null),_=$.useRef(null),g=$.useRef(!1),b=$.useRef(null),w=ar(Ws(e),b),S=$.useRef(null);$.useEffect(()=>{!l||!b.current||(g.current=!r)},[r,l]),$.useEffect(()=>{if(!l||!b.current)return;const C=cr(b.current);return b.current.contains(C.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),g.current&&b.current.focus()),()=>{o||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[l]),$.useEffect(()=>{if(!l||!b.current)return;const C=cr(b.current),O=P=>{S.current=P,!(n||!i()||P.key!=="Tab")&&C.activeElement===b.current&&P.shiftKey&&(u.current=!0,h.current&&h.current.focus())},M=()=>{var F,E;const P=b.current;if(P===null)return;if(!C.hasFocus()||!i()||u.current){u.current=!1;return}if(P.contains(C.activeElement)||n&&C.activeElement!==f.current&&C.activeElement!==h.current)return;if(C.activeElement!==_.current)_.current=null;else if(_.current!==null)return;if(!g.current)return;let j=[];if((C.activeElement===f.current||C.activeElement===h.current)&&(j=a(b.current)),j.length>0){const L=!!((F=S.current)!=null&&F.shiftKey&&((E=S.current)==null?void 0:E.key)==="Tab"),G=j[0],B=j[j.length-1];typeof G!="string"&&typeof B!="string"&&(L?B.focus():G.focus())}else P.focus()};C.addEventListener("focusin",M),C.addEventListener("keydown",O,!0);const T=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(T),C.removeEventListener("focusin",M),C.removeEventListener("keydown",O,!0)}},[r,n,o,i,l,a]);const k=C=>{d.current===null&&(d.current=C.relatedTarget),g.current=!0,_.current=C.target;const O=e.props.onFocus;O&&O(C)},D=C=>{d.current===null&&(d.current=C.relatedTarget),g.current=!0};return R.jsxs($.Fragment,{children:[R.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:f,"data-testid":"sentinelStart"}),$.cloneElement(e,{ref:w,onFocus:k}),R.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:h,"data-testid":"sentinelEnd"})]})}function G9(t){return typeof t=="function"?t():t}function J9(t){return t?t.props.hasOwnProperty("in"):!1}const hC=()=>{},ep=new z9;function Y9(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:i,children:l,onClose:u,open:f,rootRef:h}=t,d=$.useRef({}),_=$.useRef(null),g=$.useRef(null),b=ar(g,h),[w,S]=$.useState(!f),k=J9(l);let D=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(D=!1);const C=()=>cr(_.current),O=()=>(d.current.modalRef=g.current,d.current.mount=_.current,d.current),M=()=>{ep.mount(O(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},T=Nr(()=>{const H=G9(e)||C().body;ep.add(O(),H),g.current&&M()}),P=()=>ep.isTopModal(O()),j=Nr(H=>{_.current=H,H&&(f&&P()?M():g.current&&Gl(g.current,D))}),F=$.useCallback(()=>{ep.remove(O(),D)},[D]);$.useEffect(()=>()=>{F()},[F]),$.useEffect(()=>{f?T():(!k||!o)&&F()},[f,F,k,o,T]);const E=H=>K=>{var ee;(ee=H.onKeyDown)==null||ee.call(H,K),!(K.key!=="Escape"||K.which===229||!P())&&(r||(K.stopPropagation(),u&&u(K,"escapeKeyDown")))},L=H=>K=>{var ee;(ee=H.onClick)==null||ee.call(H,K),K.target===K.currentTarget&&u&&u(K,"backdropClick")};return{getRootProps:(H={})=>{const K=xs(t);delete K.onTransitionEnter,delete K.onTransitionExited;const ee={...K,...H};return{role:"presentation",...ee,onKeyDown:E(ee),ref:b}},getBackdropProps:(H={})=>{const K=H;return{"aria-hidden":!0,...K,onClick:L(K),open:f}},getTransitionProps:()=>{const H=()=>{S(!1),a&&a()},K=()=>{S(!0),i&&i(),o&&F()};return{onEnter:o0(H,(l==null?void 0:l.props.onEnter)??hC),onExited:o0(K,(l==null?void 0:l.props.onExited)??hC)}},rootRef:b,portalRef:j,isTopModal:P,exited:w,hasTransition:k}}function K9(t){return tt("MuiModal",t)}Ze("MuiModal",["root","hidden","backdrop"]);const Z9=t=>{const{open:e,exited:r,classes:n}=t;return nt({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},K9,n)},Q9=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(Xe(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),eB=ie(MM,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),AM=$.forwardRef(function(e,r){const n=ot({name:"MuiModal",props:e}),{BackdropComponent:o=eB,BackdropProps:a,classes:i,className:l,closeAfterTransition:u=!1,children:f,container:h,component:d,components:_={},componentsProps:g={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:k=!1,disableRestoreFocus:D=!1,disableScrollLock:C=!1,hideBackdrop:O=!1,keepMounted:M=!1,onBackdropClick:T,onClose:P,onTransitionEnter:j,onTransitionExited:F,open:E,slotProps:L={},slots:G={},theme:B,...z}=n,H={...n,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:k,disableRestoreFocus:D,disableScrollLock:C,hideBackdrop:O,keepMounted:M},{getRootProps:K,getBackdropProps:ee,getTransitionProps:Y,portalRef:X,isTopModal:re,exited:I,hasTransition:Q}=Y9({...H,rootRef:r}),me={...H,exited:I},pe=Z9(me),ge={};if(f.props.tabIndex===void 0&&(ge.tabIndex="-1"),Q){const{onEnter:Me,onExited:Be}=Y();ge.onEnter=Me,ge.onExited=Be}const Ce={...z,slots:{root:_.Root,backdrop:_.Backdrop,...G},slotProps:{...g,...L}},[Re,Te]=Sr("root",{elementType:Q9,externalForwardedProps:Ce,getSlotProps:K,additionalProps:{ref:r,as:d},ownerState:me,className:Ee(l,pe==null?void 0:pe.root,!me.open&&me.exited&&(pe==null?void 0:pe.hidden))}),[Pe,Oe]=Sr("backdrop",{elementType:o,externalForwardedProps:Ce,additionalProps:a,getSlotProps:Me=>ee({...Me,onClick:Be=>{T&&T(Be),Me!=null&&Me.onClick&&Me.onClick(Be)}}),className:Ee(a==null?void 0:a.className,pe==null?void 0:pe.backdrop),ownerState:me}),ze=ar(a==null?void 0:a.ref,Oe.ref);return!M&&!E&&(!Q||I)?null:R.jsx(TM,{ref:X,container:h,disablePortal:k,children:R.jsxs(Re,{...Te,children:[!O&&o?R.jsx(Pe,{...Oe,ref:ze}):null,R.jsx(X9,{disableEnforceFocus:w,disableAutoFocus:b,disableRestoreFocus:D,isEnabled:re,open:E,children:$.cloneElement(f,ge)})]})})});function tB(t){return tt("MuiDialog",t)}const c_=Ze("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),IM=$.createContext({}),rB=ie(MM,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),nB=t=>{const{classes:e,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=t,i={root:["root"],container:["container",`scroll${he(r)}`],paper:["paper",`paperScroll${he(r)}`,`paperWidth${he(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return nt(i,tB,e)},oB=ie(AM,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),aB=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e[`scroll${he(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),sB=ie(ku,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e[`scrollPaper${he(r.scroll)}`],e[`paperWidth${he(String(r.maxWidth))}`],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})(Xe(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${c_.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${c_.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+32*2)]:{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,[`&.${c_.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ra=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialog"}),o=ta(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,"aria-modal":u=!0,BackdropComponent:f,BackdropProps:h,children:d,className:_,disableEscapeKeyDown:g=!1,fullScreen:b=!1,fullWidth:w=!1,maxWidth:S="sm",onBackdropClick:k,onClick:D,onClose:C,open:O,PaperComponent:M=ku,PaperProps:T={},scroll:P="paper",TransitionComponent:j=DM,transitionDuration:F=a,TransitionProps:E,...L}=n,G={...n,disableEscapeKeyDown:g,fullScreen:b,fullWidth:w,maxWidth:S,scroll:P},B=nB(G),z=$.useRef(),H=X=>{z.current=X.target===X.currentTarget},K=X=>{D&&D(X),z.current&&(z.current=null,k&&k(X),C&&C(X,"backdropClick"))},ee=Tf(l),Y=$.useMemo(()=>({titleId:ee}),[ee]);return R.jsx(oB,{className:Ee(B.root,_),closeAfterTransition:!0,components:{Backdrop:rB},componentsProps:{backdrop:{transitionDuration:F,as:f,...h}},disableEscapeKeyDown:g,onClose:C,open:O,ref:r,onClick:K,ownerState:G,...L,children:R.jsx(j,{appear:!0,in:O,timeout:F,role:"presentation",...E,children:R.jsx(aB,{className:Ee(B.container),onMouseDown:H,ownerState:G,children:R.jsx(sB,{as:M,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":ee,"aria-modal":u,...T,className:Ee(B.paper,T.className),ownerState:G,children:R.jsx(IM.Provider,{value:Y,children:d})})})})})});function iB(t){return tt("MuiDialogActions",t)}Ze("MuiDialogActions",["root","spacing"]);const cB=t=>{const{classes:e,disableSpacing:r}=t;return nt({root:["root",!r&&"spacing"]},iB,e)},lB=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),na=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...i}=n,l={...n,disableSpacing:a},u=cB(l);return R.jsx(lB,{className:Ee(u.root,o),ownerState:l,ref:r,...i})});function uB(t){return tt("MuiDialogContent",t)}Ze("MuiDialogContent",["root","dividers"]);function dB(t){return tt("MuiDialogTitle",t)}const pB=Ze("MuiDialogTitle",["root"]),fB=t=>{const{classes:e,dividers:r}=t;return nt({root:["root",r&&"dividers"]},uB,e)},hB=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})(Xe(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${pB.root} + &`]:{paddingTop:0}}}]}))),oa=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...i}=n,l={...n,dividers:a},u=fB(l);return R.jsx(hB,{className:Ee(u.root,o),ownerState:l,ref:r,...i})});function mB(t){return tt("MuiDialogContentText",t)}Ze("MuiDialogContentText",["root"]);const _B=t=>{const{classes:e}=t,n=nt({root:["root"]},mB,e);return{...e,...n}},gB=ie(bo,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({}),If=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogContentText"}),{children:o,className:a,...i}=n,l=_B(i);return R.jsx(gB,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:i,className:Ee(l.root,a),...n,classes:l})}),yB=t=>{const{classes:e}=t;return nt({root:["root"]},dB,e)},vB=ie(bo,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),aa=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogTitle"}),{className:o,id:a,...i}=n,l=n,u=yB(l),{titleId:f=a}=$.useContext(IM);return R.jsx(vB,{component:"h2",className:Ee(u.root,o),ownerState:l,ref:r,variant:"h6",id:a??f,...i})}),mC=Ze("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function bB(t){return tt("MuiFab",t)}const _C=Ze("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),wB=t=>{const{color:e,variant:r,classes:n,size:o}=t,a={root:["root",r,`size${he(o)}`,e==="inherit"?"colorInherit":e]},i=nt(a,bB,n);return{...n,...i}},xB=ie(Va,{name:"MuiFab",slot:"Root",shouldForwardProp:t=>Cr(t)||t==="classes",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${he(r.size)}`],r.color==="inherit"&&e.colorInherit,e[he(r.size)],e[r.color]]}})(Xe(({theme:t})=>{var e,r;return{...t.typography.button,minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:(r=(e=t.palette).getContrastText)==null?void 0:r.call(e,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},[`&.${_C.focusVisible}`]:{boxShadow:(t.vars||t).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"}}]}}),Xe(({theme:t})=>({variants:[...Object.entries(t.palette).filter(Jt(["dark","contrastText"])).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}}}}))]})),Xe(({theme:t})=>({[`&.${_C.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}))),Cs=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFab"}),{children:o,className:a,color:i="default",component:l="button",disabled:u=!1,disableFocusRipple:f=!1,focusVisibleClassName:h,size:d="large",variant:_="circular",...g}=n,b={...n,color:i,component:l,disabled:u,disableFocusRipple:f,size:d,variant:_},w=wB(b);return R.jsx(xB,{className:Ee(w.root,a),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:Ee(w.focusVisible,h),ownerState:b,ref:r,...g,classes:w,children:o})}),SB=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:o,size:a,hiddenLabel:i,multiline:l}=t,u={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${he(a)}`,i&&"hiddenLabel",l&&"multiline"],input:["input"]},f=nt(u,B8,e);return{...e,...f}},kB=ie(Rf,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Nf(t,e),!r.disableUnderline&&e.underline]}})(Xe(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${ls.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${ls.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ls.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ls.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ls.disabled}, .${ls.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${ls.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Jt()).map(([i])=>{var l;return{props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(l=(t.vars||t).palette[i])==null?void 0:l.main}`}}}}),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:l})=>i.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),CB=ie(Af,{name:"MuiFilledInput",slot:"Input",overridesResolver:Pf})(Xe(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ab=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:l=!1,hiddenLabel:u,inputComponent:f="input",multiline:h=!1,slotProps:d,slots:_={},type:g="text",...b}=n,w={...n,disableUnderline:o,fullWidth:l,inputComponent:f,multiline:h,type:g},S=SB(n),k={root:{ownerState:w},input:{ownerState:w}},D=d??i?kr(k,d??i):k,C=_.root??a.Root??kB,O=_.input??a.Input??CB;return R.jsx(Rb,{slots:{root:C,input:O},slotProps:D,fullWidth:l,inputComponent:f,multiline:h,ref:r,type:g,...b,classes:S})});Ab.muiName="Input";function $B(t){return tt("MuiFormControl",t)}Ze("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const EB=t=>{const{classes:e,margin:r,fullWidth:n}=t,o={root:["root",r!=="none"&&`margin${he(r)}`,n&&"fullWidth"]};return nt(o,$B,e)},TB=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`margin${he(r.margin)}`],r.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),zi=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:l="div",disabled:u=!1,error:f=!1,focused:h,fullWidth:d=!1,hiddenLabel:_=!1,margin:g="none",required:b=!1,size:w="medium",variant:S="outlined",...k}=n,D={...n,color:i,component:l,disabled:u,error:f,fullWidth:d,hiddenLabel:_,margin:g,required:b,size:w,variant:S},C=EB(D),[O,M]=$.useState(()=>{let B=!1;return o&&$.Children.forEach(o,z=>{if(!r_(z,["Input","Select"]))return;const H=r_(z,["Select"])?z.props.input:z;H&&I8(H.props)&&(B=!0)}),B}),[T,P]=$.useState(()=>{let B=!1;return o&&$.Children.forEach(o,z=>{r_(z,["Input","Select"])&&(qp(z.props,!0)||qp(z.props.inputProps,!0))&&(B=!0)}),B}),[j,F]=$.useState(!1);u&&j&&F(!1);const E=h!==void 0&&!u?h:j;let L;$.useRef(!1);const G=$.useMemo(()=>({adornedStart:O,setAdornedStart:M,color:i,disabled:u,error:f,filled:T,focused:E,fullWidth:d,hiddenLabel:_,size:w,onBlur:()=>{F(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{F(!0)},registerEffect:L,required:b,variant:S}),[O,i,u,f,T,E,d,_,L,b,w,S]);return R.jsx(Pb.Provider,{value:G,children:R.jsx(TB,{as:l,ownerState:D,className:Ee(C.root,a),ref:r,...k,children:o})})});function OB(t){return tt("MuiFormControlLabel",t)}const Ll=Ze("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),DB=t=>{const{classes:e,disabled:r,labelPlacement:n,error:o,required:a}=t,i={root:["root",r&&"disabled",`labelPlacement${he(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return nt(i,OB,e)},MB=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ll.label}`]:e.label},e.root,e[`labelPlacement${he(r.labelPlacement)}`]]}})(Xe(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ll.disabled}`]:{cursor:"default"},[`& .${Ll.label}`]:{[`&.${Ll.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),NB=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Xe(({theme:t})=>({[`&.${Ll.error}`]:{color:(t.vars||t).palette.error.main}}))),gt=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:i={},control:l,disabled:u,disableTypography:f,inputRef:h,label:d,labelPlacement:_="end",name:g,onChange:b,required:w,slots:S={},slotProps:k={},value:D,...C}=n,O=Oo(),M=u??l.props.disabled??(O==null?void 0:O.disabled),T=w??l.props.required,P={disabled:M,required:T};["checked","name","onChange","value","inputRef"].forEach(H=>{typeof l.props[H]>"u"&&typeof n[H]<"u"&&(P[H]=n[H])});const j=Ga({props:n,muiFormControl:O,states:["error"]}),F={...n,disabled:M,labelPlacement:_,required:T,error:j.error},E=DB(F),L={slots:S,slotProps:{...i,...k}},[G,B]=Sr("typography",{elementType:bo,externalForwardedProps:L,ownerState:F});let z=d;return z!=null&&z.type!==bo&&!f&&(z=R.jsx(G,{component:"span",...B,className:Ee(E.label,B==null?void 0:B.className),children:z})),R.jsxs(MB,{className:Ee(E.root,a),ownerState:F,ref:r,...C,children:[$.cloneElement(l,P),T?R.jsxs("div",{children:[z,R.jsxs(NB,{ownerState:F,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):z]})});function PB(t){return tt("MuiFormGroup",t)}Ze("MuiFormGroup",["root","row","error"]);const RB=t=>{const{classes:e,row:r,error:n}=t;return nt({root:["root",r&&"row",n&&"error"]},PB,e)},AB=ie("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.row&&e.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),l_=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormGroup"}),{className:o,row:a=!1,...i}=n,l=Oo(),u=Ga({props:n,muiFormControl:l,states:["error"]}),f={...n,row:a,error:u.error},h=RB(f);return R.jsx(AB,{className:Ee(h.root,o),ownerState:f,ref:r,...i})});function IB(t){return tt("MuiFormHelperText",t)}const gC=Ze("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var yC;const jB=t=>{const{classes:e,contained:r,size:n,disabled:o,error:a,filled:i,focused:l,required:u}=t,f={root:["root",o&&"disabled",a&&"error",n&&`size${he(n)}`,r&&"contained",l&&"focused",i&&"filled",u&&"required"]};return nt(f,IB,e)},LB=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${he(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${gC.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${gC.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),FB=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p",disabled:l,error:u,filled:f,focused:h,margin:d,required:_,variant:g,...b}=n,w=Oo(),S=Ga({props:n,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),k={...n,component:i,contained:S.variant==="filled"||S.variant==="outlined",variant:S.variant,size:S.size,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required};delete k.ownerState;const D=jB(k);return R.jsx(LB,{as:i,className:Ee(D.root,a),ref:r,...b,ownerState:k,children:o===" "?yC||(yC=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function zB(t){return tt("MuiFormLabel",t)}const Jl=Ze("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),BB=t=>{const{classes:e,color:r,focused:n,disabled:o,error:a,filled:i,required:l}=t,u={root:["root",`color${he(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return nt(u,zB,e)},WB=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{[`&.${Jl.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${Jl.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Jl.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),UB=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Xe(({theme:t})=>({[`&.${Jl.error}`]:{color:(t.vars||t).palette.error.main}}))),HB=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormLabel"}),{children:o,className:a,color:i,component:l="label",disabled:u,error:f,filled:h,focused:d,required:_,...g}=n,b=Oo(),w=Ga({props:n,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),S={...n,color:w.color||"primary",component:l,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required},k=BB(S);return R.jsxs(WB,{as:l,ownerState:S,className:Ee(k.root,a),ref:r,...g,children:[o,w.required&&R.jsxs(UB,{ownerState:S,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]})});function y0(t){return`scale(${t}, ${t**2})`}const qB={entering:{opacity:1,transform:y0(1)},entered:{opacity:1,transform:"none"}},u_=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),iu=$.forwardRef(function(e,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:l,onEnter:u,onEntered:f,onEntering:h,onExit:d,onExited:_,onExiting:g,style:b,timeout:w="auto",TransitionComponent:S=To,...k}=e,D=vs(),C=$.useRef(),O=ta(),M=$.useRef(null),T=ar(M,Ws(a),r),P=H=>K=>{if(H){const ee=M.current;K===void 0?H(ee):H(ee,K)}},j=P(h),F=P((H,K)=>{gM(H);const{duration:ee,delay:Y,easing:X}=Wp({style:b,timeout:w,easing:i},{mode:"enter"});let re;w==="auto"?(re=O.transitions.getAutoHeightDuration(H.clientHeight),C.current=re):re=ee,H.style.transition=[O.transitions.create("opacity",{duration:re,delay:Y}),O.transitions.create("transform",{duration:u_?re:re*.666,delay:Y,easing:X})].join(","),u&&u(H,K)}),E=P(f),L=P(g),G=P(H=>{const{duration:K,delay:ee,easing:Y}=Wp({style:b,timeout:w,easing:i},{mode:"exit"});let X;w==="auto"?(X=O.transitions.getAutoHeightDuration(H.clientHeight),C.current=X):X=K,H.style.transition=[O.transitions.create("opacity",{duration:X,delay:ee}),O.transitions.create("transform",{duration:u_?X:X*.666,delay:u_?ee:ee||X*.333,easing:Y})].join(","),H.style.opacity=0,H.style.transform=y0(.75),d&&d(H)}),B=P(_),z=H=>{w==="auto"&&D.start(C.current||0,H),n&&n(M.current,H)};return R.jsx(S,{appear:o,in:l,nodeRef:M,onEnter:F,onEntered:E,onEntering:j,onExit:G,onExited:B,onExiting:L,addEndListener:z,timeout:w==="auto"?null:w,...k,children:(H,{ownerState:K,...ee})=>$.cloneElement(a,{style:{opacity:0,transform:y0(.75),visibility:H==="exited"&&!l?"hidden":void 0,...qB[H],...b,...a.props.style},ref:T,...ee})})});iu&&(iu.muiSupportAuto=!0);const VB=hF({themeId:Zn}),XB=t=>{const{classes:e,disableUnderline:r}=t,o=nt({root:["root",!r&&"underline"],input:["input"]},F8,e);return{...e,...o}},GB=ie(Rf,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Nf(t,e),!r.disableUnderline&&e.underline]}})(Xe(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wl.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${wl.disabled}, .${wl.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${wl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Jt()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),JB=ie(Af,{name:"MuiInput",slot:"Input",overridesResolver:Pf})({}),mo=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:l=!1,inputComponent:u="input",multiline:f=!1,slotProps:h,slots:d={},type:_="text",...g}=n,b=XB(n),S={root:{ownerState:{disableUnderline:o}}},k=h??i?kr(h??i,S):S,D=d.root??a.Root??GB,C=d.input??a.Input??JB;return R.jsx(Rb,{slots:{root:D,input:C},slotProps:k,fullWidth:l,inputComponent:u,multiline:f,ref:r,type:_,...g,classes:b})});mo.muiName="Input";function YB(t){return tt("MuiInputLabel",t)}Ze("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const KB=t=>{const{classes:e,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:l}=t,u={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${he(n)}`,i],asterisk:[l&&"asterisk"]},f=nt(u,YB,e);return{...e,...f}},ZB=ie(HB,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Jl.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(Xe(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Tp=$.forwardRef(function(e,r){const n=ot({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:a,shrink:i,variant:l,className:u,...f}=n,h=Oo();let d=i;typeof d>"u"&&h&&(d=h.filled||h.focused||h.adornedStart);const _=Ga({props:n,muiFormControl:h,states:["size","variant","required","focused"]}),g={...n,disableAnimation:o,formControl:h,shrink:d,size:_.size,variant:_.variant,required:_.required,focused:_.focused},b=KB(g);return R.jsx(ZB,{"data-shrink":d,ref:r,className:Ee(b.root,u),...f,ownerState:g,classes:b})});function QB(t){return tt("MuiLinearProgress",t)}Ze("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const v0=4,b0=qa` 0% { left: -35%; right: 100%; @@ -251,7 +251,7 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp } `,r7=typeof x0!="string"?Dc` animation: ${x0} 3s infinite linear; - `:null,n7=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${he(n)}`,r],dashed:["dashed",`dashedColor${he(n)}`],bar1:["bar",`barColor${he(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${he(n)}`,r==="buffer"&&`color${he(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return nt(o,QB,e)},Ib=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?wc(t.palette[e].main,.62):bc(t.palette[e].main,.5),o7=ie("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${he(r.color)}`],e[r.variant]]}})(Xe(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{backgroundColor:Ib(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),a7=ie("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${he(r.color)}`]]}})(Xe(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>{const r=Ib(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),r7||{animation:`${x0} 3s infinite linear`}),s7=ie("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${he(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Xe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${v0}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${v0}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:e7||{animation:`${b0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),i7=ie("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${he(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Xe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:Ib(t,e),transition:`transform .${v0}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:t7||{animation:`${w0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),jM=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:i,valueBuffer:l,variant:u="indeterminate",...f}=n,h={...n,color:a,variant:u},d=n7(h),_=Us(),g={},b={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&i!==void 0){g["aria-valuenow"]=Math.round(i),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let w=i-100;_&&(w=-w),b.bar1.transform=`translateX(${w}%)`}if(u==="buffer"&&l!==void 0){let w=(l||0)-100;_&&(w=-w),b.bar2.transform=`translateX(${w}%)`}return R.jsxs(o7,{className:Ee(d.root,o),ownerState:h,role:"progressbar",...g,ref:r,...f,children:[u==="buffer"?R.jsx(a7,{className:d.dashed,ownerState:h}):null,R.jsx(s7,{className:d.bar1,ownerState:h,style:b.bar1}),u==="determinate"?null:R.jsx(i7,{className:d.bar2,ownerState:h,style:b.bar2})]})});function c7(t){return tt("MuiLink",t)}const l7=Ze("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),u7=({theme:t,ownerState:e})=>{const r=e.color,n=vc(t,`palette.${r}`,!1)||e.color,o=vc(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:Nt(n,.4)},vC={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},d7=t=>{const{classes:e,component:r,focusVisible:n,underline:o}=t,a={root:["root",`underline${he(o)}`,r==="button"&&"button",n&&"focusVisible"]};return nt(a,c7,e)},p7=ie(bo,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`underline${he(r.underline)}`],r.component==="button"&&e.button]}})(Xe(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette[e].mainChannel} / 0.4)`:Nt(t.palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:Nt(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.secondaryChannel} / 0.4)`:Nt(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${l7.focusVisible}`]:{outline:"auto"}}}]}))),f7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiLink"}),o=ta(),{className:a,color:i="primary",component:l="a",onBlur:u,onFocus:f,TypographyClasses:h,underline:d="always",variant:_="inherit",sx:g,...b}=n,[w,S]=$.useState(!1),k=M=>{Ba(M.target)||S(!1),u&&u(M)},D=M=>{Ba(M.target)&&S(!0),f&&f(M)},C={...n,color:i,component:l,focusVisible:w,underline:d,variant:_},O=d7(C);return R.jsx(p7,{color:i,className:Ee(O.root,a),classes:h,component:l,onBlur:k,onFocus:D,ref:r,ownerState:C,variant:_,...b,sx:[...vC[i]===void 0?[{color:i}]:[],...Array.isArray(g)?g:[g]],style:{...b.style,...d==="always"&&i!=="inherit"&&!vC[i]&&{"--Link-underlineColor":u7({theme:o,ownerState:C})}}})}),cu=$.createContext({});function h7(t){return tt("MuiList",t)}Ze("MuiList",["root","padding","dense","subheader"]);const m7=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return nt({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},h7,e)},_7=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),g7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:l=!1,disablePadding:u=!1,subheader:f,...h}=n,d=$.useMemo(()=>({dense:l}),[l]),_={...n,component:i,dense:l,disablePadding:u},g=m7(_);return R.jsx(cu.Provider,{value:d,children:R.jsxs(_7,{as:i,className:Ee(g.root,a),ref:r,ownerState:_,...h,children:[f,o]})})});function y7(t){return tt("MuiListItemIcon",t)}const bC=Ze("MuiListItemIcon",["root","alignItemsFlexStart"]),v7=t=>{const{alignItems:e,classes:r}=t;return nt({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},y7,r)},b7=ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Xe(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),w7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiListItemIcon"}),{className:o,...a}=n,i=$.useContext(cu),l={...n,alignItems:i.alignItems},u=v7(l);return R.jsx(b7,{className:Ee(u.root,o),ownerState:l,ref:r,...a})});function x7(t){return tt("MuiListItemText",t)}const oc=Ze("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),S7=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:a}=t;return nt({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},x7,e)},k7=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${oc.primary}`]:e.primary},{[`& .${oc.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Yk.root}:where(& .${oc.primary})`]:{display:"block"},[`.${Yk.root}:where(& .${oc.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),C7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:l=!1,primary:u,primaryTypographyProps:f,secondary:h,secondaryTypographyProps:d,slots:_={},slotProps:g={},...b}=n,{dense:w}=$.useContext(cu);let S=u??o,k=h;const D={...n,disableTypography:i,inset:l,primary:!!S,secondary:!!k,dense:w},C=S7(D),O={slots:_,slotProps:{primary:f,secondary:d,...g}},[M,T]=Sr("primary",{className:C.primary,elementType:bo,externalForwardedProps:O,ownerState:D}),[P,j]=Sr("secondary",{className:C.secondary,elementType:bo,externalForwardedProps:O,ownerState:D});return S!=null&&S.type!==bo&&!i&&(S=R.jsx(M,{variant:w?"body2":"body1",component:T!=null&&T.variant?void 0:"span",...T,children:S})),k!=null&&k.type!==bo&&!i&&(k=R.jsx(P,{variant:"body2",color:"textSecondary",...j,children:k})),R.jsxs(k7,{className:Ee(C.root,a),ownerState:D,ref:r,...b,children:[S,k]})});function d_(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function wC(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function LM(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function xl(t,e,r,n,o,a){let i=!1,l=o(t,e,e?r:!1);for(;l;){if(l===t.firstChild){if(i)return!1;i=!0}const u=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!LM(l,a)||u)l=o(t,l,r);else return l.focus(),!0}return!1}const $7=$.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:l,disabledItemsFocusable:u=!1,disableListWrap:f=!1,onKeyDown:h,variant:d="selectedMenu",..._}=e,g=$.useRef(null),b=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yn(()=>{o&&g.current.focus()},[o]),$.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(C,{direction:O})=>{const M=!g.current.style.width;if(C.clientHeight{const O=g.current,M=C.key;if(C.ctrlKey||C.metaKey||C.altKey){h&&h(C);return}const P=cr(O).activeElement;if(M==="ArrowDown")C.preventDefault(),xl(O,P,f,u,d_);else if(M==="ArrowUp")C.preventDefault(),xl(O,P,f,u,wC);else if(M==="Home")C.preventDefault(),xl(O,null,f,u,d_);else if(M==="End")C.preventDefault(),xl(O,null,f,u,wC);else if(M.length===1){const j=b.current,z=M.toLowerCase(),E=performance.now();j.keys.length>0&&(E-j.lastTime>500?(j.keys=[],j.repeating=!0,j.previousKeyMatched=!0):j.repeating&&z!==j.keys[0]&&(j.repeating=!1)),j.lastTime=E,j.keys.push(z);const L=P&&!j.repeating&&LM(P,j);j.previousKeyMatched&&(L||xl(O,P,!1,u,d_,j))?C.preventDefault():j.previousKeyMatched=!1}h&&h(C)},S=ar(g,r);let k=-1;$.Children.forEach(i,(C,O)=>{if(!$.isValidElement(C)){k===O&&(k+=1,k>=i.length&&(k=-1));return}C.props.disabled||(d==="selectedMenu"&&C.props.selected||k===-1)&&(k=O),k===O&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(k+=1,k>=i.length&&(k=-1))});const D=$.Children.map(i,(C,O)=>{if(O===k){const M={};return a&&(M.autoFocus=!0),C.props.tabIndex===void 0&&d==="selectedMenu"&&(M.tabIndex=0),$.cloneElement(C,M)}return C});return R.jsx(g7,{role:"menu",ref:S,className:l,onKeyDown:w,tabIndex:o?0:-1,..._,children:D})});function E7(t){return tt("MuiPopover",t)}Ze("MuiPopover",["root","paper"]);function xC(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function SC(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function kC(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function p_(t){return typeof t=="function"?t():t}const T7=t=>{const{classes:e}=t;return nt({root:["root"],paper:["paper"]},E7,e)},O7=ie(AM,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),zM=ie(ku,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),D7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:f,className:h,container:d,elevation:_=8,marginThreshold:g=16,open:b,PaperProps:w={},slots:S={},slotProps:k={},transformOrigin:D={vertical:"top",horizontal:"left"},TransitionComponent:C=iu,transitionDuration:O="auto",TransitionProps:{onEntering:M,...T}={},disableScrollLock:P=!1,...j}=n,z=(k==null?void 0:k.paper)??w,E=$.useRef(),L={...n,anchorOrigin:i,anchorReference:u,elevation:_,marginThreshold:g,externalPaperSlotProps:z,transformOrigin:D,TransitionComponent:C,transitionDuration:O,TransitionProps:T},G=T7(L),B=$.useCallback(()=>{if(u==="anchorPosition")return l;const Oe=p_(a),Me=(Oe&&Oe.nodeType===1?Oe:cr(E.current).body).getBoundingClientRect();return{top:Me.top+xC(Me,i.vertical),left:Me.left+SC(Me,i.horizontal)}},[a,i.horizontal,i.vertical,l,u]),F=$.useCallback(Oe=>({vertical:xC(Oe,D.vertical),horizontal:SC(Oe,D.horizontal)}),[D.horizontal,D.vertical]),H=$.useCallback(Oe=>{const Fe={width:Oe.offsetWidth,height:Oe.offsetHeight},Me=F(Fe);if(u==="none")return{top:null,left:null,transformOrigin:kC(Me)};const Be=B();let We=Be.top-Me.vertical,De=Be.left-Me.horizontal;const pt=We+Fe.height,ce=De+Fe.width,qe=eo(p_(a)),st=qe.innerHeight-g,rt=qe.innerWidth-g;if(g!==null&&West){const Je=pt-st;We-=Je,Me.vertical+=Je}if(g!==null&&Dert){const Je=ce-rt;De-=Je,Me.horizontal+=Je}return{top:`${Math.round(We)}px`,left:`${Math.round(De)}px`,transformOrigin:kC(Me)}},[a,u,B,F,g]),[K,ee]=$.useState(b),Y=$.useCallback(()=>{const Oe=E.current;if(!Oe)return;const Fe=H(Oe);Fe.top!==null&&Oe.style.setProperty("top",Fe.top),Fe.left!==null&&(Oe.style.left=Fe.left),Oe.style.transformOrigin=Fe.transformOrigin,ee(!0)},[H]);$.useEffect(()=>(P&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[a,P,Y]);const X=(Oe,Fe)=>{M&&M(Oe,Fe),Y()},re=()=>{ee(!1)};$.useEffect(()=>{b&&Y()}),$.useImperativeHandle(o,()=>b?{updatePosition:()=>{Y()}}:null,[b,Y]),$.useEffect(()=>{if(!b)return;const Oe=Ef(()=>{Y()}),Fe=eo(a);return Fe.addEventListener("resize",Oe),()=>{Oe.clear(),Fe.removeEventListener("resize",Oe)}},[a,b,Y]);let I=O;O==="auto"&&!C.muiSupportAuto&&(I=void 0);const Q=d||(a?cr(p_(a)).body:void 0),me={slots:S,slotProps:{...k,paper:z}},[pe,ge]=Sr("paper",{elementType:zM,externalForwardedProps:me,additionalProps:{elevation:_,className:Ee(G.paper,z==null?void 0:z.className),style:K?z.style:{...z.style,opacity:0}},ownerState:L}),[Ce,{slotProps:Re,...Te}]=Sr("root",{elementType:O7,externalForwardedProps:me,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Q,open:b},ownerState:L,className:Ee(G.root,h)}),Pe=ar(E,ge.ref);return R.jsx(Ce,{...Te,...!ks(Ce)&&{slotProps:Re,disableScrollLock:P},...j,ref:r,children:R.jsx(C,{appear:!0,in:b,onEntering:X,onExited:re,timeout:I,...T,children:R.jsx(pe,{...ge,ref:Pe,children:f})})})});function M7(t){return tt("MuiMenu",t)}Ze("MuiMenu",["root","paper","list"]);const N7={vertical:"top",horizontal:"right"},P7={vertical:"top",horizontal:"left"},R7=t=>{const{classes:e}=t;return nt({root:["root"],paper:["paper"],list:["list"]},M7,e)},A7=ie(D7,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),I7=ie(zM,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),j7=ie($7,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),jb=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:i,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:f,open:h,PaperProps:d={},PopoverClasses:_,transitionDuration:g="auto",TransitionProps:{onEntering:b,...w}={},variant:S="selectedMenu",slots:k={},slotProps:D={},...C}=n,O=Us(),M={...n,autoFocus:o,disableAutoFocusItem:l,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:g,TransitionProps:w,variant:S},T=R7(M),P=o&&!l&&h,j=$.useRef(null),z=(K,ee)=>{j.current&&j.current.adjustStyleForScrollbar(K,{direction:O?"rtl":"ltr"}),b&&b(K,ee)},E=K=>{K.key==="Tab"&&(K.preventDefault(),f&&f(K,"tabKeyDown"))};let L=-1;$.Children.map(a,(K,ee)=>{$.isValidElement(K)&&(K.props.disabled||(S==="selectedMenu"&&K.props.selected||L===-1)&&(L=ee))});const G=k.paper??I7,B=D.paper??d,F=Dr({elementType:k.root,externalSlotProps:D.root,ownerState:M,className:[T.root,i]}),H=Dr({elementType:G,externalSlotProps:B,ownerState:M,className:T.paper});return R.jsx(A7,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?N7:P7,slots:{paper:G,root:k.root},slotProps:{root:F,paper:H},open:h,ref:r,transitionDuration:g,TransitionProps:{onEntering:z,...w},ownerState:M,...C,classes:_,children:R.jsx(j7,{onKeyDown:E,actions:j,autoFocus:o&&(L===-1||l),autoFocusItem:P,variant:S,...u,className:Ee(T.list,u.className),children:a})})});function L7(t){return tt("MuiMenuItem",t)}const Sl=Ze("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),z7=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},F7=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=t,u=nt({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},L7,i);return{...i,...u}},B7=ie(Va,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:z7})(Xe(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Sl.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Sl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Sl.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Sl.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Sl.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${mC.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${mC.inset}`]:{marginLeft:52},[`& .${oc.root}`]:{marginTop:0,marginBottom:0},[`& .${oc.inset}`]:{paddingLeft:36},[`& .${bC.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${bC.root} svg`]:{fontSize:"1.25rem"}}}]}))),fr=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:f,role:h="menuitem",tabIndex:d,className:_,...g}=n,b=$.useContext(cu),w=$.useMemo(()=>({dense:i||b.dense||!1,disableGutters:u}),[b.dense,i,u]),S=$.useRef(null);yn(()=>{o&&S.current&&S.current.focus()},[o]);const k={...n,dense:w.dense,divider:l,disableGutters:u},D=F7(n),C=ar(S,r);let O;return n.disabled||(O=d!==void 0?d:-1),R.jsx(cu.Provider,{value:w,children:R.jsx(B7,{ref:C,role:h,tabIndex:O,component:a,focusVisibleClassName:Ee(D.focusVisible,f),className:Ee(D.root,_),...g,ownerState:k,classes:D})})});function W7(t){return tt("MuiNativeSelect",t)}const Lb=Ze("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),U7=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:i}=t,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${he(r)}`,a&&"iconOpen",n&&"disabled"]};return nt(l,W7,e)},FM=ie("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Lb.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),H7=ie(FM,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cr,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${Lb.multiple}`]:e.multiple}]}})({}),BM=ie("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Lb.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),q7=ie(BM,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${he(r.variant)}`],r.open&&e.iconOpen]}})({}),V7=$.forwardRef(function(e,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:l,variant:u="standard",...f}=e,h={...e,disabled:o,variant:u,error:a},d=U7(h);return R.jsxs($.Fragment,{children:[R.jsx(H7,{ownerState:h,className:Ee(d.select,n),disabled:o,ref:l||r,...f}),e.multiple?null:R.jsx(q7,{as:i,ownerState:h,className:d.icon})]})});var CC;const X7=ie("fieldset",{shouldForwardProp:Cr})({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%"}),G7=ie("legend",{shouldForwardProp:Cr})(Xe(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function J7(t){const{children:e,classes:r,className:n,label:o,notched:a,...i}=t,l=o!=null&&o!=="",u={...t,notched:a,withLabel:l};return R.jsx(X7,{"aria-hidden":!0,className:n,ownerState:u,...i,children:R.jsx(G7,{ownerState:u,children:l?R.jsx("span",{children:o}):CC||(CC=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Y7=t=>{const{classes:e}=t,n=nt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},F8,e);return{...e,...n}},K7=ie(Rf,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Nf})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${lo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${lo.focused} .${lo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(Jt()).map(([r])=>({props:{color:r},style:{[`&.${lo.focused} .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${lo.error} .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${lo.disabled} .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),Z7=ie(J7,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),Q7=ie(Af,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Pf})(Xe(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),zb=$.forwardRef(function(e,r){var n;const o=ot({props:e,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:l="input",label:u,multiline:f=!1,notched:h,slots:d={},type:_="text",...g}=o,b=Y7(o),w=Oo(),S=Ga({props:o,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...o,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:w,fullWidth:i,hiddenLabel:S.hiddenLabel,multiline:f,size:S.size,type:_},D=d.root??a.Root??K7,C=d.input??a.Input??Q7;return R.jsx(Rb,{slots:{root:D,input:C},renderSuffix:O=>R.jsx(Z7,{ownerState:k,className:b.notchedOutline,label:u!=null&&u!==""&&S.required?n||(n=R.jsxs($.Fragment,{children:[u," ","*"]})):u,notched:typeof h<"u"?h:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:i,inputComponent:l,multiline:f,ref:r,type:_,...g,classes:{...b,notchedOutline:null}})});zb.muiName="Input";const eW=Ge(R.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"),tW=Ge(R.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"),rW=ie("span",{shouldForwardProp:Cr})({position:"relative",display:"flex"}),nW=ie(eW)({transform:"scale(1)"}),oW=ie(tW)(Xe(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function WM(t){const{checked:e=!1,classes:r={},fontSize:n}=t,o={...t,checked:e};return R.jsxs(rW,{className:r.root,ownerState:o,children:[R.jsx(nW,{fontSize:n,className:r.background,ownerState:o}),R.jsx(oW,{fontSize:n,className:r.dot,ownerState:o})]})}const aW=$.createContext(void 0);function sW(){return $.useContext(aW)}function iW(t){return tt("MuiRadio",t)}const $C=Ze("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),cW=t=>{const{classes:e,color:r,size:n}=t,o={root:["root",`color${he(r)}`,n!=="medium"&&`size${he(n)}`]};return{...e,...nt(o,iW,e)}},lW=ie(RM,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${he(r.size)}`],e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${$C.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${$C.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function uW(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const EC=R.jsx(WM,{checked:!0}),TC=R.jsx(WM,{}),zt=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:a=EC,color:i="primary",icon:l=TC,name:u,onChange:f,size:h="medium",className:d,disabled:_,disableRipple:g=!1,...b}=n,w=Oo();let S=_;w&&typeof S>"u"&&(S=w.disabled),S??(S=!1);const k={...n,disabled:S,disableRipple:g,color:i,size:h},D=cW(k),C=sW();let O=o;const M=o0(f,C&&C.onChange);let T=u;return C&&(typeof O>"u"&&(O=uW(C.value,n.value)),typeof T>"u"&&(T=C.name)),R.jsx(lW,{type:"radio",icon:$.cloneElement(l,{fontSize:TC.props.fontSize??h}),checkedIcon:$.cloneElement(a,{fontSize:EC.props.fontSize??h}),disabled:S,ownerState:k,classes:D,name:T,checked:O,onChange:M,ref:r,className:Ee(D.root,d),...b})});function dW(t){return tt("MuiSelect",t)}const kl=Ze("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var OC;const pW=ie(FM,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${kl.select}`]:e.select},{[`&.${kl.select}`]:e[r.variant]},{[`&.${kl.error}`]:e.error},{[`&.${kl.multiple}`]:e.multiple}]}})({[`&.${kl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),fW=ie(BM,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${he(r.variant)}`],r.open&&e.iconOpen]}})({}),hW=ie("input",{shouldForwardProp:t=>Df(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function DC(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function mW(t){return t==null||typeof t=="string"&&!t.trim()}const _W=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:i}=t,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${he(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return nt(l,dW,e)},gW=$.forwardRef(function(e,r){var ft;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:i,children:l,className:u,defaultOpen:f,defaultValue:h,disabled:d,displayEmpty:_,error:g=!1,IconComponent:b,inputRef:w,labelId:S,MenuProps:k={},multiple:D,name:C,onBlur:O,onChange:M,onClose:T,onFocus:P,onOpen:j,open:z,readOnly:E,renderValue:L,required:G,SelectDisplayProps:B={},tabIndex:F,type:H,value:K,variant:ee="standard",...Y}=e,[X,re]=ru({controlled:K,default:h,name:"Select"}),[I,Q]=ru({controlled:z,default:f,name:"Select"}),me=$.useRef(null),pe=$.useRef(null),[ge,Ce]=$.useState(null),{current:Re}=$.useRef(z!=null),[Te,Pe]=$.useState(),Oe=ar(r,w),Fe=$.useCallback(ae=>{pe.current=ae,ae&&Ce(ae)},[]),Me=ge==null?void 0:ge.parentNode;$.useImperativeHandle(Oe,()=>({focus:()=>{pe.current.focus()},node:me.current,value:X}),[X]),$.useEffect(()=>{f&&I&&ge&&!Re&&(Pe(i?null:Me.clientWidth),pe.current.focus())},[ge,i]),$.useEffect(()=>{a&&pe.current.focus()},[a]),$.useEffect(()=>{if(!S)return;const ae=cr(pe.current).getElementById(S);if(ae){const _e=()=>{getSelection().isCollapsed&&pe.current.focus()};return ae.addEventListener("click",_e),()=>{ae.removeEventListener("click",_e)}}},[S]);const Be=(ae,_e)=>{ae?j&&j(_e):T&&T(_e),Re||(Pe(i?null:Me.clientWidth),Q(ae))},We=ae=>{ae.button===0&&(ae.preventDefault(),pe.current.focus(),Be(!0,ae))},De=ae=>{Be(!1,ae)},pt=$.Children.toArray(l),ce=ae=>{const _e=pt.find(ze=>ze.props.value===ae.target.value);_e!==void 0&&(re(_e.props.value),M&&M(ae,_e))},qe=ae=>_e=>{let ze;if(_e.currentTarget.hasAttribute("tabindex")){if(D){ze=Array.isArray(X)?X.slice():[];const Ke=X.indexOf(ae.props.value);Ke===-1?ze.push(ae.props.value):ze.splice(Ke,1)}else ze=ae.props.value;if(ae.props.onClick&&ae.props.onClick(_e),X!==ze&&(re(ze),M)){const Ke=_e.nativeEvent||_e,_t=new Ke.constructor(Ke.type,Ke);Object.defineProperty(_t,"target",{writable:!0,value:{value:ze,name:C}}),M(_t,ae)}D||Be(!1,_e)}},st=ae=>{E||[" ","ArrowUp","ArrowDown","Enter"].includes(ae.key)&&(ae.preventDefault(),Be(!0,ae))},rt=ge!==null&&I,Je=ae=>{!rt&&O&&(Object.defineProperty(ae,"target",{writable:!0,value:{value:X,name:C}}),O(ae))};delete Y["aria-invalid"];let Se,ut;const q=[];let ne=!1;(qp({value:X})||_)&&(L?Se=L(X):ne=!0);const ye=pt.map(ae=>{if(!$.isValidElement(ae))return null;let _e;if(D){if(!Array.isArray(X))throw new Error(Zo(2));_e=X.some(ze=>DC(ze,ae.props.value)),_e&&ne&&q.push(ae.props.children)}else _e=DC(X,ae.props.value),_e&&ne&&(ut=ae.props.children);return $.cloneElement(ae,{"aria-selected":_e?"true":"false",onClick:qe(ae),onKeyUp:ze=>{ze.key===" "&&ze.preventDefault(),ae.props.onKeyUp&&ae.props.onKeyUp(ze)},role:"option",selected:_e,value:void 0,"data-value":ae.props.value})});ne&&(D?q.length===0?Se=null:Se=q.reduce((ae,_e,ze)=>(ae.push(_e),ze{const{classes:e}=t;return e},Fb={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>Cr(t)&&t!=="variant",slot:"Root"},vW=ie(mo,Fb)(""),bW=ie(zb,Fb)(""),wW=ie(Ab,Fb)(""),wo=$.forwardRef(function(e,r){const n=ot({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:a,classes:i={},className:l,defaultOpen:u=!1,displayEmpty:f=!1,IconComponent:h=W8,id:d,input:_,inputProps:g,label:b,labelId:w,MenuProps:S,multiple:k=!1,native:D=!1,onClose:C,onOpen:O,open:M,renderValue:T,SelectDisplayProps:P,variant:j="outlined",...z}=n,E=D?V7:gW,L=Oo(),G=Ga({props:n,muiFormControl:L,states:["variant","error"]}),B=G.variant||j,F={...n,variant:B,classes:i},H=yW(F),{root:K,...ee}=H,Y=_||{standard:R.jsx(vW,{ownerState:F}),outlined:R.jsx(bW,{label:b,ownerState:F}),filled:R.jsx(wW,{ownerState:F})}[B],X=ar(r,Ws(Y));return R.jsx($.Fragment,{children:$.cloneElement(Y,{inputComponent:E,inputProps:{children:a,error:G.error,IconComponent:h,variant:B,type:void 0,multiple:k,...D?{id:d}:{autoWidth:o,defaultOpen:u,displayEmpty:f,labelId:w,MenuProps:S,onClose:C,onOpen:O,open:M,renderValue:T,SelectDisplayProps:{id:d,...P}},...g,classes:g?kr(ee,g.classes):ee,..._?_.props.inputProps:{}},...(k&&D||f)&&B==="outlined"?{notched:!0}:{},ref:X,className:Ee(Y.props.className,l,H.root),...!_&&{variant:B},...z})})});wo.muiName="Select";function xW(t,e,r=(n,o)=>n===o){return t.length===e.length&&t.every((n,o)=>r(n,e[o]))}const SW=2;function Ti(t,e,r,n,o){return r===1?Math.min(t+e,o):Math.max(t-e,n)}function UM(t,e){return t-e}function MC(t,e){const{index:r}=t.reduce((n,o,a)=>{const i=Math.abs(e-o);return n===null||i({left:`${t}%`}),leap:t=>({width:`${t}%`})},"horizontal-reverse":{offset:t=>({right:`${t}%`}),leap:t=>({width:`${t}%`})},vertical:{offset:t=>({bottom:`${t}%`}),leap:t=>({height:`${t}%`})}},TW=t=>t;let op;function PC(){return op===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?op=CSS.supports("touch-action","none"):op=!0),op}function OW(t){const{"aria-labelledby":e,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:u=0,name:f,onChange:h,onChangeCommitted:d,orientation:_="horizontal",rootRef:g,scale:b=TW,step:w=1,shiftStep:S=10,tabIndex:k,value:D}=t,C=$.useRef(void 0),[O,M]=$.useState(-1),[T,P]=$.useState(-1),[j,z]=$.useState(!1),E=$.useRef(0),[L,G]=ru({controlled:D,default:r??u,name:"Slider"}),B=h&&((q,ne,ye)=>{const we=q.nativeEvent||q,ke=new we.constructor(we.type,we);Object.defineProperty(ke,"target",{writable:!0,value:{value:ne,name:f}}),h(ke,ne,ye)}),F=Array.isArray(L);let H=F?L.slice().sort(UM):[L];H=H.map(q=>q==null?u:Li(q,u,l));const K=i===!0&&w!==null?[...Array(Math.floor((l-u)/w)+1)].map((q,ne)=>({value:u+w*ne})):i||[],ee=K.map(q=>q.value),[Y,X]=$.useState(-1),re=$.useRef(null),I=ar(g,re),Q=q=>ne=>{var we;const ye=Number(ne.currentTarget.getAttribute("data-index"));Ba(ne.target)&&X(ye),P(ye),(we=q==null?void 0:q.onFocus)==null||we.call(q,ne)},me=q=>ne=>{var ye;Ba(ne.target)||X(-1),P(-1),(ye=q==null?void 0:q.onBlur)==null||ye.call(q,ne)},pe=(q,ne)=>{const ye=Number(q.currentTarget.getAttribute("data-index")),we=H[ye],ke=ee.indexOf(we);let ve=ne;if(K&&w==null){const Ve=ee[ee.length-1];ve>Ve?ve=Ve:vene=>{var ye;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(ne.key)){ne.preventDefault();const we=Number(ne.currentTarget.getAttribute("data-index")),ke=H[we];let ve=null;if(w!=null){const Ve=ne.shiftKey?S:w;switch(ne.key){case"ArrowUp":ve=Ti(ke,Ve,1,u,l);break;case"ArrowRight":ve=Ti(ke,Ve,a?-1:1,u,l);break;case"ArrowDown":ve=Ti(ke,Ve,-1,u,l);break;case"ArrowLeft":ve=Ti(ke,Ve,a?1:-1,u,l);break;case"PageUp":ve=Ti(ke,S,1,u,l);break;case"PageDown":ve=Ti(ke,S,-1,u,l);break;case"Home":ve=u;break;case"End":ve=l;break}}else if(K){const Ve=ee[ee.length-1],$e=ee.indexOf(ke),Ye=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],lt=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ye.includes(ne.key)?$e===0?ve=ee[0]:ve=ee[$e-1]:lt.includes(ne.key)&&($e===ee.length-1?ve=Ve:ve=ee[$e+1])}ve!=null&&pe(ne,ve)}(ye=q==null?void 0:q.onKeyDown)==null||ye.call(q,ne)};yn(()=>{var q;n&&re.current.contains(document.activeElement)&&((q=document.activeElement)==null||q.blur())},[n]),n&&O!==-1&&M(-1),n&&Y!==-1&&X(-1);const Ce=q=>ne=>{var ye;(ye=q.onChange)==null||ye.call(q,ne),pe(ne,ne.target.valueAsNumber)},Re=$.useRef(void 0);let Te=_;a&&_==="horizontal"&&(Te+="-reverse");const Pe=({finger:q,move:ne=!1})=>{const{current:ye}=re,{width:we,height:ke,bottom:ve,left:Ve}=ye.getBoundingClientRect();let $e;Te.startsWith("vertical")?$e=(ve-q.y)/ke:$e=(q.x-Ve)/we,Te.includes("-reverse")&&($e=1-$e);let Ye;if(Ye=kW($e,u,l),w)Ye=$W(Ye,w,u);else{const ft=MC(ee,Ye);Ye=ee[ft]}Ye=Li(Ye,u,l);let lt=0;if(F){ne?lt=Re.current:lt=MC(H,Ye),o&&(Ye=Li(Ye,H[lt-1]||-1/0,H[lt+1]||1/0));const ft=Ye;Ye=NC({values:H,newValue:Ye,index:lt}),o&&ne||(lt=Ye.indexOf(ft),Re.current=lt)}return{newValue:Ye,activeIndex:lt}},Oe=Nr(q=>{const ne=tp(q,C);if(!ne)return;if(E.current+=1,q.type==="mousemove"&&q.buttons===0){Fe(q);return}const{newValue:ye,activeIndex:we}=Pe({finger:ne,move:!0});rp({sliderRef:re,activeIndex:we,setActive:M}),G(ye),!j&&E.current>SW&&z(!0),B&&!np(ye,L)&&B(q,ye,we)}),Fe=Nr(q=>{const ne=tp(q,C);if(z(!1),!ne)return;const{newValue:ye}=Pe({finger:ne,move:!0});M(-1),q.type==="touchend"&&P(-1),d&&d(q,ye),C.current=void 0,Be()}),Me=Nr(q=>{if(n)return;PC()||q.preventDefault();const ne=q.changedTouches[0];ne!=null&&(C.current=ne.identifier);const ye=tp(q,C);if(ye!==!1){const{newValue:ke,activeIndex:ve}=Pe({finger:ye});rp({sliderRef:re,activeIndex:ve,setActive:M}),G(ke),B&&!np(ke,L)&&B(q,ke,ve)}E.current=0;const we=cr(re.current);we.addEventListener("touchmove",Oe,{passive:!0}),we.addEventListener("touchend",Fe,{passive:!0})}),Be=$.useCallback(()=>{const q=cr(re.current);q.removeEventListener("mousemove",Oe),q.removeEventListener("mouseup",Fe),q.removeEventListener("touchmove",Oe),q.removeEventListener("touchend",Fe)},[Fe,Oe]);$.useEffect(()=>{const{current:q}=re;return q.addEventListener("touchstart",Me,{passive:PC()}),()=>{q.removeEventListener("touchstart",Me),Be()}},[Be,Me]),$.useEffect(()=>{n&&Be()},[n,Be]);const We=q=>ne=>{var ke;if((ke=q.onMouseDown)==null||ke.call(q,ne),n||ne.defaultPrevented||ne.button!==0)return;ne.preventDefault();const ye=tp(ne,C);if(ye!==!1){const{newValue:ve,activeIndex:Ve}=Pe({finger:ye});rp({sliderRef:re,activeIndex:Ve,setActive:M}),G(ve),B&&!np(ve,L)&&B(ne,ve,Ve)}E.current=0;const we=cr(re.current);we.addEventListener("mousemove",Oe,{passive:!0}),we.addEventListener("mouseup",Fe)},De=Vp(F?H[0]:u,u,l),pt=Vp(H[H.length-1],u,l)-De,ce=(q={})=>{const ne=xs(q),ye={onMouseDown:We(ne||{})},we={...ne,...ye};return{...q,ref:I,...we}},qe=q=>ne=>{var we;(we=q.onMouseOver)==null||we.call(q,ne);const ye=Number(ne.currentTarget.getAttribute("data-index"));P(ye)},st=q=>ne=>{var ye;(ye=q.onMouseLeave)==null||ye.call(q,ne),P(-1)},rt=(q={})=>{const ne=xs(q),ye={onMouseOver:qe(ne||{}),onMouseLeave:st(ne||{})};return{...q,...ne,...ye}},Je=q=>({pointerEvents:O!==-1&&O!==q?"none":void 0});let Se;return _==="vertical"&&(Se=a?"vertical-rl":"vertical-lr"),{active:O,axis:Te,axisProps:EW,dragging:j,focusedThumbIndex:Y,getHiddenInputProps:(q={})=>{const ne=xs(q),ye={onChange:Ce(ne||{}),onFocus:Q(ne||{}),onBlur:me(ne||{}),onKeyDown:ge(ne||{})},we={...ne,...ye};return{tabIndex:k,"aria-labelledby":e,"aria-orientation":_,"aria-valuemax":b(l),"aria-valuemin":b(u),name:f,type:"range",min:t.min,max:t.max,step:t.step===null&&t.marks?"any":t.step??void 0,disabled:n,...q,...we,style:{...xz,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:Se}}},getRootProps:ce,getThumbProps:rt,marks:K,open:T,range:F,rootRef:I,trackLeap:pt,trackOffset:De,values:H,getThumbStyle:Je}}const DW=t=>!t||!ks(t);function MW(t){return tt("MuiSlider",t)}const Rn=Ze("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),NW=t=>{const{open:e}=t;return{offset:Ee(e&&Rn.valueLabelOpen),circle:Rn.valueLabelCircle,label:Rn.valueLabelLabel}};function PW(t){const{children:e,className:r,value:n}=t,o=NW(t);return e?$.cloneElement(e,{className:Ee(e.props.className)},R.jsxs($.Fragment,{children:[e.props.children,R.jsx("span",{className:Ee(o.offset,r),"aria-hidden":!0,children:R.jsx("span",{className:o.circle,children:R.jsx("span",{className:o.label,children:n})})})]})):null}function RC(t){return t}const RW=ie("span",{name:"MuiSlider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${he(r.color)}`],r.size!=="medium"&&e[`size${he(r.size)}`],r.marked&&e.marked,r.orientation==="vertical"&&e.vertical,r.track==="inverted"&&e.trackInverted,r.track===!1&&e.trackFalse]}})(Xe(({theme:t})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Rn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},[`&.${Rn.dragging}`]:{[`& .${Rn.thumb}, & .${Rn.track}`]:{transition:"none"}},variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),AW=ie("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(t,e)=>e.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),IW=ie("span",{name:"MuiSlider",slot:"Track",overridesResolver:(t,e)=>e.track})(Xe(({theme:t})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,track:"inverted"},style:{...t.vars?{backgroundColor:t.vars.palette.Slider[`${e}Track`],borderColor:t.vars.palette.Slider[`${e}Track`]}:{backgroundColor:wc(t.palette[e].main,.62),borderColor:wc(t.palette[e].main,.62),...t.applyStyles("dark",{backgroundColor:bc(t.palette[e].main,.5)}),...t.applyStyles("dark",{borderColor:bc(t.palette[e].main,.5)})}}}))]}))),jW=ie("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.thumb,e[`thumbColor${he(r.color)}`],r.size!=="medium"&&e[`thumbSize${he(r.size)}`]]}})(Xe(({theme:t})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Rn.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{[`&:hover, &.${Rn.focusVisible}`]:{...t.vars?{boxShadow:`0px 0px 0px 8px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Nt(t.palette[e].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${Rn.active}`]:{...t.vars?{boxShadow:`0px 0px 0px 14px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Nt(t.palette[e].main,.16)}`}}}}))]}))),LW=ie(PW,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(t,e)=>e.valueLabel})(Xe(({theme:t})=>({zIndex:1,whiteSpace:"nowrap",...t.typography.body2,fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Rn.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Rn.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),zW=ie("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:t=>Df(t)&&t!=="markActive",overridesResolver:(t,e)=>{const{markActive:r}=t;return[e.mark,r&&e.markActive]}})(Xe(({theme:t})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}))),FW=ie("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:t=>Df(t)&&t!=="markLabelActive",overridesResolver:(t,e)=>e.markLabel})(Xe(({theme:t})=>({...t.typography.body2,color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]}))),BW=t=>{const{disabled:e,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:u}=t,f={root:["root",e&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${he(l)}`,u&&`size${he(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",e&&"disabled",u&&`thumbSize${he(u)}`,l&&`thumbColor${he(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return nt(f,MW,i)},WW=({children:t})=>t,UW=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSlider"}),o=Us(),{"aria-label":a,"aria-valuetext":i,"aria-labelledby":l,component:u="span",components:f={},componentsProps:h={},color:d="primary",classes:_,className:g,disableSwap:b=!1,disabled:w=!1,getAriaLabel:S,getAriaValueText:k,marks:D=!1,max:C=100,min:O=0,name:M,onChange:T,onChangeCommitted:P,orientation:j="horizontal",shiftStep:z=10,size:E="medium",step:L=1,scale:G=RC,slotProps:B,slots:F,tabIndex:H,track:K="normal",value:ee,valueLabelDisplay:Y="off",valueLabelFormat:X=RC,...re}=n,I={...n,isRtl:o,max:C,min:O,classes:_,disabled:w,disableSwap:b,orientation:j,marks:D,color:d,size:E,step:L,shiftStep:z,scale:G,track:K,valueLabelDisplay:Y,valueLabelFormat:X},{axisProps:Q,getRootProps:me,getHiddenInputProps:pe,getThumbProps:ge,open:Ce,active:Re,axis:Te,focusedThumbIndex:Pe,range:Oe,dragging:Fe,marks:Me,values:Be,trackOffset:We,trackLeap:De,getThumbStyle:pt}=OW({...I,rootRef:r});I.marked=Me.length>0&&Me.some(vt=>vt.label),I.dragging=Fe,I.focusedThumbIndex=Pe;const ce=BW(I),qe=(F==null?void 0:F.root)??f.Root??RW,st=(F==null?void 0:F.rail)??f.Rail??AW,rt=(F==null?void 0:F.track)??f.Track??IW,Je=(F==null?void 0:F.thumb)??f.Thumb??jW,Se=(F==null?void 0:F.valueLabel)??f.ValueLabel??LW,ut=(F==null?void 0:F.mark)??f.Mark??zW,q=(F==null?void 0:F.markLabel)??f.MarkLabel??FW,ne=(F==null?void 0:F.input)??f.Input??"input",ye=(B==null?void 0:B.root)??h.root,we=(B==null?void 0:B.rail)??h.rail,ke=(B==null?void 0:B.track)??h.track,ve=(B==null?void 0:B.thumb)??h.thumb,Ve=(B==null?void 0:B.valueLabel)??h.valueLabel,$e=(B==null?void 0:B.mark)??h.mark,Ye=(B==null?void 0:B.markLabel)??h.markLabel,lt=(B==null?void 0:B.input)??h.input,ft=Dr({elementType:qe,getSlotProps:me,externalSlotProps:ye,externalForwardedProps:re,additionalProps:{...DW(qe)&&{as:u}},ownerState:{...I,...ye==null?void 0:ye.ownerState},className:[ce.root,g]}),ae=Dr({elementType:st,externalSlotProps:we,ownerState:I,className:ce.rail}),_e=Dr({elementType:rt,externalSlotProps:ke,additionalProps:{style:{...Q[Te].offset(We),...Q[Te].leap(De)}},ownerState:{...I,...ke==null?void 0:ke.ownerState},className:ce.track}),ze=Dr({elementType:Je,getSlotProps:ge,externalSlotProps:ve,ownerState:{...I,...ve==null?void 0:ve.ownerState},className:ce.thumb}),Ke=Dr({elementType:Se,externalSlotProps:Ve,ownerState:{...I,...Ve==null?void 0:Ve.ownerState},className:ce.valueLabel}),_t=Dr({elementType:ut,externalSlotProps:$e,ownerState:I,className:ce.mark}),ur=Dr({elementType:q,externalSlotProps:Ye,ownerState:I,className:ce.markLabel}),yr=Dr({elementType:ne,getSlotProps:pe,externalSlotProps:lt,ownerState:I});return R.jsxs(qe,{...ft,children:[R.jsx(st,{...ae}),R.jsx(rt,{..._e}),Me.filter(vt=>vt.value>=O&&vt.value<=C).map((vt,Ft)=>{const wn=Vp(vt.value,O,C),No=Q[Te].offset(wn);let Vr;return K===!1?Vr=Be.includes(vt.value):Vr=K==="normal"&&(Oe?vt.value>=Be[0]&&vt.value<=Be[Be.length-1]:vt.value<=Be[0])||K==="inverted"&&(Oe?vt.value<=Be[0]||vt.value>=Be[Be.length-1]:vt.value>=Be[0]),R.jsxs($.Fragment,{children:[R.jsx(ut,{"data-index":Ft,..._t,...!ks(ut)&&{markActive:Vr},style:{...No,..._t.style},className:Ee(_t.className,Vr&&ce.markActive)}),vt.label!=null?R.jsx(q,{"aria-hidden":!0,"data-index":Ft,...ur,...!ks(q)&&{markLabelActive:Vr},style:{...No,...ur.style},className:Ee(ce.markLabel,ur.className,Vr&&ce.markLabelActive),children:vt.label}):null]},Ft)}),Be.map((vt,Ft)=>{const wn=Vp(vt,O,C),No=Q[Te].offset(wn),Vr=Y==="off"?WW:Se;return R.jsx(Vr,{...!ks(Vr)&&{valueLabelFormat:X,valueLabelDisplay:Y,value:typeof X=="function"?X(G(vt),Ft):X,index:Ft,open:Ce===Ft||Re===Ft||Y==="on",disabled:w},...Ke,children:R.jsx(Je,{"data-index":Ft,...ze,className:Ee(ce.thumb,ze.className,Re===Ft&&ce.active,Pe===Ft&&ce.focusVisible),style:{...No,...pt(Ft),...ze.style},children:R.jsx(ne,{"data-index":Ft,"aria-label":S?S(Ft):a,"aria-valuenow":G(vt),"aria-labelledby":l,"aria-valuetext":k?k(G(vt),Ft):i,value:Be[Ft],...yr})})},Ft)})]})});function HW(t={}){const{autoHideDuration:e=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=t,i=vs();$.useEffect(()=>{if(!o)return;function k(D){D.defaultPrevented||D.key==="Escape"&&(n==null||n(D,"escapeKeyDown"))}return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[o,n]);const l=Nr((k,D)=>{n==null||n(k,D)}),u=Nr(k=>{!n||k==null||i.start(k,()=>{l(null,"timeout")})});$.useEffect(()=>(o&&u(e),i.clear),[o,e,u,i]);const f=k=>{n==null||n(k,"clickaway")},h=i.clear,d=$.useCallback(()=>{e!=null&&u(a??e*.5)},[e,a,u]),_=k=>D=>{const C=k.onBlur;C==null||C(D),d()},g=k=>D=>{const C=k.onFocus;C==null||C(D),h()},b=k=>D=>{const C=k.onMouseEnter;C==null||C(D),h()},w=k=>D=>{const C=k.onMouseLeave;C==null||C(D),d()};return $.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",d),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",h)}},[r,o,d,h]),{getRootProps:(k={})=>{const D={...xs(t),...xs(k)};return{role:"presentation",...k,...D,onBlur:_(D),onFocus:g(D),onMouseEnter:b(D),onMouseLeave:w(D)}},onClickAway:f}}function qW(t){return tt("MuiSnackbarContent",t)}Ze("MuiSnackbarContent",["root","message","action"]);const VW=t=>{const{classes:e}=t;return nt({root:["root"],action:["action"],message:["message"]},qW,e)},XW=ie(ku,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(t,e)=>e.root})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?.8:.98,r=Fp(t.palette.background.default,e);return{...t.typography.body2,color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),GW=ie("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0"}),JW=ie("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),YW=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:l="alert",...u}=n,f=n,h=VW(f);return R.jsxs(XW,{role:l,square:!0,elevation:6,className:Ee(h.root,a),ownerState:f,ref:r,...u,children:[R.jsx(GW,{className:h.message,ownerState:f,children:i}),o?R.jsx(JW,{className:h.action,ownerState:f,children:o}):null]})});function KW(t){return tt("MuiSnackbar",t)}Ze("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ZW=t=>{const{classes:e,anchorOrigin:r}=t,n={root:["root",`anchorOrigin${he(r.vertical)}${he(r.horizontal)}`]};return nt(n,KW,e)},AC=ie("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`anchorOrigin${he(r.anchorOrigin.vertical)}${he(r.anchorOrigin.horizontal)}`]]}})(Xe(({theme:t})=>({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical==="top",style:{top:8,[t.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!=="top",style:{bottom:8,[t.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[t.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[t.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="center",style:{[t.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),QW=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSnackbar"}),o=ta(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:l,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:h,className:d,ClickAwayListenerProps:_,ContentProps:g,disableWindowBlurListener:b=!1,message:w,onBlur:S,onClose:k,onFocus:D,onMouseEnter:C,onMouseLeave:O,open:M,resumeHideDuration:T,TransitionComponent:P=iu,transitionDuration:j=a,TransitionProps:{onEnter:z,onExited:E,...L}={},...G}=n,B={...n,anchorOrigin:{vertical:l,horizontal:u},autoHideDuration:f,disableWindowBlurListener:b,TransitionComponent:P,transitionDuration:j},F=ZW(B),{getRootProps:H,onClickAway:K}=HW({...B}),[ee,Y]=$.useState(!0),X=Dr({elementType:AC,getSlotProps:H,externalForwardedProps:G,ownerState:B,additionalProps:{ref:r},className:[F.root,d]}),re=Q=>{Y(!0),E&&E(Q)},I=(Q,me)=>{Y(!1),z&&z(Q,me)};return!M&&ee?null:R.jsx(A9,{onClickAway:K,..._,children:R.jsx(AC,{...X,children:R.jsx(P,{appear:!0,in:M,timeout:j,direction:l==="top"?"down":"up",onEnter:I,onExited:re,...L,children:h||R.jsx(YW,{message:w,action:i,...g})})})})});function eU(t){return tt("MuiTooltip",t)}const or=Ze("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function tU(t){return Math.round(t*1e5)/1e5}const rU=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:a}=t,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${he(a.split("-")[0])}`],arrow:["arrow"]};return nt(i,eU,e)},nU=ie(OM,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Xe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${or.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${or.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${or.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${or.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${or.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${or.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${or.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${or.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),oU=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${he(r.placement.split("-")[0])}`]]}})(Xe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Nt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${or.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${or.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${or.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${or.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${tU(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${or.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${or.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),aU=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(Xe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Nt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ap=!1;const IC=new Of;let Cl={x:0,y:0};function sp(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const Op=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:i,components:l={},componentsProps:u={},describeChild:f=!1,disableFocusListener:h=!1,disableHoverListener:d=!1,disableInteractive:_=!1,disableTouchListener:g=!1,enterDelay:b=100,enterNextDelay:w=0,enterTouchDelay:S=700,followCursor:k=!1,id:D,leaveDelay:C=0,leaveTouchDelay:O=1500,onClose:M,onOpen:T,open:P,placement:j="bottom",PopperComponent:z,PopperProps:E={},slotProps:L={},slots:G={},title:B,TransitionComponent:F,TransitionProps:H,...K}=n,ee=$.isValidElement(a)?a:R.jsx("span",{children:a}),Y=ta(),X=Us(),[re,I]=$.useState(),[Q,me]=$.useState(null),pe=$.useRef(!1),ge=_||k,Ce=vs(),Re=vs(),Te=vs(),Pe=vs(),[Oe,Fe]=ru({controlled:P,default:!1,name:"Tooltip",state:"open"});let Me=Oe;const Be=Tf(D),We=$.useRef(),De=Nr(()=>{We.current!==void 0&&(document.body.style.WebkitUserSelect=We.current,We.current=void 0),Pe.clear()});$.useEffect(()=>De,[De]);const pt=dt=>{IC.clear(),ap=!0,Fe(!0),T&&!Me&&T(dt)},ce=Nr(dt=>{IC.start(800+C,()=>{ap=!1}),Fe(!1),M&&Me&&M(dt),Ce.start(Y.transitions.duration.shortest,()=>{pe.current=!1})}),qe=dt=>{pe.current&&dt.type!=="touchstart"||(re&&re.removeAttribute("title"),Re.clear(),Te.clear(),b||ap&&w?Re.start(ap?w:b,()=>{pt(dt)}):pt(dt))},st=dt=>{Re.clear(),Te.start(C,()=>{ce(dt)})},[,rt]=$.useState(!1),Je=dt=>{Ba(dt.target)||(rt(!1),st(dt))},Se=dt=>{re||I(dt.currentTarget),Ba(dt.target)&&(rt(!0),qe(dt))},ut=dt=>{pe.current=!0;const Wr=ee.props;Wr.onTouchStart&&Wr.onTouchStart(dt)},q=dt=>{ut(dt),Te.clear(),Ce.clear(),De(),We.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Pe.start(S,()=>{document.body.style.WebkitUserSelect=We.current,qe(dt)})},ne=dt=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(dt),De(),Te.start(O,()=>{ce(dt)})};$.useEffect(()=>{if(!Me)return;function dt(Wr){Wr.key==="Escape"&&ce(Wr)}return document.addEventListener("keydown",dt),()=>{document.removeEventListener("keydown",dt)}},[ce,Me]);const ye=ar(Ws(ee),I,r);!B&&B!==0&&(Me=!1);const we=$.useRef(),ke=dt=>{const Wr=ee.props;Wr.onMouseMove&&Wr.onMouseMove(dt),Cl={x:dt.clientX,y:dt.clientY},we.current&&we.current.update()},ve={},Ve=typeof B=="string";f?(ve.title=!Me&&Ve&&!d?B:null,ve["aria-describedby"]=Me?Be:null):(ve["aria-label"]=Ve?B:null,ve["aria-labelledby"]=Me&&!Ve?Be:null);const $e={...ve,...K,...ee.props,className:Ee(K.className,ee.props.className),onTouchStart:ut,ref:ye,...k?{onMouseMove:ke}:{}},Ye={};g||($e.onTouchStart=q,$e.onTouchEnd=ne),d||($e.onMouseOver=sp(qe,$e.onMouseOver),$e.onMouseLeave=sp(st,$e.onMouseLeave),ge||(Ye.onMouseOver=qe,Ye.onMouseLeave=st)),h||($e.onFocus=sp(Se,$e.onFocus),$e.onBlur=sp(Je,$e.onBlur),ge||(Ye.onFocus=Se,Ye.onBlur=Je));const lt={...n,isRtl:X,arrow:o,disableInteractive:ge,placement:j,PopperComponentProp:z,touch:pe.current},ft=typeof L.popper=="function"?L.popper(lt):L.popper,ae=$.useMemo(()=>{var Wr,Ac;let dt=[{name:"arrow",enabled:!!Q,options:{element:Q,padding:4}}];return(Wr=E.popperOptions)!=null&&Wr.modifiers&&(dt=dt.concat(E.popperOptions.modifiers)),(Ac=ft==null?void 0:ft.popperOptions)!=null&&Ac.modifiers&&(dt=dt.concat(ft.popperOptions.modifiers)),{...E.popperOptions,...ft==null?void 0:ft.popperOptions,modifiers:dt}},[Q,E.popperOptions,ft==null?void 0:ft.popperOptions]),_e=rU(lt),ze=typeof L.transition=="function"?L.transition(lt):L.transition,Ke={slots:{popper:l.Popper,transition:l.Transition??F,tooltip:l.Tooltip,arrow:l.Arrow,...G},slotProps:{arrow:L.arrow??u.arrow,popper:{...E,...ft??u.popper},tooltip:L.tooltip??u.tooltip,transition:{...H,...ze??u.transition}}},[_t,ur]=Sr("popper",{elementType:nU,externalForwardedProps:Ke,ownerState:lt,className:Ee(_e.popper,E==null?void 0:E.className)}),[yr,vt]=Sr("transition",{elementType:iu,externalForwardedProps:Ke,ownerState:lt}),[Ft,wn]=Sr("tooltip",{elementType:oU,className:_e.tooltip,externalForwardedProps:Ke,ownerState:lt}),[No,Vr]=Sr("arrow",{elementType:aU,className:_e.arrow,externalForwardedProps:Ke,ownerState:lt,ref:me});return R.jsxs($.Fragment,{children:[$.cloneElement(ee,$e),R.jsx(_t,{as:z??OM,placement:j,anchorEl:k?{getBoundingClientRect:()=>({top:Cl.y,left:Cl.x,right:Cl.x,bottom:Cl.y,width:0,height:0})}:re,popperRef:we,open:re?Me:!1,id:Be,transition:!0,...Ye,...ur,popperOptions:ae,children:({TransitionProps:dt})=>R.jsx(yr,{timeout:Y.transitions.duration.shorter,...dt,...vt,children:R.jsxs(Ft,{...wn,children:[B,o?R.jsx(No,{...Vr}):null]})})})]})}),sU=Yz({createStyledComponent:ie("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>ot({props:t,name:"MuiStack"})});function iU(t){return tt("MuiTab",t)}const Tn=Ze("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),cU=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:l,disabled:u}=t,f={root:["root",a&&i&&"labelIcon",`textColor${he(r)}`,n&&"fullWidth",o&&"wrapped",l&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return nt(f,iU,e)},lU=ie(Va,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${he(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${Tn.iconWrapper}`]:e.iconWrapper},{[`& .${Tn.icon}`]:e.icon}]}})(Xe(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${Tn.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${Tn.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${Tn.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${Tn.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Tn.selected}`]:{opacity:1},[`&.${Tn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Tn.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Tn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Tn.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Tn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),Oi=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:l,icon:u,iconPosition:f="top",indicator:h,label:d,onChange:_,onClick:g,onFocus:b,selected:w,selectionFollowsFocus:S,textColor:k="inherit",value:D,wrapped:C=!1,...O}=n,M={...n,disabled:a,disableFocusRipple:i,selected:w,icon:!!u,iconPosition:f,label:!!d,fullWidth:l,textColor:k,wrapped:C},T=cU(M),P=u&&d&&$.isValidElement(u)?$.cloneElement(u,{className:Ee(T.icon,u.props.className)}):u,j=E=>{!w&&_&&_(E,D),g&&g(E)},z=E=>{S&&!w&&_&&_(E,D),b&&b(E)};return R.jsxs(lU,{focusRipple:!i,className:Ee(T.root,o),ref:r,role:"tab","aria-selected":w,disabled:a,onClick:j,onFocus:z,ownerState:M,tabIndex:w?0:-1,...O,children:[f==="top"||f==="start"?R.jsxs($.Fragment,{children:[P,d]}):R.jsxs($.Fragment,{children:[d,P]}),h]})});function uU(t){return tt("MuiToolbar",t)}Ze("MuiToolbar",["root","gutters","regular","dense"]);const dU=t=>{const{classes:e,disableGutters:r,variant:n}=t;return nt({root:["root",!r&&"gutters",n]},uU,e)},pU=ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Xe(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),Bb=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:l="regular",...u}=n,f={...n,component:a,disableGutters:i,variant:l},h=dU(f);return R.jsx(pU,{as:a,className:Ee(h.root,o),ref:r,ownerState:f,...u})}),fU=Ge(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),hU=Ge(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function mU(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function _U(t,e,r,n={},o=()=>{}){const{ease:a=mU,duration:i=300}=n;let l=null;const u=e[t];let f=!1;const h=()=>{f=!0},d=_=>{if(f){o(new Error("Animation cancelled"));return}l===null&&(l=_);const g=Math.min(1,(_-l)/i);if(e[t]=a(g)*(r-u)+u,g>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return u===r?(o(new Error("Element already at target position")),h):(requestAnimationFrame(d),h)}const gU={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function yU(t){const{onChange:e,...r}=t,n=$.useRef(),o=$.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return yn(()=>{const i=Ef(()=>{const u=n.current;a(),u!==n.current&&e(n.current)}),l=eo(o.current);return l.addEventListener("resize",i),()=>{i.clear(),l.removeEventListener("resize",i)}},[e]),$.useEffect(()=>{a(),e(n.current)},[e]),R.jsx("div",{style:gU,...r,ref:o})}function vU(t){return tt("MuiTabScrollButton",t)}const bU=Ze("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),wU=t=>{const{classes:e,orientation:r,disabled:n}=t;return nt({root:["root",r,n&&"disabled"]},vU,e)},xU=ie(Va,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${bU.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),SU=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:i={},direction:l,orientation:u,disabled:f,...h}=n,d=Us(),_={isRtl:d,...n},g=wU(_),b=a.StartScrollButtonIcon??fU,w=a.EndScrollButtonIcon??hU,S=Dr({elementType:b,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:_}),k=Dr({elementType:w,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:_});return R.jsx(xU,{component:"div",className:Ee(g.root,o),ref:r,role:null,ownerState:_,tabIndex:null,...h,style:{...h.style,...u==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:l==="left"?R.jsx(b,{...S}):R.jsx(w,{...k})})});function kU(t){return tt("MuiTabs",t)}const f_=Ze("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),jC=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,LC=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ip=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(t,o);else{o.focus();return}}},CU=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:l,classes:u}=t;return nt({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},kU,u)},$U=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${f_.scrollButtons}`]:e.scrollButtons},{[`& .${f_.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Xe(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${f_.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),EU=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),TU=ie("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),OU=ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(Xe(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),DU=ie(yU)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),zC={},MU=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTabs"}),o=ta(),a=Us(),{"aria-label":i,"aria-labelledby":l,action:u,centered:f=!1,children:h,className:d,component:_="div",allowScrollButtonsMobile:g=!1,indicatorColor:b="primary",onChange:w,orientation:S="horizontal",ScrollButtonComponent:k=SU,scrollButtons:D="auto",selectionFollowsFocus:C,slots:O={},slotProps:M={},TabIndicatorProps:T={},TabScrollButtonProps:P={},textColor:j="primary",value:z,variant:E="standard",visibleScrollbar:L=!1,...G}=n,B=E==="scrollable",F=S==="vertical",H=F?"scrollTop":"scrollLeft",K=F?"top":"left",ee=F?"bottom":"right",Y=F?"clientHeight":"clientWidth",X=F?"height":"width",re={...n,component:_,allowScrollButtonsMobile:g,indicatorColor:b,orientation:S,vertical:F,scrollButtons:D,textColor:j,variant:E,visibleScrollbar:L,fixed:!B,hideScrollbar:B&&!L,scrollableX:B&&!F,scrollableY:B&&F,centered:f&&!B,scrollButtonsHideMobile:!g},I=CU(re),Q=Dr({elementType:O.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:re}),me=Dr({elementType:O.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:re}),[pe,ge]=$.useState(!1),[Ce,Re]=$.useState(zC),[Te,Pe]=$.useState(!1),[Oe,Fe]=$.useState(!1),[Me,Be]=$.useState(!1),[We,De]=$.useState({overflow:"hidden",scrollbarWidth:0}),pt=new Map,ce=$.useRef(null),qe=$.useRef(null),st=()=>{const ae=ce.current;let _e;if(ae){const Ke=ae.getBoundingClientRect();_e={clientWidth:ae.clientWidth,scrollLeft:ae.scrollLeft,scrollTop:ae.scrollTop,scrollWidth:ae.scrollWidth,top:Ke.top,bottom:Ke.bottom,left:Ke.left,right:Ke.right}}let ze;if(ae&&z!==!1){const Ke=qe.current.children;if(Ke.length>0){const _t=Ke[pt.get(z)];ze=_t?_t.getBoundingClientRect():null}}return{tabsMeta:_e,tabMeta:ze}},rt=Nr(()=>{const{tabsMeta:ae,tabMeta:_e}=st();let ze=0,Ke;F?(Ke="top",_e&&ae&&(ze=_e.top-ae.top+ae.scrollTop)):(Ke=a?"right":"left",_e&&ae&&(ze=(a?-1:1)*(_e[Ke]-ae[Ke]+ae.scrollLeft)));const _t={[Ke]:ze,[X]:_e?_e[X]:0};if(typeof Ce[Ke]!="number"||typeof Ce[X]!="number")Re(_t);else{const ur=Math.abs(Ce[Ke]-_t[Ke]),yr=Math.abs(Ce[X]-_t[X]);(ur>=1||yr>=1)&&Re(_t)}}),Je=(ae,{animation:_e=!0}={})=>{_e?_U(H,ce.current,ae,{duration:o.transitions.duration.standard}):ce.current[H]=ae},Se=ae=>{let _e=ce.current[H];F?_e+=ae:_e+=ae*(a?-1:1),Je(_e)},ut=()=>{const ae=ce.current[Y];let _e=0;const ze=Array.from(qe.current.children);for(let Ke=0;Keae){Ke===0&&(_e=ae);break}_e+=_t[Y]}return _e},q=()=>{Se(-1*ut())},ne=()=>{Se(ut())},ye=$.useCallback(ae=>{De({overflow:null,scrollbarWidth:ae})},[]),we=()=>{const ae={};ae.scrollbarSizeListener=B?R.jsx(DU,{onChange:ye,className:Ee(I.scrollableX,I.hideScrollbar)}):null;const ze=B&&(D==="auto"&&(Te||Oe)||D===!0);return ae.scrollButtonStart=ze?R.jsx(k,{slots:{StartScrollButtonIcon:O.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Q},orientation:S,direction:a?"right":"left",onClick:q,disabled:!Te,...P,className:Ee(I.scrollButtons,P.className)}):null,ae.scrollButtonEnd=ze?R.jsx(k,{slots:{EndScrollButtonIcon:O.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:me},orientation:S,direction:a?"left":"right",onClick:ne,disabled:!Oe,...P,className:Ee(I.scrollButtons,P.className)}):null,ae},ke=Nr(ae=>{const{tabsMeta:_e,tabMeta:ze}=st();if(!(!ze||!_e)){if(ze[K]<_e[K]){const Ke=_e[H]+(ze[K]-_e[K]);Je(Ke,{animation:ae})}else if(ze[ee]>_e[ee]){const Ke=_e[H]+(ze[ee]-_e[ee]);Je(Ke,{animation:ae})}}}),ve=Nr(()=>{B&&D!==!1&&Be(!Me)});$.useEffect(()=>{const ae=Ef(()=>{ce.current&&rt()});let _e;const ze=ur=>{ur.forEach(yr=>{yr.removedNodes.forEach(vt=>{_e==null||_e.unobserve(vt)}),yr.addedNodes.forEach(vt=>{_e==null||_e.observe(vt)})}),ae(),ve()},Ke=eo(ce.current);Ke.addEventListener("resize",ae);let _t;return typeof ResizeObserver<"u"&&(_e=new ResizeObserver(ae),Array.from(qe.current.children).forEach(ur=>{_e.observe(ur)})),typeof MutationObserver<"u"&&(_t=new MutationObserver(ze),_t.observe(qe.current,{childList:!0})),()=>{ae.clear(),Ke.removeEventListener("resize",ae),_t==null||_t.disconnect(),_e==null||_e.disconnect()}},[rt,ve]),$.useEffect(()=>{const ae=Array.from(qe.current.children),_e=ae.length;if(typeof IntersectionObserver<"u"&&_e>0&&B&&D!==!1){const ze=ae[0],Ke=ae[_e-1],_t={root:ce.current,threshold:.99},ur=wn=>{Pe(!wn[0].isIntersecting)},yr=new IntersectionObserver(ur,_t);yr.observe(ze);const vt=wn=>{Fe(!wn[0].isIntersecting)},Ft=new IntersectionObserver(vt,_t);return Ft.observe(Ke),()=>{yr.disconnect(),Ft.disconnect()}}},[B,D,Me,h==null?void 0:h.length]),$.useEffect(()=>{ge(!0)},[]),$.useEffect(()=>{rt()}),$.useEffect(()=>{ke(zC!==Ce)},[ke,Ce]),$.useImperativeHandle(u,()=>({updateIndicator:rt,updateScrollButtons:ve}),[rt,ve]);const Ve=R.jsx(OU,{...T,className:Ee(I.indicator,T.className),ownerState:re,style:{...Ce,...T.style}});let $e=0;const Ye=$.Children.map(h,ae=>{if(!$.isValidElement(ae))return null;const _e=ae.props.value===void 0?$e:ae.props.value;pt.set(_e,$e);const ze=_e===z;return $e+=1,$.cloneElement(ae,{fullWidth:E==="fullWidth",indicator:ze&&!pe&&Ve,selected:ze,selectionFollowsFocus:C,onChange:w,textColor:j,value:_e,...$e===1&&z===!1&&!ae.props.tabIndex?{tabIndex:0}:{}})}),lt=ae=>{const _e=qe.current,ze=cr(_e).activeElement;if(ze.getAttribute("role")!=="tab")return;let _t=S==="horizontal"?"ArrowLeft":"ArrowUp",ur=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&a&&(_t="ArrowRight",ur="ArrowLeft"),ae.key){case _t:ae.preventDefault(),ip(_e,ze,LC);break;case ur:ae.preventDefault(),ip(_e,ze,jC);break;case"Home":ae.preventDefault(),ip(_e,null,jC);break;case"End":ae.preventDefault(),ip(_e,null,LC);break}},ft=we();return R.jsxs($U,{className:Ee(I.root,d),ownerState:re,ref:r,as:_,...G,children:[ft.scrollButtonStart,ft.scrollbarSizeListener,R.jsxs(EU,{className:I.scroller,ownerState:re,style:{overflow:We.overflow,[F?`margin${a?"Left":"Right"}`:"marginBottom"]:L?void 0:-We.scrollbarWidth},ref:ce,children:[R.jsx(TU,{"aria-label":i,"aria-labelledby":l,"aria-orientation":S==="vertical"?"vertical":null,className:I.flexContainer,ownerState:re,onKeyDown:lt,ref:qe,role:"tablist",children:Ye}),pe&&Ve]}),ft.scrollButtonEnd]})});function NU(t){return tt("MuiTextField",t)}Ze("MuiTextField",["root"]);const PU={standard:mo,filled:Ab,outlined:zb},RU=t=>{const{classes:e}=t;return nt({root:["root"]},NU,e)},AU=ie(Fi,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Fr=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:l,color:u="primary",defaultValue:f,disabled:h=!1,error:d=!1,FormHelperTextProps:_,fullWidth:g=!1,helperText:b,id:w,InputLabelProps:S,inputProps:k,InputProps:D,inputRef:C,label:O,maxRows:M,minRows:T,multiline:P=!1,name:j,onBlur:z,onChange:E,onFocus:L,placeholder:G,required:B=!1,rows:F,select:H=!1,SelectProps:K,slots:ee={},slotProps:Y={},type:X,value:re,variant:I="outlined",...Q}=n,me={...n,autoFocus:a,color:u,disabled:h,error:d,fullWidth:g,multiline:P,required:B,select:H,variant:I},pe=RU(me),ge=Tf(w),Ce=b&&ge?`${ge}-helper-text`:void 0,Re=O&&ge?`${ge}-label`:void 0,Te=PU[I],Pe={slots:ee,slotProps:{input:D,inputLabel:S,htmlInput:k,formHelperText:_,select:K,...Y}},Oe={},Fe=Pe.slotProps.inputLabel;I==="outlined"&&(Fe&&typeof Fe.shrink<"u"&&(Oe.notched=Fe.shrink),Oe.label=O),H&&((!K||!K.native)&&(Oe.id=void 0),Oe["aria-describedby"]=void 0);const[Me,Be]=Sr("input",{elementType:Te,externalForwardedProps:Pe,additionalProps:Oe,ownerState:me}),[We,De]=Sr("inputLabel",{elementType:Tp,externalForwardedProps:Pe,ownerState:me}),[pt,ce]=Sr("htmlInput",{elementType:"input",externalForwardedProps:Pe,ownerState:me}),[qe,st]=Sr("formHelperText",{elementType:zB,externalForwardedProps:Pe,ownerState:me}),[rt,Je]=Sr("select",{elementType:wo,externalForwardedProps:Pe,ownerState:me}),Se=R.jsx(Me,{"aria-describedby":Ce,autoComplete:o,autoFocus:a,defaultValue:f,fullWidth:g,multiline:P,name:j,rows:F,maxRows:M,minRows:T,type:X,value:re,id:ge,inputRef:C,onBlur:z,onChange:E,onFocus:L,placeholder:G,inputProps:ce,slots:{input:ee.htmlInput?pt:void 0},...Be});return R.jsxs(AU,{className:Ee(pe.root,l),disabled:h,error:d,fullWidth:g,ref:r,required:B,color:u,variant:I,ownerState:me,...Q,children:[O!=null&&O!==""&&R.jsx(We,{htmlFor:ge,id:Re,...De,children:O}),H?R.jsx(rt,{"aria-describedby":Ce,id:ge,labelId:Re,value:re,input:Se,...Je,children:i}):Se,b&&R.jsx(qe,{id:Ce,...st,children:b})]})});var HM={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},FC=y.createContext&&y.createContext(HM),IU=["attr","size","title"];function jU(t,e){if(t==null)return{};var r=LU(t,e),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function LU(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Xp(){return Xp=Object.assign?Object.assign.bind():function(t){for(var e=1;ey.createElement(e.tag,Gp({key:r},e.attr),qM(e.child)))}function WU(t){return e=>y.createElement(UU,Xp({attr:Gp({},t.attr)},e),qM(t.child))}function UU(t){var e=r=>{var{attr:n,size:o,title:a}=t,i=jU(t,IU),l=o||r.size||"1em",u;return r.className&&(u=r.className),t.className&&(u=(u?u+" ":"")+t.className),y.createElement("svg",Xp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:u,style:Gp(Gp({color:t.color||r.color},r.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&y.createElement("title",null,a),t.children)};return FC!==void 0?y.createElement(FC.Consumer,null,r=>e(r)):e(HM)}function HU(t){return WU({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"},child:[]}]})(t)}const qU=Ge(R.jsx("path",{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"}),"AddPhotoAlternate"),VU=Ge(R.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),XU=Ge(R.jsx("path",{d:"M2 12c0 5.52 4.48 10 10 10s10-4.48 10-10S17.52 2 12 2 2 6.48 2 12m10-1h4v2h-4v3l-4-4 4-4z"}),"ArrowCircleLeft"),GU=Ge(R.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"),JU=Ge(R.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"),YU=Ge(R.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"),KU=Ge(R.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4"),ZU=Ge(R.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 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6"}),"Brightness5"),Wb=Ge(R.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"),QU=Ge(R.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7"),eH=Ge(R.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"),jf=Ge(R.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"),Hs=Ge(R.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Rs=Ge(R.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"),Ub=Ge(R.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"),VM=Ge(R.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"),tH=Ge(R.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"),Dp=Ge(R.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"),XM=Ge(R.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"),rH=Ge(R.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"),nH=Ge(R.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"),oH=Ge(R.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"),aH=Ge(R.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"),sH=Ge(R.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"),iH=Ge(R.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"),WC=Ge(R.jsx("path",{d:"m21.9 21.9-8.49-8.49-9.82-9.82L2.1 2.1.69 3.51 3 5.83V19c0 1.1.9 2 2 2h13.17l2.31 2.31zM5 18l3.5-4.5 2.5 3.01L12.17 15l3 3zm16 .17L5.83 3H19c1.1 0 2 .9 2 2z"}),"ImageNotSupported"),GM=Ge(R.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"),JM=Ge(R.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),cH=Ge(R.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),lH=Ge(R.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"),uH=Ge(R.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"),dH=Ge(R.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"),UC=Ge(R.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"}),"Photo"),HC=Ge(R.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),YM=Ge(R.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"),pH=Ge(R.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"),S0=Ge(R.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"),fH=Ge(R.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"),hH=Ge(R.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"),mH=Ge(R.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"),_H=Ge(R.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"),gH=Ge(R.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),yH=Ge(R.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),vH=Ge(R.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"),bH=Ge(R.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"),h_=11/23/100;function qC(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substr(1,2),16),e.g=parseInt(t.substr(3,2),16),e.b=parseInt(t.substr(5,2),16);else if(t.length===4){const r=t.substr(1,1),n=t.substr(2,1),o=t.substr(3,1);e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function wH(t){return`#${Math.round(t.r).toString(16)}${Math.round(t.g).toString(16)}${Math.round(t.b).toString(16)}`}function xH(t,e,r){const n=qC(t),o=qC(e);return n.r+=o.r*(.05+h_*(r-1)),n.g+=o.g*(.05+h_*(r-1)),n.b+=o.b*(.05+h_*(r-1)),wH(n)}function VC(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:xH(t,e,n)};return r}function XC(t,e){var i,l,u,f,h,d,_,g,b,w,S;let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[200],"&:hover":{color:Or[100]}}},MuiPaper:VC("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[200],"&:hover":{color:Or[100]}}},MuiPaper:VC("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="DX"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#a9a9a9"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#F5F5F7"},secondary:{main:"#a9a9a9"},expert:"#BD1B24",text:{primary:"#007AFE",secondary:"#007AFE",disabled:"#007AFEAA"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:(l=(i=r.palette)==null?void 0:i.primary)==null?void 0:l.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:s0[300],dark:s0[400]});const o=ou(r),a=o.palette;return ou(o,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:(u=a.grey)==null?void 0:u[300],color:a.getContrastText&&((f=a.grey)!=null&&f[300])?a.getContrastText(a.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:(h=a.text)==null?void 0:h.primary,borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${(d=a.action)==null?void 0:d.disabledBackground}`},"&:hover":{borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Nt(((_=a.text)==null?void 0:_.primary)||"",((g=a.action)==null?void 0:g.hoverOpacity)||.04)}}},{props:{variant:"text",color:"grey"},style:{color:(b=a.text)==null?void 0:b.primary,"&:hover":{backgroundColor:Nt(((w=a.text)==null?void 0:w.primary)||"",((S=a.action)==null?void 0:S.hoverOpacity)||.04)}}}]}}})}function SH(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function kH(t){return(t==null?void 0:t.rows.map(e=>e.value).filter(e=>!!e))??[]}function GC(t){return t!=null&&t.startsWith("system.host.")||(t=`system.host.${t}`),t}function JC(t){return new Promise(e=>{setTimeout(e,t)})}function cp(t){t=(t||"").toString();const e=t[0]==="*",r=t[t.length-1]==="*";return t=t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(e?"":"^")+t+(r?"":"$")}var _o;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(_o||(_o={}));var Ra;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(Ra||(Ra={}));Ra.PERMISSION_ERROR;Ra.NOT_CONNECTED;const CH=["material","echarts","vis"];class Jo{constructor(e){xe(this,"props");xe(this,"ignoreState","");xe(this,"connected",!1);xe(this,"subscribed",!1);xe(this,"firstConnect",!0);xe(this,"waitForRestart",!1);xe(this,"loaded",!1);xe(this,"simStates",{});xe(this,"statesSubscribes",{});xe(this,"filesSubscribes",{});xe(this,"objectsSubscribes",{});xe(this,"objects",{});xe(this,"states",{});xe(this,"acl",null);xe(this,"isSecure",!1);xe(this,"onReadyDone",!1);xe(this,"onConnectionHandlers",[]);xe(this,"onLogHandlers",[]);xe(this,"onCmdStdoutHandler");xe(this,"onCmdStderrHandler");xe(this,"onCmdExitHandler");xe(this,"_socket");xe(this,"_waitForSocketPromise");xe(this,"_waitForFirstConnectionPromise",SH());xe(this,"_instanceSubscriptions",{});xe(this,"_promises",{});xe(this,"_authTimer");xe(this,"_systemConfig");xe(this,"systemLang","en");this.props=this.applyDefaultProps(e),this.waitForSocketLib().then(()=>this.startSocket()).catch(r=>{alert(`Socket connection could not be initialized: ${r}`)})}applyDefaultProps(e){return{...e,protocol:e.protocol||window.location.protocol,host:e.host||window.location.hostname,port:e.port||(window.location.port==="3000"?8081:window.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}}onError(e){(this.props.onError??console.error)(e)}get systemConfig(){return this._systemConfig}static isWeb(){return window.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(e,r)=>{if(typeof window.io>"u"&&typeof window.iob>"u")if(typeof window.registerSocketOnLoad=="function")window.registerSocketOnLoad(()=>e());else{for(let n=1;n<=30;n++){if(window.io||window.iob)return e();await JC(100)}r(new Error("Socket library could not be loaded!"))}else e()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let e=this.props.host,r=this.props.port,n=(this.props.protocol||window.location.protocol).replace(":",""),o=window.location.pathname;if(window.location.hostname==="iobroker.net"||window.location.hostname==="iobroker.pro")o="";else{if(window.socketUrl){const l=new URL(window.socketUrl);e=l.hostname,r=l.port,n=l.protocol.replace(":","")}const i=o.lastIndexOf("/");if(i!==-1&&(o=o.substring(0,i+1)),Jo.isWeb()){const l=o.split("/");l.length>2&&(l.pop(),l.pop(),CH.includes(l[l.length-1])&&l.pop(),o=l.join("/"),o.endsWith("/")||(o+="/"))}}const a=r?`${n}://${e}:${r}`:`${n}://${e}`;return this._socket=(window.io||window.iob).connect(a,{path:o.endsWith("/")?`${o}socket.io`:`${o}/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",i=>{this.onReadyDone=!1,i!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(l=>{const[u,f,h]=l.version.split(".");parseInt(u,10)*1e4+parseInt(f,10)*100+parseInt(h,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(_,g)=>this.onPreConnect(_,g))}).catch(l=>this.onError({message:l.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(l,u)=>{this.onPreConnect(l,u)})}),this._socket.on("reconnect",()=>{var i,l;this.onReadyDone=!1,(l=(i=this.props).onProgress)==null||l.call(i,_o.READY),this.connected=!0,this.waitForRestart?window.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(u=>u(!0)))}),this._socket.on("disconnect",()=>{var i,l;this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,(l=(i=this.props).onProgress)==null||l.call(i,_o.CONNECTING),this.onConnectionHandlers.forEach(u=>u(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",i=>{var l,u;(u=(l=this.props).onLog)==null||u.call(l,i),this.onLogHandlers.forEach(f=>f(i))}),this._socket.on("error",i=>{let l;i==null?l="":typeof i.toString=="function"?l=i.toString():(l=JSON.stringify(i),console.error(`Received strange error: ${l}`)),l.includes("User not authorized")?this.authenticate():l.includes("websocket error")?(console.error(`Socket Error => reload: ${i}`),window.location.reload()):console.error(`Socket Error: ${i}`)}),this._socket.on("connect_error",i=>console.error(`Connect error: ${i}`)),this._socket.on("permissionError",i=>this.onError({message:"no permission",operation:i.operation,type:i.type,id:i.id||""})),this._socket.on("objectChange",(i,l)=>{setTimeout(()=>this.objectChange(i,l),0)}),this._socket.on("stateChange",(i,l)=>{setTimeout(()=>this.stateChange(i,l),0)}),this._socket.on("im",(i,l,u)=>{setTimeout(()=>this.instanceMessage(i,l,u),0)}),this._socket.on("fileChange",(i,l,u)=>{setTimeout(()=>this.fileChange(i,l,u),0)}),this._socket.on("cmdStdout",(i,l)=>{var u;(u=this.onCmdStdoutHandler)==null||u.call(this,i,l)}),this._socket.on("cmdStderr",(i,l)=>{var u;(u=this.onCmdStderrHandler)==null||u.call(this,i,l)}),this._socket.on("cmdExit",(i,l)=>{var u;(u=this.onCmdExitHandler)==null||u.call(this,i,l)}),Promise.resolve()}onPreConnect(e,r){var n,o;this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=r,this.waitForRestart?window.location.reload():(this.firstConnect?this.loadData().catch(a=>console.error(`Cannot load data: ${a}`)):(o=(n=this.props).onProgress)==null||o.call(n,_o.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(a=>a(!0))),this._waitForFirstConnectionPromise.resolve()}static isCloud(){return window.location.hostname.includes("amazonaws.com")||window.location.hostname.includes("iobroker.in")?!0:typeof window.socketUrl>"u"?!1:window.socketUrl.includes("iobroker.in")||window.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getUserPermissions",(n,o)=>{n?r(n):e(o)})}})}async loadData(){if(this.loaded)return;const e=10;for(let r=1;r<=e;r++){if(this.doLoadData().catch(n=>console.error(`Cannot load data: ${n}`)),this.loaded)return;await JC(Jo.isCloud()?5e3:1e3)}}async doLoadData(){var e,r,n,o,a,i,l,u,f;if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(h){this.onError(`Cannot read user permissions: ${h}`);return}try{this.props.admin5only&&!Jo.isWeb()&&(!window.vendorPrefix||window.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(h){this.onError(`Cannot read system config: ${h}`);return}this._systemConfig&&(this.systemLang=(e=this._systemConfig.common)==null?void 0:e.language,this.systemLang||(this.systemLang=window.navigator.userLanguage||window.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)),(n=(r=this.props).onLanguage)==null||n.call(r,this.systemLang),this.loaded=!0,(a=(o=this.props).onProgress)==null||a.call(o,_o.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),(l=(i=this.props).onProgress)==null||l.call(i,_o.READY),this.onReadyDone||(this.onReadyDone=!0,(f=(u=this.props).onReady)==null||f.call(u,this.objects))}}authenticate(){window.location.search.includes("&href=")?window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}${window.location.search}${window.location.hash}`:window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}?login&href=${window.location.search}${window.location.hash}`}async subscribeState(...e){let r,n,o;e.length===3?[r,n,o]=e:([r,o]=e,n=!1);let a;if(Array.isArray(r)?a=r:a=[r],typeof o!="function")throw new Error("The state change handler must be a function!");const i=[];for(let l=0;ll.includes("*"))){let l;for(let u=0;uconsole.error(`Cannot call state change handler: ${_}`))}}}else try{const l=await(Jo.isWeb()?this.getStates(a):this.getForeignStates(a));if(l)for(const[u,f]of Object.entries(l)){const h=o(u,f);h instanceof Promise&&h.catch(d=>console.error(`Cannot call state change handler: ${d}`))}}catch(l){console.error(`Cannot getState "${a.join(", ")}": ${l.message}`);return}}async subscribeStateAsync(e,r){return this.subscribeState(e,r)}unsubscribeState(e,r){var a;let n;Array.isArray(e)?n=e:n=[e];const o=[];for(let i=0;i{try{const h=f(e,r,n);h instanceof Promise&&h.catch(d=>console.error(`Cannot call object change handler: ${d}`))}catch(h){console.error(`Error by callback of objectChange: ${h}`)}});if(o){const l=(i=(a=this.props).onObjectChange)==null?void 0:i.call(a,e,r);l instanceof Promise&&l.catch(u=>console.error(`Cannot call object change handler: ${u}`))}}stateChange(e,r){for(const n of Object.values(this.statesSubscribes))if(n.reg.test(e))for(const o of n.cbs)try{const a=o(e,r??null);a instanceof Promise&&a.catch(i=>console.error(`Cannot call state change handler: ${i}`))}catch(a){console.error(`Error by callback of stateChanged: ${a}`)}}instanceMessage(e,r,n){var o;(o=this._instanceSubscriptions[r])==null||o.forEach(a=>{if(a.messageType===e){const i=a.callback(n,r,e);i instanceof Promise&&i.catch(l=>console.error(`Cannot call instance message handler: ${l}`))}})}fileChange(e,r,n){for(const o of Object.values(this.filesSubscribes))if(o.regId.test(e)&&o.regFilePattern.test(r))for(const a of o.cbs)try{a(e,r,n)}catch(i){console.error(`Error by callback of fileChange: ${i}`)}}async subscribeFiles(e,r,n){if(typeof n!="function")throw new Error("The state change handler must be a function!");let o;Array.isArray(r)?o=r:o=[r];const a=[];for(let i=0;i{const d={elapsed:!1,clearTimeout:()=>{}};let _;n!==!1&&(_=setTimeout(()=>{d.elapsed=!0,o==null||o(),e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(Ra.TIMEOUT))},n??this.props.cmdTimeout),d.clearTimeout=()=>{clearTimeout(_)});try{await l(f,h,d)}catch(g){e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(g.toString()))}});return e&&(this._promises[e]=u),u}resetCache(e,r){r?Object.keys(this._promises).filter(n=>n.startsWith(e)).forEach(n=>{delete this._promises[n]}):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getStates",e,(o,a)=>{this.states=a??{},o?n(o):r(this.states)})}})}getState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r(this.simStates[e]||{val:null,ack:!0});return}this._socket.emit("getState",e,(o,a)=>{o?n(o):r(a)})}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getBinaryState",e,(o,a)=>{o?n(o):r(a)})}})}setBinaryState(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setBinaryState",e,r,a=>{a?o(a):n()})}})}setState(e,r,n){return typeof n=="boolean"&&(r={val:r,ack:n}),this.request({commandTimeout:!1,executor:(o,a)=>{if(e&&e===this.ignoreState){let i;if(typeof n=="boolean"||typeof r=="object"&&r.val!==void 0?i=r:i={val:r,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[e]=i,this.statesSubscribes[e])for(const l of this.statesSubscribes[e].cbs)try{const u=l(e,i);u instanceof Promise&&u.catch(f=>console.error(`Cannot call state change handler: ${f}`))}catch(u){console.error(`Error by callback of stateChanged: ${u}`)}o();return}this._socket.emit("setState",e,r,i=>{i?a(i):o()})}})}getObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{if(!e&&this.objects){n(this.objects);return}this._socket.emit(Jo.isWeb()?"getObjects":"getAllObjects",(a,i)=>{var l,u;r||(u=(l=this.props).onProgress)==null||u.call(l,_o.OBJECTS_LOADED),a?o(a):(this.objects=i??{},n(this.objects))})}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjects",e,(o,a)=>{o?n(o):r(a)})}})}_subscribe(e){var r,n;if(e&&!this.subscribed){this.subscribed=!0,(r=this.props.autoSubscribes)!=null&&r.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const o=Object.keys(this.objectsSubscribes);o.length&&this._socket.emit("subscribeObjects",o),Object.keys(this.objectsSubscribes).forEach(a=>this._socket.emit("subscribeObjects",a)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(a=>this._socket.emit("subscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[i,l]=a.split("$%$");this._socket.emit("subscribeFiles",i,l)})}else if(!e&&this.subscribed){this.subscribed=!1,(n=this.props.autoSubscribes)!=null&&n.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const o=Object.keys(this.objectsSubscribes);o.length&&this._socket.emit("unsubscribeObjects",o),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(a=>this._socket.emit("unsubscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[i,l]=a.split("$%$");this._socket.emit("unsubscribeFiles",i,l)})}}requireLog(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("requireLog",e,o=>{o?n(o):r()})}})}delObject(e,r=!1){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObject",e,{maintenance:r},a=>{a?o(a):n()})}})}delObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObjects",e,{maintenance:r},a=>{a?o(a):n()})}})}setObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",e,(o,a)=>{o?n(o):r(a)})}})}sendTo(e,r,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendTo",e,r,n,a=>{o(a)})}})}extendObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("extendObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){const r=this.onLogHandlers.indexOf(e);r!==-1&&this.onLogHandlers.splice(r,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){const r=this.onConnectionHandlers.indexOf(e);r!==-1&&this.onConnectionHandlers.splice(r,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,r){return this.request({cacheKey:`enums_${e||"all"}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${e||""}`,endkey:e?`enum.${e}.香`:"enum.香"},(a,i)=>{if(a)o(a);else{const l={};if(i)for(let u=0;u{n=n||"",o=o||"香",this._socket.emit("getObjectView",e,r,{startkey:n,endkey:o},(l,u)=>{if(l)i(l);else{const f={};if(u&&u.rows)for(let h=0;h{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(n,o)=>{var a;n?r(n):e((a=o.rows)==null?void 0:a.map(i=>i.value).filter(i=>!!i))})}})}readDir(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("readDir",e,r,(a,i)=>{a?o(a):n(i)})}})}readFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit(n?"readFile64":"readFile",e,r,(i,l,u)=>{i?a(i):o({file:l,mimeType:u})})}})}writeFile64(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{if(typeof n=="string")this._socket.emit("writeFile",e,r,n,i=>{i?a(i):o()});else{const i=btoa(new Uint8Array(n).reduce((l,u)=>l+String.fromCharCode(u),""));this._socket.emit("writeFile64",e,r,i,l=>{l?a(l):o()})}}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFile",e,r,a=>{a?o(a):n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFolder",e,r,a=>{a?o(a):n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("rename",e,r,n,i=>{i?a(i):o()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("renameFile",e,r,n,i=>{i?a(i):o()})}})}cmdExec(e,r,n,o){return this.request({commandTimeout:o,executor:(a,i,l)=>{e=GC(e),this._socket.emit("cmdExec",e,n,r,u=>{l.elapsed||(l.clearTimeout(),u?i(u):a())})}})}getSystemConfig(e){return this.request({cacheKey:"systemConfig",forceUpdate:e,commandTimeout:!1,executor:async r=>{let n=await this.getObject("system.config");n??(n={}),n.common??(n.common={}),n.native??(n.native={}),r(n)}})}getCompactSystemConfig(e){return this.request({cacheKey:"systemConfigCommon",forceUpdate:e,commandTimeout:!1,requireAdmin:!0,executor:(r,n)=>{this._socket.emit("getCompactSystemConfig",(o,a)=>{o?n(o):(a??(a={}),a.common??(a.common={}),a.native??(a.native={}),r(a))})}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getForeignStates",e||"*",(o,a)=>{o?n(o):r(a??{})})}})}getForeignObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getForeignObjects",e||"*",r,(a,i)=>{a?o(a):n(i)})}})}setSystemConfig(e){return this.setObject("system.config",e)}getRawSocket(){return this._socket}getHistory(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,i)=>{a?o(a):n(i)})}})}getHistoryEx(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,i,l,u)=>{a?o(a):n({values:i,sessionId:u,step:l})})}})}getIpAddresses(e,r){return e=GC(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObject(e);n((o==null?void 0:o.common.address)??[])}})}getVersion(e){return this.request({cacheKey:"version",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getVersion",(o,a,i)=>{o&&!a&&typeof o=="string"&&o.match(/\d+\.\d+\.\d+/)?r({version:o,serverName:"socketio"}):o?n(o):r({version:a,serverName:i})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getAdapterName",(n,o)=>{n?r(n):e(o)})}})}fileExists(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("fileExists",e,r,(a,i)=>{a?o(a):n(!!i)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit("authEnabled",(r,n)=>{e(n)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async e=>{var n;const r=await this.getObject("system.meta.uuid");e((n=r==null?void 0:r.native)==null?void 0:n.uuid)}})}checkFeatureSupported(e,r){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("checkFeatureSupported",e,(a,i)=>{a?o(a):n(i)})}})}getAdapterInstances(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`instances_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=e?`system.adapter.${e}.`:"system.adapter.",a=`${o}香`,i=await this.getObjectViewSystem("instance",o,a),l=Object.values(i);n(e?l.filter(u=>u.common.name===e):l)}})}getAdapters(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`adapter_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObjectViewSystem("adapter",`system.adapter.${e||""}`,`system.adapter.${e||"香"}`),a=Object.values(o);n(e?a.filter(i=>i.common.name===e):a)}})}getGroups(e){return this.request({cacheKey:"groups",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(o,a)=>{o?n(o):r(kH(a))})}})}logout(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("logout",n=>{n?r(n):e(null)})}})}subscribeOnInstance(e,r,n,o){return this.request({commandTimeout:!1,executor:(a,i)=>{this._socket.emit("clientSubscribe",e,r,n,(l,u)=>{l?i(l):u&&(u.error?i(u.error):(e.startsWith("system.adapter.")||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find(f=>f.messageType===r&&f.callback===o)||this._instanceSubscriptions[e].push({messageType:r,callback:o}),a(u)))})}})}unsubscribeFromInstance(e,r,n){var i;e.startsWith("system.adapter.")||(e=`system.adapter.${e}`);let o;const a=[];do{o=!1;const l=(i=this._instanceSubscriptions[e])==null?void 0:i.findIndex(u=>(!r||u.messageType===r)&&(!n||u.callback===n));if(l!=null&&l!==-1){o=!0;const u=this._instanceSubscriptions[e][l].messageType;this._instanceSubscriptions[e].splice(l,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e],this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find(h=>h.messageType===u)||a.push(this.request({commandTimeout:!1,executor:(h,d)=>{this._socket.emit("clientUnsubscribe",e,r,(_,g)=>_?d(_):h(g))}}))}}while(o&&(!n||!r));return a.length?Promise.all(a).then(l=>!!l.find(u=>u)):Promise.resolve(!1)}log(e,r){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",e,r),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}}const $H=` + `:null,n7=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${he(n)}`,r],dashed:["dashed",`dashedColor${he(n)}`],bar1:["bar",`barColor${he(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${he(n)}`,r==="buffer"&&`color${he(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return nt(o,QB,e)},Ib=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?wc(t.palette[e].main,.62):bc(t.palette[e].main,.5),o7=ie("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${he(r.color)}`],e[r.variant]]}})(Xe(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{backgroundColor:Ib(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),a7=ie("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${he(r.color)}`]]}})(Xe(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>{const r=Ib(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),r7||{animation:`${x0} 3s infinite linear`}),s7=ie("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${he(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Xe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${v0}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${v0}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:e7||{animation:`${b0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),i7=ie("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${he(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Xe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:Ib(t,e),transition:`transform .${v0}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:t7||{animation:`${w0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),jM=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:i,valueBuffer:l,variant:u="indeterminate",...f}=n,h={...n,color:a,variant:u},d=n7(h),_=Us(),g={},b={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&i!==void 0){g["aria-valuenow"]=Math.round(i),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let w=i-100;_&&(w=-w),b.bar1.transform=`translateX(${w}%)`}if(u==="buffer"&&l!==void 0){let w=(l||0)-100;_&&(w=-w),b.bar2.transform=`translateX(${w}%)`}return R.jsxs(o7,{className:Ee(d.root,o),ownerState:h,role:"progressbar",...g,ref:r,...f,children:[u==="buffer"?R.jsx(a7,{className:d.dashed,ownerState:h}):null,R.jsx(s7,{className:d.bar1,ownerState:h,style:b.bar1}),u==="determinate"?null:R.jsx(i7,{className:d.bar2,ownerState:h,style:b.bar2})]})});function c7(t){return tt("MuiLink",t)}const l7=Ze("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),u7=({theme:t,ownerState:e})=>{const r=e.color,n=vc(t,`palette.${r}`,!1)||e.color,o=vc(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:Nt(n,.4)},vC={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},d7=t=>{const{classes:e,component:r,focusVisible:n,underline:o}=t,a={root:["root",`underline${he(o)}`,r==="button"&&"button",n&&"focusVisible"]};return nt(a,c7,e)},p7=ie(bo,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`underline${he(r.underline)}`],r.component==="button"&&e.button]}})(Xe(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette[e].mainChannel} / 0.4)`:Nt(t.palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:Nt(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.secondaryChannel} / 0.4)`:Nt(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${l7.focusVisible}`]:{outline:"auto"}}}]}))),f7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiLink"}),o=ta(),{className:a,color:i="primary",component:l="a",onBlur:u,onFocus:f,TypographyClasses:h,underline:d="always",variant:_="inherit",sx:g,...b}=n,[w,S]=$.useState(!1),k=M=>{Ba(M.target)||S(!1),u&&u(M)},D=M=>{Ba(M.target)&&S(!0),f&&f(M)},C={...n,color:i,component:l,focusVisible:w,underline:d,variant:_},O=d7(C);return R.jsx(p7,{color:i,className:Ee(O.root,a),classes:h,component:l,onBlur:k,onFocus:D,ref:r,ownerState:C,variant:_,...b,sx:[...vC[i]===void 0?[{color:i}]:[],...Array.isArray(g)?g:[g]],style:{...b.style,...d==="always"&&i!=="inherit"&&!vC[i]&&{"--Link-underlineColor":u7({theme:o,ownerState:C})}}})}),cu=$.createContext({});function h7(t){return tt("MuiList",t)}Ze("MuiList",["root","padding","dense","subheader"]);const m7=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return nt({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},h7,e)},_7=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),g7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:l=!1,disablePadding:u=!1,subheader:f,...h}=n,d=$.useMemo(()=>({dense:l}),[l]),_={...n,component:i,dense:l,disablePadding:u},g=m7(_);return R.jsx(cu.Provider,{value:d,children:R.jsxs(_7,{as:i,className:Ee(g.root,a),ref:r,ownerState:_,...h,children:[f,o]})})});function y7(t){return tt("MuiListItemIcon",t)}const bC=Ze("MuiListItemIcon",["root","alignItemsFlexStart"]),v7=t=>{const{alignItems:e,classes:r}=t;return nt({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},y7,r)},b7=ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Xe(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),w7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiListItemIcon"}),{className:o,...a}=n,i=$.useContext(cu),l={...n,alignItems:i.alignItems},u=v7(l);return R.jsx(b7,{className:Ee(u.root,o),ownerState:l,ref:r,...a})});function x7(t){return tt("MuiListItemText",t)}const oc=Ze("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),S7=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:a}=t;return nt({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},x7,e)},k7=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${oc.primary}`]:e.primary},{[`& .${oc.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Yk.root}:where(& .${oc.primary})`]:{display:"block"},[`.${Yk.root}:where(& .${oc.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),C7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:l=!1,primary:u,primaryTypographyProps:f,secondary:h,secondaryTypographyProps:d,slots:_={},slotProps:g={},...b}=n,{dense:w}=$.useContext(cu);let S=u??o,k=h;const D={...n,disableTypography:i,inset:l,primary:!!S,secondary:!!k,dense:w},C=S7(D),O={slots:_,slotProps:{primary:f,secondary:d,...g}},[M,T]=Sr("primary",{className:C.primary,elementType:bo,externalForwardedProps:O,ownerState:D}),[P,j]=Sr("secondary",{className:C.secondary,elementType:bo,externalForwardedProps:O,ownerState:D});return S!=null&&S.type!==bo&&!i&&(S=R.jsx(M,{variant:w?"body2":"body1",component:T!=null&&T.variant?void 0:"span",...T,children:S})),k!=null&&k.type!==bo&&!i&&(k=R.jsx(P,{variant:"body2",color:"textSecondary",...j,children:k})),R.jsxs(k7,{className:Ee(C.root,a),ownerState:D,ref:r,...b,children:[S,k]})});function d_(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function wC(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function LM(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function xl(t,e,r,n,o,a){let i=!1,l=o(t,e,e?r:!1);for(;l;){if(l===t.firstChild){if(i)return!1;i=!0}const u=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!LM(l,a)||u)l=o(t,l,r);else return l.focus(),!0}return!1}const $7=$.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:l,disabledItemsFocusable:u=!1,disableListWrap:f=!1,onKeyDown:h,variant:d="selectedMenu",..._}=e,g=$.useRef(null),b=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yn(()=>{o&&g.current.focus()},[o]),$.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(C,{direction:O})=>{const M=!g.current.style.width;if(C.clientHeight{const O=g.current,M=C.key;if(C.ctrlKey||C.metaKey||C.altKey){h&&h(C);return}const P=cr(O).activeElement;if(M==="ArrowDown")C.preventDefault(),xl(O,P,f,u,d_);else if(M==="ArrowUp")C.preventDefault(),xl(O,P,f,u,wC);else if(M==="Home")C.preventDefault(),xl(O,null,f,u,d_);else if(M==="End")C.preventDefault(),xl(O,null,f,u,wC);else if(M.length===1){const j=b.current,F=M.toLowerCase(),E=performance.now();j.keys.length>0&&(E-j.lastTime>500?(j.keys=[],j.repeating=!0,j.previousKeyMatched=!0):j.repeating&&F!==j.keys[0]&&(j.repeating=!1)),j.lastTime=E,j.keys.push(F);const L=P&&!j.repeating&&LM(P,j);j.previousKeyMatched&&(L||xl(O,P,!1,u,d_,j))?C.preventDefault():j.previousKeyMatched=!1}h&&h(C)},S=ar(g,r);let k=-1;$.Children.forEach(i,(C,O)=>{if(!$.isValidElement(C)){k===O&&(k+=1,k>=i.length&&(k=-1));return}C.props.disabled||(d==="selectedMenu"&&C.props.selected||k===-1)&&(k=O),k===O&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(k+=1,k>=i.length&&(k=-1))});const D=$.Children.map(i,(C,O)=>{if(O===k){const M={};return a&&(M.autoFocus=!0),C.props.tabIndex===void 0&&d==="selectedMenu"&&(M.tabIndex=0),$.cloneElement(C,M)}return C});return R.jsx(g7,{role:"menu",ref:S,className:l,onKeyDown:w,tabIndex:o?0:-1,..._,children:D})});function E7(t){return tt("MuiPopover",t)}Ze("MuiPopover",["root","paper"]);function xC(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function SC(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function kC(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function p_(t){return typeof t=="function"?t():t}const T7=t=>{const{classes:e}=t;return nt({root:["root"],paper:["paper"]},E7,e)},O7=ie(AM,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),FM=ie(ku,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),D7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:f,className:h,container:d,elevation:_=8,marginThreshold:g=16,open:b,PaperProps:w={},slots:S={},slotProps:k={},transformOrigin:D={vertical:"top",horizontal:"left"},TransitionComponent:C=iu,transitionDuration:O="auto",TransitionProps:{onEntering:M,...T}={},disableScrollLock:P=!1,...j}=n,F=(k==null?void 0:k.paper)??w,E=$.useRef(),L={...n,anchorOrigin:i,anchorReference:u,elevation:_,marginThreshold:g,externalPaperSlotProps:F,transformOrigin:D,TransitionComponent:C,transitionDuration:O,TransitionProps:T},G=T7(L),B=$.useCallback(()=>{if(u==="anchorPosition")return l;const Oe=p_(a),Me=(Oe&&Oe.nodeType===1?Oe:cr(E.current).body).getBoundingClientRect();return{top:Me.top+xC(Me,i.vertical),left:Me.left+SC(Me,i.horizontal)}},[a,i.horizontal,i.vertical,l,u]),z=$.useCallback(Oe=>({vertical:xC(Oe,D.vertical),horizontal:SC(Oe,D.horizontal)}),[D.horizontal,D.vertical]),H=$.useCallback(Oe=>{const ze={width:Oe.offsetWidth,height:Oe.offsetHeight},Me=z(ze);if(u==="none")return{top:null,left:null,transformOrigin:kC(Me)};const Be=B();let We=Be.top-Me.vertical,De=Be.left-Me.horizontal;const pt=We+ze.height,ce=De+ze.width,qe=eo(p_(a)),st=qe.innerHeight-g,rt=qe.innerWidth-g;if(g!==null&&West){const Je=pt-st;We-=Je,Me.vertical+=Je}if(g!==null&&Dert){const Je=ce-rt;De-=Je,Me.horizontal+=Je}return{top:`${Math.round(We)}px`,left:`${Math.round(De)}px`,transformOrigin:kC(Me)}},[a,u,B,z,g]),[K,ee]=$.useState(b),Y=$.useCallback(()=>{const Oe=E.current;if(!Oe)return;const ze=H(Oe);ze.top!==null&&Oe.style.setProperty("top",ze.top),ze.left!==null&&(Oe.style.left=ze.left),Oe.style.transformOrigin=ze.transformOrigin,ee(!0)},[H]);$.useEffect(()=>(P&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[a,P,Y]);const X=(Oe,ze)=>{M&&M(Oe,ze),Y()},re=()=>{ee(!1)};$.useEffect(()=>{b&&Y()}),$.useImperativeHandle(o,()=>b?{updatePosition:()=>{Y()}}:null,[b,Y]),$.useEffect(()=>{if(!b)return;const Oe=Ef(()=>{Y()}),ze=eo(a);return ze.addEventListener("resize",Oe),()=>{Oe.clear(),ze.removeEventListener("resize",Oe)}},[a,b,Y]);let I=O;O==="auto"&&!C.muiSupportAuto&&(I=void 0);const Q=d||(a?cr(p_(a)).body:void 0),me={slots:S,slotProps:{...k,paper:F}},[pe,ge]=Sr("paper",{elementType:FM,externalForwardedProps:me,additionalProps:{elevation:_,className:Ee(G.paper,F==null?void 0:F.className),style:K?F.style:{...F.style,opacity:0}},ownerState:L}),[Ce,{slotProps:Re,...Te}]=Sr("root",{elementType:O7,externalForwardedProps:me,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Q,open:b},ownerState:L,className:Ee(G.root,h)}),Pe=ar(E,ge.ref);return R.jsx(Ce,{...Te,...!ks(Ce)&&{slotProps:Re,disableScrollLock:P},...j,ref:r,children:R.jsx(C,{appear:!0,in:b,onEntering:X,onExited:re,timeout:I,...T,children:R.jsx(pe,{...ge,ref:Pe,children:f})})})});function M7(t){return tt("MuiMenu",t)}Ze("MuiMenu",["root","paper","list"]);const N7={vertical:"top",horizontal:"right"},P7={vertical:"top",horizontal:"left"},R7=t=>{const{classes:e}=t;return nt({root:["root"],paper:["paper"],list:["list"]},M7,e)},A7=ie(D7,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),I7=ie(FM,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),j7=ie($7,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),jb=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:i,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:f,open:h,PaperProps:d={},PopoverClasses:_,transitionDuration:g="auto",TransitionProps:{onEntering:b,...w}={},variant:S="selectedMenu",slots:k={},slotProps:D={},...C}=n,O=Us(),M={...n,autoFocus:o,disableAutoFocusItem:l,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:g,TransitionProps:w,variant:S},T=R7(M),P=o&&!l&&h,j=$.useRef(null),F=(K,ee)=>{j.current&&j.current.adjustStyleForScrollbar(K,{direction:O?"rtl":"ltr"}),b&&b(K,ee)},E=K=>{K.key==="Tab"&&(K.preventDefault(),f&&f(K,"tabKeyDown"))};let L=-1;$.Children.map(a,(K,ee)=>{$.isValidElement(K)&&(K.props.disabled||(S==="selectedMenu"&&K.props.selected||L===-1)&&(L=ee))});const G=k.paper??I7,B=D.paper??d,z=Dr({elementType:k.root,externalSlotProps:D.root,ownerState:M,className:[T.root,i]}),H=Dr({elementType:G,externalSlotProps:B,ownerState:M,className:T.paper});return R.jsx(A7,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?N7:P7,slots:{paper:G,root:k.root},slotProps:{root:z,paper:H},open:h,ref:r,transitionDuration:g,TransitionProps:{onEntering:F,...w},ownerState:M,...C,classes:_,children:R.jsx(j7,{onKeyDown:E,actions:j,autoFocus:o&&(L===-1||l),autoFocusItem:P,variant:S,...u,className:Ee(T.list,u.className),children:a})})});function L7(t){return tt("MuiMenuItem",t)}const Sl=Ze("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),F7=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},z7=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=t,u=nt({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},L7,i);return{...i,...u}},B7=ie(Va,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:F7})(Xe(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Sl.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Sl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Sl.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Sl.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Sl.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${mC.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${mC.inset}`]:{marginLeft:52},[`& .${oc.root}`]:{marginTop:0,marginBottom:0},[`& .${oc.inset}`]:{paddingLeft:36},[`& .${bC.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${bC.root} svg`]:{fontSize:"1.25rem"}}}]}))),fr=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:f,role:h="menuitem",tabIndex:d,className:_,...g}=n,b=$.useContext(cu),w=$.useMemo(()=>({dense:i||b.dense||!1,disableGutters:u}),[b.dense,i,u]),S=$.useRef(null);yn(()=>{o&&S.current&&S.current.focus()},[o]);const k={...n,dense:w.dense,divider:l,disableGutters:u},D=z7(n),C=ar(S,r);let O;return n.disabled||(O=d!==void 0?d:-1),R.jsx(cu.Provider,{value:w,children:R.jsx(B7,{ref:C,role:h,tabIndex:O,component:a,focusVisibleClassName:Ee(D.focusVisible,f),className:Ee(D.root,_),...g,ownerState:k,classes:D})})});function W7(t){return tt("MuiNativeSelect",t)}const Lb=Ze("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),U7=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:i}=t,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${he(r)}`,a&&"iconOpen",n&&"disabled"]};return nt(l,W7,e)},zM=ie("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Lb.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),H7=ie(zM,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cr,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${Lb.multiple}`]:e.multiple}]}})({}),BM=ie("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Lb.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),q7=ie(BM,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${he(r.variant)}`],r.open&&e.iconOpen]}})({}),V7=$.forwardRef(function(e,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:l,variant:u="standard",...f}=e,h={...e,disabled:o,variant:u,error:a},d=U7(h);return R.jsxs($.Fragment,{children:[R.jsx(H7,{ownerState:h,className:Ee(d.select,n),disabled:o,ref:l||r,...f}),e.multiple?null:R.jsx(q7,{as:i,ownerState:h,className:d.icon})]})});var CC;const X7=ie("fieldset",{shouldForwardProp:Cr})({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%"}),G7=ie("legend",{shouldForwardProp:Cr})(Xe(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function J7(t){const{children:e,classes:r,className:n,label:o,notched:a,...i}=t,l=o!=null&&o!=="",u={...t,notched:a,withLabel:l};return R.jsx(X7,{"aria-hidden":!0,className:n,ownerState:u,...i,children:R.jsx(G7,{ownerState:u,children:l?R.jsx("span",{children:o}):CC||(CC=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Y7=t=>{const{classes:e}=t,n=nt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},z8,e);return{...e,...n}},K7=ie(Rf,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Nf})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${lo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${lo.focused} .${lo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(Jt()).map(([r])=>({props:{color:r},style:{[`&.${lo.focused} .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${lo.error} .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${lo.disabled} .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),Z7=ie(J7,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),Q7=ie(Af,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Pf})(Xe(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Fb=$.forwardRef(function(e,r){var n;const o=ot({props:e,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:l="input",label:u,multiline:f=!1,notched:h,slots:d={},type:_="text",...g}=o,b=Y7(o),w=Oo(),S=Ga({props:o,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...o,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:w,fullWidth:i,hiddenLabel:S.hiddenLabel,multiline:f,size:S.size,type:_},D=d.root??a.Root??K7,C=d.input??a.Input??Q7;return R.jsx(Rb,{slots:{root:D,input:C},renderSuffix:O=>R.jsx(Z7,{ownerState:k,className:b.notchedOutline,label:u!=null&&u!==""&&S.required?n||(n=R.jsxs($.Fragment,{children:[u," ","*"]})):u,notched:typeof h<"u"?h:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:i,inputComponent:l,multiline:f,ref:r,type:_,...g,classes:{...b,notchedOutline:null}})});Fb.muiName="Input";const eW=Ge(R.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"),tW=Ge(R.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"),rW=ie("span",{shouldForwardProp:Cr})({position:"relative",display:"flex"}),nW=ie(eW)({transform:"scale(1)"}),oW=ie(tW)(Xe(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function WM(t){const{checked:e=!1,classes:r={},fontSize:n}=t,o={...t,checked:e};return R.jsxs(rW,{className:r.root,ownerState:o,children:[R.jsx(nW,{fontSize:n,className:r.background,ownerState:o}),R.jsx(oW,{fontSize:n,className:r.dot,ownerState:o})]})}const aW=$.createContext(void 0);function sW(){return $.useContext(aW)}function iW(t){return tt("MuiRadio",t)}const $C=Ze("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),cW=t=>{const{classes:e,color:r,size:n}=t,o={root:["root",`color${he(r)}`,n!=="medium"&&`size${he(n)}`]};return{...e,...nt(o,iW,e)}},lW=ie(RM,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${he(r.size)}`],e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${$C.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${$C.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function uW(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const EC=R.jsx(WM,{checked:!0}),TC=R.jsx(WM,{}),Ft=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:a=EC,color:i="primary",icon:l=TC,name:u,onChange:f,size:h="medium",className:d,disabled:_,disableRipple:g=!1,...b}=n,w=Oo();let S=_;w&&typeof S>"u"&&(S=w.disabled),S??(S=!1);const k={...n,disabled:S,disableRipple:g,color:i,size:h},D=cW(k),C=sW();let O=o;const M=o0(f,C&&C.onChange);let T=u;return C&&(typeof O>"u"&&(O=uW(C.value,n.value)),typeof T>"u"&&(T=C.name)),R.jsx(lW,{type:"radio",icon:$.cloneElement(l,{fontSize:TC.props.fontSize??h}),checkedIcon:$.cloneElement(a,{fontSize:EC.props.fontSize??h}),disabled:S,ownerState:k,classes:D,name:T,checked:O,onChange:M,ref:r,className:Ee(D.root,d),...b})});function dW(t){return tt("MuiSelect",t)}const kl=Ze("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var OC;const pW=ie(zM,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${kl.select}`]:e.select},{[`&.${kl.select}`]:e[r.variant]},{[`&.${kl.error}`]:e.error},{[`&.${kl.multiple}`]:e.multiple}]}})({[`&.${kl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),fW=ie(BM,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${he(r.variant)}`],r.open&&e.iconOpen]}})({}),hW=ie("input",{shouldForwardProp:t=>Df(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function DC(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function mW(t){return t==null||typeof t=="string"&&!t.trim()}const _W=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:i}=t,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${he(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return nt(l,dW,e)},gW=$.forwardRef(function(e,r){var ft;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:i,children:l,className:u,defaultOpen:f,defaultValue:h,disabled:d,displayEmpty:_,error:g=!1,IconComponent:b,inputRef:w,labelId:S,MenuProps:k={},multiple:D,name:C,onBlur:O,onChange:M,onClose:T,onFocus:P,onOpen:j,open:F,readOnly:E,renderValue:L,required:G,SelectDisplayProps:B={},tabIndex:z,type:H,value:K,variant:ee="standard",...Y}=e,[X,re]=ru({controlled:K,default:h,name:"Select"}),[I,Q]=ru({controlled:F,default:f,name:"Select"}),me=$.useRef(null),pe=$.useRef(null),[ge,Ce]=$.useState(null),{current:Re}=$.useRef(F!=null),[Te,Pe]=$.useState(),Oe=ar(r,w),ze=$.useCallback(ae=>{pe.current=ae,ae&&Ce(ae)},[]),Me=ge==null?void 0:ge.parentNode;$.useImperativeHandle(Oe,()=>({focus:()=>{pe.current.focus()},node:me.current,value:X}),[X]),$.useEffect(()=>{f&&I&&ge&&!Re&&(Pe(i?null:Me.clientWidth),pe.current.focus())},[ge,i]),$.useEffect(()=>{a&&pe.current.focus()},[a]),$.useEffect(()=>{if(!S)return;const ae=cr(pe.current).getElementById(S);if(ae){const _e=()=>{getSelection().isCollapsed&&pe.current.focus()};return ae.addEventListener("click",_e),()=>{ae.removeEventListener("click",_e)}}},[S]);const Be=(ae,_e)=>{ae?j&&j(_e):T&&T(_e),Re||(Pe(i?null:Me.clientWidth),Q(ae))},We=ae=>{ae.button===0&&(ae.preventDefault(),pe.current.focus(),Be(!0,ae))},De=ae=>{Be(!1,ae)},pt=$.Children.toArray(l),ce=ae=>{const _e=pt.find(Fe=>Fe.props.value===ae.target.value);_e!==void 0&&(re(_e.props.value),M&&M(ae,_e))},qe=ae=>_e=>{let Fe;if(_e.currentTarget.hasAttribute("tabindex")){if(D){Fe=Array.isArray(X)?X.slice():[];const Ke=X.indexOf(ae.props.value);Ke===-1?Fe.push(ae.props.value):Fe.splice(Ke,1)}else Fe=ae.props.value;if(ae.props.onClick&&ae.props.onClick(_e),X!==Fe&&(re(Fe),M)){const Ke=_e.nativeEvent||_e,_t=new Ke.constructor(Ke.type,Ke);Object.defineProperty(_t,"target",{writable:!0,value:{value:Fe,name:C}}),M(_t,ae)}D||Be(!1,_e)}},st=ae=>{E||[" ","ArrowUp","ArrowDown","Enter"].includes(ae.key)&&(ae.preventDefault(),Be(!0,ae))},rt=ge!==null&&I,Je=ae=>{!rt&&O&&(Object.defineProperty(ae,"target",{writable:!0,value:{value:X,name:C}}),O(ae))};delete Y["aria-invalid"];let Se,ut;const q=[];let ne=!1;(qp({value:X})||_)&&(L?Se=L(X):ne=!0);const ye=pt.map(ae=>{if(!$.isValidElement(ae))return null;let _e;if(D){if(!Array.isArray(X))throw new Error(Zo(2));_e=X.some(Fe=>DC(Fe,ae.props.value)),_e&&ne&&q.push(ae.props.children)}else _e=DC(X,ae.props.value),_e&&ne&&(ut=ae.props.children);return $.cloneElement(ae,{"aria-selected":_e?"true":"false",onClick:qe(ae),onKeyUp:Fe=>{Fe.key===" "&&Fe.preventDefault(),ae.props.onKeyUp&&ae.props.onKeyUp(Fe)},role:"option",selected:_e,value:void 0,"data-value":ae.props.value})});ne&&(D?q.length===0?Se=null:Se=q.reduce((ae,_e,Fe)=>(ae.push(_e),Fe{const{classes:e}=t;return e},zb={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>Cr(t)&&t!=="variant",slot:"Root"},vW=ie(mo,zb)(""),bW=ie(Fb,zb)(""),wW=ie(Ab,zb)(""),wo=$.forwardRef(function(e,r){const n=ot({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:a,classes:i={},className:l,defaultOpen:u=!1,displayEmpty:f=!1,IconComponent:h=W8,id:d,input:_,inputProps:g,label:b,labelId:w,MenuProps:S,multiple:k=!1,native:D=!1,onClose:C,onOpen:O,open:M,renderValue:T,SelectDisplayProps:P,variant:j="outlined",...F}=n,E=D?V7:gW,L=Oo(),G=Ga({props:n,muiFormControl:L,states:["variant","error"]}),B=G.variant||j,z={...n,variant:B,classes:i},H=yW(z),{root:K,...ee}=H,Y=_||{standard:R.jsx(vW,{ownerState:z}),outlined:R.jsx(bW,{label:b,ownerState:z}),filled:R.jsx(wW,{ownerState:z})}[B],X=ar(r,Ws(Y));return R.jsx($.Fragment,{children:$.cloneElement(Y,{inputComponent:E,inputProps:{children:a,error:G.error,IconComponent:h,variant:B,type:void 0,multiple:k,...D?{id:d}:{autoWidth:o,defaultOpen:u,displayEmpty:f,labelId:w,MenuProps:S,onClose:C,onOpen:O,open:M,renderValue:T,SelectDisplayProps:{id:d,...P}},...g,classes:g?kr(ee,g.classes):ee,..._?_.props.inputProps:{}},...(k&&D||f)&&B==="outlined"?{notched:!0}:{},ref:X,className:Ee(Y.props.className,l,H.root),...!_&&{variant:B},...F})})});wo.muiName="Select";function xW(t,e,r=(n,o)=>n===o){return t.length===e.length&&t.every((n,o)=>r(n,e[o]))}const SW=2;function Ti(t,e,r,n,o){return r===1?Math.min(t+e,o):Math.max(t-e,n)}function UM(t,e){return t-e}function MC(t,e){const{index:r}=t.reduce((n,o,a)=>{const i=Math.abs(e-o);return n===null||i({left:`${t}%`}),leap:t=>({width:`${t}%`})},"horizontal-reverse":{offset:t=>({right:`${t}%`}),leap:t=>({width:`${t}%`})},vertical:{offset:t=>({bottom:`${t}%`}),leap:t=>({height:`${t}%`})}},TW=t=>t;let op;function PC(){return op===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?op=CSS.supports("touch-action","none"):op=!0),op}function OW(t){const{"aria-labelledby":e,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:u=0,name:f,onChange:h,onChangeCommitted:d,orientation:_="horizontal",rootRef:g,scale:b=TW,step:w=1,shiftStep:S=10,tabIndex:k,value:D}=t,C=$.useRef(void 0),[O,M]=$.useState(-1),[T,P]=$.useState(-1),[j,F]=$.useState(!1),E=$.useRef(0),[L,G]=ru({controlled:D,default:r??u,name:"Slider"}),B=h&&((q,ne,ye)=>{const xe=q.nativeEvent||q,ke=new xe.constructor(xe.type,xe);Object.defineProperty(ke,"target",{writable:!0,value:{value:ne,name:f}}),h(ke,ne,ye)}),z=Array.isArray(L);let H=z?L.slice().sort(UM):[L];H=H.map(q=>q==null?u:Li(q,u,l));const K=i===!0&&w!==null?[...Array(Math.floor((l-u)/w)+1)].map((q,ne)=>({value:u+w*ne})):i||[],ee=K.map(q=>q.value),[Y,X]=$.useState(-1),re=$.useRef(null),I=ar(g,re),Q=q=>ne=>{var xe;const ye=Number(ne.currentTarget.getAttribute("data-index"));Ba(ne.target)&&X(ye),P(ye),(xe=q==null?void 0:q.onFocus)==null||xe.call(q,ne)},me=q=>ne=>{var ye;Ba(ne.target)||X(-1),P(-1),(ye=q==null?void 0:q.onBlur)==null||ye.call(q,ne)},pe=(q,ne)=>{const ye=Number(q.currentTarget.getAttribute("data-index")),xe=H[ye],ke=ee.indexOf(xe);let ve=ne;if(K&&w==null){const Ve=ee[ee.length-1];ve>Ve?ve=Ve:vene=>{var ye;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(ne.key)){ne.preventDefault();const xe=Number(ne.currentTarget.getAttribute("data-index")),ke=H[xe];let ve=null;if(w!=null){const Ve=ne.shiftKey?S:w;switch(ne.key){case"ArrowUp":ve=Ti(ke,Ve,1,u,l);break;case"ArrowRight":ve=Ti(ke,Ve,a?-1:1,u,l);break;case"ArrowDown":ve=Ti(ke,Ve,-1,u,l);break;case"ArrowLeft":ve=Ti(ke,Ve,a?1:-1,u,l);break;case"PageUp":ve=Ti(ke,S,1,u,l);break;case"PageDown":ve=Ti(ke,S,-1,u,l);break;case"Home":ve=u;break;case"End":ve=l;break}}else if(K){const Ve=ee[ee.length-1],$e=ee.indexOf(ke),Ye=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],lt=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ye.includes(ne.key)?$e===0?ve=ee[0]:ve=ee[$e-1]:lt.includes(ne.key)&&($e===ee.length-1?ve=Ve:ve=ee[$e+1])}ve!=null&&pe(ne,ve)}(ye=q==null?void 0:q.onKeyDown)==null||ye.call(q,ne)};yn(()=>{var q;n&&re.current.contains(document.activeElement)&&((q=document.activeElement)==null||q.blur())},[n]),n&&O!==-1&&M(-1),n&&Y!==-1&&X(-1);const Ce=q=>ne=>{var ye;(ye=q.onChange)==null||ye.call(q,ne),pe(ne,ne.target.valueAsNumber)},Re=$.useRef(void 0);let Te=_;a&&_==="horizontal"&&(Te+="-reverse");const Pe=({finger:q,move:ne=!1})=>{const{current:ye}=re,{width:xe,height:ke,bottom:ve,left:Ve}=ye.getBoundingClientRect();let $e;Te.startsWith("vertical")?$e=(ve-q.y)/ke:$e=(q.x-Ve)/xe,Te.includes("-reverse")&&($e=1-$e);let Ye;if(Ye=kW($e,u,l),w)Ye=$W(Ye,w,u);else{const ft=MC(ee,Ye);Ye=ee[ft]}Ye=Li(Ye,u,l);let lt=0;if(z){ne?lt=Re.current:lt=MC(H,Ye),o&&(Ye=Li(Ye,H[lt-1]||-1/0,H[lt+1]||1/0));const ft=Ye;Ye=NC({values:H,newValue:Ye,index:lt}),o&&ne||(lt=Ye.indexOf(ft),Re.current=lt)}return{newValue:Ye,activeIndex:lt}},Oe=Nr(q=>{const ne=tp(q,C);if(!ne)return;if(E.current+=1,q.type==="mousemove"&&q.buttons===0){ze(q);return}const{newValue:ye,activeIndex:xe}=Pe({finger:ne,move:!0});rp({sliderRef:re,activeIndex:xe,setActive:M}),G(ye),!j&&E.current>SW&&F(!0),B&&!np(ye,L)&&B(q,ye,xe)}),ze=Nr(q=>{const ne=tp(q,C);if(F(!1),!ne)return;const{newValue:ye}=Pe({finger:ne,move:!0});M(-1),q.type==="touchend"&&P(-1),d&&d(q,ye),C.current=void 0,Be()}),Me=Nr(q=>{if(n)return;PC()||q.preventDefault();const ne=q.changedTouches[0];ne!=null&&(C.current=ne.identifier);const ye=tp(q,C);if(ye!==!1){const{newValue:ke,activeIndex:ve}=Pe({finger:ye});rp({sliderRef:re,activeIndex:ve,setActive:M}),G(ke),B&&!np(ke,L)&&B(q,ke,ve)}E.current=0;const xe=cr(re.current);xe.addEventListener("touchmove",Oe,{passive:!0}),xe.addEventListener("touchend",ze,{passive:!0})}),Be=$.useCallback(()=>{const q=cr(re.current);q.removeEventListener("mousemove",Oe),q.removeEventListener("mouseup",ze),q.removeEventListener("touchmove",Oe),q.removeEventListener("touchend",ze)},[ze,Oe]);$.useEffect(()=>{const{current:q}=re;return q.addEventListener("touchstart",Me,{passive:PC()}),()=>{q.removeEventListener("touchstart",Me),Be()}},[Be,Me]),$.useEffect(()=>{n&&Be()},[n,Be]);const We=q=>ne=>{var ke;if((ke=q.onMouseDown)==null||ke.call(q,ne),n||ne.defaultPrevented||ne.button!==0)return;ne.preventDefault();const ye=tp(ne,C);if(ye!==!1){const{newValue:ve,activeIndex:Ve}=Pe({finger:ye});rp({sliderRef:re,activeIndex:Ve,setActive:M}),G(ve),B&&!np(ve,L)&&B(ne,ve,Ve)}E.current=0;const xe=cr(re.current);xe.addEventListener("mousemove",Oe,{passive:!0}),xe.addEventListener("mouseup",ze)},De=Vp(z?H[0]:u,u,l),pt=Vp(H[H.length-1],u,l)-De,ce=(q={})=>{const ne=xs(q),ye={onMouseDown:We(ne||{})},xe={...ne,...ye};return{...q,ref:I,...xe}},qe=q=>ne=>{var xe;(xe=q.onMouseOver)==null||xe.call(q,ne);const ye=Number(ne.currentTarget.getAttribute("data-index"));P(ye)},st=q=>ne=>{var ye;(ye=q.onMouseLeave)==null||ye.call(q,ne),P(-1)},rt=(q={})=>{const ne=xs(q),ye={onMouseOver:qe(ne||{}),onMouseLeave:st(ne||{})};return{...q,...ne,...ye}},Je=q=>({pointerEvents:O!==-1&&O!==q?"none":void 0});let Se;return _==="vertical"&&(Se=a?"vertical-rl":"vertical-lr"),{active:O,axis:Te,axisProps:EW,dragging:j,focusedThumbIndex:Y,getHiddenInputProps:(q={})=>{const ne=xs(q),ye={onChange:Ce(ne||{}),onFocus:Q(ne||{}),onBlur:me(ne||{}),onKeyDown:ge(ne||{})},xe={...ne,...ye};return{tabIndex:k,"aria-labelledby":e,"aria-orientation":_,"aria-valuemax":b(l),"aria-valuemin":b(u),name:f,type:"range",min:t.min,max:t.max,step:t.step===null&&t.marks?"any":t.step??void 0,disabled:n,...q,...xe,style:{...xF,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:Se}}},getRootProps:ce,getThumbProps:rt,marks:K,open:T,range:z,rootRef:I,trackLeap:pt,trackOffset:De,values:H,getThumbStyle:Je}}const DW=t=>!t||!ks(t);function MW(t){return tt("MuiSlider",t)}const Rn=Ze("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),NW=t=>{const{open:e}=t;return{offset:Ee(e&&Rn.valueLabelOpen),circle:Rn.valueLabelCircle,label:Rn.valueLabelLabel}};function PW(t){const{children:e,className:r,value:n}=t,o=NW(t);return e?$.cloneElement(e,{className:Ee(e.props.className)},R.jsxs($.Fragment,{children:[e.props.children,R.jsx("span",{className:Ee(o.offset,r),"aria-hidden":!0,children:R.jsx("span",{className:o.circle,children:R.jsx("span",{className:o.label,children:n})})})]})):null}function RC(t){return t}const RW=ie("span",{name:"MuiSlider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${he(r.color)}`],r.size!=="medium"&&e[`size${he(r.size)}`],r.marked&&e.marked,r.orientation==="vertical"&&e.vertical,r.track==="inverted"&&e.trackInverted,r.track===!1&&e.trackFalse]}})(Xe(({theme:t})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Rn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},[`&.${Rn.dragging}`]:{[`& .${Rn.thumb}, & .${Rn.track}`]:{transition:"none"}},variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),AW=ie("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(t,e)=>e.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),IW=ie("span",{name:"MuiSlider",slot:"Track",overridesResolver:(t,e)=>e.track})(Xe(({theme:t})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,track:"inverted"},style:{...t.vars?{backgroundColor:t.vars.palette.Slider[`${e}Track`],borderColor:t.vars.palette.Slider[`${e}Track`]}:{backgroundColor:wc(t.palette[e].main,.62),borderColor:wc(t.palette[e].main,.62),...t.applyStyles("dark",{backgroundColor:bc(t.palette[e].main,.5)}),...t.applyStyles("dark",{borderColor:bc(t.palette[e].main,.5)})}}}))]}))),jW=ie("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.thumb,e[`thumbColor${he(r.color)}`],r.size!=="medium"&&e[`thumbSize${he(r.size)}`]]}})(Xe(({theme:t})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Rn.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{[`&:hover, &.${Rn.focusVisible}`]:{...t.vars?{boxShadow:`0px 0px 0px 8px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Nt(t.palette[e].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${Rn.active}`]:{...t.vars?{boxShadow:`0px 0px 0px 14px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Nt(t.palette[e].main,.16)}`}}}}))]}))),LW=ie(PW,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(t,e)=>e.valueLabel})(Xe(({theme:t})=>({zIndex:1,whiteSpace:"nowrap",...t.typography.body2,fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Rn.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Rn.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),FW=ie("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:t=>Df(t)&&t!=="markActive",overridesResolver:(t,e)=>{const{markActive:r}=t;return[e.mark,r&&e.markActive]}})(Xe(({theme:t})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}))),zW=ie("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:t=>Df(t)&&t!=="markLabelActive",overridesResolver:(t,e)=>e.markLabel})(Xe(({theme:t})=>({...t.typography.body2,color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]}))),BW=t=>{const{disabled:e,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:u}=t,f={root:["root",e&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${he(l)}`,u&&`size${he(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",e&&"disabled",u&&`thumbSize${he(u)}`,l&&`thumbColor${he(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return nt(f,MW,i)},WW=({children:t})=>t,UW=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSlider"}),o=Us(),{"aria-label":a,"aria-valuetext":i,"aria-labelledby":l,component:u="span",components:f={},componentsProps:h={},color:d="primary",classes:_,className:g,disableSwap:b=!1,disabled:w=!1,getAriaLabel:S,getAriaValueText:k,marks:D=!1,max:C=100,min:O=0,name:M,onChange:T,onChangeCommitted:P,orientation:j="horizontal",shiftStep:F=10,size:E="medium",step:L=1,scale:G=RC,slotProps:B,slots:z,tabIndex:H,track:K="normal",value:ee,valueLabelDisplay:Y="off",valueLabelFormat:X=RC,...re}=n,I={...n,isRtl:o,max:C,min:O,classes:_,disabled:w,disableSwap:b,orientation:j,marks:D,color:d,size:E,step:L,shiftStep:F,scale:G,track:K,valueLabelDisplay:Y,valueLabelFormat:X},{axisProps:Q,getRootProps:me,getHiddenInputProps:pe,getThumbProps:ge,open:Ce,active:Re,axis:Te,focusedThumbIndex:Pe,range:Oe,dragging:ze,marks:Me,values:Be,trackOffset:We,trackLeap:De,getThumbStyle:pt}=OW({...I,rootRef:r});I.marked=Me.length>0&&Me.some(vt=>vt.label),I.dragging=ze,I.focusedThumbIndex=Pe;const ce=BW(I),qe=(z==null?void 0:z.root)??f.Root??RW,st=(z==null?void 0:z.rail)??f.Rail??AW,rt=(z==null?void 0:z.track)??f.Track??IW,Je=(z==null?void 0:z.thumb)??f.Thumb??jW,Se=(z==null?void 0:z.valueLabel)??f.ValueLabel??LW,ut=(z==null?void 0:z.mark)??f.Mark??FW,q=(z==null?void 0:z.markLabel)??f.MarkLabel??zW,ne=(z==null?void 0:z.input)??f.Input??"input",ye=(B==null?void 0:B.root)??h.root,xe=(B==null?void 0:B.rail)??h.rail,ke=(B==null?void 0:B.track)??h.track,ve=(B==null?void 0:B.thumb)??h.thumb,Ve=(B==null?void 0:B.valueLabel)??h.valueLabel,$e=(B==null?void 0:B.mark)??h.mark,Ye=(B==null?void 0:B.markLabel)??h.markLabel,lt=(B==null?void 0:B.input)??h.input,ft=Dr({elementType:qe,getSlotProps:me,externalSlotProps:ye,externalForwardedProps:re,additionalProps:{...DW(qe)&&{as:u}},ownerState:{...I,...ye==null?void 0:ye.ownerState},className:[ce.root,g]}),ae=Dr({elementType:st,externalSlotProps:xe,ownerState:I,className:ce.rail}),_e=Dr({elementType:rt,externalSlotProps:ke,additionalProps:{style:{...Q[Te].offset(We),...Q[Te].leap(De)}},ownerState:{...I,...ke==null?void 0:ke.ownerState},className:ce.track}),Fe=Dr({elementType:Je,getSlotProps:ge,externalSlotProps:ve,ownerState:{...I,...ve==null?void 0:ve.ownerState},className:ce.thumb}),Ke=Dr({elementType:Se,externalSlotProps:Ve,ownerState:{...I,...Ve==null?void 0:Ve.ownerState},className:ce.valueLabel}),_t=Dr({elementType:ut,externalSlotProps:$e,ownerState:I,className:ce.mark}),ur=Dr({elementType:q,externalSlotProps:Ye,ownerState:I,className:ce.markLabel}),yr=Dr({elementType:ne,getSlotProps:pe,externalSlotProps:lt,ownerState:I});return R.jsxs(qe,{...ft,children:[R.jsx(st,{...ae}),R.jsx(rt,{..._e}),Me.filter(vt=>vt.value>=O&&vt.value<=C).map((vt,zt)=>{const wn=Vp(vt.value,O,C),No=Q[Te].offset(wn);let Vr;return K===!1?Vr=Be.includes(vt.value):Vr=K==="normal"&&(Oe?vt.value>=Be[0]&&vt.value<=Be[Be.length-1]:vt.value<=Be[0])||K==="inverted"&&(Oe?vt.value<=Be[0]||vt.value>=Be[Be.length-1]:vt.value>=Be[0]),R.jsxs($.Fragment,{children:[R.jsx(ut,{"data-index":zt,..._t,...!ks(ut)&&{markActive:Vr},style:{...No,..._t.style},className:Ee(_t.className,Vr&&ce.markActive)}),vt.label!=null?R.jsx(q,{"aria-hidden":!0,"data-index":zt,...ur,...!ks(q)&&{markLabelActive:Vr},style:{...No,...ur.style},className:Ee(ce.markLabel,ur.className,Vr&&ce.markLabelActive),children:vt.label}):null]},zt)}),Be.map((vt,zt)=>{const wn=Vp(vt,O,C),No=Q[Te].offset(wn),Vr=Y==="off"?WW:Se;return R.jsx(Vr,{...!ks(Vr)&&{valueLabelFormat:X,valueLabelDisplay:Y,value:typeof X=="function"?X(G(vt),zt):X,index:zt,open:Ce===zt||Re===zt||Y==="on",disabled:w},...Ke,children:R.jsx(Je,{"data-index":zt,...Fe,className:Ee(ce.thumb,Fe.className,Re===zt&&ce.active,Pe===zt&&ce.focusVisible),style:{...No,...pt(zt),...Fe.style},children:R.jsx(ne,{"data-index":zt,"aria-label":S?S(zt):a,"aria-valuenow":G(vt),"aria-labelledby":l,"aria-valuetext":k?k(G(vt),zt):i,value:Be[zt],...yr})})},zt)})]})});function HW(t={}){const{autoHideDuration:e=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=t,i=vs();$.useEffect(()=>{if(!o)return;function k(D){D.defaultPrevented||D.key==="Escape"&&(n==null||n(D,"escapeKeyDown"))}return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[o,n]);const l=Nr((k,D)=>{n==null||n(k,D)}),u=Nr(k=>{!n||k==null||i.start(k,()=>{l(null,"timeout")})});$.useEffect(()=>(o&&u(e),i.clear),[o,e,u,i]);const f=k=>{n==null||n(k,"clickaway")},h=i.clear,d=$.useCallback(()=>{e!=null&&u(a??e*.5)},[e,a,u]),_=k=>D=>{const C=k.onBlur;C==null||C(D),d()},g=k=>D=>{const C=k.onFocus;C==null||C(D),h()},b=k=>D=>{const C=k.onMouseEnter;C==null||C(D),h()},w=k=>D=>{const C=k.onMouseLeave;C==null||C(D),d()};return $.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",d),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",h)}},[r,o,d,h]),{getRootProps:(k={})=>{const D={...xs(t),...xs(k)};return{role:"presentation",...k,...D,onBlur:_(D),onFocus:g(D),onMouseEnter:b(D),onMouseLeave:w(D)}},onClickAway:f}}function qW(t){return tt("MuiSnackbarContent",t)}Ze("MuiSnackbarContent",["root","message","action"]);const VW=t=>{const{classes:e}=t;return nt({root:["root"],action:["action"],message:["message"]},qW,e)},XW=ie(ku,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(t,e)=>e.root})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?.8:.98,r=zp(t.palette.background.default,e);return{...t.typography.body2,color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),GW=ie("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0"}),JW=ie("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),YW=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:l="alert",...u}=n,f=n,h=VW(f);return R.jsxs(XW,{role:l,square:!0,elevation:6,className:Ee(h.root,a),ownerState:f,ref:r,...u,children:[R.jsx(GW,{className:h.message,ownerState:f,children:i}),o?R.jsx(JW,{className:h.action,ownerState:f,children:o}):null]})});function KW(t){return tt("MuiSnackbar",t)}Ze("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ZW=t=>{const{classes:e,anchorOrigin:r}=t,n={root:["root",`anchorOrigin${he(r.vertical)}${he(r.horizontal)}`]};return nt(n,KW,e)},AC=ie("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`anchorOrigin${he(r.anchorOrigin.vertical)}${he(r.anchorOrigin.horizontal)}`]]}})(Xe(({theme:t})=>({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical==="top",style:{top:8,[t.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!=="top",style:{bottom:8,[t.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[t.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[t.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="center",style:{[t.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),QW=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSnackbar"}),o=ta(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:l,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:h,className:d,ClickAwayListenerProps:_,ContentProps:g,disableWindowBlurListener:b=!1,message:w,onBlur:S,onClose:k,onFocus:D,onMouseEnter:C,onMouseLeave:O,open:M,resumeHideDuration:T,TransitionComponent:P=iu,transitionDuration:j=a,TransitionProps:{onEnter:F,onExited:E,...L}={},...G}=n,B={...n,anchorOrigin:{vertical:l,horizontal:u},autoHideDuration:f,disableWindowBlurListener:b,TransitionComponent:P,transitionDuration:j},z=ZW(B),{getRootProps:H,onClickAway:K}=HW({...B}),[ee,Y]=$.useState(!0),X=Dr({elementType:AC,getSlotProps:H,externalForwardedProps:G,ownerState:B,additionalProps:{ref:r},className:[z.root,d]}),re=Q=>{Y(!0),E&&E(Q)},I=(Q,me)=>{Y(!1),F&&F(Q,me)};return!M&&ee?null:R.jsx(A9,{onClickAway:K,..._,children:R.jsx(AC,{...X,children:R.jsx(P,{appear:!0,in:M,timeout:j,direction:l==="top"?"down":"up",onEnter:I,onExited:re,...L,children:h||R.jsx(YW,{message:w,action:i,...g})})})})});function eU(t){return tt("MuiTooltip",t)}const or=Ze("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function tU(t){return Math.round(t*1e5)/1e5}const rU=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:a}=t,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${he(a.split("-")[0])}`],arrow:["arrow"]};return nt(i,eU,e)},nU=ie(OM,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Xe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${or.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${or.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${or.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${or.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${or.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${or.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${or.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${or.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),oU=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${he(r.placement.split("-")[0])}`]]}})(Xe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Nt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${or.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${or.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${or.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${or.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${tU(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${or.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${or.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),aU=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(Xe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Nt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ap=!1;const IC=new Of;let Cl={x:0,y:0};function sp(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const Op=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:i,components:l={},componentsProps:u={},describeChild:f=!1,disableFocusListener:h=!1,disableHoverListener:d=!1,disableInteractive:_=!1,disableTouchListener:g=!1,enterDelay:b=100,enterNextDelay:w=0,enterTouchDelay:S=700,followCursor:k=!1,id:D,leaveDelay:C=0,leaveTouchDelay:O=1500,onClose:M,onOpen:T,open:P,placement:j="bottom",PopperComponent:F,PopperProps:E={},slotProps:L={},slots:G={},title:B,TransitionComponent:z,TransitionProps:H,...K}=n,ee=$.isValidElement(a)?a:R.jsx("span",{children:a}),Y=ta(),X=Us(),[re,I]=$.useState(),[Q,me]=$.useState(null),pe=$.useRef(!1),ge=_||k,Ce=vs(),Re=vs(),Te=vs(),Pe=vs(),[Oe,ze]=ru({controlled:P,default:!1,name:"Tooltip",state:"open"});let Me=Oe;const Be=Tf(D),We=$.useRef(),De=Nr(()=>{We.current!==void 0&&(document.body.style.WebkitUserSelect=We.current,We.current=void 0),Pe.clear()});$.useEffect(()=>De,[De]);const pt=dt=>{IC.clear(),ap=!0,ze(!0),T&&!Me&&T(dt)},ce=Nr(dt=>{IC.start(800+C,()=>{ap=!1}),ze(!1),M&&Me&&M(dt),Ce.start(Y.transitions.duration.shortest,()=>{pe.current=!1})}),qe=dt=>{pe.current&&dt.type!=="touchstart"||(re&&re.removeAttribute("title"),Re.clear(),Te.clear(),b||ap&&w?Re.start(ap?w:b,()=>{pt(dt)}):pt(dt))},st=dt=>{Re.clear(),Te.start(C,()=>{ce(dt)})},[,rt]=$.useState(!1),Je=dt=>{Ba(dt.target)||(rt(!1),st(dt))},Se=dt=>{re||I(dt.currentTarget),Ba(dt.target)&&(rt(!0),qe(dt))},ut=dt=>{pe.current=!0;const Wr=ee.props;Wr.onTouchStart&&Wr.onTouchStart(dt)},q=dt=>{ut(dt),Te.clear(),Ce.clear(),De(),We.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Pe.start(S,()=>{document.body.style.WebkitUserSelect=We.current,qe(dt)})},ne=dt=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(dt),De(),Te.start(O,()=>{ce(dt)})};$.useEffect(()=>{if(!Me)return;function dt(Wr){Wr.key==="Escape"&&ce(Wr)}return document.addEventListener("keydown",dt),()=>{document.removeEventListener("keydown",dt)}},[ce,Me]);const ye=ar(Ws(ee),I,r);!B&&B!==0&&(Me=!1);const xe=$.useRef(),ke=dt=>{const Wr=ee.props;Wr.onMouseMove&&Wr.onMouseMove(dt),Cl={x:dt.clientX,y:dt.clientY},xe.current&&xe.current.update()},ve={},Ve=typeof B=="string";f?(ve.title=!Me&&Ve&&!d?B:null,ve["aria-describedby"]=Me?Be:null):(ve["aria-label"]=Ve?B:null,ve["aria-labelledby"]=Me&&!Ve?Be:null);const $e={...ve,...K,...ee.props,className:Ee(K.className,ee.props.className),onTouchStart:ut,ref:ye,...k?{onMouseMove:ke}:{}},Ye={};g||($e.onTouchStart=q,$e.onTouchEnd=ne),d||($e.onMouseOver=sp(qe,$e.onMouseOver),$e.onMouseLeave=sp(st,$e.onMouseLeave),ge||(Ye.onMouseOver=qe,Ye.onMouseLeave=st)),h||($e.onFocus=sp(Se,$e.onFocus),$e.onBlur=sp(Je,$e.onBlur),ge||(Ye.onFocus=Se,Ye.onBlur=Je));const lt={...n,isRtl:X,arrow:o,disableInteractive:ge,placement:j,PopperComponentProp:F,touch:pe.current},ft=typeof L.popper=="function"?L.popper(lt):L.popper,ae=$.useMemo(()=>{var Wr,Ac;let dt=[{name:"arrow",enabled:!!Q,options:{element:Q,padding:4}}];return(Wr=E.popperOptions)!=null&&Wr.modifiers&&(dt=dt.concat(E.popperOptions.modifiers)),(Ac=ft==null?void 0:ft.popperOptions)!=null&&Ac.modifiers&&(dt=dt.concat(ft.popperOptions.modifiers)),{...E.popperOptions,...ft==null?void 0:ft.popperOptions,modifiers:dt}},[Q,E.popperOptions,ft==null?void 0:ft.popperOptions]),_e=rU(lt),Fe=typeof L.transition=="function"?L.transition(lt):L.transition,Ke={slots:{popper:l.Popper,transition:l.Transition??z,tooltip:l.Tooltip,arrow:l.Arrow,...G},slotProps:{arrow:L.arrow??u.arrow,popper:{...E,...ft??u.popper},tooltip:L.tooltip??u.tooltip,transition:{...H,...Fe??u.transition}}},[_t,ur]=Sr("popper",{elementType:nU,externalForwardedProps:Ke,ownerState:lt,className:Ee(_e.popper,E==null?void 0:E.className)}),[yr,vt]=Sr("transition",{elementType:iu,externalForwardedProps:Ke,ownerState:lt}),[zt,wn]=Sr("tooltip",{elementType:oU,className:_e.tooltip,externalForwardedProps:Ke,ownerState:lt}),[No,Vr]=Sr("arrow",{elementType:aU,className:_e.arrow,externalForwardedProps:Ke,ownerState:lt,ref:me});return R.jsxs($.Fragment,{children:[$.cloneElement(ee,$e),R.jsx(_t,{as:F??OM,placement:j,anchorEl:k?{getBoundingClientRect:()=>({top:Cl.y,left:Cl.x,right:Cl.x,bottom:Cl.y,width:0,height:0})}:re,popperRef:xe,open:re?Me:!1,id:Be,transition:!0,...Ye,...ur,popperOptions:ae,children:({TransitionProps:dt})=>R.jsx(yr,{timeout:Y.transitions.duration.shorter,...dt,...vt,children:R.jsxs(zt,{...wn,children:[B,o?R.jsx(No,{...Vr}):null]})})})]})}),sU=YF({createStyledComponent:ie("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>ot({props:t,name:"MuiStack"})});function iU(t){return tt("MuiTab",t)}const Tn=Ze("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),cU=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:l,disabled:u}=t,f={root:["root",a&&i&&"labelIcon",`textColor${he(r)}`,n&&"fullWidth",o&&"wrapped",l&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return nt(f,iU,e)},lU=ie(Va,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${he(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${Tn.iconWrapper}`]:e.iconWrapper},{[`& .${Tn.icon}`]:e.icon}]}})(Xe(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${Tn.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${Tn.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${Tn.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${Tn.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Tn.selected}`]:{opacity:1},[`&.${Tn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Tn.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Tn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Tn.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Tn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),Oi=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:l,icon:u,iconPosition:f="top",indicator:h,label:d,onChange:_,onClick:g,onFocus:b,selected:w,selectionFollowsFocus:S,textColor:k="inherit",value:D,wrapped:C=!1,...O}=n,M={...n,disabled:a,disableFocusRipple:i,selected:w,icon:!!u,iconPosition:f,label:!!d,fullWidth:l,textColor:k,wrapped:C},T=cU(M),P=u&&d&&$.isValidElement(u)?$.cloneElement(u,{className:Ee(T.icon,u.props.className)}):u,j=E=>{!w&&_&&_(E,D),g&&g(E)},F=E=>{S&&!w&&_&&_(E,D),b&&b(E)};return R.jsxs(lU,{focusRipple:!i,className:Ee(T.root,o),ref:r,role:"tab","aria-selected":w,disabled:a,onClick:j,onFocus:F,ownerState:M,tabIndex:w?0:-1,...O,children:[f==="top"||f==="start"?R.jsxs($.Fragment,{children:[P,d]}):R.jsxs($.Fragment,{children:[d,P]}),h]})});function uU(t){return tt("MuiToolbar",t)}Ze("MuiToolbar",["root","gutters","regular","dense"]);const dU=t=>{const{classes:e,disableGutters:r,variant:n}=t;return nt({root:["root",!r&&"gutters",n]},uU,e)},pU=ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Xe(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),Bb=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:l="regular",...u}=n,f={...n,component:a,disableGutters:i,variant:l},h=dU(f);return R.jsx(pU,{as:a,className:Ee(h.root,o),ref:r,ownerState:f,...u})}),fU=Ge(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),hU=Ge(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function mU(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function _U(t,e,r,n={},o=()=>{}){const{ease:a=mU,duration:i=300}=n;let l=null;const u=e[t];let f=!1;const h=()=>{f=!0},d=_=>{if(f){o(new Error("Animation cancelled"));return}l===null&&(l=_);const g=Math.min(1,(_-l)/i);if(e[t]=a(g)*(r-u)+u,g>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return u===r?(o(new Error("Element already at target position")),h):(requestAnimationFrame(d),h)}const gU={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function yU(t){const{onChange:e,...r}=t,n=$.useRef(),o=$.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return yn(()=>{const i=Ef(()=>{const u=n.current;a(),u!==n.current&&e(n.current)}),l=eo(o.current);return l.addEventListener("resize",i),()=>{i.clear(),l.removeEventListener("resize",i)}},[e]),$.useEffect(()=>{a(),e(n.current)},[e]),R.jsx("div",{style:gU,...r,ref:o})}function vU(t){return tt("MuiTabScrollButton",t)}const bU=Ze("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),wU=t=>{const{classes:e,orientation:r,disabled:n}=t;return nt({root:["root",r,n&&"disabled"]},vU,e)},xU=ie(Va,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${bU.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),SU=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:i={},direction:l,orientation:u,disabled:f,...h}=n,d=Us(),_={isRtl:d,...n},g=wU(_),b=a.StartScrollButtonIcon??fU,w=a.EndScrollButtonIcon??hU,S=Dr({elementType:b,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:_}),k=Dr({elementType:w,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:_});return R.jsx(xU,{component:"div",className:Ee(g.root,o),ref:r,role:null,ownerState:_,tabIndex:null,...h,style:{...h.style,...u==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:l==="left"?R.jsx(b,{...S}):R.jsx(w,{...k})})});function kU(t){return tt("MuiTabs",t)}const f_=Ze("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),jC=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,LC=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ip=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(t,o);else{o.focus();return}}},CU=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:l,classes:u}=t;return nt({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},kU,u)},$U=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${f_.scrollButtons}`]:e.scrollButtons},{[`& .${f_.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Xe(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${f_.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),EU=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),TU=ie("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),OU=ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(Xe(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),DU=ie(yU)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),FC={},MU=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTabs"}),o=ta(),a=Us(),{"aria-label":i,"aria-labelledby":l,action:u,centered:f=!1,children:h,className:d,component:_="div",allowScrollButtonsMobile:g=!1,indicatorColor:b="primary",onChange:w,orientation:S="horizontal",ScrollButtonComponent:k=SU,scrollButtons:D="auto",selectionFollowsFocus:C,slots:O={},slotProps:M={},TabIndicatorProps:T={},TabScrollButtonProps:P={},textColor:j="primary",value:F,variant:E="standard",visibleScrollbar:L=!1,...G}=n,B=E==="scrollable",z=S==="vertical",H=z?"scrollTop":"scrollLeft",K=z?"top":"left",ee=z?"bottom":"right",Y=z?"clientHeight":"clientWidth",X=z?"height":"width",re={...n,component:_,allowScrollButtonsMobile:g,indicatorColor:b,orientation:S,vertical:z,scrollButtons:D,textColor:j,variant:E,visibleScrollbar:L,fixed:!B,hideScrollbar:B&&!L,scrollableX:B&&!z,scrollableY:B&&z,centered:f&&!B,scrollButtonsHideMobile:!g},I=CU(re),Q=Dr({elementType:O.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:re}),me=Dr({elementType:O.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:re}),[pe,ge]=$.useState(!1),[Ce,Re]=$.useState(FC),[Te,Pe]=$.useState(!1),[Oe,ze]=$.useState(!1),[Me,Be]=$.useState(!1),[We,De]=$.useState({overflow:"hidden",scrollbarWidth:0}),pt=new Map,ce=$.useRef(null),qe=$.useRef(null),st=()=>{const ae=ce.current;let _e;if(ae){const Ke=ae.getBoundingClientRect();_e={clientWidth:ae.clientWidth,scrollLeft:ae.scrollLeft,scrollTop:ae.scrollTop,scrollWidth:ae.scrollWidth,top:Ke.top,bottom:Ke.bottom,left:Ke.left,right:Ke.right}}let Fe;if(ae&&F!==!1){const Ke=qe.current.children;if(Ke.length>0){const _t=Ke[pt.get(F)];Fe=_t?_t.getBoundingClientRect():null}}return{tabsMeta:_e,tabMeta:Fe}},rt=Nr(()=>{const{tabsMeta:ae,tabMeta:_e}=st();let Fe=0,Ke;z?(Ke="top",_e&&ae&&(Fe=_e.top-ae.top+ae.scrollTop)):(Ke=a?"right":"left",_e&&ae&&(Fe=(a?-1:1)*(_e[Ke]-ae[Ke]+ae.scrollLeft)));const _t={[Ke]:Fe,[X]:_e?_e[X]:0};if(typeof Ce[Ke]!="number"||typeof Ce[X]!="number")Re(_t);else{const ur=Math.abs(Ce[Ke]-_t[Ke]),yr=Math.abs(Ce[X]-_t[X]);(ur>=1||yr>=1)&&Re(_t)}}),Je=(ae,{animation:_e=!0}={})=>{_e?_U(H,ce.current,ae,{duration:o.transitions.duration.standard}):ce.current[H]=ae},Se=ae=>{let _e=ce.current[H];z?_e+=ae:_e+=ae*(a?-1:1),Je(_e)},ut=()=>{const ae=ce.current[Y];let _e=0;const Fe=Array.from(qe.current.children);for(let Ke=0;Keae){Ke===0&&(_e=ae);break}_e+=_t[Y]}return _e},q=()=>{Se(-1*ut())},ne=()=>{Se(ut())},ye=$.useCallback(ae=>{De({overflow:null,scrollbarWidth:ae})},[]),xe=()=>{const ae={};ae.scrollbarSizeListener=B?R.jsx(DU,{onChange:ye,className:Ee(I.scrollableX,I.hideScrollbar)}):null;const Fe=B&&(D==="auto"&&(Te||Oe)||D===!0);return ae.scrollButtonStart=Fe?R.jsx(k,{slots:{StartScrollButtonIcon:O.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Q},orientation:S,direction:a?"right":"left",onClick:q,disabled:!Te,...P,className:Ee(I.scrollButtons,P.className)}):null,ae.scrollButtonEnd=Fe?R.jsx(k,{slots:{EndScrollButtonIcon:O.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:me},orientation:S,direction:a?"left":"right",onClick:ne,disabled:!Oe,...P,className:Ee(I.scrollButtons,P.className)}):null,ae},ke=Nr(ae=>{const{tabsMeta:_e,tabMeta:Fe}=st();if(!(!Fe||!_e)){if(Fe[K]<_e[K]){const Ke=_e[H]+(Fe[K]-_e[K]);Je(Ke,{animation:ae})}else if(Fe[ee]>_e[ee]){const Ke=_e[H]+(Fe[ee]-_e[ee]);Je(Ke,{animation:ae})}}}),ve=Nr(()=>{B&&D!==!1&&Be(!Me)});$.useEffect(()=>{const ae=Ef(()=>{ce.current&&rt()});let _e;const Fe=ur=>{ur.forEach(yr=>{yr.removedNodes.forEach(vt=>{_e==null||_e.unobserve(vt)}),yr.addedNodes.forEach(vt=>{_e==null||_e.observe(vt)})}),ae(),ve()},Ke=eo(ce.current);Ke.addEventListener("resize",ae);let _t;return typeof ResizeObserver<"u"&&(_e=new ResizeObserver(ae),Array.from(qe.current.children).forEach(ur=>{_e.observe(ur)})),typeof MutationObserver<"u"&&(_t=new MutationObserver(Fe),_t.observe(qe.current,{childList:!0})),()=>{ae.clear(),Ke.removeEventListener("resize",ae),_t==null||_t.disconnect(),_e==null||_e.disconnect()}},[rt,ve]),$.useEffect(()=>{const ae=Array.from(qe.current.children),_e=ae.length;if(typeof IntersectionObserver<"u"&&_e>0&&B&&D!==!1){const Fe=ae[0],Ke=ae[_e-1],_t={root:ce.current,threshold:.99},ur=wn=>{Pe(!wn[0].isIntersecting)},yr=new IntersectionObserver(ur,_t);yr.observe(Fe);const vt=wn=>{ze(!wn[0].isIntersecting)},zt=new IntersectionObserver(vt,_t);return zt.observe(Ke),()=>{yr.disconnect(),zt.disconnect()}}},[B,D,Me,h==null?void 0:h.length]),$.useEffect(()=>{ge(!0)},[]),$.useEffect(()=>{rt()}),$.useEffect(()=>{ke(FC!==Ce)},[ke,Ce]),$.useImperativeHandle(u,()=>({updateIndicator:rt,updateScrollButtons:ve}),[rt,ve]);const Ve=R.jsx(OU,{...T,className:Ee(I.indicator,T.className),ownerState:re,style:{...Ce,...T.style}});let $e=0;const Ye=$.Children.map(h,ae=>{if(!$.isValidElement(ae))return null;const _e=ae.props.value===void 0?$e:ae.props.value;pt.set(_e,$e);const Fe=_e===F;return $e+=1,$.cloneElement(ae,{fullWidth:E==="fullWidth",indicator:Fe&&!pe&&Ve,selected:Fe,selectionFollowsFocus:C,onChange:w,textColor:j,value:_e,...$e===1&&F===!1&&!ae.props.tabIndex?{tabIndex:0}:{}})}),lt=ae=>{const _e=qe.current,Fe=cr(_e).activeElement;if(Fe.getAttribute("role")!=="tab")return;let _t=S==="horizontal"?"ArrowLeft":"ArrowUp",ur=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&a&&(_t="ArrowRight",ur="ArrowLeft"),ae.key){case _t:ae.preventDefault(),ip(_e,Fe,LC);break;case ur:ae.preventDefault(),ip(_e,Fe,jC);break;case"Home":ae.preventDefault(),ip(_e,null,jC);break;case"End":ae.preventDefault(),ip(_e,null,LC);break}},ft=xe();return R.jsxs($U,{className:Ee(I.root,d),ownerState:re,ref:r,as:_,...G,children:[ft.scrollButtonStart,ft.scrollbarSizeListener,R.jsxs(EU,{className:I.scroller,ownerState:re,style:{overflow:We.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:L?void 0:-We.scrollbarWidth},ref:ce,children:[R.jsx(TU,{"aria-label":i,"aria-labelledby":l,"aria-orientation":S==="vertical"?"vertical":null,className:I.flexContainer,ownerState:re,onKeyDown:lt,ref:qe,role:"tablist",children:Ye}),pe&&Ve]}),ft.scrollButtonEnd]})});function NU(t){return tt("MuiTextField",t)}Ze("MuiTextField",["root"]);const PU={standard:mo,filled:Ab,outlined:Fb},RU=t=>{const{classes:e}=t;return nt({root:["root"]},NU,e)},AU=ie(zi,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),zr=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:l,color:u="primary",defaultValue:f,disabled:h=!1,error:d=!1,FormHelperTextProps:_,fullWidth:g=!1,helperText:b,id:w,InputLabelProps:S,inputProps:k,InputProps:D,inputRef:C,label:O,maxRows:M,minRows:T,multiline:P=!1,name:j,onBlur:F,onChange:E,onFocus:L,placeholder:G,required:B=!1,rows:z,select:H=!1,SelectProps:K,slots:ee={},slotProps:Y={},type:X,value:re,variant:I="outlined",...Q}=n,me={...n,autoFocus:a,color:u,disabled:h,error:d,fullWidth:g,multiline:P,required:B,select:H,variant:I},pe=RU(me),ge=Tf(w),Ce=b&&ge?`${ge}-helper-text`:void 0,Re=O&&ge?`${ge}-label`:void 0,Te=PU[I],Pe={slots:ee,slotProps:{input:D,inputLabel:S,htmlInput:k,formHelperText:_,select:K,...Y}},Oe={},ze=Pe.slotProps.inputLabel;I==="outlined"&&(ze&&typeof ze.shrink<"u"&&(Oe.notched=ze.shrink),Oe.label=O),H&&((!K||!K.native)&&(Oe.id=void 0),Oe["aria-describedby"]=void 0);const[Me,Be]=Sr("input",{elementType:Te,externalForwardedProps:Pe,additionalProps:Oe,ownerState:me}),[We,De]=Sr("inputLabel",{elementType:Tp,externalForwardedProps:Pe,ownerState:me}),[pt,ce]=Sr("htmlInput",{elementType:"input",externalForwardedProps:Pe,ownerState:me}),[qe,st]=Sr("formHelperText",{elementType:FB,externalForwardedProps:Pe,ownerState:me}),[rt,Je]=Sr("select",{elementType:wo,externalForwardedProps:Pe,ownerState:me}),Se=R.jsx(Me,{"aria-describedby":Ce,autoComplete:o,autoFocus:a,defaultValue:f,fullWidth:g,multiline:P,name:j,rows:z,maxRows:M,minRows:T,type:X,value:re,id:ge,inputRef:C,onBlur:F,onChange:E,onFocus:L,placeholder:G,inputProps:ce,slots:{input:ee.htmlInput?pt:void 0},...Be});return R.jsxs(AU,{className:Ee(pe.root,l),disabled:h,error:d,fullWidth:g,ref:r,required:B,color:u,variant:I,ownerState:me,...Q,children:[O!=null&&O!==""&&R.jsx(We,{htmlFor:ge,id:Re,...De,children:O}),H?R.jsx(rt,{"aria-describedby":Ce,id:ge,labelId:Re,value:re,input:Se,...Je,children:i}):Se,b&&R.jsx(qe,{id:Ce,...st,children:b})]})});var HM={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},zC=y.createContext&&y.createContext(HM),IU=["attr","size","title"];function jU(t,e){if(t==null)return{};var r=LU(t,e),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function LU(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Xp(){return Xp=Object.assign?Object.assign.bind():function(t){for(var e=1;ey.createElement(e.tag,Gp({key:r},e.attr),qM(e.child)))}function WU(t){return e=>y.createElement(UU,Xp({attr:Gp({},t.attr)},e),qM(t.child))}function UU(t){var e=r=>{var{attr:n,size:o,title:a}=t,i=jU(t,IU),l=o||r.size||"1em",u;return r.className&&(u=r.className),t.className&&(u=(u?u+" ":"")+t.className),y.createElement("svg",Xp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:u,style:Gp(Gp({color:t.color||r.color},r.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&y.createElement("title",null,a),t.children)};return zC!==void 0?y.createElement(zC.Consumer,null,r=>e(r)):e(HM)}function HU(t){return WU({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"},child:[]}]})(t)}const qU=Ge(R.jsx("path",{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"}),"AddPhotoAlternate"),VU=Ge(R.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),XU=Ge(R.jsx("path",{d:"M2 12c0 5.52 4.48 10 10 10s10-4.48 10-10S17.52 2 12 2 2 6.48 2 12m10-1h4v2h-4v3l-4-4 4-4z"}),"ArrowCircleLeft"),GU=Ge(R.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"),JU=Ge(R.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"),YU=Ge(R.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"),KU=Ge(R.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4"),ZU=Ge(R.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 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6"}),"Brightness5"),Wb=Ge(R.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"),QU=Ge(R.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7"),eH=Ge(R.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"),jf=Ge(R.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"),Hs=Ge(R.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Rs=Ge(R.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"),Ub=Ge(R.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"),VM=Ge(R.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"),tH=Ge(R.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"),Dp=Ge(R.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"),XM=Ge(R.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"),rH=Ge(R.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"),nH=Ge(R.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"),oH=Ge(R.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"),aH=Ge(R.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"),sH=Ge(R.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"),iH=Ge(R.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"),WC=Ge(R.jsx("path",{d:"m21.9 21.9-8.49-8.49-9.82-9.82L2.1 2.1.69 3.51 3 5.83V19c0 1.1.9 2 2 2h13.17l2.31 2.31zM5 18l3.5-4.5 2.5 3.01L12.17 15l3 3zm16 .17L5.83 3H19c1.1 0 2 .9 2 2z"}),"ImageNotSupported"),GM=Ge(R.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"),JM=Ge(R.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),cH=Ge(R.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),lH=Ge(R.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"),uH=Ge(R.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"),dH=Ge(R.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"),UC=Ge(R.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"}),"Photo"),HC=Ge(R.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),YM=Ge(R.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"),pH=Ge(R.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"),S0=Ge(R.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"),fH=Ge(R.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"),hH=Ge(R.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"),mH=Ge(R.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"),_H=Ge(R.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"),gH=Ge(R.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),yH=Ge(R.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),vH=Ge(R.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"),bH=Ge(R.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"),h_=11/23/100;function qC(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substr(1,2),16),e.g=parseInt(t.substr(3,2),16),e.b=parseInt(t.substr(5,2),16);else if(t.length===4){const r=t.substr(1,1),n=t.substr(2,1),o=t.substr(3,1);e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function wH(t){return`#${Math.round(t.r).toString(16)}${Math.round(t.g).toString(16)}${Math.round(t.b).toString(16)}`}function xH(t,e,r){const n=qC(t),o=qC(e);return n.r+=o.r*(.05+h_*(r-1)),n.g+=o.g*(.05+h_*(r-1)),n.b+=o.b*(.05+h_*(r-1)),wH(n)}function VC(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:xH(t,e,n)};return r}function XC(t,e){var i,l,u,f,h,d,_,g,b,w,S;let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[200],"&:hover":{color:Or[100]}}},MuiPaper:VC("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[200],"&:hover":{color:Or[100]}}},MuiPaper:VC("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="DX"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#a9a9a9"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#F5F5F7"},secondary:{main:"#a9a9a9"},expert:"#BD1B24",text:{primary:"#007AFE",secondary:"#007AFE",disabled:"#007AFEAA"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:(l=(i=r.palette)==null?void 0:i.primary)==null?void 0:l.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:s0[300],dark:s0[400]});const o=ou(r),a=o.palette;return ou(o,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:(u=a.grey)==null?void 0:u[300],color:a.getContrastText&&((f=a.grey)!=null&&f[300])?a.getContrastText(a.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:(h=a.text)==null?void 0:h.primary,borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${(d=a.action)==null?void 0:d.disabledBackground}`},"&:hover":{borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Nt(((_=a.text)==null?void 0:_.primary)||"",((g=a.action)==null?void 0:g.hoverOpacity)||.04)}}},{props:{variant:"text",color:"grey"},style:{color:(b=a.text)==null?void 0:b.primary,"&:hover":{backgroundColor:Nt(((w=a.text)==null?void 0:w.primary)||"",((S=a.action)==null?void 0:S.hoverOpacity)||.04)}}}]}}})}function SH(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function kH(t){return(t==null?void 0:t.rows.map(e=>e.value).filter(e=>!!e))??[]}function GC(t){return t!=null&&t.startsWith("system.host.")||(t=`system.host.${t}`),t}function JC(t){return new Promise(e=>{setTimeout(e,t)})}function cp(t){t=(t||"").toString();const e=t[0]==="*",r=t[t.length-1]==="*";return t=t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(e?"":"^")+t+(r?"":"$")}var _o;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(_o||(_o={}));var Ra;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(Ra||(Ra={}));Ra.PERMISSION_ERROR;Ra.NOT_CONNECTED;const CH=["material","echarts","vis"];class Jo{constructor(e){we(this,"props");we(this,"ignoreState","");we(this,"connected",!1);we(this,"subscribed",!1);we(this,"firstConnect",!0);we(this,"waitForRestart",!1);we(this,"loaded",!1);we(this,"simStates",{});we(this,"statesSubscribes",{});we(this,"filesSubscribes",{});we(this,"objectsSubscribes",{});we(this,"objects",{});we(this,"states",{});we(this,"acl",null);we(this,"isSecure",!1);we(this,"onReadyDone",!1);we(this,"onConnectionHandlers",[]);we(this,"onLogHandlers",[]);we(this,"onCmdStdoutHandler");we(this,"onCmdStderrHandler");we(this,"onCmdExitHandler");we(this,"_socket");we(this,"_waitForSocketPromise");we(this,"_waitForFirstConnectionPromise",SH());we(this,"_instanceSubscriptions",{});we(this,"_promises",{});we(this,"_authTimer");we(this,"_systemConfig");we(this,"systemLang","en");this.props=this.applyDefaultProps(e),this.waitForSocketLib().then(()=>this.startSocket()).catch(r=>{alert(`Socket connection could not be initialized: ${r}`)})}applyDefaultProps(e){return{...e,protocol:e.protocol||window.location.protocol,host:e.host||window.location.hostname,port:e.port||(window.location.port==="3000"?8081:window.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}}onError(e){(this.props.onError??console.error)(e)}get systemConfig(){return this._systemConfig}static isWeb(){return window.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(e,r)=>{if(typeof window.io>"u"&&typeof window.iob>"u")if(typeof window.registerSocketOnLoad=="function")window.registerSocketOnLoad(()=>e());else{for(let n=1;n<=30;n++){if(window.io||window.iob)return e();await JC(100)}r(new Error("Socket library could not be loaded!"))}else e()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let e=this.props.host,r=this.props.port,n=(this.props.protocol||window.location.protocol).replace(":",""),o=window.location.pathname;if(window.location.hostname==="iobroker.net"||window.location.hostname==="iobroker.pro")o="";else{if(window.socketUrl){const l=new URL(window.socketUrl);e=l.hostname,r=l.port,n=l.protocol.replace(":","")}const i=o.lastIndexOf("/");if(i!==-1&&(o=o.substring(0,i+1)),Jo.isWeb()){const l=o.split("/");l.length>2&&(l.pop(),l.pop(),CH.includes(l[l.length-1])&&l.pop(),o=l.join("/"),o.endsWith("/")||(o+="/"))}}const a=r?`${n}://${e}:${r}`:`${n}://${e}`;return this._socket=(window.io||window.iob).connect(a,{path:o.endsWith("/")?`${o}socket.io`:`${o}/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",i=>{this.onReadyDone=!1,i!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(l=>{const[u,f,h]=l.version.split(".");parseInt(u,10)*1e4+parseInt(f,10)*100+parseInt(h,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(_,g)=>this.onPreConnect(_,g))}).catch(l=>this.onError({message:l.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(l,u)=>{this.onPreConnect(l,u)})}),this._socket.on("reconnect",()=>{var i,l;this.onReadyDone=!1,(l=(i=this.props).onProgress)==null||l.call(i,_o.READY),this.connected=!0,this.waitForRestart?window.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(u=>u(!0)))}),this._socket.on("disconnect",()=>{var i,l;this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,(l=(i=this.props).onProgress)==null||l.call(i,_o.CONNECTING),this.onConnectionHandlers.forEach(u=>u(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",i=>{var l,u;(u=(l=this.props).onLog)==null||u.call(l,i),this.onLogHandlers.forEach(f=>f(i))}),this._socket.on("error",i=>{let l;i==null?l="":typeof i.toString=="function"?l=i.toString():(l=JSON.stringify(i),console.error(`Received strange error: ${l}`)),l.includes("User not authorized")?this.authenticate():l.includes("websocket error")?(console.error(`Socket Error => reload: ${i}`),window.location.reload()):console.error(`Socket Error: ${i}`)}),this._socket.on("connect_error",i=>console.error(`Connect error: ${i}`)),this._socket.on("permissionError",i=>this.onError({message:"no permission",operation:i.operation,type:i.type,id:i.id||""})),this._socket.on("objectChange",(i,l)=>{setTimeout(()=>this.objectChange(i,l),0)}),this._socket.on("stateChange",(i,l)=>{setTimeout(()=>this.stateChange(i,l),0)}),this._socket.on("im",(i,l,u)=>{setTimeout(()=>this.instanceMessage(i,l,u),0)}),this._socket.on("fileChange",(i,l,u)=>{setTimeout(()=>this.fileChange(i,l,u),0)}),this._socket.on("cmdStdout",(i,l)=>{var u;(u=this.onCmdStdoutHandler)==null||u.call(this,i,l)}),this._socket.on("cmdStderr",(i,l)=>{var u;(u=this.onCmdStderrHandler)==null||u.call(this,i,l)}),this._socket.on("cmdExit",(i,l)=>{var u;(u=this.onCmdExitHandler)==null||u.call(this,i,l)}),Promise.resolve()}onPreConnect(e,r){var n,o;this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=r,this.waitForRestart?window.location.reload():(this.firstConnect?this.loadData().catch(a=>console.error(`Cannot load data: ${a}`)):(o=(n=this.props).onProgress)==null||o.call(n,_o.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(a=>a(!0))),this._waitForFirstConnectionPromise.resolve()}static isCloud(){return window.location.hostname.includes("amazonaws.com")||window.location.hostname.includes("iobroker.in")?!0:typeof window.socketUrl>"u"?!1:window.socketUrl.includes("iobroker.in")||window.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getUserPermissions",(n,o)=>{n?r(n):e(o)})}})}async loadData(){if(this.loaded)return;const e=10;for(let r=1;r<=e;r++){if(this.doLoadData().catch(n=>console.error(`Cannot load data: ${n}`)),this.loaded)return;await JC(Jo.isCloud()?5e3:1e3)}}async doLoadData(){var e,r,n,o,a,i,l,u,f;if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(h){this.onError(`Cannot read user permissions: ${h}`);return}try{this.props.admin5only&&!Jo.isWeb()&&(!window.vendorPrefix||window.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(h){this.onError(`Cannot read system config: ${h}`);return}this._systemConfig&&(this.systemLang=(e=this._systemConfig.common)==null?void 0:e.language,this.systemLang||(this.systemLang=window.navigator.userLanguage||window.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)),(n=(r=this.props).onLanguage)==null||n.call(r,this.systemLang),this.loaded=!0,(a=(o=this.props).onProgress)==null||a.call(o,_o.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),(l=(i=this.props).onProgress)==null||l.call(i,_o.READY),this.onReadyDone||(this.onReadyDone=!0,(f=(u=this.props).onReady)==null||f.call(u,this.objects))}}authenticate(){window.location.search.includes("&href=")?window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}${window.location.search}${window.location.hash}`:window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}?login&href=${window.location.search}${window.location.hash}`}async subscribeState(...e){let r,n,o;e.length===3?[r,n,o]=e:([r,o]=e,n=!1);let a;if(Array.isArray(r)?a=r:a=[r],typeof o!="function")throw new Error("The state change handler must be a function!");const i=[];for(let l=0;ll.includes("*"))){let l;for(let u=0;uconsole.error(`Cannot call state change handler: ${_}`))}}}else try{const l=await(Jo.isWeb()?this.getStates(a):this.getForeignStates(a));if(l)for(const[u,f]of Object.entries(l)){const h=o(u,f);h instanceof Promise&&h.catch(d=>console.error(`Cannot call state change handler: ${d}`))}}catch(l){console.error(`Cannot getState "${a.join(", ")}": ${l.message}`);return}}async subscribeStateAsync(e,r){return this.subscribeState(e,r)}unsubscribeState(e,r){var a;let n;Array.isArray(e)?n=e:n=[e];const o=[];for(let i=0;i{try{const h=f(e,r,n);h instanceof Promise&&h.catch(d=>console.error(`Cannot call object change handler: ${d}`))}catch(h){console.error(`Error by callback of objectChange: ${h}`)}});if(o){const l=(i=(a=this.props).onObjectChange)==null?void 0:i.call(a,e,r);l instanceof Promise&&l.catch(u=>console.error(`Cannot call object change handler: ${u}`))}}stateChange(e,r){for(const n of Object.values(this.statesSubscribes))if(n.reg.test(e))for(const o of n.cbs)try{const a=o(e,r??null);a instanceof Promise&&a.catch(i=>console.error(`Cannot call state change handler: ${i}`))}catch(a){console.error(`Error by callback of stateChanged: ${a}`)}}instanceMessage(e,r,n){var o;(o=this._instanceSubscriptions[r])==null||o.forEach(a=>{if(a.messageType===e){const i=a.callback(n,r,e);i instanceof Promise&&i.catch(l=>console.error(`Cannot call instance message handler: ${l}`))}})}fileChange(e,r,n){for(const o of Object.values(this.filesSubscribes))if(o.regId.test(e)&&o.regFilePattern.test(r))for(const a of o.cbs)try{a(e,r,n)}catch(i){console.error(`Error by callback of fileChange: ${i}`)}}async subscribeFiles(e,r,n){if(typeof n!="function")throw new Error("The state change handler must be a function!");let o;Array.isArray(r)?o=r:o=[r];const a=[];for(let i=0;i{const d={elapsed:!1,clearTimeout:()=>{}};let _;n!==!1&&(_=setTimeout(()=>{d.elapsed=!0,o==null||o(),e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(Ra.TIMEOUT))},n??this.props.cmdTimeout),d.clearTimeout=()=>{clearTimeout(_)});try{await l(f,h,d)}catch(g){e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(g.toString()))}});return e&&(this._promises[e]=u),u}resetCache(e,r){r?Object.keys(this._promises).filter(n=>n.startsWith(e)).forEach(n=>{delete this._promises[n]}):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getStates",e,(o,a)=>{this.states=a??{},o?n(o):r(this.states)})}})}getState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r(this.simStates[e]||{val:null,ack:!0});return}this._socket.emit("getState",e,(o,a)=>{o?n(o):r(a)})}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getBinaryState",e,(o,a)=>{o?n(o):r(a)})}})}setBinaryState(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setBinaryState",e,r,a=>{a?o(a):n()})}})}setState(e,r,n){return typeof n=="boolean"&&(r={val:r,ack:n}),this.request({commandTimeout:!1,executor:(o,a)=>{if(e&&e===this.ignoreState){let i;if(typeof n=="boolean"||typeof r=="object"&&r.val!==void 0?i=r:i={val:r,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[e]=i,this.statesSubscribes[e])for(const l of this.statesSubscribes[e].cbs)try{const u=l(e,i);u instanceof Promise&&u.catch(f=>console.error(`Cannot call state change handler: ${f}`))}catch(u){console.error(`Error by callback of stateChanged: ${u}`)}o();return}this._socket.emit("setState",e,r,i=>{i?a(i):o()})}})}getObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{if(!e&&this.objects){n(this.objects);return}this._socket.emit(Jo.isWeb()?"getObjects":"getAllObjects",(a,i)=>{var l,u;r||(u=(l=this.props).onProgress)==null||u.call(l,_o.OBJECTS_LOADED),a?o(a):(this.objects=i??{},n(this.objects))})}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjects",e,(o,a)=>{o?n(o):r(a)})}})}_subscribe(e){var r,n;if(e&&!this.subscribed){this.subscribed=!0,(r=this.props.autoSubscribes)!=null&&r.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const o=Object.keys(this.objectsSubscribes);o.length&&this._socket.emit("subscribeObjects",o),Object.keys(this.objectsSubscribes).forEach(a=>this._socket.emit("subscribeObjects",a)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(a=>this._socket.emit("subscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[i,l]=a.split("$%$");this._socket.emit("subscribeFiles",i,l)})}else if(!e&&this.subscribed){this.subscribed=!1,(n=this.props.autoSubscribes)!=null&&n.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const o=Object.keys(this.objectsSubscribes);o.length&&this._socket.emit("unsubscribeObjects",o),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(a=>this._socket.emit("unsubscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[i,l]=a.split("$%$");this._socket.emit("unsubscribeFiles",i,l)})}}requireLog(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("requireLog",e,o=>{o?n(o):r()})}})}delObject(e,r=!1){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObject",e,{maintenance:r},a=>{a?o(a):n()})}})}delObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObjects",e,{maintenance:r},a=>{a?o(a):n()})}})}setObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",e,(o,a)=>{o?n(o):r(a)})}})}sendTo(e,r,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendTo",e,r,n,a=>{o(a)})}})}extendObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("extendObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){const r=this.onLogHandlers.indexOf(e);r!==-1&&this.onLogHandlers.splice(r,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){const r=this.onConnectionHandlers.indexOf(e);r!==-1&&this.onConnectionHandlers.splice(r,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,r){return this.request({cacheKey:`enums_${e||"all"}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${e||""}`,endkey:e?`enum.${e}.香`:"enum.香"},(a,i)=>{if(a)o(a);else{const l={};if(i)for(let u=0;u{n=n||"",o=o||"香",this._socket.emit("getObjectView",e,r,{startkey:n,endkey:o},(l,u)=>{if(l)i(l);else{const f={};if(u&&u.rows)for(let h=0;h{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(n,o)=>{var a;n?r(n):e((a=o.rows)==null?void 0:a.map(i=>i.value).filter(i=>!!i))})}})}readDir(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("readDir",e,r,(a,i)=>{a?o(a):n(i)})}})}readFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit(n?"readFile64":"readFile",e,r,(i,l,u)=>{i?a(i):o({file:l,mimeType:u})})}})}writeFile64(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{if(typeof n=="string")this._socket.emit("writeFile",e,r,n,i=>{i?a(i):o()});else{const i=btoa(new Uint8Array(n).reduce((l,u)=>l+String.fromCharCode(u),""));this._socket.emit("writeFile64",e,r,i,l=>{l?a(l):o()})}}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFile",e,r,a=>{a?o(a):n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFolder",e,r,a=>{a?o(a):n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("rename",e,r,n,i=>{i?a(i):o()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("renameFile",e,r,n,i=>{i?a(i):o()})}})}cmdExec(e,r,n,o){return this.request({commandTimeout:o,executor:(a,i,l)=>{e=GC(e),this._socket.emit("cmdExec",e,n,r,u=>{l.elapsed||(l.clearTimeout(),u?i(u):a())})}})}getSystemConfig(e){return this.request({cacheKey:"systemConfig",forceUpdate:e,commandTimeout:!1,executor:async r=>{let n=await this.getObject("system.config");n??(n={}),n.common??(n.common={}),n.native??(n.native={}),r(n)}})}getCompactSystemConfig(e){return this.request({cacheKey:"systemConfigCommon",forceUpdate:e,commandTimeout:!1,requireAdmin:!0,executor:(r,n)=>{this._socket.emit("getCompactSystemConfig",(o,a)=>{o?n(o):(a??(a={}),a.common??(a.common={}),a.native??(a.native={}),r(a))})}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getForeignStates",e||"*",(o,a)=>{o?n(o):r(a??{})})}})}getForeignObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getForeignObjects",e||"*",r,(a,i)=>{a?o(a):n(i)})}})}setSystemConfig(e){return this.setObject("system.config",e)}getRawSocket(){return this._socket}getHistory(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,i)=>{a?o(a):n(i)})}})}getHistoryEx(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,i,l,u)=>{a?o(a):n({values:i,sessionId:u,step:l})})}})}getIpAddresses(e,r){return e=GC(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObject(e);n((o==null?void 0:o.common.address)??[])}})}getVersion(e){return this.request({cacheKey:"version",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getVersion",(o,a,i)=>{o&&!a&&typeof o=="string"&&o.match(/\d+\.\d+\.\d+/)?r({version:o,serverName:"socketio"}):o?n(o):r({version:a,serverName:i})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getAdapterName",(n,o)=>{n?r(n):e(o)})}})}fileExists(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("fileExists",e,r,(a,i)=>{a?o(a):n(!!i)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit("authEnabled",(r,n)=>{e(n)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async e=>{var n;const r=await this.getObject("system.meta.uuid");e((n=r==null?void 0:r.native)==null?void 0:n.uuid)}})}checkFeatureSupported(e,r){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("checkFeatureSupported",e,(a,i)=>{a?o(a):n(i)})}})}getAdapterInstances(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`instances_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=e?`system.adapter.${e}.`:"system.adapter.",a=`${o}香`,i=await this.getObjectViewSystem("instance",o,a),l=Object.values(i);n(e?l.filter(u=>u.common.name===e):l)}})}getAdapters(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`adapter_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObjectViewSystem("adapter",`system.adapter.${e||""}`,`system.adapter.${e||"香"}`),a=Object.values(o);n(e?a.filter(i=>i.common.name===e):a)}})}getGroups(e){return this.request({cacheKey:"groups",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(o,a)=>{o?n(o):r(kH(a))})}})}logout(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("logout",n=>{n?r(n):e(null)})}})}subscribeOnInstance(e,r,n,o){return this.request({commandTimeout:!1,executor:(a,i)=>{this._socket.emit("clientSubscribe",e,r,n,(l,u)=>{l?i(l):u&&(u.error?i(u.error):(e.startsWith("system.adapter.")||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find(f=>f.messageType===r&&f.callback===o)||this._instanceSubscriptions[e].push({messageType:r,callback:o}),a(u)))})}})}unsubscribeFromInstance(e,r,n){var i;e.startsWith("system.adapter.")||(e=`system.adapter.${e}`);let o;const a=[];do{o=!1;const l=(i=this._instanceSubscriptions[e])==null?void 0:i.findIndex(u=>(!r||u.messageType===r)&&(!n||u.callback===n));if(l!=null&&l!==-1){o=!0;const u=this._instanceSubscriptions[e][l].messageType;this._instanceSubscriptions[e].splice(l,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e],this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find(h=>h.messageType===u)||a.push(this.request({commandTimeout:!1,executor:(h,d)=>{this._socket.emit("clientUnsubscribe",e,r,(_,g)=>_?d(_):h(g))}}))}}while(o&&(!n||!r));return a.length?Promise.all(a).then(l=>!!l.find(u=>u)):Promise.resolve(!1)}log(e,r){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",e,r),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}}const $H=` /** * Copyright 2018-2024 Denis Haev (bluefox) * @@ -474,10 +474,10 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp .logo-animate-color-outside-blue { animation: logo-color-outside-blue 1.5s; } -`;function EH(t){$.useEffect(()=>{if(!window.document.getElementById("loader-iobroker-component")){const n=window.document.createElement("style");n.setAttribute("id","loader-iobroker-component"),n.innerHTML=$H,window.document.head.appendChild(n)}},[]);const e=t.size||234,r=t.themeName||t.theme||t.themeType||"light";return y.createElement("div",{className:`logo-back logo-background-${r}`,style:{backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:void 0,backgroundSize:"cover"}},window.loadingHideLogo==="true"?null:y.createElement(y.Fragment,null,y.createElement("div",{className:"logo-div",style:{width:e,height:e}},y.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"37%"}}),y.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"57%"}}),y.createElement("div",{className:`logo-border logo-background-${r} logo-animate-wait`,style:{borderWidth:e*.132}}),y.createElement("div",{className:`logo-i logo-animate-color-inside-${r}`}),y.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{top:"18%"}}),y.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{bottom:"18%"}})),y.createElement("div",{className:`logo-animate-grow logo-animate-grow-${r}`,style:{width:e+11,height:e+11}})))}function TH(){const t=document.getSelection();if(!(t!=null&&t.rangeCount))return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const YC={"text/plain":"Text","text/html":"Url",default:"Text"},OH="Copy to clipboard: #{key}, Enter";function DH(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function MH(t,e){let r,n,o,a,i=!1;e=e||{};const l=e.debug||!1;try{if(r=TH(),n=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=t,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",f=>{var h,d,_,g;if(f.stopPropagation(),e!=null&&e.format)if(f.preventDefault(),typeof f.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),(h=window.clipboardData)==null||h.clearData();const b=YC[e.format]||YC.default;(d=window.clipboardData)==null||d.setData(b,t)}else(_=f.clipboardData)==null||_.clearData(),(g=f.clipboardData)==null||g.setData(e.format,t)}),document.body.appendChild(a),n.selectNodeContents(a),o==null||o.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");i=!0}catch(u){l&&console.error("unable to copy using execCommand: ",u),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),i=!0}catch(f){l&&console.error("unable to copy using clipboardData: ",f),l&&console.error("falling back to prompt");const h=DH("message"in e?e.message||"":OH);window.prompt(h,t)}}finally{o&&(n&&typeof o.removeRange=="function"?o.removeRange(n):o.removeAllRanges()),a&&document.body.removeChild(a),r&&r()}return i}const Dt=class Dt{static setLanguage(e){e&&(Dt.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const o=n.prefix;delete n.prefix,Object.keys(n).forEach(a=>{const i=a,l={},u=n[i];Object.keys(u).forEach(f=>{f&&u&&(f.startsWith(o)?l[f]=u[f]:l[`${o}${f}`]=u[f])}),e[i]=l})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const o=n;Dt.translations[o]=Dt.translations[o]||{};const a=Dt.translations[o];Object.assign(a,e[o])}):Object.keys(e).forEach(n=>{const o=e[n];Object.keys(o).forEach(a=>{const i=a,l=Dt.translations[i];l?l[n]?l[n]!==o[i]&&console.warn(`Translation for word "${n}" in "${i}" was ignored: existing = "${l[n]}", new = ${o[i]}`):l[n]=o[i]:console.warn(`Used unknown language: ${i}`)})});else{Dt.translations[r]||console.warn(`Used unknown language: ${r}`),Dt.translations[r]=Dt.translations[r]||{};const n=Dt.translations[r];n&&Object.keys(e).forEach(o=>{n[o]?n[o]!==e[o]&&console.warn(`Translation for word "${o}" in "${r}" was ignored: existing = "${n[o]}", new = ${e[o]}`):n[o]=e[o]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(Dt.translations=e)}static getLanguage(){return Dt.lang}static t(e,...r){const n=Dt.translations[Dt.lang];if(n){const o=n[e];if(o)e=o;else if(Dt.unknownTranslations.includes(e)||(Dt.unknownTranslations.push(e),!Dt._disableWarning&&console.log(`Translate: ${e}`)),Dt.lang!=="en"&&Dt.translations.en){const a=Dt.translations.en[e];a&&(e=a)}}for(const o of r)e=e.replace("%s",o);return e}static i18nShow(e){const r={};e?typeof e=="string"?(Dt.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):typeof e=="object"&&(Dt.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(Dt.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){Dt._disableWarning=!!e}};xe(Dt,"translations",{}),xe(Dt,"unknownTranslations",[]),xe(Dt,"lang",window.sysLang||"en"),xe(Dt,"_disableWarning",!1);let U=Dt;window.i18nShow=U.i18nShow;window.i18nDisableWarning=U.disableWarning;const uo="material",NH=["Su","Mo","Tu","We","Th","Fr","Sa"],PH=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],m_={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"},KC={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"},At=class At{static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const o=Math.floor(e/60).toString().padStart(2,"0");e%=60;const a=Math.floor(e).toString().padStart(2,"0");let i="";return r&&(i+=`${r} ${U.t("ra_daysShortText")} `),i+=`${n}:${o}:${a}`,i}static getObjectName(e,r,n,o,a){var u;const i=e[r];let l;if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},o.language||(o.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n!=null&&n.name){const f=n.name;typeof f=="object"?l=o.language&&f[o.language]||f.en:l=f}else if(a&&((u=i==null?void 0:i.common)!=null&&u.desc)){const f=i.common.desc;typeof f=="object"?l=o.language&&f[o.language]||f.en||f.de||f.ru||"":l=f,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else if(!a&&(i!=null&&i.common)){const f=i.common.name||i.common.desc;f&&typeof f=="object"?l=o.language&&f[o.language]||f.en||f.de||f.ru||"":l=f,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else{const f=r.lastIndexOf(".");l=r.substring(f+1).replace(/[_.]/g," "),l=At.CapitalWords(l)}return(l==null?void 0:l.trim())||""}static getObjectNameFromObj(e,r,n,o,a){var u,f;const i=e;let l=e&&e._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r!=null&&r.name){const h=r.name;typeof h=="object"?l=n.language&&h[n.language]||h.en:l=h}else if(o&&((u=i==null?void 0:i.common)!=null&&u.desc)){const h=i.common.desc;typeof h=="object"?l=n.language&&h[n.language]||h.en:l=h,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else if(!o&&((f=i==null?void 0:i.common)!=null&&f.name)){let h=i.common.name;!h&&i.common.desc&&(h=i.common.desc),typeof h=="object"?l=n.language&&h[n.language]||h.en:l=h,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}return a?l:l.trim()}static getSettingsOrder(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o!=null&&o.custom){a=o.custom[uo];const i=n.user||"admin";if(a&&a[i]){if(r){if(a[i].subOrder&&a[i].subOrder[r])return JSON.parse(JSON.stringify(a[i].subOrder[r]))}else if(a[i].order)return JSON.parse(JSON.stringify(a[i].order))}}return null}static getSettingsCustomURLs(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o!=null&&o.custom){a=o.custom[uo];const i=n.user||"admin";if(a&&a[i]){if(r){if(a[i].subURLs&&a[i].subURLs[r])return JSON.parse(JSON.stringify(a[i].subURLs[r]))}else if(a[i].URLs)return JSON.parse(JSON.stringify(a[i].URLs))}}return null}static reorder(e,r,n){const o=Array.from(e),[a]=o.splice(r,1);return o.splice(n,0,a),o}static getSettings(e,r,n){let o;const a=(e==null?void 0:e._id)||(r==null?void 0:r.id);let i;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?i=e.common:i=e,i!=null&&i.custom?(o=i.custom,o=o[uo]&&o[uo][r.user||"admin"]?JSON.parse(JSON.stringify(o[uo][r.user||"admin"])):{enabled:!0}):o={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=n===void 0?!0:n),r&&(!o.name&&r.name&&(o.name=r.name),!o.icon&&r.icon&&(o.icon=r.icon),!o.color&&r.color&&(o.color=r.color)),i&&(!o.color&&i.color&&(o.color=i.color),!o.icon&&i.icon&&(o.icon=i.icon),!o.name&&i.name&&(o.name=i.name)),typeof o.name=="object"&&(o.name=r.language&&o.name[r.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&a){const l=a.lastIndexOf(".");o.name=a.substring(l+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=At.CapitalWords(o.name)}return o}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[uo]=e.common.custom[uo]||{},e.common.custom[uo][n.user||"admin"]=r;const o=e.common.custom[uo][n.user||"admin"];return o.useCommon&&(o.color!==void 0&&(e.common.color=o.color,delete o.color),o.icon!==void 0&&(e.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:o.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=o.name),delete o.name)),!0}return!1}static getIcon(e,r){return e!=null&&e.icon?e.icon.length<=2?y.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?y.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):y.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){var n;if(typeof e=="object"&&(r=e,e=r==null?void 0:r._id),(n=r==null?void 0:r.common)!=null&&n.icon){let o=r.common.icon;if(typeof o=="string"&&o.length<=2||o.startsWith("data:image"))return o;const a=e.split(".");return a[0]==="system"?o=`adapter/${a[2]}${o.startsWith("/")?"":"/"}${o}`:o=`adapter/${a[0]}${o.startsWith("/")?"":"/"}${o}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?o=`../../${o}`:window.location.pathname.match(/material\/[.\d]+/)?o=`../../${o}`:window.location.pathname.match(/material\//)&&(o=`../${o}`),o}return null}static splitCamelCase(e){return e?At.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,o,a;const i=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(i&&i.length===4)n=parseInt(i[1],10),o=parseInt(i[2],10),a=parseInt(i[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),o=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16)}return n*.299+o*.587+a*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),o=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${o}`:`${n}:${o}`}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(e){e&&(At.dateFormat=e.toUpperCase().split(/[.-/]/),At.dateFormat.splice(At.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],a=o.find(i=>i>31);if(a!==void 0){o.splice(o.indexOf(a),1);const i=o.find(l=>l>12);i?(o.splice(o.indexOf(i),1),e=new Date(a,o[0]-1,i)):At.dateFormat[0][0]==="M"&&At.dateFormat[1][0]==="D"?(e=new Date(a,o[0]-1,o[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[1]-1,o[0]))):At.dateFormat[0][0]==="D"&&At.dateFormat[1][0]==="M"?(e=new Date(a,o[1]-1,o[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[0]-1,o[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=U.t(`ra_dow_${NH[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${U.t(`ra_month_${PH[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/
||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let o=1;do{const a=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),a&&n.push(y.createElement("span",{key:`a${o++}`},a)),r[0].startsWith(""))n.push(y.createElement("b",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(y.createElement("i",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(y.createElement("span",{key:`a${o++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,o){var i,l;if(!r){if(!o)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const u=e;return(i=u==null?void 0:u.common)!=null&&i.custom&&u.common.custom[n]?u.common.custom[n].smartName:void 0}if(!o)return e[r].common.smartName;const a=e[r];return(l=a==null?void 0:a.common)!=null&&l.custom&&a.common.custom[n]&&a.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){var a,i;if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const o=(i=(a=e==null?void 0:e.common)==null?void 0:a.custom)==null?void 0:i[r];return o?o.smartName:void 0}static enableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName={}):e.common.smartName={}}static removeSmartName(e,r,n){n?e.common&&e.common.custom&&e.common.custom[r]&&(e.common.custom[r]=null):e.common.smartName=null}static updateSmartName(e,r,n,o,a,i){const l=U.getLanguage();if(typeof e.common.smartName=="string"){const u=e.common.smartName;e.common.smartName={},e.common.smartName[l]=u}if(e.native&&e.native.byON){delete e.native.byON;let u=e.common.smartName;u&&typeof u!="object"&&(u={en:u,[l]:u}),e.common.smartName=u}if(o!==void 0&&(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},o?e.common.custom[a].smartName.smartType=o:delete e.common.custom[a].smartName.smartType):(e.common.smartName=e.common.smartName||{},o?e.common.smartName.smartType=o:delete e.common.smartName.smartType)),n!==void 0&&(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},e.common.custom[a].smartName.byON=n):(e.common.smartName=e.common.smartName||{},e.common.smartName.byON=n)),r!==void 0){let u;if(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},u=e.common.custom[a].smartName):(e.common.smartName=e.common.smartName||{},u=e.common.smartName),u[l]=r,u&&(!u[l]||u[l]===e.common.name&&(!e.common.role||e.common.role.includes("button")))){delete u[l];let f=!0;for(const h in u)if(Object.prototype.hasOwnProperty.call(u,h)){f=!1;break}if(f)if(i&&e.common.custom&&e.common.custom[a])e.common.custom[a].smartName.byON===void 0?delete e.common.custom[a]:(delete e.common.custom[a].en,delete e.common.custom[a].de,delete e.common.custom[a].ru,delete e.common.custom[a].nl,delete e.common.custom[a].pl,delete e.common.custom[a].it,delete e.common.custom[a].fr,delete e.common.custom[a].pt,delete e.common.custom[a].es,delete e.common.custom[a].uk,delete e.common.custom[a]["zh-cn"]);else if(e.common.smartName&&e.common.smartName.byON!==void 0){const h=e.common.smartName;delete h.en,delete h.de,delete h.ru,delete h.nl,delete h.pl,delete h.it,delete h.fr,delete h.pt,delete h.es,delete h.uk,delete h["zh-cn"]}else e.common.smartName=null}}}static disableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName=!1):e.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),MH(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const l=(255-o).toString(16),u=(255-a).toString(16),f=(255-i).toString(16);return`#${l.padStart(2,"0")}${u.padStart(2,"0")}${f.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[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 r=e[0]/255,n=e[1]/255,o=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let a=(r*.4124+n*.3576+o*.1805)/.95047,i=r*.2126+n*.7152+o*.0722,l=(r*.0193+n*.1192+o*.9505)/1.08883;return a=a>.008856?a**.33333333:7.787*a+.137931,i=i>.008856?i**.33333333:7.787*i+.137931,l=l>.008856?l**.33333333:7.787*l+.137931,[116*i-16,500*(a-i),200*(i-l)]}static colorDistance(e,r){const n=At.color2rgb(e),o=At.color2rgb(r);if(!n||!o)return 0;const a=At.rgb2lab(n),i=At.rgb2lab(o),l=a[0]-i[0],u=a[1]-i[1],f=a[2]-i[2],h=Math.sqrt(a[1]*a[1]+a[2]*a[2]),d=Math.sqrt(i[1]*i[1]+i[2]*i[2]),_=h-d;let g=u*u+f*f-_*_;g=g<0?0:Math.sqrt(g);const b=1+.045*h,w=1+.015*h,S=l,k=_/b,D=g/w,C=S*S+k*k+D*D;return C<0?0:C}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let o=0;o{if(n=n.trim(),n){const o=n.split("="),a=decodeURIComponent(o[0]).trim();if(o.length>1){const i=decodeURIComponent(o[1]);if(i==="true")r[a]=!0;else if(i==="false")r[a]=!1;else{const l=parseFloat(i);l.toString()===i?r[a]=l:r[a]=i}}else r[a]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const o=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${o}/${a}/${e.getFullYear()}`:n=`${e.getFullYear()}-${o}-${a}`,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);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),o=Math.floor(e%3600/60),a=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:n?`${n}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){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/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){var a;const r=At.MDextractHeader(e),n=r.header;let o=r.body;if(!n.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const i=o.replace(/\r/g,"").split(` +`;function EH(t){$.useEffect(()=>{if(!window.document.getElementById("loader-iobroker-component")){const n=window.document.createElement("style");n.setAttribute("id","loader-iobroker-component"),n.innerHTML=$H,window.document.head.appendChild(n)}},[]);const e=t.size||234,r=t.themeName||t.theme||t.themeType||"light";return y.createElement("div",{className:`logo-back logo-background-${r}`,style:{backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:void 0,backgroundSize:"cover"}},window.loadingHideLogo==="true"?null:y.createElement(y.Fragment,null,y.createElement("div",{className:"logo-div",style:{width:e,height:e}},y.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"37%"}}),y.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"57%"}}),y.createElement("div",{className:`logo-border logo-background-${r} logo-animate-wait`,style:{borderWidth:e*.132}}),y.createElement("div",{className:`logo-i logo-animate-color-inside-${r}`}),y.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{top:"18%"}}),y.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{bottom:"18%"}})),y.createElement("div",{className:`logo-animate-grow logo-animate-grow-${r}`,style:{width:e+11,height:e+11}})))}function TH(){const t=document.getSelection();if(!(t!=null&&t.rangeCount))return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const YC={"text/plain":"Text","text/html":"Url",default:"Text"},OH="Copy to clipboard: #{key}, Enter";function DH(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function MH(t,e){let r,n,o,a,i=!1;e=e||{};const l=e.debug||!1;try{if(r=TH(),n=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=t,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",f=>{var h,d,_,g;if(f.stopPropagation(),e!=null&&e.format)if(f.preventDefault(),typeof f.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),(h=window.clipboardData)==null||h.clearData();const b=YC[e.format]||YC.default;(d=window.clipboardData)==null||d.setData(b,t)}else(_=f.clipboardData)==null||_.clearData(),(g=f.clipboardData)==null||g.setData(e.format,t)}),document.body.appendChild(a),n.selectNodeContents(a),o==null||o.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");i=!0}catch(u){l&&console.error("unable to copy using execCommand: ",u),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),i=!0}catch(f){l&&console.error("unable to copy using clipboardData: ",f),l&&console.error("falling back to prompt");const h=DH("message"in e?e.message||"":OH);window.prompt(h,t)}}finally{o&&(n&&typeof o.removeRange=="function"?o.removeRange(n):o.removeAllRanges()),a&&document.body.removeChild(a),r&&r()}return i}const Dt=class Dt{static setLanguage(e){e&&(Dt.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const o=n.prefix;delete n.prefix,Object.keys(n).forEach(a=>{const i=a,l={},u=n[i];Object.keys(u).forEach(f=>{f&&u&&(f.startsWith(o)?l[f]=u[f]:l[`${o}${f}`]=u[f])}),e[i]=l})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const o=n;Dt.translations[o]=Dt.translations[o]||{};const a=Dt.translations[o];Object.assign(a,e[o])}):Object.keys(e).forEach(n=>{const o=e[n];Object.keys(o).forEach(a=>{const i=a,l=Dt.translations[i];l?l[n]?l[n]!==o[i]&&console.warn(`Translation for word "${n}" in "${i}" was ignored: existing = "${l[n]}", new = ${o[i]}`):l[n]=o[i]:console.warn(`Used unknown language: ${i}`)})});else{Dt.translations[r]||console.warn(`Used unknown language: ${r}`),Dt.translations[r]=Dt.translations[r]||{};const n=Dt.translations[r];n&&Object.keys(e).forEach(o=>{n[o]?n[o]!==e[o]&&console.warn(`Translation for word "${o}" in "${r}" was ignored: existing = "${n[o]}", new = ${e[o]}`):n[o]=e[o]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(Dt.translations=e)}static getLanguage(){return Dt.lang}static t(e,...r){const n=Dt.translations[Dt.lang];if(n){const o=n[e];if(o)e=o;else if(Dt.unknownTranslations.includes(e)||(Dt.unknownTranslations.push(e),!Dt._disableWarning&&console.log(`Translate: ${e}`)),Dt.lang!=="en"&&Dt.translations.en){const a=Dt.translations.en[e];a&&(e=a)}}for(const o of r)e=e.replace("%s",o);return e}static i18nShow(e){const r={};e?typeof e=="string"?(Dt.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):typeof e=="object"&&(Dt.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(Dt.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){Dt._disableWarning=!!e}};we(Dt,"translations",{}),we(Dt,"unknownTranslations",[]),we(Dt,"lang",window.sysLang||"en"),we(Dt,"_disableWarning",!1);let U=Dt;window.i18nShow=U.i18nShow;window.i18nDisableWarning=U.disableWarning;const uo="material",NH=["Su","Mo","Tu","We","Th","Fr","Sa"],PH=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],m_={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"},KC={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"},At=class At{static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const o=Math.floor(e/60).toString().padStart(2,"0");e%=60;const a=Math.floor(e).toString().padStart(2,"0");let i="";return r&&(i+=`${r} ${U.t("ra_daysShortText")} `),i+=`${n}:${o}:${a}`,i}static getObjectName(e,r,n,o,a){var u;const i=e[r];let l;if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},o.language||(o.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n!=null&&n.name){const f=n.name;typeof f=="object"?l=o.language&&f[o.language]||f.en:l=f}else if(a&&((u=i==null?void 0:i.common)!=null&&u.desc)){const f=i.common.desc;typeof f=="object"?l=o.language&&f[o.language]||f.en||f.de||f.ru||"":l=f,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else if(!a&&(i!=null&&i.common)){const f=i.common.name||i.common.desc;f&&typeof f=="object"?l=o.language&&f[o.language]||f.en||f.de||f.ru||"":l=f,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else{const f=r.lastIndexOf(".");l=r.substring(f+1).replace(/[_.]/g," "),l=At.CapitalWords(l)}return(l==null?void 0:l.trim())||""}static getObjectNameFromObj(e,r,n,o,a){var u,f;const i=e;let l=e&&e._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r!=null&&r.name){const h=r.name;typeof h=="object"?l=n.language&&h[n.language]||h.en:l=h}else if(o&&((u=i==null?void 0:i.common)!=null&&u.desc)){const h=i.common.desc;typeof h=="object"?l=n.language&&h[n.language]||h.en:l=h,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else if(!o&&((f=i==null?void 0:i.common)!=null&&f.name)){let h=i.common.name;!h&&i.common.desc&&(h=i.common.desc),typeof h=="object"?l=n.language&&h[n.language]||h.en:l=h,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}return a?l:l.trim()}static getSettingsOrder(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o!=null&&o.custom){a=o.custom[uo];const i=n.user||"admin";if(a&&a[i]){if(r){if(a[i].subOrder&&a[i].subOrder[r])return JSON.parse(JSON.stringify(a[i].subOrder[r]))}else if(a[i].order)return JSON.parse(JSON.stringify(a[i].order))}}return null}static getSettingsCustomURLs(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o!=null&&o.custom){a=o.custom[uo];const i=n.user||"admin";if(a&&a[i]){if(r){if(a[i].subURLs&&a[i].subURLs[r])return JSON.parse(JSON.stringify(a[i].subURLs[r]))}else if(a[i].URLs)return JSON.parse(JSON.stringify(a[i].URLs))}}return null}static reorder(e,r,n){const o=Array.from(e),[a]=o.splice(r,1);return o.splice(n,0,a),o}static getSettings(e,r,n){let o;const a=(e==null?void 0:e._id)||(r==null?void 0:r.id);let i;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?i=e.common:i=e,i!=null&&i.custom?(o=i.custom,o=o[uo]&&o[uo][r.user||"admin"]?JSON.parse(JSON.stringify(o[uo][r.user||"admin"])):{enabled:!0}):o={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=n===void 0?!0:n),r&&(!o.name&&r.name&&(o.name=r.name),!o.icon&&r.icon&&(o.icon=r.icon),!o.color&&r.color&&(o.color=r.color)),i&&(!o.color&&i.color&&(o.color=i.color),!o.icon&&i.icon&&(o.icon=i.icon),!o.name&&i.name&&(o.name=i.name)),typeof o.name=="object"&&(o.name=r.language&&o.name[r.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&a){const l=a.lastIndexOf(".");o.name=a.substring(l+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=At.CapitalWords(o.name)}return o}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[uo]=e.common.custom[uo]||{},e.common.custom[uo][n.user||"admin"]=r;const o=e.common.custom[uo][n.user||"admin"];return o.useCommon&&(o.color!==void 0&&(e.common.color=o.color,delete o.color),o.icon!==void 0&&(e.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:o.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=o.name),delete o.name)),!0}return!1}static getIcon(e,r){return e!=null&&e.icon?e.icon.length<=2?y.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?y.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):y.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){var n;if(typeof e=="object"&&(r=e,e=r==null?void 0:r._id),(n=r==null?void 0:r.common)!=null&&n.icon){let o=r.common.icon;if(typeof o=="string"&&o.length<=2||o.startsWith("data:image"))return o;const a=e.split(".");return a[0]==="system"?o=`adapter/${a[2]}${o.startsWith("/")?"":"/"}${o}`:o=`adapter/${a[0]}${o.startsWith("/")?"":"/"}${o}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?o=`../../${o}`:window.location.pathname.match(/material\/[.\d]+/)?o=`../../${o}`:window.location.pathname.match(/material\//)&&(o=`../${o}`),o}return null}static splitCamelCase(e){return e?At.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,o,a;const i=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(i&&i.length===4)n=parseInt(i[1],10),o=parseInt(i[2],10),a=parseInt(i[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),o=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16)}return n*.299+o*.587+a*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),o=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${o}`:`${n}:${o}`}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(e){e&&(At.dateFormat=e.toUpperCase().split(/[.-/]/),At.dateFormat.splice(At.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],a=o.find(i=>i>31);if(a!==void 0){o.splice(o.indexOf(a),1);const i=o.find(l=>l>12);i?(o.splice(o.indexOf(i),1),e=new Date(a,o[0]-1,i)):At.dateFormat[0][0]==="M"&&At.dateFormat[1][0]==="D"?(e=new Date(a,o[0]-1,o[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[1]-1,o[0]))):At.dateFormat[0][0]==="D"&&At.dateFormat[1][0]==="M"?(e=new Date(a,o[1]-1,o[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[0]-1,o[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=U.t(`ra_dow_${NH[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${U.t(`ra_month_${PH[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let o=1;do{const a=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),a&&n.push(y.createElement("span",{key:`a${o++}`},a)),r[0].startsWith(""))n.push(y.createElement("b",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(y.createElement("i",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(y.createElement("span",{key:`a${o++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,o){var i,l;if(!r){if(!o)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const u=e;return(i=u==null?void 0:u.common)!=null&&i.custom&&u.common.custom[n]?u.common.custom[n].smartName:void 0}if(!o)return e[r].common.smartName;const a=e[r];return(l=a==null?void 0:a.common)!=null&&l.custom&&a.common.custom[n]&&a.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){var a,i;if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const o=(i=(a=e==null?void 0:e.common)==null?void 0:a.custom)==null?void 0:i[r];return o?o.smartName:void 0}static enableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName={}):e.common.smartName={}}static removeSmartName(e,r,n){n?e.common&&e.common.custom&&e.common.custom[r]&&(e.common.custom[r]=null):e.common.smartName=null}static updateSmartName(e,r,n,o,a,i){const l=U.getLanguage();if(typeof e.common.smartName=="string"){const u=e.common.smartName;e.common.smartName={},e.common.smartName[l]=u}if(e.native&&e.native.byON){delete e.native.byON;let u=e.common.smartName;u&&typeof u!="object"&&(u={en:u,[l]:u}),e.common.smartName=u}if(o!==void 0&&(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},o?e.common.custom[a].smartName.smartType=o:delete e.common.custom[a].smartName.smartType):(e.common.smartName=e.common.smartName||{},o?e.common.smartName.smartType=o:delete e.common.smartName.smartType)),n!==void 0&&(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},e.common.custom[a].smartName.byON=n):(e.common.smartName=e.common.smartName||{},e.common.smartName.byON=n)),r!==void 0){let u;if(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},u=e.common.custom[a].smartName):(e.common.smartName=e.common.smartName||{},u=e.common.smartName),u[l]=r,u&&(!u[l]||u[l]===e.common.name&&(!e.common.role||e.common.role.includes("button")))){delete u[l];let f=!0;for(const h in u)if(Object.prototype.hasOwnProperty.call(u,h)){f=!1;break}if(f)if(i&&e.common.custom&&e.common.custom[a])e.common.custom[a].smartName.byON===void 0?delete e.common.custom[a]:(delete e.common.custom[a].en,delete e.common.custom[a].de,delete e.common.custom[a].ru,delete e.common.custom[a].nl,delete e.common.custom[a].pl,delete e.common.custom[a].it,delete e.common.custom[a].fr,delete e.common.custom[a].pt,delete e.common.custom[a].es,delete e.common.custom[a].uk,delete e.common.custom[a]["zh-cn"]);else if(e.common.smartName&&e.common.smartName.byON!==void 0){const h=e.common.smartName;delete h.en,delete h.de,delete h.ru,delete h.nl,delete h.pl,delete h.it,delete h.fr,delete h.pt,delete h.es,delete h.uk,delete h["zh-cn"]}else e.common.smartName=null}}}static disableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName=!1):e.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),MH(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const l=(255-o).toString(16),u=(255-a).toString(16),f=(255-i).toString(16);return`#${l.padStart(2,"0")}${u.padStart(2,"0")}${f.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[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 r=e[0]/255,n=e[1]/255,o=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let a=(r*.4124+n*.3576+o*.1805)/.95047,i=r*.2126+n*.7152+o*.0722,l=(r*.0193+n*.1192+o*.9505)/1.08883;return a=a>.008856?a**.33333333:7.787*a+.137931,i=i>.008856?i**.33333333:7.787*i+.137931,l=l>.008856?l**.33333333:7.787*l+.137931,[116*i-16,500*(a-i),200*(i-l)]}static colorDistance(e,r){const n=At.color2rgb(e),o=At.color2rgb(r);if(!n||!o)return 0;const a=At.rgb2lab(n),i=At.rgb2lab(o),l=a[0]-i[0],u=a[1]-i[1],f=a[2]-i[2],h=Math.sqrt(a[1]*a[1]+a[2]*a[2]),d=Math.sqrt(i[1]*i[1]+i[2]*i[2]),_=h-d;let g=u*u+f*f-_*_;g=g<0?0:Math.sqrt(g);const b=1+.045*h,w=1+.015*h,S=l,k=_/b,D=g/w,C=S*S+k*k+D*D;return C<0?0:C}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let o=0;o{if(n=n.trim(),n){const o=n.split("="),a=decodeURIComponent(o[0]).trim();if(o.length>1){const i=decodeURIComponent(o[1]);if(i==="true")r[a]=!0;else if(i==="false")r[a]=!1;else{const l=parseFloat(i);l.toString()===i?r[a]=l:r[a]=i}}else r[a]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const o=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${o}/${a}/${e.getFullYear()}`:n=`${e.getFullYear()}-${o}-${a}`,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);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),o=Math.floor(e%3600/60),a=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:n?`${n}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){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/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){var a;const r=At.MDextractHeader(e),n=r.header;let o=r.body;if(!n.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const i=o.replace(/\r/g,"").split(` `);for(let l=0;l{if(!i.trim())return;const l=i.indexOf(":");if(l!==-1){const u=i.substring(0,l).trim();let f=i.substring(l+1).trim();f=f.replace(/^['"]|['"]$/g,""),f==="true"?r[u]=!0:f==="false"?r[u]=!1:parseFloat(f).toString()===r[u]?r[u]=parseFloat(f):r[u]=f}else r[i.trim()]=!0}),e=e.substring(n+7))}return{header:r,body:e}}static MDremoveDocsify(e){const r=e.match(/{docsify-[^}]*}/g);return r&&r.forEach(n=>e=e.replace(n,"")),e}static generateFile(e,r){const n=document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){const r=e&4294901760,n=m_[e];let o;return n?o=[n]:e&1?o=[m_[1],`0x${(e&65534).toString(16)}`]:e&2?o=[m_[2],`0x${(e&65533).toString(16)}`]:o=[`0x${e.toString(16)}`],r&&o.push(`0x${(r>>16).toString(16).toUpperCase()}`),o}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){var o;const r=(o=e==null?void 0:e.common)==null?void 0:o.states;let n;if(r)if(typeof r=="string"&&r[0]==="{")try{n=JSON.parse(r)}catch{console.error(`Cannot parse states: ${r}`),n=null}else if(typeof r=="string"){const a=r.split(";");n={};for(let i=0;in[i]=a):(e==null?void 0:e.common.type)==="string"?r.forEach(a=>n[a]=a):(e==null?void 0:e.common.type)==="boolean"&&(n.false=r[0],n.true=r[1])):typeof r=="object"&&(n=r);return n||null}static async getSvg(e){const n=await(await fetch(e)).blob();return new Promise(o=>{const a=new FileReader;a.onload=()=>{var i;return o(((i=a.result)==null?void 0:i.toString())||"")},a.readAsDataURL(n)})}static detectMimeType(e){const r=Object.keys(KC).find(n=>e.startsWith(n));return r?KC[r]:null}static isStableRepository(e){return!!(typeof e=="string"&&e.toLowerCase().startsWith("stable")||e&&typeof e!="string"&&e.find(r=>r.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,...r){const n={};for(let o=0;o{if(typeof r[o][a]=="function")n[a]=r[o][a](e);else if(typeof r[o][a]=="object"){const i=r[o][a];n[a]={},Object.keys(i).forEach(l=>{typeof i[l]=="function"?n[a][l]=i(e):(i[l]||i[l]===0)&&(n[a][l]=i[l])})}else(r[o][a]||r[o][a]===0)&&(n[a]=r[o][a])});return n}};xe(At,"namespace",uo),xe(At,"INSTANCES","instances"),xe(At,"dateFormat",["DD","MM"]),xe(At,"FORBIDDEN_CHARS",/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu);let ht=At;const __={buttonIcon:{marginRight:8}};class OXe extends y.Component{constructor(r){super(r);xe(this,"isIFrame");const n=r.newReact===void 0?!0:r.newReact;if(r.isIFrame!==void 0)this.isIFrame=r.isIFrame;else try{this.isIFrame=!n&&window.self!==window.top}catch{this.isIFrame=!n}}render(){const r=this.props.noTextOnButtons,n={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},o={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(o.minHeight=48),this.props.error&&(n.border="1px solid red"),y.createElement(Bb,{style:o},y.createElement(Cs,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:n},y.createElement(S0,{style:r?void 0:__.buttonIcon}),!r&&U.t("ra_Save")),y.createElement(Cs,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...n,marginLeft:10}},y.createElement(S0,{style:r?void 0:__.buttonIcon}),r?"+":U.t("ra_Save and close"),r&&y.createElement(Rs,null)),y.createElement("div",{style:{flexGrow:1}}),y.createElement(Cs,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:n},y.createElement(Rs,{style:r?void 0:__.buttonIcon}),!r&&U.t("ra_Close")))}}const ZC={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class RH extends $.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let r=!1;this.props.suppressQuestionMinutes&&(r=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,r?Date.now()>r&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),r=!1):r=!1),this.state={suppress:r}}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):y.createElement(ra,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(e,r)=>{r!=="backdropClick"&&r!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},y.createElement(aa,{id:"ar_confirmation_dialog_title"},this.props.title||U.t("ra_Are you sure?")),y.createElement(oa,null,y.createElement(If,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?y.createElement("br",null):null,this.props.suppressQuestionMinutes?y.createElement(gt,{sx:{"& .FormControlLabel-label":ZC.suppress,"&.FormControlLabel-root":ZC.suppressRoot},control:y.createElement(tn,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||U.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),y.createElement(na,null,y.createElement(Qt,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:y.createElement(Rs,null)},this.props.cancel||U.t("ra_Cancel"))))}}class KM extends $.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return y.createElement(ra,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},y.createElement(aa,{id:"ar_alert_dialog_title"},this.props.title||U.t("ra_Error")),y.createElement(oa,null,y.createElement(If,{id:"ar_alert_dialog_description"},this.props.text||U.t("ra_Unknown error!"))),y.createElement(na,null,y.createElement(Qt,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:y.createElement(Hs,null)},U.t("ra_Ok"))))}}var Qr={},Di={},g_,QC;function ZM(){if(QC)return g_;QC=1;var t=typeof Ld=="object"&&Ld&&Ld.Object===Object&&Ld;return g_=t,g_}var y_,e$;function Do(){if(e$)return y_;e$=1;var t=ZM(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return y_=r,y_}var v_,t$;function Eu(){if(t$)return v_;t$=1;var t=Do(),e=t.Symbol;return v_=e,v_}var b_,r$;function AH(){if(r$)return b_;r$=1;var t=Eu(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function a(i){var l=r.call(i,o),u=i[o];try{i[o]=void 0;var f=!0}catch{}var h=n.call(i);return f&&(l?i[o]=u:delete i[o]),h}return b_=a,b_}var w_,n$;function IH(){if(n$)return w_;n$=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return w_=r,w_}var x_,o$;function qs(){if(o$)return x_;o$=1;var t=Eu(),e=AH(),r=IH(),n="[object Null]",o="[object Undefined]",a=t?t.toStringTag:void 0;function i(l){return l==null?l===void 0?o:n:a&&a in Object(l)?e(l):r(l)}return x_=i,x_}var S_,a$;function to(){if(a$)return S_;a$=1;var t=Array.isArray;return S_=t,S_}var k_,s$;function sa(){if(s$)return k_;s$=1;function t(e){return e!=null&&typeof e=="object"}return k_=t,k_}var C_,i$;function jH(){if(i$)return C_;i$=1;var t=qs(),e=to(),r=sa(),n="[object String]";function o(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return C_=o,C_}var $_,c$;function LH(){if(c$)return $_;c$=1;function t(e){return function(r,n,o){for(var a=-1,i=Object(r),l=o(r),u=l.length;u--;){var f=l[e?u:++a];if(n(i[f],f,i)===!1)break}return r}}return $_=t,$_}var E_,l$;function zH(){if(l$)return E_;l$=1;var t=LH(),e=t();return E_=e,E_}var T_,u$;function FH(){if(u$)return T_;u$=1;function t(e,r){for(var n=-1,o=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return P_=e,P_}var R_,g$;function UH(){if(g$)return R_;g$=1;var t=qs(),e=qb(),r=sa(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",l="[object Error]",u="[object Function]",f="[object Map]",h="[object Number]",d="[object Object]",_="[object RegExp]",g="[object Set]",b="[object String]",w="[object WeakMap]",S="[object ArrayBuffer]",k="[object DataView]",D="[object Float32Array]",C="[object Float64Array]",O="[object Int8Array]",M="[object Int16Array]",T="[object Int32Array]",P="[object Uint8Array]",j="[object Uint8ClampedArray]",z="[object Uint16Array]",E="[object Uint32Array]",L={};L[D]=L[C]=L[O]=L[M]=L[T]=L[P]=L[j]=L[z]=L[E]=!0,L[n]=L[o]=L[S]=L[a]=L[k]=L[i]=L[l]=L[u]=L[f]=L[h]=L[d]=L[_]=L[g]=L[b]=L[w]=!1;function G(B){return r(B)&&e(B.length)&&!!L[t(B)]}return R_=G,R_}var A_,y$;function Vb(){if(y$)return A_;y$=1;function t(e){return function(r){return e(r)}}return A_=t,A_}var Fl={exports:{}};Fl.exports;var v$;function Xb(){return v$||(v$=1,function(t,e){var r=ZM(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,l=function(){try{var u=o&&o.require&&o.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();t.exports=l}(Fl,Fl.exports)),Fl.exports}var I_,b$;function tN(){if(b$)return I_;b$=1;var t=UH(),e=Vb(),r=Xb(),n=r&&r.isTypedArray,o=n?e(n):t;return I_=o,I_}var j_,w$;function rN(){if(w$)return j_;w$=1;var t=FH(),e=QM(),r=to(),n=Hb(),o=eN(),a=tN(),i=Object.prototype,l=i.hasOwnProperty;function u(f,h){var d=r(f),_=!d&&e(f),g=!d&&!_&&n(f),b=!d&&!_&&!g&&a(f),w=d||_||g||b,S=w?t(f.length,String):[],k=S.length;for(var D in f)(h||l.call(f,D))&&!(w&&(D=="length"||g&&(D=="offset"||D=="parent")||b&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||o(D,k)))&&S.push(D);return S}return j_=u,j_}var L_,x$;function Gb(){if(x$)return L_;x$=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return L_=e,L_}var z_,S$;function nN(){if(S$)return z_;S$=1;function t(e,r){return function(n){return e(r(n))}}return z_=t,z_}var F_,k$;function HH(){if(k$)return F_;k$=1;var t=nN(),e=t(Object.keys,Object);return F_=e,F_}var B_,C$;function qH(){if(C$)return B_;C$=1;var t=Gb(),e=HH(),r=Object.prototype,n=r.hasOwnProperty;function o(a){if(!t(a))return e(a);var i=[];for(var l in Object(a))n.call(a,l)&&l!="constructor"&&i.push(l);return i}return B_=o,B_}var W_,$$;function Mc(){if($$)return W_;$$=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return W_=t,W_}var U_,E$;function oN(){if(E$)return U_;E$=1;var t=qs(),e=Mc(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(l){if(!e(l))return!1;var u=t(l);return u==n||u==o||u==r||u==a}return U_=i,U_}var H_,T$;function Lf(){if(T$)return H_;T$=1;var t=oN(),e=qb();function r(n){return n!=null&&e(n.length)&&!t(n)}return H_=r,H_}var q_,O$;function Tu(){if(O$)return q_;O$=1;var t=rN(),e=qH(),r=Lf();function n(o){return r(o)?t(o):e(o)}return q_=n,q_}var V_,D$;function aN(){if(D$)return V_;D$=1;var t=zH(),e=Tu();function r(n,o){return n&&t(n,o,e)}return V_=r,V_}var X_,M$;function sN(){if(M$)return X_;M$=1;function t(e){return e}return X_=t,X_}var G_,N$;function VH(){if(N$)return G_;N$=1;var t=sN();function e(r){return typeof r=="function"?r:t}return G_=e,G_}var J_,P$;function Jb(){if(P$)return J_;P$=1;var t=aN(),e=VH();function r(n,o){return n&&t(n,e(o))}return J_=r,J_}var Y_,R$;function Yb(){if(R$)return Y_;R$=1;var t=nN(),e=t(Object.getPrototypeOf,Object);return Y_=e,Y_}var K_,A$;function XH(){if(A$)return K_;A$=1;var t=qs(),e=Yb(),r=sa(),n="[object Object]",o=Function.prototype,a=Object.prototype,i=o.toString,l=a.hasOwnProperty,u=i.call(Object);function f(h){if(!r(h)||t(h)!=n)return!1;var d=e(h);if(d===null)return!0;var _=l.call(d,"constructor")&&d.constructor;return typeof _=="function"&&_ instanceof _&&i.call(_)==u}return K_=f,K_}var Z_,I$;function iN(){if(I$)return Z_;I$=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,a=Array(o);++n-1}return og=e,og}var ag,U$;function ZH(){if(U$)return ag;U$=1;var t=zf();function e(r,n){var o=this.__data__,a=t(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return ag=e,ag}var sg,H$;function Ff(){if(H$)return sg;H$=1;var t=GH(),e=JH(),r=YH(),n=KH(),o=ZH();function a(i){var l=-1,u=i==null?0:i.length;for(this.clear();++lg))return!1;var w=d.get(i),S=d.get(l);if(w&&S)return w==l&&S==i;var k=-1,D=!0,C=u&o?new t:void 0;for(d.set(i,l),d.set(l,i);++k0&&arguments[0]!==void 0?arguments[0]:[],_=[];return(0,l.default)(d,function(g){Array.isArray(g)?h(g).map(function(b){return _.push(b)}):(0,a.default)(g)?(0,n.default)(g,function(b,w){b===!0&&_.push(w),_.push(w+"-"+b)}):(0,e.default)(g)&&_.push(g)}),_};return Di.default=f,Di}var Mi={},Py,yT;function nV(){if(yT)return Py;yT=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],h=u.default&&(0,n.default)(u.default)||{};return f.map(function(d){var _=u[d];return _&&(0,e.default)(_,function(g,b){h[b]||(h[b]={}),h[b]=o({},h[b],_[b])}),d}),h};return Mi.default=i,Mi}var Ni={},YT;function OV(){if(YT)return Ni;YT=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.autoprefix=void 0;var t=Jb(),e=n(t),r=Object.assign||function(i){for(var l=1;l1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){i(_,d);function _(){var g,b,w,S;o(this,_);for(var k=arguments.length,D=Array(k),C=0;C1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){i(_,d);function _(){var g,b,w,S;o(this,_);for(var k=arguments.length,D=Array(k),C=0;C1&&arguments[1]!==void 0?arguments[1]:!0;o[l]=u};return r===0&&a("first-child"),r===n-1&&a("last-child"),(r===0||r%2===0)&&a("even"),Math.abs(r%2)===1&&a("odd"),a("nth-child",r),o};return lp.default=t,lp}var e2;function PV(){if(e2)return Qr;e2=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.ReactCSS=Qr.loop=Qr.handleActive=Qr.handleHover=Qr.hover=void 0;var t=rV(),e=_(t),r=TV(),n=_(r),o=OV(),a=_(o),i=DV(),l=_(i),u=MV(),f=_(u),h=NV(),d=_(h);function _(b){return b&&b.__esModule?b:{default:b}}Qr.hover=l.default,Qr.handleHover=l.default,Qr.handleActive=f.default,Qr.loop=d.default;var g=Qr.ReactCSS=function(w){for(var S=arguments.length,k=Array(S>1?S-1:0),D=1;Dl?_=1:_=Math.round(d*100/l)/100,r.a!==_)return{h:r.h,s:r.s,l:r.l,a:_,source:"rgb"}}else{var g=void 0;if(h<0?g=0:h>i?g=1:g=Math.round(h*100/i)/100,o!==g)return{h:r.h,s:r.s,l:r.l,a:g,source:"rgb"}}return null},lv={},AV=function(e,r,n,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=n*2,a.height=n*2;var i=a.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,a.width,a.height),i.fillStyle=r,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),a.toDataURL()):null},IV=function(e,r,n,o){var a=e+"-"+r+"-"+n+(o?"-server":"");if(lv[a])return lv[a];var i=AV(e,r,n,o);return lv[a]=i,i},t2=Object.assign||function(t){for(var e=1;e{if(!i.trim())return;const l=i.indexOf(":");if(l!==-1){const u=i.substring(0,l).trim();let f=i.substring(l+1).trim();f=f.replace(/^['"]|['"]$/g,""),f==="true"?r[u]=!0:f==="false"?r[u]=!1:parseFloat(f).toString()===r[u]?r[u]=parseFloat(f):r[u]=f}else r[i.trim()]=!0}),e=e.substring(n+7))}return{header:r,body:e}}static MDremoveDocsify(e){const r=e.match(/{docsify-[^}]*}/g);return r&&r.forEach(n=>e=e.replace(n,"")),e}static generateFile(e,r){const n=document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){const r=e&4294901760,n=m_[e];let o;return n?o=[n]:e&1?o=[m_[1],`0x${(e&65534).toString(16)}`]:e&2?o=[m_[2],`0x${(e&65533).toString(16)}`]:o=[`0x${e.toString(16)}`],r&&o.push(`0x${(r>>16).toString(16).toUpperCase()}`),o}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){var o;const r=(o=e==null?void 0:e.common)==null?void 0:o.states;let n;if(r)if(typeof r=="string"&&r[0]==="{")try{n=JSON.parse(r)}catch{console.error(`Cannot parse states: ${r}`),n=null}else if(typeof r=="string"){const a=r.split(";");n={};for(let i=0;in[i]=a):(e==null?void 0:e.common.type)==="string"?r.forEach(a=>n[a]=a):(e==null?void 0:e.common.type)==="boolean"&&(n.false=r[0],n.true=r[1])):typeof r=="object"&&(n=r);return n||null}static async getSvg(e){const n=await(await fetch(e)).blob();return new Promise(o=>{const a=new FileReader;a.onload=()=>{var i;return o(((i=a.result)==null?void 0:i.toString())||"")},a.readAsDataURL(n)})}static detectMimeType(e){const r=Object.keys(KC).find(n=>e.startsWith(n));return r?KC[r]:null}static isStableRepository(e){return!!(typeof e=="string"&&e.toLowerCase().startsWith("stable")||e&&typeof e!="string"&&e.find(r=>r.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,...r){const n={};for(let o=0;o{if(typeof r[o][a]=="function")n[a]=r[o][a](e);else if(typeof r[o][a]=="object"){const i=r[o][a];n[a]={},Object.keys(i).forEach(l=>{typeof i[l]=="function"?n[a][l]=i(e):(i[l]||i[l]===0)&&(n[a][l]=i[l])})}else(r[o][a]||r[o][a]===0)&&(n[a]=r[o][a])});return n}};we(At,"namespace",uo),we(At,"INSTANCES","instances"),we(At,"dateFormat",["DD","MM"]),we(At,"FORBIDDEN_CHARS",/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu);let ht=At;const __={buttonIcon:{marginRight:8}};class OXe extends y.Component{constructor(r){super(r);we(this,"isIFrame");const n=r.newReact===void 0?!0:r.newReact;if(r.isIFrame!==void 0)this.isIFrame=r.isIFrame;else try{this.isIFrame=!n&&window.self!==window.top}catch{this.isIFrame=!n}}render(){const r=this.props.noTextOnButtons,n={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},o={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(o.minHeight=48),this.props.error&&(n.border="1px solid red"),y.createElement(Bb,{style:o},y.createElement(Cs,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:n},y.createElement(S0,{style:r?void 0:__.buttonIcon}),!r&&U.t("ra_Save")),y.createElement(Cs,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...n,marginLeft:10}},y.createElement(S0,{style:r?void 0:__.buttonIcon}),r?"+":U.t("ra_Save and close"),r&&y.createElement(Rs,null)),y.createElement("div",{style:{flexGrow:1}}),y.createElement(Cs,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:n},y.createElement(Rs,{style:r?void 0:__.buttonIcon}),!r&&U.t("ra_Close")))}}const ZC={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class RH extends $.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let r=!1;this.props.suppressQuestionMinutes&&(r=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,r?Date.now()>r&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),r=!1):r=!1),this.state={suppress:r}}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):y.createElement(ra,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(e,r)=>{r!=="backdropClick"&&r!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},y.createElement(aa,{id:"ar_confirmation_dialog_title"},this.props.title||U.t("ra_Are you sure?")),y.createElement(oa,null,y.createElement(If,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?y.createElement("br",null):null,this.props.suppressQuestionMinutes?y.createElement(gt,{sx:{"& .FormControlLabel-label":ZC.suppress,"&.FormControlLabel-root":ZC.suppressRoot},control:y.createElement(tn,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||U.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),y.createElement(na,null,y.createElement(Qt,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:y.createElement(Rs,null)},this.props.cancel||U.t("ra_Cancel"))))}}class KM extends $.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return y.createElement(ra,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},y.createElement(aa,{id:"ar_alert_dialog_title"},this.props.title||U.t("ra_Error")),y.createElement(oa,null,y.createElement(If,{id:"ar_alert_dialog_description"},this.props.text||U.t("ra_Unknown error!"))),y.createElement(na,null,y.createElement(Qt,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:y.createElement(Hs,null)},U.t("ra_Ok"))))}}var Qr={},Di={},g_,QC;function ZM(){if(QC)return g_;QC=1;var t=typeof Ld=="object"&&Ld&&Ld.Object===Object&&Ld;return g_=t,g_}var y_,e$;function Do(){if(e$)return y_;e$=1;var t=ZM(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return y_=r,y_}var v_,t$;function Eu(){if(t$)return v_;t$=1;var t=Do(),e=t.Symbol;return v_=e,v_}var b_,r$;function AH(){if(r$)return b_;r$=1;var t=Eu(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function a(i){var l=r.call(i,o),u=i[o];try{i[o]=void 0;var f=!0}catch{}var h=n.call(i);return f&&(l?i[o]=u:delete i[o]),h}return b_=a,b_}var w_,n$;function IH(){if(n$)return w_;n$=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return w_=r,w_}var x_,o$;function qs(){if(o$)return x_;o$=1;var t=Eu(),e=AH(),r=IH(),n="[object Null]",o="[object Undefined]",a=t?t.toStringTag:void 0;function i(l){return l==null?l===void 0?o:n:a&&a in Object(l)?e(l):r(l)}return x_=i,x_}var S_,a$;function to(){if(a$)return S_;a$=1;var t=Array.isArray;return S_=t,S_}var k_,s$;function sa(){if(s$)return k_;s$=1;function t(e){return e!=null&&typeof e=="object"}return k_=t,k_}var C_,i$;function jH(){if(i$)return C_;i$=1;var t=qs(),e=to(),r=sa(),n="[object String]";function o(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return C_=o,C_}var $_,c$;function LH(){if(c$)return $_;c$=1;function t(e){return function(r,n,o){for(var a=-1,i=Object(r),l=o(r),u=l.length;u--;){var f=l[e?u:++a];if(n(i[f],f,i)===!1)break}return r}}return $_=t,$_}var E_,l$;function FH(){if(l$)return E_;l$=1;var t=LH(),e=t();return E_=e,E_}var T_,u$;function zH(){if(u$)return T_;u$=1;function t(e,r){for(var n=-1,o=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return P_=e,P_}var R_,g$;function UH(){if(g$)return R_;g$=1;var t=qs(),e=qb(),r=sa(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",l="[object Error]",u="[object Function]",f="[object Map]",h="[object Number]",d="[object Object]",_="[object RegExp]",g="[object Set]",b="[object String]",w="[object WeakMap]",S="[object ArrayBuffer]",k="[object DataView]",D="[object Float32Array]",C="[object Float64Array]",O="[object Int8Array]",M="[object Int16Array]",T="[object Int32Array]",P="[object Uint8Array]",j="[object Uint8ClampedArray]",F="[object Uint16Array]",E="[object Uint32Array]",L={};L[D]=L[C]=L[O]=L[M]=L[T]=L[P]=L[j]=L[F]=L[E]=!0,L[n]=L[o]=L[S]=L[a]=L[k]=L[i]=L[l]=L[u]=L[f]=L[h]=L[d]=L[_]=L[g]=L[b]=L[w]=!1;function G(B){return r(B)&&e(B.length)&&!!L[t(B)]}return R_=G,R_}var A_,y$;function Vb(){if(y$)return A_;y$=1;function t(e){return function(r){return e(r)}}return A_=t,A_}var zl={exports:{}};zl.exports;var v$;function Xb(){return v$||(v$=1,function(t,e){var r=ZM(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,l=function(){try{var u=o&&o.require&&o.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();t.exports=l}(zl,zl.exports)),zl.exports}var I_,b$;function tN(){if(b$)return I_;b$=1;var t=UH(),e=Vb(),r=Xb(),n=r&&r.isTypedArray,o=n?e(n):t;return I_=o,I_}var j_,w$;function rN(){if(w$)return j_;w$=1;var t=zH(),e=QM(),r=to(),n=Hb(),o=eN(),a=tN(),i=Object.prototype,l=i.hasOwnProperty;function u(f,h){var d=r(f),_=!d&&e(f),g=!d&&!_&&n(f),b=!d&&!_&&!g&&a(f),w=d||_||g||b,S=w?t(f.length,String):[],k=S.length;for(var D in f)(h||l.call(f,D))&&!(w&&(D=="length"||g&&(D=="offset"||D=="parent")||b&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||o(D,k)))&&S.push(D);return S}return j_=u,j_}var L_,x$;function Gb(){if(x$)return L_;x$=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return L_=e,L_}var F_,S$;function nN(){if(S$)return F_;S$=1;function t(e,r){return function(n){return e(r(n))}}return F_=t,F_}var z_,k$;function HH(){if(k$)return z_;k$=1;var t=nN(),e=t(Object.keys,Object);return z_=e,z_}var B_,C$;function qH(){if(C$)return B_;C$=1;var t=Gb(),e=HH(),r=Object.prototype,n=r.hasOwnProperty;function o(a){if(!t(a))return e(a);var i=[];for(var l in Object(a))n.call(a,l)&&l!="constructor"&&i.push(l);return i}return B_=o,B_}var W_,$$;function Mc(){if($$)return W_;$$=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return W_=t,W_}var U_,E$;function oN(){if(E$)return U_;E$=1;var t=qs(),e=Mc(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(l){if(!e(l))return!1;var u=t(l);return u==n||u==o||u==r||u==a}return U_=i,U_}var H_,T$;function Lf(){if(T$)return H_;T$=1;var t=oN(),e=qb();function r(n){return n!=null&&e(n.length)&&!t(n)}return H_=r,H_}var q_,O$;function Tu(){if(O$)return q_;O$=1;var t=rN(),e=qH(),r=Lf();function n(o){return r(o)?t(o):e(o)}return q_=n,q_}var V_,D$;function aN(){if(D$)return V_;D$=1;var t=FH(),e=Tu();function r(n,o){return n&&t(n,o,e)}return V_=r,V_}var X_,M$;function sN(){if(M$)return X_;M$=1;function t(e){return e}return X_=t,X_}var G_,N$;function VH(){if(N$)return G_;N$=1;var t=sN();function e(r){return typeof r=="function"?r:t}return G_=e,G_}var J_,P$;function Jb(){if(P$)return J_;P$=1;var t=aN(),e=VH();function r(n,o){return n&&t(n,e(o))}return J_=r,J_}var Y_,R$;function Yb(){if(R$)return Y_;R$=1;var t=nN(),e=t(Object.getPrototypeOf,Object);return Y_=e,Y_}var K_,A$;function XH(){if(A$)return K_;A$=1;var t=qs(),e=Yb(),r=sa(),n="[object Object]",o=Function.prototype,a=Object.prototype,i=o.toString,l=a.hasOwnProperty,u=i.call(Object);function f(h){if(!r(h)||t(h)!=n)return!1;var d=e(h);if(d===null)return!0;var _=l.call(d,"constructor")&&d.constructor;return typeof _=="function"&&_ instanceof _&&i.call(_)==u}return K_=f,K_}var Z_,I$;function iN(){if(I$)return Z_;I$=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,a=Array(o);++n-1}return og=e,og}var ag,U$;function ZH(){if(U$)return ag;U$=1;var t=Ff();function e(r,n){var o=this.__data__,a=t(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return ag=e,ag}var sg,H$;function zf(){if(H$)return sg;H$=1;var t=GH(),e=JH(),r=YH(),n=KH(),o=ZH();function a(i){var l=-1,u=i==null?0:i.length;for(this.clear();++lg))return!1;var w=d.get(i),S=d.get(l);if(w&&S)return w==l&&S==i;var k=-1,D=!0,C=u&o?new t:void 0;for(d.set(i,l),d.set(l,i);++k0&&arguments[0]!==void 0?arguments[0]:[],_=[];return(0,l.default)(d,function(g){Array.isArray(g)?h(g).map(function(b){return _.push(b)}):(0,a.default)(g)?(0,n.default)(g,function(b,w){b===!0&&_.push(w),_.push(w+"-"+b)}):(0,e.default)(g)&&_.push(g)}),_};return Di.default=f,Di}var Mi={},Py,yT;function nV(){if(yT)return Py;yT=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],h=u.default&&(0,n.default)(u.default)||{};return f.map(function(d){var _=u[d];return _&&(0,e.default)(_,function(g,b){h[b]||(h[b]={}),h[b]=o({},h[b],_[b])}),d}),h};return Mi.default=i,Mi}var Ni={},YT;function OV(){if(YT)return Ni;YT=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.autoprefix=void 0;var t=Jb(),e=n(t),r=Object.assign||function(i){for(var l=1;l1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){i(_,d);function _(){var g,b,w,S;o(this,_);for(var k=arguments.length,D=Array(k),C=0;C1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){i(_,d);function _(){var g,b,w,S;o(this,_);for(var k=arguments.length,D=Array(k),C=0;C1&&arguments[1]!==void 0?arguments[1]:!0;o[l]=u};return r===0&&a("first-child"),r===n-1&&a("last-child"),(r===0||r%2===0)&&a("even"),Math.abs(r%2)===1&&a("odd"),a("nth-child",r),o};return lp.default=t,lp}var e2;function PV(){if(e2)return Qr;e2=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.ReactCSS=Qr.loop=Qr.handleActive=Qr.handleHover=Qr.hover=void 0;var t=rV(),e=_(t),r=TV(),n=_(r),o=OV(),a=_(o),i=DV(),l=_(i),u=MV(),f=_(u),h=NV(),d=_(h);function _(b){return b&&b.__esModule?b:{default:b}}Qr.hover=l.default,Qr.handleHover=l.default,Qr.handleActive=f.default,Qr.loop=d.default;var g=Qr.ReactCSS=function(w){for(var S=arguments.length,k=Array(S>1?S-1:0),D=1;Dl?_=1:_=Math.round(d*100/l)/100,r.a!==_)return{h:r.h,s:r.s,l:r.l,a:_,source:"rgb"}}else{var g=void 0;if(h<0?g=0:h>i?g=1:g=Math.round(h*100/i)/100,o!==g)return{h:r.h,s:r.s,l:r.l,a:g,source:"rgb"}}return null},lv={},AV=function(e,r,n,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=n*2,a.height=n*2;var i=a.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,a.width,a.height),i.fillStyle=r,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),a.toDataURL()):null},IV=function(e,r,n,o){var a=e+"-"+r+"-"+n+(o?"-server":"");if(lv[a])return lv[a];var i=AV(e,r,n,o);return lv[a]=i,i},t2=Object.assign||function(t){for(var e=1;e-1},YV=function(e){return Number(String(e).replace(/%/g,""))},KV=1,bt=function(t){qV(e,t);function e(r){UV(this,e);var n=HV(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(o){n.setUpdatedValue(o.target.value,o)},n.handleKeyDown=function(o){var a=YV(o.target.value);if(!isNaN(a)&&JV(o.keyCode)){var i=n.getArrowOffset(),l=o.keyCode===SN?a+i:a-i;n.setUpdatedValue(l,o)}},n.handleDrag=function(o){if(n.props.dragLabel){var a=Math.round(n.props.value+o.movementX);a>=0&&a<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(a),o)}},n.handleMouseDown=function(o){n.props.dragLabel&&(o.preventDefault(),n.handleDrag(o),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(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+KV++,n}return BV(e,[{key:"componentDidUpdate",value:function(n,o){this.props.value!==this.state.value&&(n.value!==this.props.value||o.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(n){return WV({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||VV}},{key:"setUpdatedValue",value:function(n,o){var a=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(a,o),this.setState({value:n})}},{key:"render",value:function(){var n=this,o=ct({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 y.createElement("div",{style:o.wrap},y.createElement("input",{id:this.inputId,style:o.input,ref:function(i){return n.input=i},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?y.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}($.PureComponent||$.Component),ZV=function(e,r,n,o){var a=o.clientWidth,i=o.clientHeight,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,u=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=l-(o.getBoundingClientRect().left+window.pageXOffset),h=u-(o.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var d=void 0;if(h<0)d=359;else if(h>i)d=0;else{var _=-(h*100/i)+100;d=360*_/100}if(n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var g=void 0;if(f<0)g=0;else if(f>a)g=359;else{var b=f*100/a;g=360*b/100}if(n.h!==g)return{h:g,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},QV=function(){function t(e,r){for(var n=0;n-1}function cX(t,e){var r=this.__data__,n=Vf(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function ia(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=mG}function Rc(t){return t!=null&&dw(t.length)&&!cw(t)}function _G(t){return Ua(t)&&Rc(t)}function gG(){return!1}var MN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,u2=MN&&typeof module=="object"&&module&&!module.nodeType&&module,yG=u2&&u2.exports===MN,d2=yG?ro.Buffer:void 0,vG=d2?d2.isBuffer:void 0,Zp=vG||gG,bG="[object Object]",wG=Function.prototype,xG=Object.prototype,NN=wG.toString,SG=xG.hasOwnProperty,kG=NN.call(Object);function CG(t){if(!Ua(t)||Xs(t)!=bG)return!1;var e=ON(t);if(e===null)return!0;var r=SG.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&NN.call(r)==kG}var $G="[object Arguments]",EG="[object Array]",TG="[object Boolean]",OG="[object Date]",DG="[object Error]",MG="[object Function]",NG="[object Map]",PG="[object Number]",RG="[object Object]",AG="[object RegExp]",IG="[object Set]",jG="[object String]",LG="[object WeakMap]",zG="[object ArrayBuffer]",FG="[object DataView]",BG="[object Float32Array]",WG="[object Float64Array]",UG="[object Int8Array]",HG="[object Int16Array]",qG="[object Int32Array]",VG="[object Uint8Array]",XG="[object Uint8ClampedArray]",GG="[object Uint16Array]",JG="[object Uint32Array]",Ut={};Ut[BG]=Ut[WG]=Ut[UG]=Ut[HG]=Ut[qG]=Ut[VG]=Ut[XG]=Ut[GG]=Ut[JG]=!0;Ut[$G]=Ut[EG]=Ut[zG]=Ut[TG]=Ut[FG]=Ut[OG]=Ut[DG]=Ut[MG]=Ut[NG]=Ut[PG]=Ut[RG]=Ut[AG]=Ut[IG]=Ut[jG]=Ut[LG]=!1;function YG(t){return Ua(t)&&dw(t.length)&&!!Ut[Xs(t)]}function KG(t){return function(e){return t(e)}}var PN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Yl=PN&&typeof module=="object"&&module&&!module.nodeType&&module,ZG=Yl&&Yl.exports===PN,dv=ZG&&kN.process,p2=function(){try{var t=Yl&&Yl.require&&Yl.require("util").types;return t||dv&&dv.binding&&dv.binding("util")}catch{}}(),f2=p2&&p2.isTypedArray,pw=f2?KG(f2):YG;function C0(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var QG=Object.prototype,eJ=QG.hasOwnProperty;function tJ(t,e,r){var n=t[e];(!(eJ.call(t,e)&&Ou(n,r))||r===void 0&&!(e in t))&&lw(t,e,r)}function rJ(t,e,r,n){var o=!r;r||(r={});for(var a=-1,i=e.length;++a-1&&t%1==0&&t0){if(++e>=yJ)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var xJ=wJ(gJ);function SJ(t,e){return xJ(mJ(t,e,Gf),t+"")}function kJ(t,e,r){if(!zn(r))return!1;var n=typeof e;return(n=="number"?Rc(r)&&fw(e,r.length):n=="string"&&e in r)?Ou(r[e],t):!1}function CJ(t){return SJ(function(e,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(o--,a):void 0,i&&kJ(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),e=Object(e);++n=e||P<0||d&&j>=a}function k(){var T=pv();if(S(T))return D(T);l=setTimeout(k,w(T))}function D(T){return l=void 0,_&&n?g(T):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),f=0,n=u=o=l=void 0}function O(){return l===void 0?i:D(pv())}function M(){var T=pv(),P=S(T);if(n=arguments,o=this,u=T,P){if(l===void 0)return b(u);if(d)return clearTimeout(l),l=setTimeout(k,e),g(u)}return l===void 0&&(l=setTimeout(k,e)),i}return M.cancel=C,M.flush=O,M}var LJ="Expected a function";function zJ(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError(LJ);return zn(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),jN(t,e,{leading:n,maxWait:e,trailing:o})}var FJ=function(e,r,n){var o=n.getBoundingClientRect(),a=o.width,i=o.height,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,u=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=l-(n.getBoundingClientRect().left+window.pageXOffset),h=u-(n.getBoundingClientRect().top+window.pageYOffset);f<0?f=0:f>a&&(f=a),h<0?h=0:h>i&&(h=i);var d=f/a,_=1-h/i;return{h:r.h,s:d,v:_,a:r.a,source:"hsv"}},BJ=function(){function t(e,r){for(var n=0;n-1}function cX(t,e){var r=this.__data__,n=Vf(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function ia(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=mG}function Rc(t){return t!=null&&dw(t.length)&&!cw(t)}function _G(t){return Ua(t)&&Rc(t)}function gG(){return!1}var MN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,u2=MN&&typeof module=="object"&&module&&!module.nodeType&&module,yG=u2&&u2.exports===MN,d2=yG?ro.Buffer:void 0,vG=d2?d2.isBuffer:void 0,Zp=vG||gG,bG="[object Object]",wG=Function.prototype,xG=Object.prototype,NN=wG.toString,SG=xG.hasOwnProperty,kG=NN.call(Object);function CG(t){if(!Ua(t)||Xs(t)!=bG)return!1;var e=ON(t);if(e===null)return!0;var r=SG.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&NN.call(r)==kG}var $G="[object Arguments]",EG="[object Array]",TG="[object Boolean]",OG="[object Date]",DG="[object Error]",MG="[object Function]",NG="[object Map]",PG="[object Number]",RG="[object Object]",AG="[object RegExp]",IG="[object Set]",jG="[object String]",LG="[object WeakMap]",FG="[object ArrayBuffer]",zG="[object DataView]",BG="[object Float32Array]",WG="[object Float64Array]",UG="[object Int8Array]",HG="[object Int16Array]",qG="[object Int32Array]",VG="[object Uint8Array]",XG="[object Uint8ClampedArray]",GG="[object Uint16Array]",JG="[object Uint32Array]",Ut={};Ut[BG]=Ut[WG]=Ut[UG]=Ut[HG]=Ut[qG]=Ut[VG]=Ut[XG]=Ut[GG]=Ut[JG]=!0;Ut[$G]=Ut[EG]=Ut[FG]=Ut[TG]=Ut[zG]=Ut[OG]=Ut[DG]=Ut[MG]=Ut[NG]=Ut[PG]=Ut[RG]=Ut[AG]=Ut[IG]=Ut[jG]=Ut[LG]=!1;function YG(t){return Ua(t)&&dw(t.length)&&!!Ut[Xs(t)]}function KG(t){return function(e){return t(e)}}var PN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Yl=PN&&typeof module=="object"&&module&&!module.nodeType&&module,ZG=Yl&&Yl.exports===PN,dv=ZG&&kN.process,p2=function(){try{var t=Yl&&Yl.require&&Yl.require("util").types;return t||dv&&dv.binding&&dv.binding("util")}catch{}}(),f2=p2&&p2.isTypedArray,pw=f2?KG(f2):YG;function C0(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var QG=Object.prototype,eJ=QG.hasOwnProperty;function tJ(t,e,r){var n=t[e];(!(eJ.call(t,e)&&Ou(n,r))||r===void 0&&!(e in t))&&lw(t,e,r)}function rJ(t,e,r,n){var o=!r;r||(r={});for(var a=-1,i=e.length;++a-1&&t%1==0&&t0){if(++e>=yJ)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var xJ=wJ(gJ);function SJ(t,e){return xJ(mJ(t,e,Gf),t+"")}function kJ(t,e,r){if(!Fn(r))return!1;var n=typeof e;return(n=="number"?Rc(r)&&fw(e,r.length):n=="string"&&e in r)?Ou(r[e],t):!1}function CJ(t){return SJ(function(e,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(o--,a):void 0,i&&kJ(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),e=Object(e);++n=e||P<0||d&&j>=a}function k(){var T=pv();if(S(T))return D(T);l=setTimeout(k,w(T))}function D(T){return l=void 0,_&&n?g(T):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),f=0,n=u=o=l=void 0}function O(){return l===void 0?i:D(pv())}function M(){var T=pv(),P=S(T);if(n=arguments,o=this,u=T,P){if(l===void 0)return b(u);if(d)return clearTimeout(l),l=setTimeout(k,e),g(u)}return l===void 0&&(l=setTimeout(k,e)),i}return M.cancel=C,M.flush=O,M}var LJ="Expected a function";function FJ(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError(LJ);return Fn(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),jN(t,e,{leading:n,maxWait:e,trailing:o})}var zJ=function(e,r,n){var o=n.getBoundingClientRect(),a=o.width,i=o.height,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,u=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=l-(n.getBoundingClientRect().left+window.pageXOffset),h=u-(n.getBoundingClientRect().top+window.pageYOffset);f<0?f=0:f>a&&(f=a),h<0?h=0:h>i&&(h=i);var d=f/a,_=1-h/i;return{h:r.h,s:d,v:_,a:r.a,source:"hsv"}},BJ=function(){function t(e,r){for(var n=0;n=0,a=!r&&o&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?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 He(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(uY,arguments)},brighten:function(){return this._applyModification(dY,arguments)},darken:function(){return this._applyModification(pY,arguments)},desaturate:function(){return this._applyModification(iY,arguments)},saturate:function(){return this._applyModification(cY,arguments)},greyscale:function(){return this._applyModification(lY,arguments)},spin:function(){return this._applyModification(fY,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(_Y,arguments)},complement:function(){return this._applyCombination(hY,arguments)},monochromatic:function(){return this._applyCombination(gY,arguments)},splitcomplement:function(){return this._applyCombination(mY,arguments)},triad:function(){return this._applyCombination(w2,[3])},tetrad:function(){return this._applyCombination(w2,[4])}};He.fromRatio=function(t,e){if(Qp(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=Wl(t[n]));t=r}return He(t,e)};function rY(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,a=null,i=!1,l=!1;return typeof t=="string"&&(t=xY(t)),Qp(t)=="object"&&(Uo(t.r)&&Uo(t.g)&&Uo(t.b)?(e=nY(t.r,t.g,t.b),i=!0,l=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Uo(t.h)&&Uo(t.s)&&Uo(t.v)?(n=Wl(t.s),o=Wl(t.v),e=aY(t.h,n,o),i=!0,l="hsv"):Uo(t.h)&&Uo(t.s)&&Uo(t.l)&&(n=Wl(t.s),a=Wl(t.l),e=oY(t.h,n,a),i=!0,l="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=zN(r),{ok:i,format:t.format||l,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function nY(t,e,r){return{r:Xt(t,255)*255,g:Xt(e,255)*255,b:Xt(r,255)*255}}function g2(t,e,r){t=Xt(t,255),e=Xt(e,255),r=Xt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,l=(n+o)/2;if(n==o)a=i=0;else{var u=n-o;switch(i=l>.5?u/(2-n-o):u/(n+o),n){case t:a=(e-r)/u+(e1&&(d-=1),d<1/6?f+(h-f)*6*d:d<1/2?h:d<2/3?f+(h-f)*(2/3-d)*6:f}if(e===0)n=o=a=r;else{var l=r<.5?r*(1+e):r+e-r*e,u=2*r-l;n=i(u,l,t+1/3),o=i(u,l,t),a=i(u,l,t-1/3)}return{r:n*255,g:o*255,b:a*255}}function y2(t,e,r){t=Xt(t,255),e=Xt(e,255),r=Xt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,l=n,u=n-o;if(i=n===0?0:u/n,n==o)a=0;else{switch(n){case t:a=(e-r)/u+(e>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(He(n));return a}function gY(t,e){e=e||6;for(var r=He(t).toHsv(),n=r.h,o=r.s,a=r.v,i=[],l=1/e;e--;)i.push(He({h:n,s:o,v:a})),a=(a+l)%1;return i}He.mix=function(t,e,r){r=r===0?0:r||50;var n=He(t).toRgb(),o=He(e).toRgb(),a=r/100,i={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return He(i)};He.readability=function(t,e){var r=He(t),n=He(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};He.isReadable=function(t,e,r){var n=He.readability(t,e),o,a;switch(a=!1,o=SY(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};He.mostReadable=function(t,e,r){var n=null,o=0,a,i,l,u;r=r||{},i=r.includeFallbackColors,l=r.level,u=r.size;for(var f=0;fo&&(o=a,n=He(e[f]));return He.isReadable(t,n,{level:l,size:u})||!i?n:(r.includeFallbackColors=!1,He.mostReadable(t,["#fff","#000"],r))};var $0=He.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"},yY=He.hexNames=vY($0);function vY(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function zN(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Xt(t,e){bY(t)&&(t="100%");var r=wY(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Kf(t){return Math.min(1,Math.max(0,t))}function hn(t){return parseInt(t,16)}function bY(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function wY(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Yn(t){return t.length==1?"0"+t:""+t}function Wl(t){return t<=1&&(t=t*100+"%"),t}function FN(t){return Math.round(parseFloat(t)*255).toString(16)}function x2(t){return hn(t)/255}var Jn=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),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 Uo(t){return!!Jn.CSS_UNIT.exec(t)}function xY(t){t=t.replace(eY,"").replace(tY,"").toLowerCase();var e=!1;if($0[t])t=$0[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Jn.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=Jn.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Jn.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=Jn.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Jn.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=Jn.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Jn.hex8.exec(t))?{r:hn(r[1]),g:hn(r[2]),b:hn(r[3]),a:x2(r[4]),format:e?"name":"hex8"}:(r=Jn.hex6.exec(t))?{r:hn(r[1]),g:hn(r[2]),b:hn(r[3]),format:e?"name":"hex"}:(r=Jn.hex4.exec(t))?{r:hn(r[1]+""+r[1]),g:hn(r[2]+""+r[2]),b:hn(r[3]+""+r[3]),a:x2(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=Jn.hex3.exec(t))?{r:hn(r[1]+""+r[1]),g:hn(r[2]+""+r[2]),b:hn(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function SY(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var S2=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,o=0;return QJ(r,function(a){if(e[a]&&(n+=1,isNaN(e[a])||(o+=1),a==="s"||a==="l")){var i=/^\d+%$/;i.test(e[a])&&(o+=1)}}),n===o?e:!1},Ul=function(e,r){var n=e.hex?He(e.hex):He(e),o=n.toHsl(),a=n.toHsv(),i=n.toRgb(),l=n.toHex();o.s===0&&(o.h=r||0,a.h=r||0);var u=l==="000000"&&i.a===0;return{hsl:o,hex:u?"transparent":"#"+l,rgb:i,hsv:a,oldHue:e.h||r||o.h,source:e.source}},Ja=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&&He(e).isValid()},mw=function(e){if(!e)return"#fff";var r=Ul(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},fv=function(e,r){var n=e.replace("°","");return He(r+" ("+n+")")._ok},El=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){MY(o,n);function o(){var a,i,l,u;DY(this,o);for(var f=arguments.length,h=Array(f),d=0;dl))return!1;var f=a.get(t),h=a.get(e);if(f&&h)return f==e&&h==t;var d=-1,_=!0,g=r&UY?new ef:void 0;for(a.set(t,e),a.set(e,t);++d=0||Object.prototype.hasOwnProperty.call(i,f)&&(u[f]=i[f]);return u}var a=24;return dp.default=function(i){var l=i.fill,u=l===void 0?"currentColor":l,f=i.width,h=f===void 0?a:f,d=i.height,_=d===void 0?a:d,g=i.style,b=g===void 0?{}:g,w=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:u,width:h,height:_},b)},w),r.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"}))},dp}var nZ=rZ();const oZ=Ha(nZ);var aZ=function(){function t(e,r){for(var n=0;n1&&(o.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(o.a*100)/100,source:"rgb"},a)):(o.h||o.s||o.l)&&(typeof o.s=="string"&&o.s.includes("%")&&(o.s=o.s.replace("%","")),typeof o.l=="string"&&o.l.includes("%")&&(o.l=o.l.replace("%","")),o.s==1?o.s=.01:o.l==1&&(o.l=.01),n.props.onChange({h:o.h||n.props.hsl.h,s:Number(z2(o.s)?n.props.hsl.s:o.s),l:Number(z2(o.l)?n.props.hsl.l:o.l),source:"hsl"},a))},n.showHighlight=function(o){o.currentTarget.style.background="#eee"},n.hideHighlight=function(o){o.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return aZ(e,[{key:"render",value:function(){var n=this,o=ct({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),a=void 0;return this.state.view==="hex"?a=y.createElement("div",{style:o.fields,className:"flexbox-fix"},y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=y.createElement("div",{style:o.fields,className:"flexbox-fix"},y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),y.createElement("div",{style:o.alpha},y.createElement(bt,{style:{input:o.input,label:o.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=y.createElement("div",{style:o.fields,className:"flexbox-fix"},y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),y.createElement("div",{style:o.alpha},y.createElement(bt,{style:{input:o.input,label:o.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),y.createElement("div",{style:o.wrap,className:"flexbox-fix"},a,y.createElement("div",{style:o.toggle},y.createElement("div",{style:o.icon,onClick:this.toggleViews,ref:function(l){return n.icon=l}},y.createElement(oZ,{style:o.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.hsl.a!==1&&o.view==="hex"?{view:"rgb"}:null}}]),e}(y.Component);YN.defaultProps={view:"hex"};var B2=function(){var e=ct({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 y.createElement("div",{style:e.picker})},lZ=function(){var e=ct({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return y.createElement("div",{style:e.picker})},ww=function(e){var r=e.width,n=e.onChange,o=e.disableAlpha,a=e.rgb,i=e.hsl,l=e.hsv,u=e.hex,f=e.renderers,h=e.styles,d=h===void 0?{}:h,_=e.className,g=_===void 0?"":_,b=e.defaultView,w=ct(cn({default:{picker:{width:r,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("+a.r+", "+a.g+", "+a.b+", "+a.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"}}},d),{disableAlpha:o});return y.createElement("div",{style:w.picker,className:"chrome-picker "+g},y.createElement("div",{style:w.saturation},y.createElement(Yf,{style:w.Saturation,hsl:i,hsv:l,pointer:lZ,onChange:n})),y.createElement("div",{style:w.body},y.createElement("div",{style:w.controls,className:"flexbox-fix"},y.createElement("div",{style:w.color},y.createElement("div",{style:w.swatch},y.createElement("div",{style:w.active}),y.createElement(Nc,{renderers:f}))),y.createElement("div",{style:w.toggles},y.createElement("div",{style:w.hue},y.createElement(Pc,{style:w.Hue,hsl:i,pointer:B2,onChange:n})),y.createElement("div",{style:w.alpha},y.createElement(iw,{style:w.Alpha,rgb:a,hsl:i,pointer:B2,renderers:f,onChange:n})))),y.createElement(YN,{rgb:a,hsl:i,hex:u,view:b,onChange:n,disableAlpha:o})))};ww.propTypes={width:se.oneOfType([se.string,se.number]),disableAlpha:se.bool,styles:se.object,defaultView:se.oneOf(["hex","rgb","hsl"])};ww.defaultProps={width:225,disableAlpha:!1,styles:{}};ln(ww);var uZ=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.active,l=ct({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:mw(r),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:i,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return y.createElement(Ys,{style:l.color,color:r,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},y.createElement("div",{style:l.dot}))},dZ=function(e){var r=e.hex,n=e.rgb,o=e.onChange,a=ct({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},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"}}}),i=function(u,f){u.r||u.g||u.b?o({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},f):o({hex:u.hex,source:"hex"},f)};return y.createElement("div",{style:a.fields,className:"flexbox-fix"},y.createElement("div",{style:a.active}),y.createElement(bt,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:r,onChange:i}),y.createElement(bt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:i}),y.createElement(bt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:i}),y.createElement(bt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:i}))},xw=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.colors,a=e.hex,i=e.rgb,l=e.styles,u=l===void 0?{}:l,f=e.className,h=f===void 0?"":f,d=ct(cn({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),_=function(b,w){b.hex?Ja(b.hex)&&r({hex:b.hex,source:"hex"},w):r(b,w)};return y.createElement(Du,{style:d.Compact,styles:u},y.createElement("div",{style:d.compact,className:"compact-picker "+h},y.createElement("div",null,Ks(o,function(g){return y.createElement(uZ,{key:g,color:g,active:g.toLowerCase()===a,onClick:_,onSwatchHover:n})}),y.createElement("div",{style:d.clear})),y.createElement(dZ,{hex:a,rgb:i,onChange:_})))};xw.propTypes={colors:se.arrayOf(se.string),styles:se.object};xw.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"],styles:{}};ln(xw);var pZ=function(e){var r=e.hover,n=e.color,o=e.onClick,a=e.onSwatchHover,i={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=ct({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:i}},{hover:r});return y.createElement("div",{style:l.swatch},y.createElement(Ys,{color:n,onClick:o,onHover:a,focusStyle:i}))};const fZ=sw.handleHover(pZ);var Sw=function(e){var r=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,i=e.triangle,l=e.styles,u=l===void 0?{}:l,f=e.className,h=f===void 0?"":f,d=ct(cn({default:{card:{width:r,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)"}}},u),{"hide-triangle":i==="hide","top-left-triangle":i==="top-left","top-right-triangle":i==="top-right","bottom-left-triangle":i==="bottom-left","bottom-right-triangle":i==="bottom-right"}),_=function(b,w){return o({hex:b,source:"hex"},w)};return y.createElement("div",{style:d.card,className:"github-picker "+h},y.createElement("div",{style:d.triangleShadow}),y.createElement("div",{style:d.triangle}),Ks(n,function(g){return y.createElement(fZ,{color:g,key:g,onClick:_,onSwatchHover:a})}))};Sw.propTypes={width:se.oneOfType([se.string,se.number]),colors:se.arrayOf(se.string),triangle:se.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:se.object};Sw.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};ln(Sw);var hZ=function(e){var r=e.direction,n=ct({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:r==="vertical"});return y.createElement("div",{style:n.picker})},mZ=Object.assign||function(t){for(var e=1;e.5});return y.createElement("div",{style:n.picker})},vZ=function(){var e=ct({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 y.createElement("div",{style:e.pointer},y.createElement("div",{style:e.left},y.createElement("div",{style:e.leftInside})),y.createElement("div",{style:e.right},y.createElement("div",{style:e.rightInside})))},W2=function(e){var r=e.onClick,n=e.label,o=e.children,a=e.active,i=ct({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:a});return y.createElement("div",{style:i.button,onClick:r},n||o)},bZ=function(e){var r=e.rgb,n=e.currentColor,o=ct({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.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 y.createElement("div",null,y.createElement("div",{style:o.label},"new"),y.createElement("div",{style:o.swatches},y.createElement("div",{style:o.new}),y.createElement("div",{style:o.current})),y.createElement("div",{style:o.label},"current"))},wZ=function(){function t(e,r){for(var n=0;n100&&(h.a=100),h.a/=100,r({h:o.h,s:o.s,l:o.l,a:h.a,source:"rgb"},d))};return y.createElement("div",{style:l.fields,className:"flexbox-fix"},y.createElement("div",{style:l.double},y.createElement(bt,{style:{input:l.input,label:l.label},label:"hex",value:a.replace("#",""),onChange:u})),y.createElement("div",{style:l.single},y.createElement(bt,{style:{input:l.input,label:l.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),y.createElement("div",{style:l.single},y.createElement(bt,{style:{input:l.input,label:l.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),y.createElement("div",{style:l.single},y.createElement(bt,{style:{input:l.input,label:l.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),y.createElement("div",{style:l.alpha},y.createElement(bt,{style:{input:l.input,label:l.label},label:"a",value:Math.round(n.a*100),onChange:u,dragLabel:"true",dragMax:"100"})))},$Z=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(i,f)&&(u[f]=i[f]);return u}var a=24;return pp.default=function(i){var l=i.fill,u=l===void 0?"currentColor":l,f=i.width,h=f===void 0?a:f,d=i.height,_=d===void 0?a:d,g=i.style,b=g===void 0?{}:g,w=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:u,width:h,height:_},b)},w),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},pp}var MZ=DZ();const NZ=Ha(MZ);var PZ=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.first,l=e.last,u=e.active,f=ct({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:mw(r),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:i,last:l,active:u,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return y.createElement(Ys,{color:r,style:f.color,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},y.createElement("div",{style:f.check},y.createElement(NZ,null)))},RZ=function(e){var r=e.onClick,n=e.onSwatchHover,o=e.group,a=e.active,i=ct({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return y.createElement("div",{style:i.group},Ks(o,function(l,u){return y.createElement(PZ,{key:l,color:l,active:l.toLowerCase()===a,first:u===0,last:u===o.length-1,onClick:r,onSwatchHover:n})}))},Tw=function(e){var r=e.width,n=e.height,o=e.onChange,a=e.onSwatchHover,i=e.colors,l=e.hex,u=e.styles,f=u===void 0?{}:u,h=e.className,d=h===void 0?"":h,_=ct(cn({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},f)),g=function(w,S){return o({hex:w,source:"hex"},S)};return y.createElement("div",{style:_.picker,className:"swatches-picker "+d},y.createElement(Du,null,y.createElement("div",{style:_.overflow},y.createElement("div",{style:_.body},Ks(i,function(b){return y.createElement(RZ,{key:b.toString(),group:b,active:l,onClick:g,onSwatchHover:a})}),y.createElement("div",{style:_.clear})))))};Tw.propTypes={width:se.oneOfType([se.string,se.number]),height:se.oneOfType([se.string,se.number]),colors:se.arrayOf(se.arrayOf(se.string)),styles:se.object};Tw.defaultProps={width:320,height:240,colors:[[Bi[900],Bi[700],Bi[500],Bi[300],Bi[100]],[Wi[900],Wi[700],Wi[500],Wi[300],Wi[100]],[Ui[900],Ui[700],Ui[500],Ui[300],Ui[100]],[Hi[900],Hi[700],Hi[500],Hi[300],Hi[100]],[qi[900],qi[700],qi[500],qi[300],qi[100]],[Vi[900],Vi[700],Vi[500],Vi[300],Vi[100]],[Xi[900],Xi[700],Xi[500],Xi[300],Xi[100]],[Gi[900],Gi[700],Gi[500],Gi[300],Gi[100]],[Ji[900],Ji[700],Ji[500],Ji[300],Ji[100]],["#194D33",Hl[700],Hl[500],Hl[300],Hl[100]],[Yi[900],Yi[700],Yi[500],Yi[300],Yi[100]],[Ki[900],Ki[700],Ki[500],Ki[300],Ki[100]],[Zi[900],Zi[700],Zi[500],Zi[300],Zi[100]],[Qi[900],Qi[700],Qi[500],Qi[300],Qi[100]],[ec[900],ec[700],ec[500],ec[300],ec[100]],[tc[900],tc[700],tc[500],tc[300],tc[100]],[rc[900],rc[700],rc[500],rc[300],rc[100]],[nc[900],nc[700],nc[500],nc[300],nc[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};ln(Tw);var Ow=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,i=e.width,l=e.triangle,u=e.styles,f=u===void 0?{}:u,h=e.className,d=h===void 0?"":h,_=ct(cn({default:{card:{width:i,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"}}},f),{"hide-triangle":l==="hide","top-left-triangle":l==="top-left","top-right-triangle":l==="top-right"}),g=function(w,S){Ja(w)&&r({hex:w,source:"hex"},S)};return y.createElement("div",{style:_.card,className:"twitter-picker "+d},y.createElement("div",{style:_.triangleShadow}),y.createElement("div",{style:_.triangle}),y.createElement("div",{style:_.body},Ks(a,function(b,w){return y.createElement(Ys,{key:w,color:b,hex:b,style:_.swatch,onClick:g,onHover:n,focusStyle:{boxShadow:"0 0 4px "+b}})}),y.createElement("div",{style:_.hash},"#"),y.createElement(bt,{label:null,style:{input:_.input},value:o.replace("#",""),onChange:g}),y.createElement("div",{style:_.clear})))};Ow.propTypes={width:se.oneOfType([se.string,se.number]),triangle:se.oneOf(["hide","top-left","top-right"]),colors:se.arrayOf(se.string),styles:se.object};Ow.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};ln(Ow);var Dw=function(e){var r=ct({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 y.createElement("div",{style:r.picker})};Dw.propTypes={hsl:se.shape({h:se.number,s:se.number,l:se.number,a:se.number})};Dw.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Mw=function(e){var r=ct({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 y.createElement("div",{style:r.picker})};Mw.propTypes={hsl:se.shape({h:se.number,s:se.number,l:se.number,a:se.number})};Mw.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var AZ=function(e){var r=e.onChange,n=e.rgb,o=e.hsl,a=e.hex,i=e.hsv,l=function(g,b){if(g.hex)Ja(g.hex)&&r({hex:g.hex,source:"hex"},b);else if(g.rgb){var w=g.rgb.split(",");fv(g.rgb,"rgb")&&r({r:w[0],g:w[1],b:w[2],a:1,source:"rgb"},b)}else if(g.hsv){var S=g.hsv.split(",");fv(g.hsv,"hsv")&&(S[2]=S[2].replace("%",""),S[1]=S[1].replace("%",""),S[0]=S[0].replace("°",""),S[1]==1?S[1]=.01:S[2]==1&&(S[2]=.01),r({h:Number(S[0]),s:Number(S[1]),v:Number(S[2]),source:"hsv"},b))}else if(g.hsl){var k=g.hsl.split(",");fv(g.hsl,"hsl")&&(k[2]=k[2].replace("%",""),k[1]=k[1].replace("%",""),k[0]=k[0].replace("°",""),d[1]==1?d[1]=.01:d[2]==1&&(d[2]=.01),r({h:Number(k[0]),s:Number(k[1]),v:Number(k[2]),source:"hsl"},b))}},u=ct({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"}}}),f=n.r+", "+n.g+", "+n.b,h=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.l*100)+"%",d=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.v*100)+"%";return y.createElement("div",{style:u.wrap,className:"flexbox-fix"},y.createElement("div",{style:u.fields},y.createElement("div",{style:u.double},y.createElement(bt,{style:{input:u.input,label:u.label},label:"hex",value:a,onChange:l})),y.createElement("div",{style:u.column},y.createElement("div",{style:u.single},y.createElement(bt,{style:{input:u.input2,label:u.label2},label:"rgb",value:f,onChange:l})),y.createElement("div",{style:u.single},y.createElement(bt,{style:{input:u.input2,label:u.label2},label:"hsv",value:d,onChange:l})),y.createElement("div",{style:u.single},y.createElement(bt,{style:{input:u.input2,label:u.label2},label:"hsl",value:h,onChange:l})))))},Nw=function(e){var r=e.width,n=e.onChange,o=e.rgb,a=e.hsl,i=e.hsv,l=e.hex,u=e.header,f=e.styles,h=f===void 0?{}:f,d=e.className,_=d===void 0?"":d,g=ct(cn({default:{picker:{width:r,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("+o.r+", "+o.g+", "+o.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"}}},h));return y.createElement("div",{style:g.picker,className:"google-picker "+_},y.createElement("div",{style:g.head},u),y.createElement("div",{style:g.swatch}),y.createElement("div",{style:g.saturation},y.createElement(Yf,{hsl:a,hsv:i,pointer:Dw,onChange:n})),y.createElement("div",{style:g.body},y.createElement("div",{style:g.controls,className:"flexbox-fix"},y.createElement("div",{style:g.hue},y.createElement(Pc,{style:g.Hue,hsl:a,radius:"4px",pointer:Mw,onChange:n}))),y.createElement(AZ,{rgb:o,hsl:a,hex:l,hsv:i,onChange:n})))};Nw.propTypes={width:se.oneOfType([se.string,se.number]),styles:se.object,header:se.string};Nw.defaultProps={width:652,styles:{},header:"Color picker"};ln(Nw);var mv={exports:{}},H2;function Mo(){return H2||(H2=1,function(t,e){(function(n,o){t.exports=o()})(globalThis,()=>(()=>{var r={949:(i,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.CronParser=void 0;var f=u(515),h=function(){function d(_,g,b){g===void 0&&(g=!0),b===void 0&&(b=!1),this.expression=_,this.dayOfWeekStartIndexZero=g,this.monthStartIndexZero=b}return d.prototype.parse=function(){var _,g,b=(_=this.expression)!==null&&_!==void 0?_:"";if(b.startsWith("@")){var w=this.parseSpecial(this.expression);g=this.extractParts(w)}else g=this.extractParts(this.expression);return this.normalize(g),this.validate(g),g},d.prototype.parseSpecial=function(_){var g={"@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 * * * *"},b=g[_];if(!b)throw new Error("Unknown special expression.");return b},d.prototype.extractParts=function(_){if(!this.expression)throw new Error("cron expression is empty");for(var g=_.trim().split(/[ ]+/),b=0;b7)throw new Error("Expression has ".concat(g.length," parts; too many!"));return g},d.prototype.normalize=function(_){var g=this;if(_[3]=_[3].replace("?","*"),_[5]=_[5].replace("?","*"),_[2]=_[2].replace("?","*"),_[0].indexOf("0/")==0&&(_[0]=_[0].replace("0/","*/")),_[1].indexOf("0/")==0&&(_[1]=_[1].replace("0/","*/")),_[2].indexOf("0/")==0&&(_[2]=_[2].replace("0/","*/")),_[3].indexOf("1/")==0&&(_[3]=_[3].replace("1/","*/")),_[4].indexOf("1/")==0&&(_[4]=_[4].replace("1/","*/")),_[6].indexOf("1/")==0&&(_[6]=_[6].replace("1/","*/")),_[5]=_[5].replace(/(^\d)|([^#/\s]\d)/g,function(M){var T=M.replace(/\D/,""),P=T;return g.dayOfWeekStartIndexZero?T=="7"&&(P="0"):P=(parseInt(T)-1).toString(),M.replace(T,P)}),_[5]=="L"&&(_[5]="6"),_[3]=="?"&&(_[3]="*"),_[3].indexOf("W")>-1&&(_[3].indexOf(",")>-1||_[3].indexOf("-")>-1))throw new 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 b={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var w in b)_[5]=_[5].replace(new RegExp(w,"gi"),b[w].toString());_[4]=_[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(M){var T=M.replace(/\D/,""),P=T;return g.monthStartIndexZero&&(P=(parseInt(T)+1).toString()),M.replace(T,P)});var S={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 k in S)_[4]=_[4].replace(new RegExp(k,"gi"),S[k].toString());_[0]=="0"&&(_[0]=""),!/\*|\-|\,|\//.test(_[2])&&(/\*|\//.test(_[1])||/\*|\//.test(_[0]))&&(_[2]+="-".concat(_[2]));for(var D=0;D<_.length;D++)if(_[D].indexOf(",")!=-1&&(_[D]=_[D].split(",").filter(function(M){return M!==""}).join(",")||"*"),_[D]=="*/1"&&(_[D]="*"),_[D].indexOf("/")>-1&&!/^\*|\-|\,/.test(_[D])){var C=null;switch(D){case 4:C="12";break;case 5:C="6";break;case 6:C="9999";break;default:C=null;break}if(C!==null){var O=_[D].split("/");_[D]="".concat(O[0],"-").concat(C,"/").concat(O[1])}}},d.prototype.validate=function(_){this.assertNoInvalidCharacters("DOW",_[5]),this.assertNoInvalidCharacters("DOM",_[3]),this.validateRange(_)},d.prototype.validateRange=function(_){f.default.secondRange(_[0]),f.default.minuteRange(_[1]),f.default.hourRange(_[2]),f.default.dayOfMonthRange(_[3]),f.default.monthRange(_[4],this.monthStartIndexZero),f.default.dayOfWeekRange(_[5],this.dayOfWeekStartIndexZero)},d.prototype.assertNoInvalidCharacters=function(_,g){var b=g.match(/[A-KM-VX-Z]+/gi);if(b&&b.length)throw new Error("".concat(_," part contains invalid values: '").concat(b.toString(),"'"))},d}();l.CronParser=h},333:(i,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ExpressionDescriptor=void 0;var f=u(823),h=u(949),d=function(){function _(g,b){if(this.expression=g,this.options=b,this.expressionParts=new Array(5),!this.options.locale&&_.defaultLocale&&(this.options.locale=_.defaultLocale),!_.locales[this.options.locale]){var w=Object.keys(_.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(w,"'.")),this.options.locale=w}this.i18n=_.locales[this.options.locale],b.use24HourTimeFormat===void 0&&(b.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return _.toString=function(g,b){var w=b===void 0?{}:b,S=w.throwExceptionOnParseError,k=S===void 0?!0:S,D=w.verbose,C=D===void 0?!1:D,O=w.dayOfWeekStartIndexZero,M=O===void 0?!0:O,T=w.monthStartIndexZero,P=T===void 0?!1:T,j=w.use24HourTimeFormat,z=w.locale,E=z===void 0?null:z,L=w.tzOffset,G=L===void 0?0:L,B={throwExceptionOnParseError:k,verbose:C,dayOfWeekStartIndexZero:M,monthStartIndexZero:P,use24HourTimeFormat:j,locale:E,tzOffset:G},F=new _(g,B);return F.getFullDescription()},_.initialize=function(g,b){b===void 0&&(b="en"),_.specialCharacters=["/","-",",","*"],_.defaultLocale=b,g.load(_.locales)},_.prototype.getFullDescription=function(){var g="";try{var b=new h.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=b.parse();var w=this.getTimeOfDayDescription(),S=this.getDayOfMonthDescription(),k=this.getMonthDescription(),D=this.getDayOfWeekDescription(),C=this.getYearDescription();g+=w+S+D+k+C,g=this.transformVerbosity(g,!!this.options.verbose),g=g.charAt(0).toLocaleUpperCase()+g.substr(1)}catch(O){if(!this.options.throwExceptionOnParseError)g=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(O)}return g},_.prototype.getTimeOfDayDescription=function(){var g=this.expressionParts[0],b=this.expressionParts[1],w=this.expressionParts[2],S="";if(!f.StringUtilities.containsAny(b,_.specialCharacters)&&!f.StringUtilities.containsAny(w,_.specialCharacters)&&!f.StringUtilities.containsAny(g,_.specialCharacters))S+=this.i18n.atSpace()+this.formatTime(w,b,g);else if(!g&&b.indexOf("-")>-1&&!(b.indexOf(",")>-1)&&!(b.indexOf("/")>-1)&&!f.StringUtilities.containsAny(w,_.specialCharacters)){var k=b.split("-");S+=f.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(w,k[0],""),this.formatTime(w,k[1],""))}else if(!g&&w.indexOf(",")>-1&&w.indexOf("-")==-1&&w.indexOf("/")==-1&&!f.StringUtilities.containsAny(b,_.specialCharacters)){var D=w.split(",");S+=this.i18n.at();for(var C=0;C1){var k=S[S.length-1].index;w=w.substring(0,k)+":59"+w.substring(k+3)}}return w},_.prototype.getDayOfWeekDescription=function(){var g=this,b=this.i18n.daysOfTheWeek(),w=null;return this.expressionParts[5]=="*"?w="":w=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(S,k){var D=S;S.indexOf("#")>-1?D=S.substring(0,S.indexOf("#")):S.indexOf("L")>-1&&(D=D.replace("L",""));var C=parseInt(D);if(g.options.tzOffset){var O=g.expressionParts[2],M=parseInt(O)+(g.options.tzOffset?g.options.tzOffset:0);M>=24?C++:M<0&&C--,C>6?C=0:C<0&&(C=6)}var T=g.i18n.daysOfTheWeekInCase?g.i18n.daysOfTheWeekInCase(k)[C]:b[C];if(S.indexOf("#")>-1){var P=null,j=S.substring(S.indexOf("#")+1),z=S.substring(0,S.indexOf("#"));switch(j){case"1":P=g.i18n.first(z);break;case"2":P=g.i18n.second(z);break;case"3":P=g.i18n.third(z);break;case"4":P=g.i18n.fourth(z);break;case"5":P=g.i18n.fifth(z);break}T=P+" "+T}return T},function(S){return parseInt(S)==1?"":f.StringUtilities.format(g.i18n.commaEveryX0DaysOfTheWeek(S),S)},function(S){var k=S.substring(0,S.indexOf("-")),D=g.expressionParts[3]!="*";return D?g.i18n.commaAndX0ThroughX1(k):g.i18n.commaX0ThroughX1(k)},function(S){var k=null;if(S.indexOf("#")>-1){var D=S.substring(S.indexOf("#")+1),C=S.substring(0,S.indexOf("#"));k=g.i18n.commaOnThe(D,C).trim()+g.i18n.spaceX0OfTheMonth()}else if(S.indexOf("L")>-1)k=g.i18n.commaOnTheLastX0OfTheMonth(S.replace("L",""));else{var O=g.expressionParts[3]!="*";k=O?g.i18n.commaAndOnX0():g.i18n.commaOnlyOnX0(S)}return k}),w},_.prototype.getMonthDescription=function(){var g=this,b=this.i18n.monthsOfTheYear(),w=this.getSegmentDescription(this.expressionParts[4],"",function(S,k){return k&&g.i18n.monthsOfTheYearInCase?g.i18n.monthsOfTheYearInCase(k)[parseInt(S)-1]:b[parseInt(S)-1]},function(S){return parseInt(S)==1?"":f.StringUtilities.format(g.i18n.commaEveryX0Months(S),S)},function(S){return g.i18n.commaMonthX0ThroughMonthX1()||g.i18n.commaX0ThroughX1()},function(S){return g.i18n.commaOnlyInMonthX0?g.i18n.commaOnlyInMonthX0():g.i18n.commaOnlyInX0()});return w},_.prototype.getDayOfMonthDescription=function(){var g=this,b=null,w=this.expressionParts[3];switch(w){case"L":b=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":b=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var S=w.match(/(\d{1,2}W)|(W\d{1,2})/);if(S){var k=parseInt(S[0].replace("W","")),D=k==1?this.i18n.firstWeekday():f.StringUtilities.format(this.i18n.weekdayNearestDayX0(),k.toString());b=f.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),D);break}else{var C=w.match(/L-(\d{1,2})/);if(C){var O=C[1];b=f.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(O),O);break}else{if(w=="*"&&this.expressionParts[5]!="*")return"";b=this.getSegmentDescription(w,this.i18n.commaEveryDay(),function(M){return M=="L"?g.i18n.lastDay():g.i18n.dayX0?f.StringUtilities.format(g.i18n.dayX0(),M):M},function(M){return M=="1"?g.i18n.commaEveryDay():g.i18n.commaEveryX0Days(M)},function(M){return g.i18n.commaBetweenDayX0AndX1OfTheMonth(M)},function(M){return g.i18n.commaOnDayX0OfTheMonth(M)})}break}}return b},_.prototype.getYearDescription=function(){var g=this,b=this.getSegmentDescription(this.expressionParts[6],"",function(w){return/^\d+$/.test(w)?new Date(parseInt(w),1).getFullYear().toString():w},function(w){return f.StringUtilities.format(g.i18n.commaEveryX0Years(w),w)},function(w){return g.i18n.commaYearX0ThroughYearX1()||g.i18n.commaX0ThroughX1()},function(w){return g.i18n.commaOnlyInYearX0?g.i18n.commaOnlyInYearX0():g.i18n.commaOnlyInX0()});return b},_.prototype.getSegmentDescription=function(g,b,w,S,k,D){var C=null,O=g.indexOf("/")>-1,M=g.indexOf("-")>-1,T=g.indexOf(",")>-1;if(!g)C="";else if(g==="*")C=b;else if(!O&&!M&&!T)C=f.StringUtilities.format(D(g),w(g));else if(T){for(var P=g.split(","),j="",z=0;z0&&P.length>2&&(j+=",",z0&&P.length>1&&(z==P.length-1||P.length==2)&&(j+="".concat(this.i18n.spaceAnd()," ")),P[z].indexOf("/")>-1||P[z].indexOf("-")>-1){var E=P[z].indexOf("-")>-1&&P[z].indexOf("/")==-1,L=this.getSegmentDescription(P[z],b,w,S,E?this.i18n.commaX0ThroughX1:k,D);E&&(L=L.replace(", ","")),j+=L}else O?j+=this.getSegmentDescription(P[z],b,w,S,k,D):j+=w(P[z]);O?C=j:C=f.StringUtilities.format(D(g),j)}else if(O){var P=g.split("/");if(C=f.StringUtilities.format(S(P[1]),P[1]),P[0].indexOf("-")>-1){var G=this.generateRangeSegmentDescription(P[0],k,w);G.indexOf(", ")!=0&&(C+=", "),C+=G}else if(P[0].indexOf("*")==-1){var B=f.StringUtilities.format(D(P[0]),w(P[0]));B=B.replace(", ",""),C+=f.StringUtilities.format(this.i18n.commaStartingX0(),B)}}else M&&(C=this.generateRangeSegmentDescription(g,k,w));return C},_.prototype.generateRangeSegmentDescription=function(g,b,w){var S="",k=g.split("-"),D=w(k[0],1),C=w(k[1],2),O=b(g);return S+=f.StringUtilities.format(O,D,C),S},_.prototype.formatTime=function(g,b,w){var S=0,k=0;this.options.tzOffset&&(S=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),k=parseFloat((this.options.tzOffset%1).toFixed(2)),k!=0&&(k*=60));var D=parseInt(g)+S,C=parseInt(b)+k;C>=60?(C-=60,D+=1):C<0&&(C+=60,D-=1),D>=24?D=D-24:D<0&&(D=24+D);var O="",M=!1;this.options.use24HourTimeFormat||(M=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),O=M?"".concat(this.getPeriod(D)," "):" ".concat(this.getPeriod(D)),D>12&&(D-=12),D===0&&(D=12));var T="";return w&&(T=":".concat(("00"+w).substring(w.length))),"".concat(M?O:"").concat(("00"+D.toString()).substring(D.toString().length),":").concat(("00"+C.toString()).substring(C.toString().length)).concat(T).concat(M?"":O)},_.prototype.transformVerbosity=function(g,b){return b||(g=g.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),g=g.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),g=g.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),g=g.replace(/\, ?$/,"")),g},_.prototype.getPeriod=function(g){return g>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},_.locales={},_}();l.ExpressionDescriptor=d},747:(i,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.enLocaleLoader=void 0;var f=u(486),h=function(){function d(){}return d.prototype.load=function(_){_.en=new f.en},d}();l.enLocaleLoader=h},486:(i,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.en=void 0;var u=function(){function f(){}return f.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},f.prototype.atX0MinutesPastTheHourGt20=function(){return null},f.prototype.commaMonthX0ThroughMonthX1=function(){return null},f.prototype.commaYearX0ThroughYearX1=function(){return null},f.prototype.use24HourTimeFormatByDefault=function(){return!1},f.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},f.prototype.everyMinute=function(){return"every minute"},f.prototype.everyHour=function(){return"every hour"},f.prototype.atSpace=function(){return"At "},f.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},f.prototype.at=function(){return"At"},f.prototype.spaceAnd=function(){return" and"},f.prototype.everySecond=function(){return"every second"},f.prototype.everyX0Seconds=function(){return"every %s seconds"},f.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},f.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},f.prototype.everyX0Minutes=function(){return"every %s minutes"},f.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},f.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},f.prototype.everyX0Hours=function(){return"every %s hours"},f.prototype.betweenX0AndX1=function(){return"between %s and %s"},f.prototype.atX0=function(){return"at %s"},f.prototype.commaEveryDay=function(){return", every day"},f.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},f.prototype.commaX0ThroughX1=function(){return", %s through %s"},f.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},f.prototype.first=function(){return"first"},f.prototype.second=function(){return"second"},f.prototype.third=function(){return"third"},f.prototype.fourth=function(){return"fourth"},f.prototype.fifth=function(){return"fifth"},f.prototype.commaOnThe=function(){return", on the "},f.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},f.prototype.lastDay=function(){return"the last day"},f.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},f.prototype.commaOnlyOnX0=function(){return", only on %s"},f.prototype.commaAndOnX0=function(){return", and on %s"},f.prototype.commaEveryX0Months=function(){return", every %s months"},f.prototype.commaOnlyInX0=function(){return", only in %s"},f.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},f.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},f.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},f.prototype.firstWeekday=function(){return"first weekday"},f.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},f.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},f.prototype.commaEveryX0Days=function(){return", every %s days"},f.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},f.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},f.prototype.commaEveryHour=function(){return", every hour"},f.prototype.commaEveryX0Years=function(){return", every %s years"},f.prototype.commaStartingX0=function(){return", starting %s"},f.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},f.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},f}();l.en=u},515:(i,l)=>{Object.defineProperty(l,"__esModule",{value:!0});function u(h,d){if(!h)throw new Error(d)}var f=function(){function h(){}return h.secondRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=0&&b<=59,"seconds part must be >= 0 and <= 59")}},h.minuteRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=0&&b<=59,"minutes part must be >= 0 and <= 59")}},h.hourRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=0&&b<=23,"hours part must be >= 0 and <= 23")}},h.dayOfMonthRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=1&&b<=31,"DOM part must be >= 1 and <= 31")}},h.monthRange=function(d,_){for(var g=d.split(","),b=0;b=1&&w<=12,_?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},h.dayOfWeekRange=function(d,_){for(var g=d.split(","),b=0;b=0&&w<=6,_?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},h}();l.default=f},823:(i,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.StringUtilities=void 0;var u=function(){function f(){}return f.format=function(h){for(var d=[],_=1;_-1})},f}();l.StringUtilities=u}},n={};function o(i){var l=n[i];if(l!==void 0)return l.exports;var u=n[i]={exports:{}};return r[i](u,u.exports,o),u.exports}var a={};return(()=>{var i=a;Object.defineProperty(i,"__esModule",{value:!0}),i.toString=void 0;var l=o(333),u=o(747);l.ExpressionDescriptor.initialize(new u.enLocaleLoader),i.default=l.ExpressionDescriptor;var f=l.ExpressionDescriptor.toString;i.toString=f})(),a})())}(mv)),mv.exports}var IZ=Mo();const jZ=Ha(IZ);var _v={exports:{}},q2;function LZ(){return q2||(q2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.fr=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"toutes les minutes"},d.prototype.everyHour=function(){return"toutes les heures"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},d.prototype.atSpace=function(){return"À "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},d.prototype.at=function(){return"À"},d.prototype.spaceAnd=function(){return" et"},d.prototype.everySecond=function(){return"toutes les secondes"},d.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},d.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},d.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},d.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},d.prototype.everyX0Hours=function(){return"toutes les %s heures"},d.prototype.betweenX0AndX1=function(){return"de %s à %s"},d.prototype.atX0=function(){return"à %s"},d.prototype.commaEveryDay=function(){return", tous les jours"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},d.prototype.commaX0ThroughX1=function(){return", de %s à %s"},d.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},d.prototype.first=function(){return"premier"},d.prototype.second=function(){return"second"},d.prototype.third=function(){return"troisième"},d.prototype.fourth=function(){return"quatrième"},d.prototype.fifth=function(){return"cinquième"},d.prototype.commaOnThe=function(){return", le "},d.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},d.prototype.lastDay=function(){return"le dernier jour"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},d.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},d.prototype.commaAndOnX0=function(){return", et %s"},d.prototype.commaEveryX0Months=function(){return", tous les %s mois"},d.prototype.commaOnlyInX0=function(){return", uniquement en %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},d.prototype.firstWeekday=function(){return"premier jour ouvrable"},d.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},d.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},d.prototype.commaEveryX0Days=function(){return", tous les %s jours"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},d.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},d.prototype.commaEveryX0Years=function(){return", tous les %s ans"},d.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},d.prototype.commaStartingX0=function(){return", à partir de %s"},d.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},d.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},d}();return f.fr=h,u().locales.fr=new h,i})())}(_v)),_v.exports}LZ();var gv={exports:{}},V2;function zZ(){return V2||(V2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.es=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.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."},d.prototype.at=function(){return"A las"},d.prototype.atSpace=function(){return"A las "},d.prototype.atX0=function(){return"a las %s"},d.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},d.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},d.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},d.prototype.commaEveryDay=function(){return", cada día"},d.prototype.commaEveryX0Days=function(){return", cada %s días"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},d.prototype.commaEveryX0Months=function(){return", cada %s meses"},d.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},d.prototype.commaOnlyInX0=function(){return", sólo en %s"},d.prototype.commaOnlyOnX0=function(){return", sólo el %s"},d.prototype.commaAndOnX0=function(){return", y el %s"},d.prototype.commaOnThe=function(){return", en el "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},d.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},d.prototype.commaX0ThroughX1=function(){return", de %s a %s"},d.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},d.prototype.everyHour=function(){return"cada hora"},d.prototype.everyMinute=function(){return"cada minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},d.prototype.everySecond=function(){return"cada segundo"},d.prototype.everyX0Hours=function(){return"cada %s horas"},d.prototype.everyX0Minutes=function(){return"cada %s minutos"},d.prototype.everyX0Seconds=function(){return"cada %s segundos"},d.prototype.fifth=function(){return"quinto"},d.prototype.first=function(){return"primero"},d.prototype.firstWeekday=function(){return"primer día de la semana"},d.prototype.fourth=function(){return"cuarto"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},d.prototype.second=function(){return"segundo"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},d.prototype.spaceAnd=function(){return" y"},d.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},d.prototype.lastDay=function(){return"el último día"},d.prototype.third=function(){return"tercer"},d.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},d.prototype.commaEveryX0Years=function(){return", cada %s años"},d.prototype.commaStartingX0=function(){return", comenzando %s"},d.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},d.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},d}();return f.es=h,u().locales.es=new h,i})())}(gv)),gv.exports}zZ();var yv={exports:{}},X2;function FZ(){return X2||(X2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.de=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"jede Minute"},d.prototype.everyHour=function(){return"jede Stunde"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},d.prototype.atSpace=function(){return"Um "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},d.prototype.at=function(){return"Um"},d.prototype.spaceAnd=function(){return" und"},d.prototype.everySecond=function(){return"Jede Sekunde"},d.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},d.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},d.prototype.everyX0Minutes=function(){return"alle %s Minuten"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},d.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},d.prototype.everyX0Hours=function(){return"alle %s Stunden"},d.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},d.prototype.atX0=function(){return"um %s"},d.prototype.commaEveryDay=function(){return", jeden Tag"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},d.prototype.commaX0ThroughX1=function(){return", %s bis %s"},d.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},d.prototype.first=function(){return"ersten"},d.prototype.second=function(){return"zweiten"},d.prototype.third=function(){return"dritten"},d.prototype.fourth=function(){return"vierten"},d.prototype.fifth=function(){return"fünften"},d.prototype.commaOnThe=function(){return", am "},d.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},d.prototype.lastDay=function(){return"der letzte Tag"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},d.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},d.prototype.commaAndOnX0=function(){return", und jeden %s"},d.prototype.commaEveryX0Months=function(){return", alle %s Monate"},d.prototype.commaOnlyInX0=function(){return", nur im %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},d.prototype.firstWeekday=function(){return"ersten Werktag"},d.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},d.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},d.prototype.commaEveryX0Days=function(){return", alle %s Tage"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},d.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},d.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},d.prototype.commaStartingX0=function(){return", beginnend %s"},d.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},d.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},d}();return f.de=h,u().locales.de=new h,i})())}(yv)),yv.exports}FZ();var vv={exports:{}},G2;function BZ(){return G2||(G2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.it=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},d.prototype.at=function(){return"Alle"},d.prototype.atSpace=function(){return"Alle "},d.prototype.atX0=function(){return"alle %s"},d.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},d.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},d.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},d.prototype.commaEveryDay=function(){return", ogni giorno"},d.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},d.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},d.prototype.commaEveryX0Years=function(){return", ogni %s anni"},d.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},d.prototype.commaOnlyInX0=function(){return", solo in %s"},d.prototype.commaOnlyOnX0=function(){return", solo il %s"},d.prototype.commaAndOnX0=function(){return", e il %s"},d.prototype.commaOnThe=function(){return", il "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},d.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},d.prototype.commaX0ThroughX1=function(){return", %s al %s"},d.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},d.prototype.everyHour=function(){return"ogni ora"},d.prototype.everyMinute=function(){return"ogni minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},d.prototype.everySecond=function(){return"ogni secondo"},d.prototype.everyX0Hours=function(){return"ogni %s ore"},d.prototype.everyX0Minutes=function(){return"ogni %s minuti"},d.prototype.everyX0Seconds=function(){return"ogni %s secondi"},d.prototype.fifth=function(){return"quinto"},d.prototype.first=function(){return"primo"},d.prototype.firstWeekday=function(){return"primo giorno della settimana"},d.prototype.fourth=function(){return"quarto"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},d.prototype.second=function(){return"secondo"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},d.prototype.spaceAnd=function(){return" e"},d.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},d.prototype.lastDay=function(){return"l'ultimo giorno"},d.prototype.third=function(){return"terzo"},d.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},d.prototype.commaStartingX0=function(){return", a partire %s"},d.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},d.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},d}();return f.it=h,u().locales.it=new h,i})())}(vv)),vv.exports}BZ();var bv={exports:{}},J2;function WZ(){return J2||(J2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:g=>{g.exports=r}},o={};function a(g){var b=o[g];if(b!==void 0)return b.exports;var w=o[g]={exports:{}};return n[g](w,w.exports,a),w.exports}a.n=g=>{var b=g&&g.__esModule?()=>g.default:()=>g;return a.d(b,{a:b}),b},a.d=(g,b)=>{for(var w in b)a.o(b,w)&&!a.o(g,w)&&Object.defineProperty(g,w,{enumerable:!0,get:b[w]})},a.o=(g,b)=>Object.prototype.hasOwnProperty.call(g,b),a.r=g=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.ru=void 0;var h=function(g,b){var w=Number(g);return w!==void 0?b[w%100>4&&w%100<20?2:[2,0,1,1,1,2][w%10<5?Math.abs(w)%10:5]]:b[2]},d=function(g,b){var w=Number(g);return w!==void 0?b[w===0?0:w===1||w===2||w===4?1:2]:b[1]},_=function(){function g(){}return g.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},g.prototype.atX0MinutesPastTheHourGt20=function(){return null},g.prototype.commaMonthX0ThroughMonthX1=function(){return null},g.prototype.commaYearX0ThroughYearX1=function(){return null},g.prototype.use24HourTimeFormatByDefault=function(){return!0},g.prototype.everyMinute=function(){return"каждую минуту"},g.prototype.everyHour=function(){return"каждый час"},g.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},g.prototype.atSpace=function(){return"В "},g.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},g.prototype.at=function(){return"В"},g.prototype.spaceAnd=function(){return" и"},g.prototype.everySecond=function(){return"каждую секунду"},g.prototype.everyX0Seconds=function(b){return h(b,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},g.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},g.prototype.atX0SecondsPastTheMinute=function(b){return h(b,["в %s секунду","в %s секунды","в %s секунд"])},g.prototype.everyX0Minutes=function(b){return h(b,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},g.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},g.prototype.atX0MinutesPastTheHour=function(b){return h(b,["в %s минуту","в %s минуты","в %s минут"])},g.prototype.everyX0Hours=function(b){return h(b,["каждый %s час","каждые %s часа","каждые %s часов"])},g.prototype.betweenX0AndX1=function(){return"с %s по %s"},g.prototype.atX0=function(){return"в %s"},g.prototype.commaEveryDay=function(){return", каждый день"},g.prototype.commaEveryX0DaysOfTheWeek=function(b){return h(b,["",", каждые %s дня недели",", каждые %s дней недели"])},g.prototype.commaX0ThroughX1=function(b){return b&&(b[0]=="2"||b[0]=="3")?", со %s по %s":", с %s по %s"},g.prototype.commaAndX0ThroughX1=function(b){return b&&(b[0]=="2"||b[0]=="3")?" и со %s по %s":" и с %s по %s"},g.prototype.first=function(b){return d(b,["первое","первый","первую"])},g.prototype.second=function(b){return d(b,["второе","второй","вторую"])},g.prototype.third=function(b){return d(b,["третье","третий","третью"])},g.prototype.fourth=function(b){return d(b,["четвертое","четвертый","четвертую"])},g.prototype.fifth=function(b){return d(b,["пятое","пятый","пятую"])},g.prototype.commaOnThe=function(b){return b==="2"?", во ":", в "},g.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},g.prototype.lastDay=function(){return"последний день"},g.prototype.commaOnTheLastX0OfTheMonth=function(b){return d(b,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},g.prototype.commaOnlyOnX0=function(b){return b&&b[0]==="2"?", только во %s":", только в %s"},g.prototype.commaAndOnX0=function(){return", и %s"},g.prototype.commaEveryX0Months=function(b){return h(b,[""," каждые %s месяца"," каждые %s месяцев"])},g.prototype.commaOnlyInMonthX0=function(){return", только %s"},g.prototype.commaOnlyInX0=function(){return", только в %s"},g.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},g.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},g.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(b){return h(b,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},g.prototype.firstWeekday=function(){return"первый будний день"},g.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},g.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},g.prototype.commaEveryX0Days=function(b){return h(b,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},g.prototype.commaBetweenDayX0AndX1OfTheMonth=function(b){return b&&b.substring(0,b.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},g.prototype.commaOnDayX0OfTheMonth=function(b){return b&&b[0]=="2"?", во %s число месяца":", в %s число месяца"},g.prototype.commaEveryX0Years=function(b){return h(b,[", каждый %s год",", каждые %s года",", каждые %s лет"])},g.prototype.commaStartingX0=function(){return", начало %s"},g.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},g.prototype.daysOfTheWeekInCase=function(b){return b===void 0&&(b=2),b==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},g.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},g.prototype.monthsOfTheYearInCase=function(b){return b==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},g}();return f.ru=_,u().locales.ru=new _,i})())}(bv)),bv.exports}WZ();var wv={exports:{}},Y2;function UZ(){return Y2||(Y2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.zh_CN=void 0;var h=function(){function d(){}return d.prototype.setPeriodBeforeTime=function(){return!0},d.prototype.pm=function(){return"下午"},d.prototype.am=function(){return"上午"},d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},d.prototype.use24HourTimeFormatByDefault=function(){return!1},d.prototype.everyMinute=function(){return"每分钟"},d.prototype.everyHour=function(){return"每小时"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},d.prototype.atSpace=function(){return"在"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},d.prototype.at=function(){return"在"},d.prototype.spaceAnd=function(){return" 和"},d.prototype.everySecond=function(){return"每秒"},d.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在每分钟的第 %s 到 %s 秒"},d.prototype.atX0SecondsPastTheMinute=function(){return"在每分钟的第 %s 秒"},d.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"在每小时的第 %s 到 %s 分钟"},d.prototype.atX0MinutesPastTheHour=function(){return"在每小时的第 %s 分钟"},d.prototype.everyX0Hours=function(){return"每隔 %s 小时"},d.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},d.prototype.atX0=function(){return"在%s"},d.prototype.commaEveryDay=function(){return", 每天"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},d.prototype.commaX0ThroughX1=function(){return", %s至%s"},d.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},d.prototype.first=function(){return"第一个"},d.prototype.second=function(){return"第二个"},d.prototype.third=function(){return"第三个"},d.prototype.fourth=function(){return"第四个"},d.prototype.fifth=function(){return"第五个"},d.prototype.commaOnThe=function(){return", 限每月的"},d.prototype.spaceX0OfTheMonth=function(){return"%s"},d.prototype.lastDay=function(){return"本月最后一天"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},d.prototype.commaOnlyOnX0=function(){return", 仅%s"},d.prototype.commaAndOnX0=function(){return", 或者为%s"},d.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},d.prototype.commaOnlyInX0=function(){return", 仅限%s"},d.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},d.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},d.prototype.firstWeekday=function(){return"第一个工作日"},d.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},d.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},d.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},d.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},d.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},d.prototype.commaStartingX0=function(){return", %s开始"},d.prototype.dayX0=function(){return" %s 号"},d.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},d.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},d}();return f.zh_CN=h,u().locales.zh_CN=new h,i})())}(wv)),wv.exports}UZ();var xv={exports:{}},K2;function HZ(){return K2||(K2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.uk=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"щохвилини"},d.prototype.everyHour=function(){return"щогодини"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},d.prototype.atSpace=function(){return"О "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},d.prototype.at=function(){return"О"},d.prototype.spaceAnd=function(){return" та"},d.prototype.everySecond=function(){return"Щосекунди"},d.prototype.everyX0Seconds=function(){return"кожні %s секунд"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},d.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},d.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},d.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},d.prototype.everyX0Hours=function(){return"кожні %s годин"},d.prototype.betweenX0AndX1=function(){return"між %s та %s"},d.prototype.atX0=function(){return"о %s"},d.prototype.commaEveryDay=function(){return", щоденно"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},d.prototype.commaX0ThroughX1=function(){return", %s по %s"},d.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},d.prototype.first=function(){return"перший"},d.prototype.second=function(){return"другий"},d.prototype.third=function(){return"третій"},d.prototype.fourth=function(){return"четвертий"},d.prototype.fifth=function(){return"п'ятий"},d.prototype.commaOnThe=function(){return", в "},d.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},d.prototype.lastDay=function(){return"останній день"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},d.prototype.commaOnlyOnX0=function(){return", тільки в %s"},d.prototype.commaAndOnX0=function(){return", і в %s"},d.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},d.prototype.commaOnlyInX0=function(){return", тільки в %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},d.prototype.firstWeekday=function(){return"перший будень"},d.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},d.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},d.prototype.commaEveryX0Days=function(){return", кожен %s день"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},d.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},d.prototype.commaEveryX0Years=function(){return", кожні %s роки"},d.prototype.commaStartingX0=function(){return", початок %s"},d.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},d.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},d}();return f.uk=h,u().locales.uk=new h,i})())}(xv)),xv.exports}HZ();var Sv={exports:{}},Z2;function qZ(){return Z2||(Z2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.pt_BR=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},d.prototype.at=function(){return"às"},d.prototype.atSpace=function(){return"às "},d.prototype.atX0=function(){return"Às %s"},d.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},d.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},d.prototype.betweenX0AndX1=function(){return"entre %s e %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},d.prototype.commaEveryDay=function(){return", a cada dia"},d.prototype.commaEveryX0Days=function(){return", a cada %s dias"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},d.prototype.commaEveryX0Months=function(){return", a cada %s meses"},d.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},d.prototype.commaOnlyInX0=function(_){return _&&_.length>1&&_[1]==="-"?"somente %s":", somente em %s"},d.prototype.commaOnlyOnX0=function(_){return _&&_.length>1&&_[1]==="-"?", somente %s":", somente de %s"},d.prototype.commaAndOnX0=function(){return", e de %s"},d.prototype.commaOnThe=function(_,g){return g==="6"||g==="0"?", no":", na "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},d.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},d.prototype.commaX0ThroughX1=function(){return", de %s a %s"},d.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},d.prototype.everyHour=function(){return"a cada hora"},d.prototype.everyMinute=function(){return"a cada minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},d.prototype.everySecond=function(){return"a cada segundo"},d.prototype.everyX0Hours=function(){return"a cada %s horas"},d.prototype.everyX0Minutes=function(){return"a cada %s minutos"},d.prototype.everyX0Seconds=function(){return"a cada %s segundos"},d.prototype.fifth=function(_){return _==="6"||_==="0"?"quinto":"quinta"},d.prototype.first=function(_){return _==="6"||_==="0"?"primeiro":"primeira"},d.prototype.firstWeekday=function(){return"primeiro dia da semana"},d.prototype.fourth=function(_){return _==="6"||_==="0"?"quarto":"quarta"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},d.prototype.second=function(_){return _==="6"||_==="0"?"segundo":"segunda"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},d.prototype.spaceAnd=function(){return" e"},d.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},d.prototype.lastDay=function(){return"o último dia"},d.prototype.third=function(_){return _==="6"||_==="0"?"terceiro":"terceira"},d.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},d.prototype.commaEveryX0Years=function(){return", a cada %s anos"},d.prototype.commaStartingX0=function(){return", iniciando %s"},d.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},d.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},d}();return f.pt_BR=h,u().locales.pt_BR=new h,i})())}(Sv)),Sv.exports}qZ();var kv={exports:{}},Q2;function VZ(){return Q2||(Q2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.pl=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},d.prototype.at=function(){return"O"},d.prototype.atSpace=function(){return"O "},d.prototype.atX0=function(){return"o %s"},d.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},d.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},d.prototype.betweenX0AndX1=function(){return"od %s do %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},d.prototype.commaEveryDay=function(){return", co dzień"},d.prototype.commaEveryX0Days=function(){return", co %s dni"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},d.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},d.prototype.commaEveryX0Years=function(){return", co %s lat"},d.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},d.prototype.commaOnlyInX0=function(){return", tylko %s"},d.prototype.commaOnlyOnX0=function(){return", tylko %s"},d.prototype.commaAndOnX0=function(){return", i %s"},d.prototype.commaOnThe=function(){return", "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},d.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},d.prototype.commaX0ThroughX1=function(){return", od %s do %s"},d.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},d.prototype.everyHour=function(){return"co godzinę"},d.prototype.everyMinute=function(){return"co minutę"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},d.prototype.everySecond=function(){return"co sekundę"},d.prototype.everyX0Hours=function(){return"co %s godzin"},d.prototype.everyX0Minutes=function(){return"co %s minut"},d.prototype.everyX0Seconds=function(){return"co %s sekund"},d.prototype.fifth=function(){return"piąty"},d.prototype.first=function(){return"pierwszy"},d.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},d.prototype.fourth=function(){return"czwarty"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},d.prototype.second=function(){return"drugi"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},d.prototype.spaceAnd=function(){return" i"},d.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},d.prototype.lastDay=function(){return"ostatni dzień"},d.prototype.third=function(){return"trzeci"},d.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},d.prototype.commaStartingX0=function(){return", startowy %s"},d.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},d.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},d}();return f.pl=h,u().locales.pl=new h,i})())}(kv)),kv.exports}VZ();function ZN(t,e){return jZ.toString(t,{locale:e})}const en={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},slider:{marginTop:20,display:"block",width:"100%"},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},numberButtonBreak:{display:"block"},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},XZ=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],GZ=["January","February","March","April","May","June","July","August","September","October","November","December"];function eO(t,e){const r=[];if(t==="*"){if(e===24||e===60||e===7)for(let o=0;o1){const i=parseInt(a[1],10);for(let l=parseInt(a[0],10);l<=i;l++)r.push(l)}else r.push(parseInt(n[o],10))}r.sort();for(let o=r.length-1;o>=0;o--)r[o]===r[o+1]&&r.splice(o+1,1);return r}function tO(t,e){if(typeof t!="object"&&(t=[t]),t.length===e)return"*";const r=[];if(!t.length)return"-";t=t.map(a=>parseInt(a,10)),t.sort((a,i)=>a-i);let n=t[0],o=t[0];for(let a=1;athis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(e){e=e.replace(/['"]/g,"").trim();const r=e.split(" ").map(o=>o.trim());let n;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",dates:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:!1,minutes:r[0]||"*",hours:r[1]||"*",dates:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n}static state2cron(e){let r=`${e.minutes} ${e.hours} ${e.dates} ${e.months} ${e.dow}`;return e.seconds!==!1&&(r=`${e.seconds} ${r}`),r}recalcCron(){const e=Aa.state2cron(this.state);e!==this.state.cron&&this.setState({cron:e},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(e,r,n){if(e===!0)this.setCronAttr(r,"*");else if(e===!1)n===60||n===24?this.setCronAttr(r,"0"):this.setCronAttr(r,"1");else{const o=eO(this.state[r],n),a=o.indexOf(e);a!==-1?o.splice(a,1):(o.push(e),o.sort()),this.setCronAttr(r,tO(o,n))}}getDigitsSelector(e,r){let n=[];if(r===7)n=[1,2,3,4,5,6,0];else if(r===60||r===24)for(let a=0;athis.onToggle(!1,e,r)},U.t("ra_Deselect all")),y.createElement(Qt,{key:"addall",variant:"contained",style:en.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,e,r)},U.t("ra_Select all")),y.createElement("div",{key:"all"},n.map(a=>[r===7&&a===4||r===12&&a===7||r===31&&!((a-1)%10)||r===60&&a&&!(a%10)||r===24&&a&&!(a%6)?y.createElement("div",{key:`allInner${a}`,style:{width:"100%"}}):null,y.createElement(Qt,{key:`_${a}`,variant:o.indexOf(a)!==-1?"contained":"outlined",style:en.numberButton,color:o.indexOf(a)!==-1?"secondary":"primary",onClick:()=>this.onToggle(a,e,r)},r===7?U.t(XZ[a]):r===12?GZ[a-1]:a)]))]}getPeriodsTab(e,r){const n=this.state[e];let o=n==="*",a=n==null?!1:n.toString().includes("/"),i;if(this.state.modes[e]===null){i=o?"every":a?"everyN":"specific";const u=JSON.parse(JSON.stringify(this.state.modes));return u[e]=i,setTimeout(()=>this.setState({modes:u},()=>this.recalcCron()),100),null}o=this.state.modes[e]==="every",a=this.state.modes[e]==="everyN",i=this.state.modes[e];let l=1;return a&&n&&(l=parseInt(n.replace("*/",""),10)||1),y.createElement("div",null,y.createElement(wo,{variant:"standard",style:{...en.periodSelect,verticalAlign:"bottom"},value:i,onChange:u=>{const f=JSON.parse(JSON.stringify(this.state.modes));if(f[e]=u.target.value,u.target.value==="every")this.setCronAttr(e,"*",f);else if(u.target.value==="everyN"){const h=parseInt((this.state[e]||"").toString().replace("*/",""),10)||1;this.setCronAttr(e,`*/${h}`,f)}else if(u.target.value==="specific"){let h=parseInt((this.state[e]||"").toString().split(",")[0],10)||0;!h&&(e==="months"||e==="dates")&&(h=1),this.setCronAttr(e,tO(h,r),f)}}},y.createElement(fr,{key:"every",value:"every"},U.t(`sc_every_${e}`)),y.createElement(fr,{key:"everyN",value:"everyN"},U.t(`sc_everyN_${e}`)),y.createElement(fr,{key:"specific",value:"specific"},U.t(`sc_specific_${e}`))),a&&y.createElement(Fr,{variant:"standard",key:"interval",label:U.t(`sc_${e}`),value:l,slotProps:{htmlInput:{min:1,max:r},inputLabel:{shrink:!0}},onChange:u=>{this.setState({[e]:`*/${u.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!o&&!a&&this.getDigitsSelector(e,r))}static convertCronToText(e,r){return e.split(" ").includes("-")?U.t("ra_Invalid CRON"):ZN(e,r)}setCronAttr(e,r,n){n?e==="seconds"?this.setState({seconds:r,modes:n},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r,modes:n},()=>this.recalcCron()):e==="hours"?this.setState({hours:r,modes:n},()=>this.recalcCron()):e==="dates"?this.setState({dates:r,modes:n},()=>this.recalcCron()):e==="months"?this.setState({months:r,modes:n},()=>this.recalcCron()):e==="dow"?this.setState({dow:r,modes:n},()=>this.recalcCron()):this.setState({modes:n},()=>this.recalcCron()):e==="seconds"?this.setState({seconds:r},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r},()=>this.recalcCron()):e==="hours"?this.setState({hours:r},()=>this.recalcCron()):e==="dates"?this.setState({dates:r},()=>this.recalcCron()):e==="months"?this.setState({months:r},()=>this.recalcCron()):e==="dow"&&this.setState({dow:r},()=>this.recalcCron())}render(){const e=this.state.seconds!==!1?this.state.tab:this.state.tab+1,r=this.state.minutes==="*"||this.state.minutes==="*/1",n=this.state.seconds==="*"||this.state.seconds==="*/1";return y.createElement("div",{style:en.mainDiv},y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)"}},y.createElement(Fr,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)",height:60}},Aa.convertCronToText(this.state.cron,this.props.language||"en"),y.createElement("span",{style:en.warning},n?U.t("ra_warning_every_second"):r?U.t("ra_warning_every_minute"):"")),y.createElement(gt,{control:y.createElement(tn,{checked:!!this.state.seconds,onChange:o=>this.setState({seconds:o.target.checked?"*":!1},()=>this.recalcCron())}),label:U.t("ra_use seconds")}),y.createElement(yM,{position:"static",sx:{"&.MuiAppBar-root":en.appBar},color:"secondary"},y.createElement(MU,{value:this.state.tab,style:en.appBar,color:"secondary",onChange:(o,a)=>this.setState({tab:a})},this.state.seconds!==!1&&y.createElement(Oi,{id:"sc_seconds",label:U.t("sc_seconds")}),y.createElement(Oi,{id:"minutes",label:U.t("sc_minutes")}),y.createElement(Oi,{id:"hours",label:U.t("sc_hours")}),y.createElement(Oi,{id:"dates",label:U.t("sc_dates")}),y.createElement(Oi,{id:"months",label:U.t("sc_months")}),y.createElement(Oi,{id:"dow",label:U.t("sc_dows")}))),e===0&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("seconds",60)),e===1&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("minutes",60)),e===2&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("hours",24)),e===3&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("dates",31)),e===4&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("months",12)),e===5&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("dow",7)))}}function Zs(t,e,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function l(h){try{f(n.next(h))}catch(d){i(d)}}function u(h){try{f(n.throw(h))}catch(d){i(d)}}function f(h){h.done?a(h.value):o(h.value).then(l,u)}f((n=n.apply(t,e||[])).next())})}const JZ=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 Ec(t,e,r){const n=YZ(t),{webkitRelativePath:o}=t,a=typeof e=="string"?e:typeof o=="string"&&o.length>0?o:`./${t.name}`;return typeof n.path!="string"&&rO(n,"path",a),rO(n,"relativePath",a),n}function YZ(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const n=e.split(".").pop().toLowerCase(),o=JZ.get(n);o&&Object.defineProperty(t,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return t}function rO(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}const KZ=[".DS_Store","Thumbs.db"];function ZZ(t){return Zs(this,void 0,void 0,function*(){return tf(t)&&QZ(t.dataTransfer)?nQ(t.dataTransfer,t.type):eQ(t)?tQ(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?rQ(t):[]})}function QZ(t){return tf(t)}function eQ(t){return tf(t)&&tf(t.target)}function tf(t){return typeof t=="object"&&t!==null}function tQ(t){return M0(t.target.files).map(e=>Ec(e))}function rQ(t){return Zs(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>Ec(r))})}function nQ(t,e){return Zs(this,void 0,void 0,function*(){if(t.items){const r=M0(t.items).filter(o=>o.kind==="file");if(e!=="drop")return r;const n=yield Promise.all(r.map(oQ));return nO(QN(n))}return nO(M0(t.files).map(r=>Ec(r)))})}function nO(t){return t.filter(e=>KZ.indexOf(e.name)===-1)}function M0(t){if(t===null)return[];const e=[];for(let r=0;r[...e,...Array.isArray(r)?QN(r):[r]],[])}function oO(t,e){return Zs(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const a=yield t.getAsFileSystemHandle();if(a===null)throw new Error(`${t} is not a File`);if(a!==void 0){const i=yield a.getFile();return i.handle=a,Ec(i)}}const n=t.getAsFile();if(!n)throw new Error(`${t} is not a File`);return Ec(n,(r=e==null?void 0:e.fullPath)!==null&&r!==void 0?r:void 0)})}function aQ(t){return Zs(this,void 0,void 0,function*(){return t.isDirectory?eP(t):sQ(t)})}function eP(t){const e=t.createReader();return new Promise((r,n)=>{const o=[];function a(){e.readEntries(i=>Zs(this,void 0,void 0,function*(){if(i.length){const l=Promise.all(i.map(aQ));o.push(l),a()}else try{const l=yield Promise.all(o);r(l)}catch(l){n(l)}}),i=>{n(i)})}a()})}function sQ(t){return Zs(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(n=>{const o=Ec(n,t.fullPath);e(o)},n=>{r(n)})})})}var fp={},aO;function iQ(){return aO||(aO=1,fp.__esModule=!0,fp.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",o=(t.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return r.some(function(i){var l=i.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?a===l.replace(/\/.*$/,""):o===l})}return!0}),fp}var cQ=iQ();const Cv=Ha(cQ);function sO(t){return dQ(t)||uQ(t)||rP(t)||lQ()}function lQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. + `),y.createElement("div",{style:h.white,className:"saturation-white"},y.createElement("div",{style:h.black,className:"saturation-black"}),y.createElement("div",{style:h.pointer},this.props.pointer?y.createElement(this.props.pointer,this.props):y.createElement("div",{style:h.circle}))))}}]),e}($.PureComponent||$.Component);function qJ(t,e){for(var r=-1,n=t==null?0:t.length;++r=0,a=!r&&o&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?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 He(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(uY,arguments)},brighten:function(){return this._applyModification(dY,arguments)},darken:function(){return this._applyModification(pY,arguments)},desaturate:function(){return this._applyModification(iY,arguments)},saturate:function(){return this._applyModification(cY,arguments)},greyscale:function(){return this._applyModification(lY,arguments)},spin:function(){return this._applyModification(fY,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(_Y,arguments)},complement:function(){return this._applyCombination(hY,arguments)},monochromatic:function(){return this._applyCombination(gY,arguments)},splitcomplement:function(){return this._applyCombination(mY,arguments)},triad:function(){return this._applyCombination(w2,[3])},tetrad:function(){return this._applyCombination(w2,[4])}};He.fromRatio=function(t,e){if(Qp(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=Wl(t[n]));t=r}return He(t,e)};function rY(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,a=null,i=!1,l=!1;return typeof t=="string"&&(t=xY(t)),Qp(t)=="object"&&(Uo(t.r)&&Uo(t.g)&&Uo(t.b)?(e=nY(t.r,t.g,t.b),i=!0,l=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Uo(t.h)&&Uo(t.s)&&Uo(t.v)?(n=Wl(t.s),o=Wl(t.v),e=aY(t.h,n,o),i=!0,l="hsv"):Uo(t.h)&&Uo(t.s)&&Uo(t.l)&&(n=Wl(t.s),a=Wl(t.l),e=oY(t.h,n,a),i=!0,l="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=FN(r),{ok:i,format:t.format||l,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function nY(t,e,r){return{r:Xt(t,255)*255,g:Xt(e,255)*255,b:Xt(r,255)*255}}function g2(t,e,r){t=Xt(t,255),e=Xt(e,255),r=Xt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,l=(n+o)/2;if(n==o)a=i=0;else{var u=n-o;switch(i=l>.5?u/(2-n-o):u/(n+o),n){case t:a=(e-r)/u+(e1&&(d-=1),d<1/6?f+(h-f)*6*d:d<1/2?h:d<2/3?f+(h-f)*(2/3-d)*6:f}if(e===0)n=o=a=r;else{var l=r<.5?r*(1+e):r+e-r*e,u=2*r-l;n=i(u,l,t+1/3),o=i(u,l,t),a=i(u,l,t-1/3)}return{r:n*255,g:o*255,b:a*255}}function y2(t,e,r){t=Xt(t,255),e=Xt(e,255),r=Xt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,l=n,u=n-o;if(i=n===0?0:u/n,n==o)a=0;else{switch(n){case t:a=(e-r)/u+(e>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(He(n));return a}function gY(t,e){e=e||6;for(var r=He(t).toHsv(),n=r.h,o=r.s,a=r.v,i=[],l=1/e;e--;)i.push(He({h:n,s:o,v:a})),a=(a+l)%1;return i}He.mix=function(t,e,r){r=r===0?0:r||50;var n=He(t).toRgb(),o=He(e).toRgb(),a=r/100,i={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return He(i)};He.readability=function(t,e){var r=He(t),n=He(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};He.isReadable=function(t,e,r){var n=He.readability(t,e),o,a;switch(a=!1,o=SY(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};He.mostReadable=function(t,e,r){var n=null,o=0,a,i,l,u;r=r||{},i=r.includeFallbackColors,l=r.level,u=r.size;for(var f=0;fo&&(o=a,n=He(e[f]));return He.isReadable(t,n,{level:l,size:u})||!i?n:(r.includeFallbackColors=!1,He.mostReadable(t,["#fff","#000"],r))};var $0=He.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"},yY=He.hexNames=vY($0);function vY(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function FN(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Xt(t,e){bY(t)&&(t="100%");var r=wY(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Kf(t){return Math.min(1,Math.max(0,t))}function hn(t){return parseInt(t,16)}function bY(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function wY(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Yn(t){return t.length==1?"0"+t:""+t}function Wl(t){return t<=1&&(t=t*100+"%"),t}function zN(t){return Math.round(parseFloat(t)*255).toString(16)}function x2(t){return hn(t)/255}var Jn=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),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 Uo(t){return!!Jn.CSS_UNIT.exec(t)}function xY(t){t=t.replace(eY,"").replace(tY,"").toLowerCase();var e=!1;if($0[t])t=$0[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Jn.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=Jn.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Jn.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=Jn.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Jn.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=Jn.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Jn.hex8.exec(t))?{r:hn(r[1]),g:hn(r[2]),b:hn(r[3]),a:x2(r[4]),format:e?"name":"hex8"}:(r=Jn.hex6.exec(t))?{r:hn(r[1]),g:hn(r[2]),b:hn(r[3]),format:e?"name":"hex"}:(r=Jn.hex4.exec(t))?{r:hn(r[1]+""+r[1]),g:hn(r[2]+""+r[2]),b:hn(r[3]+""+r[3]),a:x2(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=Jn.hex3.exec(t))?{r:hn(r[1]+""+r[1]),g:hn(r[2]+""+r[2]),b:hn(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function SY(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var S2=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,o=0;return QJ(r,function(a){if(e[a]&&(n+=1,isNaN(e[a])||(o+=1),a==="s"||a==="l")){var i=/^\d+%$/;i.test(e[a])&&(o+=1)}}),n===o?e:!1},Ul=function(e,r){var n=e.hex?He(e.hex):He(e),o=n.toHsl(),a=n.toHsv(),i=n.toRgb(),l=n.toHex();o.s===0&&(o.h=r||0,a.h=r||0);var u=l==="000000"&&i.a===0;return{hsl:o,hex:u?"transparent":"#"+l,rgb:i,hsv:a,oldHue:e.h||r||o.h,source:e.source}},Ja=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&&He(e).isValid()},mw=function(e){if(!e)return"#fff";var r=Ul(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},fv=function(e,r){var n=e.replace("°","");return He(r+" ("+n+")")._ok},El=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){MY(o,n);function o(){var a,i,l,u;DY(this,o);for(var f=arguments.length,h=Array(f),d=0;dl))return!1;var f=a.get(t),h=a.get(e);if(f&&h)return f==e&&h==t;var d=-1,_=!0,g=r&UY?new ef:void 0;for(a.set(t,e),a.set(e,t);++d=0||Object.prototype.hasOwnProperty.call(i,f)&&(u[f]=i[f]);return u}var a=24;return dp.default=function(i){var l=i.fill,u=l===void 0?"currentColor":l,f=i.width,h=f===void 0?a:f,d=i.height,_=d===void 0?a:d,g=i.style,b=g===void 0?{}:g,w=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:u,width:h,height:_},b)},w),r.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"}))},dp}var nZ=rZ();const oZ=Ha(nZ);var aZ=function(){function t(e,r){for(var n=0;n1&&(o.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(o.a*100)/100,source:"rgb"},a)):(o.h||o.s||o.l)&&(typeof o.s=="string"&&o.s.includes("%")&&(o.s=o.s.replace("%","")),typeof o.l=="string"&&o.l.includes("%")&&(o.l=o.l.replace("%","")),o.s==1?o.s=.01:o.l==1&&(o.l=.01),n.props.onChange({h:o.h||n.props.hsl.h,s:Number(F2(o.s)?n.props.hsl.s:o.s),l:Number(F2(o.l)?n.props.hsl.l:o.l),source:"hsl"},a))},n.showHighlight=function(o){o.currentTarget.style.background="#eee"},n.hideHighlight=function(o){o.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return aZ(e,[{key:"render",value:function(){var n=this,o=ct({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),a=void 0;return this.state.view==="hex"?a=y.createElement("div",{style:o.fields,className:"flexbox-fix"},y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=y.createElement("div",{style:o.fields,className:"flexbox-fix"},y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),y.createElement("div",{style:o.alpha},y.createElement(bt,{style:{input:o.input,label:o.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=y.createElement("div",{style:o.fields,className:"flexbox-fix"},y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),y.createElement("div",{style:o.alpha},y.createElement(bt,{style:{input:o.input,label:o.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),y.createElement("div",{style:o.wrap,className:"flexbox-fix"},a,y.createElement("div",{style:o.toggle},y.createElement("div",{style:o.icon,onClick:this.toggleViews,ref:function(l){return n.icon=l}},y.createElement(oZ,{style:o.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.hsl.a!==1&&o.view==="hex"?{view:"rgb"}:null}}]),e}(y.Component);YN.defaultProps={view:"hex"};var B2=function(){var e=ct({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 y.createElement("div",{style:e.picker})},lZ=function(){var e=ct({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return y.createElement("div",{style:e.picker})},ww=function(e){var r=e.width,n=e.onChange,o=e.disableAlpha,a=e.rgb,i=e.hsl,l=e.hsv,u=e.hex,f=e.renderers,h=e.styles,d=h===void 0?{}:h,_=e.className,g=_===void 0?"":_,b=e.defaultView,w=ct(cn({default:{picker:{width:r,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("+a.r+", "+a.g+", "+a.b+", "+a.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"}}},d),{disableAlpha:o});return y.createElement("div",{style:w.picker,className:"chrome-picker "+g},y.createElement("div",{style:w.saturation},y.createElement(Yf,{style:w.Saturation,hsl:i,hsv:l,pointer:lZ,onChange:n})),y.createElement("div",{style:w.body},y.createElement("div",{style:w.controls,className:"flexbox-fix"},y.createElement("div",{style:w.color},y.createElement("div",{style:w.swatch},y.createElement("div",{style:w.active}),y.createElement(Nc,{renderers:f}))),y.createElement("div",{style:w.toggles},y.createElement("div",{style:w.hue},y.createElement(Pc,{style:w.Hue,hsl:i,pointer:B2,onChange:n})),y.createElement("div",{style:w.alpha},y.createElement(iw,{style:w.Alpha,rgb:a,hsl:i,pointer:B2,renderers:f,onChange:n})))),y.createElement(YN,{rgb:a,hsl:i,hex:u,view:b,onChange:n,disableAlpha:o})))};ww.propTypes={width:se.oneOfType([se.string,se.number]),disableAlpha:se.bool,styles:se.object,defaultView:se.oneOf(["hex","rgb","hsl"])};ww.defaultProps={width:225,disableAlpha:!1,styles:{}};ln(ww);var uZ=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.active,l=ct({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:mw(r),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:i,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return y.createElement(Ys,{style:l.color,color:r,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},y.createElement("div",{style:l.dot}))},dZ=function(e){var r=e.hex,n=e.rgb,o=e.onChange,a=ct({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},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"}}}),i=function(u,f){u.r||u.g||u.b?o({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},f):o({hex:u.hex,source:"hex"},f)};return y.createElement("div",{style:a.fields,className:"flexbox-fix"},y.createElement("div",{style:a.active}),y.createElement(bt,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:r,onChange:i}),y.createElement(bt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:i}),y.createElement(bt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:i}),y.createElement(bt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:i}))},xw=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.colors,a=e.hex,i=e.rgb,l=e.styles,u=l===void 0?{}:l,f=e.className,h=f===void 0?"":f,d=ct(cn({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),_=function(b,w){b.hex?Ja(b.hex)&&r({hex:b.hex,source:"hex"},w):r(b,w)};return y.createElement(Du,{style:d.Compact,styles:u},y.createElement("div",{style:d.compact,className:"compact-picker "+h},y.createElement("div",null,Ks(o,function(g){return y.createElement(uZ,{key:g,color:g,active:g.toLowerCase()===a,onClick:_,onSwatchHover:n})}),y.createElement("div",{style:d.clear})),y.createElement(dZ,{hex:a,rgb:i,onChange:_})))};xw.propTypes={colors:se.arrayOf(se.string),styles:se.object};xw.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"],styles:{}};ln(xw);var pZ=function(e){var r=e.hover,n=e.color,o=e.onClick,a=e.onSwatchHover,i={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=ct({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:i}},{hover:r});return y.createElement("div",{style:l.swatch},y.createElement(Ys,{color:n,onClick:o,onHover:a,focusStyle:i}))};const fZ=sw.handleHover(pZ);var Sw=function(e){var r=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,i=e.triangle,l=e.styles,u=l===void 0?{}:l,f=e.className,h=f===void 0?"":f,d=ct(cn({default:{card:{width:r,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)"}}},u),{"hide-triangle":i==="hide","top-left-triangle":i==="top-left","top-right-triangle":i==="top-right","bottom-left-triangle":i==="bottom-left","bottom-right-triangle":i==="bottom-right"}),_=function(b,w){return o({hex:b,source:"hex"},w)};return y.createElement("div",{style:d.card,className:"github-picker "+h},y.createElement("div",{style:d.triangleShadow}),y.createElement("div",{style:d.triangle}),Ks(n,function(g){return y.createElement(fZ,{color:g,key:g,onClick:_,onSwatchHover:a})}))};Sw.propTypes={width:se.oneOfType([se.string,se.number]),colors:se.arrayOf(se.string),triangle:se.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:se.object};Sw.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};ln(Sw);var hZ=function(e){var r=e.direction,n=ct({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:r==="vertical"});return y.createElement("div",{style:n.picker})},mZ=Object.assign||function(t){for(var e=1;e.5});return y.createElement("div",{style:n.picker})},vZ=function(){var e=ct({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 y.createElement("div",{style:e.pointer},y.createElement("div",{style:e.left},y.createElement("div",{style:e.leftInside})),y.createElement("div",{style:e.right},y.createElement("div",{style:e.rightInside})))},W2=function(e){var r=e.onClick,n=e.label,o=e.children,a=e.active,i=ct({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:a});return y.createElement("div",{style:i.button,onClick:r},n||o)},bZ=function(e){var r=e.rgb,n=e.currentColor,o=ct({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.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 y.createElement("div",null,y.createElement("div",{style:o.label},"new"),y.createElement("div",{style:o.swatches},y.createElement("div",{style:o.new}),y.createElement("div",{style:o.current})),y.createElement("div",{style:o.label},"current"))},wZ=function(){function t(e,r){for(var n=0;n100&&(h.a=100),h.a/=100,r({h:o.h,s:o.s,l:o.l,a:h.a,source:"rgb"},d))};return y.createElement("div",{style:l.fields,className:"flexbox-fix"},y.createElement("div",{style:l.double},y.createElement(bt,{style:{input:l.input,label:l.label},label:"hex",value:a.replace("#",""),onChange:u})),y.createElement("div",{style:l.single},y.createElement(bt,{style:{input:l.input,label:l.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),y.createElement("div",{style:l.single},y.createElement(bt,{style:{input:l.input,label:l.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),y.createElement("div",{style:l.single},y.createElement(bt,{style:{input:l.input,label:l.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),y.createElement("div",{style:l.alpha},y.createElement(bt,{style:{input:l.input,label:l.label},label:"a",value:Math.round(n.a*100),onChange:u,dragLabel:"true",dragMax:"100"})))},$Z=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(i,f)&&(u[f]=i[f]);return u}var a=24;return pp.default=function(i){var l=i.fill,u=l===void 0?"currentColor":l,f=i.width,h=f===void 0?a:f,d=i.height,_=d===void 0?a:d,g=i.style,b=g===void 0?{}:g,w=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:u,width:h,height:_},b)},w),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},pp}var MZ=DZ();const NZ=Ha(MZ);var PZ=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.first,l=e.last,u=e.active,f=ct({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:mw(r),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:i,last:l,active:u,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return y.createElement(Ys,{color:r,style:f.color,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},y.createElement("div",{style:f.check},y.createElement(NZ,null)))},RZ=function(e){var r=e.onClick,n=e.onSwatchHover,o=e.group,a=e.active,i=ct({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return y.createElement("div",{style:i.group},Ks(o,function(l,u){return y.createElement(PZ,{key:l,color:l,active:l.toLowerCase()===a,first:u===0,last:u===o.length-1,onClick:r,onSwatchHover:n})}))},Tw=function(e){var r=e.width,n=e.height,o=e.onChange,a=e.onSwatchHover,i=e.colors,l=e.hex,u=e.styles,f=u===void 0?{}:u,h=e.className,d=h===void 0?"":h,_=ct(cn({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},f)),g=function(w,S){return o({hex:w,source:"hex"},S)};return y.createElement("div",{style:_.picker,className:"swatches-picker "+d},y.createElement(Du,null,y.createElement("div",{style:_.overflow},y.createElement("div",{style:_.body},Ks(i,function(b){return y.createElement(RZ,{key:b.toString(),group:b,active:l,onClick:g,onSwatchHover:a})}),y.createElement("div",{style:_.clear})))))};Tw.propTypes={width:se.oneOfType([se.string,se.number]),height:se.oneOfType([se.string,se.number]),colors:se.arrayOf(se.arrayOf(se.string)),styles:se.object};Tw.defaultProps={width:320,height:240,colors:[[Bi[900],Bi[700],Bi[500],Bi[300],Bi[100]],[Wi[900],Wi[700],Wi[500],Wi[300],Wi[100]],[Ui[900],Ui[700],Ui[500],Ui[300],Ui[100]],[Hi[900],Hi[700],Hi[500],Hi[300],Hi[100]],[qi[900],qi[700],qi[500],qi[300],qi[100]],[Vi[900],Vi[700],Vi[500],Vi[300],Vi[100]],[Xi[900],Xi[700],Xi[500],Xi[300],Xi[100]],[Gi[900],Gi[700],Gi[500],Gi[300],Gi[100]],[Ji[900],Ji[700],Ji[500],Ji[300],Ji[100]],["#194D33",Hl[700],Hl[500],Hl[300],Hl[100]],[Yi[900],Yi[700],Yi[500],Yi[300],Yi[100]],[Ki[900],Ki[700],Ki[500],Ki[300],Ki[100]],[Zi[900],Zi[700],Zi[500],Zi[300],Zi[100]],[Qi[900],Qi[700],Qi[500],Qi[300],Qi[100]],[ec[900],ec[700],ec[500],ec[300],ec[100]],[tc[900],tc[700],tc[500],tc[300],tc[100]],[rc[900],rc[700],rc[500],rc[300],rc[100]],[nc[900],nc[700],nc[500],nc[300],nc[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};ln(Tw);var Ow=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,i=e.width,l=e.triangle,u=e.styles,f=u===void 0?{}:u,h=e.className,d=h===void 0?"":h,_=ct(cn({default:{card:{width:i,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"}}},f),{"hide-triangle":l==="hide","top-left-triangle":l==="top-left","top-right-triangle":l==="top-right"}),g=function(w,S){Ja(w)&&r({hex:w,source:"hex"},S)};return y.createElement("div",{style:_.card,className:"twitter-picker "+d},y.createElement("div",{style:_.triangleShadow}),y.createElement("div",{style:_.triangle}),y.createElement("div",{style:_.body},Ks(a,function(b,w){return y.createElement(Ys,{key:w,color:b,hex:b,style:_.swatch,onClick:g,onHover:n,focusStyle:{boxShadow:"0 0 4px "+b}})}),y.createElement("div",{style:_.hash},"#"),y.createElement(bt,{label:null,style:{input:_.input},value:o.replace("#",""),onChange:g}),y.createElement("div",{style:_.clear})))};Ow.propTypes={width:se.oneOfType([se.string,se.number]),triangle:se.oneOf(["hide","top-left","top-right"]),colors:se.arrayOf(se.string),styles:se.object};Ow.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};ln(Ow);var Dw=function(e){var r=ct({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 y.createElement("div",{style:r.picker})};Dw.propTypes={hsl:se.shape({h:se.number,s:se.number,l:se.number,a:se.number})};Dw.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Mw=function(e){var r=ct({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 y.createElement("div",{style:r.picker})};Mw.propTypes={hsl:se.shape({h:se.number,s:se.number,l:se.number,a:se.number})};Mw.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var AZ=function(e){var r=e.onChange,n=e.rgb,o=e.hsl,a=e.hex,i=e.hsv,l=function(g,b){if(g.hex)Ja(g.hex)&&r({hex:g.hex,source:"hex"},b);else if(g.rgb){var w=g.rgb.split(",");fv(g.rgb,"rgb")&&r({r:w[0],g:w[1],b:w[2],a:1,source:"rgb"},b)}else if(g.hsv){var S=g.hsv.split(",");fv(g.hsv,"hsv")&&(S[2]=S[2].replace("%",""),S[1]=S[1].replace("%",""),S[0]=S[0].replace("°",""),S[1]==1?S[1]=.01:S[2]==1&&(S[2]=.01),r({h:Number(S[0]),s:Number(S[1]),v:Number(S[2]),source:"hsv"},b))}else if(g.hsl){var k=g.hsl.split(",");fv(g.hsl,"hsl")&&(k[2]=k[2].replace("%",""),k[1]=k[1].replace("%",""),k[0]=k[0].replace("°",""),d[1]==1?d[1]=.01:d[2]==1&&(d[2]=.01),r({h:Number(k[0]),s:Number(k[1]),v:Number(k[2]),source:"hsl"},b))}},u=ct({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"}}}),f=n.r+", "+n.g+", "+n.b,h=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.l*100)+"%",d=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.v*100)+"%";return y.createElement("div",{style:u.wrap,className:"flexbox-fix"},y.createElement("div",{style:u.fields},y.createElement("div",{style:u.double},y.createElement(bt,{style:{input:u.input,label:u.label},label:"hex",value:a,onChange:l})),y.createElement("div",{style:u.column},y.createElement("div",{style:u.single},y.createElement(bt,{style:{input:u.input2,label:u.label2},label:"rgb",value:f,onChange:l})),y.createElement("div",{style:u.single},y.createElement(bt,{style:{input:u.input2,label:u.label2},label:"hsv",value:d,onChange:l})),y.createElement("div",{style:u.single},y.createElement(bt,{style:{input:u.input2,label:u.label2},label:"hsl",value:h,onChange:l})))))},Nw=function(e){var r=e.width,n=e.onChange,o=e.rgb,a=e.hsl,i=e.hsv,l=e.hex,u=e.header,f=e.styles,h=f===void 0?{}:f,d=e.className,_=d===void 0?"":d,g=ct(cn({default:{picker:{width:r,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("+o.r+", "+o.g+", "+o.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"}}},h));return y.createElement("div",{style:g.picker,className:"google-picker "+_},y.createElement("div",{style:g.head},u),y.createElement("div",{style:g.swatch}),y.createElement("div",{style:g.saturation},y.createElement(Yf,{hsl:a,hsv:i,pointer:Dw,onChange:n})),y.createElement("div",{style:g.body},y.createElement("div",{style:g.controls,className:"flexbox-fix"},y.createElement("div",{style:g.hue},y.createElement(Pc,{style:g.Hue,hsl:a,radius:"4px",pointer:Mw,onChange:n}))),y.createElement(AZ,{rgb:o,hsl:a,hex:l,hsv:i,onChange:n})))};Nw.propTypes={width:se.oneOfType([se.string,se.number]),styles:se.object,header:se.string};Nw.defaultProps={width:652,styles:{},header:"Color picker"};ln(Nw);var mv={exports:{}},H2;function Mo(){return H2||(H2=1,function(t,e){(function(n,o){t.exports=o()})(globalThis,()=>(()=>{var r={949:(i,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.CronParser=void 0;var f=u(515),h=function(){function d(_,g,b){g===void 0&&(g=!0),b===void 0&&(b=!1),this.expression=_,this.dayOfWeekStartIndexZero=g,this.monthStartIndexZero=b}return d.prototype.parse=function(){var _,g,b=(_=this.expression)!==null&&_!==void 0?_:"";if(b.startsWith("@")){var w=this.parseSpecial(this.expression);g=this.extractParts(w)}else g=this.extractParts(this.expression);return this.normalize(g),this.validate(g),g},d.prototype.parseSpecial=function(_){var g={"@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 * * * *"},b=g[_];if(!b)throw new Error("Unknown special expression.");return b},d.prototype.extractParts=function(_){if(!this.expression)throw new Error("cron expression is empty");for(var g=_.trim().split(/[ ]+/),b=0;b7)throw new Error("Expression has ".concat(g.length," parts; too many!"));return g},d.prototype.normalize=function(_){var g=this;if(_[3]=_[3].replace("?","*"),_[5]=_[5].replace("?","*"),_[2]=_[2].replace("?","*"),_[0].indexOf("0/")==0&&(_[0]=_[0].replace("0/","*/")),_[1].indexOf("0/")==0&&(_[1]=_[1].replace("0/","*/")),_[2].indexOf("0/")==0&&(_[2]=_[2].replace("0/","*/")),_[3].indexOf("1/")==0&&(_[3]=_[3].replace("1/","*/")),_[4].indexOf("1/")==0&&(_[4]=_[4].replace("1/","*/")),_[6].indexOf("1/")==0&&(_[6]=_[6].replace("1/","*/")),_[5]=_[5].replace(/(^\d)|([^#/\s]\d)/g,function(M){var T=M.replace(/\D/,""),P=T;return g.dayOfWeekStartIndexZero?T=="7"&&(P="0"):P=(parseInt(T)-1).toString(),M.replace(T,P)}),_[5]=="L"&&(_[5]="6"),_[3]=="?"&&(_[3]="*"),_[3].indexOf("W")>-1&&(_[3].indexOf(",")>-1||_[3].indexOf("-")>-1))throw new 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 b={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var w in b)_[5]=_[5].replace(new RegExp(w,"gi"),b[w].toString());_[4]=_[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(M){var T=M.replace(/\D/,""),P=T;return g.monthStartIndexZero&&(P=(parseInt(T)+1).toString()),M.replace(T,P)});var S={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 k in S)_[4]=_[4].replace(new RegExp(k,"gi"),S[k].toString());_[0]=="0"&&(_[0]=""),!/\*|\-|\,|\//.test(_[2])&&(/\*|\//.test(_[1])||/\*|\//.test(_[0]))&&(_[2]+="-".concat(_[2]));for(var D=0;D<_.length;D++)if(_[D].indexOf(",")!=-1&&(_[D]=_[D].split(",").filter(function(M){return M!==""}).join(",")||"*"),_[D]=="*/1"&&(_[D]="*"),_[D].indexOf("/")>-1&&!/^\*|\-|\,/.test(_[D])){var C=null;switch(D){case 4:C="12";break;case 5:C="6";break;case 6:C="9999";break;default:C=null;break}if(C!==null){var O=_[D].split("/");_[D]="".concat(O[0],"-").concat(C,"/").concat(O[1])}}},d.prototype.validate=function(_){this.assertNoInvalidCharacters("DOW",_[5]),this.assertNoInvalidCharacters("DOM",_[3]),this.validateRange(_)},d.prototype.validateRange=function(_){f.default.secondRange(_[0]),f.default.minuteRange(_[1]),f.default.hourRange(_[2]),f.default.dayOfMonthRange(_[3]),f.default.monthRange(_[4],this.monthStartIndexZero),f.default.dayOfWeekRange(_[5],this.dayOfWeekStartIndexZero)},d.prototype.assertNoInvalidCharacters=function(_,g){var b=g.match(/[A-KM-VX-Z]+/gi);if(b&&b.length)throw new Error("".concat(_," part contains invalid values: '").concat(b.toString(),"'"))},d}();l.CronParser=h},333:(i,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ExpressionDescriptor=void 0;var f=u(823),h=u(949),d=function(){function _(g,b){if(this.expression=g,this.options=b,this.expressionParts=new Array(5),!this.options.locale&&_.defaultLocale&&(this.options.locale=_.defaultLocale),!_.locales[this.options.locale]){var w=Object.keys(_.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(w,"'.")),this.options.locale=w}this.i18n=_.locales[this.options.locale],b.use24HourTimeFormat===void 0&&(b.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return _.toString=function(g,b){var w=b===void 0?{}:b,S=w.throwExceptionOnParseError,k=S===void 0?!0:S,D=w.verbose,C=D===void 0?!1:D,O=w.dayOfWeekStartIndexZero,M=O===void 0?!0:O,T=w.monthStartIndexZero,P=T===void 0?!1:T,j=w.use24HourTimeFormat,F=w.locale,E=F===void 0?null:F,L=w.tzOffset,G=L===void 0?0:L,B={throwExceptionOnParseError:k,verbose:C,dayOfWeekStartIndexZero:M,monthStartIndexZero:P,use24HourTimeFormat:j,locale:E,tzOffset:G},z=new _(g,B);return z.getFullDescription()},_.initialize=function(g,b){b===void 0&&(b="en"),_.specialCharacters=["/","-",",","*"],_.defaultLocale=b,g.load(_.locales)},_.prototype.getFullDescription=function(){var g="";try{var b=new h.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=b.parse();var w=this.getTimeOfDayDescription(),S=this.getDayOfMonthDescription(),k=this.getMonthDescription(),D=this.getDayOfWeekDescription(),C=this.getYearDescription();g+=w+S+D+k+C,g=this.transformVerbosity(g,!!this.options.verbose),g=g.charAt(0).toLocaleUpperCase()+g.substr(1)}catch(O){if(!this.options.throwExceptionOnParseError)g=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(O)}return g},_.prototype.getTimeOfDayDescription=function(){var g=this.expressionParts[0],b=this.expressionParts[1],w=this.expressionParts[2],S="";if(!f.StringUtilities.containsAny(b,_.specialCharacters)&&!f.StringUtilities.containsAny(w,_.specialCharacters)&&!f.StringUtilities.containsAny(g,_.specialCharacters))S+=this.i18n.atSpace()+this.formatTime(w,b,g);else if(!g&&b.indexOf("-")>-1&&!(b.indexOf(",")>-1)&&!(b.indexOf("/")>-1)&&!f.StringUtilities.containsAny(w,_.specialCharacters)){var k=b.split("-");S+=f.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(w,k[0],""),this.formatTime(w,k[1],""))}else if(!g&&w.indexOf(",")>-1&&w.indexOf("-")==-1&&w.indexOf("/")==-1&&!f.StringUtilities.containsAny(b,_.specialCharacters)){var D=w.split(",");S+=this.i18n.at();for(var C=0;C1){var k=S[S.length-1].index;w=w.substring(0,k)+":59"+w.substring(k+3)}}return w},_.prototype.getDayOfWeekDescription=function(){var g=this,b=this.i18n.daysOfTheWeek(),w=null;return this.expressionParts[5]=="*"?w="":w=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(S,k){var D=S;S.indexOf("#")>-1?D=S.substring(0,S.indexOf("#")):S.indexOf("L")>-1&&(D=D.replace("L",""));var C=parseInt(D);if(g.options.tzOffset){var O=g.expressionParts[2],M=parseInt(O)+(g.options.tzOffset?g.options.tzOffset:0);M>=24?C++:M<0&&C--,C>6?C=0:C<0&&(C=6)}var T=g.i18n.daysOfTheWeekInCase?g.i18n.daysOfTheWeekInCase(k)[C]:b[C];if(S.indexOf("#")>-1){var P=null,j=S.substring(S.indexOf("#")+1),F=S.substring(0,S.indexOf("#"));switch(j){case"1":P=g.i18n.first(F);break;case"2":P=g.i18n.second(F);break;case"3":P=g.i18n.third(F);break;case"4":P=g.i18n.fourth(F);break;case"5":P=g.i18n.fifth(F);break}T=P+" "+T}return T},function(S){return parseInt(S)==1?"":f.StringUtilities.format(g.i18n.commaEveryX0DaysOfTheWeek(S),S)},function(S){var k=S.substring(0,S.indexOf("-")),D=g.expressionParts[3]!="*";return D?g.i18n.commaAndX0ThroughX1(k):g.i18n.commaX0ThroughX1(k)},function(S){var k=null;if(S.indexOf("#")>-1){var D=S.substring(S.indexOf("#")+1),C=S.substring(0,S.indexOf("#"));k=g.i18n.commaOnThe(D,C).trim()+g.i18n.spaceX0OfTheMonth()}else if(S.indexOf("L")>-1)k=g.i18n.commaOnTheLastX0OfTheMonth(S.replace("L",""));else{var O=g.expressionParts[3]!="*";k=O?g.i18n.commaAndOnX0():g.i18n.commaOnlyOnX0(S)}return k}),w},_.prototype.getMonthDescription=function(){var g=this,b=this.i18n.monthsOfTheYear(),w=this.getSegmentDescription(this.expressionParts[4],"",function(S,k){return k&&g.i18n.monthsOfTheYearInCase?g.i18n.monthsOfTheYearInCase(k)[parseInt(S)-1]:b[parseInt(S)-1]},function(S){return parseInt(S)==1?"":f.StringUtilities.format(g.i18n.commaEveryX0Months(S),S)},function(S){return g.i18n.commaMonthX0ThroughMonthX1()||g.i18n.commaX0ThroughX1()},function(S){return g.i18n.commaOnlyInMonthX0?g.i18n.commaOnlyInMonthX0():g.i18n.commaOnlyInX0()});return w},_.prototype.getDayOfMonthDescription=function(){var g=this,b=null,w=this.expressionParts[3];switch(w){case"L":b=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":b=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var S=w.match(/(\d{1,2}W)|(W\d{1,2})/);if(S){var k=parseInt(S[0].replace("W","")),D=k==1?this.i18n.firstWeekday():f.StringUtilities.format(this.i18n.weekdayNearestDayX0(),k.toString());b=f.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),D);break}else{var C=w.match(/L-(\d{1,2})/);if(C){var O=C[1];b=f.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(O),O);break}else{if(w=="*"&&this.expressionParts[5]!="*")return"";b=this.getSegmentDescription(w,this.i18n.commaEveryDay(),function(M){return M=="L"?g.i18n.lastDay():g.i18n.dayX0?f.StringUtilities.format(g.i18n.dayX0(),M):M},function(M){return M=="1"?g.i18n.commaEveryDay():g.i18n.commaEveryX0Days(M)},function(M){return g.i18n.commaBetweenDayX0AndX1OfTheMonth(M)},function(M){return g.i18n.commaOnDayX0OfTheMonth(M)})}break}}return b},_.prototype.getYearDescription=function(){var g=this,b=this.getSegmentDescription(this.expressionParts[6],"",function(w){return/^\d+$/.test(w)?new Date(parseInt(w),1).getFullYear().toString():w},function(w){return f.StringUtilities.format(g.i18n.commaEveryX0Years(w),w)},function(w){return g.i18n.commaYearX0ThroughYearX1()||g.i18n.commaX0ThroughX1()},function(w){return g.i18n.commaOnlyInYearX0?g.i18n.commaOnlyInYearX0():g.i18n.commaOnlyInX0()});return b},_.prototype.getSegmentDescription=function(g,b,w,S,k,D){var C=null,O=g.indexOf("/")>-1,M=g.indexOf("-")>-1,T=g.indexOf(",")>-1;if(!g)C="";else if(g==="*")C=b;else if(!O&&!M&&!T)C=f.StringUtilities.format(D(g),w(g));else if(T){for(var P=g.split(","),j="",F=0;F0&&P.length>2&&(j+=",",F0&&P.length>1&&(F==P.length-1||P.length==2)&&(j+="".concat(this.i18n.spaceAnd()," ")),P[F].indexOf("/")>-1||P[F].indexOf("-")>-1){var E=P[F].indexOf("-")>-1&&P[F].indexOf("/")==-1,L=this.getSegmentDescription(P[F],b,w,S,E?this.i18n.commaX0ThroughX1:k,D);E&&(L=L.replace(", ","")),j+=L}else O?j+=this.getSegmentDescription(P[F],b,w,S,k,D):j+=w(P[F]);O?C=j:C=f.StringUtilities.format(D(g),j)}else if(O){var P=g.split("/");if(C=f.StringUtilities.format(S(P[1]),P[1]),P[0].indexOf("-")>-1){var G=this.generateRangeSegmentDescription(P[0],k,w);G.indexOf(", ")!=0&&(C+=", "),C+=G}else if(P[0].indexOf("*")==-1){var B=f.StringUtilities.format(D(P[0]),w(P[0]));B=B.replace(", ",""),C+=f.StringUtilities.format(this.i18n.commaStartingX0(),B)}}else M&&(C=this.generateRangeSegmentDescription(g,k,w));return C},_.prototype.generateRangeSegmentDescription=function(g,b,w){var S="",k=g.split("-"),D=w(k[0],1),C=w(k[1],2),O=b(g);return S+=f.StringUtilities.format(O,D,C),S},_.prototype.formatTime=function(g,b,w){var S=0,k=0;this.options.tzOffset&&(S=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),k=parseFloat((this.options.tzOffset%1).toFixed(2)),k!=0&&(k*=60));var D=parseInt(g)+S,C=parseInt(b)+k;C>=60?(C-=60,D+=1):C<0&&(C+=60,D-=1),D>=24?D=D-24:D<0&&(D=24+D);var O="",M=!1;this.options.use24HourTimeFormat||(M=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),O=M?"".concat(this.getPeriod(D)," "):" ".concat(this.getPeriod(D)),D>12&&(D-=12),D===0&&(D=12));var T="";return w&&(T=":".concat(("00"+w).substring(w.length))),"".concat(M?O:"").concat(("00"+D.toString()).substring(D.toString().length),":").concat(("00"+C.toString()).substring(C.toString().length)).concat(T).concat(M?"":O)},_.prototype.transformVerbosity=function(g,b){return b||(g=g.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),g=g.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),g=g.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),g=g.replace(/\, ?$/,"")),g},_.prototype.getPeriod=function(g){return g>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},_.locales={},_}();l.ExpressionDescriptor=d},747:(i,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.enLocaleLoader=void 0;var f=u(486),h=function(){function d(){}return d.prototype.load=function(_){_.en=new f.en},d}();l.enLocaleLoader=h},486:(i,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.en=void 0;var u=function(){function f(){}return f.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},f.prototype.atX0MinutesPastTheHourGt20=function(){return null},f.prototype.commaMonthX0ThroughMonthX1=function(){return null},f.prototype.commaYearX0ThroughYearX1=function(){return null},f.prototype.use24HourTimeFormatByDefault=function(){return!1},f.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},f.prototype.everyMinute=function(){return"every minute"},f.prototype.everyHour=function(){return"every hour"},f.prototype.atSpace=function(){return"At "},f.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},f.prototype.at=function(){return"At"},f.prototype.spaceAnd=function(){return" and"},f.prototype.everySecond=function(){return"every second"},f.prototype.everyX0Seconds=function(){return"every %s seconds"},f.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},f.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},f.prototype.everyX0Minutes=function(){return"every %s minutes"},f.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},f.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},f.prototype.everyX0Hours=function(){return"every %s hours"},f.prototype.betweenX0AndX1=function(){return"between %s and %s"},f.prototype.atX0=function(){return"at %s"},f.prototype.commaEveryDay=function(){return", every day"},f.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},f.prototype.commaX0ThroughX1=function(){return", %s through %s"},f.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},f.prototype.first=function(){return"first"},f.prototype.second=function(){return"second"},f.prototype.third=function(){return"third"},f.prototype.fourth=function(){return"fourth"},f.prototype.fifth=function(){return"fifth"},f.prototype.commaOnThe=function(){return", on the "},f.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},f.prototype.lastDay=function(){return"the last day"},f.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},f.prototype.commaOnlyOnX0=function(){return", only on %s"},f.prototype.commaAndOnX0=function(){return", and on %s"},f.prototype.commaEveryX0Months=function(){return", every %s months"},f.prototype.commaOnlyInX0=function(){return", only in %s"},f.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},f.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},f.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},f.prototype.firstWeekday=function(){return"first weekday"},f.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},f.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},f.prototype.commaEveryX0Days=function(){return", every %s days"},f.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},f.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},f.prototype.commaEveryHour=function(){return", every hour"},f.prototype.commaEveryX0Years=function(){return", every %s years"},f.prototype.commaStartingX0=function(){return", starting %s"},f.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},f.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},f}();l.en=u},515:(i,l)=>{Object.defineProperty(l,"__esModule",{value:!0});function u(h,d){if(!h)throw new Error(d)}var f=function(){function h(){}return h.secondRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=0&&b<=59,"seconds part must be >= 0 and <= 59")}},h.minuteRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=0&&b<=59,"minutes part must be >= 0 and <= 59")}},h.hourRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=0&&b<=23,"hours part must be >= 0 and <= 23")}},h.dayOfMonthRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=1&&b<=31,"DOM part must be >= 1 and <= 31")}},h.monthRange=function(d,_){for(var g=d.split(","),b=0;b=1&&w<=12,_?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},h.dayOfWeekRange=function(d,_){for(var g=d.split(","),b=0;b=0&&w<=6,_?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},h}();l.default=f},823:(i,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.StringUtilities=void 0;var u=function(){function f(){}return f.format=function(h){for(var d=[],_=1;_-1})},f}();l.StringUtilities=u}},n={};function o(i){var l=n[i];if(l!==void 0)return l.exports;var u=n[i]={exports:{}};return r[i](u,u.exports,o),u.exports}var a={};return(()=>{var i=a;Object.defineProperty(i,"__esModule",{value:!0}),i.toString=void 0;var l=o(333),u=o(747);l.ExpressionDescriptor.initialize(new u.enLocaleLoader),i.default=l.ExpressionDescriptor;var f=l.ExpressionDescriptor.toString;i.toString=f})(),a})())}(mv)),mv.exports}var IZ=Mo();const jZ=Ha(IZ);var _v={exports:{}},q2;function LZ(){return q2||(q2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.fr=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"toutes les minutes"},d.prototype.everyHour=function(){return"toutes les heures"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},d.prototype.atSpace=function(){return"À "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},d.prototype.at=function(){return"À"},d.prototype.spaceAnd=function(){return" et"},d.prototype.everySecond=function(){return"toutes les secondes"},d.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},d.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},d.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},d.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},d.prototype.everyX0Hours=function(){return"toutes les %s heures"},d.prototype.betweenX0AndX1=function(){return"de %s à %s"},d.prototype.atX0=function(){return"à %s"},d.prototype.commaEveryDay=function(){return", tous les jours"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},d.prototype.commaX0ThroughX1=function(){return", de %s à %s"},d.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},d.prototype.first=function(){return"premier"},d.prototype.second=function(){return"second"},d.prototype.third=function(){return"troisième"},d.prototype.fourth=function(){return"quatrième"},d.prototype.fifth=function(){return"cinquième"},d.prototype.commaOnThe=function(){return", le "},d.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},d.prototype.lastDay=function(){return"le dernier jour"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},d.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},d.prototype.commaAndOnX0=function(){return", et %s"},d.prototype.commaEveryX0Months=function(){return", tous les %s mois"},d.prototype.commaOnlyInX0=function(){return", uniquement en %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},d.prototype.firstWeekday=function(){return"premier jour ouvrable"},d.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},d.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},d.prototype.commaEveryX0Days=function(){return", tous les %s jours"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},d.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},d.prototype.commaEveryX0Years=function(){return", tous les %s ans"},d.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},d.prototype.commaStartingX0=function(){return", à partir de %s"},d.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},d.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},d}();return f.fr=h,u().locales.fr=new h,i})())}(_v)),_v.exports}LZ();var gv={exports:{}},V2;function FZ(){return V2||(V2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.es=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.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."},d.prototype.at=function(){return"A las"},d.prototype.atSpace=function(){return"A las "},d.prototype.atX0=function(){return"a las %s"},d.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},d.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},d.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},d.prototype.commaEveryDay=function(){return", cada día"},d.prototype.commaEveryX0Days=function(){return", cada %s días"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},d.prototype.commaEveryX0Months=function(){return", cada %s meses"},d.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},d.prototype.commaOnlyInX0=function(){return", sólo en %s"},d.prototype.commaOnlyOnX0=function(){return", sólo el %s"},d.prototype.commaAndOnX0=function(){return", y el %s"},d.prototype.commaOnThe=function(){return", en el "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},d.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},d.prototype.commaX0ThroughX1=function(){return", de %s a %s"},d.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},d.prototype.everyHour=function(){return"cada hora"},d.prototype.everyMinute=function(){return"cada minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},d.prototype.everySecond=function(){return"cada segundo"},d.prototype.everyX0Hours=function(){return"cada %s horas"},d.prototype.everyX0Minutes=function(){return"cada %s minutos"},d.prototype.everyX0Seconds=function(){return"cada %s segundos"},d.prototype.fifth=function(){return"quinto"},d.prototype.first=function(){return"primero"},d.prototype.firstWeekday=function(){return"primer día de la semana"},d.prototype.fourth=function(){return"cuarto"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},d.prototype.second=function(){return"segundo"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},d.prototype.spaceAnd=function(){return" y"},d.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},d.prototype.lastDay=function(){return"el último día"},d.prototype.third=function(){return"tercer"},d.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},d.prototype.commaEveryX0Years=function(){return", cada %s años"},d.prototype.commaStartingX0=function(){return", comenzando %s"},d.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},d.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},d}();return f.es=h,u().locales.es=new h,i})())}(gv)),gv.exports}FZ();var yv={exports:{}},X2;function zZ(){return X2||(X2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.de=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"jede Minute"},d.prototype.everyHour=function(){return"jede Stunde"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},d.prototype.atSpace=function(){return"Um "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},d.prototype.at=function(){return"Um"},d.prototype.spaceAnd=function(){return" und"},d.prototype.everySecond=function(){return"Jede Sekunde"},d.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},d.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},d.prototype.everyX0Minutes=function(){return"alle %s Minuten"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},d.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},d.prototype.everyX0Hours=function(){return"alle %s Stunden"},d.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},d.prototype.atX0=function(){return"um %s"},d.prototype.commaEveryDay=function(){return", jeden Tag"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},d.prototype.commaX0ThroughX1=function(){return", %s bis %s"},d.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},d.prototype.first=function(){return"ersten"},d.prototype.second=function(){return"zweiten"},d.prototype.third=function(){return"dritten"},d.prototype.fourth=function(){return"vierten"},d.prototype.fifth=function(){return"fünften"},d.prototype.commaOnThe=function(){return", am "},d.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},d.prototype.lastDay=function(){return"der letzte Tag"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},d.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},d.prototype.commaAndOnX0=function(){return", und jeden %s"},d.prototype.commaEveryX0Months=function(){return", alle %s Monate"},d.prototype.commaOnlyInX0=function(){return", nur im %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},d.prototype.firstWeekday=function(){return"ersten Werktag"},d.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},d.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},d.prototype.commaEveryX0Days=function(){return", alle %s Tage"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},d.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},d.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},d.prototype.commaStartingX0=function(){return", beginnend %s"},d.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},d.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},d}();return f.de=h,u().locales.de=new h,i})())}(yv)),yv.exports}zZ();var vv={exports:{}},G2;function BZ(){return G2||(G2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.it=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},d.prototype.at=function(){return"Alle"},d.prototype.atSpace=function(){return"Alle "},d.prototype.atX0=function(){return"alle %s"},d.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},d.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},d.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},d.prototype.commaEveryDay=function(){return", ogni giorno"},d.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},d.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},d.prototype.commaEveryX0Years=function(){return", ogni %s anni"},d.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},d.prototype.commaOnlyInX0=function(){return", solo in %s"},d.prototype.commaOnlyOnX0=function(){return", solo il %s"},d.prototype.commaAndOnX0=function(){return", e il %s"},d.prototype.commaOnThe=function(){return", il "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},d.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},d.prototype.commaX0ThroughX1=function(){return", %s al %s"},d.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},d.prototype.everyHour=function(){return"ogni ora"},d.prototype.everyMinute=function(){return"ogni minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},d.prototype.everySecond=function(){return"ogni secondo"},d.prototype.everyX0Hours=function(){return"ogni %s ore"},d.prototype.everyX0Minutes=function(){return"ogni %s minuti"},d.prototype.everyX0Seconds=function(){return"ogni %s secondi"},d.prototype.fifth=function(){return"quinto"},d.prototype.first=function(){return"primo"},d.prototype.firstWeekday=function(){return"primo giorno della settimana"},d.prototype.fourth=function(){return"quarto"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},d.prototype.second=function(){return"secondo"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},d.prototype.spaceAnd=function(){return" e"},d.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},d.prototype.lastDay=function(){return"l'ultimo giorno"},d.prototype.third=function(){return"terzo"},d.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},d.prototype.commaStartingX0=function(){return", a partire %s"},d.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},d.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},d}();return f.it=h,u().locales.it=new h,i})())}(vv)),vv.exports}BZ();var bv={exports:{}},J2;function WZ(){return J2||(J2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:g=>{g.exports=r}},o={};function a(g){var b=o[g];if(b!==void 0)return b.exports;var w=o[g]={exports:{}};return n[g](w,w.exports,a),w.exports}a.n=g=>{var b=g&&g.__esModule?()=>g.default:()=>g;return a.d(b,{a:b}),b},a.d=(g,b)=>{for(var w in b)a.o(b,w)&&!a.o(g,w)&&Object.defineProperty(g,w,{enumerable:!0,get:b[w]})},a.o=(g,b)=>Object.prototype.hasOwnProperty.call(g,b),a.r=g=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.ru=void 0;var h=function(g,b){var w=Number(g);return w!==void 0?b[w%100>4&&w%100<20?2:[2,0,1,1,1,2][w%10<5?Math.abs(w)%10:5]]:b[2]},d=function(g,b){var w=Number(g);return w!==void 0?b[w===0?0:w===1||w===2||w===4?1:2]:b[1]},_=function(){function g(){}return g.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},g.prototype.atX0MinutesPastTheHourGt20=function(){return null},g.prototype.commaMonthX0ThroughMonthX1=function(){return null},g.prototype.commaYearX0ThroughYearX1=function(){return null},g.prototype.use24HourTimeFormatByDefault=function(){return!0},g.prototype.everyMinute=function(){return"каждую минуту"},g.prototype.everyHour=function(){return"каждый час"},g.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},g.prototype.atSpace=function(){return"В "},g.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},g.prototype.at=function(){return"В"},g.prototype.spaceAnd=function(){return" и"},g.prototype.everySecond=function(){return"каждую секунду"},g.prototype.everyX0Seconds=function(b){return h(b,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},g.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},g.prototype.atX0SecondsPastTheMinute=function(b){return h(b,["в %s секунду","в %s секунды","в %s секунд"])},g.prototype.everyX0Minutes=function(b){return h(b,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},g.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},g.prototype.atX0MinutesPastTheHour=function(b){return h(b,["в %s минуту","в %s минуты","в %s минут"])},g.prototype.everyX0Hours=function(b){return h(b,["каждый %s час","каждые %s часа","каждые %s часов"])},g.prototype.betweenX0AndX1=function(){return"с %s по %s"},g.prototype.atX0=function(){return"в %s"},g.prototype.commaEveryDay=function(){return", каждый день"},g.prototype.commaEveryX0DaysOfTheWeek=function(b){return h(b,["",", каждые %s дня недели",", каждые %s дней недели"])},g.prototype.commaX0ThroughX1=function(b){return b&&(b[0]=="2"||b[0]=="3")?", со %s по %s":", с %s по %s"},g.prototype.commaAndX0ThroughX1=function(b){return b&&(b[0]=="2"||b[0]=="3")?" и со %s по %s":" и с %s по %s"},g.prototype.first=function(b){return d(b,["первое","первый","первую"])},g.prototype.second=function(b){return d(b,["второе","второй","вторую"])},g.prototype.third=function(b){return d(b,["третье","третий","третью"])},g.prototype.fourth=function(b){return d(b,["четвертое","четвертый","четвертую"])},g.prototype.fifth=function(b){return d(b,["пятое","пятый","пятую"])},g.prototype.commaOnThe=function(b){return b==="2"?", во ":", в "},g.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},g.prototype.lastDay=function(){return"последний день"},g.prototype.commaOnTheLastX0OfTheMonth=function(b){return d(b,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},g.prototype.commaOnlyOnX0=function(b){return b&&b[0]==="2"?", только во %s":", только в %s"},g.prototype.commaAndOnX0=function(){return", и %s"},g.prototype.commaEveryX0Months=function(b){return h(b,[""," каждые %s месяца"," каждые %s месяцев"])},g.prototype.commaOnlyInMonthX0=function(){return", только %s"},g.prototype.commaOnlyInX0=function(){return", только в %s"},g.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},g.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},g.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(b){return h(b,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},g.prototype.firstWeekday=function(){return"первый будний день"},g.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},g.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},g.prototype.commaEveryX0Days=function(b){return h(b,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},g.prototype.commaBetweenDayX0AndX1OfTheMonth=function(b){return b&&b.substring(0,b.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},g.prototype.commaOnDayX0OfTheMonth=function(b){return b&&b[0]=="2"?", во %s число месяца":", в %s число месяца"},g.prototype.commaEveryX0Years=function(b){return h(b,[", каждый %s год",", каждые %s года",", каждые %s лет"])},g.prototype.commaStartingX0=function(){return", начало %s"},g.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},g.prototype.daysOfTheWeekInCase=function(b){return b===void 0&&(b=2),b==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},g.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},g.prototype.monthsOfTheYearInCase=function(b){return b==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},g}();return f.ru=_,u().locales.ru=new _,i})())}(bv)),bv.exports}WZ();var wv={exports:{}},Y2;function UZ(){return Y2||(Y2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.zh_CN=void 0;var h=function(){function d(){}return d.prototype.setPeriodBeforeTime=function(){return!0},d.prototype.pm=function(){return"下午"},d.prototype.am=function(){return"上午"},d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},d.prototype.use24HourTimeFormatByDefault=function(){return!1},d.prototype.everyMinute=function(){return"每分钟"},d.prototype.everyHour=function(){return"每小时"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},d.prototype.atSpace=function(){return"在"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},d.prototype.at=function(){return"在"},d.prototype.spaceAnd=function(){return" 和"},d.prototype.everySecond=function(){return"每秒"},d.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在每分钟的第 %s 到 %s 秒"},d.prototype.atX0SecondsPastTheMinute=function(){return"在每分钟的第 %s 秒"},d.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"在每小时的第 %s 到 %s 分钟"},d.prototype.atX0MinutesPastTheHour=function(){return"在每小时的第 %s 分钟"},d.prototype.everyX0Hours=function(){return"每隔 %s 小时"},d.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},d.prototype.atX0=function(){return"在%s"},d.prototype.commaEveryDay=function(){return", 每天"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},d.prototype.commaX0ThroughX1=function(){return", %s至%s"},d.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},d.prototype.first=function(){return"第一个"},d.prototype.second=function(){return"第二个"},d.prototype.third=function(){return"第三个"},d.prototype.fourth=function(){return"第四个"},d.prototype.fifth=function(){return"第五个"},d.prototype.commaOnThe=function(){return", 限每月的"},d.prototype.spaceX0OfTheMonth=function(){return"%s"},d.prototype.lastDay=function(){return"本月最后一天"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},d.prototype.commaOnlyOnX0=function(){return", 仅%s"},d.prototype.commaAndOnX0=function(){return", 或者为%s"},d.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},d.prototype.commaOnlyInX0=function(){return", 仅限%s"},d.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},d.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},d.prototype.firstWeekday=function(){return"第一个工作日"},d.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},d.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},d.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},d.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},d.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},d.prototype.commaStartingX0=function(){return", %s开始"},d.prototype.dayX0=function(){return" %s 号"},d.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},d.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},d}();return f.zh_CN=h,u().locales.zh_CN=new h,i})())}(wv)),wv.exports}UZ();var xv={exports:{}},K2;function HZ(){return K2||(K2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.uk=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"щохвилини"},d.prototype.everyHour=function(){return"щогодини"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},d.prototype.atSpace=function(){return"О "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},d.prototype.at=function(){return"О"},d.prototype.spaceAnd=function(){return" та"},d.prototype.everySecond=function(){return"Щосекунди"},d.prototype.everyX0Seconds=function(){return"кожні %s секунд"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},d.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},d.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},d.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},d.prototype.everyX0Hours=function(){return"кожні %s годин"},d.prototype.betweenX0AndX1=function(){return"між %s та %s"},d.prototype.atX0=function(){return"о %s"},d.prototype.commaEveryDay=function(){return", щоденно"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},d.prototype.commaX0ThroughX1=function(){return", %s по %s"},d.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},d.prototype.first=function(){return"перший"},d.prototype.second=function(){return"другий"},d.prototype.third=function(){return"третій"},d.prototype.fourth=function(){return"четвертий"},d.prototype.fifth=function(){return"п'ятий"},d.prototype.commaOnThe=function(){return", в "},d.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},d.prototype.lastDay=function(){return"останній день"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},d.prototype.commaOnlyOnX0=function(){return", тільки в %s"},d.prototype.commaAndOnX0=function(){return", і в %s"},d.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},d.prototype.commaOnlyInX0=function(){return", тільки в %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},d.prototype.firstWeekday=function(){return"перший будень"},d.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},d.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},d.prototype.commaEveryX0Days=function(){return", кожен %s день"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},d.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},d.prototype.commaEveryX0Years=function(){return", кожні %s роки"},d.prototype.commaStartingX0=function(){return", початок %s"},d.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},d.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},d}();return f.uk=h,u().locales.uk=new h,i})())}(xv)),xv.exports}HZ();var Sv={exports:{}},Z2;function qZ(){return Z2||(Z2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.pt_BR=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},d.prototype.at=function(){return"às"},d.prototype.atSpace=function(){return"às "},d.prototype.atX0=function(){return"Às %s"},d.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},d.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},d.prototype.betweenX0AndX1=function(){return"entre %s e %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},d.prototype.commaEveryDay=function(){return", a cada dia"},d.prototype.commaEveryX0Days=function(){return", a cada %s dias"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},d.prototype.commaEveryX0Months=function(){return", a cada %s meses"},d.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},d.prototype.commaOnlyInX0=function(_){return _&&_.length>1&&_[1]==="-"?"somente %s":", somente em %s"},d.prototype.commaOnlyOnX0=function(_){return _&&_.length>1&&_[1]==="-"?", somente %s":", somente de %s"},d.prototype.commaAndOnX0=function(){return", e de %s"},d.prototype.commaOnThe=function(_,g){return g==="6"||g==="0"?", no":", na "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},d.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},d.prototype.commaX0ThroughX1=function(){return", de %s a %s"},d.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},d.prototype.everyHour=function(){return"a cada hora"},d.prototype.everyMinute=function(){return"a cada minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},d.prototype.everySecond=function(){return"a cada segundo"},d.prototype.everyX0Hours=function(){return"a cada %s horas"},d.prototype.everyX0Minutes=function(){return"a cada %s minutos"},d.prototype.everyX0Seconds=function(){return"a cada %s segundos"},d.prototype.fifth=function(_){return _==="6"||_==="0"?"quinto":"quinta"},d.prototype.first=function(_){return _==="6"||_==="0"?"primeiro":"primeira"},d.prototype.firstWeekday=function(){return"primeiro dia da semana"},d.prototype.fourth=function(_){return _==="6"||_==="0"?"quarto":"quarta"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},d.prototype.second=function(_){return _==="6"||_==="0"?"segundo":"segunda"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},d.prototype.spaceAnd=function(){return" e"},d.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},d.prototype.lastDay=function(){return"o último dia"},d.prototype.third=function(_){return _==="6"||_==="0"?"terceiro":"terceira"},d.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},d.prototype.commaEveryX0Years=function(){return", a cada %s anos"},d.prototype.commaStartingX0=function(){return", iniciando %s"},d.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},d.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},d}();return f.pt_BR=h,u().locales.pt_BR=new h,i})())}(Sv)),Sv.exports}qZ();var kv={exports:{}},Q2;function VZ(){return Q2||(Q2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.pl=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},d.prototype.at=function(){return"O"},d.prototype.atSpace=function(){return"O "},d.prototype.atX0=function(){return"o %s"},d.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},d.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},d.prototype.betweenX0AndX1=function(){return"od %s do %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},d.prototype.commaEveryDay=function(){return", co dzień"},d.prototype.commaEveryX0Days=function(){return", co %s dni"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},d.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},d.prototype.commaEveryX0Years=function(){return", co %s lat"},d.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},d.prototype.commaOnlyInX0=function(){return", tylko %s"},d.prototype.commaOnlyOnX0=function(){return", tylko %s"},d.prototype.commaAndOnX0=function(){return", i %s"},d.prototype.commaOnThe=function(){return", "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},d.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},d.prototype.commaX0ThroughX1=function(){return", od %s do %s"},d.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},d.prototype.everyHour=function(){return"co godzinę"},d.prototype.everyMinute=function(){return"co minutę"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},d.prototype.everySecond=function(){return"co sekundę"},d.prototype.everyX0Hours=function(){return"co %s godzin"},d.prototype.everyX0Minutes=function(){return"co %s minut"},d.prototype.everyX0Seconds=function(){return"co %s sekund"},d.prototype.fifth=function(){return"piąty"},d.prototype.first=function(){return"pierwszy"},d.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},d.prototype.fourth=function(){return"czwarty"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},d.prototype.second=function(){return"drugi"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},d.prototype.spaceAnd=function(){return" i"},d.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},d.prototype.lastDay=function(){return"ostatni dzień"},d.prototype.third=function(){return"trzeci"},d.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},d.prototype.commaStartingX0=function(){return", startowy %s"},d.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},d.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},d}();return f.pl=h,u().locales.pl=new h,i})())}(kv)),kv.exports}VZ();function ZN(t,e){return jZ.toString(t,{locale:e})}const en={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},slider:{marginTop:20,display:"block",width:"100%"},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},numberButtonBreak:{display:"block"},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},XZ=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],GZ=["January","February","March","April","May","June","July","August","September","October","November","December"];function eO(t,e){const r=[];if(t==="*"){if(e===24||e===60||e===7)for(let o=0;o1){const i=parseInt(a[1],10);for(let l=parseInt(a[0],10);l<=i;l++)r.push(l)}else r.push(parseInt(n[o],10))}r.sort();for(let o=r.length-1;o>=0;o--)r[o]===r[o+1]&&r.splice(o+1,1);return r}function tO(t,e){if(typeof t!="object"&&(t=[t]),t.length===e)return"*";const r=[];if(!t.length)return"-";t=t.map(a=>parseInt(a,10)),t.sort((a,i)=>a-i);let n=t[0],o=t[0];for(let a=1;athis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(e){e=e.replace(/['"]/g,"").trim();const r=e.split(" ").map(o=>o.trim());let n;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",dates:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:!1,minutes:r[0]||"*",hours:r[1]||"*",dates:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n}static state2cron(e){let r=`${e.minutes} ${e.hours} ${e.dates} ${e.months} ${e.dow}`;return e.seconds!==!1&&(r=`${e.seconds} ${r}`),r}recalcCron(){const e=Aa.state2cron(this.state);e!==this.state.cron&&this.setState({cron:e},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(e,r,n){if(e===!0)this.setCronAttr(r,"*");else if(e===!1)n===60||n===24?this.setCronAttr(r,"0"):this.setCronAttr(r,"1");else{const o=eO(this.state[r],n),a=o.indexOf(e);a!==-1?o.splice(a,1):(o.push(e),o.sort()),this.setCronAttr(r,tO(o,n))}}getDigitsSelector(e,r){let n=[];if(r===7)n=[1,2,3,4,5,6,0];else if(r===60||r===24)for(let a=0;athis.onToggle(!1,e,r)},U.t("ra_Deselect all")),y.createElement(Qt,{key:"addall",variant:"contained",style:en.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,e,r)},U.t("ra_Select all")),y.createElement("div",{key:"all"},n.map(a=>[r===7&&a===4||r===12&&a===7||r===31&&!((a-1)%10)||r===60&&a&&!(a%10)||r===24&&a&&!(a%6)?y.createElement("div",{key:`allInner${a}`,style:{width:"100%"}}):null,y.createElement(Qt,{key:`_${a}`,variant:o.indexOf(a)!==-1?"contained":"outlined",style:en.numberButton,color:o.indexOf(a)!==-1?"secondary":"primary",onClick:()=>this.onToggle(a,e,r)},r===7?U.t(XZ[a]):r===12?GZ[a-1]:a)]))]}getPeriodsTab(e,r){const n=this.state[e];let o=n==="*",a=n==null?!1:n.toString().includes("/"),i;if(this.state.modes[e]===null){i=o?"every":a?"everyN":"specific";const u=JSON.parse(JSON.stringify(this.state.modes));return u[e]=i,setTimeout(()=>this.setState({modes:u},()=>this.recalcCron()),100),null}o=this.state.modes[e]==="every",a=this.state.modes[e]==="everyN",i=this.state.modes[e];let l=1;return a&&n&&(l=parseInt(n.replace("*/",""),10)||1),y.createElement("div",null,y.createElement(wo,{variant:"standard",style:{...en.periodSelect,verticalAlign:"bottom"},value:i,onChange:u=>{const f=JSON.parse(JSON.stringify(this.state.modes));if(f[e]=u.target.value,u.target.value==="every")this.setCronAttr(e,"*",f);else if(u.target.value==="everyN"){const h=parseInt((this.state[e]||"").toString().replace("*/",""),10)||1;this.setCronAttr(e,`*/${h}`,f)}else if(u.target.value==="specific"){let h=parseInt((this.state[e]||"").toString().split(",")[0],10)||0;!h&&(e==="months"||e==="dates")&&(h=1),this.setCronAttr(e,tO(h,r),f)}}},y.createElement(fr,{key:"every",value:"every"},U.t(`sc_every_${e}`)),y.createElement(fr,{key:"everyN",value:"everyN"},U.t(`sc_everyN_${e}`)),y.createElement(fr,{key:"specific",value:"specific"},U.t(`sc_specific_${e}`))),a&&y.createElement(zr,{variant:"standard",key:"interval",label:U.t(`sc_${e}`),value:l,slotProps:{htmlInput:{min:1,max:r},inputLabel:{shrink:!0}},onChange:u=>{this.setState({[e]:`*/${u.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!o&&!a&&this.getDigitsSelector(e,r))}static convertCronToText(e,r){return e.split(" ").includes("-")?U.t("ra_Invalid CRON"):ZN(e,r)}setCronAttr(e,r,n){n?e==="seconds"?this.setState({seconds:r,modes:n},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r,modes:n},()=>this.recalcCron()):e==="hours"?this.setState({hours:r,modes:n},()=>this.recalcCron()):e==="dates"?this.setState({dates:r,modes:n},()=>this.recalcCron()):e==="months"?this.setState({months:r,modes:n},()=>this.recalcCron()):e==="dow"?this.setState({dow:r,modes:n},()=>this.recalcCron()):this.setState({modes:n},()=>this.recalcCron()):e==="seconds"?this.setState({seconds:r},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r},()=>this.recalcCron()):e==="hours"?this.setState({hours:r},()=>this.recalcCron()):e==="dates"?this.setState({dates:r},()=>this.recalcCron()):e==="months"?this.setState({months:r},()=>this.recalcCron()):e==="dow"&&this.setState({dow:r},()=>this.recalcCron())}render(){const e=this.state.seconds!==!1?this.state.tab:this.state.tab+1,r=this.state.minutes==="*"||this.state.minutes==="*/1",n=this.state.seconds==="*"||this.state.seconds==="*/1";return y.createElement("div",{style:en.mainDiv},y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)"}},y.createElement(zr,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)",height:60}},Aa.convertCronToText(this.state.cron,this.props.language||"en"),y.createElement("span",{style:en.warning},n?U.t("ra_warning_every_second"):r?U.t("ra_warning_every_minute"):"")),y.createElement(gt,{control:y.createElement(tn,{checked:!!this.state.seconds,onChange:o=>this.setState({seconds:o.target.checked?"*":!1},()=>this.recalcCron())}),label:U.t("ra_use seconds")}),y.createElement(yM,{position:"static",sx:{"&.MuiAppBar-root":en.appBar},color:"secondary"},y.createElement(MU,{value:this.state.tab,style:en.appBar,color:"secondary",onChange:(o,a)=>this.setState({tab:a})},this.state.seconds!==!1&&y.createElement(Oi,{id:"sc_seconds",label:U.t("sc_seconds")}),y.createElement(Oi,{id:"minutes",label:U.t("sc_minutes")}),y.createElement(Oi,{id:"hours",label:U.t("sc_hours")}),y.createElement(Oi,{id:"dates",label:U.t("sc_dates")}),y.createElement(Oi,{id:"months",label:U.t("sc_months")}),y.createElement(Oi,{id:"dow",label:U.t("sc_dows")}))),e===0&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("seconds",60)),e===1&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("minutes",60)),e===2&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("hours",24)),e===3&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("dates",31)),e===4&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("months",12)),e===5&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("dow",7)))}}function Zs(t,e,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function l(h){try{f(n.next(h))}catch(d){i(d)}}function u(h){try{f(n.throw(h))}catch(d){i(d)}}function f(h){h.done?a(h.value):o(h.value).then(l,u)}f((n=n.apply(t,e||[])).next())})}const JZ=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 Ec(t,e,r){const n=YZ(t),{webkitRelativePath:o}=t,a=typeof e=="string"?e:typeof o=="string"&&o.length>0?o:`./${t.name}`;return typeof n.path!="string"&&rO(n,"path",a),rO(n,"relativePath",a),n}function YZ(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const n=e.split(".").pop().toLowerCase(),o=JZ.get(n);o&&Object.defineProperty(t,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return t}function rO(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}const KZ=[".DS_Store","Thumbs.db"];function ZZ(t){return Zs(this,void 0,void 0,function*(){return tf(t)&&QZ(t.dataTransfer)?nQ(t.dataTransfer,t.type):eQ(t)?tQ(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?rQ(t):[]})}function QZ(t){return tf(t)}function eQ(t){return tf(t)&&tf(t.target)}function tf(t){return typeof t=="object"&&t!==null}function tQ(t){return M0(t.target.files).map(e=>Ec(e))}function rQ(t){return Zs(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>Ec(r))})}function nQ(t,e){return Zs(this,void 0,void 0,function*(){if(t.items){const r=M0(t.items).filter(o=>o.kind==="file");if(e!=="drop")return r;const n=yield Promise.all(r.map(oQ));return nO(QN(n))}return nO(M0(t.files).map(r=>Ec(r)))})}function nO(t){return t.filter(e=>KZ.indexOf(e.name)===-1)}function M0(t){if(t===null)return[];const e=[];for(let r=0;r[...e,...Array.isArray(r)?QN(r):[r]],[])}function oO(t,e){return Zs(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const a=yield t.getAsFileSystemHandle();if(a===null)throw new Error(`${t} is not a File`);if(a!==void 0){const i=yield a.getFile();return i.handle=a,Ec(i)}}const n=t.getAsFile();if(!n)throw new Error(`${t} is not a File`);return Ec(n,(r=e==null?void 0:e.fullPath)!==null&&r!==void 0?r:void 0)})}function aQ(t){return Zs(this,void 0,void 0,function*(){return t.isDirectory?eP(t):sQ(t)})}function eP(t){const e=t.createReader();return new Promise((r,n)=>{const o=[];function a(){e.readEntries(i=>Zs(this,void 0,void 0,function*(){if(i.length){const l=Promise.all(i.map(aQ));o.push(l),a()}else try{const l=yield Promise.all(o);r(l)}catch(l){n(l)}}),i=>{n(i)})}a()})}function sQ(t){return Zs(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(n=>{const o=Ec(n,t.fullPath);e(o)},n=>{r(n)})})})}var fp={},aO;function iQ(){return aO||(aO=1,fp.__esModule=!0,fp.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",o=(t.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return r.some(function(i){var l=i.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?a===l.replace(/\/.*$/,""):o===l})}return!0}),fp}var cQ=iQ();const Cv=Ha(cQ);function sO(t){return dQ(t)||uQ(t)||rP(t)||lQ()}function lQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uQ(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function dQ(t){if(Array.isArray(t))return N0(t)}function iO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function cO(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:"",r=e.split(","),n=r.length>1?"one of ".concat(r.join(", ")):r[0];return{code:_Q,message:"File type must be ".concat(n)}},lO=function(e){return{code:gQ,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},uO=function(e){return{code:yQ,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},wQ={code:vQ,message:"Too many files"};function nP(t,e){var r=t.type==="application/x-moz-file"||mQ(t,e);return[r,r?null:bQ(e)]}function oP(t,e,r){if(_s(t.size))if(_s(e)&&_s(r)){if(t.size>r)return[!1,lO(r)];if(t.sizer)return[!1,lO(r)]}return[!0,null]}function _s(t){return t!=null}function xQ(t){var e=t.files,r=t.accept,n=t.minSize,o=t.maxSize,a=t.multiple,i=t.maxFiles,l=t.validator;return!a&&e.length>1||a&&i>=1&&e.length>i?!1:e.every(function(u){var f=nP(u,r),h=du(f,1),d=h[0],_=oP(u,n,o),g=du(_,1),b=g[0],w=l?l(u):null;return d&&b&&!w})}function rf(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function hp(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function dO(t){t.preventDefault()}function SQ(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function kQ(t){return t.indexOf("Edge/")!==-1}function CQ(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return SQ(t)||kQ(t)}function po(){for(var t=arguments.length,e=new Array(t),r=0;r1?o-1:0),i=1;it.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function WQ(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}var Qf=$.forwardRef(function(t,e){var r=t.children,n=nf(t,MQ),o=UQ(n),a=o.open,i=nf(o,NQ);return $.useImperativeHandle(e,function(){return{open:a}},[a]),y.createElement($.Fragment,null,r(Zt(Zt({},i),{},{open:a})))});Qf.displayName="Dropzone";var cP={disabled:!1,getFilesFromEvent:ZZ,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};Qf.defaultProps=cP;Qf.propTypes={children:se.func,accept:se.objectOf(se.arrayOf(se.string)),multiple:se.bool,preventDropOnDocument:se.bool,noClick:se.bool,noKeyboard:se.bool,noDrag:se.bool,noDragEventsBubbling:se.bool,minSize:se.number,maxSize:se.number,maxFiles:se.number,disabled:se.bool,getFilesFromEvent:se.func,onFileDialogCancel:se.func,onFileDialogOpen:se.func,useFsAccessApi:se.bool,autoFocus:se.bool,onDragEnter:se.func,onDragLeave:se.func,onDragOver:se.func,onDrop:se.func,onDropAccepted:se.func,onDropRejected:se.func,onError:se.func,validator:se.func};var A0={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function UQ(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Zt(Zt({},cP),t),r=e.accept,n=e.disabled,o=e.getFilesFromEvent,a=e.maxSize,i=e.minSize,l=e.multiple,u=e.maxFiles,f=e.onDragEnter,h=e.onDragLeave,d=e.onDragOver,_=e.onDrop,g=e.onDropAccepted,b=e.onDropRejected,w=e.onFileDialogCancel,S=e.onFileDialogOpen,k=e.useFsAccessApi,D=e.autoFocus,C=e.preventDropOnDocument,O=e.noClick,M=e.noKeyboard,T=e.noDrag,P=e.noDragEventsBubbling,j=e.onError,z=e.validator,E=$.useMemo(function(){return TQ(r)},[r]),L=$.useMemo(function(){return EQ(r)},[r]),G=$.useMemo(function(){return typeof S=="function"?S:fO},[S]),B=$.useMemo(function(){return typeof w=="function"?w:fO},[w]),F=$.useRef(null),H=$.useRef(null),K=$.useReducer(HQ,A0),ee=$v(K,2),Y=ee[0],X=ee[1],re=Y.isFocused,I=Y.isFileDialogActive,Q=$.useRef(typeof window<"u"&&window.isSecureContext&&k&&$Q()),me=function(){!Q.current&&I&&setTimeout(function(){if(H.current){var ne=H.current.files;ne.length||(X({type:"closeDialog"}),B())}},300)};$.useEffect(function(){return window.addEventListener("focus",me,!1),function(){window.removeEventListener("focus",me,!1)}},[H,I,B,Q]);var pe=$.useRef([]),ge=function(ne){F.current&&F.current.contains(ne.target)||(ne.preventDefault(),pe.current=[])};$.useEffect(function(){return C&&(document.addEventListener("dragover",dO,!1),document.addEventListener("drop",ge,!1)),function(){C&&(document.removeEventListener("dragover",dO),document.removeEventListener("drop",ge))}},[F,C]),$.useEffect(function(){return!n&&D&&F.current&&F.current.focus(),function(){}},[F,D,n]);var Ce=$.useCallback(function(q){j?j(q):console.error(q)},[j]),Re=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q),pe.current=[].concat(AQ(pe.current),[q.target]),hp(q)&&Promise.resolve(o(q)).then(function(ne){if(!(rf(q)&&!P)){var ye=ne.length,we=ye>0&&xQ({files:ne,accept:E,minSize:i,maxSize:a,multiple:l,maxFiles:u,validator:z}),ke=ye>0&&!we;X({isDragAccept:we,isDragReject:ke,isDragActive:!0,type:"setDraggedFiles"}),f&&f(q)}}).catch(function(ne){return Ce(ne)})},[o,f,Ce,P,E,i,a,l,u,z]),Te=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q);var ne=hp(q);if(ne&&q.dataTransfer)try{q.dataTransfer.dropEffect="copy"}catch{}return ne&&d&&d(q),!1},[d,P]),Pe=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q);var ne=pe.current.filter(function(we){return F.current&&F.current.contains(we)}),ye=ne.indexOf(q.target);ye!==-1&&ne.splice(ye,1),pe.current=ne,!(ne.length>0)&&(X({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),hp(q)&&h&&h(q))},[F,h,P]),Oe=$.useCallback(function(q,ne){var ye=[],we=[];q.forEach(function(ke){var ve=nP(ke,E),Ve=$v(ve,2),$e=Ve[0],Ye=Ve[1],lt=oP(ke,i,a),ft=$v(lt,2),ae=ft[0],_e=ft[1],ze=z?z(ke):null;if($e&&ae&&!ze)ye.push(ke);else{var Ke=[Ye,_e];ze&&(Ke=Ke.concat(ze)),we.push({file:ke,errors:Ke.filter(function(_t){return _t})})}}),(!l&&ye.length>1||l&&u>=1&&ye.length>u)&&(ye.forEach(function(ke){we.push({file:ke,errors:[wQ]})}),ye.splice(0)),X({acceptedFiles:ye,fileRejections:we,isDragReject:we.length>0,type:"setFiles"}),_&&_(ye,we,ne),we.length>0&&b&&b(we,ne),ye.length>0&&g&&g(ye,ne)},[X,l,E,i,a,u,_,g,b,z]),Fe=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q),pe.current=[],hp(q)&&Promise.resolve(o(q)).then(function(ne){rf(q)&&!P||Oe(ne,q)}).catch(function(ne){return Ce(ne)}),X({type:"reset"})},[o,Oe,Ce,P]),Me=$.useCallback(function(){if(Q.current){X({type:"openDialog"}),G();var q={multiple:l,types:L};window.showOpenFilePicker(q).then(function(ne){return o(ne)}).then(function(ne){Oe(ne,null),X({type:"closeDialog"})}).catch(function(ne){OQ(ne)?(B(ne),X({type:"closeDialog"})):DQ(ne)?(Q.current=!1,H.current?(H.current.value=null,H.current.click()):Ce(new 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 was provided."))):Ce(ne)});return}H.current&&(X({type:"openDialog"}),G(),H.current.value=null,H.current.click())},[X,G,B,k,Oe,Ce,L,l]),Be=$.useCallback(function(q){!F.current||!F.current.isEqualNode(q.target)||(q.key===" "||q.key==="Enter"||q.keyCode===32||q.keyCode===13)&&(q.preventDefault(),Me())},[F,Me]),We=$.useCallback(function(){X({type:"focus"})},[]),De=$.useCallback(function(){X({type:"blur"})},[]),pt=$.useCallback(function(){O||(CQ()?setTimeout(Me,0):Me())},[O,Me]),ce=function(ne){return n?null:ne},qe=function(ne){return M?null:ce(ne)},st=function(ne){return T?null:ce(ne)},rt=function(ne){P&&ne.stopPropagation()},Je=$.useMemo(function(){return function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne=q.refKey,ye=ne===void 0?"ref":ne,we=q.role,ke=q.onKeyDown,ve=q.onFocus,Ve=q.onBlur,$e=q.onClick,Ye=q.onDragEnter,lt=q.onDragOver,ft=q.onDragLeave,ae=q.onDrop,_e=nf(q,PQ);return Zt(Zt(R0({onKeyDown:qe(po(ke,Be)),onFocus:qe(po(ve,We)),onBlur:qe(po(Ve,De)),onClick:ce(po($e,pt)),onDragEnter:st(po(Ye,Re)),onDragOver:st(po(lt,Te)),onDragLeave:st(po(ft,Pe)),onDrop:st(po(ae,Fe)),role:typeof we=="string"&&we!==""?we:"presentation"},ye,F),!n&&!M?{tabIndex:0}:{}),_e)}},[F,Be,We,De,pt,Re,Te,Pe,Fe,M,T,n]),Se=$.useCallback(function(q){q.stopPropagation()},[]),ut=$.useMemo(function(){return function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne=q.refKey,ye=ne===void 0?"ref":ne,we=q.onChange,ke=q.onClick,ve=nf(q,RQ),Ve=R0({accept:E,multiple:l,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:ce(po(we,Fe)),onClick:ce(po(ke,Se)),tabIndex:-1},ye,H);return Zt(Zt({},Ve),ve)}},[H,r,l,Fe,n]);return Zt(Zt({},Y),{},{isFocused:re&&!n,getRootProps:Je,getInputProps:ut,rootRef:F,inputRef:H,open:ce(Me)})}function HQ(t,e){switch(e.type){case"focus":return Zt(Zt({},t),{},{isFocused:!0});case"blur":return Zt(Zt({},t),{},{isFocused:!1});case"openDialog":return Zt(Zt({},A0),{},{isFileDialogActive:!0});case"closeDialog":return Zt(Zt({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return Zt(Zt({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return Zt(Zt({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return Zt({},A0);default:return t}}function fO(){}function qQ(){const t=ta();return[...t.breakpoints.keys].reverse().reduce((r,n)=>{const o=VB(t.breakpoints.up(n));return!r&&o?n:r},null)||"xs"}function eh(){return t=>function(r){const n=qQ();return y.createElement(t,{...r,width:n})}}function VQ(t){const[e,r]=y.useState(t.input||t.value||""),[n,o]=y.useState("");return y.createElement(ra,{open:!0,onClose:()=>t.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:t.fullWidth!==void 0?t.fullWidth:!1},y.createElement(aa,{id:"form-dialog-title"},t.titleText),y.createElement(oa,null,y.createElement(If,null,t.promptText),y.createElement(Fr,{variant:"standard",autoFocus:!0,margin:"dense",error:!!n,helperText:n===!0||!n?"":n,value:e,label:t.labelText||"",type:t.type||"text",onKeyUp:a=>a.code==="Enter"&&e&&t.onClose(e),onChange:a=>{let i="";t.verify&&(i=!t.verify(a.target.value)),t.rule?r(t.rule(a.target.value)):r(a.target.value),o(i)},fullWidth:!0})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",disabled:!e||!!n,onClick:()=>t.onClose(e),color:"primary",startIcon:y.createElement(Hs,null)},t.applyText||U.t("ra_Ok")),y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>t.onClose(null),startIcon:y.createElement(Rs,null)},t.cancelText||U.t("ra_Cancel"))))}const XQ=eh()(VQ),GQ=t=>y.createElement("svg",{onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 486 486",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:t.className,style:t.style},y.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"}),y.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"})),I0=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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"})),JQ=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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"})),Pw=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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 YQ=t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,r)=>{const[n,o]=r.split(/ ?: ?/).map((a,i)=>i===0?a.replace(/\s+/g,""):a.trim());if(n&&o){const a=n.replace(/(\w)-(\w)/g,(l,u,f)=>`${u}${f.toUpperCase()}`);let i=o.trim();Number.isNaN(Number(o))||(i=Number(o)),e[n.startsWith("-")?n:a]=i}return e},{});function KQ(t=6){const e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=t;n>0;--n)r+=e[Math.round(Math.random()*(e.length-1))];return r}var ZQ=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],hO={"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 QQ(t,e){var a;const{key:r,level:n,...o}=e;switch(t.nodeType){case 1:return $.createElement(tee(t.nodeName),eee(t,r),mO(t.childNodes,n,o));case 3:{const i=((a=t.nodeValue)==null?void 0:a.toString())??"";if(!o.allowWhiteSpaces&&/^\s+$/.test(i)&&!/[\u00A0\u202F]/.test(i))return null;if(!t.parentNode)return i;const l=t.parentNode.nodeName.toLowerCase();return ZQ.includes(l)?(/\S/.test(i)&&console.warn(`A textNode is not allowed inside '${l}'. Your text "${i}" will be ignored`),null):i}case 8:return null;case 11:return mO(t.childNodes,n,e);default:return null}}function eee(t,e){const r={key:e};if(t instanceof Element){const n=t.getAttribute("class");n&&(r.className=n),[...t.attributes].forEach(o=>{switch(o.name){case"class":break;case"style":r[o.name]=YQ(o.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":r[hO[o.name]||o.name]=!0;break;default:r[hO[o.name]||o.name]=o.value}})}return r}function mO(t,e,r){const n=[...t].map((o,a)=>of(o,{...r,index:a,level:e+1})).filter(Boolean);return n.length?n:null}function tee(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}function of(t,e={}){if(!t||!(t instanceof Node))return null;const{actions:r=[],index:n=0,level:o=0,randomKey:a}=e;let i=t,l=`${o}-${n}`;const u=[];return a&&o===0&&(l=`${KQ()}-${l}`),Array.isArray(r)&&r.forEach(f=>{f.condition(i,l,o)&&(typeof f.pre=="function"&&(i=f.pre(i,l,o),i instanceof Node||(i=t)),typeof f.post=="function"&&u.push(f.post(i,l,o)))}),u.length?u:QQ(i,{key:l,level:o,...e})}function ree(t,e={}){if(!t||typeof t!="string")return null;const{includeAllNodes:r=!1,nodeOnly:n=!1,selector:o="body > *",type:a="text/html"}=e;try{const l=new DOMParser().parseFromString(t,a);if(r){const{childNodes:f}=l.body;return n?f:[...f].map(h=>of(h,e))}const u=l.querySelector(o)||l.body.childNodes[0];if(!(u instanceof Node))throw new TypeError("Error parsing input");return n?u:of(u,e)}catch{}return null}function lP(t,e={}){return typeof t=="string"?ree(t,e):t instanceof Node?of(t,e):null}var nee=Object.defineProperty,oee=(t,e,r)=>e in t?nee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mp=(t,e,r)=>oee(t,typeof e!="symbol"?e+"":e,r),_O="react-inlinesvg",gO=10,Mt={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function Mp(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function aee(){return iee()&&typeof window<"u"&&window!==null}async function uP(t,e){const r=await fetch(t,e),n=r.headers.get("content-type"),[o]=(n??"").split(/ ?; ?/);if(r.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(a=>o.includes(a)))throw new Error(`Content type isn't valid: ${o}`);return r.text()}function see(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}function iee(){if(!document)return!1;const t=document.createElement("div");t.innerHTML="";const e=t.firstChild;return!!e&&e.namespaceURI==="http://www.w3.org/2000/svg"}function cee(t){return t[Math.floor(Math.random()*t.length)]}function lee(t){const e="abcdefghijklmnopqrstuvwxyz",n=`${e}${e.toUpperCase()}1234567890`;let o="";for(let a=0;a{this.cacheApi=r}).catch(r=>{console.error(`Failed to open cache: ${r.message}`)}).finally(()=>{this.isReady=!0,this.subscribers.forEach(r=>r())}):this.isReady=!0}onReady(t){this.isReady?t():this.subscribers.push(t)}async get(t,e){var r;return await(this.cacheApi?this.fetchAndAddToPersistentCache(t,e):this.fetchAndAddToInternalCache(t,e)),((r=this.cacheStore.get(t))==null?void 0:r.content)??""}set(t,e){this.cacheStore.set(t,e)}isCached(t){var e;return((e=this.cacheStore.get(t))==null?void 0:e.status)===Mt.LOADED}async fetchAndAddToInternalCache(t,e){const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===Mt.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Mt.IDLE}),await this.fetchAndAddToInternalCache(t,e)});return}if(!(r!=null&&r.content)){this.cacheStore.set(t,{content:"",status:Mt.LOADING});try{const n=await uP(t,e);this.cacheStore.set(t,{content:n,status:Mt.LOADED})}catch(n){throw this.cacheStore.set(t,{content:"",status:Mt.FAILED}),n}}}async fetchAndAddToPersistentCache(t,e){var o,a,i;const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===Mt.LOADED)return;if((r==null?void 0:r.status)===Mt.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Mt.IDLE}),await this.fetchAndAddToPersistentCache(t,e)});return}this.cacheStore.set(t,{content:"",status:Mt.LOADING});const n=await((o=this.cacheApi)==null?void 0:o.match(t));if(n){const l=await n.text();this.cacheStore.set(t,{content:l,status:Mt.LOADED});return}try{await((a=this.cacheApi)==null?void 0:a.add(new Request(t,e)));const l=await((i=this.cacheApi)==null?void 0:i.match(t)),u=await(l==null?void 0:l.text())??"";this.cacheStore.set(t,{content:u,status:Mt.LOADED})}catch(l){throw this.cacheStore.set(t,{content:"",status:Mt.FAILED}),l}}async handleLoading(t,e){var n;let r=0;for(;((n=this.cacheStore.get(t))==null?void 0:n.status)===Mt.LOADING&&r=gO&&await e()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([t,e])=>({[t]:e}))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){const t=await this.cacheApi.keys();for(const e of t)await this.cacheApi.delete(e)}this.cacheStore.clear()}};function yO(t){const e=$.useRef();return $.useEffect(()=>{e.current=t}),e.current}function pee(t){const{baseURL:e,content:r,description:n,handleError:o,hash:a,preProcessor:i,title:l,uniquifyIDs:u=!1}=t;try{const f=fee(r,i),h=lP(f,{nodeOnly:!0});if(!h||!(h instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const d=dP(h,{baseURL:e,hash:a,uniquifyIDs:u});if(n){const _=d.querySelector("desc");_!=null&&_.parentNode&&_.parentNode.removeChild(_);const g=document.createElementNS("http://www.w3.org/2000/svg","desc");g.innerHTML=n,d.prepend(g)}if(typeof l<"u"){const _=d.querySelector("title");if(_!=null&&_.parentNode&&_.parentNode.removeChild(_),l){const g=document.createElementNS("http://www.w3.org/2000/svg","title");g.innerHTML=l,d.prepend(g)}}return d}catch(f){return o(f)}}function fee(t,e){return e?e(t):t}function dP(t,e){const{baseURL:r="",hash:n,uniquifyIDs:o}=e,a=["id","href","xlink:href","xlink:role","xlink:arcrole"],i=["href","xlink:href"],l=(u,f)=>i.includes(u)&&(f?!f.includes("#"):!1);return o&&[...t.children].forEach(u=>{var f;if((f=u.attributes)!=null&&f.length){const h=Object.values(u.attributes).map(d=>{const _=d,g=/url\((.*?)\)/.exec(d.value);return g!=null&&g[1]&&(_.value=d.value.replace(g[0],`url(${r}${g[1]}__${n})`)),_});a.forEach(d=>{const _=h.find(g=>g.name===d);_&&!l(d,_.value)&&(_.value=`${_.value}__${n}`)})}return u.children.length?dP(u,e):u}),t}var ac;function hee(t){const{cacheRequests:e=!0,children:r=null,description:n,fetchOptions:o,innerRef:a,loader:i=null,onError:l,onLoad:u,src:f,title:h,uniqueHash:d}=t,[_,g]=$.useReducer((F,H)=>({...F,...H}),{content:"",element:null,isCached:e&&ac.isCached(t.src),status:Mt.IDLE}),{content:b,element:w,isCached:S,status:k}=_,D=yO(t),C=yO(_),O=$.useRef(d??lee(8)),M=$.useRef(!1),T=$.useRef(!1),P=$.useCallback(F=>{M.current&&(g({status:F.message==="Browser does not support SVG"?Mt.UNSUPPORTED:Mt.FAILED}),l==null||l(F))},[l]),j=$.useCallback((F,H=!1)=>{M.current&&g({content:F,isCached:H,status:Mt.LOADED})},[]),z=$.useCallback(async()=>{const F=await uP(f,o);j(F)},[o,j,f]),E=$.useCallback(()=>{try{const F=pee({...t,handleError:P,hash:O.current,content:b}),H=lP(F);if(!H||!$.isValidElement(H))throw new Error("Could not convert the src to a React element");g({element:H,status:Mt.READY})}catch(F){P(new Error(F.message))}},[b,P,t]),L=$.useCallback(async()=>{const F=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(f);let H;if(F?H=F[1]?window.atob(F[2]):decodeURIComponent(F[2]):f.includes("{M.current&&g({content:"",element:null,isCached:!1,status:Mt.LOADING})},[]);$.useEffect(()=>{if(M.current=!0,!Mp()||T.current)return()=>{};try{if(k===Mt.IDLE){if(!aee())throw new Error("Browser does not support SVG");if(!f)throw new Error("Missing src");G()}}catch(F){P(F)}return T.current=!0,()=>{M.current=!1}},[]),$.useEffect(()=>{if(Mp()&&D)if(D.src!==f){if(!f){P(new Error("Missing src"));return}G()}else(D.title!==h||D.description!==n)&&E()},[n,E,P,G,D,f,h]),$.useEffect(()=>{C&&(C.status!==Mt.LOADING&&k===Mt.LOADING&&L(),C.status!==Mt.LOADED&&k===Mt.LOADED&&E(),C.status!==Mt.READY&&k===Mt.READY&&(u==null||u(f,S)))},[L,E,S,u,C,f,k]);const B=uee(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return Mp()?w?$.cloneElement(w,{ref:a,...B}):[Mt.UNSUPPORTED,Mt.FAILED].includes(k)?r:i:i}function mee(t){ac||(ac=new dee);const{loader:e}=t,r=$.useRef(!1),[n,o]=$.useState(ac.isReady);return $.useEffect(()=>{r.current||(ac.onReady(()=>{o(!0)}),r.current=!0)},[]),n?y.createElement(hee,{...t}):e}const _ee=window.location.hostname.endsWith("iobroker.in"),vO=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);function Rw(t){var e,r,n;if(t.src){if(typeof t.src=="string"){if(t.src.length<3)return t.sx?y.createElement(wt,{component:"span",sx:t.sx,title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:ht.clsx(t.className,"iconOwn")},t.src):y.createElement("span",{title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:ht.clsx(t.className,"iconOwn")},t.src);if(t.src.startsWith("data:image/svg"))return y.createElement(mee,{title:t.title||void 0,src:t.src,className:ht.clsx(t.className,"iconOwn"),width:((e=t.style)==null?void 0:e.width)||28,height:((r=t.style)==null?void 0:r.height)||((n=t.style)==null?void 0:n.width)||28,style:t.style||void 0});if(_ee&&!t.src.startsWith("http://")&&!t.src.startsWith("https://")){let o=t.src;return o.startsWith("./")?o=vO+o.substring(2):o.startsWith("/")||(o=vO+o),t.sx?y.createElement(wt,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${o}`,alt:t.alt||void 0,ref:t.ref,onError:a=>t.onError&&t.onError(a)}):y.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${o}`,alt:t.alt||void 0,ref:t.ref,onError:a=>t.onError&&t.onError(a)})}return t.sx?y.createElement(wt,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError}):y.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError})}return t.src}return null}const us={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"}},Lr={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp","ico"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function bO(t,e){let r="";const n=new Uint8Array((t==null?void 0:t.data)||t),o=n.byteLength;for(let a=0;a{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,o===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))});const n=ht.getFileExtension(r.href);this.state={text:null,code:null,ext:n,editing:!1,editingValue:null,copyPossible:!!n&&(Lr.code.includes(n)||Lr.txt.includes(n)),forceUpdate:Date.now(),changed:!1,imgError:!1}}readFile(){if(this.props.href){const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.socket.readFile(n,o).then(a=>{let i="";a.file!==void 0&&(i=a.file);const l={copyPossible:this.state.copyPossible,ext:this.state.ext};if(i.type==="Buffer")if(o.toLowerCase().endsWith(".json5")){l.ext="json5",l.copyPossible=!0;try{i=atob(bO(i,!0))}catch{console.error("Cannot convert base64 to string"),i=""}}else{const u=ht.detectMimeType(bO(i));u&&(l.ext=u,l.copyPossible=Lr.code.includes(u)||Lr.txt.includes(u))}l.copyPossible&&(l.ext&&Lr.txt.includes(l.ext)?(l.text=i,l.editingValue=i):l.ext&&Lr.code.includes(l.ext)&&(l.code=i,l.editingValue=i)),this.setState(l)}).catch(a=>window.alert(`Cannot read file: ${a}`))}}componentDidMount(){this.readFile();const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,o,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,o,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}getEditorOrViewer(){return y.createElement(Fr,{variant:"standard",style:us.textarea,multiline:!0,value:this.state.editingValue||this.state.code||this.state.text,slotProps:{htmlInput:{readOnly:!this.state.editing}}})}getContent(){return this.state.ext&&Lr.images.includes(this.state.ext)?this.state.imgError?y.createElement(Pw,{style:{...us.img,...this.props.getStyleBackgroundImage()}}):y.createElement(Rw,{onError:r=>{r.target.onerror=null,this.setState({imgError:!0})},style:{...us.img,...this.props.getStyleBackgroundImage()},src:`${this.props.href}?ts=${this.state.forceUpdate}`,alt:this.props.href}):this.state.ext&&Lr.audio.includes(this.state.ext)?y.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},y.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&Lr.video.includes(this.state.ext)?y.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},y.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},y.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 y.createElement(ra,{sx:{"&.MuiDialog-scrollPaper":us.dialog,"& .MuiDialog-paper":us.paper},scroll:"paper",open:!!this.props.href,onClose:()=>this.props.onClose(),fullWidth:!0,maxWidth:"xl","aria-labelledby":"ar_dialog_file_view_title"},y.createElement("div",{style:us.dialogTitle},y.createElement(aa,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&Lr.images.includes(this.state.ext)&&y.createElement("div",null,y.createElement(nr,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},y.createElement(Wb,null)))),y.createElement(oa,{style:us.content},this.getContent()),y.createElement(na,null,this.state.copyPossible?y.createElement(Qt,{color:"grey",onClick:r=>{r.stopPropagation(),r.preventDefault(),ht.copyToClipboard(this.state.text||this.state.code||"")},startIcon:y.createElement(VM,null)},this.props.t("Copy content")):null,this.state.editing?y.createElement(Qt,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:()=>this.onSave(),startIcon:y.createElement(S0,null)},this.props.t("Save")):null,y.createElement(Qt,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:y.createElement(Rs,null)},this.props.t("Close"))))}}const yee=eh()(gee),Ai=32,Ho=32,_p=120,wO=64,xO="Not found",gp={all:GM,images:iH,code:Ub,txt:aH,audio:GU,video:vH},Ne={root:{width:"100%",overflow:"hidden",height:"100%",position:"relative"},filesDiv:{width:"calc(100% - 16px)",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% - ${48*2+8}px)`,display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${wO}px`},itemTile:t=>({position:"relative",userSelect:"none",cursor:"pointer",height:_p,width:wO,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:t.palette.secondary.light,color:ht.invertColor(t.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:t=>({width:"100%",height:_p-32-16-8,display:"block",pl:1,color:t.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:t=>({position:"absolute",top:22,left:18,zIndex:1,color:t.palette.mode==="dark"?"#FFF":"#000"}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:_p-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:_p-32-16-8,display:"block",objectFit:"contain"},itemSelected:t=>({background:t.palette.primary.main,color:ht.invertColor(t.palette.primary.main,!0)}),itemTable:t=>({userSelect:"none",cursor:"pointer",height:Ai,display:"inline-flex",lineHeight:`${Ai}px`,"&:hover":{background:t.palette.secondary.light,color:ht.invertColor(t.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:t=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:t.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:t=>({display:"inline-block",width:Ho,height:Ai,minWidth:Ho,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${Ho/2}px`,"&:hover":{backgroundColor:t.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:t.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:Ho,height:Ai,minWidth:Ho,padding:0},itemAclButtonTable:{width:Ho,height:Ai,minWidth:Ho,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:Ho,height:Ai,minWidth:Ho,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:t=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:t.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:t=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:t.palette.secondary.main}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:t=>({pl:"2px",pr:"2px",cursor:"pointer","&:hover":{background:t.palette.primary.main}}),pathDivBreadcrumbSelected:{},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:t=>({color:t.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},Oa="0_userdata.0";function Ii(t){const e=(t||"").split("/");return e.length&&e.pop(),e.join("/")}function Ev(t){const e=ht.getFileExtension(t);return!!(e!=null&&e.toLowerCase().match(/[a-z]+/)&&e.length<5)}const kt="Table",Tv="Tile";function SO(t,e){return t.folder&&e.folder?t.name>e.name?1:t.namee.name?1:t.name{const a=`${r}/${n}`,i=a.lastIndexOf("/"),l=a.substring(0,i);console.log(`File changed ${a}[${o}]`),this.state.folders[l]&&(this._tempTimeout[l]&&clearTimeout(this._tempTimeout[l]),this._tempTimeout[l]=setTimeout(()=>{delete this._tempTimeout[l],this.browseFolder(l,null,!1,!0).then(u=>this.setState({folders:u})).catch(u=>console.error(`Cannot read folder: ${u.message}`))},300))});xe(this,"setStateBackgroundImage",()=>{const r=["light","dark","colored","delete"];this.setState(({backgroundImage:n})=>n&&r.indexOf(n)!==-1&&r.length-1!==r.indexOf(n)?(this.localStorage.setItem("files.backgroundImage",r[r.indexOf(n)+1]),{backgroundImage:r[r.indexOf(n)+1]}):(this.localStorage.setItem("files.backgroundImage",r[0]),{backgroundImage:r[0]}))});xe(this,"getStyleBackgroundImage",()=>{switch(this.state.backgroundImage){case"light":return Ne.backgroundImageLight;case"dark":return Ne.backgroundImageDark;case"colored":return Ne.backgroundImageColored;case"delete":return null;default:return null}});this.localStorage=window._localStorage||window.localStorage;const n=this.localStorage.getItem("files.expanded")||"[]";if(this.props.limitPath){const f=this.props.limitPath.split("/");this.limitToObjectID=f[0],this.limitToPath=f.length?f.length===1&&f[0]===""?null:f.join("/"):null,this.limitToPath&&this.limitToPath.endsWith("/")&&this.limitToPath.substring(0,this.limitToPath.length-1)}let o;try{o=JSON.parse(n),this.limitToPath&&(o=o.filter(f=>{var h;return f.startsWith(`${this.limitToPath}/`)||f===this.limitToPath||((h=this.limitToPath)==null?void 0:h.startsWith(`${f}/`))}))}catch{o=[]}let a;this.props.showViewTypeButton?a=this.localStorage.getItem("files.viewType")||kt:a=kt;let i=this.props.selected||this.localStorage.getItem("files.selected")||Oa,l;if(r.restrictToFolder){i=r.restrictToFolder,l=r.restrictToFolder;const f=r.restrictToFolder.split("/");o=[];let h="";for(let d=0;d{if(this.state.viewType===kt&&!this.findItem(this.state.selected)){const n=this.state.selected.split("/");for(;n.length&&!this.findItem(n.join("/"));)n.pop();let o;n.length?o=n.join("/"):o=Oa,this.setState({selected:o,path:o,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){if(this.mounted){const r=document.getElementById(this.state.selected);r==null||r.scrollIntoView()}}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(r=>console.error(`Cannot load folders: ${r}`)),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(r=>r&&clearTimeout(r)),this._tempTimeout={}}browseFoldersCb(r,n,o){if(!(r!=null&&r.length))o(n);else{const a=r.shift();a?this.browseFolder(a,n).catch(i=>console.error(`Cannot read folder ${a}: ${i.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(r,n,o),0)}):setTimeout(()=>this.browseFoldersCb(r,n,o),0)}}browseFolders(r,n){let o;return n?o=n:(o={},Object.keys(this.state.folders).forEach(a=>o[a]=this.state.folders[a])),r!=null&&r.length?new Promise(a=>{this.browseFoldersCb(r,o,a)}):Promise.resolve(o)}readDirSerial(r,n){return new Promise((o,a)=>{this.browseList&&(this.browseList.push({resolve:o,reject:a,adapter:r,relPath:n}),this.browseListRunning||this.processBrowseList())})}processBrowseList(r=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.setState({queueLength:this.browseList.length}),this.browseList[0].processing=!0,this.props.socket.readDir(this.browseList[0].adapter,this.browseList[0].relPath).then(n=>{if(this.browseList){const o=this.browseList.shift();if(o){const a=o.resolve;o.resolve=null,o.reject=null,o.adapter=null,o.relPath=null,a&&a(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(n=>{if(this.browseList){const o=this.browseList.shift();if(o){const a=o.reject;o.resolve=null,o.reject=null,o.adapter=null,o.relPath=null,a&&a(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(r,n,o,a){let i;if(n?i=n:(i={},Object.keys(this.state.folders).forEach(_=>{i[_]=this.state.folders[_]})),i[r]&&!a)return o?Promise.resolve(i):new Promise((_,g)=>{Promise.all(i[r].filter(b=>b.folder).map(b=>this.browseFolder(b.id,i,!0).catch(()=>{}))).then(()=>_(i)).catch(b=>g(new Error(b)))});if(!r||r==="/"){try{let _=await this.props.socket.readMetaItems();const g=[];let b=null;if(this.state.restrictToFolder){const S=this.state.restrictToFolder.split("/")[0];_=_.filter(k=>k._id===S)}else this.state.expertMode||(_=_.filter(S=>!S._id.endsWith(".admin")));const w=_.findIndex(S=>S._id==="system.meta.uuid");if(w!==-1&&_.splice(w,1),_.forEach(S=>{if(this.limitToObjectID&&this.limitToObjectID!==S._id)return;const k={id:S._id,name:S._id,title:S.common&&S.common.name||S._id,meta:!0,from:S.from,ts:S.ts,color:S.common&&S.common.color,icon:S.common&&S.common.icon,folder:!0,acl:S.acl,level:0};k.id===Oa?b=k:g.push(k)}),g.sort((S,k)=>S.id>k.id?1:S.idS.folder).map(S=>this.browseFolder(S.id,i,!0).catch(()=>{}))).then(()=>i)}catch(_){const g=_;this.initialReadFinished&&window.alert(`Cannot read meta items: ${g.message}`),i[r||"/"]=[]}return i}const l=r.split("/"),u=l.length,f=l.shift(),h=l.join("/");let d;try{d=await this.readDirSerial(f||"",h)}catch(_){if(_==="Not exists"&&f==="0_userdata.0")d=[];else throw _}try{const _=[];if(d.forEach(g=>{var w;const b={id:`${r}/${g.file}`,ext:ht.getFileExtension(g.file),folder:g.isDir,name:g.file,size:(w=g.stats)==null?void 0:w.size,modified:g.modifiedAt,acl:g.acl,level:u};this.state.restrictToFolder?(b.folder&&(b.id.startsWith(`${this.state.restrictToFolder}/`)||b.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${b.id}/`))||b.id.startsWith(`${this.state.restrictToFolder}/`))&&_.push(b):this.limitToPath?(b.folder&&(b.id.startsWith(`${this.limitToPath}/`)||b.id===this.limitToPath||this.limitToPath.startsWith(`${b.id}/`))||b.id.startsWith(`${this.limitToPath}/`))&&_.push(b):_.push(b)}),_.sort(SO),i[r]=_,!o)return Promise.all(_.filter(g=>g.folder).map(g=>this.browseFolder(g.id,i,!0))).then(()=>i)}catch(_){const g=_;this.initialReadFinished&&window.alert(`Cannot read ${f}${h?`/${h}`:""}: ${g==null?void 0:g.message}`),i[r]=[]}return i}toggleFolder(r,n){n==null||n.stopPropagation();const o=[...this.state.expanded],a=o.indexOf(r.id);a===-1?(o.push(r.id),o.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(o)),r.temp?this.setState({expanded:o}):this.browseFolder(r.id).then(i=>this.setState({expanded:o,folders:i})).catch(i=>window.alert(i===xO?this.props.t('ra_Cannot find "%s"',r.id):this.props.t('ra_Cannot read "%s"',r.id)))):(o.splice(a,1),this.localStorage.setItem("files.expanded",JSON.stringify(o)),this.setState({expanded:o}))}changeFolder(r,n){r==null||r.stopPropagation(),this.lastSelect=Date.now();let o=n||Ii(this.state.currentDir);if(o==="/"&&(o=""),this.localStorage.setItem("files.currentDir",o),n&&r&&(r.altKey||r.shiftKey||r.ctrlKey||r.metaKey)){this.setState({selected:o});return}if(o&&!this.state.folders[o]){this.browseFolder(o).then(a=>this.setState({folders:a,path:o,currentDir:o,selected:o,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(a=>console.error(`Cannot read folder: ${a.message}`));return}this.setState({currentDir:o,selected:o,path:o,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))}select(r,n,o){n&&n.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",r),this.setState({selected:r,path:r,pathFocus:!1},()=>{if(this.props.onSelect){const a=ht.getFileExtension(r);(!this.props.filterFiles||a&&this.props.filterFiles.includes(a))&&(!this.state.filterByType||a&&Lr[this.state.filterByType].includes(a))?this.props.onSelect(r,!1,!!this.state.folders[r]):this.props.onSelect("")}o&&o()})}getText(r){if(r)return typeof r=="object"?r[this.props.lang]||r.en||void 0:r}renderFolder(r,n){if(this.state.viewType===kt&&this.state.filterEmpty&&(!this.state.folders[r.id]||!this.state.folders[r.id].length)&&r.id!==Oa&&!r.temp)return null;const o=n?JQ:I0,a=this.state.viewType===kt?r.level*this.levelPadding:0,i=r.name===Oa,l=i||r.name==="vis.0"||r.name==="vis-2.0",u=ht.getStyle(this.props.theme,Ne[`itemFolderIcon${this.state.viewType}`],l&&Ne.specialFolder);return y.createElement(wt,{component:"div",key:r.id,id:r.id,style:this.state.viewType===kt?{marginLeft:a,width:`calc(100% - ${a}px`}:{},onClick:f=>this.state.viewType===kt?this.select(r.id,f):this.changeFolder(f,r.id),onDoubleClick:f=>this.state.viewType===kt&&this.toggleFolder(r,f),title:this.getText(r.title),className:"browserItem",sx:ht.getStyle(this.props.theme,Ne[`item${this.state.viewType}`],Ne[`itemFolder${this.state.viewType}`],this.state.selected===r.id?Ne.itemSelected:{},r.temp?Ne.itemFolderTemp:{})},y.createElement(o,{style:u,onClick:this.state.viewType===kt?f=>this.toggleFolder(r,f):void 0}),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,Ne[`itemName${this.state.viewType}`],Ne[`itemNameFolder${this.state.viewType}`])},i?this.props.t("ra_User files"):r.name),y.createElement(wt,{component:"div",style:Ne[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.state.folders[r.id]?this.state.folders[r.id].length:""),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.props.expertMode?this.formatAcl(r.acl):null),this.state.viewType===kt&&this.props.expertMode?y.createElement(wt,{component:"div",sx:{...Ne.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===kt&&this.props.allowDownload?y.createElement("div",{style:Ne[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===kt&&this.props.allowDelete&&this.state.folders[r.id]&&this.state.folders[r.id].length?y.createElement(nr,{"aria-label":"delete",onClick:f=>{f.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:Ne[`itemDeleteButton${this.state.viewType}`],size:"large"},y.createElement(Dp,{fontSize:"small"})):this.state.viewType===kt&&this.props.allowDelete?y.createElement(wt,{component:"div",sx:Ne[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return y.createElement(wt,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:r=>this.changeFolder(r),title:this.props.t("ra_Back to %s",Ii(this.state.currentDir)),className:"browserItem",sx:ht.getStyle(this.props.theme,Ne[`item${this.state.viewType}`],Ne[`itemFolder${this.state.viewType}`])},y.createElement(I0,{style:ht.getStyle(this.props.theme,Ne[`itemFolderIcon${this.state.viewType}`])}),y.createElement(VU,{sx:Ne.itemFolderIconBack}),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,Ne[`itemName${this.state.viewType}`],Ne[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(r){return y.createElement("div",{style:Ne[`itemSize${this.state.viewType}`]},r||r===0?ht.formatBytes(r):"")}formatAcl(r){const n=r?r.permissions||r.file:0;let o;return n?o=n.toString(16).padStart(3,"0"):o="",y.createElement("div",{style:Ne[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?y.createElement(nr,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:Ne[`itemAclButton${this.state.viewType}`]},o||"---"):o||"---")}getFileIcon(r){switch(r){case"json":case"json5":return y.createElement(JU,{style:Ne[`itemIcon${this.state.viewType}`]});case"css":return y.createElement(YU,{style:Ne[`itemIcon${this.state.viewType}`]});case"js":case"ts":return y.createElement(Ub,{style:Ne[`itemIcon${this.state.viewType}`]});case"html":case"md":return y.createElement(XM,{style:Ne[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return y.createElement(uH,{style:Ne[`itemIcon${this.state.viewType}`]});default:return y.createElement(GM,{style:Ne[`itemIcon${this.state.viewType}`]})}}static getEditFile(r){switch(r){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":return!0;default:return!1}}renderFile(r){const n=this.state.viewType===kt?r.level*this.levelPadding:0,o=ht.getFileExtension(r.name);return y.createElement(wt,{component:"div",key:r.id,id:r.id,onDoubleClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&Lr[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:o})},onClick:a=>this.select(r.id,a),style:this.state.viewType===kt?{marginLeft:n,width:`calc(100% - ${n}px)`}:{},className:"browserItem",sx:ht.getStyle(this.props.theme,Ne[`item${this.state.viewType}`],Ne[`itemFile${this.state.viewType}`],this.state.selected===r.id?Ne.itemSelected:void 0)},o&&Lr.images.includes(o)?this.state.fileErrors.includes(r.id)?y.createElement(Pw,{style:{...Ne[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...Ne[`itemNoImage${this.state.viewType}`]}}):y.createElement(Rw,{onError:a=>{a.target.onerror=null;const i=[...this.state.fileErrors];i.includes(r.id)||(i.push(r.id),this.setState({fileErrors:i}))},style:{...Ne[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+r.id,alt:r.name}):this.getFileIcon(o),y.createElement(wt,{component:"div",sx:Ne[`itemName${this.state.viewType}`]},r.name),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(r.size)),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.props.expertMode?this.formatAcl(r.acl):null),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.props.expertMode&&Aw.getEditFile(o)?y.createElement(nr,{"aria-label":"edit",onClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&Lr[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:o})},sx:Ne.itemDeleteButtonTable,size:"large"},y.createElement(rH,{fontSize:"small"})):y.createElement(wt,{component:"div",sx:Ne[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===kt&&this.props.allowDownload?y.createElement(wt,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:Ne.itemDownloadButtonTable,tabIndex:0,download:r.id,href:this.imagePrefix+r.id,onClick:a=>a.stopPropagation()},y.createElement(fH,null)):null,this.state.viewType===kt&&this.props.allowDelete&&r.id!=="vis.0/"&&r.id!=="vis-2.0/"&&r.id!==Oa?y.createElement(nr,{"aria-label":"delete",onClick:a=>{a.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:Ne[`itemDeleteButton${this.state.viewType}`],size:"large"},y.createElement(Dp,{fontSize:"small"})):this.state.viewType===kt&&this.props.allowDelete?y.createElement(wt,{component:"div",sx:Ne[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(r){if(this.state.folders&&this.state.folders[r]){if(this.state.viewType===Tv){const o=[];return r&&r!=="/"&&o.push(this.renderBackFolder()),this.state.folders[r].forEach(a=>{a.folder?o.push(this.renderFolder(a)):(!this.props.filterFiles||a.ext&&this.props.filterFiles.includes(a.ext))&&(!this.state.filterByType||a.ext&&Lr[this.state.filterByType].includes(a.ext))&&o.push(this.renderFile(a))}),o}const n=[];return this.state.folders[r].forEach(o=>{if(o.folder){const a=this.state.expanded.includes(o.id),i=this.renderFolder(o,a);if(Array.isArray(i)?i.forEach(l=>n.push(l)):n.push(i),this.state.folders[o.id]&&a){const l=this.renderItems(o.id);Array.isArray(l)?l.forEach(u=>n.push(u)):n.push(l)}}else(!this.props.filterFiles||o.ext&&this.props.filterFiles.includes(o.ext))&&(!this.state.filterByType||o.ext&&Lr[this.state.filterByType].includes(o.ext))&&n.push(this.renderFile(o))}),n}return y.createElement("div",{style:{position:"relative"}},y.createElement(P9,{key:r,color:"secondary",size:24}),y.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const r=this.props.showTypeSelector?gp[this.state.filterByType||"all"]||gp.all:null,n=this.findFirstFolder(this.state.selected);return y.createElement(Bb,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?y.createElement(nr,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...Ne.menuButton,...this.state.restrictToFolder?Ne.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},y.createElement(oH,{fontSize:"small"})):null,this.props.showExpertButton?y.createElement(nr,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...Ne.menuButton,...this.state.expertMode?Ne.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},y.createElement(GQ,null)):null,this.props.showViewTypeButton?y.createElement(nr,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:Ne.menuButton,"aria-label":"view mode",onClick:()=>{const o=this.state.viewType===kt?Tv:kt;this.localStorage.setItem("files.viewType",o);let a=this.state.selected;Ev(a)&&(a=Ii(a)),this.setState({viewType:o,currentDir:a},()=>{this.state.viewType===kt&&this.scrollToSelected()})},size:"small"},this.state.viewType!==kt?y.createElement(cH,{fontSize:"small"}):y.createElement(bH,{fontSize:"small"})):null,y.createElement(nr,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:Ne.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"},y.createElement(nH,{fontSize:"small"})),y.createElement(nr,{edge:"start",title:this.props.t("ra_Reload files"),style:Ne.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},y.createElement(YM,{fontSize:"small"})),this.props.allowCreateFolder?y.createElement(nr,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:Ne.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},y.createElement(tH,{fontSize:"small"})):null,this.props.allowUpload?y.createElement(nr,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:Ne.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},y.createElement(HC,{fontSize:"small"})):null,this.props.showTypeSelector&&r?y.createElement(Op,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:Ne.tooltip}}},y.createElement(nr,{size:"small",onClick:o=>this.setState({showTypesMenu:o.target})},y.createElement(r,{fontSize:"small"}))):null,this.state.showTypesMenu?y.createElement(jb,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(gp).map(o=>{const a=gp[o];return y.createElement(fr,{key:o,selected:this.state.filterByType===o,onClick:()=>{o==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",o),this.setState({filterByType:o,showTypesMenu:null}))}},y.createElement(w7,null,y.createElement(a,{fontSize:"small"})),y.createElement(C7,null,this.props.t(`ra_fileType_${o}`)))})):null,y.createElement(Op,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:Ne.tooltip}}},y.createElement(nr,{color:"inherit",edge:"start",style:Ne.menuButton,onClick:this.setStateBackgroundImage,size:"small"},y.createElement(Wb,{fontSize:"small"}))),this.state.viewType!==kt&&this.props.allowDelete?y.createElement(Op,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:Ne.tooltip}}},y.createElement("span",null,y.createElement(nr,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===Oa,color:"inherit",edge:"start",style:Ne.menuButton,onClick:o=>{o.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},y.createElement(Dp,{fontSize:"small"})))):null)}findItem(r,n){if(n=n||this.state.folders,!n)return null;const o=r.split("/");o.pop();const a=o.join("/")||"/";return n[a]&&n[a].find(i=>i.id===r)||null}renderInputDialog(){if(this.state.addFolder){const r=this.findFirstFolder(this.state.selected);return r?y.createElement(XQ,{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:n=>this.state.folders[r].find(o=>o.name===n)?"":this.props.t("ra_Duplicate name"),onClose:n=>{if(n){const o={};Object.keys(this.state.folders).forEach(u=>o[u]=this.state.folders[u]);const a=this.findItem(r),i=`${r}/${n}`;o[r].push({id:i,level:((a==null?void 0:a.level)||0)+1,name:n,folder:!0,temp:!0}),o[r].sort(SO),o[i]=[];const l=[...this.state.expanded];l.includes(r)||(l.push(r),l.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(l)),this.setState({addFolder:!1,folders:o,expanded:l},()=>this.select(i))}else this.setState({addFolder:!1})},replace:n=>n.replace(/[^-_\w]/,"_")}):(window.alert(this.props.t("ra_Invalid parent folder!")),null)}return null}componentDidUpdate(){this.setOpacityTimer&&clearTimeout(this.setOpacityTimer),this.setOpacityTimer=setTimeout(()=>{this.setOpacityTimer=null;const r=window.document.getElementsByClassName("browserItem");for(let n=0;nthis.setState({uploadFile:!1})},y.createElement(Rs,null)),y.createElement(Qf,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:r=>{let n=r.length;r.forEach(o=>{const a=new FileReader;a.onabort=()=>console.log("file reading was aborted"),a.onerror=()=>console.log("file reading has failed"),a.onload=()=>{const i=this.findFirstFolder(this.state.selected);if(!i)window.alert(this.props.t("ra_Invalid parent folder!"));else{const l=`${i}/${o.name}`;this.uploadFile(l,a.result).then(()=>{--n||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const u=[...this.state.expanded];u.includes(i)||(u.push(i),u.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(u))),this.setState({expanded:u},()=>this.select(l))}else setTimeout(()=>this.browseFolder(i,null,!1,!0).then(u=>{const f=[...this.state.expanded];f.includes(i)||(f.push(i),f.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(f))),this.setState({folders:u,expanded:f},()=>this.select(l))}),500)})})}},a.readAsArrayBuffer(o)})}},({getRootProps:r,getInputProps:n})=>y.createElement("div",{style:{...Ne.uploadDiv,...this.state.uploadFile==="dragging"?Ne.uploadDivDragging:void 0},...r()},y.createElement("input",{...n()}),y.createElement(wt,{component:"div",sx:Ne.uploadCenterDiv},y.createElement("div",{style:Ne.uploadCenterTextAndIcon},y.createElement(HC,{style:Ne.uploadCenterIcon}),y.createElement("div",{style:Ne.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(r){const n=this.findItem(r);if(n!=null&&n.folder)return(this.state.folders[r]?Promise.all(this.state.folders[r].map(i=>this.deleteRecursive(i.id))):Promise.resolve()).then(()=>{if(n.level>=1){const i=r.split("/"),l=i.shift();this.props.socket.deleteFolder(l||"",i.join("/")).then(()=>{const u=JSON.parse(JSON.stringify(this.state.folders));delete u[n.id];const f=Ii(n.id),h=u[f];if(h){const d=h.findIndex(_=>_.id===n.id);d!==-1&&h.splice(d,1),this.select(f,null,()=>this.setState({folders:u}))}})}});const o=r.split("/"),a=o.shift();return o.length?this.props.socket.deleteFile(a||"",o.join("/")).catch(i=>window.alert(`Cannot delete file: ${i}`)):Promise.resolve()}deleteItem(r){r=r||this.state.deleteItem,this.setState({deleteItem:""},()=>this.deleteRecursive(r).then(()=>{const n={},o=this.state.expanded.indexOf(r);if(o!==-1){const a=[...this.state.expanded];a.splice(o,1),this.localStorage.setItem("files.expanded",JSON.stringify(a)),n.expanded=a}if(this.state.selected===r){const a=this.state.selected.split("/");a.pop(),n.selected=a.join("/")}if(this.supportSubscribes)this.setState(n);else{const a=this.findFirstFolder(r),i={};Object.keys(this.state.folders).forEach(l=>{l!==a&&!l.startsWith(`${a}/`)&&(i[l]=this.state.folders[l])}),n.folders=i,this.setState(n,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],i).then(l=>this.setState({folders:l})).catch(l=>console.error(l))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?y.createElement(ra,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},y.createElement(aa,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),y.createElement(oa,null,y.createElement(If,null,this.props.t("ra_Are you sure?"))),y.createElement(na,null,y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>{this.suppressDeleteConfirm=Date.now()+6e4*5,this.deleteItem("")}},this.props.t("ra_Delete (no confirm for 5 mins)")),y.createElement(Qt,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),y.createElement(Qt,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){const r=this.props.FileViewer||yee;return this.state.viewer?y.createElement(r,{supportSubscribes:this.supportSubscribes,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile,themeType:this.props.themeType,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?y.createElement(KM,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(r){this.cacheFolders=this.cacheFolders||JSON.parse(JSON.stringify(this.state.folders));let n;r.forEach(o=>{const a=this.findItem(o.id,this.cacheFolders);a&&JSON.stringify(a.acl)!==JSON.stringify(o.acl)&&(a.acl=o.acl,n=!0)}),n&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const o=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:o})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let r=this.state.path;Ev(this.state.path)&&(r=Ii(this.state.path)),new Promise(n=>{this.state.folders[r]?n(!0):this.browseFolder(r).then(o=>this.setState({folders:o},()=>n(!0))).catch(o=>this.setState({errorText:o===xO?this.props.t('ra_Cannot find "%s"',r):this.props.t('ra_Cannot read "%s"',r)}))}).then(n=>n&&this.setState({selected:this.state.path,currentDir:r,pathFocus:!1})).catch(n=>console.error(n))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const r=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),n=[];return y.createElement(NM,{style:{paddingLeft:8}},r.map((o,a)=>{o&&n.push(o);const i=n.join("/");return athis.changeFolder(l,i||"/")},o||this.props.t("ra_Root")):y.createElement("div",{style:Ne.pathDivBreadcrumbSelected,key:`${this.state.selected}_${a}`,onClick:()=>this.setState({pathFocus:!0})},o)}))}renderPath(){return y.createElement(wt,{component:"div",key:"path",sx:Ne.pathDiv},this.state.pathFocus?y.createElement(mo,{value:this.state.path,onKeyDown:r=>{r.key==="Enter"?this.changeToPath():r.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:y.createElement(nr,{size:"small",onClick:()=>this.changeToPath()},y.createElement(JM,null)),onBlur:()=>this.changeToPath(),onChange:r=>this.setState({path:r.target.value}),style:Ne.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(r=>console.error(`Cannot load folders: ${r}`))})},300)),y.createElement("div",{style:{...Ne.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===Tv?this.renderPath():null,y.createElement("div",{style:{...Ne.filesDiv,...Ne[`filesDiv${this.state.viewType}`]},onClick:r=>{this.state.viewType!==kt&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(r,this.state.currentDir||"/"):r.stopPropagation())}},this.state.viewType===kt?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==kt?y.createElement("div",{style:Ne.filesDivHint},this.props.t("ra_select_folder_hint")):null),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())):y.createElement(jM,null)}}const vee=eh()(Aw),bee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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 wee(t){const e=document.createElement("div");e.innerHTML=t;const r=e.firstElementChild;return r!=null&&r.remove?r.remove():r&&e.removeChild(r),e.remove(),r}function xee(t){const e={};if(!t)return e;for(let r,n=0;na[1].toUpperCase()),e[r]=t[n].value}return e}const ys=class ys extends $.Component{constructor(r){var n;super(r);xe(this,"svg");this.state={svg:!!((n=this.props.src)!=null&&n.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(r,n){var i;const o={};let a=!1;return r&&n&&r.src!==n.src&&(o.src=r.src,o.svg=(i=r.src)==null?void 0:i.startsWith("data:"),o.created=!1,a=!0),r&&n&&r.color!==n.color&&(o.color=r.color,o.created=!1,a=!0),r&&n&&r.showError!==n.showError&&(o.showError=r.showError,a=!0),a?o:null}getSvgFromData(r){const n="data:image/svg+xml;base64,";if(!r.startsWith(n))return null;r=r.substring(n.length);try{r=atob(r);const o=wee(r),a=o.innerHTML,i=xee(o.attributes);return o.remove(),y.createElement("svg",{className:this.props.className,style:this.state.color?{color:this.state.color}:{},...i,dangerouslySetInnerHTML:{__html:a}})}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 y.createElement(Pw,{className:this.props.className});if(ys.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let r=(this.props.imagePrefix||"")+this.state.src;return r.startsWith("./")?r=ys.REMOTE_PREFIX+r.substring(2):r.startsWith("/")||(r=ys.REMOTE_PREFIX+r),y.createElement("img",{className:this.props.className,src:`https://remote-files.iobroker.in${r}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return y.createElement("img",{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}};xe(ys,"REMOTE_SERVER",window.location.hostname.includes("iobroker.in")),xe(ys,"REMOTE_PREFIX",window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1));let kO=ys;class pP extends y.Component{constructor(){super(...arguments);xe(this,"handleFileSelect",r=>{const n=r.target,o=n==null?void 0:n.files;if(!o||!o.length){console.error("No files found. Please report to developers");return}const a=o[0];if(a){const i=new window.FileReader;i.onload=()=>{var u;const l=((u=i.result)==null?void 0:u.toString())||"";try{const f=JSON.parse(l);f.native&&f.common?f.common.name!==this.props.common.name?this.props.onError&&this.props.onError(U.t("ra_otherConfig",f.common.name)):this.props.onLoad&&this.props.onLoad(f.native):this.props.onError&&this.props.onError(U.t("ra_invalidConfig"))}catch(f){this.props.onError&&this.props.onError(f==null?void 0:f.toString())}},i.readAsText(a)}else alert("Failed to open JSON File")})}static generateFile(r,n){const o=window.document.createElement("a");o.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(n,null,2))}`),o.setAttribute("download",r),o.style.display="none",window.document.body.appendChild(o),o.click(),window.document.body.removeChild(o)}download(){const r={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};r.common.news&&delete r.common.news,r.common.titleLang&&delete r.common.titleLang,r.common.desc&&delete r.common.desc,pP.generateFile(`${r._id}.json`,r)}upload(){const r=window.document.createElement("input");r.setAttribute("type","file"),r.setAttribute("id","files"),r.setAttribute("opacity","0"),r.addEventListener("change",this.handleFileSelect,!1),r.click()}render(){return y.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?y.createElement(Rw,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?y.createElement(Cs,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{const r=window.open(this.props.common.readme,"_blank");r==null||r.focus()}},y.createElement(sH,null)):null,y.createElement(Cs,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:U.t("ra_Load configuration from file"),onClick:()=>this.upload()},y.createElement(yH,null)),y.createElement(Cs,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:U.t("ra_Save configuration to file"),onClick:()=>this.download()},y.createElement(gH,null)))}}const See=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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"})),kee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.createElement("g",{fill:"currentColor"},y.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),y.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),Cee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.createElement("g",{fill:"currentColor"},y.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),y.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),y.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),y.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),$ee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),y.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"}));y.createElement($ee,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(kee,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(Cee,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(See,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(XM,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(bee,{className:"itemIcon",style:{color:"#7da7ff",verticalAlign:"middle"}}),y.createElement(lH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(mH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(hH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(_H,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(dH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(pH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(eH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(Ub,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(I0,{className:"itemIcon itemIconFolder",style:{verticalAlign:"middle"}});const de={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:t=>({background:t.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:t=>({background:t.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowDates:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#747a86"}),rowWeeks:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#717680"}),rowMonths:t=>({background:t.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:t=>({background:t.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:t=>({background:t.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDaysDows:t=>({background:t.palette.mode!=="dark"?"#EEEAFF":"#573544",pl:"10px",pb:"10px"}),rowDowsDows:t=>({background:t.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},Ov=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],yp=["January","February","March","April","May","June","July","August","September","October","November","December"],Dv={minutes:"minutes",hours:"hours"},Ol=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function qo(t){return t<10?`0${t}`:`${t}`}const CO={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function Mv(t){const e=t.split(".");return e.length===3?`${e[2]}-${e[1]}-${e[0]}`:""}class Tr extends $.Component{constructor(r){super(r);xe(this,"refFrom");xe(this,"refTo");xe(this,"refOnce");xe(this,"timerOnce",null);xe(this,"timerFrom",null);xe(this,"timerTo",null);let n;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{n=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(n=this.props.schedule);(!n||!Object.keys(n).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),n=CO),n={...CO,...n},n.valid.from=n.valid.from||Tr.now2string(),this.refFrom=y.createRef(),this.refTo=y.createRef(),this.refOnce=y.createRef(),this.state={schedule:n,desc:Tr.state2text(n)},JSON.stringify(n)!==this.props.schedule&&setTimeout(()=>this.props.onChange&&this.props.onChange(JSON.stringify(n)),100)}onChange(r,n){const o=JSON.stringify(r)!==JSON.stringify(this.state.schedule);if(n||o){o&&this.setState({schedule:r,desc:Tr.state2text(r)});const a=JSON.parse(JSON.stringify(r));if(a.period.once){const i=a.period.once;delete a.period,a.period={once:i},delete a.valid}else if(a.period.days){const i=a.period.days,l=a.period.dows;delete a.period,a.period={days:i},l&&l!=="[]"&&(a.period.dows=l)}else if(a.period.weeks){const i=a.period.weeks,l=a.period.dows;delete a.period,a.period={weeks:i},l&&l!=="[]"&&(a.period.dows=l)}else if(a.period.months){const i=a.period.months,l=a.period.dates;delete a.period,a.period={months:i},l&&l!=="[]"&&(a.period.dates=l)}else if(a.period.years){const i=a.period.years,l=a.period.yearMonth,u=a.period.yearDate;delete a.period,a.period={years:i,yearDate:u},l&&(a.period.yearMonth=l)}if(a.time.exactTime?(delete a.time.end,delete a.time.mode,delete a.time.interval):delete a.time.exactTime,a.valid){if(a.valid.to||delete a.valid.to,a.period.days===1||a.period.weeks===1||a.period.months===1||a.period.years===1){const i=Tr.string2date(a.valid.from),l=new Date;l.setHours(0),l.setMinutes(0),l.setSeconds(0),l.setMilliseconds(0),i<=l&&delete a.valid.from}!a.valid.from&&!a.valid.to&&delete a.valid}this.props.onChange&&this.props.onChange(JSON.stringify(a),Tr.state2text(r))}}static state2text(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{return""}const n=[],o=Tr.string2date(r.valid.from);if(r.period.once){const a=Tr.string2date(r.period.once),i=new Date;if(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0),aU.t(Ov[l]));if(i.length===1)n.push(U.t("sch_desc_onWeekday",i[0]));else if(i.length===7)n.push(U.t("sch_desc_everyDay"));else{const l=i.pop();n.push(U.t("sch_desc_onWeekdays",i.join(", "),l))}}}else n.push(U.t("sch_desc_everyDay"));else n.push(U.t("sch_desc_everyNDay",r.period.days.toString()));else if(r.period.weeks)if(r.period.weeks===1?n.push(U.t("sch_desc_everyWeek")):n.push(U.t("sch_desc_everyNWeeks",r.period.weeks.toString())),r.period.dows){const a=JSON.parse(r.period.dows);if(a.length===2&&a[0]===0&&a[1]===6)n.push(U.t("sch_desc_onWeekends"));else if(a.length===5&&a[0]===1&&a[1]===2&&a[2]===3&&a[3]===4&&a[4]===5)n.push(U.t("sch_desc_onWorkdays"));else{const i=a.map(l=>U.t(Ov[l]));if(i.length===1)n.push(U.t("sch_desc_onWeekday",i[0]));else if(i.length===7)n.push(U.t("sch_desc_everyDay"));else{const l=i.pop();n.push(U.t("sch_desc_onWeekdays",i.join(", "),l))}}}else return U.t("sch_desc_never");else if(r.period.months){if(r.period.dates){const a=JSON.parse(r.period.dates);if(a.length===1)n.push(U.t("sch_desc_onDate",a[0]));else if(a.length===31)n.push(U.t("sch_desc_onEveryDate"));else if(a.length){const i=a.pop();n.push(U.t("sch_desc_onDates",a.join(", "),i))}else return U.t("sch_desc_never")}else n.push(U.t("sch_desc_onEveryDate"));if(r.period.months===1)n.push(U.t("sch_desc_everyMonth"));else if(typeof r.period.months=="number")n.push(U.t("sch_desc_everyNMonths",r.period.months.toString()));else{const i=JSON.parse(r.period.months).map(l=>U.t(yp[l-1]));if(!i.length)return U.t("sch_desc_never");if(i.length===1)n.push(U.t("sch_desc_onMonth",i[0]));else if(i.length===12)n.push(U.t("sch_desc_everyMonth"));else{const l=i.pop();n.push(U.t("sch_desc_onMonths",i.join(", "),l))}}}else r.period.years&&(r.period.years===1?n.push(U.t("sch_desc_everyYear")):n.push(U.t("sch_desc_everyNYears",r.period.years.toString())),n.push(U.t("sch_desc_onDate",r.period.yearDate.toString(),r.period.yearMonth?U.t(yp[r.period.yearMonth-1]):U.t("sch_desc_everyMonth"))));if(r.time.exactTime)Ol.includes(r.time.start)?n.push(U.t("sch_desc_atTime",U.t(`sch_astro_${r.time.start}`))):n.push(U.t("sch_desc_atTime",r.time.start));else{r.time.mode===Dv.minutes?r.time.interval===1?n.push(U.t("sch_desc_everyMinute")):n.push(U.t("sch_desc_everyNMinutes",r.time.interval.toString())):r.time.interval===1?n.push(U.t("sch_desc_everyHour")):n.push(U.t("sch_desc_everyNHours",r.time.interval.toString()));const a=Ol.indexOf(r.time.start)!==-1?U.t(`sch_astro_${r.time.start}`):r.time.start,i=Ol.indexOf(r.time.end)!==-1?U.t(`sch_astro_${r.time.end}`):r.time.end;(a!=="00:00"||i!=="24:00"&&i!=="23:59")&&n.push(U.t("sch_desc_intervalFromTo",a,i))}return r.period.once||(o.getTime()>Date.now()&&r.valid.to?n.push(U.t("sch_desc_validFromTo",r.valid.from,r.valid.to)):o.getTime()>Date.now()?n.push(U.t("sch_desc_validFrom",r.valid.from)):r.valid.to&&n.push(U.t("sch_desc_validTo",r.valid.to))),n.join(" ")}getTimePeriodElements(){const r=this.state.schedule;let n=!1,o=!1,a=!1,i=!0;return r.time.start==="00:00"&&r.time.end==="24:00"?(n=!0,i=!1):r.time.start==="sunrise"?(o=!0,i=!1):r.time.start==="sunset"&&(a=!0,i=!1),y.createElement("div",{key:"timePeriod",style:de.rowDiv},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!r.time.exactTime,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.exactTime=!1,this.onChange(l)}}),label:U.t("sch_intervalTime")})),y.createElement("div",{style:de.settingsDiv},y.createElement("div",{style:de.settingsDiv},!r.time.exactTime&&y.createElement("div",null,y.createElement("div",null,y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!i,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="23:59",this.onChange(l)}}),label:i?"":U.t("sch_fromTo")}),i&&[y.createElement(Fr,{variant:"standard",style:{...de.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:l=>{const u=JSON.parse(JSON.stringify(this.state.schedule));u.time.start=l.target.value,this.onChange(u)},slotProps:{inputLabel:{shrink:!0}},label:U.t("sch_from"),margin:"normal"}),y.createElement(Fr,{variant:"standard",style:de.inputTime,key:"exactTimeTo",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:l=>{const u=JSON.parse(JSON.stringify(this.state.schedule));u.time.end=l.target.value,this.onChange(u)},slotProps:{inputLabel:{shrink:!0}},label:U.t("sch_to"),margin:"normal"})])),!r.time.exactTime&&y.createElement("div",null,y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!n,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="24:00",this.onChange(l)}}),label:U.t("sch_wholeDay")})),!r.time.exactTime&&y.createElement("div",null,y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!o,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunrise",l.time.end="sunset",this.onChange(l)}}),label:U.t("sch_astroDay")})),!r.time.exactTime&&y.createElement("div",null,y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!a,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunset",l.time.end="sunrise",this.onChange(l)}}),label:U.t("sch_astroNight")}))),!r.time.exactTime&&this.getPeriodSettingsMinutes(i)))}getTimeExactElements(){const r=Ol.includes(this.state.schedule.time.start);return y.createElement("div",{key:"timeExact",style:de.rowDiv},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.exactTime=!0,this.onChange(n)}}),label:U.t("sch_exactTime")})),this.state.schedule.time.exactTime&&y.createElement(wo,{variant:"standard",value:r?this.state.schedule.time.start:"00:00",onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.start=n.target.value,this.onChange(o)}},y.createElement(fr,{key:"specific",value:"00:00"},U.t("sch_specificTime")),Ol.map(n=>y.createElement(fr,{key:n,value:n},U.t(`sch_astro_${n}`)))),this.state.schedule.time.exactTime&&!r&&y.createElement("div",{style:de.settingsDiv},y.createElement(Fr,{variant:"standard",style:de.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.start=n.target.value,this.onChange(o)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return y.createElement("hr",{style:de.hr})}getPeriodModes(){const r=this.state.schedule,n=!r.period.dows&&!r.period.months&&!r.period.dates&&!r.period.years&&!r.period.days&&!r.period.weeks;return n&&!r.period.once&&(r.period.once=Tr.now2string(!0)),[y.createElement("div",{key:"once",style:{...de.rowDiv,...de.rowOnce}},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!n,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.once=o.period.once||Tr.now2string(!0),o.period.dows="",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,this.onChange(o)}}),label:U.t("sch_periodOnce")})),n&&y.createElement("div",{style:de.settingsDiv},y.createElement(Fr,{variant:"standard",style:de.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:Mv(r.period.once),onChange:o=>{this.timerOnce&&clearTimeout(this.timerOnce),this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(a=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const i=JSON.parse(JSON.stringify(this.state.schedule)),l=Tr.string2date(a);l.toString()!=="Invalid Date"&&(i.period.once=`${qo(l.getDate())}.${qo(l.getMonth()+1)}.${l.getFullYear()}`,this.onChange(i))},1500,o.target.value)},slotProps:{inputLabel:{shrink:!0}},label:U.t("sch_at"),margin:"normal"}))),y.createElement(wt,{component:"div",key:"days",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowDays)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!r.period.days,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=1,o.period.dows="",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodDaily")})),y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsDaily(),r.period.days?this.getPeriodSettingsWeekdays():null)),y.createElement(wt,{component:"div",key:"weeks",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowDows)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!r.period.weeks,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=r.period.weeks?0:1,o.period.dows=r.period.dows||"[0]",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodWeekly")})),y.createElement(wt,{component:"div",style:de.settingsDiv},y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsWeekly()),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,de.settingsDiv,de.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),y.createElement(wt,{component:"div",key:"months",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowMonths)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!r.period.months,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=1,o.period.dows="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodMonthly")})),y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsMonthly(),r.period.months?y.createElement(wt,null,y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,de.settingsDiv,de.rowMonthsDates)},y.createElement(gt,{control:y.createElement(tn,{style:de.inputRadio,checked:!!r.period.dates,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=o.period.months||1;const a=[];for(let i=1;i<=31;i++)a.push(i);o.period.dates=o.period.dates||JSON.stringify(a),o.period.dows="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodDates")})),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,de.settingsDiv,de.rowMonthsDates)},this.getPeriodSettingsDates())):null)),y.createElement(wt,{component:"div",key:"years",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowYears)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!r.period.years,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=1,o.period.yearDate=1,o.period.yearMonth=1,o.period.dows="",o.period.months=0,o.period.dates="",o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodYearly")})),y.createElement("div",{style:de.settingsDiv},y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsYearly()),!!r.period.years&&y.createElement("div",{style:de.settingsDiv},y.createElement("span",null,U.t("sch_on")),y.createElement(mo,{key:"input",value:this.state.schedule.period.yearDate,style:de.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearDate=parseInt(o.target.value,10),a.period.yearDate<1&&(a.period.yearDate=31),a.period.yearDate>31&&(a.period.yearDate=1),this.onChange(a)}}),y.createElement(wo,{variant:"standard",value:r.period.yearMonth,onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearMonth=o.target.value,this.onChange(a)}},y.createElement(fr,{key:"every",value:0},U.t("sch_yearEveryMonth")),yp.map((o,a)=>y.createElement(fr,{key:o,value:a+1},U.t(o)))))))]}getPeriodSettingsMinutes(r){return y.createElement("div",{style:{display:"inline-block",marginTop:r?15:"inherit"}},y.createElement("label",{style:{marginLeft:4,marginRight:4}},U.t("sch_every")),y.createElement(mo,{value:this.state.schedule.time.interval,style:{...de.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.interval=parseInt(n.target.value,10),this.onChange(o)}}),y.createElement(wo,{variant:"standard",value:this.state.schedule.time.mode,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.mode=n.target.value,this.onChange(o)}},y.createElement(fr,{value:Dv.minutes},U.t("sch_periodMinutes")),y.createElement(fr,{value:Dv.hours},U.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const r=this.state.schedule,n=r.period.dows&&r.period.dows!=="[1, 2, 3, 4, 5]"&&r.period.dows!=="[0, 6]";return[y.createElement("div",{key:"workdays"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[1, 2, 3, 4, 5]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:U.t("sch_periodWorkdays")})),y.createElement("div",{key:"weekend"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.dows==="[0, 6]",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[0, 6]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:U.t("sch_periodWeekend")})),y.createElement("div",{key:"specific",style:{verticalAlign:"top"}},y.createElement(gt,{style:{verticalAlign:"top"},control:y.createElement(zt,{style:de.inputRadio,checked:!!n,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[0, 1, 2, 3, 4, 5, 6]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:U.t("sch_periodWeekdays")}),n&&(r.period.days===1||r.period.weeks)&&y.createElement(l_,{row:!0,style:{...de.inputGroup,width:150}},[1,2,3,4,5,6,0].map(o=>y.createElement(gt,{key:`specific_${o}`,style:de.inputGroupElement,control:y.createElement(tn,{style:de.inputSmallCheck,checked:r.period.dows.includes(o.toString()),onChange:a=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(i.period.dows)}catch{l=[]}a.target.checked&&!l.includes(o)?l.push(o):!a.target.checked&&l.includes(o)&&l.splice(l.indexOf(o),1),l.sort((u,f)=>u-f),i.period.dows=JSON.stringify(l),i.period.days&&(i.period.days=1),this.onChange(i)}}),label:U.t(Ov[o])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const r=this.state.schedule;return[y.createElement("div",{key:"every_day"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.days===1&&!r.period.dows,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=1,n.period.dows="",this.onChange(n)}}),label:U.t("sch_periodEveryDay")})),y.createElement("div",{key:"everyN_day"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.days>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=2,n.period.dows="",this.onChange(n)}}),label:U.t("sch_periodEvery")}),r.period.days>1&&[y.createElement(mo,{key:"input",value:this.state.schedule.period.days,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=parseInt(n.target.value,10),o.period.dows="",this.onChange(o)}}),y.createElement("span",{key:"span",style:{paddingRight:10}},U.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const r=this.state.schedule;return[y.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},y.createElement("div",null,y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.weeks===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=1,this.onChange(n)}}),label:U.t("sch_periodEveryWeek")})),y.createElement("div",null,y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.weeks>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=2,this.onChange(n)}}),label:U.t("sch_periodEvery")}),r.period.weeks>1&&[y.createElement(mo,{key:"input",value:this.state.schedule.period.weeks,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=parseInt(n.target.value,10),this.onChange(o)}}),y.createElement("span",{key:"text"},U.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const r=this.state.schedule,n=[];for(let a=1;a<=31;a++)n.push(a);const o=JSON.parse(r.period.dates);return y.createElement(l_,{row:!0,style:{...de.inputGroup,maxWidth:620}},y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:o.length===31,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),i=[];for(let l=1;l<=31;l++)i.push(l);a.period.dates=JSON.stringify(i),this.onChange(a)}}),label:U.t("sch_all")}),y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!o.length,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.dates="[]",this.onChange(a)}}),label:U.t("sch_no_one")}),o.length!==31&&!!o.length&&y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!1,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),i=[],l=JSON.parse(a.period.dates);for(let u=1;u<=31;u++)l.includes(u)||i.push(u);i.sort((u,f)=>u-f),a.period.dates=JSON.stringify(i),this.onChange(a)}}),label:U.t("sch_invert")}),y.createElement("div",null),n.map(a=>y.createElement(gt,{key:`date_${a}`,style:a?de.inputDateDay:{...de.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:y.createElement(tn,{style:de.inputDateDayCheck,checked:JSON.parse(r.period.dates).includes(a),onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let u;try{u=JSON.parse(l.period.dates)}catch{u=[]}i.target.checked&&!u.includes(a)?u.push(a):!i.target.checked&&u.includes(a)&&u.splice(u.indexOf(a),1),u.sort((f,h)=>f-h),l.period.dates=JSON.stringify(u),this.onChange(l)}}),label:a<10?[y.createElement("span",{key:"0",style:{opacity:0}},"0"),y.createElement("span",{key:"num"},a)]:a})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const r=this.state.schedule,n=typeof r.period.months=="string"?JSON.parse(r.period.months):[];return[y.createElement("div",{key:"every"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:typeof r.period.months=="number"&&r.period.months===1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=1,this.onChange(r)}}),label:U.t("sch_periodEveryMonth")})),y.createElement("div",{key:"everyN"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:typeof r.period.months=="number"&&r.period.months>1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=2,this.onChange(o)}}),label:U.t("sch_periodEvery")}),typeof r.period.months=="number"&&r.period.months>1&&[y.createElement(mo,{key:"input",value:r.period.months,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=parseInt(o.target.value,10),a.period.months<1&&(a.period.months=1),this.onChange(a)}}),y.createElement("span",{key:"text"},U.t("sch_periodMonth"))]),y.createElement("div",{key:"specific",style:{verticalAlign:"top"}},y.createElement(gt,{style:{verticalAlign:"top"},control:y.createElement(zt,{style:de.inputRadio,checked:typeof r.period.months=="string",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(o)}}),label:U.t("sch_periodSpecificMonths")}),typeof r.period.months=="string"&&y.createElement(l_,{row:!0,style:de.inputGroup},y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:n.length===12,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[];for(let i=1;i<=12;i++)a.push(i);o.period.months=JSON.stringify(a),this.onChange(o)}}),label:U.t("sch_all")}),y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!n.length,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months="[]",this.onChange(o)}}),label:U.t("sch_no_one")}),n.length!==12&&!!n.length&&y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!1,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[],i=JSON.parse(o.period.months);for(let l=1;l<=12;l++)i.includes(l)||a.push(l);a.sort((l,u)=>l-u),o.period.months=JSON.stringify(a),this.onChange(o)}}),label:U.t("sch_invert")}),y.createElement("div",null),yp.map((o,a)=>y.createElement(gt,{key:`month_${a}`,style:de.inputGroupElement,control:y.createElement(tn,{style:de.inputSmallCheck,checked:typeof r.period.months=="string"?JSON.parse(r.period.months).includes(a+1):r.period.months===a,onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let u;try{u=JSON.parse(l.period.months)}catch{u=[]}i.target.checked&&!u.includes(a+1)?u.push(a+1):!i.target.checked&&u.includes(a+1)&&u.splice(u.indexOf(a+1),1),u.sort((f,h)=>f-h),l.period.months=JSON.stringify(u),this.onChange(l)}}),label:U.t(o)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const r=this.state.schedule;return[y.createElement("div",{key:"year"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.years===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=1,this.onChange(n)}}),label:U.t("sch_periodEveryYear")})),y.createElement("div",{key:"every"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.years>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=2,this.onChange(n)}}),label:U.t("sch_periodEvery")}),r.period.years>1&&[y.createElement(mo,{key:"input",value:this.state.schedule.period.years,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=parseInt(n.target.value,10),o.period.years<1&&(o.period.years=1),this.onChange(o)}}),y.createElement("span",{key:"text"},U.t("sch_periodYear"))])]}static now2string(r){const n=new Date;return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),r&&(n.setDate(n.getDate()+2),n.setMilliseconds(n.getMilliseconds()-1)),`${qo(n.getDate())}.${qo(n.getMonth()+1)}.${qo(n.getFullYear())}`}static string2date(r){let n=r.split(".");return n.length===1?(n=r.split("-"),new Date(parseInt(n[0],10),parseInt(n[1],10)-1,parseInt(n[2],10))):new Date(parseInt(n[2],10),parseInt(n[1],10)-1,parseInt(n[0],10))}getValidSettings(){const r=this.state.schedule;return y.createElement("div",{style:de.rowDiv},y.createElement("div",{style:{...de.modeDiv,verticalAlign:"middle"}},y.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},U.t("sch_valid")),y.createElement("span",null,U.t("sch_validFrom"))),y.createElement("div",{style:de.settingsDiv},y.createElement(Fr,{variant:"standard",style:{...de.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:Mv(r.valid.from),type:"date",onChange:n=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(o=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),i=Tr.string2date(o);i.toString()!=="Invalid Date"&&(a.valid.from=`${qo(i.getDate())}.${qo(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),y.createElement(gt,{control:y.createElement(tn,{style:de.inputRadio,checked:!!r.valid.to,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.valid.to=n.valid.to?"":Tr.now2string(!0),this.onChange(n)}}),label:U.t("sch_validTo")}),!!r.valid.to&&y.createElement(Fr,{variant:"standard",inputRef:this.refTo,style:{...de.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:Mv(r.valid.to),onChange:n=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(o=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),i=Tr.string2date(o);i.toString()!=="Invalid Date"&&(a.valid.to=`${qo(i.getDate())}.${qo(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return y.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},y.createElement("div",null,this.state.desc),y.createElement("div",{style:de.scrollWindow},y.createElement("h5",null,U.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),Tr.getDivider(),y.createElement("h5",null,U.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&Tr.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}function Eee({themeName:t,toggleTheme:e,t:r,className:n,style:o,size:a}){return y.createElement("div",{className:n||void 0,style:o||void 0},y.createElement(Op,{title:r("ra_Change color theme"),slotProps:{popper:{sx:{pointerEvents:"none"}}}},y.createElement(nr,{onClick:()=>e(),size:a||"medium"},t==="dark"&&y.createElement(KU,{className:n}),t==="blue"&&y.createElement(ZU,{className:n}),t==="colored"&&y.createElement(Wb,{className:n}),t!=="dark"&&t!=="blue"&&t!=="colored"&&y.createElement(QU,{className:n}))))}/*! +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jQ(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function LQ(t){if(Array.isArray(t))return P0(t)}function $v(t,e){return BQ(t)||zQ(t,e)||iP(t,e)||FQ()}function FQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iP(t,e){if(t){if(typeof t=="string")return P0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P0(t,e)}}function P0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function WQ(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}var Qf=$.forwardRef(function(t,e){var r=t.children,n=nf(t,MQ),o=UQ(n),a=o.open,i=nf(o,NQ);return $.useImperativeHandle(e,function(){return{open:a}},[a]),y.createElement($.Fragment,null,r(Zt(Zt({},i),{},{open:a})))});Qf.displayName="Dropzone";var cP={disabled:!1,getFilesFromEvent:ZZ,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};Qf.defaultProps=cP;Qf.propTypes={children:se.func,accept:se.objectOf(se.arrayOf(se.string)),multiple:se.bool,preventDropOnDocument:se.bool,noClick:se.bool,noKeyboard:se.bool,noDrag:se.bool,noDragEventsBubbling:se.bool,minSize:se.number,maxSize:se.number,maxFiles:se.number,disabled:se.bool,getFilesFromEvent:se.func,onFileDialogCancel:se.func,onFileDialogOpen:se.func,useFsAccessApi:se.bool,autoFocus:se.bool,onDragEnter:se.func,onDragLeave:se.func,onDragOver:se.func,onDrop:se.func,onDropAccepted:se.func,onDropRejected:se.func,onError:se.func,validator:se.func};var A0={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function UQ(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Zt(Zt({},cP),t),r=e.accept,n=e.disabled,o=e.getFilesFromEvent,a=e.maxSize,i=e.minSize,l=e.multiple,u=e.maxFiles,f=e.onDragEnter,h=e.onDragLeave,d=e.onDragOver,_=e.onDrop,g=e.onDropAccepted,b=e.onDropRejected,w=e.onFileDialogCancel,S=e.onFileDialogOpen,k=e.useFsAccessApi,D=e.autoFocus,C=e.preventDropOnDocument,O=e.noClick,M=e.noKeyboard,T=e.noDrag,P=e.noDragEventsBubbling,j=e.onError,F=e.validator,E=$.useMemo(function(){return TQ(r)},[r]),L=$.useMemo(function(){return EQ(r)},[r]),G=$.useMemo(function(){return typeof S=="function"?S:fO},[S]),B=$.useMemo(function(){return typeof w=="function"?w:fO},[w]),z=$.useRef(null),H=$.useRef(null),K=$.useReducer(HQ,A0),ee=$v(K,2),Y=ee[0],X=ee[1],re=Y.isFocused,I=Y.isFileDialogActive,Q=$.useRef(typeof window<"u"&&window.isSecureContext&&k&&$Q()),me=function(){!Q.current&&I&&setTimeout(function(){if(H.current){var ne=H.current.files;ne.length||(X({type:"closeDialog"}),B())}},300)};$.useEffect(function(){return window.addEventListener("focus",me,!1),function(){window.removeEventListener("focus",me,!1)}},[H,I,B,Q]);var pe=$.useRef([]),ge=function(ne){z.current&&z.current.contains(ne.target)||(ne.preventDefault(),pe.current=[])};$.useEffect(function(){return C&&(document.addEventListener("dragover",dO,!1),document.addEventListener("drop",ge,!1)),function(){C&&(document.removeEventListener("dragover",dO),document.removeEventListener("drop",ge))}},[z,C]),$.useEffect(function(){return!n&&D&&z.current&&z.current.focus(),function(){}},[z,D,n]);var Ce=$.useCallback(function(q){j?j(q):console.error(q)},[j]),Re=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q),pe.current=[].concat(AQ(pe.current),[q.target]),hp(q)&&Promise.resolve(o(q)).then(function(ne){if(!(rf(q)&&!P)){var ye=ne.length,xe=ye>0&&xQ({files:ne,accept:E,minSize:i,maxSize:a,multiple:l,maxFiles:u,validator:F}),ke=ye>0&&!xe;X({isDragAccept:xe,isDragReject:ke,isDragActive:!0,type:"setDraggedFiles"}),f&&f(q)}}).catch(function(ne){return Ce(ne)})},[o,f,Ce,P,E,i,a,l,u,F]),Te=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q);var ne=hp(q);if(ne&&q.dataTransfer)try{q.dataTransfer.dropEffect="copy"}catch{}return ne&&d&&d(q),!1},[d,P]),Pe=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q);var ne=pe.current.filter(function(xe){return z.current&&z.current.contains(xe)}),ye=ne.indexOf(q.target);ye!==-1&&ne.splice(ye,1),pe.current=ne,!(ne.length>0)&&(X({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),hp(q)&&h&&h(q))},[z,h,P]),Oe=$.useCallback(function(q,ne){var ye=[],xe=[];q.forEach(function(ke){var ve=nP(ke,E),Ve=$v(ve,2),$e=Ve[0],Ye=Ve[1],lt=oP(ke,i,a),ft=$v(lt,2),ae=ft[0],_e=ft[1],Fe=F?F(ke):null;if($e&&ae&&!Fe)ye.push(ke);else{var Ke=[Ye,_e];Fe&&(Ke=Ke.concat(Fe)),xe.push({file:ke,errors:Ke.filter(function(_t){return _t})})}}),(!l&&ye.length>1||l&&u>=1&&ye.length>u)&&(ye.forEach(function(ke){xe.push({file:ke,errors:[wQ]})}),ye.splice(0)),X({acceptedFiles:ye,fileRejections:xe,isDragReject:xe.length>0,type:"setFiles"}),_&&_(ye,xe,ne),xe.length>0&&b&&b(xe,ne),ye.length>0&&g&&g(ye,ne)},[X,l,E,i,a,u,_,g,b,F]),ze=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q),pe.current=[],hp(q)&&Promise.resolve(o(q)).then(function(ne){rf(q)&&!P||Oe(ne,q)}).catch(function(ne){return Ce(ne)}),X({type:"reset"})},[o,Oe,Ce,P]),Me=$.useCallback(function(){if(Q.current){X({type:"openDialog"}),G();var q={multiple:l,types:L};window.showOpenFilePicker(q).then(function(ne){return o(ne)}).then(function(ne){Oe(ne,null),X({type:"closeDialog"})}).catch(function(ne){OQ(ne)?(B(ne),X({type:"closeDialog"})):DQ(ne)?(Q.current=!1,H.current?(H.current.value=null,H.current.click()):Ce(new 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 was provided."))):Ce(ne)});return}H.current&&(X({type:"openDialog"}),G(),H.current.value=null,H.current.click())},[X,G,B,k,Oe,Ce,L,l]),Be=$.useCallback(function(q){!z.current||!z.current.isEqualNode(q.target)||(q.key===" "||q.key==="Enter"||q.keyCode===32||q.keyCode===13)&&(q.preventDefault(),Me())},[z,Me]),We=$.useCallback(function(){X({type:"focus"})},[]),De=$.useCallback(function(){X({type:"blur"})},[]),pt=$.useCallback(function(){O||(CQ()?setTimeout(Me,0):Me())},[O,Me]),ce=function(ne){return n?null:ne},qe=function(ne){return M?null:ce(ne)},st=function(ne){return T?null:ce(ne)},rt=function(ne){P&&ne.stopPropagation()},Je=$.useMemo(function(){return function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne=q.refKey,ye=ne===void 0?"ref":ne,xe=q.role,ke=q.onKeyDown,ve=q.onFocus,Ve=q.onBlur,$e=q.onClick,Ye=q.onDragEnter,lt=q.onDragOver,ft=q.onDragLeave,ae=q.onDrop,_e=nf(q,PQ);return Zt(Zt(R0({onKeyDown:qe(po(ke,Be)),onFocus:qe(po(ve,We)),onBlur:qe(po(Ve,De)),onClick:ce(po($e,pt)),onDragEnter:st(po(Ye,Re)),onDragOver:st(po(lt,Te)),onDragLeave:st(po(ft,Pe)),onDrop:st(po(ae,ze)),role:typeof xe=="string"&&xe!==""?xe:"presentation"},ye,z),!n&&!M?{tabIndex:0}:{}),_e)}},[z,Be,We,De,pt,Re,Te,Pe,ze,M,T,n]),Se=$.useCallback(function(q){q.stopPropagation()},[]),ut=$.useMemo(function(){return function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne=q.refKey,ye=ne===void 0?"ref":ne,xe=q.onChange,ke=q.onClick,ve=nf(q,RQ),Ve=R0({accept:E,multiple:l,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:ce(po(xe,ze)),onClick:ce(po(ke,Se)),tabIndex:-1},ye,H);return Zt(Zt({},Ve),ve)}},[H,r,l,ze,n]);return Zt(Zt({},Y),{},{isFocused:re&&!n,getRootProps:Je,getInputProps:ut,rootRef:z,inputRef:H,open:ce(Me)})}function HQ(t,e){switch(e.type){case"focus":return Zt(Zt({},t),{},{isFocused:!0});case"blur":return Zt(Zt({},t),{},{isFocused:!1});case"openDialog":return Zt(Zt({},A0),{},{isFileDialogActive:!0});case"closeDialog":return Zt(Zt({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return Zt(Zt({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return Zt(Zt({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return Zt({},A0);default:return t}}function fO(){}function qQ(){const t=ta();return[...t.breakpoints.keys].reverse().reduce((r,n)=>{const o=VB(t.breakpoints.up(n));return!r&&o?n:r},null)||"xs"}function eh(){return t=>function(r){const n=qQ();return y.createElement(t,{...r,width:n})}}function VQ(t){const[e,r]=y.useState(t.input||t.value||""),[n,o]=y.useState("");return y.createElement(ra,{open:!0,onClose:()=>t.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:t.fullWidth!==void 0?t.fullWidth:!1},y.createElement(aa,{id:"form-dialog-title"},t.titleText),y.createElement(oa,null,y.createElement(If,null,t.promptText),y.createElement(zr,{variant:"standard",autoFocus:!0,margin:"dense",error:!!n,helperText:n===!0||!n?"":n,value:e,label:t.labelText||"",type:t.type||"text",onKeyUp:a=>a.code==="Enter"&&e&&t.onClose(e),onChange:a=>{let i="";t.verify&&(i=!t.verify(a.target.value)),t.rule?r(t.rule(a.target.value)):r(a.target.value),o(i)},fullWidth:!0})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",disabled:!e||!!n,onClick:()=>t.onClose(e),color:"primary",startIcon:y.createElement(Hs,null)},t.applyText||U.t("ra_Ok")),y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>t.onClose(null),startIcon:y.createElement(Rs,null)},t.cancelText||U.t("ra_Cancel"))))}const XQ=eh()(VQ),GQ=t=>y.createElement("svg",{onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 486 486",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:t.className,style:t.style},y.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"}),y.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"})),I0=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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"})),JQ=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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"})),Pw=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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 YQ=t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,r)=>{const[n,o]=r.split(/ ?: ?/).map((a,i)=>i===0?a.replace(/\s+/g,""):a.trim());if(n&&o){const a=n.replace(/(\w)-(\w)/g,(l,u,f)=>`${u}${f.toUpperCase()}`);let i=o.trim();Number.isNaN(Number(o))||(i=Number(o)),e[n.startsWith("-")?n:a]=i}return e},{});function KQ(t=6){const e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=t;n>0;--n)r+=e[Math.round(Math.random()*(e.length-1))];return r}var ZQ=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],hO={"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 QQ(t,e){var a;const{key:r,level:n,...o}=e;switch(t.nodeType){case 1:return $.createElement(tee(t.nodeName),eee(t,r),mO(t.childNodes,n,o));case 3:{const i=((a=t.nodeValue)==null?void 0:a.toString())??"";if(!o.allowWhiteSpaces&&/^\s+$/.test(i)&&!/[\u00A0\u202F]/.test(i))return null;if(!t.parentNode)return i;const l=t.parentNode.nodeName.toLowerCase();return ZQ.includes(l)?(/\S/.test(i)&&console.warn(`A textNode is not allowed inside '${l}'. Your text "${i}" will be ignored`),null):i}case 8:return null;case 11:return mO(t.childNodes,n,e);default:return null}}function eee(t,e){const r={key:e};if(t instanceof Element){const n=t.getAttribute("class");n&&(r.className=n),[...t.attributes].forEach(o=>{switch(o.name){case"class":break;case"style":r[o.name]=YQ(o.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":r[hO[o.name]||o.name]=!0;break;default:r[hO[o.name]||o.name]=o.value}})}return r}function mO(t,e,r){const n=[...t].map((o,a)=>of(o,{...r,index:a,level:e+1})).filter(Boolean);return n.length?n:null}function tee(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}function of(t,e={}){if(!t||!(t instanceof Node))return null;const{actions:r=[],index:n=0,level:o=0,randomKey:a}=e;let i=t,l=`${o}-${n}`;const u=[];return a&&o===0&&(l=`${KQ()}-${l}`),Array.isArray(r)&&r.forEach(f=>{f.condition(i,l,o)&&(typeof f.pre=="function"&&(i=f.pre(i,l,o),i instanceof Node||(i=t)),typeof f.post=="function"&&u.push(f.post(i,l,o)))}),u.length?u:QQ(i,{key:l,level:o,...e})}function ree(t,e={}){if(!t||typeof t!="string")return null;const{includeAllNodes:r=!1,nodeOnly:n=!1,selector:o="body > *",type:a="text/html"}=e;try{const l=new DOMParser().parseFromString(t,a);if(r){const{childNodes:f}=l.body;return n?f:[...f].map(h=>of(h,e))}const u=l.querySelector(o)||l.body.childNodes[0];if(!(u instanceof Node))throw new TypeError("Error parsing input");return n?u:of(u,e)}catch{}return null}function lP(t,e={}){return typeof t=="string"?ree(t,e):t instanceof Node?of(t,e):null}var nee=Object.defineProperty,oee=(t,e,r)=>e in t?nee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mp=(t,e,r)=>oee(t,typeof e!="symbol"?e+"":e,r),_O="react-inlinesvg",gO=10,Mt={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function Mp(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function aee(){return iee()&&typeof window<"u"&&window!==null}async function uP(t,e){const r=await fetch(t,e),n=r.headers.get("content-type"),[o]=(n??"").split(/ ?; ?/);if(r.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(a=>o.includes(a)))throw new Error(`Content type isn't valid: ${o}`);return r.text()}function see(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}function iee(){if(!document)return!1;const t=document.createElement("div");t.innerHTML="";const e=t.firstChild;return!!e&&e.namespaceURI==="http://www.w3.org/2000/svg"}function cee(t){return t[Math.floor(Math.random()*t.length)]}function lee(t){const e="abcdefghijklmnopqrstuvwxyz",n=`${e}${e.toUpperCase()}1234567890`;let o="";for(let a=0;a{this.cacheApi=r}).catch(r=>{console.error(`Failed to open cache: ${r.message}`)}).finally(()=>{this.isReady=!0,this.subscribers.forEach(r=>r())}):this.isReady=!0}onReady(t){this.isReady?t():this.subscribers.push(t)}async get(t,e){var r;return await(this.cacheApi?this.fetchAndAddToPersistentCache(t,e):this.fetchAndAddToInternalCache(t,e)),((r=this.cacheStore.get(t))==null?void 0:r.content)??""}set(t,e){this.cacheStore.set(t,e)}isCached(t){var e;return((e=this.cacheStore.get(t))==null?void 0:e.status)===Mt.LOADED}async fetchAndAddToInternalCache(t,e){const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===Mt.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Mt.IDLE}),await this.fetchAndAddToInternalCache(t,e)});return}if(!(r!=null&&r.content)){this.cacheStore.set(t,{content:"",status:Mt.LOADING});try{const n=await uP(t,e);this.cacheStore.set(t,{content:n,status:Mt.LOADED})}catch(n){throw this.cacheStore.set(t,{content:"",status:Mt.FAILED}),n}}}async fetchAndAddToPersistentCache(t,e){var o,a,i;const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===Mt.LOADED)return;if((r==null?void 0:r.status)===Mt.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Mt.IDLE}),await this.fetchAndAddToPersistentCache(t,e)});return}this.cacheStore.set(t,{content:"",status:Mt.LOADING});const n=await((o=this.cacheApi)==null?void 0:o.match(t));if(n){const l=await n.text();this.cacheStore.set(t,{content:l,status:Mt.LOADED});return}try{await((a=this.cacheApi)==null?void 0:a.add(new Request(t,e)));const l=await((i=this.cacheApi)==null?void 0:i.match(t)),u=await(l==null?void 0:l.text())??"";this.cacheStore.set(t,{content:u,status:Mt.LOADED})}catch(l){throw this.cacheStore.set(t,{content:"",status:Mt.FAILED}),l}}async handleLoading(t,e){var n;let r=0;for(;((n=this.cacheStore.get(t))==null?void 0:n.status)===Mt.LOADING&&r=gO&&await e()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([t,e])=>({[t]:e}))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){const t=await this.cacheApi.keys();for(const e of t)await this.cacheApi.delete(e)}this.cacheStore.clear()}};function yO(t){const e=$.useRef();return $.useEffect(()=>{e.current=t}),e.current}function pee(t){const{baseURL:e,content:r,description:n,handleError:o,hash:a,preProcessor:i,title:l,uniquifyIDs:u=!1}=t;try{const f=fee(r,i),h=lP(f,{nodeOnly:!0});if(!h||!(h instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const d=dP(h,{baseURL:e,hash:a,uniquifyIDs:u});if(n){const _=d.querySelector("desc");_!=null&&_.parentNode&&_.parentNode.removeChild(_);const g=document.createElementNS("http://www.w3.org/2000/svg","desc");g.innerHTML=n,d.prepend(g)}if(typeof l<"u"){const _=d.querySelector("title");if(_!=null&&_.parentNode&&_.parentNode.removeChild(_),l){const g=document.createElementNS("http://www.w3.org/2000/svg","title");g.innerHTML=l,d.prepend(g)}}return d}catch(f){return o(f)}}function fee(t,e){return e?e(t):t}function dP(t,e){const{baseURL:r="",hash:n,uniquifyIDs:o}=e,a=["id","href","xlink:href","xlink:role","xlink:arcrole"],i=["href","xlink:href"],l=(u,f)=>i.includes(u)&&(f?!f.includes("#"):!1);return o&&[...t.children].forEach(u=>{var f;if((f=u.attributes)!=null&&f.length){const h=Object.values(u.attributes).map(d=>{const _=d,g=/url\((.*?)\)/.exec(d.value);return g!=null&&g[1]&&(_.value=d.value.replace(g[0],`url(${r}${g[1]}__${n})`)),_});a.forEach(d=>{const _=h.find(g=>g.name===d);_&&!l(d,_.value)&&(_.value=`${_.value}__${n}`)})}return u.children.length?dP(u,e):u}),t}var ac;function hee(t){const{cacheRequests:e=!0,children:r=null,description:n,fetchOptions:o,innerRef:a,loader:i=null,onError:l,onLoad:u,src:f,title:h,uniqueHash:d}=t,[_,g]=$.useReducer((z,H)=>({...z,...H}),{content:"",element:null,isCached:e&&ac.isCached(t.src),status:Mt.IDLE}),{content:b,element:w,isCached:S,status:k}=_,D=yO(t),C=yO(_),O=$.useRef(d??lee(8)),M=$.useRef(!1),T=$.useRef(!1),P=$.useCallback(z=>{M.current&&(g({status:z.message==="Browser does not support SVG"?Mt.UNSUPPORTED:Mt.FAILED}),l==null||l(z))},[l]),j=$.useCallback((z,H=!1)=>{M.current&&g({content:z,isCached:H,status:Mt.LOADED})},[]),F=$.useCallback(async()=>{const z=await uP(f,o);j(z)},[o,j,f]),E=$.useCallback(()=>{try{const z=pee({...t,handleError:P,hash:O.current,content:b}),H=lP(z);if(!H||!$.isValidElement(H))throw new Error("Could not convert the src to a React element");g({element:H,status:Mt.READY})}catch(z){P(new Error(z.message))}},[b,P,t]),L=$.useCallback(async()=>{const z=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(f);let H;if(z?H=z[1]?window.atob(z[2]):decodeURIComponent(z[2]):f.includes("{M.current&&g({content:"",element:null,isCached:!1,status:Mt.LOADING})},[]);$.useEffect(()=>{if(M.current=!0,!Mp()||T.current)return()=>{};try{if(k===Mt.IDLE){if(!aee())throw new Error("Browser does not support SVG");if(!f)throw new Error("Missing src");G()}}catch(z){P(z)}return T.current=!0,()=>{M.current=!1}},[]),$.useEffect(()=>{if(Mp()&&D)if(D.src!==f){if(!f){P(new Error("Missing src"));return}G()}else(D.title!==h||D.description!==n)&&E()},[n,E,P,G,D,f,h]),$.useEffect(()=>{C&&(C.status!==Mt.LOADING&&k===Mt.LOADING&&L(),C.status!==Mt.LOADED&&k===Mt.LOADED&&E(),C.status!==Mt.READY&&k===Mt.READY&&(u==null||u(f,S)))},[L,E,S,u,C,f,k]);const B=uee(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return Mp()?w?$.cloneElement(w,{ref:a,...B}):[Mt.UNSUPPORTED,Mt.FAILED].includes(k)?r:i:i}function mee(t){ac||(ac=new dee);const{loader:e}=t,r=$.useRef(!1),[n,o]=$.useState(ac.isReady);return $.useEffect(()=>{r.current||(ac.onReady(()=>{o(!0)}),r.current=!0)},[]),n?y.createElement(hee,{...t}):e}const _ee=window.location.hostname.endsWith("iobroker.in"),vO=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);function Rw(t){var e,r,n;if(t.src){if(typeof t.src=="string"){if(t.src.length<3)return t.sx?y.createElement(wt,{component:"span",sx:t.sx,title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:ht.clsx(t.className,"iconOwn")},t.src):y.createElement("span",{title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:ht.clsx(t.className,"iconOwn")},t.src);if(t.src.startsWith("data:image/svg"))return y.createElement(mee,{title:t.title||void 0,src:t.src,className:ht.clsx(t.className,"iconOwn"),width:((e=t.style)==null?void 0:e.width)||28,height:((r=t.style)==null?void 0:r.height)||((n=t.style)==null?void 0:n.width)||28,style:t.style||void 0});if(_ee&&!t.src.startsWith("http://")&&!t.src.startsWith("https://")){let o=t.src;return o.startsWith("./")?o=vO+o.substring(2):o.startsWith("/")||(o=vO+o),t.sx?y.createElement(wt,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${o}`,alt:t.alt||void 0,ref:t.ref,onError:a=>t.onError&&t.onError(a)}):y.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${o}`,alt:t.alt||void 0,ref:t.ref,onError:a=>t.onError&&t.onError(a)})}return t.sx?y.createElement(wt,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError}):y.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError})}return t.src}return null}const us={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"}},Lr={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp","ico"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function bO(t,e){let r="";const n=new Uint8Array((t==null?void 0:t.data)||t),o=n.byteLength;for(let a=0;a{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,o===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))});const n=ht.getFileExtension(r.href);this.state={text:null,code:null,ext:n,editing:!1,editingValue:null,copyPossible:!!n&&(Lr.code.includes(n)||Lr.txt.includes(n)),forceUpdate:Date.now(),changed:!1,imgError:!1}}readFile(){if(this.props.href){const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.socket.readFile(n,o).then(a=>{let i="";a.file!==void 0&&(i=a.file);const l={copyPossible:this.state.copyPossible,ext:this.state.ext};if(i.type==="Buffer")if(o.toLowerCase().endsWith(".json5")){l.ext="json5",l.copyPossible=!0;try{i=atob(bO(i,!0))}catch{console.error("Cannot convert base64 to string"),i=""}}else{const u=ht.detectMimeType(bO(i));u&&(l.ext=u,l.copyPossible=Lr.code.includes(u)||Lr.txt.includes(u))}l.copyPossible&&(l.ext&&Lr.txt.includes(l.ext)?(l.text=i,l.editingValue=i):l.ext&&Lr.code.includes(l.ext)&&(l.code=i,l.editingValue=i)),this.setState(l)}).catch(a=>window.alert(`Cannot read file: ${a}`))}}componentDidMount(){this.readFile();const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,o,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,o,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}getEditorOrViewer(){return y.createElement(zr,{variant:"standard",style:us.textarea,multiline:!0,value:this.state.editingValue||this.state.code||this.state.text,slotProps:{htmlInput:{readOnly:!this.state.editing}}})}getContent(){return this.state.ext&&Lr.images.includes(this.state.ext)?this.state.imgError?y.createElement(Pw,{style:{...us.img,...this.props.getStyleBackgroundImage()}}):y.createElement(Rw,{onError:r=>{r.target.onerror=null,this.setState({imgError:!0})},style:{...us.img,...this.props.getStyleBackgroundImage()},src:`${this.props.href}?ts=${this.state.forceUpdate}`,alt:this.props.href}):this.state.ext&&Lr.audio.includes(this.state.ext)?y.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},y.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&Lr.video.includes(this.state.ext)?y.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},y.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},y.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 y.createElement(ra,{sx:{"&.MuiDialog-scrollPaper":us.dialog,"& .MuiDialog-paper":us.paper},scroll:"paper",open:!!this.props.href,onClose:()=>this.props.onClose(),fullWidth:!0,maxWidth:"xl","aria-labelledby":"ar_dialog_file_view_title"},y.createElement("div",{style:us.dialogTitle},y.createElement(aa,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&Lr.images.includes(this.state.ext)&&y.createElement("div",null,y.createElement(nr,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},y.createElement(Wb,null)))),y.createElement(oa,{style:us.content},this.getContent()),y.createElement(na,null,this.state.copyPossible?y.createElement(Qt,{color:"grey",onClick:r=>{r.stopPropagation(),r.preventDefault(),ht.copyToClipboard(this.state.text||this.state.code||"")},startIcon:y.createElement(VM,null)},this.props.t("Copy content")):null,this.state.editing?y.createElement(Qt,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:()=>this.onSave(),startIcon:y.createElement(S0,null)},this.props.t("Save")):null,y.createElement(Qt,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:y.createElement(Rs,null)},this.props.t("Close"))))}}const yee=eh()(gee),Ai=32,Ho=32,_p=120,wO=64,xO="Not found",gp={all:GM,images:iH,code:Ub,txt:aH,audio:GU,video:vH},Ne={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% - ${48*2+8}px)`,display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${wO}px`},itemTile:t=>({position:"relative",userSelect:"none",cursor:"pointer",height:_p,width:wO,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:t.palette.secondary.light,color:ht.invertColor(t.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:t=>({width:"100%",height:_p-32-16-8,display:"block",pl:1,color:t.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:t=>({position:"absolute",top:22,left:18,zIndex:1,color:(t.palette.mode==="dark","#FFF")}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:_p-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:_p-32-16-8,display:"block",objectFit:"contain"},itemSelected:t=>({background:t.palette.primary.main,color:ht.invertColor(t.palette.primary.main,!0)}),itemTable:t=>({userSelect:"none",cursor:"pointer",height:Ai,display:"inline-flex",lineHeight:`${Ai}px`,"&:hover":{background:t.palette.secondary.light,color:ht.invertColor(t.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:t=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:t.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:t=>({display:"inline-block",width:Ho,height:Ai,minWidth:Ho,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${Ho/2}px`,"&:hover":{backgroundColor:t.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:t.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:Ho,height:Ai,minWidth:Ho,padding:0},itemAclButtonTable:{width:Ho,height:Ai,minWidth:Ho,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:Ho,height:Ai,minWidth:Ho,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:t=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:t.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:t=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText,borderRadius:"4px 4px 0 0"}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:t=>({pl:"2px",pr:"2px",cursor:"pointer",color:"white","&:hover":{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText}}),pathDivBreadcrumbSelected:{color:"#FFF"},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:t=>({color:t.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},Oa="0_userdata.0";function Ii(t){const e=(t||"").split("/");return e.length&&e.pop(),e.join("/")}function Ev(t){const e=ht.getFileExtension(t);return!!(e!=null&&e.toLowerCase().match(/[a-z]+/)&&e.length<5)}const Tt="Table",Tv="Tile";function SO(t,e){return t.folder&&e.folder?t.name>e.name?1:t.namee.name?1:t.name{const a=`${r}/${n}`,i=a.lastIndexOf("/"),l=a.substring(0,i);console.log(`File changed ${a}[${o}]`),this.state.folders[l]&&(this._tempTimeout[l]&&clearTimeout(this._tempTimeout[l]),this._tempTimeout[l]=setTimeout(()=>{delete this._tempTimeout[l],this.browseFolder(l,null,!1,!0).then(u=>this.setState({folders:u})).catch(u=>console.error(`Cannot read folder: ${u.message}`))},300))});we(this,"setStateBackgroundImage",()=>{const r=["light","dark","colored","delete"];this.setState(({backgroundImage:n})=>n&&r.indexOf(n)!==-1&&r.length-1!==r.indexOf(n)?(this.localStorage.setItem("files.backgroundImage",r[r.indexOf(n)+1]),{backgroundImage:r[r.indexOf(n)+1]}):(this.localStorage.setItem("files.backgroundImage",r[0]),{backgroundImage:r[0]}))});we(this,"getStyleBackgroundImage",()=>{switch(this.state.backgroundImage){case"light":return Ne.backgroundImageLight;case"dark":return Ne.backgroundImageDark;case"colored":return Ne.backgroundImageColored;case"delete":return null;default:return null}});this.localStorage=window._localStorage||window.localStorage;const n=this.localStorage.getItem("files.expanded")||"[]";if(this.refFileDiv=y.createRef(),this.props.limitPath){const f=this.props.limitPath.split("/");this.limitToObjectID=f[0],this.limitToPath=f.length?f.length===1&&f[0]===""?null:f.join("/"):null,this.limitToPath&&this.limitToPath.endsWith("/")&&this.limitToPath.substring(0,this.limitToPath.length-1)}let o;try{o=JSON.parse(n),this.limitToPath&&(o=o.filter(f=>{var h;return f.startsWith(`${this.limitToPath}/`)||f===this.limitToPath||((h=this.limitToPath)==null?void 0:h.startsWith(`${f}/`))}))}catch{o=[]}let a;this.props.showViewTypeButton?a=this.localStorage.getItem("files.viewType")||Tt:a=Tt;let i=this.props.selected||this.localStorage.getItem("files.selected")||Oa,l;if(r.restrictToFolder){i=r.restrictToFolder,l=r.restrictToFolder;const f=r.restrictToFolder.split("/");o=[];let h="";for(let d=0;d{if(this.state.viewType===Tt&&!this.findItem(this.state.selected)){const n=this.state.selected.split("/");for(;n.length&&!this.findItem(n.join("/"));)n.pop();let o;n.length?o=n.join("/"):o=Oa,this.setState({selected:o,path:o,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){if(this.mounted){const r=document.getElementById(this.state.selected);r==null||r.scrollIntoView()}}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(r=>console.error(`Cannot load folders: ${r}`)),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(r=>r&&clearTimeout(r)),this._tempTimeout={}}browseFoldersCb(r,n,o){if(!(r!=null&&r.length))o(n);else{const a=r.shift();a?this.browseFolder(a,n).catch(i=>console.error(`Cannot read folder ${a}: ${i.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(r,n,o),0)}):setTimeout(()=>this.browseFoldersCb(r,n,o),0)}}browseFolders(r,n){let o;return n?o=n:(o={},Object.keys(this.state.folders).forEach(a=>o[a]=this.state.folders[a])),r!=null&&r.length?new Promise(a=>{this.browseFoldersCb(r,o,a)}):Promise.resolve(o)}readDirSerial(r,n){return new Promise((o,a)=>{this.browseList&&(this.browseList.push({resolve:o,reject:a,adapter:r,relPath:n}),this.browseListRunning||this.processBrowseList())})}processBrowseList(r=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.setState({queueLength:this.browseList.length}),this.browseList[0].processing=!0,this.props.socket.readDir(this.browseList[0].adapter,this.browseList[0].relPath).then(n=>{if(this.browseList){const o=this.browseList.shift();if(o){const a=o.resolve;o.resolve=null,o.reject=null,o.adapter=null,o.relPath=null,a&&a(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(n=>{if(this.browseList){const o=this.browseList.shift();if(o){const a=o.reject;o.resolve=null,o.reject=null,o.adapter=null,o.relPath=null,a&&a(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(r,n,o,a){let i;if(n?i=n:(i={},Object.keys(this.state.folders).forEach(_=>{i[_]=this.state.folders[_]})),i[r]&&!a)return o?Promise.resolve(i):new Promise((_,g)=>{Promise.all(i[r].filter(b=>b.folder).map(b=>this.browseFolder(b.id,i,!0).catch(()=>{}))).then(()=>_(i)).catch(b=>g(new Error(b)))});if(!r||r==="/"){try{let _=await this.props.socket.readMetaItems();const g=[];let b=null;if(this.state.restrictToFolder){const S=this.state.restrictToFolder.split("/")[0];_=_.filter(k=>k._id===S)}else this.state.expertMode||(_=_.filter(S=>!S._id.endsWith(".admin")));const w=_.findIndex(S=>S._id==="system.meta.uuid");if(w!==-1&&_.splice(w,1),_.forEach(S=>{if(this.limitToObjectID&&this.limitToObjectID!==S._id)return;const k={id:S._id,name:S._id,title:S.common&&S.common.name||S._id,meta:!0,from:S.from,ts:S.ts,color:S.common&&S.common.color,icon:S.common&&S.common.icon,folder:!0,acl:S.acl,level:0};k.id===Oa?b=k:g.push(k)}),g.sort((S,k)=>S.id>k.id?1:S.idS.folder).map(S=>this.browseFolder(S.id,i,!0).catch(()=>{}))).then(()=>i)}catch(_){const g=_;this.initialReadFinished&&window.alert(`Cannot read meta items: ${g.message}`),i[r||"/"]=[]}return i}const l=r.split("/"),u=l.length,f=l.shift(),h=l.join("/");let d;try{d=await this.readDirSerial(f||"",h)}catch(_){if(_==="Not exists"&&f==="0_userdata.0")d=[];else throw _}try{const _=[];if(d.forEach(g=>{var w;const b={id:`${r}/${g.file}`,ext:ht.getFileExtension(g.file),folder:g.isDir,name:g.file,size:(w=g.stats)==null?void 0:w.size,modified:g.modifiedAt,acl:g.acl,level:u};this.state.restrictToFolder?(b.folder&&(b.id.startsWith(`${this.state.restrictToFolder}/`)||b.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${b.id}/`))||b.id.startsWith(`${this.state.restrictToFolder}/`))&&_.push(b):this.limitToPath?(b.folder&&(b.id.startsWith(`${this.limitToPath}/`)||b.id===this.limitToPath||this.limitToPath.startsWith(`${b.id}/`))||b.id.startsWith(`${this.limitToPath}/`))&&_.push(b):_.push(b)}),_.sort(SO),i[r]=_,!o)return Promise.all(_.filter(g=>g.folder).map(g=>this.browseFolder(g.id,i,!0))).then(()=>i)}catch(_){const g=_;this.initialReadFinished&&window.alert(`Cannot read ${f}${h?`/${h}`:""}: ${g==null?void 0:g.message}`),i[r]=[]}return i}toggleFolder(r,n){n==null||n.stopPropagation();const o=[...this.state.expanded],a=o.indexOf(r.id);a===-1?(o.push(r.id),o.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(o)),r.temp?this.setState({expanded:o}):this.browseFolder(r.id).then(i=>this.setState({expanded:o,folders:i})).catch(i=>window.alert(i===xO?this.props.t('ra_Cannot find "%s"',r.id):this.props.t('ra_Cannot read "%s"',r.id)))):(o.splice(a,1),this.localStorage.setItem("files.expanded",JSON.stringify(o)),this.setState({expanded:o}))}changeFolder(r,n){var a;r==null||r.stopPropagation(),this.lastSelect=Date.now();let o=n||Ii(this.state.currentDir);if(o==="/"&&(o=""),this.state.viewType==="Tile"&&((a=this.refFileDiv.current)!=null&&a.scrollTop)&&(this.scrollPositions[this.state.currentDir]=this.refFileDiv.current.scrollTop),this.localStorage.setItem("files.currentDir",o),n&&r&&(r.altKey||r.shiftKey||r.ctrlKey||r.metaKey)){this.setState({selected:o});return}if(o&&!this.state.folders[o]){this.browseFolder(o).then(i=>this.setState({folders:i,path:o,currentDir:o,selected:o,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(i=>console.error(`Cannot read folder: ${i.message}`));return}this.setState({currentDir:o,selected:o,path:o,pathFocus:!1},()=>{if(this.props.onSelect&&this.props.onSelect(""),this.state.viewType==="Tile"&&this.scrollPositions[this.state.currentDir]){const i=this.scrollPositions[this.state.currentDir];delete this.scrollPositions[this.state.currentDir],this.refFileDiv.current&&(this.refFileDiv.current.scrollTop=i)}})}select(r,n,o){n&&n.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",r),this.setState({selected:r,path:r,pathFocus:!1},()=>{if(this.props.onSelect){const a=ht.getFileExtension(r);(!this.props.filterFiles||a&&this.props.filterFiles.includes(a))&&(!this.state.filterByType||a&&Lr[this.state.filterByType].includes(a))?this.props.onSelect(r,!1,!!this.state.folders[r]):this.props.onSelect("")}o&&o()})}getText(r){if(r)return typeof r=="object"?r[this.props.lang]||r.en||void 0:r}renderFolder(r,n){var f;if(this.state.filterEmpty&&!((f=this.state.folders[r.id])!=null&&f.length)&&r.id!==Oa&&!r.temp)return null;const o=n?JQ:I0,a=this.state.viewType===Tt?r.level*this.levelPadding:0,i=r.name===Oa,l=i||r.name==="vis.0"||r.name==="vis-2.0",u=ht.getStyle(this.props.theme,Ne[`itemFolderIcon${this.state.viewType}`],l&&Ne.specialFolder);return y.createElement(wt,{component:"div",key:r.id,id:r.id,style:this.state.viewType===Tt?{marginLeft:a,width:`calc(100% - ${a}px`}:void 0,onClick:h=>this.state.viewType===Tt?this.select(r.id,h):this.changeFolder(h,r.id),onDoubleClick:h=>this.state.viewType===Tt&&this.toggleFolder(r,h),title:this.getText(r.title),className:"browserItem",sx:ht.getStyle(this.props.theme,Ne[`item${this.state.viewType}`],Ne[`itemFolder${this.state.viewType}`],this.state.selected===r.id?Ne.itemSelected:{},r.temp?Ne.itemFolderTemp:{})},y.createElement(o,{style:u,onClick:this.state.viewType===Tt?h=>this.toggleFolder(r,h):void 0}),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,Ne[`itemName${this.state.viewType}`],Ne[`itemNameFolder${this.state.viewType}`])},i?this.props.t("ra_User files"):r.name),y.createElement(wt,{component:"div",style:Ne[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Tt&&this.state.folders[r.id]?this.state.folders[r.id].length:""),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Tt&&this.props.expertMode?this.formatAcl(r.acl):null),this.state.viewType===Tt&&this.props.expertMode?y.createElement(wt,{component:"div",sx:{...Ne.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===Tt&&this.props.allowDownload?y.createElement("div",{style:Ne[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===Tt&&this.props.allowDelete&&this.state.folders[r.id]&&this.state.folders[r.id].length?y.createElement(nr,{"aria-label":"delete",onClick:h=>{h.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:Ne[`itemDeleteButton${this.state.viewType}`],size:"large"},y.createElement(Dp,{fontSize:"small"})):this.state.viewType===Tt&&this.props.allowDelete?y.createElement(wt,{component:"div",sx:Ne[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return y.createElement(wt,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:r=>this.changeFolder(r),title:this.props.t("ra_Back to %s",Ii(this.state.currentDir)),className:"browserItem",sx:ht.getStyle(this.props.theme,Ne[`item${this.state.viewType}`],Ne[`itemFolder${this.state.viewType}`])},y.createElement(I0,{style:ht.getStyle(this.props.theme,Ne[`itemFolderIcon${this.state.viewType}`])}),y.createElement(VU,{sx:Ne.itemFolderIconBack}),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,Ne[`itemName${this.state.viewType}`],Ne[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(r){return y.createElement("div",{style:Ne[`itemSize${this.state.viewType}`]},r||r===0?ht.formatBytes(r):"")}formatAcl(r){const n=r?r.permissions||r.file:0;let o;return n?o=n.toString(16).padStart(3,"0"):o="",y.createElement("div",{style:Ne[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?y.createElement(nr,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:Ne[`itemAclButton${this.state.viewType}`]},o||"---"):o||"---")}getFileIcon(r){switch(r){case"json":case"json5":return y.createElement(JU,{style:Ne[`itemIcon${this.state.viewType}`]});case"css":return y.createElement(YU,{style:Ne[`itemIcon${this.state.viewType}`]});case"js":case"ts":return y.createElement(Ub,{style:Ne[`itemIcon${this.state.viewType}`]});case"html":case"md":return y.createElement(XM,{style:Ne[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return y.createElement(uH,{style:Ne[`itemIcon${this.state.viewType}`]});default:return y.createElement(GM,{style:Ne[`itemIcon${this.state.viewType}`]})}}static getEditFile(r){switch(r){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":return!0;default:return!1}}renderFile(r){const n=this.state.viewType===Tt?r.level*this.levelPadding:0,o=ht.getFileExtension(r.name);return y.createElement(wt,{component:"div",key:r.id,id:r.id,onDoubleClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&Lr[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:o})},onClick:a=>this.select(r.id,a),style:this.state.viewType===Tt?{marginLeft:n,width:`calc(100% - ${n}px)`}:void 0,className:"browserItem",sx:ht.getStyle(this.props.theme,Ne[`item${this.state.viewType}`],Ne[`itemFile${this.state.viewType}`],this.state.selected===r.id?Ne.itemSelected:void 0)},o&&Lr.images.includes(o)?this.state.fileErrors.includes(r.id)?y.createElement(Pw,{style:{...Ne[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...Ne[`itemNoImage${this.state.viewType}`]}}):y.createElement(Rw,{onError:a=>{a.target.onerror=null;const i=[...this.state.fileErrors];i.includes(r.id)||(i.push(r.id),this.setState({fileErrors:i}))},style:{...Ne[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+r.id,alt:r.name}):this.getFileIcon(o),y.createElement(wt,{component:"div",sx:Ne[`itemName${this.state.viewType}`]},r.name),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(r.size)),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Tt&&this.props.expertMode?this.formatAcl(r.acl):null),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Tt&&this.props.expertMode&&Aw.getEditFile(o)?y.createElement(nr,{"aria-label":"edit",onClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&Lr[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:o})},sx:Ne.itemDeleteButtonTable,size:"large"},y.createElement(rH,{fontSize:"small"})):y.createElement(wt,{component:"div",sx:Ne[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===Tt&&this.props.allowDownload?y.createElement(wt,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:Ne.itemDownloadButtonTable,tabIndex:0,download:r.id,href:this.imagePrefix+r.id,onClick:a=>a.stopPropagation()},y.createElement(fH,null)):null,this.state.viewType===Tt&&this.props.allowDelete&&r.id!=="vis.0/"&&r.id!=="vis-2.0/"&&r.id!==Oa?y.createElement(nr,{"aria-label":"delete",onClick:a=>{a.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:Ne[`itemDeleteButton${this.state.viewType}`],size:"large"},y.createElement(Dp,{fontSize:"small"})):this.state.viewType===Tt&&this.props.allowDelete?y.createElement(wt,{component:"div",sx:Ne[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(r){var n;if((n=this.state.folders)!=null&&n[r]){if(this.state.viewType===Tv){const a=[];return r&&r!=="/"&&a.push(this.renderBackFolder()),this.state.folders[r].forEach(i=>{i.folder?a.push(this.renderFolder(i)):(!this.props.filterFiles||i.ext&&this.props.filterFiles.includes(i.ext))&&(!this.state.filterByType||i.ext&&Lr[this.state.filterByType].includes(i.ext))&&a.push(this.renderFile(i))}),a}const o=[];return this.state.folders[r].forEach(a=>{if(a.folder){const i=this.state.expanded.includes(a.id),l=this.renderFolder(a,i);if(Array.isArray(l)?l.forEach(u=>o.push(u)):o.push(l),this.state.folders[a.id]&&i){const u=this.renderItems(a.id);Array.isArray(u)?u.forEach(f=>o.push(f)):o.push(u)}}else(!this.props.filterFiles||a.ext&&this.props.filterFiles.includes(a.ext))&&(!this.state.filterByType||a.ext&&Lr[this.state.filterByType].includes(a.ext))&&o.push(this.renderFile(a))}),o}return y.createElement("div",{style:{position:"relative"}},y.createElement(P9,{key:r,color:"secondary",size:24}),y.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const r=this.props.showTypeSelector?gp[this.state.filterByType||"all"]||gp.all:null,n=this.findFirstFolder(this.state.selected);return y.createElement(Bb,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?y.createElement(nr,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...Ne.menuButton,...this.state.restrictToFolder?Ne.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},y.createElement(oH,{fontSize:"small"})):null,this.props.showExpertButton?y.createElement(nr,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...Ne.menuButton,...this.state.expertMode?Ne.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},y.createElement(GQ,null)):null,this.props.showViewTypeButton?y.createElement(nr,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:Ne.menuButton,"aria-label":"view mode",onClick:()=>{const o=this.state.viewType===Tt?Tv:Tt;this.localStorage.setItem("files.viewType",o);let a=this.state.selected;Ev(a)&&(a=Ii(a)),this.setState({viewType:o,currentDir:a},()=>{this.state.viewType===Tt&&this.scrollToSelected()})},size:"small"},this.state.viewType!==Tt?y.createElement(cH,{fontSize:"small"}):y.createElement(bH,{fontSize:"small"})):null,y.createElement(nr,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:Ne.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"},y.createElement(nH,{fontSize:"small"})),y.createElement(nr,{edge:"start",title:this.props.t("ra_Reload files"),style:Ne.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},y.createElement(YM,{fontSize:"small"})),this.props.allowCreateFolder?y.createElement(nr,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:Ne.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},y.createElement(tH,{fontSize:"small"})):null,this.props.allowUpload?y.createElement(nr,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:Ne.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},y.createElement(HC,{fontSize:"small"})):null,this.props.showTypeSelector&&r?y.createElement(Op,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:Ne.tooltip}}},y.createElement(nr,{size:"small",onClick:o=>this.setState({showTypesMenu:o.target})},y.createElement(r,{fontSize:"small"}))):null,this.state.showTypesMenu?y.createElement(jb,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(gp).map(o=>{const a=gp[o];return y.createElement(fr,{key:o,selected:this.state.filterByType===o,onClick:()=>{o==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",o),this.setState({filterByType:o,showTypesMenu:null}))}},y.createElement(w7,null,y.createElement(a,{fontSize:"small"})),y.createElement(C7,null,this.props.t(`ra_fileType_${o}`)))})):null,y.createElement(Op,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:Ne.tooltip}}},y.createElement(nr,{color:"inherit",edge:"start",style:Ne.menuButton,onClick:this.setStateBackgroundImage,size:"small"},y.createElement(Wb,{fontSize:"small"}))),this.state.viewType!==Tt&&this.props.allowDelete?y.createElement(Op,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:Ne.tooltip}}},y.createElement("span",null,y.createElement(nr,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===Oa,color:"inherit",edge:"start",style:Ne.menuButton,onClick:o=>{o.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},y.createElement(Dp,{fontSize:"small"})))):null)}findItem(r,n){if(n=n||this.state.folders,!n)return null;const o=r.split("/");o.pop();const a=o.join("/")||"/";return n[a]&&n[a].find(i=>i.id===r)||null}renderInputDialog(){if(this.state.addFolder){const r=this.findFirstFolder(this.state.selected);return r?y.createElement(XQ,{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:n=>this.state.folders[r].find(o=>o.name===n)?"":this.props.t("ra_Duplicate name"),onClose:n=>{if(n){const o={};Object.keys(this.state.folders).forEach(u=>o[u]=this.state.folders[u]);const a=this.findItem(r),i=`${r}/${n}`;o[r].push({id:i,level:((a==null?void 0:a.level)||0)+1,name:n,folder:!0,temp:!0}),o[r].sort(SO),o[i]=[];const l=[...this.state.expanded];l.includes(r)||(l.push(r),l.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(l)),this.setState({addFolder:!1,folders:o,expanded:l},()=>this.select(i))}else this.setState({addFolder:!1})},replace:n=>n.replace(/[^-_\w]/,"_")}):(window.alert(this.props.t("ra_Invalid parent folder!")),null)}return null}componentDidUpdate(){this.setOpacityTimer&&clearTimeout(this.setOpacityTimer),this.setOpacityTimer=setTimeout(()=>{this.setOpacityTimer=null;const r=window.document.getElementsByClassName("browserItem");for(let n=0;nthis.setState({uploadFile:!1})},y.createElement(Rs,null)),y.createElement(Qf,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:r=>{let n=r.length;r.forEach(o=>{const a=new FileReader;a.onabort=()=>console.log("file reading was aborted"),a.onerror=()=>console.log("file reading has failed"),a.onload=()=>{const i=this.findFirstFolder(this.state.selected);if(!i)window.alert(this.props.t("ra_Invalid parent folder!"));else{const l=`${i}/${o.name}`;this.uploadFile(l,a.result).then(()=>{--n||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const u=[...this.state.expanded];u.includes(i)||(u.push(i),u.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(u))),this.setState({expanded:u},()=>this.select(l))}else setTimeout(()=>this.browseFolder(i,null,!1,!0).then(u=>{const f=[...this.state.expanded];f.includes(i)||(f.push(i),f.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(f))),this.setState({folders:u,expanded:f},()=>this.select(l))}),500)})})}},a.readAsArrayBuffer(o)})}},({getRootProps:r,getInputProps:n})=>y.createElement("div",{style:{...Ne.uploadDiv,...this.state.uploadFile==="dragging"?Ne.uploadDivDragging:void 0},...r()},y.createElement("input",{...n()}),y.createElement(wt,{component:"div",sx:Ne.uploadCenterDiv},y.createElement("div",{style:Ne.uploadCenterTextAndIcon},y.createElement(HC,{style:Ne.uploadCenterIcon}),y.createElement("div",{style:Ne.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(r){const n=this.findItem(r);if(n!=null&&n.folder)return(this.state.folders[r]?Promise.all(this.state.folders[r].map(i=>this.deleteRecursive(i.id))):Promise.resolve()).then(()=>{if(n.level>=1){const i=r.split("/"),l=i.shift();this.props.socket.deleteFolder(l||"",i.join("/")).then(()=>{const u=JSON.parse(JSON.stringify(this.state.folders));delete u[n.id];const f=Ii(n.id),h=u[f];if(h){const d=h.findIndex(_=>_.id===n.id);d!==-1&&h.splice(d,1),this.select(f,null,()=>this.setState({folders:u}))}})}});const o=r.split("/"),a=o.shift();return o.length?this.props.socket.deleteFile(a||"",o.join("/")).catch(i=>window.alert(`Cannot delete file: ${i}`)):Promise.resolve()}deleteItem(r){r=r||this.state.deleteItem,this.setState({deleteItem:""},()=>this.deleteRecursive(r).then(()=>{const n={},o=this.state.expanded.indexOf(r);if(o!==-1){const a=[...this.state.expanded];a.splice(o,1),this.localStorage.setItem("files.expanded",JSON.stringify(a)),n.expanded=a}if(this.state.selected===r){const a=this.state.selected.split("/");a.pop(),n.selected=a.join("/")}if(this.supportSubscribes)this.setState(n);else{const a=this.findFirstFolder(r),i={};Object.keys(this.state.folders).forEach(l=>{l!==a&&!l.startsWith(`${a}/`)&&(i[l]=this.state.folders[l])}),n.folders=i,this.setState(n,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],i).then(l=>this.setState({folders:l})).catch(l=>console.error(l))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?y.createElement(ra,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},y.createElement(aa,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),y.createElement(oa,null,y.createElement(If,null,this.props.t("ra_Are you sure?"))),y.createElement(na,null,y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>{this.suppressDeleteConfirm=Date.now()+6e4*5,this.deleteItem("")}},this.props.t("ra_Delete (no confirm for 5 mins)")),y.createElement(Qt,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),y.createElement(Qt,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){const r=this.props.FileViewer||yee;return this.state.viewer?y.createElement(r,{supportSubscribes:this.supportSubscribes,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile,themeType:this.props.themeType,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?y.createElement(KM,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(r){this.cacheFolders=this.cacheFolders||JSON.parse(JSON.stringify(this.state.folders));let n;r.forEach(o=>{const a=this.findItem(o.id,this.cacheFolders);a&&JSON.stringify(a.acl)!==JSON.stringify(o.acl)&&(a.acl=o.acl,n=!0)}),n&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const o=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:o})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let r=this.state.path;Ev(this.state.path)&&(r=Ii(this.state.path)),new Promise(n=>{this.state.folders[r]?n(!0):this.browseFolder(r).then(o=>this.setState({folders:o},()=>n(!0))).catch(o=>this.setState({errorText:o===xO?this.props.t('ra_Cannot find "%s"',r):this.props.t('ra_Cannot read "%s"',r)}))}).then(n=>n&&this.setState({selected:this.state.path,currentDir:r,pathFocus:!1})).catch(n=>console.error(n))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const r=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),n=[];return y.createElement(NM,{style:{paddingLeft:8,color:"#FFF"}},r.map((o,a)=>{o&&n.push(o);const i=n.join("/");return athis.changeFolder(l,i||"/")},o||this.props.t("ra_Root")):y.createElement("div",{style:Ne.pathDivBreadcrumbSelected,key:`${this.state.selected}_${a}`,onClick:()=>this.setState({pathFocus:!0})},o)}))}renderPath(){return y.createElement(wt,{component:"div",key:"path",sx:Ne.pathDiv},this.state.pathFocus?y.createElement(mo,{value:this.state.path,onKeyDown:r=>{r.key==="Enter"?this.changeToPath():r.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:y.createElement(nr,{size:"small",onClick:()=>this.changeToPath()},y.createElement(JM,null)),onBlur:()=>this.changeToPath(),onChange:r=>this.setState({path:r.target.value}),style:Ne.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(r=>console.error(`Cannot load folders: ${r}`))})},300)),y.createElement("div",{style:{...Ne.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===Tv?this.renderPath():null,y.createElement("div",{style:{...Ne.filesDiv,...Ne[`filesDiv${this.state.viewType}`]},onClick:r=>{this.state.viewType!==Tt&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(r,this.state.currentDir||"/"):r.stopPropagation())},id:"dev",ref:this.refFileDiv},this.state.viewType===Tt?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==Tt?y.createElement("div",{style:Ne.filesDivHint},this.props.t("ra_select_folder_hint")):null),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())):y.createElement(jM,null)}}const vee=eh()(Aw),bee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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 wee(t){const e=document.createElement("div");e.innerHTML=t;const r=e.firstElementChild;return r!=null&&r.remove?r.remove():r&&e.removeChild(r),e.remove(),r}function xee(t){const e={};if(!t)return e;for(let r,n=0;na[1].toUpperCase()),e[r]=t[n].value}return e}const ys=class ys extends $.Component{constructor(r){var n;super(r);we(this,"svg");this.state={svg:!!((n=this.props.src)!=null&&n.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(r,n){var i;const o={};let a=!1;return r&&n&&r.src!==n.src&&(o.src=r.src,o.svg=(i=r.src)==null?void 0:i.startsWith("data:"),o.created=!1,a=!0),r&&n&&r.color!==n.color&&(o.color=r.color,o.created=!1,a=!0),r&&n&&r.showError!==n.showError&&(o.showError=r.showError,a=!0),a?o:null}getSvgFromData(r){const n="data:image/svg+xml;base64,";if(!r.startsWith(n))return null;r=r.substring(n.length);try{r=atob(r);const o=wee(r),a=o.innerHTML,i=xee(o.attributes);return o.remove(),y.createElement("svg",{className:this.props.className,style:this.state.color?{color:this.state.color}:{},...i,dangerouslySetInnerHTML:{__html:a}})}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 y.createElement(Pw,{className:this.props.className});if(ys.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let r=(this.props.imagePrefix||"")+this.state.src;return r.startsWith("./")?r=ys.REMOTE_PREFIX+r.substring(2):r.startsWith("/")||(r=ys.REMOTE_PREFIX+r),y.createElement("img",{className:this.props.className,src:`https://remote-files.iobroker.in${r}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return y.createElement("img",{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}};we(ys,"REMOTE_SERVER",window.location.hostname.includes("iobroker.in")),we(ys,"REMOTE_PREFIX",window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1));let kO=ys;class pP extends y.Component{constructor(){super(...arguments);we(this,"handleFileSelect",r=>{const n=r.target,o=n==null?void 0:n.files;if(!o||!o.length){console.error("No files found. Please report to developers");return}const a=o[0];if(a){const i=new window.FileReader;i.onload=()=>{var u;const l=((u=i.result)==null?void 0:u.toString())||"";try{const f=JSON.parse(l);f.native&&f.common?f.common.name!==this.props.common.name?this.props.onError&&this.props.onError(U.t("ra_otherConfig",f.common.name)):this.props.onLoad&&this.props.onLoad(f.native):this.props.onError&&this.props.onError(U.t("ra_invalidConfig"))}catch(f){this.props.onError&&this.props.onError(f==null?void 0:f.toString())}},i.readAsText(a)}else alert("Failed to open JSON File")})}static generateFile(r,n){const o=window.document.createElement("a");o.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(n,null,2))}`),o.setAttribute("download",r),o.style.display="none",window.document.body.appendChild(o),o.click(),window.document.body.removeChild(o)}download(){const r={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};r.common.news&&delete r.common.news,r.common.titleLang&&delete r.common.titleLang,r.common.desc&&delete r.common.desc,pP.generateFile(`${r._id}.json`,r)}upload(){const r=window.document.createElement("input");r.setAttribute("type","file"),r.setAttribute("id","files"),r.setAttribute("opacity","0"),r.addEventListener("change",this.handleFileSelect,!1),r.click()}render(){return y.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?y.createElement(Rw,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?y.createElement(Cs,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{const r=window.open(this.props.common.readme,"_blank");r==null||r.focus()}},y.createElement(sH,null)):null,y.createElement(Cs,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:U.t("ra_Load configuration from file"),onClick:()=>this.upload()},y.createElement(yH,null)),y.createElement(Cs,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:U.t("ra_Save configuration to file"),onClick:()=>this.download()},y.createElement(gH,null)))}}const See=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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"})),kee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.createElement("g",{fill:"currentColor"},y.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),y.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),Cee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.createElement("g",{fill:"currentColor"},y.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),y.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),y.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),y.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),$ee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),y.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"}));y.createElement($ee,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(kee,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(Cee,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(See,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(XM,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(bee,{className:"itemIcon",style:{color:"#7da7ff",verticalAlign:"middle"}}),y.createElement(lH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(mH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(hH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(_H,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(dH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(pH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(eH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(Ub,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(I0,{className:"itemIcon itemIconFolder",style:{verticalAlign:"middle"}});const de={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:t=>({background:t.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:t=>({background:t.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowDates:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#747a86"}),rowWeeks:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#717680"}),rowMonths:t=>({background:t.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:t=>({background:t.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:t=>({background:t.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDaysDows:t=>({background:t.palette.mode!=="dark"?"#EEEAFF":"#573544",pl:"10px",pb:"10px"}),rowDowsDows:t=>({background:t.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},Ov=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],yp=["January","February","March","April","May","June","July","August","September","October","November","December"],Dv={minutes:"minutes",hours:"hours"},Ol=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function qo(t){return t<10?`0${t}`:`${t}`}const CO={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function Mv(t){const e=t.split(".");return e.length===3?`${e[2]}-${e[1]}-${e[0]}`:""}class Tr extends $.Component{constructor(r){super(r);we(this,"refFrom");we(this,"refTo");we(this,"refOnce");we(this,"timerOnce",null);we(this,"timerFrom",null);we(this,"timerTo",null);let n;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{n=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(n=this.props.schedule);(!n||!Object.keys(n).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),n=CO),n={...CO,...n},n.valid.from=n.valid.from||Tr.now2string(),this.refFrom=y.createRef(),this.refTo=y.createRef(),this.refOnce=y.createRef(),this.state={schedule:n,desc:Tr.state2text(n)},JSON.stringify(n)!==this.props.schedule&&setTimeout(()=>this.props.onChange&&this.props.onChange(JSON.stringify(n)),100)}onChange(r,n){const o=JSON.stringify(r)!==JSON.stringify(this.state.schedule);if(n||o){o&&this.setState({schedule:r,desc:Tr.state2text(r)});const a=JSON.parse(JSON.stringify(r));if(a.period.once){const i=a.period.once;delete a.period,a.period={once:i},delete a.valid}else if(a.period.days){const i=a.period.days,l=a.period.dows;delete a.period,a.period={days:i},l&&l!=="[]"&&(a.period.dows=l)}else if(a.period.weeks){const i=a.period.weeks,l=a.period.dows;delete a.period,a.period={weeks:i},l&&l!=="[]"&&(a.period.dows=l)}else if(a.period.months){const i=a.period.months,l=a.period.dates;delete a.period,a.period={months:i},l&&l!=="[]"&&(a.period.dates=l)}else if(a.period.years){const i=a.period.years,l=a.period.yearMonth,u=a.period.yearDate;delete a.period,a.period={years:i,yearDate:u},l&&(a.period.yearMonth=l)}if(a.time.exactTime?(delete a.time.end,delete a.time.mode,delete a.time.interval):delete a.time.exactTime,a.valid){if(a.valid.to||delete a.valid.to,a.period.days===1||a.period.weeks===1||a.period.months===1||a.period.years===1){const i=Tr.string2date(a.valid.from),l=new Date;l.setHours(0),l.setMinutes(0),l.setSeconds(0),l.setMilliseconds(0),i<=l&&delete a.valid.from}!a.valid.from&&!a.valid.to&&delete a.valid}this.props.onChange&&this.props.onChange(JSON.stringify(a),Tr.state2text(r))}}static state2text(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{return""}const n=[],o=Tr.string2date(r.valid.from);if(r.period.once){const a=Tr.string2date(r.period.once),i=new Date;if(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0),aU.t(Ov[l]));if(i.length===1)n.push(U.t("sch_desc_onWeekday",i[0]));else if(i.length===7)n.push(U.t("sch_desc_everyDay"));else{const l=i.pop();n.push(U.t("sch_desc_onWeekdays",i.join(", "),l))}}}else n.push(U.t("sch_desc_everyDay"));else n.push(U.t("sch_desc_everyNDay",r.period.days.toString()));else if(r.period.weeks)if(r.period.weeks===1?n.push(U.t("sch_desc_everyWeek")):n.push(U.t("sch_desc_everyNWeeks",r.period.weeks.toString())),r.period.dows){const a=JSON.parse(r.period.dows);if(a.length===2&&a[0]===0&&a[1]===6)n.push(U.t("sch_desc_onWeekends"));else if(a.length===5&&a[0]===1&&a[1]===2&&a[2]===3&&a[3]===4&&a[4]===5)n.push(U.t("sch_desc_onWorkdays"));else{const i=a.map(l=>U.t(Ov[l]));if(i.length===1)n.push(U.t("sch_desc_onWeekday",i[0]));else if(i.length===7)n.push(U.t("sch_desc_everyDay"));else{const l=i.pop();n.push(U.t("sch_desc_onWeekdays",i.join(", "),l))}}}else return U.t("sch_desc_never");else if(r.period.months){if(r.period.dates){const a=JSON.parse(r.period.dates);if(a.length===1)n.push(U.t("sch_desc_onDate",a[0]));else if(a.length===31)n.push(U.t("sch_desc_onEveryDate"));else if(a.length){const i=a.pop();n.push(U.t("sch_desc_onDates",a.join(", "),i))}else return U.t("sch_desc_never")}else n.push(U.t("sch_desc_onEveryDate"));if(r.period.months===1)n.push(U.t("sch_desc_everyMonth"));else if(typeof r.period.months=="number")n.push(U.t("sch_desc_everyNMonths",r.period.months.toString()));else{const i=JSON.parse(r.period.months).map(l=>U.t(yp[l-1]));if(!i.length)return U.t("sch_desc_never");if(i.length===1)n.push(U.t("sch_desc_onMonth",i[0]));else if(i.length===12)n.push(U.t("sch_desc_everyMonth"));else{const l=i.pop();n.push(U.t("sch_desc_onMonths",i.join(", "),l))}}}else r.period.years&&(r.period.years===1?n.push(U.t("sch_desc_everyYear")):n.push(U.t("sch_desc_everyNYears",r.period.years.toString())),n.push(U.t("sch_desc_onDate",r.period.yearDate.toString(),r.period.yearMonth?U.t(yp[r.period.yearMonth-1]):U.t("sch_desc_everyMonth"))));if(r.time.exactTime)Ol.includes(r.time.start)?n.push(U.t("sch_desc_atTime",U.t(`sch_astro_${r.time.start}`))):n.push(U.t("sch_desc_atTime",r.time.start));else{r.time.mode===Dv.minutes?r.time.interval===1?n.push(U.t("sch_desc_everyMinute")):n.push(U.t("sch_desc_everyNMinutes",r.time.interval.toString())):r.time.interval===1?n.push(U.t("sch_desc_everyHour")):n.push(U.t("sch_desc_everyNHours",r.time.interval.toString()));const a=Ol.indexOf(r.time.start)!==-1?U.t(`sch_astro_${r.time.start}`):r.time.start,i=Ol.indexOf(r.time.end)!==-1?U.t(`sch_astro_${r.time.end}`):r.time.end;(a!=="00:00"||i!=="24:00"&&i!=="23:59")&&n.push(U.t("sch_desc_intervalFromTo",a,i))}return r.period.once||(o.getTime()>Date.now()&&r.valid.to?n.push(U.t("sch_desc_validFromTo",r.valid.from,r.valid.to)):o.getTime()>Date.now()?n.push(U.t("sch_desc_validFrom",r.valid.from)):r.valid.to&&n.push(U.t("sch_desc_validTo",r.valid.to))),n.join(" ")}getTimePeriodElements(){const r=this.state.schedule;let n=!1,o=!1,a=!1,i=!0;return r.time.start==="00:00"&&r.time.end==="24:00"?(n=!0,i=!1):r.time.start==="sunrise"?(o=!0,i=!1):r.time.start==="sunset"&&(a=!0,i=!1),y.createElement("div",{key:"timePeriod",style:de.rowDiv},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!r.time.exactTime,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.exactTime=!1,this.onChange(l)}}),label:U.t("sch_intervalTime")})),y.createElement("div",{style:de.settingsDiv},y.createElement("div",{style:de.settingsDiv},!r.time.exactTime&&y.createElement("div",null,y.createElement("div",null,y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!i,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="23:59",this.onChange(l)}}),label:i?"":U.t("sch_fromTo")}),i&&[y.createElement(zr,{variant:"standard",style:{...de.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:l=>{const u=JSON.parse(JSON.stringify(this.state.schedule));u.time.start=l.target.value,this.onChange(u)},slotProps:{inputLabel:{shrink:!0}},label:U.t("sch_from"),margin:"normal"}),y.createElement(zr,{variant:"standard",style:de.inputTime,key:"exactTimeTo",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:l=>{const u=JSON.parse(JSON.stringify(this.state.schedule));u.time.end=l.target.value,this.onChange(u)},slotProps:{inputLabel:{shrink:!0}},label:U.t("sch_to"),margin:"normal"})])),!r.time.exactTime&&y.createElement("div",null,y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!n,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="24:00",this.onChange(l)}}),label:U.t("sch_wholeDay")})),!r.time.exactTime&&y.createElement("div",null,y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!o,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunrise",l.time.end="sunset",this.onChange(l)}}),label:U.t("sch_astroDay")})),!r.time.exactTime&&y.createElement("div",null,y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!a,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunset",l.time.end="sunrise",this.onChange(l)}}),label:U.t("sch_astroNight")}))),!r.time.exactTime&&this.getPeriodSettingsMinutes(i)))}getTimeExactElements(){const r=Ol.includes(this.state.schedule.time.start);return y.createElement("div",{key:"timeExact",style:de.rowDiv},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.exactTime=!0,this.onChange(n)}}),label:U.t("sch_exactTime")})),this.state.schedule.time.exactTime&&y.createElement(wo,{variant:"standard",value:r?this.state.schedule.time.start:"00:00",onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.start=n.target.value,this.onChange(o)}},y.createElement(fr,{key:"specific",value:"00:00"},U.t("sch_specificTime")),Ol.map(n=>y.createElement(fr,{key:n,value:n},U.t(`sch_astro_${n}`)))),this.state.schedule.time.exactTime&&!r&&y.createElement("div",{style:de.settingsDiv},y.createElement(zr,{variant:"standard",style:de.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.start=n.target.value,this.onChange(o)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return y.createElement("hr",{style:de.hr})}getPeriodModes(){const r=this.state.schedule,n=!r.period.dows&&!r.period.months&&!r.period.dates&&!r.period.years&&!r.period.days&&!r.period.weeks;return n&&!r.period.once&&(r.period.once=Tr.now2string(!0)),[y.createElement("div",{key:"once",style:{...de.rowDiv,...de.rowOnce}},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!n,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.once=o.period.once||Tr.now2string(!0),o.period.dows="",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,this.onChange(o)}}),label:U.t("sch_periodOnce")})),n&&y.createElement("div",{style:de.settingsDiv},y.createElement(zr,{variant:"standard",style:de.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:Mv(r.period.once),onChange:o=>{this.timerOnce&&clearTimeout(this.timerOnce),this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(a=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const i=JSON.parse(JSON.stringify(this.state.schedule)),l=Tr.string2date(a);l.toString()!=="Invalid Date"&&(i.period.once=`${qo(l.getDate())}.${qo(l.getMonth()+1)}.${l.getFullYear()}`,this.onChange(i))},1500,o.target.value)},slotProps:{inputLabel:{shrink:!0}},label:U.t("sch_at"),margin:"normal"}))),y.createElement(wt,{component:"div",key:"days",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowDays)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!r.period.days,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=1,o.period.dows="",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodDaily")})),y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsDaily(),r.period.days?this.getPeriodSettingsWeekdays():null)),y.createElement(wt,{component:"div",key:"weeks",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowDows)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!r.period.weeks,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=r.period.weeks?0:1,o.period.dows=r.period.dows||"[0]",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodWeekly")})),y.createElement(wt,{component:"div",style:de.settingsDiv},y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsWeekly()),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,de.settingsDiv,de.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),y.createElement(wt,{component:"div",key:"months",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowMonths)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!r.period.months,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=1,o.period.dows="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodMonthly")})),y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsMonthly(),r.period.months?y.createElement(wt,null,y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,de.settingsDiv,de.rowMonthsDates)},y.createElement(gt,{control:y.createElement(tn,{style:de.inputRadio,checked:!!r.period.dates,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=o.period.months||1;const a=[];for(let i=1;i<=31;i++)a.push(i);o.period.dates=o.period.dates||JSON.stringify(a),o.period.dows="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodDates")})),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,de.settingsDiv,de.rowMonthsDates)},this.getPeriodSettingsDates())):null)),y.createElement(wt,{component:"div",key:"years",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowYears)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!r.period.years,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=1,o.period.yearDate=1,o.period.yearMonth=1,o.period.dows="",o.period.months=0,o.period.dates="",o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodYearly")})),y.createElement("div",{style:de.settingsDiv},y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsYearly()),!!r.period.years&&y.createElement("div",{style:de.settingsDiv},y.createElement("span",null,U.t("sch_on")),y.createElement(mo,{key:"input",value:this.state.schedule.period.yearDate,style:de.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearDate=parseInt(o.target.value,10),a.period.yearDate<1&&(a.period.yearDate=31),a.period.yearDate>31&&(a.period.yearDate=1),this.onChange(a)}}),y.createElement(wo,{variant:"standard",value:r.period.yearMonth,onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearMonth=o.target.value,this.onChange(a)}},y.createElement(fr,{key:"every",value:0},U.t("sch_yearEveryMonth")),yp.map((o,a)=>y.createElement(fr,{key:o,value:a+1},U.t(o)))))))]}getPeriodSettingsMinutes(r){return y.createElement("div",{style:{display:"inline-block",marginTop:r?15:"inherit"}},y.createElement("label",{style:{marginLeft:4,marginRight:4}},U.t("sch_every")),y.createElement(mo,{value:this.state.schedule.time.interval,style:{...de.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.interval=parseInt(n.target.value,10),this.onChange(o)}}),y.createElement(wo,{variant:"standard",value:this.state.schedule.time.mode,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.mode=n.target.value,this.onChange(o)}},y.createElement(fr,{value:Dv.minutes},U.t("sch_periodMinutes")),y.createElement(fr,{value:Dv.hours},U.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const r=this.state.schedule,n=r.period.dows&&r.period.dows!=="[1, 2, 3, 4, 5]"&&r.period.dows!=="[0, 6]";return[y.createElement("div",{key:"workdays"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[1, 2, 3, 4, 5]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:U.t("sch_periodWorkdays")})),y.createElement("div",{key:"weekend"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.dows==="[0, 6]",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[0, 6]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:U.t("sch_periodWeekend")})),y.createElement("div",{key:"specific",style:{verticalAlign:"top"}},y.createElement(gt,{style:{verticalAlign:"top"},control:y.createElement(Ft,{style:de.inputRadio,checked:!!n,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[0, 1, 2, 3, 4, 5, 6]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:U.t("sch_periodWeekdays")}),n&&(r.period.days===1||r.period.weeks)&&y.createElement(l_,{row:!0,style:{...de.inputGroup,width:150}},[1,2,3,4,5,6,0].map(o=>y.createElement(gt,{key:`specific_${o}`,style:de.inputGroupElement,control:y.createElement(tn,{style:de.inputSmallCheck,checked:r.period.dows.includes(o.toString()),onChange:a=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(i.period.dows)}catch{l=[]}a.target.checked&&!l.includes(o)?l.push(o):!a.target.checked&&l.includes(o)&&l.splice(l.indexOf(o),1),l.sort((u,f)=>u-f),i.period.dows=JSON.stringify(l),i.period.days&&(i.period.days=1),this.onChange(i)}}),label:U.t(Ov[o])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const r=this.state.schedule;return[y.createElement("div",{key:"every_day"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.days===1&&!r.period.dows,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=1,n.period.dows="",this.onChange(n)}}),label:U.t("sch_periodEveryDay")})),y.createElement("div",{key:"everyN_day"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.days>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=2,n.period.dows="",this.onChange(n)}}),label:U.t("sch_periodEvery")}),r.period.days>1&&[y.createElement(mo,{key:"input",value:this.state.schedule.period.days,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=parseInt(n.target.value,10),o.period.dows="",this.onChange(o)}}),y.createElement("span",{key:"span",style:{paddingRight:10}},U.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const r=this.state.schedule;return[y.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},y.createElement("div",null,y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.weeks===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=1,this.onChange(n)}}),label:U.t("sch_periodEveryWeek")})),y.createElement("div",null,y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.weeks>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=2,this.onChange(n)}}),label:U.t("sch_periodEvery")}),r.period.weeks>1&&[y.createElement(mo,{key:"input",value:this.state.schedule.period.weeks,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=parseInt(n.target.value,10),this.onChange(o)}}),y.createElement("span",{key:"text"},U.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const r=this.state.schedule,n=[];for(let a=1;a<=31;a++)n.push(a);const o=JSON.parse(r.period.dates);return y.createElement(l_,{row:!0,style:{...de.inputGroup,maxWidth:620}},y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:o.length===31,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),i=[];for(let l=1;l<=31;l++)i.push(l);a.period.dates=JSON.stringify(i),this.onChange(a)}}),label:U.t("sch_all")}),y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!o.length,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.dates="[]",this.onChange(a)}}),label:U.t("sch_no_one")}),o.length!==31&&!!o.length&&y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!1,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),i=[],l=JSON.parse(a.period.dates);for(let u=1;u<=31;u++)l.includes(u)||i.push(u);i.sort((u,f)=>u-f),a.period.dates=JSON.stringify(i),this.onChange(a)}}),label:U.t("sch_invert")}),y.createElement("div",null),n.map(a=>y.createElement(gt,{key:`date_${a}`,style:a?de.inputDateDay:{...de.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:y.createElement(tn,{style:de.inputDateDayCheck,checked:JSON.parse(r.period.dates).includes(a),onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let u;try{u=JSON.parse(l.period.dates)}catch{u=[]}i.target.checked&&!u.includes(a)?u.push(a):!i.target.checked&&u.includes(a)&&u.splice(u.indexOf(a),1),u.sort((f,h)=>f-h),l.period.dates=JSON.stringify(u),this.onChange(l)}}),label:a<10?[y.createElement("span",{key:"0",style:{opacity:0}},"0"),y.createElement("span",{key:"num"},a)]:a})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const r=this.state.schedule,n=typeof r.period.months=="string"?JSON.parse(r.period.months):[];return[y.createElement("div",{key:"every"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:typeof r.period.months=="number"&&r.period.months===1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=1,this.onChange(r)}}),label:U.t("sch_periodEveryMonth")})),y.createElement("div",{key:"everyN"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:typeof r.period.months=="number"&&r.period.months>1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=2,this.onChange(o)}}),label:U.t("sch_periodEvery")}),typeof r.period.months=="number"&&r.period.months>1&&[y.createElement(mo,{key:"input",value:r.period.months,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=parseInt(o.target.value,10),a.period.months<1&&(a.period.months=1),this.onChange(a)}}),y.createElement("span",{key:"text"},U.t("sch_periodMonth"))]),y.createElement("div",{key:"specific",style:{verticalAlign:"top"}},y.createElement(gt,{style:{verticalAlign:"top"},control:y.createElement(Ft,{style:de.inputRadio,checked:typeof r.period.months=="string",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(o)}}),label:U.t("sch_periodSpecificMonths")}),typeof r.period.months=="string"&&y.createElement(l_,{row:!0,style:de.inputGroup},y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:n.length===12,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[];for(let i=1;i<=12;i++)a.push(i);o.period.months=JSON.stringify(a),this.onChange(o)}}),label:U.t("sch_all")}),y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!n.length,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months="[]",this.onChange(o)}}),label:U.t("sch_no_one")}),n.length!==12&&!!n.length&&y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!1,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[],i=JSON.parse(o.period.months);for(let l=1;l<=12;l++)i.includes(l)||a.push(l);a.sort((l,u)=>l-u),o.period.months=JSON.stringify(a),this.onChange(o)}}),label:U.t("sch_invert")}),y.createElement("div",null),yp.map((o,a)=>y.createElement(gt,{key:`month_${a}`,style:de.inputGroupElement,control:y.createElement(tn,{style:de.inputSmallCheck,checked:typeof r.period.months=="string"?JSON.parse(r.period.months).includes(a+1):r.period.months===a,onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let u;try{u=JSON.parse(l.period.months)}catch{u=[]}i.target.checked&&!u.includes(a+1)?u.push(a+1):!i.target.checked&&u.includes(a+1)&&u.splice(u.indexOf(a+1),1),u.sort((f,h)=>f-h),l.period.months=JSON.stringify(u),this.onChange(l)}}),label:U.t(o)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const r=this.state.schedule;return[y.createElement("div",{key:"year"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.years===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=1,this.onChange(n)}}),label:U.t("sch_periodEveryYear")})),y.createElement("div",{key:"every"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.years>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=2,this.onChange(n)}}),label:U.t("sch_periodEvery")}),r.period.years>1&&[y.createElement(mo,{key:"input",value:this.state.schedule.period.years,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=parseInt(n.target.value,10),o.period.years<1&&(o.period.years=1),this.onChange(o)}}),y.createElement("span",{key:"text"},U.t("sch_periodYear"))])]}static now2string(r){const n=new Date;return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),r&&(n.setDate(n.getDate()+2),n.setMilliseconds(n.getMilliseconds()-1)),`${qo(n.getDate())}.${qo(n.getMonth()+1)}.${qo(n.getFullYear())}`}static string2date(r){let n=r.split(".");return n.length===1?(n=r.split("-"),new Date(parseInt(n[0],10),parseInt(n[1],10)-1,parseInt(n[2],10))):new Date(parseInt(n[2],10),parseInt(n[1],10)-1,parseInt(n[0],10))}getValidSettings(){const r=this.state.schedule;return y.createElement("div",{style:de.rowDiv},y.createElement("div",{style:{...de.modeDiv,verticalAlign:"middle"}},y.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},U.t("sch_valid")),y.createElement("span",null,U.t("sch_validFrom"))),y.createElement("div",{style:de.settingsDiv},y.createElement(zr,{variant:"standard",style:{...de.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:Mv(r.valid.from),type:"date",onChange:n=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(o=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),i=Tr.string2date(o);i.toString()!=="Invalid Date"&&(a.valid.from=`${qo(i.getDate())}.${qo(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),y.createElement(gt,{control:y.createElement(tn,{style:de.inputRadio,checked:!!r.valid.to,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.valid.to=n.valid.to?"":Tr.now2string(!0),this.onChange(n)}}),label:U.t("sch_validTo")}),!!r.valid.to&&y.createElement(zr,{variant:"standard",inputRef:this.refTo,style:{...de.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:Mv(r.valid.to),onChange:n=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(o=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),i=Tr.string2date(o);i.toString()!=="Invalid Date"&&(a.valid.to=`${qo(i.getDate())}.${qo(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return y.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},y.createElement("div",null,this.state.desc),y.createElement("div",{style:de.scrollWindow},y.createElement("h5",null,U.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),Tr.getDivider(),y.createElement("h5",null,U.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&Tr.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}function Eee({themeName:t,toggleTheme:e,t:r,className:n,style:o,size:a}){return y.createElement("div",{className:n||void 0,style:o||void 0},y.createElement(Op,{title:r("ra_Change color theme"),slotProps:{popper:{sx:{pointerEvents:"none"}}}},y.createElement(nr,{onClick:()=>e(),size:a||"medium"},t==="dark"&&y.createElement(KU,{className:n}),t==="blue"&&y.createElement(ZU,{className:n}),t==="colored"&&y.createElement(Wb,{className:n}),t!=="dark"&&t!=="blue"&&t!=="colored"&&y.createElement(QU,{className:n}))))}/*! * Cropper.js v1.6.2 * https://fengyuanchen.github.io/cropperjs * @@ -516,4 +516,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * Date: 2024-04-21T07:43:05.335Z */function $O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function fP(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r
',qee=Number.isNaN||Eo.isNaN;function yt(t){return typeof t=="number"&&!qee(t)}var zO=function(e){return e>0&&e<1/0};function Nv(t){return typeof t>"u"}function Is(t){return j0(t)==="object"&&t!==null}var Vee=Object.prototype.hasOwnProperty;function sc(t){if(!Is(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&Vee.call(r,"isPrototypeOf")}catch{return!1}}function rn(t){return typeof t=="function"}var Xee=Array.prototype.slice;function SP(t){return Array.from?Array.from(t):Xee.call(t)}function mr(t,e){return t&&rn(e)&&(Array.isArray(t)||yt(t.length)?SP(t).forEach(function(r,n){e.call(t,r,n,t)}):Is(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var Gt=Object.assign||function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o0&&n.forEach(function(a){Is(a)&&Object.keys(a).forEach(function(i){e[i]=a[i]})}),e},Gee=/\.\d*(?:0|9){12}\d*$/;function dc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Gee.test(t)?Math.round(t*e)/e:t}var Jee=/^width|height|left|top|marginLeft|marginTop$/;function Ia(t,e){var r=t.style;mr(e,function(n,o){Jee.test(o)&&yt(n)&&(n="".concat(n,"px")),r[o]=n})}function Yee(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function xr(t,e){if(e){if(yt(t.length)){mr(t,function(n){xr(n,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?r.indexOf(e)<0&&(t.className="".concat(r," ").concat(e)):t.className=e}}function Co(t,e){if(e){if(yt(t.length)){mr(t,function(r){Co(r,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function ic(t,e,r){if(e){if(yt(t.length)){mr(t,function(n){ic(n,e,r)});return}r?xr(t,e):Co(t,e)}}var Kee=/([a-z\d])([A-Z])/g;function Fw(t){return t.replace(Kee,"$1-$2").toLowerCase()}function V0(t,e){return Is(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(Fw(e)))}function fu(t,e,r){Is(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(Fw(e)),r)}function Zee(t,e){if(Is(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(Fw(e)))}var kP=/\s\s*/,CP=function(){var t=!1;if(th){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(a){e=a}});Eo.addEventListener("test",r,n),Eo.removeEventListener("test",r,n)}return t}();function Gn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(kP).forEach(function(a){if(!CP){var i=t.listeners;i&&i[a]&&i[a][r]&&(o=i[a][r],delete i[a][r],Object.keys(i[a]).length===0&&delete i[a],Object.keys(i).length===0&&delete t.listeners)}t.removeEventListener(a,o,n)})}function On(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(kP).forEach(function(a){if(n.once&&!CP){var i=t.listeners,l=i===void 0?{}:i;o=function(){delete l[a][r],t.removeEventListener(a,o,n);for(var f=arguments.length,h=new Array(f),d=0;dMath.abs(r)&&(r=_)})}),r}function bp(t,e){var r=t.pageX,n=t.pageY,o={endX:r,endY:n};return e?o:fP({startX:r,startY:n},o)}function tte(t){var e=0,r=0,n=0;return mr(t,function(o){var a=o.startX,i=o.startY;e+=a,r+=i,n+=1}),e/=n,r/=n,{pageX:e,pageY:r}}function ja(t){var e=t.aspectRatio,r=t.height,n=t.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",a=zO(n),i=zO(r);if(a&&i){var l=r*e;o==="contain"&&l>n||o==="cover"&&l90?{width:u,height:l}:{width:l,height:u}}function nte(t,e,r,n){var o=e.aspectRatio,a=e.naturalWidth,i=e.naturalHeight,l=e.rotate,u=l===void 0?0:l,f=e.scaleX,h=f===void 0?1:f,d=e.scaleY,_=d===void 0?1:d,g=r.aspectRatio,b=r.naturalWidth,w=r.naturalHeight,S=n.fillColor,k=S===void 0?"transparent":S,D=n.imageSmoothingEnabled,C=D===void 0?!0:D,O=n.imageSmoothingQuality,M=O===void 0?"low":O,T=n.maxWidth,P=T===void 0?1/0:T,j=n.maxHeight,z=j===void 0?1/0:j,E=n.minWidth,L=E===void 0?0:E,G=n.minHeight,B=G===void 0?0:G,F=document.createElement("canvas"),H=F.getContext("2d"),K=ja({aspectRatio:g,width:P,height:z}),ee=ja({aspectRatio:g,width:L,height:B},"cover"),Y=Math.min(K.width,Math.max(ee.width,b)),X=Math.min(K.height,Math.max(ee.height,w)),re=ja({aspectRatio:o,width:P,height:z}),I=ja({aspectRatio:o,width:L,height:B},"cover"),Q=Math.min(re.width,Math.max(I.width,a)),me=Math.min(re.height,Math.max(I.height,i)),pe=[-Q/2,-me/2,Q,me];return F.width=dc(Y),F.height=dc(X),H.fillStyle=k,H.fillRect(0,0,Y,X),H.save(),H.translate(Y/2,X/2),H.rotate(u*Math.PI/180),H.scale(h,_),H.imageSmoothingEnabled=C,H.imageSmoothingQuality=M,H.drawImage.apply(H,[t].concat(mP(pe.map(function(ge){return Math.floor(dc(ge))})))),H.restore(),F}var EP=String.fromCharCode;function ote(t,e,r){var n="";r+=e;for(var o=e;o0;)r.push(EP.apply(null,SP(o.subarray(0,n)))),o=o.subarray(n);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}function cte(t){var e=new DataView(t),r;try{var n,o,a;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var i=e.byteLength,l=2;l+1=8&&(a=f+d)}}}if(a){var _=e.getUint16(a,n),g,b;for(b=0;b<_;b+=1)if(g=a+b*12+2,e.getUint16(g,n)===274){g+=8,r=e.getUint16(g,n),e.setUint16(g,1,n);break}}}catch{r=1}return r}function lte(t){var e=0,r=1,n=1;switch(t){case 2:r=-1;break;case 3:e=-180;break;case 4:n=-1;break;case 5:e=90,n=-1;break;case 6:e=90;break;case 7:e=90,r=-1;break;case 8:e=-90;break}return{rotate:e,scaleX:r,scaleY:n}}var ute={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,r=this.options,n=this.container,o=this.cropper,a=Number(r.minContainerWidth),i=Number(r.minContainerHeight);xr(o,nn),Co(e,nn);var l={width:Math.max(n.offsetWidth,a>=0?a:wP),height:Math.max(n.offsetHeight,i>=0?i:xP)};this.containerData=l,Ia(o,{width:l.width,height:l.height}),xr(e,nn),Co(o,nn)},initCanvas:function(){var e=this.containerData,r=this.imageData,n=this.options.viewMode,o=Math.abs(r.rotate)%180===90,a=o?r.naturalHeight:r.naturalWidth,i=o?r.naturalWidth:r.naturalHeight,l=a/i,u=e.width,f=e.height;e.height*l>e.width?n===3?u=e.height*l:f=e.width/l:n===3?f=e.width/l:u=e.height*l;var h={aspectRatio:l,naturalWidth:a,naturalHeight:i,width:u,height:f};this.canvasData=h,this.limited=n===1||n===2,this.limitCanvas(!0,!0),h.width=Math.min(Math.max(h.width,h.minWidth),h.maxWidth),h.height=Math.min(Math.max(h.height,h.minHeight),h.maxHeight),h.left=(e.width-h.width)/2,h.top=(e.height-h.height)/2,h.oldLeft=h.left,h.oldTop=h.top,this.initialCanvasData=Gt({},h)},limitCanvas:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,i=this.cropBoxData,l=n.viewMode,u=a.aspectRatio,f=this.cropped&&i;if(e){var h=Number(n.minCanvasWidth)||0,d=Number(n.minCanvasHeight)||0;l>1?(h=Math.max(h,o.width),d=Math.max(d,o.height),l===3&&(d*u>h?h=d*u:d=h/u)):l>0&&(h?h=Math.max(h,f?i.width:0):d?d=Math.max(d,f?i.height:0):f&&(h=i.width,d=i.height,d*u>h?h=d*u:d=h/u));var _=ja({aspectRatio:u,width:h,height:d});h=_.width,d=_.height,a.minWidth=h,a.minHeight=d,a.maxWidth=1/0,a.maxHeight=1/0}if(r)if(l>(f?0:1)){var g=o.width-a.width,b=o.height-a.height;a.minLeft=Math.min(0,g),a.minTop=Math.min(0,b),a.maxLeft=Math.max(0,g),a.maxTop=Math.max(0,b),f&&this.limited&&(a.minLeft=Math.min(i.left,i.left+(i.width-a.width)),a.minTop=Math.min(i.top,i.top+(i.height-a.height)),a.maxLeft=i.left,a.maxTop=i.top,l===2&&(a.width>=o.width&&(a.minLeft=Math.min(0,g),a.maxLeft=Math.max(0,g)),a.height>=o.height&&(a.minTop=Math.min(0,b),a.maxTop=Math.max(0,b))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=o.width,a.maxTop=o.height},renderCanvas:function(e,r){var n=this.canvasData,o=this.imageData;if(r){var a=rte({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),i=a.width,l=a.height,u=n.width*(i/n.naturalWidth),f=n.height*(l/n.naturalHeight);n.left-=(u-n.width)/2,n.top-=(f-n.height)/2,n.width=u,n.height=f,n.aspectRatio=i/l,n.naturalWidth=i,n.naturalHeight=l,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heightr.width?a.height=a.width/n:a.width=a.height*n),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*o),a.height=Math.max(a.minHeight,a.height*o),a.left=r.left+(r.width-a.width)/2,a.top=r.top+(r.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=Gt({},a)},limitCropBox:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,i=this.cropBoxData,l=this.limited,u=n.aspectRatio;if(e){var f=Number(n.minCropBoxWidth)||0,h=Number(n.minCropBoxHeight)||0,d=l?Math.min(o.width,a.width,a.width+a.left,o.width-a.left):o.width,_=l?Math.min(o.height,a.height,a.height+a.top,o.height-a.top):o.height;f=Math.min(f,o.width),h=Math.min(h,o.height),u&&(f&&h?h*u>f?h=f/u:f=h*u:f?h=f/u:h&&(f=h*u),_*u>d?_=d/u:d=_*u),i.minWidth=Math.min(f,d),i.minHeight=Math.min(h,_),i.maxWidth=d,i.maxHeight=_}r&&(l?(i.minLeft=Math.max(0,a.left),i.minTop=Math.max(0,a.top),i.maxLeft=Math.min(o.width,a.left+a.width)-i.width,i.maxTop=Math.min(o.height,a.top+a.height)-i.height):(i.minLeft=0,i.minTop=0,i.maxLeft=o.width-i.width,i.maxTop=o.height-i.height))},renderCropBox:function(){var e=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=r.width&&n.height>=r.height?gP:Lw),Ia(this.cropBox,Gt({width:n.width,height:n.height},Kl({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),pc(this.element,B0,this.getData())}},dte={initPreview:function(){var e=this.element,r=this.crossOrigin,n=this.options.preview,o=r?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",i=document.createElement("img");if(r&&(i.crossOrigin=r),i.src=o,i.alt=a,this.viewBox.appendChild(i),this.viewBoxImage=i,!!n){var l=n;typeof n=="string"?l=e.ownerDocument.querySelectorAll(n):n.querySelector&&(l=[n]),this.previews=l,mr(l,function(u){var f=document.createElement("img");fu(u,vp,{width:u.offsetWidth,height:u.offsetHeight,html:u.innerHTML}),r&&(f.crossOrigin=r),f.src=o,f.alt=a,f.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;"',u.innerHTML="",u.appendChild(f)})}},resetPreview:function(){mr(this.previews,function(e){var r=V0(e,vp);Ia(e,{width:r.width,height:r.height}),e.innerHTML=r.html,Zee(e,vp)})},preview:function(){var e=this.imageData,r=this.canvasData,n=this.cropBoxData,o=n.width,a=n.height,i=e.width,l=e.height,u=n.left-r.left-e.left,f=n.top-r.top-e.top;!this.cropped||this.disabled||(Ia(this.viewBoxImage,Gt({width:i,height:l},Kl(Gt({translateX:-u,translateY:-f},e)))),mr(this.previews,function(h){var d=V0(h,vp),_=d.width,g=d.height,b=_,w=g,S=1;o&&(S=_/o,w=a*S),a&&w>g&&(S=g/a,b=o*S,w=g),Ia(h,{width:b,height:w}),Ia(h.getElementsByTagName("img")[0],Gt({width:i*S,height:l*S},Kl(Gt({translateX:-u*S,translateY:-f*S},e))))}))}},pte={bind:function(){var e=this.element,r=this.options,n=this.cropper;rn(r.cropstart)&&On(e,H0,r.cropstart),rn(r.cropmove)&&On(e,U0,r.cropmove),rn(r.cropend)&&On(e,W0,r.cropend),rn(r.crop)&&On(e,B0,r.crop),rn(r.zoom)&&On(e,q0,r.zoom),On(n,MO,this.onCropStart=this.cropStart.bind(this)),r.zoomable&&r.zoomOnWheel&&On(n,IO,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&On(n,DO,this.onDblclick=this.dblclick.bind(this)),On(e.ownerDocument,NO,this.onCropMove=this.cropMove.bind(this)),On(e.ownerDocument,PO,this.onCropEnd=this.cropEnd.bind(this)),r.responsive&&On(window,AO,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,r=this.options,n=this.cropper;rn(r.cropstart)&&Gn(e,H0,r.cropstart),rn(r.cropmove)&&Gn(e,U0,r.cropmove),rn(r.cropend)&&Gn(e,W0,r.cropend),rn(r.crop)&&Gn(e,B0,r.crop),rn(r.zoom)&&Gn(e,q0,r.zoom),Gn(n,MO,this.onCropStart),r.zoomable&&r.zoomOnWheel&&Gn(n,IO,this.onWheel,{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&Gn(n,DO,this.onDblclick),Gn(e.ownerDocument,NO,this.onCropMove),Gn(e.ownerDocument,PO,this.onCropEnd),r.responsive&&Gn(window,AO,this.onResize)}},fte={resize:function(){if(!this.disabled){var e=this.options,r=this.container,n=this.containerData,o=r.offsetWidth/n.width,a=r.offsetHeight/n.height,i=Math.abs(o-1)>Math.abs(a-1)?o:a;if(i!==1){var l,u;e.restore&&(l=this.getCanvasData(),u=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(mr(l,function(f,h){l[h]=f*i})),this.setCropBoxData(mr(u,function(f,h){u[h]=f*i})))}}},dblclick:function(){this.disabled||this.options.dragMode===bP||this.setDragMode(Yee(this.dragBox,z0)?vP:zw)},wheel:function(e){var r=this,n=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50),e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*n,e)))},cropStart:function(e){var r=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(yt(r)&&r!==1||yt(n)&&n!==0||e.ctrlKey))){var o=this.options,a=this.pointers,i;e.changedTouches?mr(e.changedTouches,function(l){a[l.identifier]=bp(l)}):a[e.pointerId||0]=bp(e),Object.keys(a).length>1&&o.zoomable&&o.zoomOnTouch?i=yP:i=V0(e.target,pu),Fee.test(i)&&pc(this.element,H0,{originalEvent:e,action:i})!==!1&&(e.preventDefault(),this.action=i,this.cropping=!1,i===_P&&(this.cropping=!0,xr(this.dragBox,af)))}},cropMove:function(e){var r=this.action;if(!(this.disabled||!r)){var n=this.pointers;e.preventDefault(),pc(this.element,U0,{originalEvent:e,action:r})!==!1&&(e.changedTouches?mr(e.changedTouches,function(o){Gt(n[o.identifier]||{},bp(o,!0))}):Gt(n[e.pointerId||0]||{},bp(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var r=this.action,n=this.pointers;e.changedTouches?mr(e.changedTouches,function(o){delete n[o.identifier]}):delete n[e.pointerId||0],r&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,ic(this.dragBox,af,this.cropped&&this.options.modal)),pc(this.element,W0,{originalEvent:e,action:r}))}}},hte={change:function(e){var r=this.options,n=this.canvasData,o=this.containerData,a=this.cropBoxData,i=this.pointers,l=this.action,u=r.aspectRatio,f=a.left,h=a.top,d=a.width,_=a.height,g=f+d,b=h+_,w=0,S=0,k=o.width,D=o.height,C=!0,O;!u&&e.shiftKey&&(u=d&&_?d/_:1),this.limited&&(w=a.minLeft,S=a.minTop,k=w+Math.min(o.width,n.width,n.left+n.width),D=S+Math.min(o.height,n.height,n.top+n.height));var M=i[Object.keys(i)[0]],T={x:M.endX-M.startX,y:M.endY-M.startY},P=function(z){switch(z){case ds:g+T.x>k&&(T.x=k-g);break;case ps:f+T.xD&&(T.y=D-b);break}};switch(l){case Lw:f+=T.x,h+=T.y;break;case ds:if(T.x>=0&&(g>=k||u&&(h<=S||b>=D))){C=!1;break}P(ds),d+=T.x,d<0&&(l=ps,d=-d,f-=d),u&&(_=d/u,h+=(a.height-_)/2);break;case Da:if(T.y<=0&&(h<=S||u&&(f<=w||g>=k))){C=!1;break}P(Da),_-=T.y,h+=T.y,_<0&&(l=ji,_=-_,h-=_),u&&(d=_*u,f+=(a.width-d)/2);break;case ps:if(T.x<=0&&(f<=w||u&&(h<=S||b>=D))){C=!1;break}P(ps),d-=T.x,f+=T.x,d<0&&(l=ds,d=-d,f-=d),u&&(_=d/u,h+=(a.height-_)/2);break;case ji:if(T.y>=0&&(b>=D||u&&(f<=w||g>=k))){C=!1;break}P(ji),_+=T.y,_<0&&(l=Da,_=-_,h-=_),u&&(d=_*u,f+=(a.width-d)/2);break;case Dl:if(u){if(T.y<=0&&(h<=S||g>=k)){C=!1;break}P(Da),_-=T.y,h+=T.y,d=_*u}else P(Da),P(ds),T.x>=0?gS&&(_-=T.y,h+=T.y):(_-=T.y,h+=T.y);d<0&&_<0?(l=Pl,_=-_,d=-d,h-=_,f-=d):d<0?(l=Ml,d=-d,f-=d):_<0&&(l=Nl,_=-_,h-=_);break;case Ml:if(u){if(T.y<=0&&(h<=S||f<=w)){C=!1;break}P(Da),_-=T.y,h+=T.y,d=_*u,f+=a.width-d}else P(Da),P(ps),T.x<=0?f>w?(d-=T.x,f+=T.x):T.y<=0&&h<=S&&(C=!1):(d-=T.x,f+=T.x),T.y<=0?h>S&&(_-=T.y,h+=T.y):(_-=T.y,h+=T.y);d<0&&_<0?(l=Nl,_=-_,d=-d,h-=_,f-=d):d<0?(l=Dl,d=-d,f-=d):_<0&&(l=Pl,_=-_,h-=_);break;case Pl:if(u){if(T.x<=0&&(f<=w||b>=D)){C=!1;break}P(ps),d-=T.x,f+=T.x,_=d/u}else P(ji),P(ps),T.x<=0?f>w?(d-=T.x,f+=T.x):T.y>=0&&b>=D&&(C=!1):(d-=T.x,f+=T.x),T.y>=0?b=0&&(g>=k||b>=D)){C=!1;break}P(ds),d+=T.x,_=d/u}else P(ji),P(ds),T.x>=0?g=0&&b>=D&&(C=!1):d+=T.x,T.y>=0?b0?l=T.y>0?Nl:Dl:T.x<0&&(f-=d,l=T.y>0?Pl:Ml),T.y<0&&(h-=_),this.cropped||(Co(this.cropBox,nn),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}C&&(a.width=d,a.height=_,a.left=f,a.top=h,this.action=l,this.renderCropBox()),mr(i,function(j){j.startX=j.endX,j.startY=j.endY})}},mte={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&xr(this.dragBox,af),Co(this.cropBox,nn),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Gt({},this.initialImageData),this.canvasData=Gt({},this.initialCanvasData),this.cropBoxData=Gt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Gt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Co(this.dragBox,af),xr(this.cropBox,nn)),this},replace:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),r?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,mr(this.previews,function(n){n.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,Co(this.cropper,TO)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,xr(this.cropper,TO)),this},destroy:function(){var e=this.element;return e[Vt]?(e[Vt]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=n.left,a=n.top;return this.moveTo(Nv(e)?e:o+Number(e),Nv(r)?r:a+Number(r))},moveTo:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.movable&&(yt(e)&&(n.left=e,o=!0),yt(r)&&(n.top=r,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(e,r){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,r)},zoomTo:function(e,r,n){var o=this.options,a=this.canvasData,i=a.width,l=a.height,u=a.naturalWidth,f=a.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&o.zoomable){var h=u*e,d=f*e;if(pc(this.element,q0,{ratio:e,oldRatio:i/u,originalEvent:n})===!1)return this;if(n){var _=this.pointers,g=$P(this.cropper),b=_&&Object.keys(_).length?tte(_):{pageX:n.pageX,pageY:n.pageY};a.left-=(h-i)*((b.pageX-g.left-a.left)/i),a.top-=(d-l)*((b.pageY-g.top-a.top)/l)}else sc(r)&&yt(r.x)&&yt(r.y)?(a.left-=(h-i)*((r.x-a.left)/i),a.top-=(d-l)*((r.y-a.top)/l)):(a.left-=(h-i)/2,a.top-=(d-l)/2);a.width=h,a.height=d,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),yt(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var r=this.imageData.scaleY;return this.scale(e,yt(r)?r:1)},scaleY:function(e){var r=this.imageData.scaleX;return this.scale(yt(r)?r:1,e)},scale:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.scalable&&(yt(e)&&(n.scaleX=e,o=!0),yt(r)&&(n.scaleY=r,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.options,n=this.imageData,o=this.canvasData,a=this.cropBoxData,i;if(this.ready&&this.cropped){i={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height};var l=n.width/n.naturalWidth;if(mr(i,function(h,d){i[d]=h/l}),e){var u=Math.round(i.y+i.height),f=Math.round(i.x+i.width);i.x=Math.round(i.x),i.y=Math.round(i.y),i.width=f-i.x,i.height=u-i.y}}else i={x:0,y:0,width:0,height:0};return r.rotatable&&(i.rotate=n.rotate||0),r.scalable&&(i.scaleX=n.scaleX||1,i.scaleY=n.scaleY||1),i},setData:function(e){var r=this.options,n=this.imageData,o=this.canvasData,a={};if(this.ready&&!this.disabled&&sc(e)){var i=!1;r.rotatable&&yt(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,i=!0),r.scalable&&(yt(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,i=!0),yt(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,i=!0)),i&&this.renderCanvas(!0,!0);var l=n.width/n.naturalWidth;yt(e.x)&&(a.left=e.x*l+o.left),yt(e.y)&&(a.top=e.y*l+o.top),yt(e.width)&&(a.width=e.width*l),yt(e.height)&&(a.height=e.height*l),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?Gt({},this.containerData):{}},getImageData:function(){return this.sized?Gt({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,r={};return this.ready&&mr(["left","top","width","height","naturalWidth","naturalHeight"],function(n){r[n]=e[n]}),r},setCanvasData:function(e){var r=this.canvasData,n=r.aspectRatio;return this.ready&&!this.disabled&&sc(e)&&(yt(e.left)&&(r.left=e.left),yt(e.top)&&(r.top=e.top),yt(e.width)?(r.width=e.width,r.height=e.width/n):yt(e.height)&&(r.height=e.height,r.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,r;return this.ready&&this.cropped&&(r={left:e.left,top:e.top,width:e.width,height:e.height}),r||{}},setCropBoxData:function(e){var r=this.cropBoxData,n=this.options.aspectRatio,o,a;return this.ready&&this.cropped&&!this.disabled&&sc(e)&&(yt(e.left)&&(r.left=e.left),yt(e.top)&&(r.top=e.top),yt(e.width)&&e.width!==r.width&&(o=!0,r.width=e.width),yt(e.height)&&e.height!==r.height&&(a=!0,r.height=e.height),n&&(o?r.height=r.width/n:a&&(r.width=r.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 r=this.canvasData,n=nte(this.image,this.imageData,r,e);if(!this.cropped)return n;var o=this.getData(e.rounded),a=o.x,i=o.y,l=o.width,u=o.height,f=n.width/Math.floor(r.naturalWidth);f!==1&&(a*=f,i*=f,l*=f,u*=f);var h=l/u,d=ja({aspectRatio:h,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),_=ja({aspectRatio:h,width:e.minWidth||0,height:e.minHeight||0},"cover"),g=ja({aspectRatio:h,width:e.width||(f!==1?n.width:l),height:e.height||(f!==1?n.height:u)}),b=g.width,w=g.height;b=Math.min(d.width,Math.max(_.width,b)),w=Math.min(d.height,Math.max(_.height,w));var S=document.createElement("canvas"),k=S.getContext("2d");S.width=dc(b),S.height=dc(w),k.fillStyle=e.fillColor||"transparent",k.fillRect(0,0,b,w);var D=e.imageSmoothingEnabled,C=D===void 0?!0:D,O=e.imageSmoothingQuality;k.imageSmoothingEnabled=C,O&&(k.imageSmoothingQuality=O);var M=n.width,T=n.height,P=a,j=i,z,E,L,G,B,F;P<=-l||P>M?(P=0,z=0,L=0,B=0):P<=0?(L=-P,P=0,z=Math.min(M,l+P),B=z):P<=M&&(L=0,z=Math.min(l,M-P),B=z),z<=0||j<=-u||j>T?(j=0,E=0,G=0,F=0):j<=0?(G=-j,j=0,E=Math.min(T,u+j),F=E):j<=T&&(G=0,E=Math.min(u,T-j),F=E);var H=[P,j,z,E];if(B>0&&F>0){var K=b/l;H.push(L*K,G*K,B*K,F*K)}return k.drawImage.apply(k,[n].concat(mP(H.map(function(ee){return Math.floor(dc(ee))})))),S},setAspectRatio:function(e){var r=this.options;return!this.disabled&&!Nv(e)&&(r.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var r=this.options,n=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var a=e===zw,i=r.movable&&e===vP;e=a||i?e:bP,r.dragMode=e,fu(n,pu,e),ic(n,z0,a),ic(n,F0,i),r.cropBoxMovable||(fu(o,pu,e),ic(o,z0,a),ic(o,F0,i))}return this}},_te=Eo.Cropper,TP=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Oee(this,t),!e||!Uee.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=Gt({},LO,sc(r)&&r),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 Dee(t,[{key:"init",value:function(){var r=this.element,n=r.tagName.toLowerCase(),o;if(!r[Vt]){if(r[Vt]=this,n==="img"){if(this.isImg=!0,o=r.getAttribute("src")||"",this.originalUrl=o,!o)return;o=r.src}else n==="canvas"&&window.HTMLCanvasElement&&(o=r.toDataURL());this.load(o)}}},{key:"load",value:function(r){var n=this;if(r){this.url=r,this.imageData={};var o=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Bee.test(r)){Wee.test(r)?this.read(ste(r)):this.clone();return}var i=new XMLHttpRequest,l=this.clone.bind(this);this.reloading=!0,this.xhr=i,i.onabort=l,i.onerror=l,i.ontimeout=l,i.onprogress=function(){i.getResponseHeader("content-type")!==jO&&i.abort()},i.onload=function(){n.read(i.response)},i.onloadend=function(){n.reloading=!1,n.xhr=null},a.checkCrossOrigin&&FO(r)&&o.crossOrigin&&(r=BO(r)),i.open("GET",r,!0),i.responseType="arraybuffer",i.withCredentials=o.crossOrigin==="use-credentials",i.send()}}},{key:"read",value:function(r){var n=this.options,o=this.imageData,a=cte(r),i=0,l=1,u=1;if(a>1){this.url=ite(r,jO);var f=lte(a);i=f.rotate,l=f.scaleX,u=f.scaleY}n.rotatable&&(o.rotate=i),n.scalable&&(o.scaleX=l,o.scaleY=u),this.clone()}},{key:"clone",value:function(){var r=this.element,n=this.url,o=r.crossOrigin,a=n;this.options.checkCrossOrigin&&FO(n)&&(o||(o="anonymous"),a=BO(n)),this.crossOrigin=o,this.crossOriginUrl=a;var i=document.createElement("img");o&&(i.crossOrigin=o),i.src=a||n,i.alt=r.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),xr(i,OO),r.parentNode.insertBefore(i,r.nextSibling)}},{key:"start",value:function(){var r=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var o=Eo.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Eo.navigator.userAgent),a=function(f,h){Gt(r.imageData,{naturalWidth:f,naturalHeight:h,aspectRatio:f/h}),r.initialImageData=Gt({},r.imageData),r.sizing=!1,r.sized=!0,r.build()};if(n.naturalWidth&&!o){a(n.naturalWidth,n.naturalHeight);return}var i=document.createElement("img"),l=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){a(i.width,i.height),o||l.removeChild(i)},i.src=n.src,o||(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;",l.appendChild(i))}},{key:"stop",value:function(){var r=this.image;r.onload=null,r.onerror=null,r.parentNode.removeChild(r),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var r=this.element,n=this.options,o=this.image,a=r.parentNode,i=document.createElement("div");i.innerHTML=Hee;var l=i.querySelector(".".concat(Vt,"-container")),u=l.querySelector(".".concat(Vt,"-canvas")),f=l.querySelector(".".concat(Vt,"-drag-box")),h=l.querySelector(".".concat(Vt,"-crop-box")),d=h.querySelector(".".concat(Vt,"-face"));this.container=a,this.cropper=l,this.canvas=u,this.dragBox=f,this.cropBox=h,this.viewBox=l.querySelector(".".concat(Vt,"-view-box")),this.face=d,u.appendChild(o),xr(r,nn),a.insertBefore(l,r.nextSibling),Co(o,OO),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,xr(h,nn),n.guides||xr(h.getElementsByClassName("".concat(Vt,"-dashed")),nn),n.center||xr(h.getElementsByClassName("".concat(Vt,"-center")),nn),n.background&&xr(l,"".concat(Vt,"-bg")),n.highlight||xr(d,Iee),n.cropBoxMovable&&(xr(d,F0),fu(d,pu,Lw)),n.cropBoxResizable||(xr(h.getElementsByClassName("".concat(Vt,"-line")),nn),xr(h.getElementsByClassName("".concat(Vt,"-point")),nn)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),rn(n.ready)&&On(r,RO,n.ready,{once:!0}),pc(r,RO)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var r=this.cropper.parentNode;r&&r.removeChild(this.cropper),Co(this.element,nn)}}},{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=_te,t}},{key:"setDefaults",value:function(r){Gt(LO,sc(r)&&r)}}])}();Gt(TP.prototype,ute,dte,pte,fte,hte,mte);var gs=function(){return gs=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&j.zoomTo(ee)}(P.currentTarget.cropper,C),S&&S(P)}}));k&&k(T)}return function(){var P,j;(j=(P=O.current)===null||P===void 0?void 0:P.cropper)===null||j===void 0||j.destroy()}},[O]);var M=function(T){return gte.reduce(function(P,j){var z=P,E=j;return z[E],Rv(z,[typeof E=="symbol"?E:E+""])},T)}(gs(gs({},D),{crossOrigin:u,src:a,alt:w}));return y.createElement("div",{style:i,className:l},y.createElement("img",gs({},M,{style:yte,ref:O})))});const Ma={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},vte={once:"once",interval:"interval",intervalBetween:"intervalBetween",specific:"specific"},zr={seconds:"seconds",minutes:"minutes"},WO=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function go(t){return t<10?`0${t}`:`${t}`}const bte={mode:"interval",interval:{period:1,unit:zr.minutes}};function Np(t){if(t==="*")return[0,1,2,3,4,5,6];const e=t.split(","),r=[];return e.forEach(n=>{const o=n.split("-");if(o.length===2){const a=parseInt(o[0],10),i=parseInt(o[1],10);for(let l=a;l<=i;l++)r.includes(l===7?0:l)||r.push(l===7?0:l)}else{n==="7"&&(n="0");const a=parseInt(n,10);r.includes(a)||r.push(a)}}),r.sort(),r}function OP(t,e){t=t.replace(/['"]/g,"").trim();const r=t.split(" ");let n,o=null;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",date:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:null,minutes:r[0]||"*",hours:r[1]||"*",date:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n.seconds===null&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)&&(o={mode:"interval",interval:{period:1,unit:zr.minutes}}),n.seconds==="*"&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:1,unit:zr.seconds}}:n.seconds===null&&n.minutes.includes("/")&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.minutes.split("/")[1],10),unit:zr.minutes}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.seconds.split("/")[1],10),unit:zr.seconds}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.seconds.split("/")[1],10),unit:zr.seconds,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Np(n.dow)}}:n.seconds===null&&n.minutes.includes("/")&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.minutes.split("/")[1],10),unit:zr.minutes,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Np(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"specific",specific:{time:`${go(parseInt(n.hours,10))}:${go(parseInt(n.minutes,10))}`,weekdays:Np(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&parseInt(n.date,10).toString()===n.date&&parseInt(n.months,10).toString()===n.months&&(n.dow==="*"||e)&&(o={mode:"once",once:{time:`${go(parseInt(n.hours,10))}:${go(parseInt(n.minutes,10))}`,date:`${go(parseInt(n.date,10))}.${go(parseInt(n.months,10))}`}}),o}class hu extends y.Component{constructor(e){super(e);let r=typeof e.cronExpression=="string"?e.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";r[0]==="{"&&(r="");const n=OP(r||"* * * * *",!0)||bte;this.state={extended:!1,cron:hu.state2cron(n),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:zr.minutes},intervalBetween:{period:1,unit:zr.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,n),this.state.cron!==e.cronExpression&&setTimeout(()=>e.onChange&&e.onChange(this.state.cron),100)}static periodArray2text(e,r=7){if(r=r||7,e.length===r)return"*";const n=[];let o=null,a=null;if(!e.length)return"_";for(let i=0;i60&&(n.period=60),n.period!==void 0&&n.period<1&&(n.period=1),n.minutes!==void 0&&n.minutes!==null&&n.minutes>60&&(n.minutes=60),n.minutes!==void 0&&n.minutes!==null&&n.minutes<1&&(n.minutes=1),n.hours!==void 0&&n.hours!==null&&n.hours>24&&(n.hours=24),n.hours!==void 0&&n.hours!==null&&n.hours<1&&(n.hours=1),e.extended)r=`${n.minutes!==void 0&&n.minutes!==null&&n.minutes>1?`*/${n.minutes}`:"*"} ${n.hours!==void 0&&n.hours!==null&&n.hours>1?`*/${n.hours}`:"*"} * * *`;else switch(n.unit){case zr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * * * * *`;break;case zr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} * * * *`;break}}else if(e.mode==="intervalBetween"){const n=e.intervalBetween||{period:1,unit:zr.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let o;switch(n.timeFrom=n.timeFrom||0,n.timeTo=n.timeTo===void 0?24:n.timeTo,n.timeFrom!==0&&n.timeTo===24&&(n.timeTo=23),n.timeFrom===0&&n.timeTo===24?o="*":o=n.timeFrom!==n.timeTo?`${n.timeFrom}-${n.timeTo}`:"*",n.period>60&&(n.period=60),n.period<1&&(n.period=1),n.unit=n.unit||zr.minutes,n.unit){case zr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * ${o} * * ${this.periodArray2text(n.weekdays)}`;break;case zr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} ${o} * * ${this.periodArray2text(n.weekdays)}`;break}}else if(e.mode==="specific"){const n=e.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},o=(n.time||"00:00").split(":");let a=parseInt(o[1],10)||0;a>59&&(a=59),a<0&&(a=0);let i=parseInt(o[0],10)||0;i>23&&(i=59),i<0&&(i=0),r=`${a} ${i} * * ${this.periodArray2text(n.weekdays||[])}`}else if(e.mode==="once"){const n=e.once||{time:"00:00",date:""};n.date||(n.date=`${new Date().getDate()}.${go(new Date().getMonth()+1)}`);const o=(n.time||"00:00").split(":"),a=n.date.split(".");let i=parseInt(o[1],10)||0;i>59&&(i=59),i<0&&(i=0);let l=parseInt(o[0],10)||0;l>23&&(l=59),l<0&&(l=0);let u=parseInt(a[0],10)||1;u>31&&(u=31),u<1&&(l=1);let f=parseInt(a[1],10)||1;f>12&&(f=12),f<1&&(f=1),r=`${i} ${l} ${u} ${f} *`}return r}recalcCron(){this.onChange(hu.state2cron(this.state))}getControlsWeekdaysElements(e){const r=e==="intervalBetween"?this.state.intervalBetween:this.state.specific;return y.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},y.createElement("h5",null,U.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(n=>y.createElement(gt,{key:WO[n],control:y.createElement(tn,{checked:r.weekdays.includes(n),onChange:o=>{const a=JSON.parse(JSON.stringify(this.state[e])),i=a.weekdays.indexOf(n);o.target.checked?i===-1&&a.weekdays.push(n):i!==-1&&a.weekdays.splice(i,1),a.weekdays.sort(),e==="intervalBetween"?this.setState({intervalBetween:a},()=>this.recalcCron()):this.setState({specific:a},()=>this.recalcCron())},value:n.toString()}),label:U.t(WO[n])})))}getControlsPeriodElements(e){const r=e==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?y.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},y.createElement("h5",{style:{marginBottom:5}},U.t("sc_period")),y.createElement(Fr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:U.t("sc_minutes"),value:r.minutes,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.minutes=parseInt(n.target.value,10),o.minutes<1&&(o.minutes=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),y.createElement(Fr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:U.t("sc_hours"),value:r.hours,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.hours=parseInt(n.target.value,10),o.hours<1&&(o.hours=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):y.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},y.createElement("h5",{style:{marginBottom:5}},U.t("sc_period")),y.createElement(Fr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:U.t("sc_every"),value:r.period,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.period=parseInt(n.target.value,10),o.period<1&&(o.period=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),y.createElement(wo,{variant:"standard",style:{verticalAlign:"bottom"},value:r.unit,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.unit=n.target.value,e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())}},y.createElement(fr,{value:"seconds"},U.t("sc_seconds")),")",y.createElement(fr,{value:"minutes"},U.t("sc_minutes")),")"))}getControlsTime(e){const r=e==="once"?this.state.once:this.state.specific;return y.createElement(Fi,{variant:"standard",sx:{...Ma.formControl,"&.MuiFormControl-root":Ma.formControlMarginRight}},y.createElement(Fr,{variant:"standard",key:"at",label:U.t("sc_time"),value:r.time,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.time=n.target.value,e==="once"?this.setState({once:o},()=>this.recalcCron()):this.setState({specific:o},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const e=this.state.once;if(!e.date){const r=new Date;e.date=`${r.getDate()}.${go(r.getMonth()+1)}`}return y.createElement(Fi,{variant:"standard",style:Ma.formControl},y.createElement(Fr,{variant:"standard",key:"date",label:U.t("sc_date"),value:e.date,type:"text",slotProps:{htmlInput:{style:Ma.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.once));n.date=r.target.value,this.setState({once:n},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return y.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const e=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),y.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},y.createElement("h5",{style:{marginBottom:5}},U.t("sc_hours")),y.createElement(Fi,{variant:"standard",style:Ma.formControl},y.createElement(Tp,{shrink:!0,htmlFor:"age-label-placeholder"},U.t("sc_from")),y.createElement(wo,{variant:"standard",style:{width:100},value:e.timeFrom,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeFrom=parseInt(r.target.value,10),n.timeTo===24&&(n.timeTo=23),this.setState({intervalBetween:n},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>y.createElement(fr,{key:`B_${r}`,value:r},`${go(r)}:00`)))),y.createElement(Fi,{variant:"standard",style:Ma.formControl},y.createElement(Tp,{shrink:!0,htmlFor:"age-label-placeholder"},U.t("sc_to")),y.createElement(wo,{variant:"standard",style:{width:100},value:e.timeTo,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeTo=parseInt(r.target.value,10),this.setState({intervalBetween:n},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>y.createElement(fr,{key:`A_${r}`,value:r},`${go(r)}:00`)),!e.timeFrom&&y.createElement(fr,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[y.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(e){e!==this.state.mode&&this.setState({mode:e},()=>this.recalcCron())}onChange(e){e!==this.state.cron&&(this.setState({cron:e}),this.props.onChange&&this.props.onChange(e))}render(){return y.createElement("div",{style:Ma.mainDiv},y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},y.createElement(Fr,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?U.t("sc_invalid_cron"):ZN(this.state.cron,this.props.language||"en")),y.createElement("div",null,y.createElement(Fi,{variant:"standard",style:{...Ma.formControl,marginLeft:8,marginTop:8}},y.createElement(Tp,null,U.t("ra_Repeat")),y.createElement(wo,{variant:"standard",value:this.state.mode,onChange:e=>this.onModeChange(e.target.value),inputProps:{name:"mode",id:"mode"}},y.createElement(fr,{value:"once"},U.t("sc_once")),y.createElement(fr,{value:"interval"},U.t("sc_interval")),y.createElement(fr,{value:"intervalBetween"},U.t("sc_intervalBetween")),y.createElement(fr,{value:"specific"},U.t("sc_specific"))))),this.state.mode===vte.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const wte={headerID:{fontWeight:"bold",fontStyle:"italic"},radio:{display:"inline-block"},dialogPaper:{height:"calc(100% - 96px)"}};class DXe extends y.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:r}}handleCancel(){this.props.onClose()}handleOk(e){if(!e){const r=Aa.cron2state(this.state.cron);if(r.seconds==="*"||r.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(r.minutes==="*"||r.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?y.createElement(RH,{title:U.t("ra_Please confirm"),text:U.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:e=>this.setState({showWarning:""},()=>{e&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return y.createElement(ra,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":wte.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),y.createElement(aa,{id:"cron-dialog-title"},this.props.title||U.t("ra_Define schedule...")),y.createElement(oa,{style:{height:"100%",overflow:"hidden"}},y.createElement(Aa,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()})),y.createElement(na,null,!!this.props.clearButton&&y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:y.createElement(Dp,null)},this.props.clear||U.t("ra_Clear")),y.createElement(Qt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const xte={dialogPaper:{height:"calc(100% - 96px)"}};class MXe extends y.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof r=="object"||r[0]==="{")&&!this.props.noWizard?"wizard":OP(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(e){this.setState({mode:e})}render(){return y.createElement(ra,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":xte.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},y.createElement(aa,{id:"cron-dialog-title"},this.props.title||U.t("ra_Define schedule...")),y.createElement(oa,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?y.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&y.createElement(y.Fragment,null,y.createElement(zt,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),y.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},U.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&y.createElement(y.Fragment,null,y.createElement(zt,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),y.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},U.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&y.createElement(y.Fragment,null,y.createElement(zt,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),y.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},U.t("sc_cron")))):null,this.state.mode==="simple"&&y.createElement(hu,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()}),this.state.mode==="wizard"&&y.createElement(Tr,{theme:this.props.theme,schedule:this.state.cron,onChange:e=>this.setState({cron:e})}),this.state.mode==="complex"&&y.createElement(Aa,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const fs={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class NXe extends y.Component{constructor(r){super(r);xe(this,"dialogName");xe(this,"filters");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const n=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(n)}catch{this.filters={}}r.filters&&(this.filters={...this.filters,...r.filters});let o=this.props.selected||[];typeof o!="object"?o=[o]:o=[...o],o=o.filter(a=>a),this.state={selected:o}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let r;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?r=[y.createElement("span",{key:"selected"},U.t("ra_Selected")," "),y.createElement("span",{key:"id",style:fs.headerID},this.state.selected)]:r=[y.createElement("span",{key:"selected"},U.t("ra_Selected")," "),y.createElement("span",{key:"id",style:fs.headerID},U.t("%s items",this.state.selected.length))]:r=this.props.title||U.t("ra_Please select file..."),y.createElement(ra,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{...fs.dialog,...fs.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},y.createElement(aa,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":fs.titleRoot}},r),y.createElement(oa,{style:{...fs.content,...fs.contentMobile}},y.createElement(vee,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(n,o,a)=>{this.setState({selected:Array.isArray(n)?n:[n]},()=>o&&(!this.props.selectOnlyFolders||a)&&this.handleOk())},t:this.props.t||U.t,lang:this.props.lang||U.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",onClick:()=>this.handleOk(),startIcon:y.createElement(Hs,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const Ste={dialogPaper:{height:"calc(100% - 96px)"}};class PXe extends y.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return y.createElement(ra,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":Ste.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},y.createElement(aa,{id:"cron-dialog-title"},this.props.title||U.t("ra_Define CRON...")),y.createElement(oa,{style:{height:"100%",overflow:"hidden"}},y.createElement(hu,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const kte=""+new URL("echarts-BDq-rBJC.png",import.meta.url).href,Cte="Append",$te="Cancel",Ete="Categories",Tte="Checked",Ote="Delete",Dte="Close",Mte="Commercial",Nte="Configure",Pte="Connected",Rte="Copied",Ate="Create",Ite="Crop",jte="Delete",Lte="Delete",zte="Discard",Fte="Disconnected",Bte="Error",Wte="Filter",Ute="Friday",Hte="Latitude",qte="Expires in",Vte="Longitude",Xte="Message",Gte="Monday",Jte="Name",Yte="Objects",Kte="Ok",Zte="Product",Qte="Repeat",ere="Replace",tre="Root",rre="Saturday",nre="Save",ore="Selected",are="States",sre="Sunday",ire="Thursday",cre="Timestamp",lre="Tuesday",ure="Update",dre="Valid till",pre="Value",fre="Version",hre="Wednesday",mre="Width",_re="Yes",gre="different",yre="Everyone can read object",vre="Everyone can read state",bre="Everyone can write object",wre="Everyone can write state",xre="Group can read object",Sre="Group can read state",kre="Group can write object",Cre="Group can write state",$re="Owner can read object",Ere="Owner can read state",Tre="Owner can write object",Ore="Owner can write state",Dre="Buttons",Mre="Changed from",Nre="close",Pre="Create boolean state",Rre="Create channel",Are="Create device",Ire="Create number state",jre="Create state",Lre="Create string state",zre="days",Fre="Fr",Bre="Mo",Wre="Sa",Ure="Su",Hre="Th",qre="Tu",Vre="We",Xre="Expert mode",Gre="All files",Jre="Audio",Yre="Code/JSON",Kre="Images",Zre="Text",Qre="Video",ene="Settings",tne="without",rne="Function",nne="ID",one="Name",ane="Role",sne="Room",ine="Type",cne="Invalid settings",lne="Last change",une="locally",dne="Apr",pne="Aug",fne="Dec",hne="Feb",mne="Jan",_ne="Jul",gne="Jun",yne="Mai",vne="Mar",bne="Nov",wne="Oct",xne="Sep",Sne="Apr",kne="Aug",Cne="Dec",$ne="Feb",Ene="Jan",Tne="Jul",One="Jun",Dne="Mai",Mne="Mar",Nne="Nov",Pne="Oct",Rne="Sep",Ane="none",Ine="Object changed by",jne="Object last changed at",Lne="Settings from other adapter %s",zne="Quality code",Fne="repeat",Bne='To select folder, just hold the key "shift" by clicking the folder.',Wne="State changed by",Une="Object changed from",Hne="Timestamp",qne="Acknowledged",Vne="Comment",Xne="Copy the state value",Gne="Custom settings",Jne="Delete object",Yne="Edit object",Kne="Edit the state value",Zne="From",Qne="Last changed",eoe="Quality",toe="Time stamp",roe="User",noe="Value",ooe="Value",aoe="Warning: The CRON job will run every minute during the specified period!",soe="Warning: The CRON job will run every second during the specified period!",ioe="CRON",coe="Date",loe="Dates",uoe="Day",doe="Day of week",poe="Every",foe="every N days",hoe="every Nth day of the week",moe="every N day of week",_oe="every N hours",goe="every N minutes",yoe="every N months",voe="every N seconds",boe="every day",woe="every day of the week",xoe="every day of the week",Soe="every hour",koe="every minute",Coe="every month",$oe="every second",Eoe="From",Toe="Hours",Ooe="Interval",Doe="Interval between",Moe="Invalid CRON",Noe="Minutes",Poe="months",Roe="Once",Aoe="Period",Ioe="Seconds",joe="Simple",Loe="Specific time",zoe="specific dates",Foe="specific day(s) of the week",Boe="specific day of weeks",Woe="specific hours",Uoe="specific minutes",Hoe="specific months",qoe="specific seconds",Voe="Time",Xoe="To",Goe="Wizard",Joe="all",Yoe="Astro day",Koe="Astro night",Zoe="Dawn",Qoe="Dusk",eae="Golden hour",tae="Golden hour end",rae="Nadir",nae="Nautical dawn",oae="Nautical dusk",aae="Night",sae="Night end",iae="Solar noon",cae="Sunrise",lae="Sunrise end",uae="Sunset",dae="Sunset start",pae="at",fae="at %s",hae="every day",mae="every hour",_ae="every minute",gae="every month",yae="every %s day",vae="every %s hours",bae="every %s minutes",wae="every %s months",xae="every %s weeks",Sae="every %s years",kae="every week",Cae="every year",$ae="from %s to %s",Eae="never",Tae="on %s of %s",Oae="on %s and %s of",Dae="on every date of",Mae="%s",Nae="%s and %s",Pae="on %s",Rae="on %s and %s",Aae="on weekends",Iae="on working days",jae="will ne be not executed any more, because start is in the past",Lae="on %s",zae="from %s",Fae="Execute from to",Bae="to %s",Wae="every",Uae="Specific time",Hae="from",qae="From-to",Vae="Interval time",Xae="invert",Gae="none",Jae="on",Yae="Period",Kae="Daily",Zae="Dates",Qae="Day",ese="Every",tse="Every day",rse="Every month",nse="Every week",ose="Every year",ase="Hours",sse="Minutes",ise="month",cse="Monthly",lse="Once",use="Specific months",dse="Week",pse="Weekdays",fse="Weekend",hse="Weekly",mse="Workdays",_se="Year",gse="Yearly",yse="Specific time",vse="Time",bse="to",wse="Valid",xse="from",Sse="to",kse="Whole day",Cse="every month",$se={"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_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:Cte,"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:$te,"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:Ete,"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:Tte,ra_Clear:Ote,"ra_Clear filter":"Clear filter","ra_Clear icon":"Clear icon","ra_Clone current row":"Clone current row",ra_Close:Dte,"ra_Collapse all nodes":"Collapse all nodes","ra_Collapse one step node":"Collapse one level",ra_Commercial:Mte,ra_Configure:Nte,"ra_Configure visible columns":"Configure visible columns","ra_Confirm deletion of %s":"Confirm deletion of %s",ra_Connected:Pte,ra_Copied:Rte,"ra_Copied %s":'Copied "%s"',"ra_Copy content":"Copy content",ra_Create:Ate,"ra_Create alias":"Create alias","ra_Create folder":"Create folder","ra_Create new folder in %s":"Create new folder in %s",ra_Crop:Ite,"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:jte,ra_Delete:Lte,"ra_Delete (no confirm for 5 mins)":"Delete (no confirm for 5 mins)","ra_Delete current row":"Delete current row","ra_Deselect all":"Unselect all","ra_Device → Channel → State":"Device → Channel → State",ra_Discard:zte,ra_Disconnected:Fte,"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_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 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_Error:Bte,"ra_Expand all nodes":"Expand all nodes","ra_Expand one step node":"Expand one level","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:Wte,"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:Ute,"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_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 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:Hte,"ra_License %s":"License %s","ra_License agreement":"License agreement","ra_License does not exist":"License does not exist",ra_tooltip_expire:qte,"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_Longitude:Vte,'ra_May not trigger "updateLicenses"':'May not trigger "updateLicenses"',ra_Message:Xte,ra_Monday:Gte,"ra_Move down":"Move down","ra_Move up":"Move up",ra_Name:Jte,"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 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_Objects:Yte,ra_Ok:Kte,"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 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_Private certificate":"Private certificate",ra_Product:Zte,"ra_Public certificate":"Public certificate","ra_Quality code":"Quality","ra_Refresh tree":"Refresh tree","ra_Reload files":"Reload files",ra_Repeat:Qte,ra_Replace:ere,"ra_Request timed out":"Request timed out","ra_Restrict to folder":"Restrict to folder",ra_Root:tre,ra_Saturday:rre,ra_Save:nre,"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:ore,"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_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:are,"ra_Suitable license not found in license manager":"Suitable license not found in license manager",ra_Sunday:sre,"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:ire,ra_Timestamp:cre,"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:lre,"ra_Unknown error":"Unknown error","ra_Unknown error!":"Unknown error!",ra_Update:ure,"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:dre,ra_Value:pre,ra_Version:fre,"ra_View file":"View file","ra_View: %s":"View: %s",ra_Wednesday:hre,ra_Width:mre,ra_Yes:_re,"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___different__:gre,ra_aclEveryone_read_object:yre,ra_aclEveryone_read_state:vre,ra_aclEveryone_write_object:bre,ra_aclEveryone_write_state:wre,ra_aclGroup_read_object:xre,ra_aclGroup_read_state:Sre,ra_aclGroup_write_object:kre,ra_aclGroup_write_state:Cre,ra_aclOwner_read_object:$re,ra_aclOwner_read_state:Ere,ra_aclOwner_write_object:Tre,ra_aclOwner_write_state:Ore,ra_buttons:Dre,ra_changedFrom:Mre,ra_close:Nre,ra_create_boolean_state:Pre,ra_create_channel:Rre,ra_create_device:Are,ra_create_number_state:Ire,ra_create_state:jre,ra_create_string_state:Lre,ra_daysShortText:zre,ra_dow_Fr:Fre,ra_dow_Mo:Bre,ra_dow_Sa:Wre,ra_dow_Su:Ure,ra_dow_Th:Hre,ra_dow_Tu:qre,ra_dow_We:Vre,ra_expertMode:Xre,ra_fileType_all:Gre,ra_fileType_audio:Jre,ra_fileType_code:Yre,ra_fileType_images:Kre,ra_fileType_txt:Zre,ra_fileType_video:Qre,"ra_fileType_video,":"Video",ra_filter_customs:ene,ra_filter_customs_without:tne,ra_filter_func:rne,ra_filter_id:nne,ra_filter_name:one,ra_filter_role:ane,ra_filter_room:sne,ra_filter_type:ine,"ra_import data from %s file":"Import data from %s file",ra_invalidConfig:cne,ra_lastChange:lne,ra_locally:une,ra_month_Apr:dne,ra_month_Aug:pne,ra_month_Dec:fne,ra_month_Feb:hne,ra_month_Jan:mne,ra_month_Jul:_ne,ra_month_Jun:gne,ra_month_Mai:yne,ra_month_Mar:vne,ra_month_Nov:bne,ra_month_Oct:wne,ra_month_Sep:xne,ra_months_Apr:Sne,ra_months_Aug:kne,ra_months_Dec:Cne,ra_months_Feb:$ne,ra_months_Jan:Ene,ra_months_Jul:Tne,ra_months_Jun:One,ra_months_Mai:Dne,ra_months_Mar:Mne,ra_months_Nov:Nne,ra_months_Oct:Pne,ra_months_Sep:Rne,ra_none:Ane,ra_object_changed_by:Ine,ra_object_changed_by_user:jne,ra_otherConfig:Lne,ra_qualityCode:zne,ra_repeat:Fne,ra_select_folder_hint:Bne,ra_state_changed_by:Wne,ra_state_changed_from:Une,ra_timestamp:Hne,ra_tooltip_ack:qne,ra_tooltip_comment:Vne,ra_tooltip_copyState:Xne,ra_tooltip_customConfig:Gne,ra_tooltip_deleteObject:Jne,ra_tooltip_editObject:Yne,ra_tooltip_editState:Kne,ra_tooltip_from:Zne,ra_tooltip_lc:Qne,ra_tooltip_quality:eoe,ra_tooltip_ts:toe,ra_tooltip_user:roe,ra_tooltip_value:noe,"ra_use seconds":"use seconds",ra_val:ooe,"ra_via internet":"via internet",ra_warning_every_minute:aoe,ra_warning_every_second:soe,sc_cron:ioe,sc_date:coe,sc_dates:loe,sc_dow:uoe,sc_dows:doe,sc_every:poe,sc_everyN_dates:foe,sc_everyN_dow:hoe,sc_everyN_dows:moe,sc_everyN_hours:_oe,sc_everyN_minutes:goe,sc_everyN_months:yoe,sc_everyN_seconds:voe,sc_every_dates:boe,sc_every_dow:woe,sc_every_dows:xoe,sc_every_hours:Soe,sc_every_minutes:koe,sc_every_months:Coe,sc_every_seconds:$oe,sc_from:Eoe,sc_hours:Toe,sc_interval:Ooe,sc_intervalBetween:Doe,sc_invalid_cron:Moe,sc_minutes:Noe,sc_months:Poe,sc_once:Roe,sc_period:Aoe,sc_seconds:Ioe,sc_simple:joe,sc_specific:Loe,sc_specific_dates:zoe,sc_specific_dow:Foe,sc_specific_dows:Boe,sc_specific_hours:Woe,sc_specific_minutes:Uoe,sc_specific_months:Hoe,sc_specific_seconds:qoe,sc_time:Voe,sc_to:Xoe,sc_wizard:Goe,sch_all:Joe,sch_astroDay:Yoe,sch_astroNight:Koe,sch_astro_dawn:Zoe,sch_astro_dusk:Qoe,sch_astro_goldenHour:eae,sch_astro_goldenHourEnd:tae,sch_astro_nadir:rae,sch_astro_nauticalDawn:nae,sch_astro_nauticalDusk:oae,sch_astro_night:aae,sch_astro_nightEnd:sae,sch_astro_solarNoon:iae,sch_astro_sunrise:cae,sch_astro_sunriseEnd:lae,sch_astro_sunset:uae,sch_astro_sunsetStart:dae,sch_at:pae,sch_desc_atTime:fae,sch_desc_everyDay:hae,sch_desc_everyHour:mae,sch_desc_everyMinute:_ae,sch_desc_everyMonth:gae,sch_desc_everyNDay:yae,sch_desc_everyNHours:vae,sch_desc_everyNMinutes:bae,sch_desc_everyNMonths:wae,sch_desc_everyNWeeks:xae,sch_desc_everyNYears:Sae,sch_desc_everyWeek:kae,sch_desc_everyYear:Cae,sch_desc_intervalFromTo:$ae,sch_desc_never:Eae,sch_desc_onDate:Tae,sch_desc_onDates:Oae,sch_desc_onEveryDate:Dae,sch_desc_onMonth:Mae,sch_desc_onMonths:Nae,sch_desc_onWeekday:Pae,sch_desc_onWeekdays:Rae,sch_desc_onWeekends:Aae,sch_desc_onWorkdays:Iae,sch_desc_onceInPast:jae,sch_desc_once_on:Lae,sch_desc_validFrom:zae,sch_desc_validFromTo:Fae,sch_desc_validTo:Bae,sch_every:Wae,sch_exactTime:Uae,sch_from:Hae,sch_fromTo:qae,sch_intervalTime:Vae,sch_invert:Xae,sch_no_one:Gae,sch_on:Jae,sch_period:Yae,sch_periodDaily:Kae,sch_periodDates:Zae,sch_periodDay:Qae,sch_periodEvery:ese,sch_periodEveryDay:tse,sch_periodEveryMonth:rse,sch_periodEveryWeek:nse,sch_periodEveryYear:ose,sch_periodHours:ase,sch_periodMinutes:sse,sch_periodMonth:ise,sch_periodMonthly:cse,sch_periodOnce:lse,sch_periodSpecificMonths:use,sch_periodWeek:dse,sch_periodWeekdays:pse,sch_periodWeekend:fse,sch_periodWeekly:hse,sch_periodWorkdays:mse,sch_periodYear:_se,sch_periodYearly:gse,sch_specificTime:yse,sch_time:vse,sch_to:bse,sch_valid:wse,sch_validFrom:xse,sch_validTo:Sse,sch_wholeDay:kse,sch_yearEveryMonth:Cse},Ese="Anhängen",Tse="Abbrechen",Ose="Kategorien",Dse="Geprüft",Mse="Löschen",Nse="Schließen",Pse="Kommerziell",Rse="Konfigurieren",Ase="Verbunden",Ise="Kopiert",jse="Erstellen",Lse="Ernte",zse="Entf",Fse="Löschen",Bse="Verwerfen",Wse="Getrennt",Use="Fehler",Hse="Filter",qse="Freitag",Vse="Breite",Xse="Längengrad",Gse="Meldung",Jse="Montag",Yse="Name",Kse="Objekte",Zse="OK",Qse="Produkt",eie="Wiederholen",tie="Ersetzen",rie="Anfang",nie="Samstag",oie="Speichern",aie="Ausgewählt",sie="Zustände",iie="Sonntag",cie="Donnerstag",lie="Zeitstempel",uie="Dienstag",die="Aktualisieren",pie="Gültig bis",fie="Wert",hie="Ausführung",mie="Mittwoch",_ie="Breite",gie="Ja",yie="unterschiedlich",vie="Jeder kann Objekt lesen",bie="Jeder kann Zustand lesen",wie="Jeder kann ein Objekt schreiben",xie="Jeder kann Zustand schreiben",Sie="Gruppe kann Objekt lesen",kie="Gruppe kann Status lesen",Cie="Gruppe kann Objekt schreiben",$ie="Gruppe kann Status schreiben",Eie="Besitzer kann Objekt lesen",Tie="Besitzer kann Zustand lesen",Oie="Besitzer kann Objekt schreiben",Die="Besitzer kann Zustand schreiben",Mie="Tasten",Nie="Geändert von",Pie="Schließen",Rie="Booleschen Zustand erstellen",Aie="Kanal erstellen",Iie="Gerät erstellen",jie="Nummern-Zustand erstellen",Lie="Zustand erstellen",zie="String-Zustand erstellen",Fie="T.",Bie="Fr",Wie="Mo",Uie="Sa",Hie="So",qie="Do",Vie="Di",Xie="Mi",Gie="Expertenmodus",Jie="Alle Dateien",Yie="Audio",Kie="Code/JSON",Zie="Bilder",Qie="Text",ece="Video",tce="Einstellungen",rce="ohne",nce="Funktion",oce="ID",ace="Name",sce="Rolle",ice="Raum",cce="Typ",lce="Ungültige Einstellungen",uce="Letzte Änderung",dce="örtlich",pce="Apr",fce="Aug",hce="Dez",mce="Feb",_ce="Jan",gce="Jul",yce="Jun",vce="Mai",bce="Mär",wce="Nov",xce="Okt",Sce="Sep",kce="Apr",Cce="Aug",$ce="Dez",Ece="Feb",Tce="Jan",Oce="Jul",Dce="Jun",Mce="Mai",Nce="Mär",Pce="Nov",Rce="Okt",Ace="Sep",Ice="kein",jce="Objekt geändert von",Lce="Objekt zuletzt geändert um",zce="Einstellungen von anderen Adaptern %s",Fce="Qualitätscode",Bce="wiederholen",Wce='Um einen Ordner auszuwählen, halten Sie einfach die Taste "Shift" gedrückt, indem Sie auf den Ordner klicken.',Uce="Zustand geändert durch",Hce="Objekt geändert von",qce="Zeitstempel",Vce="Bestätigt",Xce="Kommentar",Gce="Statuswert kopieren",Jce="Benutzerdefinierte Einstellungen",Yce="Objekt löschen",Kce="Objekt bearbeiten",Zce="Statuswert bearbeiten",Qce="Von",ele="Zuletzt geändert",tle="Qualität",rle="Zeitstempel",nle="Benutzer",ole="Wert",ale="Wert",sle="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Minute ausgeführt!",ile="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Sekunde ausgeführt!",cle="CRON",lle="Datum",ule="Tage",dle="Tag",ple="Wochentage",fle="Jeden",hle="alle N Tage",mle="jeden x-ten Tag der Woche",_le="alle N Wochentage",gle="alle N Stunden",yle="alle N Minuten",vle="alle N Monate",ble="alle N Sekunden",wle="jeden Tag",xle="jeden Tag der Woche",Sle="jeden Tag der Woche",kle="jede Stunde",Cle="jede Minute",$le="jeden Monat",Ele="jede Sekunde",Tle="Von",Ole="Stunden",Dle="Intervall",Mle="Intervall zwischen",Nle="Ungültiger CRON",Ple="Minuten",Rle="Monate",Ale="Einmal",Ile="Zeitraum",jle="Sekunden",Lle="Einfach",zle="Bestimmte Zeit",Fle="bestimmte Tage",Ble="bestimmte(r) Tag(e) der Woche",Wle="bestimmten Wochentag",Ule="bestimmte Stunden",Hle="bestimmte Minuten",qle="bestimmte Monate",Vle="bestimmte Sekunden",Xle="Zeit",Gle="Bis",Jle="Wizard",Yle="alle",Kle="Astronomischer Tag",Zle="Astronomische Nacht",Qle="Morgendämmerung",eue="Abenddämmerung",tue="Goldene Stunde",rue="Goldene Stundenende",nue="Nadir",oue="Nautische Morgendämmerung",aue="Nautische Abenddämmerung",sue="Nacht",iue="Nachtende",cue="Sonnenmittag",lue="Sonnenaufgang",uue="Sonnenaufgangende",due="Sonnenuntergang",pue="Sonnenuntergangstart",fue="am",hue="um %s",mue="jeden Tag",_ue="jede Stunde",gue="jede Minute",yue="jeden Monat",vue="jeden %s Tag",bue="alle %s Stunden",wue="alle %s Minuten",xue="alle %s Monate",Sue="alle %s Wochen",kue="alle %s Jahre",Cue="jede Woche",$ue="jedes Jahr",Eue="von %s bis %s",Tue="noch nie",Oue="am %s von %s",Due="am %s und %s von",Mue="an jedem Datum von",Nue="%s",Pue="%s und %s",Rue="auf %s",Aue="auf %s und %s",Iue="an Wochenenden",jue="an Werktagen",Lue="wird nicht mehr ausgeführt, weil der Start in der Vergangenheit ist",zue="auf %s",Fue="von %s",Bue="Ausführen von bis",Wue="bis %s",Uue="jeden",Hue="Bestimmte Zeit",que="von",Vue="Von bis",Xue="Zeitintervall",Gue="umkehren",Jue="keiner",Yue="am",Kue="Zeitraum",Zue="Täglich",Que="Daten",ede="Tag",tde="Jeden",rde="Jeden Tag",nde="Jeden Monat",ode="Jede Woche",ade="Jedes Jahr",sde="Stunden",ide="Minuten",cde="Monat",lde="Monatlich",ude="Einmal",dde="Bestimmte Monate",pde="Woche",fde="Wochentage",hde="Wochenende",mde="Wöchentlich",_de="Arbeitstage",gde="Jahr",yde="Jährlich",vde="Bestimmte Zeit",bde="Zeit",wde="zu",xde="Gültigkeit",Sde="von",kde="bis",Cde="Ganzer Tag",$de="jeden Monat",Ede={"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_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:Ese,"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:Tse,"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:Ose,"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:Dse,ra_Clear:Mse,"ra_Clear filter":"Filter löschen","ra_Clear icon":"Symbol löschen","ra_Clone current row":"Aktuelle Zeile klonen",ra_Close:Nse,"ra_Collapse all nodes":"Alle Knoten zuklappen","ra_Collapse one step node":"Eine Ebene zuklappen",ra_Commercial:Pse,ra_Configure:Rse,"ra_Configure visible columns":"Spalten Konfigurieren","ra_Confirm deletion of %s":"Das Löschen von %s bestätigen",ra_Connected:Ase,ra_Copied:Ise,"ra_Copied %s":'"%s" kopiert',"ra_Copy content":"Inhalte kopieren",ra_Create:jse,"ra_Create alias":"Alias erstellen","ra_Create folder":"Ordner erstellen","ra_Create new folder in %s":'Neuen Ordner in "%s" erstellen',ra_Crop:Lse,"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:zse,ra_Delete:Fse,"ra_Delete (no confirm for 5 mins)":"Löschen (keine Bestätigung für 5 Minuten)","ra_Delete current row":"Aktuelle Zeile löschen","ra_Deselect all":"Alles abwählen","ra_Device → Channel → State":"Gerät → Kanal → Zustand",ra_Discard:Bse,ra_Disconnected:Wse,"ra_Do not export values of states":"Keine Zustandswerte exportieren","ra_Do not use let's encrypt":"Let's encrypt nicht verwenden","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 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_Error:Use,"ra_Expand all nodes":"Alle Knoten aufklappen","ra_Expand one step node":"Eine Ebene aufklappen","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:Hse,"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:qse,"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_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 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:Vse,"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_Longitude:Xse,'ra_May not trigger "updateLicenses"':"Löst möglicherweise nicht „updateLicenses“ aus",ra_Message:Gse,ra_Monday:Jse,"ra_Move down":"Nach unten","ra_Move up":"Nach oben",ra_Name:Yse,"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 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_Objects:Kse,ra_Ok:Zse,"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 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_Private certificate":"Privates Zertifikat",ra_Product:Qse,"ra_Public certificate":"Öffentliches Zertifikat","ra_Quality code":"Qualität","ra_Refresh tree":"Baum aktualisieren","ra_Reload files":"Dateien neu laden",ra_Repeat:eie,ra_Replace:tie,"ra_Request timed out":"Zeitüberschreitung der Anforderung","ra_Restrict to folder":"Auf Ordner beschränken",ra_Root:rie,ra_Saturday:nie,ra_Save:oie,"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:aie,"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_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:sie,"ra_Suitable license not found in license manager":"Passende Lizenz im Lizenzmanager nicht gefunden",ra_Sunday:iie,"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:cie,ra_Timestamp:lie,"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:uie,"ra_Unknown error":"Unbekannter Fehler","ra_Unknown error!":"Unbekannter Fehler!",ra_Update:die,"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:pie,ra_Value:fie,ra_Version:hie,"ra_View file":"Datei ansehen","ra_View: %s":"Anschauen: %s",ra_Wednesday:mie,ra_Width:_ie,ra_Yes:gie,"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___different__:yie,ra_aclEveryone_read_object:vie,ra_aclEveryone_read_state:bie,ra_aclEveryone_write_object:wie,ra_aclEveryone_write_state:xie,ra_aclGroup_read_object:Sie,ra_aclGroup_read_state:kie,ra_aclGroup_write_object:Cie,ra_aclGroup_write_state:$ie,ra_aclOwner_read_object:Eie,ra_aclOwner_read_state:Tie,ra_aclOwner_write_object:Oie,ra_aclOwner_write_state:Die,ra_buttons:Mie,ra_changedFrom:Nie,ra_close:Pie,ra_create_boolean_state:Rie,ra_create_channel:Aie,ra_create_device:Iie,ra_create_number_state:jie,ra_create_state:Lie,ra_create_string_state:zie,ra_daysShortText:Fie,ra_dow_Fr:Bie,ra_dow_Mo:Wie,ra_dow_Sa:Uie,ra_dow_Su:Hie,ra_dow_Th:qie,ra_dow_Tu:Vie,ra_dow_We:Xie,ra_expertMode:Gie,ra_fileType_all:Jie,ra_fileType_audio:Yie,ra_fileType_code:Kie,ra_fileType_images:Zie,ra_fileType_txt:Qie,ra_fileType_video:ece,"ra_fileType_video,":"Video",ra_filter_customs:tce,ra_filter_customs_without:rce,ra_filter_func:nce,ra_filter_id:oce,ra_filter_name:ace,ra_filter_role:sce,ra_filter_room:ice,ra_filter_type:cce,"ra_import data from %s file":"Daten aus %s-Datei importieren",ra_invalidConfig:lce,ra_lastChange:uce,ra_locally:dce,ra_month_Apr:pce,ra_month_Aug:fce,ra_month_Dec:hce,ra_month_Feb:mce,ra_month_Jan:_ce,ra_month_Jul:gce,ra_month_Jun:yce,ra_month_Mai:vce,ra_month_Mar:bce,ra_month_Nov:wce,ra_month_Oct:xce,ra_month_Sep:Sce,ra_months_Apr:kce,ra_months_Aug:Cce,ra_months_Dec:$ce,ra_months_Feb:Ece,ra_months_Jan:Tce,ra_months_Jul:Oce,ra_months_Jun:Dce,ra_months_Mai:Mce,ra_months_Mar:Nce,ra_months_Nov:Pce,ra_months_Oct:Rce,ra_months_Sep:Ace,ra_none:Ice,ra_object_changed_by:jce,ra_object_changed_by_user:Lce,ra_otherConfig:zce,ra_qualityCode:Fce,ra_repeat:Bce,ra_select_folder_hint:Wce,ra_state_changed_by:Uce,ra_state_changed_from:Hce,ra_timestamp:qce,ra_tooltip_ack:Vce,ra_tooltip_comment:Xce,ra_tooltip_copyState:Gce,ra_tooltip_customConfig:Jce,ra_tooltip_deleteObject:Yce,ra_tooltip_editObject:Kce,ra_tooltip_editState:Zce,ra_tooltip_from:Qce,ra_tooltip_lc:ele,ra_tooltip_quality:tle,ra_tooltip_ts:rle,ra_tooltip_user:nle,ra_tooltip_value:ole,"ra_use seconds":"Sekunden benutzen",ra_val:ale,"ra_via internet":"übers Internet",ra_warning_every_minute:sle,ra_warning_every_second:ile,sc_cron:cle,sc_date:lle,sc_dates:ule,sc_dow:dle,sc_dows:ple,sc_every:fle,sc_everyN_dates:hle,sc_everyN_dow:mle,sc_everyN_dows:_le,sc_everyN_hours:gle,sc_everyN_minutes:yle,sc_everyN_months:vle,sc_everyN_seconds:ble,sc_every_dates:wle,sc_every_dow:xle,sc_every_dows:Sle,sc_every_hours:kle,sc_every_minutes:Cle,sc_every_months:$le,sc_every_seconds:Ele,sc_from:Tle,sc_hours:Ole,sc_interval:Dle,sc_intervalBetween:Mle,sc_invalid_cron:Nle,sc_minutes:Ple,sc_months:Rle,sc_once:Ale,sc_period:Ile,sc_seconds:jle,sc_simple:Lle,sc_specific:zle,sc_specific_dates:Fle,sc_specific_dow:Ble,sc_specific_dows:Wle,sc_specific_hours:Ule,sc_specific_minutes:Hle,sc_specific_months:qle,sc_specific_seconds:Vle,sc_time:Xle,sc_to:Gle,sc_wizard:Jle,sch_all:Yle,sch_astroDay:Kle,sch_astroNight:Zle,sch_astro_dawn:Qle,sch_astro_dusk:eue,sch_astro_goldenHour:tue,sch_astro_goldenHourEnd:rue,sch_astro_nadir:nue,sch_astro_nauticalDawn:oue,sch_astro_nauticalDusk:aue,sch_astro_night:sue,sch_astro_nightEnd:iue,sch_astro_solarNoon:cue,sch_astro_sunrise:lue,sch_astro_sunriseEnd:uue,sch_astro_sunset:due,sch_astro_sunsetStart:pue,sch_at:fue,sch_desc_atTime:hue,sch_desc_everyDay:mue,sch_desc_everyHour:_ue,sch_desc_everyMinute:gue,sch_desc_everyMonth:yue,sch_desc_everyNDay:vue,sch_desc_everyNHours:bue,sch_desc_everyNMinutes:wue,sch_desc_everyNMonths:xue,sch_desc_everyNWeeks:Sue,sch_desc_everyNYears:kue,sch_desc_everyWeek:Cue,sch_desc_everyYear:$ue,sch_desc_intervalFromTo:Eue,sch_desc_never:Tue,sch_desc_onDate:Oue,sch_desc_onDates:Due,sch_desc_onEveryDate:Mue,sch_desc_onMonth:Nue,sch_desc_onMonths:Pue,sch_desc_onWeekday:Rue,sch_desc_onWeekdays:Aue,sch_desc_onWeekends:Iue,sch_desc_onWorkdays:jue,sch_desc_onceInPast:Lue,sch_desc_once_on:zue,sch_desc_validFrom:Fue,sch_desc_validFromTo:Bue,sch_desc_validTo:Wue,sch_every:Uue,sch_exactTime:Hue,sch_from:que,sch_fromTo:Vue,sch_intervalTime:Xue,sch_invert:Gue,sch_no_one:Jue,sch_on:Yue,sch_period:Kue,sch_periodDaily:Zue,sch_periodDates:Que,sch_periodDay:ede,sch_periodEvery:tde,sch_periodEveryDay:rde,sch_periodEveryMonth:nde,sch_periodEveryWeek:ode,sch_periodEveryYear:ade,sch_periodHours:sde,sch_periodMinutes:ide,sch_periodMonth:cde,sch_periodMonthly:lde,sch_periodOnce:ude,sch_periodSpecificMonths:dde,sch_periodWeek:pde,sch_periodWeekdays:fde,sch_periodWeekend:hde,sch_periodWeekly:mde,sch_periodWorkdays:_de,sch_periodYear:gde,sch_periodYearly:yde,sch_specificTime:vde,sch_time:bde,sch_to:wde,sch_valid:xde,sch_validFrom:Sde,sch_validTo:kde,sch_wholeDay:Cde,sch_yearEveryMonth:$de},Tde="Добавить",Ode="Отмена",Dde="Категории",Mde="Проверено",Nde="Удалить",Pde="Закрыть",Rde="Коммерческая",Ade="Настроить",Ide="Соединение установлено",jde="скопировано",Lde="Создать",zde="Обрезать",Fde="Delete",Bde="Удалить",Wde="Отказаться",Ude="Отключено",Hde="Ошибка",qde="Фильтр",Vde="Пятница",Xde="Широта",Gde="Долгота",Jde="Сообщение",Yde="Понедельник",Kde="Имя",Zde="Объекты",Qde="Ok",epe="Продукт",tpe="Повторение",rpe="Заменять",npe="Начало",ope="Суббота",ape="Сохранить",spe="выбранный",ipe="Состояния",cpe="Воскресенье",lpe="Четверг",upe="Времени",dpe="Вторник",ppe="Обновить",fpe="Годен до",hpe="Значение",mpe="Версия",_pe="Среда",gpe="Ширина",ype="Да",vpe="разное",bpe="Каждый может читать объект",wpe="Каждый может читать состояние",xpe="Каждый может написать объект",Spe="Каждый может написать состояние",kpe="Группа может читать объект",Cpe="Группа может читать состояние",$pe="Группа может писать объект",Epe="Группа может записывать состояние",Tpe="Владелец может читать объект",Ope="Владелец может читать состояние",Dpe="Владелец может писать объект",Mpe="Владелец может писать состояние",Npe="Кнопки",Ppe="Изменено с",Rpe="Закрыть",Ape="Создать логическое состояние",Ipe="Создать канал",jpe="Создать устройство",Lpe="Создать состояние номера",zpe="Создать состояние",Fpe="Создать состояние строки",Bpe="д.",Wpe="Пт",Upe="Пн",Hpe="Сб",qpe="Вс",Vpe="Чт",Xpe="Вт",Gpe="Ср",Jpe="Экспертный режим",Ype="Все файлы",Kpe="Аудио",Zpe="Код/JSON",Qpe="Картинки",efe="Текст",tfe="видео",rfe="настройки",nfe="без",ofe="функция",afe="ID",sfe="Имя",ife="роль",cfe="комната",lfe="Тип",ufe="Неверные настройки",dfe="Последнее изменение",pfe="локально",ffe="Апр",hfe="Авг",mfe="Дек",_fe="Фев",gfe="Янв",yfe="Июл",vfe="Июн",bfe="Май",wfe="Мрт",xfe="Ноя",Sfe="Окт",kfe="Сен",Cfe="Апр",$fe="Авг",Efe="Дек",Tfe="Фев",Ofe="Янв",Dfe="Июнь",Mfe="Июль",Nfe="Май",Pfe="Март",Rfe="Ноя",Afe="Окт",Ife="Сен",jfe="ничего",Lfe="Объект изменен",zfe="Последний раз объект изменен в",Ffe="Настройки из другого адаптера %s",Bfe="Код качества",Wfe="повтор",Ufe="Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.",Hfe="Состояние изменено",qfe="Объект изменен с",Vfe="Отметка времени",Xfe="Подтверждено",Gfe="Комментарий",Jfe="Скопируйте значение состояния",Yfe="Пользовательские настройки",Kfe="Удалить объект",Zfe="Редактировать объект",Qfe="Изменить значение состояния",ehe="От",the="Последнее изменение",rhe="Качество",nhe="Отметка времени",ohe="пользователь",ahe="Значение",she="Значение",ihe="Внимание: задание CRON будет запускаться каждую минуту в течение указанного периода!",che="Внимание: задание CRON будет выполняться каждую секунду в течение указанного периода!",lhe="CRON",uhe="Дата",dhe="Даты",phe="День",fhe="День недели",hhe="каждый(ую/ые)",mhe="каждый N день",_he="каждый N-й день недели",ghe="каждый N день недели",yhe="каждые N часов",vhe="каждые N минут",bhe="каждые N месяцев",whe="каждые N секунд",xhe="каждый день",She="Каждый день недели",khe="каждый день недели",Che="каждый час",$he="каждую минуту",Ehe="каждый месяц",The="каждую секунду",Ohe="От",Dhe="часы",Mhe="Интервал",Nhe="Интервал между",Phe="Неверный CRON",Rhe="минуты",Ahe="Месяцы",Ihe="один раз",jhe="Период",Lhe="секунды",zhe="Просто",Fhe="Конкретное время",Bhe="конкретные даты",Whe="конкретный день(а) недели",Uhe="конкретный день недели",Hhe="конкретные часы",qhe="конкретные минуты",Vhe="конкретные месяцы",Xhe="конкретные секунды",Ghe="Время",Jhe="До",Yhe="Форма",Khe="все",Zhe="днём",Qhe="ночью",eme="Рассвет",tme="Сумерки",rme="Золотой час",nme="Конец золотого часа",ome="Надир",ame="Морской рассвет",sme="Морские сумерки",ime="Ночь",cme="Конец ночи",lme="Солнечный полдень",ume="Восход",dme="Восход солнца",pme="Заход солнца",fme="Начало заката",hme="дата",mme="в %s",_me="каждый день",gme="каждый час",yme="каждую минуту",vme="каждый месяц",bme="каждый %s день",wme="каждый %s часов",xme="каждые %s минут",Sme="каждые %s месяцев",kme="каждые %s недель",Cme="каждые %s лет",$me="каждую неделю",Eme="каждый год",Tme="от %s до %s",Ome="никогда",Dme="%s %s",Mme="%s и %s",Nme="в каждый день",Pme="%s",Rme="%s и %s",Ame="%s",Ime="%s и %s",jme="на выходных",Lme="в рабочие дни",zme="не будет больше выполняться, потому что начало в прошлом",Fme="%s",Bme="%s",Wme="Выполнить с",Ume="%s",Hme="каждый",qme="Конкретное время",Vme="от",Xme="От и до",Gme="Интервал времени",Jme="инвертировать",Yme="никакой",Kme="на",Zme="период",Qme="Ежедневно",e_e="Даты",t_e="День",r_e="каждый",n_e="Каждый день",o_e="Каждый месяц",a_e="Каждую неделю",s_e="Каждый год",i_e="часов",c_e="минут",l_e="месяц",u_e="ежемесячно",d_e="однажды",p_e="Конкретные месяцы",f_e="Неделю",h_e="Будние дни",m_e="выходные",__e="еженедельно",g_e="Рабочие дни",y_e="Год",v_e="каждый год",b_e="Конкретное время",w_e="Время",x_e="в",S_e="действительный",k_e="от",C_e="в",$_e="Весь день",E_e="каждый месяц",T_e={"ra_%s links from aliases":"%s ссылок из псевдонимов","ra_%s object(s) processed":"Объектов обработано: %s","ra_%s was imported":"%s был импортирован","ra_Accept license":"Принять лицензию","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:Tde,"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:Ode,"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:Dde,"ra_Chained certificate":"Chained сертификат","ra_Change color theme":"Изменить цветовую тему","ra_Changed from":"Изменено","ra_Channel → State":"Канал → Состояние","ra_Check license":"Проверить лицензию",ra_Checked:Mde,ra_Clear:Nde,"ra_Clear filter":"Очистить фильтр","ra_Clear icon":"Очистить значок","ra_Clone current row":"Клонировать текущую строку",ra_Close:Pde,"ra_Collapse all nodes":"Свернуть все узлы","ra_Collapse one step node":"Свернуть один уровень",ra_Commercial:Rde,ra_Configure:Ade,"ra_Configure visible columns":"Настроить видимые столбцы","ra_Confirm deletion of %s":"Подтвердите удаление %s",ra_Connected:Ide,ra_Copied:jde,"ra_Copied %s":'Скопировано "%s"',"ra_Copy content":"Копировать содержимое",ra_Create:Lde,"ra_Create alias":"Создать псевдоним","ra_Create folder":"Создать папку","ra_Create new folder in %s":"Создать новую папку в %s",ra_Crop:zde,"ra_Define CRON...":"Определите CRON...","ra_Define functions":"Задать функции","ra_Define rooms":"Задать комнаты","ra_Define schedule":"Задать расписание","ra_Define schedule...":"Определить расписание ...",ra_Del:Fde,ra_Delete:Bde,"ra_Delete (no confirm for 5 mins)":"Удалить (без подтверждения в течение 5 минут)","ra_Delete current row":"Удалить текущую строку","ra_Deselect all":"Убрать выбор везде","ra_Device → Channel → State":"Устройство → Канал → Состояние",ra_Discard:Wde,ra_Disconnected:Ude,"ra_Do not export values of states":"Не экспортировать значения состояний","ra_Do not use let's encrypt":"Не использовать Let’s Encrypt","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 function":"Изменить функцию","ra_Edit object field":"Поле редактирования объекта","ra_Edit role":"Изменить роль","ra_Edit room":"Редактировать комнату","ra_Edit value":"Изменить значение",ra_Error:Hde,"ra_Expand all nodes":"Развернуть все узлы","ra_Expand one step node":"Открыть один уровень","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:qde,"ra_Filter files":"Фильтровать файлы","ra_Folder name":"Имя папки","ra_Folder → Channel → State":"Папка → Канал → Состояние","ra_Folder → Device → Channel → State":"Папка → Устройство → Канал → Состояние","ra_Folder → State":"Папка → Состояние","ra_Folders always first":"Папки всегда на первом месте",ra_Friday:Vde,"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_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 answer from server":"Неверный ответ от сервера","ra_Invalid parent folder!":"Неверная родительская папка!","ra_Invalid structure":"Неверная структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Последнее изменение",ra_Latitude:Xde,"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_Longitude:Gde,'ra_May not trigger "updateLicenses"':"Не может запускать «updateLicenses»",ra_Message:Jde,ra_Monday:Yde,"ra_Move down":"Вниз","ra_Move up":"Вверх",ra_Name:Kde,"ra_No data found in file":"Данные в файле не найдены","ra_No one license found in license manager":"В менеджере лицензий не найдена ни одна лицензия","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_Objects:Zde,ra_Ok:Qde,"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 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_Private certificate":"Частный сертификат",ra_Product:epe,"ra_Public certificate":"Публичный сертификат","ra_Quality code":"Валидность","ra_Refresh tree":"Обновить дерево","ra_Reload files":"Обновить",ra_Repeat:tpe,ra_Replace:rpe,"ra_Request timed out":"Истекло время запроса","ra_Restrict to folder":"Ограничить папкой",ra_Root:npe,ra_Saturday:ope,ra_Save:ape,"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:spe,"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_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:ipe,"ra_Suitable license not found in license manager":"Подходящая лицензия не найдена в менеджере лицензий",ra_Sunday:cpe,"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:lpe,ra_Timestamp:upe,"ra_Toggle expert mode":"Переключить экспертный режим","ra_Toggle the states view":"Переключить режим просмотра состояний","ra_Toggle view mode":"Переключить режим просмотра","ra_Too big":"Слишком большое","ra_Too small":"Слишком маленькое","ra_Transparent dialog":"Прозрачный диалог",ra_Tuesday:dpe,"ra_Unknown error":"Неизвестная ошибка","ra_Unknown error!":"Неизвестная ошибка!",ra_Update:ppe,"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:fpe,ra_Value:hpe,ra_Version:mpe,"ra_View file":"Посмотреть файл","ra_View: %s":"Просмотр: %s",ra_Wednesday:_pe,ra_Width:gpe,ra_Yes:ype,"ra_You can export all objects or just the selected branch.":"Вы можете экспортировать все объекты или только выбранную ветвь.","ra_You can filter entries by entering here some text":"Вы можете отфильтровать записи, введя здесь текст",ra___different__:vpe,ra_aclEveryone_read_object:bpe,ra_aclEveryone_read_state:wpe,ra_aclEveryone_write_object:xpe,ra_aclEveryone_write_state:Spe,ra_aclGroup_read_object:kpe,ra_aclGroup_read_state:Cpe,ra_aclGroup_write_object:$pe,ra_aclGroup_write_state:Epe,ra_aclOwner_read_object:Tpe,ra_aclOwner_read_state:Ope,ra_aclOwner_write_object:Dpe,ra_aclOwner_write_state:Mpe,ra_buttons:Npe,ra_changedFrom:Ppe,ra_close:Rpe,ra_create_boolean_state:Ape,ra_create_channel:Ipe,ra_create_device:jpe,ra_create_number_state:Lpe,ra_create_state:zpe,ra_create_string_state:Fpe,ra_daysShortText:Bpe,ra_dow_Fr:Wpe,ra_dow_Mo:Upe,ra_dow_Sa:Hpe,ra_dow_Su:qpe,ra_dow_Th:Vpe,ra_dow_Tu:Xpe,ra_dow_We:Gpe,ra_expertMode:Jpe,ra_fileType_all:Ype,ra_fileType_audio:Kpe,ra_fileType_code:Zpe,ra_fileType_images:Qpe,ra_fileType_txt:efe,ra_fileType_video:tfe,"ra_fileType_video,":"видео",ra_filter_customs:rfe,ra_filter_customs_without:nfe,ra_filter_func:ofe,ra_filter_id:afe,ra_filter_name:sfe,ra_filter_role:ife,ra_filter_room:cfe,ra_filter_type:lfe,"ra_import data from %s file":"Импортировать данные из файла %s",ra_invalidConfig:ufe,ra_lastChange:dfe,ra_locally:pfe,ra_month_Apr:ffe,ra_month_Aug:hfe,ra_month_Dec:mfe,ra_month_Feb:_fe,ra_month_Jan:gfe,ra_month_Jul:yfe,ra_month_Jun:vfe,ra_month_Mai:bfe,ra_month_Mar:wfe,ra_month_Nov:xfe,ra_month_Oct:Sfe,ra_month_Sep:kfe,ra_months_Apr:Cfe,ra_months_Aug:$fe,ra_months_Dec:Efe,ra_months_Feb:Tfe,ra_months_Jan:Ofe,ra_months_Jul:Dfe,ra_months_Jun:Mfe,ra_months_Mai:Nfe,ra_months_Mar:Pfe,ra_months_Nov:Rfe,ra_months_Oct:Afe,ra_months_Sep:Ife,ra_none:jfe,ra_object_changed_by:Lfe,ra_object_changed_by_user:zfe,ra_otherConfig:Ffe,ra_qualityCode:Bfe,ra_repeat:Wfe,ra_select_folder_hint:Ufe,ra_state_changed_by:Hfe,ra_state_changed_from:qfe,ra_timestamp:Vfe,ra_tooltip_ack:Xfe,ra_tooltip_comment:Gfe,ra_tooltip_copyState:Jfe,ra_tooltip_customConfig:Yfe,ra_tooltip_deleteObject:Kfe,ra_tooltip_editObject:Zfe,ra_tooltip_editState:Qfe,ra_tooltip_from:ehe,ra_tooltip_lc:the,ra_tooltip_quality:rhe,ra_tooltip_ts:nhe,ra_tooltip_user:ohe,ra_tooltip_value:ahe,"ra_use seconds":"секунды",ra_val:she,"ra_via internet":"через интернет",ra_warning_every_minute:ihe,ra_warning_every_second:che,sc_cron:lhe,sc_date:uhe,sc_dates:dhe,sc_dow:phe,sc_dows:fhe,sc_every:hhe,sc_everyN_dates:mhe,sc_everyN_dow:_he,sc_everyN_dows:ghe,sc_everyN_hours:yhe,sc_everyN_minutes:vhe,sc_everyN_months:bhe,sc_everyN_seconds:whe,sc_every_dates:xhe,sc_every_dow:She,sc_every_dows:khe,sc_every_hours:Che,sc_every_minutes:$he,sc_every_months:Ehe,sc_every_seconds:The,sc_from:Ohe,sc_hours:Dhe,sc_interval:Mhe,sc_intervalBetween:Nhe,sc_invalid_cron:Phe,sc_minutes:Rhe,sc_months:Ahe,sc_once:Ihe,sc_period:jhe,sc_seconds:Lhe,sc_simple:zhe,sc_specific:Fhe,sc_specific_dates:Bhe,sc_specific_dow:Whe,sc_specific_dows:Uhe,sc_specific_hours:Hhe,sc_specific_minutes:qhe,sc_specific_months:Vhe,sc_specific_seconds:Xhe,sc_time:Ghe,sc_to:Jhe,sc_wizard:Yhe,sch_all:Khe,sch_astroDay:Zhe,sch_astroNight:Qhe,sch_astro_dawn:eme,sch_astro_dusk:tme,sch_astro_goldenHour:rme,sch_astro_goldenHourEnd:nme,sch_astro_nadir:ome,sch_astro_nauticalDawn:ame,sch_astro_nauticalDusk:sme,sch_astro_night:ime,sch_astro_nightEnd:cme,sch_astro_solarNoon:lme,sch_astro_sunrise:ume,sch_astro_sunriseEnd:dme,sch_astro_sunset:pme,sch_astro_sunsetStart:fme,sch_at:hme,sch_desc_atTime:mme,sch_desc_everyDay:_me,sch_desc_everyHour:gme,sch_desc_everyMinute:yme,sch_desc_everyMonth:vme,sch_desc_everyNDay:bme,sch_desc_everyNHours:wme,sch_desc_everyNMinutes:xme,sch_desc_everyNMonths:Sme,sch_desc_everyNWeeks:kme,sch_desc_everyNYears:Cme,sch_desc_everyWeek:$me,sch_desc_everyYear:Eme,sch_desc_intervalFromTo:Tme,sch_desc_never:Ome,sch_desc_onDate:Dme,sch_desc_onDates:Mme,sch_desc_onEveryDate:Nme,sch_desc_onMonth:Pme,sch_desc_onMonths:Rme,sch_desc_onWeekday:Ame,sch_desc_onWeekdays:Ime,sch_desc_onWeekends:jme,sch_desc_onWorkdays:Lme,sch_desc_onceInPast:zme,sch_desc_once_on:Fme,sch_desc_validFrom:Bme,sch_desc_validFromTo:Wme,sch_desc_validTo:Ume,sch_every:Hme,sch_exactTime:qme,sch_from:Vme,sch_fromTo:Xme,sch_intervalTime:Gme,sch_invert:Jme,sch_no_one:Yme,sch_on:Kme,sch_period:Zme,sch_periodDaily:Qme,sch_periodDates:e_e,sch_periodDay:t_e,sch_periodEvery:r_e,sch_periodEveryDay:n_e,sch_periodEveryMonth:o_e,sch_periodEveryWeek:a_e,sch_periodEveryYear:s_e,sch_periodHours:i_e,sch_periodMinutes:c_e,sch_periodMonth:l_e,sch_periodMonthly:u_e,sch_periodOnce:d_e,sch_periodSpecificMonths:p_e,sch_periodWeek:f_e,sch_periodWeekdays:h_e,sch_periodWeekend:m_e,sch_periodWeekly:__e,sch_periodWorkdays:g_e,sch_periodYear:y_e,sch_periodYearly:v_e,sch_specificTime:b_e,sch_time:w_e,sch_to:x_e,sch_valid:S_e,sch_validFrom:k_e,sch_validTo:C_e,sch_wholeDay:$_e,sch_yearEveryMonth:E_e},O_e="Acrescentar",D_e="Cancelar",M_e="Categorias",N_e="Verificado",P_e="Excluir",R_e="Perto",A_e="Comercial",I_e="Configurar",j_e="Conectado",L_e="Copiado",z_e="Crio",F_e="Colheita",B_e="Delete",W_e="Excluir",U_e="Descartar",H_e="Desconectado",q_e="Erro",V_e="Filtro",X_e="Sexta-feira",G_e="Latitude",J_e="Longitude",Y_e="mensagem",K_e="Segunda-feira",Z_e="Nome",Q_e="Objetos",ege="Está bem",tge="produtos",rge="Repita",nge="Substituir",oge="Raiz",age="Sábado",sge="Salve ",ige="Selecionado",cge="Estados",lge="Domingo",uge="Quinta-feira",dge="Timestamp",pge="Terça-feira",fge="Atualizar",hge="Válida até",mge="Valor",_ge="Versão",gge="Quarta-feira",yge="Largura",vge="Sim",bge="diferente",wge="Todos podem ler objetos",xge="Todos podem ler o estado",Sge="Todos podem escrever objetos",kge="Todos podem escrever o estado",Cge="O grupo pode ler o objeto",$ge="O grupo pode ler o estado",Ege="O grupo pode escrever o objeto",Tge="O grupo pode escrever o estado",Oge="O proprietário pode ler o objeto",Dge="O proprietário pode ler o estado",Mge="O proprietário pode escrever o objeto",Nge="O proprietário pode escrever o estado",Pge="Botões",Rge="Mudou de",Age="fechar",Ige="Criar estado booleano",jge="Criar canal",Lge="Criar dispositivo",zge="Criar estado numérico",Fge="Criar estado",Bge="Criar estado de string",Wge="d.",Uge="Fr",Hge="Mo",qge="Sa",Vge="Su",Xge="º",Gge="Tu",Jge="Nós",Yge="Modo especialista",Kge="Todos os arquivos",Zge="áudio",Qge="Código/JSON",eye="Imagens",tye="Texto",rye="Vídeo",nye="Configurações",oye="sem",aye="Função",sye="ID",iye="Nome",cye="Papel (Função)",lye="Quarto",uye="Tipo",dye="Configurações inválidas",pye="Última mudança",fye="localmente",hye="abril",mye="agosto",_ye="dezembro",gye="fevereiro",yye="janeiro",vye="julho",bye="junho",wye="Mai",xye="março",Sye="novembro",kye="outubro",Cye="setembro",$ye="abril",Eye="agosto",Tye="dezembro",Oye="fevereiro",Dye="janeiro",Mye="julho",Nye="junho",Pye="Mai",Rye="março",Aye="novembro",Iye="outubro",jye="setembro",Lye="Nenhum",zye="Objeto alterado por",Fye="Objeto alterado pela última vez em",Bye="Configurações de outro adaptador %s",Wye="Código de qualidade",Uye="repetir",Hye='Para selecionar a pasta, basta segurar a tecla "shift" clicando na pasta.',qye="Estado alterado por",Vye="Objeto alterado de",Xye="Timestamp",Gye="Confirmado",Jye="Comente",Yye="Copie o valor do estado",Kye="Opções customizadas",Zye="Excluir objeto",Qye="Editar objeto",eve="Edite o valor do estado",tve="De",rve="Última alteração",nve="Qualidade",ove="Timestamp",ave="Usuário",sve="Valor",ive="Valor",cve="Aviso: O trabalho CRON será executado a cada minuto durante o período especificado!",lve="Aviso: O trabalho CRON será executado a cada segundo durante o período especificado!",uve="CRON",dve="Data",pve="Dias",fve="Dia",hve="Dia da semana",mve="todos",_ve="a cada N dias",gve="todo enésimo dia da semana",yve="todos os N dias da semana",vve="a cada N horas",bve="a cada N minutos",wve="a cada N meses",xve="a cada N segundos",Sve="todo dia",kve="todos os dias da semana",Cve="todos os dias da semana",$ve="toda hora",Eve="todo minuto",Tve="todo mês",Ove="todo segundo",Dve="de",Mve="horas",Nve="intervalo",Pve="intervalo entre",Rve="CRON inválido",Ave="minutos",Ive="meses",jve="uma vez",Lve="período",zve="segundos",Fve="simples",Bve="tempo específico",Wve="datas específicas",Uve="dia(s) específico(s) da semana",Hve="dia específico de semanas",qve="horas específicas",Vve="minutos específicos",Xve="meses específicos",Gve="segundos específicos",Jve="tempo",Yve="para",Kve="assistente",Zve="tudo",Qve="dia astral",e0e="noite astral",t0e="amanhecer",r0e="anoitecer",n0e="hora dourada",o0e="Fim da hora dourada",a0e="nadir",s0e="Amanhecer náutico",i0e="Anoitecer náutico",c0e="noite",l0e="fim da noite",u0e="meio-dia solar",d0e="nascer do sol",p0e="fim do nascer do sol",f0e="pôr do sol",h0e="início do pôr do sol",m0e="às",_0e="em %s",g0e="todo dia",y0e="toda hora",v0e="todo minuto",b0e="todo mês",w0e="a cada %s dias",x0e="a cada %s horas",S0e="a cada %s minutos",k0e="a cada %s meses",C0e="a cada %s semanas",$0e="a cada %s anos",E0e="toda semana",T0e="todo ano",O0e="de %s para %s",D0e="nunca",M0e="em %s de %s",N0e="em %s e %s de",P0e="em toda data de",R0e="%s",A0e="%s e %s",I0e="em %s",j0e="em %s e %s",L0e="nos fins de semana",z0e="em dias úteis",F0e="não será mais executado, porque o começo está no passado",B0e="em %s",W0e="de %s",U0e="Executar de até",H0e="até %s",q0e="cada",V0e="tempo específico",X0e="de",G0e="de a´t",J0e="tempo de intervalo",Y0e="invertido",K0e="nenhum",Z0e="em",Q0e="período",ebe="diariamente",tbe="datas",rbe="dia",nbe="todos",obe="todo dia",abe="todo mês",sbe="toda semana",ibe="todo ano",cbe="horas",lbe="minutos",ube="mês",dbe="por mês",pbe="uma vez",fbe="meses específicos",hbe="semana",mbe="dias úteis",_be="final de semana",gbe="semanal",ybe="dias úteis",vbe="ano",bbe="anual",wbe="tempo específico",xbe="tempo",Sbe="para",kbe="válido",Cbe="de",$be="para",Ebe="dia inteiro",Tbe="todo mês",Obe={"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_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:O_e,"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:D_e,"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:M_e,"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:N_e,ra_Clear:P_e,"ra_Clear filter":"Filtro limpo","ra_Clear icon":"Ícone de limpeza","ra_Clone current row":"Clonar linha atual",ra_Close:R_e,"ra_Collapse all nodes":"Recolher todos os nós","ra_Collapse one step node":"Recolher um nível",ra_Commercial:A_e,ra_Configure:I_e,"ra_Configure visible columns":"Configurar colunas visíveis","ra_Confirm deletion of %s":"Confirme a exclusão de %s",ra_Connected:j_e,ra_Copied:L_e,"ra_Copied %s":'"%s" copiado',"ra_Copy content":"Copiar conteúdo",ra_Create:z_e,"ra_Create alias":"Criar alias","ra_Create folder":"Criar pasta","ra_Create new folder in %s":"Crie uma nova pasta em %s",ra_Crop:F_e,"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:B_e,ra_Delete:W_e,"ra_Delete (no confirm for 5 mins)":"Excluir (sem confirmação por 5 minutos)","ra_Delete current row":"Excluir linha atual","ra_Deselect all":"Desmarque todos","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:U_e,ra_Disconnected:H_e,"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_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 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_Error:q_e,"ra_Expand all nodes":"Expanda todos os nós","ra_Expand one step node":"Expanda um nível","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:V_e,"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:X_e,"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_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 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:G_e,"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_Longitude:J_e,'ra_May not trigger "updateLicenses"':'Pode não acionar "updateLicenses"',ra_Message:Y_e,ra_Monday:K_e,"ra_Move down":"Mover para baixo","ra_Move up":"Subir",ra_Name:Z_e,"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 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_Objects:Q_e,ra_Ok:ege,"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 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_Private certificate":"certificado privado",ra_Product:tge,"ra_Public certificate":"certificado público","ra_Quality code":"Qualidade","ra_Refresh tree":"Atualizar árvore","ra_Reload files":"Recarregar arquivos",ra_Repeat:rge,ra_Replace:nge,"ra_Request timed out":"Solicitação expirou","ra_Restrict to folder":"Restringir à pasta",ra_Root:oge,ra_Saturday:age,ra_Save:sge,"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:ige,"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_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:cge,"ra_Suitable license not found in license manager":"Licença adequada não encontrada no gerenciador de licenças",ra_Sunday:lge,"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:uge,ra_Timestamp:dge,"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:pge,"ra_Unknown error":"Erro desconhecido","ra_Unknown error!":"Erro desconhecido!",ra_Update:fge,"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:hge,ra_Value:mge,ra_Version:_ge,"ra_View file":"Visualizar arquivo","ra_View: %s":"Visualizar: %s",ra_Wednesday:gge,ra_Width:yge,ra_Yes:vge,"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___different__:bge,ra_aclEveryone_read_object:wge,ra_aclEveryone_read_state:xge,ra_aclEveryone_write_object:Sge,ra_aclEveryone_write_state:kge,ra_aclGroup_read_object:Cge,ra_aclGroup_read_state:$ge,ra_aclGroup_write_object:Ege,ra_aclGroup_write_state:Tge,ra_aclOwner_read_object:Oge,ra_aclOwner_read_state:Dge,ra_aclOwner_write_object:Mge,ra_aclOwner_write_state:Nge,ra_buttons:Pge,ra_changedFrom:Rge,ra_close:Age,ra_create_boolean_state:Ige,ra_create_channel:jge,ra_create_device:Lge,ra_create_number_state:zge,ra_create_state:Fge,ra_create_string_state:Bge,ra_daysShortText:Wge,ra_dow_Fr:Uge,ra_dow_Mo:Hge,ra_dow_Sa:qge,ra_dow_Su:Vge,ra_dow_Th:Xge,ra_dow_Tu:Gge,ra_dow_We:Jge,ra_expertMode:Yge,ra_fileType_all:Kge,ra_fileType_audio:Zge,ra_fileType_code:Qge,ra_fileType_images:eye,ra_fileType_txt:tye,ra_fileType_video:rye,"ra_fileType_video,":"Vídeo",ra_filter_customs:nye,ra_filter_customs_without:oye,ra_filter_func:aye,ra_filter_id:sye,ra_filter_name:iye,ra_filter_role:cye,ra_filter_room:lye,ra_filter_type:uye,"ra_import data from %s file":"Importar dados do arquivo %s",ra_invalidConfig:dye,ra_lastChange:pye,ra_locally:fye,ra_month_Apr:hye,ra_month_Aug:mye,ra_month_Dec:_ye,ra_month_Feb:gye,ra_month_Jan:yye,ra_month_Jul:vye,ra_month_Jun:bye,ra_month_Mai:wye,ra_month_Mar:xye,ra_month_Nov:Sye,ra_month_Oct:kye,ra_month_Sep:Cye,ra_months_Apr:$ye,ra_months_Aug:Eye,ra_months_Dec:Tye,ra_months_Feb:Oye,ra_months_Jan:Dye,ra_months_Jul:Mye,ra_months_Jun:Nye,ra_months_Mai:Pye,ra_months_Mar:Rye,ra_months_Nov:Aye,ra_months_Oct:Iye,ra_months_Sep:jye,ra_none:Lye,ra_object_changed_by:zye,ra_object_changed_by_user:Fye,ra_otherConfig:Bye,ra_qualityCode:Wye,ra_repeat:Uye,ra_select_folder_hint:Hye,ra_state_changed_by:qye,ra_state_changed_from:Vye,ra_timestamp:Xye,ra_tooltip_ack:Gye,ra_tooltip_comment:Jye,ra_tooltip_copyState:Yye,ra_tooltip_customConfig:Kye,ra_tooltip_deleteObject:Zye,ra_tooltip_editObject:Qye,ra_tooltip_editState:eve,ra_tooltip_from:tve,ra_tooltip_lc:rve,ra_tooltip_quality:nve,ra_tooltip_ts:ove,ra_tooltip_user:ave,ra_tooltip_value:sve,"ra_use seconds":"use segundos",ra_val:ive,"ra_via internet":"via internet",ra_warning_every_minute:cve,ra_warning_every_second:lve,sc_cron:uve,sc_date:dve,sc_dates:pve,sc_dow:fve,sc_dows:hve,sc_every:mve,sc_everyN_dates:_ve,sc_everyN_dow:gve,sc_everyN_dows:yve,sc_everyN_hours:vve,sc_everyN_minutes:bve,sc_everyN_months:wve,sc_everyN_seconds:xve,sc_every_dates:Sve,sc_every_dow:kve,sc_every_dows:Cve,sc_every_hours:$ve,sc_every_minutes:Eve,sc_every_months:Tve,sc_every_seconds:Ove,sc_from:Dve,sc_hours:Mve,sc_interval:Nve,sc_intervalBetween:Pve,sc_invalid_cron:Rve,sc_minutes:Ave,sc_months:Ive,sc_once:jve,sc_period:Lve,sc_seconds:zve,sc_simple:Fve,sc_specific:Bve,sc_specific_dates:Wve,sc_specific_dow:Uve,sc_specific_dows:Hve,sc_specific_hours:qve,sc_specific_minutes:Vve,sc_specific_months:Xve,sc_specific_seconds:Gve,sc_time:Jve,sc_to:Yve,sc_wizard:Kve,sch_all:Zve,sch_astroDay:Qve,sch_astroNight:e0e,sch_astro_dawn:t0e,sch_astro_dusk:r0e,sch_astro_goldenHour:n0e,sch_astro_goldenHourEnd:o0e,sch_astro_nadir:a0e,sch_astro_nauticalDawn:s0e,sch_astro_nauticalDusk:i0e,sch_astro_night:c0e,sch_astro_nightEnd:l0e,sch_astro_solarNoon:u0e,sch_astro_sunrise:d0e,sch_astro_sunriseEnd:p0e,sch_astro_sunset:f0e,sch_astro_sunsetStart:h0e,sch_at:m0e,sch_desc_atTime:_0e,sch_desc_everyDay:g0e,sch_desc_everyHour:y0e,sch_desc_everyMinute:v0e,sch_desc_everyMonth:b0e,sch_desc_everyNDay:w0e,sch_desc_everyNHours:x0e,sch_desc_everyNMinutes:S0e,sch_desc_everyNMonths:k0e,sch_desc_everyNWeeks:C0e,sch_desc_everyNYears:$0e,sch_desc_everyWeek:E0e,sch_desc_everyYear:T0e,sch_desc_intervalFromTo:O0e,sch_desc_never:D0e,sch_desc_onDate:M0e,sch_desc_onDates:N0e,sch_desc_onEveryDate:P0e,sch_desc_onMonth:R0e,sch_desc_onMonths:A0e,sch_desc_onWeekday:I0e,sch_desc_onWeekdays:j0e,sch_desc_onWeekends:L0e,sch_desc_onWorkdays:z0e,sch_desc_onceInPast:F0e,sch_desc_once_on:B0e,sch_desc_validFrom:W0e,sch_desc_validFromTo:U0e,sch_desc_validTo:H0e,sch_every:q0e,sch_exactTime:V0e,sch_from:X0e,sch_fromTo:G0e,sch_intervalTime:J0e,sch_invert:Y0e,sch_no_one:K0e,sch_on:Z0e,sch_period:Q0e,sch_periodDaily:ebe,sch_periodDates:tbe,sch_periodDay:rbe,sch_periodEvery:nbe,sch_periodEveryDay:obe,sch_periodEveryMonth:abe,sch_periodEveryWeek:sbe,sch_periodEveryYear:ibe,sch_periodHours:cbe,sch_periodMinutes:lbe,sch_periodMonth:ube,sch_periodMonthly:dbe,sch_periodOnce:pbe,sch_periodSpecificMonths:fbe,sch_periodWeek:hbe,sch_periodWeekdays:mbe,sch_periodWeekend:_be,sch_periodWeekly:gbe,sch_periodWorkdays:ybe,sch_periodYear:vbe,sch_periodYearly:bbe,sch_specificTime:wbe,sch_time:xbe,sch_to:Sbe,sch_valid:kbe,sch_validFrom:Cbe,sch_validTo:$be,sch_wholeDay:Ebe,sch_yearEveryMonth:Tbe},Dbe="toevoegen",Mbe="Annuleer",Nbe="Categorieën",Pbe="Gecontroleerd",Rbe="Verwijderen",Abe="Dichtbij",Ibe="Reclame",jbe="Configureren",Lbe="Verbonden",zbe="Gekopieerd",Fbe="Creëer",Bbe="Bijsnijden",Wbe="Delete",Ube="Verwijderen",Hbe="Weggooien",qbe="Verbinding verbroken",Vbe="Fout",Xbe="Filter",Gbe="Vrijdag",Jbe="Breedtegraad",Ybe="Lengtegraad",Kbe="Bericht",Zbe="Maandag",Qbe="Naam",ewe="Voorwerpen",twe="OK",rwe="Product",nwe="Herhaling",owe="Vervangen",awe="Wortel",swe="Zaterdag",iwe="Sparen",cwe="Geselecteerd",lwe="Staten",uwe="Zondag",dwe="Donderdag",pwe="Tijdstempel",fwe="Dinsdag",hwe="Bijwerken",mwe="Geldig tot",_we="Waarde",gwe="Versie",ywe="Woensdag",vwe="Breedte",bwe="Ja",wwe="verschillend",xwe="Iedereen kan object lezen",Swe="Iedereen kan staat lezen",kwe="Iedereen kan object schrijven",Cwe="Iedereen kan staat schrijven",$we="Groep kan object lezen",Ewe="Groep kan status lezen",Twe="Groep kan object schrijven",Owe="Groep kan staat schrijven",Dwe="Eigenaar kan object lezen",Mwe="Eigenaar kan staat lezen",Nwe="Eigenaar kan object schrijven",Pwe="Eigenaar kan staat schrijven",Rwe="Toetsen",Awe="Veranderd van",Iwe="dichtbij",jwe="Creëer een Booleaanse status",Lwe="Kanaal maken",zwe="Apparaat maken",Fwe="Nummerstatus maken",Bwe="Staat creëren",Wwe="Tekenreeksstatus maken",Uwe="d.",Hwe="Fr",qwe="Mo",Vwe="Za",Xwe="Zo",Gwe="Th",Jwe="Tu",Ywe="Wij",Kwe="Expert modus",Zwe="Alle bestanden",Qwe="Audio",e1e="Code/JSON",t1e="Afbeeldingen",r1e="Tekst",n1e="Video",o1e="Instellingen",a1e="zonder",s1e="Functie",i1e="ID",c1e="Naam",l1e="Rol",u1e="Kamer",d1e="Type",p1e="Ongeldige instellingen",f1e="Laatste wijziging",h1e="plaatselijk",m1e="april",_1e="aug",g1e="dec",y1e="februari",v1e="jan",b1e="jul",w1e="juni",x1e="Mei",S1e="mrt",k1e="nov",C1e="Okt",$1e="sept",E1e="april",T1e="aug",O1e="dec",D1e="februari",M1e="jan",N1e="jul",P1e="juni",R1e="Mei",A1e="mrt",I1e="nov",j1e="Okt",L1e="sept",z1e="geen",F1e="Object veranderd door",B1e="Object voor het laatst gewijzigd om",W1e="Instellingen van andere adapter %s",U1e="Kwaliteitscode",H1e="herhalen",q1e='Om een map te selecteren, houdt u gewoon de toets "shift" ingedrukt door op de map te klikken.',V1e="Staat veranderd door",X1e="Object veranderd van",G1e="Tijdstempel",J1e="Erkende vlag",Y1e="Opmerking",K1e="Kopieer de statuswaarde",Z1e="Aangepaste instellingen",Q1e="Object verwijderen",exe="Object bewerken",txe="Bewerk de statuswaarde",rxe="Van",nxe="Laatst gewijzigd",oxe="Kwaliteit",axe="Tijdstempel",sxe="Gebruiker",ixe="Waarde",cxe="Waarde",lxe="Waarschuwing: De CRON-taak wordt elke minuut uitgevoerd gedurende de opgegeven periode!",uxe="Waarschuwing: De CRON-taak wordt elke seconde uitgevoerd gedurende de opgegeven periode!",dxe="CRON",pxe="Datum",fxe="data",hxe="Dag",mxe="Dag van de week",_xe="elk",gxe="elke N dagen",yxe="elke N-de dag van de week",vxe="elke N dag van de week",bxe="elke N uur",wxe="elke N minuten",xxe="elke N maanden",Sxe="elke N seconden",kxe="elke dag",Cxe="elke dag van de week",$xe="elke dag van de week",Exe="elk uur",Txe="elke minuut",Oxe="elke maand",Dxe="elke seconde",Mxe="Van",Nxe="uren",Pxe="Interval",Rxe="Interval tussen",Axe="Ongeldige CRON",Ixe="Notulen",jxe="maanden",Lxe="Een keer",zxe="Periode",Fxe="seconden",Bxe="Gemakkelijk",Wxe="Specifieke tijd",Uxe="specifieke data",Hxe="specifieke dag(en) van de week",qxe="specifieke dag van weken",Vxe="specifieke uren",Xxe="specifieke minuten",Gxe="specifieke maanden",Jxe="specifieke seconden",Yxe="Tijd",Kxe="Naar",Zxe="tovenaar",Qxe="allemaal",eSe="Astro-dag",tSe="Astro-nacht",rSe="Dageraad",nSe="Schemer",oSe="gouden uur",aSe="Gouden uur einde",sSe="Nadir",iSe="Nautische dageraad",cSe="Nautische schemering",lSe="Nacht",uSe="Nacht einde",dSe="Zonne middag",pSe="zonsopkomst",fSe="Sunrise einde",hSe="Zonsondergang",mSe="Zonsondergang start",_Se="Bij",gSe="op %s",ySe="elke dag",vSe="elk uur",bSe="elke minuut",wSe="elke maand",xSe="elke %s dag",SSe="elke %s uur",kSe="elke %s minuten",CSe="elke %s maanden",$Se="elke %s weken",ESe="elke %s jaar",TSe="elke week",OSe="elk jaar",DSe="van %s tot %s",MSe="nooit",NSe="op %s van %s",PSe="op %s en %s van",RSe="op elke datum van",ASe="%s",ISe="%s en %s",jSe="op %s",LSe="op %s en %s",zSe="in het weekend",FSe="op werkdagen",BSe="zal niet meer worden uitgevoerd, omdat start verleden tijd is",WSe="op %s",USe="van %s",HSe="Uitvoeren van tot",qSe="tot %s",VSe="elk",XSe="Specifieke tijd",GSe="van",JSe="Van naar",YSe="Interval tijd",KSe="omkeren",ZSe="geen",QSe="Aan",eke="Periode",tke="Dagelijks",rke="data",nke="Dag",oke="elk",ake="Elke dag",ske="Elke maand",ike="Elke week",cke="Elk jaar",lke="uren",uke="Notulen",dke="maand",pke="Maandelijks",fke="Een keer",hke="Specifieke maanden",mke="Week",_ke="Doordeweekse dagen",gke="Weekend",yke="Wekelijks",vke="werkdagen",bke="Jaar",wke="jaar-",xke="Specifieke tijd",Ske="Tijd",kke="naar",Cke="Geldig",$ke="van",Eke="naar",Tke="Hele dag",Oke="elke maand",Dke={"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_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:Dbe,"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:Mbe,"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:Nbe,"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:Pbe,ra_Clear:Rbe,"ra_Clear filter":"Filter wissen","ra_Clear icon":"Pictogram wissen","ra_Clone current row":"Kloon de huidige rij",ra_Close:Abe,"ra_Collapse all nodes":"Vouw alle knooppunten samen","ra_Collapse one step node":"Eén niveau samenvouwen",ra_Commercial:Ibe,ra_Configure:jbe,"ra_Configure visible columns":"Configureer zichtbare kolommen","ra_Confirm deletion of %s":"Bevestig het verwijderen van %s",ra_Connected:Lbe,ra_Copied:zbe,"ra_Copied %s":'"%s" gekopieerd',"ra_Copy content":"Inhoud kopiëren",ra_Create:Fbe,"ra_Create alias":"Alias maken","ra_Create folder":"Map aanmaken","ra_Create new folder in %s":"Maak een nieuwe map in %s",ra_Crop:Bbe,"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:Wbe,ra_Delete:Ube,"ra_Delete (no confirm for 5 mins)":"Verwijderen (geen bevestiging gedurende 5 minuten)","ra_Delete current row":"Huidige rij verwijderen","ra_Deselect all":"Deselecteer alles","ra_Device → Channel → State":"Apparaat → Kanaal → Staat",ra_Discard:Hbe,ra_Disconnected:qbe,"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_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 function":"Bewerkingsfunctie","ra_Edit object field":"Bewerk objectveld","ra_Edit role":"Rol bewerken","ra_Edit room":"Kamer bewerken","ra_Edit value":"Waarde bewerken",ra_Error:Vbe,"ra_Expand all nodes":"Vouw alle knooppunten uit","ra_Expand one step node":"Vouw een niveau uit","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:Xbe,"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:Gbe,"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_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 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:Jbe,"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_Longitude:Ybe,'ra_May not trigger "updateLicenses"':'Activeert mogelijk niet "updateLicenses"',ra_Message:Kbe,ra_Monday:Zbe,"ra_Move down":"Naar beneden verplaatsen","ra_Move up":"Omhoog gaan",ra_Name:Qbe,"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 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_Objects:ewe,ra_Ok:twe,"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 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_Private certificate":"Privé certificaat",ra_Product:rwe,"ra_Public certificate":"Openbaar certificaat","ra_Quality code":"Kwaliteit","ra_Refresh tree":"Vernieuw de boom","ra_Reload files":"Laad bestanden opnieuw",ra_Repeat:nwe,ra_Replace:owe,"ra_Request timed out":"Verzoek verlopen","ra_Restrict to folder":"Beperken tot map",ra_Root:awe,ra_Saturday:swe,ra_Save:iwe,"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:cwe,"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_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:lwe,"ra_Suitable license not found in license manager":"Geschikte licentie niet gevonden in licentiebeheer",ra_Sunday:uwe,"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:dwe,ra_Timestamp:pwe,"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:fwe,"ra_Unknown error":"Onbekende fout","ra_Unknown error!":"Onbekende fout!",ra_Update:hwe,"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:mwe,ra_Value:_we,ra_Version:gwe,"ra_View file":"Bestand bekijken","ra_View: %s":"Bekijk: %s",ra_Wednesday:ywe,ra_Width:vwe,ra_Yes:bwe,"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___different__:wwe,ra_aclEveryone_read_object:xwe,ra_aclEveryone_read_state:Swe,ra_aclEveryone_write_object:kwe,ra_aclEveryone_write_state:Cwe,ra_aclGroup_read_object:$we,ra_aclGroup_read_state:Ewe,ra_aclGroup_write_object:Twe,ra_aclGroup_write_state:Owe,ra_aclOwner_read_object:Dwe,ra_aclOwner_read_state:Mwe,ra_aclOwner_write_object:Nwe,ra_aclOwner_write_state:Pwe,ra_buttons:Rwe,ra_changedFrom:Awe,ra_close:Iwe,ra_create_boolean_state:jwe,ra_create_channel:Lwe,ra_create_device:zwe,ra_create_number_state:Fwe,ra_create_state:Bwe,ra_create_string_state:Wwe,ra_daysShortText:Uwe,ra_dow_Fr:Hwe,ra_dow_Mo:qwe,ra_dow_Sa:Vwe,ra_dow_Su:Xwe,ra_dow_Th:Gwe,ra_dow_Tu:Jwe,ra_dow_We:Ywe,ra_expertMode:Kwe,ra_fileType_all:Zwe,ra_fileType_audio:Qwe,ra_fileType_code:e1e,ra_fileType_images:t1e,ra_fileType_txt:r1e,ra_fileType_video:n1e,"ra_fileType_video,":"Video",ra_filter_customs:o1e,ra_filter_customs_without:a1e,ra_filter_func:s1e,ra_filter_id:i1e,ra_filter_name:c1e,ra_filter_role:l1e,ra_filter_room:u1e,ra_filter_type:d1e,"ra_import data from %s file":"Importeer gegevens uit %s bestand",ra_invalidConfig:p1e,ra_lastChange:f1e,ra_locally:h1e,ra_month_Apr:m1e,ra_month_Aug:_1e,ra_month_Dec:g1e,ra_month_Feb:y1e,ra_month_Jan:v1e,ra_month_Jul:b1e,ra_month_Jun:w1e,ra_month_Mai:x1e,ra_month_Mar:S1e,ra_month_Nov:k1e,ra_month_Oct:C1e,ra_month_Sep:$1e,ra_months_Apr:E1e,ra_months_Aug:T1e,ra_months_Dec:O1e,ra_months_Feb:D1e,ra_months_Jan:M1e,ra_months_Jul:N1e,ra_months_Jun:P1e,ra_months_Mai:R1e,ra_months_Mar:A1e,ra_months_Nov:I1e,ra_months_Oct:j1e,ra_months_Sep:L1e,ra_none:z1e,ra_object_changed_by:F1e,ra_object_changed_by_user:B1e,ra_otherConfig:W1e,ra_qualityCode:U1e,ra_repeat:H1e,ra_select_folder_hint:q1e,ra_state_changed_by:V1e,ra_state_changed_from:X1e,ra_timestamp:G1e,ra_tooltip_ack:J1e,ra_tooltip_comment:Y1e,ra_tooltip_copyState:K1e,ra_tooltip_customConfig:Z1e,ra_tooltip_deleteObject:Q1e,ra_tooltip_editObject:exe,ra_tooltip_editState:txe,ra_tooltip_from:rxe,ra_tooltip_lc:nxe,ra_tooltip_quality:oxe,ra_tooltip_ts:axe,ra_tooltip_user:sxe,ra_tooltip_value:ixe,"ra_use seconds":"gebruik seconden",ra_val:cxe,"ra_via internet":"via internet",ra_warning_every_minute:lxe,ra_warning_every_second:uxe,sc_cron:dxe,sc_date:pxe,sc_dates:fxe,sc_dow:hxe,sc_dows:mxe,sc_every:_xe,sc_everyN_dates:gxe,sc_everyN_dow:yxe,sc_everyN_dows:vxe,sc_everyN_hours:bxe,sc_everyN_minutes:wxe,sc_everyN_months:xxe,sc_everyN_seconds:Sxe,sc_every_dates:kxe,sc_every_dow:Cxe,sc_every_dows:$xe,sc_every_hours:Exe,sc_every_minutes:Txe,sc_every_months:Oxe,sc_every_seconds:Dxe,sc_from:Mxe,sc_hours:Nxe,sc_interval:Pxe,sc_intervalBetween:Rxe,sc_invalid_cron:Axe,sc_minutes:Ixe,sc_months:jxe,sc_once:Lxe,sc_period:zxe,sc_seconds:Fxe,sc_simple:Bxe,sc_specific:Wxe,sc_specific_dates:Uxe,sc_specific_dow:Hxe,sc_specific_dows:qxe,sc_specific_hours:Vxe,sc_specific_minutes:Xxe,sc_specific_months:Gxe,sc_specific_seconds:Jxe,sc_time:Yxe,sc_to:Kxe,sc_wizard:Zxe,sch_all:Qxe,sch_astroDay:eSe,sch_astroNight:tSe,sch_astro_dawn:rSe,sch_astro_dusk:nSe,sch_astro_goldenHour:oSe,sch_astro_goldenHourEnd:aSe,sch_astro_nadir:sSe,sch_astro_nauticalDawn:iSe,sch_astro_nauticalDusk:cSe,sch_astro_night:lSe,sch_astro_nightEnd:uSe,sch_astro_solarNoon:dSe,sch_astro_sunrise:pSe,sch_astro_sunriseEnd:fSe,sch_astro_sunset:hSe,sch_astro_sunsetStart:mSe,sch_at:_Se,sch_desc_atTime:gSe,sch_desc_everyDay:ySe,sch_desc_everyHour:vSe,sch_desc_everyMinute:bSe,sch_desc_everyMonth:wSe,sch_desc_everyNDay:xSe,sch_desc_everyNHours:SSe,sch_desc_everyNMinutes:kSe,sch_desc_everyNMonths:CSe,sch_desc_everyNWeeks:$Se,sch_desc_everyNYears:ESe,sch_desc_everyWeek:TSe,sch_desc_everyYear:OSe,sch_desc_intervalFromTo:DSe,sch_desc_never:MSe,sch_desc_onDate:NSe,sch_desc_onDates:PSe,sch_desc_onEveryDate:RSe,sch_desc_onMonth:ASe,sch_desc_onMonths:ISe,sch_desc_onWeekday:jSe,sch_desc_onWeekdays:LSe,sch_desc_onWeekends:zSe,sch_desc_onWorkdays:FSe,sch_desc_onceInPast:BSe,sch_desc_once_on:WSe,sch_desc_validFrom:USe,sch_desc_validFromTo:HSe,sch_desc_validTo:qSe,sch_every:VSe,sch_exactTime:XSe,sch_from:GSe,sch_fromTo:JSe,sch_intervalTime:YSe,sch_invert:KSe,sch_no_one:ZSe,sch_on:QSe,sch_period:eke,sch_periodDaily:tke,sch_periodDates:rke,sch_periodDay:nke,sch_periodEvery:oke,sch_periodEveryDay:ake,sch_periodEveryMonth:ske,sch_periodEveryWeek:ike,sch_periodEveryYear:cke,sch_periodHours:lke,sch_periodMinutes:uke,sch_periodMonth:dke,sch_periodMonthly:pke,sch_periodOnce:fke,sch_periodSpecificMonths:hke,sch_periodWeek:mke,sch_periodWeekdays:_ke,sch_periodWeekend:gke,sch_periodWeekly:yke,sch_periodWorkdays:vke,sch_periodYear:bke,sch_periodYearly:wke,sch_specificTime:xke,sch_time:Ske,sch_to:kke,sch_valid:Cke,sch_validFrom:$ke,sch_validTo:Eke,sch_wholeDay:Tke,sch_yearEveryMonth:Oke},Mke="Ajouter",Nke="Annuler",Pke="Catégories",Rke="Vérifié",Ake="Effacer",Ike="Fermer",jke="Commercial",Lke="Configurer",zke="Lié",Fke="Copié",Bke="Créer",Wke="Recadrer",Uke="Delete",Hke="Supprimer",qke="Jeter",Vke="Débranché",Xke="Erreur",Gke="Filtre",Jke="Vendredi",Yke="Latitude",Kke="Longitude",Zke="Message",Qke="Lundi",eCe="Nom",tCe="Objets",rCe="D'accord",nCe="Produit",oCe="Répéter",aCe="Remplacer",sCe="Racine",iCe="Samedi",cCe="sauver",lCe="Choisi",uCe="États",dCe="Dimanche",pCe="Jeudi",fCe="Horodatage",hCe="Mardi",mCe="Mise à jour",_Ce="Valable jusqu'au",gCe="Valeur",yCe="Version",vCe="Mercredi",bCe="Largeur",wCe="Oui",xCe="différent",SCe="Tout le monde peut lire un objet",kCe="Tout le monde peut lire l'état",CCe="Tout le monde peut écrire un objet",$Ce="Tout le monde peut écrire l'état",ECe="Le groupe peut lire l'objet",TCe="Le groupe peut lire l'état",OCe="Le groupe peut écrire un objet",DCe="Le groupe peut écrire l'état",MCe="Le propriétaire peut lire l'objet",NCe="Le propriétaire peut lire l'état",PCe="Le propriétaire peut écrire un objet",RCe="Le propriétaire peut écrire l'état",ACe="Boutons",ICe="Changé de",jCe="Fermer",LCe="Créer un état booléen",zCe="Créer une chaîne",FCe="Créer un appareil",BCe="Créer un état de numéro",WCe="Créer un état",UCe="Créer un état de chaîne",HCe="j.",qCe="Fr",VCe="Mo",XCe="Sa",GCe="Su",JCe="Th",YCe="Tu",KCe="Nous",ZCe="Mode expert",QCe="Tous les fichiers",e$e="l'audio",t$e="Code/JSON",r$e="Images",n$e="Texte",o$e="Vidéo",a$e="Paramètres",s$e="sans",i$e="Une fonction",c$e="ID",l$e="Prénom",u$e="Rôle",d$e="Pièce",p$e="Type",f$e="Paramètres invalides",h$e="Dernier changement",m$e="localement",_$e="Avr",g$e="Août",y$e="Déc",v$e="Fév",b$e="Jan",w$e="Juil",x$e="Juin",S$e="Mai",k$e="Mar",C$e="Nov",$$e="Oct",E$e="Sep",T$e="Avr",O$e="Août",D$e="Déc",M$e="Fév",N$e="Jan",P$e="Juil",R$e="Juin",A$e="Mai",I$e="Mar",j$e="Nov",L$e="Oct",z$e="Sep",F$e="rien",B$e="Objet modifié par",W$e="Objet modifié pour la dernière fois à",U$e="Paramètres d'un autre adaptateur %s",H$e="Code de qualité",q$e="répéter",V$e='Pour sélectionner un dossier, maintenez simplement la touche "shift" enfoncée en cliquant sur le dossier.',X$e="État modifié par",G$e="Objet changé de",J$e="Horodatage",Y$e="Drapeau reconnu",K$e="Commentaire",Z$e="Copiez la valeur d'état",Q$e="Paramètres personnalisés",eEe="Supprimer un objet",tEe="Modifier l'objet",rEe="Modifier la valeur d'état",nEe="De",oEe="Dernière modification",aEe="Qualité",sEe="Horodatage",iEe="Utilisateur",cEe="Valeur",lEe="Valeur",uEe="Attention : la tâche CRON s’exécutera toutes les minutes pendant la période spécifiée !",dEe="Attention : la tâche CRON s’exécutera toutes les secondes pendant la période spécifiée !",pEe="CRON",fEe="Date",hEe="Rendez-vous",mEe="Jour",_Ee="Jour de la semaine",gEe="Chaque",yEe="tous les N jours",vEe="chaque Nième jour de la semaine",bEe="tous les N jours de la semaine",wEe="toutes les N heures",xEe="toutes les N minutes",SEe="tous les N mois",kEe="toutes les N secondes",CEe="tous les jours",$Ee="Chaque jour de la semaine",EEe="Chaque jour de la semaine",TEe="Toutes les heures",OEe="chaque minute",DEe="chaque mois",MEe="chaque seconde",NEe="De",PEe="Heures",REe="Intervalle",AEe="Intervalle entre",IEe="CRON non valide",jEe="Minutes",LEe="mois",zEe="Une fois que",FEe="Période",BEe="Secondes",WEe="Facile",UEe="Temps spécifique",HEe="dates spécifiques",qEe="jour(s) spécifique(s) de la semaine",VEe="jour spécifique de semaines",XEe="heures spécifiques",GEe="minutes spécifiques",JEe="mois spécifiques",YEe="secondes spécifiques",KEe="Temps",ZEe="À",QEe="sorcier",eTe="tout",tTe="Journée astronomique",rTe="Nuit astronomique",nTe="Aube",oTe="Crépuscule",aTe="Heure d'or",sTe="Fin de l'heure d'or",iTe="Nadir",cTe="Aube nautique",lTe="Crépuscule nautique",uTe="Nuit",dTe="Fin de nuit",pTe="Midi solaire",fTe="lever du soleil",hTe="Fin du lever du soleil",mTe="Le coucher du soleil",_Te="Coucher du soleil",gTe="à",yTe="à %s",vTe="tous les jours",bTe="Toutes les heures",wTe="chaque minute",xTe="chaque mois",STe="chaque %s jour",kTe="chaque %s heures",CTe="toutes les %s minutes",$Te="tous les %s mois",ETe="chaque %s semaines",TTe="tous les %s ans",OTe="toutes les semaines",DTe="chaque année",MTe="de %s à %s",NTe="jamais",PTe="sur %s de %s",RTe="sur %s et %s de",ATe="à chaque date de",ITe="%s",jTe="%s et %s",LTe="sur %s",zTe="sur %s et %s",FTe="les weekends",BTe="les jours ouvrables",WTe="ne sera plus exécuté, car start est dans le passé",UTe="sur %s",HTe="de %s",qTe="Exécuter de à",VTe="à %s",XTe="chaque",GTe="Temps spécifique",JTe="de",YTe="De à",KTe="Temps d'interval",ZTe="inverser",QTe="aucun",e2e="sur",t2e="Période",r2e="du quotidien",n2e="Rendez-vous",o2e="journée",a2e="Chaque",s2e="Tous les jours",i2e="Chaque mois",c2e="Toutes les semaines",l2e="Chaque année",u2e="Heures",d2e="Minutes",p2e="mois",f2e="Mensuel",h2e="Une fois que",m2e="Mois spécifiques",_2e="La semaine",g2e="Jours de la semaine",y2e="Weekend",v2e="Hebdomadaire",b2e="Jours ouvrables",w2e="Année",x2e="Annuel",S2e="Temps spécifique",k2e="Temps",C2e="à",$2e="Valide",E2e="de",T2e="à",O2e="Toute la journée",D2e="chaque mois",M2e={"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_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:Mke,"ra_Append %s entries or replace existing?":"Ajouter %s entrées ou remplacer l'existant ?","ra_Append or replace?":"Ajouter ou remplacer ?","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:Nke,"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 : 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 : %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:Pke,"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:Rke,ra_Clear:Ake,"ra_Clear filter":"Effacer le filtre","ra_Clear icon":"Effacer l'icône","ra_Clone current row":"Cloner la ligne actuelle",ra_Close:Ike,"ra_Collapse all nodes":"Réduire tous les nœuds","ra_Collapse one step node":"Réduire d'un niveau",ra_Commercial:jke,ra_Configure:Lke,"ra_Configure visible columns":"Configurer les colonnes visibles","ra_Confirm deletion of %s":"Confirmer la suppression de %s",ra_Connected:zke,ra_Copied:Fke,"ra_Copied %s":'"%s" copié',"ra_Copy content":"Copier le contenu",ra_Create:Bke,"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:Wke,"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:Uke,ra_Delete:Hke,"ra_Delete (no confirm for 5 mins)":"Supprimer (pas de confirmation pendant 5 minutes)","ra_Delete current row":"Supprimer la ligne actuelle","ra_Deselect all":"Tout déselectionner","ra_Device → Channel → State":"Appareil → Canal → État",ra_Discard:qke,ra_Disconnected:Vke,"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_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 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_Error:Xke,"ra_Expand all nodes":"Développer tous les nœuds","ra_Expand one step node":"Développer un niveau","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:Gke,"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:Jke,"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_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 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:Yke,"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 ?","ra_Listen on all IPs":"Écoutez sur toutes les adresses IP","ra_Load configuration from file":"Charger la configuration à partir du fichier",ra_Longitude:Kke,'ra_May not trigger "updateLicenses"':'Peut ne pas déclencher "updateLicences"',ra_Message:Zke,ra_Monday:Qke,"ra_Move down":"Descendre","ra_Move up":"Déplacer vers le haut",ra_Name:eCe,"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 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_Objects:tCe,ra_Ok:rCe,"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 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_Private certificate":"Certificat privé",ra_Product:nCe,"ra_Public certificate":"Certificat public","ra_Quality code":"Qualité","ra_Refresh tree":"Rafraîchir l'arborescence","ra_Reload files":"Recharger les fichiers",ra_Repeat:oCe,ra_Replace:aCe,"ra_Request timed out":"La demande a expiré","ra_Restrict to folder":"Restreindre au dossier",ra_Root:sCe,ra_Saturday:iCe,ra_Save:cCe,"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:lCe,"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_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:uCe,"ra_Suitable license not found in license manager":"Licence appropriée introuvable dans le gestionnaire de licences",ra_Sunday:dCe,"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:pCe,ra_Timestamp:fCe,"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:hCe,"ra_Unknown error":"Erreur inconnue","ra_Unknown error!":"Erreur inconnue!",ra_Update:mCe,"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:_Ce,ra_Value:gCe,ra_Version:yCe,"ra_View file":"Voir la fiche","ra_View: %s":"Affichage : %s",ra_Wednesday:vCe,ra_Width:bCe,ra_Yes:wCe,"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___different__:xCe,ra_aclEveryone_read_object:SCe,ra_aclEveryone_read_state:kCe,ra_aclEveryone_write_object:CCe,ra_aclEveryone_write_state:$Ce,ra_aclGroup_read_object:ECe,ra_aclGroup_read_state:TCe,ra_aclGroup_write_object:OCe,ra_aclGroup_write_state:DCe,ra_aclOwner_read_object:MCe,ra_aclOwner_read_state:NCe,ra_aclOwner_write_object:PCe,ra_aclOwner_write_state:RCe,ra_buttons:ACe,ra_changedFrom:ICe,ra_close:jCe,ra_create_boolean_state:LCe,ra_create_channel:zCe,ra_create_device:FCe,ra_create_number_state:BCe,ra_create_state:WCe,ra_create_string_state:UCe,ra_daysShortText:HCe,ra_dow_Fr:qCe,ra_dow_Mo:VCe,ra_dow_Sa:XCe,ra_dow_Su:GCe,ra_dow_Th:JCe,ra_dow_Tu:YCe,ra_dow_We:KCe,ra_expertMode:ZCe,ra_fileType_all:QCe,ra_fileType_audio:e$e,ra_fileType_code:t$e,ra_fileType_images:r$e,ra_fileType_txt:n$e,ra_fileType_video:o$e,"ra_fileType_video,":"Vidéo",ra_filter_customs:a$e,ra_filter_customs_without:s$e,ra_filter_func:i$e,ra_filter_id:c$e,ra_filter_name:l$e,ra_filter_role:u$e,ra_filter_room:d$e,ra_filter_type:p$e,"ra_import data from %s file":"Importer des données à partir du fichier %s",ra_invalidConfig:f$e,ra_lastChange:h$e,ra_locally:m$e,ra_month_Apr:_$e,ra_month_Aug:g$e,ra_month_Dec:y$e,ra_month_Feb:v$e,ra_month_Jan:b$e,ra_month_Jul:w$e,ra_month_Jun:x$e,ra_month_Mai:S$e,ra_month_Mar:k$e,ra_month_Nov:C$e,ra_month_Oct:$$e,ra_month_Sep:E$e,ra_months_Apr:T$e,ra_months_Aug:O$e,ra_months_Dec:D$e,ra_months_Feb:M$e,ra_months_Jan:N$e,ra_months_Jul:P$e,ra_months_Jun:R$e,ra_months_Mai:A$e,ra_months_Mar:I$e,ra_months_Nov:j$e,ra_months_Oct:L$e,ra_months_Sep:z$e,ra_none:F$e,ra_object_changed_by:B$e,ra_object_changed_by_user:W$e,ra_otherConfig:U$e,ra_qualityCode:H$e,ra_repeat:q$e,ra_select_folder_hint:V$e,ra_state_changed_by:X$e,ra_state_changed_from:G$e,ra_timestamp:J$e,ra_tooltip_ack:Y$e,ra_tooltip_comment:K$e,ra_tooltip_copyState:Z$e,ra_tooltip_customConfig:Q$e,ra_tooltip_deleteObject:eEe,ra_tooltip_editObject:tEe,ra_tooltip_editState:rEe,ra_tooltip_from:nEe,ra_tooltip_lc:oEe,ra_tooltip_quality:aEe,ra_tooltip_ts:sEe,ra_tooltip_user:iEe,ra_tooltip_value:cEe,"ra_use seconds":"utiliser les secondes",ra_val:lEe,"ra_via internet":"par Internet",ra_warning_every_minute:uEe,ra_warning_every_second:dEe,sc_cron:pEe,sc_date:fEe,sc_dates:hEe,sc_dow:mEe,sc_dows:_Ee,sc_every:gEe,sc_everyN_dates:yEe,sc_everyN_dow:vEe,sc_everyN_dows:bEe,sc_everyN_hours:wEe,sc_everyN_minutes:xEe,sc_everyN_months:SEe,sc_everyN_seconds:kEe,sc_every_dates:CEe,sc_every_dow:$Ee,sc_every_dows:EEe,sc_every_hours:TEe,sc_every_minutes:OEe,sc_every_months:DEe,sc_every_seconds:MEe,sc_from:NEe,sc_hours:PEe,sc_interval:REe,sc_intervalBetween:AEe,sc_invalid_cron:IEe,sc_minutes:jEe,sc_months:LEe,sc_once:zEe,sc_period:FEe,sc_seconds:BEe,sc_simple:WEe,sc_specific:UEe,sc_specific_dates:HEe,sc_specific_dow:qEe,sc_specific_dows:VEe,sc_specific_hours:XEe,sc_specific_minutes:GEe,sc_specific_months:JEe,sc_specific_seconds:YEe,sc_time:KEe,sc_to:ZEe,sc_wizard:QEe,sch_all:eTe,sch_astroDay:tTe,sch_astroNight:rTe,sch_astro_dawn:nTe,sch_astro_dusk:oTe,sch_astro_goldenHour:aTe,sch_astro_goldenHourEnd:sTe,sch_astro_nadir:iTe,sch_astro_nauticalDawn:cTe,sch_astro_nauticalDusk:lTe,sch_astro_night:uTe,sch_astro_nightEnd:dTe,sch_astro_solarNoon:pTe,sch_astro_sunrise:fTe,sch_astro_sunriseEnd:hTe,sch_astro_sunset:mTe,sch_astro_sunsetStart:_Te,sch_at:gTe,sch_desc_atTime:yTe,sch_desc_everyDay:vTe,sch_desc_everyHour:bTe,sch_desc_everyMinute:wTe,sch_desc_everyMonth:xTe,sch_desc_everyNDay:STe,sch_desc_everyNHours:kTe,sch_desc_everyNMinutes:CTe,sch_desc_everyNMonths:$Te,sch_desc_everyNWeeks:ETe,sch_desc_everyNYears:TTe,sch_desc_everyWeek:OTe,sch_desc_everyYear:DTe,sch_desc_intervalFromTo:MTe,sch_desc_never:NTe,sch_desc_onDate:PTe,sch_desc_onDates:RTe,sch_desc_onEveryDate:ATe,sch_desc_onMonth:ITe,sch_desc_onMonths:jTe,sch_desc_onWeekday:LTe,sch_desc_onWeekdays:zTe,sch_desc_onWeekends:FTe,sch_desc_onWorkdays:BTe,sch_desc_onceInPast:WTe,sch_desc_once_on:UTe,sch_desc_validFrom:HTe,sch_desc_validFromTo:qTe,sch_desc_validTo:VTe,sch_every:XTe,sch_exactTime:GTe,sch_from:JTe,sch_fromTo:YTe,sch_intervalTime:KTe,sch_invert:ZTe,sch_no_one:QTe,sch_on:e2e,sch_period:t2e,sch_periodDaily:r2e,sch_periodDates:n2e,sch_periodDay:o2e,sch_periodEvery:a2e,sch_periodEveryDay:s2e,sch_periodEveryMonth:i2e,sch_periodEveryWeek:c2e,sch_periodEveryYear:l2e,sch_periodHours:u2e,sch_periodMinutes:d2e,sch_periodMonth:p2e,sch_periodMonthly:f2e,sch_periodOnce:h2e,sch_periodSpecificMonths:m2e,sch_periodWeek:_2e,sch_periodWeekdays:g2e,sch_periodWeekend:y2e,sch_periodWeekly:v2e,sch_periodWorkdays:b2e,sch_periodYear:w2e,sch_periodYearly:x2e,sch_specificTime:S2e,sch_time:k2e,sch_to:C2e,sch_valid:$2e,sch_validFrom:E2e,sch_validTo:T2e,sch_wholeDay:O2e,sch_yearEveryMonth:D2e},N2e="Aggiungere",P2e="Annulla",R2e="Categorie",A2e="Controllato",I2e="Elimina",j2e="Vicino",L2e="Commerciale",z2e="Configura",F2e="Collegato",B2e="Copiato",W2e="Creare",U2e="Raccolto",H2e="Delete",q2e="Elimina",V2e="Scartare",X2e="Disconnesso",G2e="Errore",J2e="Filtro",Y2e="Venerdì",K2e="Latitudine",Z2e="Longitudine",Q2e="Messaggio",eOe="Lunedi",tOe="Nome",rOe="Oggetti",nOe="Ok",oOe="Prodotto",aOe="Ripetere",sOe="Sostituire",iOe="Radice",cOe="Sabato",lOe="Salva",uOe="Selezionato",dOe="stati",pOe="Domenica",fOe="Giovedì",hOe="Timestamp",mOe="Martedì",_Oe="Aggiornare",gOe="Valido fino a",yOe="Valore",vOe="Versione",bOe="Mercoledì",wOe="Larghezza",xOe="SÌ",SOe="diverso",kOe="Tutti possono leggere gli oggetti",COe="Tutti possono leggere lo stato",$Oe="Tutti possono scrivere oggetti",EOe="Tutti possono scrivere stato",TOe="Il gruppo può leggere l'oggetto",OOe="Il gruppo può leggere lo stato",DOe="Il gruppo può scrivere l'oggetto",MOe="Il gruppo può scrivere lo stato",NOe="Il proprietario può leggere l'oggetto",POe="Il proprietario può leggere lo stato",ROe="Il proprietario può scrivere l'oggetto",AOe="Il proprietario può scrivere lo stato",IOe="Bottoni",jOe="Cambiato da",LOe="vicino",zOe="Crea uno stato booleano",FOe="Crea canale",BOe="Crea dispositivo",WOe="Crea lo stato del numero",UOe="Crea stato",HOe="Crea lo stato della stringa",qOe="g.",VOe="fr",XOe="momento",GOe="Sa",JOe="su",YOe="th",KOe="Tu",ZOe="Noi",QOe="Modalità esperto",eDe="Tutti i files",tDe="Audio",rDe="Codice/JSON",nDe="immagini",oDe="Testo",aDe="video",sDe="impostazioni",iDe="senza",cDe="Funzione",lDe="ID",uDe="Nome",dDe="Ruolo",pDe="Camera",fDe="genere",hDe="Impostazioni non valide",mDe="Ultima modifica",_De="localmente",gDe="apr",yDe="agosto",vDe="Dic",bDe="febbraio",wDe="gen",xDe="lug",SDe="giu",kDe="Mai",CDe="marzo",$De="nov",EDe="ottobre",TDe="Sett",ODe="apr",DDe="agosto",MDe="Dic",NDe="febbraio",PDe="gen",RDe="lug",ADe="giu",IDe="Mai",jDe="marzo",LDe="nov",zDe="ottobre",FDe="Sett",BDe="nessuna",WDe="Oggetto modificato da",UDe="L'oggetto è stato modificato l'ultima volta alle",HDe="Impostazioni dall'altro adattatore %s",qDe="Codice di qualità",VDe="ripetere",XDe='Per selezionare la cartella, basta tenere premuto il tasto "shift" facendo clic sulla cartella.',GDe="Stato cambiato da",JDe="Oggetto cambiato da",YDe="Timestamp",KDe="Bandiera riconosciuta",ZDe="Commento",QDe="Copia il valore dello stato",eMe="Impostazioni personalizzate",tMe="Elimina oggetto",rMe="Modifica oggetto",nMe="Modifica il valore dello stato",oMe="A partire dal",aMe="Ultima modifica",sMe="Qualità",iMe="Data e ora",cMe="Utente",lMe="Valore",uMe="Valore",dMe="Attenzione: il processo CRON verrà eseguito ogni minuto durante il periodo specificato!",pMe="Attenzione: il processo CRON verrà eseguito ogni secondo durante il periodo specificato!",fMe="CRON",hMe="Data",mMe="Date",_Me="Giorno",gMe="Giorno della settimana",yMe="Ogni",vMe="ogni N giorni",bMe="ogni Nesimo giorno della settimana",wMe="ogni N giorno della settimana",xMe="ogni N ore",SMe="ogni N minuti",kMe="ogni N mesi",CMe="ogni N secondi",$Me="ogni giorno",EMe="Tutti i giorni della settimana",TMe="Tutti i giorni della settimana",OMe="ogni ora",DMe="ogni minuto",MMe="ogni mese",NMe="ogni secondo",PMe="A partire dal",RMe="Ore",AMe="Intervallo",IMe="Intervallo tra",jMe="CRON non valido",LMe="Minuti",zMe="mesi",FMe="Una volta",BMe="Periodo",WMe="secondi",UMe="Semplice",HMe="Orario preciso",qMe="date specifiche",VMe="giorno/i specifico/i della settimana",XMe="giorno specifico delle settimane",GMe="orari specifici",JMe="minuti specifici",YMe="mesi specifici",KMe="secondi specifici",ZMe="Tempo",QMe="Per",eNe="procedura guidata",tNe="tutti",rNe="Astro day",nNe="Astro night",oNe="Alba",aNe="Crepuscolo",sNe="Ora d'oro",iNe="Fine dell'ora d'oro",cNe="Nadir",lNe="Alba nautica",uNe="Crepuscolo nautico",dNe="Notte",pNe="Fine della notte",fNe="Mezzogiorno solare",hNe="Alba",mNe="Fine dell'alba",_Ne="Tramonto",gNe="Inizio del tramonto",yNe="a",vNe="a %s",bNe="ogni giorno",wNe="ogni ora",xNe="ogni minuto",SNe="ogni mese",kNe="ogni %s giorno",CNe="ogni %s ore",$Ne="ogni %s minuti",ENe="ogni %s mesi",TNe="ogni %s settimane",ONe="ogni %s anni",DNe="ogni settimana",MNe="ogni anno",NNe="da %s a %s",PNe="mai",RNe="su %s di %s",ANe="su %s e %s di",INe="in ogni data di",jNe="%s",LNe="%s e %s",zNe="su %s",FNe="su %s e %s",BNe="nei finesettimana",WNe="nei giorni lavorativi",UNe="non verrà più eseguito, perché start è nel passato",HNe="su %s",qNe="da %s",VNe="Eseguire da a",XNe="a %s",GNe="ogni",JNe="Orario preciso",YNe="a partire dal",KNe="Da A",ZNe="Intervallo di tempo",QNe="invertire",ePe="nessuna",tPe="sopra",rPe="Periodo",nPe="Quotidiano",oPe="Date",aPe="Giorno",sPe="Ogni",iPe="Ogni giorno",cPe="Ogni mese",lPe="Ogni settimana",uPe="Ogni anno",dPe="Ore",pPe="Minuti",fPe="mese",hPe="Mensile",mPe="Una volta",_Pe="Mesi specifici",gPe="Settimana",yPe="Giorni della settimana",vPe="Fine settimana",bPe="settimanalmente",wPe="giorni feriali",xPe="Anno",SPe="Annuale",kPe="Orario preciso",CPe="Tempo",$Pe="per",EPe="Valido",TPe="a partire dal",OPe="per",DPe="Giorno intero",MPe="ogni mese",NPe={"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_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:N2e,"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:P2e,"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:R2e,"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:A2e,ra_Clear:I2e,"ra_Clear filter":"Filtro pulito","ra_Clear icon":"Cancella icona","ra_Clone current row":"Clona riga corrente",ra_Close:j2e,"ra_Collapse all nodes":"Comprimi tutti i nodi","ra_Collapse one step node":"Comprimi un livello",ra_Commercial:L2e,ra_Configure:z2e,"ra_Configure visible columns":"Configura colonne visibili","ra_Confirm deletion of %s":"Conferma l'eliminazione di %s",ra_Connected:F2e,ra_Copied:B2e,"ra_Copied %s":'"%s" copiato',"ra_Copy content":"Copia contenuto",ra_Create:W2e,"ra_Create alias":"Crea alias","ra_Create folder":"Creare una cartella","ra_Create new folder in %s":"Crea nuova cartella in %s",ra_Crop:U2e,"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:H2e,ra_Delete:q2e,"ra_Delete (no confirm for 5 mins)":"Elimina (nessuna conferma per 5 minuti)","ra_Delete current row":"Elimina la riga corrente","ra_Deselect all":"Deseleziona tutto","ra_Device → Channel → State":"Dispositivo → Canale → Stato",ra_Discard:V2e,ra_Disconnected:X2e,"ra_Do not export values of states":"Non esportare i valori degli stati","ra_Do not use let's encrypt":"Non utilizzare crittografiamo","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 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_Error:G2e,"ra_Expand all nodes":"Espandi tutti i nodi","ra_Expand one step node":"Espandi un livello","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:J2e,"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:Y2e,"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_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 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:K2e,"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_Longitude:Z2e,'ra_May not trigger "updateLicenses"':'Potrebbe non attivare "updateLicenses"',ra_Message:Q2e,ra_Monday:eOe,"ra_Move down":"Abbassati","ra_Move up":"Andare avanti",ra_Name:tOe,"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 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_Objects:rOe,ra_Ok:nOe,"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 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_Private certificate":"Certificato privato",ra_Product:oOe,"ra_Public certificate":"Certificato pubblico","ra_Quality code":"Qualità","ra_Refresh tree":"Aggiorna l'albero","ra_Reload files":"Ricarica i file",ra_Repeat:aOe,ra_Replace:sOe,"ra_Request timed out":"Tempo scaduto per la richiesta","ra_Restrict to folder":"Limita alla cartella",ra_Root:iOe,ra_Saturday:cOe,ra_Save:lOe,"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:uOe,"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_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:dOe,"ra_Suitable license not found in license manager":"Licenza adatta non trovata nel gestore delle licenze",ra_Sunday:pOe,"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:fOe,ra_Timestamp:hOe,"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:mOe,"ra_Unknown error":"Errore sconosciuto","ra_Unknown error!":"Errore sconosciuto!",ra_Update:_Oe,"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:gOe,ra_Value:yOe,ra_Version:vOe,"ra_View file":"Vedi il file","ra_View: %s":"Visualizza: %s",ra_Wednesday:bOe,ra_Width:wOe,ra_Yes:xOe,"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___different__:SOe,ra_aclEveryone_read_object:kOe,ra_aclEveryone_read_state:COe,ra_aclEveryone_write_object:$Oe,ra_aclEveryone_write_state:EOe,ra_aclGroup_read_object:TOe,ra_aclGroup_read_state:OOe,ra_aclGroup_write_object:DOe,ra_aclGroup_write_state:MOe,ra_aclOwner_read_object:NOe,ra_aclOwner_read_state:POe,ra_aclOwner_write_object:ROe,ra_aclOwner_write_state:AOe,ra_buttons:IOe,ra_changedFrom:jOe,ra_close:LOe,ra_create_boolean_state:zOe,ra_create_channel:FOe,ra_create_device:BOe,ra_create_number_state:WOe,ra_create_state:UOe,ra_create_string_state:HOe,ra_daysShortText:qOe,ra_dow_Fr:VOe,ra_dow_Mo:XOe,ra_dow_Sa:GOe,ra_dow_Su:JOe,ra_dow_Th:YOe,ra_dow_Tu:KOe,ra_dow_We:ZOe,ra_expertMode:QOe,ra_fileType_all:eDe,ra_fileType_audio:tDe,ra_fileType_code:rDe,ra_fileType_images:nDe,ra_fileType_txt:oDe,ra_fileType_video:aDe,"ra_fileType_video,":"video",ra_filter_customs:sDe,ra_filter_customs_without:iDe,ra_filter_func:cDe,ra_filter_id:lDe,ra_filter_name:uDe,ra_filter_role:dDe,ra_filter_room:pDe,ra_filter_type:fDe,"ra_import data from %s file":"Importa dati dal file %s",ra_invalidConfig:hDe,ra_lastChange:mDe,ra_locally:_De,ra_month_Apr:gDe,ra_month_Aug:yDe,ra_month_Dec:vDe,ra_month_Feb:bDe,ra_month_Jan:wDe,ra_month_Jul:xDe,ra_month_Jun:SDe,ra_month_Mai:kDe,ra_month_Mar:CDe,ra_month_Nov:$De,ra_month_Oct:EDe,ra_month_Sep:TDe,ra_months_Apr:ODe,ra_months_Aug:DDe,ra_months_Dec:MDe,ra_months_Feb:NDe,ra_months_Jan:PDe,ra_months_Jul:RDe,ra_months_Jun:ADe,ra_months_Mai:IDe,ra_months_Mar:jDe,ra_months_Nov:LDe,ra_months_Oct:zDe,ra_months_Sep:FDe,ra_none:BDe,ra_object_changed_by:WDe,ra_object_changed_by_user:UDe,ra_otherConfig:HDe,ra_qualityCode:qDe,ra_repeat:VDe,ra_select_folder_hint:XDe,ra_state_changed_by:GDe,ra_state_changed_from:JDe,ra_timestamp:YDe,ra_tooltip_ack:KDe,ra_tooltip_comment:ZDe,ra_tooltip_copyState:QDe,ra_tooltip_customConfig:eMe,ra_tooltip_deleteObject:tMe,ra_tooltip_editObject:rMe,ra_tooltip_editState:nMe,ra_tooltip_from:oMe,ra_tooltip_lc:aMe,ra_tooltip_quality:sMe,ra_tooltip_ts:iMe,ra_tooltip_user:cMe,ra_tooltip_value:lMe,"ra_use seconds":"usa i secondi",ra_val:uMe,"ra_via internet":"attraverso internet",ra_warning_every_minute:dMe,ra_warning_every_second:pMe,sc_cron:fMe,sc_date:hMe,sc_dates:mMe,sc_dow:_Me,sc_dows:gMe,sc_every:yMe,sc_everyN_dates:vMe,sc_everyN_dow:bMe,sc_everyN_dows:wMe,sc_everyN_hours:xMe,sc_everyN_minutes:SMe,sc_everyN_months:kMe,sc_everyN_seconds:CMe,sc_every_dates:$Me,sc_every_dow:EMe,sc_every_dows:TMe,sc_every_hours:OMe,sc_every_minutes:DMe,sc_every_months:MMe,sc_every_seconds:NMe,sc_from:PMe,sc_hours:RMe,sc_interval:AMe,sc_intervalBetween:IMe,sc_invalid_cron:jMe,sc_minutes:LMe,sc_months:zMe,sc_once:FMe,sc_period:BMe,sc_seconds:WMe,sc_simple:UMe,sc_specific:HMe,sc_specific_dates:qMe,sc_specific_dow:VMe,sc_specific_dows:XMe,sc_specific_hours:GMe,sc_specific_minutes:JMe,sc_specific_months:YMe,sc_specific_seconds:KMe,sc_time:ZMe,sc_to:QMe,sc_wizard:eNe,sch_all:tNe,sch_astroDay:rNe,sch_astroNight:nNe,sch_astro_dawn:oNe,sch_astro_dusk:aNe,sch_astro_goldenHour:sNe,sch_astro_goldenHourEnd:iNe,sch_astro_nadir:cNe,sch_astro_nauticalDawn:lNe,sch_astro_nauticalDusk:uNe,sch_astro_night:dNe,sch_astro_nightEnd:pNe,sch_astro_solarNoon:fNe,sch_astro_sunrise:hNe,sch_astro_sunriseEnd:mNe,sch_astro_sunset:_Ne,sch_astro_sunsetStart:gNe,sch_at:yNe,sch_desc_atTime:vNe,sch_desc_everyDay:bNe,sch_desc_everyHour:wNe,sch_desc_everyMinute:xNe,sch_desc_everyMonth:SNe,sch_desc_everyNDay:kNe,sch_desc_everyNHours:CNe,sch_desc_everyNMinutes:$Ne,sch_desc_everyNMonths:ENe,sch_desc_everyNWeeks:TNe,sch_desc_everyNYears:ONe,sch_desc_everyWeek:DNe,sch_desc_everyYear:MNe,sch_desc_intervalFromTo:NNe,sch_desc_never:PNe,sch_desc_onDate:RNe,sch_desc_onDates:ANe,sch_desc_onEveryDate:INe,sch_desc_onMonth:jNe,sch_desc_onMonths:LNe,sch_desc_onWeekday:zNe,sch_desc_onWeekdays:FNe,sch_desc_onWeekends:BNe,sch_desc_onWorkdays:WNe,sch_desc_onceInPast:UNe,sch_desc_once_on:HNe,sch_desc_validFrom:qNe,sch_desc_validFromTo:VNe,sch_desc_validTo:XNe,sch_every:GNe,sch_exactTime:JNe,sch_from:YNe,sch_fromTo:KNe,sch_intervalTime:ZNe,sch_invert:QNe,sch_no_one:ePe,sch_on:tPe,sch_period:rPe,sch_periodDaily:nPe,sch_periodDates:oPe,sch_periodDay:aPe,sch_periodEvery:sPe,sch_periodEveryDay:iPe,sch_periodEveryMonth:cPe,sch_periodEveryWeek:lPe,sch_periodEveryYear:uPe,sch_periodHours:dPe,sch_periodMinutes:pPe,sch_periodMonth:fPe,sch_periodMonthly:hPe,sch_periodOnce:mPe,sch_periodSpecificMonths:_Pe,sch_periodWeek:gPe,sch_periodWeekdays:yPe,sch_periodWeekend:vPe,sch_periodWeekly:bPe,sch_periodWorkdays:wPe,sch_periodYear:xPe,sch_periodYearly:SPe,sch_specificTime:kPe,sch_time:CPe,sch_to:$Pe,sch_valid:EPe,sch_validFrom:TPe,sch_validTo:OPe,sch_wholeDay:DPe,sch_yearEveryMonth:MPe},PPe="Adjuntar",RPe="Cancelar",APe="Categorías",IPe="Comprobado",jPe="Borrar",LPe="Cerca",zPe="Comercial",FPe="Configurar",BPe="Conectado",WPe="Copiado",UPe="Crear",HPe="Cultivo",qPe="Delete",VPe="Eliminar",XPe="Desechar",GPe="Desconectado",JPe="Error",YPe="Filtrar",KPe="Viernes",ZPe="Latitud",QPe="Longitud",eRe="Mensaje",tRe="Lunes",rRe="Nombre",nRe="Objetos",oRe="Okay",aRe="Producto",sRe="Repetir",iRe="Reemplazar",cRe="Raíz",lRe="Sábado",uRe="Salvar",dRe="Seleccionado",pRe="Estados",fRe="Domingo",hRe="Jueves",mRe="Marca de tiempo",_Re="Martes",gRe="Actualizar",yRe="Válida hasta",vRe="Valor",bRe="Versión",wRe="Miércoles",xRe="Anchura",SRe="Sí",kRe="diferente",CRe="Todo el mundo puede leer el objeto",$Re="Todos pueden leer el estado",ERe="Todos pueden escribir objetos",TRe="Todos pueden escribir el estado",ORe="El grupo puede leer el objeto",DRe="El grupo puede leer el estado",MRe="El grupo puede escribir un objeto",NRe="El grupo puede escribir el estado",PRe="El propietario puede leer el objeto",RRe="El propietario puede leer el estado",ARe="El propietario puede escribir el objeto",IRe="El propietario puede escribir el estado",jRe="Botones",LRe="Cambiaron desde",zRe="cerrar",FRe="Crear estado booleano",BRe="Crear canal",WRe="Crear dispositivo",URe="Crear estado numérico",HRe="Crear estado",qRe="Crear estado de cadena",VRe="d.",XRe="Fr",GRe="Mes",JRe="Sa",YRe="Su",KRe="Th",ZRe="Tu",QRe="Nosotros",eAe="Modo experto",tAe="Todos los archivos",rAe="Audio",nAe="Código/JSON",oAe="Imágenes",aAe="Texto",sAe="Video",iAe="Configuraciones",cAe="sin",lAe="Función",uAe="ID",dAe="Nombre",pAe="Papel",fAe="Habitación",hAe="Tipo",mAe="Configuraciones inválidas",_Ae="Ultimo cambio",gAe="en la zona",yAe="Abr",vAe="Ago",bAe="Dic",wAe="Feb",xAe="Ene",SAe="Jul",kAe="Jun",CAe="Mai",$Ae="Mar",EAe="Nov",TAe="Oct",OAe="Sep",DAe="Abr",MAe="Ago",NAe="Dic",PAe="Feb",RAe="Ene",AAe="Jul",IAe="Jun",jAe="Mai",LAe="Mar",zAe="Nov",FAe="Oct",BAe="Sep",WAe="ninguno",UAe="Objeto cambiado por",HAe="Objeto cambiado por última vez a las",qAe="Configuraciones de otro adaptador %s",VAe="Código de calidad",XAe="repetir",GAe='Para seleccionar la carpeta, simplemente mantenga presionada la tecla "shift" haciendo clic en la carpeta.',JAe="Estado cambiado por",YAe="Objeto cambiado de",KAe="Marca de tiempo",ZAe="Bandera reconocida",QAe="Comentario",e5e="Copie el valor del estado",t5e="Ajustes personalizados",r5e="Eliminar objeto",n5e="Editar objeto",o5e="Edite el valor del estado",a5e="Desde",s5e="Último cambio",i5e="Calidad",c5e="Sello de tiempo",l5e="Usuario",u5e="Valor",d5e="Valor",p5e="Advertencia: ¡El trabajo CRON se ejecutará cada minuto durante el período especificado!",f5e="Advertencia: ¡El trabajo CRON se ejecutará cada segundo durante el período especificado!",h5e="CRON",m5e="Fecha",_5e="fechas",g5e="Día",y5e="Día de la semana",v5e="Cada",b5e="cada N días",w5e="cada enésimo día de la semana",x5e="cada N día de la semana",S5e="cada N horas",k5e="cada N minutos",C5e="cada N meses",$5e="cada N segundos",E5e="cada día",T5e="Cada día de la semana",O5e="Cada día de la semana",D5e="cada hora",M5e="cada minuto",N5e="cada mes",P5e="cada segundo",R5e="De",A5e="Horas",I5e="Intervalo",j5e="Intervalo entre",L5e="CRON no válido",z5e="Minutos",F5e="meses",B5e="Una vez",W5e="Período",U5e="Segundos",H5e="Sencillo",q5e="Tiempo específico",V5e="fechas especificas",X5e="día(s) específico(s) de la semana",G5e="día específico de semanas",J5e="horas específicas",Y5e="minutos específicos",K5e="meses específicos",Z5e="segundos específicos",Q5e="Hora",eIe="A",tIe="Mago",rIe="todas",nIe="Día astro",oIe="Noche astro",aIe="Amanecer",sIe="Oscuridad",iIe="hora dorada",cIe="Fin de la hora dorada",lIe="Nadir",uIe="Amanecer náutico",dIe="Anochecer náutico",pIe="Noche",fIe="Fin de la noche",hIe="Mediodía solar",mIe="amanecer",_Ie="Fin del amanecer",gIe="Puesta de sol",yIe="Puesta de sol",vIe="a",bIe="en %s",wIe="cada día",xIe="cada hora",SIe="cada minuto",kIe="cada mes",CIe="cada %s días",$Ie="cada %s horas",EIe="cada %s minutos",TIe="cada %s meses",OIe="cada %s semanas",DIe="cada %s años",MIe="cada semana",NIe="todos los años",PIe="de %s a %s",RIe="Nunca",AIe="en %s de %s",IIe="en %s y %s de",jIe="en cada fecha de",LIe="%s",zIe="%s y %s",FIe="en %s",BIe="en %s y %s",WIe="en los fines de semana",UIe="en días laborables",HIe="ya no se ejecutará más, porque el inicio está en el pasado",qIe="en %s",VIe="de %s",XIe="Ejecutar desde hasta",GIe="a %s",JIe="cada",YIe="Tiempo específico",KIe="de",ZIe="De-a",QIe="Tiempo de intervalo",e4e="invertir; poner boca abajo o en la posición opuesta, orden o arreglo; Boca abajo",t4e="ninguna",r4e="en",n4e="Período",o4e="Diario",a4e="fechas",s4e="Día",i4e="Cada",c4e="Cada día",l4e="Cada mes",u4e="Cada semana",d4e="Todos los años",p4e="Horas",f4e="Minutos",h4e="mes",m4e="Mensual",_4e="Una vez",g4e="Meses específicos",y4e="Semana",v4e="Días laborables",b4e="Fin de semana",w4e="Semanal",x4e="Días laborables",S4e="Año",k4e="Anual",C4e="Tiempo específico",$4e="Hora",E4e="a",T4e="Válido",O4e="de",D4e="a",M4e="Todo el dia",N4e="cada mes",P4e={"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_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:PPe,"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:RPe,"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:APe,"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:IPe,ra_Clear:jPe,"ra_Clear filter":"Filtro claro","ra_Clear icon":"Icono claro","ra_Clone current row":"Clonar fila actual",ra_Close:LPe,"ra_Collapse all nodes":"Contraer todos los nodos","ra_Collapse one step node":"Contraer un nivel",ra_Commercial:zPe,ra_Configure:FPe,"ra_Configure visible columns":"Configurar columnas visibles","ra_Confirm deletion of %s":"Confirmar la eliminación de %s",ra_Connected:BPe,ra_Copied:WPe,"ra_Copied %s":'Copiado "%s"',"ra_Copy content":"Copiar contenido",ra_Create:UPe,"ra_Create alias":"Crear alias","ra_Create folder":"Crear carpeta","ra_Create new folder in %s":"Crear nueva carpeta en %s",ra_Crop:HPe,"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:qPe,ra_Delete:VPe,"ra_Delete (no confirm for 5 mins)":"Eliminar (sin confirmar durante 5 minutos)","ra_Delete current row":"Eliminar fila actual","ra_Deselect all":"Deselecciona todo","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:XPe,ra_Disconnected:GPe,"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_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 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_Error:JPe,"ra_Expand all nodes":"Expandir todos los nodos","ra_Expand one step node":"Expandir un nivel","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:YPe,"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:KPe,"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_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 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:ZPe,"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_Longitude:QPe,'ra_May not trigger "updateLicenses"':'No puede activar "updateLicenses"',ra_Message:eRe,ra_Monday:tRe,"ra_Move down":"Mover hacia abajo","ra_Move up":"Ascender",ra_Name:rRe,"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 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_Objects:nRe,ra_Ok:oRe,"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 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_Private certificate":"certificado privado",ra_Product:aRe,"ra_Public certificate":"Certificado público","ra_Quality code":"Calidad","ra_Refresh tree":"Actualizar árbol","ra_Reload files":"Recargar archivos",ra_Repeat:sRe,ra_Replace:iRe,"ra_Request timed out":"Tiempo de espera agotado","ra_Restrict to folder":"Restringir a carpeta",ra_Root:cRe,ra_Saturday:lRe,ra_Save:uRe,"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:dRe,"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_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:pRe,"ra_Suitable license not found in license manager":"Licencia adecuada no encontrada en el administrador de licencias",ra_Sunday:fRe,"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:hRe,ra_Timestamp:mRe,"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:_Re,"ra_Unknown error":"Error desconocido","ra_Unknown error!":"¡Error desconocido!",ra_Update:gRe,"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:yRe,ra_Value:vRe,ra_Version:bRe,"ra_View file":"Ver archivo","ra_View: %s":"Ver: %s",ra_Wednesday:wRe,ra_Width:xRe,ra_Yes:SRe,"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___different__:kRe,ra_aclEveryone_read_object:CRe,ra_aclEveryone_read_state:$Re,ra_aclEveryone_write_object:ERe,ra_aclEveryone_write_state:TRe,ra_aclGroup_read_object:ORe,ra_aclGroup_read_state:DRe,ra_aclGroup_write_object:MRe,ra_aclGroup_write_state:NRe,ra_aclOwner_read_object:PRe,ra_aclOwner_read_state:RRe,ra_aclOwner_write_object:ARe,ra_aclOwner_write_state:IRe,ra_buttons:jRe,ra_changedFrom:LRe,ra_close:zRe,ra_create_boolean_state:FRe,ra_create_channel:BRe,ra_create_device:WRe,ra_create_number_state:URe,ra_create_state:HRe,ra_create_string_state:qRe,ra_daysShortText:VRe,ra_dow_Fr:XRe,ra_dow_Mo:GRe,ra_dow_Sa:JRe,ra_dow_Su:YRe,ra_dow_Th:KRe,ra_dow_Tu:ZRe,ra_dow_We:QRe,ra_expertMode:eAe,ra_fileType_all:tAe,ra_fileType_audio:rAe,ra_fileType_code:nAe,ra_fileType_images:oAe,ra_fileType_txt:aAe,ra_fileType_video:sAe,"ra_fileType_video,":"Video",ra_filter_customs:iAe,ra_filter_customs_without:cAe,ra_filter_func:lAe,ra_filter_id:uAe,ra_filter_name:dAe,ra_filter_role:pAe,ra_filter_room:fAe,ra_filter_type:hAe,"ra_import data from %s file":"Importar datos del archivo %s",ra_invalidConfig:mAe,ra_lastChange:_Ae,ra_locally:gAe,ra_month_Apr:yAe,ra_month_Aug:vAe,ra_month_Dec:bAe,ra_month_Feb:wAe,ra_month_Jan:xAe,ra_month_Jul:SAe,ra_month_Jun:kAe,ra_month_Mai:CAe,ra_month_Mar:$Ae,ra_month_Nov:EAe,ra_month_Oct:TAe,ra_month_Sep:OAe,ra_months_Apr:DAe,ra_months_Aug:MAe,ra_months_Dec:NAe,ra_months_Feb:PAe,ra_months_Jan:RAe,ra_months_Jul:AAe,ra_months_Jun:IAe,ra_months_Mai:jAe,ra_months_Mar:LAe,ra_months_Nov:zAe,ra_months_Oct:FAe,ra_months_Sep:BAe,ra_none:WAe,ra_object_changed_by:UAe,ra_object_changed_by_user:HAe,ra_otherConfig:qAe,ra_qualityCode:VAe,ra_repeat:XAe,ra_select_folder_hint:GAe,ra_state_changed_by:JAe,ra_state_changed_from:YAe,ra_timestamp:KAe,ra_tooltip_ack:ZAe,ra_tooltip_comment:QAe,ra_tooltip_copyState:e5e,ra_tooltip_customConfig:t5e,ra_tooltip_deleteObject:r5e,ra_tooltip_editObject:n5e,ra_tooltip_editState:o5e,ra_tooltip_from:a5e,ra_tooltip_lc:s5e,ra_tooltip_quality:i5e,ra_tooltip_ts:c5e,ra_tooltip_user:l5e,ra_tooltip_value:u5e,"ra_use seconds":"usar segundos",ra_val:d5e,"ra_via internet":"vía Internet",ra_warning_every_minute:p5e,ra_warning_every_second:f5e,sc_cron:h5e,sc_date:m5e,sc_dates:_5e,sc_dow:g5e,sc_dows:y5e,sc_every:v5e,sc_everyN_dates:b5e,sc_everyN_dow:w5e,sc_everyN_dows:x5e,sc_everyN_hours:S5e,sc_everyN_minutes:k5e,sc_everyN_months:C5e,sc_everyN_seconds:$5e,sc_every_dates:E5e,sc_every_dow:T5e,sc_every_dows:O5e,sc_every_hours:D5e,sc_every_minutes:M5e,sc_every_months:N5e,sc_every_seconds:P5e,sc_from:R5e,sc_hours:A5e,sc_interval:I5e,sc_intervalBetween:j5e,sc_invalid_cron:L5e,sc_minutes:z5e,sc_months:F5e,sc_once:B5e,sc_period:W5e,sc_seconds:U5e,sc_simple:H5e,sc_specific:q5e,sc_specific_dates:V5e,sc_specific_dow:X5e,sc_specific_dows:G5e,sc_specific_hours:J5e,sc_specific_minutes:Y5e,sc_specific_months:K5e,sc_specific_seconds:Z5e,sc_time:Q5e,sc_to:eIe,sc_wizard:tIe,sch_all:rIe,sch_astroDay:nIe,sch_astroNight:oIe,sch_astro_dawn:aIe,sch_astro_dusk:sIe,sch_astro_goldenHour:iIe,sch_astro_goldenHourEnd:cIe,sch_astro_nadir:lIe,sch_astro_nauticalDawn:uIe,sch_astro_nauticalDusk:dIe,sch_astro_night:pIe,sch_astro_nightEnd:fIe,sch_astro_solarNoon:hIe,sch_astro_sunrise:mIe,sch_astro_sunriseEnd:_Ie,sch_astro_sunset:gIe,sch_astro_sunsetStart:yIe,sch_at:vIe,sch_desc_atTime:bIe,sch_desc_everyDay:wIe,sch_desc_everyHour:xIe,sch_desc_everyMinute:SIe,sch_desc_everyMonth:kIe,sch_desc_everyNDay:CIe,sch_desc_everyNHours:$Ie,sch_desc_everyNMinutes:EIe,sch_desc_everyNMonths:TIe,sch_desc_everyNWeeks:OIe,sch_desc_everyNYears:DIe,sch_desc_everyWeek:MIe,sch_desc_everyYear:NIe,sch_desc_intervalFromTo:PIe,sch_desc_never:RIe,sch_desc_onDate:AIe,sch_desc_onDates:IIe,sch_desc_onEveryDate:jIe,sch_desc_onMonth:LIe,sch_desc_onMonths:zIe,sch_desc_onWeekday:FIe,sch_desc_onWeekdays:BIe,sch_desc_onWeekends:WIe,sch_desc_onWorkdays:UIe,sch_desc_onceInPast:HIe,sch_desc_once_on:qIe,sch_desc_validFrom:VIe,sch_desc_validFromTo:XIe,sch_desc_validTo:GIe,sch_every:JIe,sch_exactTime:YIe,sch_from:KIe,sch_fromTo:ZIe,sch_intervalTime:QIe,sch_invert:e4e,sch_no_one:t4e,sch_on:r4e,sch_period:n4e,sch_periodDaily:o4e,sch_periodDates:a4e,sch_periodDay:s4e,sch_periodEvery:i4e,sch_periodEveryDay:c4e,sch_periodEveryMonth:l4e,sch_periodEveryWeek:u4e,sch_periodEveryYear:d4e,sch_periodHours:p4e,sch_periodMinutes:f4e,sch_periodMonth:h4e,sch_periodMonthly:m4e,sch_periodOnce:_4e,sch_periodSpecificMonths:g4e,sch_periodWeek:y4e,sch_periodWeekdays:v4e,sch_periodWeekend:b4e,sch_periodWeekly:w4e,sch_periodWorkdays:x4e,sch_periodYear:S4e,sch_periodYearly:k4e,sch_specificTime:C4e,sch_time:$4e,sch_to:E4e,sch_valid:T4e,sch_validFrom:O4e,sch_validTo:D4e,sch_wholeDay:M4e,sch_yearEveryMonth:N4e},R4e="Dodać",A4e="Anuluj",I4e="Kategorie",j4e="Sprawdzony",L4e="Kasować",z4e="Blisko",F4e="Handlowy",B4e="Konfiguruj",W4e="Połączony",U4e="Skopiowano",H4e="Stwórz",q4e="Przyciąć",V4e="Delete",X4e="Usunąć",G4e="Wyrzucać",J4e="Niepowiązany",Y4e="Błąd",K4e="Filtr",Z4e="Piątek",Q4e="Szerokość",eje="Długość geograficzna",tje="Wiadomość",rje="Poniedziałek",nje="Nazwa",oje="Obiekty",aje="Dobrze",sje="Produkt",ije="Powtarzać",cje="Zastępować",lje="Korzeń",uje="Sobota",dje="Zapisać",pje="Wybrany",fje="Stany",hje="Niedziela",mje="Czwartek",_je="Znak czasu",gje="Wtorek",yje="Aktualizacja",vje="Obowiązuje do",bje="Wartość",wje="Wersja",xje="Środa",Sje="Szerokość",kje="Tak",Cje="różne",$je="Każdy może czytać obiekt",Eje="Każdy może czytać stan",Tje="Każdy może pisać przedmiot",Oje="Każdy może pisać stan",Dje="Grupa może odczytać obiekt",Mje="Grupa może odczytać stan",Nje="Grupa może pisać obiekt",Pje="Grupa może pisać stan",Rje="Właściciel może czytać obiekt",Aje="Właściciel może odczytać stan",Ije="Właściciel może napisać obiekt",jje="Właściciel może pisać stan",Lje="guziki",zje="Zmieniony z",Fje="blisko",Bje="Utwórz stan logiczny",Wje="Utwórz kanał",Uje="Utwórz urządzenie",Hje="Utwórz stan liczbowy",qje="Utwórz stan",Vje="Utwórz stan ciągu",Xje="d.",Gje="Ks",Jje="Mo",Yje="Sa",Kje="Su",Zje="Th",Qje="Tu",e3e="My",t3e="Tryb ekspercki",r3e="Wszystkie pliki",n3e="Audio",o3e="Kod/JSON",a3e="Obrazy",s3e="Tekst",i3e="Wideo",c3e="Ustawienia",l3e="bez",u3e="Funkcjonować",d3e="ID",p3e="Imię",f3e="Rola",h3e="Sala",m3e="Rodzaj",_3e="Nieprawidłowe ustawienia",g3e="Ostatnia zmiana",y3e="lokalnie",v3e="kwiecień",b3e="sierpień",w3e="grudzień",x3e="luty",S3e="styczeń",k3e="lipiec",C3e="czerwiec",$3e="Mai",E3e="Zniszczyć",T3e="listopad",O3e="październik",D3e="wrzesień",M3e="kwiecień",N3e="sierpień",P3e="grudzień",R3e="luty",A3e="styczeń",I3e="lipiec",j3e="czerwiec",L3e="Mai",z3e="Zniszczyć",F3e="listopad",B3e="październik",W3e="wrzesień",U3e="Żaden",H3e="Obiekt zmieniony przez",q3e="Obiekt ostatnio zmieniony o godz",V3e="Ustawienia z innego adaptera %s",X3e="Kod jakości",G3e="powtarzać",J3e="Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.",Y3e="Stan zmieniony przez",K3e="Obiekt zmieniony z",Z3e="Znak czasu",Q3e="Potwierdzon",eLe="Komentarz",tLe="Skopiuj wartość stanu",rLe="Własne ustawienia",nLe="Usuń obiekt",oLe="Edytuj obiekt",aLe="Edytuj wartość stanu",sLe="Z",iLe="Ostatnia zmiana",cLe="Jakość",lLe="Znak czasu",uLe="Użytkownik",dLe="Wartość",pLe="Wartość",fLe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co minutę w określonym przedziale czasowym!",hLe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co sekundę w określonym przedziale czasowym!",mLe="CRON",_Le="Data",gLe="Daktyle",yLe="Dzień",vLe="Dzień tygodnia",bLe="Każdy",wLe="co N dni",xLe="w każdy N-ty dzień tygodnia",SLe="co N dnia tygodnia",kLe="co N godzin",CLe="co N minut",$Le="co N miesięcy",ELe="co N sekund",TLe="codziennie",OLe="każdy dzień tygodnia",DLe="każdy dzień tygodnia",MLe="co godzinę",NLe="każda minuta",PLe="każdego miesiąca",RLe="każda sekunda",ALe="Od",ILe="godziny",jLe="Interwał",LLe="Interwał między",zLe="Nieprawidłowy CRON",FLe="Minuty",BLe="miesięcy",WLe="Pewnego razu",ULe="Kropka",HLe="sekundy",qLe="Prosty",VLe="Określony czas",XLe="konkretne daty",GLe="określone dni tygodnia",JLe="określony dzień tygodni",YLe="określone godziny",KLe="określone minuty",ZLe="określone miesiące",QLe="określone sekundy",eze="Czas",tze="Do",rze="Czarodziej",nze="wszystko",oze="Dzień Astro",aze="Noc Astro",sze="Świt",ize="Zmierzch",cze="złota godzina",lze="Koniec złotej godziny",uze="Nadir",dze="Morski świt",pze="Morski zmierzch",fze="Noc",hze="Koniec nocy",mze="Południe słoneczne",_ze="wschód słońca",gze="Koniec wschodu słońca",yze="Zachód słońca",vze="Początek zachodu słońca",bze="w",wze="na %s",xze="codziennie",Sze="co godzinę",kze="każda minuta",Cze="każdego miesiąca",$ze="każdego dnia %s",Eze="co %s godzin",Tze="co %s minut",Oze="co %s miesięcy",Dze="co %s tygodni",Mze="co %s lat",Nze="co tydzień",Pze="każdego roku",Rze="od %s do %s",Aze="nigdy",Ize="na %s z %s",jze="na %s i %s z",Lze="w każdą datę",zze="%s",Fze="%s i %s",Bze="na %s",Wze="na %s i %s",Uze="w weekendy",Hze="w dni robocze",qze="nie będzie już wykonywany, ponieważ start jest w przeszłości",Vze="na %s",Xze="z %s",Gze="Wykonaj od do",Jze="do %s",Yze="każdy",Kze="Określony czas",Zze="od",Qze="Od-do",eFe="Czas przerwy",tFe="odwracać",rFe="Żaden",nFe="na",oFe="Kropka",aFe="Codziennie",sFe="Daktyle",iFe="Dzień",cFe="Każdy",lFe="Codziennie",uFe="Każdego miesiąca",dFe="Co tydzień",pFe="Każdego roku",fFe="godziny",hFe="Minuty",mFe="miesiąc",_Fe="Miesięczny",gFe="Pewnego razu",yFe="Określone miesiące",vFe="Tydzień",bFe="Dni powszednie",wFe="Weekend",xFe="Co tydzień",SFe="Dni robocze",kFe="Rok",CFe="Rocznie",$Fe="Określony czas",EFe="Czas",TFe="do",OFe="Ważny",DFe="od",MFe="do",NFe="Cały dzień",PFe="każdego miesiąca",RFe={"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_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:R4e,"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:A4e,"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:I4e,"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:j4e,ra_Clear:L4e,"ra_Clear filter":"Czysty filtr","ra_Clear icon":"Wyczyść ikonę","ra_Clone current row":"Sklonuj bieżący wiersz",ra_Close:z4e,"ra_Collapse all nodes":"Zwiń wszystkie węzły","ra_Collapse one step node":"Zwiń o jeden poziom",ra_Commercial:F4e,ra_Configure:B4e,"ra_Configure visible columns":"Skonfiguruj widoczne kolumny","ra_Confirm deletion of %s":"Potwierdź usunięcie %s",ra_Connected:W4e,ra_Copied:U4e,"ra_Copied %s":'Skopiowano "%s"',"ra_Copy content":"Kopiuj zawartość",ra_Create:H4e,"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:q4e,"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:V4e,ra_Delete:X4e,"ra_Delete (no confirm for 5 mins)":"Usuń (bez potwierdzenia przez 5 minut)","ra_Delete current row":"Usuń bieżący wiersz","ra_Deselect all":"Odznacz wszystko","ra_Device → Channel → State":"Urządzenie → Kanał → Stan",ra_Discard:G4e,ra_Disconnected:J4e,"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_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 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_Error:Y4e,"ra_Expand all nodes":"Rozwiń wszystkie węzły","ra_Expand one step node":"Rozwiń o jeden poziom","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:K4e,"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:Z4e,"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_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 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:Q4e,"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_Longitude:eje,'ra_May not trigger "updateLicenses"':"Może nie uruchamiać „updateLicenses”",ra_Message:tje,ra_Monday:rje,"ra_Move down":"Padnij","ra_Move up":"Podnieść",ra_Name:nje,"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 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_Objects:oje,ra_Ok:aje,"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 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_Private certificate":"Prywatny certyfikat",ra_Product:sje,"ra_Public certificate":"Certyfikat publiczny","ra_Quality code":"Jakości","ra_Refresh tree":"Odśwież drzewo","ra_Reload files":"Załaduj ponownie pliki",ra_Repeat:ije,ra_Replace:cje,"ra_Request timed out":"Upłynął limit czasu żądania","ra_Restrict to folder":"Ogranicz do folderu",ra_Root:lje,ra_Saturday:uje,ra_Save:dje,"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:pje,"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_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:fje,"ra_Suitable license not found in license manager":"Nie znaleziono odpowiedniej licencji w menedżerze licencji",ra_Sunday:hje,"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:mje,ra_Timestamp:_je,"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:gje,"ra_Unknown error":"Nieznany błąd","ra_Unknown error!":"Nieznany błąd!",ra_Update:yje,"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:vje,ra_Value:bje,ra_Version:wje,"ra_View file":"Zobaczyć plik","ra_View: %s":"Widok: %s",ra_Wednesday:xje,ra_Width:Sje,ra_Yes:kje,"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___different__:Cje,ra_aclEveryone_read_object:$je,ra_aclEveryone_read_state:Eje,ra_aclEveryone_write_object:Tje,ra_aclEveryone_write_state:Oje,ra_aclGroup_read_object:Dje,ra_aclGroup_read_state:Mje,ra_aclGroup_write_object:Nje,ra_aclGroup_write_state:Pje,ra_aclOwner_read_object:Rje,ra_aclOwner_read_state:Aje,ra_aclOwner_write_object:Ije,ra_aclOwner_write_state:jje,ra_buttons:Lje,ra_changedFrom:zje,ra_close:Fje,ra_create_boolean_state:Bje,ra_create_channel:Wje,ra_create_device:Uje,ra_create_number_state:Hje,ra_create_state:qje,ra_create_string_state:Vje,ra_daysShortText:Xje,ra_dow_Fr:Gje,ra_dow_Mo:Jje,ra_dow_Sa:Yje,ra_dow_Su:Kje,ra_dow_Th:Zje,ra_dow_Tu:Qje,ra_dow_We:e3e,ra_expertMode:t3e,ra_fileType_all:r3e,ra_fileType_audio:n3e,ra_fileType_code:o3e,ra_fileType_images:a3e,ra_fileType_txt:s3e,ra_fileType_video:i3e,"ra_fileType_video,":"Wideo",ra_filter_customs:c3e,ra_filter_customs_without:l3e,ra_filter_func:u3e,ra_filter_id:d3e,ra_filter_name:p3e,ra_filter_role:f3e,ra_filter_room:h3e,ra_filter_type:m3e,"ra_import data from %s file":"Importuj dane z pliku %s",ra_invalidConfig:_3e,ra_lastChange:g3e,ra_locally:y3e,ra_month_Apr:v3e,ra_month_Aug:b3e,ra_month_Dec:w3e,ra_month_Feb:x3e,ra_month_Jan:S3e,ra_month_Jul:k3e,ra_month_Jun:C3e,ra_month_Mai:$3e,ra_month_Mar:E3e,ra_month_Nov:T3e,ra_month_Oct:O3e,ra_month_Sep:D3e,ra_months_Apr:M3e,ra_months_Aug:N3e,ra_months_Dec:P3e,ra_months_Feb:R3e,ra_months_Jan:A3e,ra_months_Jul:I3e,ra_months_Jun:j3e,ra_months_Mai:L3e,ra_months_Mar:z3e,ra_months_Nov:F3e,ra_months_Oct:B3e,ra_months_Sep:W3e,ra_none:U3e,ra_object_changed_by:H3e,ra_object_changed_by_user:q3e,ra_otherConfig:V3e,ra_qualityCode:X3e,ra_repeat:G3e,ra_select_folder_hint:J3e,ra_state_changed_by:Y3e,ra_state_changed_from:K3e,ra_timestamp:Z3e,ra_tooltip_ack:Q3e,ra_tooltip_comment:eLe,ra_tooltip_copyState:tLe,ra_tooltip_customConfig:rLe,ra_tooltip_deleteObject:nLe,ra_tooltip_editObject:oLe,ra_tooltip_editState:aLe,ra_tooltip_from:sLe,ra_tooltip_lc:iLe,ra_tooltip_quality:cLe,ra_tooltip_ts:lLe,ra_tooltip_user:uLe,ra_tooltip_value:dLe,"ra_use seconds":"użyj sekund",ra_val:pLe,"ra_via internet":"przez internet",ra_warning_every_minute:fLe,ra_warning_every_second:hLe,sc_cron:mLe,sc_date:_Le,sc_dates:gLe,sc_dow:yLe,sc_dows:vLe,sc_every:bLe,sc_everyN_dates:wLe,sc_everyN_dow:xLe,sc_everyN_dows:SLe,sc_everyN_hours:kLe,sc_everyN_minutes:CLe,sc_everyN_months:$Le,sc_everyN_seconds:ELe,sc_every_dates:TLe,sc_every_dow:OLe,sc_every_dows:DLe,sc_every_hours:MLe,sc_every_minutes:NLe,sc_every_months:PLe,sc_every_seconds:RLe,sc_from:ALe,sc_hours:ILe,sc_interval:jLe,sc_intervalBetween:LLe,sc_invalid_cron:zLe,sc_minutes:FLe,sc_months:BLe,sc_once:WLe,sc_period:ULe,sc_seconds:HLe,sc_simple:qLe,sc_specific:VLe,sc_specific_dates:XLe,sc_specific_dow:GLe,sc_specific_dows:JLe,sc_specific_hours:YLe,sc_specific_minutes:KLe,sc_specific_months:ZLe,sc_specific_seconds:QLe,sc_time:eze,sc_to:tze,sc_wizard:rze,sch_all:nze,sch_astroDay:oze,sch_astroNight:aze,sch_astro_dawn:sze,sch_astro_dusk:ize,sch_astro_goldenHour:cze,sch_astro_goldenHourEnd:lze,sch_astro_nadir:uze,sch_astro_nauticalDawn:dze,sch_astro_nauticalDusk:pze,sch_astro_night:fze,sch_astro_nightEnd:hze,sch_astro_solarNoon:mze,sch_astro_sunrise:_ze,sch_astro_sunriseEnd:gze,sch_astro_sunset:yze,sch_astro_sunsetStart:vze,sch_at:bze,sch_desc_atTime:wze,sch_desc_everyDay:xze,sch_desc_everyHour:Sze,sch_desc_everyMinute:kze,sch_desc_everyMonth:Cze,sch_desc_everyNDay:$ze,sch_desc_everyNHours:Eze,sch_desc_everyNMinutes:Tze,sch_desc_everyNMonths:Oze,sch_desc_everyNWeeks:Dze,sch_desc_everyNYears:Mze,sch_desc_everyWeek:Nze,sch_desc_everyYear:Pze,sch_desc_intervalFromTo:Rze,sch_desc_never:Aze,sch_desc_onDate:Ize,sch_desc_onDates:jze,sch_desc_onEveryDate:Lze,sch_desc_onMonth:zze,sch_desc_onMonths:Fze,sch_desc_onWeekday:Bze,sch_desc_onWeekdays:Wze,sch_desc_onWeekends:Uze,sch_desc_onWorkdays:Hze,sch_desc_onceInPast:qze,sch_desc_once_on:Vze,sch_desc_validFrom:Xze,sch_desc_validFromTo:Gze,sch_desc_validTo:Jze,sch_every:Yze,sch_exactTime:Kze,sch_from:Zze,sch_fromTo:Qze,sch_intervalTime:eFe,sch_invert:tFe,sch_no_one:rFe,sch_on:nFe,sch_period:oFe,sch_periodDaily:aFe,sch_periodDates:sFe,sch_periodDay:iFe,sch_periodEvery:cFe,sch_periodEveryDay:lFe,sch_periodEveryMonth:uFe,sch_periodEveryWeek:dFe,sch_periodEveryYear:pFe,sch_periodHours:fFe,sch_periodMinutes:hFe,sch_periodMonth:mFe,sch_periodMonthly:_Fe,sch_periodOnce:gFe,sch_periodSpecificMonths:yFe,sch_periodWeek:vFe,sch_periodWeekdays:bFe,sch_periodWeekend:wFe,sch_periodWeekly:xFe,sch_periodWorkdays:SFe,sch_periodYear:kFe,sch_periodYearly:CFe,sch_specificTime:$Fe,sch_time:EFe,sch_to:TFe,sch_valid:OFe,sch_validFrom:DFe,sch_validTo:MFe,sch_wholeDay:NFe,sch_yearEveryMonth:PFe},AFe="Додайте",IFe="Скасувати",jFe="Категорії",LFe="Перевірено",zFe="Видалити",FFe="Закрити",BFe="Комерційний",WFe="Налаштувати",UFe="Підключено",HFe="Скопійовано",qFe="Створити",VFe="Урожай",XFe="Delete",GFe="Видалити",JFe="Відкинути",YFe="Відключено",KFe="Помилка",ZFe="фільтр",QFe="П'ятниця",e6e="Широта",t6e="Довгота",r6e="повідомлення",n6e="понеділок",o6e="Ім'я",a6e="Об'єкти",s6e="В порядку",i6e="Продукт",c6e="Повторіть",l6e="Замінити",u6e="Корінь",d6e="Субота",p6e="зберегти",f6e="Вибране",h6e="держави",m6e="неділя",_6e="четвер",g6e="Мітка часу",y6e="вівторок",v6e="оновлення",b6e="Дійсний до",w6e="Значення",x6e="Версія",S6e="Середа",k6e="Ширина",C6e="Так",$6e="інший",E6e="Кожен може читати об'єкт",T6e="Кожен може читати стан",O6e="Кожен може написати об'єкт",D6e="Кожен може написати стан",M6e="Група може читати об'єкт",N6e="Група може читати стан",P6e="Група може писати об'єкт",R6e="Група може писати стан",A6e="Власник може читати об'єкт",I6e="Власник може читати стан",j6e="Власник може написати об'єкт",L6e="Власник може написати стан",z6e="кнопки",F6e="Змінено з",B6e="закрити",W6e="Створіть логічний стан",U6e="Створити канал",H6e="Створити пристрій",q6e="Створити номерний стан",V6e="Створити состояние",X6e="Створити рядковий стан",G6e="днів",J6e="О",Y6e="пн",K6e="Sa",Z6e="Нд",Q6e="чт",e8e="вт",t8e="ми",r8e="Експертний режим",n8e="Всі файли",o8e="Аудіо",a8e="Код/JSON",s8e="Зображення",i8e="текст",c8e="відео",l8e="Налаштування",u8e="без",d8e="функція",p8e="ID",f8e="Ім'я",h8e="Роль",m8e="Кімната",_8e="Тип",g8e="Недійсні налаштування",y8e="Остання зміна",v8e="локально",b8e="квіт",w8e="серп",x8e="груд",S8e="лютий",k8e="січня",C8e="лип",$8e="черв",E8e="травень",T8e="березень",O8e="Листопад",D8e="жовт",M8e="вер",N8e="квіт",P8e="серп",R8e="груд",A8e="лютий",I8e="січня",j8e="лип",L8e="черв",z8e="травень",F8e="березень",B8e="Листопад",W8e="жовт",U8e="вер",H8e="немає",q8e="Об'єкт змінено",V8e="Об'єкт востаннє змінено о",X8e="Налаштування з іншого адаптера %s",G8e="Код якості",J8e="повторити",Y8e="Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».",K8e="Стан змінено на",Z8e="Об'єкт змінено з",Q8e="Мітка часу",e9e="Визнано",t9e="коментар",r9e="Скопіюйте значення стану",n9e="Спеціальні налаштування",o9e="Видалити об'єкт",a9e="Редагувати об'єкт",s9e="Відредагуйте значення стану",i9e="Від",c9e="Востаннє змінено",l9e="якість",u9e="Позначка часу",d9e="Користувач",p9e="Значення",f9e="Значення",h9e="Попередження: завдання CRON виконуватиметься щохвилини протягом зазначеного періоду!",m9e="Попередження: завдання CRON виконуватиметься кожну секунду протягом зазначеного періоду!",_9e="CRON",g9e="Дата",y9e="дати",v9e="День",b9e="День тижня",w9e="кожен",x9e="кожні N днів",S9e="кожен N-й день тижня",k9e="кожні N днів тижня",C9e="кожні N годин",$9e="кожні N хвилин",E9e="кожні N місяців",T9e="кожні N секунд",O9e="кожен день",D9e="кожен день тижня",M9e="кожен день тижня",N9e="щогодини",P9e="кожну хвилину",R9e="щомісяця",A9e="кожна секунда",I9e="Від",j9e="години",L9e="Інтервал",z9e="Інтервал між",F9e="Недійсний CRON",B9e="хвилин",W9e="місяців",U9e="Один раз",H9e="Крапка",q9e="секунд",V9e="просто",X9e="Конкретний час",G9e="конкретні дати",J9e="конкретний день (дні) тижня",Y9e="конкретний день тижня",K9e="конкретні години",Z9e="конкретні хвилини",Q9e="конкретні місяці",eBe="конкретні секунди",tBe="час",rBe="до",nBe="майстер",oBe="все",aBe="Астродень",sBe="Астро ніч",iBe="Світанок",cBe="Сутінки",lBe="Золота година",uBe="Кінець золотої години",dBe="Надір",pBe="Морський світанок",fBe="Морські сутінки",hBe="ніч",mBe="Кінець ночі",_Be="Сонячний полудень",gBe="Схід сонця",yBe="Кінець сходу сонця",vBe="Захід сонця",bBe="Початок заходу сонця",wBe="в",xBe="в %s",SBe="кожен день",kBe="щогодини",CBe="кожну хвилину",$Be="щомісяця",EBe="кожен %s день",TBe="кожні %s годин",OBe="кожні %s хвилин",DBe="кожні %s місяців",MBe="кожні %s тижнів",NBe="кожні %s років",PBe="щотижня",RBe="щороку",ABe="від %s до %s",IBe="ніколи",jBe="на %s з %s",LBe="на %s і %s з",zBe="на кожну дату",FBe="%s",BBe="%s і %s",WBe="на %s",UBe="на %s і %s",HBe="на вихідних",qBe="в робочі дні",VBe="більше не виконуватиметься, оскільки запуск у минулому",XBe="на %s",GBe="від %s",JBe="Виконати від до",YBe="до %s",KBe="кожен",ZBe="Конкретний час",QBe="від",e7e="Від до",t7e="Час інтервалу",r7e="інвертувати",n7e="немає",o7e="на",a7e="Крапка",s7e="Щодня",i7e="дати",c7e="День",l7e="кожен",u7e="Кожен день",d7e="Щомісяця",p7e="Щотижня",f7e="Щороку",h7e="години",m7e="хвилин",_7e="місяць",g7e="Щомісяця",y7e="Один раз",v7e="Конкретні місяці",b7e="тиждень",w7e="будні",x7e="Вихідні",S7e="Щотижня",k7e="робочі дні",C7e="рік",$7e="щорічно",E7e="Конкретний час",T7e="час",O7e="до",D7e="Дійсний",M7e="від",N7e="до",P7e="Цілий день",R7e="щомісяця",A7e={"ra_%s links from aliases":"%s посилань із псевдонімів","ra_%s object(s) processed":"Оброблено %s об’єктів","ra_%s was imported":"%s було імпортовано","ra_Accept license":"Прийняти ліцензію","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:AFe,"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:IFe,"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:jFe,"ra_Chained certificate":"Прикутий сертифікат","ra_Change color theme":"Змінити кольорову тему","ra_Changed from":"Змінено з","ra_Channel → State":"Канал → Стан","ra_Check license":"Перевірити ліцензію",ra_Checked:LFe,ra_Clear:zFe,"ra_Clear filter":"Очистити фільтр","ra_Clear icon":"Очистити значок","ra_Clone current row":"Клонувати поточний рядок",ra_Close:FFe,"ra_Collapse all nodes":"Згорнути всі вузли","ra_Collapse one step node":"Згорнути на один рівень",ra_Commercial:BFe,ra_Configure:WFe,"ra_Configure visible columns":"Налаштувати видимі стовпці","ra_Confirm deletion of %s":"Підтвердити видалення %s",ra_Connected:UFe,ra_Copied:HFe,"ra_Copied %s":'Скопійовано "%s"',"ra_Copy content":"Скопіюйте вміст",ra_Create:qFe,"ra_Create alias":"Створити псевдонім","ra_Create folder":"Створити папку","ra_Create new folder in %s":"Створіть нову папку в %s",ra_Crop:VFe,"ra_Define CRON...":"Визначити CRON...","ra_Define functions":"Визначити функції","ra_Define rooms":"Визначте кімнати","ra_Define schedule":"Визначити розклад","ra_Define schedule...":"Визначити розклад...",ra_Del:XFe,ra_Delete:GFe,"ra_Delete (no confirm for 5 mins)":"Видалити (без підтвердження протягом 5 хвилин)","ra_Delete current row":"Видалити поточний рядок","ra_Deselect all":"Скасувати вибір усіх","ra_Device → Channel → State":"Пристрій → Канал → Стан",ra_Discard:JFe,ra_Disconnected:YFe,"ra_Do not export values of states":"Не експортуйте значення станів","ra_Do not use let's encrypt":"Не використовуйте let's encrypt","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 function":"функція редагування","ra_Edit object field":"Поле редагування об'єкта","ra_Edit role":"Редагувати роль","ra_Edit room":"Редагувати кімнату","ra_Edit value":"Редагувати значення",ra_Error:KFe,"ra_Expand all nodes":"Розгорнути всі вузли","ra_Expand one step node":"Розгорніть один рівень","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:ZFe,"ra_Filter files":"Фільтр файлів","ra_Folder name":"Назва папки","ra_Folder → Channel → State":"Папка → Канал → Стан","ra_Folder → Device → Channel → State":"Папка → Пристрій → Канал → Стан","ra_Folder → State":"Папка → Стан","ra_Folders always first":"Папки завжди першими",ra_Friday:QFe,"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_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 answer from server":"Недійсна відповідь від сервера","ra_Invalid parent folder!":"Недійсна батьківська папка!","ra_Invalid structure":"Недійсна структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Остання зміна",ra_Latitude:e6e,"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_Longitude:t6e,'ra_May not trigger "updateLicenses"':'Може не запускати "updateLicenses"',ra_Message:r6e,ra_Monday:n6e,"ra_Move down":"Рухатися вниз","ra_Move up":"Рухатися вгору",ra_Name:o6e,"ra_No data found in file":"Немає даних у файлі","ra_No one license found in license manager":"У менеджері ліцензій не знайдено жодної ліцензії","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_Objects:a6e,ra_Ok:s6e,"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 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_Private certificate":"Приватний сертифікат",ra_Product:i6e,"ra_Public certificate":"Публічний сертифікат","ra_Quality code":"якість","ra_Refresh tree":"Оновити дерево","ra_Reload files":"Перезавантажте файли",ra_Repeat:c6e,ra_Replace:l6e,"ra_Request timed out":"Час запиту вичерпано","ra_Restrict to folder":"Обмежити папкою",ra_Root:u6e,ra_Saturday:d6e,ra_Save:p6e,"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:f6e,"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_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:h6e,"ra_Suitable license not found in license manager":"Відповідна ліцензія не знайдена в менеджері ліцензій",ra_Sunday:m6e,"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:_6e,ra_Timestamp:g6e,"ra_Toggle expert mode":"Перемкнути експертний режим","ra_Toggle the states view":"Перемкнути перегляд штатів","ra_Toggle view mode":"Перемкнути режим перегляду","ra_Too big":"Занадто великий","ra_Too small":"Занадто малий","ra_Transparent dialog":"Прозорий діалог",ra_Tuesday:y6e,"ra_Unknown error":"Невідома помилка","ra_Unknown error!":"Невідома помилка!",ra_Update:v6e,"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:b6e,ra_Value:w6e,ra_Version:x6e,"ra_View file":"Переглянути файл","ra_View: %s":"Перегляд: %s",ra_Wednesday:S6e,ra_Width:k6e,ra_Yes:C6e,"ra_You can export all objects or just the selected branch.":"Ви можете експортувати всі об’єкти або лише вибрану гілку.","ra_You can filter entries by entering here some text":"Ви можете фільтрувати записи, ввівши тут певний текст",ra___different__:$6e,ra_aclEveryone_read_object:E6e,ra_aclEveryone_read_state:T6e,ra_aclEveryone_write_object:O6e,ra_aclEveryone_write_state:D6e,ra_aclGroup_read_object:M6e,ra_aclGroup_read_state:N6e,ra_aclGroup_write_object:P6e,ra_aclGroup_write_state:R6e,ra_aclOwner_read_object:A6e,ra_aclOwner_read_state:I6e,ra_aclOwner_write_object:j6e,ra_aclOwner_write_state:L6e,ra_buttons:z6e,ra_changedFrom:F6e,ra_close:B6e,ra_create_boolean_state:W6e,ra_create_channel:U6e,ra_create_device:H6e,ra_create_number_state:q6e,ra_create_state:V6e,ra_create_string_state:X6e,ra_daysShortText:G6e,ra_dow_Fr:J6e,ra_dow_Mo:Y6e,ra_dow_Sa:K6e,ra_dow_Su:Z6e,ra_dow_Th:Q6e,ra_dow_Tu:e8e,ra_dow_We:t8e,ra_expertMode:r8e,ra_fileType_all:n8e,ra_fileType_audio:o8e,ra_fileType_code:a8e,ra_fileType_images:s8e,ra_fileType_txt:i8e,ra_fileType_video:c8e,"ra_fileType_video,":"відео",ra_filter_customs:l8e,ra_filter_customs_without:u8e,ra_filter_func:d8e,ra_filter_id:p8e,ra_filter_name:f8e,ra_filter_role:h8e,ra_filter_room:m8e,ra_filter_type:_8e,"ra_import data from %s file":"Імпортувати дані з файлу %s",ra_invalidConfig:g8e,ra_lastChange:y8e,ra_locally:v8e,ra_month_Apr:b8e,ra_month_Aug:w8e,ra_month_Dec:x8e,ra_month_Feb:S8e,ra_month_Jan:k8e,ra_month_Jul:C8e,ra_month_Jun:$8e,ra_month_Mai:E8e,ra_month_Mar:T8e,ra_month_Nov:O8e,ra_month_Oct:D8e,ra_month_Sep:M8e,ra_months_Apr:N8e,ra_months_Aug:P8e,ra_months_Dec:R8e,ra_months_Feb:A8e,ra_months_Jan:I8e,ra_months_Jul:j8e,ra_months_Jun:L8e,ra_months_Mai:z8e,ra_months_Mar:F8e,ra_months_Nov:B8e,ra_months_Oct:W8e,ra_months_Sep:U8e,ra_none:H8e,ra_object_changed_by:q8e,ra_object_changed_by_user:V8e,ra_otherConfig:X8e,ra_qualityCode:G8e,ra_repeat:J8e,ra_select_folder_hint:Y8e,ra_state_changed_by:K8e,ra_state_changed_from:Z8e,ra_timestamp:Q8e,ra_tooltip_ack:e9e,ra_tooltip_comment:t9e,ra_tooltip_copyState:r9e,ra_tooltip_customConfig:n9e,ra_tooltip_deleteObject:o9e,ra_tooltip_editObject:a9e,ra_tooltip_editState:s9e,ra_tooltip_from:i9e,ra_tooltip_lc:c9e,ra_tooltip_quality:l9e,ra_tooltip_ts:u9e,ra_tooltip_user:d9e,ra_tooltip_value:p9e,"ra_use seconds":"використовуйте секунди",ra_val:f9e,"ra_via internet":"через інтернет",ra_warning_every_minute:h9e,ra_warning_every_second:m9e,sc_cron:_9e,sc_date:g9e,sc_dates:y9e,sc_dow:v9e,sc_dows:b9e,sc_every:w9e,sc_everyN_dates:x9e,sc_everyN_dow:S9e,sc_everyN_dows:k9e,sc_everyN_hours:C9e,sc_everyN_minutes:$9e,sc_everyN_months:E9e,sc_everyN_seconds:T9e,sc_every_dates:O9e,sc_every_dow:D9e,sc_every_dows:M9e,sc_every_hours:N9e,sc_every_minutes:P9e,sc_every_months:R9e,sc_every_seconds:A9e,sc_from:I9e,sc_hours:j9e,sc_interval:L9e,sc_intervalBetween:z9e,sc_invalid_cron:F9e,sc_minutes:B9e,sc_months:W9e,sc_once:U9e,sc_period:H9e,sc_seconds:q9e,sc_simple:V9e,sc_specific:X9e,sc_specific_dates:G9e,sc_specific_dow:J9e,sc_specific_dows:Y9e,sc_specific_hours:K9e,sc_specific_minutes:Z9e,sc_specific_months:Q9e,sc_specific_seconds:eBe,sc_time:tBe,sc_to:rBe,sc_wizard:nBe,sch_all:oBe,sch_astroDay:aBe,sch_astroNight:sBe,sch_astro_dawn:iBe,sch_astro_dusk:cBe,sch_astro_goldenHour:lBe,sch_astro_goldenHourEnd:uBe,sch_astro_nadir:dBe,sch_astro_nauticalDawn:pBe,sch_astro_nauticalDusk:fBe,sch_astro_night:hBe,sch_astro_nightEnd:mBe,sch_astro_solarNoon:_Be,sch_astro_sunrise:gBe,sch_astro_sunriseEnd:yBe,sch_astro_sunset:vBe,sch_astro_sunsetStart:bBe,sch_at:wBe,sch_desc_atTime:xBe,sch_desc_everyDay:SBe,sch_desc_everyHour:kBe,sch_desc_everyMinute:CBe,sch_desc_everyMonth:$Be,sch_desc_everyNDay:EBe,sch_desc_everyNHours:TBe,sch_desc_everyNMinutes:OBe,sch_desc_everyNMonths:DBe,sch_desc_everyNWeeks:MBe,sch_desc_everyNYears:NBe,sch_desc_everyWeek:PBe,sch_desc_everyYear:RBe,sch_desc_intervalFromTo:ABe,sch_desc_never:IBe,sch_desc_onDate:jBe,sch_desc_onDates:LBe,sch_desc_onEveryDate:zBe,sch_desc_onMonth:FBe,sch_desc_onMonths:BBe,sch_desc_onWeekday:WBe,sch_desc_onWeekdays:UBe,sch_desc_onWeekends:HBe,sch_desc_onWorkdays:qBe,sch_desc_onceInPast:VBe,sch_desc_once_on:XBe,sch_desc_validFrom:GBe,sch_desc_validFromTo:JBe,sch_desc_validTo:YBe,sch_every:KBe,sch_exactTime:ZBe,sch_from:QBe,sch_fromTo:e7e,sch_intervalTime:t7e,sch_invert:r7e,sch_no_one:n7e,sch_on:o7e,sch_period:a7e,sch_periodDaily:s7e,sch_periodDates:i7e,sch_periodDay:c7e,sch_periodEvery:l7e,sch_periodEveryDay:u7e,sch_periodEveryMonth:d7e,sch_periodEveryWeek:p7e,sch_periodEveryYear:f7e,sch_periodHours:h7e,sch_periodMinutes:m7e,sch_periodMonth:_7e,sch_periodMonthly:g7e,sch_periodOnce:y7e,sch_periodSpecificMonths:v7e,sch_periodWeek:b7e,sch_periodWeekdays:w7e,sch_periodWeekend:x7e,sch_periodWeekly:S7e,sch_periodWorkdays:k7e,sch_periodYear:C7e,sch_periodYearly:$7e,sch_specificTime:E7e,sch_time:T7e,sch_to:O7e,sch_valid:D7e,sch_validFrom:M7e,sch_validTo:N7e,sch_wholeDay:P7e,sch_yearEveryMonth:R7e},I7e="附加",j7e="取消",L7e="类别",z7e="勾选",F7e="删除",B7e="关",W7e="商业的",U7e="配置",H7e="连接的",q7e="复制的",V7e="创建",X7e="庄稼",G7e="Delete",J7e="删除",Y7e="丢弃",K7e="断开连接",Z7e="错误",Q7e="筛选",eWe="星期五",tWe="纬度",rWe="经度",nWe="信息",oWe="周一",aWe="姓名",sWe="对象",iWe="好",cWe="产品",lWe="重复",uWe="代替",dWe="根",pWe="周六",fWe="保存",hWe="已选",mWe="状态",_We="星期日",gWe="周四",yWe="时间戳记",vWe="周二",bWe="更新资料",wWe="有效期至",xWe="值",SWe="版本",kWe="周三",CWe="宽度",$We="是的",EWe="不同的",TWe="每个人都可以阅读对象",OWe="每个人都可以阅读状态",DWe="每个人都可以写对象",MWe="每个人都可以写状态",NWe="组可以读取对象",PWe="群组可以读取状态",RWe="组可以写对象",AWe="组可以写状态",IWe="所有者可以读取对象",jWe="所有者可以读取状态",LWe="所有者可以写对象",zWe="所有者可以写状态",FWe="纽扣",BWe="更改为",WWe="关闭",UWe="创建布尔状态",HWe="创建频道",qWe="创建设备",VWe="创建号码状态",XWe="创建状态",GWe="创建字符串状态",JWe="天",YWe="r",KWe="莫",ZWe="萨",QWe="苏",eUe="Th",tUe="Tu",rUe="我们",nUe="专家模式",oUe="所有文件",aUe="声音的",sUe="代码/JSON",iUe="图片",cUe="文本",lUe="视频",uUe="设定值",dUe="没有",pUe="功能",fUe="ID",hUe="名称",mUe="角色",_Ue="房间",gUe="类型",yUe="无效的设定",vUe="最后一次变更",bUe="本地",wUe="4月",xUe="八月",SUe="十二月",kUe="二月",CUe="简",$Ue="七月",EUe="君",TUe="迈",OUe="三月",DUe="十一月",MUe="十月",NUe="九月",PUe="4月",RUe="八月",AUe="十二月",IUe="二月",jUe="简",LUe="七月",zUe="君",FUe="迈",BUe="三月",WUe="十一月",UUe="十月",HUe="九月",qUe="没有任何",VUe="物件变更者",XUe="对象上次更改时间为",GUe="来自其他适配器%s的设置",JUe="质量代码",YUe="重复",KUe="要选择文件夹,只需按住“shift”键单击文件夹即可。",ZUe="状态由",QUe="对象已从更改",eHe="时间戳记",tHe="致谢国旗",rHe="评论",nHe="复制状态值",oHe="自定义设置",aHe="删除物件",sHe="编辑物件",iHe="编辑状态值",cHe="从",lHe="最后改变了",uHe="质量",dHe="时间戳",pHe="用户",fHe="值",hHe="值",mHe="警告:CRON 作业将在指定期间内每分钟运行一次!",_He="警告:CRON 作业将在指定期间内每秒运行一次!",gHe="周期任务",yHe="日期",vHe="日",bHe="天",wHe="星期",xHe="每",SHe="每N天",kHe="每周的第 N 天",CHe="每周N天",$He="每N小时一次",EHe="每N分钟",THe="每N个月",OHe="每N秒",DHe="每天",MHe="一周的每一天",NHe="一周的每一天",PHe="每小时",RHe="每分钟",AHe="每月",IHe="每秒",jHe="从",LHe="小时",zHe="间隔",FHe="间隔时间",BHe="无效的 CRON",WHe="分钟",UHe="月",HHe="一次",qHe="周期",VHe="秒",XHe="简单模式",GHe="特定的时间",JHe="特定的日子",YHe="一周中的特定日子",KHe="特定的一周",ZHe="特定的小时",QHe="特定的分钟",eqe="特定的月份",tqe="特定的描述",rqe="时间",nqe="至",oqe="向导模式",aqe="全选",sqe="天文白天",iqe="天文夜晚",cqe="黎明",lqe="黄昏",uqe="黄金时段",dqe="黄金时段结束",pqe="天底",fqe="航海黎明",hqe="航海黄昏",mqe="夜晚",_qe="夜晚结束",gqe="正午",yqe="日出",vqe="日出结束",bqe="日落",wqe="日落开始",xqe="在",Sqe="的%s",kqe="每天",Cqe="每小时",$qe="每分钟",Eqe="每月",Tqe="每%s天",Oqe="每%s小时",Dqe="每%s分钟",Mqe="每%s月",Nqe="每%s周",Pqe="每%s年",Rqe="每周",Aqe="每年",Iqe="从%s到%s",jqe="决不",Lqe="在%s的%s上",zqe="在%s和%s上",Fqe="在每天",Bqe="%s",Wqe="%s和%s",Uqe="在%s上",Hqe="在%s和%s上",qqe="在周末",Vqe="在工作日",Xqe="将不再执行,因为起始时间已经是过去的时间了。",Gqe="在%s上",Jqe="来自%s",Yqe="从执行到",Kqe="到%s",Zqe="每",Qqe="特定的时间",eVe="从",tVe="从到",rVe="间隔时间",nVe="倒置",oVe="取消全选",aVe="的",sVe="周期",iVe="每天",cVe="日期",lVe="天",uVe="每",dVe="每天",pVe="每月",fVe="每周",hVe="每年",mVe="小时",_Ve="分钟",gVe="月",yVe="每月一次",vVe="一次",bVe="特定的月份",wVe="周",xVe="工作日",SVe="周末",kVe="每周",CVe="工作日",$Ve="年",EVe="每年",TVe="特定的时间",OVe="时间",DVe="至",MVe="生效",NVe="从",PVe="至",RVe="一整天",AVe="每月",IVe={"ra_%s links from aliases":"来自别名的 %s 个链接","ra_%s object(s) processed":"已处理%s个对象","ra_%s was imported":"对象已导入","ra_Accept license":"接受许可","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:I7e,"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:j7e,"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:L7e,"ra_Chained certificate":"链式证书","ra_Change color theme":"更改颜色主题","ra_Changed from":"更改为","ra_Channel → State":"频道→状态","ra_Check license":"检查许可证",ra_Checked:z7e,ra_Clear:F7e,"ra_Clear filter":"清除筛选","ra_Clear icon":"清除图标","ra_Clone current row":"克隆当前行",ra_Close:B7e,"ra_Collapse all nodes":"收合所有节点","ra_Collapse one step node":"折叠一级",ra_Commercial:W7e,ra_Configure:U7e,"ra_Configure visible columns":"配置可见列","ra_Confirm deletion of %s":"确认删除%s",ra_Connected:H7e,ra_Copied:q7e,"ra_Copied %s":'复制的"%s"',"ra_Copy content":"复制内容",ra_Create:V7e,"ra_Create alias":"创建别名","ra_Create folder":"创建文件夹","ra_Create new folder in %s":"在%s中创建新文件夹",ra_Crop:X7e,"ra_Define CRON...":"定义 CRON...","ra_Define functions":"定义功能","ra_Define rooms":"定义房间","ra_Define schedule":"定义时间表","ra_Define schedule...":"定义时间表...",ra_Del:G7e,ra_Delete:J7e,"ra_Delete (no confirm for 5 mins)":"删除(5分钟内未确认)","ra_Delete current row":"删除当前行","ra_Deselect all":"全部取消选择","ra_Device → Channel → State":"设备→频道→状态",ra_Discard:Y7e,ra_Disconnected:K7e,"ra_Do not export values of states":"不导出状态值","ra_Do not use let's encrypt":"不要使用让我们加密","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 function":"编辑功能","ra_Edit object field":"编辑对象字段","ra_Edit role":"编辑角色","ra_Edit room":"编辑室","ra_Edit value":"编辑值",ra_Error:Z7e,"ra_Expand all nodes":"展开所有节点","ra_Expand one step node":"扩大一级","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:Q7e,"ra_Filter files":"过滤文件","ra_Folder name":"文件夹名称","ra_Folder → Channel → State":"文件夹→频道→状态","ra_Folder → Device → Channel → State":"文件夹→设备→频道→状态","ra_Folder → State":"文件夹→状态","ra_Folders always first":"资料夹永远优先",ra_Friday:eWe,"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_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 answer from server":"来自服务器的无效答案","ra_Invalid parent folder!":"父文件夹无效!","ra_Invalid structure":"结构无效","ra_JSON editor":"JSON 编辑器","ra_Last change":"最后一次变更",ra_Latitude:tWe,"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_Longitude:rWe,'ra_May not trigger "updateLicenses"':"可能不会触发“updateLicenses”",ra_Message:nWe,ra_Monday:oWe,"ra_Move down":"下移","ra_Move up":"提升",ra_Name:aWe,"ra_No data found in file":"文件中未找到数据","ra_No one license found in license manager":"许可证管理器中未找到任何许可证","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_Objects:sWe,ra_Ok:iWe,"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 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_Private certificate":"私有证书",ra_Product:cWe,"ra_Public certificate":"公共证书","ra_Quality code":"质量代码","ra_Refresh tree":"刷新树","ra_Reload files":"重新载入文件",ra_Repeat:lWe,ra_Replace:uWe,"ra_Request timed out":"请求超时","ra_Restrict to folder":"限制到文件夹",ra_Root:dWe,ra_Saturday:pWe,ra_Save:fWe,"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:hWe,"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_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:mWe,"ra_Suitable license not found in license manager":"在许可证管理器中找不到合适的许可证",ra_Sunday:_We,"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:gWe,ra_Timestamp:yWe,"ra_Toggle expert mode":"切换专家模式","ra_Toggle the states view":"切换状态视图","ra_Toggle view mode":"切换检视模式","ra_Too big":"太大","ra_Too small":"太小","ra_Transparent dialog":"透明对话框",ra_Tuesday:vWe,"ra_Unknown error":"未知错误","ra_Unknown error!":"未知错误!",ra_Update:bWe,"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:wWe,ra_Value:xWe,ra_Version:SWe,"ra_View file":"查看文件","ra_View: %s":"查看:%s",ra_Wednesday:kWe,ra_Width:CWe,ra_Yes:$We,"ra_You can export all objects or just the selected branch.":"您可以导出所有对象或仅导出选定的分支。","ra_You can filter entries by entering here some text":"您可以通过在此处输入一些文本来过滤条目",ra___different__:EWe,ra_aclEveryone_read_object:TWe,ra_aclEveryone_read_state:OWe,ra_aclEveryone_write_object:DWe,ra_aclEveryone_write_state:MWe,ra_aclGroup_read_object:NWe,ra_aclGroup_read_state:PWe,ra_aclGroup_write_object:RWe,ra_aclGroup_write_state:AWe,ra_aclOwner_read_object:IWe,ra_aclOwner_read_state:jWe,ra_aclOwner_write_object:LWe,ra_aclOwner_write_state:zWe,ra_buttons:FWe,ra_changedFrom:BWe,ra_close:WWe,ra_create_boolean_state:UWe,ra_create_channel:HWe,ra_create_device:qWe,ra_create_number_state:VWe,ra_create_state:XWe,ra_create_string_state:GWe,ra_daysShortText:JWe,ra_dow_Fr:YWe,ra_dow_Mo:KWe,ra_dow_Sa:ZWe,ra_dow_Su:QWe,ra_dow_Th:eUe,ra_dow_Tu:tUe,ra_dow_We:rUe,ra_expertMode:nUe,ra_fileType_all:oUe,ra_fileType_audio:aUe,ra_fileType_code:sUe,ra_fileType_images:iUe,ra_fileType_txt:cUe,ra_fileType_video:lUe,"ra_fileType_video,":"视频",ra_filter_customs:uUe,ra_filter_customs_without:dUe,ra_filter_func:pUe,ra_filter_id:fUe,ra_filter_name:hUe,ra_filter_role:mUe,ra_filter_room:_Ue,ra_filter_type:gUe,"ra_import data from %s file":"从 %s 文件导入数据",ra_invalidConfig:yUe,ra_lastChange:vUe,ra_locally:bUe,ra_month_Apr:wUe,ra_month_Aug:xUe,ra_month_Dec:SUe,ra_month_Feb:kUe,ra_month_Jan:CUe,ra_month_Jul:$Ue,ra_month_Jun:EUe,ra_month_Mai:TUe,ra_month_Mar:OUe,ra_month_Nov:DUe,ra_month_Oct:MUe,ra_month_Sep:NUe,ra_months_Apr:PUe,ra_months_Aug:RUe,ra_months_Dec:AUe,ra_months_Feb:IUe,ra_months_Jan:jUe,ra_months_Jul:LUe,ra_months_Jun:zUe,ra_months_Mai:FUe,ra_months_Mar:BUe,ra_months_Nov:WUe,ra_months_Oct:UUe,ra_months_Sep:HUe,ra_none:qUe,ra_object_changed_by:VUe,ra_object_changed_by_user:XUe,ra_otherConfig:GUe,ra_qualityCode:JUe,ra_repeat:YUe,ra_select_folder_hint:KUe,ra_state_changed_by:ZUe,ra_state_changed_from:QUe,ra_timestamp:eHe,ra_tooltip_ack:tHe,ra_tooltip_comment:rHe,ra_tooltip_copyState:nHe,ra_tooltip_customConfig:oHe,ra_tooltip_deleteObject:aHe,ra_tooltip_editObject:sHe,ra_tooltip_editState:iHe,ra_tooltip_from:cHe,ra_tooltip_lc:lHe,ra_tooltip_quality:uHe,ra_tooltip_ts:dHe,ra_tooltip_user:pHe,ra_tooltip_value:fHe,"ra_use seconds":"用秒",ra_val:hHe,"ra_via internet":"通过互联网",ra_warning_every_minute:mHe,ra_warning_every_second:_He,sc_cron:gHe,sc_date:yHe,sc_dates:vHe,sc_dow:bHe,sc_dows:wHe,sc_every:xHe,sc_everyN_dates:SHe,sc_everyN_dow:kHe,sc_everyN_dows:CHe,sc_everyN_hours:$He,sc_everyN_minutes:EHe,sc_everyN_months:THe,sc_everyN_seconds:OHe,sc_every_dates:DHe,sc_every_dow:MHe,sc_every_dows:NHe,sc_every_hours:PHe,sc_every_minutes:RHe,sc_every_months:AHe,sc_every_seconds:IHe,sc_from:jHe,sc_hours:LHe,sc_interval:zHe,sc_intervalBetween:FHe,sc_invalid_cron:BHe,sc_minutes:WHe,sc_months:UHe,sc_once:HHe,sc_period:qHe,sc_seconds:VHe,sc_simple:XHe,sc_specific:GHe,sc_specific_dates:JHe,sc_specific_dow:YHe,sc_specific_dows:KHe,sc_specific_hours:ZHe,sc_specific_minutes:QHe,sc_specific_months:eqe,sc_specific_seconds:tqe,sc_time:rqe,sc_to:nqe,sc_wizard:oqe,sch_all:aqe,sch_astroDay:sqe,sch_astroNight:iqe,sch_astro_dawn:cqe,sch_astro_dusk:lqe,sch_astro_goldenHour:uqe,sch_astro_goldenHourEnd:dqe,sch_astro_nadir:pqe,sch_astro_nauticalDawn:fqe,sch_astro_nauticalDusk:hqe,sch_astro_night:mqe,sch_astro_nightEnd:_qe,sch_astro_solarNoon:gqe,sch_astro_sunrise:yqe,sch_astro_sunriseEnd:vqe,sch_astro_sunset:bqe,sch_astro_sunsetStart:wqe,sch_at:xqe,sch_desc_atTime:Sqe,sch_desc_everyDay:kqe,sch_desc_everyHour:Cqe,sch_desc_everyMinute:$qe,sch_desc_everyMonth:Eqe,sch_desc_everyNDay:Tqe,sch_desc_everyNHours:Oqe,sch_desc_everyNMinutes:Dqe,sch_desc_everyNMonths:Mqe,sch_desc_everyNWeeks:Nqe,sch_desc_everyNYears:Pqe,sch_desc_everyWeek:Rqe,sch_desc_everyYear:Aqe,sch_desc_intervalFromTo:Iqe,sch_desc_never:jqe,sch_desc_onDate:Lqe,sch_desc_onDates:zqe,sch_desc_onEveryDate:Fqe,sch_desc_onMonth:Bqe,sch_desc_onMonths:Wqe,sch_desc_onWeekday:Uqe,sch_desc_onWeekdays:Hqe,sch_desc_onWeekends:qqe,sch_desc_onWorkdays:Vqe,sch_desc_onceInPast:Xqe,sch_desc_once_on:Gqe,sch_desc_validFrom:Jqe,sch_desc_validFromTo:Yqe,sch_desc_validTo:Kqe,sch_every:Zqe,sch_exactTime:Qqe,sch_from:eVe,sch_fromTo:tVe,sch_intervalTime:rVe,sch_invert:nVe,sch_no_one:oVe,sch_on:aVe,sch_period:sVe,sch_periodDaily:iVe,sch_periodDates:cVe,sch_periodDay:lVe,sch_periodEvery:uVe,sch_periodEveryDay:dVe,sch_periodEveryMonth:pVe,sch_periodEveryWeek:fVe,sch_periodEveryYear:hVe,sch_periodHours:mVe,sch_periodMinutes:_Ve,sch_periodMonth:gVe,sch_periodMonthly:yVe,sch_periodOnce:vVe,sch_periodSpecificMonths:bVe,sch_periodWeek:wVe,sch_periodWeekdays:xVe,sch_periodWeekend:SVe,sch_periodWeekly:kVe,sch_periodWorkdays:CVe,sch_periodYear:$Ve,sch_periodYearly:EVe,sch_specificTime:TVe,sch_time:OVe,sch_to:DVe,sch_valid:MVe,sch_validFrom:NVe,sch_validTo:PVe,sch_wholeDay:RVe,sch_yearEveryMonth:AVe},jVe="back",LVe="root folder",zVe={"Back to editor":"Back to editor","Change size":"Change size","Copy URL to clipboard":"Copy URL to clipboard","Refresh snapshots":"Refresh snapshots","URL copied to clipboard":"URL copied to clipboard",back:jVe,"but instance is offline":"but instance is offline",root:LVe},FVe="zurück",BVe="root",WVe={"Back to editor":"Zurück zum Herausgeber","Change size":"Größe ändern","Copy URL to clipboard":"URL in die Zwischenablage kopieren","Refresh snapshots":"Schnappschüsse aktualisieren","URL copied to clipboard":"URL in die Zwischenablage kopiert",back:FVe,"but instance is offline":"aber die Instanz ist offline",root:BVe},UVe="назад",HVe="Корневая папка",qVe={"Back to editor":"Вернуться к редактору","Change size":"Изменить размер","Copy URL to clipboard":"Скопировать URL в буфер обмена","Refresh snapshots":"Обновить снимки","URL copied to clipboard":"URL скопирован в буфер обмена",back:UVe,"but instance is offline":"но экземпляр не активирован",root:HVe},VVe="voltar",XVe="pasta raiz",GVe={"Back to editor":"Voltar ao editor","Change size":"Alterar tamanho","Copy URL to clipboard":"Copiar URL para a área de transferência","Refresh snapshots":"Atualizar instantâneos","URL copied to clipboard":"URL copiado para a área de transferência",back:VVe,"but instance is offline":"mas a instância está offline",root:XVe},JVe="rug",YVe="hoofdmap",KVe={"Back to editor":"Terug naar de redactie","Change size":"Wijzig de maat","Copy URL to clipboard":"Kopieer de URL naar het klembord","Refresh snapshots":"Momentopnamen vernieuwen","URL copied to clipboard":"URL gekopieerd naar klembord",back:JVe,"but instance is offline":"maar het exemplaar is offline",root:YVe},ZVe="dos",QVe="dossier racine",eXe={"Back to editor":"Retour à l'éditeur","Change size":"Changer la taille","Copy URL to clipboard":"Copier l'URL dans le presse-papiers","Refresh snapshots":"Actualiser les instantanés","URL copied to clipboard":"URL copiée dans le presse-papiers",back:ZVe,"but instance is offline":"mais l'instance est hors ligne",root:QVe},tXe="Indietro",rXe="cartella root",nXe={"Back to editor":"Torniamo all'editore","Change size":"Cambia taglia","Copy URL to clipboard":"Copia l'URL negli appunti","Refresh snapshots":"Aggiorna le istantanee","URL copied to clipboard":"URL copiato negli appunti",back:tXe,"but instance is offline":"ma l'istanza è offline",root:rXe},oXe="atrás",aXe="carpeta raíz",sXe={"Back to editor":"volver al editor","Change size":"Cambiar tamaño","Copy URL to clipboard":"Copiar URL al portapapeles","Refresh snapshots":"Actualizar instantáneas","URL copied to clipboard":"URL copiada al portapapeles",back:oXe,"but instance is offline":"pero la instancia está fuera de línea",root:aXe},iXe="z powrotem",cXe="Folder główny",lXe={"Back to editor":"Powrót do edytora","Change size":"Zmień rozmiar","Copy URL to clipboard":"Skopiuj adres URL do schowka","Refresh snapshots":"Odśwież migawki","URL copied to clipboard":"URL skopiowany do schowka",back:iXe,"but instance is offline":"ale instancja jest offline",root:cXe},uXe="назад",dXe="коренева папка",pXe={"Back to editor":"Назад до редактора","Change size":"Змінити розмір","Copy URL to clipboard":"Копіювати URL-адресу в буфер обміну","Refresh snapshots":"Оновити знімки","URL copied to clipboard":"URL-адресу скопійовано в буфер обміну",back:uXe,"but instance is offline":"але примірник офлайн",root:dXe},fXe="后退",hXe="根文件夹",mXe={"Back to editor":"返回编辑器","Change size":"改变尺寸","Copy URL to clipboard":"将 URL 复制到剪贴板","Refresh snapshots":"刷新快照","URL copied to clipboard":"网址已复制到剪贴板",back:fXe,"but instance is offline":"但实例处于离线状态",root:hXe},pr={root:t=>({width:"100%",height:"calc(100% - 48px)",position:"relative",color:t.palette.mode==="dark"?"#fff":"#000",backgroundColor:t.palette.mode==="dark"?"#000":"#fff",overflowX:"hidden",overflowY:"auto",display:"flex",flexWrap:"wrap",alignContent:"flex-start"}),slider:{color:"#FFF !important"},toolbarTitle:{},button:{width:128,borderRadius:10,border:"1px dashed #888",padding:10,margin:5,textAlign:"center",cursor:"pointer",position:"relative"},folderIcon:t=>({"& svg":{width:"calc(100% - 28px)",height:"auto",color:t.palette.primary.main}}),active:t=>({"& svg":{color:t.palette.primary.main}}),folderName:{display:"block",fontSize:16,width:"100%",textAlign:"center"},presetIcon:{width:"calc(100% - 6px)"},presetName:{display:"block",fontSize:16,width:"100%",textAlign:"center"},presetError:{color:"#FF0000",display:"block",fontSize:"0.8em",fontStyle:"italic"},break:{flexBasis:"100%",height:0},copyButton:{position:"absolute",bottom:3,right:3}};class Go extends $.Component{constructor(r){super(r);xe(this,"adminCorrectTimeout",null);xe(this,"isWeb");xe(this,"socket");xe(this,"timeout",{});xe(this,"snapShotQueue",[]);xe(this,"toastTimeout",null);xe(this,"iconsCache",{});xe(this,"onAliveChanged",(r,n)=>{this.state.alive!==!!(n!=null&&n.val)&&this.setState({alive:!!n.val},()=>{if(this.state.alive&&!this.state.done){const o=JSON.parse(JSON.stringify(this.state.icons));let a=!1;Object.keys(o).forEach(i=>{o[i]==="error:not alive"&&(a=!0,o[i]=null)}),a&&this.setState({icons:o})}})});xe(this,"onReceiveMessage",r=>{if((r==null?void 0:r.data)==="updateTheme"){const n=ht.getThemeName();ht.setThemeName(ht.getThemeName());const o=Go.createTheme(n);this.setState({theme:o,themeName:Go.getThemeName(o),themeType:Go.getThemeType(o)})}});xe(this,"onHashChanged",()=>{const n=decodeURIComponent((window.location.hash||"").replace(/^#/,"")).split("/");n.length||n.push(""),JSON.stringify(n)!==JSON.stringify(this.state.location)&&(this.snapShotQueue=[],this.setState({location:n}))});const n=Go.createTheme(),a=decodeURIComponent((window.location.hash||"").replace(/^#/,"")).split("/");a.length||a.push(""),this.state={connected:!1,theme:n,themeType:Go.getThemeType(n),themeName:Go.getThemeName(n),location:a,presetFolders:null,icons:{},iconSize:parseInt(window.localStorage.getItem("echarts.iconSize"),10)||128,showSlider:!1,alive:!1,toast:"",webInstances:[],webMenu:null,forceRefresh:!1,presets:null,errorText:null,done:!1,currentInstance:""};const i={en:$se,de:Ede,ru:T_e,pt:Obe,nl:Dke,fr:M2e,it:NPe,es:P4e,pl:RFe,uk:A7e,"zh-cn":IVe},l={en:zVe,de:WVe,ru:qVe,pt:GVe,nl:KVe,fr:eXe,it:nXe,es:sXe,pl:lXe,uk:pXe,"zh-cn":mXe};Object.keys(i).forEach(u=>Object.assign(i[u],l[u])),U.setTranslations(i),window.socketUrl&&window.socketUrl.startsWith(":")&&(window.socketUrl=`${window.location.protocol}//${window.location.hostname}${window.socketUrl}`),window.location.port==="8082"&&window.location.pathname.includes("/adapter/echarts/preview/")&&(this.adminCorrectTimeout=setTimeout(()=>{this.adminCorrectTimeout=null,window.location.href=window.location.href.replace("/adapter/echarts/preview/","/echarts/preview/")},2e3)),this.isWeb=Jo.isWeb(),this.socket=new Jo({name:window.adapterName,onProgress:u=>{u===_o.CONNECTING?this.setState({connected:!1}):u===_o.READY?this.setState({connected:!0}):this.setState({connected:!0})},onReady:async()=>{this.adminCorrectTimeout&&(clearTimeout(this.adminCorrectTimeout),this.adminCorrectTimeout=null),this.socket.getRawSocket().emit("getCurrentInstance",(d,_)=>{this.setState({currentInstance:_||""})}),U.setLanguage(this.socket.systemLang);const u=await this.socket.getState("system.adapter.echarts.0.alive").catch(()=>null);this.setState({alive:!!(u!=null&&u.val)});const f=await this.getWebInstances();this.setState({webInstances:f});const h=await this.getAllPresets();this.setState(h)},onError:u=>{console.error(u),this.showError(u)}}),window.addEventListener("hashchange",this.onHashChanged),this.snapShotQueue=[],this.timeout={}}async getWebInstances(){const r=await this.socket.getObjectViewSystem("instance","system.adapter.web.","system.adapter.web.香");return Object.keys(r).map(n=>{const o=r[n];return{port:o.native.port,bind:o.native.bind,id:o._id.replace("system.adapter.",""),enabled:!!o.common.enabled,protocol:o.native.secure?"https://":"http://"}})}componentDidMount(){window.addEventListener("message",this.onReceiveMessage,!1)}componentWillUnmount(){window.removeEventListener("message",this.onReceiveMessage,!1),this.socket.unsubscribeState("system.adapter.echarts.0.alive",this.onAliveChanged),this.toastTimeout&&clearTimeout(this.toastTimeout),this.toastTimeout=null}static createTheme(r){return XC(ht.getThemeName(r))}static getThemeName(r){return r.name}static getThemeType(r){return r.palette.mode}toggleTheme(){const n=this.state.themeName==="dark"?"light":"dark";ht.setThemeName(n);const o=XC(n);this.setState({theme:o,themeName:o.name,themeType:o.palette.mode})}showError(r){this.setState({errorText:r})}renderError(){return this.state.errorText?R.jsx(KM,{text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}static buildPresetTree(r,n){const o=Object.values(r),a={subFolders:{},presets:{},id:"",prefix:""};return o.forEach(i=>{const l=i._id,u=l.split(".");u.shift(),u.shift();let f=a,h="";for(let d=0;d{const l=i.split(".");let u=a,f="";for(let h=0;hthis.getEmptyFolders(r.subFolders[a],n,o)),o}async getAllPresets(r){r=r||{};const n={},o=await this.socket.getObjectViewSystem("chart","echarts.","echarts.香");o&&Object.values(o).forEach(i=>{i!=null&&i._id&&!i._id.toString().endsWith(".")&&(n[i._id]=i)}),r.presets=n,Object.keys(r.presets).forEach(i=>{const l=r.presets[i];l.common=l.common||{},l.native=l.native||{}});const a=this.getEmptyFolders();return r.presetFolders=Go.buildPresetTree(n,a),r}getSnapshot(r){if(this.iconsCache[r]){const n=JSON.parse(JSON.stringify(this.state.icons));n[r]=this.iconsCache[r],setTimeout(()=>this.setState({icons:n}),50);return}if(!this.state.alive){const n=JSON.parse(JSON.stringify(this.state.icons));n[r]="error:not alive",setTimeout(()=>this.setState({icons:n}),50);return}this.snapShotQueue.push(r),this.snapShotQueue.length===1&&this.getSnapshotNext()}getSnapshotNext(){if(!this.snapShotQueue.length){this.state.forceRefresh&&setTimeout(()=>this.setState({forceRefresh:!1}),50);return}const r=this.snapShotQueue[0];this.timeout[r]=setTimeout(()=>{const n=JSON.parse(JSON.stringify(this.state.icons));n[r]||(n[r]="error:timeout"),this.iconsCache[r]=n[r],this.snapShotQueue[0]===r&&this.snapShotQueue.shift(),this.setState({icons:n,done:!0}),this.getSnapshotNext()},5e3),this.socket.getRawSocket().emit("sendTo","echarts.0","send",{preset:r,cache:600,forceRefresh:this.state.forceRefresh},n=>{this.timeout[r]&&(clearTimeout(this.timeout[r]),this.timeout[r]=null);const o=JSON.parse(JSON.stringify(this.state.icons));n.error?o[r]=`error:${n.error}`:o[r]=n.data,this.iconsCache[r]=o[r],this.snapShotQueue[0]===r&&this.snapShotQueue.shift(),this.setState({icons:o,done:!0}),this.getSnapshotNext()})}renderFolder(r){const n=[];if(this.state.location.length>1&&n.push(R.jsxs(wt,{component:"div",style:pr.button,onClick:()=>{const o=[...this.state.location];o.pop(),window.location.hash=`#${o.join("/")}`},sx:pr.folderIcon,children:[R.jsx(JM,{}),R.jsx("div",{style:pr.folderName,children:U.t("back")})]},"__back__")),r.subFolders&&Object.keys(r.subFolders).length&&Object.keys(r.subFolders).forEach(o=>{o!=="_consumption_"&&n.push(R.jsxs(wt,{component:"div",style:pr.button,onClick:()=>{const a=[...this.state.location];a.push(o),window.location.hash=`#${a.join("/")}`},sx:pr.folderIcon,children:[R.jsx(HU,{}),R.jsx("div",{style:pr.folderName,children:o})]},o))}),r.presets&&Object.keys(r.presets).length){const o=window.location.pathname.split("/");o.pop(),o.pop(),this.isWeb?o.push("index.html"):o.push("chart/index.html");let a;this.state.webInstances.find(l=>l.enabled)||this.state.currentInstance.startsWith("admin.")?a=this.state.webInstances.filter(l=>l.enabled):a=this.state.webInstances;const i=a.map(l=>({url:`${l.protocol}${l.bind==="0.0.0.0"?window.location.hostname:l.bind}:${l.port}/echarts/index.html?preset=`,port:l.port}));this.state.currentInstance.startsWith("admin.")&&i.unshift({url:"../chart/index.html?preset=",port:window.location.port}),n.push(R.jsx("div",{style:pr.break},"br")),Object.keys(r.presets).forEach(l=>{const u=r.presets[l];this.state.icons[u._id]||this.getSnapshot(u._id),n.push(R.jsxs("div",{style:{...pr.button,width:this.state.iconSize},onClick:f=>{i.length>1?this.setState({webMenu:{id:u._id,webUrls:i,copy:!1,anchorEl:f.currentTarget}}):window.open(i[0].url+u._id,u._id)},children:[this.state.icons[u._id]?this.state.icons[u._id].startsWith("error:")?R.jsx(WC,{style:pr.presetIcon}):R.jsx("img",{style:pr.presetIcon,src:this.state.icons[u._id],alt:u._id}):R.jsx(jM,{style:pr.presetIcon}),R.jsx("div",{style:pr.presetName,children:typeof u.common.name=="object"?u.common.name[U.getLanguage()]||u.common.name.en||"":u.common.name}),this.state.icons[u._id]&&this.state.icons[u._id].startsWith("error:")?R.jsx("div",{style:pr.presetError,children:this.state.icons[u._id].substring(6)}):null,R.jsx(nr,{size:"small",title:U.t("Copy URL to clipboard"),style:pr.copyButton,onClick:f=>{f.stopPropagation(),i.length>1?this.setState({webMenu:{id:u._id,webUrls:i,copy:!0,anchorEl:f.currentTarget}}):this.onCopyUrl(i[0].url+u._id)},children:R.jsx(VM,{})})]},l))})}return n}onCopyUrl(r){this.toastTimeout&&clearTimeout(this.toastTimeout),ht.copyToClipboard(r),this.setState({toast:`${U.t("URL copied to clipboard")}: ${r}`}),this.toastTimeout=setTimeout(()=>{this.toastTimeout=null,this.setState({toast:""})},4e3)}getFolder(r,n,o){return o=o||0,n=n||this.state.presetFolders,n?n.id!==r[o]?this.state.presetFolders:r.length-1===o?n.id===r[o]?n:this.state.presetFolders:n.subFolders[r[o+1]]?this.getFolder(r,n.subFolders[r[o+1]],o+1):this.state.presetFolders:this.state.presetFolders}renderSlider(){return this.state.showSlider?R.jsxs(sU,{spacing:2,direction:"row",style:{width:200},alignItems:"center",children:[R.jsx("span",{children:this.state.iconSize}),R.jsx(UC,{style:{width:14,height:14,marginLeft:4}}),R.jsx(UW,{min:64,max:512,style:pr.slider,value:this.state.iconSize,onChange:(r,n)=>{window.localStorage.setItem("echarts.iconSize",n.toString()),this.setState({iconSize:n})}}),R.jsx(UC,{style:{width:24,height:24}})]}):null}renderToast(){return this.state.toast?R.jsx(QW,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:R.jsx("span",{id:"message-id",children:this.state.toast}),action:[R.jsx(nr,{"aria-label":"Close",color:"inherit",style:pr.close,onClick:()=>this.setState({toast:""}),size:"large",children:R.jsx(Rs,{})},"close")]}):null}renderWebMenu(){return this.state.webMenu?R.jsx(jb,{anchorEl:this.state.webMenu.anchorEl,open:!0,onClose:()=>this.setState({webMenu:null}),children:this.state.webMenu.webUrls.map(r=>R.jsxs(fr,{onClick:()=>{this.state.webMenu.copy?this.onCopyUrl(r.url+this.state.webMenu.id):window.open(r.url+this.state.webMenu.id,this.state.webMenu.id),this.setState({webMenu:null})},children:[":",r.port]}))}):null}render(){if(!this.state.connected)return R.jsx($k,{injectFirst:!0,children:R.jsx(Gk,{theme:this.state.theme,children:R.jsx(EH,{themeType:this.state.themeType})})});const r=this.getFolder(this.state.location),n=[];return R.jsx($k,{injectFirst:!0,children:R.jsxs(Gk,{theme:this.state.theme,children:[R.jsx(yM,{position:"static",style:pr.appBar,children:R.jsxs(Bb,{variant:"dense",children:[this.isWeb?null:R.jsx(nr,{title:U.t("Back to editor"),onClick:()=>{const o=window.location.pathname.split("/");o.pop(),o.pop(),o.push("tab.html"),window.location.href=`${window.location.protocol}//${window.location.host}${o.join("/")}`},children:R.jsx(XU,{})}),R.jsx("img",{src:kte,alt:"echarts",style:{width:32,marginRight:8}}),R.jsx(NM,{"aria-label":"breadcrumb",children:this.state.location.map((o,a)=>(n.push(o),R.jsx(f7,{underline:this.state.location.length-1===a?"none":"hover",color:"inherit",href:`#${n.join("/")}`,children:o||U.t("root")},a)))}),R.jsx("div",{style:{flexGrow:1}}),this.renderSlider(),R.jsx(nr,{onClick:()=>this.setState({showSlider:!this.state.showSlider}),title:U.t("Change size"),sx:this.state.showSlider?pr.active:void 0,children:this.state.showSlider?R.jsx(WC,{}):R.jsx(qU,{})}),R.jsx(nr,{style:{color:this.state.alive?"#0F0":"#FF0"},onClick:()=>{Object.keys(this.iconsCache).forEach(o=>{delete this.iconsCache[o]}),this.setState({icons:{},forceRefresh:!0})},title:this.state.alive?U.t("Refresh snapshots"):`${U.t("Refresh snapshots")}, ${U.t("but instance is offline")}`,children:R.jsx(YM,{})}),this.isWeb&&this.state.themeName!=="PT"&&this.state.themeName!=="DX"?R.jsx(Eee,{toggleTheme:()=>this.toggleTheme(),themeName:this.state.themeName,t:U.t}):null,R.jsx("h4",{style:pr.toolbarTitle,children:"Echarts viewer"})]})}),R.jsx(wt,{component:"div",sx:pr.root,children:r?this.renderFolder(r):null}),this.renderError(),this.renderToast(),this.renderWebMenu()]})})}}const _Xe=eh()(Go);window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function gXe(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const yXe="echarts.index",vXe="1.9.5",bXe={"@vitejs/plugin-react":"^4.3.4","react-icons":"^5.4.0",typescript:"^5.7.2"},wXe=".",xXe="http://localhost:8081",SXe={start:"vite dev --config vite.config.mjs --host",build:"vite build --config vite.config.mjs",lint:"eslint -c eslint.config.mjs"},kXe={extends:"react-app"},CXe=[">0.2%","not dead","not ie <= 11","not op_mini all"],DP={name:yXe,version:vXe,private:!0,dependencies:bXe,homepage:wXe,proxy:xXe,scripts:SXe,eslintConfig:kXe,browserslist:CXe};window.adapterName="echarts-preview";console.log(`iobroker.${window.adapterName}@${DP.version}`);window.location.host!=="localhost:3000"&&Vj({dsn:window.sentryDSN,release:`iobroker.${window.adapterName}@${DP.version}`,integrations:[pD()],beforeSend(t){let e=!1;return t.exception&&t.exception.values&&t.exception.values[0]&&(t.exception.values[0].type==="NS_ERROR_FAILURE"||t.exception.values[0].value&&(t.exception.values[0].value.includes("Microsoft YaHei")||t.exception.values[0].value==="ResizeObserver loop completed with undelivered notifications."||t.exception.values[0].value==="undefined is not an object (evaluating 't.get')"||t.exception.values[0].value==="Cannot read property 'get' of undefined"||t.exception.values[0].value==="this.painter is null"||t.exception.values[0].value.includes("ioBroker is not connected")||t.exception.values[0].value==="Cannot read property 'getDisplayList' of null"))&&(e=!0),e?null:t}});const UO=document.getElementById("root");UO&&RA.createRoot(UO).render(R.jsx(_Xe,{}));gXe(); +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var th=typeof window<"u"&&typeof window.document<"u",Eo=th?window:{},Iw=th&&Eo.document.documentElement?"ontouchstart"in Eo.document.documentElement:!1,jw=th?"PointerEvent"in Eo:!1,Vt="cropper",Lw="all",_P="crop",gP="move",yP="zoom",ds="e",ps="w",ji="s",Da="n",Dl="ne",Ml="nw",Nl="se",Pl="sw",F0="".concat(Vt,"-crop"),TO="".concat(Vt,"-disabled"),nn="".concat(Vt,"-hidden"),OO="".concat(Vt,"-hide"),Iee="".concat(Vt,"-invisible"),af="".concat(Vt,"-modal"),z0="".concat(Vt,"-move"),pu="".concat(Vt,"Action"),vp="".concat(Vt,"Preview"),Fw="crop",vP="move",bP="none",B0="crop",W0="cropend",U0="cropmove",H0="cropstart",DO="dblclick",jee=Iw?"touchstart":"mousedown",Lee=Iw?"touchmove":"mousemove",Fee=Iw?"touchend touchcancel":"mouseup",MO=jw?"pointerdown":jee,NO=jw?"pointermove":Lee,PO=jw?"pointerup pointercancel":Fee,RO="ready",AO="resize",IO="wheel",q0="zoom",jO="image/jpeg",zee=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,Bee=/^data:/,Wee=/^data:image\/jpeg;base64,/,Uee=/^img|canvas$/i,wP=200,xP=100,LO={viewMode:0,dragMode:Fw,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:wP,minContainerHeight:xP,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},Hee='
',qee=Number.isNaN||Eo.isNaN;function yt(t){return typeof t=="number"&&!qee(t)}var FO=function(e){return e>0&&e<1/0};function Nv(t){return typeof t>"u"}function Is(t){return j0(t)==="object"&&t!==null}var Vee=Object.prototype.hasOwnProperty;function sc(t){if(!Is(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&Vee.call(r,"isPrototypeOf")}catch{return!1}}function rn(t){return typeof t=="function"}var Xee=Array.prototype.slice;function SP(t){return Array.from?Array.from(t):Xee.call(t)}function mr(t,e){return t&&rn(e)&&(Array.isArray(t)||yt(t.length)?SP(t).forEach(function(r,n){e.call(t,r,n,t)}):Is(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var Gt=Object.assign||function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o0&&n.forEach(function(a){Is(a)&&Object.keys(a).forEach(function(i){e[i]=a[i]})}),e},Gee=/\.\d*(?:0|9){12}\d*$/;function dc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Gee.test(t)?Math.round(t*e)/e:t}var Jee=/^width|height|left|top|marginLeft|marginTop$/;function Ia(t,e){var r=t.style;mr(e,function(n,o){Jee.test(o)&&yt(n)&&(n="".concat(n,"px")),r[o]=n})}function Yee(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function xr(t,e){if(e){if(yt(t.length)){mr(t,function(n){xr(n,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?r.indexOf(e)<0&&(t.className="".concat(r," ").concat(e)):t.className=e}}function Co(t,e){if(e){if(yt(t.length)){mr(t,function(r){Co(r,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function ic(t,e,r){if(e){if(yt(t.length)){mr(t,function(n){ic(n,e,r)});return}r?xr(t,e):Co(t,e)}}var Kee=/([a-z\d])([A-Z])/g;function zw(t){return t.replace(Kee,"$1-$2").toLowerCase()}function V0(t,e){return Is(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(zw(e)))}function fu(t,e,r){Is(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(zw(e)),r)}function Zee(t,e){if(Is(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(zw(e)))}var kP=/\s\s*/,CP=function(){var t=!1;if(th){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(a){e=a}});Eo.addEventListener("test",r,n),Eo.removeEventListener("test",r,n)}return t}();function Gn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(kP).forEach(function(a){if(!CP){var i=t.listeners;i&&i[a]&&i[a][r]&&(o=i[a][r],delete i[a][r],Object.keys(i[a]).length===0&&delete i[a],Object.keys(i).length===0&&delete t.listeners)}t.removeEventListener(a,o,n)})}function On(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(kP).forEach(function(a){if(n.once&&!CP){var i=t.listeners,l=i===void 0?{}:i;o=function(){delete l[a][r],t.removeEventListener(a,o,n);for(var f=arguments.length,h=new Array(f),d=0;dMath.abs(r)&&(r=_)})}),r}function bp(t,e){var r=t.pageX,n=t.pageY,o={endX:r,endY:n};return e?o:fP({startX:r,startY:n},o)}function tte(t){var e=0,r=0,n=0;return mr(t,function(o){var a=o.startX,i=o.startY;e+=a,r+=i,n+=1}),e/=n,r/=n,{pageX:e,pageY:r}}function ja(t){var e=t.aspectRatio,r=t.height,n=t.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",a=FO(n),i=FO(r);if(a&&i){var l=r*e;o==="contain"&&l>n||o==="cover"&&l90?{width:u,height:l}:{width:l,height:u}}function nte(t,e,r,n){var o=e.aspectRatio,a=e.naturalWidth,i=e.naturalHeight,l=e.rotate,u=l===void 0?0:l,f=e.scaleX,h=f===void 0?1:f,d=e.scaleY,_=d===void 0?1:d,g=r.aspectRatio,b=r.naturalWidth,w=r.naturalHeight,S=n.fillColor,k=S===void 0?"transparent":S,D=n.imageSmoothingEnabled,C=D===void 0?!0:D,O=n.imageSmoothingQuality,M=O===void 0?"low":O,T=n.maxWidth,P=T===void 0?1/0:T,j=n.maxHeight,F=j===void 0?1/0:j,E=n.minWidth,L=E===void 0?0:E,G=n.minHeight,B=G===void 0?0:G,z=document.createElement("canvas"),H=z.getContext("2d"),K=ja({aspectRatio:g,width:P,height:F}),ee=ja({aspectRatio:g,width:L,height:B},"cover"),Y=Math.min(K.width,Math.max(ee.width,b)),X=Math.min(K.height,Math.max(ee.height,w)),re=ja({aspectRatio:o,width:P,height:F}),I=ja({aspectRatio:o,width:L,height:B},"cover"),Q=Math.min(re.width,Math.max(I.width,a)),me=Math.min(re.height,Math.max(I.height,i)),pe=[-Q/2,-me/2,Q,me];return z.width=dc(Y),z.height=dc(X),H.fillStyle=k,H.fillRect(0,0,Y,X),H.save(),H.translate(Y/2,X/2),H.rotate(u*Math.PI/180),H.scale(h,_),H.imageSmoothingEnabled=C,H.imageSmoothingQuality=M,H.drawImage.apply(H,[t].concat(mP(pe.map(function(ge){return Math.floor(dc(ge))})))),H.restore(),z}var EP=String.fromCharCode;function ote(t,e,r){var n="";r+=e;for(var o=e;o0;)r.push(EP.apply(null,SP(o.subarray(0,n)))),o=o.subarray(n);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}function cte(t){var e=new DataView(t),r;try{var n,o,a;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var i=e.byteLength,l=2;l+1=8&&(a=f+d)}}}if(a){var _=e.getUint16(a,n),g,b;for(b=0;b<_;b+=1)if(g=a+b*12+2,e.getUint16(g,n)===274){g+=8,r=e.getUint16(g,n),e.setUint16(g,1,n);break}}}catch{r=1}return r}function lte(t){var e=0,r=1,n=1;switch(t){case 2:r=-1;break;case 3:e=-180;break;case 4:n=-1;break;case 5:e=90,n=-1;break;case 6:e=90;break;case 7:e=90,r=-1;break;case 8:e=-90;break}return{rotate:e,scaleX:r,scaleY:n}}var ute={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,r=this.options,n=this.container,o=this.cropper,a=Number(r.minContainerWidth),i=Number(r.minContainerHeight);xr(o,nn),Co(e,nn);var l={width:Math.max(n.offsetWidth,a>=0?a:wP),height:Math.max(n.offsetHeight,i>=0?i:xP)};this.containerData=l,Ia(o,{width:l.width,height:l.height}),xr(e,nn),Co(o,nn)},initCanvas:function(){var e=this.containerData,r=this.imageData,n=this.options.viewMode,o=Math.abs(r.rotate)%180===90,a=o?r.naturalHeight:r.naturalWidth,i=o?r.naturalWidth:r.naturalHeight,l=a/i,u=e.width,f=e.height;e.height*l>e.width?n===3?u=e.height*l:f=e.width/l:n===3?f=e.width/l:u=e.height*l;var h={aspectRatio:l,naturalWidth:a,naturalHeight:i,width:u,height:f};this.canvasData=h,this.limited=n===1||n===2,this.limitCanvas(!0,!0),h.width=Math.min(Math.max(h.width,h.minWidth),h.maxWidth),h.height=Math.min(Math.max(h.height,h.minHeight),h.maxHeight),h.left=(e.width-h.width)/2,h.top=(e.height-h.height)/2,h.oldLeft=h.left,h.oldTop=h.top,this.initialCanvasData=Gt({},h)},limitCanvas:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,i=this.cropBoxData,l=n.viewMode,u=a.aspectRatio,f=this.cropped&&i;if(e){var h=Number(n.minCanvasWidth)||0,d=Number(n.minCanvasHeight)||0;l>1?(h=Math.max(h,o.width),d=Math.max(d,o.height),l===3&&(d*u>h?h=d*u:d=h/u)):l>0&&(h?h=Math.max(h,f?i.width:0):d?d=Math.max(d,f?i.height:0):f&&(h=i.width,d=i.height,d*u>h?h=d*u:d=h/u));var _=ja({aspectRatio:u,width:h,height:d});h=_.width,d=_.height,a.minWidth=h,a.minHeight=d,a.maxWidth=1/0,a.maxHeight=1/0}if(r)if(l>(f?0:1)){var g=o.width-a.width,b=o.height-a.height;a.minLeft=Math.min(0,g),a.minTop=Math.min(0,b),a.maxLeft=Math.max(0,g),a.maxTop=Math.max(0,b),f&&this.limited&&(a.minLeft=Math.min(i.left,i.left+(i.width-a.width)),a.minTop=Math.min(i.top,i.top+(i.height-a.height)),a.maxLeft=i.left,a.maxTop=i.top,l===2&&(a.width>=o.width&&(a.minLeft=Math.min(0,g),a.maxLeft=Math.max(0,g)),a.height>=o.height&&(a.minTop=Math.min(0,b),a.maxTop=Math.max(0,b))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=o.width,a.maxTop=o.height},renderCanvas:function(e,r){var n=this.canvasData,o=this.imageData;if(r){var a=rte({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),i=a.width,l=a.height,u=n.width*(i/n.naturalWidth),f=n.height*(l/n.naturalHeight);n.left-=(u-n.width)/2,n.top-=(f-n.height)/2,n.width=u,n.height=f,n.aspectRatio=i/l,n.naturalWidth=i,n.naturalHeight=l,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heightr.width?a.height=a.width/n:a.width=a.height*n),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*o),a.height=Math.max(a.minHeight,a.height*o),a.left=r.left+(r.width-a.width)/2,a.top=r.top+(r.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=Gt({},a)},limitCropBox:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,i=this.cropBoxData,l=this.limited,u=n.aspectRatio;if(e){var f=Number(n.minCropBoxWidth)||0,h=Number(n.minCropBoxHeight)||0,d=l?Math.min(o.width,a.width,a.width+a.left,o.width-a.left):o.width,_=l?Math.min(o.height,a.height,a.height+a.top,o.height-a.top):o.height;f=Math.min(f,o.width),h=Math.min(h,o.height),u&&(f&&h?h*u>f?h=f/u:f=h*u:f?h=f/u:h&&(f=h*u),_*u>d?_=d/u:d=_*u),i.minWidth=Math.min(f,d),i.minHeight=Math.min(h,_),i.maxWidth=d,i.maxHeight=_}r&&(l?(i.minLeft=Math.max(0,a.left),i.minTop=Math.max(0,a.top),i.maxLeft=Math.min(o.width,a.left+a.width)-i.width,i.maxTop=Math.min(o.height,a.top+a.height)-i.height):(i.minLeft=0,i.minTop=0,i.maxLeft=o.width-i.width,i.maxTop=o.height-i.height))},renderCropBox:function(){var e=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=r.width&&n.height>=r.height?gP:Lw),Ia(this.cropBox,Gt({width:n.width,height:n.height},Kl({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),pc(this.element,B0,this.getData())}},dte={initPreview:function(){var e=this.element,r=this.crossOrigin,n=this.options.preview,o=r?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",i=document.createElement("img");if(r&&(i.crossOrigin=r),i.src=o,i.alt=a,this.viewBox.appendChild(i),this.viewBoxImage=i,!!n){var l=n;typeof n=="string"?l=e.ownerDocument.querySelectorAll(n):n.querySelector&&(l=[n]),this.previews=l,mr(l,function(u){var f=document.createElement("img");fu(u,vp,{width:u.offsetWidth,height:u.offsetHeight,html:u.innerHTML}),r&&(f.crossOrigin=r),f.src=o,f.alt=a,f.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;"',u.innerHTML="",u.appendChild(f)})}},resetPreview:function(){mr(this.previews,function(e){var r=V0(e,vp);Ia(e,{width:r.width,height:r.height}),e.innerHTML=r.html,Zee(e,vp)})},preview:function(){var e=this.imageData,r=this.canvasData,n=this.cropBoxData,o=n.width,a=n.height,i=e.width,l=e.height,u=n.left-r.left-e.left,f=n.top-r.top-e.top;!this.cropped||this.disabled||(Ia(this.viewBoxImage,Gt({width:i,height:l},Kl(Gt({translateX:-u,translateY:-f},e)))),mr(this.previews,function(h){var d=V0(h,vp),_=d.width,g=d.height,b=_,w=g,S=1;o&&(S=_/o,w=a*S),a&&w>g&&(S=g/a,b=o*S,w=g),Ia(h,{width:b,height:w}),Ia(h.getElementsByTagName("img")[0],Gt({width:i*S,height:l*S},Kl(Gt({translateX:-u*S,translateY:-f*S},e))))}))}},pte={bind:function(){var e=this.element,r=this.options,n=this.cropper;rn(r.cropstart)&&On(e,H0,r.cropstart),rn(r.cropmove)&&On(e,U0,r.cropmove),rn(r.cropend)&&On(e,W0,r.cropend),rn(r.crop)&&On(e,B0,r.crop),rn(r.zoom)&&On(e,q0,r.zoom),On(n,MO,this.onCropStart=this.cropStart.bind(this)),r.zoomable&&r.zoomOnWheel&&On(n,IO,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&On(n,DO,this.onDblclick=this.dblclick.bind(this)),On(e.ownerDocument,NO,this.onCropMove=this.cropMove.bind(this)),On(e.ownerDocument,PO,this.onCropEnd=this.cropEnd.bind(this)),r.responsive&&On(window,AO,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,r=this.options,n=this.cropper;rn(r.cropstart)&&Gn(e,H0,r.cropstart),rn(r.cropmove)&&Gn(e,U0,r.cropmove),rn(r.cropend)&&Gn(e,W0,r.cropend),rn(r.crop)&&Gn(e,B0,r.crop),rn(r.zoom)&&Gn(e,q0,r.zoom),Gn(n,MO,this.onCropStart),r.zoomable&&r.zoomOnWheel&&Gn(n,IO,this.onWheel,{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&Gn(n,DO,this.onDblclick),Gn(e.ownerDocument,NO,this.onCropMove),Gn(e.ownerDocument,PO,this.onCropEnd),r.responsive&&Gn(window,AO,this.onResize)}},fte={resize:function(){if(!this.disabled){var e=this.options,r=this.container,n=this.containerData,o=r.offsetWidth/n.width,a=r.offsetHeight/n.height,i=Math.abs(o-1)>Math.abs(a-1)?o:a;if(i!==1){var l,u;e.restore&&(l=this.getCanvasData(),u=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(mr(l,function(f,h){l[h]=f*i})),this.setCropBoxData(mr(u,function(f,h){u[h]=f*i})))}}},dblclick:function(){this.disabled||this.options.dragMode===bP||this.setDragMode(Yee(this.dragBox,F0)?vP:Fw)},wheel:function(e){var r=this,n=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50),e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*n,e)))},cropStart:function(e){var r=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(yt(r)&&r!==1||yt(n)&&n!==0||e.ctrlKey))){var o=this.options,a=this.pointers,i;e.changedTouches?mr(e.changedTouches,function(l){a[l.identifier]=bp(l)}):a[e.pointerId||0]=bp(e),Object.keys(a).length>1&&o.zoomable&&o.zoomOnTouch?i=yP:i=V0(e.target,pu),zee.test(i)&&pc(this.element,H0,{originalEvent:e,action:i})!==!1&&(e.preventDefault(),this.action=i,this.cropping=!1,i===_P&&(this.cropping=!0,xr(this.dragBox,af)))}},cropMove:function(e){var r=this.action;if(!(this.disabled||!r)){var n=this.pointers;e.preventDefault(),pc(this.element,U0,{originalEvent:e,action:r})!==!1&&(e.changedTouches?mr(e.changedTouches,function(o){Gt(n[o.identifier]||{},bp(o,!0))}):Gt(n[e.pointerId||0]||{},bp(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var r=this.action,n=this.pointers;e.changedTouches?mr(e.changedTouches,function(o){delete n[o.identifier]}):delete n[e.pointerId||0],r&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,ic(this.dragBox,af,this.cropped&&this.options.modal)),pc(this.element,W0,{originalEvent:e,action:r}))}}},hte={change:function(e){var r=this.options,n=this.canvasData,o=this.containerData,a=this.cropBoxData,i=this.pointers,l=this.action,u=r.aspectRatio,f=a.left,h=a.top,d=a.width,_=a.height,g=f+d,b=h+_,w=0,S=0,k=o.width,D=o.height,C=!0,O;!u&&e.shiftKey&&(u=d&&_?d/_:1),this.limited&&(w=a.minLeft,S=a.minTop,k=w+Math.min(o.width,n.width,n.left+n.width),D=S+Math.min(o.height,n.height,n.top+n.height));var M=i[Object.keys(i)[0]],T={x:M.endX-M.startX,y:M.endY-M.startY},P=function(F){switch(F){case ds:g+T.x>k&&(T.x=k-g);break;case ps:f+T.xD&&(T.y=D-b);break}};switch(l){case Lw:f+=T.x,h+=T.y;break;case ds:if(T.x>=0&&(g>=k||u&&(h<=S||b>=D))){C=!1;break}P(ds),d+=T.x,d<0&&(l=ps,d=-d,f-=d),u&&(_=d/u,h+=(a.height-_)/2);break;case Da:if(T.y<=0&&(h<=S||u&&(f<=w||g>=k))){C=!1;break}P(Da),_-=T.y,h+=T.y,_<0&&(l=ji,_=-_,h-=_),u&&(d=_*u,f+=(a.width-d)/2);break;case ps:if(T.x<=0&&(f<=w||u&&(h<=S||b>=D))){C=!1;break}P(ps),d-=T.x,f+=T.x,d<0&&(l=ds,d=-d,f-=d),u&&(_=d/u,h+=(a.height-_)/2);break;case ji:if(T.y>=0&&(b>=D||u&&(f<=w||g>=k))){C=!1;break}P(ji),_+=T.y,_<0&&(l=Da,_=-_,h-=_),u&&(d=_*u,f+=(a.width-d)/2);break;case Dl:if(u){if(T.y<=0&&(h<=S||g>=k)){C=!1;break}P(Da),_-=T.y,h+=T.y,d=_*u}else P(Da),P(ds),T.x>=0?gS&&(_-=T.y,h+=T.y):(_-=T.y,h+=T.y);d<0&&_<0?(l=Pl,_=-_,d=-d,h-=_,f-=d):d<0?(l=Ml,d=-d,f-=d):_<0&&(l=Nl,_=-_,h-=_);break;case Ml:if(u){if(T.y<=0&&(h<=S||f<=w)){C=!1;break}P(Da),_-=T.y,h+=T.y,d=_*u,f+=a.width-d}else P(Da),P(ps),T.x<=0?f>w?(d-=T.x,f+=T.x):T.y<=0&&h<=S&&(C=!1):(d-=T.x,f+=T.x),T.y<=0?h>S&&(_-=T.y,h+=T.y):(_-=T.y,h+=T.y);d<0&&_<0?(l=Nl,_=-_,d=-d,h-=_,f-=d):d<0?(l=Dl,d=-d,f-=d):_<0&&(l=Pl,_=-_,h-=_);break;case Pl:if(u){if(T.x<=0&&(f<=w||b>=D)){C=!1;break}P(ps),d-=T.x,f+=T.x,_=d/u}else P(ji),P(ps),T.x<=0?f>w?(d-=T.x,f+=T.x):T.y>=0&&b>=D&&(C=!1):(d-=T.x,f+=T.x),T.y>=0?b=0&&(g>=k||b>=D)){C=!1;break}P(ds),d+=T.x,_=d/u}else P(ji),P(ds),T.x>=0?g=0&&b>=D&&(C=!1):d+=T.x,T.y>=0?b0?l=T.y>0?Nl:Dl:T.x<0&&(f-=d,l=T.y>0?Pl:Ml),T.y<0&&(h-=_),this.cropped||(Co(this.cropBox,nn),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}C&&(a.width=d,a.height=_,a.left=f,a.top=h,this.action=l,this.renderCropBox()),mr(i,function(j){j.startX=j.endX,j.startY=j.endY})}},mte={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&xr(this.dragBox,af),Co(this.cropBox,nn),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Gt({},this.initialImageData),this.canvasData=Gt({},this.initialCanvasData),this.cropBoxData=Gt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Gt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Co(this.dragBox,af),xr(this.cropBox,nn)),this},replace:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),r?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,mr(this.previews,function(n){n.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,Co(this.cropper,TO)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,xr(this.cropper,TO)),this},destroy:function(){var e=this.element;return e[Vt]?(e[Vt]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=n.left,a=n.top;return this.moveTo(Nv(e)?e:o+Number(e),Nv(r)?r:a+Number(r))},moveTo:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.movable&&(yt(e)&&(n.left=e,o=!0),yt(r)&&(n.top=r,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(e,r){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,r)},zoomTo:function(e,r,n){var o=this.options,a=this.canvasData,i=a.width,l=a.height,u=a.naturalWidth,f=a.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&o.zoomable){var h=u*e,d=f*e;if(pc(this.element,q0,{ratio:e,oldRatio:i/u,originalEvent:n})===!1)return this;if(n){var _=this.pointers,g=$P(this.cropper),b=_&&Object.keys(_).length?tte(_):{pageX:n.pageX,pageY:n.pageY};a.left-=(h-i)*((b.pageX-g.left-a.left)/i),a.top-=(d-l)*((b.pageY-g.top-a.top)/l)}else sc(r)&&yt(r.x)&&yt(r.y)?(a.left-=(h-i)*((r.x-a.left)/i),a.top-=(d-l)*((r.y-a.top)/l)):(a.left-=(h-i)/2,a.top-=(d-l)/2);a.width=h,a.height=d,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),yt(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var r=this.imageData.scaleY;return this.scale(e,yt(r)?r:1)},scaleY:function(e){var r=this.imageData.scaleX;return this.scale(yt(r)?r:1,e)},scale:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.scalable&&(yt(e)&&(n.scaleX=e,o=!0),yt(r)&&(n.scaleY=r,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.options,n=this.imageData,o=this.canvasData,a=this.cropBoxData,i;if(this.ready&&this.cropped){i={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height};var l=n.width/n.naturalWidth;if(mr(i,function(h,d){i[d]=h/l}),e){var u=Math.round(i.y+i.height),f=Math.round(i.x+i.width);i.x=Math.round(i.x),i.y=Math.round(i.y),i.width=f-i.x,i.height=u-i.y}}else i={x:0,y:0,width:0,height:0};return r.rotatable&&(i.rotate=n.rotate||0),r.scalable&&(i.scaleX=n.scaleX||1,i.scaleY=n.scaleY||1),i},setData:function(e){var r=this.options,n=this.imageData,o=this.canvasData,a={};if(this.ready&&!this.disabled&&sc(e)){var i=!1;r.rotatable&&yt(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,i=!0),r.scalable&&(yt(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,i=!0),yt(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,i=!0)),i&&this.renderCanvas(!0,!0);var l=n.width/n.naturalWidth;yt(e.x)&&(a.left=e.x*l+o.left),yt(e.y)&&(a.top=e.y*l+o.top),yt(e.width)&&(a.width=e.width*l),yt(e.height)&&(a.height=e.height*l),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?Gt({},this.containerData):{}},getImageData:function(){return this.sized?Gt({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,r={};return this.ready&&mr(["left","top","width","height","naturalWidth","naturalHeight"],function(n){r[n]=e[n]}),r},setCanvasData:function(e){var r=this.canvasData,n=r.aspectRatio;return this.ready&&!this.disabled&&sc(e)&&(yt(e.left)&&(r.left=e.left),yt(e.top)&&(r.top=e.top),yt(e.width)?(r.width=e.width,r.height=e.width/n):yt(e.height)&&(r.height=e.height,r.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,r;return this.ready&&this.cropped&&(r={left:e.left,top:e.top,width:e.width,height:e.height}),r||{}},setCropBoxData:function(e){var r=this.cropBoxData,n=this.options.aspectRatio,o,a;return this.ready&&this.cropped&&!this.disabled&&sc(e)&&(yt(e.left)&&(r.left=e.left),yt(e.top)&&(r.top=e.top),yt(e.width)&&e.width!==r.width&&(o=!0,r.width=e.width),yt(e.height)&&e.height!==r.height&&(a=!0,r.height=e.height),n&&(o?r.height=r.width/n:a&&(r.width=r.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 r=this.canvasData,n=nte(this.image,this.imageData,r,e);if(!this.cropped)return n;var o=this.getData(e.rounded),a=o.x,i=o.y,l=o.width,u=o.height,f=n.width/Math.floor(r.naturalWidth);f!==1&&(a*=f,i*=f,l*=f,u*=f);var h=l/u,d=ja({aspectRatio:h,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),_=ja({aspectRatio:h,width:e.minWidth||0,height:e.minHeight||0},"cover"),g=ja({aspectRatio:h,width:e.width||(f!==1?n.width:l),height:e.height||(f!==1?n.height:u)}),b=g.width,w=g.height;b=Math.min(d.width,Math.max(_.width,b)),w=Math.min(d.height,Math.max(_.height,w));var S=document.createElement("canvas"),k=S.getContext("2d");S.width=dc(b),S.height=dc(w),k.fillStyle=e.fillColor||"transparent",k.fillRect(0,0,b,w);var D=e.imageSmoothingEnabled,C=D===void 0?!0:D,O=e.imageSmoothingQuality;k.imageSmoothingEnabled=C,O&&(k.imageSmoothingQuality=O);var M=n.width,T=n.height,P=a,j=i,F,E,L,G,B,z;P<=-l||P>M?(P=0,F=0,L=0,B=0):P<=0?(L=-P,P=0,F=Math.min(M,l+P),B=F):P<=M&&(L=0,F=Math.min(l,M-P),B=F),F<=0||j<=-u||j>T?(j=0,E=0,G=0,z=0):j<=0?(G=-j,j=0,E=Math.min(T,u+j),z=E):j<=T&&(G=0,E=Math.min(u,T-j),z=E);var H=[P,j,F,E];if(B>0&&z>0){var K=b/l;H.push(L*K,G*K,B*K,z*K)}return k.drawImage.apply(k,[n].concat(mP(H.map(function(ee){return Math.floor(dc(ee))})))),S},setAspectRatio:function(e){var r=this.options;return!this.disabled&&!Nv(e)&&(r.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var r=this.options,n=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var a=e===Fw,i=r.movable&&e===vP;e=a||i?e:bP,r.dragMode=e,fu(n,pu,e),ic(n,F0,a),ic(n,z0,i),r.cropBoxMovable||(fu(o,pu,e),ic(o,F0,a),ic(o,z0,i))}return this}},_te=Eo.Cropper,TP=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Oee(this,t),!e||!Uee.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=Gt({},LO,sc(r)&&r),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 Dee(t,[{key:"init",value:function(){var r=this.element,n=r.tagName.toLowerCase(),o;if(!r[Vt]){if(r[Vt]=this,n==="img"){if(this.isImg=!0,o=r.getAttribute("src")||"",this.originalUrl=o,!o)return;o=r.src}else n==="canvas"&&window.HTMLCanvasElement&&(o=r.toDataURL());this.load(o)}}},{key:"load",value:function(r){var n=this;if(r){this.url=r,this.imageData={};var o=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Bee.test(r)){Wee.test(r)?this.read(ste(r)):this.clone();return}var i=new XMLHttpRequest,l=this.clone.bind(this);this.reloading=!0,this.xhr=i,i.onabort=l,i.onerror=l,i.ontimeout=l,i.onprogress=function(){i.getResponseHeader("content-type")!==jO&&i.abort()},i.onload=function(){n.read(i.response)},i.onloadend=function(){n.reloading=!1,n.xhr=null},a.checkCrossOrigin&&zO(r)&&o.crossOrigin&&(r=BO(r)),i.open("GET",r,!0),i.responseType="arraybuffer",i.withCredentials=o.crossOrigin==="use-credentials",i.send()}}},{key:"read",value:function(r){var n=this.options,o=this.imageData,a=cte(r),i=0,l=1,u=1;if(a>1){this.url=ite(r,jO);var f=lte(a);i=f.rotate,l=f.scaleX,u=f.scaleY}n.rotatable&&(o.rotate=i),n.scalable&&(o.scaleX=l,o.scaleY=u),this.clone()}},{key:"clone",value:function(){var r=this.element,n=this.url,o=r.crossOrigin,a=n;this.options.checkCrossOrigin&&zO(n)&&(o||(o="anonymous"),a=BO(n)),this.crossOrigin=o,this.crossOriginUrl=a;var i=document.createElement("img");o&&(i.crossOrigin=o),i.src=a||n,i.alt=r.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),xr(i,OO),r.parentNode.insertBefore(i,r.nextSibling)}},{key:"start",value:function(){var r=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var o=Eo.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Eo.navigator.userAgent),a=function(f,h){Gt(r.imageData,{naturalWidth:f,naturalHeight:h,aspectRatio:f/h}),r.initialImageData=Gt({},r.imageData),r.sizing=!1,r.sized=!0,r.build()};if(n.naturalWidth&&!o){a(n.naturalWidth,n.naturalHeight);return}var i=document.createElement("img"),l=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){a(i.width,i.height),o||l.removeChild(i)},i.src=n.src,o||(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;",l.appendChild(i))}},{key:"stop",value:function(){var r=this.image;r.onload=null,r.onerror=null,r.parentNode.removeChild(r),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var r=this.element,n=this.options,o=this.image,a=r.parentNode,i=document.createElement("div");i.innerHTML=Hee;var l=i.querySelector(".".concat(Vt,"-container")),u=l.querySelector(".".concat(Vt,"-canvas")),f=l.querySelector(".".concat(Vt,"-drag-box")),h=l.querySelector(".".concat(Vt,"-crop-box")),d=h.querySelector(".".concat(Vt,"-face"));this.container=a,this.cropper=l,this.canvas=u,this.dragBox=f,this.cropBox=h,this.viewBox=l.querySelector(".".concat(Vt,"-view-box")),this.face=d,u.appendChild(o),xr(r,nn),a.insertBefore(l,r.nextSibling),Co(o,OO),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,xr(h,nn),n.guides||xr(h.getElementsByClassName("".concat(Vt,"-dashed")),nn),n.center||xr(h.getElementsByClassName("".concat(Vt,"-center")),nn),n.background&&xr(l,"".concat(Vt,"-bg")),n.highlight||xr(d,Iee),n.cropBoxMovable&&(xr(d,z0),fu(d,pu,Lw)),n.cropBoxResizable||(xr(h.getElementsByClassName("".concat(Vt,"-line")),nn),xr(h.getElementsByClassName("".concat(Vt,"-point")),nn)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),rn(n.ready)&&On(r,RO,n.ready,{once:!0}),pc(r,RO)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var r=this.cropper.parentNode;r&&r.removeChild(this.cropper),Co(this.element,nn)}}},{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=_te,t}},{key:"setDefaults",value:function(r){Gt(LO,sc(r)&&r)}}])}();Gt(TP.prototype,ute,dte,pte,fte,hte,mte);var gs=function(){return gs=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&j.zoomTo(ee)}(P.currentTarget.cropper,C),S&&S(P)}}));k&&k(T)}return function(){var P,j;(j=(P=O.current)===null||P===void 0?void 0:P.cropper)===null||j===void 0||j.destroy()}},[O]);var M=function(T){return gte.reduce(function(P,j){var F=P,E=j;return F[E],Rv(F,[typeof E=="symbol"?E:E+""])},T)}(gs(gs({},D),{crossOrigin:u,src:a,alt:w}));return y.createElement("div",{style:i,className:l},y.createElement("img",gs({},M,{style:yte,ref:O})))});const Ma={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},vte={once:"once",interval:"interval",intervalBetween:"intervalBetween",specific:"specific"},Fr={seconds:"seconds",minutes:"minutes"},WO=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function go(t){return t<10?`0${t}`:`${t}`}const bte={mode:"interval",interval:{period:1,unit:Fr.minutes}};function Np(t){if(t==="*")return[0,1,2,3,4,5,6];const e=t.split(","),r=[];return e.forEach(n=>{const o=n.split("-");if(o.length===2){const a=parseInt(o[0],10),i=parseInt(o[1],10);for(let l=a;l<=i;l++)r.includes(l===7?0:l)||r.push(l===7?0:l)}else{n==="7"&&(n="0");const a=parseInt(n,10);r.includes(a)||r.push(a)}}),r.sort(),r}function OP(t,e){t=t.replace(/['"]/g,"").trim();const r=t.split(" ");let n,o=null;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",date:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:null,minutes:r[0]||"*",hours:r[1]||"*",date:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n.seconds===null&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)&&(o={mode:"interval",interval:{period:1,unit:Fr.minutes}}),n.seconds==="*"&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:1,unit:Fr.seconds}}:n.seconds===null&&n.minutes.includes("/")&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.minutes.split("/")[1],10),unit:Fr.minutes}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.seconds.split("/")[1],10),unit:Fr.seconds}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.seconds.split("/")[1],10),unit:Fr.seconds,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Np(n.dow)}}:n.seconds===null&&n.minutes.includes("/")&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.minutes.split("/")[1],10),unit:Fr.minutes,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Np(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"specific",specific:{time:`${go(parseInt(n.hours,10))}:${go(parseInt(n.minutes,10))}`,weekdays:Np(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&parseInt(n.date,10).toString()===n.date&&parseInt(n.months,10).toString()===n.months&&(n.dow==="*"||e)&&(o={mode:"once",once:{time:`${go(parseInt(n.hours,10))}:${go(parseInt(n.minutes,10))}`,date:`${go(parseInt(n.date,10))}.${go(parseInt(n.months,10))}`}}),o}class hu extends y.Component{constructor(e){super(e);let r=typeof e.cronExpression=="string"?e.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";r[0]==="{"&&(r="");const n=OP(r||"* * * * *",!0)||bte;this.state={extended:!1,cron:hu.state2cron(n),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:Fr.minutes},intervalBetween:{period:1,unit:Fr.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,n),this.state.cron!==e.cronExpression&&setTimeout(()=>e.onChange&&e.onChange(this.state.cron),100)}static periodArray2text(e,r=7){if(r=r||7,e.length===r)return"*";const n=[];let o=null,a=null;if(!e.length)return"_";for(let i=0;i60&&(n.period=60),n.period!==void 0&&n.period<1&&(n.period=1),n.minutes!==void 0&&n.minutes!==null&&n.minutes>60&&(n.minutes=60),n.minutes!==void 0&&n.minutes!==null&&n.minutes<1&&(n.minutes=1),n.hours!==void 0&&n.hours!==null&&n.hours>24&&(n.hours=24),n.hours!==void 0&&n.hours!==null&&n.hours<1&&(n.hours=1),e.extended)r=`${n.minutes!==void 0&&n.minutes!==null&&n.minutes>1?`*/${n.minutes}`:"*"} ${n.hours!==void 0&&n.hours!==null&&n.hours>1?`*/${n.hours}`:"*"} * * *`;else switch(n.unit){case Fr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * * * * *`;break;case Fr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} * * * *`;break}}else if(e.mode==="intervalBetween"){const n=e.intervalBetween||{period:1,unit:Fr.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let o;switch(n.timeFrom=n.timeFrom||0,n.timeTo=n.timeTo===void 0?24:n.timeTo,n.timeFrom!==0&&n.timeTo===24&&(n.timeTo=23),n.timeFrom===0&&n.timeTo===24?o="*":o=n.timeFrom!==n.timeTo?`${n.timeFrom}-${n.timeTo}`:"*",n.period>60&&(n.period=60),n.period<1&&(n.period=1),n.unit=n.unit||Fr.minutes,n.unit){case Fr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * ${o} * * ${this.periodArray2text(n.weekdays)}`;break;case Fr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} ${o} * * ${this.periodArray2text(n.weekdays)}`;break}}else if(e.mode==="specific"){const n=e.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},o=(n.time||"00:00").split(":");let a=parseInt(o[1],10)||0;a>59&&(a=59),a<0&&(a=0);let i=parseInt(o[0],10)||0;i>23&&(i=59),i<0&&(i=0),r=`${a} ${i} * * ${this.periodArray2text(n.weekdays||[])}`}else if(e.mode==="once"){const n=e.once||{time:"00:00",date:""};n.date||(n.date=`${new Date().getDate()}.${go(new Date().getMonth()+1)}`);const o=(n.time||"00:00").split(":"),a=n.date.split(".");let i=parseInt(o[1],10)||0;i>59&&(i=59),i<0&&(i=0);let l=parseInt(o[0],10)||0;l>23&&(l=59),l<0&&(l=0);let u=parseInt(a[0],10)||1;u>31&&(u=31),u<1&&(l=1);let f=parseInt(a[1],10)||1;f>12&&(f=12),f<1&&(f=1),r=`${i} ${l} ${u} ${f} *`}return r}recalcCron(){this.onChange(hu.state2cron(this.state))}getControlsWeekdaysElements(e){const r=e==="intervalBetween"?this.state.intervalBetween:this.state.specific;return y.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},y.createElement("h5",null,U.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(n=>y.createElement(gt,{key:WO[n],control:y.createElement(tn,{checked:r.weekdays.includes(n),onChange:o=>{const a=JSON.parse(JSON.stringify(this.state[e])),i=a.weekdays.indexOf(n);o.target.checked?i===-1&&a.weekdays.push(n):i!==-1&&a.weekdays.splice(i,1),a.weekdays.sort(),e==="intervalBetween"?this.setState({intervalBetween:a},()=>this.recalcCron()):this.setState({specific:a},()=>this.recalcCron())},value:n.toString()}),label:U.t(WO[n])})))}getControlsPeriodElements(e){const r=e==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?y.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},y.createElement("h5",{style:{marginBottom:5}},U.t("sc_period")),y.createElement(zr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:U.t("sc_minutes"),value:r.minutes,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.minutes=parseInt(n.target.value,10),o.minutes<1&&(o.minutes=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),y.createElement(zr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:U.t("sc_hours"),value:r.hours,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.hours=parseInt(n.target.value,10),o.hours<1&&(o.hours=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):y.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},y.createElement("h5",{style:{marginBottom:5}},U.t("sc_period")),y.createElement(zr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:U.t("sc_every"),value:r.period,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.period=parseInt(n.target.value,10),o.period<1&&(o.period=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),y.createElement(wo,{variant:"standard",style:{verticalAlign:"bottom"},value:r.unit,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.unit=n.target.value,e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())}},y.createElement(fr,{value:"seconds"},U.t("sc_seconds")),")",y.createElement(fr,{value:"minutes"},U.t("sc_minutes")),")"))}getControlsTime(e){const r=e==="once"?this.state.once:this.state.specific;return y.createElement(zi,{variant:"standard",sx:{...Ma.formControl,"&.MuiFormControl-root":Ma.formControlMarginRight}},y.createElement(zr,{variant:"standard",key:"at",label:U.t("sc_time"),value:r.time,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.time=n.target.value,e==="once"?this.setState({once:o},()=>this.recalcCron()):this.setState({specific:o},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const e=this.state.once;if(!e.date){const r=new Date;e.date=`${r.getDate()}.${go(r.getMonth()+1)}`}return y.createElement(zi,{variant:"standard",style:Ma.formControl},y.createElement(zr,{variant:"standard",key:"date",label:U.t("sc_date"),value:e.date,type:"text",slotProps:{htmlInput:{style:Ma.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.once));n.date=r.target.value,this.setState({once:n},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return y.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const e=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),y.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},y.createElement("h5",{style:{marginBottom:5}},U.t("sc_hours")),y.createElement(zi,{variant:"standard",style:Ma.formControl},y.createElement(Tp,{shrink:!0,htmlFor:"age-label-placeholder"},U.t("sc_from")),y.createElement(wo,{variant:"standard",style:{width:100},value:e.timeFrom,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeFrom=parseInt(r.target.value,10),n.timeTo===24&&(n.timeTo=23),this.setState({intervalBetween:n},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>y.createElement(fr,{key:`B_${r}`,value:r},`${go(r)}:00`)))),y.createElement(zi,{variant:"standard",style:Ma.formControl},y.createElement(Tp,{shrink:!0,htmlFor:"age-label-placeholder"},U.t("sc_to")),y.createElement(wo,{variant:"standard",style:{width:100},value:e.timeTo,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeTo=parseInt(r.target.value,10),this.setState({intervalBetween:n},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>y.createElement(fr,{key:`A_${r}`,value:r},`${go(r)}:00`)),!e.timeFrom&&y.createElement(fr,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[y.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(e){e!==this.state.mode&&this.setState({mode:e},()=>this.recalcCron())}onChange(e){e!==this.state.cron&&(this.setState({cron:e}),this.props.onChange&&this.props.onChange(e))}render(){return y.createElement("div",{style:Ma.mainDiv},y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},y.createElement(zr,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?U.t("sc_invalid_cron"):ZN(this.state.cron,this.props.language||"en")),y.createElement("div",null,y.createElement(zi,{variant:"standard",style:{...Ma.formControl,marginLeft:8,marginTop:8}},y.createElement(Tp,null,U.t("ra_Repeat")),y.createElement(wo,{variant:"standard",value:this.state.mode,onChange:e=>this.onModeChange(e.target.value),inputProps:{name:"mode",id:"mode"}},y.createElement(fr,{value:"once"},U.t("sc_once")),y.createElement(fr,{value:"interval"},U.t("sc_interval")),y.createElement(fr,{value:"intervalBetween"},U.t("sc_intervalBetween")),y.createElement(fr,{value:"specific"},U.t("sc_specific"))))),this.state.mode===vte.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const wte={headerID:{fontWeight:"bold",fontStyle:"italic"},radio:{display:"inline-block"},dialogPaper:{height:"calc(100% - 96px)"}};class DXe extends y.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:r}}handleCancel(){this.props.onClose()}handleOk(e){if(!e){const r=Aa.cron2state(this.state.cron);if(r.seconds==="*"||r.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(r.minutes==="*"||r.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?y.createElement(RH,{title:U.t("ra_Please confirm"),text:U.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:e=>this.setState({showWarning:""},()=>{e&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return y.createElement(ra,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":wte.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),y.createElement(aa,{id:"cron-dialog-title"},this.props.title||U.t("ra_Define schedule...")),y.createElement(oa,{style:{height:"100%",overflow:"hidden"}},y.createElement(Aa,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()})),y.createElement(na,null,!!this.props.clearButton&&y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:y.createElement(Dp,null)},this.props.clear||U.t("ra_Clear")),y.createElement(Qt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const xte={dialogPaper:{height:"calc(100% - 96px)"}};class MXe extends y.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof r=="object"||r[0]==="{")&&!this.props.noWizard?"wizard":OP(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(e){this.setState({mode:e})}render(){return y.createElement(ra,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":xte.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},y.createElement(aa,{id:"cron-dialog-title"},this.props.title||U.t("ra_Define schedule...")),y.createElement(oa,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?y.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&y.createElement(y.Fragment,null,y.createElement(Ft,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),y.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},U.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&y.createElement(y.Fragment,null,y.createElement(Ft,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),y.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},U.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&y.createElement(y.Fragment,null,y.createElement(Ft,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),y.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},U.t("sc_cron")))):null,this.state.mode==="simple"&&y.createElement(hu,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()}),this.state.mode==="wizard"&&y.createElement(Tr,{theme:this.props.theme,schedule:this.state.cron,onChange:e=>this.setState({cron:e})}),this.state.mode==="complex"&&y.createElement(Aa,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const fs={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class NXe extends y.Component{constructor(r){super(r);we(this,"dialogName");we(this,"filters");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const n=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(n)}catch{this.filters={}}r.filters&&(this.filters={...this.filters,...r.filters});let o=this.props.selected||[];typeof o!="object"?o=[o]:o=[...o],o=o.filter(a=>a),this.state={selected:o}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let r;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?r=[y.createElement("span",{key:"selected"},U.t("ra_Selected")," "),y.createElement("span",{key:"id",style:fs.headerID},this.state.selected)]:r=[y.createElement("span",{key:"selected"},U.t("ra_Selected")," "),y.createElement("span",{key:"id",style:fs.headerID},U.t("%s items",this.state.selected.length))]:r=this.props.title||U.t("ra_Please select file..."),y.createElement(ra,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{...fs.dialog,...fs.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},y.createElement(aa,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":fs.titleRoot}},r),y.createElement(oa,{style:{...fs.content,...fs.contentMobile}},y.createElement(vee,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(n,o,a)=>{this.setState({selected:Array.isArray(n)?n:[n]},()=>o&&(!this.props.selectOnlyFolders||a)&&this.handleOk())},t:this.props.t||U.t,lang:this.props.lang||U.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",onClick:()=>this.handleOk(),startIcon:y.createElement(Hs,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const Ste={dialogPaper:{height:"calc(100% - 96px)"}};class PXe extends y.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return y.createElement(ra,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":Ste.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},y.createElement(aa,{id:"cron-dialog-title"},this.props.title||U.t("ra_Define CRON...")),y.createElement(oa,{style:{height:"100%",overflow:"hidden"}},y.createElement(hu,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const kte=""+new URL("echarts-BDq-rBJC.png",import.meta.url).href,Cte="Append",$te="Cancel",Ete="Categories",Tte="Checked",Ote="Delete",Dte="Close",Mte="Commercial",Nte="Configure",Pte="Connected",Rte="Copied",Ate="Create",Ite="Crop",jte="Delete",Lte="Delete",Fte="Discard",zte="Disconnected",Bte="Error",Wte="Filter",Ute="Friday",Hte="Latitude",qte="Expires in",Vte="Longitude",Xte="Message",Gte="Monday",Jte="Name",Yte="Objects",Kte="Ok",Zte="Product",Qte="Repeat",ere="Replace",tre="Root",rre="Saturday",nre="Save",ore="Selected",are="States",sre="Sunday",ire="Thursday",cre="Timestamp",lre="Tuesday",ure="Update",dre="Valid till",pre="Value",fre="Version",hre="Wednesday",mre="Width",_re="Yes",gre="different",yre="Everyone can read object",vre="Everyone can read state",bre="Everyone can write object",wre="Everyone can write state",xre="Group can read object",Sre="Group can read state",kre="Group can write object",Cre="Group can write state",$re="Owner can read object",Ere="Owner can read state",Tre="Owner can write object",Ore="Owner can write state",Dre="Buttons",Mre="Changed from",Nre="close",Pre="Create boolean state",Rre="Create channel",Are="Create device",Ire="Create number state",jre="Create state",Lre="Create string state",Fre="days",zre="Fr",Bre="Mo",Wre="Sa",Ure="Su",Hre="Th",qre="Tu",Vre="We",Xre="Expert mode",Gre="All files",Jre="Audio",Yre="Code/JSON",Kre="Images",Zre="Text",Qre="Video",ene="Settings",tne="without",rne="Function",nne="ID",one="Name",ane="Role",sne="Room",ine="Type",cne="Invalid settings",lne="Last change",une="locally",dne="Apr",pne="Aug",fne="Dec",hne="Feb",mne="Jan",_ne="Jul",gne="Jun",yne="Mai",vne="Mar",bne="Nov",wne="Oct",xne="Sep",Sne="Apr",kne="Aug",Cne="Dec",$ne="Feb",Ene="Jan",Tne="Jul",One="Jun",Dne="Mai",Mne="Mar",Nne="Nov",Pne="Oct",Rne="Sep",Ane="none",Ine="Object changed by",jne="Object last changed at",Lne="Settings from other adapter %s",Fne="Quality code",zne="repeat",Bne='To select folder, just hold the key "shift" by clicking the folder.',Wne="State changed by",Une="Object changed from",Hne="Timestamp",qne="Acknowledged",Vne="Comment",Xne="Copy the state value",Gne="Custom settings",Jne="Delete object",Yne="Edit object",Kne="Edit the state value",Zne="From",Qne="Last changed",eoe="Quality",toe="Time stamp",roe="User",noe="Value",ooe="Value",aoe="Warning: The CRON job will run every minute during the specified period!",soe="Warning: The CRON job will run every second during the specified period!",ioe="CRON",coe="Date",loe="Dates",uoe="Day",doe="Day of week",poe="Every",foe="every N days",hoe="every Nth day of the week",moe="every N day of week",_oe="every N hours",goe="every N minutes",yoe="every N months",voe="every N seconds",boe="every day",woe="every day of the week",xoe="every day of the week",Soe="every hour",koe="every minute",Coe="every month",$oe="every second",Eoe="From",Toe="Hours",Ooe="Interval",Doe="Interval between",Moe="Invalid CRON",Noe="Minutes",Poe="months",Roe="Once",Aoe="Period",Ioe="Seconds",joe="Simple",Loe="Specific time",Foe="specific dates",zoe="specific day(s) of the week",Boe="specific day of weeks",Woe="specific hours",Uoe="specific minutes",Hoe="specific months",qoe="specific seconds",Voe="Time",Xoe="To",Goe="Wizard",Joe="all",Yoe="Astro day",Koe="Astro night",Zoe="Dawn",Qoe="Dusk",eae="Golden hour",tae="Golden hour end",rae="Nadir",nae="Nautical dawn",oae="Nautical dusk",aae="Night",sae="Night end",iae="Solar noon",cae="Sunrise",lae="Sunrise end",uae="Sunset",dae="Sunset start",pae="at",fae="at %s",hae="every day",mae="every hour",_ae="every minute",gae="every month",yae="every %s day",vae="every %s hours",bae="every %s minutes",wae="every %s months",xae="every %s weeks",Sae="every %s years",kae="every week",Cae="every year",$ae="from %s to %s",Eae="never",Tae="on %s of %s",Oae="on %s and %s of",Dae="on every date of",Mae="%s",Nae="%s and %s",Pae="on %s",Rae="on %s and %s",Aae="on weekends",Iae="on working days",jae="will ne be not executed any more, because start is in the past",Lae="on %s",Fae="from %s",zae="Execute from to",Bae="to %s",Wae="every",Uae="Specific time",Hae="from",qae="From-to",Vae="Interval time",Xae="invert",Gae="none",Jae="on",Yae="Period",Kae="Daily",Zae="Dates",Qae="Day",ese="Every",tse="Every day",rse="Every month",nse="Every week",ose="Every year",ase="Hours",sse="Minutes",ise="month",cse="Monthly",lse="Once",use="Specific months",dse="Week",pse="Weekdays",fse="Weekend",hse="Weekly",mse="Workdays",_se="Year",gse="Yearly",yse="Specific time",vse="Time",bse="to",wse="Valid",xse="from",Sse="to",kse="Whole day",Cse="every month",$se={"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_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:Cte,"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:$te,"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:Ete,"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:Tte,ra_Clear:Ote,"ra_Clear filter":"Clear filter","ra_Clear icon":"Clear icon","ra_Clone current row":"Clone current row",ra_Close:Dte,"ra_Collapse all nodes":"Collapse all nodes","ra_Collapse one step node":"Collapse one level",ra_Commercial:Mte,ra_Configure:Nte,"ra_Configure visible columns":"Configure visible columns","ra_Confirm deletion of %s":"Confirm deletion of %s",ra_Connected:Pte,ra_Copied:Rte,"ra_Copied %s":'Copied "%s"',"ra_Copy content":"Copy content",ra_Create:Ate,"ra_Create alias":"Create alias","ra_Create folder":"Create folder","ra_Create new folder in %s":"Create new folder in %s",ra_Crop:Ite,"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:jte,ra_Delete:Lte,"ra_Delete (no confirm for 5 mins)":"Delete (no confirm for 5 mins)","ra_Delete current row":"Delete current row","ra_Deselect all":"Unselect all","ra_Device → Channel → State":"Device → Channel → State",ra_Discard:Fte,ra_Disconnected:zte,"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_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 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_Error:Bte,"ra_Expand all nodes":"Expand all nodes","ra_Expand one step node":"Expand one level","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:Wte,"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:Ute,"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_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 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:Hte,"ra_License %s":"License %s","ra_License agreement":"License agreement","ra_License does not exist":"License does not exist",ra_tooltip_expire:qte,"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_Longitude:Vte,'ra_May not trigger "updateLicenses"':'May not trigger "updateLicenses"',ra_Message:Xte,ra_Monday:Gte,"ra_Move down":"Move down","ra_Move up":"Move up",ra_Name:Jte,"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 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_Objects:Yte,ra_Ok:Kte,"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 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_Private certificate":"Private certificate",ra_Product:Zte,"ra_Public certificate":"Public certificate","ra_Quality code":"Quality","ra_Refresh tree":"Refresh tree","ra_Reload files":"Reload files",ra_Repeat:Qte,ra_Replace:ere,"ra_Request timed out":"Request timed out","ra_Restrict to folder":"Restrict to folder",ra_Root:tre,ra_Saturday:rre,ra_Save:nre,"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:ore,"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_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:are,"ra_Suitable license not found in license manager":"Suitable license not found in license manager",ra_Sunday:sre,"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:ire,ra_Timestamp:cre,"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:lre,"ra_Unknown error":"Unknown error","ra_Unknown error!":"Unknown error!",ra_Update:ure,"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:dre,ra_Value:pre,ra_Version:fre,"ra_View file":"View file","ra_View: %s":"View: %s",ra_Wednesday:hre,ra_Width:mre,ra_Yes:_re,"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___different__:gre,ra_aclEveryone_read_object:yre,ra_aclEveryone_read_state:vre,ra_aclEveryone_write_object:bre,ra_aclEveryone_write_state:wre,ra_aclGroup_read_object:xre,ra_aclGroup_read_state:Sre,ra_aclGroup_write_object:kre,ra_aclGroup_write_state:Cre,ra_aclOwner_read_object:$re,ra_aclOwner_read_state:Ere,ra_aclOwner_write_object:Tre,ra_aclOwner_write_state:Ore,ra_buttons:Dre,ra_changedFrom:Mre,ra_close:Nre,ra_create_boolean_state:Pre,ra_create_channel:Rre,ra_create_device:Are,ra_create_number_state:Ire,ra_create_state:jre,ra_create_string_state:Lre,ra_daysShortText:Fre,ra_dow_Fr:zre,ra_dow_Mo:Bre,ra_dow_Sa:Wre,ra_dow_Su:Ure,ra_dow_Th:Hre,ra_dow_Tu:qre,ra_dow_We:Vre,ra_expertMode:Xre,ra_fileType_all:Gre,ra_fileType_audio:Jre,ra_fileType_code:Yre,ra_fileType_images:Kre,ra_fileType_txt:Zre,ra_fileType_video:Qre,"ra_fileType_video,":"Video",ra_filter_customs:ene,ra_filter_customs_without:tne,ra_filter_func:rne,ra_filter_id:nne,ra_filter_name:one,ra_filter_role:ane,ra_filter_room:sne,ra_filter_type:ine,"ra_import data from %s file":"Import data from %s file",ra_invalidConfig:cne,ra_lastChange:lne,ra_locally:une,ra_month_Apr:dne,ra_month_Aug:pne,ra_month_Dec:fne,ra_month_Feb:hne,ra_month_Jan:mne,ra_month_Jul:_ne,ra_month_Jun:gne,ra_month_Mai:yne,ra_month_Mar:vne,ra_month_Nov:bne,ra_month_Oct:wne,ra_month_Sep:xne,ra_months_Apr:Sne,ra_months_Aug:kne,ra_months_Dec:Cne,ra_months_Feb:$ne,ra_months_Jan:Ene,ra_months_Jul:Tne,ra_months_Jun:One,ra_months_Mai:Dne,ra_months_Mar:Mne,ra_months_Nov:Nne,ra_months_Oct:Pne,ra_months_Sep:Rne,ra_none:Ane,ra_object_changed_by:Ine,ra_object_changed_by_user:jne,ra_otherConfig:Lne,ra_qualityCode:Fne,ra_repeat:zne,ra_select_folder_hint:Bne,ra_state_changed_by:Wne,ra_state_changed_from:Une,ra_timestamp:Hne,ra_tooltip_ack:qne,ra_tooltip_comment:Vne,ra_tooltip_copyState:Xne,ra_tooltip_customConfig:Gne,ra_tooltip_deleteObject:Jne,ra_tooltip_editObject:Yne,ra_tooltip_editState:Kne,ra_tooltip_from:Zne,ra_tooltip_lc:Qne,ra_tooltip_quality:eoe,ra_tooltip_ts:toe,ra_tooltip_user:roe,ra_tooltip_value:noe,"ra_use seconds":"use seconds",ra_val:ooe,"ra_via internet":"via internet",ra_warning_every_minute:aoe,ra_warning_every_second:soe,sc_cron:ioe,sc_date:coe,sc_dates:loe,sc_dow:uoe,sc_dows:doe,sc_every:poe,sc_everyN_dates:foe,sc_everyN_dow:hoe,sc_everyN_dows:moe,sc_everyN_hours:_oe,sc_everyN_minutes:goe,sc_everyN_months:yoe,sc_everyN_seconds:voe,sc_every_dates:boe,sc_every_dow:woe,sc_every_dows:xoe,sc_every_hours:Soe,sc_every_minutes:koe,sc_every_months:Coe,sc_every_seconds:$oe,sc_from:Eoe,sc_hours:Toe,sc_interval:Ooe,sc_intervalBetween:Doe,sc_invalid_cron:Moe,sc_minutes:Noe,sc_months:Poe,sc_once:Roe,sc_period:Aoe,sc_seconds:Ioe,sc_simple:joe,sc_specific:Loe,sc_specific_dates:Foe,sc_specific_dow:zoe,sc_specific_dows:Boe,sc_specific_hours:Woe,sc_specific_minutes:Uoe,sc_specific_months:Hoe,sc_specific_seconds:qoe,sc_time:Voe,sc_to:Xoe,sc_wizard:Goe,sch_all:Joe,sch_astroDay:Yoe,sch_astroNight:Koe,sch_astro_dawn:Zoe,sch_astro_dusk:Qoe,sch_astro_goldenHour:eae,sch_astro_goldenHourEnd:tae,sch_astro_nadir:rae,sch_astro_nauticalDawn:nae,sch_astro_nauticalDusk:oae,sch_astro_night:aae,sch_astro_nightEnd:sae,sch_astro_solarNoon:iae,sch_astro_sunrise:cae,sch_astro_sunriseEnd:lae,sch_astro_sunset:uae,sch_astro_sunsetStart:dae,sch_at:pae,sch_desc_atTime:fae,sch_desc_everyDay:hae,sch_desc_everyHour:mae,sch_desc_everyMinute:_ae,sch_desc_everyMonth:gae,sch_desc_everyNDay:yae,sch_desc_everyNHours:vae,sch_desc_everyNMinutes:bae,sch_desc_everyNMonths:wae,sch_desc_everyNWeeks:xae,sch_desc_everyNYears:Sae,sch_desc_everyWeek:kae,sch_desc_everyYear:Cae,sch_desc_intervalFromTo:$ae,sch_desc_never:Eae,sch_desc_onDate:Tae,sch_desc_onDates:Oae,sch_desc_onEveryDate:Dae,sch_desc_onMonth:Mae,sch_desc_onMonths:Nae,sch_desc_onWeekday:Pae,sch_desc_onWeekdays:Rae,sch_desc_onWeekends:Aae,sch_desc_onWorkdays:Iae,sch_desc_onceInPast:jae,sch_desc_once_on:Lae,sch_desc_validFrom:Fae,sch_desc_validFromTo:zae,sch_desc_validTo:Bae,sch_every:Wae,sch_exactTime:Uae,sch_from:Hae,sch_fromTo:qae,sch_intervalTime:Vae,sch_invert:Xae,sch_no_one:Gae,sch_on:Jae,sch_period:Yae,sch_periodDaily:Kae,sch_periodDates:Zae,sch_periodDay:Qae,sch_periodEvery:ese,sch_periodEveryDay:tse,sch_periodEveryMonth:rse,sch_periodEveryWeek:nse,sch_periodEveryYear:ose,sch_periodHours:ase,sch_periodMinutes:sse,sch_periodMonth:ise,sch_periodMonthly:cse,sch_periodOnce:lse,sch_periodSpecificMonths:use,sch_periodWeek:dse,sch_periodWeekdays:pse,sch_periodWeekend:fse,sch_periodWeekly:hse,sch_periodWorkdays:mse,sch_periodYear:_se,sch_periodYearly:gse,sch_specificTime:yse,sch_time:vse,sch_to:bse,sch_valid:wse,sch_validFrom:xse,sch_validTo:Sse,sch_wholeDay:kse,sch_yearEveryMonth:Cse},Ese="Anhängen",Tse="Abbrechen",Ose="Kategorien",Dse="Geprüft",Mse="Löschen",Nse="Schließen",Pse="Kommerziell",Rse="Konfigurieren",Ase="Verbunden",Ise="Kopiert",jse="Erstellen",Lse="Ernte",Fse="Entf",zse="Löschen",Bse="Verwerfen",Wse="Getrennt",Use="Fehler",Hse="Filter",qse="Freitag",Vse="Breite",Xse="Längengrad",Gse="Meldung",Jse="Montag",Yse="Name",Kse="Objekte",Zse="OK",Qse="Produkt",eie="Wiederholen",tie="Ersetzen",rie="Anfang",nie="Samstag",oie="Speichern",aie="Ausgewählt",sie="Zustände",iie="Sonntag",cie="Donnerstag",lie="Zeitstempel",uie="Dienstag",die="Aktualisieren",pie="Gültig bis",fie="Wert",hie="Ausführung",mie="Mittwoch",_ie="Breite",gie="Ja",yie="unterschiedlich",vie="Jeder kann Objekt lesen",bie="Jeder kann Zustand lesen",wie="Jeder kann ein Objekt schreiben",xie="Jeder kann Zustand schreiben",Sie="Gruppe kann Objekt lesen",kie="Gruppe kann Status lesen",Cie="Gruppe kann Objekt schreiben",$ie="Gruppe kann Status schreiben",Eie="Besitzer kann Objekt lesen",Tie="Besitzer kann Zustand lesen",Oie="Besitzer kann Objekt schreiben",Die="Besitzer kann Zustand schreiben",Mie="Tasten",Nie="Geändert von",Pie="Schließen",Rie="Booleschen Zustand erstellen",Aie="Kanal erstellen",Iie="Gerät erstellen",jie="Nummern-Zustand erstellen",Lie="Zustand erstellen",Fie="String-Zustand erstellen",zie="T.",Bie="Fr",Wie="Mo",Uie="Sa",Hie="So",qie="Do",Vie="Di",Xie="Mi",Gie="Expertenmodus",Jie="Alle Dateien",Yie="Audio",Kie="Code/JSON",Zie="Bilder",Qie="Text",ece="Video",tce="Einstellungen",rce="ohne",nce="Funktion",oce="ID",ace="Name",sce="Rolle",ice="Raum",cce="Typ",lce="Ungültige Einstellungen",uce="Letzte Änderung",dce="örtlich",pce="Apr",fce="Aug",hce="Dez",mce="Feb",_ce="Jan",gce="Jul",yce="Jun",vce="Mai",bce="Mär",wce="Nov",xce="Okt",Sce="Sep",kce="Apr",Cce="Aug",$ce="Dez",Ece="Feb",Tce="Jan",Oce="Jul",Dce="Jun",Mce="Mai",Nce="Mär",Pce="Nov",Rce="Okt",Ace="Sep",Ice="kein",jce="Objekt geändert von",Lce="Objekt zuletzt geändert um",Fce="Einstellungen von anderen Adaptern %s",zce="Qualitätscode",Bce="wiederholen",Wce='Um einen Ordner auszuwählen, halten Sie einfach die Taste "Shift" gedrückt, indem Sie auf den Ordner klicken.',Uce="Zustand geändert durch",Hce="Objekt geändert von",qce="Zeitstempel",Vce="Bestätigt",Xce="Kommentar",Gce="Statuswert kopieren",Jce="Benutzerdefinierte Einstellungen",Yce="Objekt löschen",Kce="Objekt bearbeiten",Zce="Statuswert bearbeiten",Qce="Von",ele="Zuletzt geändert",tle="Qualität",rle="Zeitstempel",nle="Benutzer",ole="Wert",ale="Wert",sle="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Minute ausgeführt!",ile="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Sekunde ausgeführt!",cle="CRON",lle="Datum",ule="Tage",dle="Tag",ple="Wochentage",fle="Jeden",hle="alle N Tage",mle="jeden x-ten Tag der Woche",_le="alle N Wochentage",gle="alle N Stunden",yle="alle N Minuten",vle="alle N Monate",ble="alle N Sekunden",wle="jeden Tag",xle="jeden Tag der Woche",Sle="jeden Tag der Woche",kle="jede Stunde",Cle="jede Minute",$le="jeden Monat",Ele="jede Sekunde",Tle="Von",Ole="Stunden",Dle="Intervall",Mle="Intervall zwischen",Nle="Ungültiger CRON",Ple="Minuten",Rle="Monate",Ale="Einmal",Ile="Zeitraum",jle="Sekunden",Lle="Einfach",Fle="Bestimmte Zeit",zle="bestimmte Tage",Ble="bestimmte(r) Tag(e) der Woche",Wle="bestimmten Wochentag",Ule="bestimmte Stunden",Hle="bestimmte Minuten",qle="bestimmte Monate",Vle="bestimmte Sekunden",Xle="Zeit",Gle="Bis",Jle="Wizard",Yle="alle",Kle="Astronomischer Tag",Zle="Astronomische Nacht",Qle="Morgendämmerung",eue="Abenddämmerung",tue="Goldene Stunde",rue="Goldene Stundenende",nue="Nadir",oue="Nautische Morgendämmerung",aue="Nautische Abenddämmerung",sue="Nacht",iue="Nachtende",cue="Sonnenmittag",lue="Sonnenaufgang",uue="Sonnenaufgangende",due="Sonnenuntergang",pue="Sonnenuntergangstart",fue="am",hue="um %s",mue="jeden Tag",_ue="jede Stunde",gue="jede Minute",yue="jeden Monat",vue="jeden %s Tag",bue="alle %s Stunden",wue="alle %s Minuten",xue="alle %s Monate",Sue="alle %s Wochen",kue="alle %s Jahre",Cue="jede Woche",$ue="jedes Jahr",Eue="von %s bis %s",Tue="noch nie",Oue="am %s von %s",Due="am %s und %s von",Mue="an jedem Datum von",Nue="%s",Pue="%s und %s",Rue="auf %s",Aue="auf %s und %s",Iue="an Wochenenden",jue="an Werktagen",Lue="wird nicht mehr ausgeführt, weil der Start in der Vergangenheit ist",Fue="auf %s",zue="von %s",Bue="Ausführen von bis",Wue="bis %s",Uue="jeden",Hue="Bestimmte Zeit",que="von",Vue="Von bis",Xue="Zeitintervall",Gue="umkehren",Jue="keiner",Yue="am",Kue="Zeitraum",Zue="Täglich",Que="Daten",ede="Tag",tde="Jeden",rde="Jeden Tag",nde="Jeden Monat",ode="Jede Woche",ade="Jedes Jahr",sde="Stunden",ide="Minuten",cde="Monat",lde="Monatlich",ude="Einmal",dde="Bestimmte Monate",pde="Woche",fde="Wochentage",hde="Wochenende",mde="Wöchentlich",_de="Arbeitstage",gde="Jahr",yde="Jährlich",vde="Bestimmte Zeit",bde="Zeit",wde="zu",xde="Gültigkeit",Sde="von",kde="bis",Cde="Ganzer Tag",$de="jeden Monat",Ede={"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_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:Ese,"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:Tse,"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:Ose,"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:Dse,ra_Clear:Mse,"ra_Clear filter":"Filter löschen","ra_Clear icon":"Symbol löschen","ra_Clone current row":"Aktuelle Zeile klonen",ra_Close:Nse,"ra_Collapse all nodes":"Alle Knoten zuklappen","ra_Collapse one step node":"Eine Ebene zuklappen",ra_Commercial:Pse,ra_Configure:Rse,"ra_Configure visible columns":"Spalten Konfigurieren","ra_Confirm deletion of %s":"Das Löschen von %s bestätigen",ra_Connected:Ase,ra_Copied:Ise,"ra_Copied %s":'"%s" kopiert',"ra_Copy content":"Inhalte kopieren",ra_Create:jse,"ra_Create alias":"Alias erstellen","ra_Create folder":"Ordner erstellen","ra_Create new folder in %s":'Neuen Ordner in "%s" erstellen',ra_Crop:Lse,"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:Fse,ra_Delete:zse,"ra_Delete (no confirm for 5 mins)":"Löschen (keine Bestätigung für 5 Minuten)","ra_Delete current row":"Aktuelle Zeile löschen","ra_Deselect all":"Alles abwählen","ra_Device → Channel → State":"Gerät → Kanal → Zustand",ra_Discard:Bse,ra_Disconnected:Wse,"ra_Do not export values of states":"Keine Zustandswerte exportieren","ra_Do not use let's encrypt":"Let's encrypt nicht verwenden","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 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_Error:Use,"ra_Expand all nodes":"Alle Knoten aufklappen","ra_Expand one step node":"Eine Ebene aufklappen","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:Hse,"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:qse,"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_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 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:Vse,"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_Longitude:Xse,'ra_May not trigger "updateLicenses"':"Löst möglicherweise nicht „updateLicenses“ aus",ra_Message:Gse,ra_Monday:Jse,"ra_Move down":"Nach unten","ra_Move up":"Nach oben",ra_Name:Yse,"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 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_Objects:Kse,ra_Ok:Zse,"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 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_Private certificate":"Privates Zertifikat",ra_Product:Qse,"ra_Public certificate":"Öffentliches Zertifikat","ra_Quality code":"Qualität","ra_Refresh tree":"Baum aktualisieren","ra_Reload files":"Dateien neu laden",ra_Repeat:eie,ra_Replace:tie,"ra_Request timed out":"Zeitüberschreitung der Anforderung","ra_Restrict to folder":"Auf Ordner beschränken",ra_Root:rie,ra_Saturday:nie,ra_Save:oie,"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:aie,"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_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:sie,"ra_Suitable license not found in license manager":"Passende Lizenz im Lizenzmanager nicht gefunden",ra_Sunday:iie,"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:cie,ra_Timestamp:lie,"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:uie,"ra_Unknown error":"Unbekannter Fehler","ra_Unknown error!":"Unbekannter Fehler!",ra_Update:die,"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:pie,ra_Value:fie,ra_Version:hie,"ra_View file":"Datei ansehen","ra_View: %s":"Anschauen: %s",ra_Wednesday:mie,ra_Width:_ie,ra_Yes:gie,"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___different__:yie,ra_aclEveryone_read_object:vie,ra_aclEveryone_read_state:bie,ra_aclEveryone_write_object:wie,ra_aclEveryone_write_state:xie,ra_aclGroup_read_object:Sie,ra_aclGroup_read_state:kie,ra_aclGroup_write_object:Cie,ra_aclGroup_write_state:$ie,ra_aclOwner_read_object:Eie,ra_aclOwner_read_state:Tie,ra_aclOwner_write_object:Oie,ra_aclOwner_write_state:Die,ra_buttons:Mie,ra_changedFrom:Nie,ra_close:Pie,ra_create_boolean_state:Rie,ra_create_channel:Aie,ra_create_device:Iie,ra_create_number_state:jie,ra_create_state:Lie,ra_create_string_state:Fie,ra_daysShortText:zie,ra_dow_Fr:Bie,ra_dow_Mo:Wie,ra_dow_Sa:Uie,ra_dow_Su:Hie,ra_dow_Th:qie,ra_dow_Tu:Vie,ra_dow_We:Xie,ra_expertMode:Gie,ra_fileType_all:Jie,ra_fileType_audio:Yie,ra_fileType_code:Kie,ra_fileType_images:Zie,ra_fileType_txt:Qie,ra_fileType_video:ece,"ra_fileType_video,":"Video",ra_filter_customs:tce,ra_filter_customs_without:rce,ra_filter_func:nce,ra_filter_id:oce,ra_filter_name:ace,ra_filter_role:sce,ra_filter_room:ice,ra_filter_type:cce,"ra_import data from %s file":"Daten aus %s-Datei importieren",ra_invalidConfig:lce,ra_lastChange:uce,ra_locally:dce,ra_month_Apr:pce,ra_month_Aug:fce,ra_month_Dec:hce,ra_month_Feb:mce,ra_month_Jan:_ce,ra_month_Jul:gce,ra_month_Jun:yce,ra_month_Mai:vce,ra_month_Mar:bce,ra_month_Nov:wce,ra_month_Oct:xce,ra_month_Sep:Sce,ra_months_Apr:kce,ra_months_Aug:Cce,ra_months_Dec:$ce,ra_months_Feb:Ece,ra_months_Jan:Tce,ra_months_Jul:Oce,ra_months_Jun:Dce,ra_months_Mai:Mce,ra_months_Mar:Nce,ra_months_Nov:Pce,ra_months_Oct:Rce,ra_months_Sep:Ace,ra_none:Ice,ra_object_changed_by:jce,ra_object_changed_by_user:Lce,ra_otherConfig:Fce,ra_qualityCode:zce,ra_repeat:Bce,ra_select_folder_hint:Wce,ra_state_changed_by:Uce,ra_state_changed_from:Hce,ra_timestamp:qce,ra_tooltip_ack:Vce,ra_tooltip_comment:Xce,ra_tooltip_copyState:Gce,ra_tooltip_customConfig:Jce,ra_tooltip_deleteObject:Yce,ra_tooltip_editObject:Kce,ra_tooltip_editState:Zce,ra_tooltip_from:Qce,ra_tooltip_lc:ele,ra_tooltip_quality:tle,ra_tooltip_ts:rle,ra_tooltip_user:nle,ra_tooltip_value:ole,"ra_use seconds":"Sekunden benutzen",ra_val:ale,"ra_via internet":"übers Internet",ra_warning_every_minute:sle,ra_warning_every_second:ile,sc_cron:cle,sc_date:lle,sc_dates:ule,sc_dow:dle,sc_dows:ple,sc_every:fle,sc_everyN_dates:hle,sc_everyN_dow:mle,sc_everyN_dows:_le,sc_everyN_hours:gle,sc_everyN_minutes:yle,sc_everyN_months:vle,sc_everyN_seconds:ble,sc_every_dates:wle,sc_every_dow:xle,sc_every_dows:Sle,sc_every_hours:kle,sc_every_minutes:Cle,sc_every_months:$le,sc_every_seconds:Ele,sc_from:Tle,sc_hours:Ole,sc_interval:Dle,sc_intervalBetween:Mle,sc_invalid_cron:Nle,sc_minutes:Ple,sc_months:Rle,sc_once:Ale,sc_period:Ile,sc_seconds:jle,sc_simple:Lle,sc_specific:Fle,sc_specific_dates:zle,sc_specific_dow:Ble,sc_specific_dows:Wle,sc_specific_hours:Ule,sc_specific_minutes:Hle,sc_specific_months:qle,sc_specific_seconds:Vle,sc_time:Xle,sc_to:Gle,sc_wizard:Jle,sch_all:Yle,sch_astroDay:Kle,sch_astroNight:Zle,sch_astro_dawn:Qle,sch_astro_dusk:eue,sch_astro_goldenHour:tue,sch_astro_goldenHourEnd:rue,sch_astro_nadir:nue,sch_astro_nauticalDawn:oue,sch_astro_nauticalDusk:aue,sch_astro_night:sue,sch_astro_nightEnd:iue,sch_astro_solarNoon:cue,sch_astro_sunrise:lue,sch_astro_sunriseEnd:uue,sch_astro_sunset:due,sch_astro_sunsetStart:pue,sch_at:fue,sch_desc_atTime:hue,sch_desc_everyDay:mue,sch_desc_everyHour:_ue,sch_desc_everyMinute:gue,sch_desc_everyMonth:yue,sch_desc_everyNDay:vue,sch_desc_everyNHours:bue,sch_desc_everyNMinutes:wue,sch_desc_everyNMonths:xue,sch_desc_everyNWeeks:Sue,sch_desc_everyNYears:kue,sch_desc_everyWeek:Cue,sch_desc_everyYear:$ue,sch_desc_intervalFromTo:Eue,sch_desc_never:Tue,sch_desc_onDate:Oue,sch_desc_onDates:Due,sch_desc_onEveryDate:Mue,sch_desc_onMonth:Nue,sch_desc_onMonths:Pue,sch_desc_onWeekday:Rue,sch_desc_onWeekdays:Aue,sch_desc_onWeekends:Iue,sch_desc_onWorkdays:jue,sch_desc_onceInPast:Lue,sch_desc_once_on:Fue,sch_desc_validFrom:zue,sch_desc_validFromTo:Bue,sch_desc_validTo:Wue,sch_every:Uue,sch_exactTime:Hue,sch_from:que,sch_fromTo:Vue,sch_intervalTime:Xue,sch_invert:Gue,sch_no_one:Jue,sch_on:Yue,sch_period:Kue,sch_periodDaily:Zue,sch_periodDates:Que,sch_periodDay:ede,sch_periodEvery:tde,sch_periodEveryDay:rde,sch_periodEveryMonth:nde,sch_periodEveryWeek:ode,sch_periodEveryYear:ade,sch_periodHours:sde,sch_periodMinutes:ide,sch_periodMonth:cde,sch_periodMonthly:lde,sch_periodOnce:ude,sch_periodSpecificMonths:dde,sch_periodWeek:pde,sch_periodWeekdays:fde,sch_periodWeekend:hde,sch_periodWeekly:mde,sch_periodWorkdays:_de,sch_periodYear:gde,sch_periodYearly:yde,sch_specificTime:vde,sch_time:bde,sch_to:wde,sch_valid:xde,sch_validFrom:Sde,sch_validTo:kde,sch_wholeDay:Cde,sch_yearEveryMonth:$de},Tde="Добавить",Ode="Отмена",Dde="Категории",Mde="Проверено",Nde="Удалить",Pde="Закрыть",Rde="Коммерческая",Ade="Настроить",Ide="Соединение установлено",jde="скопировано",Lde="Создать",Fde="Обрезать",zde="Delete",Bde="Удалить",Wde="Отказаться",Ude="Отключено",Hde="Ошибка",qde="Фильтр",Vde="Пятница",Xde="Широта",Gde="Долгота",Jde="Сообщение",Yde="Понедельник",Kde="Имя",Zde="Объекты",Qde="Ok",epe="Продукт",tpe="Повторение",rpe="Заменять",npe="Начало",ope="Суббота",ape="Сохранить",spe="выбранный",ipe="Состояния",cpe="Воскресенье",lpe="Четверг",upe="Времени",dpe="Вторник",ppe="Обновить",fpe="Годен до",hpe="Значение",mpe="Версия",_pe="Среда",gpe="Ширина",ype="Да",vpe="разное",bpe="Каждый может читать объект",wpe="Каждый может читать состояние",xpe="Каждый может написать объект",Spe="Каждый может написать состояние",kpe="Группа может читать объект",Cpe="Группа может читать состояние",$pe="Группа может писать объект",Epe="Группа может записывать состояние",Tpe="Владелец может читать объект",Ope="Владелец может читать состояние",Dpe="Владелец может писать объект",Mpe="Владелец может писать состояние",Npe="Кнопки",Ppe="Изменено с",Rpe="Закрыть",Ape="Создать логическое состояние",Ipe="Создать канал",jpe="Создать устройство",Lpe="Создать состояние номера",Fpe="Создать состояние",zpe="Создать состояние строки",Bpe="д.",Wpe="Пт",Upe="Пн",Hpe="Сб",qpe="Вс",Vpe="Чт",Xpe="Вт",Gpe="Ср",Jpe="Экспертный режим",Ype="Все файлы",Kpe="Аудио",Zpe="Код/JSON",Qpe="Картинки",efe="Текст",tfe="видео",rfe="настройки",nfe="без",ofe="функция",afe="ID",sfe="Имя",ife="роль",cfe="комната",lfe="Тип",ufe="Неверные настройки",dfe="Последнее изменение",pfe="локально",ffe="Апр",hfe="Авг",mfe="Дек",_fe="Фев",gfe="Янв",yfe="Июл",vfe="Июн",bfe="Май",wfe="Мрт",xfe="Ноя",Sfe="Окт",kfe="Сен",Cfe="Апр",$fe="Авг",Efe="Дек",Tfe="Фев",Ofe="Янв",Dfe="Июнь",Mfe="Июль",Nfe="Май",Pfe="Март",Rfe="Ноя",Afe="Окт",Ife="Сен",jfe="ничего",Lfe="Объект изменен",Ffe="Последний раз объект изменен в",zfe="Настройки из другого адаптера %s",Bfe="Код качества",Wfe="повтор",Ufe="Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.",Hfe="Состояние изменено",qfe="Объект изменен с",Vfe="Отметка времени",Xfe="Подтверждено",Gfe="Комментарий",Jfe="Скопируйте значение состояния",Yfe="Пользовательские настройки",Kfe="Удалить объект",Zfe="Редактировать объект",Qfe="Изменить значение состояния",ehe="От",the="Последнее изменение",rhe="Качество",nhe="Отметка времени",ohe="пользователь",ahe="Значение",she="Значение",ihe="Внимание: задание CRON будет запускаться каждую минуту в течение указанного периода!",che="Внимание: задание CRON будет выполняться каждую секунду в течение указанного периода!",lhe="CRON",uhe="Дата",dhe="Даты",phe="День",fhe="День недели",hhe="каждый(ую/ые)",mhe="каждый N день",_he="каждый N-й день недели",ghe="каждый N день недели",yhe="каждые N часов",vhe="каждые N минут",bhe="каждые N месяцев",whe="каждые N секунд",xhe="каждый день",She="Каждый день недели",khe="каждый день недели",Che="каждый час",$he="каждую минуту",Ehe="каждый месяц",The="каждую секунду",Ohe="От",Dhe="часы",Mhe="Интервал",Nhe="Интервал между",Phe="Неверный CRON",Rhe="минуты",Ahe="Месяцы",Ihe="один раз",jhe="Период",Lhe="секунды",Fhe="Просто",zhe="Конкретное время",Bhe="конкретные даты",Whe="конкретный день(а) недели",Uhe="конкретный день недели",Hhe="конкретные часы",qhe="конкретные минуты",Vhe="конкретные месяцы",Xhe="конкретные секунды",Ghe="Время",Jhe="До",Yhe="Форма",Khe="все",Zhe="днём",Qhe="ночью",eme="Рассвет",tme="Сумерки",rme="Золотой час",nme="Конец золотого часа",ome="Надир",ame="Морской рассвет",sme="Морские сумерки",ime="Ночь",cme="Конец ночи",lme="Солнечный полдень",ume="Восход",dme="Восход солнца",pme="Заход солнца",fme="Начало заката",hme="дата",mme="в %s",_me="каждый день",gme="каждый час",yme="каждую минуту",vme="каждый месяц",bme="каждый %s день",wme="каждый %s часов",xme="каждые %s минут",Sme="каждые %s месяцев",kme="каждые %s недель",Cme="каждые %s лет",$me="каждую неделю",Eme="каждый год",Tme="от %s до %s",Ome="никогда",Dme="%s %s",Mme="%s и %s",Nme="в каждый день",Pme="%s",Rme="%s и %s",Ame="%s",Ime="%s и %s",jme="на выходных",Lme="в рабочие дни",Fme="не будет больше выполняться, потому что начало в прошлом",zme="%s",Bme="%s",Wme="Выполнить с",Ume="%s",Hme="каждый",qme="Конкретное время",Vme="от",Xme="От и до",Gme="Интервал времени",Jme="инвертировать",Yme="никакой",Kme="на",Zme="период",Qme="Ежедневно",e_e="Даты",t_e="День",r_e="каждый",n_e="Каждый день",o_e="Каждый месяц",a_e="Каждую неделю",s_e="Каждый год",i_e="часов",c_e="минут",l_e="месяц",u_e="ежемесячно",d_e="однажды",p_e="Конкретные месяцы",f_e="Неделю",h_e="Будние дни",m_e="выходные",__e="еженедельно",g_e="Рабочие дни",y_e="Год",v_e="каждый год",b_e="Конкретное время",w_e="Время",x_e="в",S_e="действительный",k_e="от",C_e="в",$_e="Весь день",E_e="каждый месяц",T_e={"ra_%s links from aliases":"%s ссылок из псевдонимов","ra_%s object(s) processed":"Объектов обработано: %s","ra_%s was imported":"%s был импортирован","ra_Accept license":"Принять лицензию","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:Tde,"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:Ode,"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:Dde,"ra_Chained certificate":"Chained сертификат","ra_Change color theme":"Изменить цветовую тему","ra_Changed from":"Изменено","ra_Channel → State":"Канал → Состояние","ra_Check license":"Проверить лицензию",ra_Checked:Mde,ra_Clear:Nde,"ra_Clear filter":"Очистить фильтр","ra_Clear icon":"Очистить значок","ra_Clone current row":"Клонировать текущую строку",ra_Close:Pde,"ra_Collapse all nodes":"Свернуть все узлы","ra_Collapse one step node":"Свернуть один уровень",ra_Commercial:Rde,ra_Configure:Ade,"ra_Configure visible columns":"Настроить видимые столбцы","ra_Confirm deletion of %s":"Подтвердите удаление %s",ra_Connected:Ide,ra_Copied:jde,"ra_Copied %s":'Скопировано "%s"',"ra_Copy content":"Копировать содержимое",ra_Create:Lde,"ra_Create alias":"Создать псевдоним","ra_Create folder":"Создать папку","ra_Create new folder in %s":"Создать новую папку в %s",ra_Crop:Fde,"ra_Define CRON...":"Определите CRON...","ra_Define functions":"Задать функции","ra_Define rooms":"Задать комнаты","ra_Define schedule":"Задать расписание","ra_Define schedule...":"Определить расписание ...",ra_Del:zde,ra_Delete:Bde,"ra_Delete (no confirm for 5 mins)":"Удалить (без подтверждения в течение 5 минут)","ra_Delete current row":"Удалить текущую строку","ra_Deselect all":"Убрать выбор везде","ra_Device → Channel → State":"Устройство → Канал → Состояние",ra_Discard:Wde,ra_Disconnected:Ude,"ra_Do not export values of states":"Не экспортировать значения состояний","ra_Do not use let's encrypt":"Не использовать Let’s Encrypt","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 function":"Изменить функцию","ra_Edit object field":"Поле редактирования объекта","ra_Edit role":"Изменить роль","ra_Edit room":"Редактировать комнату","ra_Edit value":"Изменить значение",ra_Error:Hde,"ra_Expand all nodes":"Развернуть все узлы","ra_Expand one step node":"Открыть один уровень","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:qde,"ra_Filter files":"Фильтровать файлы","ra_Folder name":"Имя папки","ra_Folder → Channel → State":"Папка → Канал → Состояние","ra_Folder → Device → Channel → State":"Папка → Устройство → Канал → Состояние","ra_Folder → State":"Папка → Состояние","ra_Folders always first":"Папки всегда на первом месте",ra_Friday:Vde,"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_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 answer from server":"Неверный ответ от сервера","ra_Invalid parent folder!":"Неверная родительская папка!","ra_Invalid structure":"Неверная структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Последнее изменение",ra_Latitude:Xde,"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_Longitude:Gde,'ra_May not trigger "updateLicenses"':"Не может запускать «updateLicenses»",ra_Message:Jde,ra_Monday:Yde,"ra_Move down":"Вниз","ra_Move up":"Вверх",ra_Name:Kde,"ra_No data found in file":"Данные в файле не найдены","ra_No one license found in license manager":"В менеджере лицензий не найдена ни одна лицензия","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_Objects:Zde,ra_Ok:Qde,"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 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_Private certificate":"Частный сертификат",ra_Product:epe,"ra_Public certificate":"Публичный сертификат","ra_Quality code":"Валидность","ra_Refresh tree":"Обновить дерево","ra_Reload files":"Обновить",ra_Repeat:tpe,ra_Replace:rpe,"ra_Request timed out":"Истекло время запроса","ra_Restrict to folder":"Ограничить папкой",ra_Root:npe,ra_Saturday:ope,ra_Save:ape,"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:spe,"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_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:ipe,"ra_Suitable license not found in license manager":"Подходящая лицензия не найдена в менеджере лицензий",ra_Sunday:cpe,"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:lpe,ra_Timestamp:upe,"ra_Toggle expert mode":"Переключить экспертный режим","ra_Toggle the states view":"Переключить режим просмотра состояний","ra_Toggle view mode":"Переключить режим просмотра","ra_Too big":"Слишком большое","ra_Too small":"Слишком маленькое","ra_Transparent dialog":"Прозрачный диалог",ra_Tuesday:dpe,"ra_Unknown error":"Неизвестная ошибка","ra_Unknown error!":"Неизвестная ошибка!",ra_Update:ppe,"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:fpe,ra_Value:hpe,ra_Version:mpe,"ra_View file":"Посмотреть файл","ra_View: %s":"Просмотр: %s",ra_Wednesday:_pe,ra_Width:gpe,ra_Yes:ype,"ra_You can export all objects or just the selected branch.":"Вы можете экспортировать все объекты или только выбранную ветвь.","ra_You can filter entries by entering here some text":"Вы можете отфильтровать записи, введя здесь текст",ra___different__:vpe,ra_aclEveryone_read_object:bpe,ra_aclEveryone_read_state:wpe,ra_aclEveryone_write_object:xpe,ra_aclEveryone_write_state:Spe,ra_aclGroup_read_object:kpe,ra_aclGroup_read_state:Cpe,ra_aclGroup_write_object:$pe,ra_aclGroup_write_state:Epe,ra_aclOwner_read_object:Tpe,ra_aclOwner_read_state:Ope,ra_aclOwner_write_object:Dpe,ra_aclOwner_write_state:Mpe,ra_buttons:Npe,ra_changedFrom:Ppe,ra_close:Rpe,ra_create_boolean_state:Ape,ra_create_channel:Ipe,ra_create_device:jpe,ra_create_number_state:Lpe,ra_create_state:Fpe,ra_create_string_state:zpe,ra_daysShortText:Bpe,ra_dow_Fr:Wpe,ra_dow_Mo:Upe,ra_dow_Sa:Hpe,ra_dow_Su:qpe,ra_dow_Th:Vpe,ra_dow_Tu:Xpe,ra_dow_We:Gpe,ra_expertMode:Jpe,ra_fileType_all:Ype,ra_fileType_audio:Kpe,ra_fileType_code:Zpe,ra_fileType_images:Qpe,ra_fileType_txt:efe,ra_fileType_video:tfe,"ra_fileType_video,":"видео",ra_filter_customs:rfe,ra_filter_customs_without:nfe,ra_filter_func:ofe,ra_filter_id:afe,ra_filter_name:sfe,ra_filter_role:ife,ra_filter_room:cfe,ra_filter_type:lfe,"ra_import data from %s file":"Импортировать данные из файла %s",ra_invalidConfig:ufe,ra_lastChange:dfe,ra_locally:pfe,ra_month_Apr:ffe,ra_month_Aug:hfe,ra_month_Dec:mfe,ra_month_Feb:_fe,ra_month_Jan:gfe,ra_month_Jul:yfe,ra_month_Jun:vfe,ra_month_Mai:bfe,ra_month_Mar:wfe,ra_month_Nov:xfe,ra_month_Oct:Sfe,ra_month_Sep:kfe,ra_months_Apr:Cfe,ra_months_Aug:$fe,ra_months_Dec:Efe,ra_months_Feb:Tfe,ra_months_Jan:Ofe,ra_months_Jul:Dfe,ra_months_Jun:Mfe,ra_months_Mai:Nfe,ra_months_Mar:Pfe,ra_months_Nov:Rfe,ra_months_Oct:Afe,ra_months_Sep:Ife,ra_none:jfe,ra_object_changed_by:Lfe,ra_object_changed_by_user:Ffe,ra_otherConfig:zfe,ra_qualityCode:Bfe,ra_repeat:Wfe,ra_select_folder_hint:Ufe,ra_state_changed_by:Hfe,ra_state_changed_from:qfe,ra_timestamp:Vfe,ra_tooltip_ack:Xfe,ra_tooltip_comment:Gfe,ra_tooltip_copyState:Jfe,ra_tooltip_customConfig:Yfe,ra_tooltip_deleteObject:Kfe,ra_tooltip_editObject:Zfe,ra_tooltip_editState:Qfe,ra_tooltip_from:ehe,ra_tooltip_lc:the,ra_tooltip_quality:rhe,ra_tooltip_ts:nhe,ra_tooltip_user:ohe,ra_tooltip_value:ahe,"ra_use seconds":"секунды",ra_val:she,"ra_via internet":"через интернет",ra_warning_every_minute:ihe,ra_warning_every_second:che,sc_cron:lhe,sc_date:uhe,sc_dates:dhe,sc_dow:phe,sc_dows:fhe,sc_every:hhe,sc_everyN_dates:mhe,sc_everyN_dow:_he,sc_everyN_dows:ghe,sc_everyN_hours:yhe,sc_everyN_minutes:vhe,sc_everyN_months:bhe,sc_everyN_seconds:whe,sc_every_dates:xhe,sc_every_dow:She,sc_every_dows:khe,sc_every_hours:Che,sc_every_minutes:$he,sc_every_months:Ehe,sc_every_seconds:The,sc_from:Ohe,sc_hours:Dhe,sc_interval:Mhe,sc_intervalBetween:Nhe,sc_invalid_cron:Phe,sc_minutes:Rhe,sc_months:Ahe,sc_once:Ihe,sc_period:jhe,sc_seconds:Lhe,sc_simple:Fhe,sc_specific:zhe,sc_specific_dates:Bhe,sc_specific_dow:Whe,sc_specific_dows:Uhe,sc_specific_hours:Hhe,sc_specific_minutes:qhe,sc_specific_months:Vhe,sc_specific_seconds:Xhe,sc_time:Ghe,sc_to:Jhe,sc_wizard:Yhe,sch_all:Khe,sch_astroDay:Zhe,sch_astroNight:Qhe,sch_astro_dawn:eme,sch_astro_dusk:tme,sch_astro_goldenHour:rme,sch_astro_goldenHourEnd:nme,sch_astro_nadir:ome,sch_astro_nauticalDawn:ame,sch_astro_nauticalDusk:sme,sch_astro_night:ime,sch_astro_nightEnd:cme,sch_astro_solarNoon:lme,sch_astro_sunrise:ume,sch_astro_sunriseEnd:dme,sch_astro_sunset:pme,sch_astro_sunsetStart:fme,sch_at:hme,sch_desc_atTime:mme,sch_desc_everyDay:_me,sch_desc_everyHour:gme,sch_desc_everyMinute:yme,sch_desc_everyMonth:vme,sch_desc_everyNDay:bme,sch_desc_everyNHours:wme,sch_desc_everyNMinutes:xme,sch_desc_everyNMonths:Sme,sch_desc_everyNWeeks:kme,sch_desc_everyNYears:Cme,sch_desc_everyWeek:$me,sch_desc_everyYear:Eme,sch_desc_intervalFromTo:Tme,sch_desc_never:Ome,sch_desc_onDate:Dme,sch_desc_onDates:Mme,sch_desc_onEveryDate:Nme,sch_desc_onMonth:Pme,sch_desc_onMonths:Rme,sch_desc_onWeekday:Ame,sch_desc_onWeekdays:Ime,sch_desc_onWeekends:jme,sch_desc_onWorkdays:Lme,sch_desc_onceInPast:Fme,sch_desc_once_on:zme,sch_desc_validFrom:Bme,sch_desc_validFromTo:Wme,sch_desc_validTo:Ume,sch_every:Hme,sch_exactTime:qme,sch_from:Vme,sch_fromTo:Xme,sch_intervalTime:Gme,sch_invert:Jme,sch_no_one:Yme,sch_on:Kme,sch_period:Zme,sch_periodDaily:Qme,sch_periodDates:e_e,sch_periodDay:t_e,sch_periodEvery:r_e,sch_periodEveryDay:n_e,sch_periodEveryMonth:o_e,sch_periodEveryWeek:a_e,sch_periodEveryYear:s_e,sch_periodHours:i_e,sch_periodMinutes:c_e,sch_periodMonth:l_e,sch_periodMonthly:u_e,sch_periodOnce:d_e,sch_periodSpecificMonths:p_e,sch_periodWeek:f_e,sch_periodWeekdays:h_e,sch_periodWeekend:m_e,sch_periodWeekly:__e,sch_periodWorkdays:g_e,sch_periodYear:y_e,sch_periodYearly:v_e,sch_specificTime:b_e,sch_time:w_e,sch_to:x_e,sch_valid:S_e,sch_validFrom:k_e,sch_validTo:C_e,sch_wholeDay:$_e,sch_yearEveryMonth:E_e},O_e="Acrescentar",D_e="Cancelar",M_e="Categorias",N_e="Verificado",P_e="Excluir",R_e="Perto",A_e="Comercial",I_e="Configurar",j_e="Conectado",L_e="Copiado",F_e="Crio",z_e="Colheita",B_e="Delete",W_e="Excluir",U_e="Descartar",H_e="Desconectado",q_e="Erro",V_e="Filtro",X_e="Sexta-feira",G_e="Latitude",J_e="Longitude",Y_e="mensagem",K_e="Segunda-feira",Z_e="Nome",Q_e="Objetos",ege="Está bem",tge="produtos",rge="Repita",nge="Substituir",oge="Raiz",age="Sábado",sge="Salve ",ige="Selecionado",cge="Estados",lge="Domingo",uge="Quinta-feira",dge="Timestamp",pge="Terça-feira",fge="Atualizar",hge="Válida até",mge="Valor",_ge="Versão",gge="Quarta-feira",yge="Largura",vge="Sim",bge="diferente",wge="Todos podem ler objetos",xge="Todos podem ler o estado",Sge="Todos podem escrever objetos",kge="Todos podem escrever o estado",Cge="O grupo pode ler o objeto",$ge="O grupo pode ler o estado",Ege="O grupo pode escrever o objeto",Tge="O grupo pode escrever o estado",Oge="O proprietário pode ler o objeto",Dge="O proprietário pode ler o estado",Mge="O proprietário pode escrever o objeto",Nge="O proprietário pode escrever o estado",Pge="Botões",Rge="Mudou de",Age="fechar",Ige="Criar estado booleano",jge="Criar canal",Lge="Criar dispositivo",Fge="Criar estado numérico",zge="Criar estado",Bge="Criar estado de string",Wge="d.",Uge="Fr",Hge="Mo",qge="Sa",Vge="Su",Xge="º",Gge="Tu",Jge="Nós",Yge="Modo especialista",Kge="Todos os arquivos",Zge="áudio",Qge="Código/JSON",eye="Imagens",tye="Texto",rye="Vídeo",nye="Configurações",oye="sem",aye="Função",sye="ID",iye="Nome",cye="Papel (Função)",lye="Quarto",uye="Tipo",dye="Configurações inválidas",pye="Última mudança",fye="localmente",hye="abril",mye="agosto",_ye="dezembro",gye="fevereiro",yye="janeiro",vye="julho",bye="junho",wye="Mai",xye="março",Sye="novembro",kye="outubro",Cye="setembro",$ye="abril",Eye="agosto",Tye="dezembro",Oye="fevereiro",Dye="janeiro",Mye="julho",Nye="junho",Pye="Mai",Rye="março",Aye="novembro",Iye="outubro",jye="setembro",Lye="Nenhum",Fye="Objeto alterado por",zye="Objeto alterado pela última vez em",Bye="Configurações de outro adaptador %s",Wye="Código de qualidade",Uye="repetir",Hye='Para selecionar a pasta, basta segurar a tecla "shift" clicando na pasta.',qye="Estado alterado por",Vye="Objeto alterado de",Xye="Timestamp",Gye="Confirmado",Jye="Comente",Yye="Copie o valor do estado",Kye="Opções customizadas",Zye="Excluir objeto",Qye="Editar objeto",eve="Edite o valor do estado",tve="De",rve="Última alteração",nve="Qualidade",ove="Timestamp",ave="Usuário",sve="Valor",ive="Valor",cve="Aviso: O trabalho CRON será executado a cada minuto durante o período especificado!",lve="Aviso: O trabalho CRON será executado a cada segundo durante o período especificado!",uve="CRON",dve="Data",pve="Dias",fve="Dia",hve="Dia da semana",mve="todos",_ve="a cada N dias",gve="todo enésimo dia da semana",yve="todos os N dias da semana",vve="a cada N horas",bve="a cada N minutos",wve="a cada N meses",xve="a cada N segundos",Sve="todo dia",kve="todos os dias da semana",Cve="todos os dias da semana",$ve="toda hora",Eve="todo minuto",Tve="todo mês",Ove="todo segundo",Dve="de",Mve="horas",Nve="intervalo",Pve="intervalo entre",Rve="CRON inválido",Ave="minutos",Ive="meses",jve="uma vez",Lve="período",Fve="segundos",zve="simples",Bve="tempo específico",Wve="datas específicas",Uve="dia(s) específico(s) da semana",Hve="dia específico de semanas",qve="horas específicas",Vve="minutos específicos",Xve="meses específicos",Gve="segundos específicos",Jve="tempo",Yve="para",Kve="assistente",Zve="tudo",Qve="dia astral",e0e="noite astral",t0e="amanhecer",r0e="anoitecer",n0e="hora dourada",o0e="Fim da hora dourada",a0e="nadir",s0e="Amanhecer náutico",i0e="Anoitecer náutico",c0e="noite",l0e="fim da noite",u0e="meio-dia solar",d0e="nascer do sol",p0e="fim do nascer do sol",f0e="pôr do sol",h0e="início do pôr do sol",m0e="às",_0e="em %s",g0e="todo dia",y0e="toda hora",v0e="todo minuto",b0e="todo mês",w0e="a cada %s dias",x0e="a cada %s horas",S0e="a cada %s minutos",k0e="a cada %s meses",C0e="a cada %s semanas",$0e="a cada %s anos",E0e="toda semana",T0e="todo ano",O0e="de %s para %s",D0e="nunca",M0e="em %s de %s",N0e="em %s e %s de",P0e="em toda data de",R0e="%s",A0e="%s e %s",I0e="em %s",j0e="em %s e %s",L0e="nos fins de semana",F0e="em dias úteis",z0e="não será mais executado, porque o começo está no passado",B0e="em %s",W0e="de %s",U0e="Executar de até",H0e="até %s",q0e="cada",V0e="tempo específico",X0e="de",G0e="de a´t",J0e="tempo de intervalo",Y0e="invertido",K0e="nenhum",Z0e="em",Q0e="período",ebe="diariamente",tbe="datas",rbe="dia",nbe="todos",obe="todo dia",abe="todo mês",sbe="toda semana",ibe="todo ano",cbe="horas",lbe="minutos",ube="mês",dbe="por mês",pbe="uma vez",fbe="meses específicos",hbe="semana",mbe="dias úteis",_be="final de semana",gbe="semanal",ybe="dias úteis",vbe="ano",bbe="anual",wbe="tempo específico",xbe="tempo",Sbe="para",kbe="válido",Cbe="de",$be="para",Ebe="dia inteiro",Tbe="todo mês",Obe={"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_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:O_e,"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:D_e,"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:M_e,"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:N_e,ra_Clear:P_e,"ra_Clear filter":"Filtro limpo","ra_Clear icon":"Ícone de limpeza","ra_Clone current row":"Clonar linha atual",ra_Close:R_e,"ra_Collapse all nodes":"Recolher todos os nós","ra_Collapse one step node":"Recolher um nível",ra_Commercial:A_e,ra_Configure:I_e,"ra_Configure visible columns":"Configurar colunas visíveis","ra_Confirm deletion of %s":"Confirme a exclusão de %s",ra_Connected:j_e,ra_Copied:L_e,"ra_Copied %s":'"%s" copiado',"ra_Copy content":"Copiar conteúdo",ra_Create:F_e,"ra_Create alias":"Criar alias","ra_Create folder":"Criar pasta","ra_Create new folder in %s":"Crie uma nova pasta em %s",ra_Crop:z_e,"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:B_e,ra_Delete:W_e,"ra_Delete (no confirm for 5 mins)":"Excluir (sem confirmação por 5 minutos)","ra_Delete current row":"Excluir linha atual","ra_Deselect all":"Desmarque todos","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:U_e,ra_Disconnected:H_e,"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_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 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_Error:q_e,"ra_Expand all nodes":"Expanda todos os nós","ra_Expand one step node":"Expanda um nível","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:V_e,"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:X_e,"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_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 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:G_e,"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_Longitude:J_e,'ra_May not trigger "updateLicenses"':'Pode não acionar "updateLicenses"',ra_Message:Y_e,ra_Monday:K_e,"ra_Move down":"Mover para baixo","ra_Move up":"Subir",ra_Name:Z_e,"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 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_Objects:Q_e,ra_Ok:ege,"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 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_Private certificate":"certificado privado",ra_Product:tge,"ra_Public certificate":"certificado público","ra_Quality code":"Qualidade","ra_Refresh tree":"Atualizar árvore","ra_Reload files":"Recarregar arquivos",ra_Repeat:rge,ra_Replace:nge,"ra_Request timed out":"Solicitação expirou","ra_Restrict to folder":"Restringir à pasta",ra_Root:oge,ra_Saturday:age,ra_Save:sge,"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:ige,"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_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:cge,"ra_Suitable license not found in license manager":"Licença adequada não encontrada no gerenciador de licenças",ra_Sunday:lge,"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:uge,ra_Timestamp:dge,"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:pge,"ra_Unknown error":"Erro desconhecido","ra_Unknown error!":"Erro desconhecido!",ra_Update:fge,"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:hge,ra_Value:mge,ra_Version:_ge,"ra_View file":"Visualizar arquivo","ra_View: %s":"Visualizar: %s",ra_Wednesday:gge,ra_Width:yge,ra_Yes:vge,"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___different__:bge,ra_aclEveryone_read_object:wge,ra_aclEveryone_read_state:xge,ra_aclEveryone_write_object:Sge,ra_aclEveryone_write_state:kge,ra_aclGroup_read_object:Cge,ra_aclGroup_read_state:$ge,ra_aclGroup_write_object:Ege,ra_aclGroup_write_state:Tge,ra_aclOwner_read_object:Oge,ra_aclOwner_read_state:Dge,ra_aclOwner_write_object:Mge,ra_aclOwner_write_state:Nge,ra_buttons:Pge,ra_changedFrom:Rge,ra_close:Age,ra_create_boolean_state:Ige,ra_create_channel:jge,ra_create_device:Lge,ra_create_number_state:Fge,ra_create_state:zge,ra_create_string_state:Bge,ra_daysShortText:Wge,ra_dow_Fr:Uge,ra_dow_Mo:Hge,ra_dow_Sa:qge,ra_dow_Su:Vge,ra_dow_Th:Xge,ra_dow_Tu:Gge,ra_dow_We:Jge,ra_expertMode:Yge,ra_fileType_all:Kge,ra_fileType_audio:Zge,ra_fileType_code:Qge,ra_fileType_images:eye,ra_fileType_txt:tye,ra_fileType_video:rye,"ra_fileType_video,":"Vídeo",ra_filter_customs:nye,ra_filter_customs_without:oye,ra_filter_func:aye,ra_filter_id:sye,ra_filter_name:iye,ra_filter_role:cye,ra_filter_room:lye,ra_filter_type:uye,"ra_import data from %s file":"Importar dados do arquivo %s",ra_invalidConfig:dye,ra_lastChange:pye,ra_locally:fye,ra_month_Apr:hye,ra_month_Aug:mye,ra_month_Dec:_ye,ra_month_Feb:gye,ra_month_Jan:yye,ra_month_Jul:vye,ra_month_Jun:bye,ra_month_Mai:wye,ra_month_Mar:xye,ra_month_Nov:Sye,ra_month_Oct:kye,ra_month_Sep:Cye,ra_months_Apr:$ye,ra_months_Aug:Eye,ra_months_Dec:Tye,ra_months_Feb:Oye,ra_months_Jan:Dye,ra_months_Jul:Mye,ra_months_Jun:Nye,ra_months_Mai:Pye,ra_months_Mar:Rye,ra_months_Nov:Aye,ra_months_Oct:Iye,ra_months_Sep:jye,ra_none:Lye,ra_object_changed_by:Fye,ra_object_changed_by_user:zye,ra_otherConfig:Bye,ra_qualityCode:Wye,ra_repeat:Uye,ra_select_folder_hint:Hye,ra_state_changed_by:qye,ra_state_changed_from:Vye,ra_timestamp:Xye,ra_tooltip_ack:Gye,ra_tooltip_comment:Jye,ra_tooltip_copyState:Yye,ra_tooltip_customConfig:Kye,ra_tooltip_deleteObject:Zye,ra_tooltip_editObject:Qye,ra_tooltip_editState:eve,ra_tooltip_from:tve,ra_tooltip_lc:rve,ra_tooltip_quality:nve,ra_tooltip_ts:ove,ra_tooltip_user:ave,ra_tooltip_value:sve,"ra_use seconds":"use segundos",ra_val:ive,"ra_via internet":"via internet",ra_warning_every_minute:cve,ra_warning_every_second:lve,sc_cron:uve,sc_date:dve,sc_dates:pve,sc_dow:fve,sc_dows:hve,sc_every:mve,sc_everyN_dates:_ve,sc_everyN_dow:gve,sc_everyN_dows:yve,sc_everyN_hours:vve,sc_everyN_minutes:bve,sc_everyN_months:wve,sc_everyN_seconds:xve,sc_every_dates:Sve,sc_every_dow:kve,sc_every_dows:Cve,sc_every_hours:$ve,sc_every_minutes:Eve,sc_every_months:Tve,sc_every_seconds:Ove,sc_from:Dve,sc_hours:Mve,sc_interval:Nve,sc_intervalBetween:Pve,sc_invalid_cron:Rve,sc_minutes:Ave,sc_months:Ive,sc_once:jve,sc_period:Lve,sc_seconds:Fve,sc_simple:zve,sc_specific:Bve,sc_specific_dates:Wve,sc_specific_dow:Uve,sc_specific_dows:Hve,sc_specific_hours:qve,sc_specific_minutes:Vve,sc_specific_months:Xve,sc_specific_seconds:Gve,sc_time:Jve,sc_to:Yve,sc_wizard:Kve,sch_all:Zve,sch_astroDay:Qve,sch_astroNight:e0e,sch_astro_dawn:t0e,sch_astro_dusk:r0e,sch_astro_goldenHour:n0e,sch_astro_goldenHourEnd:o0e,sch_astro_nadir:a0e,sch_astro_nauticalDawn:s0e,sch_astro_nauticalDusk:i0e,sch_astro_night:c0e,sch_astro_nightEnd:l0e,sch_astro_solarNoon:u0e,sch_astro_sunrise:d0e,sch_astro_sunriseEnd:p0e,sch_astro_sunset:f0e,sch_astro_sunsetStart:h0e,sch_at:m0e,sch_desc_atTime:_0e,sch_desc_everyDay:g0e,sch_desc_everyHour:y0e,sch_desc_everyMinute:v0e,sch_desc_everyMonth:b0e,sch_desc_everyNDay:w0e,sch_desc_everyNHours:x0e,sch_desc_everyNMinutes:S0e,sch_desc_everyNMonths:k0e,sch_desc_everyNWeeks:C0e,sch_desc_everyNYears:$0e,sch_desc_everyWeek:E0e,sch_desc_everyYear:T0e,sch_desc_intervalFromTo:O0e,sch_desc_never:D0e,sch_desc_onDate:M0e,sch_desc_onDates:N0e,sch_desc_onEveryDate:P0e,sch_desc_onMonth:R0e,sch_desc_onMonths:A0e,sch_desc_onWeekday:I0e,sch_desc_onWeekdays:j0e,sch_desc_onWeekends:L0e,sch_desc_onWorkdays:F0e,sch_desc_onceInPast:z0e,sch_desc_once_on:B0e,sch_desc_validFrom:W0e,sch_desc_validFromTo:U0e,sch_desc_validTo:H0e,sch_every:q0e,sch_exactTime:V0e,sch_from:X0e,sch_fromTo:G0e,sch_intervalTime:J0e,sch_invert:Y0e,sch_no_one:K0e,sch_on:Z0e,sch_period:Q0e,sch_periodDaily:ebe,sch_periodDates:tbe,sch_periodDay:rbe,sch_periodEvery:nbe,sch_periodEveryDay:obe,sch_periodEveryMonth:abe,sch_periodEveryWeek:sbe,sch_periodEveryYear:ibe,sch_periodHours:cbe,sch_periodMinutes:lbe,sch_periodMonth:ube,sch_periodMonthly:dbe,sch_periodOnce:pbe,sch_periodSpecificMonths:fbe,sch_periodWeek:hbe,sch_periodWeekdays:mbe,sch_periodWeekend:_be,sch_periodWeekly:gbe,sch_periodWorkdays:ybe,sch_periodYear:vbe,sch_periodYearly:bbe,sch_specificTime:wbe,sch_time:xbe,sch_to:Sbe,sch_valid:kbe,sch_validFrom:Cbe,sch_validTo:$be,sch_wholeDay:Ebe,sch_yearEveryMonth:Tbe},Dbe="toevoegen",Mbe="Annuleer",Nbe="Categorieën",Pbe="Gecontroleerd",Rbe="Verwijderen",Abe="Dichtbij",Ibe="Reclame",jbe="Configureren",Lbe="Verbonden",Fbe="Gekopieerd",zbe="Creëer",Bbe="Bijsnijden",Wbe="Delete",Ube="Verwijderen",Hbe="Weggooien",qbe="Verbinding verbroken",Vbe="Fout",Xbe="Filter",Gbe="Vrijdag",Jbe="Breedtegraad",Ybe="Lengtegraad",Kbe="Bericht",Zbe="Maandag",Qbe="Naam",ewe="Voorwerpen",twe="OK",rwe="Product",nwe="Herhaling",owe="Vervangen",awe="Wortel",swe="Zaterdag",iwe="Sparen",cwe="Geselecteerd",lwe="Staten",uwe="Zondag",dwe="Donderdag",pwe="Tijdstempel",fwe="Dinsdag",hwe="Bijwerken",mwe="Geldig tot",_we="Waarde",gwe="Versie",ywe="Woensdag",vwe="Breedte",bwe="Ja",wwe="verschillend",xwe="Iedereen kan object lezen",Swe="Iedereen kan staat lezen",kwe="Iedereen kan object schrijven",Cwe="Iedereen kan staat schrijven",$we="Groep kan object lezen",Ewe="Groep kan status lezen",Twe="Groep kan object schrijven",Owe="Groep kan staat schrijven",Dwe="Eigenaar kan object lezen",Mwe="Eigenaar kan staat lezen",Nwe="Eigenaar kan object schrijven",Pwe="Eigenaar kan staat schrijven",Rwe="Toetsen",Awe="Veranderd van",Iwe="dichtbij",jwe="Creëer een Booleaanse status",Lwe="Kanaal maken",Fwe="Apparaat maken",zwe="Nummerstatus maken",Bwe="Staat creëren",Wwe="Tekenreeksstatus maken",Uwe="d.",Hwe="Fr",qwe="Mo",Vwe="Za",Xwe="Zo",Gwe="Th",Jwe="Tu",Ywe="Wij",Kwe="Expert modus",Zwe="Alle bestanden",Qwe="Audio",e1e="Code/JSON",t1e="Afbeeldingen",r1e="Tekst",n1e="Video",o1e="Instellingen",a1e="zonder",s1e="Functie",i1e="ID",c1e="Naam",l1e="Rol",u1e="Kamer",d1e="Type",p1e="Ongeldige instellingen",f1e="Laatste wijziging",h1e="plaatselijk",m1e="april",_1e="aug",g1e="dec",y1e="februari",v1e="jan",b1e="jul",w1e="juni",x1e="Mei",S1e="mrt",k1e="nov",C1e="Okt",$1e="sept",E1e="april",T1e="aug",O1e="dec",D1e="februari",M1e="jan",N1e="jul",P1e="juni",R1e="Mei",A1e="mrt",I1e="nov",j1e="Okt",L1e="sept",F1e="geen",z1e="Object veranderd door",B1e="Object voor het laatst gewijzigd om",W1e="Instellingen van andere adapter %s",U1e="Kwaliteitscode",H1e="herhalen",q1e='Om een map te selecteren, houdt u gewoon de toets "shift" ingedrukt door op de map te klikken.',V1e="Staat veranderd door",X1e="Object veranderd van",G1e="Tijdstempel",J1e="Erkende vlag",Y1e="Opmerking",K1e="Kopieer de statuswaarde",Z1e="Aangepaste instellingen",Q1e="Object verwijderen",exe="Object bewerken",txe="Bewerk de statuswaarde",rxe="Van",nxe="Laatst gewijzigd",oxe="Kwaliteit",axe="Tijdstempel",sxe="Gebruiker",ixe="Waarde",cxe="Waarde",lxe="Waarschuwing: De CRON-taak wordt elke minuut uitgevoerd gedurende de opgegeven periode!",uxe="Waarschuwing: De CRON-taak wordt elke seconde uitgevoerd gedurende de opgegeven periode!",dxe="CRON",pxe="Datum",fxe="data",hxe="Dag",mxe="Dag van de week",_xe="elk",gxe="elke N dagen",yxe="elke N-de dag van de week",vxe="elke N dag van de week",bxe="elke N uur",wxe="elke N minuten",xxe="elke N maanden",Sxe="elke N seconden",kxe="elke dag",Cxe="elke dag van de week",$xe="elke dag van de week",Exe="elk uur",Txe="elke minuut",Oxe="elke maand",Dxe="elke seconde",Mxe="Van",Nxe="uren",Pxe="Interval",Rxe="Interval tussen",Axe="Ongeldige CRON",Ixe="Notulen",jxe="maanden",Lxe="Een keer",Fxe="Periode",zxe="seconden",Bxe="Gemakkelijk",Wxe="Specifieke tijd",Uxe="specifieke data",Hxe="specifieke dag(en) van de week",qxe="specifieke dag van weken",Vxe="specifieke uren",Xxe="specifieke minuten",Gxe="specifieke maanden",Jxe="specifieke seconden",Yxe="Tijd",Kxe="Naar",Zxe="tovenaar",Qxe="allemaal",eSe="Astro-dag",tSe="Astro-nacht",rSe="Dageraad",nSe="Schemer",oSe="gouden uur",aSe="Gouden uur einde",sSe="Nadir",iSe="Nautische dageraad",cSe="Nautische schemering",lSe="Nacht",uSe="Nacht einde",dSe="Zonne middag",pSe="zonsopkomst",fSe="Sunrise einde",hSe="Zonsondergang",mSe="Zonsondergang start",_Se="Bij",gSe="op %s",ySe="elke dag",vSe="elk uur",bSe="elke minuut",wSe="elke maand",xSe="elke %s dag",SSe="elke %s uur",kSe="elke %s minuten",CSe="elke %s maanden",$Se="elke %s weken",ESe="elke %s jaar",TSe="elke week",OSe="elk jaar",DSe="van %s tot %s",MSe="nooit",NSe="op %s van %s",PSe="op %s en %s van",RSe="op elke datum van",ASe="%s",ISe="%s en %s",jSe="op %s",LSe="op %s en %s",FSe="in het weekend",zSe="op werkdagen",BSe="zal niet meer worden uitgevoerd, omdat start verleden tijd is",WSe="op %s",USe="van %s",HSe="Uitvoeren van tot",qSe="tot %s",VSe="elk",XSe="Specifieke tijd",GSe="van",JSe="Van naar",YSe="Interval tijd",KSe="omkeren",ZSe="geen",QSe="Aan",eke="Periode",tke="Dagelijks",rke="data",nke="Dag",oke="elk",ake="Elke dag",ske="Elke maand",ike="Elke week",cke="Elk jaar",lke="uren",uke="Notulen",dke="maand",pke="Maandelijks",fke="Een keer",hke="Specifieke maanden",mke="Week",_ke="Doordeweekse dagen",gke="Weekend",yke="Wekelijks",vke="werkdagen",bke="Jaar",wke="jaar-",xke="Specifieke tijd",Ske="Tijd",kke="naar",Cke="Geldig",$ke="van",Eke="naar",Tke="Hele dag",Oke="elke maand",Dke={"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_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:Dbe,"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:Mbe,"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:Nbe,"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:Pbe,ra_Clear:Rbe,"ra_Clear filter":"Filter wissen","ra_Clear icon":"Pictogram wissen","ra_Clone current row":"Kloon de huidige rij",ra_Close:Abe,"ra_Collapse all nodes":"Vouw alle knooppunten samen","ra_Collapse one step node":"Eén niveau samenvouwen",ra_Commercial:Ibe,ra_Configure:jbe,"ra_Configure visible columns":"Configureer zichtbare kolommen","ra_Confirm deletion of %s":"Bevestig het verwijderen van %s",ra_Connected:Lbe,ra_Copied:Fbe,"ra_Copied %s":'"%s" gekopieerd',"ra_Copy content":"Inhoud kopiëren",ra_Create:zbe,"ra_Create alias":"Alias maken","ra_Create folder":"Map aanmaken","ra_Create new folder in %s":"Maak een nieuwe map in %s",ra_Crop:Bbe,"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:Wbe,ra_Delete:Ube,"ra_Delete (no confirm for 5 mins)":"Verwijderen (geen bevestiging gedurende 5 minuten)","ra_Delete current row":"Huidige rij verwijderen","ra_Deselect all":"Deselecteer alles","ra_Device → Channel → State":"Apparaat → Kanaal → Staat",ra_Discard:Hbe,ra_Disconnected:qbe,"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_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 function":"Bewerkingsfunctie","ra_Edit object field":"Bewerk objectveld","ra_Edit role":"Rol bewerken","ra_Edit room":"Kamer bewerken","ra_Edit value":"Waarde bewerken",ra_Error:Vbe,"ra_Expand all nodes":"Vouw alle knooppunten uit","ra_Expand one step node":"Vouw een niveau uit","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:Xbe,"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:Gbe,"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_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 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:Jbe,"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_Longitude:Ybe,'ra_May not trigger "updateLicenses"':'Activeert mogelijk niet "updateLicenses"',ra_Message:Kbe,ra_Monday:Zbe,"ra_Move down":"Naar beneden verplaatsen","ra_Move up":"Omhoog gaan",ra_Name:Qbe,"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 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_Objects:ewe,ra_Ok:twe,"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 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_Private certificate":"Privé certificaat",ra_Product:rwe,"ra_Public certificate":"Openbaar certificaat","ra_Quality code":"Kwaliteit","ra_Refresh tree":"Vernieuw de boom","ra_Reload files":"Laad bestanden opnieuw",ra_Repeat:nwe,ra_Replace:owe,"ra_Request timed out":"Verzoek verlopen","ra_Restrict to folder":"Beperken tot map",ra_Root:awe,ra_Saturday:swe,ra_Save:iwe,"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:cwe,"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_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:lwe,"ra_Suitable license not found in license manager":"Geschikte licentie niet gevonden in licentiebeheer",ra_Sunday:uwe,"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:dwe,ra_Timestamp:pwe,"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:fwe,"ra_Unknown error":"Onbekende fout","ra_Unknown error!":"Onbekende fout!",ra_Update:hwe,"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:mwe,ra_Value:_we,ra_Version:gwe,"ra_View file":"Bestand bekijken","ra_View: %s":"Bekijk: %s",ra_Wednesday:ywe,ra_Width:vwe,ra_Yes:bwe,"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___different__:wwe,ra_aclEveryone_read_object:xwe,ra_aclEveryone_read_state:Swe,ra_aclEveryone_write_object:kwe,ra_aclEveryone_write_state:Cwe,ra_aclGroup_read_object:$we,ra_aclGroup_read_state:Ewe,ra_aclGroup_write_object:Twe,ra_aclGroup_write_state:Owe,ra_aclOwner_read_object:Dwe,ra_aclOwner_read_state:Mwe,ra_aclOwner_write_object:Nwe,ra_aclOwner_write_state:Pwe,ra_buttons:Rwe,ra_changedFrom:Awe,ra_close:Iwe,ra_create_boolean_state:jwe,ra_create_channel:Lwe,ra_create_device:Fwe,ra_create_number_state:zwe,ra_create_state:Bwe,ra_create_string_state:Wwe,ra_daysShortText:Uwe,ra_dow_Fr:Hwe,ra_dow_Mo:qwe,ra_dow_Sa:Vwe,ra_dow_Su:Xwe,ra_dow_Th:Gwe,ra_dow_Tu:Jwe,ra_dow_We:Ywe,ra_expertMode:Kwe,ra_fileType_all:Zwe,ra_fileType_audio:Qwe,ra_fileType_code:e1e,ra_fileType_images:t1e,ra_fileType_txt:r1e,ra_fileType_video:n1e,"ra_fileType_video,":"Video",ra_filter_customs:o1e,ra_filter_customs_without:a1e,ra_filter_func:s1e,ra_filter_id:i1e,ra_filter_name:c1e,ra_filter_role:l1e,ra_filter_room:u1e,ra_filter_type:d1e,"ra_import data from %s file":"Importeer gegevens uit %s bestand",ra_invalidConfig:p1e,ra_lastChange:f1e,ra_locally:h1e,ra_month_Apr:m1e,ra_month_Aug:_1e,ra_month_Dec:g1e,ra_month_Feb:y1e,ra_month_Jan:v1e,ra_month_Jul:b1e,ra_month_Jun:w1e,ra_month_Mai:x1e,ra_month_Mar:S1e,ra_month_Nov:k1e,ra_month_Oct:C1e,ra_month_Sep:$1e,ra_months_Apr:E1e,ra_months_Aug:T1e,ra_months_Dec:O1e,ra_months_Feb:D1e,ra_months_Jan:M1e,ra_months_Jul:N1e,ra_months_Jun:P1e,ra_months_Mai:R1e,ra_months_Mar:A1e,ra_months_Nov:I1e,ra_months_Oct:j1e,ra_months_Sep:L1e,ra_none:F1e,ra_object_changed_by:z1e,ra_object_changed_by_user:B1e,ra_otherConfig:W1e,ra_qualityCode:U1e,ra_repeat:H1e,ra_select_folder_hint:q1e,ra_state_changed_by:V1e,ra_state_changed_from:X1e,ra_timestamp:G1e,ra_tooltip_ack:J1e,ra_tooltip_comment:Y1e,ra_tooltip_copyState:K1e,ra_tooltip_customConfig:Z1e,ra_tooltip_deleteObject:Q1e,ra_tooltip_editObject:exe,ra_tooltip_editState:txe,ra_tooltip_from:rxe,ra_tooltip_lc:nxe,ra_tooltip_quality:oxe,ra_tooltip_ts:axe,ra_tooltip_user:sxe,ra_tooltip_value:ixe,"ra_use seconds":"gebruik seconden",ra_val:cxe,"ra_via internet":"via internet",ra_warning_every_minute:lxe,ra_warning_every_second:uxe,sc_cron:dxe,sc_date:pxe,sc_dates:fxe,sc_dow:hxe,sc_dows:mxe,sc_every:_xe,sc_everyN_dates:gxe,sc_everyN_dow:yxe,sc_everyN_dows:vxe,sc_everyN_hours:bxe,sc_everyN_minutes:wxe,sc_everyN_months:xxe,sc_everyN_seconds:Sxe,sc_every_dates:kxe,sc_every_dow:Cxe,sc_every_dows:$xe,sc_every_hours:Exe,sc_every_minutes:Txe,sc_every_months:Oxe,sc_every_seconds:Dxe,sc_from:Mxe,sc_hours:Nxe,sc_interval:Pxe,sc_intervalBetween:Rxe,sc_invalid_cron:Axe,sc_minutes:Ixe,sc_months:jxe,sc_once:Lxe,sc_period:Fxe,sc_seconds:zxe,sc_simple:Bxe,sc_specific:Wxe,sc_specific_dates:Uxe,sc_specific_dow:Hxe,sc_specific_dows:qxe,sc_specific_hours:Vxe,sc_specific_minutes:Xxe,sc_specific_months:Gxe,sc_specific_seconds:Jxe,sc_time:Yxe,sc_to:Kxe,sc_wizard:Zxe,sch_all:Qxe,sch_astroDay:eSe,sch_astroNight:tSe,sch_astro_dawn:rSe,sch_astro_dusk:nSe,sch_astro_goldenHour:oSe,sch_astro_goldenHourEnd:aSe,sch_astro_nadir:sSe,sch_astro_nauticalDawn:iSe,sch_astro_nauticalDusk:cSe,sch_astro_night:lSe,sch_astro_nightEnd:uSe,sch_astro_solarNoon:dSe,sch_astro_sunrise:pSe,sch_astro_sunriseEnd:fSe,sch_astro_sunset:hSe,sch_astro_sunsetStart:mSe,sch_at:_Se,sch_desc_atTime:gSe,sch_desc_everyDay:ySe,sch_desc_everyHour:vSe,sch_desc_everyMinute:bSe,sch_desc_everyMonth:wSe,sch_desc_everyNDay:xSe,sch_desc_everyNHours:SSe,sch_desc_everyNMinutes:kSe,sch_desc_everyNMonths:CSe,sch_desc_everyNWeeks:$Se,sch_desc_everyNYears:ESe,sch_desc_everyWeek:TSe,sch_desc_everyYear:OSe,sch_desc_intervalFromTo:DSe,sch_desc_never:MSe,sch_desc_onDate:NSe,sch_desc_onDates:PSe,sch_desc_onEveryDate:RSe,sch_desc_onMonth:ASe,sch_desc_onMonths:ISe,sch_desc_onWeekday:jSe,sch_desc_onWeekdays:LSe,sch_desc_onWeekends:FSe,sch_desc_onWorkdays:zSe,sch_desc_onceInPast:BSe,sch_desc_once_on:WSe,sch_desc_validFrom:USe,sch_desc_validFromTo:HSe,sch_desc_validTo:qSe,sch_every:VSe,sch_exactTime:XSe,sch_from:GSe,sch_fromTo:JSe,sch_intervalTime:YSe,sch_invert:KSe,sch_no_one:ZSe,sch_on:QSe,sch_period:eke,sch_periodDaily:tke,sch_periodDates:rke,sch_periodDay:nke,sch_periodEvery:oke,sch_periodEveryDay:ake,sch_periodEveryMonth:ske,sch_periodEveryWeek:ike,sch_periodEveryYear:cke,sch_periodHours:lke,sch_periodMinutes:uke,sch_periodMonth:dke,sch_periodMonthly:pke,sch_periodOnce:fke,sch_periodSpecificMonths:hke,sch_periodWeek:mke,sch_periodWeekdays:_ke,sch_periodWeekend:gke,sch_periodWeekly:yke,sch_periodWorkdays:vke,sch_periodYear:bke,sch_periodYearly:wke,sch_specificTime:xke,sch_time:Ske,sch_to:kke,sch_valid:Cke,sch_validFrom:$ke,sch_validTo:Eke,sch_wholeDay:Tke,sch_yearEveryMonth:Oke},Mke="Ajouter",Nke="Annuler",Pke="Catégories",Rke="Vérifié",Ake="Effacer",Ike="Fermer",jke="Commercial",Lke="Configurer",Fke="Lié",zke="Copié",Bke="Créer",Wke="Recadrer",Uke="Delete",Hke="Supprimer",qke="Jeter",Vke="Débranché",Xke="Erreur",Gke="Filtre",Jke="Vendredi",Yke="Latitude",Kke="Longitude",Zke="Message",Qke="Lundi",eCe="Nom",tCe="Objets",rCe="D'accord",nCe="Produit",oCe="Répéter",aCe="Remplacer",sCe="Racine",iCe="Samedi",cCe="sauver",lCe="Choisi",uCe="États",dCe="Dimanche",pCe="Jeudi",fCe="Horodatage",hCe="Mardi",mCe="Mise à jour",_Ce="Valable jusqu'au",gCe="Valeur",yCe="Version",vCe="Mercredi",bCe="Largeur",wCe="Oui",xCe="différent",SCe="Tout le monde peut lire un objet",kCe="Tout le monde peut lire l'état",CCe="Tout le monde peut écrire un objet",$Ce="Tout le monde peut écrire l'état",ECe="Le groupe peut lire l'objet",TCe="Le groupe peut lire l'état",OCe="Le groupe peut écrire un objet",DCe="Le groupe peut écrire l'état",MCe="Le propriétaire peut lire l'objet",NCe="Le propriétaire peut lire l'état",PCe="Le propriétaire peut écrire un objet",RCe="Le propriétaire peut écrire l'état",ACe="Boutons",ICe="Changé de",jCe="Fermer",LCe="Créer un état booléen",FCe="Créer une chaîne",zCe="Créer un appareil",BCe="Créer un état de numéro",WCe="Créer un état",UCe="Créer un état de chaîne",HCe="j.",qCe="Fr",VCe="Mo",XCe="Sa",GCe="Su",JCe="Th",YCe="Tu",KCe="Nous",ZCe="Mode expert",QCe="Tous les fichiers",e$e="l'audio",t$e="Code/JSON",r$e="Images",n$e="Texte",o$e="Vidéo",a$e="Paramètres",s$e="sans",i$e="Une fonction",c$e="ID",l$e="Prénom",u$e="Rôle",d$e="Pièce",p$e="Type",f$e="Paramètres invalides",h$e="Dernier changement",m$e="localement",_$e="Avr",g$e="Août",y$e="Déc",v$e="Fév",b$e="Jan",w$e="Juil",x$e="Juin",S$e="Mai",k$e="Mar",C$e="Nov",$$e="Oct",E$e="Sep",T$e="Avr",O$e="Août",D$e="Déc",M$e="Fév",N$e="Jan",P$e="Juil",R$e="Juin",A$e="Mai",I$e="Mar",j$e="Nov",L$e="Oct",F$e="Sep",z$e="rien",B$e="Objet modifié par",W$e="Objet modifié pour la dernière fois à",U$e="Paramètres d'un autre adaptateur %s",H$e="Code de qualité",q$e="répéter",V$e='Pour sélectionner un dossier, maintenez simplement la touche "shift" enfoncée en cliquant sur le dossier.',X$e="État modifié par",G$e="Objet changé de",J$e="Horodatage",Y$e="Drapeau reconnu",K$e="Commentaire",Z$e="Copiez la valeur d'état",Q$e="Paramètres personnalisés",eEe="Supprimer un objet",tEe="Modifier l'objet",rEe="Modifier la valeur d'état",nEe="De",oEe="Dernière modification",aEe="Qualité",sEe="Horodatage",iEe="Utilisateur",cEe="Valeur",lEe="Valeur",uEe="Attention : la tâche CRON s’exécutera toutes les minutes pendant la période spécifiée !",dEe="Attention : la tâche CRON s’exécutera toutes les secondes pendant la période spécifiée !",pEe="CRON",fEe="Date",hEe="Rendez-vous",mEe="Jour",_Ee="Jour de la semaine",gEe="Chaque",yEe="tous les N jours",vEe="chaque Nième jour de la semaine",bEe="tous les N jours de la semaine",wEe="toutes les N heures",xEe="toutes les N minutes",SEe="tous les N mois",kEe="toutes les N secondes",CEe="tous les jours",$Ee="Chaque jour de la semaine",EEe="Chaque jour de la semaine",TEe="Toutes les heures",OEe="chaque minute",DEe="chaque mois",MEe="chaque seconde",NEe="De",PEe="Heures",REe="Intervalle",AEe="Intervalle entre",IEe="CRON non valide",jEe="Minutes",LEe="mois",FEe="Une fois que",zEe="Période",BEe="Secondes",WEe="Facile",UEe="Temps spécifique",HEe="dates spécifiques",qEe="jour(s) spécifique(s) de la semaine",VEe="jour spécifique de semaines",XEe="heures spécifiques",GEe="minutes spécifiques",JEe="mois spécifiques",YEe="secondes spécifiques",KEe="Temps",ZEe="À",QEe="sorcier",eTe="tout",tTe="Journée astronomique",rTe="Nuit astronomique",nTe="Aube",oTe="Crépuscule",aTe="Heure d'or",sTe="Fin de l'heure d'or",iTe="Nadir",cTe="Aube nautique",lTe="Crépuscule nautique",uTe="Nuit",dTe="Fin de nuit",pTe="Midi solaire",fTe="lever du soleil",hTe="Fin du lever du soleil",mTe="Le coucher du soleil",_Te="Coucher du soleil",gTe="à",yTe="à %s",vTe="tous les jours",bTe="Toutes les heures",wTe="chaque minute",xTe="chaque mois",STe="chaque %s jour",kTe="chaque %s heures",CTe="toutes les %s minutes",$Te="tous les %s mois",ETe="chaque %s semaines",TTe="tous les %s ans",OTe="toutes les semaines",DTe="chaque année",MTe="de %s à %s",NTe="jamais",PTe="sur %s de %s",RTe="sur %s et %s de",ATe="à chaque date de",ITe="%s",jTe="%s et %s",LTe="sur %s",FTe="sur %s et %s",zTe="les weekends",BTe="les jours ouvrables",WTe="ne sera plus exécuté, car start est dans le passé",UTe="sur %s",HTe="de %s",qTe="Exécuter de à",VTe="à %s",XTe="chaque",GTe="Temps spécifique",JTe="de",YTe="De à",KTe="Temps d'interval",ZTe="inverser",QTe="aucun",e2e="sur",t2e="Période",r2e="du quotidien",n2e="Rendez-vous",o2e="journée",a2e="Chaque",s2e="Tous les jours",i2e="Chaque mois",c2e="Toutes les semaines",l2e="Chaque année",u2e="Heures",d2e="Minutes",p2e="mois",f2e="Mensuel",h2e="Une fois que",m2e="Mois spécifiques",_2e="La semaine",g2e="Jours de la semaine",y2e="Weekend",v2e="Hebdomadaire",b2e="Jours ouvrables",w2e="Année",x2e="Annuel",S2e="Temps spécifique",k2e="Temps",C2e="à",$2e="Valide",E2e="de",T2e="à",O2e="Toute la journée",D2e="chaque mois",M2e={"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_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:Mke,"ra_Append %s entries or replace existing?":"Ajouter %s entrées ou remplacer l'existant ?","ra_Append or replace?":"Ajouter ou remplacer ?","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:Nke,"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 : 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 : %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:Pke,"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:Rke,ra_Clear:Ake,"ra_Clear filter":"Effacer le filtre","ra_Clear icon":"Effacer l'icône","ra_Clone current row":"Cloner la ligne actuelle",ra_Close:Ike,"ra_Collapse all nodes":"Réduire tous les nœuds","ra_Collapse one step node":"Réduire d'un niveau",ra_Commercial:jke,ra_Configure:Lke,"ra_Configure visible columns":"Configurer les colonnes visibles","ra_Confirm deletion of %s":"Confirmer la suppression de %s",ra_Connected:Fke,ra_Copied:zke,"ra_Copied %s":'"%s" copié',"ra_Copy content":"Copier le contenu",ra_Create:Bke,"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:Wke,"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:Uke,ra_Delete:Hke,"ra_Delete (no confirm for 5 mins)":"Supprimer (pas de confirmation pendant 5 minutes)","ra_Delete current row":"Supprimer la ligne actuelle","ra_Deselect all":"Tout déselectionner","ra_Device → Channel → State":"Appareil → Canal → État",ra_Discard:qke,ra_Disconnected:Vke,"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_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 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_Error:Xke,"ra_Expand all nodes":"Développer tous les nœuds","ra_Expand one step node":"Développer un niveau","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:Gke,"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:Jke,"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_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 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:Yke,"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 ?","ra_Listen on all IPs":"Écoutez sur toutes les adresses IP","ra_Load configuration from file":"Charger la configuration à partir du fichier",ra_Longitude:Kke,'ra_May not trigger "updateLicenses"':'Peut ne pas déclencher "updateLicences"',ra_Message:Zke,ra_Monday:Qke,"ra_Move down":"Descendre","ra_Move up":"Déplacer vers le haut",ra_Name:eCe,"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 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_Objects:tCe,ra_Ok:rCe,"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 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_Private certificate":"Certificat privé",ra_Product:nCe,"ra_Public certificate":"Certificat public","ra_Quality code":"Qualité","ra_Refresh tree":"Rafraîchir l'arborescence","ra_Reload files":"Recharger les fichiers",ra_Repeat:oCe,ra_Replace:aCe,"ra_Request timed out":"La demande a expiré","ra_Restrict to folder":"Restreindre au dossier",ra_Root:sCe,ra_Saturday:iCe,ra_Save:cCe,"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:lCe,"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_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:uCe,"ra_Suitable license not found in license manager":"Licence appropriée introuvable dans le gestionnaire de licences",ra_Sunday:dCe,"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:pCe,ra_Timestamp:fCe,"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:hCe,"ra_Unknown error":"Erreur inconnue","ra_Unknown error!":"Erreur inconnue!",ra_Update:mCe,"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:_Ce,ra_Value:gCe,ra_Version:yCe,"ra_View file":"Voir la fiche","ra_View: %s":"Affichage : %s",ra_Wednesday:vCe,ra_Width:bCe,ra_Yes:wCe,"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___different__:xCe,ra_aclEveryone_read_object:SCe,ra_aclEveryone_read_state:kCe,ra_aclEveryone_write_object:CCe,ra_aclEveryone_write_state:$Ce,ra_aclGroup_read_object:ECe,ra_aclGroup_read_state:TCe,ra_aclGroup_write_object:OCe,ra_aclGroup_write_state:DCe,ra_aclOwner_read_object:MCe,ra_aclOwner_read_state:NCe,ra_aclOwner_write_object:PCe,ra_aclOwner_write_state:RCe,ra_buttons:ACe,ra_changedFrom:ICe,ra_close:jCe,ra_create_boolean_state:LCe,ra_create_channel:FCe,ra_create_device:zCe,ra_create_number_state:BCe,ra_create_state:WCe,ra_create_string_state:UCe,ra_daysShortText:HCe,ra_dow_Fr:qCe,ra_dow_Mo:VCe,ra_dow_Sa:XCe,ra_dow_Su:GCe,ra_dow_Th:JCe,ra_dow_Tu:YCe,ra_dow_We:KCe,ra_expertMode:ZCe,ra_fileType_all:QCe,ra_fileType_audio:e$e,ra_fileType_code:t$e,ra_fileType_images:r$e,ra_fileType_txt:n$e,ra_fileType_video:o$e,"ra_fileType_video,":"Vidéo",ra_filter_customs:a$e,ra_filter_customs_without:s$e,ra_filter_func:i$e,ra_filter_id:c$e,ra_filter_name:l$e,ra_filter_role:u$e,ra_filter_room:d$e,ra_filter_type:p$e,"ra_import data from %s file":"Importer des données à partir du fichier %s",ra_invalidConfig:f$e,ra_lastChange:h$e,ra_locally:m$e,ra_month_Apr:_$e,ra_month_Aug:g$e,ra_month_Dec:y$e,ra_month_Feb:v$e,ra_month_Jan:b$e,ra_month_Jul:w$e,ra_month_Jun:x$e,ra_month_Mai:S$e,ra_month_Mar:k$e,ra_month_Nov:C$e,ra_month_Oct:$$e,ra_month_Sep:E$e,ra_months_Apr:T$e,ra_months_Aug:O$e,ra_months_Dec:D$e,ra_months_Feb:M$e,ra_months_Jan:N$e,ra_months_Jul:P$e,ra_months_Jun:R$e,ra_months_Mai:A$e,ra_months_Mar:I$e,ra_months_Nov:j$e,ra_months_Oct:L$e,ra_months_Sep:F$e,ra_none:z$e,ra_object_changed_by:B$e,ra_object_changed_by_user:W$e,ra_otherConfig:U$e,ra_qualityCode:H$e,ra_repeat:q$e,ra_select_folder_hint:V$e,ra_state_changed_by:X$e,ra_state_changed_from:G$e,ra_timestamp:J$e,ra_tooltip_ack:Y$e,ra_tooltip_comment:K$e,ra_tooltip_copyState:Z$e,ra_tooltip_customConfig:Q$e,ra_tooltip_deleteObject:eEe,ra_tooltip_editObject:tEe,ra_tooltip_editState:rEe,ra_tooltip_from:nEe,ra_tooltip_lc:oEe,ra_tooltip_quality:aEe,ra_tooltip_ts:sEe,ra_tooltip_user:iEe,ra_tooltip_value:cEe,"ra_use seconds":"utiliser les secondes",ra_val:lEe,"ra_via internet":"par Internet",ra_warning_every_minute:uEe,ra_warning_every_second:dEe,sc_cron:pEe,sc_date:fEe,sc_dates:hEe,sc_dow:mEe,sc_dows:_Ee,sc_every:gEe,sc_everyN_dates:yEe,sc_everyN_dow:vEe,sc_everyN_dows:bEe,sc_everyN_hours:wEe,sc_everyN_minutes:xEe,sc_everyN_months:SEe,sc_everyN_seconds:kEe,sc_every_dates:CEe,sc_every_dow:$Ee,sc_every_dows:EEe,sc_every_hours:TEe,sc_every_minutes:OEe,sc_every_months:DEe,sc_every_seconds:MEe,sc_from:NEe,sc_hours:PEe,sc_interval:REe,sc_intervalBetween:AEe,sc_invalid_cron:IEe,sc_minutes:jEe,sc_months:LEe,sc_once:FEe,sc_period:zEe,sc_seconds:BEe,sc_simple:WEe,sc_specific:UEe,sc_specific_dates:HEe,sc_specific_dow:qEe,sc_specific_dows:VEe,sc_specific_hours:XEe,sc_specific_minutes:GEe,sc_specific_months:JEe,sc_specific_seconds:YEe,sc_time:KEe,sc_to:ZEe,sc_wizard:QEe,sch_all:eTe,sch_astroDay:tTe,sch_astroNight:rTe,sch_astro_dawn:nTe,sch_astro_dusk:oTe,sch_astro_goldenHour:aTe,sch_astro_goldenHourEnd:sTe,sch_astro_nadir:iTe,sch_astro_nauticalDawn:cTe,sch_astro_nauticalDusk:lTe,sch_astro_night:uTe,sch_astro_nightEnd:dTe,sch_astro_solarNoon:pTe,sch_astro_sunrise:fTe,sch_astro_sunriseEnd:hTe,sch_astro_sunset:mTe,sch_astro_sunsetStart:_Te,sch_at:gTe,sch_desc_atTime:yTe,sch_desc_everyDay:vTe,sch_desc_everyHour:bTe,sch_desc_everyMinute:wTe,sch_desc_everyMonth:xTe,sch_desc_everyNDay:STe,sch_desc_everyNHours:kTe,sch_desc_everyNMinutes:CTe,sch_desc_everyNMonths:$Te,sch_desc_everyNWeeks:ETe,sch_desc_everyNYears:TTe,sch_desc_everyWeek:OTe,sch_desc_everyYear:DTe,sch_desc_intervalFromTo:MTe,sch_desc_never:NTe,sch_desc_onDate:PTe,sch_desc_onDates:RTe,sch_desc_onEveryDate:ATe,sch_desc_onMonth:ITe,sch_desc_onMonths:jTe,sch_desc_onWeekday:LTe,sch_desc_onWeekdays:FTe,sch_desc_onWeekends:zTe,sch_desc_onWorkdays:BTe,sch_desc_onceInPast:WTe,sch_desc_once_on:UTe,sch_desc_validFrom:HTe,sch_desc_validFromTo:qTe,sch_desc_validTo:VTe,sch_every:XTe,sch_exactTime:GTe,sch_from:JTe,sch_fromTo:YTe,sch_intervalTime:KTe,sch_invert:ZTe,sch_no_one:QTe,sch_on:e2e,sch_period:t2e,sch_periodDaily:r2e,sch_periodDates:n2e,sch_periodDay:o2e,sch_periodEvery:a2e,sch_periodEveryDay:s2e,sch_periodEveryMonth:i2e,sch_periodEveryWeek:c2e,sch_periodEveryYear:l2e,sch_periodHours:u2e,sch_periodMinutes:d2e,sch_periodMonth:p2e,sch_periodMonthly:f2e,sch_periodOnce:h2e,sch_periodSpecificMonths:m2e,sch_periodWeek:_2e,sch_periodWeekdays:g2e,sch_periodWeekend:y2e,sch_periodWeekly:v2e,sch_periodWorkdays:b2e,sch_periodYear:w2e,sch_periodYearly:x2e,sch_specificTime:S2e,sch_time:k2e,sch_to:C2e,sch_valid:$2e,sch_validFrom:E2e,sch_validTo:T2e,sch_wholeDay:O2e,sch_yearEveryMonth:D2e},N2e="Aggiungere",P2e="Annulla",R2e="Categorie",A2e="Controllato",I2e="Elimina",j2e="Vicino",L2e="Commerciale",F2e="Configura",z2e="Collegato",B2e="Copiato",W2e="Creare",U2e="Raccolto",H2e="Delete",q2e="Elimina",V2e="Scartare",X2e="Disconnesso",G2e="Errore",J2e="Filtro",Y2e="Venerdì",K2e="Latitudine",Z2e="Longitudine",Q2e="Messaggio",eOe="Lunedi",tOe="Nome",rOe="Oggetti",nOe="Ok",oOe="Prodotto",aOe="Ripetere",sOe="Sostituire",iOe="Radice",cOe="Sabato",lOe="Salva",uOe="Selezionato",dOe="stati",pOe="Domenica",fOe="Giovedì",hOe="Timestamp",mOe="Martedì",_Oe="Aggiornare",gOe="Valido fino a",yOe="Valore",vOe="Versione",bOe="Mercoledì",wOe="Larghezza",xOe="SÌ",SOe="diverso",kOe="Tutti possono leggere gli oggetti",COe="Tutti possono leggere lo stato",$Oe="Tutti possono scrivere oggetti",EOe="Tutti possono scrivere stato",TOe="Il gruppo può leggere l'oggetto",OOe="Il gruppo può leggere lo stato",DOe="Il gruppo può scrivere l'oggetto",MOe="Il gruppo può scrivere lo stato",NOe="Il proprietario può leggere l'oggetto",POe="Il proprietario può leggere lo stato",ROe="Il proprietario può scrivere l'oggetto",AOe="Il proprietario può scrivere lo stato",IOe="Bottoni",jOe="Cambiato da",LOe="vicino",FOe="Crea uno stato booleano",zOe="Crea canale",BOe="Crea dispositivo",WOe="Crea lo stato del numero",UOe="Crea stato",HOe="Crea lo stato della stringa",qOe="g.",VOe="fr",XOe="momento",GOe="Sa",JOe="su",YOe="th",KOe="Tu",ZOe="Noi",QOe="Modalità esperto",eDe="Tutti i files",tDe="Audio",rDe="Codice/JSON",nDe="immagini",oDe="Testo",aDe="video",sDe="impostazioni",iDe="senza",cDe="Funzione",lDe="ID",uDe="Nome",dDe="Ruolo",pDe="Camera",fDe="genere",hDe="Impostazioni non valide",mDe="Ultima modifica",_De="localmente",gDe="apr",yDe="agosto",vDe="Dic",bDe="febbraio",wDe="gen",xDe="lug",SDe="giu",kDe="Mai",CDe="marzo",$De="nov",EDe="ottobre",TDe="Sett",ODe="apr",DDe="agosto",MDe="Dic",NDe="febbraio",PDe="gen",RDe="lug",ADe="giu",IDe="Mai",jDe="marzo",LDe="nov",FDe="ottobre",zDe="Sett",BDe="nessuna",WDe="Oggetto modificato da",UDe="L'oggetto è stato modificato l'ultima volta alle",HDe="Impostazioni dall'altro adattatore %s",qDe="Codice di qualità",VDe="ripetere",XDe='Per selezionare la cartella, basta tenere premuto il tasto "shift" facendo clic sulla cartella.',GDe="Stato cambiato da",JDe="Oggetto cambiato da",YDe="Timestamp",KDe="Bandiera riconosciuta",ZDe="Commento",QDe="Copia il valore dello stato",eMe="Impostazioni personalizzate",tMe="Elimina oggetto",rMe="Modifica oggetto",nMe="Modifica il valore dello stato",oMe="A partire dal",aMe="Ultima modifica",sMe="Qualità",iMe="Data e ora",cMe="Utente",lMe="Valore",uMe="Valore",dMe="Attenzione: il processo CRON verrà eseguito ogni minuto durante il periodo specificato!",pMe="Attenzione: il processo CRON verrà eseguito ogni secondo durante il periodo specificato!",fMe="CRON",hMe="Data",mMe="Date",_Me="Giorno",gMe="Giorno della settimana",yMe="Ogni",vMe="ogni N giorni",bMe="ogni Nesimo giorno della settimana",wMe="ogni N giorno della settimana",xMe="ogni N ore",SMe="ogni N minuti",kMe="ogni N mesi",CMe="ogni N secondi",$Me="ogni giorno",EMe="Tutti i giorni della settimana",TMe="Tutti i giorni della settimana",OMe="ogni ora",DMe="ogni minuto",MMe="ogni mese",NMe="ogni secondo",PMe="A partire dal",RMe="Ore",AMe="Intervallo",IMe="Intervallo tra",jMe="CRON non valido",LMe="Minuti",FMe="mesi",zMe="Una volta",BMe="Periodo",WMe="secondi",UMe="Semplice",HMe="Orario preciso",qMe="date specifiche",VMe="giorno/i specifico/i della settimana",XMe="giorno specifico delle settimane",GMe="orari specifici",JMe="minuti specifici",YMe="mesi specifici",KMe="secondi specifici",ZMe="Tempo",QMe="Per",eNe="procedura guidata",tNe="tutti",rNe="Astro day",nNe="Astro night",oNe="Alba",aNe="Crepuscolo",sNe="Ora d'oro",iNe="Fine dell'ora d'oro",cNe="Nadir",lNe="Alba nautica",uNe="Crepuscolo nautico",dNe="Notte",pNe="Fine della notte",fNe="Mezzogiorno solare",hNe="Alba",mNe="Fine dell'alba",_Ne="Tramonto",gNe="Inizio del tramonto",yNe="a",vNe="a %s",bNe="ogni giorno",wNe="ogni ora",xNe="ogni minuto",SNe="ogni mese",kNe="ogni %s giorno",CNe="ogni %s ore",$Ne="ogni %s minuti",ENe="ogni %s mesi",TNe="ogni %s settimane",ONe="ogni %s anni",DNe="ogni settimana",MNe="ogni anno",NNe="da %s a %s",PNe="mai",RNe="su %s di %s",ANe="su %s e %s di",INe="in ogni data di",jNe="%s",LNe="%s e %s",FNe="su %s",zNe="su %s e %s",BNe="nei finesettimana",WNe="nei giorni lavorativi",UNe="non verrà più eseguito, perché start è nel passato",HNe="su %s",qNe="da %s",VNe="Eseguire da a",XNe="a %s",GNe="ogni",JNe="Orario preciso",YNe="a partire dal",KNe="Da A",ZNe="Intervallo di tempo",QNe="invertire",ePe="nessuna",tPe="sopra",rPe="Periodo",nPe="Quotidiano",oPe="Date",aPe="Giorno",sPe="Ogni",iPe="Ogni giorno",cPe="Ogni mese",lPe="Ogni settimana",uPe="Ogni anno",dPe="Ore",pPe="Minuti",fPe="mese",hPe="Mensile",mPe="Una volta",_Pe="Mesi specifici",gPe="Settimana",yPe="Giorni della settimana",vPe="Fine settimana",bPe="settimanalmente",wPe="giorni feriali",xPe="Anno",SPe="Annuale",kPe="Orario preciso",CPe="Tempo",$Pe="per",EPe="Valido",TPe="a partire dal",OPe="per",DPe="Giorno intero",MPe="ogni mese",NPe={"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_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:N2e,"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:P2e,"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:R2e,"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:A2e,ra_Clear:I2e,"ra_Clear filter":"Filtro pulito","ra_Clear icon":"Cancella icona","ra_Clone current row":"Clona riga corrente",ra_Close:j2e,"ra_Collapse all nodes":"Comprimi tutti i nodi","ra_Collapse one step node":"Comprimi un livello",ra_Commercial:L2e,ra_Configure:F2e,"ra_Configure visible columns":"Configura colonne visibili","ra_Confirm deletion of %s":"Conferma l'eliminazione di %s",ra_Connected:z2e,ra_Copied:B2e,"ra_Copied %s":'"%s" copiato',"ra_Copy content":"Copia contenuto",ra_Create:W2e,"ra_Create alias":"Crea alias","ra_Create folder":"Creare una cartella","ra_Create new folder in %s":"Crea nuova cartella in %s",ra_Crop:U2e,"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:H2e,ra_Delete:q2e,"ra_Delete (no confirm for 5 mins)":"Elimina (nessuna conferma per 5 minuti)","ra_Delete current row":"Elimina la riga corrente","ra_Deselect all":"Deseleziona tutto","ra_Device → Channel → State":"Dispositivo → Canale → Stato",ra_Discard:V2e,ra_Disconnected:X2e,"ra_Do not export values of states":"Non esportare i valori degli stati","ra_Do not use let's encrypt":"Non utilizzare crittografiamo","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 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_Error:G2e,"ra_Expand all nodes":"Espandi tutti i nodi","ra_Expand one step node":"Espandi un livello","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:J2e,"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:Y2e,"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_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 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:K2e,"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_Longitude:Z2e,'ra_May not trigger "updateLicenses"':'Potrebbe non attivare "updateLicenses"',ra_Message:Q2e,ra_Monday:eOe,"ra_Move down":"Abbassati","ra_Move up":"Andare avanti",ra_Name:tOe,"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 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_Objects:rOe,ra_Ok:nOe,"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 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_Private certificate":"Certificato privato",ra_Product:oOe,"ra_Public certificate":"Certificato pubblico","ra_Quality code":"Qualità","ra_Refresh tree":"Aggiorna l'albero","ra_Reload files":"Ricarica i file",ra_Repeat:aOe,ra_Replace:sOe,"ra_Request timed out":"Tempo scaduto per la richiesta","ra_Restrict to folder":"Limita alla cartella",ra_Root:iOe,ra_Saturday:cOe,ra_Save:lOe,"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:uOe,"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_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:dOe,"ra_Suitable license not found in license manager":"Licenza adatta non trovata nel gestore delle licenze",ra_Sunday:pOe,"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:fOe,ra_Timestamp:hOe,"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:mOe,"ra_Unknown error":"Errore sconosciuto","ra_Unknown error!":"Errore sconosciuto!",ra_Update:_Oe,"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:gOe,ra_Value:yOe,ra_Version:vOe,"ra_View file":"Vedi il file","ra_View: %s":"Visualizza: %s",ra_Wednesday:bOe,ra_Width:wOe,ra_Yes:xOe,"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___different__:SOe,ra_aclEveryone_read_object:kOe,ra_aclEveryone_read_state:COe,ra_aclEveryone_write_object:$Oe,ra_aclEveryone_write_state:EOe,ra_aclGroup_read_object:TOe,ra_aclGroup_read_state:OOe,ra_aclGroup_write_object:DOe,ra_aclGroup_write_state:MOe,ra_aclOwner_read_object:NOe,ra_aclOwner_read_state:POe,ra_aclOwner_write_object:ROe,ra_aclOwner_write_state:AOe,ra_buttons:IOe,ra_changedFrom:jOe,ra_close:LOe,ra_create_boolean_state:FOe,ra_create_channel:zOe,ra_create_device:BOe,ra_create_number_state:WOe,ra_create_state:UOe,ra_create_string_state:HOe,ra_daysShortText:qOe,ra_dow_Fr:VOe,ra_dow_Mo:XOe,ra_dow_Sa:GOe,ra_dow_Su:JOe,ra_dow_Th:YOe,ra_dow_Tu:KOe,ra_dow_We:ZOe,ra_expertMode:QOe,ra_fileType_all:eDe,ra_fileType_audio:tDe,ra_fileType_code:rDe,ra_fileType_images:nDe,ra_fileType_txt:oDe,ra_fileType_video:aDe,"ra_fileType_video,":"video",ra_filter_customs:sDe,ra_filter_customs_without:iDe,ra_filter_func:cDe,ra_filter_id:lDe,ra_filter_name:uDe,ra_filter_role:dDe,ra_filter_room:pDe,ra_filter_type:fDe,"ra_import data from %s file":"Importa dati dal file %s",ra_invalidConfig:hDe,ra_lastChange:mDe,ra_locally:_De,ra_month_Apr:gDe,ra_month_Aug:yDe,ra_month_Dec:vDe,ra_month_Feb:bDe,ra_month_Jan:wDe,ra_month_Jul:xDe,ra_month_Jun:SDe,ra_month_Mai:kDe,ra_month_Mar:CDe,ra_month_Nov:$De,ra_month_Oct:EDe,ra_month_Sep:TDe,ra_months_Apr:ODe,ra_months_Aug:DDe,ra_months_Dec:MDe,ra_months_Feb:NDe,ra_months_Jan:PDe,ra_months_Jul:RDe,ra_months_Jun:ADe,ra_months_Mai:IDe,ra_months_Mar:jDe,ra_months_Nov:LDe,ra_months_Oct:FDe,ra_months_Sep:zDe,ra_none:BDe,ra_object_changed_by:WDe,ra_object_changed_by_user:UDe,ra_otherConfig:HDe,ra_qualityCode:qDe,ra_repeat:VDe,ra_select_folder_hint:XDe,ra_state_changed_by:GDe,ra_state_changed_from:JDe,ra_timestamp:YDe,ra_tooltip_ack:KDe,ra_tooltip_comment:ZDe,ra_tooltip_copyState:QDe,ra_tooltip_customConfig:eMe,ra_tooltip_deleteObject:tMe,ra_tooltip_editObject:rMe,ra_tooltip_editState:nMe,ra_tooltip_from:oMe,ra_tooltip_lc:aMe,ra_tooltip_quality:sMe,ra_tooltip_ts:iMe,ra_tooltip_user:cMe,ra_tooltip_value:lMe,"ra_use seconds":"usa i secondi",ra_val:uMe,"ra_via internet":"attraverso internet",ra_warning_every_minute:dMe,ra_warning_every_second:pMe,sc_cron:fMe,sc_date:hMe,sc_dates:mMe,sc_dow:_Me,sc_dows:gMe,sc_every:yMe,sc_everyN_dates:vMe,sc_everyN_dow:bMe,sc_everyN_dows:wMe,sc_everyN_hours:xMe,sc_everyN_minutes:SMe,sc_everyN_months:kMe,sc_everyN_seconds:CMe,sc_every_dates:$Me,sc_every_dow:EMe,sc_every_dows:TMe,sc_every_hours:OMe,sc_every_minutes:DMe,sc_every_months:MMe,sc_every_seconds:NMe,sc_from:PMe,sc_hours:RMe,sc_interval:AMe,sc_intervalBetween:IMe,sc_invalid_cron:jMe,sc_minutes:LMe,sc_months:FMe,sc_once:zMe,sc_period:BMe,sc_seconds:WMe,sc_simple:UMe,sc_specific:HMe,sc_specific_dates:qMe,sc_specific_dow:VMe,sc_specific_dows:XMe,sc_specific_hours:GMe,sc_specific_minutes:JMe,sc_specific_months:YMe,sc_specific_seconds:KMe,sc_time:ZMe,sc_to:QMe,sc_wizard:eNe,sch_all:tNe,sch_astroDay:rNe,sch_astroNight:nNe,sch_astro_dawn:oNe,sch_astro_dusk:aNe,sch_astro_goldenHour:sNe,sch_astro_goldenHourEnd:iNe,sch_astro_nadir:cNe,sch_astro_nauticalDawn:lNe,sch_astro_nauticalDusk:uNe,sch_astro_night:dNe,sch_astro_nightEnd:pNe,sch_astro_solarNoon:fNe,sch_astro_sunrise:hNe,sch_astro_sunriseEnd:mNe,sch_astro_sunset:_Ne,sch_astro_sunsetStart:gNe,sch_at:yNe,sch_desc_atTime:vNe,sch_desc_everyDay:bNe,sch_desc_everyHour:wNe,sch_desc_everyMinute:xNe,sch_desc_everyMonth:SNe,sch_desc_everyNDay:kNe,sch_desc_everyNHours:CNe,sch_desc_everyNMinutes:$Ne,sch_desc_everyNMonths:ENe,sch_desc_everyNWeeks:TNe,sch_desc_everyNYears:ONe,sch_desc_everyWeek:DNe,sch_desc_everyYear:MNe,sch_desc_intervalFromTo:NNe,sch_desc_never:PNe,sch_desc_onDate:RNe,sch_desc_onDates:ANe,sch_desc_onEveryDate:INe,sch_desc_onMonth:jNe,sch_desc_onMonths:LNe,sch_desc_onWeekday:FNe,sch_desc_onWeekdays:zNe,sch_desc_onWeekends:BNe,sch_desc_onWorkdays:WNe,sch_desc_onceInPast:UNe,sch_desc_once_on:HNe,sch_desc_validFrom:qNe,sch_desc_validFromTo:VNe,sch_desc_validTo:XNe,sch_every:GNe,sch_exactTime:JNe,sch_from:YNe,sch_fromTo:KNe,sch_intervalTime:ZNe,sch_invert:QNe,sch_no_one:ePe,sch_on:tPe,sch_period:rPe,sch_periodDaily:nPe,sch_periodDates:oPe,sch_periodDay:aPe,sch_periodEvery:sPe,sch_periodEveryDay:iPe,sch_periodEveryMonth:cPe,sch_periodEveryWeek:lPe,sch_periodEveryYear:uPe,sch_periodHours:dPe,sch_periodMinutes:pPe,sch_periodMonth:fPe,sch_periodMonthly:hPe,sch_periodOnce:mPe,sch_periodSpecificMonths:_Pe,sch_periodWeek:gPe,sch_periodWeekdays:yPe,sch_periodWeekend:vPe,sch_periodWeekly:bPe,sch_periodWorkdays:wPe,sch_periodYear:xPe,sch_periodYearly:SPe,sch_specificTime:kPe,sch_time:CPe,sch_to:$Pe,sch_valid:EPe,sch_validFrom:TPe,sch_validTo:OPe,sch_wholeDay:DPe,sch_yearEveryMonth:MPe},PPe="Adjuntar",RPe="Cancelar",APe="Categorías",IPe="Comprobado",jPe="Borrar",LPe="Cerca",FPe="Comercial",zPe="Configurar",BPe="Conectado",WPe="Copiado",UPe="Crear",HPe="Cultivo",qPe="Delete",VPe="Eliminar",XPe="Desechar",GPe="Desconectado",JPe="Error",YPe="Filtrar",KPe="Viernes",ZPe="Latitud",QPe="Longitud",eRe="Mensaje",tRe="Lunes",rRe="Nombre",nRe="Objetos",oRe="Okay",aRe="Producto",sRe="Repetir",iRe="Reemplazar",cRe="Raíz",lRe="Sábado",uRe="Salvar",dRe="Seleccionado",pRe="Estados",fRe="Domingo",hRe="Jueves",mRe="Marca de tiempo",_Re="Martes",gRe="Actualizar",yRe="Válida hasta",vRe="Valor",bRe="Versión",wRe="Miércoles",xRe="Anchura",SRe="Sí",kRe="diferente",CRe="Todo el mundo puede leer el objeto",$Re="Todos pueden leer el estado",ERe="Todos pueden escribir objetos",TRe="Todos pueden escribir el estado",ORe="El grupo puede leer el objeto",DRe="El grupo puede leer el estado",MRe="El grupo puede escribir un objeto",NRe="El grupo puede escribir el estado",PRe="El propietario puede leer el objeto",RRe="El propietario puede leer el estado",ARe="El propietario puede escribir el objeto",IRe="El propietario puede escribir el estado",jRe="Botones",LRe="Cambiaron desde",FRe="cerrar",zRe="Crear estado booleano",BRe="Crear canal",WRe="Crear dispositivo",URe="Crear estado numérico",HRe="Crear estado",qRe="Crear estado de cadena",VRe="d.",XRe="Fr",GRe="Mes",JRe="Sa",YRe="Su",KRe="Th",ZRe="Tu",QRe="Nosotros",eAe="Modo experto",tAe="Todos los archivos",rAe="Audio",nAe="Código/JSON",oAe="Imágenes",aAe="Texto",sAe="Video",iAe="Configuraciones",cAe="sin",lAe="Función",uAe="ID",dAe="Nombre",pAe="Papel",fAe="Habitación",hAe="Tipo",mAe="Configuraciones inválidas",_Ae="Ultimo cambio",gAe="en la zona",yAe="Abr",vAe="Ago",bAe="Dic",wAe="Feb",xAe="Ene",SAe="Jul",kAe="Jun",CAe="Mai",$Ae="Mar",EAe="Nov",TAe="Oct",OAe="Sep",DAe="Abr",MAe="Ago",NAe="Dic",PAe="Feb",RAe="Ene",AAe="Jul",IAe="Jun",jAe="Mai",LAe="Mar",FAe="Nov",zAe="Oct",BAe="Sep",WAe="ninguno",UAe="Objeto cambiado por",HAe="Objeto cambiado por última vez a las",qAe="Configuraciones de otro adaptador %s",VAe="Código de calidad",XAe="repetir",GAe='Para seleccionar la carpeta, simplemente mantenga presionada la tecla "shift" haciendo clic en la carpeta.',JAe="Estado cambiado por",YAe="Objeto cambiado de",KAe="Marca de tiempo",ZAe="Bandera reconocida",QAe="Comentario",e5e="Copie el valor del estado",t5e="Ajustes personalizados",r5e="Eliminar objeto",n5e="Editar objeto",o5e="Edite el valor del estado",a5e="Desde",s5e="Último cambio",i5e="Calidad",c5e="Sello de tiempo",l5e="Usuario",u5e="Valor",d5e="Valor",p5e="Advertencia: ¡El trabajo CRON se ejecutará cada minuto durante el período especificado!",f5e="Advertencia: ¡El trabajo CRON se ejecutará cada segundo durante el período especificado!",h5e="CRON",m5e="Fecha",_5e="fechas",g5e="Día",y5e="Día de la semana",v5e="Cada",b5e="cada N días",w5e="cada enésimo día de la semana",x5e="cada N día de la semana",S5e="cada N horas",k5e="cada N minutos",C5e="cada N meses",$5e="cada N segundos",E5e="cada día",T5e="Cada día de la semana",O5e="Cada día de la semana",D5e="cada hora",M5e="cada minuto",N5e="cada mes",P5e="cada segundo",R5e="De",A5e="Horas",I5e="Intervalo",j5e="Intervalo entre",L5e="CRON no válido",F5e="Minutos",z5e="meses",B5e="Una vez",W5e="Período",U5e="Segundos",H5e="Sencillo",q5e="Tiempo específico",V5e="fechas especificas",X5e="día(s) específico(s) de la semana",G5e="día específico de semanas",J5e="horas específicas",Y5e="minutos específicos",K5e="meses específicos",Z5e="segundos específicos",Q5e="Hora",eIe="A",tIe="Mago",rIe="todas",nIe="Día astro",oIe="Noche astro",aIe="Amanecer",sIe="Oscuridad",iIe="hora dorada",cIe="Fin de la hora dorada",lIe="Nadir",uIe="Amanecer náutico",dIe="Anochecer náutico",pIe="Noche",fIe="Fin de la noche",hIe="Mediodía solar",mIe="amanecer",_Ie="Fin del amanecer",gIe="Puesta de sol",yIe="Puesta de sol",vIe="a",bIe="en %s",wIe="cada día",xIe="cada hora",SIe="cada minuto",kIe="cada mes",CIe="cada %s días",$Ie="cada %s horas",EIe="cada %s minutos",TIe="cada %s meses",OIe="cada %s semanas",DIe="cada %s años",MIe="cada semana",NIe="todos los años",PIe="de %s a %s",RIe="Nunca",AIe="en %s de %s",IIe="en %s y %s de",jIe="en cada fecha de",LIe="%s",FIe="%s y %s",zIe="en %s",BIe="en %s y %s",WIe="en los fines de semana",UIe="en días laborables",HIe="ya no se ejecutará más, porque el inicio está en el pasado",qIe="en %s",VIe="de %s",XIe="Ejecutar desde hasta",GIe="a %s",JIe="cada",YIe="Tiempo específico",KIe="de",ZIe="De-a",QIe="Tiempo de intervalo",e4e="invertir; poner boca abajo o en la posición opuesta, orden o arreglo; Boca abajo",t4e="ninguna",r4e="en",n4e="Período",o4e="Diario",a4e="fechas",s4e="Día",i4e="Cada",c4e="Cada día",l4e="Cada mes",u4e="Cada semana",d4e="Todos los años",p4e="Horas",f4e="Minutos",h4e="mes",m4e="Mensual",_4e="Una vez",g4e="Meses específicos",y4e="Semana",v4e="Días laborables",b4e="Fin de semana",w4e="Semanal",x4e="Días laborables",S4e="Año",k4e="Anual",C4e="Tiempo específico",$4e="Hora",E4e="a",T4e="Válido",O4e="de",D4e="a",M4e="Todo el dia",N4e="cada mes",P4e={"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_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:PPe,"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:RPe,"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:APe,"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:IPe,ra_Clear:jPe,"ra_Clear filter":"Filtro claro","ra_Clear icon":"Icono claro","ra_Clone current row":"Clonar fila actual",ra_Close:LPe,"ra_Collapse all nodes":"Contraer todos los nodos","ra_Collapse one step node":"Contraer un nivel",ra_Commercial:FPe,ra_Configure:zPe,"ra_Configure visible columns":"Configurar columnas visibles","ra_Confirm deletion of %s":"Confirmar la eliminación de %s",ra_Connected:BPe,ra_Copied:WPe,"ra_Copied %s":'Copiado "%s"',"ra_Copy content":"Copiar contenido",ra_Create:UPe,"ra_Create alias":"Crear alias","ra_Create folder":"Crear carpeta","ra_Create new folder in %s":"Crear nueva carpeta en %s",ra_Crop:HPe,"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:qPe,ra_Delete:VPe,"ra_Delete (no confirm for 5 mins)":"Eliminar (sin confirmar durante 5 minutos)","ra_Delete current row":"Eliminar fila actual","ra_Deselect all":"Deselecciona todo","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:XPe,ra_Disconnected:GPe,"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_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 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_Error:JPe,"ra_Expand all nodes":"Expandir todos los nodos","ra_Expand one step node":"Expandir un nivel","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:YPe,"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:KPe,"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_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 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:ZPe,"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_Longitude:QPe,'ra_May not trigger "updateLicenses"':'No puede activar "updateLicenses"',ra_Message:eRe,ra_Monday:tRe,"ra_Move down":"Mover hacia abajo","ra_Move up":"Ascender",ra_Name:rRe,"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 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_Objects:nRe,ra_Ok:oRe,"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 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_Private certificate":"certificado privado",ra_Product:aRe,"ra_Public certificate":"Certificado público","ra_Quality code":"Calidad","ra_Refresh tree":"Actualizar árbol","ra_Reload files":"Recargar archivos",ra_Repeat:sRe,ra_Replace:iRe,"ra_Request timed out":"Tiempo de espera agotado","ra_Restrict to folder":"Restringir a carpeta",ra_Root:cRe,ra_Saturday:lRe,ra_Save:uRe,"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:dRe,"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_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:pRe,"ra_Suitable license not found in license manager":"Licencia adecuada no encontrada en el administrador de licencias",ra_Sunday:fRe,"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:hRe,ra_Timestamp:mRe,"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:_Re,"ra_Unknown error":"Error desconocido","ra_Unknown error!":"¡Error desconocido!",ra_Update:gRe,"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:yRe,ra_Value:vRe,ra_Version:bRe,"ra_View file":"Ver archivo","ra_View: %s":"Ver: %s",ra_Wednesday:wRe,ra_Width:xRe,ra_Yes:SRe,"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___different__:kRe,ra_aclEveryone_read_object:CRe,ra_aclEveryone_read_state:$Re,ra_aclEveryone_write_object:ERe,ra_aclEveryone_write_state:TRe,ra_aclGroup_read_object:ORe,ra_aclGroup_read_state:DRe,ra_aclGroup_write_object:MRe,ra_aclGroup_write_state:NRe,ra_aclOwner_read_object:PRe,ra_aclOwner_read_state:RRe,ra_aclOwner_write_object:ARe,ra_aclOwner_write_state:IRe,ra_buttons:jRe,ra_changedFrom:LRe,ra_close:FRe,ra_create_boolean_state:zRe,ra_create_channel:BRe,ra_create_device:WRe,ra_create_number_state:URe,ra_create_state:HRe,ra_create_string_state:qRe,ra_daysShortText:VRe,ra_dow_Fr:XRe,ra_dow_Mo:GRe,ra_dow_Sa:JRe,ra_dow_Su:YRe,ra_dow_Th:KRe,ra_dow_Tu:ZRe,ra_dow_We:QRe,ra_expertMode:eAe,ra_fileType_all:tAe,ra_fileType_audio:rAe,ra_fileType_code:nAe,ra_fileType_images:oAe,ra_fileType_txt:aAe,ra_fileType_video:sAe,"ra_fileType_video,":"Video",ra_filter_customs:iAe,ra_filter_customs_without:cAe,ra_filter_func:lAe,ra_filter_id:uAe,ra_filter_name:dAe,ra_filter_role:pAe,ra_filter_room:fAe,ra_filter_type:hAe,"ra_import data from %s file":"Importar datos del archivo %s",ra_invalidConfig:mAe,ra_lastChange:_Ae,ra_locally:gAe,ra_month_Apr:yAe,ra_month_Aug:vAe,ra_month_Dec:bAe,ra_month_Feb:wAe,ra_month_Jan:xAe,ra_month_Jul:SAe,ra_month_Jun:kAe,ra_month_Mai:CAe,ra_month_Mar:$Ae,ra_month_Nov:EAe,ra_month_Oct:TAe,ra_month_Sep:OAe,ra_months_Apr:DAe,ra_months_Aug:MAe,ra_months_Dec:NAe,ra_months_Feb:PAe,ra_months_Jan:RAe,ra_months_Jul:AAe,ra_months_Jun:IAe,ra_months_Mai:jAe,ra_months_Mar:LAe,ra_months_Nov:FAe,ra_months_Oct:zAe,ra_months_Sep:BAe,ra_none:WAe,ra_object_changed_by:UAe,ra_object_changed_by_user:HAe,ra_otherConfig:qAe,ra_qualityCode:VAe,ra_repeat:XAe,ra_select_folder_hint:GAe,ra_state_changed_by:JAe,ra_state_changed_from:YAe,ra_timestamp:KAe,ra_tooltip_ack:ZAe,ra_tooltip_comment:QAe,ra_tooltip_copyState:e5e,ra_tooltip_customConfig:t5e,ra_tooltip_deleteObject:r5e,ra_tooltip_editObject:n5e,ra_tooltip_editState:o5e,ra_tooltip_from:a5e,ra_tooltip_lc:s5e,ra_tooltip_quality:i5e,ra_tooltip_ts:c5e,ra_tooltip_user:l5e,ra_tooltip_value:u5e,"ra_use seconds":"usar segundos",ra_val:d5e,"ra_via internet":"vía Internet",ra_warning_every_minute:p5e,ra_warning_every_second:f5e,sc_cron:h5e,sc_date:m5e,sc_dates:_5e,sc_dow:g5e,sc_dows:y5e,sc_every:v5e,sc_everyN_dates:b5e,sc_everyN_dow:w5e,sc_everyN_dows:x5e,sc_everyN_hours:S5e,sc_everyN_minutes:k5e,sc_everyN_months:C5e,sc_everyN_seconds:$5e,sc_every_dates:E5e,sc_every_dow:T5e,sc_every_dows:O5e,sc_every_hours:D5e,sc_every_minutes:M5e,sc_every_months:N5e,sc_every_seconds:P5e,sc_from:R5e,sc_hours:A5e,sc_interval:I5e,sc_intervalBetween:j5e,sc_invalid_cron:L5e,sc_minutes:F5e,sc_months:z5e,sc_once:B5e,sc_period:W5e,sc_seconds:U5e,sc_simple:H5e,sc_specific:q5e,sc_specific_dates:V5e,sc_specific_dow:X5e,sc_specific_dows:G5e,sc_specific_hours:J5e,sc_specific_minutes:Y5e,sc_specific_months:K5e,sc_specific_seconds:Z5e,sc_time:Q5e,sc_to:eIe,sc_wizard:tIe,sch_all:rIe,sch_astroDay:nIe,sch_astroNight:oIe,sch_astro_dawn:aIe,sch_astro_dusk:sIe,sch_astro_goldenHour:iIe,sch_astro_goldenHourEnd:cIe,sch_astro_nadir:lIe,sch_astro_nauticalDawn:uIe,sch_astro_nauticalDusk:dIe,sch_astro_night:pIe,sch_astro_nightEnd:fIe,sch_astro_solarNoon:hIe,sch_astro_sunrise:mIe,sch_astro_sunriseEnd:_Ie,sch_astro_sunset:gIe,sch_astro_sunsetStart:yIe,sch_at:vIe,sch_desc_atTime:bIe,sch_desc_everyDay:wIe,sch_desc_everyHour:xIe,sch_desc_everyMinute:SIe,sch_desc_everyMonth:kIe,sch_desc_everyNDay:CIe,sch_desc_everyNHours:$Ie,sch_desc_everyNMinutes:EIe,sch_desc_everyNMonths:TIe,sch_desc_everyNWeeks:OIe,sch_desc_everyNYears:DIe,sch_desc_everyWeek:MIe,sch_desc_everyYear:NIe,sch_desc_intervalFromTo:PIe,sch_desc_never:RIe,sch_desc_onDate:AIe,sch_desc_onDates:IIe,sch_desc_onEveryDate:jIe,sch_desc_onMonth:LIe,sch_desc_onMonths:FIe,sch_desc_onWeekday:zIe,sch_desc_onWeekdays:BIe,sch_desc_onWeekends:WIe,sch_desc_onWorkdays:UIe,sch_desc_onceInPast:HIe,sch_desc_once_on:qIe,sch_desc_validFrom:VIe,sch_desc_validFromTo:XIe,sch_desc_validTo:GIe,sch_every:JIe,sch_exactTime:YIe,sch_from:KIe,sch_fromTo:ZIe,sch_intervalTime:QIe,sch_invert:e4e,sch_no_one:t4e,sch_on:r4e,sch_period:n4e,sch_periodDaily:o4e,sch_periodDates:a4e,sch_periodDay:s4e,sch_periodEvery:i4e,sch_periodEveryDay:c4e,sch_periodEveryMonth:l4e,sch_periodEveryWeek:u4e,sch_periodEveryYear:d4e,sch_periodHours:p4e,sch_periodMinutes:f4e,sch_periodMonth:h4e,sch_periodMonthly:m4e,sch_periodOnce:_4e,sch_periodSpecificMonths:g4e,sch_periodWeek:y4e,sch_periodWeekdays:v4e,sch_periodWeekend:b4e,sch_periodWeekly:w4e,sch_periodWorkdays:x4e,sch_periodYear:S4e,sch_periodYearly:k4e,sch_specificTime:C4e,sch_time:$4e,sch_to:E4e,sch_valid:T4e,sch_validFrom:O4e,sch_validTo:D4e,sch_wholeDay:M4e,sch_yearEveryMonth:N4e},R4e="Dodać",A4e="Anuluj",I4e="Kategorie",j4e="Sprawdzony",L4e="Kasować",F4e="Blisko",z4e="Handlowy",B4e="Konfiguruj",W4e="Połączony",U4e="Skopiowano",H4e="Stwórz",q4e="Przyciąć",V4e="Delete",X4e="Usunąć",G4e="Wyrzucać",J4e="Niepowiązany",Y4e="Błąd",K4e="Filtr",Z4e="Piątek",Q4e="Szerokość",eje="Długość geograficzna",tje="Wiadomość",rje="Poniedziałek",nje="Nazwa",oje="Obiekty",aje="Dobrze",sje="Produkt",ije="Powtarzać",cje="Zastępować",lje="Korzeń",uje="Sobota",dje="Zapisać",pje="Wybrany",fje="Stany",hje="Niedziela",mje="Czwartek",_je="Znak czasu",gje="Wtorek",yje="Aktualizacja",vje="Obowiązuje do",bje="Wartość",wje="Wersja",xje="Środa",Sje="Szerokość",kje="Tak",Cje="różne",$je="Każdy może czytać obiekt",Eje="Każdy może czytać stan",Tje="Każdy może pisać przedmiot",Oje="Każdy może pisać stan",Dje="Grupa może odczytać obiekt",Mje="Grupa może odczytać stan",Nje="Grupa może pisać obiekt",Pje="Grupa może pisać stan",Rje="Właściciel może czytać obiekt",Aje="Właściciel może odczytać stan",Ije="Właściciel może napisać obiekt",jje="Właściciel może pisać stan",Lje="guziki",Fje="Zmieniony z",zje="blisko",Bje="Utwórz stan logiczny",Wje="Utwórz kanał",Uje="Utwórz urządzenie",Hje="Utwórz stan liczbowy",qje="Utwórz stan",Vje="Utwórz stan ciągu",Xje="d.",Gje="Ks",Jje="Mo",Yje="Sa",Kje="Su",Zje="Th",Qje="Tu",e3e="My",t3e="Tryb ekspercki",r3e="Wszystkie pliki",n3e="Audio",o3e="Kod/JSON",a3e="Obrazy",s3e="Tekst",i3e="Wideo",c3e="Ustawienia",l3e="bez",u3e="Funkcjonować",d3e="ID",p3e="Imię",f3e="Rola",h3e="Sala",m3e="Rodzaj",_3e="Nieprawidłowe ustawienia",g3e="Ostatnia zmiana",y3e="lokalnie",v3e="kwiecień",b3e="sierpień",w3e="grudzień",x3e="luty",S3e="styczeń",k3e="lipiec",C3e="czerwiec",$3e="Mai",E3e="Zniszczyć",T3e="listopad",O3e="październik",D3e="wrzesień",M3e="kwiecień",N3e="sierpień",P3e="grudzień",R3e="luty",A3e="styczeń",I3e="lipiec",j3e="czerwiec",L3e="Mai",F3e="Zniszczyć",z3e="listopad",B3e="październik",W3e="wrzesień",U3e="Żaden",H3e="Obiekt zmieniony przez",q3e="Obiekt ostatnio zmieniony o godz",V3e="Ustawienia z innego adaptera %s",X3e="Kod jakości",G3e="powtarzać",J3e="Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.",Y3e="Stan zmieniony przez",K3e="Obiekt zmieniony z",Z3e="Znak czasu",Q3e="Potwierdzon",eLe="Komentarz",tLe="Skopiuj wartość stanu",rLe="Własne ustawienia",nLe="Usuń obiekt",oLe="Edytuj obiekt",aLe="Edytuj wartość stanu",sLe="Z",iLe="Ostatnia zmiana",cLe="Jakość",lLe="Znak czasu",uLe="Użytkownik",dLe="Wartość",pLe="Wartość",fLe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co minutę w określonym przedziale czasowym!",hLe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co sekundę w określonym przedziale czasowym!",mLe="CRON",_Le="Data",gLe="Daktyle",yLe="Dzień",vLe="Dzień tygodnia",bLe="Każdy",wLe="co N dni",xLe="w każdy N-ty dzień tygodnia",SLe="co N dnia tygodnia",kLe="co N godzin",CLe="co N minut",$Le="co N miesięcy",ELe="co N sekund",TLe="codziennie",OLe="każdy dzień tygodnia",DLe="każdy dzień tygodnia",MLe="co godzinę",NLe="każda minuta",PLe="każdego miesiąca",RLe="każda sekunda",ALe="Od",ILe="godziny",jLe="Interwał",LLe="Interwał między",FLe="Nieprawidłowy CRON",zLe="Minuty",BLe="miesięcy",WLe="Pewnego razu",ULe="Kropka",HLe="sekundy",qLe="Prosty",VLe="Określony czas",XLe="konkretne daty",GLe="określone dni tygodnia",JLe="określony dzień tygodni",YLe="określone godziny",KLe="określone minuty",ZLe="określone miesiące",QLe="określone sekundy",eFe="Czas",tFe="Do",rFe="Czarodziej",nFe="wszystko",oFe="Dzień Astro",aFe="Noc Astro",sFe="Świt",iFe="Zmierzch",cFe="złota godzina",lFe="Koniec złotej godziny",uFe="Nadir",dFe="Morski świt",pFe="Morski zmierzch",fFe="Noc",hFe="Koniec nocy",mFe="Południe słoneczne",_Fe="wschód słońca",gFe="Koniec wschodu słońca",yFe="Zachód słońca",vFe="Początek zachodu słońca",bFe="w",wFe="na %s",xFe="codziennie",SFe="co godzinę",kFe="każda minuta",CFe="każdego miesiąca",$Fe="każdego dnia %s",EFe="co %s godzin",TFe="co %s minut",OFe="co %s miesięcy",DFe="co %s tygodni",MFe="co %s lat",NFe="co tydzień",PFe="każdego roku",RFe="od %s do %s",AFe="nigdy",IFe="na %s z %s",jFe="na %s i %s z",LFe="w każdą datę",FFe="%s",zFe="%s i %s",BFe="na %s",WFe="na %s i %s",UFe="w weekendy",HFe="w dni robocze",qFe="nie będzie już wykonywany, ponieważ start jest w przeszłości",VFe="na %s",XFe="z %s",GFe="Wykonaj od do",JFe="do %s",YFe="każdy",KFe="Określony czas",ZFe="od",QFe="Od-do",eze="Czas przerwy",tze="odwracać",rze="Żaden",nze="na",oze="Kropka",aze="Codziennie",sze="Daktyle",ize="Dzień",cze="Każdy",lze="Codziennie",uze="Każdego miesiąca",dze="Co tydzień",pze="Każdego roku",fze="godziny",hze="Minuty",mze="miesiąc",_ze="Miesięczny",gze="Pewnego razu",yze="Określone miesiące",vze="Tydzień",bze="Dni powszednie",wze="Weekend",xze="Co tydzień",Sze="Dni robocze",kze="Rok",Cze="Rocznie",$ze="Określony czas",Eze="Czas",Tze="do",Oze="Ważny",Dze="od",Mze="do",Nze="Cały dzień",Pze="każdego miesiąca",Rze={"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_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:R4e,"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:A4e,"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:I4e,"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:j4e,ra_Clear:L4e,"ra_Clear filter":"Czysty filtr","ra_Clear icon":"Wyczyść ikonę","ra_Clone current row":"Sklonuj bieżący wiersz",ra_Close:F4e,"ra_Collapse all nodes":"Zwiń wszystkie węzły","ra_Collapse one step node":"Zwiń o jeden poziom",ra_Commercial:z4e,ra_Configure:B4e,"ra_Configure visible columns":"Skonfiguruj widoczne kolumny","ra_Confirm deletion of %s":"Potwierdź usunięcie %s",ra_Connected:W4e,ra_Copied:U4e,"ra_Copied %s":'Skopiowano "%s"',"ra_Copy content":"Kopiuj zawartość",ra_Create:H4e,"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:q4e,"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:V4e,ra_Delete:X4e,"ra_Delete (no confirm for 5 mins)":"Usuń (bez potwierdzenia przez 5 minut)","ra_Delete current row":"Usuń bieżący wiersz","ra_Deselect all":"Odznacz wszystko","ra_Device → Channel → State":"Urządzenie → Kanał → Stan",ra_Discard:G4e,ra_Disconnected:J4e,"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_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 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_Error:Y4e,"ra_Expand all nodes":"Rozwiń wszystkie węzły","ra_Expand one step node":"Rozwiń o jeden poziom","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:K4e,"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:Z4e,"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_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 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:Q4e,"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_Longitude:eje,'ra_May not trigger "updateLicenses"':"Może nie uruchamiać „updateLicenses”",ra_Message:tje,ra_Monday:rje,"ra_Move down":"Padnij","ra_Move up":"Podnieść",ra_Name:nje,"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 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_Objects:oje,ra_Ok:aje,"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 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_Private certificate":"Prywatny certyfikat",ra_Product:sje,"ra_Public certificate":"Certyfikat publiczny","ra_Quality code":"Jakości","ra_Refresh tree":"Odśwież drzewo","ra_Reload files":"Załaduj ponownie pliki",ra_Repeat:ije,ra_Replace:cje,"ra_Request timed out":"Upłynął limit czasu żądania","ra_Restrict to folder":"Ogranicz do folderu",ra_Root:lje,ra_Saturday:uje,ra_Save:dje,"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:pje,"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_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:fje,"ra_Suitable license not found in license manager":"Nie znaleziono odpowiedniej licencji w menedżerze licencji",ra_Sunday:hje,"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:mje,ra_Timestamp:_je,"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:gje,"ra_Unknown error":"Nieznany błąd","ra_Unknown error!":"Nieznany błąd!",ra_Update:yje,"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:vje,ra_Value:bje,ra_Version:wje,"ra_View file":"Zobaczyć plik","ra_View: %s":"Widok: %s",ra_Wednesday:xje,ra_Width:Sje,ra_Yes:kje,"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___different__:Cje,ra_aclEveryone_read_object:$je,ra_aclEveryone_read_state:Eje,ra_aclEveryone_write_object:Tje,ra_aclEveryone_write_state:Oje,ra_aclGroup_read_object:Dje,ra_aclGroup_read_state:Mje,ra_aclGroup_write_object:Nje,ra_aclGroup_write_state:Pje,ra_aclOwner_read_object:Rje,ra_aclOwner_read_state:Aje,ra_aclOwner_write_object:Ije,ra_aclOwner_write_state:jje,ra_buttons:Lje,ra_changedFrom:Fje,ra_close:zje,ra_create_boolean_state:Bje,ra_create_channel:Wje,ra_create_device:Uje,ra_create_number_state:Hje,ra_create_state:qje,ra_create_string_state:Vje,ra_daysShortText:Xje,ra_dow_Fr:Gje,ra_dow_Mo:Jje,ra_dow_Sa:Yje,ra_dow_Su:Kje,ra_dow_Th:Zje,ra_dow_Tu:Qje,ra_dow_We:e3e,ra_expertMode:t3e,ra_fileType_all:r3e,ra_fileType_audio:n3e,ra_fileType_code:o3e,ra_fileType_images:a3e,ra_fileType_txt:s3e,ra_fileType_video:i3e,"ra_fileType_video,":"Wideo",ra_filter_customs:c3e,ra_filter_customs_without:l3e,ra_filter_func:u3e,ra_filter_id:d3e,ra_filter_name:p3e,ra_filter_role:f3e,ra_filter_room:h3e,ra_filter_type:m3e,"ra_import data from %s file":"Importuj dane z pliku %s",ra_invalidConfig:_3e,ra_lastChange:g3e,ra_locally:y3e,ra_month_Apr:v3e,ra_month_Aug:b3e,ra_month_Dec:w3e,ra_month_Feb:x3e,ra_month_Jan:S3e,ra_month_Jul:k3e,ra_month_Jun:C3e,ra_month_Mai:$3e,ra_month_Mar:E3e,ra_month_Nov:T3e,ra_month_Oct:O3e,ra_month_Sep:D3e,ra_months_Apr:M3e,ra_months_Aug:N3e,ra_months_Dec:P3e,ra_months_Feb:R3e,ra_months_Jan:A3e,ra_months_Jul:I3e,ra_months_Jun:j3e,ra_months_Mai:L3e,ra_months_Mar:F3e,ra_months_Nov:z3e,ra_months_Oct:B3e,ra_months_Sep:W3e,ra_none:U3e,ra_object_changed_by:H3e,ra_object_changed_by_user:q3e,ra_otherConfig:V3e,ra_qualityCode:X3e,ra_repeat:G3e,ra_select_folder_hint:J3e,ra_state_changed_by:Y3e,ra_state_changed_from:K3e,ra_timestamp:Z3e,ra_tooltip_ack:Q3e,ra_tooltip_comment:eLe,ra_tooltip_copyState:tLe,ra_tooltip_customConfig:rLe,ra_tooltip_deleteObject:nLe,ra_tooltip_editObject:oLe,ra_tooltip_editState:aLe,ra_tooltip_from:sLe,ra_tooltip_lc:iLe,ra_tooltip_quality:cLe,ra_tooltip_ts:lLe,ra_tooltip_user:uLe,ra_tooltip_value:dLe,"ra_use seconds":"użyj sekund",ra_val:pLe,"ra_via internet":"przez internet",ra_warning_every_minute:fLe,ra_warning_every_second:hLe,sc_cron:mLe,sc_date:_Le,sc_dates:gLe,sc_dow:yLe,sc_dows:vLe,sc_every:bLe,sc_everyN_dates:wLe,sc_everyN_dow:xLe,sc_everyN_dows:SLe,sc_everyN_hours:kLe,sc_everyN_minutes:CLe,sc_everyN_months:$Le,sc_everyN_seconds:ELe,sc_every_dates:TLe,sc_every_dow:OLe,sc_every_dows:DLe,sc_every_hours:MLe,sc_every_minutes:NLe,sc_every_months:PLe,sc_every_seconds:RLe,sc_from:ALe,sc_hours:ILe,sc_interval:jLe,sc_intervalBetween:LLe,sc_invalid_cron:FLe,sc_minutes:zLe,sc_months:BLe,sc_once:WLe,sc_period:ULe,sc_seconds:HLe,sc_simple:qLe,sc_specific:VLe,sc_specific_dates:XLe,sc_specific_dow:GLe,sc_specific_dows:JLe,sc_specific_hours:YLe,sc_specific_minutes:KLe,sc_specific_months:ZLe,sc_specific_seconds:QLe,sc_time:eFe,sc_to:tFe,sc_wizard:rFe,sch_all:nFe,sch_astroDay:oFe,sch_astroNight:aFe,sch_astro_dawn:sFe,sch_astro_dusk:iFe,sch_astro_goldenHour:cFe,sch_astro_goldenHourEnd:lFe,sch_astro_nadir:uFe,sch_astro_nauticalDawn:dFe,sch_astro_nauticalDusk:pFe,sch_astro_night:fFe,sch_astro_nightEnd:hFe,sch_astro_solarNoon:mFe,sch_astro_sunrise:_Fe,sch_astro_sunriseEnd:gFe,sch_astro_sunset:yFe,sch_astro_sunsetStart:vFe,sch_at:bFe,sch_desc_atTime:wFe,sch_desc_everyDay:xFe,sch_desc_everyHour:SFe,sch_desc_everyMinute:kFe,sch_desc_everyMonth:CFe,sch_desc_everyNDay:$Fe,sch_desc_everyNHours:EFe,sch_desc_everyNMinutes:TFe,sch_desc_everyNMonths:OFe,sch_desc_everyNWeeks:DFe,sch_desc_everyNYears:MFe,sch_desc_everyWeek:NFe,sch_desc_everyYear:PFe,sch_desc_intervalFromTo:RFe,sch_desc_never:AFe,sch_desc_onDate:IFe,sch_desc_onDates:jFe,sch_desc_onEveryDate:LFe,sch_desc_onMonth:FFe,sch_desc_onMonths:zFe,sch_desc_onWeekday:BFe,sch_desc_onWeekdays:WFe,sch_desc_onWeekends:UFe,sch_desc_onWorkdays:HFe,sch_desc_onceInPast:qFe,sch_desc_once_on:VFe,sch_desc_validFrom:XFe,sch_desc_validFromTo:GFe,sch_desc_validTo:JFe,sch_every:YFe,sch_exactTime:KFe,sch_from:ZFe,sch_fromTo:QFe,sch_intervalTime:eze,sch_invert:tze,sch_no_one:rze,sch_on:nze,sch_period:oze,sch_periodDaily:aze,sch_periodDates:sze,sch_periodDay:ize,sch_periodEvery:cze,sch_periodEveryDay:lze,sch_periodEveryMonth:uze,sch_periodEveryWeek:dze,sch_periodEveryYear:pze,sch_periodHours:fze,sch_periodMinutes:hze,sch_periodMonth:mze,sch_periodMonthly:_ze,sch_periodOnce:gze,sch_periodSpecificMonths:yze,sch_periodWeek:vze,sch_periodWeekdays:bze,sch_periodWeekend:wze,sch_periodWeekly:xze,sch_periodWorkdays:Sze,sch_periodYear:kze,sch_periodYearly:Cze,sch_specificTime:$ze,sch_time:Eze,sch_to:Tze,sch_valid:Oze,sch_validFrom:Dze,sch_validTo:Mze,sch_wholeDay:Nze,sch_yearEveryMonth:Pze},Aze="Додайте",Ize="Скасувати",jze="Категорії",Lze="Перевірено",Fze="Видалити",zze="Закрити",Bze="Комерційний",Wze="Налаштувати",Uze="Підключено",Hze="Скопійовано",qze="Створити",Vze="Урожай",Xze="Delete",Gze="Видалити",Jze="Відкинути",Yze="Відключено",Kze="Помилка",Zze="фільтр",Qze="П'ятниця",e6e="Широта",t6e="Довгота",r6e="повідомлення",n6e="понеділок",o6e="Ім'я",a6e="Об'єкти",s6e="В порядку",i6e="Продукт",c6e="Повторіть",l6e="Замінити",u6e="Корінь",d6e="Субота",p6e="зберегти",f6e="Вибране",h6e="держави",m6e="неділя",_6e="четвер",g6e="Мітка часу",y6e="вівторок",v6e="оновлення",b6e="Дійсний до",w6e="Значення",x6e="Версія",S6e="Середа",k6e="Ширина",C6e="Так",$6e="інший",E6e="Кожен може читати об'єкт",T6e="Кожен може читати стан",O6e="Кожен може написати об'єкт",D6e="Кожен може написати стан",M6e="Група може читати об'єкт",N6e="Група може читати стан",P6e="Група може писати об'єкт",R6e="Група може писати стан",A6e="Власник може читати об'єкт",I6e="Власник може читати стан",j6e="Власник може написати об'єкт",L6e="Власник може написати стан",F6e="кнопки",z6e="Змінено з",B6e="закрити",W6e="Створіть логічний стан",U6e="Створити канал",H6e="Створити пристрій",q6e="Створити номерний стан",V6e="Створити состояние",X6e="Створити рядковий стан",G6e="днів",J6e="О",Y6e="пн",K6e="Sa",Z6e="Нд",Q6e="чт",e8e="вт",t8e="ми",r8e="Експертний режим",n8e="Всі файли",o8e="Аудіо",a8e="Код/JSON",s8e="Зображення",i8e="текст",c8e="відео",l8e="Налаштування",u8e="без",d8e="функція",p8e="ID",f8e="Ім'я",h8e="Роль",m8e="Кімната",_8e="Тип",g8e="Недійсні налаштування",y8e="Остання зміна",v8e="локально",b8e="квіт",w8e="серп",x8e="груд",S8e="лютий",k8e="січня",C8e="лип",$8e="черв",E8e="травень",T8e="березень",O8e="Листопад",D8e="жовт",M8e="вер",N8e="квіт",P8e="серп",R8e="груд",A8e="лютий",I8e="січня",j8e="лип",L8e="черв",F8e="травень",z8e="березень",B8e="Листопад",W8e="жовт",U8e="вер",H8e="немає",q8e="Об'єкт змінено",V8e="Об'єкт востаннє змінено о",X8e="Налаштування з іншого адаптера %s",G8e="Код якості",J8e="повторити",Y8e="Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».",K8e="Стан змінено на",Z8e="Об'єкт змінено з",Q8e="Мітка часу",e9e="Визнано",t9e="коментар",r9e="Скопіюйте значення стану",n9e="Спеціальні налаштування",o9e="Видалити об'єкт",a9e="Редагувати об'єкт",s9e="Відредагуйте значення стану",i9e="Від",c9e="Востаннє змінено",l9e="якість",u9e="Позначка часу",d9e="Користувач",p9e="Значення",f9e="Значення",h9e="Попередження: завдання CRON виконуватиметься щохвилини протягом зазначеного періоду!",m9e="Попередження: завдання CRON виконуватиметься кожну секунду протягом зазначеного періоду!",_9e="CRON",g9e="Дата",y9e="дати",v9e="День",b9e="День тижня",w9e="кожен",x9e="кожні N днів",S9e="кожен N-й день тижня",k9e="кожні N днів тижня",C9e="кожні N годин",$9e="кожні N хвилин",E9e="кожні N місяців",T9e="кожні N секунд",O9e="кожен день",D9e="кожен день тижня",M9e="кожен день тижня",N9e="щогодини",P9e="кожну хвилину",R9e="щомісяця",A9e="кожна секунда",I9e="Від",j9e="години",L9e="Інтервал",F9e="Інтервал між",z9e="Недійсний CRON",B9e="хвилин",W9e="місяців",U9e="Один раз",H9e="Крапка",q9e="секунд",V9e="просто",X9e="Конкретний час",G9e="конкретні дати",J9e="конкретний день (дні) тижня",Y9e="конкретний день тижня",K9e="конкретні години",Z9e="конкретні хвилини",Q9e="конкретні місяці",eBe="конкретні секунди",tBe="час",rBe="до",nBe="майстер",oBe="все",aBe="Астродень",sBe="Астро ніч",iBe="Світанок",cBe="Сутінки",lBe="Золота година",uBe="Кінець золотої години",dBe="Надір",pBe="Морський світанок",fBe="Морські сутінки",hBe="ніч",mBe="Кінець ночі",_Be="Сонячний полудень",gBe="Схід сонця",yBe="Кінець сходу сонця",vBe="Захід сонця",bBe="Початок заходу сонця",wBe="в",xBe="в %s",SBe="кожен день",kBe="щогодини",CBe="кожну хвилину",$Be="щомісяця",EBe="кожен %s день",TBe="кожні %s годин",OBe="кожні %s хвилин",DBe="кожні %s місяців",MBe="кожні %s тижнів",NBe="кожні %s років",PBe="щотижня",RBe="щороку",ABe="від %s до %s",IBe="ніколи",jBe="на %s з %s",LBe="на %s і %s з",FBe="на кожну дату",zBe="%s",BBe="%s і %s",WBe="на %s",UBe="на %s і %s",HBe="на вихідних",qBe="в робочі дні",VBe="більше не виконуватиметься, оскільки запуск у минулому",XBe="на %s",GBe="від %s",JBe="Виконати від до",YBe="до %s",KBe="кожен",ZBe="Конкретний час",QBe="від",e7e="Від до",t7e="Час інтервалу",r7e="інвертувати",n7e="немає",o7e="на",a7e="Крапка",s7e="Щодня",i7e="дати",c7e="День",l7e="кожен",u7e="Кожен день",d7e="Щомісяця",p7e="Щотижня",f7e="Щороку",h7e="години",m7e="хвилин",_7e="місяць",g7e="Щомісяця",y7e="Один раз",v7e="Конкретні місяці",b7e="тиждень",w7e="будні",x7e="Вихідні",S7e="Щотижня",k7e="робочі дні",C7e="рік",$7e="щорічно",E7e="Конкретний час",T7e="час",O7e="до",D7e="Дійсний",M7e="від",N7e="до",P7e="Цілий день",R7e="щомісяця",A7e={"ra_%s links from aliases":"%s посилань із псевдонімів","ra_%s object(s) processed":"Оброблено %s об’єктів","ra_%s was imported":"%s було імпортовано","ra_Accept license":"Прийняти ліцензію","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:Aze,"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:Ize,"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:jze,"ra_Chained certificate":"Прикутий сертифікат","ra_Change color theme":"Змінити кольорову тему","ra_Changed from":"Змінено з","ra_Channel → State":"Канал → Стан","ra_Check license":"Перевірити ліцензію",ra_Checked:Lze,ra_Clear:Fze,"ra_Clear filter":"Очистити фільтр","ra_Clear icon":"Очистити значок","ra_Clone current row":"Клонувати поточний рядок",ra_Close:zze,"ra_Collapse all nodes":"Згорнути всі вузли","ra_Collapse one step node":"Згорнути на один рівень",ra_Commercial:Bze,ra_Configure:Wze,"ra_Configure visible columns":"Налаштувати видимі стовпці","ra_Confirm deletion of %s":"Підтвердити видалення %s",ra_Connected:Uze,ra_Copied:Hze,"ra_Copied %s":'Скопійовано "%s"',"ra_Copy content":"Скопіюйте вміст",ra_Create:qze,"ra_Create alias":"Створити псевдонім","ra_Create folder":"Створити папку","ra_Create new folder in %s":"Створіть нову папку в %s",ra_Crop:Vze,"ra_Define CRON...":"Визначити CRON...","ra_Define functions":"Визначити функції","ra_Define rooms":"Визначте кімнати","ra_Define schedule":"Визначити розклад","ra_Define schedule...":"Визначити розклад...",ra_Del:Xze,ra_Delete:Gze,"ra_Delete (no confirm for 5 mins)":"Видалити (без підтвердження протягом 5 хвилин)","ra_Delete current row":"Видалити поточний рядок","ra_Deselect all":"Скасувати вибір усіх","ra_Device → Channel → State":"Пристрій → Канал → Стан",ra_Discard:Jze,ra_Disconnected:Yze,"ra_Do not export values of states":"Не експортуйте значення станів","ra_Do not use let's encrypt":"Не використовуйте let's encrypt","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 function":"функція редагування","ra_Edit object field":"Поле редагування об'єкта","ra_Edit role":"Редагувати роль","ra_Edit room":"Редагувати кімнату","ra_Edit value":"Редагувати значення",ra_Error:Kze,"ra_Expand all nodes":"Розгорнути всі вузли","ra_Expand one step node":"Розгорніть один рівень","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:Zze,"ra_Filter files":"Фільтр файлів","ra_Folder name":"Назва папки","ra_Folder → Channel → State":"Папка → Канал → Стан","ra_Folder → Device → Channel → State":"Папка → Пристрій → Канал → Стан","ra_Folder → State":"Папка → Стан","ra_Folders always first":"Папки завжди першими",ra_Friday:Qze,"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_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 answer from server":"Недійсна відповідь від сервера","ra_Invalid parent folder!":"Недійсна батьківська папка!","ra_Invalid structure":"Недійсна структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Остання зміна",ra_Latitude:e6e,"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_Longitude:t6e,'ra_May not trigger "updateLicenses"':'Може не запускати "updateLicenses"',ra_Message:r6e,ra_Monday:n6e,"ra_Move down":"Рухатися вниз","ra_Move up":"Рухатися вгору",ra_Name:o6e,"ra_No data found in file":"Немає даних у файлі","ra_No one license found in license manager":"У менеджері ліцензій не знайдено жодної ліцензії","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_Objects:a6e,ra_Ok:s6e,"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 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_Private certificate":"Приватний сертифікат",ra_Product:i6e,"ra_Public certificate":"Публічний сертифікат","ra_Quality code":"якість","ra_Refresh tree":"Оновити дерево","ra_Reload files":"Перезавантажте файли",ra_Repeat:c6e,ra_Replace:l6e,"ra_Request timed out":"Час запиту вичерпано","ra_Restrict to folder":"Обмежити папкою",ra_Root:u6e,ra_Saturday:d6e,ra_Save:p6e,"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:f6e,"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_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:h6e,"ra_Suitable license not found in license manager":"Відповідна ліцензія не знайдена в менеджері ліцензій",ra_Sunday:m6e,"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:_6e,ra_Timestamp:g6e,"ra_Toggle expert mode":"Перемкнути експертний режим","ra_Toggle the states view":"Перемкнути перегляд штатів","ra_Toggle view mode":"Перемкнути режим перегляду","ra_Too big":"Занадто великий","ra_Too small":"Занадто малий","ra_Transparent dialog":"Прозорий діалог",ra_Tuesday:y6e,"ra_Unknown error":"Невідома помилка","ra_Unknown error!":"Невідома помилка!",ra_Update:v6e,"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:b6e,ra_Value:w6e,ra_Version:x6e,"ra_View file":"Переглянути файл","ra_View: %s":"Перегляд: %s",ra_Wednesday:S6e,ra_Width:k6e,ra_Yes:C6e,"ra_You can export all objects or just the selected branch.":"Ви можете експортувати всі об’єкти або лише вибрану гілку.","ra_You can filter entries by entering here some text":"Ви можете фільтрувати записи, ввівши тут певний текст",ra___different__:$6e,ra_aclEveryone_read_object:E6e,ra_aclEveryone_read_state:T6e,ra_aclEveryone_write_object:O6e,ra_aclEveryone_write_state:D6e,ra_aclGroup_read_object:M6e,ra_aclGroup_read_state:N6e,ra_aclGroup_write_object:P6e,ra_aclGroup_write_state:R6e,ra_aclOwner_read_object:A6e,ra_aclOwner_read_state:I6e,ra_aclOwner_write_object:j6e,ra_aclOwner_write_state:L6e,ra_buttons:F6e,ra_changedFrom:z6e,ra_close:B6e,ra_create_boolean_state:W6e,ra_create_channel:U6e,ra_create_device:H6e,ra_create_number_state:q6e,ra_create_state:V6e,ra_create_string_state:X6e,ra_daysShortText:G6e,ra_dow_Fr:J6e,ra_dow_Mo:Y6e,ra_dow_Sa:K6e,ra_dow_Su:Z6e,ra_dow_Th:Q6e,ra_dow_Tu:e8e,ra_dow_We:t8e,ra_expertMode:r8e,ra_fileType_all:n8e,ra_fileType_audio:o8e,ra_fileType_code:a8e,ra_fileType_images:s8e,ra_fileType_txt:i8e,ra_fileType_video:c8e,"ra_fileType_video,":"відео",ra_filter_customs:l8e,ra_filter_customs_without:u8e,ra_filter_func:d8e,ra_filter_id:p8e,ra_filter_name:f8e,ra_filter_role:h8e,ra_filter_room:m8e,ra_filter_type:_8e,"ra_import data from %s file":"Імпортувати дані з файлу %s",ra_invalidConfig:g8e,ra_lastChange:y8e,ra_locally:v8e,ra_month_Apr:b8e,ra_month_Aug:w8e,ra_month_Dec:x8e,ra_month_Feb:S8e,ra_month_Jan:k8e,ra_month_Jul:C8e,ra_month_Jun:$8e,ra_month_Mai:E8e,ra_month_Mar:T8e,ra_month_Nov:O8e,ra_month_Oct:D8e,ra_month_Sep:M8e,ra_months_Apr:N8e,ra_months_Aug:P8e,ra_months_Dec:R8e,ra_months_Feb:A8e,ra_months_Jan:I8e,ra_months_Jul:j8e,ra_months_Jun:L8e,ra_months_Mai:F8e,ra_months_Mar:z8e,ra_months_Nov:B8e,ra_months_Oct:W8e,ra_months_Sep:U8e,ra_none:H8e,ra_object_changed_by:q8e,ra_object_changed_by_user:V8e,ra_otherConfig:X8e,ra_qualityCode:G8e,ra_repeat:J8e,ra_select_folder_hint:Y8e,ra_state_changed_by:K8e,ra_state_changed_from:Z8e,ra_timestamp:Q8e,ra_tooltip_ack:e9e,ra_tooltip_comment:t9e,ra_tooltip_copyState:r9e,ra_tooltip_customConfig:n9e,ra_tooltip_deleteObject:o9e,ra_tooltip_editObject:a9e,ra_tooltip_editState:s9e,ra_tooltip_from:i9e,ra_tooltip_lc:c9e,ra_tooltip_quality:l9e,ra_tooltip_ts:u9e,ra_tooltip_user:d9e,ra_tooltip_value:p9e,"ra_use seconds":"використовуйте секунди",ra_val:f9e,"ra_via internet":"через інтернет",ra_warning_every_minute:h9e,ra_warning_every_second:m9e,sc_cron:_9e,sc_date:g9e,sc_dates:y9e,sc_dow:v9e,sc_dows:b9e,sc_every:w9e,sc_everyN_dates:x9e,sc_everyN_dow:S9e,sc_everyN_dows:k9e,sc_everyN_hours:C9e,sc_everyN_minutes:$9e,sc_everyN_months:E9e,sc_everyN_seconds:T9e,sc_every_dates:O9e,sc_every_dow:D9e,sc_every_dows:M9e,sc_every_hours:N9e,sc_every_minutes:P9e,sc_every_months:R9e,sc_every_seconds:A9e,sc_from:I9e,sc_hours:j9e,sc_interval:L9e,sc_intervalBetween:F9e,sc_invalid_cron:z9e,sc_minutes:B9e,sc_months:W9e,sc_once:U9e,sc_period:H9e,sc_seconds:q9e,sc_simple:V9e,sc_specific:X9e,sc_specific_dates:G9e,sc_specific_dow:J9e,sc_specific_dows:Y9e,sc_specific_hours:K9e,sc_specific_minutes:Z9e,sc_specific_months:Q9e,sc_specific_seconds:eBe,sc_time:tBe,sc_to:rBe,sc_wizard:nBe,sch_all:oBe,sch_astroDay:aBe,sch_astroNight:sBe,sch_astro_dawn:iBe,sch_astro_dusk:cBe,sch_astro_goldenHour:lBe,sch_astro_goldenHourEnd:uBe,sch_astro_nadir:dBe,sch_astro_nauticalDawn:pBe,sch_astro_nauticalDusk:fBe,sch_astro_night:hBe,sch_astro_nightEnd:mBe,sch_astro_solarNoon:_Be,sch_astro_sunrise:gBe,sch_astro_sunriseEnd:yBe,sch_astro_sunset:vBe,sch_astro_sunsetStart:bBe,sch_at:wBe,sch_desc_atTime:xBe,sch_desc_everyDay:SBe,sch_desc_everyHour:kBe,sch_desc_everyMinute:CBe,sch_desc_everyMonth:$Be,sch_desc_everyNDay:EBe,sch_desc_everyNHours:TBe,sch_desc_everyNMinutes:OBe,sch_desc_everyNMonths:DBe,sch_desc_everyNWeeks:MBe,sch_desc_everyNYears:NBe,sch_desc_everyWeek:PBe,sch_desc_everyYear:RBe,sch_desc_intervalFromTo:ABe,sch_desc_never:IBe,sch_desc_onDate:jBe,sch_desc_onDates:LBe,sch_desc_onEveryDate:FBe,sch_desc_onMonth:zBe,sch_desc_onMonths:BBe,sch_desc_onWeekday:WBe,sch_desc_onWeekdays:UBe,sch_desc_onWeekends:HBe,sch_desc_onWorkdays:qBe,sch_desc_onceInPast:VBe,sch_desc_once_on:XBe,sch_desc_validFrom:GBe,sch_desc_validFromTo:JBe,sch_desc_validTo:YBe,sch_every:KBe,sch_exactTime:ZBe,sch_from:QBe,sch_fromTo:e7e,sch_intervalTime:t7e,sch_invert:r7e,sch_no_one:n7e,sch_on:o7e,sch_period:a7e,sch_periodDaily:s7e,sch_periodDates:i7e,sch_periodDay:c7e,sch_periodEvery:l7e,sch_periodEveryDay:u7e,sch_periodEveryMonth:d7e,sch_periodEveryWeek:p7e,sch_periodEveryYear:f7e,sch_periodHours:h7e,sch_periodMinutes:m7e,sch_periodMonth:_7e,sch_periodMonthly:g7e,sch_periodOnce:y7e,sch_periodSpecificMonths:v7e,sch_periodWeek:b7e,sch_periodWeekdays:w7e,sch_periodWeekend:x7e,sch_periodWeekly:S7e,sch_periodWorkdays:k7e,sch_periodYear:C7e,sch_periodYearly:$7e,sch_specificTime:E7e,sch_time:T7e,sch_to:O7e,sch_valid:D7e,sch_validFrom:M7e,sch_validTo:N7e,sch_wholeDay:P7e,sch_yearEveryMonth:R7e},I7e="附加",j7e="取消",L7e="类别",F7e="勾选",z7e="删除",B7e="关",W7e="商业的",U7e="配置",H7e="连接的",q7e="复制的",V7e="创建",X7e="庄稼",G7e="Delete",J7e="删除",Y7e="丢弃",K7e="断开连接",Z7e="错误",Q7e="筛选",eWe="星期五",tWe="纬度",rWe="经度",nWe="信息",oWe="周一",aWe="姓名",sWe="对象",iWe="好",cWe="产品",lWe="重复",uWe="代替",dWe="根",pWe="周六",fWe="保存",hWe="已选",mWe="状态",_We="星期日",gWe="周四",yWe="时间戳记",vWe="周二",bWe="更新资料",wWe="有效期至",xWe="值",SWe="版本",kWe="周三",CWe="宽度",$We="是的",EWe="不同的",TWe="每个人都可以阅读对象",OWe="每个人都可以阅读状态",DWe="每个人都可以写对象",MWe="每个人都可以写状态",NWe="组可以读取对象",PWe="群组可以读取状态",RWe="组可以写对象",AWe="组可以写状态",IWe="所有者可以读取对象",jWe="所有者可以读取状态",LWe="所有者可以写对象",FWe="所有者可以写状态",zWe="纽扣",BWe="更改为",WWe="关闭",UWe="创建布尔状态",HWe="创建频道",qWe="创建设备",VWe="创建号码状态",XWe="创建状态",GWe="创建字符串状态",JWe="天",YWe="r",KWe="莫",ZWe="萨",QWe="苏",eUe="Th",tUe="Tu",rUe="我们",nUe="专家模式",oUe="所有文件",aUe="声音的",sUe="代码/JSON",iUe="图片",cUe="文本",lUe="视频",uUe="设定值",dUe="没有",pUe="功能",fUe="ID",hUe="名称",mUe="角色",_Ue="房间",gUe="类型",yUe="无效的设定",vUe="最后一次变更",bUe="本地",wUe="4月",xUe="八月",SUe="十二月",kUe="二月",CUe="简",$Ue="七月",EUe="君",TUe="迈",OUe="三月",DUe="十一月",MUe="十月",NUe="九月",PUe="4月",RUe="八月",AUe="十二月",IUe="二月",jUe="简",LUe="七月",FUe="君",zUe="迈",BUe="三月",WUe="十一月",UUe="十月",HUe="九月",qUe="没有任何",VUe="物件变更者",XUe="对象上次更改时间为",GUe="来自其他适配器%s的设置",JUe="质量代码",YUe="重复",KUe="要选择文件夹,只需按住“shift”键单击文件夹即可。",ZUe="状态由",QUe="对象已从更改",eHe="时间戳记",tHe="致谢国旗",rHe="评论",nHe="复制状态值",oHe="自定义设置",aHe="删除物件",sHe="编辑物件",iHe="编辑状态值",cHe="从",lHe="最后改变了",uHe="质量",dHe="时间戳",pHe="用户",fHe="值",hHe="值",mHe="警告:CRON 作业将在指定期间内每分钟运行一次!",_He="警告:CRON 作业将在指定期间内每秒运行一次!",gHe="周期任务",yHe="日期",vHe="日",bHe="天",wHe="星期",xHe="每",SHe="每N天",kHe="每周的第 N 天",CHe="每周N天",$He="每N小时一次",EHe="每N分钟",THe="每N个月",OHe="每N秒",DHe="每天",MHe="一周的每一天",NHe="一周的每一天",PHe="每小时",RHe="每分钟",AHe="每月",IHe="每秒",jHe="从",LHe="小时",FHe="间隔",zHe="间隔时间",BHe="无效的 CRON",WHe="分钟",UHe="月",HHe="一次",qHe="周期",VHe="秒",XHe="简单模式",GHe="特定的时间",JHe="特定的日子",YHe="一周中的特定日子",KHe="特定的一周",ZHe="特定的小时",QHe="特定的分钟",eqe="特定的月份",tqe="特定的描述",rqe="时间",nqe="至",oqe="向导模式",aqe="全选",sqe="天文白天",iqe="天文夜晚",cqe="黎明",lqe="黄昏",uqe="黄金时段",dqe="黄金时段结束",pqe="天底",fqe="航海黎明",hqe="航海黄昏",mqe="夜晚",_qe="夜晚结束",gqe="正午",yqe="日出",vqe="日出结束",bqe="日落",wqe="日落开始",xqe="在",Sqe="的%s",kqe="每天",Cqe="每小时",$qe="每分钟",Eqe="每月",Tqe="每%s天",Oqe="每%s小时",Dqe="每%s分钟",Mqe="每%s月",Nqe="每%s周",Pqe="每%s年",Rqe="每周",Aqe="每年",Iqe="从%s到%s",jqe="决不",Lqe="在%s的%s上",Fqe="在%s和%s上",zqe="在每天",Bqe="%s",Wqe="%s和%s",Uqe="在%s上",Hqe="在%s和%s上",qqe="在周末",Vqe="在工作日",Xqe="将不再执行,因为起始时间已经是过去的时间了。",Gqe="在%s上",Jqe="来自%s",Yqe="从执行到",Kqe="到%s",Zqe="每",Qqe="特定的时间",eVe="从",tVe="从到",rVe="间隔时间",nVe="倒置",oVe="取消全选",aVe="的",sVe="周期",iVe="每天",cVe="日期",lVe="天",uVe="每",dVe="每天",pVe="每月",fVe="每周",hVe="每年",mVe="小时",_Ve="分钟",gVe="月",yVe="每月一次",vVe="一次",bVe="特定的月份",wVe="周",xVe="工作日",SVe="周末",kVe="每周",CVe="工作日",$Ve="年",EVe="每年",TVe="特定的时间",OVe="时间",DVe="至",MVe="生效",NVe="从",PVe="至",RVe="一整天",AVe="每月",IVe={"ra_%s links from aliases":"来自别名的 %s 个链接","ra_%s object(s) processed":"已处理%s个对象","ra_%s was imported":"对象已导入","ra_Accept license":"接受许可","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:I7e,"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:j7e,"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:L7e,"ra_Chained certificate":"链式证书","ra_Change color theme":"更改颜色主题","ra_Changed from":"更改为","ra_Channel → State":"频道→状态","ra_Check license":"检查许可证",ra_Checked:F7e,ra_Clear:z7e,"ra_Clear filter":"清除筛选","ra_Clear icon":"清除图标","ra_Clone current row":"克隆当前行",ra_Close:B7e,"ra_Collapse all nodes":"收合所有节点","ra_Collapse one step node":"折叠一级",ra_Commercial:W7e,ra_Configure:U7e,"ra_Configure visible columns":"配置可见列","ra_Confirm deletion of %s":"确认删除%s",ra_Connected:H7e,ra_Copied:q7e,"ra_Copied %s":'复制的"%s"',"ra_Copy content":"复制内容",ra_Create:V7e,"ra_Create alias":"创建别名","ra_Create folder":"创建文件夹","ra_Create new folder in %s":"在%s中创建新文件夹",ra_Crop:X7e,"ra_Define CRON...":"定义 CRON...","ra_Define functions":"定义功能","ra_Define rooms":"定义房间","ra_Define schedule":"定义时间表","ra_Define schedule...":"定义时间表...",ra_Del:G7e,ra_Delete:J7e,"ra_Delete (no confirm for 5 mins)":"删除(5分钟内未确认)","ra_Delete current row":"删除当前行","ra_Deselect all":"全部取消选择","ra_Device → Channel → State":"设备→频道→状态",ra_Discard:Y7e,ra_Disconnected:K7e,"ra_Do not export values of states":"不导出状态值","ra_Do not use let's encrypt":"不要使用让我们加密","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 function":"编辑功能","ra_Edit object field":"编辑对象字段","ra_Edit role":"编辑角色","ra_Edit room":"编辑室","ra_Edit value":"编辑值",ra_Error:Z7e,"ra_Expand all nodes":"展开所有节点","ra_Expand one step node":"扩大一级","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:Q7e,"ra_Filter files":"过滤文件","ra_Folder name":"文件夹名称","ra_Folder → Channel → State":"文件夹→频道→状态","ra_Folder → Device → Channel → State":"文件夹→设备→频道→状态","ra_Folder → State":"文件夹→状态","ra_Folders always first":"资料夹永远优先",ra_Friday:eWe,"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_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 answer from server":"来自服务器的无效答案","ra_Invalid parent folder!":"父文件夹无效!","ra_Invalid structure":"结构无效","ra_JSON editor":"JSON 编辑器","ra_Last change":"最后一次变更",ra_Latitude:tWe,"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_Longitude:rWe,'ra_May not trigger "updateLicenses"':"可能不会触发“updateLicenses”",ra_Message:nWe,ra_Monday:oWe,"ra_Move down":"下移","ra_Move up":"提升",ra_Name:aWe,"ra_No data found in file":"文件中未找到数据","ra_No one license found in license manager":"许可证管理器中未找到任何许可证","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_Objects:sWe,ra_Ok:iWe,"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 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_Private certificate":"私有证书",ra_Product:cWe,"ra_Public certificate":"公共证书","ra_Quality code":"质量代码","ra_Refresh tree":"刷新树","ra_Reload files":"重新载入文件",ra_Repeat:lWe,ra_Replace:uWe,"ra_Request timed out":"请求超时","ra_Restrict to folder":"限制到文件夹",ra_Root:dWe,ra_Saturday:pWe,ra_Save:fWe,"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:hWe,"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_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:mWe,"ra_Suitable license not found in license manager":"在许可证管理器中找不到合适的许可证",ra_Sunday:_We,"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:gWe,ra_Timestamp:yWe,"ra_Toggle expert mode":"切换专家模式","ra_Toggle the states view":"切换状态视图","ra_Toggle view mode":"切换检视模式","ra_Too big":"太大","ra_Too small":"太小","ra_Transparent dialog":"透明对话框",ra_Tuesday:vWe,"ra_Unknown error":"未知错误","ra_Unknown error!":"未知错误!",ra_Update:bWe,"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:wWe,ra_Value:xWe,ra_Version:SWe,"ra_View file":"查看文件","ra_View: %s":"查看:%s",ra_Wednesday:kWe,ra_Width:CWe,ra_Yes:$We,"ra_You can export all objects or just the selected branch.":"您可以导出所有对象或仅导出选定的分支。","ra_You can filter entries by entering here some text":"您可以通过在此处输入一些文本来过滤条目",ra___different__:EWe,ra_aclEveryone_read_object:TWe,ra_aclEveryone_read_state:OWe,ra_aclEveryone_write_object:DWe,ra_aclEveryone_write_state:MWe,ra_aclGroup_read_object:NWe,ra_aclGroup_read_state:PWe,ra_aclGroup_write_object:RWe,ra_aclGroup_write_state:AWe,ra_aclOwner_read_object:IWe,ra_aclOwner_read_state:jWe,ra_aclOwner_write_object:LWe,ra_aclOwner_write_state:FWe,ra_buttons:zWe,ra_changedFrom:BWe,ra_close:WWe,ra_create_boolean_state:UWe,ra_create_channel:HWe,ra_create_device:qWe,ra_create_number_state:VWe,ra_create_state:XWe,ra_create_string_state:GWe,ra_daysShortText:JWe,ra_dow_Fr:YWe,ra_dow_Mo:KWe,ra_dow_Sa:ZWe,ra_dow_Su:QWe,ra_dow_Th:eUe,ra_dow_Tu:tUe,ra_dow_We:rUe,ra_expertMode:nUe,ra_fileType_all:oUe,ra_fileType_audio:aUe,ra_fileType_code:sUe,ra_fileType_images:iUe,ra_fileType_txt:cUe,ra_fileType_video:lUe,"ra_fileType_video,":"视频",ra_filter_customs:uUe,ra_filter_customs_without:dUe,ra_filter_func:pUe,ra_filter_id:fUe,ra_filter_name:hUe,ra_filter_role:mUe,ra_filter_room:_Ue,ra_filter_type:gUe,"ra_import data from %s file":"从 %s 文件导入数据",ra_invalidConfig:yUe,ra_lastChange:vUe,ra_locally:bUe,ra_month_Apr:wUe,ra_month_Aug:xUe,ra_month_Dec:SUe,ra_month_Feb:kUe,ra_month_Jan:CUe,ra_month_Jul:$Ue,ra_month_Jun:EUe,ra_month_Mai:TUe,ra_month_Mar:OUe,ra_month_Nov:DUe,ra_month_Oct:MUe,ra_month_Sep:NUe,ra_months_Apr:PUe,ra_months_Aug:RUe,ra_months_Dec:AUe,ra_months_Feb:IUe,ra_months_Jan:jUe,ra_months_Jul:LUe,ra_months_Jun:FUe,ra_months_Mai:zUe,ra_months_Mar:BUe,ra_months_Nov:WUe,ra_months_Oct:UUe,ra_months_Sep:HUe,ra_none:qUe,ra_object_changed_by:VUe,ra_object_changed_by_user:XUe,ra_otherConfig:GUe,ra_qualityCode:JUe,ra_repeat:YUe,ra_select_folder_hint:KUe,ra_state_changed_by:ZUe,ra_state_changed_from:QUe,ra_timestamp:eHe,ra_tooltip_ack:tHe,ra_tooltip_comment:rHe,ra_tooltip_copyState:nHe,ra_tooltip_customConfig:oHe,ra_tooltip_deleteObject:aHe,ra_tooltip_editObject:sHe,ra_tooltip_editState:iHe,ra_tooltip_from:cHe,ra_tooltip_lc:lHe,ra_tooltip_quality:uHe,ra_tooltip_ts:dHe,ra_tooltip_user:pHe,ra_tooltip_value:fHe,"ra_use seconds":"用秒",ra_val:hHe,"ra_via internet":"通过互联网",ra_warning_every_minute:mHe,ra_warning_every_second:_He,sc_cron:gHe,sc_date:yHe,sc_dates:vHe,sc_dow:bHe,sc_dows:wHe,sc_every:xHe,sc_everyN_dates:SHe,sc_everyN_dow:kHe,sc_everyN_dows:CHe,sc_everyN_hours:$He,sc_everyN_minutes:EHe,sc_everyN_months:THe,sc_everyN_seconds:OHe,sc_every_dates:DHe,sc_every_dow:MHe,sc_every_dows:NHe,sc_every_hours:PHe,sc_every_minutes:RHe,sc_every_months:AHe,sc_every_seconds:IHe,sc_from:jHe,sc_hours:LHe,sc_interval:FHe,sc_intervalBetween:zHe,sc_invalid_cron:BHe,sc_minutes:WHe,sc_months:UHe,sc_once:HHe,sc_period:qHe,sc_seconds:VHe,sc_simple:XHe,sc_specific:GHe,sc_specific_dates:JHe,sc_specific_dow:YHe,sc_specific_dows:KHe,sc_specific_hours:ZHe,sc_specific_minutes:QHe,sc_specific_months:eqe,sc_specific_seconds:tqe,sc_time:rqe,sc_to:nqe,sc_wizard:oqe,sch_all:aqe,sch_astroDay:sqe,sch_astroNight:iqe,sch_astro_dawn:cqe,sch_astro_dusk:lqe,sch_astro_goldenHour:uqe,sch_astro_goldenHourEnd:dqe,sch_astro_nadir:pqe,sch_astro_nauticalDawn:fqe,sch_astro_nauticalDusk:hqe,sch_astro_night:mqe,sch_astro_nightEnd:_qe,sch_astro_solarNoon:gqe,sch_astro_sunrise:yqe,sch_astro_sunriseEnd:vqe,sch_astro_sunset:bqe,sch_astro_sunsetStart:wqe,sch_at:xqe,sch_desc_atTime:Sqe,sch_desc_everyDay:kqe,sch_desc_everyHour:Cqe,sch_desc_everyMinute:$qe,sch_desc_everyMonth:Eqe,sch_desc_everyNDay:Tqe,sch_desc_everyNHours:Oqe,sch_desc_everyNMinutes:Dqe,sch_desc_everyNMonths:Mqe,sch_desc_everyNWeeks:Nqe,sch_desc_everyNYears:Pqe,sch_desc_everyWeek:Rqe,sch_desc_everyYear:Aqe,sch_desc_intervalFromTo:Iqe,sch_desc_never:jqe,sch_desc_onDate:Lqe,sch_desc_onDates:Fqe,sch_desc_onEveryDate:zqe,sch_desc_onMonth:Bqe,sch_desc_onMonths:Wqe,sch_desc_onWeekday:Uqe,sch_desc_onWeekdays:Hqe,sch_desc_onWeekends:qqe,sch_desc_onWorkdays:Vqe,sch_desc_onceInPast:Xqe,sch_desc_once_on:Gqe,sch_desc_validFrom:Jqe,sch_desc_validFromTo:Yqe,sch_desc_validTo:Kqe,sch_every:Zqe,sch_exactTime:Qqe,sch_from:eVe,sch_fromTo:tVe,sch_intervalTime:rVe,sch_invert:nVe,sch_no_one:oVe,sch_on:aVe,sch_period:sVe,sch_periodDaily:iVe,sch_periodDates:cVe,sch_periodDay:lVe,sch_periodEvery:uVe,sch_periodEveryDay:dVe,sch_periodEveryMonth:pVe,sch_periodEveryWeek:fVe,sch_periodEveryYear:hVe,sch_periodHours:mVe,sch_periodMinutes:_Ve,sch_periodMonth:gVe,sch_periodMonthly:yVe,sch_periodOnce:vVe,sch_periodSpecificMonths:bVe,sch_periodWeek:wVe,sch_periodWeekdays:xVe,sch_periodWeekend:SVe,sch_periodWeekly:kVe,sch_periodWorkdays:CVe,sch_periodYear:$Ve,sch_periodYearly:EVe,sch_specificTime:TVe,sch_time:OVe,sch_to:DVe,sch_valid:MVe,sch_validFrom:NVe,sch_validTo:PVe,sch_wholeDay:RVe,sch_yearEveryMonth:AVe},jVe="back",LVe="root folder",FVe={"Back to editor":"Back to editor","Change size":"Change size","Copy URL to clipboard":"Copy URL to clipboard","Refresh snapshots":"Refresh snapshots","URL copied to clipboard":"URL copied to clipboard",back:jVe,"but instance is offline":"but instance is offline",root:LVe},zVe="zurück",BVe="root",WVe={"Back to editor":"Zurück zum Herausgeber","Change size":"Größe ändern","Copy URL to clipboard":"URL in die Zwischenablage kopieren","Refresh snapshots":"Schnappschüsse aktualisieren","URL copied to clipboard":"URL in die Zwischenablage kopiert",back:zVe,"but instance is offline":"aber die Instanz ist offline",root:BVe},UVe="назад",HVe="Корневая папка",qVe={"Back to editor":"Вернуться к редактору","Change size":"Изменить размер","Copy URL to clipboard":"Скопировать URL в буфер обмена","Refresh snapshots":"Обновить снимки","URL copied to clipboard":"URL скопирован в буфер обмена",back:UVe,"but instance is offline":"но экземпляр не активирован",root:HVe},VVe="voltar",XVe="pasta raiz",GVe={"Back to editor":"Voltar ao editor","Change size":"Alterar tamanho","Copy URL to clipboard":"Copiar URL para a área de transferência","Refresh snapshots":"Atualizar instantâneos","URL copied to clipboard":"URL copiado para a área de transferência",back:VVe,"but instance is offline":"mas a instância está offline",root:XVe},JVe="rug",YVe="hoofdmap",KVe={"Back to editor":"Terug naar de redactie","Change size":"Wijzig de maat","Copy URL to clipboard":"Kopieer de URL naar het klembord","Refresh snapshots":"Momentopnamen vernieuwen","URL copied to clipboard":"URL gekopieerd naar klembord",back:JVe,"but instance is offline":"maar het exemplaar is offline",root:YVe},ZVe="dos",QVe="dossier racine",eXe={"Back to editor":"Retour à l'éditeur","Change size":"Changer la taille","Copy URL to clipboard":"Copier l'URL dans le presse-papiers","Refresh snapshots":"Actualiser les instantanés","URL copied to clipboard":"URL copiée dans le presse-papiers",back:ZVe,"but instance is offline":"mais l'instance est hors ligne",root:QVe},tXe="Indietro",rXe="cartella root",nXe={"Back to editor":"Torniamo all'editore","Change size":"Cambia taglia","Copy URL to clipboard":"Copia l'URL negli appunti","Refresh snapshots":"Aggiorna le istantanee","URL copied to clipboard":"URL copiato negli appunti",back:tXe,"but instance is offline":"ma l'istanza è offline",root:rXe},oXe="atrás",aXe="carpeta raíz",sXe={"Back to editor":"volver al editor","Change size":"Cambiar tamaño","Copy URL to clipboard":"Copiar URL al portapapeles","Refresh snapshots":"Actualizar instantáneas","URL copied to clipboard":"URL copiada al portapapeles",back:oXe,"but instance is offline":"pero la instancia está fuera de línea",root:aXe},iXe="z powrotem",cXe="Folder główny",lXe={"Back to editor":"Powrót do edytora","Change size":"Zmień rozmiar","Copy URL to clipboard":"Skopiuj adres URL do schowka","Refresh snapshots":"Odśwież migawki","URL copied to clipboard":"URL skopiowany do schowka",back:iXe,"but instance is offline":"ale instancja jest offline",root:cXe},uXe="назад",dXe="коренева папка",pXe={"Back to editor":"Назад до редактора","Change size":"Змінити розмір","Copy URL to clipboard":"Копіювати URL-адресу в буфер обміну","Refresh snapshots":"Оновити знімки","URL copied to clipboard":"URL-адресу скопійовано в буфер обміну",back:uXe,"but instance is offline":"але примірник офлайн",root:dXe},fXe="后退",hXe="根文件夹",mXe={"Back to editor":"返回编辑器","Change size":"改变尺寸","Copy URL to clipboard":"将 URL 复制到剪贴板","Refresh snapshots":"刷新快照","URL copied to clipboard":"网址已复制到剪贴板",back:fXe,"but instance is offline":"但实例处于离线状态",root:hXe},pr={root:t=>({width:"100%",height:"calc(100% - 48px)",position:"relative",color:t.palette.mode==="dark"?"#fff":"#000",backgroundColor:t.palette.mode==="dark"?"#000":"#fff",overflowX:"hidden",overflowY:"auto",display:"flex",flexWrap:"wrap",alignContent:"flex-start"}),slider:{color:"#FFF !important"},toolbarTitle:{},button:{width:128,borderRadius:10,border:"1px dashed #888",padding:10,margin:5,textAlign:"center",cursor:"pointer",position:"relative"},folderIcon:t=>({"& svg":{width:"calc(100% - 28px)",height:"auto",color:t.palette.primary.main}}),active:t=>({"& svg":{color:t.palette.primary.main}}),folderName:{display:"block",fontSize:16,width:"100%",textAlign:"center"},presetIcon:{width:"calc(100% - 6px)"},presetName:{display:"block",fontSize:16,width:"100%",textAlign:"center"},presetError:{color:"#FF0000",display:"block",fontSize:"0.8em",fontStyle:"italic"},break:{flexBasis:"100%",height:0},copyButton:{position:"absolute",bottom:3,right:3}};class Go extends $.Component{constructor(r){super(r);we(this,"adminCorrectTimeout",null);we(this,"isWeb");we(this,"socket");we(this,"timeout",{});we(this,"snapShotQueue",[]);we(this,"toastTimeout",null);we(this,"iconsCache",{});we(this,"onAliveChanged",(r,n)=>{this.state.alive!==!!(n!=null&&n.val)&&this.setState({alive:!!n.val},()=>{if(this.state.alive&&!this.state.done){const o=JSON.parse(JSON.stringify(this.state.icons));let a=!1;Object.keys(o).forEach(i=>{o[i]==="error:not alive"&&(a=!0,o[i]=null)}),a&&this.setState({icons:o})}})});we(this,"onReceiveMessage",r=>{if((r==null?void 0:r.data)==="updateTheme"){const n=ht.getThemeName();ht.setThemeName(ht.getThemeName());const o=Go.createTheme(n);this.setState({theme:o,themeName:Go.getThemeName(o),themeType:Go.getThemeType(o)})}});we(this,"onHashChanged",()=>{const n=decodeURIComponent((window.location.hash||"").replace(/^#/,"")).split("/");n.length||n.push(""),JSON.stringify(n)!==JSON.stringify(this.state.location)&&(this.snapShotQueue=[],this.setState({location:n}))});const n=Go.createTheme(),a=decodeURIComponent((window.location.hash||"").replace(/^#/,"")).split("/");a.length||a.push(""),this.state={connected:!1,theme:n,themeType:Go.getThemeType(n),themeName:Go.getThemeName(n),location:a,presetFolders:null,icons:{},iconSize:parseInt(window.localStorage.getItem("echarts.iconSize"),10)||128,showSlider:!1,alive:!1,toast:"",webInstances:[],webMenu:null,forceRefresh:!1,presets:null,errorText:null,done:!1,currentInstance:""};const i={en:$se,de:Ede,ru:T_e,pt:Obe,nl:Dke,fr:M2e,it:NPe,es:P4e,pl:Rze,uk:A7e,"zh-cn":IVe},l={en:FVe,de:WVe,ru:qVe,pt:GVe,nl:KVe,fr:eXe,it:nXe,es:sXe,pl:lXe,uk:pXe,"zh-cn":mXe};Object.keys(i).forEach(u=>Object.assign(i[u],l[u])),U.setTranslations(i),window.socketUrl&&window.socketUrl.startsWith(":")&&(window.socketUrl=`${window.location.protocol}//${window.location.hostname}${window.socketUrl}`),window.location.port==="8082"&&window.location.pathname.includes("/adapter/echarts/preview/")&&(this.adminCorrectTimeout=setTimeout(()=>{this.adminCorrectTimeout=null,window.location.href=window.location.href.replace("/adapter/echarts/preview/","/echarts/preview/")},2e3)),this.isWeb=Jo.isWeb(),this.socket=new Jo({name:window.adapterName,onProgress:u=>{u===_o.CONNECTING?this.setState({connected:!1}):u===_o.READY?this.setState({connected:!0}):this.setState({connected:!0})},onReady:async()=>{this.adminCorrectTimeout&&(clearTimeout(this.adminCorrectTimeout),this.adminCorrectTimeout=null),this.socket.getRawSocket().emit("getCurrentInstance",(d,_)=>{this.setState({currentInstance:_||""})}),U.setLanguage(this.socket.systemLang);const u=await this.socket.getState("system.adapter.echarts.0.alive").catch(()=>null);this.setState({alive:!!(u!=null&&u.val)});const f=await this.getWebInstances();this.setState({webInstances:f});const h=await this.getAllPresets();this.setState(h)},onError:u=>{console.error(u),this.showError(u)}}),window.addEventListener("hashchange",this.onHashChanged),this.snapShotQueue=[],this.timeout={}}async getWebInstances(){const r=await this.socket.getObjectViewSystem("instance","system.adapter.web.","system.adapter.web.香");return Object.keys(r).map(n=>{const o=r[n];return{port:o.native.port,bind:o.native.bind,id:o._id.replace("system.adapter.",""),enabled:!!o.common.enabled,protocol:o.native.secure?"https://":"http://"}})}componentDidMount(){window.addEventListener("message",this.onReceiveMessage,!1)}componentWillUnmount(){window.removeEventListener("message",this.onReceiveMessage,!1),this.socket.unsubscribeState("system.adapter.echarts.0.alive",this.onAliveChanged),this.toastTimeout&&clearTimeout(this.toastTimeout),this.toastTimeout=null}static createTheme(r){return XC(ht.getThemeName(r))}static getThemeName(r){return r.name}static getThemeType(r){return r.palette.mode}toggleTheme(){const n=this.state.themeName==="dark"?"light":"dark";ht.setThemeName(n);const o=XC(n);this.setState({theme:o,themeName:o.name,themeType:o.palette.mode})}showError(r){this.setState({errorText:r})}renderError(){return this.state.errorText?R.jsx(KM,{text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}static buildPresetTree(r,n){const o=Object.values(r),a={subFolders:{},presets:{},id:"",prefix:""};return o.forEach(i=>{const l=i._id,u=l.split(".");u.shift(),u.shift();let f=a,h="";for(let d=0;d{const l=i.split(".");let u=a,f="";for(let h=0;hthis.getEmptyFolders(r.subFolders[a],n,o)),o}async getAllPresets(r){r=r||{};const n={},o=await this.socket.getObjectViewSystem("chart","echarts.","echarts.香");o&&Object.values(o).forEach(i=>{i!=null&&i._id&&!i._id.toString().endsWith(".")&&(n[i._id]=i)}),r.presets=n,Object.keys(r.presets).forEach(i=>{const l=r.presets[i];l.common=l.common||{},l.native=l.native||{}});const a=this.getEmptyFolders();return r.presetFolders=Go.buildPresetTree(n,a),r}getSnapshot(r){if(this.iconsCache[r]){const n=JSON.parse(JSON.stringify(this.state.icons));n[r]=this.iconsCache[r],setTimeout(()=>this.setState({icons:n}),50);return}if(!this.state.alive){const n=JSON.parse(JSON.stringify(this.state.icons));n[r]="error:not alive",setTimeout(()=>this.setState({icons:n}),50);return}this.snapShotQueue.push(r),this.snapShotQueue.length===1&&this.getSnapshotNext()}getSnapshotNext(){if(!this.snapShotQueue.length){this.state.forceRefresh&&setTimeout(()=>this.setState({forceRefresh:!1}),50);return}const r=this.snapShotQueue[0];this.timeout[r]=setTimeout(()=>{const n=JSON.parse(JSON.stringify(this.state.icons));n[r]||(n[r]="error:timeout"),this.iconsCache[r]=n[r],this.snapShotQueue[0]===r&&this.snapShotQueue.shift(),this.setState({icons:n,done:!0}),this.getSnapshotNext()},5e3),this.socket.getRawSocket().emit("sendTo","echarts.0","send",{preset:r,cache:600,forceRefresh:this.state.forceRefresh},n=>{this.timeout[r]&&(clearTimeout(this.timeout[r]),this.timeout[r]=null);const o=JSON.parse(JSON.stringify(this.state.icons));n.error?o[r]=`error:${n.error}`:o[r]=n.data,this.iconsCache[r]=o[r],this.snapShotQueue[0]===r&&this.snapShotQueue.shift(),this.setState({icons:o,done:!0}),this.getSnapshotNext()})}renderFolder(r){const n=[];if(this.state.location.length>1&&n.push(R.jsxs(wt,{component:"div",style:pr.button,onClick:()=>{const o=[...this.state.location];o.pop(),window.location.hash=`#${o.join("/")}`},sx:pr.folderIcon,children:[R.jsx(JM,{}),R.jsx("div",{style:pr.folderName,children:U.t("back")})]},"__back__")),r.subFolders&&Object.keys(r.subFolders).length&&Object.keys(r.subFolders).forEach(o=>{o!=="_consumption_"&&n.push(R.jsxs(wt,{component:"div",style:pr.button,onClick:()=>{const a=[...this.state.location];a.push(o),window.location.hash=`#${a.join("/")}`},sx:pr.folderIcon,children:[R.jsx(HU,{}),R.jsx("div",{style:pr.folderName,children:o})]},o))}),r.presets&&Object.keys(r.presets).length){const o=window.location.pathname.split("/");o.pop(),o.pop(),this.isWeb?o.push("index.html"):o.push("chart/index.html");let a;this.state.webInstances.find(l=>l.enabled)||this.state.currentInstance.startsWith("admin.")?a=this.state.webInstances.filter(l=>l.enabled):a=this.state.webInstances;const i=a.map(l=>({url:`${l.protocol}${l.bind==="0.0.0.0"?window.location.hostname:l.bind}:${l.port}/echarts/index.html?preset=`,port:l.port}));this.state.currentInstance.startsWith("admin.")&&i.unshift({url:"../chart/index.html?preset=",port:window.location.port}),n.push(R.jsx("div",{style:pr.break},"br")),Object.keys(r.presets).forEach(l=>{const u=r.presets[l];this.state.icons[u._id]||this.getSnapshot(u._id),n.push(R.jsxs("div",{style:{...pr.button,width:this.state.iconSize},onClick:f=>{i.length>1?this.setState({webMenu:{id:u._id,webUrls:i,copy:!1,anchorEl:f.currentTarget}}):window.open(i[0].url+u._id,u._id)},children:[this.state.icons[u._id]?this.state.icons[u._id].startsWith("error:")?R.jsx(WC,{style:pr.presetIcon}):R.jsx("img",{style:pr.presetIcon,src:this.state.icons[u._id],alt:u._id}):R.jsx(jM,{style:pr.presetIcon}),R.jsx("div",{style:pr.presetName,children:typeof u.common.name=="object"?u.common.name[U.getLanguage()]||u.common.name.en||"":u.common.name}),this.state.icons[u._id]&&this.state.icons[u._id].startsWith("error:")?R.jsx("div",{style:pr.presetError,children:this.state.icons[u._id].substring(6)}):null,R.jsx(nr,{size:"small",title:U.t("Copy URL to clipboard"),style:pr.copyButton,onClick:f=>{f.stopPropagation(),i.length>1?this.setState({webMenu:{id:u._id,webUrls:i,copy:!0,anchorEl:f.currentTarget}}):this.onCopyUrl(i[0].url+u._id)},children:R.jsx(VM,{})})]},l))})}return n}onCopyUrl(r){this.toastTimeout&&clearTimeout(this.toastTimeout),ht.copyToClipboard(r),this.setState({toast:`${U.t("URL copied to clipboard")}: ${r}`}),this.toastTimeout=setTimeout(()=>{this.toastTimeout=null,this.setState({toast:""})},4e3)}getFolder(r,n,o){return o=o||0,n=n||this.state.presetFolders,n?n.id!==r[o]?this.state.presetFolders:r.length-1===o?n.id===r[o]?n:this.state.presetFolders:n.subFolders[r[o+1]]?this.getFolder(r,n.subFolders[r[o+1]],o+1):this.state.presetFolders:this.state.presetFolders}renderSlider(){return this.state.showSlider?R.jsxs(sU,{spacing:2,direction:"row",style:{width:200},alignItems:"center",children:[R.jsx("span",{children:this.state.iconSize}),R.jsx(UC,{style:{width:14,height:14,marginLeft:4}}),R.jsx(UW,{min:64,max:512,style:pr.slider,value:this.state.iconSize,onChange:(r,n)=>{window.localStorage.setItem("echarts.iconSize",n.toString()),this.setState({iconSize:n})}}),R.jsx(UC,{style:{width:24,height:24}})]}):null}renderToast(){return this.state.toast?R.jsx(QW,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:R.jsx("span",{id:"message-id",children:this.state.toast}),action:[R.jsx(nr,{"aria-label":"Close",color:"inherit",style:pr.close,onClick:()=>this.setState({toast:""}),size:"large",children:R.jsx(Rs,{})},"close")]}):null}renderWebMenu(){return this.state.webMenu?R.jsx(jb,{anchorEl:this.state.webMenu.anchorEl,open:!0,onClose:()=>this.setState({webMenu:null}),children:this.state.webMenu.webUrls.map(r=>R.jsxs(fr,{onClick:()=>{this.state.webMenu.copy?this.onCopyUrl(r.url+this.state.webMenu.id):window.open(r.url+this.state.webMenu.id,this.state.webMenu.id),this.setState({webMenu:null})},children:[":",r.port]}))}):null}render(){if(!this.state.connected)return R.jsx($k,{injectFirst:!0,children:R.jsx(Gk,{theme:this.state.theme,children:R.jsx(EH,{themeType:this.state.themeType})})});const r=this.getFolder(this.state.location),n=[];return R.jsx($k,{injectFirst:!0,children:R.jsxs(Gk,{theme:this.state.theme,children:[R.jsx(yM,{position:"static",style:pr.appBar,children:R.jsxs(Bb,{variant:"dense",children:[this.isWeb?null:R.jsx(nr,{title:U.t("Back to editor"),onClick:()=>{const o=window.location.pathname.split("/");o.pop(),o.pop(),o.push("tab.html"),window.location.href=`${window.location.protocol}//${window.location.host}${o.join("/")}`},children:R.jsx(XU,{})}),R.jsx("img",{src:kte,alt:"echarts",style:{width:32,marginRight:8}}),R.jsx(NM,{"aria-label":"breadcrumb",children:this.state.location.map((o,a)=>(n.push(o),R.jsx(f7,{underline:this.state.location.length-1===a?"none":"hover",color:"inherit",href:`#${n.join("/")}`,children:o||U.t("root")},a)))}),R.jsx("div",{style:{flexGrow:1}}),this.renderSlider(),R.jsx(nr,{onClick:()=>this.setState({showSlider:!this.state.showSlider}),title:U.t("Change size"),sx:this.state.showSlider?pr.active:void 0,children:this.state.showSlider?R.jsx(WC,{}):R.jsx(qU,{})}),R.jsx(nr,{style:{color:this.state.alive?"#0F0":"#FF0"},onClick:()=>{Object.keys(this.iconsCache).forEach(o=>{delete this.iconsCache[o]}),this.setState({icons:{},forceRefresh:!0})},title:this.state.alive?U.t("Refresh snapshots"):`${U.t("Refresh snapshots")}, ${U.t("but instance is offline")}`,children:R.jsx(YM,{})}),this.isWeb&&this.state.themeName!=="PT"&&this.state.themeName!=="DX"?R.jsx(Eee,{toggleTheme:()=>this.toggleTheme(),themeName:this.state.themeName,t:U.t}):null,R.jsx("h4",{style:pr.toolbarTitle,children:"Echarts viewer"})]})}),R.jsx(wt,{component:"div",sx:pr.root,children:r?this.renderFolder(r):null}),this.renderError(),this.renderToast(),this.renderWebMenu()]})})}}const _Xe=eh()(Go);window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function gXe(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const yXe="echarts.index",vXe="1.9.5",bXe={"@vitejs/plugin-react":"^4.3.4","react-icons":"^5.4.0",typescript:"^5.7.3"},wXe=".",xXe="http://localhost:8081",SXe={start:"vite dev --config vite.config.mjs --host",build:"vite build --config vite.config.mjs",lint:"eslint -c eslint.config.mjs"},kXe={extends:"react-app"},CXe=[">0.2%","not dead","not ie <= 11","not op_mini all"],DP={name:yXe,version:vXe,private:!0,dependencies:bXe,homepage:wXe,proxy:xXe,scripts:SXe,eslintConfig:kXe,browserslist:CXe};window.adapterName="echarts-preview";console.log(`iobroker.${window.adapterName}@${DP.version}`);window.location.host!=="localhost:3000"&&Vj({dsn:window.sentryDSN,release:`iobroker.${window.adapterName}@${DP.version}`,integrations:[pD()],beforeSend(t){let e=!1;return t.exception&&t.exception.values&&t.exception.values[0]&&(t.exception.values[0].type==="NS_ERROR_FAILURE"||t.exception.values[0].value&&(t.exception.values[0].value.includes("Microsoft YaHei")||t.exception.values[0].value==="ResizeObserver loop completed with undelivered notifications."||t.exception.values[0].value==="undefined is not an object (evaluating 't.get')"||t.exception.values[0].value==="Cannot read property 'get' of undefined"||t.exception.values[0].value==="this.painter is null"||t.exception.values[0].value.includes("ioBroker is not connected")||t.exception.values[0].value==="Cannot read property 'getDisplayList' of null"))&&(e=!0),e?null:t}});const UO=document.getElementById("root");UO&&RA.createRoot(UO).render(R.jsx(_Xe,{}));gXe(); diff --git a/admin/preview/index.html b/admin/preview/index.html index b92c2170..97b1db6e 100644 --- a/admin/preview/index.html +++ b/admin/preview/index.html @@ -45,7 +45,7 @@ document.head.appendChild(script); Echarts preview [ioBroker] - + diff --git a/admin/tab.html b/admin/tab.html index 3cfb6e70..261b1f4c 100644 --- a/admin/tab.html +++ b/admin/tab.html @@ -45,7 +45,7 @@ document.head.appendChild(script); Echarts [ioBroker] - + diff --git a/build-backend/lib/ChartModel.js b/build-backend/lib/ChartModel.js index 5de9ef34..59c036ff 100644 --- a/build-backend/lib/ChartModel.js +++ b/build-backend/lib/ChartModel.js @@ -949,8 +949,16 @@ class ChartModel { } // add start and end if (line.chartType !== 'bar' && line.chartType !== 'polar') { - let end = typeof option.end === 'number' ? option.end : option.end.getTime(); - const start = typeof option.start === 'number' ? option.start : option.start.getTime(); + let end = typeof option.end === 'number' + ? option.end + : typeof option.end === 'string' + ? new Date(option.end).getTime() + : option.end.getTime(); + const start = typeof option.start === 'number' + ? option.start + : typeof option.start === 'string' + ? new Date(option.start).getTime() + : option.start.getTime(); // End cannot be in the future if (end > this.now) { end = this.now; diff --git a/build-backend/lib/ChartModel.js.map b/build-backend/lib/ChartModel.js.map index 67e1de98..b0da7608 100644 --- a/build-backend/lib/ChartModel.js.map +++ b/build-backend/lib/ChartModel.js.map @@ -1 +1 @@ -{"version":3,"file":"ChartModel.js","sourceRoot":"","sources":["../../src/lib/ChartModel.ts"],"names":[],"mappings":";;AA6NA;;;GAGG;AACH,SAAS,UAAU,CAAC,KAAa;IAC7B,KAAK,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACpD,MAAM,MAAM,GAA8C,EAAE,CAAC;IAC7D,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QAC5B,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QACnB,IAAI,IAAI,EAAE,CAAC;YACP,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC9B,MAAM,IAAI,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YACjD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACnB,MAAM,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC5C,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,MAAM,EAAE,CAAC;oBAC1B,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;gBACxB,CAAC;qBAAM,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,OAAO,EAAE,CAAC;oBAClC,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;gBACzB,CAAC;qBAAM,CAAC;oBACJ,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAsB,CAAC,CAAC;oBACxD,IAAI,CAAC,CAAC,QAAQ,EAAE,KAAK,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;wBAChC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBACrB,CAAC;gBACL,CAAC;YACL,CAAC;iBAAM,CAAC;gBACJ,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;YACxB,CAAC;QACL,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,4EAA4E;AAC5E,SAAS,eAAe,CAAC,MAAsB;IAC3C,MAAM,SAAS,GAAgB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IAElE,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACf,SAAS,CAAC,CAAC,GAAG,MAAM,CAAC,KAA0B,CAAC;QAChD,wCAAwC;QACxC,OAAO,SAAS,CAAC,KAAK,CAAC;IAC3B,CAAC;IAED,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;QACd,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtD,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/D,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5D,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5D,SAAS,CAAC,CAAC,GAAG,EAAE,CAAC;QACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAClC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;gBACb,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;gBACV,MAAM,EAAE,CAAC;gBACT,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,SAAS;gBAC3B,SAAS,EAAE,MAAM;gBACjB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM;gBAC1B,SAAS,EAAE,MAAM,CAAC,WAAW,IAAI,CAAC;gBAClC,UAAU,EAAE,MAAM,CAAC,WAAW,IAAI,CAAC;gBACnC,GAAG,EAAE,MAAM,CAAC,GAAG,IAAI,SAAS;gBAC5B,GAAG,EAAE,MAAM,CAAC,GAAG,IAAI,SAAS;gBAC5B,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,SAAS;aAC9B,CAAC,CAAC;QACP,CAAC;QACD,SAAS,CAAC,aAAa,GAAG,MAAM,CAAC;QACjC,SAAS,CAAC,aAAa,GAAG,GAAG,CAAC;QAC9B,SAAS,CAAC,WAAW,GAAG,KAAK,CAAC;IAClC,CAAC;IAED,uCAAuC;IACvC,IAAI,MAAM,CAAC,CAAC,EAAE,CAAC;QACX,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACvC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;gBAClB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;gBACxC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;YAC3B,CAAC;YACD,IAAI,MAAM,CAAC,QAAQ,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;gBAC3C,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;YAC3C,CAAC;YACD,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAA4B,CAAC,IAAI,CAAC,CAAC;YAChF,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAA2B,CAAC,IAAI,CAAC,CAAC;YAC9E,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAA8B,CAAC,IAAI,CAAC,CAAC;YACpF,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC;QAChF,CAAC;IACL,CAAC;IAED,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IAE1B,gBAAgB;IAChB,IAAI,MAAM,CAAC,CAAC,EAAE,CAAC;QACX,SAAS,CAAC,KAAK,GAAG,EAAE,CAAC;QACrB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACvC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG;gBACjB,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACrB,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC7B,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;gBAC9B,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACpB,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAW,CAAC;gBACzC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACjB,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACjB,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACnB,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC3B,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;gBAC1B,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;gBACzB,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;aAC3B,CAAC;QACN,CAAC;QACD,wCAAwC;QACxC,OAAO,SAAS,CAAC,CAAC,CAAC;IACvB,CAAC;IAED,SAAS,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,IAAI,EAAE,CAAC;IAExC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;QAC1B,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IACxC,CAAC;IAED,qBAAqB;IACrB,SAAS,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC;IACzC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC;IAC3C,2DAA2D;IAC3D,IAAI,UAAU,CAAC,SAAS,CAAC,KAAe,CAAC,CAAC,QAAQ,EAAE,KAAK,SAAS,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;QACzF,SAAS,CAAC,KAAK,IAAI,IAAI,CAAC;IAC5B,CAAC;IACD,IAAI,UAAU,CAAC,SAAS,CAAC,MAAgB,CAAC,CAAC,QAAQ,EAAE,KAAK,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;QAC3F,SAAS,CAAC,MAAM,IAAI,IAAI,CAAC;IAC7B,CAAC;IAED,SAAS,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;IAC/C,SAAS,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,KAAK,MAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,CAAC;IAC5E,SAAS,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,KAAK,MAAM,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC;IAChE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI,CAAC;IACtE,SAAS,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,KAAK,MAAM,IAAI,MAAM,CAAC,UAAU,KAAK,IAAI,CAAC;IAClF,SAAS,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,KAAK,MAAM,IAAI,MAAM,CAAC,UAAU,KAAK,IAAI,CAAC;IAClF,SAAS,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,KAAK,MAAM,IAAI,MAAM,CAAC,WAAW,KAAK,IAAI,CAAC;IACrF,SAAS,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,KAAK,MAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,CAAC;IAC5E,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI,CAAC;IACtE,SAAS,CAAC,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,SAAmB,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;IACpE,SAAS,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAoB,EAAE,EAAE,CAAC,CAAC;IACvG,SAAS,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,UAAU,CAAC;IACnD,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;QACrB,IAAI,OAAO,MAAM,CAAC,WAAW,KAAK,QAAQ,IAAI,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC7E,SAAS,CAAC,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;YAC1G,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC;QACtC,CAAC;aAAM,IAAI,OAAO,MAAM,CAAC,WAAW,KAAK,QAAQ,IAAI,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACpF,SAAS,CAAC,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;YAC1G,SAAS,CAAC,eAAe,GAAG,IAAI,CAAC;QACrC,CAAC;aAAM,CAAC;YACJ,SAAS,CAAC,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,WAAqB,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;QAC5E,CAAC;IACL,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC;AAED,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAE1C,MAAM,UAAU;IACK,MAAM,CAAa;IACnB,aAAa,CAAS;IACtB,UAAU,CAAU;IACrC,kBAAkB;IACV,UAAU,GAAiB,EAAE,CAAC;IACtC,0BAA0B;IAClB,OAAO,GAAgB,EAAE,CAAC;IAClC,sEAAsE;IACrD,YAAY,GAAyC,EAAE,CAAC;IACjE,KAAK,GAAsB,IAAI,CAAC;IAChC,OAAO,GAAY,KAAK,CAAC;IACzB,UAAU,GAAa,EAAE,CAAC;IAC1B,SAAS,GAAW,CAAC,CAAC;IAC9B,0BAA0B;IAClB,cAAc,GAA0C,IAAI,CAAC;IAC7D,mBAAmB,GAAyC,IAAI,CAAC;IACjE,iBAAiB,GAAyC,IAAI,CAAC;IAC/D,UAAU,GAAY,KAAK,CAAC;IACpC,kCAAkC;IAC1B,gBAAgB,GAAW,EAAE,CAAC;IAC9B,cAAc,GAAW,EAAE,CAAC;IAC5B,YAAY,GAMP,IAAI,CAAC;IACV,aAAa,GAA0C,IAAI,CAAC;IAC5D,WAAW,GAAoC,IAAI,CAAC;IACpD,cAAc,GAAqE,EAAE,CAAC;IACtF,KAAK,GAAG,KAAK,CAAC;IACd,QAAQ,GAAgE,IAAI,CAAC;IAC7E,QAAQ,CAAS;IACjB,eAAe,GAAY,KAAK,CAAC;IACjC,YAAY,GAAuC,IAAI,CAAC;IACxD,MAAM,CAAU;IAChB,MAAM,CAAe;IACrB,aAAa,CAAY;IACzB,GAAG,GAAW,IAAI,CAAC,GAAG,EAAE,CAAC;IACzB,IAAI,CAGV;IAEM,gBAAgB,GAA4C,EAAE,CAAC;IAEvE,YACI,MAAkB;IAClB,0BAA0B;IAC1B,MAA+B,EAC/B,OAA6E;QAE7E,OAAO,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,CAAC;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,IAAI,GAAG,CAAC,CAAC,2DAA2D;QAC9G,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,KAAK,CAAC,CAAC,6BAA6B;QAE5E,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACnB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;YAErC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACV,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;gBAC5B,MAAM,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;YACpE,CAAC;QACL,CAAC,CAAC,eAAe;QAEjB,KAAK,IAAI,CAAC,MAAM;aACX,eAAe,EAAE;aACjB,KAAK,CAAC,CAAC,CAAU,EAAQ,EAAE;YACxB,IAAK,CAAW,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;gBACtE,IAAI,CAAC,WAAW,CAAC,CAAU,CAAC,CAAC;YACjC,CAAC;YACD,OAAO,CAAC,KAAK,CAAC,6BAA8B,CAAW,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YACtE,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC;aACD,IAAI,CAAC,CAAC,YAAyC,EAAiB,EAAE;YAC/D,IAAI,CAAC,YAAY,GAAG,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAE,EAAkC,CAAC;YACrG,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC;YACvD,OAAO,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;IACX,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,MAAgC;QACvD,IAAI,MAAM,EAAE,CAAC;YACT,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;gBAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;YACzB,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;YAC1C,CAAC;QACL,CAAC;aAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YAC1B,MAAM,KAAK,GAA8C,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,mBAAmB;YAEhH,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,CAAC,KAAK,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,KAAK,GAAG,CAAC;YAExG,IAAI,KAAK,CAAC,MAAM,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;gBACnD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;YAC/B,CAAC;iBAAM,CAAC;gBACJ,MAAM,MAAM,GAA8C,UAAU,CAChE,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAC5D,CAAC,CAAC,mBAAmB;gBACtB,IAAI,MAAM,GAAmB,EAAoB,CAAC;gBAElD,IAAI,MAAM,CAAC,IAAI,IAAI,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;oBACjD,IAAI,CAAC;wBACD,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;oBACrC,CAAC;oBAAC,MAAM,CAAC;wBACL,SAAS;oBACb,CAAC;gBACL,CAAC;gBACD,IAAI,KAAK,CAAC,IAAI,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;oBAC/C,IAAI,CAAC;wBACD,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;oBACxD,CAAC;oBAAC,MAAM,CAAC;wBACL,SAAS;oBACb,CAAC;gBACL,CAAC;gBACD,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;oBAChB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAgB,CAAC;oBACtC,IAAI,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;wBACrC,IAAI,CAAC,IAAI,GAAG;4BACR,KAAK,EAAE,MAAM,CAAC,KAA0B;4BACxC,WAAW,EAAE,MAAM,CAAC,WAA+B;yBACtD,CAAC;oBACN,CAAC;gBACL,CAAC;qBAAM,CAAC;oBACJ,sBAAsB;oBACtB,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;wBAChC,MAAM,CAAC,QAAQ;4BACX,MAAM,CAAC,QAAQ,KAAK,IAAI;gCACxB,MAAM,CAAC,QAAQ,KAAK,MAAM;gCAC1B,MAAM,CAAC,QAAQ,KAAK,CAAC;gCACrB,MAAM,CAAC,QAAQ,KAAK,GAAG,CAAC;oBAChC,CAAC;oBACD,IAAI,KAAK,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;wBAC/B,MAAM,CAAC,QAAQ;4BACX,KAAK,CAAC,QAAQ,KAAK,IAAI;gCACvB,KAAK,CAAC,QAAQ,KAAK,MAAM;gCACzB,KAAK,CAAC,QAAQ,KAAK,CAAC;gCACpB,KAAK,CAAC,QAAQ,KAAK,GAAG,CAAC;oBAC/B,CAAC;oBACD,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;oBACtC,4BAA4B;gBAChC,CAAC;YACL,CAAC;QACL,CAAC;QAED,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAE1B,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YACtB,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YACnC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC/B,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,IACI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBACzE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAC5B,CAAC;gBACC,IAAI,CAAC,MAAM,GAAG,aAAa,IAAI,CAAC,MAAM,EAAE,CAAC;YAC7C,CAAC;YAED,IAAI,CAAC;gBACD,MAAM,GAAG,GAA4C,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAG/E,CAAC;gBAChB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,IAAI,GAAG,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;oBAC7C,OAAO,CAAC,KAAK,CAAC,+BAA+B,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;oBACpF,OAAO;gBACX,CAAC;gBACD,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAC/C,IAAI,CAAC,MAAM,CAAC,QAAQ;oBAChB,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;gBAC/F,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;gBAC9C,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAyB,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;gBAC5E,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;gBAC/B,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC;gBAEnC,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;oBACnB,IACI,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,KAAK,QAAQ;wBACnC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;wBAC9B,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAChC,CAAC;wBACC,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;oBACtD,CAAC;yBAAM,CAAC;wBACJ,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;oBACxC,CAAC;gBACL,CAAC;gBACD,IAAI,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC;oBACzB,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;gBACpD,CAAC;gBAED,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAEtB,8BAA8B;gBAC9B,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,gBAAgB,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC;oBAC5D,IAAI,CAAC,gBAAgB;wBACjB,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;oBACtF,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC;oBACpC,MAAM,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;gBACxE,CAAC;gBACD,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC;oBACnE,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;gBACtF,CAAC;YACL,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,CAAC,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;gBAC/D,OAAO,CAAC,KAAK,CAAC,gBAAgB,IAAI,CAAC,MAAM,MAAM,CAAC,EAAE,CAAC,CAAC;YACxD,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,MAAM,CAAC,QAAQ;gBAChB,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS;oBAC9B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,KAAK,IAAI;oBACzC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,IAAI,CAAC;YACxC,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;YAC9C,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAyB,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;YAC5E,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YAC/B,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;YACtB,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC;gBACnE,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;YACtF,CAAC;QACL,CAAC;IACL,CAAC;IAED,YAAY,GAAG,GAAS,EAAE;QACtB,IAAI,IAAI,CAAC,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACzC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;YACrC,KAAK,IAAI,CAAC,oBAAoB,EAAE,CAAC;QACrC,CAAC;IACL,CAAC,CAAC;IAEF,cAAc,GAAG,CAAC,EAAU,EAAE,GAAuC,EAAQ,EAAE;QAC3E,IAAI,EAAE,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC;YACrB,OAAO;QACX,CAAC;QACD,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC3B,YAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAC3C,CAAC;QACD,IAAI,CAAC,mBAAmB,GAAG,UAAU,CAAC,GAAG,EAAE;YACvC,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC;YAChC,IAAI,SAAS,CAAC;YACd,IAAI,GAAG,EAAE,CAAC;gBACN,SAAS,GAAG,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACjD,CAAC;iBAAM,CAAC;gBACJ,SAAS,GAAG,eAAe,CAAC,EAAoB,CAAC,CAAC;YACtD,CAAC;YACD,IAAI,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC5D,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;gBACxB,IAAI,CAAC,cAAc,IAAI,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBAC1D,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;gBAE3B,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;oBAClE,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;gBACtF,CAAC;gBAED,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC;YACzB,CAAC;QACL,CAAC,EAAE,GAAG,CAAC,CAAC;IACZ,CAAC,CAAC;IAEF,WAAW,CAAC,OAA8D;QACtE,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,kBAAkB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACtG,CAAC;QAED,IAAI,CAAC,OAAO,EAAE,CAAC;YACX,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;gBACrB,IAAI,CAAC,iBAAiB,IAAI,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;gBAC/D,IAAI,CAAC,iBAAiB,GAAG,UAAU,CAAC,GAAG,EAAE;oBACrC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;oBAC9B,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;wBAClE,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;wBAC9B,IAAI,CAAC,cAAc,IAAI,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;wBAC1D,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;oBACtF,CAAC;oBACD,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACzB,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;YAC3B,CAAC;QACL,CAAC;aAAM,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;YAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC;YACpC,IAAI,CAAC,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC;YAC9B,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;gBACtB,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;gBAC9B,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBACnC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;YAC/B,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,yBAAyB;YACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC;YACzC,IAAI,QAAQ,EAAE,CAAC;gBACX,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;YAClC,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC9E,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;gBACxB,IAAI,QAAQ,EAAE,CAAC;oBACX,IAAI,CAAC,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC;gBAClC,CAAC;gBACD,IAAI,CAAC,iBAAiB,IAAI,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;gBAC/D,IAAI,CAAC,iBAAiB,GAAG,UAAU,CAAC,GAAG,EAAE;oBACrC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;oBAC9B,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACzB,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;YAC3B,CAAC;iBAAM,IAAI,QAAQ,EAAE,CAAC;gBAClB,IAAI,CAAC,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC;YAClC,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO;QACH,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YAClB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACnB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;YACxF,CAAC;YACD,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;YACrB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;QACD,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACzB,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YACrC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;QAClC,CAAC;QACD,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC3B,YAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;YACvC,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC;QACpC,CAAC;QACD,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACxB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACnB,KAAK,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;YACnF,CAAC;YACD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QACjC,CAAC;QACD,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YACtB,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YACnC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC/B,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACnB,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;gBACvB,MAAM,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;gBACnE,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;YACjC,CAAC;QACL,CAAC;IACL,CAAC;IAED,QAAQ,CACJ,EAMU;QAEV,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IAC3B,CAAC;IAED,SAAS,CAAC,EAAyC;QAC/C,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;IAC5B,CAAC;IAED,OAAO,CAAC,EAAiC;QACrC,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;IAC1B,CAAC;IAED,SAAS;QACL,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,eAAe;QACX,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED,SAAS,CAAC,MAAoC;QAC1C,KAAK,IAAI,CAAC,oBAAoB,CAAC,MAAwB,CAAC,CAAC;IAC7D,CAAC;IAED,oBAAoB,CAAC,KAAoB,EAAE,GAAkB,EAAE,MAAkC;QAC7F,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,YAAiC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;QAC5F,IAAI,KAAK,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;QAC1D,IAAI,OAAO,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;QAElE,+BAA+B;QAC/B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;YAC5B,IAAI,KAAK,GAAG,OAAO,IAAI,OAAO,GAAG,EAAE,EAAE,CAAC;gBAClC,mCAAmC;gBACnC,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,EAAE,CAAC;YAClC,CAAC;iBAAM,IAAI,KAAK,GAAG,OAAO,IAAI,OAAO,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC;gBAC9C,+BAA+B;gBAC/B,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,KAAK,CAAC;YACrC,CAAC;iBAAM,IAAI,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;gBAC5C,4BAA4B;gBAC5B,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,IAAI,CAAC;YACpC,CAAC;iBAAM,CAAC;gBACJ,4EAA4E;gBAC5E,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,EAAE,CAAC;YAClC,CAAC;QACL,CAAC;QAED,MAAM,GAAG,MAAM,IAAK,EAAiC,CAAC;QAEtD,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,KAAK,EAAE,EAAE,CAAC;YAClC,qCAAqC;YACrC,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;YACpC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC;YACnE,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,KAAK,MAAM,EAAE,CAAC;gBACxC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;YACtD,CAAC;YACD,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACxB,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC7B,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;YAE9B,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;YAChC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC;YAC9D,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACtB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC3B,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;YAC1B,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC;QAC1D,CAAC;aAAM,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,KAAK,EAAE,EAAE,CAAC;YACzC,iCAAiC;YACjC,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;YACpC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACxB,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACxB,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC7B,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,KAAK,MAAM,EAAE,CAAC;gBACxC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;YACtD,CAAC;YACD,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;YAE9B,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;YAChC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;YACvB,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACtB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC3B,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;YAC1B,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC;QAC3D,CAAC;aAAM,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,KAAK,IAAI,EAAE,CAAC;YAC3C,gCAAgC;YAChC,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;YACpC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACtB,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACxB,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACxB,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC7B,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,KAAK,MAAM,EAAE,CAAC;gBACxC,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;YAC/C,CAAC;YACD,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;YAE9B,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;YAChC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;YACvC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACpB,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACtB,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACtB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC3B,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;YAC1B,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,QAAQ,CAAC,CAAC;QAC5D,CAAC;aAAM,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,KAAK,KAAK,EAAE,CAAC;YAC5C,kCAAkC;YAClC,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;YACpC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACrB,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACtB,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACxB,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACxB,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC7B,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,KAAK,MAAM,EAAE,CAAC;gBACxC,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;YAChD,CAAC;YACD,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;YAE9B,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;YAChC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACnB,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACpB,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACtB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC;YACzC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACtB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC3B,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;YAC1B,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,sEAAsE;QAC1I,CAAC;QAED,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC;QACvB,MAAM,CAAC,GAAG,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,YAAY,CAAC,KAAa,EAAE,IAAa;QACrC,IAAI,MAAkC,CAAC;QACvC,IAAI,KAAa,CAAC;QAClB,IAAI,OAAe,CAAC;QACpB,IAAI,MAAc,CAAC;QACnB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC;QAE/D,qBAAqB;QACrB,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACvG,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAe,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;YAClE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;oBAC1B,uCAAuC;oBACvC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;oBAC/D,MAAM,UAAU,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;oBACpC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,EAAE,GAAG,UAAU,CAAC,CAAC;oBACxD,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC;oBACxE,MAAM;gBACV,CAAC;YACL,CAAC;QACL,CAAC;aAAM,IACH,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YACrC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;YAC/B,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,EAC1B,CAAC;YACC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAe,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;YACjE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;oBAC1B,uCAAuC;oBACvC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;oBAC/D,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;oBACnC,SAAS,CAAC,WAAW,CAAC,SAAS,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC;oBAC3D,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC;oBACvE,MAAM;gBACV,CAAC;YACL,CAAC;QACL,CAAC;QAED,yBAAyB;QAEzB,IAAI,CAAC,IAAI,EAAE,CAAC;YACR,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAChB,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAC9B,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;YAC9B,CAAC;iBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,QAAQ,EAAE,CAAC;gBAC3C,IAAI,SAA2B,CAAC;gBAChC,IAAI,OAAyB,CAAC;gBAC9B,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;oBACvC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAqB,CAAC;gBAClF,CAAC;qBAAM,CAAC;oBACJ,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACvB,CAAC;gBAED,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;oBACrC,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAqB,CAAC;gBAC9E,CAAC;qBAAM,CAAC;oBACJ,OAAO,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;gBACtB,CAAC;gBAED,uBAAuB;gBACvB,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;gBACnF,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;gBAE3E,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;gBACrE,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;YACrE,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,IAAI,KAAK,CAAC;gBAC3D,IAAI,QAAc,CAAC;gBAEnB,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,KAAK,EAAE,CAAC;oBACpC,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBAClC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;oBACpD,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;oBAC3D,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,EAAE,GAAG,OAAO,CAAC,GAAG,OAAO,GAAG,OAAO,CAAC,CAAC;oBACrF,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;oBAClD,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;oBACzD,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC,CAAC;oBAC3E,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,OAAO,EAAE,CAAC;oBAC7C,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;oBACzC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;oBAC/C,sDAAsD;oBACtD,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;oBAC7D,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,YAAY,EAAE,CAAC;oBAClD,uDAAuD;oBACvD,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,KAAK;oBACL,IAAI,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC;wBAC1B,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;oBAC7C,CAAC;yBAAM,CAAC;wBACJ,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;oBACjE,CAAC;oBACD,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,UAAU,EAAE,CAAC;oBAChD,sDAAsD;oBACtD,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;oBAC7D,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;oBACzC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,aAAa,EAAE,CAAC;oBACnD,uDAAuD;oBACvD,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,KAAK;oBACL,IAAI,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC;wBAC1B,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;oBAC7C,CAAC;yBAAM,CAAC;wBACJ,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;oBACjE,CAAC;oBACD,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;oBACzC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,OAAO,EAAE,CAAC;oBAC7C,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC;oBAC3C,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;oBACpB,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,MAAM,EAAE,CAAC;oBAC5C,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC;oBACjD,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;oBACpB,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;gBAED,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;gBAE5C,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;gBAClE,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YACjE,CAAC;YAED,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;YAC1E,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;gBAC1B,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;YACrE,CAAC;YAED,MAAM,GAAG;gBACL,KAAK,EAAE,OAAO;gBACd,GAAG,EAAE,KAAK;gBACV,UAAU,EACN,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,KAAK,SAAS;oBACzC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU;oBACxB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU;gBACzC,SAAS,EAAE,SAAS,IAAI,QAAQ;gBAChC,IAAI,EAAE,KAAK;gBACX,GAAG,EAAE,KAAK;gBACV,CAAC,EAAE,KAAK;gBACR,KAAK,EAAE,KAAK;aACe,CAAC;YAEhC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,KAAK,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,KAAK,OAAO,EAAE,CAAC;gBACzF,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;YACtD,CAAC;iBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,aAAa,KAAK,MAAM,EAAE,CAAC;gBAC9C,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC;YACnD,CAAC;iBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,aAAa,KAAK,OAAO,EAAE,CAAC;gBAC/C,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,IAAI,GAAG,CAAC;YACpD,CAAC;YAED,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC;YAC5B,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,KAAK,CAAC;YAExB,OAAO,MAAM,CAAC;QAClB,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAChB,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;YAC9B,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;QAC9B,CAAC;aAAM,CAAC;YACJ,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;YAClE,OAAO,GAAG,KAAK,GAAG,IAAI,CAAC;QAC3B,CAAC;QAED,MAAM,GAAG;YACL,KAAK,EAAE,OAAO;YACd,GAAG,EAAE,KAAK;YACV,UAAU,EACN,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,KAAK,SAAS;gBACzC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU;gBACxB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU;YACzC,SAAS,EACJ,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAqD;gBAC1E,IAAI,CAAC,MAAM,CAAC,SAAqD;gBAClE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,KAAK;YACX,GAAG,EAAE,KAAK;YACV,CAAC,EAAE,KAAK;YACR,KAAK,EAAE,KAAK;SACf,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACvE,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,KAAK,CAAC;QAExB,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,MAAM,CAAC,cAAc,CACjB,MAAmB,EACnB,UAAoB,EACpB,SAA6B,EAC7B,oBAAkC;QAElC,MAAM,SAAS,GAAc,EAAE,CAAC;QAEhC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACrC,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YAC3B,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;gBACnB,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;YACxB,CAAC;iBAAM,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC/B,iBAAiB;gBACjB,SAAS,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC/B,CAAC;iBAAM,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;gBACjC,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;gBAChD,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC;YACzC,CAAC;iBAAM,IAAI,SAAS,KAAK,KAAK,EAAE,CAAC;gBAC7B,IAAI,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;gBACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBACvC,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC;wBACpB,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACtB,CAAC;gBACL,CAAC;gBACD,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;YACvB,CAAC;iBAAM,IAAI,SAAS,KAAK,KAAK,EAAE,CAAC;gBAC7B,IAAI,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;gBACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBACvC,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC;wBACpB,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACtB,CAAC;gBACL,CAAC;gBACD,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;YACvB,CAAC;iBAAM,IAAI,SAAS,KAAK,OAAO,EAAE,CAAC;gBAC/B,SAAS,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;YACvD,CAAC;iBAAM,CAAC;gBACJ,SAAS,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YACjD,CAAC;QACL,CAAC;QAED,IAAI,oBAAoB,KAAK,MAAM,EAAE,CAAC;YAClC,KAAK,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;gBACzC,IAAI,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;oBACrD,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;gBACrC,CAAC;qBAAM,CAAC;oBACJ,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;gBACrB,CAAC;YACL,CAAC;YACD,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YACvB,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC5B,CAAC;QAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACrC,OAAO,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACrD,CAAC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,eAAe,CAClB,KAAsC,EACtC,WAAkD,EAClD,OAAe;QAEf,oCAAoC;QACpC,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACrC,KAAK,GAAG,CAAC,CAAC;QACd,CAAC;aAAM,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;YAC9C,KAAK,GAAG,CAAC,CAAC;QACd,CAAC;aAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YACnC,KAAK,GAAG,UAAU,CAAC,KAA0B,CAAC,CAAC;QACnD,CAAC;QAED,IAAI,WAAW,EAAE,CAAC;YACd,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAChE,CAAC;QAED,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;IACnD,CAAC;IAED,cAAc,CACV,GAAW,EACX,IAAqB,EACrB,MAAoB,EACpB,MAAmC;QAEnC,IAAI,CAAC,MAAM,EAAE,CAAC;YACV,MAAM,GAAG;gBACL,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;gBACnB,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE;aACpC,CAAC;YAEF,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,IAAI,IAAI,CAAC,SAAS,KAAK,OAAO,EAAE,CAAC;gBACzD,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;YAChE,CAAC;QACL,CAAC;QAED,MAAM,OAAO,GAAW,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;QAE1C,MAAM,UAAU,GAAe,EAAE,CAAC;QAClC,qFAAqF;QACrF,MAAM,UAAU,GAAe,EAAE,CAAC;QAClC,IAAI,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QAEvC,2BAA2B;QAC3B,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,EAAE,CAAC;YAC3B,IAAI,CAAC,aAAa,EAAE,CAAC;gBACjB,aAAa,GAAG,EAAE,CAAC;gBACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;gBACnC,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBACrC,MAAM,GAAG,GAAW,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAE,MAAM,CAAC,GAAY,CAAC,OAAO,EAAE,CAAC;gBACjG,OAAO,KAAK,CAAC,OAAO,EAAE,IAAI,GAAG,EAAE,CAAC;oBAC5B,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;oBACpC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;gBACpE,CAAC;YACL,CAAC;YAED,aAAa,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,WAAkD,CAAC;QACvD,IAAI,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC;YACvB,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;gBAC9C,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;gBAClC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;oBAC9B,OAAO,GAAG,UAAU,OAAO,EAAE,CAAC;gBAClC,CAAC;gBACD,IAAI,CAAC;oBACD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,QAAQ,CAAC,KAAK,EAAE,OAAO,CAA4B,CAAC;gBACzG,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,OAAO,CAAC,KAAK,CAAC,+CAA+C,CAAC,EAAE,CAAC,CAAC;gBACtE,CAAC;YACL,CAAC;YACD,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;QAC7D,CAAC;QAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACrC,MAAM,KAAK,GAAkB,UAAU,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;YAE7F,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,EAAE,CAAC;gBAC3B,gBAAgB;gBAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBAC5C,IACI,aAAa,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;wBAChC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,KAAK,EACpE,CAAC;wBACC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;wBAC1B,MAAM;oBACV,CAAC;gBACL,CAAC;YACL,CAAC;iBAAM,IAAI,IAAI,CAAC,SAAS,KAAK,OAAO,EAAE,CAAC;gBACpC,IAAI,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;oBAC3C,0BAA0B;oBAC1B,MAAM;gBACV,CAAC;gBAED,MAAM,EAAE,GAAoB,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC;gBAE7D,uCAAuC;gBACvC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;oBACd,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;gBACrB,CAAC;gBACD,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACxB,CAAC;QACL,CAAC;QAED,oBAAoB;QACpB,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,IAAI,IAAI,CAAC,SAAS,KAAK,OAAO,EAAE,CAAC;YACzD,IAAI,GAAG,GAAW,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAE,MAAM,CAAC,GAAY,CAAC,OAAO,EAAE,CAAC;YAC/F,MAAM,KAAK,GAAW,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAE,MAAM,CAAC,KAAc,CAAC,OAAO,EAAE,CAAC;YACzG,8BAA8B;YAC9B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;gBACjB,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;YACnB,CAAC;YACD,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;gBACpB,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC;oBACjC,UAAU,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;gBAC/D,CAAC;gBACD,MAAM,IAAI,GAAG,UAAU,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAC/C,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC;oBACtB,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;wBACjB,6EAA6E;wBAC7E,IAAI,GAAG,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;4BAC/C,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;wBACnE,CAAC;6BAAM,CAAC;4BACJ,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;wBAC1D,CAAC;oBACL,CAAC;yBAAM,CAAC;wBACJ,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;oBAC1D,CAAC;gBACL,CAAC;YACL,CAAC;iBAAM,CAAC;gBACJ,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;gBACxD,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;YAC1D,CAAC;YAED,6BAA6B;YAC7B,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAE5F,oEAAoE;YACpE,OAAO,EAAE,UAAU,EAAE,CAAC;QAC1B,CAAC;QAED,uCAAuC;QACvC,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,UAAU,EAAE,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAC1G,OAAO,EAAE,OAAO,EAAE,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,EAAU,EAAE,QAAgB,EAAE,KAAa;QAC1D,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,QAAQ,KAAK,MAAM,EAAE,CAAC;YACtB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YAC7C,IAAI,CAAC;gBACD,MAAM,SAAS,GAA6C,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,GAAa,CAAC,CAAC;gBAC7F,IAAI,MAAoB,CAAC;gBACzB,IAAK,SAAuC,CAAC,OAAO,EAAE,CAAC;oBACnD,MAAM,GAAI,SAAuC,CAAC,OAAO,CAAC;gBAC9D,CAAC;qBAAM,CAAC;oBACJ,MAAM,GAAG,SAAyB,CAAC;gBACvC,CAAC;gBACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;oBACzB,MAAM,GAAG,EAAE,CAAC;oBACZ,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;gBACzC,CAAC;gBAED,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;gBAE/B,2GAA2G;gBAC3G,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;oBACZ,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;oBACpC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;wBAChD,qEAAqE;wBACrE,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;4BAC3C,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAe,CAAC,CAAC;wBACpE,CAAC;6BAAM,CAAC;4BACJ,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gCACrB,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BACvC,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;gCAChC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;4BAC3C,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gCAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;4BAC1C,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gCAC5B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BACvC,CAAC;4BAED,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gCACrB,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BACtC,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gCAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;4BACzC,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gCAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;4BACzC,CAAC;wBACL,CAAC;oBACL,CAAC;oBAED,uBAAuB;oBACvB,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;wBACf,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;4BACpE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAuB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;wBAC1E,CAAC;6BAAM,IACH,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ;4BAChC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,cAAc,EACtD,CAAC;4BACC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;wBAC3D,CAAC;wBACD,UAAU;wBACV,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,YAAY,EAAE,CAAC;4BAClE,gDAAgD;4BAChD,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC;wBACxC,CAAC;oBACL,CAAC;gBACL,CAAC;gBAED,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAEhE,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;gBAC3D,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;oBACjB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;gBACzC,CAAC;qBAAM,CAAC;oBACJ,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC;gBAC/C,CAAC;YACL,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,OAAO,CAAC,KAAK,CAAC,6CAA6C,CAAC,EAAE,CAAC,CAAC;YACpE,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;gBACpD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACzB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;gBACvB,KAAK,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;YAC5D,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;YACxC,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAC3B,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YAElC,uCAAuC;YACvC,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;gBACb,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YAC1G,CAAC;YAED,IAAI,UAAU,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;gBACrC,IAAI,CAAC;oBACD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;oBACvD,IAAI,IAAI,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC;wBACtE,OAAO,CAAC,IAAI,CACR,8CAA8C,GAAG,CAAC,SAAS,eAAe,IAAI,CAAC,SAAS,EAAE,CAC7F,CAAC;wBACF,OAAO;oBACX,CAAC;oBAED,IAAI,GAAG,EAAE,MAAM,EAAE,CAAC;wBACd,kNAAkN;wBAClN,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,EAAE,EAAE,UAAU,EAAE,GAAG,CAAC,MAAsB,EAAE,MAAM,CAAC,CAAC;wBAEvF,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;4BACjB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;wBACzC,CAAC;6BAAM,CAAC;4BACJ,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC;wBAC/C,CAAC;wBACD,cAAc;wBACd,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC;oBACtB,CAAC;gBACL,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACX,IAAI,GAAG,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;wBAC5C,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;oBAC1B,CAAC;oBACD,OAAO,CAAC,KAAK,CAAC,gBAAgB,GAAG,EAAE,CAAC,CAAC;gBACzC,CAAC;YACL,CAAC;YAED,IACI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,UAAU,CAAC,SAAS,KAAK,KAAK,IAAI,UAAU,CAAC,SAAS,KAAK,OAAO,CAAC;gBAC7F,UAAU,CAAC,SAAS,KAAK,SAAS,EACpC,CAAC;gBACC,qBAAqB;gBACrB,IAAI,CAAC;oBACD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;oBAC7C,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,eAAe,CACjD,KAAK,CAAC,GAAG,EACT,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC,EACzC,UAAU,CAAC,OAAO,IAAI,CAAC,CAC1B,CAAC;gBACN,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;oBACxD,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;gBACpC,CAAC;gBAED,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;oBACpD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;oBACzB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;oBACvB,KAAK,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;gBAC5D,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAU,EAAE,QAAgB,EAAE,KAAa,EAAE,GAAW;QAC1E,IAAI,QAAQ,KAAK,MAAM,EAAE,CAAC;YACtB,MAAM,KAAK,GAAsC,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YAChF,IAAI,CAAC;gBACD,MAAM,UAAU,GAA6C,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,GAAa,CAAC,CAAC;gBAC9F,IAAI,MAAoB,CAAC;gBACzB,IAAK,UAAwC,CAAC,OAAO,EAAE,CAAC;oBACpD,MAAM,GAAI,UAAwC,CAAC,OAAO,CAAC;gBAC/D,CAAC;qBAAM,CAAC;oBACJ,MAAM,GAAG,UAA0B,CAAC;gBACxC,CAAC;gBAED,2GAA2G;gBAC3G,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;oBACZ,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;oBACpC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;wBAChD,mEAAmE;wBACnE,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;4BAC3C,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAe,CAAC,CAAC;wBACpE,CAAC;6BAAM,CAAC;4BACJ,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gCACrB,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BACvC,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;gCAChC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;4BAC3C,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gCAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;4BAC1C,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gCAC5B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BACvC,CAAC;4BAED,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gCACrB,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BACtC,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gCAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;4BACzC,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gCAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;4BACzC,CAAC;wBACL,CAAC;oBACL,CAAC;oBAED,uBAAuB;oBACvB,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;wBACf,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;4BACpE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAuB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;wBAC1E,CAAC;6BAAM,IACH,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ;4BAChC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,cAAc,EACtD,CAAC;4BACC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;wBAC3D,CAAC;wBACD,UAAU;wBACV,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,YAAY,EAAE,CAAC;4BAClE,gDAAgD;4BAChD,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC;wBACxC,CAAC;oBACL,CAAC;gBACL,CAAC;gBAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;oBACzB,MAAM,GAAG,EAAE,CAAC;oBACZ,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;gBACzC,CAAC;gBACD,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAEhE,OAAO,MAAM,CAAC;YAClB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,OAAO,CAAC,KAAK,CAAC,6CAA6C,CAAC,EAAE,CAAC,CAAC;YACpE,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,MAAM,MAAM,GAA+B;gBACvC,KAAK;gBACL,GAAG;gBACH,UAAU,EAAE,KAAK;gBACjB,SAAS,EAAE,MAAM;gBACjB,KAAK,EAAE,IAAI;gBACX,IAAI,EAAE,KAAK;gBACX,GAAG,EAAE,KAAK;gBACV,CAAC,EAAE,KAAK;gBACR,KAAK,EAAE,KAAK;aACf,CAAC;YAEF,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAC3B,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YAElC,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;gBACb,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YAC1G,CAAC;YAED,IAAI,CAAC;gBACD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;gBACvD,IAAI,IAAI,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC;oBACtE,OAAO,CAAC,IAAI,CACR,8CAA8C,GAAG,CAAC,SAAS,eAAe,IAAI,CAAC,SAAS,EAAE,CAC7F,CAAC;oBACF,OAAO,IAAI,CAAC;gBAChB,CAAC;gBAED,OAAO,GAAG,EAAE,MAAM,CAAC;YACvB,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,GAAG,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;gBACnE,GAAG,IAAI,OAAO,CAAC,KAAK,CAAC,gBAAgB,GAAG,EAAE,CAAC,CAAC;YAChD,CAAC;QACL,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,WAAW,CAAC,EAAU;QAClB,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,YAAY,OAAO,CAAC,EAAE,CAAC;YAChD,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,GAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAmC,CAAC,KAAK,CACxF,CAAC,CAAU,EAAQ,EAAE;gBACjB,IAAK,CAAW,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;oBACtE,IAAI,CAAC,WAAW,CAAC,CAAU,CAAC,CAAC;gBACjC,CAAC;gBACD,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,MAAO,CAAW,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;gBACjE,OAAO,IAAI,CAAC;YAChB,CAAC,CACJ,CAAC;QACN,CAAC;QAED,OAAO,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,KAAa;QAC5B,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,CAAC;YACD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;YAElD,IAAI,GAAG,EAAE,MAAM,EAAE,CAAC;gBACd,MAAM,IAAI,GAAgC,UAAU,CAAC,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;gBAE7E,UAAU,CAAC,IAAI;oBACX,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ;wBAC5B,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,EAAE,IAAI,UAAU,CAAC,EAAE;wBAC9D,CAAC,CAAE,IAAe,IAAI,EAAE,CAAC;gBAEjC,UAAU,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;gBAEhG,UAAU,CAAC,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;gBAElC,IAAI,UAAU,CAAC,SAAS,KAAK,MAAM,EAAE,CAAC;oBAClC,UAAU,CAAC,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;oBACxE,UAAU,CAAC,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC;gBAC7E,CAAC;gBAED,qCAAqC;gBACrC,IAAI,UAAU,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,IAAI,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;oBACnE,OAAO,UAAU,CAAC,IAAI,CAAC;gBAC3B,CAAC;gBAED,uBAAuB;gBACvB,IACI,GAAG,CAAC,MAAM,CAAC,MAAM;oBACjB,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC;oBACjC,UAAU,CAAC,MAAM,KAAK,KAAK;oBAC3B,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAClB,CAAC;oBACC,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;wBACpB,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;oBAC5E,CAAC;yBAAM,CAAC;wBACJ,UAAU,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC;oBAC1C,CAAC;oBAED,+DAA+D;oBAC/D,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,OAAO,CAAC,EAAE,CAAC;wBAChF,MAAM,MAAM,GAA2B,EAAE,CAAC;wBAC1C,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;4BACzC,MAAM,CAAC,GAAG,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAClD,UAAU,CAAC,MACd,CAAC,GAAG,CAAC,CAAC;wBACX,CAAC,CAAC,CAAC;wBACH,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;oBAC/B,CAAC;oBAED,iCAAiC;oBACjC,IAAI,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;wBACvC,OAAO,UAAU,CAAC,IAAI,CAAC;oBAC3B,CAAC;gBACL,CAAC;gBAED,2CAA2C;gBAC3C,IAAI,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,WAAW,KAAK,CAAC,EAAE,CAAC;oBACzD,UAAU,CAAC,IAAI,GAAG,KAAK,CAAC;gBAC5B,CAAC;YACL,CAAC;QACL,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,CAAC,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YAC/D,OAAO,CAAC,KAAK,CAAC,mCAAmC,UAAU,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;QAC5E,CAAC;QAED,UAAU,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;QACzD,UAAU,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,IAAI,EAAE,CAAC;QACxC,IAAI,UAAU,CAAC,SAAS,KAAK,MAAM,EAAE,CAAC;YAClC,UAAU,CAAC,SAAS,GAAG,MAAM,CAAC;YAC9B,UAAU,CAAC,SAAS,GAAG,QAAQ,CAAC;QACpC,CAAC;QAED,MAAM,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,QAAQ,IAAI,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IAC9F,CAAC;IAED,KAAK,CAAC,SAAS;QACX,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC5C,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBACnB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAC7B,CAAC;YACD,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC;gBACvB,MAAM,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YAC/B,CAAC;QACL,CAAC;IACL,CAAC;IAED,KAAK,CAAC,SAAS;QACX,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACpB,MAAM,KAAK,GAAG,CAAC,CAAC;YAChB,MAAM,MAAM,GAA+B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAChG,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,IAAI,IAAI,CAAC,cAAc,CAAC;YACvE,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YAClC,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC;YAE1B,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;gBACb,OAAO,CAAC,GAAG,CACP,uBAAuB,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAClG,CAAC;YACN,CAAC;YAED,IAAI,CAAC;gBACD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;gBACtE,IAAI,IAAI,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC;oBACtE,OAAO,CAAC,IAAI,CACR,8CAA8C,GAAG,CAAC,SAAS,eAAe,IAAI,CAAC,SAAS,EAAE,CAC7F,CAAC;oBACF,OAAO;gBACX,CAAC;gBAED,MAAM,OAAO,GAAsB,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;gBACpD,IAAI,GAAG,EAAE,MAAM,EAAE,CAAC;oBACd,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;wBACrB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;oBAC5C,CAAC;oBAED,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;oBAE1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;wBACrC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,EAAE,CAAC;4BACzB,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;wBAC3D,CAAC;oBACL,CAAC;oBAED,oBAAoB;oBACpB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;wBACjB,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC;4BACrC,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;wBACnD,CAAC;wBACD,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;4BACpD,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;wBAC9C,CAAC;oBACL,CAAC;yBAAM,CAAC;wBACJ,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;wBAC5C,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;oBAC9C,CAAC;oBACD,cAAc;oBACd,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC;gBACtB,CAAC;gBAED,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;YACzB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,CAAC,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;gBAC/D,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;YACvC,CAAC;QACL,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;MAgBE;IAEF,KAAK,CAAC,YAAY;QACd,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACrB,OAAO;QACX,CAAC;QACD,gBAAgB;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAChD,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAClC,mBAAmB;YACnB,IACI,IAAI,CAAC,cAAc;gBACnB,OAAO,IAAI,CAAC,cAAc,KAAK,QAAQ;gBACvC,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC;gBAC5C,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE,KAAK,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,EACpG,CAAC;gBACC;;wBAEQ;gBACR,IAAI,CAAC;oBACD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;oBAC9D,IAAI,KAAK,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS,IAAI,KAAK,CAAC,GAAG,KAAK,IAAI,EAAE,CAAC;wBACzD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,GAAa,CAAC,IAAI,CAAC,CAAC;oBAC3D,CAAC;yBAAM,CAAC;wBACJ,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;oBAC3B,CAAC;gBACL,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,CAAC,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;oBAC/D,OAAO,CAAC,KAAK,CAAC,uBAAuB,IAAI,CAAC,cAAc,KAAK,CAAC,EAAE,CAAC,CAAC;gBACtE,CAAC;YACL,CAAC;YAED,mBAAmB;YACnB,IACI,IAAI,CAAC,cAAc;gBACnB,OAAO,IAAI,CAAC,cAAc,KAAK,QAAQ;gBACvC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC;gBACjC,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE,KAAK,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,EACzF,CAAC;gBACC;;wBAEQ;gBACR,IAAI,CAAC;oBACD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;oBAC9D,IAAI,KAAK,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS,IAAI,KAAK,CAAC,GAAG,KAAK,IAAI,EAAE,CAAC;wBACzD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,GAAa,CAAC,IAAI,CAAC,CAAC;oBAC3D,CAAC;yBAAM,CAAC;wBACJ,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;oBAC3B,CAAC;gBACL,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,CAAC,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;oBAC/D,OAAO,CAAC,KAAK,CAAC,uBAAuB,IAAI,CAAC,cAAc,KAAK,CAAC,EAAE,CAAC,CAAC;gBACtE,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,UAAqB;QACpC,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,UAAU,EAAE,MAAM,EAAE,CAAC;YACzC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBACzC,IAAI,CAAC;oBACD,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;gBACxE,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,CAAC,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;oBAC/D,OAAO,CAAC,KAAK,CAAC,oBAAoB,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;gBAC7D,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IAED,UAAU;QACN,iCAAiC;QACjC,MAAM,UAAU,GAAuB,EAAE,CAAC;QAC1C,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YAClC,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,EAAE,CAAC;gBAC3B,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC5C,CAAC;iBAAM,CAAC;gBACJ,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAC/C,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACzE,CAAC;IAED,aAAa,GAAG,CAAC,EAAU,EAAE,KAAwC,EAAQ,EAAE;QAC3E,IAAI,CAAC,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAChC,OAAO;QACX,CAAC;QAED,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,OAAO,GAAG,KAAK,CAAC;QACpB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;YACxD,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;gBACjC,kDAAkD;gBAClD,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC;oBAC3C,IAAI,CAAC;wBACD,MAAM,QAAQ,GAA6C,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,GAAa,CAAC,CAAC;wBAC5F,IAAI,IAAkB,CAAC;wBACvB,IAAK,QAAsC,CAAC,OAAO,EAAE,CAAC;4BAClD,IAAI,GAAI,QAAsC,CAAC,OAAO,CAAC;wBAC3D,CAAC;6BAAM,CAAC;4BACJ,IAAI,GAAG,QAAwB,CAAC;wBACpC,CAAC;wBAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;4BACvB,IAAI,GAAG,EAAE,CAAC;4BACV,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;wBACzC,CAAC;wBACD,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC9D,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;wBAEnE,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;4BACjB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;wBACzC,CAAC;6BAAM,CAAC;4BACJ,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC;wBAC/C,CAAC;wBAED,kCAAkC;wBAClC,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;4BACpB,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;wBACzD,CAAC;wBAED,IAAI,CAAC,UAAU,EAAE,CAAC;oBACtB,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC;wBACT,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;oBAC7C,CAAC;oBAED,OAAO;gBACX,CAAC;gBAED,MAAM,KAAK,GAAG,UAAU,CAAC,eAAe,CACpC,KAAK,CAAC,GAAG,EACT,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,EACnD,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,IAAI,CAAC,CACpC,CAAC;gBAEF,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,KAAK,EAAE,CAAC;oBAC1D,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;oBACjC,OAAO,GAAG,IAAI,CAAC;gBACnB,CAAC;gBACD,MAAM;YACV,CAAC;QACL,CAAC;QACD,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IAC1D,CAAC,CAAC;IAEF,MAAM,CAAC,OAAO,CAAC,IAAmB,EAAE,MAAuB,EAAE,iBAA2B;QACpF,MAAM,IAAI,GAAS,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;QAElC,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC7B,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;gBACzC,MAAM,GAAG,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBAC9B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,CAAC,CAAC;gBACxC,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAC1B,CAAC;iBAAM,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;gBAChD,MAAM,GAAG,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBAC9B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,MAAM,CAAC,CAAC;gBAC9C,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAC1B,CAAC;iBAAM,CAAC;gBACJ,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBACtB,IAAI,iBAAiB,EAAE,CAAC;oBACpB,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC;gBAChD,CAAC;qBAAM,CAAC;oBACJ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC;gBAC/C,CAAC;YACL,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,MAAM,GAAG,MAAM,IAAI,CAAC,CAAC;YACrB,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YACtB,IAAI,iBAAiB,EAAE,CAAC;gBACpB,IAAI,IAAI,MAAM,GAAG,KAAK,CAAC;YAC3B,CAAC;iBAAM,CAAC;gBACJ,IAAI,IAAI,MAAM,GAAG,IAAI,CAAC;YAC1B,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,IAAY,EAAE,EAAU,EAAE,QAAmB;QAC1D,oBAAoB;QACpB,MAAM,MAAM,GAAyC,EAAE,CAAC;QACxD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC5C,IAAI,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;gBACvF,SAAS;YACb,CAAC;YACD,IAAI,IAAI,GAAG,MAAM,IAAI,CAAC,eAAe,CACjC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EACnB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,IAAI,IAAI,CAAC,cAAc,EAChD,IAAI,EACJ,EAAE,CACL,CAAC;YACF,IAAI,KAAK,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC5D,IAAI,MAAM,GAAG,IAAI,CAAC;YAClB,OAAO,MAAM,EAAE,MAAM,KAAK,IAAI,EAAE,CAAC;gBAC7B,MAAM,GAAG,MAAM,IAAI,CAAC,eAAe,CAC/B,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EACnB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,IAAI,IAAI,CAAC,cAAc,EAChD,KAAK,EACL,EAAE,CACL,CAAC;gBACF,KAAK,GAAG,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACvE,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAC/B,CAAC;YACD,IAAI,MAAM,EAAE,CAAC;gBACT,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC;YACzC,CAAC;QACL,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,QAAQ;QACV,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACzB,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YACrC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;QAClC,CAAC;QAED,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACtB,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAC1D,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,IAAI,CAAC,SAAS,GAAG,QAAQ,EAAE,CAAC;YAC5B,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;QACvB,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;YAChB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;YACpB,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;YAE/C,OAAO;YACP,uGAAuG;YACvG,EAAE;YACF,oCAAoC;YACpC,kEAAkE;YAClE,qFAAqF;YACrF,0DAA0D;YAC1D,kGAAkG;YAClG,kCAAkC;YAClC,qFAAqF;YACrF,2BAA2B;YAC3B,kEAAkE;YAClE,mDAAmD;YACnD,2BAA2B;YAC3B,yBAAyB;YACzB,mBAAmB;YACnB,sBAAsB;YACtB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;YACrB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;YAClB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;YAE1B,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;YACvB,6BAA6B;YAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,KAAK,CAAC,EAAE,CAAC;oBACrE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC;gBAC7E,CAAC;YACL,CAAC;YAED,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;YACvB,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;YAC1B;;;gBAGI;YACJ,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YAErB,IAAI,CAAC,UAAU,EAAE,CAAC;QACtB,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC;YACtE,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YAChD,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;IACL,CAAC;CACJ;AAED,kBAAe,UAAU,CAAC","sourcesContent":["import type { Connection } from '../types';\nimport type {\n ChartAggregateType,\n ChartMarkConfig,\n ChartType,\n ChartConfig,\n ChartRelativeEnd,\n ChartLineConfig,\n ChartRangeOptions,\n} from '../types';\n\n/*\nfunction deParam(params, coerce) {\n const obj = {};\n const coerceTypes = {'true': true, 'false': false, 'null': null};\n\n // Iterate over all name=value pairs.\n params.replace(/\\+/g, ' ').split('&').forEach(v => {\n const param = v.split('=');\n let key = decodeURIComponent(param[0]);\n let val;\n let i = 0;\n\n // If key is more complex than 'foo', like 'a[]' or 'a[b][c]', split it\n // into its component parts.\n let keys = key.split('][');\n let keysLast = keys.length - 1;\n\n // If the first keys part contains [ and the last ends with ], then []\n // are correctly balanced.\n if (/\\[/.test(keys[0]) && /]$/.test(keys[keysLast])) {\n // Remove the trailing ] from the last keys part.\n keys[keysLast] = keys[keysLast].replace(/]$/, '');\n\n // Split first keys part into two parts on the [ and add them back onto\n // the beginning of the keys array.\n keys = keys.shift().split('[').concat(keys);\n\n keysLast = keys.length - 1;\n } else {\n // Basic 'foo' style key.\n keysLast = 0;\n }\n\n // Are we dealing with a name=value pair, or just a name?\n if (param.length === 2) {\n val = decodeURIComponent(param[1]);\n\n // Coerce values.\n if (coerce) {\n val = val && !isNaN(val) && ((+val + '') === val) ? +val // number\n : val === 'undefined' ? undefined // undefined\n : coerceTypes[val] !== undefined ? coerceTypes[val] // true, false, null\n : val; // string\n }\n\n if (keysLast) {\n let cur = obj;\n // Complex key, build deep object structure based on a few rules:\n // * The 'cur' pointer starts at the object top-level.\n // * [] = array push (n is set to array length), [n] = array if n is\n // numeric, otherwise object.\n // * If at the last keys part, set the value.\n // * For each keys part, if the current level is undefined create an\n // object or array based on the type of the next keys part.\n // * Move the 'cur' pointer to the next level.\n // * Rinse & repeat.\n for (; i <= keysLast; i++) {\n key = keys[i] === '' ? cur.length : keys[i];\n cur = cur[key] = i < keysLast\n ? cur[key] || (keys[i + 1] && isNaN(keys[i + 1]) ? {} : [])\n : val;\n }\n\n } else {\n // Simple key, even simpler rules, since only scalars and shallow\n // arrays are allowed.\n\n if (Object.prototype.toString.call(obj[key]) === '[object Array]') {\n // val is already an array, so push on the next value.\n obj[key].push(val);\n } else if ({}.hasOwnProperty.call(obj, key)) {\n // val isn't an array, but since a second value has been specified,\n // convert val into an array.\n obj[key] = [obj[key], val];\n } else {\n // val is a scalar.\n obj[key] = val;\n }\n }\n } else if (key) {\n // No value was defined, so set something meaningful.\n obj[key] = coerce\n ? undefined\n : '';\n }\n });\n\n return obj;\n}\n*/\n\nexport type EchartsOneValue = { value: [number, number]; exact?: false };\ntype EchartsAnyValue = { value: [number, number | string | boolean]; exact?: false };\n\nexport type ChartLineConfigOld = {\n // @deprecated use chartType\n art?: ChartAggregateType;\n\n id: string;\n unit: string;\n\n offset?: number;\n name?: string;\n aggregate?: ChartAggregateType;\n color?: string;\n thickness?: number;\n shadowsize?: number;\n min?: number | '';\n max?: number | '';\n\n yOffset?: number;\n validTime?: number;\n chartType?: ChartType;\n\n instance?: string;\n};\n\nexport type ChartMarkConfigOld = {\n l: number; // lineId\n v: string | number; // upperValueOrId\n vl: string | number; // lowerValueOrId\n c: string; // color\n f: string | number; // fill\n t: number; // ol - line width\n s: number; // os - shadow\n d: string; // text - descriptions\n p: 'r' | 'l'; // textPosition\n py: number; // textOffset\n fc: string; // textColor\n fs: number; // textSize\n};\n\nexport type ChartConfigOld = {\n // @deprecated use \"l\"\n chartType?: 'auto' | 'bar' | 'polar' | 'line';\n // @deprecated use \"l\"\n instance?: string;\n // @deprecated use \"l\"\n lines?: ChartLineConfigOld[];\n // @deprecated use \"l\"\n _ids?: string;\n // @deprecated use \"l\"\n _colors?: string;\n // @deprecated use \"l\"\n _names?: string;\n // @deprecated use \"l\"\n strokeWidth?: number;\n // @deprecated use \"l\"\n min?: number;\n // @deprecated use \"l\"\n max?: number;\n // @deprecated use \"l\"\n _units?: string;\n // @deprecated use \"marks\"\n m: ChartMarkConfigOld[];\n\n aggregateType: 'step' | 'count';\n aggregateSpan: number;\n relativeEnd: 'now' | 'month' | 'year' | 'minute' | 'hour' | 'weekUsa' | 'weekEurope' | 'week2Usa' | 'week2Europe';\n\n l: ChartLineConfigOld[];\n marks: ChartMarkConfig[];\n\n width: string | number;\n height: string | number;\n timeFormat?: string;\n useComma: string | boolean;\n zoom: string | boolean;\n export: string | boolean;\n grid_hideX: string | boolean;\n grid_hideY: string | boolean;\n hoverDetail: string | boolean;\n noLoader: string | boolean;\n noedit: string | boolean;\n animation: string | number;\n afterComma?: string | number;\n timeType: 'relative' | 'static';\n xLabelShift: number | string;\n xLabelShiftMonth?: boolean;\n xLabelShiftYear?: boolean;\n};\n\nexport type LineSeries = EchartsOneValue[];\nexport type BarSeries = number[];\nexport type BarAndLineSeries = BarSeries | LineSeries;\n\nexport interface SeriesData extends Omit {\n // Name of state, like \"system.adapter.admin.0.memHeap\"\n id?: string;\n\n // All possible names for value (will be converted to val)\n y?: number;\n value?: number;\n data?: number;\n v?: number;\n\n // All possible names for timestamp (will be converted to ts)\n t?: number;\n time?: number;\n date?: number;\n\n /** Interpolated */\n i?: boolean;\n\n ack: boolean;\n\n /** Name of the adapter instance which set the value, e.g. \"system.adapter.web.0\" */\n from?: string;\n}\n\n/**\n * Parse a query string into its parts.\n * Copied from @iobroker/adapter-react-v5/Components/Utils\n */\nfunction parseQuery(query: string): Record {\n query = (query || '').toString().replace(/^\\?/, '');\n const result: Record = {};\n query.split('&').forEach(part => {\n part = part.trim();\n if (part) {\n const parts = part.split('=');\n const attr = decodeURIComponent(parts[0]).trim();\n if (parts.length > 1) {\n result[attr] = decodeURIComponent(parts[1]);\n if (result[attr] === 'true') {\n result[attr] = true;\n } else if (result[attr] === 'false') {\n result[attr] = false;\n } else {\n const f = parseFloat(result[attr] as unknown as string);\n if (f.toString() === result[attr]) {\n result[attr] = f;\n }\n }\n } else {\n result[attr] = true;\n }\n }\n });\n return result;\n}\n\n// Do not forget to change normalizeConfig in src/utils/flotConverter.js too\nfunction normalizeConfig(config: ChartConfigOld): ChartConfig {\n const newConfig: ChartConfig = JSON.parse(JSON.stringify(config));\n\n if (config.lines) {\n newConfig.l = config.lines as ChartLineConfig[];\n // @ts-expect-error delete old structure\n delete newConfig.lines;\n }\n\n if (config._ids) {\n const ids = config._ids ? config._ids.split(';') : [];\n const colors = config._colors ? config._colors.split(';') : [];\n const names = config._names ? config._names.split(';') : [];\n const units = config._units ? config._units.split(';') : [];\n newConfig.l = [];\n for (let i = 0; i < ids.length; i++) {\n newConfig.l.push({\n id: ids[i],\n offset: 0,\n name: names[i] || undefined,\n aggregate: 'none',\n color: colors[i] || 'blue',\n thickness: config.strokeWidth || 1,\n shadowsize: config.strokeWidth || 1,\n min: config.min || undefined,\n max: config.max || undefined,\n unit: units[i] || undefined,\n });\n }\n newConfig.aggregateType = 'step';\n newConfig.aggregateSpan = 300;\n newConfig.relativeEnd = 'now';\n }\n\n // convert art to aggregate (from flot)\n if (config.l) {\n for (let j = 0; j < config.l.length; j++) {\n if (config.l[j].art) {\n config.l[j].aggregate = config.l[j].art;\n delete config.l[j].art;\n }\n if (config.instance && !config.l[j].instance) {\n config.l[j].instance = config.instance;\n }\n config.l[j].yOffset = parseFloat(config.l[j].yOffset as unknown as string) || 0;\n config.l[j].offset = parseFloat(config.l[j].offset as unknown as string) || 0;\n config.l[j].validTime = parseFloat(config.l[j].validTime as unknown as string) || 0;\n config.l[j].chartType = config.l[j].chartType || config.chartType || 'auto';\n }\n }\n\n config.l = config.l || [];\n\n // convert marks\n if (config.m) {\n newConfig.marks = [];\n for (let j = 0; j < config.m.length; j++) {\n newConfig.marks[j] = {\n lineId: config.m[j].l,\n upperValueOrId: config.m[j].v,\n lowerValueOrId: config.m[j].vl,\n color: config.m[j].c,\n fill: parseFloat(config.m[j].f as string),\n ol: config.m[j].t,\n os: config.m[j].s,\n text: config.m[j].d,\n textPosition: config.m[j].p,\n textOffset: config.m[j].py,\n textColor: config.m[j].fc,\n textSize: config.m[j].fs,\n };\n }\n // @ts-expect-error delete old structure\n delete newConfig.m;\n }\n\n newConfig.marks = newConfig.marks || [];\n\n if (!newConfig.l?.length) {\n config.l = config.l || [];\n config.l.push({ id: '', unit: '' });\n }\n\n // Set default values\n newConfig.width = config.width || '100%';\n newConfig.height = config.height || '100%';\n // if width or height does not have any units, add px to it\n if (parseFloat(newConfig.width as string).toString() === newConfig.width.toString().trim()) {\n newConfig.width += 'px';\n }\n if (parseFloat(newConfig.height as string).toString() === newConfig.height.toString().trim()) {\n newConfig.height += 'px';\n }\n\n newConfig.timeFormat = config.timeFormat || '';\n newConfig.useComma = config.useComma === 'true' || config.useComma === true;\n newConfig.zoom = config.zoom === 'true' || config.zoom === true;\n newConfig.export = config.export === 'true' || config.export === true;\n newConfig.grid_hideX = config.grid_hideX === 'true' || config.grid_hideX === true;\n newConfig.grid_hideY = config.grid_hideY === 'true' || config.grid_hideY === true;\n newConfig.hoverDetail = config.hoverDetail === 'true' || config.hoverDetail === true;\n newConfig.noLoader = config.noLoader === 'true' || config.noLoader === true;\n newConfig.noedit = config.noedit === 'true' || config.noedit === true;\n newConfig.animation = parseInt(config.animation as string, 10) || 0;\n newConfig.afterComma = config.afterComma === undefined ? 2 : parseInt(config.afterComma as string, 10);\n newConfig.timeType = config.timeType || 'relative';\n if (config.xLabelShift) {\n if (typeof config.xLabelShift === 'string' && config.xLabelShift.endsWith('m')) {\n newConfig.xLabelShift = parseInt(config.xLabelShift.substring(0, config.xLabelShift.length - 1), 10) || 0;\n newConfig.xLabelShiftMonth = true;\n } else if (typeof config.xLabelShift === 'string' && config.xLabelShift.endsWith('y')) {\n newConfig.xLabelShift = parseInt(config.xLabelShift.substring(0, config.xLabelShift.length - 1), 10) || 0;\n newConfig.xLabelShiftYear = true;\n } else {\n newConfig.xLabelShift = parseInt(config.xLabelShift as string, 10) || 0;\n }\n }\n\n return newConfig;\n}\n\nconst NOT_CONNECTED = 'notConnectedError';\n\nclass ChartModel {\n private readonly socket: Connection;\n private readonly updateTimeout: number;\n private readonly serverSide: boolean;\n // For line charts\n private seriesData: LineSeries[] = [];\n // For Bar or polar charts\n private barData: BarSeries[] = [];\n // Actual values for every line/bar. Only if config.legActual === true\n private readonly actualValues: (number | null | boolean | string)[] = [];\n private ticks: EchartsAnyValue[] = null;\n private reading: boolean = false;\n private subscribes: string[] = [];\n private sessionId: number = 1;\n // update interval by time\n private updateInterval: ReturnType | null = null;\n private presetUpdateTimeout: ReturnType | null = null;\n private readOnZoomTimeout: ReturnType | null = null;\n private subscribed: boolean = false;\n // Is preset subscribed yet or not\n private presetSubscribed: string = '';\n private defaultHistory: string = '';\n private onUpdateFunc:\n | ((\n seriesData: BarAndLineSeries[],\n actualValues?: (number | null | boolean | string)[],\n barCategories?: number[],\n ) => void)\n | null = null;\n private onReadingFunc: ((isReading: boolean) => void) | null = null;\n private onErrorFunc: ((error: Error) => void) | null = null;\n private objectPromises: Record> = {};\n private debug = false;\n private zoomData: { stopLive?: boolean; start?: number; end?: number } | null = null;\n private lastHash: string;\n private onHashInstalled: boolean = false;\n private systemConfig: ioBroker.SystemConfigCommon | null = null;\n private preset?: string;\n private config?: ChartConfig;\n private barCategories?: number[];\n private now: number = Date.now();\n private hash?: {\n range: ChartRangeOptions;\n relativeEnd: ChartRelativeEnd;\n };\n\n private convertFunctions: Record number> = {};\n\n constructor(\n socket: Connection,\n /** Config or preset ID */\n config: ChartConfigOld | string,\n options?: { updateTimeout?: number; serverSide?: boolean; compact?: boolean },\n ) {\n options = { updateTimeout: 300, ...(options || {}) };\n this.socket = socket;\n\n this.updateTimeout = options.updateTimeout || 300; // how often the new data will be requested by zoom and pan\n this.serverSide = options.serverSide || false; // if rendering is serverside\n\n if (!this.serverSide) {\n this.lastHash = window.location.hash;\n\n if (!config) {\n this.onHashInstalled = true;\n window.addEventListener('hashchange', this.onHashChange, false);\n }\n } // else node.js\n\n void this.socket\n .getSystemConfig()\n .catch((e: unknown): null => {\n if ((e as Error).toString().includes(NOT_CONNECTED) && this.onErrorFunc) {\n this.onErrorFunc(e as Error);\n }\n console.error(`Cannot read systemConfig: ${(e as Error).toString()}`);\n return null;\n })\n .then((systemConfig: ioBroker.SystemConfigObject): Promise => {\n this.systemConfig = systemConfig?.common ? systemConfig.common : ({} as ioBroker.SystemConfigCommon);\n this.defaultHistory = this.systemConfig.defaultHistory;\n return this.analyseAndLoadConfig(config);\n });\n }\n\n async analyseAndLoadConfig(config?: string | ChartConfigOld): Promise {\n if (config) {\n if (typeof config === 'string') {\n this.preset = config;\n } else {\n this.config = normalizeConfig(config);\n }\n } else if (!this.serverSide) {\n const query: Record = parseQuery(window.location.search); // Utils.parseQuery\n\n this.debug = query.debug === true || query.debug === 'true' || query.debug === 1 || query.debug === '1';\n\n if (query.preset && typeof query.preset === 'string') {\n this.preset = query.preset;\n } else {\n const hQuery: Record = parseQuery(\n (window.location.hash || '').toString().replace(/^#/, ''),\n ); // Utils.parseQuery\n let config: ChartConfigOld = {} as ChartConfigOld;\n\n if (hQuery.data && typeof hQuery.data === 'string') {\n try {\n config = JSON.parse(hQuery.data);\n } catch {\n // ignore\n }\n }\n if (query.data && typeof query.data === 'string') {\n try {\n Object.assign(config, JSON.parse(query.data), true);\n } catch {\n // ignore\n }\n }\n if (hQuery.preset) {\n this.preset = hQuery.preset as string;\n if (hQuery.range || hQuery.relativeEnd) {\n this.hash = {\n range: hQuery.range as ChartRangeOptions,\n relativeEnd: hQuery.relativeEnd as ChartRelativeEnd,\n };\n }\n } else {\n // search ID and range\n if (hQuery.noLoader !== undefined) {\n config.noLoader =\n hQuery.noLoader === true ||\n hQuery.noLoader === 'true' ||\n hQuery.noLoader === 1 ||\n hQuery.noLoader === '1';\n }\n if (query.noLoader !== undefined) {\n config.noLoader =\n query.noLoader === true ||\n query.noLoader === 'true' ||\n query.noLoader === 1 ||\n query.noLoader === '1';\n }\n this.config = normalizeConfig(config);\n // console.log(this.config);\n }\n }\n }\n\n this.seriesData = [];\n this.barData = [];\n this.barCategories = null;\n\n if (this.updateInterval) {\n clearInterval(this.updateInterval);\n this.updateInterval = null;\n }\n\n if (this.preset) {\n if (\n (!this.preset.startsWith('echarts.') && !this.preset.startsWith('flot.')) ||\n !this.preset.includes('.')\n ) {\n this.preset = `echarts.0.${this.preset}`;\n }\n\n try {\n const obj: ioBroker.ChartObject | null | undefined = (await this.socket.getObject(this.preset)) as\n | ioBroker.ChartObject\n | null\n | undefined;\n if (!obj?.native?.data || obj.type !== 'chart') {\n console.error(`[ChartModel] Invalid object ${this.preset}: ${JSON.stringify(obj)}`);\n return;\n }\n this.config = normalizeConfig(obj.native.data);\n this.config.useComma =\n this.config.useComma === undefined ? this.systemConfig.isFloatComma : this.config.useComma;\n this.config.lang = this.systemConfig.language;\n this.config.live = parseInt(this.config.live as unknown as string, 10) || 0;\n this.config.debug = this.debug;\n this.config.presetId = this.preset;\n\n if (this.hash?.range) {\n if (\n typeof this.hash.range === 'string' &&\n !this.hash.range.includes('y') &&\n !this.hash.range.includes('m')\n ) {\n this.config.range = parseInt(this.hash.range, 10);\n } else {\n this.config.range = this.hash.range;\n }\n }\n if (this.hash?.relativeEnd) {\n this.config.relativeEnd = this.hash.relativeEnd;\n }\n\n await this.readData();\n\n // subscribe on preset changes\n if (!this.serverSide && this.presetSubscribed !== this.preset) {\n this.presetSubscribed &&\n (await this.socket.unsubscribeObject(this.presetSubscribed, this.onPresetUpdate));\n this.presetSubscribed = this.preset;\n await this.socket.subscribeObject(this.preset, this.onPresetUpdate);\n }\n if (!this.serverSide && this.config.live && !this.zoomData?.stopLive) {\n this.updateInterval = setInterval(() => this.readData(), this.config.live * 1000);\n }\n } catch (e) {\n e === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(e);\n console.error(`Cannot read \"${this.preset}\": ${e}`);\n }\n } else {\n this.config.useComma =\n this.config.useComma === undefined\n ? this.systemConfig.isFloatComma === true\n : this.config.useComma === true;\n this.config.lang = this.systemConfig.language;\n this.config.live = parseInt(this.config.live as unknown as string, 10) || 0;\n this.config.debug = this.debug;\n await this.readData();\n if (!this.serverSide && this.config.live && !this.zoomData?.stopLive) {\n this.updateInterval = setInterval(() => this.readData(), this.config.live * 1000);\n }\n }\n }\n\n onHashChange = (): void => {\n if (this.lastHash !== window.location.hash) {\n this.lastHash = window.location.hash;\n void this.analyseAndLoadConfig();\n }\n };\n\n onPresetUpdate = (id: string, obj: ioBroker.Object | null | undefined): void => {\n if (id !== this.preset) {\n return;\n }\n if (this.presetUpdateTimeout) {\n clearTimeout(this.presetUpdateTimeout);\n }\n this.presetUpdateTimeout = setTimeout(() => {\n this.presetUpdateTimeout = null;\n let newConfig;\n if (obj) {\n newConfig = normalizeConfig(obj.native.data);\n } else {\n newConfig = normalizeConfig({} as ChartConfigOld);\n }\n if (JSON.stringify(newConfig) !== JSON.stringify(this.config)) {\n this.config = newConfig;\n this.updateInterval && clearInterval(this.updateInterval);\n this.updateInterval = null;\n\n if (this.config.live && (!this.zoomData || !this.zoomData.stopLive)) {\n this.updateInterval = setInterval(() => this.readData(), this.config.live * 1000);\n }\n\n void this.readData();\n }\n }, 100);\n };\n\n setNewRange(options?: { stopLive?: boolean; start?: number; end?: number }): void {\n if (this.debug) {\n console.log(`[ChartModel] [${new Date().toISOString()}] setNewRange: ${JSON.stringify(options)}`);\n }\n\n if (!options) {\n if (this.zoomData) {\n this.zoomData = null;\n this.readOnZoomTimeout && clearTimeout(this.readOnZoomTimeout);\n this.readOnZoomTimeout = setTimeout(() => {\n this.readOnZoomTimeout = null;\n if (this.config.live && (!this.zoomData || !this.zoomData.stopLive)) {\n console.log('Restore update');\n this.updateInterval && clearInterval(this.updateInterval);\n this.updateInterval = setInterval(() => this.readData(), this.config.live * 1000);\n }\n void this.readData();\n }, this.updateTimeout);\n }\n } else if (options.stopLive) {\n this.zoomData = this.zoomData || {};\n this.zoomData.stopLive = true;\n if (this.updateInterval) {\n console.log('Clear interval');\n clearInterval(this.updateInterval);\n this.updateInterval = null;\n }\n } else {\n // options = {start, end}\n const stopLive = this.zoomData?.stopLive;\n if (stopLive) {\n delete this.zoomData.stopLive;\n }\n if (!this.zoomData || JSON.stringify(this.zoomData) !== JSON.stringify(options)) {\n this.zoomData = options;\n if (stopLive) {\n this.zoomData.stopLive = true;\n }\n this.readOnZoomTimeout && clearTimeout(this.readOnZoomTimeout);\n this.readOnZoomTimeout = setTimeout(() => {\n this.readOnZoomTimeout = null;\n void this.readData();\n }, this.updateTimeout);\n } else if (stopLive) {\n this.zoomData.stopLive = true;\n }\n }\n }\n\n destroy(): void {\n if (this.subscribed) {\n if (!this.serverSide) {\n this.subscribes.forEach(id => this.socket.unsubscribeState(id, this.onStateChange));\n }\n this.subscribes = [];\n this.subscribed = false;\n }\n if (this.readOnZoomTimeout) {\n clearTimeout(this.readOnZoomTimeout);\n this.readOnZoomTimeout = null;\n }\n if (this.presetUpdateTimeout) {\n clearTimeout(this.presetUpdateTimeout);\n this.presetUpdateTimeout = null;\n }\n if (this.presetSubscribed) {\n if (!this.serverSide) {\n void this.socket.unsubscribeObject(this.presetSubscribed, this.onPresetUpdate);\n }\n this.presetSubscribed = null;\n }\n if (this.updateInterval) {\n clearInterval(this.updateInterval);\n this.updateInterval = null;\n }\n if (!this.serverSide) {\n if (this.onHashInstalled) {\n window.removeEventListener('hashchange', this.onHashChange, false);\n this.onHashInstalled = false;\n }\n }\n }\n\n onUpdate(\n cb:\n | ((\n seriesData: BarAndLineSeries[],\n actualValues?: (number | null | boolean | string)[],\n barCategories?: number[],\n ) => void)\n | null,\n ): void {\n this.onUpdateFunc = cb;\n }\n\n onReading(cb: ((isReading: boolean) => void) | null): void {\n this.onReadingFunc = cb;\n }\n\n onError(cb: ((err: Error) => void) | null): void {\n this.onErrorFunc = cb;\n }\n\n getConfig(): ChartConfig {\n return this.config;\n }\n\n getSystemConfig(): ioBroker.SystemConfigCommon {\n return this.systemConfig;\n }\n\n setConfig(config: ChartConfig | ChartConfigOld): void {\n void this.analyseAndLoadConfig(config as ChartConfigOld);\n }\n\n increaseRegionForBar(start: number | Date, end: number | Date, option: ioBroker.GetHistoryOptions): void {\n this.config.aggregateBar = parseInt(this.config.aggregateBar as unknown as string, 10) || 0;\n let endTs = typeof end === 'number' ? end : end.getTime();\n let startTs = typeof start === 'number' ? start : start.getTime();\n\n // calculate count of intervals\n if (!this.config.aggregateBar) {\n if (endTs - startTs <= 3600000 * 12) {\n // less than 12 hours => 15 minutes\n this.config.aggregateBar = 15;\n } else if (endTs - startTs >= 3600000 * 24 * 60) {\n // more than 60 days => 1 month\n this.config.aggregateBar = 43200;\n } else if (endTs - startTs > 3600000 * 24 * 3) {\n // more than 3 days => 1 day\n this.config.aggregateBar = 1440;\n } else {\n // if (endTs - startTs > 3600000 * 12) { // more than 12 hours => 60 minutes\n this.config.aggregateBar = 60;\n }\n }\n\n option = option || ({} as ioBroker.GetHistoryOptions);\n\n if (this.config.aggregateBar === 15) {\n // align start and stop to 15 minutes\n const startDate = new Date(startTs);\n startDate.setMinutes(Math.floor(startDate.getMinutes() / 15) * 15);\n if (this.config.postProcessing === 'diff') {\n startDate.setMinutes(startDate.getMinutes() - 15);\n }\n startDate.setSeconds(0);\n startDate.setMilliseconds(0);\n startTs = startDate.getTime();\n\n const endDate = new Date(endTs);\n endDate.setMinutes(Math.ceil(endDate.getMinutes() / 15) * 15);\n endDate.setSeconds(0);\n endDate.setMilliseconds(0);\n endTs = endDate.getTime();\n option.count = Math.round((endTs - startTs) / 900000);\n } else if (this.config.aggregateBar === 60) {\n // align start and stop to 1 hour\n const startDate = new Date(startTs);\n startDate.setMinutes(0);\n startDate.setSeconds(0);\n startDate.setMilliseconds(0);\n if (this.config.postProcessing === 'diff') {\n startDate.setMinutes(startDate.getMinutes() - 60);\n }\n startTs = startDate.getTime();\n\n const endDate = new Date(endTs);\n endDate.setMinutes(60);\n endDate.setSeconds(0);\n endDate.setMilliseconds(0);\n endTs = endDate.getTime();\n option.count = Math.round((endTs - startTs) / 3600000);\n } else if (this.config.aggregateBar === 1440) {\n // align start and stop to 1 day\n const startDate = new Date(startTs);\n startDate.setHours(0);\n startDate.setMinutes(0);\n startDate.setSeconds(0);\n startDate.setMilliseconds(0);\n if (this.config.postProcessing === 'diff') {\n startDate.setDate(startDate.getDate() - 1);\n }\n startTs = startDate.getTime();\n\n const endDate = new Date(endTs);\n endDate.setDate(endDate.getDate() + 1);\n endDate.setHours(0);\n endDate.setMinutes(0);\n endDate.setSeconds(0);\n endDate.setMilliseconds(0);\n endTs = endDate.getTime();\n option.count = Math.round((endTs - startTs) / 86400000);\n } else if (this.config.aggregateBar === 43200) {\n // align start and stop to 1 month\n const startDate = new Date(startTs);\n startDate.setDate(1);\n startDate.setHours(0);\n startDate.setMinutes(0);\n startDate.setSeconds(0);\n startDate.setMilliseconds(0);\n if (this.config.postProcessing === 'diff') {\n startDate.setDate(startDate.getDate() - 30);\n }\n startTs = startDate.getTime();\n\n const endDate = new Date(endTs);\n endDate.setDate(1);\n endDate.setHours(0);\n endDate.setMinutes(0);\n endDate.setMonth(endDate.getMonth() + 1);\n endDate.setSeconds(0);\n endDate.setMilliseconds(0);\n endTs = endDate.getTime();\n option.count = Math.round((endTs - startTs) / (86400000 * 30)); // todo it must be variable as every month has different count of days\n }\n\n option.start = startTs;\n option.end = endTs;\n }\n\n getStartStop(index: number, step?: number): ioBroker.GetHistoryOptions {\n let option: ioBroker.GetHistoryOptions;\n let endTs: number;\n let startTs: number;\n let _nowTs: number;\n this.config.l[index].offset = this.config.l[index].offset || 0;\n\n // check config range\n if (typeof this.config.range === 'string' && this.config.range.includes('m') && this.config.l.length > 1) {\n const monthRange = parseInt(this.config.range as string, 10) || 1;\n for (let a = 0; a < this.config.l.length; a++) {\n if (this.config.l[a].offset) {\n // Check what the month has first index\n _nowTs = ChartModel.addTime(this.now, this.config.l[a].offset);\n const minusMonth = new Date(_nowTs);\n minusMonth.setMonth(minusMonth.getMonth() - monthRange);\n this.config.range = Math.floor((_nowTs - minusMonth.getTime()) / 60000);\n break;\n }\n }\n } else if (\n typeof this.config.range === 'string' &&\n this.config.range.includes('y') &&\n this.config.l.length > 1\n ) {\n const yearRange = parseInt(this.config.range as string, 10) || 1;\n for (let a = 0; a < this.config.l.length; a++) {\n if (this.config.l[a].offset) {\n // Check what the month has first index\n _nowTs = ChartModel.addTime(this.now, this.config.l[a].offset);\n const minusYear = new Date(_nowTs);\n minusYear.setFullYear(minusYear.getFullYear() - yearRange);\n this.config.range = Math.floor((_nowTs - minusYear.getTime()) / 60000);\n break;\n }\n }\n }\n\n // todo: What about year?\n\n if (!step) {\n if (this.zoomData) {\n startTs = this.zoomData.start;\n endTs = this.zoomData.end;\n } else if (this.config.timeType === 'static') {\n let startTime: [number, number];\n let endTime: [number, number];\n if (this.config.start_time !== undefined) {\n startTime = this.config.start_time.split(':').map(Number) as [number, number];\n } else {\n startTime = [0, 0];\n }\n\n if (this.config.end_time !== undefined) {\n endTime = this.config.end_time.split(':').map(Number) as [number, number];\n } else {\n endTime = [24, 0];\n }\n\n // offset is in seconds\n const startDate = new Date(this.config.start).setHours(startTime[0], startTime[1]);\n const endDate = new Date(this.config.end).setHours(endTime[0], endTime[1]);\n\n startTs = ChartModel.addTime(startDate, this.config.l[index].offset);\n endTs = ChartModel.addTime(endDate, this.config.l[index].offset);\n } else {\n this.config.relativeEnd = this.config.relativeEnd || 'now';\n let _nowDate: Date;\n\n if (this.config.relativeEnd === 'now') {\n _nowDate = new Date(this.now);\n } else if (this.config.relativeEnd.includes('minute')) {\n const minutes = parseInt(this.config.relativeEnd, 10) || 1;\n _nowDate = new Date(this.now);\n _nowDate.setMinutes(Math.floor(_nowDate.getMinutes() / minutes) * minutes + minutes);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd.includes('hour')) {\n const hours = parseInt(this.config.relativeEnd, 10) || 1;\n _nowDate = new Date(this.now);\n _nowDate.setHours(Math.floor(_nowDate.getHours() / hours) * hours + hours);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd === 'today') {\n _nowDate = new Date(this.now);\n _nowDate.setDate(_nowDate.getDate() + 1);\n _nowDate.setHours(0);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd === 'weekUsa') {\n // const week = parseInt(config.relativeEnd, 10) || 1;\n _nowDate = new Date(this.now);\n _nowDate.setDate(_nowDate.getDate() - _nowDate.getDay() + 7);\n _nowDate.setHours(0);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd === 'weekEurope') {\n // const _week = parseInt(config.relativeEnd, 10) || 1;\n _nowDate = new Date(this.now);\n // If\n if (_nowDate.getDay() === 0) {\n _nowDate.setDate(_nowDate.getDate() + 1);\n } else {\n _nowDate.setDate(_nowDate.getDate() - _nowDate.getDay() + 8);\n }\n _nowDate.setHours(0);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd === 'week2Usa') {\n // const week = parseInt(config.relativeEnd, 10) || 1;\n _nowDate = new Date(this.now);\n _nowDate.setDate(_nowDate.getDate() - _nowDate.getDay() + 7);\n _nowDate.setDate(_nowDate.getDate() - 7);\n _nowDate.setHours(0);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd === 'week2Europe') {\n // const _week = parseInt(config.relativeEnd, 10) || 1;\n _nowDate = new Date(this.now);\n // If\n if (_nowDate.getDay() === 0) {\n _nowDate.setDate(_nowDate.getDate() + 1);\n } else {\n _nowDate.setDate(_nowDate.getDate() - _nowDate.getDay() + 8);\n }\n _nowDate.setDate(_nowDate.getDate() - 7);\n _nowDate.setHours(0);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd === 'month') {\n _nowDate = new Date(this.now);\n _nowDate.setMonth(_nowDate.getMonth() + 1);\n _nowDate.setDate(1);\n _nowDate.setHours(0);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd === 'year') {\n _nowDate = new Date(this.now);\n _nowDate.setFullYear(_nowDate.getFullYear() + 1);\n _nowDate.setMonth(0);\n _nowDate.setDate(1);\n _nowDate.setHours(0);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n }\n\n this.config.range = this.config.range || 30;\n\n endTs = ChartModel.addTime(_nowDate, this.config.l[index].offset);\n startTs = ChartModel.addTime(endTs, this.config.range, true);\n }\n\n const aggregate = this.config.l[index].aggregate || this.config.aggregate;\n if (aggregate === 'current') {\n throw new Error('Cannot use \"current\" aggregate for start/stop');\n }\n\n option = {\n start: startTs,\n end: endTs,\n ignoreNull:\n this.config.l[index].ignoreNull === undefined\n ? this.config.ignoreNull\n : this.config.l[index].ignoreNull,\n aggregate: aggregate || 'minmax',\n from: false,\n ack: false,\n q: false,\n addID: false,\n } as ioBroker.GetHistoryOptions;\n\n if (this.config.l[index].chartType === 'bar' || this.config.l[index].chartType === 'polar') {\n this.increaseRegionForBar(startTs, endTs, option);\n } else if (this.config.aggregateType === 'step') {\n option.step = this.config.aggregateSpan * 1000;\n } else if (this.config.aggregateType === 'count') {\n option.count = this.config.aggregateSpan || 300;\n }\n\n this.config.start = startTs;\n this.config.end = endTs;\n\n return option;\n }\n if (this.zoomData) {\n startTs = this.zoomData.start;\n endTs = this.zoomData.end;\n } else {\n endTs = ChartModel.addTime(this.now, this.config.l[index].offset);\n startTs = endTs - step;\n }\n\n option = {\n start: startTs,\n end: endTs,\n ignoreNull:\n this.config.l[index].ignoreNull === undefined\n ? this.config.ignoreNull\n : this.config.l[index].ignoreNull,\n aggregate:\n (this.config.l[index].aggregate as ioBroker.GetHistoryOptions['aggregate']) ||\n (this.config.aggregate as ioBroker.GetHistoryOptions['aggregate']) ||\n 'minmax',\n count: 1,\n from: false,\n ack: false,\n q: false,\n addId: false,\n };\n\n this.config.start = ChartModel.addTime(endTs, this.config.range, true);\n this.config.end = endTs;\n\n return option;\n }\n\n static postProcessing(\n series: BarSeries[],\n categories: number[],\n aggregate: ChartAggregateType,\n postProcessingMethod?: 'diff' | '',\n ): BarSeries {\n const barSeries: BarSeries = [];\n\n for (let i = 0; i < series.length; i++) {\n const interval = series[i];\n if (!interval.length) {\n barSeries[i] = null;\n } else if (interval.length === 1) {\n // sum all values\n barSeries[i] = interval[0];\n } else if (aggregate === 'average') {\n const sum = interval.reduce((a, b) => a + b, 0);\n barSeries[i] = sum / interval.length;\n } else if (aggregate === 'min') {\n let min = interval[0];\n for (let j = 1; j < interval.length; j++) {\n if (interval[j] < min) {\n min = interval[j];\n }\n }\n barSeries[i] = min;\n } else if (aggregate === 'max') {\n let max = interval[0];\n for (let j = 1; j < interval.length; j++) {\n if (interval[j] > max) {\n max = interval[j];\n }\n }\n barSeries[i] = max;\n } else if (aggregate === 'total') {\n barSeries[i] = interval.reduce((a, b) => a + b, 0);\n } else {\n barSeries[i] = interval[interval.length - 1];\n }\n }\n\n if (postProcessingMethod === 'diff') {\n for (let i = series.length - 1; i > 0; i--) {\n if (barSeries[i - 1] !== null && barSeries[i] !== null) {\n barSeries[i] -= barSeries[i - 1];\n } else {\n barSeries[i] = 0;\n }\n }\n barSeries.splice(0, 1);\n categories.splice(0, 1);\n }\n\n for (let i = 0; i < series.length; i++) {\n console.log(`${categories[i]}: ${barSeries[i]}`);\n }\n return barSeries;\n }\n\n static processOneValue(\n value: ioBroker.StateValue | undefined,\n convertFunc: ((val: number) => number) | undefined,\n yOffset: number,\n ): number | null {\n // Convert boolean values to numbers\n if (value === 'true' || value === true) {\n value = 1;\n } else if (value === 'false' || value === false) {\n value = 0;\n } else if (typeof value === 'string') {\n value = parseFloat(value as unknown as string);\n }\n\n if (convertFunc) {\n return value !== null ? convertFunc(value + yOffset) : null;\n }\n\n return value !== null ? value + yOffset : null;\n }\n\n processRawData(\n _id: string,\n line: ChartLineConfig,\n values: SeriesData[],\n option?: ioBroker.GetHistoryOptions,\n ): { seriesData?: LineSeries; barData?: BarSeries } {\n if (!option) {\n option = {\n start: values[0].ts,\n end: values[values.length - 1].ts,\n };\n\n if (line.chartType === 'bar' || line.chartType === 'polar') {\n this.increaseRegionForBar(option.start, option.end, option);\n }\n }\n\n const yOffset: number = line.yOffset || 0;\n\n const seriesData: LineSeries = [];\n // Collects for every time interval the values. Later it will be combined to number[]\n const _barSeries: number[][] = [];\n let barCategories = this.barCategories;\n\n // fill categories for bars\n if (line.chartType === 'bar') {\n if (!barCategories) {\n barCategories = [];\n this.barCategories = barCategories;\n const start = new Date(option.start);\n const end: number = typeof option.end === 'number' ? option.end : (option.end as Date).getTime();\n while (start.getTime() <= end) {\n barCategories.push(start.getTime());\n start.setMinutes(start.getMinutes() + this.config.aggregateBar);\n }\n }\n\n barCategories.forEach(() => _barSeries.push([]));\n }\n\n let convertFunc: ((val: number) => number) | undefined;\n if (line.convert?.trim()) {\n if (!this.convertFunctions[line.convert.trim()]) {\n let convert = line.convert.trim();\n if (!convert.includes('return')) {\n convert = `return ${convert}`;\n }\n try {\n this.convertFunctions[line.convert.trim()] = new Function('val', convert) as (val: number) => number;\n } catch (e) {\n console.error(`[ChartModel] Cannot parse convert function: ${e}`);\n }\n }\n convertFunc = this.convertFunctions[line.convert.trim()];\n }\n\n for (let i = 0; i < values.length; i++) {\n const value: number | null = ChartModel.processOneValue(values[i].val, convertFunc, yOffset);\n\n if (line.chartType === 'bar') {\n // find category\n for (let c = 0; c < barCategories.length; c++) {\n if (\n barCategories[c] >= values[i].ts &&\n values[i].ts < barCategories[c] + this.config.aggregateBar * 60000\n ) {\n _barSeries[c].push(value);\n break;\n }\n }\n } else if (line.chartType !== 'polar') {\n if (line.noFuture && values[i].ts > this.now) {\n // todo: interpolate value\n break;\n }\n\n const dp: EchartsOneValue = { value: [values[i].ts, value] };\n\n // If value was interpolated by backend\n if (values[i].i) {\n dp.exact = false;\n }\n seriesData.push(dp);\n }\n }\n\n // add start and end\n if (line.chartType !== 'bar' && line.chartType !== 'polar') {\n let end: number = typeof option.end === 'number' ? option.end : (option.end as Date).getTime();\n const start: number = typeof option.start === 'number' ? option.start : (option.start as Date).getTime();\n // End cannot be in the future\n if (end > this.now) {\n end = this.now;\n }\n if (seriesData.length) {\n if (seriesData[0].value[0] > start) {\n seriesData.unshift({ value: [start, null], exact: false });\n }\n const last = seriesData[seriesData.length - 1];\n if (last.value[0] < end) {\n if (line.validTime) {\n // If the last value is not older than X seconds, assume it is still the same\n if (end - line.validTime * 1000 <= last.value[0]) {\n seriesData.push({ value: [end, last.value[1]], exact: false });\n } else {\n seriesData.push({ value: [end, null], exact: false });\n }\n } else {\n seriesData.push({ value: [end, null], exact: false });\n }\n }\n } else {\n seriesData.push({ value: [start, null], exact: false });\n seriesData.push({ value: [end, null], exact: false });\n }\n\n // TODO: May be not required?\n seriesData.sort((a, b) => (a.value[0] > b.value[0] ? 1 : a.value[0] < b.value[0] ? -1 : 0));\n\n // The next line is not required, as it is already done at the start\n return { seriesData };\n }\n\n // it is not the series, it is bar data\n const barData = ChartModel.postProcessing(_barSeries, barCategories, line.aggregate, line.postProcessing);\n return { barData };\n }\n\n async readOneChart(id: string, instance: string, index: number): Promise {\n const lineConfig = this.config.l[index];\n if (instance === 'json') {\n const state = await this.socket.getState(id);\n try {\n const valuesAny: SeriesData[] | { history: SeriesData[] } = JSON.parse(state?.val as string);\n let values: SeriesData[];\n if ((valuesAny as { history: SeriesData[] }).history) {\n values = (valuesAny as { history: SeriesData[] }).history;\n } else {\n values = valuesAny as SeriesData[];\n }\n if (!Array.isArray(values)) {\n values = [];\n console.warn('JSON is not an array');\n }\n\n values = values.filter(v => v);\n\n // convert alternative names to {ts, val}. Possible names for ts: t, time. Possible names for val: y, value\n if (values[0]) {\n const keys = Object.keys(values[0]);\n if (!keys.includes('val') || !keys.includes('ts')) {\n // If a format is [{t: 123, y: 1}, {t: 124, y: 2}] (e.g. from pvsolar\n if (keys.includes('y') && keys.includes('t')) {\n values = values.map(v => ({ ts: v.t, val: v.y }) as SeriesData);\n } else {\n if (keys.includes('y')) {\n values.forEach(v => (v.val = v.y));\n } else if (keys.includes('value')) {\n values.forEach(v => (v.val = v.value));\n } else if (keys.includes('data')) {\n values.forEach(v => (v.val = v.data));\n } else if (keys.includes('v')) {\n values.forEach(v => (v.val = v.v));\n }\n\n if (keys.includes('t')) {\n values.forEach(v => (v.ts = v.t));\n } else if (keys.includes('time')) {\n values.forEach(v => (v.ts = v.time));\n } else if (keys.includes('date')) {\n values.forEach(v => (v.ts = v.date));\n }\n }\n }\n\n // convert ts to number\n if (values[0].ts) {\n if (typeof values[0].ts === 'string' && window.isFinite(values[0].ts)) {\n values.forEach(v => (v.ts = parseInt(v.ts as unknown as string, 10)));\n } else if (\n typeof values[0].ts === 'string' &&\n new Date(values[0].ts).toString() !== 'Invalid Date'\n ) {\n values.forEach(v => (v.ts = new Date(v.ts).getTime()));\n }\n // no else\n if (typeof values[0].ts === 'number' && values[0].ts < 946681200000) {\n // new Date(2000,0,1).getTime() === 946681200000\n values.forEach(v => (v.ts *= 1000));\n }\n }\n }\n\n values.sort((a, b) => (a.ts - b.ts ? -1 : a.ts < b.ts ? 1 : 0));\n\n const result = this.processRawData(id, lineConfig, values);\n if (result.barData) {\n this.barData[index] = result.barData;\n } else {\n this.seriesData[index] = result.seriesData;\n }\n } catch (e) {\n console.error(`[ChartModel] Cannot parse values in JSON: ${e}`);\n }\n\n if (!this.serverSide && !this.subscribes.includes(id)) {\n this.subscribes.push(id);\n this.subscribed = true;\n void this.socket.subscribeState(id, this.onStateChange);\n }\n } else {\n const option = this.getStartStop(index);\n option.instance = instance;\n option.sessionId = this.sessionId;\n\n // console.log(JSON.stringify(option));\n if (this.debug) {\n console.log(`[ChartModel] ${new Date(option.start).toString()} - ${new Date(option.end).toString()}`);\n }\n\n if (lineConfig.aggregate !== 'current') {\n try {\n const res = await this.socket.getHistoryEx(id, option);\n if (this.sessionId && res.sessionId && res.sessionId !== this.sessionId) {\n console.warn(\n `[ChartModel] Ignore request with sessionId=${res.sessionId}, actual is ${this.sessionId}`,\n );\n return;\n }\n\n if (res?.values) {\n // option.ignoreNull = (config.l[index].ignoreNull === undefined) ? (config.ignoreNull === 'true' || config.ignoreNull === true) : (config.l[index].ignoreNull === 'true' || config.l[index].ignoreNull === true);\n const result = this.processRawData(id, lineConfig, res.values as SeriesData[], option);\n\n if (result.barData) {\n this.barData[index] = result.barData;\n } else {\n this.seriesData[index] = result.seriesData;\n }\n // free memory\n res.values = null;\n }\n } catch (err) {\n if (err === NOT_CONNECTED && this.onErrorFunc) {\n this.onErrorFunc(err);\n }\n console.error(`[ChartModel] ${err}`);\n }\n }\n\n if (\n (this.config.legActual && lineConfig.chartType !== 'bar' && lineConfig.chartType !== 'polar') ||\n lineConfig.aggregate === 'current'\n ) {\n // read current value\n try {\n const state = await this.socket.getState(id);\n this.actualValues[index] = ChartModel.processOneValue(\n state.val,\n this.convertFunctions[lineConfig.convert],\n lineConfig.yOffset || 0,\n );\n } catch (e) {\n console.warn(`Cannot read last value of \"${id}\": ${e}`);\n this.actualValues[index] = null;\n }\n\n if (!this.serverSide && !this.subscribes.includes(id)) {\n this.subscribes.push(id);\n this.subscribed = true;\n void this.socket.subscribeState(id, this.onStateChange);\n }\n }\n }\n }\n\n async readOneRawChart(id: string, instance: string, start: number, end: number): Promise {\n if (instance === 'json') {\n const state: ioBroker.State | null | undefined = await this.socket.getState(id);\n try {\n const valuesJson: SeriesData[] | { history: SeriesData[] } = JSON.parse(state?.val as string);\n let values: SeriesData[];\n if ((valuesJson as { history: SeriesData[] }).history) {\n values = (valuesJson as { history: SeriesData[] }).history;\n } else {\n values = valuesJson as SeriesData[];\n }\n\n // convert alternative names to {ts, val}. Possible names for ts: t, time. Possible names for val: y, value\n if (values[0]) {\n const keys = Object.keys(values[0]);\n if (!keys.includes('val') || !keys.includes('ts')) {\n // If format is [{t: 123, y: 1}, {t: 124, y: 2}] (e.g. from pvsolar\n if (keys.includes('y') && keys.includes('t')) {\n values = values.map(v => ({ ts: v.t, val: v.y }) as SeriesData);\n } else {\n if (keys.includes('y')) {\n values.forEach(v => (v.val = v.y));\n } else if (keys.includes('value')) {\n values.forEach(v => (v.val = v.value));\n } else if (keys.includes('data')) {\n values.forEach(v => (v.val = v.data));\n } else if (keys.includes('v')) {\n values.forEach(v => (v.val = v.v));\n }\n\n if (keys.includes('t')) {\n values.forEach(v => (v.ts = v.t));\n } else if (keys.includes('time')) {\n values.forEach(v => (v.ts = v.time));\n } else if (keys.includes('date')) {\n values.forEach(v => (v.ts = v.date));\n }\n }\n }\n\n // convert ts to number\n if (values[0].ts) {\n if (typeof values[0].ts === 'string' && window.isFinite(values[0].ts)) {\n values.forEach(v => (v.ts = parseInt(v.ts as unknown as string, 10)));\n } else if (\n typeof values[0].ts === 'string' &&\n new Date(values[0].ts).toString() !== 'Invalid Date'\n ) {\n values.forEach(v => (v.ts = new Date(v.ts).getTime()));\n }\n // no else\n if (typeof values[0].ts === 'number' && values[0].ts < 946681200000) {\n // new Date(2000,0,1).getTime() === 946681200000\n values.forEach(v => (v.ts *= 1000));\n }\n }\n }\n\n if (!Array.isArray(values)) {\n values = [];\n console.warn('JSON is not an array');\n }\n values.sort((a, b) => (a.ts - b.ts ? -1 : a.ts < b.ts ? 1 : 0));\n\n return values;\n } catch (e) {\n console.error(`[ChartModel] Cannot parse values in JSON: ${e}`);\n }\n } else {\n const option: ioBroker.GetHistoryOptions = {\n start,\n end,\n ignoreNull: false,\n aggregate: 'none',\n count: 2000,\n from: false,\n ack: false,\n q: false,\n addId: false,\n };\n\n option.instance = instance;\n option.sessionId = this.sessionId;\n\n if (this.debug) {\n console.log(`[ChartModel] ${new Date(option.start).toString()} - ${new Date(option.end).toString()}`);\n }\n\n try {\n const res = await this.socket.getHistoryEx(id, option);\n if (this.sessionId && res.sessionId && res.sessionId !== this.sessionId) {\n console.warn(\n `[ChartModel] Ignore request with sessionId=${res.sessionId}, actual is ${this.sessionId}`,\n );\n return null;\n }\n\n return res?.values;\n } catch (err) {\n err === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(err);\n err && console.error(`[ChartModel] ${err}`);\n }\n }\n\n return null;\n }\n\n _readObject(id: string): Promise {\n if (!(this.objectPromises[id] instanceof Promise)) {\n this.objectPromises[id] = (this.socket.getObject(id) as Promise).catch(\n (e: unknown): null => {\n if ((e as Error).toString().includes(NOT_CONNECTED) && this.onErrorFunc) {\n this.onErrorFunc(e as Error);\n }\n console.error(`Cannot read \"${id}\": ${(e as Error).toString()}`);\n return null;\n },\n );\n }\n\n return this.objectPromises[id];\n }\n\n async _readOneLine(index: number): Promise {\n const lineConfig = this.config.l[index];\n try {\n const obj = await this._readObject(lineConfig.id);\n\n if (obj?.common) {\n const name: ioBroker.StringOrTranslated = lineConfig.name || obj.common.name;\n\n lineConfig.name =\n name && typeof name === 'object'\n ? name[this.systemConfig.language] || name.en || lineConfig.id\n : (name as string) || '';\n\n lineConfig.unit = lineConfig.unit || (obj.common.unit ? obj.common.unit.replace('�', '°') : '');\n\n lineConfig.type = obj.common.type;\n\n if (lineConfig.chartType === 'auto') {\n lineConfig.chartType = obj.common.type === 'boolean' ? 'steps' : 'line';\n lineConfig.aggregate = obj.common.type === 'boolean' ? 'none' : 'minmax';\n }\n\n // ignore unit if true/false text set\n if (lineConfig.unit && (lineConfig.falseText || lineConfig.trueText)) {\n delete lineConfig.unit;\n }\n\n // remember enum states\n if (\n obj.common.states &&\n !Array.isArray(obj.common.states) &&\n lineConfig.states !== false &&\n !obj.common.unit\n ) {\n if (lineConfig.states) {\n lineConfig.states = Object.assign(obj.common.states, lineConfig.states);\n } else {\n lineConfig.states = obj.common.states;\n }\n\n // if the states have true, false as text => convert it to 1, 0\n if (Object.keys(lineConfig.states).find(key => key === 'true' || key === 'false')) {\n const states: Record = {};\n Object.keys(lineConfig.states).forEach(key => {\n states[key === 'true' ? 1 : key === 'false' ? 0 : key] = (\n lineConfig.states as Record\n )[key];\n });\n lineConfig.states = states;\n }\n\n // ignore unit for enums text set\n if (lineConfig.unit && lineConfig.states) {\n delete lineConfig.unit;\n }\n }\n\n // set YAxis to 'off' if commonYAxis is set\n if (lineConfig.commonYAxis || lineConfig.commonYAxis === 0) {\n lineConfig.yaxe = 'off';\n }\n }\n } catch (e) {\n e === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(e);\n console.error(`[ChartModel] Cannot read object ${lineConfig.id}: ${e}`);\n }\n\n lineConfig.name = lineConfig.name || lineConfig.id || '';\n lineConfig.unit = lineConfig.unit || '';\n if (lineConfig.chartType === 'auto') {\n lineConfig.chartType = 'line';\n lineConfig.aggregate = 'minmax';\n }\n\n await this.readOneChart(lineConfig.id, lineConfig.instance || this.defaultHistory, index);\n }\n\n async _readData(): Promise {\n for (let j = 0; j < this.config.l.length; j++) {\n if (this.config.l[j]) {\n this.seriesData.push([]);\n }\n if (this.config.l[j]?.id) {\n await this._readOneLine(j);\n }\n }\n }\n\n async readTicks(): Promise {\n if (this.config.ticks) {\n const index = 0;\n const option: ioBroker.GetHistoryOptions = JSON.parse(JSON.stringify(this.getStartStop(index)));\n option.instance = this.config.l[index].instance || this.defaultHistory;\n option.sessionId = this.sessionId;\n option.aggregate = 'none';\n\n if (this.debug) {\n console.log(\n `[ChartModel] Ticks: ${new Date(option.start).toString()} - ${new Date(option.end).toString()}`,\n );\n }\n\n try {\n const res = await this.socket.getHistoryEx(this.config.ticks, option);\n if (this.sessionId && res.sessionId && res.sessionId !== this.sessionId) {\n console.warn(\n `[ChartModel] Ignore request with sessionId=${res.sessionId}, actual is ${this.sessionId}`,\n );\n return;\n }\n\n const _series: EchartsAnyValue[] = this.ticks || [];\n if (res?.values) {\n if (this.ticks?.length) {\n this.ticks.splice(0, this.ticks.length);\n }\n\n const values = res.values;\n\n for (let i = 0; i < values.length; i++) {\n if (values[i].val !== null) {\n _series.push({ value: [values[i].ts, values[i].val] });\n }\n }\n\n // add start and end\n if (_series.length) {\n if (_series[0].value[0] > option.start) {\n _series.unshift({ value: [option.start, ''] });\n }\n if (_series[_series.length - 1].value[0] < option.end) {\n _series.push({ value: [option.end, ''] });\n }\n } else {\n _series.push({ value: [option.start, ''] });\n _series.push({ value: [option.end, ''] });\n }\n // free memory\n res.values = null;\n }\n\n this.ticks = _series;\n } catch (e) {\n e === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(e);\n console.error(`[ChartModel] ${e}`);\n }\n }\n }\n\n /*\n readValue(id, index, cb) {\n this.socket.getState(id)\n .then(state => {\n if (state) {\n cb(index, parseFloat(state.val) || 0);\n } else {\n cb(index, 0);\n }\n })\n .catch(e => {\n e === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(e);\n console.error(`[ChartModel] ${e}`);\n cb(index, 0);\n });\n }\n */\n\n async readMarkings(): Promise {\n if (!this.config.marks) {\n return;\n }\n // read markings\n for (let m = 0; m < this.config.marks.length; m++) {\n const mark = this.config.marks[m];\n // process upper ID\n if (\n mark.upperValueOrId &&\n typeof mark.upperValueOrId === 'string' &&\n mark.upperValueOrId.toString().includes('.') &&\n parseFloat(mark.upperValueOrId).toString() !== mark.upperValueOrId.toString().replace(/\\.0*$/, '')\n ) {\n /* if (!this.subscribes.includes(mark.upperValueOrId)) {\n this.subscribes.push(mark.upperValueOrId);\n } */\n try {\n const state = await this.socket.getState(mark.upperValueOrId);\n if (state && state.val !== undefined && state.val !== null) {\n mark.upperValue = parseFloat(state.val as string) || 0;\n } else {\n mark.upperValue = null;\n }\n } catch (e) {\n e === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(e);\n console.error(`Cannot read marking ${mark.upperValueOrId}: ${e}`);\n }\n }\n\n // process lower ID\n if (\n mark.lowerValueOrId &&\n typeof mark.lowerValueOrId === 'string' &&\n mark.lowerValueOrId.includes('.') &&\n parseFloat(mark.lowerValueOrId).toString() !== mark.lowerValueOrId.replace(/\\.0*$/, '')\n ) {\n /* if (!this.subscribes.includes(mark.upperValueOrId)) {\n this.subscribes.push(mark.upperValueOrId);\n } */\n try {\n const state = await this.socket.getState(mark.lowerValueOrId);\n if (state && state.val !== undefined && state.val !== null) {\n mark.lowerValue = parseFloat(state.val as string) || 0;\n } else {\n mark.lowerValue = null;\n }\n } catch (e) {\n e === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(e);\n console.error(`Cannot read marking ${mark.lowerValueOrId}: ${e}`);\n }\n }\n }\n }\n\n async subscribeAll(subscribes?: string[]): Promise {\n if (!this.serverSide && subscribes?.length) {\n for (let s = 0; s < subscribes.length; s++) {\n try {\n await this.socket.subscribeState(subscribes[s], this.onStateChange);\n } catch (e) {\n e === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(e);\n console.error(`Cannot subscribe ${subscribes[s]}: ${e}`);\n }\n }\n }\n }\n\n updateData(): void {\n // combine seriesData and barData\n const updateData: BarAndLineSeries[] = [];\n this.config.l.forEach((line, index) => {\n if (line.chartType === 'bar') {\n updateData[index] = this.barData[index];\n } else {\n updateData[index] = this.seriesData[index];\n }\n });\n\n this.onUpdateFunc(updateData, this.actualValues, this.barCategories);\n }\n\n onStateChange = (id: string, state: ioBroker.State | null | undefined): void => {\n if (!id || !state || this.reading) {\n return;\n }\n\n if (this.debug) {\n console.log(`State update ${id} - ${state.val}`);\n }\n\n let changed = false;\n for (let index = 0; index < this.config.l.length; index++) {\n if (this.config.l[index].id === id) {\n // by update from json => update always all values\n if (this.config.l[index].instance === 'json') {\n try {\n const dataJson: SeriesData[] | { history: SeriesData[] } = JSON.parse(state?.val as string);\n let data: SeriesData[];\n if ((dataJson as { history: SeriesData[] }).history) {\n data = (dataJson as { history: SeriesData[] }).history;\n } else {\n data = dataJson as SeriesData[];\n }\n\n if (!Array.isArray(data)) {\n data = [];\n console.warn('JSON is not an array');\n }\n data.sort((a, b) => (a.ts - b.ts ? -1 : a.ts < b.ts ? 1 : 0));\n const result = this.processRawData(id, this.config.l[index], data);\n\n if (result.barData) {\n this.barData[index] = result.barData;\n } else {\n this.seriesData[index] = result.seriesData;\n }\n\n // take last value as actual value\n if (this.actualValues) {\n this.actualValues[index] = data[data.length - 1].val;\n }\n\n this.updateData();\n } catch (e) {\n console.error(`Cannot parse JSON: ${e}`);\n }\n\n return;\n }\n\n const value = ChartModel.processOneValue(\n state.val,\n this.convertFunctions[this.config.l[index].convert],\n this.config.l[index].yOffset || 0,\n );\n\n if (this.actualValues && this.actualValues[index] !== value) {\n this.actualValues[index] = value;\n changed = true;\n }\n break;\n }\n }\n changed && this.onUpdateFunc(null, this.actualValues);\n };\n\n static addTime(time: number | Date, offset: string | number, isOffsetInMinutes?: boolean): number {\n const date: Date = new Date(time);\n\n if (typeof offset === 'string') {\n if (offset[1] === 'm' || offset[2] === 'm') {\n offset = parseInt(offset, 10);\n date.setMonth(date.getMonth() - offset);\n time = date.getTime();\n } else if (offset[1] === 'y' || offset[2] === 'y') {\n offset = parseInt(offset, 10);\n date.setFullYear(date.getFullYear() - offset);\n time = date.getTime();\n } else {\n time = date.getTime();\n if (isOffsetInMinutes) {\n time -= (parseInt(offset, 10) || 0) * 60000;\n } else {\n time -= (parseInt(offset, 10) || 0) * 1000;\n }\n }\n } else {\n offset = offset || 0;\n time = date.getTime();\n if (isOffsetInMinutes) {\n time -= offset * 60000;\n } else {\n time -= offset * 1000;\n }\n }\n return time;\n }\n\n async exportData(from: number, to: number, excludes?: string[]): Promise<{ [objectId: string]: SeriesData[] }> {\n // read all raw data\n const result: { [objectId: string]: SeriesData[] } = {};\n for (let i = 0; i < this.config.l.length; i++) {\n if (excludes?.includes(this.config.l[i].id) || !this.config.l[i] || !this.config.l[i].id) {\n continue;\n }\n let data = await this.readOneRawChart(\n this.config.l[i].id,\n this.config.l[i].instance || this.defaultHistory,\n from,\n to,\n );\n let _from = data?.length ? data[data.length - 1].ts + 1 : 0;\n let values = data;\n while (values?.length === 2000) {\n values = await this.readOneRawChart(\n this.config.l[i].id,\n this.config.l[i].instance || this.defaultHistory,\n _from,\n to,\n );\n _from = values && values.length ? values[values.length - 1].ts + 1 : 0;\n data = data.concat(values);\n }\n if (values) {\n result[this.config.l[i].id] = values;\n }\n }\n\n return result;\n }\n\n async readData(): Promise {\n if (this.readOnZoomTimeout) {\n clearTimeout(this.readOnZoomTimeout);\n this.readOnZoomTimeout = null;\n }\n\n this.now = Date.now();\n console.log(`Read till ${new Date(this.now).toString()}`);\n this.sessionId = this.sessionId || 0;\n this.sessionId++;\n if (this.sessionId > 0xffffff) {\n this.sessionId = 1;\n }\n\n if (this.config.l) {\n this.reading = true;\n this.onReadingFunc && this.onReadingFunc(true);\n\n // todo\n // if (config.renderer === 'pie' || (config.renderer === 'bar' && config._ids.length > 1)) {\n //\n // seriesData = [[]];\n // for (const j = 0; j < config._ids.length; j++) {\n // readOneValue(config._ids[j], j, function (_id, _index, value) {\n // if (config.renderer === 'pie') {\n // seriesData[0][_index] = {label: config.l[_index].name, data: value};\n // } else {\n // seriesData[0][_index] = [config.l[_index].name, value];\n // }\n // if (_index === config._ids.length - 1) {\n // graphCreate(divId, );\n // }\n // });\n // }\n // } else {\n this.seriesData = [];\n this.barData = [];\n this.barCategories = null;\n\n await this._readData();\n // use units from common axis\n for (let i = 0; i < this.config.l.length; i++) {\n if (this.config.l[i].commonYAxis || this.config.l[i].commonYAxis === 0) {\n this.config.l[i].unit = this.config.l[this.config.l[i].commonYAxis].unit;\n }\n }\n\n await this.readTicks();\n await this.readMarkings();\n /* if (!this.subscribed) {\n this.subscribed = true;\n await this.subscribeAll(this.subscribes));\n } */\n this.reading = false;\n\n this.updateData();\n } else {\n this.onErrorFunc && this.onErrorFunc(new Error('No config provided'));\n this.onReadingFunc && this.onReadingFunc(false);\n this.reading = false;\n }\n }\n}\n\nexport default ChartModel;\n"]} \ No newline at end of file +{"version":3,"file":"ChartModel.js","sourceRoot":"","sources":["../../src/lib/ChartModel.ts"],"names":[],"mappings":";;AA6NA;;;GAGG;AACH,SAAS,UAAU,CAAC,KAAa;IAC7B,KAAK,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACpD,MAAM,MAAM,GAA8C,EAAE,CAAC;IAC7D,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QAC5B,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QACnB,IAAI,IAAI,EAAE,CAAC;YACP,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC9B,MAAM,IAAI,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YACjD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACnB,MAAM,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC5C,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,MAAM,EAAE,CAAC;oBAC1B,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;gBACxB,CAAC;qBAAM,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,OAAO,EAAE,CAAC;oBAClC,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;gBACzB,CAAC;qBAAM,CAAC;oBACJ,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAsB,CAAC,CAAC;oBACxD,IAAI,CAAC,CAAC,QAAQ,EAAE,KAAK,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;wBAChC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBACrB,CAAC;gBACL,CAAC;YACL,CAAC;iBAAM,CAAC;gBACJ,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;YACxB,CAAC;QACL,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,4EAA4E;AAC5E,SAAS,eAAe,CAAC,MAAsB;IAC3C,MAAM,SAAS,GAAgB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IAElE,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACf,SAAS,CAAC,CAAC,GAAG,MAAM,CAAC,KAA0B,CAAC;QAChD,wCAAwC;QACxC,OAAO,SAAS,CAAC,KAAK,CAAC;IAC3B,CAAC;IAED,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;QACd,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtD,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/D,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5D,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5D,SAAS,CAAC,CAAC,GAAG,EAAE,CAAC;QACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAClC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;gBACb,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;gBACV,MAAM,EAAE,CAAC;gBACT,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,SAAS;gBAC3B,SAAS,EAAE,MAAM;gBACjB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM;gBAC1B,SAAS,EAAE,MAAM,CAAC,WAAW,IAAI,CAAC;gBAClC,UAAU,EAAE,MAAM,CAAC,WAAW,IAAI,CAAC;gBACnC,GAAG,EAAE,MAAM,CAAC,GAAG,IAAI,SAAS;gBAC5B,GAAG,EAAE,MAAM,CAAC,GAAG,IAAI,SAAS;gBAC5B,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,SAAS;aAC9B,CAAC,CAAC;QACP,CAAC;QACD,SAAS,CAAC,aAAa,GAAG,MAAM,CAAC;QACjC,SAAS,CAAC,aAAa,GAAG,GAAG,CAAC;QAC9B,SAAS,CAAC,WAAW,GAAG,KAAK,CAAC;IAClC,CAAC;IAED,uCAAuC;IACvC,IAAI,MAAM,CAAC,CAAC,EAAE,CAAC;QACX,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACvC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;gBAClB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;gBACxC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;YAC3B,CAAC;YACD,IAAI,MAAM,CAAC,QAAQ,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;gBAC3C,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;YAC3C,CAAC;YACD,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAA4B,CAAC,IAAI,CAAC,CAAC;YAChF,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAA2B,CAAC,IAAI,CAAC,CAAC;YAC9E,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAA8B,CAAC,IAAI,CAAC,CAAC;YACpF,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC;QAChF,CAAC;IACL,CAAC;IAED,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IAE1B,gBAAgB;IAChB,IAAI,MAAM,CAAC,CAAC,EAAE,CAAC;QACX,SAAS,CAAC,KAAK,GAAG,EAAE,CAAC;QACrB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACvC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG;gBACjB,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACrB,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC7B,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;gBAC9B,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACpB,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAW,CAAC;gBACzC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACjB,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACjB,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACnB,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC3B,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;gBAC1B,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;gBACzB,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;aAC3B,CAAC;QACN,CAAC;QACD,wCAAwC;QACxC,OAAO,SAAS,CAAC,CAAC,CAAC;IACvB,CAAC;IAED,SAAS,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,IAAI,EAAE,CAAC;IAExC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;QAC1B,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IACxC,CAAC;IAED,qBAAqB;IACrB,SAAS,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC;IACzC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC;IAC3C,2DAA2D;IAC3D,IAAI,UAAU,CAAC,SAAS,CAAC,KAAe,CAAC,CAAC,QAAQ,EAAE,KAAK,SAAS,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;QACzF,SAAS,CAAC,KAAK,IAAI,IAAI,CAAC;IAC5B,CAAC;IACD,IAAI,UAAU,CAAC,SAAS,CAAC,MAAgB,CAAC,CAAC,QAAQ,EAAE,KAAK,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;QAC3F,SAAS,CAAC,MAAM,IAAI,IAAI,CAAC;IAC7B,CAAC;IAED,SAAS,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;IAC/C,SAAS,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,KAAK,MAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,CAAC;IAC5E,SAAS,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,KAAK,MAAM,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC;IAChE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI,CAAC;IACtE,SAAS,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,KAAK,MAAM,IAAI,MAAM,CAAC,UAAU,KAAK,IAAI,CAAC;IAClF,SAAS,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,KAAK,MAAM,IAAI,MAAM,CAAC,UAAU,KAAK,IAAI,CAAC;IAClF,SAAS,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,KAAK,MAAM,IAAI,MAAM,CAAC,WAAW,KAAK,IAAI,CAAC;IACrF,SAAS,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,KAAK,MAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,CAAC;IAC5E,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI,CAAC;IACtE,SAAS,CAAC,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,SAAmB,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;IACpE,SAAS,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAoB,EAAE,EAAE,CAAC,CAAC;IACvG,SAAS,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,UAAU,CAAC;IACnD,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;QACrB,IAAI,OAAO,MAAM,CAAC,WAAW,KAAK,QAAQ,IAAI,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC7E,SAAS,CAAC,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;YAC1G,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC;QACtC,CAAC;aAAM,IAAI,OAAO,MAAM,CAAC,WAAW,KAAK,QAAQ,IAAI,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACpF,SAAS,CAAC,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;YAC1G,SAAS,CAAC,eAAe,GAAG,IAAI,CAAC;QACrC,CAAC;aAAM,CAAC;YACJ,SAAS,CAAC,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,WAAqB,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;QAC5E,CAAC;IACL,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC;AAED,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAE1C,MAAM,UAAU;IACK,MAAM,CAAa;IACnB,aAAa,CAAS;IACtB,UAAU,CAAU;IACrC,kBAAkB;IACV,UAAU,GAAiB,EAAE,CAAC;IACtC,0BAA0B;IAClB,OAAO,GAAgB,EAAE,CAAC;IAClC,sEAAsE;IACrD,YAAY,GAAyC,EAAE,CAAC;IACjE,KAAK,GAAsB,IAAI,CAAC;IAChC,OAAO,GAAY,KAAK,CAAC;IACzB,UAAU,GAAa,EAAE,CAAC;IAC1B,SAAS,GAAW,CAAC,CAAC;IAC9B,0BAA0B;IAClB,cAAc,GAA0C,IAAI,CAAC;IAC7D,mBAAmB,GAAyC,IAAI,CAAC;IACjE,iBAAiB,GAAyC,IAAI,CAAC;IAC/D,UAAU,GAAY,KAAK,CAAC;IACpC,kCAAkC;IAC1B,gBAAgB,GAAW,EAAE,CAAC;IAC9B,cAAc,GAAW,EAAE,CAAC;IAC5B,YAAY,GAMP,IAAI,CAAC;IACV,aAAa,GAA0C,IAAI,CAAC;IAC5D,WAAW,GAAoC,IAAI,CAAC;IACpD,cAAc,GAAqE,EAAE,CAAC;IACtF,KAAK,GAAG,KAAK,CAAC;IACd,QAAQ,GAAgE,IAAI,CAAC;IAC7E,QAAQ,CAAS;IACjB,eAAe,GAAY,KAAK,CAAC;IACjC,YAAY,GAAuC,IAAI,CAAC;IACxD,MAAM,CAAU;IAChB,MAAM,CAAe;IACrB,aAAa,CAAY;IACzB,GAAG,GAAW,IAAI,CAAC,GAAG,EAAE,CAAC;IACzB,IAAI,CAGV;IAEM,gBAAgB,GAA4C,EAAE,CAAC;IAEvE,YACI,MAAkB;IAClB,0BAA0B;IAC1B,MAA+B,EAC/B,OAA6E;QAE7E,OAAO,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,CAAC;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,IAAI,GAAG,CAAC,CAAC,2DAA2D;QAC9G,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,KAAK,CAAC,CAAC,6BAA6B;QAE5E,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACnB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;YAErC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACV,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;gBAC5B,MAAM,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;YACpE,CAAC;QACL,CAAC,CAAC,eAAe;QAEjB,KAAK,IAAI,CAAC,MAAM;aACX,eAAe,EAAE;aACjB,KAAK,CAAC,CAAC,CAAU,EAAQ,EAAE;YACxB,IAAK,CAAW,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;gBACtE,IAAI,CAAC,WAAW,CAAC,CAAU,CAAC,CAAC;YACjC,CAAC;YACD,OAAO,CAAC,KAAK,CAAC,6BAA8B,CAAW,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YACtE,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC;aACD,IAAI,CAAC,CAAC,YAAyC,EAAiB,EAAE;YAC/D,IAAI,CAAC,YAAY,GAAG,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAE,EAAkC,CAAC;YACrG,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC;YACvD,OAAO,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;IACX,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,MAAgC;QACvD,IAAI,MAAM,EAAE,CAAC;YACT,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;gBAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;YACzB,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;YAC1C,CAAC;QACL,CAAC;aAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YAC1B,MAAM,KAAK,GAA8C,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,mBAAmB;YAEhH,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,CAAC,KAAK,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,KAAK,GAAG,CAAC;YAExG,IAAI,KAAK,CAAC,MAAM,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;gBACnD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;YAC/B,CAAC;iBAAM,CAAC;gBACJ,MAAM,MAAM,GAA8C,UAAU,CAChE,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAC5D,CAAC,CAAC,mBAAmB;gBACtB,IAAI,MAAM,GAAmB,EAAoB,CAAC;gBAElD,IAAI,MAAM,CAAC,IAAI,IAAI,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;oBACjD,IAAI,CAAC;wBACD,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;oBACrC,CAAC;oBAAC,MAAM,CAAC;wBACL,SAAS;oBACb,CAAC;gBACL,CAAC;gBACD,IAAI,KAAK,CAAC,IAAI,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;oBAC/C,IAAI,CAAC;wBACD,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;oBACxD,CAAC;oBAAC,MAAM,CAAC;wBACL,SAAS;oBACb,CAAC;gBACL,CAAC;gBACD,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;oBAChB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAgB,CAAC;oBACtC,IAAI,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;wBACrC,IAAI,CAAC,IAAI,GAAG;4BACR,KAAK,EAAE,MAAM,CAAC,KAA0B;4BACxC,WAAW,EAAE,MAAM,CAAC,WAA+B;yBACtD,CAAC;oBACN,CAAC;gBACL,CAAC;qBAAM,CAAC;oBACJ,sBAAsB;oBACtB,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;wBAChC,MAAM,CAAC,QAAQ;4BACX,MAAM,CAAC,QAAQ,KAAK,IAAI;gCACxB,MAAM,CAAC,QAAQ,KAAK,MAAM;gCAC1B,MAAM,CAAC,QAAQ,KAAK,CAAC;gCACrB,MAAM,CAAC,QAAQ,KAAK,GAAG,CAAC;oBAChC,CAAC;oBACD,IAAI,KAAK,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;wBAC/B,MAAM,CAAC,QAAQ;4BACX,KAAK,CAAC,QAAQ,KAAK,IAAI;gCACvB,KAAK,CAAC,QAAQ,KAAK,MAAM;gCACzB,KAAK,CAAC,QAAQ,KAAK,CAAC;gCACpB,KAAK,CAAC,QAAQ,KAAK,GAAG,CAAC;oBAC/B,CAAC;oBACD,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;oBACtC,4BAA4B;gBAChC,CAAC;YACL,CAAC;QACL,CAAC;QAED,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAE1B,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YACtB,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YACnC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC/B,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,IACI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBACzE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAC5B,CAAC;gBACC,IAAI,CAAC,MAAM,GAAG,aAAa,IAAI,CAAC,MAAM,EAAE,CAAC;YAC7C,CAAC;YAED,IAAI,CAAC;gBACD,MAAM,GAAG,GAA4C,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAG/E,CAAC;gBAChB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,IAAI,GAAG,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;oBAC7C,OAAO,CAAC,KAAK,CAAC,+BAA+B,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;oBACpF,OAAO;gBACX,CAAC;gBACD,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAC/C,IAAI,CAAC,MAAM,CAAC,QAAQ;oBAChB,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;gBAC/F,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;gBAC9C,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAyB,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;gBAC5E,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;gBAC/B,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC;gBAEnC,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;oBACnB,IACI,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,KAAK,QAAQ;wBACnC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;wBAC9B,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAChC,CAAC;wBACC,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;oBACtD,CAAC;yBAAM,CAAC;wBACJ,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;oBACxC,CAAC;gBACL,CAAC;gBACD,IAAI,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC;oBACzB,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;gBACpD,CAAC;gBAED,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAEtB,8BAA8B;gBAC9B,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,gBAAgB,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC;oBAC5D,IAAI,CAAC,gBAAgB;wBACjB,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;oBACtF,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC;oBACpC,MAAM,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;gBACxE,CAAC;gBACD,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC;oBACnE,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;gBACtF,CAAC;YACL,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,CAAC,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;gBAC/D,OAAO,CAAC,KAAK,CAAC,gBAAgB,IAAI,CAAC,MAAM,MAAM,CAAC,EAAE,CAAC,CAAC;YACxD,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,MAAM,CAAC,QAAQ;gBAChB,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS;oBAC9B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,KAAK,IAAI;oBACzC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,IAAI,CAAC;YACxC,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;YAC9C,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAyB,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;YAC5E,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YAC/B,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;YACtB,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC;gBACnE,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;YACtF,CAAC;QACL,CAAC;IACL,CAAC;IAED,YAAY,GAAG,GAAS,EAAE;QACtB,IAAI,IAAI,CAAC,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACzC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;YACrC,KAAK,IAAI,CAAC,oBAAoB,EAAE,CAAC;QACrC,CAAC;IACL,CAAC,CAAC;IAEF,cAAc,GAAG,CAAC,EAAU,EAAE,GAAuC,EAAQ,EAAE;QAC3E,IAAI,EAAE,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC;YACrB,OAAO;QACX,CAAC;QACD,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC3B,YAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAC3C,CAAC;QACD,IAAI,CAAC,mBAAmB,GAAG,UAAU,CAAC,GAAG,EAAE;YACvC,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC;YAChC,IAAI,SAAS,CAAC;YACd,IAAI,GAAG,EAAE,CAAC;gBACN,SAAS,GAAG,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACjD,CAAC;iBAAM,CAAC;gBACJ,SAAS,GAAG,eAAe,CAAC,EAAoB,CAAC,CAAC;YACtD,CAAC;YACD,IAAI,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC5D,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;gBACxB,IAAI,CAAC,cAAc,IAAI,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBAC1D,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;gBAE3B,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;oBAClE,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;gBACtF,CAAC;gBAED,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC;YACzB,CAAC;QACL,CAAC,EAAE,GAAG,CAAC,CAAC;IACZ,CAAC,CAAC;IAEF,WAAW,CAAC,OAA8D;QACtE,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,kBAAkB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACtG,CAAC;QAED,IAAI,CAAC,OAAO,EAAE,CAAC;YACX,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;gBACrB,IAAI,CAAC,iBAAiB,IAAI,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;gBAC/D,IAAI,CAAC,iBAAiB,GAAG,UAAU,CAAC,GAAG,EAAE;oBACrC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;oBAC9B,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;wBAClE,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;wBAC9B,IAAI,CAAC,cAAc,IAAI,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;wBAC1D,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;oBACtF,CAAC;oBACD,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACzB,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;YAC3B,CAAC;QACL,CAAC;aAAM,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;YAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC;YACpC,IAAI,CAAC,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC;YAC9B,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;gBACtB,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;gBAC9B,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBACnC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;YAC/B,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,yBAAyB;YACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC;YACzC,IAAI,QAAQ,EAAE,CAAC;gBACX,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;YAClC,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC9E,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;gBACxB,IAAI,QAAQ,EAAE,CAAC;oBACX,IAAI,CAAC,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC;gBAClC,CAAC;gBACD,IAAI,CAAC,iBAAiB,IAAI,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;gBAC/D,IAAI,CAAC,iBAAiB,GAAG,UAAU,CAAC,GAAG,EAAE;oBACrC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;oBAC9B,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACzB,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;YAC3B,CAAC;iBAAM,IAAI,QAAQ,EAAE,CAAC;gBAClB,IAAI,CAAC,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC;YAClC,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO;QACH,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YAClB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACnB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;YACxF,CAAC;YACD,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;YACrB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;QACD,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACzB,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YACrC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;QAClC,CAAC;QACD,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC3B,YAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;YACvC,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC;QACpC,CAAC;QACD,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACxB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACnB,KAAK,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;YACnF,CAAC;YACD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QACjC,CAAC;QACD,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YACtB,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YACnC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC/B,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACnB,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;gBACvB,MAAM,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;gBACnE,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;YACjC,CAAC;QACL,CAAC;IACL,CAAC;IAED,QAAQ,CACJ,EAMU;QAEV,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IAC3B,CAAC;IAED,SAAS,CAAC,EAAyC;QAC/C,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;IAC5B,CAAC;IAED,OAAO,CAAC,EAAiC;QACrC,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;IAC1B,CAAC;IAED,SAAS;QACL,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,eAAe;QACX,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED,SAAS,CAAC,MAAoC;QAC1C,KAAK,IAAI,CAAC,oBAAoB,CAAC,MAAwB,CAAC,CAAC;IAC7D,CAAC;IAED,oBAAoB,CAAC,KAAoB,EAAE,GAAkB,EAAE,MAAkC;QAC7F,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,YAAiC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;QAC5F,IAAI,KAAK,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;QAC1D,IAAI,OAAO,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;QAElE,+BAA+B;QAC/B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;YAC5B,IAAI,KAAK,GAAG,OAAO,IAAI,OAAO,GAAG,EAAE,EAAE,CAAC;gBAClC,mCAAmC;gBACnC,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,EAAE,CAAC;YAClC,CAAC;iBAAM,IAAI,KAAK,GAAG,OAAO,IAAI,OAAO,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC;gBAC9C,+BAA+B;gBAC/B,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,KAAK,CAAC;YACrC,CAAC;iBAAM,IAAI,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;gBAC5C,4BAA4B;gBAC5B,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,IAAI,CAAC;YACpC,CAAC;iBAAM,CAAC;gBACJ,4EAA4E;gBAC5E,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,EAAE,CAAC;YAClC,CAAC;QACL,CAAC;QAED,MAAM,GAAG,MAAM,IAAK,EAAiC,CAAC;QAEtD,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,KAAK,EAAE,EAAE,CAAC;YAClC,qCAAqC;YACrC,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;YACpC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC;YACnE,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,KAAK,MAAM,EAAE,CAAC;gBACxC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;YACtD,CAAC;YACD,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACxB,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC7B,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;YAE9B,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;YAChC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC;YAC9D,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACtB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC3B,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;YAC1B,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC;QAC1D,CAAC;aAAM,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,KAAK,EAAE,EAAE,CAAC;YACzC,iCAAiC;YACjC,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;YACpC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACxB,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACxB,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC7B,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,KAAK,MAAM,EAAE,CAAC;gBACxC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;YACtD,CAAC;YACD,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;YAE9B,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;YAChC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;YACvB,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACtB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC3B,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;YAC1B,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC;QAC3D,CAAC;aAAM,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,KAAK,IAAI,EAAE,CAAC;YAC3C,gCAAgC;YAChC,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;YACpC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACtB,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACxB,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACxB,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC7B,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,KAAK,MAAM,EAAE,CAAC;gBACxC,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;YAC/C,CAAC;YACD,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;YAE9B,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;YAChC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;YACvC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACpB,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACtB,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACtB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC3B,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;YAC1B,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,QAAQ,CAAC,CAAC;QAC5D,CAAC;aAAM,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,KAAK,KAAK,EAAE,CAAC;YAC5C,kCAAkC;YAClC,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;YACpC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACrB,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACtB,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACxB,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACxB,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC7B,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,KAAK,MAAM,EAAE,CAAC;gBACxC,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;YAChD,CAAC;YACD,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;YAE9B,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;YAChC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACnB,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACpB,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACtB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC;YACzC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACtB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC3B,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;YAC1B,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,sEAAsE;QAC1I,CAAC;QAED,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC;QACvB,MAAM,CAAC,GAAG,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,YAAY,CAAC,KAAa,EAAE,IAAa;QACrC,IAAI,MAAkC,CAAC;QACvC,IAAI,KAAa,CAAC;QAClB,IAAI,OAAe,CAAC;QACpB,IAAI,MAAc,CAAC;QACnB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC;QAE/D,qBAAqB;QACrB,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACvG,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAe,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;YAClE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;oBAC1B,uCAAuC;oBACvC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;oBAC/D,MAAM,UAAU,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;oBACpC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,EAAE,GAAG,UAAU,CAAC,CAAC;oBACxD,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC;oBACxE,MAAM;gBACV,CAAC;YACL,CAAC;QACL,CAAC;aAAM,IACH,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YACrC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;YAC/B,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,EAC1B,CAAC;YACC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAe,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;YACjE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;oBAC1B,uCAAuC;oBACvC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;oBAC/D,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;oBACnC,SAAS,CAAC,WAAW,CAAC,SAAS,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC;oBAC3D,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC;oBACvE,MAAM;gBACV,CAAC;YACL,CAAC;QACL,CAAC;QAED,yBAAyB;QAEzB,IAAI,CAAC,IAAI,EAAE,CAAC;YACR,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAChB,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAC9B,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;YAC9B,CAAC;iBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,QAAQ,EAAE,CAAC;gBAC3C,IAAI,SAA2B,CAAC;gBAChC,IAAI,OAAyB,CAAC;gBAC9B,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;oBACvC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAqB,CAAC;gBAClF,CAAC;qBAAM,CAAC;oBACJ,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACvB,CAAC;gBAED,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;oBACrC,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAqB,CAAC;gBAC9E,CAAC;qBAAM,CAAC;oBACJ,OAAO,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;gBACtB,CAAC;gBAED,uBAAuB;gBACvB,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;gBACnF,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;gBAE3E,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;gBACrE,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;YACrE,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,IAAI,KAAK,CAAC;gBAC3D,IAAI,QAAc,CAAC;gBAEnB,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,KAAK,EAAE,CAAC;oBACpC,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBAClC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;oBACpD,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;oBAC3D,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,EAAE,GAAG,OAAO,CAAC,GAAG,OAAO,GAAG,OAAO,CAAC,CAAC;oBACrF,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;oBAClD,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;oBACzD,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC,CAAC;oBAC3E,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,OAAO,EAAE,CAAC;oBAC7C,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;oBACzC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;oBAC/C,sDAAsD;oBACtD,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;oBAC7D,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,YAAY,EAAE,CAAC;oBAClD,uDAAuD;oBACvD,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,KAAK;oBACL,IAAI,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC;wBAC1B,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;oBAC7C,CAAC;yBAAM,CAAC;wBACJ,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;oBACjE,CAAC;oBACD,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,UAAU,EAAE,CAAC;oBAChD,sDAAsD;oBACtD,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;oBAC7D,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;oBACzC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,aAAa,EAAE,CAAC;oBACnD,uDAAuD;oBACvD,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,KAAK;oBACL,IAAI,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC;wBAC1B,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;oBAC7C,CAAC;yBAAM,CAAC;wBACJ,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;oBACjE,CAAC;oBACD,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;oBACzC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,OAAO,EAAE,CAAC;oBAC7C,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC;oBAC3C,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;oBACpB,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;qBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,KAAK,MAAM,EAAE,CAAC;oBAC5C,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAC9B,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC;oBACjD,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;oBACpB,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACrB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChC,CAAC;gBAED,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;gBAE5C,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;gBAClE,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YACjE,CAAC;YAED,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;YAC1E,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;gBAC1B,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;YACrE,CAAC;YAED,MAAM,GAAG;gBACL,KAAK,EAAE,OAAO;gBACd,GAAG,EAAE,KAAK;gBACV,UAAU,EACN,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,KAAK,SAAS;oBACzC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU;oBACxB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU;gBACzC,SAAS,EAAE,SAAS,IAAI,QAAQ;gBAChC,IAAI,EAAE,KAAK;gBACX,GAAG,EAAE,KAAK;gBACV,CAAC,EAAE,KAAK;gBACR,KAAK,EAAE,KAAK;aACe,CAAC;YAEhC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,KAAK,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,KAAK,OAAO,EAAE,CAAC;gBACzF,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;YACtD,CAAC;iBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,aAAa,KAAK,MAAM,EAAE,CAAC;gBAC9C,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC;YACnD,CAAC;iBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,aAAa,KAAK,OAAO,EAAE,CAAC;gBAC/C,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,IAAI,GAAG,CAAC;YACpD,CAAC;YAED,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC;YAC5B,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,KAAK,CAAC;YAExB,OAAO,MAAM,CAAC;QAClB,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAChB,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;YAC9B,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;QAC9B,CAAC;aAAM,CAAC;YACJ,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;YAClE,OAAO,GAAG,KAAK,GAAG,IAAI,CAAC;QAC3B,CAAC;QAED,MAAM,GAAG;YACL,KAAK,EAAE,OAAO;YACd,GAAG,EAAE,KAAK;YACV,UAAU,EACN,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,KAAK,SAAS;gBACzC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU;gBACxB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU;YACzC,SAAS,EACJ,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAqD;gBAC1E,IAAI,CAAC,MAAM,CAAC,SAAqD;gBAClE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,KAAK;YACX,GAAG,EAAE,KAAK;YACV,CAAC,EAAE,KAAK;YACR,KAAK,EAAE,KAAK;SACf,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACvE,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,KAAK,CAAC;QAExB,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,MAAM,CAAC,cAAc,CACjB,MAAmB,EACnB,UAAoB,EACpB,SAA6B,EAC7B,oBAAkC;QAElC,MAAM,SAAS,GAAc,EAAE,CAAC;QAEhC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACrC,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YAC3B,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;gBACnB,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;YACxB,CAAC;iBAAM,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC/B,iBAAiB;gBACjB,SAAS,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC/B,CAAC;iBAAM,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;gBACjC,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;gBAChD,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC;YACzC,CAAC;iBAAM,IAAI,SAAS,KAAK,KAAK,EAAE,CAAC;gBAC7B,IAAI,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;gBACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBACvC,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC;wBACpB,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACtB,CAAC;gBACL,CAAC;gBACD,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;YACvB,CAAC;iBAAM,IAAI,SAAS,KAAK,KAAK,EAAE,CAAC;gBAC7B,IAAI,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;gBACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBACvC,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC;wBACpB,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACtB,CAAC;gBACL,CAAC;gBACD,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;YACvB,CAAC;iBAAM,IAAI,SAAS,KAAK,OAAO,EAAE,CAAC;gBAC/B,SAAS,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;YACvD,CAAC;iBAAM,CAAC;gBACJ,SAAS,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YACjD,CAAC;QACL,CAAC;QAED,IAAI,oBAAoB,KAAK,MAAM,EAAE,CAAC;YAClC,KAAK,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;gBACzC,IAAI,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;oBACrD,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;gBACrC,CAAC;qBAAM,CAAC;oBACJ,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;gBACrB,CAAC;YACL,CAAC;YACD,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YACvB,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC5B,CAAC;QAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACrC,OAAO,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACrD,CAAC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,eAAe,CAClB,KAAsC,EACtC,WAAkD,EAClD,OAAe;QAEf,oCAAoC;QACpC,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACrC,KAAK,GAAG,CAAC,CAAC;QACd,CAAC;aAAM,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;YAC9C,KAAK,GAAG,CAAC,CAAC;QACd,CAAC;aAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YACnC,KAAK,GAAG,UAAU,CAAC,KAA0B,CAAC,CAAC;QACnD,CAAC;QAED,IAAI,WAAW,EAAE,CAAC;YACd,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAChE,CAAC;QAED,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;IACnD,CAAC;IAED,cAAc,CACV,GAAW,EACX,IAAqB,EACrB,MAAoB,EACpB,MAAmC;QAEnC,IAAI,CAAC,MAAM,EAAE,CAAC;YACV,MAAM,GAAG;gBACL,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;gBACnB,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE;aACpC,CAAC;YAEF,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,IAAI,IAAI,CAAC,SAAS,KAAK,OAAO,EAAE,CAAC;gBACzD,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;YAChE,CAAC;QACL,CAAC;QAED,MAAM,OAAO,GAAW,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;QAE1C,MAAM,UAAU,GAAe,EAAE,CAAC;QAClC,qFAAqF;QACrF,MAAM,UAAU,GAAe,EAAE,CAAC;QAClC,IAAI,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QAEvC,2BAA2B;QAC3B,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,EAAE,CAAC;YAC3B,IAAI,CAAC,aAAa,EAAE,CAAC;gBACjB,aAAa,GAAG,EAAE,CAAC;gBACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;gBACnC,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBACrC,MAAM,GAAG,GAAW,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAE,MAAM,CAAC,GAAY,CAAC,OAAO,EAAE,CAAC;gBACjG,OAAO,KAAK,CAAC,OAAO,EAAE,IAAI,GAAG,EAAE,CAAC;oBAC5B,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;oBACpC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;gBACpE,CAAC;YACL,CAAC;YAED,aAAa,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,WAAkD,CAAC;QACvD,IAAI,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC;YACvB,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;gBAC9C,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;gBAClC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;oBAC9B,OAAO,GAAG,UAAU,OAAO,EAAE,CAAC;gBAClC,CAAC;gBACD,IAAI,CAAC;oBACD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,QAAQ,CAAC,KAAK,EAAE,OAAO,CAE7D,CAAC;gBAChB,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,OAAO,CAAC,KAAK,CAAC,+CAA+C,CAAC,EAAE,CAAC,CAAC;gBACtE,CAAC;YACL,CAAC;YACD,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;QAC7D,CAAC;QAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACrC,MAAM,KAAK,GAAkB,UAAU,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;YAE7F,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,EAAE,CAAC;gBAC3B,gBAAgB;gBAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBAC5C,IACI,aAAa,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;wBAChC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,KAAK,EACpE,CAAC;wBACC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;wBAC1B,MAAM;oBACV,CAAC;gBACL,CAAC;YACL,CAAC;iBAAM,IAAI,IAAI,CAAC,SAAS,KAAK,OAAO,EAAE,CAAC;gBACpC,IAAI,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;oBAC3C,0BAA0B;oBAC1B,MAAM;gBACV,CAAC;gBAED,MAAM,EAAE,GAAoB,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC;gBAE7D,uCAAuC;gBACvC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;oBACd,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;gBACrB,CAAC;gBACD,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACxB,CAAC;QACL,CAAC;QAED,oBAAoB;QACpB,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,IAAI,IAAI,CAAC,SAAS,KAAK,OAAO,EAAE,CAAC;YACzD,IAAI,GAAG,GACH,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ;gBAC1B,CAAC,CAAC,MAAM,CAAC,GAAG;gBACZ,CAAC,CAAC,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ;oBAC9B,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE;oBAChC,CAAC,CAAE,MAAM,CAAC,GAAY,CAAC,OAAO,EAAE,CAAC;YAC3C,MAAM,KAAK,GACP,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ;gBAC5B,CAAC,CAAC,MAAM,CAAC,KAAK;gBACd,CAAC,CAAC,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ;oBAChC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE;oBAClC,CAAC,CAAE,MAAM,CAAC,KAAc,CAAC,OAAO,EAAE,CAAC;YAC7C,8BAA8B;YAC9B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;gBACjB,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;YACnB,CAAC;YACD,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;gBACpB,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC;oBACjC,UAAU,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;gBAC/D,CAAC;gBACD,MAAM,IAAI,GAAG,UAAU,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAC/C,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC;oBACtB,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;wBACjB,6EAA6E;wBAC7E,IAAI,GAAG,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;4BAC/C,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;wBACnE,CAAC;6BAAM,CAAC;4BACJ,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;wBAC1D,CAAC;oBACL,CAAC;yBAAM,CAAC;wBACJ,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;oBAC1D,CAAC;gBACL,CAAC;YACL,CAAC;iBAAM,CAAC;gBACJ,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;gBACxD,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;YAC1D,CAAC;YAED,6BAA6B;YAC7B,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAE5F,oEAAoE;YACpE,OAAO,EAAE,UAAU,EAAE,CAAC;QAC1B,CAAC;QAED,uCAAuC;QACvC,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,UAAU,EAAE,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAC1G,OAAO,EAAE,OAAO,EAAE,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,EAAU,EAAE,QAAgB,EAAE,KAAa;QAC1D,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,QAAQ,KAAK,MAAM,EAAE,CAAC;YACtB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YAC7C,IAAI,CAAC;gBACD,MAAM,SAAS,GAA6C,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,GAAa,CAAC,CAAC;gBAC7F,IAAI,MAAoB,CAAC;gBACzB,IAAK,SAAuC,CAAC,OAAO,EAAE,CAAC;oBACnD,MAAM,GAAI,SAAuC,CAAC,OAAO,CAAC;gBAC9D,CAAC;qBAAM,CAAC;oBACJ,MAAM,GAAG,SAAyB,CAAC;gBACvC,CAAC;gBACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;oBACzB,MAAM,GAAG,EAAE,CAAC;oBACZ,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;gBACzC,CAAC;gBAED,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;gBAE/B,2GAA2G;gBAC3G,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;oBACZ,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;oBACpC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;wBAChD,qEAAqE;wBACrE,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;4BAC3C,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAe,CAAC,CAAC;wBACpE,CAAC;6BAAM,CAAC;4BACJ,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gCACrB,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BACvC,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;gCAChC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;4BAC3C,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gCAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;4BAC1C,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gCAC5B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BACvC,CAAC;4BAED,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gCACrB,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BACtC,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gCAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;4BACzC,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gCAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;4BACzC,CAAC;wBACL,CAAC;oBACL,CAAC;oBAED,uBAAuB;oBACvB,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;wBACf,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;4BACpE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAuB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;wBAC1E,CAAC;6BAAM,IACH,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ;4BAChC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,cAAc,EACtD,CAAC;4BACC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;wBAC3D,CAAC;wBACD,UAAU;wBACV,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,YAAY,EAAE,CAAC;4BAClE,gDAAgD;4BAChD,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC;wBACxC,CAAC;oBACL,CAAC;gBACL,CAAC;gBAED,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAEhE,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;gBAC3D,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;oBACjB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;gBACzC,CAAC;qBAAM,CAAC;oBACJ,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC;gBAC/C,CAAC;YACL,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,OAAO,CAAC,KAAK,CAAC,6CAA6C,CAAC,EAAE,CAAC,CAAC;YACpE,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;gBACpD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACzB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;gBACvB,KAAK,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;YAC5D,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;YACxC,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAC3B,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YAElC,uCAAuC;YACvC,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;gBACb,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YAC1G,CAAC;YAED,IAAI,UAAU,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;gBACrC,IAAI,CAAC;oBACD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;oBACvD,IAAI,IAAI,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC;wBACtE,OAAO,CAAC,IAAI,CACR,8CAA8C,GAAG,CAAC,SAAS,eAAe,IAAI,CAAC,SAAS,EAAE,CAC7F,CAAC;wBACF,OAAO;oBACX,CAAC;oBAED,IAAI,GAAG,EAAE,MAAM,EAAE,CAAC;wBACd,kNAAkN;wBAClN,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,EAAE,EAAE,UAAU,EAAE,GAAG,CAAC,MAAsB,EAAE,MAAM,CAAC,CAAC;wBAEvF,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;4BACjB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;wBACzC,CAAC;6BAAM,CAAC;4BACJ,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC;wBAC/C,CAAC;wBACD,cAAc;wBACd,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC;oBACtB,CAAC;gBACL,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACX,IAAI,GAAG,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;wBAC5C,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;oBAC1B,CAAC;oBACD,OAAO,CAAC,KAAK,CAAC,gBAAgB,GAAG,EAAE,CAAC,CAAC;gBACzC,CAAC;YACL,CAAC;YAED,IACI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,UAAU,CAAC,SAAS,KAAK,KAAK,IAAI,UAAU,CAAC,SAAS,KAAK,OAAO,CAAC;gBAC7F,UAAU,CAAC,SAAS,KAAK,SAAS,EACpC,CAAC;gBACC,qBAAqB;gBACrB,IAAI,CAAC;oBACD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;oBAC7C,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,eAAe,CACjD,KAAK,CAAC,GAAG,EACT,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC,EACzC,UAAU,CAAC,OAAO,IAAI,CAAC,CAC1B,CAAC;gBACN,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;oBACxD,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;gBACpC,CAAC;gBAED,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;oBACpD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;oBACzB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;oBACvB,KAAK,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;gBAC5D,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAU,EAAE,QAAgB,EAAE,KAAa,EAAE,GAAW;QAC1E,IAAI,QAAQ,KAAK,MAAM,EAAE,CAAC;YACtB,MAAM,KAAK,GAAsC,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YAChF,IAAI,CAAC;gBACD,MAAM,UAAU,GAA6C,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,GAAa,CAAC,CAAC;gBAC9F,IAAI,MAAoB,CAAC;gBACzB,IAAK,UAAwC,CAAC,OAAO,EAAE,CAAC;oBACpD,MAAM,GAAI,UAAwC,CAAC,OAAO,CAAC;gBAC/D,CAAC;qBAAM,CAAC;oBACJ,MAAM,GAAG,UAA0B,CAAC;gBACxC,CAAC;gBAED,2GAA2G;gBAC3G,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;oBACZ,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;oBACpC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;wBAChD,mEAAmE;wBACnE,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;4BAC3C,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAe,CAAC,CAAC;wBACpE,CAAC;6BAAM,CAAC;4BACJ,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gCACrB,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BACvC,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;gCAChC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;4BAC3C,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gCAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;4BAC1C,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gCAC5B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BACvC,CAAC;4BAED,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gCACrB,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BACtC,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gCAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;4BACzC,CAAC;iCAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gCAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;4BACzC,CAAC;wBACL,CAAC;oBACL,CAAC;oBAED,uBAAuB;oBACvB,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;wBACf,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;4BACpE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAuB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;wBAC1E,CAAC;6BAAM,IACH,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ;4BAChC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,cAAc,EACtD,CAAC;4BACC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;wBAC3D,CAAC;wBACD,UAAU;wBACV,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,YAAY,EAAE,CAAC;4BAClE,gDAAgD;4BAChD,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC;wBACxC,CAAC;oBACL,CAAC;gBACL,CAAC;gBAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;oBACzB,MAAM,GAAG,EAAE,CAAC;oBACZ,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;gBACzC,CAAC;gBACD,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAEhE,OAAO,MAAM,CAAC;YAClB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,OAAO,CAAC,KAAK,CAAC,6CAA6C,CAAC,EAAE,CAAC,CAAC;YACpE,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,MAAM,MAAM,GAA+B;gBACvC,KAAK;gBACL,GAAG;gBACH,UAAU,EAAE,KAAK;gBACjB,SAAS,EAAE,MAAM;gBACjB,KAAK,EAAE,IAAI;gBACX,IAAI,EAAE,KAAK;gBACX,GAAG,EAAE,KAAK;gBACV,CAAC,EAAE,KAAK;gBACR,KAAK,EAAE,KAAK;aACf,CAAC;YAEF,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAC3B,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YAElC,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;gBACb,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YAC1G,CAAC;YAED,IAAI,CAAC;gBACD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;gBACvD,IAAI,IAAI,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC;oBACtE,OAAO,CAAC,IAAI,CACR,8CAA8C,GAAG,CAAC,SAAS,eAAe,IAAI,CAAC,SAAS,EAAE,CAC7F,CAAC;oBACF,OAAO,IAAI,CAAC;gBAChB,CAAC;gBAED,OAAO,GAAG,EAAE,MAAM,CAAC;YACvB,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,GAAG,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;gBACnE,GAAG,IAAI,OAAO,CAAC,KAAK,CAAC,gBAAgB,GAAG,EAAE,CAAC,CAAC;YAChD,CAAC;QACL,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,WAAW,CAAC,EAAU;QAClB,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,YAAY,OAAO,CAAC,EAAE,CAAC;YAChD,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,GAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAmC,CAAC,KAAK,CACxF,CAAC,CAAU,EAAQ,EAAE;gBACjB,IAAK,CAAW,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;oBACtE,IAAI,CAAC,WAAW,CAAC,CAAU,CAAC,CAAC;gBACjC,CAAC;gBACD,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,MAAO,CAAW,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;gBACjE,OAAO,IAAI,CAAC;YAChB,CAAC,CACJ,CAAC;QACN,CAAC;QAED,OAAO,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,KAAa;QAC5B,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,CAAC;YACD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;YAElD,IAAI,GAAG,EAAE,MAAM,EAAE,CAAC;gBACd,MAAM,IAAI,GAAgC,UAAU,CAAC,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;gBAE7E,UAAU,CAAC,IAAI;oBACX,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ;wBAC5B,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,EAAE,IAAI,UAAU,CAAC,EAAE;wBAC9D,CAAC,CAAE,IAAe,IAAI,EAAE,CAAC;gBAEjC,UAAU,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;gBAEhG,UAAU,CAAC,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;gBAElC,IAAI,UAAU,CAAC,SAAS,KAAK,MAAM,EAAE,CAAC;oBAClC,UAAU,CAAC,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;oBACxE,UAAU,CAAC,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC;gBAC7E,CAAC;gBAED,qCAAqC;gBACrC,IAAI,UAAU,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,IAAI,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;oBACnE,OAAO,UAAU,CAAC,IAAI,CAAC;gBAC3B,CAAC;gBAED,uBAAuB;gBACvB,IACI,GAAG,CAAC,MAAM,CAAC,MAAM;oBACjB,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC;oBACjC,UAAU,CAAC,MAAM,KAAK,KAAK;oBAC3B,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAClB,CAAC;oBACC,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;wBACpB,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;oBAC5E,CAAC;yBAAM,CAAC;wBACJ,UAAU,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC;oBAC1C,CAAC;oBAED,+DAA+D;oBAC/D,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,OAAO,CAAC,EAAE,CAAC;wBAChF,MAAM,MAAM,GAA2B,EAAE,CAAC;wBAC1C,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;4BACzC,MAAM,CAAC,GAAG,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAClD,UAAU,CAAC,MACd,CAAC,GAAG,CAAC,CAAC;wBACX,CAAC,CAAC,CAAC;wBACH,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;oBAC/B,CAAC;oBAED,iCAAiC;oBACjC,IAAI,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;wBACvC,OAAO,UAAU,CAAC,IAAI,CAAC;oBAC3B,CAAC;gBACL,CAAC;gBAED,2CAA2C;gBAC3C,IAAI,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,WAAW,KAAK,CAAC,EAAE,CAAC;oBACzD,UAAU,CAAC,IAAI,GAAG,KAAK,CAAC;gBAC5B,CAAC;YACL,CAAC;QACL,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,CAAC,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YAC/D,OAAO,CAAC,KAAK,CAAC,mCAAmC,UAAU,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;QAC5E,CAAC;QAED,UAAU,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;QACzD,UAAU,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,IAAI,EAAE,CAAC;QACxC,IAAI,UAAU,CAAC,SAAS,KAAK,MAAM,EAAE,CAAC;YAClC,UAAU,CAAC,SAAS,GAAG,MAAM,CAAC;YAC9B,UAAU,CAAC,SAAS,GAAG,QAAQ,CAAC;QACpC,CAAC;QAED,MAAM,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,QAAQ,IAAI,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IAC9F,CAAC;IAED,KAAK,CAAC,SAAS;QACX,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC5C,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBACnB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAC7B,CAAC;YACD,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC;gBACvB,MAAM,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YAC/B,CAAC;QACL,CAAC;IACL,CAAC;IAED,KAAK,CAAC,SAAS;QACX,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACpB,MAAM,KAAK,GAAG,CAAC,CAAC;YAChB,MAAM,MAAM,GAA+B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAChG,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,IAAI,IAAI,CAAC,cAAc,CAAC;YACvE,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YAClC,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC;YAE1B,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;gBACb,OAAO,CAAC,GAAG,CACP,uBAAuB,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAClG,CAAC;YACN,CAAC;YAED,IAAI,CAAC;gBACD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;gBACtE,IAAI,IAAI,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC;oBACtE,OAAO,CAAC,IAAI,CACR,8CAA8C,GAAG,CAAC,SAAS,eAAe,IAAI,CAAC,SAAS,EAAE,CAC7F,CAAC;oBACF,OAAO;gBACX,CAAC;gBAED,MAAM,OAAO,GAAsB,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;gBACpD,IAAI,GAAG,EAAE,MAAM,EAAE,CAAC;oBACd,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;wBACrB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;oBAC5C,CAAC;oBAED,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;oBAE1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;wBACrC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,EAAE,CAAC;4BACzB,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;wBAC3D,CAAC;oBACL,CAAC;oBAED,oBAAoB;oBACpB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;wBACjB,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC;4BACrC,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;wBACnD,CAAC;wBACD,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;4BACpD,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;wBAC9C,CAAC;oBACL,CAAC;yBAAM,CAAC;wBACJ,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;wBAC5C,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;oBAC9C,CAAC;oBACD,cAAc;oBACd,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC;gBACtB,CAAC;gBAED,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;YACzB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,CAAC,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;gBAC/D,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;YACvC,CAAC;QACL,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;MAgBE;IAEF,KAAK,CAAC,YAAY;QACd,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACrB,OAAO;QACX,CAAC;QACD,gBAAgB;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAChD,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAClC,mBAAmB;YACnB,IACI,IAAI,CAAC,cAAc;gBACnB,OAAO,IAAI,CAAC,cAAc,KAAK,QAAQ;gBACvC,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC;gBAC5C,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE,KAAK,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,EACpG,CAAC;gBACC;;wBAEQ;gBACR,IAAI,CAAC;oBACD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;oBAC9D,IAAI,KAAK,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS,IAAI,KAAK,CAAC,GAAG,KAAK,IAAI,EAAE,CAAC;wBACzD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,GAAa,CAAC,IAAI,CAAC,CAAC;oBAC3D,CAAC;yBAAM,CAAC;wBACJ,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;oBAC3B,CAAC;gBACL,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,CAAC,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;oBAC/D,OAAO,CAAC,KAAK,CAAC,uBAAuB,IAAI,CAAC,cAAc,KAAK,CAAC,EAAE,CAAC,CAAC;gBACtE,CAAC;YACL,CAAC;YAED,mBAAmB;YACnB,IACI,IAAI,CAAC,cAAc;gBACnB,OAAO,IAAI,CAAC,cAAc,KAAK,QAAQ;gBACvC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC;gBACjC,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE,KAAK,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,EACzF,CAAC;gBACC;;wBAEQ;gBACR,IAAI,CAAC;oBACD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;oBAC9D,IAAI,KAAK,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS,IAAI,KAAK,CAAC,GAAG,KAAK,IAAI,EAAE,CAAC;wBACzD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,GAAa,CAAC,IAAI,CAAC,CAAC;oBAC3D,CAAC;yBAAM,CAAC;wBACJ,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;oBAC3B,CAAC;gBACL,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,CAAC,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;oBAC/D,OAAO,CAAC,KAAK,CAAC,uBAAuB,IAAI,CAAC,cAAc,KAAK,CAAC,EAAE,CAAC,CAAC;gBACtE,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,UAAqB;QACpC,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,UAAU,EAAE,MAAM,EAAE,CAAC;YACzC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBACzC,IAAI,CAAC;oBACD,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;gBACxE,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,CAAC,KAAK,aAAa,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;oBAC/D,OAAO,CAAC,KAAK,CAAC,oBAAoB,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;gBAC7D,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IAED,UAAU;QACN,iCAAiC;QACjC,MAAM,UAAU,GAAuB,EAAE,CAAC;QAC1C,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YAClC,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,EAAE,CAAC;gBAC3B,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC5C,CAAC;iBAAM,CAAC;gBACJ,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAC/C,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACzE,CAAC;IAED,aAAa,GAAG,CAAC,EAAU,EAAE,KAAwC,EAAQ,EAAE;QAC3E,IAAI,CAAC,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAChC,OAAO;QACX,CAAC;QAED,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,OAAO,GAAG,KAAK,CAAC;QACpB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;YACxD,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;gBACjC,kDAAkD;gBAClD,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC;oBAC3C,IAAI,CAAC;wBACD,MAAM,QAAQ,GAA6C,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,GAAa,CAAC,CAAC;wBAC5F,IAAI,IAAkB,CAAC;wBACvB,IAAK,QAAsC,CAAC,OAAO,EAAE,CAAC;4BAClD,IAAI,GAAI,QAAsC,CAAC,OAAO,CAAC;wBAC3D,CAAC;6BAAM,CAAC;4BACJ,IAAI,GAAG,QAAwB,CAAC;wBACpC,CAAC;wBAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;4BACvB,IAAI,GAAG,EAAE,CAAC;4BACV,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;wBACzC,CAAC;wBACD,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC9D,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;wBAEnE,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;4BACjB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;wBACzC,CAAC;6BAAM,CAAC;4BACJ,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC;wBAC/C,CAAC;wBAED,kCAAkC;wBAClC,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;4BACpB,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;wBACzD,CAAC;wBAED,IAAI,CAAC,UAAU,EAAE,CAAC;oBACtB,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC;wBACT,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;oBAC7C,CAAC;oBAED,OAAO;gBACX,CAAC;gBAED,MAAM,KAAK,GAAG,UAAU,CAAC,eAAe,CACpC,KAAK,CAAC,GAAG,EACT,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,EACnD,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,IAAI,CAAC,CACpC,CAAC;gBAEF,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,KAAK,EAAE,CAAC;oBAC1D,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;oBACjC,OAAO,GAAG,IAAI,CAAC;gBACnB,CAAC;gBACD,MAAM;YACV,CAAC;QACL,CAAC;QACD,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IAC1D,CAAC,CAAC;IAEF,MAAM,CAAC,OAAO,CAAC,IAAmB,EAAE,MAAuB,EAAE,iBAA2B;QACpF,MAAM,IAAI,GAAS,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;QAElC,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC7B,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;gBACzC,MAAM,GAAG,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBAC9B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,CAAC,CAAC;gBACxC,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAC1B,CAAC;iBAAM,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;gBAChD,MAAM,GAAG,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBAC9B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,MAAM,CAAC,CAAC;gBAC9C,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAC1B,CAAC;iBAAM,CAAC;gBACJ,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBACtB,IAAI,iBAAiB,EAAE,CAAC;oBACpB,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC;gBAChD,CAAC;qBAAM,CAAC;oBACJ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC;gBAC/C,CAAC;YACL,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,MAAM,GAAG,MAAM,IAAI,CAAC,CAAC;YACrB,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YACtB,IAAI,iBAAiB,EAAE,CAAC;gBACpB,IAAI,IAAI,MAAM,GAAG,KAAK,CAAC;YAC3B,CAAC;iBAAM,CAAC;gBACJ,IAAI,IAAI,MAAM,GAAG,IAAI,CAAC;YAC1B,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,IAAY,EAAE,EAAU,EAAE,QAAmB;QAC1D,oBAAoB;QACpB,MAAM,MAAM,GAAyC,EAAE,CAAC;QACxD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC5C,IAAI,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;gBACvF,SAAS;YACb,CAAC;YACD,IAAI,IAAI,GAAG,MAAM,IAAI,CAAC,eAAe,CACjC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EACnB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,IAAI,IAAI,CAAC,cAAc,EAChD,IAAI,EACJ,EAAE,CACL,CAAC;YACF,IAAI,KAAK,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC5D,IAAI,MAAM,GAAG,IAAI,CAAC;YAClB,OAAO,MAAM,EAAE,MAAM,KAAK,IAAI,EAAE,CAAC;gBAC7B,MAAM,GAAG,MAAM,IAAI,CAAC,eAAe,CAC/B,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EACnB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,IAAI,IAAI,CAAC,cAAc,EAChD,KAAK,EACL,EAAE,CACL,CAAC;gBACF,KAAK,GAAG,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACvE,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAC/B,CAAC;YACD,IAAI,MAAM,EAAE,CAAC;gBACT,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC;YACzC,CAAC;QACL,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,QAAQ;QACV,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACzB,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YACrC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;QAClC,CAAC;QAED,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACtB,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAC1D,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,IAAI,CAAC,SAAS,GAAG,QAAQ,EAAE,CAAC;YAC5B,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;QACvB,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;YAChB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;YACpB,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;YAE/C,OAAO;YACP,uGAAuG;YACvG,EAAE;YACF,oCAAoC;YACpC,kEAAkE;YAClE,qFAAqF;YACrF,0DAA0D;YAC1D,kGAAkG;YAClG,kCAAkC;YAClC,qFAAqF;YACrF,2BAA2B;YAC3B,kEAAkE;YAClE,mDAAmD;YACnD,2BAA2B;YAC3B,yBAAyB;YACzB,mBAAmB;YACnB,sBAAsB;YACtB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;YACrB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;YAClB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;YAE1B,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;YACvB,6BAA6B;YAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,KAAK,CAAC,EAAE,CAAC;oBACrE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC;gBAC7E,CAAC;YACL,CAAC;YAED,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;YACvB,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;YAC1B;;;gBAGI;YACJ,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YAErB,IAAI,CAAC,UAAU,EAAE,CAAC;QACtB,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC;YACtE,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YAChD,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACzB,CAAC;IACL,CAAC;CACJ;AAED,kBAAe,UAAU,CAAC","sourcesContent":["import type { Connection } from '../types';\nimport type {\n ChartAggregateType,\n ChartMarkConfig,\n ChartType,\n ChartConfig,\n ChartRelativeEnd,\n ChartLineConfig,\n ChartRangeOptions,\n} from '../types';\n\n/*\nfunction deParam(params, coerce) {\n const obj = {};\n const coerceTypes = {'true': true, 'false': false, 'null': null};\n\n // Iterate over all name=value pairs.\n params.replace(/\\+/g, ' ').split('&').forEach(v => {\n const param = v.split('=');\n let key = decodeURIComponent(param[0]);\n let val;\n let i = 0;\n\n // If key is more complex than 'foo', like 'a[]' or 'a[b][c]', split it\n // into its component parts.\n let keys = key.split('][');\n let keysLast = keys.length - 1;\n\n // If the first keys part contains [ and the last ends with ], then []\n // are correctly balanced.\n if (/\\[/.test(keys[0]) && /]$/.test(keys[keysLast])) {\n // Remove the trailing ] from the last keys part.\n keys[keysLast] = keys[keysLast].replace(/]$/, '');\n\n // Split first keys part into two parts on the [ and add them back onto\n // the beginning of the keys array.\n keys = keys.shift().split('[').concat(keys);\n\n keysLast = keys.length - 1;\n } else {\n // Basic 'foo' style key.\n keysLast = 0;\n }\n\n // Are we dealing with a name=value pair, or just a name?\n if (param.length === 2) {\n val = decodeURIComponent(param[1]);\n\n // Coerce values.\n if (coerce) {\n val = val && !isNaN(val) && ((+val + '') === val) ? +val // number\n : val === 'undefined' ? undefined // undefined\n : coerceTypes[val] !== undefined ? coerceTypes[val] // true, false, null\n : val; // string\n }\n\n if (keysLast) {\n let cur = obj;\n // Complex key, build deep object structure based on a few rules:\n // * The 'cur' pointer starts at the object top-level.\n // * [] = array push (n is set to array length), [n] = array if n is\n // numeric, otherwise object.\n // * If at the last keys part, set the value.\n // * For each keys part, if the current level is undefined create an\n // object or array based on the type of the next keys part.\n // * Move the 'cur' pointer to the next level.\n // * Rinse & repeat.\n for (; i <= keysLast; i++) {\n key = keys[i] === '' ? cur.length : keys[i];\n cur = cur[key] = i < keysLast\n ? cur[key] || (keys[i + 1] && isNaN(keys[i + 1]) ? {} : [])\n : val;\n }\n\n } else {\n // Simple key, even simpler rules, since only scalars and shallow\n // arrays are allowed.\n\n if (Object.prototype.toString.call(obj[key]) === '[object Array]') {\n // val is already an array, so push on the next value.\n obj[key].push(val);\n } else if ({}.hasOwnProperty.call(obj, key)) {\n // val isn't an array, but since a second value has been specified,\n // convert val into an array.\n obj[key] = [obj[key], val];\n } else {\n // val is a scalar.\n obj[key] = val;\n }\n }\n } else if (key) {\n // No value was defined, so set something meaningful.\n obj[key] = coerce\n ? undefined\n : '';\n }\n });\n\n return obj;\n}\n*/\n\nexport type EchartsOneValue = { value: [number, number]; exact?: false };\ntype EchartsAnyValue = { value: [number, number | string | boolean]; exact?: false };\n\nexport type ChartLineConfigOld = {\n // @deprecated use chartType\n art?: ChartAggregateType;\n\n id: string;\n unit: string;\n\n offset?: number;\n name?: string;\n aggregate?: ChartAggregateType;\n color?: string;\n thickness?: number;\n shadowsize?: number;\n min?: number | '';\n max?: number | '';\n\n yOffset?: number;\n validTime?: number;\n chartType?: ChartType;\n\n instance?: string;\n};\n\nexport type ChartMarkConfigOld = {\n l: number; // lineId\n v: string | number; // upperValueOrId\n vl: string | number; // lowerValueOrId\n c: string; // color\n f: string | number; // fill\n t: number; // ol - line width\n s: number; // os - shadow\n d: string; // text - descriptions\n p: 'r' | 'l'; // textPosition\n py: number; // textOffset\n fc: string; // textColor\n fs: number; // textSize\n};\n\nexport type ChartConfigOld = {\n // @deprecated use \"l\"\n chartType?: 'auto' | 'bar' | 'polar' | 'line';\n // @deprecated use \"l\"\n instance?: string;\n // @deprecated use \"l\"\n lines?: ChartLineConfigOld[];\n // @deprecated use \"l\"\n _ids?: string;\n // @deprecated use \"l\"\n _colors?: string;\n // @deprecated use \"l\"\n _names?: string;\n // @deprecated use \"l\"\n strokeWidth?: number;\n // @deprecated use \"l\"\n min?: number;\n // @deprecated use \"l\"\n max?: number;\n // @deprecated use \"l\"\n _units?: string;\n // @deprecated use \"marks\"\n m: ChartMarkConfigOld[];\n\n aggregateType: 'step' | 'count';\n aggregateSpan: number;\n relativeEnd: 'now' | 'month' | 'year' | 'minute' | 'hour' | 'weekUsa' | 'weekEurope' | 'week2Usa' | 'week2Europe';\n\n l: ChartLineConfigOld[];\n marks: ChartMarkConfig[];\n\n width: string | number;\n height: string | number;\n timeFormat?: string;\n useComma: string | boolean;\n zoom: string | boolean;\n export: string | boolean;\n grid_hideX: string | boolean;\n grid_hideY: string | boolean;\n hoverDetail: string | boolean;\n noLoader: string | boolean;\n noedit: string | boolean;\n animation: string | number;\n afterComma?: string | number;\n timeType: 'relative' | 'static';\n xLabelShift: number | string;\n xLabelShiftMonth?: boolean;\n xLabelShiftYear?: boolean;\n};\n\nexport type LineSeries = EchartsOneValue[];\nexport type BarSeries = number[];\nexport type BarAndLineSeries = BarSeries | LineSeries;\n\nexport interface SeriesData extends Omit {\n // Name of state, like \"system.adapter.admin.0.memHeap\"\n id?: string;\n\n // All possible names for value (will be converted to val)\n y?: number;\n value?: number;\n data?: number;\n v?: number;\n\n // All possible names for timestamp (will be converted to ts)\n t?: number;\n time?: number;\n date?: number;\n\n /** Interpolated */\n i?: boolean;\n\n ack: boolean;\n\n /** Name of the adapter instance which set the value, e.g. \"system.adapter.web.0\" */\n from?: string;\n}\n\n/**\n * Parse a query string into its parts.\n * Copied from @iobroker/adapter-react-v5/Components/Utils\n */\nfunction parseQuery(query: string): Record {\n query = (query || '').toString().replace(/^\\?/, '');\n const result: Record = {};\n query.split('&').forEach(part => {\n part = part.trim();\n if (part) {\n const parts = part.split('=');\n const attr = decodeURIComponent(parts[0]).trim();\n if (parts.length > 1) {\n result[attr] = decodeURIComponent(parts[1]);\n if (result[attr] === 'true') {\n result[attr] = true;\n } else if (result[attr] === 'false') {\n result[attr] = false;\n } else {\n const f = parseFloat(result[attr] as unknown as string);\n if (f.toString() === result[attr]) {\n result[attr] = f;\n }\n }\n } else {\n result[attr] = true;\n }\n }\n });\n return result;\n}\n\n// Do not forget to change normalizeConfig in src/utils/flotConverter.js too\nfunction normalizeConfig(config: ChartConfigOld): ChartConfig {\n const newConfig: ChartConfig = JSON.parse(JSON.stringify(config));\n\n if (config.lines) {\n newConfig.l = config.lines as ChartLineConfig[];\n // @ts-expect-error delete old structure\n delete newConfig.lines;\n }\n\n if (config._ids) {\n const ids = config._ids ? config._ids.split(';') : [];\n const colors = config._colors ? config._colors.split(';') : [];\n const names = config._names ? config._names.split(';') : [];\n const units = config._units ? config._units.split(';') : [];\n newConfig.l = [];\n for (let i = 0; i < ids.length; i++) {\n newConfig.l.push({\n id: ids[i],\n offset: 0,\n name: names[i] || undefined,\n aggregate: 'none',\n color: colors[i] || 'blue',\n thickness: config.strokeWidth || 1,\n shadowsize: config.strokeWidth || 1,\n min: config.min || undefined,\n max: config.max || undefined,\n unit: units[i] || undefined,\n });\n }\n newConfig.aggregateType = 'step';\n newConfig.aggregateSpan = 300;\n newConfig.relativeEnd = 'now';\n }\n\n // convert art to aggregate (from flot)\n if (config.l) {\n for (let j = 0; j < config.l.length; j++) {\n if (config.l[j].art) {\n config.l[j].aggregate = config.l[j].art;\n delete config.l[j].art;\n }\n if (config.instance && !config.l[j].instance) {\n config.l[j].instance = config.instance;\n }\n config.l[j].yOffset = parseFloat(config.l[j].yOffset as unknown as string) || 0;\n config.l[j].offset = parseFloat(config.l[j].offset as unknown as string) || 0;\n config.l[j].validTime = parseFloat(config.l[j].validTime as unknown as string) || 0;\n config.l[j].chartType = config.l[j].chartType || config.chartType || 'auto';\n }\n }\n\n config.l = config.l || [];\n\n // convert marks\n if (config.m) {\n newConfig.marks = [];\n for (let j = 0; j < config.m.length; j++) {\n newConfig.marks[j] = {\n lineId: config.m[j].l,\n upperValueOrId: config.m[j].v,\n lowerValueOrId: config.m[j].vl,\n color: config.m[j].c,\n fill: parseFloat(config.m[j].f as string),\n ol: config.m[j].t,\n os: config.m[j].s,\n text: config.m[j].d,\n textPosition: config.m[j].p,\n textOffset: config.m[j].py,\n textColor: config.m[j].fc,\n textSize: config.m[j].fs,\n };\n }\n // @ts-expect-error delete old structure\n delete newConfig.m;\n }\n\n newConfig.marks = newConfig.marks || [];\n\n if (!newConfig.l?.length) {\n config.l = config.l || [];\n config.l.push({ id: '', unit: '' });\n }\n\n // Set default values\n newConfig.width = config.width || '100%';\n newConfig.height = config.height || '100%';\n // if width or height does not have any units, add px to it\n if (parseFloat(newConfig.width as string).toString() === newConfig.width.toString().trim()) {\n newConfig.width += 'px';\n }\n if (parseFloat(newConfig.height as string).toString() === newConfig.height.toString().trim()) {\n newConfig.height += 'px';\n }\n\n newConfig.timeFormat = config.timeFormat || '';\n newConfig.useComma = config.useComma === 'true' || config.useComma === true;\n newConfig.zoom = config.zoom === 'true' || config.zoom === true;\n newConfig.export = config.export === 'true' || config.export === true;\n newConfig.grid_hideX = config.grid_hideX === 'true' || config.grid_hideX === true;\n newConfig.grid_hideY = config.grid_hideY === 'true' || config.grid_hideY === true;\n newConfig.hoverDetail = config.hoverDetail === 'true' || config.hoverDetail === true;\n newConfig.noLoader = config.noLoader === 'true' || config.noLoader === true;\n newConfig.noedit = config.noedit === 'true' || config.noedit === true;\n newConfig.animation = parseInt(config.animation as string, 10) || 0;\n newConfig.afterComma = config.afterComma === undefined ? 2 : parseInt(config.afterComma as string, 10);\n newConfig.timeType = config.timeType || 'relative';\n if (config.xLabelShift) {\n if (typeof config.xLabelShift === 'string' && config.xLabelShift.endsWith('m')) {\n newConfig.xLabelShift = parseInt(config.xLabelShift.substring(0, config.xLabelShift.length - 1), 10) || 0;\n newConfig.xLabelShiftMonth = true;\n } else if (typeof config.xLabelShift === 'string' && config.xLabelShift.endsWith('y')) {\n newConfig.xLabelShift = parseInt(config.xLabelShift.substring(0, config.xLabelShift.length - 1), 10) || 0;\n newConfig.xLabelShiftYear = true;\n } else {\n newConfig.xLabelShift = parseInt(config.xLabelShift as string, 10) || 0;\n }\n }\n\n return newConfig;\n}\n\nconst NOT_CONNECTED = 'notConnectedError';\n\nclass ChartModel {\n private readonly socket: Connection;\n private readonly updateTimeout: number;\n private readonly serverSide: boolean;\n // For line charts\n private seriesData: LineSeries[] = [];\n // For Bar or polar charts\n private barData: BarSeries[] = [];\n // Actual values for every line/bar. Only if config.legActual === true\n private readonly actualValues: (number | null | boolean | string)[] = [];\n private ticks: EchartsAnyValue[] = null;\n private reading: boolean = false;\n private subscribes: string[] = [];\n private sessionId: number = 1;\n // update interval by time\n private updateInterval: ReturnType | null = null;\n private presetUpdateTimeout: ReturnType | null = null;\n private readOnZoomTimeout: ReturnType | null = null;\n private subscribed: boolean = false;\n // Is preset subscribed yet or not\n private presetSubscribed: string = '';\n private defaultHistory: string = '';\n private onUpdateFunc:\n | ((\n seriesData: BarAndLineSeries[],\n actualValues?: (number | null | boolean | string)[],\n barCategories?: number[],\n ) => void)\n | null = null;\n private onReadingFunc: ((isReading: boolean) => void) | null = null;\n private onErrorFunc: ((error: Error) => void) | null = null;\n private objectPromises: Record> = {};\n private debug = false;\n private zoomData: { stopLive?: boolean; start?: number; end?: number } | null = null;\n private lastHash: string;\n private onHashInstalled: boolean = false;\n private systemConfig: ioBroker.SystemConfigCommon | null = null;\n private preset?: string;\n private config?: ChartConfig;\n private barCategories?: number[];\n private now: number = Date.now();\n private hash?: {\n range: ChartRangeOptions;\n relativeEnd: ChartRelativeEnd;\n };\n\n private convertFunctions: Record number> = {};\n\n constructor(\n socket: Connection,\n /** Config or preset ID */\n config: ChartConfigOld | string,\n options?: { updateTimeout?: number; serverSide?: boolean; compact?: boolean },\n ) {\n options = { updateTimeout: 300, ...(options || {}) };\n this.socket = socket;\n\n this.updateTimeout = options.updateTimeout || 300; // how often the new data will be requested by zoom and pan\n this.serverSide = options.serverSide || false; // if rendering is serverside\n\n if (!this.serverSide) {\n this.lastHash = window.location.hash;\n\n if (!config) {\n this.onHashInstalled = true;\n window.addEventListener('hashchange', this.onHashChange, false);\n }\n } // else node.js\n\n void this.socket\n .getSystemConfig()\n .catch((e: unknown): null => {\n if ((e as Error).toString().includes(NOT_CONNECTED) && this.onErrorFunc) {\n this.onErrorFunc(e as Error);\n }\n console.error(`Cannot read systemConfig: ${(e as Error).toString()}`);\n return null;\n })\n .then((systemConfig: ioBroker.SystemConfigObject): Promise => {\n this.systemConfig = systemConfig?.common ? systemConfig.common : ({} as ioBroker.SystemConfigCommon);\n this.defaultHistory = this.systemConfig.defaultHistory;\n return this.analyseAndLoadConfig(config);\n });\n }\n\n async analyseAndLoadConfig(config?: string | ChartConfigOld): Promise {\n if (config) {\n if (typeof config === 'string') {\n this.preset = config;\n } else {\n this.config = normalizeConfig(config);\n }\n } else if (!this.serverSide) {\n const query: Record = parseQuery(window.location.search); // Utils.parseQuery\n\n this.debug = query.debug === true || query.debug === 'true' || query.debug === 1 || query.debug === '1';\n\n if (query.preset && typeof query.preset === 'string') {\n this.preset = query.preset;\n } else {\n const hQuery: Record = parseQuery(\n (window.location.hash || '').toString().replace(/^#/, ''),\n ); // Utils.parseQuery\n let config: ChartConfigOld = {} as ChartConfigOld;\n\n if (hQuery.data && typeof hQuery.data === 'string') {\n try {\n config = JSON.parse(hQuery.data);\n } catch {\n // ignore\n }\n }\n if (query.data && typeof query.data === 'string') {\n try {\n Object.assign(config, JSON.parse(query.data), true);\n } catch {\n // ignore\n }\n }\n if (hQuery.preset) {\n this.preset = hQuery.preset as string;\n if (hQuery.range || hQuery.relativeEnd) {\n this.hash = {\n range: hQuery.range as ChartRangeOptions,\n relativeEnd: hQuery.relativeEnd as ChartRelativeEnd,\n };\n }\n } else {\n // search ID and range\n if (hQuery.noLoader !== undefined) {\n config.noLoader =\n hQuery.noLoader === true ||\n hQuery.noLoader === 'true' ||\n hQuery.noLoader === 1 ||\n hQuery.noLoader === '1';\n }\n if (query.noLoader !== undefined) {\n config.noLoader =\n query.noLoader === true ||\n query.noLoader === 'true' ||\n query.noLoader === 1 ||\n query.noLoader === '1';\n }\n this.config = normalizeConfig(config);\n // console.log(this.config);\n }\n }\n }\n\n this.seriesData = [];\n this.barData = [];\n this.barCategories = null;\n\n if (this.updateInterval) {\n clearInterval(this.updateInterval);\n this.updateInterval = null;\n }\n\n if (this.preset) {\n if (\n (!this.preset.startsWith('echarts.') && !this.preset.startsWith('flot.')) ||\n !this.preset.includes('.')\n ) {\n this.preset = `echarts.0.${this.preset}`;\n }\n\n try {\n const obj: ioBroker.ChartObject | null | undefined = (await this.socket.getObject(this.preset)) as\n | ioBroker.ChartObject\n | null\n | undefined;\n if (!obj?.native?.data || obj.type !== 'chart') {\n console.error(`[ChartModel] Invalid object ${this.preset}: ${JSON.stringify(obj)}`);\n return;\n }\n this.config = normalizeConfig(obj.native.data);\n this.config.useComma =\n this.config.useComma === undefined ? this.systemConfig.isFloatComma : this.config.useComma;\n this.config.lang = this.systemConfig.language;\n this.config.live = parseInt(this.config.live as unknown as string, 10) || 0;\n this.config.debug = this.debug;\n this.config.presetId = this.preset;\n\n if (this.hash?.range) {\n if (\n typeof this.hash.range === 'string' &&\n !this.hash.range.includes('y') &&\n !this.hash.range.includes('m')\n ) {\n this.config.range = parseInt(this.hash.range, 10);\n } else {\n this.config.range = this.hash.range;\n }\n }\n if (this.hash?.relativeEnd) {\n this.config.relativeEnd = this.hash.relativeEnd;\n }\n\n await this.readData();\n\n // subscribe on preset changes\n if (!this.serverSide && this.presetSubscribed !== this.preset) {\n this.presetSubscribed &&\n (await this.socket.unsubscribeObject(this.presetSubscribed, this.onPresetUpdate));\n this.presetSubscribed = this.preset;\n await this.socket.subscribeObject(this.preset, this.onPresetUpdate);\n }\n if (!this.serverSide && this.config.live && !this.zoomData?.stopLive) {\n this.updateInterval = setInterval(() => this.readData(), this.config.live * 1000);\n }\n } catch (e) {\n e === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(e);\n console.error(`Cannot read \"${this.preset}\": ${e}`);\n }\n } else {\n this.config.useComma =\n this.config.useComma === undefined\n ? this.systemConfig.isFloatComma === true\n : this.config.useComma === true;\n this.config.lang = this.systemConfig.language;\n this.config.live = parseInt(this.config.live as unknown as string, 10) || 0;\n this.config.debug = this.debug;\n await this.readData();\n if (!this.serverSide && this.config.live && !this.zoomData?.stopLive) {\n this.updateInterval = setInterval(() => this.readData(), this.config.live * 1000);\n }\n }\n }\n\n onHashChange = (): void => {\n if (this.lastHash !== window.location.hash) {\n this.lastHash = window.location.hash;\n void this.analyseAndLoadConfig();\n }\n };\n\n onPresetUpdate = (id: string, obj: ioBroker.Object | null | undefined): void => {\n if (id !== this.preset) {\n return;\n }\n if (this.presetUpdateTimeout) {\n clearTimeout(this.presetUpdateTimeout);\n }\n this.presetUpdateTimeout = setTimeout(() => {\n this.presetUpdateTimeout = null;\n let newConfig;\n if (obj) {\n newConfig = normalizeConfig(obj.native.data);\n } else {\n newConfig = normalizeConfig({} as ChartConfigOld);\n }\n if (JSON.stringify(newConfig) !== JSON.stringify(this.config)) {\n this.config = newConfig;\n this.updateInterval && clearInterval(this.updateInterval);\n this.updateInterval = null;\n\n if (this.config.live && (!this.zoomData || !this.zoomData.stopLive)) {\n this.updateInterval = setInterval(() => this.readData(), this.config.live * 1000);\n }\n\n void this.readData();\n }\n }, 100);\n };\n\n setNewRange(options?: { stopLive?: boolean; start?: number; end?: number }): void {\n if (this.debug) {\n console.log(`[ChartModel] [${new Date().toISOString()}] setNewRange: ${JSON.stringify(options)}`);\n }\n\n if (!options) {\n if (this.zoomData) {\n this.zoomData = null;\n this.readOnZoomTimeout && clearTimeout(this.readOnZoomTimeout);\n this.readOnZoomTimeout = setTimeout(() => {\n this.readOnZoomTimeout = null;\n if (this.config.live && (!this.zoomData || !this.zoomData.stopLive)) {\n console.log('Restore update');\n this.updateInterval && clearInterval(this.updateInterval);\n this.updateInterval = setInterval(() => this.readData(), this.config.live * 1000);\n }\n void this.readData();\n }, this.updateTimeout);\n }\n } else if (options.stopLive) {\n this.zoomData = this.zoomData || {};\n this.zoomData.stopLive = true;\n if (this.updateInterval) {\n console.log('Clear interval');\n clearInterval(this.updateInterval);\n this.updateInterval = null;\n }\n } else {\n // options = {start, end}\n const stopLive = this.zoomData?.stopLive;\n if (stopLive) {\n delete this.zoomData.stopLive;\n }\n if (!this.zoomData || JSON.stringify(this.zoomData) !== JSON.stringify(options)) {\n this.zoomData = options;\n if (stopLive) {\n this.zoomData.stopLive = true;\n }\n this.readOnZoomTimeout && clearTimeout(this.readOnZoomTimeout);\n this.readOnZoomTimeout = setTimeout(() => {\n this.readOnZoomTimeout = null;\n void this.readData();\n }, this.updateTimeout);\n } else if (stopLive) {\n this.zoomData.stopLive = true;\n }\n }\n }\n\n destroy(): void {\n if (this.subscribed) {\n if (!this.serverSide) {\n this.subscribes.forEach(id => this.socket.unsubscribeState(id, this.onStateChange));\n }\n this.subscribes = [];\n this.subscribed = false;\n }\n if (this.readOnZoomTimeout) {\n clearTimeout(this.readOnZoomTimeout);\n this.readOnZoomTimeout = null;\n }\n if (this.presetUpdateTimeout) {\n clearTimeout(this.presetUpdateTimeout);\n this.presetUpdateTimeout = null;\n }\n if (this.presetSubscribed) {\n if (!this.serverSide) {\n void this.socket.unsubscribeObject(this.presetSubscribed, this.onPresetUpdate);\n }\n this.presetSubscribed = null;\n }\n if (this.updateInterval) {\n clearInterval(this.updateInterval);\n this.updateInterval = null;\n }\n if (!this.serverSide) {\n if (this.onHashInstalled) {\n window.removeEventListener('hashchange', this.onHashChange, false);\n this.onHashInstalled = false;\n }\n }\n }\n\n onUpdate(\n cb:\n | ((\n seriesData: BarAndLineSeries[],\n actualValues?: (number | null | boolean | string)[],\n barCategories?: number[],\n ) => void)\n | null,\n ): void {\n this.onUpdateFunc = cb;\n }\n\n onReading(cb: ((isReading: boolean) => void) | null): void {\n this.onReadingFunc = cb;\n }\n\n onError(cb: ((err: Error) => void) | null): void {\n this.onErrorFunc = cb;\n }\n\n getConfig(): ChartConfig {\n return this.config;\n }\n\n getSystemConfig(): ioBroker.SystemConfigCommon {\n return this.systemConfig;\n }\n\n setConfig(config: ChartConfig | ChartConfigOld): void {\n void this.analyseAndLoadConfig(config as ChartConfigOld);\n }\n\n increaseRegionForBar(start: number | Date, end: number | Date, option: ioBroker.GetHistoryOptions): void {\n this.config.aggregateBar = parseInt(this.config.aggregateBar as unknown as string, 10) || 0;\n let endTs = typeof end === 'number' ? end : end.getTime();\n let startTs = typeof start === 'number' ? start : start.getTime();\n\n // calculate count of intervals\n if (!this.config.aggregateBar) {\n if (endTs - startTs <= 3600000 * 12) {\n // less than 12 hours => 15 minutes\n this.config.aggregateBar = 15;\n } else if (endTs - startTs >= 3600000 * 24 * 60) {\n // more than 60 days => 1 month\n this.config.aggregateBar = 43200;\n } else if (endTs - startTs > 3600000 * 24 * 3) {\n // more than 3 days => 1 day\n this.config.aggregateBar = 1440;\n } else {\n // if (endTs - startTs > 3600000 * 12) { // more than 12 hours => 60 minutes\n this.config.aggregateBar = 60;\n }\n }\n\n option = option || ({} as ioBroker.GetHistoryOptions);\n\n if (this.config.aggregateBar === 15) {\n // align start and stop to 15 minutes\n const startDate = new Date(startTs);\n startDate.setMinutes(Math.floor(startDate.getMinutes() / 15) * 15);\n if (this.config.postProcessing === 'diff') {\n startDate.setMinutes(startDate.getMinutes() - 15);\n }\n startDate.setSeconds(0);\n startDate.setMilliseconds(0);\n startTs = startDate.getTime();\n\n const endDate = new Date(endTs);\n endDate.setMinutes(Math.ceil(endDate.getMinutes() / 15) * 15);\n endDate.setSeconds(0);\n endDate.setMilliseconds(0);\n endTs = endDate.getTime();\n option.count = Math.round((endTs - startTs) / 900000);\n } else if (this.config.aggregateBar === 60) {\n // align start and stop to 1 hour\n const startDate = new Date(startTs);\n startDate.setMinutes(0);\n startDate.setSeconds(0);\n startDate.setMilliseconds(0);\n if (this.config.postProcessing === 'diff') {\n startDate.setMinutes(startDate.getMinutes() - 60);\n }\n startTs = startDate.getTime();\n\n const endDate = new Date(endTs);\n endDate.setMinutes(60);\n endDate.setSeconds(0);\n endDate.setMilliseconds(0);\n endTs = endDate.getTime();\n option.count = Math.round((endTs - startTs) / 3600000);\n } else if (this.config.aggregateBar === 1440) {\n // align start and stop to 1 day\n const startDate = new Date(startTs);\n startDate.setHours(0);\n startDate.setMinutes(0);\n startDate.setSeconds(0);\n startDate.setMilliseconds(0);\n if (this.config.postProcessing === 'diff') {\n startDate.setDate(startDate.getDate() - 1);\n }\n startTs = startDate.getTime();\n\n const endDate = new Date(endTs);\n endDate.setDate(endDate.getDate() + 1);\n endDate.setHours(0);\n endDate.setMinutes(0);\n endDate.setSeconds(0);\n endDate.setMilliseconds(0);\n endTs = endDate.getTime();\n option.count = Math.round((endTs - startTs) / 86400000);\n } else if (this.config.aggregateBar === 43200) {\n // align start and stop to 1 month\n const startDate = new Date(startTs);\n startDate.setDate(1);\n startDate.setHours(0);\n startDate.setMinutes(0);\n startDate.setSeconds(0);\n startDate.setMilliseconds(0);\n if (this.config.postProcessing === 'diff') {\n startDate.setDate(startDate.getDate() - 30);\n }\n startTs = startDate.getTime();\n\n const endDate = new Date(endTs);\n endDate.setDate(1);\n endDate.setHours(0);\n endDate.setMinutes(0);\n endDate.setMonth(endDate.getMonth() + 1);\n endDate.setSeconds(0);\n endDate.setMilliseconds(0);\n endTs = endDate.getTime();\n option.count = Math.round((endTs - startTs) / (86400000 * 30)); // todo it must be variable as every month has different count of days\n }\n\n option.start = startTs;\n option.end = endTs;\n }\n\n getStartStop(index: number, step?: number): ioBroker.GetHistoryOptions {\n let option: ioBroker.GetHistoryOptions;\n let endTs: number;\n let startTs: number;\n let _nowTs: number;\n this.config.l[index].offset = this.config.l[index].offset || 0;\n\n // check config range\n if (typeof this.config.range === 'string' && this.config.range.includes('m') && this.config.l.length > 1) {\n const monthRange = parseInt(this.config.range as string, 10) || 1;\n for (let a = 0; a < this.config.l.length; a++) {\n if (this.config.l[a].offset) {\n // Check what the month has first index\n _nowTs = ChartModel.addTime(this.now, this.config.l[a].offset);\n const minusMonth = new Date(_nowTs);\n minusMonth.setMonth(minusMonth.getMonth() - monthRange);\n this.config.range = Math.floor((_nowTs - minusMonth.getTime()) / 60000);\n break;\n }\n }\n } else if (\n typeof this.config.range === 'string' &&\n this.config.range.includes('y') &&\n this.config.l.length > 1\n ) {\n const yearRange = parseInt(this.config.range as string, 10) || 1;\n for (let a = 0; a < this.config.l.length; a++) {\n if (this.config.l[a].offset) {\n // Check what the month has first index\n _nowTs = ChartModel.addTime(this.now, this.config.l[a].offset);\n const minusYear = new Date(_nowTs);\n minusYear.setFullYear(minusYear.getFullYear() - yearRange);\n this.config.range = Math.floor((_nowTs - minusYear.getTime()) / 60000);\n break;\n }\n }\n }\n\n // todo: What about year?\n\n if (!step) {\n if (this.zoomData) {\n startTs = this.zoomData.start;\n endTs = this.zoomData.end;\n } else if (this.config.timeType === 'static') {\n let startTime: [number, number];\n let endTime: [number, number];\n if (this.config.start_time !== undefined) {\n startTime = this.config.start_time.split(':').map(Number) as [number, number];\n } else {\n startTime = [0, 0];\n }\n\n if (this.config.end_time !== undefined) {\n endTime = this.config.end_time.split(':').map(Number) as [number, number];\n } else {\n endTime = [24, 0];\n }\n\n // offset is in seconds\n const startDate = new Date(this.config.start).setHours(startTime[0], startTime[1]);\n const endDate = new Date(this.config.end).setHours(endTime[0], endTime[1]);\n\n startTs = ChartModel.addTime(startDate, this.config.l[index].offset);\n endTs = ChartModel.addTime(endDate, this.config.l[index].offset);\n } else {\n this.config.relativeEnd = this.config.relativeEnd || 'now';\n let _nowDate: Date;\n\n if (this.config.relativeEnd === 'now') {\n _nowDate = new Date(this.now);\n } else if (this.config.relativeEnd.includes('minute')) {\n const minutes = parseInt(this.config.relativeEnd, 10) || 1;\n _nowDate = new Date(this.now);\n _nowDate.setMinutes(Math.floor(_nowDate.getMinutes() / minutes) * minutes + minutes);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd.includes('hour')) {\n const hours = parseInt(this.config.relativeEnd, 10) || 1;\n _nowDate = new Date(this.now);\n _nowDate.setHours(Math.floor(_nowDate.getHours() / hours) * hours + hours);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd === 'today') {\n _nowDate = new Date(this.now);\n _nowDate.setDate(_nowDate.getDate() + 1);\n _nowDate.setHours(0);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd === 'weekUsa') {\n // const week = parseInt(config.relativeEnd, 10) || 1;\n _nowDate = new Date(this.now);\n _nowDate.setDate(_nowDate.getDate() - _nowDate.getDay() + 7);\n _nowDate.setHours(0);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd === 'weekEurope') {\n // const _week = parseInt(config.relativeEnd, 10) || 1;\n _nowDate = new Date(this.now);\n // If\n if (_nowDate.getDay() === 0) {\n _nowDate.setDate(_nowDate.getDate() + 1);\n } else {\n _nowDate.setDate(_nowDate.getDate() - _nowDate.getDay() + 8);\n }\n _nowDate.setHours(0);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd === 'week2Usa') {\n // const week = parseInt(config.relativeEnd, 10) || 1;\n _nowDate = new Date(this.now);\n _nowDate.setDate(_nowDate.getDate() - _nowDate.getDay() + 7);\n _nowDate.setDate(_nowDate.getDate() - 7);\n _nowDate.setHours(0);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd === 'week2Europe') {\n // const _week = parseInt(config.relativeEnd, 10) || 1;\n _nowDate = new Date(this.now);\n // If\n if (_nowDate.getDay() === 0) {\n _nowDate.setDate(_nowDate.getDate() + 1);\n } else {\n _nowDate.setDate(_nowDate.getDate() - _nowDate.getDay() + 8);\n }\n _nowDate.setDate(_nowDate.getDate() - 7);\n _nowDate.setHours(0);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd === 'month') {\n _nowDate = new Date(this.now);\n _nowDate.setMonth(_nowDate.getMonth() + 1);\n _nowDate.setDate(1);\n _nowDate.setHours(0);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n } else if (this.config.relativeEnd === 'year') {\n _nowDate = new Date(this.now);\n _nowDate.setFullYear(_nowDate.getFullYear() + 1);\n _nowDate.setMonth(0);\n _nowDate.setDate(1);\n _nowDate.setHours(0);\n _nowDate.setMinutes(0);\n _nowDate.setSeconds(0);\n _nowDate.setMilliseconds(0);\n }\n\n this.config.range = this.config.range || 30;\n\n endTs = ChartModel.addTime(_nowDate, this.config.l[index].offset);\n startTs = ChartModel.addTime(endTs, this.config.range, true);\n }\n\n const aggregate = this.config.l[index].aggregate || this.config.aggregate;\n if (aggregate === 'current') {\n throw new Error('Cannot use \"current\" aggregate for start/stop');\n }\n\n option = {\n start: startTs,\n end: endTs,\n ignoreNull:\n this.config.l[index].ignoreNull === undefined\n ? this.config.ignoreNull\n : this.config.l[index].ignoreNull,\n aggregate: aggregate || 'minmax',\n from: false,\n ack: false,\n q: false,\n addID: false,\n } as ioBroker.GetHistoryOptions;\n\n if (this.config.l[index].chartType === 'bar' || this.config.l[index].chartType === 'polar') {\n this.increaseRegionForBar(startTs, endTs, option);\n } else if (this.config.aggregateType === 'step') {\n option.step = this.config.aggregateSpan * 1000;\n } else if (this.config.aggregateType === 'count') {\n option.count = this.config.aggregateSpan || 300;\n }\n\n this.config.start = startTs;\n this.config.end = endTs;\n\n return option;\n }\n if (this.zoomData) {\n startTs = this.zoomData.start;\n endTs = this.zoomData.end;\n } else {\n endTs = ChartModel.addTime(this.now, this.config.l[index].offset);\n startTs = endTs - step;\n }\n\n option = {\n start: startTs,\n end: endTs,\n ignoreNull:\n this.config.l[index].ignoreNull === undefined\n ? this.config.ignoreNull\n : this.config.l[index].ignoreNull,\n aggregate:\n (this.config.l[index].aggregate as ioBroker.GetHistoryOptions['aggregate']) ||\n (this.config.aggregate as ioBroker.GetHistoryOptions['aggregate']) ||\n 'minmax',\n count: 1,\n from: false,\n ack: false,\n q: false,\n addId: false,\n };\n\n this.config.start = ChartModel.addTime(endTs, this.config.range, true);\n this.config.end = endTs;\n\n return option;\n }\n\n static postProcessing(\n series: BarSeries[],\n categories: number[],\n aggregate: ChartAggregateType,\n postProcessingMethod?: 'diff' | '',\n ): BarSeries {\n const barSeries: BarSeries = [];\n\n for (let i = 0; i < series.length; i++) {\n const interval = series[i];\n if (!interval.length) {\n barSeries[i] = null;\n } else if (interval.length === 1) {\n // sum all values\n barSeries[i] = interval[0];\n } else if (aggregate === 'average') {\n const sum = interval.reduce((a, b) => a + b, 0);\n barSeries[i] = sum / interval.length;\n } else if (aggregate === 'min') {\n let min = interval[0];\n for (let j = 1; j < interval.length; j++) {\n if (interval[j] < min) {\n min = interval[j];\n }\n }\n barSeries[i] = min;\n } else if (aggregate === 'max') {\n let max = interval[0];\n for (let j = 1; j < interval.length; j++) {\n if (interval[j] > max) {\n max = interval[j];\n }\n }\n barSeries[i] = max;\n } else if (aggregate === 'total') {\n barSeries[i] = interval.reduce((a, b) => a + b, 0);\n } else {\n barSeries[i] = interval[interval.length - 1];\n }\n }\n\n if (postProcessingMethod === 'diff') {\n for (let i = series.length - 1; i > 0; i--) {\n if (barSeries[i - 1] !== null && barSeries[i] !== null) {\n barSeries[i] -= barSeries[i - 1];\n } else {\n barSeries[i] = 0;\n }\n }\n barSeries.splice(0, 1);\n categories.splice(0, 1);\n }\n\n for (let i = 0; i < series.length; i++) {\n console.log(`${categories[i]}: ${barSeries[i]}`);\n }\n return barSeries;\n }\n\n static processOneValue(\n value: ioBroker.StateValue | undefined,\n convertFunc: ((val: number) => number) | undefined,\n yOffset: number,\n ): number | null {\n // Convert boolean values to numbers\n if (value === 'true' || value === true) {\n value = 1;\n } else if (value === 'false' || value === false) {\n value = 0;\n } else if (typeof value === 'string') {\n value = parseFloat(value as unknown as string);\n }\n\n if (convertFunc) {\n return value !== null ? convertFunc(value + yOffset) : null;\n }\n\n return value !== null ? value + yOffset : null;\n }\n\n processRawData(\n _id: string,\n line: ChartLineConfig,\n values: SeriesData[],\n option?: ioBroker.GetHistoryOptions,\n ): { seriesData?: LineSeries; barData?: BarSeries } {\n if (!option) {\n option = {\n start: values[0].ts,\n end: values[values.length - 1].ts,\n };\n\n if (line.chartType === 'bar' || line.chartType === 'polar') {\n this.increaseRegionForBar(option.start, option.end, option);\n }\n }\n\n const yOffset: number = line.yOffset || 0;\n\n const seriesData: LineSeries = [];\n // Collects for every time interval the values. Later it will be combined to number[]\n const _barSeries: number[][] = [];\n let barCategories = this.barCategories;\n\n // fill categories for bars\n if (line.chartType === 'bar') {\n if (!barCategories) {\n barCategories = [];\n this.barCategories = barCategories;\n const start = new Date(option.start);\n const end: number = typeof option.end === 'number' ? option.end : (option.end as Date).getTime();\n while (start.getTime() <= end) {\n barCategories.push(start.getTime());\n start.setMinutes(start.getMinutes() + this.config.aggregateBar);\n }\n }\n\n barCategories.forEach(() => _barSeries.push([]));\n }\n\n let convertFunc: ((val: number) => number) | undefined;\n if (line.convert?.trim()) {\n if (!this.convertFunctions[line.convert.trim()]) {\n let convert = line.convert.trim();\n if (!convert.includes('return')) {\n convert = `return ${convert}`;\n }\n try {\n this.convertFunctions[line.convert.trim()] = new Function('val', convert) as (\n val: number,\n ) => number;\n } catch (e) {\n console.error(`[ChartModel] Cannot parse convert function: ${e}`);\n }\n }\n convertFunc = this.convertFunctions[line.convert.trim()];\n }\n\n for (let i = 0; i < values.length; i++) {\n const value: number | null = ChartModel.processOneValue(values[i].val, convertFunc, yOffset);\n\n if (line.chartType === 'bar') {\n // find category\n for (let c = 0; c < barCategories.length; c++) {\n if (\n barCategories[c] >= values[i].ts &&\n values[i].ts < barCategories[c] + this.config.aggregateBar * 60000\n ) {\n _barSeries[c].push(value);\n break;\n }\n }\n } else if (line.chartType !== 'polar') {\n if (line.noFuture && values[i].ts > this.now) {\n // todo: interpolate value\n break;\n }\n\n const dp: EchartsOneValue = { value: [values[i].ts, value] };\n\n // If value was interpolated by backend\n if (values[i].i) {\n dp.exact = false;\n }\n seriesData.push(dp);\n }\n }\n\n // add start and end\n if (line.chartType !== 'bar' && line.chartType !== 'polar') {\n let end: number =\n typeof option.end === 'number'\n ? option.end\n : typeof option.end === 'string'\n ? new Date(option.end).getTime()\n : (option.end as Date).getTime();\n const start: number =\n typeof option.start === 'number'\n ? option.start\n : typeof option.start === 'string'\n ? new Date(option.start).getTime()\n : (option.start as Date).getTime();\n // End cannot be in the future\n if (end > this.now) {\n end = this.now;\n }\n if (seriesData.length) {\n if (seriesData[0].value[0] > start) {\n seriesData.unshift({ value: [start, null], exact: false });\n }\n const last = seriesData[seriesData.length - 1];\n if (last.value[0] < end) {\n if (line.validTime) {\n // If the last value is not older than X seconds, assume it is still the same\n if (end - line.validTime * 1000 <= last.value[0]) {\n seriesData.push({ value: [end, last.value[1]], exact: false });\n } else {\n seriesData.push({ value: [end, null], exact: false });\n }\n } else {\n seriesData.push({ value: [end, null], exact: false });\n }\n }\n } else {\n seriesData.push({ value: [start, null], exact: false });\n seriesData.push({ value: [end, null], exact: false });\n }\n\n // TODO: May be not required?\n seriesData.sort((a, b) => (a.value[0] > b.value[0] ? 1 : a.value[0] < b.value[0] ? -1 : 0));\n\n // The next line is not required, as it is already done at the start\n return { seriesData };\n }\n\n // it is not the series, it is bar data\n const barData = ChartModel.postProcessing(_barSeries, barCategories, line.aggregate, line.postProcessing);\n return { barData };\n }\n\n async readOneChart(id: string, instance: string, index: number): Promise {\n const lineConfig = this.config.l[index];\n if (instance === 'json') {\n const state = await this.socket.getState(id);\n try {\n const valuesAny: SeriesData[] | { history: SeriesData[] } = JSON.parse(state?.val as string);\n let values: SeriesData[];\n if ((valuesAny as { history: SeriesData[] }).history) {\n values = (valuesAny as { history: SeriesData[] }).history;\n } else {\n values = valuesAny as SeriesData[];\n }\n if (!Array.isArray(values)) {\n values = [];\n console.warn('JSON is not an array');\n }\n\n values = values.filter(v => v);\n\n // convert alternative names to {ts, val}. Possible names for ts: t, time. Possible names for val: y, value\n if (values[0]) {\n const keys = Object.keys(values[0]);\n if (!keys.includes('val') || !keys.includes('ts')) {\n // If a format is [{t: 123, y: 1}, {t: 124, y: 2}] (e.g. from pvsolar\n if (keys.includes('y') && keys.includes('t')) {\n values = values.map(v => ({ ts: v.t, val: v.y }) as SeriesData);\n } else {\n if (keys.includes('y')) {\n values.forEach(v => (v.val = v.y));\n } else if (keys.includes('value')) {\n values.forEach(v => (v.val = v.value));\n } else if (keys.includes('data')) {\n values.forEach(v => (v.val = v.data));\n } else if (keys.includes('v')) {\n values.forEach(v => (v.val = v.v));\n }\n\n if (keys.includes('t')) {\n values.forEach(v => (v.ts = v.t));\n } else if (keys.includes('time')) {\n values.forEach(v => (v.ts = v.time));\n } else if (keys.includes('date')) {\n values.forEach(v => (v.ts = v.date));\n }\n }\n }\n\n // convert ts to number\n if (values[0].ts) {\n if (typeof values[0].ts === 'string' && window.isFinite(values[0].ts)) {\n values.forEach(v => (v.ts = parseInt(v.ts as unknown as string, 10)));\n } else if (\n typeof values[0].ts === 'string' &&\n new Date(values[0].ts).toString() !== 'Invalid Date'\n ) {\n values.forEach(v => (v.ts = new Date(v.ts).getTime()));\n }\n // no else\n if (typeof values[0].ts === 'number' && values[0].ts < 946681200000) {\n // new Date(2000,0,1).getTime() === 946681200000\n values.forEach(v => (v.ts *= 1000));\n }\n }\n }\n\n values.sort((a, b) => (a.ts - b.ts ? -1 : a.ts < b.ts ? 1 : 0));\n\n const result = this.processRawData(id, lineConfig, values);\n if (result.barData) {\n this.barData[index] = result.barData;\n } else {\n this.seriesData[index] = result.seriesData;\n }\n } catch (e) {\n console.error(`[ChartModel] Cannot parse values in JSON: ${e}`);\n }\n\n if (!this.serverSide && !this.subscribes.includes(id)) {\n this.subscribes.push(id);\n this.subscribed = true;\n void this.socket.subscribeState(id, this.onStateChange);\n }\n } else {\n const option = this.getStartStop(index);\n option.instance = instance;\n option.sessionId = this.sessionId;\n\n // console.log(JSON.stringify(option));\n if (this.debug) {\n console.log(`[ChartModel] ${new Date(option.start).toString()} - ${new Date(option.end).toString()}`);\n }\n\n if (lineConfig.aggregate !== 'current') {\n try {\n const res = await this.socket.getHistoryEx(id, option);\n if (this.sessionId && res.sessionId && res.sessionId !== this.sessionId) {\n console.warn(\n `[ChartModel] Ignore request with sessionId=${res.sessionId}, actual is ${this.sessionId}`,\n );\n return;\n }\n\n if (res?.values) {\n // option.ignoreNull = (config.l[index].ignoreNull === undefined) ? (config.ignoreNull === 'true' || config.ignoreNull === true) : (config.l[index].ignoreNull === 'true' || config.l[index].ignoreNull === true);\n const result = this.processRawData(id, lineConfig, res.values as SeriesData[], option);\n\n if (result.barData) {\n this.barData[index] = result.barData;\n } else {\n this.seriesData[index] = result.seriesData;\n }\n // free memory\n res.values = null;\n }\n } catch (err) {\n if (err === NOT_CONNECTED && this.onErrorFunc) {\n this.onErrorFunc(err);\n }\n console.error(`[ChartModel] ${err}`);\n }\n }\n\n if (\n (this.config.legActual && lineConfig.chartType !== 'bar' && lineConfig.chartType !== 'polar') ||\n lineConfig.aggregate === 'current'\n ) {\n // read current value\n try {\n const state = await this.socket.getState(id);\n this.actualValues[index] = ChartModel.processOneValue(\n state.val,\n this.convertFunctions[lineConfig.convert],\n lineConfig.yOffset || 0,\n );\n } catch (e) {\n console.warn(`Cannot read last value of \"${id}\": ${e}`);\n this.actualValues[index] = null;\n }\n\n if (!this.serverSide && !this.subscribes.includes(id)) {\n this.subscribes.push(id);\n this.subscribed = true;\n void this.socket.subscribeState(id, this.onStateChange);\n }\n }\n }\n }\n\n async readOneRawChart(id: string, instance: string, start: number, end: number): Promise {\n if (instance === 'json') {\n const state: ioBroker.State | null | undefined = await this.socket.getState(id);\n try {\n const valuesJson: SeriesData[] | { history: SeriesData[] } = JSON.parse(state?.val as string);\n let values: SeriesData[];\n if ((valuesJson as { history: SeriesData[] }).history) {\n values = (valuesJson as { history: SeriesData[] }).history;\n } else {\n values = valuesJson as SeriesData[];\n }\n\n // convert alternative names to {ts, val}. Possible names for ts: t, time. Possible names for val: y, value\n if (values[0]) {\n const keys = Object.keys(values[0]);\n if (!keys.includes('val') || !keys.includes('ts')) {\n // If format is [{t: 123, y: 1}, {t: 124, y: 2}] (e.g. from pvsolar\n if (keys.includes('y') && keys.includes('t')) {\n values = values.map(v => ({ ts: v.t, val: v.y }) as SeriesData);\n } else {\n if (keys.includes('y')) {\n values.forEach(v => (v.val = v.y));\n } else if (keys.includes('value')) {\n values.forEach(v => (v.val = v.value));\n } else if (keys.includes('data')) {\n values.forEach(v => (v.val = v.data));\n } else if (keys.includes('v')) {\n values.forEach(v => (v.val = v.v));\n }\n\n if (keys.includes('t')) {\n values.forEach(v => (v.ts = v.t));\n } else if (keys.includes('time')) {\n values.forEach(v => (v.ts = v.time));\n } else if (keys.includes('date')) {\n values.forEach(v => (v.ts = v.date));\n }\n }\n }\n\n // convert ts to number\n if (values[0].ts) {\n if (typeof values[0].ts === 'string' && window.isFinite(values[0].ts)) {\n values.forEach(v => (v.ts = parseInt(v.ts as unknown as string, 10)));\n } else if (\n typeof values[0].ts === 'string' &&\n new Date(values[0].ts).toString() !== 'Invalid Date'\n ) {\n values.forEach(v => (v.ts = new Date(v.ts).getTime()));\n }\n // no else\n if (typeof values[0].ts === 'number' && values[0].ts < 946681200000) {\n // new Date(2000,0,1).getTime() === 946681200000\n values.forEach(v => (v.ts *= 1000));\n }\n }\n }\n\n if (!Array.isArray(values)) {\n values = [];\n console.warn('JSON is not an array');\n }\n values.sort((a, b) => (a.ts - b.ts ? -1 : a.ts < b.ts ? 1 : 0));\n\n return values;\n } catch (e) {\n console.error(`[ChartModel] Cannot parse values in JSON: ${e}`);\n }\n } else {\n const option: ioBroker.GetHistoryOptions = {\n start,\n end,\n ignoreNull: false,\n aggregate: 'none',\n count: 2000,\n from: false,\n ack: false,\n q: false,\n addId: false,\n };\n\n option.instance = instance;\n option.sessionId = this.sessionId;\n\n if (this.debug) {\n console.log(`[ChartModel] ${new Date(option.start).toString()} - ${new Date(option.end).toString()}`);\n }\n\n try {\n const res = await this.socket.getHistoryEx(id, option);\n if (this.sessionId && res.sessionId && res.sessionId !== this.sessionId) {\n console.warn(\n `[ChartModel] Ignore request with sessionId=${res.sessionId}, actual is ${this.sessionId}`,\n );\n return null;\n }\n\n return res?.values;\n } catch (err) {\n err === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(err);\n err && console.error(`[ChartModel] ${err}`);\n }\n }\n\n return null;\n }\n\n _readObject(id: string): Promise {\n if (!(this.objectPromises[id] instanceof Promise)) {\n this.objectPromises[id] = (this.socket.getObject(id) as Promise).catch(\n (e: unknown): null => {\n if ((e as Error).toString().includes(NOT_CONNECTED) && this.onErrorFunc) {\n this.onErrorFunc(e as Error);\n }\n console.error(`Cannot read \"${id}\": ${(e as Error).toString()}`);\n return null;\n },\n );\n }\n\n return this.objectPromises[id];\n }\n\n async _readOneLine(index: number): Promise {\n const lineConfig = this.config.l[index];\n try {\n const obj = await this._readObject(lineConfig.id);\n\n if (obj?.common) {\n const name: ioBroker.StringOrTranslated = lineConfig.name || obj.common.name;\n\n lineConfig.name =\n name && typeof name === 'object'\n ? name[this.systemConfig.language] || name.en || lineConfig.id\n : (name as string) || '';\n\n lineConfig.unit = lineConfig.unit || (obj.common.unit ? obj.common.unit.replace('�', '°') : '');\n\n lineConfig.type = obj.common.type;\n\n if (lineConfig.chartType === 'auto') {\n lineConfig.chartType = obj.common.type === 'boolean' ? 'steps' : 'line';\n lineConfig.aggregate = obj.common.type === 'boolean' ? 'none' : 'minmax';\n }\n\n // ignore unit if true/false text set\n if (lineConfig.unit && (lineConfig.falseText || lineConfig.trueText)) {\n delete lineConfig.unit;\n }\n\n // remember enum states\n if (\n obj.common.states &&\n !Array.isArray(obj.common.states) &&\n lineConfig.states !== false &&\n !obj.common.unit\n ) {\n if (lineConfig.states) {\n lineConfig.states = Object.assign(obj.common.states, lineConfig.states);\n } else {\n lineConfig.states = obj.common.states;\n }\n\n // if the states have true, false as text => convert it to 1, 0\n if (Object.keys(lineConfig.states).find(key => key === 'true' || key === 'false')) {\n const states: Record = {};\n Object.keys(lineConfig.states).forEach(key => {\n states[key === 'true' ? 1 : key === 'false' ? 0 : key] = (\n lineConfig.states as Record\n )[key];\n });\n lineConfig.states = states;\n }\n\n // ignore unit for enums text set\n if (lineConfig.unit && lineConfig.states) {\n delete lineConfig.unit;\n }\n }\n\n // set YAxis to 'off' if commonYAxis is set\n if (lineConfig.commonYAxis || lineConfig.commonYAxis === 0) {\n lineConfig.yaxe = 'off';\n }\n }\n } catch (e) {\n e === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(e);\n console.error(`[ChartModel] Cannot read object ${lineConfig.id}: ${e}`);\n }\n\n lineConfig.name = lineConfig.name || lineConfig.id || '';\n lineConfig.unit = lineConfig.unit || '';\n if (lineConfig.chartType === 'auto') {\n lineConfig.chartType = 'line';\n lineConfig.aggregate = 'minmax';\n }\n\n await this.readOneChart(lineConfig.id, lineConfig.instance || this.defaultHistory, index);\n }\n\n async _readData(): Promise {\n for (let j = 0; j < this.config.l.length; j++) {\n if (this.config.l[j]) {\n this.seriesData.push([]);\n }\n if (this.config.l[j]?.id) {\n await this._readOneLine(j);\n }\n }\n }\n\n async readTicks(): Promise {\n if (this.config.ticks) {\n const index = 0;\n const option: ioBroker.GetHistoryOptions = JSON.parse(JSON.stringify(this.getStartStop(index)));\n option.instance = this.config.l[index].instance || this.defaultHistory;\n option.sessionId = this.sessionId;\n option.aggregate = 'none';\n\n if (this.debug) {\n console.log(\n `[ChartModel] Ticks: ${new Date(option.start).toString()} - ${new Date(option.end).toString()}`,\n );\n }\n\n try {\n const res = await this.socket.getHistoryEx(this.config.ticks, option);\n if (this.sessionId && res.sessionId && res.sessionId !== this.sessionId) {\n console.warn(\n `[ChartModel] Ignore request with sessionId=${res.sessionId}, actual is ${this.sessionId}`,\n );\n return;\n }\n\n const _series: EchartsAnyValue[] = this.ticks || [];\n if (res?.values) {\n if (this.ticks?.length) {\n this.ticks.splice(0, this.ticks.length);\n }\n\n const values = res.values;\n\n for (let i = 0; i < values.length; i++) {\n if (values[i].val !== null) {\n _series.push({ value: [values[i].ts, values[i].val] });\n }\n }\n\n // add start and end\n if (_series.length) {\n if (_series[0].value[0] > option.start) {\n _series.unshift({ value: [option.start, ''] });\n }\n if (_series[_series.length - 1].value[0] < option.end) {\n _series.push({ value: [option.end, ''] });\n }\n } else {\n _series.push({ value: [option.start, ''] });\n _series.push({ value: [option.end, ''] });\n }\n // free memory\n res.values = null;\n }\n\n this.ticks = _series;\n } catch (e) {\n e === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(e);\n console.error(`[ChartModel] ${e}`);\n }\n }\n }\n\n /*\n readValue(id, index, cb) {\n this.socket.getState(id)\n .then(state => {\n if (state) {\n cb(index, parseFloat(state.val) || 0);\n } else {\n cb(index, 0);\n }\n })\n .catch(e => {\n e === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(e);\n console.error(`[ChartModel] ${e}`);\n cb(index, 0);\n });\n }\n */\n\n async readMarkings(): Promise {\n if (!this.config.marks) {\n return;\n }\n // read markings\n for (let m = 0; m < this.config.marks.length; m++) {\n const mark = this.config.marks[m];\n // process upper ID\n if (\n mark.upperValueOrId &&\n typeof mark.upperValueOrId === 'string' &&\n mark.upperValueOrId.toString().includes('.') &&\n parseFloat(mark.upperValueOrId).toString() !== mark.upperValueOrId.toString().replace(/\\.0*$/, '')\n ) {\n /* if (!this.subscribes.includes(mark.upperValueOrId)) {\n this.subscribes.push(mark.upperValueOrId);\n } */\n try {\n const state = await this.socket.getState(mark.upperValueOrId);\n if (state && state.val !== undefined && state.val !== null) {\n mark.upperValue = parseFloat(state.val as string) || 0;\n } else {\n mark.upperValue = null;\n }\n } catch (e) {\n e === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(e);\n console.error(`Cannot read marking ${mark.upperValueOrId}: ${e}`);\n }\n }\n\n // process lower ID\n if (\n mark.lowerValueOrId &&\n typeof mark.lowerValueOrId === 'string' &&\n mark.lowerValueOrId.includes('.') &&\n parseFloat(mark.lowerValueOrId).toString() !== mark.lowerValueOrId.replace(/\\.0*$/, '')\n ) {\n /* if (!this.subscribes.includes(mark.upperValueOrId)) {\n this.subscribes.push(mark.upperValueOrId);\n } */\n try {\n const state = await this.socket.getState(mark.lowerValueOrId);\n if (state && state.val !== undefined && state.val !== null) {\n mark.lowerValue = parseFloat(state.val as string) || 0;\n } else {\n mark.lowerValue = null;\n }\n } catch (e) {\n e === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(e);\n console.error(`Cannot read marking ${mark.lowerValueOrId}: ${e}`);\n }\n }\n }\n }\n\n async subscribeAll(subscribes?: string[]): Promise {\n if (!this.serverSide && subscribes?.length) {\n for (let s = 0; s < subscribes.length; s++) {\n try {\n await this.socket.subscribeState(subscribes[s], this.onStateChange);\n } catch (e) {\n e === NOT_CONNECTED && this.onErrorFunc && this.onErrorFunc(e);\n console.error(`Cannot subscribe ${subscribes[s]}: ${e}`);\n }\n }\n }\n }\n\n updateData(): void {\n // combine seriesData and barData\n const updateData: BarAndLineSeries[] = [];\n this.config.l.forEach((line, index) => {\n if (line.chartType === 'bar') {\n updateData[index] = this.barData[index];\n } else {\n updateData[index] = this.seriesData[index];\n }\n });\n\n this.onUpdateFunc(updateData, this.actualValues, this.barCategories);\n }\n\n onStateChange = (id: string, state: ioBroker.State | null | undefined): void => {\n if (!id || !state || this.reading) {\n return;\n }\n\n if (this.debug) {\n console.log(`State update ${id} - ${state.val}`);\n }\n\n let changed = false;\n for (let index = 0; index < this.config.l.length; index++) {\n if (this.config.l[index].id === id) {\n // by update from json => update always all values\n if (this.config.l[index].instance === 'json') {\n try {\n const dataJson: SeriesData[] | { history: SeriesData[] } = JSON.parse(state?.val as string);\n let data: SeriesData[];\n if ((dataJson as { history: SeriesData[] }).history) {\n data = (dataJson as { history: SeriesData[] }).history;\n } else {\n data = dataJson as SeriesData[];\n }\n\n if (!Array.isArray(data)) {\n data = [];\n console.warn('JSON is not an array');\n }\n data.sort((a, b) => (a.ts - b.ts ? -1 : a.ts < b.ts ? 1 : 0));\n const result = this.processRawData(id, this.config.l[index], data);\n\n if (result.barData) {\n this.barData[index] = result.barData;\n } else {\n this.seriesData[index] = result.seriesData;\n }\n\n // take last value as actual value\n if (this.actualValues) {\n this.actualValues[index] = data[data.length - 1].val;\n }\n\n this.updateData();\n } catch (e) {\n console.error(`Cannot parse JSON: ${e}`);\n }\n\n return;\n }\n\n const value = ChartModel.processOneValue(\n state.val,\n this.convertFunctions[this.config.l[index].convert],\n this.config.l[index].yOffset || 0,\n );\n\n if (this.actualValues && this.actualValues[index] !== value) {\n this.actualValues[index] = value;\n changed = true;\n }\n break;\n }\n }\n changed && this.onUpdateFunc(null, this.actualValues);\n };\n\n static addTime(time: number | Date, offset: string | number, isOffsetInMinutes?: boolean): number {\n const date: Date = new Date(time);\n\n if (typeof offset === 'string') {\n if (offset[1] === 'm' || offset[2] === 'm') {\n offset = parseInt(offset, 10);\n date.setMonth(date.getMonth() - offset);\n time = date.getTime();\n } else if (offset[1] === 'y' || offset[2] === 'y') {\n offset = parseInt(offset, 10);\n date.setFullYear(date.getFullYear() - offset);\n time = date.getTime();\n } else {\n time = date.getTime();\n if (isOffsetInMinutes) {\n time -= (parseInt(offset, 10) || 0) * 60000;\n } else {\n time -= (parseInt(offset, 10) || 0) * 1000;\n }\n }\n } else {\n offset = offset || 0;\n time = date.getTime();\n if (isOffsetInMinutes) {\n time -= offset * 60000;\n } else {\n time -= offset * 1000;\n }\n }\n return time;\n }\n\n async exportData(from: number, to: number, excludes?: string[]): Promise<{ [objectId: string]: SeriesData[] }> {\n // read all raw data\n const result: { [objectId: string]: SeriesData[] } = {};\n for (let i = 0; i < this.config.l.length; i++) {\n if (excludes?.includes(this.config.l[i].id) || !this.config.l[i] || !this.config.l[i].id) {\n continue;\n }\n let data = await this.readOneRawChart(\n this.config.l[i].id,\n this.config.l[i].instance || this.defaultHistory,\n from,\n to,\n );\n let _from = data?.length ? data[data.length - 1].ts + 1 : 0;\n let values = data;\n while (values?.length === 2000) {\n values = await this.readOneRawChart(\n this.config.l[i].id,\n this.config.l[i].instance || this.defaultHistory,\n _from,\n to,\n );\n _from = values && values.length ? values[values.length - 1].ts + 1 : 0;\n data = data.concat(values);\n }\n if (values) {\n result[this.config.l[i].id] = values;\n }\n }\n\n return result;\n }\n\n async readData(): Promise {\n if (this.readOnZoomTimeout) {\n clearTimeout(this.readOnZoomTimeout);\n this.readOnZoomTimeout = null;\n }\n\n this.now = Date.now();\n console.log(`Read till ${new Date(this.now).toString()}`);\n this.sessionId = this.sessionId || 0;\n this.sessionId++;\n if (this.sessionId > 0xffffff) {\n this.sessionId = 1;\n }\n\n if (this.config.l) {\n this.reading = true;\n this.onReadingFunc && this.onReadingFunc(true);\n\n // todo\n // if (config.renderer === 'pie' || (config.renderer === 'bar' && config._ids.length > 1)) {\n //\n // seriesData = [[]];\n // for (const j = 0; j < config._ids.length; j++) {\n // readOneValue(config._ids[j], j, function (_id, _index, value) {\n // if (config.renderer === 'pie') {\n // seriesData[0][_index] = {label: config.l[_index].name, data: value};\n // } else {\n // seriesData[0][_index] = [config.l[_index].name, value];\n // }\n // if (_index === config._ids.length - 1) {\n // graphCreate(divId, );\n // }\n // });\n // }\n // } else {\n this.seriesData = [];\n this.barData = [];\n this.barCategories = null;\n\n await this._readData();\n // use units from common axis\n for (let i = 0; i < this.config.l.length; i++) {\n if (this.config.l[i].commonYAxis || this.config.l[i].commonYAxis === 0) {\n this.config.l[i].unit = this.config.l[this.config.l[i].commonYAxis].unit;\n }\n }\n\n await this.readTicks();\n await this.readMarkings();\n /* if (!this.subscribed) {\n this.subscribed = true;\n await this.subscribeAll(this.subscribes));\n } */\n this.reading = false;\n\n this.updateData();\n } else {\n this.onErrorFunc && this.onErrorFunc(new Error('No config provided'));\n this.onReadingFunc && this.onReadingFunc(false);\n this.reading = false;\n }\n }\n}\n\nexport default ChartModel;\n"]} \ No newline at end of file diff --git a/build-backend/main.js b/build-backend/main.js index 3c05e81b..a29bde93 100644 --- a/build-backend/main.js +++ b/build-backend/main.js @@ -26,6 +26,7 @@ require("moment/locale/zh-cn"); require("moment/locale/de"); const socketSimulator_1 = require("./lib/socketSimulator"); const echarts_1 = require("echarts"); +const canvas_1 = require("canvas"); // let echartsInit: // | ((canvas: HTMLElement | null, theme?: string | object | null, opts?: EChartsInitOpts) => EChartsType) // | undefined; @@ -105,7 +106,7 @@ class EchartsAdapter extends adapter_core_1.Adapter { data = `data:image/png;base64,${canvas .toBuffer('image/png', { compressionLevel: options.compressionLevel || 3, - filters: options.filters || canvas.PNG_FILTER_NONE, + filters: options.filters || canvas_1.Canvas.PNG_FILTER_NONE, }) .toString('base64')}`; break; diff --git a/build-backend/main.js.map b/build-backend/main.js.map index bad503d8..6ad31ac8 100644 --- a/build-backend/main.js.map +++ b/build-backend/main.js.map @@ -1 +1 @@ -{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA;;;;;;;;GAQG;AACH,yDAAsE;AACtE,qCAAsD;AACtD,iDAAqE;AACrE,mDAA4C;AAC5C,iCAAiC;AACjC,+BAA6B;AAC7B,4BAA0B;AAC1B,4BAA0B;AAC1B,4BAA0B;AAC1B,4BAA0B;AAC1B,4BAA0B;AAC1B,4BAA0B;AAC1B,4BAA0B;AAC1B,+BAA6B;AAC7B,4BAA0B;AAE1B,2DAAkD;AAClD,qCAAgE;AAIhE,mBAAmB;AACnB,8GAA8G;AAC9G,mBAAmB;AACnB,IAAI,YAA2F,CAAC;AAChG,IAAI,UAAoC,CAAC;AAEzC,SAAS,aAAa,CAAC,IAAY,EAAE,QAA0B;IAC3D,kBAAkB;IAClB,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,UAAU,CAAC,QAAkB,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AACpF,CAAC;AAED,MAAM,cAAe,SAAQ,sBAAO;IACzB,iBAAiB,GAAG,CAAC,CAAC;IACtB,iBAAiB,GAAG,EAAE,CAAC;IACtB,eAAe,GAAuE,EAAE,CAAC;IACzF,eAAe,GAAe,IAAI,CAAC;IAE3C,YAAmB,UAAmC,EAAE;QACpD,KAAK,CAAC;YACF,GAAG,OAAO;YACV,IAAI,EAAE,SAAS;SAClB,CAAC,CAAC;QACH,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACpC,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,MAAM,IAAI,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IACnF,CAAC;IAED,qDAAqD;IACrD,KAAK,CAAC,WAAW,CAAC,OAAuB;QACrC,IAAI,CAAC,YAAY,EAAE,CAAC;YAChB,IAAI,CAAC;gBACD,YAAY,GAAG,CAAC,2CAAa,QAAQ,EAAC,CAAC,CAAC,YAAY,CAAC;gBACrD,UAAU,GAAG,CAAC,2CAAa,OAAO,EAAC,CAAC,CAAC,KAAK,CAAC;gBAC3C,IAAI,CAAC,eAAe,GAAG,IAAA,2BAAS,EAAC,IAAI,CAAC,CAAC;YAC3C,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iCAAiC,CAAC,EAAE,CAAC,CAAC;gBACrD,MAAM,IAAI,KAAK,CACX,oGAAoG,CACvG,CAAC;YACN,CAAC;QACL,CAAC;QAED,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,OAAO,CAAC,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,KAA0B,CAAC,IAAI,IAAI,CAAC;YACvE,OAAO,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,MAA2B,CAAC,IAAI,GAAG,CAAC;YAExE,MAAM,SAAS,GAAG,IAAI,oBAAU,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;YAE7F,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YAEzD,SAAS,CAAC,QAAQ,CACd,CACI,UAA8B,EAC9B,aAAoD,EACpD,aAAwB,EAC1B,EAAE;gBACA,MAAM,YAAY,GAAG,SAAS,CAAC,eAAe,EAAE,CAAC;gBACjD,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,QAAQ,IAAI,IAAI,CAAC,CAAC;gBAC9C,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC;gBAE5D,MAAM,WAAW,GAAG,IAAI,qBAAW,CAAC,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC;gBAClE,MAAM,MAAM,GAAG,WAAW,CAAC,SAAS,CAChC,UAAU,EACV,SAAS,CAAC,SAAS,EAAqB,EACxC,IAAI,EACJ,aAAa,CAChB,CAAC;gBACF,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,UAAU,EAAE,CAAC;gBAEpC,8BAA8B;gBAC9B,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;gBACvB,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;gBACpC,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;gBAElC,IAAI,KAAkB,CAAC;gBACvB,IAAI,MAA0B,CAAC;gBAC/B,IAAI,IAAgC,CAAC;gBACrC,IAAI,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,KAAK,KAAK,EAAE,CAAC;oBACjD,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;oBACrD,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;oBAC7B,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;oBAC/B,KAAK,GAAG,IAAA,cAAW,EAAC,MAAgC,CAAC,CAAC;oBACtD,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;wBACrB,MAAM,CAAC,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC;oBAChD,CAAC;gBACL,CAAC;qBAAM,CAAC;oBACJ,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;oBAC5C,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,UAAU,OAAO,CAAC,KAAK,eAAe,OAAO,CAAC,MAAM,MACrE,OAAO,CAAC,UAAU;wBACd,CAAC,CAAC,gBAAgB,OAAO,CAAC,UAAU,EAAE;wBACtC,CAAC,CAAC,KAAK,KAAK,MAAM;4BAChB,CAAC,CAAC,oBAAoB;4BACtB,CAAC,CAAC,EACZ,EAAE,CAAC;oBACH,KAAK,GAAG,IAAA,cAAW,EAAC,IAAI,EAAE,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;gBAC9D,CAAC;gBAED,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;gBAExB,IAAI,IAAY,CAAC;gBACjB,QAAQ,OAAO,CAAC,QAAQ,IAAI,EAAE,EAAE,CAAC;oBAC7B,KAAK,KAAK,CAAC,CAAC,CAAC;wBACT,IAAI,GAAG,yBAAyB,MAAM;6BACjC,QAAQ,CAAC,WAAW,EAAE;4BACnB,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,IAAI,CAAC;4BAC/C,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,MAAM,CAAC,eAAe;yBACxC,CAAC;6BACd,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;wBAC1B,MAAM;oBACV,CAAC;oBACD,KAAK,KAAK,CAAC,CAAC,CAAC;wBACT,IAAI,GAAG,0BAA0B,MAAM;6BAClC,QAAQ,CAAC,YAAY,EAAE;4BACpB,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,GAAG;yBACpB,CAAC;6BACf,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;wBAC1B,MAAM;oBACV,CAAC;oBACD,KAAK,KAAK,CAAC,CAAC,CAAC;wBACT,IAAI,GAAG,+BAA+B,MAAM;6BACvC,QAAQ,CAAC,iBAAiB,EAAE;4BACzB,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,gBAAgB;4BACxC,YAAY,EAAE,IAAI,IAAI,EAAE;yBACd,CAAC;6BACd,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;wBAC1B,MAAM;oBACV,CAAC;oBACD,KAAK,EAAE,CAAC;oBACR,KAAK,KAAK,CAAC,CAAC,CAAC;wBACT,MAAM,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC;wBAChD,IAAI,GAAG,6BAA6B,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;wBAC1E,MAAM;oBACV,CAAC;oBACD;wBACI,MAAM,CAAC,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC;wBACxC,OAAO;gBACf,CAAC;gBAED,KAAK,EAAE,OAAO,EAAE,CAAC;gBAEjB,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;oBACrB,IAAA,uBAAa,EAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;gBACjF,CAAC;gBACD,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;oBACnB,IAAI,CAAC,SAAS,CACV,IAAI,CAAC,SAAS,EACd,OAAO,CAAC,QAAQ,EAChB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,EACzC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAC7C,CAAC;gBACN,CAAC;qBAAM,CAAC;oBACJ,OAAO,CAAC,IAAI,CAAC,CAAC;gBAClB,CAAC;YACL,CAAC,CACJ,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,eAAe;QACjB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;QAC/D,IAAI,GAAG,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YACjC,GAAG,CAAC,KAAK,CAAC,KAAK,GAAG;gBACd,GAAG,EAAE,gEAAgE;aACxE,CAAC;YACF,MAAM,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YAC/C,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,cAAc,CAAC,GAAqB;QAChC,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC;YAChB,OAAO;QACX,CAAC;QAED,iCAAiC;QACjC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACzC,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,iBAAiB,KAAK,IAAI,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,iBAAiB,GAAG,GAAG,EAAE,CAAC;YACzG,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CACjB,4CAA4C,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,iBAAiB,QAAQ,IAAI,EAAE,CAChG,CAAC;QACN,CAAC;QAED,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACpC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;QAE9B,MAAM,OAAO,GAAmB,GAAG,CAAC,OAAO,CAAC;QAE5C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;YACnB,IAAI,CAAC,GAAG,CAAC,KAAK,CACV,mGAAmG,CACtG,CAAC;YACF,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;gBACf,IAAI,CAAC,MAAM,CACP,GAAG,CAAC,IAAI,EACR,MAAM,EACN;oBACI,KAAK,EAAE,mGAAmG;iBAC7G,EACD,GAAG,CAAC,QAAQ,CACf,CAAC;YACN,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,0BAA0B;YAC1B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;gBAC/C,IAAI,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;oBAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;gBACxC,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,IACI,OAAO,CAAC,KAAK;gBACb,CAAC,OAAO,CAAC,YAAY;gBACrB,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC;gBACpC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,GAAG,EAAE,EACvD,CAAC;gBACC,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;oBACf,IAAI,CAAC,MAAM,CACP,GAAG,CAAC,IAAI,EACR,MAAM,EACN;wBACI,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI;wBAC/C,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK;qBACpD,EACD,GAAG,CAAC,QAAQ,CACf,CAAC;gBACN,CAAC;YACL,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;qBACpB,IAAI,CAAC,IAAI,CAAC,EAAE;oBACT,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;wBAChB,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;4BACxC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG;gCACnC,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI;gCACrC,IAAI;gCACJ,KAAK,EAAE,IAAI;6BACd,CAAC;wBACN,CAAC;6BAAM,CAAC;4BACJ,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;4BAC5E,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC;4BACjD,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC;wBACtD,CAAC;oBACL,CAAC;oBACD,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;wBACf,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;oBAC1D,CAAC;gBACL,CAAC,CAAC;qBACD,KAAK,CAAC,KAAK,CAAC,EAAE;oBACX,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;wBAChB,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;4BACxC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG;gCACnC,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI;gCACrC,IAAI,EAAE,IAAI;gCACV,KAAK;6BACR,CAAC;wBACN,CAAC;6BAAM,CAAC;4BACJ,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;4BAC5E,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC;4BACjD,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,GAAG,KAAK,CAAC;wBACvD,CAAC;oBACL,CAAC;oBACD,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;wBACf,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;oBAC3D,CAAC;gBACL,CAAC,CAAC,CAAC;YACX,CAAC;QACL,CAAC;IACL,CAAC;IAED,KAAK,CAAC,IAAI;QACN,oBAAoB;QACpB,IAAI,YAAY,GAA6C,MAAM,IAAI,CAAC,qBAAqB,CAAC,eAAe,CAAC,CAAC;QAC/G,MAAM,IAAI,GAAQ,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,GAAG,SAAS,qBAAqB,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CACvG,CAAC,EAAmB,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,KAAK,eAAe,CACtD,CAAC;QAEF,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YAC/F,YAAY,GAAG,EAAE,QAAQ,EAAE,YAAY,EAA2B,CAAC;YACnE,YAAY,CAAC,KAAK,GAAG,IAAI,EAAE,KAAK;gBAC5B,CAAC,CAAC,IAAI,CAAC,KAAK;gBACZ,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,iEAAiE,EAAE,EAAE,CAAC;YAC5F,MAAM,IAAI,CAAC,qBAAqB,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;QACpE,CAAC;QAED,qBAAqB;QACrB,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;QACxE,IAAI,YAAY,EAAE,KAAK,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YACnD,YAAY,CAAC,KAAK,CAAC,KAAK,GAAG;gBACvB,GAAG,EAAE,iEAAiE;aACzE,CAAC;YACF,MAAM,IAAI,CAAC,qBAAqB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;QACrE,CAAC;QAED,sCAAsC;QACtC,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,kBAAkB,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QAC7F,IACI,eAAe,EAAE,MAAM;YACvB,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,EAClF,CAAC;YACC,eAAe,CAAC,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC;YACvC,eAAe,CAAC,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC;YACzC,MAAM,IAAI,CAAC,qBAAqB,CAAC,eAAe,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC;QAC3E,CAAC;QAED,IAAI,MAAM,IAAI,CAAC,eAAe,EAAE,EAAE,CAAC;YAC/B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;QACxD,CAAC;QAED;;;;iBAIS;IACb,CAAC;CACJ;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC1B,yCAAyC;IACzC,MAAM,CAAC,OAAO,GAAG,CAAC,OAA4C,EAAE,EAAE,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;AACnG,CAAC;KAAM,CAAC;IACJ,wCAAwC;IACxC,CAAC,GAAG,EAAE,CAAC,IAAI,cAAc,EAAE,CAAC,EAAE,CAAC;AACnC,CAAC","sourcesContent":["/**\n *\n * ioBroker echarts Adapter\n *\n * (c) 2020-2024 bluefox \n *\n * MIT License\n *\n */\nimport { Adapter, type AdapterOptions } from '@iobroker/adapter-core';\nimport { readFileSync, writeFileSync } from 'node:fs';\nimport ChartModel, { type BarAndLineSeries } from './lib/ChartModel';\nimport ChartOption from './lib/ChartOption';\nimport * as moment from 'moment';\nimport 'moment/locale/en-gb';\nimport 'moment/locale/es';\nimport 'moment/locale/fr';\nimport 'moment/locale/pl';\nimport 'moment/locale/pt';\nimport 'moment/locale/it';\nimport 'moment/locale/nl';\nimport 'moment/locale/ru';\nimport 'moment/locale/zh-cn';\nimport 'moment/locale/de';\nimport type { EchartsOptions, Connection, ChartConfigMore } from './types';\nimport { getSocket } from './lib/socketSimulator';\nimport { type EChartsType, init as echartsInit } from 'echarts';\nimport type { Canvas, JpegConfig, PdfConfig, PngConfig } from 'canvas';\nimport { type JSDOM } from 'jsdom';\n\n// let echartsInit:\n// | ((canvas: HTMLElement | null, theme?: string | object | null, opts?: EChartsInitOpts) => EChartsType)\n// | undefined;\nlet createCanvas: ((width: number, height: number, type?: 'pdf' | 'svg') => Canvas) | undefined;\nlet JsDomClass: typeof JSDOM | undefined;\n\nfunction calcTextWidth(text: string, fontSize?: number | string): number {\n // try to simulate\n return Math.ceil((text.length * (parseFloat(fontSize as string) || 12)) / 0.75);\n}\n\nclass EchartsAdapter extends Adapter {\n public __lastMessageTime = 0;\n public __lastMessageText = '';\n private cachedSnapshots: Record = {};\n private socketSimulator: Connection = null;\n\n public constructor(options: Partial = {}) {\n super({\n ...options,\n name: 'echarts',\n });\n this.on('ready', () => this.main());\n this.on('message', obj => obj?.command === 'send' && this.processMessage(obj));\n }\n\n // Todo: queue requests as global.window is \"global\"\n async renderImage(options: EchartsOptions): Promise {\n if (!createCanvas) {\n try {\n createCanvas = (await import('canvas')).createCanvas;\n JsDomClass = (await import('jsdom')).JSDOM;\n this.socketSimulator = getSocket(this);\n } catch (e) {\n this.log.error(`Cannot find required modules: ${e}`);\n throw new Error(\n 'Cannot find required modules: looks like it is not possible to generate charts on your Hardware/OS',\n );\n }\n }\n\n return new Promise((resolve, reject) => {\n options.width = parseFloat(options.width as unknown as string) || 1024;\n options.height = parseFloat(options.height as unknown as string) || 300;\n\n const chartData = new ChartModel(this.socketSimulator, options.preset, { serverSide: true });\n\n chartData.onError(err => this.log.error(err.toString()));\n\n chartData.onUpdate(\n (\n seriesData: BarAndLineSeries[],\n _actualValues?: (number | null | boolean | string)[],\n barCategories?: number[],\n ) => {\n const systemConfig = chartData.getSystemConfig();\n moment.locale(systemConfig?.language || 'en');\n const theme = options.theme || options.themeType || 'light';\n\n const chartOption = new ChartOption(moment, theme, calcTextWidth);\n const option = chartOption.getOption(\n seriesData,\n chartData.getConfig() as ChartConfigMore,\n null,\n barCategories,\n );\n const { window } = new JsDomClass();\n\n // @ts-expect-error must be so\n global.window = window;\n global.navigator = window.navigator;\n global.document = window.document;\n\n let chart: EChartsType;\n let canvas: Canvas | undefined;\n let root: HTMLDivElement | undefined;\n if (options.renderer && options.renderer !== 'svg') {\n canvas = createCanvas(options.width, options.height);\n canvas.width = options.width;\n canvas.height = options.height;\n chart = echartsInit(canvas as unknown as HTMLElement);\n if (options.background) {\n option.backgroundColor = options.background;\n }\n } else {\n root = global.document.createElement('div');\n root.style.cssText = `width: ${options.width}px; height: ${options.height}px;${\n options.background\n ? ` background: ${options.background}`\n : theme === 'dark'\n ? ' background: #000;'\n : ''\n }`;\n chart = echartsInit(root, undefined, { renderer: 'svg' });\n }\n\n chart.setOption(option);\n\n let data: string;\n switch (options.renderer || '') {\n case 'png': {\n data = `data:image/png;base64,${canvas\n .toBuffer('image/png', {\n compressionLevel: options.compressionLevel || 3,\n filters: options.filters || canvas.PNG_FILTER_NONE,\n } as PngConfig)\n .toString('base64')}`;\n break;\n }\n case 'jpg': {\n data = `data:image/jpeg;base64,${canvas\n .toBuffer('image/jpeg', {\n quality: options.quality || 0.8,\n } as JpegConfig)\n .toString('base64')}`;\n break;\n }\n case 'pdf': {\n data = `data:application/pdf;base64,${canvas\n .toBuffer('application/pdf', {\n title: options.title || 'ioBroker Chart',\n creationDate: new Date(),\n } as PdfConfig)\n .toString('base64')}`;\n break;\n }\n case '':\n case 'svg': {\n const svg = root.querySelector('svg').outerHTML;\n data = `data:image/svg+xml;base64,${Buffer.from(svg).toString('base64')}`;\n break;\n }\n default:\n reject(new Error('Unsupported format'));\n return;\n }\n\n chart?.dispose();\n\n if (options.fileOnDisk) {\n writeFileSync(options.fileOnDisk, Buffer.from(data.split(',')[1], 'base64'));\n }\n if (options.fileName) {\n this.writeFile(\n this.namespace,\n options.fileName,\n Buffer.from(data.split(',')[1], 'base64'),\n err => (err ? reject(err) : resolve(data)),\n );\n } else {\n resolve(data);\n }\n },\n );\n });\n }\n\n async fixSystemObject(): Promise {\n const obj = await this.getForeignObjectAsync('_design/system');\n if (obj?.views && !obj.views.chart) {\n obj.views.chart = {\n map: `function(doc) { if (doc.type === 'chart') emit(doc._id, doc) }`,\n };\n await this.setForeignObjectAsync(obj._id, obj);\n return true;\n }\n return false;\n }\n\n processMessage(obj: ioBroker.Message): void {\n if (!obj?.message) {\n return;\n }\n\n // filter out the double messages\n const json = JSON.stringify(obj.message);\n if (this.__lastMessageTime && this.__lastMessageText === json && Date.now() - this.__lastMessageTime < 300) {\n return this.log.debug(\n `Filter out double message [first was for ${Date.now() - this.__lastMessageTime}ms]: ${json}`,\n );\n }\n\n this.__lastMessageTime = Date.now();\n this.__lastMessageText = json;\n\n const message: EchartsOptions = obj.message;\n\n if (!message?.preset) {\n this.log.error(\n 'Please define settings: {\"preset\": \"echarts.0.XXX\", width: 500, height: 200, renderer: \"png/svg\"}',\n );\n if (obj.callback) {\n this.sendTo(\n obj.from,\n 'send',\n {\n error: 'Please define settings: {\"preset\": \"echarts.0.XXX\", width: 500, height: 200, renderer: \"svg/png\"}',\n },\n obj.callback,\n );\n }\n } else {\n // delete cached snapshots\n Object.keys(this.cachedSnapshots).forEach(preset => {\n if (this.cachedSnapshots[preset].ts < Date.now()) {\n delete this.cachedSnapshots[preset];\n }\n });\n\n if (\n message.cache &&\n !message.forceRefresh &&\n this.cachedSnapshots[message.preset] &&\n this.cachedSnapshots[message.preset].ts >= Date.now()\n ) {\n if (obj.callback) {\n this.sendTo(\n obj.from,\n 'send',\n {\n data: this.cachedSnapshots[message.preset].data,\n error: this.cachedSnapshots[message.preset].error,\n },\n obj.callback,\n );\n }\n } else {\n this.renderImage(message)\n .then(data => {\n if (message.cache) {\n if (!this.cachedSnapshots[message.preset]) {\n this.cachedSnapshots[message.preset] = {\n ts: Date.now() + message.cache * 1000,\n data,\n error: null,\n };\n } else {\n this.cachedSnapshots[message.preset].ts = Date.now() + message.cache * 1000;\n this.cachedSnapshots[message.preset].data = data;\n this.cachedSnapshots[message.preset].error = null;\n }\n }\n if (obj.callback) {\n this.sendTo(obj.from, 'send', { data }, obj.callback);\n }\n })\n .catch(error => {\n if (message.cache) {\n if (!this.cachedSnapshots[message.preset]) {\n this.cachedSnapshots[message.preset] = {\n ts: Date.now() + message.cache * 1000,\n data: null,\n error,\n };\n } else {\n this.cachedSnapshots[message.preset].ts = Date.now() + message.cache * 1000;\n this.cachedSnapshots[message.preset].data = null;\n this.cachedSnapshots[message.preset].error = error;\n }\n }\n if (obj.callback) {\n this.sendTo(obj.from, 'send', { error }, obj.callback);\n }\n });\n }\n }\n }\n\n async main(): Promise {\n // fix _design/chart\n let designObject: ioBroker.DesignObject | null | undefined = await this.getForeignObjectAsync('_design/chart');\n const _obj: any = JSON.parse(readFileSync(`${__dirname}/../io-package.json`).toString('utf8')).objects.find(\n (ob: ioBroker.Object) => ob._id === '_design/chart',\n );\n\n if (!designObject || (_obj && JSON.stringify(designObject.views) !== JSON.stringify(_obj.views))) {\n designObject = { language: 'javascript' } as ioBroker.DesignObject;\n designObject.views = _obj?.views\n ? _obj.views\n : { chart: { map: `function(doc) { if (doc.type === 'chart') emit(doc._id, doc); }` } };\n await this.setForeignObjectAsync('_design/chart', designObject);\n }\n\n // fix _design/system\n const systemDesign = await this.getForeignObjectAsync('_design/system');\n if (systemDesign?.views && !systemDesign.views.chart) {\n systemDesign.views.chart = {\n map: \"function(doc) { if (doc.type === 'chart') emit(doc._id, doc); }\",\n };\n await this.setForeignObjectAsync('_design/system', systemDesign);\n }\n\n // enabled mode daemon and message box\n const adapterInstance = await this.getForeignObjectAsync(`system.adapter.${this.namespace}`);\n if (\n adapterInstance?.common &&\n (adapterInstance.common.mode !== 'daemon' || !adapterInstance.common.messagebox)\n ) {\n adapterInstance.common.mode = 'daemon';\n adapterInstance.common.messagebox = true;\n await this.setForeignObjectAsync(adapterInstance._id, adapterInstance);\n }\n\n if (await this.fixSystemObject()) {\n this.log.debug('Added chart view to system object');\n }\n\n /*renderImage({preset: 'Test', theme: 'dark', renderer: 'png', background: '#000000'})\n .then(data => {\n const base64 = Buffer.from(data.split(',')[1], 'base64');\n require('fs').writeFileSync('image.png', base64);\n });*/\n }\n}\n\nif (require.main !== module) {\n // Export the constructor in compact mode\n module.exports = (options: Partial | undefined) => new EchartsAdapter(options);\n} else {\n // otherwise start the instance directly\n (() => new EchartsAdapter())();\n}\n"]} \ No newline at end of file +{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA;;;;;;;;GAQG;AACH,yDAAsE;AACtE,qCAAsD;AACtD,iDAAqE;AACrE,mDAA4C;AAC5C,iCAAiC;AACjC,+BAA6B;AAC7B,4BAA0B;AAC1B,4BAA0B;AAC1B,4BAA0B;AAC1B,4BAA0B;AAC1B,4BAA0B;AAC1B,4BAA0B;AAC1B,4BAA0B;AAC1B,+BAA6B;AAC7B,4BAA0B;AAE1B,2DAAkD;AAClD,qCAAgE;AAChE,mCAAiF;AAGjF,mBAAmB;AACnB,8GAA8G;AAC9G,mBAAmB;AACnB,IAAI,YAA2F,CAAC;AAChG,IAAI,UAAoC,CAAC;AAEzC,SAAS,aAAa,CAAC,IAAY,EAAE,QAA0B;IAC3D,kBAAkB;IAClB,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,UAAU,CAAC,QAAkB,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AACpF,CAAC;AAED,MAAM,cAAe,SAAQ,sBAAO;IACzB,iBAAiB,GAAG,CAAC,CAAC;IACtB,iBAAiB,GAAG,EAAE,CAAC;IACtB,eAAe,GAAuE,EAAE,CAAC;IACzF,eAAe,GAAe,IAAI,CAAC;IAE3C,YAAmB,UAAmC,EAAE;QACpD,KAAK,CAAC;YACF,GAAG,OAAO;YACV,IAAI,EAAE,SAAS;SAClB,CAAC,CAAC;QACH,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACpC,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,MAAM,IAAI,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IACnF,CAAC;IAED,qDAAqD;IACrD,KAAK,CAAC,WAAW,CAAC,OAAuB;QACrC,IAAI,CAAC,YAAY,EAAE,CAAC;YAChB,IAAI,CAAC;gBACD,YAAY,GAAG,CAAC,2CAAa,QAAQ,EAAC,CAAC,CAAC,YAAY,CAAC;gBACrD,UAAU,GAAG,CAAC,2CAAa,OAAO,EAAC,CAAC,CAAC,KAAK,CAAC;gBAC3C,IAAI,CAAC,eAAe,GAAG,IAAA,2BAAS,EAAC,IAAI,CAAC,CAAC;YAC3C,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iCAAiC,CAAC,EAAE,CAAC,CAAC;gBACrD,MAAM,IAAI,KAAK,CACX,oGAAoG,CACvG,CAAC;YACN,CAAC;QACL,CAAC;QAED,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,OAAO,CAAC,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,KAA0B,CAAC,IAAI,IAAI,CAAC;YACvE,OAAO,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,MAA2B,CAAC,IAAI,GAAG,CAAC;YAExE,MAAM,SAAS,GAAG,IAAI,oBAAU,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;YAE7F,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YAEzD,SAAS,CAAC,QAAQ,CACd,CACI,UAA8B,EAC9B,aAAoD,EACpD,aAAwB,EAC1B,EAAE;gBACA,MAAM,YAAY,GAAG,SAAS,CAAC,eAAe,EAAE,CAAC;gBACjD,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,QAAQ,IAAI,IAAI,CAAC,CAAC;gBAC9C,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC;gBAE5D,MAAM,WAAW,GAAG,IAAI,qBAAW,CAAC,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC;gBAClE,MAAM,MAAM,GAAG,WAAW,CAAC,SAAS,CAChC,UAAU,EACV,SAAS,CAAC,SAAS,EAAqB,EACxC,IAAI,EACJ,aAAa,CAChB,CAAC;gBACF,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,UAAU,EAAE,CAAC;gBAEpC,8BAA8B;gBAC9B,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;gBACvB,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;gBACpC,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;gBAElC,IAAI,KAAkB,CAAC;gBACvB,IAAI,MAA0B,CAAC;gBAC/B,IAAI,IAAgC,CAAC;gBACrC,IAAI,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,KAAK,KAAK,EAAE,CAAC;oBACjD,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;oBACrD,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;oBAC7B,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;oBAC/B,KAAK,GAAG,IAAA,cAAW,EAAC,MAAgC,CAAC,CAAC;oBACtD,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;wBACrB,MAAM,CAAC,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC;oBAChD,CAAC;gBACL,CAAC;qBAAM,CAAC;oBACJ,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;oBAC5C,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,UAAU,OAAO,CAAC,KAAK,eAAe,OAAO,CAAC,MAAM,MACrE,OAAO,CAAC,UAAU;wBACd,CAAC,CAAC,gBAAgB,OAAO,CAAC,UAAU,EAAE;wBACtC,CAAC,CAAC,KAAK,KAAK,MAAM;4BAChB,CAAC,CAAC,oBAAoB;4BACtB,CAAC,CAAC,EACZ,EAAE,CAAC;oBACH,KAAK,GAAG,IAAA,cAAW,EAAC,IAAI,EAAE,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;gBAC9D,CAAC;gBAED,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;gBAExB,IAAI,IAAY,CAAC;gBACjB,QAAQ,OAAO,CAAC,QAAQ,IAAI,EAAE,EAAE,CAAC;oBAC7B,KAAK,KAAK,CAAC,CAAC,CAAC;wBACT,IAAI,GAAG,yBAAyB,MAAM;6BACjC,QAAQ,CAAC,WAAW,EAAE;4BACnB,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,IAAI,CAAC;4BAC/C,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,eAAM,CAAC,eAAe;yBACxC,CAAC;6BACd,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;wBAC1B,MAAM;oBACV,CAAC;oBACD,KAAK,KAAK,CAAC,CAAC,CAAC;wBACT,IAAI,GAAG,0BAA0B,MAAM;6BAClC,QAAQ,CAAC,YAAY,EAAE;4BACpB,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,GAAG;yBACpB,CAAC;6BACf,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;wBAC1B,MAAM;oBACV,CAAC;oBACD,KAAK,KAAK,CAAC,CAAC,CAAC;wBACT,IAAI,GAAG,+BAA+B,MAAM;6BACvC,QAAQ,CAAC,iBAAiB,EAAE;4BACzB,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,gBAAgB;4BACxC,YAAY,EAAE,IAAI,IAAI,EAAE;yBACd,CAAC;6BACd,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;wBAC1B,MAAM;oBACV,CAAC;oBACD,KAAK,EAAE,CAAC;oBACR,KAAK,KAAK,CAAC,CAAC,CAAC;wBACT,MAAM,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC;wBAChD,IAAI,GAAG,6BAA6B,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;wBAC1E,MAAM;oBACV,CAAC;oBACD;wBACI,MAAM,CAAC,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC;wBACxC,OAAO;gBACf,CAAC;gBAED,KAAK,EAAE,OAAO,EAAE,CAAC;gBAEjB,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;oBACrB,IAAA,uBAAa,EAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;gBACjF,CAAC;gBACD,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;oBACnB,IAAI,CAAC,SAAS,CACV,IAAI,CAAC,SAAS,EACd,OAAO,CAAC,QAAQ,EAChB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,EACzC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAC7C,CAAC;gBACN,CAAC;qBAAM,CAAC;oBACJ,OAAO,CAAC,IAAI,CAAC,CAAC;gBAClB,CAAC;YACL,CAAC,CACJ,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,eAAe;QACjB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;QAC/D,IAAI,GAAG,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YACjC,GAAG,CAAC,KAAK,CAAC,KAAK,GAAG;gBACd,GAAG,EAAE,gEAAgE;aACxE,CAAC;YACF,MAAM,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YAC/C,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,cAAc,CAAC,GAAqB;QAChC,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC;YAChB,OAAO;QACX,CAAC;QAED,iCAAiC;QACjC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACzC,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,iBAAiB,KAAK,IAAI,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,iBAAiB,GAAG,GAAG,EAAE,CAAC;YACzG,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CACjB,4CAA4C,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,iBAAiB,QAAQ,IAAI,EAAE,CAChG,CAAC;QACN,CAAC;QAED,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACpC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;QAE9B,MAAM,OAAO,GAAmB,GAAG,CAAC,OAAO,CAAC;QAE5C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;YACnB,IAAI,CAAC,GAAG,CAAC,KAAK,CACV,mGAAmG,CACtG,CAAC;YACF,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;gBACf,IAAI,CAAC,MAAM,CACP,GAAG,CAAC,IAAI,EACR,MAAM,EACN;oBACI,KAAK,EAAE,mGAAmG;iBAC7G,EACD,GAAG,CAAC,QAAQ,CACf,CAAC;YACN,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,0BAA0B;YAC1B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;gBAC/C,IAAI,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;oBAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;gBACxC,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,IACI,OAAO,CAAC,KAAK;gBACb,CAAC,OAAO,CAAC,YAAY;gBACrB,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC;gBACpC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,GAAG,EAAE,EACvD,CAAC;gBACC,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;oBACf,IAAI,CAAC,MAAM,CACP,GAAG,CAAC,IAAI,EACR,MAAM,EACN;wBACI,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI;wBAC/C,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK;qBACpD,EACD,GAAG,CAAC,QAAQ,CACf,CAAC;gBACN,CAAC;YACL,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;qBACpB,IAAI,CAAC,IAAI,CAAC,EAAE;oBACT,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;wBAChB,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;4BACxC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG;gCACnC,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI;gCACrC,IAAI;gCACJ,KAAK,EAAE,IAAI;6BACd,CAAC;wBACN,CAAC;6BAAM,CAAC;4BACJ,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;4BAC5E,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC;4BACjD,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC;wBACtD,CAAC;oBACL,CAAC;oBACD,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;wBACf,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;oBAC1D,CAAC;gBACL,CAAC,CAAC;qBACD,KAAK,CAAC,KAAK,CAAC,EAAE;oBACX,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;wBAChB,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;4BACxC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG;gCACnC,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI;gCACrC,IAAI,EAAE,IAAI;gCACV,KAAK;6BACR,CAAC;wBACN,CAAC;6BAAM,CAAC;4BACJ,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;4BAC5E,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC;4BACjD,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,GAAG,KAAK,CAAC;wBACvD,CAAC;oBACL,CAAC;oBACD,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;wBACf,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;oBAC3D,CAAC;gBACL,CAAC,CAAC,CAAC;YACX,CAAC;QACL,CAAC;IACL,CAAC;IAED,KAAK,CAAC,IAAI;QACN,oBAAoB;QACpB,IAAI,YAAY,GAA6C,MAAM,IAAI,CAAC,qBAAqB,CAAC,eAAe,CAAC,CAAC;QAC/G,MAAM,IAAI,GAAQ,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,GAAG,SAAS,qBAAqB,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CACvG,CAAC,EAAmB,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,KAAK,eAAe,CACtD,CAAC;QAEF,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YAC/F,YAAY,GAAG,EAAE,QAAQ,EAAE,YAAY,EAA2B,CAAC;YACnE,YAAY,CAAC,KAAK,GAAG,IAAI,EAAE,KAAK;gBAC5B,CAAC,CAAC,IAAI,CAAC,KAAK;gBACZ,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,iEAAiE,EAAE,EAAE,CAAC;YAC5F,MAAM,IAAI,CAAC,qBAAqB,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;QACpE,CAAC;QAED,qBAAqB;QACrB,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;QACxE,IAAI,YAAY,EAAE,KAAK,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YACnD,YAAY,CAAC,KAAK,CAAC,KAAK,GAAG;gBACvB,GAAG,EAAE,iEAAiE;aACzE,CAAC;YACF,MAAM,IAAI,CAAC,qBAAqB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;QACrE,CAAC;QAED,sCAAsC;QACtC,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,kBAAkB,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QAC7F,IACI,eAAe,EAAE,MAAM;YACvB,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,EAClF,CAAC;YACC,eAAe,CAAC,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC;YACvC,eAAe,CAAC,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC;YACzC,MAAM,IAAI,CAAC,qBAAqB,CAAC,eAAe,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC;QAC3E,CAAC;QAED,IAAI,MAAM,IAAI,CAAC,eAAe,EAAE,EAAE,CAAC;YAC/B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;QACxD,CAAC;QAED;;;;iBAIS;IACb,CAAC;CACJ;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC1B,yCAAyC;IACzC,MAAM,CAAC,OAAO,GAAG,CAAC,OAA4C,EAAE,EAAE,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;AACnG,CAAC;KAAM,CAAC;IACJ,wCAAwC;IACxC,CAAC,GAAG,EAAE,CAAC,IAAI,cAAc,EAAE,CAAC,EAAE,CAAC;AACnC,CAAC","sourcesContent":["/**\n *\n * ioBroker echarts Adapter\n *\n * (c) 2020-2024 bluefox \n *\n * MIT License\n *\n */\nimport { Adapter, type AdapterOptions } from '@iobroker/adapter-core';\nimport { readFileSync, writeFileSync } from 'node:fs';\nimport ChartModel, { type BarAndLineSeries } from './lib/ChartModel';\nimport ChartOption from './lib/ChartOption';\nimport * as moment from 'moment';\nimport 'moment/locale/en-gb';\nimport 'moment/locale/es';\nimport 'moment/locale/fr';\nimport 'moment/locale/pl';\nimport 'moment/locale/pt';\nimport 'moment/locale/it';\nimport 'moment/locale/nl';\nimport 'moment/locale/ru';\nimport 'moment/locale/zh-cn';\nimport 'moment/locale/de';\nimport type { EchartsOptions, Connection, ChartConfigMore } from './types';\nimport { getSocket } from './lib/socketSimulator';\nimport { type EChartsType, init as echartsInit } from 'echarts';\nimport { Canvas, type JpegConfig, type PdfConfig, type PngConfig } from 'canvas';\nimport { type JSDOM } from 'jsdom';\n\n// let echartsInit:\n// | ((canvas: HTMLElement | null, theme?: string | object | null, opts?: EChartsInitOpts) => EChartsType)\n// | undefined;\nlet createCanvas: ((width: number, height: number, type?: 'pdf' | 'svg') => Canvas) | undefined;\nlet JsDomClass: typeof JSDOM | undefined;\n\nfunction calcTextWidth(text: string, fontSize?: number | string): number {\n // try to simulate\n return Math.ceil((text.length * (parseFloat(fontSize as string) || 12)) / 0.75);\n}\n\nclass EchartsAdapter extends Adapter {\n public __lastMessageTime = 0;\n public __lastMessageText = '';\n private cachedSnapshots: Record = {};\n private socketSimulator: Connection = null;\n\n public constructor(options: Partial = {}) {\n super({\n ...options,\n name: 'echarts',\n });\n this.on('ready', () => this.main());\n this.on('message', obj => obj?.command === 'send' && this.processMessage(obj));\n }\n\n // Todo: queue requests as global.window is \"global\"\n async renderImage(options: EchartsOptions): Promise {\n if (!createCanvas) {\n try {\n createCanvas = (await import('canvas')).createCanvas;\n JsDomClass = (await import('jsdom')).JSDOM;\n this.socketSimulator = getSocket(this);\n } catch (e) {\n this.log.error(`Cannot find required modules: ${e}`);\n throw new Error(\n 'Cannot find required modules: looks like it is not possible to generate charts on your Hardware/OS',\n );\n }\n }\n\n return new Promise((resolve, reject) => {\n options.width = parseFloat(options.width as unknown as string) || 1024;\n options.height = parseFloat(options.height as unknown as string) || 300;\n\n const chartData = new ChartModel(this.socketSimulator, options.preset, { serverSide: true });\n\n chartData.onError(err => this.log.error(err.toString()));\n\n chartData.onUpdate(\n (\n seriesData: BarAndLineSeries[],\n _actualValues?: (number | null | boolean | string)[],\n barCategories?: number[],\n ) => {\n const systemConfig = chartData.getSystemConfig();\n moment.locale(systemConfig?.language || 'en');\n const theme = options.theme || options.themeType || 'light';\n\n const chartOption = new ChartOption(moment, theme, calcTextWidth);\n const option = chartOption.getOption(\n seriesData,\n chartData.getConfig() as ChartConfigMore,\n null,\n barCategories,\n );\n const { window } = new JsDomClass();\n\n // @ts-expect-error must be so\n global.window = window;\n global.navigator = window.navigator;\n global.document = window.document;\n\n let chart: EChartsType;\n let canvas: Canvas | undefined;\n let root: HTMLDivElement | undefined;\n if (options.renderer && options.renderer !== 'svg') {\n canvas = createCanvas(options.width, options.height);\n canvas.width = options.width;\n canvas.height = options.height;\n chart = echartsInit(canvas as unknown as HTMLElement);\n if (options.background) {\n option.backgroundColor = options.background;\n }\n } else {\n root = global.document.createElement('div');\n root.style.cssText = `width: ${options.width}px; height: ${options.height}px;${\n options.background\n ? ` background: ${options.background}`\n : theme === 'dark'\n ? ' background: #000;'\n : ''\n }`;\n chart = echartsInit(root, undefined, { renderer: 'svg' });\n }\n\n chart.setOption(option);\n\n let data: string;\n switch (options.renderer || '') {\n case 'png': {\n data = `data:image/png;base64,${canvas\n .toBuffer('image/png', {\n compressionLevel: options.compressionLevel || 3,\n filters: options.filters || Canvas.PNG_FILTER_NONE,\n } as PngConfig)\n .toString('base64')}`;\n break;\n }\n case 'jpg': {\n data = `data:image/jpeg;base64,${canvas\n .toBuffer('image/jpeg', {\n quality: options.quality || 0.8,\n } as JpegConfig)\n .toString('base64')}`;\n break;\n }\n case 'pdf': {\n data = `data:application/pdf;base64,${canvas\n .toBuffer('application/pdf', {\n title: options.title || 'ioBroker Chart',\n creationDate: new Date(),\n } as PdfConfig)\n .toString('base64')}`;\n break;\n }\n case '':\n case 'svg': {\n const svg = root.querySelector('svg').outerHTML;\n data = `data:image/svg+xml;base64,${Buffer.from(svg).toString('base64')}`;\n break;\n }\n default:\n reject(new Error('Unsupported format'));\n return;\n }\n\n chart?.dispose();\n\n if (options.fileOnDisk) {\n writeFileSync(options.fileOnDisk, Buffer.from(data.split(',')[1], 'base64'));\n }\n if (options.fileName) {\n this.writeFile(\n this.namespace,\n options.fileName,\n Buffer.from(data.split(',')[1], 'base64'),\n err => (err ? reject(err) : resolve(data)),\n );\n } else {\n resolve(data);\n }\n },\n );\n });\n }\n\n async fixSystemObject(): Promise {\n const obj = await this.getForeignObjectAsync('_design/system');\n if (obj?.views && !obj.views.chart) {\n obj.views.chart = {\n map: `function(doc) { if (doc.type === 'chart') emit(doc._id, doc) }`,\n };\n await this.setForeignObjectAsync(obj._id, obj);\n return true;\n }\n return false;\n }\n\n processMessage(obj: ioBroker.Message): void {\n if (!obj?.message) {\n return;\n }\n\n // filter out the double messages\n const json = JSON.stringify(obj.message);\n if (this.__lastMessageTime && this.__lastMessageText === json && Date.now() - this.__lastMessageTime < 300) {\n return this.log.debug(\n `Filter out double message [first was for ${Date.now() - this.__lastMessageTime}ms]: ${json}`,\n );\n }\n\n this.__lastMessageTime = Date.now();\n this.__lastMessageText = json;\n\n const message: EchartsOptions = obj.message;\n\n if (!message?.preset) {\n this.log.error(\n 'Please define settings: {\"preset\": \"echarts.0.XXX\", width: 500, height: 200, renderer: \"png/svg\"}',\n );\n if (obj.callback) {\n this.sendTo(\n obj.from,\n 'send',\n {\n error: 'Please define settings: {\"preset\": \"echarts.0.XXX\", width: 500, height: 200, renderer: \"svg/png\"}',\n },\n obj.callback,\n );\n }\n } else {\n // delete cached snapshots\n Object.keys(this.cachedSnapshots).forEach(preset => {\n if (this.cachedSnapshots[preset].ts < Date.now()) {\n delete this.cachedSnapshots[preset];\n }\n });\n\n if (\n message.cache &&\n !message.forceRefresh &&\n this.cachedSnapshots[message.preset] &&\n this.cachedSnapshots[message.preset].ts >= Date.now()\n ) {\n if (obj.callback) {\n this.sendTo(\n obj.from,\n 'send',\n {\n data: this.cachedSnapshots[message.preset].data,\n error: this.cachedSnapshots[message.preset].error,\n },\n obj.callback,\n );\n }\n } else {\n this.renderImage(message)\n .then(data => {\n if (message.cache) {\n if (!this.cachedSnapshots[message.preset]) {\n this.cachedSnapshots[message.preset] = {\n ts: Date.now() + message.cache * 1000,\n data,\n error: null,\n };\n } else {\n this.cachedSnapshots[message.preset].ts = Date.now() + message.cache * 1000;\n this.cachedSnapshots[message.preset].data = data;\n this.cachedSnapshots[message.preset].error = null;\n }\n }\n if (obj.callback) {\n this.sendTo(obj.from, 'send', { data }, obj.callback);\n }\n })\n .catch(error => {\n if (message.cache) {\n if (!this.cachedSnapshots[message.preset]) {\n this.cachedSnapshots[message.preset] = {\n ts: Date.now() + message.cache * 1000,\n data: null,\n error,\n };\n } else {\n this.cachedSnapshots[message.preset].ts = Date.now() + message.cache * 1000;\n this.cachedSnapshots[message.preset].data = null;\n this.cachedSnapshots[message.preset].error = error;\n }\n }\n if (obj.callback) {\n this.sendTo(obj.from, 'send', { error }, obj.callback);\n }\n });\n }\n }\n }\n\n async main(): Promise {\n // fix _design/chart\n let designObject: ioBroker.DesignObject | null | undefined = await this.getForeignObjectAsync('_design/chart');\n const _obj: any = JSON.parse(readFileSync(`${__dirname}/../io-package.json`).toString('utf8')).objects.find(\n (ob: ioBroker.Object) => ob._id === '_design/chart',\n );\n\n if (!designObject || (_obj && JSON.stringify(designObject.views) !== JSON.stringify(_obj.views))) {\n designObject = { language: 'javascript' } as ioBroker.DesignObject;\n designObject.views = _obj?.views\n ? _obj.views\n : { chart: { map: `function(doc) { if (doc.type === 'chart') emit(doc._id, doc); }` } };\n await this.setForeignObjectAsync('_design/chart', designObject);\n }\n\n // fix _design/system\n const systemDesign = await this.getForeignObjectAsync('_design/system');\n if (systemDesign?.views && !systemDesign.views.chart) {\n systemDesign.views.chart = {\n map: \"function(doc) { if (doc.type === 'chart') emit(doc._id, doc); }\",\n };\n await this.setForeignObjectAsync('_design/system', systemDesign);\n }\n\n // enabled mode daemon and message box\n const adapterInstance = await this.getForeignObjectAsync(`system.adapter.${this.namespace}`);\n if (\n adapterInstance?.common &&\n (adapterInstance.common.mode !== 'daemon' || !adapterInstance.common.messagebox)\n ) {\n adapterInstance.common.mode = 'daemon';\n adapterInstance.common.messagebox = true;\n await this.setForeignObjectAsync(adapterInstance._id, adapterInstance);\n }\n\n if (await this.fixSystemObject()) {\n this.log.debug('Added chart view to system object');\n }\n\n /*renderImage({preset: 'Test', theme: 'dark', renderer: 'png', background: '#000000'})\n .then(data => {\n const base64 = Buffer.from(data.split(',')[1], 'base64');\n require('fs').writeFileSync('image.png', base64);\n });*/\n }\n}\n\nif (require.main !== module) {\n // Export the constructor in compact mode\n module.exports = (options: Partial | undefined) => new EchartsAdapter(options);\n} else {\n // otherwise start the instance directly\n (() => new EchartsAdapter())();\n}\n"]} \ No newline at end of file diff --git a/package.json b/package.json index a52d45ff..8a52b607 100644 --- a/package.json +++ b/package.json @@ -21,9 +21,9 @@ "url": "https://github.com/ioBroker/ioBroker.echarts" }, "optionalDependencies": { - "canvas": "^2.11.2", + "canvas": "^3.0.1", "echarts": "^5.6.0", - "jsdom": "^25.0.1" + "jsdom": "^26.0.0" }, "dependencies": { "moment": "^2.30.1", @@ -33,14 +33,14 @@ "@alcalzone/release-script": "^3.8.0", "@alcalzone/release-script-plugin-iobroker": "^3.7.2", "@alcalzone/release-script-plugin-license": "^3.7.0", - "@iobroker/adapter-react-v5": "^7.4.10", + "@iobroker/adapter-react-v5": "^7.4.12", "@iobroker/build-tools": "^2.0.14", "@iobroker/eslint-config": "^1.0.0", "@iobroker/legacy-testing": "^2.0.1", "@iobroker/testing": "^5.0.0", "@iobroker/vis-2-widgets-react-dev": "^4.0.4", - "@mui/icons-material": "^6.3.0", - "@mui/material": "^6.3.0", + "@mui/icons-material": "^6.3.1", + "@mui/material": "^6.3.1", "@types/jsdom": "^21.1.7", "@types/react": "^18.3.18", "@types/react-dom": "^18.3.5", @@ -48,7 +48,7 @@ "chai": "^4.5.0", "colorette": "^2.0.20", "mocha": "^11.0.1", - "puppeteer": "^23.11.1", + "puppeteer": "^24.0.0", "react": "^18.3.1", "react-dom": "^18.3.1" }, diff --git a/src-chart/package.json b/src-chart/package.json index 67f78e3f..f8608e77 100644 --- a/src-chart/package.json +++ b/src-chart/package.json @@ -11,7 +11,7 @@ "moment": "^2.30.1", "react-i18next": "^15.4.0", "react-icons": "^5.4.0", - "typescript": "^5.7.2" + "typescript": "^5.7.3" }, "homepage": ".", "_proxy": "http://localhost:8081", diff --git a/src-preview/package.json b/src-preview/package.json index f9c93d65..42d051eb 100644 --- a/src-preview/package.json +++ b/src-preview/package.json @@ -5,7 +5,7 @@ "dependencies": { "@vitejs/plugin-react": "^4.3.4", "react-icons": "^5.4.0", - "typescript": "^5.7.2" + "typescript": "^5.7.3" }, "homepage": ".", "proxy": "http://localhost:8081", diff --git a/src-widgets/package.json b/src-widgets/package.json index e0769ceb..203a28f0 100644 --- a/src-widgets/package.json +++ b/src-widgets/package.json @@ -5,11 +5,11 @@ "dependencies": { "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@craco/craco": "^7.1.0", - "@iobroker/adapter-react-v5": "^7.1.4", + "@iobroker/adapter-react-v5": "^7.4.12", "@iobroker/vis-2-widgets-react-dev": "^4.0.4", - "@mui/icons-material": "^6.1.8", - "@mui/material": "^6.1.8", - "@sentry/browser": "^8.40.0", + "@mui/icons-material": "^6.3.1", + "@mui/material": "^6.3.1", + "@sentry/browser": "^8.48.0", "craco-esbuild": "^0.6.1", "craco-module-federation": "^1.1.0", "node-sass": "^9.0.0", @@ -19,10 +19,10 @@ "react-scripts": "^5.0.1", "eslint": "^8.57.0", "eslint-config-airbnb": "^19.0.4", - "eslint-plugin-import": "^2.30.0", - "eslint-plugin-jsx-a11y": "^6.10.0", - "eslint-plugin-react": "^7.36.1", - "eslint-plugin-react-hooks": "^4.6.2", + "eslint-plugin-import": "^2.31.0", + "eslint-plugin-jsx-a11y": "^6.10.2", + "eslint-plugin-react": "^7.37.4", + "eslint-plugin-react-hooks": "^5.1.0", "eslint-plugin-eqeqeq-fix": "^1.0.3", "eslint-plugin-only-warn": "^1.1.0", "sass": "^1.83.1" diff --git a/src/lib/ChartModel.ts b/src/lib/ChartModel.ts index ea69e62f..050d1a46 100644 --- a/src/lib/ChartModel.ts +++ b/src/lib/ChartModel.ts @@ -1213,7 +1213,9 @@ class ChartModel { convert = `return ${convert}`; } try { - this.convertFunctions[line.convert.trim()] = new Function('val', convert) as (val: number) => number; + this.convertFunctions[line.convert.trim()] = new Function('val', convert) as ( + val: number, + ) => number; } catch (e) { console.error(`[ChartModel] Cannot parse convert function: ${e}`); } @@ -1253,8 +1255,18 @@ class ChartModel { // add start and end if (line.chartType !== 'bar' && line.chartType !== 'polar') { - let end: number = typeof option.end === 'number' ? option.end : (option.end as Date).getTime(); - const start: number = typeof option.start === 'number' ? option.start : (option.start as Date).getTime(); + let end: number = + typeof option.end === 'number' + ? option.end + : typeof option.end === 'string' + ? new Date(option.end).getTime() + : (option.end as Date).getTime(); + const start: number = + typeof option.start === 'number' + ? option.start + : typeof option.start === 'string' + ? new Date(option.start).getTime() + : (option.start as Date).getTime(); // End cannot be in the future if (end > this.now) { end = this.now; diff --git a/src/main.ts b/src/main.ts index 6513bd2e..ce6461fd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -2,7 +2,7 @@ * * ioBroker echarts Adapter * - * (c) 2020-2024 bluefox + * (c) 2020-2025 bluefox * * MIT License * @@ -25,7 +25,7 @@ import 'moment/locale/de'; import type { EchartsOptions, Connection, ChartConfigMore } from './types'; import { getSocket } from './lib/socketSimulator'; import { type EChartsType, init as echartsInit } from 'echarts'; -import type { Canvas, JpegConfig, PdfConfig, PngConfig } from 'canvas'; +import { Canvas, type JpegConfig, type PdfConfig, type PngConfig } from 'canvas'; import { type JSDOM } from 'jsdom'; // let echartsInit: @@ -132,7 +132,7 @@ class EchartsAdapter extends Adapter { data = `data:image/png;base64,${canvas .toBuffer('image/png', { compressionLevel: options.compressionLevel || 3, - filters: options.filters || canvas.PNG_FILTER_NONE, + filters: options.filters || Canvas.PNG_FILTER_NONE, } as PngConfig) .toString('base64')}`; break; diff --git a/tasksChart.js b/tasksChart.js index 2ef8f4aa..a9be213f 100644 --- a/tasksChart.js +++ b/tasksChart.js @@ -1,5 +1,5 @@ /** - * Copyright 2018-2024 bluefox + * Copyright 2018-2025 bluefox * * MIT License * diff --git a/tasksEdit.js b/tasksEdit.js index fba01534..29364024 100644 --- a/tasksEdit.js +++ b/tasksEdit.js @@ -1,5 +1,5 @@ /** - * Copyright 2018-2024 bluefox + * Copyright 2018-2025 bluefox * * MIT License * diff --git a/tasksPreview.js b/tasksPreview.js index f56437fd..50963e5a 100644 --- a/tasksPreview.js +++ b/tasksPreview.js @@ -1,5 +1,5 @@ /** - * Copyright 2018-2024 bluefox + * Copyright 2018-2025 bluefox * * MIT License * diff --git a/tasksWidgets.js b/tasksWidgets.js index 788e7028..b1652916 100644 --- a/tasksWidgets.js +++ b/tasksWidgets.js @@ -1,5 +1,5 @@ /** - * Copyright 2023-2024 bluefox + * Copyright 2023-2025 bluefox * * MIT License * diff --git a/widgets/echarts.html b/widgets/echarts.html index 3872bd5a..bb6dac38 100644 --- a/widgets/echarts.html +++ b/widgets/echarts.html @@ -1,9 +1,9 @@ Echarts [ioBroker] - + diff --git a/admin/preview/assets/index-CgqD6xas.js b/www/preview/assets/index-pOd0B7Ce.js similarity index 87% rename from admin/preview/assets/index-CgqD6xas.js rename to www/preview/assets/index-pOd0B7Ce.js index 44f622b4..2857c8b7 100644 --- a/admin/preview/assets/index-CgqD6xas.js +++ b/www/preview/assets/index-pOd0B7Ce.js @@ -1,4 +1,4 @@ -var kA=Object.defineProperty;var CA=(t,e,r)=>e in t?kA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var xe=(t,e,r)=>CA(t,typeof e!="symbol"?e+"":e,r);function $A(t,e){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var Ld=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ha(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Lm={exports:{}},yl={},zm={exports:{}},mt={};/** +var kA=Object.defineProperty;var CA=(t,e,r)=>e in t?kA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var we=(t,e,r)=>CA(t,typeof e!="symbol"?e+"":e,r);function $A(t,e){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var Ld=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ha(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Lm={exports:{}},yl={},Fm={exports:{}},mt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var kA=Object.defineProperty;var CA=(t,e,r)=>e in t?kA(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var yS;function EA(){if(yS)return mt;yS=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.iterator;function _(I){return I===null||typeof I!="object"?null:(I=d&&I[d]||I["@@iterator"],typeof I=="function"?I:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function S(I,Q,me){this.props=I,this.context=Q,this.refs=w,this.updater=me||g}S.prototype.isReactComponent={},S.prototype.setState=function(I,Q){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,Q,"setState")},S.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function k(){}k.prototype=S.prototype;function D(I,Q,me){this.props=I,this.context=Q,this.refs=w,this.updater=me||g}var C=D.prototype=new k;C.constructor=D,b(C,S.prototype),C.isPureReactComponent=!0;var O=Array.isArray,M=Object.prototype.hasOwnProperty,T={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function j(I,Q,me){var pe,ge={},Ce=null,Re=null;if(Q!=null)for(pe in Q.ref!==void 0&&(Re=Q.ref),Q.key!==void 0&&(Ce=""+Q.key),Q)M.call(Q,pe)&&!P.hasOwnProperty(pe)&&(ge[pe]=Q[pe]);var Te=arguments.length-2;if(Te===1)ge.children=me;else if(1e in t?kA(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var bS;function TA(){if(bS)return yl;bS=1;var t=js(),e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,u,f){var h,d={},_=null,g=null;f!==void 0&&(_=""+f),u.key!==void 0&&(_=""+u.key),u.ref!==void 0&&(g=u.ref);for(h in u)n.call(u,h)&&!a.hasOwnProperty(h)&&(d[h]=u[h]);if(l&&l.defaultProps)for(h in u=l.defaultProps,u)d[h]===void 0&&(d[h]=u[h]);return{$$typeof:e,type:l,key:_,ref:g,props:d,_owner:o.current}}return yl.Fragment=r,yl.jsx=i,yl.jsxs=i,yl}var wS;function OA(){return wS||(wS=1,Lm.exports=TA()),Lm.exports}var R=OA(),zd={},Fm={exports:{}},Zr={},Bm={exports:{}},Wm={};/** + */var bS;function TA(){if(bS)return yl;bS=1;var t=js(),e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,u,f){var h,d={},_=null,g=null;f!==void 0&&(_=""+f),u.key!==void 0&&(_=""+u.key),u.ref!==void 0&&(g=u.ref);for(h in u)n.call(u,h)&&!a.hasOwnProperty(h)&&(d[h]=u[h]);if(l&&l.defaultProps)for(h in u=l.defaultProps,u)d[h]===void 0&&(d[h]=u[h]);return{$$typeof:e,type:l,key:_,ref:g,props:d,_owner:o.current}}return yl.Fragment=r,yl.jsx=i,yl.jsxs=i,yl}var wS;function OA(){return wS||(wS=1,Lm.exports=TA()),Lm.exports}var R=OA(),Fd={},zm={exports:{}},Zr={},Bm={exports:{}},Wm={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var kA=Object.defineProperty;var CA=(t,e,r)=>e in t?kA(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var xS;function DA(){return xS||(xS=1,function(t){function e(Y,X){var re=Y.length;Y.push(X);e:for(;0>>1,Q=Y[I];if(0>>1;Io(ge,re))Ceo(Re,ge)?(Y[I]=Re,Y[Ce]=re,I=Ce):(Y[I]=ge,Y[pe]=re,I=pe);else if(Ceo(Re,re))Y[I]=Re,Y[Ce]=re,I=Ce;else break e}}return X}function o(Y,X){var re=Y.sortIndex-X.sortIndex;return re!==0?re:Y.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();t.unstable_now=function(){return i.now()-l}}var u=[],f=[],h=1,d=null,_=3,g=!1,b=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(Y){for(var X=r(f);X!==null;){if(X.callback===null)n(f);else if(X.startTime<=Y)n(f),X.sortIndex=X.expirationTime,e(u,X);else break;X=r(f)}}function O(Y){if(w=!1,C(Y),!b)if(r(u)!==null)b=!0,K(M);else{var X=r(f);X!==null&&ee(O,X.startTime-Y)}}function M(Y,X){b=!1,w&&(w=!1,k(j),j=-1),g=!0;var re=_;try{for(C(X),d=r(u);d!==null&&(!(d.expirationTime>X)||Y&&!L());){var I=d.callback;if(typeof I=="function"){d.callback=null,_=d.priorityLevel;var Q=I(d.expirationTime<=X);X=t.unstable_now(),typeof Q=="function"?d.callback=Q:d===r(u)&&n(u),C(X)}else n(u);d=r(u)}if(d!==null)var me=!0;else{var pe=r(f);pe!==null&&ee(O,pe.startTime-X),me=!1}return me}finally{d=null,_=re,g=!1}}var T=!1,P=null,j=-1,z=5,E=-1;function L(){return!(t.unstable_now()-EY||125I?(Y.sortIndex=re,e(f,Y),r(u)===null&&Y===r(f)&&(w?(k(j),j=-1):w=!0,ee(O,re-I))):(Y.sortIndex=Q,e(u,Y),b||g||(b=!0,K(M))),Y},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(Y){var X=_;return function(){var re=_;_=X;try{return Y.apply(this,arguments)}finally{_=re}}}}(Wm)),Wm}var SS;function MA(){return SS||(SS=1,Bm.exports=DA()),Bm.exports}/** + */var xS;function DA(){return xS||(xS=1,function(t){function e(Y,X){var re=Y.length;Y.push(X);e:for(;0>>1,Q=Y[I];if(0>>1;Io(ge,re))Ceo(Re,ge)?(Y[I]=Re,Y[Ce]=re,I=Ce):(Y[I]=ge,Y[pe]=re,I=pe);else if(Ceo(Re,re))Y[I]=Re,Y[Ce]=re,I=Ce;else break e}}return X}function o(Y,X){var re=Y.sortIndex-X.sortIndex;return re!==0?re:Y.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();t.unstable_now=function(){return i.now()-l}}var u=[],f=[],h=1,d=null,_=3,g=!1,b=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(Y){for(var X=r(f);X!==null;){if(X.callback===null)n(f);else if(X.startTime<=Y)n(f),X.sortIndex=X.expirationTime,e(u,X);else break;X=r(f)}}function O(Y){if(w=!1,C(Y),!b)if(r(u)!==null)b=!0,K(M);else{var X=r(f);X!==null&&ee(O,X.startTime-Y)}}function M(Y,X){b=!1,w&&(w=!1,k(j),j=-1),g=!0;var re=_;try{for(C(X),d=r(u);d!==null&&(!(d.expirationTime>X)||Y&&!L());){var I=d.callback;if(typeof I=="function"){d.callback=null,_=d.priorityLevel;var Q=I(d.expirationTime<=X);X=t.unstable_now(),typeof Q=="function"?d.callback=Q:d===r(u)&&n(u),C(X)}else n(u);d=r(u)}if(d!==null)var me=!0;else{var pe=r(f);pe!==null&&ee(O,pe.startTime-X),me=!1}return me}finally{d=null,_=re,g=!1}}var T=!1,P=null,j=-1,F=5,E=-1;function L(){return!(t.unstable_now()-EY||125I?(Y.sortIndex=re,e(f,Y),r(u)===null&&Y===r(f)&&(w?(k(j),j=-1):w=!0,ee(O,re-I))):(Y.sortIndex=Q,e(u,Y),b||g||(b=!0,K(M))),Y},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(Y){var X=_;return function(){var re=_;_=X;try{return Y.apply(this,arguments)}finally{_=re}}}}(Wm)),Wm}var SS;function MA(){return SS||(SS=1,Bm.exports=DA()),Bm.exports}/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ var kA=Object.defineProperty;var CA=(t,e,r)=>e in t?kA(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var kS;function NA(){if(kS)return Zr;kS=1;var t=js(),e=MA();function r(s){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+s,p=1;p"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},d={};function _(s){return u.call(d,s)?!0:u.call(h,s)?!1:f.test(s)?d[s]=!0:(h[s]=!0,!1)}function g(s,c,p,m){if(p!==null&&p.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return m?!1:p!==null?!p.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function b(s,c,p,m){if(c===null||typeof c>"u"||g(s,c,p,m))return!0;if(m)return!1;if(p!==null)switch(p.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function w(s,c,p,m,v,x,N){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=m,this.attributeNamespace=v,this.mustUseProperty=p,this.propertyName=s,this.type=c,this.sanitizeURL=x,this.removeEmptyString=N}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){S[s]=new w(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];S[c]=new w(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){S[s]=new w(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){S[s]=new w(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){S[s]=new w(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){S[s]=new w(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){S[s]=new w(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){S[s]=new w(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){S[s]=new w(s,5,!1,s.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function D(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var c=s.replace(k,D);S[c]=new w(c,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var c=s.replace(k,D);S[c]=new w(c,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(k,D);S[c]=new w(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){S[s]=new w(s,1,!1,s.toLowerCase(),null,!1,!1)}),S.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){S[s]=new w(s,1,!1,s.toLowerCase(),null,!0,!0)});function C(s,c,p,m){var v=S.hasOwnProperty(c)?S[c]:null;(v!==null?v.type!==0:m||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},d={};function _(s){return u.call(d,s)?!0:u.call(h,s)?!1:f.test(s)?d[s]=!0:(h[s]=!0,!1)}function g(s,c,p,m){if(p!==null&&p.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return m?!1:p!==null?!p.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function b(s,c,p,m){if(c===null||typeof c>"u"||g(s,c,p,m))return!0;if(m)return!1;if(p!==null)switch(p.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function w(s,c,p,m,v,x,N){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=m,this.attributeNamespace=v,this.mustUseProperty=p,this.propertyName=s,this.type=c,this.sanitizeURL=x,this.removeEmptyString=N}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){S[s]=new w(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];S[c]=new w(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){S[s]=new w(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){S[s]=new w(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){S[s]=new w(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){S[s]=new w(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){S[s]=new w(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){S[s]=new w(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){S[s]=new w(s,5,!1,s.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function D(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var c=s.replace(k,D);S[c]=new w(c,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var c=s.replace(k,D);S[c]=new w(c,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(k,D);S[c]=new w(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){S[s]=new w(s,1,!1,s.toLowerCase(),null,!1,!1)}),S.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){S[s]=new w(s,1,!1,s.toLowerCase(),null,!0,!0)});function C(s,c,p,m){var v=S.hasOwnProperty(c)?S[c]:null;(v!==null?v.type!==0:m||!(2A||v[N]!==x[A]){var W=` -`+v[N].replace(" at new "," at ");return s.displayName&&W.includes("")&&(W=W.replace("",s.displayName)),W}while(1<=N&&0<=A);break}}}finally{me=!1,Error.prepareStackTrace=p}return(s=s?s.displayName||s.name:"")?Q(s):""}function ge(s){switch(s.tag){case 5:return Q(s.type);case 16:return Q("Lazy");case 13:return Q("Suspense");case 19:return Q("SuspenseList");case 0:case 2:case 15:return s=pe(s.type,!1),s;case 11:return s=pe(s.type.render,!1),s;case 1:return s=pe(s.type,!0),s;default:return""}}function Ce(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case P:return"Fragment";case T:return"Portal";case z:return"Profiler";case j:return"StrictMode";case B:return"Suspense";case F:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case L:return(s.displayName||"Context")+".Consumer";case E:return(s._context.displayName||"Context")+".Provider";case G:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case H:return c=s.displayName||null,c!==null?c:Ce(s.type)||"Memo";case K:c=s._payload,s=s._init;try{return Ce(s(c))}catch{}}return null}function Re(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ce(c);case 8:return c===j?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function Te(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Pe(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Oe(s){var c=Pe(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),m=""+s[c];if(!s.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var v=p.get,x=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return v.call(this)},set:function(N){m=""+N,x.call(this,N)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return m},setValue:function(N){m=""+N},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Fe(s){s._valueTracker||(s._valueTracker=Oe(s))}function Me(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),m="";return s&&(m=Pe(s)?s.checked?"true":"false":s.value),s=m,s!==p?(c.setValue(s),!0):!1}function Be(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function We(s,c){var p=c.checked;return re({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??s._wrapperState.initialChecked})}function De(s,c){var p=c.defaultValue==null?"":c.defaultValue,m=c.checked!=null?c.checked:c.defaultChecked;p=Te(c.value!=null?c.value:p),s._wrapperState={initialChecked:m,initialValue:p,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function pt(s,c){c=c.checked,c!=null&&C(s,"checked",c,!1)}function ce(s,c){pt(s,c);var p=Te(c.value),m=c.type;if(p!=null)m==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=""+p):s.value!==""+p&&(s.value=""+p);else if(m==="submit"||m==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?st(s,c.type,p):c.hasOwnProperty("defaultValue")&&st(s,c.type,Te(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function qe(s,c,p){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var m=c.type;if(!(m!=="submit"&&m!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+s._wrapperState.initialValue,p||c===s.value||(s.value=c),s.defaultValue=c}p=s.name,p!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,p!==""&&(s.name=p)}function st(s,c,p){(c!=="number"||Be(s.ownerDocument)!==s)&&(p==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+p&&(s.defaultValue=""+p))}var rt=Array.isArray;function Je(s,c,p,m){if(s=s.options,c){c={};for(var v=0;v"+c.valueOf().toString()+"",c=ke.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function Ve(s,c){if(c){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=c;return}}s.textContent=c}var $e={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ye=["Webkit","ms","Moz","O"];Object.keys($e).forEach(function(s){Ye.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),$e[c]=$e[s]})});function lt(s,c,p){return c==null||typeof c=="boolean"||c===""?"":p||typeof c!="number"||c===0||$e.hasOwnProperty(s)&&$e[s]?(""+c).trim():c+"px"}function ft(s,c){s=s.style;for(var p in c)if(c.hasOwnProperty(p)){var m=p.indexOf("--")===0,v=lt(p,c[p],m);p==="float"&&(p="cssFloat"),m?s.setProperty(p,v):s[p]=v}}var ae=re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _e(s,c){if(c){if(ae[s]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(r(137,s));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(r(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(r(61))}if(c.style!=null&&typeof c.style!="object")throw Error(r(62))}}function ze(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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 Ke=null;function _t(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var ur=null,yr=null,vt=null;function Ft(s){if(s=nl(s)){if(typeof ur!="function")throw Error(r(280));var c=s.stateNode;c&&(c=Qu(c),ur(s.stateNode,s.type,c))}}function wn(s){yr?vt?vt.push(s):vt=[s]:yr=s}function No(){if(yr){var s=yr,c=vt;if(vt=yr=null,Ft(s),c)for(s=0;s>>=0,s===0?32:31-(BP(s)/WP|0)|0}var Au=64,Iu=4194304;function zc(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function ju(s,c){var p=s.pendingLanes;if(p===0)return 0;var m=0,v=s.suspendedLanes,x=s.pingedLanes,N=p&268435455;if(N!==0){var A=N&~v;A!==0?m=zc(A):(x&=N,x!==0&&(m=zc(x)))}else N=p&~v,N!==0?m=zc(N):x!==0&&(m=zc(x));if(m===0)return 0;if(c!==0&&c!==m&&!(c&v)&&(v=m&-m,x=c&-c,v>=x||v===16&&(x&4194240)!==0))return c;if(m&4&&(m|=p&16),c=s.entangledLanes,c!==0)for(s=s.entanglements,c&=m;0p;p++)c.push(s);return c}function Fc(s,c,p){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-Bn(c),s[c]=p}function VP(s,c){var p=s.pendingLanes&~c;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=c,s.mutableReadLanes&=c,s.entangledLanes&=c,c=s.entanglements;var m=s.eventTimes;for(s=s.expirationTimes;0=Gc),d1=" ",p1=!1;function f1(s,c){switch(s){case"keyup":return bR.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function h1(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var ti=!1;function xR(s,c){switch(s){case"compositionend":return h1(c);case"keypress":return c.which!==32?null:(p1=!0,d1);case"textInput":return s=c.data,s===d1&&p1?null:s;default:return null}}function SR(s,c){if(ti)return s==="compositionend"||!yh&&f1(s,c)?(s=a1(),Wu=ph=fa=null,ti=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:p,offset:c-s};s=m}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=w1(p)}}function S1(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?S1(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function k1(){for(var s=window,c=Be();c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=Be(s.document)}return c}function wh(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function NR(s){var c=k1(),p=s.focusedElem,m=s.selectionRange;if(c!==p&&p&&p.ownerDocument&&S1(p.ownerDocument.documentElement,p)){if(m!==null&&wh(p)){if(c=m.start,s=m.end,s===void 0&&(s=c),"selectionStart"in p)p.selectionStart=c,p.selectionEnd=Math.min(s,p.value.length);else if(s=(c=p.ownerDocument||document)&&c.defaultView||window,s.getSelection){s=s.getSelection();var v=p.textContent.length,x=Math.min(m.start,v);m=m.end===void 0?x:Math.min(m.end,v),!s.extend&&x>m&&(v=m,m=x,x=v),v=x1(p,x);var N=x1(p,m);v&&N&&(s.rangeCount!==1||s.anchorNode!==v.node||s.anchorOffset!==v.offset||s.focusNode!==N.node||s.focusOffset!==N.offset)&&(c=c.createRange(),c.setStart(v.node,v.offset),s.removeAllRanges(),x>m?(s.addRange(c),s.extend(N.node,N.offset)):(c.setEnd(N.node,N.offset),s.addRange(c)))}}for(c=[],s=p;s=s.parentNode;)s.nodeType===1&&c.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p=document.documentMode,ri=null,xh=null,Zc=null,Sh=!1;function C1(s,c,p){var m=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Sh||ri==null||ri!==Be(m)||(m=ri,"selectionStart"in m&&wh(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Zc&&Kc(Zc,m)||(Zc=m,m=Yu(xh,"onSelect"),0ii||(s.current=Ah[ii],Ah[ii]=null,ii--)}function Lt(s,c){ii++,Ah[ii]=s.current,s.current=c}var ga={},Pr=_a(ga),Xr=_a(!1),Za=ga;function ci(s,c){var p=s.type.contextTypes;if(!p)return ga;var m=s.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===c)return m.__reactInternalMemoizedMaskedChildContext;var v={},x;for(x in p)v[x]=c[x];return m&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=v),v}function Gr(s){return s=s.childContextTypes,s!=null}function ed(){Wt(Xr),Wt(Pr)}function F1(s,c,p){if(Pr.current!==ga)throw Error(r(168));Lt(Pr,c),Lt(Xr,p)}function B1(s,c,p){var m=s.stateNode;if(c=c.childContextTypes,typeof m.getChildContext!="function")return p;m=m.getChildContext();for(var v in m)if(!(v in c))throw Error(r(108,Re(s)||"Unknown",v));return re({},p,m)}function td(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||ga,Za=Pr.current,Lt(Pr,s),Lt(Xr,Xr.current),!0}function W1(s,c,p){var m=s.stateNode;if(!m)throw Error(r(169));p?(s=B1(s,c,Za),m.__reactInternalMemoizedMergedChildContext=s,Wt(Xr),Wt(Pr),Lt(Pr,s)):Wt(Xr),Lt(Xr,p)}var Ro=null,rd=!1,Ih=!1;function U1(s){Ro===null?Ro=[s]:Ro.push(s)}function HR(s){rd=!0,U1(s)}function ya(){if(!Ih&&Ro!==null){Ih=!0;var s=0,c=Ot;try{var p=Ro;for(Ot=1;s>=N,v-=N,Ao=1<<32-Bn(c)+v|p<at?(wr=et,et=null):wr=et.sibling;var St=le(J,et,Z[at],be);if(St===null){et===null&&(et=wr);break}s&&et&&St.alternate===null&&c(J,et),V=x(St,V,at),Qe===null?Ue=St:Qe.sibling=St,Qe=St,et=wr}if(at===Z.length)return p(J,et),Ht&&es(J,at),Ue;if(et===null){for(;atat?(wr=et,et=null):wr=et.sibling;var Ea=le(J,et,St.value,be);if(Ea===null){et===null&&(et=wr);break}s&&et&&Ea.alternate===null&&c(J,et),V=x(Ea,V,at),Qe===null?Ue=Ea:Qe.sibling=Ea,Qe=Ea,et=wr}if(St.done)return p(J,et),Ht&&es(J,at),Ue;if(et===null){for(;!St.done;at++,St=Z.next())St=fe(J,St.value,be),St!==null&&(V=x(St,V,at),Qe===null?Ue=St:Qe.sibling=St,Qe=St);return Ht&&es(J,at),Ue}for(et=m(J,et);!St.done;at++,St=Z.next())St=Ae(et,J,at,St.value,be),St!==null&&(s&&St.alternate!==null&&et.delete(St.key===null?at:St.key),V=x(St,V,at),Qe===null?Ue=St:Qe.sibling=St,Qe=St);return s&&et.forEach(function(SA){return c(J,SA)}),Ht&&es(J,at),Ue}function ir(J,V,Z,be){if(typeof Z=="object"&&Z!==null&&Z.type===P&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case M:e:{for(var Ue=Z.key,Qe=V;Qe!==null;){if(Qe.key===Ue){if(Ue=Z.type,Ue===P){if(Qe.tag===7){p(J,Qe.sibling),V=v(Qe,Z.props.children),V.return=J,J=V;break e}}else if(Qe.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===K&&J1(Ue)===Qe.type){p(J,Qe.sibling),V=v(Qe,Z.props),V.ref=ol(J,Qe,Z),V.return=J,J=V;break e}p(J,Qe);break}else c(J,Qe);Qe=Qe.sibling}Z.type===P?(V=cs(Z.props.children,J.mode,be,Z.key),V.return=J,J=V):(be=Dd(Z.type,Z.key,Z.props,null,J.mode,be),be.ref=ol(J,V,Z),be.return=J,J=be)}return N(J);case T:e:{for(Qe=Z.key;V!==null;){if(V.key===Qe)if(V.tag===4&&V.stateNode.containerInfo===Z.containerInfo&&V.stateNode.implementation===Z.implementation){p(J,V.sibling),V=v(V,Z.children||[]),V.return=J,J=V;break e}else{p(J,V);break}else c(J,V);V=V.sibling}V=Pm(Z,J.mode,be),V.return=J,J=V}return N(J);case K:return Qe=Z._init,ir(J,V,Qe(Z._payload),be)}if(rt(Z))return je(J,V,Z,be);if(X(Z))return Le(J,V,Z,be);sd(J,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"?(Z=""+Z,V!==null&&V.tag===6?(p(J,V.sibling),V=v(V,Z),V.return=J,J=V):(p(J,V),V=Nm(Z,J.mode,be),V.return=J,J=V),N(J)):p(J,V)}return ir}var pi=Y1(!0),K1=Y1(!1),id=_a(null),cd=null,fi=null,Wh=null;function Uh(){Wh=fi=cd=null}function Hh(s){var c=id.current;Wt(id),s._currentValue=c}function qh(s,c,p){for(;s!==null;){var m=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,m!==null&&(m.childLanes|=c)):m!==null&&(m.childLanes&c)!==c&&(m.childLanes|=c),s===p)break;s=s.return}}function hi(s,c){cd=s,Wh=fi=null,s=s.dependencies,s!==null&&s.firstContext!==null&&(s.lanes&c&&(Jr=!0),s.firstContext=null)}function kn(s){var c=s._currentValue;if(Wh!==s)if(s={context:s,memoizedValue:c,next:null},fi===null){if(cd===null)throw Error(r(308));fi=s,cd.dependencies={lanes:0,firstContext:s}}else fi=fi.next=s;return c}var ts=null;function Vh(s){ts===null?ts=[s]:ts.push(s)}function Z1(s,c,p,m){var v=c.interleaved;return v===null?(p.next=p,Vh(c)):(p.next=v.next,v.next=p),c.interleaved=p,jo(s,m)}function jo(s,c){s.lanes|=c;var p=s.alternate;for(p!==null&&(p.lanes|=c),p=s,s=s.return;s!==null;)s.childLanes|=c,p=s.alternate,p!==null&&(p.childLanes|=c),p=s,s=s.return;return p.tag===3?p.stateNode:null}var va=!1;function Xh(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Q1(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Lo(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function ba(s,c,p){var m=s.updateQueue;if(m===null)return null;if(m=m.shared,xt&2){var v=m.pending;return v===null?c.next=c:(c.next=v.next,v.next=c),m.pending=c,jo(s,p)}return v=m.interleaved,v===null?(c.next=c,Vh(m)):(c.next=v.next,v.next=c),m.interleaved=c,jo(s,p)}function ld(s,c,p){if(c=c.updateQueue,c!==null&&(c=c.shared,(p&4194240)!==0)){var m=c.lanes;m&=s.pendingLanes,p|=m,c.lanes=p,ih(s,p)}}function ex(s,c){var p=s.updateQueue,m=s.alternate;if(m!==null&&(m=m.updateQueue,p===m)){var v=null,x=null;if(p=p.firstBaseUpdate,p!==null){do{var N={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};x===null?v=x=N:x=x.next=N,p=p.next}while(p!==null);x===null?v=x=c:x=x.next=c}else v=x=c;p={baseState:m.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:m.shared,effects:m.effects},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=c:s.next=c,p.lastBaseUpdate=c}function ud(s,c,p,m){var v=s.updateQueue;va=!1;var x=v.firstBaseUpdate,N=v.lastBaseUpdate,A=v.shared.pending;if(A!==null){v.shared.pending=null;var W=A,te=W.next;W.next=null,N===null?x=te:N.next=te,N=W;var ue=s.alternate;ue!==null&&(ue=ue.updateQueue,A=ue.lastBaseUpdate,A!==N&&(A===null?ue.firstBaseUpdate=te:A.next=te,ue.lastBaseUpdate=W))}if(x!==null){var fe=v.baseState;N=0,ue=te=W=null,A=x;do{var le=A.lane,Ae=A.eventTime;if((m&le)===le){ue!==null&&(ue=ue.next={eventTime:Ae,lane:0,tag:A.tag,payload:A.payload,callback:A.callback,next:null});e:{var je=s,Le=A;switch(le=c,Ae=p,Le.tag){case 1:if(je=Le.payload,typeof je=="function"){fe=je.call(Ae,fe,le);break e}fe=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Le.payload,le=typeof je=="function"?je.call(Ae,fe,le):je,le==null)break e;fe=re({},fe,le);break e;case 2:va=!0}}A.callback!==null&&A.lane!==0&&(s.flags|=64,le=v.effects,le===null?v.effects=[A]:le.push(A))}else Ae={eventTime:Ae,lane:le,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ue===null?(te=ue=Ae,W=fe):ue=ue.next=Ae,N|=le;if(A=A.next,A===null){if(A=v.shared.pending,A===null)break;le=A,A=le.next,le.next=null,v.lastBaseUpdate=le,v.shared.pending=null}}while(!0);if(ue===null&&(W=fe),v.baseState=W,v.firstBaseUpdate=te,v.lastBaseUpdate=ue,c=v.shared.interleaved,c!==null){v=c;do N|=v.lane,v=v.next;while(v!==c)}else x===null&&(v.shared.lanes=0);os|=N,s.lanes=N,s.memoizedState=fe}}function tx(s,c,p){if(s=c.effects,c.effects=null,s!==null)for(c=0;cp?p:4,s(!0);var m=Zh.transition;Zh.transition={};try{s(!1),c()}finally{Ot=p,Zh.transition=m}}function bx(){return Cn().memoizedState}function GR(s,c,p){var m=ka(s);if(p={lane:m,action:p,hasEagerState:!1,eagerState:null,next:null},wx(s))xx(c,p);else if(p=Z1(s,c,p,m),p!==null){var v=Hr();Xn(p,s,m,v),Sx(p,c,m)}}function JR(s,c,p){var m=ka(s),v={lane:m,action:p,hasEagerState:!1,eagerState:null,next:null};if(wx(s))xx(c,v);else{var x=s.alternate;if(s.lanes===0&&(x===null||x.lanes===0)&&(x=c.lastRenderedReducer,x!==null))try{var N=c.lastRenderedState,A=x(N,p);if(v.hasEagerState=!0,v.eagerState=A,Wn(A,N)){var W=c.interleaved;W===null?(v.next=v,Vh(c)):(v.next=W.next,W.next=v),c.interleaved=v;return}}catch{}finally{}p=Z1(s,c,v,m),p!==null&&(v=Hr(),Xn(p,s,m,v),Sx(p,c,m))}}function wx(s){var c=s.alternate;return s===Kt||c!==null&&c===Kt}function xx(s,c){cl=fd=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function Sx(s,c,p){if(p&4194240){var m=c.lanes;m&=s.pendingLanes,p|=m,c.lanes=p,ih(s,p)}}var _d={readContext:kn,useCallback:Rr,useContext:Rr,useEffect:Rr,useImperativeHandle:Rr,useInsertionEffect:Rr,useLayoutEffect:Rr,useMemo:Rr,useReducer:Rr,useRef:Rr,useState:Rr,useDebugValue:Rr,useDeferredValue:Rr,useTransition:Rr,useMutableSource:Rr,useSyncExternalStore:Rr,useId:Rr,unstable_isNewReconciler:!1},YR={readContext:kn,useCallback:function(s,c){return so().memoizedState=[s,c===void 0?null:c],s},useContext:kn,useEffect:px,useImperativeHandle:function(s,c,p){return p=p!=null?p.concat([s]):null,hd(4194308,4,mx.bind(null,c,s),p)},useLayoutEffect:function(s,c){return hd(4194308,4,s,c)},useInsertionEffect:function(s,c){return hd(4,2,s,c)},useMemo:function(s,c){var p=so();return c=c===void 0?null:c,s=s(),p.memoizedState=[s,c],s},useReducer:function(s,c,p){var m=so();return c=p!==void 0?p(c):c,m.memoizedState=m.baseState=c,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:c},m.queue=s,s=s.dispatch=GR.bind(null,Kt,s),[m.memoizedState,s]},useRef:function(s){var c=so();return s={current:s},c.memoizedState=s},useState:ux,useDebugValue:am,useDeferredValue:function(s){return so().memoizedState=s},useTransition:function(){var s=ux(!1),c=s[0];return s=XR.bind(null,s[1]),so().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,p){var m=Kt,v=so();if(Ht){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),br===null)throw Error(r(349));ns&30||ax(m,c,p)}v.memoizedState=p;var x={value:p,getSnapshot:c};return v.queue=x,px(ix.bind(null,m,x,s),[s]),m.flags|=2048,dl(9,sx.bind(null,m,x,p,c),void 0,null),p},useId:function(){var s=so(),c=br.identifierPrefix;if(Ht){var p=Io,m=Ao;p=(m&~(1<<32-Bn(m)-1)).toString(32)+p,c=":"+c+"R"+p,p=ll++,0")&&(W=W.replace("",s.displayName)),W}while(1<=N&&0<=A);break}}}finally{me=!1,Error.prepareStackTrace=p}return(s=s?s.displayName||s.name:"")?Q(s):""}function ge(s){switch(s.tag){case 5:return Q(s.type);case 16:return Q("Lazy");case 13:return Q("Suspense");case 19:return Q("SuspenseList");case 0:case 2:case 15:return s=pe(s.type,!1),s;case 11:return s=pe(s.type.render,!1),s;case 1:return s=pe(s.type,!0),s;default:return""}}function Ce(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case P:return"Fragment";case T:return"Portal";case F:return"Profiler";case j:return"StrictMode";case B:return"Suspense";case z:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case L:return(s.displayName||"Context")+".Consumer";case E:return(s._context.displayName||"Context")+".Provider";case G:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case H:return c=s.displayName||null,c!==null?c:Ce(s.type)||"Memo";case K:c=s._payload,s=s._init;try{return Ce(s(c))}catch{}}return null}function Re(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ce(c);case 8:return c===j?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function Te(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Pe(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Oe(s){var c=Pe(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),m=""+s[c];if(!s.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var v=p.get,x=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return v.call(this)},set:function(N){m=""+N,x.call(this,N)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return m},setValue:function(N){m=""+N},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function ze(s){s._valueTracker||(s._valueTracker=Oe(s))}function Me(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),m="";return s&&(m=Pe(s)?s.checked?"true":"false":s.value),s=m,s!==p?(c.setValue(s),!0):!1}function Be(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function We(s,c){var p=c.checked;return re({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??s._wrapperState.initialChecked})}function De(s,c){var p=c.defaultValue==null?"":c.defaultValue,m=c.checked!=null?c.checked:c.defaultChecked;p=Te(c.value!=null?c.value:p),s._wrapperState={initialChecked:m,initialValue:p,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function pt(s,c){c=c.checked,c!=null&&C(s,"checked",c,!1)}function ce(s,c){pt(s,c);var p=Te(c.value),m=c.type;if(p!=null)m==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=""+p):s.value!==""+p&&(s.value=""+p);else if(m==="submit"||m==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?st(s,c.type,p):c.hasOwnProperty("defaultValue")&&st(s,c.type,Te(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function qe(s,c,p){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var m=c.type;if(!(m!=="submit"&&m!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+s._wrapperState.initialValue,p||c===s.value||(s.value=c),s.defaultValue=c}p=s.name,p!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,p!==""&&(s.name=p)}function st(s,c,p){(c!=="number"||Be(s.ownerDocument)!==s)&&(p==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+p&&(s.defaultValue=""+p))}var rt=Array.isArray;function Je(s,c,p,m){if(s=s.options,c){c={};for(var v=0;v"+c.valueOf().toString()+"",c=ke.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function Ve(s,c){if(c){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=c;return}}s.textContent=c}var $e={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ye=["Webkit","ms","Moz","O"];Object.keys($e).forEach(function(s){Ye.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),$e[c]=$e[s]})});function lt(s,c,p){return c==null||typeof c=="boolean"||c===""?"":p||typeof c!="number"||c===0||$e.hasOwnProperty(s)&&$e[s]?(""+c).trim():c+"px"}function ft(s,c){s=s.style;for(var p in c)if(c.hasOwnProperty(p)){var m=p.indexOf("--")===0,v=lt(p,c[p],m);p==="float"&&(p="cssFloat"),m?s.setProperty(p,v):s[p]=v}}var ae=re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _e(s,c){if(c){if(ae[s]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(r(137,s));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(r(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(r(61))}if(c.style!=null&&typeof c.style!="object")throw Error(r(62))}}function Fe(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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 Ke=null;function _t(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var ur=null,yr=null,vt=null;function zt(s){if(s=nl(s)){if(typeof ur!="function")throw Error(r(280));var c=s.stateNode;c&&(c=Qu(c),ur(s.stateNode,s.type,c))}}function wn(s){yr?vt?vt.push(s):vt=[s]:yr=s}function No(){if(yr){var s=yr,c=vt;if(vt=yr=null,zt(s),c)for(s=0;s>>=0,s===0?32:31-(BP(s)/WP|0)|0}var Au=64,Iu=4194304;function Fc(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function ju(s,c){var p=s.pendingLanes;if(p===0)return 0;var m=0,v=s.suspendedLanes,x=s.pingedLanes,N=p&268435455;if(N!==0){var A=N&~v;A!==0?m=Fc(A):(x&=N,x!==0&&(m=Fc(x)))}else N=p&~v,N!==0?m=Fc(N):x!==0&&(m=Fc(x));if(m===0)return 0;if(c!==0&&c!==m&&!(c&v)&&(v=m&-m,x=c&-c,v>=x||v===16&&(x&4194240)!==0))return c;if(m&4&&(m|=p&16),c=s.entangledLanes,c!==0)for(s=s.entanglements,c&=m;0p;p++)c.push(s);return c}function zc(s,c,p){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-Bn(c),s[c]=p}function VP(s,c){var p=s.pendingLanes&~c;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=c,s.mutableReadLanes&=c,s.entangledLanes&=c,c=s.entanglements;var m=s.eventTimes;for(s=s.expirationTimes;0=Gc),d1=" ",p1=!1;function f1(s,c){switch(s){case"keyup":return bR.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function h1(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var ti=!1;function xR(s,c){switch(s){case"compositionend":return h1(c);case"keypress":return c.which!==32?null:(p1=!0,d1);case"textInput":return s=c.data,s===d1&&p1?null:s;default:return null}}function SR(s,c){if(ti)return s==="compositionend"||!yh&&f1(s,c)?(s=a1(),Wu=ph=fa=null,ti=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:p,offset:c-s};s=m}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=w1(p)}}function S1(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?S1(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function k1(){for(var s=window,c=Be();c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=Be(s.document)}return c}function wh(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function NR(s){var c=k1(),p=s.focusedElem,m=s.selectionRange;if(c!==p&&p&&p.ownerDocument&&S1(p.ownerDocument.documentElement,p)){if(m!==null&&wh(p)){if(c=m.start,s=m.end,s===void 0&&(s=c),"selectionStart"in p)p.selectionStart=c,p.selectionEnd=Math.min(s,p.value.length);else if(s=(c=p.ownerDocument||document)&&c.defaultView||window,s.getSelection){s=s.getSelection();var v=p.textContent.length,x=Math.min(m.start,v);m=m.end===void 0?x:Math.min(m.end,v),!s.extend&&x>m&&(v=m,m=x,x=v),v=x1(p,x);var N=x1(p,m);v&&N&&(s.rangeCount!==1||s.anchorNode!==v.node||s.anchorOffset!==v.offset||s.focusNode!==N.node||s.focusOffset!==N.offset)&&(c=c.createRange(),c.setStart(v.node,v.offset),s.removeAllRanges(),x>m?(s.addRange(c),s.extend(N.node,N.offset)):(c.setEnd(N.node,N.offset),s.addRange(c)))}}for(c=[],s=p;s=s.parentNode;)s.nodeType===1&&c.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p=document.documentMode,ri=null,xh=null,Zc=null,Sh=!1;function C1(s,c,p){var m=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Sh||ri==null||ri!==Be(m)||(m=ri,"selectionStart"in m&&wh(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Zc&&Kc(Zc,m)||(Zc=m,m=Yu(xh,"onSelect"),0ii||(s.current=Ah[ii],Ah[ii]=null,ii--)}function Lt(s,c){ii++,Ah[ii]=s.current,s.current=c}var ga={},Pr=_a(ga),Xr=_a(!1),Za=ga;function ci(s,c){var p=s.type.contextTypes;if(!p)return ga;var m=s.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===c)return m.__reactInternalMemoizedMaskedChildContext;var v={},x;for(x in p)v[x]=c[x];return m&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=v),v}function Gr(s){return s=s.childContextTypes,s!=null}function ed(){Wt(Xr),Wt(Pr)}function z1(s,c,p){if(Pr.current!==ga)throw Error(r(168));Lt(Pr,c),Lt(Xr,p)}function B1(s,c,p){var m=s.stateNode;if(c=c.childContextTypes,typeof m.getChildContext!="function")return p;m=m.getChildContext();for(var v in m)if(!(v in c))throw Error(r(108,Re(s)||"Unknown",v));return re({},p,m)}function td(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||ga,Za=Pr.current,Lt(Pr,s),Lt(Xr,Xr.current),!0}function W1(s,c,p){var m=s.stateNode;if(!m)throw Error(r(169));p?(s=B1(s,c,Za),m.__reactInternalMemoizedMergedChildContext=s,Wt(Xr),Wt(Pr),Lt(Pr,s)):Wt(Xr),Lt(Xr,p)}var Ro=null,rd=!1,Ih=!1;function U1(s){Ro===null?Ro=[s]:Ro.push(s)}function HR(s){rd=!0,U1(s)}function ya(){if(!Ih&&Ro!==null){Ih=!0;var s=0,c=Ot;try{var p=Ro;for(Ot=1;s>=N,v-=N,Ao=1<<32-Bn(c)+v|p<at?(wr=et,et=null):wr=et.sibling;var St=le(J,et,Z[at],be);if(St===null){et===null&&(et=wr);break}s&&et&&St.alternate===null&&c(J,et),V=x(St,V,at),Qe===null?Ue=St:Qe.sibling=St,Qe=St,et=wr}if(at===Z.length)return p(J,et),Ht&&es(J,at),Ue;if(et===null){for(;atat?(wr=et,et=null):wr=et.sibling;var Ea=le(J,et,St.value,be);if(Ea===null){et===null&&(et=wr);break}s&&et&&Ea.alternate===null&&c(J,et),V=x(Ea,V,at),Qe===null?Ue=Ea:Qe.sibling=Ea,Qe=Ea,et=wr}if(St.done)return p(J,et),Ht&&es(J,at),Ue;if(et===null){for(;!St.done;at++,St=Z.next())St=fe(J,St.value,be),St!==null&&(V=x(St,V,at),Qe===null?Ue=St:Qe.sibling=St,Qe=St);return Ht&&es(J,at),Ue}for(et=m(J,et);!St.done;at++,St=Z.next())St=Ae(et,J,at,St.value,be),St!==null&&(s&&St.alternate!==null&&et.delete(St.key===null?at:St.key),V=x(St,V,at),Qe===null?Ue=St:Qe.sibling=St,Qe=St);return s&&et.forEach(function(SA){return c(J,SA)}),Ht&&es(J,at),Ue}function ir(J,V,Z,be){if(typeof Z=="object"&&Z!==null&&Z.type===P&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case M:e:{for(var Ue=Z.key,Qe=V;Qe!==null;){if(Qe.key===Ue){if(Ue=Z.type,Ue===P){if(Qe.tag===7){p(J,Qe.sibling),V=v(Qe,Z.props.children),V.return=J,J=V;break e}}else if(Qe.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===K&&J1(Ue)===Qe.type){p(J,Qe.sibling),V=v(Qe,Z.props),V.ref=ol(J,Qe,Z),V.return=J,J=V;break e}p(J,Qe);break}else c(J,Qe);Qe=Qe.sibling}Z.type===P?(V=cs(Z.props.children,J.mode,be,Z.key),V.return=J,J=V):(be=Dd(Z.type,Z.key,Z.props,null,J.mode,be),be.ref=ol(J,V,Z),be.return=J,J=be)}return N(J);case T:e:{for(Qe=Z.key;V!==null;){if(V.key===Qe)if(V.tag===4&&V.stateNode.containerInfo===Z.containerInfo&&V.stateNode.implementation===Z.implementation){p(J,V.sibling),V=v(V,Z.children||[]),V.return=J,J=V;break e}else{p(J,V);break}else c(J,V);V=V.sibling}V=Pm(Z,J.mode,be),V.return=J,J=V}return N(J);case K:return Qe=Z._init,ir(J,V,Qe(Z._payload),be)}if(rt(Z))return je(J,V,Z,be);if(X(Z))return Le(J,V,Z,be);sd(J,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"?(Z=""+Z,V!==null&&V.tag===6?(p(J,V.sibling),V=v(V,Z),V.return=J,J=V):(p(J,V),V=Nm(Z,J.mode,be),V.return=J,J=V),N(J)):p(J,V)}return ir}var pi=Y1(!0),K1=Y1(!1),id=_a(null),cd=null,fi=null,Wh=null;function Uh(){Wh=fi=cd=null}function Hh(s){var c=id.current;Wt(id),s._currentValue=c}function qh(s,c,p){for(;s!==null;){var m=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,m!==null&&(m.childLanes|=c)):m!==null&&(m.childLanes&c)!==c&&(m.childLanes|=c),s===p)break;s=s.return}}function hi(s,c){cd=s,Wh=fi=null,s=s.dependencies,s!==null&&s.firstContext!==null&&(s.lanes&c&&(Jr=!0),s.firstContext=null)}function kn(s){var c=s._currentValue;if(Wh!==s)if(s={context:s,memoizedValue:c,next:null},fi===null){if(cd===null)throw Error(r(308));fi=s,cd.dependencies={lanes:0,firstContext:s}}else fi=fi.next=s;return c}var ts=null;function Vh(s){ts===null?ts=[s]:ts.push(s)}function Z1(s,c,p,m){var v=c.interleaved;return v===null?(p.next=p,Vh(c)):(p.next=v.next,v.next=p),c.interleaved=p,jo(s,m)}function jo(s,c){s.lanes|=c;var p=s.alternate;for(p!==null&&(p.lanes|=c),p=s,s=s.return;s!==null;)s.childLanes|=c,p=s.alternate,p!==null&&(p.childLanes|=c),p=s,s=s.return;return p.tag===3?p.stateNode:null}var va=!1;function Xh(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Q1(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Lo(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function ba(s,c,p){var m=s.updateQueue;if(m===null)return null;if(m=m.shared,xt&2){var v=m.pending;return v===null?c.next=c:(c.next=v.next,v.next=c),m.pending=c,jo(s,p)}return v=m.interleaved,v===null?(c.next=c,Vh(m)):(c.next=v.next,v.next=c),m.interleaved=c,jo(s,p)}function ld(s,c,p){if(c=c.updateQueue,c!==null&&(c=c.shared,(p&4194240)!==0)){var m=c.lanes;m&=s.pendingLanes,p|=m,c.lanes=p,ih(s,p)}}function ex(s,c){var p=s.updateQueue,m=s.alternate;if(m!==null&&(m=m.updateQueue,p===m)){var v=null,x=null;if(p=p.firstBaseUpdate,p!==null){do{var N={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};x===null?v=x=N:x=x.next=N,p=p.next}while(p!==null);x===null?v=x=c:x=x.next=c}else v=x=c;p={baseState:m.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:m.shared,effects:m.effects},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=c:s.next=c,p.lastBaseUpdate=c}function ud(s,c,p,m){var v=s.updateQueue;va=!1;var x=v.firstBaseUpdate,N=v.lastBaseUpdate,A=v.shared.pending;if(A!==null){v.shared.pending=null;var W=A,te=W.next;W.next=null,N===null?x=te:N.next=te,N=W;var ue=s.alternate;ue!==null&&(ue=ue.updateQueue,A=ue.lastBaseUpdate,A!==N&&(A===null?ue.firstBaseUpdate=te:A.next=te,ue.lastBaseUpdate=W))}if(x!==null){var fe=v.baseState;N=0,ue=te=W=null,A=x;do{var le=A.lane,Ae=A.eventTime;if((m&le)===le){ue!==null&&(ue=ue.next={eventTime:Ae,lane:0,tag:A.tag,payload:A.payload,callback:A.callback,next:null});e:{var je=s,Le=A;switch(le=c,Ae=p,Le.tag){case 1:if(je=Le.payload,typeof je=="function"){fe=je.call(Ae,fe,le);break e}fe=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Le.payload,le=typeof je=="function"?je.call(Ae,fe,le):je,le==null)break e;fe=re({},fe,le);break e;case 2:va=!0}}A.callback!==null&&A.lane!==0&&(s.flags|=64,le=v.effects,le===null?v.effects=[A]:le.push(A))}else Ae={eventTime:Ae,lane:le,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ue===null?(te=ue=Ae,W=fe):ue=ue.next=Ae,N|=le;if(A=A.next,A===null){if(A=v.shared.pending,A===null)break;le=A,A=le.next,le.next=null,v.lastBaseUpdate=le,v.shared.pending=null}}while(!0);if(ue===null&&(W=fe),v.baseState=W,v.firstBaseUpdate=te,v.lastBaseUpdate=ue,c=v.shared.interleaved,c!==null){v=c;do N|=v.lane,v=v.next;while(v!==c)}else x===null&&(v.shared.lanes=0);os|=N,s.lanes=N,s.memoizedState=fe}}function tx(s,c,p){if(s=c.effects,c.effects=null,s!==null)for(c=0;cp?p:4,s(!0);var m=Zh.transition;Zh.transition={};try{s(!1),c()}finally{Ot=p,Zh.transition=m}}function bx(){return Cn().memoizedState}function GR(s,c,p){var m=ka(s);if(p={lane:m,action:p,hasEagerState:!1,eagerState:null,next:null},wx(s))xx(c,p);else if(p=Z1(s,c,p,m),p!==null){var v=Hr();Xn(p,s,m,v),Sx(p,c,m)}}function JR(s,c,p){var m=ka(s),v={lane:m,action:p,hasEagerState:!1,eagerState:null,next:null};if(wx(s))xx(c,v);else{var x=s.alternate;if(s.lanes===0&&(x===null||x.lanes===0)&&(x=c.lastRenderedReducer,x!==null))try{var N=c.lastRenderedState,A=x(N,p);if(v.hasEagerState=!0,v.eagerState=A,Wn(A,N)){var W=c.interleaved;W===null?(v.next=v,Vh(c)):(v.next=W.next,W.next=v),c.interleaved=v;return}}catch{}finally{}p=Z1(s,c,v,m),p!==null&&(v=Hr(),Xn(p,s,m,v),Sx(p,c,m))}}function wx(s){var c=s.alternate;return s===Kt||c!==null&&c===Kt}function xx(s,c){cl=fd=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function Sx(s,c,p){if(p&4194240){var m=c.lanes;m&=s.pendingLanes,p|=m,c.lanes=p,ih(s,p)}}var _d={readContext:kn,useCallback:Rr,useContext:Rr,useEffect:Rr,useImperativeHandle:Rr,useInsertionEffect:Rr,useLayoutEffect:Rr,useMemo:Rr,useReducer:Rr,useRef:Rr,useState:Rr,useDebugValue:Rr,useDeferredValue:Rr,useTransition:Rr,useMutableSource:Rr,useSyncExternalStore:Rr,useId:Rr,unstable_isNewReconciler:!1},YR={readContext:kn,useCallback:function(s,c){return so().memoizedState=[s,c===void 0?null:c],s},useContext:kn,useEffect:px,useImperativeHandle:function(s,c,p){return p=p!=null?p.concat([s]):null,hd(4194308,4,mx.bind(null,c,s),p)},useLayoutEffect:function(s,c){return hd(4194308,4,s,c)},useInsertionEffect:function(s,c){return hd(4,2,s,c)},useMemo:function(s,c){var p=so();return c=c===void 0?null:c,s=s(),p.memoizedState=[s,c],s},useReducer:function(s,c,p){var m=so();return c=p!==void 0?p(c):c,m.memoizedState=m.baseState=c,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:c},m.queue=s,s=s.dispatch=GR.bind(null,Kt,s),[m.memoizedState,s]},useRef:function(s){var c=so();return s={current:s},c.memoizedState=s},useState:ux,useDebugValue:am,useDeferredValue:function(s){return so().memoizedState=s},useTransition:function(){var s=ux(!1),c=s[0];return s=XR.bind(null,s[1]),so().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,p){var m=Kt,v=so();if(Ht){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),br===null)throw Error(r(349));ns&30||ax(m,c,p)}v.memoizedState=p;var x={value:p,getSnapshot:c};return v.queue=x,px(ix.bind(null,m,x,s),[s]),m.flags|=2048,dl(9,sx.bind(null,m,x,p,c),void 0,null),p},useId:function(){var s=so(),c=br.identifierPrefix;if(Ht){var p=Io,m=Ao;p=(m&~(1<<32-Bn(m)-1)).toString(32)+p,c=":"+c+"R"+p,p=ll++,0<\/script>",s=s.removeChild(s.firstChild)):typeof m.is=="string"?s=N.createElement(p,{is:m.is}):(s=N.createElement(p),p==="select"&&(N=s,m.multiple?N.multiple=!0:m.size&&(N.size=m.size))):s=N.createElementNS(s,p),s[oo]=c,s[rl]=m,Ux(s,c,!1,!1),c.stateNode=s;e:{switch(N=ze(p,m),p){case"dialog":Bt("cancel",s),Bt("close",s),v=m;break;case"iframe":case"object":case"embed":Bt("load",s),v=m;break;case"video":case"audio":for(v=0;vvi&&(c.flags|=128,m=!0,pl(x,!1),c.lanes=4194304)}else{if(!m)if(s=dd(N),s!==null){if(c.flags|=128,m=!0,p=s.updateQueue,p!==null&&(c.updateQueue=p,c.flags|=4),pl(x,!0),x.tail===null&&x.tailMode==="hidden"&&!N.alternate&&!Ht)return Ar(c),null}else 2*sr()-x.renderingStartTime>vi&&p!==1073741824&&(c.flags|=128,m=!0,pl(x,!1),c.lanes=4194304);x.isBackwards?(N.sibling=c.child,c.child=N):(p=x.last,p!==null?p.sibling=N:c.child=N,x.last=N)}return x.tail!==null?(c=x.tail,x.rendering=c,x.tail=c.sibling,x.renderingStartTime=sr(),c.sibling=null,p=Yt.current,Lt(Yt,m?p&1|2:p&1),c):(Ar(c),null);case 22:case 23:return Om(),m=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==m&&(c.flags|=8192),m&&c.mode&1?fn&1073741824&&(Ar(c),c.subtreeFlags&6&&(c.flags|=8192)):Ar(c),null;case 24:return null;case 25:return null}throw Error(r(156,c.tag))}function oA(s,c){switch(Lh(c),c.tag){case 1:return Gr(c.type)&&ed(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return mi(),Wt(Xr),Wt(Pr),Kh(),s=c.flags,s&65536&&!(s&128)?(c.flags=s&-65537|128,c):null;case 5:return Jh(c),null;case 13:if(Wt(Yt),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));di()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return Wt(Yt),null;case 4:return mi(),null;case 10:return Hh(c.type._context),null;case 22:case 23:return Om(),null;case 24:return null;default:return null}}var bd=!1,Ir=!1,aA=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function gi(s,c){var p=s.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(m){er(s,c,m)}else p.current=null}function gm(s,c,p){try{p()}catch(m){er(s,c,m)}}var Vx=!1;function sA(s,c){if(Oh=Fu,s=k1(),wh(s)){if("selectionStart"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var m=p.getSelection&&p.getSelection();if(m&&m.rangeCount!==0){p=m.anchorNode;var v=m.anchorOffset,x=m.focusNode;m=m.focusOffset;try{p.nodeType,x.nodeType}catch{p=null;break e}var N=0,A=-1,W=-1,te=0,ue=0,fe=s,le=null;t:for(;;){for(var Ae;fe!==p||v!==0&&fe.nodeType!==3||(A=N+v),fe!==x||m!==0&&fe.nodeType!==3||(W=N+m),fe.nodeType===3&&(N+=fe.nodeValue.length),(Ae=fe.firstChild)!==null;)le=fe,fe=Ae;for(;;){if(fe===s)break t;if(le===p&&++te===v&&(A=N),le===x&&++ue===m&&(W=N),(Ae=fe.nextSibling)!==null)break;fe=le,le=fe.parentNode}fe=Ae}p=A===-1||W===-1?null:{start:A,end:W}}else p=null}p=p||{start:0,end:0}}else p=null;for(Dh={focusedElem:s,selectionRange:p},Fu=!1,Ie=c;Ie!==null;)if(c=Ie,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,Ie=s;else for(;Ie!==null;){c=Ie;try{var je=c.alternate;if(c.flags&1024)switch(c.tag){case 0:case 11:case 15:break;case 1:if(je!==null){var Le=je.memoizedProps,ir=je.memoizedState,J=c.stateNode,V=J.getSnapshotBeforeUpdate(c.elementType===c.type?Le:Hn(c.type,Le),ir);J.__reactInternalSnapshotBeforeUpdate=V}break;case 3:var Z=c.stateNode.containerInfo;Z.nodeType===1?Z.textContent="":Z.nodeType===9&&Z.documentElement&&Z.removeChild(Z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(be){er(c,c.return,be)}if(s=c.sibling,s!==null){s.return=c.return,Ie=s;break}Ie=c.return}return je=Vx,Vx=!1,je}function fl(s,c,p){var m=c.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var v=m=m.next;do{if((v.tag&s)===s){var x=v.destroy;v.destroy=void 0,x!==void 0&&gm(c,p,x)}v=v.next}while(v!==m)}}function wd(s,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&s)===s){var m=p.create;p.destroy=m()}p=p.next}while(p!==c)}}function ym(s){var c=s.ref;if(c!==null){var p=s.stateNode;switch(s.tag){case 5:s=p;break;default:s=p}typeof c=="function"?c(s):c.current=s}}function Xx(s){var c=s.alternate;c!==null&&(s.alternate=null,Xx(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[oo],delete c[rl],delete c[Rh],delete c[WR],delete c[UR])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function Gx(s){return s.tag===5||s.tag===3||s.tag===4}function Jx(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Gx(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function vm(s,c,p){var m=s.tag;if(m===5||m===6)s=s.stateNode,c?p.nodeType===8?p.parentNode.insertBefore(s,c):p.insertBefore(s,c):(p.nodeType===8?(c=p.parentNode,c.insertBefore(s,p)):(c=p,c.appendChild(s)),p=p._reactRootContainer,p!=null||c.onclick!==null||(c.onclick=Zu));else if(m!==4&&(s=s.child,s!==null))for(vm(s,c,p),s=s.sibling;s!==null;)vm(s,c,p),s=s.sibling}function bm(s,c,p){var m=s.tag;if(m===5||m===6)s=s.stateNode,c?p.insertBefore(s,c):p.appendChild(s);else if(m!==4&&(s=s.child,s!==null))for(bm(s,c,p),s=s.sibling;s!==null;)bm(s,c,p),s=s.sibling}var $r=null,qn=!1;function wa(s,c,p){for(p=p.child;p!==null;)Yx(s,c,p),p=p.sibling}function Yx(s,c,p){if(no&&typeof no.onCommitFiberUnmount=="function")try{no.onCommitFiberUnmount(Ru,p)}catch{}switch(p.tag){case 5:Ir||gi(p,c);case 6:var m=$r,v=qn;$r=null,wa(s,c,p),$r=m,qn=v,$r!==null&&(qn?(s=$r,p=p.stateNode,s.nodeType===8?s.parentNode.removeChild(p):s.removeChild(p)):$r.removeChild(p.stateNode));break;case 18:$r!==null&&(qn?(s=$r,p=p.stateNode,s.nodeType===8?Ph(s.parentNode,p):s.nodeType===1&&Ph(s,p),qc(s)):Ph($r,p.stateNode));break;case 4:m=$r,v=qn,$r=p.stateNode.containerInfo,qn=!0,wa(s,c,p),$r=m,qn=v;break;case 0:case 11:case 14:case 15:if(!Ir&&(m=p.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){v=m=m.next;do{var x=v,N=x.destroy;x=x.tag,N!==void 0&&(x&2||x&4)&&gm(p,c,N),v=v.next}while(v!==m)}wa(s,c,p);break;case 1:if(!Ir&&(gi(p,c),m=p.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=p.memoizedProps,m.state=p.memoizedState,m.componentWillUnmount()}catch(A){er(p,c,A)}wa(s,c,p);break;case 21:wa(s,c,p);break;case 22:p.mode&1?(Ir=(m=Ir)||p.memoizedState!==null,wa(s,c,p),Ir=m):wa(s,c,p);break;default:wa(s,c,p)}}function Kx(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var p=s.stateNode;p===null&&(p=s.stateNode=new aA),c.forEach(function(m){var v=mA.bind(null,s,m);p.has(m)||(p.add(m),m.then(v,v))})}}function Vn(s,c){var p=c.deletions;if(p!==null)for(var m=0;mv&&(v=N),m&=~x}if(m=v,m=sr()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*cA(m/1960))-m,10s?16:s,Sa===null)var m=!1;else{if(s=Sa,Sa=null,$d=0,xt&6)throw Error(r(331));var v=xt;for(xt|=4,Ie=s.current;Ie!==null;){var x=Ie,N=x.child;if(Ie.flags&16){var A=x.deletions;if(A!==null){for(var W=0;Wsr()-Sm?ss(s,0):xm|=p),Kr(s,c)}function uS(s,c){c===0&&(s.mode&1?(c=Iu,Iu<<=1,!(Iu&130023424)&&(Iu=4194304)):c=1);var p=Hr();s=jo(s,c),s!==null&&(Fc(s,c,p),Kr(s,p))}function hA(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),uS(s,p)}function mA(s,c){var p=0;switch(s.tag){case 13:var m=s.stateNode,v=s.memoizedState;v!==null&&(p=v.retryLane);break;case 19:m=s.stateNode;break;default:throw Error(r(314))}m!==null&&m.delete(c),uS(s,p)}var dS;dS=function(s,c,p){if(s!==null)if(s.memoizedProps!==c.pendingProps||Xr.current)Jr=!0;else{if(!(s.lanes&p)&&!(c.flags&128))return Jr=!1,rA(s,c,p);Jr=!!(s.flags&131072)}else Jr=!1,Ht&&c.flags&1048576&&H1(c,od,c.index);switch(c.lanes=0,c.tag){case 2:var m=c.type;vd(s,c),s=c.pendingProps;var v=ci(c,Pr.current);hi(c,p),v=em(null,c,m,s,v,p);var x=tm();return c.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,Gr(m)?(x=!0,td(c)):x=!1,c.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,Xh(c),v.updater=gd,c.stateNode=v,v._reactInternals=c,im(c,m,s,p),c=dm(null,c,m,!0,x,p)):(c.tag=0,Ht&&x&&jh(c),Ur(null,c,v,p),c=c.child),c;case 16:m=c.elementType;e:{switch(vd(s,c),s=c.pendingProps,v=m._init,m=v(m._payload),c.type=m,v=c.tag=gA(m),s=Hn(m,s),v){case 0:c=um(null,c,m,s,p);break e;case 1:c=jx(null,c,m,s,p);break e;case 11:c=Nx(null,c,m,s,p);break e;case 14:c=Px(null,c,m,Hn(m.type,s),p);break e}throw Error(r(306,m,""))}return c;case 0:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),um(s,c,m,v,p);case 1:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),jx(s,c,m,v,p);case 3:e:{if(Lx(c),s===null)throw Error(r(387));m=c.pendingProps,x=c.memoizedState,v=x.element,Q1(s,c),ud(c,m,null,p);var N=c.memoizedState;if(m=N.element,x.isDehydrated)if(x={element:m,isDehydrated:!1,cache:N.cache,pendingSuspenseBoundaries:N.pendingSuspenseBoundaries,transitions:N.transitions},c.updateQueue.baseState=x,c.memoizedState=x,c.flags&256){v=_i(Error(r(423)),c),c=zx(s,c,m,p,v);break e}else if(m!==v){v=_i(Error(r(424)),c),c=zx(s,c,m,p,v);break e}else for(pn=ma(c.stateNode.containerInfo.firstChild),dn=c,Ht=!0,Un=null,p=K1(c,null,m,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(di(),m===v){c=zo(s,c,p);break e}Ur(s,c,m,p)}c=c.child}return c;case 5:return rx(c),s===null&&Fh(c),m=c.type,v=c.pendingProps,x=s!==null?s.memoizedProps:null,N=v.children,Mh(m,v)?N=null:x!==null&&Mh(m,x)&&(c.flags|=32),Ix(s,c),Ur(s,c,N,p),c.child;case 6:return s===null&&Fh(c),null;case 13:return Fx(s,c,p);case 4:return Gh(c,c.stateNode.containerInfo),m=c.pendingProps,s===null?c.child=pi(c,null,m,p):Ur(s,c,m,p),c.child;case 11:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),Nx(s,c,m,v,p);case 7:return Ur(s,c,c.pendingProps,p),c.child;case 8:return Ur(s,c,c.pendingProps.children,p),c.child;case 12:return Ur(s,c,c.pendingProps.children,p),c.child;case 10:e:{if(m=c.type._context,v=c.pendingProps,x=c.memoizedProps,N=v.value,Lt(id,m._currentValue),m._currentValue=N,x!==null)if(Wn(x.value,N)){if(x.children===v.children&&!Xr.current){c=zo(s,c,p);break e}}else for(x=c.child,x!==null&&(x.return=c);x!==null;){var A=x.dependencies;if(A!==null){N=x.child;for(var W=A.firstContext;W!==null;){if(W.context===m){if(x.tag===1){W=Lo(-1,p&-p),W.tag=2;var te=x.updateQueue;if(te!==null){te=te.shared;var ue=te.pending;ue===null?W.next=W:(W.next=ue.next,ue.next=W),te.pending=W}}x.lanes|=p,W=x.alternate,W!==null&&(W.lanes|=p),qh(x.return,p,c),A.lanes|=p;break}W=W.next}}else if(x.tag===10)N=x.type===c.type?null:x.child;else if(x.tag===18){if(N=x.return,N===null)throw Error(r(341));N.lanes|=p,A=N.alternate,A!==null&&(A.lanes|=p),qh(N,p,c),N=x.sibling}else N=x.child;if(N!==null)N.return=x;else for(N=x;N!==null;){if(N===c){N=null;break}if(x=N.sibling,x!==null){x.return=N.return,N=x;break}N=N.return}x=N}Ur(s,c,v.children,p),c=c.child}return c;case 9:return v=c.type,m=c.pendingProps.children,hi(c,p),v=kn(v),m=m(v),c.flags|=1,Ur(s,c,m,p),c.child;case 14:return m=c.type,v=Hn(m,c.pendingProps),v=Hn(m.type,v),Px(s,c,m,v,p);case 15:return Rx(s,c,c.type,c.pendingProps,p);case 17:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),vd(s,c),c.tag=1,Gr(m)?(s=!0,td(c)):s=!1,hi(c,p),Cx(c,m,v),im(c,m,v,p),dm(null,c,m,!0,s,p);case 19:return Wx(s,c,p);case 22:return Ax(s,c,p)}throw Error(r(156,c.tag))};function pS(s,c){return qw(s,c)}function _A(s,c,p,m){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function En(s,c,p,m){return new _A(s,c,p,m)}function Mm(s){return s=s.prototype,!(!s||!s.isReactComponent)}function gA(s){if(typeof s=="function")return Mm(s)?1:0;if(s!=null){if(s=s.$$typeof,s===G)return 11;if(s===H)return 14}return 2}function $a(s,c){var p=s.alternate;return p===null?(p=En(s.tag,c,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p.alternate=s,s.alternate=p):(p.pendingProps=c,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=s.flags&14680064,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,c=s.dependencies,p.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p}function Dd(s,c,p,m,v,x){var N=2;if(m=s,typeof s=="function")Mm(s)&&(N=1);else if(typeof s=="string")N=5;else e:switch(s){case P:return cs(p.children,v,x,c);case j:N=8,v|=8;break;case z:return s=En(12,p,c,v|2),s.elementType=z,s.lanes=x,s;case B:return s=En(13,p,c,v),s.elementType=B,s.lanes=x,s;case F:return s=En(19,p,c,v),s.elementType=F,s.lanes=x,s;case ee:return Md(p,v,x,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case E:N=10;break e;case L:N=9;break e;case G:N=11;break e;case H:N=14;break e;case K:N=16,m=null;break e}throw Error(r(130,s==null?s:typeof s,""))}return c=En(N,p,c,v),c.elementType=s,c.type=m,c.lanes=x,c}function cs(s,c,p,m){return s=En(7,s,m,c),s.lanes=p,s}function Md(s,c,p,m){return s=En(22,s,m,c),s.elementType=ee,s.lanes=p,s.stateNode={isHidden:!1},s}function Nm(s,c,p){return s=En(6,s,null,c),s.lanes=p,s}function Pm(s,c,p){return c=En(4,s.children!==null?s.children:[],s.key,c),c.lanes=p,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function yA(s,c,p,m,v){this.tag=c,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sh(0),this.expirationTimes=sh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sh(0),this.identifierPrefix=m,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function Rm(s,c,p,m,v,x,N,A,W){return s=new yA(s,c,p,A,W),c===1?(c=1,x===!0&&(c|=8)):c=0,x=En(3,null,null,c),s.current=x,x.stateNode=s,x.memoizedState={element:m,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xh(x),s}function vA(s,c,p){var m=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Fm.exports=NA(),Fm.exports}var $S;function PA(){if($S)return zd;$S=1;var t=HO();return zd.createRoot=t.createRoot,zd.hydrateRoot=t.hydrateRoot,zd}var RA=PA();const It=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ws="8.47.0",Et=globalThis;function sf(t,e,r){const n=r||Et,o=n.__SENTRY__=n.__SENTRY__||{},a=o[ws]=o[ws]||{};return a[t]||(a[t]=e())}const Ls=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,AA="Sentry Logger ",Av=["debug","info","warn","error","log","assert","trace"],Pp={};function zs(t){if(!("console"in Et))return t();const e=Et.console,r={},n=Object.keys(Pp);n.forEach(o=>{const a=Pp[o];r[o]=e[o],e[o]=a});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function IA(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Ls?Av.forEach(r=>{e[r]=(...n)=>{t&&zs(()=>{Et.console[r](`${AA}[${r}]:`,...n)})}}):Av.forEach(r=>{e[r]=()=>{}}),e}const it=sf("logger",IA),qO=50,$s="?",ES=/\(error: (.*)\)/,TS=/captureMessage|captureException/;function VO(...t){const e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,o=0)=>{const a=[],i=r.split(` -`);for(let l=n;l1024)continue;const f=ES.test(u)?u.replace(ES,"$1"):u;if(!f.match(/\S*Error: /)){for(const h of e){const d=h(f);if(d){a.push(d);break}}if(a.length>=qO+o)break}}return LA(a.slice(o))}}function jA(t){return Array.isArray(t)?VO(...t):t}function LA(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(Fd(e).function||"")&&e.pop(),e.reverse(),TS.test(Fd(e).function||"")&&(e.pop(),TS.test(Fd(e).function||"")&&e.pop()),e.slice(0,qO).map(r=>({...r,filename:r.filename||Fd(e).filename,function:r.function||$s}))}function Fd(t){return t[t.length-1]||{}}const Um="";function La(t){try{return!t||typeof t!="function"?Um:t.name||Um}catch{return Um}}function OS(t){const e=t.exception;if(e){const r=[];try{return e.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch{return}}}const wp={},DS={};function Fs(t,e){wp[t]=wp[t]||[],wp[t].push(e)}function Bs(t,e){if(!DS[t]){DS[t]=!0;try{e()}catch(r){Ls&&it.error(`Error while instrumenting ${t}`,r)}}}function Kn(t,e){const r=t&&wp[t];if(r)for(const n of r)try{n(e)}catch(o){Ls&&it.error(`Error while triggering instrumentation handler. +`+x.stack}return{value:s,source:c,stack:v,digest:null}}function cm(s,c,p){return{value:s,source:null,stack:p??null,digest:c??null}}function lm(s,c){try{console.error(c.value)}catch(p){setTimeout(function(){throw p})}}var QR=typeof WeakMap=="function"?WeakMap:Map;function Ex(s,c,p){p=Lo(-1,p),p.tag=3,p.payload={element:null};var m=c.value;return p.callback=function(){kd||(kd=!0,km=m),lm(s,c)},p}function Tx(s,c,p){p=Lo(-1,p),p.tag=3;var m=s.type.getDerivedStateFromError;if(typeof m=="function"){var v=c.value;p.payload=function(){return m(v)},p.callback=function(){lm(s,c)}}var x=s.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(p.callback=function(){lm(s,c),typeof m!="function"&&(xa===null?xa=new Set([this]):xa.add(this));var N=c.stack;this.componentDidCatch(c.value,{componentStack:N!==null?N:""})}),p}function Ox(s,c,p){var m=s.pingCache;if(m===null){m=s.pingCache=new QR;var v=new Set;m.set(c,v)}else v=m.get(c),v===void 0&&(v=new Set,m.set(c,v));v.has(p)||(v.add(p),s=fA.bind(null,s,c,p),c.then(s,s))}function Dx(s){do{var c;if((c=s.tag===13)&&(c=s.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return s;s=s.return}while(s!==null);return null}function Mx(s,c,p,m,v){return s.mode&1?(s.flags|=65536,s.lanes=v,s):(s===c?s.flags|=65536:(s.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(c=Lo(-1,1),c.tag=2,ba(p,c,1))),p.lanes|=1),s)}var eA=O.ReactCurrentOwner,Jr=!1;function Ur(s,c,p,m){c.child=s===null?K1(c,null,p,m):pi(c,s.child,p,m)}function Nx(s,c,p,m,v){p=p.render;var x=c.ref;return hi(c,v),m=em(s,c,p,m,x,v),p=tm(),s!==null&&!Jr?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~v,Fo(s,c,v)):(Ht&&p&&jh(c),c.flags|=1,Ur(s,c,m,v),c.child)}function Px(s,c,p,m,v){if(s===null){var x=p.type;return typeof x=="function"&&!Mm(x)&&x.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(c.tag=15,c.type=x,Rx(s,c,x,m,v)):(s=Dd(p.type,null,m,c,c.mode,v),s.ref=c.ref,s.return=c,c.child=s)}if(x=s.child,!(s.lanes&v)){var N=x.memoizedProps;if(p=p.compare,p=p!==null?p:Kc,p(N,m)&&s.ref===c.ref)return Fo(s,c,v)}return c.flags|=1,s=$a(x,m),s.ref=c.ref,s.return=c,c.child=s}function Rx(s,c,p,m,v){if(s!==null){var x=s.memoizedProps;if(Kc(x,m)&&s.ref===c.ref)if(Jr=!1,c.pendingProps=m=x,(s.lanes&v)!==0)s.flags&131072&&(Jr=!0);else return c.lanes=s.lanes,Fo(s,c,v)}return um(s,c,p,m,v)}function Ax(s,c,p){var m=c.pendingProps,v=m.children,x=s!==null?s.memoizedState:null;if(m.mode==="hidden")if(!(c.mode&1))c.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lt(yi,fn),fn|=p;else{if(!(p&1073741824))return s=x!==null?x.baseLanes|p:p,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:s,cachePool:null,transitions:null},c.updateQueue=null,Lt(yi,fn),fn|=s,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},m=x!==null?x.baseLanes:p,Lt(yi,fn),fn|=m}else x!==null?(m=x.baseLanes|p,c.memoizedState=null):m=p,Lt(yi,fn),fn|=m;return Ur(s,c,v,p),c.child}function Ix(s,c){var p=c.ref;(s===null&&p!==null||s!==null&&s.ref!==p)&&(c.flags|=512,c.flags|=2097152)}function um(s,c,p,m,v){var x=Gr(p)?Za:Pr.current;return x=ci(c,x),hi(c,v),p=em(s,c,p,m,x,v),m=tm(),s!==null&&!Jr?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~v,Fo(s,c,v)):(Ht&&m&&jh(c),c.flags|=1,Ur(s,c,p,v),c.child)}function jx(s,c,p,m,v){if(Gr(p)){var x=!0;td(c)}else x=!1;if(hi(c,v),c.stateNode===null)vd(s,c),Cx(c,p,m),im(c,p,m,v),m=!0;else if(s===null){var N=c.stateNode,A=c.memoizedProps;N.props=A;var W=N.context,te=p.contextType;typeof te=="object"&&te!==null?te=kn(te):(te=Gr(p)?Za:Pr.current,te=ci(c,te));var ue=p.getDerivedStateFromProps,fe=typeof ue=="function"||typeof N.getSnapshotBeforeUpdate=="function";fe||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(A!==m||W!==te)&&$x(c,N,m,te),va=!1;var le=c.memoizedState;N.state=le,ud(c,m,N,v),W=c.memoizedState,A!==m||le!==W||Xr.current||va?(typeof ue=="function"&&(sm(c,p,ue,m),W=c.memoizedState),(A=va||kx(c,p,A,m,le,W,te))?(fe||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount=="function"&&(c.flags|=4194308)):(typeof N.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=m,c.memoizedState=W),N.props=m,N.state=W,N.context=te,m=A):(typeof N.componentDidMount=="function"&&(c.flags|=4194308),m=!1)}else{N=c.stateNode,Q1(s,c),A=c.memoizedProps,te=c.type===c.elementType?A:Hn(c.type,A),N.props=te,fe=c.pendingProps,le=N.context,W=p.contextType,typeof W=="object"&&W!==null?W=kn(W):(W=Gr(p)?Za:Pr.current,W=ci(c,W));var Ae=p.getDerivedStateFromProps;(ue=typeof Ae=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(A!==fe||le!==W)&&$x(c,N,m,W),va=!1,le=c.memoizedState,N.state=le,ud(c,m,N,v);var je=c.memoizedState;A!==fe||le!==je||Xr.current||va?(typeof Ae=="function"&&(sm(c,p,Ae,m),je=c.memoizedState),(te=va||kx(c,p,te,m,le,je,W)||!1)?(ue||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(m,je,W),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(m,je,W)),typeof N.componentDidUpdate=="function"&&(c.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof N.componentDidUpdate!="function"||A===s.memoizedProps&&le===s.memoizedState||(c.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||A===s.memoizedProps&&le===s.memoizedState||(c.flags|=1024),c.memoizedProps=m,c.memoizedState=je),N.props=m,N.state=je,N.context=W,m=te):(typeof N.componentDidUpdate!="function"||A===s.memoizedProps&&le===s.memoizedState||(c.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||A===s.memoizedProps&&le===s.memoizedState||(c.flags|=1024),m=!1)}return dm(s,c,p,m,x,v)}function dm(s,c,p,m,v,x){Ix(s,c);var N=(c.flags&128)!==0;if(!m&&!N)return v&&W1(c,p,!1),Fo(s,c,x);m=c.stateNode,eA.current=c;var A=N&&typeof p.getDerivedStateFromError!="function"?null:m.render();return c.flags|=1,s!==null&&N?(c.child=pi(c,s.child,null,x),c.child=pi(c,null,A,x)):Ur(s,c,A,x),c.memoizedState=m.state,v&&W1(c,p,!0),c.child}function Lx(s){var c=s.stateNode;c.pendingContext?z1(s,c.pendingContext,c.pendingContext!==c.context):c.context&&z1(s,c.context,!1),Gh(s,c.containerInfo)}function Fx(s,c,p,m,v){return di(),Bh(v),c.flags|=256,Ur(s,c,p,m),c.child}var pm={dehydrated:null,treeContext:null,retryLane:0};function fm(s){return{baseLanes:s,cachePool:null,transitions:null}}function zx(s,c,p){var m=c.pendingProps,v=Yt.current,x=!1,N=(c.flags&128)!==0,A;if((A=N)||(A=s!==null&&s.memoizedState===null?!1:(v&2)!==0),A?(x=!0,c.flags&=-129):(s===null||s.memoizedState!==null)&&(v|=1),Lt(Yt,v&1),s===null)return zh(c),s=c.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?(c.mode&1?s.data==="$!"?c.lanes=8:c.lanes=1073741824:c.lanes=1,null):(N=m.children,s=m.fallback,x?(m=c.mode,x=c.child,N={mode:"hidden",children:N},!(m&1)&&x!==null?(x.childLanes=0,x.pendingProps=N):x=Md(N,m,0,null),s=cs(s,m,p,null),x.return=c,s.return=c,x.sibling=s,c.child=x,c.child.memoizedState=fm(p),c.memoizedState=pm,s):hm(c,N));if(v=s.memoizedState,v!==null&&(A=v.dehydrated,A!==null))return tA(s,c,N,m,A,v,p);if(x){x=m.fallback,N=c.mode,v=s.child,A=v.sibling;var W={mode:"hidden",children:m.children};return!(N&1)&&c.child!==v?(m=c.child,m.childLanes=0,m.pendingProps=W,c.deletions=null):(m=$a(v,W),m.subtreeFlags=v.subtreeFlags&14680064),A!==null?x=$a(A,x):(x=cs(x,N,p,null),x.flags|=2),x.return=c,m.return=c,m.sibling=x,c.child=m,m=x,x=c.child,N=s.child.memoizedState,N=N===null?fm(p):{baseLanes:N.baseLanes|p,cachePool:null,transitions:N.transitions},x.memoizedState=N,x.childLanes=s.childLanes&~p,c.memoizedState=pm,m}return x=s.child,s=x.sibling,m=$a(x,{mode:"visible",children:m.children}),!(c.mode&1)&&(m.lanes=p),m.return=c,m.sibling=null,s!==null&&(p=c.deletions,p===null?(c.deletions=[s],c.flags|=16):p.push(s)),c.child=m,c.memoizedState=null,m}function hm(s,c){return c=Md({mode:"visible",children:c},s.mode,0,null),c.return=s,s.child=c}function yd(s,c,p,m){return m!==null&&Bh(m),pi(c,s.child,null,p),s=hm(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function tA(s,c,p,m,v,x,N){if(p)return c.flags&256?(c.flags&=-257,m=cm(Error(r(422))),yd(s,c,N,m)):c.memoizedState!==null?(c.child=s.child,c.flags|=128,null):(x=m.fallback,v=c.mode,m=Md({mode:"visible",children:m.children},v,0,null),x=cs(x,v,N,null),x.flags|=2,m.return=c,x.return=c,m.sibling=x,c.child=m,c.mode&1&&pi(c,s.child,null,N),c.child.memoizedState=fm(N),c.memoizedState=pm,x);if(!(c.mode&1))return yd(s,c,N,null);if(v.data==="$!"){if(m=v.nextSibling&&v.nextSibling.dataset,m)var A=m.dgst;return m=A,x=Error(r(419)),m=cm(x,m,void 0),yd(s,c,N,m)}if(A=(N&s.childLanes)!==0,Jr||A){if(m=br,m!==null){switch(N&-N){case 4:v=2;break;case 16:v=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:v=32;break;case 536870912:v=268435456;break;default:v=0}v=v&(m.suspendedLanes|N)?0:v,v!==0&&v!==x.retryLane&&(x.retryLane=v,jo(s,v),Xn(m,s,v,-1))}return Dm(),m=cm(Error(r(421))),yd(s,c,N,m)}return v.data==="$?"?(c.flags|=128,c.child=s.child,c=hA.bind(null,s),v._reactRetry=c,null):(s=x.treeContext,pn=ma(v.nextSibling),dn=c,Ht=!0,Un=null,s!==null&&(xn[Sn++]=Ao,xn[Sn++]=Io,xn[Sn++]=Qa,Ao=s.id,Io=s.overflow,Qa=c),c=hm(c,m.children),c.flags|=4096,c)}function Bx(s,c,p){s.lanes|=c;var m=s.alternate;m!==null&&(m.lanes|=c),qh(s.return,c,p)}function mm(s,c,p,m,v){var x=s.memoizedState;x===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:m,tail:p,tailMode:v}:(x.isBackwards=c,x.rendering=null,x.renderingStartTime=0,x.last=m,x.tail=p,x.tailMode=v)}function Wx(s,c,p){var m=c.pendingProps,v=m.revealOrder,x=m.tail;if(Ur(s,c,m.children,p),m=Yt.current,m&2)m=m&1|2,c.flags|=128;else{if(s!==null&&s.flags&128)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Bx(s,p,c);else if(s.tag===19)Bx(s,p,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}m&=1}if(Lt(Yt,m),!(c.mode&1))c.memoizedState=null;else switch(v){case"forwards":for(p=c.child,v=null;p!==null;)s=p.alternate,s!==null&&dd(s)===null&&(v=p),p=p.sibling;p=v,p===null?(v=c.child,c.child=null):(v=p.sibling,p.sibling=null),mm(c,!1,v,p,x);break;case"backwards":for(p=null,v=c.child,c.child=null;v!==null;){if(s=v.alternate,s!==null&&dd(s)===null){c.child=v;break}s=v.sibling,v.sibling=p,p=v,v=s}mm(c,!0,p,null,x);break;case"together":mm(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function vd(s,c){!(c.mode&1)&&s!==null&&(s.alternate=null,c.alternate=null,c.flags|=2)}function Fo(s,c,p){if(s!==null&&(c.dependencies=s.dependencies),os|=c.lanes,!(p&c.childLanes))return null;if(s!==null&&c.child!==s.child)throw Error(r(153));if(c.child!==null){for(s=c.child,p=$a(s,s.pendingProps),c.child=p,p.return=c;s.sibling!==null;)s=s.sibling,p=p.sibling=$a(s,s.pendingProps),p.return=c;p.sibling=null}return c.child}function rA(s,c,p){switch(c.tag){case 3:Lx(c),di();break;case 5:rx(c);break;case 1:Gr(c.type)&&td(c);break;case 4:Gh(c,c.stateNode.containerInfo);break;case 10:var m=c.type._context,v=c.memoizedProps.value;Lt(id,m._currentValue),m._currentValue=v;break;case 13:if(m=c.memoizedState,m!==null)return m.dehydrated!==null?(Lt(Yt,Yt.current&1),c.flags|=128,null):p&c.child.childLanes?zx(s,c,p):(Lt(Yt,Yt.current&1),s=Fo(s,c,p),s!==null?s.sibling:null);Lt(Yt,Yt.current&1);break;case 19:if(m=(p&c.childLanes)!==0,s.flags&128){if(m)return Wx(s,c,p);c.flags|=128}if(v=c.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Lt(Yt,Yt.current),m)break;return null;case 22:case 23:return c.lanes=0,Ax(s,c,p)}return Fo(s,c,p)}var Ux,_m,Hx,qx;Ux=function(s,c){for(var p=c.child;p!==null;){if(p.tag===5||p.tag===6)s.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===c)break;for(;p.sibling===null;){if(p.return===null||p.return===c)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},_m=function(){},Hx=function(s,c,p,m){var v=s.memoizedProps;if(v!==m){s=c.stateNode,rs(ao.current);var x=null;switch(p){case"input":v=We(s,v),m=We(s,m),x=[];break;case"select":v=re({},v,{value:void 0}),m=re({},m,{value:void 0}),x=[];break;case"textarea":v=Se(s,v),m=Se(s,m),x=[];break;default:typeof v.onClick!="function"&&typeof m.onClick=="function"&&(s.onclick=Zu)}_e(p,m);var N;p=null;for(te in v)if(!m.hasOwnProperty(te)&&v.hasOwnProperty(te)&&v[te]!=null)if(te==="style"){var A=v[te];for(N in A)A.hasOwnProperty(N)&&(p||(p={}),p[N]="")}else te!=="dangerouslySetInnerHTML"&&te!=="children"&&te!=="suppressContentEditableWarning"&&te!=="suppressHydrationWarning"&&te!=="autoFocus"&&(o.hasOwnProperty(te)?x||(x=[]):(x=x||[]).push(te,null));for(te in m){var W=m[te];if(A=v!=null?v[te]:void 0,m.hasOwnProperty(te)&&W!==A&&(W!=null||A!=null))if(te==="style")if(A){for(N in A)!A.hasOwnProperty(N)||W&&W.hasOwnProperty(N)||(p||(p={}),p[N]="");for(N in W)W.hasOwnProperty(N)&&A[N]!==W[N]&&(p||(p={}),p[N]=W[N])}else p||(x||(x=[]),x.push(te,p)),p=W;else te==="dangerouslySetInnerHTML"?(W=W?W.__html:void 0,A=A?A.__html:void 0,W!=null&&A!==W&&(x=x||[]).push(te,W)):te==="children"?typeof W!="string"&&typeof W!="number"||(x=x||[]).push(te,""+W):te!=="suppressContentEditableWarning"&&te!=="suppressHydrationWarning"&&(o.hasOwnProperty(te)?(W!=null&&te==="onScroll"&&Bt("scroll",s),x||A===W||(x=[])):(x=x||[]).push(te,W))}p&&(x=x||[]).push("style",p);var te=x;(c.updateQueue=te)&&(c.flags|=4)}},qx=function(s,c,p,m){p!==m&&(c.flags|=4)};function pl(s,c){if(!Ht)switch(s.tailMode){case"hidden":c=s.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?s.tail=null:p.sibling=null;break;case"collapsed":p=s.tail;for(var m=null;p!==null;)p.alternate!==null&&(m=p),p=p.sibling;m===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:m.sibling=null}}function Ar(s){var c=s.alternate!==null&&s.alternate.child===s.child,p=0,m=0;if(c)for(var v=s.child;v!==null;)p|=v.lanes|v.childLanes,m|=v.subtreeFlags&14680064,m|=v.flags&14680064,v.return=s,v=v.sibling;else for(v=s.child;v!==null;)p|=v.lanes|v.childLanes,m|=v.subtreeFlags,m|=v.flags,v.return=s,v=v.sibling;return s.subtreeFlags|=m,s.childLanes=p,c}function nA(s,c,p){var m=c.pendingProps;switch(Lh(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ar(c),null;case 1:return Gr(c.type)&&ed(),Ar(c),null;case 3:return m=c.stateNode,mi(),Wt(Xr),Wt(Pr),Kh(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(s===null||s.child===null)&&(ad(c)?c.flags|=4:s===null||s.memoizedState.isDehydrated&&!(c.flags&256)||(c.flags|=1024,Un!==null&&(Em(Un),Un=null))),_m(s,c),Ar(c),null;case 5:Jh(c);var v=rs(il.current);if(p=c.type,s!==null&&c.stateNode!=null)Hx(s,c,p,m,v),s.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!m){if(c.stateNode===null)throw Error(r(166));return Ar(c),null}if(s=rs(ao.current),ad(c)){m=c.stateNode,p=c.type;var x=c.memoizedProps;switch(m[oo]=c,m[rl]=x,s=(c.mode&1)!==0,p){case"dialog":Bt("cancel",m),Bt("close",m);break;case"iframe":case"object":case"embed":Bt("load",m);break;case"video":case"audio":for(v=0;v<\/script>",s=s.removeChild(s.firstChild)):typeof m.is=="string"?s=N.createElement(p,{is:m.is}):(s=N.createElement(p),p==="select"&&(N=s,m.multiple?N.multiple=!0:m.size&&(N.size=m.size))):s=N.createElementNS(s,p),s[oo]=c,s[rl]=m,Ux(s,c,!1,!1),c.stateNode=s;e:{switch(N=Fe(p,m),p){case"dialog":Bt("cancel",s),Bt("close",s),v=m;break;case"iframe":case"object":case"embed":Bt("load",s),v=m;break;case"video":case"audio":for(v=0;vvi&&(c.flags|=128,m=!0,pl(x,!1),c.lanes=4194304)}else{if(!m)if(s=dd(N),s!==null){if(c.flags|=128,m=!0,p=s.updateQueue,p!==null&&(c.updateQueue=p,c.flags|=4),pl(x,!0),x.tail===null&&x.tailMode==="hidden"&&!N.alternate&&!Ht)return Ar(c),null}else 2*sr()-x.renderingStartTime>vi&&p!==1073741824&&(c.flags|=128,m=!0,pl(x,!1),c.lanes=4194304);x.isBackwards?(N.sibling=c.child,c.child=N):(p=x.last,p!==null?p.sibling=N:c.child=N,x.last=N)}return x.tail!==null?(c=x.tail,x.rendering=c,x.tail=c.sibling,x.renderingStartTime=sr(),c.sibling=null,p=Yt.current,Lt(Yt,m?p&1|2:p&1),c):(Ar(c),null);case 22:case 23:return Om(),m=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==m&&(c.flags|=8192),m&&c.mode&1?fn&1073741824&&(Ar(c),c.subtreeFlags&6&&(c.flags|=8192)):Ar(c),null;case 24:return null;case 25:return null}throw Error(r(156,c.tag))}function oA(s,c){switch(Lh(c),c.tag){case 1:return Gr(c.type)&&ed(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return mi(),Wt(Xr),Wt(Pr),Kh(),s=c.flags,s&65536&&!(s&128)?(c.flags=s&-65537|128,c):null;case 5:return Jh(c),null;case 13:if(Wt(Yt),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));di()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return Wt(Yt),null;case 4:return mi(),null;case 10:return Hh(c.type._context),null;case 22:case 23:return Om(),null;case 24:return null;default:return null}}var bd=!1,Ir=!1,aA=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function gi(s,c){var p=s.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(m){er(s,c,m)}else p.current=null}function gm(s,c,p){try{p()}catch(m){er(s,c,m)}}var Vx=!1;function sA(s,c){if(Oh=zu,s=k1(),wh(s)){if("selectionStart"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var m=p.getSelection&&p.getSelection();if(m&&m.rangeCount!==0){p=m.anchorNode;var v=m.anchorOffset,x=m.focusNode;m=m.focusOffset;try{p.nodeType,x.nodeType}catch{p=null;break e}var N=0,A=-1,W=-1,te=0,ue=0,fe=s,le=null;t:for(;;){for(var Ae;fe!==p||v!==0&&fe.nodeType!==3||(A=N+v),fe!==x||m!==0&&fe.nodeType!==3||(W=N+m),fe.nodeType===3&&(N+=fe.nodeValue.length),(Ae=fe.firstChild)!==null;)le=fe,fe=Ae;for(;;){if(fe===s)break t;if(le===p&&++te===v&&(A=N),le===x&&++ue===m&&(W=N),(Ae=fe.nextSibling)!==null)break;fe=le,le=fe.parentNode}fe=Ae}p=A===-1||W===-1?null:{start:A,end:W}}else p=null}p=p||{start:0,end:0}}else p=null;for(Dh={focusedElem:s,selectionRange:p},zu=!1,Ie=c;Ie!==null;)if(c=Ie,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,Ie=s;else for(;Ie!==null;){c=Ie;try{var je=c.alternate;if(c.flags&1024)switch(c.tag){case 0:case 11:case 15:break;case 1:if(je!==null){var Le=je.memoizedProps,ir=je.memoizedState,J=c.stateNode,V=J.getSnapshotBeforeUpdate(c.elementType===c.type?Le:Hn(c.type,Le),ir);J.__reactInternalSnapshotBeforeUpdate=V}break;case 3:var Z=c.stateNode.containerInfo;Z.nodeType===1?Z.textContent="":Z.nodeType===9&&Z.documentElement&&Z.removeChild(Z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(be){er(c,c.return,be)}if(s=c.sibling,s!==null){s.return=c.return,Ie=s;break}Ie=c.return}return je=Vx,Vx=!1,je}function fl(s,c,p){var m=c.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var v=m=m.next;do{if((v.tag&s)===s){var x=v.destroy;v.destroy=void 0,x!==void 0&&gm(c,p,x)}v=v.next}while(v!==m)}}function wd(s,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&s)===s){var m=p.create;p.destroy=m()}p=p.next}while(p!==c)}}function ym(s){var c=s.ref;if(c!==null){var p=s.stateNode;switch(s.tag){case 5:s=p;break;default:s=p}typeof c=="function"?c(s):c.current=s}}function Xx(s){var c=s.alternate;c!==null&&(s.alternate=null,Xx(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[oo],delete c[rl],delete c[Rh],delete c[WR],delete c[UR])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function Gx(s){return s.tag===5||s.tag===3||s.tag===4}function Jx(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Gx(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function vm(s,c,p){var m=s.tag;if(m===5||m===6)s=s.stateNode,c?p.nodeType===8?p.parentNode.insertBefore(s,c):p.insertBefore(s,c):(p.nodeType===8?(c=p.parentNode,c.insertBefore(s,p)):(c=p,c.appendChild(s)),p=p._reactRootContainer,p!=null||c.onclick!==null||(c.onclick=Zu));else if(m!==4&&(s=s.child,s!==null))for(vm(s,c,p),s=s.sibling;s!==null;)vm(s,c,p),s=s.sibling}function bm(s,c,p){var m=s.tag;if(m===5||m===6)s=s.stateNode,c?p.insertBefore(s,c):p.appendChild(s);else if(m!==4&&(s=s.child,s!==null))for(bm(s,c,p),s=s.sibling;s!==null;)bm(s,c,p),s=s.sibling}var $r=null,qn=!1;function wa(s,c,p){for(p=p.child;p!==null;)Yx(s,c,p),p=p.sibling}function Yx(s,c,p){if(no&&typeof no.onCommitFiberUnmount=="function")try{no.onCommitFiberUnmount(Ru,p)}catch{}switch(p.tag){case 5:Ir||gi(p,c);case 6:var m=$r,v=qn;$r=null,wa(s,c,p),$r=m,qn=v,$r!==null&&(qn?(s=$r,p=p.stateNode,s.nodeType===8?s.parentNode.removeChild(p):s.removeChild(p)):$r.removeChild(p.stateNode));break;case 18:$r!==null&&(qn?(s=$r,p=p.stateNode,s.nodeType===8?Ph(s.parentNode,p):s.nodeType===1&&Ph(s,p),qc(s)):Ph($r,p.stateNode));break;case 4:m=$r,v=qn,$r=p.stateNode.containerInfo,qn=!0,wa(s,c,p),$r=m,qn=v;break;case 0:case 11:case 14:case 15:if(!Ir&&(m=p.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){v=m=m.next;do{var x=v,N=x.destroy;x=x.tag,N!==void 0&&(x&2||x&4)&&gm(p,c,N),v=v.next}while(v!==m)}wa(s,c,p);break;case 1:if(!Ir&&(gi(p,c),m=p.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=p.memoizedProps,m.state=p.memoizedState,m.componentWillUnmount()}catch(A){er(p,c,A)}wa(s,c,p);break;case 21:wa(s,c,p);break;case 22:p.mode&1?(Ir=(m=Ir)||p.memoizedState!==null,wa(s,c,p),Ir=m):wa(s,c,p);break;default:wa(s,c,p)}}function Kx(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var p=s.stateNode;p===null&&(p=s.stateNode=new aA),c.forEach(function(m){var v=mA.bind(null,s,m);p.has(m)||(p.add(m),m.then(v,v))})}}function Vn(s,c){var p=c.deletions;if(p!==null)for(var m=0;mv&&(v=N),m&=~x}if(m=v,m=sr()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*cA(m/1960))-m,10s?16:s,Sa===null)var m=!1;else{if(s=Sa,Sa=null,$d=0,xt&6)throw Error(r(331));var v=xt;for(xt|=4,Ie=s.current;Ie!==null;){var x=Ie,N=x.child;if(Ie.flags&16){var A=x.deletions;if(A!==null){for(var W=0;Wsr()-Sm?ss(s,0):xm|=p),Kr(s,c)}function uS(s,c){c===0&&(s.mode&1?(c=Iu,Iu<<=1,!(Iu&130023424)&&(Iu=4194304)):c=1);var p=Hr();s=jo(s,c),s!==null&&(zc(s,c,p),Kr(s,p))}function hA(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),uS(s,p)}function mA(s,c){var p=0;switch(s.tag){case 13:var m=s.stateNode,v=s.memoizedState;v!==null&&(p=v.retryLane);break;case 19:m=s.stateNode;break;default:throw Error(r(314))}m!==null&&m.delete(c),uS(s,p)}var dS;dS=function(s,c,p){if(s!==null)if(s.memoizedProps!==c.pendingProps||Xr.current)Jr=!0;else{if(!(s.lanes&p)&&!(c.flags&128))return Jr=!1,rA(s,c,p);Jr=!!(s.flags&131072)}else Jr=!1,Ht&&c.flags&1048576&&H1(c,od,c.index);switch(c.lanes=0,c.tag){case 2:var m=c.type;vd(s,c),s=c.pendingProps;var v=ci(c,Pr.current);hi(c,p),v=em(null,c,m,s,v,p);var x=tm();return c.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,Gr(m)?(x=!0,td(c)):x=!1,c.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,Xh(c),v.updater=gd,c.stateNode=v,v._reactInternals=c,im(c,m,s,p),c=dm(null,c,m,!0,x,p)):(c.tag=0,Ht&&x&&jh(c),Ur(null,c,v,p),c=c.child),c;case 16:m=c.elementType;e:{switch(vd(s,c),s=c.pendingProps,v=m._init,m=v(m._payload),c.type=m,v=c.tag=gA(m),s=Hn(m,s),v){case 0:c=um(null,c,m,s,p);break e;case 1:c=jx(null,c,m,s,p);break e;case 11:c=Nx(null,c,m,s,p);break e;case 14:c=Px(null,c,m,Hn(m.type,s),p);break e}throw Error(r(306,m,""))}return c;case 0:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),um(s,c,m,v,p);case 1:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),jx(s,c,m,v,p);case 3:e:{if(Lx(c),s===null)throw Error(r(387));m=c.pendingProps,x=c.memoizedState,v=x.element,Q1(s,c),ud(c,m,null,p);var N=c.memoizedState;if(m=N.element,x.isDehydrated)if(x={element:m,isDehydrated:!1,cache:N.cache,pendingSuspenseBoundaries:N.pendingSuspenseBoundaries,transitions:N.transitions},c.updateQueue.baseState=x,c.memoizedState=x,c.flags&256){v=_i(Error(r(423)),c),c=Fx(s,c,m,p,v);break e}else if(m!==v){v=_i(Error(r(424)),c),c=Fx(s,c,m,p,v);break e}else for(pn=ma(c.stateNode.containerInfo.firstChild),dn=c,Ht=!0,Un=null,p=K1(c,null,m,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(di(),m===v){c=Fo(s,c,p);break e}Ur(s,c,m,p)}c=c.child}return c;case 5:return rx(c),s===null&&zh(c),m=c.type,v=c.pendingProps,x=s!==null?s.memoizedProps:null,N=v.children,Mh(m,v)?N=null:x!==null&&Mh(m,x)&&(c.flags|=32),Ix(s,c),Ur(s,c,N,p),c.child;case 6:return s===null&&zh(c),null;case 13:return zx(s,c,p);case 4:return Gh(c,c.stateNode.containerInfo),m=c.pendingProps,s===null?c.child=pi(c,null,m,p):Ur(s,c,m,p),c.child;case 11:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),Nx(s,c,m,v,p);case 7:return Ur(s,c,c.pendingProps,p),c.child;case 8:return Ur(s,c,c.pendingProps.children,p),c.child;case 12:return Ur(s,c,c.pendingProps.children,p),c.child;case 10:e:{if(m=c.type._context,v=c.pendingProps,x=c.memoizedProps,N=v.value,Lt(id,m._currentValue),m._currentValue=N,x!==null)if(Wn(x.value,N)){if(x.children===v.children&&!Xr.current){c=Fo(s,c,p);break e}}else for(x=c.child,x!==null&&(x.return=c);x!==null;){var A=x.dependencies;if(A!==null){N=x.child;for(var W=A.firstContext;W!==null;){if(W.context===m){if(x.tag===1){W=Lo(-1,p&-p),W.tag=2;var te=x.updateQueue;if(te!==null){te=te.shared;var ue=te.pending;ue===null?W.next=W:(W.next=ue.next,ue.next=W),te.pending=W}}x.lanes|=p,W=x.alternate,W!==null&&(W.lanes|=p),qh(x.return,p,c),A.lanes|=p;break}W=W.next}}else if(x.tag===10)N=x.type===c.type?null:x.child;else if(x.tag===18){if(N=x.return,N===null)throw Error(r(341));N.lanes|=p,A=N.alternate,A!==null&&(A.lanes|=p),qh(N,p,c),N=x.sibling}else N=x.child;if(N!==null)N.return=x;else for(N=x;N!==null;){if(N===c){N=null;break}if(x=N.sibling,x!==null){x.return=N.return,N=x;break}N=N.return}x=N}Ur(s,c,v.children,p),c=c.child}return c;case 9:return v=c.type,m=c.pendingProps.children,hi(c,p),v=kn(v),m=m(v),c.flags|=1,Ur(s,c,m,p),c.child;case 14:return m=c.type,v=Hn(m,c.pendingProps),v=Hn(m.type,v),Px(s,c,m,v,p);case 15:return Rx(s,c,c.type,c.pendingProps,p);case 17:return m=c.type,v=c.pendingProps,v=c.elementType===m?v:Hn(m,v),vd(s,c),c.tag=1,Gr(m)?(s=!0,td(c)):s=!1,hi(c,p),Cx(c,m,v),im(c,m,v,p),dm(null,c,m,!0,s,p);case 19:return Wx(s,c,p);case 22:return Ax(s,c,p)}throw Error(r(156,c.tag))};function pS(s,c){return qw(s,c)}function _A(s,c,p,m){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function En(s,c,p,m){return new _A(s,c,p,m)}function Mm(s){return s=s.prototype,!(!s||!s.isReactComponent)}function gA(s){if(typeof s=="function")return Mm(s)?1:0;if(s!=null){if(s=s.$$typeof,s===G)return 11;if(s===H)return 14}return 2}function $a(s,c){var p=s.alternate;return p===null?(p=En(s.tag,c,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p.alternate=s,s.alternate=p):(p.pendingProps=c,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=s.flags&14680064,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,c=s.dependencies,p.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p}function Dd(s,c,p,m,v,x){var N=2;if(m=s,typeof s=="function")Mm(s)&&(N=1);else if(typeof s=="string")N=5;else e:switch(s){case P:return cs(p.children,v,x,c);case j:N=8,v|=8;break;case F:return s=En(12,p,c,v|2),s.elementType=F,s.lanes=x,s;case B:return s=En(13,p,c,v),s.elementType=B,s.lanes=x,s;case z:return s=En(19,p,c,v),s.elementType=z,s.lanes=x,s;case ee:return Md(p,v,x,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case E:N=10;break e;case L:N=9;break e;case G:N=11;break e;case H:N=14;break e;case K:N=16,m=null;break e}throw Error(r(130,s==null?s:typeof s,""))}return c=En(N,p,c,v),c.elementType=s,c.type=m,c.lanes=x,c}function cs(s,c,p,m){return s=En(7,s,m,c),s.lanes=p,s}function Md(s,c,p,m){return s=En(22,s,m,c),s.elementType=ee,s.lanes=p,s.stateNode={isHidden:!1},s}function Nm(s,c,p){return s=En(6,s,null,c),s.lanes=p,s}function Pm(s,c,p){return c=En(4,s.children!==null?s.children:[],s.key,c),c.lanes=p,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function yA(s,c,p,m,v){this.tag=c,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sh(0),this.expirationTimes=sh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sh(0),this.identifierPrefix=m,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function Rm(s,c,p,m,v,x,N,A,W){return s=new yA(s,c,p,A,W),c===1?(c=1,x===!0&&(c|=8)):c=0,x=En(3,null,null,c),s.current=x,x.stateNode=s,x.memoizedState={element:m,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xh(x),s}function vA(s,c,p){var m=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),zm.exports=NA(),zm.exports}var $S;function PA(){if($S)return Fd;$S=1;var t=HO();return Fd.createRoot=t.createRoot,Fd.hydrateRoot=t.hydrateRoot,Fd}var RA=PA();const It=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ws="8.47.0",$t=globalThis;function sf(t,e,r){const n=r||$t,o=n.__SENTRY__=n.__SENTRY__||{},a=o[ws]=o[ws]||{};return a[t]||(a[t]=e())}const Ls=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,AA="Sentry Logger ",Av=["debug","info","warn","error","log","assert","trace"],Pp={};function Fs(t){if(!("console"in $t))return t();const e=$t.console,r={},n=Object.keys(Pp);n.forEach(o=>{const a=Pp[o];r[o]=e[o],e[o]=a});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function IA(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Ls?Av.forEach(r=>{e[r]=(...n)=>{t&&Fs(()=>{$t.console[r](`${AA}[${r}]:`,...n)})}}):Av.forEach(r=>{e[r]=()=>{}}),e}const it=sf("logger",IA),qO=50,$s="?",ES=/\(error: (.*)\)/,TS=/captureMessage|captureException/;function VO(...t){const e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,o=0)=>{const a=[],i=r.split(` +`);for(let l=n;l1024)continue;const f=ES.test(u)?u.replace(ES,"$1"):u;if(!f.match(/\S*Error: /)){for(const h of e){const d=h(f);if(d){a.push(d);break}}if(a.length>=qO+o)break}}return LA(a.slice(o))}}function jA(t){return Array.isArray(t)?VO(...t):t}function LA(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(zd(e).function||"")&&e.pop(),e.reverse(),TS.test(zd(e).function||"")&&(e.pop(),TS.test(zd(e).function||"")&&e.pop()),e.slice(0,qO).map(r=>({...r,filename:r.filename||zd(e).filename,function:r.function||$s}))}function zd(t){return t[t.length-1]||{}}const Um="";function La(t){try{return!t||typeof t!="function"?Um:t.name||Um}catch{return Um}}function OS(t){const e=t.exception;if(e){const r=[];try{return e.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch{return}}}const wp={},DS={};function zs(t,e){wp[t]=wp[t]||[],wp[t].push(e)}function Bs(t,e){if(!DS[t]){DS[t]=!0;try{e()}catch(r){Ls&&it.error(`Error while instrumenting ${t}`,r)}}}function Kn(t,e){const r=t&&wp[t];if(r)for(const n of r)try{n(e)}catch(o){Ls&&it.error(`Error while triggering instrumentation handler. Type: ${t} Name: ${La(n)} -Error:`,o)}}let Hm=null;function zA(t){const e="error";Fs(e,t),Bs(e,FA)}function FA(){Hm=Et.onerror,Et.onerror=function(t,e,r,n,o){return Kn("error",{column:n,error:o,line:r,msg:t,url:e}),Hm?Hm.apply(this,arguments):!1},Et.onerror.__SENTRY_INSTRUMENTED__=!0}let qm=null;function BA(t){const e="unhandledrejection";Fs(e,t),Bs(e,WA)}function WA(){qm=Et.onunhandledrejection,Et.onunhandledrejection=function(t){return Kn("unhandledrejection",t),qm?qm.apply(this,arguments):!0},Et.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function cf(){return X0(Et),Et}function X0(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||ws,e[ws]=e[ws]||{}}const XO=Object.prototype.toString;function G0(t){switch(XO.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Es(t,Error)}}function Tc(t,e){return XO.call(t)===`[object ${e}]`}function GO(t){return Tc(t,"ErrorEvent")}function MS(t){return Tc(t,"DOMError")}function UA(t){return Tc(t,"DOMException")}function Yo(t){return Tc(t,"String")}function J0(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Y0(t){return t===null||J0(t)||typeof t!="object"&&typeof t!="function"}function fc(t){return Tc(t,"Object")}function lf(t){return typeof Event<"u"&&Es(t,Event)}function HA(t){return typeof Element<"u"&&Es(t,Element)}function qA(t){return Tc(t,"RegExp")}function uf(t){return!!(t&&t.then&&typeof t.then=="function")}function VA(t){return fc(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Es(t,e){try{return t instanceof e}catch{return!1}}function JO(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}const K0=Et,XA=80;function YO(t,e={}){if(!t)return"";try{let r=t;const n=5,o=[];let a=0,i=0;const l=" > ",u=l.length;let f;const h=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||XA;for(;r&&a++1&&i+o.length*u+f.length>=d));)o.push(f),i+=f.length,r=r.parentNode;return o.reverse().join(l)}catch{return""}}function GA(t,e){const r=t,n=[];if(!r||!r.tagName)return"";if(K0.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const o=e&&e.length?e.filter(i=>r.getAttribute(i)).map(i=>[i,r.getAttribute(i)]):null;if(o&&o.length)o.forEach(i=>{n.push(`[${i[0]}="${i[1]}"]`)});else{r.id&&n.push(`#${r.id}`);const i=r.className;if(i&&Yo(i)){const l=i.split(/\s+/);for(const u of l)n.push(`.${u}`)}}const a=["aria-label","type","name","title","alt"];for(const i of a){const l=r.getAttribute(i);l&&n.push(`[${i}="${l}"]`)}return n.join("")}function JA(){try{return K0.document.location.href}catch{return""}}function YA(t){if(!K0.HTMLElement)return null;let e=t;const r=5;for(let n=0;nKA(t,n,r))}function _n(t,e,r){if(!(e in t))return;const n=t[e],o=r(n);typeof o=="function"&&KO(o,n);try{t[e]=o}catch{Ls&&it.log(`Failed to replace method "${e}" in object`,t)}}function Ts(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{Ls&&it.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function KO(t,e){try{const r=e.prototype||{};t.prototype=e.prototype=r,Ts(t,"__sentry_original__",e)}catch{}}function Z0(t){return t.__sentry_original__}function ZO(t){if(G0(t))return{message:t.message,name:t.name,stack:t.stack,...RS(t)};if(lf(t)){const e={type:t.type,target:PS(t.target),currentTarget:PS(t.currentTarget),...RS(t)};return typeof CustomEvent<"u"&&Es(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function PS(t){try{return HA(t)?YO(t):Object.prototype.toString.call(t)}catch{return""}}function RS(t){if(typeof t=="object"&&t!==null){const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function ZA(t,e=40){const r=Object.keys(ZO(t));r.sort();const n=r[0];if(!n)return"[object has no keys]";if(n.length>=e)return cc(n,e);for(let o=r.length;o>0;o--){const a=r.slice(0,o).join(", ");if(!(a.length>e))return o===r.length?a:cc(a,e)}return""}function Pn(t){return Iv(t,new Map)}function Iv(t,e){if(QA(t)){const r=e.get(t);if(r!==void 0)return r;const n={};e.set(t,n);for(const o of Object.getOwnPropertyNames(t))typeof t[o]<"u"&&(n[o]=Iv(t[o],e));return n}if(Array.isArray(t)){const r=e.get(t);if(r!==void 0)return r;const n=[];return e.set(t,n),t.forEach(o=>{n.push(Iv(o,e))}),n}return t}function QA(t){if(!fc(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}const QO=1e3;function mu(){return Date.now()/QO}function e5(){const{performance:t}=Et;if(!t||!t.now)return mu;const e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/QO}const Ko=e5();(()=>{const{performance:t}=Et;if(!t||!t.now)return;const e=3600*1e3,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,a=oMath.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function eD(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Na(t){const{message:e,event_id:r}=t;if(e)return e;const n=eD(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function jv(t,e,r){const n=t.exception=t.exception||{},o=n.values=n.values||[],a=o[0]=o[0]||{};a.value||(a.value=e||""),a.type||(a.type="Error")}function hc(t,e){const r=eD(t);if(!r)return;const n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){const a={...o&&o.data,...e.data};r.mechanism.data=a}}function AS(t){if(t5(t))return!0;try{Ts(t,"__sentry_captured__",!0)}catch{}return!1}function t5(t){try{return t.__sentry_captured__}catch{}}var Vo;(function(t){t[t.PENDING=0]="PENDING";const r=1;t[t.RESOLVED=r]="RESOLVED";const n=2;t[t.REJECTED=n]="REJECTED"})(Vo||(Vo={}));function Os(t){return new Mn(e=>{e(t)})}function Rp(t){return new Mn((e,r)=>{r(t)})}class Mn{constructor(e){Mn.prototype.__init.call(this),Mn.prototype.__init2.call(this),Mn.prototype.__init3.call(this),Mn.prototype.__init4.call(this),this._state=Vo.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new Mn((n,o)=>{this._handlers.push([!1,a=>{if(!e)n(a);else try{n(e(a))}catch(i){o(i)}},a=>{if(!r)o(a);else try{n(r(a))}catch(i){o(i)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new Mn((r,n)=>{let o,a;return this.then(i=>{a=!1,o=i,e&&e()},i=>{a=!0,o=i,e&&e()}).then(()=>{if(a){n(o);return}r(o)})})}__init(){this._resolve=e=>{this._setResult(Vo.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Vo.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===Vo.PENDING){if(uf(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Vo.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===Vo.RESOLVED&&r[1](this._value),this._state===Vo.REJECTED&&r[2](this._value),r[0]=!0)})}}}function r5(t){const e=Ko(),r={sid:An(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>o5(r)};return mc(r,t),r}function mc(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Ko(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:An()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function n5(t,e){let r={};t.status==="ok"&&(r={status:"exited"}),mc(t,r)}function o5(t){return Pn({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}function IS(){return An()}function Lv(){return An().substring(16)}function pf(t,e,r=2){if(!e||typeof e!="object"||r<=0)return e;if(t&&e&&Object.keys(e).length===0)return t;const n={...t};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=pf(n[o],e[o],r-1));return n}const zv="_sentrySpan";function jS(t,e){e?Ts(t,zv,e):delete t[zv]}function LS(t){return t[zv]}const a5=100;class Q0{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:IS(),spanId:Lv()}}clone(){const e=new Q0;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,jS(e,LS(this)),e}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&&mc(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},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,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const r=typeof e=="function"?e(this):e,[n,o]=r instanceof Ds?[r.getScopeData(),r.getRequestSession()]:fc(r)?[e,e.requestSession]:[],{tags:a,extra:i,user:l,contexts:u,level:f,fingerprint:h=[],propagationContext:d}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...i},this._contexts={...this._contexts,...u},l&&Object.keys(l).length&&(this._user=l),f&&(this._level=f),h.length&&(this._fingerprint=h),d&&(this._propagationContext=d),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,jS(this,void 0),this._attachments=[],this.setPropagationContext({traceId:IS()}),this._notifyScopeListeners(),this}addBreadcrumb(e,r){const n=typeof r=="number"?r:a5;if(n<=0)return this;const o={timestamp:mu(),...e},a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>n?a.slice(-n):a,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,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:LS(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=pf(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:Lv(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,r){const n=r&&r.event_id?r.event_id:An();if(!this._client)return it.warn("No client configured on scope - will not capture exception!"),n;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){const o=n&&n.event_id?n.event_id:An();if(!this._client)return it.warn("No client configured on scope - will not capture message!"),o;const a=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:o},this),o}captureEvent(e,r){const n=r&&r.event_id?r.event_id:An();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(it.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}const Ds=Q0;function s5(){return sf("defaultCurrentScope",()=>new Ds)}function i5(){return sf("defaultIsolationScope",()=>new Ds)}class c5{constructor(e,r){let n;e?n=e:n=new Ds;let o;r?o=r:o=new Ds,this._stack=[{scope:n}],this._isolationScope=o}withScope(e){const r=this._pushScope();let n;try{n=e(r)}catch(o){throw this._popScope(),o}return uf(n)?n.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(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(){const 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 _c(){const t=cf(),e=X0(t);return e.stack=e.stack||new c5(s5(),i5())}function l5(t){return _c().withScope(t)}function u5(t,e){const r=_c();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function zS(t){return _c().withScope(()=>t(_c().getIsolationScope()))}function d5(){return{withIsolationScope:zS,withScope:l5,withSetScope:u5,withSetIsolationScope:(t,e)=>zS(e),getCurrentScope:()=>_c().getScope(),getIsolationScope:()=>_c().getIsolationScope()}}function eb(t){const e=X0(t);return e.acs?e.acs:d5()}function ea(){const t=cf();return eb(t).getCurrentScope()}function _u(){const t=cf();return eb(t).getIsolationScope()}function p5(){return sf("globalScope",()=>new Ds)}function f5(...t){const e=cf(),r=eb(e);if(t.length===2){const[n,o]=t;return n?r.withSetScope(n,o):r.withScope(o)}return r.withScope(t[0])}function Br(){return ea().getClient()}function h5(t){const e=t.getPropagationContext(),{traceId:r,spanId:n,parentSpanId:o}=e;return Pn({trace_id:r,span_id:n,parent_span_id:o})}const m5="_sentryMetrics";function _5(t){const e=t[m5];if(!e)return;const r={};for(const[,[n,o]]of e)(r[n]||(r[n]=[])).push(Pn(o));return r}const g5="sentry.source",y5="sentry.sample_rate",v5="sentry.op",b5="sentry.origin",w5=0,x5=1,S5="sentry-",k5=/^sentry-/;function C5(t){const e=$5(t);if(!e)return;const r=Object.entries(e).reduce((n,[o,a])=>{if(o.match(k5)){const i=o.slice(S5.length);n[i]=a}return n},{});if(Object.keys(r).length>0)return r}function $5(t){if(!(!t||!Yo(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,r)=>{const n=FS(r);return Object.entries(n).forEach(([o,a])=>{e[o]=a}),e},{}):FS(t)}function FS(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(r&&n&&(e[r]=n),e),{})}const E5=1;let BS=!1;function T5(t){const{spanId:e,traceId:r,isRemote:n}=t.spanContext(),o=n?e:tb(t).parent_span_id,a=n?Lv():e;return Pn({parent_span_id:o,span_id:a,trace_id:r})}function WS(t){return typeof t=="number"?US(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?US(t.getTime()):Ko()}function US(t){return t>9999999999?t/1e3:t}function tb(t){if(D5(t))return t.getSpanJSON();try{const{spanId:e,traceId:r}=t.spanContext();if(O5(t)){const{attributes:n,startTime:o,name:a,endTime:i,parentSpanId:l,status:u}=t;return Pn({span_id:e,trace_id:r,data:n,description:a,parent_span_id:l,start_timestamp:WS(o),timestamp:WS(i)||void 0,status:N5(u),op:n[v5],origin:n[b5],_metrics_summary:_5(t)})}return{span_id:e,trace_id:r}}catch{return{}}}function O5(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function D5(t){return typeof t.getSpanJSON=="function"}function M5(t){const{traceFlags:e}=t.spanContext();return e===E5}function N5(t){if(!(!t||t.code===w5))return t.code===x5?"ok":t.message||"unknown_error"}const P5="_sentryRootSpan";function tD(t){return t[P5]||t}function R5(){BS||(zs(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),BS=!0)}function A5(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=Br(),r=e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}const rb="production",I5="_frozenDsc";function rD(t,e){const r=e.getOptions(),{publicKey:n}=e.getDsn()||{},o=Pn({environment:r.environment||rb,release:r.release,public_key:n,trace_id:t});return e.emit("createDsc",o),o}function j5(t,e){const r=e.getPropagationContext();return r.dsc||rD(r.traceId,t)}function L5(t){const e=Br();if(!e)return{};const r=tD(t),n=r[I5];if(n)return n;const o=r.spanContext().traceState,a=o&&o.get("sentry.dsc"),i=a&&C5(a);if(i)return i;const l=rD(t.spanContext().traceId,e),u=tb(r),f=u.data||{},h=f[y5];h!=null&&(l.sample_rate=`${h}`);const d=f[g5],_=u.description;return d!=="url"&&_&&(l.transaction=_),A5()&&(l.sampled=String(M5(r))),e.emit("createDsc",l,r),l}function z5(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>1){It&&it.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}const F5=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function B5(t){return t==="http"||t==="https"}function ff(t,e=!1){const{host:r,path:n,pass:o,port:a,projectId:i,protocol:l,publicKey:u}=t;return`${l}://${u}${e&&o?`:${o}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${i}`}function W5(t){const e=F5.exec(t);if(!e){zs(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[r,n,o="",a="",i="",l=""]=e.slice(1);let u="",f=l;const h=f.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),f=h.pop()),f){const d=f.match(/^\d+/);d&&(f=d[0])}return nD({host:a,pass:o,path:u,projectId:f,port:i,protocol:r,publicKey:n})}function nD(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function U5(t){if(!Ls)return!0;const{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(i=>t[i]?!1:(it.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:r.match(/^\d+$/)?B5(n)?e&&isNaN(parseInt(e,10))?(it.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(it.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(it.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function H5(t){const e=typeof t=="string"?W5(t):nD(t);if(!(!e||!U5(e)))return e}function q5(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(o){if(t)return e.has(o)?!0:(e.add(o),!1);for(let a=0;ar?oD(t,e-1,r):n}function Fv(t,e,r=1/0,n=1/0,o=q5()){const[a,i]=o;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const l=V5(t,e);if(!l.startsWith("[object "))return l;if(e.__sentry_skip_normalization__)return e;const u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(u===0)return l.replace("object ","");if(a(e))return"[Circular ~]";const f=e;if(f&&typeof f.toJSON=="function")try{const g=f.toJSON();return Fv("",g,u-1,n,o)}catch{}const h=Array.isArray(e)?[]:{};let d=0;const _=ZO(e);for(const g in _){if(!Object.prototype.hasOwnProperty.call(_,g))continue;if(d>=n){h[g]="[MaxProperties ~]";break}const b=_[g];h[g]=Fv(g,b,u-1,n,o),d++}return i(e),h}function V5(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(JO(e))return"[VueViewModel]";if(VA(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${La(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const r=X5(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function X5(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function G5(t){return~-encodeURI(t).split(/%..|./).length}function J5(t){return G5(JSON.stringify(t))}function gu(t,e=[]){return[t,e]}function Y5(t,e){const[r,n]=t;return[r,[...n,e]]}function HS(t,e){const r=t[1];for(const n of r){const o=n[0].type;if(e(n,o))return!0}return!1}function Bv(t){return Et.__SENTRY__&&Et.__SENTRY__.encodePolyfill?Et.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function K5(t){const[e,r]=t;let n=JSON.stringify(e);function o(a){typeof n=="string"?n=typeof a=="string"?n+a:[Bv(n),a]:n.push(typeof a=="string"?Bv(a):a)}for(const a of r){const[i,l]=a;if(o(` +Error:`,o)}}let Hm=null;function FA(t){const e="error";zs(e,t),Bs(e,zA)}function zA(){Hm=$t.onerror,$t.onerror=function(t,e,r,n,o){return Kn("error",{column:n,error:o,line:r,msg:t,url:e}),Hm?Hm.apply(this,arguments):!1},$t.onerror.__SENTRY_INSTRUMENTED__=!0}let qm=null;function BA(t){const e="unhandledrejection";zs(e,t),Bs(e,WA)}function WA(){qm=$t.onunhandledrejection,$t.onunhandledrejection=function(t){return Kn("unhandledrejection",t),qm?qm.apply(this,arguments):!0},$t.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function cf(){return X0($t),$t}function X0(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||ws,e[ws]=e[ws]||{}}const XO=Object.prototype.toString;function G0(t){switch(XO.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Es(t,Error)}}function Tc(t,e){return XO.call(t)===`[object ${e}]`}function GO(t){return Tc(t,"ErrorEvent")}function MS(t){return Tc(t,"DOMError")}function UA(t){return Tc(t,"DOMException")}function Yo(t){return Tc(t,"String")}function J0(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Y0(t){return t===null||J0(t)||typeof t!="object"&&typeof t!="function"}function fc(t){return Tc(t,"Object")}function lf(t){return typeof Event<"u"&&Es(t,Event)}function HA(t){return typeof Element<"u"&&Es(t,Element)}function qA(t){return Tc(t,"RegExp")}function uf(t){return!!(t&&t.then&&typeof t.then=="function")}function VA(t){return fc(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Es(t,e){try{return t instanceof e}catch{return!1}}function JO(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}const K0=$t,XA=80;function YO(t,e={}){if(!t)return"";try{let r=t;const n=5,o=[];let a=0,i=0;const l=" > ",u=l.length;let f;const h=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||XA;for(;r&&a++1&&i+o.length*u+f.length>=d));)o.push(f),i+=f.length,r=r.parentNode;return o.reverse().join(l)}catch{return""}}function GA(t,e){const r=t,n=[];if(!r||!r.tagName)return"";if(K0.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const o=e&&e.length?e.filter(i=>r.getAttribute(i)).map(i=>[i,r.getAttribute(i)]):null;if(o&&o.length)o.forEach(i=>{n.push(`[${i[0]}="${i[1]}"]`)});else{r.id&&n.push(`#${r.id}`);const i=r.className;if(i&&Yo(i)){const l=i.split(/\s+/);for(const u of l)n.push(`.${u}`)}}const a=["aria-label","type","name","title","alt"];for(const i of a){const l=r.getAttribute(i);l&&n.push(`[${i}="${l}"]`)}return n.join("")}function JA(){try{return K0.document.location.href}catch{return""}}function YA(t){if(!K0.HTMLElement)return null;let e=t;const r=5;for(let n=0;nKA(t,n,r))}function _n(t,e,r){if(!(e in t))return;const n=t[e],o=r(n);typeof o=="function"&&KO(o,n);try{t[e]=o}catch{Ls&&it.log(`Failed to replace method "${e}" in object`,t)}}function Ts(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{Ls&&it.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function KO(t,e){try{const r=e.prototype||{};t.prototype=e.prototype=r,Ts(t,"__sentry_original__",e)}catch{}}function Z0(t){return t.__sentry_original__}function ZO(t){if(G0(t))return{message:t.message,name:t.name,stack:t.stack,...RS(t)};if(lf(t)){const e={type:t.type,target:PS(t.target),currentTarget:PS(t.currentTarget),...RS(t)};return typeof CustomEvent<"u"&&Es(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function PS(t){try{return HA(t)?YO(t):Object.prototype.toString.call(t)}catch{return""}}function RS(t){if(typeof t=="object"&&t!==null){const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function ZA(t,e=40){const r=Object.keys(ZO(t));r.sort();const n=r[0];if(!n)return"[object has no keys]";if(n.length>=e)return cc(n,e);for(let o=r.length;o>0;o--){const a=r.slice(0,o).join(", ");if(!(a.length>e))return o===r.length?a:cc(a,e)}return""}function Pn(t){return Iv(t,new Map)}function Iv(t,e){if(QA(t)){const r=e.get(t);if(r!==void 0)return r;const n={};e.set(t,n);for(const o of Object.getOwnPropertyNames(t))typeof t[o]<"u"&&(n[o]=Iv(t[o],e));return n}if(Array.isArray(t)){const r=e.get(t);if(r!==void 0)return r;const n=[];return e.set(t,n),t.forEach(o=>{n.push(Iv(o,e))}),n}return t}function QA(t){if(!fc(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}const QO=1e3;function mu(){return Date.now()/QO}function e5(){const{performance:t}=$t;if(!t||!t.now)return mu;const e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/QO}const Ko=e5();(()=>{const{performance:t}=$t;if(!t||!t.now)return;const e=3600*1e3,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,a=oMath.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function eD(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Na(t){const{message:e,event_id:r}=t;if(e)return e;const n=eD(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function jv(t,e,r){const n=t.exception=t.exception||{},o=n.values=n.values||[],a=o[0]=o[0]||{};a.value||(a.value=e||""),a.type||(a.type="Error")}function hc(t,e){const r=eD(t);if(!r)return;const n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){const a={...o&&o.data,...e.data};r.mechanism.data=a}}function AS(t){if(t5(t))return!0;try{Ts(t,"__sentry_captured__",!0)}catch{}return!1}function t5(t){try{return t.__sentry_captured__}catch{}}var Vo;(function(t){t[t.PENDING=0]="PENDING";const r=1;t[t.RESOLVED=r]="RESOLVED";const n=2;t[t.REJECTED=n]="REJECTED"})(Vo||(Vo={}));function Os(t){return new Mn(e=>{e(t)})}function Rp(t){return new Mn((e,r)=>{r(t)})}class Mn{constructor(e){Mn.prototype.__init.call(this),Mn.prototype.__init2.call(this),Mn.prototype.__init3.call(this),Mn.prototype.__init4.call(this),this._state=Vo.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new Mn((n,o)=>{this._handlers.push([!1,a=>{if(!e)n(a);else try{n(e(a))}catch(i){o(i)}},a=>{if(!r)o(a);else try{n(r(a))}catch(i){o(i)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new Mn((r,n)=>{let o,a;return this.then(i=>{a=!1,o=i,e&&e()},i=>{a=!0,o=i,e&&e()}).then(()=>{if(a){n(o);return}r(o)})})}__init(){this._resolve=e=>{this._setResult(Vo.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Vo.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===Vo.PENDING){if(uf(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Vo.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===Vo.RESOLVED&&r[1](this._value),this._state===Vo.REJECTED&&r[2](this._value),r[0]=!0)})}}}function r5(t){const e=Ko(),r={sid:An(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>o5(r)};return mc(r,t),r}function mc(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Ko(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:An()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function n5(t,e){let r={};t.status==="ok"&&(r={status:"exited"}),mc(t,r)}function o5(t){return Pn({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}function IS(){return An()}function Lv(){return An().substring(16)}function pf(t,e,r=2){if(!e||typeof e!="object"||r<=0)return e;if(t&&e&&Object.keys(e).length===0)return t;const n={...t};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=pf(n[o],e[o],r-1));return n}const Fv="_sentrySpan";function jS(t,e){e?Ts(t,Fv,e):delete t[Fv]}function LS(t){return t[Fv]}const a5=100;class Q0{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:IS(),spanId:Lv()}}clone(){const e=new Q0;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,jS(e,LS(this)),e}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&&mc(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},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,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const r=typeof e=="function"?e(this):e,[n,o]=r instanceof Ds?[r.getScopeData(),r.getRequestSession()]:fc(r)?[e,e.requestSession]:[],{tags:a,extra:i,user:l,contexts:u,level:f,fingerprint:h=[],propagationContext:d}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...i},this._contexts={...this._contexts,...u},l&&Object.keys(l).length&&(this._user=l),f&&(this._level=f),h.length&&(this._fingerprint=h),d&&(this._propagationContext=d),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,jS(this,void 0),this._attachments=[],this.setPropagationContext({traceId:IS()}),this._notifyScopeListeners(),this}addBreadcrumb(e,r){const n=typeof r=="number"?r:a5;if(n<=0)return this;const o={timestamp:mu(),...e},a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>n?a.slice(-n):a,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,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:LS(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=pf(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:Lv(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,r){const n=r&&r.event_id?r.event_id:An();if(!this._client)return it.warn("No client configured on scope - will not capture exception!"),n;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){const o=n&&n.event_id?n.event_id:An();if(!this._client)return it.warn("No client configured on scope - will not capture message!"),o;const a=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:o},this),o}captureEvent(e,r){const n=r&&r.event_id?r.event_id:An();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(it.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}const Ds=Q0;function s5(){return sf("defaultCurrentScope",()=>new Ds)}function i5(){return sf("defaultIsolationScope",()=>new Ds)}class c5{constructor(e,r){let n;e?n=e:n=new Ds;let o;r?o=r:o=new Ds,this._stack=[{scope:n}],this._isolationScope=o}withScope(e){const r=this._pushScope();let n;try{n=e(r)}catch(o){throw this._popScope(),o}return uf(n)?n.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(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(){const 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 _c(){const t=cf(),e=X0(t);return e.stack=e.stack||new c5(s5(),i5())}function l5(t){return _c().withScope(t)}function u5(t,e){const r=_c();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function FS(t){return _c().withScope(()=>t(_c().getIsolationScope()))}function d5(){return{withIsolationScope:FS,withScope:l5,withSetScope:u5,withSetIsolationScope:(t,e)=>FS(e),getCurrentScope:()=>_c().getScope(),getIsolationScope:()=>_c().getIsolationScope()}}function eb(t){const e=X0(t);return e.acs?e.acs:d5()}function ea(){const t=cf();return eb(t).getCurrentScope()}function _u(){const t=cf();return eb(t).getIsolationScope()}function p5(){return sf("globalScope",()=>new Ds)}function f5(...t){const e=cf(),r=eb(e);if(t.length===2){const[n,o]=t;return n?r.withSetScope(n,o):r.withScope(o)}return r.withScope(t[0])}function Br(){return ea().getClient()}function h5(t){const e=t.getPropagationContext(),{traceId:r,spanId:n,parentSpanId:o}=e;return Pn({trace_id:r,span_id:n,parent_span_id:o})}const m5="_sentryMetrics";function _5(t){const e=t[m5];if(!e)return;const r={};for(const[,[n,o]]of e)(r[n]||(r[n]=[])).push(Pn(o));return r}const g5="sentry.source",y5="sentry.sample_rate",v5="sentry.op",b5="sentry.origin",w5=0,x5=1,S5="sentry-",k5=/^sentry-/;function C5(t){const e=$5(t);if(!e)return;const r=Object.entries(e).reduce((n,[o,a])=>{if(o.match(k5)){const i=o.slice(S5.length);n[i]=a}return n},{});if(Object.keys(r).length>0)return r}function $5(t){if(!(!t||!Yo(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,r)=>{const n=zS(r);return Object.entries(n).forEach(([o,a])=>{e[o]=a}),e},{}):zS(t)}function zS(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(r&&n&&(e[r]=n),e),{})}const E5=1;let BS=!1;function T5(t){const{spanId:e,traceId:r,isRemote:n}=t.spanContext(),o=n?e:tb(t).parent_span_id,a=n?Lv():e;return Pn({parent_span_id:o,span_id:a,trace_id:r})}function WS(t){return typeof t=="number"?US(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?US(t.getTime()):Ko()}function US(t){return t>9999999999?t/1e3:t}function tb(t){if(D5(t))return t.getSpanJSON();try{const{spanId:e,traceId:r}=t.spanContext();if(O5(t)){const{attributes:n,startTime:o,name:a,endTime:i,parentSpanId:l,status:u}=t;return Pn({span_id:e,trace_id:r,data:n,description:a,parent_span_id:l,start_timestamp:WS(o),timestamp:WS(i)||void 0,status:N5(u),op:n[v5],origin:n[b5],_metrics_summary:_5(t)})}return{span_id:e,trace_id:r}}catch{return{}}}function O5(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function D5(t){return typeof t.getSpanJSON=="function"}function M5(t){const{traceFlags:e}=t.spanContext();return e===E5}function N5(t){if(!(!t||t.code===w5))return t.code===x5?"ok":t.message||"unknown_error"}const P5="_sentryRootSpan";function tD(t){return t[P5]||t}function R5(){BS||(Fs(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),BS=!0)}function A5(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=Br(),r=e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}const rb="production",I5="_frozenDsc";function rD(t,e){const r=e.getOptions(),{publicKey:n}=e.getDsn()||{},o=Pn({environment:r.environment||rb,release:r.release,public_key:n,trace_id:t});return e.emit("createDsc",o),o}function j5(t,e){const r=e.getPropagationContext();return r.dsc||rD(r.traceId,t)}function L5(t){const e=Br();if(!e)return{};const r=tD(t),n=r[I5];if(n)return n;const o=r.spanContext().traceState,a=o&&o.get("sentry.dsc"),i=a&&C5(a);if(i)return i;const l=rD(t.spanContext().traceId,e),u=tb(r),f=u.data||{},h=f[y5];h!=null&&(l.sample_rate=`${h}`);const d=f[g5],_=u.description;return d!=="url"&&_&&(l.transaction=_),A5()&&(l.sampled=String(M5(r))),e.emit("createDsc",l,r),l}function F5(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>1){It&&it.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}const z5=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function B5(t){return t==="http"||t==="https"}function ff(t,e=!1){const{host:r,path:n,pass:o,port:a,projectId:i,protocol:l,publicKey:u}=t;return`${l}://${u}${e&&o?`:${o}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${i}`}function W5(t){const e=z5.exec(t);if(!e){Fs(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[r,n,o="",a="",i="",l=""]=e.slice(1);let u="",f=l;const h=f.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),f=h.pop()),f){const d=f.match(/^\d+/);d&&(f=d[0])}return nD({host:a,pass:o,path:u,projectId:f,port:i,protocol:r,publicKey:n})}function nD(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function U5(t){if(!Ls)return!0;const{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(i=>t[i]?!1:(it.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:r.match(/^\d+$/)?B5(n)?e&&isNaN(parseInt(e,10))?(it.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(it.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(it.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function H5(t){const e=typeof t=="string"?W5(t):nD(t);if(!(!e||!U5(e)))return e}function q5(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(o){if(t)return e.has(o)?!0:(e.add(o),!1);for(let a=0;ar?oD(t,e-1,r):n}function zv(t,e,r=1/0,n=1/0,o=q5()){const[a,i]=o;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const l=V5(t,e);if(!l.startsWith("[object "))return l;if(e.__sentry_skip_normalization__)return e;const u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(u===0)return l.replace("object ","");if(a(e))return"[Circular ~]";const f=e;if(f&&typeof f.toJSON=="function")try{const g=f.toJSON();return zv("",g,u-1,n,o)}catch{}const h=Array.isArray(e)?[]:{};let d=0;const _=ZO(e);for(const g in _){if(!Object.prototype.hasOwnProperty.call(_,g))continue;if(d>=n){h[g]="[MaxProperties ~]";break}const b=_[g];h[g]=zv(g,b,u-1,n,o),d++}return i(e),h}function V5(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(JO(e))return"[VueViewModel]";if(VA(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${La(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const r=X5(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function X5(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function G5(t){return~-encodeURI(t).split(/%..|./).length}function J5(t){return G5(JSON.stringify(t))}function gu(t,e=[]){return[t,e]}function Y5(t,e){const[r,n]=t;return[r,[...n,e]]}function HS(t,e){const r=t[1];for(const n of r){const o=n[0].type;if(e(n,o))return!0}return!1}function Bv(t){return $t.__SENTRY__&&$t.__SENTRY__.encodePolyfill?$t.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function K5(t){const[e,r]=t;let n=JSON.stringify(e);function o(a){typeof n=="string"?n=typeof a=="string"?n+a:[Bv(n),a]:n.push(typeof a=="string"?Bv(a):a)}for(const a of r){const[i,l]=a;if(o(` ${JSON.stringify(i)} -`),typeof l=="string"||l instanceof Uint8Array)o(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(Xo(l))}o(u)}}return typeof n=="string"?n:Z5(n)}function Z5(t){const e=t.reduce((o,a)=>o+a.length,0),r=new Uint8Array(e);let n=0;for(const o of t)r.set(o,n),n+=o.length;return r}function Q5(t){const e=typeof t.data=="string"?Bv(t.data):t.data;return[Pn({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const eI={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function qS(t){return eI[t]}function aD(t){if(!t||!t.sdk)return;const{name:e,version:r}=t.sdk;return{name:e,version:r}}function tI(t,e,r,n){const o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:ff(n)},...o&&{trace:Pn({...o})}}}function rI(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function nI(t,e,r,n){const o=aD(r),a={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:ff(e)}},i="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return gu(a,[i])}function oI(t,e,r,n){const o=aD(r),a=t.type&&t.type!=="replay_event"?t.type:"event";rI(t,r&&r.sdk);const i=tI(t,o,n,e);return delete t.sdkProcessingMetadata,gu(i,[[{type:a},t]])}function Wv(t,e,r,n=0){return new Mn((o,a)=>{const i=t[n];if(e===null||typeof i!="function")o(e);else{const l=i({...e},r);It&&i.id&&l===null&&it.log(`Event processor "${i.id}" dropped event`),uf(l)?l.then(u=>Wv(t,u,r,n+1).then(o)).then(null,a):Wv(t,l,r,n+1).then(o).then(null,a)}})}let Bd,VS,Wd;function aI(t){const e=Et._sentryDebugIds;if(!e)return{};const r=Object.keys(e);return Wd&&r.length===VS||(VS=r.length,Wd=r.reduce((n,o)=>{Bd||(Bd={});const a=Bd[o];if(a)n[a[0]]=a[1];else{const i=t(o);for(let l=i.length-1;l>=0;l--){const u=i[l],f=u&&u.filename,h=e[o];if(f&&h){n[f]=h,Bd[o]=[f,h];break}}}return n},{})),Wd}function sI(t,e){const{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:a}=e;iI(t,e),n&&uI(t,n),dI(t,r),cI(t,o),lI(t,a)}function XS(t,e){const{extra:r,tags:n,user:o,contexts:a,level:i,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:f,eventProcessors:h,attachments:d,propagationContext:_,transactionName:g,span:b}=e;Ud(t,"extra",r),Ud(t,"tags",n),Ud(t,"user",o),Ud(t,"contexts",a),t.sdkProcessingMetadata=pf(t.sdkProcessingMetadata,l,2),i&&(t.level=i),g&&(t.transactionName=g),b&&(t.span=b),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),f.length&&(t.fingerprint=[...t.fingerprint,...f]),h.length&&(t.eventProcessors=[...t.eventProcessors,...h]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,..._}}function Ud(t,e,r){t[e]=pf(t[e],r,1)}function iI(t,e){const{extra:r,tags:n,user:o,contexts:a,level:i,transactionName:l}=e,u=Pn(r);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const f=Pn(n);f&&Object.keys(f).length&&(t.tags={...f,...t.tags});const h=Pn(o);h&&Object.keys(h).length&&(t.user={...h,...t.user});const d=Pn(a);d&&Object.keys(d).length&&(t.contexts={...d,...t.contexts}),i&&(t.level=i),l&&t.type!=="transaction"&&(t.transaction=l)}function cI(t,e){const r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function lI(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function uI(t,e){t.contexts={trace:T5(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:L5(e),...t.sdkProcessingMetadata};const r=tD(e),n=tb(r).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function dI(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function pI(t,e,r,n,o,a){const{normalizeDepth:i=3,normalizeMaxBreadth:l=1e3}=t,u={...e,event_id:e.event_id||r.event_id||An(),timestamp:e.timestamp||mu()},f=r.integrations||t.integrations.map(S=>S.name);fI(u,t),_I(u,f),o&&o.emit("applyFrameMetadata",e),e.type===void 0&&hI(u,t.stackParser);const h=yI(n,r.captureContext);r.mechanism&&hc(u,r.mechanism);const d=o?o.getEventProcessors():[],_=p5().getScopeData();if(a){const S=a.getScopeData();XS(_,S)}if(h){const S=h.getScopeData();XS(_,S)}const g=[...r.attachments||[],..._.attachments];g.length&&(r.attachments=g),sI(u,_);const b=[...d,..._.eventProcessors];return Wv(b,u,r).then(S=>(S&&mI(S),typeof i=="number"&&i>0?gI(S,i,l):S))}function fI(t,e){const{environment:r,release:n,dist:o,maxValueLength:a=250}=e;t.environment=t.environment||r||rb,!t.release&&n&&(t.release=n),!t.dist&&o&&(t.dist=o),t.message&&(t.message=cc(t.message,a));const i=t.exception&&t.exception.values&&t.exception.values[0];i&&i.value&&(i.value=cc(i.value,a));const l=t.request;l&&l.url&&(l.url=cc(l.url,a))}function hI(t,e){const r=aI(e);try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{r&&o.filename&&(o.debug_id=r[o.filename])})})}catch{}}function mI(t){const e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const r=t.debug_meta.images;Object.entries(e).forEach(([n,o])=>{r.push({type:"sourcemap",code_file:n,debug_id:o})})}function _I(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function gI(t,e,r){if(!t)return null;const n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:Xo(o.data,e,r)}}))},...t.user&&{user:Xo(t.user,e,r)},...t.contexts&&{contexts:Xo(t.contexts,e,r)},...t.extra&&{extra:Xo(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=Xo(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(o=>({...o,...o.data&&{data:Xo(o.data,e,r)}}))),t.contexts&&t.contexts.flags&&n.contexts&&(n.contexts.flags=Xo(t.contexts.flags,3,r)),n}function yI(t,e){if(!e)return t;const r=t?t.clone():new Ds;return r.update(e),r}function vI(t,e){return ea().captureException(t,void 0)}function sD(t,e){return ea().captureEvent(t,e)}function GS(t){const e=Br(),r=_u(),n=ea(),{release:o,environment:a=rb}=e&&e.getOptions()||{},{userAgent:i}=Et.navigator||{},l=r5({release:o,environment:a,user:n.getUser()||r.getUser(),...i&&{userAgent:i},...t}),u=r.getSession();return u&&u.status==="ok"&&mc(u,{status:"exited"}),iD(),r.setSession(l),n.setSession(l),l}function iD(){const t=_u(),e=ea(),r=e.getSession()||t.getSession();r&&n5(r),cD(),t.setSession(),e.setSession()}function cD(){const t=_u(),e=ea(),r=Br(),n=e.getSession()||t.getSession();n&&r&&r.captureSession(n)}function JS(t=!1){if(t){iD();return}cD()}const bI="7";function wI(t){const e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function xI(t){return`${wI(t)}${t.projectId}/envelope/`}function SI(t,e){const r={sentry_version:bI};return t.publicKey&&(r.sentry_key=t.publicKey),e&&(r.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(r).toString()}function kI(t,e,r){return e||`${xI(t)}?${SI(t,r)}`}const YS=[];function CI(t){const e={};return t.forEach(r=>{const{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.values(e)}function $I(t){const e=t.defaultIntegrations||[],r=t.integrations;e.forEach(i=>{i.isDefaultInstance=!0});let n;if(Array.isArray(r))n=[...e,...r];else if(typeof r=="function"){const i=r(e);n=Array.isArray(i)?i:[i]}else n=e;const o=CI(n),a=o.findIndex(i=>i.name==="Debug");if(a>-1){const[i]=o.splice(a,1);o.push(i)}return o}function EI(t,e){const r={};return e.forEach(n=>{n&&lD(t,n,r)}),r}function KS(t,e){for(const r of e)r&&r.afterAllSetup&&r.afterAllSetup(t)}function lD(t,e,r){if(r[e.name]){It&&it.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,YS.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),YS.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,a)=>n(o,a,t))}if(typeof e.processEvent=="function"){const n=e.processEvent.bind(e),o=Object.assign((a,i)=>n(a,i,t),{id:e.name});t.addEventProcessor(o)}It&&it.log(`Integration installed: ${e.name}`)}function TI(t,e,r){const n=[{type:"client_report"},{timestamp:mu(),discarded_events:t}];return gu(e?{dsn:e}:{},[n])}class yo extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}}const ZS="Not capturing exception because it's already been captured.";class OI{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=H5(e.dsn):It&&it.warn("No DSN provided, client will not send events."),this._dsn){const o=kI(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:o})}const n=["enableTracing","tracesSampleRate","tracesSampler"].find(o=>o in e&&e[o]==null);n&&zs(()=>{console.warn(`[Sentry] Deprecation warning: \`${n}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,r,n){const o=An();if(AS(e))return It&&it.log(ZS),o;const a={event_id:o,...r};return this._process(this.eventFromException(e,a).then(i=>this._captureEvent(i,a,n))),a.event_id}captureMessage(e,r,n,o){const a={event_id:An(),...n},i=J0(e)?e:String(e),l=Y0(e)?this.eventFromMessage(i,r,a):this.eventFromException(e,a);return this._process(l.then(u=>this._captureEvent(u,a,o))),a.event_id}captureEvent(e,r,n){const o=An();if(r&&r.originalException&&AS(r.originalException))return It&&it.log(ZS),o;const a={event_id:o,...r},l=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,a,l||n)),a.event_id}captureSession(e){typeof e.release!="string"?It&&it.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),mc(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>r.flush(e).then(o=>n&&o))):Os(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}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]}addIntegration(e){const r=this._integrations[e.name];lD(this,e,this._integrations),r||KS(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=oI(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of r.attachments||[])n=Y5(n,Q5(a));const o=this.sendEnvelope(n);o&&o.then(a=>this.emit("afterSendEvent",e,a),null)}sendSession(e){const r=nI(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){const o=typeof n=="number"?n:1,a=`${e}:${r}`;It&&it.log(`Recording outcome: "${a}"${o>1?` (${o} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+o}}on(e,r){const n=this._hooks[e]=this._hooks[e]||[];return n.push(r),()=>{const o=n.indexOf(r);o>-1&&n.splice(o,1)}}emit(e,...r){const n=this._hooks[e];n&&n.forEach(o=>o(...r))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,r=>(It&&it.error("Error while sending envelope:",r),r)):(It&&it.error("Transport disabled"),Os({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=EI(this,e),KS(this,e)}_updateSessionFromEvent(e,r){let n=!1,o=!1;const a=r.exception&&r.exception.values;if(a){o=!0;for(const u of a){const f=u.mechanism;if(f&&f.handled===!1){n=!0;break}}}const i=e.status==="ok";(i&&e.errors===0||i&&n)&&(mc(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Mn(r=>{let n=0;const o=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),r(!0)):(n+=o,e&&n>=e&&(clearInterval(a),r(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n=ea(),o=_u()){const a=this.getOptions(),i=Object.keys(this._integrations);return!r.integrations&&i.length>0&&(r.integrations=i),this.emit("preprocessEvent",e,r),e.type||o.setLastEventId(e.event_id||r.event_id),pI(a,e,r,n,this,o).then(l=>{if(l===null)return l;l.contexts={trace:h5(n),...l.contexts};const u=j5(this,n);return l.sdkProcessingMetadata={dynamicSamplingContext:u,...l.sdkProcessingMetadata},l})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(o=>o.event_id,o=>{if(It){const a=o;a.logLevel==="log"?it.log(a.message):it.warn(a)}})}_processEvent(e,r,n){const o=this.getOptions(),{sampleRate:a}=o,i=dD(e),l=uD(e),u=e.type||"error",f=`before send for type \`${u}\``,h=typeof a>"u"?void 0:z5(a);if(l&&typeof h=="number"&&Math.random()>h)return this.recordDroppedEvent("sample_rate","error",e),Rp(new yo(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const d=u==="replay_event"?"replay":u,g=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,r,n,g).then(b=>{if(b===null)throw this.recordDroppedEvent("event_processor",d,e),new yo("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return b;const S=MI(this,o,b,r);return DI(S,f)}).then(b=>{if(b===null){if(this.recordDroppedEvent("before_send",d,e),i){const D=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",D)}throw new yo(`${f} returned \`null\`, will not send event.`,"log")}const w=n&&n.getSession();if(!i&&w&&this._updateSessionFromEvent(w,b),i){const k=b.sdkProcessingMetadata&&b.sdkProcessingMetadata.spanCountBeforeProcessing||0,D=b.spans?b.spans.length:0,C=k-D;C>0&&this.recordDroppedEvent("before_send","span",C)}const S=b.transaction_info;if(i&&S&&b.transaction!==e.transaction){const k="custom";b.transaction_info={...S,source:k}}return this.sendEvent(b,r),b}).then(null,b=>{throw b instanceof yo?b:(this.captureException(b,{data:{__sentry__:!0},originalException:b}),new yo(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${b}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([r,n])=>{const[o,a]=r.split(":");return{reason:o,category:a,quantity:n}})}_flushOutcomes(){It&&it.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){It&&it.log("No outcomes to send");return}if(!this._dsn){It&&it.log("No dsn provided, will not send outcomes");return}It&&it.log("Sending outcomes:",e);const r=TI(e,this._options.tunnel&&ff(this._dsn));this.sendEnvelope(r)}}function DI(t,e){const r=`${e} must return \`null\` or a valid event.`;if(uf(t))return t.then(n=>{if(!fc(n)&&n!==null)throw new yo(r);return n},n=>{throw new yo(`${e} rejected with ${n}`)});if(!fc(t)&&t!==null)throw new yo(r);return t}function MI(t,e,r,n){const{beforeSend:o,beforeSendTransaction:a,beforeSendSpan:i}=e;if(uD(r)&&o)return o(r,n);if(dD(r)){if(r.spans&&i){const l=[];for(const u of r.spans){const f=i(u);f?l.push(f):(R5(),t.recordDroppedEvent("before_send","span"))}r.spans=l}if(a){if(r.spans){const l=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:l}}return a(r,n)}}return r}function uD(t){return t.type===void 0}function dD(t){return t.type==="transaction"}function NI(t,e){e.debug===!0&&(It?it.enable():zs(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),ea().update(e.initialScope);const n=new t(e);return PI(n),n.init(),n}function PI(t){ea().setClient(t)}function RI(t){const e=[];function r(){return t===void 0||e.lengthn(l)).then(null,()=>n(l).then(null,()=>{})),l}function a(i){return new Mn((l,u)=>{let f=e.length;if(!f)return l(!0);const h=setTimeout(()=>{i&&i>0&&l(!1)},i);e.forEach(d=>{Os(d).then(()=>{--f||(clearTimeout(h),l(!0))},u)})})}return{$:e,add:o,drain:a}}const AI=60*1e3;function II(t,e=Date.now()){const r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;const n=Date.parse(`${t}`);return isNaN(n)?AI:n-e}function jI(t,e){return t[e]||t.all||0}function LI(t,e,r=Date.now()){return jI(t,e)>r}function zI(t,{statusCode:e,headers:r},n=Date.now()){const o={...t},a=r&&r["x-sentry-rate-limits"],i=r&&r["retry-after"];if(a)for(const l of a.trim().split(",")){const[u,f,,,h]=l.split(":",5),d=parseInt(u,10),_=(isNaN(d)?60:d)*1e3;if(!f)o.all=n+_;else for(const g of f.split(";"))g==="metric_bucket"?(!h||h.split(";").includes("custom"))&&(o[g]=n+_):o[g]=n+_}else i?o.all=n+II(i,n):e===429&&(o.all=n+60*1e3);return o}const FI=64;function BI(t,e,r=RI(t.bufferSize||FI)){let n={};const o=i=>r.drain(i);function a(i){const l=[];if(HS(i,(d,_)=>{const g=qS(_);if(LI(n,g)){const b=QS(d,_);t.recordDroppedEvent("ratelimit_backoff",g,b)}else l.push(d)}),l.length===0)return Os({});const u=gu(i[0],l),f=d=>{HS(u,(_,g)=>{const b=QS(_,g);t.recordDroppedEvent(d,qS(g),b)})},h=()=>e({body:K5(u)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&It&&it.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),n=zI(n,d),d),d=>{throw f("network_error"),d});return r.add(h).then(d=>d,d=>{if(d instanceof yo)return It&&it.error("Skipped sending event because buffer is full."),f("queue_overflow"),Os({});throw d})}return{send:a,flush:o}}function QS(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}function WI(t,e,r=[e],n="npm"){const o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:r.map(a=>({name:`${n}:@sentry/${a}`,version:ws})),version:ws}),t._metadata=o}const UI=100;function Ms(t,e){const r=Br(),n=_u();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=UI}=r.getOptions();if(a<=0)return;const l={timestamp:mu(),...t},u=o?zs(()=>o(l,e)):l;u!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",u,e),n.addBreadcrumb(u,a))}let ek;const HI="FunctionToString",tk=new WeakMap,qI=()=>({name:HI,setupOnce(){ek=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Z0(this),r=tk.has(Br())&&e!==void 0?e:this;return ek.apply(r,t)}}catch{}},setup(t){tk.set(t,!0)}}),VI=qI,XI=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],GI="InboundFilters",JI=(t={})=>({name:GI,processEvent(e,r,n){const o=n.getOptions(),a=KI(t,o);return ZI(e,a)?null:e}}),YI=JI;function KI(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:XI],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function ZI(t,e){return e.ignoreInternal&&o4(t)?(It&&it.warn(`Event dropped due to being internal Sentry Error. +`),typeof l=="string"||l instanceof Uint8Array)o(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(Xo(l))}o(u)}}return typeof n=="string"?n:Z5(n)}function Z5(t){const e=t.reduce((o,a)=>o+a.length,0),r=new Uint8Array(e);let n=0;for(const o of t)r.set(o,n),n+=o.length;return r}function Q5(t){const e=typeof t.data=="string"?Bv(t.data):t.data;return[Pn({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const eI={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function qS(t){return eI[t]}function aD(t){if(!t||!t.sdk)return;const{name:e,version:r}=t.sdk;return{name:e,version:r}}function tI(t,e,r,n){const o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:ff(n)},...o&&{trace:Pn({...o})}}}function rI(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function nI(t,e,r,n){const o=aD(r),a={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:ff(e)}},i="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return gu(a,[i])}function oI(t,e,r,n){const o=aD(r),a=t.type&&t.type!=="replay_event"?t.type:"event";rI(t,r&&r.sdk);const i=tI(t,o,n,e);return delete t.sdkProcessingMetadata,gu(i,[[{type:a},t]])}function Wv(t,e,r,n=0){return new Mn((o,a)=>{const i=t[n];if(e===null||typeof i!="function")o(e);else{const l=i({...e},r);It&&i.id&&l===null&&it.log(`Event processor "${i.id}" dropped event`),uf(l)?l.then(u=>Wv(t,u,r,n+1).then(o)).then(null,a):Wv(t,l,r,n+1).then(o).then(null,a)}})}let Bd,VS,Wd;function aI(t){const e=$t._sentryDebugIds;if(!e)return{};const r=Object.keys(e);return Wd&&r.length===VS||(VS=r.length,Wd=r.reduce((n,o)=>{Bd||(Bd={});const a=Bd[o];if(a)n[a[0]]=a[1];else{const i=t(o);for(let l=i.length-1;l>=0;l--){const u=i[l],f=u&&u.filename,h=e[o];if(f&&h){n[f]=h,Bd[o]=[f,h];break}}}return n},{})),Wd}function sI(t,e){const{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:a}=e;iI(t,e),n&&uI(t,n),dI(t,r),cI(t,o),lI(t,a)}function XS(t,e){const{extra:r,tags:n,user:o,contexts:a,level:i,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:f,eventProcessors:h,attachments:d,propagationContext:_,transactionName:g,span:b}=e;Ud(t,"extra",r),Ud(t,"tags",n),Ud(t,"user",o),Ud(t,"contexts",a),t.sdkProcessingMetadata=pf(t.sdkProcessingMetadata,l,2),i&&(t.level=i),g&&(t.transactionName=g),b&&(t.span=b),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),f.length&&(t.fingerprint=[...t.fingerprint,...f]),h.length&&(t.eventProcessors=[...t.eventProcessors,...h]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,..._}}function Ud(t,e,r){t[e]=pf(t[e],r,1)}function iI(t,e){const{extra:r,tags:n,user:o,contexts:a,level:i,transactionName:l}=e,u=Pn(r);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const f=Pn(n);f&&Object.keys(f).length&&(t.tags={...f,...t.tags});const h=Pn(o);h&&Object.keys(h).length&&(t.user={...h,...t.user});const d=Pn(a);d&&Object.keys(d).length&&(t.contexts={...d,...t.contexts}),i&&(t.level=i),l&&t.type!=="transaction"&&(t.transaction=l)}function cI(t,e){const r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function lI(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function uI(t,e){t.contexts={trace:T5(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:L5(e),...t.sdkProcessingMetadata};const r=tD(e),n=tb(r).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function dI(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function pI(t,e,r,n,o,a){const{normalizeDepth:i=3,normalizeMaxBreadth:l=1e3}=t,u={...e,event_id:e.event_id||r.event_id||An(),timestamp:e.timestamp||mu()},f=r.integrations||t.integrations.map(S=>S.name);fI(u,t),_I(u,f),o&&o.emit("applyFrameMetadata",e),e.type===void 0&&hI(u,t.stackParser);const h=yI(n,r.captureContext);r.mechanism&&hc(u,r.mechanism);const d=o?o.getEventProcessors():[],_=p5().getScopeData();if(a){const S=a.getScopeData();XS(_,S)}if(h){const S=h.getScopeData();XS(_,S)}const g=[...r.attachments||[],..._.attachments];g.length&&(r.attachments=g),sI(u,_);const b=[...d,..._.eventProcessors];return Wv(b,u,r).then(S=>(S&&mI(S),typeof i=="number"&&i>0?gI(S,i,l):S))}function fI(t,e){const{environment:r,release:n,dist:o,maxValueLength:a=250}=e;t.environment=t.environment||r||rb,!t.release&&n&&(t.release=n),!t.dist&&o&&(t.dist=o),t.message&&(t.message=cc(t.message,a));const i=t.exception&&t.exception.values&&t.exception.values[0];i&&i.value&&(i.value=cc(i.value,a));const l=t.request;l&&l.url&&(l.url=cc(l.url,a))}function hI(t,e){const r=aI(e);try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{r&&o.filename&&(o.debug_id=r[o.filename])})})}catch{}}function mI(t){const e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const r=t.debug_meta.images;Object.entries(e).forEach(([n,o])=>{r.push({type:"sourcemap",code_file:n,debug_id:o})})}function _I(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function gI(t,e,r){if(!t)return null;const n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:Xo(o.data,e,r)}}))},...t.user&&{user:Xo(t.user,e,r)},...t.contexts&&{contexts:Xo(t.contexts,e,r)},...t.extra&&{extra:Xo(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=Xo(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(o=>({...o,...o.data&&{data:Xo(o.data,e,r)}}))),t.contexts&&t.contexts.flags&&n.contexts&&(n.contexts.flags=Xo(t.contexts.flags,3,r)),n}function yI(t,e){if(!e)return t;const r=t?t.clone():new Ds;return r.update(e),r}function vI(t,e){return ea().captureException(t,void 0)}function sD(t,e){return ea().captureEvent(t,e)}function GS(t){const e=Br(),r=_u(),n=ea(),{release:o,environment:a=rb}=e&&e.getOptions()||{},{userAgent:i}=$t.navigator||{},l=r5({release:o,environment:a,user:n.getUser()||r.getUser(),...i&&{userAgent:i},...t}),u=r.getSession();return u&&u.status==="ok"&&mc(u,{status:"exited"}),iD(),r.setSession(l),n.setSession(l),l}function iD(){const t=_u(),e=ea(),r=e.getSession()||t.getSession();r&&n5(r),cD(),t.setSession(),e.setSession()}function cD(){const t=_u(),e=ea(),r=Br(),n=e.getSession()||t.getSession();n&&r&&r.captureSession(n)}function JS(t=!1){if(t){iD();return}cD()}const bI="7";function wI(t){const e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function xI(t){return`${wI(t)}${t.projectId}/envelope/`}function SI(t,e){const r={sentry_version:bI};return t.publicKey&&(r.sentry_key=t.publicKey),e&&(r.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(r).toString()}function kI(t,e,r){return e||`${xI(t)}?${SI(t,r)}`}const YS=[];function CI(t){const e={};return t.forEach(r=>{const{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.values(e)}function $I(t){const e=t.defaultIntegrations||[],r=t.integrations;e.forEach(i=>{i.isDefaultInstance=!0});let n;if(Array.isArray(r))n=[...e,...r];else if(typeof r=="function"){const i=r(e);n=Array.isArray(i)?i:[i]}else n=e;const o=CI(n),a=o.findIndex(i=>i.name==="Debug");if(a>-1){const[i]=o.splice(a,1);o.push(i)}return o}function EI(t,e){const r={};return e.forEach(n=>{n&&lD(t,n,r)}),r}function KS(t,e){for(const r of e)r&&r.afterAllSetup&&r.afterAllSetup(t)}function lD(t,e,r){if(r[e.name]){It&&it.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,YS.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),YS.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,a)=>n(o,a,t))}if(typeof e.processEvent=="function"){const n=e.processEvent.bind(e),o=Object.assign((a,i)=>n(a,i,t),{id:e.name});t.addEventProcessor(o)}It&&it.log(`Integration installed: ${e.name}`)}function TI(t,e,r){const n=[{type:"client_report"},{timestamp:mu(),discarded_events:t}];return gu(e?{dsn:e}:{},[n])}class yo extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}}const ZS="Not capturing exception because it's already been captured.";class OI{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=H5(e.dsn):It&&it.warn("No DSN provided, client will not send events."),this._dsn){const o=kI(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:o})}const n=["enableTracing","tracesSampleRate","tracesSampler"].find(o=>o in e&&e[o]==null);n&&Fs(()=>{console.warn(`[Sentry] Deprecation warning: \`${n}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,r,n){const o=An();if(AS(e))return It&&it.log(ZS),o;const a={event_id:o,...r};return this._process(this.eventFromException(e,a).then(i=>this._captureEvent(i,a,n))),a.event_id}captureMessage(e,r,n,o){const a={event_id:An(),...n},i=J0(e)?e:String(e),l=Y0(e)?this.eventFromMessage(i,r,a):this.eventFromException(e,a);return this._process(l.then(u=>this._captureEvent(u,a,o))),a.event_id}captureEvent(e,r,n){const o=An();if(r&&r.originalException&&AS(r.originalException))return It&&it.log(ZS),o;const a={event_id:o,...r},l=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,a,l||n)),a.event_id}captureSession(e){typeof e.release!="string"?It&&it.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),mc(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>r.flush(e).then(o=>n&&o))):Os(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}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]}addIntegration(e){const r=this._integrations[e.name];lD(this,e,this._integrations),r||KS(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=oI(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of r.attachments||[])n=Y5(n,Q5(a));const o=this.sendEnvelope(n);o&&o.then(a=>this.emit("afterSendEvent",e,a),null)}sendSession(e){const r=nI(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){const o=typeof n=="number"?n:1,a=`${e}:${r}`;It&&it.log(`Recording outcome: "${a}"${o>1?` (${o} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+o}}on(e,r){const n=this._hooks[e]=this._hooks[e]||[];return n.push(r),()=>{const o=n.indexOf(r);o>-1&&n.splice(o,1)}}emit(e,...r){const n=this._hooks[e];n&&n.forEach(o=>o(...r))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,r=>(It&&it.error("Error while sending envelope:",r),r)):(It&&it.error("Transport disabled"),Os({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=EI(this,e),KS(this,e)}_updateSessionFromEvent(e,r){let n=!1,o=!1;const a=r.exception&&r.exception.values;if(a){o=!0;for(const u of a){const f=u.mechanism;if(f&&f.handled===!1){n=!0;break}}}const i=e.status==="ok";(i&&e.errors===0||i&&n)&&(mc(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Mn(r=>{let n=0;const o=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),r(!0)):(n+=o,e&&n>=e&&(clearInterval(a),r(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n=ea(),o=_u()){const a=this.getOptions(),i=Object.keys(this._integrations);return!r.integrations&&i.length>0&&(r.integrations=i),this.emit("preprocessEvent",e,r),e.type||o.setLastEventId(e.event_id||r.event_id),pI(a,e,r,n,this,o).then(l=>{if(l===null)return l;l.contexts={trace:h5(n),...l.contexts};const u=j5(this,n);return l.sdkProcessingMetadata={dynamicSamplingContext:u,...l.sdkProcessingMetadata},l})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(o=>o.event_id,o=>{if(It){const a=o;a.logLevel==="log"?it.log(a.message):it.warn(a)}})}_processEvent(e,r,n){const o=this.getOptions(),{sampleRate:a}=o,i=dD(e),l=uD(e),u=e.type||"error",f=`before send for type \`${u}\``,h=typeof a>"u"?void 0:F5(a);if(l&&typeof h=="number"&&Math.random()>h)return this.recordDroppedEvent("sample_rate","error",e),Rp(new yo(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const d=u==="replay_event"?"replay":u,g=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,r,n,g).then(b=>{if(b===null)throw this.recordDroppedEvent("event_processor",d,e),new yo("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return b;const S=MI(this,o,b,r);return DI(S,f)}).then(b=>{if(b===null){if(this.recordDroppedEvent("before_send",d,e),i){const D=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",D)}throw new yo(`${f} returned \`null\`, will not send event.`,"log")}const w=n&&n.getSession();if(!i&&w&&this._updateSessionFromEvent(w,b),i){const k=b.sdkProcessingMetadata&&b.sdkProcessingMetadata.spanCountBeforeProcessing||0,D=b.spans?b.spans.length:0,C=k-D;C>0&&this.recordDroppedEvent("before_send","span",C)}const S=b.transaction_info;if(i&&S&&b.transaction!==e.transaction){const k="custom";b.transaction_info={...S,source:k}}return this.sendEvent(b,r),b}).then(null,b=>{throw b instanceof yo?b:(this.captureException(b,{data:{__sentry__:!0},originalException:b}),new yo(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${b}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([r,n])=>{const[o,a]=r.split(":");return{reason:o,category:a,quantity:n}})}_flushOutcomes(){It&&it.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){It&&it.log("No outcomes to send");return}if(!this._dsn){It&&it.log("No dsn provided, will not send outcomes");return}It&&it.log("Sending outcomes:",e);const r=TI(e,this._options.tunnel&&ff(this._dsn));this.sendEnvelope(r)}}function DI(t,e){const r=`${e} must return \`null\` or a valid event.`;if(uf(t))return t.then(n=>{if(!fc(n)&&n!==null)throw new yo(r);return n},n=>{throw new yo(`${e} rejected with ${n}`)});if(!fc(t)&&t!==null)throw new yo(r);return t}function MI(t,e,r,n){const{beforeSend:o,beforeSendTransaction:a,beforeSendSpan:i}=e;if(uD(r)&&o)return o(r,n);if(dD(r)){if(r.spans&&i){const l=[];for(const u of r.spans){const f=i(u);f?l.push(f):(R5(),t.recordDroppedEvent("before_send","span"))}r.spans=l}if(a){if(r.spans){const l=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:l}}return a(r,n)}}return r}function uD(t){return t.type===void 0}function dD(t){return t.type==="transaction"}function NI(t,e){e.debug===!0&&(It?it.enable():Fs(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),ea().update(e.initialScope);const n=new t(e);return PI(n),n.init(),n}function PI(t){ea().setClient(t)}function RI(t){const e=[];function r(){return t===void 0||e.lengthn(l)).then(null,()=>n(l).then(null,()=>{})),l}function a(i){return new Mn((l,u)=>{let f=e.length;if(!f)return l(!0);const h=setTimeout(()=>{i&&i>0&&l(!1)},i);e.forEach(d=>{Os(d).then(()=>{--f||(clearTimeout(h),l(!0))},u)})})}return{$:e,add:o,drain:a}}const AI=60*1e3;function II(t,e=Date.now()){const r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;const n=Date.parse(`${t}`);return isNaN(n)?AI:n-e}function jI(t,e){return t[e]||t.all||0}function LI(t,e,r=Date.now()){return jI(t,e)>r}function FI(t,{statusCode:e,headers:r},n=Date.now()){const o={...t},a=r&&r["x-sentry-rate-limits"],i=r&&r["retry-after"];if(a)for(const l of a.trim().split(",")){const[u,f,,,h]=l.split(":",5),d=parseInt(u,10),_=(isNaN(d)?60:d)*1e3;if(!f)o.all=n+_;else for(const g of f.split(";"))g==="metric_bucket"?(!h||h.split(";").includes("custom"))&&(o[g]=n+_):o[g]=n+_}else i?o.all=n+II(i,n):e===429&&(o.all=n+60*1e3);return o}const zI=64;function BI(t,e,r=RI(t.bufferSize||zI)){let n={};const o=i=>r.drain(i);function a(i){const l=[];if(HS(i,(d,_)=>{const g=qS(_);if(LI(n,g)){const b=QS(d,_);t.recordDroppedEvent("ratelimit_backoff",g,b)}else l.push(d)}),l.length===0)return Os({});const u=gu(i[0],l),f=d=>{HS(u,(_,g)=>{const b=QS(_,g);t.recordDroppedEvent(d,qS(g),b)})},h=()=>e({body:K5(u)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&It&&it.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),n=FI(n,d),d),d=>{throw f("network_error"),d});return r.add(h).then(d=>d,d=>{if(d instanceof yo)return It&&it.error("Skipped sending event because buffer is full."),f("queue_overflow"),Os({});throw d})}return{send:a,flush:o}}function QS(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}function WI(t,e,r=[e],n="npm"){const o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:r.map(a=>({name:`${n}:@sentry/${a}`,version:ws})),version:ws}),t._metadata=o}const UI=100;function Ms(t,e){const r=Br(),n=_u();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=UI}=r.getOptions();if(a<=0)return;const l={timestamp:mu(),...t},u=o?Fs(()=>o(l,e)):l;u!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",u,e),n.addBreadcrumb(u,a))}let ek;const HI="FunctionToString",tk=new WeakMap,qI=()=>({name:HI,setupOnce(){ek=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Z0(this),r=tk.has(Br())&&e!==void 0?e:this;return ek.apply(r,t)}}catch{}},setup(t){tk.set(t,!0)}}),VI=qI,XI=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],GI="InboundFilters",JI=(t={})=>({name:GI,processEvent(e,r,n){const o=n.getOptions(),a=KI(t,o);return ZI(e,a)?null:e}}),YI=JI;function KI(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:XI],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function ZI(t,e){return e.ignoreInternal&&o4(t)?(It&&it.warn(`Event dropped due to being internal Sentry Error. Event: ${Na(t)}`),!0):QI(t,e.ignoreErrors)?(It&&it.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${Na(t)}`),!0):s4(t)?(It&&it.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${Na(t)}`),!0):e4(t,e.ignoreTransactions)?(It&&it.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. @@ -52,20 +52,20 @@ Event: ${Na(t)}`),!0):t4(t,e.denyUrls)?(It&&it.warn(`Event dropped due to being Event: ${Na(t)}. Url: ${Ap(t)}`),!0):r4(t,e.allowUrls)?!1:(It&&it.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${Na(t)}. -Url: ${Ap(t)}`),!0)}function QI(t,e){return t.type||!e||!e.length?!1:n4(t).some(r=>df(r,e))}function e4(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const r=t.transaction;return r?df(r,e):!1}function t4(t,e){if(!e||!e.length)return!1;const r=Ap(t);return r?df(r,e):!1}function r4(t,e){if(!e||!e.length)return!0;const r=Ap(t);return r?df(r,e):!0}function n4(t){const e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch{}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),e}function o4(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function a4(t=[]){for(let e=t.length-1;e>=0;e--){const r=t[e];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function Ap(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?a4(e):null}catch{return It&&it.error(`Cannot extract url for event ${Na(t)}`),null}}function s4(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}function i4(t,e,r=250,n,o,a,i){if(!a.exception||!a.exception.values||!i||!Es(i.originalException,Error))return;const l=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;l&&(a.exception.values=c4(Uv(t,e,o,i.originalException,n,a.exception.values,l,0),r))}function Uv(t,e,r,n,o,a,i,l){if(a.length>=r+1)return a;let u=[...a];if(Es(n[o],Error)){rk(i,l);const f=t(e,n[o]),h=u.length;nk(f,o,h,l),u=Uv(t,e,r,n[o],o,[f,...u],f,h)}return Array.isArray(n.errors)&&n.errors.forEach((f,h)=>{if(Es(f,Error)){rk(i,l);const d=t(e,f),_=u.length;nk(d,`errors[${h}]`,_,l),u=Uv(t,e,r,f,o,[d,...u],d,_)}}),u}function rk(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function nk(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function c4(t,e){return t.map(r=>(r.value&&(r.value=cc(r.value,e)),r))}function Vm(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}function l4(t){const e="console";Fs(e,t),Bs(e,u4)}function u4(){"console"in Et&&Av.forEach(function(t){t in Et.console&&_n(Et.console,t,function(e){return Pp[t]=e,function(...r){Kn("console",{args:r,level:t});const o=Pp[t];o&&o.apply(Et.console,r)}})})}function d4(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const p4="Dedupe",f4=()=>{let t;return{name:p4,processEvent(e){if(e.type)return e;try{if(h4(e,t))return It&&it.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},pD=f4;function h4(t,e){return e?!!(m4(t,e)||_4(t,e)):!1}function m4(t,e){const r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!hD(t,e)||!fD(t,e))}function _4(t,e){const r=ok(e),n=ok(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!hD(t,e)||!fD(t,e))}function fD(t,e){let r=OS(t),n=OS(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o=400&&t<500?"warning":t>=500?"error":void 0}const Hv=Et;function _D(){if(!("fetch"in Hv))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function qv(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function g4(){if(typeof EdgeRuntime=="string")return!0;if(!_D())return!1;if(qv(Hv.fetch))return!0;let t=!1;const e=Hv.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=qv(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){Ls&&it.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function y4(t,e){const r="fetch";Fs(r,t),Bs(r,()=>v4(void 0,e))}function v4(t,e=!1){e&&!g4()||_n(Et,"fetch",function(r){return function(...n){const o=new Error,{method:a,url:i}=b4(n),l={args:n,fetchData:{method:a,url:i},startTimestamp:Ko()*1e3,virtualError:o};return Kn("fetch",{...l}),r.apply(Et,n).then(async u=>(Kn("fetch",{...l,endTimestamp:Ko()*1e3,response:u}),u),u=>{throw Kn("fetch",{...l,endTimestamp:Ko()*1e3,error:u}),G0(u)&&u.stack===void 0&&(u.stack=o.stack,Ts(u,"framesToPop",1)),u})}})}function Vv(t,e){return!!t&&typeof t=="object"&&!!t[e]}function ak(t){return typeof t=="string"?t:t?Vv(t,"url")?t.url:t.toString?t.toString():"":""}function b4(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[r,n]=t;return{url:ak(r),method:Vv(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:ak(e),method:Vv(e,"method")?String(e.method).toUpperCase():"GET"}}function w4(){return"npm"}const Hd=Et;function x4(){const t=Hd.chrome,e=t&&t.app&&t.app.runtime,r="history"in Hd&&!!Hd.history.pushState&&!!Hd.history.replaceState;return!e&&r}const jt=Et;let Xv=0;function gD(){return Xv>0}function S4(){Xv++,setTimeout(()=>{Xv--})}function gc(t,e={}){function r(o){return typeof o=="function"}if(!r(t))return t;try{const o=t.__sentry_wrapped__;if(o)return typeof o=="function"?o:t;if(Z0(t))return t}catch{return t}const n=function(...o){try{const a=o.map(i=>gc(i,e));return t.apply(this,a)}catch(a){throw S4(),f5(i=>{i.addEventProcessor(l=>(e.mechanism&&(jv(l,void 0),hc(l,e.mechanism)),l.extra={...l.extra,arguments:o},l)),vI(a)}),a}};try{for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}catch{}KO(n,t),Ts(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}const yu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function nb(t,e){const r=ob(t,e),n={type:T4(e),value:O4(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function k4(t,e,r,n){const o=Br(),a=o&&o.getOptions().normalizeDepth,i=R4(e),l={__serialized__:oD(e,a)};if(i)return{exception:{values:[nb(t,i)]},extra:l};const u={exception:{values:[{type:lf(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:N4(e,{isUnhandledRejection:n})}]},extra:l};if(r){const f=ob(t,r);f.length&&(u.exception.values[0].stacktrace={frames:f})}return u}function Xm(t,e){return{exception:{values:[nb(t,e)]}}}function ob(t,e){const r=e.stacktrace||e.stack||"",n=$4(e),o=E4(e);try{return t(r,n,o)}catch{}return[]}const C4=/Minified React error #\d+;/i;function $4(t){return t&&C4.test(t.message)?1:0}function E4(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function yD(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function T4(t){const e=t&&t.name;return!e&&yD(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function O4(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:yD(t)&&Array.isArray(t.message)&&t.message.length==2?t.message[1]:e:"No error message"}function D4(t,e,r,n){const o=r&&r.syntheticException||void 0,a=ab(t,e,o,n);return hc(a),a.level="error",r&&r.event_id&&(a.event_id=r.event_id),Os(a)}function M4(t,e,r="info",n,o){const a=n&&n.syntheticException||void 0,i=Gv(t,e,a,o);return i.level=r,n&&n.event_id&&(i.event_id=n.event_id),Os(i)}function ab(t,e,r,n,o){let a;if(GO(e)&&e.error)return Xm(t,e.error);if(MS(e)||UA(e)){const i=e;if("stack"in e)a=Xm(t,e);else{const l=i.name||(MS(i)?"DOMError":"DOMException"),u=i.message?`${l}: ${i.message}`:l;a=Gv(t,u,r,n),jv(a,u)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return G0(e)?Xm(t,e):fc(e)||lf(e)?(a=k4(t,e,r,o),hc(a,{synthetic:!0}),a):(a=Gv(t,e,r,n),jv(a,`${e}`),hc(a,{synthetic:!0}),a)}function Gv(t,e,r,n){const o={};if(n&&r){const a=ob(t,r);a.length&&(o.exception={values:[{value:e,stacktrace:{frames:a}}]}),hc(o,{synthetic:!0})}if(J0(e)){const{__sentry_template_string__:a,__sentry_template_values__:i}=e;return o.logentry={message:a,params:i},o}return o.message=e,o}function N4(t,{isUnhandledRejection:e}){const r=ZA(t),n=e?"promise rejection":"exception";return GO(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:lf(t)?`Event \`${P4(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function P4(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function R4(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];if(r instanceof Error)return r}}function A4(t,{metadata:e,tunnel:r,dsn:n}){const o={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!r&&!!n&&{dsn:ff(n)}},a=I4(t);return gu(o,[a])}function I4(t){return[{type:"user_report"},t]}class j4 extends OI{constructor(e){const r={parentSpanIsAlwaysRootSpan:!0,...e},n=jt.SENTRY_SDK_SOURCE||w4();WI(r,"browser",["browser"],n),super(r),r.sendClientReports&&jt.document&&jt.document.addEventListener("visibilitychange",()=>{jt.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,r){return D4(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return M4(this._options.stackParser,e,r,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){yu&&it.warn("SDK not enabled, will not capture user feedback.");return}const r=A4(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(r)}_prepareEvent(e,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n)}}const L4=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qr=Et,z4=1e3;let sk,Jv,Yv;function F4(t){const e="dom";Fs(e,t),Bs(e,B4)}function B4(){if(!qr.document)return;const t=Kn.bind(null,"dom"),e=ik(t,!0);qr.document.addEventListener("click",e,!1),qr.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{const o=qr[r],a=o&&o.prototype;!a||!a.hasOwnProperty||!a.hasOwnProperty("addEventListener")||(_n(a,"addEventListener",function(i){return function(l,u,f){if(l==="click"||l=="keypress")try{const h=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=h[l]=h[l]||{refCount:0};if(!d.handler){const _=ik(t);d.handler=_,i.call(this,l,_,f)}d.refCount++}catch{}return i.call(this,l,u,f)}}),_n(a,"removeEventListener",function(i){return function(l,u,f){if(l==="click"||l=="keypress")try{const h=this.__sentry_instrumentation_handlers__||{},d=h[l];d&&(d.refCount--,d.refCount<=0&&(i.call(this,l,d.handler,f),d.handler=void 0,delete h[l]),Object.keys(h).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,l,u,f)}}))})}function W4(t){if(t.type!==Jv)return!1;try{if(!t.target||t.target._sentryId!==Yv)return!1}catch{}return!0}function U4(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function ik(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;const n=H4(r);if(U4(r.type,n))return;Ts(r,"_sentryCaptured",!0),n&&!n._sentryId&&Ts(n,"_sentryId",An());const o=r.type==="keypress"?"input":r.type;W4(r)||(t({event:r,name:o,global:e}),Jv=r.type,Yv=n?n._sentryId:void 0),clearTimeout(sk),sk=qr.setTimeout(()=>{Yv=void 0,Jv=void 0},z4)}}function H4(t){try{return t.target}catch{return null}}let qd;function vD(t){const e="history";Fs(e,t),Bs(e,q4)}function q4(){if(!x4())return;const t=qr.onpopstate;qr.onpopstate=function(...r){const n=qr.location.href,o=qd;if(qd=n,Kn("history",{from:o,to:n}),t)try{return t.apply(this,r)}catch{}};function e(r){return function(...n){const o=n.length>2?n[2]:void 0;if(o){const a=qd,i=String(o);qd=i,Kn("history",{from:a,to:i})}return r.apply(this,n)}}_n(qr.history,"pushState",e),_n(qr.history,"replaceState",e)}const xp={};function V4(t){const e=xp[t];if(e)return e;let r=qr[t];if(qv(r))return xp[t]=r.bind(qr);const n=qr.document;if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a&&a[t]&&(r=a[t]),n.head.removeChild(o)}catch(o){L4&&it.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,o)}return r&&(xp[t]=r.bind(qr))}function ck(t){xp[t]=void 0}const Rl="__sentry_xhr_v3__";function X4(t){const e="xhr";Fs(e,t),Bs(e,G4)}function G4(){if(!qr.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,r,n){const o=new Error,a=Ko()*1e3,i=Yo(n[0])?n[0].toUpperCase():void 0,l=J4(n[1]);if(!i||!l)return e.apply(r,n);r[Rl]={method:i,url:l,request_headers:{}},i==="POST"&&l.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const u=()=>{const f=r[Rl];if(f&&r.readyState===4){try{f.status_code=r.status}catch{}const h={endTimestamp:Ko()*1e3,startTimestamp:a,xhr:r,virtualError:o};Kn("xhr",h)}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(f,h,d){return u(),f.apply(h,d)}}):r.addEventListener("readystatechange",u),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(f,h,d){const[_,g]=d,b=h[Rl];return b&&Yo(_)&&Yo(g)&&(b.request_headers[_.toLowerCase()]=g),f.apply(h,d)}}),e.apply(r,n)}}),t.send=new Proxy(t.send,{apply(e,r,n){const o=r[Rl];if(!o)return e.apply(r,n);n[0]!==void 0&&(o.body=n[0]);const a={startTimestamp:Ko()*1e3,xhr:r};return Kn("xhr",a),e.apply(r,n)}})}function J4(t){if(Yo(t))return t;try{return t.toString()}catch{}}function Y4(t,e=V4("fetch")){let r=0,n=0;function o(a){const i=a.body.length;r+=i,n++;const l={body:a.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};if(!e)return ck("fetch"),Rp("No fetch implementation available");try{return e(t.url,l).then(u=>(r-=i,n--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return ck("fetch"),r-=i,n--,Rp(u)}}return BI(t,o)}const K4=30,Z4=50;function Kv(t,e,r,n){const o={filename:t,function:e===""?$s:e,in_app:!0};return r!==void 0&&(o.lineno=r),n!==void 0&&(o.colno=n),o}const Q4=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ej=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tj=/\((\S*)(?::(\d+))(?::(\d+))\)/,rj=t=>{const e=Q4.exec(t);if(e){const[,n,o,a]=e;return Kv(n,$s,+o,+a)}const r=ej.exec(t);if(r){if(r[2]&&r[2].indexOf("eval")===0){const i=tj.exec(r[2]);i&&(r[2]=i[1],r[3]=i[2],r[4]=i[3])}const[o,a]=bD(r[1]||$s,r[2]);return Kv(a,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},nj=[K4,rj],oj=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,aj=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,sj=t=>{const e=oj.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const a=aj.exec(e[3]);a&&(e[1]=e[1]||"eval",e[3]=a[1],e[4]=a[2],e[5]="")}let n=e[3],o=e[1]||$s;return[o,n]=bD(o,n),Kv(n,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},ij=[Z4,sj],cj=[nj,ij],lj=VO(...cj),bD=(t,e)=>{const r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:$s,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Vd=1024,uj="Breadcrumbs",dj=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:uj,setup(r){e.console&&l4(mj(r)),e.dom&&F4(hj(r,e.dom)),e.xhr&&X4(_j(r)),e.fetch&&y4(gj(r)),e.history&&vD(yj(r)),e.sentry&&r.on("beforeSendEvent",fj(r))}}},pj=dj;function fj(t){return function(r){Br()===t&&Ms({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:Na(r)},{event:r})}}function hj(t,e){return function(n){if(Br()!==t)return;let o,a,i=typeof e=="object"?e.serializeAttribute:void 0,l=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;l&&l>Vd&&(yu&&it.warn(`\`dom.maxStringLength\` cannot exceed ${Vd}, but a value of ${l} was configured. Sentry will use ${Vd} instead.`),l=Vd),typeof i=="string"&&(i=[i]);try{const f=n.event,h=vj(f)?f.target:f;o=YO(h,{keyAttrs:i,maxStringLength:l}),a=YA(h)}catch{o=""}if(o.length===0)return;const u={category:`ui.${n.name}`,message:o};a&&(u.data={"ui.component_name":a}),Ms(u,{event:n.event,name:n.name,global:n.global})}}function mj(t){return function(r){if(Br()!==t)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:d4(r.level),message:NS(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${NS(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;Ms(n,{input:r.args,level:r.level})}}function _j(t){return function(r){if(Br()!==t)return;const{startTimestamp:n,endTimestamp:o}=r,a=r.xhr[Rl];if(!n||!o||!a)return;const{method:i,url:l,status_code:u,body:f}=a,h={method:i,url:l,status_code:u},d={xhr:r.xhr,input:f,startTimestamp:n,endTimestamp:o},_=mD(u);Ms({category:"xhr",data:h,type:"http",level:_},d)}}function gj(t){return function(r){if(Br()!==t)return;const{startTimestamp:n,endTimestamp:o}=r;if(o&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){const a=r.fetchData,i={data:r.error,input:r.args,startTimestamp:n,endTimestamp:o};Ms({category:"fetch",data:a,level:"error",type:"http"},i)}else{const a=r.response,i={...r.fetchData,status_code:a&&a.status},l={input:r.args,response:a,startTimestamp:n,endTimestamp:o},u=mD(i.status_code);Ms({category:"fetch",data:i,type:"http",level:u},l)}}}function yj(t){return function(r){if(Br()!==t)return;let n=r.from,o=r.to;const a=Vm(jt.location.href);let i=n?Vm(n):void 0;const l=Vm(o);(!i||!i.path)&&(i=a),a.protocol===l.protocol&&a.host===l.host&&(o=l.relative),a.protocol===i.protocol&&a.host===i.host&&(n=i.relative),Ms({category:"navigation",data:{from:n,to:o}})}}function vj(t){return!!t&&!!t.target}const bj=["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"],wj="BrowserApiErrors",xj=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:wj,setupOnce(){e.setTimeout&&_n(jt,"setTimeout",lk),e.setInterval&&_n(jt,"setInterval",lk),e.requestAnimationFrame&&_n(jt,"requestAnimationFrame",kj),e.XMLHttpRequest&&"XMLHttpRequest"in jt&&_n(XMLHttpRequest.prototype,"send",Cj);const r=e.eventTarget;r&&(Array.isArray(r)?r:bj).forEach($j)}}},Sj=xj;function lk(t){return function(...e){const r=e[0];return e[0]=gc(r,{mechanism:{data:{function:La(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function kj(t){return function(e){return t.apply(this,[gc(e,{mechanism:{data:{function:"requestAnimationFrame",handler:La(t)},handled:!1,type:"instrument"}})])}}function Cj(t){return function(...e){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in r&&typeof r[o]=="function"&&_n(r,o,function(a){const i={mechanism:{data:{function:o,handler:La(a)},handled:!1,type:"instrument"}},l=Z0(a);return l&&(i.mechanism.data.handler=La(l)),gc(a,i)})}),t.apply(this,e)}}function $j(t){const r=jt[t],n=r&&r.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(_n(n,"addEventListener",function(o){return function(a,i,l){try{Ej(i)&&(i.handleEvent=gc(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:La(i),target:t},handled:!1,type:"instrument"}}))}catch{}return o.apply(this,[a,gc(i,{mechanism:{data:{function:"addEventListener",handler:La(i),target:t},handled:!1,type:"instrument"}}),l])}}),_n(n,"removeEventListener",function(o){return function(a,i,l){try{const u=i.__sentry_wrapped__;u&&o.call(this,a,u,l)}catch{}return o.call(this,a,i,l)}}))}function Ej(t){return typeof t.handleEvent=="function"}const Tj=()=>({name:"BrowserSession",setupOnce(){if(typeof jt.document>"u"){yu&&it.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}GS({ignoreDuration:!0}),JS(),vD(({from:t,to:e})=>{t!==void 0&&t!==e&&(GS({ignoreDuration:!0}),JS())})}}),Oj="GlobalHandlers",Dj=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Oj,setupOnce(){Error.stackTraceLimit=50},setup(r){e.onerror&&(Nj(r),uk("onerror")),e.onunhandledrejection&&(Pj(r),uk("onunhandledrejection"))}}},Mj=Dj;function Nj(t){zA(e=>{const{stackParser:r,attachStacktrace:n}=wD();if(Br()!==t||gD())return;const{msg:o,url:a,line:i,column:l,error:u}=e,f=Ij(ab(r,u||o,void 0,n,!1),a,i,l);f.level="error",sD(f,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function Pj(t){BA(e=>{const{stackParser:r,attachStacktrace:n}=wD();if(Br()!==t||gD())return;const o=Rj(e),a=Y0(o)?Aj(o):ab(r,o,void 0,n,!0);a.level="error",sD(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Rj(t){if(Y0(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function Aj(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Ij(t,e,r,n){const o=t.exception=t.exception||{},a=o.values=o.values||[],i=a[0]=a[0]||{},l=i.stacktrace=i.stacktrace||{},u=l.frames=l.frames||[],f=n,h=r,d=Yo(e)&&e.length>0?e:JA();return u.length===0&&u.push({colno:f,filename:d,function:$s,in_app:!0,lineno:h}),t}function uk(t){yu&&it.log(`Global Handler attached: ${t}`)}function wD(){const t=Br();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const jj=()=>({name:"HttpContext",preprocessEvent(t){if(!jt.navigator&&!jt.location&&!jt.document)return;const e=t.request&&t.request.url||jt.location&&jt.location.href,{referrer:r}=jt.document||{},{userAgent:n}=jt.navigator||{},o={...t.request&&t.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...t.request,...e&&{url:e},headers:o};t.request=a}}),Lj="cause",zj=5,Fj="LinkedErrors",Bj=(t={})=>{const e=t.limit||zj,r=t.key||Lj;return{name:Fj,preprocessEvent(n,o,a){const i=a.getOptions();i4(nb,i.stackParser,i.maxValueLength,r,e,n,o)}}},Wj=Bj;function Uj(t){const e=[YI(),VI(),Sj(),pj(),Mj(),Wj(),pD(),jj()];return t.autoSessionTracking!==!1&&e.push(Tj()),e}function Hj(t={}){const e={defaultIntegrations:Uj(t),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:jt.SENTRY_RELEASE&&jt.SENTRY_RELEASE.id?jt.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return t.defaultIntegrations==null&&delete t.defaultIntegrations,{...e,...t}}function qj(){const t=typeof jt.window<"u"&&jt;if(!t)return!1;const e=t.chrome?"chrome":"browser",r=t[e],n=r&&r.runtime&&r.runtime.id,o=jt.location&&jt.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!n&&jt===jt.top&&a.some(u=>o.startsWith(`${u}//`)),l=typeof t.nw<"u";return!!n&&!i&&!l}function Vj(t={}){const e=Hj(t);if(!e.skipBrowserExtensionCheck&&qj()){zs(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}yu&&(_D()||it.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const r={...e,stackParser:jA(e.stackParser||lj),integrations:$I(e),transport:e.transport||Y4};return NI(j4,r)}var $=js();const y=Ha($),Ip=$A({__proto__:null,default:y},[$]);function Zo(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const Zn="$$material";function jp(){return jp=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?Mr(Oc,--sn):0,yc--,hr===10&&(yc=1,mf--),hr}function gn(){return hr=sn<$D?Mr(Oc,sn++):0,yc++,hr===10&&(yc=1,mf++),hr}function xo(){return Mr(Oc,sn)}function Sp(){return sn}function vu(t,e){return Zl(Oc,t,e)}function Ql(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ED(t){return mf=yc=1,$D=fo(Oc=t),sn=0,[]}function TD(t){return Oc="",t}function kp(t){return CD(vu(sn-1,Qv(t===91?t+2:t===40?t+1:t)))}function a3(t){for(;(hr=xo())&&hr<33;)gn();return Ql(t)>2||Ql(hr)>3?"":" "}function s3(t,e){for(;--e&&gn()&&!(hr<48||hr>102||hr>57&&hr<65||hr>70&&hr<97););return vu(t,Sp()+(e<6&&xo()==32&&gn()==32))}function Qv(t){for(;gn();)switch(hr){case t:return sn;case 34:case 39:t!==34&&t!==39&&Qv(hr);break;case 40:t===41&&Qv(t);break;case 92:gn();break}return sn}function i3(t,e){for(;gn()&&t+hr!==57;)if(t+hr===84&&xo()===47)break;return"/*"+vu(e,sn-1)+"*"+hf(t===47?t:gn())}function c3(t){for(;!Ql(xo());)gn();return vu(t,sn)}function l3(t){return TD(Cp("",null,null,null,[""],t=ED(t),0,[0],t))}function Cp(t,e,r,n,o,a,i,l,u){for(var f=0,h=0,d=i,_=0,g=0,b=0,w=1,S=1,k=1,D=0,C="",O=o,M=a,T=n,P=C;S;)switch(b=D,D=gn()){case 40:if(b!=108&&Mr(P,d-1)==58){Zv(P+=$t(kp(D),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:P+=kp(D);break;case 9:case 10:case 13:case 32:P+=a3(b);break;case 92:P+=s3(Sp()-1,7);continue;case 47:switch(xo()){case 42:case 47:Xd(u3(i3(gn(),Sp()),e,r),u);break;default:P+="/"}break;case 123*w:l[f++]=fo(P)*k;case 125*w:case 59:case 0:switch(D){case 0:case 125:S=0;case 59+h:k==-1&&(P=$t(P,/\f/g,"")),g>0&&fo(P)-d&&Xd(g>32?pk(P+";",n,r,d-1):pk($t(P," ","")+";",n,r,d-2),u);break;case 59:P+=";";default:if(Xd(T=dk(P,e,r,f,h,o,l,C,O=[],M=[],d),a),D===123)if(h===0)Cp(P,e,T,T,O,a,d,l,M);else switch(_===99&&Mr(P,3)===110?100:_){case 100:case 108:case 109:case 115:Cp(t,T,T,n&&Xd(dk(t,T,T,0,0,o,l,C,o,O=[],d),M),o,M,d,l,n?O:M);break;default:Cp(P,T,T,T,[""],M,0,l,M)}}f=h=g=0,w=k=1,C=P="",d=i;break;case 58:d=1+fo(P),g=b;default:if(w<1){if(D==123)--w;else if(D==125&&w++==0&&o3()==125)continue}switch(P+=hf(D),D*w){case 38:k=h>0?1:(P+="\f",-1);break;case 44:l[f++]=(fo(P)-1)*k,k=1;break;case 64:xo()===45&&(P+=kp(gn())),_=xo(),h=d=fo(C=P+=c3(Sp())),D++;break;case 45:b===45&&fo(P)==2&&(w=0)}}return a}function dk(t,e,r,n,o,a,i,l,u,f,h){for(var d=o-1,_=o===0?a:[""],g=cb(_),b=0,w=0,S=0;b0?_[k]+" "+D:$t(D,/&\f/g,_[k])))&&(u[S++]=C);return _f(t,e,r,o===0?sb:l,u,f,h)}function u3(t,e,r){return _f(t,e,r,SD,hf(n3()),Zl(t,2,-2),0)}function pk(t,e,r,n){return _f(t,e,r,ib,Zl(t,0,n),Zl(t,n+1,-1),n)}function lc(t,e){for(var r="",n=cb(t),o=0;o6)switch(Mr(t,e+1)){case 109:if(Mr(t,e+4)!==45)break;case 102:return $t(t,/(.+:)(.+)-([^]+)/,"$1"+Ct+"$2-$3$1"+Lp+(Mr(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Zv(t,"stretch")?DD($t(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Mr(t,e+1)!==115)break;case 6444:switch(Mr(t,fo(t)-3-(~Zv(t,"!important")&&10))){case 107:return $t(t,":",":"+Ct)+t;case 101:return $t(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ct+(Mr(t,14)===45?"inline-":"")+"box$3$1"+Ct+"$2$3$1"+jr+"$2box$3")+t}break;case 5936:switch(Mr(t,e+11)){case 114:return Ct+t+jr+$t(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ct+t+jr+$t(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ct+t+jr+$t(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ct+t+jr+t+t}return t}var v3=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case ib:e.return=DD(e.value,e.length);break;case kD:return lc([vl(e,{value:$t(e.value,"@","@"+Ct)})],o);case sb:if(e.length)return r3(e.props,function(a){switch(t3(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lc([vl(e,{props:[$t(a,/:(read-\w+)/,":"+Lp+"$1")]})],o);case"::placeholder":return lc([vl(e,{props:[$t(a,/:(plac\w+)/,":"+Ct+"input-$1")]}),vl(e,{props:[$t(a,/:(plac\w+)/,":"+Lp+"$1")]}),vl(e,{props:[$t(a,/:(plac\w+)/,jr+"input-$1")]})],o)}return""})}},b3=[v3],MD=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var S=w.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=e.stylisPlugins||b3,a={},i,l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var S=w.getAttribute("data-emotion").split(" "),k=1;kdf(r,e))}function e4(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const r=t.transaction;return r?df(r,e):!1}function t4(t,e){if(!e||!e.length)return!1;const r=Ap(t);return r?df(r,e):!1}function r4(t,e){if(!e||!e.length)return!0;const r=Ap(t);return r?df(r,e):!0}function n4(t){const e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch{}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),e}function o4(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function a4(t=[]){for(let e=t.length-1;e>=0;e--){const r=t[e];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function Ap(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?a4(e):null}catch{return It&&it.error(`Cannot extract url for event ${Na(t)}`),null}}function s4(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}function i4(t,e,r=250,n,o,a,i){if(!a.exception||!a.exception.values||!i||!Es(i.originalException,Error))return;const l=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;l&&(a.exception.values=c4(Uv(t,e,o,i.originalException,n,a.exception.values,l,0),r))}function Uv(t,e,r,n,o,a,i,l){if(a.length>=r+1)return a;let u=[...a];if(Es(n[o],Error)){rk(i,l);const f=t(e,n[o]),h=u.length;nk(f,o,h,l),u=Uv(t,e,r,n[o],o,[f,...u],f,h)}return Array.isArray(n.errors)&&n.errors.forEach((f,h)=>{if(Es(f,Error)){rk(i,l);const d=t(e,f),_=u.length;nk(d,`errors[${h}]`,_,l),u=Uv(t,e,r,f,o,[d,...u],d,_)}}),u}function rk(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function nk(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function c4(t,e){return t.map(r=>(r.value&&(r.value=cc(r.value,e)),r))}function Vm(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}function l4(t){const e="console";zs(e,t),Bs(e,u4)}function u4(){"console"in $t&&Av.forEach(function(t){t in $t.console&&_n($t.console,t,function(e){return Pp[t]=e,function(...r){Kn("console",{args:r,level:t});const o=Pp[t];o&&o.apply($t.console,r)}})})}function d4(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const p4="Dedupe",f4=()=>{let t;return{name:p4,processEvent(e){if(e.type)return e;try{if(h4(e,t))return It&&it.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},pD=f4;function h4(t,e){return e?!!(m4(t,e)||_4(t,e)):!1}function m4(t,e){const r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!hD(t,e)||!fD(t,e))}function _4(t,e){const r=ok(e),n=ok(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!hD(t,e)||!fD(t,e))}function fD(t,e){let r=OS(t),n=OS(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o=400&&t<500?"warning":t>=500?"error":void 0}const Hv=$t;function _D(){if(!("fetch"in Hv))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function qv(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function g4(){if(typeof EdgeRuntime=="string")return!0;if(!_D())return!1;if(qv(Hv.fetch))return!0;let t=!1;const e=Hv.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=qv(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){Ls&&it.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function y4(t,e){const r="fetch";zs(r,t),Bs(r,()=>v4(void 0,e))}function v4(t,e=!1){e&&!g4()||_n($t,"fetch",function(r){return function(...n){const o=new Error,{method:a,url:i}=b4(n),l={args:n,fetchData:{method:a,url:i},startTimestamp:Ko()*1e3,virtualError:o};return Kn("fetch",{...l}),r.apply($t,n).then(async u=>(Kn("fetch",{...l,endTimestamp:Ko()*1e3,response:u}),u),u=>{throw Kn("fetch",{...l,endTimestamp:Ko()*1e3,error:u}),G0(u)&&u.stack===void 0&&(u.stack=o.stack,Ts(u,"framesToPop",1)),u})}})}function Vv(t,e){return!!t&&typeof t=="object"&&!!t[e]}function ak(t){return typeof t=="string"?t:t?Vv(t,"url")?t.url:t.toString?t.toString():"":""}function b4(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[r,n]=t;return{url:ak(r),method:Vv(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:ak(e),method:Vv(e,"method")?String(e.method).toUpperCase():"GET"}}function w4(){return"npm"}const Hd=$t;function x4(){const t=Hd.chrome,e=t&&t.app&&t.app.runtime,r="history"in Hd&&!!Hd.history.pushState&&!!Hd.history.replaceState;return!e&&r}const jt=$t;let Xv=0;function gD(){return Xv>0}function S4(){Xv++,setTimeout(()=>{Xv--})}function gc(t,e={}){function r(o){return typeof o=="function"}if(!r(t))return t;try{const o=t.__sentry_wrapped__;if(o)return typeof o=="function"?o:t;if(Z0(t))return t}catch{return t}const n=function(...o){try{const a=o.map(i=>gc(i,e));return t.apply(this,a)}catch(a){throw S4(),f5(i=>{i.addEventProcessor(l=>(e.mechanism&&(jv(l,void 0),hc(l,e.mechanism)),l.extra={...l.extra,arguments:o},l)),vI(a)}),a}};try{for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}catch{}KO(n,t),Ts(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}const yu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function nb(t,e){const r=ob(t,e),n={type:T4(e),value:O4(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function k4(t,e,r,n){const o=Br(),a=o&&o.getOptions().normalizeDepth,i=R4(e),l={__serialized__:oD(e,a)};if(i)return{exception:{values:[nb(t,i)]},extra:l};const u={exception:{values:[{type:lf(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:N4(e,{isUnhandledRejection:n})}]},extra:l};if(r){const f=ob(t,r);f.length&&(u.exception.values[0].stacktrace={frames:f})}return u}function Xm(t,e){return{exception:{values:[nb(t,e)]}}}function ob(t,e){const r=e.stacktrace||e.stack||"",n=$4(e),o=E4(e);try{return t(r,n,o)}catch{}return[]}const C4=/Minified React error #\d+;/i;function $4(t){return t&&C4.test(t.message)?1:0}function E4(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function yD(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function T4(t){const e=t&&t.name;return!e&&yD(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function O4(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:yD(t)&&Array.isArray(t.message)&&t.message.length==2?t.message[1]:e:"No error message"}function D4(t,e,r,n){const o=r&&r.syntheticException||void 0,a=ab(t,e,o,n);return hc(a),a.level="error",r&&r.event_id&&(a.event_id=r.event_id),Os(a)}function M4(t,e,r="info",n,o){const a=n&&n.syntheticException||void 0,i=Gv(t,e,a,o);return i.level=r,n&&n.event_id&&(i.event_id=n.event_id),Os(i)}function ab(t,e,r,n,o){let a;if(GO(e)&&e.error)return Xm(t,e.error);if(MS(e)||UA(e)){const i=e;if("stack"in e)a=Xm(t,e);else{const l=i.name||(MS(i)?"DOMError":"DOMException"),u=i.message?`${l}: ${i.message}`:l;a=Gv(t,u,r,n),jv(a,u)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return G0(e)?Xm(t,e):fc(e)||lf(e)?(a=k4(t,e,r,o),hc(a,{synthetic:!0}),a):(a=Gv(t,e,r,n),jv(a,`${e}`),hc(a,{synthetic:!0}),a)}function Gv(t,e,r,n){const o={};if(n&&r){const a=ob(t,r);a.length&&(o.exception={values:[{value:e,stacktrace:{frames:a}}]}),hc(o,{synthetic:!0})}if(J0(e)){const{__sentry_template_string__:a,__sentry_template_values__:i}=e;return o.logentry={message:a,params:i},o}return o.message=e,o}function N4(t,{isUnhandledRejection:e}){const r=ZA(t),n=e?"promise rejection":"exception";return GO(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:lf(t)?`Event \`${P4(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function P4(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function R4(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];if(r instanceof Error)return r}}function A4(t,{metadata:e,tunnel:r,dsn:n}){const o={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!r&&!!n&&{dsn:ff(n)}},a=I4(t);return gu(o,[a])}function I4(t){return[{type:"user_report"},t]}class j4 extends OI{constructor(e){const r={parentSpanIsAlwaysRootSpan:!0,...e},n=jt.SENTRY_SDK_SOURCE||w4();WI(r,"browser",["browser"],n),super(r),r.sendClientReports&&jt.document&&jt.document.addEventListener("visibilitychange",()=>{jt.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,r){return D4(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return M4(this._options.stackParser,e,r,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){yu&&it.warn("SDK not enabled, will not capture user feedback.");return}const r=A4(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(r)}_prepareEvent(e,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n)}}const L4=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qr=$t,F4=1e3;let sk,Jv,Yv;function z4(t){const e="dom";zs(e,t),Bs(e,B4)}function B4(){if(!qr.document)return;const t=Kn.bind(null,"dom"),e=ik(t,!0);qr.document.addEventListener("click",e,!1),qr.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{const o=qr[r],a=o&&o.prototype;!a||!a.hasOwnProperty||!a.hasOwnProperty("addEventListener")||(_n(a,"addEventListener",function(i){return function(l,u,f){if(l==="click"||l=="keypress")try{const h=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=h[l]=h[l]||{refCount:0};if(!d.handler){const _=ik(t);d.handler=_,i.call(this,l,_,f)}d.refCount++}catch{}return i.call(this,l,u,f)}}),_n(a,"removeEventListener",function(i){return function(l,u,f){if(l==="click"||l=="keypress")try{const h=this.__sentry_instrumentation_handlers__||{},d=h[l];d&&(d.refCount--,d.refCount<=0&&(i.call(this,l,d.handler,f),d.handler=void 0,delete h[l]),Object.keys(h).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,l,u,f)}}))})}function W4(t){if(t.type!==Jv)return!1;try{if(!t.target||t.target._sentryId!==Yv)return!1}catch{}return!0}function U4(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function ik(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;const n=H4(r);if(U4(r.type,n))return;Ts(r,"_sentryCaptured",!0),n&&!n._sentryId&&Ts(n,"_sentryId",An());const o=r.type==="keypress"?"input":r.type;W4(r)||(t({event:r,name:o,global:e}),Jv=r.type,Yv=n?n._sentryId:void 0),clearTimeout(sk),sk=qr.setTimeout(()=>{Yv=void 0,Jv=void 0},F4)}}function H4(t){try{return t.target}catch{return null}}let qd;function vD(t){const e="history";zs(e,t),Bs(e,q4)}function q4(){if(!x4())return;const t=qr.onpopstate;qr.onpopstate=function(...r){const n=qr.location.href,o=qd;if(qd=n,Kn("history",{from:o,to:n}),t)try{return t.apply(this,r)}catch{}};function e(r){return function(...n){const o=n.length>2?n[2]:void 0;if(o){const a=qd,i=String(o);qd=i,Kn("history",{from:a,to:i})}return r.apply(this,n)}}_n(qr.history,"pushState",e),_n(qr.history,"replaceState",e)}const xp={};function V4(t){const e=xp[t];if(e)return e;let r=qr[t];if(qv(r))return xp[t]=r.bind(qr);const n=qr.document;if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a&&a[t]&&(r=a[t]),n.head.removeChild(o)}catch(o){L4&&it.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,o)}return r&&(xp[t]=r.bind(qr))}function ck(t){xp[t]=void 0}const Rl="__sentry_xhr_v3__";function X4(t){const e="xhr";zs(e,t),Bs(e,G4)}function G4(){if(!qr.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,r,n){const o=new Error,a=Ko()*1e3,i=Yo(n[0])?n[0].toUpperCase():void 0,l=J4(n[1]);if(!i||!l)return e.apply(r,n);r[Rl]={method:i,url:l,request_headers:{}},i==="POST"&&l.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const u=()=>{const f=r[Rl];if(f&&r.readyState===4){try{f.status_code=r.status}catch{}const h={endTimestamp:Ko()*1e3,startTimestamp:a,xhr:r,virtualError:o};Kn("xhr",h)}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(f,h,d){return u(),f.apply(h,d)}}):r.addEventListener("readystatechange",u),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(f,h,d){const[_,g]=d,b=h[Rl];return b&&Yo(_)&&Yo(g)&&(b.request_headers[_.toLowerCase()]=g),f.apply(h,d)}}),e.apply(r,n)}}),t.send=new Proxy(t.send,{apply(e,r,n){const o=r[Rl];if(!o)return e.apply(r,n);n[0]!==void 0&&(o.body=n[0]);const a={startTimestamp:Ko()*1e3,xhr:r};return Kn("xhr",a),e.apply(r,n)}})}function J4(t){if(Yo(t))return t;try{return t.toString()}catch{}}function Y4(t,e=V4("fetch")){let r=0,n=0;function o(a){const i=a.body.length;r+=i,n++;const l={body:a.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};if(!e)return ck("fetch"),Rp("No fetch implementation available");try{return e(t.url,l).then(u=>(r-=i,n--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return ck("fetch"),r-=i,n--,Rp(u)}}return BI(t,o)}const K4=30,Z4=50;function Kv(t,e,r,n){const o={filename:t,function:e===""?$s:e,in_app:!0};return r!==void 0&&(o.lineno=r),n!==void 0&&(o.colno=n),o}const Q4=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ej=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tj=/\((\S*)(?::(\d+))(?::(\d+))\)/,rj=t=>{const e=Q4.exec(t);if(e){const[,n,o,a]=e;return Kv(n,$s,+o,+a)}const r=ej.exec(t);if(r){if(r[2]&&r[2].indexOf("eval")===0){const i=tj.exec(r[2]);i&&(r[2]=i[1],r[3]=i[2],r[4]=i[3])}const[o,a]=bD(r[1]||$s,r[2]);return Kv(a,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},nj=[K4,rj],oj=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,aj=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,sj=t=>{const e=oj.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const a=aj.exec(e[3]);a&&(e[1]=e[1]||"eval",e[3]=a[1],e[4]=a[2],e[5]="")}let n=e[3],o=e[1]||$s;return[o,n]=bD(o,n),Kv(n,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},ij=[Z4,sj],cj=[nj,ij],lj=VO(...cj),bD=(t,e)=>{const r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:$s,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Vd=1024,uj="Breadcrumbs",dj=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:uj,setup(r){e.console&&l4(mj(r)),e.dom&&z4(hj(r,e.dom)),e.xhr&&X4(_j(r)),e.fetch&&y4(gj(r)),e.history&&vD(yj(r)),e.sentry&&r.on("beforeSendEvent",fj(r))}}},pj=dj;function fj(t){return function(r){Br()===t&&Ms({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:Na(r)},{event:r})}}function hj(t,e){return function(n){if(Br()!==t)return;let o,a,i=typeof e=="object"?e.serializeAttribute:void 0,l=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;l&&l>Vd&&(yu&&it.warn(`\`dom.maxStringLength\` cannot exceed ${Vd}, but a value of ${l} was configured. Sentry will use ${Vd} instead.`),l=Vd),typeof i=="string"&&(i=[i]);try{const f=n.event,h=vj(f)?f.target:f;o=YO(h,{keyAttrs:i,maxStringLength:l}),a=YA(h)}catch{o=""}if(o.length===0)return;const u={category:`ui.${n.name}`,message:o};a&&(u.data={"ui.component_name":a}),Ms(u,{event:n.event,name:n.name,global:n.global})}}function mj(t){return function(r){if(Br()!==t)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:d4(r.level),message:NS(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${NS(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;Ms(n,{input:r.args,level:r.level})}}function _j(t){return function(r){if(Br()!==t)return;const{startTimestamp:n,endTimestamp:o}=r,a=r.xhr[Rl];if(!n||!o||!a)return;const{method:i,url:l,status_code:u,body:f}=a,h={method:i,url:l,status_code:u},d={xhr:r.xhr,input:f,startTimestamp:n,endTimestamp:o},_=mD(u);Ms({category:"xhr",data:h,type:"http",level:_},d)}}function gj(t){return function(r){if(Br()!==t)return;const{startTimestamp:n,endTimestamp:o}=r;if(o&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){const a=r.fetchData,i={data:r.error,input:r.args,startTimestamp:n,endTimestamp:o};Ms({category:"fetch",data:a,level:"error",type:"http"},i)}else{const a=r.response,i={...r.fetchData,status_code:a&&a.status},l={input:r.args,response:a,startTimestamp:n,endTimestamp:o},u=mD(i.status_code);Ms({category:"fetch",data:i,type:"http",level:u},l)}}}function yj(t){return function(r){if(Br()!==t)return;let n=r.from,o=r.to;const a=Vm(jt.location.href);let i=n?Vm(n):void 0;const l=Vm(o);(!i||!i.path)&&(i=a),a.protocol===l.protocol&&a.host===l.host&&(o=l.relative),a.protocol===i.protocol&&a.host===i.host&&(n=i.relative),Ms({category:"navigation",data:{from:n,to:o}})}}function vj(t){return!!t&&!!t.target}const bj=["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"],wj="BrowserApiErrors",xj=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:wj,setupOnce(){e.setTimeout&&_n(jt,"setTimeout",lk),e.setInterval&&_n(jt,"setInterval",lk),e.requestAnimationFrame&&_n(jt,"requestAnimationFrame",kj),e.XMLHttpRequest&&"XMLHttpRequest"in jt&&_n(XMLHttpRequest.prototype,"send",Cj);const r=e.eventTarget;r&&(Array.isArray(r)?r:bj).forEach($j)}}},Sj=xj;function lk(t){return function(...e){const r=e[0];return e[0]=gc(r,{mechanism:{data:{function:La(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function kj(t){return function(e){return t.apply(this,[gc(e,{mechanism:{data:{function:"requestAnimationFrame",handler:La(t)},handled:!1,type:"instrument"}})])}}function Cj(t){return function(...e){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in r&&typeof r[o]=="function"&&_n(r,o,function(a){const i={mechanism:{data:{function:o,handler:La(a)},handled:!1,type:"instrument"}},l=Z0(a);return l&&(i.mechanism.data.handler=La(l)),gc(a,i)})}),t.apply(this,e)}}function $j(t){const r=jt[t],n=r&&r.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(_n(n,"addEventListener",function(o){return function(a,i,l){try{Ej(i)&&(i.handleEvent=gc(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:La(i),target:t},handled:!1,type:"instrument"}}))}catch{}return o.apply(this,[a,gc(i,{mechanism:{data:{function:"addEventListener",handler:La(i),target:t},handled:!1,type:"instrument"}}),l])}}),_n(n,"removeEventListener",function(o){return function(a,i,l){try{const u=i.__sentry_wrapped__;u&&o.call(this,a,u,l)}catch{}return o.call(this,a,i,l)}}))}function Ej(t){return typeof t.handleEvent=="function"}const Tj=()=>({name:"BrowserSession",setupOnce(){if(typeof jt.document>"u"){yu&&it.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}GS({ignoreDuration:!0}),JS(),vD(({from:t,to:e})=>{t!==void 0&&t!==e&&(GS({ignoreDuration:!0}),JS())})}}),Oj="GlobalHandlers",Dj=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Oj,setupOnce(){Error.stackTraceLimit=50},setup(r){e.onerror&&(Nj(r),uk("onerror")),e.onunhandledrejection&&(Pj(r),uk("onunhandledrejection"))}}},Mj=Dj;function Nj(t){FA(e=>{const{stackParser:r,attachStacktrace:n}=wD();if(Br()!==t||gD())return;const{msg:o,url:a,line:i,column:l,error:u}=e,f=Ij(ab(r,u||o,void 0,n,!1),a,i,l);f.level="error",sD(f,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function Pj(t){BA(e=>{const{stackParser:r,attachStacktrace:n}=wD();if(Br()!==t||gD())return;const o=Rj(e),a=Y0(o)?Aj(o):ab(r,o,void 0,n,!0);a.level="error",sD(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Rj(t){if(Y0(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function Aj(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Ij(t,e,r,n){const o=t.exception=t.exception||{},a=o.values=o.values||[],i=a[0]=a[0]||{},l=i.stacktrace=i.stacktrace||{},u=l.frames=l.frames||[],f=n,h=r,d=Yo(e)&&e.length>0?e:JA();return u.length===0&&u.push({colno:f,filename:d,function:$s,in_app:!0,lineno:h}),t}function uk(t){yu&&it.log(`Global Handler attached: ${t}`)}function wD(){const t=Br();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const jj=()=>({name:"HttpContext",preprocessEvent(t){if(!jt.navigator&&!jt.location&&!jt.document)return;const e=t.request&&t.request.url||jt.location&&jt.location.href,{referrer:r}=jt.document||{},{userAgent:n}=jt.navigator||{},o={...t.request&&t.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...t.request,...e&&{url:e},headers:o};t.request=a}}),Lj="cause",Fj=5,zj="LinkedErrors",Bj=(t={})=>{const e=t.limit||Fj,r=t.key||Lj;return{name:zj,preprocessEvent(n,o,a){const i=a.getOptions();i4(nb,i.stackParser,i.maxValueLength,r,e,n,o)}}},Wj=Bj;function Uj(t){const e=[YI(),VI(),Sj(),pj(),Mj(),Wj(),pD(),jj()];return t.autoSessionTracking!==!1&&e.push(Tj()),e}function Hj(t={}){const e={defaultIntegrations:Uj(t),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:jt.SENTRY_RELEASE&&jt.SENTRY_RELEASE.id?jt.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return t.defaultIntegrations==null&&delete t.defaultIntegrations,{...e,...t}}function qj(){const t=typeof jt.window<"u"&&jt;if(!t)return!1;const e=t.chrome?"chrome":"browser",r=t[e],n=r&&r.runtime&&r.runtime.id,o=jt.location&&jt.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!n&&jt===jt.top&&a.some(u=>o.startsWith(`${u}//`)),l=typeof t.nw<"u";return!!n&&!i&&!l}function Vj(t={}){const e=Hj(t);if(!e.skipBrowserExtensionCheck&&qj()){Fs(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}yu&&(_D()||it.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const r={...e,stackParser:jA(e.stackParser||lj),integrations:$I(e),transport:e.transport||Y4};return NI(j4,r)}var $=js();const y=Ha($),Ip=$A({__proto__:null,default:y},[$]);function Zo(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const Zn="$$material";function jp(){return jp=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?Mr(Oc,--sn):0,yc--,hr===10&&(yc=1,mf--),hr}function gn(){return hr=sn<$D?Mr(Oc,sn++):0,yc++,hr===10&&(yc=1,mf++),hr}function xo(){return Mr(Oc,sn)}function Sp(){return sn}function vu(t,e){return Zl(Oc,t,e)}function Ql(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ED(t){return mf=yc=1,$D=fo(Oc=t),sn=0,[]}function TD(t){return Oc="",t}function kp(t){return CD(vu(sn-1,Qv(t===91?t+2:t===40?t+1:t)))}function a3(t){for(;(hr=xo())&&hr<33;)gn();return Ql(t)>2||Ql(hr)>3?"":" "}function s3(t,e){for(;--e&&gn()&&!(hr<48||hr>102||hr>57&&hr<65||hr>70&&hr<97););return vu(t,Sp()+(e<6&&xo()==32&&gn()==32))}function Qv(t){for(;gn();)switch(hr){case t:return sn;case 34:case 39:t!==34&&t!==39&&Qv(hr);break;case 40:t===41&&Qv(t);break;case 92:gn();break}return sn}function i3(t,e){for(;gn()&&t+hr!==57;)if(t+hr===84&&xo()===47)break;return"/*"+vu(e,sn-1)+"*"+hf(t===47?t:gn())}function c3(t){for(;!Ql(xo());)gn();return vu(t,sn)}function l3(t){return TD(Cp("",null,null,null,[""],t=ED(t),0,[0],t))}function Cp(t,e,r,n,o,a,i,l,u){for(var f=0,h=0,d=i,_=0,g=0,b=0,w=1,S=1,k=1,D=0,C="",O=o,M=a,T=n,P=C;S;)switch(b=D,D=gn()){case 40:if(b!=108&&Mr(P,d-1)==58){Zv(P+=Ct(kp(D),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:P+=kp(D);break;case 9:case 10:case 13:case 32:P+=a3(b);break;case 92:P+=s3(Sp()-1,7);continue;case 47:switch(xo()){case 42:case 47:Xd(u3(i3(gn(),Sp()),e,r),u);break;default:P+="/"}break;case 123*w:l[f++]=fo(P)*k;case 125*w:case 59:case 0:switch(D){case 0:case 125:S=0;case 59+h:k==-1&&(P=Ct(P,/\f/g,"")),g>0&&fo(P)-d&&Xd(g>32?pk(P+";",n,r,d-1):pk(Ct(P," ","")+";",n,r,d-2),u);break;case 59:P+=";";default:if(Xd(T=dk(P,e,r,f,h,o,l,C,O=[],M=[],d),a),D===123)if(h===0)Cp(P,e,T,T,O,a,d,l,M);else switch(_===99&&Mr(P,3)===110?100:_){case 100:case 108:case 109:case 115:Cp(t,T,T,n&&Xd(dk(t,T,T,0,0,o,l,C,o,O=[],d),M),o,M,d,l,n?O:M);break;default:Cp(P,T,T,T,[""],M,0,l,M)}}f=h=g=0,w=k=1,C=P="",d=i;break;case 58:d=1+fo(P),g=b;default:if(w<1){if(D==123)--w;else if(D==125&&w++==0&&o3()==125)continue}switch(P+=hf(D),D*w){case 38:k=h>0?1:(P+="\f",-1);break;case 44:l[f++]=(fo(P)-1)*k,k=1;break;case 64:xo()===45&&(P+=kp(gn())),_=xo(),h=d=fo(C=P+=c3(Sp())),D++;break;case 45:b===45&&fo(P)==2&&(w=0)}}return a}function dk(t,e,r,n,o,a,i,l,u,f,h){for(var d=o-1,_=o===0?a:[""],g=cb(_),b=0,w=0,S=0;b0?_[k]+" "+D:Ct(D,/&\f/g,_[k])))&&(u[S++]=C);return _f(t,e,r,o===0?sb:l,u,f,h)}function u3(t,e,r){return _f(t,e,r,SD,hf(n3()),Zl(t,2,-2),0)}function pk(t,e,r,n){return _f(t,e,r,ib,Zl(t,0,n),Zl(t,n+1,-1),n)}function lc(t,e){for(var r="",n=cb(t),o=0;o6)switch(Mr(t,e+1)){case 109:if(Mr(t,e+4)!==45)break;case 102:return Ct(t,/(.+:)(.+)-([^]+)/,"$1"+kt+"$2-$3$1"+Lp+(Mr(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Zv(t,"stretch")?DD(Ct(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Mr(t,e+1)!==115)break;case 6444:switch(Mr(t,fo(t)-3-(~Zv(t,"!important")&&10))){case 107:return Ct(t,":",":"+kt)+t;case 101:return Ct(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+kt+(Mr(t,14)===45?"inline-":"")+"box$3$1"+kt+"$2$3$1"+jr+"$2box$3")+t}break;case 5936:switch(Mr(t,e+11)){case 114:return kt+t+jr+Ct(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return kt+t+jr+Ct(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return kt+t+jr+Ct(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return kt+t+jr+t+t}return t}var v3=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case ib:e.return=DD(e.value,e.length);break;case kD:return lc([vl(e,{value:Ct(e.value,"@","@"+kt)})],o);case sb:if(e.length)return r3(e.props,function(a){switch(t3(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lc([vl(e,{props:[Ct(a,/:(read-\w+)/,":"+Lp+"$1")]})],o);case"::placeholder":return lc([vl(e,{props:[Ct(a,/:(plac\w+)/,":"+kt+"input-$1")]}),vl(e,{props:[Ct(a,/:(plac\w+)/,":"+Lp+"$1")]}),vl(e,{props:[Ct(a,/:(plac\w+)/,jr+"input-$1")]})],o)}return""})}},b3=[v3],MD=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var S=w.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=e.stylisPlugins||b3,a={},i,l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var S=w.getAttribute("data-emotion").split(" "),k=1;k=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var $3={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},E3=/[A-Z]|^ms/g,T3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PD=function(e){return e.charCodeAt(1)===45},gk=function(e){return e!=null&&typeof e!="boolean"},Ym=OD(function(t){return PD(t)?t:t.replace(E3,"-$&").toLowerCase()}),yk=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(T3,function(n,o,a){return ho={name:o,styles:a,next:ho},o})}return $3[e]!==1&&!PD(e)&&typeof r=="number"&&r!==0?r+"px":r};function eu(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return ho={name:o.name,styles:o.styles,next:ho},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)ho={name:i.name,styles:i.styles,next:ho},i=i.next;var l=a.styles+";";return l}return O3(t,e,r)}case"function":{if(t!==void 0){var u=ho,f=r(t);return ho=u,eu(t,e,f)}break}}var h=r;if(e==null)return h;var d=e[h];return d!==void 0?d:h}function O3(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o96?B3:W3},xk=function(e,r,n){var o;if(r){var a=r.shouldForwardProp;o=e.__emotion_forwardProp&&a?function(i){return e.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},U3=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return lb(r,n,o),AD(function(){return ub(r,n,o)}),null},H3=function t(e,r){var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,a,i;r!==void 0&&(a=r.label,i=r.target);var l=xk(e,r,n),u=l||wk(o),f=!u("as");return function(){var h=arguments,d=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)d.push.apply(d,h);else{var _=h[0];d.push(_[0]);for(var g=h.length,b=1;b{const r=MD(t);return r.sheet=new e({key:r.key,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy,prepend:r.sheet.prepend,insertionPoint:r.sheet.insertionPoint}),r};let r0;if(typeof document=="object"){let t=document.querySelector('[name="emotion-insertion-point"]');if(!t){t=document.createElement("meta"),t.setAttribute("name","emotion-insertion-point"),t.setAttribute("content","");const r=document.querySelector("head");r&&r.prepend(t)}class e extends xD{insert(n,o){return this.key&&this.key.endsWith("global")&&(this.before=t),super.insert(n,o)}}r0=Y3({key:"css",insertionPoint:t},e)}function $k(t){const{injectFirst:e,children:r}=t;return e&&r0?R.jsx(N3,{value:r0,children:r}):r}function K3(t){return t==null||Object.keys(t).length===0}function jD(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?o=>e(K3(o)?r:o):e;return R.jsx(L3,{styles:n})}/** - * @mui/styled-engine v6.3.0 + */var hk;function w3(){if(hk)return Et;hk=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,_=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,b=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,S=t?Symbol.for("react.fundamental"):60117,k=t?Symbol.for("react.responder"):60118,D=t?Symbol.for("react.scope"):60119;function C(M){if(typeof M=="object"&&M!==null){var T=M.$$typeof;switch(T){case e:switch(M=M.type,M){case u:case f:case n:case a:case o:case d:return M;default:switch(M=M&&M.$$typeof,M){case l:case h:case b:case g:case i:return M;default:return T}}case r:return T}}}function O(M){return C(M)===f}return Et.AsyncMode=u,Et.ConcurrentMode=f,Et.ContextConsumer=l,Et.ContextProvider=i,Et.Element=e,Et.ForwardRef=h,Et.Fragment=n,Et.Lazy=b,Et.Memo=g,Et.Portal=r,Et.Profiler=a,Et.StrictMode=o,Et.Suspense=d,Et.isAsyncMode=function(M){return O(M)||C(M)===u},Et.isConcurrentMode=O,Et.isContextConsumer=function(M){return C(M)===l},Et.isContextProvider=function(M){return C(M)===i},Et.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===e},Et.isForwardRef=function(M){return C(M)===h},Et.isFragment=function(M){return C(M)===n},Et.isLazy=function(M){return C(M)===b},Et.isMemo=function(M){return C(M)===g},Et.isPortal=function(M){return C(M)===r},Et.isProfiler=function(M){return C(M)===a},Et.isStrictMode=function(M){return C(M)===o},Et.isSuspense=function(M){return C(M)===d},Et.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===n||M===f||M===a||M===o||M===d||M===_||typeof M=="object"&&M!==null&&(M.$$typeof===b||M.$$typeof===g||M.$$typeof===i||M.$$typeof===l||M.$$typeof===h||M.$$typeof===S||M.$$typeof===k||M.$$typeof===D||M.$$typeof===w)},Et.typeOf=C,Et}var mk;function x3(){return mk||(mk=1,Gm.exports=w3()),Gm.exports}var Jm,_k;function S3(){if(_k)return Jm;_k=1;var t=x3(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]=n,a[t.Memo]=o;function i(b){return t.isMemo(b)?o:a[b.$$typeof]||e}var l=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,_=Object.prototype;function g(b,w,S){if(typeof w!="string"){if(_){var k=d(w);k&&k!==_&&g(b,k,S)}var D=u(w);f&&(D=D.concat(f(w)));for(var C=i(b),O=i(w),M=0;M=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var $3={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},E3=/[A-Z]|^ms/g,T3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PD=function(e){return e.charCodeAt(1)===45},gk=function(e){return e!=null&&typeof e!="boolean"},Ym=OD(function(t){return PD(t)?t:t.replace(E3,"-$&").toLowerCase()}),yk=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(T3,function(n,o,a){return ho={name:o,styles:a,next:ho},o})}return $3[e]!==1&&!PD(e)&&typeof r=="number"&&r!==0?r+"px":r};function eu(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return ho={name:o.name,styles:o.styles,next:ho},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)ho={name:i.name,styles:i.styles,next:ho},i=i.next;var l=a.styles+";";return l}return O3(t,e,r)}case"function":{if(t!==void 0){var u=ho,f=r(t);return ho=u,eu(t,e,f)}break}}var h=r;if(e==null)return h;var d=e[h];return d!==void 0?d:h}function O3(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o96?B3:W3},xk=function(e,r,n){var o;if(r){var a=r.shouldForwardProp;o=e.__emotion_forwardProp&&a?function(i){return e.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},U3=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return lb(r,n,o),AD(function(){return ub(r,n,o)}),null},H3=function t(e,r){var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,a,i;r!==void 0&&(a=r.label,i=r.target);var l=xk(e,r,n),u=l||wk(o),f=!u("as");return function(){var h=arguments,d=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)d.push.apply(d,h);else{var _=h[0];d.push(_[0]);for(var g=h.length,b=1;b{const r=MD(t);return r.sheet=new e({key:r.key,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy,prepend:r.sheet.prepend,insertionPoint:r.sheet.insertionPoint}),r};let r0;if(typeof document=="object"){let t=document.querySelector('[name="emotion-insertion-point"]');if(!t){t=document.createElement("meta"),t.setAttribute("name","emotion-insertion-point"),t.setAttribute("content","");const r=document.querySelector("head");r&&r.prepend(t)}class e extends xD{insert(n,o){return this.key&&this.key.endsWith("global")&&(this.before=t),super.insert(n,o)}}r0=Y3({key:"css",insertionPoint:t},e)}function $k(t){const{injectFirst:e,children:r}=t;return e&&r0?R.jsx(N3,{value:r0,children:r}):r}function K3(t){return t==null||Object.keys(t).length===0}function jD(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?o=>e(K3(o)?r:o):e;return R.jsx(L3,{styles:n})}/** + * @mui/styled-engine v6.3.1 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function LD(t,e){return t0(t,e)}function Z3(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const Ek=[];function Tk(t){return Ek[0]=t,bu(Ek)}function vo(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function zD(t){if($.isValidElement(t)||!vo(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=zD(t[r])}),e}function kr(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return vo(t)&&vo(e)&&Object.keys(e).forEach(o=>{$.isValidElement(e[o])?n[o]=e[o]:vo(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&vo(t[o])?n[o]=kr(t[o],e[o],r):r.clone?n[o]=vo(e[o])?zD(e[o]):e[o]:n[o]=e[o]}),n}const Q3=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function eL(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=t,a=Q3(e),i=Object.keys(a);function l(_){return`@media (min-width:${typeof e[_]=="number"?e[_]:_}${r})`}function u(_){return`@media (max-width:${(typeof e[_]=="number"?e[_]:_)-n/100}${r})`}function f(_,g){const b=i.indexOf(g);return`@media (min-width:${typeof e[_]=="number"?e[_]:_}${r}) and (max-width:${(b!==-1&&typeof e[i[b]]=="number"?e[i[b]]:g)-n/100}${r})`}function h(_){return i.indexOf(_)+1n.startsWith("@container")).sort((n,o)=>{var i,l;const a=/min-width:\s*([0-9.]+)/;return+(((i=n.match(a))==null?void 0:i[1])||0)-+(((l=o.match(a))==null?void 0:l[1])||0)});return r.length?r.reduce((n,o)=>{const a=e[o];return delete n[o],n[o]=a,n},{...e}):e}function rL(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function nL(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return t.containerQueries(o).up(a)}function oL(t){const e=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function r(a,i){a.up=(...l)=>e(t.breakpoints.up(...l),i),a.down=(...l)=>e(t.breakpoints.down(...l),i),a.between=(...l)=>e(t.breakpoints.between(...l),i),a.only=(...l)=>e(t.breakpoints.only(...l),i),a.not=(...l)=>{const u=e(t.breakpoints.not(...l),i);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},o=a=>(r(n,a),n);return r(o),{...t,containerQueries:o}}const aL={borderRadius:4};function ql(t,e){return e?kr(t,e,{clone:!1}):t}const gf={xs:0,sm:600,md:900,lg:1200,xl:1536},Ok={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${gf[t]}px)`},sL={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:gf[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function Qn(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const a=n.breakpoints||Ok;return e.reduce((i,l,u)=>(i[a.up(a.keys[u])]=r(e[u]),i),{})}if(typeof e=="object"){const a=n.breakpoints||Ok;return Object.keys(e).reduce((i,l)=>{if(rL(a.keys,l)){const u=nL(n.containerQueries?n:sL,l);u&&(i[u]=r(e[l],l))}else if(Object.keys(a.values||gf).includes(l)){const u=a.up(l);i[u]=r(e[l],l)}else{const u=l;i[u]=e[u]}return i},{})}return r(e)}function FD(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((n,o)=>{const a=t.up(o);return n[a]={},n},{}))||{}}function BD(t,e){return t.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},e)}function iL(t,...e){const r=FD(t),n=[r,...e].reduce((o,a)=>kr(o,a),{});return BD(Object.keys(r),n)}function cL(t,e){if(typeof t!="object")return{};const r={},n=Object.keys(e);return Array.isArray(t)?n.forEach((o,a)=>{a{t[o]!=null&&(r[o]=!0)}),r}function e_({values:t,breakpoints:e,base:r}){const n=r||cL(t,e),o=Object.keys(n);if(o.length===0)return t;let a;return o.reduce((i,l,u)=>(Array.isArray(t)?(i[l]=t[u]!=null?t[u]:t[a],a=u):typeof t=="object"?(i[l]=t[l]!=null?t[l]:t[a],a=l):i[l]=t,i),{})}function he(t){if(typeof t!="string")throw new Error(Zo(7));return t.charAt(0).toUpperCase()+t.slice(1)}function vc(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,t);if(n!=null)return n}return e.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,t)}function zp(t,e,r,n=r){let o;return typeof t=="function"?o=t(r):Array.isArray(t)?o=t[r]||n:o=vc(t,r)||n,e&&(o=e(o,n,t)),o}function lr(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:o}=t,a=i=>{if(i[e]==null)return null;const l=i[e],u=i.theme,f=vc(u,n)||{};return Qn(i,l,d=>{let _=zp(f,o,d);return d===_&&typeof d=="string"&&(_=zp(f,o,`${e}${d==="default"?"":he(d)}`,d)),r===!1?_:{[r]:_}})};return a.propTypes={},a.filterProps=[e],a}function lL(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const uL={m:"margin",p:"padding"},dL={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Dk={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pL=lL(t=>{if(t.length>2)if(Dk[t])t=Dk[t];else return[t];const[e,r]=t.split(""),n=uL[e],o=dL[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),fb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...fb,...hb];function xu(t,e,r,n){const o=vc(t,e,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),l=o[i];return a>=0?l:typeof l=="number"?-l:`-${l}`}:typeof o=="function"?o:()=>{}}function yf(t){return xu(t,"spacing",8)}function Ns(t,e){return typeof e=="string"||e==null?e:t(e)}function fL(t,e){return r=>t.reduce((n,o)=>(n[o]=Ns(e,r),n),{})}function hL(t,e,r,n){if(!e.includes(r))return null;const o=pL(r),a=fL(o,n),i=t[r];return Qn(t,i,a)}function WD(t,e){const r=yf(t.theme);return Object.keys(t).map(n=>hL(t,e,n,r)).reduce(ql,{})}function tr(t){return WD(t,fb)}tr.propTypes={};tr.filterProps=fb;function rr(t){return WD(t,hb)}rr.propTypes={};rr.filterProps=hb;function UD(t=8,e=yf({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=e(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function vf(...t){const e=t.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>e[a]?ql(o,e[a](n)):o,{});return r.propTypes={},r.filterProps=t.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Nn(t){return typeof t!="number"?t:`${t}px solid`}function Fn(t,e){return lr({prop:t,themeKey:"borders",transform:e})}const mL=Fn("border",Nn),_L=Fn("borderTop",Nn),gL=Fn("borderRight",Nn),yL=Fn("borderBottom",Nn),vL=Fn("borderLeft",Nn),bL=Fn("borderColor"),wL=Fn("borderTopColor"),xL=Fn("borderRightColor"),SL=Fn("borderBottomColor"),kL=Fn("borderLeftColor"),CL=Fn("outline",Nn),$L=Fn("outlineColor"),bf=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=xu(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ns(e,n)});return Qn(t,t.borderRadius,r)}return null};bf.propTypes={};bf.filterProps=["borderRadius"];vf(mL,_L,gL,yL,vL,bL,wL,xL,SL,kL,bf,CL,$L);const wf=t=>{if(t.gap!==void 0&&t.gap!==null){const e=xu(t.theme,"spacing",8),r=n=>({gap:Ns(e,n)});return Qn(t,t.gap,r)}return null};wf.propTypes={};wf.filterProps=["gap"];const xf=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=xu(t.theme,"spacing",8),r=n=>({columnGap:Ns(e,n)});return Qn(t,t.columnGap,r)}return null};xf.propTypes={};xf.filterProps=["columnGap"];const Sf=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=xu(t.theme,"spacing",8),r=n=>({rowGap:Ns(e,n)});return Qn(t,t.rowGap,r)}return null};Sf.propTypes={};Sf.filterProps=["rowGap"];const EL=lr({prop:"gridColumn"}),TL=lr({prop:"gridRow"}),OL=lr({prop:"gridAutoFlow"}),DL=lr({prop:"gridAutoColumns"}),ML=lr({prop:"gridAutoRows"}),NL=lr({prop:"gridTemplateColumns"}),PL=lr({prop:"gridTemplateRows"}),RL=lr({prop:"gridTemplateAreas"}),AL=lr({prop:"gridArea"});vf(wf,xf,Sf,EL,TL,OL,DL,ML,NL,PL,RL,AL);function uc(t,e){return e==="grey"?e:t}const IL=lr({prop:"color",themeKey:"palette",transform:uc}),jL=lr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:uc}),LL=lr({prop:"backgroundColor",themeKey:"palette",transform:uc});vf(IL,jL,LL);function mn(t){return t<=1&&t!==0?`${t*100}%`:t}const zL=lr({prop:"width",transform:mn}),mb=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{var o,a,i,l,u;const n=((i=(a=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[r])||gf[r];return n?((u=(l=t.theme)==null?void 0:l.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:mn(r)}};return Qn(t,t.maxWidth,e)}return null};mb.filterProps=["maxWidth"];const FL=lr({prop:"minWidth",transform:mn}),BL=lr({prop:"height",transform:mn}),WL=lr({prop:"maxHeight",transform:mn}),UL=lr({prop:"minHeight",transform:mn});lr({prop:"size",cssProperty:"width",transform:mn});lr({prop:"size",cssProperty:"height",transform:mn});const HL=lr({prop:"boxSizing"});vf(zL,mb,FL,BL,WL,UL,HL);const Su={border:{themeKey:"borders",transform:Nn},borderTop:{themeKey:"borders",transform:Nn},borderRight:{themeKey:"borders",transform:Nn},borderBottom:{themeKey:"borders",transform:Nn},borderLeft:{themeKey:"borders",transform:Nn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Nn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bf},color:{themeKey:"palette",transform:uc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:uc},backgroundColor:{themeKey:"palette",transform:uc},p:{style:rr},pt:{style:rr},pr:{style:rr},pb:{style:rr},pl:{style:rr},px:{style:rr},py:{style:rr},padding:{style:rr},paddingTop:{style:rr},paddingRight:{style:rr},paddingBottom:{style:rr},paddingLeft:{style:rr},paddingX:{style:rr},paddingY:{style:rr},paddingInline:{style:rr},paddingInlineStart:{style:rr},paddingInlineEnd:{style:rr},paddingBlock:{style:rr},paddingBlockStart:{style:rr},paddingBlockEnd:{style:rr},m:{style:tr},mt:{style:tr},mr:{style:tr},mb:{style:tr},ml:{style:tr},mx:{style:tr},my:{style:tr},margin:{style:tr},marginTop:{style:tr},marginRight:{style:tr},marginBottom:{style:tr},marginLeft:{style:tr},marginX:{style:tr},marginY:{style:tr},marginInline:{style:tr},marginInlineStart:{style:tr},marginInlineEnd:{style:tr},marginBlock:{style:tr},marginBlockStart:{style:tr},marginBlockEnd:{style:tr},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:wf},rowGap:{style:Sf},columnGap:{style:xf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mn},maxWidth:{style:mb},minWidth:{transform:mn},height:{transform:mn},maxHeight:{transform:mn},minHeight:{transform:mn},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 qL(...t){const e=t.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function VL(t,e){return typeof t=="function"?t(e):t}function XL(){function t(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:f,transform:h,style:d}=l;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const _=vc(o,f)||{};return d?d(i):Qn(i,n,b=>{let w=zp(_,h,b);return b===w&&typeof b=="string"&&(w=zp(_,h,`${r}${b==="default"?"":he(b)}`,b)),u===!1?w:{[u]:w}})}function e(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const a=o.unstable_sxConfig??Su;function i(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const f=FD(o.breakpoints),h=Object.keys(f);let d=f;return Object.keys(u).forEach(_=>{const g=VL(u[_],o);if(g!=null)if(typeof g=="object")if(a[_])d=ql(d,t(_,g,o,a));else{const b=Qn({theme:o},g,w=>({[_]:w}));qL(b,g)?d[_]=e({sx:g,theme:o}):d=ql(d,b)}else d=ql(d,t(_,g,o,a))}),tL(o,BD(h,d))}return Array.isArray(n)?n.map(i):i(n)}return e}const za=XL();za.filterProps=["sx"];function GL(t,e){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[t])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(t);return o==="&"?e:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:e})}return r.palette.mode===t?e:{}}function kf(t={},...e){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...i}=t,l=eL(r),u=UD(o);let f=kr({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...aL,...a}},i);return f=oL(f),f.applyStyles=GL,f=e.reduce((h,d)=>kr(h,d),f),f.unstable_sxConfig={...Su,...i==null?void 0:i.unstable_sxConfig},f.unstable_sx=function(d){return za({sx:d,theme:this})},f}function JL(t){return Object.keys(t).length===0}function _b(t=null){const e=$.useContext(wu);return!e||JL(e)?t:e}const YL=kf();function Cf(t=YL){return _b(t)}function KL({styles:t,themeId:e,defaultTheme:r={}}){const n=Cf(r),o=typeof t=="function"?t(e&&n[e]||n):t;return R.jsx(jD,{styles:o})}const ZL=t=>{var n;const e={systemProps:{},otherProps:{}},r=((n=t==null?void 0:t.theme)==null?void 0:n.unstable_sxConfig)??Su;return Object.keys(t).forEach(o=>{r[o]?e.systemProps[o]=t[o]:e.otherProps[o]=t[o]}),e};function gb(t){const{sx:e,...r}=t,{systemProps:n,otherProps:o}=ZL(r);let a;return Array.isArray(e)?a=[n,...e]:typeof e=="function"?a=(...i)=>{const l=e(...i);return vo(l)?{...n,...l}:n}:a={...n,...e},{...o,sx:a}}const Mk=t=>t,QL=()=>{let t=Mk;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Mk}}},HD=QL();function qD(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;el!=="theme"&&l!=="sx"&&l!=="as"})(za);return $.forwardRef(function(u,f){const h=Cf(r),{className:d,component:_="div",...g}=gb(u);return R.jsx(a,{as:_,ref:f,className:Ee(d,o?o(n):n),theme:e&&h[e]||h,...g})})}const tz={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 tt(t,e,r="Mui"){const n=tz[e];return n?`${r}-${n}`:`${HD.generate(t)}-${e}`}function Ze(t,e,r="Mui"){const n={};return e.forEach(o=>{n[o]=tt(t,o,r)}),n}function VD(t){const{variants:e,...r}=t,n={variants:e,style:Tk(r),isProcessed:!0};return n.style===r||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=Tk(o.style))}),n}const rz=kf();function t_(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function nz(t){return t?(e,r)=>r[t]:null}function oz(t,e,r){t.theme=sz(t.theme)?r:t.theme[e]||t.theme}function $p(t,e){const r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(n=>$p(t,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:o,...a}=r;n=a}return XD(t,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function XD(t,e,r=[]){var o;let n;e:for(let a=0;a{Z3(l,M=>M.filter(T=>T!==za));const{name:f,slot:h,skipVariantsResolver:d,skipSx:_,overridesResolver:g=nz(cz(h)),...b}=u,w=d!==void 0?d:h&&h!=="Root"&&h!=="root"||!1,S=_||!1;let k=t_;h==="Root"||h==="root"?k=n:h?k=o:iz(l)&&(k=void 0);const D=LD(l,{shouldForwardProp:k,label:az(),...b}),C=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function(P){return $p(P,M)};if(vo(M)){const T=VD(M);return T.variants?function(j){return $p(j,T)}:T.style}return M},O=(...M)=>{const T=[],P=M.map(C),j=[];if(T.push(a),f&&g&&j.push(function(G){var K,ee;const F=(ee=(K=G.theme.components)==null?void 0:K[f])==null?void 0:ee.styleOverrides;if(!F)return null;const H={};for(const Y in F)H[Y]=$p(G,F[Y]);return g(G,H)}),f&&!w&&j.push(function(G){var H,K;const B=G.theme,F=(K=(H=B==null?void 0:B.components)==null?void 0:H[f])==null?void 0:K.variants;return F?XD(G,F):null}),S||j.push(za),Array.isArray(P[0])){const L=P.shift(),G=new Array(T.length).fill(""),B=new Array(j.length).fill("");let F;F=[...G,...L,...B],F.raw=[...G,...L.raw,...B],T.unshift(F)}const z=[...T,...P,...j],E=D(...z);return l.muiName&&(E.muiName=l.muiName),E};return D.withConfig&&(O.withConfig=D.withConfig),O}}function az(t,e){return void 0}function sz(t){for(const e in t)return!1;return!0}function iz(t){return typeof t=="string"&&t.charCodeAt(0)>96}function cz(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const lz=GD();function tu(t,e){const r={...e};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const o=n;if(o==="components"||o==="slots")r[o]={...t[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=t[o],i=e[o];if(!i)r[o]=a||{};else if(!a)r[o]=i;else{r[o]={...i};for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const u=l;r[o][u]=tu(a[u],i[u])}}}else r[o]===void 0&&(r[o]=t[o])}return r}function JD(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:tu(e.components[r].defaultProps,n)}function uz({props:t,name:e,defaultTheme:r,themeId:n}){let o=Cf(r);return n&&(o=o[n]||o),JD({theme:o,name:e,props:t})}const yn=typeof window<"u"?$.useLayoutEffect:$.useEffect;function dz(t,e,r,n,o){const[a,i]=$.useState(()=>o&&r?r(t).matches:n?n(t).matches:e);return yn(()=>{if(!r)return;const l=r(t),u=()=>{i(l.matches)};return u(),l.addEventListener("change",u),()=>{l.removeEventListener("change",u)}},[t,r]),a}const pz={...Ip},YD=pz.useSyncExternalStore;function fz(t,e,r,n,o){const a=$.useCallback(()=>e,[e]),i=$.useMemo(()=>{if(o&&r)return()=>r(t).matches;if(n!==null){const{matches:h}=n(t);return()=>h}return a},[a,t,n,o,r]),[l,u]=$.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const h=r(t);return[()=>h.matches,d=>(h.addEventListener("change",d),()=>{h.removeEventListener("change",d)})]},[a,r,t]);return YD(u,l,i)}function hz(t={}){const{themeId:e}=t;return function(n,o={}){let a=_b();a&&e&&(a=a[e]||a);const i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:u=i?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:h=!1}=JD({name:"MuiUseMediaQuery",props:o,theme:a});let d=typeof n=="function"?n(a):n;return d=d.replace(/^@media( ?)/m,""),(YD!==void 0?fz:dz)(d,l,u,f,h)}}function Li(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function yb(t,e=0,r=1){return Li(t,e,r)}function mz(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Fa(t){if(t.type)return t;if(t.charAt(0)==="#")return Fa(mz(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Zo(9,t));let n=t.substring(e+1,t.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Zo(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const _z=t=>{const e=Fa(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Al=(t,e)=>{try{return _z(t)}catch{return t}};function $f(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function KD(t){t=Fa(t);const{values:e}=t,r=e[0],n=e[1]/100,o=e[2]/100,a=n*Math.min(o,1-o),i=(f,h=(f+r/30)%12)=>o-a*Math.max(Math.min(h-3,9-h,1),-1);let l="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return t.type==="hsla"&&(l+="a",u.push(e[3])),$f({type:l,values:u})}function n0(t){t=Fa(t);let e=t.type==="hsl"||t.type==="hsla"?Fa(KD(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function gz(t,e){const r=n0(t),n=n0(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Nt(t,e){return t=Fa(t),e=yb(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,$f(t)}function Gd(t,e,r){try{return Nt(t,e)}catch{return t}}function bc(t,e){if(t=Fa(t),e=yb(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return $f(t)}function Pt(t,e,r){try{return bc(t,e)}catch{return t}}function wc(t,e){if(t=Fa(t),e=yb(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return $f(t)}function Rt(t,e,r){try{return wc(t,e)}catch{return t}}function Fp(t,e=.15){return n0(t)>.5?bc(t,e):wc(t,e)}function Jd(t,e,r){try{return Fp(t,e)}catch{return t}}function o0(...t){return t.reduce((e,r)=>r==null?e:function(...o){e.apply(this,o),r.apply(this,o)},()=>{})}function Ef(t,e=166){let r;function n(...o){const a=()=>{t.apply(this,o)};clearTimeout(r),r=setTimeout(a,e)}return n.clear=()=>{clearTimeout(r)},n}function r_(t,e){var r,n,o;return $.isValidElement(t)&&e.indexOf(t.type.muiName??((o=(n=(r=t.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:o.muiName))!==-1}function cr(t){return t&&t.ownerDocument||document}function eo(t){return cr(t).defaultView||window}function a0(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let Nk=0;function yz(t){const[e,r]=$.useState(t),n=t||e;return $.useEffect(()=>{e==null&&(Nk+=1,r(`mui-${Nk}`))},[e]),n}const vz={...Ip},Pk=vz.useId;function Tf(t){if(Pk!==void 0){const e=Pk();return t??e}return yz(t)}function ru({controlled:t,default:e,name:r,state:n="value"}){const{current:o}=$.useRef(t!==void 0),[a,i]=$.useState(e),l=o?t:a,u=$.useCallback(f=>{o||i(f)},[]);return[l,u]}function Nr(t){const e=$.useRef(t);return yn(()=>{e.current=t}),$.useRef((...r)=>(0,e.current)(...r)).current}function ar(...t){return $.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{a0(r,e)})},t)}const Rk={};function ZD(t,e){const r=$.useRef(Rk);return r.current===Rk&&(r.current=t(e)),r}const bz=[];function wz(t){$.useEffect(t,bz)}class Of{constructor(){xe(this,"currentId",null);xe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});xe(this,"disposeEffect",()=>this.clear)}static create(){return new Of}start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}}function vs(){const t=ZD(Of.create).current;return wz(t.disposeEffect),t}function Ba(t){try{return t.matches(":focus-visible")}catch{}return!1}function QD(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}const xz={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function nt(t,e,r=void 0){const n={};for(const o in t){const a=t[o];let i="",l=!0;for(let u=0;un.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function Ak(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function tM(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=t;if(!e){const g=Ee(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),b={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},w={...r,...o,...n};return g.length>0&&(w.className=g),Object.keys(b).length>0&&(w.style=b),{props:w,internalRef:void 0}}const i=xs({...o,...n}),l=Ak(n),u=Ak(o),f=e(i),h=Ee(f==null?void 0:f.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),d={...f==null?void 0:f.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},_={...f,...r,...u,...l};return h.length>0&&(_.className=h),Object.keys(d).length>0&&(_.style=d),{props:_,internalRef:f.ref}}function rM(t,e,r){return typeof t=="function"?t(e,r):t}function Dr(t){var d;const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=t,i=o?{}:rM(r,n),{props:l,internalRef:u}=tM({...a,externalSlotProps:i}),f=ar(u,i==null?void 0:i.ref,(d=t.additionalProps)==null?void 0:d.ref);return eM(e,{...l,ref:f},n)}function Ws(t){var e;return parseInt($.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}const nM=$.createContext(null);function vb(){return $.useContext(nM)}const kz=typeof Symbol=="function"&&Symbol.for,Cz=kz?Symbol.for("mui.nested"):"__THEME_NESTED__";function $z(t,e){return typeof e=="function"?e(t):{...t,...e}}function Ez(t){const{children:e,theme:r}=t,n=vb(),o=$.useMemo(()=>{const a=n===null?{...r}:$z(n,r);return a!=null&&(a[Cz]=n!==null),a},[r,n]);return R.jsx(nM.Provider,{value:o,children:e})}const oM=$.createContext();function Tz({value:t,...e}){return R.jsx(oM.Provider,{value:t??!0,...e})}const Us=()=>$.useContext(oM)??!1,aM=$.createContext(void 0);function Oz({value:t,children:e}){return R.jsx(aM.Provider,{value:t,children:e})}function Dz(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const o=e.components[r];return o.defaultProps?tu(o.defaultProps,n):!o.styleOverrides&&!o.variants?tu(o,n):n}function Mz({props:t,name:e}){const r=$.useContext(aM);return Dz({props:t,name:e,theme:{components:r}})}const Ik={};function jk(t,e,r,n=!1){return $.useMemo(()=>{const o=t&&e[t]||e;if(typeof r=="function"){const a=r(o),i=t?{...e,[t]:a}:a;return n?()=>i:i}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function sM(t){const{children:e,theme:r,themeId:n}=t,o=_b(Ik),a=vb()||Ik,i=jk(n,o,r),l=jk(n,a,r,!0),u=(n?i[n]:i).direction==="rtl";return R.jsx(Ez,{theme:l,children:R.jsx(wu.Provider,{value:i,children:R.jsx(Tz,{value:u,children:R.jsx(Oz,{value:n?i[n].components:i.components,children:e})})})})}const Lk={theme:void 0};function Nz(t){let e,r;return function(o){let a=e;return(a===void 0||o.theme!==r)&&(Lk.theme=o.theme,a=VD(t(Lk)),e=a,r=o.theme),a}}const bb="mode",wb="color-scheme",Pz="data-color-scheme";function Rz(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=bb,colorSchemeStorageKey:a=wb,attribute:i=Pz,colorSchemeNode:l="document.documentElement",nonce:u}=t;let f="",h=i;if(i==="class"&&(h=".%s"),i==="data"&&(h="[data-%s]"),h.startsWith(".")){const _=h.substring(1);f+=`${l}.classList.remove('${_}'.replace('%s', light), '${_}'.replace('%s', dark)); + */function LD(t,e){return t0(t,e)}function Z3(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const Ek=[];function Tk(t){return Ek[0]=t,bu(Ek)}function vo(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function FD(t){if($.isValidElement(t)||!vo(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=FD(t[r])}),e}function kr(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return vo(t)&&vo(e)&&Object.keys(e).forEach(o=>{$.isValidElement(e[o])?n[o]=e[o]:vo(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&vo(t[o])?n[o]=kr(t[o],e[o],r):r.clone?n[o]=vo(e[o])?FD(e[o]):e[o]:n[o]=e[o]}),n}const Q3=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function eL(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=t,a=Q3(e),i=Object.keys(a);function l(_){return`@media (min-width:${typeof e[_]=="number"?e[_]:_}${r})`}function u(_){return`@media (max-width:${(typeof e[_]=="number"?e[_]:_)-n/100}${r})`}function f(_,g){const b=i.indexOf(g);return`@media (min-width:${typeof e[_]=="number"?e[_]:_}${r}) and (max-width:${(b!==-1&&typeof e[i[b]]=="number"?e[i[b]]:g)-n/100}${r})`}function h(_){return i.indexOf(_)+1n.startsWith("@container")).sort((n,o)=>{var i,l;const a=/min-width:\s*([0-9.]+)/;return+(((i=n.match(a))==null?void 0:i[1])||0)-+(((l=o.match(a))==null?void 0:l[1])||0)});return r.length?r.reduce((n,o)=>{const a=e[o];return delete n[o],n[o]=a,n},{...e}):e}function rL(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function nL(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return t.containerQueries(o).up(a)}function oL(t){const e=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function r(a,i){a.up=(...l)=>e(t.breakpoints.up(...l),i),a.down=(...l)=>e(t.breakpoints.down(...l),i),a.between=(...l)=>e(t.breakpoints.between(...l),i),a.only=(...l)=>e(t.breakpoints.only(...l),i),a.not=(...l)=>{const u=e(t.breakpoints.not(...l),i);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},o=a=>(r(n,a),n);return r(o),{...t,containerQueries:o}}const aL={borderRadius:4};function ql(t,e){return e?kr(t,e,{clone:!1}):t}const gf={xs:0,sm:600,md:900,lg:1200,xl:1536},Ok={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${gf[t]}px)`},sL={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:gf[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function Qn(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const a=n.breakpoints||Ok;return e.reduce((i,l,u)=>(i[a.up(a.keys[u])]=r(e[u]),i),{})}if(typeof e=="object"){const a=n.breakpoints||Ok;return Object.keys(e).reduce((i,l)=>{if(rL(a.keys,l)){const u=nL(n.containerQueries?n:sL,l);u&&(i[u]=r(e[l],l))}else if(Object.keys(a.values||gf).includes(l)){const u=a.up(l);i[u]=r(e[l],l)}else{const u=l;i[u]=e[u]}return i},{})}return r(e)}function zD(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((n,o)=>{const a=t.up(o);return n[a]={},n},{}))||{}}function BD(t,e){return t.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},e)}function iL(t,...e){const r=zD(t),n=[r,...e].reduce((o,a)=>kr(o,a),{});return BD(Object.keys(r),n)}function cL(t,e){if(typeof t!="object")return{};const r={},n=Object.keys(e);return Array.isArray(t)?n.forEach((o,a)=>{a{t[o]!=null&&(r[o]=!0)}),r}function e_({values:t,breakpoints:e,base:r}){const n=r||cL(t,e),o=Object.keys(n);if(o.length===0)return t;let a;return o.reduce((i,l,u)=>(Array.isArray(t)?(i[l]=t[u]!=null?t[u]:t[a],a=u):typeof t=="object"?(i[l]=t[l]!=null?t[l]:t[a],a=l):i[l]=t,i),{})}function he(t){if(typeof t!="string")throw new Error(Zo(7));return t.charAt(0).toUpperCase()+t.slice(1)}function vc(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,t);if(n!=null)return n}return e.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,t)}function Fp(t,e,r,n=r){let o;return typeof t=="function"?o=t(r):Array.isArray(t)?o=t[r]||n:o=vc(t,r)||n,e&&(o=e(o,n,t)),o}function lr(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:o}=t,a=i=>{if(i[e]==null)return null;const l=i[e],u=i.theme,f=vc(u,n)||{};return Qn(i,l,d=>{let _=Fp(f,o,d);return d===_&&typeof d=="string"&&(_=Fp(f,o,`${e}${d==="default"?"":he(d)}`,d)),r===!1?_:{[r]:_}})};return a.propTypes={},a.filterProps=[e],a}function lL(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const uL={m:"margin",p:"padding"},dL={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Dk={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pL=lL(t=>{if(t.length>2)if(Dk[t])t=Dk[t];else return[t];const[e,r]=t.split(""),n=uL[e],o=dL[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),fb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...fb,...hb];function xu(t,e,r,n){const o=vc(t,e,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),l=o[i];return a>=0?l:typeof l=="number"?-l:`-${l}`}:typeof o=="function"?o:()=>{}}function yf(t){return xu(t,"spacing",8)}function Ns(t,e){return typeof e=="string"||e==null?e:t(e)}function fL(t,e){return r=>t.reduce((n,o)=>(n[o]=Ns(e,r),n),{})}function hL(t,e,r,n){if(!e.includes(r))return null;const o=pL(r),a=fL(o,n),i=t[r];return Qn(t,i,a)}function WD(t,e){const r=yf(t.theme);return Object.keys(t).map(n=>hL(t,e,n,r)).reduce(ql,{})}function tr(t){return WD(t,fb)}tr.propTypes={};tr.filterProps=fb;function rr(t){return WD(t,hb)}rr.propTypes={};rr.filterProps=hb;function UD(t=8,e=yf({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=e(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function vf(...t){const e=t.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>e[a]?ql(o,e[a](n)):o,{});return r.propTypes={},r.filterProps=t.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Nn(t){return typeof t!="number"?t:`${t}px solid`}function zn(t,e){return lr({prop:t,themeKey:"borders",transform:e})}const mL=zn("border",Nn),_L=zn("borderTop",Nn),gL=zn("borderRight",Nn),yL=zn("borderBottom",Nn),vL=zn("borderLeft",Nn),bL=zn("borderColor"),wL=zn("borderTopColor"),xL=zn("borderRightColor"),SL=zn("borderBottomColor"),kL=zn("borderLeftColor"),CL=zn("outline",Nn),$L=zn("outlineColor"),bf=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=xu(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ns(e,n)});return Qn(t,t.borderRadius,r)}return null};bf.propTypes={};bf.filterProps=["borderRadius"];vf(mL,_L,gL,yL,vL,bL,wL,xL,SL,kL,bf,CL,$L);const wf=t=>{if(t.gap!==void 0&&t.gap!==null){const e=xu(t.theme,"spacing",8),r=n=>({gap:Ns(e,n)});return Qn(t,t.gap,r)}return null};wf.propTypes={};wf.filterProps=["gap"];const xf=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=xu(t.theme,"spacing",8),r=n=>({columnGap:Ns(e,n)});return Qn(t,t.columnGap,r)}return null};xf.propTypes={};xf.filterProps=["columnGap"];const Sf=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=xu(t.theme,"spacing",8),r=n=>({rowGap:Ns(e,n)});return Qn(t,t.rowGap,r)}return null};Sf.propTypes={};Sf.filterProps=["rowGap"];const EL=lr({prop:"gridColumn"}),TL=lr({prop:"gridRow"}),OL=lr({prop:"gridAutoFlow"}),DL=lr({prop:"gridAutoColumns"}),ML=lr({prop:"gridAutoRows"}),NL=lr({prop:"gridTemplateColumns"}),PL=lr({prop:"gridTemplateRows"}),RL=lr({prop:"gridTemplateAreas"}),AL=lr({prop:"gridArea"});vf(wf,xf,Sf,EL,TL,OL,DL,ML,NL,PL,RL,AL);function uc(t,e){return e==="grey"?e:t}const IL=lr({prop:"color",themeKey:"palette",transform:uc}),jL=lr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:uc}),LL=lr({prop:"backgroundColor",themeKey:"palette",transform:uc});vf(IL,jL,LL);function mn(t){return t<=1&&t!==0?`${t*100}%`:t}const FL=lr({prop:"width",transform:mn}),mb=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{var o,a,i,l,u;const n=((i=(a=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[r])||gf[r];return n?((u=(l=t.theme)==null?void 0:l.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:mn(r)}};return Qn(t,t.maxWidth,e)}return null};mb.filterProps=["maxWidth"];const zL=lr({prop:"minWidth",transform:mn}),BL=lr({prop:"height",transform:mn}),WL=lr({prop:"maxHeight",transform:mn}),UL=lr({prop:"minHeight",transform:mn});lr({prop:"size",cssProperty:"width",transform:mn});lr({prop:"size",cssProperty:"height",transform:mn});const HL=lr({prop:"boxSizing"});vf(FL,mb,zL,BL,WL,UL,HL);const Su={border:{themeKey:"borders",transform:Nn},borderTop:{themeKey:"borders",transform:Nn},borderRight:{themeKey:"borders",transform:Nn},borderBottom:{themeKey:"borders",transform:Nn},borderLeft:{themeKey:"borders",transform:Nn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Nn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bf},color:{themeKey:"palette",transform:uc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:uc},backgroundColor:{themeKey:"palette",transform:uc},p:{style:rr},pt:{style:rr},pr:{style:rr},pb:{style:rr},pl:{style:rr},px:{style:rr},py:{style:rr},padding:{style:rr},paddingTop:{style:rr},paddingRight:{style:rr},paddingBottom:{style:rr},paddingLeft:{style:rr},paddingX:{style:rr},paddingY:{style:rr},paddingInline:{style:rr},paddingInlineStart:{style:rr},paddingInlineEnd:{style:rr},paddingBlock:{style:rr},paddingBlockStart:{style:rr},paddingBlockEnd:{style:rr},m:{style:tr},mt:{style:tr},mr:{style:tr},mb:{style:tr},ml:{style:tr},mx:{style:tr},my:{style:tr},margin:{style:tr},marginTop:{style:tr},marginRight:{style:tr},marginBottom:{style:tr},marginLeft:{style:tr},marginX:{style:tr},marginY:{style:tr},marginInline:{style:tr},marginInlineStart:{style:tr},marginInlineEnd:{style:tr},marginBlock:{style:tr},marginBlockStart:{style:tr},marginBlockEnd:{style:tr},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:wf},rowGap:{style:Sf},columnGap:{style:xf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mn},maxWidth:{style:mb},minWidth:{transform:mn},height:{transform:mn},maxHeight:{transform:mn},minHeight:{transform:mn},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 qL(...t){const e=t.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function VL(t,e){return typeof t=="function"?t(e):t}function XL(){function t(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:f,transform:h,style:d}=l;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const _=vc(o,f)||{};return d?d(i):Qn(i,n,b=>{let w=Fp(_,h,b);return b===w&&typeof b=="string"&&(w=Fp(_,h,`${r}${b==="default"?"":he(b)}`,b)),u===!1?w:{[u]:w}})}function e(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const a=o.unstable_sxConfig??Su;function i(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const f=zD(o.breakpoints),h=Object.keys(f);let d=f;return Object.keys(u).forEach(_=>{const g=VL(u[_],o);if(g!=null)if(typeof g=="object")if(a[_])d=ql(d,t(_,g,o,a));else{const b=Qn({theme:o},g,w=>({[_]:w}));qL(b,g)?d[_]=e({sx:g,theme:o}):d=ql(d,b)}else d=ql(d,t(_,g,o,a))}),tL(o,BD(h,d))}return Array.isArray(n)?n.map(i):i(n)}return e}const Fa=XL();Fa.filterProps=["sx"];function GL(t,e){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[t])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(t);return o==="&"?e:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:e})}return r.palette.mode===t?e:{}}function kf(t={},...e){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...i}=t,l=eL(r),u=UD(o);let f=kr({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...aL,...a}},i);return f=oL(f),f.applyStyles=GL,f=e.reduce((h,d)=>kr(h,d),f),f.unstable_sxConfig={...Su,...i==null?void 0:i.unstable_sxConfig},f.unstable_sx=function(d){return Fa({sx:d,theme:this})},f}function JL(t){return Object.keys(t).length===0}function _b(t=null){const e=$.useContext(wu);return!e||JL(e)?t:e}const YL=kf();function Cf(t=YL){return _b(t)}function KL({styles:t,themeId:e,defaultTheme:r={}}){const n=Cf(r),o=typeof t=="function"?t(e&&n[e]||n):t;return R.jsx(jD,{styles:o})}const ZL=t=>{var n;const e={systemProps:{},otherProps:{}},r=((n=t==null?void 0:t.theme)==null?void 0:n.unstable_sxConfig)??Su;return Object.keys(t).forEach(o=>{r[o]?e.systemProps[o]=t[o]:e.otherProps[o]=t[o]}),e};function gb(t){const{sx:e,...r}=t,{systemProps:n,otherProps:o}=ZL(r);let a;return Array.isArray(e)?a=[n,...e]:typeof e=="function"?a=(...i)=>{const l=e(...i);return vo(l)?{...n,...l}:n}:a={...n,...e},{...o,sx:a}}const Mk=t=>t,QL=()=>{let t=Mk;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Mk}}},HD=QL();function qD(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;el!=="theme"&&l!=="sx"&&l!=="as"})(Fa);return $.forwardRef(function(u,f){const h=Cf(r),{className:d,component:_="div",...g}=gb(u);return R.jsx(a,{as:_,ref:f,className:Ee(d,o?o(n):n),theme:e&&h[e]||h,...g})})}const tF={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 tt(t,e,r="Mui"){const n=tF[e];return n?`${r}-${n}`:`${HD.generate(t)}-${e}`}function Ze(t,e,r="Mui"){const n={};return e.forEach(o=>{n[o]=tt(t,o,r)}),n}function VD(t){const{variants:e,...r}=t,n={variants:e,style:Tk(r),isProcessed:!0};return n.style===r||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=Tk(o.style))}),n}const rF=kf();function t_(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function nF(t){return t?(e,r)=>r[t]:null}function oF(t,e,r){t.theme=sF(t.theme)?r:t.theme[e]||t.theme}function $p(t,e){const r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(n=>$p(t,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:o,...a}=r;n=a}return XD(t,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function XD(t,e,r=[]){var o;let n;e:for(let a=0;a{Z3(l,M=>M.filter(T=>T!==Fa));const{name:f,slot:h,skipVariantsResolver:d,skipSx:_,overridesResolver:g=nF(cF(h)),...b}=u,w=d!==void 0?d:h&&h!=="Root"&&h!=="root"||!1,S=_||!1;let k=t_;h==="Root"||h==="root"?k=n:h?k=o:iF(l)&&(k=void 0);const D=LD(l,{shouldForwardProp:k,label:aF(),...b}),C=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function(P){return $p(P,M)};if(vo(M)){const T=VD(M);return T.variants?function(j){return $p(j,T)}:T.style}return M},O=(...M)=>{const T=[],P=M.map(C),j=[];if(T.push(a),f&&g&&j.push(function(G){var K,ee;const z=(ee=(K=G.theme.components)==null?void 0:K[f])==null?void 0:ee.styleOverrides;if(!z)return null;const H={};for(const Y in z)H[Y]=$p(G,z[Y]);return g(G,H)}),f&&!w&&j.push(function(G){var H,K;const B=G.theme,z=(K=(H=B==null?void 0:B.components)==null?void 0:H[f])==null?void 0:K.variants;return z?XD(G,z):null}),S||j.push(Fa),Array.isArray(P[0])){const L=P.shift(),G=new Array(T.length).fill(""),B=new Array(j.length).fill("");let z;z=[...G,...L,...B],z.raw=[...G,...L.raw,...B],T.unshift(z)}const F=[...T,...P,...j],E=D(...F);return l.muiName&&(E.muiName=l.muiName),E};return D.withConfig&&(O.withConfig=D.withConfig),O}}function aF(t,e){return void 0}function sF(t){for(const e in t)return!1;return!0}function iF(t){return typeof t=="string"&&t.charCodeAt(0)>96}function cF(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const lF=GD();function tu(t,e){const r={...e};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const o=n;if(o==="components"||o==="slots")r[o]={...t[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=t[o],i=e[o];if(!i)r[o]=a||{};else if(!a)r[o]=i;else{r[o]={...i};for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const u=l;r[o][u]=tu(a[u],i[u])}}}else r[o]===void 0&&(r[o]=t[o])}return r}function JD(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:tu(e.components[r].defaultProps,n)}function uF({props:t,name:e,defaultTheme:r,themeId:n}){let o=Cf(r);return n&&(o=o[n]||o),JD({theme:o,name:e,props:t})}const yn=typeof window<"u"?$.useLayoutEffect:$.useEffect;function dF(t,e,r,n,o){const[a,i]=$.useState(()=>o&&r?r(t).matches:n?n(t).matches:e);return yn(()=>{if(!r)return;const l=r(t),u=()=>{i(l.matches)};return u(),l.addEventListener("change",u),()=>{l.removeEventListener("change",u)}},[t,r]),a}const pF={...Ip},YD=pF.useSyncExternalStore;function fF(t,e,r,n,o){const a=$.useCallback(()=>e,[e]),i=$.useMemo(()=>{if(o&&r)return()=>r(t).matches;if(n!==null){const{matches:h}=n(t);return()=>h}return a},[a,t,n,o,r]),[l,u]=$.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const h=r(t);return[()=>h.matches,d=>(h.addEventListener("change",d),()=>{h.removeEventListener("change",d)})]},[a,r,t]);return YD(u,l,i)}function hF(t={}){const{themeId:e}=t;return function(n,o={}){let a=_b();a&&e&&(a=a[e]||a);const i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:u=i?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:h=!1}=JD({name:"MuiUseMediaQuery",props:o,theme:a});let d=typeof n=="function"?n(a):n;return d=d.replace(/^@media( ?)/m,""),(YD!==void 0?fF:dF)(d,l,u,f,h)}}function Li(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function yb(t,e=0,r=1){return Li(t,e,r)}function mF(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function za(t){if(t.type)return t;if(t.charAt(0)==="#")return za(mF(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Zo(9,t));let n=t.substring(e+1,t.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Zo(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const _F=t=>{const e=za(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Al=(t,e)=>{try{return _F(t)}catch{return t}};function $f(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function KD(t){t=za(t);const{values:e}=t,r=e[0],n=e[1]/100,o=e[2]/100,a=n*Math.min(o,1-o),i=(f,h=(f+r/30)%12)=>o-a*Math.max(Math.min(h-3,9-h,1),-1);let l="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return t.type==="hsla"&&(l+="a",u.push(e[3])),$f({type:l,values:u})}function n0(t){t=za(t);let e=t.type==="hsl"||t.type==="hsla"?za(KD(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function gF(t,e){const r=n0(t),n=n0(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Nt(t,e){return t=za(t),e=yb(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,$f(t)}function Gd(t,e,r){try{return Nt(t,e)}catch{return t}}function bc(t,e){if(t=za(t),e=yb(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return $f(t)}function Pt(t,e,r){try{return bc(t,e)}catch{return t}}function wc(t,e){if(t=za(t),e=yb(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return $f(t)}function Rt(t,e,r){try{return wc(t,e)}catch{return t}}function zp(t,e=.15){return n0(t)>.5?bc(t,e):wc(t,e)}function Jd(t,e,r){try{return zp(t,e)}catch{return t}}function o0(...t){return t.reduce((e,r)=>r==null?e:function(...o){e.apply(this,o),r.apply(this,o)},()=>{})}function Ef(t,e=166){let r;function n(...o){const a=()=>{t.apply(this,o)};clearTimeout(r),r=setTimeout(a,e)}return n.clear=()=>{clearTimeout(r)},n}function r_(t,e){var r,n,o;return $.isValidElement(t)&&e.indexOf(t.type.muiName??((o=(n=(r=t.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:o.muiName))!==-1}function cr(t){return t&&t.ownerDocument||document}function eo(t){return cr(t).defaultView||window}function a0(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let Nk=0;function yF(t){const[e,r]=$.useState(t),n=t||e;return $.useEffect(()=>{e==null&&(Nk+=1,r(`mui-${Nk}`))},[e]),n}const vF={...Ip},Pk=vF.useId;function Tf(t){if(Pk!==void 0){const e=Pk();return t??e}return yF(t)}function ru({controlled:t,default:e,name:r,state:n="value"}){const{current:o}=$.useRef(t!==void 0),[a,i]=$.useState(e),l=o?t:a,u=$.useCallback(f=>{o||i(f)},[]);return[l,u]}function Nr(t){const e=$.useRef(t);return yn(()=>{e.current=t}),$.useRef((...r)=>(0,e.current)(...r)).current}function ar(...t){return $.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{a0(r,e)})},t)}const Rk={};function ZD(t,e){const r=$.useRef(Rk);return r.current===Rk&&(r.current=t(e)),r}const bF=[];function wF(t){$.useEffect(t,bF)}class Of{constructor(){we(this,"currentId",null);we(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});we(this,"disposeEffect",()=>this.clear)}static create(){return new Of}start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}}function vs(){const t=ZD(Of.create).current;return wF(t.disposeEffect),t}function Ba(t){try{return t.matches(":focus-visible")}catch{}return!1}function QD(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}const xF={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function nt(t,e,r=void 0){const n={};for(const o in t){const a=t[o];let i="",l=!0;for(let u=0;un.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function Ak(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function tM(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=t;if(!e){const g=Ee(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),b={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},w={...r,...o,...n};return g.length>0&&(w.className=g),Object.keys(b).length>0&&(w.style=b),{props:w,internalRef:void 0}}const i=xs({...o,...n}),l=Ak(n),u=Ak(o),f=e(i),h=Ee(f==null?void 0:f.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),d={...f==null?void 0:f.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},_={...f,...r,...u,...l};return h.length>0&&(_.className=h),Object.keys(d).length>0&&(_.style=d),{props:_,internalRef:f.ref}}function rM(t,e,r){return typeof t=="function"?t(e,r):t}function Dr(t){var d;const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=t,i=o?{}:rM(r,n),{props:l,internalRef:u}=tM({...a,externalSlotProps:i}),f=ar(u,i==null?void 0:i.ref,(d=t.additionalProps)==null?void 0:d.ref);return eM(e,{...l,ref:f},n)}function Ws(t){var e;return parseInt($.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}const nM=$.createContext(null);function vb(){return $.useContext(nM)}const kF=typeof Symbol=="function"&&Symbol.for,CF=kF?Symbol.for("mui.nested"):"__THEME_NESTED__";function $F(t,e){return typeof e=="function"?e(t):{...t,...e}}function EF(t){const{children:e,theme:r}=t,n=vb(),o=$.useMemo(()=>{const a=n===null?{...r}:$F(n,r);return a!=null&&(a[CF]=n!==null),a},[r,n]);return R.jsx(nM.Provider,{value:o,children:e})}const oM=$.createContext();function TF({value:t,...e}){return R.jsx(oM.Provider,{value:t??!0,...e})}const Us=()=>$.useContext(oM)??!1,aM=$.createContext(void 0);function OF({value:t,children:e}){return R.jsx(aM.Provider,{value:t,children:e})}function DF(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const o=e.components[r];return o.defaultProps?tu(o.defaultProps,n):!o.styleOverrides&&!o.variants?tu(o,n):n}function MF({props:t,name:e}){const r=$.useContext(aM);return DF({props:t,name:e,theme:{components:r}})}const Ik={};function jk(t,e,r,n=!1){return $.useMemo(()=>{const o=t&&e[t]||e;if(typeof r=="function"){const a=r(o),i=t?{...e,[t]:a}:a;return n?()=>i:i}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function sM(t){const{children:e,theme:r,themeId:n}=t,o=_b(Ik),a=vb()||Ik,i=jk(n,o,r),l=jk(n,a,r,!0),u=(n?i[n]:i).direction==="rtl";return R.jsx(EF,{theme:l,children:R.jsx(wu.Provider,{value:i,children:R.jsx(TF,{value:u,children:R.jsx(OF,{value:n?i[n].components:i.components,children:e})})})})}const Lk={theme:void 0};function NF(t){let e,r;return function(o){let a=e;return(a===void 0||o.theme!==r)&&(Lk.theme=o.theme,a=VD(t(Lk)),e=a,r=o.theme),a}}const bb="mode",wb="color-scheme",PF="data-color-scheme";function RF(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=bb,colorSchemeStorageKey:a=wb,attribute:i=PF,colorSchemeNode:l="document.documentElement",nonce:u}=t;let f="",h=i;if(i==="class"&&(h=".%s"),i==="data"&&(h="[data-%s]"),h.startsWith(".")){const _=h.substring(1);f+=`${l}.classList.remove('${_}'.replace('%s', light), '${_}'.replace('%s', dark)); ${l}.classList.add('${_}'.replace('%s', colorScheme));`}const d=h.match(/\[([^\]]+)\]/);if(d){const[_,g]=d[1].split("=");g||(f+=`${l}.removeAttribute('${_}'.replace('%s', light)); ${l}.removeAttribute('${_}'.replace('%s', dark));`),f+=` ${l}.setAttribute('${_}'.replace('%s', colorScheme), ${g?`${g}.replace('%s', colorScheme)`:'""'});`}else f+=`${l}.setAttribute('${h}', colorScheme);`;return R.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() { @@ -92,14 +92,14 @@ try { if (colorScheme) { ${f} } -} catch(e){}})();`}},"mui-color-scheme-init")}function zk(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function iM(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function Az(t){return iM(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function n_(t,e){if(typeof window>"u")return;let r;try{r=localStorage.getItem(t)||void 0,r||localStorage.setItem(t,e)}catch{}return r||e}function Iz(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:a=bb,colorSchemeStorageKey:i=wb,storageWindow:l=typeof window>"u"?void 0:window,noSsr:u=!1}=t,f=o.join(","),h=o.length>1,[d,_]=$.useState(()=>{const O=n_(a,e),M=n_(`${i}-light`,r),T=n_(`${i}-dark`,n);return{mode:O,systemMode:zk(O),lightColorScheme:M,darkColorScheme:T}}),[g,b]=$.useState(u||!h);$.useEffect(()=>{b(!0)},[]);const w=Az(d),S=$.useCallback(O=>{_(M=>{if(O===M.mode)return M;const T=O??e;try{localStorage.setItem(a,T)}catch{}return{...M,mode:T,systemMode:zk(T)}})},[a,e]),k=$.useCallback(O=>{O?typeof O=="string"?O&&!f.includes(O)?console.error(`\`${O}\` does not exist in \`theme.colorSchemes\`.`):_(M=>{const T={...M};return iM(M,P=>{try{localStorage.setItem(`${i}-${P}`,O)}catch{}P==="light"&&(T.lightColorScheme=O),P==="dark"&&(T.darkColorScheme=O)}),T}):_(M=>{const T={...M},P=O.light===null?r:O.light,j=O.dark===null?n:O.dark;if(P)if(!f.includes(P))console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`);else{T.lightColorScheme=P;try{localStorage.setItem(`${i}-light`,P)}catch{}}if(j)if(!f.includes(j))console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`);else{T.darkColorScheme=j;try{localStorage.setItem(`${i}-dark`,j)}catch{}}return T}):_(M=>{try{localStorage.setItem(`${i}-light`,r),localStorage.setItem(`${i}-dark`,n)}catch{}return{...M,lightColorScheme:r,darkColorScheme:n}})},[f,i,r,n]),D=$.useCallback(O=>{d.mode==="system"&&_(M=>{const T=O!=null&&O.matches?"dark":"light";return M.systemMode===T?M:{...M,systemMode:T}})},[d.mode]),C=$.useRef(D);return C.current=D,$.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const O=(...T)=>C.current(...T),M=window.matchMedia("(prefers-color-scheme: dark)");return M.addListener(O),O(M),()=>{M.removeListener(O)}},[h]),$.useEffect(()=>{if(l&&h){const O=M=>{const T=M.newValue;typeof M.key=="string"&&M.key.startsWith(i)&&(!T||f.match(T))&&(M.key.endsWith("light")&&k({light:T}),M.key.endsWith("dark")&&k({dark:T})),M.key===a&&(!T||["light","dark","system"].includes(T))&&S(T||e)};return l.addEventListener("storage",O),()=>{l.removeEventListener("storage",O)}}},[k,S,a,i,f,e,l,h]),{...d,mode:g?d.mode:void 0,systemMode:g?d.systemMode:void 0,colorScheme:g?w:void 0,setMode:S,setColorScheme:k}}const jz="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Lz(t){const{themeId:e,theme:r={},modeStorageKey:n=bb,colorSchemeStorageKey:o=wb,disableTransitionOnChange:a=!1,defaultColorScheme:i,resolveTheme:l}=t,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=$.createContext(void 0),h=()=>$.useContext(f)||u,d={},_={};function g(k){var ut,q,ne,ye;const{children:D,theme:C,modeStorageKey:O=n,colorSchemeStorageKey:M=o,disableTransitionOnChange:T=a,storageWindow:P=typeof window>"u"?void 0:window,documentNode:j=typeof document>"u"?void 0:document,colorSchemeNode:z=typeof document>"u"?void 0:document.documentElement,disableNestedContext:E=!1,disableStyleSheetGeneration:L=!1,defaultMode:G="system",noSsr:B}=k,F=$.useRef(!1),H=vb(),K=$.useContext(f),ee=!!K&&!E,Y=$.useMemo(()=>C||(typeof r=="function"?r():r),[C]),X=Y[e],re=X||Y,{colorSchemes:I=d,components:Q=_,cssVarPrefix:me}=re,pe=Object.keys(I).filter(we=>!!I[we]).join(","),ge=$.useMemo(()=>pe.split(","),[pe]),Ce=typeof i=="string"?i:i.light,Re=typeof i=="string"?i:i.dark,Te=I[Ce]&&I[Re]?G:((q=(ut=I[re.defaultColorScheme])==null?void 0:ut.palette)==null?void 0:q.mode)||((ne=re.palette)==null?void 0:ne.mode),{mode:Pe,setMode:Oe,systemMode:Fe,lightColorScheme:Me,darkColorScheme:Be,colorScheme:We,setColorScheme:De}=Iz({supportedColorSchemes:ge,defaultLightColorScheme:Ce,defaultDarkColorScheme:Re,modeStorageKey:O,colorSchemeStorageKey:M,defaultMode:Te,storageWindow:P,noSsr:B});let pt=Pe,ce=We;ee&&(pt=K.mode,ce=K.colorScheme);const qe=$.useMemo(()=>{var Ve;const we=ce||re.defaultColorScheme,ke=((Ve=re.generateThemeVars)==null?void 0:Ve.call(re))||re.vars,ve={...re,components:Q,colorSchemes:I,cssVarPrefix:me,vars:ke};if(typeof ve.generateSpacing=="function"&&(ve.spacing=ve.generateSpacing()),we){const $e=I[we];$e&&typeof $e=="object"&&Object.keys($e).forEach(Ye=>{$e[Ye]&&typeof $e[Ye]=="object"?ve[Ye]={...ve[Ye],...$e[Ye]}:ve[Ye]=$e[Ye]})}return l?l(ve):ve},[re,ce,Q,I,me]),st=re.colorSchemeSelector;$.useEffect(()=>{if(ce&&z&&st&&st!=="media"){const we=st;let ke=st;if(we==="class"&&(ke=".%s"),we==="data"&&(ke="[data-%s]"),we!=null&&we.startsWith("data-")&&!we.includes("%s")&&(ke=`[${we}="%s"]`),ke.startsWith("."))z.classList.remove(...ge.map(ve=>ke.substring(1).replace("%s",ve))),z.classList.add(ke.substring(1).replace("%s",ce));else{const ve=ke.replace("%s",ce).match(/\[([^\]]+)\]/);if(ve){const[Ve,$e]=ve[1].split("=");$e||ge.forEach(Ye=>{z.removeAttribute(Ve.replace(ce,Ye))}),z.setAttribute(Ve,$e?$e.replace(/"|'/g,""):"")}else z.setAttribute(ke,ce)}}},[ce,st,z,ge]),$.useEffect(()=>{let we;if(T&&F.current&&j){const ke=j.createElement("style");ke.appendChild(j.createTextNode(jz)),j.head.appendChild(ke),window.getComputedStyle(j.body),we=setTimeout(()=>{j.head.removeChild(ke)},1)}return()=>{clearTimeout(we)}},[ce,T,j]),$.useEffect(()=>(F.current=!0,()=>{F.current=!1}),[]);const rt=$.useMemo(()=>({allColorSchemes:ge,colorScheme:ce,darkColorScheme:Be,lightColorScheme:Me,mode:pt,setColorScheme:De,setMode:Oe,systemMode:Fe}),[ge,ce,Be,Me,pt,De,Oe,Fe,qe.colorSchemeSelector]);let Je=!0;(L||re.cssVariables===!1||ee&&(H==null?void 0:H.cssVarPrefix)===me)&&(Je=!1);const Se=R.jsxs($.Fragment,{children:[R.jsx(sM,{themeId:X?e:void 0,theme:qe,children:D}),Je&&R.jsx(jD,{styles:((ye=qe.generateStyleSheets)==null?void 0:ye.call(qe))||[]})]});return ee?Se:R.jsx(f.Provider,{value:rt,children:Se})}const b=typeof i=="string"?i:i.light,w=typeof i=="string"?i:i.dark;return{CssVarsProvider:g,useColorScheme:h,getInitColorSchemeScript:k=>Rz({colorSchemeStorageKey:o,defaultLightColorScheme:b,defaultDarkColorScheme:w,modeStorageKey:n,...k})}}function zz(t=""){function e(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${t?`${t}-`:""}${n}${e(...o)})`}const Fk=(t,e,r,n=[])=>{let o=t;e.forEach((a,i)=>{i===e.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},Fz=(t,e,r)=>{function n(o,a=[],i=[]){Object.entries(o).forEach(([l,u])=>{(!r||!r([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...a,l],Array.isArray(u)?[...i,l]:i):e([...a,l],u,i))})}n(t)},Bz=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function o_(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},o={},a={},i={};return Fz(t,(l,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(l,u))){const h=`--${r?`${r}-`:""}${l.join("-")}`,d=Bz(l,u);Object.assign(o,{[h]:d}),Fk(a,l,`var(${h})`,f),Fk(i,l,`var(${h}, ${d})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function Wz(t,e={}){const{getSelector:r=S,disableCssColorScheme:n,colorSchemeSelector:o}=e,{colorSchemes:a={},components:i,defaultColorScheme:l="light",...u}=t,{vars:f,css:h,varsWithDefaults:d}=o_(u,e);let _=d;const g={},{[l]:b,...w}=a;if(Object.entries(w||{}).forEach(([C,O])=>{const{vars:M,css:T,varsWithDefaults:P}=o_(O,e);_=kr(_,P),g[C]={css:T,vars:M}}),b){const{css:C,vars:O,varsWithDefaults:M}=o_(b,e);_=kr(_,M),g[l]={css:C,vars:O}}function S(C,O){var T,P;let M=o;if(o==="class"&&(M=".%s"),o==="data"&&(M="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(M=`[${o}="%s"]`),C){if(M==="media")return t.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((P=(T=a[C])==null?void 0:T.palette)==null?void 0:P.mode)||C})`]:{":root":O}};if(M)return t.defaultColorScheme===C?`:root, ${M.replace("%s",String(C))}`:M.replace("%s",String(C))}return":root"}return{vars:_,generateThemeVars:()=>{let C={...f};return Object.entries(g).forEach(([,{vars:O}])=>{C=kr(C,O)}),C},generateStyleSheets:()=>{var j,z;const C=[],O=t.defaultColorScheme||"light";function M(E,L){Object.keys(L).length&&C.push(typeof E=="string"?{[E]:{...L}}:E)}M(r(void 0,{...h}),h);const{[O]:T,...P}=g;if(T){const{css:E}=T,L=(z=(j=a[O])==null?void 0:j.palette)==null?void 0:z.mode,G=!n&&L?{colorScheme:L,...E}:{...E};M(r(O,{...G}),G)}return Object.entries(P).forEach(([E,{css:L}])=>{var F,H;const G=(H=(F=a[E])==null?void 0:F.palette)==null?void 0:H.mode,B=!n&&G?{colorScheme:G,...L}:{...L};M(r(E,{...B}),B)}),C}}}function Uz(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}const Hz=kf(),qz=lz("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function Vz(t){return uz({props:t,name:"MuiStack",defaultTheme:Hz})}function Xz(t,e){const r=$.Children.toArray(t).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],Jz=({ownerState:t,theme:e})=>{let r={display:"flex",flexDirection:"column",...Qn({theme:e},e_({values:t.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n}))};if(t.spacing){const n=yf(e),o=Object.keys(e.breakpoints.values).reduce((u,f)=>((typeof t.spacing=="object"&&t.spacing[f]!=null||typeof t.direction=="object"&&t.direction[f]!=null)&&(u[f]=!0),u),{}),a=e_({values:t.direction,base:o}),i=e_({values:t.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,f,h)=>{if(!a[u]){const _=f>0?a[h[f-1]]:"column";a[u]=_}}),r=kr(r,Qn({theme:e},i,(u,f)=>t.useFlexGap?{gap:Ns(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Gz(f?a[f]:t.direction)}`]:Ns(n,u)}}))}return r=iL(e.breakpoints,r),r};function Yz(t={}){const{createStyledComponent:e=qz,useThemeProps:r=Vz,componentName:n="MuiStack"}=t,o=()=>nt({root:["root"]},u=>tt(n,u),{}),a=e(Jz);return $.forwardRef(function(u,f){const h=r(u),d=gb(h),{component:_="div",direction:g="column",spacing:b=0,divider:w,children:S,className:k,useFlexGap:D=!1,...C}=d,O={direction:g,spacing:b,useFlexGap:D},M=o();return R.jsx(a,{as:_,ownerState:O,ref:f,className:Ee(M.root,k),...C,children:w?Xz(S,w):S})})}const nu={black:"#000",white:"#fff"},s0={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"},wi={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"},xi={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"},Or={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"},Si={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"},ki={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"},Ci={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 cM(){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:nu.white,default:nu.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Kz=cM();function lM(){return{text:{primary:nu.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:nu.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Bk=lM();function Wk(t,e,r,n){const o=n.light||n,a=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=wc(t.main,o):e==="dark"&&(t.dark=bc(t.main,a)))}function Zz(t="light"){return t==="dark"?{main:Si[200],light:Si[50],dark:Si[400]}:{main:Si[700],light:Si[400],dark:Si[800]}}function Qz(t="light"){return t==="dark"?{main:wi[200],light:wi[50],dark:wi[400]}:{main:wi[500],light:wi[300],dark:wi[700]}}function eF(t="light"){return t==="dark"?{main:xi[500],light:xi[300],dark:xi[700]}:{main:xi[700],light:xi[400],dark:xi[800]}}function tF(t="light"){return t==="dark"?{main:ki[400],light:ki[300],dark:ki[700]}:{main:ki[700],light:ki[500],dark:ki[900]}}function rF(t="light"){return t==="dark"?{main:Ci[400],light:Ci[300],dark:Ci[700]}:{main:Ci[800],light:Ci[500],dark:Ci[900]}}function nF(t="light"){return t==="dark"?{main:Or[400],light:Or[300],dark:Or[700]}:{main:"#ed6c02",light:Or[500],dark:Or[900]}}function xb(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=t,a=t.primary||Zz(e),i=t.secondary||Qz(e),l=t.error||eF(e),u=t.info||tF(e),f=t.success||rF(e),h=t.warning||nF(e);function d(w){return gz(w,Bk.text.primary)>=r?Bk.text.primary:Kz.text.primary}const _=({color:w,name:S,mainShade:k=500,lightShade:D=300,darkShade:C=700})=>{if(w={...w},!w.main&&w[k]&&(w.main=w[k]),!w.hasOwnProperty("main"))throw new Error(Zo(11,S?` (${S})`:"",k));if(typeof w.main!="string")throw new Error(Zo(12,S?` (${S})`:"",JSON.stringify(w.main)));return Wk(w,"light",D,n),Wk(w,"dark",C,n),w.contrastText||(w.contrastText=d(w.main)),w};let g;return e==="light"?g=cM():e==="dark"&&(g=lM()),kr({common:{...nu},mode:e,primary:_({color:a,name:"primary"}),secondary:_({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:_({color:l,name:"error"}),warning:_({color:h,name:"warning"}),info:_({color:u,name:"info"}),success:_({color:f,name:"success"}),grey:s0,contrastThreshold:r,getContrastText:d,augmentColor:_,tonalOffset:n,...g},o)}function oF(t){const e={};return Object.entries(t).forEach(n=>{const[o,a]=n;typeof a=="object"&&(e[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),e}function aF(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function sF(t){return Math.round(t*1e5)/1e5}const Uk={textTransform:"uppercase"},Hk='"Roboto", "Helvetica", "Arial", sans-serif';function uM(t,e){const{fontFamily:r=Hk,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:h,...d}=typeof e=="function"?e(t):e,_=n/14,g=h||(S=>`${S/u*_}rem`),b=(S,k,D,C,O)=>({fontFamily:r,fontWeight:S,fontSize:g(k),lineHeight:D,...r===Hk?{letterSpacing:`${sF(C/k)}em`}:{},...O,...f}),w={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(i,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(i,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(i,14,1.75,.4,Uk),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,Uk),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kr({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:l,...w},d,{clone:!1})}const iF=.2,cF=.14,lF=.12;function qt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${iF})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${cF})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${lF})`].join(",")}const uF=["none",qt(0,2,1,-1,0,1,1,0,0,1,3,0),qt(0,3,1,-2,0,2,2,0,0,1,5,0),qt(0,3,3,-2,0,3,4,0,0,1,8,0),qt(0,2,4,-1,0,4,5,0,0,1,10,0),qt(0,3,5,-1,0,5,8,0,0,1,14,0),qt(0,3,5,-1,0,6,10,0,0,1,18,0),qt(0,4,5,-2,0,7,10,1,0,2,16,1),qt(0,5,5,-3,0,8,10,1,0,3,14,2),qt(0,5,6,-3,0,9,12,1,0,3,16,2),qt(0,6,6,-3,0,10,14,1,0,4,18,3),qt(0,6,7,-4,0,11,15,1,0,4,20,3),qt(0,7,8,-4,0,12,17,2,0,5,22,4),qt(0,7,8,-4,0,13,19,2,0,5,24,4),qt(0,7,9,-4,0,14,21,2,0,5,26,4),qt(0,8,9,-5,0,15,22,2,0,6,28,5),qt(0,8,10,-5,0,16,24,2,0,6,30,5),qt(0,8,11,-5,0,17,26,2,0,6,32,5),qt(0,9,11,-5,0,18,28,2,0,7,34,6),qt(0,9,12,-6,0,19,29,2,0,7,36,6),qt(0,10,13,-6,0,20,31,3,0,8,38,7),qt(0,10,13,-6,0,21,33,3,0,8,40,7),qt(0,10,14,-6,0,22,35,3,0,8,42,7),qt(0,11,14,-7,0,23,36,3,0,9,44,8),qt(0,11,15,-7,0,24,38,3,0,9,46,8)],dF={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)"},pF={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qk(t){return`${Math.round(t)}ms`}function fF(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function hF(t){const e={...dF,...t.easing},r={...pF,...t.duration};return{getAutoHeightDuration:fF,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=e.easeInOut,delay:u=0,...f}=a;return(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof i=="string"?i:qk(i)} ${l} ${typeof u=="string"?u:qk(u)}`).join(",")},...t,easing:e,duration:r}}const mF={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _F(t){return vo(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function dM(t={}){const e={...t};function r(n){const o=Object.entries(n);for(let a=0;a{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function n_(t,e){if(typeof window>"u")return;let r;try{r=localStorage.getItem(t)||void 0,r||localStorage.setItem(t,e)}catch{}return r||e}function IF(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:a=bb,colorSchemeStorageKey:i=wb,storageWindow:l=typeof window>"u"?void 0:window,noSsr:u=!1}=t,f=o.join(","),h=o.length>1,[d,_]=$.useState(()=>{const O=n_(a,e),M=n_(`${i}-light`,r),T=n_(`${i}-dark`,n);return{mode:O,systemMode:Fk(O),lightColorScheme:M,darkColorScheme:T}}),[g,b]=$.useState(u||!h);$.useEffect(()=>{b(!0)},[]);const w=AF(d),S=$.useCallback(O=>{_(M=>{if(O===M.mode)return M;const T=O??e;try{localStorage.setItem(a,T)}catch{}return{...M,mode:T,systemMode:Fk(T)}})},[a,e]),k=$.useCallback(O=>{O?typeof O=="string"?O&&!f.includes(O)?console.error(`\`${O}\` does not exist in \`theme.colorSchemes\`.`):_(M=>{const T={...M};return iM(M,P=>{try{localStorage.setItem(`${i}-${P}`,O)}catch{}P==="light"&&(T.lightColorScheme=O),P==="dark"&&(T.darkColorScheme=O)}),T}):_(M=>{const T={...M},P=O.light===null?r:O.light,j=O.dark===null?n:O.dark;if(P)if(!f.includes(P))console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`);else{T.lightColorScheme=P;try{localStorage.setItem(`${i}-light`,P)}catch{}}if(j)if(!f.includes(j))console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`);else{T.darkColorScheme=j;try{localStorage.setItem(`${i}-dark`,j)}catch{}}return T}):_(M=>{try{localStorage.setItem(`${i}-light`,r),localStorage.setItem(`${i}-dark`,n)}catch{}return{...M,lightColorScheme:r,darkColorScheme:n}})},[f,i,r,n]),D=$.useCallback(O=>{d.mode==="system"&&_(M=>{const T=O!=null&&O.matches?"dark":"light";return M.systemMode===T?M:{...M,systemMode:T}})},[d.mode]),C=$.useRef(D);return C.current=D,$.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const O=(...T)=>C.current(...T),M=window.matchMedia("(prefers-color-scheme: dark)");return M.addListener(O),O(M),()=>{M.removeListener(O)}},[h]),$.useEffect(()=>{if(l&&h){const O=M=>{const T=M.newValue;typeof M.key=="string"&&M.key.startsWith(i)&&(!T||f.match(T))&&(M.key.endsWith("light")&&k({light:T}),M.key.endsWith("dark")&&k({dark:T})),M.key===a&&(!T||["light","dark","system"].includes(T))&&S(T||e)};return l.addEventListener("storage",O),()=>{l.removeEventListener("storage",O)}}},[k,S,a,i,f,e,l,h]),{...d,mode:g?d.mode:void 0,systemMode:g?d.systemMode:void 0,colorScheme:g?w:void 0,setMode:S,setColorScheme:k}}const jF="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function LF(t){const{themeId:e,theme:r={},modeStorageKey:n=bb,colorSchemeStorageKey:o=wb,disableTransitionOnChange:a=!1,defaultColorScheme:i,resolveTheme:l}=t,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=$.createContext(void 0),h=()=>$.useContext(f)||u,d={},_={};function g(k){var ut,q,ne,ye;const{children:D,theme:C,modeStorageKey:O=n,colorSchemeStorageKey:M=o,disableTransitionOnChange:T=a,storageWindow:P=typeof window>"u"?void 0:window,documentNode:j=typeof document>"u"?void 0:document,colorSchemeNode:F=typeof document>"u"?void 0:document.documentElement,disableNestedContext:E=!1,disableStyleSheetGeneration:L=!1,defaultMode:G="system",noSsr:B}=k,z=$.useRef(!1),H=vb(),K=$.useContext(f),ee=!!K&&!E,Y=$.useMemo(()=>C||(typeof r=="function"?r():r),[C]),X=Y[e],re=X||Y,{colorSchemes:I=d,components:Q=_,cssVarPrefix:me}=re,pe=Object.keys(I).filter(xe=>!!I[xe]).join(","),ge=$.useMemo(()=>pe.split(","),[pe]),Ce=typeof i=="string"?i:i.light,Re=typeof i=="string"?i:i.dark,Te=I[Ce]&&I[Re]?G:((q=(ut=I[re.defaultColorScheme])==null?void 0:ut.palette)==null?void 0:q.mode)||((ne=re.palette)==null?void 0:ne.mode),{mode:Pe,setMode:Oe,systemMode:ze,lightColorScheme:Me,darkColorScheme:Be,colorScheme:We,setColorScheme:De}=IF({supportedColorSchemes:ge,defaultLightColorScheme:Ce,defaultDarkColorScheme:Re,modeStorageKey:O,colorSchemeStorageKey:M,defaultMode:Te,storageWindow:P,noSsr:B});let pt=Pe,ce=We;ee&&(pt=K.mode,ce=K.colorScheme);const qe=$.useMemo(()=>{var Ve;const xe=ce||re.defaultColorScheme,ke=((Ve=re.generateThemeVars)==null?void 0:Ve.call(re))||re.vars,ve={...re,components:Q,colorSchemes:I,cssVarPrefix:me,vars:ke};if(typeof ve.generateSpacing=="function"&&(ve.spacing=ve.generateSpacing()),xe){const $e=I[xe];$e&&typeof $e=="object"&&Object.keys($e).forEach(Ye=>{$e[Ye]&&typeof $e[Ye]=="object"?ve[Ye]={...ve[Ye],...$e[Ye]}:ve[Ye]=$e[Ye]})}return l?l(ve):ve},[re,ce,Q,I,me]),st=re.colorSchemeSelector;$.useEffect(()=>{if(ce&&F&&st&&st!=="media"){const xe=st;let ke=st;if(xe==="class"&&(ke=".%s"),xe==="data"&&(ke="[data-%s]"),xe!=null&&xe.startsWith("data-")&&!xe.includes("%s")&&(ke=`[${xe}="%s"]`),ke.startsWith("."))F.classList.remove(...ge.map(ve=>ke.substring(1).replace("%s",ve))),F.classList.add(ke.substring(1).replace("%s",ce));else{const ve=ke.replace("%s",ce).match(/\[([^\]]+)\]/);if(ve){const[Ve,$e]=ve[1].split("=");$e||ge.forEach(Ye=>{F.removeAttribute(Ve.replace(ce,Ye))}),F.setAttribute(Ve,$e?$e.replace(/"|'/g,""):"")}else F.setAttribute(ke,ce)}}},[ce,st,F,ge]),$.useEffect(()=>{let xe;if(T&&z.current&&j){const ke=j.createElement("style");ke.appendChild(j.createTextNode(jF)),j.head.appendChild(ke),window.getComputedStyle(j.body),xe=setTimeout(()=>{j.head.removeChild(ke)},1)}return()=>{clearTimeout(xe)}},[ce,T,j]),$.useEffect(()=>(z.current=!0,()=>{z.current=!1}),[]);const rt=$.useMemo(()=>({allColorSchemes:ge,colorScheme:ce,darkColorScheme:Be,lightColorScheme:Me,mode:pt,setColorScheme:De,setMode:Oe,systemMode:ze}),[ge,ce,Be,Me,pt,De,Oe,ze,qe.colorSchemeSelector]);let Je=!0;(L||re.cssVariables===!1||ee&&(H==null?void 0:H.cssVarPrefix)===me)&&(Je=!1);const Se=R.jsxs($.Fragment,{children:[R.jsx(sM,{themeId:X?e:void 0,theme:qe,children:D}),Je&&R.jsx(jD,{styles:((ye=qe.generateStyleSheets)==null?void 0:ye.call(qe))||[]})]});return ee?Se:R.jsx(f.Provider,{value:rt,children:Se})}const b=typeof i=="string"?i:i.light,w=typeof i=="string"?i:i.dark;return{CssVarsProvider:g,useColorScheme:h,getInitColorSchemeScript:k=>RF({colorSchemeStorageKey:o,defaultLightColorScheme:b,defaultDarkColorScheme:w,modeStorageKey:n,...k})}}function FF(t=""){function e(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${t?`${t}-`:""}${n}${e(...o)})`}const zk=(t,e,r,n=[])=>{let o=t;e.forEach((a,i)=>{i===e.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},zF=(t,e,r)=>{function n(o,a=[],i=[]){Object.entries(o).forEach(([l,u])=>{(!r||!r([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...a,l],Array.isArray(u)?[...i,l]:i):e([...a,l],u,i))})}n(t)},BF=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function o_(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},o={},a={},i={};return zF(t,(l,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(l,u))){const h=`--${r?`${r}-`:""}${l.join("-")}`,d=BF(l,u);Object.assign(o,{[h]:d}),zk(a,l,`var(${h})`,f),zk(i,l,`var(${h}, ${d})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function WF(t,e={}){const{getSelector:r=S,disableCssColorScheme:n,colorSchemeSelector:o}=e,{colorSchemes:a={},components:i,defaultColorScheme:l="light",...u}=t,{vars:f,css:h,varsWithDefaults:d}=o_(u,e);let _=d;const g={},{[l]:b,...w}=a;if(Object.entries(w||{}).forEach(([C,O])=>{const{vars:M,css:T,varsWithDefaults:P}=o_(O,e);_=kr(_,P),g[C]={css:T,vars:M}}),b){const{css:C,vars:O,varsWithDefaults:M}=o_(b,e);_=kr(_,M),g[l]={css:C,vars:O}}function S(C,O){var T,P;let M=o;if(o==="class"&&(M=".%s"),o==="data"&&(M="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(M=`[${o}="%s"]`),C){if(M==="media")return t.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((P=(T=a[C])==null?void 0:T.palette)==null?void 0:P.mode)||C})`]:{":root":O}};if(M)return t.defaultColorScheme===C?`:root, ${M.replace("%s",String(C))}`:M.replace("%s",String(C))}return":root"}return{vars:_,generateThemeVars:()=>{let C={...f};return Object.entries(g).forEach(([,{vars:O}])=>{C=kr(C,O)}),C},generateStyleSheets:()=>{var j,F;const C=[],O=t.defaultColorScheme||"light";function M(E,L){Object.keys(L).length&&C.push(typeof E=="string"?{[E]:{...L}}:E)}M(r(void 0,{...h}),h);const{[O]:T,...P}=g;if(T){const{css:E}=T,L=(F=(j=a[O])==null?void 0:j.palette)==null?void 0:F.mode,G=!n&&L?{colorScheme:L,...E}:{...E};M(r(O,{...G}),G)}return Object.entries(P).forEach(([E,{css:L}])=>{var z,H;const G=(H=(z=a[E])==null?void 0:z.palette)==null?void 0:H.mode,B=!n&&G?{colorScheme:G,...L}:{...L};M(r(E,{...B}),B)}),C}}}function UF(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}const HF=kf(),qF=lF("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function VF(t){return uF({props:t,name:"MuiStack",defaultTheme:HF})}function XF(t,e){const r=$.Children.toArray(t).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],JF=({ownerState:t,theme:e})=>{let r={display:"flex",flexDirection:"column",...Qn({theme:e},e_({values:t.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n}))};if(t.spacing){const n=yf(e),o=Object.keys(e.breakpoints.values).reduce((u,f)=>((typeof t.spacing=="object"&&t.spacing[f]!=null||typeof t.direction=="object"&&t.direction[f]!=null)&&(u[f]=!0),u),{}),a=e_({values:t.direction,base:o}),i=e_({values:t.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,f,h)=>{if(!a[u]){const _=f>0?a[h[f-1]]:"column";a[u]=_}}),r=kr(r,Qn({theme:e},i,(u,f)=>t.useFlexGap?{gap:Ns(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${GF(f?a[f]:t.direction)}`]:Ns(n,u)}}))}return r=iL(e.breakpoints,r),r};function YF(t={}){const{createStyledComponent:e=qF,useThemeProps:r=VF,componentName:n="MuiStack"}=t,o=()=>nt({root:["root"]},u=>tt(n,u),{}),a=e(JF);return $.forwardRef(function(u,f){const h=r(u),d=gb(h),{component:_="div",direction:g="column",spacing:b=0,divider:w,children:S,className:k,useFlexGap:D=!1,...C}=d,O={direction:g,spacing:b,useFlexGap:D},M=o();return R.jsx(a,{as:_,ownerState:O,ref:f,className:Ee(M.root,k),...C,children:w?XF(S,w):S})})}const nu={black:"#000",white:"#fff"},s0={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"},wi={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"},xi={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"},Or={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"},Si={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"},ki={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"},Ci={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 cM(){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:nu.white,default:nu.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const KF=cM();function lM(){return{text:{primary:nu.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:nu.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Bk=lM();function Wk(t,e,r,n){const o=n.light||n,a=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=wc(t.main,o):e==="dark"&&(t.dark=bc(t.main,a)))}function ZF(t="light"){return t==="dark"?{main:Si[200],light:Si[50],dark:Si[400]}:{main:Si[700],light:Si[400],dark:Si[800]}}function QF(t="light"){return t==="dark"?{main:wi[200],light:wi[50],dark:wi[400]}:{main:wi[500],light:wi[300],dark:wi[700]}}function ez(t="light"){return t==="dark"?{main:xi[500],light:xi[300],dark:xi[700]}:{main:xi[700],light:xi[400],dark:xi[800]}}function tz(t="light"){return t==="dark"?{main:ki[400],light:ki[300],dark:ki[700]}:{main:ki[700],light:ki[500],dark:ki[900]}}function rz(t="light"){return t==="dark"?{main:Ci[400],light:Ci[300],dark:Ci[700]}:{main:Ci[800],light:Ci[500],dark:Ci[900]}}function nz(t="light"){return t==="dark"?{main:Or[400],light:Or[300],dark:Or[700]}:{main:"#ed6c02",light:Or[500],dark:Or[900]}}function xb(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=t,a=t.primary||ZF(e),i=t.secondary||QF(e),l=t.error||ez(e),u=t.info||tz(e),f=t.success||rz(e),h=t.warning||nz(e);function d(w){return gF(w,Bk.text.primary)>=r?Bk.text.primary:KF.text.primary}const _=({color:w,name:S,mainShade:k=500,lightShade:D=300,darkShade:C=700})=>{if(w={...w},!w.main&&w[k]&&(w.main=w[k]),!w.hasOwnProperty("main"))throw new Error(Zo(11,S?` (${S})`:"",k));if(typeof w.main!="string")throw new Error(Zo(12,S?` (${S})`:"",JSON.stringify(w.main)));return Wk(w,"light",D,n),Wk(w,"dark",C,n),w.contrastText||(w.contrastText=d(w.main)),w};let g;return e==="light"?g=cM():e==="dark"&&(g=lM()),kr({common:{...nu},mode:e,primary:_({color:a,name:"primary"}),secondary:_({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:_({color:l,name:"error"}),warning:_({color:h,name:"warning"}),info:_({color:u,name:"info"}),success:_({color:f,name:"success"}),grey:s0,contrastThreshold:r,getContrastText:d,augmentColor:_,tonalOffset:n,...g},o)}function oz(t){const e={};return Object.entries(t).forEach(n=>{const[o,a]=n;typeof a=="object"&&(e[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),e}function az(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function sz(t){return Math.round(t*1e5)/1e5}const Uk={textTransform:"uppercase"},Hk='"Roboto", "Helvetica", "Arial", sans-serif';function uM(t,e){const{fontFamily:r=Hk,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:h,...d}=typeof e=="function"?e(t):e,_=n/14,g=h||(S=>`${S/u*_}rem`),b=(S,k,D,C,O)=>({fontFamily:r,fontWeight:S,fontSize:g(k),lineHeight:D,...r===Hk?{letterSpacing:`${sz(C/k)}em`}:{},...O,...f}),w={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(i,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(i,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(i,14,1.75,.4,Uk),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,Uk),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kr({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:l,...w},d,{clone:!1})}const iz=.2,cz=.14,lz=.12;function qt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${iz})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${cz})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${lz})`].join(",")}const uz=["none",qt(0,2,1,-1,0,1,1,0,0,1,3,0),qt(0,3,1,-2,0,2,2,0,0,1,5,0),qt(0,3,3,-2,0,3,4,0,0,1,8,0),qt(0,2,4,-1,0,4,5,0,0,1,10,0),qt(0,3,5,-1,0,5,8,0,0,1,14,0),qt(0,3,5,-1,0,6,10,0,0,1,18,0),qt(0,4,5,-2,0,7,10,1,0,2,16,1),qt(0,5,5,-3,0,8,10,1,0,3,14,2),qt(0,5,6,-3,0,9,12,1,0,3,16,2),qt(0,6,6,-3,0,10,14,1,0,4,18,3),qt(0,6,7,-4,0,11,15,1,0,4,20,3),qt(0,7,8,-4,0,12,17,2,0,5,22,4),qt(0,7,8,-4,0,13,19,2,0,5,24,4),qt(0,7,9,-4,0,14,21,2,0,5,26,4),qt(0,8,9,-5,0,15,22,2,0,6,28,5),qt(0,8,10,-5,0,16,24,2,0,6,30,5),qt(0,8,11,-5,0,17,26,2,0,6,32,5),qt(0,9,11,-5,0,18,28,2,0,7,34,6),qt(0,9,12,-6,0,19,29,2,0,7,36,6),qt(0,10,13,-6,0,20,31,3,0,8,38,7),qt(0,10,13,-6,0,21,33,3,0,8,40,7),qt(0,10,14,-6,0,22,35,3,0,8,42,7),qt(0,11,14,-7,0,23,36,3,0,9,44,8),qt(0,11,15,-7,0,24,38,3,0,9,46,8)],dz={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)"},pz={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qk(t){return`${Math.round(t)}ms`}function fz(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function hz(t){const e={...dz,...t.easing},r={...pz,...t.duration};return{getAutoHeightDuration:fz,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=e.easeInOut,delay:u=0,...f}=a;return(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof i=="string"?i:qk(i)} ${l} ${typeof u=="string"?u:qk(u)}`).join(",")},...t,easing:e,duration:r}}const mz={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _z(t){return vo(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function dM(t={}){const e={...t};function r(n){const o=Object.entries(n);for(let a=0;akr(g,b),_),_.unstable_sxConfig={...Su,...f==null?void 0:f.unstable_sxConfig},_.unstable_sx=function(b){return za({sx:b,theme:this})},_.toRuntimeSource=dM,_}function c0(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const gF=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=c0(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function pM(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function fM(t){return t==="dark"?gF:[]}function yF(t){const{palette:e={mode:"light"},opacity:r,overlays:n,...o}=t,a=xb(e);return{palette:a,opacity:{...pM(a.mode),...r},overlays:n||fM(a.mode),...o}}function vF(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const bF=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],wF=t=>(e,r)=>{const n=t.rootSelector||":root",o=t.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const i={};return bF(t.cssVarPrefix).forEach(l=>{i[l]=r[l],delete r[l]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:a?{[a.replace("%s",e)]:i,[`${n}, ${a.replace("%s",e)}`]:r}:{[n]:{...r,...i}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(e))}`}else if(e){if(a==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(a)return a.replace("%s",String(e))}return n};function xF(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function oe(t,e,r){!t[e]&&r&&(t[e]=r)}function Il(t){return typeof t!="string"||!t.startsWith("hsl")?t:KD(t)}function Bo(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Al(Il(t[e])))}function SF(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const co=t=>{try{return t()}catch{}},kF=(t="mui")=>zz(t);function a_(t,e,r,n){if(!e)return;e=e===!0?{}:e;const o=n==="dark"?"dark":"light";if(!r){t[n]=yF({...e,palette:{mode:o,...e==null?void 0:e.palette}});return}const{palette:a,...i}=i0({...r,palette:{mode:o,...e==null?void 0:e.palette}});return t[n]={...e,palette:a,opacity:{...pM(o),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||fM(o)},i}function CF(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=vF,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...f}=t,h=Object.keys(r)[0],d=n||(r.light&&h!=="light"?"light":h),_=kF(a),{[d]:g,light:b,dark:w,...S}=r,k={...S};let D=g;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(D=!0),!D)throw new Error(Zo(21,d));const C=a_(k,D,f,d);b&&!k.light&&a_(k,b,void 0,"light"),w&&!k.dark&&a_(k,w,void 0,"dark");let O={defaultColorScheme:d,...C,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:_,colorSchemes:k,font:{...oF(C.typography),...C.font},spacing:SF(f.spacing)};Object.keys(O.colorSchemes).forEach(z=>{const E=O.colorSchemes[z].palette,L=G=>{const B=G.split("-"),F=B[1],H=B[2];return _(G,E[F][H])};if(E.mode==="light"&&(oe(E.common,"background","#fff"),oe(E.common,"onBackground","#000")),E.mode==="dark"&&(oe(E.common,"background","#000"),oe(E.common,"onBackground","#fff")),xF(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){oe(E.Alert,"errorColor",Pt(E.error.light,.6)),oe(E.Alert,"infoColor",Pt(E.info.light,.6)),oe(E.Alert,"successColor",Pt(E.success.light,.6)),oe(E.Alert,"warningColor",Pt(E.warning.light,.6)),oe(E.Alert,"errorFilledBg",L("palette-error-main")),oe(E.Alert,"infoFilledBg",L("palette-info-main")),oe(E.Alert,"successFilledBg",L("palette-success-main")),oe(E.Alert,"warningFilledBg",L("palette-warning-main")),oe(E.Alert,"errorFilledColor",co(()=>E.getContrastText(E.error.main))),oe(E.Alert,"infoFilledColor",co(()=>E.getContrastText(E.info.main))),oe(E.Alert,"successFilledColor",co(()=>E.getContrastText(E.success.main))),oe(E.Alert,"warningFilledColor",co(()=>E.getContrastText(E.warning.main))),oe(E.Alert,"errorStandardBg",Rt(E.error.light,.9)),oe(E.Alert,"infoStandardBg",Rt(E.info.light,.9)),oe(E.Alert,"successStandardBg",Rt(E.success.light,.9)),oe(E.Alert,"warningStandardBg",Rt(E.warning.light,.9)),oe(E.Alert,"errorIconColor",L("palette-error-main")),oe(E.Alert,"infoIconColor",L("palette-info-main")),oe(E.Alert,"successIconColor",L("palette-success-main")),oe(E.Alert,"warningIconColor",L("palette-warning-main")),oe(E.AppBar,"defaultBg",L("palette-grey-100")),oe(E.Avatar,"defaultBg",L("palette-grey-400")),oe(E.Button,"inheritContainedBg",L("palette-grey-300")),oe(E.Button,"inheritContainedHoverBg",L("palette-grey-A100")),oe(E.Chip,"defaultBorder",L("palette-grey-400")),oe(E.Chip,"defaultAvatarColor",L("palette-grey-700")),oe(E.Chip,"defaultIconColor",L("palette-grey-700")),oe(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(E.LinearProgress,"primaryBg",Rt(E.primary.main,.62)),oe(E.LinearProgress,"secondaryBg",Rt(E.secondary.main,.62)),oe(E.LinearProgress,"errorBg",Rt(E.error.main,.62)),oe(E.LinearProgress,"infoBg",Rt(E.info.main,.62)),oe(E.LinearProgress,"successBg",Rt(E.success.main,.62)),oe(E.LinearProgress,"warningBg",Rt(E.warning.main,.62)),oe(E.Skeleton,"bg",`rgba(${L("palette-text-primaryChannel")} / 0.11)`),oe(E.Slider,"primaryTrack",Rt(E.primary.main,.62)),oe(E.Slider,"secondaryTrack",Rt(E.secondary.main,.62)),oe(E.Slider,"errorTrack",Rt(E.error.main,.62)),oe(E.Slider,"infoTrack",Rt(E.info.main,.62)),oe(E.Slider,"successTrack",Rt(E.success.main,.62)),oe(E.Slider,"warningTrack",Rt(E.warning.main,.62));const G=Jd(E.background.default,.8);oe(E.SnackbarContent,"bg",G),oe(E.SnackbarContent,"color",co(()=>E.getContrastText(G))),oe(E.SpeedDialAction,"fabHoverBg",Jd(E.background.paper,.15)),oe(E.StepConnector,"border",L("palette-grey-400")),oe(E.StepContent,"border",L("palette-grey-400")),oe(E.Switch,"defaultColor",L("palette-common-white")),oe(E.Switch,"defaultDisabledColor",L("palette-grey-100")),oe(E.Switch,"primaryDisabledColor",Rt(E.primary.main,.62)),oe(E.Switch,"secondaryDisabledColor",Rt(E.secondary.main,.62)),oe(E.Switch,"errorDisabledColor",Rt(E.error.main,.62)),oe(E.Switch,"infoDisabledColor",Rt(E.info.main,.62)),oe(E.Switch,"successDisabledColor",Rt(E.success.main,.62)),oe(E.Switch,"warningDisabledColor",Rt(E.warning.main,.62)),oe(E.TableCell,"border",Rt(Gd(E.divider,1),.88)),oe(E.Tooltip,"bg",Gd(E.grey[700],.92))}if(E.mode==="dark"){oe(E.Alert,"errorColor",Rt(E.error.light,.6)),oe(E.Alert,"infoColor",Rt(E.info.light,.6)),oe(E.Alert,"successColor",Rt(E.success.light,.6)),oe(E.Alert,"warningColor",Rt(E.warning.light,.6)),oe(E.Alert,"errorFilledBg",L("palette-error-dark")),oe(E.Alert,"infoFilledBg",L("palette-info-dark")),oe(E.Alert,"successFilledBg",L("palette-success-dark")),oe(E.Alert,"warningFilledBg",L("palette-warning-dark")),oe(E.Alert,"errorFilledColor",co(()=>E.getContrastText(E.error.dark))),oe(E.Alert,"infoFilledColor",co(()=>E.getContrastText(E.info.dark))),oe(E.Alert,"successFilledColor",co(()=>E.getContrastText(E.success.dark))),oe(E.Alert,"warningFilledColor",co(()=>E.getContrastText(E.warning.dark))),oe(E.Alert,"errorStandardBg",Pt(E.error.light,.9)),oe(E.Alert,"infoStandardBg",Pt(E.info.light,.9)),oe(E.Alert,"successStandardBg",Pt(E.success.light,.9)),oe(E.Alert,"warningStandardBg",Pt(E.warning.light,.9)),oe(E.Alert,"errorIconColor",L("palette-error-main")),oe(E.Alert,"infoIconColor",L("palette-info-main")),oe(E.Alert,"successIconColor",L("palette-success-main")),oe(E.Alert,"warningIconColor",L("palette-warning-main")),oe(E.AppBar,"defaultBg",L("palette-grey-900")),oe(E.AppBar,"darkBg",L("palette-background-paper")),oe(E.AppBar,"darkColor",L("palette-text-primary")),oe(E.Avatar,"defaultBg",L("palette-grey-600")),oe(E.Button,"inheritContainedBg",L("palette-grey-800")),oe(E.Button,"inheritContainedHoverBg",L("palette-grey-700")),oe(E.Chip,"defaultBorder",L("palette-grey-700")),oe(E.Chip,"defaultAvatarColor",L("palette-grey-300")),oe(E.Chip,"defaultIconColor",L("palette-grey-300")),oe(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(E.LinearProgress,"primaryBg",Pt(E.primary.main,.5)),oe(E.LinearProgress,"secondaryBg",Pt(E.secondary.main,.5)),oe(E.LinearProgress,"errorBg",Pt(E.error.main,.5)),oe(E.LinearProgress,"infoBg",Pt(E.info.main,.5)),oe(E.LinearProgress,"successBg",Pt(E.success.main,.5)),oe(E.LinearProgress,"warningBg",Pt(E.warning.main,.5)),oe(E.Skeleton,"bg",`rgba(${L("palette-text-primaryChannel")} / 0.13)`),oe(E.Slider,"primaryTrack",Pt(E.primary.main,.5)),oe(E.Slider,"secondaryTrack",Pt(E.secondary.main,.5)),oe(E.Slider,"errorTrack",Pt(E.error.main,.5)),oe(E.Slider,"infoTrack",Pt(E.info.main,.5)),oe(E.Slider,"successTrack",Pt(E.success.main,.5)),oe(E.Slider,"warningTrack",Pt(E.warning.main,.5));const G=Jd(E.background.default,.98);oe(E.SnackbarContent,"bg",G),oe(E.SnackbarContent,"color",co(()=>E.getContrastText(G))),oe(E.SpeedDialAction,"fabHoverBg",Jd(E.background.paper,.15)),oe(E.StepConnector,"border",L("palette-grey-600")),oe(E.StepContent,"border",L("palette-grey-600")),oe(E.Switch,"defaultColor",L("palette-grey-300")),oe(E.Switch,"defaultDisabledColor",L("palette-grey-600")),oe(E.Switch,"primaryDisabledColor",Pt(E.primary.main,.55)),oe(E.Switch,"secondaryDisabledColor",Pt(E.secondary.main,.55)),oe(E.Switch,"errorDisabledColor",Pt(E.error.main,.55)),oe(E.Switch,"infoDisabledColor",Pt(E.info.main,.55)),oe(E.Switch,"successDisabledColor",Pt(E.success.main,.55)),oe(E.Switch,"warningDisabledColor",Pt(E.warning.main,.55)),oe(E.TableCell,"border",Pt(Gd(E.divider,1),.68)),oe(E.Tooltip,"bg",Gd(E.grey[700],.92))}Bo(E.background,"default"),Bo(E.background,"paper"),Bo(E.common,"background"),Bo(E.common,"onBackground"),Bo(E,"divider"),Object.keys(E).forEach(G=>{const B=E[G];G!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&oe(E[G],"mainChannel",Al(Il(B.main))),B.light&&oe(E[G],"lightChannel",Al(Il(B.light))),B.dark&&oe(E[G],"darkChannel",Al(Il(B.dark))),B.contrastText&&oe(E[G],"contrastTextChannel",Al(Il(B.contrastText))),G==="text"&&(Bo(E[G],"primary"),Bo(E[G],"secondary")),G==="action"&&(B.active&&Bo(E[G],"active"),B.selected&&Bo(E[G],"selected")))})}),O=e.reduce((z,E)=>kr(z,E),O);const M={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:wF(O)},{vars:T,generateThemeVars:P,generateStyleSheets:j}=Wz(O,M);return O.vars=T,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([z,E])=>{O[z]=E}),O.generateThemeVars=P,O.generateStyleSheets=j,O.generateSpacing=function(){return UD(f.spacing,yf(this))},O.getColorSchemeSelector=Uz(l),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=i,O.unstable_sxConfig={...Su,...f==null?void 0:f.unstable_sxConfig},O.unstable_sx=function(E){return za({sx:E,theme:this})},O.toRuntimeSource=dM,O}function Vk(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:xb({...r===!0?{}:r.palette,mode:e})})}function ou(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...i}=t,l=a||"light",u=o==null?void 0:o[l],f={...o,...r?{[l]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return i0(t,...e);let h=r;"palette"in t||f[l]&&(f[l]!==!0?h=f[l].palette:l==="dark"&&(h={mode:"dark"}));const d=i0({...t,palette:h},...e);return d.defaultColorScheme=l,d.colorSchemes=f,d.palette.mode==="light"&&(d.colorSchemes.light={...f.light!==!0&&f.light,palette:d.palette},Vk(d,"dark",f.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:d.palette},Vk(d,"light",f.light)),d}return!r&&!("light"in f)&&l==="light"&&(f.light=!0),CF({...i,colorSchemes:f,defaultColorScheme:l,...typeof n!="boolean"&&n},...e)}const Sb=ou();function ta(){const t=Cf(Sb);return t[Zn]||t}function Df(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Cr=t=>Df(t)&&t!=="classes",ie=GD({themeId:Zn,defaultTheme:Sb,rootShouldForwardProp:Cr});function Xk({theme:t,...e}){const r=Zn in t?t[Zn]:void 0;return R.jsx(sM,{...e,themeId:r?Zn:void 0,theme:r||t})}const Yd={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:$F,useColorScheme:EXe,getInitColorSchemeScript:TXe}=Lz({themeId:Zn,theme:()=>ou({cssVariables:!0}),colorSchemeStorageKey:Yd.colorSchemeStorageKey,modeStorageKey:Yd.modeStorageKey,defaultColorScheme:{light:Yd.defaultLightColorScheme,dark:Yd.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:uM(t.palette,t.typography)};return e.unstable_sx=function(n){return za({sx:n,theme:this})},e}}),EF=$F;function Gk({theme:t,...e}){return typeof t=="function"?R.jsx(Xk,{theme:t,...e}):"colorSchemes"in(Zn in t?t[Zn]:t)?R.jsx(EF,{theme:t,...e}):R.jsx(Xk,{theme:t,...e})}function TF(t){return R.jsx(KL,{...t,defaultTheme:Sb,themeId:Zn})}function OF(t){return function(r){return R.jsx(TF,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function DF(){return gb}const Xe=Nz;function ot(t){return Mz(t)}function MF(t){return tt("MuiSvgIcon",t)}Ze("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const NF=t=>{const{color:e,fontSize:r,classes:n}=t,o={root:["root",e!=="inherit"&&`color${he(e)}`,`fontSize${he(r)}`]};return nt(o,MF,n)},PF=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${he(r.color)}`],e[`fontSize${he(r.fontSize)}`]]}})(Xe(({theme:t})=>{var e,r,n,o,a,i,l,u,f,h,d,_,g,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(n=(r=(t.vars??t).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(l=t.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(f=t.typography)==null?void 0:f.pxToRem)==null?void 0:h.call(f,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,w])=>w&&w.main).map(([w])=>{var S,k;return{props:{color:w},style:{color:(k=(S=(t.vars??t).palette)==null?void 0:S[w])==null?void 0:k.main}}}),{props:{color:"action"},style:{color:(_=(d=(t.vars??t).palette)==null?void 0:d.action)==null?void 0:_.active}},{props:{color:"disabled"},style:{color:(b=(g=(t.vars??t).palette)==null?void 0:g.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),l0=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:d,viewBox:_="0 0 24 24",...g}=n,b=$.isValidElement(o)&&o.type==="svg",w={...n,color:i,component:l,fontSize:u,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:_,hasSvgAsChild:b},S={};h||(S.viewBox=_);const k=NF(w);return R.jsxs(PF,{as:l,className:Ee(k.root,a),focusable:"false",color:f,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...S,...g,...b&&o.props,ownerState:w,children:[b?o.props.children:o,d?R.jsx("title",{children:d}):null]})});l0.muiName="SvgIcon";function Ge(t,e){function r(n,o){return R.jsx(l0,{"data-testid":`${e}Icon`,ref:o,...n,children:t})}return r.muiName=l0.muiName,$.memo($.forwardRef(r))}function hM(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}function u0(t,e){return u0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},u0(t,e)}function mM(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,u0(t,e)}var _M=HO();const Kd=Ha(_M),Jk={disabled:!1},Bp=y.createContext(null);var RF=function(e){return e.scrollTop},jl="unmounted",hs="exited",ms="entering",zi="entered",d0="exiting",To=function(t){mM(e,t);function e(n,o){var a;a=t.call(this,n,o)||this;var i=o,l=i&&!i.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?l?(u=hs,a.appearStatus=ms):u=zi:n.unmountOnExit||n.mountOnEnter?u=jl:u=hs,a.state={status:u},a.nextCallback=null,a}e.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===jl?{status:hs}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==ms&&i!==zi&&(a=ms):(i===ms||i===zi)&&(a=d0)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,l;return a=i=l=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:l}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===ms){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Kd.findDOMNode(this);i&&RF(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hs&&this.setState({status:jl})},r.performEnter=function(o){var a=this,i=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[Kd.findDOMNode(this),l],f=u[0],h=u[1],d=this.getTimeouts(),_=l?d.appear:d.enter;if(!o&&!i||Jk.disabled){this.safeSetState({status:zi},function(){a.props.onEntered(f)});return}this.props.onEnter(f,h),this.safeSetState({status:ms},function(){a.props.onEntering(f,h),a.onTransitionEnd(_,function(){a.safeSetState({status:zi},function(){a.props.onEntered(f,h)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:Kd.findDOMNode(this);if(!a||Jk.disabled){this.safeSetState({status:hs},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:d0},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:hs},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Kd.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],f=u[0],h=u[1];this.props.addEndListener(f,h)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===jl)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=hM(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(Bp.Provider,{value:null},typeof i=="function"?i(o,l):y.cloneElement(y.Children.only(i),l))},e}(y.Component);To.contextType=Bp;To.propTypes={};function $i(){}To.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$i,onEntering:$i,onEntered:$i,onExit:$i,onExiting:$i,onExited:$i};To.UNMOUNTED=jl;To.EXITED=hs;To.ENTERING=ms;To.ENTERED=zi;To.EXITING=d0;function AF(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kb(t,e){var r=function(a){return e&&$.isValidElement(a)?e(a):a},n=Object.create(null);return t&&$.Children.map(t,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function IF(t,e){t=t||{},e=e||{};function r(h){return h in e?e[h]:t[h]}var n=Object.create(null),o=[];for(var a in t)a in e?o.length&&(n[a]=o,o=[]):o.push(a);var i,l={};for(var u in e){if(n[u])for(i=0;it.scrollTop;function Wp(t,e){const{timeout:r,easing:n,style:o={}}=t;return{duration:o.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:o.transitionDelay}}function BF(t){return tt("MuiPaper",t)}Ze("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const WF=t=>{const{square:e,elevation:r,variant:n,classes:o}=t,a={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return nt(a,BF,o)},UF=ie("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(Xe(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),ku=$.forwardRef(function(e,r){var g;const n=ot({props:e,name:"MuiPaper"}),o=ta(),{className:a,component:i="div",elevation:l=1,square:u=!1,variant:f="elevation",...h}=n,d={...n,component:i,elevation:l,square:u,variant:f},_=WF(d);return R.jsx(UF,{as:i,ownerState:d,className:Ee(_.root,a),ref:r,...h,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":(g=o.vars.overlays)==null?void 0:g[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Nt("#fff",c0(l))}, ${Nt("#fff",c0(l))})`}},...h.style}})});function Sr(t,e){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,...l}=e,{component:u,slots:f={[t]:void 0},slotProps:h={[t]:void 0},...d}=a,_=f[t]||n,g=rM(h[t],o),{props:{component:b,...w},internalRef:S}=tM({className:r,...l,externalForwardedProps:t==="root"?d:void 0,externalSlotProps:g}),k=ar(S,g==null?void 0:g.ref,e.ref),D=t==="root"?b||u:b,C=eM(_,{...t==="root"&&!u&&!f[t]&&i,...t!=="root"&&!f[t]&&i,...w,...D&&{as:D},ref:k},o);return[_,C]}class Up{constructor(){xe(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Up}static use(){const e=ZD(Up.create).current,[r,n]=$.useState(!1);return e.shouldMount=r,e.setShouldMount=n,$.useEffect(e.mountEffect,[r]),e}mount(){return this.mounted||(this.mounted=qF(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...e)})}stop(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...e)})}pulsate(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...e)})}}function HF(){return Up.use()}function qF(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function VF(t){const{className:e,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:u,timeout:f}=t,[h,d]=$.useState(!1),_=Ee(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),g={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ee(r.child,h&&r.childLeaving,n&&r.childPulsate);return!l&&!h&&d(!0),$.useEffect(()=>{if(!l&&u!=null){const w=setTimeout(u,f);return()=>{clearTimeout(w)}}},[u,l,f]),R.jsx("span",{className:_,style:g,children:R.jsx("span",{className:b})})}const Dn=Ze("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),p0=550,XF=80,GF=qa` +export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},spacing:o,palette:a={},transitions:i={},typography:l={},shape:u,...f}=t;if(t.vars)throw new Error(Zo(20));const h=xb(a),d=kf(t);let _=kr(d,{mixins:az(d.breakpoints,n),palette:h,shadows:uz.slice(),typography:uM(h,l),transitions:hz(i),zIndex:{...mz}});return _=kr(_,f),_=e.reduce((g,b)=>kr(g,b),_),_.unstable_sxConfig={...Su,...f==null?void 0:f.unstable_sxConfig},_.unstable_sx=function(b){return Fa({sx:b,theme:this})},_.toRuntimeSource=dM,_}function c0(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const gz=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=c0(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function pM(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function fM(t){return t==="dark"?gz:[]}function yz(t){const{palette:e={mode:"light"},opacity:r,overlays:n,...o}=t,a=xb(e);return{palette:a,opacity:{...pM(a.mode),...r},overlays:n||fM(a.mode),...o}}function vz(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const bz=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],wz=t=>(e,r)=>{const n=t.rootSelector||":root",o=t.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const i={};return bz(t.cssVarPrefix).forEach(l=>{i[l]=r[l],delete r[l]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:a?{[a.replace("%s",e)]:i,[`${n}, ${a.replace("%s",e)}`]:r}:{[n]:{...r,...i}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(e))}`}else if(e){if(a==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(a)return a.replace("%s",String(e))}return n};function xz(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function oe(t,e,r){!t[e]&&r&&(t[e]=r)}function Il(t){return typeof t!="string"||!t.startsWith("hsl")?t:KD(t)}function Bo(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Al(Il(t[e])))}function Sz(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const co=t=>{try{return t()}catch{}},kz=(t="mui")=>FF(t);function a_(t,e,r,n){if(!e)return;e=e===!0?{}:e;const o=n==="dark"?"dark":"light";if(!r){t[n]=yz({...e,palette:{mode:o,...e==null?void 0:e.palette}});return}const{palette:a,...i}=i0({...r,palette:{mode:o,...e==null?void 0:e.palette}});return t[n]={...e,palette:a,opacity:{...pM(o),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||fM(o)},i}function Cz(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=vz,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...f}=t,h=Object.keys(r)[0],d=n||(r.light&&h!=="light"?"light":h),_=kz(a),{[d]:g,light:b,dark:w,...S}=r,k={...S};let D=g;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(D=!0),!D)throw new Error(Zo(21,d));const C=a_(k,D,f,d);b&&!k.light&&a_(k,b,void 0,"light"),w&&!k.dark&&a_(k,w,void 0,"dark");let O={defaultColorScheme:d,...C,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:_,colorSchemes:k,font:{...oz(C.typography),...C.font},spacing:Sz(f.spacing)};Object.keys(O.colorSchemes).forEach(F=>{const E=O.colorSchemes[F].palette,L=G=>{const B=G.split("-"),z=B[1],H=B[2];return _(G,E[z][H])};if(E.mode==="light"&&(oe(E.common,"background","#fff"),oe(E.common,"onBackground","#000")),E.mode==="dark"&&(oe(E.common,"background","#000"),oe(E.common,"onBackground","#fff")),xz(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){oe(E.Alert,"errorColor",Pt(E.error.light,.6)),oe(E.Alert,"infoColor",Pt(E.info.light,.6)),oe(E.Alert,"successColor",Pt(E.success.light,.6)),oe(E.Alert,"warningColor",Pt(E.warning.light,.6)),oe(E.Alert,"errorFilledBg",L("palette-error-main")),oe(E.Alert,"infoFilledBg",L("palette-info-main")),oe(E.Alert,"successFilledBg",L("palette-success-main")),oe(E.Alert,"warningFilledBg",L("palette-warning-main")),oe(E.Alert,"errorFilledColor",co(()=>E.getContrastText(E.error.main))),oe(E.Alert,"infoFilledColor",co(()=>E.getContrastText(E.info.main))),oe(E.Alert,"successFilledColor",co(()=>E.getContrastText(E.success.main))),oe(E.Alert,"warningFilledColor",co(()=>E.getContrastText(E.warning.main))),oe(E.Alert,"errorStandardBg",Rt(E.error.light,.9)),oe(E.Alert,"infoStandardBg",Rt(E.info.light,.9)),oe(E.Alert,"successStandardBg",Rt(E.success.light,.9)),oe(E.Alert,"warningStandardBg",Rt(E.warning.light,.9)),oe(E.Alert,"errorIconColor",L("palette-error-main")),oe(E.Alert,"infoIconColor",L("palette-info-main")),oe(E.Alert,"successIconColor",L("palette-success-main")),oe(E.Alert,"warningIconColor",L("palette-warning-main")),oe(E.AppBar,"defaultBg",L("palette-grey-100")),oe(E.Avatar,"defaultBg",L("palette-grey-400")),oe(E.Button,"inheritContainedBg",L("palette-grey-300")),oe(E.Button,"inheritContainedHoverBg",L("palette-grey-A100")),oe(E.Chip,"defaultBorder",L("palette-grey-400")),oe(E.Chip,"defaultAvatarColor",L("palette-grey-700")),oe(E.Chip,"defaultIconColor",L("palette-grey-700")),oe(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(E.LinearProgress,"primaryBg",Rt(E.primary.main,.62)),oe(E.LinearProgress,"secondaryBg",Rt(E.secondary.main,.62)),oe(E.LinearProgress,"errorBg",Rt(E.error.main,.62)),oe(E.LinearProgress,"infoBg",Rt(E.info.main,.62)),oe(E.LinearProgress,"successBg",Rt(E.success.main,.62)),oe(E.LinearProgress,"warningBg",Rt(E.warning.main,.62)),oe(E.Skeleton,"bg",`rgba(${L("palette-text-primaryChannel")} / 0.11)`),oe(E.Slider,"primaryTrack",Rt(E.primary.main,.62)),oe(E.Slider,"secondaryTrack",Rt(E.secondary.main,.62)),oe(E.Slider,"errorTrack",Rt(E.error.main,.62)),oe(E.Slider,"infoTrack",Rt(E.info.main,.62)),oe(E.Slider,"successTrack",Rt(E.success.main,.62)),oe(E.Slider,"warningTrack",Rt(E.warning.main,.62));const G=Jd(E.background.default,.8);oe(E.SnackbarContent,"bg",G),oe(E.SnackbarContent,"color",co(()=>E.getContrastText(G))),oe(E.SpeedDialAction,"fabHoverBg",Jd(E.background.paper,.15)),oe(E.StepConnector,"border",L("palette-grey-400")),oe(E.StepContent,"border",L("palette-grey-400")),oe(E.Switch,"defaultColor",L("palette-common-white")),oe(E.Switch,"defaultDisabledColor",L("palette-grey-100")),oe(E.Switch,"primaryDisabledColor",Rt(E.primary.main,.62)),oe(E.Switch,"secondaryDisabledColor",Rt(E.secondary.main,.62)),oe(E.Switch,"errorDisabledColor",Rt(E.error.main,.62)),oe(E.Switch,"infoDisabledColor",Rt(E.info.main,.62)),oe(E.Switch,"successDisabledColor",Rt(E.success.main,.62)),oe(E.Switch,"warningDisabledColor",Rt(E.warning.main,.62)),oe(E.TableCell,"border",Rt(Gd(E.divider,1),.88)),oe(E.Tooltip,"bg",Gd(E.grey[700],.92))}if(E.mode==="dark"){oe(E.Alert,"errorColor",Rt(E.error.light,.6)),oe(E.Alert,"infoColor",Rt(E.info.light,.6)),oe(E.Alert,"successColor",Rt(E.success.light,.6)),oe(E.Alert,"warningColor",Rt(E.warning.light,.6)),oe(E.Alert,"errorFilledBg",L("palette-error-dark")),oe(E.Alert,"infoFilledBg",L("palette-info-dark")),oe(E.Alert,"successFilledBg",L("palette-success-dark")),oe(E.Alert,"warningFilledBg",L("palette-warning-dark")),oe(E.Alert,"errorFilledColor",co(()=>E.getContrastText(E.error.dark))),oe(E.Alert,"infoFilledColor",co(()=>E.getContrastText(E.info.dark))),oe(E.Alert,"successFilledColor",co(()=>E.getContrastText(E.success.dark))),oe(E.Alert,"warningFilledColor",co(()=>E.getContrastText(E.warning.dark))),oe(E.Alert,"errorStandardBg",Pt(E.error.light,.9)),oe(E.Alert,"infoStandardBg",Pt(E.info.light,.9)),oe(E.Alert,"successStandardBg",Pt(E.success.light,.9)),oe(E.Alert,"warningStandardBg",Pt(E.warning.light,.9)),oe(E.Alert,"errorIconColor",L("palette-error-main")),oe(E.Alert,"infoIconColor",L("palette-info-main")),oe(E.Alert,"successIconColor",L("palette-success-main")),oe(E.Alert,"warningIconColor",L("palette-warning-main")),oe(E.AppBar,"defaultBg",L("palette-grey-900")),oe(E.AppBar,"darkBg",L("palette-background-paper")),oe(E.AppBar,"darkColor",L("palette-text-primary")),oe(E.Avatar,"defaultBg",L("palette-grey-600")),oe(E.Button,"inheritContainedBg",L("palette-grey-800")),oe(E.Button,"inheritContainedHoverBg",L("palette-grey-700")),oe(E.Chip,"defaultBorder",L("palette-grey-700")),oe(E.Chip,"defaultAvatarColor",L("palette-grey-300")),oe(E.Chip,"defaultIconColor",L("palette-grey-300")),oe(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(E.LinearProgress,"primaryBg",Pt(E.primary.main,.5)),oe(E.LinearProgress,"secondaryBg",Pt(E.secondary.main,.5)),oe(E.LinearProgress,"errorBg",Pt(E.error.main,.5)),oe(E.LinearProgress,"infoBg",Pt(E.info.main,.5)),oe(E.LinearProgress,"successBg",Pt(E.success.main,.5)),oe(E.LinearProgress,"warningBg",Pt(E.warning.main,.5)),oe(E.Skeleton,"bg",`rgba(${L("palette-text-primaryChannel")} / 0.13)`),oe(E.Slider,"primaryTrack",Pt(E.primary.main,.5)),oe(E.Slider,"secondaryTrack",Pt(E.secondary.main,.5)),oe(E.Slider,"errorTrack",Pt(E.error.main,.5)),oe(E.Slider,"infoTrack",Pt(E.info.main,.5)),oe(E.Slider,"successTrack",Pt(E.success.main,.5)),oe(E.Slider,"warningTrack",Pt(E.warning.main,.5));const G=Jd(E.background.default,.98);oe(E.SnackbarContent,"bg",G),oe(E.SnackbarContent,"color",co(()=>E.getContrastText(G))),oe(E.SpeedDialAction,"fabHoverBg",Jd(E.background.paper,.15)),oe(E.StepConnector,"border",L("palette-grey-600")),oe(E.StepContent,"border",L("palette-grey-600")),oe(E.Switch,"defaultColor",L("palette-grey-300")),oe(E.Switch,"defaultDisabledColor",L("palette-grey-600")),oe(E.Switch,"primaryDisabledColor",Pt(E.primary.main,.55)),oe(E.Switch,"secondaryDisabledColor",Pt(E.secondary.main,.55)),oe(E.Switch,"errorDisabledColor",Pt(E.error.main,.55)),oe(E.Switch,"infoDisabledColor",Pt(E.info.main,.55)),oe(E.Switch,"successDisabledColor",Pt(E.success.main,.55)),oe(E.Switch,"warningDisabledColor",Pt(E.warning.main,.55)),oe(E.TableCell,"border",Pt(Gd(E.divider,1),.68)),oe(E.Tooltip,"bg",Gd(E.grey[700],.92))}Bo(E.background,"default"),Bo(E.background,"paper"),Bo(E.common,"background"),Bo(E.common,"onBackground"),Bo(E,"divider"),Object.keys(E).forEach(G=>{const B=E[G];G!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&oe(E[G],"mainChannel",Al(Il(B.main))),B.light&&oe(E[G],"lightChannel",Al(Il(B.light))),B.dark&&oe(E[G],"darkChannel",Al(Il(B.dark))),B.contrastText&&oe(E[G],"contrastTextChannel",Al(Il(B.contrastText))),G==="text"&&(Bo(E[G],"primary"),Bo(E[G],"secondary")),G==="action"&&(B.active&&Bo(E[G],"active"),B.selected&&Bo(E[G],"selected")))})}),O=e.reduce((F,E)=>kr(F,E),O);const M={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:wz(O)},{vars:T,generateThemeVars:P,generateStyleSheets:j}=WF(O,M);return O.vars=T,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([F,E])=>{O[F]=E}),O.generateThemeVars=P,O.generateStyleSheets=j,O.generateSpacing=function(){return UD(f.spacing,yf(this))},O.getColorSchemeSelector=UF(l),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=i,O.unstable_sxConfig={...Su,...f==null?void 0:f.unstable_sxConfig},O.unstable_sx=function(E){return Fa({sx:E,theme:this})},O.toRuntimeSource=dM,O}function Vk(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:xb({...r===!0?{}:r.palette,mode:e})})}function ou(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...i}=t,l=a||"light",u=o==null?void 0:o[l],f={...o,...r?{[l]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return i0(t,...e);let h=r;"palette"in t||f[l]&&(f[l]!==!0?h=f[l].palette:l==="dark"&&(h={mode:"dark"}));const d=i0({...t,palette:h},...e);return d.defaultColorScheme=l,d.colorSchemes=f,d.palette.mode==="light"&&(d.colorSchemes.light={...f.light!==!0&&f.light,palette:d.palette},Vk(d,"dark",f.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:d.palette},Vk(d,"light",f.light)),d}return!r&&!("light"in f)&&l==="light"&&(f.light=!0),Cz({...i,colorSchemes:f,defaultColorScheme:l,...typeof n!="boolean"&&n},...e)}const Sb=ou();function ta(){const t=Cf(Sb);return t[Zn]||t}function Df(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Cr=t=>Df(t)&&t!=="classes",ie=GD({themeId:Zn,defaultTheme:Sb,rootShouldForwardProp:Cr});function Xk({theme:t,...e}){const r=Zn in t?t[Zn]:void 0;return R.jsx(sM,{...e,themeId:r?Zn:void 0,theme:r||t})}const Yd={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:$z,useColorScheme:EXe,getInitColorSchemeScript:TXe}=LF({themeId:Zn,theme:()=>ou({cssVariables:!0}),colorSchemeStorageKey:Yd.colorSchemeStorageKey,modeStorageKey:Yd.modeStorageKey,defaultColorScheme:{light:Yd.defaultLightColorScheme,dark:Yd.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:uM(t.palette,t.typography)};return e.unstable_sx=function(n){return Fa({sx:n,theme:this})},e}}),Ez=$z;function Gk({theme:t,...e}){return typeof t=="function"?R.jsx(Xk,{theme:t,...e}):"colorSchemes"in(Zn in t?t[Zn]:t)?R.jsx(Ez,{theme:t,...e}):R.jsx(Xk,{theme:t,...e})}function Tz(t){return R.jsx(KL,{...t,defaultTheme:Sb,themeId:Zn})}function Oz(t){return function(r){return R.jsx(Tz,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function Dz(){return gb}const Xe=NF;function ot(t){return MF(t)}function Mz(t){return tt("MuiSvgIcon",t)}Ze("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Nz=t=>{const{color:e,fontSize:r,classes:n}=t,o={root:["root",e!=="inherit"&&`color${he(e)}`,`fontSize${he(r)}`]};return nt(o,Mz,n)},Pz=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${he(r.color)}`],e[`fontSize${he(r.fontSize)}`]]}})(Xe(({theme:t})=>{var e,r,n,o,a,i,l,u,f,h,d,_,g,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(n=(r=(t.vars??t).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(l=t.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(f=t.typography)==null?void 0:f.pxToRem)==null?void 0:h.call(f,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,w])=>w&&w.main).map(([w])=>{var S,k;return{props:{color:w},style:{color:(k=(S=(t.vars??t).palette)==null?void 0:S[w])==null?void 0:k.main}}}),{props:{color:"action"},style:{color:(_=(d=(t.vars??t).palette)==null?void 0:d.action)==null?void 0:_.active}},{props:{color:"disabled"},style:{color:(b=(g=(t.vars??t).palette)==null?void 0:g.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),l0=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:d,viewBox:_="0 0 24 24",...g}=n,b=$.isValidElement(o)&&o.type==="svg",w={...n,color:i,component:l,fontSize:u,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:_,hasSvgAsChild:b},S={};h||(S.viewBox=_);const k=Nz(w);return R.jsxs(Pz,{as:l,className:Ee(k.root,a),focusable:"false",color:f,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...S,...g,...b&&o.props,ownerState:w,children:[b?o.props.children:o,d?R.jsx("title",{children:d}):null]})});l0.muiName="SvgIcon";function Ge(t,e){function r(n,o){return R.jsx(l0,{"data-testid":`${e}Icon`,ref:o,...n,children:t})}return r.muiName=l0.muiName,$.memo($.forwardRef(r))}function hM(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}function u0(t,e){return u0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},u0(t,e)}function mM(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,u0(t,e)}var _M=HO();const Kd=Ha(_M),Jk={disabled:!1},Bp=y.createContext(null);var Rz=function(e){return e.scrollTop},jl="unmounted",hs="exited",ms="entering",Fi="entered",d0="exiting",To=function(t){mM(e,t);function e(n,o){var a;a=t.call(this,n,o)||this;var i=o,l=i&&!i.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?l?(u=hs,a.appearStatus=ms):u=Fi:n.unmountOnExit||n.mountOnEnter?u=jl:u=hs,a.state={status:u},a.nextCallback=null,a}e.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===jl?{status:hs}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==ms&&i!==Fi&&(a=ms):(i===ms||i===Fi)&&(a=d0)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,l;return a=i=l=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:l}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===ms){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Kd.findDOMNode(this);i&&Rz(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hs&&this.setState({status:jl})},r.performEnter=function(o){var a=this,i=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[Kd.findDOMNode(this),l],f=u[0],h=u[1],d=this.getTimeouts(),_=l?d.appear:d.enter;if(!o&&!i||Jk.disabled){this.safeSetState({status:Fi},function(){a.props.onEntered(f)});return}this.props.onEnter(f,h),this.safeSetState({status:ms},function(){a.props.onEntering(f,h),a.onTransitionEnd(_,function(){a.safeSetState({status:Fi},function(){a.props.onEntered(f,h)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:Kd.findDOMNode(this);if(!a||Jk.disabled){this.safeSetState({status:hs},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:d0},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:hs},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Kd.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],f=u[0],h=u[1];this.props.addEndListener(f,h)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===jl)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=hM(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(Bp.Provider,{value:null},typeof i=="function"?i(o,l):y.cloneElement(y.Children.only(i),l))},e}(y.Component);To.contextType=Bp;To.propTypes={};function $i(){}To.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$i,onEntering:$i,onEntered:$i,onExit:$i,onExiting:$i,onExited:$i};To.UNMOUNTED=jl;To.EXITED=hs;To.ENTERING=ms;To.ENTERED=Fi;To.EXITING=d0;function Az(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kb(t,e){var r=function(a){return e&&$.isValidElement(a)?e(a):a},n=Object.create(null);return t&&$.Children.map(t,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function Iz(t,e){t=t||{},e=e||{};function r(h){return h in e?e[h]:t[h]}var n=Object.create(null),o=[];for(var a in t)a in e?o.length&&(n[a]=o,o=[]):o.push(a);var i,l={};for(var u in e){if(n[u])for(i=0;it.scrollTop;function Wp(t,e){const{timeout:r,easing:n,style:o={}}=t;return{duration:o.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:o.transitionDelay}}function Bz(t){return tt("MuiPaper",t)}Ze("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Wz=t=>{const{square:e,elevation:r,variant:n,classes:o}=t,a={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return nt(a,Bz,o)},Uz=ie("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(Xe(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),ku=$.forwardRef(function(e,r){var g;const n=ot({props:e,name:"MuiPaper"}),o=ta(),{className:a,component:i="div",elevation:l=1,square:u=!1,variant:f="elevation",...h}=n,d={...n,component:i,elevation:l,square:u,variant:f},_=Wz(d);return R.jsx(Uz,{as:i,ownerState:d,className:Ee(_.root,a),ref:r,...h,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":(g=o.vars.overlays)==null?void 0:g[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Nt("#fff",c0(l))}, ${Nt("#fff",c0(l))})`}},...h.style}})});function Sr(t,e){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,...l}=e,{component:u,slots:f={[t]:void 0},slotProps:h={[t]:void 0},...d}=a,_=f[t]||n,g=rM(h[t],o),{props:{component:b,...w},internalRef:S}=tM({className:r,...l,externalForwardedProps:t==="root"?d:void 0,externalSlotProps:g}),k=ar(S,g==null?void 0:g.ref,e.ref),D=t==="root"?b||u:b,C=eM(_,{...t==="root"&&!u&&!f[t]&&i,...t!=="root"&&!f[t]&&i,...w,...D&&{as:D},ref:k},o);return[_,C]}class Up{constructor(){we(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Up}static use(){const e=ZD(Up.create).current,[r,n]=$.useState(!1);return e.shouldMount=r,e.setShouldMount=n,$.useEffect(e.mountEffect,[r]),e}mount(){return this.mounted||(this.mounted=qz(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...e)})}stop(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...e)})}pulsate(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...e)})}}function Hz(){return Up.use()}function qz(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function Vz(t){const{className:e,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:u,timeout:f}=t,[h,d]=$.useState(!1),_=Ee(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),g={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ee(r.child,h&&r.childLeaving,n&&r.childPulsate);return!l&&!h&&d(!0),$.useEffect(()=>{if(!l&&u!=null){const w=setTimeout(u,f);return()=>{clearTimeout(w)}}},[u,l,f]),R.jsx("span",{className:_,style:g,children:R.jsx("span",{className:b})})}const Dn=Ze("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),p0=550,Xz=80,Gz=qa` 0% { transform: scale(0); opacity: 0.1; @@ -109,7 +109,7 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp transform: scale(1); opacity: 0.3; } -`,JF=qa` +`,Jz=qa` 0% { opacity: 1; } @@ -117,7 +117,7 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp 100% { opacity: 0; } -`,YF=qa` +`,Yz=qa` 0% { transform: scale(1); } @@ -129,14 +129,14 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp 100% { transform: scale(1); } -`,KF=ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ZF=ie(VF,{name:"MuiTouchRipple",slot:"Ripple"})` +`,Kz=ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Zz=ie(Vz,{name:"MuiTouchRipple",slot:"Ripple"})` opacity: 0; position: absolute; &.${Dn.rippleVisible} { opacity: 0.3; transform: scale(1); - animation-name: ${GF}; + animation-name: ${Gz}; animation-duration: ${p0}ms; animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; } @@ -156,7 +156,7 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp & .${Dn.childLeaving} { opacity: 0; - animation-name: ${JF}; + animation-name: ${Jz}; animation-duration: ${p0}ms; animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; } @@ -166,14 +166,14 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp /* @noflip */ left: 0px; top: 0; - animation-name: ${YF}; + animation-name: ${Yz}; animation-duration: 2500ms; animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; animation-iteration-count: infinite; animation-delay: 200ms; } -`,QF=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...l}=n,[u,f]=$.useState([]),h=$.useRef(0),d=$.useRef(null);$.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const _=$.useRef(!1),g=vs(),b=$.useRef(null),w=$.useRef(null),S=$.useCallback(O=>{const{pulsate:M,rippleX:T,rippleY:P,rippleSize:j,cb:z}=O;f(E=>[...E,R.jsx(ZF,{classes:{ripple:Ee(a.ripple,Dn.ripple),rippleVisible:Ee(a.rippleVisible,Dn.rippleVisible),ripplePulsate:Ee(a.ripplePulsate,Dn.ripplePulsate),child:Ee(a.child,Dn.child),childLeaving:Ee(a.childLeaving,Dn.childLeaving),childPulsate:Ee(a.childPulsate,Dn.childPulsate)},timeout:p0,pulsate:M,rippleX:T,rippleY:P,rippleSize:j},h.current)]),h.current+=1,d.current=z},[a]),k=$.useCallback((O={},M={},T=()=>{})=>{const{pulsate:P=!1,center:j=o||M.pulsate,fakeElement:z=!1}=M;if((O==null?void 0:O.type)==="mousedown"&&_.current){_.current=!1;return}(O==null?void 0:O.type)==="touchstart"&&(_.current=!0);const E=z?null:w.current,L=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let G,B,F;if(j||O===void 0||O.clientX===0&&O.clientY===0||!O.clientX&&!O.touches)G=Math.round(L.width/2),B=Math.round(L.height/2);else{const{clientX:H,clientY:K}=O.touches&&O.touches.length>0?O.touches[0]:O;G=Math.round(H-L.left),B=Math.round(K-L.top)}if(j)F=Math.sqrt((2*L.width**2+L.height**2)/3),F%2===0&&(F+=1);else{const H=Math.max(Math.abs((E?E.clientWidth:0)-G),G)*2+2,K=Math.max(Math.abs((E?E.clientHeight:0)-B),B)*2+2;F=Math.sqrt(H**2+K**2)}O!=null&&O.touches?b.current===null&&(b.current=()=>{S({pulsate:P,rippleX:G,rippleY:B,rippleSize:F,cb:T})},g.start(XF,()=>{b.current&&(b.current(),b.current=null)})):S({pulsate:P,rippleX:G,rippleY:B,rippleSize:F,cb:T})},[o,S,g]),D=$.useCallback(()=>{k({},{pulsate:!0})},[k]),C=$.useCallback((O,M)=>{if(g.clear(),(O==null?void 0:O.type)==="touchend"&&b.current){b.current(),b.current=null,g.start(0,()=>{C(O,M)});return}b.current=null,f(T=>T.length>0?T.slice(1):T),d.current=M},[g]);return $.useImperativeHandle(r,()=>({pulsate:D,start:k,stop:C}),[D,k,C]),R.jsx(KF,{className:Ee(Dn.root,a.root,i),ref:w,...l,children:R.jsx(Cb,{component:null,exit:!0,children:u})})});function e6(t){return tt("MuiButtonBase",t)}const t6=Ze("MuiButtonBase",["root","disabled","focusVisible"]),r6=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:o}=t,i=nt({root:["root",e&&"disabled",r&&"focusVisible"]},e6,o);return r&&n&&(i.root+=` ${n}`),i},n6=ie("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.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"},[`&.${t6.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Va=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:l,component:u="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:d=!1,focusRipple:_=!1,focusVisibleClassName:g,LinkComponent:b="a",onBlur:w,onClick:S,onContextMenu:k,onDragLeave:D,onFocus:C,onFocusVisible:O,onKeyDown:M,onKeyUp:T,onMouseDown:P,onMouseLeave:j,onMouseUp:z,onTouchEnd:E,onTouchMove:L,onTouchStart:G,tabIndex:B=0,TouchRippleProps:F,touchRippleRef:H,type:K,...ee}=n,Y=$.useRef(null),X=HF(),re=ar(X.ref,H),[I,Q]=$.useState(!1);f&&I&&Q(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{Q(!0),Y.current.focus()}}),[]);const me=X.shouldMount&&!h&&!f;$.useEffect(()=>{I&&_&&!h&&X.pulsate()},[h,_,I,X]);const pe=Wo(X,"start",P,d),ge=Wo(X,"stop",k,d),Ce=Wo(X,"stop",D,d),Re=Wo(X,"stop",z,d),Te=Wo(X,"stop",Se=>{I&&Se.preventDefault(),j&&j(Se)},d),Pe=Wo(X,"start",G,d),Oe=Wo(X,"stop",E,d),Fe=Wo(X,"stop",L,d),Me=Wo(X,"stop",Se=>{Ba(Se.target)||Q(!1),w&&w(Se)},!1),Be=Nr(Se=>{Y.current||(Y.current=Se.currentTarget),Ba(Se.target)&&(Q(!0),O&&O(Se)),C&&C(Se)}),We=()=>{const Se=Y.current;return u&&u!=="button"&&!(Se.tagName==="A"&&Se.href)},De=Nr(Se=>{_&&!Se.repeat&&I&&Se.key===" "&&X.stop(Se,()=>{X.start(Se)}),Se.target===Se.currentTarget&&We()&&Se.key===" "&&Se.preventDefault(),M&&M(Se),Se.target===Se.currentTarget&&We()&&Se.key==="Enter"&&!f&&(Se.preventDefault(),S&&S(Se))}),pt=Nr(Se=>{_&&Se.key===" "&&I&&!Se.defaultPrevented&&X.stop(Se,()=>{X.pulsate(Se)}),T&&T(Se),S&&Se.target===Se.currentTarget&&We()&&Se.key===" "&&!Se.defaultPrevented&&S(Se)});let ce=u;ce==="button"&&(ee.href||ee.to)&&(ce=b);const qe={};ce==="button"?(qe.type=K===void 0?"button":K,qe.disabled=f):(!ee.href&&!ee.to&&(qe.role="button"),f&&(qe["aria-disabled"]=f));const st=ar(r,Y),rt={...n,centerRipple:a,component:u,disabled:f,disableRipple:h,disableTouchRipple:d,focusRipple:_,tabIndex:B,focusVisible:I},Je=r6(rt);return R.jsxs(n6,{as:ce,className:Ee(Je.root,l),ownerState:rt,onBlur:Me,onClick:S,onContextMenu:ge,onFocus:Be,onKeyDown:De,onKeyUp:pt,onMouseDown:pe,onMouseLeave:Te,onMouseUp:Re,onDragLeave:Ce,onTouchEnd:Oe,onTouchMove:Fe,onTouchStart:Pe,ref:st,tabIndex:f?-1:B,type:K,...qe,...ee,children:[i,me?R.jsx(QF,{ref:re,center:a,...F}):null]})});function Wo(t,e,r,n=!1){return Nr(o=>(r&&r(o),n||t[e](o),!0))}function o6(t){return typeof t.main=="string"}function a6(t,e=[]){if(!o6(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function Jt(t=[]){return([,e])=>e&&a6(e,t)}function s6(t){return tt("MuiIconButton",t)}const i6=Ze("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),c6=t=>{const{classes:e,disabled:r,color:n,edge:o,size:a}=t,i={root:["root",r&&"disabled",n!=="default"&&`color${he(n)}`,o&&`edge${he(o)}`,`size${he(a)}`]};return nt(i,s6,e)},l6=ie(Va,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="default"&&e[`color${he(r.color)}`],r.edge&&e[`edge${he(r.edge)}`],e[`size${he(r.size)}`]]}})(Xe(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Xe(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${i6.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}}))),nr=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:l="default",disabled:u=!1,disableFocusRipple:f=!1,size:h="medium",...d}=n,_={...n,edge:o,color:l,disabled:u,disableFocusRipple:f,size:h},g=c6(_);return R.jsx(l6,{className:Ee(g.root,i),centerRipple:!0,focusRipple:!f,disabled:u,ref:r,...d,ownerState:_,children:a})});function u6(t){return tt("MuiTypography",t)}const Yk=Ze("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),d6={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},p6=DF(),f6=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=t,l={root:["root",a,t.align!=="inherit"&&`align${he(e)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return nt(l,u6,i)},h6=ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${he(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(Xe(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(t.palette).filter(Jt()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${he(r)}`},style:{color:(t.vars||t).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Kk={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bo=$.forwardRef(function(e,r){const{color:n,...o}=ot({props:e,name:"MuiTypography"}),a=!d6[n],i=p6({...o,...a&&{color:n}}),{align:l="inherit",className:u,component:f,gutterBottom:h=!1,noWrap:d=!1,paragraph:_=!1,variant:g="body1",variantMapping:b=Kk,...w}=i,S={...i,align:l,color:n,className:u,component:f,gutterBottom:h,noWrap:d,paragraph:_,variant:g,variantMapping:b},k=f||(_?"p":b[g]||Kk[g])||"span",D=f6(S);return R.jsx(h6,{as:k,ref:r,className:Ee(D.root,u),...w,ownerState:S,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...w.style}})});function m6(t){return tt("MuiAppBar",t)}Ze("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const _6=t=>{const{color:e,position:r,classes:n}=t,o={root:["root",`color${he(e)}`,`position${he(r)}`]};return nt(o,m6,n)},Zk=(t,e)=>t?`${t==null?void 0:t.replace(")","")}, ${e})`:e,g6=ie(ku,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${he(r.position)}`],e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).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":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(Jt(["contrastText"])).map(([e])=>({props:{color:e},style:{"--AppBar-background":(t.vars??t).palette[e].main,"--AppBar-color":(t.vars??t).palette[e].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)",...t.applyStyles("dark",{backgroundColor:t.vars?Zk(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?Zk(t.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)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),yM=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:l="fixed",...u}=n,f={...n,color:a,position:l,enableColorOnDark:i},h=_6(f);return R.jsx(g6,{square:!0,component:"header",ownerState:f,elevation:4,className:Ee(h.root,o,l==="fixed"&&"mui-fixed"),ref:r,...u})});var on="top",jn="bottom",Ln="right",an="left",$b="auto",Cu=[on,jn,Ln,an],xc="start",au="end",y6="clippingParents",vM="viewport",bl="popper",v6="reference",Qk=Cu.reduce(function(t,e){return t.concat([e+"-"+xc,e+"-"+au])},[]),bM=[].concat(Cu,[$b]).reduce(function(t,e){return t.concat([e,e+"-"+xc,e+"-"+au])},[]),b6="beforeRead",w6="read",x6="afterRead",S6="beforeMain",k6="main",C6="afterMain",$6="beforeWrite",E6="write",T6="afterWrite",O6=[b6,w6,x6,S6,k6,C6,$6,E6,T6];function $o(t){return t?(t.nodeName||"").toLowerCase():null}function vn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ps(t){var e=vn(t).Element;return t instanceof e||t instanceof Element}function In(t){var e=vn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Eb(t){if(typeof ShadowRoot>"u")return!1;var e=vn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function D6(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},a=e.elements[r];!In(a)||!$o(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var l=o[i];l===!1?a.removeAttribute(i):a.setAttribute(i,l===!0?"":l)}))})}function M6(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],a=e.attributes[n]||{},i=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),l=i.reduce(function(u,f){return u[f]="",u},{});!In(o)||!$o(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const N6={name:"applyStyles",enabled:!0,phase:"write",fn:D6,effect:M6,requires:["computeStyles"]};function So(t){return t.split("-")[0]}var Ss=Math.max,Hp=Math.min,Sc=Math.round;function f0(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function wM(){return!/^((?!chrome|android).)*safari/i.test(f0())}function kc(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,a=1;e&&In(t)&&(o=t.offsetWidth>0&&Sc(n.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Sc(n.height)/t.offsetHeight||1);var i=Ps(t)?vn(t):window,l=i.visualViewport,u=!wM()&&r,f=(n.left+(u&&l?l.offsetLeft:0))/o,h=(n.top+(u&&l?l.offsetTop:0))/a,d=n.width/o,_=n.height/a;return{width:d,height:_,top:h,right:f+d,bottom:h+_,left:f,x:f,y:h}}function Tb(t){var e=kc(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function xM(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Eb(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Qo(t){return vn(t).getComputedStyle(t)}function P6(t){return["table","td","th"].indexOf($o(t))>=0}function Xa(t){return((Ps(t)?t.ownerDocument:t.document)||window.document).documentElement}function Mf(t){return $o(t)==="html"?t:t.assignedSlot||t.parentNode||(Eb(t)?t.host:null)||Xa(t)}function eC(t){return!In(t)||Qo(t).position==="fixed"?null:t.offsetParent}function R6(t){var e=/firefox/i.test(f0()),r=/Trident/i.test(f0());if(r&&In(t)){var n=Qo(t);if(n.position==="fixed")return null}var o=Mf(t);for(Eb(o)&&(o=o.host);In(o)&&["html","body"].indexOf($o(o))<0;){var a=Qo(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function $u(t){for(var e=vn(t),r=eC(t);r&&P6(r)&&Qo(r).position==="static";)r=eC(r);return r&&($o(r)==="html"||$o(r)==="body"&&Qo(r).position==="static")?e:r||R6(t)||e}function Ob(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Vl(t,e,r){return Ss(t,Hp(e,r))}function A6(t,e,r){var n=Vl(t,e,r);return n>r?r:n}function SM(){return{top:0,right:0,bottom:0,left:0}}function kM(t){return Object.assign({},SM(),t)}function CM(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var I6=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,kM(typeof e!="number"?e:CM(e,Cu))};function j6(t){var e,r=t.state,n=t.name,o=t.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,l=So(r.placement),u=Ob(l),f=[an,Ln].indexOf(l)>=0,h=f?"height":"width";if(!(!a||!i)){var d=I6(o.padding,r),_=Tb(a),g=u==="y"?on:an,b=u==="y"?jn:Ln,w=r.rects.reference[h]+r.rects.reference[u]-i[u]-r.rects.popper[h],S=i[u]-r.rects.reference[u],k=$u(a),D=k?u==="y"?k.clientHeight||0:k.clientWidth||0:0,C=w/2-S/2,O=d[g],M=D-_[h]-d[b],T=D/2-_[h]/2+C,P=Vl(O,T,M),j=u;r.modifiersData[n]=(e={},e[j]=P,e.centerOffset=P-T,e)}}function L6(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||xM(e.elements.popper,o)&&(e.elements.arrow=o))}const z6={name:"arrow",enabled:!0,phase:"main",fn:j6,effect:L6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Cc(t){return t.split("-")[1]}var F6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function B6(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:Sc(r*o)/o||0,y:Sc(n*o)/o||0}}function tC(t){var e,r=t.popper,n=t.popperRect,o=t.placement,a=t.variation,i=t.offsets,l=t.position,u=t.gpuAcceleration,f=t.adaptive,h=t.roundOffsets,d=t.isFixed,_=i.x,g=_===void 0?0:_,b=i.y,w=b===void 0?0:b,S=typeof h=="function"?h({x:g,y:w}):{x:g,y:w};g=S.x,w=S.y;var k=i.hasOwnProperty("x"),D=i.hasOwnProperty("y"),C=an,O=on,M=window;if(f){var T=$u(r),P="clientHeight",j="clientWidth";if(T===vn(r)&&(T=Xa(r),Qo(T).position!=="static"&&l==="absolute"&&(P="scrollHeight",j="scrollWidth")),T=T,o===on||(o===an||o===Ln)&&a===au){O=jn;var z=d&&T===M&&M.visualViewport?M.visualViewport.height:T[P];w-=z-n.height,w*=u?1:-1}if(o===an||(o===on||o===jn)&&a===au){C=Ln;var E=d&&T===M&&M.visualViewport?M.visualViewport.width:T[j];g-=E-n.width,g*=u?1:-1}}var L=Object.assign({position:l},f&&F6),G=h===!0?B6({x:g,y:w},vn(r)):{x:g,y:w};if(g=G.x,w=G.y,u){var B;return Object.assign({},L,(B={},B[O]=D?"0":"",B[C]=k?"0":"",B.transform=(M.devicePixelRatio||1)<=1?"translate("+g+"px, "+w+"px)":"translate3d("+g+"px, "+w+"px, 0)",B))}return Object.assign({},L,(e={},e[O]=D?w+"px":"",e[C]=k?g+"px":"",e.transform="",e))}function W6(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,l=r.roundOffsets,u=l===void 0?!0:l,f={placement:So(e.placement),variation:Cc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,tC(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,tC(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const U6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:W6,data:{}};var Zd={passive:!0};function H6(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,l=i===void 0?!0:i,u=vn(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&f.forEach(function(h){h.addEventListener("scroll",r.update,Zd)}),l&&u.addEventListener("resize",r.update,Zd),function(){a&&f.forEach(function(h){h.removeEventListener("scroll",r.update,Zd)}),l&&u.removeEventListener("resize",r.update,Zd)}}const q6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:H6,data:{}};var V6={left:"right",right:"left",bottom:"top",top:"bottom"};function Ep(t){return t.replace(/left|right|bottom|top/g,function(e){return V6[e]})}var X6={start:"end",end:"start"};function rC(t){return t.replace(/start|end/g,function(e){return X6[e]})}function Db(t){var e=vn(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Mb(t){return kc(Xa(t)).left+Db(t).scrollLeft}function G6(t,e){var r=vn(t),n=Xa(t),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;var f=wM();(f||!f&&e==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l+Mb(t),y:u}}function J6(t){var e,r=Xa(t),n=Db(t),o=(e=t.ownerDocument)==null?void 0:e.body,a=Ss(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Ss(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+Mb(t),u=-n.scrollTop;return Qo(o||r).direction==="rtl"&&(l+=Ss(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:u}}function Nb(t){var e=Qo(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function $M(t){return["html","body","#document"].indexOf($o(t))>=0?t.ownerDocument.body:In(t)&&Nb(t)?t:$M(Mf(t))}function Xl(t,e){var r;e===void 0&&(e=[]);var n=$M(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),a=vn(n),i=o?[a].concat(a.visualViewport||[],Nb(n)?n:[]):n,l=e.concat(i);return o?l:l.concat(Xl(Mf(i)))}function h0(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Y6(t,e){var r=kc(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function nC(t,e,r){return e===vM?h0(G6(t,r)):Ps(e)?Y6(e,r):h0(J6(Xa(t)))}function K6(t){var e=Xl(Mf(t)),r=["absolute","fixed"].indexOf(Qo(t).position)>=0,n=r&&In(t)?$u(t):t;return Ps(n)?e.filter(function(o){return Ps(o)&&xM(o,n)&&$o(o)!=="body"}):[]}function Z6(t,e,r,n){var o=e==="clippingParents"?K6(t):[].concat(e),a=[].concat(o,[r]),i=a[0],l=a.reduce(function(u,f){var h=nC(t,f,n);return u.top=Ss(h.top,u.top),u.right=Hp(h.right,u.right),u.bottom=Hp(h.bottom,u.bottom),u.left=Ss(h.left,u.left),u},nC(t,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function EM(t){var e=t.reference,r=t.element,n=t.placement,o=n?So(n):null,a=n?Cc(n):null,i=e.x+e.width/2-r.width/2,l=e.y+e.height/2-r.height/2,u;switch(o){case on:u={x:i,y:e.y-r.height};break;case jn:u={x:i,y:e.y+e.height};break;case Ln:u={x:e.x+e.width,y:l};break;case an:u={x:e.x-r.width,y:l};break;default:u={x:e.x,y:e.y}}var f=o?Ob(o):null;if(f!=null){var h=f==="y"?"height":"width";switch(a){case xc:u[f]=u[f]-(e[h]/2-r[h]/2);break;case au:u[f]=u[f]+(e[h]/2-r[h]/2);break}}return u}function su(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,a=r.strategy,i=a===void 0?t.strategy:a,l=r.boundary,u=l===void 0?y6:l,f=r.rootBoundary,h=f===void 0?vM:f,d=r.elementContext,_=d===void 0?bl:d,g=r.altBoundary,b=g===void 0?!1:g,w=r.padding,S=w===void 0?0:w,k=kM(typeof S!="number"?S:CM(S,Cu)),D=_===bl?v6:bl,C=t.rects.popper,O=t.elements[b?D:_],M=Z6(Ps(O)?O:O.contextElement||Xa(t.elements.popper),u,h,i),T=kc(t.elements.reference),P=EM({reference:T,element:C,strategy:"absolute",placement:o}),j=h0(Object.assign({},C,P)),z=_===bl?j:T,E={top:M.top-z.top+k.top,bottom:z.bottom-M.bottom+k.bottom,left:M.left-z.left+k.left,right:z.right-M.right+k.right},L=t.modifiersData.offset;if(_===bl&&L){var G=L[o];Object.keys(E).forEach(function(B){var F=[Ln,jn].indexOf(B)>=0?1:-1,H=[on,jn].indexOf(B)>=0?"y":"x";E[B]+=G[H]*F})}return E}function Q6(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,l=r.flipVariations,u=r.allowedAutoPlacements,f=u===void 0?bM:u,h=Cc(n),d=h?l?Qk:Qk.filter(function(b){return Cc(b)===h}):Cu,_=d.filter(function(b){return f.indexOf(b)>=0});_.length===0&&(_=d);var g=_.reduce(function(b,w){return b[w]=su(t,{placement:w,boundary:o,rootBoundary:a,padding:i})[So(w)],b},{});return Object.keys(g).sort(function(b,w){return g[b]-g[w]})}function e8(t){if(So(t)===$b)return[];var e=Ep(t);return[rC(t),e,rC(e)]}function t8(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!0:i,u=r.fallbackPlacements,f=r.padding,h=r.boundary,d=r.rootBoundary,_=r.altBoundary,g=r.flipVariations,b=g===void 0?!0:g,w=r.allowedAutoPlacements,S=e.options.placement,k=So(S),D=k===S,C=u||(D||!b?[Ep(S)]:e8(S)),O=[S].concat(C).reduce(function(pe,ge){return pe.concat(So(ge)===$b?Q6(e,{placement:ge,boundary:h,rootBoundary:d,padding:f,flipVariations:b,allowedAutoPlacements:w}):ge)},[]),M=e.rects.reference,T=e.rects.popper,P=new Map,j=!0,z=O[0],E=0;E=0,H=F?"width":"height",K=su(e,{placement:L,boundary:h,rootBoundary:d,altBoundary:_,padding:f}),ee=F?B?Ln:an:B?jn:on;M[H]>T[H]&&(ee=Ep(ee));var Y=Ep(ee),X=[];if(a&&X.push(K[G]<=0),l&&X.push(K[ee]<=0,K[Y]<=0),X.every(function(pe){return pe})){z=L,j=!1;break}P.set(L,X)}if(j)for(var re=b?3:1,I=function(ge){var Ce=O.find(function(Re){var Te=P.get(Re);if(Te)return Te.slice(0,ge).every(function(Pe){return Pe})});if(Ce)return z=Ce,"break"},Q=re;Q>0;Q--){var me=I(Q);if(me==="break")break}e.placement!==z&&(e.modifiersData[n]._skip=!0,e.placement=z,e.reset=!0)}}const r8={name:"flip",enabled:!0,phase:"main",fn:t8,requiresIfExists:["offset"],data:{_skip:!1}};function oC(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function aC(t){return[on,Ln,jn,an].some(function(e){return t[e]>=0})}function n8(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,i=su(e,{elementContext:"reference"}),l=su(e,{altBoundary:!0}),u=oC(i,n),f=oC(l,o,a),h=aC(u),d=aC(f);e.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}const o8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:n8};function a8(t,e,r){var n=So(t),o=[an,on].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[an,Ln].indexOf(n)>=0?{x:l,y:i}:{x:i,y:l}}function s8(t){var e=t.state,r=t.options,n=t.name,o=r.offset,a=o===void 0?[0,0]:o,i=bM.reduce(function(h,d){return h[d]=a8(d,e.rects,a),h},{}),l=i[e.placement],u=l.x,f=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=i}const i8={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:s8};function c8(t){var e=t.state,r=t.name;e.modifiersData[r]=EM({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const l8={name:"popperOffsets",enabled:!0,phase:"read",fn:c8,data:{}};function u8(t){return t==="x"?"y":"x"}function d8(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!1:i,u=r.boundary,f=r.rootBoundary,h=r.altBoundary,d=r.padding,_=r.tether,g=_===void 0?!0:_,b=r.tetherOffset,w=b===void 0?0:b,S=su(e,{boundary:u,rootBoundary:f,padding:d,altBoundary:h}),k=So(e.placement),D=Cc(e.placement),C=!D,O=Ob(k),M=u8(O),T=e.modifiersData.popperOffsets,P=e.rects.reference,j=e.rects.popper,z=typeof w=="function"?w(Object.assign({},e.rects,{placement:e.placement})):w,E=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,G={x:0,y:0};if(T){if(a){var B,F=O==="y"?on:an,H=O==="y"?jn:Ln,K=O==="y"?"height":"width",ee=T[O],Y=ee+S[F],X=ee-S[H],re=g?-j[K]/2:0,I=D===xc?P[K]:j[K],Q=D===xc?-j[K]:-P[K],me=e.elements.arrow,pe=g&&me?Tb(me):{width:0,height:0},ge=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:SM(),Ce=ge[F],Re=ge[H],Te=Vl(0,P[K],pe[K]),Pe=C?P[K]/2-re-Te-Ce-E.mainAxis:I-Te-Ce-E.mainAxis,Oe=C?-P[K]/2+re+Te+Re+E.mainAxis:Q+Te+Re+E.mainAxis,Fe=e.elements.arrow&&$u(e.elements.arrow),Me=Fe?O==="y"?Fe.clientTop||0:Fe.clientLeft||0:0,Be=(B=L==null?void 0:L[O])!=null?B:0,We=ee+Pe-Be-Me,De=ee+Oe-Be,pt=Vl(g?Hp(Y,We):Y,ee,g?Ss(X,De):X);T[O]=pt,G[O]=pt-ee}if(l){var ce,qe=O==="x"?on:an,st=O==="x"?jn:Ln,rt=T[M],Je=M==="y"?"height":"width",Se=rt+S[qe],ut=rt-S[st],q=[on,an].indexOf(k)!==-1,ne=(ce=L==null?void 0:L[M])!=null?ce:0,ye=q?Se:rt-P[Je]-j[Je]-ne+E.altAxis,we=q?rt+P[Je]+j[Je]-ne-E.altAxis:ut,ke=g&&q?A6(ye,rt,we):Vl(g?ye:Se,rt,g?we:ut);T[M]=ke,G[M]=ke-rt}e.modifiersData[n]=G}}const p8={name:"preventOverflow",enabled:!0,phase:"main",fn:d8,requiresIfExists:["offset"]};function f8(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function h8(t){return t===vn(t)||!In(t)?Db(t):f8(t)}function m8(t){var e=t.getBoundingClientRect(),r=Sc(e.width)/t.offsetWidth||1,n=Sc(e.height)/t.offsetHeight||1;return r!==1||n!==1}function _8(t,e,r){r===void 0&&(r=!1);var n=In(e),o=In(e)&&m8(e),a=Xa(e),i=kc(t,o,r),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&(($o(e)!=="body"||Nb(a))&&(l=h8(e)),In(e)?(u=kc(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Mb(a))),{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}function g8(t){var e=new Map,r=new Set,n=[];t.forEach(function(a){e.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(l){if(!r.has(l)){var u=e.get(l);u&&o(u)}}),n.push(a)}return t.forEach(function(a){r.has(a.name)||o(a)}),n}function y8(t){var e=g8(t);return O6.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function v8(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function b8(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var sC={placement:"bottom",modifiers:[],strategy:"absolute"};function iC(){for(var t=arguments.length,e=new Array(t),r=0;r{a||l(k8(o)||document.body)},[o,a]),yn(()=>{if(i&&!a)return a0(r,i),()=>{a0(r,null)}},[r,i,a]),a){if($.isValidElement(n)){const f={ref:u};return $.cloneElement(n,f)}return n}return i&&_M.createPortal(n,i)});function C8(t){return tt("MuiPopper",t)}Ze("MuiPopper",["root"]);function $8(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function m0(t){return typeof t=="function"?t():t}function E8(t){return t.nodeType!==void 0}const T8=t=>{const{classes:e}=t;return nt({root:["root"]},C8,e)},O8={},D8=$.forwardRef(function(e,r){const{anchorEl:n,children:o,direction:a,disablePortal:i,modifiers:l,open:u,placement:f,popperOptions:h,popperRef:d,slotProps:_={},slots:g={},TransitionProps:b,ownerState:w,...S}=e,k=$.useRef(null),D=ar(k,r),C=$.useRef(null),O=ar(C,d),M=$.useRef(O);yn(()=>{M.current=O},[O]),$.useImperativeHandle(d,()=>C.current,[]);const T=$8(f,a),[P,j]=$.useState(T),[z,E]=$.useState(m0(n));$.useEffect(()=>{C.current&&C.current.forceUpdate()}),$.useEffect(()=>{n&&E(m0(n))},[n]),yn(()=>{if(!z||!u)return;const H=Y=>{j(Y.placement)};let K=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{H(Y)}}];l!=null&&(K=K.concat(l)),h&&h.modifiers!=null&&(K=K.concat(h.modifiers));const ee=S8(z,k.current,{placement:T,...h,modifiers:K});return M.current(ee),()=>{ee.destroy(),M.current(null)}},[z,i,l,u,h,T]);const L={placement:P};b!==null&&(L.TransitionProps=b);const G=T8(e),B=g.root??"div",F=Dr({elementType:B,externalSlotProps:_.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:D},ownerState:e,className:G.root});return R.jsx(B,{...F,children:typeof o=="function"?o(L):o})}),M8=$.forwardRef(function(e,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:f,open:h,placement:d="bottom",popperOptions:_=O8,popperRef:g,style:b,transition:w=!1,slotProps:S={},slots:k={},...D}=e,[C,O]=$.useState(!0),M=()=>{O(!1)},T=()=>{O(!0)};if(!u&&!h&&(!w||C))return null;let P;if(a)P=a;else if(n){const E=m0(n);P=E&&E8(E)?cr(E).body:cr(null).body}const j=!h&&u&&(!w||C)?"none":void 0,z=w?{in:h,onEnter:M,onExited:T}:void 0;return R.jsx(TM,{disablePortal:l,container:P,children:R.jsx(D8,{anchorEl:n,direction:i,disablePortal:l,modifiers:f,ref:r,open:w?!C:h,placement:d,popperOptions:_,popperRef:g,slotProps:S,slots:k,...D,style:{position:"fixed",top:0,left:0,display:j,...b},TransitionProps:z,children:o})})}),N8=ie(M8,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),OM=$.forwardRef(function(e,r){const n=Us(),o=ot({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:u,container:f,disablePortal:h,keepMounted:d,modifiers:_,open:g,placement:b,popperOptions:w,popperRef:S,transition:k,slots:D,slotProps:C,...O}=o,M=(D==null?void 0:D.root)??(l==null?void 0:l.Root),T={anchorEl:a,container:f,disablePortal:h,keepMounted:d,modifiers:_,open:g,placement:b,popperOptions:w,popperRef:S,transition:k,...O};return R.jsx(N8,{as:i,direction:n?"rtl":"ltr",slots:{root:M},slotProps:C??u,...T,ref:r})});function Qd(t){return parseInt(t,10)||0}const P8={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function R8(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflowing}const A8=$.forwardRef(function(e,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:l,...u}=e,{current:f}=$.useRef(l!=null),h=$.useRef(null),d=ar(r,h),_=$.useRef(null),g=$.useRef(null),b=$.useCallback(()=>{const k=h.current,C=eo(k).getComputedStyle(k);if(C.width==="0px")return{outerHeightStyle:0,overflowing:!1};const O=g.current;O.style.width=C.width,O.value=k.value||e.placeholder||"x",O.value.slice(-1)===` -`&&(O.value+=" ");const M=C.boxSizing,T=Qd(C.paddingBottom)+Qd(C.paddingTop),P=Qd(C.borderBottomWidth)+Qd(C.borderTopWidth),j=O.scrollHeight;O.value="x";const z=O.scrollHeight;let E=j;a&&(E=Math.max(Number(a)*z,E)),o&&(E=Math.min(Number(o)*z,E)),E=Math.max(E,z);const L=E+(M==="border-box"?T+P:0),G=Math.abs(E-j)<=1;return{outerHeightStyle:L,overflowing:G}},[o,a,e.placeholder]),w=$.useCallback(()=>{const k=b();if(R8(k))return;const D=k.outerHeightStyle,C=h.current;_.current!==D&&(_.current=D,C.style.height=`${D}px`),C.style.overflow=k.overflowing?"hidden":""},[b]);yn(()=>{const k=()=>{w()};let D;const C=Ef(k),O=h.current,M=eo(O);M.addEventListener("resize",C);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(k),T.observe(O)),()=>{C.clear(),cancelAnimationFrame(D),M.removeEventListener("resize",C),T&&T.disconnect()}},[b,w]),yn(()=>{w()});const S=k=>{f||w(),n&&n(k)};return R.jsxs($.Fragment,{children:[R.jsx("textarea",{value:l,onChange:S,ref:d,rows:a,style:i,...u}),R.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:g,tabIndex:-1,style:{...P8.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function ks(t){return typeof t=="string"}function Ga({props:t,states:e,muiFormControl:r}){return e.reduce((n,o)=>(n[o]=t[o],r&&typeof t[o]>"u"&&(n[o]=r[o]),n),{})}const Pb=$.createContext(void 0);function Oo(){return $.useContext(Pb)}function cC(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function qp(t,e=!1){return t&&(cC(t.value)&&t.value!==""||e&&cC(t.defaultValue)&&t.defaultValue!=="")}function I8(t){return t.startAdornment}function j8(t){return tt("MuiInputBase",t)}const $c=Ze("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var lC;const Nf=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${he(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},Pf=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},L8=t=>{const{classes:e,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:u,hiddenLabel:f,multiline:h,readOnly:d,size:_,startAdornment:g,type:b}=t,w={root:["root",`color${he(r)}`,n&&"disabled",o&&"error",u&&"fullWidth",i&&"focused",l&&"formControl",_&&_!=="medium"&&`size${he(_)}`,h&&"multiline",g&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",b==="search"&&"inputTypeSearch",h&&"inputMultiline",_==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return nt(w,j8,e)},Rf=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Nf})(Xe(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${$c.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Af=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Pf})(Xe(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${$c.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${$c.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.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:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),uC=OF({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Rb=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,color:u,components:f={},componentsProps:h={},defaultValue:d,disabled:_,disableInjectingGlobalStyles:g,endAdornment:b,error:w,fullWidth:S=!1,id:k,inputComponent:D="input",inputProps:C={},inputRef:O,margin:M,maxRows:T,minRows:P,multiline:j=!1,name:z,onBlur:E,onChange:L,onClick:G,onFocus:B,onKeyDown:F,onKeyUp:H,placeholder:K,readOnly:ee,renderSuffix:Y,rows:X,size:re,slotProps:I={},slots:Q={},startAdornment:me,type:pe="text",value:ge,...Ce}=n,Re=C.value!=null?C.value:ge,{current:Te}=$.useRef(Re!=null),Pe=$.useRef(),Oe=$.useCallback($e=>{},[]),Fe=ar(Pe,O,C.ref,Oe),[Me,Be]=$.useState(!1),We=Oo(),De=Ga({props:n,muiFormControl:We,states:["color","disabled","error","hiddenLabel","size","required","filled"]});De.focused=We?We.focused:Me,$.useEffect(()=>{!We&&_&&Me&&(Be(!1),E&&E())},[We,_,Me,E]);const pt=We&&We.onFilled,ce=We&&We.onEmpty,qe=$.useCallback($e=>{qp($e)?pt&&pt():ce&&ce()},[pt,ce]);yn(()=>{Te&&qe({value:Re})},[Re,qe,Te]);const st=$e=>{B&&B($e),C.onFocus&&C.onFocus($e),We&&We.onFocus?We.onFocus($e):Be(!0)},rt=$e=>{E&&E($e),C.onBlur&&C.onBlur($e),We&&We.onBlur?We.onBlur($e):Be(!1)},Je=($e,...Ye)=>{if(!Te){const lt=$e.target||Pe.current;if(lt==null)throw new Error(Zo(1));qe({value:lt.value})}C.onChange&&C.onChange($e,...Ye),L&&L($e,...Ye)};$.useEffect(()=>{qe(Pe.current)},[]);const Se=$e=>{Pe.current&&$e.currentTarget===$e.target&&Pe.current.focus(),G&&G($e)};let ut=D,q=C;j&&ut==="input"&&(X?q={type:void 0,minRows:X,maxRows:X,...q}:q={type:void 0,maxRows:T,minRows:P,...q},ut=A8);const ne=$e=>{qe($e.animationName==="mui-auto-fill-cancel"?Pe.current:{value:"x"})};$.useEffect(()=>{We&&We.setAdornedStart(!!me)},[We,me]);const ye={...n,color:De.color||"primary",disabled:De.disabled,endAdornment:b,error:De.error,focused:De.focused,formControl:We,fullWidth:S,hiddenLabel:De.hiddenLabel,multiline:j,size:De.size,startAdornment:me,type:pe},we=L8(ye),ke=Q.root||f.Root||Rf,ve=I.root||h.root||{},Ve=Q.input||f.Input||Af;return q={...q,...I.input??h.input},R.jsxs($.Fragment,{children:[!g&&typeof uC=="function"&&(lC||(lC=R.jsx(uC,{}))),R.jsxs(ke,{...ve,ref:r,onClick:Se,...Ce,...!ks(ke)&&{ownerState:{...ye,...ve.ownerState}},className:Ee(we.root,ve.className,l,ee&&"MuiInputBase-readOnly"),children:[me,R.jsx(Pb.Provider,{value:null,children:R.jsx(Ve,{"aria-invalid":De.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:d,disabled:De.disabled,id:k,onAnimationStart:ne,name:z,placeholder:K,readOnly:ee,required:De.required,rows:X,value:Re,onKeyDown:F,onKeyUp:H,type:pe,...q,...!ks(Ve)&&{as:ut,ownerState:{...ye,...q.ownerState}},ref:Fe,className:Ee(we.input,q.className,ee&&"MuiInputBase-readOnly"),onBlur:rt,onChange:Je,onFocus:st})}),b,Y?Y({...De,startAdornment:me}):null]})]})});function z8(t){return tt("MuiInput",t)}const wl={...$c,...Ze("MuiInput",["root","underline","input"])};function F8(t){return tt("MuiOutlinedInput",t)}const lo={...$c,...Ze("MuiOutlinedInput",["root","notchedOutline","input"])};function B8(t){return tt("MuiFilledInput",t)}const ls={...$c,...Ze("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},W8=Ge(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),U8={entering:{opacity:1},entered:{opacity:1}},DM=$.forwardRef(function(e,r){const n=ta(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,easing:u,in:f,onEnter:h,onEntered:d,onEntering:_,onExit:g,onExited:b,onExiting:w,style:S,timeout:k=o,TransitionComponent:D=To,...C}=e,O=$.useRef(null),M=ar(O,Ws(l),r),T=F=>H=>{if(F){const K=O.current;H===void 0?F(K):F(K,H)}},P=T(_),j=T((F,H)=>{gM(F);const K=Wp({style:S,timeout:k,easing:u},{mode:"enter"});F.style.webkitTransition=n.transitions.create("opacity",K),F.style.transition=n.transitions.create("opacity",K),h&&h(F,H)}),z=T(d),E=T(w),L=T(F=>{const H=Wp({style:S,timeout:k,easing:u},{mode:"exit"});F.style.webkitTransition=n.transitions.create("opacity",H),F.style.transition=n.transitions.create("opacity",H),g&&g(F)}),G=T(b),B=F=>{a&&a(O.current,F)};return R.jsx(D,{appear:i,in:f,nodeRef:O,onEnter:j,onEntered:z,onEntering:P,onExit:L,onExited:G,onExiting:E,addEndListener:B,timeout:k,...C,children:(F,{ownerState:H,...K})=>$.cloneElement(l,{style:{opacity:0,visibility:F==="exited"&&!f?"hidden":void 0,...U8[F],...S,...l.props.style},ref:M,...K})})});function H8(t){return tt("MuiBackdrop",t)}Ze("MuiBackdrop",["root","invisible"]);const q8=t=>{const{classes:e,invisible:r}=t;return nt({root:["root",r&&"invisible"]},H8,e)},V8=ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),MM=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiBackdrop"}),{children:o,className:a,component:i="div",invisible:l=!1,open:u,components:f={},componentsProps:h={},slotProps:d={},slots:_={},TransitionComponent:g,transitionDuration:b,...w}=n,S={...n,component:i,invisible:l},k=q8(S),D={transition:g,root:f.Root,..._},C={...h,...d},O={slots:D,slotProps:C},[M,T]=Sr("root",{elementType:V8,externalForwardedProps:O,className:Ee(k.root,a),ownerState:S}),[P,j]=Sr("transition",{elementType:DM,externalForwardedProps:O,ownerState:S});return R.jsx(P,{in:u,timeout:b,...w,...j,children:R.jsx(M,{"aria-hidden":!0,...T,classes:k,ref:r,children:o})})}),X8=Ze("MuiBox",["root"]),G8=ou(),wt=ez({themeId:Zn,defaultTheme:G8,defaultClassName:X8.root,generateClassName:HD.generate}),J8=Ge(R.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"),Y8=ie(Va)(Xe(({theme:t})=>({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`,...t.palette.mode==="light"?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...t.palette.mode==="light"?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}},"&:active":{boxShadow:t.shadows[0],...t.palette.mode==="light"?{backgroundColor:Fp(t.palette.grey[200],.12)}:{backgroundColor:Fp(t.palette.grey[600],.12)}}}))),K8=ie(J8)({width:24,height:16});function Z8(t){const{slots:e={},slotProps:r={},...n}=t,o=t;return R.jsx("li",{children:R.jsx(Y8,{focusRipple:!0,...n,ownerState:o,children:R.jsx(K8,{as:e.CollapsedIcon,ownerState:o,...r.collapsedIcon})})})}function Q8(t){return tt("MuiBreadcrumbs",t)}const e9=Ze("MuiBreadcrumbs",["root","ol","li","separator"]),t9=t=>{const{classes:e}=t;return nt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Q8,e)},r9=ie(bo,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(t,e)=>[{[`& .${e9.li}`]:e.li},e.root]})({}),n9=ie("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(t,e)=>e.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),o9=ie("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(t,e)=>e.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function a9(t,e,r,n){return t.reduce((o,a,i)=>(i{const j=()=>{S(!0);const z=O.current.querySelector("a[href],button,[tabindex]");z&&z.focus()};return d+h>=P.length?P:[...P.slice(0,d),R.jsx(Z8,{"aria-label":f,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:C},onClick:j},"ellipsis"),...P.slice(P.length-h,P.length)]},T=$.Children.toArray(o).filter(P=>$.isValidElement(P)).map((P,j)=>R.jsx("li",{className:D.li,children:P},`child-${j}`));return R.jsx(r9,{ref:r,component:i,color:"textSecondary",className:Ee(D.root,a),ownerState:k,...b,children:R.jsx(n9,{className:D.ol,ref:O,ownerState:k,children:a9(w||_&&T.length<=_?T:M(T),D.separator,g,k)})})});function s9(t){return tt("MuiButton",t)}const Ei=Ze("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"]),i9=$.createContext({}),c9=$.createContext(void 0),l9=t=>{const{color:e,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=t,l={root:["root",a,`${a}${he(e)}`,`size${he(o)}`,`${a}Size${he(o)}`,`color${he(e)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${he(o)}`],endIcon:["icon","endIcon",`iconSize${he(o)}`]},u=nt(l,s9,i);return{...i,...u}},PM=[{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}}}],u9=ie(Va,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${he(r.color)}`],e[`size${he(r.size)}`],e[`${r.variant}Size${he(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth]}})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ei.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Ei.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Ei.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ei.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Jt()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(t.vars||t).palette[n].main,"--variant-outlinedColor":(t.vars||t).palette[n].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.5)`:Nt(t.palette[n].main,.5),"--variant-containedColor":(t.vars||t).palette[n].contrastText,"--variant-containedBg":(t.vars||t).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[n].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[n].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[n].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[n].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ei.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ei.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),d9=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,e[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...PM]}),p9=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,e[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...PM]}),Qt=$.forwardRef(function(e,r){const n=$.useContext(i9),o=$.useContext(c9),a=tu(n,e),i=ot({props:a,name:"MuiButton"}),{children:l,color:u="primary",component:f="button",className:h,disabled:d=!1,disableElevation:_=!1,disableFocusRipple:g=!1,endIcon:b,focusVisibleClassName:w,fullWidth:S=!1,size:k="medium",startIcon:D,type:C,variant:O="text",...M}=i,T={...i,color:u,component:f,disabled:d,disableElevation:_,disableFocusRipple:g,fullWidth:S,size:k,type:C,variant:O},P=l9(T),j=D&&R.jsx(d9,{className:P.startIcon,ownerState:T,children:D}),z=b&&R.jsx(p9,{className:P.endIcon,ownerState:T,children:b}),E=o||"";return R.jsxs(u9,{ownerState:T,className:Ee(n.className,P.root,h,E),component:f,disabled:d,focusRipple:!g,focusVisibleClassName:Ee(P.focusVisible,w),ref:r,type:C,...M,classes:P,children:[j,l,z]})});function f9(t){return tt("PrivateSwitchBase",t)}Ze("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const h9=t=>{const{classes:e,checked:r,disabled:n,edge:o}=t,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${he(o)}`],input:["input"]};return nt(a,f9,e)},m9=ie(Va)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),_9=ie("input",{shouldForwardProp:Cr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),RM=$.forwardRef(function(e,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:l,disabled:u,disableFocusRipple:f=!1,edge:h=!1,icon:d,id:_,inputProps:g,inputRef:b,name:w,onBlur:S,onChange:k,onFocus:D,readOnly:C,required:O=!1,tabIndex:M,type:T,value:P,...j}=e,[z,E]=ru({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),L=Oo(),G=X=>{D&&D(X),L&&L.onFocus&&L.onFocus(X)},B=X=>{S&&S(X),L&&L.onBlur&&L.onBlur(X)},F=X=>{if(X.nativeEvent.defaultPrevented)return;const re=X.target.checked;E(re),k&&k(X,re)};let H=u;L&&typeof H>"u"&&(H=L.disabled);const K=T==="checkbox"||T==="radio",ee={...e,checked:z,disabled:H,disableFocusRipple:f,edge:h},Y=h9(ee);return R.jsxs(m9,{component:"span",className:Ee(Y.root,i),centerRipple:!0,focusRipple:!f,disabled:H,tabIndex:null,role:void 0,onFocus:G,onBlur:B,ownerState:ee,ref:r,...j,children:[R.jsx(_9,{autoFocus:n,checked:o,defaultChecked:l,className:Y.input,disabled:H,id:K?_:void 0,name:w,onChange:F,readOnly:C,ref:b,required:O,ownerState:ee,tabIndex:M,type:T,...T==="checkbox"&&P===void 0?{}:{value:P},...g}),z?a:d]})}),g9=Ge(R.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"),y9=Ge(R.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"),v9=Ge(R.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 b9(t){return tt("MuiCheckbox",t)}const s_=Ze("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),w9=t=>{const{classes:e,indeterminate:r,color:n,size:o}=t,a={root:["root",r&&"indeterminate",`color${he(n)}`,`size${he(o)}`]},i=nt(a,b9,e);return{...e,...i}},x9=ie(RM,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${he(r.size)}`],r.color!=="default"&&e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{[`&.${s_.checked}, &.${s_.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${s_.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),S9=R.jsx(y9,{}),k9=R.jsx(g9,{}),C9=R.jsx(v9,{}),tn=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiCheckbox"}),{checkedIcon:o=S9,color:a="primary",icon:i=k9,indeterminate:l=!1,indeterminateIcon:u=C9,inputProps:f,size:h="medium",disableRipple:d=!1,className:_,...g}=n,b=l?u:i,w=l?u:o,S={...n,disableRipple:d,color:a,indeterminate:l,size:h},k=w9(S);return R.jsx(x9,{type:"checkbox",inputProps:{"data-indeterminate":l,...f},icon:$.cloneElement(b,{fontSize:b.props.fontSize??h}),checkedIcon:$.cloneElement(w,{fontSize:w.props.fontSize??h}),ownerState:S,ref:r,className:Ee(k.root,_),disableRipple:d,...g,classes:k})});function $9(t){return tt("MuiCircularProgress",t)}Ze("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ta=44,_0=qa` +`,Qz=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...l}=n,[u,f]=$.useState([]),h=$.useRef(0),d=$.useRef(null);$.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const _=$.useRef(!1),g=vs(),b=$.useRef(null),w=$.useRef(null),S=$.useCallback(O=>{const{pulsate:M,rippleX:T,rippleY:P,rippleSize:j,cb:F}=O;f(E=>[...E,R.jsx(Zz,{classes:{ripple:Ee(a.ripple,Dn.ripple),rippleVisible:Ee(a.rippleVisible,Dn.rippleVisible),ripplePulsate:Ee(a.ripplePulsate,Dn.ripplePulsate),child:Ee(a.child,Dn.child),childLeaving:Ee(a.childLeaving,Dn.childLeaving),childPulsate:Ee(a.childPulsate,Dn.childPulsate)},timeout:p0,pulsate:M,rippleX:T,rippleY:P,rippleSize:j},h.current)]),h.current+=1,d.current=F},[a]),k=$.useCallback((O={},M={},T=()=>{})=>{const{pulsate:P=!1,center:j=o||M.pulsate,fakeElement:F=!1}=M;if((O==null?void 0:O.type)==="mousedown"&&_.current){_.current=!1;return}(O==null?void 0:O.type)==="touchstart"&&(_.current=!0);const E=F?null:w.current,L=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let G,B,z;if(j||O===void 0||O.clientX===0&&O.clientY===0||!O.clientX&&!O.touches)G=Math.round(L.width/2),B=Math.round(L.height/2);else{const{clientX:H,clientY:K}=O.touches&&O.touches.length>0?O.touches[0]:O;G=Math.round(H-L.left),B=Math.round(K-L.top)}if(j)z=Math.sqrt((2*L.width**2+L.height**2)/3),z%2===0&&(z+=1);else{const H=Math.max(Math.abs((E?E.clientWidth:0)-G),G)*2+2,K=Math.max(Math.abs((E?E.clientHeight:0)-B),B)*2+2;z=Math.sqrt(H**2+K**2)}O!=null&&O.touches?b.current===null&&(b.current=()=>{S({pulsate:P,rippleX:G,rippleY:B,rippleSize:z,cb:T})},g.start(Xz,()=>{b.current&&(b.current(),b.current=null)})):S({pulsate:P,rippleX:G,rippleY:B,rippleSize:z,cb:T})},[o,S,g]),D=$.useCallback(()=>{k({},{pulsate:!0})},[k]),C=$.useCallback((O,M)=>{if(g.clear(),(O==null?void 0:O.type)==="touchend"&&b.current){b.current(),b.current=null,g.start(0,()=>{C(O,M)});return}b.current=null,f(T=>T.length>0?T.slice(1):T),d.current=M},[g]);return $.useImperativeHandle(r,()=>({pulsate:D,start:k,stop:C}),[D,k,C]),R.jsx(Kz,{className:Ee(Dn.root,a.root,i),ref:w,...l,children:R.jsx(Cb,{component:null,exit:!0,children:u})})});function e6(t){return tt("MuiButtonBase",t)}const t6=Ze("MuiButtonBase",["root","disabled","focusVisible"]),r6=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:o}=t,i=nt({root:["root",e&&"disabled",r&&"focusVisible"]},e6,o);return r&&n&&(i.root+=` ${n}`),i},n6=ie("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.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"},[`&.${t6.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Va=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:l,component:u="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:d=!1,focusRipple:_=!1,focusVisibleClassName:g,LinkComponent:b="a",onBlur:w,onClick:S,onContextMenu:k,onDragLeave:D,onFocus:C,onFocusVisible:O,onKeyDown:M,onKeyUp:T,onMouseDown:P,onMouseLeave:j,onMouseUp:F,onTouchEnd:E,onTouchMove:L,onTouchStart:G,tabIndex:B=0,TouchRippleProps:z,touchRippleRef:H,type:K,...ee}=n,Y=$.useRef(null),X=Hz(),re=ar(X.ref,H),[I,Q]=$.useState(!1);f&&I&&Q(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{Q(!0),Y.current.focus()}}),[]);const me=X.shouldMount&&!h&&!f;$.useEffect(()=>{I&&_&&!h&&X.pulsate()},[h,_,I,X]);const pe=Wo(X,"start",P,d),ge=Wo(X,"stop",k,d),Ce=Wo(X,"stop",D,d),Re=Wo(X,"stop",F,d),Te=Wo(X,"stop",Se=>{I&&Se.preventDefault(),j&&j(Se)},d),Pe=Wo(X,"start",G,d),Oe=Wo(X,"stop",E,d),ze=Wo(X,"stop",L,d),Me=Wo(X,"stop",Se=>{Ba(Se.target)||Q(!1),w&&w(Se)},!1),Be=Nr(Se=>{Y.current||(Y.current=Se.currentTarget),Ba(Se.target)&&(Q(!0),O&&O(Se)),C&&C(Se)}),We=()=>{const Se=Y.current;return u&&u!=="button"&&!(Se.tagName==="A"&&Se.href)},De=Nr(Se=>{_&&!Se.repeat&&I&&Se.key===" "&&X.stop(Se,()=>{X.start(Se)}),Se.target===Se.currentTarget&&We()&&Se.key===" "&&Se.preventDefault(),M&&M(Se),Se.target===Se.currentTarget&&We()&&Se.key==="Enter"&&!f&&(Se.preventDefault(),S&&S(Se))}),pt=Nr(Se=>{_&&Se.key===" "&&I&&!Se.defaultPrevented&&X.stop(Se,()=>{X.pulsate(Se)}),T&&T(Se),S&&Se.target===Se.currentTarget&&We()&&Se.key===" "&&!Se.defaultPrevented&&S(Se)});let ce=u;ce==="button"&&(ee.href||ee.to)&&(ce=b);const qe={};ce==="button"?(qe.type=K===void 0?"button":K,qe.disabled=f):(!ee.href&&!ee.to&&(qe.role="button"),f&&(qe["aria-disabled"]=f));const st=ar(r,Y),rt={...n,centerRipple:a,component:u,disabled:f,disableRipple:h,disableTouchRipple:d,focusRipple:_,tabIndex:B,focusVisible:I},Je=r6(rt);return R.jsxs(n6,{as:ce,className:Ee(Je.root,l),ownerState:rt,onBlur:Me,onClick:S,onContextMenu:ge,onFocus:Be,onKeyDown:De,onKeyUp:pt,onMouseDown:pe,onMouseLeave:Te,onMouseUp:Re,onDragLeave:Ce,onTouchEnd:Oe,onTouchMove:ze,onTouchStart:Pe,ref:st,tabIndex:f?-1:B,type:K,...qe,...ee,children:[i,me?R.jsx(Qz,{ref:re,center:a,...z}):null]})});function Wo(t,e,r,n=!1){return Nr(o=>(r&&r(o),n||t[e](o),!0))}function o6(t){return typeof t.main=="string"}function a6(t,e=[]){if(!o6(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function Jt(t=[]){return([,e])=>e&&a6(e,t)}function s6(t){return tt("MuiIconButton",t)}const i6=Ze("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),c6=t=>{const{classes:e,disabled:r,color:n,edge:o,size:a}=t,i={root:["root",r&&"disabled",n!=="default"&&`color${he(n)}`,o&&`edge${he(o)}`,`size${he(a)}`]};return nt(i,s6,e)},l6=ie(Va,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="default"&&e[`color${he(r.color)}`],r.edge&&e[`edge${he(r.edge)}`],e[`size${he(r.size)}`]]}})(Xe(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Xe(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${i6.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}}))),nr=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:l="default",disabled:u=!1,disableFocusRipple:f=!1,size:h="medium",...d}=n,_={...n,edge:o,color:l,disabled:u,disableFocusRipple:f,size:h},g=c6(_);return R.jsx(l6,{className:Ee(g.root,i),centerRipple:!0,focusRipple:!f,disabled:u,ref:r,...d,ownerState:_,children:a})});function u6(t){return tt("MuiTypography",t)}const Yk=Ze("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),d6={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},p6=Dz(),f6=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=t,l={root:["root",a,t.align!=="inherit"&&`align${he(e)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return nt(l,u6,i)},h6=ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${he(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(Xe(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(t.palette).filter(Jt()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${he(r)}`},style:{color:(t.vars||t).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Kk={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bo=$.forwardRef(function(e,r){const{color:n,...o}=ot({props:e,name:"MuiTypography"}),a=!d6[n],i=p6({...o,...a&&{color:n}}),{align:l="inherit",className:u,component:f,gutterBottom:h=!1,noWrap:d=!1,paragraph:_=!1,variant:g="body1",variantMapping:b=Kk,...w}=i,S={...i,align:l,color:n,className:u,component:f,gutterBottom:h,noWrap:d,paragraph:_,variant:g,variantMapping:b},k=f||(_?"p":b[g]||Kk[g])||"span",D=f6(S);return R.jsx(h6,{as:k,ref:r,className:Ee(D.root,u),...w,ownerState:S,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...w.style}})});function m6(t){return tt("MuiAppBar",t)}Ze("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const _6=t=>{const{color:e,position:r,classes:n}=t,o={root:["root",`color${he(e)}`,`position${he(r)}`]};return nt(o,m6,n)},Zk=(t,e)=>t?`${t==null?void 0:t.replace(")","")}, ${e})`:e,g6=ie(ku,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${he(r.position)}`],e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).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":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(Jt(["contrastText"])).map(([e])=>({props:{color:e},style:{"--AppBar-background":(t.vars??t).palette[e].main,"--AppBar-color":(t.vars??t).palette[e].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)",...t.applyStyles("dark",{backgroundColor:t.vars?Zk(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?Zk(t.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)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),yM=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:l="fixed",...u}=n,f={...n,color:a,position:l,enableColorOnDark:i},h=_6(f);return R.jsx(g6,{square:!0,component:"header",ownerState:f,elevation:4,className:Ee(h.root,o,l==="fixed"&&"mui-fixed"),ref:r,...u})});var on="top",jn="bottom",Ln="right",an="left",$b="auto",Cu=[on,jn,Ln,an],xc="start",au="end",y6="clippingParents",vM="viewport",bl="popper",v6="reference",Qk=Cu.reduce(function(t,e){return t.concat([e+"-"+xc,e+"-"+au])},[]),bM=[].concat(Cu,[$b]).reduce(function(t,e){return t.concat([e,e+"-"+xc,e+"-"+au])},[]),b6="beforeRead",w6="read",x6="afterRead",S6="beforeMain",k6="main",C6="afterMain",$6="beforeWrite",E6="write",T6="afterWrite",O6=[b6,w6,x6,S6,k6,C6,$6,E6,T6];function $o(t){return t?(t.nodeName||"").toLowerCase():null}function vn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ps(t){var e=vn(t).Element;return t instanceof e||t instanceof Element}function In(t){var e=vn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Eb(t){if(typeof ShadowRoot>"u")return!1;var e=vn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function D6(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},a=e.elements[r];!In(a)||!$o(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var l=o[i];l===!1?a.removeAttribute(i):a.setAttribute(i,l===!0?"":l)}))})}function M6(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],a=e.attributes[n]||{},i=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),l=i.reduce(function(u,f){return u[f]="",u},{});!In(o)||!$o(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const N6={name:"applyStyles",enabled:!0,phase:"write",fn:D6,effect:M6,requires:["computeStyles"]};function So(t){return t.split("-")[0]}var Ss=Math.max,Hp=Math.min,Sc=Math.round;function f0(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function wM(){return!/^((?!chrome|android).)*safari/i.test(f0())}function kc(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,a=1;e&&In(t)&&(o=t.offsetWidth>0&&Sc(n.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Sc(n.height)/t.offsetHeight||1);var i=Ps(t)?vn(t):window,l=i.visualViewport,u=!wM()&&r,f=(n.left+(u&&l?l.offsetLeft:0))/o,h=(n.top+(u&&l?l.offsetTop:0))/a,d=n.width/o,_=n.height/a;return{width:d,height:_,top:h,right:f+d,bottom:h+_,left:f,x:f,y:h}}function Tb(t){var e=kc(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function xM(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Eb(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Qo(t){return vn(t).getComputedStyle(t)}function P6(t){return["table","td","th"].indexOf($o(t))>=0}function Xa(t){return((Ps(t)?t.ownerDocument:t.document)||window.document).documentElement}function Mf(t){return $o(t)==="html"?t:t.assignedSlot||t.parentNode||(Eb(t)?t.host:null)||Xa(t)}function eC(t){return!In(t)||Qo(t).position==="fixed"?null:t.offsetParent}function R6(t){var e=/firefox/i.test(f0()),r=/Trident/i.test(f0());if(r&&In(t)){var n=Qo(t);if(n.position==="fixed")return null}var o=Mf(t);for(Eb(o)&&(o=o.host);In(o)&&["html","body"].indexOf($o(o))<0;){var a=Qo(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function $u(t){for(var e=vn(t),r=eC(t);r&&P6(r)&&Qo(r).position==="static";)r=eC(r);return r&&($o(r)==="html"||$o(r)==="body"&&Qo(r).position==="static")?e:r||R6(t)||e}function Ob(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Vl(t,e,r){return Ss(t,Hp(e,r))}function A6(t,e,r){var n=Vl(t,e,r);return n>r?r:n}function SM(){return{top:0,right:0,bottom:0,left:0}}function kM(t){return Object.assign({},SM(),t)}function CM(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var I6=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,kM(typeof e!="number"?e:CM(e,Cu))};function j6(t){var e,r=t.state,n=t.name,o=t.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,l=So(r.placement),u=Ob(l),f=[an,Ln].indexOf(l)>=0,h=f?"height":"width";if(!(!a||!i)){var d=I6(o.padding,r),_=Tb(a),g=u==="y"?on:an,b=u==="y"?jn:Ln,w=r.rects.reference[h]+r.rects.reference[u]-i[u]-r.rects.popper[h],S=i[u]-r.rects.reference[u],k=$u(a),D=k?u==="y"?k.clientHeight||0:k.clientWidth||0:0,C=w/2-S/2,O=d[g],M=D-_[h]-d[b],T=D/2-_[h]/2+C,P=Vl(O,T,M),j=u;r.modifiersData[n]=(e={},e[j]=P,e.centerOffset=P-T,e)}}function L6(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||xM(e.elements.popper,o)&&(e.elements.arrow=o))}const F6={name:"arrow",enabled:!0,phase:"main",fn:j6,effect:L6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Cc(t){return t.split("-")[1]}var z6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function B6(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:Sc(r*o)/o||0,y:Sc(n*o)/o||0}}function tC(t){var e,r=t.popper,n=t.popperRect,o=t.placement,a=t.variation,i=t.offsets,l=t.position,u=t.gpuAcceleration,f=t.adaptive,h=t.roundOffsets,d=t.isFixed,_=i.x,g=_===void 0?0:_,b=i.y,w=b===void 0?0:b,S=typeof h=="function"?h({x:g,y:w}):{x:g,y:w};g=S.x,w=S.y;var k=i.hasOwnProperty("x"),D=i.hasOwnProperty("y"),C=an,O=on,M=window;if(f){var T=$u(r),P="clientHeight",j="clientWidth";if(T===vn(r)&&(T=Xa(r),Qo(T).position!=="static"&&l==="absolute"&&(P="scrollHeight",j="scrollWidth")),T=T,o===on||(o===an||o===Ln)&&a===au){O=jn;var F=d&&T===M&&M.visualViewport?M.visualViewport.height:T[P];w-=F-n.height,w*=u?1:-1}if(o===an||(o===on||o===jn)&&a===au){C=Ln;var E=d&&T===M&&M.visualViewport?M.visualViewport.width:T[j];g-=E-n.width,g*=u?1:-1}}var L=Object.assign({position:l},f&&z6),G=h===!0?B6({x:g,y:w},vn(r)):{x:g,y:w};if(g=G.x,w=G.y,u){var B;return Object.assign({},L,(B={},B[O]=D?"0":"",B[C]=k?"0":"",B.transform=(M.devicePixelRatio||1)<=1?"translate("+g+"px, "+w+"px)":"translate3d("+g+"px, "+w+"px, 0)",B))}return Object.assign({},L,(e={},e[O]=D?w+"px":"",e[C]=k?g+"px":"",e.transform="",e))}function W6(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,l=r.roundOffsets,u=l===void 0?!0:l,f={placement:So(e.placement),variation:Cc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,tC(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,tC(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const U6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:W6,data:{}};var Zd={passive:!0};function H6(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,l=i===void 0?!0:i,u=vn(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&f.forEach(function(h){h.addEventListener("scroll",r.update,Zd)}),l&&u.addEventListener("resize",r.update,Zd),function(){a&&f.forEach(function(h){h.removeEventListener("scroll",r.update,Zd)}),l&&u.removeEventListener("resize",r.update,Zd)}}const q6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:H6,data:{}};var V6={left:"right",right:"left",bottom:"top",top:"bottom"};function Ep(t){return t.replace(/left|right|bottom|top/g,function(e){return V6[e]})}var X6={start:"end",end:"start"};function rC(t){return t.replace(/start|end/g,function(e){return X6[e]})}function Db(t){var e=vn(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Mb(t){return kc(Xa(t)).left+Db(t).scrollLeft}function G6(t,e){var r=vn(t),n=Xa(t),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;var f=wM();(f||!f&&e==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l+Mb(t),y:u}}function J6(t){var e,r=Xa(t),n=Db(t),o=(e=t.ownerDocument)==null?void 0:e.body,a=Ss(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Ss(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+Mb(t),u=-n.scrollTop;return Qo(o||r).direction==="rtl"&&(l+=Ss(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:u}}function Nb(t){var e=Qo(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function $M(t){return["html","body","#document"].indexOf($o(t))>=0?t.ownerDocument.body:In(t)&&Nb(t)?t:$M(Mf(t))}function Xl(t,e){var r;e===void 0&&(e=[]);var n=$M(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),a=vn(n),i=o?[a].concat(a.visualViewport||[],Nb(n)?n:[]):n,l=e.concat(i);return o?l:l.concat(Xl(Mf(i)))}function h0(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Y6(t,e){var r=kc(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function nC(t,e,r){return e===vM?h0(G6(t,r)):Ps(e)?Y6(e,r):h0(J6(Xa(t)))}function K6(t){var e=Xl(Mf(t)),r=["absolute","fixed"].indexOf(Qo(t).position)>=0,n=r&&In(t)?$u(t):t;return Ps(n)?e.filter(function(o){return Ps(o)&&xM(o,n)&&$o(o)!=="body"}):[]}function Z6(t,e,r,n){var o=e==="clippingParents"?K6(t):[].concat(e),a=[].concat(o,[r]),i=a[0],l=a.reduce(function(u,f){var h=nC(t,f,n);return u.top=Ss(h.top,u.top),u.right=Hp(h.right,u.right),u.bottom=Hp(h.bottom,u.bottom),u.left=Ss(h.left,u.left),u},nC(t,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function EM(t){var e=t.reference,r=t.element,n=t.placement,o=n?So(n):null,a=n?Cc(n):null,i=e.x+e.width/2-r.width/2,l=e.y+e.height/2-r.height/2,u;switch(o){case on:u={x:i,y:e.y-r.height};break;case jn:u={x:i,y:e.y+e.height};break;case Ln:u={x:e.x+e.width,y:l};break;case an:u={x:e.x-r.width,y:l};break;default:u={x:e.x,y:e.y}}var f=o?Ob(o):null;if(f!=null){var h=f==="y"?"height":"width";switch(a){case xc:u[f]=u[f]-(e[h]/2-r[h]/2);break;case au:u[f]=u[f]+(e[h]/2-r[h]/2);break}}return u}function su(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,a=r.strategy,i=a===void 0?t.strategy:a,l=r.boundary,u=l===void 0?y6:l,f=r.rootBoundary,h=f===void 0?vM:f,d=r.elementContext,_=d===void 0?bl:d,g=r.altBoundary,b=g===void 0?!1:g,w=r.padding,S=w===void 0?0:w,k=kM(typeof S!="number"?S:CM(S,Cu)),D=_===bl?v6:bl,C=t.rects.popper,O=t.elements[b?D:_],M=Z6(Ps(O)?O:O.contextElement||Xa(t.elements.popper),u,h,i),T=kc(t.elements.reference),P=EM({reference:T,element:C,strategy:"absolute",placement:o}),j=h0(Object.assign({},C,P)),F=_===bl?j:T,E={top:M.top-F.top+k.top,bottom:F.bottom-M.bottom+k.bottom,left:M.left-F.left+k.left,right:F.right-M.right+k.right},L=t.modifiersData.offset;if(_===bl&&L){var G=L[o];Object.keys(E).forEach(function(B){var z=[Ln,jn].indexOf(B)>=0?1:-1,H=[on,jn].indexOf(B)>=0?"y":"x";E[B]+=G[H]*z})}return E}function Q6(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,l=r.flipVariations,u=r.allowedAutoPlacements,f=u===void 0?bM:u,h=Cc(n),d=h?l?Qk:Qk.filter(function(b){return Cc(b)===h}):Cu,_=d.filter(function(b){return f.indexOf(b)>=0});_.length===0&&(_=d);var g=_.reduce(function(b,w){return b[w]=su(t,{placement:w,boundary:o,rootBoundary:a,padding:i})[So(w)],b},{});return Object.keys(g).sort(function(b,w){return g[b]-g[w]})}function e8(t){if(So(t)===$b)return[];var e=Ep(t);return[rC(t),e,rC(e)]}function t8(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!0:i,u=r.fallbackPlacements,f=r.padding,h=r.boundary,d=r.rootBoundary,_=r.altBoundary,g=r.flipVariations,b=g===void 0?!0:g,w=r.allowedAutoPlacements,S=e.options.placement,k=So(S),D=k===S,C=u||(D||!b?[Ep(S)]:e8(S)),O=[S].concat(C).reduce(function(pe,ge){return pe.concat(So(ge)===$b?Q6(e,{placement:ge,boundary:h,rootBoundary:d,padding:f,flipVariations:b,allowedAutoPlacements:w}):ge)},[]),M=e.rects.reference,T=e.rects.popper,P=new Map,j=!0,F=O[0],E=0;E=0,H=z?"width":"height",K=su(e,{placement:L,boundary:h,rootBoundary:d,altBoundary:_,padding:f}),ee=z?B?Ln:an:B?jn:on;M[H]>T[H]&&(ee=Ep(ee));var Y=Ep(ee),X=[];if(a&&X.push(K[G]<=0),l&&X.push(K[ee]<=0,K[Y]<=0),X.every(function(pe){return pe})){F=L,j=!1;break}P.set(L,X)}if(j)for(var re=b?3:1,I=function(ge){var Ce=O.find(function(Re){var Te=P.get(Re);if(Te)return Te.slice(0,ge).every(function(Pe){return Pe})});if(Ce)return F=Ce,"break"},Q=re;Q>0;Q--){var me=I(Q);if(me==="break")break}e.placement!==F&&(e.modifiersData[n]._skip=!0,e.placement=F,e.reset=!0)}}const r8={name:"flip",enabled:!0,phase:"main",fn:t8,requiresIfExists:["offset"],data:{_skip:!1}};function oC(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function aC(t){return[on,Ln,jn,an].some(function(e){return t[e]>=0})}function n8(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,i=su(e,{elementContext:"reference"}),l=su(e,{altBoundary:!0}),u=oC(i,n),f=oC(l,o,a),h=aC(u),d=aC(f);e.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}const o8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:n8};function a8(t,e,r){var n=So(t),o=[an,on].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[an,Ln].indexOf(n)>=0?{x:l,y:i}:{x:i,y:l}}function s8(t){var e=t.state,r=t.options,n=t.name,o=r.offset,a=o===void 0?[0,0]:o,i=bM.reduce(function(h,d){return h[d]=a8(d,e.rects,a),h},{}),l=i[e.placement],u=l.x,f=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=i}const i8={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:s8};function c8(t){var e=t.state,r=t.name;e.modifiersData[r]=EM({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const l8={name:"popperOffsets",enabled:!0,phase:"read",fn:c8,data:{}};function u8(t){return t==="x"?"y":"x"}function d8(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!1:i,u=r.boundary,f=r.rootBoundary,h=r.altBoundary,d=r.padding,_=r.tether,g=_===void 0?!0:_,b=r.tetherOffset,w=b===void 0?0:b,S=su(e,{boundary:u,rootBoundary:f,padding:d,altBoundary:h}),k=So(e.placement),D=Cc(e.placement),C=!D,O=Ob(k),M=u8(O),T=e.modifiersData.popperOffsets,P=e.rects.reference,j=e.rects.popper,F=typeof w=="function"?w(Object.assign({},e.rects,{placement:e.placement})):w,E=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,G={x:0,y:0};if(T){if(a){var B,z=O==="y"?on:an,H=O==="y"?jn:Ln,K=O==="y"?"height":"width",ee=T[O],Y=ee+S[z],X=ee-S[H],re=g?-j[K]/2:0,I=D===xc?P[K]:j[K],Q=D===xc?-j[K]:-P[K],me=e.elements.arrow,pe=g&&me?Tb(me):{width:0,height:0},ge=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:SM(),Ce=ge[z],Re=ge[H],Te=Vl(0,P[K],pe[K]),Pe=C?P[K]/2-re-Te-Ce-E.mainAxis:I-Te-Ce-E.mainAxis,Oe=C?-P[K]/2+re+Te+Re+E.mainAxis:Q+Te+Re+E.mainAxis,ze=e.elements.arrow&&$u(e.elements.arrow),Me=ze?O==="y"?ze.clientTop||0:ze.clientLeft||0:0,Be=(B=L==null?void 0:L[O])!=null?B:0,We=ee+Pe-Be-Me,De=ee+Oe-Be,pt=Vl(g?Hp(Y,We):Y,ee,g?Ss(X,De):X);T[O]=pt,G[O]=pt-ee}if(l){var ce,qe=O==="x"?on:an,st=O==="x"?jn:Ln,rt=T[M],Je=M==="y"?"height":"width",Se=rt+S[qe],ut=rt-S[st],q=[on,an].indexOf(k)!==-1,ne=(ce=L==null?void 0:L[M])!=null?ce:0,ye=q?Se:rt-P[Je]-j[Je]-ne+E.altAxis,xe=q?rt+P[Je]+j[Je]-ne-E.altAxis:ut,ke=g&&q?A6(ye,rt,xe):Vl(g?ye:Se,rt,g?xe:ut);T[M]=ke,G[M]=ke-rt}e.modifiersData[n]=G}}const p8={name:"preventOverflow",enabled:!0,phase:"main",fn:d8,requiresIfExists:["offset"]};function f8(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function h8(t){return t===vn(t)||!In(t)?Db(t):f8(t)}function m8(t){var e=t.getBoundingClientRect(),r=Sc(e.width)/t.offsetWidth||1,n=Sc(e.height)/t.offsetHeight||1;return r!==1||n!==1}function _8(t,e,r){r===void 0&&(r=!1);var n=In(e),o=In(e)&&m8(e),a=Xa(e),i=kc(t,o,r),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&(($o(e)!=="body"||Nb(a))&&(l=h8(e)),In(e)?(u=kc(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Mb(a))),{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}function g8(t){var e=new Map,r=new Set,n=[];t.forEach(function(a){e.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(l){if(!r.has(l)){var u=e.get(l);u&&o(u)}}),n.push(a)}return t.forEach(function(a){r.has(a.name)||o(a)}),n}function y8(t){var e=g8(t);return O6.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function v8(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function b8(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var sC={placement:"bottom",modifiers:[],strategy:"absolute"};function iC(){for(var t=arguments.length,e=new Array(t),r=0;r{a||l(k8(o)||document.body)},[o,a]),yn(()=>{if(i&&!a)return a0(r,i),()=>{a0(r,null)}},[r,i,a]),a){if($.isValidElement(n)){const f={ref:u};return $.cloneElement(n,f)}return n}return i&&_M.createPortal(n,i)});function C8(t){return tt("MuiPopper",t)}Ze("MuiPopper",["root"]);function $8(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function m0(t){return typeof t=="function"?t():t}function E8(t){return t.nodeType!==void 0}const T8=t=>{const{classes:e}=t;return nt({root:["root"]},C8,e)},O8={},D8=$.forwardRef(function(e,r){const{anchorEl:n,children:o,direction:a,disablePortal:i,modifiers:l,open:u,placement:f,popperOptions:h,popperRef:d,slotProps:_={},slots:g={},TransitionProps:b,ownerState:w,...S}=e,k=$.useRef(null),D=ar(k,r),C=$.useRef(null),O=ar(C,d),M=$.useRef(O);yn(()=>{M.current=O},[O]),$.useImperativeHandle(d,()=>C.current,[]);const T=$8(f,a),[P,j]=$.useState(T),[F,E]=$.useState(m0(n));$.useEffect(()=>{C.current&&C.current.forceUpdate()}),$.useEffect(()=>{n&&E(m0(n))},[n]),yn(()=>{if(!F||!u)return;const H=Y=>{j(Y.placement)};let K=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{H(Y)}}];l!=null&&(K=K.concat(l)),h&&h.modifiers!=null&&(K=K.concat(h.modifiers));const ee=S8(F,k.current,{placement:T,...h,modifiers:K});return M.current(ee),()=>{ee.destroy(),M.current(null)}},[F,i,l,u,h,T]);const L={placement:P};b!==null&&(L.TransitionProps=b);const G=T8(e),B=g.root??"div",z=Dr({elementType:B,externalSlotProps:_.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:D},ownerState:e,className:G.root});return R.jsx(B,{...z,children:typeof o=="function"?o(L):o})}),M8=$.forwardRef(function(e,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:f,open:h,placement:d="bottom",popperOptions:_=O8,popperRef:g,style:b,transition:w=!1,slotProps:S={},slots:k={},...D}=e,[C,O]=$.useState(!0),M=()=>{O(!1)},T=()=>{O(!0)};if(!u&&!h&&(!w||C))return null;let P;if(a)P=a;else if(n){const E=m0(n);P=E&&E8(E)?cr(E).body:cr(null).body}const j=!h&&u&&(!w||C)?"none":void 0,F=w?{in:h,onEnter:M,onExited:T}:void 0;return R.jsx(TM,{disablePortal:l,container:P,children:R.jsx(D8,{anchorEl:n,direction:i,disablePortal:l,modifiers:f,ref:r,open:w?!C:h,placement:d,popperOptions:_,popperRef:g,slotProps:S,slots:k,...D,style:{position:"fixed",top:0,left:0,display:j,...b},TransitionProps:F,children:o})})}),N8=ie(M8,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),OM=$.forwardRef(function(e,r){const n=Us(),o=ot({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:u,container:f,disablePortal:h,keepMounted:d,modifiers:_,open:g,placement:b,popperOptions:w,popperRef:S,transition:k,slots:D,slotProps:C,...O}=o,M=(D==null?void 0:D.root)??(l==null?void 0:l.Root),T={anchorEl:a,container:f,disablePortal:h,keepMounted:d,modifiers:_,open:g,placement:b,popperOptions:w,popperRef:S,transition:k,...O};return R.jsx(N8,{as:i,direction:n?"rtl":"ltr",slots:{root:M},slotProps:C??u,...T,ref:r})});function Qd(t){return parseInt(t,10)||0}const P8={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function R8(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflowing}const A8=$.forwardRef(function(e,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:l,...u}=e,{current:f}=$.useRef(l!=null),h=$.useRef(null),d=ar(r,h),_=$.useRef(null),g=$.useRef(null),b=$.useCallback(()=>{const k=h.current,C=eo(k).getComputedStyle(k);if(C.width==="0px")return{outerHeightStyle:0,overflowing:!1};const O=g.current;O.style.width=C.width,O.value=k.value||e.placeholder||"x",O.value.slice(-1)===` +`&&(O.value+=" ");const M=C.boxSizing,T=Qd(C.paddingBottom)+Qd(C.paddingTop),P=Qd(C.borderBottomWidth)+Qd(C.borderTopWidth),j=O.scrollHeight;O.value="x";const F=O.scrollHeight;let E=j;a&&(E=Math.max(Number(a)*F,E)),o&&(E=Math.min(Number(o)*F,E)),E=Math.max(E,F);const L=E+(M==="border-box"?T+P:0),G=Math.abs(E-j)<=1;return{outerHeightStyle:L,overflowing:G}},[o,a,e.placeholder]),w=$.useCallback(()=>{const k=b();if(R8(k))return;const D=k.outerHeightStyle,C=h.current;_.current!==D&&(_.current=D,C.style.height=`${D}px`),C.style.overflow=k.overflowing?"hidden":""},[b]);yn(()=>{const k=()=>{w()};let D;const C=Ef(k),O=h.current,M=eo(O);M.addEventListener("resize",C);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(k),T.observe(O)),()=>{C.clear(),cancelAnimationFrame(D),M.removeEventListener("resize",C),T&&T.disconnect()}},[b,w]),yn(()=>{w()});const S=k=>{f||w(),n&&n(k)};return R.jsxs($.Fragment,{children:[R.jsx("textarea",{value:l,onChange:S,ref:d,rows:a,style:i,...u}),R.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:g,tabIndex:-1,style:{...P8.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function ks(t){return typeof t=="string"}function Ga({props:t,states:e,muiFormControl:r}){return e.reduce((n,o)=>(n[o]=t[o],r&&typeof t[o]>"u"&&(n[o]=r[o]),n),{})}const Pb=$.createContext(void 0);function Oo(){return $.useContext(Pb)}function cC(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function qp(t,e=!1){return t&&(cC(t.value)&&t.value!==""||e&&cC(t.defaultValue)&&t.defaultValue!=="")}function I8(t){return t.startAdornment}function j8(t){return tt("MuiInputBase",t)}const $c=Ze("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var lC;const Nf=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${he(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},Pf=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},L8=t=>{const{classes:e,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:u,hiddenLabel:f,multiline:h,readOnly:d,size:_,startAdornment:g,type:b}=t,w={root:["root",`color${he(r)}`,n&&"disabled",o&&"error",u&&"fullWidth",i&&"focused",l&&"formControl",_&&_!=="medium"&&`size${he(_)}`,h&&"multiline",g&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",b==="search"&&"inputTypeSearch",h&&"inputMultiline",_==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return nt(w,j8,e)},Rf=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Nf})(Xe(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${$c.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Af=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Pf})(Xe(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${$c.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${$c.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.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:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),uC=Oz({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Rb=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,color:u,components:f={},componentsProps:h={},defaultValue:d,disabled:_,disableInjectingGlobalStyles:g,endAdornment:b,error:w,fullWidth:S=!1,id:k,inputComponent:D="input",inputProps:C={},inputRef:O,margin:M,maxRows:T,minRows:P,multiline:j=!1,name:F,onBlur:E,onChange:L,onClick:G,onFocus:B,onKeyDown:z,onKeyUp:H,placeholder:K,readOnly:ee,renderSuffix:Y,rows:X,size:re,slotProps:I={},slots:Q={},startAdornment:me,type:pe="text",value:ge,...Ce}=n,Re=C.value!=null?C.value:ge,{current:Te}=$.useRef(Re!=null),Pe=$.useRef(),Oe=$.useCallback($e=>{},[]),ze=ar(Pe,O,C.ref,Oe),[Me,Be]=$.useState(!1),We=Oo(),De=Ga({props:n,muiFormControl:We,states:["color","disabled","error","hiddenLabel","size","required","filled"]});De.focused=We?We.focused:Me,$.useEffect(()=>{!We&&_&&Me&&(Be(!1),E&&E())},[We,_,Me,E]);const pt=We&&We.onFilled,ce=We&&We.onEmpty,qe=$.useCallback($e=>{qp($e)?pt&&pt():ce&&ce()},[pt,ce]);yn(()=>{Te&&qe({value:Re})},[Re,qe,Te]);const st=$e=>{B&&B($e),C.onFocus&&C.onFocus($e),We&&We.onFocus?We.onFocus($e):Be(!0)},rt=$e=>{E&&E($e),C.onBlur&&C.onBlur($e),We&&We.onBlur?We.onBlur($e):Be(!1)},Je=($e,...Ye)=>{if(!Te){const lt=$e.target||Pe.current;if(lt==null)throw new Error(Zo(1));qe({value:lt.value})}C.onChange&&C.onChange($e,...Ye),L&&L($e,...Ye)};$.useEffect(()=>{qe(Pe.current)},[]);const Se=$e=>{Pe.current&&$e.currentTarget===$e.target&&Pe.current.focus(),G&&G($e)};let ut=D,q=C;j&&ut==="input"&&(X?q={type:void 0,minRows:X,maxRows:X,...q}:q={type:void 0,maxRows:T,minRows:P,...q},ut=A8);const ne=$e=>{qe($e.animationName==="mui-auto-fill-cancel"?Pe.current:{value:"x"})};$.useEffect(()=>{We&&We.setAdornedStart(!!me)},[We,me]);const ye={...n,color:De.color||"primary",disabled:De.disabled,endAdornment:b,error:De.error,focused:De.focused,formControl:We,fullWidth:S,hiddenLabel:De.hiddenLabel,multiline:j,size:De.size,startAdornment:me,type:pe},xe=L8(ye),ke=Q.root||f.Root||Rf,ve=I.root||h.root||{},Ve=Q.input||f.Input||Af;return q={...q,...I.input??h.input},R.jsxs($.Fragment,{children:[!g&&typeof uC=="function"&&(lC||(lC=R.jsx(uC,{}))),R.jsxs(ke,{...ve,ref:r,onClick:Se,...Ce,...!ks(ke)&&{ownerState:{...ye,...ve.ownerState}},className:Ee(xe.root,ve.className,l,ee&&"MuiInputBase-readOnly"),children:[me,R.jsx(Pb.Provider,{value:null,children:R.jsx(Ve,{"aria-invalid":De.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:d,disabled:De.disabled,id:k,onAnimationStart:ne,name:F,placeholder:K,readOnly:ee,required:De.required,rows:X,value:Re,onKeyDown:z,onKeyUp:H,type:pe,...q,...!ks(Ve)&&{as:ut,ownerState:{...ye,...q.ownerState}},ref:ze,className:Ee(xe.input,q.className,ee&&"MuiInputBase-readOnly"),onBlur:rt,onChange:Je,onFocus:st})}),b,Y?Y({...De,startAdornment:me}):null]})]})});function F8(t){return tt("MuiInput",t)}const wl={...$c,...Ze("MuiInput",["root","underline","input"])};function z8(t){return tt("MuiOutlinedInput",t)}const lo={...$c,...Ze("MuiOutlinedInput",["root","notchedOutline","input"])};function B8(t){return tt("MuiFilledInput",t)}const ls={...$c,...Ze("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},W8=Ge(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),U8={entering:{opacity:1},entered:{opacity:1}},DM=$.forwardRef(function(e,r){const n=ta(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,easing:u,in:f,onEnter:h,onEntered:d,onEntering:_,onExit:g,onExited:b,onExiting:w,style:S,timeout:k=o,TransitionComponent:D=To,...C}=e,O=$.useRef(null),M=ar(O,Ws(l),r),T=z=>H=>{if(z){const K=O.current;H===void 0?z(K):z(K,H)}},P=T(_),j=T((z,H)=>{gM(z);const K=Wp({style:S,timeout:k,easing:u},{mode:"enter"});z.style.webkitTransition=n.transitions.create("opacity",K),z.style.transition=n.transitions.create("opacity",K),h&&h(z,H)}),F=T(d),E=T(w),L=T(z=>{const H=Wp({style:S,timeout:k,easing:u},{mode:"exit"});z.style.webkitTransition=n.transitions.create("opacity",H),z.style.transition=n.transitions.create("opacity",H),g&&g(z)}),G=T(b),B=z=>{a&&a(O.current,z)};return R.jsx(D,{appear:i,in:f,nodeRef:O,onEnter:j,onEntered:F,onEntering:P,onExit:L,onExited:G,onExiting:E,addEndListener:B,timeout:k,...C,children:(z,{ownerState:H,...K})=>$.cloneElement(l,{style:{opacity:0,visibility:z==="exited"&&!f?"hidden":void 0,...U8[z],...S,...l.props.style},ref:M,...K})})});function H8(t){return tt("MuiBackdrop",t)}Ze("MuiBackdrop",["root","invisible"]);const q8=t=>{const{classes:e,invisible:r}=t;return nt({root:["root",r&&"invisible"]},H8,e)},V8=ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),MM=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiBackdrop"}),{children:o,className:a,component:i="div",invisible:l=!1,open:u,components:f={},componentsProps:h={},slotProps:d={},slots:_={},TransitionComponent:g,transitionDuration:b,...w}=n,S={...n,component:i,invisible:l},k=q8(S),D={transition:g,root:f.Root,..._},C={...h,...d},O={slots:D,slotProps:C},[M,T]=Sr("root",{elementType:V8,externalForwardedProps:O,className:Ee(k.root,a),ownerState:S}),[P,j]=Sr("transition",{elementType:DM,externalForwardedProps:O,ownerState:S});return R.jsx(P,{in:u,timeout:b,...w,...j,children:R.jsx(M,{"aria-hidden":!0,...T,classes:k,ref:r,children:o})})}),X8=Ze("MuiBox",["root"]),G8=ou(),wt=eF({themeId:Zn,defaultTheme:G8,defaultClassName:X8.root,generateClassName:HD.generate}),J8=Ge(R.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"),Y8=ie(Va)(Xe(({theme:t})=>({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`,...t.palette.mode==="light"?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...t.palette.mode==="light"?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}},"&:active":{boxShadow:t.shadows[0],...t.palette.mode==="light"?{backgroundColor:zp(t.palette.grey[200],.12)}:{backgroundColor:zp(t.palette.grey[600],.12)}}}))),K8=ie(J8)({width:24,height:16});function Z8(t){const{slots:e={},slotProps:r={},...n}=t,o=t;return R.jsx("li",{children:R.jsx(Y8,{focusRipple:!0,...n,ownerState:o,children:R.jsx(K8,{as:e.CollapsedIcon,ownerState:o,...r.collapsedIcon})})})}function Q8(t){return tt("MuiBreadcrumbs",t)}const e9=Ze("MuiBreadcrumbs",["root","ol","li","separator"]),t9=t=>{const{classes:e}=t;return nt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Q8,e)},r9=ie(bo,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(t,e)=>[{[`& .${e9.li}`]:e.li},e.root]})({}),n9=ie("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(t,e)=>e.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),o9=ie("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(t,e)=>e.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function a9(t,e,r,n){return t.reduce((o,a,i)=>(i{const j=()=>{S(!0);const F=O.current.querySelector("a[href],button,[tabindex]");F&&F.focus()};return d+h>=P.length?P:[...P.slice(0,d),R.jsx(Z8,{"aria-label":f,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:C},onClick:j},"ellipsis"),...P.slice(P.length-h,P.length)]},T=$.Children.toArray(o).filter(P=>$.isValidElement(P)).map((P,j)=>R.jsx("li",{className:D.li,children:P},`child-${j}`));return R.jsx(r9,{ref:r,component:i,color:"textSecondary",className:Ee(D.root,a),ownerState:k,...b,children:R.jsx(n9,{className:D.ol,ref:O,ownerState:k,children:a9(w||_&&T.length<=_?T:M(T),D.separator,g,k)})})});function s9(t){return tt("MuiButton",t)}const Ei=Ze("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"]),i9=$.createContext({}),c9=$.createContext(void 0),l9=t=>{const{color:e,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=t,l={root:["root",a,`${a}${he(e)}`,`size${he(o)}`,`${a}Size${he(o)}`,`color${he(e)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${he(o)}`],endIcon:["icon","endIcon",`iconSize${he(o)}`]},u=nt(l,s9,i);return{...i,...u}},PM=[{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}}}],u9=ie(Va,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${he(r.color)}`],e[`size${he(r.size)}`],e[`${r.variant}Size${he(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth]}})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ei.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Ei.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Ei.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ei.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Jt()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(t.vars||t).palette[n].main,"--variant-outlinedColor":(t.vars||t).palette[n].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.5)`:Nt(t.palette[n].main,.5),"--variant-containedColor":(t.vars||t).palette[n].contrastText,"--variant-containedBg":(t.vars||t).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[n].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[n].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[n].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[n].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ei.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ei.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),d9=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,e[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...PM]}),p9=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,e[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...PM]}),Qt=$.forwardRef(function(e,r){const n=$.useContext(i9),o=$.useContext(c9),a=tu(n,e),i=ot({props:a,name:"MuiButton"}),{children:l,color:u="primary",component:f="button",className:h,disabled:d=!1,disableElevation:_=!1,disableFocusRipple:g=!1,endIcon:b,focusVisibleClassName:w,fullWidth:S=!1,size:k="medium",startIcon:D,type:C,variant:O="text",...M}=i,T={...i,color:u,component:f,disabled:d,disableElevation:_,disableFocusRipple:g,fullWidth:S,size:k,type:C,variant:O},P=l9(T),j=D&&R.jsx(d9,{className:P.startIcon,ownerState:T,children:D}),F=b&&R.jsx(p9,{className:P.endIcon,ownerState:T,children:b}),E=o||"";return R.jsxs(u9,{ownerState:T,className:Ee(n.className,P.root,h,E),component:f,disabled:d,focusRipple:!g,focusVisibleClassName:Ee(P.focusVisible,w),ref:r,type:C,...M,classes:P,children:[j,l,F]})});function f9(t){return tt("PrivateSwitchBase",t)}Ze("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const h9=t=>{const{classes:e,checked:r,disabled:n,edge:o}=t,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${he(o)}`],input:["input"]};return nt(a,f9,e)},m9=ie(Va)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),_9=ie("input",{shouldForwardProp:Cr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),RM=$.forwardRef(function(e,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:l,disabled:u,disableFocusRipple:f=!1,edge:h=!1,icon:d,id:_,inputProps:g,inputRef:b,name:w,onBlur:S,onChange:k,onFocus:D,readOnly:C,required:O=!1,tabIndex:M,type:T,value:P,...j}=e,[F,E]=ru({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),L=Oo(),G=X=>{D&&D(X),L&&L.onFocus&&L.onFocus(X)},B=X=>{S&&S(X),L&&L.onBlur&&L.onBlur(X)},z=X=>{if(X.nativeEvent.defaultPrevented)return;const re=X.target.checked;E(re),k&&k(X,re)};let H=u;L&&typeof H>"u"&&(H=L.disabled);const K=T==="checkbox"||T==="radio",ee={...e,checked:F,disabled:H,disableFocusRipple:f,edge:h},Y=h9(ee);return R.jsxs(m9,{component:"span",className:Ee(Y.root,i),centerRipple:!0,focusRipple:!f,disabled:H,tabIndex:null,role:void 0,onFocus:G,onBlur:B,ownerState:ee,ref:r,...j,children:[R.jsx(_9,{autoFocus:n,checked:o,defaultChecked:l,className:Y.input,disabled:H,id:K?_:void 0,name:w,onChange:z,readOnly:C,ref:b,required:O,ownerState:ee,tabIndex:M,type:T,...T==="checkbox"&&P===void 0?{}:{value:P},...g}),F?a:d]})}),g9=Ge(R.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"),y9=Ge(R.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"),v9=Ge(R.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 b9(t){return tt("MuiCheckbox",t)}const s_=Ze("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),w9=t=>{const{classes:e,indeterminate:r,color:n,size:o}=t,a={root:["root",r&&"indeterminate",`color${he(n)}`,`size${he(o)}`]},i=nt(a,b9,e);return{...e,...i}},x9=ie(RM,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${he(r.size)}`],r.color!=="default"&&e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{[`&.${s_.checked}, &.${s_.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${s_.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),S9=R.jsx(y9,{}),k9=R.jsx(g9,{}),C9=R.jsx(v9,{}),tn=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiCheckbox"}),{checkedIcon:o=S9,color:a="primary",icon:i=k9,indeterminate:l=!1,indeterminateIcon:u=C9,inputProps:f,size:h="medium",disableRipple:d=!1,className:_,...g}=n,b=l?u:i,w=l?u:o,S={...n,disableRipple:d,color:a,indeterminate:l,size:h},k=w9(S);return R.jsx(x9,{type:"checkbox",inputProps:{"data-indeterminate":l,...f},icon:$.cloneElement(b,{fontSize:b.props.fontSize??h}),checkedIcon:$.cloneElement(w,{fontSize:w.props.fontSize??h}),ownerState:S,ref:r,className:Ee(k.root,_),disableRipple:d,...g,classes:k})});function $9(t){return tt("MuiCircularProgress",t)}Ze("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ta=44,_0=qa` 0% { transform: rotate(0deg); } @@ -200,7 +200,7 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp animation: ${_0} 1.4s linear infinite; `:null,T9=typeof g0!="string"?Dc` animation: ${g0} 1.4s ease-in-out infinite; - `:null,O9=t=>{const{classes:e,variant:r,color:n,disableShrink:o}=t,a={root:["root",r,`color${he(n)}`],svg:["svg"],circle:["circle",`circle${he(r)}`,o&&"circleDisableShrink"]};return nt(a,$9,e)},D9=ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:E9||{animation:`${_0} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),M9=ie("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),N9=ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${he(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(Xe(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:T9||{animation:`${g0} 1.4s ease-in-out infinite`}}]}))),P9=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:l=40,style:u,thickness:f=3.6,value:h=0,variant:d="indeterminate",..._}=n,g={...n,color:a,disableShrink:i,size:l,thickness:f,value:h,variant:d},b=O9(g),w={},S={},k={};if(d==="determinate"){const D=2*Math.PI*((Ta-f)/2);w.strokeDasharray=D.toFixed(3),k["aria-valuenow"]=Math.round(h),w.strokeDashoffset=`${((100-h)/100*D).toFixed(3)}px`,S.transform="rotate(-90deg)"}return R.jsx(D9,{className:Ee(b.root,o),style:{width:l,height:l,...S,...u},ownerState:g,ref:r,role:"progressbar",...k,..._,children:R.jsx(M9,{className:b.svg,ownerState:g,viewBox:`${Ta/2} ${Ta/2} ${Ta} ${Ta}`,children:R.jsx(N9,{className:b.circle,style:w,ownerState:g,cx:Ta,cy:Ta,r:(Ta-f)/2,fill:"none",strokeWidth:f})})})});function dC(t){return t.substring(2).toLowerCase()}function R9(t,e){return e.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const h=ar(Ws(e),l),d=Nr(b=>{const w=f.current;f.current=!1;const S=cr(l.current);if(!u.current||!l.current||"clientX"in b&&R9(b,S))return;if(i.current){i.current=!1;return}let k;b.composedPath?k=b.composedPath().includes(l.current):k=!S.documentElement.contains(b.target)||l.current.contains(b.target),!k&&(r||!w)&&o(b)}),_=b=>w=>{f.current=!0;const S=e.props[b];S&&S(w)},g={ref:h};return a!==!1&&(g[a]=_(a)),$.useEffect(()=>{if(a!==!1){const b=dC(a),w=cr(l.current),S=()=>{i.current=!0};return w.addEventListener(b,d),w.addEventListener("touchmove",S),()=>{w.removeEventListener(b,d),w.removeEventListener("touchmove",S)}}},[d,a]),n!==!1&&(g[n]=_(n)),$.useEffect(()=>{if(n!==!1){const b=dC(n),w=cr(l.current);return w.addEventListener(b,d),()=>{w.removeEventListener(b,d)}}},[d,n]),$.cloneElement(e,g)}function I9(t){const e=cr(t);return e.body===t?eo(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Gl(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function pC(t){return parseInt(eo(t).getComputedStyle(t).paddingRight,10)||0}function j9(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function fC(t,e,r,n,o){const a=[e,r,...n];[].forEach.call(t.children,i=>{const l=!a.includes(i),u=!j9(i);l&&u&&Gl(i,o)})}function i_(t,e){let r=-1;return t.some((n,o)=>e(n)?(r=o,!0):!1),r}function L9(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if(I9(n)){const i=QD(eo(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${pC(n)+i}px`;const l=cr(n).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${pC(u)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=cr(n).body;else{const i=n.parentElement,l=eo(n);a=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:l})=>{a?i.style.setProperty(l,a):i.style.removeProperty(l)})}}function z9(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class F9{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Gl(e.modalRef,!1);const o=z9(r);fC(r,e.mount,e.modalRef,o,!0);const a=i_(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:o}),n)}mount(e,r){const n=i_(this.containers,a=>a.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=L9(o,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=i_(this.containers,i=>i.modals.includes(e)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),e.modalRef&&Gl(e.modalRef,r),fC(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&Gl(i.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const B9=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function W9(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function U9(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function H9(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||U9(t))}function q9(t){const e=[],r=[];return Array.from(t.querySelectorAll(B9)).forEach((n,o)=>{const a=W9(n);a===-1||!H9(n)||(a===0?e.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(e)}function V9(){return!0}function X9(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=q9,isEnabled:i=V9,open:l}=t,u=$.useRef(!1),f=$.useRef(null),h=$.useRef(null),d=$.useRef(null),_=$.useRef(null),g=$.useRef(!1),b=$.useRef(null),w=ar(Ws(e),b),S=$.useRef(null);$.useEffect(()=>{!l||!b.current||(g.current=!r)},[r,l]),$.useEffect(()=>{if(!l||!b.current)return;const C=cr(b.current);return b.current.contains(C.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),g.current&&b.current.focus()),()=>{o||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[l]),$.useEffect(()=>{if(!l||!b.current)return;const C=cr(b.current),O=P=>{S.current=P,!(n||!i()||P.key!=="Tab")&&C.activeElement===b.current&&P.shiftKey&&(u.current=!0,h.current&&h.current.focus())},M=()=>{var z,E;const P=b.current;if(P===null)return;if(!C.hasFocus()||!i()||u.current){u.current=!1;return}if(P.contains(C.activeElement)||n&&C.activeElement!==f.current&&C.activeElement!==h.current)return;if(C.activeElement!==_.current)_.current=null;else if(_.current!==null)return;if(!g.current)return;let j=[];if((C.activeElement===f.current||C.activeElement===h.current)&&(j=a(b.current)),j.length>0){const L=!!((z=S.current)!=null&&z.shiftKey&&((E=S.current)==null?void 0:E.key)==="Tab"),G=j[0],B=j[j.length-1];typeof G!="string"&&typeof B!="string"&&(L?B.focus():G.focus())}else P.focus()};C.addEventListener("focusin",M),C.addEventListener("keydown",O,!0);const T=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(T),C.removeEventListener("focusin",M),C.removeEventListener("keydown",O,!0)}},[r,n,o,i,l,a]);const k=C=>{d.current===null&&(d.current=C.relatedTarget),g.current=!0,_.current=C.target;const O=e.props.onFocus;O&&O(C)},D=C=>{d.current===null&&(d.current=C.relatedTarget),g.current=!0};return R.jsxs($.Fragment,{children:[R.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:f,"data-testid":"sentinelStart"}),$.cloneElement(e,{ref:w,onFocus:k}),R.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:h,"data-testid":"sentinelEnd"})]})}function G9(t){return typeof t=="function"?t():t}function J9(t){return t?t.props.hasOwnProperty("in"):!1}const hC=()=>{},ep=new F9;function Y9(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:i,children:l,onClose:u,open:f,rootRef:h}=t,d=$.useRef({}),_=$.useRef(null),g=$.useRef(null),b=ar(g,h),[w,S]=$.useState(!f),k=J9(l);let D=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(D=!1);const C=()=>cr(_.current),O=()=>(d.current.modalRef=g.current,d.current.mount=_.current,d.current),M=()=>{ep.mount(O(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},T=Nr(()=>{const H=G9(e)||C().body;ep.add(O(),H),g.current&&M()}),P=()=>ep.isTopModal(O()),j=Nr(H=>{_.current=H,H&&(f&&P()?M():g.current&&Gl(g.current,D))}),z=$.useCallback(()=>{ep.remove(O(),D)},[D]);$.useEffect(()=>()=>{z()},[z]),$.useEffect(()=>{f?T():(!k||!o)&&z()},[f,z,k,o,T]);const E=H=>K=>{var ee;(ee=H.onKeyDown)==null||ee.call(H,K),!(K.key!=="Escape"||K.which===229||!P())&&(r||(K.stopPropagation(),u&&u(K,"escapeKeyDown")))},L=H=>K=>{var ee;(ee=H.onClick)==null||ee.call(H,K),K.target===K.currentTarget&&u&&u(K,"backdropClick")};return{getRootProps:(H={})=>{const K=xs(t);delete K.onTransitionEnter,delete K.onTransitionExited;const ee={...K,...H};return{role:"presentation",...ee,onKeyDown:E(ee),ref:b}},getBackdropProps:(H={})=>{const K=H;return{"aria-hidden":!0,...K,onClick:L(K),open:f}},getTransitionProps:()=>{const H=()=>{S(!1),a&&a()},K=()=>{S(!0),i&&i(),o&&z()};return{onEnter:o0(H,(l==null?void 0:l.props.onEnter)??hC),onExited:o0(K,(l==null?void 0:l.props.onExited)??hC)}},rootRef:b,portalRef:j,isTopModal:P,exited:w,hasTransition:k}}function K9(t){return tt("MuiModal",t)}Ze("MuiModal",["root","hidden","backdrop"]);const Z9=t=>{const{open:e,exited:r,classes:n}=t;return nt({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},K9,n)},Q9=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(Xe(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),eB=ie(MM,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),AM=$.forwardRef(function(e,r){const n=ot({name:"MuiModal",props:e}),{BackdropComponent:o=eB,BackdropProps:a,classes:i,className:l,closeAfterTransition:u=!1,children:f,container:h,component:d,components:_={},componentsProps:g={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:k=!1,disableRestoreFocus:D=!1,disableScrollLock:C=!1,hideBackdrop:O=!1,keepMounted:M=!1,onBackdropClick:T,onClose:P,onTransitionEnter:j,onTransitionExited:z,open:E,slotProps:L={},slots:G={},theme:B,...F}=n,H={...n,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:k,disableRestoreFocus:D,disableScrollLock:C,hideBackdrop:O,keepMounted:M},{getRootProps:K,getBackdropProps:ee,getTransitionProps:Y,portalRef:X,isTopModal:re,exited:I,hasTransition:Q}=Y9({...H,rootRef:r}),me={...H,exited:I},pe=Z9(me),ge={};if(f.props.tabIndex===void 0&&(ge.tabIndex="-1"),Q){const{onEnter:Me,onExited:Be}=Y();ge.onEnter=Me,ge.onExited=Be}const Ce={...F,slots:{root:_.Root,backdrop:_.Backdrop,...G},slotProps:{...g,...L}},[Re,Te]=Sr("root",{elementType:Q9,externalForwardedProps:Ce,getSlotProps:K,additionalProps:{ref:r,as:d},ownerState:me,className:Ee(l,pe==null?void 0:pe.root,!me.open&&me.exited&&(pe==null?void 0:pe.hidden))}),[Pe,Oe]=Sr("backdrop",{elementType:o,externalForwardedProps:Ce,additionalProps:a,getSlotProps:Me=>ee({...Me,onClick:Be=>{T&&T(Be),Me!=null&&Me.onClick&&Me.onClick(Be)}}),className:Ee(a==null?void 0:a.className,pe==null?void 0:pe.backdrop),ownerState:me}),Fe=ar(a==null?void 0:a.ref,Oe.ref);return!M&&!E&&(!Q||I)?null:R.jsx(TM,{ref:X,container:h,disablePortal:k,children:R.jsxs(Re,{...Te,children:[!O&&o?R.jsx(Pe,{...Oe,ref:Fe}):null,R.jsx(X9,{disableEnforceFocus:w,disableAutoFocus:b,disableRestoreFocus:D,isEnabled:re,open:E,children:$.cloneElement(f,ge)})]})})});function tB(t){return tt("MuiDialog",t)}const c_=Ze("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),IM=$.createContext({}),rB=ie(MM,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),nB=t=>{const{classes:e,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=t,i={root:["root"],container:["container",`scroll${he(r)}`],paper:["paper",`paperScroll${he(r)}`,`paperWidth${he(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return nt(i,tB,e)},oB=ie(AM,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),aB=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e[`scroll${he(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),sB=ie(ku,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e[`scrollPaper${he(r.scroll)}`],e[`paperWidth${he(String(r.maxWidth))}`],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})(Xe(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${c_.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${c_.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+32*2)]:{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,[`&.${c_.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ra=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialog"}),o=ta(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,"aria-modal":u=!0,BackdropComponent:f,BackdropProps:h,children:d,className:_,disableEscapeKeyDown:g=!1,fullScreen:b=!1,fullWidth:w=!1,maxWidth:S="sm",onBackdropClick:k,onClick:D,onClose:C,open:O,PaperComponent:M=ku,PaperProps:T={},scroll:P="paper",TransitionComponent:j=DM,transitionDuration:z=a,TransitionProps:E,...L}=n,G={...n,disableEscapeKeyDown:g,fullScreen:b,fullWidth:w,maxWidth:S,scroll:P},B=nB(G),F=$.useRef(),H=X=>{F.current=X.target===X.currentTarget},K=X=>{D&&D(X),F.current&&(F.current=null,k&&k(X),C&&C(X,"backdropClick"))},ee=Tf(l),Y=$.useMemo(()=>({titleId:ee}),[ee]);return R.jsx(oB,{className:Ee(B.root,_),closeAfterTransition:!0,components:{Backdrop:rB},componentsProps:{backdrop:{transitionDuration:z,as:f,...h}},disableEscapeKeyDown:g,onClose:C,open:O,ref:r,onClick:K,ownerState:G,...L,children:R.jsx(j,{appear:!0,in:O,timeout:z,role:"presentation",...E,children:R.jsx(aB,{className:Ee(B.container),onMouseDown:H,ownerState:G,children:R.jsx(sB,{as:M,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":ee,"aria-modal":u,...T,className:Ee(B.paper,T.className),ownerState:G,children:R.jsx(IM.Provider,{value:Y,children:d})})})})})});function iB(t){return tt("MuiDialogActions",t)}Ze("MuiDialogActions",["root","spacing"]);const cB=t=>{const{classes:e,disableSpacing:r}=t;return nt({root:["root",!r&&"spacing"]},iB,e)},lB=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),na=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...i}=n,l={...n,disableSpacing:a},u=cB(l);return R.jsx(lB,{className:Ee(u.root,o),ownerState:l,ref:r,...i})});function uB(t){return tt("MuiDialogContent",t)}Ze("MuiDialogContent",["root","dividers"]);function dB(t){return tt("MuiDialogTitle",t)}const pB=Ze("MuiDialogTitle",["root"]),fB=t=>{const{classes:e,dividers:r}=t;return nt({root:["root",r&&"dividers"]},uB,e)},hB=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})(Xe(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${pB.root} + &`]:{paddingTop:0}}}]}))),oa=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...i}=n,l={...n,dividers:a},u=fB(l);return R.jsx(hB,{className:Ee(u.root,o),ownerState:l,ref:r,...i})});function mB(t){return tt("MuiDialogContentText",t)}Ze("MuiDialogContentText",["root"]);const _B=t=>{const{classes:e}=t,n=nt({root:["root"]},mB,e);return{...e,...n}},gB=ie(bo,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({}),If=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogContentText"}),{children:o,className:a,...i}=n,l=_B(i);return R.jsx(gB,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:i,className:Ee(l.root,a),...n,classes:l})}),yB=t=>{const{classes:e}=t;return nt({root:["root"]},dB,e)},vB=ie(bo,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),aa=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogTitle"}),{className:o,id:a,...i}=n,l=n,u=yB(l),{titleId:f=a}=$.useContext(IM);return R.jsx(vB,{component:"h2",className:Ee(u.root,o),ownerState:l,ref:r,variant:"h6",id:a??f,...i})}),mC=Ze("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function bB(t){return tt("MuiFab",t)}const _C=Ze("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),wB=t=>{const{color:e,variant:r,classes:n,size:o}=t,a={root:["root",r,`size${he(o)}`,e==="inherit"?"colorInherit":e]},i=nt(a,bB,n);return{...n,...i}},xB=ie(Va,{name:"MuiFab",slot:"Root",shouldForwardProp:t=>Cr(t)||t==="classes",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${he(r.size)}`],r.color==="inherit"&&e.colorInherit,e[he(r.size)],e[r.color]]}})(Xe(({theme:t})=>{var e,r;return{...t.typography.button,minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:(r=(e=t.palette).getContrastText)==null?void 0:r.call(e,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},[`&.${_C.focusVisible}`]:{boxShadow:(t.vars||t).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"}}]}}),Xe(({theme:t})=>({variants:[...Object.entries(t.palette).filter(Jt(["dark","contrastText"])).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}}}}))]})),Xe(({theme:t})=>({[`&.${_C.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}))),Cs=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFab"}),{children:o,className:a,color:i="default",component:l="button",disabled:u=!1,disableFocusRipple:f=!1,focusVisibleClassName:h,size:d="large",variant:_="circular",...g}=n,b={...n,color:i,component:l,disabled:u,disableFocusRipple:f,size:d,variant:_},w=wB(b);return R.jsx(xB,{className:Ee(w.root,a),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:Ee(w.focusVisible,h),ownerState:b,ref:r,...g,classes:w,children:o})}),SB=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:o,size:a,hiddenLabel:i,multiline:l}=t,u={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${he(a)}`,i&&"hiddenLabel",l&&"multiline"],input:["input"]},f=nt(u,B8,e);return{...e,...f}},kB=ie(Rf,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Nf(t,e),!r.disableUnderline&&e.underline]}})(Xe(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${ls.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${ls.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ls.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ls.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ls.disabled}, .${ls.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${ls.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Jt()).map(([i])=>{var l;return{props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(l=(t.vars||t).palette[i])==null?void 0:l.main}`}}}}),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:l})=>i.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),CB=ie(Af,{name:"MuiFilledInput",slot:"Input",overridesResolver:Pf})(Xe(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ab=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:l=!1,hiddenLabel:u,inputComponent:f="input",multiline:h=!1,slotProps:d,slots:_={},type:g="text",...b}=n,w={...n,disableUnderline:o,fullWidth:l,inputComponent:f,multiline:h,type:g},S=SB(n),k={root:{ownerState:w},input:{ownerState:w}},D=d??i?kr(k,d??i):k,C=_.root??a.Root??kB,O=_.input??a.Input??CB;return R.jsx(Rb,{slots:{root:C,input:O},slotProps:D,fullWidth:l,inputComponent:f,multiline:h,ref:r,type:g,...b,classes:S})});Ab.muiName="Input";function $B(t){return tt("MuiFormControl",t)}Ze("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const EB=t=>{const{classes:e,margin:r,fullWidth:n}=t,o={root:["root",r!=="none"&&`margin${he(r)}`,n&&"fullWidth"]};return nt(o,$B,e)},TB=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`margin${he(r.margin)}`],r.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Fi=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:l="div",disabled:u=!1,error:f=!1,focused:h,fullWidth:d=!1,hiddenLabel:_=!1,margin:g="none",required:b=!1,size:w="medium",variant:S="outlined",...k}=n,D={...n,color:i,component:l,disabled:u,error:f,fullWidth:d,hiddenLabel:_,margin:g,required:b,size:w,variant:S},C=EB(D),[O,M]=$.useState(()=>{let B=!1;return o&&$.Children.forEach(o,F=>{if(!r_(F,["Input","Select"]))return;const H=r_(F,["Select"])?F.props.input:F;H&&I8(H.props)&&(B=!0)}),B}),[T,P]=$.useState(()=>{let B=!1;return o&&$.Children.forEach(o,F=>{r_(F,["Input","Select"])&&(qp(F.props,!0)||qp(F.props.inputProps,!0))&&(B=!0)}),B}),[j,z]=$.useState(!1);u&&j&&z(!1);const E=h!==void 0&&!u?h:j;let L;$.useRef(!1);const G=$.useMemo(()=>({adornedStart:O,setAdornedStart:M,color:i,disabled:u,error:f,filled:T,focused:E,fullWidth:d,hiddenLabel:_,size:w,onBlur:()=>{z(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{z(!0)},registerEffect:L,required:b,variant:S}),[O,i,u,f,T,E,d,_,L,b,w,S]);return R.jsx(Pb.Provider,{value:G,children:R.jsx(TB,{as:l,ownerState:D,className:Ee(C.root,a),ref:r,...k,children:o})})});function OB(t){return tt("MuiFormControlLabel",t)}const Ll=Ze("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),DB=t=>{const{classes:e,disabled:r,labelPlacement:n,error:o,required:a}=t,i={root:["root",r&&"disabled",`labelPlacement${he(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return nt(i,OB,e)},MB=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ll.label}`]:e.label},e.root,e[`labelPlacement${he(r.labelPlacement)}`]]}})(Xe(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ll.disabled}`]:{cursor:"default"},[`& .${Ll.label}`]:{[`&.${Ll.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),NB=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Xe(({theme:t})=>({[`&.${Ll.error}`]:{color:(t.vars||t).palette.error.main}}))),gt=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:i={},control:l,disabled:u,disableTypography:f,inputRef:h,label:d,labelPlacement:_="end",name:g,onChange:b,required:w,slots:S={},slotProps:k={},value:D,...C}=n,O=Oo(),M=u??l.props.disabled??(O==null?void 0:O.disabled),T=w??l.props.required,P={disabled:M,required:T};["checked","name","onChange","value","inputRef"].forEach(H=>{typeof l.props[H]>"u"&&typeof n[H]<"u"&&(P[H]=n[H])});const j=Ga({props:n,muiFormControl:O,states:["error"]}),z={...n,disabled:M,labelPlacement:_,required:T,error:j.error},E=DB(z),L={slots:S,slotProps:{...i,...k}},[G,B]=Sr("typography",{elementType:bo,externalForwardedProps:L,ownerState:z});let F=d;return F!=null&&F.type!==bo&&!f&&(F=R.jsx(G,{component:"span",...B,className:Ee(E.label,B==null?void 0:B.className),children:F})),R.jsxs(MB,{className:Ee(E.root,a),ownerState:z,ref:r,...C,children:[$.cloneElement(l,P),T?R.jsxs("div",{children:[F,R.jsxs(NB,{ownerState:z,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):F]})});function PB(t){return tt("MuiFormGroup",t)}Ze("MuiFormGroup",["root","row","error"]);const RB=t=>{const{classes:e,row:r,error:n}=t;return nt({root:["root",r&&"row",n&&"error"]},PB,e)},AB=ie("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.row&&e.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),l_=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormGroup"}),{className:o,row:a=!1,...i}=n,l=Oo(),u=Ga({props:n,muiFormControl:l,states:["error"]}),f={...n,row:a,error:u.error},h=RB(f);return R.jsx(AB,{className:Ee(h.root,o),ownerState:f,ref:r,...i})});function IB(t){return tt("MuiFormHelperText",t)}const gC=Ze("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var yC;const jB=t=>{const{classes:e,contained:r,size:n,disabled:o,error:a,filled:i,focused:l,required:u}=t,f={root:["root",o&&"disabled",a&&"error",n&&`size${he(n)}`,r&&"contained",l&&"focused",i&&"filled",u&&"required"]};return nt(f,IB,e)},LB=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${he(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${gC.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${gC.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),zB=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p",disabled:l,error:u,filled:f,focused:h,margin:d,required:_,variant:g,...b}=n,w=Oo(),S=Ga({props:n,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),k={...n,component:i,contained:S.variant==="filled"||S.variant==="outlined",variant:S.variant,size:S.size,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required};delete k.ownerState;const D=jB(k);return R.jsx(LB,{as:i,className:Ee(D.root,a),ref:r,...b,ownerState:k,children:o===" "?yC||(yC=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function FB(t){return tt("MuiFormLabel",t)}const Jl=Ze("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),BB=t=>{const{classes:e,color:r,focused:n,disabled:o,error:a,filled:i,required:l}=t,u={root:["root",`color${he(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return nt(u,FB,e)},WB=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{[`&.${Jl.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${Jl.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Jl.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),UB=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Xe(({theme:t})=>({[`&.${Jl.error}`]:{color:(t.vars||t).palette.error.main}}))),HB=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormLabel"}),{children:o,className:a,color:i,component:l="label",disabled:u,error:f,filled:h,focused:d,required:_,...g}=n,b=Oo(),w=Ga({props:n,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),S={...n,color:w.color||"primary",component:l,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required},k=BB(S);return R.jsxs(WB,{as:l,ownerState:S,className:Ee(k.root,a),ref:r,...g,children:[o,w.required&&R.jsxs(UB,{ownerState:S,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]})});function y0(t){return`scale(${t}, ${t**2})`}const qB={entering:{opacity:1,transform:y0(1)},entered:{opacity:1,transform:"none"}},u_=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),iu=$.forwardRef(function(e,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:l,onEnter:u,onEntered:f,onEntering:h,onExit:d,onExited:_,onExiting:g,style:b,timeout:w="auto",TransitionComponent:S=To,...k}=e,D=vs(),C=$.useRef(),O=ta(),M=$.useRef(null),T=ar(M,Ws(a),r),P=H=>K=>{if(H){const ee=M.current;K===void 0?H(ee):H(ee,K)}},j=P(h),z=P((H,K)=>{gM(H);const{duration:ee,delay:Y,easing:X}=Wp({style:b,timeout:w,easing:i},{mode:"enter"});let re;w==="auto"?(re=O.transitions.getAutoHeightDuration(H.clientHeight),C.current=re):re=ee,H.style.transition=[O.transitions.create("opacity",{duration:re,delay:Y}),O.transitions.create("transform",{duration:u_?re:re*.666,delay:Y,easing:X})].join(","),u&&u(H,K)}),E=P(f),L=P(g),G=P(H=>{const{duration:K,delay:ee,easing:Y}=Wp({style:b,timeout:w,easing:i},{mode:"exit"});let X;w==="auto"?(X=O.transitions.getAutoHeightDuration(H.clientHeight),C.current=X):X=K,H.style.transition=[O.transitions.create("opacity",{duration:X,delay:ee}),O.transitions.create("transform",{duration:u_?X:X*.666,delay:u_?ee:ee||X*.333,easing:Y})].join(","),H.style.opacity=0,H.style.transform=y0(.75),d&&d(H)}),B=P(_),F=H=>{w==="auto"&&D.start(C.current||0,H),n&&n(M.current,H)};return R.jsx(S,{appear:o,in:l,nodeRef:M,onEnter:z,onEntered:E,onEntering:j,onExit:G,onExited:B,onExiting:L,addEndListener:F,timeout:w==="auto"?null:w,...k,children:(H,{ownerState:K,...ee})=>$.cloneElement(a,{style:{opacity:0,transform:y0(.75),visibility:H==="exited"&&!l?"hidden":void 0,...qB[H],...b,...a.props.style},ref:T,...ee})})});iu&&(iu.muiSupportAuto=!0);const VB=hz({themeId:Zn}),XB=t=>{const{classes:e,disableUnderline:r}=t,o=nt({root:["root",!r&&"underline"],input:["input"]},z8,e);return{...e,...o}},GB=ie(Rf,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Nf(t,e),!r.disableUnderline&&e.underline]}})(Xe(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wl.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${wl.disabled}, .${wl.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${wl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Jt()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),JB=ie(Af,{name:"MuiInput",slot:"Input",overridesResolver:Pf})({}),mo=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:l=!1,inputComponent:u="input",multiline:f=!1,slotProps:h,slots:d={},type:_="text",...g}=n,b=XB(n),S={root:{ownerState:{disableUnderline:o}}},k=h??i?kr(h??i,S):S,D=d.root??a.Root??GB,C=d.input??a.Input??JB;return R.jsx(Rb,{slots:{root:D,input:C},slotProps:k,fullWidth:l,inputComponent:u,multiline:f,ref:r,type:_,...g,classes:b})});mo.muiName="Input";function YB(t){return tt("MuiInputLabel",t)}Ze("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const KB=t=>{const{classes:e,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:l}=t,u={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${he(n)}`,i],asterisk:[l&&"asterisk"]},f=nt(u,YB,e);return{...e,...f}},ZB=ie(HB,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Jl.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(Xe(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Tp=$.forwardRef(function(e,r){const n=ot({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:a,shrink:i,variant:l,className:u,...f}=n,h=Oo();let d=i;typeof d>"u"&&h&&(d=h.filled||h.focused||h.adornedStart);const _=Ga({props:n,muiFormControl:h,states:["size","variant","required","focused"]}),g={...n,disableAnimation:o,formControl:h,shrink:d,size:_.size,variant:_.variant,required:_.required,focused:_.focused},b=KB(g);return R.jsx(ZB,{"data-shrink":d,ref:r,className:Ee(b.root,u),...f,ownerState:g,classes:b})});function QB(t){return tt("MuiLinearProgress",t)}Ze("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const v0=4,b0=qa` + `:null,O9=t=>{const{classes:e,variant:r,color:n,disableShrink:o}=t,a={root:["root",r,`color${he(n)}`],svg:["svg"],circle:["circle",`circle${he(r)}`,o&&"circleDisableShrink"]};return nt(a,$9,e)},D9=ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:E9||{animation:`${_0} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),M9=ie("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),N9=ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${he(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(Xe(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:T9||{animation:`${g0} 1.4s ease-in-out infinite`}}]}))),P9=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:l=40,style:u,thickness:f=3.6,value:h=0,variant:d="indeterminate",..._}=n,g={...n,color:a,disableShrink:i,size:l,thickness:f,value:h,variant:d},b=O9(g),w={},S={},k={};if(d==="determinate"){const D=2*Math.PI*((Ta-f)/2);w.strokeDasharray=D.toFixed(3),k["aria-valuenow"]=Math.round(h),w.strokeDashoffset=`${((100-h)/100*D).toFixed(3)}px`,S.transform="rotate(-90deg)"}return R.jsx(D9,{className:Ee(b.root,o),style:{width:l,height:l,...S,...u},ownerState:g,ref:r,role:"progressbar",...k,..._,children:R.jsx(M9,{className:b.svg,ownerState:g,viewBox:`${Ta/2} ${Ta/2} ${Ta} ${Ta}`,children:R.jsx(N9,{className:b.circle,style:w,ownerState:g,cx:Ta,cy:Ta,r:(Ta-f)/2,fill:"none",strokeWidth:f})})})});function dC(t){return t.substring(2).toLowerCase()}function R9(t,e){return e.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const h=ar(Ws(e),l),d=Nr(b=>{const w=f.current;f.current=!1;const S=cr(l.current);if(!u.current||!l.current||"clientX"in b&&R9(b,S))return;if(i.current){i.current=!1;return}let k;b.composedPath?k=b.composedPath().includes(l.current):k=!S.documentElement.contains(b.target)||l.current.contains(b.target),!k&&(r||!w)&&o(b)}),_=b=>w=>{f.current=!0;const S=e.props[b];S&&S(w)},g={ref:h};return a!==!1&&(g[a]=_(a)),$.useEffect(()=>{if(a!==!1){const b=dC(a),w=cr(l.current),S=()=>{i.current=!0};return w.addEventListener(b,d),w.addEventListener("touchmove",S),()=>{w.removeEventListener(b,d),w.removeEventListener("touchmove",S)}}},[d,a]),n!==!1&&(g[n]=_(n)),$.useEffect(()=>{if(n!==!1){const b=dC(n),w=cr(l.current);return w.addEventListener(b,d),()=>{w.removeEventListener(b,d)}}},[d,n]),$.cloneElement(e,g)}function I9(t){const e=cr(t);return e.body===t?eo(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Gl(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function pC(t){return parseInt(eo(t).getComputedStyle(t).paddingRight,10)||0}function j9(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function fC(t,e,r,n,o){const a=[e,r,...n];[].forEach.call(t.children,i=>{const l=!a.includes(i),u=!j9(i);l&&u&&Gl(i,o)})}function i_(t,e){let r=-1;return t.some((n,o)=>e(n)?(r=o,!0):!1),r}function L9(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if(I9(n)){const i=QD(eo(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${pC(n)+i}px`;const l=cr(n).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${pC(u)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=cr(n).body;else{const i=n.parentElement,l=eo(n);a=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:l})=>{a?i.style.setProperty(l,a):i.style.removeProperty(l)})}}function F9(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class z9{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Gl(e.modalRef,!1);const o=F9(r);fC(r,e.mount,e.modalRef,o,!0);const a=i_(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:o}),n)}mount(e,r){const n=i_(this.containers,a=>a.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=L9(o,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=i_(this.containers,i=>i.modals.includes(e)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),e.modalRef&&Gl(e.modalRef,r),fC(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&Gl(i.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const B9=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function W9(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function U9(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function H9(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||U9(t))}function q9(t){const e=[],r=[];return Array.from(t.querySelectorAll(B9)).forEach((n,o)=>{const a=W9(n);a===-1||!H9(n)||(a===0?e.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(e)}function V9(){return!0}function X9(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=q9,isEnabled:i=V9,open:l}=t,u=$.useRef(!1),f=$.useRef(null),h=$.useRef(null),d=$.useRef(null),_=$.useRef(null),g=$.useRef(!1),b=$.useRef(null),w=ar(Ws(e),b),S=$.useRef(null);$.useEffect(()=>{!l||!b.current||(g.current=!r)},[r,l]),$.useEffect(()=>{if(!l||!b.current)return;const C=cr(b.current);return b.current.contains(C.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),g.current&&b.current.focus()),()=>{o||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[l]),$.useEffect(()=>{if(!l||!b.current)return;const C=cr(b.current),O=P=>{S.current=P,!(n||!i()||P.key!=="Tab")&&C.activeElement===b.current&&P.shiftKey&&(u.current=!0,h.current&&h.current.focus())},M=()=>{var F,E;const P=b.current;if(P===null)return;if(!C.hasFocus()||!i()||u.current){u.current=!1;return}if(P.contains(C.activeElement)||n&&C.activeElement!==f.current&&C.activeElement!==h.current)return;if(C.activeElement!==_.current)_.current=null;else if(_.current!==null)return;if(!g.current)return;let j=[];if((C.activeElement===f.current||C.activeElement===h.current)&&(j=a(b.current)),j.length>0){const L=!!((F=S.current)!=null&&F.shiftKey&&((E=S.current)==null?void 0:E.key)==="Tab"),G=j[0],B=j[j.length-1];typeof G!="string"&&typeof B!="string"&&(L?B.focus():G.focus())}else P.focus()};C.addEventListener("focusin",M),C.addEventListener("keydown",O,!0);const T=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(T),C.removeEventListener("focusin",M),C.removeEventListener("keydown",O,!0)}},[r,n,o,i,l,a]);const k=C=>{d.current===null&&(d.current=C.relatedTarget),g.current=!0,_.current=C.target;const O=e.props.onFocus;O&&O(C)},D=C=>{d.current===null&&(d.current=C.relatedTarget),g.current=!0};return R.jsxs($.Fragment,{children:[R.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:f,"data-testid":"sentinelStart"}),$.cloneElement(e,{ref:w,onFocus:k}),R.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:h,"data-testid":"sentinelEnd"})]})}function G9(t){return typeof t=="function"?t():t}function J9(t){return t?t.props.hasOwnProperty("in"):!1}const hC=()=>{},ep=new z9;function Y9(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:i,children:l,onClose:u,open:f,rootRef:h}=t,d=$.useRef({}),_=$.useRef(null),g=$.useRef(null),b=ar(g,h),[w,S]=$.useState(!f),k=J9(l);let D=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(D=!1);const C=()=>cr(_.current),O=()=>(d.current.modalRef=g.current,d.current.mount=_.current,d.current),M=()=>{ep.mount(O(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},T=Nr(()=>{const H=G9(e)||C().body;ep.add(O(),H),g.current&&M()}),P=()=>ep.isTopModal(O()),j=Nr(H=>{_.current=H,H&&(f&&P()?M():g.current&&Gl(g.current,D))}),F=$.useCallback(()=>{ep.remove(O(),D)},[D]);$.useEffect(()=>()=>{F()},[F]),$.useEffect(()=>{f?T():(!k||!o)&&F()},[f,F,k,o,T]);const E=H=>K=>{var ee;(ee=H.onKeyDown)==null||ee.call(H,K),!(K.key!=="Escape"||K.which===229||!P())&&(r||(K.stopPropagation(),u&&u(K,"escapeKeyDown")))},L=H=>K=>{var ee;(ee=H.onClick)==null||ee.call(H,K),K.target===K.currentTarget&&u&&u(K,"backdropClick")};return{getRootProps:(H={})=>{const K=xs(t);delete K.onTransitionEnter,delete K.onTransitionExited;const ee={...K,...H};return{role:"presentation",...ee,onKeyDown:E(ee),ref:b}},getBackdropProps:(H={})=>{const K=H;return{"aria-hidden":!0,...K,onClick:L(K),open:f}},getTransitionProps:()=>{const H=()=>{S(!1),a&&a()},K=()=>{S(!0),i&&i(),o&&F()};return{onEnter:o0(H,(l==null?void 0:l.props.onEnter)??hC),onExited:o0(K,(l==null?void 0:l.props.onExited)??hC)}},rootRef:b,portalRef:j,isTopModal:P,exited:w,hasTransition:k}}function K9(t){return tt("MuiModal",t)}Ze("MuiModal",["root","hidden","backdrop"]);const Z9=t=>{const{open:e,exited:r,classes:n}=t;return nt({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},K9,n)},Q9=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(Xe(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),eB=ie(MM,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),AM=$.forwardRef(function(e,r){const n=ot({name:"MuiModal",props:e}),{BackdropComponent:o=eB,BackdropProps:a,classes:i,className:l,closeAfterTransition:u=!1,children:f,container:h,component:d,components:_={},componentsProps:g={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:k=!1,disableRestoreFocus:D=!1,disableScrollLock:C=!1,hideBackdrop:O=!1,keepMounted:M=!1,onBackdropClick:T,onClose:P,onTransitionEnter:j,onTransitionExited:F,open:E,slotProps:L={},slots:G={},theme:B,...z}=n,H={...n,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:k,disableRestoreFocus:D,disableScrollLock:C,hideBackdrop:O,keepMounted:M},{getRootProps:K,getBackdropProps:ee,getTransitionProps:Y,portalRef:X,isTopModal:re,exited:I,hasTransition:Q}=Y9({...H,rootRef:r}),me={...H,exited:I},pe=Z9(me),ge={};if(f.props.tabIndex===void 0&&(ge.tabIndex="-1"),Q){const{onEnter:Me,onExited:Be}=Y();ge.onEnter=Me,ge.onExited=Be}const Ce={...z,slots:{root:_.Root,backdrop:_.Backdrop,...G},slotProps:{...g,...L}},[Re,Te]=Sr("root",{elementType:Q9,externalForwardedProps:Ce,getSlotProps:K,additionalProps:{ref:r,as:d},ownerState:me,className:Ee(l,pe==null?void 0:pe.root,!me.open&&me.exited&&(pe==null?void 0:pe.hidden))}),[Pe,Oe]=Sr("backdrop",{elementType:o,externalForwardedProps:Ce,additionalProps:a,getSlotProps:Me=>ee({...Me,onClick:Be=>{T&&T(Be),Me!=null&&Me.onClick&&Me.onClick(Be)}}),className:Ee(a==null?void 0:a.className,pe==null?void 0:pe.backdrop),ownerState:me}),ze=ar(a==null?void 0:a.ref,Oe.ref);return!M&&!E&&(!Q||I)?null:R.jsx(TM,{ref:X,container:h,disablePortal:k,children:R.jsxs(Re,{...Te,children:[!O&&o?R.jsx(Pe,{...Oe,ref:ze}):null,R.jsx(X9,{disableEnforceFocus:w,disableAutoFocus:b,disableRestoreFocus:D,isEnabled:re,open:E,children:$.cloneElement(f,ge)})]})})});function tB(t){return tt("MuiDialog",t)}const c_=Ze("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),IM=$.createContext({}),rB=ie(MM,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),nB=t=>{const{classes:e,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=t,i={root:["root"],container:["container",`scroll${he(r)}`],paper:["paper",`paperScroll${he(r)}`,`paperWidth${he(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return nt(i,tB,e)},oB=ie(AM,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),aB=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e[`scroll${he(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),sB=ie(ku,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e[`scrollPaper${he(r.scroll)}`],e[`paperWidth${he(String(r.maxWidth))}`],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})(Xe(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${c_.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${c_.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+32*2)]:{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,[`&.${c_.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ra=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialog"}),o=ta(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,"aria-modal":u=!0,BackdropComponent:f,BackdropProps:h,children:d,className:_,disableEscapeKeyDown:g=!1,fullScreen:b=!1,fullWidth:w=!1,maxWidth:S="sm",onBackdropClick:k,onClick:D,onClose:C,open:O,PaperComponent:M=ku,PaperProps:T={},scroll:P="paper",TransitionComponent:j=DM,transitionDuration:F=a,TransitionProps:E,...L}=n,G={...n,disableEscapeKeyDown:g,fullScreen:b,fullWidth:w,maxWidth:S,scroll:P},B=nB(G),z=$.useRef(),H=X=>{z.current=X.target===X.currentTarget},K=X=>{D&&D(X),z.current&&(z.current=null,k&&k(X),C&&C(X,"backdropClick"))},ee=Tf(l),Y=$.useMemo(()=>({titleId:ee}),[ee]);return R.jsx(oB,{className:Ee(B.root,_),closeAfterTransition:!0,components:{Backdrop:rB},componentsProps:{backdrop:{transitionDuration:F,as:f,...h}},disableEscapeKeyDown:g,onClose:C,open:O,ref:r,onClick:K,ownerState:G,...L,children:R.jsx(j,{appear:!0,in:O,timeout:F,role:"presentation",...E,children:R.jsx(aB,{className:Ee(B.container),onMouseDown:H,ownerState:G,children:R.jsx(sB,{as:M,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":ee,"aria-modal":u,...T,className:Ee(B.paper,T.className),ownerState:G,children:R.jsx(IM.Provider,{value:Y,children:d})})})})})});function iB(t){return tt("MuiDialogActions",t)}Ze("MuiDialogActions",["root","spacing"]);const cB=t=>{const{classes:e,disableSpacing:r}=t;return nt({root:["root",!r&&"spacing"]},iB,e)},lB=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),na=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...i}=n,l={...n,disableSpacing:a},u=cB(l);return R.jsx(lB,{className:Ee(u.root,o),ownerState:l,ref:r,...i})});function uB(t){return tt("MuiDialogContent",t)}Ze("MuiDialogContent",["root","dividers"]);function dB(t){return tt("MuiDialogTitle",t)}const pB=Ze("MuiDialogTitle",["root"]),fB=t=>{const{classes:e,dividers:r}=t;return nt({root:["root",r&&"dividers"]},uB,e)},hB=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})(Xe(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${pB.root} + &`]:{paddingTop:0}}}]}))),oa=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...i}=n,l={...n,dividers:a},u=fB(l);return R.jsx(hB,{className:Ee(u.root,o),ownerState:l,ref:r,...i})});function mB(t){return tt("MuiDialogContentText",t)}Ze("MuiDialogContentText",["root"]);const _B=t=>{const{classes:e}=t,n=nt({root:["root"]},mB,e);return{...e,...n}},gB=ie(bo,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({}),If=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogContentText"}),{children:o,className:a,...i}=n,l=_B(i);return R.jsx(gB,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:i,className:Ee(l.root,a),...n,classes:l})}),yB=t=>{const{classes:e}=t;return nt({root:["root"]},dB,e)},vB=ie(bo,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),aa=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogTitle"}),{className:o,id:a,...i}=n,l=n,u=yB(l),{titleId:f=a}=$.useContext(IM);return R.jsx(vB,{component:"h2",className:Ee(u.root,o),ownerState:l,ref:r,variant:"h6",id:a??f,...i})}),mC=Ze("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function bB(t){return tt("MuiFab",t)}const _C=Ze("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),wB=t=>{const{color:e,variant:r,classes:n,size:o}=t,a={root:["root",r,`size${he(o)}`,e==="inherit"?"colorInherit":e]},i=nt(a,bB,n);return{...n,...i}},xB=ie(Va,{name:"MuiFab",slot:"Root",shouldForwardProp:t=>Cr(t)||t==="classes",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${he(r.size)}`],r.color==="inherit"&&e.colorInherit,e[he(r.size)],e[r.color]]}})(Xe(({theme:t})=>{var e,r;return{...t.typography.button,minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:(r=(e=t.palette).getContrastText)==null?void 0:r.call(e,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},[`&.${_C.focusVisible}`]:{boxShadow:(t.vars||t).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"}}]}}),Xe(({theme:t})=>({variants:[...Object.entries(t.palette).filter(Jt(["dark","contrastText"])).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}}}}))]})),Xe(({theme:t})=>({[`&.${_C.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}))),Cs=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFab"}),{children:o,className:a,color:i="default",component:l="button",disabled:u=!1,disableFocusRipple:f=!1,focusVisibleClassName:h,size:d="large",variant:_="circular",...g}=n,b={...n,color:i,component:l,disabled:u,disableFocusRipple:f,size:d,variant:_},w=wB(b);return R.jsx(xB,{className:Ee(w.root,a),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:Ee(w.focusVisible,h),ownerState:b,ref:r,...g,classes:w,children:o})}),SB=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:o,size:a,hiddenLabel:i,multiline:l}=t,u={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${he(a)}`,i&&"hiddenLabel",l&&"multiline"],input:["input"]},f=nt(u,B8,e);return{...e,...f}},kB=ie(Rf,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Nf(t,e),!r.disableUnderline&&e.underline]}})(Xe(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${ls.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${ls.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ls.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ls.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ls.disabled}, .${ls.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${ls.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Jt()).map(([i])=>{var l;return{props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(l=(t.vars||t).palette[i])==null?void 0:l.main}`}}}}),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:l})=>i.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),CB=ie(Af,{name:"MuiFilledInput",slot:"Input",overridesResolver:Pf})(Xe(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ab=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:l=!1,hiddenLabel:u,inputComponent:f="input",multiline:h=!1,slotProps:d,slots:_={},type:g="text",...b}=n,w={...n,disableUnderline:o,fullWidth:l,inputComponent:f,multiline:h,type:g},S=SB(n),k={root:{ownerState:w},input:{ownerState:w}},D=d??i?kr(k,d??i):k,C=_.root??a.Root??kB,O=_.input??a.Input??CB;return R.jsx(Rb,{slots:{root:C,input:O},slotProps:D,fullWidth:l,inputComponent:f,multiline:h,ref:r,type:g,...b,classes:S})});Ab.muiName="Input";function $B(t){return tt("MuiFormControl",t)}Ze("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const EB=t=>{const{classes:e,margin:r,fullWidth:n}=t,o={root:["root",r!=="none"&&`margin${he(r)}`,n&&"fullWidth"]};return nt(o,$B,e)},TB=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`margin${he(r.margin)}`],r.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),zi=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:l="div",disabled:u=!1,error:f=!1,focused:h,fullWidth:d=!1,hiddenLabel:_=!1,margin:g="none",required:b=!1,size:w="medium",variant:S="outlined",...k}=n,D={...n,color:i,component:l,disabled:u,error:f,fullWidth:d,hiddenLabel:_,margin:g,required:b,size:w,variant:S},C=EB(D),[O,M]=$.useState(()=>{let B=!1;return o&&$.Children.forEach(o,z=>{if(!r_(z,["Input","Select"]))return;const H=r_(z,["Select"])?z.props.input:z;H&&I8(H.props)&&(B=!0)}),B}),[T,P]=$.useState(()=>{let B=!1;return o&&$.Children.forEach(o,z=>{r_(z,["Input","Select"])&&(qp(z.props,!0)||qp(z.props.inputProps,!0))&&(B=!0)}),B}),[j,F]=$.useState(!1);u&&j&&F(!1);const E=h!==void 0&&!u?h:j;let L;$.useRef(!1);const G=$.useMemo(()=>({adornedStart:O,setAdornedStart:M,color:i,disabled:u,error:f,filled:T,focused:E,fullWidth:d,hiddenLabel:_,size:w,onBlur:()=>{F(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{F(!0)},registerEffect:L,required:b,variant:S}),[O,i,u,f,T,E,d,_,L,b,w,S]);return R.jsx(Pb.Provider,{value:G,children:R.jsx(TB,{as:l,ownerState:D,className:Ee(C.root,a),ref:r,...k,children:o})})});function OB(t){return tt("MuiFormControlLabel",t)}const Ll=Ze("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),DB=t=>{const{classes:e,disabled:r,labelPlacement:n,error:o,required:a}=t,i={root:["root",r&&"disabled",`labelPlacement${he(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return nt(i,OB,e)},MB=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ll.label}`]:e.label},e.root,e[`labelPlacement${he(r.labelPlacement)}`]]}})(Xe(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ll.disabled}`]:{cursor:"default"},[`& .${Ll.label}`]:{[`&.${Ll.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),NB=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Xe(({theme:t})=>({[`&.${Ll.error}`]:{color:(t.vars||t).palette.error.main}}))),gt=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:i={},control:l,disabled:u,disableTypography:f,inputRef:h,label:d,labelPlacement:_="end",name:g,onChange:b,required:w,slots:S={},slotProps:k={},value:D,...C}=n,O=Oo(),M=u??l.props.disabled??(O==null?void 0:O.disabled),T=w??l.props.required,P={disabled:M,required:T};["checked","name","onChange","value","inputRef"].forEach(H=>{typeof l.props[H]>"u"&&typeof n[H]<"u"&&(P[H]=n[H])});const j=Ga({props:n,muiFormControl:O,states:["error"]}),F={...n,disabled:M,labelPlacement:_,required:T,error:j.error},E=DB(F),L={slots:S,slotProps:{...i,...k}},[G,B]=Sr("typography",{elementType:bo,externalForwardedProps:L,ownerState:F});let z=d;return z!=null&&z.type!==bo&&!f&&(z=R.jsx(G,{component:"span",...B,className:Ee(E.label,B==null?void 0:B.className),children:z})),R.jsxs(MB,{className:Ee(E.root,a),ownerState:F,ref:r,...C,children:[$.cloneElement(l,P),T?R.jsxs("div",{children:[z,R.jsxs(NB,{ownerState:F,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):z]})});function PB(t){return tt("MuiFormGroup",t)}Ze("MuiFormGroup",["root","row","error"]);const RB=t=>{const{classes:e,row:r,error:n}=t;return nt({root:["root",r&&"row",n&&"error"]},PB,e)},AB=ie("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.row&&e.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),l_=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormGroup"}),{className:o,row:a=!1,...i}=n,l=Oo(),u=Ga({props:n,muiFormControl:l,states:["error"]}),f={...n,row:a,error:u.error},h=RB(f);return R.jsx(AB,{className:Ee(h.root,o),ownerState:f,ref:r,...i})});function IB(t){return tt("MuiFormHelperText",t)}const gC=Ze("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var yC;const jB=t=>{const{classes:e,contained:r,size:n,disabled:o,error:a,filled:i,focused:l,required:u}=t,f={root:["root",o&&"disabled",a&&"error",n&&`size${he(n)}`,r&&"contained",l&&"focused",i&&"filled",u&&"required"]};return nt(f,IB,e)},LB=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${he(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${gC.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${gC.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),FB=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p",disabled:l,error:u,filled:f,focused:h,margin:d,required:_,variant:g,...b}=n,w=Oo(),S=Ga({props:n,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),k={...n,component:i,contained:S.variant==="filled"||S.variant==="outlined",variant:S.variant,size:S.size,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required};delete k.ownerState;const D=jB(k);return R.jsx(LB,{as:i,className:Ee(D.root,a),ref:r,...b,ownerState:k,children:o===" "?yC||(yC=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function zB(t){return tt("MuiFormLabel",t)}const Jl=Ze("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),BB=t=>{const{classes:e,color:r,focused:n,disabled:o,error:a,filled:i,required:l}=t,u={root:["root",`color${he(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return nt(u,zB,e)},WB=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{[`&.${Jl.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${Jl.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Jl.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),UB=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(Xe(({theme:t})=>({[`&.${Jl.error}`]:{color:(t.vars||t).palette.error.main}}))),HB=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormLabel"}),{children:o,className:a,color:i,component:l="label",disabled:u,error:f,filled:h,focused:d,required:_,...g}=n,b=Oo(),w=Ga({props:n,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),S={...n,color:w.color||"primary",component:l,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required},k=BB(S);return R.jsxs(WB,{as:l,ownerState:S,className:Ee(k.root,a),ref:r,...g,children:[o,w.required&&R.jsxs(UB,{ownerState:S,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]})});function y0(t){return`scale(${t}, ${t**2})`}const qB={entering:{opacity:1,transform:y0(1)},entered:{opacity:1,transform:"none"}},u_=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),iu=$.forwardRef(function(e,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:l,onEnter:u,onEntered:f,onEntering:h,onExit:d,onExited:_,onExiting:g,style:b,timeout:w="auto",TransitionComponent:S=To,...k}=e,D=vs(),C=$.useRef(),O=ta(),M=$.useRef(null),T=ar(M,Ws(a),r),P=H=>K=>{if(H){const ee=M.current;K===void 0?H(ee):H(ee,K)}},j=P(h),F=P((H,K)=>{gM(H);const{duration:ee,delay:Y,easing:X}=Wp({style:b,timeout:w,easing:i},{mode:"enter"});let re;w==="auto"?(re=O.transitions.getAutoHeightDuration(H.clientHeight),C.current=re):re=ee,H.style.transition=[O.transitions.create("opacity",{duration:re,delay:Y}),O.transitions.create("transform",{duration:u_?re:re*.666,delay:Y,easing:X})].join(","),u&&u(H,K)}),E=P(f),L=P(g),G=P(H=>{const{duration:K,delay:ee,easing:Y}=Wp({style:b,timeout:w,easing:i},{mode:"exit"});let X;w==="auto"?(X=O.transitions.getAutoHeightDuration(H.clientHeight),C.current=X):X=K,H.style.transition=[O.transitions.create("opacity",{duration:X,delay:ee}),O.transitions.create("transform",{duration:u_?X:X*.666,delay:u_?ee:ee||X*.333,easing:Y})].join(","),H.style.opacity=0,H.style.transform=y0(.75),d&&d(H)}),B=P(_),z=H=>{w==="auto"&&D.start(C.current||0,H),n&&n(M.current,H)};return R.jsx(S,{appear:o,in:l,nodeRef:M,onEnter:F,onEntered:E,onEntering:j,onExit:G,onExited:B,onExiting:L,addEndListener:z,timeout:w==="auto"?null:w,...k,children:(H,{ownerState:K,...ee})=>$.cloneElement(a,{style:{opacity:0,transform:y0(.75),visibility:H==="exited"&&!l?"hidden":void 0,...qB[H],...b,...a.props.style},ref:T,...ee})})});iu&&(iu.muiSupportAuto=!0);const VB=hF({themeId:Zn}),XB=t=>{const{classes:e,disableUnderline:r}=t,o=nt({root:["root",!r&&"underline"],input:["input"]},F8,e);return{...e,...o}},GB=ie(Rf,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Nf(t,e),!r.disableUnderline&&e.underline]}})(Xe(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wl.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${wl.disabled}, .${wl.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${wl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Jt()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),JB=ie(Af,{name:"MuiInput",slot:"Input",overridesResolver:Pf})({}),mo=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:l=!1,inputComponent:u="input",multiline:f=!1,slotProps:h,slots:d={},type:_="text",...g}=n,b=XB(n),S={root:{ownerState:{disableUnderline:o}}},k=h??i?kr(h??i,S):S,D=d.root??a.Root??GB,C=d.input??a.Input??JB;return R.jsx(Rb,{slots:{root:D,input:C},slotProps:k,fullWidth:l,inputComponent:u,multiline:f,ref:r,type:_,...g,classes:b})});mo.muiName="Input";function YB(t){return tt("MuiInputLabel",t)}Ze("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const KB=t=>{const{classes:e,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:l}=t,u={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${he(n)}`,i],asterisk:[l&&"asterisk"]},f=nt(u,YB,e);return{...e,...f}},ZB=ie(HB,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Jl.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(Xe(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Tp=$.forwardRef(function(e,r){const n=ot({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:a,shrink:i,variant:l,className:u,...f}=n,h=Oo();let d=i;typeof d>"u"&&h&&(d=h.filled||h.focused||h.adornedStart);const _=Ga({props:n,muiFormControl:h,states:["size","variant","required","focused"]}),g={...n,disableAnimation:o,formControl:h,shrink:d,size:_.size,variant:_.variant,required:_.required,focused:_.focused},b=KB(g);return R.jsx(ZB,{"data-shrink":d,ref:r,className:Ee(b.root,u),...f,ownerState:g,classes:b})});function QB(t){return tt("MuiLinearProgress",t)}Ze("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const v0=4,b0=qa` 0% { left: -35%; right: 100%; @@ -251,7 +251,7 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp } `,r7=typeof x0!="string"?Dc` animation: ${x0} 3s infinite linear; - `:null,n7=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${he(n)}`,r],dashed:["dashed",`dashedColor${he(n)}`],bar1:["bar",`barColor${he(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${he(n)}`,r==="buffer"&&`color${he(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return nt(o,QB,e)},Ib=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?wc(t.palette[e].main,.62):bc(t.palette[e].main,.5),o7=ie("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${he(r.color)}`],e[r.variant]]}})(Xe(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{backgroundColor:Ib(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),a7=ie("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${he(r.color)}`]]}})(Xe(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>{const r=Ib(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),r7||{animation:`${x0} 3s infinite linear`}),s7=ie("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${he(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Xe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${v0}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${v0}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:e7||{animation:`${b0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),i7=ie("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${he(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Xe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:Ib(t,e),transition:`transform .${v0}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:t7||{animation:`${w0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),jM=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:i,valueBuffer:l,variant:u="indeterminate",...f}=n,h={...n,color:a,variant:u},d=n7(h),_=Us(),g={},b={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&i!==void 0){g["aria-valuenow"]=Math.round(i),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let w=i-100;_&&(w=-w),b.bar1.transform=`translateX(${w}%)`}if(u==="buffer"&&l!==void 0){let w=(l||0)-100;_&&(w=-w),b.bar2.transform=`translateX(${w}%)`}return R.jsxs(o7,{className:Ee(d.root,o),ownerState:h,role:"progressbar",...g,ref:r,...f,children:[u==="buffer"?R.jsx(a7,{className:d.dashed,ownerState:h}):null,R.jsx(s7,{className:d.bar1,ownerState:h,style:b.bar1}),u==="determinate"?null:R.jsx(i7,{className:d.bar2,ownerState:h,style:b.bar2})]})});function c7(t){return tt("MuiLink",t)}const l7=Ze("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),u7=({theme:t,ownerState:e})=>{const r=e.color,n=vc(t,`palette.${r}`,!1)||e.color,o=vc(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:Nt(n,.4)},vC={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},d7=t=>{const{classes:e,component:r,focusVisible:n,underline:o}=t,a={root:["root",`underline${he(o)}`,r==="button"&&"button",n&&"focusVisible"]};return nt(a,c7,e)},p7=ie(bo,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`underline${he(r.underline)}`],r.component==="button"&&e.button]}})(Xe(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette[e].mainChannel} / 0.4)`:Nt(t.palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:Nt(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.secondaryChannel} / 0.4)`:Nt(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${l7.focusVisible}`]:{outline:"auto"}}}]}))),f7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiLink"}),o=ta(),{className:a,color:i="primary",component:l="a",onBlur:u,onFocus:f,TypographyClasses:h,underline:d="always",variant:_="inherit",sx:g,...b}=n,[w,S]=$.useState(!1),k=M=>{Ba(M.target)||S(!1),u&&u(M)},D=M=>{Ba(M.target)&&S(!0),f&&f(M)},C={...n,color:i,component:l,focusVisible:w,underline:d,variant:_},O=d7(C);return R.jsx(p7,{color:i,className:Ee(O.root,a),classes:h,component:l,onBlur:k,onFocus:D,ref:r,ownerState:C,variant:_,...b,sx:[...vC[i]===void 0?[{color:i}]:[],...Array.isArray(g)?g:[g]],style:{...b.style,...d==="always"&&i!=="inherit"&&!vC[i]&&{"--Link-underlineColor":u7({theme:o,ownerState:C})}}})}),cu=$.createContext({});function h7(t){return tt("MuiList",t)}Ze("MuiList",["root","padding","dense","subheader"]);const m7=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return nt({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},h7,e)},_7=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),g7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:l=!1,disablePadding:u=!1,subheader:f,...h}=n,d=$.useMemo(()=>({dense:l}),[l]),_={...n,component:i,dense:l,disablePadding:u},g=m7(_);return R.jsx(cu.Provider,{value:d,children:R.jsxs(_7,{as:i,className:Ee(g.root,a),ref:r,ownerState:_,...h,children:[f,o]})})});function y7(t){return tt("MuiListItemIcon",t)}const bC=Ze("MuiListItemIcon",["root","alignItemsFlexStart"]),v7=t=>{const{alignItems:e,classes:r}=t;return nt({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},y7,r)},b7=ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Xe(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),w7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiListItemIcon"}),{className:o,...a}=n,i=$.useContext(cu),l={...n,alignItems:i.alignItems},u=v7(l);return R.jsx(b7,{className:Ee(u.root,o),ownerState:l,ref:r,...a})});function x7(t){return tt("MuiListItemText",t)}const oc=Ze("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),S7=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:a}=t;return nt({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},x7,e)},k7=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${oc.primary}`]:e.primary},{[`& .${oc.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Yk.root}:where(& .${oc.primary})`]:{display:"block"},[`.${Yk.root}:where(& .${oc.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),C7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:l=!1,primary:u,primaryTypographyProps:f,secondary:h,secondaryTypographyProps:d,slots:_={},slotProps:g={},...b}=n,{dense:w}=$.useContext(cu);let S=u??o,k=h;const D={...n,disableTypography:i,inset:l,primary:!!S,secondary:!!k,dense:w},C=S7(D),O={slots:_,slotProps:{primary:f,secondary:d,...g}},[M,T]=Sr("primary",{className:C.primary,elementType:bo,externalForwardedProps:O,ownerState:D}),[P,j]=Sr("secondary",{className:C.secondary,elementType:bo,externalForwardedProps:O,ownerState:D});return S!=null&&S.type!==bo&&!i&&(S=R.jsx(M,{variant:w?"body2":"body1",component:T!=null&&T.variant?void 0:"span",...T,children:S})),k!=null&&k.type!==bo&&!i&&(k=R.jsx(P,{variant:"body2",color:"textSecondary",...j,children:k})),R.jsxs(k7,{className:Ee(C.root,a),ownerState:D,ref:r,...b,children:[S,k]})});function d_(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function wC(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function LM(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function xl(t,e,r,n,o,a){let i=!1,l=o(t,e,e?r:!1);for(;l;){if(l===t.firstChild){if(i)return!1;i=!0}const u=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!LM(l,a)||u)l=o(t,l,r);else return l.focus(),!0}return!1}const $7=$.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:l,disabledItemsFocusable:u=!1,disableListWrap:f=!1,onKeyDown:h,variant:d="selectedMenu",..._}=e,g=$.useRef(null),b=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yn(()=>{o&&g.current.focus()},[o]),$.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(C,{direction:O})=>{const M=!g.current.style.width;if(C.clientHeight{const O=g.current,M=C.key;if(C.ctrlKey||C.metaKey||C.altKey){h&&h(C);return}const P=cr(O).activeElement;if(M==="ArrowDown")C.preventDefault(),xl(O,P,f,u,d_);else if(M==="ArrowUp")C.preventDefault(),xl(O,P,f,u,wC);else if(M==="Home")C.preventDefault(),xl(O,null,f,u,d_);else if(M==="End")C.preventDefault(),xl(O,null,f,u,wC);else if(M.length===1){const j=b.current,z=M.toLowerCase(),E=performance.now();j.keys.length>0&&(E-j.lastTime>500?(j.keys=[],j.repeating=!0,j.previousKeyMatched=!0):j.repeating&&z!==j.keys[0]&&(j.repeating=!1)),j.lastTime=E,j.keys.push(z);const L=P&&!j.repeating&&LM(P,j);j.previousKeyMatched&&(L||xl(O,P,!1,u,d_,j))?C.preventDefault():j.previousKeyMatched=!1}h&&h(C)},S=ar(g,r);let k=-1;$.Children.forEach(i,(C,O)=>{if(!$.isValidElement(C)){k===O&&(k+=1,k>=i.length&&(k=-1));return}C.props.disabled||(d==="selectedMenu"&&C.props.selected||k===-1)&&(k=O),k===O&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(k+=1,k>=i.length&&(k=-1))});const D=$.Children.map(i,(C,O)=>{if(O===k){const M={};return a&&(M.autoFocus=!0),C.props.tabIndex===void 0&&d==="selectedMenu"&&(M.tabIndex=0),$.cloneElement(C,M)}return C});return R.jsx(g7,{role:"menu",ref:S,className:l,onKeyDown:w,tabIndex:o?0:-1,..._,children:D})});function E7(t){return tt("MuiPopover",t)}Ze("MuiPopover",["root","paper"]);function xC(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function SC(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function kC(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function p_(t){return typeof t=="function"?t():t}const T7=t=>{const{classes:e}=t;return nt({root:["root"],paper:["paper"]},E7,e)},O7=ie(AM,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),zM=ie(ku,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),D7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:f,className:h,container:d,elevation:_=8,marginThreshold:g=16,open:b,PaperProps:w={},slots:S={},slotProps:k={},transformOrigin:D={vertical:"top",horizontal:"left"},TransitionComponent:C=iu,transitionDuration:O="auto",TransitionProps:{onEntering:M,...T}={},disableScrollLock:P=!1,...j}=n,z=(k==null?void 0:k.paper)??w,E=$.useRef(),L={...n,anchorOrigin:i,anchorReference:u,elevation:_,marginThreshold:g,externalPaperSlotProps:z,transformOrigin:D,TransitionComponent:C,transitionDuration:O,TransitionProps:T},G=T7(L),B=$.useCallback(()=>{if(u==="anchorPosition")return l;const Oe=p_(a),Me=(Oe&&Oe.nodeType===1?Oe:cr(E.current).body).getBoundingClientRect();return{top:Me.top+xC(Me,i.vertical),left:Me.left+SC(Me,i.horizontal)}},[a,i.horizontal,i.vertical,l,u]),F=$.useCallback(Oe=>({vertical:xC(Oe,D.vertical),horizontal:SC(Oe,D.horizontal)}),[D.horizontal,D.vertical]),H=$.useCallback(Oe=>{const Fe={width:Oe.offsetWidth,height:Oe.offsetHeight},Me=F(Fe);if(u==="none")return{top:null,left:null,transformOrigin:kC(Me)};const Be=B();let We=Be.top-Me.vertical,De=Be.left-Me.horizontal;const pt=We+Fe.height,ce=De+Fe.width,qe=eo(p_(a)),st=qe.innerHeight-g,rt=qe.innerWidth-g;if(g!==null&&West){const Je=pt-st;We-=Je,Me.vertical+=Je}if(g!==null&&Dert){const Je=ce-rt;De-=Je,Me.horizontal+=Je}return{top:`${Math.round(We)}px`,left:`${Math.round(De)}px`,transformOrigin:kC(Me)}},[a,u,B,F,g]),[K,ee]=$.useState(b),Y=$.useCallback(()=>{const Oe=E.current;if(!Oe)return;const Fe=H(Oe);Fe.top!==null&&Oe.style.setProperty("top",Fe.top),Fe.left!==null&&(Oe.style.left=Fe.left),Oe.style.transformOrigin=Fe.transformOrigin,ee(!0)},[H]);$.useEffect(()=>(P&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[a,P,Y]);const X=(Oe,Fe)=>{M&&M(Oe,Fe),Y()},re=()=>{ee(!1)};$.useEffect(()=>{b&&Y()}),$.useImperativeHandle(o,()=>b?{updatePosition:()=>{Y()}}:null,[b,Y]),$.useEffect(()=>{if(!b)return;const Oe=Ef(()=>{Y()}),Fe=eo(a);return Fe.addEventListener("resize",Oe),()=>{Oe.clear(),Fe.removeEventListener("resize",Oe)}},[a,b,Y]);let I=O;O==="auto"&&!C.muiSupportAuto&&(I=void 0);const Q=d||(a?cr(p_(a)).body:void 0),me={slots:S,slotProps:{...k,paper:z}},[pe,ge]=Sr("paper",{elementType:zM,externalForwardedProps:me,additionalProps:{elevation:_,className:Ee(G.paper,z==null?void 0:z.className),style:K?z.style:{...z.style,opacity:0}},ownerState:L}),[Ce,{slotProps:Re,...Te}]=Sr("root",{elementType:O7,externalForwardedProps:me,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Q,open:b},ownerState:L,className:Ee(G.root,h)}),Pe=ar(E,ge.ref);return R.jsx(Ce,{...Te,...!ks(Ce)&&{slotProps:Re,disableScrollLock:P},...j,ref:r,children:R.jsx(C,{appear:!0,in:b,onEntering:X,onExited:re,timeout:I,...T,children:R.jsx(pe,{...ge,ref:Pe,children:f})})})});function M7(t){return tt("MuiMenu",t)}Ze("MuiMenu",["root","paper","list"]);const N7={vertical:"top",horizontal:"right"},P7={vertical:"top",horizontal:"left"},R7=t=>{const{classes:e}=t;return nt({root:["root"],paper:["paper"],list:["list"]},M7,e)},A7=ie(D7,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),I7=ie(zM,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),j7=ie($7,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),jb=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:i,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:f,open:h,PaperProps:d={},PopoverClasses:_,transitionDuration:g="auto",TransitionProps:{onEntering:b,...w}={},variant:S="selectedMenu",slots:k={},slotProps:D={},...C}=n,O=Us(),M={...n,autoFocus:o,disableAutoFocusItem:l,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:g,TransitionProps:w,variant:S},T=R7(M),P=o&&!l&&h,j=$.useRef(null),z=(K,ee)=>{j.current&&j.current.adjustStyleForScrollbar(K,{direction:O?"rtl":"ltr"}),b&&b(K,ee)},E=K=>{K.key==="Tab"&&(K.preventDefault(),f&&f(K,"tabKeyDown"))};let L=-1;$.Children.map(a,(K,ee)=>{$.isValidElement(K)&&(K.props.disabled||(S==="selectedMenu"&&K.props.selected||L===-1)&&(L=ee))});const G=k.paper??I7,B=D.paper??d,F=Dr({elementType:k.root,externalSlotProps:D.root,ownerState:M,className:[T.root,i]}),H=Dr({elementType:G,externalSlotProps:B,ownerState:M,className:T.paper});return R.jsx(A7,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?N7:P7,slots:{paper:G,root:k.root},slotProps:{root:F,paper:H},open:h,ref:r,transitionDuration:g,TransitionProps:{onEntering:z,...w},ownerState:M,...C,classes:_,children:R.jsx(j7,{onKeyDown:E,actions:j,autoFocus:o&&(L===-1||l),autoFocusItem:P,variant:S,...u,className:Ee(T.list,u.className),children:a})})});function L7(t){return tt("MuiMenuItem",t)}const Sl=Ze("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),z7=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},F7=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=t,u=nt({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},L7,i);return{...i,...u}},B7=ie(Va,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:z7})(Xe(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Sl.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Sl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Sl.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Sl.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Sl.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${mC.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${mC.inset}`]:{marginLeft:52},[`& .${oc.root}`]:{marginTop:0,marginBottom:0},[`& .${oc.inset}`]:{paddingLeft:36},[`& .${bC.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${bC.root} svg`]:{fontSize:"1.25rem"}}}]}))),fr=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:f,role:h="menuitem",tabIndex:d,className:_,...g}=n,b=$.useContext(cu),w=$.useMemo(()=>({dense:i||b.dense||!1,disableGutters:u}),[b.dense,i,u]),S=$.useRef(null);yn(()=>{o&&S.current&&S.current.focus()},[o]);const k={...n,dense:w.dense,divider:l,disableGutters:u},D=F7(n),C=ar(S,r);let O;return n.disabled||(O=d!==void 0?d:-1),R.jsx(cu.Provider,{value:w,children:R.jsx(B7,{ref:C,role:h,tabIndex:O,component:a,focusVisibleClassName:Ee(D.focusVisible,f),className:Ee(D.root,_),...g,ownerState:k,classes:D})})});function W7(t){return tt("MuiNativeSelect",t)}const Lb=Ze("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),U7=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:i}=t,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${he(r)}`,a&&"iconOpen",n&&"disabled"]};return nt(l,W7,e)},FM=ie("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Lb.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),H7=ie(FM,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cr,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${Lb.multiple}`]:e.multiple}]}})({}),BM=ie("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Lb.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),q7=ie(BM,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${he(r.variant)}`],r.open&&e.iconOpen]}})({}),V7=$.forwardRef(function(e,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:l,variant:u="standard",...f}=e,h={...e,disabled:o,variant:u,error:a},d=U7(h);return R.jsxs($.Fragment,{children:[R.jsx(H7,{ownerState:h,className:Ee(d.select,n),disabled:o,ref:l||r,...f}),e.multiple?null:R.jsx(q7,{as:i,ownerState:h,className:d.icon})]})});var CC;const X7=ie("fieldset",{shouldForwardProp:Cr})({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%"}),G7=ie("legend",{shouldForwardProp:Cr})(Xe(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function J7(t){const{children:e,classes:r,className:n,label:o,notched:a,...i}=t,l=o!=null&&o!=="",u={...t,notched:a,withLabel:l};return R.jsx(X7,{"aria-hidden":!0,className:n,ownerState:u,...i,children:R.jsx(G7,{ownerState:u,children:l?R.jsx("span",{children:o}):CC||(CC=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Y7=t=>{const{classes:e}=t,n=nt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},F8,e);return{...e,...n}},K7=ie(Rf,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Nf})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${lo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${lo.focused} .${lo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(Jt()).map(([r])=>({props:{color:r},style:{[`&.${lo.focused} .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${lo.error} .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${lo.disabled} .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),Z7=ie(J7,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),Q7=ie(Af,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Pf})(Xe(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),zb=$.forwardRef(function(e,r){var n;const o=ot({props:e,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:l="input",label:u,multiline:f=!1,notched:h,slots:d={},type:_="text",...g}=o,b=Y7(o),w=Oo(),S=Ga({props:o,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...o,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:w,fullWidth:i,hiddenLabel:S.hiddenLabel,multiline:f,size:S.size,type:_},D=d.root??a.Root??K7,C=d.input??a.Input??Q7;return R.jsx(Rb,{slots:{root:D,input:C},renderSuffix:O=>R.jsx(Z7,{ownerState:k,className:b.notchedOutline,label:u!=null&&u!==""&&S.required?n||(n=R.jsxs($.Fragment,{children:[u," ","*"]})):u,notched:typeof h<"u"?h:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:i,inputComponent:l,multiline:f,ref:r,type:_,...g,classes:{...b,notchedOutline:null}})});zb.muiName="Input";const eW=Ge(R.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"),tW=Ge(R.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"),rW=ie("span",{shouldForwardProp:Cr})({position:"relative",display:"flex"}),nW=ie(eW)({transform:"scale(1)"}),oW=ie(tW)(Xe(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function WM(t){const{checked:e=!1,classes:r={},fontSize:n}=t,o={...t,checked:e};return R.jsxs(rW,{className:r.root,ownerState:o,children:[R.jsx(nW,{fontSize:n,className:r.background,ownerState:o}),R.jsx(oW,{fontSize:n,className:r.dot,ownerState:o})]})}const aW=$.createContext(void 0);function sW(){return $.useContext(aW)}function iW(t){return tt("MuiRadio",t)}const $C=Ze("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),cW=t=>{const{classes:e,color:r,size:n}=t,o={root:["root",`color${he(r)}`,n!=="medium"&&`size${he(n)}`]};return{...e,...nt(o,iW,e)}},lW=ie(RM,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${he(r.size)}`],e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${$C.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${$C.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function uW(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const EC=R.jsx(WM,{checked:!0}),TC=R.jsx(WM,{}),zt=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:a=EC,color:i="primary",icon:l=TC,name:u,onChange:f,size:h="medium",className:d,disabled:_,disableRipple:g=!1,...b}=n,w=Oo();let S=_;w&&typeof S>"u"&&(S=w.disabled),S??(S=!1);const k={...n,disabled:S,disableRipple:g,color:i,size:h},D=cW(k),C=sW();let O=o;const M=o0(f,C&&C.onChange);let T=u;return C&&(typeof O>"u"&&(O=uW(C.value,n.value)),typeof T>"u"&&(T=C.name)),R.jsx(lW,{type:"radio",icon:$.cloneElement(l,{fontSize:TC.props.fontSize??h}),checkedIcon:$.cloneElement(a,{fontSize:EC.props.fontSize??h}),disabled:S,ownerState:k,classes:D,name:T,checked:O,onChange:M,ref:r,className:Ee(D.root,d),...b})});function dW(t){return tt("MuiSelect",t)}const kl=Ze("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var OC;const pW=ie(FM,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${kl.select}`]:e.select},{[`&.${kl.select}`]:e[r.variant]},{[`&.${kl.error}`]:e.error},{[`&.${kl.multiple}`]:e.multiple}]}})({[`&.${kl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),fW=ie(BM,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${he(r.variant)}`],r.open&&e.iconOpen]}})({}),hW=ie("input",{shouldForwardProp:t=>Df(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function DC(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function mW(t){return t==null||typeof t=="string"&&!t.trim()}const _W=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:i}=t,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${he(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return nt(l,dW,e)},gW=$.forwardRef(function(e,r){var ft;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:i,children:l,className:u,defaultOpen:f,defaultValue:h,disabled:d,displayEmpty:_,error:g=!1,IconComponent:b,inputRef:w,labelId:S,MenuProps:k={},multiple:D,name:C,onBlur:O,onChange:M,onClose:T,onFocus:P,onOpen:j,open:z,readOnly:E,renderValue:L,required:G,SelectDisplayProps:B={},tabIndex:F,type:H,value:K,variant:ee="standard",...Y}=e,[X,re]=ru({controlled:K,default:h,name:"Select"}),[I,Q]=ru({controlled:z,default:f,name:"Select"}),me=$.useRef(null),pe=$.useRef(null),[ge,Ce]=$.useState(null),{current:Re}=$.useRef(z!=null),[Te,Pe]=$.useState(),Oe=ar(r,w),Fe=$.useCallback(ae=>{pe.current=ae,ae&&Ce(ae)},[]),Me=ge==null?void 0:ge.parentNode;$.useImperativeHandle(Oe,()=>({focus:()=>{pe.current.focus()},node:me.current,value:X}),[X]),$.useEffect(()=>{f&&I&&ge&&!Re&&(Pe(i?null:Me.clientWidth),pe.current.focus())},[ge,i]),$.useEffect(()=>{a&&pe.current.focus()},[a]),$.useEffect(()=>{if(!S)return;const ae=cr(pe.current).getElementById(S);if(ae){const _e=()=>{getSelection().isCollapsed&&pe.current.focus()};return ae.addEventListener("click",_e),()=>{ae.removeEventListener("click",_e)}}},[S]);const Be=(ae,_e)=>{ae?j&&j(_e):T&&T(_e),Re||(Pe(i?null:Me.clientWidth),Q(ae))},We=ae=>{ae.button===0&&(ae.preventDefault(),pe.current.focus(),Be(!0,ae))},De=ae=>{Be(!1,ae)},pt=$.Children.toArray(l),ce=ae=>{const _e=pt.find(ze=>ze.props.value===ae.target.value);_e!==void 0&&(re(_e.props.value),M&&M(ae,_e))},qe=ae=>_e=>{let ze;if(_e.currentTarget.hasAttribute("tabindex")){if(D){ze=Array.isArray(X)?X.slice():[];const Ke=X.indexOf(ae.props.value);Ke===-1?ze.push(ae.props.value):ze.splice(Ke,1)}else ze=ae.props.value;if(ae.props.onClick&&ae.props.onClick(_e),X!==ze&&(re(ze),M)){const Ke=_e.nativeEvent||_e,_t=new Ke.constructor(Ke.type,Ke);Object.defineProperty(_t,"target",{writable:!0,value:{value:ze,name:C}}),M(_t,ae)}D||Be(!1,_e)}},st=ae=>{E||[" ","ArrowUp","ArrowDown","Enter"].includes(ae.key)&&(ae.preventDefault(),Be(!0,ae))},rt=ge!==null&&I,Je=ae=>{!rt&&O&&(Object.defineProperty(ae,"target",{writable:!0,value:{value:X,name:C}}),O(ae))};delete Y["aria-invalid"];let Se,ut;const q=[];let ne=!1;(qp({value:X})||_)&&(L?Se=L(X):ne=!0);const ye=pt.map(ae=>{if(!$.isValidElement(ae))return null;let _e;if(D){if(!Array.isArray(X))throw new Error(Zo(2));_e=X.some(ze=>DC(ze,ae.props.value)),_e&&ne&&q.push(ae.props.children)}else _e=DC(X,ae.props.value),_e&&ne&&(ut=ae.props.children);return $.cloneElement(ae,{"aria-selected":_e?"true":"false",onClick:qe(ae),onKeyUp:ze=>{ze.key===" "&&ze.preventDefault(),ae.props.onKeyUp&&ae.props.onKeyUp(ze)},role:"option",selected:_e,value:void 0,"data-value":ae.props.value})});ne&&(D?q.length===0?Se=null:Se=q.reduce((ae,_e,ze)=>(ae.push(_e),ze{const{classes:e}=t;return e},Fb={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>Cr(t)&&t!=="variant",slot:"Root"},vW=ie(mo,Fb)(""),bW=ie(zb,Fb)(""),wW=ie(Ab,Fb)(""),wo=$.forwardRef(function(e,r){const n=ot({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:a,classes:i={},className:l,defaultOpen:u=!1,displayEmpty:f=!1,IconComponent:h=W8,id:d,input:_,inputProps:g,label:b,labelId:w,MenuProps:S,multiple:k=!1,native:D=!1,onClose:C,onOpen:O,open:M,renderValue:T,SelectDisplayProps:P,variant:j="outlined",...z}=n,E=D?V7:gW,L=Oo(),G=Ga({props:n,muiFormControl:L,states:["variant","error"]}),B=G.variant||j,F={...n,variant:B,classes:i},H=yW(F),{root:K,...ee}=H,Y=_||{standard:R.jsx(vW,{ownerState:F}),outlined:R.jsx(bW,{label:b,ownerState:F}),filled:R.jsx(wW,{ownerState:F})}[B],X=ar(r,Ws(Y));return R.jsx($.Fragment,{children:$.cloneElement(Y,{inputComponent:E,inputProps:{children:a,error:G.error,IconComponent:h,variant:B,type:void 0,multiple:k,...D?{id:d}:{autoWidth:o,defaultOpen:u,displayEmpty:f,labelId:w,MenuProps:S,onClose:C,onOpen:O,open:M,renderValue:T,SelectDisplayProps:{id:d,...P}},...g,classes:g?kr(ee,g.classes):ee,..._?_.props.inputProps:{}},...(k&&D||f)&&B==="outlined"?{notched:!0}:{},ref:X,className:Ee(Y.props.className,l,H.root),...!_&&{variant:B},...z})})});wo.muiName="Select";function xW(t,e,r=(n,o)=>n===o){return t.length===e.length&&t.every((n,o)=>r(n,e[o]))}const SW=2;function Ti(t,e,r,n,o){return r===1?Math.min(t+e,o):Math.max(t-e,n)}function UM(t,e){return t-e}function MC(t,e){const{index:r}=t.reduce((n,o,a)=>{const i=Math.abs(e-o);return n===null||i({left:`${t}%`}),leap:t=>({width:`${t}%`})},"horizontal-reverse":{offset:t=>({right:`${t}%`}),leap:t=>({width:`${t}%`})},vertical:{offset:t=>({bottom:`${t}%`}),leap:t=>({height:`${t}%`})}},TW=t=>t;let op;function PC(){return op===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?op=CSS.supports("touch-action","none"):op=!0),op}function OW(t){const{"aria-labelledby":e,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:u=0,name:f,onChange:h,onChangeCommitted:d,orientation:_="horizontal",rootRef:g,scale:b=TW,step:w=1,shiftStep:S=10,tabIndex:k,value:D}=t,C=$.useRef(void 0),[O,M]=$.useState(-1),[T,P]=$.useState(-1),[j,z]=$.useState(!1),E=$.useRef(0),[L,G]=ru({controlled:D,default:r??u,name:"Slider"}),B=h&&((q,ne,ye)=>{const we=q.nativeEvent||q,ke=new we.constructor(we.type,we);Object.defineProperty(ke,"target",{writable:!0,value:{value:ne,name:f}}),h(ke,ne,ye)}),F=Array.isArray(L);let H=F?L.slice().sort(UM):[L];H=H.map(q=>q==null?u:Li(q,u,l));const K=i===!0&&w!==null?[...Array(Math.floor((l-u)/w)+1)].map((q,ne)=>({value:u+w*ne})):i||[],ee=K.map(q=>q.value),[Y,X]=$.useState(-1),re=$.useRef(null),I=ar(g,re),Q=q=>ne=>{var we;const ye=Number(ne.currentTarget.getAttribute("data-index"));Ba(ne.target)&&X(ye),P(ye),(we=q==null?void 0:q.onFocus)==null||we.call(q,ne)},me=q=>ne=>{var ye;Ba(ne.target)||X(-1),P(-1),(ye=q==null?void 0:q.onBlur)==null||ye.call(q,ne)},pe=(q,ne)=>{const ye=Number(q.currentTarget.getAttribute("data-index")),we=H[ye],ke=ee.indexOf(we);let ve=ne;if(K&&w==null){const Ve=ee[ee.length-1];ve>Ve?ve=Ve:vene=>{var ye;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(ne.key)){ne.preventDefault();const we=Number(ne.currentTarget.getAttribute("data-index")),ke=H[we];let ve=null;if(w!=null){const Ve=ne.shiftKey?S:w;switch(ne.key){case"ArrowUp":ve=Ti(ke,Ve,1,u,l);break;case"ArrowRight":ve=Ti(ke,Ve,a?-1:1,u,l);break;case"ArrowDown":ve=Ti(ke,Ve,-1,u,l);break;case"ArrowLeft":ve=Ti(ke,Ve,a?1:-1,u,l);break;case"PageUp":ve=Ti(ke,S,1,u,l);break;case"PageDown":ve=Ti(ke,S,-1,u,l);break;case"Home":ve=u;break;case"End":ve=l;break}}else if(K){const Ve=ee[ee.length-1],$e=ee.indexOf(ke),Ye=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],lt=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ye.includes(ne.key)?$e===0?ve=ee[0]:ve=ee[$e-1]:lt.includes(ne.key)&&($e===ee.length-1?ve=Ve:ve=ee[$e+1])}ve!=null&&pe(ne,ve)}(ye=q==null?void 0:q.onKeyDown)==null||ye.call(q,ne)};yn(()=>{var q;n&&re.current.contains(document.activeElement)&&((q=document.activeElement)==null||q.blur())},[n]),n&&O!==-1&&M(-1),n&&Y!==-1&&X(-1);const Ce=q=>ne=>{var ye;(ye=q.onChange)==null||ye.call(q,ne),pe(ne,ne.target.valueAsNumber)},Re=$.useRef(void 0);let Te=_;a&&_==="horizontal"&&(Te+="-reverse");const Pe=({finger:q,move:ne=!1})=>{const{current:ye}=re,{width:we,height:ke,bottom:ve,left:Ve}=ye.getBoundingClientRect();let $e;Te.startsWith("vertical")?$e=(ve-q.y)/ke:$e=(q.x-Ve)/we,Te.includes("-reverse")&&($e=1-$e);let Ye;if(Ye=kW($e,u,l),w)Ye=$W(Ye,w,u);else{const ft=MC(ee,Ye);Ye=ee[ft]}Ye=Li(Ye,u,l);let lt=0;if(F){ne?lt=Re.current:lt=MC(H,Ye),o&&(Ye=Li(Ye,H[lt-1]||-1/0,H[lt+1]||1/0));const ft=Ye;Ye=NC({values:H,newValue:Ye,index:lt}),o&&ne||(lt=Ye.indexOf(ft),Re.current=lt)}return{newValue:Ye,activeIndex:lt}},Oe=Nr(q=>{const ne=tp(q,C);if(!ne)return;if(E.current+=1,q.type==="mousemove"&&q.buttons===0){Fe(q);return}const{newValue:ye,activeIndex:we}=Pe({finger:ne,move:!0});rp({sliderRef:re,activeIndex:we,setActive:M}),G(ye),!j&&E.current>SW&&z(!0),B&&!np(ye,L)&&B(q,ye,we)}),Fe=Nr(q=>{const ne=tp(q,C);if(z(!1),!ne)return;const{newValue:ye}=Pe({finger:ne,move:!0});M(-1),q.type==="touchend"&&P(-1),d&&d(q,ye),C.current=void 0,Be()}),Me=Nr(q=>{if(n)return;PC()||q.preventDefault();const ne=q.changedTouches[0];ne!=null&&(C.current=ne.identifier);const ye=tp(q,C);if(ye!==!1){const{newValue:ke,activeIndex:ve}=Pe({finger:ye});rp({sliderRef:re,activeIndex:ve,setActive:M}),G(ke),B&&!np(ke,L)&&B(q,ke,ve)}E.current=0;const we=cr(re.current);we.addEventListener("touchmove",Oe,{passive:!0}),we.addEventListener("touchend",Fe,{passive:!0})}),Be=$.useCallback(()=>{const q=cr(re.current);q.removeEventListener("mousemove",Oe),q.removeEventListener("mouseup",Fe),q.removeEventListener("touchmove",Oe),q.removeEventListener("touchend",Fe)},[Fe,Oe]);$.useEffect(()=>{const{current:q}=re;return q.addEventListener("touchstart",Me,{passive:PC()}),()=>{q.removeEventListener("touchstart",Me),Be()}},[Be,Me]),$.useEffect(()=>{n&&Be()},[n,Be]);const We=q=>ne=>{var ke;if((ke=q.onMouseDown)==null||ke.call(q,ne),n||ne.defaultPrevented||ne.button!==0)return;ne.preventDefault();const ye=tp(ne,C);if(ye!==!1){const{newValue:ve,activeIndex:Ve}=Pe({finger:ye});rp({sliderRef:re,activeIndex:Ve,setActive:M}),G(ve),B&&!np(ve,L)&&B(ne,ve,Ve)}E.current=0;const we=cr(re.current);we.addEventListener("mousemove",Oe,{passive:!0}),we.addEventListener("mouseup",Fe)},De=Vp(F?H[0]:u,u,l),pt=Vp(H[H.length-1],u,l)-De,ce=(q={})=>{const ne=xs(q),ye={onMouseDown:We(ne||{})},we={...ne,...ye};return{...q,ref:I,...we}},qe=q=>ne=>{var we;(we=q.onMouseOver)==null||we.call(q,ne);const ye=Number(ne.currentTarget.getAttribute("data-index"));P(ye)},st=q=>ne=>{var ye;(ye=q.onMouseLeave)==null||ye.call(q,ne),P(-1)},rt=(q={})=>{const ne=xs(q),ye={onMouseOver:qe(ne||{}),onMouseLeave:st(ne||{})};return{...q,...ne,...ye}},Je=q=>({pointerEvents:O!==-1&&O!==q?"none":void 0});let Se;return _==="vertical"&&(Se=a?"vertical-rl":"vertical-lr"),{active:O,axis:Te,axisProps:EW,dragging:j,focusedThumbIndex:Y,getHiddenInputProps:(q={})=>{const ne=xs(q),ye={onChange:Ce(ne||{}),onFocus:Q(ne||{}),onBlur:me(ne||{}),onKeyDown:ge(ne||{})},we={...ne,...ye};return{tabIndex:k,"aria-labelledby":e,"aria-orientation":_,"aria-valuemax":b(l),"aria-valuemin":b(u),name:f,type:"range",min:t.min,max:t.max,step:t.step===null&&t.marks?"any":t.step??void 0,disabled:n,...q,...we,style:{...xz,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:Se}}},getRootProps:ce,getThumbProps:rt,marks:K,open:T,range:F,rootRef:I,trackLeap:pt,trackOffset:De,values:H,getThumbStyle:Je}}const DW=t=>!t||!ks(t);function MW(t){return tt("MuiSlider",t)}const Rn=Ze("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),NW=t=>{const{open:e}=t;return{offset:Ee(e&&Rn.valueLabelOpen),circle:Rn.valueLabelCircle,label:Rn.valueLabelLabel}};function PW(t){const{children:e,className:r,value:n}=t,o=NW(t);return e?$.cloneElement(e,{className:Ee(e.props.className)},R.jsxs($.Fragment,{children:[e.props.children,R.jsx("span",{className:Ee(o.offset,r),"aria-hidden":!0,children:R.jsx("span",{className:o.circle,children:R.jsx("span",{className:o.label,children:n})})})]})):null}function RC(t){return t}const RW=ie("span",{name:"MuiSlider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${he(r.color)}`],r.size!=="medium"&&e[`size${he(r.size)}`],r.marked&&e.marked,r.orientation==="vertical"&&e.vertical,r.track==="inverted"&&e.trackInverted,r.track===!1&&e.trackFalse]}})(Xe(({theme:t})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Rn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},[`&.${Rn.dragging}`]:{[`& .${Rn.thumb}, & .${Rn.track}`]:{transition:"none"}},variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),AW=ie("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(t,e)=>e.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),IW=ie("span",{name:"MuiSlider",slot:"Track",overridesResolver:(t,e)=>e.track})(Xe(({theme:t})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,track:"inverted"},style:{...t.vars?{backgroundColor:t.vars.palette.Slider[`${e}Track`],borderColor:t.vars.palette.Slider[`${e}Track`]}:{backgroundColor:wc(t.palette[e].main,.62),borderColor:wc(t.palette[e].main,.62),...t.applyStyles("dark",{backgroundColor:bc(t.palette[e].main,.5)}),...t.applyStyles("dark",{borderColor:bc(t.palette[e].main,.5)})}}}))]}))),jW=ie("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.thumb,e[`thumbColor${he(r.color)}`],r.size!=="medium"&&e[`thumbSize${he(r.size)}`]]}})(Xe(({theme:t})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Rn.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{[`&:hover, &.${Rn.focusVisible}`]:{...t.vars?{boxShadow:`0px 0px 0px 8px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Nt(t.palette[e].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${Rn.active}`]:{...t.vars?{boxShadow:`0px 0px 0px 14px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Nt(t.palette[e].main,.16)}`}}}}))]}))),LW=ie(PW,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(t,e)=>e.valueLabel})(Xe(({theme:t})=>({zIndex:1,whiteSpace:"nowrap",...t.typography.body2,fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Rn.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Rn.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),zW=ie("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:t=>Df(t)&&t!=="markActive",overridesResolver:(t,e)=>{const{markActive:r}=t;return[e.mark,r&&e.markActive]}})(Xe(({theme:t})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}))),FW=ie("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:t=>Df(t)&&t!=="markLabelActive",overridesResolver:(t,e)=>e.markLabel})(Xe(({theme:t})=>({...t.typography.body2,color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]}))),BW=t=>{const{disabled:e,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:u}=t,f={root:["root",e&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${he(l)}`,u&&`size${he(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",e&&"disabled",u&&`thumbSize${he(u)}`,l&&`thumbColor${he(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return nt(f,MW,i)},WW=({children:t})=>t,UW=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSlider"}),o=Us(),{"aria-label":a,"aria-valuetext":i,"aria-labelledby":l,component:u="span",components:f={},componentsProps:h={},color:d="primary",classes:_,className:g,disableSwap:b=!1,disabled:w=!1,getAriaLabel:S,getAriaValueText:k,marks:D=!1,max:C=100,min:O=0,name:M,onChange:T,onChangeCommitted:P,orientation:j="horizontal",shiftStep:z=10,size:E="medium",step:L=1,scale:G=RC,slotProps:B,slots:F,tabIndex:H,track:K="normal",value:ee,valueLabelDisplay:Y="off",valueLabelFormat:X=RC,...re}=n,I={...n,isRtl:o,max:C,min:O,classes:_,disabled:w,disableSwap:b,orientation:j,marks:D,color:d,size:E,step:L,shiftStep:z,scale:G,track:K,valueLabelDisplay:Y,valueLabelFormat:X},{axisProps:Q,getRootProps:me,getHiddenInputProps:pe,getThumbProps:ge,open:Ce,active:Re,axis:Te,focusedThumbIndex:Pe,range:Oe,dragging:Fe,marks:Me,values:Be,trackOffset:We,trackLeap:De,getThumbStyle:pt}=OW({...I,rootRef:r});I.marked=Me.length>0&&Me.some(vt=>vt.label),I.dragging=Fe,I.focusedThumbIndex=Pe;const ce=BW(I),qe=(F==null?void 0:F.root)??f.Root??RW,st=(F==null?void 0:F.rail)??f.Rail??AW,rt=(F==null?void 0:F.track)??f.Track??IW,Je=(F==null?void 0:F.thumb)??f.Thumb??jW,Se=(F==null?void 0:F.valueLabel)??f.ValueLabel??LW,ut=(F==null?void 0:F.mark)??f.Mark??zW,q=(F==null?void 0:F.markLabel)??f.MarkLabel??FW,ne=(F==null?void 0:F.input)??f.Input??"input",ye=(B==null?void 0:B.root)??h.root,we=(B==null?void 0:B.rail)??h.rail,ke=(B==null?void 0:B.track)??h.track,ve=(B==null?void 0:B.thumb)??h.thumb,Ve=(B==null?void 0:B.valueLabel)??h.valueLabel,$e=(B==null?void 0:B.mark)??h.mark,Ye=(B==null?void 0:B.markLabel)??h.markLabel,lt=(B==null?void 0:B.input)??h.input,ft=Dr({elementType:qe,getSlotProps:me,externalSlotProps:ye,externalForwardedProps:re,additionalProps:{...DW(qe)&&{as:u}},ownerState:{...I,...ye==null?void 0:ye.ownerState},className:[ce.root,g]}),ae=Dr({elementType:st,externalSlotProps:we,ownerState:I,className:ce.rail}),_e=Dr({elementType:rt,externalSlotProps:ke,additionalProps:{style:{...Q[Te].offset(We),...Q[Te].leap(De)}},ownerState:{...I,...ke==null?void 0:ke.ownerState},className:ce.track}),ze=Dr({elementType:Je,getSlotProps:ge,externalSlotProps:ve,ownerState:{...I,...ve==null?void 0:ve.ownerState},className:ce.thumb}),Ke=Dr({elementType:Se,externalSlotProps:Ve,ownerState:{...I,...Ve==null?void 0:Ve.ownerState},className:ce.valueLabel}),_t=Dr({elementType:ut,externalSlotProps:$e,ownerState:I,className:ce.mark}),ur=Dr({elementType:q,externalSlotProps:Ye,ownerState:I,className:ce.markLabel}),yr=Dr({elementType:ne,getSlotProps:pe,externalSlotProps:lt,ownerState:I});return R.jsxs(qe,{...ft,children:[R.jsx(st,{...ae}),R.jsx(rt,{..._e}),Me.filter(vt=>vt.value>=O&&vt.value<=C).map((vt,Ft)=>{const wn=Vp(vt.value,O,C),No=Q[Te].offset(wn);let Vr;return K===!1?Vr=Be.includes(vt.value):Vr=K==="normal"&&(Oe?vt.value>=Be[0]&&vt.value<=Be[Be.length-1]:vt.value<=Be[0])||K==="inverted"&&(Oe?vt.value<=Be[0]||vt.value>=Be[Be.length-1]:vt.value>=Be[0]),R.jsxs($.Fragment,{children:[R.jsx(ut,{"data-index":Ft,..._t,...!ks(ut)&&{markActive:Vr},style:{...No,..._t.style},className:Ee(_t.className,Vr&&ce.markActive)}),vt.label!=null?R.jsx(q,{"aria-hidden":!0,"data-index":Ft,...ur,...!ks(q)&&{markLabelActive:Vr},style:{...No,...ur.style},className:Ee(ce.markLabel,ur.className,Vr&&ce.markLabelActive),children:vt.label}):null]},Ft)}),Be.map((vt,Ft)=>{const wn=Vp(vt,O,C),No=Q[Te].offset(wn),Vr=Y==="off"?WW:Se;return R.jsx(Vr,{...!ks(Vr)&&{valueLabelFormat:X,valueLabelDisplay:Y,value:typeof X=="function"?X(G(vt),Ft):X,index:Ft,open:Ce===Ft||Re===Ft||Y==="on",disabled:w},...Ke,children:R.jsx(Je,{"data-index":Ft,...ze,className:Ee(ce.thumb,ze.className,Re===Ft&&ce.active,Pe===Ft&&ce.focusVisible),style:{...No,...pt(Ft),...ze.style},children:R.jsx(ne,{"data-index":Ft,"aria-label":S?S(Ft):a,"aria-valuenow":G(vt),"aria-labelledby":l,"aria-valuetext":k?k(G(vt),Ft):i,value:Be[Ft],...yr})})},Ft)})]})});function HW(t={}){const{autoHideDuration:e=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=t,i=vs();$.useEffect(()=>{if(!o)return;function k(D){D.defaultPrevented||D.key==="Escape"&&(n==null||n(D,"escapeKeyDown"))}return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[o,n]);const l=Nr((k,D)=>{n==null||n(k,D)}),u=Nr(k=>{!n||k==null||i.start(k,()=>{l(null,"timeout")})});$.useEffect(()=>(o&&u(e),i.clear),[o,e,u,i]);const f=k=>{n==null||n(k,"clickaway")},h=i.clear,d=$.useCallback(()=>{e!=null&&u(a??e*.5)},[e,a,u]),_=k=>D=>{const C=k.onBlur;C==null||C(D),d()},g=k=>D=>{const C=k.onFocus;C==null||C(D),h()},b=k=>D=>{const C=k.onMouseEnter;C==null||C(D),h()},w=k=>D=>{const C=k.onMouseLeave;C==null||C(D),d()};return $.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",d),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",h)}},[r,o,d,h]),{getRootProps:(k={})=>{const D={...xs(t),...xs(k)};return{role:"presentation",...k,...D,onBlur:_(D),onFocus:g(D),onMouseEnter:b(D),onMouseLeave:w(D)}},onClickAway:f}}function qW(t){return tt("MuiSnackbarContent",t)}Ze("MuiSnackbarContent",["root","message","action"]);const VW=t=>{const{classes:e}=t;return nt({root:["root"],action:["action"],message:["message"]},qW,e)},XW=ie(ku,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(t,e)=>e.root})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?.8:.98,r=Fp(t.palette.background.default,e);return{...t.typography.body2,color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),GW=ie("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0"}),JW=ie("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),YW=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:l="alert",...u}=n,f=n,h=VW(f);return R.jsxs(XW,{role:l,square:!0,elevation:6,className:Ee(h.root,a),ownerState:f,ref:r,...u,children:[R.jsx(GW,{className:h.message,ownerState:f,children:i}),o?R.jsx(JW,{className:h.action,ownerState:f,children:o}):null]})});function KW(t){return tt("MuiSnackbar",t)}Ze("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ZW=t=>{const{classes:e,anchorOrigin:r}=t,n={root:["root",`anchorOrigin${he(r.vertical)}${he(r.horizontal)}`]};return nt(n,KW,e)},AC=ie("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`anchorOrigin${he(r.anchorOrigin.vertical)}${he(r.anchorOrigin.horizontal)}`]]}})(Xe(({theme:t})=>({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical==="top",style:{top:8,[t.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!=="top",style:{bottom:8,[t.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[t.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[t.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="center",style:{[t.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),QW=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSnackbar"}),o=ta(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:l,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:h,className:d,ClickAwayListenerProps:_,ContentProps:g,disableWindowBlurListener:b=!1,message:w,onBlur:S,onClose:k,onFocus:D,onMouseEnter:C,onMouseLeave:O,open:M,resumeHideDuration:T,TransitionComponent:P=iu,transitionDuration:j=a,TransitionProps:{onEnter:z,onExited:E,...L}={},...G}=n,B={...n,anchorOrigin:{vertical:l,horizontal:u},autoHideDuration:f,disableWindowBlurListener:b,TransitionComponent:P,transitionDuration:j},F=ZW(B),{getRootProps:H,onClickAway:K}=HW({...B}),[ee,Y]=$.useState(!0),X=Dr({elementType:AC,getSlotProps:H,externalForwardedProps:G,ownerState:B,additionalProps:{ref:r},className:[F.root,d]}),re=Q=>{Y(!0),E&&E(Q)},I=(Q,me)=>{Y(!1),z&&z(Q,me)};return!M&&ee?null:R.jsx(A9,{onClickAway:K,..._,children:R.jsx(AC,{...X,children:R.jsx(P,{appear:!0,in:M,timeout:j,direction:l==="top"?"down":"up",onEnter:I,onExited:re,...L,children:h||R.jsx(YW,{message:w,action:i,...g})})})})});function eU(t){return tt("MuiTooltip",t)}const or=Ze("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function tU(t){return Math.round(t*1e5)/1e5}const rU=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:a}=t,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${he(a.split("-")[0])}`],arrow:["arrow"]};return nt(i,eU,e)},nU=ie(OM,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Xe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${or.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${or.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${or.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${or.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${or.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${or.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${or.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${or.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),oU=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${he(r.placement.split("-")[0])}`]]}})(Xe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Nt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${or.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${or.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${or.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${or.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${tU(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${or.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${or.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),aU=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(Xe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Nt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ap=!1;const IC=new Of;let Cl={x:0,y:0};function sp(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const Op=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:i,components:l={},componentsProps:u={},describeChild:f=!1,disableFocusListener:h=!1,disableHoverListener:d=!1,disableInteractive:_=!1,disableTouchListener:g=!1,enterDelay:b=100,enterNextDelay:w=0,enterTouchDelay:S=700,followCursor:k=!1,id:D,leaveDelay:C=0,leaveTouchDelay:O=1500,onClose:M,onOpen:T,open:P,placement:j="bottom",PopperComponent:z,PopperProps:E={},slotProps:L={},slots:G={},title:B,TransitionComponent:F,TransitionProps:H,...K}=n,ee=$.isValidElement(a)?a:R.jsx("span",{children:a}),Y=ta(),X=Us(),[re,I]=$.useState(),[Q,me]=$.useState(null),pe=$.useRef(!1),ge=_||k,Ce=vs(),Re=vs(),Te=vs(),Pe=vs(),[Oe,Fe]=ru({controlled:P,default:!1,name:"Tooltip",state:"open"});let Me=Oe;const Be=Tf(D),We=$.useRef(),De=Nr(()=>{We.current!==void 0&&(document.body.style.WebkitUserSelect=We.current,We.current=void 0),Pe.clear()});$.useEffect(()=>De,[De]);const pt=dt=>{IC.clear(),ap=!0,Fe(!0),T&&!Me&&T(dt)},ce=Nr(dt=>{IC.start(800+C,()=>{ap=!1}),Fe(!1),M&&Me&&M(dt),Ce.start(Y.transitions.duration.shortest,()=>{pe.current=!1})}),qe=dt=>{pe.current&&dt.type!=="touchstart"||(re&&re.removeAttribute("title"),Re.clear(),Te.clear(),b||ap&&w?Re.start(ap?w:b,()=>{pt(dt)}):pt(dt))},st=dt=>{Re.clear(),Te.start(C,()=>{ce(dt)})},[,rt]=$.useState(!1),Je=dt=>{Ba(dt.target)||(rt(!1),st(dt))},Se=dt=>{re||I(dt.currentTarget),Ba(dt.target)&&(rt(!0),qe(dt))},ut=dt=>{pe.current=!0;const Wr=ee.props;Wr.onTouchStart&&Wr.onTouchStart(dt)},q=dt=>{ut(dt),Te.clear(),Ce.clear(),De(),We.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Pe.start(S,()=>{document.body.style.WebkitUserSelect=We.current,qe(dt)})},ne=dt=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(dt),De(),Te.start(O,()=>{ce(dt)})};$.useEffect(()=>{if(!Me)return;function dt(Wr){Wr.key==="Escape"&&ce(Wr)}return document.addEventListener("keydown",dt),()=>{document.removeEventListener("keydown",dt)}},[ce,Me]);const ye=ar(Ws(ee),I,r);!B&&B!==0&&(Me=!1);const we=$.useRef(),ke=dt=>{const Wr=ee.props;Wr.onMouseMove&&Wr.onMouseMove(dt),Cl={x:dt.clientX,y:dt.clientY},we.current&&we.current.update()},ve={},Ve=typeof B=="string";f?(ve.title=!Me&&Ve&&!d?B:null,ve["aria-describedby"]=Me?Be:null):(ve["aria-label"]=Ve?B:null,ve["aria-labelledby"]=Me&&!Ve?Be:null);const $e={...ve,...K,...ee.props,className:Ee(K.className,ee.props.className),onTouchStart:ut,ref:ye,...k?{onMouseMove:ke}:{}},Ye={};g||($e.onTouchStart=q,$e.onTouchEnd=ne),d||($e.onMouseOver=sp(qe,$e.onMouseOver),$e.onMouseLeave=sp(st,$e.onMouseLeave),ge||(Ye.onMouseOver=qe,Ye.onMouseLeave=st)),h||($e.onFocus=sp(Se,$e.onFocus),$e.onBlur=sp(Je,$e.onBlur),ge||(Ye.onFocus=Se,Ye.onBlur=Je));const lt={...n,isRtl:X,arrow:o,disableInteractive:ge,placement:j,PopperComponentProp:z,touch:pe.current},ft=typeof L.popper=="function"?L.popper(lt):L.popper,ae=$.useMemo(()=>{var Wr,Ac;let dt=[{name:"arrow",enabled:!!Q,options:{element:Q,padding:4}}];return(Wr=E.popperOptions)!=null&&Wr.modifiers&&(dt=dt.concat(E.popperOptions.modifiers)),(Ac=ft==null?void 0:ft.popperOptions)!=null&&Ac.modifiers&&(dt=dt.concat(ft.popperOptions.modifiers)),{...E.popperOptions,...ft==null?void 0:ft.popperOptions,modifiers:dt}},[Q,E.popperOptions,ft==null?void 0:ft.popperOptions]),_e=rU(lt),ze=typeof L.transition=="function"?L.transition(lt):L.transition,Ke={slots:{popper:l.Popper,transition:l.Transition??F,tooltip:l.Tooltip,arrow:l.Arrow,...G},slotProps:{arrow:L.arrow??u.arrow,popper:{...E,...ft??u.popper},tooltip:L.tooltip??u.tooltip,transition:{...H,...ze??u.transition}}},[_t,ur]=Sr("popper",{elementType:nU,externalForwardedProps:Ke,ownerState:lt,className:Ee(_e.popper,E==null?void 0:E.className)}),[yr,vt]=Sr("transition",{elementType:iu,externalForwardedProps:Ke,ownerState:lt}),[Ft,wn]=Sr("tooltip",{elementType:oU,className:_e.tooltip,externalForwardedProps:Ke,ownerState:lt}),[No,Vr]=Sr("arrow",{elementType:aU,className:_e.arrow,externalForwardedProps:Ke,ownerState:lt,ref:me});return R.jsxs($.Fragment,{children:[$.cloneElement(ee,$e),R.jsx(_t,{as:z??OM,placement:j,anchorEl:k?{getBoundingClientRect:()=>({top:Cl.y,left:Cl.x,right:Cl.x,bottom:Cl.y,width:0,height:0})}:re,popperRef:we,open:re?Me:!1,id:Be,transition:!0,...Ye,...ur,popperOptions:ae,children:({TransitionProps:dt})=>R.jsx(yr,{timeout:Y.transitions.duration.shorter,...dt,...vt,children:R.jsxs(Ft,{...wn,children:[B,o?R.jsx(No,{...Vr}):null]})})})]})}),sU=Yz({createStyledComponent:ie("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>ot({props:t,name:"MuiStack"})});function iU(t){return tt("MuiTab",t)}const Tn=Ze("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),cU=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:l,disabled:u}=t,f={root:["root",a&&i&&"labelIcon",`textColor${he(r)}`,n&&"fullWidth",o&&"wrapped",l&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return nt(f,iU,e)},lU=ie(Va,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${he(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${Tn.iconWrapper}`]:e.iconWrapper},{[`& .${Tn.icon}`]:e.icon}]}})(Xe(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${Tn.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${Tn.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${Tn.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${Tn.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Tn.selected}`]:{opacity:1},[`&.${Tn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Tn.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Tn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Tn.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Tn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),Oi=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:l,icon:u,iconPosition:f="top",indicator:h,label:d,onChange:_,onClick:g,onFocus:b,selected:w,selectionFollowsFocus:S,textColor:k="inherit",value:D,wrapped:C=!1,...O}=n,M={...n,disabled:a,disableFocusRipple:i,selected:w,icon:!!u,iconPosition:f,label:!!d,fullWidth:l,textColor:k,wrapped:C},T=cU(M),P=u&&d&&$.isValidElement(u)?$.cloneElement(u,{className:Ee(T.icon,u.props.className)}):u,j=E=>{!w&&_&&_(E,D),g&&g(E)},z=E=>{S&&!w&&_&&_(E,D),b&&b(E)};return R.jsxs(lU,{focusRipple:!i,className:Ee(T.root,o),ref:r,role:"tab","aria-selected":w,disabled:a,onClick:j,onFocus:z,ownerState:M,tabIndex:w?0:-1,...O,children:[f==="top"||f==="start"?R.jsxs($.Fragment,{children:[P,d]}):R.jsxs($.Fragment,{children:[d,P]}),h]})});function uU(t){return tt("MuiToolbar",t)}Ze("MuiToolbar",["root","gutters","regular","dense"]);const dU=t=>{const{classes:e,disableGutters:r,variant:n}=t;return nt({root:["root",!r&&"gutters",n]},uU,e)},pU=ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Xe(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),Bb=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:l="regular",...u}=n,f={...n,component:a,disableGutters:i,variant:l},h=dU(f);return R.jsx(pU,{as:a,className:Ee(h.root,o),ref:r,ownerState:f,...u})}),fU=Ge(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),hU=Ge(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function mU(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function _U(t,e,r,n={},o=()=>{}){const{ease:a=mU,duration:i=300}=n;let l=null;const u=e[t];let f=!1;const h=()=>{f=!0},d=_=>{if(f){o(new Error("Animation cancelled"));return}l===null&&(l=_);const g=Math.min(1,(_-l)/i);if(e[t]=a(g)*(r-u)+u,g>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return u===r?(o(new Error("Element already at target position")),h):(requestAnimationFrame(d),h)}const gU={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function yU(t){const{onChange:e,...r}=t,n=$.useRef(),o=$.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return yn(()=>{const i=Ef(()=>{const u=n.current;a(),u!==n.current&&e(n.current)}),l=eo(o.current);return l.addEventListener("resize",i),()=>{i.clear(),l.removeEventListener("resize",i)}},[e]),$.useEffect(()=>{a(),e(n.current)},[e]),R.jsx("div",{style:gU,...r,ref:o})}function vU(t){return tt("MuiTabScrollButton",t)}const bU=Ze("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),wU=t=>{const{classes:e,orientation:r,disabled:n}=t;return nt({root:["root",r,n&&"disabled"]},vU,e)},xU=ie(Va,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${bU.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),SU=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:i={},direction:l,orientation:u,disabled:f,...h}=n,d=Us(),_={isRtl:d,...n},g=wU(_),b=a.StartScrollButtonIcon??fU,w=a.EndScrollButtonIcon??hU,S=Dr({elementType:b,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:_}),k=Dr({elementType:w,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:_});return R.jsx(xU,{component:"div",className:Ee(g.root,o),ref:r,role:null,ownerState:_,tabIndex:null,...h,style:{...h.style,...u==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:l==="left"?R.jsx(b,{...S}):R.jsx(w,{...k})})});function kU(t){return tt("MuiTabs",t)}const f_=Ze("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),jC=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,LC=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ip=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(t,o);else{o.focus();return}}},CU=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:l,classes:u}=t;return nt({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},kU,u)},$U=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${f_.scrollButtons}`]:e.scrollButtons},{[`& .${f_.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Xe(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${f_.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),EU=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),TU=ie("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),OU=ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(Xe(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),DU=ie(yU)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),zC={},MU=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTabs"}),o=ta(),a=Us(),{"aria-label":i,"aria-labelledby":l,action:u,centered:f=!1,children:h,className:d,component:_="div",allowScrollButtonsMobile:g=!1,indicatorColor:b="primary",onChange:w,orientation:S="horizontal",ScrollButtonComponent:k=SU,scrollButtons:D="auto",selectionFollowsFocus:C,slots:O={},slotProps:M={},TabIndicatorProps:T={},TabScrollButtonProps:P={},textColor:j="primary",value:z,variant:E="standard",visibleScrollbar:L=!1,...G}=n,B=E==="scrollable",F=S==="vertical",H=F?"scrollTop":"scrollLeft",K=F?"top":"left",ee=F?"bottom":"right",Y=F?"clientHeight":"clientWidth",X=F?"height":"width",re={...n,component:_,allowScrollButtonsMobile:g,indicatorColor:b,orientation:S,vertical:F,scrollButtons:D,textColor:j,variant:E,visibleScrollbar:L,fixed:!B,hideScrollbar:B&&!L,scrollableX:B&&!F,scrollableY:B&&F,centered:f&&!B,scrollButtonsHideMobile:!g},I=CU(re),Q=Dr({elementType:O.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:re}),me=Dr({elementType:O.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:re}),[pe,ge]=$.useState(!1),[Ce,Re]=$.useState(zC),[Te,Pe]=$.useState(!1),[Oe,Fe]=$.useState(!1),[Me,Be]=$.useState(!1),[We,De]=$.useState({overflow:"hidden",scrollbarWidth:0}),pt=new Map,ce=$.useRef(null),qe=$.useRef(null),st=()=>{const ae=ce.current;let _e;if(ae){const Ke=ae.getBoundingClientRect();_e={clientWidth:ae.clientWidth,scrollLeft:ae.scrollLeft,scrollTop:ae.scrollTop,scrollWidth:ae.scrollWidth,top:Ke.top,bottom:Ke.bottom,left:Ke.left,right:Ke.right}}let ze;if(ae&&z!==!1){const Ke=qe.current.children;if(Ke.length>0){const _t=Ke[pt.get(z)];ze=_t?_t.getBoundingClientRect():null}}return{tabsMeta:_e,tabMeta:ze}},rt=Nr(()=>{const{tabsMeta:ae,tabMeta:_e}=st();let ze=0,Ke;F?(Ke="top",_e&&ae&&(ze=_e.top-ae.top+ae.scrollTop)):(Ke=a?"right":"left",_e&&ae&&(ze=(a?-1:1)*(_e[Ke]-ae[Ke]+ae.scrollLeft)));const _t={[Ke]:ze,[X]:_e?_e[X]:0};if(typeof Ce[Ke]!="number"||typeof Ce[X]!="number")Re(_t);else{const ur=Math.abs(Ce[Ke]-_t[Ke]),yr=Math.abs(Ce[X]-_t[X]);(ur>=1||yr>=1)&&Re(_t)}}),Je=(ae,{animation:_e=!0}={})=>{_e?_U(H,ce.current,ae,{duration:o.transitions.duration.standard}):ce.current[H]=ae},Se=ae=>{let _e=ce.current[H];F?_e+=ae:_e+=ae*(a?-1:1),Je(_e)},ut=()=>{const ae=ce.current[Y];let _e=0;const ze=Array.from(qe.current.children);for(let Ke=0;Keae){Ke===0&&(_e=ae);break}_e+=_t[Y]}return _e},q=()=>{Se(-1*ut())},ne=()=>{Se(ut())},ye=$.useCallback(ae=>{De({overflow:null,scrollbarWidth:ae})},[]),we=()=>{const ae={};ae.scrollbarSizeListener=B?R.jsx(DU,{onChange:ye,className:Ee(I.scrollableX,I.hideScrollbar)}):null;const ze=B&&(D==="auto"&&(Te||Oe)||D===!0);return ae.scrollButtonStart=ze?R.jsx(k,{slots:{StartScrollButtonIcon:O.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Q},orientation:S,direction:a?"right":"left",onClick:q,disabled:!Te,...P,className:Ee(I.scrollButtons,P.className)}):null,ae.scrollButtonEnd=ze?R.jsx(k,{slots:{EndScrollButtonIcon:O.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:me},orientation:S,direction:a?"left":"right",onClick:ne,disabled:!Oe,...P,className:Ee(I.scrollButtons,P.className)}):null,ae},ke=Nr(ae=>{const{tabsMeta:_e,tabMeta:ze}=st();if(!(!ze||!_e)){if(ze[K]<_e[K]){const Ke=_e[H]+(ze[K]-_e[K]);Je(Ke,{animation:ae})}else if(ze[ee]>_e[ee]){const Ke=_e[H]+(ze[ee]-_e[ee]);Je(Ke,{animation:ae})}}}),ve=Nr(()=>{B&&D!==!1&&Be(!Me)});$.useEffect(()=>{const ae=Ef(()=>{ce.current&&rt()});let _e;const ze=ur=>{ur.forEach(yr=>{yr.removedNodes.forEach(vt=>{_e==null||_e.unobserve(vt)}),yr.addedNodes.forEach(vt=>{_e==null||_e.observe(vt)})}),ae(),ve()},Ke=eo(ce.current);Ke.addEventListener("resize",ae);let _t;return typeof ResizeObserver<"u"&&(_e=new ResizeObserver(ae),Array.from(qe.current.children).forEach(ur=>{_e.observe(ur)})),typeof MutationObserver<"u"&&(_t=new MutationObserver(ze),_t.observe(qe.current,{childList:!0})),()=>{ae.clear(),Ke.removeEventListener("resize",ae),_t==null||_t.disconnect(),_e==null||_e.disconnect()}},[rt,ve]),$.useEffect(()=>{const ae=Array.from(qe.current.children),_e=ae.length;if(typeof IntersectionObserver<"u"&&_e>0&&B&&D!==!1){const ze=ae[0],Ke=ae[_e-1],_t={root:ce.current,threshold:.99},ur=wn=>{Pe(!wn[0].isIntersecting)},yr=new IntersectionObserver(ur,_t);yr.observe(ze);const vt=wn=>{Fe(!wn[0].isIntersecting)},Ft=new IntersectionObserver(vt,_t);return Ft.observe(Ke),()=>{yr.disconnect(),Ft.disconnect()}}},[B,D,Me,h==null?void 0:h.length]),$.useEffect(()=>{ge(!0)},[]),$.useEffect(()=>{rt()}),$.useEffect(()=>{ke(zC!==Ce)},[ke,Ce]),$.useImperativeHandle(u,()=>({updateIndicator:rt,updateScrollButtons:ve}),[rt,ve]);const Ve=R.jsx(OU,{...T,className:Ee(I.indicator,T.className),ownerState:re,style:{...Ce,...T.style}});let $e=0;const Ye=$.Children.map(h,ae=>{if(!$.isValidElement(ae))return null;const _e=ae.props.value===void 0?$e:ae.props.value;pt.set(_e,$e);const ze=_e===z;return $e+=1,$.cloneElement(ae,{fullWidth:E==="fullWidth",indicator:ze&&!pe&&Ve,selected:ze,selectionFollowsFocus:C,onChange:w,textColor:j,value:_e,...$e===1&&z===!1&&!ae.props.tabIndex?{tabIndex:0}:{}})}),lt=ae=>{const _e=qe.current,ze=cr(_e).activeElement;if(ze.getAttribute("role")!=="tab")return;let _t=S==="horizontal"?"ArrowLeft":"ArrowUp",ur=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&a&&(_t="ArrowRight",ur="ArrowLeft"),ae.key){case _t:ae.preventDefault(),ip(_e,ze,LC);break;case ur:ae.preventDefault(),ip(_e,ze,jC);break;case"Home":ae.preventDefault(),ip(_e,null,jC);break;case"End":ae.preventDefault(),ip(_e,null,LC);break}},ft=we();return R.jsxs($U,{className:Ee(I.root,d),ownerState:re,ref:r,as:_,...G,children:[ft.scrollButtonStart,ft.scrollbarSizeListener,R.jsxs(EU,{className:I.scroller,ownerState:re,style:{overflow:We.overflow,[F?`margin${a?"Left":"Right"}`:"marginBottom"]:L?void 0:-We.scrollbarWidth},ref:ce,children:[R.jsx(TU,{"aria-label":i,"aria-labelledby":l,"aria-orientation":S==="vertical"?"vertical":null,className:I.flexContainer,ownerState:re,onKeyDown:lt,ref:qe,role:"tablist",children:Ye}),pe&&Ve]}),ft.scrollButtonEnd]})});function NU(t){return tt("MuiTextField",t)}Ze("MuiTextField",["root"]);const PU={standard:mo,filled:Ab,outlined:zb},RU=t=>{const{classes:e}=t;return nt({root:["root"]},NU,e)},AU=ie(Fi,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Fr=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:l,color:u="primary",defaultValue:f,disabled:h=!1,error:d=!1,FormHelperTextProps:_,fullWidth:g=!1,helperText:b,id:w,InputLabelProps:S,inputProps:k,InputProps:D,inputRef:C,label:O,maxRows:M,minRows:T,multiline:P=!1,name:j,onBlur:z,onChange:E,onFocus:L,placeholder:G,required:B=!1,rows:F,select:H=!1,SelectProps:K,slots:ee={},slotProps:Y={},type:X,value:re,variant:I="outlined",...Q}=n,me={...n,autoFocus:a,color:u,disabled:h,error:d,fullWidth:g,multiline:P,required:B,select:H,variant:I},pe=RU(me),ge=Tf(w),Ce=b&&ge?`${ge}-helper-text`:void 0,Re=O&&ge?`${ge}-label`:void 0,Te=PU[I],Pe={slots:ee,slotProps:{input:D,inputLabel:S,htmlInput:k,formHelperText:_,select:K,...Y}},Oe={},Fe=Pe.slotProps.inputLabel;I==="outlined"&&(Fe&&typeof Fe.shrink<"u"&&(Oe.notched=Fe.shrink),Oe.label=O),H&&((!K||!K.native)&&(Oe.id=void 0),Oe["aria-describedby"]=void 0);const[Me,Be]=Sr("input",{elementType:Te,externalForwardedProps:Pe,additionalProps:Oe,ownerState:me}),[We,De]=Sr("inputLabel",{elementType:Tp,externalForwardedProps:Pe,ownerState:me}),[pt,ce]=Sr("htmlInput",{elementType:"input",externalForwardedProps:Pe,ownerState:me}),[qe,st]=Sr("formHelperText",{elementType:zB,externalForwardedProps:Pe,ownerState:me}),[rt,Je]=Sr("select",{elementType:wo,externalForwardedProps:Pe,ownerState:me}),Se=R.jsx(Me,{"aria-describedby":Ce,autoComplete:o,autoFocus:a,defaultValue:f,fullWidth:g,multiline:P,name:j,rows:F,maxRows:M,minRows:T,type:X,value:re,id:ge,inputRef:C,onBlur:z,onChange:E,onFocus:L,placeholder:G,inputProps:ce,slots:{input:ee.htmlInput?pt:void 0},...Be});return R.jsxs(AU,{className:Ee(pe.root,l),disabled:h,error:d,fullWidth:g,ref:r,required:B,color:u,variant:I,ownerState:me,...Q,children:[O!=null&&O!==""&&R.jsx(We,{htmlFor:ge,id:Re,...De,children:O}),H?R.jsx(rt,{"aria-describedby":Ce,id:ge,labelId:Re,value:re,input:Se,...Je,children:i}):Se,b&&R.jsx(qe,{id:Ce,...st,children:b})]})});var HM={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},FC=y.createContext&&y.createContext(HM),IU=["attr","size","title"];function jU(t,e){if(t==null)return{};var r=LU(t,e),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function LU(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Xp(){return Xp=Object.assign?Object.assign.bind():function(t){for(var e=1;ey.createElement(e.tag,Gp({key:r},e.attr),qM(e.child)))}function WU(t){return e=>y.createElement(UU,Xp({attr:Gp({},t.attr)},e),qM(t.child))}function UU(t){var e=r=>{var{attr:n,size:o,title:a}=t,i=jU(t,IU),l=o||r.size||"1em",u;return r.className&&(u=r.className),t.className&&(u=(u?u+" ":"")+t.className),y.createElement("svg",Xp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:u,style:Gp(Gp({color:t.color||r.color},r.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&y.createElement("title",null,a),t.children)};return FC!==void 0?y.createElement(FC.Consumer,null,r=>e(r)):e(HM)}function HU(t){return WU({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"},child:[]}]})(t)}const qU=Ge(R.jsx("path",{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"}),"AddPhotoAlternate"),VU=Ge(R.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),XU=Ge(R.jsx("path",{d:"M2 12c0 5.52 4.48 10 10 10s10-4.48 10-10S17.52 2 12 2 2 6.48 2 12m10-1h4v2h-4v3l-4-4 4-4z"}),"ArrowCircleLeft"),GU=Ge(R.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"),JU=Ge(R.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"),YU=Ge(R.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"),KU=Ge(R.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4"),ZU=Ge(R.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 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6"}),"Brightness5"),Wb=Ge(R.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"),QU=Ge(R.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7"),eH=Ge(R.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"),jf=Ge(R.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"),Hs=Ge(R.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Rs=Ge(R.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"),Ub=Ge(R.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"),VM=Ge(R.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"),tH=Ge(R.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"),Dp=Ge(R.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"),XM=Ge(R.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"),rH=Ge(R.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"),nH=Ge(R.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"),oH=Ge(R.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"),aH=Ge(R.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"),sH=Ge(R.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"),iH=Ge(R.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"),WC=Ge(R.jsx("path",{d:"m21.9 21.9-8.49-8.49-9.82-9.82L2.1 2.1.69 3.51 3 5.83V19c0 1.1.9 2 2 2h13.17l2.31 2.31zM5 18l3.5-4.5 2.5 3.01L12.17 15l3 3zm16 .17L5.83 3H19c1.1 0 2 .9 2 2z"}),"ImageNotSupported"),GM=Ge(R.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"),JM=Ge(R.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),cH=Ge(R.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),lH=Ge(R.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"),uH=Ge(R.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"),dH=Ge(R.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"),UC=Ge(R.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"}),"Photo"),HC=Ge(R.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),YM=Ge(R.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"),pH=Ge(R.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"),S0=Ge(R.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"),fH=Ge(R.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"),hH=Ge(R.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"),mH=Ge(R.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"),_H=Ge(R.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"),gH=Ge(R.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),yH=Ge(R.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),vH=Ge(R.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"),bH=Ge(R.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"),h_=11/23/100;function qC(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substr(1,2),16),e.g=parseInt(t.substr(3,2),16),e.b=parseInt(t.substr(5,2),16);else if(t.length===4){const r=t.substr(1,1),n=t.substr(2,1),o=t.substr(3,1);e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function wH(t){return`#${Math.round(t.r).toString(16)}${Math.round(t.g).toString(16)}${Math.round(t.b).toString(16)}`}function xH(t,e,r){const n=qC(t),o=qC(e);return n.r+=o.r*(.05+h_*(r-1)),n.g+=o.g*(.05+h_*(r-1)),n.b+=o.b*(.05+h_*(r-1)),wH(n)}function VC(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:xH(t,e,n)};return r}function XC(t,e){var i,l,u,f,h,d,_,g,b,w,S;let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[200],"&:hover":{color:Or[100]}}},MuiPaper:VC("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[200],"&:hover":{color:Or[100]}}},MuiPaper:VC("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="DX"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#a9a9a9"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#F5F5F7"},secondary:{main:"#a9a9a9"},expert:"#BD1B24",text:{primary:"#007AFE",secondary:"#007AFE",disabled:"#007AFEAA"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:(l=(i=r.palette)==null?void 0:i.primary)==null?void 0:l.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:s0[300],dark:s0[400]});const o=ou(r),a=o.palette;return ou(o,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:(u=a.grey)==null?void 0:u[300],color:a.getContrastText&&((f=a.grey)!=null&&f[300])?a.getContrastText(a.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:(h=a.text)==null?void 0:h.primary,borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${(d=a.action)==null?void 0:d.disabledBackground}`},"&:hover":{borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Nt(((_=a.text)==null?void 0:_.primary)||"",((g=a.action)==null?void 0:g.hoverOpacity)||.04)}}},{props:{variant:"text",color:"grey"},style:{color:(b=a.text)==null?void 0:b.primary,"&:hover":{backgroundColor:Nt(((w=a.text)==null?void 0:w.primary)||"",((S=a.action)==null?void 0:S.hoverOpacity)||.04)}}}]}}})}function SH(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function kH(t){return(t==null?void 0:t.rows.map(e=>e.value).filter(e=>!!e))??[]}function GC(t){return t!=null&&t.startsWith("system.host.")||(t=`system.host.${t}`),t}function JC(t){return new Promise(e=>{setTimeout(e,t)})}function cp(t){t=(t||"").toString();const e=t[0]==="*",r=t[t.length-1]==="*";return t=t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(e?"":"^")+t+(r?"":"$")}var _o;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(_o||(_o={}));var Ra;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(Ra||(Ra={}));Ra.PERMISSION_ERROR;Ra.NOT_CONNECTED;const CH=["material","echarts","vis"];class Jo{constructor(e){xe(this,"props");xe(this,"ignoreState","");xe(this,"connected",!1);xe(this,"subscribed",!1);xe(this,"firstConnect",!0);xe(this,"waitForRestart",!1);xe(this,"loaded",!1);xe(this,"simStates",{});xe(this,"statesSubscribes",{});xe(this,"filesSubscribes",{});xe(this,"objectsSubscribes",{});xe(this,"objects",{});xe(this,"states",{});xe(this,"acl",null);xe(this,"isSecure",!1);xe(this,"onReadyDone",!1);xe(this,"onConnectionHandlers",[]);xe(this,"onLogHandlers",[]);xe(this,"onCmdStdoutHandler");xe(this,"onCmdStderrHandler");xe(this,"onCmdExitHandler");xe(this,"_socket");xe(this,"_waitForSocketPromise");xe(this,"_waitForFirstConnectionPromise",SH());xe(this,"_instanceSubscriptions",{});xe(this,"_promises",{});xe(this,"_authTimer");xe(this,"_systemConfig");xe(this,"systemLang","en");this.props=this.applyDefaultProps(e),this.waitForSocketLib().then(()=>this.startSocket()).catch(r=>{alert(`Socket connection could not be initialized: ${r}`)})}applyDefaultProps(e){return{...e,protocol:e.protocol||window.location.protocol,host:e.host||window.location.hostname,port:e.port||(window.location.port==="3000"?8081:window.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}}onError(e){(this.props.onError??console.error)(e)}get systemConfig(){return this._systemConfig}static isWeb(){return window.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(e,r)=>{if(typeof window.io>"u"&&typeof window.iob>"u")if(typeof window.registerSocketOnLoad=="function")window.registerSocketOnLoad(()=>e());else{for(let n=1;n<=30;n++){if(window.io||window.iob)return e();await JC(100)}r(new Error("Socket library could not be loaded!"))}else e()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let e=this.props.host,r=this.props.port,n=(this.props.protocol||window.location.protocol).replace(":",""),o=window.location.pathname;if(window.location.hostname==="iobroker.net"||window.location.hostname==="iobroker.pro")o="";else{if(window.socketUrl){const l=new URL(window.socketUrl);e=l.hostname,r=l.port,n=l.protocol.replace(":","")}const i=o.lastIndexOf("/");if(i!==-1&&(o=o.substring(0,i+1)),Jo.isWeb()){const l=o.split("/");l.length>2&&(l.pop(),l.pop(),CH.includes(l[l.length-1])&&l.pop(),o=l.join("/"),o.endsWith("/")||(o+="/"))}}const a=r?`${n}://${e}:${r}`:`${n}://${e}`;return this._socket=(window.io||window.iob).connect(a,{path:o.endsWith("/")?`${o}socket.io`:`${o}/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",i=>{this.onReadyDone=!1,i!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(l=>{const[u,f,h]=l.version.split(".");parseInt(u,10)*1e4+parseInt(f,10)*100+parseInt(h,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(_,g)=>this.onPreConnect(_,g))}).catch(l=>this.onError({message:l.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(l,u)=>{this.onPreConnect(l,u)})}),this._socket.on("reconnect",()=>{var i,l;this.onReadyDone=!1,(l=(i=this.props).onProgress)==null||l.call(i,_o.READY),this.connected=!0,this.waitForRestart?window.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(u=>u(!0)))}),this._socket.on("disconnect",()=>{var i,l;this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,(l=(i=this.props).onProgress)==null||l.call(i,_o.CONNECTING),this.onConnectionHandlers.forEach(u=>u(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",i=>{var l,u;(u=(l=this.props).onLog)==null||u.call(l,i),this.onLogHandlers.forEach(f=>f(i))}),this._socket.on("error",i=>{let l;i==null?l="":typeof i.toString=="function"?l=i.toString():(l=JSON.stringify(i),console.error(`Received strange error: ${l}`)),l.includes("User not authorized")?this.authenticate():l.includes("websocket error")?(console.error(`Socket Error => reload: ${i}`),window.location.reload()):console.error(`Socket Error: ${i}`)}),this._socket.on("connect_error",i=>console.error(`Connect error: ${i}`)),this._socket.on("permissionError",i=>this.onError({message:"no permission",operation:i.operation,type:i.type,id:i.id||""})),this._socket.on("objectChange",(i,l)=>{setTimeout(()=>this.objectChange(i,l),0)}),this._socket.on("stateChange",(i,l)=>{setTimeout(()=>this.stateChange(i,l),0)}),this._socket.on("im",(i,l,u)=>{setTimeout(()=>this.instanceMessage(i,l,u),0)}),this._socket.on("fileChange",(i,l,u)=>{setTimeout(()=>this.fileChange(i,l,u),0)}),this._socket.on("cmdStdout",(i,l)=>{var u;(u=this.onCmdStdoutHandler)==null||u.call(this,i,l)}),this._socket.on("cmdStderr",(i,l)=>{var u;(u=this.onCmdStderrHandler)==null||u.call(this,i,l)}),this._socket.on("cmdExit",(i,l)=>{var u;(u=this.onCmdExitHandler)==null||u.call(this,i,l)}),Promise.resolve()}onPreConnect(e,r){var n,o;this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=r,this.waitForRestart?window.location.reload():(this.firstConnect?this.loadData().catch(a=>console.error(`Cannot load data: ${a}`)):(o=(n=this.props).onProgress)==null||o.call(n,_o.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(a=>a(!0))),this._waitForFirstConnectionPromise.resolve()}static isCloud(){return window.location.hostname.includes("amazonaws.com")||window.location.hostname.includes("iobroker.in")?!0:typeof window.socketUrl>"u"?!1:window.socketUrl.includes("iobroker.in")||window.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getUserPermissions",(n,o)=>{n?r(n):e(o)})}})}async loadData(){if(this.loaded)return;const e=10;for(let r=1;r<=e;r++){if(this.doLoadData().catch(n=>console.error(`Cannot load data: ${n}`)),this.loaded)return;await JC(Jo.isCloud()?5e3:1e3)}}async doLoadData(){var e,r,n,o,a,i,l,u,f;if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(h){this.onError(`Cannot read user permissions: ${h}`);return}try{this.props.admin5only&&!Jo.isWeb()&&(!window.vendorPrefix||window.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(h){this.onError(`Cannot read system config: ${h}`);return}this._systemConfig&&(this.systemLang=(e=this._systemConfig.common)==null?void 0:e.language,this.systemLang||(this.systemLang=window.navigator.userLanguage||window.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)),(n=(r=this.props).onLanguage)==null||n.call(r,this.systemLang),this.loaded=!0,(a=(o=this.props).onProgress)==null||a.call(o,_o.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),(l=(i=this.props).onProgress)==null||l.call(i,_o.READY),this.onReadyDone||(this.onReadyDone=!0,(f=(u=this.props).onReady)==null||f.call(u,this.objects))}}authenticate(){window.location.search.includes("&href=")?window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}${window.location.search}${window.location.hash}`:window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}?login&href=${window.location.search}${window.location.hash}`}async subscribeState(...e){let r,n,o;e.length===3?[r,n,o]=e:([r,o]=e,n=!1);let a;if(Array.isArray(r)?a=r:a=[r],typeof o!="function")throw new Error("The state change handler must be a function!");const i=[];for(let l=0;ll.includes("*"))){let l;for(let u=0;uconsole.error(`Cannot call state change handler: ${_}`))}}}else try{const l=await(Jo.isWeb()?this.getStates(a):this.getForeignStates(a));if(l)for(const[u,f]of Object.entries(l)){const h=o(u,f);h instanceof Promise&&h.catch(d=>console.error(`Cannot call state change handler: ${d}`))}}catch(l){console.error(`Cannot getState "${a.join(", ")}": ${l.message}`);return}}async subscribeStateAsync(e,r){return this.subscribeState(e,r)}unsubscribeState(e,r){var a;let n;Array.isArray(e)?n=e:n=[e];const o=[];for(let i=0;i{try{const h=f(e,r,n);h instanceof Promise&&h.catch(d=>console.error(`Cannot call object change handler: ${d}`))}catch(h){console.error(`Error by callback of objectChange: ${h}`)}});if(o){const l=(i=(a=this.props).onObjectChange)==null?void 0:i.call(a,e,r);l instanceof Promise&&l.catch(u=>console.error(`Cannot call object change handler: ${u}`))}}stateChange(e,r){for(const n of Object.values(this.statesSubscribes))if(n.reg.test(e))for(const o of n.cbs)try{const a=o(e,r??null);a instanceof Promise&&a.catch(i=>console.error(`Cannot call state change handler: ${i}`))}catch(a){console.error(`Error by callback of stateChanged: ${a}`)}}instanceMessage(e,r,n){var o;(o=this._instanceSubscriptions[r])==null||o.forEach(a=>{if(a.messageType===e){const i=a.callback(n,r,e);i instanceof Promise&&i.catch(l=>console.error(`Cannot call instance message handler: ${l}`))}})}fileChange(e,r,n){for(const o of Object.values(this.filesSubscribes))if(o.regId.test(e)&&o.regFilePattern.test(r))for(const a of o.cbs)try{a(e,r,n)}catch(i){console.error(`Error by callback of fileChange: ${i}`)}}async subscribeFiles(e,r,n){if(typeof n!="function")throw new Error("The state change handler must be a function!");let o;Array.isArray(r)?o=r:o=[r];const a=[];for(let i=0;i{const d={elapsed:!1,clearTimeout:()=>{}};let _;n!==!1&&(_=setTimeout(()=>{d.elapsed=!0,o==null||o(),e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(Ra.TIMEOUT))},n??this.props.cmdTimeout),d.clearTimeout=()=>{clearTimeout(_)});try{await l(f,h,d)}catch(g){e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(g.toString()))}});return e&&(this._promises[e]=u),u}resetCache(e,r){r?Object.keys(this._promises).filter(n=>n.startsWith(e)).forEach(n=>{delete this._promises[n]}):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getStates",e,(o,a)=>{this.states=a??{},o?n(o):r(this.states)})}})}getState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r(this.simStates[e]||{val:null,ack:!0});return}this._socket.emit("getState",e,(o,a)=>{o?n(o):r(a)})}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getBinaryState",e,(o,a)=>{o?n(o):r(a)})}})}setBinaryState(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setBinaryState",e,r,a=>{a?o(a):n()})}})}setState(e,r,n){return typeof n=="boolean"&&(r={val:r,ack:n}),this.request({commandTimeout:!1,executor:(o,a)=>{if(e&&e===this.ignoreState){let i;if(typeof n=="boolean"||typeof r=="object"&&r.val!==void 0?i=r:i={val:r,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[e]=i,this.statesSubscribes[e])for(const l of this.statesSubscribes[e].cbs)try{const u=l(e,i);u instanceof Promise&&u.catch(f=>console.error(`Cannot call state change handler: ${f}`))}catch(u){console.error(`Error by callback of stateChanged: ${u}`)}o();return}this._socket.emit("setState",e,r,i=>{i?a(i):o()})}})}getObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{if(!e&&this.objects){n(this.objects);return}this._socket.emit(Jo.isWeb()?"getObjects":"getAllObjects",(a,i)=>{var l,u;r||(u=(l=this.props).onProgress)==null||u.call(l,_o.OBJECTS_LOADED),a?o(a):(this.objects=i??{},n(this.objects))})}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjects",e,(o,a)=>{o?n(o):r(a)})}})}_subscribe(e){var r,n;if(e&&!this.subscribed){this.subscribed=!0,(r=this.props.autoSubscribes)!=null&&r.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const o=Object.keys(this.objectsSubscribes);o.length&&this._socket.emit("subscribeObjects",o),Object.keys(this.objectsSubscribes).forEach(a=>this._socket.emit("subscribeObjects",a)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(a=>this._socket.emit("subscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[i,l]=a.split("$%$");this._socket.emit("subscribeFiles",i,l)})}else if(!e&&this.subscribed){this.subscribed=!1,(n=this.props.autoSubscribes)!=null&&n.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const o=Object.keys(this.objectsSubscribes);o.length&&this._socket.emit("unsubscribeObjects",o),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(a=>this._socket.emit("unsubscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[i,l]=a.split("$%$");this._socket.emit("unsubscribeFiles",i,l)})}}requireLog(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("requireLog",e,o=>{o?n(o):r()})}})}delObject(e,r=!1){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObject",e,{maintenance:r},a=>{a?o(a):n()})}})}delObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObjects",e,{maintenance:r},a=>{a?o(a):n()})}})}setObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",e,(o,a)=>{o?n(o):r(a)})}})}sendTo(e,r,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendTo",e,r,n,a=>{o(a)})}})}extendObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("extendObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){const r=this.onLogHandlers.indexOf(e);r!==-1&&this.onLogHandlers.splice(r,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){const r=this.onConnectionHandlers.indexOf(e);r!==-1&&this.onConnectionHandlers.splice(r,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,r){return this.request({cacheKey:`enums_${e||"all"}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${e||""}`,endkey:e?`enum.${e}.香`:"enum.香"},(a,i)=>{if(a)o(a);else{const l={};if(i)for(let u=0;u{n=n||"",o=o||"香",this._socket.emit("getObjectView",e,r,{startkey:n,endkey:o},(l,u)=>{if(l)i(l);else{const f={};if(u&&u.rows)for(let h=0;h{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(n,o)=>{var a;n?r(n):e((a=o.rows)==null?void 0:a.map(i=>i.value).filter(i=>!!i))})}})}readDir(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("readDir",e,r,(a,i)=>{a?o(a):n(i)})}})}readFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit(n?"readFile64":"readFile",e,r,(i,l,u)=>{i?a(i):o({file:l,mimeType:u})})}})}writeFile64(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{if(typeof n=="string")this._socket.emit("writeFile",e,r,n,i=>{i?a(i):o()});else{const i=btoa(new Uint8Array(n).reduce((l,u)=>l+String.fromCharCode(u),""));this._socket.emit("writeFile64",e,r,i,l=>{l?a(l):o()})}}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFile",e,r,a=>{a?o(a):n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFolder",e,r,a=>{a?o(a):n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("rename",e,r,n,i=>{i?a(i):o()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("renameFile",e,r,n,i=>{i?a(i):o()})}})}cmdExec(e,r,n,o){return this.request({commandTimeout:o,executor:(a,i,l)=>{e=GC(e),this._socket.emit("cmdExec",e,n,r,u=>{l.elapsed||(l.clearTimeout(),u?i(u):a())})}})}getSystemConfig(e){return this.request({cacheKey:"systemConfig",forceUpdate:e,commandTimeout:!1,executor:async r=>{let n=await this.getObject("system.config");n??(n={}),n.common??(n.common={}),n.native??(n.native={}),r(n)}})}getCompactSystemConfig(e){return this.request({cacheKey:"systemConfigCommon",forceUpdate:e,commandTimeout:!1,requireAdmin:!0,executor:(r,n)=>{this._socket.emit("getCompactSystemConfig",(o,a)=>{o?n(o):(a??(a={}),a.common??(a.common={}),a.native??(a.native={}),r(a))})}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getForeignStates",e||"*",(o,a)=>{o?n(o):r(a??{})})}})}getForeignObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getForeignObjects",e||"*",r,(a,i)=>{a?o(a):n(i)})}})}setSystemConfig(e){return this.setObject("system.config",e)}getRawSocket(){return this._socket}getHistory(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,i)=>{a?o(a):n(i)})}})}getHistoryEx(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,i,l,u)=>{a?o(a):n({values:i,sessionId:u,step:l})})}})}getIpAddresses(e,r){return e=GC(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObject(e);n((o==null?void 0:o.common.address)??[])}})}getVersion(e){return this.request({cacheKey:"version",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getVersion",(o,a,i)=>{o&&!a&&typeof o=="string"&&o.match(/\d+\.\d+\.\d+/)?r({version:o,serverName:"socketio"}):o?n(o):r({version:a,serverName:i})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getAdapterName",(n,o)=>{n?r(n):e(o)})}})}fileExists(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("fileExists",e,r,(a,i)=>{a?o(a):n(!!i)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit("authEnabled",(r,n)=>{e(n)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async e=>{var n;const r=await this.getObject("system.meta.uuid");e((n=r==null?void 0:r.native)==null?void 0:n.uuid)}})}checkFeatureSupported(e,r){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("checkFeatureSupported",e,(a,i)=>{a?o(a):n(i)})}})}getAdapterInstances(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`instances_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=e?`system.adapter.${e}.`:"system.adapter.",a=`${o}香`,i=await this.getObjectViewSystem("instance",o,a),l=Object.values(i);n(e?l.filter(u=>u.common.name===e):l)}})}getAdapters(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`adapter_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObjectViewSystem("adapter",`system.adapter.${e||""}`,`system.adapter.${e||"香"}`),a=Object.values(o);n(e?a.filter(i=>i.common.name===e):a)}})}getGroups(e){return this.request({cacheKey:"groups",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(o,a)=>{o?n(o):r(kH(a))})}})}logout(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("logout",n=>{n?r(n):e(null)})}})}subscribeOnInstance(e,r,n,o){return this.request({commandTimeout:!1,executor:(a,i)=>{this._socket.emit("clientSubscribe",e,r,n,(l,u)=>{l?i(l):u&&(u.error?i(u.error):(e.startsWith("system.adapter.")||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find(f=>f.messageType===r&&f.callback===o)||this._instanceSubscriptions[e].push({messageType:r,callback:o}),a(u)))})}})}unsubscribeFromInstance(e,r,n){var i;e.startsWith("system.adapter.")||(e=`system.adapter.${e}`);let o;const a=[];do{o=!1;const l=(i=this._instanceSubscriptions[e])==null?void 0:i.findIndex(u=>(!r||u.messageType===r)&&(!n||u.callback===n));if(l!=null&&l!==-1){o=!0;const u=this._instanceSubscriptions[e][l].messageType;this._instanceSubscriptions[e].splice(l,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e],this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find(h=>h.messageType===u)||a.push(this.request({commandTimeout:!1,executor:(h,d)=>{this._socket.emit("clientUnsubscribe",e,r,(_,g)=>_?d(_):h(g))}}))}}while(o&&(!n||!r));return a.length?Promise.all(a).then(l=>!!l.find(u=>u)):Promise.resolve(!1)}log(e,r){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",e,r),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}}const $H=` + `:null,n7=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${he(n)}`,r],dashed:["dashed",`dashedColor${he(n)}`],bar1:["bar",`barColor${he(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${he(n)}`,r==="buffer"&&`color${he(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return nt(o,QB,e)},Ib=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?wc(t.palette[e].main,.62):bc(t.palette[e].main,.5),o7=ie("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${he(r.color)}`],e[r.variant]]}})(Xe(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{backgroundColor:Ib(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),a7=ie("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${he(r.color)}`]]}})(Xe(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>{const r=Ib(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),r7||{animation:`${x0} 3s infinite linear`}),s7=ie("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${he(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Xe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${v0}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${v0}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:e7||{animation:`${b0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),i7=ie("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${he(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Xe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:Ib(t,e),transition:`transform .${v0}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:t7||{animation:`${w0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),jM=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:i,valueBuffer:l,variant:u="indeterminate",...f}=n,h={...n,color:a,variant:u},d=n7(h),_=Us(),g={},b={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&i!==void 0){g["aria-valuenow"]=Math.round(i),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let w=i-100;_&&(w=-w),b.bar1.transform=`translateX(${w}%)`}if(u==="buffer"&&l!==void 0){let w=(l||0)-100;_&&(w=-w),b.bar2.transform=`translateX(${w}%)`}return R.jsxs(o7,{className:Ee(d.root,o),ownerState:h,role:"progressbar",...g,ref:r,...f,children:[u==="buffer"?R.jsx(a7,{className:d.dashed,ownerState:h}):null,R.jsx(s7,{className:d.bar1,ownerState:h,style:b.bar1}),u==="determinate"?null:R.jsx(i7,{className:d.bar2,ownerState:h,style:b.bar2})]})});function c7(t){return tt("MuiLink",t)}const l7=Ze("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),u7=({theme:t,ownerState:e})=>{const r=e.color,n=vc(t,`palette.${r}`,!1)||e.color,o=vc(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:Nt(n,.4)},vC={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},d7=t=>{const{classes:e,component:r,focusVisible:n,underline:o}=t,a={root:["root",`underline${he(o)}`,r==="button"&&"button",n&&"focusVisible"]};return nt(a,c7,e)},p7=ie(bo,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`underline${he(r.underline)}`],r.component==="button"&&e.button]}})(Xe(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette[e].mainChannel} / 0.4)`:Nt(t.palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:Nt(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.secondaryChannel} / 0.4)`:Nt(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${l7.focusVisible}`]:{outline:"auto"}}}]}))),f7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiLink"}),o=ta(),{className:a,color:i="primary",component:l="a",onBlur:u,onFocus:f,TypographyClasses:h,underline:d="always",variant:_="inherit",sx:g,...b}=n,[w,S]=$.useState(!1),k=M=>{Ba(M.target)||S(!1),u&&u(M)},D=M=>{Ba(M.target)&&S(!0),f&&f(M)},C={...n,color:i,component:l,focusVisible:w,underline:d,variant:_},O=d7(C);return R.jsx(p7,{color:i,className:Ee(O.root,a),classes:h,component:l,onBlur:k,onFocus:D,ref:r,ownerState:C,variant:_,...b,sx:[...vC[i]===void 0?[{color:i}]:[],...Array.isArray(g)?g:[g]],style:{...b.style,...d==="always"&&i!=="inherit"&&!vC[i]&&{"--Link-underlineColor":u7({theme:o,ownerState:C})}}})}),cu=$.createContext({});function h7(t){return tt("MuiList",t)}Ze("MuiList",["root","padding","dense","subheader"]);const m7=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return nt({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},h7,e)},_7=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),g7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:l=!1,disablePadding:u=!1,subheader:f,...h}=n,d=$.useMemo(()=>({dense:l}),[l]),_={...n,component:i,dense:l,disablePadding:u},g=m7(_);return R.jsx(cu.Provider,{value:d,children:R.jsxs(_7,{as:i,className:Ee(g.root,a),ref:r,ownerState:_,...h,children:[f,o]})})});function y7(t){return tt("MuiListItemIcon",t)}const bC=Ze("MuiListItemIcon",["root","alignItemsFlexStart"]),v7=t=>{const{alignItems:e,classes:r}=t;return nt({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},y7,r)},b7=ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Xe(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),w7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiListItemIcon"}),{className:o,...a}=n,i=$.useContext(cu),l={...n,alignItems:i.alignItems},u=v7(l);return R.jsx(b7,{className:Ee(u.root,o),ownerState:l,ref:r,...a})});function x7(t){return tt("MuiListItemText",t)}const oc=Ze("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),S7=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:a}=t;return nt({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},x7,e)},k7=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${oc.primary}`]:e.primary},{[`& .${oc.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Yk.root}:where(& .${oc.primary})`]:{display:"block"},[`.${Yk.root}:where(& .${oc.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),C7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:l=!1,primary:u,primaryTypographyProps:f,secondary:h,secondaryTypographyProps:d,slots:_={},slotProps:g={},...b}=n,{dense:w}=$.useContext(cu);let S=u??o,k=h;const D={...n,disableTypography:i,inset:l,primary:!!S,secondary:!!k,dense:w},C=S7(D),O={slots:_,slotProps:{primary:f,secondary:d,...g}},[M,T]=Sr("primary",{className:C.primary,elementType:bo,externalForwardedProps:O,ownerState:D}),[P,j]=Sr("secondary",{className:C.secondary,elementType:bo,externalForwardedProps:O,ownerState:D});return S!=null&&S.type!==bo&&!i&&(S=R.jsx(M,{variant:w?"body2":"body1",component:T!=null&&T.variant?void 0:"span",...T,children:S})),k!=null&&k.type!==bo&&!i&&(k=R.jsx(P,{variant:"body2",color:"textSecondary",...j,children:k})),R.jsxs(k7,{className:Ee(C.root,a),ownerState:D,ref:r,...b,children:[S,k]})});function d_(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function wC(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function LM(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function xl(t,e,r,n,o,a){let i=!1,l=o(t,e,e?r:!1);for(;l;){if(l===t.firstChild){if(i)return!1;i=!0}const u=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!LM(l,a)||u)l=o(t,l,r);else return l.focus(),!0}return!1}const $7=$.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:l,disabledItemsFocusable:u=!1,disableListWrap:f=!1,onKeyDown:h,variant:d="selectedMenu",..._}=e,g=$.useRef(null),b=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yn(()=>{o&&g.current.focus()},[o]),$.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(C,{direction:O})=>{const M=!g.current.style.width;if(C.clientHeight{const O=g.current,M=C.key;if(C.ctrlKey||C.metaKey||C.altKey){h&&h(C);return}const P=cr(O).activeElement;if(M==="ArrowDown")C.preventDefault(),xl(O,P,f,u,d_);else if(M==="ArrowUp")C.preventDefault(),xl(O,P,f,u,wC);else if(M==="Home")C.preventDefault(),xl(O,null,f,u,d_);else if(M==="End")C.preventDefault(),xl(O,null,f,u,wC);else if(M.length===1){const j=b.current,F=M.toLowerCase(),E=performance.now();j.keys.length>0&&(E-j.lastTime>500?(j.keys=[],j.repeating=!0,j.previousKeyMatched=!0):j.repeating&&F!==j.keys[0]&&(j.repeating=!1)),j.lastTime=E,j.keys.push(F);const L=P&&!j.repeating&&LM(P,j);j.previousKeyMatched&&(L||xl(O,P,!1,u,d_,j))?C.preventDefault():j.previousKeyMatched=!1}h&&h(C)},S=ar(g,r);let k=-1;$.Children.forEach(i,(C,O)=>{if(!$.isValidElement(C)){k===O&&(k+=1,k>=i.length&&(k=-1));return}C.props.disabled||(d==="selectedMenu"&&C.props.selected||k===-1)&&(k=O),k===O&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(k+=1,k>=i.length&&(k=-1))});const D=$.Children.map(i,(C,O)=>{if(O===k){const M={};return a&&(M.autoFocus=!0),C.props.tabIndex===void 0&&d==="selectedMenu"&&(M.tabIndex=0),$.cloneElement(C,M)}return C});return R.jsx(g7,{role:"menu",ref:S,className:l,onKeyDown:w,tabIndex:o?0:-1,..._,children:D})});function E7(t){return tt("MuiPopover",t)}Ze("MuiPopover",["root","paper"]);function xC(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function SC(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function kC(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function p_(t){return typeof t=="function"?t():t}const T7=t=>{const{classes:e}=t;return nt({root:["root"],paper:["paper"]},E7,e)},O7=ie(AM,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),FM=ie(ku,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),D7=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:f,className:h,container:d,elevation:_=8,marginThreshold:g=16,open:b,PaperProps:w={},slots:S={},slotProps:k={},transformOrigin:D={vertical:"top",horizontal:"left"},TransitionComponent:C=iu,transitionDuration:O="auto",TransitionProps:{onEntering:M,...T}={},disableScrollLock:P=!1,...j}=n,F=(k==null?void 0:k.paper)??w,E=$.useRef(),L={...n,anchorOrigin:i,anchorReference:u,elevation:_,marginThreshold:g,externalPaperSlotProps:F,transformOrigin:D,TransitionComponent:C,transitionDuration:O,TransitionProps:T},G=T7(L),B=$.useCallback(()=>{if(u==="anchorPosition")return l;const Oe=p_(a),Me=(Oe&&Oe.nodeType===1?Oe:cr(E.current).body).getBoundingClientRect();return{top:Me.top+xC(Me,i.vertical),left:Me.left+SC(Me,i.horizontal)}},[a,i.horizontal,i.vertical,l,u]),z=$.useCallback(Oe=>({vertical:xC(Oe,D.vertical),horizontal:SC(Oe,D.horizontal)}),[D.horizontal,D.vertical]),H=$.useCallback(Oe=>{const ze={width:Oe.offsetWidth,height:Oe.offsetHeight},Me=z(ze);if(u==="none")return{top:null,left:null,transformOrigin:kC(Me)};const Be=B();let We=Be.top-Me.vertical,De=Be.left-Me.horizontal;const pt=We+ze.height,ce=De+ze.width,qe=eo(p_(a)),st=qe.innerHeight-g,rt=qe.innerWidth-g;if(g!==null&&West){const Je=pt-st;We-=Je,Me.vertical+=Je}if(g!==null&&Dert){const Je=ce-rt;De-=Je,Me.horizontal+=Je}return{top:`${Math.round(We)}px`,left:`${Math.round(De)}px`,transformOrigin:kC(Me)}},[a,u,B,z,g]),[K,ee]=$.useState(b),Y=$.useCallback(()=>{const Oe=E.current;if(!Oe)return;const ze=H(Oe);ze.top!==null&&Oe.style.setProperty("top",ze.top),ze.left!==null&&(Oe.style.left=ze.left),Oe.style.transformOrigin=ze.transformOrigin,ee(!0)},[H]);$.useEffect(()=>(P&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[a,P,Y]);const X=(Oe,ze)=>{M&&M(Oe,ze),Y()},re=()=>{ee(!1)};$.useEffect(()=>{b&&Y()}),$.useImperativeHandle(o,()=>b?{updatePosition:()=>{Y()}}:null,[b,Y]),$.useEffect(()=>{if(!b)return;const Oe=Ef(()=>{Y()}),ze=eo(a);return ze.addEventListener("resize",Oe),()=>{Oe.clear(),ze.removeEventListener("resize",Oe)}},[a,b,Y]);let I=O;O==="auto"&&!C.muiSupportAuto&&(I=void 0);const Q=d||(a?cr(p_(a)).body:void 0),me={slots:S,slotProps:{...k,paper:F}},[pe,ge]=Sr("paper",{elementType:FM,externalForwardedProps:me,additionalProps:{elevation:_,className:Ee(G.paper,F==null?void 0:F.className),style:K?F.style:{...F.style,opacity:0}},ownerState:L}),[Ce,{slotProps:Re,...Te}]=Sr("root",{elementType:O7,externalForwardedProps:me,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Q,open:b},ownerState:L,className:Ee(G.root,h)}),Pe=ar(E,ge.ref);return R.jsx(Ce,{...Te,...!ks(Ce)&&{slotProps:Re,disableScrollLock:P},...j,ref:r,children:R.jsx(C,{appear:!0,in:b,onEntering:X,onExited:re,timeout:I,...T,children:R.jsx(pe,{...ge,ref:Pe,children:f})})})});function M7(t){return tt("MuiMenu",t)}Ze("MuiMenu",["root","paper","list"]);const N7={vertical:"top",horizontal:"right"},P7={vertical:"top",horizontal:"left"},R7=t=>{const{classes:e}=t;return nt({root:["root"],paper:["paper"],list:["list"]},M7,e)},A7=ie(D7,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),I7=ie(FM,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),j7=ie($7,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),jb=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:i,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:f,open:h,PaperProps:d={},PopoverClasses:_,transitionDuration:g="auto",TransitionProps:{onEntering:b,...w}={},variant:S="selectedMenu",slots:k={},slotProps:D={},...C}=n,O=Us(),M={...n,autoFocus:o,disableAutoFocusItem:l,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:g,TransitionProps:w,variant:S},T=R7(M),P=o&&!l&&h,j=$.useRef(null),F=(K,ee)=>{j.current&&j.current.adjustStyleForScrollbar(K,{direction:O?"rtl":"ltr"}),b&&b(K,ee)},E=K=>{K.key==="Tab"&&(K.preventDefault(),f&&f(K,"tabKeyDown"))};let L=-1;$.Children.map(a,(K,ee)=>{$.isValidElement(K)&&(K.props.disabled||(S==="selectedMenu"&&K.props.selected||L===-1)&&(L=ee))});const G=k.paper??I7,B=D.paper??d,z=Dr({elementType:k.root,externalSlotProps:D.root,ownerState:M,className:[T.root,i]}),H=Dr({elementType:G,externalSlotProps:B,ownerState:M,className:T.paper});return R.jsx(A7,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?N7:P7,slots:{paper:G,root:k.root},slotProps:{root:z,paper:H},open:h,ref:r,transitionDuration:g,TransitionProps:{onEntering:F,...w},ownerState:M,...C,classes:_,children:R.jsx(j7,{onKeyDown:E,actions:j,autoFocus:o&&(L===-1||l),autoFocusItem:P,variant:S,...u,className:Ee(T.list,u.className),children:a})})});function L7(t){return tt("MuiMenuItem",t)}const Sl=Ze("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),F7=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},z7=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=t,u=nt({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},L7,i);return{...i,...u}},B7=ie(Va,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:F7})(Xe(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Sl.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Sl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Sl.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Nt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Sl.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Sl.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${mC.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${mC.inset}`]:{marginLeft:52},[`& .${oc.root}`]:{marginTop:0,marginBottom:0},[`& .${oc.inset}`]:{paddingLeft:36},[`& .${bC.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${bC.root} svg`]:{fontSize:"1.25rem"}}}]}))),fr=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:f,role:h="menuitem",tabIndex:d,className:_,...g}=n,b=$.useContext(cu),w=$.useMemo(()=>({dense:i||b.dense||!1,disableGutters:u}),[b.dense,i,u]),S=$.useRef(null);yn(()=>{o&&S.current&&S.current.focus()},[o]);const k={...n,dense:w.dense,divider:l,disableGutters:u},D=z7(n),C=ar(S,r);let O;return n.disabled||(O=d!==void 0?d:-1),R.jsx(cu.Provider,{value:w,children:R.jsx(B7,{ref:C,role:h,tabIndex:O,component:a,focusVisibleClassName:Ee(D.focusVisible,f),className:Ee(D.root,_),...g,ownerState:k,classes:D})})});function W7(t){return tt("MuiNativeSelect",t)}const Lb=Ze("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),U7=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:i}=t,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${he(r)}`,a&&"iconOpen",n&&"disabled"]};return nt(l,W7,e)},zM=ie("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Lb.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),H7=ie(zM,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cr,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${Lb.multiple}`]:e.multiple}]}})({}),BM=ie("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Lb.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),q7=ie(BM,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${he(r.variant)}`],r.open&&e.iconOpen]}})({}),V7=$.forwardRef(function(e,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:l,variant:u="standard",...f}=e,h={...e,disabled:o,variant:u,error:a},d=U7(h);return R.jsxs($.Fragment,{children:[R.jsx(H7,{ownerState:h,className:Ee(d.select,n),disabled:o,ref:l||r,...f}),e.multiple?null:R.jsx(q7,{as:i,ownerState:h,className:d.icon})]})});var CC;const X7=ie("fieldset",{shouldForwardProp:Cr})({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%"}),G7=ie("legend",{shouldForwardProp:Cr})(Xe(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function J7(t){const{children:e,classes:r,className:n,label:o,notched:a,...i}=t,l=o!=null&&o!=="",u={...t,notched:a,withLabel:l};return R.jsx(X7,{"aria-hidden":!0,className:n,ownerState:u,...i,children:R.jsx(G7,{ownerState:u,children:l?R.jsx("span",{children:o}):CC||(CC=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Y7=t=>{const{classes:e}=t,n=nt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},z8,e);return{...e,...n}},K7=ie(Rf,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Nf})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${lo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${lo.focused} .${lo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(Jt()).map(([r])=>({props:{color:r},style:{[`&.${lo.focused} .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${lo.error} .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${lo.disabled} .${lo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),Z7=ie(J7,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),Q7=ie(Af,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Pf})(Xe(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Fb=$.forwardRef(function(e,r){var n;const o=ot({props:e,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:l="input",label:u,multiline:f=!1,notched:h,slots:d={},type:_="text",...g}=o,b=Y7(o),w=Oo(),S=Ga({props:o,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...o,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:w,fullWidth:i,hiddenLabel:S.hiddenLabel,multiline:f,size:S.size,type:_},D=d.root??a.Root??K7,C=d.input??a.Input??Q7;return R.jsx(Rb,{slots:{root:D,input:C},renderSuffix:O=>R.jsx(Z7,{ownerState:k,className:b.notchedOutline,label:u!=null&&u!==""&&S.required?n||(n=R.jsxs($.Fragment,{children:[u," ","*"]})):u,notched:typeof h<"u"?h:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:i,inputComponent:l,multiline:f,ref:r,type:_,...g,classes:{...b,notchedOutline:null}})});Fb.muiName="Input";const eW=Ge(R.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"),tW=Ge(R.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"),rW=ie("span",{shouldForwardProp:Cr})({position:"relative",display:"flex"}),nW=ie(eW)({transform:"scale(1)"}),oW=ie(tW)(Xe(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function WM(t){const{checked:e=!1,classes:r={},fontSize:n}=t,o={...t,checked:e};return R.jsxs(rW,{className:r.root,ownerState:o,children:[R.jsx(nW,{fontSize:n,className:r.background,ownerState:o}),R.jsx(oW,{fontSize:n,className:r.dot,ownerState:o})]})}const aW=$.createContext(void 0);function sW(){return $.useContext(aW)}function iW(t){return tt("MuiRadio",t)}const $C=Ze("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),cW=t=>{const{classes:e,color:r,size:n}=t,o={root:["root",`color${he(r)}`,n!=="medium"&&`size${he(n)}`]};return{...e,...nt(o,iW,e)}},lW=ie(RM,{shouldForwardProp:t=>Cr(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${he(r.size)}`],e[`color${he(r.color)}`]]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${$C.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Nt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${$C.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function uW(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const EC=R.jsx(WM,{checked:!0}),TC=R.jsx(WM,{}),Ft=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:a=EC,color:i="primary",icon:l=TC,name:u,onChange:f,size:h="medium",className:d,disabled:_,disableRipple:g=!1,...b}=n,w=Oo();let S=_;w&&typeof S>"u"&&(S=w.disabled),S??(S=!1);const k={...n,disabled:S,disableRipple:g,color:i,size:h},D=cW(k),C=sW();let O=o;const M=o0(f,C&&C.onChange);let T=u;return C&&(typeof O>"u"&&(O=uW(C.value,n.value)),typeof T>"u"&&(T=C.name)),R.jsx(lW,{type:"radio",icon:$.cloneElement(l,{fontSize:TC.props.fontSize??h}),checkedIcon:$.cloneElement(a,{fontSize:EC.props.fontSize??h}),disabled:S,ownerState:k,classes:D,name:T,checked:O,onChange:M,ref:r,className:Ee(D.root,d),...b})});function dW(t){return tt("MuiSelect",t)}const kl=Ze("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var OC;const pW=ie(zM,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${kl.select}`]:e.select},{[`&.${kl.select}`]:e[r.variant]},{[`&.${kl.error}`]:e.error},{[`&.${kl.multiple}`]:e.multiple}]}})({[`&.${kl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),fW=ie(BM,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${he(r.variant)}`],r.open&&e.iconOpen]}})({}),hW=ie("input",{shouldForwardProp:t=>Df(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function DC(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function mW(t){return t==null||typeof t=="string"&&!t.trim()}const _W=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:i}=t,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${he(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return nt(l,dW,e)},gW=$.forwardRef(function(e,r){var ft;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:i,children:l,className:u,defaultOpen:f,defaultValue:h,disabled:d,displayEmpty:_,error:g=!1,IconComponent:b,inputRef:w,labelId:S,MenuProps:k={},multiple:D,name:C,onBlur:O,onChange:M,onClose:T,onFocus:P,onOpen:j,open:F,readOnly:E,renderValue:L,required:G,SelectDisplayProps:B={},tabIndex:z,type:H,value:K,variant:ee="standard",...Y}=e,[X,re]=ru({controlled:K,default:h,name:"Select"}),[I,Q]=ru({controlled:F,default:f,name:"Select"}),me=$.useRef(null),pe=$.useRef(null),[ge,Ce]=$.useState(null),{current:Re}=$.useRef(F!=null),[Te,Pe]=$.useState(),Oe=ar(r,w),ze=$.useCallback(ae=>{pe.current=ae,ae&&Ce(ae)},[]),Me=ge==null?void 0:ge.parentNode;$.useImperativeHandle(Oe,()=>({focus:()=>{pe.current.focus()},node:me.current,value:X}),[X]),$.useEffect(()=>{f&&I&&ge&&!Re&&(Pe(i?null:Me.clientWidth),pe.current.focus())},[ge,i]),$.useEffect(()=>{a&&pe.current.focus()},[a]),$.useEffect(()=>{if(!S)return;const ae=cr(pe.current).getElementById(S);if(ae){const _e=()=>{getSelection().isCollapsed&&pe.current.focus()};return ae.addEventListener("click",_e),()=>{ae.removeEventListener("click",_e)}}},[S]);const Be=(ae,_e)=>{ae?j&&j(_e):T&&T(_e),Re||(Pe(i?null:Me.clientWidth),Q(ae))},We=ae=>{ae.button===0&&(ae.preventDefault(),pe.current.focus(),Be(!0,ae))},De=ae=>{Be(!1,ae)},pt=$.Children.toArray(l),ce=ae=>{const _e=pt.find(Fe=>Fe.props.value===ae.target.value);_e!==void 0&&(re(_e.props.value),M&&M(ae,_e))},qe=ae=>_e=>{let Fe;if(_e.currentTarget.hasAttribute("tabindex")){if(D){Fe=Array.isArray(X)?X.slice():[];const Ke=X.indexOf(ae.props.value);Ke===-1?Fe.push(ae.props.value):Fe.splice(Ke,1)}else Fe=ae.props.value;if(ae.props.onClick&&ae.props.onClick(_e),X!==Fe&&(re(Fe),M)){const Ke=_e.nativeEvent||_e,_t=new Ke.constructor(Ke.type,Ke);Object.defineProperty(_t,"target",{writable:!0,value:{value:Fe,name:C}}),M(_t,ae)}D||Be(!1,_e)}},st=ae=>{E||[" ","ArrowUp","ArrowDown","Enter"].includes(ae.key)&&(ae.preventDefault(),Be(!0,ae))},rt=ge!==null&&I,Je=ae=>{!rt&&O&&(Object.defineProperty(ae,"target",{writable:!0,value:{value:X,name:C}}),O(ae))};delete Y["aria-invalid"];let Se,ut;const q=[];let ne=!1;(qp({value:X})||_)&&(L?Se=L(X):ne=!0);const ye=pt.map(ae=>{if(!$.isValidElement(ae))return null;let _e;if(D){if(!Array.isArray(X))throw new Error(Zo(2));_e=X.some(Fe=>DC(Fe,ae.props.value)),_e&&ne&&q.push(ae.props.children)}else _e=DC(X,ae.props.value),_e&&ne&&(ut=ae.props.children);return $.cloneElement(ae,{"aria-selected":_e?"true":"false",onClick:qe(ae),onKeyUp:Fe=>{Fe.key===" "&&Fe.preventDefault(),ae.props.onKeyUp&&ae.props.onKeyUp(Fe)},role:"option",selected:_e,value:void 0,"data-value":ae.props.value})});ne&&(D?q.length===0?Se=null:Se=q.reduce((ae,_e,Fe)=>(ae.push(_e),Fe{const{classes:e}=t;return e},zb={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>Cr(t)&&t!=="variant",slot:"Root"},vW=ie(mo,zb)(""),bW=ie(Fb,zb)(""),wW=ie(Ab,zb)(""),wo=$.forwardRef(function(e,r){const n=ot({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:a,classes:i={},className:l,defaultOpen:u=!1,displayEmpty:f=!1,IconComponent:h=W8,id:d,input:_,inputProps:g,label:b,labelId:w,MenuProps:S,multiple:k=!1,native:D=!1,onClose:C,onOpen:O,open:M,renderValue:T,SelectDisplayProps:P,variant:j="outlined",...F}=n,E=D?V7:gW,L=Oo(),G=Ga({props:n,muiFormControl:L,states:["variant","error"]}),B=G.variant||j,z={...n,variant:B,classes:i},H=yW(z),{root:K,...ee}=H,Y=_||{standard:R.jsx(vW,{ownerState:z}),outlined:R.jsx(bW,{label:b,ownerState:z}),filled:R.jsx(wW,{ownerState:z})}[B],X=ar(r,Ws(Y));return R.jsx($.Fragment,{children:$.cloneElement(Y,{inputComponent:E,inputProps:{children:a,error:G.error,IconComponent:h,variant:B,type:void 0,multiple:k,...D?{id:d}:{autoWidth:o,defaultOpen:u,displayEmpty:f,labelId:w,MenuProps:S,onClose:C,onOpen:O,open:M,renderValue:T,SelectDisplayProps:{id:d,...P}},...g,classes:g?kr(ee,g.classes):ee,..._?_.props.inputProps:{}},...(k&&D||f)&&B==="outlined"?{notched:!0}:{},ref:X,className:Ee(Y.props.className,l,H.root),...!_&&{variant:B},...F})})});wo.muiName="Select";function xW(t,e,r=(n,o)=>n===o){return t.length===e.length&&t.every((n,o)=>r(n,e[o]))}const SW=2;function Ti(t,e,r,n,o){return r===1?Math.min(t+e,o):Math.max(t-e,n)}function UM(t,e){return t-e}function MC(t,e){const{index:r}=t.reduce((n,o,a)=>{const i=Math.abs(e-o);return n===null||i({left:`${t}%`}),leap:t=>({width:`${t}%`})},"horizontal-reverse":{offset:t=>({right:`${t}%`}),leap:t=>({width:`${t}%`})},vertical:{offset:t=>({bottom:`${t}%`}),leap:t=>({height:`${t}%`})}},TW=t=>t;let op;function PC(){return op===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?op=CSS.supports("touch-action","none"):op=!0),op}function OW(t){const{"aria-labelledby":e,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:u=0,name:f,onChange:h,onChangeCommitted:d,orientation:_="horizontal",rootRef:g,scale:b=TW,step:w=1,shiftStep:S=10,tabIndex:k,value:D}=t,C=$.useRef(void 0),[O,M]=$.useState(-1),[T,P]=$.useState(-1),[j,F]=$.useState(!1),E=$.useRef(0),[L,G]=ru({controlled:D,default:r??u,name:"Slider"}),B=h&&((q,ne,ye)=>{const xe=q.nativeEvent||q,ke=new xe.constructor(xe.type,xe);Object.defineProperty(ke,"target",{writable:!0,value:{value:ne,name:f}}),h(ke,ne,ye)}),z=Array.isArray(L);let H=z?L.slice().sort(UM):[L];H=H.map(q=>q==null?u:Li(q,u,l));const K=i===!0&&w!==null?[...Array(Math.floor((l-u)/w)+1)].map((q,ne)=>({value:u+w*ne})):i||[],ee=K.map(q=>q.value),[Y,X]=$.useState(-1),re=$.useRef(null),I=ar(g,re),Q=q=>ne=>{var xe;const ye=Number(ne.currentTarget.getAttribute("data-index"));Ba(ne.target)&&X(ye),P(ye),(xe=q==null?void 0:q.onFocus)==null||xe.call(q,ne)},me=q=>ne=>{var ye;Ba(ne.target)||X(-1),P(-1),(ye=q==null?void 0:q.onBlur)==null||ye.call(q,ne)},pe=(q,ne)=>{const ye=Number(q.currentTarget.getAttribute("data-index")),xe=H[ye],ke=ee.indexOf(xe);let ve=ne;if(K&&w==null){const Ve=ee[ee.length-1];ve>Ve?ve=Ve:vene=>{var ye;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(ne.key)){ne.preventDefault();const xe=Number(ne.currentTarget.getAttribute("data-index")),ke=H[xe];let ve=null;if(w!=null){const Ve=ne.shiftKey?S:w;switch(ne.key){case"ArrowUp":ve=Ti(ke,Ve,1,u,l);break;case"ArrowRight":ve=Ti(ke,Ve,a?-1:1,u,l);break;case"ArrowDown":ve=Ti(ke,Ve,-1,u,l);break;case"ArrowLeft":ve=Ti(ke,Ve,a?1:-1,u,l);break;case"PageUp":ve=Ti(ke,S,1,u,l);break;case"PageDown":ve=Ti(ke,S,-1,u,l);break;case"Home":ve=u;break;case"End":ve=l;break}}else if(K){const Ve=ee[ee.length-1],$e=ee.indexOf(ke),Ye=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],lt=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ye.includes(ne.key)?$e===0?ve=ee[0]:ve=ee[$e-1]:lt.includes(ne.key)&&($e===ee.length-1?ve=Ve:ve=ee[$e+1])}ve!=null&&pe(ne,ve)}(ye=q==null?void 0:q.onKeyDown)==null||ye.call(q,ne)};yn(()=>{var q;n&&re.current.contains(document.activeElement)&&((q=document.activeElement)==null||q.blur())},[n]),n&&O!==-1&&M(-1),n&&Y!==-1&&X(-1);const Ce=q=>ne=>{var ye;(ye=q.onChange)==null||ye.call(q,ne),pe(ne,ne.target.valueAsNumber)},Re=$.useRef(void 0);let Te=_;a&&_==="horizontal"&&(Te+="-reverse");const Pe=({finger:q,move:ne=!1})=>{const{current:ye}=re,{width:xe,height:ke,bottom:ve,left:Ve}=ye.getBoundingClientRect();let $e;Te.startsWith("vertical")?$e=(ve-q.y)/ke:$e=(q.x-Ve)/xe,Te.includes("-reverse")&&($e=1-$e);let Ye;if(Ye=kW($e,u,l),w)Ye=$W(Ye,w,u);else{const ft=MC(ee,Ye);Ye=ee[ft]}Ye=Li(Ye,u,l);let lt=0;if(z){ne?lt=Re.current:lt=MC(H,Ye),o&&(Ye=Li(Ye,H[lt-1]||-1/0,H[lt+1]||1/0));const ft=Ye;Ye=NC({values:H,newValue:Ye,index:lt}),o&&ne||(lt=Ye.indexOf(ft),Re.current=lt)}return{newValue:Ye,activeIndex:lt}},Oe=Nr(q=>{const ne=tp(q,C);if(!ne)return;if(E.current+=1,q.type==="mousemove"&&q.buttons===0){ze(q);return}const{newValue:ye,activeIndex:xe}=Pe({finger:ne,move:!0});rp({sliderRef:re,activeIndex:xe,setActive:M}),G(ye),!j&&E.current>SW&&F(!0),B&&!np(ye,L)&&B(q,ye,xe)}),ze=Nr(q=>{const ne=tp(q,C);if(F(!1),!ne)return;const{newValue:ye}=Pe({finger:ne,move:!0});M(-1),q.type==="touchend"&&P(-1),d&&d(q,ye),C.current=void 0,Be()}),Me=Nr(q=>{if(n)return;PC()||q.preventDefault();const ne=q.changedTouches[0];ne!=null&&(C.current=ne.identifier);const ye=tp(q,C);if(ye!==!1){const{newValue:ke,activeIndex:ve}=Pe({finger:ye});rp({sliderRef:re,activeIndex:ve,setActive:M}),G(ke),B&&!np(ke,L)&&B(q,ke,ve)}E.current=0;const xe=cr(re.current);xe.addEventListener("touchmove",Oe,{passive:!0}),xe.addEventListener("touchend",ze,{passive:!0})}),Be=$.useCallback(()=>{const q=cr(re.current);q.removeEventListener("mousemove",Oe),q.removeEventListener("mouseup",ze),q.removeEventListener("touchmove",Oe),q.removeEventListener("touchend",ze)},[ze,Oe]);$.useEffect(()=>{const{current:q}=re;return q.addEventListener("touchstart",Me,{passive:PC()}),()=>{q.removeEventListener("touchstart",Me),Be()}},[Be,Me]),$.useEffect(()=>{n&&Be()},[n,Be]);const We=q=>ne=>{var ke;if((ke=q.onMouseDown)==null||ke.call(q,ne),n||ne.defaultPrevented||ne.button!==0)return;ne.preventDefault();const ye=tp(ne,C);if(ye!==!1){const{newValue:ve,activeIndex:Ve}=Pe({finger:ye});rp({sliderRef:re,activeIndex:Ve,setActive:M}),G(ve),B&&!np(ve,L)&&B(ne,ve,Ve)}E.current=0;const xe=cr(re.current);xe.addEventListener("mousemove",Oe,{passive:!0}),xe.addEventListener("mouseup",ze)},De=Vp(z?H[0]:u,u,l),pt=Vp(H[H.length-1],u,l)-De,ce=(q={})=>{const ne=xs(q),ye={onMouseDown:We(ne||{})},xe={...ne,...ye};return{...q,ref:I,...xe}},qe=q=>ne=>{var xe;(xe=q.onMouseOver)==null||xe.call(q,ne);const ye=Number(ne.currentTarget.getAttribute("data-index"));P(ye)},st=q=>ne=>{var ye;(ye=q.onMouseLeave)==null||ye.call(q,ne),P(-1)},rt=(q={})=>{const ne=xs(q),ye={onMouseOver:qe(ne||{}),onMouseLeave:st(ne||{})};return{...q,...ne,...ye}},Je=q=>({pointerEvents:O!==-1&&O!==q?"none":void 0});let Se;return _==="vertical"&&(Se=a?"vertical-rl":"vertical-lr"),{active:O,axis:Te,axisProps:EW,dragging:j,focusedThumbIndex:Y,getHiddenInputProps:(q={})=>{const ne=xs(q),ye={onChange:Ce(ne||{}),onFocus:Q(ne||{}),onBlur:me(ne||{}),onKeyDown:ge(ne||{})},xe={...ne,...ye};return{tabIndex:k,"aria-labelledby":e,"aria-orientation":_,"aria-valuemax":b(l),"aria-valuemin":b(u),name:f,type:"range",min:t.min,max:t.max,step:t.step===null&&t.marks?"any":t.step??void 0,disabled:n,...q,...xe,style:{...xF,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:Se}}},getRootProps:ce,getThumbProps:rt,marks:K,open:T,range:z,rootRef:I,trackLeap:pt,trackOffset:De,values:H,getThumbStyle:Je}}const DW=t=>!t||!ks(t);function MW(t){return tt("MuiSlider",t)}const Rn=Ze("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),NW=t=>{const{open:e}=t;return{offset:Ee(e&&Rn.valueLabelOpen),circle:Rn.valueLabelCircle,label:Rn.valueLabelLabel}};function PW(t){const{children:e,className:r,value:n}=t,o=NW(t);return e?$.cloneElement(e,{className:Ee(e.props.className)},R.jsxs($.Fragment,{children:[e.props.children,R.jsx("span",{className:Ee(o.offset,r),"aria-hidden":!0,children:R.jsx("span",{className:o.circle,children:R.jsx("span",{className:o.label,children:n})})})]})):null}function RC(t){return t}const RW=ie("span",{name:"MuiSlider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${he(r.color)}`],r.size!=="medium"&&e[`size${he(r.size)}`],r.marked&&e.marked,r.orientation==="vertical"&&e.vertical,r.track==="inverted"&&e.trackInverted,r.track===!1&&e.trackFalse]}})(Xe(({theme:t})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Rn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},[`&.${Rn.dragging}`]:{[`& .${Rn.thumb}, & .${Rn.track}`]:{transition:"none"}},variants:[...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),AW=ie("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(t,e)=>e.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),IW=ie("span",{name:"MuiSlider",slot:"Track",overridesResolver:(t,e)=>e.track})(Xe(({theme:t})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e,track:"inverted"},style:{...t.vars?{backgroundColor:t.vars.palette.Slider[`${e}Track`],borderColor:t.vars.palette.Slider[`${e}Track`]}:{backgroundColor:wc(t.palette[e].main,.62),borderColor:wc(t.palette[e].main,.62),...t.applyStyles("dark",{backgroundColor:bc(t.palette[e].main,.5)}),...t.applyStyles("dark",{borderColor:bc(t.palette[e].main,.5)})}}}))]}))),jW=ie("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.thumb,e[`thumbColor${he(r.color)}`],r.size!=="medium"&&e[`thumbSize${he(r.size)}`]]}})(Xe(({theme:t})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Rn.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(t.palette).filter(Jt()).map(([e])=>({props:{color:e},style:{[`&:hover, &.${Rn.focusVisible}`]:{...t.vars?{boxShadow:`0px 0px 0px 8px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Nt(t.palette[e].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${Rn.active}`]:{...t.vars?{boxShadow:`0px 0px 0px 14px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Nt(t.palette[e].main,.16)}`}}}}))]}))),LW=ie(PW,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(t,e)=>e.valueLabel})(Xe(({theme:t})=>({zIndex:1,whiteSpace:"nowrap",...t.typography.body2,fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Rn.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Rn.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),FW=ie("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:t=>Df(t)&&t!=="markActive",overridesResolver:(t,e)=>{const{markActive:r}=t;return[e.mark,r&&e.markActive]}})(Xe(({theme:t})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}))),zW=ie("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:t=>Df(t)&&t!=="markLabelActive",overridesResolver:(t,e)=>e.markLabel})(Xe(({theme:t})=>({...t.typography.body2,color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]}))),BW=t=>{const{disabled:e,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:u}=t,f={root:["root",e&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${he(l)}`,u&&`size${he(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",e&&"disabled",u&&`thumbSize${he(u)}`,l&&`thumbColor${he(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return nt(f,MW,i)},WW=({children:t})=>t,UW=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSlider"}),o=Us(),{"aria-label":a,"aria-valuetext":i,"aria-labelledby":l,component:u="span",components:f={},componentsProps:h={},color:d="primary",classes:_,className:g,disableSwap:b=!1,disabled:w=!1,getAriaLabel:S,getAriaValueText:k,marks:D=!1,max:C=100,min:O=0,name:M,onChange:T,onChangeCommitted:P,orientation:j="horizontal",shiftStep:F=10,size:E="medium",step:L=1,scale:G=RC,slotProps:B,slots:z,tabIndex:H,track:K="normal",value:ee,valueLabelDisplay:Y="off",valueLabelFormat:X=RC,...re}=n,I={...n,isRtl:o,max:C,min:O,classes:_,disabled:w,disableSwap:b,orientation:j,marks:D,color:d,size:E,step:L,shiftStep:F,scale:G,track:K,valueLabelDisplay:Y,valueLabelFormat:X},{axisProps:Q,getRootProps:me,getHiddenInputProps:pe,getThumbProps:ge,open:Ce,active:Re,axis:Te,focusedThumbIndex:Pe,range:Oe,dragging:ze,marks:Me,values:Be,trackOffset:We,trackLeap:De,getThumbStyle:pt}=OW({...I,rootRef:r});I.marked=Me.length>0&&Me.some(vt=>vt.label),I.dragging=ze,I.focusedThumbIndex=Pe;const ce=BW(I),qe=(z==null?void 0:z.root)??f.Root??RW,st=(z==null?void 0:z.rail)??f.Rail??AW,rt=(z==null?void 0:z.track)??f.Track??IW,Je=(z==null?void 0:z.thumb)??f.Thumb??jW,Se=(z==null?void 0:z.valueLabel)??f.ValueLabel??LW,ut=(z==null?void 0:z.mark)??f.Mark??FW,q=(z==null?void 0:z.markLabel)??f.MarkLabel??zW,ne=(z==null?void 0:z.input)??f.Input??"input",ye=(B==null?void 0:B.root)??h.root,xe=(B==null?void 0:B.rail)??h.rail,ke=(B==null?void 0:B.track)??h.track,ve=(B==null?void 0:B.thumb)??h.thumb,Ve=(B==null?void 0:B.valueLabel)??h.valueLabel,$e=(B==null?void 0:B.mark)??h.mark,Ye=(B==null?void 0:B.markLabel)??h.markLabel,lt=(B==null?void 0:B.input)??h.input,ft=Dr({elementType:qe,getSlotProps:me,externalSlotProps:ye,externalForwardedProps:re,additionalProps:{...DW(qe)&&{as:u}},ownerState:{...I,...ye==null?void 0:ye.ownerState},className:[ce.root,g]}),ae=Dr({elementType:st,externalSlotProps:xe,ownerState:I,className:ce.rail}),_e=Dr({elementType:rt,externalSlotProps:ke,additionalProps:{style:{...Q[Te].offset(We),...Q[Te].leap(De)}},ownerState:{...I,...ke==null?void 0:ke.ownerState},className:ce.track}),Fe=Dr({elementType:Je,getSlotProps:ge,externalSlotProps:ve,ownerState:{...I,...ve==null?void 0:ve.ownerState},className:ce.thumb}),Ke=Dr({elementType:Se,externalSlotProps:Ve,ownerState:{...I,...Ve==null?void 0:Ve.ownerState},className:ce.valueLabel}),_t=Dr({elementType:ut,externalSlotProps:$e,ownerState:I,className:ce.mark}),ur=Dr({elementType:q,externalSlotProps:Ye,ownerState:I,className:ce.markLabel}),yr=Dr({elementType:ne,getSlotProps:pe,externalSlotProps:lt,ownerState:I});return R.jsxs(qe,{...ft,children:[R.jsx(st,{...ae}),R.jsx(rt,{..._e}),Me.filter(vt=>vt.value>=O&&vt.value<=C).map((vt,zt)=>{const wn=Vp(vt.value,O,C),No=Q[Te].offset(wn);let Vr;return K===!1?Vr=Be.includes(vt.value):Vr=K==="normal"&&(Oe?vt.value>=Be[0]&&vt.value<=Be[Be.length-1]:vt.value<=Be[0])||K==="inverted"&&(Oe?vt.value<=Be[0]||vt.value>=Be[Be.length-1]:vt.value>=Be[0]),R.jsxs($.Fragment,{children:[R.jsx(ut,{"data-index":zt,..._t,...!ks(ut)&&{markActive:Vr},style:{...No,..._t.style},className:Ee(_t.className,Vr&&ce.markActive)}),vt.label!=null?R.jsx(q,{"aria-hidden":!0,"data-index":zt,...ur,...!ks(q)&&{markLabelActive:Vr},style:{...No,...ur.style},className:Ee(ce.markLabel,ur.className,Vr&&ce.markLabelActive),children:vt.label}):null]},zt)}),Be.map((vt,zt)=>{const wn=Vp(vt,O,C),No=Q[Te].offset(wn),Vr=Y==="off"?WW:Se;return R.jsx(Vr,{...!ks(Vr)&&{valueLabelFormat:X,valueLabelDisplay:Y,value:typeof X=="function"?X(G(vt),zt):X,index:zt,open:Ce===zt||Re===zt||Y==="on",disabled:w},...Ke,children:R.jsx(Je,{"data-index":zt,...Fe,className:Ee(ce.thumb,Fe.className,Re===zt&&ce.active,Pe===zt&&ce.focusVisible),style:{...No,...pt(zt),...Fe.style},children:R.jsx(ne,{"data-index":zt,"aria-label":S?S(zt):a,"aria-valuenow":G(vt),"aria-labelledby":l,"aria-valuetext":k?k(G(vt),zt):i,value:Be[zt],...yr})})},zt)})]})});function HW(t={}){const{autoHideDuration:e=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=t,i=vs();$.useEffect(()=>{if(!o)return;function k(D){D.defaultPrevented||D.key==="Escape"&&(n==null||n(D,"escapeKeyDown"))}return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[o,n]);const l=Nr((k,D)=>{n==null||n(k,D)}),u=Nr(k=>{!n||k==null||i.start(k,()=>{l(null,"timeout")})});$.useEffect(()=>(o&&u(e),i.clear),[o,e,u,i]);const f=k=>{n==null||n(k,"clickaway")},h=i.clear,d=$.useCallback(()=>{e!=null&&u(a??e*.5)},[e,a,u]),_=k=>D=>{const C=k.onBlur;C==null||C(D),d()},g=k=>D=>{const C=k.onFocus;C==null||C(D),h()},b=k=>D=>{const C=k.onMouseEnter;C==null||C(D),h()},w=k=>D=>{const C=k.onMouseLeave;C==null||C(D),d()};return $.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",d),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",h)}},[r,o,d,h]),{getRootProps:(k={})=>{const D={...xs(t),...xs(k)};return{role:"presentation",...k,...D,onBlur:_(D),onFocus:g(D),onMouseEnter:b(D),onMouseLeave:w(D)}},onClickAway:f}}function qW(t){return tt("MuiSnackbarContent",t)}Ze("MuiSnackbarContent",["root","message","action"]);const VW=t=>{const{classes:e}=t;return nt({root:["root"],action:["action"],message:["message"]},qW,e)},XW=ie(ku,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(t,e)=>e.root})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?.8:.98,r=zp(t.palette.background.default,e);return{...t.typography.body2,color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),GW=ie("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0"}),JW=ie("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),YW=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:l="alert",...u}=n,f=n,h=VW(f);return R.jsxs(XW,{role:l,square:!0,elevation:6,className:Ee(h.root,a),ownerState:f,ref:r,...u,children:[R.jsx(GW,{className:h.message,ownerState:f,children:i}),o?R.jsx(JW,{className:h.action,ownerState:f,children:o}):null]})});function KW(t){return tt("MuiSnackbar",t)}Ze("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ZW=t=>{const{classes:e,anchorOrigin:r}=t,n={root:["root",`anchorOrigin${he(r.vertical)}${he(r.horizontal)}`]};return nt(n,KW,e)},AC=ie("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`anchorOrigin${he(r.anchorOrigin.vertical)}${he(r.anchorOrigin.horizontal)}`]]}})(Xe(({theme:t})=>({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical==="top",style:{top:8,[t.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!=="top",style:{bottom:8,[t.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[t.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[t.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="center",style:{[t.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),QW=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSnackbar"}),o=ta(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:l,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:h,className:d,ClickAwayListenerProps:_,ContentProps:g,disableWindowBlurListener:b=!1,message:w,onBlur:S,onClose:k,onFocus:D,onMouseEnter:C,onMouseLeave:O,open:M,resumeHideDuration:T,TransitionComponent:P=iu,transitionDuration:j=a,TransitionProps:{onEnter:F,onExited:E,...L}={},...G}=n,B={...n,anchorOrigin:{vertical:l,horizontal:u},autoHideDuration:f,disableWindowBlurListener:b,TransitionComponent:P,transitionDuration:j},z=ZW(B),{getRootProps:H,onClickAway:K}=HW({...B}),[ee,Y]=$.useState(!0),X=Dr({elementType:AC,getSlotProps:H,externalForwardedProps:G,ownerState:B,additionalProps:{ref:r},className:[z.root,d]}),re=Q=>{Y(!0),E&&E(Q)},I=(Q,me)=>{Y(!1),F&&F(Q,me)};return!M&&ee?null:R.jsx(A9,{onClickAway:K,..._,children:R.jsx(AC,{...X,children:R.jsx(P,{appear:!0,in:M,timeout:j,direction:l==="top"?"down":"up",onEnter:I,onExited:re,...L,children:h||R.jsx(YW,{message:w,action:i,...g})})})})});function eU(t){return tt("MuiTooltip",t)}const or=Ze("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function tU(t){return Math.round(t*1e5)/1e5}const rU=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:a}=t,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${he(a.split("-")[0])}`],arrow:["arrow"]};return nt(i,eU,e)},nU=ie(OM,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Xe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${or.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${or.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${or.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${or.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${or.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${or.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${or.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${or.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),oU=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${he(r.placement.split("-")[0])}`]]}})(Xe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Nt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${or.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${or.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${or.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${or.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${tU(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${or.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${or.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${or.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${or.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),aU=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(Xe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Nt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ap=!1;const IC=new Of;let Cl={x:0,y:0};function sp(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const Op=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:i,components:l={},componentsProps:u={},describeChild:f=!1,disableFocusListener:h=!1,disableHoverListener:d=!1,disableInteractive:_=!1,disableTouchListener:g=!1,enterDelay:b=100,enterNextDelay:w=0,enterTouchDelay:S=700,followCursor:k=!1,id:D,leaveDelay:C=0,leaveTouchDelay:O=1500,onClose:M,onOpen:T,open:P,placement:j="bottom",PopperComponent:F,PopperProps:E={},slotProps:L={},slots:G={},title:B,TransitionComponent:z,TransitionProps:H,...K}=n,ee=$.isValidElement(a)?a:R.jsx("span",{children:a}),Y=ta(),X=Us(),[re,I]=$.useState(),[Q,me]=$.useState(null),pe=$.useRef(!1),ge=_||k,Ce=vs(),Re=vs(),Te=vs(),Pe=vs(),[Oe,ze]=ru({controlled:P,default:!1,name:"Tooltip",state:"open"});let Me=Oe;const Be=Tf(D),We=$.useRef(),De=Nr(()=>{We.current!==void 0&&(document.body.style.WebkitUserSelect=We.current,We.current=void 0),Pe.clear()});$.useEffect(()=>De,[De]);const pt=dt=>{IC.clear(),ap=!0,ze(!0),T&&!Me&&T(dt)},ce=Nr(dt=>{IC.start(800+C,()=>{ap=!1}),ze(!1),M&&Me&&M(dt),Ce.start(Y.transitions.duration.shortest,()=>{pe.current=!1})}),qe=dt=>{pe.current&&dt.type!=="touchstart"||(re&&re.removeAttribute("title"),Re.clear(),Te.clear(),b||ap&&w?Re.start(ap?w:b,()=>{pt(dt)}):pt(dt))},st=dt=>{Re.clear(),Te.start(C,()=>{ce(dt)})},[,rt]=$.useState(!1),Je=dt=>{Ba(dt.target)||(rt(!1),st(dt))},Se=dt=>{re||I(dt.currentTarget),Ba(dt.target)&&(rt(!0),qe(dt))},ut=dt=>{pe.current=!0;const Wr=ee.props;Wr.onTouchStart&&Wr.onTouchStart(dt)},q=dt=>{ut(dt),Te.clear(),Ce.clear(),De(),We.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Pe.start(S,()=>{document.body.style.WebkitUserSelect=We.current,qe(dt)})},ne=dt=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(dt),De(),Te.start(O,()=>{ce(dt)})};$.useEffect(()=>{if(!Me)return;function dt(Wr){Wr.key==="Escape"&&ce(Wr)}return document.addEventListener("keydown",dt),()=>{document.removeEventListener("keydown",dt)}},[ce,Me]);const ye=ar(Ws(ee),I,r);!B&&B!==0&&(Me=!1);const xe=$.useRef(),ke=dt=>{const Wr=ee.props;Wr.onMouseMove&&Wr.onMouseMove(dt),Cl={x:dt.clientX,y:dt.clientY},xe.current&&xe.current.update()},ve={},Ve=typeof B=="string";f?(ve.title=!Me&&Ve&&!d?B:null,ve["aria-describedby"]=Me?Be:null):(ve["aria-label"]=Ve?B:null,ve["aria-labelledby"]=Me&&!Ve?Be:null);const $e={...ve,...K,...ee.props,className:Ee(K.className,ee.props.className),onTouchStart:ut,ref:ye,...k?{onMouseMove:ke}:{}},Ye={};g||($e.onTouchStart=q,$e.onTouchEnd=ne),d||($e.onMouseOver=sp(qe,$e.onMouseOver),$e.onMouseLeave=sp(st,$e.onMouseLeave),ge||(Ye.onMouseOver=qe,Ye.onMouseLeave=st)),h||($e.onFocus=sp(Se,$e.onFocus),$e.onBlur=sp(Je,$e.onBlur),ge||(Ye.onFocus=Se,Ye.onBlur=Je));const lt={...n,isRtl:X,arrow:o,disableInteractive:ge,placement:j,PopperComponentProp:F,touch:pe.current},ft=typeof L.popper=="function"?L.popper(lt):L.popper,ae=$.useMemo(()=>{var Wr,Ac;let dt=[{name:"arrow",enabled:!!Q,options:{element:Q,padding:4}}];return(Wr=E.popperOptions)!=null&&Wr.modifiers&&(dt=dt.concat(E.popperOptions.modifiers)),(Ac=ft==null?void 0:ft.popperOptions)!=null&&Ac.modifiers&&(dt=dt.concat(ft.popperOptions.modifiers)),{...E.popperOptions,...ft==null?void 0:ft.popperOptions,modifiers:dt}},[Q,E.popperOptions,ft==null?void 0:ft.popperOptions]),_e=rU(lt),Fe=typeof L.transition=="function"?L.transition(lt):L.transition,Ke={slots:{popper:l.Popper,transition:l.Transition??z,tooltip:l.Tooltip,arrow:l.Arrow,...G},slotProps:{arrow:L.arrow??u.arrow,popper:{...E,...ft??u.popper},tooltip:L.tooltip??u.tooltip,transition:{...H,...Fe??u.transition}}},[_t,ur]=Sr("popper",{elementType:nU,externalForwardedProps:Ke,ownerState:lt,className:Ee(_e.popper,E==null?void 0:E.className)}),[yr,vt]=Sr("transition",{elementType:iu,externalForwardedProps:Ke,ownerState:lt}),[zt,wn]=Sr("tooltip",{elementType:oU,className:_e.tooltip,externalForwardedProps:Ke,ownerState:lt}),[No,Vr]=Sr("arrow",{elementType:aU,className:_e.arrow,externalForwardedProps:Ke,ownerState:lt,ref:me});return R.jsxs($.Fragment,{children:[$.cloneElement(ee,$e),R.jsx(_t,{as:F??OM,placement:j,anchorEl:k?{getBoundingClientRect:()=>({top:Cl.y,left:Cl.x,right:Cl.x,bottom:Cl.y,width:0,height:0})}:re,popperRef:xe,open:re?Me:!1,id:Be,transition:!0,...Ye,...ur,popperOptions:ae,children:({TransitionProps:dt})=>R.jsx(yr,{timeout:Y.transitions.duration.shorter,...dt,...vt,children:R.jsxs(zt,{...wn,children:[B,o?R.jsx(No,{...Vr}):null]})})})]})}),sU=YF({createStyledComponent:ie("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>ot({props:t,name:"MuiStack"})});function iU(t){return tt("MuiTab",t)}const Tn=Ze("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),cU=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:l,disabled:u}=t,f={root:["root",a&&i&&"labelIcon",`textColor${he(r)}`,n&&"fullWidth",o&&"wrapped",l&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return nt(f,iU,e)},lU=ie(Va,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${he(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${Tn.iconWrapper}`]:e.iconWrapper},{[`& .${Tn.icon}`]:e.icon}]}})(Xe(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${Tn.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${Tn.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${Tn.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${Tn.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Tn.selected}`]:{opacity:1},[`&.${Tn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Tn.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Tn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Tn.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Tn.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),Oi=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:l,icon:u,iconPosition:f="top",indicator:h,label:d,onChange:_,onClick:g,onFocus:b,selected:w,selectionFollowsFocus:S,textColor:k="inherit",value:D,wrapped:C=!1,...O}=n,M={...n,disabled:a,disableFocusRipple:i,selected:w,icon:!!u,iconPosition:f,label:!!d,fullWidth:l,textColor:k,wrapped:C},T=cU(M),P=u&&d&&$.isValidElement(u)?$.cloneElement(u,{className:Ee(T.icon,u.props.className)}):u,j=E=>{!w&&_&&_(E,D),g&&g(E)},F=E=>{S&&!w&&_&&_(E,D),b&&b(E)};return R.jsxs(lU,{focusRipple:!i,className:Ee(T.root,o),ref:r,role:"tab","aria-selected":w,disabled:a,onClick:j,onFocus:F,ownerState:M,tabIndex:w?0:-1,...O,children:[f==="top"||f==="start"?R.jsxs($.Fragment,{children:[P,d]}):R.jsxs($.Fragment,{children:[d,P]}),h]})});function uU(t){return tt("MuiToolbar",t)}Ze("MuiToolbar",["root","gutters","regular","dense"]);const dU=t=>{const{classes:e,disableGutters:r,variant:n}=t;return nt({root:["root",!r&&"gutters",n]},uU,e)},pU=ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Xe(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),Bb=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:l="regular",...u}=n,f={...n,component:a,disableGutters:i,variant:l},h=dU(f);return R.jsx(pU,{as:a,className:Ee(h.root,o),ref:r,ownerState:f,...u})}),fU=Ge(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),hU=Ge(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function mU(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function _U(t,e,r,n={},o=()=>{}){const{ease:a=mU,duration:i=300}=n;let l=null;const u=e[t];let f=!1;const h=()=>{f=!0},d=_=>{if(f){o(new Error("Animation cancelled"));return}l===null&&(l=_);const g=Math.min(1,(_-l)/i);if(e[t]=a(g)*(r-u)+u,g>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return u===r?(o(new Error("Element already at target position")),h):(requestAnimationFrame(d),h)}const gU={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function yU(t){const{onChange:e,...r}=t,n=$.useRef(),o=$.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return yn(()=>{const i=Ef(()=>{const u=n.current;a(),u!==n.current&&e(n.current)}),l=eo(o.current);return l.addEventListener("resize",i),()=>{i.clear(),l.removeEventListener("resize",i)}},[e]),$.useEffect(()=>{a(),e(n.current)},[e]),R.jsx("div",{style:gU,...r,ref:o})}function vU(t){return tt("MuiTabScrollButton",t)}const bU=Ze("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),wU=t=>{const{classes:e,orientation:r,disabled:n}=t;return nt({root:["root",r,n&&"disabled"]},vU,e)},xU=ie(Va,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${bU.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),SU=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:i={},direction:l,orientation:u,disabled:f,...h}=n,d=Us(),_={isRtl:d,...n},g=wU(_),b=a.StartScrollButtonIcon??fU,w=a.EndScrollButtonIcon??hU,S=Dr({elementType:b,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:_}),k=Dr({elementType:w,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:_});return R.jsx(xU,{component:"div",className:Ee(g.root,o),ref:r,role:null,ownerState:_,tabIndex:null,...h,style:{...h.style,...u==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:l==="left"?R.jsx(b,{...S}):R.jsx(w,{...k})})});function kU(t){return tt("MuiTabs",t)}const f_=Ze("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),jC=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,LC=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ip=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(t,o);else{o.focus();return}}},CU=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:l,classes:u}=t;return nt({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},kU,u)},$U=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${f_.scrollButtons}`]:e.scrollButtons},{[`& .${f_.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Xe(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${f_.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),EU=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),TU=ie("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),OU=ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(Xe(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),DU=ie(yU)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),FC={},MU=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTabs"}),o=ta(),a=Us(),{"aria-label":i,"aria-labelledby":l,action:u,centered:f=!1,children:h,className:d,component:_="div",allowScrollButtonsMobile:g=!1,indicatorColor:b="primary",onChange:w,orientation:S="horizontal",ScrollButtonComponent:k=SU,scrollButtons:D="auto",selectionFollowsFocus:C,slots:O={},slotProps:M={},TabIndicatorProps:T={},TabScrollButtonProps:P={},textColor:j="primary",value:F,variant:E="standard",visibleScrollbar:L=!1,...G}=n,B=E==="scrollable",z=S==="vertical",H=z?"scrollTop":"scrollLeft",K=z?"top":"left",ee=z?"bottom":"right",Y=z?"clientHeight":"clientWidth",X=z?"height":"width",re={...n,component:_,allowScrollButtonsMobile:g,indicatorColor:b,orientation:S,vertical:z,scrollButtons:D,textColor:j,variant:E,visibleScrollbar:L,fixed:!B,hideScrollbar:B&&!L,scrollableX:B&&!z,scrollableY:B&&z,centered:f&&!B,scrollButtonsHideMobile:!g},I=CU(re),Q=Dr({elementType:O.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:re}),me=Dr({elementType:O.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:re}),[pe,ge]=$.useState(!1),[Ce,Re]=$.useState(FC),[Te,Pe]=$.useState(!1),[Oe,ze]=$.useState(!1),[Me,Be]=$.useState(!1),[We,De]=$.useState({overflow:"hidden",scrollbarWidth:0}),pt=new Map,ce=$.useRef(null),qe=$.useRef(null),st=()=>{const ae=ce.current;let _e;if(ae){const Ke=ae.getBoundingClientRect();_e={clientWidth:ae.clientWidth,scrollLeft:ae.scrollLeft,scrollTop:ae.scrollTop,scrollWidth:ae.scrollWidth,top:Ke.top,bottom:Ke.bottom,left:Ke.left,right:Ke.right}}let Fe;if(ae&&F!==!1){const Ke=qe.current.children;if(Ke.length>0){const _t=Ke[pt.get(F)];Fe=_t?_t.getBoundingClientRect():null}}return{tabsMeta:_e,tabMeta:Fe}},rt=Nr(()=>{const{tabsMeta:ae,tabMeta:_e}=st();let Fe=0,Ke;z?(Ke="top",_e&&ae&&(Fe=_e.top-ae.top+ae.scrollTop)):(Ke=a?"right":"left",_e&&ae&&(Fe=(a?-1:1)*(_e[Ke]-ae[Ke]+ae.scrollLeft)));const _t={[Ke]:Fe,[X]:_e?_e[X]:0};if(typeof Ce[Ke]!="number"||typeof Ce[X]!="number")Re(_t);else{const ur=Math.abs(Ce[Ke]-_t[Ke]),yr=Math.abs(Ce[X]-_t[X]);(ur>=1||yr>=1)&&Re(_t)}}),Je=(ae,{animation:_e=!0}={})=>{_e?_U(H,ce.current,ae,{duration:o.transitions.duration.standard}):ce.current[H]=ae},Se=ae=>{let _e=ce.current[H];z?_e+=ae:_e+=ae*(a?-1:1),Je(_e)},ut=()=>{const ae=ce.current[Y];let _e=0;const Fe=Array.from(qe.current.children);for(let Ke=0;Keae){Ke===0&&(_e=ae);break}_e+=_t[Y]}return _e},q=()=>{Se(-1*ut())},ne=()=>{Se(ut())},ye=$.useCallback(ae=>{De({overflow:null,scrollbarWidth:ae})},[]),xe=()=>{const ae={};ae.scrollbarSizeListener=B?R.jsx(DU,{onChange:ye,className:Ee(I.scrollableX,I.hideScrollbar)}):null;const Fe=B&&(D==="auto"&&(Te||Oe)||D===!0);return ae.scrollButtonStart=Fe?R.jsx(k,{slots:{StartScrollButtonIcon:O.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Q},orientation:S,direction:a?"right":"left",onClick:q,disabled:!Te,...P,className:Ee(I.scrollButtons,P.className)}):null,ae.scrollButtonEnd=Fe?R.jsx(k,{slots:{EndScrollButtonIcon:O.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:me},orientation:S,direction:a?"left":"right",onClick:ne,disabled:!Oe,...P,className:Ee(I.scrollButtons,P.className)}):null,ae},ke=Nr(ae=>{const{tabsMeta:_e,tabMeta:Fe}=st();if(!(!Fe||!_e)){if(Fe[K]<_e[K]){const Ke=_e[H]+(Fe[K]-_e[K]);Je(Ke,{animation:ae})}else if(Fe[ee]>_e[ee]){const Ke=_e[H]+(Fe[ee]-_e[ee]);Je(Ke,{animation:ae})}}}),ve=Nr(()=>{B&&D!==!1&&Be(!Me)});$.useEffect(()=>{const ae=Ef(()=>{ce.current&&rt()});let _e;const Fe=ur=>{ur.forEach(yr=>{yr.removedNodes.forEach(vt=>{_e==null||_e.unobserve(vt)}),yr.addedNodes.forEach(vt=>{_e==null||_e.observe(vt)})}),ae(),ve()},Ke=eo(ce.current);Ke.addEventListener("resize",ae);let _t;return typeof ResizeObserver<"u"&&(_e=new ResizeObserver(ae),Array.from(qe.current.children).forEach(ur=>{_e.observe(ur)})),typeof MutationObserver<"u"&&(_t=new MutationObserver(Fe),_t.observe(qe.current,{childList:!0})),()=>{ae.clear(),Ke.removeEventListener("resize",ae),_t==null||_t.disconnect(),_e==null||_e.disconnect()}},[rt,ve]),$.useEffect(()=>{const ae=Array.from(qe.current.children),_e=ae.length;if(typeof IntersectionObserver<"u"&&_e>0&&B&&D!==!1){const Fe=ae[0],Ke=ae[_e-1],_t={root:ce.current,threshold:.99},ur=wn=>{Pe(!wn[0].isIntersecting)},yr=new IntersectionObserver(ur,_t);yr.observe(Fe);const vt=wn=>{ze(!wn[0].isIntersecting)},zt=new IntersectionObserver(vt,_t);return zt.observe(Ke),()=>{yr.disconnect(),zt.disconnect()}}},[B,D,Me,h==null?void 0:h.length]),$.useEffect(()=>{ge(!0)},[]),$.useEffect(()=>{rt()}),$.useEffect(()=>{ke(FC!==Ce)},[ke,Ce]),$.useImperativeHandle(u,()=>({updateIndicator:rt,updateScrollButtons:ve}),[rt,ve]);const Ve=R.jsx(OU,{...T,className:Ee(I.indicator,T.className),ownerState:re,style:{...Ce,...T.style}});let $e=0;const Ye=$.Children.map(h,ae=>{if(!$.isValidElement(ae))return null;const _e=ae.props.value===void 0?$e:ae.props.value;pt.set(_e,$e);const Fe=_e===F;return $e+=1,$.cloneElement(ae,{fullWidth:E==="fullWidth",indicator:Fe&&!pe&&Ve,selected:Fe,selectionFollowsFocus:C,onChange:w,textColor:j,value:_e,...$e===1&&F===!1&&!ae.props.tabIndex?{tabIndex:0}:{}})}),lt=ae=>{const _e=qe.current,Fe=cr(_e).activeElement;if(Fe.getAttribute("role")!=="tab")return;let _t=S==="horizontal"?"ArrowLeft":"ArrowUp",ur=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&a&&(_t="ArrowRight",ur="ArrowLeft"),ae.key){case _t:ae.preventDefault(),ip(_e,Fe,LC);break;case ur:ae.preventDefault(),ip(_e,Fe,jC);break;case"Home":ae.preventDefault(),ip(_e,null,jC);break;case"End":ae.preventDefault(),ip(_e,null,LC);break}},ft=xe();return R.jsxs($U,{className:Ee(I.root,d),ownerState:re,ref:r,as:_,...G,children:[ft.scrollButtonStart,ft.scrollbarSizeListener,R.jsxs(EU,{className:I.scroller,ownerState:re,style:{overflow:We.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:L?void 0:-We.scrollbarWidth},ref:ce,children:[R.jsx(TU,{"aria-label":i,"aria-labelledby":l,"aria-orientation":S==="vertical"?"vertical":null,className:I.flexContainer,ownerState:re,onKeyDown:lt,ref:qe,role:"tablist",children:Ye}),pe&&Ve]}),ft.scrollButtonEnd]})});function NU(t){return tt("MuiTextField",t)}Ze("MuiTextField",["root"]);const PU={standard:mo,filled:Ab,outlined:Fb},RU=t=>{const{classes:e}=t;return nt({root:["root"]},NU,e)},AU=ie(zi,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),zr=$.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:l,color:u="primary",defaultValue:f,disabled:h=!1,error:d=!1,FormHelperTextProps:_,fullWidth:g=!1,helperText:b,id:w,InputLabelProps:S,inputProps:k,InputProps:D,inputRef:C,label:O,maxRows:M,minRows:T,multiline:P=!1,name:j,onBlur:F,onChange:E,onFocus:L,placeholder:G,required:B=!1,rows:z,select:H=!1,SelectProps:K,slots:ee={},slotProps:Y={},type:X,value:re,variant:I="outlined",...Q}=n,me={...n,autoFocus:a,color:u,disabled:h,error:d,fullWidth:g,multiline:P,required:B,select:H,variant:I},pe=RU(me),ge=Tf(w),Ce=b&&ge?`${ge}-helper-text`:void 0,Re=O&&ge?`${ge}-label`:void 0,Te=PU[I],Pe={slots:ee,slotProps:{input:D,inputLabel:S,htmlInput:k,formHelperText:_,select:K,...Y}},Oe={},ze=Pe.slotProps.inputLabel;I==="outlined"&&(ze&&typeof ze.shrink<"u"&&(Oe.notched=ze.shrink),Oe.label=O),H&&((!K||!K.native)&&(Oe.id=void 0),Oe["aria-describedby"]=void 0);const[Me,Be]=Sr("input",{elementType:Te,externalForwardedProps:Pe,additionalProps:Oe,ownerState:me}),[We,De]=Sr("inputLabel",{elementType:Tp,externalForwardedProps:Pe,ownerState:me}),[pt,ce]=Sr("htmlInput",{elementType:"input",externalForwardedProps:Pe,ownerState:me}),[qe,st]=Sr("formHelperText",{elementType:FB,externalForwardedProps:Pe,ownerState:me}),[rt,Je]=Sr("select",{elementType:wo,externalForwardedProps:Pe,ownerState:me}),Se=R.jsx(Me,{"aria-describedby":Ce,autoComplete:o,autoFocus:a,defaultValue:f,fullWidth:g,multiline:P,name:j,rows:z,maxRows:M,minRows:T,type:X,value:re,id:ge,inputRef:C,onBlur:F,onChange:E,onFocus:L,placeholder:G,inputProps:ce,slots:{input:ee.htmlInput?pt:void 0},...Be});return R.jsxs(AU,{className:Ee(pe.root,l),disabled:h,error:d,fullWidth:g,ref:r,required:B,color:u,variant:I,ownerState:me,...Q,children:[O!=null&&O!==""&&R.jsx(We,{htmlFor:ge,id:Re,...De,children:O}),H?R.jsx(rt,{"aria-describedby":Ce,id:ge,labelId:Re,value:re,input:Se,...Je,children:i}):Se,b&&R.jsx(qe,{id:Ce,...st,children:b})]})});var HM={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},zC=y.createContext&&y.createContext(HM),IU=["attr","size","title"];function jU(t,e){if(t==null)return{};var r=LU(t,e),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function LU(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Xp(){return Xp=Object.assign?Object.assign.bind():function(t){for(var e=1;ey.createElement(e.tag,Gp({key:r},e.attr),qM(e.child)))}function WU(t){return e=>y.createElement(UU,Xp({attr:Gp({},t.attr)},e),qM(t.child))}function UU(t){var e=r=>{var{attr:n,size:o,title:a}=t,i=jU(t,IU),l=o||r.size||"1em",u;return r.className&&(u=r.className),t.className&&(u=(u?u+" ":"")+t.className),y.createElement("svg",Xp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:u,style:Gp(Gp({color:t.color||r.color},r.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&y.createElement("title",null,a),t.children)};return zC!==void 0?y.createElement(zC.Consumer,null,r=>e(r)):e(HM)}function HU(t){return WU({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"},child:[]}]})(t)}const qU=Ge(R.jsx("path",{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"}),"AddPhotoAlternate"),VU=Ge(R.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),XU=Ge(R.jsx("path",{d:"M2 12c0 5.52 4.48 10 10 10s10-4.48 10-10S17.52 2 12 2 2 6.48 2 12m10-1h4v2h-4v3l-4-4 4-4z"}),"ArrowCircleLeft"),GU=Ge(R.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"),JU=Ge(R.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"),YU=Ge(R.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"),KU=Ge(R.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4"),ZU=Ge(R.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 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6"}),"Brightness5"),Wb=Ge(R.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"),QU=Ge(R.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7"),eH=Ge(R.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"),jf=Ge(R.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"),Hs=Ge(R.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Rs=Ge(R.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"),Ub=Ge(R.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"),VM=Ge(R.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"),tH=Ge(R.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"),Dp=Ge(R.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"),XM=Ge(R.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"),rH=Ge(R.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"),nH=Ge(R.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"),oH=Ge(R.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"),aH=Ge(R.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"),sH=Ge(R.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"),iH=Ge(R.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"),WC=Ge(R.jsx("path",{d:"m21.9 21.9-8.49-8.49-9.82-9.82L2.1 2.1.69 3.51 3 5.83V19c0 1.1.9 2 2 2h13.17l2.31 2.31zM5 18l3.5-4.5 2.5 3.01L12.17 15l3 3zm16 .17L5.83 3H19c1.1 0 2 .9 2 2z"}),"ImageNotSupported"),GM=Ge(R.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"),JM=Ge(R.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),cH=Ge(R.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),lH=Ge(R.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"),uH=Ge(R.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"),dH=Ge(R.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"),UC=Ge(R.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"}),"Photo"),HC=Ge(R.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),YM=Ge(R.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"),pH=Ge(R.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"),S0=Ge(R.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"),fH=Ge(R.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"),hH=Ge(R.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"),mH=Ge(R.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"),_H=Ge(R.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"),gH=Ge(R.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),yH=Ge(R.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),vH=Ge(R.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"),bH=Ge(R.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"),h_=11/23/100;function qC(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substr(1,2),16),e.g=parseInt(t.substr(3,2),16),e.b=parseInt(t.substr(5,2),16);else if(t.length===4){const r=t.substr(1,1),n=t.substr(2,1),o=t.substr(3,1);e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function wH(t){return`#${Math.round(t.r).toString(16)}${Math.round(t.g).toString(16)}${Math.round(t.b).toString(16)}`}function xH(t,e,r){const n=qC(t),o=qC(e);return n.r+=o.r*(.05+h_*(r-1)),n.g+=o.g*(.05+h_*(r-1)),n.b+=o.b*(.05+h_*(r-1)),wH(n)}function VC(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:xH(t,e,n)};return r}function XC(t,e){var i,l,u,f,h,d,_,g,b,w,S;let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[200],"&:hover":{color:Or[100]}}},MuiPaper:VC("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[200],"&:hover":{color:Or[100]}}},MuiPaper:VC("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="DX"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#a9a9a9"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#F5F5F7"},secondary:{main:"#a9a9a9"},expert:"#BD1B24",text:{primary:"#007AFE",secondary:"#007AFE",disabled:"#007AFEAA"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Or[400],"&:hover":{color:Or[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:(l=(i=r.palette)==null?void 0:i.primary)==null?void 0:l.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:s0[300],dark:s0[400]});const o=ou(r),a=o.palette;return ou(o,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:(u=a.grey)==null?void 0:u[300],color:a.getContrastText&&((f=a.grey)!=null&&f[300])?a.getContrastText(a.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:(h=a.text)==null?void 0:h.primary,borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${(d=a.action)==null?void 0:d.disabledBackground}`},"&:hover":{borderColor:a.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Nt(((_=a.text)==null?void 0:_.primary)||"",((g=a.action)==null?void 0:g.hoverOpacity)||.04)}}},{props:{variant:"text",color:"grey"},style:{color:(b=a.text)==null?void 0:b.primary,"&:hover":{backgroundColor:Nt(((w=a.text)==null?void 0:w.primary)||"",((S=a.action)==null?void 0:S.hoverOpacity)||.04)}}}]}}})}function SH(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function kH(t){return(t==null?void 0:t.rows.map(e=>e.value).filter(e=>!!e))??[]}function GC(t){return t!=null&&t.startsWith("system.host.")||(t=`system.host.${t}`),t}function JC(t){return new Promise(e=>{setTimeout(e,t)})}function cp(t){t=(t||"").toString();const e=t[0]==="*",r=t[t.length-1]==="*";return t=t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(e?"":"^")+t+(r?"":"$")}var _o;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(_o||(_o={}));var Ra;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(Ra||(Ra={}));Ra.PERMISSION_ERROR;Ra.NOT_CONNECTED;const CH=["material","echarts","vis"];class Jo{constructor(e){we(this,"props");we(this,"ignoreState","");we(this,"connected",!1);we(this,"subscribed",!1);we(this,"firstConnect",!0);we(this,"waitForRestart",!1);we(this,"loaded",!1);we(this,"simStates",{});we(this,"statesSubscribes",{});we(this,"filesSubscribes",{});we(this,"objectsSubscribes",{});we(this,"objects",{});we(this,"states",{});we(this,"acl",null);we(this,"isSecure",!1);we(this,"onReadyDone",!1);we(this,"onConnectionHandlers",[]);we(this,"onLogHandlers",[]);we(this,"onCmdStdoutHandler");we(this,"onCmdStderrHandler");we(this,"onCmdExitHandler");we(this,"_socket");we(this,"_waitForSocketPromise");we(this,"_waitForFirstConnectionPromise",SH());we(this,"_instanceSubscriptions",{});we(this,"_promises",{});we(this,"_authTimer");we(this,"_systemConfig");we(this,"systemLang","en");this.props=this.applyDefaultProps(e),this.waitForSocketLib().then(()=>this.startSocket()).catch(r=>{alert(`Socket connection could not be initialized: ${r}`)})}applyDefaultProps(e){return{...e,protocol:e.protocol||window.location.protocol,host:e.host||window.location.hostname,port:e.port||(window.location.port==="3000"?8081:window.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}}onError(e){(this.props.onError??console.error)(e)}get systemConfig(){return this._systemConfig}static isWeb(){return window.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(e,r)=>{if(typeof window.io>"u"&&typeof window.iob>"u")if(typeof window.registerSocketOnLoad=="function")window.registerSocketOnLoad(()=>e());else{for(let n=1;n<=30;n++){if(window.io||window.iob)return e();await JC(100)}r(new Error("Socket library could not be loaded!"))}else e()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let e=this.props.host,r=this.props.port,n=(this.props.protocol||window.location.protocol).replace(":",""),o=window.location.pathname;if(window.location.hostname==="iobroker.net"||window.location.hostname==="iobroker.pro")o="";else{if(window.socketUrl){const l=new URL(window.socketUrl);e=l.hostname,r=l.port,n=l.protocol.replace(":","")}const i=o.lastIndexOf("/");if(i!==-1&&(o=o.substring(0,i+1)),Jo.isWeb()){const l=o.split("/");l.length>2&&(l.pop(),l.pop(),CH.includes(l[l.length-1])&&l.pop(),o=l.join("/"),o.endsWith("/")||(o+="/"))}}const a=r?`${n}://${e}:${r}`:`${n}://${e}`;return this._socket=(window.io||window.iob).connect(a,{path:o.endsWith("/")?`${o}socket.io`:`${o}/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",i=>{this.onReadyDone=!1,i!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(l=>{const[u,f,h]=l.version.split(".");parseInt(u,10)*1e4+parseInt(f,10)*100+parseInt(h,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(_,g)=>this.onPreConnect(_,g))}).catch(l=>this.onError({message:l.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(l,u)=>{this.onPreConnect(l,u)})}),this._socket.on("reconnect",()=>{var i,l;this.onReadyDone=!1,(l=(i=this.props).onProgress)==null||l.call(i,_o.READY),this.connected=!0,this.waitForRestart?window.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(u=>u(!0)))}),this._socket.on("disconnect",()=>{var i,l;this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,(l=(i=this.props).onProgress)==null||l.call(i,_o.CONNECTING),this.onConnectionHandlers.forEach(u=>u(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",i=>{var l,u;(u=(l=this.props).onLog)==null||u.call(l,i),this.onLogHandlers.forEach(f=>f(i))}),this._socket.on("error",i=>{let l;i==null?l="":typeof i.toString=="function"?l=i.toString():(l=JSON.stringify(i),console.error(`Received strange error: ${l}`)),l.includes("User not authorized")?this.authenticate():l.includes("websocket error")?(console.error(`Socket Error => reload: ${i}`),window.location.reload()):console.error(`Socket Error: ${i}`)}),this._socket.on("connect_error",i=>console.error(`Connect error: ${i}`)),this._socket.on("permissionError",i=>this.onError({message:"no permission",operation:i.operation,type:i.type,id:i.id||""})),this._socket.on("objectChange",(i,l)=>{setTimeout(()=>this.objectChange(i,l),0)}),this._socket.on("stateChange",(i,l)=>{setTimeout(()=>this.stateChange(i,l),0)}),this._socket.on("im",(i,l,u)=>{setTimeout(()=>this.instanceMessage(i,l,u),0)}),this._socket.on("fileChange",(i,l,u)=>{setTimeout(()=>this.fileChange(i,l,u),0)}),this._socket.on("cmdStdout",(i,l)=>{var u;(u=this.onCmdStdoutHandler)==null||u.call(this,i,l)}),this._socket.on("cmdStderr",(i,l)=>{var u;(u=this.onCmdStderrHandler)==null||u.call(this,i,l)}),this._socket.on("cmdExit",(i,l)=>{var u;(u=this.onCmdExitHandler)==null||u.call(this,i,l)}),Promise.resolve()}onPreConnect(e,r){var n,o;this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=r,this.waitForRestart?window.location.reload():(this.firstConnect?this.loadData().catch(a=>console.error(`Cannot load data: ${a}`)):(o=(n=this.props).onProgress)==null||o.call(n,_o.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(a=>a(!0))),this._waitForFirstConnectionPromise.resolve()}static isCloud(){return window.location.hostname.includes("amazonaws.com")||window.location.hostname.includes("iobroker.in")?!0:typeof window.socketUrl>"u"?!1:window.socketUrl.includes("iobroker.in")||window.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getUserPermissions",(n,o)=>{n?r(n):e(o)})}})}async loadData(){if(this.loaded)return;const e=10;for(let r=1;r<=e;r++){if(this.doLoadData().catch(n=>console.error(`Cannot load data: ${n}`)),this.loaded)return;await JC(Jo.isCloud()?5e3:1e3)}}async doLoadData(){var e,r,n,o,a,i,l,u,f;if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(h){this.onError(`Cannot read user permissions: ${h}`);return}try{this.props.admin5only&&!Jo.isWeb()&&(!window.vendorPrefix||window.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(h){this.onError(`Cannot read system config: ${h}`);return}this._systemConfig&&(this.systemLang=(e=this._systemConfig.common)==null?void 0:e.language,this.systemLang||(this.systemLang=window.navigator.userLanguage||window.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)),(n=(r=this.props).onLanguage)==null||n.call(r,this.systemLang),this.loaded=!0,(a=(o=this.props).onProgress)==null||a.call(o,_o.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),(l=(i=this.props).onProgress)==null||l.call(i,_o.READY),this.onReadyDone||(this.onReadyDone=!0,(f=(u=this.props).onReady)==null||f.call(u,this.objects))}}authenticate(){window.location.search.includes("&href=")?window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}${window.location.search}${window.location.hash}`:window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}?login&href=${window.location.search}${window.location.hash}`}async subscribeState(...e){let r,n,o;e.length===3?[r,n,o]=e:([r,o]=e,n=!1);let a;if(Array.isArray(r)?a=r:a=[r],typeof o!="function")throw new Error("The state change handler must be a function!");const i=[];for(let l=0;ll.includes("*"))){let l;for(let u=0;uconsole.error(`Cannot call state change handler: ${_}`))}}}else try{const l=await(Jo.isWeb()?this.getStates(a):this.getForeignStates(a));if(l)for(const[u,f]of Object.entries(l)){const h=o(u,f);h instanceof Promise&&h.catch(d=>console.error(`Cannot call state change handler: ${d}`))}}catch(l){console.error(`Cannot getState "${a.join(", ")}": ${l.message}`);return}}async subscribeStateAsync(e,r){return this.subscribeState(e,r)}unsubscribeState(e,r){var a;let n;Array.isArray(e)?n=e:n=[e];const o=[];for(let i=0;i{try{const h=f(e,r,n);h instanceof Promise&&h.catch(d=>console.error(`Cannot call object change handler: ${d}`))}catch(h){console.error(`Error by callback of objectChange: ${h}`)}});if(o){const l=(i=(a=this.props).onObjectChange)==null?void 0:i.call(a,e,r);l instanceof Promise&&l.catch(u=>console.error(`Cannot call object change handler: ${u}`))}}stateChange(e,r){for(const n of Object.values(this.statesSubscribes))if(n.reg.test(e))for(const o of n.cbs)try{const a=o(e,r??null);a instanceof Promise&&a.catch(i=>console.error(`Cannot call state change handler: ${i}`))}catch(a){console.error(`Error by callback of stateChanged: ${a}`)}}instanceMessage(e,r,n){var o;(o=this._instanceSubscriptions[r])==null||o.forEach(a=>{if(a.messageType===e){const i=a.callback(n,r,e);i instanceof Promise&&i.catch(l=>console.error(`Cannot call instance message handler: ${l}`))}})}fileChange(e,r,n){for(const o of Object.values(this.filesSubscribes))if(o.regId.test(e)&&o.regFilePattern.test(r))for(const a of o.cbs)try{a(e,r,n)}catch(i){console.error(`Error by callback of fileChange: ${i}`)}}async subscribeFiles(e,r,n){if(typeof n!="function")throw new Error("The state change handler must be a function!");let o;Array.isArray(r)?o=r:o=[r];const a=[];for(let i=0;i{const d={elapsed:!1,clearTimeout:()=>{}};let _;n!==!1&&(_=setTimeout(()=>{d.elapsed=!0,o==null||o(),e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(Ra.TIMEOUT))},n??this.props.cmdTimeout),d.clearTimeout=()=>{clearTimeout(_)});try{await l(f,h,d)}catch(g){e&&this._promises[e]instanceof Promise&&delete this._promises[e],h(new Error(g.toString()))}});return e&&(this._promises[e]=u),u}resetCache(e,r){r?Object.keys(this._promises).filter(n=>n.startsWith(e)).forEach(n=>{delete this._promises[n]}):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getStates",e,(o,a)=>{this.states=a??{},o?n(o):r(this.states)})}})}getState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r(this.simStates[e]||{val:null,ack:!0});return}this._socket.emit("getState",e,(o,a)=>{o?n(o):r(a)})}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getBinaryState",e,(o,a)=>{o?n(o):r(a)})}})}setBinaryState(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setBinaryState",e,r,a=>{a?o(a):n()})}})}setState(e,r,n){return typeof n=="boolean"&&(r={val:r,ack:n}),this.request({commandTimeout:!1,executor:(o,a)=>{if(e&&e===this.ignoreState){let i;if(typeof n=="boolean"||typeof r=="object"&&r.val!==void 0?i=r:i={val:r,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[e]=i,this.statesSubscribes[e])for(const l of this.statesSubscribes[e].cbs)try{const u=l(e,i);u instanceof Promise&&u.catch(f=>console.error(`Cannot call state change handler: ${f}`))}catch(u){console.error(`Error by callback of stateChanged: ${u}`)}o();return}this._socket.emit("setState",e,r,i=>{i?a(i):o()})}})}getObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{if(!e&&this.objects){n(this.objects);return}this._socket.emit(Jo.isWeb()?"getObjects":"getAllObjects",(a,i)=>{var l,u;r||(u=(l=this.props).onProgress)==null||u.call(l,_o.OBJECTS_LOADED),a?o(a):(this.objects=i??{},n(this.objects))})}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjects",e,(o,a)=>{o?n(o):r(a)})}})}_subscribe(e){var r,n;if(e&&!this.subscribed){this.subscribed=!0,(r=this.props.autoSubscribes)!=null&&r.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const o=Object.keys(this.objectsSubscribes);o.length&&this._socket.emit("subscribeObjects",o),Object.keys(this.objectsSubscribes).forEach(a=>this._socket.emit("subscribeObjects",a)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(a=>this._socket.emit("subscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[i,l]=a.split("$%$");this._socket.emit("subscribeFiles",i,l)})}else if(!e&&this.subscribed){this.subscribed=!1,(n=this.props.autoSubscribes)!=null&&n.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const o=Object.keys(this.objectsSubscribes);o.length&&this._socket.emit("unsubscribeObjects",o),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(a=>this._socket.emit("unsubscribe",a)),Object.keys(this.filesSubscribes).forEach(a=>{const[i,l]=a.split("$%$");this._socket.emit("unsubscribeFiles",i,l)})}}requireLog(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("requireLog",e,o=>{o?n(o):r()})}})}delObject(e,r=!1){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObject",e,{maintenance:r},a=>{a?o(a):n()})}})}delObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("delObjects",e,{maintenance:r},a=>{a?o(a):n()})}})}setObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("setObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",e,(o,a)=>{o?n(o):r(a)})}})}sendTo(e,r,n){return this.request({commandTimeout:!1,executor:o=>{this._socket.emit("sendTo",e,r,n,a=>{o(a)})}})}extendObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("extendObject",e,r,a=>{a?o(a):n()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){const r=this.onLogHandlers.indexOf(e);r!==-1&&this.onLogHandlers.splice(r,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){const r=this.onConnectionHandlers.indexOf(e);r!==-1&&this.onConnectionHandlers.splice(r,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,r){return this.request({cacheKey:`enums_${e||"all"}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${e||""}`,endkey:e?`enum.${e}.香`:"enum.香"},(a,i)=>{if(a)o(a);else{const l={};if(i)for(let u=0;u{n=n||"",o=o||"香",this._socket.emit("getObjectView",e,r,{startkey:n,endkey:o},(l,u)=>{if(l)i(l);else{const f={};if(u&&u.rows)for(let h=0;h{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(n,o)=>{var a;n?r(n):e((a=o.rows)==null?void 0:a.map(i=>i.value).filter(i=>!!i))})}})}readDir(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("readDir",e,r,(a,i)=>{a?o(a):n(i)})}})}readFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit(n?"readFile64":"readFile",e,r,(i,l,u)=>{i?a(i):o({file:l,mimeType:u})})}})}writeFile64(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{if(typeof n=="string")this._socket.emit("writeFile",e,r,n,i=>{i?a(i):o()});else{const i=btoa(new Uint8Array(n).reduce((l,u)=>l+String.fromCharCode(u),""));this._socket.emit("writeFile64",e,r,i,l=>{l?a(l):o()})}}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFile",e,r,a=>{a?o(a):n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("deleteFolder",e,r,a=>{a?o(a):n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("rename",e,r,n,i=>{i?a(i):o()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(o,a)=>{this._socket.emit("renameFile",e,r,n,i=>{i?a(i):o()})}})}cmdExec(e,r,n,o){return this.request({commandTimeout:o,executor:(a,i,l)=>{e=GC(e),this._socket.emit("cmdExec",e,n,r,u=>{l.elapsed||(l.clearTimeout(),u?i(u):a())})}})}getSystemConfig(e){return this.request({cacheKey:"systemConfig",forceUpdate:e,commandTimeout:!1,executor:async r=>{let n=await this.getObject("system.config");n??(n={}),n.common??(n.common={}),n.native??(n.native={}),r(n)}})}getCompactSystemConfig(e){return this.request({cacheKey:"systemConfigCommon",forceUpdate:e,commandTimeout:!1,requireAdmin:!0,executor:(r,n)=>{this._socket.emit("getCompactSystemConfig",(o,a)=>{o?n(o):(a??(a={}),a.common??(a.common={}),a.native??(a.native={}),r(a))})}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getForeignStates",e||"*",(o,a)=>{o?n(o):r(a??{})})}})}getForeignObjects(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getForeignObjects",e||"*",r,(a,i)=>{a?o(a):n(i)})}})}setSystemConfig(e){return this.setObject("system.config",e)}getRawSocket(){return this._socket}getHistory(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,i)=>{a?o(a):n(i)})}})}getHistoryEx(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("getHistory",e,r,(a,i,l,u)=>{a?o(a):n({values:i,sessionId:u,step:l})})}})}getIpAddresses(e,r){return e=GC(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObject(e);n((o==null?void 0:o.common.address)??[])}})}getVersion(e){return this.request({cacheKey:"version",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getVersion",(o,a,i)=>{o&&!a&&typeof o=="string"&&o.match(/\d+\.\d+\.\d+/)?r({version:o,serverName:"socketio"}):o?n(o):r({version:a,serverName:i})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getAdapterName",(n,o)=>{n?r(n):e(o)})}})}fileExists(e,r){return this.request({commandTimeout:!1,executor:(n,o)=>{this._socket.emit("fileExists",e,r,(a,i)=>{a?o(a):n(!!i)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit("authEnabled",(r,n)=>{e(n)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async e=>{var n;const r=await this.getObject("system.meta.uuid");e((n=r==null?void 0:r.native)==null?void 0:n.uuid)}})}checkFeatureSupported(e,r){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:r,commandTimeout:!1,executor:(n,o)=>{this._socket.emit("checkFeatureSupported",e,(a,i)=>{a?o(a):n(i)})}})}getAdapterInstances(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`instances_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=e?`system.adapter.${e}.`:"system.adapter.",a=`${o}香`,i=await this.getObjectViewSystem("instance",o,a),l=Object.values(i);n(e?l.filter(u=>u.common.name===e):l)}})}getAdapters(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`adapter_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const o=await this.getObjectViewSystem("adapter",`system.adapter.${e||""}`,`system.adapter.${e||"香"}`),a=Object.values(o);n(e?a.filter(i=>i.common.name===e):a)}})}getGroups(e){return this.request({cacheKey:"groups",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(o,a)=>{o?n(o):r(kH(a))})}})}logout(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("logout",n=>{n?r(n):e(null)})}})}subscribeOnInstance(e,r,n,o){return this.request({commandTimeout:!1,executor:(a,i)=>{this._socket.emit("clientSubscribe",e,r,n,(l,u)=>{l?i(l):u&&(u.error?i(u.error):(e.startsWith("system.adapter.")||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find(f=>f.messageType===r&&f.callback===o)||this._instanceSubscriptions[e].push({messageType:r,callback:o}),a(u)))})}})}unsubscribeFromInstance(e,r,n){var i;e.startsWith("system.adapter.")||(e=`system.adapter.${e}`);let o;const a=[];do{o=!1;const l=(i=this._instanceSubscriptions[e])==null?void 0:i.findIndex(u=>(!r||u.messageType===r)&&(!n||u.callback===n));if(l!=null&&l!==-1){o=!0;const u=this._instanceSubscriptions[e][l].messageType;this._instanceSubscriptions[e].splice(l,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e],this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find(h=>h.messageType===u)||a.push(this.request({commandTimeout:!1,executor:(h,d)=>{this._socket.emit("clientUnsubscribe",e,r,(_,g)=>_?d(_):h(g))}}))}}while(o&&(!n||!r));return a.length?Promise.all(a).then(l=>!!l.find(u=>u)):Promise.resolve(!1)}log(e,r){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",e,r),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}}const $H=` /** * Copyright 2018-2024 Denis Haev (bluefox) * @@ -474,10 +474,10 @@ export default theme;`}function i0(t={},...e){const{breakpoints:r,mixins:n={},sp .logo-animate-color-outside-blue { animation: logo-color-outside-blue 1.5s; } -`;function EH(t){$.useEffect(()=>{if(!window.document.getElementById("loader-iobroker-component")){const n=window.document.createElement("style");n.setAttribute("id","loader-iobroker-component"),n.innerHTML=$H,window.document.head.appendChild(n)}},[]);const e=t.size||234,r=t.themeName||t.theme||t.themeType||"light";return y.createElement("div",{className:`logo-back logo-background-${r}`,style:{backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:void 0,backgroundSize:"cover"}},window.loadingHideLogo==="true"?null:y.createElement(y.Fragment,null,y.createElement("div",{className:"logo-div",style:{width:e,height:e}},y.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"37%"}}),y.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"57%"}}),y.createElement("div",{className:`logo-border logo-background-${r} logo-animate-wait`,style:{borderWidth:e*.132}}),y.createElement("div",{className:`logo-i logo-animate-color-inside-${r}`}),y.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{top:"18%"}}),y.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{bottom:"18%"}})),y.createElement("div",{className:`logo-animate-grow logo-animate-grow-${r}`,style:{width:e+11,height:e+11}})))}function TH(){const t=document.getSelection();if(!(t!=null&&t.rangeCount))return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const YC={"text/plain":"Text","text/html":"Url",default:"Text"},OH="Copy to clipboard: #{key}, Enter";function DH(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function MH(t,e){let r,n,o,a,i=!1;e=e||{};const l=e.debug||!1;try{if(r=TH(),n=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=t,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",f=>{var h,d,_,g;if(f.stopPropagation(),e!=null&&e.format)if(f.preventDefault(),typeof f.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),(h=window.clipboardData)==null||h.clearData();const b=YC[e.format]||YC.default;(d=window.clipboardData)==null||d.setData(b,t)}else(_=f.clipboardData)==null||_.clearData(),(g=f.clipboardData)==null||g.setData(e.format,t)}),document.body.appendChild(a),n.selectNodeContents(a),o==null||o.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");i=!0}catch(u){l&&console.error("unable to copy using execCommand: ",u),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),i=!0}catch(f){l&&console.error("unable to copy using clipboardData: ",f),l&&console.error("falling back to prompt");const h=DH("message"in e?e.message||"":OH);window.prompt(h,t)}}finally{o&&(n&&typeof o.removeRange=="function"?o.removeRange(n):o.removeAllRanges()),a&&document.body.removeChild(a),r&&r()}return i}const Dt=class Dt{static setLanguage(e){e&&(Dt.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const o=n.prefix;delete n.prefix,Object.keys(n).forEach(a=>{const i=a,l={},u=n[i];Object.keys(u).forEach(f=>{f&&u&&(f.startsWith(o)?l[f]=u[f]:l[`${o}${f}`]=u[f])}),e[i]=l})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const o=n;Dt.translations[o]=Dt.translations[o]||{};const a=Dt.translations[o];Object.assign(a,e[o])}):Object.keys(e).forEach(n=>{const o=e[n];Object.keys(o).forEach(a=>{const i=a,l=Dt.translations[i];l?l[n]?l[n]!==o[i]&&console.warn(`Translation for word "${n}" in "${i}" was ignored: existing = "${l[n]}", new = ${o[i]}`):l[n]=o[i]:console.warn(`Used unknown language: ${i}`)})});else{Dt.translations[r]||console.warn(`Used unknown language: ${r}`),Dt.translations[r]=Dt.translations[r]||{};const n=Dt.translations[r];n&&Object.keys(e).forEach(o=>{n[o]?n[o]!==e[o]&&console.warn(`Translation for word "${o}" in "${r}" was ignored: existing = "${n[o]}", new = ${e[o]}`):n[o]=e[o]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(Dt.translations=e)}static getLanguage(){return Dt.lang}static t(e,...r){const n=Dt.translations[Dt.lang];if(n){const o=n[e];if(o)e=o;else if(Dt.unknownTranslations.includes(e)||(Dt.unknownTranslations.push(e),!Dt._disableWarning&&console.log(`Translate: ${e}`)),Dt.lang!=="en"&&Dt.translations.en){const a=Dt.translations.en[e];a&&(e=a)}}for(const o of r)e=e.replace("%s",o);return e}static i18nShow(e){const r={};e?typeof e=="string"?(Dt.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):typeof e=="object"&&(Dt.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(Dt.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){Dt._disableWarning=!!e}};xe(Dt,"translations",{}),xe(Dt,"unknownTranslations",[]),xe(Dt,"lang",window.sysLang||"en"),xe(Dt,"_disableWarning",!1);let U=Dt;window.i18nShow=U.i18nShow;window.i18nDisableWarning=U.disableWarning;const uo="material",NH=["Su","Mo","Tu","We","Th","Fr","Sa"],PH=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],m_={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"},KC={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"},At=class At{static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const o=Math.floor(e/60).toString().padStart(2,"0");e%=60;const a=Math.floor(e).toString().padStart(2,"0");let i="";return r&&(i+=`${r} ${U.t("ra_daysShortText")} `),i+=`${n}:${o}:${a}`,i}static getObjectName(e,r,n,o,a){var u;const i=e[r];let l;if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},o.language||(o.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n!=null&&n.name){const f=n.name;typeof f=="object"?l=o.language&&f[o.language]||f.en:l=f}else if(a&&((u=i==null?void 0:i.common)!=null&&u.desc)){const f=i.common.desc;typeof f=="object"?l=o.language&&f[o.language]||f.en||f.de||f.ru||"":l=f,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else if(!a&&(i!=null&&i.common)){const f=i.common.name||i.common.desc;f&&typeof f=="object"?l=o.language&&f[o.language]||f.en||f.de||f.ru||"":l=f,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else{const f=r.lastIndexOf(".");l=r.substring(f+1).replace(/[_.]/g," "),l=At.CapitalWords(l)}return(l==null?void 0:l.trim())||""}static getObjectNameFromObj(e,r,n,o,a){var u,f;const i=e;let l=e&&e._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r!=null&&r.name){const h=r.name;typeof h=="object"?l=n.language&&h[n.language]||h.en:l=h}else if(o&&((u=i==null?void 0:i.common)!=null&&u.desc)){const h=i.common.desc;typeof h=="object"?l=n.language&&h[n.language]||h.en:l=h,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else if(!o&&((f=i==null?void 0:i.common)!=null&&f.name)){let h=i.common.name;!h&&i.common.desc&&(h=i.common.desc),typeof h=="object"?l=n.language&&h[n.language]||h.en:l=h,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}return a?l:l.trim()}static getSettingsOrder(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o!=null&&o.custom){a=o.custom[uo];const i=n.user||"admin";if(a&&a[i]){if(r){if(a[i].subOrder&&a[i].subOrder[r])return JSON.parse(JSON.stringify(a[i].subOrder[r]))}else if(a[i].order)return JSON.parse(JSON.stringify(a[i].order))}}return null}static getSettingsCustomURLs(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o!=null&&o.custom){a=o.custom[uo];const i=n.user||"admin";if(a&&a[i]){if(r){if(a[i].subURLs&&a[i].subURLs[r])return JSON.parse(JSON.stringify(a[i].subURLs[r]))}else if(a[i].URLs)return JSON.parse(JSON.stringify(a[i].URLs))}}return null}static reorder(e,r,n){const o=Array.from(e),[a]=o.splice(r,1);return o.splice(n,0,a),o}static getSettings(e,r,n){let o;const a=(e==null?void 0:e._id)||(r==null?void 0:r.id);let i;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?i=e.common:i=e,i!=null&&i.custom?(o=i.custom,o=o[uo]&&o[uo][r.user||"admin"]?JSON.parse(JSON.stringify(o[uo][r.user||"admin"])):{enabled:!0}):o={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=n===void 0?!0:n),r&&(!o.name&&r.name&&(o.name=r.name),!o.icon&&r.icon&&(o.icon=r.icon),!o.color&&r.color&&(o.color=r.color)),i&&(!o.color&&i.color&&(o.color=i.color),!o.icon&&i.icon&&(o.icon=i.icon),!o.name&&i.name&&(o.name=i.name)),typeof o.name=="object"&&(o.name=r.language&&o.name[r.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&a){const l=a.lastIndexOf(".");o.name=a.substring(l+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=At.CapitalWords(o.name)}return o}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[uo]=e.common.custom[uo]||{},e.common.custom[uo][n.user||"admin"]=r;const o=e.common.custom[uo][n.user||"admin"];return o.useCommon&&(o.color!==void 0&&(e.common.color=o.color,delete o.color),o.icon!==void 0&&(e.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:o.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=o.name),delete o.name)),!0}return!1}static getIcon(e,r){return e!=null&&e.icon?e.icon.length<=2?y.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?y.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):y.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){var n;if(typeof e=="object"&&(r=e,e=r==null?void 0:r._id),(n=r==null?void 0:r.common)!=null&&n.icon){let o=r.common.icon;if(typeof o=="string"&&o.length<=2||o.startsWith("data:image"))return o;const a=e.split(".");return a[0]==="system"?o=`adapter/${a[2]}${o.startsWith("/")?"":"/"}${o}`:o=`adapter/${a[0]}${o.startsWith("/")?"":"/"}${o}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?o=`../../${o}`:window.location.pathname.match(/material\/[.\d]+/)?o=`../../${o}`:window.location.pathname.match(/material\//)&&(o=`../${o}`),o}return null}static splitCamelCase(e){return e?At.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,o,a;const i=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(i&&i.length===4)n=parseInt(i[1],10),o=parseInt(i[2],10),a=parseInt(i[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),o=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16)}return n*.299+o*.587+a*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),o=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${o}`:`${n}:${o}`}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(e){e&&(At.dateFormat=e.toUpperCase().split(/[.-/]/),At.dateFormat.splice(At.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],a=o.find(i=>i>31);if(a!==void 0){o.splice(o.indexOf(a),1);const i=o.find(l=>l>12);i?(o.splice(o.indexOf(i),1),e=new Date(a,o[0]-1,i)):At.dateFormat[0][0]==="M"&&At.dateFormat[1][0]==="D"?(e=new Date(a,o[0]-1,o[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[1]-1,o[0]))):At.dateFormat[0][0]==="D"&&At.dateFormat[1][0]==="M"?(e=new Date(a,o[1]-1,o[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[0]-1,o[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=U.t(`ra_dow_${NH[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${U.t(`ra_month_${PH[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/
||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let o=1;do{const a=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),a&&n.push(y.createElement("span",{key:`a${o++}`},a)),r[0].startsWith(""))n.push(y.createElement("b",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(y.createElement("i",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(y.createElement("span",{key:`a${o++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,o){var i,l;if(!r){if(!o)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const u=e;return(i=u==null?void 0:u.common)!=null&&i.custom&&u.common.custom[n]?u.common.custom[n].smartName:void 0}if(!o)return e[r].common.smartName;const a=e[r];return(l=a==null?void 0:a.common)!=null&&l.custom&&a.common.custom[n]&&a.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){var a,i;if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const o=(i=(a=e==null?void 0:e.common)==null?void 0:a.custom)==null?void 0:i[r];return o?o.smartName:void 0}static enableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName={}):e.common.smartName={}}static removeSmartName(e,r,n){n?e.common&&e.common.custom&&e.common.custom[r]&&(e.common.custom[r]=null):e.common.smartName=null}static updateSmartName(e,r,n,o,a,i){const l=U.getLanguage();if(typeof e.common.smartName=="string"){const u=e.common.smartName;e.common.smartName={},e.common.smartName[l]=u}if(e.native&&e.native.byON){delete e.native.byON;let u=e.common.smartName;u&&typeof u!="object"&&(u={en:u,[l]:u}),e.common.smartName=u}if(o!==void 0&&(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},o?e.common.custom[a].smartName.smartType=o:delete e.common.custom[a].smartName.smartType):(e.common.smartName=e.common.smartName||{},o?e.common.smartName.smartType=o:delete e.common.smartName.smartType)),n!==void 0&&(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},e.common.custom[a].smartName.byON=n):(e.common.smartName=e.common.smartName||{},e.common.smartName.byON=n)),r!==void 0){let u;if(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},u=e.common.custom[a].smartName):(e.common.smartName=e.common.smartName||{},u=e.common.smartName),u[l]=r,u&&(!u[l]||u[l]===e.common.name&&(!e.common.role||e.common.role.includes("button")))){delete u[l];let f=!0;for(const h in u)if(Object.prototype.hasOwnProperty.call(u,h)){f=!1;break}if(f)if(i&&e.common.custom&&e.common.custom[a])e.common.custom[a].smartName.byON===void 0?delete e.common.custom[a]:(delete e.common.custom[a].en,delete e.common.custom[a].de,delete e.common.custom[a].ru,delete e.common.custom[a].nl,delete e.common.custom[a].pl,delete e.common.custom[a].it,delete e.common.custom[a].fr,delete e.common.custom[a].pt,delete e.common.custom[a].es,delete e.common.custom[a].uk,delete e.common.custom[a]["zh-cn"]);else if(e.common.smartName&&e.common.smartName.byON!==void 0){const h=e.common.smartName;delete h.en,delete h.de,delete h.ru,delete h.nl,delete h.pl,delete h.it,delete h.fr,delete h.pt,delete h.es,delete h.uk,delete h["zh-cn"]}else e.common.smartName=null}}}static disableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName=!1):e.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),MH(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const l=(255-o).toString(16),u=(255-a).toString(16),f=(255-i).toString(16);return`#${l.padStart(2,"0")}${u.padStart(2,"0")}${f.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[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 r=e[0]/255,n=e[1]/255,o=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let a=(r*.4124+n*.3576+o*.1805)/.95047,i=r*.2126+n*.7152+o*.0722,l=(r*.0193+n*.1192+o*.9505)/1.08883;return a=a>.008856?a**.33333333:7.787*a+.137931,i=i>.008856?i**.33333333:7.787*i+.137931,l=l>.008856?l**.33333333:7.787*l+.137931,[116*i-16,500*(a-i),200*(i-l)]}static colorDistance(e,r){const n=At.color2rgb(e),o=At.color2rgb(r);if(!n||!o)return 0;const a=At.rgb2lab(n),i=At.rgb2lab(o),l=a[0]-i[0],u=a[1]-i[1],f=a[2]-i[2],h=Math.sqrt(a[1]*a[1]+a[2]*a[2]),d=Math.sqrt(i[1]*i[1]+i[2]*i[2]),_=h-d;let g=u*u+f*f-_*_;g=g<0?0:Math.sqrt(g);const b=1+.045*h,w=1+.015*h,S=l,k=_/b,D=g/w,C=S*S+k*k+D*D;return C<0?0:C}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let o=0;o{if(n=n.trim(),n){const o=n.split("="),a=decodeURIComponent(o[0]).trim();if(o.length>1){const i=decodeURIComponent(o[1]);if(i==="true")r[a]=!0;else if(i==="false")r[a]=!1;else{const l=parseFloat(i);l.toString()===i?r[a]=l:r[a]=i}}else r[a]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const o=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${o}/${a}/${e.getFullYear()}`:n=`${e.getFullYear()}-${o}-${a}`,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);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),o=Math.floor(e%3600/60),a=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:n?`${n}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){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/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){var a;const r=At.MDextractHeader(e),n=r.header;let o=r.body;if(!n.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const i=o.replace(/\r/g,"").split(` +`;function EH(t){$.useEffect(()=>{if(!window.document.getElementById("loader-iobroker-component")){const n=window.document.createElement("style");n.setAttribute("id","loader-iobroker-component"),n.innerHTML=$H,window.document.head.appendChild(n)}},[]);const e=t.size||234,r=t.themeName||t.theme||t.themeType||"light";return y.createElement("div",{className:`logo-back logo-background-${r}`,style:{backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:void 0,backgroundSize:"cover"}},window.loadingHideLogo==="true"?null:y.createElement(y.Fragment,null,y.createElement("div",{className:"logo-div",style:{width:e,height:e}},y.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"37%"}}),y.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"57%"}}),y.createElement("div",{className:`logo-border logo-background-${r} logo-animate-wait`,style:{borderWidth:e*.132}}),y.createElement("div",{className:`logo-i logo-animate-color-inside-${r}`}),y.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{top:"18%"}}),y.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{bottom:"18%"}})),y.createElement("div",{className:`logo-animate-grow logo-animate-grow-${r}`,style:{width:e+11,height:e+11}})))}function TH(){const t=document.getSelection();if(!(t!=null&&t.rangeCount))return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const YC={"text/plain":"Text","text/html":"Url",default:"Text"},OH="Copy to clipboard: #{key}, Enter";function DH(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function MH(t,e){let r,n,o,a,i=!1;e=e||{};const l=e.debug||!1;try{if(r=TH(),n=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=t,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",f=>{var h,d,_,g;if(f.stopPropagation(),e!=null&&e.format)if(f.preventDefault(),typeof f.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),(h=window.clipboardData)==null||h.clearData();const b=YC[e.format]||YC.default;(d=window.clipboardData)==null||d.setData(b,t)}else(_=f.clipboardData)==null||_.clearData(),(g=f.clipboardData)==null||g.setData(e.format,t)}),document.body.appendChild(a),n.selectNodeContents(a),o==null||o.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");i=!0}catch(u){l&&console.error("unable to copy using execCommand: ",u),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),i=!0}catch(f){l&&console.error("unable to copy using clipboardData: ",f),l&&console.error("falling back to prompt");const h=DH("message"in e?e.message||"":OH);window.prompt(h,t)}}finally{o&&(n&&typeof o.removeRange=="function"?o.removeRange(n):o.removeAllRanges()),a&&document.body.removeChild(a),r&&r()}return i}const Dt=class Dt{static setLanguage(e){e&&(Dt.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const o=n.prefix;delete n.prefix,Object.keys(n).forEach(a=>{const i=a,l={},u=n[i];Object.keys(u).forEach(f=>{f&&u&&(f.startsWith(o)?l[f]=u[f]:l[`${o}${f}`]=u[f])}),e[i]=l})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const o=n;Dt.translations[o]=Dt.translations[o]||{};const a=Dt.translations[o];Object.assign(a,e[o])}):Object.keys(e).forEach(n=>{const o=e[n];Object.keys(o).forEach(a=>{const i=a,l=Dt.translations[i];l?l[n]?l[n]!==o[i]&&console.warn(`Translation for word "${n}" in "${i}" was ignored: existing = "${l[n]}", new = ${o[i]}`):l[n]=o[i]:console.warn(`Used unknown language: ${i}`)})});else{Dt.translations[r]||console.warn(`Used unknown language: ${r}`),Dt.translations[r]=Dt.translations[r]||{};const n=Dt.translations[r];n&&Object.keys(e).forEach(o=>{n[o]?n[o]!==e[o]&&console.warn(`Translation for word "${o}" in "${r}" was ignored: existing = "${n[o]}", new = ${e[o]}`):n[o]=e[o]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(Dt.translations=e)}static getLanguage(){return Dt.lang}static t(e,...r){const n=Dt.translations[Dt.lang];if(n){const o=n[e];if(o)e=o;else if(Dt.unknownTranslations.includes(e)||(Dt.unknownTranslations.push(e),!Dt._disableWarning&&console.log(`Translate: ${e}`)),Dt.lang!=="en"&&Dt.translations.en){const a=Dt.translations.en[e];a&&(e=a)}}for(const o of r)e=e.replace("%s",o);return e}static i18nShow(e){const r={};e?typeof e=="string"?(Dt.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):typeof e=="object"&&(Dt.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(Dt.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){Dt._disableWarning=!!e}};we(Dt,"translations",{}),we(Dt,"unknownTranslations",[]),we(Dt,"lang",window.sysLang||"en"),we(Dt,"_disableWarning",!1);let U=Dt;window.i18nShow=U.i18nShow;window.i18nDisableWarning=U.disableWarning;const uo="material",NH=["Su","Mo","Tu","We","Th","Fr","Sa"],PH=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],m_={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"},KC={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"},At=class At{static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const o=Math.floor(e/60).toString().padStart(2,"0");e%=60;const a=Math.floor(e).toString().padStart(2,"0");let i="";return r&&(i+=`${r} ${U.t("ra_daysShortText")} `),i+=`${n}:${o}:${a}`,i}static getObjectName(e,r,n,o,a){var u;const i=e[r];let l;if(typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},o.language||(o.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n!=null&&n.name){const f=n.name;typeof f=="object"?l=o.language&&f[o.language]||f.en:l=f}else if(a&&((u=i==null?void 0:i.common)!=null&&u.desc)){const f=i.common.desc;typeof f=="object"?l=o.language&&f[o.language]||f.en||f.de||f.ru||"":l=f,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else if(!a&&(i!=null&&i.common)){const f=i.common.name||i.common.desc;f&&typeof f=="object"?l=o.language&&f[o.language]||f.en||f.de||f.ru||"":l=f,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else{const f=r.lastIndexOf(".");l=r.substring(f+1).replace(/[_.]/g," "),l=At.CapitalWords(l)}return(l==null?void 0:l.trim())||""}static getObjectNameFromObj(e,r,n,o,a){var u,f;const i=e;let l=e&&e._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r!=null&&r.name){const h=r.name;typeof h=="object"?l=n.language&&h[n.language]||h.en:l=h}else if(o&&((u=i==null?void 0:i.common)!=null&&u.desc)){const h=i.common.desc;typeof h=="object"?l=n.language&&h[n.language]||h.en:l=h,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}else if(!o&&((f=i==null?void 0:i.common)!=null&&f.name)){let h=i.common.name;!h&&i.common.desc&&(h=i.common.desc),typeof h=="object"?l=n.language&&h[n.language]||h.en:l=h,l=(l||"").toString().replace(/[_.]/g," "),l===l.toUpperCase()&&(l=l[0]+l.substring(1).toLowerCase())}return a?l:l.trim()}static getSettingsOrder(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o!=null&&o.custom){a=o.custom[uo];const i=n.user||"admin";if(a&&a[i]){if(r){if(a[i].subOrder&&a[i].subOrder[r])return JSON.parse(JSON.stringify(a[i].subOrder[r]))}else if(a[i].order)return JSON.parse(JSON.stringify(a[i].order))}}return null}static getSettingsCustomURLs(e,r,n){let o;e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e;let a;if(o!=null&&o.custom){a=o.custom[uo];const i=n.user||"admin";if(a&&a[i]){if(r){if(a[i].subURLs&&a[i].subURLs[r])return JSON.parse(JSON.stringify(a[i].subURLs[r]))}else if(a[i].URLs)return JSON.parse(JSON.stringify(a[i].URLs))}}return null}static reorder(e,r,n){const o=Array.from(e),[a]=o.splice(r,1);return o.splice(n,0,a),o}static getSettings(e,r,n){let o;const a=(e==null?void 0:e._id)||(r==null?void 0:r.id);let i;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?i=e.common:i=e,i!=null&&i.custom?(o=i.custom,o=o[uo]&&o[uo][r.user||"admin"]?JSON.parse(JSON.stringify(o[uo][r.user||"admin"])):{enabled:!0}):o={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(o,"enabled")||(o.enabled=n===void 0?!0:n),r&&(!o.name&&r.name&&(o.name=r.name),!o.icon&&r.icon&&(o.icon=r.icon),!o.color&&r.color&&(o.color=r.color)),i&&(!o.color&&i.color&&(o.color=i.color),!o.icon&&i.icon&&(o.icon=i.icon),!o.name&&i.name&&(o.name=i.name)),typeof o.name=="object"&&(o.name=r.language&&o.name[r.language]||o.name.en,o.name=(o.name||"").toString().replace(/_/g," "),o.name===o.name.toUpperCase()&&(o.name=o.name[0]+o.name.substring(1).toLowerCase())),!o.name&&a){const l=a.lastIndexOf(".");o.name=a.substring(l+1).replace(/[_.]/g," "),o.name=(o.name||"").toString().replace(/_/g," "),o.name=At.CapitalWords(o.name)}return o}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[uo]=e.common.custom[uo]||{},e.common.custom[uo][n.user||"admin"]=r;const o=e.common.custom[uo][n.user||"admin"];return o.useCommon&&(o.color!==void 0&&(e.common.color=o.color,delete o.color),o.icon!==void 0&&(e.common.icon=o.icon,delete o.icon),o.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:o.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=o.name),delete o.name)),!0}return!1}static getIcon(e,r){return e!=null&&e.icon?e.icon.length<=2?y.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?y.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):y.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){var n;if(typeof e=="object"&&(r=e,e=r==null?void 0:r._id),(n=r==null?void 0:r.common)!=null&&n.icon){let o=r.common.icon;if(typeof o=="string"&&o.length<=2||o.startsWith("data:image"))return o;const a=e.split(".");return a[0]==="system"?o=`adapter/${a[2]}${o.startsWith("/")?"":"/"}${o}`:o=`adapter/${a[0]}${o.startsWith("/")?"":"/"}${o}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?o=`../../${o}`:window.location.pathname.match(/material\/[.\d]+/)?o=`../../${o}`:window.location.pathname.match(/material\//)&&(o=`../${o}`),o}return null}static splitCamelCase(e){return e?At.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,o,a;const i=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(i&&i.length===4)n=parseInt(i[1],10),o=parseInt(i[2],10),a=parseInt(i[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),o=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16)}return n*.299+o*.587+a*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),o=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${o}`:`${n}:${o}`}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(e){e&&(At.dateFormat=e.toUpperCase().split(/[.-/]/),At.dateFormat.splice(At.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],a=o.find(i=>i>31);if(a!==void 0){o.splice(o.indexOf(a),1);const i=o.find(l=>l>12);i?(o.splice(o.indexOf(i),1),e=new Date(a,o[0]-1,i)):At.dateFormat[0][0]==="M"&&At.dateFormat[1][0]==="D"?(e=new Date(a,o[0]-1,o[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[1]-1,o[0]))):At.dateFormat[0][0]==="D"&&At.dateFormat[1][0]==="M"?(e=new Date(a,o[1]-1,o[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(a,o[0]-1,o[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=U.t(`ra_dow_${NH[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${U.t(`ra_month_${PH[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let o=1;do{const a=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),a&&n.push(y.createElement("span",{key:`a${o++}`},a)),r[0].startsWith(""))n.push(y.createElement("b",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(y.createElement("i",{key:`a${o++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(y.createElement("span",{key:`a${o++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,o){var i,l;if(!r){if(!o)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const u=e;return(i=u==null?void 0:u.common)!=null&&i.custom&&u.common.custom[n]?u.common.custom[n].smartName:void 0}if(!o)return e[r].common.smartName;const a=e[r];return(l=a==null?void 0:a.common)!=null&&l.custom&&a.common.custom[n]&&a.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){var a,i;if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const o=(i=(a=e==null?void 0:e.common)==null?void 0:a.custom)==null?void 0:i[r];return o?o.smartName:void 0}static enableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName={}):e.common.smartName={}}static removeSmartName(e,r,n){n?e.common&&e.common.custom&&e.common.custom[r]&&(e.common.custom[r]=null):e.common.smartName=null}static updateSmartName(e,r,n,o,a,i){const l=U.getLanguage();if(typeof e.common.smartName=="string"){const u=e.common.smartName;e.common.smartName={},e.common.smartName[l]=u}if(e.native&&e.native.byON){delete e.native.byON;let u=e.common.smartName;u&&typeof u!="object"&&(u={en:u,[l]:u}),e.common.smartName=u}if(o!==void 0&&(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},o?e.common.custom[a].smartName.smartType=o:delete e.common.custom[a].smartName.smartType):(e.common.smartName=e.common.smartName||{},o?e.common.smartName.smartType=o:delete e.common.smartName.smartType)),n!==void 0&&(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},e.common.custom[a].smartName.byON=n):(e.common.smartName=e.common.smartName||{},e.common.smartName.byON=n)),r!==void 0){let u;if(i?(e.common.custom=e.common.custom||{},e.common.custom[a]=e.common.custom[a]||{},e.common.custom[a].smartName=e.common.custom[a].smartName||{},u=e.common.custom[a].smartName):(e.common.smartName=e.common.smartName||{},u=e.common.smartName),u[l]=r,u&&(!u[l]||u[l]===e.common.name&&(!e.common.role||e.common.role.includes("button")))){delete u[l];let f=!0;for(const h in u)if(Object.prototype.hasOwnProperty.call(u,h)){f=!1;break}if(f)if(i&&e.common.custom&&e.common.custom[a])e.common.custom[a].smartName.byON===void 0?delete e.common.custom[a]:(delete e.common.custom[a].en,delete e.common.custom[a].de,delete e.common.custom[a].ru,delete e.common.custom[a].nl,delete e.common.custom[a].pl,delete e.common.custom[a].it,delete e.common.custom[a].fr,delete e.common.custom[a].pt,delete e.common.custom[a].es,delete e.common.custom[a].uk,delete e.common.custom[a]["zh-cn"]);else if(e.common.smartName&&e.common.smartName.byON!==void 0){const h=e.common.smartName;delete h.en,delete h.de,delete h.ru,delete h.nl,delete h.pl,delete h.it,delete h.fr,delete h.pt,delete h.es,delete h.uk,delete h["zh-cn"]}else e.common.smartName=null}}}static disableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName=!1):e.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),MH(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const l=(255-o).toString(16),u=(255-a).toString(16),f=(255-i).toString(16);return`#${l.padStart(2,"0")}${u.padStart(2,"0")}${f.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[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 r=e[0]/255,n=e[1]/255,o=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let a=(r*.4124+n*.3576+o*.1805)/.95047,i=r*.2126+n*.7152+o*.0722,l=(r*.0193+n*.1192+o*.9505)/1.08883;return a=a>.008856?a**.33333333:7.787*a+.137931,i=i>.008856?i**.33333333:7.787*i+.137931,l=l>.008856?l**.33333333:7.787*l+.137931,[116*i-16,500*(a-i),200*(i-l)]}static colorDistance(e,r){const n=At.color2rgb(e),o=At.color2rgb(r);if(!n||!o)return 0;const a=At.rgb2lab(n),i=At.rgb2lab(o),l=a[0]-i[0],u=a[1]-i[1],f=a[2]-i[2],h=Math.sqrt(a[1]*a[1]+a[2]*a[2]),d=Math.sqrt(i[1]*i[1]+i[2]*i[2]),_=h-d;let g=u*u+f*f-_*_;g=g<0?0:Math.sqrt(g);const b=1+.045*h,w=1+.015*h,S=l,k=_/b,D=g/w,C=S*S+k*k+D*D;return C<0?0:C}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let o=0;o{if(n=n.trim(),n){const o=n.split("="),a=decodeURIComponent(o[0]).trim();if(o.length>1){const i=decodeURIComponent(o[1]);if(i==="true")r[a]=!0;else if(i==="false")r[a]=!1;else{const l=parseFloat(i);l.toString()===i?r[a]=l:r[a]=i}}else r[a]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const o=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${o}/${a}/${e.getFullYear()}`:n=`${e.getFullYear()}-${o}-${a}`,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);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),o=Math.floor(e%3600/60),a=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:n?`${n}:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`0:${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){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/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){var a;const r=At.MDextractHeader(e),n=r.header;let o=r.body;if(!n.title){o=o.replace(/{[^}]*}/g,""),o=o.trim();const i=o.replace(/\r/g,"").split(` `);for(let l=0;l{if(!i.trim())return;const l=i.indexOf(":");if(l!==-1){const u=i.substring(0,l).trim();let f=i.substring(l+1).trim();f=f.replace(/^['"]|['"]$/g,""),f==="true"?r[u]=!0:f==="false"?r[u]=!1:parseFloat(f).toString()===r[u]?r[u]=parseFloat(f):r[u]=f}else r[i.trim()]=!0}),e=e.substring(n+7))}return{header:r,body:e}}static MDremoveDocsify(e){const r=e.match(/{docsify-[^}]*}/g);return r&&r.forEach(n=>e=e.replace(n,"")),e}static generateFile(e,r){const n=document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){const r=e&4294901760,n=m_[e];let o;return n?o=[n]:e&1?o=[m_[1],`0x${(e&65534).toString(16)}`]:e&2?o=[m_[2],`0x${(e&65533).toString(16)}`]:o=[`0x${e.toString(16)}`],r&&o.push(`0x${(r>>16).toString(16).toUpperCase()}`),o}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){var o;const r=(o=e==null?void 0:e.common)==null?void 0:o.states;let n;if(r)if(typeof r=="string"&&r[0]==="{")try{n=JSON.parse(r)}catch{console.error(`Cannot parse states: ${r}`),n=null}else if(typeof r=="string"){const a=r.split(";");n={};for(let i=0;in[i]=a):(e==null?void 0:e.common.type)==="string"?r.forEach(a=>n[a]=a):(e==null?void 0:e.common.type)==="boolean"&&(n.false=r[0],n.true=r[1])):typeof r=="object"&&(n=r);return n||null}static async getSvg(e){const n=await(await fetch(e)).blob();return new Promise(o=>{const a=new FileReader;a.onload=()=>{var i;return o(((i=a.result)==null?void 0:i.toString())||"")},a.readAsDataURL(n)})}static detectMimeType(e){const r=Object.keys(KC).find(n=>e.startsWith(n));return r?KC[r]:null}static isStableRepository(e){return!!(typeof e=="string"&&e.toLowerCase().startsWith("stable")||e&&typeof e!="string"&&e.find(r=>r.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,...r){const n={};for(let o=0;o{if(typeof r[o][a]=="function")n[a]=r[o][a](e);else if(typeof r[o][a]=="object"){const i=r[o][a];n[a]={},Object.keys(i).forEach(l=>{typeof i[l]=="function"?n[a][l]=i(e):(i[l]||i[l]===0)&&(n[a][l]=i[l])})}else(r[o][a]||r[o][a]===0)&&(n[a]=r[o][a])});return n}};xe(At,"namespace",uo),xe(At,"INSTANCES","instances"),xe(At,"dateFormat",["DD","MM"]),xe(At,"FORBIDDEN_CHARS",/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu);let ht=At;const __={buttonIcon:{marginRight:8}};class OXe extends y.Component{constructor(r){super(r);xe(this,"isIFrame");const n=r.newReact===void 0?!0:r.newReact;if(r.isIFrame!==void 0)this.isIFrame=r.isIFrame;else try{this.isIFrame=!n&&window.self!==window.top}catch{this.isIFrame=!n}}render(){const r=this.props.noTextOnButtons,n={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},o={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(o.minHeight=48),this.props.error&&(n.border="1px solid red"),y.createElement(Bb,{style:o},y.createElement(Cs,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:n},y.createElement(S0,{style:r?void 0:__.buttonIcon}),!r&&U.t("ra_Save")),y.createElement(Cs,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...n,marginLeft:10}},y.createElement(S0,{style:r?void 0:__.buttonIcon}),r?"+":U.t("ra_Save and close"),r&&y.createElement(Rs,null)),y.createElement("div",{style:{flexGrow:1}}),y.createElement(Cs,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:n},y.createElement(Rs,{style:r?void 0:__.buttonIcon}),!r&&U.t("ra_Close")))}}const ZC={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class RH extends $.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let r=!1;this.props.suppressQuestionMinutes&&(r=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,r?Date.now()>r&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),r=!1):r=!1),this.state={suppress:r}}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):y.createElement(ra,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(e,r)=>{r!=="backdropClick"&&r!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},y.createElement(aa,{id:"ar_confirmation_dialog_title"},this.props.title||U.t("ra_Are you sure?")),y.createElement(oa,null,y.createElement(If,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?y.createElement("br",null):null,this.props.suppressQuestionMinutes?y.createElement(gt,{sx:{"& .FormControlLabel-label":ZC.suppress,"&.FormControlLabel-root":ZC.suppressRoot},control:y.createElement(tn,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||U.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),y.createElement(na,null,y.createElement(Qt,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:y.createElement(Rs,null)},this.props.cancel||U.t("ra_Cancel"))))}}class KM extends $.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return y.createElement(ra,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},y.createElement(aa,{id:"ar_alert_dialog_title"},this.props.title||U.t("ra_Error")),y.createElement(oa,null,y.createElement(If,{id:"ar_alert_dialog_description"},this.props.text||U.t("ra_Unknown error!"))),y.createElement(na,null,y.createElement(Qt,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:y.createElement(Hs,null)},U.t("ra_Ok"))))}}var Qr={},Di={},g_,QC;function ZM(){if(QC)return g_;QC=1;var t=typeof Ld=="object"&&Ld&&Ld.Object===Object&&Ld;return g_=t,g_}var y_,e$;function Do(){if(e$)return y_;e$=1;var t=ZM(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return y_=r,y_}var v_,t$;function Eu(){if(t$)return v_;t$=1;var t=Do(),e=t.Symbol;return v_=e,v_}var b_,r$;function AH(){if(r$)return b_;r$=1;var t=Eu(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function a(i){var l=r.call(i,o),u=i[o];try{i[o]=void 0;var f=!0}catch{}var h=n.call(i);return f&&(l?i[o]=u:delete i[o]),h}return b_=a,b_}var w_,n$;function IH(){if(n$)return w_;n$=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return w_=r,w_}var x_,o$;function qs(){if(o$)return x_;o$=1;var t=Eu(),e=AH(),r=IH(),n="[object Null]",o="[object Undefined]",a=t?t.toStringTag:void 0;function i(l){return l==null?l===void 0?o:n:a&&a in Object(l)?e(l):r(l)}return x_=i,x_}var S_,a$;function to(){if(a$)return S_;a$=1;var t=Array.isArray;return S_=t,S_}var k_,s$;function sa(){if(s$)return k_;s$=1;function t(e){return e!=null&&typeof e=="object"}return k_=t,k_}var C_,i$;function jH(){if(i$)return C_;i$=1;var t=qs(),e=to(),r=sa(),n="[object String]";function o(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return C_=o,C_}var $_,c$;function LH(){if(c$)return $_;c$=1;function t(e){return function(r,n,o){for(var a=-1,i=Object(r),l=o(r),u=l.length;u--;){var f=l[e?u:++a];if(n(i[f],f,i)===!1)break}return r}}return $_=t,$_}var E_,l$;function zH(){if(l$)return E_;l$=1;var t=LH(),e=t();return E_=e,E_}var T_,u$;function FH(){if(u$)return T_;u$=1;function t(e,r){for(var n=-1,o=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return P_=e,P_}var R_,g$;function UH(){if(g$)return R_;g$=1;var t=qs(),e=qb(),r=sa(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",l="[object Error]",u="[object Function]",f="[object Map]",h="[object Number]",d="[object Object]",_="[object RegExp]",g="[object Set]",b="[object String]",w="[object WeakMap]",S="[object ArrayBuffer]",k="[object DataView]",D="[object Float32Array]",C="[object Float64Array]",O="[object Int8Array]",M="[object Int16Array]",T="[object Int32Array]",P="[object Uint8Array]",j="[object Uint8ClampedArray]",z="[object Uint16Array]",E="[object Uint32Array]",L={};L[D]=L[C]=L[O]=L[M]=L[T]=L[P]=L[j]=L[z]=L[E]=!0,L[n]=L[o]=L[S]=L[a]=L[k]=L[i]=L[l]=L[u]=L[f]=L[h]=L[d]=L[_]=L[g]=L[b]=L[w]=!1;function G(B){return r(B)&&e(B.length)&&!!L[t(B)]}return R_=G,R_}var A_,y$;function Vb(){if(y$)return A_;y$=1;function t(e){return function(r){return e(r)}}return A_=t,A_}var Fl={exports:{}};Fl.exports;var v$;function Xb(){return v$||(v$=1,function(t,e){var r=ZM(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,l=function(){try{var u=o&&o.require&&o.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();t.exports=l}(Fl,Fl.exports)),Fl.exports}var I_,b$;function tN(){if(b$)return I_;b$=1;var t=UH(),e=Vb(),r=Xb(),n=r&&r.isTypedArray,o=n?e(n):t;return I_=o,I_}var j_,w$;function rN(){if(w$)return j_;w$=1;var t=FH(),e=QM(),r=to(),n=Hb(),o=eN(),a=tN(),i=Object.prototype,l=i.hasOwnProperty;function u(f,h){var d=r(f),_=!d&&e(f),g=!d&&!_&&n(f),b=!d&&!_&&!g&&a(f),w=d||_||g||b,S=w?t(f.length,String):[],k=S.length;for(var D in f)(h||l.call(f,D))&&!(w&&(D=="length"||g&&(D=="offset"||D=="parent")||b&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||o(D,k)))&&S.push(D);return S}return j_=u,j_}var L_,x$;function Gb(){if(x$)return L_;x$=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return L_=e,L_}var z_,S$;function nN(){if(S$)return z_;S$=1;function t(e,r){return function(n){return e(r(n))}}return z_=t,z_}var F_,k$;function HH(){if(k$)return F_;k$=1;var t=nN(),e=t(Object.keys,Object);return F_=e,F_}var B_,C$;function qH(){if(C$)return B_;C$=1;var t=Gb(),e=HH(),r=Object.prototype,n=r.hasOwnProperty;function o(a){if(!t(a))return e(a);var i=[];for(var l in Object(a))n.call(a,l)&&l!="constructor"&&i.push(l);return i}return B_=o,B_}var W_,$$;function Mc(){if($$)return W_;$$=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return W_=t,W_}var U_,E$;function oN(){if(E$)return U_;E$=1;var t=qs(),e=Mc(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(l){if(!e(l))return!1;var u=t(l);return u==n||u==o||u==r||u==a}return U_=i,U_}var H_,T$;function Lf(){if(T$)return H_;T$=1;var t=oN(),e=qb();function r(n){return n!=null&&e(n.length)&&!t(n)}return H_=r,H_}var q_,O$;function Tu(){if(O$)return q_;O$=1;var t=rN(),e=qH(),r=Lf();function n(o){return r(o)?t(o):e(o)}return q_=n,q_}var V_,D$;function aN(){if(D$)return V_;D$=1;var t=zH(),e=Tu();function r(n,o){return n&&t(n,o,e)}return V_=r,V_}var X_,M$;function sN(){if(M$)return X_;M$=1;function t(e){return e}return X_=t,X_}var G_,N$;function VH(){if(N$)return G_;N$=1;var t=sN();function e(r){return typeof r=="function"?r:t}return G_=e,G_}var J_,P$;function Jb(){if(P$)return J_;P$=1;var t=aN(),e=VH();function r(n,o){return n&&t(n,e(o))}return J_=r,J_}var Y_,R$;function Yb(){if(R$)return Y_;R$=1;var t=nN(),e=t(Object.getPrototypeOf,Object);return Y_=e,Y_}var K_,A$;function XH(){if(A$)return K_;A$=1;var t=qs(),e=Yb(),r=sa(),n="[object Object]",o=Function.prototype,a=Object.prototype,i=o.toString,l=a.hasOwnProperty,u=i.call(Object);function f(h){if(!r(h)||t(h)!=n)return!1;var d=e(h);if(d===null)return!0;var _=l.call(d,"constructor")&&d.constructor;return typeof _=="function"&&_ instanceof _&&i.call(_)==u}return K_=f,K_}var Z_,I$;function iN(){if(I$)return Z_;I$=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,a=Array(o);++n-1}return og=e,og}var ag,U$;function ZH(){if(U$)return ag;U$=1;var t=zf();function e(r,n){var o=this.__data__,a=t(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return ag=e,ag}var sg,H$;function Ff(){if(H$)return sg;H$=1;var t=GH(),e=JH(),r=YH(),n=KH(),o=ZH();function a(i){var l=-1,u=i==null?0:i.length;for(this.clear();++lg))return!1;var w=d.get(i),S=d.get(l);if(w&&S)return w==l&&S==i;var k=-1,D=!0,C=u&o?new t:void 0;for(d.set(i,l),d.set(l,i);++k0&&arguments[0]!==void 0?arguments[0]:[],_=[];return(0,l.default)(d,function(g){Array.isArray(g)?h(g).map(function(b){return _.push(b)}):(0,a.default)(g)?(0,n.default)(g,function(b,w){b===!0&&_.push(w),_.push(w+"-"+b)}):(0,e.default)(g)&&_.push(g)}),_};return Di.default=f,Di}var Mi={},Py,yT;function nV(){if(yT)return Py;yT=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],h=u.default&&(0,n.default)(u.default)||{};return f.map(function(d){var _=u[d];return _&&(0,e.default)(_,function(g,b){h[b]||(h[b]={}),h[b]=o({},h[b],_[b])}),d}),h};return Mi.default=i,Mi}var Ni={},YT;function OV(){if(YT)return Ni;YT=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.autoprefix=void 0;var t=Jb(),e=n(t),r=Object.assign||function(i){for(var l=1;l1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){i(_,d);function _(){var g,b,w,S;o(this,_);for(var k=arguments.length,D=Array(k),C=0;C1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){i(_,d);function _(){var g,b,w,S;o(this,_);for(var k=arguments.length,D=Array(k),C=0;C1&&arguments[1]!==void 0?arguments[1]:!0;o[l]=u};return r===0&&a("first-child"),r===n-1&&a("last-child"),(r===0||r%2===0)&&a("even"),Math.abs(r%2)===1&&a("odd"),a("nth-child",r),o};return lp.default=t,lp}var e2;function PV(){if(e2)return Qr;e2=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.ReactCSS=Qr.loop=Qr.handleActive=Qr.handleHover=Qr.hover=void 0;var t=rV(),e=_(t),r=TV(),n=_(r),o=OV(),a=_(o),i=DV(),l=_(i),u=MV(),f=_(u),h=NV(),d=_(h);function _(b){return b&&b.__esModule?b:{default:b}}Qr.hover=l.default,Qr.handleHover=l.default,Qr.handleActive=f.default,Qr.loop=d.default;var g=Qr.ReactCSS=function(w){for(var S=arguments.length,k=Array(S>1?S-1:0),D=1;Dl?_=1:_=Math.round(d*100/l)/100,r.a!==_)return{h:r.h,s:r.s,l:r.l,a:_,source:"rgb"}}else{var g=void 0;if(h<0?g=0:h>i?g=1:g=Math.round(h*100/i)/100,o!==g)return{h:r.h,s:r.s,l:r.l,a:g,source:"rgb"}}return null},lv={},AV=function(e,r,n,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=n*2,a.height=n*2;var i=a.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,a.width,a.height),i.fillStyle=r,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),a.toDataURL()):null},IV=function(e,r,n,o){var a=e+"-"+r+"-"+n+(o?"-server":"");if(lv[a])return lv[a];var i=AV(e,r,n,o);return lv[a]=i,i},t2=Object.assign||function(t){for(var e=1;e{if(!i.trim())return;const l=i.indexOf(":");if(l!==-1){const u=i.substring(0,l).trim();let f=i.substring(l+1).trim();f=f.replace(/^['"]|['"]$/g,""),f==="true"?r[u]=!0:f==="false"?r[u]=!1:parseFloat(f).toString()===r[u]?r[u]=parseFloat(f):r[u]=f}else r[i.trim()]=!0}),e=e.substring(n+7))}return{header:r,body:e}}static MDremoveDocsify(e){const r=e.match(/{docsify-[^}]*}/g);return r&&r.forEach(n=>e=e.replace(n,"")),e}static generateFile(e,r){const n=document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){const r=e&4294901760,n=m_[e];let o;return n?o=[n]:e&1?o=[m_[1],`0x${(e&65534).toString(16)}`]:e&2?o=[m_[2],`0x${(e&65533).toString(16)}`]:o=[`0x${e.toString(16)}`],r&&o.push(`0x${(r>>16).toString(16).toUpperCase()}`),o}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){var o;const r=(o=e==null?void 0:e.common)==null?void 0:o.states;let n;if(r)if(typeof r=="string"&&r[0]==="{")try{n=JSON.parse(r)}catch{console.error(`Cannot parse states: ${r}`),n=null}else if(typeof r=="string"){const a=r.split(";");n={};for(let i=0;in[i]=a):(e==null?void 0:e.common.type)==="string"?r.forEach(a=>n[a]=a):(e==null?void 0:e.common.type)==="boolean"&&(n.false=r[0],n.true=r[1])):typeof r=="object"&&(n=r);return n||null}static async getSvg(e){const n=await(await fetch(e)).blob();return new Promise(o=>{const a=new FileReader;a.onload=()=>{var i;return o(((i=a.result)==null?void 0:i.toString())||"")},a.readAsDataURL(n)})}static detectMimeType(e){const r=Object.keys(KC).find(n=>e.startsWith(n));return r?KC[r]:null}static isStableRepository(e){return!!(typeof e=="string"&&e.toLowerCase().startsWith("stable")||e&&typeof e!="string"&&e.find(r=>r.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,...r){const n={};for(let o=0;o{if(typeof r[o][a]=="function")n[a]=r[o][a](e);else if(typeof r[o][a]=="object"){const i=r[o][a];n[a]={},Object.keys(i).forEach(l=>{typeof i[l]=="function"?n[a][l]=i(e):(i[l]||i[l]===0)&&(n[a][l]=i[l])})}else(r[o][a]||r[o][a]===0)&&(n[a]=r[o][a])});return n}};we(At,"namespace",uo),we(At,"INSTANCES","instances"),we(At,"dateFormat",["DD","MM"]),we(At,"FORBIDDEN_CHARS",/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu);let ht=At;const __={buttonIcon:{marginRight:8}};class OXe extends y.Component{constructor(r){super(r);we(this,"isIFrame");const n=r.newReact===void 0?!0:r.newReact;if(r.isIFrame!==void 0)this.isIFrame=r.isIFrame;else try{this.isIFrame=!n&&window.self!==window.top}catch{this.isIFrame=!n}}render(){const r=this.props.noTextOnButtons,n={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},o={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(o.minHeight=48),this.props.error&&(n.border="1px solid red"),y.createElement(Bb,{style:o},y.createElement(Cs,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:n},y.createElement(S0,{style:r?void 0:__.buttonIcon}),!r&&U.t("ra_Save")),y.createElement(Cs,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...n,marginLeft:10}},y.createElement(S0,{style:r?void 0:__.buttonIcon}),r?"+":U.t("ra_Save and close"),r&&y.createElement(Rs,null)),y.createElement("div",{style:{flexGrow:1}}),y.createElement(Cs,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:n},y.createElement(Rs,{style:r?void 0:__.buttonIcon}),!r&&U.t("ra_Close")))}}const ZC={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class RH extends $.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let r=!1;this.props.suppressQuestionMinutes&&(r=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,r?Date.now()>r&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),r=!1):r=!1),this.state={suppress:r}}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):y.createElement(ra,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(e,r)=>{r!=="backdropClick"&&r!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},y.createElement(aa,{id:"ar_confirmation_dialog_title"},this.props.title||U.t("ra_Are you sure?")),y.createElement(oa,null,y.createElement(If,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?y.createElement("br",null):null,this.props.suppressQuestionMinutes?y.createElement(gt,{sx:{"& .FormControlLabel-label":ZC.suppress,"&.FormControlLabel-root":ZC.suppressRoot},control:y.createElement(tn,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||U.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),y.createElement(na,null,y.createElement(Qt,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:y.createElement(Rs,null)},this.props.cancel||U.t("ra_Cancel"))))}}class KM extends $.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return y.createElement(ra,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},y.createElement(aa,{id:"ar_alert_dialog_title"},this.props.title||U.t("ra_Error")),y.createElement(oa,null,y.createElement(If,{id:"ar_alert_dialog_description"},this.props.text||U.t("ra_Unknown error!"))),y.createElement(na,null,y.createElement(Qt,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:y.createElement(Hs,null)},U.t("ra_Ok"))))}}var Qr={},Di={},g_,QC;function ZM(){if(QC)return g_;QC=1;var t=typeof Ld=="object"&&Ld&&Ld.Object===Object&&Ld;return g_=t,g_}var y_,e$;function Do(){if(e$)return y_;e$=1;var t=ZM(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return y_=r,y_}var v_,t$;function Eu(){if(t$)return v_;t$=1;var t=Do(),e=t.Symbol;return v_=e,v_}var b_,r$;function AH(){if(r$)return b_;r$=1;var t=Eu(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function a(i){var l=r.call(i,o),u=i[o];try{i[o]=void 0;var f=!0}catch{}var h=n.call(i);return f&&(l?i[o]=u:delete i[o]),h}return b_=a,b_}var w_,n$;function IH(){if(n$)return w_;n$=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return w_=r,w_}var x_,o$;function qs(){if(o$)return x_;o$=1;var t=Eu(),e=AH(),r=IH(),n="[object Null]",o="[object Undefined]",a=t?t.toStringTag:void 0;function i(l){return l==null?l===void 0?o:n:a&&a in Object(l)?e(l):r(l)}return x_=i,x_}var S_,a$;function to(){if(a$)return S_;a$=1;var t=Array.isArray;return S_=t,S_}var k_,s$;function sa(){if(s$)return k_;s$=1;function t(e){return e!=null&&typeof e=="object"}return k_=t,k_}var C_,i$;function jH(){if(i$)return C_;i$=1;var t=qs(),e=to(),r=sa(),n="[object String]";function o(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return C_=o,C_}var $_,c$;function LH(){if(c$)return $_;c$=1;function t(e){return function(r,n,o){for(var a=-1,i=Object(r),l=o(r),u=l.length;u--;){var f=l[e?u:++a];if(n(i[f],f,i)===!1)break}return r}}return $_=t,$_}var E_,l$;function FH(){if(l$)return E_;l$=1;var t=LH(),e=t();return E_=e,E_}var T_,u$;function zH(){if(u$)return T_;u$=1;function t(e,r){for(var n=-1,o=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return P_=e,P_}var R_,g$;function UH(){if(g$)return R_;g$=1;var t=qs(),e=qb(),r=sa(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",l="[object Error]",u="[object Function]",f="[object Map]",h="[object Number]",d="[object Object]",_="[object RegExp]",g="[object Set]",b="[object String]",w="[object WeakMap]",S="[object ArrayBuffer]",k="[object DataView]",D="[object Float32Array]",C="[object Float64Array]",O="[object Int8Array]",M="[object Int16Array]",T="[object Int32Array]",P="[object Uint8Array]",j="[object Uint8ClampedArray]",F="[object Uint16Array]",E="[object Uint32Array]",L={};L[D]=L[C]=L[O]=L[M]=L[T]=L[P]=L[j]=L[F]=L[E]=!0,L[n]=L[o]=L[S]=L[a]=L[k]=L[i]=L[l]=L[u]=L[f]=L[h]=L[d]=L[_]=L[g]=L[b]=L[w]=!1;function G(B){return r(B)&&e(B.length)&&!!L[t(B)]}return R_=G,R_}var A_,y$;function Vb(){if(y$)return A_;y$=1;function t(e){return function(r){return e(r)}}return A_=t,A_}var zl={exports:{}};zl.exports;var v$;function Xb(){return v$||(v$=1,function(t,e){var r=ZM(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,l=function(){try{var u=o&&o.require&&o.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();t.exports=l}(zl,zl.exports)),zl.exports}var I_,b$;function tN(){if(b$)return I_;b$=1;var t=UH(),e=Vb(),r=Xb(),n=r&&r.isTypedArray,o=n?e(n):t;return I_=o,I_}var j_,w$;function rN(){if(w$)return j_;w$=1;var t=zH(),e=QM(),r=to(),n=Hb(),o=eN(),a=tN(),i=Object.prototype,l=i.hasOwnProperty;function u(f,h){var d=r(f),_=!d&&e(f),g=!d&&!_&&n(f),b=!d&&!_&&!g&&a(f),w=d||_||g||b,S=w?t(f.length,String):[],k=S.length;for(var D in f)(h||l.call(f,D))&&!(w&&(D=="length"||g&&(D=="offset"||D=="parent")||b&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||o(D,k)))&&S.push(D);return S}return j_=u,j_}var L_,x$;function Gb(){if(x$)return L_;x$=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return L_=e,L_}var F_,S$;function nN(){if(S$)return F_;S$=1;function t(e,r){return function(n){return e(r(n))}}return F_=t,F_}var z_,k$;function HH(){if(k$)return z_;k$=1;var t=nN(),e=t(Object.keys,Object);return z_=e,z_}var B_,C$;function qH(){if(C$)return B_;C$=1;var t=Gb(),e=HH(),r=Object.prototype,n=r.hasOwnProperty;function o(a){if(!t(a))return e(a);var i=[];for(var l in Object(a))n.call(a,l)&&l!="constructor"&&i.push(l);return i}return B_=o,B_}var W_,$$;function Mc(){if($$)return W_;$$=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return W_=t,W_}var U_,E$;function oN(){if(E$)return U_;E$=1;var t=qs(),e=Mc(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(l){if(!e(l))return!1;var u=t(l);return u==n||u==o||u==r||u==a}return U_=i,U_}var H_,T$;function Lf(){if(T$)return H_;T$=1;var t=oN(),e=qb();function r(n){return n!=null&&e(n.length)&&!t(n)}return H_=r,H_}var q_,O$;function Tu(){if(O$)return q_;O$=1;var t=rN(),e=qH(),r=Lf();function n(o){return r(o)?t(o):e(o)}return q_=n,q_}var V_,D$;function aN(){if(D$)return V_;D$=1;var t=FH(),e=Tu();function r(n,o){return n&&t(n,o,e)}return V_=r,V_}var X_,M$;function sN(){if(M$)return X_;M$=1;function t(e){return e}return X_=t,X_}var G_,N$;function VH(){if(N$)return G_;N$=1;var t=sN();function e(r){return typeof r=="function"?r:t}return G_=e,G_}var J_,P$;function Jb(){if(P$)return J_;P$=1;var t=aN(),e=VH();function r(n,o){return n&&t(n,e(o))}return J_=r,J_}var Y_,R$;function Yb(){if(R$)return Y_;R$=1;var t=nN(),e=t(Object.getPrototypeOf,Object);return Y_=e,Y_}var K_,A$;function XH(){if(A$)return K_;A$=1;var t=qs(),e=Yb(),r=sa(),n="[object Object]",o=Function.prototype,a=Object.prototype,i=o.toString,l=a.hasOwnProperty,u=i.call(Object);function f(h){if(!r(h)||t(h)!=n)return!1;var d=e(h);if(d===null)return!0;var _=l.call(d,"constructor")&&d.constructor;return typeof _=="function"&&_ instanceof _&&i.call(_)==u}return K_=f,K_}var Z_,I$;function iN(){if(I$)return Z_;I$=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,a=Array(o);++n-1}return og=e,og}var ag,U$;function ZH(){if(U$)return ag;U$=1;var t=Ff();function e(r,n){var o=this.__data__,a=t(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return ag=e,ag}var sg,H$;function zf(){if(H$)return sg;H$=1;var t=GH(),e=JH(),r=YH(),n=KH(),o=ZH();function a(i){var l=-1,u=i==null?0:i.length;for(this.clear();++lg))return!1;var w=d.get(i),S=d.get(l);if(w&&S)return w==l&&S==i;var k=-1,D=!0,C=u&o?new t:void 0;for(d.set(i,l),d.set(l,i);++k0&&arguments[0]!==void 0?arguments[0]:[],_=[];return(0,l.default)(d,function(g){Array.isArray(g)?h(g).map(function(b){return _.push(b)}):(0,a.default)(g)?(0,n.default)(g,function(b,w){b===!0&&_.push(w),_.push(w+"-"+b)}):(0,e.default)(g)&&_.push(g)}),_};return Di.default=f,Di}var Mi={},Py,yT;function nV(){if(yT)return Py;yT=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],h=u.default&&(0,n.default)(u.default)||{};return f.map(function(d){var _=u[d];return _&&(0,e.default)(_,function(g,b){h[b]||(h[b]={}),h[b]=o({},h[b],_[b])}),d}),h};return Mi.default=i,Mi}var Ni={},YT;function OV(){if(YT)return Ni;YT=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.autoprefix=void 0;var t=Jb(),e=n(t),r=Object.assign||function(i){for(var l=1;l1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){i(_,d);function _(){var g,b,w,S;o(this,_);for(var k=arguments.length,D=Array(k),C=0;C1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){i(_,d);function _(){var g,b,w,S;o(this,_);for(var k=arguments.length,D=Array(k),C=0;C1&&arguments[1]!==void 0?arguments[1]:!0;o[l]=u};return r===0&&a("first-child"),r===n-1&&a("last-child"),(r===0||r%2===0)&&a("even"),Math.abs(r%2)===1&&a("odd"),a("nth-child",r),o};return lp.default=t,lp}var e2;function PV(){if(e2)return Qr;e2=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.ReactCSS=Qr.loop=Qr.handleActive=Qr.handleHover=Qr.hover=void 0;var t=rV(),e=_(t),r=TV(),n=_(r),o=OV(),a=_(o),i=DV(),l=_(i),u=MV(),f=_(u),h=NV(),d=_(h);function _(b){return b&&b.__esModule?b:{default:b}}Qr.hover=l.default,Qr.handleHover=l.default,Qr.handleActive=f.default,Qr.loop=d.default;var g=Qr.ReactCSS=function(w){for(var S=arguments.length,k=Array(S>1?S-1:0),D=1;Dl?_=1:_=Math.round(d*100/l)/100,r.a!==_)return{h:r.h,s:r.s,l:r.l,a:_,source:"rgb"}}else{var g=void 0;if(h<0?g=0:h>i?g=1:g=Math.round(h*100/i)/100,o!==g)return{h:r.h,s:r.s,l:r.l,a:g,source:"rgb"}}return null},lv={},AV=function(e,r,n,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=n*2,a.height=n*2;var i=a.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,a.width,a.height),i.fillStyle=r,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),a.toDataURL()):null},IV=function(e,r,n,o){var a=e+"-"+r+"-"+n+(o?"-server":"");if(lv[a])return lv[a];var i=AV(e,r,n,o);return lv[a]=i,i},t2=Object.assign||function(t){for(var e=1;e-1},YV=function(e){return Number(String(e).replace(/%/g,""))},KV=1,bt=function(t){qV(e,t);function e(r){UV(this,e);var n=HV(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(o){n.setUpdatedValue(o.target.value,o)},n.handleKeyDown=function(o){var a=YV(o.target.value);if(!isNaN(a)&&JV(o.keyCode)){var i=n.getArrowOffset(),l=o.keyCode===SN?a+i:a-i;n.setUpdatedValue(l,o)}},n.handleDrag=function(o){if(n.props.dragLabel){var a=Math.round(n.props.value+o.movementX);a>=0&&a<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(a),o)}},n.handleMouseDown=function(o){n.props.dragLabel&&(o.preventDefault(),n.handleDrag(o),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(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+KV++,n}return BV(e,[{key:"componentDidUpdate",value:function(n,o){this.props.value!==this.state.value&&(n.value!==this.props.value||o.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(n){return WV({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||VV}},{key:"setUpdatedValue",value:function(n,o){var a=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(a,o),this.setState({value:n})}},{key:"render",value:function(){var n=this,o=ct({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 y.createElement("div",{style:o.wrap},y.createElement("input",{id:this.inputId,style:o.input,ref:function(i){return n.input=i},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?y.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}($.PureComponent||$.Component),ZV=function(e,r,n,o){var a=o.clientWidth,i=o.clientHeight,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,u=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=l-(o.getBoundingClientRect().left+window.pageXOffset),h=u-(o.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var d=void 0;if(h<0)d=359;else if(h>i)d=0;else{var _=-(h*100/i)+100;d=360*_/100}if(n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var g=void 0;if(f<0)g=0;else if(f>a)g=359;else{var b=f*100/a;g=360*b/100}if(n.h!==g)return{h:g,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},QV=function(){function t(e,r){for(var n=0;n-1}function cX(t,e){var r=this.__data__,n=Vf(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function ia(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=mG}function Rc(t){return t!=null&&dw(t.length)&&!cw(t)}function _G(t){return Ua(t)&&Rc(t)}function gG(){return!1}var MN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,u2=MN&&typeof module=="object"&&module&&!module.nodeType&&module,yG=u2&&u2.exports===MN,d2=yG?ro.Buffer:void 0,vG=d2?d2.isBuffer:void 0,Zp=vG||gG,bG="[object Object]",wG=Function.prototype,xG=Object.prototype,NN=wG.toString,SG=xG.hasOwnProperty,kG=NN.call(Object);function CG(t){if(!Ua(t)||Xs(t)!=bG)return!1;var e=ON(t);if(e===null)return!0;var r=SG.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&NN.call(r)==kG}var $G="[object Arguments]",EG="[object Array]",TG="[object Boolean]",OG="[object Date]",DG="[object Error]",MG="[object Function]",NG="[object Map]",PG="[object Number]",RG="[object Object]",AG="[object RegExp]",IG="[object Set]",jG="[object String]",LG="[object WeakMap]",zG="[object ArrayBuffer]",FG="[object DataView]",BG="[object Float32Array]",WG="[object Float64Array]",UG="[object Int8Array]",HG="[object Int16Array]",qG="[object Int32Array]",VG="[object Uint8Array]",XG="[object Uint8ClampedArray]",GG="[object Uint16Array]",JG="[object Uint32Array]",Ut={};Ut[BG]=Ut[WG]=Ut[UG]=Ut[HG]=Ut[qG]=Ut[VG]=Ut[XG]=Ut[GG]=Ut[JG]=!0;Ut[$G]=Ut[EG]=Ut[zG]=Ut[TG]=Ut[FG]=Ut[OG]=Ut[DG]=Ut[MG]=Ut[NG]=Ut[PG]=Ut[RG]=Ut[AG]=Ut[IG]=Ut[jG]=Ut[LG]=!1;function YG(t){return Ua(t)&&dw(t.length)&&!!Ut[Xs(t)]}function KG(t){return function(e){return t(e)}}var PN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Yl=PN&&typeof module=="object"&&module&&!module.nodeType&&module,ZG=Yl&&Yl.exports===PN,dv=ZG&&kN.process,p2=function(){try{var t=Yl&&Yl.require&&Yl.require("util").types;return t||dv&&dv.binding&&dv.binding("util")}catch{}}(),f2=p2&&p2.isTypedArray,pw=f2?KG(f2):YG;function C0(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var QG=Object.prototype,eJ=QG.hasOwnProperty;function tJ(t,e,r){var n=t[e];(!(eJ.call(t,e)&&Ou(n,r))||r===void 0&&!(e in t))&&lw(t,e,r)}function rJ(t,e,r,n){var o=!r;r||(r={});for(var a=-1,i=e.length;++a-1&&t%1==0&&t0){if(++e>=yJ)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var xJ=wJ(gJ);function SJ(t,e){return xJ(mJ(t,e,Gf),t+"")}function kJ(t,e,r){if(!zn(r))return!1;var n=typeof e;return(n=="number"?Rc(r)&&fw(e,r.length):n=="string"&&e in r)?Ou(r[e],t):!1}function CJ(t){return SJ(function(e,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(o--,a):void 0,i&&kJ(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),e=Object(e);++n=e||P<0||d&&j>=a}function k(){var T=pv();if(S(T))return D(T);l=setTimeout(k,w(T))}function D(T){return l=void 0,_&&n?g(T):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),f=0,n=u=o=l=void 0}function O(){return l===void 0?i:D(pv())}function M(){var T=pv(),P=S(T);if(n=arguments,o=this,u=T,P){if(l===void 0)return b(u);if(d)return clearTimeout(l),l=setTimeout(k,e),g(u)}return l===void 0&&(l=setTimeout(k,e)),i}return M.cancel=C,M.flush=O,M}var LJ="Expected a function";function zJ(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError(LJ);return zn(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),jN(t,e,{leading:n,maxWait:e,trailing:o})}var FJ=function(e,r,n){var o=n.getBoundingClientRect(),a=o.width,i=o.height,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,u=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=l-(n.getBoundingClientRect().left+window.pageXOffset),h=u-(n.getBoundingClientRect().top+window.pageYOffset);f<0?f=0:f>a&&(f=a),h<0?h=0:h>i&&(h=i);var d=f/a,_=1-h/i;return{h:r.h,s:d,v:_,a:r.a,source:"hsv"}},BJ=function(){function t(e,r){for(var n=0;n-1}function cX(t,e){var r=this.__data__,n=Vf(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function ia(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=mG}function Rc(t){return t!=null&&dw(t.length)&&!cw(t)}function _G(t){return Ua(t)&&Rc(t)}function gG(){return!1}var MN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,u2=MN&&typeof module=="object"&&module&&!module.nodeType&&module,yG=u2&&u2.exports===MN,d2=yG?ro.Buffer:void 0,vG=d2?d2.isBuffer:void 0,Zp=vG||gG,bG="[object Object]",wG=Function.prototype,xG=Object.prototype,NN=wG.toString,SG=xG.hasOwnProperty,kG=NN.call(Object);function CG(t){if(!Ua(t)||Xs(t)!=bG)return!1;var e=ON(t);if(e===null)return!0;var r=SG.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&NN.call(r)==kG}var $G="[object Arguments]",EG="[object Array]",TG="[object Boolean]",OG="[object Date]",DG="[object Error]",MG="[object Function]",NG="[object Map]",PG="[object Number]",RG="[object Object]",AG="[object RegExp]",IG="[object Set]",jG="[object String]",LG="[object WeakMap]",FG="[object ArrayBuffer]",zG="[object DataView]",BG="[object Float32Array]",WG="[object Float64Array]",UG="[object Int8Array]",HG="[object Int16Array]",qG="[object Int32Array]",VG="[object Uint8Array]",XG="[object Uint8ClampedArray]",GG="[object Uint16Array]",JG="[object Uint32Array]",Ut={};Ut[BG]=Ut[WG]=Ut[UG]=Ut[HG]=Ut[qG]=Ut[VG]=Ut[XG]=Ut[GG]=Ut[JG]=!0;Ut[$G]=Ut[EG]=Ut[FG]=Ut[TG]=Ut[zG]=Ut[OG]=Ut[DG]=Ut[MG]=Ut[NG]=Ut[PG]=Ut[RG]=Ut[AG]=Ut[IG]=Ut[jG]=Ut[LG]=!1;function YG(t){return Ua(t)&&dw(t.length)&&!!Ut[Xs(t)]}function KG(t){return function(e){return t(e)}}var PN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Yl=PN&&typeof module=="object"&&module&&!module.nodeType&&module,ZG=Yl&&Yl.exports===PN,dv=ZG&&kN.process,p2=function(){try{var t=Yl&&Yl.require&&Yl.require("util").types;return t||dv&&dv.binding&&dv.binding("util")}catch{}}(),f2=p2&&p2.isTypedArray,pw=f2?KG(f2):YG;function C0(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var QG=Object.prototype,eJ=QG.hasOwnProperty;function tJ(t,e,r){var n=t[e];(!(eJ.call(t,e)&&Ou(n,r))||r===void 0&&!(e in t))&&lw(t,e,r)}function rJ(t,e,r,n){var o=!r;r||(r={});for(var a=-1,i=e.length;++a-1&&t%1==0&&t0){if(++e>=yJ)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var xJ=wJ(gJ);function SJ(t,e){return xJ(mJ(t,e,Gf),t+"")}function kJ(t,e,r){if(!Fn(r))return!1;var n=typeof e;return(n=="number"?Rc(r)&&fw(e,r.length):n=="string"&&e in r)?Ou(r[e],t):!1}function CJ(t){return SJ(function(e,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(o--,a):void 0,i&&kJ(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),e=Object(e);++n=e||P<0||d&&j>=a}function k(){var T=pv();if(S(T))return D(T);l=setTimeout(k,w(T))}function D(T){return l=void 0,_&&n?g(T):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),f=0,n=u=o=l=void 0}function O(){return l===void 0?i:D(pv())}function M(){var T=pv(),P=S(T);if(n=arguments,o=this,u=T,P){if(l===void 0)return b(u);if(d)return clearTimeout(l),l=setTimeout(k,e),g(u)}return l===void 0&&(l=setTimeout(k,e)),i}return M.cancel=C,M.flush=O,M}var LJ="Expected a function";function FJ(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError(LJ);return Fn(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),jN(t,e,{leading:n,maxWait:e,trailing:o})}var zJ=function(e,r,n){var o=n.getBoundingClientRect(),a=o.width,i=o.height,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,u=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=l-(n.getBoundingClientRect().left+window.pageXOffset),h=u-(n.getBoundingClientRect().top+window.pageYOffset);f<0?f=0:f>a&&(f=a),h<0?h=0:h>i&&(h=i);var d=f/a,_=1-h/i;return{h:r.h,s:d,v:_,a:r.a,source:"hsv"}},BJ=function(){function t(e,r){for(var n=0;n=0,a=!r&&o&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?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 He(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(uY,arguments)},brighten:function(){return this._applyModification(dY,arguments)},darken:function(){return this._applyModification(pY,arguments)},desaturate:function(){return this._applyModification(iY,arguments)},saturate:function(){return this._applyModification(cY,arguments)},greyscale:function(){return this._applyModification(lY,arguments)},spin:function(){return this._applyModification(fY,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(_Y,arguments)},complement:function(){return this._applyCombination(hY,arguments)},monochromatic:function(){return this._applyCombination(gY,arguments)},splitcomplement:function(){return this._applyCombination(mY,arguments)},triad:function(){return this._applyCombination(w2,[3])},tetrad:function(){return this._applyCombination(w2,[4])}};He.fromRatio=function(t,e){if(Qp(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=Wl(t[n]));t=r}return He(t,e)};function rY(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,a=null,i=!1,l=!1;return typeof t=="string"&&(t=xY(t)),Qp(t)=="object"&&(Uo(t.r)&&Uo(t.g)&&Uo(t.b)?(e=nY(t.r,t.g,t.b),i=!0,l=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Uo(t.h)&&Uo(t.s)&&Uo(t.v)?(n=Wl(t.s),o=Wl(t.v),e=aY(t.h,n,o),i=!0,l="hsv"):Uo(t.h)&&Uo(t.s)&&Uo(t.l)&&(n=Wl(t.s),a=Wl(t.l),e=oY(t.h,n,a),i=!0,l="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=zN(r),{ok:i,format:t.format||l,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function nY(t,e,r){return{r:Xt(t,255)*255,g:Xt(e,255)*255,b:Xt(r,255)*255}}function g2(t,e,r){t=Xt(t,255),e=Xt(e,255),r=Xt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,l=(n+o)/2;if(n==o)a=i=0;else{var u=n-o;switch(i=l>.5?u/(2-n-o):u/(n+o),n){case t:a=(e-r)/u+(e1&&(d-=1),d<1/6?f+(h-f)*6*d:d<1/2?h:d<2/3?f+(h-f)*(2/3-d)*6:f}if(e===0)n=o=a=r;else{var l=r<.5?r*(1+e):r+e-r*e,u=2*r-l;n=i(u,l,t+1/3),o=i(u,l,t),a=i(u,l,t-1/3)}return{r:n*255,g:o*255,b:a*255}}function y2(t,e,r){t=Xt(t,255),e=Xt(e,255),r=Xt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,l=n,u=n-o;if(i=n===0?0:u/n,n==o)a=0;else{switch(n){case t:a=(e-r)/u+(e>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(He(n));return a}function gY(t,e){e=e||6;for(var r=He(t).toHsv(),n=r.h,o=r.s,a=r.v,i=[],l=1/e;e--;)i.push(He({h:n,s:o,v:a})),a=(a+l)%1;return i}He.mix=function(t,e,r){r=r===0?0:r||50;var n=He(t).toRgb(),o=He(e).toRgb(),a=r/100,i={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return He(i)};He.readability=function(t,e){var r=He(t),n=He(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};He.isReadable=function(t,e,r){var n=He.readability(t,e),o,a;switch(a=!1,o=SY(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};He.mostReadable=function(t,e,r){var n=null,o=0,a,i,l,u;r=r||{},i=r.includeFallbackColors,l=r.level,u=r.size;for(var f=0;fo&&(o=a,n=He(e[f]));return He.isReadable(t,n,{level:l,size:u})||!i?n:(r.includeFallbackColors=!1,He.mostReadable(t,["#fff","#000"],r))};var $0=He.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"},yY=He.hexNames=vY($0);function vY(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function zN(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Xt(t,e){bY(t)&&(t="100%");var r=wY(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Kf(t){return Math.min(1,Math.max(0,t))}function hn(t){return parseInt(t,16)}function bY(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function wY(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Yn(t){return t.length==1?"0"+t:""+t}function Wl(t){return t<=1&&(t=t*100+"%"),t}function FN(t){return Math.round(parseFloat(t)*255).toString(16)}function x2(t){return hn(t)/255}var Jn=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),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 Uo(t){return!!Jn.CSS_UNIT.exec(t)}function xY(t){t=t.replace(eY,"").replace(tY,"").toLowerCase();var e=!1;if($0[t])t=$0[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Jn.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=Jn.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Jn.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=Jn.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Jn.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=Jn.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Jn.hex8.exec(t))?{r:hn(r[1]),g:hn(r[2]),b:hn(r[3]),a:x2(r[4]),format:e?"name":"hex8"}:(r=Jn.hex6.exec(t))?{r:hn(r[1]),g:hn(r[2]),b:hn(r[3]),format:e?"name":"hex"}:(r=Jn.hex4.exec(t))?{r:hn(r[1]+""+r[1]),g:hn(r[2]+""+r[2]),b:hn(r[3]+""+r[3]),a:x2(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=Jn.hex3.exec(t))?{r:hn(r[1]+""+r[1]),g:hn(r[2]+""+r[2]),b:hn(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function SY(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var S2=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,o=0;return QJ(r,function(a){if(e[a]&&(n+=1,isNaN(e[a])||(o+=1),a==="s"||a==="l")){var i=/^\d+%$/;i.test(e[a])&&(o+=1)}}),n===o?e:!1},Ul=function(e,r){var n=e.hex?He(e.hex):He(e),o=n.toHsl(),a=n.toHsv(),i=n.toRgb(),l=n.toHex();o.s===0&&(o.h=r||0,a.h=r||0);var u=l==="000000"&&i.a===0;return{hsl:o,hex:u?"transparent":"#"+l,rgb:i,hsv:a,oldHue:e.h||r||o.h,source:e.source}},Ja=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&&He(e).isValid()},mw=function(e){if(!e)return"#fff";var r=Ul(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},fv=function(e,r){var n=e.replace("°","");return He(r+" ("+n+")")._ok},El=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){MY(o,n);function o(){var a,i,l,u;DY(this,o);for(var f=arguments.length,h=Array(f),d=0;dl))return!1;var f=a.get(t),h=a.get(e);if(f&&h)return f==e&&h==t;var d=-1,_=!0,g=r&UY?new ef:void 0;for(a.set(t,e),a.set(e,t);++d=0||Object.prototype.hasOwnProperty.call(i,f)&&(u[f]=i[f]);return u}var a=24;return dp.default=function(i){var l=i.fill,u=l===void 0?"currentColor":l,f=i.width,h=f===void 0?a:f,d=i.height,_=d===void 0?a:d,g=i.style,b=g===void 0?{}:g,w=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:u,width:h,height:_},b)},w),r.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"}))},dp}var nZ=rZ();const oZ=Ha(nZ);var aZ=function(){function t(e,r){for(var n=0;n1&&(o.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(o.a*100)/100,source:"rgb"},a)):(o.h||o.s||o.l)&&(typeof o.s=="string"&&o.s.includes("%")&&(o.s=o.s.replace("%","")),typeof o.l=="string"&&o.l.includes("%")&&(o.l=o.l.replace("%","")),o.s==1?o.s=.01:o.l==1&&(o.l=.01),n.props.onChange({h:o.h||n.props.hsl.h,s:Number(z2(o.s)?n.props.hsl.s:o.s),l:Number(z2(o.l)?n.props.hsl.l:o.l),source:"hsl"},a))},n.showHighlight=function(o){o.currentTarget.style.background="#eee"},n.hideHighlight=function(o){o.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return aZ(e,[{key:"render",value:function(){var n=this,o=ct({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),a=void 0;return this.state.view==="hex"?a=y.createElement("div",{style:o.fields,className:"flexbox-fix"},y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=y.createElement("div",{style:o.fields,className:"flexbox-fix"},y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),y.createElement("div",{style:o.alpha},y.createElement(bt,{style:{input:o.input,label:o.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=y.createElement("div",{style:o.fields,className:"flexbox-fix"},y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),y.createElement("div",{style:o.alpha},y.createElement(bt,{style:{input:o.input,label:o.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),y.createElement("div",{style:o.wrap,className:"flexbox-fix"},a,y.createElement("div",{style:o.toggle},y.createElement("div",{style:o.icon,onClick:this.toggleViews,ref:function(l){return n.icon=l}},y.createElement(oZ,{style:o.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.hsl.a!==1&&o.view==="hex"?{view:"rgb"}:null}}]),e}(y.Component);YN.defaultProps={view:"hex"};var B2=function(){var e=ct({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 y.createElement("div",{style:e.picker})},lZ=function(){var e=ct({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return y.createElement("div",{style:e.picker})},ww=function(e){var r=e.width,n=e.onChange,o=e.disableAlpha,a=e.rgb,i=e.hsl,l=e.hsv,u=e.hex,f=e.renderers,h=e.styles,d=h===void 0?{}:h,_=e.className,g=_===void 0?"":_,b=e.defaultView,w=ct(cn({default:{picker:{width:r,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("+a.r+", "+a.g+", "+a.b+", "+a.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"}}},d),{disableAlpha:o});return y.createElement("div",{style:w.picker,className:"chrome-picker "+g},y.createElement("div",{style:w.saturation},y.createElement(Yf,{style:w.Saturation,hsl:i,hsv:l,pointer:lZ,onChange:n})),y.createElement("div",{style:w.body},y.createElement("div",{style:w.controls,className:"flexbox-fix"},y.createElement("div",{style:w.color},y.createElement("div",{style:w.swatch},y.createElement("div",{style:w.active}),y.createElement(Nc,{renderers:f}))),y.createElement("div",{style:w.toggles},y.createElement("div",{style:w.hue},y.createElement(Pc,{style:w.Hue,hsl:i,pointer:B2,onChange:n})),y.createElement("div",{style:w.alpha},y.createElement(iw,{style:w.Alpha,rgb:a,hsl:i,pointer:B2,renderers:f,onChange:n})))),y.createElement(YN,{rgb:a,hsl:i,hex:u,view:b,onChange:n,disableAlpha:o})))};ww.propTypes={width:se.oneOfType([se.string,se.number]),disableAlpha:se.bool,styles:se.object,defaultView:se.oneOf(["hex","rgb","hsl"])};ww.defaultProps={width:225,disableAlpha:!1,styles:{}};ln(ww);var uZ=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.active,l=ct({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:mw(r),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:i,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return y.createElement(Ys,{style:l.color,color:r,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},y.createElement("div",{style:l.dot}))},dZ=function(e){var r=e.hex,n=e.rgb,o=e.onChange,a=ct({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},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"}}}),i=function(u,f){u.r||u.g||u.b?o({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},f):o({hex:u.hex,source:"hex"},f)};return y.createElement("div",{style:a.fields,className:"flexbox-fix"},y.createElement("div",{style:a.active}),y.createElement(bt,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:r,onChange:i}),y.createElement(bt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:i}),y.createElement(bt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:i}),y.createElement(bt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:i}))},xw=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.colors,a=e.hex,i=e.rgb,l=e.styles,u=l===void 0?{}:l,f=e.className,h=f===void 0?"":f,d=ct(cn({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),_=function(b,w){b.hex?Ja(b.hex)&&r({hex:b.hex,source:"hex"},w):r(b,w)};return y.createElement(Du,{style:d.Compact,styles:u},y.createElement("div",{style:d.compact,className:"compact-picker "+h},y.createElement("div",null,Ks(o,function(g){return y.createElement(uZ,{key:g,color:g,active:g.toLowerCase()===a,onClick:_,onSwatchHover:n})}),y.createElement("div",{style:d.clear})),y.createElement(dZ,{hex:a,rgb:i,onChange:_})))};xw.propTypes={colors:se.arrayOf(se.string),styles:se.object};xw.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"],styles:{}};ln(xw);var pZ=function(e){var r=e.hover,n=e.color,o=e.onClick,a=e.onSwatchHover,i={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=ct({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:i}},{hover:r});return y.createElement("div",{style:l.swatch},y.createElement(Ys,{color:n,onClick:o,onHover:a,focusStyle:i}))};const fZ=sw.handleHover(pZ);var Sw=function(e){var r=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,i=e.triangle,l=e.styles,u=l===void 0?{}:l,f=e.className,h=f===void 0?"":f,d=ct(cn({default:{card:{width:r,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)"}}},u),{"hide-triangle":i==="hide","top-left-triangle":i==="top-left","top-right-triangle":i==="top-right","bottom-left-triangle":i==="bottom-left","bottom-right-triangle":i==="bottom-right"}),_=function(b,w){return o({hex:b,source:"hex"},w)};return y.createElement("div",{style:d.card,className:"github-picker "+h},y.createElement("div",{style:d.triangleShadow}),y.createElement("div",{style:d.triangle}),Ks(n,function(g){return y.createElement(fZ,{color:g,key:g,onClick:_,onSwatchHover:a})}))};Sw.propTypes={width:se.oneOfType([se.string,se.number]),colors:se.arrayOf(se.string),triangle:se.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:se.object};Sw.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};ln(Sw);var hZ=function(e){var r=e.direction,n=ct({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:r==="vertical"});return y.createElement("div",{style:n.picker})},mZ=Object.assign||function(t){for(var e=1;e.5});return y.createElement("div",{style:n.picker})},vZ=function(){var e=ct({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 y.createElement("div",{style:e.pointer},y.createElement("div",{style:e.left},y.createElement("div",{style:e.leftInside})),y.createElement("div",{style:e.right},y.createElement("div",{style:e.rightInside})))},W2=function(e){var r=e.onClick,n=e.label,o=e.children,a=e.active,i=ct({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:a});return y.createElement("div",{style:i.button,onClick:r},n||o)},bZ=function(e){var r=e.rgb,n=e.currentColor,o=ct({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.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 y.createElement("div",null,y.createElement("div",{style:o.label},"new"),y.createElement("div",{style:o.swatches},y.createElement("div",{style:o.new}),y.createElement("div",{style:o.current})),y.createElement("div",{style:o.label},"current"))},wZ=function(){function t(e,r){for(var n=0;n100&&(h.a=100),h.a/=100,r({h:o.h,s:o.s,l:o.l,a:h.a,source:"rgb"},d))};return y.createElement("div",{style:l.fields,className:"flexbox-fix"},y.createElement("div",{style:l.double},y.createElement(bt,{style:{input:l.input,label:l.label},label:"hex",value:a.replace("#",""),onChange:u})),y.createElement("div",{style:l.single},y.createElement(bt,{style:{input:l.input,label:l.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),y.createElement("div",{style:l.single},y.createElement(bt,{style:{input:l.input,label:l.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),y.createElement("div",{style:l.single},y.createElement(bt,{style:{input:l.input,label:l.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),y.createElement("div",{style:l.alpha},y.createElement(bt,{style:{input:l.input,label:l.label},label:"a",value:Math.round(n.a*100),onChange:u,dragLabel:"true",dragMax:"100"})))},$Z=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(i,f)&&(u[f]=i[f]);return u}var a=24;return pp.default=function(i){var l=i.fill,u=l===void 0?"currentColor":l,f=i.width,h=f===void 0?a:f,d=i.height,_=d===void 0?a:d,g=i.style,b=g===void 0?{}:g,w=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:u,width:h,height:_},b)},w),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},pp}var MZ=DZ();const NZ=Ha(MZ);var PZ=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.first,l=e.last,u=e.active,f=ct({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:mw(r),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:i,last:l,active:u,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return y.createElement(Ys,{color:r,style:f.color,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},y.createElement("div",{style:f.check},y.createElement(NZ,null)))},RZ=function(e){var r=e.onClick,n=e.onSwatchHover,o=e.group,a=e.active,i=ct({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return y.createElement("div",{style:i.group},Ks(o,function(l,u){return y.createElement(PZ,{key:l,color:l,active:l.toLowerCase()===a,first:u===0,last:u===o.length-1,onClick:r,onSwatchHover:n})}))},Tw=function(e){var r=e.width,n=e.height,o=e.onChange,a=e.onSwatchHover,i=e.colors,l=e.hex,u=e.styles,f=u===void 0?{}:u,h=e.className,d=h===void 0?"":h,_=ct(cn({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},f)),g=function(w,S){return o({hex:w,source:"hex"},S)};return y.createElement("div",{style:_.picker,className:"swatches-picker "+d},y.createElement(Du,null,y.createElement("div",{style:_.overflow},y.createElement("div",{style:_.body},Ks(i,function(b){return y.createElement(RZ,{key:b.toString(),group:b,active:l,onClick:g,onSwatchHover:a})}),y.createElement("div",{style:_.clear})))))};Tw.propTypes={width:se.oneOfType([se.string,se.number]),height:se.oneOfType([se.string,se.number]),colors:se.arrayOf(se.arrayOf(se.string)),styles:se.object};Tw.defaultProps={width:320,height:240,colors:[[Bi[900],Bi[700],Bi[500],Bi[300],Bi[100]],[Wi[900],Wi[700],Wi[500],Wi[300],Wi[100]],[Ui[900],Ui[700],Ui[500],Ui[300],Ui[100]],[Hi[900],Hi[700],Hi[500],Hi[300],Hi[100]],[qi[900],qi[700],qi[500],qi[300],qi[100]],[Vi[900],Vi[700],Vi[500],Vi[300],Vi[100]],[Xi[900],Xi[700],Xi[500],Xi[300],Xi[100]],[Gi[900],Gi[700],Gi[500],Gi[300],Gi[100]],[Ji[900],Ji[700],Ji[500],Ji[300],Ji[100]],["#194D33",Hl[700],Hl[500],Hl[300],Hl[100]],[Yi[900],Yi[700],Yi[500],Yi[300],Yi[100]],[Ki[900],Ki[700],Ki[500],Ki[300],Ki[100]],[Zi[900],Zi[700],Zi[500],Zi[300],Zi[100]],[Qi[900],Qi[700],Qi[500],Qi[300],Qi[100]],[ec[900],ec[700],ec[500],ec[300],ec[100]],[tc[900],tc[700],tc[500],tc[300],tc[100]],[rc[900],rc[700],rc[500],rc[300],rc[100]],[nc[900],nc[700],nc[500],nc[300],nc[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};ln(Tw);var Ow=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,i=e.width,l=e.triangle,u=e.styles,f=u===void 0?{}:u,h=e.className,d=h===void 0?"":h,_=ct(cn({default:{card:{width:i,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"}}},f),{"hide-triangle":l==="hide","top-left-triangle":l==="top-left","top-right-triangle":l==="top-right"}),g=function(w,S){Ja(w)&&r({hex:w,source:"hex"},S)};return y.createElement("div",{style:_.card,className:"twitter-picker "+d},y.createElement("div",{style:_.triangleShadow}),y.createElement("div",{style:_.triangle}),y.createElement("div",{style:_.body},Ks(a,function(b,w){return y.createElement(Ys,{key:w,color:b,hex:b,style:_.swatch,onClick:g,onHover:n,focusStyle:{boxShadow:"0 0 4px "+b}})}),y.createElement("div",{style:_.hash},"#"),y.createElement(bt,{label:null,style:{input:_.input},value:o.replace("#",""),onChange:g}),y.createElement("div",{style:_.clear})))};Ow.propTypes={width:se.oneOfType([se.string,se.number]),triangle:se.oneOf(["hide","top-left","top-right"]),colors:se.arrayOf(se.string),styles:se.object};Ow.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};ln(Ow);var Dw=function(e){var r=ct({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 y.createElement("div",{style:r.picker})};Dw.propTypes={hsl:se.shape({h:se.number,s:se.number,l:se.number,a:se.number})};Dw.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Mw=function(e){var r=ct({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 y.createElement("div",{style:r.picker})};Mw.propTypes={hsl:se.shape({h:se.number,s:se.number,l:se.number,a:se.number})};Mw.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var AZ=function(e){var r=e.onChange,n=e.rgb,o=e.hsl,a=e.hex,i=e.hsv,l=function(g,b){if(g.hex)Ja(g.hex)&&r({hex:g.hex,source:"hex"},b);else if(g.rgb){var w=g.rgb.split(",");fv(g.rgb,"rgb")&&r({r:w[0],g:w[1],b:w[2],a:1,source:"rgb"},b)}else if(g.hsv){var S=g.hsv.split(",");fv(g.hsv,"hsv")&&(S[2]=S[2].replace("%",""),S[1]=S[1].replace("%",""),S[0]=S[0].replace("°",""),S[1]==1?S[1]=.01:S[2]==1&&(S[2]=.01),r({h:Number(S[0]),s:Number(S[1]),v:Number(S[2]),source:"hsv"},b))}else if(g.hsl){var k=g.hsl.split(",");fv(g.hsl,"hsl")&&(k[2]=k[2].replace("%",""),k[1]=k[1].replace("%",""),k[0]=k[0].replace("°",""),d[1]==1?d[1]=.01:d[2]==1&&(d[2]=.01),r({h:Number(k[0]),s:Number(k[1]),v:Number(k[2]),source:"hsl"},b))}},u=ct({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"}}}),f=n.r+", "+n.g+", "+n.b,h=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.l*100)+"%",d=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.v*100)+"%";return y.createElement("div",{style:u.wrap,className:"flexbox-fix"},y.createElement("div",{style:u.fields},y.createElement("div",{style:u.double},y.createElement(bt,{style:{input:u.input,label:u.label},label:"hex",value:a,onChange:l})),y.createElement("div",{style:u.column},y.createElement("div",{style:u.single},y.createElement(bt,{style:{input:u.input2,label:u.label2},label:"rgb",value:f,onChange:l})),y.createElement("div",{style:u.single},y.createElement(bt,{style:{input:u.input2,label:u.label2},label:"hsv",value:d,onChange:l})),y.createElement("div",{style:u.single},y.createElement(bt,{style:{input:u.input2,label:u.label2},label:"hsl",value:h,onChange:l})))))},Nw=function(e){var r=e.width,n=e.onChange,o=e.rgb,a=e.hsl,i=e.hsv,l=e.hex,u=e.header,f=e.styles,h=f===void 0?{}:f,d=e.className,_=d===void 0?"":d,g=ct(cn({default:{picker:{width:r,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("+o.r+", "+o.g+", "+o.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"}}},h));return y.createElement("div",{style:g.picker,className:"google-picker "+_},y.createElement("div",{style:g.head},u),y.createElement("div",{style:g.swatch}),y.createElement("div",{style:g.saturation},y.createElement(Yf,{hsl:a,hsv:i,pointer:Dw,onChange:n})),y.createElement("div",{style:g.body},y.createElement("div",{style:g.controls,className:"flexbox-fix"},y.createElement("div",{style:g.hue},y.createElement(Pc,{style:g.Hue,hsl:a,radius:"4px",pointer:Mw,onChange:n}))),y.createElement(AZ,{rgb:o,hsl:a,hex:l,hsv:i,onChange:n})))};Nw.propTypes={width:se.oneOfType([se.string,se.number]),styles:se.object,header:se.string};Nw.defaultProps={width:652,styles:{},header:"Color picker"};ln(Nw);var mv={exports:{}},H2;function Mo(){return H2||(H2=1,function(t,e){(function(n,o){t.exports=o()})(globalThis,()=>(()=>{var r={949:(i,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.CronParser=void 0;var f=u(515),h=function(){function d(_,g,b){g===void 0&&(g=!0),b===void 0&&(b=!1),this.expression=_,this.dayOfWeekStartIndexZero=g,this.monthStartIndexZero=b}return d.prototype.parse=function(){var _,g,b=(_=this.expression)!==null&&_!==void 0?_:"";if(b.startsWith("@")){var w=this.parseSpecial(this.expression);g=this.extractParts(w)}else g=this.extractParts(this.expression);return this.normalize(g),this.validate(g),g},d.prototype.parseSpecial=function(_){var g={"@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 * * * *"},b=g[_];if(!b)throw new Error("Unknown special expression.");return b},d.prototype.extractParts=function(_){if(!this.expression)throw new Error("cron expression is empty");for(var g=_.trim().split(/[ ]+/),b=0;b7)throw new Error("Expression has ".concat(g.length," parts; too many!"));return g},d.prototype.normalize=function(_){var g=this;if(_[3]=_[3].replace("?","*"),_[5]=_[5].replace("?","*"),_[2]=_[2].replace("?","*"),_[0].indexOf("0/")==0&&(_[0]=_[0].replace("0/","*/")),_[1].indexOf("0/")==0&&(_[1]=_[1].replace("0/","*/")),_[2].indexOf("0/")==0&&(_[2]=_[2].replace("0/","*/")),_[3].indexOf("1/")==0&&(_[3]=_[3].replace("1/","*/")),_[4].indexOf("1/")==0&&(_[4]=_[4].replace("1/","*/")),_[6].indexOf("1/")==0&&(_[6]=_[6].replace("1/","*/")),_[5]=_[5].replace(/(^\d)|([^#/\s]\d)/g,function(M){var T=M.replace(/\D/,""),P=T;return g.dayOfWeekStartIndexZero?T=="7"&&(P="0"):P=(parseInt(T)-1).toString(),M.replace(T,P)}),_[5]=="L"&&(_[5]="6"),_[3]=="?"&&(_[3]="*"),_[3].indexOf("W")>-1&&(_[3].indexOf(",")>-1||_[3].indexOf("-")>-1))throw new 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 b={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var w in b)_[5]=_[5].replace(new RegExp(w,"gi"),b[w].toString());_[4]=_[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(M){var T=M.replace(/\D/,""),P=T;return g.monthStartIndexZero&&(P=(parseInt(T)+1).toString()),M.replace(T,P)});var S={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 k in S)_[4]=_[4].replace(new RegExp(k,"gi"),S[k].toString());_[0]=="0"&&(_[0]=""),!/\*|\-|\,|\//.test(_[2])&&(/\*|\//.test(_[1])||/\*|\//.test(_[0]))&&(_[2]+="-".concat(_[2]));for(var D=0;D<_.length;D++)if(_[D].indexOf(",")!=-1&&(_[D]=_[D].split(",").filter(function(M){return M!==""}).join(",")||"*"),_[D]=="*/1"&&(_[D]="*"),_[D].indexOf("/")>-1&&!/^\*|\-|\,/.test(_[D])){var C=null;switch(D){case 4:C="12";break;case 5:C="6";break;case 6:C="9999";break;default:C=null;break}if(C!==null){var O=_[D].split("/");_[D]="".concat(O[0],"-").concat(C,"/").concat(O[1])}}},d.prototype.validate=function(_){this.assertNoInvalidCharacters("DOW",_[5]),this.assertNoInvalidCharacters("DOM",_[3]),this.validateRange(_)},d.prototype.validateRange=function(_){f.default.secondRange(_[0]),f.default.minuteRange(_[1]),f.default.hourRange(_[2]),f.default.dayOfMonthRange(_[3]),f.default.monthRange(_[4],this.monthStartIndexZero),f.default.dayOfWeekRange(_[5],this.dayOfWeekStartIndexZero)},d.prototype.assertNoInvalidCharacters=function(_,g){var b=g.match(/[A-KM-VX-Z]+/gi);if(b&&b.length)throw new Error("".concat(_," part contains invalid values: '").concat(b.toString(),"'"))},d}();l.CronParser=h},333:(i,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ExpressionDescriptor=void 0;var f=u(823),h=u(949),d=function(){function _(g,b){if(this.expression=g,this.options=b,this.expressionParts=new Array(5),!this.options.locale&&_.defaultLocale&&(this.options.locale=_.defaultLocale),!_.locales[this.options.locale]){var w=Object.keys(_.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(w,"'.")),this.options.locale=w}this.i18n=_.locales[this.options.locale],b.use24HourTimeFormat===void 0&&(b.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return _.toString=function(g,b){var w=b===void 0?{}:b,S=w.throwExceptionOnParseError,k=S===void 0?!0:S,D=w.verbose,C=D===void 0?!1:D,O=w.dayOfWeekStartIndexZero,M=O===void 0?!0:O,T=w.monthStartIndexZero,P=T===void 0?!1:T,j=w.use24HourTimeFormat,z=w.locale,E=z===void 0?null:z,L=w.tzOffset,G=L===void 0?0:L,B={throwExceptionOnParseError:k,verbose:C,dayOfWeekStartIndexZero:M,monthStartIndexZero:P,use24HourTimeFormat:j,locale:E,tzOffset:G},F=new _(g,B);return F.getFullDescription()},_.initialize=function(g,b){b===void 0&&(b="en"),_.specialCharacters=["/","-",",","*"],_.defaultLocale=b,g.load(_.locales)},_.prototype.getFullDescription=function(){var g="";try{var b=new h.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=b.parse();var w=this.getTimeOfDayDescription(),S=this.getDayOfMonthDescription(),k=this.getMonthDescription(),D=this.getDayOfWeekDescription(),C=this.getYearDescription();g+=w+S+D+k+C,g=this.transformVerbosity(g,!!this.options.verbose),g=g.charAt(0).toLocaleUpperCase()+g.substr(1)}catch(O){if(!this.options.throwExceptionOnParseError)g=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(O)}return g},_.prototype.getTimeOfDayDescription=function(){var g=this.expressionParts[0],b=this.expressionParts[1],w=this.expressionParts[2],S="";if(!f.StringUtilities.containsAny(b,_.specialCharacters)&&!f.StringUtilities.containsAny(w,_.specialCharacters)&&!f.StringUtilities.containsAny(g,_.specialCharacters))S+=this.i18n.atSpace()+this.formatTime(w,b,g);else if(!g&&b.indexOf("-")>-1&&!(b.indexOf(",")>-1)&&!(b.indexOf("/")>-1)&&!f.StringUtilities.containsAny(w,_.specialCharacters)){var k=b.split("-");S+=f.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(w,k[0],""),this.formatTime(w,k[1],""))}else if(!g&&w.indexOf(",")>-1&&w.indexOf("-")==-1&&w.indexOf("/")==-1&&!f.StringUtilities.containsAny(b,_.specialCharacters)){var D=w.split(",");S+=this.i18n.at();for(var C=0;C1){var k=S[S.length-1].index;w=w.substring(0,k)+":59"+w.substring(k+3)}}return w},_.prototype.getDayOfWeekDescription=function(){var g=this,b=this.i18n.daysOfTheWeek(),w=null;return this.expressionParts[5]=="*"?w="":w=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(S,k){var D=S;S.indexOf("#")>-1?D=S.substring(0,S.indexOf("#")):S.indexOf("L")>-1&&(D=D.replace("L",""));var C=parseInt(D);if(g.options.tzOffset){var O=g.expressionParts[2],M=parseInt(O)+(g.options.tzOffset?g.options.tzOffset:0);M>=24?C++:M<0&&C--,C>6?C=0:C<0&&(C=6)}var T=g.i18n.daysOfTheWeekInCase?g.i18n.daysOfTheWeekInCase(k)[C]:b[C];if(S.indexOf("#")>-1){var P=null,j=S.substring(S.indexOf("#")+1),z=S.substring(0,S.indexOf("#"));switch(j){case"1":P=g.i18n.first(z);break;case"2":P=g.i18n.second(z);break;case"3":P=g.i18n.third(z);break;case"4":P=g.i18n.fourth(z);break;case"5":P=g.i18n.fifth(z);break}T=P+" "+T}return T},function(S){return parseInt(S)==1?"":f.StringUtilities.format(g.i18n.commaEveryX0DaysOfTheWeek(S),S)},function(S){var k=S.substring(0,S.indexOf("-")),D=g.expressionParts[3]!="*";return D?g.i18n.commaAndX0ThroughX1(k):g.i18n.commaX0ThroughX1(k)},function(S){var k=null;if(S.indexOf("#")>-1){var D=S.substring(S.indexOf("#")+1),C=S.substring(0,S.indexOf("#"));k=g.i18n.commaOnThe(D,C).trim()+g.i18n.spaceX0OfTheMonth()}else if(S.indexOf("L")>-1)k=g.i18n.commaOnTheLastX0OfTheMonth(S.replace("L",""));else{var O=g.expressionParts[3]!="*";k=O?g.i18n.commaAndOnX0():g.i18n.commaOnlyOnX0(S)}return k}),w},_.prototype.getMonthDescription=function(){var g=this,b=this.i18n.monthsOfTheYear(),w=this.getSegmentDescription(this.expressionParts[4],"",function(S,k){return k&&g.i18n.monthsOfTheYearInCase?g.i18n.monthsOfTheYearInCase(k)[parseInt(S)-1]:b[parseInt(S)-1]},function(S){return parseInt(S)==1?"":f.StringUtilities.format(g.i18n.commaEveryX0Months(S),S)},function(S){return g.i18n.commaMonthX0ThroughMonthX1()||g.i18n.commaX0ThroughX1()},function(S){return g.i18n.commaOnlyInMonthX0?g.i18n.commaOnlyInMonthX0():g.i18n.commaOnlyInX0()});return w},_.prototype.getDayOfMonthDescription=function(){var g=this,b=null,w=this.expressionParts[3];switch(w){case"L":b=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":b=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var S=w.match(/(\d{1,2}W)|(W\d{1,2})/);if(S){var k=parseInt(S[0].replace("W","")),D=k==1?this.i18n.firstWeekday():f.StringUtilities.format(this.i18n.weekdayNearestDayX0(),k.toString());b=f.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),D);break}else{var C=w.match(/L-(\d{1,2})/);if(C){var O=C[1];b=f.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(O),O);break}else{if(w=="*"&&this.expressionParts[5]!="*")return"";b=this.getSegmentDescription(w,this.i18n.commaEveryDay(),function(M){return M=="L"?g.i18n.lastDay():g.i18n.dayX0?f.StringUtilities.format(g.i18n.dayX0(),M):M},function(M){return M=="1"?g.i18n.commaEveryDay():g.i18n.commaEveryX0Days(M)},function(M){return g.i18n.commaBetweenDayX0AndX1OfTheMonth(M)},function(M){return g.i18n.commaOnDayX0OfTheMonth(M)})}break}}return b},_.prototype.getYearDescription=function(){var g=this,b=this.getSegmentDescription(this.expressionParts[6],"",function(w){return/^\d+$/.test(w)?new Date(parseInt(w),1).getFullYear().toString():w},function(w){return f.StringUtilities.format(g.i18n.commaEveryX0Years(w),w)},function(w){return g.i18n.commaYearX0ThroughYearX1()||g.i18n.commaX0ThroughX1()},function(w){return g.i18n.commaOnlyInYearX0?g.i18n.commaOnlyInYearX0():g.i18n.commaOnlyInX0()});return b},_.prototype.getSegmentDescription=function(g,b,w,S,k,D){var C=null,O=g.indexOf("/")>-1,M=g.indexOf("-")>-1,T=g.indexOf(",")>-1;if(!g)C="";else if(g==="*")C=b;else if(!O&&!M&&!T)C=f.StringUtilities.format(D(g),w(g));else if(T){for(var P=g.split(","),j="",z=0;z0&&P.length>2&&(j+=",",z0&&P.length>1&&(z==P.length-1||P.length==2)&&(j+="".concat(this.i18n.spaceAnd()," ")),P[z].indexOf("/")>-1||P[z].indexOf("-")>-1){var E=P[z].indexOf("-")>-1&&P[z].indexOf("/")==-1,L=this.getSegmentDescription(P[z],b,w,S,E?this.i18n.commaX0ThroughX1:k,D);E&&(L=L.replace(", ","")),j+=L}else O?j+=this.getSegmentDescription(P[z],b,w,S,k,D):j+=w(P[z]);O?C=j:C=f.StringUtilities.format(D(g),j)}else if(O){var P=g.split("/");if(C=f.StringUtilities.format(S(P[1]),P[1]),P[0].indexOf("-")>-1){var G=this.generateRangeSegmentDescription(P[0],k,w);G.indexOf(", ")!=0&&(C+=", "),C+=G}else if(P[0].indexOf("*")==-1){var B=f.StringUtilities.format(D(P[0]),w(P[0]));B=B.replace(", ",""),C+=f.StringUtilities.format(this.i18n.commaStartingX0(),B)}}else M&&(C=this.generateRangeSegmentDescription(g,k,w));return C},_.prototype.generateRangeSegmentDescription=function(g,b,w){var S="",k=g.split("-"),D=w(k[0],1),C=w(k[1],2),O=b(g);return S+=f.StringUtilities.format(O,D,C),S},_.prototype.formatTime=function(g,b,w){var S=0,k=0;this.options.tzOffset&&(S=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),k=parseFloat((this.options.tzOffset%1).toFixed(2)),k!=0&&(k*=60));var D=parseInt(g)+S,C=parseInt(b)+k;C>=60?(C-=60,D+=1):C<0&&(C+=60,D-=1),D>=24?D=D-24:D<0&&(D=24+D);var O="",M=!1;this.options.use24HourTimeFormat||(M=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),O=M?"".concat(this.getPeriod(D)," "):" ".concat(this.getPeriod(D)),D>12&&(D-=12),D===0&&(D=12));var T="";return w&&(T=":".concat(("00"+w).substring(w.length))),"".concat(M?O:"").concat(("00"+D.toString()).substring(D.toString().length),":").concat(("00"+C.toString()).substring(C.toString().length)).concat(T).concat(M?"":O)},_.prototype.transformVerbosity=function(g,b){return b||(g=g.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),g=g.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),g=g.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),g=g.replace(/\, ?$/,"")),g},_.prototype.getPeriod=function(g){return g>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},_.locales={},_}();l.ExpressionDescriptor=d},747:(i,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.enLocaleLoader=void 0;var f=u(486),h=function(){function d(){}return d.prototype.load=function(_){_.en=new f.en},d}();l.enLocaleLoader=h},486:(i,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.en=void 0;var u=function(){function f(){}return f.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},f.prototype.atX0MinutesPastTheHourGt20=function(){return null},f.prototype.commaMonthX0ThroughMonthX1=function(){return null},f.prototype.commaYearX0ThroughYearX1=function(){return null},f.prototype.use24HourTimeFormatByDefault=function(){return!1},f.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},f.prototype.everyMinute=function(){return"every minute"},f.prototype.everyHour=function(){return"every hour"},f.prototype.atSpace=function(){return"At "},f.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},f.prototype.at=function(){return"At"},f.prototype.spaceAnd=function(){return" and"},f.prototype.everySecond=function(){return"every second"},f.prototype.everyX0Seconds=function(){return"every %s seconds"},f.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},f.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},f.prototype.everyX0Minutes=function(){return"every %s minutes"},f.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},f.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},f.prototype.everyX0Hours=function(){return"every %s hours"},f.prototype.betweenX0AndX1=function(){return"between %s and %s"},f.prototype.atX0=function(){return"at %s"},f.prototype.commaEveryDay=function(){return", every day"},f.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},f.prototype.commaX0ThroughX1=function(){return", %s through %s"},f.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},f.prototype.first=function(){return"first"},f.prototype.second=function(){return"second"},f.prototype.third=function(){return"third"},f.prototype.fourth=function(){return"fourth"},f.prototype.fifth=function(){return"fifth"},f.prototype.commaOnThe=function(){return", on the "},f.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},f.prototype.lastDay=function(){return"the last day"},f.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},f.prototype.commaOnlyOnX0=function(){return", only on %s"},f.prototype.commaAndOnX0=function(){return", and on %s"},f.prototype.commaEveryX0Months=function(){return", every %s months"},f.prototype.commaOnlyInX0=function(){return", only in %s"},f.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},f.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},f.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},f.prototype.firstWeekday=function(){return"first weekday"},f.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},f.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},f.prototype.commaEveryX0Days=function(){return", every %s days"},f.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},f.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},f.prototype.commaEveryHour=function(){return", every hour"},f.prototype.commaEveryX0Years=function(){return", every %s years"},f.prototype.commaStartingX0=function(){return", starting %s"},f.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},f.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},f}();l.en=u},515:(i,l)=>{Object.defineProperty(l,"__esModule",{value:!0});function u(h,d){if(!h)throw new Error(d)}var f=function(){function h(){}return h.secondRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=0&&b<=59,"seconds part must be >= 0 and <= 59")}},h.minuteRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=0&&b<=59,"minutes part must be >= 0 and <= 59")}},h.hourRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=0&&b<=23,"hours part must be >= 0 and <= 23")}},h.dayOfMonthRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=1&&b<=31,"DOM part must be >= 1 and <= 31")}},h.monthRange=function(d,_){for(var g=d.split(","),b=0;b=1&&w<=12,_?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},h.dayOfWeekRange=function(d,_){for(var g=d.split(","),b=0;b=0&&w<=6,_?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},h}();l.default=f},823:(i,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.StringUtilities=void 0;var u=function(){function f(){}return f.format=function(h){for(var d=[],_=1;_-1})},f}();l.StringUtilities=u}},n={};function o(i){var l=n[i];if(l!==void 0)return l.exports;var u=n[i]={exports:{}};return r[i](u,u.exports,o),u.exports}var a={};return(()=>{var i=a;Object.defineProperty(i,"__esModule",{value:!0}),i.toString=void 0;var l=o(333),u=o(747);l.ExpressionDescriptor.initialize(new u.enLocaleLoader),i.default=l.ExpressionDescriptor;var f=l.ExpressionDescriptor.toString;i.toString=f})(),a})())}(mv)),mv.exports}var IZ=Mo();const jZ=Ha(IZ);var _v={exports:{}},q2;function LZ(){return q2||(q2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.fr=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"toutes les minutes"},d.prototype.everyHour=function(){return"toutes les heures"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},d.prototype.atSpace=function(){return"À "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},d.prototype.at=function(){return"À"},d.prototype.spaceAnd=function(){return" et"},d.prototype.everySecond=function(){return"toutes les secondes"},d.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},d.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},d.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},d.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},d.prototype.everyX0Hours=function(){return"toutes les %s heures"},d.prototype.betweenX0AndX1=function(){return"de %s à %s"},d.prototype.atX0=function(){return"à %s"},d.prototype.commaEveryDay=function(){return", tous les jours"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},d.prototype.commaX0ThroughX1=function(){return", de %s à %s"},d.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},d.prototype.first=function(){return"premier"},d.prototype.second=function(){return"second"},d.prototype.third=function(){return"troisième"},d.prototype.fourth=function(){return"quatrième"},d.prototype.fifth=function(){return"cinquième"},d.prototype.commaOnThe=function(){return", le "},d.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},d.prototype.lastDay=function(){return"le dernier jour"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},d.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},d.prototype.commaAndOnX0=function(){return", et %s"},d.prototype.commaEveryX0Months=function(){return", tous les %s mois"},d.prototype.commaOnlyInX0=function(){return", uniquement en %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},d.prototype.firstWeekday=function(){return"premier jour ouvrable"},d.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},d.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},d.prototype.commaEveryX0Days=function(){return", tous les %s jours"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},d.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},d.prototype.commaEveryX0Years=function(){return", tous les %s ans"},d.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},d.prototype.commaStartingX0=function(){return", à partir de %s"},d.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},d.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},d}();return f.fr=h,u().locales.fr=new h,i})())}(_v)),_v.exports}LZ();var gv={exports:{}},V2;function zZ(){return V2||(V2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.es=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.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."},d.prototype.at=function(){return"A las"},d.prototype.atSpace=function(){return"A las "},d.prototype.atX0=function(){return"a las %s"},d.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},d.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},d.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},d.prototype.commaEveryDay=function(){return", cada día"},d.prototype.commaEveryX0Days=function(){return", cada %s días"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},d.prototype.commaEveryX0Months=function(){return", cada %s meses"},d.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},d.prototype.commaOnlyInX0=function(){return", sólo en %s"},d.prototype.commaOnlyOnX0=function(){return", sólo el %s"},d.prototype.commaAndOnX0=function(){return", y el %s"},d.prototype.commaOnThe=function(){return", en el "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},d.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},d.prototype.commaX0ThroughX1=function(){return", de %s a %s"},d.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},d.prototype.everyHour=function(){return"cada hora"},d.prototype.everyMinute=function(){return"cada minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},d.prototype.everySecond=function(){return"cada segundo"},d.prototype.everyX0Hours=function(){return"cada %s horas"},d.prototype.everyX0Minutes=function(){return"cada %s minutos"},d.prototype.everyX0Seconds=function(){return"cada %s segundos"},d.prototype.fifth=function(){return"quinto"},d.prototype.first=function(){return"primero"},d.prototype.firstWeekday=function(){return"primer día de la semana"},d.prototype.fourth=function(){return"cuarto"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},d.prototype.second=function(){return"segundo"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},d.prototype.spaceAnd=function(){return" y"},d.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},d.prototype.lastDay=function(){return"el último día"},d.prototype.third=function(){return"tercer"},d.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},d.prototype.commaEveryX0Years=function(){return", cada %s años"},d.prototype.commaStartingX0=function(){return", comenzando %s"},d.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},d.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},d}();return f.es=h,u().locales.es=new h,i})())}(gv)),gv.exports}zZ();var yv={exports:{}},X2;function FZ(){return X2||(X2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.de=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"jede Minute"},d.prototype.everyHour=function(){return"jede Stunde"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},d.prototype.atSpace=function(){return"Um "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},d.prototype.at=function(){return"Um"},d.prototype.spaceAnd=function(){return" und"},d.prototype.everySecond=function(){return"Jede Sekunde"},d.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},d.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},d.prototype.everyX0Minutes=function(){return"alle %s Minuten"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},d.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},d.prototype.everyX0Hours=function(){return"alle %s Stunden"},d.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},d.prototype.atX0=function(){return"um %s"},d.prototype.commaEveryDay=function(){return", jeden Tag"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},d.prototype.commaX0ThroughX1=function(){return", %s bis %s"},d.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},d.prototype.first=function(){return"ersten"},d.prototype.second=function(){return"zweiten"},d.prototype.third=function(){return"dritten"},d.prototype.fourth=function(){return"vierten"},d.prototype.fifth=function(){return"fünften"},d.prototype.commaOnThe=function(){return", am "},d.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},d.prototype.lastDay=function(){return"der letzte Tag"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},d.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},d.prototype.commaAndOnX0=function(){return", und jeden %s"},d.prototype.commaEveryX0Months=function(){return", alle %s Monate"},d.prototype.commaOnlyInX0=function(){return", nur im %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},d.prototype.firstWeekday=function(){return"ersten Werktag"},d.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},d.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},d.prototype.commaEveryX0Days=function(){return", alle %s Tage"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},d.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},d.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},d.prototype.commaStartingX0=function(){return", beginnend %s"},d.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},d.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},d}();return f.de=h,u().locales.de=new h,i})())}(yv)),yv.exports}FZ();var vv={exports:{}},G2;function BZ(){return G2||(G2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.it=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},d.prototype.at=function(){return"Alle"},d.prototype.atSpace=function(){return"Alle "},d.prototype.atX0=function(){return"alle %s"},d.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},d.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},d.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},d.prototype.commaEveryDay=function(){return", ogni giorno"},d.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},d.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},d.prototype.commaEveryX0Years=function(){return", ogni %s anni"},d.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},d.prototype.commaOnlyInX0=function(){return", solo in %s"},d.prototype.commaOnlyOnX0=function(){return", solo il %s"},d.prototype.commaAndOnX0=function(){return", e il %s"},d.prototype.commaOnThe=function(){return", il "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},d.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},d.prototype.commaX0ThroughX1=function(){return", %s al %s"},d.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},d.prototype.everyHour=function(){return"ogni ora"},d.prototype.everyMinute=function(){return"ogni minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},d.prototype.everySecond=function(){return"ogni secondo"},d.prototype.everyX0Hours=function(){return"ogni %s ore"},d.prototype.everyX0Minutes=function(){return"ogni %s minuti"},d.prototype.everyX0Seconds=function(){return"ogni %s secondi"},d.prototype.fifth=function(){return"quinto"},d.prototype.first=function(){return"primo"},d.prototype.firstWeekday=function(){return"primo giorno della settimana"},d.prototype.fourth=function(){return"quarto"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},d.prototype.second=function(){return"secondo"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},d.prototype.spaceAnd=function(){return" e"},d.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},d.prototype.lastDay=function(){return"l'ultimo giorno"},d.prototype.third=function(){return"terzo"},d.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},d.prototype.commaStartingX0=function(){return", a partire %s"},d.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},d.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},d}();return f.it=h,u().locales.it=new h,i})())}(vv)),vv.exports}BZ();var bv={exports:{}},J2;function WZ(){return J2||(J2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:g=>{g.exports=r}},o={};function a(g){var b=o[g];if(b!==void 0)return b.exports;var w=o[g]={exports:{}};return n[g](w,w.exports,a),w.exports}a.n=g=>{var b=g&&g.__esModule?()=>g.default:()=>g;return a.d(b,{a:b}),b},a.d=(g,b)=>{for(var w in b)a.o(b,w)&&!a.o(g,w)&&Object.defineProperty(g,w,{enumerable:!0,get:b[w]})},a.o=(g,b)=>Object.prototype.hasOwnProperty.call(g,b),a.r=g=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.ru=void 0;var h=function(g,b){var w=Number(g);return w!==void 0?b[w%100>4&&w%100<20?2:[2,0,1,1,1,2][w%10<5?Math.abs(w)%10:5]]:b[2]},d=function(g,b){var w=Number(g);return w!==void 0?b[w===0?0:w===1||w===2||w===4?1:2]:b[1]},_=function(){function g(){}return g.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},g.prototype.atX0MinutesPastTheHourGt20=function(){return null},g.prototype.commaMonthX0ThroughMonthX1=function(){return null},g.prototype.commaYearX0ThroughYearX1=function(){return null},g.prototype.use24HourTimeFormatByDefault=function(){return!0},g.prototype.everyMinute=function(){return"каждую минуту"},g.prototype.everyHour=function(){return"каждый час"},g.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},g.prototype.atSpace=function(){return"В "},g.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},g.prototype.at=function(){return"В"},g.prototype.spaceAnd=function(){return" и"},g.prototype.everySecond=function(){return"каждую секунду"},g.prototype.everyX0Seconds=function(b){return h(b,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},g.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},g.prototype.atX0SecondsPastTheMinute=function(b){return h(b,["в %s секунду","в %s секунды","в %s секунд"])},g.prototype.everyX0Minutes=function(b){return h(b,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},g.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},g.prototype.atX0MinutesPastTheHour=function(b){return h(b,["в %s минуту","в %s минуты","в %s минут"])},g.prototype.everyX0Hours=function(b){return h(b,["каждый %s час","каждые %s часа","каждые %s часов"])},g.prototype.betweenX0AndX1=function(){return"с %s по %s"},g.prototype.atX0=function(){return"в %s"},g.prototype.commaEveryDay=function(){return", каждый день"},g.prototype.commaEveryX0DaysOfTheWeek=function(b){return h(b,["",", каждые %s дня недели",", каждые %s дней недели"])},g.prototype.commaX0ThroughX1=function(b){return b&&(b[0]=="2"||b[0]=="3")?", со %s по %s":", с %s по %s"},g.prototype.commaAndX0ThroughX1=function(b){return b&&(b[0]=="2"||b[0]=="3")?" и со %s по %s":" и с %s по %s"},g.prototype.first=function(b){return d(b,["первое","первый","первую"])},g.prototype.second=function(b){return d(b,["второе","второй","вторую"])},g.prototype.third=function(b){return d(b,["третье","третий","третью"])},g.prototype.fourth=function(b){return d(b,["четвертое","четвертый","четвертую"])},g.prototype.fifth=function(b){return d(b,["пятое","пятый","пятую"])},g.prototype.commaOnThe=function(b){return b==="2"?", во ":", в "},g.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},g.prototype.lastDay=function(){return"последний день"},g.prototype.commaOnTheLastX0OfTheMonth=function(b){return d(b,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},g.prototype.commaOnlyOnX0=function(b){return b&&b[0]==="2"?", только во %s":", только в %s"},g.prototype.commaAndOnX0=function(){return", и %s"},g.prototype.commaEveryX0Months=function(b){return h(b,[""," каждые %s месяца"," каждые %s месяцев"])},g.prototype.commaOnlyInMonthX0=function(){return", только %s"},g.prototype.commaOnlyInX0=function(){return", только в %s"},g.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},g.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},g.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(b){return h(b,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},g.prototype.firstWeekday=function(){return"первый будний день"},g.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},g.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},g.prototype.commaEveryX0Days=function(b){return h(b,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},g.prototype.commaBetweenDayX0AndX1OfTheMonth=function(b){return b&&b.substring(0,b.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},g.prototype.commaOnDayX0OfTheMonth=function(b){return b&&b[0]=="2"?", во %s число месяца":", в %s число месяца"},g.prototype.commaEveryX0Years=function(b){return h(b,[", каждый %s год",", каждые %s года",", каждые %s лет"])},g.prototype.commaStartingX0=function(){return", начало %s"},g.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},g.prototype.daysOfTheWeekInCase=function(b){return b===void 0&&(b=2),b==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},g.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},g.prototype.monthsOfTheYearInCase=function(b){return b==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},g}();return f.ru=_,u().locales.ru=new _,i})())}(bv)),bv.exports}WZ();var wv={exports:{}},Y2;function UZ(){return Y2||(Y2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.zh_CN=void 0;var h=function(){function d(){}return d.prototype.setPeriodBeforeTime=function(){return!0},d.prototype.pm=function(){return"下午"},d.prototype.am=function(){return"上午"},d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},d.prototype.use24HourTimeFormatByDefault=function(){return!1},d.prototype.everyMinute=function(){return"每分钟"},d.prototype.everyHour=function(){return"每小时"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},d.prototype.atSpace=function(){return"在"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},d.prototype.at=function(){return"在"},d.prototype.spaceAnd=function(){return" 和"},d.prototype.everySecond=function(){return"每秒"},d.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在每分钟的第 %s 到 %s 秒"},d.prototype.atX0SecondsPastTheMinute=function(){return"在每分钟的第 %s 秒"},d.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"在每小时的第 %s 到 %s 分钟"},d.prototype.atX0MinutesPastTheHour=function(){return"在每小时的第 %s 分钟"},d.prototype.everyX0Hours=function(){return"每隔 %s 小时"},d.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},d.prototype.atX0=function(){return"在%s"},d.prototype.commaEveryDay=function(){return", 每天"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},d.prototype.commaX0ThroughX1=function(){return", %s至%s"},d.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},d.prototype.first=function(){return"第一个"},d.prototype.second=function(){return"第二个"},d.prototype.third=function(){return"第三个"},d.prototype.fourth=function(){return"第四个"},d.prototype.fifth=function(){return"第五个"},d.prototype.commaOnThe=function(){return", 限每月的"},d.prototype.spaceX0OfTheMonth=function(){return"%s"},d.prototype.lastDay=function(){return"本月最后一天"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},d.prototype.commaOnlyOnX0=function(){return", 仅%s"},d.prototype.commaAndOnX0=function(){return", 或者为%s"},d.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},d.prototype.commaOnlyInX0=function(){return", 仅限%s"},d.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},d.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},d.prototype.firstWeekday=function(){return"第一个工作日"},d.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},d.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},d.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},d.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},d.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},d.prototype.commaStartingX0=function(){return", %s开始"},d.prototype.dayX0=function(){return" %s 号"},d.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},d.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},d}();return f.zh_CN=h,u().locales.zh_CN=new h,i})())}(wv)),wv.exports}UZ();var xv={exports:{}},K2;function HZ(){return K2||(K2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.uk=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"щохвилини"},d.prototype.everyHour=function(){return"щогодини"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},d.prototype.atSpace=function(){return"О "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},d.prototype.at=function(){return"О"},d.prototype.spaceAnd=function(){return" та"},d.prototype.everySecond=function(){return"Щосекунди"},d.prototype.everyX0Seconds=function(){return"кожні %s секунд"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},d.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},d.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},d.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},d.prototype.everyX0Hours=function(){return"кожні %s годин"},d.prototype.betweenX0AndX1=function(){return"між %s та %s"},d.prototype.atX0=function(){return"о %s"},d.prototype.commaEveryDay=function(){return", щоденно"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},d.prototype.commaX0ThroughX1=function(){return", %s по %s"},d.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},d.prototype.first=function(){return"перший"},d.prototype.second=function(){return"другий"},d.prototype.third=function(){return"третій"},d.prototype.fourth=function(){return"четвертий"},d.prototype.fifth=function(){return"п'ятий"},d.prototype.commaOnThe=function(){return", в "},d.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},d.prototype.lastDay=function(){return"останній день"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},d.prototype.commaOnlyOnX0=function(){return", тільки в %s"},d.prototype.commaAndOnX0=function(){return", і в %s"},d.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},d.prototype.commaOnlyInX0=function(){return", тільки в %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},d.prototype.firstWeekday=function(){return"перший будень"},d.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},d.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},d.prototype.commaEveryX0Days=function(){return", кожен %s день"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},d.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},d.prototype.commaEveryX0Years=function(){return", кожні %s роки"},d.prototype.commaStartingX0=function(){return", початок %s"},d.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},d.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},d}();return f.uk=h,u().locales.uk=new h,i})())}(xv)),xv.exports}HZ();var Sv={exports:{}},Z2;function qZ(){return Z2||(Z2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.pt_BR=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},d.prototype.at=function(){return"às"},d.prototype.atSpace=function(){return"às "},d.prototype.atX0=function(){return"Às %s"},d.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},d.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},d.prototype.betweenX0AndX1=function(){return"entre %s e %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},d.prototype.commaEveryDay=function(){return", a cada dia"},d.prototype.commaEveryX0Days=function(){return", a cada %s dias"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},d.prototype.commaEveryX0Months=function(){return", a cada %s meses"},d.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},d.prototype.commaOnlyInX0=function(_){return _&&_.length>1&&_[1]==="-"?"somente %s":", somente em %s"},d.prototype.commaOnlyOnX0=function(_){return _&&_.length>1&&_[1]==="-"?", somente %s":", somente de %s"},d.prototype.commaAndOnX0=function(){return", e de %s"},d.prototype.commaOnThe=function(_,g){return g==="6"||g==="0"?", no":", na "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},d.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},d.prototype.commaX0ThroughX1=function(){return", de %s a %s"},d.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},d.prototype.everyHour=function(){return"a cada hora"},d.prototype.everyMinute=function(){return"a cada minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},d.prototype.everySecond=function(){return"a cada segundo"},d.prototype.everyX0Hours=function(){return"a cada %s horas"},d.prototype.everyX0Minutes=function(){return"a cada %s minutos"},d.prototype.everyX0Seconds=function(){return"a cada %s segundos"},d.prototype.fifth=function(_){return _==="6"||_==="0"?"quinto":"quinta"},d.prototype.first=function(_){return _==="6"||_==="0"?"primeiro":"primeira"},d.prototype.firstWeekday=function(){return"primeiro dia da semana"},d.prototype.fourth=function(_){return _==="6"||_==="0"?"quarto":"quarta"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},d.prototype.second=function(_){return _==="6"||_==="0"?"segundo":"segunda"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},d.prototype.spaceAnd=function(){return" e"},d.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},d.prototype.lastDay=function(){return"o último dia"},d.prototype.third=function(_){return _==="6"||_==="0"?"terceiro":"terceira"},d.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},d.prototype.commaEveryX0Years=function(){return", a cada %s anos"},d.prototype.commaStartingX0=function(){return", iniciando %s"},d.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},d.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},d}();return f.pt_BR=h,u().locales.pt_BR=new h,i})())}(Sv)),Sv.exports}qZ();var kv={exports:{}},Q2;function VZ(){return Q2||(Q2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.pl=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},d.prototype.at=function(){return"O"},d.prototype.atSpace=function(){return"O "},d.prototype.atX0=function(){return"o %s"},d.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},d.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},d.prototype.betweenX0AndX1=function(){return"od %s do %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},d.prototype.commaEveryDay=function(){return", co dzień"},d.prototype.commaEveryX0Days=function(){return", co %s dni"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},d.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},d.prototype.commaEveryX0Years=function(){return", co %s lat"},d.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},d.prototype.commaOnlyInX0=function(){return", tylko %s"},d.prototype.commaOnlyOnX0=function(){return", tylko %s"},d.prototype.commaAndOnX0=function(){return", i %s"},d.prototype.commaOnThe=function(){return", "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},d.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},d.prototype.commaX0ThroughX1=function(){return", od %s do %s"},d.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},d.prototype.everyHour=function(){return"co godzinę"},d.prototype.everyMinute=function(){return"co minutę"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},d.prototype.everySecond=function(){return"co sekundę"},d.prototype.everyX0Hours=function(){return"co %s godzin"},d.prototype.everyX0Minutes=function(){return"co %s minut"},d.prototype.everyX0Seconds=function(){return"co %s sekund"},d.prototype.fifth=function(){return"piąty"},d.prototype.first=function(){return"pierwszy"},d.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},d.prototype.fourth=function(){return"czwarty"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},d.prototype.second=function(){return"drugi"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},d.prototype.spaceAnd=function(){return" i"},d.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},d.prototype.lastDay=function(){return"ostatni dzień"},d.prototype.third=function(){return"trzeci"},d.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},d.prototype.commaStartingX0=function(){return", startowy %s"},d.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},d.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},d}();return f.pl=h,u().locales.pl=new h,i})())}(kv)),kv.exports}VZ();function ZN(t,e){return jZ.toString(t,{locale:e})}const en={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},slider:{marginTop:20,display:"block",width:"100%"},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},numberButtonBreak:{display:"block"},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},XZ=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],GZ=["January","February","March","April","May","June","July","August","September","October","November","December"];function eO(t,e){const r=[];if(t==="*"){if(e===24||e===60||e===7)for(let o=0;o1){const i=parseInt(a[1],10);for(let l=parseInt(a[0],10);l<=i;l++)r.push(l)}else r.push(parseInt(n[o],10))}r.sort();for(let o=r.length-1;o>=0;o--)r[o]===r[o+1]&&r.splice(o+1,1);return r}function tO(t,e){if(typeof t!="object"&&(t=[t]),t.length===e)return"*";const r=[];if(!t.length)return"-";t=t.map(a=>parseInt(a,10)),t.sort((a,i)=>a-i);let n=t[0],o=t[0];for(let a=1;athis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(e){e=e.replace(/['"]/g,"").trim();const r=e.split(" ").map(o=>o.trim());let n;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",dates:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:!1,minutes:r[0]||"*",hours:r[1]||"*",dates:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n}static state2cron(e){let r=`${e.minutes} ${e.hours} ${e.dates} ${e.months} ${e.dow}`;return e.seconds!==!1&&(r=`${e.seconds} ${r}`),r}recalcCron(){const e=Aa.state2cron(this.state);e!==this.state.cron&&this.setState({cron:e},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(e,r,n){if(e===!0)this.setCronAttr(r,"*");else if(e===!1)n===60||n===24?this.setCronAttr(r,"0"):this.setCronAttr(r,"1");else{const o=eO(this.state[r],n),a=o.indexOf(e);a!==-1?o.splice(a,1):(o.push(e),o.sort()),this.setCronAttr(r,tO(o,n))}}getDigitsSelector(e,r){let n=[];if(r===7)n=[1,2,3,4,5,6,0];else if(r===60||r===24)for(let a=0;athis.onToggle(!1,e,r)},U.t("ra_Deselect all")),y.createElement(Qt,{key:"addall",variant:"contained",style:en.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,e,r)},U.t("ra_Select all")),y.createElement("div",{key:"all"},n.map(a=>[r===7&&a===4||r===12&&a===7||r===31&&!((a-1)%10)||r===60&&a&&!(a%10)||r===24&&a&&!(a%6)?y.createElement("div",{key:`allInner${a}`,style:{width:"100%"}}):null,y.createElement(Qt,{key:`_${a}`,variant:o.indexOf(a)!==-1?"contained":"outlined",style:en.numberButton,color:o.indexOf(a)!==-1?"secondary":"primary",onClick:()=>this.onToggle(a,e,r)},r===7?U.t(XZ[a]):r===12?GZ[a-1]:a)]))]}getPeriodsTab(e,r){const n=this.state[e];let o=n==="*",a=n==null?!1:n.toString().includes("/"),i;if(this.state.modes[e]===null){i=o?"every":a?"everyN":"specific";const u=JSON.parse(JSON.stringify(this.state.modes));return u[e]=i,setTimeout(()=>this.setState({modes:u},()=>this.recalcCron()),100),null}o=this.state.modes[e]==="every",a=this.state.modes[e]==="everyN",i=this.state.modes[e];let l=1;return a&&n&&(l=parseInt(n.replace("*/",""),10)||1),y.createElement("div",null,y.createElement(wo,{variant:"standard",style:{...en.periodSelect,verticalAlign:"bottom"},value:i,onChange:u=>{const f=JSON.parse(JSON.stringify(this.state.modes));if(f[e]=u.target.value,u.target.value==="every")this.setCronAttr(e,"*",f);else if(u.target.value==="everyN"){const h=parseInt((this.state[e]||"").toString().replace("*/",""),10)||1;this.setCronAttr(e,`*/${h}`,f)}else if(u.target.value==="specific"){let h=parseInt((this.state[e]||"").toString().split(",")[0],10)||0;!h&&(e==="months"||e==="dates")&&(h=1),this.setCronAttr(e,tO(h,r),f)}}},y.createElement(fr,{key:"every",value:"every"},U.t(`sc_every_${e}`)),y.createElement(fr,{key:"everyN",value:"everyN"},U.t(`sc_everyN_${e}`)),y.createElement(fr,{key:"specific",value:"specific"},U.t(`sc_specific_${e}`))),a&&y.createElement(Fr,{variant:"standard",key:"interval",label:U.t(`sc_${e}`),value:l,slotProps:{htmlInput:{min:1,max:r},inputLabel:{shrink:!0}},onChange:u=>{this.setState({[e]:`*/${u.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!o&&!a&&this.getDigitsSelector(e,r))}static convertCronToText(e,r){return e.split(" ").includes("-")?U.t("ra_Invalid CRON"):ZN(e,r)}setCronAttr(e,r,n){n?e==="seconds"?this.setState({seconds:r,modes:n},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r,modes:n},()=>this.recalcCron()):e==="hours"?this.setState({hours:r,modes:n},()=>this.recalcCron()):e==="dates"?this.setState({dates:r,modes:n},()=>this.recalcCron()):e==="months"?this.setState({months:r,modes:n},()=>this.recalcCron()):e==="dow"?this.setState({dow:r,modes:n},()=>this.recalcCron()):this.setState({modes:n},()=>this.recalcCron()):e==="seconds"?this.setState({seconds:r},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r},()=>this.recalcCron()):e==="hours"?this.setState({hours:r},()=>this.recalcCron()):e==="dates"?this.setState({dates:r},()=>this.recalcCron()):e==="months"?this.setState({months:r},()=>this.recalcCron()):e==="dow"&&this.setState({dow:r},()=>this.recalcCron())}render(){const e=this.state.seconds!==!1?this.state.tab:this.state.tab+1,r=this.state.minutes==="*"||this.state.minutes==="*/1",n=this.state.seconds==="*"||this.state.seconds==="*/1";return y.createElement("div",{style:en.mainDiv},y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)"}},y.createElement(Fr,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)",height:60}},Aa.convertCronToText(this.state.cron,this.props.language||"en"),y.createElement("span",{style:en.warning},n?U.t("ra_warning_every_second"):r?U.t("ra_warning_every_minute"):"")),y.createElement(gt,{control:y.createElement(tn,{checked:!!this.state.seconds,onChange:o=>this.setState({seconds:o.target.checked?"*":!1},()=>this.recalcCron())}),label:U.t("ra_use seconds")}),y.createElement(yM,{position:"static",sx:{"&.MuiAppBar-root":en.appBar},color:"secondary"},y.createElement(MU,{value:this.state.tab,style:en.appBar,color:"secondary",onChange:(o,a)=>this.setState({tab:a})},this.state.seconds!==!1&&y.createElement(Oi,{id:"sc_seconds",label:U.t("sc_seconds")}),y.createElement(Oi,{id:"minutes",label:U.t("sc_minutes")}),y.createElement(Oi,{id:"hours",label:U.t("sc_hours")}),y.createElement(Oi,{id:"dates",label:U.t("sc_dates")}),y.createElement(Oi,{id:"months",label:U.t("sc_months")}),y.createElement(Oi,{id:"dow",label:U.t("sc_dows")}))),e===0&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("seconds",60)),e===1&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("minutes",60)),e===2&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("hours",24)),e===3&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("dates",31)),e===4&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("months",12)),e===5&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("dow",7)))}}function Zs(t,e,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function l(h){try{f(n.next(h))}catch(d){i(d)}}function u(h){try{f(n.throw(h))}catch(d){i(d)}}function f(h){h.done?a(h.value):o(h.value).then(l,u)}f((n=n.apply(t,e||[])).next())})}const JZ=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 Ec(t,e,r){const n=YZ(t),{webkitRelativePath:o}=t,a=typeof e=="string"?e:typeof o=="string"&&o.length>0?o:`./${t.name}`;return typeof n.path!="string"&&rO(n,"path",a),rO(n,"relativePath",a),n}function YZ(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const n=e.split(".").pop().toLowerCase(),o=JZ.get(n);o&&Object.defineProperty(t,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return t}function rO(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}const KZ=[".DS_Store","Thumbs.db"];function ZZ(t){return Zs(this,void 0,void 0,function*(){return tf(t)&&QZ(t.dataTransfer)?nQ(t.dataTransfer,t.type):eQ(t)?tQ(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?rQ(t):[]})}function QZ(t){return tf(t)}function eQ(t){return tf(t)&&tf(t.target)}function tf(t){return typeof t=="object"&&t!==null}function tQ(t){return M0(t.target.files).map(e=>Ec(e))}function rQ(t){return Zs(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>Ec(r))})}function nQ(t,e){return Zs(this,void 0,void 0,function*(){if(t.items){const r=M0(t.items).filter(o=>o.kind==="file");if(e!=="drop")return r;const n=yield Promise.all(r.map(oQ));return nO(QN(n))}return nO(M0(t.files).map(r=>Ec(r)))})}function nO(t){return t.filter(e=>KZ.indexOf(e.name)===-1)}function M0(t){if(t===null)return[];const e=[];for(let r=0;r[...e,...Array.isArray(r)?QN(r):[r]],[])}function oO(t,e){return Zs(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const a=yield t.getAsFileSystemHandle();if(a===null)throw new Error(`${t} is not a File`);if(a!==void 0){const i=yield a.getFile();return i.handle=a,Ec(i)}}const n=t.getAsFile();if(!n)throw new Error(`${t} is not a File`);return Ec(n,(r=e==null?void 0:e.fullPath)!==null&&r!==void 0?r:void 0)})}function aQ(t){return Zs(this,void 0,void 0,function*(){return t.isDirectory?eP(t):sQ(t)})}function eP(t){const e=t.createReader();return new Promise((r,n)=>{const o=[];function a(){e.readEntries(i=>Zs(this,void 0,void 0,function*(){if(i.length){const l=Promise.all(i.map(aQ));o.push(l),a()}else try{const l=yield Promise.all(o);r(l)}catch(l){n(l)}}),i=>{n(i)})}a()})}function sQ(t){return Zs(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(n=>{const o=Ec(n,t.fullPath);e(o)},n=>{r(n)})})})}var fp={},aO;function iQ(){return aO||(aO=1,fp.__esModule=!0,fp.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",o=(t.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return r.some(function(i){var l=i.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?a===l.replace(/\/.*$/,""):o===l})}return!0}),fp}var cQ=iQ();const Cv=Ha(cQ);function sO(t){return dQ(t)||uQ(t)||rP(t)||lQ()}function lQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. + `),y.createElement("div",{style:h.white,className:"saturation-white"},y.createElement("div",{style:h.black,className:"saturation-black"}),y.createElement("div",{style:h.pointer},this.props.pointer?y.createElement(this.props.pointer,this.props):y.createElement("div",{style:h.circle}))))}}]),e}($.PureComponent||$.Component);function qJ(t,e){for(var r=-1,n=t==null?0:t.length;++r=0,a=!r&&o&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?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 He(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(uY,arguments)},brighten:function(){return this._applyModification(dY,arguments)},darken:function(){return this._applyModification(pY,arguments)},desaturate:function(){return this._applyModification(iY,arguments)},saturate:function(){return this._applyModification(cY,arguments)},greyscale:function(){return this._applyModification(lY,arguments)},spin:function(){return this._applyModification(fY,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(_Y,arguments)},complement:function(){return this._applyCombination(hY,arguments)},monochromatic:function(){return this._applyCombination(gY,arguments)},splitcomplement:function(){return this._applyCombination(mY,arguments)},triad:function(){return this._applyCombination(w2,[3])},tetrad:function(){return this._applyCombination(w2,[4])}};He.fromRatio=function(t,e){if(Qp(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=Wl(t[n]));t=r}return He(t,e)};function rY(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,a=null,i=!1,l=!1;return typeof t=="string"&&(t=xY(t)),Qp(t)=="object"&&(Uo(t.r)&&Uo(t.g)&&Uo(t.b)?(e=nY(t.r,t.g,t.b),i=!0,l=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Uo(t.h)&&Uo(t.s)&&Uo(t.v)?(n=Wl(t.s),o=Wl(t.v),e=aY(t.h,n,o),i=!0,l="hsv"):Uo(t.h)&&Uo(t.s)&&Uo(t.l)&&(n=Wl(t.s),a=Wl(t.l),e=oY(t.h,n,a),i=!0,l="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=FN(r),{ok:i,format:t.format||l,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function nY(t,e,r){return{r:Xt(t,255)*255,g:Xt(e,255)*255,b:Xt(r,255)*255}}function g2(t,e,r){t=Xt(t,255),e=Xt(e,255),r=Xt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,l=(n+o)/2;if(n==o)a=i=0;else{var u=n-o;switch(i=l>.5?u/(2-n-o):u/(n+o),n){case t:a=(e-r)/u+(e1&&(d-=1),d<1/6?f+(h-f)*6*d:d<1/2?h:d<2/3?f+(h-f)*(2/3-d)*6:f}if(e===0)n=o=a=r;else{var l=r<.5?r*(1+e):r+e-r*e,u=2*r-l;n=i(u,l,t+1/3),o=i(u,l,t),a=i(u,l,t-1/3)}return{r:n*255,g:o*255,b:a*255}}function y2(t,e,r){t=Xt(t,255),e=Xt(e,255),r=Xt(r,255);var n=Math.max(t,e,r),o=Math.min(t,e,r),a,i,l=n,u=n-o;if(i=n===0?0:u/n,n==o)a=0;else{switch(n){case t:a=(e-r)/u+(e>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(He(n));return a}function gY(t,e){e=e||6;for(var r=He(t).toHsv(),n=r.h,o=r.s,a=r.v,i=[],l=1/e;e--;)i.push(He({h:n,s:o,v:a})),a=(a+l)%1;return i}He.mix=function(t,e,r){r=r===0?0:r||50;var n=He(t).toRgb(),o=He(e).toRgb(),a=r/100,i={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return He(i)};He.readability=function(t,e){var r=He(t),n=He(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};He.isReadable=function(t,e,r){var n=He.readability(t,e),o,a;switch(a=!1,o=SY(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};He.mostReadable=function(t,e,r){var n=null,o=0,a,i,l,u;r=r||{},i=r.includeFallbackColors,l=r.level,u=r.size;for(var f=0;fo&&(o=a,n=He(e[f]));return He.isReadable(t,n,{level:l,size:u})||!i?n:(r.includeFallbackColors=!1,He.mostReadable(t,["#fff","#000"],r))};var $0=He.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"},yY=He.hexNames=vY($0);function vY(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function FN(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Xt(t,e){bY(t)&&(t="100%");var r=wY(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Kf(t){return Math.min(1,Math.max(0,t))}function hn(t){return parseInt(t,16)}function bY(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function wY(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Yn(t){return t.length==1?"0"+t:""+t}function Wl(t){return t<=1&&(t=t*100+"%"),t}function zN(t){return Math.round(parseFloat(t)*255).toString(16)}function x2(t){return hn(t)/255}var Jn=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),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 Uo(t){return!!Jn.CSS_UNIT.exec(t)}function xY(t){t=t.replace(eY,"").replace(tY,"").toLowerCase();var e=!1;if($0[t])t=$0[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Jn.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=Jn.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Jn.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=Jn.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Jn.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=Jn.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Jn.hex8.exec(t))?{r:hn(r[1]),g:hn(r[2]),b:hn(r[3]),a:x2(r[4]),format:e?"name":"hex8"}:(r=Jn.hex6.exec(t))?{r:hn(r[1]),g:hn(r[2]),b:hn(r[3]),format:e?"name":"hex"}:(r=Jn.hex4.exec(t))?{r:hn(r[1]+""+r[1]),g:hn(r[2]+""+r[2]),b:hn(r[3]+""+r[3]),a:x2(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=Jn.hex3.exec(t))?{r:hn(r[1]+""+r[1]),g:hn(r[2]+""+r[2]),b:hn(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function SY(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var S2=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,o=0;return QJ(r,function(a){if(e[a]&&(n+=1,isNaN(e[a])||(o+=1),a==="s"||a==="l")){var i=/^\d+%$/;i.test(e[a])&&(o+=1)}}),n===o?e:!1},Ul=function(e,r){var n=e.hex?He(e.hex):He(e),o=n.toHsl(),a=n.toHsv(),i=n.toRgb(),l=n.toHex();o.s===0&&(o.h=r||0,a.h=r||0);var u=l==="000000"&&i.a===0;return{hsl:o,hex:u?"transparent":"#"+l,rgb:i,hsv:a,oldHue:e.h||r||o.h,source:e.source}},Ja=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&&He(e).isValid()},mw=function(e){if(!e)return"#fff";var r=Ul(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},fv=function(e,r){var n=e.replace("°","");return He(r+" ("+n+")")._ok},El=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){MY(o,n);function o(){var a,i,l,u;DY(this,o);for(var f=arguments.length,h=Array(f),d=0;dl))return!1;var f=a.get(t),h=a.get(e);if(f&&h)return f==e&&h==t;var d=-1,_=!0,g=r&UY?new ef:void 0;for(a.set(t,e),a.set(e,t);++d=0||Object.prototype.hasOwnProperty.call(i,f)&&(u[f]=i[f]);return u}var a=24;return dp.default=function(i){var l=i.fill,u=l===void 0?"currentColor":l,f=i.width,h=f===void 0?a:f,d=i.height,_=d===void 0?a:d,g=i.style,b=g===void 0?{}:g,w=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:u,width:h,height:_},b)},w),r.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"}))},dp}var nZ=rZ();const oZ=Ha(nZ);var aZ=function(){function t(e,r){for(var n=0;n1&&(o.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(o.a*100)/100,source:"rgb"},a)):(o.h||o.s||o.l)&&(typeof o.s=="string"&&o.s.includes("%")&&(o.s=o.s.replace("%","")),typeof o.l=="string"&&o.l.includes("%")&&(o.l=o.l.replace("%","")),o.s==1?o.s=.01:o.l==1&&(o.l=.01),n.props.onChange({h:o.h||n.props.hsl.h,s:Number(F2(o.s)?n.props.hsl.s:o.s),l:Number(F2(o.l)?n.props.hsl.l:o.l),source:"hsl"},a))},n.showHighlight=function(o){o.currentTarget.style.background="#eee"},n.hideHighlight=function(o){o.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return aZ(e,[{key:"render",value:function(){var n=this,o=ct({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),a=void 0;return this.state.view==="hex"?a=y.createElement("div",{style:o.fields,className:"flexbox-fix"},y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=y.createElement("div",{style:o.fields,className:"flexbox-fix"},y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),y.createElement("div",{style:o.alpha},y.createElement(bt,{style:{input:o.input,label:o.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=y.createElement("div",{style:o.fields,className:"flexbox-fix"},y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),y.createElement("div",{style:o.field},y.createElement(bt,{style:{input:o.input,label:o.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),y.createElement("div",{style:o.alpha},y.createElement(bt,{style:{input:o.input,label:o.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),y.createElement("div",{style:o.wrap,className:"flexbox-fix"},a,y.createElement("div",{style:o.toggle},y.createElement("div",{style:o.icon,onClick:this.toggleViews,ref:function(l){return n.icon=l}},y.createElement(oZ,{style:o.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.hsl.a!==1&&o.view==="hex"?{view:"rgb"}:null}}]),e}(y.Component);YN.defaultProps={view:"hex"};var B2=function(){var e=ct({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 y.createElement("div",{style:e.picker})},lZ=function(){var e=ct({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return y.createElement("div",{style:e.picker})},ww=function(e){var r=e.width,n=e.onChange,o=e.disableAlpha,a=e.rgb,i=e.hsl,l=e.hsv,u=e.hex,f=e.renderers,h=e.styles,d=h===void 0?{}:h,_=e.className,g=_===void 0?"":_,b=e.defaultView,w=ct(cn({default:{picker:{width:r,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("+a.r+", "+a.g+", "+a.b+", "+a.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"}}},d),{disableAlpha:o});return y.createElement("div",{style:w.picker,className:"chrome-picker "+g},y.createElement("div",{style:w.saturation},y.createElement(Yf,{style:w.Saturation,hsl:i,hsv:l,pointer:lZ,onChange:n})),y.createElement("div",{style:w.body},y.createElement("div",{style:w.controls,className:"flexbox-fix"},y.createElement("div",{style:w.color},y.createElement("div",{style:w.swatch},y.createElement("div",{style:w.active}),y.createElement(Nc,{renderers:f}))),y.createElement("div",{style:w.toggles},y.createElement("div",{style:w.hue},y.createElement(Pc,{style:w.Hue,hsl:i,pointer:B2,onChange:n})),y.createElement("div",{style:w.alpha},y.createElement(iw,{style:w.Alpha,rgb:a,hsl:i,pointer:B2,renderers:f,onChange:n})))),y.createElement(YN,{rgb:a,hsl:i,hex:u,view:b,onChange:n,disableAlpha:o})))};ww.propTypes={width:se.oneOfType([se.string,se.number]),disableAlpha:se.bool,styles:se.object,defaultView:se.oneOf(["hex","rgb","hsl"])};ww.defaultProps={width:225,disableAlpha:!1,styles:{}};ln(ww);var uZ=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.active,l=ct({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:mw(r),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:i,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return y.createElement(Ys,{style:l.color,color:r,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},y.createElement("div",{style:l.dot}))},dZ=function(e){var r=e.hex,n=e.rgb,o=e.onChange,a=ct({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},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"}}}),i=function(u,f){u.r||u.g||u.b?o({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},f):o({hex:u.hex,source:"hex"},f)};return y.createElement("div",{style:a.fields,className:"flexbox-fix"},y.createElement("div",{style:a.active}),y.createElement(bt,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:r,onChange:i}),y.createElement(bt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:i}),y.createElement(bt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:i}),y.createElement(bt,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:i}))},xw=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.colors,a=e.hex,i=e.rgb,l=e.styles,u=l===void 0?{}:l,f=e.className,h=f===void 0?"":f,d=ct(cn({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),_=function(b,w){b.hex?Ja(b.hex)&&r({hex:b.hex,source:"hex"},w):r(b,w)};return y.createElement(Du,{style:d.Compact,styles:u},y.createElement("div",{style:d.compact,className:"compact-picker "+h},y.createElement("div",null,Ks(o,function(g){return y.createElement(uZ,{key:g,color:g,active:g.toLowerCase()===a,onClick:_,onSwatchHover:n})}),y.createElement("div",{style:d.clear})),y.createElement(dZ,{hex:a,rgb:i,onChange:_})))};xw.propTypes={colors:se.arrayOf(se.string),styles:se.object};xw.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"],styles:{}};ln(xw);var pZ=function(e){var r=e.hover,n=e.color,o=e.onClick,a=e.onSwatchHover,i={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=ct({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:i}},{hover:r});return y.createElement("div",{style:l.swatch},y.createElement(Ys,{color:n,onClick:o,onHover:a,focusStyle:i}))};const fZ=sw.handleHover(pZ);var Sw=function(e){var r=e.width,n=e.colors,o=e.onChange,a=e.onSwatchHover,i=e.triangle,l=e.styles,u=l===void 0?{}:l,f=e.className,h=f===void 0?"":f,d=ct(cn({default:{card:{width:r,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)"}}},u),{"hide-triangle":i==="hide","top-left-triangle":i==="top-left","top-right-triangle":i==="top-right","bottom-left-triangle":i==="bottom-left","bottom-right-triangle":i==="bottom-right"}),_=function(b,w){return o({hex:b,source:"hex"},w)};return y.createElement("div",{style:d.card,className:"github-picker "+h},y.createElement("div",{style:d.triangleShadow}),y.createElement("div",{style:d.triangle}),Ks(n,function(g){return y.createElement(fZ,{color:g,key:g,onClick:_,onSwatchHover:a})}))};Sw.propTypes={width:se.oneOfType([se.string,se.number]),colors:se.arrayOf(se.string),triangle:se.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:se.object};Sw.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};ln(Sw);var hZ=function(e){var r=e.direction,n=ct({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:r==="vertical"});return y.createElement("div",{style:n.picker})},mZ=Object.assign||function(t){for(var e=1;e.5});return y.createElement("div",{style:n.picker})},vZ=function(){var e=ct({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 y.createElement("div",{style:e.pointer},y.createElement("div",{style:e.left},y.createElement("div",{style:e.leftInside})),y.createElement("div",{style:e.right},y.createElement("div",{style:e.rightInside})))},W2=function(e){var r=e.onClick,n=e.label,o=e.children,a=e.active,i=ct({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:a});return y.createElement("div",{style:i.button,onClick:r},n||o)},bZ=function(e){var r=e.rgb,n=e.currentColor,o=ct({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.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 y.createElement("div",null,y.createElement("div",{style:o.label},"new"),y.createElement("div",{style:o.swatches},y.createElement("div",{style:o.new}),y.createElement("div",{style:o.current})),y.createElement("div",{style:o.label},"current"))},wZ=function(){function t(e,r){for(var n=0;n100&&(h.a=100),h.a/=100,r({h:o.h,s:o.s,l:o.l,a:h.a,source:"rgb"},d))};return y.createElement("div",{style:l.fields,className:"flexbox-fix"},y.createElement("div",{style:l.double},y.createElement(bt,{style:{input:l.input,label:l.label},label:"hex",value:a.replace("#",""),onChange:u})),y.createElement("div",{style:l.single},y.createElement(bt,{style:{input:l.input,label:l.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),y.createElement("div",{style:l.single},y.createElement(bt,{style:{input:l.input,label:l.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),y.createElement("div",{style:l.single},y.createElement(bt,{style:{input:l.input,label:l.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),y.createElement("div",{style:l.alpha},y.createElement(bt,{style:{input:l.input,label:l.label},label:"a",value:Math.round(n.a*100),onChange:u,dragLabel:"true",dragMax:"100"})))},$Z=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(i,f)&&(u[f]=i[f]);return u}var a=24;return pp.default=function(i){var l=i.fill,u=l===void 0?"currentColor":l,f=i.width,h=f===void 0?a:f,d=i.height,_=d===void 0?a:d,g=i.style,b=g===void 0?{}:g,w=o(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+a+" "+a,style:t({fill:u,width:h,height:_},b)},w),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},pp}var MZ=DZ();const NZ=Ha(MZ);var PZ=function(e){var r=e.color,n=e.onClick,o=n===void 0?function(){}:n,a=e.onSwatchHover,i=e.first,l=e.last,u=e.active,f=ct({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:mw(r),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:i,last:l,active:u,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return y.createElement(Ys,{color:r,style:f.color,onClick:o,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},y.createElement("div",{style:f.check},y.createElement(NZ,null)))},RZ=function(e){var r=e.onClick,n=e.onSwatchHover,o=e.group,a=e.active,i=ct({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return y.createElement("div",{style:i.group},Ks(o,function(l,u){return y.createElement(PZ,{key:l,color:l,active:l.toLowerCase()===a,first:u===0,last:u===o.length-1,onClick:r,onSwatchHover:n})}))},Tw=function(e){var r=e.width,n=e.height,o=e.onChange,a=e.onSwatchHover,i=e.colors,l=e.hex,u=e.styles,f=u===void 0?{}:u,h=e.className,d=h===void 0?"":h,_=ct(cn({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},f)),g=function(w,S){return o({hex:w,source:"hex"},S)};return y.createElement("div",{style:_.picker,className:"swatches-picker "+d},y.createElement(Du,null,y.createElement("div",{style:_.overflow},y.createElement("div",{style:_.body},Ks(i,function(b){return y.createElement(RZ,{key:b.toString(),group:b,active:l,onClick:g,onSwatchHover:a})}),y.createElement("div",{style:_.clear})))))};Tw.propTypes={width:se.oneOfType([se.string,se.number]),height:se.oneOfType([se.string,se.number]),colors:se.arrayOf(se.arrayOf(se.string)),styles:se.object};Tw.defaultProps={width:320,height:240,colors:[[Bi[900],Bi[700],Bi[500],Bi[300],Bi[100]],[Wi[900],Wi[700],Wi[500],Wi[300],Wi[100]],[Ui[900],Ui[700],Ui[500],Ui[300],Ui[100]],[Hi[900],Hi[700],Hi[500],Hi[300],Hi[100]],[qi[900],qi[700],qi[500],qi[300],qi[100]],[Vi[900],Vi[700],Vi[500],Vi[300],Vi[100]],[Xi[900],Xi[700],Xi[500],Xi[300],Xi[100]],[Gi[900],Gi[700],Gi[500],Gi[300],Gi[100]],[Ji[900],Ji[700],Ji[500],Ji[300],Ji[100]],["#194D33",Hl[700],Hl[500],Hl[300],Hl[100]],[Yi[900],Yi[700],Yi[500],Yi[300],Yi[100]],[Ki[900],Ki[700],Ki[500],Ki[300],Ki[100]],[Zi[900],Zi[700],Zi[500],Zi[300],Zi[100]],[Qi[900],Qi[700],Qi[500],Qi[300],Qi[100]],[ec[900],ec[700],ec[500],ec[300],ec[100]],[tc[900],tc[700],tc[500],tc[300],tc[100]],[rc[900],rc[700],rc[500],rc[300],rc[100]],[nc[900],nc[700],nc[500],nc[300],nc[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};ln(Tw);var Ow=function(e){var r=e.onChange,n=e.onSwatchHover,o=e.hex,a=e.colors,i=e.width,l=e.triangle,u=e.styles,f=u===void 0?{}:u,h=e.className,d=h===void 0?"":h,_=ct(cn({default:{card:{width:i,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"}}},f),{"hide-triangle":l==="hide","top-left-triangle":l==="top-left","top-right-triangle":l==="top-right"}),g=function(w,S){Ja(w)&&r({hex:w,source:"hex"},S)};return y.createElement("div",{style:_.card,className:"twitter-picker "+d},y.createElement("div",{style:_.triangleShadow}),y.createElement("div",{style:_.triangle}),y.createElement("div",{style:_.body},Ks(a,function(b,w){return y.createElement(Ys,{key:w,color:b,hex:b,style:_.swatch,onClick:g,onHover:n,focusStyle:{boxShadow:"0 0 4px "+b}})}),y.createElement("div",{style:_.hash},"#"),y.createElement(bt,{label:null,style:{input:_.input},value:o.replace("#",""),onChange:g}),y.createElement("div",{style:_.clear})))};Ow.propTypes={width:se.oneOfType([se.string,se.number]),triangle:se.oneOf(["hide","top-left","top-right"]),colors:se.arrayOf(se.string),styles:se.object};Ow.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};ln(Ow);var Dw=function(e){var r=ct({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 y.createElement("div",{style:r.picker})};Dw.propTypes={hsl:se.shape({h:se.number,s:se.number,l:se.number,a:se.number})};Dw.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Mw=function(e){var r=ct({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 y.createElement("div",{style:r.picker})};Mw.propTypes={hsl:se.shape({h:se.number,s:se.number,l:se.number,a:se.number})};Mw.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var AZ=function(e){var r=e.onChange,n=e.rgb,o=e.hsl,a=e.hex,i=e.hsv,l=function(g,b){if(g.hex)Ja(g.hex)&&r({hex:g.hex,source:"hex"},b);else if(g.rgb){var w=g.rgb.split(",");fv(g.rgb,"rgb")&&r({r:w[0],g:w[1],b:w[2],a:1,source:"rgb"},b)}else if(g.hsv){var S=g.hsv.split(",");fv(g.hsv,"hsv")&&(S[2]=S[2].replace("%",""),S[1]=S[1].replace("%",""),S[0]=S[0].replace("°",""),S[1]==1?S[1]=.01:S[2]==1&&(S[2]=.01),r({h:Number(S[0]),s:Number(S[1]),v:Number(S[2]),source:"hsv"},b))}else if(g.hsl){var k=g.hsl.split(",");fv(g.hsl,"hsl")&&(k[2]=k[2].replace("%",""),k[1]=k[1].replace("%",""),k[0]=k[0].replace("°",""),d[1]==1?d[1]=.01:d[2]==1&&(d[2]=.01),r({h:Number(k[0]),s:Number(k[1]),v:Number(k[2]),source:"hsl"},b))}},u=ct({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"}}}),f=n.r+", "+n.g+", "+n.b,h=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.l*100)+"%",d=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.v*100)+"%";return y.createElement("div",{style:u.wrap,className:"flexbox-fix"},y.createElement("div",{style:u.fields},y.createElement("div",{style:u.double},y.createElement(bt,{style:{input:u.input,label:u.label},label:"hex",value:a,onChange:l})),y.createElement("div",{style:u.column},y.createElement("div",{style:u.single},y.createElement(bt,{style:{input:u.input2,label:u.label2},label:"rgb",value:f,onChange:l})),y.createElement("div",{style:u.single},y.createElement(bt,{style:{input:u.input2,label:u.label2},label:"hsv",value:d,onChange:l})),y.createElement("div",{style:u.single},y.createElement(bt,{style:{input:u.input2,label:u.label2},label:"hsl",value:h,onChange:l})))))},Nw=function(e){var r=e.width,n=e.onChange,o=e.rgb,a=e.hsl,i=e.hsv,l=e.hex,u=e.header,f=e.styles,h=f===void 0?{}:f,d=e.className,_=d===void 0?"":d,g=ct(cn({default:{picker:{width:r,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("+o.r+", "+o.g+", "+o.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"}}},h));return y.createElement("div",{style:g.picker,className:"google-picker "+_},y.createElement("div",{style:g.head},u),y.createElement("div",{style:g.swatch}),y.createElement("div",{style:g.saturation},y.createElement(Yf,{hsl:a,hsv:i,pointer:Dw,onChange:n})),y.createElement("div",{style:g.body},y.createElement("div",{style:g.controls,className:"flexbox-fix"},y.createElement("div",{style:g.hue},y.createElement(Pc,{style:g.Hue,hsl:a,radius:"4px",pointer:Mw,onChange:n}))),y.createElement(AZ,{rgb:o,hsl:a,hex:l,hsv:i,onChange:n})))};Nw.propTypes={width:se.oneOfType([se.string,se.number]),styles:se.object,header:se.string};Nw.defaultProps={width:652,styles:{},header:"Color picker"};ln(Nw);var mv={exports:{}},H2;function Mo(){return H2||(H2=1,function(t,e){(function(n,o){t.exports=o()})(globalThis,()=>(()=>{var r={949:(i,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.CronParser=void 0;var f=u(515),h=function(){function d(_,g,b){g===void 0&&(g=!0),b===void 0&&(b=!1),this.expression=_,this.dayOfWeekStartIndexZero=g,this.monthStartIndexZero=b}return d.prototype.parse=function(){var _,g,b=(_=this.expression)!==null&&_!==void 0?_:"";if(b.startsWith("@")){var w=this.parseSpecial(this.expression);g=this.extractParts(w)}else g=this.extractParts(this.expression);return this.normalize(g),this.validate(g),g},d.prototype.parseSpecial=function(_){var g={"@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 * * * *"},b=g[_];if(!b)throw new Error("Unknown special expression.");return b},d.prototype.extractParts=function(_){if(!this.expression)throw new Error("cron expression is empty");for(var g=_.trim().split(/[ ]+/),b=0;b7)throw new Error("Expression has ".concat(g.length," parts; too many!"));return g},d.prototype.normalize=function(_){var g=this;if(_[3]=_[3].replace("?","*"),_[5]=_[5].replace("?","*"),_[2]=_[2].replace("?","*"),_[0].indexOf("0/")==0&&(_[0]=_[0].replace("0/","*/")),_[1].indexOf("0/")==0&&(_[1]=_[1].replace("0/","*/")),_[2].indexOf("0/")==0&&(_[2]=_[2].replace("0/","*/")),_[3].indexOf("1/")==0&&(_[3]=_[3].replace("1/","*/")),_[4].indexOf("1/")==0&&(_[4]=_[4].replace("1/","*/")),_[6].indexOf("1/")==0&&(_[6]=_[6].replace("1/","*/")),_[5]=_[5].replace(/(^\d)|([^#/\s]\d)/g,function(M){var T=M.replace(/\D/,""),P=T;return g.dayOfWeekStartIndexZero?T=="7"&&(P="0"):P=(parseInt(T)-1).toString(),M.replace(T,P)}),_[5]=="L"&&(_[5]="6"),_[3]=="?"&&(_[3]="*"),_[3].indexOf("W")>-1&&(_[3].indexOf(",")>-1||_[3].indexOf("-")>-1))throw new 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 b={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var w in b)_[5]=_[5].replace(new RegExp(w,"gi"),b[w].toString());_[4]=_[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(M){var T=M.replace(/\D/,""),P=T;return g.monthStartIndexZero&&(P=(parseInt(T)+1).toString()),M.replace(T,P)});var S={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 k in S)_[4]=_[4].replace(new RegExp(k,"gi"),S[k].toString());_[0]=="0"&&(_[0]=""),!/\*|\-|\,|\//.test(_[2])&&(/\*|\//.test(_[1])||/\*|\//.test(_[0]))&&(_[2]+="-".concat(_[2]));for(var D=0;D<_.length;D++)if(_[D].indexOf(",")!=-1&&(_[D]=_[D].split(",").filter(function(M){return M!==""}).join(",")||"*"),_[D]=="*/1"&&(_[D]="*"),_[D].indexOf("/")>-1&&!/^\*|\-|\,/.test(_[D])){var C=null;switch(D){case 4:C="12";break;case 5:C="6";break;case 6:C="9999";break;default:C=null;break}if(C!==null){var O=_[D].split("/");_[D]="".concat(O[0],"-").concat(C,"/").concat(O[1])}}},d.prototype.validate=function(_){this.assertNoInvalidCharacters("DOW",_[5]),this.assertNoInvalidCharacters("DOM",_[3]),this.validateRange(_)},d.prototype.validateRange=function(_){f.default.secondRange(_[0]),f.default.minuteRange(_[1]),f.default.hourRange(_[2]),f.default.dayOfMonthRange(_[3]),f.default.monthRange(_[4],this.monthStartIndexZero),f.default.dayOfWeekRange(_[5],this.dayOfWeekStartIndexZero)},d.prototype.assertNoInvalidCharacters=function(_,g){var b=g.match(/[A-KM-VX-Z]+/gi);if(b&&b.length)throw new Error("".concat(_," part contains invalid values: '").concat(b.toString(),"'"))},d}();l.CronParser=h},333:(i,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ExpressionDescriptor=void 0;var f=u(823),h=u(949),d=function(){function _(g,b){if(this.expression=g,this.options=b,this.expressionParts=new Array(5),!this.options.locale&&_.defaultLocale&&(this.options.locale=_.defaultLocale),!_.locales[this.options.locale]){var w=Object.keys(_.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(w,"'.")),this.options.locale=w}this.i18n=_.locales[this.options.locale],b.use24HourTimeFormat===void 0&&(b.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return _.toString=function(g,b){var w=b===void 0?{}:b,S=w.throwExceptionOnParseError,k=S===void 0?!0:S,D=w.verbose,C=D===void 0?!1:D,O=w.dayOfWeekStartIndexZero,M=O===void 0?!0:O,T=w.monthStartIndexZero,P=T===void 0?!1:T,j=w.use24HourTimeFormat,F=w.locale,E=F===void 0?null:F,L=w.tzOffset,G=L===void 0?0:L,B={throwExceptionOnParseError:k,verbose:C,dayOfWeekStartIndexZero:M,monthStartIndexZero:P,use24HourTimeFormat:j,locale:E,tzOffset:G},z=new _(g,B);return z.getFullDescription()},_.initialize=function(g,b){b===void 0&&(b="en"),_.specialCharacters=["/","-",",","*"],_.defaultLocale=b,g.load(_.locales)},_.prototype.getFullDescription=function(){var g="";try{var b=new h.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=b.parse();var w=this.getTimeOfDayDescription(),S=this.getDayOfMonthDescription(),k=this.getMonthDescription(),D=this.getDayOfWeekDescription(),C=this.getYearDescription();g+=w+S+D+k+C,g=this.transformVerbosity(g,!!this.options.verbose),g=g.charAt(0).toLocaleUpperCase()+g.substr(1)}catch(O){if(!this.options.throwExceptionOnParseError)g=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(O)}return g},_.prototype.getTimeOfDayDescription=function(){var g=this.expressionParts[0],b=this.expressionParts[1],w=this.expressionParts[2],S="";if(!f.StringUtilities.containsAny(b,_.specialCharacters)&&!f.StringUtilities.containsAny(w,_.specialCharacters)&&!f.StringUtilities.containsAny(g,_.specialCharacters))S+=this.i18n.atSpace()+this.formatTime(w,b,g);else if(!g&&b.indexOf("-")>-1&&!(b.indexOf(",")>-1)&&!(b.indexOf("/")>-1)&&!f.StringUtilities.containsAny(w,_.specialCharacters)){var k=b.split("-");S+=f.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(w,k[0],""),this.formatTime(w,k[1],""))}else if(!g&&w.indexOf(",")>-1&&w.indexOf("-")==-1&&w.indexOf("/")==-1&&!f.StringUtilities.containsAny(b,_.specialCharacters)){var D=w.split(",");S+=this.i18n.at();for(var C=0;C1){var k=S[S.length-1].index;w=w.substring(0,k)+":59"+w.substring(k+3)}}return w},_.prototype.getDayOfWeekDescription=function(){var g=this,b=this.i18n.daysOfTheWeek(),w=null;return this.expressionParts[5]=="*"?w="":w=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(S,k){var D=S;S.indexOf("#")>-1?D=S.substring(0,S.indexOf("#")):S.indexOf("L")>-1&&(D=D.replace("L",""));var C=parseInt(D);if(g.options.tzOffset){var O=g.expressionParts[2],M=parseInt(O)+(g.options.tzOffset?g.options.tzOffset:0);M>=24?C++:M<0&&C--,C>6?C=0:C<0&&(C=6)}var T=g.i18n.daysOfTheWeekInCase?g.i18n.daysOfTheWeekInCase(k)[C]:b[C];if(S.indexOf("#")>-1){var P=null,j=S.substring(S.indexOf("#")+1),F=S.substring(0,S.indexOf("#"));switch(j){case"1":P=g.i18n.first(F);break;case"2":P=g.i18n.second(F);break;case"3":P=g.i18n.third(F);break;case"4":P=g.i18n.fourth(F);break;case"5":P=g.i18n.fifth(F);break}T=P+" "+T}return T},function(S){return parseInt(S)==1?"":f.StringUtilities.format(g.i18n.commaEveryX0DaysOfTheWeek(S),S)},function(S){var k=S.substring(0,S.indexOf("-")),D=g.expressionParts[3]!="*";return D?g.i18n.commaAndX0ThroughX1(k):g.i18n.commaX0ThroughX1(k)},function(S){var k=null;if(S.indexOf("#")>-1){var D=S.substring(S.indexOf("#")+1),C=S.substring(0,S.indexOf("#"));k=g.i18n.commaOnThe(D,C).trim()+g.i18n.spaceX0OfTheMonth()}else if(S.indexOf("L")>-1)k=g.i18n.commaOnTheLastX0OfTheMonth(S.replace("L",""));else{var O=g.expressionParts[3]!="*";k=O?g.i18n.commaAndOnX0():g.i18n.commaOnlyOnX0(S)}return k}),w},_.prototype.getMonthDescription=function(){var g=this,b=this.i18n.monthsOfTheYear(),w=this.getSegmentDescription(this.expressionParts[4],"",function(S,k){return k&&g.i18n.monthsOfTheYearInCase?g.i18n.monthsOfTheYearInCase(k)[parseInt(S)-1]:b[parseInt(S)-1]},function(S){return parseInt(S)==1?"":f.StringUtilities.format(g.i18n.commaEveryX0Months(S),S)},function(S){return g.i18n.commaMonthX0ThroughMonthX1()||g.i18n.commaX0ThroughX1()},function(S){return g.i18n.commaOnlyInMonthX0?g.i18n.commaOnlyInMonthX0():g.i18n.commaOnlyInX0()});return w},_.prototype.getDayOfMonthDescription=function(){var g=this,b=null,w=this.expressionParts[3];switch(w){case"L":b=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":b=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var S=w.match(/(\d{1,2}W)|(W\d{1,2})/);if(S){var k=parseInt(S[0].replace("W","")),D=k==1?this.i18n.firstWeekday():f.StringUtilities.format(this.i18n.weekdayNearestDayX0(),k.toString());b=f.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),D);break}else{var C=w.match(/L-(\d{1,2})/);if(C){var O=C[1];b=f.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(O),O);break}else{if(w=="*"&&this.expressionParts[5]!="*")return"";b=this.getSegmentDescription(w,this.i18n.commaEveryDay(),function(M){return M=="L"?g.i18n.lastDay():g.i18n.dayX0?f.StringUtilities.format(g.i18n.dayX0(),M):M},function(M){return M=="1"?g.i18n.commaEveryDay():g.i18n.commaEveryX0Days(M)},function(M){return g.i18n.commaBetweenDayX0AndX1OfTheMonth(M)},function(M){return g.i18n.commaOnDayX0OfTheMonth(M)})}break}}return b},_.prototype.getYearDescription=function(){var g=this,b=this.getSegmentDescription(this.expressionParts[6],"",function(w){return/^\d+$/.test(w)?new Date(parseInt(w),1).getFullYear().toString():w},function(w){return f.StringUtilities.format(g.i18n.commaEveryX0Years(w),w)},function(w){return g.i18n.commaYearX0ThroughYearX1()||g.i18n.commaX0ThroughX1()},function(w){return g.i18n.commaOnlyInYearX0?g.i18n.commaOnlyInYearX0():g.i18n.commaOnlyInX0()});return b},_.prototype.getSegmentDescription=function(g,b,w,S,k,D){var C=null,O=g.indexOf("/")>-1,M=g.indexOf("-")>-1,T=g.indexOf(",")>-1;if(!g)C="";else if(g==="*")C=b;else if(!O&&!M&&!T)C=f.StringUtilities.format(D(g),w(g));else if(T){for(var P=g.split(","),j="",F=0;F0&&P.length>2&&(j+=",",F0&&P.length>1&&(F==P.length-1||P.length==2)&&(j+="".concat(this.i18n.spaceAnd()," ")),P[F].indexOf("/")>-1||P[F].indexOf("-")>-1){var E=P[F].indexOf("-")>-1&&P[F].indexOf("/")==-1,L=this.getSegmentDescription(P[F],b,w,S,E?this.i18n.commaX0ThroughX1:k,D);E&&(L=L.replace(", ","")),j+=L}else O?j+=this.getSegmentDescription(P[F],b,w,S,k,D):j+=w(P[F]);O?C=j:C=f.StringUtilities.format(D(g),j)}else if(O){var P=g.split("/");if(C=f.StringUtilities.format(S(P[1]),P[1]),P[0].indexOf("-")>-1){var G=this.generateRangeSegmentDescription(P[0],k,w);G.indexOf(", ")!=0&&(C+=", "),C+=G}else if(P[0].indexOf("*")==-1){var B=f.StringUtilities.format(D(P[0]),w(P[0]));B=B.replace(", ",""),C+=f.StringUtilities.format(this.i18n.commaStartingX0(),B)}}else M&&(C=this.generateRangeSegmentDescription(g,k,w));return C},_.prototype.generateRangeSegmentDescription=function(g,b,w){var S="",k=g.split("-"),D=w(k[0],1),C=w(k[1],2),O=b(g);return S+=f.StringUtilities.format(O,D,C),S},_.prototype.formatTime=function(g,b,w){var S=0,k=0;this.options.tzOffset&&(S=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),k=parseFloat((this.options.tzOffset%1).toFixed(2)),k!=0&&(k*=60));var D=parseInt(g)+S,C=parseInt(b)+k;C>=60?(C-=60,D+=1):C<0&&(C+=60,D-=1),D>=24?D=D-24:D<0&&(D=24+D);var O="",M=!1;this.options.use24HourTimeFormat||(M=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),O=M?"".concat(this.getPeriod(D)," "):" ".concat(this.getPeriod(D)),D>12&&(D-=12),D===0&&(D=12));var T="";return w&&(T=":".concat(("00"+w).substring(w.length))),"".concat(M?O:"").concat(("00"+D.toString()).substring(D.toString().length),":").concat(("00"+C.toString()).substring(C.toString().length)).concat(T).concat(M?"":O)},_.prototype.transformVerbosity=function(g,b){return b||(g=g.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),g=g.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),g=g.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),g=g.replace(/\, ?$/,"")),g},_.prototype.getPeriod=function(g){return g>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},_.locales={},_}();l.ExpressionDescriptor=d},747:(i,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.enLocaleLoader=void 0;var f=u(486),h=function(){function d(){}return d.prototype.load=function(_){_.en=new f.en},d}();l.enLocaleLoader=h},486:(i,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.en=void 0;var u=function(){function f(){}return f.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},f.prototype.atX0MinutesPastTheHourGt20=function(){return null},f.prototype.commaMonthX0ThroughMonthX1=function(){return null},f.prototype.commaYearX0ThroughYearX1=function(){return null},f.prototype.use24HourTimeFormatByDefault=function(){return!1},f.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},f.prototype.everyMinute=function(){return"every minute"},f.prototype.everyHour=function(){return"every hour"},f.prototype.atSpace=function(){return"At "},f.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},f.prototype.at=function(){return"At"},f.prototype.spaceAnd=function(){return" and"},f.prototype.everySecond=function(){return"every second"},f.prototype.everyX0Seconds=function(){return"every %s seconds"},f.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},f.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},f.prototype.everyX0Minutes=function(){return"every %s minutes"},f.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},f.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},f.prototype.everyX0Hours=function(){return"every %s hours"},f.prototype.betweenX0AndX1=function(){return"between %s and %s"},f.prototype.atX0=function(){return"at %s"},f.prototype.commaEveryDay=function(){return", every day"},f.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},f.prototype.commaX0ThroughX1=function(){return", %s through %s"},f.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},f.prototype.first=function(){return"first"},f.prototype.second=function(){return"second"},f.prototype.third=function(){return"third"},f.prototype.fourth=function(){return"fourth"},f.prototype.fifth=function(){return"fifth"},f.prototype.commaOnThe=function(){return", on the "},f.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},f.prototype.lastDay=function(){return"the last day"},f.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},f.prototype.commaOnlyOnX0=function(){return", only on %s"},f.prototype.commaAndOnX0=function(){return", and on %s"},f.prototype.commaEveryX0Months=function(){return", every %s months"},f.prototype.commaOnlyInX0=function(){return", only in %s"},f.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},f.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},f.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},f.prototype.firstWeekday=function(){return"first weekday"},f.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},f.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},f.prototype.commaEveryX0Days=function(){return", every %s days"},f.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},f.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},f.prototype.commaEveryHour=function(){return", every hour"},f.prototype.commaEveryX0Years=function(){return", every %s years"},f.prototype.commaStartingX0=function(){return", starting %s"},f.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},f.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},f}();l.en=u},515:(i,l)=>{Object.defineProperty(l,"__esModule",{value:!0});function u(h,d){if(!h)throw new Error(d)}var f=function(){function h(){}return h.secondRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=0&&b<=59,"seconds part must be >= 0 and <= 59")}},h.minuteRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=0&&b<=59,"minutes part must be >= 0 and <= 59")}},h.hourRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=0&&b<=23,"hours part must be >= 0 and <= 23")}},h.dayOfMonthRange=function(d){for(var _=d.split(","),g=0;g<_.length;g++)if(!isNaN(parseInt(_[g],10))){var b=parseInt(_[g],10);u(b>=1&&b<=31,"DOM part must be >= 1 and <= 31")}},h.monthRange=function(d,_){for(var g=d.split(","),b=0;b=1&&w<=12,_?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},h.dayOfWeekRange=function(d,_){for(var g=d.split(","),b=0;b=0&&w<=6,_?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},h}();l.default=f},823:(i,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.StringUtilities=void 0;var u=function(){function f(){}return f.format=function(h){for(var d=[],_=1;_-1})},f}();l.StringUtilities=u}},n={};function o(i){var l=n[i];if(l!==void 0)return l.exports;var u=n[i]={exports:{}};return r[i](u,u.exports,o),u.exports}var a={};return(()=>{var i=a;Object.defineProperty(i,"__esModule",{value:!0}),i.toString=void 0;var l=o(333),u=o(747);l.ExpressionDescriptor.initialize(new u.enLocaleLoader),i.default=l.ExpressionDescriptor;var f=l.ExpressionDescriptor.toString;i.toString=f})(),a})())}(mv)),mv.exports}var IZ=Mo();const jZ=Ha(IZ);var _v={exports:{}},q2;function LZ(){return q2||(q2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.fr=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"toutes les minutes"},d.prototype.everyHour=function(){return"toutes les heures"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},d.prototype.atSpace=function(){return"À "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},d.prototype.at=function(){return"À"},d.prototype.spaceAnd=function(){return" et"},d.prototype.everySecond=function(){return"toutes les secondes"},d.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},d.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},d.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},d.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},d.prototype.everyX0Hours=function(){return"toutes les %s heures"},d.prototype.betweenX0AndX1=function(){return"de %s à %s"},d.prototype.atX0=function(){return"à %s"},d.prototype.commaEveryDay=function(){return", tous les jours"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},d.prototype.commaX0ThroughX1=function(){return", de %s à %s"},d.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},d.prototype.first=function(){return"premier"},d.prototype.second=function(){return"second"},d.prototype.third=function(){return"troisième"},d.prototype.fourth=function(){return"quatrième"},d.prototype.fifth=function(){return"cinquième"},d.prototype.commaOnThe=function(){return", le "},d.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},d.prototype.lastDay=function(){return"le dernier jour"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},d.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},d.prototype.commaAndOnX0=function(){return", et %s"},d.prototype.commaEveryX0Months=function(){return", tous les %s mois"},d.prototype.commaOnlyInX0=function(){return", uniquement en %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},d.prototype.firstWeekday=function(){return"premier jour ouvrable"},d.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},d.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},d.prototype.commaEveryX0Days=function(){return", tous les %s jours"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},d.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},d.prototype.commaEveryX0Years=function(){return", tous les %s ans"},d.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},d.prototype.commaStartingX0=function(){return", à partir de %s"},d.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},d.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},d}();return f.fr=h,u().locales.fr=new h,i})())}(_v)),_v.exports}LZ();var gv={exports:{}},V2;function FZ(){return V2||(V2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.es=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.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."},d.prototype.at=function(){return"A las"},d.prototype.atSpace=function(){return"A las "},d.prototype.atX0=function(){return"a las %s"},d.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},d.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},d.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},d.prototype.commaEveryDay=function(){return", cada día"},d.prototype.commaEveryX0Days=function(){return", cada %s días"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},d.prototype.commaEveryX0Months=function(){return", cada %s meses"},d.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},d.prototype.commaOnlyInX0=function(){return", sólo en %s"},d.prototype.commaOnlyOnX0=function(){return", sólo el %s"},d.prototype.commaAndOnX0=function(){return", y el %s"},d.prototype.commaOnThe=function(){return", en el "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},d.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},d.prototype.commaX0ThroughX1=function(){return", de %s a %s"},d.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},d.prototype.everyHour=function(){return"cada hora"},d.prototype.everyMinute=function(){return"cada minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},d.prototype.everySecond=function(){return"cada segundo"},d.prototype.everyX0Hours=function(){return"cada %s horas"},d.prototype.everyX0Minutes=function(){return"cada %s minutos"},d.prototype.everyX0Seconds=function(){return"cada %s segundos"},d.prototype.fifth=function(){return"quinto"},d.prototype.first=function(){return"primero"},d.prototype.firstWeekday=function(){return"primer día de la semana"},d.prototype.fourth=function(){return"cuarto"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},d.prototype.second=function(){return"segundo"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},d.prototype.spaceAnd=function(){return" y"},d.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},d.prototype.lastDay=function(){return"el último día"},d.prototype.third=function(){return"tercer"},d.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},d.prototype.commaEveryX0Years=function(){return", cada %s años"},d.prototype.commaStartingX0=function(){return", comenzando %s"},d.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},d.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},d}();return f.es=h,u().locales.es=new h,i})())}(gv)),gv.exports}FZ();var yv={exports:{}},X2;function zZ(){return X2||(X2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.de=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"jede Minute"},d.prototype.everyHour=function(){return"jede Stunde"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},d.prototype.atSpace=function(){return"Um "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},d.prototype.at=function(){return"Um"},d.prototype.spaceAnd=function(){return" und"},d.prototype.everySecond=function(){return"Jede Sekunde"},d.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},d.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},d.prototype.everyX0Minutes=function(){return"alle %s Minuten"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},d.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},d.prototype.everyX0Hours=function(){return"alle %s Stunden"},d.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},d.prototype.atX0=function(){return"um %s"},d.prototype.commaEveryDay=function(){return", jeden Tag"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},d.prototype.commaX0ThroughX1=function(){return", %s bis %s"},d.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},d.prototype.first=function(){return"ersten"},d.prototype.second=function(){return"zweiten"},d.prototype.third=function(){return"dritten"},d.prototype.fourth=function(){return"vierten"},d.prototype.fifth=function(){return"fünften"},d.prototype.commaOnThe=function(){return", am "},d.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},d.prototype.lastDay=function(){return"der letzte Tag"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},d.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},d.prototype.commaAndOnX0=function(){return", und jeden %s"},d.prototype.commaEveryX0Months=function(){return", alle %s Monate"},d.prototype.commaOnlyInX0=function(){return", nur im %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},d.prototype.firstWeekday=function(){return"ersten Werktag"},d.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},d.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},d.prototype.commaEveryX0Days=function(){return", alle %s Tage"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},d.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},d.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},d.prototype.commaStartingX0=function(){return", beginnend %s"},d.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},d.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},d}();return f.de=h,u().locales.de=new h,i})())}(yv)),yv.exports}zZ();var vv={exports:{}},G2;function BZ(){return G2||(G2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.it=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},d.prototype.at=function(){return"Alle"},d.prototype.atSpace=function(){return"Alle "},d.prototype.atX0=function(){return"alle %s"},d.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},d.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},d.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},d.prototype.commaEveryDay=function(){return", ogni giorno"},d.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},d.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},d.prototype.commaEveryX0Years=function(){return", ogni %s anni"},d.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},d.prototype.commaOnlyInX0=function(){return", solo in %s"},d.prototype.commaOnlyOnX0=function(){return", solo il %s"},d.prototype.commaAndOnX0=function(){return", e il %s"},d.prototype.commaOnThe=function(){return", il "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},d.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},d.prototype.commaX0ThroughX1=function(){return", %s al %s"},d.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},d.prototype.everyHour=function(){return"ogni ora"},d.prototype.everyMinute=function(){return"ogni minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},d.prototype.everySecond=function(){return"ogni secondo"},d.prototype.everyX0Hours=function(){return"ogni %s ore"},d.prototype.everyX0Minutes=function(){return"ogni %s minuti"},d.prototype.everyX0Seconds=function(){return"ogni %s secondi"},d.prototype.fifth=function(){return"quinto"},d.prototype.first=function(){return"primo"},d.prototype.firstWeekday=function(){return"primo giorno della settimana"},d.prototype.fourth=function(){return"quarto"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},d.prototype.second=function(){return"secondo"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},d.prototype.spaceAnd=function(){return" e"},d.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},d.prototype.lastDay=function(){return"l'ultimo giorno"},d.prototype.third=function(){return"terzo"},d.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},d.prototype.commaStartingX0=function(){return", a partire %s"},d.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},d.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},d}();return f.it=h,u().locales.it=new h,i})())}(vv)),vv.exports}BZ();var bv={exports:{}},J2;function WZ(){return J2||(J2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:g=>{g.exports=r}},o={};function a(g){var b=o[g];if(b!==void 0)return b.exports;var w=o[g]={exports:{}};return n[g](w,w.exports,a),w.exports}a.n=g=>{var b=g&&g.__esModule?()=>g.default:()=>g;return a.d(b,{a:b}),b},a.d=(g,b)=>{for(var w in b)a.o(b,w)&&!a.o(g,w)&&Object.defineProperty(g,w,{enumerable:!0,get:b[w]})},a.o=(g,b)=>Object.prototype.hasOwnProperty.call(g,b),a.r=g=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.ru=void 0;var h=function(g,b){var w=Number(g);return w!==void 0?b[w%100>4&&w%100<20?2:[2,0,1,1,1,2][w%10<5?Math.abs(w)%10:5]]:b[2]},d=function(g,b){var w=Number(g);return w!==void 0?b[w===0?0:w===1||w===2||w===4?1:2]:b[1]},_=function(){function g(){}return g.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},g.prototype.atX0MinutesPastTheHourGt20=function(){return null},g.prototype.commaMonthX0ThroughMonthX1=function(){return null},g.prototype.commaYearX0ThroughYearX1=function(){return null},g.prototype.use24HourTimeFormatByDefault=function(){return!0},g.prototype.everyMinute=function(){return"каждую минуту"},g.prototype.everyHour=function(){return"каждый час"},g.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},g.prototype.atSpace=function(){return"В "},g.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},g.prototype.at=function(){return"В"},g.prototype.spaceAnd=function(){return" и"},g.prototype.everySecond=function(){return"каждую секунду"},g.prototype.everyX0Seconds=function(b){return h(b,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},g.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},g.prototype.atX0SecondsPastTheMinute=function(b){return h(b,["в %s секунду","в %s секунды","в %s секунд"])},g.prototype.everyX0Minutes=function(b){return h(b,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},g.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},g.prototype.atX0MinutesPastTheHour=function(b){return h(b,["в %s минуту","в %s минуты","в %s минут"])},g.prototype.everyX0Hours=function(b){return h(b,["каждый %s час","каждые %s часа","каждые %s часов"])},g.prototype.betweenX0AndX1=function(){return"с %s по %s"},g.prototype.atX0=function(){return"в %s"},g.prototype.commaEveryDay=function(){return", каждый день"},g.prototype.commaEveryX0DaysOfTheWeek=function(b){return h(b,["",", каждые %s дня недели",", каждые %s дней недели"])},g.prototype.commaX0ThroughX1=function(b){return b&&(b[0]=="2"||b[0]=="3")?", со %s по %s":", с %s по %s"},g.prototype.commaAndX0ThroughX1=function(b){return b&&(b[0]=="2"||b[0]=="3")?" и со %s по %s":" и с %s по %s"},g.prototype.first=function(b){return d(b,["первое","первый","первую"])},g.prototype.second=function(b){return d(b,["второе","второй","вторую"])},g.prototype.third=function(b){return d(b,["третье","третий","третью"])},g.prototype.fourth=function(b){return d(b,["четвертое","четвертый","четвертую"])},g.prototype.fifth=function(b){return d(b,["пятое","пятый","пятую"])},g.prototype.commaOnThe=function(b){return b==="2"?", во ":", в "},g.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},g.prototype.lastDay=function(){return"последний день"},g.prototype.commaOnTheLastX0OfTheMonth=function(b){return d(b,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},g.prototype.commaOnlyOnX0=function(b){return b&&b[0]==="2"?", только во %s":", только в %s"},g.prototype.commaAndOnX0=function(){return", и %s"},g.prototype.commaEveryX0Months=function(b){return h(b,[""," каждые %s месяца"," каждые %s месяцев"])},g.prototype.commaOnlyInMonthX0=function(){return", только %s"},g.prototype.commaOnlyInX0=function(){return", только в %s"},g.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},g.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},g.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(b){return h(b,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},g.prototype.firstWeekday=function(){return"первый будний день"},g.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},g.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},g.prototype.commaEveryX0Days=function(b){return h(b,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},g.prototype.commaBetweenDayX0AndX1OfTheMonth=function(b){return b&&b.substring(0,b.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},g.prototype.commaOnDayX0OfTheMonth=function(b){return b&&b[0]=="2"?", во %s число месяца":", в %s число месяца"},g.prototype.commaEveryX0Years=function(b){return h(b,[", каждый %s год",", каждые %s года",", каждые %s лет"])},g.prototype.commaStartingX0=function(){return", начало %s"},g.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},g.prototype.daysOfTheWeekInCase=function(b){return b===void 0&&(b=2),b==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},g.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},g.prototype.monthsOfTheYearInCase=function(b){return b==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},g}();return f.ru=_,u().locales.ru=new _,i})())}(bv)),bv.exports}WZ();var wv={exports:{}},Y2;function UZ(){return Y2||(Y2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.zh_CN=void 0;var h=function(){function d(){}return d.prototype.setPeriodBeforeTime=function(){return!0},d.prototype.pm=function(){return"下午"},d.prototype.am=function(){return"上午"},d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},d.prototype.use24HourTimeFormatByDefault=function(){return!1},d.prototype.everyMinute=function(){return"每分钟"},d.prototype.everyHour=function(){return"每小时"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},d.prototype.atSpace=function(){return"在"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},d.prototype.at=function(){return"在"},d.prototype.spaceAnd=function(){return" 和"},d.prototype.everySecond=function(){return"每秒"},d.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在每分钟的第 %s 到 %s 秒"},d.prototype.atX0SecondsPastTheMinute=function(){return"在每分钟的第 %s 秒"},d.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"在每小时的第 %s 到 %s 分钟"},d.prototype.atX0MinutesPastTheHour=function(){return"在每小时的第 %s 分钟"},d.prototype.everyX0Hours=function(){return"每隔 %s 小时"},d.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},d.prototype.atX0=function(){return"在%s"},d.prototype.commaEveryDay=function(){return", 每天"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},d.prototype.commaX0ThroughX1=function(){return", %s至%s"},d.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},d.prototype.first=function(){return"第一个"},d.prototype.second=function(){return"第二个"},d.prototype.third=function(){return"第三个"},d.prototype.fourth=function(){return"第四个"},d.prototype.fifth=function(){return"第五个"},d.prototype.commaOnThe=function(){return", 限每月的"},d.prototype.spaceX0OfTheMonth=function(){return"%s"},d.prototype.lastDay=function(){return"本月最后一天"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},d.prototype.commaOnlyOnX0=function(){return", 仅%s"},d.prototype.commaAndOnX0=function(){return", 或者为%s"},d.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},d.prototype.commaOnlyInX0=function(){return", 仅限%s"},d.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},d.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},d.prototype.firstWeekday=function(){return"第一个工作日"},d.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},d.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},d.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},d.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},d.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},d.prototype.commaStartingX0=function(){return", %s开始"},d.prototype.dayX0=function(){return" %s 号"},d.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},d.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},d}();return f.zh_CN=h,u().locales.zh_CN=new h,i})())}(wv)),wv.exports}UZ();var xv={exports:{}},K2;function HZ(){return K2||(K2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.uk=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.everyMinute=function(){return"щохвилини"},d.prototype.everyHour=function(){return"щогодини"},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},d.prototype.atSpace=function(){return"О "},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},d.prototype.at=function(){return"О"},d.prototype.spaceAnd=function(){return" та"},d.prototype.everySecond=function(){return"Щосекунди"},d.prototype.everyX0Seconds=function(){return"кожні %s секунд"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},d.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},d.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},d.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},d.prototype.everyX0Hours=function(){return"кожні %s годин"},d.prototype.betweenX0AndX1=function(){return"між %s та %s"},d.prototype.atX0=function(){return"о %s"},d.prototype.commaEveryDay=function(){return", щоденно"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},d.prototype.commaX0ThroughX1=function(){return", %s по %s"},d.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},d.prototype.first=function(){return"перший"},d.prototype.second=function(){return"другий"},d.prototype.third=function(){return"третій"},d.prototype.fourth=function(){return"четвертий"},d.prototype.fifth=function(){return"п'ятий"},d.prototype.commaOnThe=function(){return", в "},d.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},d.prototype.lastDay=function(){return"останній день"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},d.prototype.commaOnlyOnX0=function(){return", тільки в %s"},d.prototype.commaAndOnX0=function(){return", і в %s"},d.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},d.prototype.commaOnlyInX0=function(){return", тільки в %s"},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},d.prototype.firstWeekday=function(){return"перший будень"},d.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},d.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},d.prototype.commaEveryX0Days=function(){return", кожен %s день"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},d.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},d.prototype.commaEveryX0Years=function(){return", кожні %s роки"},d.prototype.commaStartingX0=function(){return", початок %s"},d.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},d.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},d}();return f.uk=h,u().locales.uk=new h,i})())}(xv)),xv.exports}HZ();var Sv={exports:{}},Z2;function qZ(){return Z2||(Z2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.pt_BR=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},d.prototype.at=function(){return"às"},d.prototype.atSpace=function(){return"às "},d.prototype.atX0=function(){return"Às %s"},d.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},d.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},d.prototype.betweenX0AndX1=function(){return"entre %s e %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},d.prototype.commaEveryDay=function(){return", a cada dia"},d.prototype.commaEveryX0Days=function(){return", a cada %s dias"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},d.prototype.commaEveryX0Months=function(){return", a cada %s meses"},d.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},d.prototype.commaOnlyInX0=function(_){return _&&_.length>1&&_[1]==="-"?"somente %s":", somente em %s"},d.prototype.commaOnlyOnX0=function(_){return _&&_.length>1&&_[1]==="-"?", somente %s":", somente de %s"},d.prototype.commaAndOnX0=function(){return", e de %s"},d.prototype.commaOnThe=function(_,g){return g==="6"||g==="0"?", no":", na "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},d.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},d.prototype.commaX0ThroughX1=function(){return", de %s a %s"},d.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},d.prototype.everyHour=function(){return"a cada hora"},d.prototype.everyMinute=function(){return"a cada minuto"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},d.prototype.everySecond=function(){return"a cada segundo"},d.prototype.everyX0Hours=function(){return"a cada %s horas"},d.prototype.everyX0Minutes=function(){return"a cada %s minutos"},d.prototype.everyX0Seconds=function(){return"a cada %s segundos"},d.prototype.fifth=function(_){return _==="6"||_==="0"?"quinto":"quinta"},d.prototype.first=function(_){return _==="6"||_==="0"?"primeiro":"primeira"},d.prototype.firstWeekday=function(){return"primeiro dia da semana"},d.prototype.fourth=function(_){return _==="6"||_==="0"?"quarto":"quarta"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},d.prototype.second=function(_){return _==="6"||_==="0"?"segundo":"segunda"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},d.prototype.spaceAnd=function(){return" e"},d.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},d.prototype.lastDay=function(){return"o último dia"},d.prototype.third=function(_){return _==="6"||_==="0"?"terceiro":"terceira"},d.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},d.prototype.commaEveryX0Years=function(){return", a cada %s anos"},d.prototype.commaStartingX0=function(){return", iniciando %s"},d.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},d.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},d}();return f.pt_BR=h,u().locales.pt_BR=new h,i})())}(Sv)),Sv.exports}qZ();var kv={exports:{}},Q2;function VZ(){return Q2||(Q2=1,function(t,e){(function(n,o){t.exports=o(Mo())})(globalThis,r=>(()=>{var n={93:d=>{d.exports=r}},o={};function a(d){var _=o[d];if(_!==void 0)return _.exports;var g=o[d]={exports:{}};return n[d](g,g.exports,a),g.exports}a.n=d=>{var _=d&&d.__esModule?()=>d.default:()=>d;return a.d(_,{a:_}),_},a.d=(d,_)=>{for(var g in _)a.o(_,g)&&!a.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:_[g]})},a.o=(d,_)=>Object.prototype.hasOwnProperty.call(d,_),a.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var i={};a.r(i);var l=a(93),u=a.n(l),f=i;Object.defineProperty(f,"__esModule",{value:!0}),f.pl=void 0;var h=function(){function d(){}return d.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},d.prototype.atX0MinutesPastTheHourGt20=function(){return null},d.prototype.commaMonthX0ThroughMonthX1=function(){return null},d.prototype.commaYearX0ThroughYearX1=function(){return null},d.prototype.use24HourTimeFormatByDefault=function(){return!0},d.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},d.prototype.at=function(){return"O"},d.prototype.atSpace=function(){return"O "},d.prototype.atX0=function(){return"o %s"},d.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},d.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},d.prototype.betweenX0AndX1=function(){return"od %s do %s"},d.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},d.prototype.commaEveryDay=function(){return", co dzień"},d.prototype.commaEveryX0Days=function(){return", co %s dni"},d.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},d.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},d.prototype.commaEveryX0Years=function(){return", co %s lat"},d.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},d.prototype.commaOnlyInX0=function(){return", tylko %s"},d.prototype.commaOnlyOnX0=function(){return", tylko %s"},d.prototype.commaAndOnX0=function(){return", i %s"},d.prototype.commaOnThe=function(){return", "},d.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},d.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},d.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},d.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},d.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},d.prototype.commaX0ThroughX1=function(){return", od %s do %s"},d.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},d.prototype.everyHour=function(){return"co godzinę"},d.prototype.everyMinute=function(){return"co minutę"},d.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},d.prototype.everySecond=function(){return"co sekundę"},d.prototype.everyX0Hours=function(){return"co %s godzin"},d.prototype.everyX0Minutes=function(){return"co %s minut"},d.prototype.everyX0Seconds=function(){return"co %s sekund"},d.prototype.fifth=function(){return"piąty"},d.prototype.first=function(){return"pierwszy"},d.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},d.prototype.fourth=function(){return"czwarty"},d.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},d.prototype.second=function(){return"drugi"},d.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},d.prototype.spaceAnd=function(){return" i"},d.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},d.prototype.lastDay=function(){return"ostatni dzień"},d.prototype.third=function(){return"trzeci"},d.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},d.prototype.commaStartingX0=function(){return", startowy %s"},d.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},d.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},d}();return f.pl=h,u().locales.pl=new h,i})())}(kv)),kv.exports}VZ();function ZN(t,e){return jZ.toString(t,{locale:e})}const en={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},slider:{marginTop:20,display:"block",width:"100%"},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},numberButtonBreak:{display:"block"},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},XZ=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],GZ=["January","February","March","April","May","June","July","August","September","October","November","December"];function eO(t,e){const r=[];if(t==="*"){if(e===24||e===60||e===7)for(let o=0;o1){const i=parseInt(a[1],10);for(let l=parseInt(a[0],10);l<=i;l++)r.push(l)}else r.push(parseInt(n[o],10))}r.sort();for(let o=r.length-1;o>=0;o--)r[o]===r[o+1]&&r.splice(o+1,1);return r}function tO(t,e){if(typeof t!="object"&&(t=[t]),t.length===e)return"*";const r=[];if(!t.length)return"-";t=t.map(a=>parseInt(a,10)),t.sort((a,i)=>a-i);let n=t[0],o=t[0];for(let a=1;athis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(e){e=e.replace(/['"]/g,"").trim();const r=e.split(" ").map(o=>o.trim());let n;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",dates:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:!1,minutes:r[0]||"*",hours:r[1]||"*",dates:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n}static state2cron(e){let r=`${e.minutes} ${e.hours} ${e.dates} ${e.months} ${e.dow}`;return e.seconds!==!1&&(r=`${e.seconds} ${r}`),r}recalcCron(){const e=Aa.state2cron(this.state);e!==this.state.cron&&this.setState({cron:e},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(e,r,n){if(e===!0)this.setCronAttr(r,"*");else if(e===!1)n===60||n===24?this.setCronAttr(r,"0"):this.setCronAttr(r,"1");else{const o=eO(this.state[r],n),a=o.indexOf(e);a!==-1?o.splice(a,1):(o.push(e),o.sort()),this.setCronAttr(r,tO(o,n))}}getDigitsSelector(e,r){let n=[];if(r===7)n=[1,2,3,4,5,6,0];else if(r===60||r===24)for(let a=0;athis.onToggle(!1,e,r)},U.t("ra_Deselect all")),y.createElement(Qt,{key:"addall",variant:"contained",style:en.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,e,r)},U.t("ra_Select all")),y.createElement("div",{key:"all"},n.map(a=>[r===7&&a===4||r===12&&a===7||r===31&&!((a-1)%10)||r===60&&a&&!(a%10)||r===24&&a&&!(a%6)?y.createElement("div",{key:`allInner${a}`,style:{width:"100%"}}):null,y.createElement(Qt,{key:`_${a}`,variant:o.indexOf(a)!==-1?"contained":"outlined",style:en.numberButton,color:o.indexOf(a)!==-1?"secondary":"primary",onClick:()=>this.onToggle(a,e,r)},r===7?U.t(XZ[a]):r===12?GZ[a-1]:a)]))]}getPeriodsTab(e,r){const n=this.state[e];let o=n==="*",a=n==null?!1:n.toString().includes("/"),i;if(this.state.modes[e]===null){i=o?"every":a?"everyN":"specific";const u=JSON.parse(JSON.stringify(this.state.modes));return u[e]=i,setTimeout(()=>this.setState({modes:u},()=>this.recalcCron()),100),null}o=this.state.modes[e]==="every",a=this.state.modes[e]==="everyN",i=this.state.modes[e];let l=1;return a&&n&&(l=parseInt(n.replace("*/",""),10)||1),y.createElement("div",null,y.createElement(wo,{variant:"standard",style:{...en.periodSelect,verticalAlign:"bottom"},value:i,onChange:u=>{const f=JSON.parse(JSON.stringify(this.state.modes));if(f[e]=u.target.value,u.target.value==="every")this.setCronAttr(e,"*",f);else if(u.target.value==="everyN"){const h=parseInt((this.state[e]||"").toString().replace("*/",""),10)||1;this.setCronAttr(e,`*/${h}`,f)}else if(u.target.value==="specific"){let h=parseInt((this.state[e]||"").toString().split(",")[0],10)||0;!h&&(e==="months"||e==="dates")&&(h=1),this.setCronAttr(e,tO(h,r),f)}}},y.createElement(fr,{key:"every",value:"every"},U.t(`sc_every_${e}`)),y.createElement(fr,{key:"everyN",value:"everyN"},U.t(`sc_everyN_${e}`)),y.createElement(fr,{key:"specific",value:"specific"},U.t(`sc_specific_${e}`))),a&&y.createElement(zr,{variant:"standard",key:"interval",label:U.t(`sc_${e}`),value:l,slotProps:{htmlInput:{min:1,max:r},inputLabel:{shrink:!0}},onChange:u=>{this.setState({[e]:`*/${u.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!o&&!a&&this.getDigitsSelector(e,r))}static convertCronToText(e,r){return e.split(" ").includes("-")?U.t("ra_Invalid CRON"):ZN(e,r)}setCronAttr(e,r,n){n?e==="seconds"?this.setState({seconds:r,modes:n},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r,modes:n},()=>this.recalcCron()):e==="hours"?this.setState({hours:r,modes:n},()=>this.recalcCron()):e==="dates"?this.setState({dates:r,modes:n},()=>this.recalcCron()):e==="months"?this.setState({months:r,modes:n},()=>this.recalcCron()):e==="dow"?this.setState({dow:r,modes:n},()=>this.recalcCron()):this.setState({modes:n},()=>this.recalcCron()):e==="seconds"?this.setState({seconds:r},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r},()=>this.recalcCron()):e==="hours"?this.setState({hours:r},()=>this.recalcCron()):e==="dates"?this.setState({dates:r},()=>this.recalcCron()):e==="months"?this.setState({months:r},()=>this.recalcCron()):e==="dow"&&this.setState({dow:r},()=>this.recalcCron())}render(){const e=this.state.seconds!==!1?this.state.tab:this.state.tab+1,r=this.state.minutes==="*"||this.state.minutes==="*/1",n=this.state.seconds==="*"||this.state.seconds==="*/1";return y.createElement("div",{style:en.mainDiv},y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)"}},y.createElement(zr,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)",height:60}},Aa.convertCronToText(this.state.cron,this.props.language||"en"),y.createElement("span",{style:en.warning},n?U.t("ra_warning_every_second"):r?U.t("ra_warning_every_minute"):"")),y.createElement(gt,{control:y.createElement(tn,{checked:!!this.state.seconds,onChange:o=>this.setState({seconds:o.target.checked?"*":!1},()=>this.recalcCron())}),label:U.t("ra_use seconds")}),y.createElement(yM,{position:"static",sx:{"&.MuiAppBar-root":en.appBar},color:"secondary"},y.createElement(MU,{value:this.state.tab,style:en.appBar,color:"secondary",onChange:(o,a)=>this.setState({tab:a})},this.state.seconds!==!1&&y.createElement(Oi,{id:"sc_seconds",label:U.t("sc_seconds")}),y.createElement(Oi,{id:"minutes",label:U.t("sc_minutes")}),y.createElement(Oi,{id:"hours",label:U.t("sc_hours")}),y.createElement(Oi,{id:"dates",label:U.t("sc_dates")}),y.createElement(Oi,{id:"months",label:U.t("sc_months")}),y.createElement(Oi,{id:"dow",label:U.t("sc_dows")}))),e===0&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("seconds",60)),e===1&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("minutes",60)),e===2&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("hours",24)),e===3&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("dates",31)),e===4&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("months",12)),e===5&&y.createElement("div",{style:en.tabContent},this.getPeriodsTab("dow",7)))}}function Zs(t,e,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function l(h){try{f(n.next(h))}catch(d){i(d)}}function u(h){try{f(n.throw(h))}catch(d){i(d)}}function f(h){h.done?a(h.value):o(h.value).then(l,u)}f((n=n.apply(t,e||[])).next())})}const JZ=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 Ec(t,e,r){const n=YZ(t),{webkitRelativePath:o}=t,a=typeof e=="string"?e:typeof o=="string"&&o.length>0?o:`./${t.name}`;return typeof n.path!="string"&&rO(n,"path",a),rO(n,"relativePath",a),n}function YZ(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const n=e.split(".").pop().toLowerCase(),o=JZ.get(n);o&&Object.defineProperty(t,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return t}function rO(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}const KZ=[".DS_Store","Thumbs.db"];function ZZ(t){return Zs(this,void 0,void 0,function*(){return tf(t)&&QZ(t.dataTransfer)?nQ(t.dataTransfer,t.type):eQ(t)?tQ(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?rQ(t):[]})}function QZ(t){return tf(t)}function eQ(t){return tf(t)&&tf(t.target)}function tf(t){return typeof t=="object"&&t!==null}function tQ(t){return M0(t.target.files).map(e=>Ec(e))}function rQ(t){return Zs(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>Ec(r))})}function nQ(t,e){return Zs(this,void 0,void 0,function*(){if(t.items){const r=M0(t.items).filter(o=>o.kind==="file");if(e!=="drop")return r;const n=yield Promise.all(r.map(oQ));return nO(QN(n))}return nO(M0(t.files).map(r=>Ec(r)))})}function nO(t){return t.filter(e=>KZ.indexOf(e.name)===-1)}function M0(t){if(t===null)return[];const e=[];for(let r=0;r[...e,...Array.isArray(r)?QN(r):[r]],[])}function oO(t,e){return Zs(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const a=yield t.getAsFileSystemHandle();if(a===null)throw new Error(`${t} is not a File`);if(a!==void 0){const i=yield a.getFile();return i.handle=a,Ec(i)}}const n=t.getAsFile();if(!n)throw new Error(`${t} is not a File`);return Ec(n,(r=e==null?void 0:e.fullPath)!==null&&r!==void 0?r:void 0)})}function aQ(t){return Zs(this,void 0,void 0,function*(){return t.isDirectory?eP(t):sQ(t)})}function eP(t){const e=t.createReader();return new Promise((r,n)=>{const o=[];function a(){e.readEntries(i=>Zs(this,void 0,void 0,function*(){if(i.length){const l=Promise.all(i.map(aQ));o.push(l),a()}else try{const l=yield Promise.all(o);r(l)}catch(l){n(l)}}),i=>{n(i)})}a()})}function sQ(t){return Zs(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(n=>{const o=Ec(n,t.fullPath);e(o)},n=>{r(n)})})})}var fp={},aO;function iQ(){return aO||(aO=1,fp.__esModule=!0,fp.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",o=(t.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return r.some(function(i){var l=i.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?a===l.replace(/\/.*$/,""):o===l})}return!0}),fp}var cQ=iQ();const Cv=Ha(cQ);function sO(t){return dQ(t)||uQ(t)||rP(t)||lQ()}function lQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uQ(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function dQ(t){if(Array.isArray(t))return N0(t)}function iO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function cO(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:"",r=e.split(","),n=r.length>1?"one of ".concat(r.join(", ")):r[0];return{code:_Q,message:"File type must be ".concat(n)}},lO=function(e){return{code:gQ,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},uO=function(e){return{code:yQ,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},wQ={code:vQ,message:"Too many files"};function nP(t,e){var r=t.type==="application/x-moz-file"||mQ(t,e);return[r,r?null:bQ(e)]}function oP(t,e,r){if(_s(t.size))if(_s(e)&&_s(r)){if(t.size>r)return[!1,lO(r)];if(t.sizer)return[!1,lO(r)]}return[!0,null]}function _s(t){return t!=null}function xQ(t){var e=t.files,r=t.accept,n=t.minSize,o=t.maxSize,a=t.multiple,i=t.maxFiles,l=t.validator;return!a&&e.length>1||a&&i>=1&&e.length>i?!1:e.every(function(u){var f=nP(u,r),h=du(f,1),d=h[0],_=oP(u,n,o),g=du(_,1),b=g[0],w=l?l(u):null;return d&&b&&!w})}function rf(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function hp(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function dO(t){t.preventDefault()}function SQ(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function kQ(t){return t.indexOf("Edge/")!==-1}function CQ(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return SQ(t)||kQ(t)}function po(){for(var t=arguments.length,e=new Array(t),r=0;r1?o-1:0),i=1;it.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function WQ(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}var Qf=$.forwardRef(function(t,e){var r=t.children,n=nf(t,MQ),o=UQ(n),a=o.open,i=nf(o,NQ);return $.useImperativeHandle(e,function(){return{open:a}},[a]),y.createElement($.Fragment,null,r(Zt(Zt({},i),{},{open:a})))});Qf.displayName="Dropzone";var cP={disabled:!1,getFilesFromEvent:ZZ,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};Qf.defaultProps=cP;Qf.propTypes={children:se.func,accept:se.objectOf(se.arrayOf(se.string)),multiple:se.bool,preventDropOnDocument:se.bool,noClick:se.bool,noKeyboard:se.bool,noDrag:se.bool,noDragEventsBubbling:se.bool,minSize:se.number,maxSize:se.number,maxFiles:se.number,disabled:se.bool,getFilesFromEvent:se.func,onFileDialogCancel:se.func,onFileDialogOpen:se.func,useFsAccessApi:se.bool,autoFocus:se.bool,onDragEnter:se.func,onDragLeave:se.func,onDragOver:se.func,onDrop:se.func,onDropAccepted:se.func,onDropRejected:se.func,onError:se.func,validator:se.func};var A0={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function UQ(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Zt(Zt({},cP),t),r=e.accept,n=e.disabled,o=e.getFilesFromEvent,a=e.maxSize,i=e.minSize,l=e.multiple,u=e.maxFiles,f=e.onDragEnter,h=e.onDragLeave,d=e.onDragOver,_=e.onDrop,g=e.onDropAccepted,b=e.onDropRejected,w=e.onFileDialogCancel,S=e.onFileDialogOpen,k=e.useFsAccessApi,D=e.autoFocus,C=e.preventDropOnDocument,O=e.noClick,M=e.noKeyboard,T=e.noDrag,P=e.noDragEventsBubbling,j=e.onError,z=e.validator,E=$.useMemo(function(){return TQ(r)},[r]),L=$.useMemo(function(){return EQ(r)},[r]),G=$.useMemo(function(){return typeof S=="function"?S:fO},[S]),B=$.useMemo(function(){return typeof w=="function"?w:fO},[w]),F=$.useRef(null),H=$.useRef(null),K=$.useReducer(HQ,A0),ee=$v(K,2),Y=ee[0],X=ee[1],re=Y.isFocused,I=Y.isFileDialogActive,Q=$.useRef(typeof window<"u"&&window.isSecureContext&&k&&$Q()),me=function(){!Q.current&&I&&setTimeout(function(){if(H.current){var ne=H.current.files;ne.length||(X({type:"closeDialog"}),B())}},300)};$.useEffect(function(){return window.addEventListener("focus",me,!1),function(){window.removeEventListener("focus",me,!1)}},[H,I,B,Q]);var pe=$.useRef([]),ge=function(ne){F.current&&F.current.contains(ne.target)||(ne.preventDefault(),pe.current=[])};$.useEffect(function(){return C&&(document.addEventListener("dragover",dO,!1),document.addEventListener("drop",ge,!1)),function(){C&&(document.removeEventListener("dragover",dO),document.removeEventListener("drop",ge))}},[F,C]),$.useEffect(function(){return!n&&D&&F.current&&F.current.focus(),function(){}},[F,D,n]);var Ce=$.useCallback(function(q){j?j(q):console.error(q)},[j]),Re=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q),pe.current=[].concat(AQ(pe.current),[q.target]),hp(q)&&Promise.resolve(o(q)).then(function(ne){if(!(rf(q)&&!P)){var ye=ne.length,we=ye>0&&xQ({files:ne,accept:E,minSize:i,maxSize:a,multiple:l,maxFiles:u,validator:z}),ke=ye>0&&!we;X({isDragAccept:we,isDragReject:ke,isDragActive:!0,type:"setDraggedFiles"}),f&&f(q)}}).catch(function(ne){return Ce(ne)})},[o,f,Ce,P,E,i,a,l,u,z]),Te=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q);var ne=hp(q);if(ne&&q.dataTransfer)try{q.dataTransfer.dropEffect="copy"}catch{}return ne&&d&&d(q),!1},[d,P]),Pe=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q);var ne=pe.current.filter(function(we){return F.current&&F.current.contains(we)}),ye=ne.indexOf(q.target);ye!==-1&&ne.splice(ye,1),pe.current=ne,!(ne.length>0)&&(X({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),hp(q)&&h&&h(q))},[F,h,P]),Oe=$.useCallback(function(q,ne){var ye=[],we=[];q.forEach(function(ke){var ve=nP(ke,E),Ve=$v(ve,2),$e=Ve[0],Ye=Ve[1],lt=oP(ke,i,a),ft=$v(lt,2),ae=ft[0],_e=ft[1],ze=z?z(ke):null;if($e&&ae&&!ze)ye.push(ke);else{var Ke=[Ye,_e];ze&&(Ke=Ke.concat(ze)),we.push({file:ke,errors:Ke.filter(function(_t){return _t})})}}),(!l&&ye.length>1||l&&u>=1&&ye.length>u)&&(ye.forEach(function(ke){we.push({file:ke,errors:[wQ]})}),ye.splice(0)),X({acceptedFiles:ye,fileRejections:we,isDragReject:we.length>0,type:"setFiles"}),_&&_(ye,we,ne),we.length>0&&b&&b(we,ne),ye.length>0&&g&&g(ye,ne)},[X,l,E,i,a,u,_,g,b,z]),Fe=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q),pe.current=[],hp(q)&&Promise.resolve(o(q)).then(function(ne){rf(q)&&!P||Oe(ne,q)}).catch(function(ne){return Ce(ne)}),X({type:"reset"})},[o,Oe,Ce,P]),Me=$.useCallback(function(){if(Q.current){X({type:"openDialog"}),G();var q={multiple:l,types:L};window.showOpenFilePicker(q).then(function(ne){return o(ne)}).then(function(ne){Oe(ne,null),X({type:"closeDialog"})}).catch(function(ne){OQ(ne)?(B(ne),X({type:"closeDialog"})):DQ(ne)?(Q.current=!1,H.current?(H.current.value=null,H.current.click()):Ce(new 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 was provided."))):Ce(ne)});return}H.current&&(X({type:"openDialog"}),G(),H.current.value=null,H.current.click())},[X,G,B,k,Oe,Ce,L,l]),Be=$.useCallback(function(q){!F.current||!F.current.isEqualNode(q.target)||(q.key===" "||q.key==="Enter"||q.keyCode===32||q.keyCode===13)&&(q.preventDefault(),Me())},[F,Me]),We=$.useCallback(function(){X({type:"focus"})},[]),De=$.useCallback(function(){X({type:"blur"})},[]),pt=$.useCallback(function(){O||(CQ()?setTimeout(Me,0):Me())},[O,Me]),ce=function(ne){return n?null:ne},qe=function(ne){return M?null:ce(ne)},st=function(ne){return T?null:ce(ne)},rt=function(ne){P&&ne.stopPropagation()},Je=$.useMemo(function(){return function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne=q.refKey,ye=ne===void 0?"ref":ne,we=q.role,ke=q.onKeyDown,ve=q.onFocus,Ve=q.onBlur,$e=q.onClick,Ye=q.onDragEnter,lt=q.onDragOver,ft=q.onDragLeave,ae=q.onDrop,_e=nf(q,PQ);return Zt(Zt(R0({onKeyDown:qe(po(ke,Be)),onFocus:qe(po(ve,We)),onBlur:qe(po(Ve,De)),onClick:ce(po($e,pt)),onDragEnter:st(po(Ye,Re)),onDragOver:st(po(lt,Te)),onDragLeave:st(po(ft,Pe)),onDrop:st(po(ae,Fe)),role:typeof we=="string"&&we!==""?we:"presentation"},ye,F),!n&&!M?{tabIndex:0}:{}),_e)}},[F,Be,We,De,pt,Re,Te,Pe,Fe,M,T,n]),Se=$.useCallback(function(q){q.stopPropagation()},[]),ut=$.useMemo(function(){return function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne=q.refKey,ye=ne===void 0?"ref":ne,we=q.onChange,ke=q.onClick,ve=nf(q,RQ),Ve=R0({accept:E,multiple:l,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:ce(po(we,Fe)),onClick:ce(po(ke,Se)),tabIndex:-1},ye,H);return Zt(Zt({},Ve),ve)}},[H,r,l,Fe,n]);return Zt(Zt({},Y),{},{isFocused:re&&!n,getRootProps:Je,getInputProps:ut,rootRef:F,inputRef:H,open:ce(Me)})}function HQ(t,e){switch(e.type){case"focus":return Zt(Zt({},t),{},{isFocused:!0});case"blur":return Zt(Zt({},t),{},{isFocused:!1});case"openDialog":return Zt(Zt({},A0),{},{isFileDialogActive:!0});case"closeDialog":return Zt(Zt({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return Zt(Zt({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return Zt(Zt({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return Zt({},A0);default:return t}}function fO(){}function qQ(){const t=ta();return[...t.breakpoints.keys].reverse().reduce((r,n)=>{const o=VB(t.breakpoints.up(n));return!r&&o?n:r},null)||"xs"}function eh(){return t=>function(r){const n=qQ();return y.createElement(t,{...r,width:n})}}function VQ(t){const[e,r]=y.useState(t.input||t.value||""),[n,o]=y.useState("");return y.createElement(ra,{open:!0,onClose:()=>t.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:t.fullWidth!==void 0?t.fullWidth:!1},y.createElement(aa,{id:"form-dialog-title"},t.titleText),y.createElement(oa,null,y.createElement(If,null,t.promptText),y.createElement(Fr,{variant:"standard",autoFocus:!0,margin:"dense",error:!!n,helperText:n===!0||!n?"":n,value:e,label:t.labelText||"",type:t.type||"text",onKeyUp:a=>a.code==="Enter"&&e&&t.onClose(e),onChange:a=>{let i="";t.verify&&(i=!t.verify(a.target.value)),t.rule?r(t.rule(a.target.value)):r(a.target.value),o(i)},fullWidth:!0})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",disabled:!e||!!n,onClick:()=>t.onClose(e),color:"primary",startIcon:y.createElement(Hs,null)},t.applyText||U.t("ra_Ok")),y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>t.onClose(null),startIcon:y.createElement(Rs,null)},t.cancelText||U.t("ra_Cancel"))))}const XQ=eh()(VQ),GQ=t=>y.createElement("svg",{onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 486 486",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:t.className,style:t.style},y.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"}),y.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"})),I0=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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"})),JQ=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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"})),Pw=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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 YQ=t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,r)=>{const[n,o]=r.split(/ ?: ?/).map((a,i)=>i===0?a.replace(/\s+/g,""):a.trim());if(n&&o){const a=n.replace(/(\w)-(\w)/g,(l,u,f)=>`${u}${f.toUpperCase()}`);let i=o.trim();Number.isNaN(Number(o))||(i=Number(o)),e[n.startsWith("-")?n:a]=i}return e},{});function KQ(t=6){const e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=t;n>0;--n)r+=e[Math.round(Math.random()*(e.length-1))];return r}var ZQ=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],hO={"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 QQ(t,e){var a;const{key:r,level:n,...o}=e;switch(t.nodeType){case 1:return $.createElement(tee(t.nodeName),eee(t,r),mO(t.childNodes,n,o));case 3:{const i=((a=t.nodeValue)==null?void 0:a.toString())??"";if(!o.allowWhiteSpaces&&/^\s+$/.test(i)&&!/[\u00A0\u202F]/.test(i))return null;if(!t.parentNode)return i;const l=t.parentNode.nodeName.toLowerCase();return ZQ.includes(l)?(/\S/.test(i)&&console.warn(`A textNode is not allowed inside '${l}'. Your text "${i}" will be ignored`),null):i}case 8:return null;case 11:return mO(t.childNodes,n,e);default:return null}}function eee(t,e){const r={key:e};if(t instanceof Element){const n=t.getAttribute("class");n&&(r.className=n),[...t.attributes].forEach(o=>{switch(o.name){case"class":break;case"style":r[o.name]=YQ(o.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":r[hO[o.name]||o.name]=!0;break;default:r[hO[o.name]||o.name]=o.value}})}return r}function mO(t,e,r){const n=[...t].map((o,a)=>of(o,{...r,index:a,level:e+1})).filter(Boolean);return n.length?n:null}function tee(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}function of(t,e={}){if(!t||!(t instanceof Node))return null;const{actions:r=[],index:n=0,level:o=0,randomKey:a}=e;let i=t,l=`${o}-${n}`;const u=[];return a&&o===0&&(l=`${KQ()}-${l}`),Array.isArray(r)&&r.forEach(f=>{f.condition(i,l,o)&&(typeof f.pre=="function"&&(i=f.pre(i,l,o),i instanceof Node||(i=t)),typeof f.post=="function"&&u.push(f.post(i,l,o)))}),u.length?u:QQ(i,{key:l,level:o,...e})}function ree(t,e={}){if(!t||typeof t!="string")return null;const{includeAllNodes:r=!1,nodeOnly:n=!1,selector:o="body > *",type:a="text/html"}=e;try{const l=new DOMParser().parseFromString(t,a);if(r){const{childNodes:f}=l.body;return n?f:[...f].map(h=>of(h,e))}const u=l.querySelector(o)||l.body.childNodes[0];if(!(u instanceof Node))throw new TypeError("Error parsing input");return n?u:of(u,e)}catch{}return null}function lP(t,e={}){return typeof t=="string"?ree(t,e):t instanceof Node?of(t,e):null}var nee=Object.defineProperty,oee=(t,e,r)=>e in t?nee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mp=(t,e,r)=>oee(t,typeof e!="symbol"?e+"":e,r),_O="react-inlinesvg",gO=10,Mt={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function Mp(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function aee(){return iee()&&typeof window<"u"&&window!==null}async function uP(t,e){const r=await fetch(t,e),n=r.headers.get("content-type"),[o]=(n??"").split(/ ?; ?/);if(r.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(a=>o.includes(a)))throw new Error(`Content type isn't valid: ${o}`);return r.text()}function see(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}function iee(){if(!document)return!1;const t=document.createElement("div");t.innerHTML="";const e=t.firstChild;return!!e&&e.namespaceURI==="http://www.w3.org/2000/svg"}function cee(t){return t[Math.floor(Math.random()*t.length)]}function lee(t){const e="abcdefghijklmnopqrstuvwxyz",n=`${e}${e.toUpperCase()}1234567890`;let o="";for(let a=0;a{this.cacheApi=r}).catch(r=>{console.error(`Failed to open cache: ${r.message}`)}).finally(()=>{this.isReady=!0,this.subscribers.forEach(r=>r())}):this.isReady=!0}onReady(t){this.isReady?t():this.subscribers.push(t)}async get(t,e){var r;return await(this.cacheApi?this.fetchAndAddToPersistentCache(t,e):this.fetchAndAddToInternalCache(t,e)),((r=this.cacheStore.get(t))==null?void 0:r.content)??""}set(t,e){this.cacheStore.set(t,e)}isCached(t){var e;return((e=this.cacheStore.get(t))==null?void 0:e.status)===Mt.LOADED}async fetchAndAddToInternalCache(t,e){const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===Mt.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Mt.IDLE}),await this.fetchAndAddToInternalCache(t,e)});return}if(!(r!=null&&r.content)){this.cacheStore.set(t,{content:"",status:Mt.LOADING});try{const n=await uP(t,e);this.cacheStore.set(t,{content:n,status:Mt.LOADED})}catch(n){throw this.cacheStore.set(t,{content:"",status:Mt.FAILED}),n}}}async fetchAndAddToPersistentCache(t,e){var o,a,i;const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===Mt.LOADED)return;if((r==null?void 0:r.status)===Mt.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Mt.IDLE}),await this.fetchAndAddToPersistentCache(t,e)});return}this.cacheStore.set(t,{content:"",status:Mt.LOADING});const n=await((o=this.cacheApi)==null?void 0:o.match(t));if(n){const l=await n.text();this.cacheStore.set(t,{content:l,status:Mt.LOADED});return}try{await((a=this.cacheApi)==null?void 0:a.add(new Request(t,e)));const l=await((i=this.cacheApi)==null?void 0:i.match(t)),u=await(l==null?void 0:l.text())??"";this.cacheStore.set(t,{content:u,status:Mt.LOADED})}catch(l){throw this.cacheStore.set(t,{content:"",status:Mt.FAILED}),l}}async handleLoading(t,e){var n;let r=0;for(;((n=this.cacheStore.get(t))==null?void 0:n.status)===Mt.LOADING&&r=gO&&await e()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([t,e])=>({[t]:e}))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){const t=await this.cacheApi.keys();for(const e of t)await this.cacheApi.delete(e)}this.cacheStore.clear()}};function yO(t){const e=$.useRef();return $.useEffect(()=>{e.current=t}),e.current}function pee(t){const{baseURL:e,content:r,description:n,handleError:o,hash:a,preProcessor:i,title:l,uniquifyIDs:u=!1}=t;try{const f=fee(r,i),h=lP(f,{nodeOnly:!0});if(!h||!(h instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const d=dP(h,{baseURL:e,hash:a,uniquifyIDs:u});if(n){const _=d.querySelector("desc");_!=null&&_.parentNode&&_.parentNode.removeChild(_);const g=document.createElementNS("http://www.w3.org/2000/svg","desc");g.innerHTML=n,d.prepend(g)}if(typeof l<"u"){const _=d.querySelector("title");if(_!=null&&_.parentNode&&_.parentNode.removeChild(_),l){const g=document.createElementNS("http://www.w3.org/2000/svg","title");g.innerHTML=l,d.prepend(g)}}return d}catch(f){return o(f)}}function fee(t,e){return e?e(t):t}function dP(t,e){const{baseURL:r="",hash:n,uniquifyIDs:o}=e,a=["id","href","xlink:href","xlink:role","xlink:arcrole"],i=["href","xlink:href"],l=(u,f)=>i.includes(u)&&(f?!f.includes("#"):!1);return o&&[...t.children].forEach(u=>{var f;if((f=u.attributes)!=null&&f.length){const h=Object.values(u.attributes).map(d=>{const _=d,g=/url\((.*?)\)/.exec(d.value);return g!=null&&g[1]&&(_.value=d.value.replace(g[0],`url(${r}${g[1]}__${n})`)),_});a.forEach(d=>{const _=h.find(g=>g.name===d);_&&!l(d,_.value)&&(_.value=`${_.value}__${n}`)})}return u.children.length?dP(u,e):u}),t}var ac;function hee(t){const{cacheRequests:e=!0,children:r=null,description:n,fetchOptions:o,innerRef:a,loader:i=null,onError:l,onLoad:u,src:f,title:h,uniqueHash:d}=t,[_,g]=$.useReducer((F,H)=>({...F,...H}),{content:"",element:null,isCached:e&&ac.isCached(t.src),status:Mt.IDLE}),{content:b,element:w,isCached:S,status:k}=_,D=yO(t),C=yO(_),O=$.useRef(d??lee(8)),M=$.useRef(!1),T=$.useRef(!1),P=$.useCallback(F=>{M.current&&(g({status:F.message==="Browser does not support SVG"?Mt.UNSUPPORTED:Mt.FAILED}),l==null||l(F))},[l]),j=$.useCallback((F,H=!1)=>{M.current&&g({content:F,isCached:H,status:Mt.LOADED})},[]),z=$.useCallback(async()=>{const F=await uP(f,o);j(F)},[o,j,f]),E=$.useCallback(()=>{try{const F=pee({...t,handleError:P,hash:O.current,content:b}),H=lP(F);if(!H||!$.isValidElement(H))throw new Error("Could not convert the src to a React element");g({element:H,status:Mt.READY})}catch(F){P(new Error(F.message))}},[b,P,t]),L=$.useCallback(async()=>{const F=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(f);let H;if(F?H=F[1]?window.atob(F[2]):decodeURIComponent(F[2]):f.includes("{M.current&&g({content:"",element:null,isCached:!1,status:Mt.LOADING})},[]);$.useEffect(()=>{if(M.current=!0,!Mp()||T.current)return()=>{};try{if(k===Mt.IDLE){if(!aee())throw new Error("Browser does not support SVG");if(!f)throw new Error("Missing src");G()}}catch(F){P(F)}return T.current=!0,()=>{M.current=!1}},[]),$.useEffect(()=>{if(Mp()&&D)if(D.src!==f){if(!f){P(new Error("Missing src"));return}G()}else(D.title!==h||D.description!==n)&&E()},[n,E,P,G,D,f,h]),$.useEffect(()=>{C&&(C.status!==Mt.LOADING&&k===Mt.LOADING&&L(),C.status!==Mt.LOADED&&k===Mt.LOADED&&E(),C.status!==Mt.READY&&k===Mt.READY&&(u==null||u(f,S)))},[L,E,S,u,C,f,k]);const B=uee(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return Mp()?w?$.cloneElement(w,{ref:a,...B}):[Mt.UNSUPPORTED,Mt.FAILED].includes(k)?r:i:i}function mee(t){ac||(ac=new dee);const{loader:e}=t,r=$.useRef(!1),[n,o]=$.useState(ac.isReady);return $.useEffect(()=>{r.current||(ac.onReady(()=>{o(!0)}),r.current=!0)},[]),n?y.createElement(hee,{...t}):e}const _ee=window.location.hostname.endsWith("iobroker.in"),vO=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);function Rw(t){var e,r,n;if(t.src){if(typeof t.src=="string"){if(t.src.length<3)return t.sx?y.createElement(wt,{component:"span",sx:t.sx,title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:ht.clsx(t.className,"iconOwn")},t.src):y.createElement("span",{title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:ht.clsx(t.className,"iconOwn")},t.src);if(t.src.startsWith("data:image/svg"))return y.createElement(mee,{title:t.title||void 0,src:t.src,className:ht.clsx(t.className,"iconOwn"),width:((e=t.style)==null?void 0:e.width)||28,height:((r=t.style)==null?void 0:r.height)||((n=t.style)==null?void 0:n.width)||28,style:t.style||void 0});if(_ee&&!t.src.startsWith("http://")&&!t.src.startsWith("https://")){let o=t.src;return o.startsWith("./")?o=vO+o.substring(2):o.startsWith("/")||(o=vO+o),t.sx?y.createElement(wt,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${o}`,alt:t.alt||void 0,ref:t.ref,onError:a=>t.onError&&t.onError(a)}):y.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${o}`,alt:t.alt||void 0,ref:t.ref,onError:a=>t.onError&&t.onError(a)})}return t.sx?y.createElement(wt,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError}):y.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError})}return t.src}return null}const us={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"}},Lr={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp","ico"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function bO(t,e){let r="";const n=new Uint8Array((t==null?void 0:t.data)||t),o=n.byteLength;for(let a=0;a{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,o===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))});const n=ht.getFileExtension(r.href);this.state={text:null,code:null,ext:n,editing:!1,editingValue:null,copyPossible:!!n&&(Lr.code.includes(n)||Lr.txt.includes(n)),forceUpdate:Date.now(),changed:!1,imgError:!1}}readFile(){if(this.props.href){const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.socket.readFile(n,o).then(a=>{let i="";a.file!==void 0&&(i=a.file);const l={copyPossible:this.state.copyPossible,ext:this.state.ext};if(i.type==="Buffer")if(o.toLowerCase().endsWith(".json5")){l.ext="json5",l.copyPossible=!0;try{i=atob(bO(i,!0))}catch{console.error("Cannot convert base64 to string"),i=""}}else{const u=ht.detectMimeType(bO(i));u&&(l.ext=u,l.copyPossible=Lr.code.includes(u)||Lr.txt.includes(u))}l.copyPossible&&(l.ext&&Lr.txt.includes(l.ext)?(l.text=i,l.editingValue=i):l.ext&&Lr.code.includes(l.ext)&&(l.code=i,l.editingValue=i)),this.setState(l)}).catch(a=>window.alert(`Cannot read file: ${a}`))}}componentDidMount(){this.readFile();const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,o,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,o,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}getEditorOrViewer(){return y.createElement(Fr,{variant:"standard",style:us.textarea,multiline:!0,value:this.state.editingValue||this.state.code||this.state.text,slotProps:{htmlInput:{readOnly:!this.state.editing}}})}getContent(){return this.state.ext&&Lr.images.includes(this.state.ext)?this.state.imgError?y.createElement(Pw,{style:{...us.img,...this.props.getStyleBackgroundImage()}}):y.createElement(Rw,{onError:r=>{r.target.onerror=null,this.setState({imgError:!0})},style:{...us.img,...this.props.getStyleBackgroundImage()},src:`${this.props.href}?ts=${this.state.forceUpdate}`,alt:this.props.href}):this.state.ext&&Lr.audio.includes(this.state.ext)?y.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},y.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&Lr.video.includes(this.state.ext)?y.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},y.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},y.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 y.createElement(ra,{sx:{"&.MuiDialog-scrollPaper":us.dialog,"& .MuiDialog-paper":us.paper},scroll:"paper",open:!!this.props.href,onClose:()=>this.props.onClose(),fullWidth:!0,maxWidth:"xl","aria-labelledby":"ar_dialog_file_view_title"},y.createElement("div",{style:us.dialogTitle},y.createElement(aa,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&Lr.images.includes(this.state.ext)&&y.createElement("div",null,y.createElement(nr,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},y.createElement(Wb,null)))),y.createElement(oa,{style:us.content},this.getContent()),y.createElement(na,null,this.state.copyPossible?y.createElement(Qt,{color:"grey",onClick:r=>{r.stopPropagation(),r.preventDefault(),ht.copyToClipboard(this.state.text||this.state.code||"")},startIcon:y.createElement(VM,null)},this.props.t("Copy content")):null,this.state.editing?y.createElement(Qt,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:()=>this.onSave(),startIcon:y.createElement(S0,null)},this.props.t("Save")):null,y.createElement(Qt,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:y.createElement(Rs,null)},this.props.t("Close"))))}}const yee=eh()(gee),Ai=32,Ho=32,_p=120,wO=64,xO="Not found",gp={all:GM,images:iH,code:Ub,txt:aH,audio:GU,video:vH},Ne={root:{width:"100%",overflow:"hidden",height:"100%",position:"relative"},filesDiv:{width:"calc(100% - 16px)",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% - ${48*2+8}px)`,display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${wO}px`},itemTile:t=>({position:"relative",userSelect:"none",cursor:"pointer",height:_p,width:wO,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:t.palette.secondary.light,color:ht.invertColor(t.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:t=>({width:"100%",height:_p-32-16-8,display:"block",pl:1,color:t.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:t=>({position:"absolute",top:22,left:18,zIndex:1,color:t.palette.mode==="dark"?"#FFF":"#000"}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:_p-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:_p-32-16-8,display:"block",objectFit:"contain"},itemSelected:t=>({background:t.palette.primary.main,color:ht.invertColor(t.palette.primary.main,!0)}),itemTable:t=>({userSelect:"none",cursor:"pointer",height:Ai,display:"inline-flex",lineHeight:`${Ai}px`,"&:hover":{background:t.palette.secondary.light,color:ht.invertColor(t.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:t=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:t.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:t=>({display:"inline-block",width:Ho,height:Ai,minWidth:Ho,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${Ho/2}px`,"&:hover":{backgroundColor:t.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:t.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:Ho,height:Ai,minWidth:Ho,padding:0},itemAclButtonTable:{width:Ho,height:Ai,minWidth:Ho,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:Ho,height:Ai,minWidth:Ho,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:t=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:t.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:t=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:t.palette.secondary.main}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:t=>({pl:"2px",pr:"2px",cursor:"pointer","&:hover":{background:t.palette.primary.main}}),pathDivBreadcrumbSelected:{},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:t=>({color:t.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},Oa="0_userdata.0";function Ii(t){const e=(t||"").split("/");return e.length&&e.pop(),e.join("/")}function Ev(t){const e=ht.getFileExtension(t);return!!(e!=null&&e.toLowerCase().match(/[a-z]+/)&&e.length<5)}const kt="Table",Tv="Tile";function SO(t,e){return t.folder&&e.folder?t.name>e.name?1:t.namee.name?1:t.name{const a=`${r}/${n}`,i=a.lastIndexOf("/"),l=a.substring(0,i);console.log(`File changed ${a}[${o}]`),this.state.folders[l]&&(this._tempTimeout[l]&&clearTimeout(this._tempTimeout[l]),this._tempTimeout[l]=setTimeout(()=>{delete this._tempTimeout[l],this.browseFolder(l,null,!1,!0).then(u=>this.setState({folders:u})).catch(u=>console.error(`Cannot read folder: ${u.message}`))},300))});xe(this,"setStateBackgroundImage",()=>{const r=["light","dark","colored","delete"];this.setState(({backgroundImage:n})=>n&&r.indexOf(n)!==-1&&r.length-1!==r.indexOf(n)?(this.localStorage.setItem("files.backgroundImage",r[r.indexOf(n)+1]),{backgroundImage:r[r.indexOf(n)+1]}):(this.localStorage.setItem("files.backgroundImage",r[0]),{backgroundImage:r[0]}))});xe(this,"getStyleBackgroundImage",()=>{switch(this.state.backgroundImage){case"light":return Ne.backgroundImageLight;case"dark":return Ne.backgroundImageDark;case"colored":return Ne.backgroundImageColored;case"delete":return null;default:return null}});this.localStorage=window._localStorage||window.localStorage;const n=this.localStorage.getItem("files.expanded")||"[]";if(this.props.limitPath){const f=this.props.limitPath.split("/");this.limitToObjectID=f[0],this.limitToPath=f.length?f.length===1&&f[0]===""?null:f.join("/"):null,this.limitToPath&&this.limitToPath.endsWith("/")&&this.limitToPath.substring(0,this.limitToPath.length-1)}let o;try{o=JSON.parse(n),this.limitToPath&&(o=o.filter(f=>{var h;return f.startsWith(`${this.limitToPath}/`)||f===this.limitToPath||((h=this.limitToPath)==null?void 0:h.startsWith(`${f}/`))}))}catch{o=[]}let a;this.props.showViewTypeButton?a=this.localStorage.getItem("files.viewType")||kt:a=kt;let i=this.props.selected||this.localStorage.getItem("files.selected")||Oa,l;if(r.restrictToFolder){i=r.restrictToFolder,l=r.restrictToFolder;const f=r.restrictToFolder.split("/");o=[];let h="";for(let d=0;d{if(this.state.viewType===kt&&!this.findItem(this.state.selected)){const n=this.state.selected.split("/");for(;n.length&&!this.findItem(n.join("/"));)n.pop();let o;n.length?o=n.join("/"):o=Oa,this.setState({selected:o,path:o,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){if(this.mounted){const r=document.getElementById(this.state.selected);r==null||r.scrollIntoView()}}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(r=>console.error(`Cannot load folders: ${r}`)),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(r=>r&&clearTimeout(r)),this._tempTimeout={}}browseFoldersCb(r,n,o){if(!(r!=null&&r.length))o(n);else{const a=r.shift();a?this.browseFolder(a,n).catch(i=>console.error(`Cannot read folder ${a}: ${i.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(r,n,o),0)}):setTimeout(()=>this.browseFoldersCb(r,n,o),0)}}browseFolders(r,n){let o;return n?o=n:(o={},Object.keys(this.state.folders).forEach(a=>o[a]=this.state.folders[a])),r!=null&&r.length?new Promise(a=>{this.browseFoldersCb(r,o,a)}):Promise.resolve(o)}readDirSerial(r,n){return new Promise((o,a)=>{this.browseList&&(this.browseList.push({resolve:o,reject:a,adapter:r,relPath:n}),this.browseListRunning||this.processBrowseList())})}processBrowseList(r=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.setState({queueLength:this.browseList.length}),this.browseList[0].processing=!0,this.props.socket.readDir(this.browseList[0].adapter,this.browseList[0].relPath).then(n=>{if(this.browseList){const o=this.browseList.shift();if(o){const a=o.resolve;o.resolve=null,o.reject=null,o.adapter=null,o.relPath=null,a&&a(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(n=>{if(this.browseList){const o=this.browseList.shift();if(o){const a=o.reject;o.resolve=null,o.reject=null,o.adapter=null,o.relPath=null,a&&a(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(r,n,o,a){let i;if(n?i=n:(i={},Object.keys(this.state.folders).forEach(_=>{i[_]=this.state.folders[_]})),i[r]&&!a)return o?Promise.resolve(i):new Promise((_,g)=>{Promise.all(i[r].filter(b=>b.folder).map(b=>this.browseFolder(b.id,i,!0).catch(()=>{}))).then(()=>_(i)).catch(b=>g(new Error(b)))});if(!r||r==="/"){try{let _=await this.props.socket.readMetaItems();const g=[];let b=null;if(this.state.restrictToFolder){const S=this.state.restrictToFolder.split("/")[0];_=_.filter(k=>k._id===S)}else this.state.expertMode||(_=_.filter(S=>!S._id.endsWith(".admin")));const w=_.findIndex(S=>S._id==="system.meta.uuid");if(w!==-1&&_.splice(w,1),_.forEach(S=>{if(this.limitToObjectID&&this.limitToObjectID!==S._id)return;const k={id:S._id,name:S._id,title:S.common&&S.common.name||S._id,meta:!0,from:S.from,ts:S.ts,color:S.common&&S.common.color,icon:S.common&&S.common.icon,folder:!0,acl:S.acl,level:0};k.id===Oa?b=k:g.push(k)}),g.sort((S,k)=>S.id>k.id?1:S.idS.folder).map(S=>this.browseFolder(S.id,i,!0).catch(()=>{}))).then(()=>i)}catch(_){const g=_;this.initialReadFinished&&window.alert(`Cannot read meta items: ${g.message}`),i[r||"/"]=[]}return i}const l=r.split("/"),u=l.length,f=l.shift(),h=l.join("/");let d;try{d=await this.readDirSerial(f||"",h)}catch(_){if(_==="Not exists"&&f==="0_userdata.0")d=[];else throw _}try{const _=[];if(d.forEach(g=>{var w;const b={id:`${r}/${g.file}`,ext:ht.getFileExtension(g.file),folder:g.isDir,name:g.file,size:(w=g.stats)==null?void 0:w.size,modified:g.modifiedAt,acl:g.acl,level:u};this.state.restrictToFolder?(b.folder&&(b.id.startsWith(`${this.state.restrictToFolder}/`)||b.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${b.id}/`))||b.id.startsWith(`${this.state.restrictToFolder}/`))&&_.push(b):this.limitToPath?(b.folder&&(b.id.startsWith(`${this.limitToPath}/`)||b.id===this.limitToPath||this.limitToPath.startsWith(`${b.id}/`))||b.id.startsWith(`${this.limitToPath}/`))&&_.push(b):_.push(b)}),_.sort(SO),i[r]=_,!o)return Promise.all(_.filter(g=>g.folder).map(g=>this.browseFolder(g.id,i,!0))).then(()=>i)}catch(_){const g=_;this.initialReadFinished&&window.alert(`Cannot read ${f}${h?`/${h}`:""}: ${g==null?void 0:g.message}`),i[r]=[]}return i}toggleFolder(r,n){n==null||n.stopPropagation();const o=[...this.state.expanded],a=o.indexOf(r.id);a===-1?(o.push(r.id),o.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(o)),r.temp?this.setState({expanded:o}):this.browseFolder(r.id).then(i=>this.setState({expanded:o,folders:i})).catch(i=>window.alert(i===xO?this.props.t('ra_Cannot find "%s"',r.id):this.props.t('ra_Cannot read "%s"',r.id)))):(o.splice(a,1),this.localStorage.setItem("files.expanded",JSON.stringify(o)),this.setState({expanded:o}))}changeFolder(r,n){r==null||r.stopPropagation(),this.lastSelect=Date.now();let o=n||Ii(this.state.currentDir);if(o==="/"&&(o=""),this.localStorage.setItem("files.currentDir",o),n&&r&&(r.altKey||r.shiftKey||r.ctrlKey||r.metaKey)){this.setState({selected:o});return}if(o&&!this.state.folders[o]){this.browseFolder(o).then(a=>this.setState({folders:a,path:o,currentDir:o,selected:o,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(a=>console.error(`Cannot read folder: ${a.message}`));return}this.setState({currentDir:o,selected:o,path:o,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))}select(r,n,o){n&&n.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",r),this.setState({selected:r,path:r,pathFocus:!1},()=>{if(this.props.onSelect){const a=ht.getFileExtension(r);(!this.props.filterFiles||a&&this.props.filterFiles.includes(a))&&(!this.state.filterByType||a&&Lr[this.state.filterByType].includes(a))?this.props.onSelect(r,!1,!!this.state.folders[r]):this.props.onSelect("")}o&&o()})}getText(r){if(r)return typeof r=="object"?r[this.props.lang]||r.en||void 0:r}renderFolder(r,n){if(this.state.viewType===kt&&this.state.filterEmpty&&(!this.state.folders[r.id]||!this.state.folders[r.id].length)&&r.id!==Oa&&!r.temp)return null;const o=n?JQ:I0,a=this.state.viewType===kt?r.level*this.levelPadding:0,i=r.name===Oa,l=i||r.name==="vis.0"||r.name==="vis-2.0",u=ht.getStyle(this.props.theme,Ne[`itemFolderIcon${this.state.viewType}`],l&&Ne.specialFolder);return y.createElement(wt,{component:"div",key:r.id,id:r.id,style:this.state.viewType===kt?{marginLeft:a,width:`calc(100% - ${a}px`}:{},onClick:f=>this.state.viewType===kt?this.select(r.id,f):this.changeFolder(f,r.id),onDoubleClick:f=>this.state.viewType===kt&&this.toggleFolder(r,f),title:this.getText(r.title),className:"browserItem",sx:ht.getStyle(this.props.theme,Ne[`item${this.state.viewType}`],Ne[`itemFolder${this.state.viewType}`],this.state.selected===r.id?Ne.itemSelected:{},r.temp?Ne.itemFolderTemp:{})},y.createElement(o,{style:u,onClick:this.state.viewType===kt?f=>this.toggleFolder(r,f):void 0}),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,Ne[`itemName${this.state.viewType}`],Ne[`itemNameFolder${this.state.viewType}`])},i?this.props.t("ra_User files"):r.name),y.createElement(wt,{component:"div",style:Ne[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.state.folders[r.id]?this.state.folders[r.id].length:""),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.props.expertMode?this.formatAcl(r.acl):null),this.state.viewType===kt&&this.props.expertMode?y.createElement(wt,{component:"div",sx:{...Ne.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===kt&&this.props.allowDownload?y.createElement("div",{style:Ne[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===kt&&this.props.allowDelete&&this.state.folders[r.id]&&this.state.folders[r.id].length?y.createElement(nr,{"aria-label":"delete",onClick:f=>{f.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:Ne[`itemDeleteButton${this.state.viewType}`],size:"large"},y.createElement(Dp,{fontSize:"small"})):this.state.viewType===kt&&this.props.allowDelete?y.createElement(wt,{component:"div",sx:Ne[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return y.createElement(wt,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:r=>this.changeFolder(r),title:this.props.t("ra_Back to %s",Ii(this.state.currentDir)),className:"browserItem",sx:ht.getStyle(this.props.theme,Ne[`item${this.state.viewType}`],Ne[`itemFolder${this.state.viewType}`])},y.createElement(I0,{style:ht.getStyle(this.props.theme,Ne[`itemFolderIcon${this.state.viewType}`])}),y.createElement(VU,{sx:Ne.itemFolderIconBack}),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,Ne[`itemName${this.state.viewType}`],Ne[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(r){return y.createElement("div",{style:Ne[`itemSize${this.state.viewType}`]},r||r===0?ht.formatBytes(r):"")}formatAcl(r){const n=r?r.permissions||r.file:0;let o;return n?o=n.toString(16).padStart(3,"0"):o="",y.createElement("div",{style:Ne[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?y.createElement(nr,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:Ne[`itemAclButton${this.state.viewType}`]},o||"---"):o||"---")}getFileIcon(r){switch(r){case"json":case"json5":return y.createElement(JU,{style:Ne[`itemIcon${this.state.viewType}`]});case"css":return y.createElement(YU,{style:Ne[`itemIcon${this.state.viewType}`]});case"js":case"ts":return y.createElement(Ub,{style:Ne[`itemIcon${this.state.viewType}`]});case"html":case"md":return y.createElement(XM,{style:Ne[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return y.createElement(uH,{style:Ne[`itemIcon${this.state.viewType}`]});default:return y.createElement(GM,{style:Ne[`itemIcon${this.state.viewType}`]})}}static getEditFile(r){switch(r){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":return!0;default:return!1}}renderFile(r){const n=this.state.viewType===kt?r.level*this.levelPadding:0,o=ht.getFileExtension(r.name);return y.createElement(wt,{component:"div",key:r.id,id:r.id,onDoubleClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&Lr[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:o})},onClick:a=>this.select(r.id,a),style:this.state.viewType===kt?{marginLeft:n,width:`calc(100% - ${n}px)`}:{},className:"browserItem",sx:ht.getStyle(this.props.theme,Ne[`item${this.state.viewType}`],Ne[`itemFile${this.state.viewType}`],this.state.selected===r.id?Ne.itemSelected:void 0)},o&&Lr.images.includes(o)?this.state.fileErrors.includes(r.id)?y.createElement(Pw,{style:{...Ne[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...Ne[`itemNoImage${this.state.viewType}`]}}):y.createElement(Rw,{onError:a=>{a.target.onerror=null;const i=[...this.state.fileErrors];i.includes(r.id)||(i.push(r.id),this.setState({fileErrors:i}))},style:{...Ne[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+r.id,alt:r.name}):this.getFileIcon(o),y.createElement(wt,{component:"div",sx:Ne[`itemName${this.state.viewType}`]},r.name),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(r.size)),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.props.expertMode?this.formatAcl(r.acl):null),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===kt&&this.props.expertMode&&Aw.getEditFile(o)?y.createElement(nr,{"aria-label":"edit",onClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&Lr[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:o})},sx:Ne.itemDeleteButtonTable,size:"large"},y.createElement(rH,{fontSize:"small"})):y.createElement(wt,{component:"div",sx:Ne[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===kt&&this.props.allowDownload?y.createElement(wt,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:Ne.itemDownloadButtonTable,tabIndex:0,download:r.id,href:this.imagePrefix+r.id,onClick:a=>a.stopPropagation()},y.createElement(fH,null)):null,this.state.viewType===kt&&this.props.allowDelete&&r.id!=="vis.0/"&&r.id!=="vis-2.0/"&&r.id!==Oa?y.createElement(nr,{"aria-label":"delete",onClick:a=>{a.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:Ne[`itemDeleteButton${this.state.viewType}`],size:"large"},y.createElement(Dp,{fontSize:"small"})):this.state.viewType===kt&&this.props.allowDelete?y.createElement(wt,{component:"div",sx:Ne[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(r){if(this.state.folders&&this.state.folders[r]){if(this.state.viewType===Tv){const o=[];return r&&r!=="/"&&o.push(this.renderBackFolder()),this.state.folders[r].forEach(a=>{a.folder?o.push(this.renderFolder(a)):(!this.props.filterFiles||a.ext&&this.props.filterFiles.includes(a.ext))&&(!this.state.filterByType||a.ext&&Lr[this.state.filterByType].includes(a.ext))&&o.push(this.renderFile(a))}),o}const n=[];return this.state.folders[r].forEach(o=>{if(o.folder){const a=this.state.expanded.includes(o.id),i=this.renderFolder(o,a);if(Array.isArray(i)?i.forEach(l=>n.push(l)):n.push(i),this.state.folders[o.id]&&a){const l=this.renderItems(o.id);Array.isArray(l)?l.forEach(u=>n.push(u)):n.push(l)}}else(!this.props.filterFiles||o.ext&&this.props.filterFiles.includes(o.ext))&&(!this.state.filterByType||o.ext&&Lr[this.state.filterByType].includes(o.ext))&&n.push(this.renderFile(o))}),n}return y.createElement("div",{style:{position:"relative"}},y.createElement(P9,{key:r,color:"secondary",size:24}),y.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const r=this.props.showTypeSelector?gp[this.state.filterByType||"all"]||gp.all:null,n=this.findFirstFolder(this.state.selected);return y.createElement(Bb,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?y.createElement(nr,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...Ne.menuButton,...this.state.restrictToFolder?Ne.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},y.createElement(oH,{fontSize:"small"})):null,this.props.showExpertButton?y.createElement(nr,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...Ne.menuButton,...this.state.expertMode?Ne.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},y.createElement(GQ,null)):null,this.props.showViewTypeButton?y.createElement(nr,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:Ne.menuButton,"aria-label":"view mode",onClick:()=>{const o=this.state.viewType===kt?Tv:kt;this.localStorage.setItem("files.viewType",o);let a=this.state.selected;Ev(a)&&(a=Ii(a)),this.setState({viewType:o,currentDir:a},()=>{this.state.viewType===kt&&this.scrollToSelected()})},size:"small"},this.state.viewType!==kt?y.createElement(cH,{fontSize:"small"}):y.createElement(bH,{fontSize:"small"})):null,y.createElement(nr,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:Ne.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"},y.createElement(nH,{fontSize:"small"})),y.createElement(nr,{edge:"start",title:this.props.t("ra_Reload files"),style:Ne.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},y.createElement(YM,{fontSize:"small"})),this.props.allowCreateFolder?y.createElement(nr,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:Ne.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},y.createElement(tH,{fontSize:"small"})):null,this.props.allowUpload?y.createElement(nr,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:Ne.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},y.createElement(HC,{fontSize:"small"})):null,this.props.showTypeSelector&&r?y.createElement(Op,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:Ne.tooltip}}},y.createElement(nr,{size:"small",onClick:o=>this.setState({showTypesMenu:o.target})},y.createElement(r,{fontSize:"small"}))):null,this.state.showTypesMenu?y.createElement(jb,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(gp).map(o=>{const a=gp[o];return y.createElement(fr,{key:o,selected:this.state.filterByType===o,onClick:()=>{o==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",o),this.setState({filterByType:o,showTypesMenu:null}))}},y.createElement(w7,null,y.createElement(a,{fontSize:"small"})),y.createElement(C7,null,this.props.t(`ra_fileType_${o}`)))})):null,y.createElement(Op,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:Ne.tooltip}}},y.createElement(nr,{color:"inherit",edge:"start",style:Ne.menuButton,onClick:this.setStateBackgroundImage,size:"small"},y.createElement(Wb,{fontSize:"small"}))),this.state.viewType!==kt&&this.props.allowDelete?y.createElement(Op,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:Ne.tooltip}}},y.createElement("span",null,y.createElement(nr,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===Oa,color:"inherit",edge:"start",style:Ne.menuButton,onClick:o=>{o.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},y.createElement(Dp,{fontSize:"small"})))):null)}findItem(r,n){if(n=n||this.state.folders,!n)return null;const o=r.split("/");o.pop();const a=o.join("/")||"/";return n[a]&&n[a].find(i=>i.id===r)||null}renderInputDialog(){if(this.state.addFolder){const r=this.findFirstFolder(this.state.selected);return r?y.createElement(XQ,{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:n=>this.state.folders[r].find(o=>o.name===n)?"":this.props.t("ra_Duplicate name"),onClose:n=>{if(n){const o={};Object.keys(this.state.folders).forEach(u=>o[u]=this.state.folders[u]);const a=this.findItem(r),i=`${r}/${n}`;o[r].push({id:i,level:((a==null?void 0:a.level)||0)+1,name:n,folder:!0,temp:!0}),o[r].sort(SO),o[i]=[];const l=[...this.state.expanded];l.includes(r)||(l.push(r),l.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(l)),this.setState({addFolder:!1,folders:o,expanded:l},()=>this.select(i))}else this.setState({addFolder:!1})},replace:n=>n.replace(/[^-_\w]/,"_")}):(window.alert(this.props.t("ra_Invalid parent folder!")),null)}return null}componentDidUpdate(){this.setOpacityTimer&&clearTimeout(this.setOpacityTimer),this.setOpacityTimer=setTimeout(()=>{this.setOpacityTimer=null;const r=window.document.getElementsByClassName("browserItem");for(let n=0;nthis.setState({uploadFile:!1})},y.createElement(Rs,null)),y.createElement(Qf,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:r=>{let n=r.length;r.forEach(o=>{const a=new FileReader;a.onabort=()=>console.log("file reading was aborted"),a.onerror=()=>console.log("file reading has failed"),a.onload=()=>{const i=this.findFirstFolder(this.state.selected);if(!i)window.alert(this.props.t("ra_Invalid parent folder!"));else{const l=`${i}/${o.name}`;this.uploadFile(l,a.result).then(()=>{--n||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const u=[...this.state.expanded];u.includes(i)||(u.push(i),u.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(u))),this.setState({expanded:u},()=>this.select(l))}else setTimeout(()=>this.browseFolder(i,null,!1,!0).then(u=>{const f=[...this.state.expanded];f.includes(i)||(f.push(i),f.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(f))),this.setState({folders:u,expanded:f},()=>this.select(l))}),500)})})}},a.readAsArrayBuffer(o)})}},({getRootProps:r,getInputProps:n})=>y.createElement("div",{style:{...Ne.uploadDiv,...this.state.uploadFile==="dragging"?Ne.uploadDivDragging:void 0},...r()},y.createElement("input",{...n()}),y.createElement(wt,{component:"div",sx:Ne.uploadCenterDiv},y.createElement("div",{style:Ne.uploadCenterTextAndIcon},y.createElement(HC,{style:Ne.uploadCenterIcon}),y.createElement("div",{style:Ne.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(r){const n=this.findItem(r);if(n!=null&&n.folder)return(this.state.folders[r]?Promise.all(this.state.folders[r].map(i=>this.deleteRecursive(i.id))):Promise.resolve()).then(()=>{if(n.level>=1){const i=r.split("/"),l=i.shift();this.props.socket.deleteFolder(l||"",i.join("/")).then(()=>{const u=JSON.parse(JSON.stringify(this.state.folders));delete u[n.id];const f=Ii(n.id),h=u[f];if(h){const d=h.findIndex(_=>_.id===n.id);d!==-1&&h.splice(d,1),this.select(f,null,()=>this.setState({folders:u}))}})}});const o=r.split("/"),a=o.shift();return o.length?this.props.socket.deleteFile(a||"",o.join("/")).catch(i=>window.alert(`Cannot delete file: ${i}`)):Promise.resolve()}deleteItem(r){r=r||this.state.deleteItem,this.setState({deleteItem:""},()=>this.deleteRecursive(r).then(()=>{const n={},o=this.state.expanded.indexOf(r);if(o!==-1){const a=[...this.state.expanded];a.splice(o,1),this.localStorage.setItem("files.expanded",JSON.stringify(a)),n.expanded=a}if(this.state.selected===r){const a=this.state.selected.split("/");a.pop(),n.selected=a.join("/")}if(this.supportSubscribes)this.setState(n);else{const a=this.findFirstFolder(r),i={};Object.keys(this.state.folders).forEach(l=>{l!==a&&!l.startsWith(`${a}/`)&&(i[l]=this.state.folders[l])}),n.folders=i,this.setState(n,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],i).then(l=>this.setState({folders:l})).catch(l=>console.error(l))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?y.createElement(ra,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},y.createElement(aa,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),y.createElement(oa,null,y.createElement(If,null,this.props.t("ra_Are you sure?"))),y.createElement(na,null,y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>{this.suppressDeleteConfirm=Date.now()+6e4*5,this.deleteItem("")}},this.props.t("ra_Delete (no confirm for 5 mins)")),y.createElement(Qt,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),y.createElement(Qt,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){const r=this.props.FileViewer||yee;return this.state.viewer?y.createElement(r,{supportSubscribes:this.supportSubscribes,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile,themeType:this.props.themeType,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?y.createElement(KM,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(r){this.cacheFolders=this.cacheFolders||JSON.parse(JSON.stringify(this.state.folders));let n;r.forEach(o=>{const a=this.findItem(o.id,this.cacheFolders);a&&JSON.stringify(a.acl)!==JSON.stringify(o.acl)&&(a.acl=o.acl,n=!0)}),n&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const o=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:o})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let r=this.state.path;Ev(this.state.path)&&(r=Ii(this.state.path)),new Promise(n=>{this.state.folders[r]?n(!0):this.browseFolder(r).then(o=>this.setState({folders:o},()=>n(!0))).catch(o=>this.setState({errorText:o===xO?this.props.t('ra_Cannot find "%s"',r):this.props.t('ra_Cannot read "%s"',r)}))}).then(n=>n&&this.setState({selected:this.state.path,currentDir:r,pathFocus:!1})).catch(n=>console.error(n))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const r=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),n=[];return y.createElement(NM,{style:{paddingLeft:8}},r.map((o,a)=>{o&&n.push(o);const i=n.join("/");return athis.changeFolder(l,i||"/")},o||this.props.t("ra_Root")):y.createElement("div",{style:Ne.pathDivBreadcrumbSelected,key:`${this.state.selected}_${a}`,onClick:()=>this.setState({pathFocus:!0})},o)}))}renderPath(){return y.createElement(wt,{component:"div",key:"path",sx:Ne.pathDiv},this.state.pathFocus?y.createElement(mo,{value:this.state.path,onKeyDown:r=>{r.key==="Enter"?this.changeToPath():r.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:y.createElement(nr,{size:"small",onClick:()=>this.changeToPath()},y.createElement(JM,null)),onBlur:()=>this.changeToPath(),onChange:r=>this.setState({path:r.target.value}),style:Ne.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(r=>console.error(`Cannot load folders: ${r}`))})},300)),y.createElement("div",{style:{...Ne.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===Tv?this.renderPath():null,y.createElement("div",{style:{...Ne.filesDiv,...Ne[`filesDiv${this.state.viewType}`]},onClick:r=>{this.state.viewType!==kt&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(r,this.state.currentDir||"/"):r.stopPropagation())}},this.state.viewType===kt?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==kt?y.createElement("div",{style:Ne.filesDivHint},this.props.t("ra_select_folder_hint")):null),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())):y.createElement(jM,null)}}const vee=eh()(Aw),bee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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 wee(t){const e=document.createElement("div");e.innerHTML=t;const r=e.firstElementChild;return r!=null&&r.remove?r.remove():r&&e.removeChild(r),e.remove(),r}function xee(t){const e={};if(!t)return e;for(let r,n=0;na[1].toUpperCase()),e[r]=t[n].value}return e}const ys=class ys extends $.Component{constructor(r){var n;super(r);xe(this,"svg");this.state={svg:!!((n=this.props.src)!=null&&n.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(r,n){var i;const o={};let a=!1;return r&&n&&r.src!==n.src&&(o.src=r.src,o.svg=(i=r.src)==null?void 0:i.startsWith("data:"),o.created=!1,a=!0),r&&n&&r.color!==n.color&&(o.color=r.color,o.created=!1,a=!0),r&&n&&r.showError!==n.showError&&(o.showError=r.showError,a=!0),a?o:null}getSvgFromData(r){const n="data:image/svg+xml;base64,";if(!r.startsWith(n))return null;r=r.substring(n.length);try{r=atob(r);const o=wee(r),a=o.innerHTML,i=xee(o.attributes);return o.remove(),y.createElement("svg",{className:this.props.className,style:this.state.color?{color:this.state.color}:{},...i,dangerouslySetInnerHTML:{__html:a}})}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 y.createElement(Pw,{className:this.props.className});if(ys.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let r=(this.props.imagePrefix||"")+this.state.src;return r.startsWith("./")?r=ys.REMOTE_PREFIX+r.substring(2):r.startsWith("/")||(r=ys.REMOTE_PREFIX+r),y.createElement("img",{className:this.props.className,src:`https://remote-files.iobroker.in${r}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return y.createElement("img",{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}};xe(ys,"REMOTE_SERVER",window.location.hostname.includes("iobroker.in")),xe(ys,"REMOTE_PREFIX",window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1));let kO=ys;class pP extends y.Component{constructor(){super(...arguments);xe(this,"handleFileSelect",r=>{const n=r.target,o=n==null?void 0:n.files;if(!o||!o.length){console.error("No files found. Please report to developers");return}const a=o[0];if(a){const i=new window.FileReader;i.onload=()=>{var u;const l=((u=i.result)==null?void 0:u.toString())||"";try{const f=JSON.parse(l);f.native&&f.common?f.common.name!==this.props.common.name?this.props.onError&&this.props.onError(U.t("ra_otherConfig",f.common.name)):this.props.onLoad&&this.props.onLoad(f.native):this.props.onError&&this.props.onError(U.t("ra_invalidConfig"))}catch(f){this.props.onError&&this.props.onError(f==null?void 0:f.toString())}},i.readAsText(a)}else alert("Failed to open JSON File")})}static generateFile(r,n){const o=window.document.createElement("a");o.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(n,null,2))}`),o.setAttribute("download",r),o.style.display="none",window.document.body.appendChild(o),o.click(),window.document.body.removeChild(o)}download(){const r={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};r.common.news&&delete r.common.news,r.common.titleLang&&delete r.common.titleLang,r.common.desc&&delete r.common.desc,pP.generateFile(`${r._id}.json`,r)}upload(){const r=window.document.createElement("input");r.setAttribute("type","file"),r.setAttribute("id","files"),r.setAttribute("opacity","0"),r.addEventListener("change",this.handleFileSelect,!1),r.click()}render(){return y.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?y.createElement(Rw,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?y.createElement(Cs,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{const r=window.open(this.props.common.readme,"_blank");r==null||r.focus()}},y.createElement(sH,null)):null,y.createElement(Cs,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:U.t("ra_Load configuration from file"),onClick:()=>this.upload()},y.createElement(yH,null)),y.createElement(Cs,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:U.t("ra_Save configuration to file"),onClick:()=>this.download()},y.createElement(gH,null)))}}const See=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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"})),kee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.createElement("g",{fill:"currentColor"},y.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),y.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),Cee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.createElement("g",{fill:"currentColor"},y.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),y.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),y.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),y.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),$ee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),y.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"}));y.createElement($ee,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(kee,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(Cee,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(See,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(XM,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(bee,{className:"itemIcon",style:{color:"#7da7ff",verticalAlign:"middle"}}),y.createElement(lH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(mH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(hH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(_H,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(dH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(pH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(eH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(Ub,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(I0,{className:"itemIcon itemIconFolder",style:{verticalAlign:"middle"}});const de={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:t=>({background:t.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:t=>({background:t.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowDates:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#747a86"}),rowWeeks:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#717680"}),rowMonths:t=>({background:t.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:t=>({background:t.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:t=>({background:t.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDaysDows:t=>({background:t.palette.mode!=="dark"?"#EEEAFF":"#573544",pl:"10px",pb:"10px"}),rowDowsDows:t=>({background:t.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},Ov=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],yp=["January","February","March","April","May","June","July","August","September","October","November","December"],Dv={minutes:"minutes",hours:"hours"},Ol=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function qo(t){return t<10?`0${t}`:`${t}`}const CO={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function Mv(t){const e=t.split(".");return e.length===3?`${e[2]}-${e[1]}-${e[0]}`:""}class Tr extends $.Component{constructor(r){super(r);xe(this,"refFrom");xe(this,"refTo");xe(this,"refOnce");xe(this,"timerOnce",null);xe(this,"timerFrom",null);xe(this,"timerTo",null);let n;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{n=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(n=this.props.schedule);(!n||!Object.keys(n).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),n=CO),n={...CO,...n},n.valid.from=n.valid.from||Tr.now2string(),this.refFrom=y.createRef(),this.refTo=y.createRef(),this.refOnce=y.createRef(),this.state={schedule:n,desc:Tr.state2text(n)},JSON.stringify(n)!==this.props.schedule&&setTimeout(()=>this.props.onChange&&this.props.onChange(JSON.stringify(n)),100)}onChange(r,n){const o=JSON.stringify(r)!==JSON.stringify(this.state.schedule);if(n||o){o&&this.setState({schedule:r,desc:Tr.state2text(r)});const a=JSON.parse(JSON.stringify(r));if(a.period.once){const i=a.period.once;delete a.period,a.period={once:i},delete a.valid}else if(a.period.days){const i=a.period.days,l=a.period.dows;delete a.period,a.period={days:i},l&&l!=="[]"&&(a.period.dows=l)}else if(a.period.weeks){const i=a.period.weeks,l=a.period.dows;delete a.period,a.period={weeks:i},l&&l!=="[]"&&(a.period.dows=l)}else if(a.period.months){const i=a.period.months,l=a.period.dates;delete a.period,a.period={months:i},l&&l!=="[]"&&(a.period.dates=l)}else if(a.period.years){const i=a.period.years,l=a.period.yearMonth,u=a.period.yearDate;delete a.period,a.period={years:i,yearDate:u},l&&(a.period.yearMonth=l)}if(a.time.exactTime?(delete a.time.end,delete a.time.mode,delete a.time.interval):delete a.time.exactTime,a.valid){if(a.valid.to||delete a.valid.to,a.period.days===1||a.period.weeks===1||a.period.months===1||a.period.years===1){const i=Tr.string2date(a.valid.from),l=new Date;l.setHours(0),l.setMinutes(0),l.setSeconds(0),l.setMilliseconds(0),i<=l&&delete a.valid.from}!a.valid.from&&!a.valid.to&&delete a.valid}this.props.onChange&&this.props.onChange(JSON.stringify(a),Tr.state2text(r))}}static state2text(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{return""}const n=[],o=Tr.string2date(r.valid.from);if(r.period.once){const a=Tr.string2date(r.period.once),i=new Date;if(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0),aU.t(Ov[l]));if(i.length===1)n.push(U.t("sch_desc_onWeekday",i[0]));else if(i.length===7)n.push(U.t("sch_desc_everyDay"));else{const l=i.pop();n.push(U.t("sch_desc_onWeekdays",i.join(", "),l))}}}else n.push(U.t("sch_desc_everyDay"));else n.push(U.t("sch_desc_everyNDay",r.period.days.toString()));else if(r.period.weeks)if(r.period.weeks===1?n.push(U.t("sch_desc_everyWeek")):n.push(U.t("sch_desc_everyNWeeks",r.period.weeks.toString())),r.period.dows){const a=JSON.parse(r.period.dows);if(a.length===2&&a[0]===0&&a[1]===6)n.push(U.t("sch_desc_onWeekends"));else if(a.length===5&&a[0]===1&&a[1]===2&&a[2]===3&&a[3]===4&&a[4]===5)n.push(U.t("sch_desc_onWorkdays"));else{const i=a.map(l=>U.t(Ov[l]));if(i.length===1)n.push(U.t("sch_desc_onWeekday",i[0]));else if(i.length===7)n.push(U.t("sch_desc_everyDay"));else{const l=i.pop();n.push(U.t("sch_desc_onWeekdays",i.join(", "),l))}}}else return U.t("sch_desc_never");else if(r.period.months){if(r.period.dates){const a=JSON.parse(r.period.dates);if(a.length===1)n.push(U.t("sch_desc_onDate",a[0]));else if(a.length===31)n.push(U.t("sch_desc_onEveryDate"));else if(a.length){const i=a.pop();n.push(U.t("sch_desc_onDates",a.join(", "),i))}else return U.t("sch_desc_never")}else n.push(U.t("sch_desc_onEveryDate"));if(r.period.months===1)n.push(U.t("sch_desc_everyMonth"));else if(typeof r.period.months=="number")n.push(U.t("sch_desc_everyNMonths",r.period.months.toString()));else{const i=JSON.parse(r.period.months).map(l=>U.t(yp[l-1]));if(!i.length)return U.t("sch_desc_never");if(i.length===1)n.push(U.t("sch_desc_onMonth",i[0]));else if(i.length===12)n.push(U.t("sch_desc_everyMonth"));else{const l=i.pop();n.push(U.t("sch_desc_onMonths",i.join(", "),l))}}}else r.period.years&&(r.period.years===1?n.push(U.t("sch_desc_everyYear")):n.push(U.t("sch_desc_everyNYears",r.period.years.toString())),n.push(U.t("sch_desc_onDate",r.period.yearDate.toString(),r.period.yearMonth?U.t(yp[r.period.yearMonth-1]):U.t("sch_desc_everyMonth"))));if(r.time.exactTime)Ol.includes(r.time.start)?n.push(U.t("sch_desc_atTime",U.t(`sch_astro_${r.time.start}`))):n.push(U.t("sch_desc_atTime",r.time.start));else{r.time.mode===Dv.minutes?r.time.interval===1?n.push(U.t("sch_desc_everyMinute")):n.push(U.t("sch_desc_everyNMinutes",r.time.interval.toString())):r.time.interval===1?n.push(U.t("sch_desc_everyHour")):n.push(U.t("sch_desc_everyNHours",r.time.interval.toString()));const a=Ol.indexOf(r.time.start)!==-1?U.t(`sch_astro_${r.time.start}`):r.time.start,i=Ol.indexOf(r.time.end)!==-1?U.t(`sch_astro_${r.time.end}`):r.time.end;(a!=="00:00"||i!=="24:00"&&i!=="23:59")&&n.push(U.t("sch_desc_intervalFromTo",a,i))}return r.period.once||(o.getTime()>Date.now()&&r.valid.to?n.push(U.t("sch_desc_validFromTo",r.valid.from,r.valid.to)):o.getTime()>Date.now()?n.push(U.t("sch_desc_validFrom",r.valid.from)):r.valid.to&&n.push(U.t("sch_desc_validTo",r.valid.to))),n.join(" ")}getTimePeriodElements(){const r=this.state.schedule;let n=!1,o=!1,a=!1,i=!0;return r.time.start==="00:00"&&r.time.end==="24:00"?(n=!0,i=!1):r.time.start==="sunrise"?(o=!0,i=!1):r.time.start==="sunset"&&(a=!0,i=!1),y.createElement("div",{key:"timePeriod",style:de.rowDiv},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!r.time.exactTime,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.exactTime=!1,this.onChange(l)}}),label:U.t("sch_intervalTime")})),y.createElement("div",{style:de.settingsDiv},y.createElement("div",{style:de.settingsDiv},!r.time.exactTime&&y.createElement("div",null,y.createElement("div",null,y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!i,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="23:59",this.onChange(l)}}),label:i?"":U.t("sch_fromTo")}),i&&[y.createElement(Fr,{variant:"standard",style:{...de.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:l=>{const u=JSON.parse(JSON.stringify(this.state.schedule));u.time.start=l.target.value,this.onChange(u)},slotProps:{inputLabel:{shrink:!0}},label:U.t("sch_from"),margin:"normal"}),y.createElement(Fr,{variant:"standard",style:de.inputTime,key:"exactTimeTo",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:l=>{const u=JSON.parse(JSON.stringify(this.state.schedule));u.time.end=l.target.value,this.onChange(u)},slotProps:{inputLabel:{shrink:!0}},label:U.t("sch_to"),margin:"normal"})])),!r.time.exactTime&&y.createElement("div",null,y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!n,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="24:00",this.onChange(l)}}),label:U.t("sch_wholeDay")})),!r.time.exactTime&&y.createElement("div",null,y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!o,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunrise",l.time.end="sunset",this.onChange(l)}}),label:U.t("sch_astroDay")})),!r.time.exactTime&&y.createElement("div",null,y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!a,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunset",l.time.end="sunrise",this.onChange(l)}}),label:U.t("sch_astroNight")}))),!r.time.exactTime&&this.getPeriodSettingsMinutes(i)))}getTimeExactElements(){const r=Ol.includes(this.state.schedule.time.start);return y.createElement("div",{key:"timeExact",style:de.rowDiv},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.exactTime=!0,this.onChange(n)}}),label:U.t("sch_exactTime")})),this.state.schedule.time.exactTime&&y.createElement(wo,{variant:"standard",value:r?this.state.schedule.time.start:"00:00",onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.start=n.target.value,this.onChange(o)}},y.createElement(fr,{key:"specific",value:"00:00"},U.t("sch_specificTime")),Ol.map(n=>y.createElement(fr,{key:n,value:n},U.t(`sch_astro_${n}`)))),this.state.schedule.time.exactTime&&!r&&y.createElement("div",{style:de.settingsDiv},y.createElement(Fr,{variant:"standard",style:de.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.start=n.target.value,this.onChange(o)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return y.createElement("hr",{style:de.hr})}getPeriodModes(){const r=this.state.schedule,n=!r.period.dows&&!r.period.months&&!r.period.dates&&!r.period.years&&!r.period.days&&!r.period.weeks;return n&&!r.period.once&&(r.period.once=Tr.now2string(!0)),[y.createElement("div",{key:"once",style:{...de.rowDiv,...de.rowOnce}},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!n,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.once=o.period.once||Tr.now2string(!0),o.period.dows="",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,this.onChange(o)}}),label:U.t("sch_periodOnce")})),n&&y.createElement("div",{style:de.settingsDiv},y.createElement(Fr,{variant:"standard",style:de.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:Mv(r.period.once),onChange:o=>{this.timerOnce&&clearTimeout(this.timerOnce),this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(a=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const i=JSON.parse(JSON.stringify(this.state.schedule)),l=Tr.string2date(a);l.toString()!=="Invalid Date"&&(i.period.once=`${qo(l.getDate())}.${qo(l.getMonth()+1)}.${l.getFullYear()}`,this.onChange(i))},1500,o.target.value)},slotProps:{inputLabel:{shrink:!0}},label:U.t("sch_at"),margin:"normal"}))),y.createElement(wt,{component:"div",key:"days",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowDays)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!r.period.days,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=1,o.period.dows="",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodDaily")})),y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsDaily(),r.period.days?this.getPeriodSettingsWeekdays():null)),y.createElement(wt,{component:"div",key:"weeks",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowDows)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!r.period.weeks,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=r.period.weeks?0:1,o.period.dows=r.period.dows||"[0]",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodWeekly")})),y.createElement(wt,{component:"div",style:de.settingsDiv},y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsWeekly()),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,de.settingsDiv,de.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),y.createElement(wt,{component:"div",key:"months",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowMonths)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!r.period.months,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=1,o.period.dows="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodMonthly")})),y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsMonthly(),r.period.months?y.createElement(wt,null,y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,de.settingsDiv,de.rowMonthsDates)},y.createElement(gt,{control:y.createElement(tn,{style:de.inputRadio,checked:!!r.period.dates,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=o.period.months||1;const a=[];for(let i=1;i<=31;i++)a.push(i);o.period.dates=o.period.dates||JSON.stringify(a),o.period.dows="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodDates")})),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,de.settingsDiv,de.rowMonthsDates)},this.getPeriodSettingsDates())):null)),y.createElement(wt,{component:"div",key:"years",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowYears)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:!!r.period.years,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=1,o.period.yearDate=1,o.period.yearMonth=1,o.period.dows="",o.period.months=0,o.period.dates="",o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodYearly")})),y.createElement("div",{style:de.settingsDiv},y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsYearly()),!!r.period.years&&y.createElement("div",{style:de.settingsDiv},y.createElement("span",null,U.t("sch_on")),y.createElement(mo,{key:"input",value:this.state.schedule.period.yearDate,style:de.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearDate=parseInt(o.target.value,10),a.period.yearDate<1&&(a.period.yearDate=31),a.period.yearDate>31&&(a.period.yearDate=1),this.onChange(a)}}),y.createElement(wo,{variant:"standard",value:r.period.yearMonth,onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearMonth=o.target.value,this.onChange(a)}},y.createElement(fr,{key:"every",value:0},U.t("sch_yearEveryMonth")),yp.map((o,a)=>y.createElement(fr,{key:o,value:a+1},U.t(o)))))))]}getPeriodSettingsMinutes(r){return y.createElement("div",{style:{display:"inline-block",marginTop:r?15:"inherit"}},y.createElement("label",{style:{marginLeft:4,marginRight:4}},U.t("sch_every")),y.createElement(mo,{value:this.state.schedule.time.interval,style:{...de.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.interval=parseInt(n.target.value,10),this.onChange(o)}}),y.createElement(wo,{variant:"standard",value:this.state.schedule.time.mode,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.mode=n.target.value,this.onChange(o)}},y.createElement(fr,{value:Dv.minutes},U.t("sch_periodMinutes")),y.createElement(fr,{value:Dv.hours},U.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const r=this.state.schedule,n=r.period.dows&&r.period.dows!=="[1, 2, 3, 4, 5]"&&r.period.dows!=="[0, 6]";return[y.createElement("div",{key:"workdays"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[1, 2, 3, 4, 5]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:U.t("sch_periodWorkdays")})),y.createElement("div",{key:"weekend"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.dows==="[0, 6]",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[0, 6]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:U.t("sch_periodWeekend")})),y.createElement("div",{key:"specific",style:{verticalAlign:"top"}},y.createElement(gt,{style:{verticalAlign:"top"},control:y.createElement(zt,{style:de.inputRadio,checked:!!n,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[0, 1, 2, 3, 4, 5, 6]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:U.t("sch_periodWeekdays")}),n&&(r.period.days===1||r.period.weeks)&&y.createElement(l_,{row:!0,style:{...de.inputGroup,width:150}},[1,2,3,4,5,6,0].map(o=>y.createElement(gt,{key:`specific_${o}`,style:de.inputGroupElement,control:y.createElement(tn,{style:de.inputSmallCheck,checked:r.period.dows.includes(o.toString()),onChange:a=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(i.period.dows)}catch{l=[]}a.target.checked&&!l.includes(o)?l.push(o):!a.target.checked&&l.includes(o)&&l.splice(l.indexOf(o),1),l.sort((u,f)=>u-f),i.period.dows=JSON.stringify(l),i.period.days&&(i.period.days=1),this.onChange(i)}}),label:U.t(Ov[o])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const r=this.state.schedule;return[y.createElement("div",{key:"every_day"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.days===1&&!r.period.dows,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=1,n.period.dows="",this.onChange(n)}}),label:U.t("sch_periodEveryDay")})),y.createElement("div",{key:"everyN_day"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.days>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=2,n.period.dows="",this.onChange(n)}}),label:U.t("sch_periodEvery")}),r.period.days>1&&[y.createElement(mo,{key:"input",value:this.state.schedule.period.days,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=parseInt(n.target.value,10),o.period.dows="",this.onChange(o)}}),y.createElement("span",{key:"span",style:{paddingRight:10}},U.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const r=this.state.schedule;return[y.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},y.createElement("div",null,y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.weeks===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=1,this.onChange(n)}}),label:U.t("sch_periodEveryWeek")})),y.createElement("div",null,y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.weeks>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=2,this.onChange(n)}}),label:U.t("sch_periodEvery")}),r.period.weeks>1&&[y.createElement(mo,{key:"input",value:this.state.schedule.period.weeks,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=parseInt(n.target.value,10),this.onChange(o)}}),y.createElement("span",{key:"text"},U.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const r=this.state.schedule,n=[];for(let a=1;a<=31;a++)n.push(a);const o=JSON.parse(r.period.dates);return y.createElement(l_,{row:!0,style:{...de.inputGroup,maxWidth:620}},y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:o.length===31,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),i=[];for(let l=1;l<=31;l++)i.push(l);a.period.dates=JSON.stringify(i),this.onChange(a)}}),label:U.t("sch_all")}),y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!o.length,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.dates="[]",this.onChange(a)}}),label:U.t("sch_no_one")}),o.length!==31&&!!o.length&&y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!1,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),i=[],l=JSON.parse(a.period.dates);for(let u=1;u<=31;u++)l.includes(u)||i.push(u);i.sort((u,f)=>u-f),a.period.dates=JSON.stringify(i),this.onChange(a)}}),label:U.t("sch_invert")}),y.createElement("div",null),n.map(a=>y.createElement(gt,{key:`date_${a}`,style:a?de.inputDateDay:{...de.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:y.createElement(tn,{style:de.inputDateDayCheck,checked:JSON.parse(r.period.dates).includes(a),onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let u;try{u=JSON.parse(l.period.dates)}catch{u=[]}i.target.checked&&!u.includes(a)?u.push(a):!i.target.checked&&u.includes(a)&&u.splice(u.indexOf(a),1),u.sort((f,h)=>f-h),l.period.dates=JSON.stringify(u),this.onChange(l)}}),label:a<10?[y.createElement("span",{key:"0",style:{opacity:0}},"0"),y.createElement("span",{key:"num"},a)]:a})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const r=this.state.schedule,n=typeof r.period.months=="string"?JSON.parse(r.period.months):[];return[y.createElement("div",{key:"every"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:typeof r.period.months=="number"&&r.period.months===1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=1,this.onChange(r)}}),label:U.t("sch_periodEveryMonth")})),y.createElement("div",{key:"everyN"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:typeof r.period.months=="number"&&r.period.months>1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=2,this.onChange(o)}}),label:U.t("sch_periodEvery")}),typeof r.period.months=="number"&&r.period.months>1&&[y.createElement(mo,{key:"input",value:r.period.months,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=parseInt(o.target.value,10),a.period.months<1&&(a.period.months=1),this.onChange(a)}}),y.createElement("span",{key:"text"},U.t("sch_periodMonth"))]),y.createElement("div",{key:"specific",style:{verticalAlign:"top"}},y.createElement(gt,{style:{verticalAlign:"top"},control:y.createElement(zt,{style:de.inputRadio,checked:typeof r.period.months=="string",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(o)}}),label:U.t("sch_periodSpecificMonths")}),typeof r.period.months=="string"&&y.createElement(l_,{row:!0,style:de.inputGroup},y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:n.length===12,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[];for(let i=1;i<=12;i++)a.push(i);o.period.months=JSON.stringify(a),this.onChange(o)}}),label:U.t("sch_all")}),y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!n.length,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months="[]",this.onChange(o)}}),label:U.t("sch_no_one")}),n.length!==12&&!!n.length&&y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!1,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[],i=JSON.parse(o.period.months);for(let l=1;l<=12;l++)i.includes(l)||a.push(l);a.sort((l,u)=>l-u),o.period.months=JSON.stringify(a),this.onChange(o)}}),label:U.t("sch_invert")}),y.createElement("div",null),yp.map((o,a)=>y.createElement(gt,{key:`month_${a}`,style:de.inputGroupElement,control:y.createElement(tn,{style:de.inputSmallCheck,checked:typeof r.period.months=="string"?JSON.parse(r.period.months).includes(a+1):r.period.months===a,onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let u;try{u=JSON.parse(l.period.months)}catch{u=[]}i.target.checked&&!u.includes(a+1)?u.push(a+1):!i.target.checked&&u.includes(a+1)&&u.splice(u.indexOf(a+1),1),u.sort((f,h)=>f-h),l.period.months=JSON.stringify(u),this.onChange(l)}}),label:U.t(o)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const r=this.state.schedule;return[y.createElement("div",{key:"year"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.years===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=1,this.onChange(n)}}),label:U.t("sch_periodEveryYear")})),y.createElement("div",{key:"every"},y.createElement(gt,{control:y.createElement(zt,{style:de.inputRadio,checked:r.period.years>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=2,this.onChange(n)}}),label:U.t("sch_periodEvery")}),r.period.years>1&&[y.createElement(mo,{key:"input",value:this.state.schedule.period.years,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=parseInt(n.target.value,10),o.period.years<1&&(o.period.years=1),this.onChange(o)}}),y.createElement("span",{key:"text"},U.t("sch_periodYear"))])]}static now2string(r){const n=new Date;return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),r&&(n.setDate(n.getDate()+2),n.setMilliseconds(n.getMilliseconds()-1)),`${qo(n.getDate())}.${qo(n.getMonth()+1)}.${qo(n.getFullYear())}`}static string2date(r){let n=r.split(".");return n.length===1?(n=r.split("-"),new Date(parseInt(n[0],10),parseInt(n[1],10)-1,parseInt(n[2],10))):new Date(parseInt(n[2],10),parseInt(n[1],10)-1,parseInt(n[0],10))}getValidSettings(){const r=this.state.schedule;return y.createElement("div",{style:de.rowDiv},y.createElement("div",{style:{...de.modeDiv,verticalAlign:"middle"}},y.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},U.t("sch_valid")),y.createElement("span",null,U.t("sch_validFrom"))),y.createElement("div",{style:de.settingsDiv},y.createElement(Fr,{variant:"standard",style:{...de.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:Mv(r.valid.from),type:"date",onChange:n=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(o=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),i=Tr.string2date(o);i.toString()!=="Invalid Date"&&(a.valid.from=`${qo(i.getDate())}.${qo(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),y.createElement(gt,{control:y.createElement(tn,{style:de.inputRadio,checked:!!r.valid.to,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.valid.to=n.valid.to?"":Tr.now2string(!0),this.onChange(n)}}),label:U.t("sch_validTo")}),!!r.valid.to&&y.createElement(Fr,{variant:"standard",inputRef:this.refTo,style:{...de.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:Mv(r.valid.to),onChange:n=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(o=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),i=Tr.string2date(o);i.toString()!=="Invalid Date"&&(a.valid.to=`${qo(i.getDate())}.${qo(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return y.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},y.createElement("div",null,this.state.desc),y.createElement("div",{style:de.scrollWindow},y.createElement("h5",null,U.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),Tr.getDivider(),y.createElement("h5",null,U.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&Tr.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}function Eee({themeName:t,toggleTheme:e,t:r,className:n,style:o,size:a}){return y.createElement("div",{className:n||void 0,style:o||void 0},y.createElement(Op,{title:r("ra_Change color theme"),slotProps:{popper:{sx:{pointerEvents:"none"}}}},y.createElement(nr,{onClick:()=>e(),size:a||"medium"},t==="dark"&&y.createElement(KU,{className:n}),t==="blue"&&y.createElement(ZU,{className:n}),t==="colored"&&y.createElement(Wb,{className:n}),t!=="dark"&&t!=="blue"&&t!=="colored"&&y.createElement(QU,{className:n}))))}/*! +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jQ(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function LQ(t){if(Array.isArray(t))return P0(t)}function $v(t,e){return BQ(t)||zQ(t,e)||iP(t,e)||FQ()}function FQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iP(t,e){if(t){if(typeof t=="string")return P0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P0(t,e)}}function P0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function WQ(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}var Qf=$.forwardRef(function(t,e){var r=t.children,n=nf(t,MQ),o=UQ(n),a=o.open,i=nf(o,NQ);return $.useImperativeHandle(e,function(){return{open:a}},[a]),y.createElement($.Fragment,null,r(Zt(Zt({},i),{},{open:a})))});Qf.displayName="Dropzone";var cP={disabled:!1,getFilesFromEvent:ZZ,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};Qf.defaultProps=cP;Qf.propTypes={children:se.func,accept:se.objectOf(se.arrayOf(se.string)),multiple:se.bool,preventDropOnDocument:se.bool,noClick:se.bool,noKeyboard:se.bool,noDrag:se.bool,noDragEventsBubbling:se.bool,minSize:se.number,maxSize:se.number,maxFiles:se.number,disabled:se.bool,getFilesFromEvent:se.func,onFileDialogCancel:se.func,onFileDialogOpen:se.func,useFsAccessApi:se.bool,autoFocus:se.bool,onDragEnter:se.func,onDragLeave:se.func,onDragOver:se.func,onDrop:se.func,onDropAccepted:se.func,onDropRejected:se.func,onError:se.func,validator:se.func};var A0={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function UQ(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Zt(Zt({},cP),t),r=e.accept,n=e.disabled,o=e.getFilesFromEvent,a=e.maxSize,i=e.minSize,l=e.multiple,u=e.maxFiles,f=e.onDragEnter,h=e.onDragLeave,d=e.onDragOver,_=e.onDrop,g=e.onDropAccepted,b=e.onDropRejected,w=e.onFileDialogCancel,S=e.onFileDialogOpen,k=e.useFsAccessApi,D=e.autoFocus,C=e.preventDropOnDocument,O=e.noClick,M=e.noKeyboard,T=e.noDrag,P=e.noDragEventsBubbling,j=e.onError,F=e.validator,E=$.useMemo(function(){return TQ(r)},[r]),L=$.useMemo(function(){return EQ(r)},[r]),G=$.useMemo(function(){return typeof S=="function"?S:fO},[S]),B=$.useMemo(function(){return typeof w=="function"?w:fO},[w]),z=$.useRef(null),H=$.useRef(null),K=$.useReducer(HQ,A0),ee=$v(K,2),Y=ee[0],X=ee[1],re=Y.isFocused,I=Y.isFileDialogActive,Q=$.useRef(typeof window<"u"&&window.isSecureContext&&k&&$Q()),me=function(){!Q.current&&I&&setTimeout(function(){if(H.current){var ne=H.current.files;ne.length||(X({type:"closeDialog"}),B())}},300)};$.useEffect(function(){return window.addEventListener("focus",me,!1),function(){window.removeEventListener("focus",me,!1)}},[H,I,B,Q]);var pe=$.useRef([]),ge=function(ne){z.current&&z.current.contains(ne.target)||(ne.preventDefault(),pe.current=[])};$.useEffect(function(){return C&&(document.addEventListener("dragover",dO,!1),document.addEventListener("drop",ge,!1)),function(){C&&(document.removeEventListener("dragover",dO),document.removeEventListener("drop",ge))}},[z,C]),$.useEffect(function(){return!n&&D&&z.current&&z.current.focus(),function(){}},[z,D,n]);var Ce=$.useCallback(function(q){j?j(q):console.error(q)},[j]),Re=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q),pe.current=[].concat(AQ(pe.current),[q.target]),hp(q)&&Promise.resolve(o(q)).then(function(ne){if(!(rf(q)&&!P)){var ye=ne.length,xe=ye>0&&xQ({files:ne,accept:E,minSize:i,maxSize:a,multiple:l,maxFiles:u,validator:F}),ke=ye>0&&!xe;X({isDragAccept:xe,isDragReject:ke,isDragActive:!0,type:"setDraggedFiles"}),f&&f(q)}}).catch(function(ne){return Ce(ne)})},[o,f,Ce,P,E,i,a,l,u,F]),Te=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q);var ne=hp(q);if(ne&&q.dataTransfer)try{q.dataTransfer.dropEffect="copy"}catch{}return ne&&d&&d(q),!1},[d,P]),Pe=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q);var ne=pe.current.filter(function(xe){return z.current&&z.current.contains(xe)}),ye=ne.indexOf(q.target);ye!==-1&&ne.splice(ye,1),pe.current=ne,!(ne.length>0)&&(X({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),hp(q)&&h&&h(q))},[z,h,P]),Oe=$.useCallback(function(q,ne){var ye=[],xe=[];q.forEach(function(ke){var ve=nP(ke,E),Ve=$v(ve,2),$e=Ve[0],Ye=Ve[1],lt=oP(ke,i,a),ft=$v(lt,2),ae=ft[0],_e=ft[1],Fe=F?F(ke):null;if($e&&ae&&!Fe)ye.push(ke);else{var Ke=[Ye,_e];Fe&&(Ke=Ke.concat(Fe)),xe.push({file:ke,errors:Ke.filter(function(_t){return _t})})}}),(!l&&ye.length>1||l&&u>=1&&ye.length>u)&&(ye.forEach(function(ke){xe.push({file:ke,errors:[wQ]})}),ye.splice(0)),X({acceptedFiles:ye,fileRejections:xe,isDragReject:xe.length>0,type:"setFiles"}),_&&_(ye,xe,ne),xe.length>0&&b&&b(xe,ne),ye.length>0&&g&&g(ye,ne)},[X,l,E,i,a,u,_,g,b,F]),ze=$.useCallback(function(q){q.preventDefault(),q.persist(),rt(q),pe.current=[],hp(q)&&Promise.resolve(o(q)).then(function(ne){rf(q)&&!P||Oe(ne,q)}).catch(function(ne){return Ce(ne)}),X({type:"reset"})},[o,Oe,Ce,P]),Me=$.useCallback(function(){if(Q.current){X({type:"openDialog"}),G();var q={multiple:l,types:L};window.showOpenFilePicker(q).then(function(ne){return o(ne)}).then(function(ne){Oe(ne,null),X({type:"closeDialog"})}).catch(function(ne){OQ(ne)?(B(ne),X({type:"closeDialog"})):DQ(ne)?(Q.current=!1,H.current?(H.current.value=null,H.current.click()):Ce(new 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 was provided."))):Ce(ne)});return}H.current&&(X({type:"openDialog"}),G(),H.current.value=null,H.current.click())},[X,G,B,k,Oe,Ce,L,l]),Be=$.useCallback(function(q){!z.current||!z.current.isEqualNode(q.target)||(q.key===" "||q.key==="Enter"||q.keyCode===32||q.keyCode===13)&&(q.preventDefault(),Me())},[z,Me]),We=$.useCallback(function(){X({type:"focus"})},[]),De=$.useCallback(function(){X({type:"blur"})},[]),pt=$.useCallback(function(){O||(CQ()?setTimeout(Me,0):Me())},[O,Me]),ce=function(ne){return n?null:ne},qe=function(ne){return M?null:ce(ne)},st=function(ne){return T?null:ce(ne)},rt=function(ne){P&&ne.stopPropagation()},Je=$.useMemo(function(){return function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne=q.refKey,ye=ne===void 0?"ref":ne,xe=q.role,ke=q.onKeyDown,ve=q.onFocus,Ve=q.onBlur,$e=q.onClick,Ye=q.onDragEnter,lt=q.onDragOver,ft=q.onDragLeave,ae=q.onDrop,_e=nf(q,PQ);return Zt(Zt(R0({onKeyDown:qe(po(ke,Be)),onFocus:qe(po(ve,We)),onBlur:qe(po(Ve,De)),onClick:ce(po($e,pt)),onDragEnter:st(po(Ye,Re)),onDragOver:st(po(lt,Te)),onDragLeave:st(po(ft,Pe)),onDrop:st(po(ae,ze)),role:typeof xe=="string"&&xe!==""?xe:"presentation"},ye,z),!n&&!M?{tabIndex:0}:{}),_e)}},[z,Be,We,De,pt,Re,Te,Pe,ze,M,T,n]),Se=$.useCallback(function(q){q.stopPropagation()},[]),ut=$.useMemo(function(){return function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne=q.refKey,ye=ne===void 0?"ref":ne,xe=q.onChange,ke=q.onClick,ve=nf(q,RQ),Ve=R0({accept:E,multiple:l,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:ce(po(xe,ze)),onClick:ce(po(ke,Se)),tabIndex:-1},ye,H);return Zt(Zt({},Ve),ve)}},[H,r,l,ze,n]);return Zt(Zt({},Y),{},{isFocused:re&&!n,getRootProps:Je,getInputProps:ut,rootRef:z,inputRef:H,open:ce(Me)})}function HQ(t,e){switch(e.type){case"focus":return Zt(Zt({},t),{},{isFocused:!0});case"blur":return Zt(Zt({},t),{},{isFocused:!1});case"openDialog":return Zt(Zt({},A0),{},{isFileDialogActive:!0});case"closeDialog":return Zt(Zt({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return Zt(Zt({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return Zt(Zt({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return Zt({},A0);default:return t}}function fO(){}function qQ(){const t=ta();return[...t.breakpoints.keys].reverse().reduce((r,n)=>{const o=VB(t.breakpoints.up(n));return!r&&o?n:r},null)||"xs"}function eh(){return t=>function(r){const n=qQ();return y.createElement(t,{...r,width:n})}}function VQ(t){const[e,r]=y.useState(t.input||t.value||""),[n,o]=y.useState("");return y.createElement(ra,{open:!0,onClose:()=>t.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:t.fullWidth!==void 0?t.fullWidth:!1},y.createElement(aa,{id:"form-dialog-title"},t.titleText),y.createElement(oa,null,y.createElement(If,null,t.promptText),y.createElement(zr,{variant:"standard",autoFocus:!0,margin:"dense",error:!!n,helperText:n===!0||!n?"":n,value:e,label:t.labelText||"",type:t.type||"text",onKeyUp:a=>a.code==="Enter"&&e&&t.onClose(e),onChange:a=>{let i="";t.verify&&(i=!t.verify(a.target.value)),t.rule?r(t.rule(a.target.value)):r(a.target.value),o(i)},fullWidth:!0})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",disabled:!e||!!n,onClick:()=>t.onClose(e),color:"primary",startIcon:y.createElement(Hs,null)},t.applyText||U.t("ra_Ok")),y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>t.onClose(null),startIcon:y.createElement(Rs,null)},t.cancelText||U.t("ra_Cancel"))))}const XQ=eh()(VQ),GQ=t=>y.createElement("svg",{onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 486 486",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:t.className,style:t.style},y.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"}),y.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"})),I0=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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"})),JQ=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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"})),Pw=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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 YQ=t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,r)=>{const[n,o]=r.split(/ ?: ?/).map((a,i)=>i===0?a.replace(/\s+/g,""):a.trim());if(n&&o){const a=n.replace(/(\w)-(\w)/g,(l,u,f)=>`${u}${f.toUpperCase()}`);let i=o.trim();Number.isNaN(Number(o))||(i=Number(o)),e[n.startsWith("-")?n:a]=i}return e},{});function KQ(t=6){const e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=t;n>0;--n)r+=e[Math.round(Math.random()*(e.length-1))];return r}var ZQ=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],hO={"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 QQ(t,e){var a;const{key:r,level:n,...o}=e;switch(t.nodeType){case 1:return $.createElement(tee(t.nodeName),eee(t,r),mO(t.childNodes,n,o));case 3:{const i=((a=t.nodeValue)==null?void 0:a.toString())??"";if(!o.allowWhiteSpaces&&/^\s+$/.test(i)&&!/[\u00A0\u202F]/.test(i))return null;if(!t.parentNode)return i;const l=t.parentNode.nodeName.toLowerCase();return ZQ.includes(l)?(/\S/.test(i)&&console.warn(`A textNode is not allowed inside '${l}'. Your text "${i}" will be ignored`),null):i}case 8:return null;case 11:return mO(t.childNodes,n,e);default:return null}}function eee(t,e){const r={key:e};if(t instanceof Element){const n=t.getAttribute("class");n&&(r.className=n),[...t.attributes].forEach(o=>{switch(o.name){case"class":break;case"style":r[o.name]=YQ(o.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":r[hO[o.name]||o.name]=!0;break;default:r[hO[o.name]||o.name]=o.value}})}return r}function mO(t,e,r){const n=[...t].map((o,a)=>of(o,{...r,index:a,level:e+1})).filter(Boolean);return n.length?n:null}function tee(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}function of(t,e={}){if(!t||!(t instanceof Node))return null;const{actions:r=[],index:n=0,level:o=0,randomKey:a}=e;let i=t,l=`${o}-${n}`;const u=[];return a&&o===0&&(l=`${KQ()}-${l}`),Array.isArray(r)&&r.forEach(f=>{f.condition(i,l,o)&&(typeof f.pre=="function"&&(i=f.pre(i,l,o),i instanceof Node||(i=t)),typeof f.post=="function"&&u.push(f.post(i,l,o)))}),u.length?u:QQ(i,{key:l,level:o,...e})}function ree(t,e={}){if(!t||typeof t!="string")return null;const{includeAllNodes:r=!1,nodeOnly:n=!1,selector:o="body > *",type:a="text/html"}=e;try{const l=new DOMParser().parseFromString(t,a);if(r){const{childNodes:f}=l.body;return n?f:[...f].map(h=>of(h,e))}const u=l.querySelector(o)||l.body.childNodes[0];if(!(u instanceof Node))throw new TypeError("Error parsing input");return n?u:of(u,e)}catch{}return null}function lP(t,e={}){return typeof t=="string"?ree(t,e):t instanceof Node?of(t,e):null}var nee=Object.defineProperty,oee=(t,e,r)=>e in t?nee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mp=(t,e,r)=>oee(t,typeof e!="symbol"?e+"":e,r),_O="react-inlinesvg",gO=10,Mt={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function Mp(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function aee(){return iee()&&typeof window<"u"&&window!==null}async function uP(t,e){const r=await fetch(t,e),n=r.headers.get("content-type"),[o]=(n??"").split(/ ?; ?/);if(r.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(a=>o.includes(a)))throw new Error(`Content type isn't valid: ${o}`);return r.text()}function see(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}function iee(){if(!document)return!1;const t=document.createElement("div");t.innerHTML="";const e=t.firstChild;return!!e&&e.namespaceURI==="http://www.w3.org/2000/svg"}function cee(t){return t[Math.floor(Math.random()*t.length)]}function lee(t){const e="abcdefghijklmnopqrstuvwxyz",n=`${e}${e.toUpperCase()}1234567890`;let o="";for(let a=0;a{this.cacheApi=r}).catch(r=>{console.error(`Failed to open cache: ${r.message}`)}).finally(()=>{this.isReady=!0,this.subscribers.forEach(r=>r())}):this.isReady=!0}onReady(t){this.isReady?t():this.subscribers.push(t)}async get(t,e){var r;return await(this.cacheApi?this.fetchAndAddToPersistentCache(t,e):this.fetchAndAddToInternalCache(t,e)),((r=this.cacheStore.get(t))==null?void 0:r.content)??""}set(t,e){this.cacheStore.set(t,e)}isCached(t){var e;return((e=this.cacheStore.get(t))==null?void 0:e.status)===Mt.LOADED}async fetchAndAddToInternalCache(t,e){const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===Mt.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Mt.IDLE}),await this.fetchAndAddToInternalCache(t,e)});return}if(!(r!=null&&r.content)){this.cacheStore.set(t,{content:"",status:Mt.LOADING});try{const n=await uP(t,e);this.cacheStore.set(t,{content:n,status:Mt.LOADED})}catch(n){throw this.cacheStore.set(t,{content:"",status:Mt.FAILED}),n}}}async fetchAndAddToPersistentCache(t,e){var o,a,i;const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===Mt.LOADED)return;if((r==null?void 0:r.status)===Mt.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Mt.IDLE}),await this.fetchAndAddToPersistentCache(t,e)});return}this.cacheStore.set(t,{content:"",status:Mt.LOADING});const n=await((o=this.cacheApi)==null?void 0:o.match(t));if(n){const l=await n.text();this.cacheStore.set(t,{content:l,status:Mt.LOADED});return}try{await((a=this.cacheApi)==null?void 0:a.add(new Request(t,e)));const l=await((i=this.cacheApi)==null?void 0:i.match(t)),u=await(l==null?void 0:l.text())??"";this.cacheStore.set(t,{content:u,status:Mt.LOADED})}catch(l){throw this.cacheStore.set(t,{content:"",status:Mt.FAILED}),l}}async handleLoading(t,e){var n;let r=0;for(;((n=this.cacheStore.get(t))==null?void 0:n.status)===Mt.LOADING&&r=gO&&await e()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([t,e])=>({[t]:e}))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){const t=await this.cacheApi.keys();for(const e of t)await this.cacheApi.delete(e)}this.cacheStore.clear()}};function yO(t){const e=$.useRef();return $.useEffect(()=>{e.current=t}),e.current}function pee(t){const{baseURL:e,content:r,description:n,handleError:o,hash:a,preProcessor:i,title:l,uniquifyIDs:u=!1}=t;try{const f=fee(r,i),h=lP(f,{nodeOnly:!0});if(!h||!(h instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const d=dP(h,{baseURL:e,hash:a,uniquifyIDs:u});if(n){const _=d.querySelector("desc");_!=null&&_.parentNode&&_.parentNode.removeChild(_);const g=document.createElementNS("http://www.w3.org/2000/svg","desc");g.innerHTML=n,d.prepend(g)}if(typeof l<"u"){const _=d.querySelector("title");if(_!=null&&_.parentNode&&_.parentNode.removeChild(_),l){const g=document.createElementNS("http://www.w3.org/2000/svg","title");g.innerHTML=l,d.prepend(g)}}return d}catch(f){return o(f)}}function fee(t,e){return e?e(t):t}function dP(t,e){const{baseURL:r="",hash:n,uniquifyIDs:o}=e,a=["id","href","xlink:href","xlink:role","xlink:arcrole"],i=["href","xlink:href"],l=(u,f)=>i.includes(u)&&(f?!f.includes("#"):!1);return o&&[...t.children].forEach(u=>{var f;if((f=u.attributes)!=null&&f.length){const h=Object.values(u.attributes).map(d=>{const _=d,g=/url\((.*?)\)/.exec(d.value);return g!=null&&g[1]&&(_.value=d.value.replace(g[0],`url(${r}${g[1]}__${n})`)),_});a.forEach(d=>{const _=h.find(g=>g.name===d);_&&!l(d,_.value)&&(_.value=`${_.value}__${n}`)})}return u.children.length?dP(u,e):u}),t}var ac;function hee(t){const{cacheRequests:e=!0,children:r=null,description:n,fetchOptions:o,innerRef:a,loader:i=null,onError:l,onLoad:u,src:f,title:h,uniqueHash:d}=t,[_,g]=$.useReducer((z,H)=>({...z,...H}),{content:"",element:null,isCached:e&&ac.isCached(t.src),status:Mt.IDLE}),{content:b,element:w,isCached:S,status:k}=_,D=yO(t),C=yO(_),O=$.useRef(d??lee(8)),M=$.useRef(!1),T=$.useRef(!1),P=$.useCallback(z=>{M.current&&(g({status:z.message==="Browser does not support SVG"?Mt.UNSUPPORTED:Mt.FAILED}),l==null||l(z))},[l]),j=$.useCallback((z,H=!1)=>{M.current&&g({content:z,isCached:H,status:Mt.LOADED})},[]),F=$.useCallback(async()=>{const z=await uP(f,o);j(z)},[o,j,f]),E=$.useCallback(()=>{try{const z=pee({...t,handleError:P,hash:O.current,content:b}),H=lP(z);if(!H||!$.isValidElement(H))throw new Error("Could not convert the src to a React element");g({element:H,status:Mt.READY})}catch(z){P(new Error(z.message))}},[b,P,t]),L=$.useCallback(async()=>{const z=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(f);let H;if(z?H=z[1]?window.atob(z[2]):decodeURIComponent(z[2]):f.includes("{M.current&&g({content:"",element:null,isCached:!1,status:Mt.LOADING})},[]);$.useEffect(()=>{if(M.current=!0,!Mp()||T.current)return()=>{};try{if(k===Mt.IDLE){if(!aee())throw new Error("Browser does not support SVG");if(!f)throw new Error("Missing src");G()}}catch(z){P(z)}return T.current=!0,()=>{M.current=!1}},[]),$.useEffect(()=>{if(Mp()&&D)if(D.src!==f){if(!f){P(new Error("Missing src"));return}G()}else(D.title!==h||D.description!==n)&&E()},[n,E,P,G,D,f,h]),$.useEffect(()=>{C&&(C.status!==Mt.LOADING&&k===Mt.LOADING&&L(),C.status!==Mt.LOADED&&k===Mt.LOADED&&E(),C.status!==Mt.READY&&k===Mt.READY&&(u==null||u(f,S)))},[L,E,S,u,C,f,k]);const B=uee(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return Mp()?w?$.cloneElement(w,{ref:a,...B}):[Mt.UNSUPPORTED,Mt.FAILED].includes(k)?r:i:i}function mee(t){ac||(ac=new dee);const{loader:e}=t,r=$.useRef(!1),[n,o]=$.useState(ac.isReady);return $.useEffect(()=>{r.current||(ac.onReady(()=>{o(!0)}),r.current=!0)},[]),n?y.createElement(hee,{...t}):e}const _ee=window.location.hostname.endsWith("iobroker.in"),vO=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);function Rw(t){var e,r,n;if(t.src){if(typeof t.src=="string"){if(t.src.length<3)return t.sx?y.createElement(wt,{component:"span",sx:t.sx,title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:ht.clsx(t.className,"iconOwn")},t.src):y.createElement("span",{title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:ht.clsx(t.className,"iconOwn")},t.src);if(t.src.startsWith("data:image/svg"))return y.createElement(mee,{title:t.title||void 0,src:t.src,className:ht.clsx(t.className,"iconOwn"),width:((e=t.style)==null?void 0:e.width)||28,height:((r=t.style)==null?void 0:r.height)||((n=t.style)==null?void 0:n.width)||28,style:t.style||void 0});if(_ee&&!t.src.startsWith("http://")&&!t.src.startsWith("https://")){let o=t.src;return o.startsWith("./")?o=vO+o.substring(2):o.startsWith("/")||(o=vO+o),t.sx?y.createElement(wt,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${o}`,alt:t.alt||void 0,ref:t.ref,onError:a=>t.onError&&t.onError(a)}):y.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${o}`,alt:t.alt||void 0,ref:t.ref,onError:a=>t.onError&&t.onError(a)})}return t.sx?y.createElement(wt,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError}):y.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:ht.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError})}return t.src}return null}const us={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"}},Lr={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp","ico"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function bO(t,e){let r="";const n=new Uint8Array((t==null?void 0:t.data)||t),o=n.byteLength;for(let a=0;a{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,o===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))});const n=ht.getFileExtension(r.href);this.state={text:null,code:null,ext:n,editing:!1,editingValue:null,copyPossible:!!n&&(Lr.code.includes(n)||Lr.txt.includes(n)),forceUpdate:Date.now(),changed:!1,imgError:!1}}readFile(){if(this.props.href){const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.socket.readFile(n,o).then(a=>{let i="";a.file!==void 0&&(i=a.file);const l={copyPossible:this.state.copyPossible,ext:this.state.ext};if(i.type==="Buffer")if(o.toLowerCase().endsWith(".json5")){l.ext="json5",l.copyPossible=!0;try{i=atob(bO(i,!0))}catch{console.error("Cannot convert base64 to string"),i=""}}else{const u=ht.detectMimeType(bO(i));u&&(l.ext=u,l.copyPossible=Lr.code.includes(u)||Lr.txt.includes(u))}l.copyPossible&&(l.ext&&Lr.txt.includes(l.ext)?(l.text=i,l.editingValue=i):l.ext&&Lr.code.includes(l.ext)&&(l.code=i,l.editingValue=i)),this.setState(l)}).catch(a=>window.alert(`Cannot read file: ${a}`))}}componentDidMount(){this.readFile();const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,o,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const r=this.props.href.split("/");r.splice(0,2);const n=r[0],o=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,o,this.onFileChanged).catch(a=>window.alert(`Cannot subscribe on file: ${a}`))}getEditorOrViewer(){return y.createElement(zr,{variant:"standard",style:us.textarea,multiline:!0,value:this.state.editingValue||this.state.code||this.state.text,slotProps:{htmlInput:{readOnly:!this.state.editing}}})}getContent(){return this.state.ext&&Lr.images.includes(this.state.ext)?this.state.imgError?y.createElement(Pw,{style:{...us.img,...this.props.getStyleBackgroundImage()}}):y.createElement(Rw,{onError:r=>{r.target.onerror=null,this.setState({imgError:!0})},style:{...us.img,...this.props.getStyleBackgroundImage()},src:`${this.props.href}?ts=${this.state.forceUpdate}`,alt:this.props.href}):this.state.ext&&Lr.audio.includes(this.state.ext)?y.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},y.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&Lr.video.includes(this.state.ext)?y.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},y.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},y.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 y.createElement(ra,{sx:{"&.MuiDialog-scrollPaper":us.dialog,"& .MuiDialog-paper":us.paper},scroll:"paper",open:!!this.props.href,onClose:()=>this.props.onClose(),fullWidth:!0,maxWidth:"xl","aria-labelledby":"ar_dialog_file_view_title"},y.createElement("div",{style:us.dialogTitle},y.createElement(aa,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&Lr.images.includes(this.state.ext)&&y.createElement("div",null,y.createElement(nr,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},y.createElement(Wb,null)))),y.createElement(oa,{style:us.content},this.getContent()),y.createElement(na,null,this.state.copyPossible?y.createElement(Qt,{color:"grey",onClick:r=>{r.stopPropagation(),r.preventDefault(),ht.copyToClipboard(this.state.text||this.state.code||"")},startIcon:y.createElement(VM,null)},this.props.t("Copy content")):null,this.state.editing?y.createElement(Qt,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:()=>this.onSave(),startIcon:y.createElement(S0,null)},this.props.t("Save")):null,y.createElement(Qt,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:y.createElement(Rs,null)},this.props.t("Close"))))}}const yee=eh()(gee),Ai=32,Ho=32,_p=120,wO=64,xO="Not found",gp={all:GM,images:iH,code:Ub,txt:aH,audio:GU,video:vH},Ne={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% - ${48*2+8}px)`,display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${wO}px`},itemTile:t=>({position:"relative",userSelect:"none",cursor:"pointer",height:_p,width:wO,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:t.palette.secondary.light,color:ht.invertColor(t.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:t=>({width:"100%",height:_p-32-16-8,display:"block",pl:1,color:t.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:t=>({position:"absolute",top:22,left:18,zIndex:1,color:(t.palette.mode==="dark","#FFF")}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:_p-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:_p-32-16-8,display:"block",objectFit:"contain"},itemSelected:t=>({background:t.palette.primary.main,color:ht.invertColor(t.palette.primary.main,!0)}),itemTable:t=>({userSelect:"none",cursor:"pointer",height:Ai,display:"inline-flex",lineHeight:`${Ai}px`,"&:hover":{background:t.palette.secondary.light,color:ht.invertColor(t.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:t=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:t.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:t=>({display:"inline-block",width:Ho,height:Ai,minWidth:Ho,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${Ho/2}px`,"&:hover":{backgroundColor:t.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:t.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:Ho,height:Ai,minWidth:Ho,padding:0},itemAclButtonTable:{width:Ho,height:Ai,minWidth:Ho,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:Ho,height:Ai,minWidth:Ho,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:t=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:t.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:t=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText,borderRadius:"4px 4px 0 0"}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:t=>({pl:"2px",pr:"2px",cursor:"pointer",color:"white","&:hover":{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText}}),pathDivBreadcrumbSelected:{color:"#FFF"},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:t=>({color:t.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},Oa="0_userdata.0";function Ii(t){const e=(t||"").split("/");return e.length&&e.pop(),e.join("/")}function Ev(t){const e=ht.getFileExtension(t);return!!(e!=null&&e.toLowerCase().match(/[a-z]+/)&&e.length<5)}const Tt="Table",Tv="Tile";function SO(t,e){return t.folder&&e.folder?t.name>e.name?1:t.namee.name?1:t.name{const a=`${r}/${n}`,i=a.lastIndexOf("/"),l=a.substring(0,i);console.log(`File changed ${a}[${o}]`),this.state.folders[l]&&(this._tempTimeout[l]&&clearTimeout(this._tempTimeout[l]),this._tempTimeout[l]=setTimeout(()=>{delete this._tempTimeout[l],this.browseFolder(l,null,!1,!0).then(u=>this.setState({folders:u})).catch(u=>console.error(`Cannot read folder: ${u.message}`))},300))});we(this,"setStateBackgroundImage",()=>{const r=["light","dark","colored","delete"];this.setState(({backgroundImage:n})=>n&&r.indexOf(n)!==-1&&r.length-1!==r.indexOf(n)?(this.localStorage.setItem("files.backgroundImage",r[r.indexOf(n)+1]),{backgroundImage:r[r.indexOf(n)+1]}):(this.localStorage.setItem("files.backgroundImage",r[0]),{backgroundImage:r[0]}))});we(this,"getStyleBackgroundImage",()=>{switch(this.state.backgroundImage){case"light":return Ne.backgroundImageLight;case"dark":return Ne.backgroundImageDark;case"colored":return Ne.backgroundImageColored;case"delete":return null;default:return null}});this.localStorage=window._localStorage||window.localStorage;const n=this.localStorage.getItem("files.expanded")||"[]";if(this.refFileDiv=y.createRef(),this.props.limitPath){const f=this.props.limitPath.split("/");this.limitToObjectID=f[0],this.limitToPath=f.length?f.length===1&&f[0]===""?null:f.join("/"):null,this.limitToPath&&this.limitToPath.endsWith("/")&&this.limitToPath.substring(0,this.limitToPath.length-1)}let o;try{o=JSON.parse(n),this.limitToPath&&(o=o.filter(f=>{var h;return f.startsWith(`${this.limitToPath}/`)||f===this.limitToPath||((h=this.limitToPath)==null?void 0:h.startsWith(`${f}/`))}))}catch{o=[]}let a;this.props.showViewTypeButton?a=this.localStorage.getItem("files.viewType")||Tt:a=Tt;let i=this.props.selected||this.localStorage.getItem("files.selected")||Oa,l;if(r.restrictToFolder){i=r.restrictToFolder,l=r.restrictToFolder;const f=r.restrictToFolder.split("/");o=[];let h="";for(let d=0;d{if(this.state.viewType===Tt&&!this.findItem(this.state.selected)){const n=this.state.selected.split("/");for(;n.length&&!this.findItem(n.join("/"));)n.pop();let o;n.length?o=n.join("/"):o=Oa,this.setState({selected:o,path:o,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){if(this.mounted){const r=document.getElementById(this.state.selected);r==null||r.scrollIntoView()}}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(r=>console.error(`Cannot load folders: ${r}`)),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(r=>r&&clearTimeout(r)),this._tempTimeout={}}browseFoldersCb(r,n,o){if(!(r!=null&&r.length))o(n);else{const a=r.shift();a?this.browseFolder(a,n).catch(i=>console.error(`Cannot read folder ${a}: ${i.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(r,n,o),0)}):setTimeout(()=>this.browseFoldersCb(r,n,o),0)}}browseFolders(r,n){let o;return n?o=n:(o={},Object.keys(this.state.folders).forEach(a=>o[a]=this.state.folders[a])),r!=null&&r.length?new Promise(a=>{this.browseFoldersCb(r,o,a)}):Promise.resolve(o)}readDirSerial(r,n){return new Promise((o,a)=>{this.browseList&&(this.browseList.push({resolve:o,reject:a,adapter:r,relPath:n}),this.browseListRunning||this.processBrowseList())})}processBrowseList(r=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.setState({queueLength:this.browseList.length}),this.browseList[0].processing=!0,this.props.socket.readDir(this.browseList[0].adapter,this.browseList[0].relPath).then(n=>{if(this.browseList){const o=this.browseList.shift();if(o){const a=o.resolve;o.resolve=null,o.reject=null,o.adapter=null,o.relPath=null,a&&a(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(n=>{if(this.browseList){const o=this.browseList.shift();if(o){const a=o.reject;o.resolve=null,o.reject=null,o.adapter=null,o.relPath=null,a&&a(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(r,n,o,a){let i;if(n?i=n:(i={},Object.keys(this.state.folders).forEach(_=>{i[_]=this.state.folders[_]})),i[r]&&!a)return o?Promise.resolve(i):new Promise((_,g)=>{Promise.all(i[r].filter(b=>b.folder).map(b=>this.browseFolder(b.id,i,!0).catch(()=>{}))).then(()=>_(i)).catch(b=>g(new Error(b)))});if(!r||r==="/"){try{let _=await this.props.socket.readMetaItems();const g=[];let b=null;if(this.state.restrictToFolder){const S=this.state.restrictToFolder.split("/")[0];_=_.filter(k=>k._id===S)}else this.state.expertMode||(_=_.filter(S=>!S._id.endsWith(".admin")));const w=_.findIndex(S=>S._id==="system.meta.uuid");if(w!==-1&&_.splice(w,1),_.forEach(S=>{if(this.limitToObjectID&&this.limitToObjectID!==S._id)return;const k={id:S._id,name:S._id,title:S.common&&S.common.name||S._id,meta:!0,from:S.from,ts:S.ts,color:S.common&&S.common.color,icon:S.common&&S.common.icon,folder:!0,acl:S.acl,level:0};k.id===Oa?b=k:g.push(k)}),g.sort((S,k)=>S.id>k.id?1:S.idS.folder).map(S=>this.browseFolder(S.id,i,!0).catch(()=>{}))).then(()=>i)}catch(_){const g=_;this.initialReadFinished&&window.alert(`Cannot read meta items: ${g.message}`),i[r||"/"]=[]}return i}const l=r.split("/"),u=l.length,f=l.shift(),h=l.join("/");let d;try{d=await this.readDirSerial(f||"",h)}catch(_){if(_==="Not exists"&&f==="0_userdata.0")d=[];else throw _}try{const _=[];if(d.forEach(g=>{var w;const b={id:`${r}/${g.file}`,ext:ht.getFileExtension(g.file),folder:g.isDir,name:g.file,size:(w=g.stats)==null?void 0:w.size,modified:g.modifiedAt,acl:g.acl,level:u};this.state.restrictToFolder?(b.folder&&(b.id.startsWith(`${this.state.restrictToFolder}/`)||b.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${b.id}/`))||b.id.startsWith(`${this.state.restrictToFolder}/`))&&_.push(b):this.limitToPath?(b.folder&&(b.id.startsWith(`${this.limitToPath}/`)||b.id===this.limitToPath||this.limitToPath.startsWith(`${b.id}/`))||b.id.startsWith(`${this.limitToPath}/`))&&_.push(b):_.push(b)}),_.sort(SO),i[r]=_,!o)return Promise.all(_.filter(g=>g.folder).map(g=>this.browseFolder(g.id,i,!0))).then(()=>i)}catch(_){const g=_;this.initialReadFinished&&window.alert(`Cannot read ${f}${h?`/${h}`:""}: ${g==null?void 0:g.message}`),i[r]=[]}return i}toggleFolder(r,n){n==null||n.stopPropagation();const o=[...this.state.expanded],a=o.indexOf(r.id);a===-1?(o.push(r.id),o.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(o)),r.temp?this.setState({expanded:o}):this.browseFolder(r.id).then(i=>this.setState({expanded:o,folders:i})).catch(i=>window.alert(i===xO?this.props.t('ra_Cannot find "%s"',r.id):this.props.t('ra_Cannot read "%s"',r.id)))):(o.splice(a,1),this.localStorage.setItem("files.expanded",JSON.stringify(o)),this.setState({expanded:o}))}changeFolder(r,n){var a;r==null||r.stopPropagation(),this.lastSelect=Date.now();let o=n||Ii(this.state.currentDir);if(o==="/"&&(o=""),this.state.viewType==="Tile"&&((a=this.refFileDiv.current)!=null&&a.scrollTop)&&(this.scrollPositions[this.state.currentDir]=this.refFileDiv.current.scrollTop),this.localStorage.setItem("files.currentDir",o),n&&r&&(r.altKey||r.shiftKey||r.ctrlKey||r.metaKey)){this.setState({selected:o});return}if(o&&!this.state.folders[o]){this.browseFolder(o).then(i=>this.setState({folders:i,path:o,currentDir:o,selected:o,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(i=>console.error(`Cannot read folder: ${i.message}`));return}this.setState({currentDir:o,selected:o,path:o,pathFocus:!1},()=>{if(this.props.onSelect&&this.props.onSelect(""),this.state.viewType==="Tile"&&this.scrollPositions[this.state.currentDir]){const i=this.scrollPositions[this.state.currentDir];delete this.scrollPositions[this.state.currentDir],this.refFileDiv.current&&(this.refFileDiv.current.scrollTop=i)}})}select(r,n,o){n&&n.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",r),this.setState({selected:r,path:r,pathFocus:!1},()=>{if(this.props.onSelect){const a=ht.getFileExtension(r);(!this.props.filterFiles||a&&this.props.filterFiles.includes(a))&&(!this.state.filterByType||a&&Lr[this.state.filterByType].includes(a))?this.props.onSelect(r,!1,!!this.state.folders[r]):this.props.onSelect("")}o&&o()})}getText(r){if(r)return typeof r=="object"?r[this.props.lang]||r.en||void 0:r}renderFolder(r,n){var f;if(this.state.filterEmpty&&!((f=this.state.folders[r.id])!=null&&f.length)&&r.id!==Oa&&!r.temp)return null;const o=n?JQ:I0,a=this.state.viewType===Tt?r.level*this.levelPadding:0,i=r.name===Oa,l=i||r.name==="vis.0"||r.name==="vis-2.0",u=ht.getStyle(this.props.theme,Ne[`itemFolderIcon${this.state.viewType}`],l&&Ne.specialFolder);return y.createElement(wt,{component:"div",key:r.id,id:r.id,style:this.state.viewType===Tt?{marginLeft:a,width:`calc(100% - ${a}px`}:void 0,onClick:h=>this.state.viewType===Tt?this.select(r.id,h):this.changeFolder(h,r.id),onDoubleClick:h=>this.state.viewType===Tt&&this.toggleFolder(r,h),title:this.getText(r.title),className:"browserItem",sx:ht.getStyle(this.props.theme,Ne[`item${this.state.viewType}`],Ne[`itemFolder${this.state.viewType}`],this.state.selected===r.id?Ne.itemSelected:{},r.temp?Ne.itemFolderTemp:{})},y.createElement(o,{style:u,onClick:this.state.viewType===Tt?h=>this.toggleFolder(r,h):void 0}),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,Ne[`itemName${this.state.viewType}`],Ne[`itemNameFolder${this.state.viewType}`])},i?this.props.t("ra_User files"):r.name),y.createElement(wt,{component:"div",style:Ne[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Tt&&this.state.folders[r.id]?this.state.folders[r.id].length:""),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Tt&&this.props.expertMode?this.formatAcl(r.acl):null),this.state.viewType===Tt&&this.props.expertMode?y.createElement(wt,{component:"div",sx:{...Ne.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===Tt&&this.props.allowDownload?y.createElement("div",{style:Ne[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===Tt&&this.props.allowDelete&&this.state.folders[r.id]&&this.state.folders[r.id].length?y.createElement(nr,{"aria-label":"delete",onClick:h=>{h.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:Ne[`itemDeleteButton${this.state.viewType}`],size:"large"},y.createElement(Dp,{fontSize:"small"})):this.state.viewType===Tt&&this.props.allowDelete?y.createElement(wt,{component:"div",sx:Ne[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return y.createElement(wt,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:r=>this.changeFolder(r),title:this.props.t("ra_Back to %s",Ii(this.state.currentDir)),className:"browserItem",sx:ht.getStyle(this.props.theme,Ne[`item${this.state.viewType}`],Ne[`itemFolder${this.state.viewType}`])},y.createElement(I0,{style:ht.getStyle(this.props.theme,Ne[`itemFolderIcon${this.state.viewType}`])}),y.createElement(VU,{sx:Ne.itemFolderIconBack}),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,Ne[`itemName${this.state.viewType}`],Ne[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(r){return y.createElement("div",{style:Ne[`itemSize${this.state.viewType}`]},r||r===0?ht.formatBytes(r):"")}formatAcl(r){const n=r?r.permissions||r.file:0;let o;return n?o=n.toString(16).padStart(3,"0"):o="",y.createElement("div",{style:Ne[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?y.createElement(nr,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:Ne[`itemAclButton${this.state.viewType}`]},o||"---"):o||"---")}getFileIcon(r){switch(r){case"json":case"json5":return y.createElement(JU,{style:Ne[`itemIcon${this.state.viewType}`]});case"css":return y.createElement(YU,{style:Ne[`itemIcon${this.state.viewType}`]});case"js":case"ts":return y.createElement(Ub,{style:Ne[`itemIcon${this.state.viewType}`]});case"html":case"md":return y.createElement(XM,{style:Ne[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return y.createElement(uH,{style:Ne[`itemIcon${this.state.viewType}`]});default:return y.createElement(GM,{style:Ne[`itemIcon${this.state.viewType}`]})}}static getEditFile(r){switch(r){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":return!0;default:return!1}}renderFile(r){const n=this.state.viewType===Tt?r.level*this.levelPadding:0,o=ht.getFileExtension(r.name);return y.createElement(wt,{component:"div",key:r.id,id:r.id,onDoubleClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&Lr[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:o})},onClick:a=>this.select(r.id,a),style:this.state.viewType===Tt?{marginLeft:n,width:`calc(100% - ${n}px)`}:void 0,className:"browserItem",sx:ht.getStyle(this.props.theme,Ne[`item${this.state.viewType}`],Ne[`itemFile${this.state.viewType}`],this.state.selected===r.id?Ne.itemSelected:void 0)},o&&Lr.images.includes(o)?this.state.fileErrors.includes(r.id)?y.createElement(Pw,{style:{...Ne[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...Ne[`itemNoImage${this.state.viewType}`]}}):y.createElement(Rw,{onError:a=>{a.target.onerror=null;const i=[...this.state.fileErrors];i.includes(r.id)||(i.push(r.id),this.setState({fileErrors:i}))},style:{...Ne[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+r.id,alt:r.name}):this.getFileIcon(o),y.createElement(wt,{component:"div",sx:Ne[`itemName${this.state.viewType}`]},r.name),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(r.size)),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Tt&&this.props.expertMode?this.formatAcl(r.acl):null),y.createElement(wt,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===Tt&&this.props.expertMode&&Aw.getEditFile(o)?y.createElement(nr,{"aria-label":"edit",onClick:a=>{a.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&Lr[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:o})},sx:Ne.itemDeleteButtonTable,size:"large"},y.createElement(rH,{fontSize:"small"})):y.createElement(wt,{component:"div",sx:Ne[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===Tt&&this.props.allowDownload?y.createElement(wt,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:Ne.itemDownloadButtonTable,tabIndex:0,download:r.id,href:this.imagePrefix+r.id,onClick:a=>a.stopPropagation()},y.createElement(fH,null)):null,this.state.viewType===Tt&&this.props.allowDelete&&r.id!=="vis.0/"&&r.id!=="vis-2.0/"&&r.id!==Oa?y.createElement(nr,{"aria-label":"delete",onClick:a=>{a.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:Ne[`itemDeleteButton${this.state.viewType}`],size:"large"},y.createElement(Dp,{fontSize:"small"})):this.state.viewType===Tt&&this.props.allowDelete?y.createElement(wt,{component:"div",sx:Ne[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(r){var n;if((n=this.state.folders)!=null&&n[r]){if(this.state.viewType===Tv){const a=[];return r&&r!=="/"&&a.push(this.renderBackFolder()),this.state.folders[r].forEach(i=>{i.folder?a.push(this.renderFolder(i)):(!this.props.filterFiles||i.ext&&this.props.filterFiles.includes(i.ext))&&(!this.state.filterByType||i.ext&&Lr[this.state.filterByType].includes(i.ext))&&a.push(this.renderFile(i))}),a}const o=[];return this.state.folders[r].forEach(a=>{if(a.folder){const i=this.state.expanded.includes(a.id),l=this.renderFolder(a,i);if(Array.isArray(l)?l.forEach(u=>o.push(u)):o.push(l),this.state.folders[a.id]&&i){const u=this.renderItems(a.id);Array.isArray(u)?u.forEach(f=>o.push(f)):o.push(u)}}else(!this.props.filterFiles||a.ext&&this.props.filterFiles.includes(a.ext))&&(!this.state.filterByType||a.ext&&Lr[this.state.filterByType].includes(a.ext))&&o.push(this.renderFile(a))}),o}return y.createElement("div",{style:{position:"relative"}},y.createElement(P9,{key:r,color:"secondary",size:24}),y.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const r=this.props.showTypeSelector?gp[this.state.filterByType||"all"]||gp.all:null,n=this.findFirstFolder(this.state.selected);return y.createElement(Bb,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?y.createElement(nr,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...Ne.menuButton,...this.state.restrictToFolder?Ne.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},y.createElement(oH,{fontSize:"small"})):null,this.props.showExpertButton?y.createElement(nr,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...Ne.menuButton,...this.state.expertMode?Ne.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},y.createElement(GQ,null)):null,this.props.showViewTypeButton?y.createElement(nr,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:Ne.menuButton,"aria-label":"view mode",onClick:()=>{const o=this.state.viewType===Tt?Tv:Tt;this.localStorage.setItem("files.viewType",o);let a=this.state.selected;Ev(a)&&(a=Ii(a)),this.setState({viewType:o,currentDir:a},()=>{this.state.viewType===Tt&&this.scrollToSelected()})},size:"small"},this.state.viewType!==Tt?y.createElement(cH,{fontSize:"small"}):y.createElement(bH,{fontSize:"small"})):null,y.createElement(nr,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:Ne.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"},y.createElement(nH,{fontSize:"small"})),y.createElement(nr,{edge:"start",title:this.props.t("ra_Reload files"),style:Ne.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},y.createElement(YM,{fontSize:"small"})),this.props.allowCreateFolder?y.createElement(nr,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:Ne.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},y.createElement(tH,{fontSize:"small"})):null,this.props.allowUpload?y.createElement(nr,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:Ne.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},y.createElement(HC,{fontSize:"small"})):null,this.props.showTypeSelector&&r?y.createElement(Op,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:Ne.tooltip}}},y.createElement(nr,{size:"small",onClick:o=>this.setState({showTypesMenu:o.target})},y.createElement(r,{fontSize:"small"}))):null,this.state.showTypesMenu?y.createElement(jb,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(gp).map(o=>{const a=gp[o];return y.createElement(fr,{key:o,selected:this.state.filterByType===o,onClick:()=>{o==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",o),this.setState({filterByType:o,showTypesMenu:null}))}},y.createElement(w7,null,y.createElement(a,{fontSize:"small"})),y.createElement(C7,null,this.props.t(`ra_fileType_${o}`)))})):null,y.createElement(Op,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:Ne.tooltip}}},y.createElement(nr,{color:"inherit",edge:"start",style:Ne.menuButton,onClick:this.setStateBackgroundImage,size:"small"},y.createElement(Wb,{fontSize:"small"}))),this.state.viewType!==Tt&&this.props.allowDelete?y.createElement(Op,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:Ne.tooltip}}},y.createElement("span",null,y.createElement(nr,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===Oa,color:"inherit",edge:"start",style:Ne.menuButton,onClick:o=>{o.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},y.createElement(Dp,{fontSize:"small"})))):null)}findItem(r,n){if(n=n||this.state.folders,!n)return null;const o=r.split("/");o.pop();const a=o.join("/")||"/";return n[a]&&n[a].find(i=>i.id===r)||null}renderInputDialog(){if(this.state.addFolder){const r=this.findFirstFolder(this.state.selected);return r?y.createElement(XQ,{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:n=>this.state.folders[r].find(o=>o.name===n)?"":this.props.t("ra_Duplicate name"),onClose:n=>{if(n){const o={};Object.keys(this.state.folders).forEach(u=>o[u]=this.state.folders[u]);const a=this.findItem(r),i=`${r}/${n}`;o[r].push({id:i,level:((a==null?void 0:a.level)||0)+1,name:n,folder:!0,temp:!0}),o[r].sort(SO),o[i]=[];const l=[...this.state.expanded];l.includes(r)||(l.push(r),l.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(l)),this.setState({addFolder:!1,folders:o,expanded:l},()=>this.select(i))}else this.setState({addFolder:!1})},replace:n=>n.replace(/[^-_\w]/,"_")}):(window.alert(this.props.t("ra_Invalid parent folder!")),null)}return null}componentDidUpdate(){this.setOpacityTimer&&clearTimeout(this.setOpacityTimer),this.setOpacityTimer=setTimeout(()=>{this.setOpacityTimer=null;const r=window.document.getElementsByClassName("browserItem");for(let n=0;nthis.setState({uploadFile:!1})},y.createElement(Rs,null)),y.createElement(Qf,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:r=>{let n=r.length;r.forEach(o=>{const a=new FileReader;a.onabort=()=>console.log("file reading was aborted"),a.onerror=()=>console.log("file reading has failed"),a.onload=()=>{const i=this.findFirstFolder(this.state.selected);if(!i)window.alert(this.props.t("ra_Invalid parent folder!"));else{const l=`${i}/${o.name}`;this.uploadFile(l,a.result).then(()=>{--n||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const u=[...this.state.expanded];u.includes(i)||(u.push(i),u.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(u))),this.setState({expanded:u},()=>this.select(l))}else setTimeout(()=>this.browseFolder(i,null,!1,!0).then(u=>{const f=[...this.state.expanded];f.includes(i)||(f.push(i),f.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(f))),this.setState({folders:u,expanded:f},()=>this.select(l))}),500)})})}},a.readAsArrayBuffer(o)})}},({getRootProps:r,getInputProps:n})=>y.createElement("div",{style:{...Ne.uploadDiv,...this.state.uploadFile==="dragging"?Ne.uploadDivDragging:void 0},...r()},y.createElement("input",{...n()}),y.createElement(wt,{component:"div",sx:Ne.uploadCenterDiv},y.createElement("div",{style:Ne.uploadCenterTextAndIcon},y.createElement(HC,{style:Ne.uploadCenterIcon}),y.createElement("div",{style:Ne.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(r){const n=this.findItem(r);if(n!=null&&n.folder)return(this.state.folders[r]?Promise.all(this.state.folders[r].map(i=>this.deleteRecursive(i.id))):Promise.resolve()).then(()=>{if(n.level>=1){const i=r.split("/"),l=i.shift();this.props.socket.deleteFolder(l||"",i.join("/")).then(()=>{const u=JSON.parse(JSON.stringify(this.state.folders));delete u[n.id];const f=Ii(n.id),h=u[f];if(h){const d=h.findIndex(_=>_.id===n.id);d!==-1&&h.splice(d,1),this.select(f,null,()=>this.setState({folders:u}))}})}});const o=r.split("/"),a=o.shift();return o.length?this.props.socket.deleteFile(a||"",o.join("/")).catch(i=>window.alert(`Cannot delete file: ${i}`)):Promise.resolve()}deleteItem(r){r=r||this.state.deleteItem,this.setState({deleteItem:""},()=>this.deleteRecursive(r).then(()=>{const n={},o=this.state.expanded.indexOf(r);if(o!==-1){const a=[...this.state.expanded];a.splice(o,1),this.localStorage.setItem("files.expanded",JSON.stringify(a)),n.expanded=a}if(this.state.selected===r){const a=this.state.selected.split("/");a.pop(),n.selected=a.join("/")}if(this.supportSubscribes)this.setState(n);else{const a=this.findFirstFolder(r),i={};Object.keys(this.state.folders).forEach(l=>{l!==a&&!l.startsWith(`${a}/`)&&(i[l]=this.state.folders[l])}),n.folders=i,this.setState(n,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],i).then(l=>this.setState({folders:l})).catch(l=>console.error(l))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?y.createElement(ra,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},y.createElement(aa,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),y.createElement(oa,null,y.createElement(If,null,this.props.t("ra_Are you sure?"))),y.createElement(na,null,y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>{this.suppressDeleteConfirm=Date.now()+6e4*5,this.deleteItem("")}},this.props.t("ra_Delete (no confirm for 5 mins)")),y.createElement(Qt,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),y.createElement(Qt,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){const r=this.props.FileViewer||yee;return this.state.viewer?y.createElement(r,{supportSubscribes:this.supportSubscribes,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile,themeType:this.props.themeType,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?y.createElement(KM,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(r){this.cacheFolders=this.cacheFolders||JSON.parse(JSON.stringify(this.state.folders));let n;r.forEach(o=>{const a=this.findItem(o.id,this.cacheFolders);a&&JSON.stringify(a.acl)!==JSON.stringify(o.acl)&&(a.acl=o.acl,n=!0)}),n&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const o=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:o})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let r=this.state.path;Ev(this.state.path)&&(r=Ii(this.state.path)),new Promise(n=>{this.state.folders[r]?n(!0):this.browseFolder(r).then(o=>this.setState({folders:o},()=>n(!0))).catch(o=>this.setState({errorText:o===xO?this.props.t('ra_Cannot find "%s"',r):this.props.t('ra_Cannot read "%s"',r)}))}).then(n=>n&&this.setState({selected:this.state.path,currentDir:r,pathFocus:!1})).catch(n=>console.error(n))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const r=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),n=[];return y.createElement(NM,{style:{paddingLeft:8,color:"#FFF"}},r.map((o,a)=>{o&&n.push(o);const i=n.join("/");return athis.changeFolder(l,i||"/")},o||this.props.t("ra_Root")):y.createElement("div",{style:Ne.pathDivBreadcrumbSelected,key:`${this.state.selected}_${a}`,onClick:()=>this.setState({pathFocus:!0})},o)}))}renderPath(){return y.createElement(wt,{component:"div",key:"path",sx:Ne.pathDiv},this.state.pathFocus?y.createElement(mo,{value:this.state.path,onKeyDown:r=>{r.key==="Enter"?this.changeToPath():r.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:y.createElement(nr,{size:"small",onClick:()=>this.changeToPath()},y.createElement(JM,null)),onBlur:()=>this.changeToPath(),onChange:r=>this.setState({path:r.target.value}),style:Ne.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(r=>console.error(`Cannot load folders: ${r}`))})},300)),y.createElement("div",{style:{...Ne.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===Tv?this.renderPath():null,y.createElement("div",{style:{...Ne.filesDiv,...Ne[`filesDiv${this.state.viewType}`]},onClick:r=>{this.state.viewType!==Tt&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(r,this.state.currentDir||"/"):r.stopPropagation())},id:"dev",ref:this.refFileDiv},this.state.viewType===Tt?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==Tt?y.createElement("div",{style:Ne.filesDivHint},this.props.t("ra_select_folder_hint")):null),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())):y.createElement(jM,null)}}const vee=eh()(Aw),bee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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 wee(t){const e=document.createElement("div");e.innerHTML=t;const r=e.firstElementChild;return r!=null&&r.remove?r.remove():r&&e.removeChild(r),e.remove(),r}function xee(t){const e={};if(!t)return e;for(let r,n=0;na[1].toUpperCase()),e[r]=t[n].value}return e}const ys=class ys extends $.Component{constructor(r){var n;super(r);we(this,"svg");this.state={svg:!!((n=this.props.src)!=null&&n.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(r,n){var i;const o={};let a=!1;return r&&n&&r.src!==n.src&&(o.src=r.src,o.svg=(i=r.src)==null?void 0:i.startsWith("data:"),o.created=!1,a=!0),r&&n&&r.color!==n.color&&(o.color=r.color,o.created=!1,a=!0),r&&n&&r.showError!==n.showError&&(o.showError=r.showError,a=!0),a?o:null}getSvgFromData(r){const n="data:image/svg+xml;base64,";if(!r.startsWith(n))return null;r=r.substring(n.length);try{r=atob(r);const o=wee(r),a=o.innerHTML,i=xee(o.attributes);return o.remove(),y.createElement("svg",{className:this.props.className,style:this.state.color?{color:this.state.color}:{},...i,dangerouslySetInnerHTML:{__html:a}})}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 y.createElement(Pw,{className:this.props.className});if(ys.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let r=(this.props.imagePrefix||"")+this.state.src;return r.startsWith("./")?r=ys.REMOTE_PREFIX+r.substring(2):r.startsWith("/")||(r=ys.REMOTE_PREFIX+r),y.createElement("img",{className:this.props.className,src:`https://remote-files.iobroker.in${r}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return y.createElement("img",{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}};we(ys,"REMOTE_SERVER",window.location.hostname.includes("iobroker.in")),we(ys,"REMOTE_PREFIX",window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1));let kO=ys;class pP extends y.Component{constructor(){super(...arguments);we(this,"handleFileSelect",r=>{const n=r.target,o=n==null?void 0:n.files;if(!o||!o.length){console.error("No files found. Please report to developers");return}const a=o[0];if(a){const i=new window.FileReader;i.onload=()=>{var u;const l=((u=i.result)==null?void 0:u.toString())||"";try{const f=JSON.parse(l);f.native&&f.common?f.common.name!==this.props.common.name?this.props.onError&&this.props.onError(U.t("ra_otherConfig",f.common.name)):this.props.onLoad&&this.props.onLoad(f.native):this.props.onError&&this.props.onError(U.t("ra_invalidConfig"))}catch(f){this.props.onError&&this.props.onError(f==null?void 0:f.toString())}},i.readAsText(a)}else alert("Failed to open JSON File")})}static generateFile(r,n){const o=window.document.createElement("a");o.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(n,null,2))}`),o.setAttribute("download",r),o.style.display="none",window.document.body.appendChild(o),o.click(),window.document.body.removeChild(o)}download(){const r={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};r.common.news&&delete r.common.news,r.common.titleLang&&delete r.common.titleLang,r.common.desc&&delete r.common.desc,pP.generateFile(`${r._id}.json`,r)}upload(){const r=window.document.createElement("input");r.setAttribute("type","file"),r.setAttribute("id","files"),r.setAttribute("opacity","0"),r.addEventListener("change",this.handleFileSelect,!1),r.click()}render(){return y.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?y.createElement(Rw,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?y.createElement(Cs,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{const r=window.open(this.props.common.readme,"_blank");r==null||r.focus()}},y.createElement(sH,null)):null,y.createElement(Cs,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:U.t("ra_Load configuration from file"),onClick:()=>this.upload()},y.createElement(yH,null)),y.createElement(Cs,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:U.t("ra_Save configuration to file"),onClick:()=>this.download()},y.createElement(gH,null)))}}const See=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.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"})),kee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.createElement("g",{fill:"currentColor"},y.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),y.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),Cee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.createElement("g",{fill:"currentColor"},y.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),y.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),y.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),y.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),y.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),y.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),$ee=t=>y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},y.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),y.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"}));y.createElement($ee,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(kee,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(Cee,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(See,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(XM,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(bee,{className:"itemIcon",style:{color:"#7da7ff",verticalAlign:"middle"}}),y.createElement(lH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(mH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(hH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(_H,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(dH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(pH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(eH,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(Ub,{className:"itemIcon",style:{verticalAlign:"middle"}}),y.createElement(I0,{className:"itemIcon itemIconFolder",style:{verticalAlign:"middle"}});const de={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:t=>({background:t.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:t=>({background:t.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowDates:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#747a86"}),rowWeeks:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#717680"}),rowMonths:t=>({background:t.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:t=>({background:t.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:t=>({background:t.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDaysDows:t=>({background:t.palette.mode!=="dark"?"#EEEAFF":"#573544",pl:"10px",pb:"10px"}),rowDowsDows:t=>({background:t.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},Ov=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],yp=["January","February","March","April","May","June","July","August","September","October","November","December"],Dv={minutes:"minutes",hours:"hours"},Ol=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function qo(t){return t<10?`0${t}`:`${t}`}const CO={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function Mv(t){const e=t.split(".");return e.length===3?`${e[2]}-${e[1]}-${e[0]}`:""}class Tr extends $.Component{constructor(r){super(r);we(this,"refFrom");we(this,"refTo");we(this,"refOnce");we(this,"timerOnce",null);we(this,"timerFrom",null);we(this,"timerTo",null);let n;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{n=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(n=this.props.schedule);(!n||!Object.keys(n).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),n=CO),n={...CO,...n},n.valid.from=n.valid.from||Tr.now2string(),this.refFrom=y.createRef(),this.refTo=y.createRef(),this.refOnce=y.createRef(),this.state={schedule:n,desc:Tr.state2text(n)},JSON.stringify(n)!==this.props.schedule&&setTimeout(()=>this.props.onChange&&this.props.onChange(JSON.stringify(n)),100)}onChange(r,n){const o=JSON.stringify(r)!==JSON.stringify(this.state.schedule);if(n||o){o&&this.setState({schedule:r,desc:Tr.state2text(r)});const a=JSON.parse(JSON.stringify(r));if(a.period.once){const i=a.period.once;delete a.period,a.period={once:i},delete a.valid}else if(a.period.days){const i=a.period.days,l=a.period.dows;delete a.period,a.period={days:i},l&&l!=="[]"&&(a.period.dows=l)}else if(a.period.weeks){const i=a.period.weeks,l=a.period.dows;delete a.period,a.period={weeks:i},l&&l!=="[]"&&(a.period.dows=l)}else if(a.period.months){const i=a.period.months,l=a.period.dates;delete a.period,a.period={months:i},l&&l!=="[]"&&(a.period.dates=l)}else if(a.period.years){const i=a.period.years,l=a.period.yearMonth,u=a.period.yearDate;delete a.period,a.period={years:i,yearDate:u},l&&(a.period.yearMonth=l)}if(a.time.exactTime?(delete a.time.end,delete a.time.mode,delete a.time.interval):delete a.time.exactTime,a.valid){if(a.valid.to||delete a.valid.to,a.period.days===1||a.period.weeks===1||a.period.months===1||a.period.years===1){const i=Tr.string2date(a.valid.from),l=new Date;l.setHours(0),l.setMinutes(0),l.setSeconds(0),l.setMilliseconds(0),i<=l&&delete a.valid.from}!a.valid.from&&!a.valid.to&&delete a.valid}this.props.onChange&&this.props.onChange(JSON.stringify(a),Tr.state2text(r))}}static state2text(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{return""}const n=[],o=Tr.string2date(r.valid.from);if(r.period.once){const a=Tr.string2date(r.period.once),i=new Date;if(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0),aU.t(Ov[l]));if(i.length===1)n.push(U.t("sch_desc_onWeekday",i[0]));else if(i.length===7)n.push(U.t("sch_desc_everyDay"));else{const l=i.pop();n.push(U.t("sch_desc_onWeekdays",i.join(", "),l))}}}else n.push(U.t("sch_desc_everyDay"));else n.push(U.t("sch_desc_everyNDay",r.period.days.toString()));else if(r.period.weeks)if(r.period.weeks===1?n.push(U.t("sch_desc_everyWeek")):n.push(U.t("sch_desc_everyNWeeks",r.period.weeks.toString())),r.period.dows){const a=JSON.parse(r.period.dows);if(a.length===2&&a[0]===0&&a[1]===6)n.push(U.t("sch_desc_onWeekends"));else if(a.length===5&&a[0]===1&&a[1]===2&&a[2]===3&&a[3]===4&&a[4]===5)n.push(U.t("sch_desc_onWorkdays"));else{const i=a.map(l=>U.t(Ov[l]));if(i.length===1)n.push(U.t("sch_desc_onWeekday",i[0]));else if(i.length===7)n.push(U.t("sch_desc_everyDay"));else{const l=i.pop();n.push(U.t("sch_desc_onWeekdays",i.join(", "),l))}}}else return U.t("sch_desc_never");else if(r.period.months){if(r.period.dates){const a=JSON.parse(r.period.dates);if(a.length===1)n.push(U.t("sch_desc_onDate",a[0]));else if(a.length===31)n.push(U.t("sch_desc_onEveryDate"));else if(a.length){const i=a.pop();n.push(U.t("sch_desc_onDates",a.join(", "),i))}else return U.t("sch_desc_never")}else n.push(U.t("sch_desc_onEveryDate"));if(r.period.months===1)n.push(U.t("sch_desc_everyMonth"));else if(typeof r.period.months=="number")n.push(U.t("sch_desc_everyNMonths",r.period.months.toString()));else{const i=JSON.parse(r.period.months).map(l=>U.t(yp[l-1]));if(!i.length)return U.t("sch_desc_never");if(i.length===1)n.push(U.t("sch_desc_onMonth",i[0]));else if(i.length===12)n.push(U.t("sch_desc_everyMonth"));else{const l=i.pop();n.push(U.t("sch_desc_onMonths",i.join(", "),l))}}}else r.period.years&&(r.period.years===1?n.push(U.t("sch_desc_everyYear")):n.push(U.t("sch_desc_everyNYears",r.period.years.toString())),n.push(U.t("sch_desc_onDate",r.period.yearDate.toString(),r.period.yearMonth?U.t(yp[r.period.yearMonth-1]):U.t("sch_desc_everyMonth"))));if(r.time.exactTime)Ol.includes(r.time.start)?n.push(U.t("sch_desc_atTime",U.t(`sch_astro_${r.time.start}`))):n.push(U.t("sch_desc_atTime",r.time.start));else{r.time.mode===Dv.minutes?r.time.interval===1?n.push(U.t("sch_desc_everyMinute")):n.push(U.t("sch_desc_everyNMinutes",r.time.interval.toString())):r.time.interval===1?n.push(U.t("sch_desc_everyHour")):n.push(U.t("sch_desc_everyNHours",r.time.interval.toString()));const a=Ol.indexOf(r.time.start)!==-1?U.t(`sch_astro_${r.time.start}`):r.time.start,i=Ol.indexOf(r.time.end)!==-1?U.t(`sch_astro_${r.time.end}`):r.time.end;(a!=="00:00"||i!=="24:00"&&i!=="23:59")&&n.push(U.t("sch_desc_intervalFromTo",a,i))}return r.period.once||(o.getTime()>Date.now()&&r.valid.to?n.push(U.t("sch_desc_validFromTo",r.valid.from,r.valid.to)):o.getTime()>Date.now()?n.push(U.t("sch_desc_validFrom",r.valid.from)):r.valid.to&&n.push(U.t("sch_desc_validTo",r.valid.to))),n.join(" ")}getTimePeriodElements(){const r=this.state.schedule;let n=!1,o=!1,a=!1,i=!0;return r.time.start==="00:00"&&r.time.end==="24:00"?(n=!0,i=!1):r.time.start==="sunrise"?(o=!0,i=!1):r.time.start==="sunset"&&(a=!0,i=!1),y.createElement("div",{key:"timePeriod",style:de.rowDiv},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!r.time.exactTime,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.exactTime=!1,this.onChange(l)}}),label:U.t("sch_intervalTime")})),y.createElement("div",{style:de.settingsDiv},y.createElement("div",{style:de.settingsDiv},!r.time.exactTime&&y.createElement("div",null,y.createElement("div",null,y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!i,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="23:59",this.onChange(l)}}),label:i?"":U.t("sch_fromTo")}),i&&[y.createElement(zr,{variant:"standard",style:{...de.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:l=>{const u=JSON.parse(JSON.stringify(this.state.schedule));u.time.start=l.target.value,this.onChange(u)},slotProps:{inputLabel:{shrink:!0}},label:U.t("sch_from"),margin:"normal"}),y.createElement(zr,{variant:"standard",style:de.inputTime,key:"exactTimeTo",type:"time",sx:l=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:l.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:l=>{const u=JSON.parse(JSON.stringify(this.state.schedule));u.time.end=l.target.value,this.onChange(u)},slotProps:{inputLabel:{shrink:!0}},label:U.t("sch_to"),margin:"normal"})])),!r.time.exactTime&&y.createElement("div",null,y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!n,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="00:00",l.time.end="24:00",this.onChange(l)}}),label:U.t("sch_wholeDay")})),!r.time.exactTime&&y.createElement("div",null,y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!o,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunrise",l.time.end="sunset",this.onChange(l)}}),label:U.t("sch_astroDay")})),!r.time.exactTime&&y.createElement("div",null,y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!a,onClick:()=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start="sunset",l.time.end="sunrise",this.onChange(l)}}),label:U.t("sch_astroNight")}))),!r.time.exactTime&&this.getPeriodSettingsMinutes(i)))}getTimeExactElements(){const r=Ol.includes(this.state.schedule.time.start);return y.createElement("div",{key:"timeExact",style:de.rowDiv},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.exactTime=!0,this.onChange(n)}}),label:U.t("sch_exactTime")})),this.state.schedule.time.exactTime&&y.createElement(wo,{variant:"standard",value:r?this.state.schedule.time.start:"00:00",onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.start=n.target.value,this.onChange(o)}},y.createElement(fr,{key:"specific",value:"00:00"},U.t("sch_specificTime")),Ol.map(n=>y.createElement(fr,{key:n,value:n},U.t(`sch_astro_${n}`)))),this.state.schedule.time.exactTime&&!r&&y.createElement("div",{style:de.settingsDiv},y.createElement(zr,{variant:"standard",style:de.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.start=n.target.value,this.onChange(o)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return y.createElement("hr",{style:de.hr})}getPeriodModes(){const r=this.state.schedule,n=!r.period.dows&&!r.period.months&&!r.period.dates&&!r.period.years&&!r.period.days&&!r.period.weeks;return n&&!r.period.once&&(r.period.once=Tr.now2string(!0)),[y.createElement("div",{key:"once",style:{...de.rowDiv,...de.rowOnce}},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!n,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.once=o.period.once||Tr.now2string(!0),o.period.dows="",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,this.onChange(o)}}),label:U.t("sch_periodOnce")})),n&&y.createElement("div",{style:de.settingsDiv},y.createElement(zr,{variant:"standard",style:de.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:Mv(r.period.once),onChange:o=>{this.timerOnce&&clearTimeout(this.timerOnce),this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(a=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const i=JSON.parse(JSON.stringify(this.state.schedule)),l=Tr.string2date(a);l.toString()!=="Invalid Date"&&(i.period.once=`${qo(l.getDate())}.${qo(l.getMonth()+1)}.${l.getFullYear()}`,this.onChange(i))},1500,o.target.value)},slotProps:{inputLabel:{shrink:!0}},label:U.t("sch_at"),margin:"normal"}))),y.createElement(wt,{component:"div",key:"days",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowDays)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!r.period.days,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=1,o.period.dows="",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodDaily")})),y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsDaily(),r.period.days?this.getPeriodSettingsWeekdays():null)),y.createElement(wt,{component:"div",key:"weeks",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowDows)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!r.period.weeks,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=r.period.weeks?0:1,o.period.dows=r.period.dows||"[0]",o.period.months="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodWeekly")})),y.createElement(wt,{component:"div",style:de.settingsDiv},y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsWeekly()),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,de.settingsDiv,de.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),y.createElement(wt,{component:"div",key:"months",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowMonths)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!r.period.months,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=1,o.period.dows="",o.period.dates="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodMonthly")})),y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsMonthly(),r.period.months?y.createElement(wt,null,y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,de.settingsDiv,de.rowMonthsDates)},y.createElement(gt,{control:y.createElement(tn,{style:de.inputRadio,checked:!!r.period.dates,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=o.period.months||1;const a=[];for(let i=1;i<=31;i++)a.push(i);o.period.dates=o.period.dates||JSON.stringify(a),o.period.dows="",o.period.years=0,o.period.yearDate=0,o.period.yearMonth=0,o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodDates")})),y.createElement(wt,{component:"div",sx:ht.getStyle(this.props.theme,de.settingsDiv,de.rowMonthsDates)},this.getPeriodSettingsDates())):null)),y.createElement(wt,{component:"div",key:"years",sx:ht.getStyle(this.props.theme,de.rowDiv,de.rowYears)},y.createElement("div",{style:de.modeDiv},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:!!r.period.years,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=1,o.period.yearDate=1,o.period.yearMonth=1,o.period.dows="",o.period.months=0,o.period.dates="",o.period.weeks=0,o.period.days=0,o.period.once="",this.onChange(o)}}),label:U.t("sch_periodYearly")})),y.createElement("div",{style:de.settingsDiv},y.createElement("div",{style:de.settingsDiv},this.getPeriodSettingsYearly()),!!r.period.years&&y.createElement("div",{style:de.settingsDiv},y.createElement("span",null,U.t("sch_on")),y.createElement(mo,{key:"input",value:this.state.schedule.period.yearDate,style:de.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearDate=parseInt(o.target.value,10),a.period.yearDate<1&&(a.period.yearDate=31),a.period.yearDate>31&&(a.period.yearDate=1),this.onChange(a)}}),y.createElement(wo,{variant:"standard",value:r.period.yearMonth,onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.yearMonth=o.target.value,this.onChange(a)}},y.createElement(fr,{key:"every",value:0},U.t("sch_yearEveryMonth")),yp.map((o,a)=>y.createElement(fr,{key:o,value:a+1},U.t(o)))))))]}getPeriodSettingsMinutes(r){return y.createElement("div",{style:{display:"inline-block",marginTop:r?15:"inherit"}},y.createElement("label",{style:{marginLeft:4,marginRight:4}},U.t("sch_every")),y.createElement(mo,{value:this.state.schedule.time.interval,style:{...de.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.interval=parseInt(n.target.value,10),this.onChange(o)}}),y.createElement(wo,{variant:"standard",value:this.state.schedule.time.mode,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.time.mode=n.target.value,this.onChange(o)}},y.createElement(fr,{value:Dv.minutes},U.t("sch_periodMinutes")),y.createElement(fr,{value:Dv.hours},U.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const r=this.state.schedule,n=r.period.dows&&r.period.dows!=="[1, 2, 3, 4, 5]"&&r.period.dows!=="[0, 6]";return[y.createElement("div",{key:"workdays"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[1, 2, 3, 4, 5]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:U.t("sch_periodWorkdays")})),y.createElement("div",{key:"weekend"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.dows==="[0, 6]",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[0, 6]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:U.t("sch_periodWeekend")})),y.createElement("div",{key:"specific",style:{verticalAlign:"top"}},y.createElement(gt,{style:{verticalAlign:"top"},control:y.createElement(Ft,{style:de.inputRadio,checked:!!n,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dows="[0, 1, 2, 3, 4, 5, 6]",o.period.days&&(o.period.days=1),this.onChange(o)}}),label:U.t("sch_periodWeekdays")}),n&&(r.period.days===1||r.period.weeks)&&y.createElement(l_,{row:!0,style:{...de.inputGroup,width:150}},[1,2,3,4,5,6,0].map(o=>y.createElement(gt,{key:`specific_${o}`,style:de.inputGroupElement,control:y.createElement(tn,{style:de.inputSmallCheck,checked:r.period.dows.includes(o.toString()),onChange:a=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(i.period.dows)}catch{l=[]}a.target.checked&&!l.includes(o)?l.push(o):!a.target.checked&&l.includes(o)&&l.splice(l.indexOf(o),1),l.sort((u,f)=>u-f),i.period.dows=JSON.stringify(l),i.period.days&&(i.period.days=1),this.onChange(i)}}),label:U.t(Ov[o])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const r=this.state.schedule;return[y.createElement("div",{key:"every_day"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.days===1&&!r.period.dows,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=1,n.period.dows="",this.onChange(n)}}),label:U.t("sch_periodEveryDay")})),y.createElement("div",{key:"everyN_day"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.days>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=2,n.period.dows="",this.onChange(n)}}),label:U.t("sch_periodEvery")}),r.period.days>1&&[y.createElement(mo,{key:"input",value:this.state.schedule.period.days,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.days=parseInt(n.target.value,10),o.period.dows="",this.onChange(o)}}),y.createElement("span",{key:"span",style:{paddingRight:10}},U.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const r=this.state.schedule;return[y.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},y.createElement("div",null,y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.weeks===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=1,this.onChange(n)}}),label:U.t("sch_periodEveryWeek")})),y.createElement("div",null,y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.weeks>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=2,this.onChange(n)}}),label:U.t("sch_periodEvery")}),r.period.weeks>1&&[y.createElement(mo,{key:"input",value:this.state.schedule.period.weeks,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.weeks=parseInt(n.target.value,10),this.onChange(o)}}),y.createElement("span",{key:"text"},U.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const r=this.state.schedule,n=[];for(let a=1;a<=31;a++)n.push(a);const o=JSON.parse(r.period.dates);return y.createElement(l_,{row:!0,style:{...de.inputGroup,maxWidth:620}},y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:o.length===31,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),i=[];for(let l=1;l<=31;l++)i.push(l);a.period.dates=JSON.stringify(i),this.onChange(a)}}),label:U.t("sch_all")}),y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!o.length,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.dates="[]",this.onChange(a)}}),label:U.t("sch_no_one")}),o.length!==31&&!!o.length&&y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!1,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),i=[],l=JSON.parse(a.period.dates);for(let u=1;u<=31;u++)l.includes(u)||i.push(u);i.sort((u,f)=>u-f),a.period.dates=JSON.stringify(i),this.onChange(a)}}),label:U.t("sch_invert")}),y.createElement("div",null),n.map(a=>y.createElement(gt,{key:`date_${a}`,style:a?de.inputDateDay:{...de.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:y.createElement(tn,{style:de.inputDateDayCheck,checked:JSON.parse(r.period.dates).includes(a),onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let u;try{u=JSON.parse(l.period.dates)}catch{u=[]}i.target.checked&&!u.includes(a)?u.push(a):!i.target.checked&&u.includes(a)&&u.splice(u.indexOf(a),1),u.sort((f,h)=>f-h),l.period.dates=JSON.stringify(u),this.onChange(l)}}),label:a<10?[y.createElement("span",{key:"0",style:{opacity:0}},"0"),y.createElement("span",{key:"num"},a)]:a})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const r=this.state.schedule,n=typeof r.period.months=="string"?JSON.parse(r.period.months):[];return[y.createElement("div",{key:"every"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:typeof r.period.months=="number"&&r.period.months===1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=1,this.onChange(r)}}),label:U.t("sch_periodEveryMonth")})),y.createElement("div",{key:"everyN"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:typeof r.period.months=="number"&&r.period.months>1,onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=2,this.onChange(o)}}),label:U.t("sch_periodEvery")}),typeof r.period.months=="number"&&r.period.months>1&&[y.createElement(mo,{key:"input",value:r.period.months,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:o=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=parseInt(o.target.value,10),a.period.months<1&&(a.period.months=1),this.onChange(a)}}),y.createElement("span",{key:"text"},U.t("sch_periodMonth"))]),y.createElement("div",{key:"specific",style:{verticalAlign:"top"}},y.createElement(gt,{style:{verticalAlign:"top"},control:y.createElement(Ft,{style:de.inputRadio,checked:typeof r.period.months=="string",onClick:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(o)}}),label:U.t("sch_periodSpecificMonths")}),typeof r.period.months=="string"&&y.createElement(l_,{row:!0,style:de.inputGroup},y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:n.length===12,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[];for(let i=1;i<=12;i++)a.push(i);o.period.months=JSON.stringify(a),this.onChange(o)}}),label:U.t("sch_all")}),y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!n.length,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months="[]",this.onChange(o)}}),label:U.t("sch_no_one")}),n.length!==12&&!!n.length&&y.createElement(gt,{style:de.inputDateDay,control:y.createElement(tn,{style:de.inputDateDayCheck,checked:!1,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),a=[],i=JSON.parse(o.period.months);for(let l=1;l<=12;l++)i.includes(l)||a.push(l);a.sort((l,u)=>l-u),o.period.months=JSON.stringify(a),this.onChange(o)}}),label:U.t("sch_invert")}),y.createElement("div",null),yp.map((o,a)=>y.createElement(gt,{key:`month_${a}`,style:de.inputGroupElement,control:y.createElement(tn,{style:de.inputSmallCheck,checked:typeof r.period.months=="string"?JSON.parse(r.period.months).includes(a+1):r.period.months===a,onChange:i=>{const l=JSON.parse(JSON.stringify(this.state.schedule));let u;try{u=JSON.parse(l.period.months)}catch{u=[]}i.target.checked&&!u.includes(a+1)?u.push(a+1):!i.target.checked&&u.includes(a+1)&&u.splice(u.indexOf(a+1),1),u.sort((f,h)=>f-h),l.period.months=JSON.stringify(u),this.onChange(l)}}),label:U.t(o)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const r=this.state.schedule;return[y.createElement("div",{key:"year"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.years===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=1,this.onChange(n)}}),label:U.t("sch_periodEveryYear")})),y.createElement("div",{key:"every"},y.createElement(gt,{control:y.createElement(Ft,{style:de.inputRadio,checked:r.period.years>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=2,this.onChange(n)}}),label:U.t("sch_periodEvery")}),r.period.years>1&&[y.createElement(mo,{key:"input",value:this.state.schedule.period.years,style:de.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.years=parseInt(n.target.value,10),o.period.years<1&&(o.period.years=1),this.onChange(o)}}),y.createElement("span",{key:"text"},U.t("sch_periodYear"))])]}static now2string(r){const n=new Date;return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),r&&(n.setDate(n.getDate()+2),n.setMilliseconds(n.getMilliseconds()-1)),`${qo(n.getDate())}.${qo(n.getMonth()+1)}.${qo(n.getFullYear())}`}static string2date(r){let n=r.split(".");return n.length===1?(n=r.split("-"),new Date(parseInt(n[0],10),parseInt(n[1],10)-1,parseInt(n[2],10))):new Date(parseInt(n[2],10),parseInt(n[1],10)-1,parseInt(n[0],10))}getValidSettings(){const r=this.state.schedule;return y.createElement("div",{style:de.rowDiv},y.createElement("div",{style:{...de.modeDiv,verticalAlign:"middle"}},y.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},U.t("sch_valid")),y.createElement("span",null,U.t("sch_validFrom"))),y.createElement("div",{style:de.settingsDiv},y.createElement(zr,{variant:"standard",style:{...de.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:Mv(r.valid.from),type:"date",onChange:n=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(o=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),i=Tr.string2date(o);i.toString()!=="Invalid Date"&&(a.valid.from=`${qo(i.getDate())}.${qo(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),y.createElement(gt,{control:y.createElement(tn,{style:de.inputRadio,checked:!!r.valid.to,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.valid.to=n.valid.to?"":Tr.now2string(!0),this.onChange(n)}}),label:U.t("sch_validTo")}),!!r.valid.to&&y.createElement(zr,{variant:"standard",inputRef:this.refTo,style:{...de.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:Mv(r.valid.to),onChange:n=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(o=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const a=JSON.parse(JSON.stringify(this.state.schedule)),i=Tr.string2date(o);i.toString()!=="Invalid Date"&&(a.valid.to=`${qo(i.getDate())}.${qo(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(a))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return y.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},y.createElement("div",null,this.state.desc),y.createElement("div",{style:de.scrollWindow},y.createElement("h5",null,U.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),Tr.getDivider(),y.createElement("h5",null,U.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&Tr.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}function Eee({themeName:t,toggleTheme:e,t:r,className:n,style:o,size:a}){return y.createElement("div",{className:n||void 0,style:o||void 0},y.createElement(Op,{title:r("ra_Change color theme"),slotProps:{popper:{sx:{pointerEvents:"none"}}}},y.createElement(nr,{onClick:()=>e(),size:a||"medium"},t==="dark"&&y.createElement(KU,{className:n}),t==="blue"&&y.createElement(ZU,{className:n}),t==="colored"&&y.createElement(Wb,{className:n}),t!=="dark"&&t!=="blue"&&t!=="colored"&&y.createElement(QU,{className:n}))))}/*! * Cropper.js v1.6.2 * https://fengyuanchen.github.io/cropperjs * @@ -516,4 +516,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * Date: 2024-04-21T07:43:05.335Z */function $O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function fP(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r
',qee=Number.isNaN||Eo.isNaN;function yt(t){return typeof t=="number"&&!qee(t)}var zO=function(e){return e>0&&e<1/0};function Nv(t){return typeof t>"u"}function Is(t){return j0(t)==="object"&&t!==null}var Vee=Object.prototype.hasOwnProperty;function sc(t){if(!Is(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&Vee.call(r,"isPrototypeOf")}catch{return!1}}function rn(t){return typeof t=="function"}var Xee=Array.prototype.slice;function SP(t){return Array.from?Array.from(t):Xee.call(t)}function mr(t,e){return t&&rn(e)&&(Array.isArray(t)||yt(t.length)?SP(t).forEach(function(r,n){e.call(t,r,n,t)}):Is(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var Gt=Object.assign||function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o0&&n.forEach(function(a){Is(a)&&Object.keys(a).forEach(function(i){e[i]=a[i]})}),e},Gee=/\.\d*(?:0|9){12}\d*$/;function dc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Gee.test(t)?Math.round(t*e)/e:t}var Jee=/^width|height|left|top|marginLeft|marginTop$/;function Ia(t,e){var r=t.style;mr(e,function(n,o){Jee.test(o)&&yt(n)&&(n="".concat(n,"px")),r[o]=n})}function Yee(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function xr(t,e){if(e){if(yt(t.length)){mr(t,function(n){xr(n,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?r.indexOf(e)<0&&(t.className="".concat(r," ").concat(e)):t.className=e}}function Co(t,e){if(e){if(yt(t.length)){mr(t,function(r){Co(r,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function ic(t,e,r){if(e){if(yt(t.length)){mr(t,function(n){ic(n,e,r)});return}r?xr(t,e):Co(t,e)}}var Kee=/([a-z\d])([A-Z])/g;function Fw(t){return t.replace(Kee,"$1-$2").toLowerCase()}function V0(t,e){return Is(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(Fw(e)))}function fu(t,e,r){Is(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(Fw(e)),r)}function Zee(t,e){if(Is(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(Fw(e)))}var kP=/\s\s*/,CP=function(){var t=!1;if(th){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(a){e=a}});Eo.addEventListener("test",r,n),Eo.removeEventListener("test",r,n)}return t}();function Gn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(kP).forEach(function(a){if(!CP){var i=t.listeners;i&&i[a]&&i[a][r]&&(o=i[a][r],delete i[a][r],Object.keys(i[a]).length===0&&delete i[a],Object.keys(i).length===0&&delete t.listeners)}t.removeEventListener(a,o,n)})}function On(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(kP).forEach(function(a){if(n.once&&!CP){var i=t.listeners,l=i===void 0?{}:i;o=function(){delete l[a][r],t.removeEventListener(a,o,n);for(var f=arguments.length,h=new Array(f),d=0;dMath.abs(r)&&(r=_)})}),r}function bp(t,e){var r=t.pageX,n=t.pageY,o={endX:r,endY:n};return e?o:fP({startX:r,startY:n},o)}function tte(t){var e=0,r=0,n=0;return mr(t,function(o){var a=o.startX,i=o.startY;e+=a,r+=i,n+=1}),e/=n,r/=n,{pageX:e,pageY:r}}function ja(t){var e=t.aspectRatio,r=t.height,n=t.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",a=zO(n),i=zO(r);if(a&&i){var l=r*e;o==="contain"&&l>n||o==="cover"&&l90?{width:u,height:l}:{width:l,height:u}}function nte(t,e,r,n){var o=e.aspectRatio,a=e.naturalWidth,i=e.naturalHeight,l=e.rotate,u=l===void 0?0:l,f=e.scaleX,h=f===void 0?1:f,d=e.scaleY,_=d===void 0?1:d,g=r.aspectRatio,b=r.naturalWidth,w=r.naturalHeight,S=n.fillColor,k=S===void 0?"transparent":S,D=n.imageSmoothingEnabled,C=D===void 0?!0:D,O=n.imageSmoothingQuality,M=O===void 0?"low":O,T=n.maxWidth,P=T===void 0?1/0:T,j=n.maxHeight,z=j===void 0?1/0:j,E=n.minWidth,L=E===void 0?0:E,G=n.minHeight,B=G===void 0?0:G,F=document.createElement("canvas"),H=F.getContext("2d"),K=ja({aspectRatio:g,width:P,height:z}),ee=ja({aspectRatio:g,width:L,height:B},"cover"),Y=Math.min(K.width,Math.max(ee.width,b)),X=Math.min(K.height,Math.max(ee.height,w)),re=ja({aspectRatio:o,width:P,height:z}),I=ja({aspectRatio:o,width:L,height:B},"cover"),Q=Math.min(re.width,Math.max(I.width,a)),me=Math.min(re.height,Math.max(I.height,i)),pe=[-Q/2,-me/2,Q,me];return F.width=dc(Y),F.height=dc(X),H.fillStyle=k,H.fillRect(0,0,Y,X),H.save(),H.translate(Y/2,X/2),H.rotate(u*Math.PI/180),H.scale(h,_),H.imageSmoothingEnabled=C,H.imageSmoothingQuality=M,H.drawImage.apply(H,[t].concat(mP(pe.map(function(ge){return Math.floor(dc(ge))})))),H.restore(),F}var EP=String.fromCharCode;function ote(t,e,r){var n="";r+=e;for(var o=e;o0;)r.push(EP.apply(null,SP(o.subarray(0,n)))),o=o.subarray(n);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}function cte(t){var e=new DataView(t),r;try{var n,o,a;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var i=e.byteLength,l=2;l+1=8&&(a=f+d)}}}if(a){var _=e.getUint16(a,n),g,b;for(b=0;b<_;b+=1)if(g=a+b*12+2,e.getUint16(g,n)===274){g+=8,r=e.getUint16(g,n),e.setUint16(g,1,n);break}}}catch{r=1}return r}function lte(t){var e=0,r=1,n=1;switch(t){case 2:r=-1;break;case 3:e=-180;break;case 4:n=-1;break;case 5:e=90,n=-1;break;case 6:e=90;break;case 7:e=90,r=-1;break;case 8:e=-90;break}return{rotate:e,scaleX:r,scaleY:n}}var ute={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,r=this.options,n=this.container,o=this.cropper,a=Number(r.minContainerWidth),i=Number(r.minContainerHeight);xr(o,nn),Co(e,nn);var l={width:Math.max(n.offsetWidth,a>=0?a:wP),height:Math.max(n.offsetHeight,i>=0?i:xP)};this.containerData=l,Ia(o,{width:l.width,height:l.height}),xr(e,nn),Co(o,nn)},initCanvas:function(){var e=this.containerData,r=this.imageData,n=this.options.viewMode,o=Math.abs(r.rotate)%180===90,a=o?r.naturalHeight:r.naturalWidth,i=o?r.naturalWidth:r.naturalHeight,l=a/i,u=e.width,f=e.height;e.height*l>e.width?n===3?u=e.height*l:f=e.width/l:n===3?f=e.width/l:u=e.height*l;var h={aspectRatio:l,naturalWidth:a,naturalHeight:i,width:u,height:f};this.canvasData=h,this.limited=n===1||n===2,this.limitCanvas(!0,!0),h.width=Math.min(Math.max(h.width,h.minWidth),h.maxWidth),h.height=Math.min(Math.max(h.height,h.minHeight),h.maxHeight),h.left=(e.width-h.width)/2,h.top=(e.height-h.height)/2,h.oldLeft=h.left,h.oldTop=h.top,this.initialCanvasData=Gt({},h)},limitCanvas:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,i=this.cropBoxData,l=n.viewMode,u=a.aspectRatio,f=this.cropped&&i;if(e){var h=Number(n.minCanvasWidth)||0,d=Number(n.minCanvasHeight)||0;l>1?(h=Math.max(h,o.width),d=Math.max(d,o.height),l===3&&(d*u>h?h=d*u:d=h/u)):l>0&&(h?h=Math.max(h,f?i.width:0):d?d=Math.max(d,f?i.height:0):f&&(h=i.width,d=i.height,d*u>h?h=d*u:d=h/u));var _=ja({aspectRatio:u,width:h,height:d});h=_.width,d=_.height,a.minWidth=h,a.minHeight=d,a.maxWidth=1/0,a.maxHeight=1/0}if(r)if(l>(f?0:1)){var g=o.width-a.width,b=o.height-a.height;a.minLeft=Math.min(0,g),a.minTop=Math.min(0,b),a.maxLeft=Math.max(0,g),a.maxTop=Math.max(0,b),f&&this.limited&&(a.minLeft=Math.min(i.left,i.left+(i.width-a.width)),a.minTop=Math.min(i.top,i.top+(i.height-a.height)),a.maxLeft=i.left,a.maxTop=i.top,l===2&&(a.width>=o.width&&(a.minLeft=Math.min(0,g),a.maxLeft=Math.max(0,g)),a.height>=o.height&&(a.minTop=Math.min(0,b),a.maxTop=Math.max(0,b))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=o.width,a.maxTop=o.height},renderCanvas:function(e,r){var n=this.canvasData,o=this.imageData;if(r){var a=rte({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),i=a.width,l=a.height,u=n.width*(i/n.naturalWidth),f=n.height*(l/n.naturalHeight);n.left-=(u-n.width)/2,n.top-=(f-n.height)/2,n.width=u,n.height=f,n.aspectRatio=i/l,n.naturalWidth=i,n.naturalHeight=l,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heightr.width?a.height=a.width/n:a.width=a.height*n),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*o),a.height=Math.max(a.minHeight,a.height*o),a.left=r.left+(r.width-a.width)/2,a.top=r.top+(r.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=Gt({},a)},limitCropBox:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,i=this.cropBoxData,l=this.limited,u=n.aspectRatio;if(e){var f=Number(n.minCropBoxWidth)||0,h=Number(n.minCropBoxHeight)||0,d=l?Math.min(o.width,a.width,a.width+a.left,o.width-a.left):o.width,_=l?Math.min(o.height,a.height,a.height+a.top,o.height-a.top):o.height;f=Math.min(f,o.width),h=Math.min(h,o.height),u&&(f&&h?h*u>f?h=f/u:f=h*u:f?h=f/u:h&&(f=h*u),_*u>d?_=d/u:d=_*u),i.minWidth=Math.min(f,d),i.minHeight=Math.min(h,_),i.maxWidth=d,i.maxHeight=_}r&&(l?(i.minLeft=Math.max(0,a.left),i.minTop=Math.max(0,a.top),i.maxLeft=Math.min(o.width,a.left+a.width)-i.width,i.maxTop=Math.min(o.height,a.top+a.height)-i.height):(i.minLeft=0,i.minTop=0,i.maxLeft=o.width-i.width,i.maxTop=o.height-i.height))},renderCropBox:function(){var e=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=r.width&&n.height>=r.height?gP:Lw),Ia(this.cropBox,Gt({width:n.width,height:n.height},Kl({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),pc(this.element,B0,this.getData())}},dte={initPreview:function(){var e=this.element,r=this.crossOrigin,n=this.options.preview,o=r?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",i=document.createElement("img");if(r&&(i.crossOrigin=r),i.src=o,i.alt=a,this.viewBox.appendChild(i),this.viewBoxImage=i,!!n){var l=n;typeof n=="string"?l=e.ownerDocument.querySelectorAll(n):n.querySelector&&(l=[n]),this.previews=l,mr(l,function(u){var f=document.createElement("img");fu(u,vp,{width:u.offsetWidth,height:u.offsetHeight,html:u.innerHTML}),r&&(f.crossOrigin=r),f.src=o,f.alt=a,f.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;"',u.innerHTML="",u.appendChild(f)})}},resetPreview:function(){mr(this.previews,function(e){var r=V0(e,vp);Ia(e,{width:r.width,height:r.height}),e.innerHTML=r.html,Zee(e,vp)})},preview:function(){var e=this.imageData,r=this.canvasData,n=this.cropBoxData,o=n.width,a=n.height,i=e.width,l=e.height,u=n.left-r.left-e.left,f=n.top-r.top-e.top;!this.cropped||this.disabled||(Ia(this.viewBoxImage,Gt({width:i,height:l},Kl(Gt({translateX:-u,translateY:-f},e)))),mr(this.previews,function(h){var d=V0(h,vp),_=d.width,g=d.height,b=_,w=g,S=1;o&&(S=_/o,w=a*S),a&&w>g&&(S=g/a,b=o*S,w=g),Ia(h,{width:b,height:w}),Ia(h.getElementsByTagName("img")[0],Gt({width:i*S,height:l*S},Kl(Gt({translateX:-u*S,translateY:-f*S},e))))}))}},pte={bind:function(){var e=this.element,r=this.options,n=this.cropper;rn(r.cropstart)&&On(e,H0,r.cropstart),rn(r.cropmove)&&On(e,U0,r.cropmove),rn(r.cropend)&&On(e,W0,r.cropend),rn(r.crop)&&On(e,B0,r.crop),rn(r.zoom)&&On(e,q0,r.zoom),On(n,MO,this.onCropStart=this.cropStart.bind(this)),r.zoomable&&r.zoomOnWheel&&On(n,IO,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&On(n,DO,this.onDblclick=this.dblclick.bind(this)),On(e.ownerDocument,NO,this.onCropMove=this.cropMove.bind(this)),On(e.ownerDocument,PO,this.onCropEnd=this.cropEnd.bind(this)),r.responsive&&On(window,AO,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,r=this.options,n=this.cropper;rn(r.cropstart)&&Gn(e,H0,r.cropstart),rn(r.cropmove)&&Gn(e,U0,r.cropmove),rn(r.cropend)&&Gn(e,W0,r.cropend),rn(r.crop)&&Gn(e,B0,r.crop),rn(r.zoom)&&Gn(e,q0,r.zoom),Gn(n,MO,this.onCropStart),r.zoomable&&r.zoomOnWheel&&Gn(n,IO,this.onWheel,{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&Gn(n,DO,this.onDblclick),Gn(e.ownerDocument,NO,this.onCropMove),Gn(e.ownerDocument,PO,this.onCropEnd),r.responsive&&Gn(window,AO,this.onResize)}},fte={resize:function(){if(!this.disabled){var e=this.options,r=this.container,n=this.containerData,o=r.offsetWidth/n.width,a=r.offsetHeight/n.height,i=Math.abs(o-1)>Math.abs(a-1)?o:a;if(i!==1){var l,u;e.restore&&(l=this.getCanvasData(),u=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(mr(l,function(f,h){l[h]=f*i})),this.setCropBoxData(mr(u,function(f,h){u[h]=f*i})))}}},dblclick:function(){this.disabled||this.options.dragMode===bP||this.setDragMode(Yee(this.dragBox,z0)?vP:zw)},wheel:function(e){var r=this,n=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50),e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*n,e)))},cropStart:function(e){var r=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(yt(r)&&r!==1||yt(n)&&n!==0||e.ctrlKey))){var o=this.options,a=this.pointers,i;e.changedTouches?mr(e.changedTouches,function(l){a[l.identifier]=bp(l)}):a[e.pointerId||0]=bp(e),Object.keys(a).length>1&&o.zoomable&&o.zoomOnTouch?i=yP:i=V0(e.target,pu),Fee.test(i)&&pc(this.element,H0,{originalEvent:e,action:i})!==!1&&(e.preventDefault(),this.action=i,this.cropping=!1,i===_P&&(this.cropping=!0,xr(this.dragBox,af)))}},cropMove:function(e){var r=this.action;if(!(this.disabled||!r)){var n=this.pointers;e.preventDefault(),pc(this.element,U0,{originalEvent:e,action:r})!==!1&&(e.changedTouches?mr(e.changedTouches,function(o){Gt(n[o.identifier]||{},bp(o,!0))}):Gt(n[e.pointerId||0]||{},bp(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var r=this.action,n=this.pointers;e.changedTouches?mr(e.changedTouches,function(o){delete n[o.identifier]}):delete n[e.pointerId||0],r&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,ic(this.dragBox,af,this.cropped&&this.options.modal)),pc(this.element,W0,{originalEvent:e,action:r}))}}},hte={change:function(e){var r=this.options,n=this.canvasData,o=this.containerData,a=this.cropBoxData,i=this.pointers,l=this.action,u=r.aspectRatio,f=a.left,h=a.top,d=a.width,_=a.height,g=f+d,b=h+_,w=0,S=0,k=o.width,D=o.height,C=!0,O;!u&&e.shiftKey&&(u=d&&_?d/_:1),this.limited&&(w=a.minLeft,S=a.minTop,k=w+Math.min(o.width,n.width,n.left+n.width),D=S+Math.min(o.height,n.height,n.top+n.height));var M=i[Object.keys(i)[0]],T={x:M.endX-M.startX,y:M.endY-M.startY},P=function(z){switch(z){case ds:g+T.x>k&&(T.x=k-g);break;case ps:f+T.xD&&(T.y=D-b);break}};switch(l){case Lw:f+=T.x,h+=T.y;break;case ds:if(T.x>=0&&(g>=k||u&&(h<=S||b>=D))){C=!1;break}P(ds),d+=T.x,d<0&&(l=ps,d=-d,f-=d),u&&(_=d/u,h+=(a.height-_)/2);break;case Da:if(T.y<=0&&(h<=S||u&&(f<=w||g>=k))){C=!1;break}P(Da),_-=T.y,h+=T.y,_<0&&(l=ji,_=-_,h-=_),u&&(d=_*u,f+=(a.width-d)/2);break;case ps:if(T.x<=0&&(f<=w||u&&(h<=S||b>=D))){C=!1;break}P(ps),d-=T.x,f+=T.x,d<0&&(l=ds,d=-d,f-=d),u&&(_=d/u,h+=(a.height-_)/2);break;case ji:if(T.y>=0&&(b>=D||u&&(f<=w||g>=k))){C=!1;break}P(ji),_+=T.y,_<0&&(l=Da,_=-_,h-=_),u&&(d=_*u,f+=(a.width-d)/2);break;case Dl:if(u){if(T.y<=0&&(h<=S||g>=k)){C=!1;break}P(Da),_-=T.y,h+=T.y,d=_*u}else P(Da),P(ds),T.x>=0?gS&&(_-=T.y,h+=T.y):(_-=T.y,h+=T.y);d<0&&_<0?(l=Pl,_=-_,d=-d,h-=_,f-=d):d<0?(l=Ml,d=-d,f-=d):_<0&&(l=Nl,_=-_,h-=_);break;case Ml:if(u){if(T.y<=0&&(h<=S||f<=w)){C=!1;break}P(Da),_-=T.y,h+=T.y,d=_*u,f+=a.width-d}else P(Da),P(ps),T.x<=0?f>w?(d-=T.x,f+=T.x):T.y<=0&&h<=S&&(C=!1):(d-=T.x,f+=T.x),T.y<=0?h>S&&(_-=T.y,h+=T.y):(_-=T.y,h+=T.y);d<0&&_<0?(l=Nl,_=-_,d=-d,h-=_,f-=d):d<0?(l=Dl,d=-d,f-=d):_<0&&(l=Pl,_=-_,h-=_);break;case Pl:if(u){if(T.x<=0&&(f<=w||b>=D)){C=!1;break}P(ps),d-=T.x,f+=T.x,_=d/u}else P(ji),P(ps),T.x<=0?f>w?(d-=T.x,f+=T.x):T.y>=0&&b>=D&&(C=!1):(d-=T.x,f+=T.x),T.y>=0?b=0&&(g>=k||b>=D)){C=!1;break}P(ds),d+=T.x,_=d/u}else P(ji),P(ds),T.x>=0?g=0&&b>=D&&(C=!1):d+=T.x,T.y>=0?b0?l=T.y>0?Nl:Dl:T.x<0&&(f-=d,l=T.y>0?Pl:Ml),T.y<0&&(h-=_),this.cropped||(Co(this.cropBox,nn),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}C&&(a.width=d,a.height=_,a.left=f,a.top=h,this.action=l,this.renderCropBox()),mr(i,function(j){j.startX=j.endX,j.startY=j.endY})}},mte={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&xr(this.dragBox,af),Co(this.cropBox,nn),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Gt({},this.initialImageData),this.canvasData=Gt({},this.initialCanvasData),this.cropBoxData=Gt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Gt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Co(this.dragBox,af),xr(this.cropBox,nn)),this},replace:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),r?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,mr(this.previews,function(n){n.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,Co(this.cropper,TO)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,xr(this.cropper,TO)),this},destroy:function(){var e=this.element;return e[Vt]?(e[Vt]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=n.left,a=n.top;return this.moveTo(Nv(e)?e:o+Number(e),Nv(r)?r:a+Number(r))},moveTo:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.movable&&(yt(e)&&(n.left=e,o=!0),yt(r)&&(n.top=r,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(e,r){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,r)},zoomTo:function(e,r,n){var o=this.options,a=this.canvasData,i=a.width,l=a.height,u=a.naturalWidth,f=a.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&o.zoomable){var h=u*e,d=f*e;if(pc(this.element,q0,{ratio:e,oldRatio:i/u,originalEvent:n})===!1)return this;if(n){var _=this.pointers,g=$P(this.cropper),b=_&&Object.keys(_).length?tte(_):{pageX:n.pageX,pageY:n.pageY};a.left-=(h-i)*((b.pageX-g.left-a.left)/i),a.top-=(d-l)*((b.pageY-g.top-a.top)/l)}else sc(r)&&yt(r.x)&&yt(r.y)?(a.left-=(h-i)*((r.x-a.left)/i),a.top-=(d-l)*((r.y-a.top)/l)):(a.left-=(h-i)/2,a.top-=(d-l)/2);a.width=h,a.height=d,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),yt(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var r=this.imageData.scaleY;return this.scale(e,yt(r)?r:1)},scaleY:function(e){var r=this.imageData.scaleX;return this.scale(yt(r)?r:1,e)},scale:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.scalable&&(yt(e)&&(n.scaleX=e,o=!0),yt(r)&&(n.scaleY=r,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.options,n=this.imageData,o=this.canvasData,a=this.cropBoxData,i;if(this.ready&&this.cropped){i={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height};var l=n.width/n.naturalWidth;if(mr(i,function(h,d){i[d]=h/l}),e){var u=Math.round(i.y+i.height),f=Math.round(i.x+i.width);i.x=Math.round(i.x),i.y=Math.round(i.y),i.width=f-i.x,i.height=u-i.y}}else i={x:0,y:0,width:0,height:0};return r.rotatable&&(i.rotate=n.rotate||0),r.scalable&&(i.scaleX=n.scaleX||1,i.scaleY=n.scaleY||1),i},setData:function(e){var r=this.options,n=this.imageData,o=this.canvasData,a={};if(this.ready&&!this.disabled&&sc(e)){var i=!1;r.rotatable&&yt(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,i=!0),r.scalable&&(yt(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,i=!0),yt(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,i=!0)),i&&this.renderCanvas(!0,!0);var l=n.width/n.naturalWidth;yt(e.x)&&(a.left=e.x*l+o.left),yt(e.y)&&(a.top=e.y*l+o.top),yt(e.width)&&(a.width=e.width*l),yt(e.height)&&(a.height=e.height*l),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?Gt({},this.containerData):{}},getImageData:function(){return this.sized?Gt({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,r={};return this.ready&&mr(["left","top","width","height","naturalWidth","naturalHeight"],function(n){r[n]=e[n]}),r},setCanvasData:function(e){var r=this.canvasData,n=r.aspectRatio;return this.ready&&!this.disabled&&sc(e)&&(yt(e.left)&&(r.left=e.left),yt(e.top)&&(r.top=e.top),yt(e.width)?(r.width=e.width,r.height=e.width/n):yt(e.height)&&(r.height=e.height,r.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,r;return this.ready&&this.cropped&&(r={left:e.left,top:e.top,width:e.width,height:e.height}),r||{}},setCropBoxData:function(e){var r=this.cropBoxData,n=this.options.aspectRatio,o,a;return this.ready&&this.cropped&&!this.disabled&&sc(e)&&(yt(e.left)&&(r.left=e.left),yt(e.top)&&(r.top=e.top),yt(e.width)&&e.width!==r.width&&(o=!0,r.width=e.width),yt(e.height)&&e.height!==r.height&&(a=!0,r.height=e.height),n&&(o?r.height=r.width/n:a&&(r.width=r.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 r=this.canvasData,n=nte(this.image,this.imageData,r,e);if(!this.cropped)return n;var o=this.getData(e.rounded),a=o.x,i=o.y,l=o.width,u=o.height,f=n.width/Math.floor(r.naturalWidth);f!==1&&(a*=f,i*=f,l*=f,u*=f);var h=l/u,d=ja({aspectRatio:h,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),_=ja({aspectRatio:h,width:e.minWidth||0,height:e.minHeight||0},"cover"),g=ja({aspectRatio:h,width:e.width||(f!==1?n.width:l),height:e.height||(f!==1?n.height:u)}),b=g.width,w=g.height;b=Math.min(d.width,Math.max(_.width,b)),w=Math.min(d.height,Math.max(_.height,w));var S=document.createElement("canvas"),k=S.getContext("2d");S.width=dc(b),S.height=dc(w),k.fillStyle=e.fillColor||"transparent",k.fillRect(0,0,b,w);var D=e.imageSmoothingEnabled,C=D===void 0?!0:D,O=e.imageSmoothingQuality;k.imageSmoothingEnabled=C,O&&(k.imageSmoothingQuality=O);var M=n.width,T=n.height,P=a,j=i,z,E,L,G,B,F;P<=-l||P>M?(P=0,z=0,L=0,B=0):P<=0?(L=-P,P=0,z=Math.min(M,l+P),B=z):P<=M&&(L=0,z=Math.min(l,M-P),B=z),z<=0||j<=-u||j>T?(j=0,E=0,G=0,F=0):j<=0?(G=-j,j=0,E=Math.min(T,u+j),F=E):j<=T&&(G=0,E=Math.min(u,T-j),F=E);var H=[P,j,z,E];if(B>0&&F>0){var K=b/l;H.push(L*K,G*K,B*K,F*K)}return k.drawImage.apply(k,[n].concat(mP(H.map(function(ee){return Math.floor(dc(ee))})))),S},setAspectRatio:function(e){var r=this.options;return!this.disabled&&!Nv(e)&&(r.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var r=this.options,n=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var a=e===zw,i=r.movable&&e===vP;e=a||i?e:bP,r.dragMode=e,fu(n,pu,e),ic(n,z0,a),ic(n,F0,i),r.cropBoxMovable||(fu(o,pu,e),ic(o,z0,a),ic(o,F0,i))}return this}},_te=Eo.Cropper,TP=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Oee(this,t),!e||!Uee.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=Gt({},LO,sc(r)&&r),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 Dee(t,[{key:"init",value:function(){var r=this.element,n=r.tagName.toLowerCase(),o;if(!r[Vt]){if(r[Vt]=this,n==="img"){if(this.isImg=!0,o=r.getAttribute("src")||"",this.originalUrl=o,!o)return;o=r.src}else n==="canvas"&&window.HTMLCanvasElement&&(o=r.toDataURL());this.load(o)}}},{key:"load",value:function(r){var n=this;if(r){this.url=r,this.imageData={};var o=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Bee.test(r)){Wee.test(r)?this.read(ste(r)):this.clone();return}var i=new XMLHttpRequest,l=this.clone.bind(this);this.reloading=!0,this.xhr=i,i.onabort=l,i.onerror=l,i.ontimeout=l,i.onprogress=function(){i.getResponseHeader("content-type")!==jO&&i.abort()},i.onload=function(){n.read(i.response)},i.onloadend=function(){n.reloading=!1,n.xhr=null},a.checkCrossOrigin&&FO(r)&&o.crossOrigin&&(r=BO(r)),i.open("GET",r,!0),i.responseType="arraybuffer",i.withCredentials=o.crossOrigin==="use-credentials",i.send()}}},{key:"read",value:function(r){var n=this.options,o=this.imageData,a=cte(r),i=0,l=1,u=1;if(a>1){this.url=ite(r,jO);var f=lte(a);i=f.rotate,l=f.scaleX,u=f.scaleY}n.rotatable&&(o.rotate=i),n.scalable&&(o.scaleX=l,o.scaleY=u),this.clone()}},{key:"clone",value:function(){var r=this.element,n=this.url,o=r.crossOrigin,a=n;this.options.checkCrossOrigin&&FO(n)&&(o||(o="anonymous"),a=BO(n)),this.crossOrigin=o,this.crossOriginUrl=a;var i=document.createElement("img");o&&(i.crossOrigin=o),i.src=a||n,i.alt=r.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),xr(i,OO),r.parentNode.insertBefore(i,r.nextSibling)}},{key:"start",value:function(){var r=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var o=Eo.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Eo.navigator.userAgent),a=function(f,h){Gt(r.imageData,{naturalWidth:f,naturalHeight:h,aspectRatio:f/h}),r.initialImageData=Gt({},r.imageData),r.sizing=!1,r.sized=!0,r.build()};if(n.naturalWidth&&!o){a(n.naturalWidth,n.naturalHeight);return}var i=document.createElement("img"),l=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){a(i.width,i.height),o||l.removeChild(i)},i.src=n.src,o||(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;",l.appendChild(i))}},{key:"stop",value:function(){var r=this.image;r.onload=null,r.onerror=null,r.parentNode.removeChild(r),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var r=this.element,n=this.options,o=this.image,a=r.parentNode,i=document.createElement("div");i.innerHTML=Hee;var l=i.querySelector(".".concat(Vt,"-container")),u=l.querySelector(".".concat(Vt,"-canvas")),f=l.querySelector(".".concat(Vt,"-drag-box")),h=l.querySelector(".".concat(Vt,"-crop-box")),d=h.querySelector(".".concat(Vt,"-face"));this.container=a,this.cropper=l,this.canvas=u,this.dragBox=f,this.cropBox=h,this.viewBox=l.querySelector(".".concat(Vt,"-view-box")),this.face=d,u.appendChild(o),xr(r,nn),a.insertBefore(l,r.nextSibling),Co(o,OO),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,xr(h,nn),n.guides||xr(h.getElementsByClassName("".concat(Vt,"-dashed")),nn),n.center||xr(h.getElementsByClassName("".concat(Vt,"-center")),nn),n.background&&xr(l,"".concat(Vt,"-bg")),n.highlight||xr(d,Iee),n.cropBoxMovable&&(xr(d,F0),fu(d,pu,Lw)),n.cropBoxResizable||(xr(h.getElementsByClassName("".concat(Vt,"-line")),nn),xr(h.getElementsByClassName("".concat(Vt,"-point")),nn)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),rn(n.ready)&&On(r,RO,n.ready,{once:!0}),pc(r,RO)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var r=this.cropper.parentNode;r&&r.removeChild(this.cropper),Co(this.element,nn)}}},{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=_te,t}},{key:"setDefaults",value:function(r){Gt(LO,sc(r)&&r)}}])}();Gt(TP.prototype,ute,dte,pte,fte,hte,mte);var gs=function(){return gs=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&j.zoomTo(ee)}(P.currentTarget.cropper,C),S&&S(P)}}));k&&k(T)}return function(){var P,j;(j=(P=O.current)===null||P===void 0?void 0:P.cropper)===null||j===void 0||j.destroy()}},[O]);var M=function(T){return gte.reduce(function(P,j){var z=P,E=j;return z[E],Rv(z,[typeof E=="symbol"?E:E+""])},T)}(gs(gs({},D),{crossOrigin:u,src:a,alt:w}));return y.createElement("div",{style:i,className:l},y.createElement("img",gs({},M,{style:yte,ref:O})))});const Ma={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},vte={once:"once",interval:"interval",intervalBetween:"intervalBetween",specific:"specific"},zr={seconds:"seconds",minutes:"minutes"},WO=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function go(t){return t<10?`0${t}`:`${t}`}const bte={mode:"interval",interval:{period:1,unit:zr.minutes}};function Np(t){if(t==="*")return[0,1,2,3,4,5,6];const e=t.split(","),r=[];return e.forEach(n=>{const o=n.split("-");if(o.length===2){const a=parseInt(o[0],10),i=parseInt(o[1],10);for(let l=a;l<=i;l++)r.includes(l===7?0:l)||r.push(l===7?0:l)}else{n==="7"&&(n="0");const a=parseInt(n,10);r.includes(a)||r.push(a)}}),r.sort(),r}function OP(t,e){t=t.replace(/['"]/g,"").trim();const r=t.split(" ");let n,o=null;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",date:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:null,minutes:r[0]||"*",hours:r[1]||"*",date:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n.seconds===null&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)&&(o={mode:"interval",interval:{period:1,unit:zr.minutes}}),n.seconds==="*"&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:1,unit:zr.seconds}}:n.seconds===null&&n.minutes.includes("/")&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.minutes.split("/")[1],10),unit:zr.minutes}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.seconds.split("/")[1],10),unit:zr.seconds}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.seconds.split("/")[1],10),unit:zr.seconds,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Np(n.dow)}}:n.seconds===null&&n.minutes.includes("/")&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.minutes.split("/")[1],10),unit:zr.minutes,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Np(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"specific",specific:{time:`${go(parseInt(n.hours,10))}:${go(parseInt(n.minutes,10))}`,weekdays:Np(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&parseInt(n.date,10).toString()===n.date&&parseInt(n.months,10).toString()===n.months&&(n.dow==="*"||e)&&(o={mode:"once",once:{time:`${go(parseInt(n.hours,10))}:${go(parseInt(n.minutes,10))}`,date:`${go(parseInt(n.date,10))}.${go(parseInt(n.months,10))}`}}),o}class hu extends y.Component{constructor(e){super(e);let r=typeof e.cronExpression=="string"?e.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";r[0]==="{"&&(r="");const n=OP(r||"* * * * *",!0)||bte;this.state={extended:!1,cron:hu.state2cron(n),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:zr.minutes},intervalBetween:{period:1,unit:zr.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,n),this.state.cron!==e.cronExpression&&setTimeout(()=>e.onChange&&e.onChange(this.state.cron),100)}static periodArray2text(e,r=7){if(r=r||7,e.length===r)return"*";const n=[];let o=null,a=null;if(!e.length)return"_";for(let i=0;i60&&(n.period=60),n.period!==void 0&&n.period<1&&(n.period=1),n.minutes!==void 0&&n.minutes!==null&&n.minutes>60&&(n.minutes=60),n.minutes!==void 0&&n.minutes!==null&&n.minutes<1&&(n.minutes=1),n.hours!==void 0&&n.hours!==null&&n.hours>24&&(n.hours=24),n.hours!==void 0&&n.hours!==null&&n.hours<1&&(n.hours=1),e.extended)r=`${n.minutes!==void 0&&n.minutes!==null&&n.minutes>1?`*/${n.minutes}`:"*"} ${n.hours!==void 0&&n.hours!==null&&n.hours>1?`*/${n.hours}`:"*"} * * *`;else switch(n.unit){case zr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * * * * *`;break;case zr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} * * * *`;break}}else if(e.mode==="intervalBetween"){const n=e.intervalBetween||{period:1,unit:zr.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let o;switch(n.timeFrom=n.timeFrom||0,n.timeTo=n.timeTo===void 0?24:n.timeTo,n.timeFrom!==0&&n.timeTo===24&&(n.timeTo=23),n.timeFrom===0&&n.timeTo===24?o="*":o=n.timeFrom!==n.timeTo?`${n.timeFrom}-${n.timeTo}`:"*",n.period>60&&(n.period=60),n.period<1&&(n.period=1),n.unit=n.unit||zr.minutes,n.unit){case zr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * ${o} * * ${this.periodArray2text(n.weekdays)}`;break;case zr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} ${o} * * ${this.periodArray2text(n.weekdays)}`;break}}else if(e.mode==="specific"){const n=e.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},o=(n.time||"00:00").split(":");let a=parseInt(o[1],10)||0;a>59&&(a=59),a<0&&(a=0);let i=parseInt(o[0],10)||0;i>23&&(i=59),i<0&&(i=0),r=`${a} ${i} * * ${this.periodArray2text(n.weekdays||[])}`}else if(e.mode==="once"){const n=e.once||{time:"00:00",date:""};n.date||(n.date=`${new Date().getDate()}.${go(new Date().getMonth()+1)}`);const o=(n.time||"00:00").split(":"),a=n.date.split(".");let i=parseInt(o[1],10)||0;i>59&&(i=59),i<0&&(i=0);let l=parseInt(o[0],10)||0;l>23&&(l=59),l<0&&(l=0);let u=parseInt(a[0],10)||1;u>31&&(u=31),u<1&&(l=1);let f=parseInt(a[1],10)||1;f>12&&(f=12),f<1&&(f=1),r=`${i} ${l} ${u} ${f} *`}return r}recalcCron(){this.onChange(hu.state2cron(this.state))}getControlsWeekdaysElements(e){const r=e==="intervalBetween"?this.state.intervalBetween:this.state.specific;return y.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},y.createElement("h5",null,U.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(n=>y.createElement(gt,{key:WO[n],control:y.createElement(tn,{checked:r.weekdays.includes(n),onChange:o=>{const a=JSON.parse(JSON.stringify(this.state[e])),i=a.weekdays.indexOf(n);o.target.checked?i===-1&&a.weekdays.push(n):i!==-1&&a.weekdays.splice(i,1),a.weekdays.sort(),e==="intervalBetween"?this.setState({intervalBetween:a},()=>this.recalcCron()):this.setState({specific:a},()=>this.recalcCron())},value:n.toString()}),label:U.t(WO[n])})))}getControlsPeriodElements(e){const r=e==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?y.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},y.createElement("h5",{style:{marginBottom:5}},U.t("sc_period")),y.createElement(Fr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:U.t("sc_minutes"),value:r.minutes,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.minutes=parseInt(n.target.value,10),o.minutes<1&&(o.minutes=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),y.createElement(Fr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:U.t("sc_hours"),value:r.hours,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.hours=parseInt(n.target.value,10),o.hours<1&&(o.hours=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):y.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},y.createElement("h5",{style:{marginBottom:5}},U.t("sc_period")),y.createElement(Fr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:U.t("sc_every"),value:r.period,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.period=parseInt(n.target.value,10),o.period<1&&(o.period=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),y.createElement(wo,{variant:"standard",style:{verticalAlign:"bottom"},value:r.unit,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.unit=n.target.value,e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())}},y.createElement(fr,{value:"seconds"},U.t("sc_seconds")),")",y.createElement(fr,{value:"minutes"},U.t("sc_minutes")),")"))}getControlsTime(e){const r=e==="once"?this.state.once:this.state.specific;return y.createElement(Fi,{variant:"standard",sx:{...Ma.formControl,"&.MuiFormControl-root":Ma.formControlMarginRight}},y.createElement(Fr,{variant:"standard",key:"at",label:U.t("sc_time"),value:r.time,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.time=n.target.value,e==="once"?this.setState({once:o},()=>this.recalcCron()):this.setState({specific:o},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const e=this.state.once;if(!e.date){const r=new Date;e.date=`${r.getDate()}.${go(r.getMonth()+1)}`}return y.createElement(Fi,{variant:"standard",style:Ma.formControl},y.createElement(Fr,{variant:"standard",key:"date",label:U.t("sc_date"),value:e.date,type:"text",slotProps:{htmlInput:{style:Ma.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.once));n.date=r.target.value,this.setState({once:n},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return y.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const e=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),y.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},y.createElement("h5",{style:{marginBottom:5}},U.t("sc_hours")),y.createElement(Fi,{variant:"standard",style:Ma.formControl},y.createElement(Tp,{shrink:!0,htmlFor:"age-label-placeholder"},U.t("sc_from")),y.createElement(wo,{variant:"standard",style:{width:100},value:e.timeFrom,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeFrom=parseInt(r.target.value,10),n.timeTo===24&&(n.timeTo=23),this.setState({intervalBetween:n},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>y.createElement(fr,{key:`B_${r}`,value:r},`${go(r)}:00`)))),y.createElement(Fi,{variant:"standard",style:Ma.formControl},y.createElement(Tp,{shrink:!0,htmlFor:"age-label-placeholder"},U.t("sc_to")),y.createElement(wo,{variant:"standard",style:{width:100},value:e.timeTo,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeTo=parseInt(r.target.value,10),this.setState({intervalBetween:n},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>y.createElement(fr,{key:`A_${r}`,value:r},`${go(r)}:00`)),!e.timeFrom&&y.createElement(fr,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[y.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(e){e!==this.state.mode&&this.setState({mode:e},()=>this.recalcCron())}onChange(e){e!==this.state.cron&&(this.setState({cron:e}),this.props.onChange&&this.props.onChange(e))}render(){return y.createElement("div",{style:Ma.mainDiv},y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},y.createElement(Fr,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?U.t("sc_invalid_cron"):ZN(this.state.cron,this.props.language||"en")),y.createElement("div",null,y.createElement(Fi,{variant:"standard",style:{...Ma.formControl,marginLeft:8,marginTop:8}},y.createElement(Tp,null,U.t("ra_Repeat")),y.createElement(wo,{variant:"standard",value:this.state.mode,onChange:e=>this.onModeChange(e.target.value),inputProps:{name:"mode",id:"mode"}},y.createElement(fr,{value:"once"},U.t("sc_once")),y.createElement(fr,{value:"interval"},U.t("sc_interval")),y.createElement(fr,{value:"intervalBetween"},U.t("sc_intervalBetween")),y.createElement(fr,{value:"specific"},U.t("sc_specific"))))),this.state.mode===vte.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const wte={headerID:{fontWeight:"bold",fontStyle:"italic"},radio:{display:"inline-block"},dialogPaper:{height:"calc(100% - 96px)"}};class DXe extends y.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:r}}handleCancel(){this.props.onClose()}handleOk(e){if(!e){const r=Aa.cron2state(this.state.cron);if(r.seconds==="*"||r.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(r.minutes==="*"||r.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?y.createElement(RH,{title:U.t("ra_Please confirm"),text:U.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:e=>this.setState({showWarning:""},()=>{e&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return y.createElement(ra,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":wte.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),y.createElement(aa,{id:"cron-dialog-title"},this.props.title||U.t("ra_Define schedule...")),y.createElement(oa,{style:{height:"100%",overflow:"hidden"}},y.createElement(Aa,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()})),y.createElement(na,null,!!this.props.clearButton&&y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:y.createElement(Dp,null)},this.props.clear||U.t("ra_Clear")),y.createElement(Qt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const xte={dialogPaper:{height:"calc(100% - 96px)"}};class MXe extends y.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof r=="object"||r[0]==="{")&&!this.props.noWizard?"wizard":OP(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(e){this.setState({mode:e})}render(){return y.createElement(ra,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":xte.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},y.createElement(aa,{id:"cron-dialog-title"},this.props.title||U.t("ra_Define schedule...")),y.createElement(oa,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?y.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&y.createElement(y.Fragment,null,y.createElement(zt,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),y.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},U.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&y.createElement(y.Fragment,null,y.createElement(zt,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),y.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},U.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&y.createElement(y.Fragment,null,y.createElement(zt,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),y.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},U.t("sc_cron")))):null,this.state.mode==="simple"&&y.createElement(hu,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()}),this.state.mode==="wizard"&&y.createElement(Tr,{theme:this.props.theme,schedule:this.state.cron,onChange:e=>this.setState({cron:e})}),this.state.mode==="complex"&&y.createElement(Aa,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const fs={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class NXe extends y.Component{constructor(r){super(r);xe(this,"dialogName");xe(this,"filters");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const n=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(n)}catch{this.filters={}}r.filters&&(this.filters={...this.filters,...r.filters});let o=this.props.selected||[];typeof o!="object"?o=[o]:o=[...o],o=o.filter(a=>a),this.state={selected:o}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let r;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?r=[y.createElement("span",{key:"selected"},U.t("ra_Selected")," "),y.createElement("span",{key:"id",style:fs.headerID},this.state.selected)]:r=[y.createElement("span",{key:"selected"},U.t("ra_Selected")," "),y.createElement("span",{key:"id",style:fs.headerID},U.t("%s items",this.state.selected.length))]:r=this.props.title||U.t("ra_Please select file..."),y.createElement(ra,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{...fs.dialog,...fs.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},y.createElement(aa,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":fs.titleRoot}},r),y.createElement(oa,{style:{...fs.content,...fs.contentMobile}},y.createElement(vee,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(n,o,a)=>{this.setState({selected:Array.isArray(n)?n:[n]},()=>o&&(!this.props.selectOnlyFolders||a)&&this.handleOk())},t:this.props.t||U.t,lang:this.props.lang||U.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",onClick:()=>this.handleOk(),startIcon:y.createElement(Hs,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const Ste={dialogPaper:{height:"calc(100% - 96px)"}};class PXe extends y.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return y.createElement(ra,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":Ste.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},y.createElement(aa,{id:"cron-dialog-title"},this.props.title||U.t("ra_Define CRON...")),y.createElement(oa,{style:{height:"100%",overflow:"hidden"}},y.createElement(hu,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const kte=""+new URL("echarts-BDq-rBJC.png",import.meta.url).href,Cte="Append",$te="Cancel",Ete="Categories",Tte="Checked",Ote="Delete",Dte="Close",Mte="Commercial",Nte="Configure",Pte="Connected",Rte="Copied",Ate="Create",Ite="Crop",jte="Delete",Lte="Delete",zte="Discard",Fte="Disconnected",Bte="Error",Wte="Filter",Ute="Friday",Hte="Latitude",qte="Expires in",Vte="Longitude",Xte="Message",Gte="Monday",Jte="Name",Yte="Objects",Kte="Ok",Zte="Product",Qte="Repeat",ere="Replace",tre="Root",rre="Saturday",nre="Save",ore="Selected",are="States",sre="Sunday",ire="Thursday",cre="Timestamp",lre="Tuesday",ure="Update",dre="Valid till",pre="Value",fre="Version",hre="Wednesday",mre="Width",_re="Yes",gre="different",yre="Everyone can read object",vre="Everyone can read state",bre="Everyone can write object",wre="Everyone can write state",xre="Group can read object",Sre="Group can read state",kre="Group can write object",Cre="Group can write state",$re="Owner can read object",Ere="Owner can read state",Tre="Owner can write object",Ore="Owner can write state",Dre="Buttons",Mre="Changed from",Nre="close",Pre="Create boolean state",Rre="Create channel",Are="Create device",Ire="Create number state",jre="Create state",Lre="Create string state",zre="days",Fre="Fr",Bre="Mo",Wre="Sa",Ure="Su",Hre="Th",qre="Tu",Vre="We",Xre="Expert mode",Gre="All files",Jre="Audio",Yre="Code/JSON",Kre="Images",Zre="Text",Qre="Video",ene="Settings",tne="without",rne="Function",nne="ID",one="Name",ane="Role",sne="Room",ine="Type",cne="Invalid settings",lne="Last change",une="locally",dne="Apr",pne="Aug",fne="Dec",hne="Feb",mne="Jan",_ne="Jul",gne="Jun",yne="Mai",vne="Mar",bne="Nov",wne="Oct",xne="Sep",Sne="Apr",kne="Aug",Cne="Dec",$ne="Feb",Ene="Jan",Tne="Jul",One="Jun",Dne="Mai",Mne="Mar",Nne="Nov",Pne="Oct",Rne="Sep",Ane="none",Ine="Object changed by",jne="Object last changed at",Lne="Settings from other adapter %s",zne="Quality code",Fne="repeat",Bne='To select folder, just hold the key "shift" by clicking the folder.',Wne="State changed by",Une="Object changed from",Hne="Timestamp",qne="Acknowledged",Vne="Comment",Xne="Copy the state value",Gne="Custom settings",Jne="Delete object",Yne="Edit object",Kne="Edit the state value",Zne="From",Qne="Last changed",eoe="Quality",toe="Time stamp",roe="User",noe="Value",ooe="Value",aoe="Warning: The CRON job will run every minute during the specified period!",soe="Warning: The CRON job will run every second during the specified period!",ioe="CRON",coe="Date",loe="Dates",uoe="Day",doe="Day of week",poe="Every",foe="every N days",hoe="every Nth day of the week",moe="every N day of week",_oe="every N hours",goe="every N minutes",yoe="every N months",voe="every N seconds",boe="every day",woe="every day of the week",xoe="every day of the week",Soe="every hour",koe="every minute",Coe="every month",$oe="every second",Eoe="From",Toe="Hours",Ooe="Interval",Doe="Interval between",Moe="Invalid CRON",Noe="Minutes",Poe="months",Roe="Once",Aoe="Period",Ioe="Seconds",joe="Simple",Loe="Specific time",zoe="specific dates",Foe="specific day(s) of the week",Boe="specific day of weeks",Woe="specific hours",Uoe="specific minutes",Hoe="specific months",qoe="specific seconds",Voe="Time",Xoe="To",Goe="Wizard",Joe="all",Yoe="Astro day",Koe="Astro night",Zoe="Dawn",Qoe="Dusk",eae="Golden hour",tae="Golden hour end",rae="Nadir",nae="Nautical dawn",oae="Nautical dusk",aae="Night",sae="Night end",iae="Solar noon",cae="Sunrise",lae="Sunrise end",uae="Sunset",dae="Sunset start",pae="at",fae="at %s",hae="every day",mae="every hour",_ae="every minute",gae="every month",yae="every %s day",vae="every %s hours",bae="every %s minutes",wae="every %s months",xae="every %s weeks",Sae="every %s years",kae="every week",Cae="every year",$ae="from %s to %s",Eae="never",Tae="on %s of %s",Oae="on %s and %s of",Dae="on every date of",Mae="%s",Nae="%s and %s",Pae="on %s",Rae="on %s and %s",Aae="on weekends",Iae="on working days",jae="will ne be not executed any more, because start is in the past",Lae="on %s",zae="from %s",Fae="Execute from to",Bae="to %s",Wae="every",Uae="Specific time",Hae="from",qae="From-to",Vae="Interval time",Xae="invert",Gae="none",Jae="on",Yae="Period",Kae="Daily",Zae="Dates",Qae="Day",ese="Every",tse="Every day",rse="Every month",nse="Every week",ose="Every year",ase="Hours",sse="Minutes",ise="month",cse="Monthly",lse="Once",use="Specific months",dse="Week",pse="Weekdays",fse="Weekend",hse="Weekly",mse="Workdays",_se="Year",gse="Yearly",yse="Specific time",vse="Time",bse="to",wse="Valid",xse="from",Sse="to",kse="Whole day",Cse="every month",$se={"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_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:Cte,"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:$te,"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:Ete,"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:Tte,ra_Clear:Ote,"ra_Clear filter":"Clear filter","ra_Clear icon":"Clear icon","ra_Clone current row":"Clone current row",ra_Close:Dte,"ra_Collapse all nodes":"Collapse all nodes","ra_Collapse one step node":"Collapse one level",ra_Commercial:Mte,ra_Configure:Nte,"ra_Configure visible columns":"Configure visible columns","ra_Confirm deletion of %s":"Confirm deletion of %s",ra_Connected:Pte,ra_Copied:Rte,"ra_Copied %s":'Copied "%s"',"ra_Copy content":"Copy content",ra_Create:Ate,"ra_Create alias":"Create alias","ra_Create folder":"Create folder","ra_Create new folder in %s":"Create new folder in %s",ra_Crop:Ite,"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:jte,ra_Delete:Lte,"ra_Delete (no confirm for 5 mins)":"Delete (no confirm for 5 mins)","ra_Delete current row":"Delete current row","ra_Deselect all":"Unselect all","ra_Device → Channel → State":"Device → Channel → State",ra_Discard:zte,ra_Disconnected:Fte,"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_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 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_Error:Bte,"ra_Expand all nodes":"Expand all nodes","ra_Expand one step node":"Expand one level","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:Wte,"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:Ute,"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_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 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:Hte,"ra_License %s":"License %s","ra_License agreement":"License agreement","ra_License does not exist":"License does not exist",ra_tooltip_expire:qte,"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_Longitude:Vte,'ra_May not trigger "updateLicenses"':'May not trigger "updateLicenses"',ra_Message:Xte,ra_Monday:Gte,"ra_Move down":"Move down","ra_Move up":"Move up",ra_Name:Jte,"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 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_Objects:Yte,ra_Ok:Kte,"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 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_Private certificate":"Private certificate",ra_Product:Zte,"ra_Public certificate":"Public certificate","ra_Quality code":"Quality","ra_Refresh tree":"Refresh tree","ra_Reload files":"Reload files",ra_Repeat:Qte,ra_Replace:ere,"ra_Request timed out":"Request timed out","ra_Restrict to folder":"Restrict to folder",ra_Root:tre,ra_Saturday:rre,ra_Save:nre,"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:ore,"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_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:are,"ra_Suitable license not found in license manager":"Suitable license not found in license manager",ra_Sunday:sre,"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:ire,ra_Timestamp:cre,"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:lre,"ra_Unknown error":"Unknown error","ra_Unknown error!":"Unknown error!",ra_Update:ure,"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:dre,ra_Value:pre,ra_Version:fre,"ra_View file":"View file","ra_View: %s":"View: %s",ra_Wednesday:hre,ra_Width:mre,ra_Yes:_re,"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___different__:gre,ra_aclEveryone_read_object:yre,ra_aclEveryone_read_state:vre,ra_aclEveryone_write_object:bre,ra_aclEveryone_write_state:wre,ra_aclGroup_read_object:xre,ra_aclGroup_read_state:Sre,ra_aclGroup_write_object:kre,ra_aclGroup_write_state:Cre,ra_aclOwner_read_object:$re,ra_aclOwner_read_state:Ere,ra_aclOwner_write_object:Tre,ra_aclOwner_write_state:Ore,ra_buttons:Dre,ra_changedFrom:Mre,ra_close:Nre,ra_create_boolean_state:Pre,ra_create_channel:Rre,ra_create_device:Are,ra_create_number_state:Ire,ra_create_state:jre,ra_create_string_state:Lre,ra_daysShortText:zre,ra_dow_Fr:Fre,ra_dow_Mo:Bre,ra_dow_Sa:Wre,ra_dow_Su:Ure,ra_dow_Th:Hre,ra_dow_Tu:qre,ra_dow_We:Vre,ra_expertMode:Xre,ra_fileType_all:Gre,ra_fileType_audio:Jre,ra_fileType_code:Yre,ra_fileType_images:Kre,ra_fileType_txt:Zre,ra_fileType_video:Qre,"ra_fileType_video,":"Video",ra_filter_customs:ene,ra_filter_customs_without:tne,ra_filter_func:rne,ra_filter_id:nne,ra_filter_name:one,ra_filter_role:ane,ra_filter_room:sne,ra_filter_type:ine,"ra_import data from %s file":"Import data from %s file",ra_invalidConfig:cne,ra_lastChange:lne,ra_locally:une,ra_month_Apr:dne,ra_month_Aug:pne,ra_month_Dec:fne,ra_month_Feb:hne,ra_month_Jan:mne,ra_month_Jul:_ne,ra_month_Jun:gne,ra_month_Mai:yne,ra_month_Mar:vne,ra_month_Nov:bne,ra_month_Oct:wne,ra_month_Sep:xne,ra_months_Apr:Sne,ra_months_Aug:kne,ra_months_Dec:Cne,ra_months_Feb:$ne,ra_months_Jan:Ene,ra_months_Jul:Tne,ra_months_Jun:One,ra_months_Mai:Dne,ra_months_Mar:Mne,ra_months_Nov:Nne,ra_months_Oct:Pne,ra_months_Sep:Rne,ra_none:Ane,ra_object_changed_by:Ine,ra_object_changed_by_user:jne,ra_otherConfig:Lne,ra_qualityCode:zne,ra_repeat:Fne,ra_select_folder_hint:Bne,ra_state_changed_by:Wne,ra_state_changed_from:Une,ra_timestamp:Hne,ra_tooltip_ack:qne,ra_tooltip_comment:Vne,ra_tooltip_copyState:Xne,ra_tooltip_customConfig:Gne,ra_tooltip_deleteObject:Jne,ra_tooltip_editObject:Yne,ra_tooltip_editState:Kne,ra_tooltip_from:Zne,ra_tooltip_lc:Qne,ra_tooltip_quality:eoe,ra_tooltip_ts:toe,ra_tooltip_user:roe,ra_tooltip_value:noe,"ra_use seconds":"use seconds",ra_val:ooe,"ra_via internet":"via internet",ra_warning_every_minute:aoe,ra_warning_every_second:soe,sc_cron:ioe,sc_date:coe,sc_dates:loe,sc_dow:uoe,sc_dows:doe,sc_every:poe,sc_everyN_dates:foe,sc_everyN_dow:hoe,sc_everyN_dows:moe,sc_everyN_hours:_oe,sc_everyN_minutes:goe,sc_everyN_months:yoe,sc_everyN_seconds:voe,sc_every_dates:boe,sc_every_dow:woe,sc_every_dows:xoe,sc_every_hours:Soe,sc_every_minutes:koe,sc_every_months:Coe,sc_every_seconds:$oe,sc_from:Eoe,sc_hours:Toe,sc_interval:Ooe,sc_intervalBetween:Doe,sc_invalid_cron:Moe,sc_minutes:Noe,sc_months:Poe,sc_once:Roe,sc_period:Aoe,sc_seconds:Ioe,sc_simple:joe,sc_specific:Loe,sc_specific_dates:zoe,sc_specific_dow:Foe,sc_specific_dows:Boe,sc_specific_hours:Woe,sc_specific_minutes:Uoe,sc_specific_months:Hoe,sc_specific_seconds:qoe,sc_time:Voe,sc_to:Xoe,sc_wizard:Goe,sch_all:Joe,sch_astroDay:Yoe,sch_astroNight:Koe,sch_astro_dawn:Zoe,sch_astro_dusk:Qoe,sch_astro_goldenHour:eae,sch_astro_goldenHourEnd:tae,sch_astro_nadir:rae,sch_astro_nauticalDawn:nae,sch_astro_nauticalDusk:oae,sch_astro_night:aae,sch_astro_nightEnd:sae,sch_astro_solarNoon:iae,sch_astro_sunrise:cae,sch_astro_sunriseEnd:lae,sch_astro_sunset:uae,sch_astro_sunsetStart:dae,sch_at:pae,sch_desc_atTime:fae,sch_desc_everyDay:hae,sch_desc_everyHour:mae,sch_desc_everyMinute:_ae,sch_desc_everyMonth:gae,sch_desc_everyNDay:yae,sch_desc_everyNHours:vae,sch_desc_everyNMinutes:bae,sch_desc_everyNMonths:wae,sch_desc_everyNWeeks:xae,sch_desc_everyNYears:Sae,sch_desc_everyWeek:kae,sch_desc_everyYear:Cae,sch_desc_intervalFromTo:$ae,sch_desc_never:Eae,sch_desc_onDate:Tae,sch_desc_onDates:Oae,sch_desc_onEveryDate:Dae,sch_desc_onMonth:Mae,sch_desc_onMonths:Nae,sch_desc_onWeekday:Pae,sch_desc_onWeekdays:Rae,sch_desc_onWeekends:Aae,sch_desc_onWorkdays:Iae,sch_desc_onceInPast:jae,sch_desc_once_on:Lae,sch_desc_validFrom:zae,sch_desc_validFromTo:Fae,sch_desc_validTo:Bae,sch_every:Wae,sch_exactTime:Uae,sch_from:Hae,sch_fromTo:qae,sch_intervalTime:Vae,sch_invert:Xae,sch_no_one:Gae,sch_on:Jae,sch_period:Yae,sch_periodDaily:Kae,sch_periodDates:Zae,sch_periodDay:Qae,sch_periodEvery:ese,sch_periodEveryDay:tse,sch_periodEveryMonth:rse,sch_periodEveryWeek:nse,sch_periodEveryYear:ose,sch_periodHours:ase,sch_periodMinutes:sse,sch_periodMonth:ise,sch_periodMonthly:cse,sch_periodOnce:lse,sch_periodSpecificMonths:use,sch_periodWeek:dse,sch_periodWeekdays:pse,sch_periodWeekend:fse,sch_periodWeekly:hse,sch_periodWorkdays:mse,sch_periodYear:_se,sch_periodYearly:gse,sch_specificTime:yse,sch_time:vse,sch_to:bse,sch_valid:wse,sch_validFrom:xse,sch_validTo:Sse,sch_wholeDay:kse,sch_yearEveryMonth:Cse},Ese="Anhängen",Tse="Abbrechen",Ose="Kategorien",Dse="Geprüft",Mse="Löschen",Nse="Schließen",Pse="Kommerziell",Rse="Konfigurieren",Ase="Verbunden",Ise="Kopiert",jse="Erstellen",Lse="Ernte",zse="Entf",Fse="Löschen",Bse="Verwerfen",Wse="Getrennt",Use="Fehler",Hse="Filter",qse="Freitag",Vse="Breite",Xse="Längengrad",Gse="Meldung",Jse="Montag",Yse="Name",Kse="Objekte",Zse="OK",Qse="Produkt",eie="Wiederholen",tie="Ersetzen",rie="Anfang",nie="Samstag",oie="Speichern",aie="Ausgewählt",sie="Zustände",iie="Sonntag",cie="Donnerstag",lie="Zeitstempel",uie="Dienstag",die="Aktualisieren",pie="Gültig bis",fie="Wert",hie="Ausführung",mie="Mittwoch",_ie="Breite",gie="Ja",yie="unterschiedlich",vie="Jeder kann Objekt lesen",bie="Jeder kann Zustand lesen",wie="Jeder kann ein Objekt schreiben",xie="Jeder kann Zustand schreiben",Sie="Gruppe kann Objekt lesen",kie="Gruppe kann Status lesen",Cie="Gruppe kann Objekt schreiben",$ie="Gruppe kann Status schreiben",Eie="Besitzer kann Objekt lesen",Tie="Besitzer kann Zustand lesen",Oie="Besitzer kann Objekt schreiben",Die="Besitzer kann Zustand schreiben",Mie="Tasten",Nie="Geändert von",Pie="Schließen",Rie="Booleschen Zustand erstellen",Aie="Kanal erstellen",Iie="Gerät erstellen",jie="Nummern-Zustand erstellen",Lie="Zustand erstellen",zie="String-Zustand erstellen",Fie="T.",Bie="Fr",Wie="Mo",Uie="Sa",Hie="So",qie="Do",Vie="Di",Xie="Mi",Gie="Expertenmodus",Jie="Alle Dateien",Yie="Audio",Kie="Code/JSON",Zie="Bilder",Qie="Text",ece="Video",tce="Einstellungen",rce="ohne",nce="Funktion",oce="ID",ace="Name",sce="Rolle",ice="Raum",cce="Typ",lce="Ungültige Einstellungen",uce="Letzte Änderung",dce="örtlich",pce="Apr",fce="Aug",hce="Dez",mce="Feb",_ce="Jan",gce="Jul",yce="Jun",vce="Mai",bce="Mär",wce="Nov",xce="Okt",Sce="Sep",kce="Apr",Cce="Aug",$ce="Dez",Ece="Feb",Tce="Jan",Oce="Jul",Dce="Jun",Mce="Mai",Nce="Mär",Pce="Nov",Rce="Okt",Ace="Sep",Ice="kein",jce="Objekt geändert von",Lce="Objekt zuletzt geändert um",zce="Einstellungen von anderen Adaptern %s",Fce="Qualitätscode",Bce="wiederholen",Wce='Um einen Ordner auszuwählen, halten Sie einfach die Taste "Shift" gedrückt, indem Sie auf den Ordner klicken.',Uce="Zustand geändert durch",Hce="Objekt geändert von",qce="Zeitstempel",Vce="Bestätigt",Xce="Kommentar",Gce="Statuswert kopieren",Jce="Benutzerdefinierte Einstellungen",Yce="Objekt löschen",Kce="Objekt bearbeiten",Zce="Statuswert bearbeiten",Qce="Von",ele="Zuletzt geändert",tle="Qualität",rle="Zeitstempel",nle="Benutzer",ole="Wert",ale="Wert",sle="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Minute ausgeführt!",ile="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Sekunde ausgeführt!",cle="CRON",lle="Datum",ule="Tage",dle="Tag",ple="Wochentage",fle="Jeden",hle="alle N Tage",mle="jeden x-ten Tag der Woche",_le="alle N Wochentage",gle="alle N Stunden",yle="alle N Minuten",vle="alle N Monate",ble="alle N Sekunden",wle="jeden Tag",xle="jeden Tag der Woche",Sle="jeden Tag der Woche",kle="jede Stunde",Cle="jede Minute",$le="jeden Monat",Ele="jede Sekunde",Tle="Von",Ole="Stunden",Dle="Intervall",Mle="Intervall zwischen",Nle="Ungültiger CRON",Ple="Minuten",Rle="Monate",Ale="Einmal",Ile="Zeitraum",jle="Sekunden",Lle="Einfach",zle="Bestimmte Zeit",Fle="bestimmte Tage",Ble="bestimmte(r) Tag(e) der Woche",Wle="bestimmten Wochentag",Ule="bestimmte Stunden",Hle="bestimmte Minuten",qle="bestimmte Monate",Vle="bestimmte Sekunden",Xle="Zeit",Gle="Bis",Jle="Wizard",Yle="alle",Kle="Astronomischer Tag",Zle="Astronomische Nacht",Qle="Morgendämmerung",eue="Abenddämmerung",tue="Goldene Stunde",rue="Goldene Stundenende",nue="Nadir",oue="Nautische Morgendämmerung",aue="Nautische Abenddämmerung",sue="Nacht",iue="Nachtende",cue="Sonnenmittag",lue="Sonnenaufgang",uue="Sonnenaufgangende",due="Sonnenuntergang",pue="Sonnenuntergangstart",fue="am",hue="um %s",mue="jeden Tag",_ue="jede Stunde",gue="jede Minute",yue="jeden Monat",vue="jeden %s Tag",bue="alle %s Stunden",wue="alle %s Minuten",xue="alle %s Monate",Sue="alle %s Wochen",kue="alle %s Jahre",Cue="jede Woche",$ue="jedes Jahr",Eue="von %s bis %s",Tue="noch nie",Oue="am %s von %s",Due="am %s und %s von",Mue="an jedem Datum von",Nue="%s",Pue="%s und %s",Rue="auf %s",Aue="auf %s und %s",Iue="an Wochenenden",jue="an Werktagen",Lue="wird nicht mehr ausgeführt, weil der Start in der Vergangenheit ist",zue="auf %s",Fue="von %s",Bue="Ausführen von bis",Wue="bis %s",Uue="jeden",Hue="Bestimmte Zeit",que="von",Vue="Von bis",Xue="Zeitintervall",Gue="umkehren",Jue="keiner",Yue="am",Kue="Zeitraum",Zue="Täglich",Que="Daten",ede="Tag",tde="Jeden",rde="Jeden Tag",nde="Jeden Monat",ode="Jede Woche",ade="Jedes Jahr",sde="Stunden",ide="Minuten",cde="Monat",lde="Monatlich",ude="Einmal",dde="Bestimmte Monate",pde="Woche",fde="Wochentage",hde="Wochenende",mde="Wöchentlich",_de="Arbeitstage",gde="Jahr",yde="Jährlich",vde="Bestimmte Zeit",bde="Zeit",wde="zu",xde="Gültigkeit",Sde="von",kde="bis",Cde="Ganzer Tag",$de="jeden Monat",Ede={"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_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:Ese,"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:Tse,"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:Ose,"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:Dse,ra_Clear:Mse,"ra_Clear filter":"Filter löschen","ra_Clear icon":"Symbol löschen","ra_Clone current row":"Aktuelle Zeile klonen",ra_Close:Nse,"ra_Collapse all nodes":"Alle Knoten zuklappen","ra_Collapse one step node":"Eine Ebene zuklappen",ra_Commercial:Pse,ra_Configure:Rse,"ra_Configure visible columns":"Spalten Konfigurieren","ra_Confirm deletion of %s":"Das Löschen von %s bestätigen",ra_Connected:Ase,ra_Copied:Ise,"ra_Copied %s":'"%s" kopiert',"ra_Copy content":"Inhalte kopieren",ra_Create:jse,"ra_Create alias":"Alias erstellen","ra_Create folder":"Ordner erstellen","ra_Create new folder in %s":'Neuen Ordner in "%s" erstellen',ra_Crop:Lse,"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:zse,ra_Delete:Fse,"ra_Delete (no confirm for 5 mins)":"Löschen (keine Bestätigung für 5 Minuten)","ra_Delete current row":"Aktuelle Zeile löschen","ra_Deselect all":"Alles abwählen","ra_Device → Channel → State":"Gerät → Kanal → Zustand",ra_Discard:Bse,ra_Disconnected:Wse,"ra_Do not export values of states":"Keine Zustandswerte exportieren","ra_Do not use let's encrypt":"Let's encrypt nicht verwenden","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 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_Error:Use,"ra_Expand all nodes":"Alle Knoten aufklappen","ra_Expand one step node":"Eine Ebene aufklappen","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:Hse,"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:qse,"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_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 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:Vse,"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_Longitude:Xse,'ra_May not trigger "updateLicenses"':"Löst möglicherweise nicht „updateLicenses“ aus",ra_Message:Gse,ra_Monday:Jse,"ra_Move down":"Nach unten","ra_Move up":"Nach oben",ra_Name:Yse,"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 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_Objects:Kse,ra_Ok:Zse,"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 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_Private certificate":"Privates Zertifikat",ra_Product:Qse,"ra_Public certificate":"Öffentliches Zertifikat","ra_Quality code":"Qualität","ra_Refresh tree":"Baum aktualisieren","ra_Reload files":"Dateien neu laden",ra_Repeat:eie,ra_Replace:tie,"ra_Request timed out":"Zeitüberschreitung der Anforderung","ra_Restrict to folder":"Auf Ordner beschränken",ra_Root:rie,ra_Saturday:nie,ra_Save:oie,"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:aie,"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_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:sie,"ra_Suitable license not found in license manager":"Passende Lizenz im Lizenzmanager nicht gefunden",ra_Sunday:iie,"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:cie,ra_Timestamp:lie,"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:uie,"ra_Unknown error":"Unbekannter Fehler","ra_Unknown error!":"Unbekannter Fehler!",ra_Update:die,"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:pie,ra_Value:fie,ra_Version:hie,"ra_View file":"Datei ansehen","ra_View: %s":"Anschauen: %s",ra_Wednesday:mie,ra_Width:_ie,ra_Yes:gie,"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___different__:yie,ra_aclEveryone_read_object:vie,ra_aclEveryone_read_state:bie,ra_aclEveryone_write_object:wie,ra_aclEveryone_write_state:xie,ra_aclGroup_read_object:Sie,ra_aclGroup_read_state:kie,ra_aclGroup_write_object:Cie,ra_aclGroup_write_state:$ie,ra_aclOwner_read_object:Eie,ra_aclOwner_read_state:Tie,ra_aclOwner_write_object:Oie,ra_aclOwner_write_state:Die,ra_buttons:Mie,ra_changedFrom:Nie,ra_close:Pie,ra_create_boolean_state:Rie,ra_create_channel:Aie,ra_create_device:Iie,ra_create_number_state:jie,ra_create_state:Lie,ra_create_string_state:zie,ra_daysShortText:Fie,ra_dow_Fr:Bie,ra_dow_Mo:Wie,ra_dow_Sa:Uie,ra_dow_Su:Hie,ra_dow_Th:qie,ra_dow_Tu:Vie,ra_dow_We:Xie,ra_expertMode:Gie,ra_fileType_all:Jie,ra_fileType_audio:Yie,ra_fileType_code:Kie,ra_fileType_images:Zie,ra_fileType_txt:Qie,ra_fileType_video:ece,"ra_fileType_video,":"Video",ra_filter_customs:tce,ra_filter_customs_without:rce,ra_filter_func:nce,ra_filter_id:oce,ra_filter_name:ace,ra_filter_role:sce,ra_filter_room:ice,ra_filter_type:cce,"ra_import data from %s file":"Daten aus %s-Datei importieren",ra_invalidConfig:lce,ra_lastChange:uce,ra_locally:dce,ra_month_Apr:pce,ra_month_Aug:fce,ra_month_Dec:hce,ra_month_Feb:mce,ra_month_Jan:_ce,ra_month_Jul:gce,ra_month_Jun:yce,ra_month_Mai:vce,ra_month_Mar:bce,ra_month_Nov:wce,ra_month_Oct:xce,ra_month_Sep:Sce,ra_months_Apr:kce,ra_months_Aug:Cce,ra_months_Dec:$ce,ra_months_Feb:Ece,ra_months_Jan:Tce,ra_months_Jul:Oce,ra_months_Jun:Dce,ra_months_Mai:Mce,ra_months_Mar:Nce,ra_months_Nov:Pce,ra_months_Oct:Rce,ra_months_Sep:Ace,ra_none:Ice,ra_object_changed_by:jce,ra_object_changed_by_user:Lce,ra_otherConfig:zce,ra_qualityCode:Fce,ra_repeat:Bce,ra_select_folder_hint:Wce,ra_state_changed_by:Uce,ra_state_changed_from:Hce,ra_timestamp:qce,ra_tooltip_ack:Vce,ra_tooltip_comment:Xce,ra_tooltip_copyState:Gce,ra_tooltip_customConfig:Jce,ra_tooltip_deleteObject:Yce,ra_tooltip_editObject:Kce,ra_tooltip_editState:Zce,ra_tooltip_from:Qce,ra_tooltip_lc:ele,ra_tooltip_quality:tle,ra_tooltip_ts:rle,ra_tooltip_user:nle,ra_tooltip_value:ole,"ra_use seconds":"Sekunden benutzen",ra_val:ale,"ra_via internet":"übers Internet",ra_warning_every_minute:sle,ra_warning_every_second:ile,sc_cron:cle,sc_date:lle,sc_dates:ule,sc_dow:dle,sc_dows:ple,sc_every:fle,sc_everyN_dates:hle,sc_everyN_dow:mle,sc_everyN_dows:_le,sc_everyN_hours:gle,sc_everyN_minutes:yle,sc_everyN_months:vle,sc_everyN_seconds:ble,sc_every_dates:wle,sc_every_dow:xle,sc_every_dows:Sle,sc_every_hours:kle,sc_every_minutes:Cle,sc_every_months:$le,sc_every_seconds:Ele,sc_from:Tle,sc_hours:Ole,sc_interval:Dle,sc_intervalBetween:Mle,sc_invalid_cron:Nle,sc_minutes:Ple,sc_months:Rle,sc_once:Ale,sc_period:Ile,sc_seconds:jle,sc_simple:Lle,sc_specific:zle,sc_specific_dates:Fle,sc_specific_dow:Ble,sc_specific_dows:Wle,sc_specific_hours:Ule,sc_specific_minutes:Hle,sc_specific_months:qle,sc_specific_seconds:Vle,sc_time:Xle,sc_to:Gle,sc_wizard:Jle,sch_all:Yle,sch_astroDay:Kle,sch_astroNight:Zle,sch_astro_dawn:Qle,sch_astro_dusk:eue,sch_astro_goldenHour:tue,sch_astro_goldenHourEnd:rue,sch_astro_nadir:nue,sch_astro_nauticalDawn:oue,sch_astro_nauticalDusk:aue,sch_astro_night:sue,sch_astro_nightEnd:iue,sch_astro_solarNoon:cue,sch_astro_sunrise:lue,sch_astro_sunriseEnd:uue,sch_astro_sunset:due,sch_astro_sunsetStart:pue,sch_at:fue,sch_desc_atTime:hue,sch_desc_everyDay:mue,sch_desc_everyHour:_ue,sch_desc_everyMinute:gue,sch_desc_everyMonth:yue,sch_desc_everyNDay:vue,sch_desc_everyNHours:bue,sch_desc_everyNMinutes:wue,sch_desc_everyNMonths:xue,sch_desc_everyNWeeks:Sue,sch_desc_everyNYears:kue,sch_desc_everyWeek:Cue,sch_desc_everyYear:$ue,sch_desc_intervalFromTo:Eue,sch_desc_never:Tue,sch_desc_onDate:Oue,sch_desc_onDates:Due,sch_desc_onEveryDate:Mue,sch_desc_onMonth:Nue,sch_desc_onMonths:Pue,sch_desc_onWeekday:Rue,sch_desc_onWeekdays:Aue,sch_desc_onWeekends:Iue,sch_desc_onWorkdays:jue,sch_desc_onceInPast:Lue,sch_desc_once_on:zue,sch_desc_validFrom:Fue,sch_desc_validFromTo:Bue,sch_desc_validTo:Wue,sch_every:Uue,sch_exactTime:Hue,sch_from:que,sch_fromTo:Vue,sch_intervalTime:Xue,sch_invert:Gue,sch_no_one:Jue,sch_on:Yue,sch_period:Kue,sch_periodDaily:Zue,sch_periodDates:Que,sch_periodDay:ede,sch_periodEvery:tde,sch_periodEveryDay:rde,sch_periodEveryMonth:nde,sch_periodEveryWeek:ode,sch_periodEveryYear:ade,sch_periodHours:sde,sch_periodMinutes:ide,sch_periodMonth:cde,sch_periodMonthly:lde,sch_periodOnce:ude,sch_periodSpecificMonths:dde,sch_periodWeek:pde,sch_periodWeekdays:fde,sch_periodWeekend:hde,sch_periodWeekly:mde,sch_periodWorkdays:_de,sch_periodYear:gde,sch_periodYearly:yde,sch_specificTime:vde,sch_time:bde,sch_to:wde,sch_valid:xde,sch_validFrom:Sde,sch_validTo:kde,sch_wholeDay:Cde,sch_yearEveryMonth:$de},Tde="Добавить",Ode="Отмена",Dde="Категории",Mde="Проверено",Nde="Удалить",Pde="Закрыть",Rde="Коммерческая",Ade="Настроить",Ide="Соединение установлено",jde="скопировано",Lde="Создать",zde="Обрезать",Fde="Delete",Bde="Удалить",Wde="Отказаться",Ude="Отключено",Hde="Ошибка",qde="Фильтр",Vde="Пятница",Xde="Широта",Gde="Долгота",Jde="Сообщение",Yde="Понедельник",Kde="Имя",Zde="Объекты",Qde="Ok",epe="Продукт",tpe="Повторение",rpe="Заменять",npe="Начало",ope="Суббота",ape="Сохранить",spe="выбранный",ipe="Состояния",cpe="Воскресенье",lpe="Четверг",upe="Времени",dpe="Вторник",ppe="Обновить",fpe="Годен до",hpe="Значение",mpe="Версия",_pe="Среда",gpe="Ширина",ype="Да",vpe="разное",bpe="Каждый может читать объект",wpe="Каждый может читать состояние",xpe="Каждый может написать объект",Spe="Каждый может написать состояние",kpe="Группа может читать объект",Cpe="Группа может читать состояние",$pe="Группа может писать объект",Epe="Группа может записывать состояние",Tpe="Владелец может читать объект",Ope="Владелец может читать состояние",Dpe="Владелец может писать объект",Mpe="Владелец может писать состояние",Npe="Кнопки",Ppe="Изменено с",Rpe="Закрыть",Ape="Создать логическое состояние",Ipe="Создать канал",jpe="Создать устройство",Lpe="Создать состояние номера",zpe="Создать состояние",Fpe="Создать состояние строки",Bpe="д.",Wpe="Пт",Upe="Пн",Hpe="Сб",qpe="Вс",Vpe="Чт",Xpe="Вт",Gpe="Ср",Jpe="Экспертный режим",Ype="Все файлы",Kpe="Аудио",Zpe="Код/JSON",Qpe="Картинки",efe="Текст",tfe="видео",rfe="настройки",nfe="без",ofe="функция",afe="ID",sfe="Имя",ife="роль",cfe="комната",lfe="Тип",ufe="Неверные настройки",dfe="Последнее изменение",pfe="локально",ffe="Апр",hfe="Авг",mfe="Дек",_fe="Фев",gfe="Янв",yfe="Июл",vfe="Июн",bfe="Май",wfe="Мрт",xfe="Ноя",Sfe="Окт",kfe="Сен",Cfe="Апр",$fe="Авг",Efe="Дек",Tfe="Фев",Ofe="Янв",Dfe="Июнь",Mfe="Июль",Nfe="Май",Pfe="Март",Rfe="Ноя",Afe="Окт",Ife="Сен",jfe="ничего",Lfe="Объект изменен",zfe="Последний раз объект изменен в",Ffe="Настройки из другого адаптера %s",Bfe="Код качества",Wfe="повтор",Ufe="Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.",Hfe="Состояние изменено",qfe="Объект изменен с",Vfe="Отметка времени",Xfe="Подтверждено",Gfe="Комментарий",Jfe="Скопируйте значение состояния",Yfe="Пользовательские настройки",Kfe="Удалить объект",Zfe="Редактировать объект",Qfe="Изменить значение состояния",ehe="От",the="Последнее изменение",rhe="Качество",nhe="Отметка времени",ohe="пользователь",ahe="Значение",she="Значение",ihe="Внимание: задание CRON будет запускаться каждую минуту в течение указанного периода!",che="Внимание: задание CRON будет выполняться каждую секунду в течение указанного периода!",lhe="CRON",uhe="Дата",dhe="Даты",phe="День",fhe="День недели",hhe="каждый(ую/ые)",mhe="каждый N день",_he="каждый N-й день недели",ghe="каждый N день недели",yhe="каждые N часов",vhe="каждые N минут",bhe="каждые N месяцев",whe="каждые N секунд",xhe="каждый день",She="Каждый день недели",khe="каждый день недели",Che="каждый час",$he="каждую минуту",Ehe="каждый месяц",The="каждую секунду",Ohe="От",Dhe="часы",Mhe="Интервал",Nhe="Интервал между",Phe="Неверный CRON",Rhe="минуты",Ahe="Месяцы",Ihe="один раз",jhe="Период",Lhe="секунды",zhe="Просто",Fhe="Конкретное время",Bhe="конкретные даты",Whe="конкретный день(а) недели",Uhe="конкретный день недели",Hhe="конкретные часы",qhe="конкретные минуты",Vhe="конкретные месяцы",Xhe="конкретные секунды",Ghe="Время",Jhe="До",Yhe="Форма",Khe="все",Zhe="днём",Qhe="ночью",eme="Рассвет",tme="Сумерки",rme="Золотой час",nme="Конец золотого часа",ome="Надир",ame="Морской рассвет",sme="Морские сумерки",ime="Ночь",cme="Конец ночи",lme="Солнечный полдень",ume="Восход",dme="Восход солнца",pme="Заход солнца",fme="Начало заката",hme="дата",mme="в %s",_me="каждый день",gme="каждый час",yme="каждую минуту",vme="каждый месяц",bme="каждый %s день",wme="каждый %s часов",xme="каждые %s минут",Sme="каждые %s месяцев",kme="каждые %s недель",Cme="каждые %s лет",$me="каждую неделю",Eme="каждый год",Tme="от %s до %s",Ome="никогда",Dme="%s %s",Mme="%s и %s",Nme="в каждый день",Pme="%s",Rme="%s и %s",Ame="%s",Ime="%s и %s",jme="на выходных",Lme="в рабочие дни",zme="не будет больше выполняться, потому что начало в прошлом",Fme="%s",Bme="%s",Wme="Выполнить с",Ume="%s",Hme="каждый",qme="Конкретное время",Vme="от",Xme="От и до",Gme="Интервал времени",Jme="инвертировать",Yme="никакой",Kme="на",Zme="период",Qme="Ежедневно",e_e="Даты",t_e="День",r_e="каждый",n_e="Каждый день",o_e="Каждый месяц",a_e="Каждую неделю",s_e="Каждый год",i_e="часов",c_e="минут",l_e="месяц",u_e="ежемесячно",d_e="однажды",p_e="Конкретные месяцы",f_e="Неделю",h_e="Будние дни",m_e="выходные",__e="еженедельно",g_e="Рабочие дни",y_e="Год",v_e="каждый год",b_e="Конкретное время",w_e="Время",x_e="в",S_e="действительный",k_e="от",C_e="в",$_e="Весь день",E_e="каждый месяц",T_e={"ra_%s links from aliases":"%s ссылок из псевдонимов","ra_%s object(s) processed":"Объектов обработано: %s","ra_%s was imported":"%s был импортирован","ra_Accept license":"Принять лицензию","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:Tde,"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:Ode,"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:Dde,"ra_Chained certificate":"Chained сертификат","ra_Change color theme":"Изменить цветовую тему","ra_Changed from":"Изменено","ra_Channel → State":"Канал → Состояние","ra_Check license":"Проверить лицензию",ra_Checked:Mde,ra_Clear:Nde,"ra_Clear filter":"Очистить фильтр","ra_Clear icon":"Очистить значок","ra_Clone current row":"Клонировать текущую строку",ra_Close:Pde,"ra_Collapse all nodes":"Свернуть все узлы","ra_Collapse one step node":"Свернуть один уровень",ra_Commercial:Rde,ra_Configure:Ade,"ra_Configure visible columns":"Настроить видимые столбцы","ra_Confirm deletion of %s":"Подтвердите удаление %s",ra_Connected:Ide,ra_Copied:jde,"ra_Copied %s":'Скопировано "%s"',"ra_Copy content":"Копировать содержимое",ra_Create:Lde,"ra_Create alias":"Создать псевдоним","ra_Create folder":"Создать папку","ra_Create new folder in %s":"Создать новую папку в %s",ra_Crop:zde,"ra_Define CRON...":"Определите CRON...","ra_Define functions":"Задать функции","ra_Define rooms":"Задать комнаты","ra_Define schedule":"Задать расписание","ra_Define schedule...":"Определить расписание ...",ra_Del:Fde,ra_Delete:Bde,"ra_Delete (no confirm for 5 mins)":"Удалить (без подтверждения в течение 5 минут)","ra_Delete current row":"Удалить текущую строку","ra_Deselect all":"Убрать выбор везде","ra_Device → Channel → State":"Устройство → Канал → Состояние",ra_Discard:Wde,ra_Disconnected:Ude,"ra_Do not export values of states":"Не экспортировать значения состояний","ra_Do not use let's encrypt":"Не использовать Let’s Encrypt","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 function":"Изменить функцию","ra_Edit object field":"Поле редактирования объекта","ra_Edit role":"Изменить роль","ra_Edit room":"Редактировать комнату","ra_Edit value":"Изменить значение",ra_Error:Hde,"ra_Expand all nodes":"Развернуть все узлы","ra_Expand one step node":"Открыть один уровень","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:qde,"ra_Filter files":"Фильтровать файлы","ra_Folder name":"Имя папки","ra_Folder → Channel → State":"Папка → Канал → Состояние","ra_Folder → Device → Channel → State":"Папка → Устройство → Канал → Состояние","ra_Folder → State":"Папка → Состояние","ra_Folders always first":"Папки всегда на первом месте",ra_Friday:Vde,"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_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 answer from server":"Неверный ответ от сервера","ra_Invalid parent folder!":"Неверная родительская папка!","ra_Invalid structure":"Неверная структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Последнее изменение",ra_Latitude:Xde,"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_Longitude:Gde,'ra_May not trigger "updateLicenses"':"Не может запускать «updateLicenses»",ra_Message:Jde,ra_Monday:Yde,"ra_Move down":"Вниз","ra_Move up":"Вверх",ra_Name:Kde,"ra_No data found in file":"Данные в файле не найдены","ra_No one license found in license manager":"В менеджере лицензий не найдена ни одна лицензия","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_Objects:Zde,ra_Ok:Qde,"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 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_Private certificate":"Частный сертификат",ra_Product:epe,"ra_Public certificate":"Публичный сертификат","ra_Quality code":"Валидность","ra_Refresh tree":"Обновить дерево","ra_Reload files":"Обновить",ra_Repeat:tpe,ra_Replace:rpe,"ra_Request timed out":"Истекло время запроса","ra_Restrict to folder":"Ограничить папкой",ra_Root:npe,ra_Saturday:ope,ra_Save:ape,"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:spe,"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_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:ipe,"ra_Suitable license not found in license manager":"Подходящая лицензия не найдена в менеджере лицензий",ra_Sunday:cpe,"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:lpe,ra_Timestamp:upe,"ra_Toggle expert mode":"Переключить экспертный режим","ra_Toggle the states view":"Переключить режим просмотра состояний","ra_Toggle view mode":"Переключить режим просмотра","ra_Too big":"Слишком большое","ra_Too small":"Слишком маленькое","ra_Transparent dialog":"Прозрачный диалог",ra_Tuesday:dpe,"ra_Unknown error":"Неизвестная ошибка","ra_Unknown error!":"Неизвестная ошибка!",ra_Update:ppe,"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:fpe,ra_Value:hpe,ra_Version:mpe,"ra_View file":"Посмотреть файл","ra_View: %s":"Просмотр: %s",ra_Wednesday:_pe,ra_Width:gpe,ra_Yes:ype,"ra_You can export all objects or just the selected branch.":"Вы можете экспортировать все объекты или только выбранную ветвь.","ra_You can filter entries by entering here some text":"Вы можете отфильтровать записи, введя здесь текст",ra___different__:vpe,ra_aclEveryone_read_object:bpe,ra_aclEveryone_read_state:wpe,ra_aclEveryone_write_object:xpe,ra_aclEveryone_write_state:Spe,ra_aclGroup_read_object:kpe,ra_aclGroup_read_state:Cpe,ra_aclGroup_write_object:$pe,ra_aclGroup_write_state:Epe,ra_aclOwner_read_object:Tpe,ra_aclOwner_read_state:Ope,ra_aclOwner_write_object:Dpe,ra_aclOwner_write_state:Mpe,ra_buttons:Npe,ra_changedFrom:Ppe,ra_close:Rpe,ra_create_boolean_state:Ape,ra_create_channel:Ipe,ra_create_device:jpe,ra_create_number_state:Lpe,ra_create_state:zpe,ra_create_string_state:Fpe,ra_daysShortText:Bpe,ra_dow_Fr:Wpe,ra_dow_Mo:Upe,ra_dow_Sa:Hpe,ra_dow_Su:qpe,ra_dow_Th:Vpe,ra_dow_Tu:Xpe,ra_dow_We:Gpe,ra_expertMode:Jpe,ra_fileType_all:Ype,ra_fileType_audio:Kpe,ra_fileType_code:Zpe,ra_fileType_images:Qpe,ra_fileType_txt:efe,ra_fileType_video:tfe,"ra_fileType_video,":"видео",ra_filter_customs:rfe,ra_filter_customs_without:nfe,ra_filter_func:ofe,ra_filter_id:afe,ra_filter_name:sfe,ra_filter_role:ife,ra_filter_room:cfe,ra_filter_type:lfe,"ra_import data from %s file":"Импортировать данные из файла %s",ra_invalidConfig:ufe,ra_lastChange:dfe,ra_locally:pfe,ra_month_Apr:ffe,ra_month_Aug:hfe,ra_month_Dec:mfe,ra_month_Feb:_fe,ra_month_Jan:gfe,ra_month_Jul:yfe,ra_month_Jun:vfe,ra_month_Mai:bfe,ra_month_Mar:wfe,ra_month_Nov:xfe,ra_month_Oct:Sfe,ra_month_Sep:kfe,ra_months_Apr:Cfe,ra_months_Aug:$fe,ra_months_Dec:Efe,ra_months_Feb:Tfe,ra_months_Jan:Ofe,ra_months_Jul:Dfe,ra_months_Jun:Mfe,ra_months_Mai:Nfe,ra_months_Mar:Pfe,ra_months_Nov:Rfe,ra_months_Oct:Afe,ra_months_Sep:Ife,ra_none:jfe,ra_object_changed_by:Lfe,ra_object_changed_by_user:zfe,ra_otherConfig:Ffe,ra_qualityCode:Bfe,ra_repeat:Wfe,ra_select_folder_hint:Ufe,ra_state_changed_by:Hfe,ra_state_changed_from:qfe,ra_timestamp:Vfe,ra_tooltip_ack:Xfe,ra_tooltip_comment:Gfe,ra_tooltip_copyState:Jfe,ra_tooltip_customConfig:Yfe,ra_tooltip_deleteObject:Kfe,ra_tooltip_editObject:Zfe,ra_tooltip_editState:Qfe,ra_tooltip_from:ehe,ra_tooltip_lc:the,ra_tooltip_quality:rhe,ra_tooltip_ts:nhe,ra_tooltip_user:ohe,ra_tooltip_value:ahe,"ra_use seconds":"секунды",ra_val:she,"ra_via internet":"через интернет",ra_warning_every_minute:ihe,ra_warning_every_second:che,sc_cron:lhe,sc_date:uhe,sc_dates:dhe,sc_dow:phe,sc_dows:fhe,sc_every:hhe,sc_everyN_dates:mhe,sc_everyN_dow:_he,sc_everyN_dows:ghe,sc_everyN_hours:yhe,sc_everyN_minutes:vhe,sc_everyN_months:bhe,sc_everyN_seconds:whe,sc_every_dates:xhe,sc_every_dow:She,sc_every_dows:khe,sc_every_hours:Che,sc_every_minutes:$he,sc_every_months:Ehe,sc_every_seconds:The,sc_from:Ohe,sc_hours:Dhe,sc_interval:Mhe,sc_intervalBetween:Nhe,sc_invalid_cron:Phe,sc_minutes:Rhe,sc_months:Ahe,sc_once:Ihe,sc_period:jhe,sc_seconds:Lhe,sc_simple:zhe,sc_specific:Fhe,sc_specific_dates:Bhe,sc_specific_dow:Whe,sc_specific_dows:Uhe,sc_specific_hours:Hhe,sc_specific_minutes:qhe,sc_specific_months:Vhe,sc_specific_seconds:Xhe,sc_time:Ghe,sc_to:Jhe,sc_wizard:Yhe,sch_all:Khe,sch_astroDay:Zhe,sch_astroNight:Qhe,sch_astro_dawn:eme,sch_astro_dusk:tme,sch_astro_goldenHour:rme,sch_astro_goldenHourEnd:nme,sch_astro_nadir:ome,sch_astro_nauticalDawn:ame,sch_astro_nauticalDusk:sme,sch_astro_night:ime,sch_astro_nightEnd:cme,sch_astro_solarNoon:lme,sch_astro_sunrise:ume,sch_astro_sunriseEnd:dme,sch_astro_sunset:pme,sch_astro_sunsetStart:fme,sch_at:hme,sch_desc_atTime:mme,sch_desc_everyDay:_me,sch_desc_everyHour:gme,sch_desc_everyMinute:yme,sch_desc_everyMonth:vme,sch_desc_everyNDay:bme,sch_desc_everyNHours:wme,sch_desc_everyNMinutes:xme,sch_desc_everyNMonths:Sme,sch_desc_everyNWeeks:kme,sch_desc_everyNYears:Cme,sch_desc_everyWeek:$me,sch_desc_everyYear:Eme,sch_desc_intervalFromTo:Tme,sch_desc_never:Ome,sch_desc_onDate:Dme,sch_desc_onDates:Mme,sch_desc_onEveryDate:Nme,sch_desc_onMonth:Pme,sch_desc_onMonths:Rme,sch_desc_onWeekday:Ame,sch_desc_onWeekdays:Ime,sch_desc_onWeekends:jme,sch_desc_onWorkdays:Lme,sch_desc_onceInPast:zme,sch_desc_once_on:Fme,sch_desc_validFrom:Bme,sch_desc_validFromTo:Wme,sch_desc_validTo:Ume,sch_every:Hme,sch_exactTime:qme,sch_from:Vme,sch_fromTo:Xme,sch_intervalTime:Gme,sch_invert:Jme,sch_no_one:Yme,sch_on:Kme,sch_period:Zme,sch_periodDaily:Qme,sch_periodDates:e_e,sch_periodDay:t_e,sch_periodEvery:r_e,sch_periodEveryDay:n_e,sch_periodEveryMonth:o_e,sch_periodEveryWeek:a_e,sch_periodEveryYear:s_e,sch_periodHours:i_e,sch_periodMinutes:c_e,sch_periodMonth:l_e,sch_periodMonthly:u_e,sch_periodOnce:d_e,sch_periodSpecificMonths:p_e,sch_periodWeek:f_e,sch_periodWeekdays:h_e,sch_periodWeekend:m_e,sch_periodWeekly:__e,sch_periodWorkdays:g_e,sch_periodYear:y_e,sch_periodYearly:v_e,sch_specificTime:b_e,sch_time:w_e,sch_to:x_e,sch_valid:S_e,sch_validFrom:k_e,sch_validTo:C_e,sch_wholeDay:$_e,sch_yearEveryMonth:E_e},O_e="Acrescentar",D_e="Cancelar",M_e="Categorias",N_e="Verificado",P_e="Excluir",R_e="Perto",A_e="Comercial",I_e="Configurar",j_e="Conectado",L_e="Copiado",z_e="Crio",F_e="Colheita",B_e="Delete",W_e="Excluir",U_e="Descartar",H_e="Desconectado",q_e="Erro",V_e="Filtro",X_e="Sexta-feira",G_e="Latitude",J_e="Longitude",Y_e="mensagem",K_e="Segunda-feira",Z_e="Nome",Q_e="Objetos",ege="Está bem",tge="produtos",rge="Repita",nge="Substituir",oge="Raiz",age="Sábado",sge="Salve ",ige="Selecionado",cge="Estados",lge="Domingo",uge="Quinta-feira",dge="Timestamp",pge="Terça-feira",fge="Atualizar",hge="Válida até",mge="Valor",_ge="Versão",gge="Quarta-feira",yge="Largura",vge="Sim",bge="diferente",wge="Todos podem ler objetos",xge="Todos podem ler o estado",Sge="Todos podem escrever objetos",kge="Todos podem escrever o estado",Cge="O grupo pode ler o objeto",$ge="O grupo pode ler o estado",Ege="O grupo pode escrever o objeto",Tge="O grupo pode escrever o estado",Oge="O proprietário pode ler o objeto",Dge="O proprietário pode ler o estado",Mge="O proprietário pode escrever o objeto",Nge="O proprietário pode escrever o estado",Pge="Botões",Rge="Mudou de",Age="fechar",Ige="Criar estado booleano",jge="Criar canal",Lge="Criar dispositivo",zge="Criar estado numérico",Fge="Criar estado",Bge="Criar estado de string",Wge="d.",Uge="Fr",Hge="Mo",qge="Sa",Vge="Su",Xge="º",Gge="Tu",Jge="Nós",Yge="Modo especialista",Kge="Todos os arquivos",Zge="áudio",Qge="Código/JSON",eye="Imagens",tye="Texto",rye="Vídeo",nye="Configurações",oye="sem",aye="Função",sye="ID",iye="Nome",cye="Papel (Função)",lye="Quarto",uye="Tipo",dye="Configurações inválidas",pye="Última mudança",fye="localmente",hye="abril",mye="agosto",_ye="dezembro",gye="fevereiro",yye="janeiro",vye="julho",bye="junho",wye="Mai",xye="março",Sye="novembro",kye="outubro",Cye="setembro",$ye="abril",Eye="agosto",Tye="dezembro",Oye="fevereiro",Dye="janeiro",Mye="julho",Nye="junho",Pye="Mai",Rye="março",Aye="novembro",Iye="outubro",jye="setembro",Lye="Nenhum",zye="Objeto alterado por",Fye="Objeto alterado pela última vez em",Bye="Configurações de outro adaptador %s",Wye="Código de qualidade",Uye="repetir",Hye='Para selecionar a pasta, basta segurar a tecla "shift" clicando na pasta.',qye="Estado alterado por",Vye="Objeto alterado de",Xye="Timestamp",Gye="Confirmado",Jye="Comente",Yye="Copie o valor do estado",Kye="Opções customizadas",Zye="Excluir objeto",Qye="Editar objeto",eve="Edite o valor do estado",tve="De",rve="Última alteração",nve="Qualidade",ove="Timestamp",ave="Usuário",sve="Valor",ive="Valor",cve="Aviso: O trabalho CRON será executado a cada minuto durante o período especificado!",lve="Aviso: O trabalho CRON será executado a cada segundo durante o período especificado!",uve="CRON",dve="Data",pve="Dias",fve="Dia",hve="Dia da semana",mve="todos",_ve="a cada N dias",gve="todo enésimo dia da semana",yve="todos os N dias da semana",vve="a cada N horas",bve="a cada N minutos",wve="a cada N meses",xve="a cada N segundos",Sve="todo dia",kve="todos os dias da semana",Cve="todos os dias da semana",$ve="toda hora",Eve="todo minuto",Tve="todo mês",Ove="todo segundo",Dve="de",Mve="horas",Nve="intervalo",Pve="intervalo entre",Rve="CRON inválido",Ave="minutos",Ive="meses",jve="uma vez",Lve="período",zve="segundos",Fve="simples",Bve="tempo específico",Wve="datas específicas",Uve="dia(s) específico(s) da semana",Hve="dia específico de semanas",qve="horas específicas",Vve="minutos específicos",Xve="meses específicos",Gve="segundos específicos",Jve="tempo",Yve="para",Kve="assistente",Zve="tudo",Qve="dia astral",e0e="noite astral",t0e="amanhecer",r0e="anoitecer",n0e="hora dourada",o0e="Fim da hora dourada",a0e="nadir",s0e="Amanhecer náutico",i0e="Anoitecer náutico",c0e="noite",l0e="fim da noite",u0e="meio-dia solar",d0e="nascer do sol",p0e="fim do nascer do sol",f0e="pôr do sol",h0e="início do pôr do sol",m0e="às",_0e="em %s",g0e="todo dia",y0e="toda hora",v0e="todo minuto",b0e="todo mês",w0e="a cada %s dias",x0e="a cada %s horas",S0e="a cada %s minutos",k0e="a cada %s meses",C0e="a cada %s semanas",$0e="a cada %s anos",E0e="toda semana",T0e="todo ano",O0e="de %s para %s",D0e="nunca",M0e="em %s de %s",N0e="em %s e %s de",P0e="em toda data de",R0e="%s",A0e="%s e %s",I0e="em %s",j0e="em %s e %s",L0e="nos fins de semana",z0e="em dias úteis",F0e="não será mais executado, porque o começo está no passado",B0e="em %s",W0e="de %s",U0e="Executar de até",H0e="até %s",q0e="cada",V0e="tempo específico",X0e="de",G0e="de a´t",J0e="tempo de intervalo",Y0e="invertido",K0e="nenhum",Z0e="em",Q0e="período",ebe="diariamente",tbe="datas",rbe="dia",nbe="todos",obe="todo dia",abe="todo mês",sbe="toda semana",ibe="todo ano",cbe="horas",lbe="minutos",ube="mês",dbe="por mês",pbe="uma vez",fbe="meses específicos",hbe="semana",mbe="dias úteis",_be="final de semana",gbe="semanal",ybe="dias úteis",vbe="ano",bbe="anual",wbe="tempo específico",xbe="tempo",Sbe="para",kbe="válido",Cbe="de",$be="para",Ebe="dia inteiro",Tbe="todo mês",Obe={"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_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:O_e,"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:D_e,"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:M_e,"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:N_e,ra_Clear:P_e,"ra_Clear filter":"Filtro limpo","ra_Clear icon":"Ícone de limpeza","ra_Clone current row":"Clonar linha atual",ra_Close:R_e,"ra_Collapse all nodes":"Recolher todos os nós","ra_Collapse one step node":"Recolher um nível",ra_Commercial:A_e,ra_Configure:I_e,"ra_Configure visible columns":"Configurar colunas visíveis","ra_Confirm deletion of %s":"Confirme a exclusão de %s",ra_Connected:j_e,ra_Copied:L_e,"ra_Copied %s":'"%s" copiado',"ra_Copy content":"Copiar conteúdo",ra_Create:z_e,"ra_Create alias":"Criar alias","ra_Create folder":"Criar pasta","ra_Create new folder in %s":"Crie uma nova pasta em %s",ra_Crop:F_e,"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:B_e,ra_Delete:W_e,"ra_Delete (no confirm for 5 mins)":"Excluir (sem confirmação por 5 minutos)","ra_Delete current row":"Excluir linha atual","ra_Deselect all":"Desmarque todos","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:U_e,ra_Disconnected:H_e,"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_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 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_Error:q_e,"ra_Expand all nodes":"Expanda todos os nós","ra_Expand one step node":"Expanda um nível","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:V_e,"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:X_e,"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_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 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:G_e,"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_Longitude:J_e,'ra_May not trigger "updateLicenses"':'Pode não acionar "updateLicenses"',ra_Message:Y_e,ra_Monday:K_e,"ra_Move down":"Mover para baixo","ra_Move up":"Subir",ra_Name:Z_e,"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 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_Objects:Q_e,ra_Ok:ege,"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 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_Private certificate":"certificado privado",ra_Product:tge,"ra_Public certificate":"certificado público","ra_Quality code":"Qualidade","ra_Refresh tree":"Atualizar árvore","ra_Reload files":"Recarregar arquivos",ra_Repeat:rge,ra_Replace:nge,"ra_Request timed out":"Solicitação expirou","ra_Restrict to folder":"Restringir à pasta",ra_Root:oge,ra_Saturday:age,ra_Save:sge,"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:ige,"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_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:cge,"ra_Suitable license not found in license manager":"Licença adequada não encontrada no gerenciador de licenças",ra_Sunday:lge,"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:uge,ra_Timestamp:dge,"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:pge,"ra_Unknown error":"Erro desconhecido","ra_Unknown error!":"Erro desconhecido!",ra_Update:fge,"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:hge,ra_Value:mge,ra_Version:_ge,"ra_View file":"Visualizar arquivo","ra_View: %s":"Visualizar: %s",ra_Wednesday:gge,ra_Width:yge,ra_Yes:vge,"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___different__:bge,ra_aclEveryone_read_object:wge,ra_aclEveryone_read_state:xge,ra_aclEveryone_write_object:Sge,ra_aclEveryone_write_state:kge,ra_aclGroup_read_object:Cge,ra_aclGroup_read_state:$ge,ra_aclGroup_write_object:Ege,ra_aclGroup_write_state:Tge,ra_aclOwner_read_object:Oge,ra_aclOwner_read_state:Dge,ra_aclOwner_write_object:Mge,ra_aclOwner_write_state:Nge,ra_buttons:Pge,ra_changedFrom:Rge,ra_close:Age,ra_create_boolean_state:Ige,ra_create_channel:jge,ra_create_device:Lge,ra_create_number_state:zge,ra_create_state:Fge,ra_create_string_state:Bge,ra_daysShortText:Wge,ra_dow_Fr:Uge,ra_dow_Mo:Hge,ra_dow_Sa:qge,ra_dow_Su:Vge,ra_dow_Th:Xge,ra_dow_Tu:Gge,ra_dow_We:Jge,ra_expertMode:Yge,ra_fileType_all:Kge,ra_fileType_audio:Zge,ra_fileType_code:Qge,ra_fileType_images:eye,ra_fileType_txt:tye,ra_fileType_video:rye,"ra_fileType_video,":"Vídeo",ra_filter_customs:nye,ra_filter_customs_without:oye,ra_filter_func:aye,ra_filter_id:sye,ra_filter_name:iye,ra_filter_role:cye,ra_filter_room:lye,ra_filter_type:uye,"ra_import data from %s file":"Importar dados do arquivo %s",ra_invalidConfig:dye,ra_lastChange:pye,ra_locally:fye,ra_month_Apr:hye,ra_month_Aug:mye,ra_month_Dec:_ye,ra_month_Feb:gye,ra_month_Jan:yye,ra_month_Jul:vye,ra_month_Jun:bye,ra_month_Mai:wye,ra_month_Mar:xye,ra_month_Nov:Sye,ra_month_Oct:kye,ra_month_Sep:Cye,ra_months_Apr:$ye,ra_months_Aug:Eye,ra_months_Dec:Tye,ra_months_Feb:Oye,ra_months_Jan:Dye,ra_months_Jul:Mye,ra_months_Jun:Nye,ra_months_Mai:Pye,ra_months_Mar:Rye,ra_months_Nov:Aye,ra_months_Oct:Iye,ra_months_Sep:jye,ra_none:Lye,ra_object_changed_by:zye,ra_object_changed_by_user:Fye,ra_otherConfig:Bye,ra_qualityCode:Wye,ra_repeat:Uye,ra_select_folder_hint:Hye,ra_state_changed_by:qye,ra_state_changed_from:Vye,ra_timestamp:Xye,ra_tooltip_ack:Gye,ra_tooltip_comment:Jye,ra_tooltip_copyState:Yye,ra_tooltip_customConfig:Kye,ra_tooltip_deleteObject:Zye,ra_tooltip_editObject:Qye,ra_tooltip_editState:eve,ra_tooltip_from:tve,ra_tooltip_lc:rve,ra_tooltip_quality:nve,ra_tooltip_ts:ove,ra_tooltip_user:ave,ra_tooltip_value:sve,"ra_use seconds":"use segundos",ra_val:ive,"ra_via internet":"via internet",ra_warning_every_minute:cve,ra_warning_every_second:lve,sc_cron:uve,sc_date:dve,sc_dates:pve,sc_dow:fve,sc_dows:hve,sc_every:mve,sc_everyN_dates:_ve,sc_everyN_dow:gve,sc_everyN_dows:yve,sc_everyN_hours:vve,sc_everyN_minutes:bve,sc_everyN_months:wve,sc_everyN_seconds:xve,sc_every_dates:Sve,sc_every_dow:kve,sc_every_dows:Cve,sc_every_hours:$ve,sc_every_minutes:Eve,sc_every_months:Tve,sc_every_seconds:Ove,sc_from:Dve,sc_hours:Mve,sc_interval:Nve,sc_intervalBetween:Pve,sc_invalid_cron:Rve,sc_minutes:Ave,sc_months:Ive,sc_once:jve,sc_period:Lve,sc_seconds:zve,sc_simple:Fve,sc_specific:Bve,sc_specific_dates:Wve,sc_specific_dow:Uve,sc_specific_dows:Hve,sc_specific_hours:qve,sc_specific_minutes:Vve,sc_specific_months:Xve,sc_specific_seconds:Gve,sc_time:Jve,sc_to:Yve,sc_wizard:Kve,sch_all:Zve,sch_astroDay:Qve,sch_astroNight:e0e,sch_astro_dawn:t0e,sch_astro_dusk:r0e,sch_astro_goldenHour:n0e,sch_astro_goldenHourEnd:o0e,sch_astro_nadir:a0e,sch_astro_nauticalDawn:s0e,sch_astro_nauticalDusk:i0e,sch_astro_night:c0e,sch_astro_nightEnd:l0e,sch_astro_solarNoon:u0e,sch_astro_sunrise:d0e,sch_astro_sunriseEnd:p0e,sch_astro_sunset:f0e,sch_astro_sunsetStart:h0e,sch_at:m0e,sch_desc_atTime:_0e,sch_desc_everyDay:g0e,sch_desc_everyHour:y0e,sch_desc_everyMinute:v0e,sch_desc_everyMonth:b0e,sch_desc_everyNDay:w0e,sch_desc_everyNHours:x0e,sch_desc_everyNMinutes:S0e,sch_desc_everyNMonths:k0e,sch_desc_everyNWeeks:C0e,sch_desc_everyNYears:$0e,sch_desc_everyWeek:E0e,sch_desc_everyYear:T0e,sch_desc_intervalFromTo:O0e,sch_desc_never:D0e,sch_desc_onDate:M0e,sch_desc_onDates:N0e,sch_desc_onEveryDate:P0e,sch_desc_onMonth:R0e,sch_desc_onMonths:A0e,sch_desc_onWeekday:I0e,sch_desc_onWeekdays:j0e,sch_desc_onWeekends:L0e,sch_desc_onWorkdays:z0e,sch_desc_onceInPast:F0e,sch_desc_once_on:B0e,sch_desc_validFrom:W0e,sch_desc_validFromTo:U0e,sch_desc_validTo:H0e,sch_every:q0e,sch_exactTime:V0e,sch_from:X0e,sch_fromTo:G0e,sch_intervalTime:J0e,sch_invert:Y0e,sch_no_one:K0e,sch_on:Z0e,sch_period:Q0e,sch_periodDaily:ebe,sch_periodDates:tbe,sch_periodDay:rbe,sch_periodEvery:nbe,sch_periodEveryDay:obe,sch_periodEveryMonth:abe,sch_periodEveryWeek:sbe,sch_periodEveryYear:ibe,sch_periodHours:cbe,sch_periodMinutes:lbe,sch_periodMonth:ube,sch_periodMonthly:dbe,sch_periodOnce:pbe,sch_periodSpecificMonths:fbe,sch_periodWeek:hbe,sch_periodWeekdays:mbe,sch_periodWeekend:_be,sch_periodWeekly:gbe,sch_periodWorkdays:ybe,sch_periodYear:vbe,sch_periodYearly:bbe,sch_specificTime:wbe,sch_time:xbe,sch_to:Sbe,sch_valid:kbe,sch_validFrom:Cbe,sch_validTo:$be,sch_wholeDay:Ebe,sch_yearEveryMonth:Tbe},Dbe="toevoegen",Mbe="Annuleer",Nbe="Categorieën",Pbe="Gecontroleerd",Rbe="Verwijderen",Abe="Dichtbij",Ibe="Reclame",jbe="Configureren",Lbe="Verbonden",zbe="Gekopieerd",Fbe="Creëer",Bbe="Bijsnijden",Wbe="Delete",Ube="Verwijderen",Hbe="Weggooien",qbe="Verbinding verbroken",Vbe="Fout",Xbe="Filter",Gbe="Vrijdag",Jbe="Breedtegraad",Ybe="Lengtegraad",Kbe="Bericht",Zbe="Maandag",Qbe="Naam",ewe="Voorwerpen",twe="OK",rwe="Product",nwe="Herhaling",owe="Vervangen",awe="Wortel",swe="Zaterdag",iwe="Sparen",cwe="Geselecteerd",lwe="Staten",uwe="Zondag",dwe="Donderdag",pwe="Tijdstempel",fwe="Dinsdag",hwe="Bijwerken",mwe="Geldig tot",_we="Waarde",gwe="Versie",ywe="Woensdag",vwe="Breedte",bwe="Ja",wwe="verschillend",xwe="Iedereen kan object lezen",Swe="Iedereen kan staat lezen",kwe="Iedereen kan object schrijven",Cwe="Iedereen kan staat schrijven",$we="Groep kan object lezen",Ewe="Groep kan status lezen",Twe="Groep kan object schrijven",Owe="Groep kan staat schrijven",Dwe="Eigenaar kan object lezen",Mwe="Eigenaar kan staat lezen",Nwe="Eigenaar kan object schrijven",Pwe="Eigenaar kan staat schrijven",Rwe="Toetsen",Awe="Veranderd van",Iwe="dichtbij",jwe="Creëer een Booleaanse status",Lwe="Kanaal maken",zwe="Apparaat maken",Fwe="Nummerstatus maken",Bwe="Staat creëren",Wwe="Tekenreeksstatus maken",Uwe="d.",Hwe="Fr",qwe="Mo",Vwe="Za",Xwe="Zo",Gwe="Th",Jwe="Tu",Ywe="Wij",Kwe="Expert modus",Zwe="Alle bestanden",Qwe="Audio",e1e="Code/JSON",t1e="Afbeeldingen",r1e="Tekst",n1e="Video",o1e="Instellingen",a1e="zonder",s1e="Functie",i1e="ID",c1e="Naam",l1e="Rol",u1e="Kamer",d1e="Type",p1e="Ongeldige instellingen",f1e="Laatste wijziging",h1e="plaatselijk",m1e="april",_1e="aug",g1e="dec",y1e="februari",v1e="jan",b1e="jul",w1e="juni",x1e="Mei",S1e="mrt",k1e="nov",C1e="Okt",$1e="sept",E1e="april",T1e="aug",O1e="dec",D1e="februari",M1e="jan",N1e="jul",P1e="juni",R1e="Mei",A1e="mrt",I1e="nov",j1e="Okt",L1e="sept",z1e="geen",F1e="Object veranderd door",B1e="Object voor het laatst gewijzigd om",W1e="Instellingen van andere adapter %s",U1e="Kwaliteitscode",H1e="herhalen",q1e='Om een map te selecteren, houdt u gewoon de toets "shift" ingedrukt door op de map te klikken.',V1e="Staat veranderd door",X1e="Object veranderd van",G1e="Tijdstempel",J1e="Erkende vlag",Y1e="Opmerking",K1e="Kopieer de statuswaarde",Z1e="Aangepaste instellingen",Q1e="Object verwijderen",exe="Object bewerken",txe="Bewerk de statuswaarde",rxe="Van",nxe="Laatst gewijzigd",oxe="Kwaliteit",axe="Tijdstempel",sxe="Gebruiker",ixe="Waarde",cxe="Waarde",lxe="Waarschuwing: De CRON-taak wordt elke minuut uitgevoerd gedurende de opgegeven periode!",uxe="Waarschuwing: De CRON-taak wordt elke seconde uitgevoerd gedurende de opgegeven periode!",dxe="CRON",pxe="Datum",fxe="data",hxe="Dag",mxe="Dag van de week",_xe="elk",gxe="elke N dagen",yxe="elke N-de dag van de week",vxe="elke N dag van de week",bxe="elke N uur",wxe="elke N minuten",xxe="elke N maanden",Sxe="elke N seconden",kxe="elke dag",Cxe="elke dag van de week",$xe="elke dag van de week",Exe="elk uur",Txe="elke minuut",Oxe="elke maand",Dxe="elke seconde",Mxe="Van",Nxe="uren",Pxe="Interval",Rxe="Interval tussen",Axe="Ongeldige CRON",Ixe="Notulen",jxe="maanden",Lxe="Een keer",zxe="Periode",Fxe="seconden",Bxe="Gemakkelijk",Wxe="Specifieke tijd",Uxe="specifieke data",Hxe="specifieke dag(en) van de week",qxe="specifieke dag van weken",Vxe="specifieke uren",Xxe="specifieke minuten",Gxe="specifieke maanden",Jxe="specifieke seconden",Yxe="Tijd",Kxe="Naar",Zxe="tovenaar",Qxe="allemaal",eSe="Astro-dag",tSe="Astro-nacht",rSe="Dageraad",nSe="Schemer",oSe="gouden uur",aSe="Gouden uur einde",sSe="Nadir",iSe="Nautische dageraad",cSe="Nautische schemering",lSe="Nacht",uSe="Nacht einde",dSe="Zonne middag",pSe="zonsopkomst",fSe="Sunrise einde",hSe="Zonsondergang",mSe="Zonsondergang start",_Se="Bij",gSe="op %s",ySe="elke dag",vSe="elk uur",bSe="elke minuut",wSe="elke maand",xSe="elke %s dag",SSe="elke %s uur",kSe="elke %s minuten",CSe="elke %s maanden",$Se="elke %s weken",ESe="elke %s jaar",TSe="elke week",OSe="elk jaar",DSe="van %s tot %s",MSe="nooit",NSe="op %s van %s",PSe="op %s en %s van",RSe="op elke datum van",ASe="%s",ISe="%s en %s",jSe="op %s",LSe="op %s en %s",zSe="in het weekend",FSe="op werkdagen",BSe="zal niet meer worden uitgevoerd, omdat start verleden tijd is",WSe="op %s",USe="van %s",HSe="Uitvoeren van tot",qSe="tot %s",VSe="elk",XSe="Specifieke tijd",GSe="van",JSe="Van naar",YSe="Interval tijd",KSe="omkeren",ZSe="geen",QSe="Aan",eke="Periode",tke="Dagelijks",rke="data",nke="Dag",oke="elk",ake="Elke dag",ske="Elke maand",ike="Elke week",cke="Elk jaar",lke="uren",uke="Notulen",dke="maand",pke="Maandelijks",fke="Een keer",hke="Specifieke maanden",mke="Week",_ke="Doordeweekse dagen",gke="Weekend",yke="Wekelijks",vke="werkdagen",bke="Jaar",wke="jaar-",xke="Specifieke tijd",Ske="Tijd",kke="naar",Cke="Geldig",$ke="van",Eke="naar",Tke="Hele dag",Oke="elke maand",Dke={"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_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:Dbe,"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:Mbe,"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:Nbe,"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:Pbe,ra_Clear:Rbe,"ra_Clear filter":"Filter wissen","ra_Clear icon":"Pictogram wissen","ra_Clone current row":"Kloon de huidige rij",ra_Close:Abe,"ra_Collapse all nodes":"Vouw alle knooppunten samen","ra_Collapse one step node":"Eén niveau samenvouwen",ra_Commercial:Ibe,ra_Configure:jbe,"ra_Configure visible columns":"Configureer zichtbare kolommen","ra_Confirm deletion of %s":"Bevestig het verwijderen van %s",ra_Connected:Lbe,ra_Copied:zbe,"ra_Copied %s":'"%s" gekopieerd',"ra_Copy content":"Inhoud kopiëren",ra_Create:Fbe,"ra_Create alias":"Alias maken","ra_Create folder":"Map aanmaken","ra_Create new folder in %s":"Maak een nieuwe map in %s",ra_Crop:Bbe,"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:Wbe,ra_Delete:Ube,"ra_Delete (no confirm for 5 mins)":"Verwijderen (geen bevestiging gedurende 5 minuten)","ra_Delete current row":"Huidige rij verwijderen","ra_Deselect all":"Deselecteer alles","ra_Device → Channel → State":"Apparaat → Kanaal → Staat",ra_Discard:Hbe,ra_Disconnected:qbe,"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_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 function":"Bewerkingsfunctie","ra_Edit object field":"Bewerk objectveld","ra_Edit role":"Rol bewerken","ra_Edit room":"Kamer bewerken","ra_Edit value":"Waarde bewerken",ra_Error:Vbe,"ra_Expand all nodes":"Vouw alle knooppunten uit","ra_Expand one step node":"Vouw een niveau uit","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:Xbe,"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:Gbe,"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_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 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:Jbe,"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_Longitude:Ybe,'ra_May not trigger "updateLicenses"':'Activeert mogelijk niet "updateLicenses"',ra_Message:Kbe,ra_Monday:Zbe,"ra_Move down":"Naar beneden verplaatsen","ra_Move up":"Omhoog gaan",ra_Name:Qbe,"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 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_Objects:ewe,ra_Ok:twe,"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 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_Private certificate":"Privé certificaat",ra_Product:rwe,"ra_Public certificate":"Openbaar certificaat","ra_Quality code":"Kwaliteit","ra_Refresh tree":"Vernieuw de boom","ra_Reload files":"Laad bestanden opnieuw",ra_Repeat:nwe,ra_Replace:owe,"ra_Request timed out":"Verzoek verlopen","ra_Restrict to folder":"Beperken tot map",ra_Root:awe,ra_Saturday:swe,ra_Save:iwe,"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:cwe,"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_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:lwe,"ra_Suitable license not found in license manager":"Geschikte licentie niet gevonden in licentiebeheer",ra_Sunday:uwe,"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:dwe,ra_Timestamp:pwe,"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:fwe,"ra_Unknown error":"Onbekende fout","ra_Unknown error!":"Onbekende fout!",ra_Update:hwe,"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:mwe,ra_Value:_we,ra_Version:gwe,"ra_View file":"Bestand bekijken","ra_View: %s":"Bekijk: %s",ra_Wednesday:ywe,ra_Width:vwe,ra_Yes:bwe,"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___different__:wwe,ra_aclEveryone_read_object:xwe,ra_aclEveryone_read_state:Swe,ra_aclEveryone_write_object:kwe,ra_aclEveryone_write_state:Cwe,ra_aclGroup_read_object:$we,ra_aclGroup_read_state:Ewe,ra_aclGroup_write_object:Twe,ra_aclGroup_write_state:Owe,ra_aclOwner_read_object:Dwe,ra_aclOwner_read_state:Mwe,ra_aclOwner_write_object:Nwe,ra_aclOwner_write_state:Pwe,ra_buttons:Rwe,ra_changedFrom:Awe,ra_close:Iwe,ra_create_boolean_state:jwe,ra_create_channel:Lwe,ra_create_device:zwe,ra_create_number_state:Fwe,ra_create_state:Bwe,ra_create_string_state:Wwe,ra_daysShortText:Uwe,ra_dow_Fr:Hwe,ra_dow_Mo:qwe,ra_dow_Sa:Vwe,ra_dow_Su:Xwe,ra_dow_Th:Gwe,ra_dow_Tu:Jwe,ra_dow_We:Ywe,ra_expertMode:Kwe,ra_fileType_all:Zwe,ra_fileType_audio:Qwe,ra_fileType_code:e1e,ra_fileType_images:t1e,ra_fileType_txt:r1e,ra_fileType_video:n1e,"ra_fileType_video,":"Video",ra_filter_customs:o1e,ra_filter_customs_without:a1e,ra_filter_func:s1e,ra_filter_id:i1e,ra_filter_name:c1e,ra_filter_role:l1e,ra_filter_room:u1e,ra_filter_type:d1e,"ra_import data from %s file":"Importeer gegevens uit %s bestand",ra_invalidConfig:p1e,ra_lastChange:f1e,ra_locally:h1e,ra_month_Apr:m1e,ra_month_Aug:_1e,ra_month_Dec:g1e,ra_month_Feb:y1e,ra_month_Jan:v1e,ra_month_Jul:b1e,ra_month_Jun:w1e,ra_month_Mai:x1e,ra_month_Mar:S1e,ra_month_Nov:k1e,ra_month_Oct:C1e,ra_month_Sep:$1e,ra_months_Apr:E1e,ra_months_Aug:T1e,ra_months_Dec:O1e,ra_months_Feb:D1e,ra_months_Jan:M1e,ra_months_Jul:N1e,ra_months_Jun:P1e,ra_months_Mai:R1e,ra_months_Mar:A1e,ra_months_Nov:I1e,ra_months_Oct:j1e,ra_months_Sep:L1e,ra_none:z1e,ra_object_changed_by:F1e,ra_object_changed_by_user:B1e,ra_otherConfig:W1e,ra_qualityCode:U1e,ra_repeat:H1e,ra_select_folder_hint:q1e,ra_state_changed_by:V1e,ra_state_changed_from:X1e,ra_timestamp:G1e,ra_tooltip_ack:J1e,ra_tooltip_comment:Y1e,ra_tooltip_copyState:K1e,ra_tooltip_customConfig:Z1e,ra_tooltip_deleteObject:Q1e,ra_tooltip_editObject:exe,ra_tooltip_editState:txe,ra_tooltip_from:rxe,ra_tooltip_lc:nxe,ra_tooltip_quality:oxe,ra_tooltip_ts:axe,ra_tooltip_user:sxe,ra_tooltip_value:ixe,"ra_use seconds":"gebruik seconden",ra_val:cxe,"ra_via internet":"via internet",ra_warning_every_minute:lxe,ra_warning_every_second:uxe,sc_cron:dxe,sc_date:pxe,sc_dates:fxe,sc_dow:hxe,sc_dows:mxe,sc_every:_xe,sc_everyN_dates:gxe,sc_everyN_dow:yxe,sc_everyN_dows:vxe,sc_everyN_hours:bxe,sc_everyN_minutes:wxe,sc_everyN_months:xxe,sc_everyN_seconds:Sxe,sc_every_dates:kxe,sc_every_dow:Cxe,sc_every_dows:$xe,sc_every_hours:Exe,sc_every_minutes:Txe,sc_every_months:Oxe,sc_every_seconds:Dxe,sc_from:Mxe,sc_hours:Nxe,sc_interval:Pxe,sc_intervalBetween:Rxe,sc_invalid_cron:Axe,sc_minutes:Ixe,sc_months:jxe,sc_once:Lxe,sc_period:zxe,sc_seconds:Fxe,sc_simple:Bxe,sc_specific:Wxe,sc_specific_dates:Uxe,sc_specific_dow:Hxe,sc_specific_dows:qxe,sc_specific_hours:Vxe,sc_specific_minutes:Xxe,sc_specific_months:Gxe,sc_specific_seconds:Jxe,sc_time:Yxe,sc_to:Kxe,sc_wizard:Zxe,sch_all:Qxe,sch_astroDay:eSe,sch_astroNight:tSe,sch_astro_dawn:rSe,sch_astro_dusk:nSe,sch_astro_goldenHour:oSe,sch_astro_goldenHourEnd:aSe,sch_astro_nadir:sSe,sch_astro_nauticalDawn:iSe,sch_astro_nauticalDusk:cSe,sch_astro_night:lSe,sch_astro_nightEnd:uSe,sch_astro_solarNoon:dSe,sch_astro_sunrise:pSe,sch_astro_sunriseEnd:fSe,sch_astro_sunset:hSe,sch_astro_sunsetStart:mSe,sch_at:_Se,sch_desc_atTime:gSe,sch_desc_everyDay:ySe,sch_desc_everyHour:vSe,sch_desc_everyMinute:bSe,sch_desc_everyMonth:wSe,sch_desc_everyNDay:xSe,sch_desc_everyNHours:SSe,sch_desc_everyNMinutes:kSe,sch_desc_everyNMonths:CSe,sch_desc_everyNWeeks:$Se,sch_desc_everyNYears:ESe,sch_desc_everyWeek:TSe,sch_desc_everyYear:OSe,sch_desc_intervalFromTo:DSe,sch_desc_never:MSe,sch_desc_onDate:NSe,sch_desc_onDates:PSe,sch_desc_onEveryDate:RSe,sch_desc_onMonth:ASe,sch_desc_onMonths:ISe,sch_desc_onWeekday:jSe,sch_desc_onWeekdays:LSe,sch_desc_onWeekends:zSe,sch_desc_onWorkdays:FSe,sch_desc_onceInPast:BSe,sch_desc_once_on:WSe,sch_desc_validFrom:USe,sch_desc_validFromTo:HSe,sch_desc_validTo:qSe,sch_every:VSe,sch_exactTime:XSe,sch_from:GSe,sch_fromTo:JSe,sch_intervalTime:YSe,sch_invert:KSe,sch_no_one:ZSe,sch_on:QSe,sch_period:eke,sch_periodDaily:tke,sch_periodDates:rke,sch_periodDay:nke,sch_periodEvery:oke,sch_periodEveryDay:ake,sch_periodEveryMonth:ske,sch_periodEveryWeek:ike,sch_periodEveryYear:cke,sch_periodHours:lke,sch_periodMinutes:uke,sch_periodMonth:dke,sch_periodMonthly:pke,sch_periodOnce:fke,sch_periodSpecificMonths:hke,sch_periodWeek:mke,sch_periodWeekdays:_ke,sch_periodWeekend:gke,sch_periodWeekly:yke,sch_periodWorkdays:vke,sch_periodYear:bke,sch_periodYearly:wke,sch_specificTime:xke,sch_time:Ske,sch_to:kke,sch_valid:Cke,sch_validFrom:$ke,sch_validTo:Eke,sch_wholeDay:Tke,sch_yearEveryMonth:Oke},Mke="Ajouter",Nke="Annuler",Pke="Catégories",Rke="Vérifié",Ake="Effacer",Ike="Fermer",jke="Commercial",Lke="Configurer",zke="Lié",Fke="Copié",Bke="Créer",Wke="Recadrer",Uke="Delete",Hke="Supprimer",qke="Jeter",Vke="Débranché",Xke="Erreur",Gke="Filtre",Jke="Vendredi",Yke="Latitude",Kke="Longitude",Zke="Message",Qke="Lundi",eCe="Nom",tCe="Objets",rCe="D'accord",nCe="Produit",oCe="Répéter",aCe="Remplacer",sCe="Racine",iCe="Samedi",cCe="sauver",lCe="Choisi",uCe="États",dCe="Dimanche",pCe="Jeudi",fCe="Horodatage",hCe="Mardi",mCe="Mise à jour",_Ce="Valable jusqu'au",gCe="Valeur",yCe="Version",vCe="Mercredi",bCe="Largeur",wCe="Oui",xCe="différent",SCe="Tout le monde peut lire un objet",kCe="Tout le monde peut lire l'état",CCe="Tout le monde peut écrire un objet",$Ce="Tout le monde peut écrire l'état",ECe="Le groupe peut lire l'objet",TCe="Le groupe peut lire l'état",OCe="Le groupe peut écrire un objet",DCe="Le groupe peut écrire l'état",MCe="Le propriétaire peut lire l'objet",NCe="Le propriétaire peut lire l'état",PCe="Le propriétaire peut écrire un objet",RCe="Le propriétaire peut écrire l'état",ACe="Boutons",ICe="Changé de",jCe="Fermer",LCe="Créer un état booléen",zCe="Créer une chaîne",FCe="Créer un appareil",BCe="Créer un état de numéro",WCe="Créer un état",UCe="Créer un état de chaîne",HCe="j.",qCe="Fr",VCe="Mo",XCe="Sa",GCe="Su",JCe="Th",YCe="Tu",KCe="Nous",ZCe="Mode expert",QCe="Tous les fichiers",e$e="l'audio",t$e="Code/JSON",r$e="Images",n$e="Texte",o$e="Vidéo",a$e="Paramètres",s$e="sans",i$e="Une fonction",c$e="ID",l$e="Prénom",u$e="Rôle",d$e="Pièce",p$e="Type",f$e="Paramètres invalides",h$e="Dernier changement",m$e="localement",_$e="Avr",g$e="Août",y$e="Déc",v$e="Fév",b$e="Jan",w$e="Juil",x$e="Juin",S$e="Mai",k$e="Mar",C$e="Nov",$$e="Oct",E$e="Sep",T$e="Avr",O$e="Août",D$e="Déc",M$e="Fév",N$e="Jan",P$e="Juil",R$e="Juin",A$e="Mai",I$e="Mar",j$e="Nov",L$e="Oct",z$e="Sep",F$e="rien",B$e="Objet modifié par",W$e="Objet modifié pour la dernière fois à",U$e="Paramètres d'un autre adaptateur %s",H$e="Code de qualité",q$e="répéter",V$e='Pour sélectionner un dossier, maintenez simplement la touche "shift" enfoncée en cliquant sur le dossier.',X$e="État modifié par",G$e="Objet changé de",J$e="Horodatage",Y$e="Drapeau reconnu",K$e="Commentaire",Z$e="Copiez la valeur d'état",Q$e="Paramètres personnalisés",eEe="Supprimer un objet",tEe="Modifier l'objet",rEe="Modifier la valeur d'état",nEe="De",oEe="Dernière modification",aEe="Qualité",sEe="Horodatage",iEe="Utilisateur",cEe="Valeur",lEe="Valeur",uEe="Attention : la tâche CRON s’exécutera toutes les minutes pendant la période spécifiée !",dEe="Attention : la tâche CRON s’exécutera toutes les secondes pendant la période spécifiée !",pEe="CRON",fEe="Date",hEe="Rendez-vous",mEe="Jour",_Ee="Jour de la semaine",gEe="Chaque",yEe="tous les N jours",vEe="chaque Nième jour de la semaine",bEe="tous les N jours de la semaine",wEe="toutes les N heures",xEe="toutes les N minutes",SEe="tous les N mois",kEe="toutes les N secondes",CEe="tous les jours",$Ee="Chaque jour de la semaine",EEe="Chaque jour de la semaine",TEe="Toutes les heures",OEe="chaque minute",DEe="chaque mois",MEe="chaque seconde",NEe="De",PEe="Heures",REe="Intervalle",AEe="Intervalle entre",IEe="CRON non valide",jEe="Minutes",LEe="mois",zEe="Une fois que",FEe="Période",BEe="Secondes",WEe="Facile",UEe="Temps spécifique",HEe="dates spécifiques",qEe="jour(s) spécifique(s) de la semaine",VEe="jour spécifique de semaines",XEe="heures spécifiques",GEe="minutes spécifiques",JEe="mois spécifiques",YEe="secondes spécifiques",KEe="Temps",ZEe="À",QEe="sorcier",eTe="tout",tTe="Journée astronomique",rTe="Nuit astronomique",nTe="Aube",oTe="Crépuscule",aTe="Heure d'or",sTe="Fin de l'heure d'or",iTe="Nadir",cTe="Aube nautique",lTe="Crépuscule nautique",uTe="Nuit",dTe="Fin de nuit",pTe="Midi solaire",fTe="lever du soleil",hTe="Fin du lever du soleil",mTe="Le coucher du soleil",_Te="Coucher du soleil",gTe="à",yTe="à %s",vTe="tous les jours",bTe="Toutes les heures",wTe="chaque minute",xTe="chaque mois",STe="chaque %s jour",kTe="chaque %s heures",CTe="toutes les %s minutes",$Te="tous les %s mois",ETe="chaque %s semaines",TTe="tous les %s ans",OTe="toutes les semaines",DTe="chaque année",MTe="de %s à %s",NTe="jamais",PTe="sur %s de %s",RTe="sur %s et %s de",ATe="à chaque date de",ITe="%s",jTe="%s et %s",LTe="sur %s",zTe="sur %s et %s",FTe="les weekends",BTe="les jours ouvrables",WTe="ne sera plus exécuté, car start est dans le passé",UTe="sur %s",HTe="de %s",qTe="Exécuter de à",VTe="à %s",XTe="chaque",GTe="Temps spécifique",JTe="de",YTe="De à",KTe="Temps d'interval",ZTe="inverser",QTe="aucun",e2e="sur",t2e="Période",r2e="du quotidien",n2e="Rendez-vous",o2e="journée",a2e="Chaque",s2e="Tous les jours",i2e="Chaque mois",c2e="Toutes les semaines",l2e="Chaque année",u2e="Heures",d2e="Minutes",p2e="mois",f2e="Mensuel",h2e="Une fois que",m2e="Mois spécifiques",_2e="La semaine",g2e="Jours de la semaine",y2e="Weekend",v2e="Hebdomadaire",b2e="Jours ouvrables",w2e="Année",x2e="Annuel",S2e="Temps spécifique",k2e="Temps",C2e="à",$2e="Valide",E2e="de",T2e="à",O2e="Toute la journée",D2e="chaque mois",M2e={"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_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:Mke,"ra_Append %s entries or replace existing?":"Ajouter %s entrées ou remplacer l'existant ?","ra_Append or replace?":"Ajouter ou remplacer ?","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:Nke,"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 : 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 : %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:Pke,"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:Rke,ra_Clear:Ake,"ra_Clear filter":"Effacer le filtre","ra_Clear icon":"Effacer l'icône","ra_Clone current row":"Cloner la ligne actuelle",ra_Close:Ike,"ra_Collapse all nodes":"Réduire tous les nœuds","ra_Collapse one step node":"Réduire d'un niveau",ra_Commercial:jke,ra_Configure:Lke,"ra_Configure visible columns":"Configurer les colonnes visibles","ra_Confirm deletion of %s":"Confirmer la suppression de %s",ra_Connected:zke,ra_Copied:Fke,"ra_Copied %s":'"%s" copié',"ra_Copy content":"Copier le contenu",ra_Create:Bke,"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:Wke,"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:Uke,ra_Delete:Hke,"ra_Delete (no confirm for 5 mins)":"Supprimer (pas de confirmation pendant 5 minutes)","ra_Delete current row":"Supprimer la ligne actuelle","ra_Deselect all":"Tout déselectionner","ra_Device → Channel → State":"Appareil → Canal → État",ra_Discard:qke,ra_Disconnected:Vke,"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_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 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_Error:Xke,"ra_Expand all nodes":"Développer tous les nœuds","ra_Expand one step node":"Développer un niveau","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:Gke,"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:Jke,"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_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 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:Yke,"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 ?","ra_Listen on all IPs":"Écoutez sur toutes les adresses IP","ra_Load configuration from file":"Charger la configuration à partir du fichier",ra_Longitude:Kke,'ra_May not trigger "updateLicenses"':'Peut ne pas déclencher "updateLicences"',ra_Message:Zke,ra_Monday:Qke,"ra_Move down":"Descendre","ra_Move up":"Déplacer vers le haut",ra_Name:eCe,"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 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_Objects:tCe,ra_Ok:rCe,"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 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_Private certificate":"Certificat privé",ra_Product:nCe,"ra_Public certificate":"Certificat public","ra_Quality code":"Qualité","ra_Refresh tree":"Rafraîchir l'arborescence","ra_Reload files":"Recharger les fichiers",ra_Repeat:oCe,ra_Replace:aCe,"ra_Request timed out":"La demande a expiré","ra_Restrict to folder":"Restreindre au dossier",ra_Root:sCe,ra_Saturday:iCe,ra_Save:cCe,"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:lCe,"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_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:uCe,"ra_Suitable license not found in license manager":"Licence appropriée introuvable dans le gestionnaire de licences",ra_Sunday:dCe,"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:pCe,ra_Timestamp:fCe,"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:hCe,"ra_Unknown error":"Erreur inconnue","ra_Unknown error!":"Erreur inconnue!",ra_Update:mCe,"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:_Ce,ra_Value:gCe,ra_Version:yCe,"ra_View file":"Voir la fiche","ra_View: %s":"Affichage : %s",ra_Wednesday:vCe,ra_Width:bCe,ra_Yes:wCe,"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___different__:xCe,ra_aclEveryone_read_object:SCe,ra_aclEveryone_read_state:kCe,ra_aclEveryone_write_object:CCe,ra_aclEveryone_write_state:$Ce,ra_aclGroup_read_object:ECe,ra_aclGroup_read_state:TCe,ra_aclGroup_write_object:OCe,ra_aclGroup_write_state:DCe,ra_aclOwner_read_object:MCe,ra_aclOwner_read_state:NCe,ra_aclOwner_write_object:PCe,ra_aclOwner_write_state:RCe,ra_buttons:ACe,ra_changedFrom:ICe,ra_close:jCe,ra_create_boolean_state:LCe,ra_create_channel:zCe,ra_create_device:FCe,ra_create_number_state:BCe,ra_create_state:WCe,ra_create_string_state:UCe,ra_daysShortText:HCe,ra_dow_Fr:qCe,ra_dow_Mo:VCe,ra_dow_Sa:XCe,ra_dow_Su:GCe,ra_dow_Th:JCe,ra_dow_Tu:YCe,ra_dow_We:KCe,ra_expertMode:ZCe,ra_fileType_all:QCe,ra_fileType_audio:e$e,ra_fileType_code:t$e,ra_fileType_images:r$e,ra_fileType_txt:n$e,ra_fileType_video:o$e,"ra_fileType_video,":"Vidéo",ra_filter_customs:a$e,ra_filter_customs_without:s$e,ra_filter_func:i$e,ra_filter_id:c$e,ra_filter_name:l$e,ra_filter_role:u$e,ra_filter_room:d$e,ra_filter_type:p$e,"ra_import data from %s file":"Importer des données à partir du fichier %s",ra_invalidConfig:f$e,ra_lastChange:h$e,ra_locally:m$e,ra_month_Apr:_$e,ra_month_Aug:g$e,ra_month_Dec:y$e,ra_month_Feb:v$e,ra_month_Jan:b$e,ra_month_Jul:w$e,ra_month_Jun:x$e,ra_month_Mai:S$e,ra_month_Mar:k$e,ra_month_Nov:C$e,ra_month_Oct:$$e,ra_month_Sep:E$e,ra_months_Apr:T$e,ra_months_Aug:O$e,ra_months_Dec:D$e,ra_months_Feb:M$e,ra_months_Jan:N$e,ra_months_Jul:P$e,ra_months_Jun:R$e,ra_months_Mai:A$e,ra_months_Mar:I$e,ra_months_Nov:j$e,ra_months_Oct:L$e,ra_months_Sep:z$e,ra_none:F$e,ra_object_changed_by:B$e,ra_object_changed_by_user:W$e,ra_otherConfig:U$e,ra_qualityCode:H$e,ra_repeat:q$e,ra_select_folder_hint:V$e,ra_state_changed_by:X$e,ra_state_changed_from:G$e,ra_timestamp:J$e,ra_tooltip_ack:Y$e,ra_tooltip_comment:K$e,ra_tooltip_copyState:Z$e,ra_tooltip_customConfig:Q$e,ra_tooltip_deleteObject:eEe,ra_tooltip_editObject:tEe,ra_tooltip_editState:rEe,ra_tooltip_from:nEe,ra_tooltip_lc:oEe,ra_tooltip_quality:aEe,ra_tooltip_ts:sEe,ra_tooltip_user:iEe,ra_tooltip_value:cEe,"ra_use seconds":"utiliser les secondes",ra_val:lEe,"ra_via internet":"par Internet",ra_warning_every_minute:uEe,ra_warning_every_second:dEe,sc_cron:pEe,sc_date:fEe,sc_dates:hEe,sc_dow:mEe,sc_dows:_Ee,sc_every:gEe,sc_everyN_dates:yEe,sc_everyN_dow:vEe,sc_everyN_dows:bEe,sc_everyN_hours:wEe,sc_everyN_minutes:xEe,sc_everyN_months:SEe,sc_everyN_seconds:kEe,sc_every_dates:CEe,sc_every_dow:$Ee,sc_every_dows:EEe,sc_every_hours:TEe,sc_every_minutes:OEe,sc_every_months:DEe,sc_every_seconds:MEe,sc_from:NEe,sc_hours:PEe,sc_interval:REe,sc_intervalBetween:AEe,sc_invalid_cron:IEe,sc_minutes:jEe,sc_months:LEe,sc_once:zEe,sc_period:FEe,sc_seconds:BEe,sc_simple:WEe,sc_specific:UEe,sc_specific_dates:HEe,sc_specific_dow:qEe,sc_specific_dows:VEe,sc_specific_hours:XEe,sc_specific_minutes:GEe,sc_specific_months:JEe,sc_specific_seconds:YEe,sc_time:KEe,sc_to:ZEe,sc_wizard:QEe,sch_all:eTe,sch_astroDay:tTe,sch_astroNight:rTe,sch_astro_dawn:nTe,sch_astro_dusk:oTe,sch_astro_goldenHour:aTe,sch_astro_goldenHourEnd:sTe,sch_astro_nadir:iTe,sch_astro_nauticalDawn:cTe,sch_astro_nauticalDusk:lTe,sch_astro_night:uTe,sch_astro_nightEnd:dTe,sch_astro_solarNoon:pTe,sch_astro_sunrise:fTe,sch_astro_sunriseEnd:hTe,sch_astro_sunset:mTe,sch_astro_sunsetStart:_Te,sch_at:gTe,sch_desc_atTime:yTe,sch_desc_everyDay:vTe,sch_desc_everyHour:bTe,sch_desc_everyMinute:wTe,sch_desc_everyMonth:xTe,sch_desc_everyNDay:STe,sch_desc_everyNHours:kTe,sch_desc_everyNMinutes:CTe,sch_desc_everyNMonths:$Te,sch_desc_everyNWeeks:ETe,sch_desc_everyNYears:TTe,sch_desc_everyWeek:OTe,sch_desc_everyYear:DTe,sch_desc_intervalFromTo:MTe,sch_desc_never:NTe,sch_desc_onDate:PTe,sch_desc_onDates:RTe,sch_desc_onEveryDate:ATe,sch_desc_onMonth:ITe,sch_desc_onMonths:jTe,sch_desc_onWeekday:LTe,sch_desc_onWeekdays:zTe,sch_desc_onWeekends:FTe,sch_desc_onWorkdays:BTe,sch_desc_onceInPast:WTe,sch_desc_once_on:UTe,sch_desc_validFrom:HTe,sch_desc_validFromTo:qTe,sch_desc_validTo:VTe,sch_every:XTe,sch_exactTime:GTe,sch_from:JTe,sch_fromTo:YTe,sch_intervalTime:KTe,sch_invert:ZTe,sch_no_one:QTe,sch_on:e2e,sch_period:t2e,sch_periodDaily:r2e,sch_periodDates:n2e,sch_periodDay:o2e,sch_periodEvery:a2e,sch_periodEveryDay:s2e,sch_periodEveryMonth:i2e,sch_periodEveryWeek:c2e,sch_periodEveryYear:l2e,sch_periodHours:u2e,sch_periodMinutes:d2e,sch_periodMonth:p2e,sch_periodMonthly:f2e,sch_periodOnce:h2e,sch_periodSpecificMonths:m2e,sch_periodWeek:_2e,sch_periodWeekdays:g2e,sch_periodWeekend:y2e,sch_periodWeekly:v2e,sch_periodWorkdays:b2e,sch_periodYear:w2e,sch_periodYearly:x2e,sch_specificTime:S2e,sch_time:k2e,sch_to:C2e,sch_valid:$2e,sch_validFrom:E2e,sch_validTo:T2e,sch_wholeDay:O2e,sch_yearEveryMonth:D2e},N2e="Aggiungere",P2e="Annulla",R2e="Categorie",A2e="Controllato",I2e="Elimina",j2e="Vicino",L2e="Commerciale",z2e="Configura",F2e="Collegato",B2e="Copiato",W2e="Creare",U2e="Raccolto",H2e="Delete",q2e="Elimina",V2e="Scartare",X2e="Disconnesso",G2e="Errore",J2e="Filtro",Y2e="Venerdì",K2e="Latitudine",Z2e="Longitudine",Q2e="Messaggio",eOe="Lunedi",tOe="Nome",rOe="Oggetti",nOe="Ok",oOe="Prodotto",aOe="Ripetere",sOe="Sostituire",iOe="Radice",cOe="Sabato",lOe="Salva",uOe="Selezionato",dOe="stati",pOe="Domenica",fOe="Giovedì",hOe="Timestamp",mOe="Martedì",_Oe="Aggiornare",gOe="Valido fino a",yOe="Valore",vOe="Versione",bOe="Mercoledì",wOe="Larghezza",xOe="SÌ",SOe="diverso",kOe="Tutti possono leggere gli oggetti",COe="Tutti possono leggere lo stato",$Oe="Tutti possono scrivere oggetti",EOe="Tutti possono scrivere stato",TOe="Il gruppo può leggere l'oggetto",OOe="Il gruppo può leggere lo stato",DOe="Il gruppo può scrivere l'oggetto",MOe="Il gruppo può scrivere lo stato",NOe="Il proprietario può leggere l'oggetto",POe="Il proprietario può leggere lo stato",ROe="Il proprietario può scrivere l'oggetto",AOe="Il proprietario può scrivere lo stato",IOe="Bottoni",jOe="Cambiato da",LOe="vicino",zOe="Crea uno stato booleano",FOe="Crea canale",BOe="Crea dispositivo",WOe="Crea lo stato del numero",UOe="Crea stato",HOe="Crea lo stato della stringa",qOe="g.",VOe="fr",XOe="momento",GOe="Sa",JOe="su",YOe="th",KOe="Tu",ZOe="Noi",QOe="Modalità esperto",eDe="Tutti i files",tDe="Audio",rDe="Codice/JSON",nDe="immagini",oDe="Testo",aDe="video",sDe="impostazioni",iDe="senza",cDe="Funzione",lDe="ID",uDe="Nome",dDe="Ruolo",pDe="Camera",fDe="genere",hDe="Impostazioni non valide",mDe="Ultima modifica",_De="localmente",gDe="apr",yDe="agosto",vDe="Dic",bDe="febbraio",wDe="gen",xDe="lug",SDe="giu",kDe="Mai",CDe="marzo",$De="nov",EDe="ottobre",TDe="Sett",ODe="apr",DDe="agosto",MDe="Dic",NDe="febbraio",PDe="gen",RDe="lug",ADe="giu",IDe="Mai",jDe="marzo",LDe="nov",zDe="ottobre",FDe="Sett",BDe="nessuna",WDe="Oggetto modificato da",UDe="L'oggetto è stato modificato l'ultima volta alle",HDe="Impostazioni dall'altro adattatore %s",qDe="Codice di qualità",VDe="ripetere",XDe='Per selezionare la cartella, basta tenere premuto il tasto "shift" facendo clic sulla cartella.',GDe="Stato cambiato da",JDe="Oggetto cambiato da",YDe="Timestamp",KDe="Bandiera riconosciuta",ZDe="Commento",QDe="Copia il valore dello stato",eMe="Impostazioni personalizzate",tMe="Elimina oggetto",rMe="Modifica oggetto",nMe="Modifica il valore dello stato",oMe="A partire dal",aMe="Ultima modifica",sMe="Qualità",iMe="Data e ora",cMe="Utente",lMe="Valore",uMe="Valore",dMe="Attenzione: il processo CRON verrà eseguito ogni minuto durante il periodo specificato!",pMe="Attenzione: il processo CRON verrà eseguito ogni secondo durante il periodo specificato!",fMe="CRON",hMe="Data",mMe="Date",_Me="Giorno",gMe="Giorno della settimana",yMe="Ogni",vMe="ogni N giorni",bMe="ogni Nesimo giorno della settimana",wMe="ogni N giorno della settimana",xMe="ogni N ore",SMe="ogni N minuti",kMe="ogni N mesi",CMe="ogni N secondi",$Me="ogni giorno",EMe="Tutti i giorni della settimana",TMe="Tutti i giorni della settimana",OMe="ogni ora",DMe="ogni minuto",MMe="ogni mese",NMe="ogni secondo",PMe="A partire dal",RMe="Ore",AMe="Intervallo",IMe="Intervallo tra",jMe="CRON non valido",LMe="Minuti",zMe="mesi",FMe="Una volta",BMe="Periodo",WMe="secondi",UMe="Semplice",HMe="Orario preciso",qMe="date specifiche",VMe="giorno/i specifico/i della settimana",XMe="giorno specifico delle settimane",GMe="orari specifici",JMe="minuti specifici",YMe="mesi specifici",KMe="secondi specifici",ZMe="Tempo",QMe="Per",eNe="procedura guidata",tNe="tutti",rNe="Astro day",nNe="Astro night",oNe="Alba",aNe="Crepuscolo",sNe="Ora d'oro",iNe="Fine dell'ora d'oro",cNe="Nadir",lNe="Alba nautica",uNe="Crepuscolo nautico",dNe="Notte",pNe="Fine della notte",fNe="Mezzogiorno solare",hNe="Alba",mNe="Fine dell'alba",_Ne="Tramonto",gNe="Inizio del tramonto",yNe="a",vNe="a %s",bNe="ogni giorno",wNe="ogni ora",xNe="ogni minuto",SNe="ogni mese",kNe="ogni %s giorno",CNe="ogni %s ore",$Ne="ogni %s minuti",ENe="ogni %s mesi",TNe="ogni %s settimane",ONe="ogni %s anni",DNe="ogni settimana",MNe="ogni anno",NNe="da %s a %s",PNe="mai",RNe="su %s di %s",ANe="su %s e %s di",INe="in ogni data di",jNe="%s",LNe="%s e %s",zNe="su %s",FNe="su %s e %s",BNe="nei finesettimana",WNe="nei giorni lavorativi",UNe="non verrà più eseguito, perché start è nel passato",HNe="su %s",qNe="da %s",VNe="Eseguire da a",XNe="a %s",GNe="ogni",JNe="Orario preciso",YNe="a partire dal",KNe="Da A",ZNe="Intervallo di tempo",QNe="invertire",ePe="nessuna",tPe="sopra",rPe="Periodo",nPe="Quotidiano",oPe="Date",aPe="Giorno",sPe="Ogni",iPe="Ogni giorno",cPe="Ogni mese",lPe="Ogni settimana",uPe="Ogni anno",dPe="Ore",pPe="Minuti",fPe="mese",hPe="Mensile",mPe="Una volta",_Pe="Mesi specifici",gPe="Settimana",yPe="Giorni della settimana",vPe="Fine settimana",bPe="settimanalmente",wPe="giorni feriali",xPe="Anno",SPe="Annuale",kPe="Orario preciso",CPe="Tempo",$Pe="per",EPe="Valido",TPe="a partire dal",OPe="per",DPe="Giorno intero",MPe="ogni mese",NPe={"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_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:N2e,"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:P2e,"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:R2e,"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:A2e,ra_Clear:I2e,"ra_Clear filter":"Filtro pulito","ra_Clear icon":"Cancella icona","ra_Clone current row":"Clona riga corrente",ra_Close:j2e,"ra_Collapse all nodes":"Comprimi tutti i nodi","ra_Collapse one step node":"Comprimi un livello",ra_Commercial:L2e,ra_Configure:z2e,"ra_Configure visible columns":"Configura colonne visibili","ra_Confirm deletion of %s":"Conferma l'eliminazione di %s",ra_Connected:F2e,ra_Copied:B2e,"ra_Copied %s":'"%s" copiato',"ra_Copy content":"Copia contenuto",ra_Create:W2e,"ra_Create alias":"Crea alias","ra_Create folder":"Creare una cartella","ra_Create new folder in %s":"Crea nuova cartella in %s",ra_Crop:U2e,"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:H2e,ra_Delete:q2e,"ra_Delete (no confirm for 5 mins)":"Elimina (nessuna conferma per 5 minuti)","ra_Delete current row":"Elimina la riga corrente","ra_Deselect all":"Deseleziona tutto","ra_Device → Channel → State":"Dispositivo → Canale → Stato",ra_Discard:V2e,ra_Disconnected:X2e,"ra_Do not export values of states":"Non esportare i valori degli stati","ra_Do not use let's encrypt":"Non utilizzare crittografiamo","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 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_Error:G2e,"ra_Expand all nodes":"Espandi tutti i nodi","ra_Expand one step node":"Espandi un livello","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:J2e,"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:Y2e,"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_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 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:K2e,"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_Longitude:Z2e,'ra_May not trigger "updateLicenses"':'Potrebbe non attivare "updateLicenses"',ra_Message:Q2e,ra_Monday:eOe,"ra_Move down":"Abbassati","ra_Move up":"Andare avanti",ra_Name:tOe,"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 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_Objects:rOe,ra_Ok:nOe,"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 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_Private certificate":"Certificato privato",ra_Product:oOe,"ra_Public certificate":"Certificato pubblico","ra_Quality code":"Qualità","ra_Refresh tree":"Aggiorna l'albero","ra_Reload files":"Ricarica i file",ra_Repeat:aOe,ra_Replace:sOe,"ra_Request timed out":"Tempo scaduto per la richiesta","ra_Restrict to folder":"Limita alla cartella",ra_Root:iOe,ra_Saturday:cOe,ra_Save:lOe,"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:uOe,"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_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:dOe,"ra_Suitable license not found in license manager":"Licenza adatta non trovata nel gestore delle licenze",ra_Sunday:pOe,"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:fOe,ra_Timestamp:hOe,"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:mOe,"ra_Unknown error":"Errore sconosciuto","ra_Unknown error!":"Errore sconosciuto!",ra_Update:_Oe,"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:gOe,ra_Value:yOe,ra_Version:vOe,"ra_View file":"Vedi il file","ra_View: %s":"Visualizza: %s",ra_Wednesday:bOe,ra_Width:wOe,ra_Yes:xOe,"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___different__:SOe,ra_aclEveryone_read_object:kOe,ra_aclEveryone_read_state:COe,ra_aclEveryone_write_object:$Oe,ra_aclEveryone_write_state:EOe,ra_aclGroup_read_object:TOe,ra_aclGroup_read_state:OOe,ra_aclGroup_write_object:DOe,ra_aclGroup_write_state:MOe,ra_aclOwner_read_object:NOe,ra_aclOwner_read_state:POe,ra_aclOwner_write_object:ROe,ra_aclOwner_write_state:AOe,ra_buttons:IOe,ra_changedFrom:jOe,ra_close:LOe,ra_create_boolean_state:zOe,ra_create_channel:FOe,ra_create_device:BOe,ra_create_number_state:WOe,ra_create_state:UOe,ra_create_string_state:HOe,ra_daysShortText:qOe,ra_dow_Fr:VOe,ra_dow_Mo:XOe,ra_dow_Sa:GOe,ra_dow_Su:JOe,ra_dow_Th:YOe,ra_dow_Tu:KOe,ra_dow_We:ZOe,ra_expertMode:QOe,ra_fileType_all:eDe,ra_fileType_audio:tDe,ra_fileType_code:rDe,ra_fileType_images:nDe,ra_fileType_txt:oDe,ra_fileType_video:aDe,"ra_fileType_video,":"video",ra_filter_customs:sDe,ra_filter_customs_without:iDe,ra_filter_func:cDe,ra_filter_id:lDe,ra_filter_name:uDe,ra_filter_role:dDe,ra_filter_room:pDe,ra_filter_type:fDe,"ra_import data from %s file":"Importa dati dal file %s",ra_invalidConfig:hDe,ra_lastChange:mDe,ra_locally:_De,ra_month_Apr:gDe,ra_month_Aug:yDe,ra_month_Dec:vDe,ra_month_Feb:bDe,ra_month_Jan:wDe,ra_month_Jul:xDe,ra_month_Jun:SDe,ra_month_Mai:kDe,ra_month_Mar:CDe,ra_month_Nov:$De,ra_month_Oct:EDe,ra_month_Sep:TDe,ra_months_Apr:ODe,ra_months_Aug:DDe,ra_months_Dec:MDe,ra_months_Feb:NDe,ra_months_Jan:PDe,ra_months_Jul:RDe,ra_months_Jun:ADe,ra_months_Mai:IDe,ra_months_Mar:jDe,ra_months_Nov:LDe,ra_months_Oct:zDe,ra_months_Sep:FDe,ra_none:BDe,ra_object_changed_by:WDe,ra_object_changed_by_user:UDe,ra_otherConfig:HDe,ra_qualityCode:qDe,ra_repeat:VDe,ra_select_folder_hint:XDe,ra_state_changed_by:GDe,ra_state_changed_from:JDe,ra_timestamp:YDe,ra_tooltip_ack:KDe,ra_tooltip_comment:ZDe,ra_tooltip_copyState:QDe,ra_tooltip_customConfig:eMe,ra_tooltip_deleteObject:tMe,ra_tooltip_editObject:rMe,ra_tooltip_editState:nMe,ra_tooltip_from:oMe,ra_tooltip_lc:aMe,ra_tooltip_quality:sMe,ra_tooltip_ts:iMe,ra_tooltip_user:cMe,ra_tooltip_value:lMe,"ra_use seconds":"usa i secondi",ra_val:uMe,"ra_via internet":"attraverso internet",ra_warning_every_minute:dMe,ra_warning_every_second:pMe,sc_cron:fMe,sc_date:hMe,sc_dates:mMe,sc_dow:_Me,sc_dows:gMe,sc_every:yMe,sc_everyN_dates:vMe,sc_everyN_dow:bMe,sc_everyN_dows:wMe,sc_everyN_hours:xMe,sc_everyN_minutes:SMe,sc_everyN_months:kMe,sc_everyN_seconds:CMe,sc_every_dates:$Me,sc_every_dow:EMe,sc_every_dows:TMe,sc_every_hours:OMe,sc_every_minutes:DMe,sc_every_months:MMe,sc_every_seconds:NMe,sc_from:PMe,sc_hours:RMe,sc_interval:AMe,sc_intervalBetween:IMe,sc_invalid_cron:jMe,sc_minutes:LMe,sc_months:zMe,sc_once:FMe,sc_period:BMe,sc_seconds:WMe,sc_simple:UMe,sc_specific:HMe,sc_specific_dates:qMe,sc_specific_dow:VMe,sc_specific_dows:XMe,sc_specific_hours:GMe,sc_specific_minutes:JMe,sc_specific_months:YMe,sc_specific_seconds:KMe,sc_time:ZMe,sc_to:QMe,sc_wizard:eNe,sch_all:tNe,sch_astroDay:rNe,sch_astroNight:nNe,sch_astro_dawn:oNe,sch_astro_dusk:aNe,sch_astro_goldenHour:sNe,sch_astro_goldenHourEnd:iNe,sch_astro_nadir:cNe,sch_astro_nauticalDawn:lNe,sch_astro_nauticalDusk:uNe,sch_astro_night:dNe,sch_astro_nightEnd:pNe,sch_astro_solarNoon:fNe,sch_astro_sunrise:hNe,sch_astro_sunriseEnd:mNe,sch_astro_sunset:_Ne,sch_astro_sunsetStart:gNe,sch_at:yNe,sch_desc_atTime:vNe,sch_desc_everyDay:bNe,sch_desc_everyHour:wNe,sch_desc_everyMinute:xNe,sch_desc_everyMonth:SNe,sch_desc_everyNDay:kNe,sch_desc_everyNHours:CNe,sch_desc_everyNMinutes:$Ne,sch_desc_everyNMonths:ENe,sch_desc_everyNWeeks:TNe,sch_desc_everyNYears:ONe,sch_desc_everyWeek:DNe,sch_desc_everyYear:MNe,sch_desc_intervalFromTo:NNe,sch_desc_never:PNe,sch_desc_onDate:RNe,sch_desc_onDates:ANe,sch_desc_onEveryDate:INe,sch_desc_onMonth:jNe,sch_desc_onMonths:LNe,sch_desc_onWeekday:zNe,sch_desc_onWeekdays:FNe,sch_desc_onWeekends:BNe,sch_desc_onWorkdays:WNe,sch_desc_onceInPast:UNe,sch_desc_once_on:HNe,sch_desc_validFrom:qNe,sch_desc_validFromTo:VNe,sch_desc_validTo:XNe,sch_every:GNe,sch_exactTime:JNe,sch_from:YNe,sch_fromTo:KNe,sch_intervalTime:ZNe,sch_invert:QNe,sch_no_one:ePe,sch_on:tPe,sch_period:rPe,sch_periodDaily:nPe,sch_periodDates:oPe,sch_periodDay:aPe,sch_periodEvery:sPe,sch_periodEveryDay:iPe,sch_periodEveryMonth:cPe,sch_periodEveryWeek:lPe,sch_periodEveryYear:uPe,sch_periodHours:dPe,sch_periodMinutes:pPe,sch_periodMonth:fPe,sch_periodMonthly:hPe,sch_periodOnce:mPe,sch_periodSpecificMonths:_Pe,sch_periodWeek:gPe,sch_periodWeekdays:yPe,sch_periodWeekend:vPe,sch_periodWeekly:bPe,sch_periodWorkdays:wPe,sch_periodYear:xPe,sch_periodYearly:SPe,sch_specificTime:kPe,sch_time:CPe,sch_to:$Pe,sch_valid:EPe,sch_validFrom:TPe,sch_validTo:OPe,sch_wholeDay:DPe,sch_yearEveryMonth:MPe},PPe="Adjuntar",RPe="Cancelar",APe="Categorías",IPe="Comprobado",jPe="Borrar",LPe="Cerca",zPe="Comercial",FPe="Configurar",BPe="Conectado",WPe="Copiado",UPe="Crear",HPe="Cultivo",qPe="Delete",VPe="Eliminar",XPe="Desechar",GPe="Desconectado",JPe="Error",YPe="Filtrar",KPe="Viernes",ZPe="Latitud",QPe="Longitud",eRe="Mensaje",tRe="Lunes",rRe="Nombre",nRe="Objetos",oRe="Okay",aRe="Producto",sRe="Repetir",iRe="Reemplazar",cRe="Raíz",lRe="Sábado",uRe="Salvar",dRe="Seleccionado",pRe="Estados",fRe="Domingo",hRe="Jueves",mRe="Marca de tiempo",_Re="Martes",gRe="Actualizar",yRe="Válida hasta",vRe="Valor",bRe="Versión",wRe="Miércoles",xRe="Anchura",SRe="Sí",kRe="diferente",CRe="Todo el mundo puede leer el objeto",$Re="Todos pueden leer el estado",ERe="Todos pueden escribir objetos",TRe="Todos pueden escribir el estado",ORe="El grupo puede leer el objeto",DRe="El grupo puede leer el estado",MRe="El grupo puede escribir un objeto",NRe="El grupo puede escribir el estado",PRe="El propietario puede leer el objeto",RRe="El propietario puede leer el estado",ARe="El propietario puede escribir el objeto",IRe="El propietario puede escribir el estado",jRe="Botones",LRe="Cambiaron desde",zRe="cerrar",FRe="Crear estado booleano",BRe="Crear canal",WRe="Crear dispositivo",URe="Crear estado numérico",HRe="Crear estado",qRe="Crear estado de cadena",VRe="d.",XRe="Fr",GRe="Mes",JRe="Sa",YRe="Su",KRe="Th",ZRe="Tu",QRe="Nosotros",eAe="Modo experto",tAe="Todos los archivos",rAe="Audio",nAe="Código/JSON",oAe="Imágenes",aAe="Texto",sAe="Video",iAe="Configuraciones",cAe="sin",lAe="Función",uAe="ID",dAe="Nombre",pAe="Papel",fAe="Habitación",hAe="Tipo",mAe="Configuraciones inválidas",_Ae="Ultimo cambio",gAe="en la zona",yAe="Abr",vAe="Ago",bAe="Dic",wAe="Feb",xAe="Ene",SAe="Jul",kAe="Jun",CAe="Mai",$Ae="Mar",EAe="Nov",TAe="Oct",OAe="Sep",DAe="Abr",MAe="Ago",NAe="Dic",PAe="Feb",RAe="Ene",AAe="Jul",IAe="Jun",jAe="Mai",LAe="Mar",zAe="Nov",FAe="Oct",BAe="Sep",WAe="ninguno",UAe="Objeto cambiado por",HAe="Objeto cambiado por última vez a las",qAe="Configuraciones de otro adaptador %s",VAe="Código de calidad",XAe="repetir",GAe='Para seleccionar la carpeta, simplemente mantenga presionada la tecla "shift" haciendo clic en la carpeta.',JAe="Estado cambiado por",YAe="Objeto cambiado de",KAe="Marca de tiempo",ZAe="Bandera reconocida",QAe="Comentario",e5e="Copie el valor del estado",t5e="Ajustes personalizados",r5e="Eliminar objeto",n5e="Editar objeto",o5e="Edite el valor del estado",a5e="Desde",s5e="Último cambio",i5e="Calidad",c5e="Sello de tiempo",l5e="Usuario",u5e="Valor",d5e="Valor",p5e="Advertencia: ¡El trabajo CRON se ejecutará cada minuto durante el período especificado!",f5e="Advertencia: ¡El trabajo CRON se ejecutará cada segundo durante el período especificado!",h5e="CRON",m5e="Fecha",_5e="fechas",g5e="Día",y5e="Día de la semana",v5e="Cada",b5e="cada N días",w5e="cada enésimo día de la semana",x5e="cada N día de la semana",S5e="cada N horas",k5e="cada N minutos",C5e="cada N meses",$5e="cada N segundos",E5e="cada día",T5e="Cada día de la semana",O5e="Cada día de la semana",D5e="cada hora",M5e="cada minuto",N5e="cada mes",P5e="cada segundo",R5e="De",A5e="Horas",I5e="Intervalo",j5e="Intervalo entre",L5e="CRON no válido",z5e="Minutos",F5e="meses",B5e="Una vez",W5e="Período",U5e="Segundos",H5e="Sencillo",q5e="Tiempo específico",V5e="fechas especificas",X5e="día(s) específico(s) de la semana",G5e="día específico de semanas",J5e="horas específicas",Y5e="minutos específicos",K5e="meses específicos",Z5e="segundos específicos",Q5e="Hora",eIe="A",tIe="Mago",rIe="todas",nIe="Día astro",oIe="Noche astro",aIe="Amanecer",sIe="Oscuridad",iIe="hora dorada",cIe="Fin de la hora dorada",lIe="Nadir",uIe="Amanecer náutico",dIe="Anochecer náutico",pIe="Noche",fIe="Fin de la noche",hIe="Mediodía solar",mIe="amanecer",_Ie="Fin del amanecer",gIe="Puesta de sol",yIe="Puesta de sol",vIe="a",bIe="en %s",wIe="cada día",xIe="cada hora",SIe="cada minuto",kIe="cada mes",CIe="cada %s días",$Ie="cada %s horas",EIe="cada %s minutos",TIe="cada %s meses",OIe="cada %s semanas",DIe="cada %s años",MIe="cada semana",NIe="todos los años",PIe="de %s a %s",RIe="Nunca",AIe="en %s de %s",IIe="en %s y %s de",jIe="en cada fecha de",LIe="%s",zIe="%s y %s",FIe="en %s",BIe="en %s y %s",WIe="en los fines de semana",UIe="en días laborables",HIe="ya no se ejecutará más, porque el inicio está en el pasado",qIe="en %s",VIe="de %s",XIe="Ejecutar desde hasta",GIe="a %s",JIe="cada",YIe="Tiempo específico",KIe="de",ZIe="De-a",QIe="Tiempo de intervalo",e4e="invertir; poner boca abajo o en la posición opuesta, orden o arreglo; Boca abajo",t4e="ninguna",r4e="en",n4e="Período",o4e="Diario",a4e="fechas",s4e="Día",i4e="Cada",c4e="Cada día",l4e="Cada mes",u4e="Cada semana",d4e="Todos los años",p4e="Horas",f4e="Minutos",h4e="mes",m4e="Mensual",_4e="Una vez",g4e="Meses específicos",y4e="Semana",v4e="Días laborables",b4e="Fin de semana",w4e="Semanal",x4e="Días laborables",S4e="Año",k4e="Anual",C4e="Tiempo específico",$4e="Hora",E4e="a",T4e="Válido",O4e="de",D4e="a",M4e="Todo el dia",N4e="cada mes",P4e={"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_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:PPe,"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:RPe,"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:APe,"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:IPe,ra_Clear:jPe,"ra_Clear filter":"Filtro claro","ra_Clear icon":"Icono claro","ra_Clone current row":"Clonar fila actual",ra_Close:LPe,"ra_Collapse all nodes":"Contraer todos los nodos","ra_Collapse one step node":"Contraer un nivel",ra_Commercial:zPe,ra_Configure:FPe,"ra_Configure visible columns":"Configurar columnas visibles","ra_Confirm deletion of %s":"Confirmar la eliminación de %s",ra_Connected:BPe,ra_Copied:WPe,"ra_Copied %s":'Copiado "%s"',"ra_Copy content":"Copiar contenido",ra_Create:UPe,"ra_Create alias":"Crear alias","ra_Create folder":"Crear carpeta","ra_Create new folder in %s":"Crear nueva carpeta en %s",ra_Crop:HPe,"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:qPe,ra_Delete:VPe,"ra_Delete (no confirm for 5 mins)":"Eliminar (sin confirmar durante 5 minutos)","ra_Delete current row":"Eliminar fila actual","ra_Deselect all":"Deselecciona todo","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:XPe,ra_Disconnected:GPe,"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_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 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_Error:JPe,"ra_Expand all nodes":"Expandir todos los nodos","ra_Expand one step node":"Expandir un nivel","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:YPe,"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:KPe,"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_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 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:ZPe,"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_Longitude:QPe,'ra_May not trigger "updateLicenses"':'No puede activar "updateLicenses"',ra_Message:eRe,ra_Monday:tRe,"ra_Move down":"Mover hacia abajo","ra_Move up":"Ascender",ra_Name:rRe,"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 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_Objects:nRe,ra_Ok:oRe,"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 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_Private certificate":"certificado privado",ra_Product:aRe,"ra_Public certificate":"Certificado público","ra_Quality code":"Calidad","ra_Refresh tree":"Actualizar árbol","ra_Reload files":"Recargar archivos",ra_Repeat:sRe,ra_Replace:iRe,"ra_Request timed out":"Tiempo de espera agotado","ra_Restrict to folder":"Restringir a carpeta",ra_Root:cRe,ra_Saturday:lRe,ra_Save:uRe,"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:dRe,"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_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:pRe,"ra_Suitable license not found in license manager":"Licencia adecuada no encontrada en el administrador de licencias",ra_Sunday:fRe,"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:hRe,ra_Timestamp:mRe,"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:_Re,"ra_Unknown error":"Error desconocido","ra_Unknown error!":"¡Error desconocido!",ra_Update:gRe,"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:yRe,ra_Value:vRe,ra_Version:bRe,"ra_View file":"Ver archivo","ra_View: %s":"Ver: %s",ra_Wednesday:wRe,ra_Width:xRe,ra_Yes:SRe,"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___different__:kRe,ra_aclEveryone_read_object:CRe,ra_aclEveryone_read_state:$Re,ra_aclEveryone_write_object:ERe,ra_aclEveryone_write_state:TRe,ra_aclGroup_read_object:ORe,ra_aclGroup_read_state:DRe,ra_aclGroup_write_object:MRe,ra_aclGroup_write_state:NRe,ra_aclOwner_read_object:PRe,ra_aclOwner_read_state:RRe,ra_aclOwner_write_object:ARe,ra_aclOwner_write_state:IRe,ra_buttons:jRe,ra_changedFrom:LRe,ra_close:zRe,ra_create_boolean_state:FRe,ra_create_channel:BRe,ra_create_device:WRe,ra_create_number_state:URe,ra_create_state:HRe,ra_create_string_state:qRe,ra_daysShortText:VRe,ra_dow_Fr:XRe,ra_dow_Mo:GRe,ra_dow_Sa:JRe,ra_dow_Su:YRe,ra_dow_Th:KRe,ra_dow_Tu:ZRe,ra_dow_We:QRe,ra_expertMode:eAe,ra_fileType_all:tAe,ra_fileType_audio:rAe,ra_fileType_code:nAe,ra_fileType_images:oAe,ra_fileType_txt:aAe,ra_fileType_video:sAe,"ra_fileType_video,":"Video",ra_filter_customs:iAe,ra_filter_customs_without:cAe,ra_filter_func:lAe,ra_filter_id:uAe,ra_filter_name:dAe,ra_filter_role:pAe,ra_filter_room:fAe,ra_filter_type:hAe,"ra_import data from %s file":"Importar datos del archivo %s",ra_invalidConfig:mAe,ra_lastChange:_Ae,ra_locally:gAe,ra_month_Apr:yAe,ra_month_Aug:vAe,ra_month_Dec:bAe,ra_month_Feb:wAe,ra_month_Jan:xAe,ra_month_Jul:SAe,ra_month_Jun:kAe,ra_month_Mai:CAe,ra_month_Mar:$Ae,ra_month_Nov:EAe,ra_month_Oct:TAe,ra_month_Sep:OAe,ra_months_Apr:DAe,ra_months_Aug:MAe,ra_months_Dec:NAe,ra_months_Feb:PAe,ra_months_Jan:RAe,ra_months_Jul:AAe,ra_months_Jun:IAe,ra_months_Mai:jAe,ra_months_Mar:LAe,ra_months_Nov:zAe,ra_months_Oct:FAe,ra_months_Sep:BAe,ra_none:WAe,ra_object_changed_by:UAe,ra_object_changed_by_user:HAe,ra_otherConfig:qAe,ra_qualityCode:VAe,ra_repeat:XAe,ra_select_folder_hint:GAe,ra_state_changed_by:JAe,ra_state_changed_from:YAe,ra_timestamp:KAe,ra_tooltip_ack:ZAe,ra_tooltip_comment:QAe,ra_tooltip_copyState:e5e,ra_tooltip_customConfig:t5e,ra_tooltip_deleteObject:r5e,ra_tooltip_editObject:n5e,ra_tooltip_editState:o5e,ra_tooltip_from:a5e,ra_tooltip_lc:s5e,ra_tooltip_quality:i5e,ra_tooltip_ts:c5e,ra_tooltip_user:l5e,ra_tooltip_value:u5e,"ra_use seconds":"usar segundos",ra_val:d5e,"ra_via internet":"vía Internet",ra_warning_every_minute:p5e,ra_warning_every_second:f5e,sc_cron:h5e,sc_date:m5e,sc_dates:_5e,sc_dow:g5e,sc_dows:y5e,sc_every:v5e,sc_everyN_dates:b5e,sc_everyN_dow:w5e,sc_everyN_dows:x5e,sc_everyN_hours:S5e,sc_everyN_minutes:k5e,sc_everyN_months:C5e,sc_everyN_seconds:$5e,sc_every_dates:E5e,sc_every_dow:T5e,sc_every_dows:O5e,sc_every_hours:D5e,sc_every_minutes:M5e,sc_every_months:N5e,sc_every_seconds:P5e,sc_from:R5e,sc_hours:A5e,sc_interval:I5e,sc_intervalBetween:j5e,sc_invalid_cron:L5e,sc_minutes:z5e,sc_months:F5e,sc_once:B5e,sc_period:W5e,sc_seconds:U5e,sc_simple:H5e,sc_specific:q5e,sc_specific_dates:V5e,sc_specific_dow:X5e,sc_specific_dows:G5e,sc_specific_hours:J5e,sc_specific_minutes:Y5e,sc_specific_months:K5e,sc_specific_seconds:Z5e,sc_time:Q5e,sc_to:eIe,sc_wizard:tIe,sch_all:rIe,sch_astroDay:nIe,sch_astroNight:oIe,sch_astro_dawn:aIe,sch_astro_dusk:sIe,sch_astro_goldenHour:iIe,sch_astro_goldenHourEnd:cIe,sch_astro_nadir:lIe,sch_astro_nauticalDawn:uIe,sch_astro_nauticalDusk:dIe,sch_astro_night:pIe,sch_astro_nightEnd:fIe,sch_astro_solarNoon:hIe,sch_astro_sunrise:mIe,sch_astro_sunriseEnd:_Ie,sch_astro_sunset:gIe,sch_astro_sunsetStart:yIe,sch_at:vIe,sch_desc_atTime:bIe,sch_desc_everyDay:wIe,sch_desc_everyHour:xIe,sch_desc_everyMinute:SIe,sch_desc_everyMonth:kIe,sch_desc_everyNDay:CIe,sch_desc_everyNHours:$Ie,sch_desc_everyNMinutes:EIe,sch_desc_everyNMonths:TIe,sch_desc_everyNWeeks:OIe,sch_desc_everyNYears:DIe,sch_desc_everyWeek:MIe,sch_desc_everyYear:NIe,sch_desc_intervalFromTo:PIe,sch_desc_never:RIe,sch_desc_onDate:AIe,sch_desc_onDates:IIe,sch_desc_onEveryDate:jIe,sch_desc_onMonth:LIe,sch_desc_onMonths:zIe,sch_desc_onWeekday:FIe,sch_desc_onWeekdays:BIe,sch_desc_onWeekends:WIe,sch_desc_onWorkdays:UIe,sch_desc_onceInPast:HIe,sch_desc_once_on:qIe,sch_desc_validFrom:VIe,sch_desc_validFromTo:XIe,sch_desc_validTo:GIe,sch_every:JIe,sch_exactTime:YIe,sch_from:KIe,sch_fromTo:ZIe,sch_intervalTime:QIe,sch_invert:e4e,sch_no_one:t4e,sch_on:r4e,sch_period:n4e,sch_periodDaily:o4e,sch_periodDates:a4e,sch_periodDay:s4e,sch_periodEvery:i4e,sch_periodEveryDay:c4e,sch_periodEveryMonth:l4e,sch_periodEveryWeek:u4e,sch_periodEveryYear:d4e,sch_periodHours:p4e,sch_periodMinutes:f4e,sch_periodMonth:h4e,sch_periodMonthly:m4e,sch_periodOnce:_4e,sch_periodSpecificMonths:g4e,sch_periodWeek:y4e,sch_periodWeekdays:v4e,sch_periodWeekend:b4e,sch_periodWeekly:w4e,sch_periodWorkdays:x4e,sch_periodYear:S4e,sch_periodYearly:k4e,sch_specificTime:C4e,sch_time:$4e,sch_to:E4e,sch_valid:T4e,sch_validFrom:O4e,sch_validTo:D4e,sch_wholeDay:M4e,sch_yearEveryMonth:N4e},R4e="Dodać",A4e="Anuluj",I4e="Kategorie",j4e="Sprawdzony",L4e="Kasować",z4e="Blisko",F4e="Handlowy",B4e="Konfiguruj",W4e="Połączony",U4e="Skopiowano",H4e="Stwórz",q4e="Przyciąć",V4e="Delete",X4e="Usunąć",G4e="Wyrzucać",J4e="Niepowiązany",Y4e="Błąd",K4e="Filtr",Z4e="Piątek",Q4e="Szerokość",eje="Długość geograficzna",tje="Wiadomość",rje="Poniedziałek",nje="Nazwa",oje="Obiekty",aje="Dobrze",sje="Produkt",ije="Powtarzać",cje="Zastępować",lje="Korzeń",uje="Sobota",dje="Zapisać",pje="Wybrany",fje="Stany",hje="Niedziela",mje="Czwartek",_je="Znak czasu",gje="Wtorek",yje="Aktualizacja",vje="Obowiązuje do",bje="Wartość",wje="Wersja",xje="Środa",Sje="Szerokość",kje="Tak",Cje="różne",$je="Każdy może czytać obiekt",Eje="Każdy może czytać stan",Tje="Każdy może pisać przedmiot",Oje="Każdy może pisać stan",Dje="Grupa może odczytać obiekt",Mje="Grupa może odczytać stan",Nje="Grupa może pisać obiekt",Pje="Grupa może pisać stan",Rje="Właściciel może czytać obiekt",Aje="Właściciel może odczytać stan",Ije="Właściciel może napisać obiekt",jje="Właściciel może pisać stan",Lje="guziki",zje="Zmieniony z",Fje="blisko",Bje="Utwórz stan logiczny",Wje="Utwórz kanał",Uje="Utwórz urządzenie",Hje="Utwórz stan liczbowy",qje="Utwórz stan",Vje="Utwórz stan ciągu",Xje="d.",Gje="Ks",Jje="Mo",Yje="Sa",Kje="Su",Zje="Th",Qje="Tu",e3e="My",t3e="Tryb ekspercki",r3e="Wszystkie pliki",n3e="Audio",o3e="Kod/JSON",a3e="Obrazy",s3e="Tekst",i3e="Wideo",c3e="Ustawienia",l3e="bez",u3e="Funkcjonować",d3e="ID",p3e="Imię",f3e="Rola",h3e="Sala",m3e="Rodzaj",_3e="Nieprawidłowe ustawienia",g3e="Ostatnia zmiana",y3e="lokalnie",v3e="kwiecień",b3e="sierpień",w3e="grudzień",x3e="luty",S3e="styczeń",k3e="lipiec",C3e="czerwiec",$3e="Mai",E3e="Zniszczyć",T3e="listopad",O3e="październik",D3e="wrzesień",M3e="kwiecień",N3e="sierpień",P3e="grudzień",R3e="luty",A3e="styczeń",I3e="lipiec",j3e="czerwiec",L3e="Mai",z3e="Zniszczyć",F3e="listopad",B3e="październik",W3e="wrzesień",U3e="Żaden",H3e="Obiekt zmieniony przez",q3e="Obiekt ostatnio zmieniony o godz",V3e="Ustawienia z innego adaptera %s",X3e="Kod jakości",G3e="powtarzać",J3e="Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.",Y3e="Stan zmieniony przez",K3e="Obiekt zmieniony z",Z3e="Znak czasu",Q3e="Potwierdzon",eLe="Komentarz",tLe="Skopiuj wartość stanu",rLe="Własne ustawienia",nLe="Usuń obiekt",oLe="Edytuj obiekt",aLe="Edytuj wartość stanu",sLe="Z",iLe="Ostatnia zmiana",cLe="Jakość",lLe="Znak czasu",uLe="Użytkownik",dLe="Wartość",pLe="Wartość",fLe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co minutę w określonym przedziale czasowym!",hLe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co sekundę w określonym przedziale czasowym!",mLe="CRON",_Le="Data",gLe="Daktyle",yLe="Dzień",vLe="Dzień tygodnia",bLe="Każdy",wLe="co N dni",xLe="w każdy N-ty dzień tygodnia",SLe="co N dnia tygodnia",kLe="co N godzin",CLe="co N minut",$Le="co N miesięcy",ELe="co N sekund",TLe="codziennie",OLe="każdy dzień tygodnia",DLe="każdy dzień tygodnia",MLe="co godzinę",NLe="każda minuta",PLe="każdego miesiąca",RLe="każda sekunda",ALe="Od",ILe="godziny",jLe="Interwał",LLe="Interwał między",zLe="Nieprawidłowy CRON",FLe="Minuty",BLe="miesięcy",WLe="Pewnego razu",ULe="Kropka",HLe="sekundy",qLe="Prosty",VLe="Określony czas",XLe="konkretne daty",GLe="określone dni tygodnia",JLe="określony dzień tygodni",YLe="określone godziny",KLe="określone minuty",ZLe="określone miesiące",QLe="określone sekundy",eze="Czas",tze="Do",rze="Czarodziej",nze="wszystko",oze="Dzień Astro",aze="Noc Astro",sze="Świt",ize="Zmierzch",cze="złota godzina",lze="Koniec złotej godziny",uze="Nadir",dze="Morski świt",pze="Morski zmierzch",fze="Noc",hze="Koniec nocy",mze="Południe słoneczne",_ze="wschód słońca",gze="Koniec wschodu słońca",yze="Zachód słońca",vze="Początek zachodu słońca",bze="w",wze="na %s",xze="codziennie",Sze="co godzinę",kze="każda minuta",Cze="każdego miesiąca",$ze="każdego dnia %s",Eze="co %s godzin",Tze="co %s minut",Oze="co %s miesięcy",Dze="co %s tygodni",Mze="co %s lat",Nze="co tydzień",Pze="każdego roku",Rze="od %s do %s",Aze="nigdy",Ize="na %s z %s",jze="na %s i %s z",Lze="w każdą datę",zze="%s",Fze="%s i %s",Bze="na %s",Wze="na %s i %s",Uze="w weekendy",Hze="w dni robocze",qze="nie będzie już wykonywany, ponieważ start jest w przeszłości",Vze="na %s",Xze="z %s",Gze="Wykonaj od do",Jze="do %s",Yze="każdy",Kze="Określony czas",Zze="od",Qze="Od-do",eFe="Czas przerwy",tFe="odwracać",rFe="Żaden",nFe="na",oFe="Kropka",aFe="Codziennie",sFe="Daktyle",iFe="Dzień",cFe="Każdy",lFe="Codziennie",uFe="Każdego miesiąca",dFe="Co tydzień",pFe="Każdego roku",fFe="godziny",hFe="Minuty",mFe="miesiąc",_Fe="Miesięczny",gFe="Pewnego razu",yFe="Określone miesiące",vFe="Tydzień",bFe="Dni powszednie",wFe="Weekend",xFe="Co tydzień",SFe="Dni robocze",kFe="Rok",CFe="Rocznie",$Fe="Określony czas",EFe="Czas",TFe="do",OFe="Ważny",DFe="od",MFe="do",NFe="Cały dzień",PFe="każdego miesiąca",RFe={"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_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:R4e,"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:A4e,"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:I4e,"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:j4e,ra_Clear:L4e,"ra_Clear filter":"Czysty filtr","ra_Clear icon":"Wyczyść ikonę","ra_Clone current row":"Sklonuj bieżący wiersz",ra_Close:z4e,"ra_Collapse all nodes":"Zwiń wszystkie węzły","ra_Collapse one step node":"Zwiń o jeden poziom",ra_Commercial:F4e,ra_Configure:B4e,"ra_Configure visible columns":"Skonfiguruj widoczne kolumny","ra_Confirm deletion of %s":"Potwierdź usunięcie %s",ra_Connected:W4e,ra_Copied:U4e,"ra_Copied %s":'Skopiowano "%s"',"ra_Copy content":"Kopiuj zawartość",ra_Create:H4e,"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:q4e,"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:V4e,ra_Delete:X4e,"ra_Delete (no confirm for 5 mins)":"Usuń (bez potwierdzenia przez 5 minut)","ra_Delete current row":"Usuń bieżący wiersz","ra_Deselect all":"Odznacz wszystko","ra_Device → Channel → State":"Urządzenie → Kanał → Stan",ra_Discard:G4e,ra_Disconnected:J4e,"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_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 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_Error:Y4e,"ra_Expand all nodes":"Rozwiń wszystkie węzły","ra_Expand one step node":"Rozwiń o jeden poziom","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:K4e,"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:Z4e,"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_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 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:Q4e,"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_Longitude:eje,'ra_May not trigger "updateLicenses"':"Może nie uruchamiać „updateLicenses”",ra_Message:tje,ra_Monday:rje,"ra_Move down":"Padnij","ra_Move up":"Podnieść",ra_Name:nje,"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 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_Objects:oje,ra_Ok:aje,"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 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_Private certificate":"Prywatny certyfikat",ra_Product:sje,"ra_Public certificate":"Certyfikat publiczny","ra_Quality code":"Jakości","ra_Refresh tree":"Odśwież drzewo","ra_Reload files":"Załaduj ponownie pliki",ra_Repeat:ije,ra_Replace:cje,"ra_Request timed out":"Upłynął limit czasu żądania","ra_Restrict to folder":"Ogranicz do folderu",ra_Root:lje,ra_Saturday:uje,ra_Save:dje,"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:pje,"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_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:fje,"ra_Suitable license not found in license manager":"Nie znaleziono odpowiedniej licencji w menedżerze licencji",ra_Sunday:hje,"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:mje,ra_Timestamp:_je,"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:gje,"ra_Unknown error":"Nieznany błąd","ra_Unknown error!":"Nieznany błąd!",ra_Update:yje,"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:vje,ra_Value:bje,ra_Version:wje,"ra_View file":"Zobaczyć plik","ra_View: %s":"Widok: %s",ra_Wednesday:xje,ra_Width:Sje,ra_Yes:kje,"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___different__:Cje,ra_aclEveryone_read_object:$je,ra_aclEveryone_read_state:Eje,ra_aclEveryone_write_object:Tje,ra_aclEveryone_write_state:Oje,ra_aclGroup_read_object:Dje,ra_aclGroup_read_state:Mje,ra_aclGroup_write_object:Nje,ra_aclGroup_write_state:Pje,ra_aclOwner_read_object:Rje,ra_aclOwner_read_state:Aje,ra_aclOwner_write_object:Ije,ra_aclOwner_write_state:jje,ra_buttons:Lje,ra_changedFrom:zje,ra_close:Fje,ra_create_boolean_state:Bje,ra_create_channel:Wje,ra_create_device:Uje,ra_create_number_state:Hje,ra_create_state:qje,ra_create_string_state:Vje,ra_daysShortText:Xje,ra_dow_Fr:Gje,ra_dow_Mo:Jje,ra_dow_Sa:Yje,ra_dow_Su:Kje,ra_dow_Th:Zje,ra_dow_Tu:Qje,ra_dow_We:e3e,ra_expertMode:t3e,ra_fileType_all:r3e,ra_fileType_audio:n3e,ra_fileType_code:o3e,ra_fileType_images:a3e,ra_fileType_txt:s3e,ra_fileType_video:i3e,"ra_fileType_video,":"Wideo",ra_filter_customs:c3e,ra_filter_customs_without:l3e,ra_filter_func:u3e,ra_filter_id:d3e,ra_filter_name:p3e,ra_filter_role:f3e,ra_filter_room:h3e,ra_filter_type:m3e,"ra_import data from %s file":"Importuj dane z pliku %s",ra_invalidConfig:_3e,ra_lastChange:g3e,ra_locally:y3e,ra_month_Apr:v3e,ra_month_Aug:b3e,ra_month_Dec:w3e,ra_month_Feb:x3e,ra_month_Jan:S3e,ra_month_Jul:k3e,ra_month_Jun:C3e,ra_month_Mai:$3e,ra_month_Mar:E3e,ra_month_Nov:T3e,ra_month_Oct:O3e,ra_month_Sep:D3e,ra_months_Apr:M3e,ra_months_Aug:N3e,ra_months_Dec:P3e,ra_months_Feb:R3e,ra_months_Jan:A3e,ra_months_Jul:I3e,ra_months_Jun:j3e,ra_months_Mai:L3e,ra_months_Mar:z3e,ra_months_Nov:F3e,ra_months_Oct:B3e,ra_months_Sep:W3e,ra_none:U3e,ra_object_changed_by:H3e,ra_object_changed_by_user:q3e,ra_otherConfig:V3e,ra_qualityCode:X3e,ra_repeat:G3e,ra_select_folder_hint:J3e,ra_state_changed_by:Y3e,ra_state_changed_from:K3e,ra_timestamp:Z3e,ra_tooltip_ack:Q3e,ra_tooltip_comment:eLe,ra_tooltip_copyState:tLe,ra_tooltip_customConfig:rLe,ra_tooltip_deleteObject:nLe,ra_tooltip_editObject:oLe,ra_tooltip_editState:aLe,ra_tooltip_from:sLe,ra_tooltip_lc:iLe,ra_tooltip_quality:cLe,ra_tooltip_ts:lLe,ra_tooltip_user:uLe,ra_tooltip_value:dLe,"ra_use seconds":"użyj sekund",ra_val:pLe,"ra_via internet":"przez internet",ra_warning_every_minute:fLe,ra_warning_every_second:hLe,sc_cron:mLe,sc_date:_Le,sc_dates:gLe,sc_dow:yLe,sc_dows:vLe,sc_every:bLe,sc_everyN_dates:wLe,sc_everyN_dow:xLe,sc_everyN_dows:SLe,sc_everyN_hours:kLe,sc_everyN_minutes:CLe,sc_everyN_months:$Le,sc_everyN_seconds:ELe,sc_every_dates:TLe,sc_every_dow:OLe,sc_every_dows:DLe,sc_every_hours:MLe,sc_every_minutes:NLe,sc_every_months:PLe,sc_every_seconds:RLe,sc_from:ALe,sc_hours:ILe,sc_interval:jLe,sc_intervalBetween:LLe,sc_invalid_cron:zLe,sc_minutes:FLe,sc_months:BLe,sc_once:WLe,sc_period:ULe,sc_seconds:HLe,sc_simple:qLe,sc_specific:VLe,sc_specific_dates:XLe,sc_specific_dow:GLe,sc_specific_dows:JLe,sc_specific_hours:YLe,sc_specific_minutes:KLe,sc_specific_months:ZLe,sc_specific_seconds:QLe,sc_time:eze,sc_to:tze,sc_wizard:rze,sch_all:nze,sch_astroDay:oze,sch_astroNight:aze,sch_astro_dawn:sze,sch_astro_dusk:ize,sch_astro_goldenHour:cze,sch_astro_goldenHourEnd:lze,sch_astro_nadir:uze,sch_astro_nauticalDawn:dze,sch_astro_nauticalDusk:pze,sch_astro_night:fze,sch_astro_nightEnd:hze,sch_astro_solarNoon:mze,sch_astro_sunrise:_ze,sch_astro_sunriseEnd:gze,sch_astro_sunset:yze,sch_astro_sunsetStart:vze,sch_at:bze,sch_desc_atTime:wze,sch_desc_everyDay:xze,sch_desc_everyHour:Sze,sch_desc_everyMinute:kze,sch_desc_everyMonth:Cze,sch_desc_everyNDay:$ze,sch_desc_everyNHours:Eze,sch_desc_everyNMinutes:Tze,sch_desc_everyNMonths:Oze,sch_desc_everyNWeeks:Dze,sch_desc_everyNYears:Mze,sch_desc_everyWeek:Nze,sch_desc_everyYear:Pze,sch_desc_intervalFromTo:Rze,sch_desc_never:Aze,sch_desc_onDate:Ize,sch_desc_onDates:jze,sch_desc_onEveryDate:Lze,sch_desc_onMonth:zze,sch_desc_onMonths:Fze,sch_desc_onWeekday:Bze,sch_desc_onWeekdays:Wze,sch_desc_onWeekends:Uze,sch_desc_onWorkdays:Hze,sch_desc_onceInPast:qze,sch_desc_once_on:Vze,sch_desc_validFrom:Xze,sch_desc_validFromTo:Gze,sch_desc_validTo:Jze,sch_every:Yze,sch_exactTime:Kze,sch_from:Zze,sch_fromTo:Qze,sch_intervalTime:eFe,sch_invert:tFe,sch_no_one:rFe,sch_on:nFe,sch_period:oFe,sch_periodDaily:aFe,sch_periodDates:sFe,sch_periodDay:iFe,sch_periodEvery:cFe,sch_periodEveryDay:lFe,sch_periodEveryMonth:uFe,sch_periodEveryWeek:dFe,sch_periodEveryYear:pFe,sch_periodHours:fFe,sch_periodMinutes:hFe,sch_periodMonth:mFe,sch_periodMonthly:_Fe,sch_periodOnce:gFe,sch_periodSpecificMonths:yFe,sch_periodWeek:vFe,sch_periodWeekdays:bFe,sch_periodWeekend:wFe,sch_periodWeekly:xFe,sch_periodWorkdays:SFe,sch_periodYear:kFe,sch_periodYearly:CFe,sch_specificTime:$Fe,sch_time:EFe,sch_to:TFe,sch_valid:OFe,sch_validFrom:DFe,sch_validTo:MFe,sch_wholeDay:NFe,sch_yearEveryMonth:PFe},AFe="Додайте",IFe="Скасувати",jFe="Категорії",LFe="Перевірено",zFe="Видалити",FFe="Закрити",BFe="Комерційний",WFe="Налаштувати",UFe="Підключено",HFe="Скопійовано",qFe="Створити",VFe="Урожай",XFe="Delete",GFe="Видалити",JFe="Відкинути",YFe="Відключено",KFe="Помилка",ZFe="фільтр",QFe="П'ятниця",e6e="Широта",t6e="Довгота",r6e="повідомлення",n6e="понеділок",o6e="Ім'я",a6e="Об'єкти",s6e="В порядку",i6e="Продукт",c6e="Повторіть",l6e="Замінити",u6e="Корінь",d6e="Субота",p6e="зберегти",f6e="Вибране",h6e="держави",m6e="неділя",_6e="четвер",g6e="Мітка часу",y6e="вівторок",v6e="оновлення",b6e="Дійсний до",w6e="Значення",x6e="Версія",S6e="Середа",k6e="Ширина",C6e="Так",$6e="інший",E6e="Кожен може читати об'єкт",T6e="Кожен може читати стан",O6e="Кожен може написати об'єкт",D6e="Кожен може написати стан",M6e="Група може читати об'єкт",N6e="Група може читати стан",P6e="Група може писати об'єкт",R6e="Група може писати стан",A6e="Власник може читати об'єкт",I6e="Власник може читати стан",j6e="Власник може написати об'єкт",L6e="Власник може написати стан",z6e="кнопки",F6e="Змінено з",B6e="закрити",W6e="Створіть логічний стан",U6e="Створити канал",H6e="Створити пристрій",q6e="Створити номерний стан",V6e="Створити состояние",X6e="Створити рядковий стан",G6e="днів",J6e="О",Y6e="пн",K6e="Sa",Z6e="Нд",Q6e="чт",e8e="вт",t8e="ми",r8e="Експертний режим",n8e="Всі файли",o8e="Аудіо",a8e="Код/JSON",s8e="Зображення",i8e="текст",c8e="відео",l8e="Налаштування",u8e="без",d8e="функція",p8e="ID",f8e="Ім'я",h8e="Роль",m8e="Кімната",_8e="Тип",g8e="Недійсні налаштування",y8e="Остання зміна",v8e="локально",b8e="квіт",w8e="серп",x8e="груд",S8e="лютий",k8e="січня",C8e="лип",$8e="черв",E8e="травень",T8e="березень",O8e="Листопад",D8e="жовт",M8e="вер",N8e="квіт",P8e="серп",R8e="груд",A8e="лютий",I8e="січня",j8e="лип",L8e="черв",z8e="травень",F8e="березень",B8e="Листопад",W8e="жовт",U8e="вер",H8e="немає",q8e="Об'єкт змінено",V8e="Об'єкт востаннє змінено о",X8e="Налаштування з іншого адаптера %s",G8e="Код якості",J8e="повторити",Y8e="Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».",K8e="Стан змінено на",Z8e="Об'єкт змінено з",Q8e="Мітка часу",e9e="Визнано",t9e="коментар",r9e="Скопіюйте значення стану",n9e="Спеціальні налаштування",o9e="Видалити об'єкт",a9e="Редагувати об'єкт",s9e="Відредагуйте значення стану",i9e="Від",c9e="Востаннє змінено",l9e="якість",u9e="Позначка часу",d9e="Користувач",p9e="Значення",f9e="Значення",h9e="Попередження: завдання CRON виконуватиметься щохвилини протягом зазначеного періоду!",m9e="Попередження: завдання CRON виконуватиметься кожну секунду протягом зазначеного періоду!",_9e="CRON",g9e="Дата",y9e="дати",v9e="День",b9e="День тижня",w9e="кожен",x9e="кожні N днів",S9e="кожен N-й день тижня",k9e="кожні N днів тижня",C9e="кожні N годин",$9e="кожні N хвилин",E9e="кожні N місяців",T9e="кожні N секунд",O9e="кожен день",D9e="кожен день тижня",M9e="кожен день тижня",N9e="щогодини",P9e="кожну хвилину",R9e="щомісяця",A9e="кожна секунда",I9e="Від",j9e="години",L9e="Інтервал",z9e="Інтервал між",F9e="Недійсний CRON",B9e="хвилин",W9e="місяців",U9e="Один раз",H9e="Крапка",q9e="секунд",V9e="просто",X9e="Конкретний час",G9e="конкретні дати",J9e="конкретний день (дні) тижня",Y9e="конкретний день тижня",K9e="конкретні години",Z9e="конкретні хвилини",Q9e="конкретні місяці",eBe="конкретні секунди",tBe="час",rBe="до",nBe="майстер",oBe="все",aBe="Астродень",sBe="Астро ніч",iBe="Світанок",cBe="Сутінки",lBe="Золота година",uBe="Кінець золотої години",dBe="Надір",pBe="Морський світанок",fBe="Морські сутінки",hBe="ніч",mBe="Кінець ночі",_Be="Сонячний полудень",gBe="Схід сонця",yBe="Кінець сходу сонця",vBe="Захід сонця",bBe="Початок заходу сонця",wBe="в",xBe="в %s",SBe="кожен день",kBe="щогодини",CBe="кожну хвилину",$Be="щомісяця",EBe="кожен %s день",TBe="кожні %s годин",OBe="кожні %s хвилин",DBe="кожні %s місяців",MBe="кожні %s тижнів",NBe="кожні %s років",PBe="щотижня",RBe="щороку",ABe="від %s до %s",IBe="ніколи",jBe="на %s з %s",LBe="на %s і %s з",zBe="на кожну дату",FBe="%s",BBe="%s і %s",WBe="на %s",UBe="на %s і %s",HBe="на вихідних",qBe="в робочі дні",VBe="більше не виконуватиметься, оскільки запуск у минулому",XBe="на %s",GBe="від %s",JBe="Виконати від до",YBe="до %s",KBe="кожен",ZBe="Конкретний час",QBe="від",e7e="Від до",t7e="Час інтервалу",r7e="інвертувати",n7e="немає",o7e="на",a7e="Крапка",s7e="Щодня",i7e="дати",c7e="День",l7e="кожен",u7e="Кожен день",d7e="Щомісяця",p7e="Щотижня",f7e="Щороку",h7e="години",m7e="хвилин",_7e="місяць",g7e="Щомісяця",y7e="Один раз",v7e="Конкретні місяці",b7e="тиждень",w7e="будні",x7e="Вихідні",S7e="Щотижня",k7e="робочі дні",C7e="рік",$7e="щорічно",E7e="Конкретний час",T7e="час",O7e="до",D7e="Дійсний",M7e="від",N7e="до",P7e="Цілий день",R7e="щомісяця",A7e={"ra_%s links from aliases":"%s посилань із псевдонімів","ra_%s object(s) processed":"Оброблено %s об’єктів","ra_%s was imported":"%s було імпортовано","ra_Accept license":"Прийняти ліцензію","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:AFe,"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:IFe,"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:jFe,"ra_Chained certificate":"Прикутий сертифікат","ra_Change color theme":"Змінити кольорову тему","ra_Changed from":"Змінено з","ra_Channel → State":"Канал → Стан","ra_Check license":"Перевірити ліцензію",ra_Checked:LFe,ra_Clear:zFe,"ra_Clear filter":"Очистити фільтр","ra_Clear icon":"Очистити значок","ra_Clone current row":"Клонувати поточний рядок",ra_Close:FFe,"ra_Collapse all nodes":"Згорнути всі вузли","ra_Collapse one step node":"Згорнути на один рівень",ra_Commercial:BFe,ra_Configure:WFe,"ra_Configure visible columns":"Налаштувати видимі стовпці","ra_Confirm deletion of %s":"Підтвердити видалення %s",ra_Connected:UFe,ra_Copied:HFe,"ra_Copied %s":'Скопійовано "%s"',"ra_Copy content":"Скопіюйте вміст",ra_Create:qFe,"ra_Create alias":"Створити псевдонім","ra_Create folder":"Створити папку","ra_Create new folder in %s":"Створіть нову папку в %s",ra_Crop:VFe,"ra_Define CRON...":"Визначити CRON...","ra_Define functions":"Визначити функції","ra_Define rooms":"Визначте кімнати","ra_Define schedule":"Визначити розклад","ra_Define schedule...":"Визначити розклад...",ra_Del:XFe,ra_Delete:GFe,"ra_Delete (no confirm for 5 mins)":"Видалити (без підтвердження протягом 5 хвилин)","ra_Delete current row":"Видалити поточний рядок","ra_Deselect all":"Скасувати вибір усіх","ra_Device → Channel → State":"Пристрій → Канал → Стан",ra_Discard:JFe,ra_Disconnected:YFe,"ra_Do not export values of states":"Не експортуйте значення станів","ra_Do not use let's encrypt":"Не використовуйте let's encrypt","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 function":"функція редагування","ra_Edit object field":"Поле редагування об'єкта","ra_Edit role":"Редагувати роль","ra_Edit room":"Редагувати кімнату","ra_Edit value":"Редагувати значення",ra_Error:KFe,"ra_Expand all nodes":"Розгорнути всі вузли","ra_Expand one step node":"Розгорніть один рівень","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:ZFe,"ra_Filter files":"Фільтр файлів","ra_Folder name":"Назва папки","ra_Folder → Channel → State":"Папка → Канал → Стан","ra_Folder → Device → Channel → State":"Папка → Пристрій → Канал → Стан","ra_Folder → State":"Папка → Стан","ra_Folders always first":"Папки завжди першими",ra_Friday:QFe,"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_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 answer from server":"Недійсна відповідь від сервера","ra_Invalid parent folder!":"Недійсна батьківська папка!","ra_Invalid structure":"Недійсна структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Остання зміна",ra_Latitude:e6e,"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_Longitude:t6e,'ra_May not trigger "updateLicenses"':'Може не запускати "updateLicenses"',ra_Message:r6e,ra_Monday:n6e,"ra_Move down":"Рухатися вниз","ra_Move up":"Рухатися вгору",ra_Name:o6e,"ra_No data found in file":"Немає даних у файлі","ra_No one license found in license manager":"У менеджері ліцензій не знайдено жодної ліцензії","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_Objects:a6e,ra_Ok:s6e,"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 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_Private certificate":"Приватний сертифікат",ra_Product:i6e,"ra_Public certificate":"Публічний сертифікат","ra_Quality code":"якість","ra_Refresh tree":"Оновити дерево","ra_Reload files":"Перезавантажте файли",ra_Repeat:c6e,ra_Replace:l6e,"ra_Request timed out":"Час запиту вичерпано","ra_Restrict to folder":"Обмежити папкою",ra_Root:u6e,ra_Saturday:d6e,ra_Save:p6e,"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:f6e,"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_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:h6e,"ra_Suitable license not found in license manager":"Відповідна ліцензія не знайдена в менеджері ліцензій",ra_Sunday:m6e,"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:_6e,ra_Timestamp:g6e,"ra_Toggle expert mode":"Перемкнути експертний режим","ra_Toggle the states view":"Перемкнути перегляд штатів","ra_Toggle view mode":"Перемкнути режим перегляду","ra_Too big":"Занадто великий","ra_Too small":"Занадто малий","ra_Transparent dialog":"Прозорий діалог",ra_Tuesday:y6e,"ra_Unknown error":"Невідома помилка","ra_Unknown error!":"Невідома помилка!",ra_Update:v6e,"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:b6e,ra_Value:w6e,ra_Version:x6e,"ra_View file":"Переглянути файл","ra_View: %s":"Перегляд: %s",ra_Wednesday:S6e,ra_Width:k6e,ra_Yes:C6e,"ra_You can export all objects or just the selected branch.":"Ви можете експортувати всі об’єкти або лише вибрану гілку.","ra_You can filter entries by entering here some text":"Ви можете фільтрувати записи, ввівши тут певний текст",ra___different__:$6e,ra_aclEveryone_read_object:E6e,ra_aclEveryone_read_state:T6e,ra_aclEveryone_write_object:O6e,ra_aclEveryone_write_state:D6e,ra_aclGroup_read_object:M6e,ra_aclGroup_read_state:N6e,ra_aclGroup_write_object:P6e,ra_aclGroup_write_state:R6e,ra_aclOwner_read_object:A6e,ra_aclOwner_read_state:I6e,ra_aclOwner_write_object:j6e,ra_aclOwner_write_state:L6e,ra_buttons:z6e,ra_changedFrom:F6e,ra_close:B6e,ra_create_boolean_state:W6e,ra_create_channel:U6e,ra_create_device:H6e,ra_create_number_state:q6e,ra_create_state:V6e,ra_create_string_state:X6e,ra_daysShortText:G6e,ra_dow_Fr:J6e,ra_dow_Mo:Y6e,ra_dow_Sa:K6e,ra_dow_Su:Z6e,ra_dow_Th:Q6e,ra_dow_Tu:e8e,ra_dow_We:t8e,ra_expertMode:r8e,ra_fileType_all:n8e,ra_fileType_audio:o8e,ra_fileType_code:a8e,ra_fileType_images:s8e,ra_fileType_txt:i8e,ra_fileType_video:c8e,"ra_fileType_video,":"відео",ra_filter_customs:l8e,ra_filter_customs_without:u8e,ra_filter_func:d8e,ra_filter_id:p8e,ra_filter_name:f8e,ra_filter_role:h8e,ra_filter_room:m8e,ra_filter_type:_8e,"ra_import data from %s file":"Імпортувати дані з файлу %s",ra_invalidConfig:g8e,ra_lastChange:y8e,ra_locally:v8e,ra_month_Apr:b8e,ra_month_Aug:w8e,ra_month_Dec:x8e,ra_month_Feb:S8e,ra_month_Jan:k8e,ra_month_Jul:C8e,ra_month_Jun:$8e,ra_month_Mai:E8e,ra_month_Mar:T8e,ra_month_Nov:O8e,ra_month_Oct:D8e,ra_month_Sep:M8e,ra_months_Apr:N8e,ra_months_Aug:P8e,ra_months_Dec:R8e,ra_months_Feb:A8e,ra_months_Jan:I8e,ra_months_Jul:j8e,ra_months_Jun:L8e,ra_months_Mai:z8e,ra_months_Mar:F8e,ra_months_Nov:B8e,ra_months_Oct:W8e,ra_months_Sep:U8e,ra_none:H8e,ra_object_changed_by:q8e,ra_object_changed_by_user:V8e,ra_otherConfig:X8e,ra_qualityCode:G8e,ra_repeat:J8e,ra_select_folder_hint:Y8e,ra_state_changed_by:K8e,ra_state_changed_from:Z8e,ra_timestamp:Q8e,ra_tooltip_ack:e9e,ra_tooltip_comment:t9e,ra_tooltip_copyState:r9e,ra_tooltip_customConfig:n9e,ra_tooltip_deleteObject:o9e,ra_tooltip_editObject:a9e,ra_tooltip_editState:s9e,ra_tooltip_from:i9e,ra_tooltip_lc:c9e,ra_tooltip_quality:l9e,ra_tooltip_ts:u9e,ra_tooltip_user:d9e,ra_tooltip_value:p9e,"ra_use seconds":"використовуйте секунди",ra_val:f9e,"ra_via internet":"через інтернет",ra_warning_every_minute:h9e,ra_warning_every_second:m9e,sc_cron:_9e,sc_date:g9e,sc_dates:y9e,sc_dow:v9e,sc_dows:b9e,sc_every:w9e,sc_everyN_dates:x9e,sc_everyN_dow:S9e,sc_everyN_dows:k9e,sc_everyN_hours:C9e,sc_everyN_minutes:$9e,sc_everyN_months:E9e,sc_everyN_seconds:T9e,sc_every_dates:O9e,sc_every_dow:D9e,sc_every_dows:M9e,sc_every_hours:N9e,sc_every_minutes:P9e,sc_every_months:R9e,sc_every_seconds:A9e,sc_from:I9e,sc_hours:j9e,sc_interval:L9e,sc_intervalBetween:z9e,sc_invalid_cron:F9e,sc_minutes:B9e,sc_months:W9e,sc_once:U9e,sc_period:H9e,sc_seconds:q9e,sc_simple:V9e,sc_specific:X9e,sc_specific_dates:G9e,sc_specific_dow:J9e,sc_specific_dows:Y9e,sc_specific_hours:K9e,sc_specific_minutes:Z9e,sc_specific_months:Q9e,sc_specific_seconds:eBe,sc_time:tBe,sc_to:rBe,sc_wizard:nBe,sch_all:oBe,sch_astroDay:aBe,sch_astroNight:sBe,sch_astro_dawn:iBe,sch_astro_dusk:cBe,sch_astro_goldenHour:lBe,sch_astro_goldenHourEnd:uBe,sch_astro_nadir:dBe,sch_astro_nauticalDawn:pBe,sch_astro_nauticalDusk:fBe,sch_astro_night:hBe,sch_astro_nightEnd:mBe,sch_astro_solarNoon:_Be,sch_astro_sunrise:gBe,sch_astro_sunriseEnd:yBe,sch_astro_sunset:vBe,sch_astro_sunsetStart:bBe,sch_at:wBe,sch_desc_atTime:xBe,sch_desc_everyDay:SBe,sch_desc_everyHour:kBe,sch_desc_everyMinute:CBe,sch_desc_everyMonth:$Be,sch_desc_everyNDay:EBe,sch_desc_everyNHours:TBe,sch_desc_everyNMinutes:OBe,sch_desc_everyNMonths:DBe,sch_desc_everyNWeeks:MBe,sch_desc_everyNYears:NBe,sch_desc_everyWeek:PBe,sch_desc_everyYear:RBe,sch_desc_intervalFromTo:ABe,sch_desc_never:IBe,sch_desc_onDate:jBe,sch_desc_onDates:LBe,sch_desc_onEveryDate:zBe,sch_desc_onMonth:FBe,sch_desc_onMonths:BBe,sch_desc_onWeekday:WBe,sch_desc_onWeekdays:UBe,sch_desc_onWeekends:HBe,sch_desc_onWorkdays:qBe,sch_desc_onceInPast:VBe,sch_desc_once_on:XBe,sch_desc_validFrom:GBe,sch_desc_validFromTo:JBe,sch_desc_validTo:YBe,sch_every:KBe,sch_exactTime:ZBe,sch_from:QBe,sch_fromTo:e7e,sch_intervalTime:t7e,sch_invert:r7e,sch_no_one:n7e,sch_on:o7e,sch_period:a7e,sch_periodDaily:s7e,sch_periodDates:i7e,sch_periodDay:c7e,sch_periodEvery:l7e,sch_periodEveryDay:u7e,sch_periodEveryMonth:d7e,sch_periodEveryWeek:p7e,sch_periodEveryYear:f7e,sch_periodHours:h7e,sch_periodMinutes:m7e,sch_periodMonth:_7e,sch_periodMonthly:g7e,sch_periodOnce:y7e,sch_periodSpecificMonths:v7e,sch_periodWeek:b7e,sch_periodWeekdays:w7e,sch_periodWeekend:x7e,sch_periodWeekly:S7e,sch_periodWorkdays:k7e,sch_periodYear:C7e,sch_periodYearly:$7e,sch_specificTime:E7e,sch_time:T7e,sch_to:O7e,sch_valid:D7e,sch_validFrom:M7e,sch_validTo:N7e,sch_wholeDay:P7e,sch_yearEveryMonth:R7e},I7e="附加",j7e="取消",L7e="类别",z7e="勾选",F7e="删除",B7e="关",W7e="商业的",U7e="配置",H7e="连接的",q7e="复制的",V7e="创建",X7e="庄稼",G7e="Delete",J7e="删除",Y7e="丢弃",K7e="断开连接",Z7e="错误",Q7e="筛选",eWe="星期五",tWe="纬度",rWe="经度",nWe="信息",oWe="周一",aWe="姓名",sWe="对象",iWe="好",cWe="产品",lWe="重复",uWe="代替",dWe="根",pWe="周六",fWe="保存",hWe="已选",mWe="状态",_We="星期日",gWe="周四",yWe="时间戳记",vWe="周二",bWe="更新资料",wWe="有效期至",xWe="值",SWe="版本",kWe="周三",CWe="宽度",$We="是的",EWe="不同的",TWe="每个人都可以阅读对象",OWe="每个人都可以阅读状态",DWe="每个人都可以写对象",MWe="每个人都可以写状态",NWe="组可以读取对象",PWe="群组可以读取状态",RWe="组可以写对象",AWe="组可以写状态",IWe="所有者可以读取对象",jWe="所有者可以读取状态",LWe="所有者可以写对象",zWe="所有者可以写状态",FWe="纽扣",BWe="更改为",WWe="关闭",UWe="创建布尔状态",HWe="创建频道",qWe="创建设备",VWe="创建号码状态",XWe="创建状态",GWe="创建字符串状态",JWe="天",YWe="r",KWe="莫",ZWe="萨",QWe="苏",eUe="Th",tUe="Tu",rUe="我们",nUe="专家模式",oUe="所有文件",aUe="声音的",sUe="代码/JSON",iUe="图片",cUe="文本",lUe="视频",uUe="设定值",dUe="没有",pUe="功能",fUe="ID",hUe="名称",mUe="角色",_Ue="房间",gUe="类型",yUe="无效的设定",vUe="最后一次变更",bUe="本地",wUe="4月",xUe="八月",SUe="十二月",kUe="二月",CUe="简",$Ue="七月",EUe="君",TUe="迈",OUe="三月",DUe="十一月",MUe="十月",NUe="九月",PUe="4月",RUe="八月",AUe="十二月",IUe="二月",jUe="简",LUe="七月",zUe="君",FUe="迈",BUe="三月",WUe="十一月",UUe="十月",HUe="九月",qUe="没有任何",VUe="物件变更者",XUe="对象上次更改时间为",GUe="来自其他适配器%s的设置",JUe="质量代码",YUe="重复",KUe="要选择文件夹,只需按住“shift”键单击文件夹即可。",ZUe="状态由",QUe="对象已从更改",eHe="时间戳记",tHe="致谢国旗",rHe="评论",nHe="复制状态值",oHe="自定义设置",aHe="删除物件",sHe="编辑物件",iHe="编辑状态值",cHe="从",lHe="最后改变了",uHe="质量",dHe="时间戳",pHe="用户",fHe="值",hHe="值",mHe="警告:CRON 作业将在指定期间内每分钟运行一次!",_He="警告:CRON 作业将在指定期间内每秒运行一次!",gHe="周期任务",yHe="日期",vHe="日",bHe="天",wHe="星期",xHe="每",SHe="每N天",kHe="每周的第 N 天",CHe="每周N天",$He="每N小时一次",EHe="每N分钟",THe="每N个月",OHe="每N秒",DHe="每天",MHe="一周的每一天",NHe="一周的每一天",PHe="每小时",RHe="每分钟",AHe="每月",IHe="每秒",jHe="从",LHe="小时",zHe="间隔",FHe="间隔时间",BHe="无效的 CRON",WHe="分钟",UHe="月",HHe="一次",qHe="周期",VHe="秒",XHe="简单模式",GHe="特定的时间",JHe="特定的日子",YHe="一周中的特定日子",KHe="特定的一周",ZHe="特定的小时",QHe="特定的分钟",eqe="特定的月份",tqe="特定的描述",rqe="时间",nqe="至",oqe="向导模式",aqe="全选",sqe="天文白天",iqe="天文夜晚",cqe="黎明",lqe="黄昏",uqe="黄金时段",dqe="黄金时段结束",pqe="天底",fqe="航海黎明",hqe="航海黄昏",mqe="夜晚",_qe="夜晚结束",gqe="正午",yqe="日出",vqe="日出结束",bqe="日落",wqe="日落开始",xqe="在",Sqe="的%s",kqe="每天",Cqe="每小时",$qe="每分钟",Eqe="每月",Tqe="每%s天",Oqe="每%s小时",Dqe="每%s分钟",Mqe="每%s月",Nqe="每%s周",Pqe="每%s年",Rqe="每周",Aqe="每年",Iqe="从%s到%s",jqe="决不",Lqe="在%s的%s上",zqe="在%s和%s上",Fqe="在每天",Bqe="%s",Wqe="%s和%s",Uqe="在%s上",Hqe="在%s和%s上",qqe="在周末",Vqe="在工作日",Xqe="将不再执行,因为起始时间已经是过去的时间了。",Gqe="在%s上",Jqe="来自%s",Yqe="从执行到",Kqe="到%s",Zqe="每",Qqe="特定的时间",eVe="从",tVe="从到",rVe="间隔时间",nVe="倒置",oVe="取消全选",aVe="的",sVe="周期",iVe="每天",cVe="日期",lVe="天",uVe="每",dVe="每天",pVe="每月",fVe="每周",hVe="每年",mVe="小时",_Ve="分钟",gVe="月",yVe="每月一次",vVe="一次",bVe="特定的月份",wVe="周",xVe="工作日",SVe="周末",kVe="每周",CVe="工作日",$Ve="年",EVe="每年",TVe="特定的时间",OVe="时间",DVe="至",MVe="生效",NVe="从",PVe="至",RVe="一整天",AVe="每月",IVe={"ra_%s links from aliases":"来自别名的 %s 个链接","ra_%s object(s) processed":"已处理%s个对象","ra_%s was imported":"对象已导入","ra_Accept license":"接受许可","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:I7e,"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:j7e,"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:L7e,"ra_Chained certificate":"链式证书","ra_Change color theme":"更改颜色主题","ra_Changed from":"更改为","ra_Channel → State":"频道→状态","ra_Check license":"检查许可证",ra_Checked:z7e,ra_Clear:F7e,"ra_Clear filter":"清除筛选","ra_Clear icon":"清除图标","ra_Clone current row":"克隆当前行",ra_Close:B7e,"ra_Collapse all nodes":"收合所有节点","ra_Collapse one step node":"折叠一级",ra_Commercial:W7e,ra_Configure:U7e,"ra_Configure visible columns":"配置可见列","ra_Confirm deletion of %s":"确认删除%s",ra_Connected:H7e,ra_Copied:q7e,"ra_Copied %s":'复制的"%s"',"ra_Copy content":"复制内容",ra_Create:V7e,"ra_Create alias":"创建别名","ra_Create folder":"创建文件夹","ra_Create new folder in %s":"在%s中创建新文件夹",ra_Crop:X7e,"ra_Define CRON...":"定义 CRON...","ra_Define functions":"定义功能","ra_Define rooms":"定义房间","ra_Define schedule":"定义时间表","ra_Define schedule...":"定义时间表...",ra_Del:G7e,ra_Delete:J7e,"ra_Delete (no confirm for 5 mins)":"删除(5分钟内未确认)","ra_Delete current row":"删除当前行","ra_Deselect all":"全部取消选择","ra_Device → Channel → State":"设备→频道→状态",ra_Discard:Y7e,ra_Disconnected:K7e,"ra_Do not export values of states":"不导出状态值","ra_Do not use let's encrypt":"不要使用让我们加密","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 function":"编辑功能","ra_Edit object field":"编辑对象字段","ra_Edit role":"编辑角色","ra_Edit room":"编辑室","ra_Edit value":"编辑值",ra_Error:Z7e,"ra_Expand all nodes":"展开所有节点","ra_Expand one step node":"扩大一级","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:Q7e,"ra_Filter files":"过滤文件","ra_Folder name":"文件夹名称","ra_Folder → Channel → State":"文件夹→频道→状态","ra_Folder → Device → Channel → State":"文件夹→设备→频道→状态","ra_Folder → State":"文件夹→状态","ra_Folders always first":"资料夹永远优先",ra_Friday:eWe,"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_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 answer from server":"来自服务器的无效答案","ra_Invalid parent folder!":"父文件夹无效!","ra_Invalid structure":"结构无效","ra_JSON editor":"JSON 编辑器","ra_Last change":"最后一次变更",ra_Latitude:tWe,"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_Longitude:rWe,'ra_May not trigger "updateLicenses"':"可能不会触发“updateLicenses”",ra_Message:nWe,ra_Monday:oWe,"ra_Move down":"下移","ra_Move up":"提升",ra_Name:aWe,"ra_No data found in file":"文件中未找到数据","ra_No one license found in license manager":"许可证管理器中未找到任何许可证","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_Objects:sWe,ra_Ok:iWe,"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 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_Private certificate":"私有证书",ra_Product:cWe,"ra_Public certificate":"公共证书","ra_Quality code":"质量代码","ra_Refresh tree":"刷新树","ra_Reload files":"重新载入文件",ra_Repeat:lWe,ra_Replace:uWe,"ra_Request timed out":"请求超时","ra_Restrict to folder":"限制到文件夹",ra_Root:dWe,ra_Saturday:pWe,ra_Save:fWe,"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:hWe,"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_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:mWe,"ra_Suitable license not found in license manager":"在许可证管理器中找不到合适的许可证",ra_Sunday:_We,"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:gWe,ra_Timestamp:yWe,"ra_Toggle expert mode":"切换专家模式","ra_Toggle the states view":"切换状态视图","ra_Toggle view mode":"切换检视模式","ra_Too big":"太大","ra_Too small":"太小","ra_Transparent dialog":"透明对话框",ra_Tuesday:vWe,"ra_Unknown error":"未知错误","ra_Unknown error!":"未知错误!",ra_Update:bWe,"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:wWe,ra_Value:xWe,ra_Version:SWe,"ra_View file":"查看文件","ra_View: %s":"查看:%s",ra_Wednesday:kWe,ra_Width:CWe,ra_Yes:$We,"ra_You can export all objects or just the selected branch.":"您可以导出所有对象或仅导出选定的分支。","ra_You can filter entries by entering here some text":"您可以通过在此处输入一些文本来过滤条目",ra___different__:EWe,ra_aclEveryone_read_object:TWe,ra_aclEveryone_read_state:OWe,ra_aclEveryone_write_object:DWe,ra_aclEveryone_write_state:MWe,ra_aclGroup_read_object:NWe,ra_aclGroup_read_state:PWe,ra_aclGroup_write_object:RWe,ra_aclGroup_write_state:AWe,ra_aclOwner_read_object:IWe,ra_aclOwner_read_state:jWe,ra_aclOwner_write_object:LWe,ra_aclOwner_write_state:zWe,ra_buttons:FWe,ra_changedFrom:BWe,ra_close:WWe,ra_create_boolean_state:UWe,ra_create_channel:HWe,ra_create_device:qWe,ra_create_number_state:VWe,ra_create_state:XWe,ra_create_string_state:GWe,ra_daysShortText:JWe,ra_dow_Fr:YWe,ra_dow_Mo:KWe,ra_dow_Sa:ZWe,ra_dow_Su:QWe,ra_dow_Th:eUe,ra_dow_Tu:tUe,ra_dow_We:rUe,ra_expertMode:nUe,ra_fileType_all:oUe,ra_fileType_audio:aUe,ra_fileType_code:sUe,ra_fileType_images:iUe,ra_fileType_txt:cUe,ra_fileType_video:lUe,"ra_fileType_video,":"视频",ra_filter_customs:uUe,ra_filter_customs_without:dUe,ra_filter_func:pUe,ra_filter_id:fUe,ra_filter_name:hUe,ra_filter_role:mUe,ra_filter_room:_Ue,ra_filter_type:gUe,"ra_import data from %s file":"从 %s 文件导入数据",ra_invalidConfig:yUe,ra_lastChange:vUe,ra_locally:bUe,ra_month_Apr:wUe,ra_month_Aug:xUe,ra_month_Dec:SUe,ra_month_Feb:kUe,ra_month_Jan:CUe,ra_month_Jul:$Ue,ra_month_Jun:EUe,ra_month_Mai:TUe,ra_month_Mar:OUe,ra_month_Nov:DUe,ra_month_Oct:MUe,ra_month_Sep:NUe,ra_months_Apr:PUe,ra_months_Aug:RUe,ra_months_Dec:AUe,ra_months_Feb:IUe,ra_months_Jan:jUe,ra_months_Jul:LUe,ra_months_Jun:zUe,ra_months_Mai:FUe,ra_months_Mar:BUe,ra_months_Nov:WUe,ra_months_Oct:UUe,ra_months_Sep:HUe,ra_none:qUe,ra_object_changed_by:VUe,ra_object_changed_by_user:XUe,ra_otherConfig:GUe,ra_qualityCode:JUe,ra_repeat:YUe,ra_select_folder_hint:KUe,ra_state_changed_by:ZUe,ra_state_changed_from:QUe,ra_timestamp:eHe,ra_tooltip_ack:tHe,ra_tooltip_comment:rHe,ra_tooltip_copyState:nHe,ra_tooltip_customConfig:oHe,ra_tooltip_deleteObject:aHe,ra_tooltip_editObject:sHe,ra_tooltip_editState:iHe,ra_tooltip_from:cHe,ra_tooltip_lc:lHe,ra_tooltip_quality:uHe,ra_tooltip_ts:dHe,ra_tooltip_user:pHe,ra_tooltip_value:fHe,"ra_use seconds":"用秒",ra_val:hHe,"ra_via internet":"通过互联网",ra_warning_every_minute:mHe,ra_warning_every_second:_He,sc_cron:gHe,sc_date:yHe,sc_dates:vHe,sc_dow:bHe,sc_dows:wHe,sc_every:xHe,sc_everyN_dates:SHe,sc_everyN_dow:kHe,sc_everyN_dows:CHe,sc_everyN_hours:$He,sc_everyN_minutes:EHe,sc_everyN_months:THe,sc_everyN_seconds:OHe,sc_every_dates:DHe,sc_every_dow:MHe,sc_every_dows:NHe,sc_every_hours:PHe,sc_every_minutes:RHe,sc_every_months:AHe,sc_every_seconds:IHe,sc_from:jHe,sc_hours:LHe,sc_interval:zHe,sc_intervalBetween:FHe,sc_invalid_cron:BHe,sc_minutes:WHe,sc_months:UHe,sc_once:HHe,sc_period:qHe,sc_seconds:VHe,sc_simple:XHe,sc_specific:GHe,sc_specific_dates:JHe,sc_specific_dow:YHe,sc_specific_dows:KHe,sc_specific_hours:ZHe,sc_specific_minutes:QHe,sc_specific_months:eqe,sc_specific_seconds:tqe,sc_time:rqe,sc_to:nqe,sc_wizard:oqe,sch_all:aqe,sch_astroDay:sqe,sch_astroNight:iqe,sch_astro_dawn:cqe,sch_astro_dusk:lqe,sch_astro_goldenHour:uqe,sch_astro_goldenHourEnd:dqe,sch_astro_nadir:pqe,sch_astro_nauticalDawn:fqe,sch_astro_nauticalDusk:hqe,sch_astro_night:mqe,sch_astro_nightEnd:_qe,sch_astro_solarNoon:gqe,sch_astro_sunrise:yqe,sch_astro_sunriseEnd:vqe,sch_astro_sunset:bqe,sch_astro_sunsetStart:wqe,sch_at:xqe,sch_desc_atTime:Sqe,sch_desc_everyDay:kqe,sch_desc_everyHour:Cqe,sch_desc_everyMinute:$qe,sch_desc_everyMonth:Eqe,sch_desc_everyNDay:Tqe,sch_desc_everyNHours:Oqe,sch_desc_everyNMinutes:Dqe,sch_desc_everyNMonths:Mqe,sch_desc_everyNWeeks:Nqe,sch_desc_everyNYears:Pqe,sch_desc_everyWeek:Rqe,sch_desc_everyYear:Aqe,sch_desc_intervalFromTo:Iqe,sch_desc_never:jqe,sch_desc_onDate:Lqe,sch_desc_onDates:zqe,sch_desc_onEveryDate:Fqe,sch_desc_onMonth:Bqe,sch_desc_onMonths:Wqe,sch_desc_onWeekday:Uqe,sch_desc_onWeekdays:Hqe,sch_desc_onWeekends:qqe,sch_desc_onWorkdays:Vqe,sch_desc_onceInPast:Xqe,sch_desc_once_on:Gqe,sch_desc_validFrom:Jqe,sch_desc_validFromTo:Yqe,sch_desc_validTo:Kqe,sch_every:Zqe,sch_exactTime:Qqe,sch_from:eVe,sch_fromTo:tVe,sch_intervalTime:rVe,sch_invert:nVe,sch_no_one:oVe,sch_on:aVe,sch_period:sVe,sch_periodDaily:iVe,sch_periodDates:cVe,sch_periodDay:lVe,sch_periodEvery:uVe,sch_periodEveryDay:dVe,sch_periodEveryMonth:pVe,sch_periodEveryWeek:fVe,sch_periodEveryYear:hVe,sch_periodHours:mVe,sch_periodMinutes:_Ve,sch_periodMonth:gVe,sch_periodMonthly:yVe,sch_periodOnce:vVe,sch_periodSpecificMonths:bVe,sch_periodWeek:wVe,sch_periodWeekdays:xVe,sch_periodWeekend:SVe,sch_periodWeekly:kVe,sch_periodWorkdays:CVe,sch_periodYear:$Ve,sch_periodYearly:EVe,sch_specificTime:TVe,sch_time:OVe,sch_to:DVe,sch_valid:MVe,sch_validFrom:NVe,sch_validTo:PVe,sch_wholeDay:RVe,sch_yearEveryMonth:AVe},jVe="back",LVe="root folder",zVe={"Back to editor":"Back to editor","Change size":"Change size","Copy URL to clipboard":"Copy URL to clipboard","Refresh snapshots":"Refresh snapshots","URL copied to clipboard":"URL copied to clipboard",back:jVe,"but instance is offline":"but instance is offline",root:LVe},FVe="zurück",BVe="root",WVe={"Back to editor":"Zurück zum Herausgeber","Change size":"Größe ändern","Copy URL to clipboard":"URL in die Zwischenablage kopieren","Refresh snapshots":"Schnappschüsse aktualisieren","URL copied to clipboard":"URL in die Zwischenablage kopiert",back:FVe,"but instance is offline":"aber die Instanz ist offline",root:BVe},UVe="назад",HVe="Корневая папка",qVe={"Back to editor":"Вернуться к редактору","Change size":"Изменить размер","Copy URL to clipboard":"Скопировать URL в буфер обмена","Refresh snapshots":"Обновить снимки","URL copied to clipboard":"URL скопирован в буфер обмена",back:UVe,"but instance is offline":"но экземпляр не активирован",root:HVe},VVe="voltar",XVe="pasta raiz",GVe={"Back to editor":"Voltar ao editor","Change size":"Alterar tamanho","Copy URL to clipboard":"Copiar URL para a área de transferência","Refresh snapshots":"Atualizar instantâneos","URL copied to clipboard":"URL copiado para a área de transferência",back:VVe,"but instance is offline":"mas a instância está offline",root:XVe},JVe="rug",YVe="hoofdmap",KVe={"Back to editor":"Terug naar de redactie","Change size":"Wijzig de maat","Copy URL to clipboard":"Kopieer de URL naar het klembord","Refresh snapshots":"Momentopnamen vernieuwen","URL copied to clipboard":"URL gekopieerd naar klembord",back:JVe,"but instance is offline":"maar het exemplaar is offline",root:YVe},ZVe="dos",QVe="dossier racine",eXe={"Back to editor":"Retour à l'éditeur","Change size":"Changer la taille","Copy URL to clipboard":"Copier l'URL dans le presse-papiers","Refresh snapshots":"Actualiser les instantanés","URL copied to clipboard":"URL copiée dans le presse-papiers",back:ZVe,"but instance is offline":"mais l'instance est hors ligne",root:QVe},tXe="Indietro",rXe="cartella root",nXe={"Back to editor":"Torniamo all'editore","Change size":"Cambia taglia","Copy URL to clipboard":"Copia l'URL negli appunti","Refresh snapshots":"Aggiorna le istantanee","URL copied to clipboard":"URL copiato negli appunti",back:tXe,"but instance is offline":"ma l'istanza è offline",root:rXe},oXe="atrás",aXe="carpeta raíz",sXe={"Back to editor":"volver al editor","Change size":"Cambiar tamaño","Copy URL to clipboard":"Copiar URL al portapapeles","Refresh snapshots":"Actualizar instantáneas","URL copied to clipboard":"URL copiada al portapapeles",back:oXe,"but instance is offline":"pero la instancia está fuera de línea",root:aXe},iXe="z powrotem",cXe="Folder główny",lXe={"Back to editor":"Powrót do edytora","Change size":"Zmień rozmiar","Copy URL to clipboard":"Skopiuj adres URL do schowka","Refresh snapshots":"Odśwież migawki","URL copied to clipboard":"URL skopiowany do schowka",back:iXe,"but instance is offline":"ale instancja jest offline",root:cXe},uXe="назад",dXe="коренева папка",pXe={"Back to editor":"Назад до редактора","Change size":"Змінити розмір","Copy URL to clipboard":"Копіювати URL-адресу в буфер обміну","Refresh snapshots":"Оновити знімки","URL copied to clipboard":"URL-адресу скопійовано в буфер обміну",back:uXe,"but instance is offline":"але примірник офлайн",root:dXe},fXe="后退",hXe="根文件夹",mXe={"Back to editor":"返回编辑器","Change size":"改变尺寸","Copy URL to clipboard":"将 URL 复制到剪贴板","Refresh snapshots":"刷新快照","URL copied to clipboard":"网址已复制到剪贴板",back:fXe,"but instance is offline":"但实例处于离线状态",root:hXe},pr={root:t=>({width:"100%",height:"calc(100% - 48px)",position:"relative",color:t.palette.mode==="dark"?"#fff":"#000",backgroundColor:t.palette.mode==="dark"?"#000":"#fff",overflowX:"hidden",overflowY:"auto",display:"flex",flexWrap:"wrap",alignContent:"flex-start"}),slider:{color:"#FFF !important"},toolbarTitle:{},button:{width:128,borderRadius:10,border:"1px dashed #888",padding:10,margin:5,textAlign:"center",cursor:"pointer",position:"relative"},folderIcon:t=>({"& svg":{width:"calc(100% - 28px)",height:"auto",color:t.palette.primary.main}}),active:t=>({"& svg":{color:t.palette.primary.main}}),folderName:{display:"block",fontSize:16,width:"100%",textAlign:"center"},presetIcon:{width:"calc(100% - 6px)"},presetName:{display:"block",fontSize:16,width:"100%",textAlign:"center"},presetError:{color:"#FF0000",display:"block",fontSize:"0.8em",fontStyle:"italic"},break:{flexBasis:"100%",height:0},copyButton:{position:"absolute",bottom:3,right:3}};class Go extends $.Component{constructor(r){super(r);xe(this,"adminCorrectTimeout",null);xe(this,"isWeb");xe(this,"socket");xe(this,"timeout",{});xe(this,"snapShotQueue",[]);xe(this,"toastTimeout",null);xe(this,"iconsCache",{});xe(this,"onAliveChanged",(r,n)=>{this.state.alive!==!!(n!=null&&n.val)&&this.setState({alive:!!n.val},()=>{if(this.state.alive&&!this.state.done){const o=JSON.parse(JSON.stringify(this.state.icons));let a=!1;Object.keys(o).forEach(i=>{o[i]==="error:not alive"&&(a=!0,o[i]=null)}),a&&this.setState({icons:o})}})});xe(this,"onReceiveMessage",r=>{if((r==null?void 0:r.data)==="updateTheme"){const n=ht.getThemeName();ht.setThemeName(ht.getThemeName());const o=Go.createTheme(n);this.setState({theme:o,themeName:Go.getThemeName(o),themeType:Go.getThemeType(o)})}});xe(this,"onHashChanged",()=>{const n=decodeURIComponent((window.location.hash||"").replace(/^#/,"")).split("/");n.length||n.push(""),JSON.stringify(n)!==JSON.stringify(this.state.location)&&(this.snapShotQueue=[],this.setState({location:n}))});const n=Go.createTheme(),a=decodeURIComponent((window.location.hash||"").replace(/^#/,"")).split("/");a.length||a.push(""),this.state={connected:!1,theme:n,themeType:Go.getThemeType(n),themeName:Go.getThemeName(n),location:a,presetFolders:null,icons:{},iconSize:parseInt(window.localStorage.getItem("echarts.iconSize"),10)||128,showSlider:!1,alive:!1,toast:"",webInstances:[],webMenu:null,forceRefresh:!1,presets:null,errorText:null,done:!1,currentInstance:""};const i={en:$se,de:Ede,ru:T_e,pt:Obe,nl:Dke,fr:M2e,it:NPe,es:P4e,pl:RFe,uk:A7e,"zh-cn":IVe},l={en:zVe,de:WVe,ru:qVe,pt:GVe,nl:KVe,fr:eXe,it:nXe,es:sXe,pl:lXe,uk:pXe,"zh-cn":mXe};Object.keys(i).forEach(u=>Object.assign(i[u],l[u])),U.setTranslations(i),window.socketUrl&&window.socketUrl.startsWith(":")&&(window.socketUrl=`${window.location.protocol}//${window.location.hostname}${window.socketUrl}`),window.location.port==="8082"&&window.location.pathname.includes("/adapter/echarts/preview/")&&(this.adminCorrectTimeout=setTimeout(()=>{this.adminCorrectTimeout=null,window.location.href=window.location.href.replace("/adapter/echarts/preview/","/echarts/preview/")},2e3)),this.isWeb=Jo.isWeb(),this.socket=new Jo({name:window.adapterName,onProgress:u=>{u===_o.CONNECTING?this.setState({connected:!1}):u===_o.READY?this.setState({connected:!0}):this.setState({connected:!0})},onReady:async()=>{this.adminCorrectTimeout&&(clearTimeout(this.adminCorrectTimeout),this.adminCorrectTimeout=null),this.socket.getRawSocket().emit("getCurrentInstance",(d,_)=>{this.setState({currentInstance:_||""})}),U.setLanguage(this.socket.systemLang);const u=await this.socket.getState("system.adapter.echarts.0.alive").catch(()=>null);this.setState({alive:!!(u!=null&&u.val)});const f=await this.getWebInstances();this.setState({webInstances:f});const h=await this.getAllPresets();this.setState(h)},onError:u=>{console.error(u),this.showError(u)}}),window.addEventListener("hashchange",this.onHashChanged),this.snapShotQueue=[],this.timeout={}}async getWebInstances(){const r=await this.socket.getObjectViewSystem("instance","system.adapter.web.","system.adapter.web.香");return Object.keys(r).map(n=>{const o=r[n];return{port:o.native.port,bind:o.native.bind,id:o._id.replace("system.adapter.",""),enabled:!!o.common.enabled,protocol:o.native.secure?"https://":"http://"}})}componentDidMount(){window.addEventListener("message",this.onReceiveMessage,!1)}componentWillUnmount(){window.removeEventListener("message",this.onReceiveMessage,!1),this.socket.unsubscribeState("system.adapter.echarts.0.alive",this.onAliveChanged),this.toastTimeout&&clearTimeout(this.toastTimeout),this.toastTimeout=null}static createTheme(r){return XC(ht.getThemeName(r))}static getThemeName(r){return r.name}static getThemeType(r){return r.palette.mode}toggleTheme(){const n=this.state.themeName==="dark"?"light":"dark";ht.setThemeName(n);const o=XC(n);this.setState({theme:o,themeName:o.name,themeType:o.palette.mode})}showError(r){this.setState({errorText:r})}renderError(){return this.state.errorText?R.jsx(KM,{text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}static buildPresetTree(r,n){const o=Object.values(r),a={subFolders:{},presets:{},id:"",prefix:""};return o.forEach(i=>{const l=i._id,u=l.split(".");u.shift(),u.shift();let f=a,h="";for(let d=0;d{const l=i.split(".");let u=a,f="";for(let h=0;hthis.getEmptyFolders(r.subFolders[a],n,o)),o}async getAllPresets(r){r=r||{};const n={},o=await this.socket.getObjectViewSystem("chart","echarts.","echarts.香");o&&Object.values(o).forEach(i=>{i!=null&&i._id&&!i._id.toString().endsWith(".")&&(n[i._id]=i)}),r.presets=n,Object.keys(r.presets).forEach(i=>{const l=r.presets[i];l.common=l.common||{},l.native=l.native||{}});const a=this.getEmptyFolders();return r.presetFolders=Go.buildPresetTree(n,a),r}getSnapshot(r){if(this.iconsCache[r]){const n=JSON.parse(JSON.stringify(this.state.icons));n[r]=this.iconsCache[r],setTimeout(()=>this.setState({icons:n}),50);return}if(!this.state.alive){const n=JSON.parse(JSON.stringify(this.state.icons));n[r]="error:not alive",setTimeout(()=>this.setState({icons:n}),50);return}this.snapShotQueue.push(r),this.snapShotQueue.length===1&&this.getSnapshotNext()}getSnapshotNext(){if(!this.snapShotQueue.length){this.state.forceRefresh&&setTimeout(()=>this.setState({forceRefresh:!1}),50);return}const r=this.snapShotQueue[0];this.timeout[r]=setTimeout(()=>{const n=JSON.parse(JSON.stringify(this.state.icons));n[r]||(n[r]="error:timeout"),this.iconsCache[r]=n[r],this.snapShotQueue[0]===r&&this.snapShotQueue.shift(),this.setState({icons:n,done:!0}),this.getSnapshotNext()},5e3),this.socket.getRawSocket().emit("sendTo","echarts.0","send",{preset:r,cache:600,forceRefresh:this.state.forceRefresh},n=>{this.timeout[r]&&(clearTimeout(this.timeout[r]),this.timeout[r]=null);const o=JSON.parse(JSON.stringify(this.state.icons));n.error?o[r]=`error:${n.error}`:o[r]=n.data,this.iconsCache[r]=o[r],this.snapShotQueue[0]===r&&this.snapShotQueue.shift(),this.setState({icons:o,done:!0}),this.getSnapshotNext()})}renderFolder(r){const n=[];if(this.state.location.length>1&&n.push(R.jsxs(wt,{component:"div",style:pr.button,onClick:()=>{const o=[...this.state.location];o.pop(),window.location.hash=`#${o.join("/")}`},sx:pr.folderIcon,children:[R.jsx(JM,{}),R.jsx("div",{style:pr.folderName,children:U.t("back")})]},"__back__")),r.subFolders&&Object.keys(r.subFolders).length&&Object.keys(r.subFolders).forEach(o=>{o!=="_consumption_"&&n.push(R.jsxs(wt,{component:"div",style:pr.button,onClick:()=>{const a=[...this.state.location];a.push(o),window.location.hash=`#${a.join("/")}`},sx:pr.folderIcon,children:[R.jsx(HU,{}),R.jsx("div",{style:pr.folderName,children:o})]},o))}),r.presets&&Object.keys(r.presets).length){const o=window.location.pathname.split("/");o.pop(),o.pop(),this.isWeb?o.push("index.html"):o.push("chart/index.html");let a;this.state.webInstances.find(l=>l.enabled)||this.state.currentInstance.startsWith("admin.")?a=this.state.webInstances.filter(l=>l.enabled):a=this.state.webInstances;const i=a.map(l=>({url:`${l.protocol}${l.bind==="0.0.0.0"?window.location.hostname:l.bind}:${l.port}/echarts/index.html?preset=`,port:l.port}));this.state.currentInstance.startsWith("admin.")&&i.unshift({url:"../chart/index.html?preset=",port:window.location.port}),n.push(R.jsx("div",{style:pr.break},"br")),Object.keys(r.presets).forEach(l=>{const u=r.presets[l];this.state.icons[u._id]||this.getSnapshot(u._id),n.push(R.jsxs("div",{style:{...pr.button,width:this.state.iconSize},onClick:f=>{i.length>1?this.setState({webMenu:{id:u._id,webUrls:i,copy:!1,anchorEl:f.currentTarget}}):window.open(i[0].url+u._id,u._id)},children:[this.state.icons[u._id]?this.state.icons[u._id].startsWith("error:")?R.jsx(WC,{style:pr.presetIcon}):R.jsx("img",{style:pr.presetIcon,src:this.state.icons[u._id],alt:u._id}):R.jsx(jM,{style:pr.presetIcon}),R.jsx("div",{style:pr.presetName,children:typeof u.common.name=="object"?u.common.name[U.getLanguage()]||u.common.name.en||"":u.common.name}),this.state.icons[u._id]&&this.state.icons[u._id].startsWith("error:")?R.jsx("div",{style:pr.presetError,children:this.state.icons[u._id].substring(6)}):null,R.jsx(nr,{size:"small",title:U.t("Copy URL to clipboard"),style:pr.copyButton,onClick:f=>{f.stopPropagation(),i.length>1?this.setState({webMenu:{id:u._id,webUrls:i,copy:!0,anchorEl:f.currentTarget}}):this.onCopyUrl(i[0].url+u._id)},children:R.jsx(VM,{})})]},l))})}return n}onCopyUrl(r){this.toastTimeout&&clearTimeout(this.toastTimeout),ht.copyToClipboard(r),this.setState({toast:`${U.t("URL copied to clipboard")}: ${r}`}),this.toastTimeout=setTimeout(()=>{this.toastTimeout=null,this.setState({toast:""})},4e3)}getFolder(r,n,o){return o=o||0,n=n||this.state.presetFolders,n?n.id!==r[o]?this.state.presetFolders:r.length-1===o?n.id===r[o]?n:this.state.presetFolders:n.subFolders[r[o+1]]?this.getFolder(r,n.subFolders[r[o+1]],o+1):this.state.presetFolders:this.state.presetFolders}renderSlider(){return this.state.showSlider?R.jsxs(sU,{spacing:2,direction:"row",style:{width:200},alignItems:"center",children:[R.jsx("span",{children:this.state.iconSize}),R.jsx(UC,{style:{width:14,height:14,marginLeft:4}}),R.jsx(UW,{min:64,max:512,style:pr.slider,value:this.state.iconSize,onChange:(r,n)=>{window.localStorage.setItem("echarts.iconSize",n.toString()),this.setState({iconSize:n})}}),R.jsx(UC,{style:{width:24,height:24}})]}):null}renderToast(){return this.state.toast?R.jsx(QW,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:R.jsx("span",{id:"message-id",children:this.state.toast}),action:[R.jsx(nr,{"aria-label":"Close",color:"inherit",style:pr.close,onClick:()=>this.setState({toast:""}),size:"large",children:R.jsx(Rs,{})},"close")]}):null}renderWebMenu(){return this.state.webMenu?R.jsx(jb,{anchorEl:this.state.webMenu.anchorEl,open:!0,onClose:()=>this.setState({webMenu:null}),children:this.state.webMenu.webUrls.map(r=>R.jsxs(fr,{onClick:()=>{this.state.webMenu.copy?this.onCopyUrl(r.url+this.state.webMenu.id):window.open(r.url+this.state.webMenu.id,this.state.webMenu.id),this.setState({webMenu:null})},children:[":",r.port]}))}):null}render(){if(!this.state.connected)return R.jsx($k,{injectFirst:!0,children:R.jsx(Gk,{theme:this.state.theme,children:R.jsx(EH,{themeType:this.state.themeType})})});const r=this.getFolder(this.state.location),n=[];return R.jsx($k,{injectFirst:!0,children:R.jsxs(Gk,{theme:this.state.theme,children:[R.jsx(yM,{position:"static",style:pr.appBar,children:R.jsxs(Bb,{variant:"dense",children:[this.isWeb?null:R.jsx(nr,{title:U.t("Back to editor"),onClick:()=>{const o=window.location.pathname.split("/");o.pop(),o.pop(),o.push("tab.html"),window.location.href=`${window.location.protocol}//${window.location.host}${o.join("/")}`},children:R.jsx(XU,{})}),R.jsx("img",{src:kte,alt:"echarts",style:{width:32,marginRight:8}}),R.jsx(NM,{"aria-label":"breadcrumb",children:this.state.location.map((o,a)=>(n.push(o),R.jsx(f7,{underline:this.state.location.length-1===a?"none":"hover",color:"inherit",href:`#${n.join("/")}`,children:o||U.t("root")},a)))}),R.jsx("div",{style:{flexGrow:1}}),this.renderSlider(),R.jsx(nr,{onClick:()=>this.setState({showSlider:!this.state.showSlider}),title:U.t("Change size"),sx:this.state.showSlider?pr.active:void 0,children:this.state.showSlider?R.jsx(WC,{}):R.jsx(qU,{})}),R.jsx(nr,{style:{color:this.state.alive?"#0F0":"#FF0"},onClick:()=>{Object.keys(this.iconsCache).forEach(o=>{delete this.iconsCache[o]}),this.setState({icons:{},forceRefresh:!0})},title:this.state.alive?U.t("Refresh snapshots"):`${U.t("Refresh snapshots")}, ${U.t("but instance is offline")}`,children:R.jsx(YM,{})}),this.isWeb&&this.state.themeName!=="PT"&&this.state.themeName!=="DX"?R.jsx(Eee,{toggleTheme:()=>this.toggleTheme(),themeName:this.state.themeName,t:U.t}):null,R.jsx("h4",{style:pr.toolbarTitle,children:"Echarts viewer"})]})}),R.jsx(wt,{component:"div",sx:pr.root,children:r?this.renderFolder(r):null}),this.renderError(),this.renderToast(),this.renderWebMenu()]})})}}const _Xe=eh()(Go);window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function gXe(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const yXe="echarts.index",vXe="1.9.5",bXe={"@vitejs/plugin-react":"^4.3.4","react-icons":"^5.4.0",typescript:"^5.7.2"},wXe=".",xXe="http://localhost:8081",SXe={start:"vite dev --config vite.config.mjs --host",build:"vite build --config vite.config.mjs",lint:"eslint -c eslint.config.mjs"},kXe={extends:"react-app"},CXe=[">0.2%","not dead","not ie <= 11","not op_mini all"],DP={name:yXe,version:vXe,private:!0,dependencies:bXe,homepage:wXe,proxy:xXe,scripts:SXe,eslintConfig:kXe,browserslist:CXe};window.adapterName="echarts-preview";console.log(`iobroker.${window.adapterName}@${DP.version}`);window.location.host!=="localhost:3000"&&Vj({dsn:window.sentryDSN,release:`iobroker.${window.adapterName}@${DP.version}`,integrations:[pD()],beforeSend(t){let e=!1;return t.exception&&t.exception.values&&t.exception.values[0]&&(t.exception.values[0].type==="NS_ERROR_FAILURE"||t.exception.values[0].value&&(t.exception.values[0].value.includes("Microsoft YaHei")||t.exception.values[0].value==="ResizeObserver loop completed with undelivered notifications."||t.exception.values[0].value==="undefined is not an object (evaluating 't.get')"||t.exception.values[0].value==="Cannot read property 'get' of undefined"||t.exception.values[0].value==="this.painter is null"||t.exception.values[0].value.includes("ioBroker is not connected")||t.exception.values[0].value==="Cannot read property 'getDisplayList' of null"))&&(e=!0),e?null:t}});const UO=document.getElementById("root");UO&&RA.createRoot(UO).render(R.jsx(_Xe,{}));gXe(); +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var th=typeof window<"u"&&typeof window.document<"u",Eo=th?window:{},Iw=th&&Eo.document.documentElement?"ontouchstart"in Eo.document.documentElement:!1,jw=th?"PointerEvent"in Eo:!1,Vt="cropper",Lw="all",_P="crop",gP="move",yP="zoom",ds="e",ps="w",ji="s",Da="n",Dl="ne",Ml="nw",Nl="se",Pl="sw",F0="".concat(Vt,"-crop"),TO="".concat(Vt,"-disabled"),nn="".concat(Vt,"-hidden"),OO="".concat(Vt,"-hide"),Iee="".concat(Vt,"-invisible"),af="".concat(Vt,"-modal"),z0="".concat(Vt,"-move"),pu="".concat(Vt,"Action"),vp="".concat(Vt,"Preview"),Fw="crop",vP="move",bP="none",B0="crop",W0="cropend",U0="cropmove",H0="cropstart",DO="dblclick",jee=Iw?"touchstart":"mousedown",Lee=Iw?"touchmove":"mousemove",Fee=Iw?"touchend touchcancel":"mouseup",MO=jw?"pointerdown":jee,NO=jw?"pointermove":Lee,PO=jw?"pointerup pointercancel":Fee,RO="ready",AO="resize",IO="wheel",q0="zoom",jO="image/jpeg",zee=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,Bee=/^data:/,Wee=/^data:image\/jpeg;base64,/,Uee=/^img|canvas$/i,wP=200,xP=100,LO={viewMode:0,dragMode:Fw,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:wP,minContainerHeight:xP,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},Hee='
',qee=Number.isNaN||Eo.isNaN;function yt(t){return typeof t=="number"&&!qee(t)}var FO=function(e){return e>0&&e<1/0};function Nv(t){return typeof t>"u"}function Is(t){return j0(t)==="object"&&t!==null}var Vee=Object.prototype.hasOwnProperty;function sc(t){if(!Is(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&Vee.call(r,"isPrototypeOf")}catch{return!1}}function rn(t){return typeof t=="function"}var Xee=Array.prototype.slice;function SP(t){return Array.from?Array.from(t):Xee.call(t)}function mr(t,e){return t&&rn(e)&&(Array.isArray(t)||yt(t.length)?SP(t).forEach(function(r,n){e.call(t,r,n,t)}):Is(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var Gt=Object.assign||function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o0&&n.forEach(function(a){Is(a)&&Object.keys(a).forEach(function(i){e[i]=a[i]})}),e},Gee=/\.\d*(?:0|9){12}\d*$/;function dc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Gee.test(t)?Math.round(t*e)/e:t}var Jee=/^width|height|left|top|marginLeft|marginTop$/;function Ia(t,e){var r=t.style;mr(e,function(n,o){Jee.test(o)&&yt(n)&&(n="".concat(n,"px")),r[o]=n})}function Yee(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function xr(t,e){if(e){if(yt(t.length)){mr(t,function(n){xr(n,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?r.indexOf(e)<0&&(t.className="".concat(r," ").concat(e)):t.className=e}}function Co(t,e){if(e){if(yt(t.length)){mr(t,function(r){Co(r,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function ic(t,e,r){if(e){if(yt(t.length)){mr(t,function(n){ic(n,e,r)});return}r?xr(t,e):Co(t,e)}}var Kee=/([a-z\d])([A-Z])/g;function zw(t){return t.replace(Kee,"$1-$2").toLowerCase()}function V0(t,e){return Is(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(zw(e)))}function fu(t,e,r){Is(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(zw(e)),r)}function Zee(t,e){if(Is(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(zw(e)))}var kP=/\s\s*/,CP=function(){var t=!1;if(th){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(a){e=a}});Eo.addEventListener("test",r,n),Eo.removeEventListener("test",r,n)}return t}();function Gn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(kP).forEach(function(a){if(!CP){var i=t.listeners;i&&i[a]&&i[a][r]&&(o=i[a][r],delete i[a][r],Object.keys(i[a]).length===0&&delete i[a],Object.keys(i).length===0&&delete t.listeners)}t.removeEventListener(a,o,n)})}function On(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;e.trim().split(kP).forEach(function(a){if(n.once&&!CP){var i=t.listeners,l=i===void 0?{}:i;o=function(){delete l[a][r],t.removeEventListener(a,o,n);for(var f=arguments.length,h=new Array(f),d=0;dMath.abs(r)&&(r=_)})}),r}function bp(t,e){var r=t.pageX,n=t.pageY,o={endX:r,endY:n};return e?o:fP({startX:r,startY:n},o)}function tte(t){var e=0,r=0,n=0;return mr(t,function(o){var a=o.startX,i=o.startY;e+=a,r+=i,n+=1}),e/=n,r/=n,{pageX:e,pageY:r}}function ja(t){var e=t.aspectRatio,r=t.height,n=t.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",a=FO(n),i=FO(r);if(a&&i){var l=r*e;o==="contain"&&l>n||o==="cover"&&l90?{width:u,height:l}:{width:l,height:u}}function nte(t,e,r,n){var o=e.aspectRatio,a=e.naturalWidth,i=e.naturalHeight,l=e.rotate,u=l===void 0?0:l,f=e.scaleX,h=f===void 0?1:f,d=e.scaleY,_=d===void 0?1:d,g=r.aspectRatio,b=r.naturalWidth,w=r.naturalHeight,S=n.fillColor,k=S===void 0?"transparent":S,D=n.imageSmoothingEnabled,C=D===void 0?!0:D,O=n.imageSmoothingQuality,M=O===void 0?"low":O,T=n.maxWidth,P=T===void 0?1/0:T,j=n.maxHeight,F=j===void 0?1/0:j,E=n.minWidth,L=E===void 0?0:E,G=n.minHeight,B=G===void 0?0:G,z=document.createElement("canvas"),H=z.getContext("2d"),K=ja({aspectRatio:g,width:P,height:F}),ee=ja({aspectRatio:g,width:L,height:B},"cover"),Y=Math.min(K.width,Math.max(ee.width,b)),X=Math.min(K.height,Math.max(ee.height,w)),re=ja({aspectRatio:o,width:P,height:F}),I=ja({aspectRatio:o,width:L,height:B},"cover"),Q=Math.min(re.width,Math.max(I.width,a)),me=Math.min(re.height,Math.max(I.height,i)),pe=[-Q/2,-me/2,Q,me];return z.width=dc(Y),z.height=dc(X),H.fillStyle=k,H.fillRect(0,0,Y,X),H.save(),H.translate(Y/2,X/2),H.rotate(u*Math.PI/180),H.scale(h,_),H.imageSmoothingEnabled=C,H.imageSmoothingQuality=M,H.drawImage.apply(H,[t].concat(mP(pe.map(function(ge){return Math.floor(dc(ge))})))),H.restore(),z}var EP=String.fromCharCode;function ote(t,e,r){var n="";r+=e;for(var o=e;o0;)r.push(EP.apply(null,SP(o.subarray(0,n)))),o=o.subarray(n);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}function cte(t){var e=new DataView(t),r;try{var n,o,a;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var i=e.byteLength,l=2;l+1=8&&(a=f+d)}}}if(a){var _=e.getUint16(a,n),g,b;for(b=0;b<_;b+=1)if(g=a+b*12+2,e.getUint16(g,n)===274){g+=8,r=e.getUint16(g,n),e.setUint16(g,1,n);break}}}catch{r=1}return r}function lte(t){var e=0,r=1,n=1;switch(t){case 2:r=-1;break;case 3:e=-180;break;case 4:n=-1;break;case 5:e=90,n=-1;break;case 6:e=90;break;case 7:e=90,r=-1;break;case 8:e=-90;break}return{rotate:e,scaleX:r,scaleY:n}}var ute={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,r=this.options,n=this.container,o=this.cropper,a=Number(r.minContainerWidth),i=Number(r.minContainerHeight);xr(o,nn),Co(e,nn);var l={width:Math.max(n.offsetWidth,a>=0?a:wP),height:Math.max(n.offsetHeight,i>=0?i:xP)};this.containerData=l,Ia(o,{width:l.width,height:l.height}),xr(e,nn),Co(o,nn)},initCanvas:function(){var e=this.containerData,r=this.imageData,n=this.options.viewMode,o=Math.abs(r.rotate)%180===90,a=o?r.naturalHeight:r.naturalWidth,i=o?r.naturalWidth:r.naturalHeight,l=a/i,u=e.width,f=e.height;e.height*l>e.width?n===3?u=e.height*l:f=e.width/l:n===3?f=e.width/l:u=e.height*l;var h={aspectRatio:l,naturalWidth:a,naturalHeight:i,width:u,height:f};this.canvasData=h,this.limited=n===1||n===2,this.limitCanvas(!0,!0),h.width=Math.min(Math.max(h.width,h.minWidth),h.maxWidth),h.height=Math.min(Math.max(h.height,h.minHeight),h.maxHeight),h.left=(e.width-h.width)/2,h.top=(e.height-h.height)/2,h.oldLeft=h.left,h.oldTop=h.top,this.initialCanvasData=Gt({},h)},limitCanvas:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,i=this.cropBoxData,l=n.viewMode,u=a.aspectRatio,f=this.cropped&&i;if(e){var h=Number(n.minCanvasWidth)||0,d=Number(n.minCanvasHeight)||0;l>1?(h=Math.max(h,o.width),d=Math.max(d,o.height),l===3&&(d*u>h?h=d*u:d=h/u)):l>0&&(h?h=Math.max(h,f?i.width:0):d?d=Math.max(d,f?i.height:0):f&&(h=i.width,d=i.height,d*u>h?h=d*u:d=h/u));var _=ja({aspectRatio:u,width:h,height:d});h=_.width,d=_.height,a.minWidth=h,a.minHeight=d,a.maxWidth=1/0,a.maxHeight=1/0}if(r)if(l>(f?0:1)){var g=o.width-a.width,b=o.height-a.height;a.minLeft=Math.min(0,g),a.minTop=Math.min(0,b),a.maxLeft=Math.max(0,g),a.maxTop=Math.max(0,b),f&&this.limited&&(a.minLeft=Math.min(i.left,i.left+(i.width-a.width)),a.minTop=Math.min(i.top,i.top+(i.height-a.height)),a.maxLeft=i.left,a.maxTop=i.top,l===2&&(a.width>=o.width&&(a.minLeft=Math.min(0,g),a.maxLeft=Math.max(0,g)),a.height>=o.height&&(a.minTop=Math.min(0,b),a.maxTop=Math.max(0,b))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=o.width,a.maxTop=o.height},renderCanvas:function(e,r){var n=this.canvasData,o=this.imageData;if(r){var a=rte({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),i=a.width,l=a.height,u=n.width*(i/n.naturalWidth),f=n.height*(l/n.naturalHeight);n.left-=(u-n.width)/2,n.top-=(f-n.height)/2,n.width=u,n.height=f,n.aspectRatio=i/l,n.naturalWidth=i,n.naturalHeight=l,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heightr.width?a.height=a.width/n:a.width=a.height*n),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*o),a.height=Math.max(a.minHeight,a.height*o),a.left=r.left+(r.width-a.width)/2,a.top=r.top+(r.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=Gt({},a)},limitCropBox:function(e,r){var n=this.options,o=this.containerData,a=this.canvasData,i=this.cropBoxData,l=this.limited,u=n.aspectRatio;if(e){var f=Number(n.minCropBoxWidth)||0,h=Number(n.minCropBoxHeight)||0,d=l?Math.min(o.width,a.width,a.width+a.left,o.width-a.left):o.width,_=l?Math.min(o.height,a.height,a.height+a.top,o.height-a.top):o.height;f=Math.min(f,o.width),h=Math.min(h,o.height),u&&(f&&h?h*u>f?h=f/u:f=h*u:f?h=f/u:h&&(f=h*u),_*u>d?_=d/u:d=_*u),i.minWidth=Math.min(f,d),i.minHeight=Math.min(h,_),i.maxWidth=d,i.maxHeight=_}r&&(l?(i.minLeft=Math.max(0,a.left),i.minTop=Math.max(0,a.top),i.maxLeft=Math.min(o.width,a.left+a.width)-i.width,i.maxTop=Math.min(o.height,a.top+a.height)-i.height):(i.minLeft=0,i.minTop=0,i.maxLeft=o.width-i.width,i.maxTop=o.height-i.height))},renderCropBox:function(){var e=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=r.width&&n.height>=r.height?gP:Lw),Ia(this.cropBox,Gt({width:n.width,height:n.height},Kl({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),pc(this.element,B0,this.getData())}},dte={initPreview:function(){var e=this.element,r=this.crossOrigin,n=this.options.preview,o=r?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",i=document.createElement("img");if(r&&(i.crossOrigin=r),i.src=o,i.alt=a,this.viewBox.appendChild(i),this.viewBoxImage=i,!!n){var l=n;typeof n=="string"?l=e.ownerDocument.querySelectorAll(n):n.querySelector&&(l=[n]),this.previews=l,mr(l,function(u){var f=document.createElement("img");fu(u,vp,{width:u.offsetWidth,height:u.offsetHeight,html:u.innerHTML}),r&&(f.crossOrigin=r),f.src=o,f.alt=a,f.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;"',u.innerHTML="",u.appendChild(f)})}},resetPreview:function(){mr(this.previews,function(e){var r=V0(e,vp);Ia(e,{width:r.width,height:r.height}),e.innerHTML=r.html,Zee(e,vp)})},preview:function(){var e=this.imageData,r=this.canvasData,n=this.cropBoxData,o=n.width,a=n.height,i=e.width,l=e.height,u=n.left-r.left-e.left,f=n.top-r.top-e.top;!this.cropped||this.disabled||(Ia(this.viewBoxImage,Gt({width:i,height:l},Kl(Gt({translateX:-u,translateY:-f},e)))),mr(this.previews,function(h){var d=V0(h,vp),_=d.width,g=d.height,b=_,w=g,S=1;o&&(S=_/o,w=a*S),a&&w>g&&(S=g/a,b=o*S,w=g),Ia(h,{width:b,height:w}),Ia(h.getElementsByTagName("img")[0],Gt({width:i*S,height:l*S},Kl(Gt({translateX:-u*S,translateY:-f*S},e))))}))}},pte={bind:function(){var e=this.element,r=this.options,n=this.cropper;rn(r.cropstart)&&On(e,H0,r.cropstart),rn(r.cropmove)&&On(e,U0,r.cropmove),rn(r.cropend)&&On(e,W0,r.cropend),rn(r.crop)&&On(e,B0,r.crop),rn(r.zoom)&&On(e,q0,r.zoom),On(n,MO,this.onCropStart=this.cropStart.bind(this)),r.zoomable&&r.zoomOnWheel&&On(n,IO,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&On(n,DO,this.onDblclick=this.dblclick.bind(this)),On(e.ownerDocument,NO,this.onCropMove=this.cropMove.bind(this)),On(e.ownerDocument,PO,this.onCropEnd=this.cropEnd.bind(this)),r.responsive&&On(window,AO,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,r=this.options,n=this.cropper;rn(r.cropstart)&&Gn(e,H0,r.cropstart),rn(r.cropmove)&&Gn(e,U0,r.cropmove),rn(r.cropend)&&Gn(e,W0,r.cropend),rn(r.crop)&&Gn(e,B0,r.crop),rn(r.zoom)&&Gn(e,q0,r.zoom),Gn(n,MO,this.onCropStart),r.zoomable&&r.zoomOnWheel&&Gn(n,IO,this.onWheel,{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&Gn(n,DO,this.onDblclick),Gn(e.ownerDocument,NO,this.onCropMove),Gn(e.ownerDocument,PO,this.onCropEnd),r.responsive&&Gn(window,AO,this.onResize)}},fte={resize:function(){if(!this.disabled){var e=this.options,r=this.container,n=this.containerData,o=r.offsetWidth/n.width,a=r.offsetHeight/n.height,i=Math.abs(o-1)>Math.abs(a-1)?o:a;if(i!==1){var l,u;e.restore&&(l=this.getCanvasData(),u=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(mr(l,function(f,h){l[h]=f*i})),this.setCropBoxData(mr(u,function(f,h){u[h]=f*i})))}}},dblclick:function(){this.disabled||this.options.dragMode===bP||this.setDragMode(Yee(this.dragBox,F0)?vP:Fw)},wheel:function(e){var r=this,n=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50),e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*n,e)))},cropStart:function(e){var r=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(yt(r)&&r!==1||yt(n)&&n!==0||e.ctrlKey))){var o=this.options,a=this.pointers,i;e.changedTouches?mr(e.changedTouches,function(l){a[l.identifier]=bp(l)}):a[e.pointerId||0]=bp(e),Object.keys(a).length>1&&o.zoomable&&o.zoomOnTouch?i=yP:i=V0(e.target,pu),zee.test(i)&&pc(this.element,H0,{originalEvent:e,action:i})!==!1&&(e.preventDefault(),this.action=i,this.cropping=!1,i===_P&&(this.cropping=!0,xr(this.dragBox,af)))}},cropMove:function(e){var r=this.action;if(!(this.disabled||!r)){var n=this.pointers;e.preventDefault(),pc(this.element,U0,{originalEvent:e,action:r})!==!1&&(e.changedTouches?mr(e.changedTouches,function(o){Gt(n[o.identifier]||{},bp(o,!0))}):Gt(n[e.pointerId||0]||{},bp(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var r=this.action,n=this.pointers;e.changedTouches?mr(e.changedTouches,function(o){delete n[o.identifier]}):delete n[e.pointerId||0],r&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,ic(this.dragBox,af,this.cropped&&this.options.modal)),pc(this.element,W0,{originalEvent:e,action:r}))}}},hte={change:function(e){var r=this.options,n=this.canvasData,o=this.containerData,a=this.cropBoxData,i=this.pointers,l=this.action,u=r.aspectRatio,f=a.left,h=a.top,d=a.width,_=a.height,g=f+d,b=h+_,w=0,S=0,k=o.width,D=o.height,C=!0,O;!u&&e.shiftKey&&(u=d&&_?d/_:1),this.limited&&(w=a.minLeft,S=a.minTop,k=w+Math.min(o.width,n.width,n.left+n.width),D=S+Math.min(o.height,n.height,n.top+n.height));var M=i[Object.keys(i)[0]],T={x:M.endX-M.startX,y:M.endY-M.startY},P=function(F){switch(F){case ds:g+T.x>k&&(T.x=k-g);break;case ps:f+T.xD&&(T.y=D-b);break}};switch(l){case Lw:f+=T.x,h+=T.y;break;case ds:if(T.x>=0&&(g>=k||u&&(h<=S||b>=D))){C=!1;break}P(ds),d+=T.x,d<0&&(l=ps,d=-d,f-=d),u&&(_=d/u,h+=(a.height-_)/2);break;case Da:if(T.y<=0&&(h<=S||u&&(f<=w||g>=k))){C=!1;break}P(Da),_-=T.y,h+=T.y,_<0&&(l=ji,_=-_,h-=_),u&&(d=_*u,f+=(a.width-d)/2);break;case ps:if(T.x<=0&&(f<=w||u&&(h<=S||b>=D))){C=!1;break}P(ps),d-=T.x,f+=T.x,d<0&&(l=ds,d=-d,f-=d),u&&(_=d/u,h+=(a.height-_)/2);break;case ji:if(T.y>=0&&(b>=D||u&&(f<=w||g>=k))){C=!1;break}P(ji),_+=T.y,_<0&&(l=Da,_=-_,h-=_),u&&(d=_*u,f+=(a.width-d)/2);break;case Dl:if(u){if(T.y<=0&&(h<=S||g>=k)){C=!1;break}P(Da),_-=T.y,h+=T.y,d=_*u}else P(Da),P(ds),T.x>=0?gS&&(_-=T.y,h+=T.y):(_-=T.y,h+=T.y);d<0&&_<0?(l=Pl,_=-_,d=-d,h-=_,f-=d):d<0?(l=Ml,d=-d,f-=d):_<0&&(l=Nl,_=-_,h-=_);break;case Ml:if(u){if(T.y<=0&&(h<=S||f<=w)){C=!1;break}P(Da),_-=T.y,h+=T.y,d=_*u,f+=a.width-d}else P(Da),P(ps),T.x<=0?f>w?(d-=T.x,f+=T.x):T.y<=0&&h<=S&&(C=!1):(d-=T.x,f+=T.x),T.y<=0?h>S&&(_-=T.y,h+=T.y):(_-=T.y,h+=T.y);d<0&&_<0?(l=Nl,_=-_,d=-d,h-=_,f-=d):d<0?(l=Dl,d=-d,f-=d):_<0&&(l=Pl,_=-_,h-=_);break;case Pl:if(u){if(T.x<=0&&(f<=w||b>=D)){C=!1;break}P(ps),d-=T.x,f+=T.x,_=d/u}else P(ji),P(ps),T.x<=0?f>w?(d-=T.x,f+=T.x):T.y>=0&&b>=D&&(C=!1):(d-=T.x,f+=T.x),T.y>=0?b=0&&(g>=k||b>=D)){C=!1;break}P(ds),d+=T.x,_=d/u}else P(ji),P(ds),T.x>=0?g=0&&b>=D&&(C=!1):d+=T.x,T.y>=0?b0?l=T.y>0?Nl:Dl:T.x<0&&(f-=d,l=T.y>0?Pl:Ml),T.y<0&&(h-=_),this.cropped||(Co(this.cropBox,nn),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}C&&(a.width=d,a.height=_,a.left=f,a.top=h,this.action=l,this.renderCropBox()),mr(i,function(j){j.startX=j.endX,j.startY=j.endY})}},mte={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&xr(this.dragBox,af),Co(this.cropBox,nn),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Gt({},this.initialImageData),this.canvasData=Gt({},this.initialCanvasData),this.cropBoxData=Gt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Gt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Co(this.dragBox,af),xr(this.cropBox,nn)),this},replace:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),r?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,mr(this.previews,function(n){n.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,Co(this.cropper,TO)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,xr(this.cropper,TO)),this},destroy:function(){var e=this.element;return e[Vt]?(e[Vt]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=n.left,a=n.top;return this.moveTo(Nv(e)?e:o+Number(e),Nv(r)?r:a+Number(r))},moveTo:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.movable&&(yt(e)&&(n.left=e,o=!0),yt(r)&&(n.top=r,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(e,r){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,r)},zoomTo:function(e,r,n){var o=this.options,a=this.canvasData,i=a.width,l=a.height,u=a.naturalWidth,f=a.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&o.zoomable){var h=u*e,d=f*e;if(pc(this.element,q0,{ratio:e,oldRatio:i/u,originalEvent:n})===!1)return this;if(n){var _=this.pointers,g=$P(this.cropper),b=_&&Object.keys(_).length?tte(_):{pageX:n.pageX,pageY:n.pageY};a.left-=(h-i)*((b.pageX-g.left-a.left)/i),a.top-=(d-l)*((b.pageY-g.top-a.top)/l)}else sc(r)&&yt(r.x)&&yt(r.y)?(a.left-=(h-i)*((r.x-a.left)/i),a.top-=(d-l)*((r.y-a.top)/l)):(a.left-=(h-i)/2,a.top-=(d-l)/2);a.width=h,a.height=d,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),yt(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var r=this.imageData.scaleY;return this.scale(e,yt(r)?r:1)},scaleY:function(e){var r=this.imageData.scaleX;return this.scale(yt(r)?r:1,e)},scale:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,o=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.scalable&&(yt(e)&&(n.scaleX=e,o=!0),yt(r)&&(n.scaleY=r,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.options,n=this.imageData,o=this.canvasData,a=this.cropBoxData,i;if(this.ready&&this.cropped){i={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height};var l=n.width/n.naturalWidth;if(mr(i,function(h,d){i[d]=h/l}),e){var u=Math.round(i.y+i.height),f=Math.round(i.x+i.width);i.x=Math.round(i.x),i.y=Math.round(i.y),i.width=f-i.x,i.height=u-i.y}}else i={x:0,y:0,width:0,height:0};return r.rotatable&&(i.rotate=n.rotate||0),r.scalable&&(i.scaleX=n.scaleX||1,i.scaleY=n.scaleY||1),i},setData:function(e){var r=this.options,n=this.imageData,o=this.canvasData,a={};if(this.ready&&!this.disabled&&sc(e)){var i=!1;r.rotatable&&yt(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,i=!0),r.scalable&&(yt(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,i=!0),yt(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,i=!0)),i&&this.renderCanvas(!0,!0);var l=n.width/n.naturalWidth;yt(e.x)&&(a.left=e.x*l+o.left),yt(e.y)&&(a.top=e.y*l+o.top),yt(e.width)&&(a.width=e.width*l),yt(e.height)&&(a.height=e.height*l),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?Gt({},this.containerData):{}},getImageData:function(){return this.sized?Gt({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,r={};return this.ready&&mr(["left","top","width","height","naturalWidth","naturalHeight"],function(n){r[n]=e[n]}),r},setCanvasData:function(e){var r=this.canvasData,n=r.aspectRatio;return this.ready&&!this.disabled&&sc(e)&&(yt(e.left)&&(r.left=e.left),yt(e.top)&&(r.top=e.top),yt(e.width)?(r.width=e.width,r.height=e.width/n):yt(e.height)&&(r.height=e.height,r.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,r;return this.ready&&this.cropped&&(r={left:e.left,top:e.top,width:e.width,height:e.height}),r||{}},setCropBoxData:function(e){var r=this.cropBoxData,n=this.options.aspectRatio,o,a;return this.ready&&this.cropped&&!this.disabled&&sc(e)&&(yt(e.left)&&(r.left=e.left),yt(e.top)&&(r.top=e.top),yt(e.width)&&e.width!==r.width&&(o=!0,r.width=e.width),yt(e.height)&&e.height!==r.height&&(a=!0,r.height=e.height),n&&(o?r.height=r.width/n:a&&(r.width=r.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 r=this.canvasData,n=nte(this.image,this.imageData,r,e);if(!this.cropped)return n;var o=this.getData(e.rounded),a=o.x,i=o.y,l=o.width,u=o.height,f=n.width/Math.floor(r.naturalWidth);f!==1&&(a*=f,i*=f,l*=f,u*=f);var h=l/u,d=ja({aspectRatio:h,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),_=ja({aspectRatio:h,width:e.minWidth||0,height:e.minHeight||0},"cover"),g=ja({aspectRatio:h,width:e.width||(f!==1?n.width:l),height:e.height||(f!==1?n.height:u)}),b=g.width,w=g.height;b=Math.min(d.width,Math.max(_.width,b)),w=Math.min(d.height,Math.max(_.height,w));var S=document.createElement("canvas"),k=S.getContext("2d");S.width=dc(b),S.height=dc(w),k.fillStyle=e.fillColor||"transparent",k.fillRect(0,0,b,w);var D=e.imageSmoothingEnabled,C=D===void 0?!0:D,O=e.imageSmoothingQuality;k.imageSmoothingEnabled=C,O&&(k.imageSmoothingQuality=O);var M=n.width,T=n.height,P=a,j=i,F,E,L,G,B,z;P<=-l||P>M?(P=0,F=0,L=0,B=0):P<=0?(L=-P,P=0,F=Math.min(M,l+P),B=F):P<=M&&(L=0,F=Math.min(l,M-P),B=F),F<=0||j<=-u||j>T?(j=0,E=0,G=0,z=0):j<=0?(G=-j,j=0,E=Math.min(T,u+j),z=E):j<=T&&(G=0,E=Math.min(u,T-j),z=E);var H=[P,j,F,E];if(B>0&&z>0){var K=b/l;H.push(L*K,G*K,B*K,z*K)}return k.drawImage.apply(k,[n].concat(mP(H.map(function(ee){return Math.floor(dc(ee))})))),S},setAspectRatio:function(e){var r=this.options;return!this.disabled&&!Nv(e)&&(r.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var r=this.options,n=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var a=e===Fw,i=r.movable&&e===vP;e=a||i?e:bP,r.dragMode=e,fu(n,pu,e),ic(n,F0,a),ic(n,z0,i),r.cropBoxMovable||(fu(o,pu,e),ic(o,F0,a),ic(o,z0,i))}return this}},_te=Eo.Cropper,TP=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Oee(this,t),!e||!Uee.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=Gt({},LO,sc(r)&&r),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 Dee(t,[{key:"init",value:function(){var r=this.element,n=r.tagName.toLowerCase(),o;if(!r[Vt]){if(r[Vt]=this,n==="img"){if(this.isImg=!0,o=r.getAttribute("src")||"",this.originalUrl=o,!o)return;o=r.src}else n==="canvas"&&window.HTMLCanvasElement&&(o=r.toDataURL());this.load(o)}}},{key:"load",value:function(r){var n=this;if(r){this.url=r,this.imageData={};var o=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Bee.test(r)){Wee.test(r)?this.read(ste(r)):this.clone();return}var i=new XMLHttpRequest,l=this.clone.bind(this);this.reloading=!0,this.xhr=i,i.onabort=l,i.onerror=l,i.ontimeout=l,i.onprogress=function(){i.getResponseHeader("content-type")!==jO&&i.abort()},i.onload=function(){n.read(i.response)},i.onloadend=function(){n.reloading=!1,n.xhr=null},a.checkCrossOrigin&&zO(r)&&o.crossOrigin&&(r=BO(r)),i.open("GET",r,!0),i.responseType="arraybuffer",i.withCredentials=o.crossOrigin==="use-credentials",i.send()}}},{key:"read",value:function(r){var n=this.options,o=this.imageData,a=cte(r),i=0,l=1,u=1;if(a>1){this.url=ite(r,jO);var f=lte(a);i=f.rotate,l=f.scaleX,u=f.scaleY}n.rotatable&&(o.rotate=i),n.scalable&&(o.scaleX=l,o.scaleY=u),this.clone()}},{key:"clone",value:function(){var r=this.element,n=this.url,o=r.crossOrigin,a=n;this.options.checkCrossOrigin&&zO(n)&&(o||(o="anonymous"),a=BO(n)),this.crossOrigin=o,this.crossOriginUrl=a;var i=document.createElement("img");o&&(i.crossOrigin=o),i.src=a||n,i.alt=r.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),xr(i,OO),r.parentNode.insertBefore(i,r.nextSibling)}},{key:"start",value:function(){var r=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var o=Eo.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Eo.navigator.userAgent),a=function(f,h){Gt(r.imageData,{naturalWidth:f,naturalHeight:h,aspectRatio:f/h}),r.initialImageData=Gt({},r.imageData),r.sizing=!1,r.sized=!0,r.build()};if(n.naturalWidth&&!o){a(n.naturalWidth,n.naturalHeight);return}var i=document.createElement("img"),l=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){a(i.width,i.height),o||l.removeChild(i)},i.src=n.src,o||(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;",l.appendChild(i))}},{key:"stop",value:function(){var r=this.image;r.onload=null,r.onerror=null,r.parentNode.removeChild(r),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var r=this.element,n=this.options,o=this.image,a=r.parentNode,i=document.createElement("div");i.innerHTML=Hee;var l=i.querySelector(".".concat(Vt,"-container")),u=l.querySelector(".".concat(Vt,"-canvas")),f=l.querySelector(".".concat(Vt,"-drag-box")),h=l.querySelector(".".concat(Vt,"-crop-box")),d=h.querySelector(".".concat(Vt,"-face"));this.container=a,this.cropper=l,this.canvas=u,this.dragBox=f,this.cropBox=h,this.viewBox=l.querySelector(".".concat(Vt,"-view-box")),this.face=d,u.appendChild(o),xr(r,nn),a.insertBefore(l,r.nextSibling),Co(o,OO),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,xr(h,nn),n.guides||xr(h.getElementsByClassName("".concat(Vt,"-dashed")),nn),n.center||xr(h.getElementsByClassName("".concat(Vt,"-center")),nn),n.background&&xr(l,"".concat(Vt,"-bg")),n.highlight||xr(d,Iee),n.cropBoxMovable&&(xr(d,z0),fu(d,pu,Lw)),n.cropBoxResizable||(xr(h.getElementsByClassName("".concat(Vt,"-line")),nn),xr(h.getElementsByClassName("".concat(Vt,"-point")),nn)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),rn(n.ready)&&On(r,RO,n.ready,{once:!0}),pc(r,RO)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var r=this.cropper.parentNode;r&&r.removeChild(this.cropper),Co(this.element,nn)}}},{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=_te,t}},{key:"setDefaults",value:function(r){Gt(LO,sc(r)&&r)}}])}();Gt(TP.prototype,ute,dte,pte,fte,hte,mte);var gs=function(){return gs=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&j.zoomTo(ee)}(P.currentTarget.cropper,C),S&&S(P)}}));k&&k(T)}return function(){var P,j;(j=(P=O.current)===null||P===void 0?void 0:P.cropper)===null||j===void 0||j.destroy()}},[O]);var M=function(T){return gte.reduce(function(P,j){var F=P,E=j;return F[E],Rv(F,[typeof E=="symbol"?E:E+""])},T)}(gs(gs({},D),{crossOrigin:u,src:a,alt:w}));return y.createElement("div",{style:i,className:l},y.createElement("img",gs({},M,{style:yte,ref:O})))});const Ma={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},vte={once:"once",interval:"interval",intervalBetween:"intervalBetween",specific:"specific"},Fr={seconds:"seconds",minutes:"minutes"},WO=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function go(t){return t<10?`0${t}`:`${t}`}const bte={mode:"interval",interval:{period:1,unit:Fr.minutes}};function Np(t){if(t==="*")return[0,1,2,3,4,5,6];const e=t.split(","),r=[];return e.forEach(n=>{const o=n.split("-");if(o.length===2){const a=parseInt(o[0],10),i=parseInt(o[1],10);for(let l=a;l<=i;l++)r.includes(l===7?0:l)||r.push(l===7?0:l)}else{n==="7"&&(n="0");const a=parseInt(n,10);r.includes(a)||r.push(a)}}),r.sort(),r}function OP(t,e){t=t.replace(/['"]/g,"").trim();const r=t.split(" ");let n,o=null;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",date:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:null,minutes:r[0]||"*",hours:r[1]||"*",date:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n.seconds===null&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)&&(o={mode:"interval",interval:{period:1,unit:Fr.minutes}}),n.seconds==="*"&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:1,unit:Fr.seconds}}:n.seconds===null&&n.minutes.includes("/")&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.minutes.split("/")[1],10),unit:Fr.minutes}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"interval",interval:{period:parseInt(n.seconds.split("/")[1],10),unit:Fr.seconds}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.seconds.split("/")[1],10),unit:Fr.seconds,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Np(n.dow)}}:n.seconds===null&&n.minutes.includes("/")&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"intervalBetween",intervalBetween:{period:parseInt(n.minutes.split("/")[1],10),unit:Fr.minutes,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:Np(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?o={mode:"specific",specific:{time:`${go(parseInt(n.hours,10))}:${go(parseInt(n.minutes,10))}`,weekdays:Np(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&parseInt(n.date,10).toString()===n.date&&parseInt(n.months,10).toString()===n.months&&(n.dow==="*"||e)&&(o={mode:"once",once:{time:`${go(parseInt(n.hours,10))}:${go(parseInt(n.minutes,10))}`,date:`${go(parseInt(n.date,10))}.${go(parseInt(n.months,10))}`}}),o}class hu extends y.Component{constructor(e){super(e);let r=typeof e.cronExpression=="string"?e.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";r[0]==="{"&&(r="");const n=OP(r||"* * * * *",!0)||bte;this.state={extended:!1,cron:hu.state2cron(n),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:Fr.minutes},intervalBetween:{period:1,unit:Fr.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,n),this.state.cron!==e.cronExpression&&setTimeout(()=>e.onChange&&e.onChange(this.state.cron),100)}static periodArray2text(e,r=7){if(r=r||7,e.length===r)return"*";const n=[];let o=null,a=null;if(!e.length)return"_";for(let i=0;i60&&(n.period=60),n.period!==void 0&&n.period<1&&(n.period=1),n.minutes!==void 0&&n.minutes!==null&&n.minutes>60&&(n.minutes=60),n.minutes!==void 0&&n.minutes!==null&&n.minutes<1&&(n.minutes=1),n.hours!==void 0&&n.hours!==null&&n.hours>24&&(n.hours=24),n.hours!==void 0&&n.hours!==null&&n.hours<1&&(n.hours=1),e.extended)r=`${n.minutes!==void 0&&n.minutes!==null&&n.minutes>1?`*/${n.minutes}`:"*"} ${n.hours!==void 0&&n.hours!==null&&n.hours>1?`*/${n.hours}`:"*"} * * *`;else switch(n.unit){case Fr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * * * * *`;break;case Fr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} * * * *`;break}}else if(e.mode==="intervalBetween"){const n=e.intervalBetween||{period:1,unit:Fr.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let o;switch(n.timeFrom=n.timeFrom||0,n.timeTo=n.timeTo===void 0?24:n.timeTo,n.timeFrom!==0&&n.timeTo===24&&(n.timeTo=23),n.timeFrom===0&&n.timeTo===24?o="*":o=n.timeFrom!==n.timeTo?`${n.timeFrom}-${n.timeTo}`:"*",n.period>60&&(n.period=60),n.period<1&&(n.period=1),n.unit=n.unit||Fr.minutes,n.unit){case Fr.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * ${o} * * ${this.periodArray2text(n.weekdays)}`;break;case Fr.minutes:r=`${n.period>1?`*/${n.period}`:"*"} ${o} * * ${this.periodArray2text(n.weekdays)}`;break}}else if(e.mode==="specific"){const n=e.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},o=(n.time||"00:00").split(":");let a=parseInt(o[1],10)||0;a>59&&(a=59),a<0&&(a=0);let i=parseInt(o[0],10)||0;i>23&&(i=59),i<0&&(i=0),r=`${a} ${i} * * ${this.periodArray2text(n.weekdays||[])}`}else if(e.mode==="once"){const n=e.once||{time:"00:00",date:""};n.date||(n.date=`${new Date().getDate()}.${go(new Date().getMonth()+1)}`);const o=(n.time||"00:00").split(":"),a=n.date.split(".");let i=parseInt(o[1],10)||0;i>59&&(i=59),i<0&&(i=0);let l=parseInt(o[0],10)||0;l>23&&(l=59),l<0&&(l=0);let u=parseInt(a[0],10)||1;u>31&&(u=31),u<1&&(l=1);let f=parseInt(a[1],10)||1;f>12&&(f=12),f<1&&(f=1),r=`${i} ${l} ${u} ${f} *`}return r}recalcCron(){this.onChange(hu.state2cron(this.state))}getControlsWeekdaysElements(e){const r=e==="intervalBetween"?this.state.intervalBetween:this.state.specific;return y.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},y.createElement("h5",null,U.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(n=>y.createElement(gt,{key:WO[n],control:y.createElement(tn,{checked:r.weekdays.includes(n),onChange:o=>{const a=JSON.parse(JSON.stringify(this.state[e])),i=a.weekdays.indexOf(n);o.target.checked?i===-1&&a.weekdays.push(n):i!==-1&&a.weekdays.splice(i,1),a.weekdays.sort(),e==="intervalBetween"?this.setState({intervalBetween:a},()=>this.recalcCron()):this.setState({specific:a},()=>this.recalcCron())},value:n.toString()}),label:U.t(WO[n])})))}getControlsPeriodElements(e){const r=e==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?y.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},y.createElement("h5",{style:{marginBottom:5}},U.t("sc_period")),y.createElement(zr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:U.t("sc_minutes"),value:r.minutes,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.minutes=parseInt(n.target.value,10),o.minutes<1&&(o.minutes=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),y.createElement(zr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:U.t("sc_hours"),value:r.hours,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.hours=parseInt(n.target.value,10),o.hours<1&&(o.hours=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):y.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},y.createElement("h5",{style:{marginBottom:5}},U.t("sc_period")),y.createElement(zr,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:U.t("sc_every"),value:r.period,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.period=parseInt(n.target.value,10),o.period<1&&(o.period=1),e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),y.createElement(wo,{variant:"standard",style:{verticalAlign:"bottom"},value:r.unit,onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.unit=n.target.value,e==="interval"?this.setState({interval:o},()=>this.recalcCron()):this.setState({intervalBetween:o},()=>this.recalcCron())}},y.createElement(fr,{value:"seconds"},U.t("sc_seconds")),")",y.createElement(fr,{value:"minutes"},U.t("sc_minutes")),")"))}getControlsTime(e){const r=e==="once"?this.state.once:this.state.specific;return y.createElement(zi,{variant:"standard",sx:{...Ma.formControl,"&.MuiFormControl-root":Ma.formControlMarginRight}},y.createElement(zr,{variant:"standard",key:"at",label:U.t("sc_time"),value:r.time,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const o=JSON.parse(JSON.stringify(this.state[e]));o.time=n.target.value,e==="once"?this.setState({once:o},()=>this.recalcCron()):this.setState({specific:o},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const e=this.state.once;if(!e.date){const r=new Date;e.date=`${r.getDate()}.${go(r.getMonth()+1)}`}return y.createElement(zi,{variant:"standard",style:Ma.formControl},y.createElement(zr,{variant:"standard",key:"date",label:U.t("sc_date"),value:e.date,type:"text",slotProps:{htmlInput:{style:Ma.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.once));n.date=r.target.value,this.setState({once:n},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return y.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const e=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),y.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},y.createElement("h5",{style:{marginBottom:5}},U.t("sc_hours")),y.createElement(zi,{variant:"standard",style:Ma.formControl},y.createElement(Tp,{shrink:!0,htmlFor:"age-label-placeholder"},U.t("sc_from")),y.createElement(wo,{variant:"standard",style:{width:100},value:e.timeFrom,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeFrom=parseInt(r.target.value,10),n.timeTo===24&&(n.timeTo=23),this.setState({intervalBetween:n},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>y.createElement(fr,{key:`B_${r}`,value:r},`${go(r)}:00`)))),y.createElement(zi,{variant:"standard",style:Ma.formControl},y.createElement(Tp,{shrink:!0,htmlFor:"age-label-placeholder"},U.t("sc_to")),y.createElement(wo,{variant:"standard",style:{width:100},value:e.timeTo,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeTo=parseInt(r.target.value,10),this.setState({intervalBetween:n},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>y.createElement(fr,{key:`A_${r}`,value:r},`${go(r)}:00`)),!e.timeFrom&&y.createElement(fr,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[y.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(e){e!==this.state.mode&&this.setState({mode:e},()=>this.recalcCron())}onChange(e){e!==this.state.cron&&(this.setState({cron:e}),this.props.onChange&&this.props.onChange(e))}render(){return y.createElement("div",{style:Ma.mainDiv},y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},y.createElement(zr,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),y.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?U.t("sc_invalid_cron"):ZN(this.state.cron,this.props.language||"en")),y.createElement("div",null,y.createElement(zi,{variant:"standard",style:{...Ma.formControl,marginLeft:8,marginTop:8}},y.createElement(Tp,null,U.t("ra_Repeat")),y.createElement(wo,{variant:"standard",value:this.state.mode,onChange:e=>this.onModeChange(e.target.value),inputProps:{name:"mode",id:"mode"}},y.createElement(fr,{value:"once"},U.t("sc_once")),y.createElement(fr,{value:"interval"},U.t("sc_interval")),y.createElement(fr,{value:"intervalBetween"},U.t("sc_intervalBetween")),y.createElement(fr,{value:"specific"},U.t("sc_specific"))))),this.state.mode===vte.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const wte={headerID:{fontWeight:"bold",fontStyle:"italic"},radio:{display:"inline-block"},dialogPaper:{height:"calc(100% - 96px)"}};class DXe extends y.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:r}}handleCancel(){this.props.onClose()}handleOk(e){if(!e){const r=Aa.cron2state(this.state.cron);if(r.seconds==="*"||r.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(r.minutes==="*"||r.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?y.createElement(RH,{title:U.t("ra_Please confirm"),text:U.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:e=>this.setState({showWarning:""},()=>{e&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return y.createElement(ra,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":wte.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),y.createElement(aa,{id:"cron-dialog-title"},this.props.title||U.t("ra_Define schedule...")),y.createElement(oa,{style:{height:"100%",overflow:"hidden"}},y.createElement(Aa,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()})),y.createElement(na,null,!!this.props.clearButton&&y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:y.createElement(Dp,null)},this.props.clear||U.t("ra_Clear")),y.createElement(Qt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const xte={dialogPaper:{height:"calc(100% - 96px)"}};class MXe extends y.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof r=="object"||r[0]==="{")&&!this.props.noWizard?"wizard":OP(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(e){this.setState({mode:e})}render(){return y.createElement(ra,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":xte.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},y.createElement(aa,{id:"cron-dialog-title"},this.props.title||U.t("ra_Define schedule...")),y.createElement(oa,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?y.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&y.createElement(y.Fragment,null,y.createElement(Ft,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),y.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},U.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&y.createElement(y.Fragment,null,y.createElement(Ft,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),y.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},U.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&y.createElement(y.Fragment,null,y.createElement(Ft,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),y.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},U.t("sc_cron")))):null,this.state.mode==="simple"&&y.createElement(hu,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()}),this.state.mode==="wizard"&&y.createElement(Tr,{theme:this.props.theme,schedule:this.state.cron,onChange:e=>this.setState({cron:e})}),this.state.mode==="complex"&&y.createElement(Aa,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const fs={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class NXe extends y.Component{constructor(r){super(r);we(this,"dialogName");we(this,"filters");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const n=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(n)}catch{this.filters={}}r.filters&&(this.filters={...this.filters,...r.filters});let o=this.props.selected||[];typeof o!="object"?o=[o]:o=[...o],o=o.filter(a=>a),this.state={selected:o}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let r;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?r=[y.createElement("span",{key:"selected"},U.t("ra_Selected")," "),y.createElement("span",{key:"id",style:fs.headerID},this.state.selected)]:r=[y.createElement("span",{key:"selected"},U.t("ra_Selected")," "),y.createElement("span",{key:"id",style:fs.headerID},U.t("%s items",this.state.selected.length))]:r=this.props.title||U.t("ra_Please select file..."),y.createElement(ra,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{...fs.dialog,...fs.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},y.createElement(aa,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":fs.titleRoot}},r),y.createElement(oa,{style:{...fs.content,...fs.contentMobile}},y.createElement(vee,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(n,o,a)=>{this.setState({selected:Array.isArray(n)?n:[n]},()=>o&&(!this.props.selectOnlyFolders||a)&&this.handleOk())},t:this.props.t||U.t,lang:this.props.lang||U.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",onClick:()=>this.handleOk(),startIcon:y.createElement(Hs,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const Ste={dialogPaper:{height:"calc(100% - 96px)"}};class PXe extends y.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return y.createElement(ra,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":Ste.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},y.createElement(aa,{id:"cron-dialog-title"},this.props.title||U.t("ra_Define CRON...")),y.createElement(oa,{style:{height:"100%",overflow:"hidden"}},y.createElement(hu,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:U.getLanguage()})),y.createElement(na,null,y.createElement(Qt,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:y.createElement(Hs,null)},this.props.ok||U.t("ra_Ok")),y.createElement(Qt,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:y.createElement(jf,null)},this.props.cancel||U.t("ra_Cancel"))))}}const kte=""+new URL("echarts-BDq-rBJC.png",import.meta.url).href,Cte="Append",$te="Cancel",Ete="Categories",Tte="Checked",Ote="Delete",Dte="Close",Mte="Commercial",Nte="Configure",Pte="Connected",Rte="Copied",Ate="Create",Ite="Crop",jte="Delete",Lte="Delete",Fte="Discard",zte="Disconnected",Bte="Error",Wte="Filter",Ute="Friday",Hte="Latitude",qte="Expires in",Vte="Longitude",Xte="Message",Gte="Monday",Jte="Name",Yte="Objects",Kte="Ok",Zte="Product",Qte="Repeat",ere="Replace",tre="Root",rre="Saturday",nre="Save",ore="Selected",are="States",sre="Sunday",ire="Thursday",cre="Timestamp",lre="Tuesday",ure="Update",dre="Valid till",pre="Value",fre="Version",hre="Wednesday",mre="Width",_re="Yes",gre="different",yre="Everyone can read object",vre="Everyone can read state",bre="Everyone can write object",wre="Everyone can write state",xre="Group can read object",Sre="Group can read state",kre="Group can write object",Cre="Group can write state",$re="Owner can read object",Ere="Owner can read state",Tre="Owner can write object",Ore="Owner can write state",Dre="Buttons",Mre="Changed from",Nre="close",Pre="Create boolean state",Rre="Create channel",Are="Create device",Ire="Create number state",jre="Create state",Lre="Create string state",Fre="days",zre="Fr",Bre="Mo",Wre="Sa",Ure="Su",Hre="Th",qre="Tu",Vre="We",Xre="Expert mode",Gre="All files",Jre="Audio",Yre="Code/JSON",Kre="Images",Zre="Text",Qre="Video",ene="Settings",tne="without",rne="Function",nne="ID",one="Name",ane="Role",sne="Room",ine="Type",cne="Invalid settings",lne="Last change",une="locally",dne="Apr",pne="Aug",fne="Dec",hne="Feb",mne="Jan",_ne="Jul",gne="Jun",yne="Mai",vne="Mar",bne="Nov",wne="Oct",xne="Sep",Sne="Apr",kne="Aug",Cne="Dec",$ne="Feb",Ene="Jan",Tne="Jul",One="Jun",Dne="Mai",Mne="Mar",Nne="Nov",Pne="Oct",Rne="Sep",Ane="none",Ine="Object changed by",jne="Object last changed at",Lne="Settings from other adapter %s",Fne="Quality code",zne="repeat",Bne='To select folder, just hold the key "shift" by clicking the folder.',Wne="State changed by",Une="Object changed from",Hne="Timestamp",qne="Acknowledged",Vne="Comment",Xne="Copy the state value",Gne="Custom settings",Jne="Delete object",Yne="Edit object",Kne="Edit the state value",Zne="From",Qne="Last changed",eoe="Quality",toe="Time stamp",roe="User",noe="Value",ooe="Value",aoe="Warning: The CRON job will run every minute during the specified period!",soe="Warning: The CRON job will run every second during the specified period!",ioe="CRON",coe="Date",loe="Dates",uoe="Day",doe="Day of week",poe="Every",foe="every N days",hoe="every Nth day of the week",moe="every N day of week",_oe="every N hours",goe="every N minutes",yoe="every N months",voe="every N seconds",boe="every day",woe="every day of the week",xoe="every day of the week",Soe="every hour",koe="every minute",Coe="every month",$oe="every second",Eoe="From",Toe="Hours",Ooe="Interval",Doe="Interval between",Moe="Invalid CRON",Noe="Minutes",Poe="months",Roe="Once",Aoe="Period",Ioe="Seconds",joe="Simple",Loe="Specific time",Foe="specific dates",zoe="specific day(s) of the week",Boe="specific day of weeks",Woe="specific hours",Uoe="specific minutes",Hoe="specific months",qoe="specific seconds",Voe="Time",Xoe="To",Goe="Wizard",Joe="all",Yoe="Astro day",Koe="Astro night",Zoe="Dawn",Qoe="Dusk",eae="Golden hour",tae="Golden hour end",rae="Nadir",nae="Nautical dawn",oae="Nautical dusk",aae="Night",sae="Night end",iae="Solar noon",cae="Sunrise",lae="Sunrise end",uae="Sunset",dae="Sunset start",pae="at",fae="at %s",hae="every day",mae="every hour",_ae="every minute",gae="every month",yae="every %s day",vae="every %s hours",bae="every %s minutes",wae="every %s months",xae="every %s weeks",Sae="every %s years",kae="every week",Cae="every year",$ae="from %s to %s",Eae="never",Tae="on %s of %s",Oae="on %s and %s of",Dae="on every date of",Mae="%s",Nae="%s and %s",Pae="on %s",Rae="on %s and %s",Aae="on weekends",Iae="on working days",jae="will ne be not executed any more, because start is in the past",Lae="on %s",Fae="from %s",zae="Execute from to",Bae="to %s",Wae="every",Uae="Specific time",Hae="from",qae="From-to",Vae="Interval time",Xae="invert",Gae="none",Jae="on",Yae="Period",Kae="Daily",Zae="Dates",Qae="Day",ese="Every",tse="Every day",rse="Every month",nse="Every week",ose="Every year",ase="Hours",sse="Minutes",ise="month",cse="Monthly",lse="Once",use="Specific months",dse="Week",pse="Weekdays",fse="Weekend",hse="Weekly",mse="Workdays",_se="Year",gse="Yearly",yse="Specific time",vse="Time",bse="to",wse="Valid",xse="from",Sse="to",kse="Whole day",Cse="every month",$se={"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_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:Cte,"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:$te,"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:Ete,"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:Tte,ra_Clear:Ote,"ra_Clear filter":"Clear filter","ra_Clear icon":"Clear icon","ra_Clone current row":"Clone current row",ra_Close:Dte,"ra_Collapse all nodes":"Collapse all nodes","ra_Collapse one step node":"Collapse one level",ra_Commercial:Mte,ra_Configure:Nte,"ra_Configure visible columns":"Configure visible columns","ra_Confirm deletion of %s":"Confirm deletion of %s",ra_Connected:Pte,ra_Copied:Rte,"ra_Copied %s":'Copied "%s"',"ra_Copy content":"Copy content",ra_Create:Ate,"ra_Create alias":"Create alias","ra_Create folder":"Create folder","ra_Create new folder in %s":"Create new folder in %s",ra_Crop:Ite,"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:jte,ra_Delete:Lte,"ra_Delete (no confirm for 5 mins)":"Delete (no confirm for 5 mins)","ra_Delete current row":"Delete current row","ra_Deselect all":"Unselect all","ra_Device → Channel → State":"Device → Channel → State",ra_Discard:Fte,ra_Disconnected:zte,"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_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 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_Error:Bte,"ra_Expand all nodes":"Expand all nodes","ra_Expand one step node":"Expand one level","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:Wte,"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:Ute,"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_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 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:Hte,"ra_License %s":"License %s","ra_License agreement":"License agreement","ra_License does not exist":"License does not exist",ra_tooltip_expire:qte,"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_Longitude:Vte,'ra_May not trigger "updateLicenses"':'May not trigger "updateLicenses"',ra_Message:Xte,ra_Monday:Gte,"ra_Move down":"Move down","ra_Move up":"Move up",ra_Name:Jte,"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 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_Objects:Yte,ra_Ok:Kte,"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 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_Private certificate":"Private certificate",ra_Product:Zte,"ra_Public certificate":"Public certificate","ra_Quality code":"Quality","ra_Refresh tree":"Refresh tree","ra_Reload files":"Reload files",ra_Repeat:Qte,ra_Replace:ere,"ra_Request timed out":"Request timed out","ra_Restrict to folder":"Restrict to folder",ra_Root:tre,ra_Saturday:rre,ra_Save:nre,"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:ore,"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_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:are,"ra_Suitable license not found in license manager":"Suitable license not found in license manager",ra_Sunday:sre,"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:ire,ra_Timestamp:cre,"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:lre,"ra_Unknown error":"Unknown error","ra_Unknown error!":"Unknown error!",ra_Update:ure,"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:dre,ra_Value:pre,ra_Version:fre,"ra_View file":"View file","ra_View: %s":"View: %s",ra_Wednesday:hre,ra_Width:mre,ra_Yes:_re,"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___different__:gre,ra_aclEveryone_read_object:yre,ra_aclEveryone_read_state:vre,ra_aclEveryone_write_object:bre,ra_aclEveryone_write_state:wre,ra_aclGroup_read_object:xre,ra_aclGroup_read_state:Sre,ra_aclGroup_write_object:kre,ra_aclGroup_write_state:Cre,ra_aclOwner_read_object:$re,ra_aclOwner_read_state:Ere,ra_aclOwner_write_object:Tre,ra_aclOwner_write_state:Ore,ra_buttons:Dre,ra_changedFrom:Mre,ra_close:Nre,ra_create_boolean_state:Pre,ra_create_channel:Rre,ra_create_device:Are,ra_create_number_state:Ire,ra_create_state:jre,ra_create_string_state:Lre,ra_daysShortText:Fre,ra_dow_Fr:zre,ra_dow_Mo:Bre,ra_dow_Sa:Wre,ra_dow_Su:Ure,ra_dow_Th:Hre,ra_dow_Tu:qre,ra_dow_We:Vre,ra_expertMode:Xre,ra_fileType_all:Gre,ra_fileType_audio:Jre,ra_fileType_code:Yre,ra_fileType_images:Kre,ra_fileType_txt:Zre,ra_fileType_video:Qre,"ra_fileType_video,":"Video",ra_filter_customs:ene,ra_filter_customs_without:tne,ra_filter_func:rne,ra_filter_id:nne,ra_filter_name:one,ra_filter_role:ane,ra_filter_room:sne,ra_filter_type:ine,"ra_import data from %s file":"Import data from %s file",ra_invalidConfig:cne,ra_lastChange:lne,ra_locally:une,ra_month_Apr:dne,ra_month_Aug:pne,ra_month_Dec:fne,ra_month_Feb:hne,ra_month_Jan:mne,ra_month_Jul:_ne,ra_month_Jun:gne,ra_month_Mai:yne,ra_month_Mar:vne,ra_month_Nov:bne,ra_month_Oct:wne,ra_month_Sep:xne,ra_months_Apr:Sne,ra_months_Aug:kne,ra_months_Dec:Cne,ra_months_Feb:$ne,ra_months_Jan:Ene,ra_months_Jul:Tne,ra_months_Jun:One,ra_months_Mai:Dne,ra_months_Mar:Mne,ra_months_Nov:Nne,ra_months_Oct:Pne,ra_months_Sep:Rne,ra_none:Ane,ra_object_changed_by:Ine,ra_object_changed_by_user:jne,ra_otherConfig:Lne,ra_qualityCode:Fne,ra_repeat:zne,ra_select_folder_hint:Bne,ra_state_changed_by:Wne,ra_state_changed_from:Une,ra_timestamp:Hne,ra_tooltip_ack:qne,ra_tooltip_comment:Vne,ra_tooltip_copyState:Xne,ra_tooltip_customConfig:Gne,ra_tooltip_deleteObject:Jne,ra_tooltip_editObject:Yne,ra_tooltip_editState:Kne,ra_tooltip_from:Zne,ra_tooltip_lc:Qne,ra_tooltip_quality:eoe,ra_tooltip_ts:toe,ra_tooltip_user:roe,ra_tooltip_value:noe,"ra_use seconds":"use seconds",ra_val:ooe,"ra_via internet":"via internet",ra_warning_every_minute:aoe,ra_warning_every_second:soe,sc_cron:ioe,sc_date:coe,sc_dates:loe,sc_dow:uoe,sc_dows:doe,sc_every:poe,sc_everyN_dates:foe,sc_everyN_dow:hoe,sc_everyN_dows:moe,sc_everyN_hours:_oe,sc_everyN_minutes:goe,sc_everyN_months:yoe,sc_everyN_seconds:voe,sc_every_dates:boe,sc_every_dow:woe,sc_every_dows:xoe,sc_every_hours:Soe,sc_every_minutes:koe,sc_every_months:Coe,sc_every_seconds:$oe,sc_from:Eoe,sc_hours:Toe,sc_interval:Ooe,sc_intervalBetween:Doe,sc_invalid_cron:Moe,sc_minutes:Noe,sc_months:Poe,sc_once:Roe,sc_period:Aoe,sc_seconds:Ioe,sc_simple:joe,sc_specific:Loe,sc_specific_dates:Foe,sc_specific_dow:zoe,sc_specific_dows:Boe,sc_specific_hours:Woe,sc_specific_minutes:Uoe,sc_specific_months:Hoe,sc_specific_seconds:qoe,sc_time:Voe,sc_to:Xoe,sc_wizard:Goe,sch_all:Joe,sch_astroDay:Yoe,sch_astroNight:Koe,sch_astro_dawn:Zoe,sch_astro_dusk:Qoe,sch_astro_goldenHour:eae,sch_astro_goldenHourEnd:tae,sch_astro_nadir:rae,sch_astro_nauticalDawn:nae,sch_astro_nauticalDusk:oae,sch_astro_night:aae,sch_astro_nightEnd:sae,sch_astro_solarNoon:iae,sch_astro_sunrise:cae,sch_astro_sunriseEnd:lae,sch_astro_sunset:uae,sch_astro_sunsetStart:dae,sch_at:pae,sch_desc_atTime:fae,sch_desc_everyDay:hae,sch_desc_everyHour:mae,sch_desc_everyMinute:_ae,sch_desc_everyMonth:gae,sch_desc_everyNDay:yae,sch_desc_everyNHours:vae,sch_desc_everyNMinutes:bae,sch_desc_everyNMonths:wae,sch_desc_everyNWeeks:xae,sch_desc_everyNYears:Sae,sch_desc_everyWeek:kae,sch_desc_everyYear:Cae,sch_desc_intervalFromTo:$ae,sch_desc_never:Eae,sch_desc_onDate:Tae,sch_desc_onDates:Oae,sch_desc_onEveryDate:Dae,sch_desc_onMonth:Mae,sch_desc_onMonths:Nae,sch_desc_onWeekday:Pae,sch_desc_onWeekdays:Rae,sch_desc_onWeekends:Aae,sch_desc_onWorkdays:Iae,sch_desc_onceInPast:jae,sch_desc_once_on:Lae,sch_desc_validFrom:Fae,sch_desc_validFromTo:zae,sch_desc_validTo:Bae,sch_every:Wae,sch_exactTime:Uae,sch_from:Hae,sch_fromTo:qae,sch_intervalTime:Vae,sch_invert:Xae,sch_no_one:Gae,sch_on:Jae,sch_period:Yae,sch_periodDaily:Kae,sch_periodDates:Zae,sch_periodDay:Qae,sch_periodEvery:ese,sch_periodEveryDay:tse,sch_periodEveryMonth:rse,sch_periodEveryWeek:nse,sch_periodEveryYear:ose,sch_periodHours:ase,sch_periodMinutes:sse,sch_periodMonth:ise,sch_periodMonthly:cse,sch_periodOnce:lse,sch_periodSpecificMonths:use,sch_periodWeek:dse,sch_periodWeekdays:pse,sch_periodWeekend:fse,sch_periodWeekly:hse,sch_periodWorkdays:mse,sch_periodYear:_se,sch_periodYearly:gse,sch_specificTime:yse,sch_time:vse,sch_to:bse,sch_valid:wse,sch_validFrom:xse,sch_validTo:Sse,sch_wholeDay:kse,sch_yearEveryMonth:Cse},Ese="Anhängen",Tse="Abbrechen",Ose="Kategorien",Dse="Geprüft",Mse="Löschen",Nse="Schließen",Pse="Kommerziell",Rse="Konfigurieren",Ase="Verbunden",Ise="Kopiert",jse="Erstellen",Lse="Ernte",Fse="Entf",zse="Löschen",Bse="Verwerfen",Wse="Getrennt",Use="Fehler",Hse="Filter",qse="Freitag",Vse="Breite",Xse="Längengrad",Gse="Meldung",Jse="Montag",Yse="Name",Kse="Objekte",Zse="OK",Qse="Produkt",eie="Wiederholen",tie="Ersetzen",rie="Anfang",nie="Samstag",oie="Speichern",aie="Ausgewählt",sie="Zustände",iie="Sonntag",cie="Donnerstag",lie="Zeitstempel",uie="Dienstag",die="Aktualisieren",pie="Gültig bis",fie="Wert",hie="Ausführung",mie="Mittwoch",_ie="Breite",gie="Ja",yie="unterschiedlich",vie="Jeder kann Objekt lesen",bie="Jeder kann Zustand lesen",wie="Jeder kann ein Objekt schreiben",xie="Jeder kann Zustand schreiben",Sie="Gruppe kann Objekt lesen",kie="Gruppe kann Status lesen",Cie="Gruppe kann Objekt schreiben",$ie="Gruppe kann Status schreiben",Eie="Besitzer kann Objekt lesen",Tie="Besitzer kann Zustand lesen",Oie="Besitzer kann Objekt schreiben",Die="Besitzer kann Zustand schreiben",Mie="Tasten",Nie="Geändert von",Pie="Schließen",Rie="Booleschen Zustand erstellen",Aie="Kanal erstellen",Iie="Gerät erstellen",jie="Nummern-Zustand erstellen",Lie="Zustand erstellen",Fie="String-Zustand erstellen",zie="T.",Bie="Fr",Wie="Mo",Uie="Sa",Hie="So",qie="Do",Vie="Di",Xie="Mi",Gie="Expertenmodus",Jie="Alle Dateien",Yie="Audio",Kie="Code/JSON",Zie="Bilder",Qie="Text",ece="Video",tce="Einstellungen",rce="ohne",nce="Funktion",oce="ID",ace="Name",sce="Rolle",ice="Raum",cce="Typ",lce="Ungültige Einstellungen",uce="Letzte Änderung",dce="örtlich",pce="Apr",fce="Aug",hce="Dez",mce="Feb",_ce="Jan",gce="Jul",yce="Jun",vce="Mai",bce="Mär",wce="Nov",xce="Okt",Sce="Sep",kce="Apr",Cce="Aug",$ce="Dez",Ece="Feb",Tce="Jan",Oce="Jul",Dce="Jun",Mce="Mai",Nce="Mär",Pce="Nov",Rce="Okt",Ace="Sep",Ice="kein",jce="Objekt geändert von",Lce="Objekt zuletzt geändert um",Fce="Einstellungen von anderen Adaptern %s",zce="Qualitätscode",Bce="wiederholen",Wce='Um einen Ordner auszuwählen, halten Sie einfach die Taste "Shift" gedrückt, indem Sie auf den Ordner klicken.',Uce="Zustand geändert durch",Hce="Objekt geändert von",qce="Zeitstempel",Vce="Bestätigt",Xce="Kommentar",Gce="Statuswert kopieren",Jce="Benutzerdefinierte Einstellungen",Yce="Objekt löschen",Kce="Objekt bearbeiten",Zce="Statuswert bearbeiten",Qce="Von",ele="Zuletzt geändert",tle="Qualität",rle="Zeitstempel",nle="Benutzer",ole="Wert",ale="Wert",sle="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Minute ausgeführt!",ile="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Sekunde ausgeführt!",cle="CRON",lle="Datum",ule="Tage",dle="Tag",ple="Wochentage",fle="Jeden",hle="alle N Tage",mle="jeden x-ten Tag der Woche",_le="alle N Wochentage",gle="alle N Stunden",yle="alle N Minuten",vle="alle N Monate",ble="alle N Sekunden",wle="jeden Tag",xle="jeden Tag der Woche",Sle="jeden Tag der Woche",kle="jede Stunde",Cle="jede Minute",$le="jeden Monat",Ele="jede Sekunde",Tle="Von",Ole="Stunden",Dle="Intervall",Mle="Intervall zwischen",Nle="Ungültiger CRON",Ple="Minuten",Rle="Monate",Ale="Einmal",Ile="Zeitraum",jle="Sekunden",Lle="Einfach",Fle="Bestimmte Zeit",zle="bestimmte Tage",Ble="bestimmte(r) Tag(e) der Woche",Wle="bestimmten Wochentag",Ule="bestimmte Stunden",Hle="bestimmte Minuten",qle="bestimmte Monate",Vle="bestimmte Sekunden",Xle="Zeit",Gle="Bis",Jle="Wizard",Yle="alle",Kle="Astronomischer Tag",Zle="Astronomische Nacht",Qle="Morgendämmerung",eue="Abenddämmerung",tue="Goldene Stunde",rue="Goldene Stundenende",nue="Nadir",oue="Nautische Morgendämmerung",aue="Nautische Abenddämmerung",sue="Nacht",iue="Nachtende",cue="Sonnenmittag",lue="Sonnenaufgang",uue="Sonnenaufgangende",due="Sonnenuntergang",pue="Sonnenuntergangstart",fue="am",hue="um %s",mue="jeden Tag",_ue="jede Stunde",gue="jede Minute",yue="jeden Monat",vue="jeden %s Tag",bue="alle %s Stunden",wue="alle %s Minuten",xue="alle %s Monate",Sue="alle %s Wochen",kue="alle %s Jahre",Cue="jede Woche",$ue="jedes Jahr",Eue="von %s bis %s",Tue="noch nie",Oue="am %s von %s",Due="am %s und %s von",Mue="an jedem Datum von",Nue="%s",Pue="%s und %s",Rue="auf %s",Aue="auf %s und %s",Iue="an Wochenenden",jue="an Werktagen",Lue="wird nicht mehr ausgeführt, weil der Start in der Vergangenheit ist",Fue="auf %s",zue="von %s",Bue="Ausführen von bis",Wue="bis %s",Uue="jeden",Hue="Bestimmte Zeit",que="von",Vue="Von bis",Xue="Zeitintervall",Gue="umkehren",Jue="keiner",Yue="am",Kue="Zeitraum",Zue="Täglich",Que="Daten",ede="Tag",tde="Jeden",rde="Jeden Tag",nde="Jeden Monat",ode="Jede Woche",ade="Jedes Jahr",sde="Stunden",ide="Minuten",cde="Monat",lde="Monatlich",ude="Einmal",dde="Bestimmte Monate",pde="Woche",fde="Wochentage",hde="Wochenende",mde="Wöchentlich",_de="Arbeitstage",gde="Jahr",yde="Jährlich",vde="Bestimmte Zeit",bde="Zeit",wde="zu",xde="Gültigkeit",Sde="von",kde="bis",Cde="Ganzer Tag",$de="jeden Monat",Ede={"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_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:Ese,"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:Tse,"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:Ose,"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:Dse,ra_Clear:Mse,"ra_Clear filter":"Filter löschen","ra_Clear icon":"Symbol löschen","ra_Clone current row":"Aktuelle Zeile klonen",ra_Close:Nse,"ra_Collapse all nodes":"Alle Knoten zuklappen","ra_Collapse one step node":"Eine Ebene zuklappen",ra_Commercial:Pse,ra_Configure:Rse,"ra_Configure visible columns":"Spalten Konfigurieren","ra_Confirm deletion of %s":"Das Löschen von %s bestätigen",ra_Connected:Ase,ra_Copied:Ise,"ra_Copied %s":'"%s" kopiert',"ra_Copy content":"Inhalte kopieren",ra_Create:jse,"ra_Create alias":"Alias erstellen","ra_Create folder":"Ordner erstellen","ra_Create new folder in %s":'Neuen Ordner in "%s" erstellen',ra_Crop:Lse,"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:Fse,ra_Delete:zse,"ra_Delete (no confirm for 5 mins)":"Löschen (keine Bestätigung für 5 Minuten)","ra_Delete current row":"Aktuelle Zeile löschen","ra_Deselect all":"Alles abwählen","ra_Device → Channel → State":"Gerät → Kanal → Zustand",ra_Discard:Bse,ra_Disconnected:Wse,"ra_Do not export values of states":"Keine Zustandswerte exportieren","ra_Do not use let's encrypt":"Let's encrypt nicht verwenden","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 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_Error:Use,"ra_Expand all nodes":"Alle Knoten aufklappen","ra_Expand one step node":"Eine Ebene aufklappen","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:Hse,"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:qse,"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_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 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:Vse,"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_Longitude:Xse,'ra_May not trigger "updateLicenses"':"Löst möglicherweise nicht „updateLicenses“ aus",ra_Message:Gse,ra_Monday:Jse,"ra_Move down":"Nach unten","ra_Move up":"Nach oben",ra_Name:Yse,"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 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_Objects:Kse,ra_Ok:Zse,"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 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_Private certificate":"Privates Zertifikat",ra_Product:Qse,"ra_Public certificate":"Öffentliches Zertifikat","ra_Quality code":"Qualität","ra_Refresh tree":"Baum aktualisieren","ra_Reload files":"Dateien neu laden",ra_Repeat:eie,ra_Replace:tie,"ra_Request timed out":"Zeitüberschreitung der Anforderung","ra_Restrict to folder":"Auf Ordner beschränken",ra_Root:rie,ra_Saturday:nie,ra_Save:oie,"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:aie,"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_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:sie,"ra_Suitable license not found in license manager":"Passende Lizenz im Lizenzmanager nicht gefunden",ra_Sunday:iie,"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:cie,ra_Timestamp:lie,"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:uie,"ra_Unknown error":"Unbekannter Fehler","ra_Unknown error!":"Unbekannter Fehler!",ra_Update:die,"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:pie,ra_Value:fie,ra_Version:hie,"ra_View file":"Datei ansehen","ra_View: %s":"Anschauen: %s",ra_Wednesday:mie,ra_Width:_ie,ra_Yes:gie,"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___different__:yie,ra_aclEveryone_read_object:vie,ra_aclEveryone_read_state:bie,ra_aclEveryone_write_object:wie,ra_aclEveryone_write_state:xie,ra_aclGroup_read_object:Sie,ra_aclGroup_read_state:kie,ra_aclGroup_write_object:Cie,ra_aclGroup_write_state:$ie,ra_aclOwner_read_object:Eie,ra_aclOwner_read_state:Tie,ra_aclOwner_write_object:Oie,ra_aclOwner_write_state:Die,ra_buttons:Mie,ra_changedFrom:Nie,ra_close:Pie,ra_create_boolean_state:Rie,ra_create_channel:Aie,ra_create_device:Iie,ra_create_number_state:jie,ra_create_state:Lie,ra_create_string_state:Fie,ra_daysShortText:zie,ra_dow_Fr:Bie,ra_dow_Mo:Wie,ra_dow_Sa:Uie,ra_dow_Su:Hie,ra_dow_Th:qie,ra_dow_Tu:Vie,ra_dow_We:Xie,ra_expertMode:Gie,ra_fileType_all:Jie,ra_fileType_audio:Yie,ra_fileType_code:Kie,ra_fileType_images:Zie,ra_fileType_txt:Qie,ra_fileType_video:ece,"ra_fileType_video,":"Video",ra_filter_customs:tce,ra_filter_customs_without:rce,ra_filter_func:nce,ra_filter_id:oce,ra_filter_name:ace,ra_filter_role:sce,ra_filter_room:ice,ra_filter_type:cce,"ra_import data from %s file":"Daten aus %s-Datei importieren",ra_invalidConfig:lce,ra_lastChange:uce,ra_locally:dce,ra_month_Apr:pce,ra_month_Aug:fce,ra_month_Dec:hce,ra_month_Feb:mce,ra_month_Jan:_ce,ra_month_Jul:gce,ra_month_Jun:yce,ra_month_Mai:vce,ra_month_Mar:bce,ra_month_Nov:wce,ra_month_Oct:xce,ra_month_Sep:Sce,ra_months_Apr:kce,ra_months_Aug:Cce,ra_months_Dec:$ce,ra_months_Feb:Ece,ra_months_Jan:Tce,ra_months_Jul:Oce,ra_months_Jun:Dce,ra_months_Mai:Mce,ra_months_Mar:Nce,ra_months_Nov:Pce,ra_months_Oct:Rce,ra_months_Sep:Ace,ra_none:Ice,ra_object_changed_by:jce,ra_object_changed_by_user:Lce,ra_otherConfig:Fce,ra_qualityCode:zce,ra_repeat:Bce,ra_select_folder_hint:Wce,ra_state_changed_by:Uce,ra_state_changed_from:Hce,ra_timestamp:qce,ra_tooltip_ack:Vce,ra_tooltip_comment:Xce,ra_tooltip_copyState:Gce,ra_tooltip_customConfig:Jce,ra_tooltip_deleteObject:Yce,ra_tooltip_editObject:Kce,ra_tooltip_editState:Zce,ra_tooltip_from:Qce,ra_tooltip_lc:ele,ra_tooltip_quality:tle,ra_tooltip_ts:rle,ra_tooltip_user:nle,ra_tooltip_value:ole,"ra_use seconds":"Sekunden benutzen",ra_val:ale,"ra_via internet":"übers Internet",ra_warning_every_minute:sle,ra_warning_every_second:ile,sc_cron:cle,sc_date:lle,sc_dates:ule,sc_dow:dle,sc_dows:ple,sc_every:fle,sc_everyN_dates:hle,sc_everyN_dow:mle,sc_everyN_dows:_le,sc_everyN_hours:gle,sc_everyN_minutes:yle,sc_everyN_months:vle,sc_everyN_seconds:ble,sc_every_dates:wle,sc_every_dow:xle,sc_every_dows:Sle,sc_every_hours:kle,sc_every_minutes:Cle,sc_every_months:$le,sc_every_seconds:Ele,sc_from:Tle,sc_hours:Ole,sc_interval:Dle,sc_intervalBetween:Mle,sc_invalid_cron:Nle,sc_minutes:Ple,sc_months:Rle,sc_once:Ale,sc_period:Ile,sc_seconds:jle,sc_simple:Lle,sc_specific:Fle,sc_specific_dates:zle,sc_specific_dow:Ble,sc_specific_dows:Wle,sc_specific_hours:Ule,sc_specific_minutes:Hle,sc_specific_months:qle,sc_specific_seconds:Vle,sc_time:Xle,sc_to:Gle,sc_wizard:Jle,sch_all:Yle,sch_astroDay:Kle,sch_astroNight:Zle,sch_astro_dawn:Qle,sch_astro_dusk:eue,sch_astro_goldenHour:tue,sch_astro_goldenHourEnd:rue,sch_astro_nadir:nue,sch_astro_nauticalDawn:oue,sch_astro_nauticalDusk:aue,sch_astro_night:sue,sch_astro_nightEnd:iue,sch_astro_solarNoon:cue,sch_astro_sunrise:lue,sch_astro_sunriseEnd:uue,sch_astro_sunset:due,sch_astro_sunsetStart:pue,sch_at:fue,sch_desc_atTime:hue,sch_desc_everyDay:mue,sch_desc_everyHour:_ue,sch_desc_everyMinute:gue,sch_desc_everyMonth:yue,sch_desc_everyNDay:vue,sch_desc_everyNHours:bue,sch_desc_everyNMinutes:wue,sch_desc_everyNMonths:xue,sch_desc_everyNWeeks:Sue,sch_desc_everyNYears:kue,sch_desc_everyWeek:Cue,sch_desc_everyYear:$ue,sch_desc_intervalFromTo:Eue,sch_desc_never:Tue,sch_desc_onDate:Oue,sch_desc_onDates:Due,sch_desc_onEveryDate:Mue,sch_desc_onMonth:Nue,sch_desc_onMonths:Pue,sch_desc_onWeekday:Rue,sch_desc_onWeekdays:Aue,sch_desc_onWeekends:Iue,sch_desc_onWorkdays:jue,sch_desc_onceInPast:Lue,sch_desc_once_on:Fue,sch_desc_validFrom:zue,sch_desc_validFromTo:Bue,sch_desc_validTo:Wue,sch_every:Uue,sch_exactTime:Hue,sch_from:que,sch_fromTo:Vue,sch_intervalTime:Xue,sch_invert:Gue,sch_no_one:Jue,sch_on:Yue,sch_period:Kue,sch_periodDaily:Zue,sch_periodDates:Que,sch_periodDay:ede,sch_periodEvery:tde,sch_periodEveryDay:rde,sch_periodEveryMonth:nde,sch_periodEveryWeek:ode,sch_periodEveryYear:ade,sch_periodHours:sde,sch_periodMinutes:ide,sch_periodMonth:cde,sch_periodMonthly:lde,sch_periodOnce:ude,sch_periodSpecificMonths:dde,sch_periodWeek:pde,sch_periodWeekdays:fde,sch_periodWeekend:hde,sch_periodWeekly:mde,sch_periodWorkdays:_de,sch_periodYear:gde,sch_periodYearly:yde,sch_specificTime:vde,sch_time:bde,sch_to:wde,sch_valid:xde,sch_validFrom:Sde,sch_validTo:kde,sch_wholeDay:Cde,sch_yearEveryMonth:$de},Tde="Добавить",Ode="Отмена",Dde="Категории",Mde="Проверено",Nde="Удалить",Pde="Закрыть",Rde="Коммерческая",Ade="Настроить",Ide="Соединение установлено",jde="скопировано",Lde="Создать",Fde="Обрезать",zde="Delete",Bde="Удалить",Wde="Отказаться",Ude="Отключено",Hde="Ошибка",qde="Фильтр",Vde="Пятница",Xde="Широта",Gde="Долгота",Jde="Сообщение",Yde="Понедельник",Kde="Имя",Zde="Объекты",Qde="Ok",epe="Продукт",tpe="Повторение",rpe="Заменять",npe="Начало",ope="Суббота",ape="Сохранить",spe="выбранный",ipe="Состояния",cpe="Воскресенье",lpe="Четверг",upe="Времени",dpe="Вторник",ppe="Обновить",fpe="Годен до",hpe="Значение",mpe="Версия",_pe="Среда",gpe="Ширина",ype="Да",vpe="разное",bpe="Каждый может читать объект",wpe="Каждый может читать состояние",xpe="Каждый может написать объект",Spe="Каждый может написать состояние",kpe="Группа может читать объект",Cpe="Группа может читать состояние",$pe="Группа может писать объект",Epe="Группа может записывать состояние",Tpe="Владелец может читать объект",Ope="Владелец может читать состояние",Dpe="Владелец может писать объект",Mpe="Владелец может писать состояние",Npe="Кнопки",Ppe="Изменено с",Rpe="Закрыть",Ape="Создать логическое состояние",Ipe="Создать канал",jpe="Создать устройство",Lpe="Создать состояние номера",Fpe="Создать состояние",zpe="Создать состояние строки",Bpe="д.",Wpe="Пт",Upe="Пн",Hpe="Сб",qpe="Вс",Vpe="Чт",Xpe="Вт",Gpe="Ср",Jpe="Экспертный режим",Ype="Все файлы",Kpe="Аудио",Zpe="Код/JSON",Qpe="Картинки",efe="Текст",tfe="видео",rfe="настройки",nfe="без",ofe="функция",afe="ID",sfe="Имя",ife="роль",cfe="комната",lfe="Тип",ufe="Неверные настройки",dfe="Последнее изменение",pfe="локально",ffe="Апр",hfe="Авг",mfe="Дек",_fe="Фев",gfe="Янв",yfe="Июл",vfe="Июн",bfe="Май",wfe="Мрт",xfe="Ноя",Sfe="Окт",kfe="Сен",Cfe="Апр",$fe="Авг",Efe="Дек",Tfe="Фев",Ofe="Янв",Dfe="Июнь",Mfe="Июль",Nfe="Май",Pfe="Март",Rfe="Ноя",Afe="Окт",Ife="Сен",jfe="ничего",Lfe="Объект изменен",Ffe="Последний раз объект изменен в",zfe="Настройки из другого адаптера %s",Bfe="Код качества",Wfe="повтор",Ufe="Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.",Hfe="Состояние изменено",qfe="Объект изменен с",Vfe="Отметка времени",Xfe="Подтверждено",Gfe="Комментарий",Jfe="Скопируйте значение состояния",Yfe="Пользовательские настройки",Kfe="Удалить объект",Zfe="Редактировать объект",Qfe="Изменить значение состояния",ehe="От",the="Последнее изменение",rhe="Качество",nhe="Отметка времени",ohe="пользователь",ahe="Значение",she="Значение",ihe="Внимание: задание CRON будет запускаться каждую минуту в течение указанного периода!",che="Внимание: задание CRON будет выполняться каждую секунду в течение указанного периода!",lhe="CRON",uhe="Дата",dhe="Даты",phe="День",fhe="День недели",hhe="каждый(ую/ые)",mhe="каждый N день",_he="каждый N-й день недели",ghe="каждый N день недели",yhe="каждые N часов",vhe="каждые N минут",bhe="каждые N месяцев",whe="каждые N секунд",xhe="каждый день",She="Каждый день недели",khe="каждый день недели",Che="каждый час",$he="каждую минуту",Ehe="каждый месяц",The="каждую секунду",Ohe="От",Dhe="часы",Mhe="Интервал",Nhe="Интервал между",Phe="Неверный CRON",Rhe="минуты",Ahe="Месяцы",Ihe="один раз",jhe="Период",Lhe="секунды",Fhe="Просто",zhe="Конкретное время",Bhe="конкретные даты",Whe="конкретный день(а) недели",Uhe="конкретный день недели",Hhe="конкретные часы",qhe="конкретные минуты",Vhe="конкретные месяцы",Xhe="конкретные секунды",Ghe="Время",Jhe="До",Yhe="Форма",Khe="все",Zhe="днём",Qhe="ночью",eme="Рассвет",tme="Сумерки",rme="Золотой час",nme="Конец золотого часа",ome="Надир",ame="Морской рассвет",sme="Морские сумерки",ime="Ночь",cme="Конец ночи",lme="Солнечный полдень",ume="Восход",dme="Восход солнца",pme="Заход солнца",fme="Начало заката",hme="дата",mme="в %s",_me="каждый день",gme="каждый час",yme="каждую минуту",vme="каждый месяц",bme="каждый %s день",wme="каждый %s часов",xme="каждые %s минут",Sme="каждые %s месяцев",kme="каждые %s недель",Cme="каждые %s лет",$me="каждую неделю",Eme="каждый год",Tme="от %s до %s",Ome="никогда",Dme="%s %s",Mme="%s и %s",Nme="в каждый день",Pme="%s",Rme="%s и %s",Ame="%s",Ime="%s и %s",jme="на выходных",Lme="в рабочие дни",Fme="не будет больше выполняться, потому что начало в прошлом",zme="%s",Bme="%s",Wme="Выполнить с",Ume="%s",Hme="каждый",qme="Конкретное время",Vme="от",Xme="От и до",Gme="Интервал времени",Jme="инвертировать",Yme="никакой",Kme="на",Zme="период",Qme="Ежедневно",e_e="Даты",t_e="День",r_e="каждый",n_e="Каждый день",o_e="Каждый месяц",a_e="Каждую неделю",s_e="Каждый год",i_e="часов",c_e="минут",l_e="месяц",u_e="ежемесячно",d_e="однажды",p_e="Конкретные месяцы",f_e="Неделю",h_e="Будние дни",m_e="выходные",__e="еженедельно",g_e="Рабочие дни",y_e="Год",v_e="каждый год",b_e="Конкретное время",w_e="Время",x_e="в",S_e="действительный",k_e="от",C_e="в",$_e="Весь день",E_e="каждый месяц",T_e={"ra_%s links from aliases":"%s ссылок из псевдонимов","ra_%s object(s) processed":"Объектов обработано: %s","ra_%s was imported":"%s был импортирован","ra_Accept license":"Принять лицензию","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:Tde,"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:Ode,"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:Dde,"ra_Chained certificate":"Chained сертификат","ra_Change color theme":"Изменить цветовую тему","ra_Changed from":"Изменено","ra_Channel → State":"Канал → Состояние","ra_Check license":"Проверить лицензию",ra_Checked:Mde,ra_Clear:Nde,"ra_Clear filter":"Очистить фильтр","ra_Clear icon":"Очистить значок","ra_Clone current row":"Клонировать текущую строку",ra_Close:Pde,"ra_Collapse all nodes":"Свернуть все узлы","ra_Collapse one step node":"Свернуть один уровень",ra_Commercial:Rde,ra_Configure:Ade,"ra_Configure visible columns":"Настроить видимые столбцы","ra_Confirm deletion of %s":"Подтвердите удаление %s",ra_Connected:Ide,ra_Copied:jde,"ra_Copied %s":'Скопировано "%s"',"ra_Copy content":"Копировать содержимое",ra_Create:Lde,"ra_Create alias":"Создать псевдоним","ra_Create folder":"Создать папку","ra_Create new folder in %s":"Создать новую папку в %s",ra_Crop:Fde,"ra_Define CRON...":"Определите CRON...","ra_Define functions":"Задать функции","ra_Define rooms":"Задать комнаты","ra_Define schedule":"Задать расписание","ra_Define schedule...":"Определить расписание ...",ra_Del:zde,ra_Delete:Bde,"ra_Delete (no confirm for 5 mins)":"Удалить (без подтверждения в течение 5 минут)","ra_Delete current row":"Удалить текущую строку","ra_Deselect all":"Убрать выбор везде","ra_Device → Channel → State":"Устройство → Канал → Состояние",ra_Discard:Wde,ra_Disconnected:Ude,"ra_Do not export values of states":"Не экспортировать значения состояний","ra_Do not use let's encrypt":"Не использовать Let’s Encrypt","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 function":"Изменить функцию","ra_Edit object field":"Поле редактирования объекта","ra_Edit role":"Изменить роль","ra_Edit room":"Редактировать комнату","ra_Edit value":"Изменить значение",ra_Error:Hde,"ra_Expand all nodes":"Развернуть все узлы","ra_Expand one step node":"Открыть один уровень","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:qde,"ra_Filter files":"Фильтровать файлы","ra_Folder name":"Имя папки","ra_Folder → Channel → State":"Папка → Канал → Состояние","ra_Folder → Device → Channel → State":"Папка → Устройство → Канал → Состояние","ra_Folder → State":"Папка → Состояние","ra_Folders always first":"Папки всегда на первом месте",ra_Friday:Vde,"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_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 answer from server":"Неверный ответ от сервера","ra_Invalid parent folder!":"Неверная родительская папка!","ra_Invalid structure":"Неверная структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Последнее изменение",ra_Latitude:Xde,"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_Longitude:Gde,'ra_May not trigger "updateLicenses"':"Не может запускать «updateLicenses»",ra_Message:Jde,ra_Monday:Yde,"ra_Move down":"Вниз","ra_Move up":"Вверх",ra_Name:Kde,"ra_No data found in file":"Данные в файле не найдены","ra_No one license found in license manager":"В менеджере лицензий не найдена ни одна лицензия","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_Objects:Zde,ra_Ok:Qde,"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 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_Private certificate":"Частный сертификат",ra_Product:epe,"ra_Public certificate":"Публичный сертификат","ra_Quality code":"Валидность","ra_Refresh tree":"Обновить дерево","ra_Reload files":"Обновить",ra_Repeat:tpe,ra_Replace:rpe,"ra_Request timed out":"Истекло время запроса","ra_Restrict to folder":"Ограничить папкой",ra_Root:npe,ra_Saturday:ope,ra_Save:ape,"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:spe,"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_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:ipe,"ra_Suitable license not found in license manager":"Подходящая лицензия не найдена в менеджере лицензий",ra_Sunday:cpe,"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:lpe,ra_Timestamp:upe,"ra_Toggle expert mode":"Переключить экспертный режим","ra_Toggle the states view":"Переключить режим просмотра состояний","ra_Toggle view mode":"Переключить режим просмотра","ra_Too big":"Слишком большое","ra_Too small":"Слишком маленькое","ra_Transparent dialog":"Прозрачный диалог",ra_Tuesday:dpe,"ra_Unknown error":"Неизвестная ошибка","ra_Unknown error!":"Неизвестная ошибка!",ra_Update:ppe,"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:fpe,ra_Value:hpe,ra_Version:mpe,"ra_View file":"Посмотреть файл","ra_View: %s":"Просмотр: %s",ra_Wednesday:_pe,ra_Width:gpe,ra_Yes:ype,"ra_You can export all objects or just the selected branch.":"Вы можете экспортировать все объекты или только выбранную ветвь.","ra_You can filter entries by entering here some text":"Вы можете отфильтровать записи, введя здесь текст",ra___different__:vpe,ra_aclEveryone_read_object:bpe,ra_aclEveryone_read_state:wpe,ra_aclEveryone_write_object:xpe,ra_aclEveryone_write_state:Spe,ra_aclGroup_read_object:kpe,ra_aclGroup_read_state:Cpe,ra_aclGroup_write_object:$pe,ra_aclGroup_write_state:Epe,ra_aclOwner_read_object:Tpe,ra_aclOwner_read_state:Ope,ra_aclOwner_write_object:Dpe,ra_aclOwner_write_state:Mpe,ra_buttons:Npe,ra_changedFrom:Ppe,ra_close:Rpe,ra_create_boolean_state:Ape,ra_create_channel:Ipe,ra_create_device:jpe,ra_create_number_state:Lpe,ra_create_state:Fpe,ra_create_string_state:zpe,ra_daysShortText:Bpe,ra_dow_Fr:Wpe,ra_dow_Mo:Upe,ra_dow_Sa:Hpe,ra_dow_Su:qpe,ra_dow_Th:Vpe,ra_dow_Tu:Xpe,ra_dow_We:Gpe,ra_expertMode:Jpe,ra_fileType_all:Ype,ra_fileType_audio:Kpe,ra_fileType_code:Zpe,ra_fileType_images:Qpe,ra_fileType_txt:efe,ra_fileType_video:tfe,"ra_fileType_video,":"видео",ra_filter_customs:rfe,ra_filter_customs_without:nfe,ra_filter_func:ofe,ra_filter_id:afe,ra_filter_name:sfe,ra_filter_role:ife,ra_filter_room:cfe,ra_filter_type:lfe,"ra_import data from %s file":"Импортировать данные из файла %s",ra_invalidConfig:ufe,ra_lastChange:dfe,ra_locally:pfe,ra_month_Apr:ffe,ra_month_Aug:hfe,ra_month_Dec:mfe,ra_month_Feb:_fe,ra_month_Jan:gfe,ra_month_Jul:yfe,ra_month_Jun:vfe,ra_month_Mai:bfe,ra_month_Mar:wfe,ra_month_Nov:xfe,ra_month_Oct:Sfe,ra_month_Sep:kfe,ra_months_Apr:Cfe,ra_months_Aug:$fe,ra_months_Dec:Efe,ra_months_Feb:Tfe,ra_months_Jan:Ofe,ra_months_Jul:Dfe,ra_months_Jun:Mfe,ra_months_Mai:Nfe,ra_months_Mar:Pfe,ra_months_Nov:Rfe,ra_months_Oct:Afe,ra_months_Sep:Ife,ra_none:jfe,ra_object_changed_by:Lfe,ra_object_changed_by_user:Ffe,ra_otherConfig:zfe,ra_qualityCode:Bfe,ra_repeat:Wfe,ra_select_folder_hint:Ufe,ra_state_changed_by:Hfe,ra_state_changed_from:qfe,ra_timestamp:Vfe,ra_tooltip_ack:Xfe,ra_tooltip_comment:Gfe,ra_tooltip_copyState:Jfe,ra_tooltip_customConfig:Yfe,ra_tooltip_deleteObject:Kfe,ra_tooltip_editObject:Zfe,ra_tooltip_editState:Qfe,ra_tooltip_from:ehe,ra_tooltip_lc:the,ra_tooltip_quality:rhe,ra_tooltip_ts:nhe,ra_tooltip_user:ohe,ra_tooltip_value:ahe,"ra_use seconds":"секунды",ra_val:she,"ra_via internet":"через интернет",ra_warning_every_minute:ihe,ra_warning_every_second:che,sc_cron:lhe,sc_date:uhe,sc_dates:dhe,sc_dow:phe,sc_dows:fhe,sc_every:hhe,sc_everyN_dates:mhe,sc_everyN_dow:_he,sc_everyN_dows:ghe,sc_everyN_hours:yhe,sc_everyN_minutes:vhe,sc_everyN_months:bhe,sc_everyN_seconds:whe,sc_every_dates:xhe,sc_every_dow:She,sc_every_dows:khe,sc_every_hours:Che,sc_every_minutes:$he,sc_every_months:Ehe,sc_every_seconds:The,sc_from:Ohe,sc_hours:Dhe,sc_interval:Mhe,sc_intervalBetween:Nhe,sc_invalid_cron:Phe,sc_minutes:Rhe,sc_months:Ahe,sc_once:Ihe,sc_period:jhe,sc_seconds:Lhe,sc_simple:Fhe,sc_specific:zhe,sc_specific_dates:Bhe,sc_specific_dow:Whe,sc_specific_dows:Uhe,sc_specific_hours:Hhe,sc_specific_minutes:qhe,sc_specific_months:Vhe,sc_specific_seconds:Xhe,sc_time:Ghe,sc_to:Jhe,sc_wizard:Yhe,sch_all:Khe,sch_astroDay:Zhe,sch_astroNight:Qhe,sch_astro_dawn:eme,sch_astro_dusk:tme,sch_astro_goldenHour:rme,sch_astro_goldenHourEnd:nme,sch_astro_nadir:ome,sch_astro_nauticalDawn:ame,sch_astro_nauticalDusk:sme,sch_astro_night:ime,sch_astro_nightEnd:cme,sch_astro_solarNoon:lme,sch_astro_sunrise:ume,sch_astro_sunriseEnd:dme,sch_astro_sunset:pme,sch_astro_sunsetStart:fme,sch_at:hme,sch_desc_atTime:mme,sch_desc_everyDay:_me,sch_desc_everyHour:gme,sch_desc_everyMinute:yme,sch_desc_everyMonth:vme,sch_desc_everyNDay:bme,sch_desc_everyNHours:wme,sch_desc_everyNMinutes:xme,sch_desc_everyNMonths:Sme,sch_desc_everyNWeeks:kme,sch_desc_everyNYears:Cme,sch_desc_everyWeek:$me,sch_desc_everyYear:Eme,sch_desc_intervalFromTo:Tme,sch_desc_never:Ome,sch_desc_onDate:Dme,sch_desc_onDates:Mme,sch_desc_onEveryDate:Nme,sch_desc_onMonth:Pme,sch_desc_onMonths:Rme,sch_desc_onWeekday:Ame,sch_desc_onWeekdays:Ime,sch_desc_onWeekends:jme,sch_desc_onWorkdays:Lme,sch_desc_onceInPast:Fme,sch_desc_once_on:zme,sch_desc_validFrom:Bme,sch_desc_validFromTo:Wme,sch_desc_validTo:Ume,sch_every:Hme,sch_exactTime:qme,sch_from:Vme,sch_fromTo:Xme,sch_intervalTime:Gme,sch_invert:Jme,sch_no_one:Yme,sch_on:Kme,sch_period:Zme,sch_periodDaily:Qme,sch_periodDates:e_e,sch_periodDay:t_e,sch_periodEvery:r_e,sch_periodEveryDay:n_e,sch_periodEveryMonth:o_e,sch_periodEveryWeek:a_e,sch_periodEveryYear:s_e,sch_periodHours:i_e,sch_periodMinutes:c_e,sch_periodMonth:l_e,sch_periodMonthly:u_e,sch_periodOnce:d_e,sch_periodSpecificMonths:p_e,sch_periodWeek:f_e,sch_periodWeekdays:h_e,sch_periodWeekend:m_e,sch_periodWeekly:__e,sch_periodWorkdays:g_e,sch_periodYear:y_e,sch_periodYearly:v_e,sch_specificTime:b_e,sch_time:w_e,sch_to:x_e,sch_valid:S_e,sch_validFrom:k_e,sch_validTo:C_e,sch_wholeDay:$_e,sch_yearEveryMonth:E_e},O_e="Acrescentar",D_e="Cancelar",M_e="Categorias",N_e="Verificado",P_e="Excluir",R_e="Perto",A_e="Comercial",I_e="Configurar",j_e="Conectado",L_e="Copiado",F_e="Crio",z_e="Colheita",B_e="Delete",W_e="Excluir",U_e="Descartar",H_e="Desconectado",q_e="Erro",V_e="Filtro",X_e="Sexta-feira",G_e="Latitude",J_e="Longitude",Y_e="mensagem",K_e="Segunda-feira",Z_e="Nome",Q_e="Objetos",ege="Está bem",tge="produtos",rge="Repita",nge="Substituir",oge="Raiz",age="Sábado",sge="Salve ",ige="Selecionado",cge="Estados",lge="Domingo",uge="Quinta-feira",dge="Timestamp",pge="Terça-feira",fge="Atualizar",hge="Válida até",mge="Valor",_ge="Versão",gge="Quarta-feira",yge="Largura",vge="Sim",bge="diferente",wge="Todos podem ler objetos",xge="Todos podem ler o estado",Sge="Todos podem escrever objetos",kge="Todos podem escrever o estado",Cge="O grupo pode ler o objeto",$ge="O grupo pode ler o estado",Ege="O grupo pode escrever o objeto",Tge="O grupo pode escrever o estado",Oge="O proprietário pode ler o objeto",Dge="O proprietário pode ler o estado",Mge="O proprietário pode escrever o objeto",Nge="O proprietário pode escrever o estado",Pge="Botões",Rge="Mudou de",Age="fechar",Ige="Criar estado booleano",jge="Criar canal",Lge="Criar dispositivo",Fge="Criar estado numérico",zge="Criar estado",Bge="Criar estado de string",Wge="d.",Uge="Fr",Hge="Mo",qge="Sa",Vge="Su",Xge="º",Gge="Tu",Jge="Nós",Yge="Modo especialista",Kge="Todos os arquivos",Zge="áudio",Qge="Código/JSON",eye="Imagens",tye="Texto",rye="Vídeo",nye="Configurações",oye="sem",aye="Função",sye="ID",iye="Nome",cye="Papel (Função)",lye="Quarto",uye="Tipo",dye="Configurações inválidas",pye="Última mudança",fye="localmente",hye="abril",mye="agosto",_ye="dezembro",gye="fevereiro",yye="janeiro",vye="julho",bye="junho",wye="Mai",xye="março",Sye="novembro",kye="outubro",Cye="setembro",$ye="abril",Eye="agosto",Tye="dezembro",Oye="fevereiro",Dye="janeiro",Mye="julho",Nye="junho",Pye="Mai",Rye="março",Aye="novembro",Iye="outubro",jye="setembro",Lye="Nenhum",Fye="Objeto alterado por",zye="Objeto alterado pela última vez em",Bye="Configurações de outro adaptador %s",Wye="Código de qualidade",Uye="repetir",Hye='Para selecionar a pasta, basta segurar a tecla "shift" clicando na pasta.',qye="Estado alterado por",Vye="Objeto alterado de",Xye="Timestamp",Gye="Confirmado",Jye="Comente",Yye="Copie o valor do estado",Kye="Opções customizadas",Zye="Excluir objeto",Qye="Editar objeto",eve="Edite o valor do estado",tve="De",rve="Última alteração",nve="Qualidade",ove="Timestamp",ave="Usuário",sve="Valor",ive="Valor",cve="Aviso: O trabalho CRON será executado a cada minuto durante o período especificado!",lve="Aviso: O trabalho CRON será executado a cada segundo durante o período especificado!",uve="CRON",dve="Data",pve="Dias",fve="Dia",hve="Dia da semana",mve="todos",_ve="a cada N dias",gve="todo enésimo dia da semana",yve="todos os N dias da semana",vve="a cada N horas",bve="a cada N minutos",wve="a cada N meses",xve="a cada N segundos",Sve="todo dia",kve="todos os dias da semana",Cve="todos os dias da semana",$ve="toda hora",Eve="todo minuto",Tve="todo mês",Ove="todo segundo",Dve="de",Mve="horas",Nve="intervalo",Pve="intervalo entre",Rve="CRON inválido",Ave="minutos",Ive="meses",jve="uma vez",Lve="período",Fve="segundos",zve="simples",Bve="tempo específico",Wve="datas específicas",Uve="dia(s) específico(s) da semana",Hve="dia específico de semanas",qve="horas específicas",Vve="minutos específicos",Xve="meses específicos",Gve="segundos específicos",Jve="tempo",Yve="para",Kve="assistente",Zve="tudo",Qve="dia astral",e0e="noite astral",t0e="amanhecer",r0e="anoitecer",n0e="hora dourada",o0e="Fim da hora dourada",a0e="nadir",s0e="Amanhecer náutico",i0e="Anoitecer náutico",c0e="noite",l0e="fim da noite",u0e="meio-dia solar",d0e="nascer do sol",p0e="fim do nascer do sol",f0e="pôr do sol",h0e="início do pôr do sol",m0e="às",_0e="em %s",g0e="todo dia",y0e="toda hora",v0e="todo minuto",b0e="todo mês",w0e="a cada %s dias",x0e="a cada %s horas",S0e="a cada %s minutos",k0e="a cada %s meses",C0e="a cada %s semanas",$0e="a cada %s anos",E0e="toda semana",T0e="todo ano",O0e="de %s para %s",D0e="nunca",M0e="em %s de %s",N0e="em %s e %s de",P0e="em toda data de",R0e="%s",A0e="%s e %s",I0e="em %s",j0e="em %s e %s",L0e="nos fins de semana",F0e="em dias úteis",z0e="não será mais executado, porque o começo está no passado",B0e="em %s",W0e="de %s",U0e="Executar de até",H0e="até %s",q0e="cada",V0e="tempo específico",X0e="de",G0e="de a´t",J0e="tempo de intervalo",Y0e="invertido",K0e="nenhum",Z0e="em",Q0e="período",ebe="diariamente",tbe="datas",rbe="dia",nbe="todos",obe="todo dia",abe="todo mês",sbe="toda semana",ibe="todo ano",cbe="horas",lbe="minutos",ube="mês",dbe="por mês",pbe="uma vez",fbe="meses específicos",hbe="semana",mbe="dias úteis",_be="final de semana",gbe="semanal",ybe="dias úteis",vbe="ano",bbe="anual",wbe="tempo específico",xbe="tempo",Sbe="para",kbe="válido",Cbe="de",$be="para",Ebe="dia inteiro",Tbe="todo mês",Obe={"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_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:O_e,"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:D_e,"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:M_e,"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:N_e,ra_Clear:P_e,"ra_Clear filter":"Filtro limpo","ra_Clear icon":"Ícone de limpeza","ra_Clone current row":"Clonar linha atual",ra_Close:R_e,"ra_Collapse all nodes":"Recolher todos os nós","ra_Collapse one step node":"Recolher um nível",ra_Commercial:A_e,ra_Configure:I_e,"ra_Configure visible columns":"Configurar colunas visíveis","ra_Confirm deletion of %s":"Confirme a exclusão de %s",ra_Connected:j_e,ra_Copied:L_e,"ra_Copied %s":'"%s" copiado',"ra_Copy content":"Copiar conteúdo",ra_Create:F_e,"ra_Create alias":"Criar alias","ra_Create folder":"Criar pasta","ra_Create new folder in %s":"Crie uma nova pasta em %s",ra_Crop:z_e,"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:B_e,ra_Delete:W_e,"ra_Delete (no confirm for 5 mins)":"Excluir (sem confirmação por 5 minutos)","ra_Delete current row":"Excluir linha atual","ra_Deselect all":"Desmarque todos","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:U_e,ra_Disconnected:H_e,"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_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 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_Error:q_e,"ra_Expand all nodes":"Expanda todos os nós","ra_Expand one step node":"Expanda um nível","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:V_e,"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:X_e,"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_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 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:G_e,"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_Longitude:J_e,'ra_May not trigger "updateLicenses"':'Pode não acionar "updateLicenses"',ra_Message:Y_e,ra_Monday:K_e,"ra_Move down":"Mover para baixo","ra_Move up":"Subir",ra_Name:Z_e,"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 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_Objects:Q_e,ra_Ok:ege,"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 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_Private certificate":"certificado privado",ra_Product:tge,"ra_Public certificate":"certificado público","ra_Quality code":"Qualidade","ra_Refresh tree":"Atualizar árvore","ra_Reload files":"Recarregar arquivos",ra_Repeat:rge,ra_Replace:nge,"ra_Request timed out":"Solicitação expirou","ra_Restrict to folder":"Restringir à pasta",ra_Root:oge,ra_Saturday:age,ra_Save:sge,"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:ige,"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_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:cge,"ra_Suitable license not found in license manager":"Licença adequada não encontrada no gerenciador de licenças",ra_Sunday:lge,"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:uge,ra_Timestamp:dge,"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:pge,"ra_Unknown error":"Erro desconhecido","ra_Unknown error!":"Erro desconhecido!",ra_Update:fge,"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:hge,ra_Value:mge,ra_Version:_ge,"ra_View file":"Visualizar arquivo","ra_View: %s":"Visualizar: %s",ra_Wednesday:gge,ra_Width:yge,ra_Yes:vge,"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___different__:bge,ra_aclEveryone_read_object:wge,ra_aclEveryone_read_state:xge,ra_aclEveryone_write_object:Sge,ra_aclEveryone_write_state:kge,ra_aclGroup_read_object:Cge,ra_aclGroup_read_state:$ge,ra_aclGroup_write_object:Ege,ra_aclGroup_write_state:Tge,ra_aclOwner_read_object:Oge,ra_aclOwner_read_state:Dge,ra_aclOwner_write_object:Mge,ra_aclOwner_write_state:Nge,ra_buttons:Pge,ra_changedFrom:Rge,ra_close:Age,ra_create_boolean_state:Ige,ra_create_channel:jge,ra_create_device:Lge,ra_create_number_state:Fge,ra_create_state:zge,ra_create_string_state:Bge,ra_daysShortText:Wge,ra_dow_Fr:Uge,ra_dow_Mo:Hge,ra_dow_Sa:qge,ra_dow_Su:Vge,ra_dow_Th:Xge,ra_dow_Tu:Gge,ra_dow_We:Jge,ra_expertMode:Yge,ra_fileType_all:Kge,ra_fileType_audio:Zge,ra_fileType_code:Qge,ra_fileType_images:eye,ra_fileType_txt:tye,ra_fileType_video:rye,"ra_fileType_video,":"Vídeo",ra_filter_customs:nye,ra_filter_customs_without:oye,ra_filter_func:aye,ra_filter_id:sye,ra_filter_name:iye,ra_filter_role:cye,ra_filter_room:lye,ra_filter_type:uye,"ra_import data from %s file":"Importar dados do arquivo %s",ra_invalidConfig:dye,ra_lastChange:pye,ra_locally:fye,ra_month_Apr:hye,ra_month_Aug:mye,ra_month_Dec:_ye,ra_month_Feb:gye,ra_month_Jan:yye,ra_month_Jul:vye,ra_month_Jun:bye,ra_month_Mai:wye,ra_month_Mar:xye,ra_month_Nov:Sye,ra_month_Oct:kye,ra_month_Sep:Cye,ra_months_Apr:$ye,ra_months_Aug:Eye,ra_months_Dec:Tye,ra_months_Feb:Oye,ra_months_Jan:Dye,ra_months_Jul:Mye,ra_months_Jun:Nye,ra_months_Mai:Pye,ra_months_Mar:Rye,ra_months_Nov:Aye,ra_months_Oct:Iye,ra_months_Sep:jye,ra_none:Lye,ra_object_changed_by:Fye,ra_object_changed_by_user:zye,ra_otherConfig:Bye,ra_qualityCode:Wye,ra_repeat:Uye,ra_select_folder_hint:Hye,ra_state_changed_by:qye,ra_state_changed_from:Vye,ra_timestamp:Xye,ra_tooltip_ack:Gye,ra_tooltip_comment:Jye,ra_tooltip_copyState:Yye,ra_tooltip_customConfig:Kye,ra_tooltip_deleteObject:Zye,ra_tooltip_editObject:Qye,ra_tooltip_editState:eve,ra_tooltip_from:tve,ra_tooltip_lc:rve,ra_tooltip_quality:nve,ra_tooltip_ts:ove,ra_tooltip_user:ave,ra_tooltip_value:sve,"ra_use seconds":"use segundos",ra_val:ive,"ra_via internet":"via internet",ra_warning_every_minute:cve,ra_warning_every_second:lve,sc_cron:uve,sc_date:dve,sc_dates:pve,sc_dow:fve,sc_dows:hve,sc_every:mve,sc_everyN_dates:_ve,sc_everyN_dow:gve,sc_everyN_dows:yve,sc_everyN_hours:vve,sc_everyN_minutes:bve,sc_everyN_months:wve,sc_everyN_seconds:xve,sc_every_dates:Sve,sc_every_dow:kve,sc_every_dows:Cve,sc_every_hours:$ve,sc_every_minutes:Eve,sc_every_months:Tve,sc_every_seconds:Ove,sc_from:Dve,sc_hours:Mve,sc_interval:Nve,sc_intervalBetween:Pve,sc_invalid_cron:Rve,sc_minutes:Ave,sc_months:Ive,sc_once:jve,sc_period:Lve,sc_seconds:Fve,sc_simple:zve,sc_specific:Bve,sc_specific_dates:Wve,sc_specific_dow:Uve,sc_specific_dows:Hve,sc_specific_hours:qve,sc_specific_minutes:Vve,sc_specific_months:Xve,sc_specific_seconds:Gve,sc_time:Jve,sc_to:Yve,sc_wizard:Kve,sch_all:Zve,sch_astroDay:Qve,sch_astroNight:e0e,sch_astro_dawn:t0e,sch_astro_dusk:r0e,sch_astro_goldenHour:n0e,sch_astro_goldenHourEnd:o0e,sch_astro_nadir:a0e,sch_astro_nauticalDawn:s0e,sch_astro_nauticalDusk:i0e,sch_astro_night:c0e,sch_astro_nightEnd:l0e,sch_astro_solarNoon:u0e,sch_astro_sunrise:d0e,sch_astro_sunriseEnd:p0e,sch_astro_sunset:f0e,sch_astro_sunsetStart:h0e,sch_at:m0e,sch_desc_atTime:_0e,sch_desc_everyDay:g0e,sch_desc_everyHour:y0e,sch_desc_everyMinute:v0e,sch_desc_everyMonth:b0e,sch_desc_everyNDay:w0e,sch_desc_everyNHours:x0e,sch_desc_everyNMinutes:S0e,sch_desc_everyNMonths:k0e,sch_desc_everyNWeeks:C0e,sch_desc_everyNYears:$0e,sch_desc_everyWeek:E0e,sch_desc_everyYear:T0e,sch_desc_intervalFromTo:O0e,sch_desc_never:D0e,sch_desc_onDate:M0e,sch_desc_onDates:N0e,sch_desc_onEveryDate:P0e,sch_desc_onMonth:R0e,sch_desc_onMonths:A0e,sch_desc_onWeekday:I0e,sch_desc_onWeekdays:j0e,sch_desc_onWeekends:L0e,sch_desc_onWorkdays:F0e,sch_desc_onceInPast:z0e,sch_desc_once_on:B0e,sch_desc_validFrom:W0e,sch_desc_validFromTo:U0e,sch_desc_validTo:H0e,sch_every:q0e,sch_exactTime:V0e,sch_from:X0e,sch_fromTo:G0e,sch_intervalTime:J0e,sch_invert:Y0e,sch_no_one:K0e,sch_on:Z0e,sch_period:Q0e,sch_periodDaily:ebe,sch_periodDates:tbe,sch_periodDay:rbe,sch_periodEvery:nbe,sch_periodEveryDay:obe,sch_periodEveryMonth:abe,sch_periodEveryWeek:sbe,sch_periodEveryYear:ibe,sch_periodHours:cbe,sch_periodMinutes:lbe,sch_periodMonth:ube,sch_periodMonthly:dbe,sch_periodOnce:pbe,sch_periodSpecificMonths:fbe,sch_periodWeek:hbe,sch_periodWeekdays:mbe,sch_periodWeekend:_be,sch_periodWeekly:gbe,sch_periodWorkdays:ybe,sch_periodYear:vbe,sch_periodYearly:bbe,sch_specificTime:wbe,sch_time:xbe,sch_to:Sbe,sch_valid:kbe,sch_validFrom:Cbe,sch_validTo:$be,sch_wholeDay:Ebe,sch_yearEveryMonth:Tbe},Dbe="toevoegen",Mbe="Annuleer",Nbe="Categorieën",Pbe="Gecontroleerd",Rbe="Verwijderen",Abe="Dichtbij",Ibe="Reclame",jbe="Configureren",Lbe="Verbonden",Fbe="Gekopieerd",zbe="Creëer",Bbe="Bijsnijden",Wbe="Delete",Ube="Verwijderen",Hbe="Weggooien",qbe="Verbinding verbroken",Vbe="Fout",Xbe="Filter",Gbe="Vrijdag",Jbe="Breedtegraad",Ybe="Lengtegraad",Kbe="Bericht",Zbe="Maandag",Qbe="Naam",ewe="Voorwerpen",twe="OK",rwe="Product",nwe="Herhaling",owe="Vervangen",awe="Wortel",swe="Zaterdag",iwe="Sparen",cwe="Geselecteerd",lwe="Staten",uwe="Zondag",dwe="Donderdag",pwe="Tijdstempel",fwe="Dinsdag",hwe="Bijwerken",mwe="Geldig tot",_we="Waarde",gwe="Versie",ywe="Woensdag",vwe="Breedte",bwe="Ja",wwe="verschillend",xwe="Iedereen kan object lezen",Swe="Iedereen kan staat lezen",kwe="Iedereen kan object schrijven",Cwe="Iedereen kan staat schrijven",$we="Groep kan object lezen",Ewe="Groep kan status lezen",Twe="Groep kan object schrijven",Owe="Groep kan staat schrijven",Dwe="Eigenaar kan object lezen",Mwe="Eigenaar kan staat lezen",Nwe="Eigenaar kan object schrijven",Pwe="Eigenaar kan staat schrijven",Rwe="Toetsen",Awe="Veranderd van",Iwe="dichtbij",jwe="Creëer een Booleaanse status",Lwe="Kanaal maken",Fwe="Apparaat maken",zwe="Nummerstatus maken",Bwe="Staat creëren",Wwe="Tekenreeksstatus maken",Uwe="d.",Hwe="Fr",qwe="Mo",Vwe="Za",Xwe="Zo",Gwe="Th",Jwe="Tu",Ywe="Wij",Kwe="Expert modus",Zwe="Alle bestanden",Qwe="Audio",e1e="Code/JSON",t1e="Afbeeldingen",r1e="Tekst",n1e="Video",o1e="Instellingen",a1e="zonder",s1e="Functie",i1e="ID",c1e="Naam",l1e="Rol",u1e="Kamer",d1e="Type",p1e="Ongeldige instellingen",f1e="Laatste wijziging",h1e="plaatselijk",m1e="april",_1e="aug",g1e="dec",y1e="februari",v1e="jan",b1e="jul",w1e="juni",x1e="Mei",S1e="mrt",k1e="nov",C1e="Okt",$1e="sept",E1e="april",T1e="aug",O1e="dec",D1e="februari",M1e="jan",N1e="jul",P1e="juni",R1e="Mei",A1e="mrt",I1e="nov",j1e="Okt",L1e="sept",F1e="geen",z1e="Object veranderd door",B1e="Object voor het laatst gewijzigd om",W1e="Instellingen van andere adapter %s",U1e="Kwaliteitscode",H1e="herhalen",q1e='Om een map te selecteren, houdt u gewoon de toets "shift" ingedrukt door op de map te klikken.',V1e="Staat veranderd door",X1e="Object veranderd van",G1e="Tijdstempel",J1e="Erkende vlag",Y1e="Opmerking",K1e="Kopieer de statuswaarde",Z1e="Aangepaste instellingen",Q1e="Object verwijderen",exe="Object bewerken",txe="Bewerk de statuswaarde",rxe="Van",nxe="Laatst gewijzigd",oxe="Kwaliteit",axe="Tijdstempel",sxe="Gebruiker",ixe="Waarde",cxe="Waarde",lxe="Waarschuwing: De CRON-taak wordt elke minuut uitgevoerd gedurende de opgegeven periode!",uxe="Waarschuwing: De CRON-taak wordt elke seconde uitgevoerd gedurende de opgegeven periode!",dxe="CRON",pxe="Datum",fxe="data",hxe="Dag",mxe="Dag van de week",_xe="elk",gxe="elke N dagen",yxe="elke N-de dag van de week",vxe="elke N dag van de week",bxe="elke N uur",wxe="elke N minuten",xxe="elke N maanden",Sxe="elke N seconden",kxe="elke dag",Cxe="elke dag van de week",$xe="elke dag van de week",Exe="elk uur",Txe="elke minuut",Oxe="elke maand",Dxe="elke seconde",Mxe="Van",Nxe="uren",Pxe="Interval",Rxe="Interval tussen",Axe="Ongeldige CRON",Ixe="Notulen",jxe="maanden",Lxe="Een keer",Fxe="Periode",zxe="seconden",Bxe="Gemakkelijk",Wxe="Specifieke tijd",Uxe="specifieke data",Hxe="specifieke dag(en) van de week",qxe="specifieke dag van weken",Vxe="specifieke uren",Xxe="specifieke minuten",Gxe="specifieke maanden",Jxe="specifieke seconden",Yxe="Tijd",Kxe="Naar",Zxe="tovenaar",Qxe="allemaal",eSe="Astro-dag",tSe="Astro-nacht",rSe="Dageraad",nSe="Schemer",oSe="gouden uur",aSe="Gouden uur einde",sSe="Nadir",iSe="Nautische dageraad",cSe="Nautische schemering",lSe="Nacht",uSe="Nacht einde",dSe="Zonne middag",pSe="zonsopkomst",fSe="Sunrise einde",hSe="Zonsondergang",mSe="Zonsondergang start",_Se="Bij",gSe="op %s",ySe="elke dag",vSe="elk uur",bSe="elke minuut",wSe="elke maand",xSe="elke %s dag",SSe="elke %s uur",kSe="elke %s minuten",CSe="elke %s maanden",$Se="elke %s weken",ESe="elke %s jaar",TSe="elke week",OSe="elk jaar",DSe="van %s tot %s",MSe="nooit",NSe="op %s van %s",PSe="op %s en %s van",RSe="op elke datum van",ASe="%s",ISe="%s en %s",jSe="op %s",LSe="op %s en %s",FSe="in het weekend",zSe="op werkdagen",BSe="zal niet meer worden uitgevoerd, omdat start verleden tijd is",WSe="op %s",USe="van %s",HSe="Uitvoeren van tot",qSe="tot %s",VSe="elk",XSe="Specifieke tijd",GSe="van",JSe="Van naar",YSe="Interval tijd",KSe="omkeren",ZSe="geen",QSe="Aan",eke="Periode",tke="Dagelijks",rke="data",nke="Dag",oke="elk",ake="Elke dag",ske="Elke maand",ike="Elke week",cke="Elk jaar",lke="uren",uke="Notulen",dke="maand",pke="Maandelijks",fke="Een keer",hke="Specifieke maanden",mke="Week",_ke="Doordeweekse dagen",gke="Weekend",yke="Wekelijks",vke="werkdagen",bke="Jaar",wke="jaar-",xke="Specifieke tijd",Ske="Tijd",kke="naar",Cke="Geldig",$ke="van",Eke="naar",Tke="Hele dag",Oke="elke maand",Dke={"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_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:Dbe,"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:Mbe,"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:Nbe,"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:Pbe,ra_Clear:Rbe,"ra_Clear filter":"Filter wissen","ra_Clear icon":"Pictogram wissen","ra_Clone current row":"Kloon de huidige rij",ra_Close:Abe,"ra_Collapse all nodes":"Vouw alle knooppunten samen","ra_Collapse one step node":"Eén niveau samenvouwen",ra_Commercial:Ibe,ra_Configure:jbe,"ra_Configure visible columns":"Configureer zichtbare kolommen","ra_Confirm deletion of %s":"Bevestig het verwijderen van %s",ra_Connected:Lbe,ra_Copied:Fbe,"ra_Copied %s":'"%s" gekopieerd',"ra_Copy content":"Inhoud kopiëren",ra_Create:zbe,"ra_Create alias":"Alias maken","ra_Create folder":"Map aanmaken","ra_Create new folder in %s":"Maak een nieuwe map in %s",ra_Crop:Bbe,"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:Wbe,ra_Delete:Ube,"ra_Delete (no confirm for 5 mins)":"Verwijderen (geen bevestiging gedurende 5 minuten)","ra_Delete current row":"Huidige rij verwijderen","ra_Deselect all":"Deselecteer alles","ra_Device → Channel → State":"Apparaat → Kanaal → Staat",ra_Discard:Hbe,ra_Disconnected:qbe,"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_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 function":"Bewerkingsfunctie","ra_Edit object field":"Bewerk objectveld","ra_Edit role":"Rol bewerken","ra_Edit room":"Kamer bewerken","ra_Edit value":"Waarde bewerken",ra_Error:Vbe,"ra_Expand all nodes":"Vouw alle knooppunten uit","ra_Expand one step node":"Vouw een niveau uit","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:Xbe,"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:Gbe,"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_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 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:Jbe,"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_Longitude:Ybe,'ra_May not trigger "updateLicenses"':'Activeert mogelijk niet "updateLicenses"',ra_Message:Kbe,ra_Monday:Zbe,"ra_Move down":"Naar beneden verplaatsen","ra_Move up":"Omhoog gaan",ra_Name:Qbe,"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 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_Objects:ewe,ra_Ok:twe,"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 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_Private certificate":"Privé certificaat",ra_Product:rwe,"ra_Public certificate":"Openbaar certificaat","ra_Quality code":"Kwaliteit","ra_Refresh tree":"Vernieuw de boom","ra_Reload files":"Laad bestanden opnieuw",ra_Repeat:nwe,ra_Replace:owe,"ra_Request timed out":"Verzoek verlopen","ra_Restrict to folder":"Beperken tot map",ra_Root:awe,ra_Saturday:swe,ra_Save:iwe,"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:cwe,"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_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:lwe,"ra_Suitable license not found in license manager":"Geschikte licentie niet gevonden in licentiebeheer",ra_Sunday:uwe,"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:dwe,ra_Timestamp:pwe,"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:fwe,"ra_Unknown error":"Onbekende fout","ra_Unknown error!":"Onbekende fout!",ra_Update:hwe,"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:mwe,ra_Value:_we,ra_Version:gwe,"ra_View file":"Bestand bekijken","ra_View: %s":"Bekijk: %s",ra_Wednesday:ywe,ra_Width:vwe,ra_Yes:bwe,"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___different__:wwe,ra_aclEveryone_read_object:xwe,ra_aclEveryone_read_state:Swe,ra_aclEveryone_write_object:kwe,ra_aclEveryone_write_state:Cwe,ra_aclGroup_read_object:$we,ra_aclGroup_read_state:Ewe,ra_aclGroup_write_object:Twe,ra_aclGroup_write_state:Owe,ra_aclOwner_read_object:Dwe,ra_aclOwner_read_state:Mwe,ra_aclOwner_write_object:Nwe,ra_aclOwner_write_state:Pwe,ra_buttons:Rwe,ra_changedFrom:Awe,ra_close:Iwe,ra_create_boolean_state:jwe,ra_create_channel:Lwe,ra_create_device:Fwe,ra_create_number_state:zwe,ra_create_state:Bwe,ra_create_string_state:Wwe,ra_daysShortText:Uwe,ra_dow_Fr:Hwe,ra_dow_Mo:qwe,ra_dow_Sa:Vwe,ra_dow_Su:Xwe,ra_dow_Th:Gwe,ra_dow_Tu:Jwe,ra_dow_We:Ywe,ra_expertMode:Kwe,ra_fileType_all:Zwe,ra_fileType_audio:Qwe,ra_fileType_code:e1e,ra_fileType_images:t1e,ra_fileType_txt:r1e,ra_fileType_video:n1e,"ra_fileType_video,":"Video",ra_filter_customs:o1e,ra_filter_customs_without:a1e,ra_filter_func:s1e,ra_filter_id:i1e,ra_filter_name:c1e,ra_filter_role:l1e,ra_filter_room:u1e,ra_filter_type:d1e,"ra_import data from %s file":"Importeer gegevens uit %s bestand",ra_invalidConfig:p1e,ra_lastChange:f1e,ra_locally:h1e,ra_month_Apr:m1e,ra_month_Aug:_1e,ra_month_Dec:g1e,ra_month_Feb:y1e,ra_month_Jan:v1e,ra_month_Jul:b1e,ra_month_Jun:w1e,ra_month_Mai:x1e,ra_month_Mar:S1e,ra_month_Nov:k1e,ra_month_Oct:C1e,ra_month_Sep:$1e,ra_months_Apr:E1e,ra_months_Aug:T1e,ra_months_Dec:O1e,ra_months_Feb:D1e,ra_months_Jan:M1e,ra_months_Jul:N1e,ra_months_Jun:P1e,ra_months_Mai:R1e,ra_months_Mar:A1e,ra_months_Nov:I1e,ra_months_Oct:j1e,ra_months_Sep:L1e,ra_none:F1e,ra_object_changed_by:z1e,ra_object_changed_by_user:B1e,ra_otherConfig:W1e,ra_qualityCode:U1e,ra_repeat:H1e,ra_select_folder_hint:q1e,ra_state_changed_by:V1e,ra_state_changed_from:X1e,ra_timestamp:G1e,ra_tooltip_ack:J1e,ra_tooltip_comment:Y1e,ra_tooltip_copyState:K1e,ra_tooltip_customConfig:Z1e,ra_tooltip_deleteObject:Q1e,ra_tooltip_editObject:exe,ra_tooltip_editState:txe,ra_tooltip_from:rxe,ra_tooltip_lc:nxe,ra_tooltip_quality:oxe,ra_tooltip_ts:axe,ra_tooltip_user:sxe,ra_tooltip_value:ixe,"ra_use seconds":"gebruik seconden",ra_val:cxe,"ra_via internet":"via internet",ra_warning_every_minute:lxe,ra_warning_every_second:uxe,sc_cron:dxe,sc_date:pxe,sc_dates:fxe,sc_dow:hxe,sc_dows:mxe,sc_every:_xe,sc_everyN_dates:gxe,sc_everyN_dow:yxe,sc_everyN_dows:vxe,sc_everyN_hours:bxe,sc_everyN_minutes:wxe,sc_everyN_months:xxe,sc_everyN_seconds:Sxe,sc_every_dates:kxe,sc_every_dow:Cxe,sc_every_dows:$xe,sc_every_hours:Exe,sc_every_minutes:Txe,sc_every_months:Oxe,sc_every_seconds:Dxe,sc_from:Mxe,sc_hours:Nxe,sc_interval:Pxe,sc_intervalBetween:Rxe,sc_invalid_cron:Axe,sc_minutes:Ixe,sc_months:jxe,sc_once:Lxe,sc_period:Fxe,sc_seconds:zxe,sc_simple:Bxe,sc_specific:Wxe,sc_specific_dates:Uxe,sc_specific_dow:Hxe,sc_specific_dows:qxe,sc_specific_hours:Vxe,sc_specific_minutes:Xxe,sc_specific_months:Gxe,sc_specific_seconds:Jxe,sc_time:Yxe,sc_to:Kxe,sc_wizard:Zxe,sch_all:Qxe,sch_astroDay:eSe,sch_astroNight:tSe,sch_astro_dawn:rSe,sch_astro_dusk:nSe,sch_astro_goldenHour:oSe,sch_astro_goldenHourEnd:aSe,sch_astro_nadir:sSe,sch_astro_nauticalDawn:iSe,sch_astro_nauticalDusk:cSe,sch_astro_night:lSe,sch_astro_nightEnd:uSe,sch_astro_solarNoon:dSe,sch_astro_sunrise:pSe,sch_astro_sunriseEnd:fSe,sch_astro_sunset:hSe,sch_astro_sunsetStart:mSe,sch_at:_Se,sch_desc_atTime:gSe,sch_desc_everyDay:ySe,sch_desc_everyHour:vSe,sch_desc_everyMinute:bSe,sch_desc_everyMonth:wSe,sch_desc_everyNDay:xSe,sch_desc_everyNHours:SSe,sch_desc_everyNMinutes:kSe,sch_desc_everyNMonths:CSe,sch_desc_everyNWeeks:$Se,sch_desc_everyNYears:ESe,sch_desc_everyWeek:TSe,sch_desc_everyYear:OSe,sch_desc_intervalFromTo:DSe,sch_desc_never:MSe,sch_desc_onDate:NSe,sch_desc_onDates:PSe,sch_desc_onEveryDate:RSe,sch_desc_onMonth:ASe,sch_desc_onMonths:ISe,sch_desc_onWeekday:jSe,sch_desc_onWeekdays:LSe,sch_desc_onWeekends:FSe,sch_desc_onWorkdays:zSe,sch_desc_onceInPast:BSe,sch_desc_once_on:WSe,sch_desc_validFrom:USe,sch_desc_validFromTo:HSe,sch_desc_validTo:qSe,sch_every:VSe,sch_exactTime:XSe,sch_from:GSe,sch_fromTo:JSe,sch_intervalTime:YSe,sch_invert:KSe,sch_no_one:ZSe,sch_on:QSe,sch_period:eke,sch_periodDaily:tke,sch_periodDates:rke,sch_periodDay:nke,sch_periodEvery:oke,sch_periodEveryDay:ake,sch_periodEveryMonth:ske,sch_periodEveryWeek:ike,sch_periodEveryYear:cke,sch_periodHours:lke,sch_periodMinutes:uke,sch_periodMonth:dke,sch_periodMonthly:pke,sch_periodOnce:fke,sch_periodSpecificMonths:hke,sch_periodWeek:mke,sch_periodWeekdays:_ke,sch_periodWeekend:gke,sch_periodWeekly:yke,sch_periodWorkdays:vke,sch_periodYear:bke,sch_periodYearly:wke,sch_specificTime:xke,sch_time:Ske,sch_to:kke,sch_valid:Cke,sch_validFrom:$ke,sch_validTo:Eke,sch_wholeDay:Tke,sch_yearEveryMonth:Oke},Mke="Ajouter",Nke="Annuler",Pke="Catégories",Rke="Vérifié",Ake="Effacer",Ike="Fermer",jke="Commercial",Lke="Configurer",Fke="Lié",zke="Copié",Bke="Créer",Wke="Recadrer",Uke="Delete",Hke="Supprimer",qke="Jeter",Vke="Débranché",Xke="Erreur",Gke="Filtre",Jke="Vendredi",Yke="Latitude",Kke="Longitude",Zke="Message",Qke="Lundi",eCe="Nom",tCe="Objets",rCe="D'accord",nCe="Produit",oCe="Répéter",aCe="Remplacer",sCe="Racine",iCe="Samedi",cCe="sauver",lCe="Choisi",uCe="États",dCe="Dimanche",pCe="Jeudi",fCe="Horodatage",hCe="Mardi",mCe="Mise à jour",_Ce="Valable jusqu'au",gCe="Valeur",yCe="Version",vCe="Mercredi",bCe="Largeur",wCe="Oui",xCe="différent",SCe="Tout le monde peut lire un objet",kCe="Tout le monde peut lire l'état",CCe="Tout le monde peut écrire un objet",$Ce="Tout le monde peut écrire l'état",ECe="Le groupe peut lire l'objet",TCe="Le groupe peut lire l'état",OCe="Le groupe peut écrire un objet",DCe="Le groupe peut écrire l'état",MCe="Le propriétaire peut lire l'objet",NCe="Le propriétaire peut lire l'état",PCe="Le propriétaire peut écrire un objet",RCe="Le propriétaire peut écrire l'état",ACe="Boutons",ICe="Changé de",jCe="Fermer",LCe="Créer un état booléen",FCe="Créer une chaîne",zCe="Créer un appareil",BCe="Créer un état de numéro",WCe="Créer un état",UCe="Créer un état de chaîne",HCe="j.",qCe="Fr",VCe="Mo",XCe="Sa",GCe="Su",JCe="Th",YCe="Tu",KCe="Nous",ZCe="Mode expert",QCe="Tous les fichiers",e$e="l'audio",t$e="Code/JSON",r$e="Images",n$e="Texte",o$e="Vidéo",a$e="Paramètres",s$e="sans",i$e="Une fonction",c$e="ID",l$e="Prénom",u$e="Rôle",d$e="Pièce",p$e="Type",f$e="Paramètres invalides",h$e="Dernier changement",m$e="localement",_$e="Avr",g$e="Août",y$e="Déc",v$e="Fév",b$e="Jan",w$e="Juil",x$e="Juin",S$e="Mai",k$e="Mar",C$e="Nov",$$e="Oct",E$e="Sep",T$e="Avr",O$e="Août",D$e="Déc",M$e="Fév",N$e="Jan",P$e="Juil",R$e="Juin",A$e="Mai",I$e="Mar",j$e="Nov",L$e="Oct",F$e="Sep",z$e="rien",B$e="Objet modifié par",W$e="Objet modifié pour la dernière fois à",U$e="Paramètres d'un autre adaptateur %s",H$e="Code de qualité",q$e="répéter",V$e='Pour sélectionner un dossier, maintenez simplement la touche "shift" enfoncée en cliquant sur le dossier.',X$e="État modifié par",G$e="Objet changé de",J$e="Horodatage",Y$e="Drapeau reconnu",K$e="Commentaire",Z$e="Copiez la valeur d'état",Q$e="Paramètres personnalisés",eEe="Supprimer un objet",tEe="Modifier l'objet",rEe="Modifier la valeur d'état",nEe="De",oEe="Dernière modification",aEe="Qualité",sEe="Horodatage",iEe="Utilisateur",cEe="Valeur",lEe="Valeur",uEe="Attention : la tâche CRON s’exécutera toutes les minutes pendant la période spécifiée !",dEe="Attention : la tâche CRON s’exécutera toutes les secondes pendant la période spécifiée !",pEe="CRON",fEe="Date",hEe="Rendez-vous",mEe="Jour",_Ee="Jour de la semaine",gEe="Chaque",yEe="tous les N jours",vEe="chaque Nième jour de la semaine",bEe="tous les N jours de la semaine",wEe="toutes les N heures",xEe="toutes les N minutes",SEe="tous les N mois",kEe="toutes les N secondes",CEe="tous les jours",$Ee="Chaque jour de la semaine",EEe="Chaque jour de la semaine",TEe="Toutes les heures",OEe="chaque minute",DEe="chaque mois",MEe="chaque seconde",NEe="De",PEe="Heures",REe="Intervalle",AEe="Intervalle entre",IEe="CRON non valide",jEe="Minutes",LEe="mois",FEe="Une fois que",zEe="Période",BEe="Secondes",WEe="Facile",UEe="Temps spécifique",HEe="dates spécifiques",qEe="jour(s) spécifique(s) de la semaine",VEe="jour spécifique de semaines",XEe="heures spécifiques",GEe="minutes spécifiques",JEe="mois spécifiques",YEe="secondes spécifiques",KEe="Temps",ZEe="À",QEe="sorcier",eTe="tout",tTe="Journée astronomique",rTe="Nuit astronomique",nTe="Aube",oTe="Crépuscule",aTe="Heure d'or",sTe="Fin de l'heure d'or",iTe="Nadir",cTe="Aube nautique",lTe="Crépuscule nautique",uTe="Nuit",dTe="Fin de nuit",pTe="Midi solaire",fTe="lever du soleil",hTe="Fin du lever du soleil",mTe="Le coucher du soleil",_Te="Coucher du soleil",gTe="à",yTe="à %s",vTe="tous les jours",bTe="Toutes les heures",wTe="chaque minute",xTe="chaque mois",STe="chaque %s jour",kTe="chaque %s heures",CTe="toutes les %s minutes",$Te="tous les %s mois",ETe="chaque %s semaines",TTe="tous les %s ans",OTe="toutes les semaines",DTe="chaque année",MTe="de %s à %s",NTe="jamais",PTe="sur %s de %s",RTe="sur %s et %s de",ATe="à chaque date de",ITe="%s",jTe="%s et %s",LTe="sur %s",FTe="sur %s et %s",zTe="les weekends",BTe="les jours ouvrables",WTe="ne sera plus exécuté, car start est dans le passé",UTe="sur %s",HTe="de %s",qTe="Exécuter de à",VTe="à %s",XTe="chaque",GTe="Temps spécifique",JTe="de",YTe="De à",KTe="Temps d'interval",ZTe="inverser",QTe="aucun",e2e="sur",t2e="Période",r2e="du quotidien",n2e="Rendez-vous",o2e="journée",a2e="Chaque",s2e="Tous les jours",i2e="Chaque mois",c2e="Toutes les semaines",l2e="Chaque année",u2e="Heures",d2e="Minutes",p2e="mois",f2e="Mensuel",h2e="Une fois que",m2e="Mois spécifiques",_2e="La semaine",g2e="Jours de la semaine",y2e="Weekend",v2e="Hebdomadaire",b2e="Jours ouvrables",w2e="Année",x2e="Annuel",S2e="Temps spécifique",k2e="Temps",C2e="à",$2e="Valide",E2e="de",T2e="à",O2e="Toute la journée",D2e="chaque mois",M2e={"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_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:Mke,"ra_Append %s entries or replace existing?":"Ajouter %s entrées ou remplacer l'existant ?","ra_Append or replace?":"Ajouter ou remplacer ?","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:Nke,"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 : 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 : %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:Pke,"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:Rke,ra_Clear:Ake,"ra_Clear filter":"Effacer le filtre","ra_Clear icon":"Effacer l'icône","ra_Clone current row":"Cloner la ligne actuelle",ra_Close:Ike,"ra_Collapse all nodes":"Réduire tous les nœuds","ra_Collapse one step node":"Réduire d'un niveau",ra_Commercial:jke,ra_Configure:Lke,"ra_Configure visible columns":"Configurer les colonnes visibles","ra_Confirm deletion of %s":"Confirmer la suppression de %s",ra_Connected:Fke,ra_Copied:zke,"ra_Copied %s":'"%s" copié',"ra_Copy content":"Copier le contenu",ra_Create:Bke,"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:Wke,"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:Uke,ra_Delete:Hke,"ra_Delete (no confirm for 5 mins)":"Supprimer (pas de confirmation pendant 5 minutes)","ra_Delete current row":"Supprimer la ligne actuelle","ra_Deselect all":"Tout déselectionner","ra_Device → Channel → State":"Appareil → Canal → État",ra_Discard:qke,ra_Disconnected:Vke,"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_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 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_Error:Xke,"ra_Expand all nodes":"Développer tous les nœuds","ra_Expand one step node":"Développer un niveau","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:Gke,"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:Jke,"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_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 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:Yke,"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 ?","ra_Listen on all IPs":"Écoutez sur toutes les adresses IP","ra_Load configuration from file":"Charger la configuration à partir du fichier",ra_Longitude:Kke,'ra_May not trigger "updateLicenses"':'Peut ne pas déclencher "updateLicences"',ra_Message:Zke,ra_Monday:Qke,"ra_Move down":"Descendre","ra_Move up":"Déplacer vers le haut",ra_Name:eCe,"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 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_Objects:tCe,ra_Ok:rCe,"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 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_Private certificate":"Certificat privé",ra_Product:nCe,"ra_Public certificate":"Certificat public","ra_Quality code":"Qualité","ra_Refresh tree":"Rafraîchir l'arborescence","ra_Reload files":"Recharger les fichiers",ra_Repeat:oCe,ra_Replace:aCe,"ra_Request timed out":"La demande a expiré","ra_Restrict to folder":"Restreindre au dossier",ra_Root:sCe,ra_Saturday:iCe,ra_Save:cCe,"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:lCe,"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_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:uCe,"ra_Suitable license not found in license manager":"Licence appropriée introuvable dans le gestionnaire de licences",ra_Sunday:dCe,"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:pCe,ra_Timestamp:fCe,"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:hCe,"ra_Unknown error":"Erreur inconnue","ra_Unknown error!":"Erreur inconnue!",ra_Update:mCe,"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:_Ce,ra_Value:gCe,ra_Version:yCe,"ra_View file":"Voir la fiche","ra_View: %s":"Affichage : %s",ra_Wednesday:vCe,ra_Width:bCe,ra_Yes:wCe,"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___different__:xCe,ra_aclEveryone_read_object:SCe,ra_aclEveryone_read_state:kCe,ra_aclEveryone_write_object:CCe,ra_aclEveryone_write_state:$Ce,ra_aclGroup_read_object:ECe,ra_aclGroup_read_state:TCe,ra_aclGroup_write_object:OCe,ra_aclGroup_write_state:DCe,ra_aclOwner_read_object:MCe,ra_aclOwner_read_state:NCe,ra_aclOwner_write_object:PCe,ra_aclOwner_write_state:RCe,ra_buttons:ACe,ra_changedFrom:ICe,ra_close:jCe,ra_create_boolean_state:LCe,ra_create_channel:FCe,ra_create_device:zCe,ra_create_number_state:BCe,ra_create_state:WCe,ra_create_string_state:UCe,ra_daysShortText:HCe,ra_dow_Fr:qCe,ra_dow_Mo:VCe,ra_dow_Sa:XCe,ra_dow_Su:GCe,ra_dow_Th:JCe,ra_dow_Tu:YCe,ra_dow_We:KCe,ra_expertMode:ZCe,ra_fileType_all:QCe,ra_fileType_audio:e$e,ra_fileType_code:t$e,ra_fileType_images:r$e,ra_fileType_txt:n$e,ra_fileType_video:o$e,"ra_fileType_video,":"Vidéo",ra_filter_customs:a$e,ra_filter_customs_without:s$e,ra_filter_func:i$e,ra_filter_id:c$e,ra_filter_name:l$e,ra_filter_role:u$e,ra_filter_room:d$e,ra_filter_type:p$e,"ra_import data from %s file":"Importer des données à partir du fichier %s",ra_invalidConfig:f$e,ra_lastChange:h$e,ra_locally:m$e,ra_month_Apr:_$e,ra_month_Aug:g$e,ra_month_Dec:y$e,ra_month_Feb:v$e,ra_month_Jan:b$e,ra_month_Jul:w$e,ra_month_Jun:x$e,ra_month_Mai:S$e,ra_month_Mar:k$e,ra_month_Nov:C$e,ra_month_Oct:$$e,ra_month_Sep:E$e,ra_months_Apr:T$e,ra_months_Aug:O$e,ra_months_Dec:D$e,ra_months_Feb:M$e,ra_months_Jan:N$e,ra_months_Jul:P$e,ra_months_Jun:R$e,ra_months_Mai:A$e,ra_months_Mar:I$e,ra_months_Nov:j$e,ra_months_Oct:L$e,ra_months_Sep:F$e,ra_none:z$e,ra_object_changed_by:B$e,ra_object_changed_by_user:W$e,ra_otherConfig:U$e,ra_qualityCode:H$e,ra_repeat:q$e,ra_select_folder_hint:V$e,ra_state_changed_by:X$e,ra_state_changed_from:G$e,ra_timestamp:J$e,ra_tooltip_ack:Y$e,ra_tooltip_comment:K$e,ra_tooltip_copyState:Z$e,ra_tooltip_customConfig:Q$e,ra_tooltip_deleteObject:eEe,ra_tooltip_editObject:tEe,ra_tooltip_editState:rEe,ra_tooltip_from:nEe,ra_tooltip_lc:oEe,ra_tooltip_quality:aEe,ra_tooltip_ts:sEe,ra_tooltip_user:iEe,ra_tooltip_value:cEe,"ra_use seconds":"utiliser les secondes",ra_val:lEe,"ra_via internet":"par Internet",ra_warning_every_minute:uEe,ra_warning_every_second:dEe,sc_cron:pEe,sc_date:fEe,sc_dates:hEe,sc_dow:mEe,sc_dows:_Ee,sc_every:gEe,sc_everyN_dates:yEe,sc_everyN_dow:vEe,sc_everyN_dows:bEe,sc_everyN_hours:wEe,sc_everyN_minutes:xEe,sc_everyN_months:SEe,sc_everyN_seconds:kEe,sc_every_dates:CEe,sc_every_dow:$Ee,sc_every_dows:EEe,sc_every_hours:TEe,sc_every_minutes:OEe,sc_every_months:DEe,sc_every_seconds:MEe,sc_from:NEe,sc_hours:PEe,sc_interval:REe,sc_intervalBetween:AEe,sc_invalid_cron:IEe,sc_minutes:jEe,sc_months:LEe,sc_once:FEe,sc_period:zEe,sc_seconds:BEe,sc_simple:WEe,sc_specific:UEe,sc_specific_dates:HEe,sc_specific_dow:qEe,sc_specific_dows:VEe,sc_specific_hours:XEe,sc_specific_minutes:GEe,sc_specific_months:JEe,sc_specific_seconds:YEe,sc_time:KEe,sc_to:ZEe,sc_wizard:QEe,sch_all:eTe,sch_astroDay:tTe,sch_astroNight:rTe,sch_astro_dawn:nTe,sch_astro_dusk:oTe,sch_astro_goldenHour:aTe,sch_astro_goldenHourEnd:sTe,sch_astro_nadir:iTe,sch_astro_nauticalDawn:cTe,sch_astro_nauticalDusk:lTe,sch_astro_night:uTe,sch_astro_nightEnd:dTe,sch_astro_solarNoon:pTe,sch_astro_sunrise:fTe,sch_astro_sunriseEnd:hTe,sch_astro_sunset:mTe,sch_astro_sunsetStart:_Te,sch_at:gTe,sch_desc_atTime:yTe,sch_desc_everyDay:vTe,sch_desc_everyHour:bTe,sch_desc_everyMinute:wTe,sch_desc_everyMonth:xTe,sch_desc_everyNDay:STe,sch_desc_everyNHours:kTe,sch_desc_everyNMinutes:CTe,sch_desc_everyNMonths:$Te,sch_desc_everyNWeeks:ETe,sch_desc_everyNYears:TTe,sch_desc_everyWeek:OTe,sch_desc_everyYear:DTe,sch_desc_intervalFromTo:MTe,sch_desc_never:NTe,sch_desc_onDate:PTe,sch_desc_onDates:RTe,sch_desc_onEveryDate:ATe,sch_desc_onMonth:ITe,sch_desc_onMonths:jTe,sch_desc_onWeekday:LTe,sch_desc_onWeekdays:FTe,sch_desc_onWeekends:zTe,sch_desc_onWorkdays:BTe,sch_desc_onceInPast:WTe,sch_desc_once_on:UTe,sch_desc_validFrom:HTe,sch_desc_validFromTo:qTe,sch_desc_validTo:VTe,sch_every:XTe,sch_exactTime:GTe,sch_from:JTe,sch_fromTo:YTe,sch_intervalTime:KTe,sch_invert:ZTe,sch_no_one:QTe,sch_on:e2e,sch_period:t2e,sch_periodDaily:r2e,sch_periodDates:n2e,sch_periodDay:o2e,sch_periodEvery:a2e,sch_periodEveryDay:s2e,sch_periodEveryMonth:i2e,sch_periodEveryWeek:c2e,sch_periodEveryYear:l2e,sch_periodHours:u2e,sch_periodMinutes:d2e,sch_periodMonth:p2e,sch_periodMonthly:f2e,sch_periodOnce:h2e,sch_periodSpecificMonths:m2e,sch_periodWeek:_2e,sch_periodWeekdays:g2e,sch_periodWeekend:y2e,sch_periodWeekly:v2e,sch_periodWorkdays:b2e,sch_periodYear:w2e,sch_periodYearly:x2e,sch_specificTime:S2e,sch_time:k2e,sch_to:C2e,sch_valid:$2e,sch_validFrom:E2e,sch_validTo:T2e,sch_wholeDay:O2e,sch_yearEveryMonth:D2e},N2e="Aggiungere",P2e="Annulla",R2e="Categorie",A2e="Controllato",I2e="Elimina",j2e="Vicino",L2e="Commerciale",F2e="Configura",z2e="Collegato",B2e="Copiato",W2e="Creare",U2e="Raccolto",H2e="Delete",q2e="Elimina",V2e="Scartare",X2e="Disconnesso",G2e="Errore",J2e="Filtro",Y2e="Venerdì",K2e="Latitudine",Z2e="Longitudine",Q2e="Messaggio",eOe="Lunedi",tOe="Nome",rOe="Oggetti",nOe="Ok",oOe="Prodotto",aOe="Ripetere",sOe="Sostituire",iOe="Radice",cOe="Sabato",lOe="Salva",uOe="Selezionato",dOe="stati",pOe="Domenica",fOe="Giovedì",hOe="Timestamp",mOe="Martedì",_Oe="Aggiornare",gOe="Valido fino a",yOe="Valore",vOe="Versione",bOe="Mercoledì",wOe="Larghezza",xOe="SÌ",SOe="diverso",kOe="Tutti possono leggere gli oggetti",COe="Tutti possono leggere lo stato",$Oe="Tutti possono scrivere oggetti",EOe="Tutti possono scrivere stato",TOe="Il gruppo può leggere l'oggetto",OOe="Il gruppo può leggere lo stato",DOe="Il gruppo può scrivere l'oggetto",MOe="Il gruppo può scrivere lo stato",NOe="Il proprietario può leggere l'oggetto",POe="Il proprietario può leggere lo stato",ROe="Il proprietario può scrivere l'oggetto",AOe="Il proprietario può scrivere lo stato",IOe="Bottoni",jOe="Cambiato da",LOe="vicino",FOe="Crea uno stato booleano",zOe="Crea canale",BOe="Crea dispositivo",WOe="Crea lo stato del numero",UOe="Crea stato",HOe="Crea lo stato della stringa",qOe="g.",VOe="fr",XOe="momento",GOe="Sa",JOe="su",YOe="th",KOe="Tu",ZOe="Noi",QOe="Modalità esperto",eDe="Tutti i files",tDe="Audio",rDe="Codice/JSON",nDe="immagini",oDe="Testo",aDe="video",sDe="impostazioni",iDe="senza",cDe="Funzione",lDe="ID",uDe="Nome",dDe="Ruolo",pDe="Camera",fDe="genere",hDe="Impostazioni non valide",mDe="Ultima modifica",_De="localmente",gDe="apr",yDe="agosto",vDe="Dic",bDe="febbraio",wDe="gen",xDe="lug",SDe="giu",kDe="Mai",CDe="marzo",$De="nov",EDe="ottobre",TDe="Sett",ODe="apr",DDe="agosto",MDe="Dic",NDe="febbraio",PDe="gen",RDe="lug",ADe="giu",IDe="Mai",jDe="marzo",LDe="nov",FDe="ottobre",zDe="Sett",BDe="nessuna",WDe="Oggetto modificato da",UDe="L'oggetto è stato modificato l'ultima volta alle",HDe="Impostazioni dall'altro adattatore %s",qDe="Codice di qualità",VDe="ripetere",XDe='Per selezionare la cartella, basta tenere premuto il tasto "shift" facendo clic sulla cartella.',GDe="Stato cambiato da",JDe="Oggetto cambiato da",YDe="Timestamp",KDe="Bandiera riconosciuta",ZDe="Commento",QDe="Copia il valore dello stato",eMe="Impostazioni personalizzate",tMe="Elimina oggetto",rMe="Modifica oggetto",nMe="Modifica il valore dello stato",oMe="A partire dal",aMe="Ultima modifica",sMe="Qualità",iMe="Data e ora",cMe="Utente",lMe="Valore",uMe="Valore",dMe="Attenzione: il processo CRON verrà eseguito ogni minuto durante il periodo specificato!",pMe="Attenzione: il processo CRON verrà eseguito ogni secondo durante il periodo specificato!",fMe="CRON",hMe="Data",mMe="Date",_Me="Giorno",gMe="Giorno della settimana",yMe="Ogni",vMe="ogni N giorni",bMe="ogni Nesimo giorno della settimana",wMe="ogni N giorno della settimana",xMe="ogni N ore",SMe="ogni N minuti",kMe="ogni N mesi",CMe="ogni N secondi",$Me="ogni giorno",EMe="Tutti i giorni della settimana",TMe="Tutti i giorni della settimana",OMe="ogni ora",DMe="ogni minuto",MMe="ogni mese",NMe="ogni secondo",PMe="A partire dal",RMe="Ore",AMe="Intervallo",IMe="Intervallo tra",jMe="CRON non valido",LMe="Minuti",FMe="mesi",zMe="Una volta",BMe="Periodo",WMe="secondi",UMe="Semplice",HMe="Orario preciso",qMe="date specifiche",VMe="giorno/i specifico/i della settimana",XMe="giorno specifico delle settimane",GMe="orari specifici",JMe="minuti specifici",YMe="mesi specifici",KMe="secondi specifici",ZMe="Tempo",QMe="Per",eNe="procedura guidata",tNe="tutti",rNe="Astro day",nNe="Astro night",oNe="Alba",aNe="Crepuscolo",sNe="Ora d'oro",iNe="Fine dell'ora d'oro",cNe="Nadir",lNe="Alba nautica",uNe="Crepuscolo nautico",dNe="Notte",pNe="Fine della notte",fNe="Mezzogiorno solare",hNe="Alba",mNe="Fine dell'alba",_Ne="Tramonto",gNe="Inizio del tramonto",yNe="a",vNe="a %s",bNe="ogni giorno",wNe="ogni ora",xNe="ogni minuto",SNe="ogni mese",kNe="ogni %s giorno",CNe="ogni %s ore",$Ne="ogni %s minuti",ENe="ogni %s mesi",TNe="ogni %s settimane",ONe="ogni %s anni",DNe="ogni settimana",MNe="ogni anno",NNe="da %s a %s",PNe="mai",RNe="su %s di %s",ANe="su %s e %s di",INe="in ogni data di",jNe="%s",LNe="%s e %s",FNe="su %s",zNe="su %s e %s",BNe="nei finesettimana",WNe="nei giorni lavorativi",UNe="non verrà più eseguito, perché start è nel passato",HNe="su %s",qNe="da %s",VNe="Eseguire da a",XNe="a %s",GNe="ogni",JNe="Orario preciso",YNe="a partire dal",KNe="Da A",ZNe="Intervallo di tempo",QNe="invertire",ePe="nessuna",tPe="sopra",rPe="Periodo",nPe="Quotidiano",oPe="Date",aPe="Giorno",sPe="Ogni",iPe="Ogni giorno",cPe="Ogni mese",lPe="Ogni settimana",uPe="Ogni anno",dPe="Ore",pPe="Minuti",fPe="mese",hPe="Mensile",mPe="Una volta",_Pe="Mesi specifici",gPe="Settimana",yPe="Giorni della settimana",vPe="Fine settimana",bPe="settimanalmente",wPe="giorni feriali",xPe="Anno",SPe="Annuale",kPe="Orario preciso",CPe="Tempo",$Pe="per",EPe="Valido",TPe="a partire dal",OPe="per",DPe="Giorno intero",MPe="ogni mese",NPe={"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_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:N2e,"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:P2e,"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:R2e,"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:A2e,ra_Clear:I2e,"ra_Clear filter":"Filtro pulito","ra_Clear icon":"Cancella icona","ra_Clone current row":"Clona riga corrente",ra_Close:j2e,"ra_Collapse all nodes":"Comprimi tutti i nodi","ra_Collapse one step node":"Comprimi un livello",ra_Commercial:L2e,ra_Configure:F2e,"ra_Configure visible columns":"Configura colonne visibili","ra_Confirm deletion of %s":"Conferma l'eliminazione di %s",ra_Connected:z2e,ra_Copied:B2e,"ra_Copied %s":'"%s" copiato',"ra_Copy content":"Copia contenuto",ra_Create:W2e,"ra_Create alias":"Crea alias","ra_Create folder":"Creare una cartella","ra_Create new folder in %s":"Crea nuova cartella in %s",ra_Crop:U2e,"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:H2e,ra_Delete:q2e,"ra_Delete (no confirm for 5 mins)":"Elimina (nessuna conferma per 5 minuti)","ra_Delete current row":"Elimina la riga corrente","ra_Deselect all":"Deseleziona tutto","ra_Device → Channel → State":"Dispositivo → Canale → Stato",ra_Discard:V2e,ra_Disconnected:X2e,"ra_Do not export values of states":"Non esportare i valori degli stati","ra_Do not use let's encrypt":"Non utilizzare crittografiamo","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 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_Error:G2e,"ra_Expand all nodes":"Espandi tutti i nodi","ra_Expand one step node":"Espandi un livello","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:J2e,"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:Y2e,"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_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 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:K2e,"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_Longitude:Z2e,'ra_May not trigger "updateLicenses"':'Potrebbe non attivare "updateLicenses"',ra_Message:Q2e,ra_Monday:eOe,"ra_Move down":"Abbassati","ra_Move up":"Andare avanti",ra_Name:tOe,"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 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_Objects:rOe,ra_Ok:nOe,"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 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_Private certificate":"Certificato privato",ra_Product:oOe,"ra_Public certificate":"Certificato pubblico","ra_Quality code":"Qualità","ra_Refresh tree":"Aggiorna l'albero","ra_Reload files":"Ricarica i file",ra_Repeat:aOe,ra_Replace:sOe,"ra_Request timed out":"Tempo scaduto per la richiesta","ra_Restrict to folder":"Limita alla cartella",ra_Root:iOe,ra_Saturday:cOe,ra_Save:lOe,"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:uOe,"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_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:dOe,"ra_Suitable license not found in license manager":"Licenza adatta non trovata nel gestore delle licenze",ra_Sunday:pOe,"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:fOe,ra_Timestamp:hOe,"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:mOe,"ra_Unknown error":"Errore sconosciuto","ra_Unknown error!":"Errore sconosciuto!",ra_Update:_Oe,"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:gOe,ra_Value:yOe,ra_Version:vOe,"ra_View file":"Vedi il file","ra_View: %s":"Visualizza: %s",ra_Wednesday:bOe,ra_Width:wOe,ra_Yes:xOe,"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___different__:SOe,ra_aclEveryone_read_object:kOe,ra_aclEveryone_read_state:COe,ra_aclEveryone_write_object:$Oe,ra_aclEveryone_write_state:EOe,ra_aclGroup_read_object:TOe,ra_aclGroup_read_state:OOe,ra_aclGroup_write_object:DOe,ra_aclGroup_write_state:MOe,ra_aclOwner_read_object:NOe,ra_aclOwner_read_state:POe,ra_aclOwner_write_object:ROe,ra_aclOwner_write_state:AOe,ra_buttons:IOe,ra_changedFrom:jOe,ra_close:LOe,ra_create_boolean_state:FOe,ra_create_channel:zOe,ra_create_device:BOe,ra_create_number_state:WOe,ra_create_state:UOe,ra_create_string_state:HOe,ra_daysShortText:qOe,ra_dow_Fr:VOe,ra_dow_Mo:XOe,ra_dow_Sa:GOe,ra_dow_Su:JOe,ra_dow_Th:YOe,ra_dow_Tu:KOe,ra_dow_We:ZOe,ra_expertMode:QOe,ra_fileType_all:eDe,ra_fileType_audio:tDe,ra_fileType_code:rDe,ra_fileType_images:nDe,ra_fileType_txt:oDe,ra_fileType_video:aDe,"ra_fileType_video,":"video",ra_filter_customs:sDe,ra_filter_customs_without:iDe,ra_filter_func:cDe,ra_filter_id:lDe,ra_filter_name:uDe,ra_filter_role:dDe,ra_filter_room:pDe,ra_filter_type:fDe,"ra_import data from %s file":"Importa dati dal file %s",ra_invalidConfig:hDe,ra_lastChange:mDe,ra_locally:_De,ra_month_Apr:gDe,ra_month_Aug:yDe,ra_month_Dec:vDe,ra_month_Feb:bDe,ra_month_Jan:wDe,ra_month_Jul:xDe,ra_month_Jun:SDe,ra_month_Mai:kDe,ra_month_Mar:CDe,ra_month_Nov:$De,ra_month_Oct:EDe,ra_month_Sep:TDe,ra_months_Apr:ODe,ra_months_Aug:DDe,ra_months_Dec:MDe,ra_months_Feb:NDe,ra_months_Jan:PDe,ra_months_Jul:RDe,ra_months_Jun:ADe,ra_months_Mai:IDe,ra_months_Mar:jDe,ra_months_Nov:LDe,ra_months_Oct:FDe,ra_months_Sep:zDe,ra_none:BDe,ra_object_changed_by:WDe,ra_object_changed_by_user:UDe,ra_otherConfig:HDe,ra_qualityCode:qDe,ra_repeat:VDe,ra_select_folder_hint:XDe,ra_state_changed_by:GDe,ra_state_changed_from:JDe,ra_timestamp:YDe,ra_tooltip_ack:KDe,ra_tooltip_comment:ZDe,ra_tooltip_copyState:QDe,ra_tooltip_customConfig:eMe,ra_tooltip_deleteObject:tMe,ra_tooltip_editObject:rMe,ra_tooltip_editState:nMe,ra_tooltip_from:oMe,ra_tooltip_lc:aMe,ra_tooltip_quality:sMe,ra_tooltip_ts:iMe,ra_tooltip_user:cMe,ra_tooltip_value:lMe,"ra_use seconds":"usa i secondi",ra_val:uMe,"ra_via internet":"attraverso internet",ra_warning_every_minute:dMe,ra_warning_every_second:pMe,sc_cron:fMe,sc_date:hMe,sc_dates:mMe,sc_dow:_Me,sc_dows:gMe,sc_every:yMe,sc_everyN_dates:vMe,sc_everyN_dow:bMe,sc_everyN_dows:wMe,sc_everyN_hours:xMe,sc_everyN_minutes:SMe,sc_everyN_months:kMe,sc_everyN_seconds:CMe,sc_every_dates:$Me,sc_every_dow:EMe,sc_every_dows:TMe,sc_every_hours:OMe,sc_every_minutes:DMe,sc_every_months:MMe,sc_every_seconds:NMe,sc_from:PMe,sc_hours:RMe,sc_interval:AMe,sc_intervalBetween:IMe,sc_invalid_cron:jMe,sc_minutes:LMe,sc_months:FMe,sc_once:zMe,sc_period:BMe,sc_seconds:WMe,sc_simple:UMe,sc_specific:HMe,sc_specific_dates:qMe,sc_specific_dow:VMe,sc_specific_dows:XMe,sc_specific_hours:GMe,sc_specific_minutes:JMe,sc_specific_months:YMe,sc_specific_seconds:KMe,sc_time:ZMe,sc_to:QMe,sc_wizard:eNe,sch_all:tNe,sch_astroDay:rNe,sch_astroNight:nNe,sch_astro_dawn:oNe,sch_astro_dusk:aNe,sch_astro_goldenHour:sNe,sch_astro_goldenHourEnd:iNe,sch_astro_nadir:cNe,sch_astro_nauticalDawn:lNe,sch_astro_nauticalDusk:uNe,sch_astro_night:dNe,sch_astro_nightEnd:pNe,sch_astro_solarNoon:fNe,sch_astro_sunrise:hNe,sch_astro_sunriseEnd:mNe,sch_astro_sunset:_Ne,sch_astro_sunsetStart:gNe,sch_at:yNe,sch_desc_atTime:vNe,sch_desc_everyDay:bNe,sch_desc_everyHour:wNe,sch_desc_everyMinute:xNe,sch_desc_everyMonth:SNe,sch_desc_everyNDay:kNe,sch_desc_everyNHours:CNe,sch_desc_everyNMinutes:$Ne,sch_desc_everyNMonths:ENe,sch_desc_everyNWeeks:TNe,sch_desc_everyNYears:ONe,sch_desc_everyWeek:DNe,sch_desc_everyYear:MNe,sch_desc_intervalFromTo:NNe,sch_desc_never:PNe,sch_desc_onDate:RNe,sch_desc_onDates:ANe,sch_desc_onEveryDate:INe,sch_desc_onMonth:jNe,sch_desc_onMonths:LNe,sch_desc_onWeekday:FNe,sch_desc_onWeekdays:zNe,sch_desc_onWeekends:BNe,sch_desc_onWorkdays:WNe,sch_desc_onceInPast:UNe,sch_desc_once_on:HNe,sch_desc_validFrom:qNe,sch_desc_validFromTo:VNe,sch_desc_validTo:XNe,sch_every:GNe,sch_exactTime:JNe,sch_from:YNe,sch_fromTo:KNe,sch_intervalTime:ZNe,sch_invert:QNe,sch_no_one:ePe,sch_on:tPe,sch_period:rPe,sch_periodDaily:nPe,sch_periodDates:oPe,sch_periodDay:aPe,sch_periodEvery:sPe,sch_periodEveryDay:iPe,sch_periodEveryMonth:cPe,sch_periodEveryWeek:lPe,sch_periodEveryYear:uPe,sch_periodHours:dPe,sch_periodMinutes:pPe,sch_periodMonth:fPe,sch_periodMonthly:hPe,sch_periodOnce:mPe,sch_periodSpecificMonths:_Pe,sch_periodWeek:gPe,sch_periodWeekdays:yPe,sch_periodWeekend:vPe,sch_periodWeekly:bPe,sch_periodWorkdays:wPe,sch_periodYear:xPe,sch_periodYearly:SPe,sch_specificTime:kPe,sch_time:CPe,sch_to:$Pe,sch_valid:EPe,sch_validFrom:TPe,sch_validTo:OPe,sch_wholeDay:DPe,sch_yearEveryMonth:MPe},PPe="Adjuntar",RPe="Cancelar",APe="Categorías",IPe="Comprobado",jPe="Borrar",LPe="Cerca",FPe="Comercial",zPe="Configurar",BPe="Conectado",WPe="Copiado",UPe="Crear",HPe="Cultivo",qPe="Delete",VPe="Eliminar",XPe="Desechar",GPe="Desconectado",JPe="Error",YPe="Filtrar",KPe="Viernes",ZPe="Latitud",QPe="Longitud",eRe="Mensaje",tRe="Lunes",rRe="Nombre",nRe="Objetos",oRe="Okay",aRe="Producto",sRe="Repetir",iRe="Reemplazar",cRe="Raíz",lRe="Sábado",uRe="Salvar",dRe="Seleccionado",pRe="Estados",fRe="Domingo",hRe="Jueves",mRe="Marca de tiempo",_Re="Martes",gRe="Actualizar",yRe="Válida hasta",vRe="Valor",bRe="Versión",wRe="Miércoles",xRe="Anchura",SRe="Sí",kRe="diferente",CRe="Todo el mundo puede leer el objeto",$Re="Todos pueden leer el estado",ERe="Todos pueden escribir objetos",TRe="Todos pueden escribir el estado",ORe="El grupo puede leer el objeto",DRe="El grupo puede leer el estado",MRe="El grupo puede escribir un objeto",NRe="El grupo puede escribir el estado",PRe="El propietario puede leer el objeto",RRe="El propietario puede leer el estado",ARe="El propietario puede escribir el objeto",IRe="El propietario puede escribir el estado",jRe="Botones",LRe="Cambiaron desde",FRe="cerrar",zRe="Crear estado booleano",BRe="Crear canal",WRe="Crear dispositivo",URe="Crear estado numérico",HRe="Crear estado",qRe="Crear estado de cadena",VRe="d.",XRe="Fr",GRe="Mes",JRe="Sa",YRe="Su",KRe="Th",ZRe="Tu",QRe="Nosotros",eAe="Modo experto",tAe="Todos los archivos",rAe="Audio",nAe="Código/JSON",oAe="Imágenes",aAe="Texto",sAe="Video",iAe="Configuraciones",cAe="sin",lAe="Función",uAe="ID",dAe="Nombre",pAe="Papel",fAe="Habitación",hAe="Tipo",mAe="Configuraciones inválidas",_Ae="Ultimo cambio",gAe="en la zona",yAe="Abr",vAe="Ago",bAe="Dic",wAe="Feb",xAe="Ene",SAe="Jul",kAe="Jun",CAe="Mai",$Ae="Mar",EAe="Nov",TAe="Oct",OAe="Sep",DAe="Abr",MAe="Ago",NAe="Dic",PAe="Feb",RAe="Ene",AAe="Jul",IAe="Jun",jAe="Mai",LAe="Mar",FAe="Nov",zAe="Oct",BAe="Sep",WAe="ninguno",UAe="Objeto cambiado por",HAe="Objeto cambiado por última vez a las",qAe="Configuraciones de otro adaptador %s",VAe="Código de calidad",XAe="repetir",GAe='Para seleccionar la carpeta, simplemente mantenga presionada la tecla "shift" haciendo clic en la carpeta.',JAe="Estado cambiado por",YAe="Objeto cambiado de",KAe="Marca de tiempo",ZAe="Bandera reconocida",QAe="Comentario",e5e="Copie el valor del estado",t5e="Ajustes personalizados",r5e="Eliminar objeto",n5e="Editar objeto",o5e="Edite el valor del estado",a5e="Desde",s5e="Último cambio",i5e="Calidad",c5e="Sello de tiempo",l5e="Usuario",u5e="Valor",d5e="Valor",p5e="Advertencia: ¡El trabajo CRON se ejecutará cada minuto durante el período especificado!",f5e="Advertencia: ¡El trabajo CRON se ejecutará cada segundo durante el período especificado!",h5e="CRON",m5e="Fecha",_5e="fechas",g5e="Día",y5e="Día de la semana",v5e="Cada",b5e="cada N días",w5e="cada enésimo día de la semana",x5e="cada N día de la semana",S5e="cada N horas",k5e="cada N minutos",C5e="cada N meses",$5e="cada N segundos",E5e="cada día",T5e="Cada día de la semana",O5e="Cada día de la semana",D5e="cada hora",M5e="cada minuto",N5e="cada mes",P5e="cada segundo",R5e="De",A5e="Horas",I5e="Intervalo",j5e="Intervalo entre",L5e="CRON no válido",F5e="Minutos",z5e="meses",B5e="Una vez",W5e="Período",U5e="Segundos",H5e="Sencillo",q5e="Tiempo específico",V5e="fechas especificas",X5e="día(s) específico(s) de la semana",G5e="día específico de semanas",J5e="horas específicas",Y5e="minutos específicos",K5e="meses específicos",Z5e="segundos específicos",Q5e="Hora",eIe="A",tIe="Mago",rIe="todas",nIe="Día astro",oIe="Noche astro",aIe="Amanecer",sIe="Oscuridad",iIe="hora dorada",cIe="Fin de la hora dorada",lIe="Nadir",uIe="Amanecer náutico",dIe="Anochecer náutico",pIe="Noche",fIe="Fin de la noche",hIe="Mediodía solar",mIe="amanecer",_Ie="Fin del amanecer",gIe="Puesta de sol",yIe="Puesta de sol",vIe="a",bIe="en %s",wIe="cada día",xIe="cada hora",SIe="cada minuto",kIe="cada mes",CIe="cada %s días",$Ie="cada %s horas",EIe="cada %s minutos",TIe="cada %s meses",OIe="cada %s semanas",DIe="cada %s años",MIe="cada semana",NIe="todos los años",PIe="de %s a %s",RIe="Nunca",AIe="en %s de %s",IIe="en %s y %s de",jIe="en cada fecha de",LIe="%s",FIe="%s y %s",zIe="en %s",BIe="en %s y %s",WIe="en los fines de semana",UIe="en días laborables",HIe="ya no se ejecutará más, porque el inicio está en el pasado",qIe="en %s",VIe="de %s",XIe="Ejecutar desde hasta",GIe="a %s",JIe="cada",YIe="Tiempo específico",KIe="de",ZIe="De-a",QIe="Tiempo de intervalo",e4e="invertir; poner boca abajo o en la posición opuesta, orden o arreglo; Boca abajo",t4e="ninguna",r4e="en",n4e="Período",o4e="Diario",a4e="fechas",s4e="Día",i4e="Cada",c4e="Cada día",l4e="Cada mes",u4e="Cada semana",d4e="Todos los años",p4e="Horas",f4e="Minutos",h4e="mes",m4e="Mensual",_4e="Una vez",g4e="Meses específicos",y4e="Semana",v4e="Días laborables",b4e="Fin de semana",w4e="Semanal",x4e="Días laborables",S4e="Año",k4e="Anual",C4e="Tiempo específico",$4e="Hora",E4e="a",T4e="Válido",O4e="de",D4e="a",M4e="Todo el dia",N4e="cada mes",P4e={"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_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:PPe,"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:RPe,"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:APe,"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:IPe,ra_Clear:jPe,"ra_Clear filter":"Filtro claro","ra_Clear icon":"Icono claro","ra_Clone current row":"Clonar fila actual",ra_Close:LPe,"ra_Collapse all nodes":"Contraer todos los nodos","ra_Collapse one step node":"Contraer un nivel",ra_Commercial:FPe,ra_Configure:zPe,"ra_Configure visible columns":"Configurar columnas visibles","ra_Confirm deletion of %s":"Confirmar la eliminación de %s",ra_Connected:BPe,ra_Copied:WPe,"ra_Copied %s":'Copiado "%s"',"ra_Copy content":"Copiar contenido",ra_Create:UPe,"ra_Create alias":"Crear alias","ra_Create folder":"Crear carpeta","ra_Create new folder in %s":"Crear nueva carpeta en %s",ra_Crop:HPe,"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:qPe,ra_Delete:VPe,"ra_Delete (no confirm for 5 mins)":"Eliminar (sin confirmar durante 5 minutos)","ra_Delete current row":"Eliminar fila actual","ra_Deselect all":"Deselecciona todo","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:XPe,ra_Disconnected:GPe,"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_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 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_Error:JPe,"ra_Expand all nodes":"Expandir todos los nodos","ra_Expand one step node":"Expandir un nivel","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:YPe,"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:KPe,"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_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 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:ZPe,"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_Longitude:QPe,'ra_May not trigger "updateLicenses"':'No puede activar "updateLicenses"',ra_Message:eRe,ra_Monday:tRe,"ra_Move down":"Mover hacia abajo","ra_Move up":"Ascender",ra_Name:rRe,"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 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_Objects:nRe,ra_Ok:oRe,"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 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_Private certificate":"certificado privado",ra_Product:aRe,"ra_Public certificate":"Certificado público","ra_Quality code":"Calidad","ra_Refresh tree":"Actualizar árbol","ra_Reload files":"Recargar archivos",ra_Repeat:sRe,ra_Replace:iRe,"ra_Request timed out":"Tiempo de espera agotado","ra_Restrict to folder":"Restringir a carpeta",ra_Root:cRe,ra_Saturday:lRe,ra_Save:uRe,"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:dRe,"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_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:pRe,"ra_Suitable license not found in license manager":"Licencia adecuada no encontrada en el administrador de licencias",ra_Sunday:fRe,"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:hRe,ra_Timestamp:mRe,"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:_Re,"ra_Unknown error":"Error desconocido","ra_Unknown error!":"¡Error desconocido!",ra_Update:gRe,"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:yRe,ra_Value:vRe,ra_Version:bRe,"ra_View file":"Ver archivo","ra_View: %s":"Ver: %s",ra_Wednesday:wRe,ra_Width:xRe,ra_Yes:SRe,"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___different__:kRe,ra_aclEveryone_read_object:CRe,ra_aclEveryone_read_state:$Re,ra_aclEveryone_write_object:ERe,ra_aclEveryone_write_state:TRe,ra_aclGroup_read_object:ORe,ra_aclGroup_read_state:DRe,ra_aclGroup_write_object:MRe,ra_aclGroup_write_state:NRe,ra_aclOwner_read_object:PRe,ra_aclOwner_read_state:RRe,ra_aclOwner_write_object:ARe,ra_aclOwner_write_state:IRe,ra_buttons:jRe,ra_changedFrom:LRe,ra_close:FRe,ra_create_boolean_state:zRe,ra_create_channel:BRe,ra_create_device:WRe,ra_create_number_state:URe,ra_create_state:HRe,ra_create_string_state:qRe,ra_daysShortText:VRe,ra_dow_Fr:XRe,ra_dow_Mo:GRe,ra_dow_Sa:JRe,ra_dow_Su:YRe,ra_dow_Th:KRe,ra_dow_Tu:ZRe,ra_dow_We:QRe,ra_expertMode:eAe,ra_fileType_all:tAe,ra_fileType_audio:rAe,ra_fileType_code:nAe,ra_fileType_images:oAe,ra_fileType_txt:aAe,ra_fileType_video:sAe,"ra_fileType_video,":"Video",ra_filter_customs:iAe,ra_filter_customs_without:cAe,ra_filter_func:lAe,ra_filter_id:uAe,ra_filter_name:dAe,ra_filter_role:pAe,ra_filter_room:fAe,ra_filter_type:hAe,"ra_import data from %s file":"Importar datos del archivo %s",ra_invalidConfig:mAe,ra_lastChange:_Ae,ra_locally:gAe,ra_month_Apr:yAe,ra_month_Aug:vAe,ra_month_Dec:bAe,ra_month_Feb:wAe,ra_month_Jan:xAe,ra_month_Jul:SAe,ra_month_Jun:kAe,ra_month_Mai:CAe,ra_month_Mar:$Ae,ra_month_Nov:EAe,ra_month_Oct:TAe,ra_month_Sep:OAe,ra_months_Apr:DAe,ra_months_Aug:MAe,ra_months_Dec:NAe,ra_months_Feb:PAe,ra_months_Jan:RAe,ra_months_Jul:AAe,ra_months_Jun:IAe,ra_months_Mai:jAe,ra_months_Mar:LAe,ra_months_Nov:FAe,ra_months_Oct:zAe,ra_months_Sep:BAe,ra_none:WAe,ra_object_changed_by:UAe,ra_object_changed_by_user:HAe,ra_otherConfig:qAe,ra_qualityCode:VAe,ra_repeat:XAe,ra_select_folder_hint:GAe,ra_state_changed_by:JAe,ra_state_changed_from:YAe,ra_timestamp:KAe,ra_tooltip_ack:ZAe,ra_tooltip_comment:QAe,ra_tooltip_copyState:e5e,ra_tooltip_customConfig:t5e,ra_tooltip_deleteObject:r5e,ra_tooltip_editObject:n5e,ra_tooltip_editState:o5e,ra_tooltip_from:a5e,ra_tooltip_lc:s5e,ra_tooltip_quality:i5e,ra_tooltip_ts:c5e,ra_tooltip_user:l5e,ra_tooltip_value:u5e,"ra_use seconds":"usar segundos",ra_val:d5e,"ra_via internet":"vía Internet",ra_warning_every_minute:p5e,ra_warning_every_second:f5e,sc_cron:h5e,sc_date:m5e,sc_dates:_5e,sc_dow:g5e,sc_dows:y5e,sc_every:v5e,sc_everyN_dates:b5e,sc_everyN_dow:w5e,sc_everyN_dows:x5e,sc_everyN_hours:S5e,sc_everyN_minutes:k5e,sc_everyN_months:C5e,sc_everyN_seconds:$5e,sc_every_dates:E5e,sc_every_dow:T5e,sc_every_dows:O5e,sc_every_hours:D5e,sc_every_minutes:M5e,sc_every_months:N5e,sc_every_seconds:P5e,sc_from:R5e,sc_hours:A5e,sc_interval:I5e,sc_intervalBetween:j5e,sc_invalid_cron:L5e,sc_minutes:F5e,sc_months:z5e,sc_once:B5e,sc_period:W5e,sc_seconds:U5e,sc_simple:H5e,sc_specific:q5e,sc_specific_dates:V5e,sc_specific_dow:X5e,sc_specific_dows:G5e,sc_specific_hours:J5e,sc_specific_minutes:Y5e,sc_specific_months:K5e,sc_specific_seconds:Z5e,sc_time:Q5e,sc_to:eIe,sc_wizard:tIe,sch_all:rIe,sch_astroDay:nIe,sch_astroNight:oIe,sch_astro_dawn:aIe,sch_astro_dusk:sIe,sch_astro_goldenHour:iIe,sch_astro_goldenHourEnd:cIe,sch_astro_nadir:lIe,sch_astro_nauticalDawn:uIe,sch_astro_nauticalDusk:dIe,sch_astro_night:pIe,sch_astro_nightEnd:fIe,sch_astro_solarNoon:hIe,sch_astro_sunrise:mIe,sch_astro_sunriseEnd:_Ie,sch_astro_sunset:gIe,sch_astro_sunsetStart:yIe,sch_at:vIe,sch_desc_atTime:bIe,sch_desc_everyDay:wIe,sch_desc_everyHour:xIe,sch_desc_everyMinute:SIe,sch_desc_everyMonth:kIe,sch_desc_everyNDay:CIe,sch_desc_everyNHours:$Ie,sch_desc_everyNMinutes:EIe,sch_desc_everyNMonths:TIe,sch_desc_everyNWeeks:OIe,sch_desc_everyNYears:DIe,sch_desc_everyWeek:MIe,sch_desc_everyYear:NIe,sch_desc_intervalFromTo:PIe,sch_desc_never:RIe,sch_desc_onDate:AIe,sch_desc_onDates:IIe,sch_desc_onEveryDate:jIe,sch_desc_onMonth:LIe,sch_desc_onMonths:FIe,sch_desc_onWeekday:zIe,sch_desc_onWeekdays:BIe,sch_desc_onWeekends:WIe,sch_desc_onWorkdays:UIe,sch_desc_onceInPast:HIe,sch_desc_once_on:qIe,sch_desc_validFrom:VIe,sch_desc_validFromTo:XIe,sch_desc_validTo:GIe,sch_every:JIe,sch_exactTime:YIe,sch_from:KIe,sch_fromTo:ZIe,sch_intervalTime:QIe,sch_invert:e4e,sch_no_one:t4e,sch_on:r4e,sch_period:n4e,sch_periodDaily:o4e,sch_periodDates:a4e,sch_periodDay:s4e,sch_periodEvery:i4e,sch_periodEveryDay:c4e,sch_periodEveryMonth:l4e,sch_periodEveryWeek:u4e,sch_periodEveryYear:d4e,sch_periodHours:p4e,sch_periodMinutes:f4e,sch_periodMonth:h4e,sch_periodMonthly:m4e,sch_periodOnce:_4e,sch_periodSpecificMonths:g4e,sch_periodWeek:y4e,sch_periodWeekdays:v4e,sch_periodWeekend:b4e,sch_periodWeekly:w4e,sch_periodWorkdays:x4e,sch_periodYear:S4e,sch_periodYearly:k4e,sch_specificTime:C4e,sch_time:$4e,sch_to:E4e,sch_valid:T4e,sch_validFrom:O4e,sch_validTo:D4e,sch_wholeDay:M4e,sch_yearEveryMonth:N4e},R4e="Dodać",A4e="Anuluj",I4e="Kategorie",j4e="Sprawdzony",L4e="Kasować",F4e="Blisko",z4e="Handlowy",B4e="Konfiguruj",W4e="Połączony",U4e="Skopiowano",H4e="Stwórz",q4e="Przyciąć",V4e="Delete",X4e="Usunąć",G4e="Wyrzucać",J4e="Niepowiązany",Y4e="Błąd",K4e="Filtr",Z4e="Piątek",Q4e="Szerokość",eje="Długość geograficzna",tje="Wiadomość",rje="Poniedziałek",nje="Nazwa",oje="Obiekty",aje="Dobrze",sje="Produkt",ije="Powtarzać",cje="Zastępować",lje="Korzeń",uje="Sobota",dje="Zapisać",pje="Wybrany",fje="Stany",hje="Niedziela",mje="Czwartek",_je="Znak czasu",gje="Wtorek",yje="Aktualizacja",vje="Obowiązuje do",bje="Wartość",wje="Wersja",xje="Środa",Sje="Szerokość",kje="Tak",Cje="różne",$je="Każdy może czytać obiekt",Eje="Każdy może czytać stan",Tje="Każdy może pisać przedmiot",Oje="Każdy może pisać stan",Dje="Grupa może odczytać obiekt",Mje="Grupa może odczytać stan",Nje="Grupa może pisać obiekt",Pje="Grupa może pisać stan",Rje="Właściciel może czytać obiekt",Aje="Właściciel może odczytać stan",Ije="Właściciel może napisać obiekt",jje="Właściciel może pisać stan",Lje="guziki",Fje="Zmieniony z",zje="blisko",Bje="Utwórz stan logiczny",Wje="Utwórz kanał",Uje="Utwórz urządzenie",Hje="Utwórz stan liczbowy",qje="Utwórz stan",Vje="Utwórz stan ciągu",Xje="d.",Gje="Ks",Jje="Mo",Yje="Sa",Kje="Su",Zje="Th",Qje="Tu",e3e="My",t3e="Tryb ekspercki",r3e="Wszystkie pliki",n3e="Audio",o3e="Kod/JSON",a3e="Obrazy",s3e="Tekst",i3e="Wideo",c3e="Ustawienia",l3e="bez",u3e="Funkcjonować",d3e="ID",p3e="Imię",f3e="Rola",h3e="Sala",m3e="Rodzaj",_3e="Nieprawidłowe ustawienia",g3e="Ostatnia zmiana",y3e="lokalnie",v3e="kwiecień",b3e="sierpień",w3e="grudzień",x3e="luty",S3e="styczeń",k3e="lipiec",C3e="czerwiec",$3e="Mai",E3e="Zniszczyć",T3e="listopad",O3e="październik",D3e="wrzesień",M3e="kwiecień",N3e="sierpień",P3e="grudzień",R3e="luty",A3e="styczeń",I3e="lipiec",j3e="czerwiec",L3e="Mai",F3e="Zniszczyć",z3e="listopad",B3e="październik",W3e="wrzesień",U3e="Żaden",H3e="Obiekt zmieniony przez",q3e="Obiekt ostatnio zmieniony o godz",V3e="Ustawienia z innego adaptera %s",X3e="Kod jakości",G3e="powtarzać",J3e="Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.",Y3e="Stan zmieniony przez",K3e="Obiekt zmieniony z",Z3e="Znak czasu",Q3e="Potwierdzon",eLe="Komentarz",tLe="Skopiuj wartość stanu",rLe="Własne ustawienia",nLe="Usuń obiekt",oLe="Edytuj obiekt",aLe="Edytuj wartość stanu",sLe="Z",iLe="Ostatnia zmiana",cLe="Jakość",lLe="Znak czasu",uLe="Użytkownik",dLe="Wartość",pLe="Wartość",fLe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co minutę w określonym przedziale czasowym!",hLe="Ostrzeżenie: Zadanie CRON będzie uruchamiane co sekundę w określonym przedziale czasowym!",mLe="CRON",_Le="Data",gLe="Daktyle",yLe="Dzień",vLe="Dzień tygodnia",bLe="Każdy",wLe="co N dni",xLe="w każdy N-ty dzień tygodnia",SLe="co N dnia tygodnia",kLe="co N godzin",CLe="co N minut",$Le="co N miesięcy",ELe="co N sekund",TLe="codziennie",OLe="każdy dzień tygodnia",DLe="każdy dzień tygodnia",MLe="co godzinę",NLe="każda minuta",PLe="każdego miesiąca",RLe="każda sekunda",ALe="Od",ILe="godziny",jLe="Interwał",LLe="Interwał między",FLe="Nieprawidłowy CRON",zLe="Minuty",BLe="miesięcy",WLe="Pewnego razu",ULe="Kropka",HLe="sekundy",qLe="Prosty",VLe="Określony czas",XLe="konkretne daty",GLe="określone dni tygodnia",JLe="określony dzień tygodni",YLe="określone godziny",KLe="określone minuty",ZLe="określone miesiące",QLe="określone sekundy",eFe="Czas",tFe="Do",rFe="Czarodziej",nFe="wszystko",oFe="Dzień Astro",aFe="Noc Astro",sFe="Świt",iFe="Zmierzch",cFe="złota godzina",lFe="Koniec złotej godziny",uFe="Nadir",dFe="Morski świt",pFe="Morski zmierzch",fFe="Noc",hFe="Koniec nocy",mFe="Południe słoneczne",_Fe="wschód słońca",gFe="Koniec wschodu słońca",yFe="Zachód słońca",vFe="Początek zachodu słońca",bFe="w",wFe="na %s",xFe="codziennie",SFe="co godzinę",kFe="każda minuta",CFe="każdego miesiąca",$Fe="każdego dnia %s",EFe="co %s godzin",TFe="co %s minut",OFe="co %s miesięcy",DFe="co %s tygodni",MFe="co %s lat",NFe="co tydzień",PFe="każdego roku",RFe="od %s do %s",AFe="nigdy",IFe="na %s z %s",jFe="na %s i %s z",LFe="w każdą datę",FFe="%s",zFe="%s i %s",BFe="na %s",WFe="na %s i %s",UFe="w weekendy",HFe="w dni robocze",qFe="nie będzie już wykonywany, ponieważ start jest w przeszłości",VFe="na %s",XFe="z %s",GFe="Wykonaj od do",JFe="do %s",YFe="każdy",KFe="Określony czas",ZFe="od",QFe="Od-do",eze="Czas przerwy",tze="odwracać",rze="Żaden",nze="na",oze="Kropka",aze="Codziennie",sze="Daktyle",ize="Dzień",cze="Każdy",lze="Codziennie",uze="Każdego miesiąca",dze="Co tydzień",pze="Każdego roku",fze="godziny",hze="Minuty",mze="miesiąc",_ze="Miesięczny",gze="Pewnego razu",yze="Określone miesiące",vze="Tydzień",bze="Dni powszednie",wze="Weekend",xze="Co tydzień",Sze="Dni robocze",kze="Rok",Cze="Rocznie",$ze="Określony czas",Eze="Czas",Tze="do",Oze="Ważny",Dze="od",Mze="do",Nze="Cały dzień",Pze="każdego miesiąca",Rze={"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_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:R4e,"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:A4e,"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:I4e,"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:j4e,ra_Clear:L4e,"ra_Clear filter":"Czysty filtr","ra_Clear icon":"Wyczyść ikonę","ra_Clone current row":"Sklonuj bieżący wiersz",ra_Close:F4e,"ra_Collapse all nodes":"Zwiń wszystkie węzły","ra_Collapse one step node":"Zwiń o jeden poziom",ra_Commercial:z4e,ra_Configure:B4e,"ra_Configure visible columns":"Skonfiguruj widoczne kolumny","ra_Confirm deletion of %s":"Potwierdź usunięcie %s",ra_Connected:W4e,ra_Copied:U4e,"ra_Copied %s":'Skopiowano "%s"',"ra_Copy content":"Kopiuj zawartość",ra_Create:H4e,"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:q4e,"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:V4e,ra_Delete:X4e,"ra_Delete (no confirm for 5 mins)":"Usuń (bez potwierdzenia przez 5 minut)","ra_Delete current row":"Usuń bieżący wiersz","ra_Deselect all":"Odznacz wszystko","ra_Device → Channel → State":"Urządzenie → Kanał → Stan",ra_Discard:G4e,ra_Disconnected:J4e,"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_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 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_Error:Y4e,"ra_Expand all nodes":"Rozwiń wszystkie węzły","ra_Expand one step node":"Rozwiń o jeden poziom","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:K4e,"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:Z4e,"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_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 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:Q4e,"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_Longitude:eje,'ra_May not trigger "updateLicenses"':"Może nie uruchamiać „updateLicenses”",ra_Message:tje,ra_Monday:rje,"ra_Move down":"Padnij","ra_Move up":"Podnieść",ra_Name:nje,"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 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_Objects:oje,ra_Ok:aje,"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 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_Private certificate":"Prywatny certyfikat",ra_Product:sje,"ra_Public certificate":"Certyfikat publiczny","ra_Quality code":"Jakości","ra_Refresh tree":"Odśwież drzewo","ra_Reload files":"Załaduj ponownie pliki",ra_Repeat:ije,ra_Replace:cje,"ra_Request timed out":"Upłynął limit czasu żądania","ra_Restrict to folder":"Ogranicz do folderu",ra_Root:lje,ra_Saturday:uje,ra_Save:dje,"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:pje,"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_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:fje,"ra_Suitable license not found in license manager":"Nie znaleziono odpowiedniej licencji w menedżerze licencji",ra_Sunday:hje,"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:mje,ra_Timestamp:_je,"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:gje,"ra_Unknown error":"Nieznany błąd","ra_Unknown error!":"Nieznany błąd!",ra_Update:yje,"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:vje,ra_Value:bje,ra_Version:wje,"ra_View file":"Zobaczyć plik","ra_View: %s":"Widok: %s",ra_Wednesday:xje,ra_Width:Sje,ra_Yes:kje,"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___different__:Cje,ra_aclEveryone_read_object:$je,ra_aclEveryone_read_state:Eje,ra_aclEveryone_write_object:Tje,ra_aclEveryone_write_state:Oje,ra_aclGroup_read_object:Dje,ra_aclGroup_read_state:Mje,ra_aclGroup_write_object:Nje,ra_aclGroup_write_state:Pje,ra_aclOwner_read_object:Rje,ra_aclOwner_read_state:Aje,ra_aclOwner_write_object:Ije,ra_aclOwner_write_state:jje,ra_buttons:Lje,ra_changedFrom:Fje,ra_close:zje,ra_create_boolean_state:Bje,ra_create_channel:Wje,ra_create_device:Uje,ra_create_number_state:Hje,ra_create_state:qje,ra_create_string_state:Vje,ra_daysShortText:Xje,ra_dow_Fr:Gje,ra_dow_Mo:Jje,ra_dow_Sa:Yje,ra_dow_Su:Kje,ra_dow_Th:Zje,ra_dow_Tu:Qje,ra_dow_We:e3e,ra_expertMode:t3e,ra_fileType_all:r3e,ra_fileType_audio:n3e,ra_fileType_code:o3e,ra_fileType_images:a3e,ra_fileType_txt:s3e,ra_fileType_video:i3e,"ra_fileType_video,":"Wideo",ra_filter_customs:c3e,ra_filter_customs_without:l3e,ra_filter_func:u3e,ra_filter_id:d3e,ra_filter_name:p3e,ra_filter_role:f3e,ra_filter_room:h3e,ra_filter_type:m3e,"ra_import data from %s file":"Importuj dane z pliku %s",ra_invalidConfig:_3e,ra_lastChange:g3e,ra_locally:y3e,ra_month_Apr:v3e,ra_month_Aug:b3e,ra_month_Dec:w3e,ra_month_Feb:x3e,ra_month_Jan:S3e,ra_month_Jul:k3e,ra_month_Jun:C3e,ra_month_Mai:$3e,ra_month_Mar:E3e,ra_month_Nov:T3e,ra_month_Oct:O3e,ra_month_Sep:D3e,ra_months_Apr:M3e,ra_months_Aug:N3e,ra_months_Dec:P3e,ra_months_Feb:R3e,ra_months_Jan:A3e,ra_months_Jul:I3e,ra_months_Jun:j3e,ra_months_Mai:L3e,ra_months_Mar:F3e,ra_months_Nov:z3e,ra_months_Oct:B3e,ra_months_Sep:W3e,ra_none:U3e,ra_object_changed_by:H3e,ra_object_changed_by_user:q3e,ra_otherConfig:V3e,ra_qualityCode:X3e,ra_repeat:G3e,ra_select_folder_hint:J3e,ra_state_changed_by:Y3e,ra_state_changed_from:K3e,ra_timestamp:Z3e,ra_tooltip_ack:Q3e,ra_tooltip_comment:eLe,ra_tooltip_copyState:tLe,ra_tooltip_customConfig:rLe,ra_tooltip_deleteObject:nLe,ra_tooltip_editObject:oLe,ra_tooltip_editState:aLe,ra_tooltip_from:sLe,ra_tooltip_lc:iLe,ra_tooltip_quality:cLe,ra_tooltip_ts:lLe,ra_tooltip_user:uLe,ra_tooltip_value:dLe,"ra_use seconds":"użyj sekund",ra_val:pLe,"ra_via internet":"przez internet",ra_warning_every_minute:fLe,ra_warning_every_second:hLe,sc_cron:mLe,sc_date:_Le,sc_dates:gLe,sc_dow:yLe,sc_dows:vLe,sc_every:bLe,sc_everyN_dates:wLe,sc_everyN_dow:xLe,sc_everyN_dows:SLe,sc_everyN_hours:kLe,sc_everyN_minutes:CLe,sc_everyN_months:$Le,sc_everyN_seconds:ELe,sc_every_dates:TLe,sc_every_dow:OLe,sc_every_dows:DLe,sc_every_hours:MLe,sc_every_minutes:NLe,sc_every_months:PLe,sc_every_seconds:RLe,sc_from:ALe,sc_hours:ILe,sc_interval:jLe,sc_intervalBetween:LLe,sc_invalid_cron:FLe,sc_minutes:zLe,sc_months:BLe,sc_once:WLe,sc_period:ULe,sc_seconds:HLe,sc_simple:qLe,sc_specific:VLe,sc_specific_dates:XLe,sc_specific_dow:GLe,sc_specific_dows:JLe,sc_specific_hours:YLe,sc_specific_minutes:KLe,sc_specific_months:ZLe,sc_specific_seconds:QLe,sc_time:eFe,sc_to:tFe,sc_wizard:rFe,sch_all:nFe,sch_astroDay:oFe,sch_astroNight:aFe,sch_astro_dawn:sFe,sch_astro_dusk:iFe,sch_astro_goldenHour:cFe,sch_astro_goldenHourEnd:lFe,sch_astro_nadir:uFe,sch_astro_nauticalDawn:dFe,sch_astro_nauticalDusk:pFe,sch_astro_night:fFe,sch_astro_nightEnd:hFe,sch_astro_solarNoon:mFe,sch_astro_sunrise:_Fe,sch_astro_sunriseEnd:gFe,sch_astro_sunset:yFe,sch_astro_sunsetStart:vFe,sch_at:bFe,sch_desc_atTime:wFe,sch_desc_everyDay:xFe,sch_desc_everyHour:SFe,sch_desc_everyMinute:kFe,sch_desc_everyMonth:CFe,sch_desc_everyNDay:$Fe,sch_desc_everyNHours:EFe,sch_desc_everyNMinutes:TFe,sch_desc_everyNMonths:OFe,sch_desc_everyNWeeks:DFe,sch_desc_everyNYears:MFe,sch_desc_everyWeek:NFe,sch_desc_everyYear:PFe,sch_desc_intervalFromTo:RFe,sch_desc_never:AFe,sch_desc_onDate:IFe,sch_desc_onDates:jFe,sch_desc_onEveryDate:LFe,sch_desc_onMonth:FFe,sch_desc_onMonths:zFe,sch_desc_onWeekday:BFe,sch_desc_onWeekdays:WFe,sch_desc_onWeekends:UFe,sch_desc_onWorkdays:HFe,sch_desc_onceInPast:qFe,sch_desc_once_on:VFe,sch_desc_validFrom:XFe,sch_desc_validFromTo:GFe,sch_desc_validTo:JFe,sch_every:YFe,sch_exactTime:KFe,sch_from:ZFe,sch_fromTo:QFe,sch_intervalTime:eze,sch_invert:tze,sch_no_one:rze,sch_on:nze,sch_period:oze,sch_periodDaily:aze,sch_periodDates:sze,sch_periodDay:ize,sch_periodEvery:cze,sch_periodEveryDay:lze,sch_periodEveryMonth:uze,sch_periodEveryWeek:dze,sch_periodEveryYear:pze,sch_periodHours:fze,sch_periodMinutes:hze,sch_periodMonth:mze,sch_periodMonthly:_ze,sch_periodOnce:gze,sch_periodSpecificMonths:yze,sch_periodWeek:vze,sch_periodWeekdays:bze,sch_periodWeekend:wze,sch_periodWeekly:xze,sch_periodWorkdays:Sze,sch_periodYear:kze,sch_periodYearly:Cze,sch_specificTime:$ze,sch_time:Eze,sch_to:Tze,sch_valid:Oze,sch_validFrom:Dze,sch_validTo:Mze,sch_wholeDay:Nze,sch_yearEveryMonth:Pze},Aze="Додайте",Ize="Скасувати",jze="Категорії",Lze="Перевірено",Fze="Видалити",zze="Закрити",Bze="Комерційний",Wze="Налаштувати",Uze="Підключено",Hze="Скопійовано",qze="Створити",Vze="Урожай",Xze="Delete",Gze="Видалити",Jze="Відкинути",Yze="Відключено",Kze="Помилка",Zze="фільтр",Qze="П'ятниця",e6e="Широта",t6e="Довгота",r6e="повідомлення",n6e="понеділок",o6e="Ім'я",a6e="Об'єкти",s6e="В порядку",i6e="Продукт",c6e="Повторіть",l6e="Замінити",u6e="Корінь",d6e="Субота",p6e="зберегти",f6e="Вибране",h6e="держави",m6e="неділя",_6e="четвер",g6e="Мітка часу",y6e="вівторок",v6e="оновлення",b6e="Дійсний до",w6e="Значення",x6e="Версія",S6e="Середа",k6e="Ширина",C6e="Так",$6e="інший",E6e="Кожен може читати об'єкт",T6e="Кожен може читати стан",O6e="Кожен може написати об'єкт",D6e="Кожен може написати стан",M6e="Група може читати об'єкт",N6e="Група може читати стан",P6e="Група може писати об'єкт",R6e="Група може писати стан",A6e="Власник може читати об'єкт",I6e="Власник може читати стан",j6e="Власник може написати об'єкт",L6e="Власник може написати стан",F6e="кнопки",z6e="Змінено з",B6e="закрити",W6e="Створіть логічний стан",U6e="Створити канал",H6e="Створити пристрій",q6e="Створити номерний стан",V6e="Створити состояние",X6e="Створити рядковий стан",G6e="днів",J6e="О",Y6e="пн",K6e="Sa",Z6e="Нд",Q6e="чт",e8e="вт",t8e="ми",r8e="Експертний режим",n8e="Всі файли",o8e="Аудіо",a8e="Код/JSON",s8e="Зображення",i8e="текст",c8e="відео",l8e="Налаштування",u8e="без",d8e="функція",p8e="ID",f8e="Ім'я",h8e="Роль",m8e="Кімната",_8e="Тип",g8e="Недійсні налаштування",y8e="Остання зміна",v8e="локально",b8e="квіт",w8e="серп",x8e="груд",S8e="лютий",k8e="січня",C8e="лип",$8e="черв",E8e="травень",T8e="березень",O8e="Листопад",D8e="жовт",M8e="вер",N8e="квіт",P8e="серп",R8e="груд",A8e="лютий",I8e="січня",j8e="лип",L8e="черв",F8e="травень",z8e="березень",B8e="Листопад",W8e="жовт",U8e="вер",H8e="немає",q8e="Об'єкт змінено",V8e="Об'єкт востаннє змінено о",X8e="Налаштування з іншого адаптера %s",G8e="Код якості",J8e="повторити",Y8e="Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».",K8e="Стан змінено на",Z8e="Об'єкт змінено з",Q8e="Мітка часу",e9e="Визнано",t9e="коментар",r9e="Скопіюйте значення стану",n9e="Спеціальні налаштування",o9e="Видалити об'єкт",a9e="Редагувати об'єкт",s9e="Відредагуйте значення стану",i9e="Від",c9e="Востаннє змінено",l9e="якість",u9e="Позначка часу",d9e="Користувач",p9e="Значення",f9e="Значення",h9e="Попередження: завдання CRON виконуватиметься щохвилини протягом зазначеного періоду!",m9e="Попередження: завдання CRON виконуватиметься кожну секунду протягом зазначеного періоду!",_9e="CRON",g9e="Дата",y9e="дати",v9e="День",b9e="День тижня",w9e="кожен",x9e="кожні N днів",S9e="кожен N-й день тижня",k9e="кожні N днів тижня",C9e="кожні N годин",$9e="кожні N хвилин",E9e="кожні N місяців",T9e="кожні N секунд",O9e="кожен день",D9e="кожен день тижня",M9e="кожен день тижня",N9e="щогодини",P9e="кожну хвилину",R9e="щомісяця",A9e="кожна секунда",I9e="Від",j9e="години",L9e="Інтервал",F9e="Інтервал між",z9e="Недійсний CRON",B9e="хвилин",W9e="місяців",U9e="Один раз",H9e="Крапка",q9e="секунд",V9e="просто",X9e="Конкретний час",G9e="конкретні дати",J9e="конкретний день (дні) тижня",Y9e="конкретний день тижня",K9e="конкретні години",Z9e="конкретні хвилини",Q9e="конкретні місяці",eBe="конкретні секунди",tBe="час",rBe="до",nBe="майстер",oBe="все",aBe="Астродень",sBe="Астро ніч",iBe="Світанок",cBe="Сутінки",lBe="Золота година",uBe="Кінець золотої години",dBe="Надір",pBe="Морський світанок",fBe="Морські сутінки",hBe="ніч",mBe="Кінець ночі",_Be="Сонячний полудень",gBe="Схід сонця",yBe="Кінець сходу сонця",vBe="Захід сонця",bBe="Початок заходу сонця",wBe="в",xBe="в %s",SBe="кожен день",kBe="щогодини",CBe="кожну хвилину",$Be="щомісяця",EBe="кожен %s день",TBe="кожні %s годин",OBe="кожні %s хвилин",DBe="кожні %s місяців",MBe="кожні %s тижнів",NBe="кожні %s років",PBe="щотижня",RBe="щороку",ABe="від %s до %s",IBe="ніколи",jBe="на %s з %s",LBe="на %s і %s з",FBe="на кожну дату",zBe="%s",BBe="%s і %s",WBe="на %s",UBe="на %s і %s",HBe="на вихідних",qBe="в робочі дні",VBe="більше не виконуватиметься, оскільки запуск у минулому",XBe="на %s",GBe="від %s",JBe="Виконати від до",YBe="до %s",KBe="кожен",ZBe="Конкретний час",QBe="від",e7e="Від до",t7e="Час інтервалу",r7e="інвертувати",n7e="немає",o7e="на",a7e="Крапка",s7e="Щодня",i7e="дати",c7e="День",l7e="кожен",u7e="Кожен день",d7e="Щомісяця",p7e="Щотижня",f7e="Щороку",h7e="години",m7e="хвилин",_7e="місяць",g7e="Щомісяця",y7e="Один раз",v7e="Конкретні місяці",b7e="тиждень",w7e="будні",x7e="Вихідні",S7e="Щотижня",k7e="робочі дні",C7e="рік",$7e="щорічно",E7e="Конкретний час",T7e="час",O7e="до",D7e="Дійсний",M7e="від",N7e="до",P7e="Цілий день",R7e="щомісяця",A7e={"ra_%s links from aliases":"%s посилань із псевдонімів","ra_%s object(s) processed":"Оброблено %s об’єктів","ra_%s was imported":"%s було імпортовано","ra_Accept license":"Прийняти ліцензію","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:Aze,"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:Ize,"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:jze,"ra_Chained certificate":"Прикутий сертифікат","ra_Change color theme":"Змінити кольорову тему","ra_Changed from":"Змінено з","ra_Channel → State":"Канал → Стан","ra_Check license":"Перевірити ліцензію",ra_Checked:Lze,ra_Clear:Fze,"ra_Clear filter":"Очистити фільтр","ra_Clear icon":"Очистити значок","ra_Clone current row":"Клонувати поточний рядок",ra_Close:zze,"ra_Collapse all nodes":"Згорнути всі вузли","ra_Collapse one step node":"Згорнути на один рівень",ra_Commercial:Bze,ra_Configure:Wze,"ra_Configure visible columns":"Налаштувати видимі стовпці","ra_Confirm deletion of %s":"Підтвердити видалення %s",ra_Connected:Uze,ra_Copied:Hze,"ra_Copied %s":'Скопійовано "%s"',"ra_Copy content":"Скопіюйте вміст",ra_Create:qze,"ra_Create alias":"Створити псевдонім","ra_Create folder":"Створити папку","ra_Create new folder in %s":"Створіть нову папку в %s",ra_Crop:Vze,"ra_Define CRON...":"Визначити CRON...","ra_Define functions":"Визначити функції","ra_Define rooms":"Визначте кімнати","ra_Define schedule":"Визначити розклад","ra_Define schedule...":"Визначити розклад...",ra_Del:Xze,ra_Delete:Gze,"ra_Delete (no confirm for 5 mins)":"Видалити (без підтвердження протягом 5 хвилин)","ra_Delete current row":"Видалити поточний рядок","ra_Deselect all":"Скасувати вибір усіх","ra_Device → Channel → State":"Пристрій → Канал → Стан",ra_Discard:Jze,ra_Disconnected:Yze,"ra_Do not export values of states":"Не експортуйте значення станів","ra_Do not use let's encrypt":"Не використовуйте let's encrypt","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 function":"функція редагування","ra_Edit object field":"Поле редагування об'єкта","ra_Edit role":"Редагувати роль","ra_Edit room":"Редагувати кімнату","ra_Edit value":"Редагувати значення",ra_Error:Kze,"ra_Expand all nodes":"Розгорнути всі вузли","ra_Expand one step node":"Розгорніть один рівень","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:Zze,"ra_Filter files":"Фільтр файлів","ra_Folder name":"Назва папки","ra_Folder → Channel → State":"Папка → Канал → Стан","ra_Folder → Device → Channel → State":"Папка → Пристрій → Канал → Стан","ra_Folder → State":"Папка → Стан","ra_Folders always first":"Папки завжди першими",ra_Friday:Qze,"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_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 answer from server":"Недійсна відповідь від сервера","ra_Invalid parent folder!":"Недійсна батьківська папка!","ra_Invalid structure":"Недійсна структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Остання зміна",ra_Latitude:e6e,"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_Longitude:t6e,'ra_May not trigger "updateLicenses"':'Може не запускати "updateLicenses"',ra_Message:r6e,ra_Monday:n6e,"ra_Move down":"Рухатися вниз","ra_Move up":"Рухатися вгору",ra_Name:o6e,"ra_No data found in file":"Немає даних у файлі","ra_No one license found in license manager":"У менеджері ліцензій не знайдено жодної ліцензії","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_Objects:a6e,ra_Ok:s6e,"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 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_Private certificate":"Приватний сертифікат",ra_Product:i6e,"ra_Public certificate":"Публічний сертифікат","ra_Quality code":"якість","ra_Refresh tree":"Оновити дерево","ra_Reload files":"Перезавантажте файли",ra_Repeat:c6e,ra_Replace:l6e,"ra_Request timed out":"Час запиту вичерпано","ra_Restrict to folder":"Обмежити папкою",ra_Root:u6e,ra_Saturday:d6e,ra_Save:p6e,"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:f6e,"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_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:h6e,"ra_Suitable license not found in license manager":"Відповідна ліцензія не знайдена в менеджері ліцензій",ra_Sunday:m6e,"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:_6e,ra_Timestamp:g6e,"ra_Toggle expert mode":"Перемкнути експертний режим","ra_Toggle the states view":"Перемкнути перегляд штатів","ra_Toggle view mode":"Перемкнути режим перегляду","ra_Too big":"Занадто великий","ra_Too small":"Занадто малий","ra_Transparent dialog":"Прозорий діалог",ra_Tuesday:y6e,"ra_Unknown error":"Невідома помилка","ra_Unknown error!":"Невідома помилка!",ra_Update:v6e,"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:b6e,ra_Value:w6e,ra_Version:x6e,"ra_View file":"Переглянути файл","ra_View: %s":"Перегляд: %s",ra_Wednesday:S6e,ra_Width:k6e,ra_Yes:C6e,"ra_You can export all objects or just the selected branch.":"Ви можете експортувати всі об’єкти або лише вибрану гілку.","ra_You can filter entries by entering here some text":"Ви можете фільтрувати записи, ввівши тут певний текст",ra___different__:$6e,ra_aclEveryone_read_object:E6e,ra_aclEveryone_read_state:T6e,ra_aclEveryone_write_object:O6e,ra_aclEveryone_write_state:D6e,ra_aclGroup_read_object:M6e,ra_aclGroup_read_state:N6e,ra_aclGroup_write_object:P6e,ra_aclGroup_write_state:R6e,ra_aclOwner_read_object:A6e,ra_aclOwner_read_state:I6e,ra_aclOwner_write_object:j6e,ra_aclOwner_write_state:L6e,ra_buttons:F6e,ra_changedFrom:z6e,ra_close:B6e,ra_create_boolean_state:W6e,ra_create_channel:U6e,ra_create_device:H6e,ra_create_number_state:q6e,ra_create_state:V6e,ra_create_string_state:X6e,ra_daysShortText:G6e,ra_dow_Fr:J6e,ra_dow_Mo:Y6e,ra_dow_Sa:K6e,ra_dow_Su:Z6e,ra_dow_Th:Q6e,ra_dow_Tu:e8e,ra_dow_We:t8e,ra_expertMode:r8e,ra_fileType_all:n8e,ra_fileType_audio:o8e,ra_fileType_code:a8e,ra_fileType_images:s8e,ra_fileType_txt:i8e,ra_fileType_video:c8e,"ra_fileType_video,":"відео",ra_filter_customs:l8e,ra_filter_customs_without:u8e,ra_filter_func:d8e,ra_filter_id:p8e,ra_filter_name:f8e,ra_filter_role:h8e,ra_filter_room:m8e,ra_filter_type:_8e,"ra_import data from %s file":"Імпортувати дані з файлу %s",ra_invalidConfig:g8e,ra_lastChange:y8e,ra_locally:v8e,ra_month_Apr:b8e,ra_month_Aug:w8e,ra_month_Dec:x8e,ra_month_Feb:S8e,ra_month_Jan:k8e,ra_month_Jul:C8e,ra_month_Jun:$8e,ra_month_Mai:E8e,ra_month_Mar:T8e,ra_month_Nov:O8e,ra_month_Oct:D8e,ra_month_Sep:M8e,ra_months_Apr:N8e,ra_months_Aug:P8e,ra_months_Dec:R8e,ra_months_Feb:A8e,ra_months_Jan:I8e,ra_months_Jul:j8e,ra_months_Jun:L8e,ra_months_Mai:F8e,ra_months_Mar:z8e,ra_months_Nov:B8e,ra_months_Oct:W8e,ra_months_Sep:U8e,ra_none:H8e,ra_object_changed_by:q8e,ra_object_changed_by_user:V8e,ra_otherConfig:X8e,ra_qualityCode:G8e,ra_repeat:J8e,ra_select_folder_hint:Y8e,ra_state_changed_by:K8e,ra_state_changed_from:Z8e,ra_timestamp:Q8e,ra_tooltip_ack:e9e,ra_tooltip_comment:t9e,ra_tooltip_copyState:r9e,ra_tooltip_customConfig:n9e,ra_tooltip_deleteObject:o9e,ra_tooltip_editObject:a9e,ra_tooltip_editState:s9e,ra_tooltip_from:i9e,ra_tooltip_lc:c9e,ra_tooltip_quality:l9e,ra_tooltip_ts:u9e,ra_tooltip_user:d9e,ra_tooltip_value:p9e,"ra_use seconds":"використовуйте секунди",ra_val:f9e,"ra_via internet":"через інтернет",ra_warning_every_minute:h9e,ra_warning_every_second:m9e,sc_cron:_9e,sc_date:g9e,sc_dates:y9e,sc_dow:v9e,sc_dows:b9e,sc_every:w9e,sc_everyN_dates:x9e,sc_everyN_dow:S9e,sc_everyN_dows:k9e,sc_everyN_hours:C9e,sc_everyN_minutes:$9e,sc_everyN_months:E9e,sc_everyN_seconds:T9e,sc_every_dates:O9e,sc_every_dow:D9e,sc_every_dows:M9e,sc_every_hours:N9e,sc_every_minutes:P9e,sc_every_months:R9e,sc_every_seconds:A9e,sc_from:I9e,sc_hours:j9e,sc_interval:L9e,sc_intervalBetween:F9e,sc_invalid_cron:z9e,sc_minutes:B9e,sc_months:W9e,sc_once:U9e,sc_period:H9e,sc_seconds:q9e,sc_simple:V9e,sc_specific:X9e,sc_specific_dates:G9e,sc_specific_dow:J9e,sc_specific_dows:Y9e,sc_specific_hours:K9e,sc_specific_minutes:Z9e,sc_specific_months:Q9e,sc_specific_seconds:eBe,sc_time:tBe,sc_to:rBe,sc_wizard:nBe,sch_all:oBe,sch_astroDay:aBe,sch_astroNight:sBe,sch_astro_dawn:iBe,sch_astro_dusk:cBe,sch_astro_goldenHour:lBe,sch_astro_goldenHourEnd:uBe,sch_astro_nadir:dBe,sch_astro_nauticalDawn:pBe,sch_astro_nauticalDusk:fBe,sch_astro_night:hBe,sch_astro_nightEnd:mBe,sch_astro_solarNoon:_Be,sch_astro_sunrise:gBe,sch_astro_sunriseEnd:yBe,sch_astro_sunset:vBe,sch_astro_sunsetStart:bBe,sch_at:wBe,sch_desc_atTime:xBe,sch_desc_everyDay:SBe,sch_desc_everyHour:kBe,sch_desc_everyMinute:CBe,sch_desc_everyMonth:$Be,sch_desc_everyNDay:EBe,sch_desc_everyNHours:TBe,sch_desc_everyNMinutes:OBe,sch_desc_everyNMonths:DBe,sch_desc_everyNWeeks:MBe,sch_desc_everyNYears:NBe,sch_desc_everyWeek:PBe,sch_desc_everyYear:RBe,sch_desc_intervalFromTo:ABe,sch_desc_never:IBe,sch_desc_onDate:jBe,sch_desc_onDates:LBe,sch_desc_onEveryDate:FBe,sch_desc_onMonth:zBe,sch_desc_onMonths:BBe,sch_desc_onWeekday:WBe,sch_desc_onWeekdays:UBe,sch_desc_onWeekends:HBe,sch_desc_onWorkdays:qBe,sch_desc_onceInPast:VBe,sch_desc_once_on:XBe,sch_desc_validFrom:GBe,sch_desc_validFromTo:JBe,sch_desc_validTo:YBe,sch_every:KBe,sch_exactTime:ZBe,sch_from:QBe,sch_fromTo:e7e,sch_intervalTime:t7e,sch_invert:r7e,sch_no_one:n7e,sch_on:o7e,sch_period:a7e,sch_periodDaily:s7e,sch_periodDates:i7e,sch_periodDay:c7e,sch_periodEvery:l7e,sch_periodEveryDay:u7e,sch_periodEveryMonth:d7e,sch_periodEveryWeek:p7e,sch_periodEveryYear:f7e,sch_periodHours:h7e,sch_periodMinutes:m7e,sch_periodMonth:_7e,sch_periodMonthly:g7e,sch_periodOnce:y7e,sch_periodSpecificMonths:v7e,sch_periodWeek:b7e,sch_periodWeekdays:w7e,sch_periodWeekend:x7e,sch_periodWeekly:S7e,sch_periodWorkdays:k7e,sch_periodYear:C7e,sch_periodYearly:$7e,sch_specificTime:E7e,sch_time:T7e,sch_to:O7e,sch_valid:D7e,sch_validFrom:M7e,sch_validTo:N7e,sch_wholeDay:P7e,sch_yearEveryMonth:R7e},I7e="附加",j7e="取消",L7e="类别",F7e="勾选",z7e="删除",B7e="关",W7e="商业的",U7e="配置",H7e="连接的",q7e="复制的",V7e="创建",X7e="庄稼",G7e="Delete",J7e="删除",Y7e="丢弃",K7e="断开连接",Z7e="错误",Q7e="筛选",eWe="星期五",tWe="纬度",rWe="经度",nWe="信息",oWe="周一",aWe="姓名",sWe="对象",iWe="好",cWe="产品",lWe="重复",uWe="代替",dWe="根",pWe="周六",fWe="保存",hWe="已选",mWe="状态",_We="星期日",gWe="周四",yWe="时间戳记",vWe="周二",bWe="更新资料",wWe="有效期至",xWe="值",SWe="版本",kWe="周三",CWe="宽度",$We="是的",EWe="不同的",TWe="每个人都可以阅读对象",OWe="每个人都可以阅读状态",DWe="每个人都可以写对象",MWe="每个人都可以写状态",NWe="组可以读取对象",PWe="群组可以读取状态",RWe="组可以写对象",AWe="组可以写状态",IWe="所有者可以读取对象",jWe="所有者可以读取状态",LWe="所有者可以写对象",FWe="所有者可以写状态",zWe="纽扣",BWe="更改为",WWe="关闭",UWe="创建布尔状态",HWe="创建频道",qWe="创建设备",VWe="创建号码状态",XWe="创建状态",GWe="创建字符串状态",JWe="天",YWe="r",KWe="莫",ZWe="萨",QWe="苏",eUe="Th",tUe="Tu",rUe="我们",nUe="专家模式",oUe="所有文件",aUe="声音的",sUe="代码/JSON",iUe="图片",cUe="文本",lUe="视频",uUe="设定值",dUe="没有",pUe="功能",fUe="ID",hUe="名称",mUe="角色",_Ue="房间",gUe="类型",yUe="无效的设定",vUe="最后一次变更",bUe="本地",wUe="4月",xUe="八月",SUe="十二月",kUe="二月",CUe="简",$Ue="七月",EUe="君",TUe="迈",OUe="三月",DUe="十一月",MUe="十月",NUe="九月",PUe="4月",RUe="八月",AUe="十二月",IUe="二月",jUe="简",LUe="七月",FUe="君",zUe="迈",BUe="三月",WUe="十一月",UUe="十月",HUe="九月",qUe="没有任何",VUe="物件变更者",XUe="对象上次更改时间为",GUe="来自其他适配器%s的设置",JUe="质量代码",YUe="重复",KUe="要选择文件夹,只需按住“shift”键单击文件夹即可。",ZUe="状态由",QUe="对象已从更改",eHe="时间戳记",tHe="致谢国旗",rHe="评论",nHe="复制状态值",oHe="自定义设置",aHe="删除物件",sHe="编辑物件",iHe="编辑状态值",cHe="从",lHe="最后改变了",uHe="质量",dHe="时间戳",pHe="用户",fHe="值",hHe="值",mHe="警告:CRON 作业将在指定期间内每分钟运行一次!",_He="警告:CRON 作业将在指定期间内每秒运行一次!",gHe="周期任务",yHe="日期",vHe="日",bHe="天",wHe="星期",xHe="每",SHe="每N天",kHe="每周的第 N 天",CHe="每周N天",$He="每N小时一次",EHe="每N分钟",THe="每N个月",OHe="每N秒",DHe="每天",MHe="一周的每一天",NHe="一周的每一天",PHe="每小时",RHe="每分钟",AHe="每月",IHe="每秒",jHe="从",LHe="小时",FHe="间隔",zHe="间隔时间",BHe="无效的 CRON",WHe="分钟",UHe="月",HHe="一次",qHe="周期",VHe="秒",XHe="简单模式",GHe="特定的时间",JHe="特定的日子",YHe="一周中的特定日子",KHe="特定的一周",ZHe="特定的小时",QHe="特定的分钟",eqe="特定的月份",tqe="特定的描述",rqe="时间",nqe="至",oqe="向导模式",aqe="全选",sqe="天文白天",iqe="天文夜晚",cqe="黎明",lqe="黄昏",uqe="黄金时段",dqe="黄金时段结束",pqe="天底",fqe="航海黎明",hqe="航海黄昏",mqe="夜晚",_qe="夜晚结束",gqe="正午",yqe="日出",vqe="日出结束",bqe="日落",wqe="日落开始",xqe="在",Sqe="的%s",kqe="每天",Cqe="每小时",$qe="每分钟",Eqe="每月",Tqe="每%s天",Oqe="每%s小时",Dqe="每%s分钟",Mqe="每%s月",Nqe="每%s周",Pqe="每%s年",Rqe="每周",Aqe="每年",Iqe="从%s到%s",jqe="决不",Lqe="在%s的%s上",Fqe="在%s和%s上",zqe="在每天",Bqe="%s",Wqe="%s和%s",Uqe="在%s上",Hqe="在%s和%s上",qqe="在周末",Vqe="在工作日",Xqe="将不再执行,因为起始时间已经是过去的时间了。",Gqe="在%s上",Jqe="来自%s",Yqe="从执行到",Kqe="到%s",Zqe="每",Qqe="特定的时间",eVe="从",tVe="从到",rVe="间隔时间",nVe="倒置",oVe="取消全选",aVe="的",sVe="周期",iVe="每天",cVe="日期",lVe="天",uVe="每",dVe="每天",pVe="每月",fVe="每周",hVe="每年",mVe="小时",_Ve="分钟",gVe="月",yVe="每月一次",vVe="一次",bVe="特定的月份",wVe="周",xVe="工作日",SVe="周末",kVe="每周",CVe="工作日",$Ve="年",EVe="每年",TVe="特定的时间",OVe="时间",DVe="至",MVe="生效",NVe="从",PVe="至",RVe="一整天",AVe="每月",IVe={"ra_%s links from aliases":"来自别名的 %s 个链接","ra_%s object(s) processed":"已处理%s个对象","ra_%s was imported":"对象已导入","ra_Accept license":"接受许可","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:I7e,"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:j7e,"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:L7e,"ra_Chained certificate":"链式证书","ra_Change color theme":"更改颜色主题","ra_Changed from":"更改为","ra_Channel → State":"频道→状态","ra_Check license":"检查许可证",ra_Checked:F7e,ra_Clear:z7e,"ra_Clear filter":"清除筛选","ra_Clear icon":"清除图标","ra_Clone current row":"克隆当前行",ra_Close:B7e,"ra_Collapse all nodes":"收合所有节点","ra_Collapse one step node":"折叠一级",ra_Commercial:W7e,ra_Configure:U7e,"ra_Configure visible columns":"配置可见列","ra_Confirm deletion of %s":"确认删除%s",ra_Connected:H7e,ra_Copied:q7e,"ra_Copied %s":'复制的"%s"',"ra_Copy content":"复制内容",ra_Create:V7e,"ra_Create alias":"创建别名","ra_Create folder":"创建文件夹","ra_Create new folder in %s":"在%s中创建新文件夹",ra_Crop:X7e,"ra_Define CRON...":"定义 CRON...","ra_Define functions":"定义功能","ra_Define rooms":"定义房间","ra_Define schedule":"定义时间表","ra_Define schedule...":"定义时间表...",ra_Del:G7e,ra_Delete:J7e,"ra_Delete (no confirm for 5 mins)":"删除(5分钟内未确认)","ra_Delete current row":"删除当前行","ra_Deselect all":"全部取消选择","ra_Device → Channel → State":"设备→频道→状态",ra_Discard:Y7e,ra_Disconnected:K7e,"ra_Do not export values of states":"不导出状态值","ra_Do not use let's encrypt":"不要使用让我们加密","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 function":"编辑功能","ra_Edit object field":"编辑对象字段","ra_Edit role":"编辑角色","ra_Edit room":"编辑室","ra_Edit value":"编辑值",ra_Error:Z7e,"ra_Expand all nodes":"展开所有节点","ra_Expand one step node":"扩大一级","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:Q7e,"ra_Filter files":"过滤文件","ra_Folder name":"文件夹名称","ra_Folder → Channel → State":"文件夹→频道→状态","ra_Folder → Device → Channel → State":"文件夹→设备→频道→状态","ra_Folder → State":"文件夹→状态","ra_Folders always first":"资料夹永远优先",ra_Friday:eWe,"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_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 answer from server":"来自服务器的无效答案","ra_Invalid parent folder!":"父文件夹无效!","ra_Invalid structure":"结构无效","ra_JSON editor":"JSON 编辑器","ra_Last change":"最后一次变更",ra_Latitude:tWe,"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_Longitude:rWe,'ra_May not trigger "updateLicenses"':"可能不会触发“updateLicenses”",ra_Message:nWe,ra_Monday:oWe,"ra_Move down":"下移","ra_Move up":"提升",ra_Name:aWe,"ra_No data found in file":"文件中未找到数据","ra_No one license found in license manager":"许可证管理器中未找到任何许可证","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_Objects:sWe,ra_Ok:iWe,"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 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_Private certificate":"私有证书",ra_Product:cWe,"ra_Public certificate":"公共证书","ra_Quality code":"质量代码","ra_Refresh tree":"刷新树","ra_Reload files":"重新载入文件",ra_Repeat:lWe,ra_Replace:uWe,"ra_Request timed out":"请求超时","ra_Restrict to folder":"限制到文件夹",ra_Root:dWe,ra_Saturday:pWe,ra_Save:fWe,"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:hWe,"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_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:mWe,"ra_Suitable license not found in license manager":"在许可证管理器中找不到合适的许可证",ra_Sunday:_We,"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:gWe,ra_Timestamp:yWe,"ra_Toggle expert mode":"切换专家模式","ra_Toggle the states view":"切换状态视图","ra_Toggle view mode":"切换检视模式","ra_Too big":"太大","ra_Too small":"太小","ra_Transparent dialog":"透明对话框",ra_Tuesday:vWe,"ra_Unknown error":"未知错误","ra_Unknown error!":"未知错误!",ra_Update:bWe,"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:wWe,ra_Value:xWe,ra_Version:SWe,"ra_View file":"查看文件","ra_View: %s":"查看:%s",ra_Wednesday:kWe,ra_Width:CWe,ra_Yes:$We,"ra_You can export all objects or just the selected branch.":"您可以导出所有对象或仅导出选定的分支。","ra_You can filter entries by entering here some text":"您可以通过在此处输入一些文本来过滤条目",ra___different__:EWe,ra_aclEveryone_read_object:TWe,ra_aclEveryone_read_state:OWe,ra_aclEveryone_write_object:DWe,ra_aclEveryone_write_state:MWe,ra_aclGroup_read_object:NWe,ra_aclGroup_read_state:PWe,ra_aclGroup_write_object:RWe,ra_aclGroup_write_state:AWe,ra_aclOwner_read_object:IWe,ra_aclOwner_read_state:jWe,ra_aclOwner_write_object:LWe,ra_aclOwner_write_state:FWe,ra_buttons:zWe,ra_changedFrom:BWe,ra_close:WWe,ra_create_boolean_state:UWe,ra_create_channel:HWe,ra_create_device:qWe,ra_create_number_state:VWe,ra_create_state:XWe,ra_create_string_state:GWe,ra_daysShortText:JWe,ra_dow_Fr:YWe,ra_dow_Mo:KWe,ra_dow_Sa:ZWe,ra_dow_Su:QWe,ra_dow_Th:eUe,ra_dow_Tu:tUe,ra_dow_We:rUe,ra_expertMode:nUe,ra_fileType_all:oUe,ra_fileType_audio:aUe,ra_fileType_code:sUe,ra_fileType_images:iUe,ra_fileType_txt:cUe,ra_fileType_video:lUe,"ra_fileType_video,":"视频",ra_filter_customs:uUe,ra_filter_customs_without:dUe,ra_filter_func:pUe,ra_filter_id:fUe,ra_filter_name:hUe,ra_filter_role:mUe,ra_filter_room:_Ue,ra_filter_type:gUe,"ra_import data from %s file":"从 %s 文件导入数据",ra_invalidConfig:yUe,ra_lastChange:vUe,ra_locally:bUe,ra_month_Apr:wUe,ra_month_Aug:xUe,ra_month_Dec:SUe,ra_month_Feb:kUe,ra_month_Jan:CUe,ra_month_Jul:$Ue,ra_month_Jun:EUe,ra_month_Mai:TUe,ra_month_Mar:OUe,ra_month_Nov:DUe,ra_month_Oct:MUe,ra_month_Sep:NUe,ra_months_Apr:PUe,ra_months_Aug:RUe,ra_months_Dec:AUe,ra_months_Feb:IUe,ra_months_Jan:jUe,ra_months_Jul:LUe,ra_months_Jun:FUe,ra_months_Mai:zUe,ra_months_Mar:BUe,ra_months_Nov:WUe,ra_months_Oct:UUe,ra_months_Sep:HUe,ra_none:qUe,ra_object_changed_by:VUe,ra_object_changed_by_user:XUe,ra_otherConfig:GUe,ra_qualityCode:JUe,ra_repeat:YUe,ra_select_folder_hint:KUe,ra_state_changed_by:ZUe,ra_state_changed_from:QUe,ra_timestamp:eHe,ra_tooltip_ack:tHe,ra_tooltip_comment:rHe,ra_tooltip_copyState:nHe,ra_tooltip_customConfig:oHe,ra_tooltip_deleteObject:aHe,ra_tooltip_editObject:sHe,ra_tooltip_editState:iHe,ra_tooltip_from:cHe,ra_tooltip_lc:lHe,ra_tooltip_quality:uHe,ra_tooltip_ts:dHe,ra_tooltip_user:pHe,ra_tooltip_value:fHe,"ra_use seconds":"用秒",ra_val:hHe,"ra_via internet":"通过互联网",ra_warning_every_minute:mHe,ra_warning_every_second:_He,sc_cron:gHe,sc_date:yHe,sc_dates:vHe,sc_dow:bHe,sc_dows:wHe,sc_every:xHe,sc_everyN_dates:SHe,sc_everyN_dow:kHe,sc_everyN_dows:CHe,sc_everyN_hours:$He,sc_everyN_minutes:EHe,sc_everyN_months:THe,sc_everyN_seconds:OHe,sc_every_dates:DHe,sc_every_dow:MHe,sc_every_dows:NHe,sc_every_hours:PHe,sc_every_minutes:RHe,sc_every_months:AHe,sc_every_seconds:IHe,sc_from:jHe,sc_hours:LHe,sc_interval:FHe,sc_intervalBetween:zHe,sc_invalid_cron:BHe,sc_minutes:WHe,sc_months:UHe,sc_once:HHe,sc_period:qHe,sc_seconds:VHe,sc_simple:XHe,sc_specific:GHe,sc_specific_dates:JHe,sc_specific_dow:YHe,sc_specific_dows:KHe,sc_specific_hours:ZHe,sc_specific_minutes:QHe,sc_specific_months:eqe,sc_specific_seconds:tqe,sc_time:rqe,sc_to:nqe,sc_wizard:oqe,sch_all:aqe,sch_astroDay:sqe,sch_astroNight:iqe,sch_astro_dawn:cqe,sch_astro_dusk:lqe,sch_astro_goldenHour:uqe,sch_astro_goldenHourEnd:dqe,sch_astro_nadir:pqe,sch_astro_nauticalDawn:fqe,sch_astro_nauticalDusk:hqe,sch_astro_night:mqe,sch_astro_nightEnd:_qe,sch_astro_solarNoon:gqe,sch_astro_sunrise:yqe,sch_astro_sunriseEnd:vqe,sch_astro_sunset:bqe,sch_astro_sunsetStart:wqe,sch_at:xqe,sch_desc_atTime:Sqe,sch_desc_everyDay:kqe,sch_desc_everyHour:Cqe,sch_desc_everyMinute:$qe,sch_desc_everyMonth:Eqe,sch_desc_everyNDay:Tqe,sch_desc_everyNHours:Oqe,sch_desc_everyNMinutes:Dqe,sch_desc_everyNMonths:Mqe,sch_desc_everyNWeeks:Nqe,sch_desc_everyNYears:Pqe,sch_desc_everyWeek:Rqe,sch_desc_everyYear:Aqe,sch_desc_intervalFromTo:Iqe,sch_desc_never:jqe,sch_desc_onDate:Lqe,sch_desc_onDates:Fqe,sch_desc_onEveryDate:zqe,sch_desc_onMonth:Bqe,sch_desc_onMonths:Wqe,sch_desc_onWeekday:Uqe,sch_desc_onWeekdays:Hqe,sch_desc_onWeekends:qqe,sch_desc_onWorkdays:Vqe,sch_desc_onceInPast:Xqe,sch_desc_once_on:Gqe,sch_desc_validFrom:Jqe,sch_desc_validFromTo:Yqe,sch_desc_validTo:Kqe,sch_every:Zqe,sch_exactTime:Qqe,sch_from:eVe,sch_fromTo:tVe,sch_intervalTime:rVe,sch_invert:nVe,sch_no_one:oVe,sch_on:aVe,sch_period:sVe,sch_periodDaily:iVe,sch_periodDates:cVe,sch_periodDay:lVe,sch_periodEvery:uVe,sch_periodEveryDay:dVe,sch_periodEveryMonth:pVe,sch_periodEveryWeek:fVe,sch_periodEveryYear:hVe,sch_periodHours:mVe,sch_periodMinutes:_Ve,sch_periodMonth:gVe,sch_periodMonthly:yVe,sch_periodOnce:vVe,sch_periodSpecificMonths:bVe,sch_periodWeek:wVe,sch_periodWeekdays:xVe,sch_periodWeekend:SVe,sch_periodWeekly:kVe,sch_periodWorkdays:CVe,sch_periodYear:$Ve,sch_periodYearly:EVe,sch_specificTime:TVe,sch_time:OVe,sch_to:DVe,sch_valid:MVe,sch_validFrom:NVe,sch_validTo:PVe,sch_wholeDay:RVe,sch_yearEveryMonth:AVe},jVe="back",LVe="root folder",FVe={"Back to editor":"Back to editor","Change size":"Change size","Copy URL to clipboard":"Copy URL to clipboard","Refresh snapshots":"Refresh snapshots","URL copied to clipboard":"URL copied to clipboard",back:jVe,"but instance is offline":"but instance is offline",root:LVe},zVe="zurück",BVe="root",WVe={"Back to editor":"Zurück zum Herausgeber","Change size":"Größe ändern","Copy URL to clipboard":"URL in die Zwischenablage kopieren","Refresh snapshots":"Schnappschüsse aktualisieren","URL copied to clipboard":"URL in die Zwischenablage kopiert",back:zVe,"but instance is offline":"aber die Instanz ist offline",root:BVe},UVe="назад",HVe="Корневая папка",qVe={"Back to editor":"Вернуться к редактору","Change size":"Изменить размер","Copy URL to clipboard":"Скопировать URL в буфер обмена","Refresh snapshots":"Обновить снимки","URL copied to clipboard":"URL скопирован в буфер обмена",back:UVe,"but instance is offline":"но экземпляр не активирован",root:HVe},VVe="voltar",XVe="pasta raiz",GVe={"Back to editor":"Voltar ao editor","Change size":"Alterar tamanho","Copy URL to clipboard":"Copiar URL para a área de transferência","Refresh snapshots":"Atualizar instantâneos","URL copied to clipboard":"URL copiado para a área de transferência",back:VVe,"but instance is offline":"mas a instância está offline",root:XVe},JVe="rug",YVe="hoofdmap",KVe={"Back to editor":"Terug naar de redactie","Change size":"Wijzig de maat","Copy URL to clipboard":"Kopieer de URL naar het klembord","Refresh snapshots":"Momentopnamen vernieuwen","URL copied to clipboard":"URL gekopieerd naar klembord",back:JVe,"but instance is offline":"maar het exemplaar is offline",root:YVe},ZVe="dos",QVe="dossier racine",eXe={"Back to editor":"Retour à l'éditeur","Change size":"Changer la taille","Copy URL to clipboard":"Copier l'URL dans le presse-papiers","Refresh snapshots":"Actualiser les instantanés","URL copied to clipboard":"URL copiée dans le presse-papiers",back:ZVe,"but instance is offline":"mais l'instance est hors ligne",root:QVe},tXe="Indietro",rXe="cartella root",nXe={"Back to editor":"Torniamo all'editore","Change size":"Cambia taglia","Copy URL to clipboard":"Copia l'URL negli appunti","Refresh snapshots":"Aggiorna le istantanee","URL copied to clipboard":"URL copiato negli appunti",back:tXe,"but instance is offline":"ma l'istanza è offline",root:rXe},oXe="atrás",aXe="carpeta raíz",sXe={"Back to editor":"volver al editor","Change size":"Cambiar tamaño","Copy URL to clipboard":"Copiar URL al portapapeles","Refresh snapshots":"Actualizar instantáneas","URL copied to clipboard":"URL copiada al portapapeles",back:oXe,"but instance is offline":"pero la instancia está fuera de línea",root:aXe},iXe="z powrotem",cXe="Folder główny",lXe={"Back to editor":"Powrót do edytora","Change size":"Zmień rozmiar","Copy URL to clipboard":"Skopiuj adres URL do schowka","Refresh snapshots":"Odśwież migawki","URL copied to clipboard":"URL skopiowany do schowka",back:iXe,"but instance is offline":"ale instancja jest offline",root:cXe},uXe="назад",dXe="коренева папка",pXe={"Back to editor":"Назад до редактора","Change size":"Змінити розмір","Copy URL to clipboard":"Копіювати URL-адресу в буфер обміну","Refresh snapshots":"Оновити знімки","URL copied to clipboard":"URL-адресу скопійовано в буфер обміну",back:uXe,"but instance is offline":"але примірник офлайн",root:dXe},fXe="后退",hXe="根文件夹",mXe={"Back to editor":"返回编辑器","Change size":"改变尺寸","Copy URL to clipboard":"将 URL 复制到剪贴板","Refresh snapshots":"刷新快照","URL copied to clipboard":"网址已复制到剪贴板",back:fXe,"but instance is offline":"但实例处于离线状态",root:hXe},pr={root:t=>({width:"100%",height:"calc(100% - 48px)",position:"relative",color:t.palette.mode==="dark"?"#fff":"#000",backgroundColor:t.palette.mode==="dark"?"#000":"#fff",overflowX:"hidden",overflowY:"auto",display:"flex",flexWrap:"wrap",alignContent:"flex-start"}),slider:{color:"#FFF !important"},toolbarTitle:{},button:{width:128,borderRadius:10,border:"1px dashed #888",padding:10,margin:5,textAlign:"center",cursor:"pointer",position:"relative"},folderIcon:t=>({"& svg":{width:"calc(100% - 28px)",height:"auto",color:t.palette.primary.main}}),active:t=>({"& svg":{color:t.palette.primary.main}}),folderName:{display:"block",fontSize:16,width:"100%",textAlign:"center"},presetIcon:{width:"calc(100% - 6px)"},presetName:{display:"block",fontSize:16,width:"100%",textAlign:"center"},presetError:{color:"#FF0000",display:"block",fontSize:"0.8em",fontStyle:"italic"},break:{flexBasis:"100%",height:0},copyButton:{position:"absolute",bottom:3,right:3}};class Go extends $.Component{constructor(r){super(r);we(this,"adminCorrectTimeout",null);we(this,"isWeb");we(this,"socket");we(this,"timeout",{});we(this,"snapShotQueue",[]);we(this,"toastTimeout",null);we(this,"iconsCache",{});we(this,"onAliveChanged",(r,n)=>{this.state.alive!==!!(n!=null&&n.val)&&this.setState({alive:!!n.val},()=>{if(this.state.alive&&!this.state.done){const o=JSON.parse(JSON.stringify(this.state.icons));let a=!1;Object.keys(o).forEach(i=>{o[i]==="error:not alive"&&(a=!0,o[i]=null)}),a&&this.setState({icons:o})}})});we(this,"onReceiveMessage",r=>{if((r==null?void 0:r.data)==="updateTheme"){const n=ht.getThemeName();ht.setThemeName(ht.getThemeName());const o=Go.createTheme(n);this.setState({theme:o,themeName:Go.getThemeName(o),themeType:Go.getThemeType(o)})}});we(this,"onHashChanged",()=>{const n=decodeURIComponent((window.location.hash||"").replace(/^#/,"")).split("/");n.length||n.push(""),JSON.stringify(n)!==JSON.stringify(this.state.location)&&(this.snapShotQueue=[],this.setState({location:n}))});const n=Go.createTheme(),a=decodeURIComponent((window.location.hash||"").replace(/^#/,"")).split("/");a.length||a.push(""),this.state={connected:!1,theme:n,themeType:Go.getThemeType(n),themeName:Go.getThemeName(n),location:a,presetFolders:null,icons:{},iconSize:parseInt(window.localStorage.getItem("echarts.iconSize"),10)||128,showSlider:!1,alive:!1,toast:"",webInstances:[],webMenu:null,forceRefresh:!1,presets:null,errorText:null,done:!1,currentInstance:""};const i={en:$se,de:Ede,ru:T_e,pt:Obe,nl:Dke,fr:M2e,it:NPe,es:P4e,pl:Rze,uk:A7e,"zh-cn":IVe},l={en:FVe,de:WVe,ru:qVe,pt:GVe,nl:KVe,fr:eXe,it:nXe,es:sXe,pl:lXe,uk:pXe,"zh-cn":mXe};Object.keys(i).forEach(u=>Object.assign(i[u],l[u])),U.setTranslations(i),window.socketUrl&&window.socketUrl.startsWith(":")&&(window.socketUrl=`${window.location.protocol}//${window.location.hostname}${window.socketUrl}`),window.location.port==="8082"&&window.location.pathname.includes("/adapter/echarts/preview/")&&(this.adminCorrectTimeout=setTimeout(()=>{this.adminCorrectTimeout=null,window.location.href=window.location.href.replace("/adapter/echarts/preview/","/echarts/preview/")},2e3)),this.isWeb=Jo.isWeb(),this.socket=new Jo({name:window.adapterName,onProgress:u=>{u===_o.CONNECTING?this.setState({connected:!1}):u===_o.READY?this.setState({connected:!0}):this.setState({connected:!0})},onReady:async()=>{this.adminCorrectTimeout&&(clearTimeout(this.adminCorrectTimeout),this.adminCorrectTimeout=null),this.socket.getRawSocket().emit("getCurrentInstance",(d,_)=>{this.setState({currentInstance:_||""})}),U.setLanguage(this.socket.systemLang);const u=await this.socket.getState("system.adapter.echarts.0.alive").catch(()=>null);this.setState({alive:!!(u!=null&&u.val)});const f=await this.getWebInstances();this.setState({webInstances:f});const h=await this.getAllPresets();this.setState(h)},onError:u=>{console.error(u),this.showError(u)}}),window.addEventListener("hashchange",this.onHashChanged),this.snapShotQueue=[],this.timeout={}}async getWebInstances(){const r=await this.socket.getObjectViewSystem("instance","system.adapter.web.","system.adapter.web.香");return Object.keys(r).map(n=>{const o=r[n];return{port:o.native.port,bind:o.native.bind,id:o._id.replace("system.adapter.",""),enabled:!!o.common.enabled,protocol:o.native.secure?"https://":"http://"}})}componentDidMount(){window.addEventListener("message",this.onReceiveMessage,!1)}componentWillUnmount(){window.removeEventListener("message",this.onReceiveMessage,!1),this.socket.unsubscribeState("system.adapter.echarts.0.alive",this.onAliveChanged),this.toastTimeout&&clearTimeout(this.toastTimeout),this.toastTimeout=null}static createTheme(r){return XC(ht.getThemeName(r))}static getThemeName(r){return r.name}static getThemeType(r){return r.palette.mode}toggleTheme(){const n=this.state.themeName==="dark"?"light":"dark";ht.setThemeName(n);const o=XC(n);this.setState({theme:o,themeName:o.name,themeType:o.palette.mode})}showError(r){this.setState({errorText:r})}renderError(){return this.state.errorText?R.jsx(KM,{text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}static buildPresetTree(r,n){const o=Object.values(r),a={subFolders:{},presets:{},id:"",prefix:""};return o.forEach(i=>{const l=i._id,u=l.split(".");u.shift(),u.shift();let f=a,h="";for(let d=0;d{const l=i.split(".");let u=a,f="";for(let h=0;hthis.getEmptyFolders(r.subFolders[a],n,o)),o}async getAllPresets(r){r=r||{};const n={},o=await this.socket.getObjectViewSystem("chart","echarts.","echarts.香");o&&Object.values(o).forEach(i=>{i!=null&&i._id&&!i._id.toString().endsWith(".")&&(n[i._id]=i)}),r.presets=n,Object.keys(r.presets).forEach(i=>{const l=r.presets[i];l.common=l.common||{},l.native=l.native||{}});const a=this.getEmptyFolders();return r.presetFolders=Go.buildPresetTree(n,a),r}getSnapshot(r){if(this.iconsCache[r]){const n=JSON.parse(JSON.stringify(this.state.icons));n[r]=this.iconsCache[r],setTimeout(()=>this.setState({icons:n}),50);return}if(!this.state.alive){const n=JSON.parse(JSON.stringify(this.state.icons));n[r]="error:not alive",setTimeout(()=>this.setState({icons:n}),50);return}this.snapShotQueue.push(r),this.snapShotQueue.length===1&&this.getSnapshotNext()}getSnapshotNext(){if(!this.snapShotQueue.length){this.state.forceRefresh&&setTimeout(()=>this.setState({forceRefresh:!1}),50);return}const r=this.snapShotQueue[0];this.timeout[r]=setTimeout(()=>{const n=JSON.parse(JSON.stringify(this.state.icons));n[r]||(n[r]="error:timeout"),this.iconsCache[r]=n[r],this.snapShotQueue[0]===r&&this.snapShotQueue.shift(),this.setState({icons:n,done:!0}),this.getSnapshotNext()},5e3),this.socket.getRawSocket().emit("sendTo","echarts.0","send",{preset:r,cache:600,forceRefresh:this.state.forceRefresh},n=>{this.timeout[r]&&(clearTimeout(this.timeout[r]),this.timeout[r]=null);const o=JSON.parse(JSON.stringify(this.state.icons));n.error?o[r]=`error:${n.error}`:o[r]=n.data,this.iconsCache[r]=o[r],this.snapShotQueue[0]===r&&this.snapShotQueue.shift(),this.setState({icons:o,done:!0}),this.getSnapshotNext()})}renderFolder(r){const n=[];if(this.state.location.length>1&&n.push(R.jsxs(wt,{component:"div",style:pr.button,onClick:()=>{const o=[...this.state.location];o.pop(),window.location.hash=`#${o.join("/")}`},sx:pr.folderIcon,children:[R.jsx(JM,{}),R.jsx("div",{style:pr.folderName,children:U.t("back")})]},"__back__")),r.subFolders&&Object.keys(r.subFolders).length&&Object.keys(r.subFolders).forEach(o=>{o!=="_consumption_"&&n.push(R.jsxs(wt,{component:"div",style:pr.button,onClick:()=>{const a=[...this.state.location];a.push(o),window.location.hash=`#${a.join("/")}`},sx:pr.folderIcon,children:[R.jsx(HU,{}),R.jsx("div",{style:pr.folderName,children:o})]},o))}),r.presets&&Object.keys(r.presets).length){const o=window.location.pathname.split("/");o.pop(),o.pop(),this.isWeb?o.push("index.html"):o.push("chart/index.html");let a;this.state.webInstances.find(l=>l.enabled)||this.state.currentInstance.startsWith("admin.")?a=this.state.webInstances.filter(l=>l.enabled):a=this.state.webInstances;const i=a.map(l=>({url:`${l.protocol}${l.bind==="0.0.0.0"?window.location.hostname:l.bind}:${l.port}/echarts/index.html?preset=`,port:l.port}));this.state.currentInstance.startsWith("admin.")&&i.unshift({url:"../chart/index.html?preset=",port:window.location.port}),n.push(R.jsx("div",{style:pr.break},"br")),Object.keys(r.presets).forEach(l=>{const u=r.presets[l];this.state.icons[u._id]||this.getSnapshot(u._id),n.push(R.jsxs("div",{style:{...pr.button,width:this.state.iconSize},onClick:f=>{i.length>1?this.setState({webMenu:{id:u._id,webUrls:i,copy:!1,anchorEl:f.currentTarget}}):window.open(i[0].url+u._id,u._id)},children:[this.state.icons[u._id]?this.state.icons[u._id].startsWith("error:")?R.jsx(WC,{style:pr.presetIcon}):R.jsx("img",{style:pr.presetIcon,src:this.state.icons[u._id],alt:u._id}):R.jsx(jM,{style:pr.presetIcon}),R.jsx("div",{style:pr.presetName,children:typeof u.common.name=="object"?u.common.name[U.getLanguage()]||u.common.name.en||"":u.common.name}),this.state.icons[u._id]&&this.state.icons[u._id].startsWith("error:")?R.jsx("div",{style:pr.presetError,children:this.state.icons[u._id].substring(6)}):null,R.jsx(nr,{size:"small",title:U.t("Copy URL to clipboard"),style:pr.copyButton,onClick:f=>{f.stopPropagation(),i.length>1?this.setState({webMenu:{id:u._id,webUrls:i,copy:!0,anchorEl:f.currentTarget}}):this.onCopyUrl(i[0].url+u._id)},children:R.jsx(VM,{})})]},l))})}return n}onCopyUrl(r){this.toastTimeout&&clearTimeout(this.toastTimeout),ht.copyToClipboard(r),this.setState({toast:`${U.t("URL copied to clipboard")}: ${r}`}),this.toastTimeout=setTimeout(()=>{this.toastTimeout=null,this.setState({toast:""})},4e3)}getFolder(r,n,o){return o=o||0,n=n||this.state.presetFolders,n?n.id!==r[o]?this.state.presetFolders:r.length-1===o?n.id===r[o]?n:this.state.presetFolders:n.subFolders[r[o+1]]?this.getFolder(r,n.subFolders[r[o+1]],o+1):this.state.presetFolders:this.state.presetFolders}renderSlider(){return this.state.showSlider?R.jsxs(sU,{spacing:2,direction:"row",style:{width:200},alignItems:"center",children:[R.jsx("span",{children:this.state.iconSize}),R.jsx(UC,{style:{width:14,height:14,marginLeft:4}}),R.jsx(UW,{min:64,max:512,style:pr.slider,value:this.state.iconSize,onChange:(r,n)=>{window.localStorage.setItem("echarts.iconSize",n.toString()),this.setState({iconSize:n})}}),R.jsx(UC,{style:{width:24,height:24}})]}):null}renderToast(){return this.state.toast?R.jsx(QW,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:R.jsx("span",{id:"message-id",children:this.state.toast}),action:[R.jsx(nr,{"aria-label":"Close",color:"inherit",style:pr.close,onClick:()=>this.setState({toast:""}),size:"large",children:R.jsx(Rs,{})},"close")]}):null}renderWebMenu(){return this.state.webMenu?R.jsx(jb,{anchorEl:this.state.webMenu.anchorEl,open:!0,onClose:()=>this.setState({webMenu:null}),children:this.state.webMenu.webUrls.map(r=>R.jsxs(fr,{onClick:()=>{this.state.webMenu.copy?this.onCopyUrl(r.url+this.state.webMenu.id):window.open(r.url+this.state.webMenu.id,this.state.webMenu.id),this.setState({webMenu:null})},children:[":",r.port]}))}):null}render(){if(!this.state.connected)return R.jsx($k,{injectFirst:!0,children:R.jsx(Gk,{theme:this.state.theme,children:R.jsx(EH,{themeType:this.state.themeType})})});const r=this.getFolder(this.state.location),n=[];return R.jsx($k,{injectFirst:!0,children:R.jsxs(Gk,{theme:this.state.theme,children:[R.jsx(yM,{position:"static",style:pr.appBar,children:R.jsxs(Bb,{variant:"dense",children:[this.isWeb?null:R.jsx(nr,{title:U.t("Back to editor"),onClick:()=>{const o=window.location.pathname.split("/");o.pop(),o.pop(),o.push("tab.html"),window.location.href=`${window.location.protocol}//${window.location.host}${o.join("/")}`},children:R.jsx(XU,{})}),R.jsx("img",{src:kte,alt:"echarts",style:{width:32,marginRight:8}}),R.jsx(NM,{"aria-label":"breadcrumb",children:this.state.location.map((o,a)=>(n.push(o),R.jsx(f7,{underline:this.state.location.length-1===a?"none":"hover",color:"inherit",href:`#${n.join("/")}`,children:o||U.t("root")},a)))}),R.jsx("div",{style:{flexGrow:1}}),this.renderSlider(),R.jsx(nr,{onClick:()=>this.setState({showSlider:!this.state.showSlider}),title:U.t("Change size"),sx:this.state.showSlider?pr.active:void 0,children:this.state.showSlider?R.jsx(WC,{}):R.jsx(qU,{})}),R.jsx(nr,{style:{color:this.state.alive?"#0F0":"#FF0"},onClick:()=>{Object.keys(this.iconsCache).forEach(o=>{delete this.iconsCache[o]}),this.setState({icons:{},forceRefresh:!0})},title:this.state.alive?U.t("Refresh snapshots"):`${U.t("Refresh snapshots")}, ${U.t("but instance is offline")}`,children:R.jsx(YM,{})}),this.isWeb&&this.state.themeName!=="PT"&&this.state.themeName!=="DX"?R.jsx(Eee,{toggleTheme:()=>this.toggleTheme(),themeName:this.state.themeName,t:U.t}):null,R.jsx("h4",{style:pr.toolbarTitle,children:"Echarts viewer"})]})}),R.jsx(wt,{component:"div",sx:pr.root,children:r?this.renderFolder(r):null}),this.renderError(),this.renderToast(),this.renderWebMenu()]})})}}const _Xe=eh()(Go);window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function gXe(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const yXe="echarts.index",vXe="1.9.5",bXe={"@vitejs/plugin-react":"^4.3.4","react-icons":"^5.4.0",typescript:"^5.7.3"},wXe=".",xXe="http://localhost:8081",SXe={start:"vite dev --config vite.config.mjs --host",build:"vite build --config vite.config.mjs",lint:"eslint -c eslint.config.mjs"},kXe={extends:"react-app"},CXe=[">0.2%","not dead","not ie <= 11","not op_mini all"],DP={name:yXe,version:vXe,private:!0,dependencies:bXe,homepage:wXe,proxy:xXe,scripts:SXe,eslintConfig:kXe,browserslist:CXe};window.adapterName="echarts-preview";console.log(`iobroker.${window.adapterName}@${DP.version}`);window.location.host!=="localhost:3000"&&Vj({dsn:window.sentryDSN,release:`iobroker.${window.adapterName}@${DP.version}`,integrations:[pD()],beforeSend(t){let e=!1;return t.exception&&t.exception.values&&t.exception.values[0]&&(t.exception.values[0].type==="NS_ERROR_FAILURE"||t.exception.values[0].value&&(t.exception.values[0].value.includes("Microsoft YaHei")||t.exception.values[0].value==="ResizeObserver loop completed with undelivered notifications."||t.exception.values[0].value==="undefined is not an object (evaluating 't.get')"||t.exception.values[0].value==="Cannot read property 'get' of undefined"||t.exception.values[0].value==="this.painter is null"||t.exception.values[0].value.includes("ioBroker is not connected")||t.exception.values[0].value==="Cannot read property 'getDisplayList' of null"))&&(e=!0),e?null:t}});const UO=document.getElementById("root");UO&&RA.createRoot(UO).render(R.jsx(_Xe,{}));gXe(); diff --git a/www/preview/index.html b/www/preview/index.html index b92c2170..97b1db6e 100644 --- a/www/preview/index.html +++ b/www/preview/index.html @@ -45,7 +45,7 @@ document.head.appendChild(script); Echarts preview [ioBroker] - +
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?A.cloneElement(t,{ref:n=>{v9(r,n),v9(e,n)}}):A.cloneElement(t,{ref:e})}class xrr{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?e?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),r):(this.lastConnectedDragSource=e,r):r}reconnectDragPreview(e=!1){const r=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!sT(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!sT(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=xG({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,lT(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,lT(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Srr{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!sT(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=xG({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,lT(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Uu(){const{dragDropManager:t}=A.useContext(hG);return At(t!=null,"Expected drag drop context"),t}function Crr(t,e){const r=Uu(),n=A.useMemo(()=>new xrr(r.getBackend()),[r]);return Wl(()=>(n.dragSourceOptions=t||null,n.reconnect(),()=>n.disconnectDragSource()),[n,t]),Wl(()=>(n.dragPreviewOptions=e||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,e]),n}function $rr(){const t=Uu();return A.useMemo(()=>new mrr(t),[t])}class krr{beginDrag(){const e=this.spec,r=this.monitor;let n=null;return typeof e.item=="object"?n=e.item:typeof e.item=="function"?n=e.item(r):n={},n??null}canDrag(){const e=this.spec,r=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(r):!0}isDragging(e,r){const n=this.spec,o=this.monitor,{isDragging:a}=n;return a?a(o):r===e.getSourceId()}endDrag(){const e=this.spec,r=this.monitor,n=this.connector,{end:o}=e;o&&o(r.getItem(),r),n.reconnect()}constructor(e,r,n){this.spec=e,this.monitor=r,this.connector=n}}function Err(t,e,r){const n=A.useMemo(()=>new krr(t,e,r),[e,r]);return A.useEffect(()=>{n.spec=t},[t]),n}function Trr(t){return A.useMemo(()=>{const e=t.type;return At(e!=null,"spec.type must be defined"),e},[t])}function Orr(t,e,r){const n=Uu(),o=Err(t,e,r),a=Trr(t);Wl(function(){if(a!=null){const[s,l]=yrr(a,o,n);return e.receiveHandlerId(s),r.receiveHandlerId(s),l}},[n,e,r,o,a])}function Drr(t,e){const r=wG(t);At(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=$rr(),o=Crr(r.options,r.previewOptions);return Orr(r,n,o),[bG(r.collect,n,o),hrr(o),frr(o)]}function Arr(t){return A.useMemo(()=>t.hooks.dropTarget(),[t])}function Irr(t){const e=Uu(),r=A.useMemo(()=>new Srr(e.getBackend()),[e]);return Wl(()=>(r.dropTargetOptions=t||null,r.reconnect(),()=>r.disconnectDropTarget()),[t]),r}function Mrr(){const t=Uu();return A.useMemo(()=>new grr(t),[t])}function Prr(t){const{accept:e}=t;return A.useMemo(()=>(At(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class Nrr{canDrop(){const e=this.spec,r=this.monitor;return e.canDrop?e.canDrop(r.getItem(),r):!0}hover(){const e=this.spec,r=this.monitor;e.hover&&e.hover(r.getItem(),r)}drop(){const e=this.spec,r=this.monitor;if(e.drop)return e.drop(r.getItem(),r)}constructor(e,r){this.spec=e,this.monitor=r}}function Rrr(t,e){const r=A.useMemo(()=>new Nrr(t,e),[e]);return A.useEffect(()=>{r.spec=t},[t]),r}function jrr(t,e,r){const n=Uu(),o=Rrr(t,e),a=Prr(t);Wl(function(){const[s,l]=vrr(a,o,n);return e.receiveHandlerId(s),r.receiveHandlerId(s),l},[n,e,o,r,a.map(i=>i.toString()).join("|")])}function Lrr(t,e){const r=wG(t),n=Mrr(),o=Irr(r.options);return jrr(r,n,o),[bG(r.collect,n,o),Arr(o)]}function SG(t){let e=null;return()=>(e==null&&(e=t()),e)}function zrr(t,e){return t.filter(r=>r!==e)}function Frr(t,e){const r=new Set,n=a=>r.add(a);t.forEach(n),e.forEach(n);const o=[];return r.forEach(a=>o.push(a)),o}class Brr{enter(e){const r=this.entered.length,n=o=>this.isNodeInDocument(o)&&(!o.contains||o.contains(e));return this.entered=Frr(this.entered.filter(n),[e]),r===0&&this.entered.length>0}leave(e){const r=this.entered.length;return this.entered=zrr(this.entered.filter(this.isNodeInDocument),e),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Wrr{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const r={};Object.keys(this.config.exposeProperties).forEach(n=>{const o=this.config.exposeProperties[n];o!=null&&(r[n]={value:o(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,r){return r===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const CG="__NATIVE_FILE__",$G="__NATIVE_URL__",kG="__NATIVE_TEXT__",EG="__NATIVE_HTML__",y9=Object.freeze(Object.defineProperty({__proto__:null,FILE:CG,HTML:EG,TEXT:kG,URL:$G},Symbol.toStringTag,{value:"Module"}));function tE(t,e,r){const n=e.reduce((o,a)=>o||t.getData(a),"");return n??r}const cT={[CG]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[EG]:{exposeProperties:{html:(t,e)=>tE(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[$G]:{exposeProperties:{urls:(t,e)=>tE(t,e,"").split(` -`),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[kG]:{exposeProperties:{text:(t,e)=>tE(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function Hrr(t,e){const r=cT[t];if(!r)throw new Error(`native type ${t} has no configuration`);const n=new Wrr(r);return n.loadDataTransfer(e),n}function rE(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(cT).filter(r=>{const n=cT[r];return n!=null&&n.matchesTypes?n.matchesTypes.some(o=>e.indexOf(o)>-1):!1})[0]||null}const Urr=SG(()=>/firefox/i.test(navigator.userAgent)),TG=SG(()=>!!window.safari);class _9{interpolate(e){const{xs:r,ys:n,c1s:o,c2s:a,c3s:i}=this;let s=r.length-1;if(e===r[s])return n[s];let l=0,d=i.length-1,h;for(;l<=d;){h=Math.floor(.5*(l+d));const g=r[h];if(ge)d=h-1;else return n[h]}s=Math.max(0,d);const u=e-r[s],f=u*u;return n[s]+o[s]*u+a[s]*f+i[s]*u*f}constructor(e,r){const{length:n}=e,o=[];for(let g=0;ge[g]{let O=new _9([0,.5,1],[l.y,l.y/h*y,l.y+y-h]).interpolate(f);return TG()&&a&&(O+=(window.devicePixelRatio-1)*y),O},x=()=>new _9([0,.5,1],[l.x,l.x/d*g,l.x+g-d]).interpolate(u),{offsetX:S,offsetY:T}=o,E=S===0||S,$=T===0||T;return{x:E?S:x(),y:$?T:b()}}class Jrr{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,r){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=r}}function Yrr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b9(t){for(var e=1;e{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,r,n){this.sourceNodes.set(e,r),this.sourceNodeOptions.set(e,n);const o=i=>this.handleDragStart(i,e),a=i=>this.handleSelectStart(i);return r.setAttribute("draggable","true"),r.addEventListener("dragstart",o),r.addEventListener("selectstart",a),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),r.removeEventListener("dragstart",o),r.removeEventListener("selectstart",a),r.setAttribute("draggable","false")}}connectDropTarget(e,r){const n=i=>this.handleDragEnter(i,e),o=i=>this.handleDragOver(i,e),a=i=>this.handleDrop(i,e);return r.addEventListener("dragenter",n),r.addEventListener("dragover",o),r.addEventListener("drop",a),()=>{r.removeEventListener("dragenter",n),r.removeEventListener("dragover",o),r.removeEventListener("drop",a)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(e);return b9({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(e);return b9({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(y9).some(r=>y9[r]===e)}beginDragNativeItem(e,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=Hrr(e,r),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const r=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var n;return(n=this.rootElement)===null||n===void 0?void 0:n.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},r)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,r){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}handleDragEnter(e,r){this.dragEnterTargetIds.unshift(r)}handleDragOver(e,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}handleDrop(e,r){this.dropTargetIds.unshift(r)}constructor(e,r,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=o=>{const a=this.sourceNodes.get(o);return a&&OG(a)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=o=>!!(o&&this.document&&this.document.body&&this.document.body.contains(o)),this.endDragIfSourceWasRemovedFromDOM=()=>{const o=this.currentDragSourceNode;o==null||this.isNodeInDocument(o)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=o=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(o||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=o=>{if(o.defaultPrevented)return;const{dragStartSourceIds:a}=this;this.dragStartSourceIds=null;const i=Vg(o);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:i});const{dataTransfer:s}=o,l=rE(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const h=this.monitor.getSourceId(),u=this.sourceNodes.get(h),f=this.sourcePreviewNodes.get(h)||u;if(f){const{anchorX:g,anchorY:y,offsetX:b,offsetY:x}=this.getCurrentSourcePreviewNodeOptions(),E=Xrr(u,f,i,{anchorX:g,anchorY:y},{offsetX:b,offsetY:x});s.setDragImage(f,E.x,E.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(o.target);const{captureDraggingState:d}=this.getCurrentSourcePreviewNodeOptions();d?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=o=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(o.dataTransfer)}if(!this.enterLeaveCounter.enter(o.target)||this.monitor.isDragging())return;const{dataTransfer:s}=o,l=rE(s);l&&this.beginDragNativeItem(l,s)},this.handleTopDragEnter=o=>{const{dragEnterTargetIds:a}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=o.altKey,a.length>0&&this.actions.hover(a,{clientOffset:Vg(o)}),a.some(s=>this.monitor.canDropOnTarget(s))&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=o=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(o.dataTransfer)}},this.handleTopDragOver=o=>{const{dragOverTargetIds:a}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}this.altKeyPressed=o.altKey,this.lastClientOffset=Vg(o),this.scheduleHover(a),(a||[]).some(s=>this.monitor.canDropOnTarget(s))?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=o=>{this.isDraggingNativeItem()&&o.preventDefault(),this.enterLeaveCounter.leave(o.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=o=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var a;o.preventDefault(),(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(o.dataTransfer)}else rE(o.dataTransfer)&&o.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=o=>{const{dropTargetIds:a}=this;this.dropTargetIds=[],this.actions.hover(a,{clientOffset:Vg(o)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=o=>{const a=o.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(o.preventDefault(),a.dragDrop()))},this.options=new Jrr(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Brr(this.isNodeInDocument)}}const Zrr=function(e,r,n){return new Krr(e,r,n)},ad="_consumption_",Qrr=!window.location.search.includes("hidden=false");function DG(t){let e=[];return Object.values(t.subFolders||{}).forEach(r=>e=e.concat(DG(r))),e}const enr=t=>{const{onDrop:e}=t,[{isOver:r,isOverAny:n},o]=Lrr({accept:"item",drop:a=>e(a.name),collect:a=>({isOver:a.isOver({shallow:!0}),isOverAny:a.isOver()})});return w.jsx("div",{ref:o,style:{background:r?"#40adff":void 0,opacity:n?.3:void 0},children:t.children})},tnr=t=>{const{name:e}=t,[{opacity:r},n]=Drr({type:"item",item:()=>({name:e}),collect:o=>({opacity:o.isDragging()?.3:1})});return w.jsx("div",{ref:n,style:{opacity:r,transform:"translate3d(0, 0, 0)"},children:t.children})},w9=16,nE=/[.\][*,;'"`<>\\?]/g,Ot={noGutters:{pt:0,pb:0,width:"100%"},changed:t=>({position:"relative","&:after":{content:'""',position:"absolute",top:2,right:2,width:5,height:5,borderRadius:5,background:(t.palette.mode==="dark","#CC0000")}}),itemIcon:{width:32,height:32,marginRight:4},itemIconFolder:{cursor:"pointer"},buttonsContainer:{"& button":{whiteSpace:"nowrap"}},itemIconPreset:t=>({color:t.palette.mode==="dark"?t.palette.primary.light:t.palette.primary.dark,position:"relative"}),folderIconPreset:t=>({color:t.palette.mode==="dark"?t.palette.secondary.dark:t.palette.secondary.light}),width100:{width:"100%"},buttonIcon:{marginRight:4},itemIconRoot:{minWidth:24},listItemSubTitle:{fontSize:"smaller",opacity:.7,fontStyle:"italic",display:"inline-block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},mainList:{width:"calc(100% - 8px)",ml:"8px"},iconCopy:{width:16},listItemSecondaryAction:{right:7},listItemTitle:{lineHeight:1,width:"100%"},listItemTitleDiv:{display:"inline-block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},itemIconNumber:t=>({position:"absolute",fontSize:12,top:8,left:-1,width:"100%",textAlign:"center",color:t.palette.mode==="dark"?"#000":"#FFF"}),textColor:t=>({color:t.palette.mode==="dark"?"#FFF !important":"#000 !important"})};class oy extends A.Component{constructor(r){super(r);X(this,"refSelected");X(this,"scrollToSelect",!1);X(this,"scrollTimeout",null);X(this,"onPresetChange",(r,n)=>{if(!(r!=null&&r.startsWith("echarts.")))return;let o,a=!1;if(n?(n.common=n.common||{},n.native=n.native||{},JSON.stringify(n)!==JSON.stringify(this.state.presets[r])&&(o=JSON.parse(JSON.stringify(this.state.presets)),o[r]=n,a=!0)):this.state.presets[r]&&(o=JSON.parse(JSON.stringify(this.state.presets)),delete o[r],a=!0),a){const i=this.getEmptyFolders(),s={presets:o,changingPreset:"",presetFolders:oy.buildPresetTree(o,i)};setTimeout(()=>this.informAboutSubFolders(s.presetFolders),200),this.setState(s)}});X(this,"addPresetToFolderPrefix",async(r,n,o)=>{const a=r._id,i=r._id.split(".").pop();r._id=`${this.props.adapterName}.0.${n}${n?".":""}${i}`;try{if(await this.props.socket.setObject(r._id,r),console.log(`Deleted ${a}`),await this.props.socket.delObject(a),console.log(`Set new ID: ${r._id}`),!o){const s=await this.getAllPresets();this.setState(s)}}catch(s){this.onError(s,`Cannot delete object ${a}`)}});let n;try{n=JSON.parse(window.localStorage.getItem("App.echarts.presets.opened"))||[]}catch{n=[]}this.state={presetsOpened:n,presets:{},presetFolders:null,changingPreset:"",deletePresetDialog:"",movePresetDialog:"",newPresetFolder:"",addPresetFolderName:"",editPresetFolderDialog:null,editFolderDialogTitleOrigin:"",editPresetFolderName:"",renameDialog:"",renamePresetDialogTitle:""},this.refSelected=m.createRef(),this.getAllPresets().then(o=>this.setState(o))}async componentDidMount(){await this.props.socket.subscribeObject(`${this.props.adapterName}.0.*`,this.onPresetChange)}async componentWillUnmount(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),await this.props.socket.unsubscribeObject(`${this.props.adapterName}.0.*`,this.onPresetChange)}informAboutSubFolders(r){r=r||this.state.presetFolders||{},this.props.onShowReorder(!!Object.keys(r.subFolders||{}).length)}getEmptyFolders(r,n,o){if(o=o||[],n=n||[],r=r||this.state.presetFolders||{},r.id){const a=[...n];a.push(r.id),o.push(a.join("."))}return r.subFolders&&Object.keys(r.subFolders).forEach(a=>this.getEmptyFolders(r.subFolders[a],n,o)),o}async getAllPresets(r,n){r=r||{};const o={},a=await this.props.socket.getObjectViewSystem("chart",`${this.props.adapterName}.`,`${this.props.adapterName}.香`);return a&&Object.values(a).forEach(i=>i._id&&!i._id.toString().endsWith(".")&&(o[i._id]=i)),r.presets=o,r.changingPreset="",Object.keys(r.presets).forEach(i=>{const s=r.presets[i];s.common=s.common||{},s.native=s.native||{}}),n=n||this.getEmptyFolders(),r.presetFolders=oy.buildPresetTree(o,n),setTimeout(()=>this.informAboutSubFolders(r.presetFolders),200),r}renderPreset(r,n){var d,h;const o=this.state.presets[r._id],a=typeof r.common.name=="object"?r.common.name[P.getLanguage()]||r.common.name.en:r.common.name;if(!o||this.props.search&&!a.includes(this.props.search))return null;n=n||0;const i=(this.props.reorder?n:n-1)*w9;let s=null;((d=r.native.data.l||r.native.data.lines)==null?void 0:d.length)>1&&(s=w.jsx(Re,{sx:Ot.itemIconNumber,children:(h=r.native.data.l||r.native.data.lines)==null?void 0:h.length}));const l=w.jsxs(Ev,{sx:{"&.MuiListItemButton-gutters":ue.getStyle(this.props.theme,Ot.noGutters,this.props.selectedId===r._id&&this.props.selectedPresetChanged&&Ot.changed),height:48},selected:this.props.selectedId===r._id,style:{paddingLeft:i},className:this.props.reorder?"item-reorder":"",ref:this.props.selectedId===r._id?this.refSelected:null,onClick:()=>this.props.onSelectedChanged(o._id),children:[w.jsxs(ba,{sx:ue.getStyle(this.props.theme,Ot.itemIconRoot,Ot.itemIconPreset),children:[w.jsx(JKt,{style:Ot.itemIcon}),s]}),w.jsx(_o,{sx:{"& .MuiListItemText-primary":Ot.listItemTitle,"& .MuiListItemText-secondary":Ot.listItemSubTitle},primary:w.jsx("div",{style:Ot.listItemTitleDiv,children:ue.getObjectNameFromObj(o,null,{language:P.getLanguage()})}),secondary:ue.getObjectNameFromObj(o,null,{language:P.getLanguage()},!0)}),this.state.changingPreset===o._id?w.jsx(pO,{size:24}):this.props.reorder?null:w.jsxs(w.Fragment,{children:[this.props.selectedId!==o._id||!this.props.selectedPresetChanged?w.jsx(Ie,{size:"small","aria-label":"Rename",title:P.t("Rename"),sx:Ot.textColor,onClick:u=>{u.stopPropagation(),this.setState({renameDialog:o._id,renamePresetDialogTitle:a})},children:w.jsx(JR,{})}):null,w.jsx(Ie,{size:"small","aria-label":"Copy",title:P.t("Copy"),sx:Ot.textColor,onClick:()=>this.props.onCopyPreset(o._id),children:w.jsx(Di,{style:Ot.iconCopy})}),w.jsx(Ie,{size:"small",sx:Ot.textColor,"aria-label":"Delete",title:P.t("Delete"),onClick:()=>this.setState({deletePresetDialog:o._id}),children:w.jsx(yu,{})})]})]},r._id);return this.props.reorder?w.jsx(tnr,{name:r._id,draggableId:r._id,children:l},`draggable_${r._id}`):l}renderFolder(r,n){const o=[];n=n||0;const a=this.props.reorder||(this.state.presetsOpened&&r?this.state.presetsOpened.includes(r.prefix):!1),i=(this.props.reorder?n:n-1)*w9,s=[];if(r&&(a||!r.id)){const l=Object.values(r.presets||{}),d=Object.values(r.subFolders||{});d.sort((h,u)=>h.id>u.id?1:h.id!(Qrr&&h.id===ad)).forEach(h=>s.push(this.renderFolder(h,n+1))),l.length||d.length?l.sort((h,u)=>h._id>u._id?1:h._ids.push(this.renderPreset(h,n+1))):n===0&&s.push(w.jsx(of,{sx:{"&.MuiListItem-gutters":Ot.noGutters},children:w.jsx(_o,{style:Ot.folderItem,children:P.t("No presets created yet")})},"no presets"))}if(r&&(r.id||this.props.reorder)){const l=w.jsxs(of,{sx:{"&.MuiListItem-gutters":Ot.noGutters},className:this.props.reorder?"folder-reorder":"",style:{...Ot.width100,...Ot.folderItem,paddingLeft:i,height:48},secondaryAction:w.jsxs(w.Fragment,{children:[!this.props.reorder&&r&&r.id&&a?w.jsx(Ie,{size:"small",sx:Ot.textColor,onClick:()=>this.props.onCreatePreset(r.id),title:P.t("Create new preset"),children:w.jsx(Il,{})}):null,this.props.reorder?null:w.jsx(Ie,{size:"small",sx:Ot.textColor,onClick:()=>this.setState({editPresetFolderDialog:r,editPresetFolderName:r.id,editFolderDialogTitleOrigin:r.id}),title:P.t("Edit folder name"),children:w.jsx(JR,{})}),this.props.reorder?null:w.jsx(Ie,{size:"small",onClick:()=>this.togglePresetsFolder(r),sx:Ot.textColor,title:a?P.t("Collapse"):P.t("Expand"),children:w.jsx(sf,{style:{transform:a?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease-in-out"}})})]}),children:[w.jsx(ba,{sx:ue.getStyle(this.props.theme,Ot.itemIconRoot,Ot.folderIconPreset),onClick:()=>this.togglePresetsFolder(r),children:a?w.jsx(vf,{style:{...Ot.itemIcon,...Ot.itemIconFolder}}):w.jsx(yf,{style:{...Ot.itemIcon,...Ot.itemIconFolder}})}),w.jsx(_o,{children:r.id||P.t("Root")})]},r.prefix);this.props.reorder?o.push(w.jsx(enr,{droppableId:"tree",name:r.prefix,onDrop:d=>this.onDragFinish(d,`echarts.0${r.prefix?".":""}${r.prefix}`),children:l},`droppable_${r.prefix}`)):o.push(l)}return s.forEach(l=>o.push(l)),o}async renamePresetFolder(r,n){this.setState({changingPreset:r.id});let o;const a=this.state.presetsOpened.indexOf(r.prefix);if(a!==-1){const u=[...this.state.presetsOpened];u.splice(a,1),u.push(n),u.sort(),this.setState({presetsOpened:u})}const i=r.prefix.split(".");i[i.length-1]=n;const s=i.join(".");Object.keys(r.presets).find(u=>u===this.props.selectedId)&&(o=`${this.props.adapterName}.0.${s}.${this.props.selectedId.split(".").pop()}`);const l=Object.keys(r.presets);for(let u=0;u0;u--)d[u]===d[u-1]&&d.splice(u,1)}setTimeout(async()=>{const u=await this.getAllPresets(null,d);this.setState(u,()=>this.props.onSelectedChanged(o))},100)}isNameUnique(r,n){const o=r.split(".").length;return n===ad?!1:!Object.keys(this.state.presets).find(a=>o===a.split(".").length&&this.state.presets[a].common.name===n)}static buildPresetTree(r,n){const o=Object.values(r),a={subFolders:{},presets:{},id:"",prefix:""};return o.forEach(i=>{const s=i._id,l=s.split(".");l.shift(),l.shift();let d=a,h="";for(let u=0;u{const s=i.split(".");let l=a,d="";for(let h=0;h{this.setState({presetFolders:o,presetsOpened:i},()=>s())})}togglePresetsFolder(r){const n=[...this.state.presetsOpened],o=n.indexOf(r.prefix);if(o===-1)n.push(r.prefix);else if(n.splice(o,1),Object.keys(r.presets).includes(this.props.selectedId)){this.props.onSelectedChanged(null,a=>{a!==!1&&(window.localStorage.setItem("App.echarts.presets.opened",JSON.stringify(n)),this.setState({presetsOpened:n}))});return}window.localStorage.setItem("App.echarts.presets.opened",JSON.stringify(n)),this.setState({presetsOpened:n})}renderAddFolderDialog(){return this.props.addPresetFolderDialog?w.jsxs(or,{maxWidth:"md",fullWidth:!0,open:!0,onClose:()=>this.props.onClosePresetFolderDialog(),children:[w.jsx(_r,{children:P.t("Create folder")}),w.jsx(Wr,{style:Ot.p,children:w.jsx(Ht,{variant:"standard",fullWidth:!0,autoFocus:!0,label:P.t("Title"),value:this.state.addPresetFolderName,onChange:r=>this.setState({addPresetFolderName:r.target.value.replace(nE,"_").trim()}),onKeyUp:r=>{this.state.addPresetFolderName&&r.key==="Enter"&&this.state.addPresetFolderName!==ad&&(r.preventDefault(),r.stopPropagation(),this.addFolder(null,this.state.addPresetFolderName).then(()=>this.props.onClosePresetFolderDialog(()=>this.informAboutSubFolders())))}})}),w.jsxs(pr,{style:{...Ot.alignRight,...Ot.buttonsContainer},children:[w.jsx(tt,{variant:"contained",disabled:!this.state.addPresetFolderName||!!Object.keys(this.state.presetFolders&&this.state.presetFolders.subFolders||{}).find(r=>r===this.state.addPresetFolderName)||this.state.addPresetFolderName===ad,onClick:()=>this.addFolder(null,this.state.addPresetFolderName).then(()=>this.props.onClosePresetFolderDialog(()=>this.informAboutSubFolders())),color:"primary",autoFocus:!0,startIcon:w.jsx(sh,{}),children:P.t("Create")}),w.jsx(tt,{color:"grey",variant:"contained",onClick:()=>this.props.onClosePresetFolderDialog(),startIcon:w.jsx(wo,{}),children:P.t("Cancel")})]})]}):null}renderRenameFolderDialog(){if(!this.state.editPresetFolderDialog)return null;const r=!Object.keys(this.state.presetFolders&&this.state.presetFolders.subFolders||{}).find(n=>n===this.state.editPresetFolderName);return w.jsxs(or,{maxWidth:"md",fullWidth:!0,open:!!this.state.editPresetFolderDialog,onClose:()=>this.setState({editPresetFolderDialog:null}),children:[w.jsx(_r,{children:P.t("Edit folder")}),w.jsx(Wr,{children:w.jsx(Ht,{variant:"standard",fullWidth:!0,autoFocus:!0,label:P.t("Title"),value:this.state.editPresetFolderName,onKeyUp:n=>{this.state.editPresetFolderName&&n.key==="Enter"&&this.state.editPresetFolderName!==ad&&this.state.editFolderDialogTitleOrigin!==this.state.editPresetFolderName&&r&&(n.preventDefault(),n.stopPropagation(),this.renamePresetFolder(this.state.editPresetFolderDialog,this.state.editPresetFolderName).then(()=>this.setState({editPresetFolderDialog:null})))},onChange:n=>this.setState({editPresetFolderName:n.target.value.replace(nE,"_").trim()})})}),w.jsxs(pr,{style:{...Ot.alignRight,...Ot.buttonsContainer},children:[w.jsx(tt,{variant:"contained",disabled:!this.state.editPresetFolderName||this.state.editFolderDialogTitleOrigin===this.state.editPresetFolderName||!r||this.state.editPresetFolderName===ad,onClick:()=>{this.renamePresetFolder(this.state.editPresetFolderDialog,this.state.editPresetFolderName).then(()=>this.setState({editPresetFolderDialog:null}))},color:"primary",startIcon:w.jsx(sh,{}),children:P.t("Rename")}),w.jsx(tt,{color:"grey",variant:"contained",onClick:()=>this.setState({editPresetFolderDialog:null}),startIcon:w.jsx(wo,{}),children:P.t("Cancel")})]})]})}renderMoveDialog(){if(!this.state.movePresetDialog)return null;const r=this.state.newPresetFolder==="__root__"?"":this.state.newPresetFolder,n=this.state.movePresetDialog,o=`preset.0.${r}${r?".":""}${n}`,a=!Object.keys(this.state.presets).find(i=>i===o);return w.jsxs(or,{maxWidth:"md",fullWidth:!0,open:!0,onClose:()=>this.setState({movePresetDialog:null}),children:[w.jsx(_r,{children:P.t("Move to folder")}),w.jsx(Wr,{children:w.jsxs(_a,{style:Ot.width100,variant:"standard",children:[w.jsx($l,{shrink:!0,children:P.t("Folder")}),w.jsx(Bn,{variant:"standard",autoFocus:!0,fullWidth:!0,style:Ot.width100,value:this.state.newPresetFolder||"__root__",onChange:i=>this.setState({newPresetFolder:i.target.value}),onKeyUp:i=>{a&&i.which===13&&(i.preventDefault(),i.stopPropagation(),this.setState({movePresetDialog:null},()=>this.addPresetToFolderPrefix(this.state.presets[n],this.state.newPresetFolder==="__root__"?"":this.state.newPresetFolder)))},children:DG(this.state.presetFolders||{}).map(i=>w.jsx(Jt,{value:i.prefix||"__root__",children:i.prefix?i.prefix.replace("."," > "):P.t("Root")},i.prefix))})]})}),w.jsxs(pr,{style:{...Ot.alignRight,...Ot.buttonsContainer},children:[w.jsx(tt,{variant:"contained",disabled:!a,color:"primary",onClick:()=>this.setState({movePresetDialog:null},()=>this.addPresetToFolderPrefix(this.state.presets[n],this.state.newPresetFolder==="__root__"?"":this.state.newPresetFolder)),startIcon:w.jsx(sh,{}),children:P.t("Move to folder")}),w.jsxs(tt,{color:"grey",variant:"contained",onClick:()=>this.setState({movePresetDialog:null}),startIcon:w.jsx(wo,{}),children:[w.jsx(wo,{style:Ot.buttonIcon}),P.t("Cancel")]})]})]},"movePresetDialog")}onError(r,n){n&&console.error(n),this.props.onShowError(r.toString())}async onDragFinish(r,n){let o=`${n}.${r.split(".").pop()}`;if(o!==r){this.state.presets[o]&&(o+=`_${P.t("copy")}`);try{const a=await this.props.socket.getObject(r);if(a)try{await this.props.socket.setObject(o,a),await this.props.socket.delObject(r);const i=await this.getAllPresets();this.setState(i)}catch(i){this.onError(i,`Cannot delete object ${o}`)}}catch(a){this.onError(a,`Cannot read object ${r}`)}}}renderRenameDialog(){if(!this.state.renameDialog)return null;const r=this.state.renameDialog;return w.jsxs(or,{maxWidth:"md",fullWidth:!0,open:!0,onClose:()=>this.setState({renameDialog:null}),children:[w.jsx(_r,{children:P.t("Rename preset")}),w.jsx(Wr,{children:w.jsx(_a,{style:Ot.width100,variant:"standard",children:w.jsx(Ht,{variant:"standard",fullWidth:!0,autoFocus:!0,label:P.t("Name"),value:this.state.renamePresetDialogTitle,onKeyUp:n=>{n.keyCode===13&&this.state.renamePresetDialogTitle&&this.isNameUnique(r,this.state.renamePresetDialogTitle)&&(n.stopPropagation(),n.preventDefault(),this.setState({renameDialog:null},()=>this.renamePreset(r,this.state.renamePresetDialogTitle)))},onChange:n=>this.setState({renamePresetDialogTitle:n.target.value})})})}),w.jsxs(pr,{style:{...Ot.alignRight,...Ot.buttonsContainer},children:[w.jsx(tt,{variant:"contained",disabled:!this.state.renamePresetDialogTitle||!this.isNameUnique(r,this.state.renamePresetDialogTitle),color:"primary",onClick:()=>this.setState({renameDialog:null},()=>this.renamePreset(r,this.state.renamePresetDialogTitle)),startIcon:w.jsx(sh,{}),children:P.t("Rename")}),w.jsx(tt,{color:"grey",variant:"contained",onClick:()=>this.setState({renameDialog:null}),startIcon:w.jsx(wo,{}),children:P.t("Cancel")})]})]},"renameDialog")}renderDeleteDialog(){return this.state.deletePresetDialog?w.jsx(PO,{title:P.t("Please confirm"),text:P.t("Are you sure for delete this preset?"),ok:P.t("Delete"),cancel:P.t("Cancel"),suppressQuestionMinutes:3,dialogName:"echarts.deletePresetDialog",onClose:r=>{r?this.deletePreset(this.state.deletePresetDialog,()=>this.setState({deletePresetDialog:""})):this.setState({deletePresetDialog:""})}},"deletePresetDialog"):null}async deletePreset(r,n){try{await this.props.socket.delObject(r);const o=await this.getAllPresets();this.setState(o,()=>{if(r===this.props.selectedId){const a=Object.keys(this.state.presets);this.props.onSelectedChanged(a[0]||null)}})}catch(o){this.onError(o,`Cannot delete object ${r}`)}n()}async renamePreset(r,n){try{const o=await this.props.socket.getObject(r);o.common.name=n;const a=r.split(".");a.splice(-1,1),a.push(n.replace(nE,"_").trim()),o._id=a.join("."),await this.props.socket.setObject(o._id,o),await this.props.socket.delObject(r);const i=await this.getAllPresets();r===this.props.selectedId?this.setState(i,()=>this.props.onSelectedChanged(o._id)):this.setState(i)}catch(o){this.onError(o,`Cannot get object ${r}`)}}render(){return this.scrollToSelect!==this.props.scrollToSelect&&(this.scrollToSelect=this.props.scrollToSelect,this.scrollToSelect&&!this.scrollTimeout&&(this.scrollTimeout=setTimeout(()=>{var r;this.scrollTimeout=null,(r=this.refSelected.current)==null||r.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100))),w.jsxs(w.Fragment,{children:[w.jsx(arr,{backend:Zrr,children:w.jsx(vu,{sx:{...Ot.scroll,...Ot.mainList},children:this.renderFolder(this.state.presetFolders)})}),this.renderAddFolderDialog(),this.renderRenameFolderDialog(),this.renderDeleteDialog(),this.renderMoveDialog(),this.renderRenameDialog()]})}}const rnr=qs()(oy);function nnr(t){return Pr({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-616-64h536c4.4 0 8-3.6 8-8V284c0-7.2-8.7-10.7-13.7-5.7L592 488.6l-125.4-124a8.03 8.03 0 0 0-11.3 0l-189 189.6a7.87 7.87 0 0 0-2.3 5.6V720c0 4.4 3.6 8 8 8z"},child:[]}]})(t)}const x9=34,id=20,S9=30,Zp=15;class AG extends A.Component{render(){const e=w.jsxs("div",{style:{width:this.props.size==="small"?S9:x9,height:id,display:"flex",alignItems:"center",cursor:"pointer",position:"relative",opacity:this.props.disabled?.7:1},onClick:r=>{this.props.disabled||(r.stopPropagation(),r.preventDefault(),this.props.onChange(!this.props.checked))},children:[w.jsx("div",{style:{borderRadius:15,width:"100%",height:(this.props.size==="small"?Zp:id)*.7,opacity:.6,backgroundColor:this.props.checked?this.props.theme.palette.primary.main:this.props.theme.palette.text.disabled}}),w.jsx("div",{style:{position:"absolute",top:this.props.size==="small"?(id-Zp)/2:0,left:this.props.checked?this.props.size==="small"?S9-Zp:x9-id:0,transition:"left 0.2s",borderRadius:50,width:this.props.size==="small"?Zp:id,height:this.props.size==="small"?Zp:id,backgroundColor:this.props.checked?this.props.theme.palette.primary.main:"#EEE",boxShadow:"rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px"}})]});return this.props.labelOn||this.props.labelOff?w.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[this.props.labelOff,e,this.props.labelOn]}):e}}function C9(t,e){const r=typeof t=="object"?t._id.replace("system.adapter.",""):t.replace("system.adapter.",""),n=typeof e=="object"?e._id.replace("system.adapter.",""):e.replace("system.adapter.","");return r>n?1:r{t[n].common.members.includes(e)&&!r.includes(n)&&r.push(n)}),r}const $9=16,qt={noGutters:{paddingTop:0,paddingBottom:0,paddingLeft:0,width:"100%"},itemIconFolder:{cursor:"pointer",marginLeft:8},width100:{width:"100%"},itemIcon:{width:32,height:32,marginRight:4},itemIconRoot:{minWidth:24},itemNameDiv:{marginTop:5},itemName:{verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"calc(100% - 26px)",display:"inline-block"},itemName0:{},itemName1:{fontSize:14,opacity:.6},itemName2:{fontSize:12,opacity:.6},itemName3:{fontSize:10,opacity:.6},itemName4:{fontSize:8,opacity:.6},itemName5:{fontSize:6,opacity:.6},groupName:{verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"calc(100% - 66px)",display:"inline-block"},itemSecondaryName:{overflow:"hidden",textOverflow:"ellipsis",width:"100%",fontSize:"smaller",opacity:.6,fontStyle:"italic",whiteSpace:"nowrap",display:"inline-block"},listItemSubTitle:{fontSize:"smaller",opacity:.6,fontStyle:"italic"},adapterIcon:{width:20,height:20,borderRadius:2,marginRight:4},mainList:{width:"100%"},listItemSecondaryAction:{marginRight:4},folderItem:t=>({backgroundColor:t.palette.secondary.main,pl:"8px"})};class anr extends A.Component{constructor(r){super(r);X(this,"refSelected");X(this,"scrollToSelect",!1);X(this,"adapterPromises",{});X(this,"toggleChartFolder",r=>{const n=JSON.parse(JSON.stringify(this.state.chartsOpened));n[r]=!n[r],window.localStorage.setItem("App.echarts.opened",JSON.stringify(n));const o={chartsOpened:n};if(!n[r]){const a=r.split("///")[0];this.props.selectedId&&typeof this.props.selectedId=="object"&&this.props.selectedId.instance}this.setState(o,()=>this.props.onSelectedChanged(null))});let n;try{n=JSON.parse(window.localStorage.getItem("App.echarts.opened"))||{}}catch{n={}}this.state={instances:[],chartsOpened:n,enums:null,showAddStateDialog:""},this.refSelected=m.createRef(),this.getAllEnums().then(o=>this.getAllCharts(o)).then(o=>this.setState(o,()=>this.props.selectedId&&this.props.onSelectedChanged(this.props.selectedId)))}UNSAFE_componentWillReceiveProps(r){r.scrollToSelect!==this.scrollToSelect&&(this.scrollToSelect=r.scrollToSelect,this.scrollToSelect&&setTimeout(()=>{var n;(n=this.refSelected.current)==null||n.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100))}async getAllEnums(r){r=r||{};try{const n=await this.props.socket.getEnums();return r.enums={},Object.keys(n).forEach(o=>{var a,i,s;(o.startsWith("enum.functions.")||o.startsWith("enum.rooms."))&&((s=(i=(a=n[o])==null?void 0:a.common)==null?void 0:i.members)!=null&&s.length)&&(r.enums[o]={_id:o,common:{members:[...n[o].common.members],name:ue.getObjectNameFromObj(n[o],null,{language:P.getLanguage()})},type:"enum",native:{}})}),r}catch(n){return this.onError(n,"Cannot read enums"),{}}}async getAdapterIcon(r){var a;const n=r.split(".");if(n.length<2||n[0]==="0_userdata")return null;let o;n[0]==="system"?(n.splice(4),o=n.join(".")):(n.splice(2),o=`system.adapter.${n.join(".")}`),this.adapterPromises[o]instanceof Promise||(this.adapterPromises[o]=this.props.socket.getObject(o));try{const i=await this.adapterPromises[o];if((a=i==null?void 0:i.common)!=null&&a.icon)return ue.getObjectIcon(i)}catch(i){this.onError(i,`Cannot read object ${o}`)}return null}onError(r,n){n&&console.error(n),this.props.onShowError(r.toString())}async getChartIconAndName(r,n){let o;const a=[];if(!n)return null;const i=P.getLanguage(),s=n._id;n.common&&(n.common.icon&&(o=ue.getObjectIcon(n)),a.push(ue.getObjectNameFromObj(n,null,{language:i})));const l=ue.getParentId(n._id);if((l==null?void 0:l.split(".").length)>2)try{const d=await this.props.socket.getObject(l);if(d&&(d.type==="channel"||d.type==="device")&&d.common){!o&&d.common.icon&&(o=ue.getObjectIcon(d)),a.push(ue.getObjectNameFromObj(d,null,{language:i}));const h=ue.getParentId(l);if((h==null?void 0:h.split(".").length)>2){const u=await this.props.socket.getObject(h);if(u&&(u.type==="channel"||u.type==="device")&&u.common){!o&&u.common.icon&&(o=ue.getObjectIcon(u)),a.push(ue.getObjectNameFromObj(u,null,{language:i}));const f=ue.getParentId(h);if((f==null?void 0:f.split(".").length)>2){const g=await this.props.socket.getObject(f);g&&(g.type==="channel"||g.type==="device")&&g.common&&(!o&&g.common.icon&&(o=ue.getObjectIcon(g)),a.push(ue.getObjectNameFromObj(g,null,{language:i})))}}}}}catch(d){console.error(`Cannot read object: ${d}`)}return o=o||await this.getAdapterIcon(s),{groupId:r,id:s,img:o,name:a.filter(d=>d)}}async getAllCharts(r){r=r||{};const n=this.props.instances.map(u=>u._id.substring(15)),o=await this.props.socket.getObjectViewSystem("custom-full","",""),a={};r.enums=r.enums||this.state.enums;const i=[];Object.values(o).forEach(u=>{const f=n.find(g=>Object.keys(u.common.custom).includes(g));if(f){const g=this.props.instances.find(y=>y._id.endsWith(f));a[f]=a[f]||{_id:`system.adapter.${f}`,enabledDP:{},names:{},statesEnums:{},icon:g.common.icon,name:g.common.name||"",types:{},icons:{}},a[f].enabledDP[u._id]=u,a[f].names[u._id]=ue.getObjectNameFromObj(u,null,{language:P.getLanguage()}),a[f].types[u._id]=u.common.type==="boolean"?"boolean":"number",a[f].statesEnums[u._id]=onr(r.enums,u._id),i.push(this.getChartIconAndName(f,u))}});const s=JSON.parse(JSON.stringify(this.state.chartsOpened)),l=Object.keys(r.enums).filter(u=>u.startsWith("enum.functions.")),d=Object.keys(r.enums).filter(u=>u.startsWith("enum.rooms.")),h=Object.values(a).map(u=>{var b;const f={};Object.keys(u.enabledDP).forEach(x=>{f[x]=u.enabledDP[x],f[x].group=u._id}),u.enabledDP=f,s[u._id]=s[u._id]!==void 0?this.state.chartsOpened[u._id]||!1:!0,Object.keys(r.enums).forEach(x=>{Object.keys(f).find(S=>r.enums[x].common.members.includes(S))&&(u.enums=u.enums||[],u.enums.includes(x)||u.enums.push(x))});const g={_id:`enum.functions.${u._id}`,type:"enum",common:{members:[],name:P.t("Others")},native:{}},y={_id:`enum.rooms.${u._id}`,type:"enum",common:{members:[],name:P.t("Others")},native:{}};return Object.keys(f).forEach(x=>{l.find(S=>r.enums[S].common.members.includes(x))||g.common.members.push(x),d.find(S=>r.enums[S].common.members.includes(x))||y.common.members.push(x)}),g.common.members.length&&(u.enums=u.enums||[],u.enums.push(`enum.functions.${u._id}`),r.enums[`enum.functions.${u._id}`]=g),y.common.members.length&&(u.enums=u.enums||[],u.enums.push(`enum.rooms.${u._id}`),r.enums[`enum.rooms.${u._id}`]=y),(b=u.enums)==null||b.sort((x,S)=>r.enums[x].common.name>r.enums[S].common.name?1:r.enums[x].common.namethis.props.onSelectedChanged({id:u,instance:h[0]._id}),500)}return r.instances=h,r.chartsOpened=s,setTimeout(()=>{Promise.all(i).then(u=>{const f=JSON.parse(JSON.stringify(this.state.instances));let g=!1;u.forEach(y=>{if(y!=null&&y.groupId){const b=f.find(x=>x._id===`system.adapter.${y.groupId}`);b&&(y.img&&(b.icons[y.id]=y.img),y.name&&(b.names[y.id]=y.name),g=!0)}}),g&&this.setState({instances:f})})},100),r}renderSelectIdDialog(){return this.state.showAddStateDialog?w.jsx(OV,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,dialogName:"Add",title:P.t("Enable logging for state"),onOk:r=>{const n=Array.isArray(r)?r[0]:r;console.log(`Selected ${JSON.stringify(n)}`);const o=this.state.showAddStateDialog.replace("system.adapter.","");n&&this.props.socket.getObject(n).then(a=>{var i;if(!(a!=null&&a.common)){this.props.onShowError(P.t("Invalid object"));return}if((i=a.common.custom)!=null&&i[o]){this.props.onShowToast(P.t("Already enabled"));return}a.common.custom=a.common.custom||{},a.common.custom[o]={enabled:!0},this.props.socket.setObject(n,a).then(()=>{const s=JSON.parse(JSON.stringify(this.state.instances)),l=s.find(d=>d._id===`system.adapter.${o}`);l.enabledDP=l.enabledDP||{},l.enabledDP[a._id]=a,this.setState({instances:s},()=>this.getAllCharts())}).catch(s=>this.onError(s,`Cannot read object ${n}`))}).catch(a=>this.onError(a,`Cannot read object ${n}`)),this.setState({showAddStateDialog:""})},onClose:()=>this.setState({showAddStateDialog:""})},"selectDialog_add"):null}renderListItem(r,n,o,a){a=a||0;const i=r._id,s=this.props.selectedId&&typeof this.props.selectedId=="object"&&this.props.selectedId.id===n&&this.props.selectedId.instance===i;let l;if(typeof r.names[n]=="object"){const d=[...r.names[n]];l=w.jsx("span",{style:qt.itemName,title:d.join(" / "),children:d.map((h,u)=>w.jsx("span",{style:qt[`itemName${u}`],children:(u?" / ":"")+h},u))})}else{const d=(r.names[n]||"").toString();l=w.jsx("span",{style:qt.itemName,title:d,children:d})}return w.jsxs(Ev,{ref:s?this.refSelected:null,sx:{"&.MuiListItemButton-gutters":qt.noGutters},style:{paddingLeft:$9*a,height:48,position:"relative"},selected:s,onClick:o?void 0:()=>this.props.onSelectedChanged({id:n,instance:i}),children:[w.jsx(ba,{style:qt.itemIconRoot,children:r.types[n]==="boolean"?w.jsx(YKt,{style:qt.itemIcon}):w.jsx(nnr,{style:qt.itemIcon})}),w.jsxs("div",{style:{flexGrow:1,overflow:"hidden"},children:[w.jsxs("div",{style:qt.itemNameDiv,children:[ue.getIcon({icon:r.icons[n],prefix:"../../"},{width:20,height:20,borderRadius:2,marginRight:4}),l]}),w.jsx("div",{style:qt.itemSecondaryName,title:n,children:n.replace("system.adapter.","")})]}),!o&&this.props.multiple&&this.props.chartsList?w.jsxs("div",{style:qt.listItemSecondaryAction,children:[w.jsx(AG,{size:"small",theme:this.props.theme,onChange:d=>{const h=JSON.parse(JSON.stringify(this.props.chartsList)),u=h.find(f=>f.id===n&&f.instance===i);d&&!u?(h.push({id:n,instance:i}),h.sort((f,g)=>f.instance>g.instance?1:f.instanceg.id?1:f.idthis.props.onChangeList(h)):this.props.onChangeList(h)):!d&&u&&(h.splice(h.indexOf(u),1),this.props.onChangeList(h))},checked:!!this.props.chartsList.find(d=>d.id===n&&d.instance===i)})," "]}):null]},`${i}_${n}`)}renderListItems(r,n,o,a){if(a.gIndex=a.gIndex||0,!(n!=null&&n.length))return null;const i=r._id,s=1;if(!o)return n.map(f=>w.jsx(EE,{isDragDisabled:!this.props.selectedId||typeof this.props.selectedId=="object",draggableId:`${i}***${f}`,index:a.gIndex++,children:(g,y)=>w.jsxs(w.Fragment,{children:[w.jsx("div",{ref:g.innerRef,...g.draggableProps,...g.dragHandleProps,style:g.draggableProps.style,className:"drag-items",children:this.renderListItem(r,f,!1,s)},`${i}_${f}_item`),y.isDragging?w.jsx("div",{className:"react-beautiful-dnd-copy",children:this.renderListItem(r,f,!0)},`${i}_${f}_dnd`):null]})},`${i}_${f}`));const l=`${i}///${o}`,d=this.state.chartsOpened[l];d&&(n=n.filter(f=>this.state.enums[o].common.members.includes(f)));const h=this.state.enums[o].common.name,u=typeof h=="object"?h[P.getLanguage()]||h.en:h;return[w.jsxs(of,{style:{...qt.width100,paddingLeft:$9*s,height:48},sx:ue.getStyle(this.props.theme,qt.folderItem,{"&.MuiListItem-gutters":qt.noGutters}),secondaryAction:w.jsx(Ie,{size:"small",onClick:()=>this.toggleChartFolder(l),title:d?P.t("Collapse"):P.t("Expand"),children:w.jsx(sf,{style:{transform:d?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease-in-out"}})}),children:[w.jsx(ba,{style:qt.itemIconRoot,onClick:()=>this.toggleChartFolder(l),children:d?w.jsx(vf,{style:{...qt.itemIcon,...qt.itemIconFolder}}):w.jsx(yf,{style:{...qt.itemIcon,...qt.itemIconFolder}})}),w.jsx(_o,{primary:u})]},l),d?w.jsx(vu,{children:n.map(f=>w.jsx(EE,{isDragDisabled:!this.props.selectedId||typeof this.props.selectedId=="object",draggableId:`${i}***${f}`,index:a.gIndex++,children:(g,y)=>w.jsxs(w.Fragment,{children:[w.jsx("div",{ref:g.innerRef,...g.draggableProps,...g.dragHandleProps,style:g.draggableProps.style,className:"drag-items",children:this.renderListItem(r,f,!1,2)},`${i}_${f}_item`),y.isDragging?w.jsx("div",{className:"react-beautiful-dnd-copy",children:this.renderListItem(r,f,!0)},`${i}_${f}_dnd`):null]})},`${i}_${f}`))},`${l}_LIST`):null]}render(){const r={gIndex:0};return w.jsxs(w.Fragment,{children:[this.renderSelectIdDialog(),w.jsx(QT,{droppableId:"Lines",isDropDisabled:!0,children:n=>w.jsx("div",{ref:n.innerRef,children:w.jsx(vu,{style:{...qt.scroll,...qt.mainList},children:w.jsxs(w.Fragment,{children:[this.state.instances.map(o=>{const a=this.state.chartsOpened[o._id];let i=null;if(a){const s=Object.keys(o.enabledDP).filter(l=>!this.props.search||l.includes(this.props.search)||o.names[l].includes(this.props.search));this.props.groupBy?i=(o.enums||[]).filter(l=>l.startsWith(`enum.${this.props.groupBy}.`)).map(l=>this.renderListItems(o,s,l,r)):(s.sort(C9),i=this.renderListItems(o,s,null,r))}return[w.jsxs(of,{sx:ue.getStyle(this.props.theme,qt.width100,qt.folderItem,{height:48,color:this.props.theme.palette.mode==="dark"?void 0:"#FFF"},{"&.MuiListItem-gutters":qt.noGutters}),secondaryAction:w.jsxs(w.Fragment,{children:[a?w.jsx(Ie,{size:"small",onClick:()=>this.setState({showAddStateDialog:o._id}),style:{color:this.props.theme.palette.mode==="dark"?void 0:"#FFF"},title:P.t("Enable logging for new state"),children:w.jsx(Il,{})}):null,w.jsx(Ie,{size:"small",onClick:()=>this.toggleChartFolder(o._id),title:a?P.t("Collapse"):P.t("Expand"),style:{color:this.props.theme.palette.mode==="dark"?void 0:"#FFF"},children:w.jsx(sf,{style:{transform:a?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease-in-out"}})})]}),children:[w.jsx(ba,{style:qt.itemIconRoot,sx:{color:this.props.theme.palette.mode==="dark"?void 0:"#FFF"},onClick:()=>this.toggleChartFolder(o._id),children:a?w.jsx(vf,{style:{...qt.itemIcon,...qt.itemIconFolder}}):w.jsx(yf,{style:{...qt.itemIcon,...qt.itemIconFolder}})}),w.jsx(_o,{primary:w.jsxs("div",{style:qt.itemNameDiv,children:[w.jsx("img",{style:qt.adapterIcon,alt:"",src:`../../adapter/${o.name}/${o.icon}`}),w.jsx("div",{style:qt.groupName,children:o._id.replace("system.adapter.","")})]})})]},o._id),i]}),n.placeholder]})},"chartList")},"chartListDiv")},"charts")]})}}const inr=qs()(anr),k9=48,Fo={mainListDiv:{width:"100%",height:"100%",overflow:"hidden"},mainToolbar:t=>({background:t.palette.primary.main}),secondaryColors:t=>({background:"#888",color:t.palette.mode==="dark"?"#000":"#FFF"}),smallMargin:{marginTop:"8px !important"},heightMinusTwoToolbars:{height:`calc(100% - ${k9*2}px)`,overflow:"auto"},heightMinusToolbar:{height:`calc(100% - ${k9}px)`,overflow:"auto"},textColor:t=>({color:t.palette.mode==="dark"?"#000 !important":"#FFF !important"})};class snr extends A.Component{constructor(r){super(r);X(this,"isIFrame");this.state={search:null,multiple:window.localStorage.getItem("App.echarts.multiple")==="true",showSearch:!1,groupBy:window.localStorage.getItem("App.echarts.groupBy")||"",addPresetFolderDialog:!1,reorder:!1,showReorder:!1};try{this.isIFrame=window.self!==window.top}catch{this.isIFrame=!0}if(this.state.multiple){const n=window.localStorage.getItem("App.echarts.chartList")||"[]";let o;try{o=JSON.parse(n)}catch{o=[]}setTimeout(()=>this.props.onChangeList(o),100)}}renderListToolbar(){return w.jsxs(af,{variant:"dense",sx:Fo.mainToolbar,children:[this.state.reorder?null:w.jsx(Ie,{onClick:()=>this.props.onCreatePreset(!1),title:P.t("Create new preset"),children:w.jsx(Il,{})}),this.state.reorder?null:w.jsx(Ie,{onClick:()=>this.setState({addPresetFolderDialog:!0}),title:P.t("Create new folder"),children:w.jsx(Fpe,{})}),this.state.reorder?null:w.jsx("span",{style:Fo.right,children:w.jsx(Ie,{onClick:()=>this.setState({showSearch:!this.state.showSearch,search:""}),children:w.jsx(Nve,{})})}),this.state.showSearch?w.jsx(Ht,{variant:"standard",value:this.state.search,style:Fo.textInput,onChange:r=>this.setState({search:r.target.value}),InputProps:{endAdornment:this.state.search?w.jsx(Ie,{onClick:()=>this.setState({search:""}),children:w.jsx(Ar,{})}):void 0}}):null,w.jsx("div",{style:{flexGrow:1}}),!this.state.showSearch&&this.state.showReorder||this.state.reorder?w.jsx(Ie,{title:P.t("Reorder presets in folders"),style:{color:this.state.reorder?"red":"inherit",float:"right"},onClick:r=>{r.stopPropagation(),this.setState({reorder:!this.state.reorder})},children:w.jsx(zpe,{})},"reorder"):null,!this.state.showSearch&&this.isIFrame?w.jsx(Ie,{onClick:()=>window.open(window.location.href,"own-echarts"),title:P.t("Open in own window"),children:w.jsx(hH,{})}):null]},"toolbar")}renderFooter(){return w.jsxs(af,{variant:"dense",sx:Fo.secondaryColors,style:{gap:8},children:[this.props.selectedPresetChanged?null:w.jsx(AG,{style:{width:58},checked:this.state.multiple,theme:this.props.theme,onChange:r=>{if(window.localStorage.setItem("App.echarts.multiple",r?"true":"false"),r){const n=this.props.selectedId;n&&typeof n=="object"?this.setState({multiple:!0},()=>this.props.onChangeList([JSON.parse(JSON.stringify(n))])):this.setState({multiple:!0},()=>this.props.onChangeList([]))}else this.setState({multiple:!1},()=>this.props.onChangeList(null))},labelOn:P.t("Multiple")}),w.jsxs(_a,{variant:"standard",style:{minWidth:100},sx:Fo.textColor,children:[w.jsx($l,{shrink:!0,sx:Fo.textColor,style:{whiteSpace:"nowrap",top:5},children:P.t("Group by")}),w.jsxs(Bn,{variant:"standard",label:P.t("Group by"),sx:Fo.textColor,onChange:r=>{window.localStorage.setItem("App.echarts.groupBy",r.target.value),this.setState({groupBy:r.target.value})},value:this.state.groupBy||"",style:Fo.smallMargin,displayEmpty:!0,children:[w.jsx(Jt,{value:"",children:P.t("None")}),w.jsx(Jt,{value:"rooms",children:P.t("Rooms")}),w.jsx(Jt,{value:"functions",children:P.t("Functions")})]})]}),w.jsx("div",{style:{flex:1}}),w.jsx(Ie,{size:"small",sx:Fo.textColor,title:P.t("Charts preview"),onClick:()=>{const r=window.location.pathname.split("/");r.pop(),r.push("preview/index.html"),window.location.href=`${window.location.protocol}//${window.location.host}${r.join("/")}`},children:w.jsx(Mve,{})})]},"toolbarBottom")}render(){return w.jsxs("div",{style:Fo.mainListDiv,children:[this.renderListToolbar(),w.jsxs("div",{style:this.state.reorder?Fo.heightMinusToolbar:Fo.heightMinusTwoToolbars,children:[w.jsx(rnr,{socket:this.props.socket,scrollToSelect:this.props.scrollToSelect,addPresetFolderDialog:this.state.addPresetFolderDialog,onClosePresetFolderDialog:r=>this.setState({addPresetFolderDialog:!1},r),onCreatePreset:(r,n)=>this.props.onCreatePreset(r,n),onCopyPreset:r=>this.props.onCopyPreset(r),adapterName:this.props.adapterName,selectedPresetChanged:this.props.selectedPresetChanged,onShowToast:r=>this.props.onShowToast(r),onShowError:r=>this.props.onShowToast(r),onShowReorder:r=>{r!==this.props.showReorder&&this.setState({showReorder:r})},theme:this.props.theme,search:this.state.search,reorder:this.state.reorder,selectedId:this.props.selectedId,systemConfig:this.props.systemConfig,onSelectedChanged:(r,n)=>this.props.onSelectedChanged(r,n)}),this.state.reorder?null:w.jsx(inr,{socket:this.props.socket,scrollToSelect:this.props.scrollToSelect,instances:this.props.instances,adapterName:this.props.adapterName,onShowToast:r=>this.props.onShowToast(r),onShowError:r=>this.props.onShowToast(r),search:this.state.search,multiple:this.state.multiple&&!this.props.selectedPresetChanged,theme:this.props.theme,groupBy:this.state.groupBy,selectedId:this.props.selectedId,onChangeList:r=>{window.localStorage.setItem("App.echarts.chartList",JSON.stringify(r)),this.props.onChangeList(r)},chartsList:this.props.chartsList,onSelectedChanged:(r,n)=>this.props.onSelectedChanged(r,n)})]}),this.state.reorder?null:this.renderFooter()]},"mainMenuDiv")}}const lnr=qs()(snr);function cnr(t,e){const r={};return t.replace(/\+/g," ").split("&").forEach(n=>{const o=n.split("=");let a=decodeURIComponent(o[0]),i,s=0,l=a.split("]["),d=l.length-1;if(/\[/.test(l[0])&&/]$/.test(l[d])?(l[d]=l[d].replace(/]$/,""),l=l.shift().split("[").concat(l),d=l.length-1):d=0,o.length===2)if(i=decodeURIComponent(o[1]),d){let h=r;for(;s<=d;s++)a=l[s]===""?h.length:l[s],h=h[a]=s{const a=$h(t,e,o);a&&a.then(()=>{})});if(!e||!e.length)return r(),null;const n=e.shift();return n?t.getObject(n._id).catch(()=>null).then(o=>{o?(console.log(`Object ${n._id} already exists and will not be converted`),setTimeout(()=>$h(t,e,r),50)):t.setObject(n._id,n).then(()=>setTimeout(()=>$h(t,e,r),50))}):setTimeout(()=>$h(t,e,r),50),null}function pnr(t,e){const r={_id:t._id.replace(/^flot.\d+/,`echarts.${e}`),common:{name:t.common.name,expert:!0},native:{},type:"chart"};r._id.endsWith(".")&&(r._id=`empty_${Math.round(Math.random()*1e4)}`);const n=dnr(cnr(t.native.url));return n.lines||(n.lines=n.l,delete n.l),r.native.data=n,console.log(`Convert ${t._id} => ${r._id}`),r}function hnr(t,e){e=e||0;let r;return t.getObject(`system.adapter.echarts.${e}`).then(n=>(r=n,n&&n.native&&!n.native.convertDone?unr(t):Promise.resolve([]))).then(n=>$h(t,n.map(o=>pnr(o,e)))).then(()=>r.native.convertDone?Promise.resolve():(r.native.convertDone=!0,t.setObject(r._id,r))).catch(n=>(console.error(`Cannot convert flot: ${n}`),Promise.resolve()))}const Qp={root:t=>({width:"100%",height:"100%",background:t.palette.background.default,color:t.palette.mode==="dark"?"#FFF":"#000",fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'}),menuDiv:{overflow:"hidden"},content:t=>({width:"100%",height:"100%",backgroundColor:t.palette.background.default,position:"relative"}),menuDivWithoutMenu:{"&>div:first-child":{display:"none"},"&>.layout-splitter":{display:"none"}},progress:{margin:100},menuOpenCloseButton:t=>({position:"absolute",left:0,borderRadius:"0 5px 5px 0",top:6,pt:"8px",cursor:"pointer",zIndex:1,height:25,width:20,background:t.palette.secondary.main,color:t.palette.primary.main,pl:"3px","&:hover":{color:"white"}}),buttonsContainer:{"& button":{whiteSpace:"nowrap"}}},E9=/[.\][*,;'"`<>\\?]/g;function T9(t,e){const r=window.localStorage.getItem(`App.echarts.__${t}`);return r?parseFloat(r):e}function eh(t,e){return window.localStorage.getItem(`App.echarts.__${t}`)||e}function sd(t,e){return window.localStorage.getItem(`App.echarts.__${t}`)||e}function O9(){if(window.location.hash){const t={};return window.location.hash.replace(/^#/,"").split("&").forEach(e=>{const[r,n]=e.split("=");t[r]=window.decodeURIComponent(n),r==="instance"&&!t[r].startsWith("system.adapter")&&(t[r]=`system.adapter.${t[r]}`)}),t}return null}class ay extends ys{constructor(r){const n={socket:{}},o=Her();n.socket.port=o.port||(parseInt(window.location.port)>=3e3&&parseInt(window.location.port)<=3020?8081:window.location.port),n.socket.host=o.host||window.location.hostname,n.translations={en:gwt,de:_Ct,ru:xEt,pt:$Ot,nl:TIt,fr:ANt,it:P3t,es:jLt,pl:FFt,uk:H9t,"zh-cn":qHt},n.sentryDSN=window.sentryDSN,window.location.port==="3000"&&(n.socket={port:"8081"}),window.socketUrl&&window.socketUrl.startsWith(":")&&(window.socketUrl=`${window.location.protocol}//${window.location.hostname}${window.socketUrl}`);super(r,n);X(this,"config");X(this,"objects",{});X(this,"confirmCB",null);X(this,"onCopyPreset",async r=>{try{const n=await this.socket.getObject(r);if(n){const{id:o,name:a}=await this.getUniqueId(r,typeof n.common.name=="object"?n.common.name[P.getLanguage()]||n.common.name.en:n.common.name);n._id=o,n.common.name=a;try{await this.socket.setObject(n._id,n),this.loadChartOrPreset(o)}catch(i){this.onError(i,"Cannot save object")}}}catch(n){this.onError(n,"Cannot save object")}});X(this,"onCreatePreset",async(r,n)=>{var i;let o,a;if(r===!0){let s="";const l=this.state.selectedId,d=JSON.parse(JSON.stringify(this.state.chartsList||[]));d.find(f=>f.id===l.id&&f.instance===l.instance)||d.push(l);let h=null;d.length===1&&(h=await this.socket.getObject(d[0].id)),h&&((i=h==null?void 0:h.common)!=null&&i.name)&&(s=typeof h.common.name=="object"?(h.common.name[P.getLanguage()]||h.common.name.en||"").trim():h.common.name);const u=await this.getNewPresetName(n,s);a=`${this.adapterName}.0.${n?`${n}.`:""}${s.replace(E9,"_")}`,o={_id:a,common:{name:u,expert:!0},native:{data:JSON.parse(JSON.stringify(this.state.presetData))},type:"chart"}}else{const s=await this.getNewPresetName(n);a=`${this.adapterName}.0.${n?`${n}.`:""}${s.replace(E9,"_")}`,o={_id:a,common:{name:s},native:{url:"",data:G2(this.state.systemConfig,null,null,P.getLanguage())},type:"chart"}}try{await this.socket.setObject(a,o),this.loadChartOrPreset(a)}catch(s){this.onError(s,"Cannot save object")}});X(this,"savePreset",async()=>{if(!this.state.presetData)throw this.showError(P.t("Empty preset cannot be saved!")),new Error(P.t("Empty preset cannot be saved!"));try{const r=await this.socket.getObject(this.state.selectedId);if(!(r!=null&&r.native)){this.showError(P.t("Invalid object"));return}r.native.data=this.state.presetData;try{await this.socket.setObject(r._id,r)}catch(n){this.onError(n,"Cannot save object")}this.setState({originalPresetData:JSON.stringify(this.state.presetData),selectedPresetChanged:!1})}catch(r){this.onError(r,"Cannot read object")}});X(this,"onDragEnd",async r=>{const{source:n,destination:o,draggableId:a}=r;if(o&&a.includes("***")&&n.droppableId==="Lines"){const[i,s]=a.split("***");try{const l=await this.socket.getObject(s),d=JSON.parse(JSON.stringify(this.state.presetData)),h=Lh(this.state.systemConfig,i,l,P.getLanguage());for(let u=0;u=o.index&&(d.l[u].commonYAxis=d.l[u].commonYAxis+1);if(d.l.splice(o.index,0,h),d.l.length>1){if(h.unit){for(let u=0;uu.chartType==="bar")?h.chartType="bar":d.l.find(u=>u.chartType==="polar")&&(h.chartType="polar",h.aggregate="current")}this.setState({presetData:d,selectedPresetChanged:JSON.stringify(d)!==this.state.originalPresetData})}catch(l){this.onError(l,"Cannot read object")}}else if(o&&n.droppableId===o.droppableId){const i=JSON.parse(JSON.stringify(this.state.presetData));for(let l=0;lthis.setState({scrollToSelect:!0},()=>this.setState({scrollToSelect:!1})))}async onConnectionReady(){var h,u,f;const r=window.localStorage.getItem("App.echarts.selectedId");let n;if(r)try{n=JSON.parse(r)}catch{n=null}!n&&((h=this.config)!=null&&h.preset)?n=this.config.preset:!n&&((u=this.config)!=null&&u.id)&&(n={id:this.config.id,instance:this.config.instance});const o=window.localStorage.getItem("App.echarts.settingsSizes");let a=[25,75];if(o)try{a=JSON.parse(o)}catch{}a=a||[25,75];const i=window.localStorage.getItem("App.echarts.menuSizes");let s=[25,75];if(i)try{s=JSON.parse(i)}catch{}s=s||[25,75];const l={ready:!1,instances:[],splitSizes:a,menuSizes:s,selectedId:n,selectedPresetChanged:!1,presetData:null,originalPresetData:null,chartsList:null,progress:0,autoSave:window.localStorage.getItem("App.echarts.autoSave")==="true",discardChangesConfirmDialog:!1,resizing:!1,menuOpened:window.localStorage.getItem("App.echarts.menuOpened")!=="false",logHorzLayout:window.localStorage.getItem("App.echarts.logHorzLayout")==="true"};this.objects={};const d=await this.socket.getSystemConfig();if(l.systemConfig=d,l.presetData=G2(d),(f=this.config)!=null&&f.id){const g=this.config;l.selectedId={id:g.id,instance:g.instance},g.menuOpened!==void 0&&(l.menuOpened=g.menuOpened===!0),this.config=null}this.setState(l,async()=>{hnr(this.socket,this.instance);try{const y=(await this.socket.getAdapterInstances("")).filter(b=>{var x;return((x=b==null?void 0:b.common)==null?void 0:x.getHistory)&&b.common.enabled});this.setState({ready:!0,instances:y})}catch(g){this.onError(g,"Cannot read system config")}})}async getNewPresetName(r,n,o){o=o||(n?"":"1"),n=n||"preset_";let a;do{try{a=await this.socket.getObject(`${this.adapterName}.${this.instance}.${r?`${r}.`:""}${n}${o}`)}catch{return n+o}if(!a)return n+o;o?o=(parseInt(o,10)+1).toString():o="2"}while(a)}async getUniqueId(r,n){let o=0,a;do{const i=`${r}_${P.t("copy")}${o?`_${o}`:""}`,s=`${n} ${P.t("copy")}${o?` ${o}`:""}`;try{a=await this.socket.getObject(i)}catch{}if(!a)return{name:s,id:i};o++}while(o<100);throw new Error(P.t("Cannot create unique ID"))}onError(r,n){n&&console.error(n),this.showError(r.toString())}static normalizePreset(r){var n;r.lines&&(r.l=r.lines,delete r.lines),typeof r.range=="string"&&!r.range.includes("m")&&!r.range.includes("y")&&(r.range=parseInt(r.range,10)),(n=r.l)==null||n.forEach(o=>{typeof o.commonYAxis=="string"&&(o.commonYAxis===""?delete o.commonYAxis:o.commonYAxis=parseInt(o.commonYAxis,10)),typeof o.fill=="string"&&(o.fill===""?delete o.fill:o.fill=parseFloat(o.fill))})}async loadChartOrPreset(r){var n,o;if(window.localStorage.setItem("App.echarts.selectedId",JSON.stringify(r)),r&&typeof r=="object"){if(this.state.chartsList)for(const s of this.state.chartsList)this.objects[s.id]===void 0&&(this.objects[s.id]=await this.socket.getObject(s.id)||null);else this.objects={};this.objects[r.id]===void 0&&(this.objects[r.id]=await this.socket.getObject(r.id)||null);const a=(this.state.chartsList||[]).map(s=>Lh(this.state.systemConfig,s.instance,this.objects[s.id],P.getLanguage()));if((n=this.state.chartsList)!=null&&n.find(s=>s.id===r.id&&s.instance===r.instance)||a.push(Lh(this.state.systemConfig,r.instance,this.objects[r.id],P.getLanguage())),a.length>1){const s=a.find(l=>!l.isBoolean);if(s){const l=a.indexOf(s);if(s.yaxe="left",s.unit)for(let d=l+1;d1?"nw":""};ay.normalizePreset(i),await new Promise(s=>{this.setState({presetData:i,originalPresetData:"",selectedPresetChanged:!1,selectedId:r},()=>{const l=`#id=${r.id}&instance=${r.instance.replace(/^system\.adapter\./,"")}`;window.location.hash!==l&&(window.location.hash=l),s()})})}else if(r){const a=await this.socket.getObject(r);if((o=a==null?void 0:a.native)!=null&&o.data){const i=`#preset=${r}`;window.location.hash!==i&&(window.location.hash=i);const s={presetData:a.native.data,originalPresetData:JSON.stringify(a.native.data),selectedPresetChanged:!1,selectedId:r};ay.normalizePreset(s.presetData),await new Promise(l=>this.setState(s,()=>l()))}}else await new Promise(a=>{this.setState({presetData:null,originalPresetData:"",selectedPresetChanged:!1,selectedId:null},()=>a())})}discardChangesConfirmDialog(){return this.state.discardChangesConfirmDialog?w.jsxs(or,{maxWidth:"lg",fullWidth:!0,open:!0,onClose:()=>this.setState({discardChangesConfirmDialog:!1},()=>this.confirmCB&&this.confirmCB(!1)),children:[w.jsx(_r,{children:this.state.discardChangesConfirmDialog==="chart"?P.t("Are you sure for loading the chart and discard unsaved changes?"):this.state.discardChangesConfirmDialog==="preset"?P.t("Are you sure for loading the preset and discard unsaved changes?"):P.t("Are you sure for closing folder and discard unsaved changes?")}),w.jsxs(pr,{sx:{...Qp.alignRight,...Qp.buttonsContainer},children:[w.jsx(tt,{color:"grey",variant:"outlined",onClick:()=>this.setState({discardChangesConfirmDialog:!1},()=>this.confirmCB&&this.confirmCB(!0)),children:P.t("Load without save")}),w.jsx(tt,{variant:"contained",color:"secondary",autoFocus:!0,onClick:()=>this.savePreset().then(()=>this.setState({discardChangesConfirmDialog:!1},()=>this.confirmCB&&this.confirmCB(!0))),startIcon:w.jsx(pH,{}),children:P.t("Save current preset and load")}),w.jsx(tt,{color:"grey",variant:"contained",onClick:()=>this.setState({discardChangesConfirmDialog:!1},()=>this.confirmCB&&this.confirmCB(!1)),startIcon:w.jsx(wo,{}),children:P.t("Cancel")})]})]},"discardChangesConfirmDialog"):null}renderMain(){let r=null,n=null;this.state.presetData&&this.state.selectedId&&typeof this.state.selectedId=="string"&&(r=w.jsx(aZt,{socket:this.socket,width:window.innerWidth,theme:this.state.theme,onChange:a=>{this.state.autoSave?this.setState({presetData:a},()=>this.savePreset()):this.setState({presetData:a,selectedPresetChanged:JSON.stringify(a)!==this.state.originalPresetData})},presetData:this.state.presetData,selectedId:this.state.selectedId,instances:this.state.instances,systemConfig:this.state.systemConfig,selectedPresetChanged:this.state.selectedPresetChanged,savePreset:this.savePreset,autoSave:this.state.autoSave,onAutoSave:a=>{window.localStorage.setItem("App.echarts.autoSave",a?"true":"false"),a&&this.state.selectedPresetChanged?this.savePreset().then(()=>this.setState({autoSave:a})):this.setState({autoSave:a})},windowWidth:this.state.menuSizes[1]},"Editor")),this.state.selectedId&&(n=w.jsx(Wer,{visible:!this.state.resizing,theme:this.state.theme,onChange:a=>this.setState({presetData:a}),presetData:this.state.presetData,selectedId:this.state.selectedId,onCreatePreset:this.onCreatePreset,windowWidth:this.state.menuSizes[1]},"MainChart"));let o;return n&&r?o=w.jsxs(CP,{direction:this.state.logHorzLayout?Tr.Horizontal:Tr.Vertical,initialSizes:this.state.splitSizes,minWidths:[100,450],onResizeStarted:()=>this.setState({resizing:!0}),onResizeFinished:(a,i)=>{this.setState({resizing:!1,splitSizes:i}),window.localStorage.setItem("App.echarts.settingsSizes",JSON.stringify(i))},gutterClassName:this.state.themeType==="dark"?"Dark visGutter":"Light visGutter",children:[n,r]}):o=n,[w.jsxs(Re,{component:"div",sx:Qp.content,className:"iobVerticalSplitter",children:[w.jsx(Re,{component:"div",sx:Qp.menuOpenCloseButton,onClick:()=>{window.localStorage.setItem("App.echarts.menuOpened",this.state.menuOpened?"false":"true"),this.setState({menuOpened:!this.state.menuOpened,resizing:!0}),setTimeout(()=>this.setState({resizing:!1}),300)},children:this.state.menuOpened?w.jsx(Bpe,{}):w.jsx(HE,{})},"confirmdiv"),o]},"confirmdialog")]}renderMenu(){return w.jsx(lnr,{scrollToSelect:this.state.scrollToSelect,socket:this.socket,theme:this.state.theme,adapterName:this.adapterName,instances:this.state.instances,systemConfig:this.state.systemConfig,onShowToast:r=>this.showToast(r),selectedPresetChanged:this.state.selectedPresetChanged,chartsList:this.state.chartsList,selectedId:this.state.selectedId,onCopyPreset:this.onCopyPreset,onCreatePreset:this.onCreatePreset,onChangeList:r=>{let n=this.state.selectedId;if(r&&this.state.chartsList&&r.length&&r.length!r.find(s=>s.id===i.id&&s.instance===i.instance)),a=this.state.chartsList.indexOf(o);this.state.chartsList[a+1]?n=this.state.chartsList[a+1]:this.state.chartsList[a-1]?n=this.state.chartsList[a-1]:n=r[0]}this.setState({chartsList:r},()=>this.loadChartOrPreset(n))},onSelectedChanged:(r,n)=>{this.state.selectedPresetChanged?(this.confirmCB=o=>{o?this.loadChartOrPreset(r).then(()=>n&&n(r)):n&&n(!1),this.confirmCB=null},this.setState({discardChangesConfirmDialog:r&&typeof r=="object"?"chart":r?"preset":"folder"})):this.loadChartOrPreset(r)}},"menuList")}render(){if(!this.state.ready)return w.jsx(uE,{injectFirst:!0,children:w.jsx(yE,{theme:this.state.theme,children:w.jsx(QH,{themeType:this.state.themeType})})});let r;return this.state.menuOpened?r=w.jsx(XN,{onDragEnd:this.onDragEnd,children:w.jsxs(CP,{direction:Tr.Horizontal,initialSizes:this.state.menuSizes,minWidths:[307,300],onResizeStarted:()=>this.setState({resizing:!0}),onResizeFinished:(n,o)=>{this.setState({resizing:!1,menuSizes:[o[0],100-o[0]]}),window.localStorage.setItem("App.echarts.menuSizes",JSON.stringify(o))},gutterClassName:this.state.themeType==="dark"?"Dark visGutter":"Light visGutter",children:[this.renderMenu(),this.renderMain()]})}):r=r=w.jsx(XN,{onDragEnd:this.onDragEnd,children:this.renderMain()}),w.jsx(uE,{injectFirst:!0,children:w.jsxs(yE,{theme:this.state.theme,children:[w.jsx(Re,{sx:Qp.root,children:r}),this.discardChangesConfirmDialog(),this.renderError(),this.renderToast()]})})}}const fnr=qs()(ay);window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function mnr(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const gnr="echarts.edit",vnr="1.9.2",ynr={"@devbookhq/splitter":"^1.4.2","@vitejs/plugin-react":"^4.3.4","@types/react-color":"^3.0.13","@types/react-beautiful-dnd":"^13.1.8","material-ui-color-picker":"^3.5.1",moment:"^2.30.1",react:"^18.3.1","react-beautiful-dnd":"^13.1.1","react-dnd":"^16.0.1","react-dnd-html5-backend":"^16.0.1","react-dnd-touch-backend":"^16.0.1","react-dom":"^18.3.1","react-i18next":"^15.4.0","react-icons":"^5.4.0",typescript:"^5.7.2"},_nr=".",bnr={start:"vite dev --config vite.config.mjs --host",build:"vite build --config vite.config.mjs",lint:"eslint -c eslint.config.mjs --debug",npm:"npm i -f",tsc:"tsc -p tsconfig.json"},wnr="http://127.0.0.1:8081",xnr=["127.0.0.1"],Snr={extends:"react-app"},Cnr=[">0.2%","not dead","not ie <= 11","not op_mini all"],$nr={name:gnr,version:vnr,private:!0,dependencies:ynr,homepage:_nr,scripts:bnr,_proxy:wnr,allowedHosts:xnr,eslintConfig:Snr,browserslist:Cnr};window.adapterName="echarts";window.sentryDSN="https://709f116e1de34029921e4f2696d6740f@sentry.iobroker.net/88";console.log(`iobroker.${window.adapterName}@${$nr.version}`);const D9=document.getElementById("root");D9&&LJ.createRoot(D9).render(w.jsx(fnr,{}));mnr()});export default knr(); + */eG();var rG=Date.now(),Fk="fnValues"+rG,Bk="fnStyle"+ ++rG,xQt=function(){return{onCreateRule:function(r,n,o){if(typeof n!="function")return null;var a=xA(r,{},o);return a[Bk]=n,a},onProcessStyle:function(r,n){if(Fk in n||Bk in n)return r;var o={};for(var a in r){var i=r[a];typeof i=="function"&&(delete r[a],o[a]=i)}return n[Fk]=o,r},onUpdate:function(r,n,o,a){var i=n,s=i[Bk];s&&(i.style=s(r)||{});var l=i[Fk];if(l)for(var d in l)i.prop(d,l[d](r),a)}}},As="@global",rT="@global ",SQt=function(){function t(r,n,o){this.type="global",this.at=As,this.isProcessed=!1,this.key=r,this.options=o,this.rules=new C_(De({},o,{parent:this}));for(var a in n)this.rules.add(a,n[a]);this.rules.process()}var e=t.prototype;return e.getRule=function(n){return this.rules.get(n)},e.addRule=function(n,o,a){var i=this.rules.add(n,o,a);return i&&this.options.jss.plugins.onProcessRule(i),i},e.replaceRule=function(n,o,a){var i=this.rules.replace(n,o,a);return i&&this.options.jss.plugins.onProcessRule(i),i},e.indexOf=function(n){return this.rules.indexOf(n)},e.toString=function(n){return this.rules.toString(n)},t}(),CQt=function(){function t(r,n,o){this.type="global",this.at=As,this.isProcessed=!1,this.key=r,this.options=o;var a=r.substr(rT.length);this.rule=o.jss.createRule(a,n,De({},o,{parent:this}))}var e=t.prototype;return e.toString=function(n){return this.rule?this.rule.toString(n):""},t}(),$Qt=/\s*,\s*/g;function nG(t,e){for(var r=t.split($Qt),n="",o=0;o-1){var a=lG[e];if(!Array.isArray(a))return It.js+Fs(a)in r?It.css+a:!1;if(!o)return!1;for(var i=0;in?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var o={},a=Object.keys(r).sort(t),i=0;i"u"?null:fer(),mer()]}}function dG(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.baseClasses,r=t.newClasses;if(t.Component,!r)return e;var n=De({},e);return Object.keys(r).forEach(function(o){r[o]&&(n[o]="".concat(e[o]," ").concat(r[o]))}),n}var Yd={set:function(e,r,n,o){var a=e.get(r);a||(a=new Map,e.set(r,a)),a.set(n,o)},get:function(e,r,n){var o=e.get(r);return o?o.get(n):void 0},delete:function(e,r,n){var o=e.get(r);o.delete(n)}},ver=m.createContext(null);function uG(){var t=m.useContext(ver);return t}var yer=eG(ger()),_er=NZt(),ber=new Map,wer={disableGeneration:!1,generateClassName:_er,jss:yer,sheetsCache:null,sheetsManager:ber,sheetsRegistry:null},xer=m.createContext(wer),a9=-1e9;function Ser(){return a9+=1,a9}var Cer={};function $er(t){var e=typeof t=="function";return{create:function(n,o){var a;try{a=e?t(n):t}catch(l){throw l}if(!o||!n.overrides||!n.overrides[o])return a;var i=n.overrides[o],s=De({},a);return Object.keys(i).forEach(function(l){s[l]=ku(s[l],i[l])}),s},options:{}}}function ker(t,e,r){var n=t.state,o=t.stylesOptions;if(o.disableGeneration)return e||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var a=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,a=!0),e!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=e,a=!0),a&&(n.cacheClasses.value=dG({baseClasses:n.cacheClasses.lastJSS,newClasses:e,Component:r})),n.cacheClasses.value}function Eer(t,e){var r=t.state,n=t.theme,o=t.stylesOptions,a=t.stylesCreator,i=t.name;if(!o.disableGeneration){var s=Yd.get(o.sheetsManager,a,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Yd.set(o.sheetsManager,a,n,s));var l=De({},a.options,o,{theme:n,flip:typeof o.flip=="boolean"?o.flip:n.direction==="rtl"});l.generateId=l.serverGenerateClassName||l.generateClassName;var d=o.sheetsRegistry;if(s.refs===0){var h;o.sheetsCache&&(h=Yd.get(o.sheetsCache,a,n));var u=a.create(n,i);h||(h=o.jss.createStyleSheet(u,De({link:!1},l)),h.attach(),o.sheetsCache&&Yd.set(o.sheetsCache,a,n,h)),d&&d.add(h),s.staticSheet=h,s.dynamicStyles=tG(u)}if(s.dynamicStyles){var f=o.jss.createStyleSheet(s.dynamicStyles,De({link:!0},l));f.update(e),f.attach(),r.dynamicSheet=f,r.classes=dG({baseClasses:s.staticSheet.classes,newClasses:f.classes}),d&&d.add(f)}else r.classes=s.staticSheet.classes;s.refs+=1}}function Ter(t,e){var r=t.state;r.dynamicSheet&&r.dynamicSheet.update(e)}function Oer(t){var e=t.state,r=t.theme,n=t.stylesOptions,o=t.stylesCreator;if(!n.disableGeneration){var a=Yd.get(n.sheetsManager,o,r);a.refs-=1;var i=n.sheetsRegistry;a.refs===0&&(Yd.delete(n.sheetsManager,o,r),n.jss.removeStyleSheet(a.staticSheet),i&&i.remove(a.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),i&&i.remove(e.dynamicSheet))}}function Der(t,e){var r=m.useRef([]),n,o=m.useMemo(function(){return{}},e);r.current!==o&&(r.current=o,n=t()),m.useEffect(function(){return function(){n&&n()}},[o])}function Aer(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.name,n=e.classNamePrefix,o=e.Component,a=e.defaultTheme,i=a===void 0?Cer:a,s=ji(e,["name","classNamePrefix","Component","defaultTheme"]),l=$er(t),d=r||n||"makeStyles";l.options={index:Ser(),name:r,meta:d,classNamePrefix:d};var h=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=uG()||i,y=De({},m.useContext(xer),s),b=m.useRef(),x=m.useRef();Der(function(){var T={name:r,state:{},stylesCreator:l,stylesOptions:y,theme:g};return Eer(T,f),x.current=!1,b.current=T,function(){Oer(T)}},[g,l]),m.useEffect(function(){x.current&&Ter(b.current,f),x.current=!0});var S=ker(b.current,f.classes,o);return S};return h}function pG(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e1&&arguments[1]!==void 0?arguments[1]:{};return function(n){var o=r.defaultTheme,a=r.withTheme,i=a===void 0?!1:a,s=r.name,l=ji(r,["defaultTheme","withTheme","name"]),d=s,h=Aer(e,De({defaultTheme:o,Component:n,name:s||n.displayName,classNamePrefix:d},l)),u=m.forwardRef(function(g,y){g.classes;var b=g.innerRef,x=ji(g,["classes","innerRef"]),S=h(De({},n.defaultProps,g)),T,E=x;return(typeof s=="string"||i)&&(T=uG()||o,s&&(E=RZt({theme:T,name:s,props:x})),i&&!E.theme&&(E.theme=T)),m.createElement(n,De({ref:b||y,classes:S},E))});return bE(u,n),u}},Per=AZt();function Ner(t,e){return Mer(t,De({defaultTheme:Per},e))}var Rer=function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}},jer=A.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.dividers,i=a===void 0?!1:a,s=ji(e,["classes","className","dividers"]);return A.createElement("div",De({className:Ier(n.root,o,i&&n.dividers),ref:r},s))});const Ler=Ner(Rer,{name:"MuiDialogContent"})(jer),Ua={timeSpan:200,aggregate:250,autoRefresh:150,bigButton:200},Nn={mainDiv:{gap:2},fieldsContainer:{"& > div":{display:"flex",pr:"20px",width:200}},popOver:{padding:16},refreshSelect:{display:"inline-block","& > div:before":{borderWidth:0},"& > div:hover:before":{borderBottom:0}},refreshSelectButtonTitle:{display:"inline-flex",paddingTop:6},settingsButton:{color:"currentColor",fontSize:16,textTransform:"inherit",flexGrow:1},grow1:{flexGrow:2},aggregateIcon:{marginTop:4},divider:t=>({borderLeftColor:t.palette.mode==="dark"?"#CCC":"#444",borderLeftStyle:"dotted",borderLeftWidth:"1px",width:"1px",height:"80%"})},zer=t=>w.jsx(Re,{component:"div",sx:t.sx,title:t.tooltip,children:w.jsx(Bn,{variant:"standard",onChange:e=>t.updateValue(parseInt(e.target.value,10)),value:t.value.toString()||"",renderValue:t.renderValue,displayEmpty:!0,children:t.options?Object.keys(t.options).map(e=>w.jsx(Xt,{value:e,children:t.noTranslate?t.options[e]:P.t(t.options[e])},e)):null})}),i9={10:"10 minutes",30:"30 minutes",60:"1 hour",120:"2 hours",180:"3 hours",360:"6 hours",720:"12 hours",1440:"1 day",2880:"2 days",4320:"3 days",10080:"7 days",20160:"14 days","1m":"1 month","2m":"2 months","3m":"3 months","6m":"6 months","1y":"1 year","2y":"2 years"},s9={now:"now","1minute":"end of minute","5minutes":"end of 5 minutes","10minutes":"end of 10 minutes","30minutes":"end of 30 minutes","1hour":"end of hour","2hours":"end of 2 hours","3hours":"end of 3 hours","4hours":"end of 4 hours","6hours":"end of 6 hours","8hours":"end of 8 hours","12hours":"end of 12 hours",today:"end of day",weekEurope:"end of sunday",weekUsa:"end of saturday",week2Europe:"end of previous sunday",week2Usa:"end of previous saturday",month:"this month",year:"this year"},l9={"":"none",5:"5 seconds",10:"10 seconds",15:"15 seconds",20:"20 seconds",30:"30 seconds",60:"1 minute",120:"2 minutes",300:"5 minutes",600:"10 minutes",900:"15 minutes",1200:"20 minutes",1800:"30 minutes",3600:"1 hour",7200:"2 hours",10800:"3 hours",21600:"6 hours",43200:"12 hours",86400:"1 day"},Xk={auto:"Auto (Line or Steps)",line:"Line",bar:"Bar",polar:"Polar",scatterplot:"Scatter plot",steps:"Steps",stepsStart:"Steps on start",spline:"Spline"},Jk={minmax:"minmax",average:"average",min:"min",max:"max",total:"total",onchange:"raw",percentile:"percentile",integral:"integral",count:"count",none:"none",current:"current"};class Fer extends m.Component{constructor(r){super(r);X(this,"windowWidth");X(this,"toolbarRef");X(this,"handleResize",()=>{this.toolbarRef.current&&this.toolbarRef.current.clientWidth!==this.state.clientWidth&&this.setState({clientWidth:this.toolbarRef.current.clientWidth})});this.windowWidth=this.props.windowWidth,this.state={timeSpanOpened:!1,aggregateOpened:!1,clientWidth:0,showMore:!1},this.toolbarRef=m.createRef()}componentDidMount(){window.addEventListener("resize",this.handleResize)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}componentDidUpdate(){this.toolbarRef.current&&this.toolbarRef.current.clientWidth!==this.state.clientWidth&&(this.windowWidth=this.props.windowWidth,this.setState({clientWidth:this.toolbarRef.current.clientWidth}))}renderShowMore(){return this.state.showMore?w.jsxs(or,{maxWidth:"xs",fullWidth:!0,open:!0,onClose:()=>this.setState({showMore:!1}),children:[w.jsxs(Ler,{children:[this.renderTimeSpanElements(),this.renderAggregateElements(),this.renderAutoRefresh()]}),w.jsx(pr,{children:w.jsx(tt,{variant:"contained",onClick:()=>this.setState({showMore:!1}),startIcon:w.jsx(Ar,{}),children:P.t("Close")})})]}):null}renderTimeSpanElements(){return[w.jsx(Dt,{fullWidth:!0,value:this.props.presetData.timeType,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.timeType=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__timeType",r.toString())},label:"Type",options:{relative:"relative",static:"static"}},"time-type"),this.props.presetData.timeType==="static"?w.jsx(ty,{fullWidth:!0,date:this.props.presetData.start.toString(),time:this.props.presetData.start_time,updateValue:(r,n)=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.start=r,o.start_time=n,this.props.onChange(o),window.localStorage.setItem("App.echarts.__start",r),window.localStorage.setItem("App.echarts.__start_time",n)},label:"Start"},"static-start"):null,this.props.presetData.timeType==="static"?w.jsx(ty,{fullWidth:!0,date:this.props.presetData.end.toString(),time:this.props.presetData.end_time,updateValue:(r,n)=>{const o=JSON.parse(JSON.stringify(this.props.presetData));o.end=r,o.end_time=n,this.props.onChange(o),window.localStorage.setItem("App.echarts.__end",r),window.localStorage.setItem("App.echarts.__end_time",n)},label:"End"},"static-end"):null,this.props.presetData.timeType!=="static"?w.jsx(Dt,{fullWidth:!0,value:this.props.presetData.relativeEnd,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.relativeEnd=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__relativeEnd",r)},label:"End",options:s9},"non-static-end"):null,this.props.presetData.timeType!=="static"?w.jsx(Dt,{fullWidth:!0,value:this.props.presetData.range.toString(),updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.range=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__range",r)},label:"Range",options:i9},"non-static-range"):null]}renderTimeSpan(){return w.jsxs(w.Fragment,{children:[w.jsxs(tt,{color:"grey",title:P.t("Time span"),size:"small",style:Nn.settingsButton,id:"timeSpanOpenButton",onClick:()=>this.setState({timeSpanOpened:!this.state.timeSpanOpened}),children:[w.jsx(ive,{}),this.props.presetData.timeType==="relative"?`${P.t(i9[this.props.presetData.range])} ${P.t("to")} ${P.t(s9[this.props.presetData.relativeEnd])}`:`${this.props.presetData.start} ${this.props.presetData.start_time} - ${this.props.presetData.end} ${this.props.presetData.end_time}`,w.jsx(z5,{})]}),w.jsx(Re,{sx:Nn.divider}),w.jsx(WE,{style:Nn.popOver,open:this.state.timeSpanOpened,onClose:()=>{this.setState({timeSpanOpened:!1})},anchorEl:()=>document.getElementById("timeSpanOpenButton"),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:w.jsx("div",{style:Nn.popOver,children:w.jsx(Re,{component:"div",sx:Nn.fieldsContainer,children:this.renderTimeSpanElements()})})})]})}renderAggregateElements(){return[w.jsx(Dt,{fullWidth:!0,value:this.props.presetData.chartType,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.chartType=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__chartType",r)},label:"Chart type",options:Xk},"chart-type"),this.props.presetData.chartType!=="auto"?w.jsx(Dt,{fullWidth:!0,value:this.props.presetData.aggregate,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.aggregate=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__aggregate",r)},label:"Aggregate",options:Jk},"aggregate"):null,this.props.presetData.aggregate!=="onchange"?w.jsx(Dt,{fullWidth:!0,value:this.props.presetData.aggregateType,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.aggregateType=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__aggregateType",r)},label:"Step type",options:{count:"counts",step:"seconds"}},"aggregateType"):null,this.props.presetData.aggregate!=="onchange"?w.jsx(Er,{fullWidth:!0,value:this.props.presetData.aggregateSpan,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.aggregateSpan=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__aggregateSpan",r.toString())},label:this.props.presetData.aggregateType==="step"?"Seconds":"Counts"},"aggregateSpan"):null]}renderAggregate(){return w.jsxs(w.Fragment,{children:[w.jsxs(tt,{color:"grey",title:P.t("Aggregate"),size:"small",style:Nn.settingsButton,id:"aggregateOpenButton",onClick:()=>this.setState({aggregateOpened:!this.state.aggregateOpened}),children:[w.jsx(iZt,{style:Nn.aggregateIcon}),Xk[this.props.presetData.chartType]?P.t(Xk[this.props.presetData.chartType]):"","/",Jk[this.props.presetData.aggregate]?P.t(Jk[this.props.presetData.aggregate]):"",w.jsx(z5,{})]}),w.jsx(Re,{sx:Nn.divider}),w.jsx(WE,{open:this.state.aggregateOpened,anchorEl:()=>document.getElementById("aggregateOpenButton"),onClose:()=>{this.setState({aggregateOpened:!1})},children:w.jsx("div",{style:Nn.popOver,children:w.jsx(Re,{component:"div",sx:Nn.fieldsContainer,children:this.renderAggregateElements()})})})]})}renderAutoRefresh(){return this.props.presetData.timeType!=="relative"?null:w.jsx(zer,{sx:Nn.refreshSelect,value:this.props.presetData.live,updateValue:r=>{const n=JSON.parse(JSON.stringify(this.props.presetData));n.live=r,this.props.onChange(n),window.localStorage.setItem("App.echarts.__live",r.toString())},tooltip:P.t("Auto-refresh"),options:l9,renderValue:()=>w.jsxs("div",{style:Nn.refreshSelectButtonTitle,children:[w.jsx(MO,{})," ",P.t(l9[this.props.presetData.live])]})})}render(){const r={timeSpan:!1,aggregate:!1,autoRefresh:!1,bigButton:!1};let n=!1;const o=(this.state.clientWidth||1024)-32-40-20,a=4,i=this.props.presetData.timeType==="relative"?1:0;return o>=Ua.timeSpan+Ua.aggregate+Ua.autoRefresh*i+Ua.bigButton+a*3?(r.timeSpan=!0,r.aggregate=!0,r.autoRefresh=!0,r.bigButton=!0):o>=Ua.timeSpan+Ua.aggregate+Ua.autoRefresh*i+48+a*3?(r.timeSpan=!0,r.aggregate=!0,r.autoRefresh=!!i,r.bigButton=!1):o>=Ua.timeSpan+Ua.aggregate+48+a*2?(r.timeSpan=!0,r.aggregate=!0,n=!!i):(o>=Ua.timeSpan+48+a&&(r.timeSpan=!0),n=!0),w.jsxs(af,{ref:this.toolbarRef,style:Nn.mainDiv,variant:"dense",children:[this.renderShowMore(),r.timeSpan?this.renderTimeSpan():null,r.aggregate?this.renderAggregate():null,r.autoRefresh?w.jsxs(w.Fragment,{children:[this.renderAutoRefresh(),w.jsx(Re,{sx:Nn.divider})]}):null,w.jsx("div",{style:Nn.grow1}),n?w.jsx(Ie,{size:"small",title:P.t("Show controls"),onClick:()=>this.setState({showMore:!0}),children:w.jsx(Ave,{})}):null,r.bigButton?w.jsx(tt,{variant:"contained",color:"primary",onClick:()=>this.props.onCreatePreset(!0),startIcon:w.jsx(Nv,{}),style:{whiteSpace:"nowrap"},children:P.t("Create preset")}):w.jsx(Ie,{size:"small",color:"primary",title:P.t("Create preset"),onClick:()=>this.props.onCreatePreset(!0),children:w.jsx(Nv,{})})]})}}const c9={darkBackground:{stroke:"#3a3a3a !important",fill:"#515151 !important"},iframe:t=>({width:"100%",height:"100%",overflow:"auto",border:0,color:t.palette.primary.main})};class Ber extends m.Component{constructor(){super(...arguments);X(this,"ready",!1);X(this,"refIframe",null);X(this,"lastPresetData","");X(this,"onReceiveMessage",r=>{var n;(r==null?void 0:r.data)==="chartReady"&&(this.ready=!0,this.lastPresetData=JSON.stringify(this.props.presetData),(n=this.refIframe.contentWindow)==null||n.postMessage(this.lastPresetData,"*"),console.log("Received ready from iframe"))})}componentDidMount(){window.addEventListener("message",this.onReceiveMessage,!1)}componentWillUnmount(){window.removeEventListener("message",this.onReceiveMessage,!1)}render(){var r;return window.location.port==="3000"?w.jsx(zn,{sx:c9.iframe,style:{background:"#333"},children:w.jsx("pre",{children:JSON.stringify(this.props.presetData,null,2)})}):(this.lastPresetData!==JSON.stringify(this.props.presetData)&&this.ready&&(this.lastPresetData=JSON.stringify(this.props.presetData),(r=this.refIframe.contentWindow)==null||r.postMessage(this.lastPresetData,"*")),w.jsx("iframe",{ref:n=>{this.refIframe=n},title:"iobrokerChart",style:ue.getStyle(this.props.theme,c9.iframe),src:this.props.src}))}}const Yk={container:{height:"100%",width:"100%",overflow:"hidden"},heightWithoutToolbar:{height:"calc(100% - 48px)"},height100:{height:"100%"}};class Wer extends m.Component{renderToolbar(){return this.props.selectedId&&typeof this.props.selectedId=="string"?null:w.jsx(Fer,{windowWidth:this.props.windowWidth,onChange:this.props.onChange,presetData:this.props.presetData,onCreatePreset:(e,r)=>this.props.onCreatePreset(e,r)})}getChartFrame(){const e=(window.location.search||"").includes("dev=true")?"http://localhost:3000/":"chart/",r=JSON.parse(JSON.stringify(this.props.presetData));return typeof this.props.selectedId=="object"&&r.l&&(delete r.l[0].aggregate,delete r.l[0].chartType),w.jsx("div",{style:typeof this.props.selectedId!="string"?Yk.heightWithoutToolbar:Yk.height100,children:this.props.visible?w.jsx(Ber,{src:`${e}index.html?edit=1`,presetData:r,theme:this.props.theme}):w.jsx(zve,{style:{height:"100%",width:"100%"}})})}render(){return w.jsx(uE,{injectFirst:!0,children:w.jsx(yE,{theme:this.props.theme,children:w.jsxs("div",{style:Yk.container,children:[this.renderToolbar(),this.getChartFrame()]})})})}}function Her(){const t=(window.location.search||"").replace(/^\?/,"").split("&"),e={};return t.forEach(r=>{const[n,o]=r.split("=");e[decodeURIComponent(n)]=o!==void 0?decodeURIComponent(o):!0}),e}const hG=A.createContext({dragDropManager:void 0});function At(t,e,...r){if(Uer()&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){let n;if(e===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let o=0;n=new Error(e.replace(/%s/g,function(){return r[o++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}}function Uer(){return typeof process<"u"&&!0}function Ver(t,e,r){return e.split(".").reduce((n,o)=>n&&n[o]?n[o]:r||null,t)}function qer(t,e){return t.filter(r=>r!==e)}function fG(t){return typeof t=="object"}function Ger(t,e){const r=new Map,n=a=>{r.set(a,r.has(a)?r.get(a)+1:1)};t.forEach(n),e.forEach(n);const o=[];return r.forEach((a,i)=>{a===1&&o.push(i)}),o}function Xer(t,e){return t.filter(r=>e.indexOf(r)>-1)}const kA="dnd-core/INIT_COORDS",$_="dnd-core/BEGIN_DRAG",EA="dnd-core/PUBLISH_DRAG_SOURCE",k_="dnd-core/HOVER",E_="dnd-core/DROP",T_="dnd-core/END_DRAG";function d9(t,e){return{type:kA,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const Jer={type:kA,payload:{clientOffset:null,sourceClientOffset:null}};function Yer(t){return function(r=[],n={publishSource:!0}){const{publishSource:o=!0,clientOffset:a,getSourceClientOffset:i}=n,s=t.getMonitor(),l=t.getRegistry();t.dispatch(d9(a)),Ker(r,s,l);const d=etr(r,s);if(d==null){t.dispatch(Jer);return}let h=null;if(a){if(!i)throw new Error("getSourceClientOffset must be defined");Zer(i),h=i(d)}t.dispatch(d9(a,h));const f=l.getSource(d).beginDrag(s,d);if(f==null)return;Qer(f),l.pinSource(d);const g=l.getSourceType(d);return{type:$_,payload:{itemType:g,item:f,sourceId:d,clientOffset:a||null,sourceClientOffset:h||null,isSourcePublic:!!o}}}}function Ker(t,e,r){At(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){At(r.getSource(n),"Expected sourceIds to be registered.")})}function Zer(t){At(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Qer(t){At(fG(t),"Item must be an object.")}function etr(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function ttr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rtr(t){for(var e=1;e{const l=atr(i,s,o,n),d={type:E_,payload:{dropResult:rtr({},r,l)}};t.dispatch(d)})}}function otr(t){At(t.isDragging(),"Cannot call drop while not dragging."),At(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function atr(t,e,r,n){const o=r.getTarget(t);let a=o?o.drop(n,t):void 0;return itr(a),typeof a>"u"&&(a=e===0?{}:n.getDropResult()),a}function itr(t){At(typeof t>"u"||fG(t),"Drop result must either be an object or undefined.")}function str(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function ltr(t){return function(){const r=t.getMonitor(),n=t.getRegistry();ctr(r);const o=r.getSourceId();return o!=null&&(n.getSource(o,!0).endDrag(r,o),n.unpinSource()),{type:T_}}}function ctr(t){At(t.isDragging(),"Cannot call endDrag while not dragging.")}function aT(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function dtr(t){return function(r,{clientOffset:n}={}){utr(r);const o=r.slice(0),a=t.getMonitor(),i=t.getRegistry(),s=a.getItemType();return htr(o,i,s),ptr(o,a,i),ftr(o,a,i),{type:k_,payload:{targetIds:o,clientOffset:n||null}}}}function utr(t){At(Array.isArray(t),"Expected targetIds to be an array.")}function ptr(t,e,r){At(e.isDragging(),"Cannot call hover while not dragging."),At(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n=0;n--){const o=t[n],a=e.getTargetType(o);aT(a,r)||t.splice(n,1)}}function ftr(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function mtr(t){return function(){if(t.getMonitor().isDragging())return{type:EA}}}function gtr(t){return{beginDrag:Yer(t),publishDragSource:mtr(t),hover:dtr(t),drop:ntr(t),endDrag:ltr(t)}}class vtr{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(a){return(...i)=>{const s=a.apply(e,i);typeof s<"u"&&r(s)}}const o=gtr(this);return Object.keys(o).reduce((a,i)=>{const s=o[i];return a[i]=n(s),a},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function ytr(t,e){return{x:t.x+e.x,y:t.y+e.y}}function mG(t,e){return{x:t.x-e.x,y:t.y-e.y}}function _tr(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:mG(ytr(e,n),r)}function btr(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:mG(e,r)}const Bh=[],TA=[];Bh.__IS_NONE__=!0;TA.__IS_ALL__=!0;function wtr(t,e){return t===Bh?!1:t===TA||typeof e>"u"?!0:Xer(e,t).length>0}class xtr{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;At(typeof e=="function","listener must be a function."),At(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let o=this.store.getState().stateId;const a=()=>{const i=this.store.getState(),s=i.stateId;try{s===o||s===o+1&&!wtr(i.dirtyHandlerIds,n)||e()}finally{o=s}};return this.store.subscribe(a)}subscribeToOffsetChange(e){At(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const o=this.store.getState().dragOffset;o!==r&&(r=o,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return At(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(At(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),o=this.getItemType();return aT(n,o)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(At(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),o=this.getItemType();return n!==o?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const o=this.registry.getTargetType(e),a=this.getItemType();if(a&&!aT(o,a))return!1;const i=this.getTargetIds();if(!i.length)return!1;const s=i.indexOf(e);return n?s===i.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return _tr(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return btr(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const u9=typeof global<"u"?global:self,gG=u9.MutationObserver||u9.WebKitMutationObserver;function vG(t){return function(){const r=setTimeout(o,0),n=setInterval(o,50);function o(){clearTimeout(r),clearInterval(n),t()}}}function Str(t){let e=1;const r=new gG(t),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){e=-e,n.data=e}}const Ctr=typeof gG=="function"?Str:vG;class $tr{enqueueTask(e){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.indexthis.capacity){for(let n=0,o=e.length-this.index;n{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Ctr(this.flush),this.requestErrorThrow=vG(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class ktr{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,r){this.onError=e,this.release=r,this.task=null}}class Etr{create(e){const r=this.freeTasks,n=r.length?r.pop():new ktr(this.onError,o=>r[r.length]=o);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}const yG=new $tr,Ttr=new Etr(yG.registerPendingError);function Otr(t){yG.enqueueTask(Ttr.create(t))}const OA="dnd-core/ADD_SOURCE",DA="dnd-core/ADD_TARGET",AA="dnd-core/REMOVE_SOURCE",O_="dnd-core/REMOVE_TARGET";function Dtr(t){return{type:OA,payload:{sourceId:t}}}function Atr(t){return{type:DA,payload:{targetId:t}}}function Itr(t){return{type:AA,payload:{sourceId:t}}}function Mtr(t){return{type:O_,payload:{targetId:t}}}function Ptr(t){At(typeof t.canDrag=="function","Expected canDrag to be a function."),At(typeof t.beginDrag=="function","Expected beginDrag to be a function."),At(typeof t.endDrag=="function","Expected endDrag to be a function.")}function Ntr(t){At(typeof t.canDrop=="function","Expected canDrop to be a function."),At(typeof t.hover=="function","Expected hover to be a function."),At(typeof t.drop=="function","Expected beginDrag to be a function.")}function iT(t,e){if(e&&Array.isArray(t)){t.forEach(r=>iT(r,!1));return}At(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var qo;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(qo||(qo={}));let Rtr=0;function jtr(){return Rtr++}function Ltr(t){const e=jtr().toString();switch(t){case qo.SOURCE:return`S${e}`;case qo.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function p9(t){switch(t[0]){case"S":return qo.SOURCE;case"T":return qo.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function h9(t,e){const r=t.entries();let n=!1;do{const{done:o,value:[,a]}=r.next();if(a===e)return!0;n=!!o}while(!n);return!1}class ztr{addSource(e,r){iT(e),Ptr(r);const n=this.addHandler(qo.SOURCE,e,r);return this.store.dispatch(Dtr(n)),n}addTarget(e,r){iT(e,!0),Ntr(r);const n=this.addHandler(qo.TARGET,e,r);return this.store.dispatch(Atr(n)),n}containsHandler(e){return h9(this.dragSources,e)||h9(this.dropTargets,e)}getSource(e,r=!1){return At(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return At(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return At(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return At(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return p9(e)===qo.SOURCE}isTargetId(e){return p9(e)===qo.TARGET}removeSource(e){At(this.getSource(e),"Expected an existing source."),this.store.dispatch(Itr(e)),Otr(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){At(this.getTarget(e),"Expected an existing target."),this.store.dispatch(Mtr(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);At(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){At(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const o=Ltr(e);return this.types.set(o,r),e===qo.SOURCE?this.dragSources.set(o,n):e===qo.TARGET&&this.dropTargets.set(o,n),o}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Ftr=(t,e)=>t===e;function Btr(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Wtr(t,e,r=Ftr){if(t.length!==e.length)return!1;for(let n=0;n0||!Wtr(r,n)))return Bh;const i=n[n.length-1],s=r[r.length-1];return i!==s&&(i&&o.push(i),s&&o.push(s)),o}function Utr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vtr(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function orr(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}let m9=0;const iv=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var arr=A.memo(function(e){var{children:r}=e,n=nrr(e,["children"]);const[o,a]=irr(n);return A.useEffect(()=>{if(a){const i=_G();return++m9,()=>{--m9===0&&(i[iv]=null)}}},[]),w.jsx(hG.Provider,{value:o,children:r})});function irr(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=srr(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[e,r]}function srr(t,e=_G(),r,n){const o=e;return o[iv]||(o[iv]={dragDropManager:trr(t,e,r,n)}),o[iv]}function _G(){return typeof global<"u"?global:window}var Kk,g9;function lrr(){return g9||(g9=1,Kk=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;o--!==0;){var i=a[o];if(!t(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}),Kk}var crr=lrr();const drr=so(crr),Wl=typeof window<"u"?A.useLayoutEffect:A.useEffect;function urr(t,e,r){const[n,o]=A.useState(()=>e(t)),a=A.useCallback(()=>{const i=e(t);drr(n,i)||(o(i),r&&r())},[n,t,r]);return Wl(a),[n,a]}function prr(t,e,r){const[n,o]=urr(t,e,r);return Wl(function(){const i=t.getHandlerId();if(i!=null)return t.subscribeToStateChange(o,{handlerIds:[i]})},[t,o]),n}function bG(t,e,r){return prr(e,t||(()=>({})),()=>r.reconnect())}function wG(t,e){const r=[];return typeof t!="function"&&r.push(t),A.useMemo(()=>typeof t=="function"?t():t,r)}function hrr(t){return A.useMemo(()=>t.hooks.dragSource(),[t])}function frr(t){return A.useMemo(()=>t.hooks.dragPreview(),[t])}let Zk=!1,Qk=!1;class mrr{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){At(!Zk,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Zk=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Zk=!1}}isDragging(){if(!this.sourceId)return!1;At(!Qk,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Qk=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Qk=!1}}subscribeToStateChange(e,r){return this.internalMonitor.subscribeToStateChange(e,r)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,r){return this.internalMonitor.isOverTarget(e,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let eE=!1;class grr{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,r){return this.internalMonitor.subscribeToStateChange(e,r)}canDrop(){if(!this.targetId)return!1;At(!eE,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return eE=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{eE=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function vrr(t,e,r){const n=r.getRegistry(),o=n.addTarget(t,e);return[o,()=>n.removeTarget(o)]}function yrr(t,e,r){const n=r.getRegistry(),o=n.addSource(t,e);return[o,()=>n.removeSource(o)]}function sT(t,e,r,n){let o;if(o!==void 0)return!!o;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const a=Object.keys(t),i=Object.keys(e);if(a.length!==i.length)return!1;const s=Object.prototype.hasOwnProperty.bind(e);for(let l=0;l, or turn it into a drag source or a drop target itself.`)}function brr(t){return(e=null,r=null)=>{if(!A.isValidElement(e)){const a=e;return t(a,r),a}const n=e;return _rr(n),wrr(n,r?a=>t(a,r):t)}}function xG(t){const e={};return Object.keys(t).forEach(r=>{const n=t[r];if(r.endsWith("Ref"))e[r]=t[r];else{const o=brr(n);e[r]=()=>o}}),e}function v9(t,e){typeof t=="function"?t(e):t.current=e}function wrr(t,e){const r=t.ref;return At(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?A.cloneElement(t,{ref:n=>{v9(r,n),v9(e,n)}}):A.cloneElement(t,{ref:e})}class xrr{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?e?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),r):(this.lastConnectedDragSource=e,r):r}reconnectDragPreview(e=!1){const r=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!sT(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!sT(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=xG({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,lT(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,lT(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Srr{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!sT(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=xG({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,lT(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Uu(){const{dragDropManager:t}=A.useContext(hG);return At(t!=null,"Expected drag drop context"),t}function Crr(t,e){const r=Uu(),n=A.useMemo(()=>new xrr(r.getBackend()),[r]);return Wl(()=>(n.dragSourceOptions=t||null,n.reconnect(),()=>n.disconnectDragSource()),[n,t]),Wl(()=>(n.dragPreviewOptions=e||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,e]),n}function $rr(){const t=Uu();return A.useMemo(()=>new mrr(t),[t])}class krr{beginDrag(){const e=this.spec,r=this.monitor;let n=null;return typeof e.item=="object"?n=e.item:typeof e.item=="function"?n=e.item(r):n={},n??null}canDrag(){const e=this.spec,r=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(r):!0}isDragging(e,r){const n=this.spec,o=this.monitor,{isDragging:a}=n;return a?a(o):r===e.getSourceId()}endDrag(){const e=this.spec,r=this.monitor,n=this.connector,{end:o}=e;o&&o(r.getItem(),r),n.reconnect()}constructor(e,r,n){this.spec=e,this.monitor=r,this.connector=n}}function Err(t,e,r){const n=A.useMemo(()=>new krr(t,e,r),[e,r]);return A.useEffect(()=>{n.spec=t},[t]),n}function Trr(t){return A.useMemo(()=>{const e=t.type;return At(e!=null,"spec.type must be defined"),e},[t])}function Orr(t,e,r){const n=Uu(),o=Err(t,e,r),a=Trr(t);Wl(function(){if(a!=null){const[s,l]=yrr(a,o,n);return e.receiveHandlerId(s),r.receiveHandlerId(s),l}},[n,e,r,o,a])}function Drr(t,e){const r=wG(t);At(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=$rr(),o=Crr(r.options,r.previewOptions);return Orr(r,n,o),[bG(r.collect,n,o),hrr(o),frr(o)]}function Arr(t){return A.useMemo(()=>t.hooks.dropTarget(),[t])}function Irr(t){const e=Uu(),r=A.useMemo(()=>new Srr(e.getBackend()),[e]);return Wl(()=>(r.dropTargetOptions=t||null,r.reconnect(),()=>r.disconnectDropTarget()),[t]),r}function Mrr(){const t=Uu();return A.useMemo(()=>new grr(t),[t])}function Prr(t){const{accept:e}=t;return A.useMemo(()=>(At(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class Nrr{canDrop(){const e=this.spec,r=this.monitor;return e.canDrop?e.canDrop(r.getItem(),r):!0}hover(){const e=this.spec,r=this.monitor;e.hover&&e.hover(r.getItem(),r)}drop(){const e=this.spec,r=this.monitor;if(e.drop)return e.drop(r.getItem(),r)}constructor(e,r){this.spec=e,this.monitor=r}}function Rrr(t,e){const r=A.useMemo(()=>new Nrr(t,e),[e]);return A.useEffect(()=>{r.spec=t},[t]),r}function jrr(t,e,r){const n=Uu(),o=Rrr(t,e),a=Prr(t);Wl(function(){const[s,l]=vrr(a,o,n);return e.receiveHandlerId(s),r.receiveHandlerId(s),l},[n,e,o,r,a.map(i=>i.toString()).join("|")])}function Lrr(t,e){const r=wG(t),n=Mrr(),o=Irr(r.options);return jrr(r,n,o),[bG(r.collect,n,o),Arr(o)]}function SG(t){let e=null;return()=>(e==null&&(e=t()),e)}function zrr(t,e){return t.filter(r=>r!==e)}function Frr(t,e){const r=new Set,n=a=>r.add(a);t.forEach(n),e.forEach(n);const o=[];return r.forEach(a=>o.push(a)),o}class Brr{enter(e){const r=this.entered.length,n=o=>this.isNodeInDocument(o)&&(!o.contains||o.contains(e));return this.entered=Frr(this.entered.filter(n),[e]),r===0&&this.entered.length>0}leave(e){const r=this.entered.length;return this.entered=zrr(this.entered.filter(this.isNodeInDocument),e),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Wrr{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const r={};Object.keys(this.config.exposeProperties).forEach(n=>{const o=this.config.exposeProperties[n];o!=null&&(r[n]={value:o(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,r){return r===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const CG="__NATIVE_FILE__",$G="__NATIVE_URL__",kG="__NATIVE_TEXT__",EG="__NATIVE_HTML__",y9=Object.freeze(Object.defineProperty({__proto__:null,FILE:CG,HTML:EG,TEXT:kG,URL:$G},Symbol.toStringTag,{value:"Module"}));function tE(t,e,r){const n=e.reduce((o,a)=>o||t.getData(a),"");return n??r}const cT={[CG]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[EG]:{exposeProperties:{html:(t,e)=>tE(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[$G]:{exposeProperties:{urls:(t,e)=>tE(t,e,"").split(` +`),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[kG]:{exposeProperties:{text:(t,e)=>tE(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function Hrr(t,e){const r=cT[t];if(!r)throw new Error(`native type ${t} has no configuration`);const n=new Wrr(r);return n.loadDataTransfer(e),n}function rE(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(cT).filter(r=>{const n=cT[r];return n!=null&&n.matchesTypes?n.matchesTypes.some(o=>e.indexOf(o)>-1):!1})[0]||null}const Urr=SG(()=>/firefox/i.test(navigator.userAgent)),TG=SG(()=>!!window.safari);class _9{interpolate(e){const{xs:r,ys:n,c1s:o,c2s:a,c3s:i}=this;let s=r.length-1;if(e===r[s])return n[s];let l=0,d=i.length-1,h;for(;l<=d;){h=Math.floor(.5*(l+d));const g=r[h];if(ge)d=h-1;else return n[h]}s=Math.max(0,d);const u=e-r[s],f=u*u;return n[s]+o[s]*u+a[s]*f+i[s]*u*f}constructor(e,r){const{length:n}=e,o=[];for(let g=0;ge[g]{let O=new _9([0,.5,1],[l.y,l.y/h*y,l.y+y-h]).interpolate(f);return TG()&&a&&(O+=(window.devicePixelRatio-1)*y),O},x=()=>new _9([0,.5,1],[l.x,l.x/d*g,l.x+g-d]).interpolate(u),{offsetX:S,offsetY:T}=o,E=S===0||S,$=T===0||T;return{x:E?S:x(),y:$?T:b()}}class Jrr{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,r){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=r}}function Yrr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b9(t){for(var e=1;e{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,r,n){this.sourceNodes.set(e,r),this.sourceNodeOptions.set(e,n);const o=i=>this.handleDragStart(i,e),a=i=>this.handleSelectStart(i);return r.setAttribute("draggable","true"),r.addEventListener("dragstart",o),r.addEventListener("selectstart",a),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),r.removeEventListener("dragstart",o),r.removeEventListener("selectstart",a),r.setAttribute("draggable","false")}}connectDropTarget(e,r){const n=i=>this.handleDragEnter(i,e),o=i=>this.handleDragOver(i,e),a=i=>this.handleDrop(i,e);return r.addEventListener("dragenter",n),r.addEventListener("dragover",o),r.addEventListener("drop",a),()=>{r.removeEventListener("dragenter",n),r.removeEventListener("dragover",o),r.removeEventListener("drop",a)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(e);return b9({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(e);return b9({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(y9).some(r=>y9[r]===e)}beginDragNativeItem(e,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=Hrr(e,r),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const r=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var n;return(n=this.rootElement)===null||n===void 0?void 0:n.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},r)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,r){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}handleDragEnter(e,r){this.dragEnterTargetIds.unshift(r)}handleDragOver(e,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}handleDrop(e,r){this.dropTargetIds.unshift(r)}constructor(e,r,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=o=>{const a=this.sourceNodes.get(o);return a&&OG(a)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=o=>!!(o&&this.document&&this.document.body&&this.document.body.contains(o)),this.endDragIfSourceWasRemovedFromDOM=()=>{const o=this.currentDragSourceNode;o==null||this.isNodeInDocument(o)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=o=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(o||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=o=>{if(o.defaultPrevented)return;const{dragStartSourceIds:a}=this;this.dragStartSourceIds=null;const i=Vg(o);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:i});const{dataTransfer:s}=o,l=rE(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const h=this.monitor.getSourceId(),u=this.sourceNodes.get(h),f=this.sourcePreviewNodes.get(h)||u;if(f){const{anchorX:g,anchorY:y,offsetX:b,offsetY:x}=this.getCurrentSourcePreviewNodeOptions(),E=Xrr(u,f,i,{anchorX:g,anchorY:y},{offsetX:b,offsetY:x});s.setDragImage(f,E.x,E.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(o.target);const{captureDraggingState:d}=this.getCurrentSourcePreviewNodeOptions();d?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=o=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(o.dataTransfer)}if(!this.enterLeaveCounter.enter(o.target)||this.monitor.isDragging())return;const{dataTransfer:s}=o,l=rE(s);l&&this.beginDragNativeItem(l,s)},this.handleTopDragEnter=o=>{const{dragEnterTargetIds:a}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=o.altKey,a.length>0&&this.actions.hover(a,{clientOffset:Vg(o)}),a.some(s=>this.monitor.canDropOnTarget(s))&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=o=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(o.dataTransfer)}},this.handleTopDragOver=o=>{const{dragOverTargetIds:a}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}this.altKeyPressed=o.altKey,this.lastClientOffset=Vg(o),this.scheduleHover(a),(a||[]).some(s=>this.monitor.canDropOnTarget(s))?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=o=>{this.isDraggingNativeItem()&&o.preventDefault(),this.enterLeaveCounter.leave(o.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=o=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var a;o.preventDefault(),(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(o.dataTransfer)}else rE(o.dataTransfer)&&o.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=o=>{const{dropTargetIds:a}=this;this.dropTargetIds=[],this.actions.hover(a,{clientOffset:Vg(o)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=o=>{const a=o.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(o.preventDefault(),a.dragDrop()))},this.options=new Jrr(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Brr(this.isNodeInDocument)}}const Zrr=function(e,r,n){return new Krr(e,r,n)},ad="_consumption_",Qrr=!window.location.search.includes("hidden=false");function DG(t){let e=[];return Object.values(t.subFolders||{}).forEach(r=>e=e.concat(DG(r))),e}const enr=t=>{const{onDrop:e}=t,[{isOver:r,isOverAny:n},o]=Lrr({accept:"item",drop:a=>e(a.name),collect:a=>({isOver:a.isOver({shallow:!0}),isOverAny:a.isOver()})});return w.jsx("div",{ref:o,style:{background:r?"#40adff":void 0,opacity:n?.3:void 0},children:t.children})},tnr=t=>{const{name:e}=t,[{opacity:r},n]=Drr({type:"item",item:()=>({name:e}),collect:o=>({opacity:o.isDragging()?.3:1})});return w.jsx("div",{ref:n,style:{opacity:r,transform:"translate3d(0, 0, 0)"},children:t.children})},w9=16,nE=/[.\][*,;'"`<>\\?]/g,Ot={noGutters:{pt:0,pb:0,width:"100%"},changed:t=>({position:"relative","&:after":{content:'""',position:"absolute",top:2,right:2,width:5,height:5,borderRadius:5,background:(t.palette.mode==="dark","#CC0000")}}),itemIcon:{width:32,height:32,marginRight:4},itemIconFolder:{cursor:"pointer"},buttonsContainer:{"& button":{whiteSpace:"nowrap"}},itemIconPreset:t=>({color:t.palette.mode==="dark"?t.palette.primary.light:t.palette.primary.dark,position:"relative"}),folderIconPreset:t=>({color:t.palette.mode==="dark"?t.palette.secondary.dark:t.palette.secondary.light}),width100:{width:"100%"},buttonIcon:{marginRight:4},itemIconRoot:{minWidth:24},listItemSubTitle:{fontSize:"smaller",opacity:.7,fontStyle:"italic",display:"inline-block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},mainList:{width:"calc(100% - 8px)",ml:"8px"},iconCopy:{width:16},listItemSecondaryAction:{right:7},listItemTitle:{lineHeight:1,width:"100%"},listItemTitleDiv:{display:"inline-block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},itemIconNumber:t=>({position:"absolute",fontSize:12,top:8,left:-1,width:"100%",textAlign:"center",color:t.palette.mode==="dark"?"#000":"#FFF"}),textColor:t=>({color:t.palette.mode==="dark"?"#FFF !important":"#000 !important"})};class oy extends A.Component{constructor(r){super(r);X(this,"refSelected");X(this,"scrollToSelect",!1);X(this,"scrollTimeout",null);X(this,"onPresetChange",(r,n)=>{if(!(r!=null&&r.startsWith("echarts.")))return;let o,a=!1;if(n?(n.common=n.common||{},n.native=n.native||{},JSON.stringify(n)!==JSON.stringify(this.state.presets[r])&&(o=JSON.parse(JSON.stringify(this.state.presets)),o[r]=n,a=!0)):this.state.presets[r]&&(o=JSON.parse(JSON.stringify(this.state.presets)),delete o[r],a=!0),a){const i=this.getEmptyFolders(),s={presets:o,changingPreset:"",presetFolders:oy.buildPresetTree(o,i)};setTimeout(()=>this.informAboutSubFolders(s.presetFolders),200),this.setState(s)}});X(this,"addPresetToFolderPrefix",async(r,n,o)=>{const a=r._id,i=r._id.split(".").pop();r._id=`${this.props.adapterName}.0.${n}${n?".":""}${i}`;try{if(await this.props.socket.setObject(r._id,r),console.log(`Deleted ${a}`),await this.props.socket.delObject(a),console.log(`Set new ID: ${r._id}`),!o){const s=await this.getAllPresets();this.setState(s)}}catch(s){this.onError(s,`Cannot delete object ${a}`)}});let n;try{n=JSON.parse(window.localStorage.getItem("App.echarts.presets.opened"))||[]}catch{n=[]}this.state={presetsOpened:n,presets:{},presetFolders:null,changingPreset:"",deletePresetDialog:"",movePresetDialog:"",newPresetFolder:"",addPresetFolderName:"",editPresetFolderDialog:null,editFolderDialogTitleOrigin:"",editPresetFolderName:"",renameDialog:"",renamePresetDialogTitle:""},this.refSelected=m.createRef(),this.getAllPresets().then(o=>this.setState(o))}async componentDidMount(){await this.props.socket.subscribeObject(`${this.props.adapterName}.0.*`,this.onPresetChange)}async componentWillUnmount(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),await this.props.socket.unsubscribeObject(`${this.props.adapterName}.0.*`,this.onPresetChange)}informAboutSubFolders(r){r=r||this.state.presetFolders||{},this.props.onShowReorder(!!Object.keys(r.subFolders||{}).length)}getEmptyFolders(r,n,o){if(o=o||[],n=n||[],r=r||this.state.presetFolders||{},r.id){const a=[...n];a.push(r.id),o.push(a.join("."))}return r.subFolders&&Object.keys(r.subFolders).forEach(a=>this.getEmptyFolders(r.subFolders[a],n,o)),o}async getAllPresets(r,n){r=r||{};const o={},a=await this.props.socket.getObjectViewSystem("chart",`${this.props.adapterName}.`,`${this.props.adapterName}.香`);return a&&Object.values(a).forEach(i=>i._id&&!i._id.toString().endsWith(".")&&(o[i._id]=i)),r.presets=o,r.changingPreset="",Object.keys(r.presets).forEach(i=>{const s=r.presets[i];s.common=s.common||{},s.native=s.native||{}}),n=n||this.getEmptyFolders(),r.presetFolders=oy.buildPresetTree(o,n),setTimeout(()=>this.informAboutSubFolders(r.presetFolders),200),r}renderPreset(r,n){var d,h;const o=this.state.presets[r._id],a=typeof r.common.name=="object"?r.common.name[P.getLanguage()]||r.common.name.en:r.common.name;if(!o||this.props.search&&!a.includes(this.props.search))return null;n=n||0;const i=(this.props.reorder?n:n-1)*w9;let s=null;((d=r.native.data.l||r.native.data.lines)==null?void 0:d.length)>1&&(s=w.jsx(Re,{sx:Ot.itemIconNumber,children:(h=r.native.data.l||r.native.data.lines)==null?void 0:h.length}));const l=w.jsxs(Ev,{sx:{"&.MuiListItemButton-gutters":ue.getStyle(this.props.theme,Ot.noGutters,this.props.selectedId===r._id&&this.props.selectedPresetChanged&&Ot.changed),height:48},selected:this.props.selectedId===r._id,style:{paddingLeft:i},className:this.props.reorder?"item-reorder":"",ref:this.props.selectedId===r._id?this.refSelected:null,onClick:()=>this.props.onSelectedChanged(o._id),children:[w.jsxs(ba,{sx:ue.getStyle(this.props.theme,Ot.itemIconRoot,Ot.itemIconPreset),children:[w.jsx(JKt,{style:Ot.itemIcon}),s]}),w.jsx(_o,{sx:{"& .MuiListItemText-primary":Ot.listItemTitle,"& .MuiListItemText-secondary":Ot.listItemSubTitle},primary:w.jsx("div",{style:Ot.listItemTitleDiv,children:ue.getObjectNameFromObj(o,null,{language:P.getLanguage()})}),secondary:ue.getObjectNameFromObj(o,null,{language:P.getLanguage()},!0)}),this.state.changingPreset===o._id?w.jsx(pO,{size:24}):this.props.reorder?null:w.jsxs(w.Fragment,{children:[this.props.selectedId!==o._id||!this.props.selectedPresetChanged?w.jsx(Ie,{size:"small","aria-label":"Rename",title:P.t("Rename"),sx:Ot.textColor,onClick:u=>{u.stopPropagation(),this.setState({renameDialog:o._id,renamePresetDialogTitle:a})},children:w.jsx(JR,{})}):null,w.jsx(Ie,{size:"small","aria-label":"Copy",title:P.t("Copy"),sx:Ot.textColor,onClick:()=>this.props.onCopyPreset(o._id),children:w.jsx(Di,{style:Ot.iconCopy})}),w.jsx(Ie,{size:"small",sx:Ot.textColor,"aria-label":"Delete",title:P.t("Delete"),onClick:()=>this.setState({deletePresetDialog:o._id}),children:w.jsx(yu,{})})]})]},r._id);return this.props.reorder?w.jsx(tnr,{name:r._id,draggableId:r._id,children:l},`draggable_${r._id}`):l}renderFolder(r,n){const o=[];n=n||0;const a=this.props.reorder||(this.state.presetsOpened&&r?this.state.presetsOpened.includes(r.prefix):!1),i=(this.props.reorder?n:n-1)*w9,s=[];if(r&&(a||!r.id)){const l=Object.values(r.presets||{}),d=Object.values(r.subFolders||{});d.sort((h,u)=>h.id>u.id?1:h.id!(Qrr&&h.id===ad)).forEach(h=>s.push(this.renderFolder(h,n+1))),l.length||d.length?l.sort((h,u)=>h._id>u._id?1:h._ids.push(this.renderPreset(h,n+1))):n===0&&s.push(w.jsx(of,{sx:{"&.MuiListItem-gutters":Ot.noGutters},children:w.jsx(_o,{style:Ot.folderItem,children:P.t("No presets created yet")})},"no presets"))}if(r&&(r.id||this.props.reorder)){const l=w.jsxs(of,{sx:{"&.MuiListItem-gutters":Ot.noGutters},className:this.props.reorder?"folder-reorder":"",style:{...Ot.width100,...Ot.folderItem,paddingLeft:i,height:48},secondaryAction:w.jsxs(w.Fragment,{children:[!this.props.reorder&&r&&r.id&&a?w.jsx(Ie,{size:"small",sx:Ot.textColor,onClick:()=>this.props.onCreatePreset(r.id),title:P.t("Create new preset"),children:w.jsx(Il,{})}):null,this.props.reorder?null:w.jsx(Ie,{size:"small",sx:Ot.textColor,onClick:()=>this.setState({editPresetFolderDialog:r,editPresetFolderName:r.id,editFolderDialogTitleOrigin:r.id}),title:P.t("Edit folder name"),children:w.jsx(JR,{})}),this.props.reorder?null:w.jsx(Ie,{size:"small",onClick:()=>this.togglePresetsFolder(r),sx:Ot.textColor,title:a?P.t("Collapse"):P.t("Expand"),children:w.jsx(sf,{style:{transform:a?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease-in-out"}})})]}),children:[w.jsx(ba,{sx:ue.getStyle(this.props.theme,Ot.itemIconRoot,Ot.folderIconPreset),onClick:()=>this.togglePresetsFolder(r),children:a?w.jsx(vf,{style:{...Ot.itemIcon,...Ot.itemIconFolder}}):w.jsx(yf,{style:{...Ot.itemIcon,...Ot.itemIconFolder}})}),w.jsx(_o,{children:r.id||P.t("Root")})]},r.prefix);this.props.reorder?o.push(w.jsx(enr,{droppableId:"tree",name:r.prefix,onDrop:d=>this.onDragFinish(d,`echarts.0${r.prefix?".":""}${r.prefix}`),children:l},`droppable_${r.prefix}`)):o.push(l)}return s.forEach(l=>o.push(l)),o}async renamePresetFolder(r,n){this.setState({changingPreset:r.id});let o;const a=this.state.presetsOpened.indexOf(r.prefix);if(a!==-1){const u=[...this.state.presetsOpened];u.splice(a,1),u.push(n),u.sort(),this.setState({presetsOpened:u})}const i=r.prefix.split(".");i[i.length-1]=n;const s=i.join(".");Object.keys(r.presets).find(u=>u===this.props.selectedId)&&(o=`${this.props.adapterName}.0.${s}.${this.props.selectedId.split(".").pop()}`);const l=Object.keys(r.presets);for(let u=0;u0;u--)d[u]===d[u-1]&&d.splice(u,1)}setTimeout(async()=>{const u=await this.getAllPresets(null,d);this.setState(u,()=>this.props.onSelectedChanged(o))},100)}isNameUnique(r,n){const o=r.split(".").length;return n===ad?!1:!Object.keys(this.state.presets).find(a=>o===a.split(".").length&&this.state.presets[a].common.name===n)}static buildPresetTree(r,n){const o=Object.values(r),a={subFolders:{},presets:{},id:"",prefix:""};return o.forEach(i=>{const s=i._id,l=s.split(".");l.shift(),l.shift();let d=a,h="";for(let u=0;u{const s=i.split(".");let l=a,d="";for(let h=0;h{this.setState({presetFolders:o,presetsOpened:i},()=>s())})}togglePresetsFolder(r){const n=[...this.state.presetsOpened],o=n.indexOf(r.prefix);if(o===-1)n.push(r.prefix);else if(n.splice(o,1),Object.keys(r.presets).includes(this.props.selectedId)){this.props.onSelectedChanged(null,a=>{a!==!1&&(window.localStorage.setItem("App.echarts.presets.opened",JSON.stringify(n)),this.setState({presetsOpened:n}))});return}window.localStorage.setItem("App.echarts.presets.opened",JSON.stringify(n)),this.setState({presetsOpened:n})}renderAddFolderDialog(){return this.props.addPresetFolderDialog?w.jsxs(or,{maxWidth:"md",fullWidth:!0,open:!0,onClose:()=>this.props.onClosePresetFolderDialog(),children:[w.jsx(_r,{children:P.t("Create folder")}),w.jsx(Wr,{style:Ot.p,children:w.jsx(Ht,{variant:"standard",fullWidth:!0,autoFocus:!0,label:P.t("Title"),value:this.state.addPresetFolderName,onChange:r=>this.setState({addPresetFolderName:r.target.value.replace(nE,"_").trim()}),onKeyUp:r=>{this.state.addPresetFolderName&&r.key==="Enter"&&this.state.addPresetFolderName!==ad&&(r.preventDefault(),r.stopPropagation(),this.addFolder(null,this.state.addPresetFolderName).then(()=>this.props.onClosePresetFolderDialog(()=>this.informAboutSubFolders())))}})}),w.jsxs(pr,{style:{...Ot.alignRight,...Ot.buttonsContainer},children:[w.jsx(tt,{variant:"contained",disabled:!this.state.addPresetFolderName||!!Object.keys(this.state.presetFolders&&this.state.presetFolders.subFolders||{}).find(r=>r===this.state.addPresetFolderName)||this.state.addPresetFolderName===ad,onClick:()=>this.addFolder(null,this.state.addPresetFolderName).then(()=>this.props.onClosePresetFolderDialog(()=>this.informAboutSubFolders())),color:"primary",autoFocus:!0,startIcon:w.jsx(sh,{}),children:P.t("Create")}),w.jsx(tt,{color:"grey",variant:"contained",onClick:()=>this.props.onClosePresetFolderDialog(),startIcon:w.jsx(wo,{}),children:P.t("Cancel")})]})]}):null}renderRenameFolderDialog(){if(!this.state.editPresetFolderDialog)return null;const r=!Object.keys(this.state.presetFolders&&this.state.presetFolders.subFolders||{}).find(n=>n===this.state.editPresetFolderName);return w.jsxs(or,{maxWidth:"md",fullWidth:!0,open:!!this.state.editPresetFolderDialog,onClose:()=>this.setState({editPresetFolderDialog:null}),children:[w.jsx(_r,{children:P.t("Edit folder")}),w.jsx(Wr,{children:w.jsx(Ht,{variant:"standard",fullWidth:!0,autoFocus:!0,label:P.t("Title"),value:this.state.editPresetFolderName,onKeyUp:n=>{this.state.editPresetFolderName&&n.key==="Enter"&&this.state.editPresetFolderName!==ad&&this.state.editFolderDialogTitleOrigin!==this.state.editPresetFolderName&&r&&(n.preventDefault(),n.stopPropagation(),this.renamePresetFolder(this.state.editPresetFolderDialog,this.state.editPresetFolderName).then(()=>this.setState({editPresetFolderDialog:null})))},onChange:n=>this.setState({editPresetFolderName:n.target.value.replace(nE,"_").trim()})})}),w.jsxs(pr,{style:{...Ot.alignRight,...Ot.buttonsContainer},children:[w.jsx(tt,{variant:"contained",disabled:!this.state.editPresetFolderName||this.state.editFolderDialogTitleOrigin===this.state.editPresetFolderName||!r||this.state.editPresetFolderName===ad,onClick:()=>{this.renamePresetFolder(this.state.editPresetFolderDialog,this.state.editPresetFolderName).then(()=>this.setState({editPresetFolderDialog:null}))},color:"primary",startIcon:w.jsx(sh,{}),children:P.t("Rename")}),w.jsx(tt,{color:"grey",variant:"contained",onClick:()=>this.setState({editPresetFolderDialog:null}),startIcon:w.jsx(wo,{}),children:P.t("Cancel")})]})]})}renderMoveDialog(){if(!this.state.movePresetDialog)return null;const r=this.state.newPresetFolder==="__root__"?"":this.state.newPresetFolder,n=this.state.movePresetDialog,o=`preset.0.${r}${r?".":""}${n}`,a=!Object.keys(this.state.presets).find(i=>i===o);return w.jsxs(or,{maxWidth:"md",fullWidth:!0,open:!0,onClose:()=>this.setState({movePresetDialog:null}),children:[w.jsx(_r,{children:P.t("Move to folder")}),w.jsx(Wr,{children:w.jsxs(_a,{style:Ot.width100,variant:"standard",children:[w.jsx($l,{shrink:!0,children:P.t("Folder")}),w.jsx(Bn,{variant:"standard",autoFocus:!0,fullWidth:!0,style:Ot.width100,value:this.state.newPresetFolder||"__root__",onChange:i=>this.setState({newPresetFolder:i.target.value}),onKeyUp:i=>{a&&i.which===13&&(i.preventDefault(),i.stopPropagation(),this.setState({movePresetDialog:null},()=>this.addPresetToFolderPrefix(this.state.presets[n],this.state.newPresetFolder==="__root__"?"":this.state.newPresetFolder)))},children:DG(this.state.presetFolders||{}).map(i=>w.jsx(Xt,{value:i.prefix||"__root__",children:i.prefix?i.prefix.replace("."," > "):P.t("Root")},i.prefix))})]})}),w.jsxs(pr,{style:{...Ot.alignRight,...Ot.buttonsContainer},children:[w.jsx(tt,{variant:"contained",disabled:!a,color:"primary",onClick:()=>this.setState({movePresetDialog:null},()=>this.addPresetToFolderPrefix(this.state.presets[n],this.state.newPresetFolder==="__root__"?"":this.state.newPresetFolder)),startIcon:w.jsx(sh,{}),children:P.t("Move to folder")}),w.jsxs(tt,{color:"grey",variant:"contained",onClick:()=>this.setState({movePresetDialog:null}),startIcon:w.jsx(wo,{}),children:[w.jsx(wo,{style:Ot.buttonIcon}),P.t("Cancel")]})]})]},"movePresetDialog")}onError(r,n){n&&console.error(n),this.props.onShowError(r.toString())}async onDragFinish(r,n){let o=`${n}.${r.split(".").pop()}`;if(o!==r){this.state.presets[o]&&(o+=`_${P.t("copy")}`);try{const a=await this.props.socket.getObject(r);if(a)try{await this.props.socket.setObject(o,a),await this.props.socket.delObject(r);const i=await this.getAllPresets();this.setState(i)}catch(i){this.onError(i,`Cannot delete object ${o}`)}}catch(a){this.onError(a,`Cannot read object ${r}`)}}}renderRenameDialog(){if(!this.state.renameDialog)return null;const r=this.state.renameDialog;return w.jsxs(or,{maxWidth:"md",fullWidth:!0,open:!0,onClose:()=>this.setState({renameDialog:null}),children:[w.jsx(_r,{children:P.t("Rename preset")}),w.jsx(Wr,{children:w.jsx(_a,{style:Ot.width100,variant:"standard",children:w.jsx(Ht,{variant:"standard",fullWidth:!0,autoFocus:!0,label:P.t("Name"),value:this.state.renamePresetDialogTitle,onKeyUp:n=>{n.keyCode===13&&this.state.renamePresetDialogTitle&&this.isNameUnique(r,this.state.renamePresetDialogTitle)&&(n.stopPropagation(),n.preventDefault(),this.setState({renameDialog:null},()=>this.renamePreset(r,this.state.renamePresetDialogTitle)))},onChange:n=>this.setState({renamePresetDialogTitle:n.target.value})})})}),w.jsxs(pr,{style:{...Ot.alignRight,...Ot.buttonsContainer},children:[w.jsx(tt,{variant:"contained",disabled:!this.state.renamePresetDialogTitle||!this.isNameUnique(r,this.state.renamePresetDialogTitle),color:"primary",onClick:()=>this.setState({renameDialog:null},()=>this.renamePreset(r,this.state.renamePresetDialogTitle)),startIcon:w.jsx(sh,{}),children:P.t("Rename")}),w.jsx(tt,{color:"grey",variant:"contained",onClick:()=>this.setState({renameDialog:null}),startIcon:w.jsx(wo,{}),children:P.t("Cancel")})]})]},"renameDialog")}renderDeleteDialog(){return this.state.deletePresetDialog?w.jsx(PO,{title:P.t("Please confirm"),text:P.t("Are you sure for delete this preset?"),ok:P.t("Delete"),cancel:P.t("Cancel"),suppressQuestionMinutes:3,dialogName:"echarts.deletePresetDialog",onClose:r=>{r?this.deletePreset(this.state.deletePresetDialog,()=>this.setState({deletePresetDialog:""})):this.setState({deletePresetDialog:""})}},"deletePresetDialog"):null}async deletePreset(r,n){try{await this.props.socket.delObject(r);const o=await this.getAllPresets();this.setState(o,()=>{if(r===this.props.selectedId){const a=Object.keys(this.state.presets);this.props.onSelectedChanged(a[0]||null)}})}catch(o){this.onError(o,`Cannot delete object ${r}`)}n()}async renamePreset(r,n){try{const o=await this.props.socket.getObject(r);o.common.name=n;const a=r.split(".");a.splice(-1,1),a.push(n.replace(nE,"_").trim()),o._id=a.join("."),await this.props.socket.setObject(o._id,o),await this.props.socket.delObject(r);const i=await this.getAllPresets();r===this.props.selectedId?this.setState(i,()=>this.props.onSelectedChanged(o._id)):this.setState(i)}catch(o){this.onError(o,`Cannot get object ${r}`)}}render(){return this.scrollToSelect!==this.props.scrollToSelect&&(this.scrollToSelect=this.props.scrollToSelect,this.scrollToSelect&&!this.scrollTimeout&&(this.scrollTimeout=setTimeout(()=>{var r;this.scrollTimeout=null,(r=this.refSelected.current)==null||r.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100))),w.jsxs(w.Fragment,{children:[w.jsx(arr,{backend:Zrr,children:w.jsx(vu,{sx:{...Ot.scroll,...Ot.mainList},children:this.renderFolder(this.state.presetFolders)})}),this.renderAddFolderDialog(),this.renderRenameFolderDialog(),this.renderDeleteDialog(),this.renderMoveDialog(),this.renderRenameDialog()]})}}const rnr=qs()(oy);function nnr(t){return Pr({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-616-64h536c4.4 0 8-3.6 8-8V284c0-7.2-8.7-10.7-13.7-5.7L592 488.6l-125.4-124a8.03 8.03 0 0 0-11.3 0l-189 189.6a7.87 7.87 0 0 0-2.3 5.6V720c0 4.4 3.6 8 8 8z"},child:[]}]})(t)}const x9=34,id=20,S9=30,Zp=15;class AG extends A.Component{render(){const e=w.jsxs("div",{style:{width:this.props.size==="small"?S9:x9,height:id,display:"flex",alignItems:"center",cursor:"pointer",position:"relative",opacity:this.props.disabled?.7:1},onClick:r=>{this.props.disabled||(r.stopPropagation(),r.preventDefault(),this.props.onChange(!this.props.checked))},children:[w.jsx("div",{style:{borderRadius:15,width:"100%",height:(this.props.size==="small"?Zp:id)*.7,opacity:.6,backgroundColor:this.props.checked?this.props.theme.palette.primary.main:this.props.theme.palette.text.disabled}}),w.jsx("div",{style:{position:"absolute",top:this.props.size==="small"?(id-Zp)/2:0,left:this.props.checked?this.props.size==="small"?S9-Zp:x9-id:0,transition:"left 0.2s",borderRadius:50,width:this.props.size==="small"?Zp:id,height:this.props.size==="small"?Zp:id,backgroundColor:this.props.checked?this.props.theme.palette.primary.main:"#EEE",boxShadow:"rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px"}})]});return this.props.labelOn||this.props.labelOff?w.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[this.props.labelOff,e,this.props.labelOn]}):e}}function C9(t,e){const r=typeof t=="object"?t._id.replace("system.adapter.",""):t.replace("system.adapter.",""),n=typeof e=="object"?e._id.replace("system.adapter.",""):e.replace("system.adapter.","");return r>n?1:r{t[n].common.members.includes(e)&&!r.includes(n)&&r.push(n)}),r}const $9=16,Vt={noGutters:{paddingTop:0,paddingBottom:0,paddingLeft:0,width:"100%"},itemIconFolder:{cursor:"pointer",marginLeft:8},width100:{width:"100%"},itemIcon:{width:32,height:32,marginRight:4},itemIconRoot:{minWidth:24},itemNameDiv:{marginTop:5},itemName:{verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"calc(100% - 26px)",display:"inline-block"},itemName0:{},itemName1:{fontSize:14,opacity:.6},itemName2:{fontSize:12,opacity:.6},itemName3:{fontSize:10,opacity:.6},itemName4:{fontSize:8,opacity:.6},itemName5:{fontSize:6,opacity:.6},groupName:{verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"calc(100% - 66px)",display:"inline-block"},itemSecondaryName:{overflow:"hidden",textOverflow:"ellipsis",width:"100%",fontSize:"smaller",opacity:.6,fontStyle:"italic",whiteSpace:"nowrap",display:"inline-block"},listItemSubTitle:{fontSize:"smaller",opacity:.6,fontStyle:"italic"},adapterIcon:{width:20,height:20,borderRadius:2,marginRight:4},mainList:{width:"100%"},listItemSecondaryAction:{marginRight:4},folderItem:t=>({backgroundColor:t.palette.secondary.main,pl:"8px"})};class anr extends A.Component{constructor(r){super(r);X(this,"refSelected");X(this,"scrollToSelect",!1);X(this,"adapterPromises",{});X(this,"toggleChartFolder",r=>{const n=JSON.parse(JSON.stringify(this.state.chartsOpened));n[r]=!n[r],window.localStorage.setItem("App.echarts.opened",JSON.stringify(n));const o={chartsOpened:n};if(!n[r]){const a=r.split("///")[0];this.props.selectedId&&typeof this.props.selectedId=="object"&&this.props.selectedId.instance}this.setState(o,()=>this.props.onSelectedChanged(null))});let n;try{n=JSON.parse(window.localStorage.getItem("App.echarts.opened"))||{}}catch{n={}}this.state={instances:[],chartsOpened:n,enums:null,showAddStateDialog:""},this.refSelected=m.createRef(),this.getAllEnums().then(o=>this.getAllCharts(o)).then(o=>this.setState(o,()=>this.props.selectedId&&this.props.onSelectedChanged(this.props.selectedId)))}UNSAFE_componentWillReceiveProps(r){r.scrollToSelect!==this.scrollToSelect&&(this.scrollToSelect=r.scrollToSelect,this.scrollToSelect&&setTimeout(()=>{var n;(n=this.refSelected.current)==null||n.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100))}async getAllEnums(r){r=r||{};try{const n=await this.props.socket.getEnums();return r.enums={},Object.keys(n).forEach(o=>{var a,i,s;(o.startsWith("enum.functions.")||o.startsWith("enum.rooms."))&&((s=(i=(a=n[o])==null?void 0:a.common)==null?void 0:i.members)!=null&&s.length)&&(r.enums[o]={_id:o,common:{members:[...n[o].common.members],name:ue.getObjectNameFromObj(n[o],null,{language:P.getLanguage()})},type:"enum",native:{}})}),r}catch(n){return this.onError(n,"Cannot read enums"),{}}}async getAdapterIcon(r){var a;const n=r.split(".");if(n.length<2||n[0]==="0_userdata")return null;let o;n[0]==="system"?(n.splice(4),o=n.join(".")):(n.splice(2),o=`system.adapter.${n.join(".")}`),this.adapterPromises[o]instanceof Promise||(this.adapterPromises[o]=this.props.socket.getObject(o));try{const i=await this.adapterPromises[o];if((a=i==null?void 0:i.common)!=null&&a.icon)return ue.getObjectIcon(i)}catch(i){this.onError(i,`Cannot read object ${o}`)}return null}onError(r,n){n&&console.error(n),this.props.onShowError(r.toString())}async getChartIconAndName(r,n){let o;const a=[];if(!n)return null;const i=P.getLanguage(),s=n._id;n.common&&(n.common.icon&&(o=ue.getObjectIcon(n)),a.push(ue.getObjectNameFromObj(n,null,{language:i})));const l=ue.getParentId(n._id);if((l==null?void 0:l.split(".").length)>2)try{const d=await this.props.socket.getObject(l);if(d&&(d.type==="channel"||d.type==="device")&&d.common){!o&&d.common.icon&&(o=ue.getObjectIcon(d)),a.push(ue.getObjectNameFromObj(d,null,{language:i}));const h=ue.getParentId(l);if((h==null?void 0:h.split(".").length)>2){const u=await this.props.socket.getObject(h);if(u&&(u.type==="channel"||u.type==="device")&&u.common){!o&&u.common.icon&&(o=ue.getObjectIcon(u)),a.push(ue.getObjectNameFromObj(u,null,{language:i}));const f=ue.getParentId(h);if((f==null?void 0:f.split(".").length)>2){const g=await this.props.socket.getObject(f);g&&(g.type==="channel"||g.type==="device")&&g.common&&(!o&&g.common.icon&&(o=ue.getObjectIcon(g)),a.push(ue.getObjectNameFromObj(g,null,{language:i})))}}}}}catch(d){console.error(`Cannot read object: ${d}`)}return o=o||await this.getAdapterIcon(s),{groupId:r,id:s,img:o,name:a.filter(d=>d)}}async getAllCharts(r){r=r||{};const n=this.props.instances.map(u=>u._id.substring(15)),o=await this.props.socket.getObjectViewSystem("custom-full","",""),a={};r.enums=r.enums||this.state.enums;const i=[];Object.values(o).forEach(u=>{const f=n.find(g=>Object.keys(u.common.custom).includes(g));if(f){const g=this.props.instances.find(y=>y._id.endsWith(f));a[f]=a[f]||{_id:`system.adapter.${f}`,enabledDP:{},names:{},statesEnums:{},icon:g.common.icon,name:g.common.name||"",types:{},icons:{}},a[f].enabledDP[u._id]=u,a[f].names[u._id]=ue.getObjectNameFromObj(u,null,{language:P.getLanguage()}),a[f].types[u._id]=u.common.type==="boolean"?"boolean":"number",a[f].statesEnums[u._id]=onr(r.enums,u._id),i.push(this.getChartIconAndName(f,u))}});const s=JSON.parse(JSON.stringify(this.state.chartsOpened)),l=Object.keys(r.enums).filter(u=>u.startsWith("enum.functions.")),d=Object.keys(r.enums).filter(u=>u.startsWith("enum.rooms.")),h=Object.values(a).map(u=>{var b;const f={};Object.keys(u.enabledDP).forEach(x=>{f[x]=u.enabledDP[x],f[x].group=u._id}),u.enabledDP=f,s[u._id]=s[u._id]!==void 0?this.state.chartsOpened[u._id]||!1:!0,Object.keys(r.enums).forEach(x=>{Object.keys(f).find(S=>r.enums[x].common.members.includes(S))&&(u.enums=u.enums||[],u.enums.includes(x)||u.enums.push(x))});const g={_id:`enum.functions.${u._id}`,type:"enum",common:{members:[],name:P.t("Others")},native:{}},y={_id:`enum.rooms.${u._id}`,type:"enum",common:{members:[],name:P.t("Others")},native:{}};return Object.keys(f).forEach(x=>{l.find(S=>r.enums[S].common.members.includes(x))||g.common.members.push(x),d.find(S=>r.enums[S].common.members.includes(x))||y.common.members.push(x)}),g.common.members.length&&(u.enums=u.enums||[],u.enums.push(`enum.functions.${u._id}`),r.enums[`enum.functions.${u._id}`]=g),y.common.members.length&&(u.enums=u.enums||[],u.enums.push(`enum.rooms.${u._id}`),r.enums[`enum.rooms.${u._id}`]=y),(b=u.enums)==null||b.sort((x,S)=>r.enums[x].common.name>r.enums[S].common.name?1:r.enums[x].common.namethis.props.onSelectedChanged({id:u,instance:h[0]._id}),500)}return r.instances=h,r.chartsOpened=s,setTimeout(()=>{Promise.all(i).then(u=>{const f=JSON.parse(JSON.stringify(this.state.instances));let g=!1;u.forEach(y=>{if(y!=null&&y.groupId){const b=f.find(x=>x._id===`system.adapter.${y.groupId}`);b&&(y.img&&(b.icons[y.id]=y.img),y.name&&(b.names[y.id]=y.name),g=!0)}}),g&&this.setState({instances:f})})},100),r}renderSelectIdDialog(){return this.state.showAddStateDialog?w.jsx(OV,{theme:this.props.theme,imagePrefix:"../..",socket:this.props.socket,dialogName:"Add",title:P.t("Enable logging for state"),onOk:r=>{const n=Array.isArray(r)?r[0]:r;console.log(`Selected ${JSON.stringify(n)}`);const o=this.state.showAddStateDialog.replace("system.adapter.","");n&&this.props.socket.getObject(n).then(a=>{var i;if(!(a!=null&&a.common)){this.props.onShowError(P.t("Invalid object"));return}if((i=a.common.custom)!=null&&i[o]){this.props.onShowToast(P.t("Already enabled"));return}a.common.custom=a.common.custom||{},a.common.custom[o]={enabled:!0},this.props.socket.setObject(n,a).then(()=>{const s=JSON.parse(JSON.stringify(this.state.instances)),l=s.find(d=>d._id===`system.adapter.${o}`);l.enabledDP=l.enabledDP||{},l.enabledDP[a._id]=a,this.setState({instances:s},()=>this.getAllCharts())}).catch(s=>this.onError(s,`Cannot read object ${n}`))}).catch(a=>this.onError(a,`Cannot read object ${n}`)),this.setState({showAddStateDialog:""})},onClose:()=>this.setState({showAddStateDialog:""})},"selectDialog_add"):null}renderListItem(r,n,o,a){a=a||0;const i=r._id,s=this.props.selectedId&&typeof this.props.selectedId=="object"&&this.props.selectedId.id===n&&this.props.selectedId.instance===i;let l;if(typeof r.names[n]=="object"){const d=[...r.names[n]];l=w.jsx("span",{style:Vt.itemName,title:d.join(" / "),children:d.map((h,u)=>w.jsx("span",{style:Vt[`itemName${u}`],children:(u?" / ":"")+h},u))})}else{const d=(r.names[n]||"").toString();l=w.jsx("span",{style:Vt.itemName,title:d,children:d})}return w.jsxs(Ev,{ref:s?this.refSelected:null,sx:{"&.MuiListItemButton-gutters":Vt.noGutters},style:{paddingLeft:$9*a,height:48,position:"relative"},selected:s,onClick:o?void 0:()=>this.props.onSelectedChanged({id:n,instance:i}),children:[w.jsx(ba,{style:Vt.itemIconRoot,children:r.types[n]==="boolean"?w.jsx(YKt,{style:Vt.itemIcon}):w.jsx(nnr,{style:Vt.itemIcon})}),w.jsxs("div",{style:{flexGrow:1,overflow:"hidden"},children:[w.jsxs("div",{style:Vt.itemNameDiv,children:[ue.getIcon({icon:r.icons[n],prefix:"../../"},{width:20,height:20,borderRadius:2,marginRight:4}),l]}),w.jsx("div",{style:Vt.itemSecondaryName,title:n,children:n.replace("system.adapter.","")})]}),!o&&this.props.multiple&&this.props.chartsList?w.jsxs("div",{style:Vt.listItemSecondaryAction,children:[w.jsx(AG,{size:"small",theme:this.props.theme,onChange:d=>{const h=JSON.parse(JSON.stringify(this.props.chartsList)),u=h.find(f=>f.id===n&&f.instance===i);d&&!u?(h.push({id:n,instance:i}),h.sort((f,g)=>f.instance>g.instance?1:f.instanceg.id?1:f.idthis.props.onChangeList(h)):this.props.onChangeList(h)):!d&&u&&(h.splice(h.indexOf(u),1),this.props.onChangeList(h))},checked:!!this.props.chartsList.find(d=>d.id===n&&d.instance===i)})," "]}):null]},`${i}_${n}`)}renderListItems(r,n,o,a){if(a.gIndex=a.gIndex||0,!(n!=null&&n.length))return null;const i=r._id,s=1;if(!o)return n.map(f=>w.jsx(EE,{isDragDisabled:!this.props.selectedId||typeof this.props.selectedId=="object",draggableId:`${i}***${f}`,index:a.gIndex++,children:(g,y)=>w.jsxs(w.Fragment,{children:[w.jsx("div",{ref:g.innerRef,...g.draggableProps,...g.dragHandleProps,style:g.draggableProps.style,className:"drag-items",children:this.renderListItem(r,f,!1,s)},`${i}_${f}_item`),y.isDragging?w.jsx("div",{className:"react-beautiful-dnd-copy",children:this.renderListItem(r,f,!0)},`${i}_${f}_dnd`):null]})},`${i}_${f}`));const l=`${i}///${o}`,d=this.state.chartsOpened[l];d&&(n=n.filter(f=>this.state.enums[o].common.members.includes(f)));const h=this.state.enums[o].common.name,u=typeof h=="object"?h[P.getLanguage()]||h.en:h;return[w.jsxs(of,{style:{...Vt.width100,paddingLeft:$9*s,height:48},sx:ue.getStyle(this.props.theme,Vt.folderItem,{"&.MuiListItem-gutters":Vt.noGutters}),secondaryAction:w.jsx(Ie,{size:"small",onClick:()=>this.toggleChartFolder(l),title:d?P.t("Collapse"):P.t("Expand"),children:w.jsx(sf,{style:{transform:d?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease-in-out"}})}),children:[w.jsx(ba,{style:Vt.itemIconRoot,onClick:()=>this.toggleChartFolder(l),children:d?w.jsx(vf,{style:{...Vt.itemIcon,...Vt.itemIconFolder}}):w.jsx(yf,{style:{...Vt.itemIcon,...Vt.itemIconFolder}})}),w.jsx(_o,{primary:u})]},l),d?w.jsx(vu,{children:n.map(f=>w.jsx(EE,{isDragDisabled:!this.props.selectedId||typeof this.props.selectedId=="object",draggableId:`${i}***${f}`,index:a.gIndex++,children:(g,y)=>w.jsxs(w.Fragment,{children:[w.jsx("div",{ref:g.innerRef,...g.draggableProps,...g.dragHandleProps,style:g.draggableProps.style,className:"drag-items",children:this.renderListItem(r,f,!1,2)},`${i}_${f}_item`),y.isDragging?w.jsx("div",{className:"react-beautiful-dnd-copy",children:this.renderListItem(r,f,!0)},`${i}_${f}_dnd`):null]})},`${i}_${f}`))},`${l}_LIST`):null]}render(){const r={gIndex:0};return w.jsxs(w.Fragment,{children:[this.renderSelectIdDialog(),w.jsx(QT,{droppableId:"Lines",isDropDisabled:!0,children:n=>w.jsx("div",{ref:n.innerRef,children:w.jsx(vu,{style:{...Vt.scroll,...Vt.mainList},children:w.jsxs(w.Fragment,{children:[this.state.instances.map(o=>{const a=this.state.chartsOpened[o._id];let i=null;if(a){const s=Object.keys(o.enabledDP).filter(l=>!this.props.search||l.includes(this.props.search)||o.names[l].includes(this.props.search));this.props.groupBy?i=(o.enums||[]).filter(l=>l.startsWith(`enum.${this.props.groupBy}.`)).map(l=>this.renderListItems(o,s,l,r)):(s.sort(C9),i=this.renderListItems(o,s,null,r))}return[w.jsxs(of,{sx:ue.getStyle(this.props.theme,Vt.width100,Vt.folderItem,{height:48,color:this.props.theme.palette.mode==="dark"?void 0:"#FFF"},{"&.MuiListItem-gutters":Vt.noGutters}),secondaryAction:w.jsxs(w.Fragment,{children:[a?w.jsx(Ie,{size:"small",onClick:()=>this.setState({showAddStateDialog:o._id}),style:{color:this.props.theme.palette.mode==="dark"?void 0:"#FFF"},title:P.t("Enable logging for new state"),children:w.jsx(Il,{})}):null,w.jsx(Ie,{size:"small",onClick:()=>this.toggleChartFolder(o._id),title:a?P.t("Collapse"):P.t("Expand"),style:{color:this.props.theme.palette.mode==="dark"?void 0:"#FFF"},children:w.jsx(sf,{style:{transform:a?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease-in-out"}})})]}),children:[w.jsx(ba,{style:Vt.itemIconRoot,sx:{color:this.props.theme.palette.mode==="dark"?void 0:"#FFF"},onClick:()=>this.toggleChartFolder(o._id),children:a?w.jsx(vf,{style:{...Vt.itemIcon,...Vt.itemIconFolder}}):w.jsx(yf,{style:{...Vt.itemIcon,...Vt.itemIconFolder}})}),w.jsx(_o,{primary:w.jsxs("div",{style:Vt.itemNameDiv,children:[w.jsx("img",{style:Vt.adapterIcon,alt:"",src:`../../adapter/${o.name}/${o.icon}`}),w.jsx("div",{style:Vt.groupName,children:o._id.replace("system.adapter.","")})]})})]},o._id),i]}),n.placeholder]})},"chartList")},"chartListDiv")},"charts")]})}}const inr=qs()(anr),k9=48,Fo={mainListDiv:{width:"100%",height:"100%",overflow:"hidden"},mainToolbar:t=>({background:t.palette.primary.main}),secondaryColors:t=>({background:"#888",color:t.palette.mode==="dark"?"#000":"#FFF"}),smallMargin:{marginTop:"8px !important"},heightMinusTwoToolbars:{height:`calc(100% - ${k9*2}px)`,overflow:"auto"},heightMinusToolbar:{height:`calc(100% - ${k9}px)`,overflow:"auto"},textColor:t=>({color:t.palette.mode==="dark"?"#000 !important":"#FFF !important"})};class snr extends A.Component{constructor(r){super(r);X(this,"isIFrame");this.state={search:null,multiple:window.localStorage.getItem("App.echarts.multiple")==="true",showSearch:!1,groupBy:window.localStorage.getItem("App.echarts.groupBy")||"",addPresetFolderDialog:!1,reorder:!1,showReorder:!1};try{this.isIFrame=window.self!==window.top}catch{this.isIFrame=!0}if(this.state.multiple){const n=window.localStorage.getItem("App.echarts.chartList")||"[]";let o;try{o=JSON.parse(n)}catch{o=[]}setTimeout(()=>this.props.onChangeList(o),100)}}renderListToolbar(){return w.jsxs(af,{variant:"dense",sx:Fo.mainToolbar,children:[this.state.reorder?null:w.jsx(Ie,{onClick:()=>this.props.onCreatePreset(!1),title:P.t("Create new preset"),children:w.jsx(Il,{})}),this.state.reorder?null:w.jsx(Ie,{onClick:()=>this.setState({addPresetFolderDialog:!0}),title:P.t("Create new folder"),children:w.jsx(Fpe,{})}),this.state.reorder?null:w.jsx("span",{style:Fo.right,children:w.jsx(Ie,{onClick:()=>this.setState({showSearch:!this.state.showSearch,search:""}),children:w.jsx(Nve,{})})}),this.state.showSearch?w.jsx(Ht,{variant:"standard",value:this.state.search,style:Fo.textInput,onChange:r=>this.setState({search:r.target.value}),InputProps:{endAdornment:this.state.search?w.jsx(Ie,{onClick:()=>this.setState({search:""}),children:w.jsx(Ar,{})}):void 0}}):null,w.jsx("div",{style:{flexGrow:1}}),!this.state.showSearch&&this.state.showReorder||this.state.reorder?w.jsx(Ie,{title:P.t("Reorder presets in folders"),style:{color:this.state.reorder?"red":"inherit",float:"right"},onClick:r=>{r.stopPropagation(),this.setState({reorder:!this.state.reorder})},children:w.jsx(zpe,{})},"reorder"):null,!this.state.showSearch&&this.isIFrame?w.jsx(Ie,{onClick:()=>window.open(window.location.href,"own-echarts"),title:P.t("Open in own window"),children:w.jsx(hH,{})}):null]},"toolbar")}renderFooter(){return w.jsxs(af,{variant:"dense",sx:Fo.secondaryColors,style:{gap:8},children:[this.props.selectedPresetChanged?null:w.jsx(AG,{style:{width:58},checked:this.state.multiple,theme:this.props.theme,onChange:r=>{if(window.localStorage.setItem("App.echarts.multiple",r?"true":"false"),r){const n=this.props.selectedId;n&&typeof n=="object"?this.setState({multiple:!0},()=>this.props.onChangeList([JSON.parse(JSON.stringify(n))])):this.setState({multiple:!0},()=>this.props.onChangeList([]))}else this.setState({multiple:!1},()=>this.props.onChangeList(null))},labelOn:P.t("Multiple")}),w.jsxs(_a,{variant:"standard",style:{minWidth:100},sx:Fo.textColor,children:[w.jsx($l,{shrink:!0,sx:Fo.textColor,style:{whiteSpace:"nowrap",top:5},children:P.t("Group by")}),w.jsxs(Bn,{variant:"standard",label:P.t("Group by"),sx:Fo.textColor,onChange:r=>{window.localStorage.setItem("App.echarts.groupBy",r.target.value),this.setState({groupBy:r.target.value})},value:this.state.groupBy||"",style:Fo.smallMargin,displayEmpty:!0,children:[w.jsx(Xt,{value:"",children:P.t("None")}),w.jsx(Xt,{value:"rooms",children:P.t("Rooms")}),w.jsx(Xt,{value:"functions",children:P.t("Functions")})]})]}),w.jsx("div",{style:{flex:1}}),w.jsx(Ie,{size:"small",sx:Fo.textColor,title:P.t("Charts preview"),onClick:()=>{const r=window.location.pathname.split("/");r.pop(),r.push("preview/index.html"),window.location.href=`${window.location.protocol}//${window.location.host}${r.join("/")}`},children:w.jsx(Mve,{})})]},"toolbarBottom")}render(){return w.jsxs("div",{style:Fo.mainListDiv,children:[this.renderListToolbar(),w.jsxs("div",{style:this.state.reorder?Fo.heightMinusToolbar:Fo.heightMinusTwoToolbars,children:[w.jsx(rnr,{socket:this.props.socket,scrollToSelect:this.props.scrollToSelect,addPresetFolderDialog:this.state.addPresetFolderDialog,onClosePresetFolderDialog:r=>this.setState({addPresetFolderDialog:!1},r),onCreatePreset:(r,n)=>this.props.onCreatePreset(r,n),onCopyPreset:r=>this.props.onCopyPreset(r),adapterName:this.props.adapterName,selectedPresetChanged:this.props.selectedPresetChanged,onShowToast:r=>this.props.onShowToast(r),onShowError:r=>this.props.onShowToast(r),onShowReorder:r=>{r!==this.props.showReorder&&this.setState({showReorder:r})},theme:this.props.theme,search:this.state.search,reorder:this.state.reorder,selectedId:this.props.selectedId,systemConfig:this.props.systemConfig,onSelectedChanged:(r,n)=>this.props.onSelectedChanged(r,n)}),this.state.reorder?null:w.jsx(inr,{socket:this.props.socket,scrollToSelect:this.props.scrollToSelect,instances:this.props.instances,adapterName:this.props.adapterName,onShowToast:r=>this.props.onShowToast(r),onShowError:r=>this.props.onShowToast(r),search:this.state.search,multiple:this.state.multiple&&!this.props.selectedPresetChanged,theme:this.props.theme,groupBy:this.state.groupBy,selectedId:this.props.selectedId,onChangeList:r=>{window.localStorage.setItem("App.echarts.chartList",JSON.stringify(r)),this.props.onChangeList(r)},chartsList:this.props.chartsList,onSelectedChanged:(r,n)=>this.props.onSelectedChanged(r,n)})]}),this.state.reorder?null:this.renderFooter()]},"mainMenuDiv")}}const lnr=qs()(snr);function cnr(t,e){const r={};return t.replace(/\+/g," ").split("&").forEach(n=>{const o=n.split("=");let a=decodeURIComponent(o[0]),i,s=0,l=a.split("]["),d=l.length-1;if(/\[/.test(l[0])&&/]$/.test(l[d])?(l[d]=l[d].replace(/]$/,""),l=l.shift().split("[").concat(l),d=l.length-1):d=0,o.length===2)if(i=decodeURIComponent(o[1]),d){let h=r;for(;s<=d;s++)a=l[s]===""?h.length:l[s],h=h[a]=s{const a=$h(t,e,o);a&&a.then(()=>{})});if(!e||!e.length)return r(),null;const n=e.shift();return n?t.getObject(n._id).catch(()=>null).then(o=>{o?(console.log(`Object ${n._id} already exists and will not be converted`),setTimeout(()=>$h(t,e,r),50)):t.setObject(n._id,n).then(()=>setTimeout(()=>$h(t,e,r),50))}):setTimeout(()=>$h(t,e,r),50),null}function pnr(t,e){const r={_id:t._id.replace(/^flot.\d+/,`echarts.${e}`),common:{name:t.common.name,expert:!0},native:{},type:"chart"};r._id.endsWith(".")&&(r._id=`empty_${Math.round(Math.random()*1e4)}`);const n=dnr(cnr(t.native.url));return n.lines||(n.lines=n.l,delete n.l),r.native.data=n,console.log(`Convert ${t._id} => ${r._id}`),r}function hnr(t,e){e=e||0;let r;return t.getObject(`system.adapter.echarts.${e}`).then(n=>(r=n,n&&n.native&&!n.native.convertDone?unr(t):Promise.resolve([]))).then(n=>$h(t,n.map(o=>pnr(o,e)))).then(()=>r.native.convertDone?Promise.resolve():(r.native.convertDone=!0,t.setObject(r._id,r))).catch(n=>(console.error(`Cannot convert flot: ${n}`),Promise.resolve()))}const Qp={root:t=>({width:"100%",height:"100%",background:t.palette.background.default,color:t.palette.mode==="dark"?"#FFF":"#000",fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'}),menuDiv:{overflow:"hidden"},content:t=>({width:"100%",height:"100%",backgroundColor:t.palette.background.default,position:"relative"}),menuDivWithoutMenu:{"&>div:first-child":{display:"none"},"&>.layout-splitter":{display:"none"}},progress:{margin:100},menuOpenCloseButton:t=>({position:"absolute",left:0,borderRadius:"0 5px 5px 0",top:6,pt:"8px",cursor:"pointer",zIndex:1,height:25,width:20,background:t.palette.secondary.main,color:t.palette.primary.main,pl:"3px","&:hover":{color:"white"}}),buttonsContainer:{"& button":{whiteSpace:"nowrap"}}},E9=/[.\][*,;'"`<>\\?]/g;function T9(t,e){const r=window.localStorage.getItem(`App.echarts.__${t}`);return r?parseFloat(r):e}function eh(t,e){return window.localStorage.getItem(`App.echarts.__${t}`)||e}function sd(t,e){return window.localStorage.getItem(`App.echarts.__${t}`)||e}function O9(){if(window.location.hash){const t={};return window.location.hash.replace(/^#/,"").split("&").forEach(e=>{const[r,n]=e.split("=");t[r]=window.decodeURIComponent(n),r==="instance"&&!t[r].startsWith("system.adapter")&&(t[r]=`system.adapter.${t[r]}`)}),t}return null}class ay extends ys{constructor(r){const n={socket:{}},o=Her();n.socket.port=o.port||(parseInt(window.location.port)>=3e3&&parseInt(window.location.port)<=3020?8081:window.location.port),n.socket.host=o.host||window.location.hostname,n.translations={en:gwt,de:_Ct,ru:xEt,pt:$Ot,nl:TIt,fr:ANt,it:P3t,es:jLt,pl:F6t,uk:H9t,"zh-cn":qHt},n.sentryDSN=window.sentryDSN,window.location.port==="3000"&&(n.socket={port:"8081"}),window.socketUrl&&window.socketUrl.startsWith(":")&&(window.socketUrl=`${window.location.protocol}//${window.location.hostname}${window.socketUrl}`);super(r,n);X(this,"config");X(this,"objects",{});X(this,"confirmCB",null);X(this,"onCopyPreset",async r=>{try{const n=await this.socket.getObject(r);if(n){const{id:o,name:a}=await this.getUniqueId(r,typeof n.common.name=="object"?n.common.name[P.getLanguage()]||n.common.name.en:n.common.name);n._id=o,n.common.name=a;try{await this.socket.setObject(n._id,n),this.loadChartOrPreset(o)}catch(i){this.onError(i,"Cannot save object")}}}catch(n){this.onError(n,"Cannot save object")}});X(this,"onCreatePreset",async(r,n)=>{var i;let o,a;if(r===!0){let s="";const l=this.state.selectedId,d=JSON.parse(JSON.stringify(this.state.chartsList||[]));d.find(f=>f.id===l.id&&f.instance===l.instance)||d.push(l);let h=null;d.length===1&&(h=await this.socket.getObject(d[0].id)),h&&((i=h==null?void 0:h.common)!=null&&i.name)&&(s=typeof h.common.name=="object"?(h.common.name[P.getLanguage()]||h.common.name.en||"").trim():h.common.name);const u=await this.getNewPresetName(n,s);a=`${this.adapterName}.0.${n?`${n}.`:""}${s.replace(E9,"_")}`,o={_id:a,common:{name:u,expert:!0},native:{data:JSON.parse(JSON.stringify(this.state.presetData))},type:"chart"}}else{const s=await this.getNewPresetName(n);a=`${this.adapterName}.0.${n?`${n}.`:""}${s.replace(E9,"_")}`,o={_id:a,common:{name:s},native:{url:"",data:G2(this.state.systemConfig,null,null,P.getLanguage())},type:"chart"}}try{await this.socket.setObject(a,o),this.loadChartOrPreset(a)}catch(s){this.onError(s,"Cannot save object")}});X(this,"savePreset",async()=>{if(!this.state.presetData)throw this.showError(P.t("Empty preset cannot be saved!")),new Error(P.t("Empty preset cannot be saved!"));try{const r=await this.socket.getObject(this.state.selectedId);if(!(r!=null&&r.native)){this.showError(P.t("Invalid object"));return}r.native.data=this.state.presetData;try{await this.socket.setObject(r._id,r)}catch(n){this.onError(n,"Cannot save object")}this.setState({originalPresetData:JSON.stringify(this.state.presetData),selectedPresetChanged:!1})}catch(r){this.onError(r,"Cannot read object")}});X(this,"onDragEnd",async r=>{const{source:n,destination:o,draggableId:a}=r;if(o&&a.includes("***")&&n.droppableId==="Lines"){const[i,s]=a.split("***");try{const l=await this.socket.getObject(s),d=JSON.parse(JSON.stringify(this.state.presetData)),h=Lh(this.state.systemConfig,i,l,P.getLanguage());for(let u=0;u=o.index&&(d.l[u].commonYAxis=d.l[u].commonYAxis+1);if(d.l.splice(o.index,0,h),d.l.length>1){if(h.unit){for(let u=0;uu.chartType==="bar")?h.chartType="bar":d.l.find(u=>u.chartType==="polar")&&(h.chartType="polar",h.aggregate="current")}this.setState({presetData:d,selectedPresetChanged:JSON.stringify(d)!==this.state.originalPresetData})}catch(l){this.onError(l,"Cannot read object")}}else if(o&&n.droppableId===o.droppableId){const i=JSON.parse(JSON.stringify(this.state.presetData));for(let l=0;lthis.setState({scrollToSelect:!0},()=>this.setState({scrollToSelect:!1})))}async onConnectionReady(){var h,u,f;const r=window.localStorage.getItem("App.echarts.selectedId");let n;if(r)try{n=JSON.parse(r)}catch{n=null}!n&&((h=this.config)!=null&&h.preset)?n=this.config.preset:!n&&((u=this.config)!=null&&u.id)&&(n={id:this.config.id,instance:this.config.instance});const o=window.localStorage.getItem("App.echarts.settingsSizes");let a=[25,75];if(o)try{a=JSON.parse(o)}catch{}a=a||[25,75];const i=window.localStorage.getItem("App.echarts.menuSizes");let s=[25,75];if(i)try{s=JSON.parse(i)}catch{}s=s||[25,75];const l={ready:!1,instances:[],splitSizes:a,menuSizes:s,selectedId:n,selectedPresetChanged:!1,presetData:null,originalPresetData:null,chartsList:null,progress:0,autoSave:window.localStorage.getItem("App.echarts.autoSave")==="true",discardChangesConfirmDialog:!1,resizing:!1,menuOpened:window.localStorage.getItem("App.echarts.menuOpened")!=="false",logHorzLayout:window.localStorage.getItem("App.echarts.logHorzLayout")==="true"};this.objects={};const d=await this.socket.getSystemConfig();if(l.systemConfig=d,l.presetData=G2(d),(f=this.config)!=null&&f.id){const g=this.config;l.selectedId={id:g.id,instance:g.instance},g.menuOpened!==void 0&&(l.menuOpened=g.menuOpened===!0),this.config=null}this.setState(l,async()=>{hnr(this.socket,this.instance);try{const y=(await this.socket.getAdapterInstances("")).filter(b=>{var x;return((x=b==null?void 0:b.common)==null?void 0:x.getHistory)&&b.common.enabled});this.setState({ready:!0,instances:y})}catch(g){this.onError(g,"Cannot read system config")}})}async getNewPresetName(r,n,o){o=o||(n?"":"1"),n=n||"preset_";let a;do{try{a=await this.socket.getObject(`${this.adapterName}.${this.instance}.${r?`${r}.`:""}${n}${o}`)}catch{return n+o}if(!a)return n+o;o?o=(parseInt(o,10)+1).toString():o="2"}while(a)}async getUniqueId(r,n){let o=0,a;do{const i=`${r}_${P.t("copy")}${o?`_${o}`:""}`,s=`${n} ${P.t("copy")}${o?` ${o}`:""}`;try{a=await this.socket.getObject(i)}catch{}if(!a)return{name:s,id:i};o++}while(o<100);throw new Error(P.t("Cannot create unique ID"))}onError(r,n){n&&console.error(n),this.showError(r.toString())}static normalizePreset(r){var n;r.lines&&(r.l=r.lines,delete r.lines),typeof r.range=="string"&&!r.range.includes("m")&&!r.range.includes("y")&&(r.range=parseInt(r.range,10)),(n=r.l)==null||n.forEach(o=>{typeof o.commonYAxis=="string"&&(o.commonYAxis===""?delete o.commonYAxis:o.commonYAxis=parseInt(o.commonYAxis,10)),typeof o.fill=="string"&&(o.fill===""?delete o.fill:o.fill=parseFloat(o.fill))})}async loadChartOrPreset(r){var n,o;if(window.localStorage.setItem("App.echarts.selectedId",JSON.stringify(r)),r&&typeof r=="object"){if(this.state.chartsList)for(const s of this.state.chartsList)this.objects[s.id]===void 0&&(this.objects[s.id]=await this.socket.getObject(s.id)||null);else this.objects={};this.objects[r.id]===void 0&&(this.objects[r.id]=await this.socket.getObject(r.id)||null);const a=(this.state.chartsList||[]).map(s=>Lh(this.state.systemConfig,s.instance,this.objects[s.id],P.getLanguage()));if((n=this.state.chartsList)!=null&&n.find(s=>s.id===r.id&&s.instance===r.instance)||a.push(Lh(this.state.systemConfig,r.instance,this.objects[r.id],P.getLanguage())),a.length>1){const s=a.find(l=>!l.isBoolean);if(s){const l=a.indexOf(s);if(s.yaxe="left",s.unit)for(let d=l+1;d1?"nw":""};ay.normalizePreset(i),await new Promise(s=>{this.setState({presetData:i,originalPresetData:"",selectedPresetChanged:!1,selectedId:r},()=>{const l=`#id=${r.id}&instance=${r.instance.replace(/^system\.adapter\./,"")}`;window.location.hash!==l&&(window.location.hash=l),s()})})}else if(r){const a=await this.socket.getObject(r);if((o=a==null?void 0:a.native)!=null&&o.data){const i=`#preset=${r}`;window.location.hash!==i&&(window.location.hash=i);const s={presetData:a.native.data,originalPresetData:JSON.stringify(a.native.data),selectedPresetChanged:!1,selectedId:r};ay.normalizePreset(s.presetData),await new Promise(l=>this.setState(s,()=>l()))}}else await new Promise(a=>{this.setState({presetData:null,originalPresetData:"",selectedPresetChanged:!1,selectedId:null},()=>a())})}discardChangesConfirmDialog(){return this.state.discardChangesConfirmDialog?w.jsxs(or,{maxWidth:"lg",fullWidth:!0,open:!0,onClose:()=>this.setState({discardChangesConfirmDialog:!1},()=>this.confirmCB&&this.confirmCB(!1)),children:[w.jsx(_r,{children:this.state.discardChangesConfirmDialog==="chart"?P.t("Are you sure for loading the chart and discard unsaved changes?"):this.state.discardChangesConfirmDialog==="preset"?P.t("Are you sure for loading the preset and discard unsaved changes?"):P.t("Are you sure for closing folder and discard unsaved changes?")}),w.jsxs(pr,{sx:{...Qp.alignRight,...Qp.buttonsContainer},children:[w.jsx(tt,{color:"grey",variant:"outlined",onClick:()=>this.setState({discardChangesConfirmDialog:!1},()=>this.confirmCB&&this.confirmCB(!0)),children:P.t("Load without save")}),w.jsx(tt,{variant:"contained",color:"secondary",autoFocus:!0,onClick:()=>this.savePreset().then(()=>this.setState({discardChangesConfirmDialog:!1},()=>this.confirmCB&&this.confirmCB(!0))),startIcon:w.jsx(pH,{}),children:P.t("Save current preset and load")}),w.jsx(tt,{color:"grey",variant:"contained",onClick:()=>this.setState({discardChangesConfirmDialog:!1},()=>this.confirmCB&&this.confirmCB(!1)),startIcon:w.jsx(wo,{}),children:P.t("Cancel")})]})]},"discardChangesConfirmDialog"):null}renderMain(){let r=null,n=null;this.state.presetData&&this.state.selectedId&&typeof this.state.selectedId=="string"&&(r=w.jsx(aZt,{socket:this.socket,width:window.innerWidth,theme:this.state.theme,onChange:a=>{this.state.autoSave?this.setState({presetData:a},()=>this.savePreset()):this.setState({presetData:a,selectedPresetChanged:JSON.stringify(a)!==this.state.originalPresetData})},presetData:this.state.presetData,selectedId:this.state.selectedId,instances:this.state.instances,systemConfig:this.state.systemConfig,selectedPresetChanged:this.state.selectedPresetChanged,savePreset:this.savePreset,autoSave:this.state.autoSave,onAutoSave:a=>{window.localStorage.setItem("App.echarts.autoSave",a?"true":"false"),a&&this.state.selectedPresetChanged?this.savePreset().then(()=>this.setState({autoSave:a})):this.setState({autoSave:a})},windowWidth:this.state.menuSizes[1]},"Editor")),this.state.selectedId&&(n=w.jsx(Wer,{visible:!this.state.resizing,theme:this.state.theme,onChange:a=>this.setState({presetData:a}),presetData:this.state.presetData,selectedId:this.state.selectedId,onCreatePreset:this.onCreatePreset,windowWidth:this.state.menuSizes[1]},"MainChart"));let o;return n&&r?o=w.jsxs(CP,{direction:this.state.logHorzLayout?Tr.Horizontal:Tr.Vertical,initialSizes:this.state.splitSizes,minWidths:[100,450],onResizeStarted:()=>this.setState({resizing:!0}),onResizeFinished:(a,i)=>{this.setState({resizing:!1,splitSizes:i}),window.localStorage.setItem("App.echarts.settingsSizes",JSON.stringify(i))},gutterClassName:this.state.themeType==="dark"?"Dark visGutter":"Light visGutter",children:[n,r]}):o=n,[w.jsxs(Re,{component:"div",sx:Qp.content,className:"iobVerticalSplitter",children:[w.jsx(Re,{component:"div",sx:Qp.menuOpenCloseButton,onClick:()=>{window.localStorage.setItem("App.echarts.menuOpened",this.state.menuOpened?"false":"true"),this.setState({menuOpened:!this.state.menuOpened,resizing:!0}),setTimeout(()=>this.setState({resizing:!1}),300)},children:this.state.menuOpened?w.jsx(Bpe,{}):w.jsx(HE,{})},"confirmdiv"),o]},"confirmdialog")]}renderMenu(){return w.jsx(lnr,{scrollToSelect:this.state.scrollToSelect,socket:this.socket,theme:this.state.theme,adapterName:this.adapterName,instances:this.state.instances,systemConfig:this.state.systemConfig,onShowToast:r=>this.showToast(r),selectedPresetChanged:this.state.selectedPresetChanged,chartsList:this.state.chartsList,selectedId:this.state.selectedId,onCopyPreset:this.onCopyPreset,onCreatePreset:this.onCreatePreset,onChangeList:r=>{let n=this.state.selectedId;if(r&&this.state.chartsList&&r.length&&r.length!r.find(s=>s.id===i.id&&s.instance===i.instance)),a=this.state.chartsList.indexOf(o);this.state.chartsList[a+1]?n=this.state.chartsList[a+1]:this.state.chartsList[a-1]?n=this.state.chartsList[a-1]:n=r[0]}this.setState({chartsList:r},()=>this.loadChartOrPreset(n))},onSelectedChanged:(r,n)=>{this.state.selectedPresetChanged?(this.confirmCB=o=>{o?this.loadChartOrPreset(r).then(()=>n&&n(r)):n&&n(!1),this.confirmCB=null},this.setState({discardChangesConfirmDialog:r&&typeof r=="object"?"chart":r?"preset":"folder"})):this.loadChartOrPreset(r)}},"menuList")}render(){if(!this.state.ready)return w.jsx(uE,{injectFirst:!0,children:w.jsx(yE,{theme:this.state.theme,children:w.jsx(QH,{themeType:this.state.themeType})})});let r;return this.state.menuOpened?r=w.jsx(XN,{onDragEnd:this.onDragEnd,children:w.jsxs(CP,{direction:Tr.Horizontal,initialSizes:this.state.menuSizes,minWidths:[307,300],onResizeStarted:()=>this.setState({resizing:!0}),onResizeFinished:(n,o)=>{this.setState({resizing:!1,menuSizes:[o[0],100-o[0]]}),window.localStorage.setItem("App.echarts.menuSizes",JSON.stringify(o))},gutterClassName:this.state.themeType==="dark"?"Dark visGutter":"Light visGutter",children:[this.renderMenu(),this.renderMain()]})}):r=r=w.jsx(XN,{onDragEnd:this.onDragEnd,children:this.renderMain()}),w.jsx(uE,{injectFirst:!0,children:w.jsxs(yE,{theme:this.state.theme,children:[w.jsx(Re,{sx:Qp.root,children:r}),this.discardChangesConfirmDialog(),this.renderError(),this.renderToast()]})})}}const fnr=qs()(ay);window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function mnr(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const gnr="echarts.edit",vnr="1.9.2",ynr={"@devbookhq/splitter":"^1.4.2","@vitejs/plugin-react":"^4.3.4","@types/react-color":"^3.0.13","@types/react-beautiful-dnd":"^13.1.8","material-ui-color-picker":"^3.5.1",moment:"^2.30.1",react:"^18.3.1","react-beautiful-dnd":"^13.1.1","react-dnd":"^16.0.1","react-dnd-html5-backend":"^16.0.1","react-dnd-touch-backend":"^16.0.1","react-dom":"^18.3.1","react-i18next":"^15.4.0","react-icons":"^5.4.0",typescript:"^5.7.2"},_nr=".",bnr={start:"vite dev --config vite.config.mjs --host",build:"vite build --config vite.config.mjs",lint:"eslint -c eslint.config.mjs --debug",npm:"npm i -f",tsc:"tsc -p tsconfig.json"},wnr="http://127.0.0.1:8081",xnr=["127.0.0.1"],Snr={extends:"react-app"},Cnr=[">0.2%","not dead","not ie <= 11","not op_mini all"],$nr={name:gnr,version:vnr,private:!0,dependencies:ynr,homepage:_nr,scripts:bnr,_proxy:wnr,allowedHosts:xnr,eslintConfig:Snr,browserslist:Cnr};window.adapterName="echarts";window.sentryDSN="https://709f116e1de34029921e4f2696d6740f@sentry.iobroker.net/88";console.log(`iobroker.${window.adapterName}@${$nr.version}`);const D9=document.getElementById("root");D9&&LJ.createRoot(D9).render(w.jsx(fnr,{}));mnr()});export default knr(); diff --git a/admin/chart/assets/index-DCgeF7hH.js b/admin/chart/assets/index-DCgeF7hH.js deleted file mode 100644 index 67bad9a3..00000000 --- a/admin/chart/assets/index-DCgeF7hH.js +++ /dev/null @@ -1,609 +0,0 @@ -var Cne=Object.defineProperty;var Tne=(t,e,r)=>e in t?Cne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var kne=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var de=(t,e,r)=>Tne(t,typeof e!="symbol"?e+"":e,r);var Q5t=kne((Ii,Ca)=>{function Ene(t,e){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();var Ff=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ER(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var I2={exports:{}},Pg={},R2={exports:{}},er={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Q4;function Dne(){if(Q4)return er;Q4=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),u=Symbol.iterator;function f(H){return H===null||typeof H!="object"?null:(H=u&&H[u]||H["@@iterator"],typeof H=="function"?H:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function _(H,X,ae){this.props=H,this.context=X,this.refs=g,this.updater=ae||p}_.prototype.isReactComponent={},_.prototype.setState=function(H,X){if(typeof H!="object"&&typeof H!="function"&&H!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,H,X,"setState")},_.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function b(){}b.prototype=_.prototype;function w(H,X,ae){this.props=H,this.context=X,this.refs=g,this.updater=ae||p}var x=w.prototype=new b;x.constructor=w,v(x,_.prototype),x.isPureReactComponent=!0;var C=Array.isArray,M=Object.prototype.hasOwnProperty,k={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function R(H,X,ae){var re,le={},Ee=null,We=null;if(X!=null)for(re in X.ref!==void 0&&(We=X.ref),X.key!==void 0&&(Ee=""+X.key),X)M.call(X,re)&&!O.hasOwnProperty(re)&&(le[re]=X[re]);var Ne=arguments.length-2;if(Ne===1)le.children=ae;else if(1>>1,X=K[H];if(0>>1;Ha(le,oe))Eea(We,le)?(K[H]=We,K[Ee]=oe,H=Ee):(K[H]=le,K[re]=oe,H=re);else if(Eea(We,oe))K[H]=We,K[Ee]=oe,H=Ee;else break e}}return Q}function a(K,Q){var oe=K.sortIndex-Q.sortIndex;return oe!==0?oe:K.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var l=[],c=[],d=1,u=null,f=3,p=!1,v=!1,g=!1,_=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(K){for(var Q=r(c);Q!==null;){if(Q.callback===null)n(c);else if(Q.startTime<=K)n(c),Q.sortIndex=Q.expirationTime,e(l,Q);else break;Q=r(c)}}function C(K){if(g=!1,x(K),!v)if(r(l)!==null)v=!0,J(M);else{var Q=r(c);Q!==null&&ie(C,Q.startTime-K)}}function M(K,Q){v=!1,g&&(g=!1,b(R),R=-1),p=!0;var oe=f;try{for(x(Q),u=r(l);u!==null&&(!(u.expirationTime>Q)||K&&!N());){var H=u.callback;if(typeof H=="function"){u.callback=null,f=u.priorityLevel;var X=H(u.expirationTime<=Q);Q=t.unstable_now(),typeof X=="function"?u.callback=X:u===r(l)&&n(l),x(Q)}else n(l);u=r(l)}if(u!==null)var ae=!0;else{var re=r(c);re!==null&&ie(C,re.startTime-Q),ae=!1}return ae}finally{u=null,f=oe,p=!1}}var k=!1,O=null,R=-1,L=5,$=-1;function N(){return!(t.unstable_now()-$K||125H?(K.sortIndex=oe,e(c,K),r(l)===null&&K===r(c)&&(g?(b(R),R=-1):g=!0,ie(C,oe-H))):(K.sortIndex=X,e(l,K),v||p||(v=!0,J(M))),K},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(K){var Q=f;return function(){var oe=f;f=Q;try{return K.apply(this,arguments)}finally{f=oe}}}}(F2)),F2}var aF;function Ane(){return aF||(aF=1,N2.exports=$ne()),N2.exports}/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var iF;function Pne(){if(iF)return Ja;iF=1;var t=ld(),e=Ane();function r(h){for(var m="https://reactjs.org/docs/error-decoder.html?invariant="+h,y=1;y"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,c=/^[: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]*$/,d={},u={};function f(h){return l.call(u,h)?!0:l.call(d,h)?!1:c.test(h)?u[h]=!0:(d[h]=!0,!1)}function p(h,m,y,T){if(y!==null&&y.type===0)return!1;switch(typeof m){case"function":case"symbol":return!0;case"boolean":return T?!1:y!==null?!y.acceptsBooleans:(h=h.toLowerCase().slice(0,5),h!=="data-"&&h!=="aria-");default:return!1}}function v(h,m,y,T){if(m===null||typeof m>"u"||p(h,m,y,T))return!0;if(T)return!1;if(y!==null)switch(y.type){case 3:return!m;case 4:return m===!1;case 5:return isNaN(m);case 6:return isNaN(m)||1>m}return!1}function g(h,m,y,T,A,I,B){this.acceptsBooleans=m===2||m===3||m===4,this.attributeName=T,this.attributeNamespace=A,this.mustUseProperty=y,this.propertyName=h,this.type=m,this.sanitizeURL=I,this.removeEmptyString=B}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(h){_[h]=new g(h,0,!1,h,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(h){var m=h[0];_[m]=new g(m,1,!1,h[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(h){_[h]=new g(h,2,!1,h.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(h){_[h]=new g(h,2,!1,h,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(h){_[h]=new g(h,3,!1,h.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(h){_[h]=new g(h,3,!0,h,null,!1,!1)}),["capture","download"].forEach(function(h){_[h]=new g(h,4,!1,h,null,!1,!1)}),["cols","rows","size","span"].forEach(function(h){_[h]=new g(h,6,!1,h,null,!1,!1)}),["rowSpan","start"].forEach(function(h){_[h]=new g(h,5,!1,h.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function w(h){return h[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(h){var m=h.replace(b,w);_[m]=new g(m,1,!1,h,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(h){var m=h.replace(b,w);_[m]=new g(m,1,!1,h,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(h){var m=h.replace(b,w);_[m]=new g(m,1,!1,h,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(h){_[h]=new g(h,1,!1,h.toLowerCase(),null,!1,!1)}),_.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(h){_[h]=new g(h,1,!1,h.toLowerCase(),null,!0,!0)});function x(h,m,y,T){var A=_.hasOwnProperty(m)?_[m]:null;(A!==null?A.type!==0:T||!(2Z||A[B]!==I[Z]){var ne=` -`+A[B].replace(" at new "," at ");return h.displayName&&ne.includes("")&&(ne=ne.replace("",h.displayName)),ne}while(1<=B&&0<=Z);break}}}finally{ae=!1,Error.prepareStackTrace=y}return(h=h?h.displayName||h.name:"")?X(h):""}function le(h){switch(h.tag){case 5:return X(h.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return h=re(h.type,!1),h;case 11:return h=re(h.type.render,!1),h;case 1:return h=re(h.type,!0),h;default:return""}}function Ee(h){if(h==null)return null;if(typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case O:return"Fragment";case k:return"Portal";case L:return"Profiler";case R:return"StrictMode";case j:return"Suspense";case Y:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case N:return(h.displayName||"Context")+".Consumer";case $:return(h._context.displayName||"Context")+".Provider";case W:var m=h.render;return h=h.displayName,h||(h=m.displayName||m.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case V:return m=h.displayName||null,m!==null?m:Ee(h.type)||"Memo";case J:m=h._payload,h=h._init;try{return Ee(h(m))}catch{}}return null}function We(h){var m=h.type;switch(h.tag){case 24:return"Cache";case 9:return(m.displayName||"Context")+".Consumer";case 10:return(m._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return h=m.render,h=h.displayName||h.name||"",m.displayName||(h!==""?"ForwardRef("+h+")":"ForwardRef");case 7:return"Fragment";case 5:return m;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ee(m);case 8:return m===R?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m}return null}function Ne(h){switch(typeof h){case"boolean":case"number":case"string":case"undefined":return h;case"object":return h;default:return""}}function Le(h){var m=h.type;return(h=h.nodeName)&&h.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function Pe(h){var m=Le(h)?"checked":"value",y=Object.getOwnPropertyDescriptor(h.constructor.prototype,m),T=""+h[m];if(!h.hasOwnProperty(m)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var A=y.get,I=y.set;return Object.defineProperty(h,m,{configurable:!0,get:function(){return A.call(this)},set:function(B){T=""+B,I.call(this,B)}}),Object.defineProperty(h,m,{enumerable:y.enumerable}),{getValue:function(){return T},setValue:function(B){T=""+B},stopTracking:function(){h._valueTracker=null,delete h[m]}}}}function we(h){h._valueTracker||(h._valueTracker=Pe(h))}function ye(h){if(!h)return!1;var m=h._valueTracker;if(!m)return!0;var y=m.getValue(),T="";return h&&(T=Le(h)?h.checked?"true":"false":h.value),h=T,h!==y?(m.setValue(h),!0):!1}function ht(h){if(h=h||(typeof document<"u"?document:void 0),typeof h>"u")return null;try{return h.activeElement||h.body}catch{return h.body}}function Be(h,m){var y=m.checked;return oe({},m,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y??h._wrapperState.initialChecked})}function je(h,m){var y=m.defaultValue==null?"":m.defaultValue,T=m.checked!=null?m.checked:m.defaultChecked;y=Ne(m.value!=null?m.value:y),h._wrapperState={initialChecked:T,initialValue:y,controlled:m.type==="checkbox"||m.type==="radio"?m.checked!=null:m.value!=null}}function Dt(h,m){m=m.checked,m!=null&&x(h,"checked",m,!1)}function Me(h,m){Dt(h,m);var y=Ne(m.value),T=m.type;if(y!=null)T==="number"?(y===0&&h.value===""||h.value!=y)&&(h.value=""+y):h.value!==""+y&&(h.value=""+y);else if(T==="submit"||T==="reset"){h.removeAttribute("value");return}m.hasOwnProperty("value")?kt(h,m.type,y):m.hasOwnProperty("defaultValue")&&kt(h,m.type,Ne(m.defaultValue)),m.checked==null&&m.defaultChecked!=null&&(h.defaultChecked=!!m.defaultChecked)}function ot(h,m,y){if(m.hasOwnProperty("value")||m.hasOwnProperty("defaultValue")){var T=m.type;if(!(T!=="submit"&&T!=="reset"||m.value!==void 0&&m.value!==null))return;m=""+h._wrapperState.initialValue,y||m===h.value||(h.value=m),h.defaultValue=m}y=h.name,y!==""&&(h.name=""),h.defaultChecked=!!h._wrapperState.initialChecked,y!==""&&(h.name=y)}function kt(h,m,y){(m!=="number"||ht(h.ownerDocument)!==h)&&(y==null?h.defaultValue=""+h._wrapperState.initialValue:h.defaultValue!==""+y&&(h.defaultValue=""+y))}var _t=Array.isArray;function tt(h,m,y,T){if(h=h.options,m){m={};for(var A=0;A"+m.valueOf().toString()+"",m=ut.firstChild;h.firstChild;)h.removeChild(h.firstChild);for(;m.firstChild;)h.appendChild(m.firstChild)}});function nt(h,m){if(m){var y=h.firstChild;if(y&&y===h.lastChild&&y.nodeType===3){y.nodeValue=m;return}}h.textContent=m}var Ke={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nr=["Webkit","ms","Moz","O"];Object.keys(Ke).forEach(function(h){nr.forEach(function(m){m=m+h.charAt(0).toUpperCase()+h.substring(1),Ke[m]=Ke[h]})});function ar(h,m,y){return m==null||typeof m=="boolean"||m===""?"":y||typeof m!="number"||m===0||Ke.hasOwnProperty(h)&&Ke[h]?(""+m).trim():m+"px"}function Kt(h,m){h=h.style;for(var y in m)if(m.hasOwnProperty(y)){var T=y.indexOf("--")===0,A=ar(y,m[y],T);y==="float"&&(y="cssFloat"),T?h.setProperty(y,A):h[y]=A}}var me=oe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ce(h,m){if(m){if(me[h]&&(m.children!=null||m.dangerouslySetInnerHTML!=null))throw Error(r(137,h));if(m.dangerouslySetInnerHTML!=null){if(m.children!=null)throw Error(r(60));if(typeof m.dangerouslySetInnerHTML!="object"||!("__html"in m.dangerouslySetInnerHTML))throw Error(r(61))}if(m.style!=null&&typeof m.style!="object")throw Error(r(62))}}function at(h,m){if(h.indexOf("-")===-1)return typeof m.is=="string";switch(h){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 gt=null;function Qt(h){return h=h.target||h.srcElement||window,h.correspondingUseElement&&(h=h.correspondingUseElement),h.nodeType===3?h.parentNode:h}var Fn=null,cn=null,gn=null;function Po(h){if(h=Wd(h)){if(typeof Fn!="function")throw Error(r(280));var m=h.stateNode;m&&(m=ep(m),Fn(h.stateNode,h.type,m))}}function vi(h){cn?gn?gn.push(h):gn=[h]:cn=h}function Ve(){if(cn){var h=cn,m=gn;if(gn=cn=null,Po(h),m)for(h=0;h>>=0,h===0?32:31-(ak(h)/ik|0)|0}var wd=64,Sd=4194304;function xd(h){switch(h&-h){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return h&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return h&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return h}}function Fh(h,m){var y=h.pendingLanes;if(y===0)return 0;var T=0,A=h.suspendedLanes,I=h.pingedLanes,B=y&268435455;if(B!==0){var Z=B&~A;Z!==0?T=xd(Z):(I&=B,I!==0&&(T=xd(I)))}else B=y&~A,B!==0?T=xd(B):I!==0&&(T=xd(I));if(T===0)return 0;if(m!==0&&m!==T&&!(m&A)&&(A=T&-T,I=m&-m,A>=I||A===16&&(I&4194240)!==0))return m;if(T&4&&(T|=y&16),m=h.entangledLanes,m!==0)for(h=h.entanglements,m&=T;0y;y++)m.push(h);return m}function Yc(h,m,y){h.pendingLanes|=m,m!==536870912&&(h.suspendedLanes=0,h.pingedLanes=0),h=h.eventTimes,m=31-yi(m),h[m]=y}function Cd(h,m){var y=h.pendingLanes&~m;h.pendingLanes=m,h.suspendedLanes=0,h.pingedLanes=0,h.expiredLanes&=m,h.mutableReadLanes&=m,h.entangledLanes&=m,m=h.entanglements;var T=h.eventTimes;for(h=h.expirationTimes;0=Kc),vb=" ",qv=!1;function gb(h,m){switch(h){case"keyup":return pb.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _b(h){return h=h.detail,typeof h=="object"&&"data"in h?h.data:null}var Qc=!1;function Pd(h,m){switch(h){case"compositionend":return _b(m);case"keypress":return m.which!==32?null:(qv=!0,vb);case"textInput":return h=m.data,h===vb&&qv?null:h;default:return null}}function Mk(h,m){if(Qc)return h==="compositionend"||!Gv&&gb(h,m)?(h=Pr(),$d=Wv=Ms=null,Qc=!1,h):null;switch(h){case"paste":return null;case"keypress":if(!(m.ctrlKey||m.altKey||m.metaKey)||m.ctrlKey&&m.altKey){if(m.char&&1=m)return{node:y,offset:m-h};h=T}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=Xv(y)}}function Cb(h,m){return h&&m?h===m?!0:h&&h.nodeType===3?!1:m&&m.nodeType===3?Cb(h,m.parentNode):"contains"in h?h.contains(m):h.compareDocumentPosition?!!(h.compareDocumentPosition(m)&16):!1:!1}function Ya(){for(var h=window,m=ht();m instanceof h.HTMLIFrameElement;){try{var y=typeof m.contentWindow.location.href=="string"}catch{y=!1}if(y)h=m.contentWindow;else break;m=ht(h.document)}return m}function Ro(h){var m=h&&h.nodeName&&h.nodeName.toLowerCase();return m&&(m==="input"&&(h.type==="text"||h.type==="search"||h.type==="tel"||h.type==="url"||h.type==="password")||m==="textarea"||h.contentEditable==="true")}function Tb(h){var m=Ya(),y=h.focusedElem,T=h.selectionRange;if(m!==y&&y&&y.ownerDocument&&Cb(y.ownerDocument.documentElement,y)){if(T!==null&&Ro(y)){if(m=T.start,h=T.end,h===void 0&&(h=m),"selectionStart"in y)y.selectionStart=m,y.selectionEnd=Math.min(h,y.value.length);else if(h=(m=y.ownerDocument||document)&&m.defaultView||window,h.getSelection){h=h.getSelection();var A=y.textContent.length,I=Math.min(T.start,A);T=T.end===void 0?I:Math.min(T.end,A),!h.extend&&I>T&&(A=T,T=I,I=A),A=xb(y,I);var B=xb(y,T);A&&B&&(h.rangeCount!==1||h.anchorNode!==A.node||h.anchorOffset!==A.offset||h.focusNode!==B.node||h.focusOffset!==B.offset)&&(m=m.createRange(),m.setStart(A.node,A.offset),h.removeAllRanges(),I>T?(h.addRange(m),h.extend(B.node,B.offset)):(m.setEnd(B.node,B.offset),h.addRange(m)))}}for(m=[],h=y;h=h.parentNode;)h.nodeType===1&&m.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y=document.documentMode,Nl=null,Vh=null,zd=null,Jv=!1;function Zv(h,m,y){var T=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;Jv||Nl==null||Nl!==ht(T)||(T=Nl,"selectionStart"in T&&Ro(T)?T={start:T.selectionStart,end:T.selectionEnd}:(T=(T.ownerDocument&&T.ownerDocument.defaultView||window).getSelection(),T={anchorNode:T.anchorNode,anchorOffset:T.anchorOffset,focusNode:T.focusNode,focusOffset:T.focusOffset}),zd&&Fd(zd,T)||(zd=T,T=Lo(Vh,"onSelect"),0au||(h.current=dg[au],dg[au]=null,au--)}function Or(h,m){au++,dg[au]=h.current,h.current=m}var zs={},Bn=Gi(zs),ca=Gi(!1),zl=zs;function iu(h,m){var y=h.type.contextTypes;if(!y)return zs;var T=h.stateNode;if(T&&T.__reactInternalMemoizedUnmaskedChildContext===m)return T.__reactInternalMemoizedMaskedChildContext;var A={},I;for(I in y)A[I]=m[I];return T&&(h=h.stateNode,h.__reactInternalMemoizedUnmaskedChildContext=m,h.__reactInternalMemoizedMaskedChildContext=A),A}function Jn(h){return h=h.childContextTypes,h!=null}function tp(){Sr(ca),Sr(Bn)}function Fb(h,m,y){if(Bn.current!==zs)throw Error(r(168));Or(Bn,m),Or(ca,y)}function fg(h,m,y){var T=h.stateNode;if(m=m.childContextTypes,typeof T.getChildContext!="function")return y;T=T.getChildContext();for(var A in T)if(!(A in m))throw Error(r(108,We(h)||"Unknown",A));return oe({},y,T)}function rp(h){return h=(h=h.stateNode)&&h.__reactInternalMemoizedMergedChildContext||zs,zl=Bn.current,Or(Bn,h),Or(ca,ca.current),!0}function zb(h,m,y){var T=h.stateNode;if(!T)throw Error(r(169));y?(h=fg(h,m,zl),T.__reactInternalMemoizedMergedChildContext=h,Sr(ca),Sr(Bn),Or(Bn,h)):Sr(ca),Or(ca,y)}var zo=null,Si=!1,np=!1;function Bb(h){zo===null?zo=[h]:zo.push(h)}function Vk(h){Si=!0,Bb(h)}function Bs(){if(!np&&zo!==null){np=!0;var h=0,m=vr;try{var y=zo;for(vr=1;h>=B,A-=B,xi=1<<32-yi(m)+A|y<Mt?(Hn=bt,bt=null):Hn=bt.sibling;var hr=be(ce,bt,ue[Mt],Ie);if(hr===null){bt===null&&(bt=Hn);break}h&&bt&&hr.alternate===null&&m(ce,bt),se=I(hr,se,Mt),yt===null?st=hr:yt.sibling=hr,yt=hr,bt=Hn}if(Mt===ue.length)return y(ce,bt),Lr&&Bl(ce,Mt),st;if(bt===null){for(;MtMt?(Hn=bt,bt=null):Hn=bt.sibling;var vu=be(ce,bt,hr.value,Ie);if(vu===null){bt===null&&(bt=Hn);break}h&&bt&&vu.alternate===null&&m(ce,bt),se=I(vu,se,Mt),yt===null?st=vu:yt.sibling=vu,yt=vu,bt=Hn}if(hr.done)return y(ce,bt),Lr&&Bl(ce,Mt),st;if(bt===null){for(;!hr.done;Mt++,hr=ue.next())hr=ke(ce,hr.value,Ie),hr!==null&&(se=I(hr,se,Mt),yt===null?st=hr:yt.sibling=hr,yt=hr);return Lr&&Bl(ce,Mt),st}for(bt=T(ce,bt);!hr.done;Mt++,hr=ue.next())hr=Je(bt,ce,Mt,hr.value,Ie),hr!==null&&(h&&hr.alternate!==null&&bt.delete(hr.key===null?Mt:hr.key),se=I(hr,se,Mt),yt===null?st=hr:yt.sibling=hr,yt=hr);return h&&bt.forEach(function(xne){return m(ce,xne)}),Lr&&Bl(ce,Mt),st}function bn(ce,se,ue,Ie){if(typeof ue=="object"&&ue!==null&&ue.type===O&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case M:e:{for(var st=ue.key,yt=se;yt!==null;){if(yt.key===st){if(st=ue.type,st===O){if(yt.tag===7){y(ce,yt.sibling),se=A(yt,ue.props.children),se.return=ce,ce=se;break e}}else if(yt.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===J&&Hb(st)===yt.type){y(ce,yt.sibling),se=A(yt,ue.props),se.ref=Ud(ce,yt,ue),se.return=ce,ce=se;break e}y(ce,yt);break}else m(ce,yt);yt=yt.sibling}ue.type===O?(se=Zd(ue.props.children,ce.mode,Ie,ue.key),se.return=ce,ce=se):(Ie=d1(ue.type,ue.key,ue.props,null,ce.mode,Ie),Ie.ref=Ud(ce,se,ue),Ie.return=ce,ce=Ie)}return B(ce);case k:e:{for(yt=ue.key;se!==null;){if(se.key===yt)if(se.tag===4&&se.stateNode.containerInfo===ue.containerInfo&&se.stateNode.implementation===ue.implementation){y(ce,se.sibling),se=A(se,ue.children||[]),se.return=ce,ce=se;break e}else{y(ce,se);break}else m(ce,se);se=se.sibling}se=M2(ue,ce.mode,Ie),se.return=ce,ce=se}return B(ce);case J:return yt=ue._init,bn(ce,se,yt(ue._payload),Ie)}if(_t(ue))return rt(ce,se,ue,Ie);if(Q(ue))return it(ce,se,ue,Ie);lp(ce,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"?(ue=""+ue,se!==null&&se.tag===6?(y(ce,se.sibling),se=A(se,ue),se.return=ce,ce=se):(y(ce,se),se=D2(ue,ce.mode,Ie),se.return=ce,ce=se),B(ce)):y(ce,se)}return bn}var su=Ub(!0),Yb=Ub(!1),cp=Gi(null),up=null,lu=null,jo=null;function _g(){jo=lu=up=null}function yg(h){var m=cp.current;Sr(cp),h._currentValue=m}function bg(h,m,y){for(;h!==null;){var T=h.alternate;if((h.childLanes&m)!==m?(h.childLanes|=m,T!==null&&(T.childLanes|=m)):T!==null&&(T.childLanes&m)!==m&&(T.childLanes|=m),h===y)break;h=h.return}}function cu(h,m){up=h,jo=lu=null,h=h.dependencies,h!==null&&h.firstContext!==null&&(h.lanes&m&&(Ga=!0),h.firstContext=null)}function Va(h){var m=h._currentValue;if(jo!==h)if(h={context:h,memoizedValue:m,next:null},lu===null){if(up===null)throw Error(r(308));lu=h,up.dependencies={lanes:0,firstContext:h}}else lu=lu.next=h;return m}var Wl=null;function wg(h){Wl===null?Wl=[h]:Wl.push(h)}function Vb(h,m,y,T){var A=m.interleaved;return A===null?(y.next=y,wg(m)):(y.next=A.next,A.next=y),m.interleaved=y,$n(h,T)}function $n(h,m){h.lanes|=m;var y=h.alternate;for(y!==null&&(y.lanes|=m),y=h,h=h.return;h!==null;)h.childLanes|=m,y=h.alternate,y!==null&&(y.childLanes|=m),y=h,h=h.return;return y.tag===3?y.stateNode:null}var Aa=!1;function Sg(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gb(h,m){h=h.updateQueue,m.updateQueue===h&&(m.updateQueue={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,effects:h.effects})}function Wo(h,m){return{eventTime:h,lane:m,tag:0,payload:null,callback:null,next:null}}function Ws(h,m,y){var T=h.updateQueue;if(T===null)return null;if(T=T.shared,dr&2){var A=T.pending;return A===null?m.next=m:(m.next=A.next,A.next=m),T.pending=m,$n(h,y)}return A=T.interleaved,A===null?(m.next=m,wg(T)):(m.next=A.next,A.next=m),T.interleaved=m,$n(h,y)}function dp(h,m,y){if(m=m.updateQueue,m!==null&&(m=m.shared,(y&4194240)!==0)){var T=m.lanes;T&=h.pendingLanes,y|=T,m.lanes=y,bi(h,y)}}function fp(h,m){var y=h.updateQueue,T=h.alternate;if(T!==null&&(T=T.updateQueue,y===T)){var A=null,I=null;if(y=y.firstBaseUpdate,y!==null){do{var B={eventTime:y.eventTime,lane:y.lane,tag:y.tag,payload:y.payload,callback:y.callback,next:null};I===null?A=I=B:I=I.next=B,y=y.next}while(y!==null);I===null?A=I=m:I=I.next=m}else A=I=m;y={baseState:T.baseState,firstBaseUpdate:A,lastBaseUpdate:I,shared:T.shared,effects:T.effects},h.updateQueue=y;return}h=y.lastBaseUpdate,h===null?y.firstBaseUpdate=m:h.next=m,y.lastBaseUpdate=m}function Ho(h,m,y,T){var A=h.updateQueue;Aa=!1;var I=A.firstBaseUpdate,B=A.lastBaseUpdate,Z=A.shared.pending;if(Z!==null){A.shared.pending=null;var ne=Z,fe=ne.next;ne.next=null,B===null?I=fe:B.next=fe,B=ne;var Se=h.alternate;Se!==null&&(Se=Se.updateQueue,Z=Se.lastBaseUpdate,Z!==B&&(Z===null?Se.firstBaseUpdate=fe:Z.next=fe,Se.lastBaseUpdate=ne))}if(I!==null){var ke=A.baseState;B=0,Se=fe=ne=null,Z=I;do{var be=Z.lane,Je=Z.eventTime;if((T&be)===be){Se!==null&&(Se=Se.next={eventTime:Je,lane:0,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null});e:{var rt=h,it=Z;switch(be=m,Je=y,it.tag){case 1:if(rt=it.payload,typeof rt=="function"){ke=rt.call(Je,ke,be);break e}ke=rt;break e;case 3:rt.flags=rt.flags&-65537|128;case 0:if(rt=it.payload,be=typeof rt=="function"?rt.call(Je,ke,be):rt,be==null)break e;ke=oe({},ke,be);break e;case 2:Aa=!0}}Z.callback!==null&&Z.lane!==0&&(h.flags|=64,be=A.effects,be===null?A.effects=[Z]:be.push(Z))}else Je={eventTime:Je,lane:be,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},Se===null?(fe=Se=Je,ne=ke):Se=Se.next=Je,B|=be;if(Z=Z.next,Z===null){if(Z=A.shared.pending,Z===null)break;be=Z,Z=be.next,be.next=null,A.lastBaseUpdate=be,A.shared.pending=null}}while(!0);if(Se===null&&(ne=ke),A.baseState=ne,A.firstBaseUpdate=fe,A.lastBaseUpdate=Se,m=A.shared.interleaved,m!==null){A=m;do B|=A.lane,A=A.next;while(A!==m)}else I===null&&(A.shared.lanes=0);Gd|=B,h.lanes=B,h.memoizedState=ke}}function Yd(h,m,y){if(h=m.effects,m.effects=null,h!==null)for(m=0;my?y:4,h(!0);var T=qk.transition;qk.transition={};try{h(!1),m()}finally{vr=y,qk.transition=T}}function t4(){return Xi().memoizedState}function qre(h,m,y){var T=hu(h);if(y={lane:T,action:y,hasEagerState:!1,eagerState:null,next:null},r4(h))n4(m,y);else if(y=Vb(h,m,y,T),y!==null){var A=Ia();Go(y,h,T,A),a4(y,m,T)}}function Xre(h,m,y){var T=hu(h),A={lane:T,action:y,hasEagerState:!1,eagerState:null,next:null};if(r4(h))n4(m,A);else{var I=h.alternate;if(h.lanes===0&&(I===null||I.lanes===0)&&(I=m.lastRenderedReducer,I!==null))try{var B=m.lastRenderedState,Z=I(B,y);if(A.hasEagerState=!0,A.eagerState=Z,wi(Z,B)){var ne=m.interleaved;ne===null?(A.next=A,wg(m)):(A.next=ne.next,ne.next=A),m.interleaved=A;return}}catch{}finally{}y=Vb(h,m,A,T),y!==null&&(A=Ia(),Go(y,h,T,A),a4(y,m,T))}}function r4(h){var m=h.alternate;return h===sn||m!==null&&m===sn}function n4(h,m){xg=qb=!0;var y=h.pending;y===null?m.next=m:(m.next=y.next,y.next=m),h.pending=m}function a4(h,m,y){if(y&4194240){var T=m.lanes;T&=h.pendingLanes,y|=T,m.lanes=y,bi(h,y)}}var Zb={readContext:Va,useCallback:ua,useContext:ua,useEffect:ua,useImperativeHandle:ua,useInsertionEffect:ua,useLayoutEffect:ua,useMemo:ua,useReducer:ua,useRef:ua,useState:ua,useDebugValue:ua,useDeferredValue:ua,useTransition:ua,useMutableSource:ua,useSyncExternalStore:ua,useId:ua,unstable_isNewReconciler:!1},Jre={readContext:Va,useCallback:function(h,m){return Hs().memoizedState=[h,m===void 0?null:m],h},useContext:Va,useEffect:G3,useImperativeHandle:function(h,m,y){return y=y!=null?y.concat([h]):null,Xb(4194308,4,J3.bind(null,m,h),y)},useLayoutEffect:function(h,m){return Xb(4194308,4,h,m)},useInsertionEffect:function(h,m){return Xb(4,2,h,m)},useMemo:function(h,m){var y=Hs();return m=m===void 0?null:m,h=h(),y.memoizedState=[h,m],h},useReducer:function(h,m,y){var T=Hs();return m=y!==void 0?y(m):m,T.memoizedState=T.baseState=m,h={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:m},T.queue=h,h=h.dispatch=qre.bind(null,sn,h),[T.memoizedState,h]},useRef:function(h){var m=Hs();return h={current:h},m.memoizedState=h},useState:Y3,useDebugValue:t2,useDeferredValue:function(h){return Hs().memoizedState=h},useTransition:function(){var h=Y3(!1),m=h[0];return h=Gre.bind(null,h[1]),Hs().memoizedState=h,[m,h]},useMutableSource:function(){},useSyncExternalStore:function(h,m,y){var T=sn,A=Hs();if(Lr){if(y===void 0)throw Error(r(407));y=y()}else{if(y=m(),Wn===null)throw Error(r(349));Vd&30||B3(T,m,y)}A.memoizedState=y;var I={value:y,getSnapshot:m};return A.queue=I,G3(W3.bind(null,T,I,h),[h]),T.flags|=2048,kg(9,j3.bind(null,T,I,y,m),void 0,null),y},useId:function(){var h=Hs(),m=Wn.identifierPrefix;if(Lr){var y=Bo,T=xi;y=(T&~(1<<32-yi(T)-1)).toString(32)+y,m=":"+m+"R"+y,y=Cg++,0<\/script>",h=h.removeChild(h.firstChild)):typeof T.is=="string"?h=B.createElement(y,{is:T.is}):(h=B.createElement(y),y==="select"&&(B=h,T.multiple?B.multiple=!0:T.size&&(B.size=T.size))):h=B.createElementNS(h,y),h[Vi]=m,h[jd]=T,C4(h,m,!1,!1),m.stateNode=h;e:{switch(B=at(y,T),y){case"dialog":Rr("cancel",h),Rr("close",h),A=T;break;case"iframe":case"object":case"embed":Rr("load",h),A=T;break;case"video":case"audio":for(A=0;Avp&&(m.flags|=128,T=!0,Eg(I,!1),m.lanes=4194304)}else{if(!T)if(h=qt(B),h!==null){if(m.flags|=128,T=!0,y=h.updateQueue,y!==null&&(m.updateQueue=y,m.flags|=4),Eg(I,!0),I.tail===null&&I.tailMode==="hidden"&&!B.alternate&&!Lr)return da(m),null}else 2*an()-I.renderingStartTime>vp&&y!==1073741824&&(m.flags|=128,T=!0,Eg(I,!1),m.lanes=4194304);I.isBackwards?(B.sibling=m.child,m.child=B):(y=I.last,y!==null?y.sibling=B:m.child=B,I.last=B)}return I.tail!==null?(m=I.tail,I.rendering=m,I.tail=m.sibling,I.renderingStartTime=an(),m.sibling=null,y=Xe.current,Or(Xe,T?y&1|2:y&1),m):(da(m),null);case 22:case 23:return T2(),T=m.memoizedState!==null,h!==null&&h.memoizedState!==null!==T&&(m.flags|=8192),T&&m.mode&1?Ei&1073741824&&(da(m),m.subtreeFlags&6&&(m.flags|=8192)):da(m),null;case 24:return null;case 25:return null}throw Error(r(156,m.tag))}function ane(h,m){switch(pg(m),m.tag){case 1:return Jn(m.type)&&tp(),h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 3:return ee(),Sr(ca),Sr(Bn),Ti(),h=m.flags,h&65536&&!(h&128)?(m.flags=h&-65537|128,m):null;case 5:return Ge(m),null;case 13:if(Sr(Xe),h=m.memoizedState,h!==null&&h.dehydrated!==null){if(m.alternate===null)throw Error(r(340));jl()}return h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 19:return Sr(Xe),null;case 4:return ee(),null;case 10:return yg(m.type._context),null;case 22:case 23:return T2(),null;case 24:return null;default:return null}}var t1=!1,fa=!1,ine=typeof WeakSet=="function"?WeakSet:Set,et=null;function pp(h,m){var y=h.ref;if(y!==null)if(typeof y=="function")try{y(null)}catch(T){un(h,m,T)}else y.current=null}function h2(h,m,y){try{y()}catch(T){un(h,m,T)}}var E4=!1;function one(h,m){if(ig=qc,h=Ya(),Ro(h)){if("selectionStart"in h)var y={start:h.selectionStart,end:h.selectionEnd};else e:{y=(y=h.ownerDocument)&&y.defaultView||window;var T=y.getSelection&&y.getSelection();if(T&&T.rangeCount!==0){y=T.anchorNode;var A=T.anchorOffset,I=T.focusNode;T=T.focusOffset;try{y.nodeType,I.nodeType}catch{y=null;break e}var B=0,Z=-1,ne=-1,fe=0,Se=0,ke=h,be=null;t:for(;;){for(var Je;ke!==y||A!==0&&ke.nodeType!==3||(Z=B+A),ke!==I||T!==0&&ke.nodeType!==3||(ne=B+T),ke.nodeType===3&&(B+=ke.nodeValue.length),(Je=ke.firstChild)!==null;)be=ke,ke=Je;for(;;){if(ke===h)break t;if(be===y&&++fe===A&&(Z=B),be===I&&++Se===T&&(ne=B),(Je=ke.nextSibling)!==null)break;ke=be,be=ke.parentNode}ke=Je}y=Z===-1||ne===-1?null:{start:Z,end:ne}}else y=null}y=y||{start:0,end:0}}else y=null;for(og={focusedElem:h,selectionRange:y},qc=!1,et=m;et!==null;)if(m=et,h=m.child,(m.subtreeFlags&1028)!==0&&h!==null)h.return=m,et=h;else for(;et!==null;){m=et;try{var rt=m.alternate;if(m.flags&1024)switch(m.tag){case 0:case 11:case 15:break;case 1:if(rt!==null){var it=rt.memoizedProps,bn=rt.memoizedState,ce=m.stateNode,se=ce.getSnapshotBeforeUpdate(m.elementType===m.type?it:Uo(m.type,it),bn);ce.__reactInternalSnapshotBeforeUpdate=se}break;case 3:var ue=m.stateNode.containerInfo;ue.nodeType===1?ue.textContent="":ue.nodeType===9&&ue.documentElement&&ue.removeChild(ue.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Ie){un(m,m.return,Ie)}if(h=m.sibling,h!==null){h.return=m.return,et=h;break}et=m.return}return rt=E4,E4=!1,rt}function Dg(h,m,y){var T=m.updateQueue;if(T=T!==null?T.lastEffect:null,T!==null){var A=T=T.next;do{if((A.tag&h)===h){var I=A.destroy;A.destroy=void 0,I!==void 0&&h2(m,y,I)}A=A.next}while(A!==T)}}function r1(h,m){if(m=m.updateQueue,m=m!==null?m.lastEffect:null,m!==null){var y=m=m.next;do{if((y.tag&h)===h){var T=y.create;y.destroy=T()}y=y.next}while(y!==m)}}function p2(h){var m=h.ref;if(m!==null){var y=h.stateNode;switch(h.tag){case 5:h=y;break;default:h=y}typeof m=="function"?m(h):m.current=h}}function D4(h){var m=h.alternate;m!==null&&(h.alternate=null,D4(m)),h.child=null,h.deletions=null,h.sibling=null,h.tag===5&&(m=h.stateNode,m!==null&&(delete m[Vi],delete m[jd],delete m[ug],delete m[Uk],delete m[Yk])),h.stateNode=null,h.return=null,h.dependencies=null,h.memoizedProps=null,h.memoizedState=null,h.pendingProps=null,h.stateNode=null,h.updateQueue=null}function M4(h){return h.tag===5||h.tag===3||h.tag===4}function O4(h){e:for(;;){for(;h.sibling===null;){if(h.return===null||M4(h.return))return null;h=h.return}for(h.sibling.return=h.return,h=h.sibling;h.tag!==5&&h.tag!==6&&h.tag!==18;){if(h.flags&2||h.child===null||h.tag===4)continue e;h.child.return=h,h=h.child}if(!(h.flags&2))return h.stateNode}}function m2(h,m,y){var T=h.tag;if(T===5||T===6)h=h.stateNode,m?y.nodeType===8?y.parentNode.insertBefore(h,m):y.insertBefore(h,m):(y.nodeType===8?(m=y.parentNode,m.insertBefore(h,y)):(m=y,m.appendChild(h)),y=y._reactRootContainer,y!=null||m.onclick!==null||(m.onclick=Qh));else if(T!==4&&(h=h.child,h!==null))for(m2(h,m,y),h=h.sibling;h!==null;)m2(h,m,y),h=h.sibling}function v2(h,m,y){var T=h.tag;if(T===5||T===6)h=h.stateNode,m?y.insertBefore(h,m):y.appendChild(h);else if(T!==4&&(h=h.child,h!==null))for(v2(h,m,y),h=h.sibling;h!==null;)v2(h,m,y),h=h.sibling}var Kn=null,Yo=!1;function uu(h,m,y){for(y=y.child;y!==null;)$4(h,m,y),y=y.sibling}function $4(h,m,y){if(Yi&&typeof Yi.onCommitFiberUnmount=="function")try{Yi.onCommitFiberUnmount(bd,y)}catch{}switch(y.tag){case 5:fa||pp(y,m);case 6:var T=Kn,A=Yo;Kn=null,uu(h,m,y),Kn=T,Yo=A,Kn!==null&&(Yo?(h=Kn,y=y.stateNode,h.nodeType===8?h.parentNode.removeChild(y):h.removeChild(y)):Kn.removeChild(y.stateNode));break;case 18:Kn!==null&&(Yo?(h=Kn,y=y.stateNode,h.nodeType===8?cg(h.parentNode,y):h.nodeType===1&&cg(h,y),Md(h)):cg(Kn,y.stateNode));break;case 4:T=Kn,A=Yo,Kn=y.stateNode.containerInfo,Yo=!0,uu(h,m,y),Kn=T,Yo=A;break;case 0:case 11:case 14:case 15:if(!fa&&(T=y.updateQueue,T!==null&&(T=T.lastEffect,T!==null))){A=T=T.next;do{var I=A,B=I.destroy;I=I.tag,B!==void 0&&(I&2||I&4)&&h2(y,m,B),A=A.next}while(A!==T)}uu(h,m,y);break;case 1:if(!fa&&(pp(y,m),T=y.stateNode,typeof T.componentWillUnmount=="function"))try{T.props=y.memoizedProps,T.state=y.memoizedState,T.componentWillUnmount()}catch(Z){un(y,m,Z)}uu(h,m,y);break;case 21:uu(h,m,y);break;case 22:y.mode&1?(fa=(T=fa)||y.memoizedState!==null,uu(h,m,y),fa=T):uu(h,m,y);break;default:uu(h,m,y)}}function A4(h){var m=h.updateQueue;if(m!==null){h.updateQueue=null;var y=h.stateNode;y===null&&(y=h.stateNode=new ine),m.forEach(function(T){var A=mne.bind(null,h,T);y.has(T)||(y.add(T),T.then(A,A))})}}function Vo(h,m){var y=m.deletions;if(y!==null)for(var T=0;TA&&(A=B),T&=~I}if(T=A,T=an()-T,T=(120>T?120:480>T?480:1080>T?1080:1920>T?1920:3e3>T?3e3:4320>T?4320:1960*lne(T/1960))-T,10h?16:h,fu===null)var T=!1;else{if(h=fu,fu=null,s1=0,dr&6)throw Error(r(331));var A=dr;for(dr|=4,et=h.current;et!==null;){var I=et,B=I.child;if(et.flags&16){var Z=I.deletions;if(Z!==null){for(var ne=0;nean()-y2?Xd(h,0):_2|=y),Xa(h,m)}function Y4(h,m){m===0&&(h.mode&1?(m=Sd,Sd<<=1,!(Sd&130023424)&&(Sd=4194304)):m=1);var y=Ia();h=$n(h,m),h!==null&&(Yc(h,m,y),Xa(h,y))}function pne(h){var m=h.memoizedState,y=0;m!==null&&(y=m.retryLane),Y4(h,y)}function mne(h,m){var y=0;switch(h.tag){case 13:var T=h.stateNode,A=h.memoizedState;A!==null&&(y=A.retryLane);break;case 19:T=h.stateNode;break;default:throw Error(r(314))}T!==null&&T.delete(m),Y4(h,y)}var V4;V4=function(h,m,y){if(h!==null)if(h.memoizedProps!==m.pendingProps||ca.current)Ga=!0;else{if(!(h.lanes&y)&&!(m.flags&128))return Ga=!1,rne(h,m,y);Ga=!!(h.flags&131072)}else Ga=!1,Lr&&m.flags&1048576&&jb(m,Hd,m.index);switch(m.lanes=0,m.tag){case 2:var T=m.type;e1(h,m),h=m.pendingProps;var A=iu(m,Bn.current);cu(m,y),A=Jk(null,m,T,h,A,y);var I=Zk();return m.flags|=1,typeof A=="object"&&A!==null&&typeof A.render=="function"&&A.$$typeof===void 0?(m.tag=1,m.memoizedState=null,m.updateQueue=null,Jn(T)?(I=!0,rp(m)):I=!1,m.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,Sg(m),A.updater=Kb,m.stateNode=A,A._reactInternals=m,n2(m,T,h,y),m=s2(null,m,T,!0,I,y)):(m.tag=0,Lr&&I&&hg(m),Pa(null,m,A,y),m=m.child),m;case 16:T=m.elementType;e:{switch(e1(h,m),h=m.pendingProps,A=T._init,T=A(T._payload),m.type=T,A=m.tag=gne(T),h=Uo(T,h),A){case 0:m=o2(null,m,T,h,y);break e;case 1:m=_4(null,m,T,h,y);break e;case 11:m=h4(null,m,T,h,y);break e;case 14:m=p4(null,m,T,Uo(T.type,h),y);break e}throw Error(r(306,T,""))}return m;case 0:return T=m.type,A=m.pendingProps,A=m.elementType===T?A:Uo(T,A),o2(h,m,T,A,y);case 1:return T=m.type,A=m.pendingProps,A=m.elementType===T?A:Uo(T,A),_4(h,m,T,A,y);case 3:e:{if(y4(m),h===null)throw Error(r(387));T=m.pendingProps,I=m.memoizedState,A=I.element,Gb(h,m),Ho(m,T,null,y);var B=m.memoizedState;if(T=B.element,I.isDehydrated)if(I={element:T,isDehydrated:!1,cache:B.cache,pendingSuspenseBoundaries:B.pendingSuspenseBoundaries,transitions:B.transitions},m.updateQueue.baseState=I,m.memoizedState=I,m.flags&256){A=hp(Error(r(423)),m),m=b4(h,m,T,y,A);break e}else if(T!==A){A=hp(Error(r(424)),m),m=b4(h,m,T,y,A);break e}else for($a=Ns(m.stateNode.containerInfo.firstChild),on=m,Lr=!0,Ci=null,y=Yb(m,null,T,y),m.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(jl(),T===A){m=Hl(h,m,y);break e}Pa(h,m,T,y)}m=m.child}return m;case 5:return he(m),h===null&&ip(m),T=m.type,A=m.pendingProps,I=h!==null?h.memoizedProps:null,B=A.children,sg(T,A)?B=null:I!==null&&sg(T,I)&&(m.flags|=32),g4(h,m),Pa(h,m,B,y),m.child;case 6:return h===null&&ip(m),null;case 13:return w4(h,m,y);case 4:return U(m,m.stateNode.containerInfo),T=m.pendingProps,h===null?m.child=su(m,null,T,y):Pa(h,m,T,y),m.child;case 11:return T=m.type,A=m.pendingProps,A=m.elementType===T?A:Uo(T,A),h4(h,m,T,A,y);case 7:return Pa(h,m,m.pendingProps,y),m.child;case 8:return Pa(h,m,m.pendingProps.children,y),m.child;case 12:return Pa(h,m,m.pendingProps.children,y),m.child;case 10:e:{if(T=m.type._context,A=m.pendingProps,I=m.memoizedProps,B=A.value,Or(cp,T._currentValue),T._currentValue=B,I!==null)if(wi(I.value,B)){if(I.children===A.children&&!ca.current){m=Hl(h,m,y);break e}}else for(I=m.child,I!==null&&(I.return=m);I!==null;){var Z=I.dependencies;if(Z!==null){B=I.child;for(var ne=Z.firstContext;ne!==null;){if(ne.context===T){if(I.tag===1){ne=Wo(-1,y&-y),ne.tag=2;var fe=I.updateQueue;if(fe!==null){fe=fe.shared;var Se=fe.pending;Se===null?ne.next=ne:(ne.next=Se.next,Se.next=ne),fe.pending=ne}}I.lanes|=y,ne=I.alternate,ne!==null&&(ne.lanes|=y),bg(I.return,y,m),Z.lanes|=y;break}ne=ne.next}}else if(I.tag===10)B=I.type===m.type?null:I.child;else if(I.tag===18){if(B=I.return,B===null)throw Error(r(341));B.lanes|=y,Z=B.alternate,Z!==null&&(Z.lanes|=y),bg(B,y,m),B=I.sibling}else B=I.child;if(B!==null)B.return=I;else for(B=I;B!==null;){if(B===m){B=null;break}if(I=B.sibling,I!==null){I.return=B.return,B=I;break}B=B.return}I=B}Pa(h,m,A.children,y),m=m.child}return m;case 9:return A=m.type,T=m.pendingProps.children,cu(m,y),A=Va(A),T=T(A),m.flags|=1,Pa(h,m,T,y),m.child;case 14:return T=m.type,A=Uo(T,m.pendingProps),A=Uo(T.type,A),p4(h,m,T,A,y);case 15:return m4(h,m,m.type,m.pendingProps,y);case 17:return T=m.type,A=m.pendingProps,A=m.elementType===T?A:Uo(T,A),e1(h,m),m.tag=1,Jn(T)?(h=!0,rp(m)):h=!1,cu(m,y),o4(m,T,A),n2(m,T,A,y),s2(null,m,T,!0,h,y);case 19:return x4(h,m,y);case 22:return v4(h,m,y)}throw Error(r(156,m.tag))};function G4(h,m){return Q0(h,m)}function vne(h,m,y,T){this.tag=h,this.key=y,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=m,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=T,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zi(h,m,y,T){return new vne(h,m,y,T)}function E2(h){return h=h.prototype,!(!h||!h.isReactComponent)}function gne(h){if(typeof h=="function")return E2(h)?1:0;if(h!=null){if(h=h.$$typeof,h===W)return 11;if(h===V)return 14}return 2}function mu(h,m){var y=h.alternate;return y===null?(y=Zi(h.tag,m,h.key,h.mode),y.elementType=h.elementType,y.type=h.type,y.stateNode=h.stateNode,y.alternate=h,h.alternate=y):(y.pendingProps=m,y.type=h.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=h.flags&14680064,y.childLanes=h.childLanes,y.lanes=h.lanes,y.child=h.child,y.memoizedProps=h.memoizedProps,y.memoizedState=h.memoizedState,y.updateQueue=h.updateQueue,m=h.dependencies,y.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},y.sibling=h.sibling,y.index=h.index,y.ref=h.ref,y}function d1(h,m,y,T,A,I){var B=2;if(T=h,typeof h=="function")E2(h)&&(B=1);else if(typeof h=="string")B=5;else e:switch(h){case O:return Zd(y.children,A,I,m);case R:B=8,A|=8;break;case L:return h=Zi(12,y,m,A|2),h.elementType=L,h.lanes=I,h;case j:return h=Zi(13,y,m,A),h.elementType=j,h.lanes=I,h;case Y:return h=Zi(19,y,m,A),h.elementType=Y,h.lanes=I,h;case ie:return f1(y,A,I,m);default:if(typeof h=="object"&&h!==null)switch(h.$$typeof){case $:B=10;break e;case N:B=9;break e;case W:B=11;break e;case V:B=14;break e;case J:B=16,T=null;break e}throw Error(r(130,h==null?h:typeof h,""))}return m=Zi(B,y,m,A),m.elementType=h,m.type=T,m.lanes=I,m}function Zd(h,m,y,T){return h=Zi(7,h,T,m),h.lanes=y,h}function f1(h,m,y,T){return h=Zi(22,h,T,m),h.elementType=ie,h.lanes=y,h.stateNode={isHidden:!1},h}function D2(h,m,y){return h=Zi(6,h,null,m),h.lanes=y,h}function M2(h,m,y){return m=Zi(4,h.children!==null?h.children:[],h.key,m),m.lanes=y,m.stateNode={containerInfo:h.containerInfo,pendingChildren:null,implementation:h.implementation},m}function _ne(h,m,y,T,A){this.tag=m,this.containerInfo=h,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Uc(0),this.expirationTimes=Uc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uc(0),this.identifierPrefix=T,this.onRecoverableError=A,this.mutableSourceEagerHydrationData=null}function O2(h,m,y,T,A,I,B,Z,ne){return h=new _ne(h,m,y,Z,ne),m===1?(m=1,I===!0&&(m|=8)):m=0,I=Zi(3,null,null,m),h.current=I,I.stateNode=h,I.memoizedState={element:T,isDehydrated:y,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sg(I),h}function yne(h,m,y){var T=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),L2.exports=Pne(),L2.exports}var sF;function Ine(){if(sF)return y1;sF=1;var t=eG();return y1.createRoot=t.createRoot,y1.hydrateRoot=t.hydrateRoot,y1}var Rne=Ine();const Br=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Vf="8.47.0",wr=globalThis;function oC(t,e,r){const n=r||wr,a=n.__SENTRY__=n.__SENTRY__||{},i=a[Vf]=a[Vf]||{};return i[t]||(i[t]=e())}const yh=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Lne="Sentry Logger ",CA=["debug","info","warn","error","log","assert","trace"],BS={};function bh(t){if(!("console"in wr))return t();const e=wr.console,r={},n=Object.keys(BS);n.forEach(a=>{const i=BS[a];r[a]=e[a],e[a]=i});try{return t()}finally{n.forEach(a=>{e[a]=r[a]})}}function Nne(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return yh?CA.forEach(r=>{e[r]=(...n)=>{t&&bh(()=>{wr.console[r](`${Lne}[${r}]:`,...n)})}}):CA.forEach(r=>{e[r]=()=>{}}),e}const It=oC("logger",Nne),tG=50,th="?",lF=/\(error: (.*)\)/,cF=/captureMessage|captureException/;function rG(...t){const e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,a=0)=>{const i=[],o=r.split(` -`);for(let s=n;s1024)continue;const c=lF.test(l)?l.replace(lF,"$1"):l;if(!c.match(/\S*Error: /)){for(const d of e){const u=d(c);if(u){i.push(u);break}}if(i.length>=tG+a)break}}return zne(i.slice(a))}}function Fne(t){return Array.isArray(t)?rG(...t):t}function zne(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(b1(e).function||"")&&e.pop(),e.reverse(),cF.test(b1(e).function||"")&&(e.pop(),cF.test(b1(e).function||"")&&e.pop()),e.slice(0,tG).map(r=>({...r,filename:r.filename||b1(e).filename,function:r.function||th}))}function b1(t){return t[t.length-1]||{}}const z2="";function Qu(t){try{return!t||typeof t!="function"?z2:t.name||z2}catch{return z2}}function uF(t){const e=t.exception;if(e){const r=[];try{return e.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch{return}}}const cS={},dF={};function wh(t,e){cS[t]=cS[t]||[],cS[t].push(e)}function Sh(t,e){if(!dF[t]){dF[t]=!0;try{e()}catch(r){yh&&It.error(`Error while instrumenting ${t}`,r)}}}function cs(t,e){const r=t&&cS[t];if(r)for(const n of r)try{n(e)}catch(a){yh&&It.error(`Error while triggering instrumentation handler. -Type: ${t} -Name: ${Qu(n)} -Error:`,a)}}let B2=null;function Bne(t){const e="error";wh(e,t),Sh(e,jne)}function jne(){B2=wr.onerror,wr.onerror=function(t,e,r,n,a){return cs("error",{column:n,error:a,line:r,msg:t,url:e}),B2?B2.apply(this,arguments):!1},wr.onerror.__SENTRY_INSTRUMENTED__=!0}let j2=null;function Wne(t){const e="unhandledrejection";wh(e,t),Sh(e,Hne)}function Hne(){j2=wr.onunhandledrejection,wr.onunhandledrejection=function(t){return cs("unhandledrejection",t),j2?j2.apply(this,arguments):!0},wr.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function sC(){return DR(wr),wr}function DR(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Vf,e[Vf]=e[Vf]||{}}const nG=Object.prototype.toString;function MR(t){switch(nG.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return rh(t,Error)}}function fv(t,e){return nG.call(t)===`[object ${e}]`}function aG(t){return fv(t,"ErrorEvent")}function fF(t){return fv(t,"DOMError")}function Une(t){return fv(t,"DOMException")}function vc(t){return fv(t,"String")}function OR(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function $R(t){return t===null||OR(t)||typeof t!="object"&&typeof t!="function"}function Ym(t){return fv(t,"Object")}function lC(t){return typeof Event<"u"&&rh(t,Event)}function Yne(t){return typeof Element<"u"&&rh(t,Element)}function Vne(t){return fv(t,"RegExp")}function cC(t){return!!(t&&t.then&&typeof t.then=="function")}function Gne(t){return Ym(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function rh(t,e){try{return t instanceof e}catch{return!1}}function iG(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}const AR=wr,qne=80;function oG(t,e={}){if(!t)return"";try{let r=t;const n=5,a=[];let i=0,o=0;const s=" > ",l=s.length;let c;const d=Array.isArray(e)?e:e.keyAttrs,u=!Array.isArray(e)&&e.maxStringLength||qne;for(;r&&i++1&&o+a.length*l+c.length>=u));)a.push(c),o+=c.length,r=r.parentNode;return a.reverse().join(s)}catch{return""}}function Xne(t,e){const r=t,n=[];if(!r||!r.tagName)return"";if(AR.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const a=e&&e.length?e.filter(o=>r.getAttribute(o)).map(o=>[o,r.getAttribute(o)]):null;if(a&&a.length)a.forEach(o=>{n.push(`[${o[0]}="${o[1]}"]`)});else{r.id&&n.push(`#${r.id}`);const o=r.className;if(o&&vc(o)){const s=o.split(/\s+/);for(const l of s)n.push(`.${l}`)}}const i=["aria-label","type","name","title","alt"];for(const o of i){const s=r.getAttribute(o);s&&n.push(`[${o}="${s}"]`)}return n.join("")}function Jne(){try{return AR.document.location.href}catch{return""}}function Zne(t){if(!AR.HTMLElement)return null;let e=t;const r=5;for(let n=0;nKne(t,n,r))}function Pi(t,e,r){if(!(e in t))return;const n=t[e],a=r(n);typeof a=="function"&&sG(a,n);try{t[e]=a}catch{yh&&It.log(`Failed to replace method "${e}" in object`,t)}}function nh(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{yh&&It.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function sG(t,e){try{const r=e.prototype||{};t.prototype=e.prototype=r,nh(t,"__sentry_original__",e)}catch{}}function PR(t){return t.__sentry_original__}function lG(t){if(MR(t))return{message:t.message,name:t.name,stack:t.stack,...mF(t)};if(lC(t)){const e={type:t.type,target:pF(t.target),currentTarget:pF(t.currentTarget),...mF(t)};return typeof CustomEvent<"u"&&rh(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function pF(t){try{return Yne(t)?oG(t):Object.prototype.toString.call(t)}catch{return""}}function mF(t){if(typeof t=="object"&&t!==null){const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function Qne(t,e=40){const r=Object.keys(lG(t));r.sort();const n=r[0];if(!n)return"[object has no keys]";if(n.length>=e)return Om(n,e);for(let a=r.length;a>0;a--){const i=r.slice(0,a).join(", ");if(!(i.length>e))return a===r.length?i:Om(i,e)}return""}function vo(t){return TA(t,new Map)}function TA(t,e){if(eae(t)){const r=e.get(t);if(r!==void 0)return r;const n={};e.set(t,n);for(const a of Object.getOwnPropertyNames(t))typeof t[a]<"u"&&(n[a]=TA(t[a],e));return n}if(Array.isArray(t)){const r=e.get(t);if(r!==void 0)return r;const n=[];return e.set(t,n),t.forEach(a=>{n.push(TA(a,e))}),n}return t}function eae(t){if(!Ym(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}const cG=1e3;function o0(){return Date.now()/cG}function tae(){const{performance:t}=wr;if(!t||!t.now)return o0;const e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/cG}const gc=tae();(()=>{const{performance:t}=wr;if(!t||!t.now)return;const e=3600*1e3,r=t.now(),n=Date.now(),a=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,i=aMath.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function uG(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Au(t){const{message:e,event_id:r}=t;if(e)return e;const n=uG(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function kA(t,e,r){const n=t.exception=t.exception||{},a=n.values=n.values||[],i=a[0]=a[0]||{};i.value||(i.value=e||""),i.type||(i.type="Error")}function Vm(t,e){const r=uG(t);if(!r)return;const n={type:"generic",handled:!0},a=r.mechanism;if(r.mechanism={...n,...a,...e},e&&"data"in e){const i={...a&&a.data,...e.data};r.mechanism.data=i}}function vF(t){if(rae(t))return!0;try{nh(t,"__sentry_captured__",!0)}catch{}return!1}function rae(t){try{return t.__sentry_captured__}catch{}}var nc;(function(t){t[t.PENDING=0]="PENDING";const r=1;t[t.RESOLVED=r]="RESOLVED";const n=2;t[t.REJECTED=n]="REJECTED"})(nc||(nc={}));function ah(t){return new lo(e=>{e(t)})}function jS(t){return new lo((e,r)=>{r(t)})}class lo{constructor(e){lo.prototype.__init.call(this),lo.prototype.__init2.call(this),lo.prototype.__init3.call(this),lo.prototype.__init4.call(this),this._state=nc.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new lo((n,a)=>{this._handlers.push([!1,i=>{if(!e)n(i);else try{n(e(i))}catch(o){a(o)}},i=>{if(!r)a(i);else try{n(r(i))}catch(o){a(o)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new lo((r,n)=>{let a,i;return this.then(o=>{i=!1,a=o,e&&e()},o=>{i=!0,a=o,e&&e()}).then(()=>{if(i){n(a);return}r(a)})})}__init(){this._resolve=e=>{this._setResult(nc.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(nc.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===nc.PENDING){if(cC(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===nc.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===nc.RESOLVED&&r[1](this._value),this._state===nc.REJECTED&&r[2](this._value),r[0]=!0)})}}}function nae(t){const e=gc(),r={sid:go(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>iae(r)};return Gm(r,t),r}function Gm(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||gc(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:go()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function aae(t,e){let r={};t.status==="ok"&&(r={status:"exited"}),Gm(t,r)}function iae(t){return vo({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}function gF(){return go()}function EA(){return go().substring(16)}function dC(t,e,r=2){if(!e||typeof e!="object"||r<=0)return e;if(t&&e&&Object.keys(e).length===0)return t;const n={...t};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=dC(n[a],e[a],r-1));return n}const DA="_sentrySpan";function _F(t,e){e?nh(t,DA,e):delete t[DA]}function yF(t){return t[DA]}const oae=100;class IR{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:gF(),spanId:EA()}}clone(){const e=new IR;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,_F(e,yF(this)),e}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&&Gm(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},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,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const r=typeof e=="function"?e(this):e,[n,a]=r instanceof ih?[r.getScopeData(),r.getRequestSession()]:Ym(r)?[e,e.requestSession]:[],{tags:i,extra:o,user:s,contexts:l,level:c,fingerprint:d=[],propagationContext:u}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...l},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),d.length&&(this._fingerprint=d),u&&(this._propagationContext=u),a&&(this._requestSession=a),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,_F(this,void 0),this._attachments=[],this.setPropagationContext({traceId:gF()}),this._notifyScopeListeners(),this}addBreadcrumb(e,r){const n=typeof r=="number"?r:oae;if(n<=0)return this;const a={timestamp:o0(),...e},i=this._breadcrumbs;return i.push(a),this._breadcrumbs=i.length>n?i.slice(-n):i,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,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:yF(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=dC(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:EA(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,r){const n=r&&r.event_id?r.event_id:go();if(!this._client)return It.warn("No client configured on scope - will not capture exception!"),n;const a=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:a,...r,event_id:n},this),n}captureMessage(e,r,n){const a=n&&n.event_id?n.event_id:go();if(!this._client)return It.warn("No client configured on scope - will not capture message!"),a;const i=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:i,...n,event_id:a},this),a}captureEvent(e,r){const n=r&&r.event_id?r.event_id:go();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(It.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}const ih=IR;function sae(){return oC("defaultCurrentScope",()=>new ih)}function lae(){return oC("defaultIsolationScope",()=>new ih)}class cae{constructor(e,r){let n;e?n=e:n=new ih;let a;r?a=r:a=new ih,this._stack=[{scope:n}],this._isolationScope=a}withScope(e){const r=this._pushScope();let n;try{n=e(r)}catch(a){throw this._popScope(),a}return cC(n)?n.then(a=>(this._popScope(),a),a=>{throw this._popScope(),a}):(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(){const 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 qm(){const t=sC(),e=DR(t);return e.stack=e.stack||new cae(sae(),lae())}function uae(t){return qm().withScope(t)}function dae(t,e){const r=qm();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function bF(t){return qm().withScope(()=>t(qm().getIsolationScope()))}function fae(){return{withIsolationScope:bF,withScope:uae,withSetScope:dae,withSetIsolationScope:(t,e)=>bF(e),getCurrentScope:()=>qm().getScope(),getIsolationScope:()=>qm().getIsolationScope()}}function RR(t){const e=DR(t);return e.acs?e.acs:fae()}function $c(){const t=sC();return RR(t).getCurrentScope()}function s0(){const t=sC();return RR(t).getIsolationScope()}function hae(){return oC("globalScope",()=>new ih)}function pae(...t){const e=sC(),r=RR(e);if(t.length===2){const[n,a]=t;return n?r.withSetScope(n,a):r.withScope(a)}return r.withScope(t[0])}function Ma(){return $c().getClient()}function mae(t){const e=t.getPropagationContext(),{traceId:r,spanId:n,parentSpanId:a}=e;return vo({trace_id:r,span_id:n,parent_span_id:a})}const vae="_sentryMetrics";function gae(t){const e=t[vae];if(!e)return;const r={};for(const[,[n,a]]of e)(r[n]||(r[n]=[])).push(vo(a));return r}const _ae="sentry.source",yae="sentry.sample_rate",bae="sentry.op",wae="sentry.origin",Sae=0,xae=1,Cae="sentry-",Tae=/^sentry-/;function kae(t){const e=Eae(t);if(!e)return;const r=Object.entries(e).reduce((n,[a,i])=>{if(a.match(Tae)){const o=a.slice(Cae.length);n[o]=i}return n},{});if(Object.keys(r).length>0)return r}function Eae(t){if(!(!t||!vc(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,r)=>{const n=wF(r);return Object.entries(n).forEach(([a,i])=>{e[a]=i}),e},{}):wF(t)}function wF(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(r&&n&&(e[r]=n),e),{})}const Dae=1;let SF=!1;function Mae(t){const{spanId:e,traceId:r,isRemote:n}=t.spanContext(),a=n?e:LR(t).parent_span_id,i=n?EA():e;return vo({parent_span_id:a,span_id:i,trace_id:r})}function xF(t){return typeof t=="number"?CF(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?CF(t.getTime()):gc()}function CF(t){return t>9999999999?t/1e3:t}function LR(t){if($ae(t))return t.getSpanJSON();try{const{spanId:e,traceId:r}=t.spanContext();if(Oae(t)){const{attributes:n,startTime:a,name:i,endTime:o,parentSpanId:s,status:l}=t;return vo({span_id:e,trace_id:r,data:n,description:i,parent_span_id:s,start_timestamp:xF(a),timestamp:xF(o)||void 0,status:Pae(l),op:n[bae],origin:n[wae],_metrics_summary:gae(t)})}return{span_id:e,trace_id:r}}catch{return{}}}function Oae(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function $ae(t){return typeof t.getSpanJSON=="function"}function Aae(t){const{traceFlags:e}=t.spanContext();return e===Dae}function Pae(t){if(!(!t||t.code===Sae))return t.code===xae?"ok":t.message||"unknown_error"}const Iae="_sentryRootSpan";function dG(t){return t[Iae]||t}function Rae(){SF||(bh(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),SF=!0)}function Lae(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=Ma(),r=e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}const NR="production",Nae="_frozenDsc";function fG(t,e){const r=e.getOptions(),{publicKey:n}=e.getDsn()||{},a=vo({environment:r.environment||NR,release:r.release,public_key:n,trace_id:t});return e.emit("createDsc",a),a}function Fae(t,e){const r=e.getPropagationContext();return r.dsc||fG(r.traceId,t)}function zae(t){const e=Ma();if(!e)return{};const r=dG(t),n=r[Nae];if(n)return n;const a=r.spanContext().traceState,i=a&&a.get("sentry.dsc"),o=i&&kae(i);if(o)return o;const s=fG(t.spanContext().traceId,e),l=LR(r),c=l.data||{},d=c[yae];d!=null&&(s.sample_rate=`${d}`);const u=c[_ae],f=l.description;return u!=="url"&&f&&(s.transaction=f),Lae()&&(s.sampled=String(Aae(r))),e.emit("createDsc",s,r),s}function Bae(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>1){Br&&It.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}const jae=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Wae(t){return t==="http"||t==="https"}function fC(t,e=!1){const{host:r,path:n,pass:a,port:i,projectId:o,protocol:s,publicKey:l}=t;return`${s}://${l}${e&&a?`:${a}`:""}@${r}${i?`:${i}`:""}/${n&&`${n}/`}${o}`}function Hae(t){const e=jae.exec(t);if(!e){bh(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[r,n,a="",i="",o="",s=""]=e.slice(1);let l="",c=s;const d=c.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),c=d.pop()),c){const u=c.match(/^\d+/);u&&(c=u[0])}return hG({host:i,pass:a,path:l,projectId:c,port:o,protocol:r,publicKey:n})}function hG(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Uae(t){if(!yh)return!0;const{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(o=>t[o]?!1:(It.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:r.match(/^\d+$/)?Wae(n)?e&&isNaN(parseInt(e,10))?(It.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(It.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(It.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function Yae(t){const e=typeof t=="string"?Hae(t):hG(t);if(!(!e||!Uae(e)))return e}function Vae(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(a){if(t)return e.has(a)?!0:(e.add(a),!1);for(let i=0;ir?pG(t,e-1,r):n}function MA(t,e,r=1/0,n=1/0,a=Vae()){const[i,o]=a;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const s=Gae(t,e);if(!s.startsWith("[object "))return s;if(e.__sentry_skip_normalization__)return e;const l=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(l===0)return s.replace("object ","");if(i(e))return"[Circular ~]";const c=e;if(c&&typeof c.toJSON=="function")try{const p=c.toJSON();return MA("",p,l-1,n,a)}catch{}const d=Array.isArray(e)?[]:{};let u=0;const f=lG(e);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(u>=n){d[p]="[MaxProperties ~]";break}const v=f[p];d[p]=MA(p,v,l-1,n,a),u++}return o(e),d}function Gae(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(iG(e))return"[VueViewModel]";if(Gne(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Qu(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const r=qae(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function qae(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function Xae(t){return~-encodeURI(t).split(/%..|./).length}function Jae(t){return Xae(JSON.stringify(t))}function l0(t,e=[]){return[t,e]}function Zae(t,e){const[r,n]=t;return[r,[...n,e]]}function TF(t,e){const r=t[1];for(const n of r){const a=n[0].type;if(e(n,a))return!0}return!1}function OA(t){return wr.__SENTRY__&&wr.__SENTRY__.encodePolyfill?wr.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function Kae(t){const[e,r]=t;let n=JSON.stringify(e);function a(i){typeof n=="string"?n=typeof i=="string"?n+i:[OA(n),i]:n.push(typeof i=="string"?OA(i):i)}for(const i of r){const[o,s]=i;if(a(` -${JSON.stringify(o)} -`),typeof s=="string"||s instanceof Uint8Array)a(s);else{let l;try{l=JSON.stringify(s)}catch{l=JSON.stringify(ac(s))}a(l)}}return typeof n=="string"?n:Qae(n)}function Qae(t){const e=t.reduce((a,i)=>a+i.length,0),r=new Uint8Array(e);let n=0;for(const a of t)r.set(a,n),n+=a.length;return r}function eie(t){const e=typeof t.data=="string"?OA(t.data):t.data;return[vo({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const tie={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function kF(t){return tie[t]}function mG(t){if(!t||!t.sdk)return;const{name:e,version:r}=t.sdk;return{name:e,version:r}}function rie(t,e,r,n){const a=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:fC(n)},...a&&{trace:vo({...a})}}}function nie(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function aie(t,e,r,n){const a=mG(r),i={sent_at:new Date().toISOString(),...a&&{sdk:a},...!!n&&e&&{dsn:fC(e)}},o="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return l0(i,[o])}function iie(t,e,r,n){const a=mG(r),i=t.type&&t.type!=="replay_event"?t.type:"event";nie(t,r&&r.sdk);const o=rie(t,a,n,e);return delete t.sdkProcessingMetadata,l0(o,[[{type:i},t]])}function $A(t,e,r,n=0){return new lo((a,i)=>{const o=t[n];if(e===null||typeof o!="function")a(e);else{const s=o({...e},r);Br&&o.id&&s===null&&It.log(`Event processor "${o.id}" dropped event`),cC(s)?s.then(l=>$A(t,l,r,n+1).then(a)).then(null,i):$A(t,s,r,n+1).then(a).then(null,i)}})}let w1,EF,S1;function oie(t){const e=wr._sentryDebugIds;if(!e)return{};const r=Object.keys(e);return S1&&r.length===EF||(EF=r.length,S1=r.reduce((n,a)=>{w1||(w1={});const i=w1[a];if(i)n[i[0]]=i[1];else{const o=t(a);for(let s=o.length-1;s>=0;s--){const l=o[s],c=l&&l.filename,d=e[a];if(c&&d){n[c]=d,w1[a]=[c,d];break}}}return n},{})),S1}function sie(t,e){const{fingerprint:r,span:n,breadcrumbs:a,sdkProcessingMetadata:i}=e;lie(t,e),n&&die(t,n),fie(t,r),cie(t,a),uie(t,i)}function DF(t,e){const{extra:r,tags:n,user:a,contexts:i,level:o,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:d,attachments:u,propagationContext:f,transactionName:p,span:v}=e;x1(t,"extra",r),x1(t,"tags",n),x1(t,"user",a),x1(t,"contexts",i),t.sdkProcessingMetadata=dC(t.sdkProcessingMetadata,s,2),o&&(t.level=o),p&&(t.transactionName=p),v&&(t.span=v),l.length&&(t.breadcrumbs=[...t.breadcrumbs,...l]),c.length&&(t.fingerprint=[...t.fingerprint,...c]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),u.length&&(t.attachments=[...t.attachments,...u]),t.propagationContext={...t.propagationContext,...f}}function x1(t,e,r){t[e]=dC(t[e],r,1)}function lie(t,e){const{extra:r,tags:n,user:a,contexts:i,level:o,transactionName:s}=e,l=vo(r);l&&Object.keys(l).length&&(t.extra={...l,...t.extra});const c=vo(n);c&&Object.keys(c).length&&(t.tags={...c,...t.tags});const d=vo(a);d&&Object.keys(d).length&&(t.user={...d,...t.user});const u=vo(i);u&&Object.keys(u).length&&(t.contexts={...u,...t.contexts}),o&&(t.level=o),s&&t.type!=="transaction"&&(t.transaction=s)}function cie(t,e){const r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function uie(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function die(t,e){t.contexts={trace:Mae(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:zae(e),...t.sdkProcessingMetadata};const r=dG(e),n=LR(r).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function fie(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function hie(t,e,r,n,a,i){const{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=t,l={...e,event_id:e.event_id||r.event_id||go(),timestamp:e.timestamp||o0()},c=r.integrations||t.integrations.map(_=>_.name);pie(l,t),gie(l,c),a&&a.emit("applyFrameMetadata",e),e.type===void 0&&mie(l,t.stackParser);const d=yie(n,r.captureContext);r.mechanism&&Vm(l,r.mechanism);const u=a?a.getEventProcessors():[],f=hae().getScopeData();if(i){const _=i.getScopeData();DF(f,_)}if(d){const _=d.getScopeData();DF(f,_)}const p=[...r.attachments||[],...f.attachments];p.length&&(r.attachments=p),sie(l,f);const v=[...u,...f.eventProcessors];return $A(v,l,r).then(_=>(_&&vie(_),typeof o=="number"&&o>0?_ie(_,o,s):_))}function pie(t,e){const{environment:r,release:n,dist:a,maxValueLength:i=250}=e;t.environment=t.environment||r||NR,!t.release&&n&&(t.release=n),!t.dist&&a&&(t.dist=a),t.message&&(t.message=Om(t.message,i));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=Om(o.value,i));const s=t.request;s&&s.url&&(s.url=Om(s.url,i))}function mie(t,e){const r=oie(e);try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(a=>{r&&a.filename&&(a.debug_id=r[a.filename])})})}catch{}}function vie(t){const e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(a=>{a.debug_id&&(a.abs_path?e[a.abs_path]=a.debug_id:a.filename&&(e[a.filename]=a.debug_id),delete a.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const r=t.debug_meta.images;Object.entries(e).forEach(([n,a])=>{r.push({type:"sourcemap",code_file:n,debug_id:a})})}function gie(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function _ie(t,e,r){if(!t)return null;const n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(a=>({...a,...a.data&&{data:ac(a.data,e,r)}}))},...t.user&&{user:ac(t.user,e,r)},...t.contexts&&{contexts:ac(t.contexts,e,r)},...t.extra&&{extra:ac(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=ac(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(a=>({...a,...a.data&&{data:ac(a.data,e,r)}}))),t.contexts&&t.contexts.flags&&n.contexts&&(n.contexts.flags=ac(t.contexts.flags,3,r)),n}function yie(t,e){if(!e)return t;const r=t?t.clone():new ih;return r.update(e),r}function bie(t,e){return $c().captureException(t,void 0)}function vG(t,e){return $c().captureEvent(t,e)}function MF(t){const e=Ma(),r=s0(),n=$c(),{release:a,environment:i=NR}=e&&e.getOptions()||{},{userAgent:o}=wr.navigator||{},s=nae({release:a,environment:i,user:n.getUser()||r.getUser(),...o&&{userAgent:o},...t}),l=r.getSession();return l&&l.status==="ok"&&Gm(l,{status:"exited"}),gG(),r.setSession(s),n.setSession(s),s}function gG(){const t=s0(),e=$c(),r=e.getSession()||t.getSession();r&&aae(r),_G(),t.setSession(),e.setSession()}function _G(){const t=s0(),e=$c(),r=Ma(),n=e.getSession()||t.getSession();n&&r&&r.captureSession(n)}function OF(t=!1){if(t){gG();return}_G()}const wie="7";function Sie(t){const e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function xie(t){return`${Sie(t)}${t.projectId}/envelope/`}function Cie(t,e){const r={sentry_version:wie};return t.publicKey&&(r.sentry_key=t.publicKey),e&&(r.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(r).toString()}function Tie(t,e,r){return e||`${xie(t)}?${Cie(t,r)}`}const $F=[];function kie(t){const e={};return t.forEach(r=>{const{name:n}=r,a=e[n];a&&!a.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.values(e)}function Eie(t){const e=t.defaultIntegrations||[],r=t.integrations;e.forEach(o=>{o.isDefaultInstance=!0});let n;if(Array.isArray(r))n=[...e,...r];else if(typeof r=="function"){const o=r(e);n=Array.isArray(o)?o:[o]}else n=e;const a=kie(n),i=a.findIndex(o=>o.name==="Debug");if(i>-1){const[o]=a.splice(i,1);a.push(o)}return a}function Die(t,e){const r={};return e.forEach(n=>{n&&yG(t,n,r)}),r}function AF(t,e){for(const r of e)r&&r.afterAllSetup&&r.afterAllSetup(t)}function yG(t,e,r){if(r[e.name]){Br&&It.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,$F.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),$F.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(a,i)=>n(a,i,t))}if(typeof e.processEvent=="function"){const n=e.processEvent.bind(e),a=Object.assign((i,o)=>n(i,o,t),{id:e.name});t.addEventProcessor(a)}Br&&It.log(`Integration installed: ${e.name}`)}function Mie(t,e,r){const n=[{type:"client_report"},{timestamp:o0(),discarded_events:t}];return l0(e?{dsn:e}:{},[n])}class ol extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}}const PF="Not capturing exception because it's already been captured.";class Oie{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Yae(e.dsn):Br&&It.warn("No DSN provided, client will not send events."),this._dsn){const a=Tie(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:a})}const n=["enableTracing","tracesSampleRate","tracesSampler"].find(a=>a in e&&e[a]==null);n&&bh(()=>{console.warn(`[Sentry] Deprecation warning: \`${n}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,r,n){const a=go();if(vF(e))return Br&&It.log(PF),a;const i={event_id:a,...r};return this._process(this.eventFromException(e,i).then(o=>this._captureEvent(o,i,n))),i.event_id}captureMessage(e,r,n,a){const i={event_id:go(),...n},o=OR(e)?e:String(e),s=$R(e)?this.eventFromMessage(o,r,i):this.eventFromException(e,i);return this._process(s.then(l=>this._captureEvent(l,i,a))),i.event_id}captureEvent(e,r,n){const a=go();if(r&&r.originalException&&vF(r.originalException))return Br&&It.log(PF),a;const i={event_id:a,...r},s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,s||n)),i.event_id}captureSession(e){typeof e.release!="string"?Br&&It.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Gm(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>r.flush(e).then(a=>n&&a))):ah(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}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]}addIntegration(e){const r=this._integrations[e.name];yG(this,e,this._integrations),r||AF(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=iie(e,this._dsn,this._options._metadata,this._options.tunnel);for(const i of r.attachments||[])n=Zae(n,eie(i));const a=this.sendEnvelope(n);a&&a.then(i=>this.emit("afterSendEvent",e,i),null)}sendSession(e){const r=aie(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){const a=typeof n=="number"?n:1,i=`${e}:${r}`;Br&&It.log(`Recording outcome: "${i}"${a>1?` (${a} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+a}}on(e,r){const n=this._hooks[e]=this._hooks[e]||[];return n.push(r),()=>{const a=n.indexOf(r);a>-1&&n.splice(a,1)}}emit(e,...r){const n=this._hooks[e];n&&n.forEach(a=>a(...r))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,r=>(Br&&It.error("Error while sending envelope:",r),r)):(Br&&It.error("Transport disabled"),ah({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=Die(this,e),AF(this,e)}_updateSessionFromEvent(e,r){let n=!1,a=!1;const i=r.exception&&r.exception.values;if(i){a=!0;for(const l of i){const c=l.mechanism;if(c&&c.handled===!1){n=!0;break}}}const o=e.status==="ok";(o&&e.errors===0||o&&n)&&(Gm(e,{...n&&{status:"crashed"},errors:e.errors||Number(a||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new lo(r=>{let n=0;const a=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),r(!0)):(n+=a,e&&n>=e&&(clearInterval(i),r(!1)))},a)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n=$c(),a=s0()){const i=this.getOptions(),o=Object.keys(this._integrations);return!r.integrations&&o.length>0&&(r.integrations=o),this.emit("preprocessEvent",e,r),e.type||a.setLastEventId(e.event_id||r.event_id),hie(i,e,r,n,this,a).then(s=>{if(s===null)return s;s.contexts={trace:mae(n),...s.contexts};const l=Fae(this,n);return s.sdkProcessingMetadata={dynamicSamplingContext:l,...s.sdkProcessingMetadata},s})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(a=>a.event_id,a=>{if(Br){const i=a;i.logLevel==="log"?It.log(i.message):It.warn(i)}})}_processEvent(e,r,n){const a=this.getOptions(),{sampleRate:i}=a,o=wG(e),s=bG(e),l=e.type||"error",c=`before send for type \`${l}\``,d=typeof i>"u"?void 0:Bae(i);if(s&&typeof d=="number"&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error",e),jS(new ol(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const u=l==="replay_event"?"replay":l,p=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,r,n,p).then(v=>{if(v===null)throw this.recordDroppedEvent("event_processor",u,e),new ol("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return v;const _=Aie(this,a,v,r);return $ie(_,c)}).then(v=>{if(v===null){if(this.recordDroppedEvent("before_send",u,e),o){const w=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",w)}throw new ol(`${c} returned \`null\`, will not send event.`,"log")}const g=n&&n.getSession();if(!o&&g&&this._updateSessionFromEvent(g,v),o){const b=v.sdkProcessingMetadata&&v.sdkProcessingMetadata.spanCountBeforeProcessing||0,w=v.spans?v.spans.length:0,x=b-w;x>0&&this.recordDroppedEvent("before_send","span",x)}const _=v.transaction_info;if(o&&_&&v.transaction!==e.transaction){const b="custom";v.transaction_info={..._,source:b}}return this.sendEvent(v,r),v}).then(null,v=>{throw v instanceof ol?v:(this.captureException(v,{data:{__sentry__:!0},originalException:v}),new ol(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${v}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([r,n])=>{const[a,i]=r.split(":");return{reason:a,category:i,quantity:n}})}_flushOutcomes(){Br&&It.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){Br&&It.log("No outcomes to send");return}if(!this._dsn){Br&&It.log("No dsn provided, will not send outcomes");return}Br&&It.log("Sending outcomes:",e);const r=Mie(e,this._options.tunnel&&fC(this._dsn));this.sendEnvelope(r)}}function $ie(t,e){const r=`${e} must return \`null\` or a valid event.`;if(cC(t))return t.then(n=>{if(!Ym(n)&&n!==null)throw new ol(r);return n},n=>{throw new ol(`${e} rejected with ${n}`)});if(!Ym(t)&&t!==null)throw new ol(r);return t}function Aie(t,e,r,n){const{beforeSend:a,beforeSendTransaction:i,beforeSendSpan:o}=e;if(bG(r)&&a)return a(r,n);if(wG(r)){if(r.spans&&o){const s=[];for(const l of r.spans){const c=o(l);c?s.push(c):(Rae(),t.recordDroppedEvent("before_send","span"))}r.spans=s}if(i){if(r.spans){const s=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:s}}return i(r,n)}}return r}function bG(t){return t.type===void 0}function wG(t){return t.type==="transaction"}function Pie(t,e){e.debug===!0&&(Br?It.enable():bh(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),$c().update(e.initialScope);const n=new t(e);return Iie(n),n.init(),n}function Iie(t){$c().setClient(t)}function Rie(t){const e=[];function r(){return t===void 0||e.lengthn(s)).then(null,()=>n(s).then(null,()=>{})),s}function i(o){return new lo((s,l)=>{let c=e.length;if(!c)return s(!0);const d=setTimeout(()=>{o&&o>0&&s(!1)},o);e.forEach(u=>{ah(u).then(()=>{--c||(clearTimeout(d),s(!0))},l)})})}return{$:e,add:a,drain:i}}const Lie=60*1e3;function Nie(t,e=Date.now()){const r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;const n=Date.parse(`${t}`);return isNaN(n)?Lie:n-e}function Fie(t,e){return t[e]||t.all||0}function zie(t,e,r=Date.now()){return Fie(t,e)>r}function Bie(t,{statusCode:e,headers:r},n=Date.now()){const a={...t},i=r&&r["x-sentry-rate-limits"],o=r&&r["retry-after"];if(i)for(const s of i.trim().split(",")){const[l,c,,,d]=s.split(":",5),u=parseInt(l,10),f=(isNaN(u)?60:u)*1e3;if(!c)a.all=n+f;else for(const p of c.split(";"))p==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(a[p]=n+f):a[p]=n+f}else o?a.all=n+Nie(o,n):e===429&&(a.all=n+60*1e3);return a}const jie=64;function Wie(t,e,r=Rie(t.bufferSize||jie)){let n={};const a=o=>r.drain(o);function i(o){const s=[];if(TF(o,(u,f)=>{const p=kF(f);if(zie(n,p)){const v=IF(u,f);t.recordDroppedEvent("ratelimit_backoff",p,v)}else s.push(u)}),s.length===0)return ah({});const l=l0(o[0],s),c=u=>{TF(l,(f,p)=>{const v=IF(f,p);t.recordDroppedEvent(u,kF(p),v)})},d=()=>e({body:Kae(l)}).then(u=>(u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&Br&&It.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),n=Bie(n,u),u),u=>{throw c("network_error"),u});return r.add(d).then(u=>u,u=>{if(u instanceof ol)return Br&&It.error("Skipped sending event because buffer is full."),c("queue_overflow"),ah({});throw u})}return{send:i,flush:a}}function IF(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}function Hie(t,e,r=[e],n="npm"){const a=t._metadata||{};a.sdk||(a.sdk={name:`sentry.javascript.${e}`,packages:r.map(i=>({name:`${n}:@sentry/${i}`,version:Vf})),version:Vf}),t._metadata=a}const Uie=100;function oh(t,e){const r=Ma(),n=s0();if(!r)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:i=Uie}=r.getOptions();if(i<=0)return;const s={timestamp:o0(),...t},l=a?bh(()=>a(s,e)):s;l!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",l,e),n.addBreadcrumb(l,i))}let RF;const Yie="FunctionToString",LF=new WeakMap,Vie=()=>({name:Yie,setupOnce(){RF=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=PR(this),r=LF.has(Ma())&&e!==void 0?e:this;return RF.apply(r,t)}}catch{}},setup(t){LF.set(t,!0)}}),Gie=Vie,qie=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],Xie="InboundFilters",Jie=(t={})=>({name:Xie,processEvent(e,r,n){const a=n.getOptions(),i=Kie(t,a);return Qie(e,i)?null:e}}),Zie=Jie;function Kie(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:qie],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function Qie(t,e){return e.ignoreInternal&&ioe(t)?(Br&&It.warn(`Event dropped due to being internal Sentry Error. -Event: ${Au(t)}`),!0):eoe(t,e.ignoreErrors)?(Br&&It.warn(`Event dropped due to being matched by \`ignoreErrors\` option. -Event: ${Au(t)}`),!0):soe(t)?(Br&&It.warn(`Event dropped due to not having an error message, error type or stacktrace. -Event: ${Au(t)}`),!0):toe(t,e.ignoreTransactions)?(Br&&It.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. -Event: ${Au(t)}`),!0):roe(t,e.denyUrls)?(Br&&It.warn(`Event dropped due to being matched by \`denyUrls\` option. -Event: ${Au(t)}. -Url: ${WS(t)}`),!0):noe(t,e.allowUrls)?!1:(Br&&It.warn(`Event dropped due to not being matched by \`allowUrls\` option. -Event: ${Au(t)}. -Url: ${WS(t)}`),!0)}function eoe(t,e){return t.type||!e||!e.length?!1:aoe(t).some(r=>uC(r,e))}function toe(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const r=t.transaction;return r?uC(r,e):!1}function roe(t,e){if(!e||!e.length)return!1;const r=WS(t);return r?uC(r,e):!1}function noe(t,e){if(!e||!e.length)return!0;const r=WS(t);return r?uC(r,e):!0}function aoe(t){const e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch{}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),e}function ioe(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function ooe(t=[]){for(let e=t.length-1;e>=0;e--){const r=t[e];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function WS(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?ooe(e):null}catch{return Br&&It.error(`Cannot extract url for event ${Au(t)}`),null}}function soe(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}function loe(t,e,r=250,n,a,i,o){if(!i.exception||!i.exception.values||!o||!rh(o.originalException,Error))return;const s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=coe(AA(t,e,a,o.originalException,n,i.exception.values,s,0),r))}function AA(t,e,r,n,a,i,o,s){if(i.length>=r+1)return i;let l=[...i];if(rh(n[a],Error)){NF(o,s);const c=t(e,n[a]),d=l.length;FF(c,a,d,s),l=AA(t,e,r,n[a],a,[c,...l],c,d)}return Array.isArray(n.errors)&&n.errors.forEach((c,d)=>{if(rh(c,Error)){NF(o,s);const u=t(e,c),f=l.length;FF(u,`errors[${d}]`,f,s),l=AA(t,e,r,c,a,[u,...l],u,f)}}),l}function NF(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function FF(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function coe(t,e){return t.map(r=>(r.value&&(r.value=Om(r.value,e)),r))}function W2(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}function uoe(t){const e="console";wh(e,t),Sh(e,doe)}function doe(){"console"in wr&&CA.forEach(function(t){t in wr.console&&Pi(wr.console,t,function(e){return BS[t]=e,function(...r){cs("console",{args:r,level:t});const a=BS[t];a&&a.apply(wr.console,r)}})})}function foe(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const hoe="Dedupe",poe=()=>{let t;return{name:hoe,processEvent(e){if(e.type)return e;try{if(moe(e,t))return Br&&It.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},SG=poe;function moe(t,e){return e?!!(voe(t,e)||goe(t,e)):!1}function voe(t,e){const r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!CG(t,e)||!xG(t,e))}function goe(t,e){const r=zF(e),n=zF(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!CG(t,e)||!xG(t,e))}function xG(t,e){let r=uF(t),n=uF(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let a=0;a=400&&t<500?"warning":t>=500?"error":void 0}const PA=wr;function kG(){if(!("fetch"in PA))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function IA(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function _oe(){if(typeof EdgeRuntime=="string")return!0;if(!kG())return!1;if(IA(PA.fetch))return!0;let t=!1;const e=PA.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=IA(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){yh&&It.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function yoe(t,e){const r="fetch";wh(r,t),Sh(r,()=>boe(void 0,e))}function boe(t,e=!1){e&&!_oe()||Pi(wr,"fetch",function(r){return function(...n){const a=new Error,{method:i,url:o}=woe(n),s={args:n,fetchData:{method:i,url:o},startTimestamp:gc()*1e3,virtualError:a};return cs("fetch",{...s}),r.apply(wr,n).then(async l=>(cs("fetch",{...s,endTimestamp:gc()*1e3,response:l}),l),l=>{throw cs("fetch",{...s,endTimestamp:gc()*1e3,error:l}),MR(l)&&l.stack===void 0&&(l.stack=a.stack,nh(l,"framesToPop",1)),l})}})}function RA(t,e){return!!t&&typeof t=="object"&&!!t[e]}function BF(t){return typeof t=="string"?t:t?RA(t,"url")?t.url:t.toString?t.toString():"":""}function woe(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[r,n]=t;return{url:BF(r),method:RA(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:BF(e),method:RA(e,"method")?String(e.method).toUpperCase():"GET"}}function Soe(){return"npm"}const C1=wr;function xoe(){const t=C1.chrome,e=t&&t.app&&t.app.runtime,r="history"in C1&&!!C1.history.pushState&&!!C1.history.replaceState;return!e&&r}const jr=wr;let LA=0;function EG(){return LA>0}function Coe(){LA++,setTimeout(()=>{LA--})}function Xm(t,e={}){function r(a){return typeof a=="function"}if(!r(t))return t;try{const a=t.__sentry_wrapped__;if(a)return typeof a=="function"?a:t;if(PR(t))return t}catch{return t}const n=function(...a){try{const i=a.map(o=>Xm(o,e));return t.apply(this,i)}catch(i){throw Coe(),pae(o=>{o.addEventProcessor(s=>(e.mechanism&&(kA(s,void 0),Vm(s,e.mechanism)),s.extra={...s.extra,arguments:a},s)),bie(i)}),i}};try{for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])}catch{}sG(n,t),nh(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}const c0=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function FR(t,e){const r=zR(t,e),n={type:Moe(e),value:Ooe(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function Toe(t,e,r,n){const a=Ma(),i=a&&a.getOptions().normalizeDepth,o=Roe(e),s={__serialized__:pG(e,i)};if(o)return{exception:{values:[FR(t,o)]},extra:s};const l={exception:{values:[{type:lC(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:Poe(e,{isUnhandledRejection:n})}]},extra:s};if(r){const c=zR(t,r);c.length&&(l.exception.values[0].stacktrace={frames:c})}return l}function H2(t,e){return{exception:{values:[FR(t,e)]}}}function zR(t,e){const r=e.stacktrace||e.stack||"",n=Eoe(e),a=Doe(e);try{return t(r,n,a)}catch{}return[]}const koe=/Minified React error #\d+;/i;function Eoe(t){return t&&koe.test(t.message)?1:0}function Doe(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function DG(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function Moe(t){const e=t&&t.name;return!e&&DG(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function Ooe(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:DG(t)&&Array.isArray(t.message)&&t.message.length==2?t.message[1]:e:"No error message"}function $oe(t,e,r,n){const a=r&&r.syntheticException||void 0,i=BR(t,e,a,n);return Vm(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),ah(i)}function Aoe(t,e,r="info",n,a){const i=n&&n.syntheticException||void 0,o=NA(t,e,i,a);return o.level=r,n&&n.event_id&&(o.event_id=n.event_id),ah(o)}function BR(t,e,r,n,a){let i;if(aG(e)&&e.error)return H2(t,e.error);if(fF(e)||Une(e)){const o=e;if("stack"in e)i=H2(t,e);else{const s=o.name||(fF(o)?"DOMError":"DOMException"),l=o.message?`${s}: ${o.message}`:s;i=NA(t,l,r,n),kA(i,l)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return MR(e)?H2(t,e):Ym(e)||lC(e)?(i=Toe(t,e,r,a),Vm(i,{synthetic:!0}),i):(i=NA(t,e,r,n),kA(i,`${e}`),Vm(i,{synthetic:!0}),i)}function NA(t,e,r,n){const a={};if(n&&r){const i=zR(t,r);i.length&&(a.exception={values:[{value:e,stacktrace:{frames:i}}]}),Vm(a,{synthetic:!0})}if(OR(e)){const{__sentry_template_string__:i,__sentry_template_values__:o}=e;return a.logentry={message:i,params:o},a}return a.message=e,a}function Poe(t,{isUnhandledRejection:e}){const r=Qne(t),n=e?"promise rejection":"exception";return aG(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:lC(t)?`Event \`${Ioe(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function Ioe(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function Roe(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];if(r instanceof Error)return r}}function Loe(t,{metadata:e,tunnel:r,dsn:n}){const a={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!r&&!!n&&{dsn:fC(n)}},i=Noe(t);return l0(a,[i])}function Noe(t){return[{type:"user_report"},t]}class Foe extends Oie{constructor(e){const r={parentSpanIsAlwaysRootSpan:!0,...e},n=jr.SENTRY_SDK_SOURCE||Soe();Hie(r,"browser",["browser"],n),super(r),r.sendClientReports&&jr.document&&jr.document.addEventListener("visibilitychange",()=>{jr.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,r){return $oe(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return Aoe(this._options.stackParser,e,r,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){c0&&It.warn("SDK not enabled, will not capture user feedback.");return}const r=Loe(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(r)}_prepareEvent(e,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n)}}const zoe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Fa=wr,Boe=1e3;let jF,FA,zA;function joe(t){const e="dom";wh(e,t),Sh(e,Woe)}function Woe(){if(!Fa.document)return;const t=cs.bind(null,"dom"),e=WF(t,!0);Fa.document.addEventListener("click",e,!1),Fa.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{const a=Fa[r],i=a&&a.prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(Pi(i,"addEventListener",function(o){return function(s,l,c){if(s==="click"||s=="keypress")try{const d=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=d[s]=d[s]||{refCount:0};if(!u.handler){const f=WF(t);u.handler=f,o.call(this,s,f,c)}u.refCount++}catch{}return o.call(this,s,l,c)}}),Pi(i,"removeEventListener",function(o){return function(s,l,c){if(s==="click"||s=="keypress")try{const d=this.__sentry_instrumentation_handlers__||{},u=d[s];u&&(u.refCount--,u.refCount<=0&&(o.call(this,s,u.handler,c),u.handler=void 0,delete d[s]),Object.keys(d).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,s,l,c)}}))})}function Hoe(t){if(t.type!==FA)return!1;try{if(!t.target||t.target._sentryId!==zA)return!1}catch{}return!0}function Uoe(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function WF(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;const n=Yoe(r);if(Uoe(r.type,n))return;nh(r,"_sentryCaptured",!0),n&&!n._sentryId&&nh(n,"_sentryId",go());const a=r.type==="keypress"?"input":r.type;Hoe(r)||(t({event:r,name:a,global:e}),FA=r.type,zA=n?n._sentryId:void 0),clearTimeout(jF),jF=Fa.setTimeout(()=>{zA=void 0,FA=void 0},Boe)}}function Yoe(t){try{return t.target}catch{return null}}let T1;function MG(t){const e="history";wh(e,t),Sh(e,Voe)}function Voe(){if(!xoe())return;const t=Fa.onpopstate;Fa.onpopstate=function(...r){const n=Fa.location.href,a=T1;if(T1=n,cs("history",{from:a,to:n}),t)try{return t.apply(this,r)}catch{}};function e(r){return function(...n){const a=n.length>2?n[2]:void 0;if(a){const i=T1,o=String(a);T1=o,cs("history",{from:i,to:o})}return r.apply(this,n)}}Pi(Fa.history,"pushState",e),Pi(Fa.history,"replaceState",e)}const uS={};function Goe(t){const e=uS[t];if(e)return e;let r=Fa[t];if(IA(r))return uS[t]=r.bind(Fa);const n=Fa.document;if(n&&typeof n.createElement=="function")try{const a=n.createElement("iframe");a.hidden=!0,n.head.appendChild(a);const i=a.contentWindow;i&&i[t]&&(r=i[t]),n.head.removeChild(a)}catch(a){zoe&&It.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,a)}return r&&(uS[t]=r.bind(Fa))}function HF(t){uS[t]=void 0}const $_="__sentry_xhr_v3__";function qoe(t){const e="xhr";wh(e,t),Sh(e,Xoe)}function Xoe(){if(!Fa.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,r,n){const a=new Error,i=gc()*1e3,o=vc(n[0])?n[0].toUpperCase():void 0,s=Joe(n[1]);if(!o||!s)return e.apply(r,n);r[$_]={method:o,url:s,request_headers:{}},o==="POST"&&s.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const l=()=>{const c=r[$_];if(c&&r.readyState===4){try{c.status_code=r.status}catch{}const d={endTimestamp:gc()*1e3,startTimestamp:i,xhr:r,virtualError:a};cs("xhr",d)}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(c,d,u){return l(),c.apply(d,u)}}):r.addEventListener("readystatechange",l),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(c,d,u){const[f,p]=u,v=d[$_];return v&&vc(f)&&vc(p)&&(v.request_headers[f.toLowerCase()]=p),c.apply(d,u)}}),e.apply(r,n)}}),t.send=new Proxy(t.send,{apply(e,r,n){const a=r[$_];if(!a)return e.apply(r,n);n[0]!==void 0&&(a.body=n[0]);const i={startTimestamp:gc()*1e3,xhr:r};return cs("xhr",i),e.apply(r,n)}})}function Joe(t){if(vc(t))return t;try{return t.toString()}catch{}}function Zoe(t,e=Goe("fetch")){let r=0,n=0;function a(i){const o=i.body.length;r+=o,n++;const s={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};if(!e)return HF("fetch"),jS("No fetch implementation available");try{return e(t.url,s).then(l=>(r-=o,n--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return HF("fetch"),r-=o,n--,jS(l)}}return Wie(t,a)}const Koe=30,Qoe=50;function BA(t,e,r,n){const a={filename:t,function:e===""?th:e,in_app:!0};return r!==void 0&&(a.lineno=r),n!==void 0&&(a.colno=n),a}const ese=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tse=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rse=/\((\S*)(?::(\d+))(?::(\d+))\)/,nse=t=>{const e=ese.exec(t);if(e){const[,n,a,i]=e;return BA(n,th,+a,+i)}const r=tse.exec(t);if(r){if(r[2]&&r[2].indexOf("eval")===0){const o=rse.exec(r[2]);o&&(r[2]=o[1],r[3]=o[2],r[4]=o[3])}const[a,i]=OG(r[1]||th,r[2]);return BA(i,a,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},ase=[Koe,nse],ise=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ose=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,sse=t=>{const e=ise.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const i=ose.exec(e[3]);i&&(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]="")}let n=e[3],a=e[1]||th;return[a,n]=OG(a,n),BA(n,a,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},lse=[Qoe,sse],cse=[ase,lse],use=rG(...cse),OG=(t,e)=>{const r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:th,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},k1=1024,dse="Breadcrumbs",fse=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:dse,setup(r){e.console&&uoe(vse(r)),e.dom&&joe(mse(r,e.dom)),e.xhr&&qoe(gse(r)),e.fetch&&yoe(_se(r)),e.history&&MG(yse(r)),e.sentry&&r.on("beforeSendEvent",pse(r))}}},hse=fse;function pse(t){return function(r){Ma()===t&&oh({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:Au(r)},{event:r})}}function mse(t,e){return function(n){if(Ma()!==t)return;let a,i,o=typeof e=="object"?e.serializeAttribute:void 0,s=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;s&&s>k1&&(c0&&It.warn(`\`dom.maxStringLength\` cannot exceed ${k1}, but a value of ${s} was configured. Sentry will use ${k1} instead.`),s=k1),typeof o=="string"&&(o=[o]);try{const c=n.event,d=bse(c)?c.target:c;a=oG(d,{keyAttrs:o,maxStringLength:s}),i=Zne(d)}catch{a=""}if(a.length===0)return;const l={category:`ui.${n.name}`,message:a};i&&(l.data={"ui.component_name":i}),oh(l,{event:n.event,name:n.name,global:n.global})}}function vse(t){return function(r){if(Ma()!==t)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:foe(r.level),message:hF(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${hF(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;oh(n,{input:r.args,level:r.level})}}function gse(t){return function(r){if(Ma()!==t)return;const{startTimestamp:n,endTimestamp:a}=r,i=r.xhr[$_];if(!n||!a||!i)return;const{method:o,url:s,status_code:l,body:c}=i,d={method:o,url:s,status_code:l},u={xhr:r.xhr,input:c,startTimestamp:n,endTimestamp:a},f=TG(l);oh({category:"xhr",data:d,type:"http",level:f},u)}}function _se(t){return function(r){if(Ma()!==t)return;const{startTimestamp:n,endTimestamp:a}=r;if(a&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){const i=r.fetchData,o={data:r.error,input:r.args,startTimestamp:n,endTimestamp:a};oh({category:"fetch",data:i,level:"error",type:"http"},o)}else{const i=r.response,o={...r.fetchData,status_code:i&&i.status},s={input:r.args,response:i,startTimestamp:n,endTimestamp:a},l=TG(o.status_code);oh({category:"fetch",data:o,type:"http",level:l},s)}}}function yse(t){return function(r){if(Ma()!==t)return;let n=r.from,a=r.to;const i=W2(jr.location.href);let o=n?W2(n):void 0;const s=W2(a);(!o||!o.path)&&(o=i),i.protocol===s.protocol&&i.host===s.host&&(a=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),oh({category:"navigation",data:{from:n,to:a}})}}function bse(t){return!!t&&!!t.target}const wse=["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"],Sse="BrowserApiErrors",xse=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:Sse,setupOnce(){e.setTimeout&&Pi(jr,"setTimeout",UF),e.setInterval&&Pi(jr,"setInterval",UF),e.requestAnimationFrame&&Pi(jr,"requestAnimationFrame",Tse),e.XMLHttpRequest&&"XMLHttpRequest"in jr&&Pi(XMLHttpRequest.prototype,"send",kse);const r=e.eventTarget;r&&(Array.isArray(r)?r:wse).forEach(Ese)}}},Cse=xse;function UF(t){return function(...e){const r=e[0];return e[0]=Xm(r,{mechanism:{data:{function:Qu(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Tse(t){return function(e){return t.apply(this,[Xm(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Qu(t)},handled:!1,type:"instrument"}})])}}function kse(t){return function(...e){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(a=>{a in r&&typeof r[a]=="function"&&Pi(r,a,function(i){const o={mechanism:{data:{function:a,handler:Qu(i)},handled:!1,type:"instrument"}},s=PR(i);return s&&(o.mechanism.data.handler=Qu(s)),Xm(i,o)})}),t.apply(this,e)}}function Ese(t){const r=jr[t],n=r&&r.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Pi(n,"addEventListener",function(a){return function(i,o,s){try{Dse(o)&&(o.handleEvent=Xm(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Qu(o),target:t},handled:!1,type:"instrument"}}))}catch{}return a.apply(this,[i,Xm(o,{mechanism:{data:{function:"addEventListener",handler:Qu(o),target:t},handled:!1,type:"instrument"}}),s])}}),Pi(n,"removeEventListener",function(a){return function(i,o,s){try{const l=o.__sentry_wrapped__;l&&a.call(this,i,l,s)}catch{}return a.call(this,i,o,s)}}))}function Dse(t){return typeof t.handleEvent=="function"}const Mse=()=>({name:"BrowserSession",setupOnce(){if(typeof jr.document>"u"){c0&&It.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}MF({ignoreDuration:!0}),OF(),MG(({from:t,to:e})=>{t!==void 0&&t!==e&&(MF({ignoreDuration:!0}),OF())})}}),Ose="GlobalHandlers",$se=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Ose,setupOnce(){Error.stackTraceLimit=50},setup(r){e.onerror&&(Pse(r),YF("onerror")),e.onunhandledrejection&&(Ise(r),YF("onunhandledrejection"))}}},Ase=$se;function Pse(t){Bne(e=>{const{stackParser:r,attachStacktrace:n}=$G();if(Ma()!==t||EG())return;const{msg:a,url:i,line:o,column:s,error:l}=e,c=Nse(BR(r,l||a,void 0,n,!1),i,o,s);c.level="error",vG(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function Ise(t){Wne(e=>{const{stackParser:r,attachStacktrace:n}=$G();if(Ma()!==t||EG())return;const a=Rse(e),i=$R(a)?Lse(a):BR(r,a,void 0,n,!0);i.level="error",vG(i,{originalException:a,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Rse(t){if($R(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function Lse(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Nse(t,e,r,n){const a=t.exception=t.exception||{},i=a.values=a.values||[],o=i[0]=i[0]||{},s=o.stacktrace=o.stacktrace||{},l=s.frames=s.frames||[],c=n,d=r,u=vc(e)&&e.length>0?e:Jne();return l.length===0&&l.push({colno:c,filename:u,function:th,in_app:!0,lineno:d}),t}function YF(t){c0&&It.log(`Global Handler attached: ${t}`)}function $G(){const t=Ma();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Fse=()=>({name:"HttpContext",preprocessEvent(t){if(!jr.navigator&&!jr.location&&!jr.document)return;const e=t.request&&t.request.url||jr.location&&jr.location.href,{referrer:r}=jr.document||{},{userAgent:n}=jr.navigator||{},a={...t.request&&t.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},i={...t.request,...e&&{url:e},headers:a};t.request=i}}),zse="cause",Bse=5,jse="LinkedErrors",Wse=(t={})=>{const e=t.limit||Bse,r=t.key||zse;return{name:jse,preprocessEvent(n,a,i){const o=i.getOptions();loe(FR,o.stackParser,o.maxValueLength,r,e,n,a)}}},Hse=Wse;function Use(t){const e=[Zie(),Gie(),Cse(),hse(),Ase(),Hse(),SG(),Fse()];return t.autoSessionTracking!==!1&&e.push(Mse()),e}function Yse(t={}){const e={defaultIntegrations:Use(t),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:jr.SENTRY_RELEASE&&jr.SENTRY_RELEASE.id?jr.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return t.defaultIntegrations==null&&delete t.defaultIntegrations,{...e,...t}}function Vse(){const t=typeof jr.window<"u"&&jr;if(!t)return!1;const e=t.chrome?"chrome":"browser",r=t[e],n=r&&r.runtime&&r.runtime.id,a=jr.location&&jr.location.href||"",i=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],o=!!n&&jr===jr.top&&i.some(l=>a.startsWith(`${l}//`)),s=typeof t.nw<"u";return!!n&&!o&&!s}function Gse(t={}){const e=Yse(t);if(!e.skipBrowserExtensionCheck&&Vse()){bh(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}c0&&(kG()||It.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const r={...e,stackParser:Fne(e.stackParser||use),integrations:Eie(e),transport:e.transport||Zoe};return Pie(Foe,r)}var z=ld();const E=Tl(z),HS=Ene({__proto__:null,default:E},[z]);function xc(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const us="$$material";function US(){return US=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?na(hv,--ui):0,Jm--,En===10&&(Jm=1,pC--),En}function Ri(){return En=ui2||_y(En)>3?"":" "}function sle(t,e){for(;--e&&Ri()&&!(En<48||En>102||En>57&&En<65||En>70&&En<97););return u0(t,dS()+(e<6&&fl()==32&&Ri()==32))}function WA(t){for(;Ri();)switch(En){case t:return ui;case 34:case 39:t!==34&&t!==39&&WA(En);break;case 40:t===41&&WA(t);break;case 92:Ri();break}return ui}function lle(t,e){for(;Ri()&&t+En!==57;)if(t+En===84&&fl()===47)break;return"/*"+u0(e,ui-1)+"*"+hC(t===47?t:Ri())}function cle(t){for(;!_y(fl());)Ri();return u0(t,ui)}function ule(t){return FG(hS("",null,null,null,[""],t=NG(t),0,[0],t))}function hS(t,e,r,n,a,i,o,s,l){for(var c=0,d=0,u=o,f=0,p=0,v=0,g=1,_=1,b=1,w=0,x="",C=a,M=i,k=n,O=x;_;)switch(v=w,w=Ri()){case 40:if(v!=108&&na(O,u-1)==58){jA(O+=yr(fS(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:O+=fS(w);break;case 9:case 10:case 13:case 32:O+=ole(v);break;case 92:O+=sle(dS()-1,7);continue;case 47:switch(fl()){case 42:case 47:E1(dle(lle(Ri(),dS()),e,r),l);break;default:O+="/"}break;case 123*g:s[c++]=tl(O)*b;case 125*g:case 59:case 0:switch(w){case 0:case 125:_=0;case 59+d:b==-1&&(O=yr(O,/\f/g,"")),p>0&&tl(O)-u&&E1(p>32?GF(O+";",n,r,u-1):GF(yr(O," ","")+";",n,r,u-2),l);break;case 59:O+=";";default:if(E1(k=VF(O,e,r,c,d,a,s,x,C=[],M=[],u),i),w===123)if(d===0)hS(O,e,k,k,C,i,u,s,M);else switch(f===99&&na(O,3)===110?100:f){case 100:case 108:case 109:case 115:hS(t,k,k,n&&E1(VF(t,k,k,0,0,a,s,x,a,C=[],u),M),a,M,u,s,n?C:M);break;default:hS(O,k,k,k,[""],M,0,s,M)}}c=d=p=0,g=b=1,x=O="",u=o;break;case 58:u=1+tl(O),p=v;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&ile()==125)continue}switch(O+=hC(w),w*g){case 38:b=d>0?1:(O+="\f",-1);break;case 44:s[c++]=(tl(O)-1)*b,b=1;break;case 64:fl()===45&&(O+=fS(Ri())),f=fl(),d=u=tl(x=O+=cle(dS())),w++;break;case 45:v===45&&tl(O)==2&&(g=0)}}return i}function VF(t,e,r,n,a,i,o,s,l,c,d){for(var u=a-1,f=a===0?i:[""],p=HR(f),v=0,g=0,_=0;v0?f[b]+" "+w:yr(w,/&\f/g,f[b])))&&(l[_++]=x);return mC(t,e,r,a===0?jR:s,l,c,d)}function dle(t,e,r){return mC(t,e,r,PG,hC(ale()),gy(t,2,-2),0)}function GF(t,e,r,n){return mC(t,e,r,WR,gy(t,0,n),gy(t,n+1,-1),n)}function $m(t,e){for(var r="",n=HR(t),a=0;a6)switch(na(t,e+1)){case 109:if(na(t,e+4)!==45)break;case 102:return yr(t,/(.+:)(.+)-([^]+)/,"$1"+_r+"$2-$3$1"+YS+(na(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~jA(t,"stretch")?BG(yr(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(na(t,e+1)!==115)break;case 6444:switch(na(t,tl(t)-3-(~jA(t,"!important")&&10))){case 107:return yr(t,":",":"+_r)+t;case 101:return yr(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_r+(na(t,14)===45?"inline-":"")+"box$3$1"+_r+"$2$3$1"+ma+"$2box$3")+t}break;case 5936:switch(na(t,e+11)){case 114:return _r+t+ma+yr(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return _r+t+ma+yr(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return _r+t+ma+yr(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return _r+t+ma+t+t}return t}var ble=function(e,r,n,a){if(e.length>-1&&!e.return)switch(e.type){case WR:e.return=BG(e.value,e.length);break;case IG:return $m([Ig(e,{value:yr(e.value,"@","@"+_r)})],a);case jR:if(e.length)return nle(e.props,function(i){switch(rle(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $m([Ig(e,{props:[yr(i,/:(read-\w+)/,":"+YS+"$1")]})],a);case"::placeholder":return $m([Ig(e,{props:[yr(i,/:(plac\w+)/,":"+_r+"input-$1")]}),Ig(e,{props:[yr(i,/:(plac\w+)/,":"+YS+"$1")]}),Ig(e,{props:[yr(i,/:(plac\w+)/,ma+"input-$1")]})],a)}return""})}},wle=[ble],jG=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var _=g.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var a=e.stylisPlugins||wle,i={},o,s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var _=g.getAttribute("data-emotion").split(" "),b=1;b<_.length;b++)i[_[b]]=!0;s.push(g)});var l,c=[_le,yle];{var d,u=[fle,ple(function(g){d.insert(g)})],f=hle(c.concat(a,u)),p=function(_){return $m(ule(_),f)};l=function(_,b,w,x){d=w,p(_?_+"{"+b.styles+"}":b.styles),x&&(v.inserted[b.name]=!0)}}var v={key:r,sheet:new AG({key:r,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(s),v},U2={exports:{}},xr={};/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var XF;function Sle(){if(XF)return xr;XF=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,v=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,_=t?Symbol.for("react.fundamental"):60117,b=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function x(M){if(typeof M=="object"&&M!==null){var k=M.$$typeof;switch(k){case e:switch(M=M.type,M){case l:case c:case n:case i:case a:case u:return M;default:switch(M=M&&M.$$typeof,M){case s:case d:case v:case p:case o:return M;default:return k}}case r:return k}}}function C(M){return x(M)===c}return xr.AsyncMode=l,xr.ConcurrentMode=c,xr.ContextConsumer=s,xr.ContextProvider=o,xr.Element=e,xr.ForwardRef=d,xr.Fragment=n,xr.Lazy=v,xr.Memo=p,xr.Portal=r,xr.Profiler=i,xr.StrictMode=a,xr.Suspense=u,xr.isAsyncMode=function(M){return C(M)||x(M)===l},xr.isConcurrentMode=C,xr.isContextConsumer=function(M){return x(M)===s},xr.isContextProvider=function(M){return x(M)===o},xr.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===e},xr.isForwardRef=function(M){return x(M)===d},xr.isFragment=function(M){return x(M)===n},xr.isLazy=function(M){return x(M)===v},xr.isMemo=function(M){return x(M)===p},xr.isPortal=function(M){return x(M)===r},xr.isProfiler=function(M){return x(M)===i},xr.isStrictMode=function(M){return x(M)===a},xr.isSuspense=function(M){return x(M)===u},xr.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===n||M===c||M===i||M===a||M===u||M===f||typeof M=="object"&&M!==null&&(M.$$typeof===v||M.$$typeof===p||M.$$typeof===o||M.$$typeof===s||M.$$typeof===d||M.$$typeof===_||M.$$typeof===b||M.$$typeof===w||M.$$typeof===g)},xr.typeOf=x,xr}var JF;function xle(){return JF||(JF=1,U2.exports=Sle()),U2.exports}var Y2,ZF;function Cle(){if(ZF)return Y2;ZF=1;var t=xle(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[t.ForwardRef]=n,i[t.Memo]=a;function o(v){return t.isMemo(v)?a:i[v.$$typeof]||e}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,f=Object.prototype;function p(v,g,_){if(typeof g!="string"){if(f){var b=u(g);b&&b!==f&&p(v,b,_)}var w=l(g);c&&(w=w.concat(c(g)));for(var x=o(v),C=o(g),M=0;M=4;++n,a-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(a){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Ele={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},Dle=/[A-Z]|^ms/g,Mle=/_EMO_([^_]+?)_([^]*?)_EMO_/g,HG=function(e){return e.charCodeAt(1)===45},KF=function(e){return e!=null&&typeof e!="boolean"},V2=zG(function(t){return HG(t)?t:t.replace(Dle,"-$&").toLowerCase()}),QF=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(Mle,function(n,a,i){return rl={name:a,styles:i,next:rl},a})}return Ele[e]!==1&&!HG(e)&&typeof r=="number"&&r!==0?r+"px":r};function yy(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return rl={name:a.name,styles:a.styles,next:rl},a.name;var i=r;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)rl={name:o.name,styles:o.styles,next:rl},o=o.next;var s=i.styles+";";return s}return Ole(t,e,r)}case"function":{if(t!==void 0){var l=rl,c=r(t);return rl=l,yy(t,e,c)}break}}var d=r;if(e==null)return d;var u=e[d];return u!==void 0?u:d}function Ole(t,e,r){var n="";if(Array.isArray(r))for(var a=0;a96?Wle:Hle},nz=function(e,r,n){var a;if(r){var i=r.shouldForwardProp;a=e.__emotion_forwardProp&&i?function(o){return e.__emotion_forwardProp(o)&&i(o)}:i}return typeof a!="function"&&n&&(a=e.__emotion_forwardProp),a},Ule=function(e){var r=e.cache,n=e.serialized,a=e.isStringTag;return UR(r,n,a),YG(function(){return YR(r,n,a)}),null},Yle=function t(e,r){var n=e.__emotion_real===e,a=n&&e.__emotion_base||e,i,o;r!==void 0&&(i=r.label,o=r.target);var s=nz(e,r,n),l=s||rz(a),c=!l("as");return function(){var d=arguments,u=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)u.push.apply(u,d);else{var f=d[0];u.push(f[0]);for(var p=d.length,v=1;v{const r=jG(t);return r.sheet=new e({key:r.key,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy,prepend:r.sheet.prepend,insertionPoint:r.sheet.insertionPoint}),r};let YA;if(typeof document=="object"){let t=document.querySelector('[name="emotion-insertion-point"]');if(!t){t=document.createElement("meta"),t.setAttribute("name","emotion-insertion-point"),t.setAttribute("content","");const r=document.querySelector("head");r&&r.prepend(t)}class e extends AG{insert(n,a){return this.key&&this.key.endsWith("global")&&(this.before=t),super.insert(n,a)}}YA=Zle({key:"css",insertionPoint:t},e)}function sz(t){const{injectFirst:e,children:r}=t;return e&&YA?q.jsx(Ple,{value:YA,children:r}):r}function Kle(t){return t==null||Object.keys(t).length===0}function GG(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?a=>e(Kle(a)?r:a):e;return q.jsx(zle,{styles:n})}/** - * @mui/styled-engine v6.3.0 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function qG(t,e){return UA(t,e)}function Qle(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const lz=[];function cz(t){return lz[0]=t,d0(lz)}function sl(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function XG(t){if(z.isValidElement(t)||!sl(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=XG(t[r])}),e}function Ta(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return sl(t)&&sl(e)&&Object.keys(e).forEach(a=>{z.isValidElement(e[a])?n[a]=e[a]:sl(e[a])&&Object.prototype.hasOwnProperty.call(t,a)&&sl(t[a])?n[a]=Ta(t[a],e[a],r):r.clone?n[a]=sl(e[a])?XG(e[a]):e[a]:n[a]=e[a]}),n}const ece=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function tce(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...a}=t,i=ece(e),o=Object.keys(i);function s(f){return`@media (min-width:${typeof e[f]=="number"?e[f]:f}${r})`}function l(f){return`@media (max-width:${(typeof e[f]=="number"?e[f]:f)-n/100}${r})`}function c(f,p){const v=o.indexOf(p);return`@media (min-width:${typeof e[f]=="number"?e[f]:f}${r}) and (max-width:${(v!==-1&&typeof e[o[v]]=="number"?e[o[v]]:p)-n/100}${r})`}function d(f){return o.indexOf(f)+1n.startsWith("@container")).sort((n,a)=>{var o,s;const i=/min-width:\s*([0-9.]+)/;return+(((o=n.match(i))==null?void 0:o[1])||0)-+(((s=a.match(i))==null?void 0:s[1])||0)});return r.length?r.reduce((n,a)=>{const i=e[a];return delete n[a],n[a]=i,n},{...e}):e}function nce(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function ace(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,a]=r,i=Number.isNaN(+n)?n||0:+n;return t.containerQueries(a).up(i)}function ice(t){const e=(i,o)=>i.replace("@media",o?`@container ${o}`:"@container");function r(i,o){i.up=(...s)=>e(t.breakpoints.up(...s),o),i.down=(...s)=>e(t.breakpoints.down(...s),o),i.between=(...s)=>e(t.breakpoints.between(...s),o),i.only=(...s)=>e(t.breakpoints.only(...s),o),i.not=(...s)=>{const l=e(t.breakpoints.not(...s),o);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},a=i=>(r(n,i),n);return r(a),{...t,containerQueries:a}}const oce={borderRadius:4};function J_(t,e){return e?Ta(t,e,{clone:!1}):t}const vC={xs:0,sm:600,md:900,lg:1200,xl:1536},uz={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${vC[t]}px)`},sce={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:vC[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function Cc(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const i=n.breakpoints||uz;return e.reduce((o,s,l)=>(o[i.up(i.keys[l])]=r(e[l]),o),{})}if(typeof e=="object"){const i=n.breakpoints||uz;return Object.keys(e).reduce((o,s)=>{if(nce(i.keys,s)){const l=ace(n.containerQueries?n:sce,s);l&&(o[l]=r(e[s],s))}else if(Object.keys(i.values||vC).includes(s)){const l=i.up(s);o[l]=r(e[s],s)}else{const l=s;o[l]=e[l]}return o},{})}return r(e)}function lce(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((n,a)=>{const i=t.up(a);return n[i]={},n},{}))||{}}function cce(t,e){return t.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},e)}function ze(t){if(typeof t!="string")throw new Error(xc(7));return t.charAt(0).toUpperCase()+t.slice(1)}function gC(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((a,i)=>a&&a[i]?a[i]:null,t);if(n!=null)return n}return e.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,t)}function VS(t,e,r,n=r){let a;return typeof t=="function"?a=t(r):Array.isArray(t)?a=t[r]||n:a=gC(t,r)||n,e&&(a=e(a,n,t)),a}function Tn(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:a}=t,i=o=>{if(o[e]==null)return null;const s=o[e],l=o.theme,c=gC(l,n)||{};return Cc(o,s,u=>{let f=VS(c,a,u);return u===f&&typeof u=="string"&&(f=VS(c,a,`${e}${u==="default"?"":ze(u)}`,u)),r===!1?f:{[r]:f}})};return i.propTypes={},i.filterProps=[e],i}function uce(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const dce={m:"margin",p:"padding"},fce={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},dz={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hce=uce(t=>{if(t.length>2)if(dz[t])t=dz[t];else return[t];const[e,r]=t.split(""),n=dce[e],a=fce[r]||"";return Array.isArray(a)?a.map(i=>n+i):[n+a]}),qR=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],XR=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qR,...XR];function h0(t,e,r,n){const a=gC(t,e,!0)??r;return typeof a=="number"||typeof a=="string"?i=>typeof i=="string"?i:typeof a=="string"?`calc(${i} * ${a})`:a*i:Array.isArray(a)?i=>{if(typeof i=="string")return i;const o=Math.abs(i),s=a[o];return i>=0?s:typeof s=="number"?-s:`-${s}`}:typeof a=="function"?a:()=>{}}function JR(t){return h0(t,"spacing",8)}function p0(t,e){return typeof e=="string"||e==null?e:t(e)}function pce(t,e){return r=>t.reduce((n,a)=>(n[a]=p0(e,r),n),{})}function mce(t,e,r,n){if(!e.includes(r))return null;const a=hce(r),i=pce(a,n),o=t[r];return Cc(t,o,i)}function JG(t,e){const r=JR(t.theme);return Object.keys(t).map(n=>mce(t,e,n,r)).reduce(J_,{})}function dn(t){return JG(t,qR)}dn.propTypes={};dn.filterProps=qR;function fn(t){return JG(t,XR)}fn.propTypes={};fn.filterProps=XR;function ZG(t=8,e=JR({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(i=>{const o=e(i);return typeof o=="number"?`${o}px`:o}).join(" ");return r.mui=!0,r}function _C(...t){const e=t.reduce((n,a)=>(a.filterProps.forEach(i=>{n[i]=a}),n),{}),r=n=>Object.keys(n).reduce((a,i)=>e[i]?J_(a,e[i](n)):a,{});return r.propTypes={},r.filterProps=t.reduce((n,a)=>n.concat(a.filterProps),[]),r}function co(t){return typeof t!="number"?t:`${t}px solid`}function To(t,e){return Tn({prop:t,themeKey:"borders",transform:e})}const vce=To("border",co),gce=To("borderTop",co),_ce=To("borderRight",co),yce=To("borderBottom",co),bce=To("borderLeft",co),wce=To("borderColor"),Sce=To("borderTopColor"),xce=To("borderRightColor"),Cce=To("borderBottomColor"),Tce=To("borderLeftColor"),kce=To("outline",co),Ece=To("outlineColor"),yC=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=h0(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:p0(e,n)});return Cc(t,t.borderRadius,r)}return null};yC.propTypes={};yC.filterProps=["borderRadius"];_C(vce,gce,_ce,yce,bce,wce,Sce,xce,Cce,Tce,yC,kce,Ece);const bC=t=>{if(t.gap!==void 0&&t.gap!==null){const e=h0(t.theme,"spacing",8),r=n=>({gap:p0(e,n)});return Cc(t,t.gap,r)}return null};bC.propTypes={};bC.filterProps=["gap"];const wC=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=h0(t.theme,"spacing",8),r=n=>({columnGap:p0(e,n)});return Cc(t,t.columnGap,r)}return null};wC.propTypes={};wC.filterProps=["columnGap"];const SC=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=h0(t.theme,"spacing",8),r=n=>({rowGap:p0(e,n)});return Cc(t,t.rowGap,r)}return null};SC.propTypes={};SC.filterProps=["rowGap"];const Dce=Tn({prop:"gridColumn"}),Mce=Tn({prop:"gridRow"}),Oce=Tn({prop:"gridAutoFlow"}),$ce=Tn({prop:"gridAutoColumns"}),Ace=Tn({prop:"gridAutoRows"}),Pce=Tn({prop:"gridTemplateColumns"}),Ice=Tn({prop:"gridTemplateRows"}),Rce=Tn({prop:"gridTemplateAreas"}),Lce=Tn({prop:"gridArea"});_C(bC,wC,SC,Dce,Mce,Oce,$ce,Ace,Pce,Ice,Rce,Lce);function Am(t,e){return e==="grey"?e:t}const Nce=Tn({prop:"color",themeKey:"palette",transform:Am}),Fce=Tn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Am}),zce=Tn({prop:"backgroundColor",themeKey:"palette",transform:Am});_C(Nce,Fce,zce);function $i(t){return t<=1&&t!==0?`${t*100}%`:t}const Bce=Tn({prop:"width",transform:$i}),ZR=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{var a,i,o,s,l;const n=((o=(i=(a=t.theme)==null?void 0:a.breakpoints)==null?void 0:i.values)==null?void 0:o[r])||vC[r];return n?((l=(s=t.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:$i(r)}};return Cc(t,t.maxWidth,e)}return null};ZR.filterProps=["maxWidth"];const jce=Tn({prop:"minWidth",transform:$i}),Wce=Tn({prop:"height",transform:$i}),Hce=Tn({prop:"maxHeight",transform:$i}),Uce=Tn({prop:"minHeight",transform:$i});Tn({prop:"size",cssProperty:"width",transform:$i});Tn({prop:"size",cssProperty:"height",transform:$i});const Yce=Tn({prop:"boxSizing"});_C(Bce,ZR,jce,Wce,Hce,Uce,Yce);const m0={border:{themeKey:"borders",transform:co},borderTop:{themeKey:"borders",transform:co},borderRight:{themeKey:"borders",transform:co},borderBottom:{themeKey:"borders",transform:co},borderLeft:{themeKey:"borders",transform:co},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:co},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:yC},color:{themeKey:"palette",transform:Am},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Am},backgroundColor:{themeKey:"palette",transform:Am},p:{style:fn},pt:{style:fn},pr:{style:fn},pb:{style:fn},pl:{style:fn},px:{style:fn},py:{style:fn},padding:{style:fn},paddingTop:{style:fn},paddingRight:{style:fn},paddingBottom:{style:fn},paddingLeft:{style:fn},paddingX:{style:fn},paddingY:{style:fn},paddingInline:{style:fn},paddingInlineStart:{style:fn},paddingInlineEnd:{style:fn},paddingBlock:{style:fn},paddingBlockStart:{style:fn},paddingBlockEnd:{style:fn},m:{style:dn},mt:{style:dn},mr:{style:dn},mb:{style:dn},ml:{style:dn},mx:{style:dn},my:{style:dn},margin:{style:dn},marginTop:{style:dn},marginRight:{style:dn},marginBottom:{style:dn},marginLeft:{style:dn},marginX:{style:dn},marginY:{style:dn},marginInline:{style:dn},marginInlineStart:{style:dn},marginInlineEnd:{style:dn},marginBlock:{style:dn},marginBlockStart:{style:dn},marginBlockEnd:{style:dn},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:bC},rowGap:{style:SC},columnGap:{style:wC},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$i},maxWidth:{style:ZR},minWidth:{transform:$i},height:{transform:$i},maxHeight:{transform:$i},minHeight:{transform:$i},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 Vce(...t){const e=t.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function Gce(t,e){return typeof t=="function"?t(e):t}function qce(){function t(r,n,a,i){const o={[r]:n,theme:a},s=i[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:d,style:u}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const f=gC(a,c)||{};return u?u(o):Cc(o,n,v=>{let g=VS(f,d,v);return v===g&&typeof v=="string"&&(g=VS(f,d,`${r}${v==="default"?"":ze(v)}`,v)),l===!1?g:{[l]:g}})}function e(r){const{sx:n,theme:a={}}=r||{};if(!n)return null;const i=a.unstable_sxConfig??m0;function o(s){let l=s;if(typeof s=="function")l=s(a);else if(typeof s!="object")return s;if(!l)return null;const c=lce(a.breakpoints),d=Object.keys(c);let u=c;return Object.keys(l).forEach(f=>{const p=Gce(l[f],a);if(p!=null)if(typeof p=="object")if(i[f])u=J_(u,t(f,p,a,i));else{const v=Cc({theme:a},p,g=>({[f]:g}));Vce(v,p)?u[f]=e({sx:p,theme:a}):u=J_(u,v)}else u=J_(u,t(f,p,a,i))}),rce(a,cce(d,u))}return Array.isArray(n)?n.map(o):o(n)}return e}const ed=qce();ed.filterProps=["sx"];function Xce(t,e){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[t])||typeof r.getColorSchemeSelector!="function")return{};let a=r.getColorSchemeSelector(t);return a==="&"?e:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:e})}return r.palette.mode===t?e:{}}function KR(t={},...e){const{breakpoints:r={},palette:n={},spacing:a,shape:i={},...o}=t,s=tce(r),l=ZG(a);let c=Ta({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...oce,...i}},o);return c=ice(c),c.applyStyles=Xce,c=e.reduce((d,u)=>Ta(d,u),c),c.unstable_sxConfig={...m0,...o==null?void 0:o.unstable_sxConfig},c.unstable_sx=function(u){return ed({sx:u,theme:this})},c}function Jce(t){return Object.keys(t).length===0}function QR(t=null){const e=z.useContext(f0);return!e||Jce(e)?t:e}const Zce=KR();function eL(t=Zce){return QR(t)}function Kce({styles:t,themeId:e,defaultTheme:r={}}){const n=eL(r),a=typeof t=="function"?t(e&&n[e]||n):t;return q.jsx(GG,{styles:a})}const Qce=t=>{var n;const e={systemProps:{},otherProps:{}},r=((n=t==null?void 0:t.theme)==null?void 0:n.unstable_sxConfig)??m0;return Object.keys(t).forEach(a=>{r[a]?e.systemProps[a]=t[a]:e.otherProps[a]=t[a]}),e};function KG(t){const{sx:e,...r}=t,{systemProps:n,otherProps:a}=Qce(r);let i;return Array.isArray(e)?i=[n,...e]:typeof e=="function"?i=(...o)=>{const s=e(...o);return sl(s)?{...n,...s}:n}:i={...n,...e},{...a,sx:i}}const fz=t=>t,eue=()=>{let t=fz;return{configure(e){t=e},generate(e){return t(e)},reset(){t=fz}}},QG=eue();function eq(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;es!=="theme"&&s!=="sx"&&s!=="as"})(ed);return z.forwardRef(function(l,c){const d=eL(r),{className:u,component:f="div",...p}=KG(l);return q.jsx(i,{as:f,ref:c,className:Ze(u,a?a(n):n),theme:e&&d[e]||d,...p})})}const rue={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 At(t,e,r="Mui"){const n=rue[e];return n?`${r}-${n}`:`${QG.generate(t)}-${e}`}function Tt(t,e,r="Mui"){const n={};return e.forEach(a=>{n[a]=At(t,a,r)}),n}function tq(t){const{variants:e,...r}=t,n={variants:e,style:cz(r),isProcessed:!0};return n.style===r||e&&e.forEach(a=>{typeof a.style!="function"&&(a.style=cz(a.style))}),n}const nue=KR();function J2(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function aue(t){return t?(e,r)=>r[t]:null}function iue(t,e,r){t.theme=lue(t.theme)?r:t.theme[e]||t.theme}function pS(t,e){const r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(n=>pS(t,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:a,...i}=r;n=i}return rq(t,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function rq(t,e,r=[]){var a;let n;e:for(let i=0;i{Qle(s,M=>M.filter(k=>k!==ed));const{name:c,slot:d,skipVariantsResolver:u,skipSx:f,overridesResolver:p=aue(uue(d)),...v}=l,g=u!==void 0?u:d&&d!=="Root"&&d!=="root"||!1,_=f||!1;let b=J2;d==="Root"||d==="root"?b=n:d?b=a:cue(s)&&(b=void 0);const w=qG(s,{shouldForwardProp:b,label:sue(),...v}),x=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function(O){return pS(O,M)};if(sl(M)){const k=tq(M);return k.variants?function(R){return pS(R,k)}:k.style}return M},C=(...M)=>{const k=[],O=M.map(x),R=[];if(k.push(i),c&&p&&R.push(function(W){var J,ie;const Y=(ie=(J=W.theme.components)==null?void 0:J[c])==null?void 0:ie.styleOverrides;if(!Y)return null;const V={};for(const K in Y)V[K]=pS(W,Y[K]);return p(W,V)}),c&&!g&&R.push(function(W){var V,J;const j=W.theme,Y=(J=(V=j==null?void 0:j.components)==null?void 0:V[c])==null?void 0:J.variants;return Y?rq(W,Y):null}),_||R.push(ed),Array.isArray(O[0])){const N=O.shift(),W=new Array(k.length).fill(""),j=new Array(R.length).fill("");let Y;Y=[...W,...N,...j],Y.raw=[...W,...N.raw,...j],k.unshift(Y)}const L=[...k,...O,...R],$=w(...L);return s.muiName&&($.muiName=s.muiName),$};return w.withConfig&&(C.withConfig=w.withConfig),C}}function sue(t,e){return void 0}function lue(t){for(const e in t)return!1;return!0}function cue(t){return typeof t=="string"&&t.charCodeAt(0)>96}function uue(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function by(t,e){const r={...e};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const a=n;if(a==="components"||a==="slots")r[a]={...t[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const i=t[a],o=e[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;r[a][l]=by(i[l],o[l])}}}else r[a]===void 0&&(r[a]=t[a])}return r}function due(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:by(e.components[r].defaultProps,n)}const yo=typeof window<"u"?z.useLayoutEffect:z.useEffect;function fue(t,e,r,n,a){const[i,o]=z.useState(()=>a&&r?r(t).matches:n?n(t).matches:e);return yo(()=>{if(!r)return;const s=r(t),l=()=>{o(s.matches)};return l(),s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[t,r]),i}const hue={...HS},nq=hue.useSyncExternalStore;function pue(t,e,r,n,a){const i=z.useCallback(()=>e,[e]),o=z.useMemo(()=>{if(a&&r)return()=>r(t).matches;if(n!==null){const{matches:d}=n(t);return()=>d}return i},[i,t,n,a,r]),[s,l]=z.useMemo(()=>{if(r===null)return[i,()=>()=>{}];const d=r(t);return[()=>d.matches,u=>(d.addEventListener("change",u),()=>{d.removeEventListener("change",u)})]},[i,r,t]);return nq(l,s,o)}function mue(t={}){const{themeId:e}=t;return function(n,a={}){let i=QR();i&&e&&(i=i[e]||i);const o=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=o?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:d=!1}=due({name:"MuiUseMediaQuery",props:a,theme:i});let u=typeof n=="function"?n(i):n;return u=u.replace(/^@media( ?)/m,""),(nq!==void 0?pue:fue)(u,s,l,c,d)}}function vue(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function tL(t,e=0,r=1){return vue(t,e,r)}function gue(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function td(t){if(t.type)return t;if(t.charAt(0)==="#")return td(gue(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(xc(9,t));let n=t.substring(e+1,t.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(xc(10,a))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:a}}const _ue=t=>{const e=td(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},A_=(t,e)=>{try{return _ue(t)}catch{return t}};function xC(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((a,i)=>i<3?parseInt(a,10):a):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function aq(t){t=td(t);const{values:e}=t,r=e[0],n=e[1]/100,a=e[2]/100,i=n*Math.min(a,1-a),o=(c,d=(c+r/30)%12)=>a-i*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return t.type==="hsla"&&(s+="a",l.push(e[3])),xC({type:s,values:l})}function VA(t){t=td(t);let e=t.type==="hsl"||t.type==="hsla"?td(aq(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function yue(t,e){const r=VA(t),n=VA(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function pn(t,e){return t=td(t),e=tL(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,xC(t)}function D1(t,e,r){try{return pn(t,e)}catch{return t}}function CC(t,e){if(t=td(t),e=tL(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return xC(t)}function Nr(t,e,r){try{return CC(t,e)}catch{return t}}function TC(t,e){if(t=td(t),e=tL(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return xC(t)}function Fr(t,e,r){try{return TC(t,e)}catch{return t}}function GA(t,e=.15){return VA(t)>.5?CC(t,e):TC(t,e)}function M1(t,e,r){try{return GA(t,e)}catch{return t}}function qA(...t){return t.reduce((e,r)=>r==null?e:function(...a){e.apply(this,a),r.apply(this,a)},()=>{})}function kC(t,e=166){let r;function n(...a){const i=()=>{t.apply(this,a)};clearTimeout(r),r=setTimeout(i,e)}return n.clear=()=>{clearTimeout(r)},n}function Z2(t,e){var r,n,a;return z.isValidElement(t)&&e.indexOf(t.type.muiName??((a=(n=(r=t.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:a.muiName))!==-1}function di(t){return t&&t.ownerDocument||document}function ps(t){return di(t).defaultView||window}function XA(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let hz=0;function bue(t){const[e,r]=z.useState(t),n=t||e;return z.useEffect(()=>{e==null&&(hz+=1,r(`mui-${hz}`))},[e]),n}const wue={...HS},pz=wue.useId;function EC(t){if(pz!==void 0){const e=pz();return t??e}return bue(t)}function GS({controlled:t,default:e,name:r,state:n="value"}){const{current:a}=z.useRef(t!==void 0),[i,o]=z.useState(e),s=a?t:i,l=z.useCallback(c=>{a||o(c)},[]);return[s,l]}function ds(t){const e=z.useRef(t);return yo(()=>{e.current=t}),z.useRef((...r)=>(0,e.current)(...r)).current}function Mn(...t){return z.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{XA(r,e)})},t)}const mz={};function iq(t,e){const r=z.useRef(mz);return r.current===mz&&(r.current=t(e)),r}const Sue=[];function xue(t){z.useEffect(t,Sue)}class DC{constructor(){de(this,"currentId",null);de(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});de(this,"disposeEffect",()=>this.clear)}static create(){return new DC}start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}}function bm(){const t=iq(DC.create).current;return xue(t.disposeEffect),t}function qS(t){try{return t.matches(":focus-visible")}catch{}return!1}function oq(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}function Lt(t,e,r=void 0){const n={};for(const a in t){const i=t[a];let o="",s=!0;for(let l=0;ln.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function vz(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function cq(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:i}=t;if(!e){const p=Ze(r==null?void 0:r.className,i,a==null?void 0:a.className,n==null?void 0:n.className),v={...r==null?void 0:r.style,...a==null?void 0:a.style,...n==null?void 0:n.style},g={...r,...a,...n};return p.length>0&&(g.className=p),Object.keys(v).length>0&&(g.style=v),{props:g,internalRef:void 0}}const o=lq({...a,...n}),s=vz(n),l=vz(a),c=e(o),d=Ze(c==null?void 0:c.className,r==null?void 0:r.className,i,a==null?void 0:a.className,n==null?void 0:n.className),u={...c==null?void 0:c.style,...r==null?void 0:r.style,...a==null?void 0:a.style,...n==null?void 0:n.style},f={...c,...r,...l,...s};return d.length>0&&(f.className=d),Object.keys(u).length>0&&(f.style=u),{props:f,internalRef:c.ref}}function uq(t,e,r){return typeof t=="function"?t(e,r):t}function rd(t){var u;const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:a=!1,...i}=t,o=a?{}:uq(r,n),{props:s,internalRef:l}=cq({...i,externalSlotProps:o}),c=Mn(l,o==null?void 0:o.ref,(u=t.additionalProps)==null?void 0:u.ref);return sq(e,{...s,ref:c},n)}function mv(t){var e;return parseInt(z.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}const dq=z.createContext(null);function rL(){return z.useContext(dq)}const Tue=typeof Symbol=="function"&&Symbol.for,kue=Tue?Symbol.for("mui.nested"):"__THEME_NESTED__";function Eue(t,e){return typeof e=="function"?e(t):{...t,...e}}function Due(t){const{children:e,theme:r}=t,n=rL(),a=z.useMemo(()=>{const i=n===null?{...r}:Eue(n,r);return i!=null&&(i[kue]=n!==null),i},[r,n]);return q.jsx(dq.Provider,{value:a,children:e})}const fq=z.createContext();function Mue({value:t,...e}){return q.jsx(fq.Provider,{value:t??!0,...e})}const vv=()=>z.useContext(fq)??!1,hq=z.createContext(void 0);function Oue({value:t,children:e}){return q.jsx(hq.Provider,{value:t,children:e})}function $ue(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const a=e.components[r];return a.defaultProps?by(a.defaultProps,n):!a.styleOverrides&&!a.variants?by(a,n):n}function Aue({props:t,name:e}){const r=z.useContext(hq);return $ue({props:t,name:e,theme:{components:r}})}const gz={};function _z(t,e,r,n=!1){return z.useMemo(()=>{const a=t&&e[t]||e;if(typeof r=="function"){const i=r(a),o=t?{...e,[t]:i}:i;return n?()=>o:o}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function pq(t){const{children:e,theme:r,themeId:n}=t,a=QR(gz),i=rL()||gz,o=_z(n,a,r),s=_z(n,i,r,!0),l=(n?o[n]:o).direction==="rtl";return q.jsx(Due,{theme:s,children:q.jsx(f0.Provider,{value:o,children:q.jsx(Mue,{value:l,children:q.jsx(Oue,{value:n?o[n].components:o.components,children:e})})})})}const yz={theme:void 0};function Pue(t){let e,r;return function(a){let i=e;return(i===void 0||a.theme!==r)&&(yz.theme=a.theme,i=tq(t(yz)),e=i,r=a.theme),i}}const nL="mode",aL="color-scheme",Iue="data-color-scheme";function Rue(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:a=nL,colorSchemeStorageKey:i=aL,attribute:o=Iue,colorSchemeNode:s="document.documentElement",nonce:l}=t;let c="",d=o;if(o==="class"&&(d=".%s"),o==="data"&&(d="[data-%s]"),d.startsWith(".")){const f=d.substring(1);c+=`${s}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark)); - ${s}.classList.add('${f}'.replace('%s', colorScheme));`}const u=d.match(/\[([^\]]+)\]/);if(u){const[f,p]=u[1].split("=");p||(c+=`${s}.removeAttribute('${f}'.replace('%s', light)); - ${s}.removeAttribute('${f}'.replace('%s', dark));`),c+=` - ${s}.setAttribute('${f}'.replace('%s', colorScheme), ${p?`${p}.replace('%s', colorScheme)`:'""'});`}else c+=`${s}.setAttribute('${d}', colorScheme);`;return q.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { -try { - let colorScheme = ''; - const mode = localStorage.getItem('${a}') || '${e}'; - const dark = localStorage.getItem('${i}-dark') || '${n}'; - const light = localStorage.getItem('${i}-light') || '${r}'; - if (mode === 'system') { - // handle system mode - const mql = window.matchMedia('(prefers-color-scheme: dark)'); - if (mql.matches) { - colorScheme = dark - } else { - colorScheme = light - } - } - if (mode === 'light') { - colorScheme = light; - } - if (mode === 'dark') { - colorScheme = dark; - } - if (colorScheme) { - ${c} - } -} catch(e){}})();`}},"mui-color-scheme-init")}function bz(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function mq(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function Lue(t){return mq(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function K2(t,e){if(typeof window>"u")return;let r;try{r=localStorage.getItem(t)||void 0,r||localStorage.setItem(t,e)}catch{}return r||e}function Nue(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:a=[],modeStorageKey:i=nL,colorSchemeStorageKey:o=aL,storageWindow:s=typeof window>"u"?void 0:window,noSsr:l=!1}=t,c=a.join(","),d=a.length>1,[u,f]=z.useState(()=>{const C=K2(i,e),M=K2(`${o}-light`,r),k=K2(`${o}-dark`,n);return{mode:C,systemMode:bz(C),lightColorScheme:M,darkColorScheme:k}}),[p,v]=z.useState(l||!d);z.useEffect(()=>{v(!0)},[]);const g=Lue(u),_=z.useCallback(C=>{f(M=>{if(C===M.mode)return M;const k=C??e;try{localStorage.setItem(i,k)}catch{}return{...M,mode:k,systemMode:bz(k)}})},[i,e]),b=z.useCallback(C=>{C?typeof C=="string"?C&&!c.includes(C)?console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`):f(M=>{const k={...M};return mq(M,O=>{try{localStorage.setItem(`${o}-${O}`,C)}catch{}O==="light"&&(k.lightColorScheme=C),O==="dark"&&(k.darkColorScheme=C)}),k}):f(M=>{const k={...M},O=C.light===null?r:C.light,R=C.dark===null?n:C.dark;if(O)if(!c.includes(O))console.error(`\`${O}\` does not exist in \`theme.colorSchemes\`.`);else{k.lightColorScheme=O;try{localStorage.setItem(`${o}-light`,O)}catch{}}if(R)if(!c.includes(R))console.error(`\`${R}\` does not exist in \`theme.colorSchemes\`.`);else{k.darkColorScheme=R;try{localStorage.setItem(`${o}-dark`,R)}catch{}}return k}):f(M=>{try{localStorage.setItem(`${o}-light`,r),localStorage.setItem(`${o}-dark`,n)}catch{}return{...M,lightColorScheme:r,darkColorScheme:n}})},[c,o,r,n]),w=z.useCallback(C=>{u.mode==="system"&&f(M=>{const k=C!=null&&C.matches?"dark":"light";return M.systemMode===k?M:{...M,systemMode:k}})},[u.mode]),x=z.useRef(w);return x.current=w,z.useEffect(()=>{if(typeof window.matchMedia!="function"||!d)return;const C=(...k)=>x.current(...k),M=window.matchMedia("(prefers-color-scheme: dark)");return M.addListener(C),C(M),()=>{M.removeListener(C)}},[d]),z.useEffect(()=>{if(s&&d){const C=M=>{const k=M.newValue;typeof M.key=="string"&&M.key.startsWith(o)&&(!k||c.match(k))&&(M.key.endsWith("light")&&b({light:k}),M.key.endsWith("dark")&&b({dark:k})),M.key===i&&(!k||["light","dark","system"].includes(k))&&_(k||e)};return s.addEventListener("storage",C),()=>{s.removeEventListener("storage",C)}}},[b,_,i,o,c,e,s,d]),{...u,mode:p?u.mode:void 0,systemMode:p?u.systemMode:void 0,colorScheme:p?g:void 0,setMode:_,setColorScheme:b}}const Fue="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function zue(t){const{themeId:e,theme:r={},modeStorageKey:n=nL,colorSchemeStorageKey:a=aL,disableTransitionOnChange:i=!1,defaultColorScheme:o,resolveTheme:s}=t,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=z.createContext(void 0),d=()=>z.useContext(c)||l,u={},f={};function p(b){var Vt,_e,He,pt;const{children:w,theme:x,modeStorageKey:C=n,colorSchemeStorageKey:M=a,disableTransitionOnChange:k=i,storageWindow:O=typeof window>"u"?void 0:window,documentNode:R=typeof document>"u"?void 0:document,colorSchemeNode:L=typeof document>"u"?void 0:document.documentElement,disableNestedContext:$=!1,disableStyleSheetGeneration:N=!1,defaultMode:W="system",noSsr:j}=b,Y=z.useRef(!1),V=rL(),J=z.useContext(c),ie=!!J&&!$,K=z.useMemo(()=>x||(typeof r=="function"?r():r),[x]),Q=K[e],oe=Q||K,{colorSchemes:H=u,components:X=f,cssVarPrefix:ae}=oe,re=Object.keys(H).filter(ct=>!!H[ct]).join(","),le=z.useMemo(()=>re.split(","),[re]),Ee=typeof o=="string"?o:o.light,We=typeof o=="string"?o:o.dark,Ne=H[Ee]&&H[We]?W:((_e=(Vt=H[oe.defaultColorScheme])==null?void 0:Vt.palette)==null?void 0:_e.mode)||((He=oe.palette)==null?void 0:He.mode),{mode:Le,setMode:Pe,systemMode:we,lightColorScheme:ye,darkColorScheme:ht,colorScheme:Be,setColorScheme:je}=Nue({supportedColorSchemes:le,defaultLightColorScheme:Ee,defaultDarkColorScheme:We,modeStorageKey:C,colorSchemeStorageKey:M,defaultMode:Ne,storageWindow:O,noSsr:j});let Dt=Le,Me=Be;ie&&(Dt=J.mode,Me=J.colorScheme);const ot=z.useMemo(()=>{var nt;const ct=Me||oe.defaultColorScheme,ut=((nt=oe.generateThemeVars)==null?void 0:nt.call(oe))||oe.vars,Et={...oe,components:X,colorSchemes:H,cssVarPrefix:ae,vars:ut};if(typeof Et.generateSpacing=="function"&&(Et.spacing=Et.generateSpacing()),ct){const Ke=H[ct];Ke&&typeof Ke=="object"&&Object.keys(Ke).forEach(nr=>{Ke[nr]&&typeof Ke[nr]=="object"?Et[nr]={...Et[nr],...Ke[nr]}:Et[nr]=Ke[nr]})}return s?s(Et):Et},[oe,Me,X,H,ae]),kt=oe.colorSchemeSelector;z.useEffect(()=>{if(Me&&L&&kt&&kt!=="media"){const ct=kt;let ut=kt;if(ct==="class"&&(ut=".%s"),ct==="data"&&(ut="[data-%s]"),ct!=null&&ct.startsWith("data-")&&!ct.includes("%s")&&(ut=`[${ct}="%s"]`),ut.startsWith("."))L.classList.remove(...le.map(Et=>ut.substring(1).replace("%s",Et))),L.classList.add(ut.substring(1).replace("%s",Me));else{const Et=ut.replace("%s",Me).match(/\[([^\]]+)\]/);if(Et){const[nt,Ke]=Et[1].split("=");Ke||le.forEach(nr=>{L.removeAttribute(nt.replace(Me,nr))}),L.setAttribute(nt,Ke?Ke.replace(/"|'/g,""):"")}else L.setAttribute(ut,Me)}}},[Me,kt,L,le]),z.useEffect(()=>{let ct;if(k&&Y.current&&R){const ut=R.createElement("style");ut.appendChild(R.createTextNode(Fue)),R.head.appendChild(ut),window.getComputedStyle(R.body),ct=setTimeout(()=>{R.head.removeChild(ut)},1)}return()=>{clearTimeout(ct)}},[Me,k,R]),z.useEffect(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const _t=z.useMemo(()=>({allColorSchemes:le,colorScheme:Me,darkColorScheme:ht,lightColorScheme:ye,mode:Dt,setColorScheme:je,setMode:Pe,systemMode:we}),[le,Me,ht,ye,Dt,je,Pe,we,ot.colorSchemeSelector]);let tt=!0;(N||oe.cssVariables===!1||ie&&(V==null?void 0:V.cssVarPrefix)===ae)&&(tt=!1);const Fe=q.jsxs(z.Fragment,{children:[q.jsx(pq,{themeId:Q?e:void 0,theme:ot,children:w}),tt&&q.jsx(GG,{styles:((pt=ot.generateStyleSheets)==null?void 0:pt.call(ot))||[]})]});return ie?Fe:q.jsx(c.Provider,{value:_t,children:Fe})}const v=typeof o=="string"?o:o.light,g=typeof o=="string"?o:o.dark;return{CssVarsProvider:p,useColorScheme:d,getInitColorSchemeScript:b=>Rue({colorSchemeStorageKey:a,defaultLightColorScheme:v,defaultDarkColorScheme:g,modeStorageKey:n,...b})}}function Bue(t=""){function e(...n){if(!n.length)return"";const a=n[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${a}${e(...n.slice(1))})`:`, ${a}`}return(n,...a)=>`var(--${t?`${t}-`:""}${n}${e(...a)})`}const wz=(t,e,r,n=[])=>{let a=t;e.forEach((i,o)=>{o===e.length-1?Array.isArray(a)?a[Number(i)]=r:a&&typeof a=="object"&&(a[i]=r):a&&typeof a=="object"&&(a[i]||(a[i]=n.includes(i)?[]:{}),a=a[i])})},jue=(t,e,r)=>{function n(a,i=[],o=[]){Object.entries(a).forEach(([s,l])=>{(!r||!r([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...i,s],Array.isArray(l)?[...o,s]:o):e([...i,s],l,o))})}n(t)},Wue=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function Q2(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},a={},i={},o={};return jue(t,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const d=`--${r?`${r}-`:""}${s.join("-")}`,u=Wue(s,l);Object.assign(a,{[d]:u}),wz(i,s,`var(${d})`,c),wz(o,s,`var(${d}, ${u})`,c)}},s=>s[0]==="vars"),{css:a,vars:i,varsWithDefaults:o}}function Hue(t,e={}){const{getSelector:r=_,disableCssColorScheme:n,colorSchemeSelector:a}=e,{colorSchemes:i={},components:o,defaultColorScheme:s="light",...l}=t,{vars:c,css:d,varsWithDefaults:u}=Q2(l,e);let f=u;const p={},{[s]:v,...g}=i;if(Object.entries(g||{}).forEach(([x,C])=>{const{vars:M,css:k,varsWithDefaults:O}=Q2(C,e);f=Ta(f,O),p[x]={css:k,vars:M}}),v){const{css:x,vars:C,varsWithDefaults:M}=Q2(v,e);f=Ta(f,M),p[s]={css:x,vars:C}}function _(x,C){var k,O;let M=a;if(a==="class"&&(M=".%s"),a==="data"&&(M="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(M=`[${a}="%s"]`),x){if(M==="media")return t.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${((O=(k=i[x])==null?void 0:k.palette)==null?void 0:O.mode)||x})`]:{":root":C}};if(M)return t.defaultColorScheme===x?`:root, ${M.replace("%s",String(x))}`:M.replace("%s",String(x))}return":root"}return{vars:f,generateThemeVars:()=>{let x={...c};return Object.entries(p).forEach(([,{vars:C}])=>{x=Ta(x,C)}),x},generateStyleSheets:()=>{var R,L;const x=[],C=t.defaultColorScheme||"light";function M($,N){Object.keys(N).length&&x.push(typeof $=="string"?{[$]:{...N}}:$)}M(r(void 0,{...d}),d);const{[C]:k,...O}=p;if(k){const{css:$}=k,N=(L=(R=i[C])==null?void 0:R.palette)==null?void 0:L.mode,W=!n&&N?{colorScheme:N,...$}:{...$};M(r(C,{...W}),W)}return Object.entries(O).forEach(([$,{css:N}])=>{var Y,V;const W=(V=(Y=i[$])==null?void 0:Y.palette)==null?void 0:V.mode,j=!n&&W?{colorScheme:W,...N}:{...N};M(r($,{...j}),j)}),x}}}function Uue(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}const wy={black:"#000",white:"#fff"},JA={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"},_p={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"},yp={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"},ta={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"},bp={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"},wp={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"},Sp={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 vq(){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:wy.white,default:wy.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Yue=vq();function gq(){return{text:{primary:wy.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:wy.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Sz=gq();function xz(t,e,r,n){const a=n.light||n,i=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=TC(t.main,a):e==="dark"&&(t.dark=CC(t.main,i)))}function Vue(t="light"){return t==="dark"?{main:bp[200],light:bp[50],dark:bp[400]}:{main:bp[700],light:bp[400],dark:bp[800]}}function Gue(t="light"){return t==="dark"?{main:_p[200],light:_p[50],dark:_p[400]}:{main:_p[500],light:_p[300],dark:_p[700]}}function que(t="light"){return t==="dark"?{main:yp[500],light:yp[300],dark:yp[700]}:{main:yp[700],light:yp[400],dark:yp[800]}}function Xue(t="light"){return t==="dark"?{main:wp[400],light:wp[300],dark:wp[700]}:{main:wp[700],light:wp[500],dark:wp[900]}}function Jue(t="light"){return t==="dark"?{main:Sp[400],light:Sp[300],dark:Sp[700]}:{main:Sp[800],light:Sp[500],dark:Sp[900]}}function Zue(t="light"){return t==="dark"?{main:ta[400],light:ta[300],dark:ta[700]}:{main:"#ed6c02",light:ta[500],dark:ta[900]}}function iL(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,...a}=t,i=t.primary||Vue(e),o=t.secondary||Gue(e),s=t.error||que(e),l=t.info||Xue(e),c=t.success||Jue(e),d=t.warning||Zue(e);function u(g){return yue(g,Sz.text.primary)>=r?Sz.text.primary:Yue.text.primary}const f=({color:g,name:_,mainShade:b=500,lightShade:w=300,darkShade:x=700})=>{if(g={...g},!g.main&&g[b]&&(g.main=g[b]),!g.hasOwnProperty("main"))throw new Error(xc(11,_?` (${_})`:"",b));if(typeof g.main!="string")throw new Error(xc(12,_?` (${_})`:"",JSON.stringify(g.main)));return xz(g,"light",w,n),xz(g,"dark",x,n),g.contrastText||(g.contrastText=u(g.main)),g};let p;return e==="light"?p=vq():e==="dark"&&(p=gq()),Ta({common:{...wy},mode:e,primary:f({color:i,name:"primary"}),secondary:f({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:JA,contrastThreshold:r,getContrastText:u,augmentColor:f,tonalOffset:n,...p},a)}function Kue(t){const e={};return Object.entries(t).forEach(n=>{const[a,i]=n;typeof i=="object"&&(e[a]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),e}function Que(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function ede(t){return Math.round(t*1e5)/1e5}const Cz={textTransform:"uppercase"},Tz='"Roboto", "Helvetica", "Arial", sans-serif';function _q(t,e){const{fontFamily:r=Tz,fontSize:n=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:d,...u}=typeof e=="function"?e(t):e,f=n/14,p=d||(_=>`${_/l*f}rem`),v=(_,b,w,x,C)=>({fontFamily:r,fontWeight:_,fontSize:p(b),lineHeight:w,...r===Tz?{letterSpacing:`${ede(x/b)}em`}:{},...C,...c}),g={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(o,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(o,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(o,14,1.75,.4,Cz),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,Cz),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ta({htmlFontSize:l,pxToRem:p,fontFamily:r,fontSize:n,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:o,fontWeightBold:s,...g},u,{clone:!1})}const tde=.2,rde=.14,nde=.12;function Kr(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${tde})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${rde})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${nde})`].join(",")}const ade=["none",Kr(0,2,1,-1,0,1,1,0,0,1,3,0),Kr(0,3,1,-2,0,2,2,0,0,1,5,0),Kr(0,3,3,-2,0,3,4,0,0,1,8,0),Kr(0,2,4,-1,0,4,5,0,0,1,10,0),Kr(0,3,5,-1,0,5,8,0,0,1,14,0),Kr(0,3,5,-1,0,6,10,0,0,1,18,0),Kr(0,4,5,-2,0,7,10,1,0,2,16,1),Kr(0,5,5,-3,0,8,10,1,0,3,14,2),Kr(0,5,6,-3,0,9,12,1,0,3,16,2),Kr(0,6,6,-3,0,10,14,1,0,4,18,3),Kr(0,6,7,-4,0,11,15,1,0,4,20,3),Kr(0,7,8,-4,0,12,17,2,0,5,22,4),Kr(0,7,8,-4,0,13,19,2,0,5,24,4),Kr(0,7,9,-4,0,14,21,2,0,5,26,4),Kr(0,8,9,-5,0,15,22,2,0,6,28,5),Kr(0,8,10,-5,0,16,24,2,0,6,30,5),Kr(0,8,11,-5,0,17,26,2,0,6,32,5),Kr(0,9,11,-5,0,18,28,2,0,7,34,6),Kr(0,9,12,-6,0,19,29,2,0,7,36,6),Kr(0,10,13,-6,0,20,31,3,0,8,38,7),Kr(0,10,13,-6,0,21,33,3,0,8,40,7),Kr(0,10,14,-6,0,22,35,3,0,8,42,7),Kr(0,11,14,-7,0,23,36,3,0,9,44,8),Kr(0,11,15,-7,0,24,38,3,0,9,46,8)],ide={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)"},ode={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function kz(t){return`${Math.round(t)}ms`}function sde(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function lde(t){const e={...ide,...t.easing},r={...ode,...t.duration};return{getAutoHeightDuration:sde,create:(a=["all"],i={})=>{const{duration:o=r.standard,easing:s=e.easeInOut,delay:l=0,...c}=i;return(Array.isArray(a)?a:[a]).map(d=>`${d} ${typeof o=="string"?o:kz(o)} ${s} ${typeof l=="string"?l:kz(l)}`).join(",")},...t,easing:e,duration:r}}const cde={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ude(t){return sl(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function yq(t={}){const e={...t};function r(n){const a=Object.entries(n);for(let i=0;iTa(p,v),f),f.unstable_sxConfig={...m0,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(v){return ed({sx:v,theme:this})},f.toRuntimeSource=yq,f}function KA(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const dde=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=KA(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function bq(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function wq(t){return t==="dark"?dde:[]}function fde(t){const{palette:e={mode:"light"},opacity:r,overlays:n,...a}=t,i=iL(e);return{palette:i,opacity:{...bq(i.mode),...r},overlays:n||wq(i.mode),...a}}function hde(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const pde=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],mde=t=>(e,r)=>{const n=t.rootSelector||":root",a=t.colorSchemeSelector;let i=a;if(a==="class"&&(i=".%s"),a==="data"&&(i="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(i=`[${a}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const o={};return pde(t.cssVarPrefix).forEach(s=>{o[s]=r[s],delete r[s]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:o}}:i?{[i.replace("%s",e)]:o,[`${n}, ${i.replace("%s",e)}`]:r}:{[n]:{...r,...o}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(e))}`}else if(e){if(i==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(i)return i.replace("%s",String(e))}return n};function vde(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function pe(t,e,r){!t[e]&&r&&(t[e]=r)}function P_(t){return typeof t!="string"||!t.startsWith("hsl")?t:aq(t)}function Yl(t,e){`${e}Channel`in t||(t[`${e}Channel`]=A_(P_(t[e])))}function gde(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Ys=t=>{try{return t()}catch{}},_de=(t="mui")=>Bue(t);function eE(t,e,r,n){if(!e)return;e=e===!0?{}:e;const a=n==="dark"?"dark":"light";if(!r){t[n]=fde({...e,palette:{mode:a,...e==null?void 0:e.palette}});return}const{palette:i,...o}=ZA({...r,palette:{mode:a,...e==null?void 0:e.palette}});return t[n]={...e,palette:i,opacity:{...bq(a),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||wq(a)},o}function yde(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:a=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:o=hde,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=t,d=Object.keys(r)[0],u=n||(r.light&&d!=="light"?"light":d),f=_de(i),{[u]:p,light:v,dark:g,..._}=r,b={..._};let w=p;if((u==="dark"&&!("dark"in r)||u==="light"&&!("light"in r))&&(w=!0),!w)throw new Error(xc(21,u));const x=eE(b,w,c,u);v&&!b.light&&eE(b,v,void 0,"light"),g&&!b.dark&&eE(b,g,void 0,"dark");let C={defaultColorScheme:u,...x,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:b,font:{...Kue(x.typography),...x.font},spacing:gde(c.spacing)};Object.keys(C.colorSchemes).forEach(L=>{const $=C.colorSchemes[L].palette,N=W=>{const j=W.split("-"),Y=j[1],V=j[2];return f(W,$[Y][V])};if($.mode==="light"&&(pe($.common,"background","#fff"),pe($.common,"onBackground","#000")),$.mode==="dark"&&(pe($.common,"background","#000"),pe($.common,"onBackground","#fff")),vde($,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),$.mode==="light"){pe($.Alert,"errorColor",Nr($.error.light,.6)),pe($.Alert,"infoColor",Nr($.info.light,.6)),pe($.Alert,"successColor",Nr($.success.light,.6)),pe($.Alert,"warningColor",Nr($.warning.light,.6)),pe($.Alert,"errorFilledBg",N("palette-error-main")),pe($.Alert,"infoFilledBg",N("palette-info-main")),pe($.Alert,"successFilledBg",N("palette-success-main")),pe($.Alert,"warningFilledBg",N("palette-warning-main")),pe($.Alert,"errorFilledColor",Ys(()=>$.getContrastText($.error.main))),pe($.Alert,"infoFilledColor",Ys(()=>$.getContrastText($.info.main))),pe($.Alert,"successFilledColor",Ys(()=>$.getContrastText($.success.main))),pe($.Alert,"warningFilledColor",Ys(()=>$.getContrastText($.warning.main))),pe($.Alert,"errorStandardBg",Fr($.error.light,.9)),pe($.Alert,"infoStandardBg",Fr($.info.light,.9)),pe($.Alert,"successStandardBg",Fr($.success.light,.9)),pe($.Alert,"warningStandardBg",Fr($.warning.light,.9)),pe($.Alert,"errorIconColor",N("palette-error-main")),pe($.Alert,"infoIconColor",N("palette-info-main")),pe($.Alert,"successIconColor",N("palette-success-main")),pe($.Alert,"warningIconColor",N("palette-warning-main")),pe($.AppBar,"defaultBg",N("palette-grey-100")),pe($.Avatar,"defaultBg",N("palette-grey-400")),pe($.Button,"inheritContainedBg",N("palette-grey-300")),pe($.Button,"inheritContainedHoverBg",N("palette-grey-A100")),pe($.Chip,"defaultBorder",N("palette-grey-400")),pe($.Chip,"defaultAvatarColor",N("palette-grey-700")),pe($.Chip,"defaultIconColor",N("palette-grey-700")),pe($.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),pe($.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),pe($.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),pe($.LinearProgress,"primaryBg",Fr($.primary.main,.62)),pe($.LinearProgress,"secondaryBg",Fr($.secondary.main,.62)),pe($.LinearProgress,"errorBg",Fr($.error.main,.62)),pe($.LinearProgress,"infoBg",Fr($.info.main,.62)),pe($.LinearProgress,"successBg",Fr($.success.main,.62)),pe($.LinearProgress,"warningBg",Fr($.warning.main,.62)),pe($.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.11)`),pe($.Slider,"primaryTrack",Fr($.primary.main,.62)),pe($.Slider,"secondaryTrack",Fr($.secondary.main,.62)),pe($.Slider,"errorTrack",Fr($.error.main,.62)),pe($.Slider,"infoTrack",Fr($.info.main,.62)),pe($.Slider,"successTrack",Fr($.success.main,.62)),pe($.Slider,"warningTrack",Fr($.warning.main,.62));const W=M1($.background.default,.8);pe($.SnackbarContent,"bg",W),pe($.SnackbarContent,"color",Ys(()=>$.getContrastText(W))),pe($.SpeedDialAction,"fabHoverBg",M1($.background.paper,.15)),pe($.StepConnector,"border",N("palette-grey-400")),pe($.StepContent,"border",N("palette-grey-400")),pe($.Switch,"defaultColor",N("palette-common-white")),pe($.Switch,"defaultDisabledColor",N("palette-grey-100")),pe($.Switch,"primaryDisabledColor",Fr($.primary.main,.62)),pe($.Switch,"secondaryDisabledColor",Fr($.secondary.main,.62)),pe($.Switch,"errorDisabledColor",Fr($.error.main,.62)),pe($.Switch,"infoDisabledColor",Fr($.info.main,.62)),pe($.Switch,"successDisabledColor",Fr($.success.main,.62)),pe($.Switch,"warningDisabledColor",Fr($.warning.main,.62)),pe($.TableCell,"border",Fr(D1($.divider,1),.88)),pe($.Tooltip,"bg",D1($.grey[700],.92))}if($.mode==="dark"){pe($.Alert,"errorColor",Fr($.error.light,.6)),pe($.Alert,"infoColor",Fr($.info.light,.6)),pe($.Alert,"successColor",Fr($.success.light,.6)),pe($.Alert,"warningColor",Fr($.warning.light,.6)),pe($.Alert,"errorFilledBg",N("palette-error-dark")),pe($.Alert,"infoFilledBg",N("palette-info-dark")),pe($.Alert,"successFilledBg",N("palette-success-dark")),pe($.Alert,"warningFilledBg",N("palette-warning-dark")),pe($.Alert,"errorFilledColor",Ys(()=>$.getContrastText($.error.dark))),pe($.Alert,"infoFilledColor",Ys(()=>$.getContrastText($.info.dark))),pe($.Alert,"successFilledColor",Ys(()=>$.getContrastText($.success.dark))),pe($.Alert,"warningFilledColor",Ys(()=>$.getContrastText($.warning.dark))),pe($.Alert,"errorStandardBg",Nr($.error.light,.9)),pe($.Alert,"infoStandardBg",Nr($.info.light,.9)),pe($.Alert,"successStandardBg",Nr($.success.light,.9)),pe($.Alert,"warningStandardBg",Nr($.warning.light,.9)),pe($.Alert,"errorIconColor",N("palette-error-main")),pe($.Alert,"infoIconColor",N("palette-info-main")),pe($.Alert,"successIconColor",N("palette-success-main")),pe($.Alert,"warningIconColor",N("palette-warning-main")),pe($.AppBar,"defaultBg",N("palette-grey-900")),pe($.AppBar,"darkBg",N("palette-background-paper")),pe($.AppBar,"darkColor",N("palette-text-primary")),pe($.Avatar,"defaultBg",N("palette-grey-600")),pe($.Button,"inheritContainedBg",N("palette-grey-800")),pe($.Button,"inheritContainedHoverBg",N("palette-grey-700")),pe($.Chip,"defaultBorder",N("palette-grey-700")),pe($.Chip,"defaultAvatarColor",N("palette-grey-300")),pe($.Chip,"defaultIconColor",N("palette-grey-300")),pe($.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),pe($.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),pe($.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),pe($.LinearProgress,"primaryBg",Nr($.primary.main,.5)),pe($.LinearProgress,"secondaryBg",Nr($.secondary.main,.5)),pe($.LinearProgress,"errorBg",Nr($.error.main,.5)),pe($.LinearProgress,"infoBg",Nr($.info.main,.5)),pe($.LinearProgress,"successBg",Nr($.success.main,.5)),pe($.LinearProgress,"warningBg",Nr($.warning.main,.5)),pe($.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.13)`),pe($.Slider,"primaryTrack",Nr($.primary.main,.5)),pe($.Slider,"secondaryTrack",Nr($.secondary.main,.5)),pe($.Slider,"errorTrack",Nr($.error.main,.5)),pe($.Slider,"infoTrack",Nr($.info.main,.5)),pe($.Slider,"successTrack",Nr($.success.main,.5)),pe($.Slider,"warningTrack",Nr($.warning.main,.5));const W=M1($.background.default,.98);pe($.SnackbarContent,"bg",W),pe($.SnackbarContent,"color",Ys(()=>$.getContrastText(W))),pe($.SpeedDialAction,"fabHoverBg",M1($.background.paper,.15)),pe($.StepConnector,"border",N("palette-grey-600")),pe($.StepContent,"border",N("palette-grey-600")),pe($.Switch,"defaultColor",N("palette-grey-300")),pe($.Switch,"defaultDisabledColor",N("palette-grey-600")),pe($.Switch,"primaryDisabledColor",Nr($.primary.main,.55)),pe($.Switch,"secondaryDisabledColor",Nr($.secondary.main,.55)),pe($.Switch,"errorDisabledColor",Nr($.error.main,.55)),pe($.Switch,"infoDisabledColor",Nr($.info.main,.55)),pe($.Switch,"successDisabledColor",Nr($.success.main,.55)),pe($.Switch,"warningDisabledColor",Nr($.warning.main,.55)),pe($.TableCell,"border",Nr(D1($.divider,1),.68)),pe($.Tooltip,"bg",D1($.grey[700],.92))}Yl($.background,"default"),Yl($.background,"paper"),Yl($.common,"background"),Yl($.common,"onBackground"),Yl($,"divider"),Object.keys($).forEach(W=>{const j=$[W];W!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&pe($[W],"mainChannel",A_(P_(j.main))),j.light&&pe($[W],"lightChannel",A_(P_(j.light))),j.dark&&pe($[W],"darkChannel",A_(P_(j.dark))),j.contrastText&&pe($[W],"contrastTextChannel",A_(P_(j.contrastText))),W==="text"&&(Yl($[W],"primary"),Yl($[W],"secondary")),W==="action"&&(j.active&&Yl($[W],"active"),j.selected&&Yl($[W],"selected")))})}),C=e.reduce((L,$)=>Ta(L,$),C);const M={prefix:i,disableCssColorScheme:a,shouldSkipGeneratingVar:o,getSelector:mde(C)},{vars:k,generateThemeVars:O,generateStyleSheets:R}=Hue(C,M);return C.vars=k,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([L,$])=>{C[L]=$}),C.generateThemeVars=O,C.generateStyleSheets=R,C.generateSpacing=function(){return ZG(c.spacing,JR(this))},C.getColorSchemeSelector=Uue(s),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=o,C.unstable_sxConfig={...m0,...c==null?void 0:c.unstable_sxConfig},C.unstable_sx=function($){return ed({sx:$,theme:this})},C.toRuntimeSource=yq,C}function Ez(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:iL({...r===!0?{}:r.palette,mode:e})})}function Sy(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:a=r?void 0:{light:!0},defaultColorScheme:i=r==null?void 0:r.mode,...o}=t,s=i||"light",l=a==null?void 0:a[s],c={...a,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return ZA(t,...e);let d=r;"palette"in t||c[s]&&(c[s]!==!0?d=c[s].palette:s==="dark"&&(d={mode:"dark"}));const u=ZA({...t,palette:d},...e);return u.defaultColorScheme=s,u.colorSchemes=c,u.palette.mode==="light"&&(u.colorSchemes.light={...c.light!==!0&&c.light,palette:u.palette},Ez(u,"dark",c.dark)),u.palette.mode==="dark"&&(u.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:u.palette},Ez(u,"light",c.light)),u}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),yde({...o,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...e)}const oL=Sy();function xh(){const t=eL(oL);return t[us]||t}function Sq(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const qn=t=>Sq(t)&&t!=="classes",$e=oue({themeId:us,defaultTheme:oL,rootShouldForwardProp:qn});function Dz({theme:t,...e}){const r=us in t?t[us]:void 0;return q.jsx(pq,{...e,themeId:r?us:void 0,theme:r||t})}const O1={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:bde,useColorScheme:t3t,getInitColorSchemeScript:r3t}=zue({themeId:us,theme:()=>Sy({cssVariables:!0}),colorSchemeStorageKey:O1.colorSchemeStorageKey,modeStorageKey:O1.modeStorageKey,defaultColorScheme:{light:O1.defaultLightColorScheme,dark:O1.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:_q(t.palette,t.typography)};return e.unstable_sx=function(n){return ed({sx:n,theme:this})},e}}),wde=bde;function Mz({theme:t,...e}){return typeof t=="function"?q.jsx(Dz,{theme:t,...e}):"colorSchemes"in(us in t?t[us]:t)?q.jsx(wde,{theme:t,...e}):q.jsx(Dz,{theme:t,...e})}var mS={exports:{}};function Wi(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var vS={exports:{}};const Sde={},xde=Object.freeze(Object.defineProperty({__proto__:null,default:Sde},Symbol.toStringTag,{value:"Module"})),Cde=ER(xde);var Tde=vS.exports,Oz;function kde(){return Oz||(Oz=1,function(t,e){(function(r,n){t.exports=n()})(Tde,function(){var r=r||function(n,a){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof Ff<"u"&&Ff.crypto&&(i=Ff.crypto),!i&&typeof Wi=="function")try{i=Cde}catch{}var o=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function w(){}return function(x){var C;return w.prototype=x,C=new w,w.prototype=null,C}}(),l={},c=l.lib={},d=c.Base=function(){return{extend:function(w){var x=s(this);return w&&x.mixIn(w),(!x.hasOwnProperty("init")||this.init===x.init)&&(x.init=function(){x.$super.init.apply(this,arguments)}),x.init.prototype=x,x.$super=this,x},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var x in w)w.hasOwnProperty(x)&&(this[x]=w[x]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=c.WordArray=d.extend({init:function(w,x){w=this.words=w||[],x!=a?this.sigBytes=x:this.sigBytes=w.length*4},toString:function(w){return(w||p).stringify(this)},concat:function(w){var x=this.words,C=w.words,M=this.sigBytes,k=w.sigBytes;if(this.clamp(),M%4)for(var O=0;O>>2]>>>24-O%4*8&255;x[M+O>>>2]|=R<<24-(M+O)%4*8}else for(var L=0;L>>2]=C[L>>>2];return this.sigBytes+=k,this},clamp:function(){var w=this.words,x=this.sigBytes;w[x>>>2]&=4294967295<<32-x%4*8,w.length=n.ceil(x/4)},clone:function(){var w=d.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var x=[],C=0;C>>2]>>>24-k%4*8&255;M.push((O>>>4).toString(16)),M.push((O&15).toString(16))}return M.join("")},parse:function(w){for(var x=w.length,C=[],M=0;M>>3]|=parseInt(w.substr(M,2),16)<<24-M%8*4;return new u.init(C,x/2)}},v=f.Latin1={stringify:function(w){for(var x=w.words,C=w.sigBytes,M=[],k=0;k>>2]>>>24-k%4*8&255;M.push(String.fromCharCode(O))}return M.join("")},parse:function(w){for(var x=w.length,C=[],M=0;M>>2]|=(w.charCodeAt(M)&255)<<24-M%4*8;return new u.init(C,x)}},g=f.Utf8={stringify:function(w){try{return decodeURIComponent(escape(v.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return v.parse(unescape(encodeURIComponent(w)))}},_=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=g.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var x,C=this._data,M=C.words,k=C.sigBytes,O=this.blockSize,R=O*4,L=k/R;w?L=n.ceil(L):L=n.max((L|0)-this._minBufferSize,0);var $=L*O,N=n.min($*4,k);if($){for(var W=0;W<$;W+=O)this._doProcessBlock(M,W);x=M.splice(0,$),C.sigBytes-=N}return new u.init(x,N)},clone:function(){var w=d.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});c.Hasher=_.extend({cfg:d.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){_.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var x=this._doFinalize();return x},blockSize:16,_createHelper:function(w){return function(x,C){return new w.init(C).finalize(x)}},_createHmacHelper:function(w){return function(x,C){return new b.HMAC.init(w,C).finalize(x)}}});var b=l.algo={};return l}(Math);return r})}(vS)),vS.exports}var Ede=mS.exports,$z;function Dde(){return $z||($z=1,function(t,e){(function(r,n){t.exports=n(kde())})(Ede,function(r){return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=n.abs(n.sin(g+1))*4294967296|0})();var d=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,_){for(var b=0;b<16;b++){var w=_+b,x=g[w];g[w]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}var C=this._hash.words,M=g[_+0],k=g[_+1],O=g[_+2],R=g[_+3],L=g[_+4],$=g[_+5],N=g[_+6],W=g[_+7],j=g[_+8],Y=g[_+9],V=g[_+10],J=g[_+11],ie=g[_+12],K=g[_+13],Q=g[_+14],oe=g[_+15],H=C[0],X=C[1],ae=C[2],re=C[3];H=u(H,X,ae,re,M,7,c[0]),re=u(re,H,X,ae,k,12,c[1]),ae=u(ae,re,H,X,O,17,c[2]),X=u(X,ae,re,H,R,22,c[3]),H=u(H,X,ae,re,L,7,c[4]),re=u(re,H,X,ae,$,12,c[5]),ae=u(ae,re,H,X,N,17,c[6]),X=u(X,ae,re,H,W,22,c[7]),H=u(H,X,ae,re,j,7,c[8]),re=u(re,H,X,ae,Y,12,c[9]),ae=u(ae,re,H,X,V,17,c[10]),X=u(X,ae,re,H,J,22,c[11]),H=u(H,X,ae,re,ie,7,c[12]),re=u(re,H,X,ae,K,12,c[13]),ae=u(ae,re,H,X,Q,17,c[14]),X=u(X,ae,re,H,oe,22,c[15]),H=f(H,X,ae,re,k,5,c[16]),re=f(re,H,X,ae,N,9,c[17]),ae=f(ae,re,H,X,J,14,c[18]),X=f(X,ae,re,H,M,20,c[19]),H=f(H,X,ae,re,$,5,c[20]),re=f(re,H,X,ae,V,9,c[21]),ae=f(ae,re,H,X,oe,14,c[22]),X=f(X,ae,re,H,L,20,c[23]),H=f(H,X,ae,re,Y,5,c[24]),re=f(re,H,X,ae,Q,9,c[25]),ae=f(ae,re,H,X,R,14,c[26]),X=f(X,ae,re,H,j,20,c[27]),H=f(H,X,ae,re,K,5,c[28]),re=f(re,H,X,ae,O,9,c[29]),ae=f(ae,re,H,X,W,14,c[30]),X=f(X,ae,re,H,ie,20,c[31]),H=p(H,X,ae,re,$,4,c[32]),re=p(re,H,X,ae,j,11,c[33]),ae=p(ae,re,H,X,J,16,c[34]),X=p(X,ae,re,H,Q,23,c[35]),H=p(H,X,ae,re,k,4,c[36]),re=p(re,H,X,ae,L,11,c[37]),ae=p(ae,re,H,X,W,16,c[38]),X=p(X,ae,re,H,V,23,c[39]),H=p(H,X,ae,re,K,4,c[40]),re=p(re,H,X,ae,M,11,c[41]),ae=p(ae,re,H,X,R,16,c[42]),X=p(X,ae,re,H,N,23,c[43]),H=p(H,X,ae,re,Y,4,c[44]),re=p(re,H,X,ae,ie,11,c[45]),ae=p(ae,re,H,X,oe,16,c[46]),X=p(X,ae,re,H,O,23,c[47]),H=v(H,X,ae,re,M,6,c[48]),re=v(re,H,X,ae,W,10,c[49]),ae=v(ae,re,H,X,Q,15,c[50]),X=v(X,ae,re,H,$,21,c[51]),H=v(H,X,ae,re,ie,6,c[52]),re=v(re,H,X,ae,R,10,c[53]),ae=v(ae,re,H,X,V,15,c[54]),X=v(X,ae,re,H,k,21,c[55]),H=v(H,X,ae,re,j,6,c[56]),re=v(re,H,X,ae,oe,10,c[57]),ae=v(ae,re,H,X,N,15,c[58]),X=v(X,ae,re,H,K,21,c[59]),H=v(H,X,ae,re,L,6,c[60]),re=v(re,H,X,ae,J,10,c[61]),ae=v(ae,re,H,X,O,15,c[62]),X=v(X,ae,re,H,Y,21,c[63]),C[0]=C[0]+H|0,C[1]=C[1]+X|0,C[2]=C[2]+ae|0,C[3]=C[3]+re|0},_doFinalize:function(){var g=this._data,_=g.words,b=this._nDataBytes*8,w=g.sigBytes*8;_[w>>>5]|=128<<24-w%32;var x=n.floor(b/4294967296),C=b;_[(w+64>>>9<<4)+15]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,_[(w+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,g.sigBytes=(_.length+1)*4,this._process();for(var M=this._hash,k=M.words,O=0;O<4;O++){var R=k[O];k[O]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return M},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}});function u(g,_,b,w,x,C,M){var k=g+(_&b|~_&w)+x+M;return(k<>>32-C)+_}function f(g,_,b,w,x,C,M){var k=g+(_&w|b&~w)+x+M;return(k<>>32-C)+_}function p(g,_,b,w,x,C,M){var k=g+(_^b^w)+x+M;return(k<>>32-C)+_}function v(g,_,b,w,x,C,M){var k=g+(b^(_|~w))+x+M;return(k<>>32-C)+_}a.MD5=s._createHelper(d),a.HmacMD5=s._createHmacHelper(d)}(Math),r.MD5})}(mS)),mS.exports}var Mde=Dde();const Ode=Tl(Mde);function $de(t){return q.jsx(Kce,{...t,defaultTheme:oL,themeId:us})}function Ade(t){return function(r){return q.jsx($de,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function Pde(){return KG}const $t=Pue;function zt(t){return Aue(t)}function Ide(t){return At("MuiSvgIcon",t)}Tt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Rde=t=>{const{color:e,fontSize:r,classes:n}=t,a={root:["root",e!=="inherit"&&`color${ze(e)}`,`fontSize${ze(r)}`]};return Lt(a,Ide,n)},Lde=$e("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${ze(r.color)}`],e[`fontSize${ze(r.fontSize)}`]]}})($t(({theme:t})=>{var e,r,n,a,i,o,s,l,c,d,u,f,p,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(e=t.transitions)==null?void 0:e.create)==null?void 0:a.call(e,"fill",{duration:(n=(r=(t.vars??t).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(i=t.typography)==null?void 0:i.pxToRem)==null?void 0:o.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=t.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(c=t.typography)==null?void 0:c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,g])=>g&&g.main).map(([g])=>{var _,b;return{props:{color:g},style:{color:(b=(_=(t.vars??t).palette)==null?void 0:_[g])==null?void 0:b.main}}}),{props:{color:"action"},style:{color:(f=(u=(t.vars??t).palette)==null?void 0:u.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(v=(p=(t.vars??t).palette)==null?void 0:p.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),QA=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiSvgIcon"}),{children:a,className:i,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:u,viewBox:f="0 0 24 24",...p}=n,v=z.isValidElement(a)&&a.type==="svg",g={...n,color:o,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:v},_={};d||(_.viewBox=f);const b=Rde(g);return q.jsxs(Lde,{as:s,className:Ze(b.root,i),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:r,..._,...p,...v&&a.props,ownerState:g,children:[v?a.props.children:a,u?q.jsx("title",{children:u}):null]})});QA.muiName="SvgIcon";function Pt(t,e){function r(n,a){return q.jsx(QA,{"data-testid":`${e}Icon`,ref:a,...n,children:t})}return r.muiName=QA.muiName,z.memo(z.forwardRef(r))}function xq(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}function eP(t,e){return eP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},eP(t,e)}function Cq(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,eP(t,e)}var Tq=eG();const $1=Tl(Tq),Az={disabled:!1},XS=E.createContext(null);var Nde=function(e){return e.scrollTop},I_="unmounted",Mf="exited",Of="entering",Zp="entered",tP="exiting",kl=function(t){Cq(e,t);function e(n,a){var i;i=t.call(this,n,a)||this;var o=a,s=o&&!o.isMounting?n.enter:n.appear,l;return i.appearStatus=null,n.in?s?(l=Mf,i.appearStatus=Of):l=Zp:n.unmountOnExit||n.mountOnEnter?l=I_:l=Mf,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===I_?{status:Mf}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var i=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==Of&&o!==Zp&&(i=Of):(o===Of||o===Zp)&&(i=tP)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,i,o,s;return i=o=s=a,a!=null&&typeof a!="number"&&(i=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:i,enter:o,appear:s}},r.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===Of){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:$1.findDOMNode(this);o&&Nde(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Mf&&this.setState({status:I_})},r.performEnter=function(a){var i=this,o=this.props.enter,s=this.context?this.context.isMounting:a,l=this.props.nodeRef?[s]:[$1.findDOMNode(this),s],c=l[0],d=l[1],u=this.getTimeouts(),f=s?u.appear:u.enter;if(!a&&!o||Az.disabled){this.safeSetState({status:Zp},function(){i.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Of},function(){i.props.onEntering(c,d),i.onTransitionEnd(f,function(){i.safeSetState({status:Zp},function(){i.props.onEntered(c,d)})})})},r.performExit=function(){var a=this,i=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:$1.findDOMNode(this);if(!i||Az.disabled){this.safeSetState({status:Mf},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:tP},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:Mf},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},r.setNextCallback=function(a){var i=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,i.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(a,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:$1.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===I_)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=xq(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return E.createElement(XS.Provider,{value:null},typeof o=="function"?o(a,s):E.cloneElement(E.Children.only(o),s))},e}(E.Component);kl.contextType=XS;kl.propTypes={};function xp(){}kl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xp,onEntering:xp,onEntered:xp,onExit:xp,onExiting:xp,onExited:xp};kl.UNMOUNTED=I_;kl.EXITED=Mf;kl.ENTERING=Of;kl.ENTERED=Zp;kl.EXITING=tP;function Fde(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sL(t,e){var r=function(i){return e&&z.isValidElement(i)?e(i):i},n=Object.create(null);return t&&z.Children.map(t,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function zde(t,e){t=t||{},e=e||{};function r(d){return d in e?e[d]:t[d]}var n=Object.create(null),a=[];for(var i in t)i in e?a.length&&(n[i]=a,a=[]):a.push(i);var o,s={};for(var l in e){if(n[l])for(o=0;ot.scrollTop;function JS(t,e){const{timeout:r,easing:n,style:a={}}=t;return{duration:a.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:a.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:a.transitionDelay}}function Ude(t){return At("MuiPaper",t)}Tt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Yde=t=>{const{square:e,elevation:r,variant:n,classes:a}=t,i={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return Lt(i,Ude,a)},Vde=$e("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})($t(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),MC=z.forwardRef(function(e,r){var p;const n=zt({props:e,name:"MuiPaper"}),a=xh(),{className:i,component:o="div",elevation:s=1,square:l=!1,variant:c="elevation",...d}=n,u={...n,component:o,elevation:s,square:l,variant:c},f=Yde(u);return q.jsx(Vde,{as:o,ownerState:u,className:Ze(f.root,i),ref:r,...d,style:{...c==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[s],...a.vars&&{"--Paper-overlay":(p=a.vars.overlays)==null?void 0:p[s]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${pn("#fff",KA(s))}, ${pn("#fff",KA(s))})`}},...d.style}})});function Gn(t,e){const{className:r,elementType:n,ownerState:a,externalForwardedProps:i,internalForwardedProps:o,...s}=e,{component:l,slots:c={[t]:void 0},slotProps:d={[t]:void 0},...u}=i,f=c[t]||n,p=uq(d[t],a),{props:{component:v,...g},internalRef:_}=cq({className:r,...s,externalForwardedProps:t==="root"?u:void 0,externalSlotProps:p}),b=Mn(_,p==null?void 0:p.ref,e.ref),w=t==="root"?v||l:v,x=sq(f,{...t==="root"&&!l&&!c[t]&&o,...t!=="root"&&!c[t]&&o,...g,...w&&{as:w},ref:b},a);return[f,x]}class ZS{constructor(){de(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new ZS}static use(){const e=iq(ZS.create).current,[r,n]=z.useState(!1);return e.shouldMount=r,e.setShouldMount=n,z.useEffect(e.mountEffect,[r]),e}mount(){return this.mounted||(this.mounted=qde(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...e)})}stop(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...e)})}pulsate(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...e)})}}function Gde(){return ZS.use()}function qde(){let t,e;const r=new Promise((n,a)=>{t=n,e=a});return r.resolve=t,r.reject=e,r}function Xde(t){const{className:e,classes:r,pulsate:n=!1,rippleX:a,rippleY:i,rippleSize:o,in:s,onExited:l,timeout:c}=t,[d,u]=z.useState(!1),f=Ze(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),p={width:o,height:o,top:-(o/2)+i,left:-(o/2)+a},v=Ze(r.child,d&&r.childLeaving,n&&r.childPulsate);return!s&&!d&&u(!0),z.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,s,c]),q.jsx("span",{className:f,style:p,children:q.jsx("span",{className:v})})}const so=Tt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),rP=550,Jde=80,Zde=cd` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`,Kde=cd` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`,Qde=cd` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`,efe=$e("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),tfe=$e(Xde,{name:"MuiTouchRipple",slot:"Ripple"})` - opacity: 0; - position: absolute; - - &.${so.rippleVisible} { - opacity: 0.3; - transform: scale(1); - animation-name: ${Zde}; - animation-duration: ${rP}ms; - animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; - } - - &.${so.ripplePulsate} { - animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; - } - - & .${so.child} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${so.childLeaving} { - opacity: 0; - animation-name: ${Kde}; - animation-duration: ${rP}ms; - animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; - } - - & .${so.childPulsate} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${Qde}; - animation-duration: 2500ms; - animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`,rfe=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiTouchRipple"}),{center:a=!1,classes:i={},className:o,...s}=n,[l,c]=z.useState([]),d=z.useRef(0),u=z.useRef(null);z.useEffect(()=>{u.current&&(u.current(),u.current=null)},[l]);const f=z.useRef(!1),p=bm(),v=z.useRef(null),g=z.useRef(null),_=z.useCallback(C=>{const{pulsate:M,rippleX:k,rippleY:O,rippleSize:R,cb:L}=C;c($=>[...$,q.jsx(tfe,{classes:{ripple:Ze(i.ripple,so.ripple),rippleVisible:Ze(i.rippleVisible,so.rippleVisible),ripplePulsate:Ze(i.ripplePulsate,so.ripplePulsate),child:Ze(i.child,so.child),childLeaving:Ze(i.childLeaving,so.childLeaving),childPulsate:Ze(i.childPulsate,so.childPulsate)},timeout:rP,pulsate:M,rippleX:k,rippleY:O,rippleSize:R},d.current)]),d.current+=1,u.current=L},[i]),b=z.useCallback((C={},M={},k=()=>{})=>{const{pulsate:O=!1,center:R=a||M.pulsate,fakeElement:L=!1}=M;if((C==null?void 0:C.type)==="mousedown"&&f.current){f.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(f.current=!0);const $=L?null:g.current,N=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,j,Y;if(R||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)W=Math.round(N.width/2),j=Math.round(N.height/2);else{const{clientX:V,clientY:J}=C.touches&&C.touches.length>0?C.touches[0]:C;W=Math.round(V-N.left),j=Math.round(J-N.top)}if(R)Y=Math.sqrt((2*N.width**2+N.height**2)/3),Y%2===0&&(Y+=1);else{const V=Math.max(Math.abs(($?$.clientWidth:0)-W),W)*2+2,J=Math.max(Math.abs(($?$.clientHeight:0)-j),j)*2+2;Y=Math.sqrt(V**2+J**2)}C!=null&&C.touches?v.current===null&&(v.current=()=>{_({pulsate:O,rippleX:W,rippleY:j,rippleSize:Y,cb:k})},p.start(Jde,()=>{v.current&&(v.current(),v.current=null)})):_({pulsate:O,rippleX:W,rippleY:j,rippleSize:Y,cb:k})},[a,_,p]),w=z.useCallback(()=>{b({},{pulsate:!0})},[b]),x=z.useCallback((C,M)=>{if(p.clear(),(C==null?void 0:C.type)==="touchend"&&v.current){v.current(),v.current=null,p.start(0,()=>{x(C,M)});return}v.current=null,c(k=>k.length>0?k.slice(1):k),u.current=M},[p]);return z.useImperativeHandle(r,()=>({pulsate:w,start:b,stop:x}),[w,b,x]),q.jsx(efe,{className:Ze(so.root,i.root,o),ref:g,...s,children:q.jsx(lL,{component:null,exit:!0,children:l})})});function nfe(t){return At("MuiButtonBase",t)}const afe=Tt("MuiButtonBase",["root","disabled","focusVisible"]),ife=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:a}=t,o=Lt({root:["root",e&&"disabled",r&&"focusVisible"]},nfe,a);return r&&n&&(o.root+=` ${n}`),o},ofe=$e("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.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"},[`&.${afe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ud=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiButtonBase"}),{action:a,centerRipple:i=!1,children:o,className:s,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:u=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:v="a",onBlur:g,onClick:_,onContextMenu:b,onDragLeave:w,onFocus:x,onFocusVisible:C,onKeyDown:M,onKeyUp:k,onMouseDown:O,onMouseLeave:R,onMouseUp:L,onTouchEnd:$,onTouchMove:N,onTouchStart:W,tabIndex:j=0,TouchRippleProps:Y,touchRippleRef:V,type:J,...ie}=n,K=z.useRef(null),Q=Gde(),oe=Mn(Q.ref,V),[H,X]=z.useState(!1);c&&H&&X(!1),z.useImperativeHandle(a,()=>({focusVisible:()=>{X(!0),K.current.focus()}}),[]);const ae=Q.shouldMount&&!d&&!c;z.useEffect(()=>{H&&f&&!d&&Q.pulsate()},[d,f,H,Q]);const re=Vl(Q,"start",O,u),le=Vl(Q,"stop",b,u),Ee=Vl(Q,"stop",w,u),We=Vl(Q,"stop",L,u),Ne=Vl(Q,"stop",Fe=>{H&&Fe.preventDefault(),R&&R(Fe)},u),Le=Vl(Q,"start",W,u),Pe=Vl(Q,"stop",$,u),we=Vl(Q,"stop",N,u),ye=Vl(Q,"stop",Fe=>{qS(Fe.target)||X(!1),g&&g(Fe)},!1),ht=ds(Fe=>{K.current||(K.current=Fe.currentTarget),qS(Fe.target)&&(X(!0),C&&C(Fe)),x&&x(Fe)}),Be=()=>{const Fe=K.current;return l&&l!=="button"&&!(Fe.tagName==="A"&&Fe.href)},je=ds(Fe=>{f&&!Fe.repeat&&H&&Fe.key===" "&&Q.stop(Fe,()=>{Q.start(Fe)}),Fe.target===Fe.currentTarget&&Be()&&Fe.key===" "&&Fe.preventDefault(),M&&M(Fe),Fe.target===Fe.currentTarget&&Be()&&Fe.key==="Enter"&&!c&&(Fe.preventDefault(),_&&_(Fe))}),Dt=ds(Fe=>{f&&Fe.key===" "&&H&&!Fe.defaultPrevented&&Q.stop(Fe,()=>{Q.pulsate(Fe)}),k&&k(Fe),_&&Fe.target===Fe.currentTarget&&Be()&&Fe.key===" "&&!Fe.defaultPrevented&&_(Fe)});let Me=l;Me==="button"&&(ie.href||ie.to)&&(Me=v);const ot={};Me==="button"?(ot.type=J===void 0?"button":J,ot.disabled=c):(!ie.href&&!ie.to&&(ot.role="button"),c&&(ot["aria-disabled"]=c));const kt=Mn(r,K),_t={...n,centerRipple:i,component:l,disabled:c,disableRipple:d,disableTouchRipple:u,focusRipple:f,tabIndex:j,focusVisible:H},tt=ife(_t);return q.jsxs(ofe,{as:Me,className:Ze(tt.root,s),ownerState:_t,onBlur:ye,onClick:_,onContextMenu:le,onFocus:ht,onKeyDown:je,onKeyUp:Dt,onMouseDown:re,onMouseLeave:Ne,onMouseUp:We,onDragLeave:Ee,onTouchEnd:Pe,onTouchMove:we,onTouchStart:Le,ref:kt,tabIndex:c?-1:j,type:J,...ot,...ie,children:[o,ae?q.jsx(rfe,{ref:oe,center:i,...Y}):null]})});function Vl(t,e,r,n=!1){return ds(a=>(r&&r(a),n||t[e](a),!0))}function sfe(t){return typeof t.main=="string"}function lfe(t,e=[]){if(!sfe(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function On(t=[]){return([,e])=>e&&lfe(e,t)}function cfe(t){return At("MuiIconButton",t)}const ufe=Tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),dfe=t=>{const{classes:e,disabled:r,color:n,edge:a,size:i}=t,o={root:["root",r&&"disabled",n!=="default"&&`color${ze(n)}`,a&&`edge${ze(a)}`,`size${ze(i)}`]};return Lt(o,cfe,e)},ffe=$e(ud,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="default"&&e[`color${ze(r.color)}`],r.edge&&e[`edge${ze(r.edge)}`],e[`size${ze(r.size)}`]]}})($t(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:pn(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),$t(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(On()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(On()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:pn((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${ufe.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}}))),va=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiIconButton"}),{edge:a=!1,children:i,className:o,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium",...u}=n,f={...n,edge:a,color:s,disabled:l,disableFocusRipple:c,size:d},p=dfe(f);return q.jsx(ffe,{className:Ze(p.root,o),centerRipple:!0,focusRipple:!c,disabled:l,ref:r,...u,ownerState:f,children:i})});function hfe(t){return At("MuiTypography",t)}const Pz=Tt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),pfe={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},mfe=Pde(),vfe=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:a,variant:i,classes:o}=t,s={root:["root",i,t.align!=="inherit"&&`align${ze(e)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return Lt(s,hfe,o)},gfe=$e("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${ze(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})($t(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(t.palette).filter(On()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${ze(r)}`},style:{color:(t.vars||t).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Iz={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},lc=z.forwardRef(function(e,r){const{color:n,...a}=zt({props:e,name:"MuiTypography"}),i=!pfe[n],o=mfe({...a,...i&&{color:n}}),{align:s="inherit",className:l,component:c,gutterBottom:d=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:v=Iz,...g}=o,_={...o,align:s,color:n,className:l,component:c,gutterBottom:d,noWrap:u,paragraph:f,variant:p,variantMapping:v},b=c||(f?"p":v[p]||Iz[p])||"span",w=vfe(_);return q.jsx(gfe,{as:b,ref:r,className:Ze(w.root,l),...g,ownerState:_,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...g.style}})});function _fe(t){return At("MuiAppBar",t)}Tt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const yfe=t=>{const{color:e,position:r,classes:n}=t,a={root:["root",`color${ze(e)}`,`position${ze(r)}`]};return Lt(a,_fe,n)},Rz=(t,e)=>t?`${t==null?void 0:t.replace(")","")}, ${e})`:e,bfe=$e(MC,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${ze(r.position)}`],e[`color${ze(r.color)}`]]}})($t(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).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":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(On(["contrastText"])).map(([e])=>({props:{color:e},style:{"--AppBar-background":(t.vars??t).palette[e].main,"--AppBar-color":(t.vars??t).palette[e].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)",...t.applyStyles("dark",{backgroundColor:t.vars?Rz(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?Rz(t.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)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),wfe=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiAppBar"}),{className:a,color:i="primary",enableColorOnDark:o=!1,position:s="fixed",...l}=n,c={...n,color:i,position:s,enableColorOnDark:o},d=yfe(c);return q.jsx(bfe,{square:!0,component:"header",ownerState:c,elevation:4,className:Ze(d.root,a,s==="fixed"&&"mui-fixed"),ref:r,...l})});var si="top",bo="bottom",wo="right",li="left",cL="auto",v0=[si,bo,wo,li],Zm="start",xy="end",Sfe="clippingParents",Eq="viewport",Rg="popper",xfe="reference",Lz=v0.reduce(function(t,e){return t.concat([e+"-"+Zm,e+"-"+xy])},[]),Dq=[].concat(v0,[cL]).reduce(function(t,e){return t.concat([e,e+"-"+Zm,e+"-"+xy])},[]),Cfe="beforeRead",Tfe="read",kfe="afterRead",Efe="beforeMain",Dfe="main",Mfe="afterMain",Ofe="beforeWrite",$fe="write",Afe="afterWrite",Pfe=[Cfe,Tfe,kfe,Efe,Dfe,Mfe,Ofe,$fe,Afe];function _l(t){return t?(t.nodeName||"").toLowerCase():null}function Fi(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function sh(t){var e=Fi(t).Element;return t instanceof e||t instanceof Element}function _o(t){var e=Fi(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function uL(t){if(typeof ShadowRoot>"u")return!1;var e=Fi(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Ife(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},a=e.attributes[r]||{},i=e.elements[r];!_o(i)||!_l(i)||(Object.assign(i.style,n),Object.keys(a).forEach(function(o){var s=a[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function Rfe(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var a=e.elements[n],i=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),s=o.reduce(function(l,c){return l[c]="",l},{});!_o(a)||!_l(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}const Lfe={name:"applyStyles",enabled:!0,phase:"write",fn:Ife,effect:Rfe,requires:["computeStyles"]};function hl(t){return t.split("-")[0]}var Gf=Math.max,KS=Math.min,Km=Math.round;function nP(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Mq(){return!/^((?!chrome|android).)*safari/i.test(nP())}function Qm(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),a=1,i=1;e&&_o(t)&&(a=t.offsetWidth>0&&Km(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Km(n.height)/t.offsetHeight||1);var o=sh(t)?Fi(t):window,s=o.visualViewport,l=!Mq()&&r,c=(n.left+(l&&s?s.offsetLeft:0))/a,d=(n.top+(l&&s?s.offsetTop:0))/i,u=n.width/a,f=n.height/i;return{width:u,height:f,top:d,right:c+u,bottom:d+f,left:c,x:c,y:d}}function dL(t){var e=Qm(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function Oq(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&uL(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Tc(t){return Fi(t).getComputedStyle(t)}function Nfe(t){return["table","td","th"].indexOf(_l(t))>=0}function dd(t){return((sh(t)?t.ownerDocument:t.document)||window.document).documentElement}function OC(t){return _l(t)==="html"?t:t.assignedSlot||t.parentNode||(uL(t)?t.host:null)||dd(t)}function Nz(t){return!_o(t)||Tc(t).position==="fixed"?null:t.offsetParent}function Ffe(t){var e=/firefox/i.test(nP()),r=/Trident/i.test(nP());if(r&&_o(t)){var n=Tc(t);if(n.position==="fixed")return null}var a=OC(t);for(uL(a)&&(a=a.host);_o(a)&&["html","body"].indexOf(_l(a))<0;){var i=Tc(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function g0(t){for(var e=Fi(t),r=Nz(t);r&&Nfe(r)&&Tc(r).position==="static";)r=Nz(r);return r&&(_l(r)==="html"||_l(r)==="body"&&Tc(r).position==="static")?e:r||Ffe(t)||e}function fL(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Z_(t,e,r){return Gf(t,KS(e,r))}function zfe(t,e,r){var n=Z_(t,e,r);return n>r?r:n}function $q(){return{top:0,right:0,bottom:0,left:0}}function Aq(t){return Object.assign({},$q(),t)}function Pq(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var Bfe=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Aq(typeof e!="number"?e:Pq(e,v0))};function jfe(t){var e,r=t.state,n=t.name,a=t.options,i=r.elements.arrow,o=r.modifiersData.popperOffsets,s=hl(r.placement),l=fL(s),c=[li,wo].indexOf(s)>=0,d=c?"height":"width";if(!(!i||!o)){var u=Bfe(a.padding,r),f=dL(i),p=l==="y"?si:li,v=l==="y"?bo:wo,g=r.rects.reference[d]+r.rects.reference[l]-o[l]-r.rects.popper[d],_=o[l]-r.rects.reference[l],b=g0(i),w=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,x=g/2-_/2,C=u[p],M=w-f[d]-u[v],k=w/2-f[d]/2+x,O=Z_(C,k,M),R=l;r.modifiersData[n]=(e={},e[R]=O,e.centerOffset=O-k,e)}}function Wfe(t){var e=t.state,r=t.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||Oq(e.elements.popper,a)&&(e.elements.arrow=a))}const Hfe={name:"arrow",enabled:!0,phase:"main",fn:jfe,effect:Wfe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ev(t){return t.split("-")[1]}var Ufe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yfe(t,e){var r=t.x,n=t.y,a=e.devicePixelRatio||1;return{x:Km(r*a)/a||0,y:Km(n*a)/a||0}}function Fz(t){var e,r=t.popper,n=t.popperRect,a=t.placement,i=t.variation,o=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,f=o.x,p=f===void 0?0:f,v=o.y,g=v===void 0?0:v,_=typeof d=="function"?d({x:p,y:g}):{x:p,y:g};p=_.x,g=_.y;var b=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),x=li,C=si,M=window;if(c){var k=g0(r),O="clientHeight",R="clientWidth";if(k===Fi(r)&&(k=dd(r),Tc(k).position!=="static"&&s==="absolute"&&(O="scrollHeight",R="scrollWidth")),k=k,a===si||(a===li||a===wo)&&i===xy){C=bo;var L=u&&k===M&&M.visualViewport?M.visualViewport.height:k[O];g-=L-n.height,g*=l?1:-1}if(a===li||(a===si||a===bo)&&i===xy){x=wo;var $=u&&k===M&&M.visualViewport?M.visualViewport.width:k[R];p-=$-n.width,p*=l?1:-1}}var N=Object.assign({position:s},c&&Ufe),W=d===!0?Yfe({x:p,y:g},Fi(r)):{x:p,y:g};if(p=W.x,g=W.y,l){var j;return Object.assign({},N,(j={},j[C]=w?"0":"",j[x]=b?"0":"",j.transform=(M.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",j))}return Object.assign({},N,(e={},e[C]=w?g+"px":"",e[x]=b?p+"px":"",e.transform="",e))}function Vfe(t){var e=t.state,r=t.options,n=r.gpuAcceleration,a=n===void 0?!0:n,i=r.adaptive,o=i===void 0?!0:i,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:hl(e.placement),variation:ev(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Fz(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Fz(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Gfe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vfe,data:{}};var A1={passive:!0};function qfe(t){var e=t.state,r=t.instance,n=t.options,a=n.scroll,i=a===void 0?!0:a,o=n.resize,s=o===void 0?!0:o,l=Fi(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,A1)}),s&&l.addEventListener("resize",r.update,A1),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,A1)}),s&&l.removeEventListener("resize",r.update,A1)}}const Xfe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qfe,data:{}};var Jfe={left:"right",right:"left",bottom:"top",top:"bottom"};function gS(t){return t.replace(/left|right|bottom|top/g,function(e){return Jfe[e]})}var Zfe={start:"end",end:"start"};function zz(t){return t.replace(/start|end/g,function(e){return Zfe[e]})}function hL(t){var e=Fi(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function pL(t){return Qm(dd(t)).left+hL(t).scrollLeft}function Kfe(t,e){var r=Fi(t),n=dd(t),a=r.visualViewport,i=n.clientWidth,o=n.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;var c=Mq();(c||!c&&e==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s+pL(t),y:l}}function Qfe(t){var e,r=dd(t),n=hL(t),a=(e=t.ownerDocument)==null?void 0:e.body,i=Gf(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Gf(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+pL(t),l=-n.scrollTop;return Tc(a||r).direction==="rtl"&&(s+=Gf(r.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function mL(t){var e=Tc(t),r=e.overflow,n=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function Iq(t){return["html","body","#document"].indexOf(_l(t))>=0?t.ownerDocument.body:_o(t)&&mL(t)?t:Iq(OC(t))}function K_(t,e){var r;e===void 0&&(e=[]);var n=Iq(t),a=n===((r=t.ownerDocument)==null?void 0:r.body),i=Fi(n),o=a?[i].concat(i.visualViewport||[],mL(n)?n:[]):n,s=e.concat(o);return a?s:s.concat(K_(OC(o)))}function aP(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ehe(t,e){var r=Qm(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Bz(t,e,r){return e===Eq?aP(Kfe(t,r)):sh(e)?ehe(e,r):aP(Qfe(dd(t)))}function the(t){var e=K_(OC(t)),r=["absolute","fixed"].indexOf(Tc(t).position)>=0,n=r&&_o(t)?g0(t):t;return sh(n)?e.filter(function(a){return sh(a)&&Oq(a,n)&&_l(a)!=="body"}):[]}function rhe(t,e,r,n){var a=e==="clippingParents"?the(t):[].concat(e),i=[].concat(a,[r]),o=i[0],s=i.reduce(function(l,c){var d=Bz(t,c,n);return l.top=Gf(d.top,l.top),l.right=KS(d.right,l.right),l.bottom=KS(d.bottom,l.bottom),l.left=Gf(d.left,l.left),l},Bz(t,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Rq(t){var e=t.reference,r=t.element,n=t.placement,a=n?hl(n):null,i=n?ev(n):null,o=e.x+e.width/2-r.width/2,s=e.y+e.height/2-r.height/2,l;switch(a){case si:l={x:o,y:e.y-r.height};break;case bo:l={x:o,y:e.y+e.height};break;case wo:l={x:e.x+e.width,y:s};break;case li:l={x:e.x-r.width,y:s};break;default:l={x:e.x,y:e.y}}var c=a?fL(a):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Zm:l[c]=l[c]-(e[d]/2-r[d]/2);break;case xy:l[c]=l[c]+(e[d]/2-r[d]/2);break}}return l}function Cy(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=n===void 0?t.placement:n,i=r.strategy,o=i===void 0?t.strategy:i,s=r.boundary,l=s===void 0?Sfe:s,c=r.rootBoundary,d=c===void 0?Eq:c,u=r.elementContext,f=u===void 0?Rg:u,p=r.altBoundary,v=p===void 0?!1:p,g=r.padding,_=g===void 0?0:g,b=Aq(typeof _!="number"?_:Pq(_,v0)),w=f===Rg?xfe:Rg,x=t.rects.popper,C=t.elements[v?w:f],M=rhe(sh(C)?C:C.contextElement||dd(t.elements.popper),l,d,o),k=Qm(t.elements.reference),O=Rq({reference:k,element:x,strategy:"absolute",placement:a}),R=aP(Object.assign({},x,O)),L=f===Rg?R:k,$={top:M.top-L.top+b.top,bottom:L.bottom-M.bottom+b.bottom,left:M.left-L.left+b.left,right:L.right-M.right+b.right},N=t.modifiersData.offset;if(f===Rg&&N){var W=N[a];Object.keys($).forEach(function(j){var Y=[wo,bo].indexOf(j)>=0?1:-1,V=[si,bo].indexOf(j)>=0?"y":"x";$[j]+=W[V]*Y})}return $}function nhe(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=r.boundary,i=r.rootBoundary,o=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?Dq:l,d=ev(n),u=d?s?Lz:Lz.filter(function(v){return ev(v)===d}):v0,f=u.filter(function(v){return c.indexOf(v)>=0});f.length===0&&(f=u);var p=f.reduce(function(v,g){return v[g]=Cy(t,{placement:g,boundary:a,rootBoundary:i,padding:o})[hl(g)],v},{});return Object.keys(p).sort(function(v,g){return p[v]-p[g]})}function ahe(t){if(hl(t)===cL)return[];var e=gS(t);return[zz(t),e,zz(e)]}function ihe(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!0:o,l=r.fallbackPlacements,c=r.padding,d=r.boundary,u=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,v=p===void 0?!0:p,g=r.allowedAutoPlacements,_=e.options.placement,b=hl(_),w=b===_,x=l||(w||!v?[gS(_)]:ahe(_)),C=[_].concat(x).reduce(function(re,le){return re.concat(hl(le)===cL?nhe(e,{placement:le,boundary:d,rootBoundary:u,padding:c,flipVariations:v,allowedAutoPlacements:g}):le)},[]),M=e.rects.reference,k=e.rects.popper,O=new Map,R=!0,L=C[0],$=0;$=0,V=Y?"width":"height",J=Cy(e,{placement:N,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),ie=Y?j?wo:li:j?bo:si;M[V]>k[V]&&(ie=gS(ie));var K=gS(ie),Q=[];if(i&&Q.push(J[W]<=0),s&&Q.push(J[ie]<=0,J[K]<=0),Q.every(function(re){return re})){L=N,R=!1;break}O.set(N,Q)}if(R)for(var oe=v?3:1,H=function(le){var Ee=C.find(function(We){var Ne=O.get(We);if(Ne)return Ne.slice(0,le).every(function(Le){return Le})});if(Ee)return L=Ee,"break"},X=oe;X>0;X--){var ae=H(X);if(ae==="break")break}e.placement!==L&&(e.modifiersData[n]._skip=!0,e.placement=L,e.reset=!0)}}const ohe={name:"flip",enabled:!0,phase:"main",fn:ihe,requiresIfExists:["offset"],data:{_skip:!1}};function jz(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Wz(t){return[si,wo,bo,li].some(function(e){return t[e]>=0})}function she(t){var e=t.state,r=t.name,n=e.rects.reference,a=e.rects.popper,i=e.modifiersData.preventOverflow,o=Cy(e,{elementContext:"reference"}),s=Cy(e,{altBoundary:!0}),l=jz(o,n),c=jz(s,a,i),d=Wz(l),u=Wz(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}const lhe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:she};function che(t,e,r){var n=hl(t),a=[li,si].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[li,wo].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function uhe(t){var e=t.state,r=t.options,n=t.name,a=r.offset,i=a===void 0?[0,0]:a,o=Dq.reduce(function(d,u){return d[u]=che(u,e.rects,i),d},{}),s=o[e.placement],l=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=o}const dhe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uhe};function fhe(t){var e=t.state,r=t.name;e.modifiersData[r]=Rq({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const hhe={name:"popperOffsets",enabled:!0,phase:"read",fn:fhe,data:{}};function phe(t){return t==="x"?"y":"x"}function mhe(t){var e=t.state,r=t.options,n=t.name,a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!1:o,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.padding,f=r.tether,p=f===void 0?!0:f,v=r.tetherOffset,g=v===void 0?0:v,_=Cy(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),b=hl(e.placement),w=ev(e.placement),x=!w,C=fL(b),M=phe(C),k=e.modifiersData.popperOffsets,O=e.rects.reference,R=e.rects.popper,L=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,$=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),N=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,W={x:0,y:0};if(k){if(i){var j,Y=C==="y"?si:li,V=C==="y"?bo:wo,J=C==="y"?"height":"width",ie=k[C],K=ie+_[Y],Q=ie-_[V],oe=p?-R[J]/2:0,H=w===Zm?O[J]:R[J],X=w===Zm?-R[J]:-O[J],ae=e.elements.arrow,re=p&&ae?dL(ae):{width:0,height:0},le=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:$q(),Ee=le[Y],We=le[V],Ne=Z_(0,O[J],re[J]),Le=x?O[J]/2-oe-Ne-Ee-$.mainAxis:H-Ne-Ee-$.mainAxis,Pe=x?-O[J]/2+oe+Ne+We+$.mainAxis:X+Ne+We+$.mainAxis,we=e.elements.arrow&&g0(e.elements.arrow),ye=we?C==="y"?we.clientTop||0:we.clientLeft||0:0,ht=(j=N==null?void 0:N[C])!=null?j:0,Be=ie+Le-ht-ye,je=ie+Pe-ht,Dt=Z_(p?KS(K,Be):K,ie,p?Gf(Q,je):Q);k[C]=Dt,W[C]=Dt-ie}if(s){var Me,ot=C==="x"?si:li,kt=C==="x"?bo:wo,_t=k[M],tt=M==="y"?"height":"width",Fe=_t+_[ot],Vt=_t-_[kt],_e=[si,li].indexOf(b)!==-1,He=(Me=N==null?void 0:N[M])!=null?Me:0,pt=_e?Fe:_t-O[tt]-R[tt]-He+$.altAxis,ct=_e?_t+O[tt]+R[tt]-He-$.altAxis:Vt,ut=p&&_e?zfe(pt,_t,ct):Z_(p?pt:Fe,_t,p?ct:Vt);k[M]=ut,W[M]=ut-_t}e.modifiersData[n]=W}}const vhe={name:"preventOverflow",enabled:!0,phase:"main",fn:mhe,requiresIfExists:["offset"]};function ghe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function _he(t){return t===Fi(t)||!_o(t)?hL(t):ghe(t)}function yhe(t){var e=t.getBoundingClientRect(),r=Km(e.width)/t.offsetWidth||1,n=Km(e.height)/t.offsetHeight||1;return r!==1||n!==1}function bhe(t,e,r){r===void 0&&(r=!1);var n=_o(e),a=_o(e)&&yhe(e),i=dd(e),o=Qm(t,a,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((_l(e)!=="body"||mL(i))&&(s=_he(e)),_o(e)?(l=Qm(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=pL(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function whe(t){var e=new Map,r=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function a(i){r.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var l=e.get(s);l&&a(l)}}),n.push(i)}return t.forEach(function(i){r.has(i.name)||a(i)}),n}function She(t){var e=whe(t);return Pfe.reduce(function(r,n){return r.concat(e.filter(function(a){return a.phase===n}))},[])}function xhe(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Che(t){var e=t.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var Hz={placement:"bottom",modifiers:[],strategy:"absolute"};function Uz(){for(var t=arguments.length,e=new Array(t),r=0;r{i||s(Dhe(a)||document.body)},[a,i]),yo(()=>{if(o&&!i)return XA(r,o),()=>{XA(r,null)}},[r,o,i]),i){if(z.isValidElement(n)){const c={ref:l};return z.cloneElement(n,c)}return n}return o&&Tq.createPortal(n,o)});function Mhe(t){return At("MuiPopper",t)}Tt("MuiPopper",["root"]);function Ohe(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function iP(t){return typeof t=="function"?t():t}function $he(t){return t.nodeType!==void 0}const Ahe=t=>{const{classes:e}=t;return Lt({root:["root"]},Mhe,e)},Phe={},Ihe=z.forwardRef(function(e,r){const{anchorEl:n,children:a,direction:i,disablePortal:o,modifiers:s,open:l,placement:c,popperOptions:d,popperRef:u,slotProps:f={},slots:p={},TransitionProps:v,ownerState:g,..._}=e,b=z.useRef(null),w=Mn(b,r),x=z.useRef(null),C=Mn(x,u),M=z.useRef(C);yo(()=>{M.current=C},[C]),z.useImperativeHandle(u,()=>x.current,[]);const k=Ohe(c,i),[O,R]=z.useState(k),[L,$]=z.useState(iP(n));z.useEffect(()=>{x.current&&x.current.forceUpdate()}),z.useEffect(()=>{n&&$(iP(n))},[n]),yo(()=>{if(!L||!l)return;const V=K=>{R(K.placement)};let J=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:K})=>{V(K)}}];s!=null&&(J=J.concat(s)),d&&d.modifiers!=null&&(J=J.concat(d.modifiers));const ie=Ehe(L,b.current,{placement:k,...d,modifiers:J});return M.current(ie),()=>{ie.destroy(),M.current(null)}},[L,o,s,l,d,k]);const N={placement:O};v!==null&&(N.TransitionProps=v);const W=Ahe(e),j=p.root??"div",Y=rd({elementType:j,externalSlotProps:f.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:w},ownerState:e,className:W.root});return q.jsx(j,{...Y,children:typeof a=="function"?a(N):a})}),Rhe=z.forwardRef(function(e,r){const{anchorEl:n,children:a,container:i,direction:o="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:d,placement:u="bottom",popperOptions:f=Phe,popperRef:p,style:v,transition:g=!1,slotProps:_={},slots:b={},...w}=e,[x,C]=z.useState(!0),M=()=>{C(!1)},k=()=>{C(!0)};if(!l&&!d&&(!g||x))return null;let O;if(i)O=i;else if(n){const $=iP(n);O=$&&$he($)?di($).body:di(null).body}const R=!d&&l&&(!g||x)?"none":void 0,L=g?{in:d,onEnter:M,onExited:k}:void 0;return q.jsx(Lq,{disablePortal:s,container:O,children:q.jsx(Ihe,{anchorEl:n,direction:o,disablePortal:s,modifiers:c,ref:r,open:g?!x:d,placement:u,popperOptions:f,popperRef:p,slotProps:_,slots:b,...w,style:{position:"fixed",top:0,left:0,display:R,...v},TransitionProps:L,children:a})})}),Lhe=$e(Rhe,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Nq=z.forwardRef(function(e,r){const n=vv(),a=zt({props:e,name:"MuiPopper"}),{anchorEl:i,component:o,components:s,componentsProps:l,container:c,disablePortal:d,keepMounted:u,modifiers:f,open:p,placement:v,popperOptions:g,popperRef:_,transition:b,slots:w,slotProps:x,...C}=a,M=(w==null?void 0:w.root)??(s==null?void 0:s.Root),k={anchorEl:i,container:c,disablePortal:d,keepMounted:u,modifiers:f,open:p,placement:v,popperOptions:g,popperRef:_,transition:b,...C};return q.jsx(Lhe,{as:o,direction:n?"rtl":"ltr",slots:{root:M},slotProps:x??l,...k,ref:r})});function P1(t){return parseInt(t,10)||0}const Nhe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Fhe(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflowing}const zhe=z.forwardRef(function(e,r){const{onChange:n,maxRows:a,minRows:i=1,style:o,value:s,...l}=e,{current:c}=z.useRef(s!=null),d=z.useRef(null),u=Mn(r,d),f=z.useRef(null),p=z.useRef(null),v=z.useCallback(()=>{const b=d.current,x=ps(b).getComputedStyle(b);if(x.width==="0px")return{outerHeightStyle:0,overflowing:!1};const C=p.current;C.style.width=x.width,C.value=b.value||e.placeholder||"x",C.value.slice(-1)===` -`&&(C.value+=" ");const M=x.boxSizing,k=P1(x.paddingBottom)+P1(x.paddingTop),O=P1(x.borderBottomWidth)+P1(x.borderTopWidth),R=C.scrollHeight;C.value="x";const L=C.scrollHeight;let $=R;i&&($=Math.max(Number(i)*L,$)),a&&($=Math.min(Number(a)*L,$)),$=Math.max($,L);const N=$+(M==="border-box"?k+O:0),W=Math.abs($-R)<=1;return{outerHeightStyle:N,overflowing:W}},[a,i,e.placeholder]),g=z.useCallback(()=>{const b=v();if(Fhe(b))return;const w=b.outerHeightStyle,x=d.current;f.current!==w&&(f.current=w,x.style.height=`${w}px`),x.style.overflow=b.overflowing?"hidden":""},[v]);yo(()=>{const b=()=>{g()};let w;const x=kC(b),C=d.current,M=ps(C);M.addEventListener("resize",x);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(b),k.observe(C)),()=>{x.clear(),cancelAnimationFrame(w),M.removeEventListener("resize",x),k&&k.disconnect()}},[v,g]),yo(()=>{g()});const _=b=>{c||g(),n&&n(b)};return q.jsxs(z.Fragment,{children:[q.jsx("textarea",{value:s,onChange:_,ref:u,rows:i,style:o,...l}),q.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:{...Nhe.shadow,...o,paddingTop:0,paddingBottom:0}})]})});function oP(t){return typeof t=="string"}function fd({props:t,states:e,muiFormControl:r}){return e.reduce((n,a)=>(n[a]=t[a],r&&typeof t[a]>"u"&&(n[a]=r[a]),n),{})}const vL=z.createContext(void 0);function El(){return z.useContext(vL)}function Yz(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function QS(t,e=!1){return t&&(Yz(t.value)&&t.value!==""||e&&Yz(t.defaultValue)&&t.defaultValue!=="")}function Bhe(t){return t.startAdornment}function jhe(t){return At("MuiInputBase",t)}const tv=Tt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Vz;const $C=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${ze(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},AC=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},Whe=t=>{const{classes:e,color:r,disabled:n,error:a,endAdornment:i,focused:o,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:u,size:f,startAdornment:p,type:v}=t,g={root:["root",`color${ze(r)}`,n&&"disabled",a&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",f&&f!=="medium"&&`size${ze(f)}`,d&&"multiline",p&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",n&&"disabled",v==="search"&&"inputTypeSearch",d&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]};return Lt(g,jhe,e)},PC=$e("div",{name:"MuiInputBase",slot:"Root",overridesResolver:$C})($t(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${tv.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),IC=$e("input",{name:"MuiInputBase",slot:"Input",overridesResolver:AC})($t(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${tv.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${tv.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.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:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Gz=Ade({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),gL=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:o,className:s,color:l,components:c={},componentsProps:d={},defaultValue:u,disabled:f,disableInjectingGlobalStyles:p,endAdornment:v,error:g,fullWidth:_=!1,id:b,inputComponent:w="input",inputProps:x={},inputRef:C,margin:M,maxRows:k,minRows:O,multiline:R=!1,name:L,onBlur:$,onChange:N,onClick:W,onFocus:j,onKeyDown:Y,onKeyUp:V,placeholder:J,readOnly:ie,renderSuffix:K,rows:Q,size:oe,slotProps:H={},slots:X={},startAdornment:ae,type:re="text",value:le,...Ee}=n,We=x.value!=null?x.value:le,{current:Ne}=z.useRef(We!=null),Le=z.useRef(),Pe=z.useCallback(Ke=>{},[]),we=Mn(Le,C,x.ref,Pe),[ye,ht]=z.useState(!1),Be=El(),je=fd({props:n,muiFormControl:Be,states:["color","disabled","error","hiddenLabel","size","required","filled"]});je.focused=Be?Be.focused:ye,z.useEffect(()=>{!Be&&f&&ye&&(ht(!1),$&&$())},[Be,f,ye,$]);const Dt=Be&&Be.onFilled,Me=Be&&Be.onEmpty,ot=z.useCallback(Ke=>{QS(Ke)?Dt&&Dt():Me&&Me()},[Dt,Me]);yo(()=>{Ne&&ot({value:We})},[We,ot,Ne]);const kt=Ke=>{j&&j(Ke),x.onFocus&&x.onFocus(Ke),Be&&Be.onFocus?Be.onFocus(Ke):ht(!0)},_t=Ke=>{$&&$(Ke),x.onBlur&&x.onBlur(Ke),Be&&Be.onBlur?Be.onBlur(Ke):ht(!1)},tt=(Ke,...nr)=>{if(!Ne){const ar=Ke.target||Le.current;if(ar==null)throw new Error(xc(1));ot({value:ar.value})}x.onChange&&x.onChange(Ke,...nr),N&&N(Ke,...nr)};z.useEffect(()=>{ot(Le.current)},[]);const Fe=Ke=>{Le.current&&Ke.currentTarget===Ke.target&&Le.current.focus(),W&&W(Ke)};let Vt=w,_e=x;R&&Vt==="input"&&(Q?_e={type:void 0,minRows:Q,maxRows:Q,..._e}:_e={type:void 0,maxRows:k,minRows:O,..._e},Vt=zhe);const He=Ke=>{ot(Ke.animationName==="mui-auto-fill-cancel"?Le.current:{value:"x"})};z.useEffect(()=>{Be&&Be.setAdornedStart(!!ae)},[Be,ae]);const pt={...n,color:je.color||"primary",disabled:je.disabled,endAdornment:v,error:je.error,focused:je.focused,formControl:Be,fullWidth:_,hiddenLabel:je.hiddenLabel,multiline:R,size:je.size,startAdornment:ae,type:re},ct=Whe(pt),ut=X.root||c.Root||PC,Et=H.root||d.root||{},nt=X.input||c.Input||IC;return _e={..._e,...H.input??d.input},q.jsxs(z.Fragment,{children:[!p&&typeof Gz=="function"&&(Vz||(Vz=q.jsx(Gz,{}))),q.jsxs(ut,{...Et,ref:r,onClick:Fe,...Ee,...!oP(ut)&&{ownerState:{...pt,...Et.ownerState}},className:Ze(ct.root,Et.className,s,ie&&"MuiInputBase-readOnly"),children:[ae,q.jsx(vL.Provider,{value:null,children:q.jsx(nt,{"aria-invalid":je.error,"aria-describedby":a,autoComplete:i,autoFocus:o,defaultValue:u,disabled:je.disabled,id:b,onAnimationStart:He,name:L,placeholder:J,readOnly:ie,required:je.required,rows:Q,value:We,onKeyDown:Y,onKeyUp:V,type:re,..._e,...!oP(nt)&&{as:Vt,ownerState:{...pt,..._e.ownerState}},ref:we,className:Ze(ct.input,_e.className,ie&&"MuiInputBase-readOnly"),onBlur:_t,onChange:tt,onFocus:kt})}),v,K?K({...je,startAdornment:ae}):null]})]})});function Hhe(t){return At("MuiInput",t)}const Lg={...tv,...Tt("MuiInput",["root","underline","input"])};function Uhe(t){return At("MuiOutlinedInput",t)}const Vs={...tv,...Tt("MuiOutlinedInput",["root","notchedOutline","input"])};function Yhe(t){return At("MuiFilledInput",t)}const Kd={...tv,...Tt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Vhe=Pt(q.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Ghe={entering:{opacity:1},entered:{opacity:1}},Fq=z.forwardRef(function(e,r){const n=xh(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:s,easing:l,in:c,onEnter:d,onEntered:u,onEntering:f,onExit:p,onExited:v,onExiting:g,style:_,timeout:b=a,TransitionComponent:w=kl,...x}=e,C=z.useRef(null),M=Mn(C,mv(s),r),k=Y=>V=>{if(Y){const J=C.current;V===void 0?Y(J):Y(J,V)}},O=k(f),R=k((Y,V)=>{kq(Y);const J=JS({style:_,timeout:b,easing:l},{mode:"enter"});Y.style.webkitTransition=n.transitions.create("opacity",J),Y.style.transition=n.transitions.create("opacity",J),d&&d(Y,V)}),L=k(u),$=k(g),N=k(Y=>{const V=JS({style:_,timeout:b,easing:l},{mode:"exit"});Y.style.webkitTransition=n.transitions.create("opacity",V),Y.style.transition=n.transitions.create("opacity",V),p&&p(Y)}),W=k(v),j=Y=>{i&&i(C.current,Y)};return q.jsx(w,{appear:o,in:c,nodeRef:C,onEnter:R,onEntered:L,onEntering:O,onExit:N,onExited:W,onExiting:$,addEndListener:j,timeout:b,...x,children:(Y,{ownerState:V,...J})=>z.cloneElement(s,{style:{opacity:0,visibility:Y==="exited"&&!c?"hidden":void 0,...Ghe[Y],..._,...s.props.style},ref:M,...J})})});function qhe(t){return At("MuiBackdrop",t)}Tt("MuiBackdrop",["root","invisible"]);const Xhe=t=>{const{classes:e,invisible:r}=t;return Lt({root:["root",r&&"invisible"]},qhe,e)},Jhe=$e("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),zq=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiBackdrop"}),{children:a,className:i,component:o="div",invisible:s=!1,open:l,components:c={},componentsProps:d={},slotProps:u={},slots:f={},TransitionComponent:p,transitionDuration:v,...g}=n,_={...n,component:o,invisible:s},b=Xhe(_),w={transition:p,root:c.Root,...f},x={...d,...u},C={slots:w,slotProps:x},[M,k]=Gn("root",{elementType:Jhe,externalForwardedProps:C,className:Ze(b.root,i),ownerState:_}),[O,R]=Gn("transition",{elementType:Fq,externalForwardedProps:C,ownerState:_});return q.jsx(O,{in:l,timeout:v,...g,...R,children:q.jsx(M,{"aria-hidden":!0,...k,classes:b,ref:r,children:a})})}),Zhe=Tt("MuiBox",["root"]),Khe=Sy(),br=tue({themeId:us,defaultTheme:Khe,defaultClassName:Zhe.root,generateClassName:QG.generate}),Qhe=Pt(q.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"),epe=$e(ud)($t(({theme:t})=>({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`,...t.palette.mode==="light"?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...t.palette.mode==="light"?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}},"&:active":{boxShadow:t.shadows[0],...t.palette.mode==="light"?{backgroundColor:GA(t.palette.grey[200],.12)}:{backgroundColor:GA(t.palette.grey[600],.12)}}}))),tpe=$e(Qhe)({width:24,height:16});function rpe(t){const{slots:e={},slotProps:r={},...n}=t,a=t;return q.jsx("li",{children:q.jsx(epe,{focusRipple:!0,...n,ownerState:a,children:q.jsx(tpe,{as:e.CollapsedIcon,ownerState:a,...r.collapsedIcon})})})}function npe(t){return At("MuiBreadcrumbs",t)}const ape=Tt("MuiBreadcrumbs",["root","ol","li","separator"]),ipe=t=>{const{classes:e}=t;return Lt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},npe,e)},ope=$e(lc,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(t,e)=>[{[`& .${ape.li}`]:e.li},e.root]})({}),spe=$e("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(t,e)=>e.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),lpe=$e("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(t,e)=>e.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function cpe(t,e,r,n){return t.reduce((a,i,o)=>(o{const R=()=>{_(!0);const L=C.current.querySelector("a[href],button,[tabindex]");L&&L.focus()};return u+d>=O.length?O:[...O.slice(0,u),q.jsx(rpe,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:x},onClick:R},"ellipsis"),...O.slice(O.length-d,O.length)]},k=z.Children.toArray(a).filter(O=>z.isValidElement(O)).map((O,R)=>q.jsx("li",{className:w.li,children:O},`child-${R}`));return q.jsx(ope,{ref:r,component:o,color:"textSecondary",className:Ze(w.root,i),ownerState:b,...v,children:q.jsx(spe,{className:w.ol,ref:C,ownerState:b,children:cpe(g||f&&k.length<=f?k:M(k),w.separator,p,b)})})});function dpe(t){return At("MuiButton",t)}const Cp=Tt("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"]),fpe=z.createContext({}),hpe=z.createContext(void 0),ppe=t=>{const{color:e,disableElevation:r,fullWidth:n,size:a,variant:i,classes:o}=t,s={root:["root",i,`${i}${ze(e)}`,`size${ze(a)}`,`${i}Size${ze(a)}`,`color${ze(e)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ze(a)}`],endIcon:["icon","endIcon",`iconSize${ze(a)}`]},l=Lt(s,dpe,o);return{...o,...l}},Bq=[{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}}}],mpe=$e(ud,{shouldForwardProp:t=>qn(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${ze(r.color)}`],e[`size${ze(r.size)}`],e[`${r.variant}Size${ze(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth]}})($t(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Cp.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Cp.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Cp.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Cp.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(On()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(t.vars||t).palette[n].main,"--variant-outlinedColor":(t.vars||t).palette[n].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.5)`:pn(t.palette[n].main,.5),"--variant-containedColor":(t.vars||t).palette[n].contrastText,"--variant-containedBg":(t.vars||t).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[n].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:pn(t.palette[n].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[n].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:pn(t.palette[n].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:pn(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:pn(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Cp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Cp.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),vpe=$e("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,e[`iconSize${ze(r.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Bq]}),gpe=$e("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,e[`iconSize${ze(r.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Bq]}),Vr=z.forwardRef(function(e,r){const n=z.useContext(fpe),a=z.useContext(hpe),i=by(n,e),o=zt({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:d,disabled:u=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:v,focusVisibleClassName:g,fullWidth:_=!1,size:b="medium",startIcon:w,type:x,variant:C="text",...M}=o,k={...o,color:l,component:c,disabled:u,disableElevation:f,disableFocusRipple:p,fullWidth:_,size:b,type:x,variant:C},O=ppe(k),R=w&&q.jsx(vpe,{className:O.startIcon,ownerState:k,children:w}),L=v&&q.jsx(gpe,{className:O.endIcon,ownerState:k,children:v}),$=a||"";return q.jsxs(mpe,{ownerState:k,className:Ze(n.className,O.root,d,$),component:c,disabled:u,focusRipple:!p,focusVisibleClassName:Ze(O.focusVisible,g),ref:r,type:x,...M,classes:O,children:[R,s,L]})});function _pe(t){return At("PrivateSwitchBase",t)}Tt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ype=t=>{const{classes:e,checked:r,disabled:n,edge:a}=t,i={root:["root",r&&"checked",n&&"disabled",a&&`edge${ze(a)}`],input:["input"]};return Lt(i,_pe,e)},bpe=$e(ud)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),wpe=$e("input",{shouldForwardProp:qn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),jq=z.forwardRef(function(e,r){const{autoFocus:n,checked:a,checkedIcon:i,className:o,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:u,id:f,inputProps:p,inputRef:v,name:g,onBlur:_,onChange:b,onFocus:w,readOnly:x,required:C=!1,tabIndex:M,type:k,value:O,...R}=e,[L,$]=GS({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),N=El(),W=Q=>{w&&w(Q),N&&N.onFocus&&N.onFocus(Q)},j=Q=>{_&&_(Q),N&&N.onBlur&&N.onBlur(Q)},Y=Q=>{if(Q.nativeEvent.defaultPrevented)return;const oe=Q.target.checked;$(oe),b&&b(Q,oe)};let V=l;N&&typeof V>"u"&&(V=N.disabled);const J=k==="checkbox"||k==="radio",ie={...e,checked:L,disabled:V,disableFocusRipple:c,edge:d},K=ype(ie);return q.jsxs(bpe,{component:"span",className:Ze(K.root,o),centerRipple:!0,focusRipple:!c,disabled:V,tabIndex:null,role:void 0,onFocus:W,onBlur:j,ownerState:ie,ref:r,...R,children:[q.jsx(wpe,{autoFocus:n,checked:a,defaultChecked:s,className:K.input,disabled:V,id:J?f:void 0,name:g,onChange:Y,readOnly:x,ref:v,required:C,ownerState:ie,tabIndex:M,type:k,...k==="checkbox"&&O===void 0?{}:{value:O},...p}),L?i:u]})}),Spe=Pt(q.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"),xpe=Pt(q.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"),Cpe=Pt(q.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 Tpe(t){return At("MuiCheckbox",t)}const tE=Tt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),kpe=t=>{const{classes:e,indeterminate:r,color:n,size:a}=t,i={root:["root",r&&"indeterminate",`color${ze(n)}`,`size${ze(a)}`]},o=Lt(i,Tpe,e);return{...e,...o}},Epe=$e(jq,{shouldForwardProp:t=>qn(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${ze(r.size)}`],r.color!=="default"&&e[`color${ze(r.color)}`]]}})($t(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:pn(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(On()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:pn(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(On()).map(([e])=>({props:{color:e},style:{[`&.${tE.checked}, &.${tE.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${tE.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Dpe=q.jsx(xpe,{}),Mpe=q.jsx(Spe,{}),Ope=q.jsx(Cpe,{}),Un=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Dpe,color:i="primary",icon:o=Mpe,indeterminate:s=!1,indeterminateIcon:l=Ope,inputProps:c,size:d="medium",disableRipple:u=!1,className:f,...p}=n,v=s?l:o,g=s?l:a,_={...n,disableRipple:u,color:i,indeterminate:s,size:d},b=kpe(_);return q.jsx(Epe,{type:"checkbox",inputProps:{"data-indeterminate":s,...c},icon:z.cloneElement(v,{fontSize:v.props.fontSize??d}),checkedIcon:z.cloneElement(g,{fontSize:g.props.fontSize??d}),ownerState:_,ref:r,className:Ze(b.root,f),disableRipple:u,...p,classes:b})});function $pe(t){return At("MuiCircularProgress",t)}Tt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const gu=44,sP=cd` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`,lP=cd` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`,Ape=typeof sP!="string"?pv` - animation: ${sP} 1.4s linear infinite; - `:null,Ppe=typeof lP!="string"?pv` - animation: ${lP} 1.4s ease-in-out infinite; - `:null,Ipe=t=>{const{classes:e,variant:r,color:n,disableShrink:a}=t,i={root:["root",r,`color${ze(n)}`],svg:["svg"],circle:["circle",`circle${ze(r)}`,a&&"circleDisableShrink"]};return Lt(i,$pe,e)},Rpe=$e("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${ze(r.color)}`]]}})($t(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Ape||{animation:`${sP} 1.4s linear infinite`}},...Object.entries(t.palette).filter(On()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),Lpe=$e("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),Npe=$e("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${ze(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})($t(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:Ppe||{animation:`${lP} 1.4s ease-in-out infinite`}}]}))),Fpe=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiCircularProgress"}),{className:a,color:i="primary",disableShrink:o=!1,size:s=40,style:l,thickness:c=3.6,value:d=0,variant:u="indeterminate",...f}=n,p={...n,color:i,disableShrink:o,size:s,thickness:c,value:d,variant:u},v=Ipe(p),g={},_={},b={};if(u==="determinate"){const w=2*Math.PI*((gu-c)/2);g.strokeDasharray=w.toFixed(3),b["aria-valuenow"]=Math.round(d),g.strokeDashoffset=`${((100-d)/100*w).toFixed(3)}px`,_.transform="rotate(-90deg)"}return q.jsx(Rpe,{className:Ze(v.root,a),style:{width:s,height:s,..._,...l},ownerState:p,ref:r,role:"progressbar",...b,...f,children:q.jsx(Lpe,{className:v.svg,ownerState:p,viewBox:`${gu/2} ${gu/2} ${gu} ${gu}`,children:q.jsx(Npe,{className:v.circle,style:g,ownerState:p,cx:gu,cy:gu,r:(gu-c)/2,fill:"none",strokeWidth:c})})})});function zpe(t){const e=di(t);return e.body===t?ps(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Q_(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function qz(t){return parseInt(ps(t).getComputedStyle(t).paddingRight,10)||0}function Bpe(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function Xz(t,e,r,n,a){const i=[e,r,...n];[].forEach.call(t.children,o=>{const s=!i.includes(o),l=!Bpe(o);s&&l&&Q_(o,a)})}function rE(t,e){let r=-1;return t.some((n,a)=>e(n)?(r=a,!0):!1),r}function jpe(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if(zpe(n)){const o=oq(ps(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${qz(n)+o}px`;const s=di(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${qz(l)+o}px`})}let i;if(n.parentNode instanceof DocumentFragment)i=di(n).body;else{const o=n.parentElement,s=ps(n);i=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{r.forEach(({value:i,el:o,property:s})=>{i?o.style.setProperty(s,i):o.style.removeProperty(s)})}}function Wpe(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class Hpe{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Q_(e.modalRef,!1);const a=Wpe(r);Xz(r,e.mount,e.modalRef,a,!0);const i=rE(this.containers,o=>o.container===r);return i!==-1?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:a}),n)}mount(e,r){const n=rE(this.containers,i=>i.modals.includes(e)),a=this.containers[n];a.restore||(a.restore=jpe(a,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const a=rE(this.containers,o=>o.modals.includes(e)),i=this.containers[a];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Q_(e.modalRef,r),Xz(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(a,1);else{const o=i.modals[i.modals.length-1];o.modalRef&&Q_(o.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const Upe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ype(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function Vpe(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function Gpe(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||Vpe(t))}function qpe(t){const e=[],r=[];return Array.from(t.querySelectorAll(Upe)).forEach((n,a)=>{const i=Ype(n);i===-1||!Gpe(n)||(i===0?e.push(n):r.push({documentOrder:a,tabIndex:i,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(e)}function Xpe(){return!0}function Jpe(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:i=qpe,isEnabled:o=Xpe,open:s}=t,l=z.useRef(!1),c=z.useRef(null),d=z.useRef(null),u=z.useRef(null),f=z.useRef(null),p=z.useRef(!1),v=z.useRef(null),g=Mn(mv(e),v),_=z.useRef(null);z.useEffect(()=>{!s||!v.current||(p.current=!r)},[r,s]),z.useEffect(()=>{if(!s||!v.current)return;const x=di(v.current);return v.current.contains(x.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),p.current&&v.current.focus()),()=>{a||(u.current&&u.current.focus&&(l.current=!0,u.current.focus()),u.current=null)}},[s]),z.useEffect(()=>{if(!s||!v.current)return;const x=di(v.current),C=O=>{_.current=O,!(n||!o()||O.key!=="Tab")&&x.activeElement===v.current&&O.shiftKey&&(l.current=!0,d.current&&d.current.focus())},M=()=>{var L,$;const O=v.current;if(O===null)return;if(!x.hasFocus()||!o()||l.current){l.current=!1;return}if(O.contains(x.activeElement)||n&&x.activeElement!==c.current&&x.activeElement!==d.current)return;if(x.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let R=[];if((x.activeElement===c.current||x.activeElement===d.current)&&(R=i(v.current)),R.length>0){const N=!!((L=_.current)!=null&&L.shiftKey&&(($=_.current)==null?void 0:$.key)==="Tab"),W=R[0],j=R[R.length-1];typeof W!="string"&&typeof j!="string"&&(N?j.focus():W.focus())}else O.focus()};x.addEventListener("focusin",M),x.addEventListener("keydown",C,!0);const k=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(k),x.removeEventListener("focusin",M),x.removeEventListener("keydown",C,!0)}},[r,n,a,o,s,i]);const b=x=>{u.current===null&&(u.current=x.relatedTarget),p.current=!0,f.current=x.target;const C=e.props.onFocus;C&&C(x)},w=x=>{u.current===null&&(u.current=x.relatedTarget),p.current=!0};return q.jsxs(z.Fragment,{children:[q.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:c,"data-testid":"sentinelStart"}),z.cloneElement(e,{ref:g,onFocus:b}),q.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:d,"data-testid":"sentinelEnd"})]})}function Zpe(t){return typeof t=="function"?t():t}function Kpe(t){return t?t.props.hasOwnProperty("in"):!1}const Jz=()=>{},I1=new Hpe;function Qpe(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:o,children:s,onClose:l,open:c,rootRef:d}=t,u=z.useRef({}),f=z.useRef(null),p=z.useRef(null),v=Mn(p,d),[g,_]=z.useState(!c),b=Kpe(s);let w=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(w=!1);const x=()=>di(f.current),C=()=>(u.current.modalRef=p.current,u.current.mount=f.current,u.current),M=()=>{I1.mount(C(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},k=ds(()=>{const V=Zpe(e)||x().body;I1.add(C(),V),p.current&&M()}),O=()=>I1.isTopModal(C()),R=ds(V=>{f.current=V,V&&(c&&O()?M():p.current&&Q_(p.current,w))}),L=z.useCallback(()=>{I1.remove(C(),w)},[w]);z.useEffect(()=>()=>{L()},[L]),z.useEffect(()=>{c?k():(!b||!a)&&L()},[c,L,b,a,k]);const $=V=>J=>{var ie;(ie=V.onKeyDown)==null||ie.call(V,J),!(J.key!=="Escape"||J.which===229||!O())&&(r||(J.stopPropagation(),l&&l(J,"escapeKeyDown")))},N=V=>J=>{var ie;(ie=V.onClick)==null||ie.call(V,J),J.target===J.currentTarget&&l&&l(J,"backdropClick")};return{getRootProps:(V={})=>{const J=lq(t);delete J.onTransitionEnter,delete J.onTransitionExited;const ie={...J,...V};return{role:"presentation",...ie,onKeyDown:$(ie),ref:v}},getBackdropProps:(V={})=>{const J=V;return{"aria-hidden":!0,...J,onClick:N(J),open:c}},getTransitionProps:()=>{const V=()=>{_(!1),i&&i()},J=()=>{_(!0),o&&o(),a&&L()};return{onEnter:qA(V,(s==null?void 0:s.props.onEnter)??Jz),onExited:qA(J,(s==null?void 0:s.props.onExited)??Jz)}},rootRef:v,portalRef:R,isTopModal:O,exited:g,hasTransition:b}}function eme(t){return At("MuiModal",t)}Tt("MuiModal",["root","hidden","backdrop"]);const tme=t=>{const{open:e,exited:r,classes:n}=t;return Lt({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},eme,n)},rme=$e("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})($t(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),nme=$e(zq,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),Wq=z.forwardRef(function(e,r){const n=zt({name:"MuiModal",props:e}),{BackdropComponent:a=nme,BackdropProps:i,classes:o,className:s,closeAfterTransition:l=!1,children:c,container:d,component:u,components:f={},componentsProps:p={},disableAutoFocus:v=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:_=!1,disablePortal:b=!1,disableRestoreFocus:w=!1,disableScrollLock:x=!1,hideBackdrop:C=!1,keepMounted:M=!1,onBackdropClick:k,onClose:O,onTransitionEnter:R,onTransitionExited:L,open:$,slotProps:N={},slots:W={},theme:j,...Y}=n,V={...n,closeAfterTransition:l,disableAutoFocus:v,disableEnforceFocus:g,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:x,hideBackdrop:C,keepMounted:M},{getRootProps:J,getBackdropProps:ie,getTransitionProps:K,portalRef:Q,isTopModal:oe,exited:H,hasTransition:X}=Qpe({...V,rootRef:r}),ae={...V,exited:H},re=tme(ae),le={};if(c.props.tabIndex===void 0&&(le.tabIndex="-1"),X){const{onEnter:ye,onExited:ht}=K();le.onEnter=ye,le.onExited=ht}const Ee={...Y,slots:{root:f.Root,backdrop:f.Backdrop,...W},slotProps:{...p,...N}},[We,Ne]=Gn("root",{elementType:rme,externalForwardedProps:Ee,getSlotProps:J,additionalProps:{ref:r,as:u},ownerState:ae,className:Ze(s,re==null?void 0:re.root,!ae.open&&ae.exited&&(re==null?void 0:re.hidden))}),[Le,Pe]=Gn("backdrop",{elementType:a,externalForwardedProps:Ee,additionalProps:i,getSlotProps:ye=>ie({...ye,onClick:ht=>{k&&k(ht),ye!=null&&ye.onClick&&ye.onClick(ht)}}),className:Ze(i==null?void 0:i.className,re==null?void 0:re.backdrop),ownerState:ae}),we=Mn(i==null?void 0:i.ref,Pe.ref);return!M&&!$&&(!X||H)?null:q.jsx(Lq,{ref:Q,container:d,disablePortal:b,children:q.jsxs(We,{...Ne,children:[!C&&a?q.jsx(Le,{...Pe,ref:we}):null,q.jsx(Jpe,{disableEnforceFocus:g,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:oe,open:$,children:z.cloneElement(c,le)})]})})});function ame(t){return At("MuiDialog",t)}const nE=Tt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Hq=z.createContext({}),ime=$e(zq,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),ome=t=>{const{classes:e,scroll:r,maxWidth:n,fullWidth:a,fullScreen:i}=t,o={root:["root"],container:["container",`scroll${ze(r)}`],paper:["paper",`paperScroll${ze(r)}`,`paperWidth${ze(String(n))}`,a&&"paperFullWidth",i&&"paperFullScreen"]};return Lt(o,ame,e)},sme=$e(Wq,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),lme=$e("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e[`scroll${ze(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),cme=$e(MC,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e[`scrollPaper${ze(r.scroll)}`],e[`paperWidth${ze(String(r.maxWidth))}`],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})($t(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${nE.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${nE.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+32*2)]:{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,[`&.${nE.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ms=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiDialog"}),a=xh(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:d,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:v=!1,fullWidth:g=!1,maxWidth:_="sm",onBackdropClick:b,onClick:w,onClose:x,open:C,PaperComponent:M=MC,PaperProps:k={},scroll:O="paper",TransitionComponent:R=Fq,transitionDuration:L=i,TransitionProps:$,...N}=n,W={...n,disableEscapeKeyDown:p,fullScreen:v,fullWidth:g,maxWidth:_,scroll:O},j=ome(W),Y=z.useRef(),V=Q=>{Y.current=Q.target===Q.currentTarget},J=Q=>{w&&w(Q),Y.current&&(Y.current=null,b&&b(Q),x&&x(Q,"backdropClick"))},ie=EC(s),K=z.useMemo(()=>({titleId:ie}),[ie]);return q.jsx(sme,{className:Ze(j.root,f),closeAfterTransition:!0,components:{Backdrop:ime},componentsProps:{backdrop:{transitionDuration:L,as:c,...d}},disableEscapeKeyDown:p,onClose:x,open:C,ref:r,onClick:J,ownerState:W,...N,children:q.jsx(R,{appear:!0,in:C,timeout:L,role:"presentation",...$,children:q.jsx(lme,{className:Ze(j.container),onMouseDown:V,ownerState:W,children:q.jsx(cme,{as:M,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":ie,"aria-modal":l,...k,className:Ze(j.paper,k.className),ownerState:W,children:q.jsx(Hq.Provider,{value:K,children:u})})})})})});function ume(t){return At("MuiDialogActions",t)}Tt("MuiDialogActions",["root","spacing"]);const dme=t=>{const{classes:e,disableSpacing:r}=t;return Lt({root:["root",!r&&"spacing"]},ume,e)},fme=$e("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),vs=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiDialogActions"}),{className:a,disableSpacing:i=!1,...o}=n,s={...n,disableSpacing:i},l=dme(s);return q.jsx(fme,{className:Ze(l.root,a),ownerState:s,ref:r,...o})});function hme(t){return At("MuiDialogContent",t)}Tt("MuiDialogContent",["root","dividers"]);function pme(t){return At("MuiDialogTitle",t)}const mme=Tt("MuiDialogTitle",["root"]),vme=t=>{const{classes:e,dividers:r}=t;return Lt({root:["root",r&&"dividers"]},hme,e)},gme=$e("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})($t(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${mme.root} + &`]:{paddingTop:0}}}]}))),gs=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiDialogContent"}),{className:a,dividers:i=!1,...o}=n,s={...n,dividers:i},l=vme(s);return q.jsx(gme,{className:Ze(l.root,a),ownerState:s,ref:r,...o})});function _me(t){return At("MuiDialogContentText",t)}Tt("MuiDialogContentText",["root"]);const yme=t=>{const{classes:e}=t,n=Lt({root:["root"]},_me,e);return{...e,...n}},bme=$e(lc,{shouldForwardProp:t=>qn(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({}),RC=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiDialogContentText"}),{children:a,className:i,...o}=n,s=yme(o);return q.jsx(bme,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:o,className:Ze(s.root,i),...n,classes:s})}),wme=t=>{const{classes:e}=t;return Lt({root:["root"]},pme,e)},Sme=$e(lc,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),_s=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiDialogTitle"}),{className:a,id:i,...o}=n,s=n,l=wme(s),{titleId:c=i}=z.useContext(Hq);return q.jsx(Sme,{component:"h2",className:Ze(l.root,a),ownerState:s,ref:r,variant:"h6",id:i??c,...o})}),Zz=Tt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function xme(t){return At("MuiFab",t)}const Kz=Tt("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),Cme=t=>{const{color:e,variant:r,classes:n,size:a}=t,i={root:["root",r,`size${ze(a)}`,e==="inherit"?"colorInherit":e]},o=Lt(i,xme,n);return{...n,...o}},Tme=$e(ud,{name:"MuiFab",slot:"Root",shouldForwardProp:t=>qn(t)||t==="classes",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${ze(r.size)}`],r.color==="inherit"&&e.colorInherit,e[ze(r.size)],e[r.color]]}})($t(({theme:t})=>{var e,r;return{...t.typography.button,minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:(r=(e=t.palette).getContrastText)==null?void 0:r.call(e,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},[`&.${Kz.focusVisible}`]:{boxShadow:(t.vars||t).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"}}]}}),$t(({theme:t})=>({variants:[...Object.entries(t.palette).filter(On(["dark","contrastText"])).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}}}}))]})),$t(({theme:t})=>({[`&.${Kz.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}))),_c=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiFab"}),{children:a,className:i,color:o="default",component:s="button",disabled:l=!1,disableFocusRipple:c=!1,focusVisibleClassName:d,size:u="large",variant:f="circular",...p}=n,v={...n,color:o,component:s,disabled:l,disableFocusRipple:c,size:u,variant:f},g=Cme(v);return q.jsx(Tme,{className:Ze(g.root,i),component:s,disabled:l,focusRipple:!c,focusVisibleClassName:Ze(g.focusVisible,d),ownerState:v,ref:r,...p,classes:g,children:a})}),kme=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:a,size:i,hiddenLabel:o,multiline:s}=t,l={root:["root",!r&&"underline",n&&"adornedStart",a&&"adornedEnd",i==="small"&&`size${ze(i)}`,o&&"hiddenLabel",s&&"multiline"],input:["input"]},c=Lt(l,Yhe,e);return{...e,...c}},Eme=$e(PC,{shouldForwardProp:t=>qn(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...$C(t,e),!r.disableUnderline&&e.underline]}})($t(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${Kd.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${Kd.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Kd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Kd.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Kd.disabled}, .${Kd.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Kd.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(On()).map(([o])=>{var s;return{props:{disableUnderline:!1,color:o},style:{"&::after":{borderBottom:`2px solid ${(s=(t.vars||t).palette[o])==null?void 0:s.main}`}}}}),{props:({ownerState:o})=>o.startAdornment,style:{paddingLeft:12}},{props:({ownerState:o})=>o.endAdornment,style:{paddingRight:12}},{props:({ownerState:o})=>o.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:o,size:s})=>o.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:o})=>o.multiline&&o.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:o})=>o.multiline&&o.hiddenLabel&&o.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Dme=$e(IC,{name:"MuiFilledInput",slot:"Input",overridesResolver:AC})($t(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),_L=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:i={},componentsProps:o,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:d=!1,slotProps:u,slots:f={},type:p="text",...v}=n,g={...n,disableUnderline:a,fullWidth:s,inputComponent:c,multiline:d,type:p},_=kme(n),b={root:{ownerState:g},input:{ownerState:g}},w=u??o?Ta(b,u??o):b,x=f.root??i.Root??Eme,C=f.input??i.Input??Dme;return q.jsx(gL,{slots:{root:x,input:C},slotProps:w,fullWidth:s,inputComponent:c,multiline:d,ref:r,type:p,...v,classes:_})});_L.muiName="Input";function Mme(t){return At("MuiFormControl",t)}Tt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Ome=t=>{const{classes:e,margin:r,fullWidth:n}=t,a={root:["root",r!=="none"&&`margin${ze(r)}`,n&&"fullWidth"]};return Lt(a,Mme,e)},$me=$e("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`margin${ze(r.margin)}`],r.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Af=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiFormControl"}),{children:a,className:i,color:o="primary",component:s="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:u=!1,hiddenLabel:f=!1,margin:p="none",required:v=!1,size:g="medium",variant:_="outlined",...b}=n,w={...n,color:o,component:s,disabled:l,error:c,fullWidth:u,hiddenLabel:f,margin:p,required:v,size:g,variant:_},x=Ome(w),[C,M]=z.useState(()=>{let j=!1;return a&&z.Children.forEach(a,Y=>{if(!Z2(Y,["Input","Select"]))return;const V=Z2(Y,["Select"])?Y.props.input:Y;V&&Bhe(V.props)&&(j=!0)}),j}),[k,O]=z.useState(()=>{let j=!1;return a&&z.Children.forEach(a,Y=>{Z2(Y,["Input","Select"])&&(QS(Y.props,!0)||QS(Y.props.inputProps,!0))&&(j=!0)}),j}),[R,L]=z.useState(!1);l&&R&&L(!1);const $=d!==void 0&&!l?d:R;let N;z.useRef(!1);const W=z.useMemo(()=>({adornedStart:C,setAdornedStart:M,color:o,disabled:l,error:c,filled:k,focused:$,fullWidth:u,hiddenLabel:f,size:g,onBlur:()=>{L(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{L(!0)},registerEffect:N,required:v,variant:_}),[C,o,l,c,k,$,u,f,N,v,g,_]);return q.jsx(vL.Provider,{value:W,children:q.jsx($me,{as:s,ownerState:w,className:Ze(x.root,i),ref:r,...b,children:a})})});function Ame(t){return At("MuiFormControlLabel",t)}const R_=Tt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Pme=t=>{const{classes:e,disabled:r,labelPlacement:n,error:a,required:i}=t,o={root:["root",r&&"disabled",`labelPlacement${ze(n)}`,a&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return Lt(o,Ame,e)},Ime=$e("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${R_.label}`]:e.label},e.root,e[`labelPlacement${ze(r.labelPlacement)}`]]}})($t(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${R_.disabled}`]:{cursor:"default"},[`& .${R_.label}`]:{[`&.${R_.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),Rme=$e("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})($t(({theme:t})=>({[`&.${R_.error}`]:{color:(t.vars||t).palette.error.main}}))),Xt=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiFormControlLabel"}),{checked:a,className:i,componentsProps:o={},control:s,disabled:l,disableTypography:c,inputRef:d,label:u,labelPlacement:f="end",name:p,onChange:v,required:g,slots:_={},slotProps:b={},value:w,...x}=n,C=El(),M=l??s.props.disabled??(C==null?void 0:C.disabled),k=g??s.props.required,O={disabled:M,required:k};["checked","name","onChange","value","inputRef"].forEach(V=>{typeof s.props[V]>"u"&&typeof n[V]<"u"&&(O[V]=n[V])});const R=fd({props:n,muiFormControl:C,states:["error"]}),L={...n,disabled:M,labelPlacement:f,required:k,error:R.error},$=Pme(L),N={slots:_,slotProps:{...o,...b}},[W,j]=Gn("typography",{elementType:lc,externalForwardedProps:N,ownerState:L});let Y=u;return Y!=null&&Y.type!==lc&&!c&&(Y=q.jsx(W,{component:"span",...j,className:Ze($.label,j==null?void 0:j.className),children:Y})),q.jsxs(Ime,{className:Ze($.root,i),ownerState:L,ref:r,...x,children:[z.cloneElement(s,O),k?q.jsxs("div",{children:[Y,q.jsxs(Rme,{ownerState:L,"aria-hidden":!0,className:$.asterisk,children:[" ","*"]})]}):Y]})});function Lme(t){return At("MuiFormGroup",t)}Tt("MuiFormGroup",["root","row","error"]);const Nme=t=>{const{classes:e,row:r,error:n}=t;return Lt({root:["root",r&&"row",n&&"error"]},Lme,e)},Fme=$e("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.row&&e.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),aE=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiFormGroup"}),{className:a,row:i=!1,...o}=n,s=El(),l=fd({props:n,muiFormControl:s,states:["error"]}),c={...n,row:i,error:l.error},d=Nme(c);return q.jsx(Fme,{className:Ze(d.root,a),ownerState:c,ref:r,...o})});function zme(t){return At("MuiFormHelperText",t)}const Qz=Tt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var e6;const Bme=t=>{const{classes:e,contained:r,size:n,disabled:a,error:i,filled:o,focused:s,required:l}=t,c={root:["root",a&&"disabled",i&&"error",n&&`size${ze(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return Lt(c,zme,e)},jme=$e("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${ze(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})($t(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Qz.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Qz.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),Wme=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiFormHelperText"}),{children:a,className:i,component:o="p",disabled:s,error:l,filled:c,focused:d,margin:u,required:f,variant:p,...v}=n,g=El(),_=fd({props:n,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),b={...n,component:o,contained:_.variant==="filled"||_.variant==="outlined",variant:_.variant,size:_.size,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required};delete b.ownerState;const w=Bme(b);return q.jsx(jme,{as:o,className:Ze(w.root,i),ref:r,...v,ownerState:b,children:a===" "?e6||(e6=q.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});function Hme(t){return At("MuiFormLabel",t)}const ey=Tt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ume=t=>{const{classes:e,color:r,focused:n,disabled:a,error:i,filled:o,required:s}=t,l={root:["root",`color${ze(r)}`,a&&"disabled",i&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Lt(l,Hme,e)},Yme=$e("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled]}})($t(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(On()).map(([e])=>({props:{color:e},style:{[`&.${ey.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${ey.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${ey.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),Vme=$e("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})($t(({theme:t})=>({[`&.${ey.error}`]:{color:(t.vars||t).palette.error.main}}))),Gme=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiFormLabel"}),{children:a,className:i,color:o,component:s="label",disabled:l,error:c,filled:d,focused:u,required:f,...p}=n,v=El(),g=fd({props:n,muiFormControl:v,states:["color","required","focused","disabled","error","filled"]}),_={...n,color:g.color||"primary",component:s,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},b=Ume(_);return q.jsxs(Yme,{as:s,ownerState:_,className:Ze(b.root,i),ref:r,...p,children:[a,g.required&&q.jsxs(Vme,{ownerState:_,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]})});function cP(t){return`scale(${t}, ${t**2})`}const qme={entering:{opacity:1,transform:cP(1)},entered:{opacity:1,transform:"none"}},iE=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ex=z.forwardRef(function(e,r){const{addEndListener:n,appear:a=!0,children:i,easing:o,in:s,onEnter:l,onEntered:c,onEntering:d,onExit:u,onExited:f,onExiting:p,style:v,timeout:g="auto",TransitionComponent:_=kl,...b}=e,w=bm(),x=z.useRef(),C=xh(),M=z.useRef(null),k=Mn(M,mv(i),r),O=V=>J=>{if(V){const ie=M.current;J===void 0?V(ie):V(ie,J)}},R=O(d),L=O((V,J)=>{kq(V);const{duration:ie,delay:K,easing:Q}=JS({style:v,timeout:g,easing:o},{mode:"enter"});let oe;g==="auto"?(oe=C.transitions.getAutoHeightDuration(V.clientHeight),x.current=oe):oe=ie,V.style.transition=[C.transitions.create("opacity",{duration:oe,delay:K}),C.transitions.create("transform",{duration:iE?oe:oe*.666,delay:K,easing:Q})].join(","),l&&l(V,J)}),$=O(c),N=O(p),W=O(V=>{const{duration:J,delay:ie,easing:K}=JS({style:v,timeout:g,easing:o},{mode:"exit"});let Q;g==="auto"?(Q=C.transitions.getAutoHeightDuration(V.clientHeight),x.current=Q):Q=J,V.style.transition=[C.transitions.create("opacity",{duration:Q,delay:ie}),C.transitions.create("transform",{duration:iE?Q:Q*.666,delay:iE?ie:ie||Q*.333,easing:K})].join(","),V.style.opacity=0,V.style.transform=cP(.75),u&&u(V)}),j=O(f),Y=V=>{g==="auto"&&w.start(x.current||0,V),n&&n(M.current,V)};return q.jsx(_,{appear:a,in:s,nodeRef:M,onEnter:L,onEntered:$,onEntering:R,onExit:W,onExited:j,onExiting:N,addEndListener:Y,timeout:g==="auto"?null:g,...b,children:(V,{ownerState:J,...ie})=>z.cloneElement(i,{style:{opacity:0,transform:cP(.75),visibility:V==="exited"&&!s?"hidden":void 0,...qme[V],...v,...i.props.style},ref:k,...ie})})});ex&&(ex.muiSupportAuto=!0);const Xme=mue({themeId:us}),Jme=t=>{const{classes:e,disableUnderline:r}=t,a=Lt({root:["root",!r&&"underline"],input:["input"]},Hhe,e);return{...e,...a}},Zme=$e(PC,{shouldForwardProp:t=>qn(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...$C(t,e),!r.disableUnderline&&e.underline]}})($t(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Lg.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Lg.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Lg.disabled}, .${Lg.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Lg.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(On()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),Kme=$e(IC,{name:"MuiInput",slot:"Input",overridesResolver:AC})({}),nl=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiInput"}),{disableUnderline:a=!1,components:i={},componentsProps:o,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:u={},type:f="text",...p}=n,v=Jme(n),_={root:{ownerState:{disableUnderline:a}}},b=d??o?Ta(d??o,_):_,w=u.root??i.Root??Zme,x=u.input??i.Input??Kme;return q.jsx(gL,{slots:{root:w,input:x},slotProps:b,fullWidth:s,inputComponent:l,multiline:c,ref:r,type:f,...p,classes:v})});nl.muiName="Input";function Qme(t){return At("MuiInputLabel",t)}Tt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const eve=t=>{const{classes:e,formControl:r,size:n,shrink:a,disableAnimation:i,variant:o,required:s}=t,l={root:["root",r&&"formControl",!i&&"animated",a&&"shrink",n&&n!=="normal"&&`size${ze(n)}`,o],asterisk:[s&&"asterisk"]},c=Lt(l,Qme,e);return{...e,...c}},tve=$e(Gme,{shouldForwardProp:t=>qn(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${ey.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})($t(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ty=z.forwardRef(function(e,r){const n=zt({name:"MuiInputLabel",props:e}),{disableAnimation:a=!1,margin:i,shrink:o,variant:s,className:l,...c}=n,d=El();let u=o;typeof u>"u"&&d&&(u=d.filled||d.focused||d.adornedStart);const f=fd({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),p={...n,disableAnimation:a,formControl:d,shrink:u,size:f.size,variant:f.variant,required:f.required,focused:f.focused},v=eve(p);return q.jsx(tve,{"data-shrink":u,ref:r,className:Ze(v.root,l),...c,ownerState:p,classes:v})});function rve(t){return At("MuiLinearProgress",t)}Tt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const uP=4,dP=cd` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`,nve=typeof dP!="string"?pv` - animation: ${dP} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `:null,fP=cd` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`,ave=typeof fP!="string"?pv` - animation: ${fP} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `:null,hP=cd` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`,ive=typeof hP!="string"?pv` - animation: ${hP} 3s infinite linear; - `:null,ove=t=>{const{classes:e,variant:r,color:n}=t,a={root:["root",`color${ze(n)}`,r],dashed:["dashed",`dashedColor${ze(n)}`],bar1:["bar",`barColor${ze(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${ze(n)}`,r==="buffer"&&`color${ze(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Lt(a,rve,e)},yL=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?TC(t.palette[e].main,.62):CC(t.palette[e].main,.5),sve=$e("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${ze(r.color)}`],e[r.variant]]}})($t(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(On()).map(([e])=>({props:{color:e},style:{backgroundColor:yL(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),lve=$e("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${ze(r.color)}`]]}})($t(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(On()).map(([e])=>{const r=yL(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),ive||{animation:`${hP} 3s infinite linear`}),cve=$e("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${ze(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})($t(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(On()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${uP}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${uP}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:nve||{animation:`${dP} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),uve=$e("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${ze(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})($t(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(On()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(On()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:yL(t,e),transition:`transform .${uP}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:ave||{animation:`${fP} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),bL=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiLinearProgress"}),{className:a,color:i="primary",value:o,valueBuffer:s,variant:l="indeterminate",...c}=n,d={...n,color:i,variant:l},u=ove(d),f=vv(),p={},v={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&o!==void 0){p["aria-valuenow"]=Math.round(o),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let g=o-100;f&&(g=-g),v.bar1.transform=`translateX(${g}%)`}if(l==="buffer"&&s!==void 0){let g=(s||0)-100;f&&(g=-g),v.bar2.transform=`translateX(${g}%)`}return q.jsxs(sve,{className:Ze(u.root,a),ownerState:d,role:"progressbar",...p,ref:r,...c,children:[l==="buffer"?q.jsx(lve,{className:u.dashed,ownerState:d}):null,q.jsx(cve,{className:u.bar1,ownerState:d,style:v.bar1}),l==="determinate"?null:q.jsx(uve,{className:u.bar2,ownerState:d,style:v.bar2})]})}),Ty=z.createContext({});function dve(t){return At("MuiList",t)}Tt("MuiList",["root","padding","dense","subheader"]);const fve=t=>{const{classes:e,disablePadding:r,dense:n,subheader:a}=t;return Lt({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},dve,e)},hve=$e("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),pve=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiList"}),{children:a,className:i,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...d}=n,u=z.useMemo(()=>({dense:s}),[s]),f={...n,component:o,dense:s,disablePadding:l},p=fve(f);return q.jsx(Ty.Provider,{value:u,children:q.jsxs(hve,{as:o,className:Ze(p.root,i),ref:r,ownerState:f,...d,children:[c,a]})})});function mve(t){return At("MuiListItemIcon",t)}const t6=Tt("MuiListItemIcon",["root","alignItemsFlexStart"]),vve=t=>{const{alignItems:e,classes:r}=t;return Lt({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},mve,r)},gve=$e("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})($t(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),_ve=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiListItemIcon"}),{className:a,...i}=n,o=z.useContext(Ty),s={...n,alignItems:o.alignItems},l=vve(s);return q.jsx(gve,{className:Ze(l.root,a),ownerState:s,ref:r,...i})});function yve(t){return At("MuiListItemText",t)}const wm=Tt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),bve=t=>{const{classes:e,inset:r,primary:n,secondary:a,dense:i}=t;return Lt({root:["root",r&&"inset",i&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},yve,e)},wve=$e("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${wm.primary}`]:e.primary},{[`& .${wm.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Pz.root}:where(& .${wm.primary})`]:{display:"block"},[`.${Pz.root}:where(& .${wm.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),Sve=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiListItemText"}),{children:a,className:i,disableTypography:o=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:u,slots:f={},slotProps:p={},...v}=n,{dense:g}=z.useContext(Ty);let _=l??a,b=d;const w={...n,disableTypography:o,inset:s,primary:!!_,secondary:!!b,dense:g},x=bve(w),C={slots:f,slotProps:{primary:c,secondary:u,...p}},[M,k]=Gn("primary",{className:x.primary,elementType:lc,externalForwardedProps:C,ownerState:w}),[O,R]=Gn("secondary",{className:x.secondary,elementType:lc,externalForwardedProps:C,ownerState:w});return _!=null&&_.type!==lc&&!o&&(_=q.jsx(M,{variant:g?"body2":"body1",component:k!=null&&k.variant?void 0:"span",...k,children:_})),b!=null&&b.type!==lc&&!o&&(b=q.jsx(O,{variant:"body2",color:"textSecondary",...R,children:b})),q.jsxs(wve,{className:Ze(x.root,i),ownerState:w,ref:r,...v,children:[_,b]})});function oE(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function r6(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function Uq(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function Ng(t,e,r,n,a,i){let o=!1,s=a(t,e,e?r:!1);for(;s;){if(s===t.firstChild){if(o)return!1;o=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Uq(s,i)||l)s=a(t,s,r);else return s.focus(),!0}return!1}const xve=z.forwardRef(function(e,r){const{actions:n,autoFocus:a=!1,autoFocusItem:i=!1,children:o,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:u="selectedMenu",...f}=e,p=z.useRef(null),v=z.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yo(()=>{a&&p.current.focus()},[a]),z.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,{direction:C})=>{const M=!p.current.style.width;if(x.clientHeight{const C=p.current,M=x.key;if(x.ctrlKey||x.metaKey||x.altKey){d&&d(x);return}const O=di(C).activeElement;if(M==="ArrowDown")x.preventDefault(),Ng(C,O,c,l,oE);else if(M==="ArrowUp")x.preventDefault(),Ng(C,O,c,l,r6);else if(M==="Home")x.preventDefault(),Ng(C,null,c,l,oE);else if(M==="End")x.preventDefault(),Ng(C,null,c,l,r6);else if(M.length===1){const R=v.current,L=M.toLowerCase(),$=performance.now();R.keys.length>0&&($-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&L!==R.keys[0]&&(R.repeating=!1)),R.lastTime=$,R.keys.push(L);const N=O&&!R.repeating&&Uq(O,R);R.previousKeyMatched&&(N||Ng(C,O,!1,l,oE,R))?x.preventDefault():R.previousKeyMatched=!1}d&&d(x)},_=Mn(p,r);let b=-1;z.Children.forEach(o,(x,C)=>{if(!z.isValidElement(x)){b===C&&(b+=1,b>=o.length&&(b=-1));return}x.props.disabled||(u==="selectedMenu"&&x.props.selected||b===-1)&&(b=C),b===C&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(b+=1,b>=o.length&&(b=-1))});const w=z.Children.map(o,(x,C)=>{if(C===b){const M={};return i&&(M.autoFocus=!0),x.props.tabIndex===void 0&&u==="selectedMenu"&&(M.tabIndex=0),z.cloneElement(x,M)}return x});return q.jsx(pve,{role:"menu",ref:_,className:s,onKeyDown:g,tabIndex:a?0:-1,...f,children:w})});function Cve(t){return At("MuiPopover",t)}Tt("MuiPopover",["root","paper"]);function n6(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function a6(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function i6(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function sE(t){return typeof t=="function"?t():t}const Tve=t=>{const{classes:e}=t;return Lt({root:["root"],paper:["paper"]},Cve,e)},kve=$e(Wq,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Yq=$e(MC,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Eve=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiPopover"}),{action:a,anchorEl:i,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:d,container:u,elevation:f=8,marginThreshold:p=16,open:v,PaperProps:g={},slots:_={},slotProps:b={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:x=ex,transitionDuration:C="auto",TransitionProps:{onEntering:M,...k}={},disableScrollLock:O=!1,...R}=n,L=(b==null?void 0:b.paper)??g,$=z.useRef(),N={...n,anchorOrigin:o,anchorReference:l,elevation:f,marginThreshold:p,externalPaperSlotProps:L,transformOrigin:w,TransitionComponent:x,transitionDuration:C,TransitionProps:k},W=Tve(N),j=z.useCallback(()=>{if(l==="anchorPosition")return s;const Pe=sE(i),ye=(Pe&&Pe.nodeType===1?Pe:di($.current).body).getBoundingClientRect();return{top:ye.top+n6(ye,o.vertical),left:ye.left+a6(ye,o.horizontal)}},[i,o.horizontal,o.vertical,s,l]),Y=z.useCallback(Pe=>({vertical:n6(Pe,w.vertical),horizontal:a6(Pe,w.horizontal)}),[w.horizontal,w.vertical]),V=z.useCallback(Pe=>{const we={width:Pe.offsetWidth,height:Pe.offsetHeight},ye=Y(we);if(l==="none")return{top:null,left:null,transformOrigin:i6(ye)};const ht=j();let Be=ht.top-ye.vertical,je=ht.left-ye.horizontal;const Dt=Be+we.height,Me=je+we.width,ot=ps(sE(i)),kt=ot.innerHeight-p,_t=ot.innerWidth-p;if(p!==null&&Bekt){const tt=Dt-kt;Be-=tt,ye.vertical+=tt}if(p!==null&&je_t){const tt=Me-_t;je-=tt,ye.horizontal+=tt}return{top:`${Math.round(Be)}px`,left:`${Math.round(je)}px`,transformOrigin:i6(ye)}},[i,l,j,Y,p]),[J,ie]=z.useState(v),K=z.useCallback(()=>{const Pe=$.current;if(!Pe)return;const we=V(Pe);we.top!==null&&Pe.style.setProperty("top",we.top),we.left!==null&&(Pe.style.left=we.left),Pe.style.transformOrigin=we.transformOrigin,ie(!0)},[V]);z.useEffect(()=>(O&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[i,O,K]);const Q=(Pe,we)=>{M&&M(Pe,we),K()},oe=()=>{ie(!1)};z.useEffect(()=>{v&&K()}),z.useImperativeHandle(a,()=>v?{updatePosition:()=>{K()}}:null,[v,K]),z.useEffect(()=>{if(!v)return;const Pe=kC(()=>{K()}),we=ps(i);return we.addEventListener("resize",Pe),()=>{Pe.clear(),we.removeEventListener("resize",Pe)}},[i,v,K]);let H=C;C==="auto"&&!x.muiSupportAuto&&(H=void 0);const X=u||(i?di(sE(i)).body:void 0),ae={slots:_,slotProps:{...b,paper:L}},[re,le]=Gn("paper",{elementType:Yq,externalForwardedProps:ae,additionalProps:{elevation:f,className:Ze(W.paper,L==null?void 0:L.className),style:J?L.style:{...L.style,opacity:0}},ownerState:N}),[Ee,{slotProps:We,...Ne}]=Gn("root",{elementType:kve,externalForwardedProps:ae,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:X,open:v},ownerState:N,className:Ze(W.root,d)}),Le=Mn($,le.ref);return q.jsx(Ee,{...Ne,...!oP(Ee)&&{slotProps:We,disableScrollLock:O},...R,ref:r,children:q.jsx(x,{appear:!0,in:v,onEntering:Q,onExited:oe,timeout:H,...k,children:q.jsx(re,{...le,ref:Le,children:c})})})});function Dve(t){return At("MuiMenu",t)}Tt("MuiMenu",["root","paper","list"]);const Mve={vertical:"top",horizontal:"right"},Ove={vertical:"top",horizontal:"left"},$ve=t=>{const{classes:e}=t;return Lt({root:["root"],paper:["paper"],list:["list"]},Dve,e)},Ave=$e(Eve,{shouldForwardProp:t=>qn(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Pve=$e(Yq,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ive=$e(xve,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),Vq=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:i,className:o,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:d,PaperProps:u={},PopoverClasses:f,transitionDuration:p="auto",TransitionProps:{onEntering:v,...g}={},variant:_="selectedMenu",slots:b={},slotProps:w={},...x}=n,C=vv(),M={...n,autoFocus:a,disableAutoFocusItem:s,MenuListProps:l,onEntering:v,PaperProps:u,transitionDuration:p,TransitionProps:g,variant:_},k=$ve(M),O=a&&!s&&d,R=z.useRef(null),L=(J,ie)=>{R.current&&R.current.adjustStyleForScrollbar(J,{direction:C?"rtl":"ltr"}),v&&v(J,ie)},$=J=>{J.key==="Tab"&&(J.preventDefault(),c&&c(J,"tabKeyDown"))};let N=-1;z.Children.map(i,(J,ie)=>{z.isValidElement(J)&&(J.props.disabled||(_==="selectedMenu"&&J.props.selected||N===-1)&&(N=ie))});const W=b.paper??Pve,j=w.paper??u,Y=rd({elementType:b.root,externalSlotProps:w.root,ownerState:M,className:[k.root,o]}),V=rd({elementType:W,externalSlotProps:j,ownerState:M,className:k.paper});return q.jsx(Ave,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Mve:Ove,slots:{paper:W,root:b.root},slotProps:{root:Y,paper:V},open:d,ref:r,transitionDuration:p,TransitionProps:{onEntering:L,...g},ownerState:M,...x,classes:f,children:q.jsx(Ive,{onKeyDown:$,actions:R,autoFocus:a&&(N===-1||s),autoFocusItem:O,variant:_,...l,className:Ze(k.list,l.className),children:i})})});function Rve(t){return At("MuiMenuItem",t)}const Fg=Tt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Lve=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},Nve=t=>{const{disabled:e,dense:r,divider:n,disableGutters:a,selected:i,classes:o}=t,l=Lt({root:["root",r&&"dense",e&&"disabled",!a&&"gutters",n&&"divider",i&&"selected"]},Rve,o);return{...o,...l}},Fve=$e(ud,{shouldForwardProp:t=>qn(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Lve})($t(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Fg.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:pn(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Fg.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:pn(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Fg.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:pn(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:pn(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Fg.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Fg.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${Zz.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${Zz.inset}`]:{marginLeft:52},[`& .${wm.root}`]:{marginTop:0,marginBottom:0},[`& .${wm.inset}`]:{paddingLeft:36},[`& .${t6.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${t6.root} svg`]:{fontSize:"1.25rem"}}}]}))),tn=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiMenuItem"}),{autoFocus:a=!1,component:i="li",dense:o=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:u,className:f,...p}=n,v=z.useContext(Ty),g=z.useMemo(()=>({dense:o||v.dense||!1,disableGutters:l}),[v.dense,o,l]),_=z.useRef(null);yo(()=>{a&&_.current&&_.current.focus()},[a]);const b={...n,dense:g.dense,divider:s,disableGutters:l},w=Nve(n),x=Mn(_,r);let C;return n.disabled||(C=u!==void 0?u:-1),q.jsx(Ty.Provider,{value:g,children:q.jsx(Fve,{ref:x,role:d,tabIndex:C,component:i,focusVisibleClassName:Ze(w.focusVisible,c),className:Ze(w.root,f),...p,ownerState:b,classes:w})})});function zve(t){return At("MuiNativeSelect",t)}const wL=Tt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Bve=t=>{const{classes:e,variant:r,disabled:n,multiple:a,open:i,error:o}=t,s={select:["select",r,n&&"disabled",a&&"multiple",o&&"error"],icon:["icon",`icon${ze(r)}`,i&&"iconOpen",n&&"disabled"]};return Lt(s,zve,e)},Gq=$e("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${wL.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),jve=$e(Gq,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:qn,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${wL.multiple}`]:e.multiple}]}})({}),qq=$e("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${wL.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Wve=$e(qq,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${ze(r.variant)}`],r.open&&e.iconOpen]}})({}),Hve=z.forwardRef(function(e,r){const{className:n,disabled:a,error:i,IconComponent:o,inputRef:s,variant:l="standard",...c}=e,d={...e,disabled:a,variant:l,error:i},u=Bve(d);return q.jsxs(z.Fragment,{children:[q.jsx(jve,{ownerState:d,className:Ze(u.select,n),disabled:a,ref:s||r,...c}),e.multiple?null:q.jsx(Wve,{as:o,ownerState:d,className:u.icon})]})});var o6;const Uve=$e("fieldset",{shouldForwardProp:qn})({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%"}),Yve=$e("legend",{shouldForwardProp:qn})($t(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function Vve(t){const{children:e,classes:r,className:n,label:a,notched:i,...o}=t,s=a!=null&&a!=="",l={...t,notched:i,withLabel:s};return q.jsx(Uve,{"aria-hidden":!0,className:n,ownerState:l,...o,children:q.jsx(Yve,{ownerState:l,children:s?q.jsx("span",{children:a}):o6||(o6=q.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Gve=t=>{const{classes:e}=t,n=Lt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Uhe,e);return{...e,...n}},qve=$e(PC,{shouldForwardProp:t=>qn(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:$C})($t(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Vs.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Vs.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${Vs.focused} .${Vs.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(On()).map(([r])=>({props:{color:r},style:{[`&.${Vs.focused} .${Vs.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${Vs.error} .${Vs.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Vs.disabled} .${Vs.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),Xve=$e(Vve,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})($t(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),Jve=$e(IC,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:AC})($t(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),SL=z.forwardRef(function(e,r){var n;const a=zt({props:e,name:"MuiOutlinedInput"}),{components:i={},fullWidth:o=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:d,slots:u={},type:f="text",...p}=a,v=Gve(a),g=El(),_=fd({props:a,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...a,color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:g,fullWidth:o,hiddenLabel:_.hiddenLabel,multiline:c,size:_.size,type:f},w=u.root??i.Root??qve,x=u.input??i.Input??Jve;return q.jsx(gL,{slots:{root:w,input:x},renderSuffix:C=>q.jsx(Xve,{ownerState:b,className:v.notchedOutline,label:l!=null&&l!==""&&_.required?n||(n=q.jsxs(z.Fragment,{children:[l," ","*"]})):l,notched:typeof d<"u"?d:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:o,inputComponent:s,multiline:c,ref:r,type:f,...p,classes:{...v,notchedOutline:null}})});SL.muiName="Input";const Zve=Pt(q.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"),Kve=Pt(q.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"),Qve=$e("span",{shouldForwardProp:qn})({position:"relative",display:"flex"}),ege=$e(Zve)({transform:"scale(1)"}),tge=$e(Kve)($t(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function Xq(t){const{checked:e=!1,classes:r={},fontSize:n}=t,a={...t,checked:e};return q.jsxs(Qve,{className:r.root,ownerState:a,children:[q.jsx(ege,{fontSize:n,className:r.background,ownerState:a}),q.jsx(tge,{fontSize:n,className:r.dot,ownerState:a})]})}const rge=z.createContext(void 0);function nge(){return z.useContext(rge)}function age(t){return At("MuiRadio",t)}const s6=Tt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ige=t=>{const{classes:e,color:r,size:n}=t,a={root:["root",`color${ze(r)}`,n!=="medium"&&`size${ze(n)}`]};return{...e,...Lt(a,age,e)}},oge=$e(jq,{shouldForwardProp:t=>qn(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${ze(r.size)}`],e[`color${ze(r.color)}`]]}})($t(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${s6.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:pn(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(On()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:pn(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(On()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${s6.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function sge(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const l6=q.jsx(Xq,{checked:!0}),c6=q.jsx(Xq,{}),Yr=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=l6,color:o="primary",icon:s=c6,name:l,onChange:c,size:d="medium",className:u,disabled:f,disableRipple:p=!1,...v}=n,g=El();let _=f;g&&typeof _>"u"&&(_=g.disabled),_??(_=!1);const b={...n,disabled:_,disableRipple:p,color:o,size:d},w=ige(b),x=nge();let C=a;const M=qA(c,x&&x.onChange);let k=l;return x&&(typeof C>"u"&&(C=sge(x.value,n.value)),typeof k>"u"&&(k=x.name)),q.jsx(oge,{type:"radio",icon:z.cloneElement(s,{fontSize:c6.props.fontSize??d}),checkedIcon:z.cloneElement(i,{fontSize:l6.props.fontSize??d}),disabled:_,ownerState:b,classes:w,name:k,checked:C,onChange:M,ref:r,className:Ze(w.root,u),...v})});function lge(t){return At("MuiSelect",t)}const zg=Tt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var u6;const cge=$e(Gq,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${zg.select}`]:e.select},{[`&.${zg.select}`]:e[r.variant]},{[`&.${zg.error}`]:e.error},{[`&.${zg.multiple}`]:e.multiple}]}})({[`&.${zg.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),uge=$e(qq,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${ze(r.variant)}`],r.open&&e.iconOpen]}})({}),dge=$e("input",{shouldForwardProp:t=>Sq(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function d6(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function fge(t){return t==null||typeof t=="string"&&!t.trim()}const hge=t=>{const{classes:e,variant:r,disabled:n,multiple:a,open:i,error:o}=t,s={select:["select",r,n&&"disabled",a&&"multiple",o&&"error"],icon:["icon",`icon${ze(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Lt(s,lge,e)},pge=z.forwardRef(function(e,r){var Kt;const{"aria-describedby":n,"aria-label":a,autoFocus:i,autoWidth:o,children:s,className:l,defaultOpen:c,defaultValue:d,disabled:u,displayEmpty:f,error:p=!1,IconComponent:v,inputRef:g,labelId:_,MenuProps:b={},multiple:w,name:x,onBlur:C,onChange:M,onClose:k,onFocus:O,onOpen:R,open:L,readOnly:$,renderValue:N,required:W,SelectDisplayProps:j={},tabIndex:Y,type:V,value:J,variant:ie="standard",...K}=e,[Q,oe]=GS({controlled:J,default:d,name:"Select"}),[H,X]=GS({controlled:L,default:c,name:"Select"}),ae=z.useRef(null),re=z.useRef(null),[le,Ee]=z.useState(null),{current:We}=z.useRef(L!=null),[Ne,Le]=z.useState(),Pe=Mn(r,g),we=z.useCallback(me=>{re.current=me,me&&Ee(me)},[]),ye=le==null?void 0:le.parentNode;z.useImperativeHandle(Pe,()=>({focus:()=>{re.current.focus()},node:ae.current,value:Q}),[Q]),z.useEffect(()=>{c&&H&&le&&!We&&(Le(o?null:ye.clientWidth),re.current.focus())},[le,o]),z.useEffect(()=>{i&&re.current.focus()},[i]),z.useEffect(()=>{if(!_)return;const me=di(re.current).getElementById(_);if(me){const Ce=()=>{getSelection().isCollapsed&&re.current.focus()};return me.addEventListener("click",Ce),()=>{me.removeEventListener("click",Ce)}}},[_]);const ht=(me,Ce)=>{me?R&&R(Ce):k&&k(Ce),We||(Le(o?null:ye.clientWidth),X(me))},Be=me=>{me.button===0&&(me.preventDefault(),re.current.focus(),ht(!0,me))},je=me=>{ht(!1,me)},Dt=z.Children.toArray(s),Me=me=>{const Ce=Dt.find(at=>at.props.value===me.target.value);Ce!==void 0&&(oe(Ce.props.value),M&&M(me,Ce))},ot=me=>Ce=>{let at;if(Ce.currentTarget.hasAttribute("tabindex")){if(w){at=Array.isArray(Q)?Q.slice():[];const gt=Q.indexOf(me.props.value);gt===-1?at.push(me.props.value):at.splice(gt,1)}else at=me.props.value;if(me.props.onClick&&me.props.onClick(Ce),Q!==at&&(oe(at),M)){const gt=Ce.nativeEvent||Ce,Qt=new gt.constructor(gt.type,gt);Object.defineProperty(Qt,"target",{writable:!0,value:{value:at,name:x}}),M(Qt,me)}w||ht(!1,Ce)}},kt=me=>{$||[" ","ArrowUp","ArrowDown","Enter"].includes(me.key)&&(me.preventDefault(),ht(!0,me))},_t=le!==null&&H,tt=me=>{!_t&&C&&(Object.defineProperty(me,"target",{writable:!0,value:{value:Q,name:x}}),C(me))};delete K["aria-invalid"];let Fe,Vt;const _e=[];let He=!1;(QS({value:Q})||f)&&(N?Fe=N(Q):He=!0);const pt=Dt.map(me=>{if(!z.isValidElement(me))return null;let Ce;if(w){if(!Array.isArray(Q))throw new Error(xc(2));Ce=Q.some(at=>d6(at,me.props.value)),Ce&&He&&_e.push(me.props.children)}else Ce=d6(Q,me.props.value),Ce&&He&&(Vt=me.props.children);return z.cloneElement(me,{"aria-selected":Ce?"true":"false",onClick:ot(me),onKeyUp:at=>{at.key===" "&&at.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(at)},role:"option",selected:Ce,value:void 0,"data-value":me.props.value})});He&&(w?_e.length===0?Fe=null:Fe=_e.reduce((me,Ce,at)=>(me.push(Ce),at<_e.length-1&&me.push(", "),me),[]):Fe=Vt);let ct=Ne;!o&&We&&le&&(ct=ye.clientWidth);let ut;typeof Y<"u"?ut=Y:ut=u?null:0;const Et=j.id||(x?`mui-component-select-${x}`:void 0),nt={...e,variant:ie,value:Q,open:_t,error:p},Ke=hge(nt),nr={...b.PaperProps,...(Kt=b.slotProps)==null?void 0:Kt.paper},ar=EC();return q.jsxs(z.Fragment,{children:[q.jsx(cge,{as:"div",ref:we,tabIndex:ut,role:"combobox","aria-controls":ar,"aria-disabled":u?"true":void 0,"aria-expanded":_t?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[_,Et].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":W?"true":void 0,"aria-invalid":p?"true":void 0,onKeyDown:kt,onMouseDown:u||$?null:Be,onBlur:tt,onFocus:O,...j,ownerState:nt,className:Ze(j.className,Ke.select,l),id:Et,children:fge(Fe)?u6||(u6=q.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Fe}),q.jsx(dge,{"aria-invalid":p,value:Array.isArray(Q)?Q.join(","):Q,name:x,ref:ae,"aria-hidden":!0,onChange:Me,tabIndex:-1,disabled:u,className:Ke.nativeInput,autoFocus:i,required:W,...K,ownerState:nt}),q.jsx(uge,{as:v,className:Ke.icon,ownerState:nt}),q.jsx(Vq,{id:`menu-${x||""}`,anchorEl:ye,open:_t,onClose:je,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,MenuListProps:{"aria-labelledby":_,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:ar,...b.MenuListProps},slotProps:{...b.slotProps,paper:{...nr,style:{minWidth:ct,...nr!=null?nr.style:null}}},children:pt})]})}),mge=t=>{const{classes:e}=t;return e},xL={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>qn(t)&&t!=="variant",slot:"Root"},vge=$e(nl,xL)(""),gge=$e(SL,xL)(""),_ge=$e(_L,xL)(""),ns=z.forwardRef(function(e,r){const n=zt({name:"MuiSelect",props:e}),{autoWidth:a=!1,children:i,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=Vhe,id:u,input:f,inputProps:p,label:v,labelId:g,MenuProps:_,multiple:b=!1,native:w=!1,onClose:x,onOpen:C,open:M,renderValue:k,SelectDisplayProps:O,variant:R="outlined",...L}=n,$=w?Hve:pge,N=El(),W=fd({props:n,muiFormControl:N,states:["variant","error"]}),j=W.variant||R,Y={...n,variant:j,classes:o},V=mge(Y),{root:J,...ie}=V,K=f||{standard:q.jsx(vge,{ownerState:Y}),outlined:q.jsx(gge,{label:v,ownerState:Y}),filled:q.jsx(_ge,{ownerState:Y})}[j],Q=Mn(r,mv(K));return q.jsx(z.Fragment,{children:z.cloneElement(K,{inputComponent:$,inputProps:{children:i,error:W.error,IconComponent:d,variant:j,type:void 0,multiple:b,...w?{id:u}:{autoWidth:a,defaultOpen:l,displayEmpty:c,labelId:g,MenuProps:_,onClose:x,onOpen:C,open:M,renderValue:k,SelectDisplayProps:{id:u,...O}},...p,classes:p?Ta(ie,p.classes):ie,...f?f.props.inputProps:{}},...(b&&w||c)&&j==="outlined"?{notched:!0}:{},ref:Q,className:Ze(K.props.className,s,V.root),...!f&&{variant:j},...L})})});ns.muiName="Select";function yge(t){return At("MuiTooltip",t)}const hn=Tt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function bge(t){return Math.round(t*1e5)/1e5}const wge=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:a,placement:i}=t,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${ze(i.split("-")[0])}`],arrow:["arrow"]};return Lt(o,yge,e)},Sge=$e(Nq,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})($t(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${hn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${hn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${hn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${hn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${hn.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${hn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${hn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${hn.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),xge=$e("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${ze(r.placement.split("-")[0])}`]]}})($t(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:pn(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${hn.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${hn.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${hn.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${hn.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${bge(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${hn.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${hn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${hn.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${hn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${hn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${hn.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${hn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${hn.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${hn.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${hn.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Cge=$e("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})($t(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:pn(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let R1=!1;const f6=new DC;let Bg={x:0,y:0};function L1(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const lE=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiTooltip"}),{arrow:a=!1,children:i,classes:o,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:u=!1,disableInteractive:f=!1,disableTouchListener:p=!1,enterDelay:v=100,enterNextDelay:g=0,enterTouchDelay:_=700,followCursor:b=!1,id:w,leaveDelay:x=0,leaveTouchDelay:C=1500,onClose:M,onOpen:k,open:O,placement:R="bottom",PopperComponent:L,PopperProps:$={},slotProps:N={},slots:W={},title:j,TransitionComponent:Y,TransitionProps:V,...J}=n,ie=z.isValidElement(i)?i:q.jsx("span",{children:i}),K=xh(),Q=vv(),[oe,H]=z.useState(),[X,ae]=z.useState(null),re=z.useRef(!1),le=f||b,Ee=bm(),We=bm(),Ne=bm(),Le=bm(),[Pe,we]=GS({controlled:O,default:!1,name:"Tooltip",state:"open"});let ye=Pe;const ht=EC(w),Be=z.useRef(),je=ds(()=>{Be.current!==void 0&&(document.body.style.WebkitUserSelect=Be.current,Be.current=void 0),Le.clear()});z.useEffect(()=>je,[je]);const Dt=Bt=>{f6.clear(),R1=!0,we(!0),k&&!ye&&k(Bt)},Me=ds(Bt=>{f6.start(800+x,()=>{R1=!1}),we(!1),M&&ye&&M(Bt),Ee.start(K.transitions.duration.shortest,()=>{re.current=!1})}),ot=Bt=>{re.current&&Bt.type!=="touchstart"||(oe&&oe.removeAttribute("title"),We.clear(),Ne.clear(),v||R1&&g?We.start(R1?g:v,()=>{Dt(Bt)}):Dt(Bt))},kt=Bt=>{We.clear(),Ne.start(x,()=>{Me(Bt)})},[,_t]=z.useState(!1),tt=Bt=>{qS(Bt.target)||(_t(!1),kt(Bt))},Fe=Bt=>{oe||H(Bt.currentTarget),qS(Bt.target)&&(_t(!0),ot(Bt))},Vt=Bt=>{re.current=!0;const Gr=ie.props;Gr.onTouchStart&&Gr.onTouchStart(Bt)},_e=Bt=>{Vt(Bt),Ne.clear(),Ee.clear(),je(),Be.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Le.start(_,()=>{document.body.style.WebkitUserSelect=Be.current,ot(Bt)})},He=Bt=>{ie.props.onTouchEnd&&ie.props.onTouchEnd(Bt),je(),Ne.start(C,()=>{Me(Bt)})};z.useEffect(()=>{if(!ye)return;function Bt(Gr){Gr.key==="Escape"&&Me(Gr)}return document.addEventListener("keydown",Bt),()=>{document.removeEventListener("keydown",Bt)}},[Me,ye]);const pt=Mn(mv(ie),H,r);!j&&j!==0&&(ye=!1);const ct=z.useRef(),ut=Bt=>{const Gr=ie.props;Gr.onMouseMove&&Gr.onMouseMove(Bt),Bg={x:Bt.clientX,y:Bt.clientY},ct.current&&ct.current.update()},Et={},nt=typeof j=="string";c?(Et.title=!ye&&nt&&!u?j:null,Et["aria-describedby"]=ye?ht:null):(Et["aria-label"]=nt?j:null,Et["aria-labelledby"]=ye&&!nt?ht:null);const Ke={...Et,...J,...ie.props,className:Ze(J.className,ie.props.className),onTouchStart:Vt,ref:pt,...b?{onMouseMove:ut}:{}},nr={};p||(Ke.onTouchStart=_e,Ke.onTouchEnd=He),u||(Ke.onMouseOver=L1(ot,Ke.onMouseOver),Ke.onMouseLeave=L1(kt,Ke.onMouseLeave),le||(nr.onMouseOver=ot,nr.onMouseLeave=kt)),d||(Ke.onFocus=L1(Fe,Ke.onFocus),Ke.onBlur=L1(tt,Ke.onBlur),le||(nr.onFocus=Fe,nr.onBlur=tt));const ar={...n,isRtl:Q,arrow:a,disableInteractive:le,placement:R,PopperComponentProp:L,touch:re.current},Kt=typeof N.popper=="function"?N.popper(ar):N.popper,me=z.useMemo(()=>{var Gr,zn;let Bt=[{name:"arrow",enabled:!!X,options:{element:X,padding:4}}];return(Gr=$.popperOptions)!=null&&Gr.modifiers&&(Bt=Bt.concat($.popperOptions.modifiers)),(zn=Kt==null?void 0:Kt.popperOptions)!=null&&zn.modifiers&&(Bt=Bt.concat(Kt.popperOptions.modifiers)),{...$.popperOptions,...Kt==null?void 0:Kt.popperOptions,modifiers:Bt}},[X,$.popperOptions,Kt==null?void 0:Kt.popperOptions]),Ce=wge(ar),at=typeof N.transition=="function"?N.transition(ar):N.transition,gt={slots:{popper:s.Popper,transition:s.Transition??Y,tooltip:s.Tooltip,arrow:s.Arrow,...W},slotProps:{arrow:N.arrow??l.arrow,popper:{...$,...Kt??l.popper},tooltip:N.tooltip??l.tooltip,transition:{...V,...at??l.transition}}},[Qt,Fn]=Gn("popper",{elementType:Sge,externalForwardedProps:gt,ownerState:ar,className:Ze(Ce.popper,$==null?void 0:$.className)}),[cn,gn]=Gn("transition",{elementType:ex,externalForwardedProps:gt,ownerState:ar}),[Po,vi]=Gn("tooltip",{elementType:xge,className:Ce.tooltip,externalForwardedProps:gt,ownerState:ar}),[Ve,Nh]=Gn("arrow",{elementType:Cge,className:Ce.arrow,externalForwardedProps:gt,ownerState:ar,ref:ae});return q.jsxs(z.Fragment,{children:[z.cloneElement(ie,Ke),q.jsx(Qt,{as:L??Nq,placement:R,anchorEl:b?{getBoundingClientRect:()=>({top:Bg.y,left:Bg.x,right:Bg.x,bottom:Bg.y,width:0,height:0})}:oe,popperRef:ct,open:oe?ye:!1,id:ht,transition:!0,...nr,...Fn,popperOptions:me,children:({TransitionProps:Bt})=>q.jsx(cn,{timeout:K.transitions.duration.shorter,...Bt,...gn,children:q.jsxs(Po,{...vi,children:[j,a?q.jsx(Ve,{...Nh}):null]})})})]})});function Tge(t){return At("MuiTab",t)}const Ki=Tt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),kge=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:a,icon:i,label:o,selected:s,disabled:l}=t,c={root:["root",i&&o&&"labelIcon",`textColor${ze(r)}`,n&&"fullWidth",a&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Lt(c,Tge,e)},Ege=$e(ud,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${ze(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${Ki.iconWrapper}`]:e.iconWrapper},{[`& .${Ki.icon}`]:e.icon}]}})($t(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${Ki.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${Ki.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${Ki.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${Ki.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Ki.selected}`]:{opacity:1},[`&.${Ki.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Ki.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Ki.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Ki.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Ki.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),Tp=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiTab"}),{className:a,disabled:i=!1,disableFocusRipple:o=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:d,label:u,onChange:f,onClick:p,onFocus:v,selected:g,selectionFollowsFocus:_,textColor:b="inherit",value:w,wrapped:x=!1,...C}=n,M={...n,disabled:i,disableFocusRipple:o,selected:g,icon:!!l,iconPosition:c,label:!!u,fullWidth:s,textColor:b,wrapped:x},k=kge(M),O=l&&u&&z.isValidElement(l)?z.cloneElement(l,{className:Ze(k.icon,l.props.className)}):l,R=$=>{!g&&f&&f($,w),p&&p($)},L=$=>{_&&!g&&f&&f($,w),v&&v($)};return q.jsxs(Ege,{focusRipple:!o,className:Ze(k.root,a),ref:r,role:"tab","aria-selected":g,disabled:i,onClick:R,onFocus:L,ownerState:M,tabIndex:g?0:-1,...C,children:[c==="top"||c==="start"?q.jsxs(z.Fragment,{children:[O,u]}):q.jsxs(z.Fragment,{children:[u,O]}),d]})});function Dge(t){return At("MuiToolbar",t)}Tt("MuiToolbar",["root","gutters","regular","dense"]);const Mge=t=>{const{classes:e,disableGutters:r,variant:n}=t;return Lt({root:["root",!r&&"gutters",n]},Dge,e)},Oge=$e("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})($t(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),Jq=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiToolbar"}),{className:a,component:i="div",disableGutters:o=!1,variant:s="regular",...l}=n,c={...n,component:i,disableGutters:o,variant:s},d=Mge(c);return q.jsx(Oge,{as:i,className:Ze(d.root,a),ref:r,ownerState:c,...l})}),$ge=Pt(q.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Age=Pt(q.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Pge(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function Ige(t,e,r,n={},a=()=>{}){const{ease:i=Pge,duration:o=300}=n;let s=null;const l=e[t];let c=!1;const d=()=>{c=!0},u=f=>{if(c){a(new Error("Animation cancelled"));return}s===null&&(s=f);const p=Math.min(1,(f-s)/o);if(e[t]=i(p)*(r-l)+l,p>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(u)};return l===r?(a(new Error("Element already at target position")),d):(requestAnimationFrame(u),d)}const Rge={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Lge(t){const{onChange:e,...r}=t,n=z.useRef(),a=z.useRef(null),i=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return yo(()=>{const o=kC(()=>{const l=n.current;i(),l!==n.current&&e(n.current)}),s=ps(a.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[e]),z.useEffect(()=>{i(),e(n.current)},[e]),q.jsx("div",{style:Rge,...r,ref:a})}function Nge(t){return At("MuiTabScrollButton",t)}const Fge=Tt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),zge=t=>{const{classes:e,orientation:r,disabled:n}=t;return Lt({root:["root",r,n&&"disabled"]},Nge,e)},Bge=$e(ud,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Fge.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),jge=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiTabScrollButton"}),{className:a,slots:i={},slotProps:o={},direction:s,orientation:l,disabled:c,...d}=n,u=vv(),f={isRtl:u,...n},p=zge(f),v=i.StartScrollButtonIcon??$ge,g=i.EndScrollButtonIcon??Age,_=rd({elementType:v,externalSlotProps:o.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),b=rd({elementType:g,externalSlotProps:o.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return q.jsx(Bge,{component:"div",className:Ze(p.root,a),ref:r,role:null,ownerState:f,tabIndex:null,...d,style:{...d.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:s==="left"?q.jsx(v,{..._}):q.jsx(g,{...b})})});function Wge(t){return At("MuiTabs",t)}const cE=Tt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),h6=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,p6=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,N1=(t,e,r)=>{let n=!1,a=r(t,e);for(;a;){if(a===t.firstChild){if(n)return;n=!0}const i=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||i)a=r(t,a);else{a.focus();return}}},Hge=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:i,centered:o,scrollButtonsHideMobile:s,classes:l}=t;return Lt({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Wge,l)},Uge=$e("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${cE.scrollButtons}`]:e.scrollButtons},{[`& .${cE.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})($t(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${cE.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),Yge=$e("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Vge=$e("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),Gge=$e("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})($t(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),qge=$e(Lge)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),m6={},Xge=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiTabs"}),a=xh(),i=vv(),{"aria-label":o,"aria-labelledby":s,action:l,centered:c=!1,children:d,className:u,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:v="primary",onChange:g,orientation:_="horizontal",ScrollButtonComponent:b=jge,scrollButtons:w="auto",selectionFollowsFocus:x,slots:C={},slotProps:M={},TabIndicatorProps:k={},TabScrollButtonProps:O={},textColor:R="primary",value:L,variant:$="standard",visibleScrollbar:N=!1,...W}=n,j=$==="scrollable",Y=_==="vertical",V=Y?"scrollTop":"scrollLeft",J=Y?"top":"left",ie=Y?"bottom":"right",K=Y?"clientHeight":"clientWidth",Q=Y?"height":"width",oe={...n,component:f,allowScrollButtonsMobile:p,indicatorColor:v,orientation:_,vertical:Y,scrollButtons:w,textColor:R,variant:$,visibleScrollbar:N,fixed:!j,hideScrollbar:j&&!N,scrollableX:j&&!Y,scrollableY:j&&Y,centered:c&&!j,scrollButtonsHideMobile:!p},H=Hge(oe),X=rd({elementType:C.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:oe}),ae=rd({elementType:C.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:oe}),[re,le]=z.useState(!1),[Ee,We]=z.useState(m6),[Ne,Le]=z.useState(!1),[Pe,we]=z.useState(!1),[ye,ht]=z.useState(!1),[Be,je]=z.useState({overflow:"hidden",scrollbarWidth:0}),Dt=new Map,Me=z.useRef(null),ot=z.useRef(null),kt=()=>{const me=Me.current;let Ce;if(me){const gt=me.getBoundingClientRect();Ce={clientWidth:me.clientWidth,scrollLeft:me.scrollLeft,scrollTop:me.scrollTop,scrollWidth:me.scrollWidth,top:gt.top,bottom:gt.bottom,left:gt.left,right:gt.right}}let at;if(me&&L!==!1){const gt=ot.current.children;if(gt.length>0){const Qt=gt[Dt.get(L)];at=Qt?Qt.getBoundingClientRect():null}}return{tabsMeta:Ce,tabMeta:at}},_t=ds(()=>{const{tabsMeta:me,tabMeta:Ce}=kt();let at=0,gt;Y?(gt="top",Ce&&me&&(at=Ce.top-me.top+me.scrollTop)):(gt=i?"right":"left",Ce&&me&&(at=(i?-1:1)*(Ce[gt]-me[gt]+me.scrollLeft)));const Qt={[gt]:at,[Q]:Ce?Ce[Q]:0};if(typeof Ee[gt]!="number"||typeof Ee[Q]!="number")We(Qt);else{const Fn=Math.abs(Ee[gt]-Qt[gt]),cn=Math.abs(Ee[Q]-Qt[Q]);(Fn>=1||cn>=1)&&We(Qt)}}),tt=(me,{animation:Ce=!0}={})=>{Ce?Ige(V,Me.current,me,{duration:a.transitions.duration.standard}):Me.current[V]=me},Fe=me=>{let Ce=Me.current[V];Y?Ce+=me:Ce+=me*(i?-1:1),tt(Ce)},Vt=()=>{const me=Me.current[K];let Ce=0;const at=Array.from(ot.current.children);for(let gt=0;gtme){gt===0&&(Ce=me);break}Ce+=Qt[K]}return Ce},_e=()=>{Fe(-1*Vt())},He=()=>{Fe(Vt())},pt=z.useCallback(me=>{je({overflow:null,scrollbarWidth:me})},[]),ct=()=>{const me={};me.scrollbarSizeListener=j?q.jsx(qge,{onChange:pt,className:Ze(H.scrollableX,H.hideScrollbar)}):null;const at=j&&(w==="auto"&&(Ne||Pe)||w===!0);return me.scrollButtonStart=at?q.jsx(b,{slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:X},orientation:_,direction:i?"right":"left",onClick:_e,disabled:!Ne,...O,className:Ze(H.scrollButtons,O.className)}):null,me.scrollButtonEnd=at?q.jsx(b,{slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ae},orientation:_,direction:i?"left":"right",onClick:He,disabled:!Pe,...O,className:Ze(H.scrollButtons,O.className)}):null,me},ut=ds(me=>{const{tabsMeta:Ce,tabMeta:at}=kt();if(!(!at||!Ce)){if(at[J]Ce[ie]){const gt=Ce[V]+(at[ie]-Ce[ie]);tt(gt,{animation:me})}}}),Et=ds(()=>{j&&w!==!1&&ht(!ye)});z.useEffect(()=>{const me=kC(()=>{Me.current&&_t()});let Ce;const at=Fn=>{Fn.forEach(cn=>{cn.removedNodes.forEach(gn=>{Ce==null||Ce.unobserve(gn)}),cn.addedNodes.forEach(gn=>{Ce==null||Ce.observe(gn)})}),me(),Et()},gt=ps(Me.current);gt.addEventListener("resize",me);let Qt;return typeof ResizeObserver<"u"&&(Ce=new ResizeObserver(me),Array.from(ot.current.children).forEach(Fn=>{Ce.observe(Fn)})),typeof MutationObserver<"u"&&(Qt=new MutationObserver(at),Qt.observe(ot.current,{childList:!0})),()=>{me.clear(),gt.removeEventListener("resize",me),Qt==null||Qt.disconnect(),Ce==null||Ce.disconnect()}},[_t,Et]),z.useEffect(()=>{const me=Array.from(ot.current.children),Ce=me.length;if(typeof IntersectionObserver<"u"&&Ce>0&&j&&w!==!1){const at=me[0],gt=me[Ce-1],Qt={root:Me.current,threshold:.99},Fn=vi=>{Le(!vi[0].isIntersecting)},cn=new IntersectionObserver(Fn,Qt);cn.observe(at);const gn=vi=>{we(!vi[0].isIntersecting)},Po=new IntersectionObserver(gn,Qt);return Po.observe(gt),()=>{cn.disconnect(),Po.disconnect()}}},[j,w,ye,d==null?void 0:d.length]),z.useEffect(()=>{le(!0)},[]),z.useEffect(()=>{_t()}),z.useEffect(()=>{ut(m6!==Ee)},[ut,Ee]),z.useImperativeHandle(l,()=>({updateIndicator:_t,updateScrollButtons:Et}),[_t,Et]);const nt=q.jsx(Gge,{...k,className:Ze(H.indicator,k.className),ownerState:oe,style:{...Ee,...k.style}});let Ke=0;const nr=z.Children.map(d,me=>{if(!z.isValidElement(me))return null;const Ce=me.props.value===void 0?Ke:me.props.value;Dt.set(Ce,Ke);const at=Ce===L;return Ke+=1,z.cloneElement(me,{fullWidth:$==="fullWidth",indicator:at&&!re&&nt,selected:at,selectionFollowsFocus:x,onChange:g,textColor:R,value:Ce,...Ke===1&&L===!1&&!me.props.tabIndex?{tabIndex:0}:{}})}),ar=me=>{const Ce=ot.current,at=di(Ce).activeElement;if(at.getAttribute("role")!=="tab")return;let Qt=_==="horizontal"?"ArrowLeft":"ArrowUp",Fn=_==="horizontal"?"ArrowRight":"ArrowDown";switch(_==="horizontal"&&i&&(Qt="ArrowRight",Fn="ArrowLeft"),me.key){case Qt:me.preventDefault(),N1(Ce,at,p6);break;case Fn:me.preventDefault(),N1(Ce,at,h6);break;case"Home":me.preventDefault(),N1(Ce,null,h6);break;case"End":me.preventDefault(),N1(Ce,null,p6);break}},Kt=ct();return q.jsxs(Uge,{className:Ze(H.root,u),ownerState:oe,ref:r,as:f,...W,children:[Kt.scrollButtonStart,Kt.scrollbarSizeListener,q.jsxs(Yge,{className:H.scroller,ownerState:oe,style:{overflow:Be.overflow,[Y?`margin${i?"Left":"Right"}`:"marginBottom"]:N?void 0:-Be.scrollbarWidth},ref:Me,children:[q.jsx(Vge,{"aria-label":o,"aria-labelledby":s,"aria-orientation":_==="vertical"?"vertical":null,className:H.flexContainer,ownerState:oe,onKeyDown:ar,ref:ot,role:"tablist",children:nr}),re&&nt]}),Kt.scrollButtonEnd]})});function Jge(t){return At("MuiTextField",t)}Tt("MuiTextField",["root"]);const Zge={standard:nl,filled:_L,outlined:SL},Kge=t=>{const{classes:e}=t;return Lt({root:["root"]},Jge,e)},Qge=$e(Af,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Sa=z.forwardRef(function(e,r){const n=zt({props:e,name:"MuiTextField"}),{autoComplete:a,autoFocus:i=!1,children:o,className:s,color:l="primary",defaultValue:c,disabled:d=!1,error:u=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:v,id:g,InputLabelProps:_,inputProps:b,InputProps:w,inputRef:x,label:C,maxRows:M,minRows:k,multiline:O=!1,name:R,onBlur:L,onChange:$,onFocus:N,placeholder:W,required:j=!1,rows:Y,select:V=!1,SelectProps:J,slots:ie={},slotProps:K={},type:Q,value:oe,variant:H="outlined",...X}=n,ae={...n,autoFocus:i,color:l,disabled:d,error:u,fullWidth:p,multiline:O,required:j,select:V,variant:H},re=Kge(ae),le=EC(g),Ee=v&&le?`${le}-helper-text`:void 0,We=C&&le?`${le}-label`:void 0,Ne=Zge[H],Le={slots:ie,slotProps:{input:w,inputLabel:_,htmlInput:b,formHelperText:f,select:J,...K}},Pe={},we=Le.slotProps.inputLabel;H==="outlined"&&(we&&typeof we.shrink<"u"&&(Pe.notched=we.shrink),Pe.label=C),V&&((!J||!J.native)&&(Pe.id=void 0),Pe["aria-describedby"]=void 0);const[ye,ht]=Gn("input",{elementType:Ne,externalForwardedProps:Le,additionalProps:Pe,ownerState:ae}),[Be,je]=Gn("inputLabel",{elementType:ty,externalForwardedProps:Le,ownerState:ae}),[Dt,Me]=Gn("htmlInput",{elementType:"input",externalForwardedProps:Le,ownerState:ae}),[ot,kt]=Gn("formHelperText",{elementType:Wme,externalForwardedProps:Le,ownerState:ae}),[_t,tt]=Gn("select",{elementType:ns,externalForwardedProps:Le,ownerState:ae}),Fe=q.jsx(ye,{"aria-describedby":Ee,autoComplete:a,autoFocus:i,defaultValue:c,fullWidth:p,multiline:O,name:R,rows:Y,maxRows:M,minRows:k,type:Q,value:oe,id:le,inputRef:x,onBlur:L,onChange:$,onFocus:N,placeholder:W,inputProps:Me,slots:{input:ie.htmlInput?Dt:void 0},...ht});return q.jsxs(Qge,{className:Ze(re.root,s),disabled:d,error:u,fullWidth:p,ref:r,required:j,color:l,variant:H,ownerState:ae,...X,children:[C!=null&&C!==""&&q.jsx(Be,{htmlFor:le,id:We,...je,children:C}),V?q.jsx(_t,{"aria-describedby":Ee,id:le,labelId:We,value:oe,input:Fe,...tt,children:o}):Fe,v&&q.jsx(ot,{id:Ee,...kt,children:v})]})}),uE=11/23/100;function v6(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substr(1,2),16),e.g=parseInt(t.substr(3,2),16),e.b=parseInt(t.substr(5,2),16);else if(t.length===4){const r=t.substr(1,1),n=t.substr(2,1),a=t.substr(3,1);e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(a+a,16)}return e}function e_e(t){return`#${Math.round(t.r).toString(16)}${Math.round(t.g).toString(16)}${Math.round(t.b).toString(16)}`}function t_e(t,e,r){const n=v6(t),a=v6(e);return n.r+=a.r*(.05+uE*(r-1)),n.g+=a.g*(.05+uE*(r-1)),n.b+=a.b*(.05+uE*(r-1)),e_e(n)}function g6(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:t_e(t,e,n)};return r}function r_e(t,e){var o,s,l,c,d,u,f,p,v,g,_;let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:ta[200],"&:hover":{color:ta[100]}}},MuiPaper:g6("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:ta[400],"&:hover":{color:ta[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:ta[200],"&:hover":{color:ta[100]}}},MuiPaper:g6("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:ta[400],"&:hover":{color:ta[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="DX"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#a9a9a9"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:ta[400],"&:hover":{color:ta[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#F5F5F7"},secondary:{main:"#a9a9a9"},expert:"#BD1B24",text:{primary:"#007AFE",secondary:"#007AFE",disabled:"#007AFEAA"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:ta[400],"&:hover":{color:ta[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:(s=(o=r.palette)==null?void 0:o.primary)==null?void 0:s.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:JA[300],dark:JA[400]});const a=Sy(r),i=a.palette;return Sy(a,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:(l=i.grey)==null?void 0:l[300],color:i.getContrastText&&((c=i.grey)!=null&&c[300])?i.getContrastText(i.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:(d=i.text)==null?void 0:d.primary,borderColor:i.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${(u=i.action)==null?void 0:u.disabledBackground}`},"&:hover":{borderColor:i.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:pn(((f=i.text)==null?void 0:f.primary)||"",((p=i.action)==null?void 0:p.hoverOpacity)||.04)}}},{props:{variant:"text",color:"grey"},style:{color:(v=i.text)==null?void 0:v.primary,"&:hover":{backgroundColor:pn(((g=i.text)==null?void 0:g.primary)||"",((_=i.action)==null?void 0:_.hoverOpacity)||.04)}}}]}}})}function n_e(){let t,e;const r=new Promise((n,a)=>{t=n,e=a});return r.resolve=t,r.reject=e,r}function a_e(t){return(t==null?void 0:t.rows.map(e=>e.value).filter(e=>!!e))??[]}function _6(t){return t!=null&&t.startsWith("system.host.")||(t=`system.host.${t}`),t}function y6(t){return new Promise(e=>{setTimeout(e,t)})}function F1(t){t=(t||"").toString();const e=t[0]==="*",r=t[t.length-1]==="*";return t=t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(e?"":"^")+t+(r?"":"$")}var al;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(al||(al={}));var cc;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(cc||(cc={}));cc.PERMISSION_ERROR;cc.NOT_CONNECTED;const i_e=["material","echarts","vis"];class Pu{constructor(e){de(this,"props");de(this,"ignoreState","");de(this,"connected",!1);de(this,"subscribed",!1);de(this,"firstConnect",!0);de(this,"waitForRestart",!1);de(this,"loaded",!1);de(this,"simStates",{});de(this,"statesSubscribes",{});de(this,"filesSubscribes",{});de(this,"objectsSubscribes",{});de(this,"objects",{});de(this,"states",{});de(this,"acl",null);de(this,"isSecure",!1);de(this,"onReadyDone",!1);de(this,"onConnectionHandlers",[]);de(this,"onLogHandlers",[]);de(this,"onCmdStdoutHandler");de(this,"onCmdStderrHandler");de(this,"onCmdExitHandler");de(this,"_socket");de(this,"_waitForSocketPromise");de(this,"_waitForFirstConnectionPromise",n_e());de(this,"_instanceSubscriptions",{});de(this,"_promises",{});de(this,"_authTimer");de(this,"_systemConfig");de(this,"systemLang","en");this.props=this.applyDefaultProps(e),this.waitForSocketLib().then(()=>this.startSocket()).catch(r=>{alert(`Socket connection could not be initialized: ${r}`)})}applyDefaultProps(e){return{...e,protocol:e.protocol||window.location.protocol,host:e.host||window.location.hostname,port:e.port||(window.location.port==="3000"?8081:window.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}}onError(e){(this.props.onError??console.error)(e)}get systemConfig(){return this._systemConfig}static isWeb(){return window.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(e,r)=>{if(typeof window.io>"u"&&typeof window.iob>"u")if(typeof window.registerSocketOnLoad=="function")window.registerSocketOnLoad(()=>e());else{for(let n=1;n<=30;n++){if(window.io||window.iob)return e();await y6(100)}r(new Error("Socket library could not be loaded!"))}else e()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let e=this.props.host,r=this.props.port,n=(this.props.protocol||window.location.protocol).replace(":",""),a=window.location.pathname;if(window.location.hostname==="iobroker.net"||window.location.hostname==="iobroker.pro")a="";else{if(window.socketUrl){const s=new URL(window.socketUrl);e=s.hostname,r=s.port,n=s.protocol.replace(":","")}const o=a.lastIndexOf("/");if(o!==-1&&(a=a.substring(0,o+1)),Pu.isWeb()){const s=a.split("/");s.length>2&&(s.pop(),s.pop(),i_e.includes(s[s.length-1])&&s.pop(),a=s.join("/"),a.endsWith("/")||(a+="/"))}}const i=r?`${n}://${e}:${r}`:`${n}://${e}`;return this._socket=(window.io||window.iob).connect(i,{path:a.endsWith("/")?`${a}socket.io`:`${a}/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",o=>{this.onReadyDone=!1,o!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(s=>{const[l,c,d]=s.version.split(".");parseInt(l,10)*1e4+parseInt(c,10)*100+parseInt(d,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(f,p)=>this.onPreConnect(f,p))}).catch(s=>this.onError({message:s.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(s,l)=>{this.onPreConnect(s,l)})}),this._socket.on("reconnect",()=>{var o,s;this.onReadyDone=!1,(s=(o=this.props).onProgress)==null||s.call(o,al.READY),this.connected=!0,this.waitForRestart?window.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(l=>l(!0)))}),this._socket.on("disconnect",()=>{var o,s;this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,(s=(o=this.props).onProgress)==null||s.call(o,al.CONNECTING),this.onConnectionHandlers.forEach(l=>l(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",o=>{var s,l;(l=(s=this.props).onLog)==null||l.call(s,o),this.onLogHandlers.forEach(c=>c(o))}),this._socket.on("error",o=>{let s;o==null?s="":typeof o.toString=="function"?s=o.toString():(s=JSON.stringify(o),console.error(`Received strange error: ${s}`)),s.includes("User not authorized")?this.authenticate():s.includes("websocket error")?(console.error(`Socket Error => reload: ${o}`),window.location.reload()):console.error(`Socket Error: ${o}`)}),this._socket.on("connect_error",o=>console.error(`Connect error: ${o}`)),this._socket.on("permissionError",o=>this.onError({message:"no permission",operation:o.operation,type:o.type,id:o.id||""})),this._socket.on("objectChange",(o,s)=>{setTimeout(()=>this.objectChange(o,s),0)}),this._socket.on("stateChange",(o,s)=>{setTimeout(()=>this.stateChange(o,s),0)}),this._socket.on("im",(o,s,l)=>{setTimeout(()=>this.instanceMessage(o,s,l),0)}),this._socket.on("fileChange",(o,s,l)=>{setTimeout(()=>this.fileChange(o,s,l),0)}),this._socket.on("cmdStdout",(o,s)=>{var l;(l=this.onCmdStdoutHandler)==null||l.call(this,o,s)}),this._socket.on("cmdStderr",(o,s)=>{var l;(l=this.onCmdStderrHandler)==null||l.call(this,o,s)}),this._socket.on("cmdExit",(o,s)=>{var l;(l=this.onCmdExitHandler)==null||l.call(this,o,s)}),Promise.resolve()}onPreConnect(e,r){var n,a;this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=r,this.waitForRestart?window.location.reload():(this.firstConnect?this.loadData().catch(i=>console.error(`Cannot load data: ${i}`)):(a=(n=this.props).onProgress)==null||a.call(n,al.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(i=>i(!0))),this._waitForFirstConnectionPromise.resolve()}static isCloud(){return window.location.hostname.includes("amazonaws.com")||window.location.hostname.includes("iobroker.in")?!0:typeof window.socketUrl>"u"?!1:window.socketUrl.includes("iobroker.in")||window.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getUserPermissions",(n,a)=>{n?r(n):e(a)})}})}async loadData(){if(this.loaded)return;const e=10;for(let r=1;r<=e;r++){if(this.doLoadData().catch(n=>console.error(`Cannot load data: ${n}`)),this.loaded)return;await y6(Pu.isCloud()?5e3:1e3)}}async doLoadData(){var e,r,n,a,i,o,s,l,c;if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(d){this.onError(`Cannot read user permissions: ${d}`);return}try{this.props.admin5only&&!Pu.isWeb()&&(!window.vendorPrefix||window.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(d){this.onError(`Cannot read system config: ${d}`);return}this._systemConfig&&(this.systemLang=(e=this._systemConfig.common)==null?void 0:e.language,this.systemLang||(this.systemLang=window.navigator.userLanguage||window.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)),(n=(r=this.props).onLanguage)==null||n.call(r,this.systemLang),this.loaded=!0,(i=(a=this.props).onProgress)==null||i.call(a,al.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),(s=(o=this.props).onProgress)==null||s.call(o,al.READY),this.onReadyDone||(this.onReadyDone=!0,(c=(l=this.props).onReady)==null||c.call(l,this.objects))}}authenticate(){window.location.search.includes("&href=")?window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}${window.location.search}${window.location.hash}`:window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}?login&href=${window.location.search}${window.location.hash}`}async subscribeState(...e){let r,n,a;e.length===3?[r,n,a]=e:([r,a]=e,n=!1);let i;if(Array.isArray(r)?i=r:i=[r],typeof a!="function")throw new Error("The state change handler must be a function!");const o=[];for(let s=0;ss.includes("*"))){let s;for(let l=0;lconsole.error(`Cannot call state change handler: ${f}`))}}}else try{const s=await(Pu.isWeb()?this.getStates(i):this.getForeignStates(i));if(s)for(const[l,c]of Object.entries(s)){const d=a(l,c);d instanceof Promise&&d.catch(u=>console.error(`Cannot call state change handler: ${u}`))}}catch(s){console.error(`Cannot getState "${i.join(", ")}": ${s.message}`);return}}async subscribeStateAsync(e,r){return this.subscribeState(e,r)}unsubscribeState(e,r){var i;let n;Array.isArray(e)?n=e:n=[e];const a=[];for(let o=0;o{try{const d=c(e,r,n);d instanceof Promise&&d.catch(u=>console.error(`Cannot call object change handler: ${u}`))}catch(d){console.error(`Error by callback of objectChange: ${d}`)}});if(a){const s=(o=(i=this.props).onObjectChange)==null?void 0:o.call(i,e,r);s instanceof Promise&&s.catch(l=>console.error(`Cannot call object change handler: ${l}`))}}stateChange(e,r){for(const n of Object.values(this.statesSubscribes))if(n.reg.test(e))for(const a of n.cbs)try{const i=a(e,r??null);i instanceof Promise&&i.catch(o=>console.error(`Cannot call state change handler: ${o}`))}catch(i){console.error(`Error by callback of stateChanged: ${i}`)}}instanceMessage(e,r,n){var a;(a=this._instanceSubscriptions[r])==null||a.forEach(i=>{if(i.messageType===e){const o=i.callback(n,r,e);o instanceof Promise&&o.catch(s=>console.error(`Cannot call instance message handler: ${s}`))}})}fileChange(e,r,n){for(const a of Object.values(this.filesSubscribes))if(a.regId.test(e)&&a.regFilePattern.test(r))for(const i of a.cbs)try{i(e,r,n)}catch(o){console.error(`Error by callback of fileChange: ${o}`)}}async subscribeFiles(e,r,n){if(typeof n!="function")throw new Error("The state change handler must be a function!");let a;Array.isArray(r)?a=r:a=[r];const i=[];for(let o=0;o{const u={elapsed:!1,clearTimeout:()=>{}};let f;n!==!1&&(f=setTimeout(()=>{u.elapsed=!0,a==null||a(),e&&this._promises[e]instanceof Promise&&delete this._promises[e],d(new Error(cc.TIMEOUT))},n??this.props.cmdTimeout),u.clearTimeout=()=>{clearTimeout(f)});try{await s(c,d,u)}catch(p){e&&this._promises[e]instanceof Promise&&delete this._promises[e],d(new Error(p.toString()))}});return e&&(this._promises[e]=l),l}resetCache(e,r){r?Object.keys(this._promises).filter(n=>n.startsWith(e)).forEach(n=>{delete this._promises[n]}):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getStates",e,(a,i)=>{this.states=i??{},a?n(a):r(this.states)})}})}getState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r(this.simStates[e]||{val:null,ack:!0});return}this._socket.emit("getState",e,(a,i)=>{a?n(a):r(i)})}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getBinaryState",e,(a,i)=>{a?n(a):r(i)})}})}setBinaryState(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("setBinaryState",e,r,i=>{i?a(i):n()})}})}setState(e,r,n){return typeof n=="boolean"&&(r={val:r,ack:n}),this.request({commandTimeout:!1,executor:(a,i)=>{if(e&&e===this.ignoreState){let o;if(typeof n=="boolean"||typeof r=="object"&&r.val!==void 0?o=r:o={val:r,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[e]=o,this.statesSubscribes[e])for(const s of this.statesSubscribes[e].cbs)try{const l=s(e,o);l instanceof Promise&&l.catch(c=>console.error(`Cannot call state change handler: ${c}`))}catch(l){console.error(`Error by callback of stateChanged: ${l}`)}a();return}this._socket.emit("setState",e,r,o=>{o?i(o):a()})}})}getObjects(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{if(!e&&this.objects){n(this.objects);return}this._socket.emit(Pu.isWeb()?"getObjects":"getAllObjects",(i,o)=>{var s,l;r||(l=(s=this.props).onProgress)==null||l.call(s,al.OBJECTS_LOADED),i?a(i):(this.objects=o??{},n(this.objects))})}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjects",e,(a,i)=>{a?n(a):r(i)})}})}_subscribe(e){var r,n;if(e&&!this.subscribed){this.subscribed=!0,(r=this.props.autoSubscribes)!=null&&r.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const a=Object.keys(this.objectsSubscribes);a.length&&this._socket.emit("subscribeObjects",a),Object.keys(this.objectsSubscribes).forEach(i=>this._socket.emit("subscribeObjects",i)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(i=>this._socket.emit("subscribe",i)),Object.keys(this.filesSubscribes).forEach(i=>{const[o,s]=i.split("$%$");this._socket.emit("subscribeFiles",o,s)})}else if(!e&&this.subscribed){this.subscribed=!1,(n=this.props.autoSubscribes)!=null&&n.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const a=Object.keys(this.objectsSubscribes);a.length&&this._socket.emit("unsubscribeObjects",a),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(i=>this._socket.emit("unsubscribe",i)),Object.keys(this.filesSubscribes).forEach(i=>{const[o,s]=i.split("$%$");this._socket.emit("unsubscribeFiles",o,s)})}}requireLog(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("requireLog",e,a=>{a?n(a):r()})}})}delObject(e,r=!1){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("delObject",e,{maintenance:r},i=>{i?a(i):n()})}})}delObjects(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("delObjects",e,{maintenance:r},i=>{i?a(i):n()})}})}setObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("setObject",e,r,i=>{i?a(i):n()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",e,(a,i)=>{a?n(a):r(i)})}})}sendTo(e,r,n){return this.request({commandTimeout:!1,executor:a=>{this._socket.emit("sendTo",e,r,n,i=>{a(i)})}})}extendObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("extendObject",e,r,i=>{i?a(i):n()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){const r=this.onLogHandlers.indexOf(e);r!==-1&&this.onLogHandlers.splice(r,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){const r=this.onConnectionHandlers.indexOf(e);r!==-1&&this.onConnectionHandlers.splice(r,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,r){return this.request({cacheKey:`enums_${e||"all"}`,forceUpdate:r,commandTimeout:!1,executor:(n,a)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${e||""}`,endkey:e?`enum.${e}.香`:"enum.香"},(i,o)=>{if(i)a(i);else{const s={};if(o)for(let l=0;l{n=n||"",a=a||"香",this._socket.emit("getObjectView",e,r,{startkey:n,endkey:a},(s,l)=>{if(s)o(s);else{const c={};if(l&&l.rows)for(let d=0;d{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(n,a)=>{var i;n?r(n):e((i=a.rows)==null?void 0:i.map(o=>o.value).filter(o=>!!o))})}})}readDir(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("readDir",e,r,(i,o)=>{i?a(i):n(o)})}})}readFile(e,r,n){return this.request({commandTimeout:!1,executor:(a,i)=>{this._socket.emit(n?"readFile64":"readFile",e,r,(o,s,l)=>{o?i(o):a({file:s,mimeType:l})})}})}writeFile64(e,r,n){return this.request({commandTimeout:!1,executor:(a,i)=>{if(typeof n=="string")this._socket.emit("writeFile",e,r,n,o=>{o?i(o):a()});else{const o=btoa(new Uint8Array(n).reduce((s,l)=>s+String.fromCharCode(l),""));this._socket.emit("writeFile64",e,r,o,s=>{s?i(s):a()})}}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("deleteFile",e,r,i=>{i?a(i):n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("deleteFolder",e,r,i=>{i?a(i):n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(a,i)=>{this._socket.emit("rename",e,r,n,o=>{o?i(o):a()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(a,i)=>{this._socket.emit("renameFile",e,r,n,o=>{o?i(o):a()})}})}cmdExec(e,r,n,a){return this.request({commandTimeout:a,executor:(i,o,s)=>{e=_6(e),this._socket.emit("cmdExec",e,n,r,l=>{s.elapsed||(s.clearTimeout(),l?o(l):i())})}})}getSystemConfig(e){return this.request({cacheKey:"systemConfig",forceUpdate:e,commandTimeout:!1,executor:async r=>{let n=await this.getObject("system.config");n??(n={}),n.common??(n.common={}),n.native??(n.native={}),r(n)}})}getCompactSystemConfig(e){return this.request({cacheKey:"systemConfigCommon",forceUpdate:e,commandTimeout:!1,requireAdmin:!0,executor:(r,n)=>{this._socket.emit("getCompactSystemConfig",(a,i)=>{a?n(a):(i??(i={}),i.common??(i.common={}),i.native??(i.native={}),r(i))})}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getForeignStates",e||"*",(a,i)=>{a?n(a):r(i??{})})}})}getForeignObjects(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("getForeignObjects",e||"*",r,(i,o)=>{i?a(i):n(o)})}})}setSystemConfig(e){return this.setObject("system.config",e)}getRawSocket(){return this._socket}getHistory(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("getHistory",e,r,(i,o)=>{i?a(i):n(o)})}})}getHistoryEx(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("getHistory",e,r,(i,o,s,l)=>{i?a(i):n({values:o,sessionId:l,step:s})})}})}getIpAddresses(e,r){return e=_6(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const a=await this.getObject(e);n((a==null?void 0:a.common.address)??[])}})}getVersion(e){return this.request({cacheKey:"version",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getVersion",(a,i,o)=>{a&&!i&&typeof a=="string"&&a.match(/\d+\.\d+\.\d+/)?r({version:a,serverName:"socketio"}):a?n(a):r({version:i,serverName:o})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getAdapterName",(n,a)=>{n?r(n):e(a)})}})}fileExists(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("fileExists",e,r,(i,o)=>{i?a(i):n(!!o)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit("authEnabled",(r,n)=>{e(n)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async e=>{var n;const r=await this.getObject("system.meta.uuid");e((n=r==null?void 0:r.native)==null?void 0:n.uuid)}})}checkFeatureSupported(e,r){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:r,commandTimeout:!1,executor:(n,a)=>{this._socket.emit("checkFeatureSupported",e,(i,o)=>{i?a(i):n(o)})}})}getAdapterInstances(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`instances_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const a=e?`system.adapter.${e}.`:"system.adapter.",i=`${a}香`,o=await this.getObjectViewSystem("instance",a,i),s=Object.values(o);n(e?s.filter(l=>l.common.name===e):s)}})}getAdapters(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`adapter_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const a=await this.getObjectViewSystem("adapter",`system.adapter.${e||""}`,`system.adapter.${e||"香"}`),i=Object.values(a);n(e?i.filter(o=>o.common.name===e):i)}})}getGroups(e){return this.request({cacheKey:"groups",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(a,i)=>{a?n(a):r(a_e(i))})}})}logout(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("logout",n=>{n?r(n):e(null)})}})}subscribeOnInstance(e,r,n,a){return this.request({commandTimeout:!1,executor:(i,o)=>{this._socket.emit("clientSubscribe",e,r,n,(s,l)=>{s?o(s):l&&(l.error?o(l.error):(e.startsWith("system.adapter.")||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find(c=>c.messageType===r&&c.callback===a)||this._instanceSubscriptions[e].push({messageType:r,callback:a}),i(l)))})}})}unsubscribeFromInstance(e,r,n){var o;e.startsWith("system.adapter.")||(e=`system.adapter.${e}`);let a;const i=[];do{a=!1;const s=(o=this._instanceSubscriptions[e])==null?void 0:o.findIndex(l=>(!r||l.messageType===r)&&(!n||l.callback===n));if(s!=null&&s!==-1){a=!0;const l=this._instanceSubscriptions[e][s].messageType;this._instanceSubscriptions[e].splice(s,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e],this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find(d=>d.messageType===l)||i.push(this.request({commandTimeout:!1,executor:(d,u)=>{this._socket.emit("clientUnsubscribe",e,r,(f,p)=>f?u(f):d(p))}}))}}while(a&&(!n||!r));return i.length?Promise.all(i).then(s=>!!s.find(l=>l)):Promise.resolve(!1)}log(e,r){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",e,r),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}}const o_e=Pt(q.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),s_e=Pt(q.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"),l_e=Pt(q.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"),c_e=Pt(q.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"),Zq=Pt(q.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"),u_e=Pt(q.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"),LC=Pt(q.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"),Ch=Pt(q.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),rv=Pt(q.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"),CL=Pt(q.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"),d_e=Pt(q.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"),f_e=Pt(q.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"),_S=Pt(q.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"),Kq=Pt(q.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"),h_e=Pt(q.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"),p_e=Pt(q.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"),m_e=Pt(q.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"),v_e=Pt(q.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"),g_e=Pt(q.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"),__e=Pt(q.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"),Qq=Pt(q.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"),y_e=Pt(q.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),b_e=Pt(q.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),w_e=Pt(q.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"),S_e=Pt(q.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"),x_e=Pt(q.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"),b6=Pt(q.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),C_e=Pt(q.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"),T_e=Pt(q.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"),pP=Pt(q.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"),k_e=Pt(q.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"),E_e=Pt(q.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"),D_e=Pt(q.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"),M_e=Pt(q.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"),O_e=Pt(q.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),$_e=Pt(q.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),A_e=Pt(q.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"),P_e=Pt(q.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"),I_e=` -/** - * Copyright 2018-2024 Denis Haev (bluefox) - * - * MIT License - * - **/ - -.logo-background-light, .logo-background-colored { - background: white; -} -.logo-background-dark, .logo-background-blue { - background: black; -} -.logo-div { - position: absolute; - top: 50%; - left: 50%; - -ms-transform: translateX(-50%) translateY(-50%); - -webkit-transform: translate(-50%,-50%); - transform: translate(-50%,-50%); - overflow: hidden; - border-radius: 50%; - z-index: 2; -} -.logo-border { - /*border-color: #164477;*/ - border-top-color: #3399CC; - border-left-color: #164477; - border-bottom-color: #164477; - border-right-color: #164477; - border-radius: 50%; - border-style: solid; - box-sizing: border-box; - width: 100%; - height: 100%; - position: absolute; -} -.logo-top { - position: absolute; - width: 4.5%; - height: 16%; - top: 0; - z-index: 2; -} -.logo-i { - position: absolute; - width: 14.5%; - height: 60%; - top: 20%; - left: 42%; - background: #3399CC; -} -.logo-i-top { - position: absolute; - width: 14.5%; - height: 4%; - left: 42%; - background: #3399CC; - border-radius: 100%; -} -.logo-back { - width: 100%; - height: 100%; - z-index: 0; - overflow: hidden; -} -@keyframes logo-grow { - 0% { - width: 230px; - height: 230px; - transform: translate(-50%,-50%) scale(1); - opacity: 1 - } - 99% { - width: 230px; - height: 230px; - transform: translate(-50%,-50%) scale(10); - opacity: 0; - } - 100% { - width: 0; - height: 0; - opacity: 0; - } -} -@keyframes logo-spin { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } -@keyframes logo-color-inside-light { - 0% { - background: #FEFEFE; - } - 100% { - background: #3399CC; - } -} -@keyframes logo-color-inside-dark { - 0% { - background: #030303; - } - 100% { - background: #3399CC; - } -} -@keyframes logo-color-inside-colored { - 0% { - background: #FEFEFE; - } - 100% { - background: #3399CC; - } -} -@keyframes logo-color-inside-blue { - 0% { - background: #030303; - } - 100% { - background: #3399CC; - } -} - -@keyframes logo-color-outside-light { - 0% { - border-color: #FEFEFE; - } - 100% { - border-top-color: #3399CC; - border-left-color: #164477; - border-bottom-color: #164477; - border-right-color: #164477; - } -} -@keyframes logo-color-outside-dark { - 0% { - border-color: #040404; - } - 100% { - border-top-color: #3399CC; - border-left-color: #164477; - border-bottom-color: #164477; - border-right-color: #164477; - } -} -@keyframes logo-color-outside-colored { - 0% { - border-color: #FEFEFE; - } - 100% { - border-top-color: #3399CC; - border-left-color: #164477; - border-bottom-color: #164477; - border-right-color: #164477; - } -} -@keyframes logo-color-outside-blue { - 0% { - border-color: #040404; - } - 100% { - border-top-color: #3399CC; - border-left-color: #164477; - border-bottom-color: #164477; - border-right-color: #164477; - } -} - -.logo-animate-wait { - animation: logo-color-outside 1.5s, logo-spin 1.5s linear infinite; -} - -.logo-animate-grow-light { - background: #DDD; -} -.logo-animate-grow-dark { - background: #1d1d1d; -} -.logo-animate-grow-colored { - background: #DDD; -} -.logo-animate-grow-blue { - background: #1d1d1d; -} - -.logo-animate-grow { - display: inline-block; - text-align: center; - z-index: 1; - top: 50%; - left: 50%; - -ms-transform: translateX(-50%) translateY(-50%); - -webkit-transform: translate(-50%,-50%); - transform: translate(-50%,-50%); - width: 245px; - height: 245px; - border-radius: 50%; - position: absolute; - animation: logo-grow 1s 1 ease forwards; -} - -.logo-animate-color-inside-light { - animation: logo-color-inside-light 2.5s; -} -.logo-animate-color-inside-dark { - animation: logo-color-inside-dark 2.5s; -} -.logo-animate-color-inside-colored { - animation: logo-color-inside-colored 2.5s; -} -.logo-animate-color-inside-blue { - animation: logo-color-inside-blue 2.5s; -} - -.logo-animate-color-outside-light { - animation: logo-color-outside-light 1.5s; -} -.logo-animate-color-outside-dark { - animation: logo-color-outside-dark 1.5s; -} -.logo-animate-color-outside-colored { - animation: logo-color-outside-colored 1.5s; -} -.logo-animate-color-outside-blue { - animation: logo-color-outside-blue 1.5s; -} -`;function R_e(t){z.useEffect(()=>{if(!window.document.getElementById("loader-iobroker-component")){const n=window.document.createElement("style");n.setAttribute("id","loader-iobroker-component"),n.innerHTML=I_e,window.document.head.appendChild(n)}},[]);const e=t.size||234,r=t.themeName||t.theme||t.themeType||"light";return E.createElement("div",{className:`logo-back logo-background-${r}`,style:{backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:void 0,backgroundSize:"cover"}},window.loadingHideLogo==="true"?null:E.createElement(E.Fragment,null,E.createElement("div",{className:"logo-div",style:{width:e,height:e}},E.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"37%"}}),E.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"57%"}}),E.createElement("div",{className:`logo-border logo-background-${r} logo-animate-wait`,style:{borderWidth:e*.132}}),E.createElement("div",{className:`logo-i logo-animate-color-inside-${r}`}),E.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{top:"18%"}}),E.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{bottom:"18%"}})),E.createElement("div",{className:`logo-animate-grow logo-animate-grow-${r}`,style:{width:e+11,height:e+11}})))}function L_e(){const t=document.getSelection();if(!(t!=null&&t.rangeCount))return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const w6={"text/plain":"Text","text/html":"Url",default:"Text"},N_e="Copy to clipboard: #{key}, Enter";function F_e(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function z_e(t,e){let r,n,a,i,o=!1;e=e||{};const s=e.debug||!1;try{if(r=L_e(),n=document.createRange(),a=document.getSelection(),i=document.createElement("span"),i.textContent=t,i.ariaHidden="true",i.style.all="unset",i.style.position="fixed",i.style.top="0px",i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.userSelect="text",i.addEventListener("copy",c=>{var d,u,f,p;if(c.stopPropagation(),e!=null&&e.format)if(c.preventDefault(),typeof c.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),(d=window.clipboardData)==null||d.clearData();const v=w6[e.format]||w6.default;(u=window.clipboardData)==null||u.setData(v,t)}else(f=c.clipboardData)==null||f.clearData(),(p=c.clipboardData)==null||p.setData(e.format,t)}),document.body.appendChild(i),n.selectNodeContents(i),a==null||a.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");o=!0}catch(l){s&&console.error("unable to copy using execCommand: ",l),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),o=!0}catch(c){s&&console.error("unable to copy using clipboardData: ",c),s&&console.error("falling back to prompt");const d=F_e("message"in e?e.message||"":N_e);window.prompt(d,t)}}finally{a&&(n&&typeof a.removeRange=="function"?a.removeRange(n):a.removeAllRanges()),i&&document.body.removeChild(i),r&&r()}return o}const kr=class kr{static setLanguage(e){e&&(kr.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const a=n.prefix;delete n.prefix,Object.keys(n).forEach(i=>{const o=i,s={},l=n[o];Object.keys(l).forEach(c=>{c&&l&&(c.startsWith(a)?s[c]=l[c]:s[`${a}${c}`]=l[c])}),e[o]=s})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const a=n;kr.translations[a]=kr.translations[a]||{};const i=kr.translations[a];Object.assign(i,e[a])}):Object.keys(e).forEach(n=>{const a=e[n];Object.keys(a).forEach(i=>{const o=i,s=kr.translations[o];s?s[n]?s[n]!==a[o]&&console.warn(`Translation for word "${n}" in "${o}" was ignored: existing = "${s[n]}", new = ${a[o]}`):s[n]=a[o]:console.warn(`Used unknown language: ${o}`)})});else{kr.translations[r]||console.warn(`Used unknown language: ${r}`),kr.translations[r]=kr.translations[r]||{};const n=kr.translations[r];n&&Object.keys(e).forEach(a=>{n[a]?n[a]!==e[a]&&console.warn(`Translation for word "${a}" in "${r}" was ignored: existing = "${n[a]}", new = ${e[a]}`):n[a]=e[a]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(kr.translations=e)}static getLanguage(){return kr.lang}static t(e,...r){const n=kr.translations[kr.lang];if(n){const a=n[e];if(a)e=a;else if(kr.unknownTranslations.includes(e)||(kr.unknownTranslations.push(e),!kr._disableWarning&&console.log(`Translate: ${e}`)),kr.lang!=="en"&&kr.translations.en){const i=kr.translations.en[e];i&&(e=i)}}for(const a of r)e=e.replace("%s",a);return e}static i18nShow(e){const r={};e?typeof e=="string"?(kr.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):typeof e=="object"&&(kr.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(kr.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){kr._disableWarning=!!e}};de(kr,"translations",{}),de(kr,"unknownTranslations",[]),de(kr,"lang",window.sysLang||"en"),de(kr,"_disableWarning",!1);let te=kr;window.i18nShow=te.i18nShow;window.i18nDisableWarning=te.disableWarning;const Gs="material",B_e=["Su","Mo","Tu","We","Th","Fr","Sa"],j_e=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dE={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"},S6={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"},zr=class zr{static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const a=Math.floor(e/60).toString().padStart(2,"0");e%=60;const i=Math.floor(e).toString().padStart(2,"0");let o="";return r&&(o+=`${r} ${te.t("ra_daysShortText")} `),o+=`${n}:${a}:${i}`,o}static getObjectName(e,r,n,a,i){var l;const o=e[r];let s;if(typeof n=="string"&&!a&&(a={language:n},n=null),a=a||{},a.language||(a.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n!=null&&n.name){const c=n.name;typeof c=="object"?s=a.language&&c[a.language]||c.en:s=c}else if(i&&((l=o==null?void 0:o.common)!=null&&l.desc)){const c=o.common.desc;typeof c=="object"?s=a.language&&c[a.language]||c.en||c.de||c.ru||"":s=c,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}else if(!i&&(o!=null&&o.common)){const c=o.common.name||o.common.desc;c&&typeof c=="object"?s=a.language&&c[a.language]||c.en||c.de||c.ru||"":s=c,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}else{const c=r.lastIndexOf(".");s=r.substring(c+1).replace(/[_.]/g," "),s=zr.CapitalWords(s)}return(s==null?void 0:s.trim())||""}static getObjectNameFromObj(e,r,n,a,i){var l,c;const o=e;let s=e&&e._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r!=null&&r.name){const d=r.name;typeof d=="object"?s=n.language&&d[n.language]||d.en:s=d}else if(a&&((l=o==null?void 0:o.common)!=null&&l.desc)){const d=o.common.desc;typeof d=="object"?s=n.language&&d[n.language]||d.en:s=d,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}else if(!a&&((c=o==null?void 0:o.common)!=null&&c.name)){let d=o.common.name;!d&&o.common.desc&&(d=o.common.desc),typeof d=="object"?s=n.language&&d[n.language]||d.en:s=d,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}return i?s:s.trim()}static getSettingsOrder(e,r,n){let a;e&&Object.prototype.hasOwnProperty.call(e,"common")?a=e.common:a=e;let i;if(a!=null&&a.custom){i=a.custom[Gs];const o=n.user||"admin";if(i&&i[o]){if(r){if(i[o].subOrder&&i[o].subOrder[r])return JSON.parse(JSON.stringify(i[o].subOrder[r]))}else if(i[o].order)return JSON.parse(JSON.stringify(i[o].order))}}return null}static getSettingsCustomURLs(e,r,n){let a;e&&Object.prototype.hasOwnProperty.call(e,"common")?a=e.common:a=e;let i;if(a!=null&&a.custom){i=a.custom[Gs];const o=n.user||"admin";if(i&&i[o]){if(r){if(i[o].subURLs&&i[o].subURLs[r])return JSON.parse(JSON.stringify(i[o].subURLs[r]))}else if(i[o].URLs)return JSON.parse(JSON.stringify(i[o].URLs))}}return null}static reorder(e,r,n){const a=Array.from(e),[i]=a.splice(r,1);return a.splice(n,0,i),a}static getSettings(e,r,n){let a;const i=(e==null?void 0:e._id)||(r==null?void 0:r.id);let o;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?o=e.common:o=e,o!=null&&o.custom?(a=o.custom,a=a[Gs]&&a[Gs][r.user||"admin"]?JSON.parse(JSON.stringify(a[Gs][r.user||"admin"])):{enabled:!0}):a={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(a,"enabled")||(a.enabled=n===void 0?!0:n),r&&(!a.name&&r.name&&(a.name=r.name),!a.icon&&r.icon&&(a.icon=r.icon),!a.color&&r.color&&(a.color=r.color)),o&&(!a.color&&o.color&&(a.color=o.color),!a.icon&&o.icon&&(a.icon=o.icon),!a.name&&o.name&&(a.name=o.name)),typeof a.name=="object"&&(a.name=r.language&&a.name[r.language]||a.name.en,a.name=(a.name||"").toString().replace(/_/g," "),a.name===a.name.toUpperCase()&&(a.name=a.name[0]+a.name.substring(1).toLowerCase())),!a.name&&i){const s=i.lastIndexOf(".");a.name=i.substring(s+1).replace(/[_.]/g," "),a.name=(a.name||"").toString().replace(/_/g," "),a.name=zr.CapitalWords(a.name)}return a}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[Gs]=e.common.custom[Gs]||{},e.common.custom[Gs][n.user||"admin"]=r;const a=e.common.custom[Gs][n.user||"admin"];return a.useCommon&&(a.color!==void 0&&(e.common.color=a.color,delete a.color),a.icon!==void 0&&(e.common.icon=a.icon,delete a.icon),a.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:a.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=a.name),delete a.name)),!0}return!1}static getIcon(e,r){return e!=null&&e.icon?e.icon.length<=2?E.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?E.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):E.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){var n;if(typeof e=="object"&&(r=e,e=r==null?void 0:r._id),(n=r==null?void 0:r.common)!=null&&n.icon){let a=r.common.icon;if(typeof a=="string"&&a.length<=2||a.startsWith("data:image"))return a;const i=e.split(".");return i[0]==="system"?a=`adapter/${i[2]}${a.startsWith("/")?"":"/"}${a}`:a=`adapter/${i[0]}${a.startsWith("/")?"":"/"}${a}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?a=`../../${a}`:window.location.pathname.match(/material\/[.\d]+/)?a=`../../${a}`:window.location.pathname.match(/material\//)&&(a=`../${a}`),a}return null}static splitCamelCase(e){return e?zr.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,a,i;const o=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(o&&o.length===4)n=parseInt(o[1],10),a=parseInt(o[2],10),i=parseInt(o[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),a=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16)}return n*.299+a*.587+i*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),a=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${a}`:`${n}:${a}`}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(e){e&&(zr.dateFormat=e.toUpperCase().split(/[.-/]/),zr.dateFormat.splice(zr.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const a=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],i=a.find(o=>o>31);if(i!==void 0){a.splice(a.indexOf(i),1);const o=a.find(s=>s>12);o?(a.splice(a.indexOf(o),1),e=new Date(i,a[0]-1,o)):zr.dateFormat[0][0]==="M"&&zr.dateFormat[1][0]==="D"?(e=new Date(i,a[0]-1,a[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(i,a[1]-1,a[0]))):zr.dateFormat[0][0]==="D"&&zr.dateFormat[1][0]==="M"?(e=new Date(i,a[1]-1,a[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(i,a[0]-1,a[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=te.t(`ra_dow_${B_e[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${te.t(`ra_month_${j_e[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let a=1;do{const i=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),i&&n.push(E.createElement("span",{key:`a${a++}`},i)),r[0].startsWith(""))n.push(E.createElement("b",{key:`a${a++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(E.createElement("i",{key:`a${a++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(E.createElement("span",{key:`a${a++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,a){var o,s;if(!r){if(!a)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const l=e;return(o=l==null?void 0:l.common)!=null&&o.custom&&l.common.custom[n]?l.common.custom[n].smartName:void 0}if(!a)return e[r].common.smartName;const i=e[r];return(s=i==null?void 0:i.common)!=null&&s.custom&&i.common.custom[n]&&i.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){var i,o;if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const a=(o=(i=e==null?void 0:e.common)==null?void 0:i.custom)==null?void 0:o[r];return a?a.smartName:void 0}static enableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName={}):e.common.smartName={}}static removeSmartName(e,r,n){n?e.common&&e.common.custom&&e.common.custom[r]&&(e.common.custom[r]=null):e.common.smartName=null}static updateSmartName(e,r,n,a,i,o){const s=te.getLanguage();if(typeof e.common.smartName=="string"){const l=e.common.smartName;e.common.smartName={},e.common.smartName[s]=l}if(e.native&&e.native.byON){delete e.native.byON;let l=e.common.smartName;l&&typeof l!="object"&&(l={en:l,[s]:l}),e.common.smartName=l}if(a!==void 0&&(o?(e.common.custom=e.common.custom||{},e.common.custom[i]=e.common.custom[i]||{},e.common.custom[i].smartName=e.common.custom[i].smartName||{},a?e.common.custom[i].smartName.smartType=a:delete e.common.custom[i].smartName.smartType):(e.common.smartName=e.common.smartName||{},a?e.common.smartName.smartType=a:delete e.common.smartName.smartType)),n!==void 0&&(o?(e.common.custom=e.common.custom||{},e.common.custom[i]=e.common.custom[i]||{},e.common.custom[i].smartName=e.common.custom[i].smartName||{},e.common.custom[i].smartName.byON=n):(e.common.smartName=e.common.smartName||{},e.common.smartName.byON=n)),r!==void 0){let l;if(o?(e.common.custom=e.common.custom||{},e.common.custom[i]=e.common.custom[i]||{},e.common.custom[i].smartName=e.common.custom[i].smartName||{},l=e.common.custom[i].smartName):(e.common.smartName=e.common.smartName||{},l=e.common.smartName),l[s]=r,l&&(!l[s]||l[s]===e.common.name&&(!e.common.role||e.common.role.includes("button")))){delete l[s];let c=!0;for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d)){c=!1;break}if(c)if(o&&e.common.custom&&e.common.custom[i])e.common.custom[i].smartName.byON===void 0?delete e.common.custom[i]:(delete e.common.custom[i].en,delete e.common.custom[i].de,delete e.common.custom[i].ru,delete e.common.custom[i].nl,delete e.common.custom[i].pl,delete e.common.custom[i].it,delete e.common.custom[i].fr,delete e.common.custom[i].pt,delete e.common.custom[i].es,delete e.common.custom[i].uk,delete e.common.custom[i]["zh-cn"]);else if(e.common.smartName&&e.common.smartName.byON!==void 0){const d=e.common.smartName;delete d.en,delete d.de,delete d.ru,delete d.nl,delete d.pl,delete d.it,delete d.fr,delete d.pt,delete d.es,delete d.uk,delete d["zh-cn"]}else e.common.smartName=null}}}static disableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName=!1):e.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),z_e(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const s=(255-a).toString(16),l=(255-i).toString(16),c=(255-o).toString(16);return`#${s.padStart(2,"0")}${l.padStart(2,"0")}${c.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[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 r=e[0]/255,n=e[1]/255,a=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let i=(r*.4124+n*.3576+a*.1805)/.95047,o=r*.2126+n*.7152+a*.0722,s=(r*.0193+n*.1192+a*.9505)/1.08883;return i=i>.008856?i**.33333333:7.787*i+.137931,o=o>.008856?o**.33333333:7.787*o+.137931,s=s>.008856?s**.33333333:7.787*s+.137931,[116*o-16,500*(i-o),200*(o-s)]}static colorDistance(e,r){const n=zr.color2rgb(e),a=zr.color2rgb(r);if(!n||!a)return 0;const i=zr.rgb2lab(n),o=zr.rgb2lab(a),s=i[0]-o[0],l=i[1]-o[1],c=i[2]-o[2],d=Math.sqrt(i[1]*i[1]+i[2]*i[2]),u=Math.sqrt(o[1]*o[1]+o[2]*o[2]),f=d-u;let p=l*l+c*c-f*f;p=p<0?0:Math.sqrt(p);const v=1+.045*d,g=1+.015*d,_=s,b=f/v,w=p/g,x=_*_+b*b+w*w;return x<0?0:x}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let a=0;a{if(n=n.trim(),n){const a=n.split("="),i=decodeURIComponent(a[0]).trim();if(a.length>1){const o=decodeURIComponent(a[1]);if(o==="true")r[i]=!0;else if(o==="false")r[i]=!1;else{const s=parseFloat(o);s.toString()===o?r[i]=s:r[i]=o}}else r[i]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const a=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${a}/${i}/${e.getFullYear()}`:n=`${e.getFullYear()}-${a}-${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);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),a=Math.floor(e%3600/60),i=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`:n?`${n}:${a.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`:`0:${a.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){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/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){var i;const r=zr.MDextractHeader(e),n=r.header;let a=r.body;if(!n.title){a=a.replace(/{[^}]*}/g,""),a=a.trim();const o=a.replace(/\r/g,"").split(` -`);for(let s=0;s{if(!o.trim())return;const s=o.indexOf(":");if(s!==-1){const l=o.substring(0,s).trim();let c=o.substring(s+1).trim();c=c.replace(/^['"]|['"]$/g,""),c==="true"?r[l]=!0:c==="false"?r[l]=!1:parseFloat(c).toString()===r[l]?r[l]=parseFloat(c):r[l]=c}else r[o.trim()]=!0}),e=e.substring(n+7))}return{header:r,body:e}}static MDremoveDocsify(e){const r=e.match(/{docsify-[^}]*}/g);return r&&r.forEach(n=>e=e.replace(n,"")),e}static generateFile(e,r){const n=document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){const r=e&4294901760,n=dE[e];let a;return n?a=[n]:e&1?a=[dE[1],`0x${(e&65534).toString(16)}`]:e&2?a=[dE[2],`0x${(e&65533).toString(16)}`]:a=[`0x${e.toString(16)}`],r&&a.push(`0x${(r>>16).toString(16).toUpperCase()}`),a}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){var a;const r=(a=e==null?void 0:e.common)==null?void 0:a.states;let n;if(r)if(typeof r=="string"&&r[0]==="{")try{n=JSON.parse(r)}catch{console.error(`Cannot parse states: ${r}`),n=null}else if(typeof r=="string"){const i=r.split(";");n={};for(let o=0;on[o]=i):(e==null?void 0:e.common.type)==="string"?r.forEach(i=>n[i]=i):(e==null?void 0:e.common.type)==="boolean"&&(n.false=r[0],n.true=r[1])):typeof r=="object"&&(n=r);return n||null}static async getSvg(e){const n=await(await fetch(e)).blob();return new Promise(a=>{const i=new FileReader;i.onload=()=>{var o;return a(((o=i.result)==null?void 0:o.toString())||"")},i.readAsDataURL(n)})}static detectMimeType(e){const r=Object.keys(S6).find(n=>e.startsWith(n));return r?S6[r]:null}static isStableRepository(e){return!!(typeof e=="string"&&e.toLowerCase().startsWith("stable")||e&&typeof e!="string"&&e.find(r=>r.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,...r){const n={};for(let a=0;a{if(typeof r[a][i]=="function")n[i]=r[a][i](e);else if(typeof r[a][i]=="object"){const o=r[a][i];n[i]={},Object.keys(o).forEach(s=>{typeof o[s]=="function"?n[i][s]=o(e):(o[s]||o[s]===0)&&(n[i][s]=o[s])})}else(r[a][i]||r[a][i]===0)&&(n[i]=r[a][i])});return n}};de(zr,"namespace",Gs),de(zr,"INSTANCES","instances"),de(zr,"dateFormat",["DD","MM"]),de(zr,"FORBIDDEN_CHARS",/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu);let tr=zr;const fE={buttonIcon:{marginRight:8}};class n3t extends E.Component{constructor(r){super(r);de(this,"isIFrame");const n=r.newReact===void 0?!0:r.newReact;if(r.isIFrame!==void 0)this.isIFrame=r.isIFrame;else try{this.isIFrame=!n&&window.self!==window.top}catch{this.isIFrame=!n}}render(){const r=this.props.noTextOnButtons,n={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},a={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(a.minHeight=48),this.props.error&&(n.border="1px solid red"),E.createElement(Jq,{style:a},E.createElement(_c,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:n},E.createElement(pP,{style:r?void 0:fE.buttonIcon}),!r&&te.t("ra_Save")),E.createElement(_c,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...n,marginLeft:10}},E.createElement(pP,{style:r?void 0:fE.buttonIcon}),r?"+":te.t("ra_Save and close"),r&&E.createElement(rv,null)),E.createElement("div",{style:{flexGrow:1}}),E.createElement(_c,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:n},E.createElement(rv,{style:r?void 0:fE.buttonIcon}),!r&&te.t("ra_Close")))}}const x6={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class W_e extends z.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let r=!1;this.props.suppressQuestionMinutes&&(r=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,r?Date.now()>r&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),r=!1):r=!1),this.state={suppress:r}}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):E.createElement(ms,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(e,r)=>{r!=="backdropClick"&&r!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},E.createElement(_s,{id:"ar_confirmation_dialog_title"},this.props.title||te.t("ra_Are you sure?")),E.createElement(gs,null,E.createElement(RC,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?E.createElement("br",null):null,this.props.suppressQuestionMinutes?E.createElement(Xt,{sx:{"& .FormControlLabel-label":x6.suppress,"&.FormControlLabel-root":x6.suppressRoot},control:E.createElement(Un,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||te.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),E.createElement(vs,null,E.createElement(Vr,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:E.createElement(Ch,null)},this.props.ok||te.t("ra_Ok")),E.createElement(Vr,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:E.createElement(rv,null)},this.props.cancel||te.t("ra_Cancel"))))}}class eX extends z.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return E.createElement(ms,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},E.createElement(_s,{id:"ar_alert_dialog_title"},this.props.title||te.t("ra_Error")),E.createElement(gs,null,E.createElement(RC,{id:"ar_alert_dialog_description"},this.props.text||te.t("ra_Unknown error!"))),E.createElement(vs,null,E.createElement(Vr,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:E.createElement(Ch,null)},te.t("ra_Ok"))))}}var Za={},kp={},hE,C6;function tX(){if(C6)return hE;C6=1;var t=typeof Ff=="object"&&Ff&&Ff.Object===Object&&Ff;return hE=t,hE}var pE,T6;function Dl(){if(T6)return pE;T6=1;var t=tX(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return pE=r,pE}var mE,k6;function _0(){if(k6)return mE;k6=1;var t=Dl(),e=t.Symbol;return mE=e,mE}var vE,E6;function H_e(){if(E6)return vE;E6=1;var t=_0(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,a=t?t.toStringTag:void 0;function i(o){var s=r.call(o,a),l=o[a];try{o[a]=void 0;var c=!0}catch{}var d=n.call(o);return c&&(s?o[a]=l:delete o[a]),d}return vE=i,vE}var gE,D6;function U_e(){if(D6)return gE;D6=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return gE=r,gE}var _E,M6;function Th(){if(M6)return _E;M6=1;var t=_0(),e=H_e(),r=U_e(),n="[object Null]",a="[object Undefined]",i=t?t.toStringTag:void 0;function o(s){return s==null?s===void 0?a:n:i&&i in Object(s)?e(s):r(s)}return _E=o,_E}var yE,O6;function ws(){if(O6)return yE;O6=1;var t=Array.isArray;return yE=t,yE}var bE,$6;function Ac(){if($6)return bE;$6=1;function t(e){return e!=null&&typeof e=="object"}return bE=t,bE}var wE,A6;function Y_e(){if(A6)return wE;A6=1;var t=Th(),e=ws(),r=Ac(),n="[object String]";function a(i){return typeof i=="string"||!e(i)&&r(i)&&t(i)==n}return wE=a,wE}var SE,P6;function V_e(){if(P6)return SE;P6=1;function t(e){return function(r,n,a){for(var i=-1,o=Object(r),s=a(r),l=s.length;l--;){var c=s[e?l:++i];if(n(o[c],c,o)===!1)break}return r}}return SE=t,SE}var xE,I6;function G_e(){if(I6)return xE;I6=1;var t=V_e(),e=t();return xE=e,xE}var CE,R6;function q_e(){if(R6)return CE;R6=1;function t(e,r){for(var n=-1,a=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return ME=e,ME}var OE,W6;function Z_e(){if(W6)return OE;W6=1;var t=Th(),e=kL(),r=Ac(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",d="[object Number]",u="[object Object]",f="[object RegExp]",p="[object Set]",v="[object String]",g="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",C="[object Int8Array]",M="[object Int16Array]",k="[object Int32Array]",O="[object Uint8Array]",R="[object Uint8ClampedArray]",L="[object Uint16Array]",$="[object Uint32Array]",N={};N[w]=N[x]=N[C]=N[M]=N[k]=N[O]=N[R]=N[L]=N[$]=!0,N[n]=N[a]=N[_]=N[i]=N[b]=N[o]=N[s]=N[l]=N[c]=N[d]=N[u]=N[f]=N[p]=N[v]=N[g]=!1;function W(j){return r(j)&&e(j.length)&&!!N[t(j)]}return OE=W,OE}var $E,H6;function EL(){if(H6)return $E;H6=1;function t(e){return function(r){return e(r)}}return $E=t,$E}var N_={exports:{}};N_.exports;var U6;function DL(){return U6||(U6=1,function(t,e){var r=tX(),n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();t.exports=s}(N_,N_.exports)),N_.exports}var AE,Y6;function aX(){if(Y6)return AE;Y6=1;var t=Z_e(),e=EL(),r=DL(),n=r&&r.isTypedArray,a=n?e(n):t;return AE=a,AE}var PE,V6;function iX(){if(V6)return PE;V6=1;var t=q_e(),e=rX(),r=ws(),n=TL(),a=nX(),i=aX(),o=Object.prototype,s=o.hasOwnProperty;function l(c,d){var u=r(c),f=!u&&e(c),p=!u&&!f&&n(c),v=!u&&!f&&!p&&i(c),g=u||f||p||v,_=g?t(c.length,String):[],b=_.length;for(var w in c)(d||s.call(c,w))&&!(g&&(w=="length"||p&&(w=="offset"||w=="parent")||v&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||a(w,b)))&&_.push(w);return _}return PE=l,PE}var IE,G6;function ML(){if(G6)return IE;G6=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||t;return r===a}return IE=e,IE}var RE,q6;function oX(){if(q6)return RE;q6=1;function t(e,r){return function(n){return e(r(n))}}return RE=t,RE}var LE,X6;function K_e(){if(X6)return LE;X6=1;var t=oX(),e=t(Object.keys,Object);return LE=e,LE}var NE,J6;function Q_e(){if(J6)return NE;J6=1;var t=ML(),e=K_e(),r=Object.prototype,n=r.hasOwnProperty;function a(i){if(!t(i))return e(i);var o=[];for(var s in Object(i))n.call(i,s)&&s!="constructor"&&o.push(s);return o}return NE=a,NE}var FE,Z6;function gv(){if(Z6)return FE;Z6=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return FE=t,FE}var zE,K6;function sX(){if(K6)return zE;K6=1;var t=Th(),e=gv(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(s){if(!e(s))return!1;var l=t(s);return l==n||l==a||l==r||l==i}return zE=o,zE}var BE,Q6;function NC(){if(Q6)return BE;Q6=1;var t=sX(),e=kL();function r(n){return n!=null&&e(n.length)&&!t(n)}return BE=r,BE}var jE,e8;function y0(){if(e8)return jE;e8=1;var t=iX(),e=Q_e(),r=NC();function n(a){return r(a)?t(a):e(a)}return jE=n,jE}var WE,t8;function lX(){if(t8)return WE;t8=1;var t=G_e(),e=y0();function r(n,a){return n&&t(n,a,e)}return WE=r,WE}var HE,r8;function cX(){if(r8)return HE;r8=1;function t(e){return e}return HE=t,HE}var UE,n8;function eye(){if(n8)return UE;n8=1;var t=cX();function e(r){return typeof r=="function"?r:t}return UE=e,UE}var YE,a8;function OL(){if(a8)return YE;a8=1;var t=lX(),e=eye();function r(n,a){return n&&t(n,e(a))}return YE=r,YE}var VE,i8;function $L(){if(i8)return VE;i8=1;var t=oX(),e=t(Object.getPrototypeOf,Object);return VE=e,VE}var GE,o8;function tye(){if(o8)return GE;o8=1;var t=Th(),e=$L(),r=Ac(),n="[object Object]",a=Function.prototype,i=Object.prototype,o=a.toString,s=i.hasOwnProperty,l=o.call(Object);function c(d){if(!r(d)||t(d)!=n)return!1;var u=e(d);if(u===null)return!0;var f=s.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&o.call(f)==l}return GE=c,GE}var qE,s8;function uX(){if(s8)return qE;s8=1;function t(e,r){for(var n=-1,a=e==null?0:e.length,i=Array(a);++n-1}return eD=e,eD}var tD,p8;function oye(){if(p8)return tD;p8=1;var t=FC();function e(r,n){var a=this.__data__,i=t(a,r);return i<0?(++this.size,a.push([r,n])):a[i][1]=n,this}return tD=e,tD}var rD,m8;function zC(){if(m8)return rD;m8=1;var t=rye(),e=nye(),r=aye(),n=iye(),a=oye();function i(o){var s=-1,l=o==null?0:o.length;for(this.clear();++sp))return!1;var g=u.get(o),_=u.get(s);if(g&&_)return g==s&&_==o;var b=-1,w=!0,x=l&a?new t:void 0;for(u.set(o,s),u.set(s,o);++b0&&arguments[0]!==void 0?arguments[0]:[],f=[];return(0,s.default)(u,function(p){Array.isArray(p)?d(p).map(function(v){return f.push(v)}):(0,i.default)(p)?(0,n.default)(p,function(v,g){v===!0&&f.push(g),f.push(g+"-"+v)}):(0,e.default)(p)&&f.push(p)}),f};return kp.default=c,kp}var Ep={},MM,HB;function d0e(){if(HB)return MM;HB=1;function t(e,r){for(var n=-1,a=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],d=l.default&&(0,n.default)(l.default)||{};return c.map(function(u){var f=l[u];return f&&(0,e.default)(f,function(p,v){d[v]||(d[v]={}),d[v]=a({},d[v],f[v])}),u}),d};return Ep.default=o,Ep}var Dp={},wj;function N0e(){if(wj)return Dp;wj=1,Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.autoprefix=void 0;var t=OL(),e=n(t),r=Object.assign||function(o){for(var s=1;s1&&arguments[1]!==void 0?arguments[1]:"span";return function(u){o(f,u);function f(){var p,v,g,_;a(this,f);for(var b=arguments.length,w=Array(b),x=0;x1&&arguments[1]!==void 0?arguments[1]:"span";return function(u){o(f,u);function f(){var p,v,g,_;a(this,f);for(var b=arguments.length,w=Array(b),x=0;x1&&arguments[1]!==void 0?arguments[1]:!0;a[s]=l};return r===0&&i("first-child"),r===n-1&&i("last-child"),(r===0||r%2===0)&&i("even"),Math.abs(r%2)===1&&i("odd"),i("nth-child",r),a};return z1.default=t,z1}var Tj;function j0e(){if(Tj)return Za;Tj=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.ReactCSS=Za.loop=Za.handleActive=Za.handleHover=Za.hover=void 0;var t=u0e(),e=f(t),r=L0e(),n=f(r),a=N0e(),i=f(a),o=F0e(),s=f(o),l=z0e(),c=f(l),d=B0e(),u=f(d);function f(v){return v&&v.__esModule?v:{default:v}}Za.hover=s.default,Za.handleHover=s.default,Za.handleActive=c.default,Za.loop=u.default;var p=Za.ReactCSS=function(g){for(var _=arguments.length,b=Array(_>1?_-1:0),w=1;w<_;w++)b[w-1]=arguments[w];var x=(0,e.default)(b),C=(0,n.default)(g,x);return(0,i.default)(C)};return Za.default=p,Za}var jL=j0e();const Nt=Tl(jL);var W0e=function(e,r,n,a,i){var o=i.clientWidth,s=i.clientHeight,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,c=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,d=l-(i.getBoundingClientRect().left+window.pageXOffset),u=c-(i.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var f=void 0;if(u<0?f=0:u>s?f=1:f=Math.round(u*100/s)/100,r.a!==f)return{h:r.h,s:r.s,l:r.l,a:f,source:"rgb"}}else{var p=void 0;if(d<0?p=0:d>o?p=1:p=Math.round(d*100/o)/100,a!==p)return{h:r.h,s:r.s,l:r.l,a:p,source:"rgb"}}return null},iO={},H0e=function(e,r,n,a){if(typeof document>"u"&&!a)return null;var i=a?new a:document.createElement("canvas");i.width=n*2,i.height=n*2;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=r,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null},U0e=function(e,r,n,a){var i=e+"-"+r+"-"+n+(a?"-server":"");if(iO[i])return iO[i];var o=H0e(e,r,n,a);return iO[i]=o,o},kj=Object.assign||function(t){for(var e=1;e-1},abe=function(e){return Number(String(e).replace(/%/g,""))},ibe=1,sr=function(t){Q0e(e,t);function e(r){Z0e(this,e);var n=K0e(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(a){n.setUpdatedValue(a.target.value,a)},n.handleKeyDown=function(a){var i=abe(a.target.value);if(!isNaN(i)&&nbe(a.keyCode)){var o=n.getArrowOffset(),s=a.keyCode===kX?i+o:i-o;n.setUpdatedValue(s,a)}},n.handleDrag=function(a){if(n.props.dragLabel){var i=Math.round(n.props.value+a.movementX);i>=0&&i<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(i),a)}},n.handleMouseDown=function(a){n.props.dragLabel&&(a.preventDefault(),n.handleDrag(a),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(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+ibe++,n}return X0e(e,[{key:"componentDidUpdate",value:function(n,a){this.props.value!==this.state.value&&(n.value!==this.props.value||a.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(n){return J0e({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||ebe}},{key:"setUpdatedValue",value:function(n,a){var i=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(i,a),this.setState({value:n})}},{key:"render",value:function(){var n=this,a=Nt({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 E.createElement("div",{style:a.wrap},E.createElement("input",{id:this.inputId,style:a.input,ref:function(o){return n.input=o},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?E.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(z.PureComponent||z.Component),obe=function(e,r,n,a){var i=a.clientWidth,o=a.clientHeight,s=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,l=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,c=s-(a.getBoundingClientRect().left+window.pageXOffset),d=l-(a.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var u=void 0;if(d<0)u=359;else if(d>o)u=0;else{var f=-(d*100/o)+100;u=360*f/100}if(n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var p=void 0;if(c<0)p=0;else if(c>i)p=359;else{var v=c*100/i;p=360*v/100}if(n.h!==p)return{h:p,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},sbe=function(){function t(e,r){for(var n=0;n-1}function vbe(t,e){var r=this.__data__,n=YC(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function Pc(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=x1e}function bv(t){return t!=null&&VL(t.length)&&!HL(t)}function C1e(t){return ad(t)&&bv(t)}function T1e(){return!1}var IX=typeof Ii=="object"&&Ii&&!Ii.nodeType&&Ii,Rj=IX&&typeof Ca=="object"&&Ca&&!Ca.nodeType&&Ca,k1e=Rj&&Rj.exports===IX,Lj=k1e?Ss.Buffer:void 0,E1e=Lj?Lj.isBuffer:void 0,ax=E1e||T1e,D1e="[object Object]",M1e=Function.prototype,O1e=Object.prototype,RX=M1e.toString,$1e=O1e.hasOwnProperty,A1e=RX.call(Object);function P1e(t){if(!ad(t)||Eh(t)!=D1e)return!1;var e=AX(t);if(e===null)return!0;var r=$1e.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&RX.call(r)==A1e}var I1e="[object Arguments]",R1e="[object Array]",L1e="[object Boolean]",N1e="[object Date]",F1e="[object Error]",z1e="[object Function]",B1e="[object Map]",j1e="[object Number]",W1e="[object Object]",H1e="[object RegExp]",U1e="[object Set]",Y1e="[object String]",V1e="[object WeakMap]",G1e="[object ArrayBuffer]",q1e="[object DataView]",X1e="[object Float32Array]",J1e="[object Float64Array]",Z1e="[object Int8Array]",K1e="[object Int16Array]",Q1e="[object Int32Array]",ewe="[object Uint8Array]",twe="[object Uint8ClampedArray]",rwe="[object Uint16Array]",nwe="[object Uint32Array]",qr={};qr[X1e]=qr[J1e]=qr[Z1e]=qr[K1e]=qr[Q1e]=qr[ewe]=qr[twe]=qr[rwe]=qr[nwe]=!0;qr[I1e]=qr[R1e]=qr[G1e]=qr[L1e]=qr[q1e]=qr[N1e]=qr[F1e]=qr[z1e]=qr[B1e]=qr[j1e]=qr[W1e]=qr[H1e]=qr[U1e]=qr[Y1e]=qr[V1e]=!1;function awe(t){return ad(t)&&VL(t.length)&&!!qr[Eh(t)]}function iwe(t){return function(e){return t(e)}}var LX=typeof Ii=="object"&&Ii&&!Ii.nodeType&&Ii,ry=LX&&typeof Ca=="object"&&Ca&&!Ca.nodeType&&Ca,owe=ry&&ry.exports===LX,sO=owe&&EX.process,Nj=function(){try{var t=ry&&ry.require&&ry.require("util").types;return t||sO&&sO.binding&&sO.binding("util")}catch{}}(),Fj=Nj&&Nj.isTypedArray,GL=Fj?iwe(Fj):awe;function vP(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var swe=Object.prototype,lwe=swe.hasOwnProperty;function cwe(t,e,r){var n=t[e];(!(lwe.call(t,e)&&b0(n,r))||r===void 0&&!(e in t))&&UL(t,e,r)}function uwe(t,e,r,n){var a=!r;r||(r={});for(var i=-1,o=e.length;++i-1&&t%1==0&&t0){if(++e>=kwe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Owe=Mwe(Twe);function $we(t,e){return Owe(xwe(t,e,GC),t+"")}function Awe(t,e,r){if(!So(r))return!1;var n=typeof e;return(n=="number"?bv(r)&&qL(e,r.length):n=="string"&&e in r)?b0(r[e],t):!1}function Pwe(t){return $we(function(e,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,o&&Awe(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++n=e||O<0||u&&R>=i}function b(){var k=lO();if(_(k))return w(k);s=setTimeout(b,g(k))}function w(k){return s=void 0,f&&n?p(k):(n=a=void 0,o)}function x(){s!==void 0&&clearTimeout(s),c=0,n=l=a=s=void 0}function C(){return s===void 0?o:w(lO())}function M(){var k=lO(),O=_(k);if(n=arguments,a=this,l=k,O){if(s===void 0)return v(l);if(u)return clearTimeout(s),s=setTimeout(b,e),p(l)}return s===void 0&&(s=setTimeout(b,e)),o}return M.cancel=x,M.flush=C,M}var Vwe="Expected a function";function Gwe(t,e,r){var n=!0,a=!0;if(typeof t!="function")throw new TypeError(Vwe);return So(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),BX(t,e,{leading:n,maxWait:e,trailing:a})}var qwe=function(e,r,n){var a=n.getBoundingClientRect(),i=a.width,o=a.height,s=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,l=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,c=s-(n.getBoundingClientRect().left+window.pageXOffset),d=l-(n.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>i&&(c=i),d<0?d=0:d>o&&(d=o);var u=c/i,f=1-d/o;return{h:r.h,s:u,v:f,a:r.a,source:"hsv"}},Xwe=function(){function t(e,r){for(var n=0;n=0,i=!r&&a&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?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 lt(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_Se,arguments)},brighten:function(){return this._applyModification(ySe,arguments)},darken:function(){return this._applyModification(bSe,arguments)},desaturate:function(){return this._applyModification(mSe,arguments)},saturate:function(){return this._applyModification(vSe,arguments)},greyscale:function(){return this._applyModification(gSe,arguments)},spin:function(){return this._applyModification(wSe,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(CSe,arguments)},complement:function(){return this._applyCombination(SSe,arguments)},monochromatic:function(){return this._applyCombination(TSe,arguments)},splitcomplement:function(){return this._applyCombination(xSe,arguments)},triad:function(){return this._applyCombination(Vj,[3])},tetrad:function(){return this._applyCombination(Vj,[4])}};lt.fromRatio=function(t,e){if(ix(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=z_(t[n]));t=r}return lt(t,e)};function uSe(t){var e={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof t=="string"&&(t=OSe(t)),ix(t)=="object"&&(Gl(t.r)&&Gl(t.g)&&Gl(t.b)?(e=dSe(t.r,t.g,t.b),o=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Gl(t.h)&&Gl(t.s)&&Gl(t.v)?(n=z_(t.s),a=z_(t.v),e=hSe(t.h,n,a),o=!0,s="hsv"):Gl(t.h)&&Gl(t.s)&&Gl(t.l)&&(n=z_(t.s),i=z_(t.l),e=fSe(t.h,n,i),o=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=WX(r),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function dSe(t,e,r){return{r:rn(t,255)*255,g:rn(e,255)*255,b:rn(r,255)*255}}function Wj(t,e,r){t=rn(t,255),e=rn(e,255),r=rn(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,r),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var l=n-a;switch(o=s>.5?l/(2-n-a):l/(n+a),n){case t:i=(e-r)/l+(e1&&(u-=1),u<1/6?c+(d-c)*6*u:u<1/2?d:u<2/3?c+(d-c)*(2/3-u)*6:c}if(e===0)n=a=i=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),a=o(l,s,t),i=o(l,s,t-1/3)}return{r:n*255,g:a*255,b:i*255}}function Hj(t,e,r){t=rn(t,255),e=rn(e,255),r=rn(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,r),i,o,s=n,l=n-a;if(o=n===0?0:l/n,n==a)i=0;else{switch(n){case t:i=(e-r)/l+(e>1)+720)%360;--e;)n.h=(n.h+a)%360,i.push(lt(n));return i}function TSe(t,e){e=e||6;for(var r=lt(t).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/e;e--;)o.push(lt({h:n,s:a,v:i})),i=(i+s)%1;return o}lt.mix=function(t,e,r){r=r===0?0:r||50;var n=lt(t).toRgb(),a=lt(e).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return lt(o)};lt.readability=function(t,e){var r=lt(t),n=lt(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};lt.isReadable=function(t,e,r){var n=lt.readability(t,e),a,i;switch(i=!1,a=$Se(r),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};lt.mostReadable=function(t,e,r){var n=null,a=0,i,o,s,l;r=r||{},o=r.includeFallbackColors,s=r.level,l=r.size;for(var c=0;ca&&(a=i,n=lt(e[c]));return lt.isReadable(t,n,{level:s,size:l})||!o?n:(r.includeFallbackColors=!1,lt.mostReadable(t,["#fff","#000"],r))};var gP=lt.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"},kSe=lt.hexNames=ESe(gP);function ESe(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function WX(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function rn(t,e){DSe(t)&&(t="100%");var r=MSe(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function JC(t){return Math.min(1,Math.max(0,t))}function Di(t){return parseInt(t,16)}function DSe(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function MSe(t){return typeof t=="string"&&t.indexOf("%")!=-1}function as(t){return t.length==1?"0"+t:""+t}function z_(t){return t<=1&&(t=t*100+"%"),t}function HX(t){return Math.round(parseFloat(t)*255).toString(16)}function Gj(t){return Di(t)/255}var Zo=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),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 Gl(t){return!!Zo.CSS_UNIT.exec(t)}function OSe(t){t=t.replace(lSe,"").replace(cSe,"").toLowerCase();var e=!1;if(gP[t])t=gP[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Zo.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=Zo.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Zo.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=Zo.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Zo.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=Zo.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Zo.hex8.exec(t))?{r:Di(r[1]),g:Di(r[2]),b:Di(r[3]),a:Gj(r[4]),format:e?"name":"hex8"}:(r=Zo.hex6.exec(t))?{r:Di(r[1]),g:Di(r[2]),b:Di(r[3]),format:e?"name":"hex"}:(r=Zo.hex4.exec(t))?{r:Di(r[1]+""+r[1]),g:Di(r[2]+""+r[2]),b:Di(r[3]+""+r[3]),a:Gj(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=Zo.hex3.exec(t))?{r:Di(r[1]+""+r[1]),g:Di(r[2]+""+r[2]),b:Di(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function $Se(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var qj=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,a=0;return sSe(r,function(i){if(e[i]&&(n+=1,isNaN(e[i])||(a+=1),i==="s"||i==="l")){var o=/^\d+%$/;o.test(e[i])&&(a+=1)}}),n===a?e:!1},B_=function(e,r){var n=e.hex?lt(e.hex):lt(e),a=n.toHsl(),i=n.toHsv(),o=n.toRgb(),s=n.toHex();a.s===0&&(a.h=r||0,i.h=r||0);var l=s==="000000"&&o.a===0;return{hsl:a,hex:l?"transparent":"#"+s,rgb:o,hsv:i,oldHue:e.h||r||a.h,source:e.source}},hd=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&<(e).isValid()},JL=function(e){if(!e)return"#fff";var r=B_(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},cO=function(e,r){var n=e.replace("°","");return lt(r+" ("+n+")")._ok},Wg=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){zSe(a,n);function a(){var i,o,s,l;FSe(this,a);for(var c=arguments.length,d=Array(c),u=0;us))return!1;var c=i.get(t),d=i.get(e);if(c&&d)return c==e&&d==t;var u=-1,f=!0,p=r&ZSe?new ox:void 0;for(i.set(t,e),i.set(e,t);++u=0||Object.prototype.hasOwnProperty.call(o,c)&&(l[c]=o[c]);return l}var i=24;return j1.default=function(o){var s=o.fill,l=s===void 0?"currentColor":s,c=o.width,d=c===void 0?i:c,u=o.height,f=u===void 0?i:u,p=o.style,v=p===void 0?{}:p,g=a(o,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+i+" "+i,style:t({fill:l,width:d,height:f},v)},g),r.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"}))},j1}var dCe=uCe();const fCe=Tl(dCe);var hCe=function(){function t(e,r){for(var n=0;n1&&(a.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(a.a*100)/100,source:"rgb"},i)):(a.h||a.s||a.l)&&(typeof a.s=="string"&&a.s.includes("%")&&(a.s=a.s.replace("%","")),typeof a.l=="string"&&a.l.includes("%")&&(a.l=a.l.replace("%","")),a.s==1?a.s=.01:a.l==1&&(a.l=.01),n.props.onChange({h:a.h||n.props.hsl.h,s:Number(u9(a.s)?n.props.hsl.s:a.s),l:Number(u9(a.l)?n.props.hsl.l:a.l),source:"hsl"},i))},n.showHighlight=function(a){a.currentTarget.style.background="#eee"},n.hideHighlight=function(a){a.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return hCe(e,[{key:"render",value:function(){var n=this,a=Nt({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),i=void 0;return this.state.view==="hex"?i=E.createElement("div",{style:a.fields,className:"flexbox-fix"},E.createElement("div",{style:a.field},E.createElement(sr,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?i=E.createElement("div",{style:a.fields,className:"flexbox-fix"},E.createElement("div",{style:a.field},E.createElement(sr,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),E.createElement("div",{style:a.field},E.createElement(sr,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),E.createElement("div",{style:a.field},E.createElement(sr,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),E.createElement("div",{style:a.alpha},E.createElement(sr,{style:{input:a.input,label:a.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(i=E.createElement("div",{style:a.fields,className:"flexbox-fix"},E.createElement("div",{style:a.field},E.createElement(sr,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),E.createElement("div",{style:a.field},E.createElement(sr,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),E.createElement("div",{style:a.field},E.createElement(sr,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),E.createElement("div",{style:a.alpha},E.createElement(sr,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),E.createElement("div",{style:a.wrap,className:"flexbox-fix"},i,E.createElement("div",{style:a.toggle},E.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},E.createElement(fCe,{style:a.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.hsl.a!==1&&a.view==="hex"?{view:"rgb"}:null}}]),e}(E.Component);QX.defaultProps={view:"hex"};var f9=function(){var e=Nt({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 E.createElement("div",{style:e.picker})},gCe=function(){var e=Nt({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return E.createElement("div",{style:e.picker})},rN=function(e){var r=e.width,n=e.onChange,a=e.disableAlpha,i=e.rgb,o=e.hsl,s=e.hsv,l=e.hex,c=e.renderers,d=e.styles,u=d===void 0?{}:d,f=e.className,p=f===void 0?"":f,v=e.defaultView,g=Nt(pi({default:{picker:{width:r,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:a});return E.createElement("div",{style:g.picker,className:"chrome-picker "+p},E.createElement("div",{style:g.saturation},E.createElement(XC,{style:g.Saturation,hsl:o,hsv:s,pointer:gCe,onChange:n})),E.createElement("div",{style:g.body},E.createElement("div",{style:g.controls,className:"flexbox-fix"},E.createElement("div",{style:g.color},E.createElement("div",{style:g.swatch},E.createElement("div",{style:g.active}),E.createElement(_v,{renderers:c}))),E.createElement("div",{style:g.toggles},E.createElement("div",{style:g.hue},E.createElement(yv,{style:g.Hue,hsl:o,pointer:f9,onChange:n})),E.createElement("div",{style:g.alpha},E.createElement(WL,{style:g.Alpha,rgb:i,hsl:o,pointer:f9,renderers:c,onChange:n})))),E.createElement(QX,{rgb:i,hsl:o,hex:l,view:v,onChange:n,disableAlpha:a})))};rN.propTypes={width:ge.oneOfType([ge.string,ge.number]),disableAlpha:ge.bool,styles:ge.object,defaultView:ge.oneOf(["hex","rgb","hsl"])};rN.defaultProps={width:225,disableAlpha:!1,styles:{}};mi(rN);var _Ce=function(e){var r=e.color,n=e.onClick,a=n===void 0?function(){}:n,i=e.onSwatchHover,o=e.active,s=Nt({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:JL(r),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:o,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return E.createElement(Oh,{style:s.color,color:r,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},E.createElement("div",{style:s.dot}))},yCe=function(e){var r=e.hex,n=e.rgb,a=e.onChange,i=Nt({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},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"}}}),o=function(l,c){l.r||l.g||l.b?a({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},c):a({hex:l.hex,source:"hex"},c)};return E.createElement("div",{style:i.fields,className:"flexbox-fix"},E.createElement("div",{style:i.active}),E.createElement(sr,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:r,onChange:o}),E.createElement(sr,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:o}),E.createElement(sr,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:o}),E.createElement(sr,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:o}))},nN=function(e){var r=e.onChange,n=e.onSwatchHover,a=e.colors,i=e.hex,o=e.rgb,s=e.styles,l=s===void 0?{}:s,c=e.className,d=c===void 0?"":c,u=Nt(pi({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),f=function(v,g){v.hex?hd(v.hex)&&r({hex:v.hex,source:"hex"},g):r(v,g)};return E.createElement(w0,{style:u.Compact,styles:l},E.createElement("div",{style:u.compact,className:"compact-picker "+d},E.createElement("div",null,$h(a,function(p){return E.createElement(_Ce,{key:p,color:p,active:p.toLowerCase()===i,onClick:f,onSwatchHover:n})}),E.createElement("div",{style:u.clear})),E.createElement(yCe,{hex:i,rgb:o,onChange:f})))};nN.propTypes={colors:ge.arrayOf(ge.string),styles:ge.object};nN.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"],styles:{}};mi(nN);var bCe=function(e){var r=e.hover,n=e.color,a=e.onClick,i=e.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=Nt({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:r});return E.createElement("div",{style:s.swatch},E.createElement(Oh,{color:n,onClick:a,onHover:i,focusStyle:o}))};const wCe=jL.handleHover(bCe);var aN=function(e){var r=e.width,n=e.colors,a=e.onChange,i=e.onSwatchHover,o=e.triangle,s=e.styles,l=s===void 0?{}:s,c=e.className,d=c===void 0?"":c,u=Nt(pi({default:{card:{width:r,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)"}}},l),{"hide-triangle":o==="hide","top-left-triangle":o==="top-left","top-right-triangle":o==="top-right","bottom-left-triangle":o==="bottom-left","bottom-right-triangle":o==="bottom-right"}),f=function(v,g){return a({hex:v,source:"hex"},g)};return E.createElement("div",{style:u.card,className:"github-picker "+d},E.createElement("div",{style:u.triangleShadow}),E.createElement("div",{style:u.triangle}),$h(n,function(p){return E.createElement(wCe,{color:p,key:p,onClick:f,onSwatchHover:i})}))};aN.propTypes={width:ge.oneOfType([ge.string,ge.number]),colors:ge.arrayOf(ge.string),triangle:ge.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:ge.object};aN.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};mi(aN);var SCe=function(e){var r=e.direction,n=Nt({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:r==="vertical"});return E.createElement("div",{style:n.picker})},xCe=Object.assign||function(t){for(var e=1;e.5});return E.createElement("div",{style:n.picker})},ECe=function(){var e=Nt({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 E.createElement("div",{style:e.pointer},E.createElement("div",{style:e.left},E.createElement("div",{style:e.leftInside})),E.createElement("div",{style:e.right},E.createElement("div",{style:e.rightInside})))},h9=function(e){var r=e.onClick,n=e.label,a=e.children,i=e.active,o=Nt({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 E.createElement("div",{style:o.button,onClick:r},n||a)},DCe=function(e){var r=e.rgb,n=e.currentColor,a=Nt({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.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 E.createElement("div",null,E.createElement("div",{style:a.label},"new"),E.createElement("div",{style:a.swatches},E.createElement("div",{style:a.new}),E.createElement("div",{style:a.current})),E.createElement("div",{style:a.label},"current"))},MCe=function(){function t(e,r){for(var n=0;n100&&(d.a=100),d.a/=100,r({h:a.h,s:a.s,l:a.l,a:d.a,source:"rgb"},u))};return E.createElement("div",{style:s.fields,className:"flexbox-fix"},E.createElement("div",{style:s.double},E.createElement(sr,{style:{input:s.input,label:s.label},label:"hex",value:i.replace("#",""),onChange:l})),E.createElement("div",{style:s.single},E.createElement(sr,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),E.createElement("div",{style:s.single},E.createElement(sr,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),E.createElement("div",{style:s.single},E.createElement(sr,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),E.createElement("div",{style:s.alpha},E.createElement(sr,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:l,dragLabel:"true",dragMax:"100"})))},ICe=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(o,c)&&(l[c]=o[c]);return l}var i=24;return W1.default=function(o){var s=o.fill,l=s===void 0?"currentColor":s,c=o.width,d=c===void 0?i:c,u=o.height,f=u===void 0?i:u,p=o.style,v=p===void 0?{}:p,g=a(o,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+i+" "+i,style:t({fill:l,width:d,height:f},v)},g),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},W1}var zCe=FCe();const BCe=Tl(zCe);var jCe=function(e){var r=e.color,n=e.onClick,a=n===void 0?function(){}:n,i=e.onSwatchHover,o=e.first,s=e.last,l=e.active,c=Nt({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:JL(r),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:o,last:s,active:l,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return E.createElement(Oh,{color:r,style:c.color,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},E.createElement("div",{style:c.check},E.createElement(BCe,null)))},WCe=function(e){var r=e.onClick,n=e.onSwatchHover,a=e.group,i=e.active,o=Nt({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return E.createElement("div",{style:o.group},$h(a,function(s,l){return E.createElement(jCe,{key:s,color:s,active:s.toLowerCase()===i,first:l===0,last:l===a.length-1,onClick:r,onSwatchHover:n})}))},cN=function(e){var r=e.width,n=e.height,a=e.onChange,i=e.onSwatchHover,o=e.colors,s=e.hex,l=e.styles,c=l===void 0?{}:l,d=e.className,u=d===void 0?"":d,f=Nt(pi({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},c)),p=function(g,_){return a({hex:g,source:"hex"},_)};return E.createElement("div",{style:f.picker,className:"swatches-picker "+u},E.createElement(w0,null,E.createElement("div",{style:f.overflow},E.createElement("div",{style:f.body},$h(o,function(v){return E.createElement(WCe,{key:v.toString(),group:v,active:s,onClick:p,onSwatchHover:i})}),E.createElement("div",{style:f.clear})))))};cN.propTypes={width:ge.oneOfType([ge.string,ge.number]),height:ge.oneOfType([ge.string,ge.number]),colors:ge.arrayOf(ge.arrayOf(ge.string)),styles:ge.object};cN.defaultProps={width:320,height:240,colors:[[Kp[900],Kp[700],Kp[500],Kp[300],Kp[100]],[Qp[900],Qp[700],Qp[500],Qp[300],Qp[100]],[em[900],em[700],em[500],em[300],em[100]],[tm[900],tm[700],tm[500],tm[300],tm[100]],[rm[900],rm[700],rm[500],rm[300],rm[100]],[nm[900],nm[700],nm[500],nm[300],nm[100]],[am[900],am[700],am[500],am[300],am[100]],[im[900],im[700],im[500],im[300],im[100]],[om[900],om[700],om[500],om[300],om[100]],["#194D33",j_[700],j_[500],j_[300],j_[100]],[sm[900],sm[700],sm[500],sm[300],sm[100]],[lm[900],lm[700],lm[500],lm[300],lm[100]],[cm[900],cm[700],cm[500],cm[300],cm[100]],[um[900],um[700],um[500],um[300],um[100]],[dm[900],dm[700],dm[500],dm[300],dm[100]],[fm[900],fm[700],fm[500],fm[300],fm[100]],[hm[900],hm[700],hm[500],hm[300],hm[100]],[pm[900],pm[700],pm[500],pm[300],pm[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};mi(cN);var uN=function(e){var r=e.onChange,n=e.onSwatchHover,a=e.hex,i=e.colors,o=e.width,s=e.triangle,l=e.styles,c=l===void 0?{}:l,d=e.className,u=d===void 0?"":d,f=Nt(pi({default:{card:{width:o,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":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),p=function(g,_){hd(g)&&r({hex:g,source:"hex"},_)};return E.createElement("div",{style:f.card,className:"twitter-picker "+u},E.createElement("div",{style:f.triangleShadow}),E.createElement("div",{style:f.triangle}),E.createElement("div",{style:f.body},$h(i,function(v,g){return E.createElement(Oh,{key:g,color:v,hex:v,style:f.swatch,onClick:p,onHover:n,focusStyle:{boxShadow:"0 0 4px "+v}})}),E.createElement("div",{style:f.hash},"#"),E.createElement(sr,{label:null,style:{input:f.input},value:a.replace("#",""),onChange:p}),E.createElement("div",{style:f.clear})))};uN.propTypes={width:ge.oneOfType([ge.string,ge.number]),triangle:ge.oneOf(["hide","top-left","top-right"]),colors:ge.arrayOf(ge.string),styles:ge.object};uN.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};mi(uN);var dN=function(e){var r=Nt({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 E.createElement("div",{style:r.picker})};dN.propTypes={hsl:ge.shape({h:ge.number,s:ge.number,l:ge.number,a:ge.number})};dN.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var fN=function(e){var r=Nt({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 E.createElement("div",{style:r.picker})};fN.propTypes={hsl:ge.shape({h:ge.number,s:ge.number,l:ge.number,a:ge.number})};fN.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var HCe=function(e){var r=e.onChange,n=e.rgb,a=e.hsl,i=e.hex,o=e.hsv,s=function(p,v){if(p.hex)hd(p.hex)&&r({hex:p.hex,source:"hex"},v);else if(p.rgb){var g=p.rgb.split(",");cO(p.rgb,"rgb")&&r({r:g[0],g:g[1],b:g[2],a:1,source:"rgb"},v)}else if(p.hsv){var _=p.hsv.split(",");cO(p.hsv,"hsv")&&(_[2]=_[2].replace("%",""),_[1]=_[1].replace("%",""),_[0]=_[0].replace("°",""),_[1]==1?_[1]=.01:_[2]==1&&(_[2]=.01),r({h:Number(_[0]),s:Number(_[1]),v:Number(_[2]),source:"hsv"},v))}else if(p.hsl){var b=p.hsl.split(",");cO(p.hsl,"hsl")&&(b[2]=b[2].replace("%",""),b[1]=b[1].replace("%",""),b[0]=b[0].replace("°",""),u[1]==1?u[1]=.01:u[2]==1&&(u[2]=.01),r({h:Number(b[0]),s:Number(b[1]),v:Number(b[2]),source:"hsl"},v))}},l=Nt({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,d=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.l*100)+"%",u=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.v*100)+"%";return E.createElement("div",{style:l.wrap,className:"flexbox-fix"},E.createElement("div",{style:l.fields},E.createElement("div",{style:l.double},E.createElement(sr,{style:{input:l.input,label:l.label},label:"hex",value:i,onChange:s})),E.createElement("div",{style:l.column},E.createElement("div",{style:l.single},E.createElement(sr,{style:{input:l.input2,label:l.label2},label:"rgb",value:c,onChange:s})),E.createElement("div",{style:l.single},E.createElement(sr,{style:{input:l.input2,label:l.label2},label:"hsv",value:u,onChange:s})),E.createElement("div",{style:l.single},E.createElement(sr,{style:{input:l.input2,label:l.label2},label:"hsl",value:d,onChange:s})))))},hN=function(e){var r=e.width,n=e.onChange,a=e.rgb,i=e.hsl,o=e.hsv,s=e.hex,l=e.header,c=e.styles,d=c===void 0?{}:c,u=e.className,f=u===void 0?"":u,p=Nt(pi({default:{picker:{width:r,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("+a.r+", "+a.g+", "+a.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"}}},d));return E.createElement("div",{style:p.picker,className:"google-picker "+f},E.createElement("div",{style:p.head},l),E.createElement("div",{style:p.swatch}),E.createElement("div",{style:p.saturation},E.createElement(XC,{hsl:i,hsv:o,pointer:dN,onChange:n})),E.createElement("div",{style:p.body},E.createElement("div",{style:p.controls,className:"flexbox-fix"},E.createElement("div",{style:p.hue},E.createElement(yv,{style:p.Hue,hsl:i,radius:"4px",pointer:fN,onChange:n}))),E.createElement(HCe,{rgb:a,hsl:i,hex:s,hsv:o,onChange:n})))};hN.propTypes={width:ge.oneOfType([ge.string,ge.number]),styles:ge.object,header:ge.string};hN.defaultProps={width:652,styles:{},header:"Color picker"};mi(hN);var dO={exports:{}},m9;function Ml(){return m9||(m9=1,function(t,e){(function(n,a){t.exports=a()})(globalThis,()=>(()=>{var r={949:(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CronParser=void 0;var c=l(515),d=function(){function u(f,p,v){p===void 0&&(p=!0),v===void 0&&(v=!1),this.expression=f,this.dayOfWeekStartIndexZero=p,this.monthStartIndexZero=v}return u.prototype.parse=function(){var f,p,v=(f=this.expression)!==null&&f!==void 0?f:"";if(v.startsWith("@")){var g=this.parseSpecial(this.expression);p=this.extractParts(g)}else p=this.extractParts(this.expression);return this.normalize(p),this.validate(p),p},u.prototype.parseSpecial=function(f){var p={"@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 * * * *"},v=p[f];if(!v)throw new Error("Unknown special expression.");return v},u.prototype.extractParts=function(f){if(!this.expression)throw new Error("cron expression is empty");for(var p=f.trim().split(/[ ]+/),v=0;v7)throw new Error("Expression has ".concat(p.length," parts; too many!"));return p},u.prototype.normalize=function(f){var p=this;if(f[3]=f[3].replace("?","*"),f[5]=f[5].replace("?","*"),f[2]=f[2].replace("?","*"),f[0].indexOf("0/")==0&&(f[0]=f[0].replace("0/","*/")),f[1].indexOf("0/")==0&&(f[1]=f[1].replace("0/","*/")),f[2].indexOf("0/")==0&&(f[2]=f[2].replace("0/","*/")),f[3].indexOf("1/")==0&&(f[3]=f[3].replace("1/","*/")),f[4].indexOf("1/")==0&&(f[4]=f[4].replace("1/","*/")),f[6].indexOf("1/")==0&&(f[6]=f[6].replace("1/","*/")),f[5]=f[5].replace(/(^\d)|([^#/\s]\d)/g,function(M){var k=M.replace(/\D/,""),O=k;return p.dayOfWeekStartIndexZero?k=="7"&&(O="0"):O=(parseInt(k)-1).toString(),M.replace(k,O)}),f[5]=="L"&&(f[5]="6"),f[3]=="?"&&(f[3]="*"),f[3].indexOf("W")>-1&&(f[3].indexOf(",")>-1||f[3].indexOf("-")>-1))throw new 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 v={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var g in v)f[5]=f[5].replace(new RegExp(g,"gi"),v[g].toString());f[4]=f[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(M){var k=M.replace(/\D/,""),O=k;return p.monthStartIndexZero&&(O=(parseInt(k)+1).toString()),M.replace(k,O)});var _={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 b in _)f[4]=f[4].replace(new RegExp(b,"gi"),_[b].toString());f[0]=="0"&&(f[0]=""),!/\*|\-|\,|\//.test(f[2])&&(/\*|\//.test(f[1])||/\*|\//.test(f[0]))&&(f[2]+="-".concat(f[2]));for(var w=0;w-1&&!/^\*|\-|\,/.test(f[w])){var x=null;switch(w){case 4:x="12";break;case 5:x="6";break;case 6:x="9999";break;default:x=null;break}if(x!==null){var C=f[w].split("/");f[w]="".concat(C[0],"-").concat(x,"/").concat(C[1])}}},u.prototype.validate=function(f){this.assertNoInvalidCharacters("DOW",f[5]),this.assertNoInvalidCharacters("DOM",f[3]),this.validateRange(f)},u.prototype.validateRange=function(f){c.default.secondRange(f[0]),c.default.minuteRange(f[1]),c.default.hourRange(f[2]),c.default.dayOfMonthRange(f[3]),c.default.monthRange(f[4],this.monthStartIndexZero),c.default.dayOfWeekRange(f[5],this.dayOfWeekStartIndexZero)},u.prototype.assertNoInvalidCharacters=function(f,p){var v=p.match(/[A-KM-VX-Z]+/gi);if(v&&v.length)throw new Error("".concat(f," part contains invalid values: '").concat(v.toString(),"'"))},u}();s.CronParser=d},333:(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ExpressionDescriptor=void 0;var c=l(823),d=l(949),u=function(){function f(p,v){if(this.expression=p,this.options=v,this.expressionParts=new Array(5),!this.options.locale&&f.defaultLocale&&(this.options.locale=f.defaultLocale),!f.locales[this.options.locale]){var g=Object.keys(f.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(g,"'.")),this.options.locale=g}this.i18n=f.locales[this.options.locale],v.use24HourTimeFormat===void 0&&(v.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return f.toString=function(p,v){var g=v===void 0?{}:v,_=g.throwExceptionOnParseError,b=_===void 0?!0:_,w=g.verbose,x=w===void 0?!1:w,C=g.dayOfWeekStartIndexZero,M=C===void 0?!0:C,k=g.monthStartIndexZero,O=k===void 0?!1:k,R=g.use24HourTimeFormat,L=g.locale,$=L===void 0?null:L,N=g.tzOffset,W=N===void 0?0:N,j={throwExceptionOnParseError:b,verbose:x,dayOfWeekStartIndexZero:M,monthStartIndexZero:O,use24HourTimeFormat:R,locale:$,tzOffset:W},Y=new f(p,j);return Y.getFullDescription()},f.initialize=function(p,v){v===void 0&&(v="en"),f.specialCharacters=["/","-",",","*"],f.defaultLocale=v,p.load(f.locales)},f.prototype.getFullDescription=function(){var p="";try{var v=new d.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=v.parse();var g=this.getTimeOfDayDescription(),_=this.getDayOfMonthDescription(),b=this.getMonthDescription(),w=this.getDayOfWeekDescription(),x=this.getYearDescription();p+=g+_+w+b+x,p=this.transformVerbosity(p,!!this.options.verbose),p=p.charAt(0).toLocaleUpperCase()+p.substr(1)}catch(C){if(!this.options.throwExceptionOnParseError)p=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(C)}return p},f.prototype.getTimeOfDayDescription=function(){var p=this.expressionParts[0],v=this.expressionParts[1],g=this.expressionParts[2],_="";if(!c.StringUtilities.containsAny(v,f.specialCharacters)&&!c.StringUtilities.containsAny(g,f.specialCharacters)&&!c.StringUtilities.containsAny(p,f.specialCharacters))_+=this.i18n.atSpace()+this.formatTime(g,v,p);else if(!p&&v.indexOf("-")>-1&&!(v.indexOf(",")>-1)&&!(v.indexOf("/")>-1)&&!c.StringUtilities.containsAny(g,f.specialCharacters)){var b=v.split("-");_+=c.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(g,b[0],""),this.formatTime(g,b[1],""))}else if(!p&&g.indexOf(",")>-1&&g.indexOf("-")==-1&&g.indexOf("/")==-1&&!c.StringUtilities.containsAny(v,f.specialCharacters)){var w=g.split(",");_+=this.i18n.at();for(var x=0;x1){var b=_[_.length-1].index;g=g.substring(0,b)+":59"+g.substring(b+3)}}return g},f.prototype.getDayOfWeekDescription=function(){var p=this,v=this.i18n.daysOfTheWeek(),g=null;return this.expressionParts[5]=="*"?g="":g=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(_,b){var w=_;_.indexOf("#")>-1?w=_.substring(0,_.indexOf("#")):_.indexOf("L")>-1&&(w=w.replace("L",""));var x=parseInt(w);if(p.options.tzOffset){var C=p.expressionParts[2],M=parseInt(C)+(p.options.tzOffset?p.options.tzOffset:0);M>=24?x++:M<0&&x--,x>6?x=0:x<0&&(x=6)}var k=p.i18n.daysOfTheWeekInCase?p.i18n.daysOfTheWeekInCase(b)[x]:v[x];if(_.indexOf("#")>-1){var O=null,R=_.substring(_.indexOf("#")+1),L=_.substring(0,_.indexOf("#"));switch(R){case"1":O=p.i18n.first(L);break;case"2":O=p.i18n.second(L);break;case"3":O=p.i18n.third(L);break;case"4":O=p.i18n.fourth(L);break;case"5":O=p.i18n.fifth(L);break}k=O+" "+k}return k},function(_){return parseInt(_)==1?"":c.StringUtilities.format(p.i18n.commaEveryX0DaysOfTheWeek(_),_)},function(_){var b=_.substring(0,_.indexOf("-")),w=p.expressionParts[3]!="*";return w?p.i18n.commaAndX0ThroughX1(b):p.i18n.commaX0ThroughX1(b)},function(_){var b=null;if(_.indexOf("#")>-1){var w=_.substring(_.indexOf("#")+1),x=_.substring(0,_.indexOf("#"));b=p.i18n.commaOnThe(w,x).trim()+p.i18n.spaceX0OfTheMonth()}else if(_.indexOf("L")>-1)b=p.i18n.commaOnTheLastX0OfTheMonth(_.replace("L",""));else{var C=p.expressionParts[3]!="*";b=C?p.i18n.commaAndOnX0():p.i18n.commaOnlyOnX0(_)}return b}),g},f.prototype.getMonthDescription=function(){var p=this,v=this.i18n.monthsOfTheYear(),g=this.getSegmentDescription(this.expressionParts[4],"",function(_,b){return b&&p.i18n.monthsOfTheYearInCase?p.i18n.monthsOfTheYearInCase(b)[parseInt(_)-1]:v[parseInt(_)-1]},function(_){return parseInt(_)==1?"":c.StringUtilities.format(p.i18n.commaEveryX0Months(_),_)},function(_){return p.i18n.commaMonthX0ThroughMonthX1()||p.i18n.commaX0ThroughX1()},function(_){return p.i18n.commaOnlyInMonthX0?p.i18n.commaOnlyInMonthX0():p.i18n.commaOnlyInX0()});return g},f.prototype.getDayOfMonthDescription=function(){var p=this,v=null,g=this.expressionParts[3];switch(g){case"L":v=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":v=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var _=g.match(/(\d{1,2}W)|(W\d{1,2})/);if(_){var b=parseInt(_[0].replace("W","")),w=b==1?this.i18n.firstWeekday():c.StringUtilities.format(this.i18n.weekdayNearestDayX0(),b.toString());v=c.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),w);break}else{var x=g.match(/L-(\d{1,2})/);if(x){var C=x[1];v=c.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(C),C);break}else{if(g=="*"&&this.expressionParts[5]!="*")return"";v=this.getSegmentDescription(g,this.i18n.commaEveryDay(),function(M){return M=="L"?p.i18n.lastDay():p.i18n.dayX0?c.StringUtilities.format(p.i18n.dayX0(),M):M},function(M){return M=="1"?p.i18n.commaEveryDay():p.i18n.commaEveryX0Days(M)},function(M){return p.i18n.commaBetweenDayX0AndX1OfTheMonth(M)},function(M){return p.i18n.commaOnDayX0OfTheMonth(M)})}break}}return v},f.prototype.getYearDescription=function(){var p=this,v=this.getSegmentDescription(this.expressionParts[6],"",function(g){return/^\d+$/.test(g)?new Date(parseInt(g),1).getFullYear().toString():g},function(g){return c.StringUtilities.format(p.i18n.commaEveryX0Years(g),g)},function(g){return p.i18n.commaYearX0ThroughYearX1()||p.i18n.commaX0ThroughX1()},function(g){return p.i18n.commaOnlyInYearX0?p.i18n.commaOnlyInYearX0():p.i18n.commaOnlyInX0()});return v},f.prototype.getSegmentDescription=function(p,v,g,_,b,w){var x=null,C=p.indexOf("/")>-1,M=p.indexOf("-")>-1,k=p.indexOf(",")>-1;if(!p)x="";else if(p==="*")x=v;else if(!C&&!M&&!k)x=c.StringUtilities.format(w(p),g(p));else if(k){for(var O=p.split(","),R="",L=0;L0&&O.length>2&&(R+=",",L0&&O.length>1&&(L==O.length-1||O.length==2)&&(R+="".concat(this.i18n.spaceAnd()," ")),O[L].indexOf("/")>-1||O[L].indexOf("-")>-1){var $=O[L].indexOf("-")>-1&&O[L].indexOf("/")==-1,N=this.getSegmentDescription(O[L],v,g,_,$?this.i18n.commaX0ThroughX1:b,w);$&&(N=N.replace(", ","")),R+=N}else C?R+=this.getSegmentDescription(O[L],v,g,_,b,w):R+=g(O[L]);C?x=R:x=c.StringUtilities.format(w(p),R)}else if(C){var O=p.split("/");if(x=c.StringUtilities.format(_(O[1]),O[1]),O[0].indexOf("-")>-1){var W=this.generateRangeSegmentDescription(O[0],b,g);W.indexOf(", ")!=0&&(x+=", "),x+=W}else if(O[0].indexOf("*")==-1){var j=c.StringUtilities.format(w(O[0]),g(O[0]));j=j.replace(", ",""),x+=c.StringUtilities.format(this.i18n.commaStartingX0(),j)}}else M&&(x=this.generateRangeSegmentDescription(p,b,g));return x},f.prototype.generateRangeSegmentDescription=function(p,v,g){var _="",b=p.split("-"),w=g(b[0],1),x=g(b[1],2),C=v(p);return _+=c.StringUtilities.format(C,w,x),_},f.prototype.formatTime=function(p,v,g){var _=0,b=0;this.options.tzOffset&&(_=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),b=parseFloat((this.options.tzOffset%1).toFixed(2)),b!=0&&(b*=60));var w=parseInt(p)+_,x=parseInt(v)+b;x>=60?(x-=60,w+=1):x<0&&(x+=60,w-=1),w>=24?w=w-24:w<0&&(w=24+w);var C="",M=!1;this.options.use24HourTimeFormat||(M=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),C=M?"".concat(this.getPeriod(w)," "):" ".concat(this.getPeriod(w)),w>12&&(w-=12),w===0&&(w=12));var k="";return g&&(k=":".concat(("00"+g).substring(g.length))),"".concat(M?C:"").concat(("00"+w.toString()).substring(w.toString().length),":").concat(("00"+x.toString()).substring(x.toString().length)).concat(k).concat(M?"":C)},f.prototype.transformVerbosity=function(p,v){return v||(p=p.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),p=p.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),p=p.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),p=p.replace(/\, ?$/,"")),p},f.prototype.getPeriod=function(p){return p>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},f.locales={},f}();s.ExpressionDescriptor=u},747:(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.enLocaleLoader=void 0;var c=l(486),d=function(){function u(){}return u.prototype.load=function(f){f.en=new c.en},u}();s.enLocaleLoader=d},486:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.en=void 0;var l=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!1},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},c.prototype.everyMinute=function(){return"every minute"},c.prototype.everyHour=function(){return"every hour"},c.prototype.atSpace=function(){return"At "},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},c.prototype.at=function(){return"At"},c.prototype.spaceAnd=function(){return" and"},c.prototype.everySecond=function(){return"every second"},c.prototype.everyX0Seconds=function(){return"every %s seconds"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},c.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},c.prototype.everyX0Minutes=function(){return"every %s minutes"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},c.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},c.prototype.everyX0Hours=function(){return"every %s hours"},c.prototype.betweenX0AndX1=function(){return"between %s and %s"},c.prototype.atX0=function(){return"at %s"},c.prototype.commaEveryDay=function(){return", every day"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},c.prototype.commaX0ThroughX1=function(){return", %s through %s"},c.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},c.prototype.first=function(){return"first"},c.prototype.second=function(){return"second"},c.prototype.third=function(){return"third"},c.prototype.fourth=function(){return"fourth"},c.prototype.fifth=function(){return"fifth"},c.prototype.commaOnThe=function(){return", on the "},c.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},c.prototype.lastDay=function(){return"the last day"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},c.prototype.commaOnlyOnX0=function(){return", only on %s"},c.prototype.commaAndOnX0=function(){return", and on %s"},c.prototype.commaEveryX0Months=function(){return", every %s months"},c.prototype.commaOnlyInX0=function(){return", only in %s"},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},c.prototype.firstWeekday=function(){return"first weekday"},c.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},c.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},c.prototype.commaEveryX0Days=function(){return", every %s days"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},c.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},c.prototype.commaEveryHour=function(){return", every hour"},c.prototype.commaEveryX0Years=function(){return", every %s years"},c.prototype.commaStartingX0=function(){return", starting %s"},c.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},c}();s.en=l},515:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0});function l(d,u){if(!d)throw new Error(u)}var c=function(){function d(){}return d.secondRange=function(u){for(var f=u.split(","),p=0;p=0&&v<=59,"seconds part must be >= 0 and <= 59")}},d.minuteRange=function(u){for(var f=u.split(","),p=0;p=0&&v<=59,"minutes part must be >= 0 and <= 59")}},d.hourRange=function(u){for(var f=u.split(","),p=0;p=0&&v<=23,"hours part must be >= 0 and <= 23")}},d.dayOfMonthRange=function(u){for(var f=u.split(","),p=0;p=1&&v<=31,"DOM part must be >= 1 and <= 31")}},d.monthRange=function(u,f){for(var p=u.split(","),v=0;v=1&&g<=12,f?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},d.dayOfWeekRange=function(u,f){for(var p=u.split(","),v=0;v=0&&g<=6,f?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},d}();s.default=c},823:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.StringUtilities=void 0;var l=function(){function c(){}return c.format=function(d){for(var u=[],f=1;f-1})},c}();s.StringUtilities=l}},n={};function a(o){var s=n[o];if(s!==void 0)return s.exports;var l=n[o]={exports:{}};return r[o](l,l.exports,a),l.exports}var i={};return(()=>{var o=i;Object.defineProperty(o,"__esModule",{value:!0}),o.toString=void 0;var s=a(333),l=a(747);s.ExpressionDescriptor.initialize(new l.enLocaleLoader),o.default=s.ExpressionDescriptor;var c=s.ExpressionDescriptor.toString;o.toString=c})(),i})())}(dO)),dO.exports}var UCe=Ml();const YCe=Tl(UCe);var fO={exports:{}},v9;function VCe(){return v9||(v9=1,function(t,e){(function(n,a){t.exports=a(Ml())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function i(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,i),p.exports}i.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return i.d(f,{a:f}),f},i.d=(u,f)=>{for(var p in f)i.o(f,p)&&!i.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},i.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var o={};i.r(o);var s=i(93),l=i.n(s),c=o;Object.defineProperty(c,"__esModule",{value:!0}),c.fr=void 0;var d=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"toutes les minutes"},u.prototype.everyHour=function(){return"toutes les heures"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},u.prototype.atSpace=function(){return"À "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},u.prototype.at=function(){return"À"},u.prototype.spaceAnd=function(){return" et"},u.prototype.everySecond=function(){return"toutes les secondes"},u.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},u.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},u.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},u.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},u.prototype.everyX0Hours=function(){return"toutes les %s heures"},u.prototype.betweenX0AndX1=function(){return"de %s à %s"},u.prototype.atX0=function(){return"à %s"},u.prototype.commaEveryDay=function(){return", tous les jours"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},u.prototype.commaX0ThroughX1=function(){return", de %s à %s"},u.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},u.prototype.first=function(){return"premier"},u.prototype.second=function(){return"second"},u.prototype.third=function(){return"troisième"},u.prototype.fourth=function(){return"quatrième"},u.prototype.fifth=function(){return"cinquième"},u.prototype.commaOnThe=function(){return", le "},u.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},u.prototype.lastDay=function(){return"le dernier jour"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},u.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},u.prototype.commaAndOnX0=function(){return", et %s"},u.prototype.commaEveryX0Months=function(){return", tous les %s mois"},u.prototype.commaOnlyInX0=function(){return", uniquement en %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},u.prototype.firstWeekday=function(){return"premier jour ouvrable"},u.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},u.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},u.prototype.commaEveryX0Days=function(){return", tous les %s jours"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},u.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},u.prototype.commaEveryX0Years=function(){return", tous les %s ans"},u.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},u.prototype.commaStartingX0=function(){return", à partir de %s"},u.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},u.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},u}();return c.fr=d,l().locales.fr=new d,o})())}(fO)),fO.exports}VCe();var hO={exports:{}},g9;function GCe(){return g9||(g9=1,function(t,e){(function(n,a){t.exports=a(Ml())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function i(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,i),p.exports}i.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return i.d(f,{a:f}),f},i.d=(u,f)=>{for(var p in f)i.o(f,p)&&!i.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},i.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var o={};i.r(o);var s=i(93),l=i.n(s),c=o;Object.defineProperty(c,"__esModule",{value:!0}),c.es=void 0;var d=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.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."},u.prototype.at=function(){return"A las"},u.prototype.atSpace=function(){return"A las "},u.prototype.atX0=function(){return"a las %s"},u.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},u.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},u.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},u.prototype.commaEveryDay=function(){return", cada día"},u.prototype.commaEveryX0Days=function(){return", cada %s días"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},u.prototype.commaEveryX0Months=function(){return", cada %s meses"},u.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},u.prototype.commaOnlyInX0=function(){return", sólo en %s"},u.prototype.commaOnlyOnX0=function(){return", sólo el %s"},u.prototype.commaAndOnX0=function(){return", y el %s"},u.prototype.commaOnThe=function(){return", en el "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},u.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},u.prototype.commaX0ThroughX1=function(){return", de %s a %s"},u.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},u.prototype.everyHour=function(){return"cada hora"},u.prototype.everyMinute=function(){return"cada minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},u.prototype.everySecond=function(){return"cada segundo"},u.prototype.everyX0Hours=function(){return"cada %s horas"},u.prototype.everyX0Minutes=function(){return"cada %s minutos"},u.prototype.everyX0Seconds=function(){return"cada %s segundos"},u.prototype.fifth=function(){return"quinto"},u.prototype.first=function(){return"primero"},u.prototype.firstWeekday=function(){return"primer día de la semana"},u.prototype.fourth=function(){return"cuarto"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},u.prototype.second=function(){return"segundo"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},u.prototype.spaceAnd=function(){return" y"},u.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},u.prototype.lastDay=function(){return"el último día"},u.prototype.third=function(){return"tercer"},u.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},u.prototype.commaEveryX0Years=function(){return", cada %s años"},u.prototype.commaStartingX0=function(){return", comenzando %s"},u.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},u.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},u}();return c.es=d,l().locales.es=new d,o})())}(hO)),hO.exports}GCe();var pO={exports:{}},_9;function qCe(){return _9||(_9=1,function(t,e){(function(n,a){t.exports=a(Ml())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function i(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,i),p.exports}i.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return i.d(f,{a:f}),f},i.d=(u,f)=>{for(var p in f)i.o(f,p)&&!i.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},i.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var o={};i.r(o);var s=i(93),l=i.n(s),c=o;Object.defineProperty(c,"__esModule",{value:!0}),c.de=void 0;var d=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"jede Minute"},u.prototype.everyHour=function(){return"jede Stunde"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},u.prototype.atSpace=function(){return"Um "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},u.prototype.at=function(){return"Um"},u.prototype.spaceAnd=function(){return" und"},u.prototype.everySecond=function(){return"Jede Sekunde"},u.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},u.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},u.prototype.everyX0Minutes=function(){return"alle %s Minuten"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},u.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},u.prototype.everyX0Hours=function(){return"alle %s Stunden"},u.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},u.prototype.atX0=function(){return"um %s"},u.prototype.commaEveryDay=function(){return", jeden Tag"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},u.prototype.commaX0ThroughX1=function(){return", %s bis %s"},u.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},u.prototype.first=function(){return"ersten"},u.prototype.second=function(){return"zweiten"},u.prototype.third=function(){return"dritten"},u.prototype.fourth=function(){return"vierten"},u.prototype.fifth=function(){return"fünften"},u.prototype.commaOnThe=function(){return", am "},u.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},u.prototype.lastDay=function(){return"der letzte Tag"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},u.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},u.prototype.commaAndOnX0=function(){return", und jeden %s"},u.prototype.commaEveryX0Months=function(){return", alle %s Monate"},u.prototype.commaOnlyInX0=function(){return", nur im %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},u.prototype.firstWeekday=function(){return"ersten Werktag"},u.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},u.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},u.prototype.commaEveryX0Days=function(){return", alle %s Tage"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},u.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},u.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},u.prototype.commaStartingX0=function(){return", beginnend %s"},u.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},u.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},u}();return c.de=d,l().locales.de=new d,o})())}(pO)),pO.exports}qCe();var mO={exports:{}},y9;function XCe(){return y9||(y9=1,function(t,e){(function(n,a){t.exports=a(Ml())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function i(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,i),p.exports}i.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return i.d(f,{a:f}),f},i.d=(u,f)=>{for(var p in f)i.o(f,p)&&!i.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},i.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var o={};i.r(o);var s=i(93),l=i.n(s),c=o;Object.defineProperty(c,"__esModule",{value:!0}),c.it=void 0;var d=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},u.prototype.at=function(){return"Alle"},u.prototype.atSpace=function(){return"Alle "},u.prototype.atX0=function(){return"alle %s"},u.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},u.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},u.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},u.prototype.commaEveryDay=function(){return", ogni giorno"},u.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},u.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},u.prototype.commaEveryX0Years=function(){return", ogni %s anni"},u.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},u.prototype.commaOnlyInX0=function(){return", solo in %s"},u.prototype.commaOnlyOnX0=function(){return", solo il %s"},u.prototype.commaAndOnX0=function(){return", e il %s"},u.prototype.commaOnThe=function(){return", il "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},u.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},u.prototype.commaX0ThroughX1=function(){return", %s al %s"},u.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},u.prototype.everyHour=function(){return"ogni ora"},u.prototype.everyMinute=function(){return"ogni minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},u.prototype.everySecond=function(){return"ogni secondo"},u.prototype.everyX0Hours=function(){return"ogni %s ore"},u.prototype.everyX0Minutes=function(){return"ogni %s minuti"},u.prototype.everyX0Seconds=function(){return"ogni %s secondi"},u.prototype.fifth=function(){return"quinto"},u.prototype.first=function(){return"primo"},u.prototype.firstWeekday=function(){return"primo giorno della settimana"},u.prototype.fourth=function(){return"quarto"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},u.prototype.second=function(){return"secondo"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},u.prototype.spaceAnd=function(){return" e"},u.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},u.prototype.lastDay=function(){return"l'ultimo giorno"},u.prototype.third=function(){return"terzo"},u.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},u.prototype.commaStartingX0=function(){return", a partire %s"},u.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},u.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},u}();return c.it=d,l().locales.it=new d,o})())}(mO)),mO.exports}XCe();var vO={exports:{}},b9;function JCe(){return b9||(b9=1,function(t,e){(function(n,a){t.exports=a(Ml())})(globalThis,r=>(()=>{var n={93:p=>{p.exports=r}},a={};function i(p){var v=a[p];if(v!==void 0)return v.exports;var g=a[p]={exports:{}};return n[p](g,g.exports,i),g.exports}i.n=p=>{var v=p&&p.__esModule?()=>p.default:()=>p;return i.d(v,{a:v}),v},i.d=(p,v)=>{for(var g in v)i.o(v,g)&&!i.o(p,g)&&Object.defineProperty(p,g,{enumerable:!0,get:v[g]})},i.o=(p,v)=>Object.prototype.hasOwnProperty.call(p,v),i.r=p=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(p,"__esModule",{value:!0})};var o={};i.r(o);var s=i(93),l=i.n(s),c=o;Object.defineProperty(c,"__esModule",{value:!0}),c.ru=void 0;var d=function(p,v){var g=Number(p);return g!==void 0?v[g%100>4&&g%100<20?2:[2,0,1,1,1,2][g%10<5?Math.abs(g)%10:5]]:v[2]},u=function(p,v){var g=Number(p);return g!==void 0?v[g===0?0:g===1||g===2||g===4?1:2]:v[1]},f=function(){function p(){}return p.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},p.prototype.atX0MinutesPastTheHourGt20=function(){return null},p.prototype.commaMonthX0ThroughMonthX1=function(){return null},p.prototype.commaYearX0ThroughYearX1=function(){return null},p.prototype.use24HourTimeFormatByDefault=function(){return!0},p.prototype.everyMinute=function(){return"каждую минуту"},p.prototype.everyHour=function(){return"каждый час"},p.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},p.prototype.atSpace=function(){return"В "},p.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},p.prototype.at=function(){return"В"},p.prototype.spaceAnd=function(){return" и"},p.prototype.everySecond=function(){return"каждую секунду"},p.prototype.everyX0Seconds=function(v){return d(v,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},p.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},p.prototype.atX0SecondsPastTheMinute=function(v){return d(v,["в %s секунду","в %s секунды","в %s секунд"])},p.prototype.everyX0Minutes=function(v){return d(v,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},p.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},p.prototype.atX0MinutesPastTheHour=function(v){return d(v,["в %s минуту","в %s минуты","в %s минут"])},p.prototype.everyX0Hours=function(v){return d(v,["каждый %s час","каждые %s часа","каждые %s часов"])},p.prototype.betweenX0AndX1=function(){return"с %s по %s"},p.prototype.atX0=function(){return"в %s"},p.prototype.commaEveryDay=function(){return", каждый день"},p.prototype.commaEveryX0DaysOfTheWeek=function(v){return d(v,["",", каждые %s дня недели",", каждые %s дней недели"])},p.prototype.commaX0ThroughX1=function(v){return v&&(v[0]=="2"||v[0]=="3")?", со %s по %s":", с %s по %s"},p.prototype.commaAndX0ThroughX1=function(v){return v&&(v[0]=="2"||v[0]=="3")?" и со %s по %s":" и с %s по %s"},p.prototype.first=function(v){return u(v,["первое","первый","первую"])},p.prototype.second=function(v){return u(v,["второе","второй","вторую"])},p.prototype.third=function(v){return u(v,["третье","третий","третью"])},p.prototype.fourth=function(v){return u(v,["четвертое","четвертый","четвертую"])},p.prototype.fifth=function(v){return u(v,["пятое","пятый","пятую"])},p.prototype.commaOnThe=function(v){return v==="2"?", во ":", в "},p.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},p.prototype.lastDay=function(){return"последний день"},p.prototype.commaOnTheLastX0OfTheMonth=function(v){return u(v,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},p.prototype.commaOnlyOnX0=function(v){return v&&v[0]==="2"?", только во %s":", только в %s"},p.prototype.commaAndOnX0=function(){return", и %s"},p.prototype.commaEveryX0Months=function(v){return d(v,[""," каждые %s месяца"," каждые %s месяцев"])},p.prototype.commaOnlyInMonthX0=function(){return", только %s"},p.prototype.commaOnlyInX0=function(){return", только в %s"},p.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},p.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},p.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(v){return d(v,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},p.prototype.firstWeekday=function(){return"первый будний день"},p.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},p.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},p.prototype.commaEveryX0Days=function(v){return d(v,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},p.prototype.commaBetweenDayX0AndX1OfTheMonth=function(v){return v&&v.substring(0,v.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},p.prototype.commaOnDayX0OfTheMonth=function(v){return v&&v[0]=="2"?", во %s число месяца":", в %s число месяца"},p.prototype.commaEveryX0Years=function(v){return d(v,[", каждый %s год",", каждые %s года",", каждые %s лет"])},p.prototype.commaStartingX0=function(){return", начало %s"},p.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},p.prototype.daysOfTheWeekInCase=function(v){return v===void 0&&(v=2),v==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},p.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},p.prototype.monthsOfTheYearInCase=function(v){return v==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},p}();return c.ru=f,l().locales.ru=new f,o})())}(vO)),vO.exports}JCe();var gO={exports:{}},w9;function ZCe(){return w9||(w9=1,function(t,e){(function(n,a){t.exports=a(Ml())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function i(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,i),p.exports}i.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return i.d(f,{a:f}),f},i.d=(u,f)=>{for(var p in f)i.o(f,p)&&!i.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},i.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var o={};i.r(o);var s=i(93),l=i.n(s),c=o;Object.defineProperty(c,"__esModule",{value:!0}),c.zh_CN=void 0;var d=function(){function u(){}return u.prototype.setPeriodBeforeTime=function(){return!0},u.prototype.pm=function(){return"下午"},u.prototype.am=function(){return"上午"},u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},u.prototype.use24HourTimeFormatByDefault=function(){return!1},u.prototype.everyMinute=function(){return"每分钟"},u.prototype.everyHour=function(){return"每小时"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},u.prototype.atSpace=function(){return"在"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},u.prototype.at=function(){return"在"},u.prototype.spaceAnd=function(){return" 和"},u.prototype.everySecond=function(){return"每秒"},u.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在每分钟的第 %s 到 %s 秒"},u.prototype.atX0SecondsPastTheMinute=function(){return"在每分钟的第 %s 秒"},u.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"在每小时的第 %s 到 %s 分钟"},u.prototype.atX0MinutesPastTheHour=function(){return"在每小时的第 %s 分钟"},u.prototype.everyX0Hours=function(){return"每隔 %s 小时"},u.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},u.prototype.atX0=function(){return"在%s"},u.prototype.commaEveryDay=function(){return", 每天"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},u.prototype.commaX0ThroughX1=function(){return", %s至%s"},u.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},u.prototype.first=function(){return"第一个"},u.prototype.second=function(){return"第二个"},u.prototype.third=function(){return"第三个"},u.prototype.fourth=function(){return"第四个"},u.prototype.fifth=function(){return"第五个"},u.prototype.commaOnThe=function(){return", 限每月的"},u.prototype.spaceX0OfTheMonth=function(){return"%s"},u.prototype.lastDay=function(){return"本月最后一天"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},u.prototype.commaOnlyOnX0=function(){return", 仅%s"},u.prototype.commaAndOnX0=function(){return", 或者为%s"},u.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},u.prototype.commaOnlyInX0=function(){return", 仅限%s"},u.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},u.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},u.prototype.firstWeekday=function(){return"第一个工作日"},u.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},u.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},u.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},u.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},u.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},u.prototype.commaStartingX0=function(){return", %s开始"},u.prototype.dayX0=function(){return" %s 号"},u.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},u.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u}();return c.zh_CN=d,l().locales.zh_CN=new d,o})())}(gO)),gO.exports}ZCe();var _O={exports:{}},S9;function KCe(){return S9||(S9=1,function(t,e){(function(n,a){t.exports=a(Ml())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function i(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,i),p.exports}i.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return i.d(f,{a:f}),f},i.d=(u,f)=>{for(var p in f)i.o(f,p)&&!i.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},i.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var o={};i.r(o);var s=i(93),l=i.n(s),c=o;Object.defineProperty(c,"__esModule",{value:!0}),c.uk=void 0;var d=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"щохвилини"},u.prototype.everyHour=function(){return"щогодини"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},u.prototype.atSpace=function(){return"О "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},u.prototype.at=function(){return"О"},u.prototype.spaceAnd=function(){return" та"},u.prototype.everySecond=function(){return"Щосекунди"},u.prototype.everyX0Seconds=function(){return"кожні %s секунд"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},u.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},u.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},u.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},u.prototype.everyX0Hours=function(){return"кожні %s годин"},u.prototype.betweenX0AndX1=function(){return"між %s та %s"},u.prototype.atX0=function(){return"о %s"},u.prototype.commaEveryDay=function(){return", щоденно"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},u.prototype.commaX0ThroughX1=function(){return", %s по %s"},u.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},u.prototype.first=function(){return"перший"},u.prototype.second=function(){return"другий"},u.prototype.third=function(){return"третій"},u.prototype.fourth=function(){return"четвертий"},u.prototype.fifth=function(){return"п'ятий"},u.prototype.commaOnThe=function(){return", в "},u.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},u.prototype.lastDay=function(){return"останній день"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},u.prototype.commaOnlyOnX0=function(){return", тільки в %s"},u.prototype.commaAndOnX0=function(){return", і в %s"},u.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},u.prototype.commaOnlyInX0=function(){return", тільки в %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},u.prototype.firstWeekday=function(){return"перший будень"},u.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},u.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},u.prototype.commaEveryX0Days=function(){return", кожен %s день"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},u.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},u.prototype.commaEveryX0Years=function(){return", кожні %s роки"},u.prototype.commaStartingX0=function(){return", початок %s"},u.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},u.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},u}();return c.uk=d,l().locales.uk=new d,o})())}(_O)),_O.exports}KCe();var yO={exports:{}},x9;function QCe(){return x9||(x9=1,function(t,e){(function(n,a){t.exports=a(Ml())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function i(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,i),p.exports}i.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return i.d(f,{a:f}),f},i.d=(u,f)=>{for(var p in f)i.o(f,p)&&!i.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},i.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var o={};i.r(o);var s=i(93),l=i.n(s),c=o;Object.defineProperty(c,"__esModule",{value:!0}),c.pt_BR=void 0;var d=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},u.prototype.at=function(){return"às"},u.prototype.atSpace=function(){return"às "},u.prototype.atX0=function(){return"Às %s"},u.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},u.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},u.prototype.betweenX0AndX1=function(){return"entre %s e %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},u.prototype.commaEveryDay=function(){return", a cada dia"},u.prototype.commaEveryX0Days=function(){return", a cada %s dias"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},u.prototype.commaEveryX0Months=function(){return", a cada %s meses"},u.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},u.prototype.commaOnlyInX0=function(f){return f&&f.length>1&&f[1]==="-"?"somente %s":", somente em %s"},u.prototype.commaOnlyOnX0=function(f){return f&&f.length>1&&f[1]==="-"?", somente %s":", somente de %s"},u.prototype.commaAndOnX0=function(){return", e de %s"},u.prototype.commaOnThe=function(f,p){return p==="6"||p==="0"?", no":", na "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},u.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},u.prototype.commaX0ThroughX1=function(){return", de %s a %s"},u.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},u.prototype.everyHour=function(){return"a cada hora"},u.prototype.everyMinute=function(){return"a cada minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},u.prototype.everySecond=function(){return"a cada segundo"},u.prototype.everyX0Hours=function(){return"a cada %s horas"},u.prototype.everyX0Minutes=function(){return"a cada %s minutos"},u.prototype.everyX0Seconds=function(){return"a cada %s segundos"},u.prototype.fifth=function(f){return f==="6"||f==="0"?"quinto":"quinta"},u.prototype.first=function(f){return f==="6"||f==="0"?"primeiro":"primeira"},u.prototype.firstWeekday=function(){return"primeiro dia da semana"},u.prototype.fourth=function(f){return f==="6"||f==="0"?"quarto":"quarta"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},u.prototype.second=function(f){return f==="6"||f==="0"?"segundo":"segunda"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},u.prototype.spaceAnd=function(){return" e"},u.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},u.prototype.lastDay=function(){return"o último dia"},u.prototype.third=function(f){return f==="6"||f==="0"?"terceiro":"terceira"},u.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},u.prototype.commaEveryX0Years=function(){return", a cada %s anos"},u.prototype.commaStartingX0=function(){return", iniciando %s"},u.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},u.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},u}();return c.pt_BR=d,l().locales.pt_BR=new d,o})())}(yO)),yO.exports}QCe();var bO={exports:{}},C9;function eTe(){return C9||(C9=1,function(t,e){(function(n,a){t.exports=a(Ml())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function i(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,i),p.exports}i.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return i.d(f,{a:f}),f},i.d=(u,f)=>{for(var p in f)i.o(f,p)&&!i.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},i.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),i.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var o={};i.r(o);var s=i(93),l=i.n(s),c=o;Object.defineProperty(c,"__esModule",{value:!0}),c.pl=void 0;var d=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},u.prototype.at=function(){return"O"},u.prototype.atSpace=function(){return"O "},u.prototype.atX0=function(){return"o %s"},u.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},u.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},u.prototype.betweenX0AndX1=function(){return"od %s do %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},u.prototype.commaEveryDay=function(){return", co dzień"},u.prototype.commaEveryX0Days=function(){return", co %s dni"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},u.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},u.prototype.commaEveryX0Years=function(){return", co %s lat"},u.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},u.prototype.commaOnlyInX0=function(){return", tylko %s"},u.prototype.commaOnlyOnX0=function(){return", tylko %s"},u.prototype.commaAndOnX0=function(){return", i %s"},u.prototype.commaOnThe=function(){return", "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},u.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},u.prototype.commaX0ThroughX1=function(){return", od %s do %s"},u.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},u.prototype.everyHour=function(){return"co godzinę"},u.prototype.everyMinute=function(){return"co minutę"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},u.prototype.everySecond=function(){return"co sekundę"},u.prototype.everyX0Hours=function(){return"co %s godzin"},u.prototype.everyX0Minutes=function(){return"co %s minut"},u.prototype.everyX0Seconds=function(){return"co %s sekund"},u.prototype.fifth=function(){return"piąty"},u.prototype.first=function(){return"pierwszy"},u.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},u.prototype.fourth=function(){return"czwarty"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},u.prototype.second=function(){return"drugi"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},u.prototype.spaceAnd=function(){return" i"},u.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},u.prototype.lastDay=function(){return"ostatni dzień"},u.prototype.third=function(){return"trzeci"},u.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},u.prototype.commaStartingX0=function(){return", startowy %s"},u.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},u.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},u}();return c.pl=d,l().locales.pl=new d,o})())}(bO)),bO.exports}eTe();function tJ(t,e){return YCe.toString(t,{locale:e})}const Ka={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},slider:{marginTop:20,display:"block",width:"100%"},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},numberButtonBreak:{display:"block"},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},tTe=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],rTe=["January","February","March","April","May","June","July","August","September","October","November","December"];function T9(t,e){const r=[];if(t==="*"){if(e===24||e===60||e===7)for(let a=0;a1){const o=parseInt(i[1],10);for(let s=parseInt(i[0],10);s<=o;s++)r.push(s)}else r.push(parseInt(n[a],10))}r.sort();for(let a=r.length-1;a>=0;a--)r[a]===r[a+1]&&r.splice(a+1,1);return r}function k9(t,e){if(typeof t!="object"&&(t=[t]),t.length===e)return"*";const r=[];if(!t.length)return"-";t=t.map(i=>parseInt(i,10)),t.sort((i,o)=>i-o);let n=t[0],a=t[0];for(let i=1;ithis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(e){e=e.replace(/['"]/g,"").trim();const r=e.split(" ").map(a=>a.trim());let n;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",dates:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:!1,minutes:r[0]||"*",hours:r[1]||"*",dates:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n}static state2cron(e){let r=`${e.minutes} ${e.hours} ${e.dates} ${e.months} ${e.dow}`;return e.seconds!==!1&&(r=`${e.seconds} ${r}`),r}recalcCron(){const e=Ru.state2cron(this.state);e!==this.state.cron&&this.setState({cron:e},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(e,r,n){if(e===!0)this.setCronAttr(r,"*");else if(e===!1)n===60||n===24?this.setCronAttr(r,"0"):this.setCronAttr(r,"1");else{const a=T9(this.state[r],n),i=a.indexOf(e);i!==-1?a.splice(i,1):(a.push(e),a.sort()),this.setCronAttr(r,k9(a,n))}}getDigitsSelector(e,r){let n=[];if(r===7)n=[1,2,3,4,5,6,0];else if(r===60||r===24)for(let i=0;ithis.onToggle(!1,e,r)},te.t("ra_Deselect all")),E.createElement(Vr,{key:"addall",variant:"contained",style:Ka.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,e,r)},te.t("ra_Select all")),E.createElement("div",{key:"all"},n.map(i=>[r===7&&i===4||r===12&&i===7||r===31&&!((i-1)%10)||r===60&&i&&!(i%10)||r===24&&i&&!(i%6)?E.createElement("div",{key:`allInner${i}`,style:{width:"100%"}}):null,E.createElement(Vr,{key:`_${i}`,variant:a.indexOf(i)!==-1?"contained":"outlined",style:Ka.numberButton,color:a.indexOf(i)!==-1?"secondary":"primary",onClick:()=>this.onToggle(i,e,r)},r===7?te.t(tTe[i]):r===12?rTe[i-1]:i)]))]}getPeriodsTab(e,r){const n=this.state[e];let a=n==="*",i=n==null?!1:n.toString().includes("/"),o;if(this.state.modes[e]===null){o=a?"every":i?"everyN":"specific";const l=JSON.parse(JSON.stringify(this.state.modes));return l[e]=o,setTimeout(()=>this.setState({modes:l},()=>this.recalcCron()),100),null}a=this.state.modes[e]==="every",i=this.state.modes[e]==="everyN",o=this.state.modes[e];let s=1;return i&&n&&(s=parseInt(n.replace("*/",""),10)||1),E.createElement("div",null,E.createElement(ns,{variant:"standard",style:{...Ka.periodSelect,verticalAlign:"bottom"},value:o,onChange:l=>{const c=JSON.parse(JSON.stringify(this.state.modes));if(c[e]=l.target.value,l.target.value==="every")this.setCronAttr(e,"*",c);else if(l.target.value==="everyN"){const d=parseInt((this.state[e]||"").toString().replace("*/",""),10)||1;this.setCronAttr(e,`*/${d}`,c)}else if(l.target.value==="specific"){let d=parseInt((this.state[e]||"").toString().split(",")[0],10)||0;!d&&(e==="months"||e==="dates")&&(d=1),this.setCronAttr(e,k9(d,r),c)}}},E.createElement(tn,{key:"every",value:"every"},te.t(`sc_every_${e}`)),E.createElement(tn,{key:"everyN",value:"everyN"},te.t(`sc_everyN_${e}`)),E.createElement(tn,{key:"specific",value:"specific"},te.t(`sc_specific_${e}`))),i&&E.createElement(Sa,{variant:"standard",key:"interval",label:te.t(`sc_${e}`),value:s,slotProps:{htmlInput:{min:1,max:r},inputLabel:{shrink:!0}},onChange:l=>{this.setState({[e]:`*/${l.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!a&&!i&&this.getDigitsSelector(e,r))}static convertCronToText(e,r){return e.split(" ").includes("-")?te.t("ra_Invalid CRON"):tJ(e,r)}setCronAttr(e,r,n){n?e==="seconds"?this.setState({seconds:r,modes:n},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r,modes:n},()=>this.recalcCron()):e==="hours"?this.setState({hours:r,modes:n},()=>this.recalcCron()):e==="dates"?this.setState({dates:r,modes:n},()=>this.recalcCron()):e==="months"?this.setState({months:r,modes:n},()=>this.recalcCron()):e==="dow"?this.setState({dow:r,modes:n},()=>this.recalcCron()):this.setState({modes:n},()=>this.recalcCron()):e==="seconds"?this.setState({seconds:r},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r},()=>this.recalcCron()):e==="hours"?this.setState({hours:r},()=>this.recalcCron()):e==="dates"?this.setState({dates:r},()=>this.recalcCron()):e==="months"?this.setState({months:r},()=>this.recalcCron()):e==="dow"&&this.setState({dow:r},()=>this.recalcCron())}render(){const e=this.state.seconds!==!1?this.state.tab:this.state.tab+1,r=this.state.minutes==="*"||this.state.minutes==="*/1",n=this.state.seconds==="*"||this.state.seconds==="*/1";return E.createElement("div",{style:Ka.mainDiv},E.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)"}},E.createElement(Sa,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),E.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)",height:60}},Ru.convertCronToText(this.state.cron,this.props.language||"en"),E.createElement("span",{style:Ka.warning},n?te.t("ra_warning_every_second"):r?te.t("ra_warning_every_minute"):"")),E.createElement(Xt,{control:E.createElement(Un,{checked:!!this.state.seconds,onChange:a=>this.setState({seconds:a.target.checked?"*":!1},()=>this.recalcCron())}),label:te.t("ra_use seconds")}),E.createElement(wfe,{position:"static",sx:{"&.MuiAppBar-root":Ka.appBar},color:"secondary"},E.createElement(Xge,{value:this.state.tab,style:Ka.appBar,color:"secondary",onChange:(a,i)=>this.setState({tab:i})},this.state.seconds!==!1&&E.createElement(Tp,{id:"sc_seconds",label:te.t("sc_seconds")}),E.createElement(Tp,{id:"minutes",label:te.t("sc_minutes")}),E.createElement(Tp,{id:"hours",label:te.t("sc_hours")}),E.createElement(Tp,{id:"dates",label:te.t("sc_dates")}),E.createElement(Tp,{id:"months",label:te.t("sc_months")}),E.createElement(Tp,{id:"dow",label:te.t("sc_dows")}))),e===0&&E.createElement("div",{style:Ka.tabContent},this.getPeriodsTab("seconds",60)),e===1&&E.createElement("div",{style:Ka.tabContent},this.getPeriodsTab("minutes",60)),e===2&&E.createElement("div",{style:Ka.tabContent},this.getPeriodsTab("hours",24)),e===3&&E.createElement("div",{style:Ka.tabContent},this.getPeriodsTab("dates",31)),e===4&&E.createElement("div",{style:Ka.tabContent},this.getPeriodsTab("months",12)),e===5&&E.createElement("div",{style:Ka.tabContent},this.getPeriodsTab("dow",7)))}}function Ah(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(d){try{c(n.next(d))}catch(u){o(u)}}function l(d){try{c(n.throw(d))}catch(u){o(u)}}function c(d){d.done?i(d.value):a(d.value).then(s,l)}c((n=n.apply(t,e||[])).next())})}const nTe=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 nv(t,e,r){const n=aTe(t),{webkitRelativePath:a}=t,i=typeof e=="string"?e:typeof a=="string"&&a.length>0?a:`./${t.name}`;return typeof n.path!="string"&&E9(n,"path",i),E9(n,"relativePath",i),n}function aTe(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const n=e.split(".").pop().toLowerCase(),a=nTe.get(n);a&&Object.defineProperty(t,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return t}function E9(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}const iTe=[".DS_Store","Thumbs.db"];function oTe(t){return Ah(this,void 0,void 0,function*(){return sx(t)&&sTe(t.dataTransfer)?dTe(t.dataTransfer,t.type):lTe(t)?cTe(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?uTe(t):[]})}function sTe(t){return sx(t)}function lTe(t){return sx(t)&&sx(t.target)}function sx(t){return typeof t=="object"&&t!==null}function cTe(t){return SP(t.target.files).map(e=>nv(e))}function uTe(t){return Ah(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>nv(r))})}function dTe(t,e){return Ah(this,void 0,void 0,function*(){if(t.items){const r=SP(t.items).filter(a=>a.kind==="file");if(e!=="drop")return r;const n=yield Promise.all(r.map(fTe));return D9(rJ(n))}return D9(SP(t.files).map(r=>nv(r)))})}function D9(t){return t.filter(e=>iTe.indexOf(e.name)===-1)}function SP(t){if(t===null)return[];const e=[];for(let r=0;r[...e,...Array.isArray(r)?rJ(r):[r]],[])}function M9(t,e){return Ah(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const i=yield t.getAsFileSystemHandle();if(i===null)throw new Error(`${t} is not a File`);if(i!==void 0){const o=yield i.getFile();return o.handle=i,nv(o)}}const n=t.getAsFile();if(!n)throw new Error(`${t} is not a File`);return nv(n,(r=e==null?void 0:e.fullPath)!==null&&r!==void 0?r:void 0)})}function hTe(t){return Ah(this,void 0,void 0,function*(){return t.isDirectory?nJ(t):pTe(t)})}function nJ(t){const e=t.createReader();return new Promise((r,n)=>{const a=[];function i(){e.readEntries(o=>Ah(this,void 0,void 0,function*(){if(o.length){const s=Promise.all(o.map(hTe));a.push(s),i()}else try{const s=yield Promise.all(a);r(s)}catch(s){n(s)}}),o=>{n(o)})}i()})}function pTe(t){return Ah(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(n=>{const a=nv(n,t.fullPath);e(a)},n=>{r(n)})})})}var H1={},O9;function mTe(){return O9||(O9=1,H1.__esModule=!0,H1.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",a=(t.type||"").toLowerCase(),i=a.replace(/\/.*$/,"");return r.some(function(o){var s=o.trim().toLowerCase();return s.charAt(0)==="."?n.toLowerCase().endsWith(s):s.endsWith("/*")?i===s.replace(/\/.*$/,""):a===s})}return!0}),H1}var vTe=mTe();const wO=Tl(vTe);function $9(t){return yTe(t)||_Te(t)||iJ(t)||gTe()}function gTe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _Te(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function yTe(t){if(Array.isArray(t))return xP(t)}function A9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function P9(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:"",r=e.split(","),n=r.length>1?"one of ".concat(r.join(", ")):r[0];return{code:CTe,message:"File type must be ".concat(n)}},I9=function(e){return{code:TTe,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},R9=function(e){return{code:kTe,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},MTe={code:ETe,message:"Too many files"};function oJ(t,e){var r=t.type==="application/x-moz-file"||xTe(t,e);return[r,r?null:DTe(e)]}function sJ(t,e,r){if(Pf(t.size))if(Pf(e)&&Pf(r)){if(t.size>r)return[!1,I9(r)];if(t.sizer)return[!1,I9(r)]}return[!0,null]}function Pf(t){return t!=null}function OTe(t){var e=t.files,r=t.accept,n=t.minSize,a=t.maxSize,i=t.multiple,o=t.maxFiles,s=t.validator;return!i&&e.length>1||i&&o>=1&&e.length>o?!1:e.every(function(l){var c=oJ(l,r),d=Dy(c,1),u=d[0],f=sJ(l,n,a),p=Dy(f,1),v=p[0],g=s?s(l):null;return u&&v&&!g})}function lx(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function U1(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function L9(t){t.preventDefault()}function $Te(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function ATe(t){return t.indexOf("Edge/")!==-1}function PTe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return $Te(t)||ATe(t)}function qs(){for(var t=arguments.length,e=new Array(t),r=0;r1?a-1:0),o=1;ot.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function JTe(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i=0)&&(r[a]=t[a]);return r}var KC=z.forwardRef(function(t,e){var r=t.children,n=cx(t,zTe),a=ZTe(n),i=a.open,o=cx(a,BTe);return z.useImperativeHandle(e,function(){return{open:i}},[i]),E.createElement(z.Fragment,null,r(ln(ln({},o),{},{open:i})))});KC.displayName="Dropzone";var dJ={disabled:!1,getFilesFromEvent:oTe,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};KC.defaultProps=dJ;KC.propTypes={children:ge.func,accept:ge.objectOf(ge.arrayOf(ge.string)),multiple:ge.bool,preventDropOnDocument:ge.bool,noClick:ge.bool,noKeyboard:ge.bool,noDrag:ge.bool,noDragEventsBubbling:ge.bool,minSize:ge.number,maxSize:ge.number,maxFiles:ge.number,disabled:ge.bool,getFilesFromEvent:ge.func,onFileDialogCancel:ge.func,onFileDialogOpen:ge.func,useFsAccessApi:ge.bool,autoFocus:ge.bool,onDragEnter:ge.func,onDragLeave:ge.func,onDragOver:ge.func,onDrop:ge.func,onDropAccepted:ge.func,onDropRejected:ge.func,onError:ge.func,validator:ge.func};var kP={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function ZTe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=ln(ln({},dJ),t),r=e.accept,n=e.disabled,a=e.getFilesFromEvent,i=e.maxSize,o=e.minSize,s=e.multiple,l=e.maxFiles,c=e.onDragEnter,d=e.onDragLeave,u=e.onDragOver,f=e.onDrop,p=e.onDropAccepted,v=e.onDropRejected,g=e.onFileDialogCancel,_=e.onFileDialogOpen,b=e.useFsAccessApi,w=e.autoFocus,x=e.preventDropOnDocument,C=e.noClick,M=e.noKeyboard,k=e.noDrag,O=e.noDragEventsBubbling,R=e.onError,L=e.validator,$=z.useMemo(function(){return LTe(r)},[r]),N=z.useMemo(function(){return RTe(r)},[r]),W=z.useMemo(function(){return typeof _=="function"?_:F9},[_]),j=z.useMemo(function(){return typeof g=="function"?g:F9},[g]),Y=z.useRef(null),V=z.useRef(null),J=z.useReducer(KTe,kP),ie=SO(J,2),K=ie[0],Q=ie[1],oe=K.isFocused,H=K.isFileDialogActive,X=z.useRef(typeof window<"u"&&window.isSecureContext&&b&&ITe()),ae=function(){!X.current&&H&&setTimeout(function(){if(V.current){var He=V.current.files;He.length||(Q({type:"closeDialog"}),j())}},300)};z.useEffect(function(){return window.addEventListener("focus",ae,!1),function(){window.removeEventListener("focus",ae,!1)}},[V,H,j,X]);var re=z.useRef([]),le=function(He){Y.current&&Y.current.contains(He.target)||(He.preventDefault(),re.current=[])};z.useEffect(function(){return x&&(document.addEventListener("dragover",L9,!1),document.addEventListener("drop",le,!1)),function(){x&&(document.removeEventListener("dragover",L9),document.removeEventListener("drop",le))}},[Y,x]),z.useEffect(function(){return!n&&w&&Y.current&&Y.current.focus(),function(){}},[Y,w,n]);var Ee=z.useCallback(function(_e){R?R(_e):console.error(_e)},[R]),We=z.useCallback(function(_e){_e.preventDefault(),_e.persist(),_t(_e),re.current=[].concat(HTe(re.current),[_e.target]),U1(_e)&&Promise.resolve(a(_e)).then(function(He){if(!(lx(_e)&&!O)){var pt=He.length,ct=pt>0&&OTe({files:He,accept:$,minSize:o,maxSize:i,multiple:s,maxFiles:l,validator:L}),ut=pt>0&&!ct;Q({isDragAccept:ct,isDragReject:ut,isDragActive:!0,type:"setDraggedFiles"}),c&&c(_e)}}).catch(function(He){return Ee(He)})},[a,c,Ee,O,$,o,i,s,l,L]),Ne=z.useCallback(function(_e){_e.preventDefault(),_e.persist(),_t(_e);var He=U1(_e);if(He&&_e.dataTransfer)try{_e.dataTransfer.dropEffect="copy"}catch{}return He&&u&&u(_e),!1},[u,O]),Le=z.useCallback(function(_e){_e.preventDefault(),_e.persist(),_t(_e);var He=re.current.filter(function(ct){return Y.current&&Y.current.contains(ct)}),pt=He.indexOf(_e.target);pt!==-1&&He.splice(pt,1),re.current=He,!(He.length>0)&&(Q({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),U1(_e)&&d&&d(_e))},[Y,d,O]),Pe=z.useCallback(function(_e,He){var pt=[],ct=[];_e.forEach(function(ut){var Et=oJ(ut,$),nt=SO(Et,2),Ke=nt[0],nr=nt[1],ar=sJ(ut,o,i),Kt=SO(ar,2),me=Kt[0],Ce=Kt[1],at=L?L(ut):null;if(Ke&&me&&!at)pt.push(ut);else{var gt=[nr,Ce];at&&(gt=gt.concat(at)),ct.push({file:ut,errors:gt.filter(function(Qt){return Qt})})}}),(!s&&pt.length>1||s&&l>=1&&pt.length>l)&&(pt.forEach(function(ut){ct.push({file:ut,errors:[MTe]})}),pt.splice(0)),Q({acceptedFiles:pt,fileRejections:ct,isDragReject:ct.length>0,type:"setFiles"}),f&&f(pt,ct,He),ct.length>0&&v&&v(ct,He),pt.length>0&&p&&p(pt,He)},[Q,s,$,o,i,l,f,p,v,L]),we=z.useCallback(function(_e){_e.preventDefault(),_e.persist(),_t(_e),re.current=[],U1(_e)&&Promise.resolve(a(_e)).then(function(He){lx(_e)&&!O||Pe(He,_e)}).catch(function(He){return Ee(He)}),Q({type:"reset"})},[a,Pe,Ee,O]),ye=z.useCallback(function(){if(X.current){Q({type:"openDialog"}),W();var _e={multiple:s,types:N};window.showOpenFilePicker(_e).then(function(He){return a(He)}).then(function(He){Pe(He,null),Q({type:"closeDialog"})}).catch(function(He){NTe(He)?(j(He),Q({type:"closeDialog"})):FTe(He)?(X.current=!1,V.current?(V.current.value=null,V.current.click()):Ee(new 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 was provided."))):Ee(He)});return}V.current&&(Q({type:"openDialog"}),W(),V.current.value=null,V.current.click())},[Q,W,j,b,Pe,Ee,N,s]),ht=z.useCallback(function(_e){!Y.current||!Y.current.isEqualNode(_e.target)||(_e.key===" "||_e.key==="Enter"||_e.keyCode===32||_e.keyCode===13)&&(_e.preventDefault(),ye())},[Y,ye]),Be=z.useCallback(function(){Q({type:"focus"})},[]),je=z.useCallback(function(){Q({type:"blur"})},[]),Dt=z.useCallback(function(){C||(PTe()?setTimeout(ye,0):ye())},[C,ye]),Me=function(He){return n?null:He},ot=function(He){return M?null:Me(He)},kt=function(He){return k?null:Me(He)},_t=function(He){O&&He.stopPropagation()},tt=z.useMemo(function(){return function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},He=_e.refKey,pt=He===void 0?"ref":He,ct=_e.role,ut=_e.onKeyDown,Et=_e.onFocus,nt=_e.onBlur,Ke=_e.onClick,nr=_e.onDragEnter,ar=_e.onDragOver,Kt=_e.onDragLeave,me=_e.onDrop,Ce=cx(_e,jTe);return ln(ln(TP({onKeyDown:ot(qs(ut,ht)),onFocus:ot(qs(Et,Be)),onBlur:ot(qs(nt,je)),onClick:Me(qs(Ke,Dt)),onDragEnter:kt(qs(nr,We)),onDragOver:kt(qs(ar,Ne)),onDragLeave:kt(qs(Kt,Le)),onDrop:kt(qs(me,we)),role:typeof ct=="string"&&ct!==""?ct:"presentation"},pt,Y),!n&&!M?{tabIndex:0}:{}),Ce)}},[Y,ht,Be,je,Dt,We,Ne,Le,we,M,k,n]),Fe=z.useCallback(function(_e){_e.stopPropagation()},[]),Vt=z.useMemo(function(){return function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},He=_e.refKey,pt=He===void 0?"ref":He,ct=_e.onChange,ut=_e.onClick,Et=cx(_e,WTe),nt=TP({accept:$,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:Me(qs(ct,we)),onClick:Me(qs(ut,Fe)),tabIndex:-1},pt,V);return ln(ln({},nt),Et)}},[V,r,s,we,n]);return ln(ln({},K),{},{isFocused:oe&&!n,getRootProps:tt,getInputProps:Vt,rootRef:Y,inputRef:V,open:Me(ye)})}function KTe(t,e){switch(e.type){case"focus":return ln(ln({},t),{},{isFocused:!0});case"blur":return ln(ln({},t),{},{isFocused:!1});case"openDialog":return ln(ln({},kP),{},{isFileDialogActive:!0});case"closeDialog":return ln(ln({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return ln(ln({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return ln(ln({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return ln({},kP);default:return t}}function F9(){}function QTe(){const t=xh();return[...t.breakpoints.keys].reverse().reduce((r,n)=>{const a=Xme(t.breakpoints.up(n));return!r&&a?n:r},null)||"xs"}function S0(){return t=>function(r){const n=QTe();return E.createElement(t,{...r,width:n})}}function eke(t){const[e,r]=E.useState(t.input||t.value||""),[n,a]=E.useState("");return E.createElement(ms,{open:!0,onClose:()=>t.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:t.fullWidth!==void 0?t.fullWidth:!1},E.createElement(_s,{id:"form-dialog-title"},t.titleText),E.createElement(gs,null,E.createElement(RC,null,t.promptText),E.createElement(Sa,{variant:"standard",autoFocus:!0,margin:"dense",error:!!n,helperText:n===!0||!n?"":n,value:e,label:t.labelText||"",type:t.type||"text",onKeyUp:i=>i.code==="Enter"&&e&&t.onClose(e),onChange:i=>{let o="";t.verify&&(o=!t.verify(i.target.value)),t.rule?r(t.rule(i.target.value)):r(i.target.value),a(o)},fullWidth:!0})),E.createElement(vs,null,E.createElement(Vr,{variant:"contained",disabled:!e||!!n,onClick:()=>t.onClose(e),color:"primary",startIcon:E.createElement(Ch,null)},t.applyText||te.t("ra_Ok")),E.createElement(Vr,{color:"grey",variant:"contained",onClick:()=>t.onClose(null),startIcon:E.createElement(rv,null)},t.cancelText||te.t("ra_Cancel"))))}const tke=S0()(eke),rke=t=>E.createElement("svg",{onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 486 486",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:t.className,style:t.style},E.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"}),E.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"})),EP=t=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},E.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"})),nke=t=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},E.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"})),pN=t=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},E.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 ake=t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,r)=>{const[n,a]=r.split(/ ?: ?/).map((i,o)=>o===0?i.replace(/\s+/g,""):i.trim());if(n&&a){const i=n.replace(/(\w)-(\w)/g,(s,l,c)=>`${l}${c.toUpperCase()}`);let o=a.trim();Number.isNaN(Number(a))||(o=Number(a)),e[n.startsWith("-")?n:i]=o}return e},{});function ike(t=6){const e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=t;n>0;--n)r+=e[Math.round(Math.random()*(e.length-1))];return r}var oke=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],z9={"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 ske(t,e){var i;const{key:r,level:n,...a}=e;switch(t.nodeType){case 1:return z.createElement(cke(t.nodeName),lke(t,r),B9(t.childNodes,n,a));case 3:{const o=((i=t.nodeValue)==null?void 0:i.toString())??"";if(!a.allowWhiteSpaces&&/^\s+$/.test(o)&&!/[\u00A0\u202F]/.test(o))return null;if(!t.parentNode)return o;const s=t.parentNode.nodeName.toLowerCase();return oke.includes(s)?(/\S/.test(o)&&console.warn(`A textNode is not allowed inside '${s}'. Your text "${o}" will be ignored`),null):o}case 8:return null;case 11:return B9(t.childNodes,n,e);default:return null}}function lke(t,e){const r={key:e};if(t instanceof Element){const n=t.getAttribute("class");n&&(r.className=n),[...t.attributes].forEach(a=>{switch(a.name){case"class":break;case"style":r[a.name]=ake(a.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":r[z9[a.name]||a.name]=!0;break;default:r[z9[a.name]||a.name]=a.value}})}return r}function B9(t,e,r){const n=[...t].map((a,i)=>ux(a,{...r,index:i,level:e+1})).filter(Boolean);return n.length?n:null}function cke(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}function ux(t,e={}){if(!t||!(t instanceof Node))return null;const{actions:r=[],index:n=0,level:a=0,randomKey:i}=e;let o=t,s=`${a}-${n}`;const l=[];return i&&a===0&&(s=`${ike()}-${s}`),Array.isArray(r)&&r.forEach(c=>{c.condition(o,s,a)&&(typeof c.pre=="function"&&(o=c.pre(o,s,a),o instanceof Node||(o=t)),typeof c.post=="function"&&l.push(c.post(o,s,a)))}),l.length?l:ske(o,{key:s,level:a,...e})}function uke(t,e={}){if(!t||typeof t!="string")return null;const{includeAllNodes:r=!1,nodeOnly:n=!1,selector:a="body > *",type:i="text/html"}=e;try{const s=new DOMParser().parseFromString(t,i);if(r){const{childNodes:c}=s.body;return n?c:[...c].map(d=>ux(d,e))}const l=s.querySelector(a)||s.body.childNodes[0];if(!(l instanceof Node))throw new TypeError("Error parsing input");return n?l:ux(l,e)}catch{}return null}function fJ(t,e={}){return typeof t=="string"?uke(t,e):t instanceof Node?ux(t,e):null}var dke=Object.defineProperty,fke=(t,e,r)=>e in t?dke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Y1=(t,e,r)=>fke(t,typeof e!="symbol"?e+"":e,r),j9="react-inlinesvg",W9=10,Er={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function yS(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function hke(){return mke()&&typeof window<"u"&&window!==null}async function hJ(t,e){const r=await fetch(t,e),n=r.headers.get("content-type"),[a]=(n??"").split(/ ?; ?/);if(r.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(i=>a.includes(i)))throw new Error(`Content type isn't valid: ${a}`);return r.text()}function pke(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}function mke(){if(!document)return!1;const t=document.createElement("div");t.innerHTML="";const e=t.firstChild;return!!e&&e.namespaceURI==="http://www.w3.org/2000/svg"}function vke(t){return t[Math.floor(Math.random()*t.length)]}function gke(t){const e="abcdefghijklmnopqrstuvwxyz",n=`${e}${e.toUpperCase()}1234567890`;let a="";for(let i=0;i{this.cacheApi=r}).catch(r=>{console.error(`Failed to open cache: ${r.message}`)}).finally(()=>{this.isReady=!0,this.subscribers.forEach(r=>r())}):this.isReady=!0}onReady(t){this.isReady?t():this.subscribers.push(t)}async get(t,e){var r;return await(this.cacheApi?this.fetchAndAddToPersistentCache(t,e):this.fetchAndAddToInternalCache(t,e)),((r=this.cacheStore.get(t))==null?void 0:r.content)??""}set(t,e){this.cacheStore.set(t,e)}isCached(t){var e;return((e=this.cacheStore.get(t))==null?void 0:e.status)===Er.LOADED}async fetchAndAddToInternalCache(t,e){const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===Er.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Er.IDLE}),await this.fetchAndAddToInternalCache(t,e)});return}if(!(r!=null&&r.content)){this.cacheStore.set(t,{content:"",status:Er.LOADING});try{const n=await hJ(t,e);this.cacheStore.set(t,{content:n,status:Er.LOADED})}catch(n){throw this.cacheStore.set(t,{content:"",status:Er.FAILED}),n}}}async fetchAndAddToPersistentCache(t,e){var a,i,o;const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===Er.LOADED)return;if((r==null?void 0:r.status)===Er.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:Er.IDLE}),await this.fetchAndAddToPersistentCache(t,e)});return}this.cacheStore.set(t,{content:"",status:Er.LOADING});const n=await((a=this.cacheApi)==null?void 0:a.match(t));if(n){const s=await n.text();this.cacheStore.set(t,{content:s,status:Er.LOADED});return}try{await((i=this.cacheApi)==null?void 0:i.add(new Request(t,e)));const s=await((o=this.cacheApi)==null?void 0:o.match(t)),l=await(s==null?void 0:s.text())??"";this.cacheStore.set(t,{content:l,status:Er.LOADED})}catch(s){throw this.cacheStore.set(t,{content:"",status:Er.FAILED}),s}}async handleLoading(t,e){var n;let r=0;for(;((n=this.cacheStore.get(t))==null?void 0:n.status)===Er.LOADING&&r=W9&&await e()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([t,e])=>({[t]:e}))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){const t=await this.cacheApi.keys();for(const e of t)await this.cacheApi.delete(e)}this.cacheStore.clear()}};function H9(t){const e=z.useRef();return z.useEffect(()=>{e.current=t}),e.current}function bke(t){const{baseURL:e,content:r,description:n,handleError:a,hash:i,preProcessor:o,title:s,uniquifyIDs:l=!1}=t;try{const c=wke(r,o),d=fJ(c,{nodeOnly:!0});if(!d||!(d instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const u=pJ(d,{baseURL:e,hash:i,uniquifyIDs:l});if(n){const f=u.querySelector("desc");f!=null&&f.parentNode&&f.parentNode.removeChild(f);const p=document.createElementNS("http://www.w3.org/2000/svg","desc");p.innerHTML=n,u.prepend(p)}if(typeof s<"u"){const f=u.querySelector("title");if(f!=null&&f.parentNode&&f.parentNode.removeChild(f),s){const p=document.createElementNS("http://www.w3.org/2000/svg","title");p.innerHTML=s,u.prepend(p)}}return u}catch(c){return a(c)}}function wke(t,e){return e?e(t):t}function pJ(t,e){const{baseURL:r="",hash:n,uniquifyIDs:a}=e,i=["id","href","xlink:href","xlink:role","xlink:arcrole"],o=["href","xlink:href"],s=(l,c)=>o.includes(l)&&(c?!c.includes("#"):!1);return a&&[...t.children].forEach(l=>{var c;if((c=l.attributes)!=null&&c.length){const d=Object.values(l.attributes).map(u=>{const f=u,p=/url\((.*?)\)/.exec(u.value);return p!=null&&p[1]&&(f.value=u.value.replace(p[0],`url(${r}${p[1]}__${n})`)),f});i.forEach(u=>{const f=d.find(p=>p.name===u);f&&!s(u,f.value)&&(f.value=`${f.value}__${n}`)})}return l.children.length?pJ(l,e):l}),t}var Sm;function Ske(t){const{cacheRequests:e=!0,children:r=null,description:n,fetchOptions:a,innerRef:i,loader:o=null,onError:s,onLoad:l,src:c,title:d,uniqueHash:u}=t,[f,p]=z.useReducer((Y,V)=>({...Y,...V}),{content:"",element:null,isCached:e&&Sm.isCached(t.src),status:Er.IDLE}),{content:v,element:g,isCached:_,status:b}=f,w=H9(t),x=H9(f),C=z.useRef(u??gke(8)),M=z.useRef(!1),k=z.useRef(!1),O=z.useCallback(Y=>{M.current&&(p({status:Y.message==="Browser does not support SVG"?Er.UNSUPPORTED:Er.FAILED}),s==null||s(Y))},[s]),R=z.useCallback((Y,V=!1)=>{M.current&&p({content:Y,isCached:V,status:Er.LOADED})},[]),L=z.useCallback(async()=>{const Y=await hJ(c,a);R(Y)},[a,R,c]),$=z.useCallback(()=>{try{const Y=bke({...t,handleError:O,hash:C.current,content:v}),V=fJ(Y);if(!V||!z.isValidElement(V))throw new Error("Could not convert the src to a React element");p({element:V,status:Er.READY})}catch(Y){O(new Error(Y.message))}},[v,O,t]),N=z.useCallback(async()=>{const Y=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(c);let V;if(Y?V=Y[1]?window.atob(Y[2]):decodeURIComponent(Y[2]):c.includes("{M.current&&p({content:"",element:null,isCached:!1,status:Er.LOADING})},[]);z.useEffect(()=>{if(M.current=!0,!yS()||k.current)return()=>{};try{if(b===Er.IDLE){if(!hke())throw new Error("Browser does not support SVG");if(!c)throw new Error("Missing src");W()}}catch(Y){O(Y)}return k.current=!0,()=>{M.current=!1}},[]),z.useEffect(()=>{if(yS()&&w)if(w.src!==c){if(!c){O(new Error("Missing src"));return}W()}else(w.title!==d||w.description!==n)&&$()},[n,$,O,W,w,c,d]),z.useEffect(()=>{x&&(x.status!==Er.LOADING&&b===Er.LOADING&&N(),x.status!==Er.LOADED&&b===Er.LOADED&&$(),x.status!==Er.READY&&b===Er.READY&&(l==null||l(c,_)))},[N,$,_,l,x,c,b]);const j=_ke(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return yS()?g?z.cloneElement(g,{ref:i,...j}):[Er.UNSUPPORTED,Er.FAILED].includes(b)?r:o:o}function xke(t){Sm||(Sm=new yke);const{loader:e}=t,r=z.useRef(!1),[n,a]=z.useState(Sm.isReady);return z.useEffect(()=>{r.current||(Sm.onReady(()=>{a(!0)}),r.current=!0)},[]),n?E.createElement(Ske,{...t}):e}const Cke=window.location.hostname.endsWith("iobroker.in"),U9=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);function mN(t){var e,r,n;if(t.src){if(typeof t.src=="string"){if(t.src.length<3)return t.sx?E.createElement(br,{component:"span",sx:t.sx,title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:tr.clsx(t.className,"iconOwn")},t.src):E.createElement("span",{title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:tr.clsx(t.className,"iconOwn")},t.src);if(t.src.startsWith("data:image/svg"))return E.createElement(xke,{title:t.title||void 0,src:t.src,className:tr.clsx(t.className,"iconOwn"),width:((e=t.style)==null?void 0:e.width)||28,height:((r=t.style)==null?void 0:r.height)||((n=t.style)==null?void 0:n.width)||28,style:t.style||void 0});if(Cke&&!t.src.startsWith("http://")&&!t.src.startsWith("https://")){let a=t.src;return a.startsWith("./")?a=U9+a.substring(2):a.startsWith("/")||(a=U9+a),t.sx?E.createElement(br,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:tr.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${a}`,alt:t.alt||void 0,ref:t.ref,onError:i=>t.onError&&t.onError(i)}):E.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:tr.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${a}`,alt:t.alt||void 0,ref:t.ref,onError:i=>t.onError&&t.onError(i)})}return t.sx?E.createElement(br,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:tr.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError}):E.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:tr.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError})}return t.src}return null}const Qd={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"}},_a={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp","ico"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function Y9(t,e){let r="";const n=new Uint8Array((t==null?void 0:t.data)||t),a=n.byteLength;for(let i=0;i{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,a===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))});const n=tr.getFileExtension(r.href);this.state={text:null,code:null,ext:n,editing:!1,editingValue:null,copyPossible:!!n&&(_a.code.includes(n)||_a.txt.includes(n)),forceUpdate:Date.now(),changed:!1,imgError:!1}}readFile(){if(this.props.href){const r=this.props.href.split("/");r.splice(0,2);const n=r[0],a=r.splice(1).join("/");this.props.socket.readFile(n,a).then(i=>{let o="";i.file!==void 0&&(o=i.file);const s={copyPossible:this.state.copyPossible,ext:this.state.ext};if(o.type==="Buffer")if(a.toLowerCase().endsWith(".json5")){s.ext="json5",s.copyPossible=!0;try{o=atob(Y9(o,!0))}catch{console.error("Cannot convert base64 to string"),o=""}}else{const l=tr.detectMimeType(Y9(o));l&&(s.ext=l,s.copyPossible=_a.code.includes(l)||_a.txt.includes(l))}s.copyPossible&&(s.ext&&_a.txt.includes(s.ext)?(s.text=o,s.editingValue=o):s.ext&&_a.code.includes(s.ext)&&(s.code=o,s.editingValue=o)),this.setState(s)}).catch(i=>window.alert(`Cannot read file: ${i}`))}}componentDidMount(){this.readFile();const r=this.props.href.split("/");r.splice(0,2);const n=r[0],a=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,a,this.onFileChanged).catch(i=>window.alert(`Cannot subscribe on file: ${i}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const r=this.props.href.split("/");r.splice(0,2);const n=r[0],a=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,a,this.onFileChanged).catch(i=>window.alert(`Cannot subscribe on file: ${i}`))}getEditorOrViewer(){return E.createElement(Sa,{variant:"standard",style:Qd.textarea,multiline:!0,value:this.state.editingValue||this.state.code||this.state.text,slotProps:{htmlInput:{readOnly:!this.state.editing}}})}getContent(){return this.state.ext&&_a.images.includes(this.state.ext)?this.state.imgError?E.createElement(pN,{style:{...Qd.img,...this.props.getStyleBackgroundImage()}}):E.createElement(mN,{onError:r=>{r.target.onerror=null,this.setState({imgError:!0})},style:{...Qd.img,...this.props.getStyleBackgroundImage()},src:`${this.props.href}?ts=${this.state.forceUpdate}`,alt:this.props.href}):this.state.ext&&_a.audio.includes(this.state.ext)?E.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&_a.video.includes(this.state.ext)?E.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},E.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 E.createElement(ms,{sx:{"&.MuiDialog-scrollPaper":Qd.dialog,"& .MuiDialog-paper":Qd.paper},scroll:"paper",open:!!this.props.href,onClose:()=>this.props.onClose(),fullWidth:!0,maxWidth:"xl","aria-labelledby":"ar_dialog_file_view_title"},E.createElement("div",{style:Qd.dialogTitle},E.createElement(_s,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&_a.images.includes(this.state.ext)&&E.createElement("div",null,E.createElement(va,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},E.createElement(Zq,null)))),E.createElement(gs,{style:Qd.content},this.getContent()),E.createElement(vs,null,this.state.copyPossible?E.createElement(Vr,{color:"grey",onClick:r=>{r.stopPropagation(),r.preventDefault(),tr.copyToClipboard(this.state.text||this.state.code||"")},startIcon:E.createElement(d_e,null)},this.props.t("Copy content")):null,this.state.editing?E.createElement(Vr,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:()=>this.onSave(),startIcon:E.createElement(pP,null)},this.props.t("Save")):null,E.createElement(Vr,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:E.createElement(rv,null)},this.props.t("Close"))))}}const kke=S0()(Tke),$p=32,ql=32,V1=120,V9=64,G9="Not found",G1={all:Qq,images:__e,code:CL,txt:v_e,audio:s_e,video:A_e},qe={root:{width:"100%",overflow:"hidden",height:"100%",position:"relative"},filesDiv:{width:"calc(100% - 16px)",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% - ${48*2+8}px)`,display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${V9}px`},itemTile:t=>({position:"relative",userSelect:"none",cursor:"pointer",height:V1,width:V9,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:t.palette.secondary.light,color:tr.invertColor(t.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:t=>({width:"100%",height:V1-32-16-8,display:"block",pl:1,color:t.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:t=>({position:"absolute",top:22,left:18,zIndex:1,color:t.palette.mode==="dark"?"#FFF":"#000"}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:V1-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:V1-32-16-8,display:"block",objectFit:"contain"},itemSelected:t=>({background:t.palette.primary.main,color:tr.invertColor(t.palette.primary.main,!0)}),itemTable:t=>({userSelect:"none",cursor:"pointer",height:$p,display:"inline-flex",lineHeight:`${$p}px`,"&:hover":{background:t.palette.secondary.light,color:tr.invertColor(t.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:t=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:t.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:t=>({display:"inline-block",width:ql,height:$p,minWidth:ql,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${ql/2}px`,"&:hover":{backgroundColor:t.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:t.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:ql,height:$p,minWidth:ql,padding:0},itemAclButtonTable:{width:ql,height:$p,minWidth:ql,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:ql,height:$p,minWidth:ql,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:t=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:t.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:t=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:t.palette.secondary.main}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:t=>({pl:"2px",pr:"2px",cursor:"pointer","&:hover":{background:t.palette.primary.main}}),pathDivBreadcrumbSelected:{},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:t=>({color:t.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},_u="0_userdata.0";function Ap(t){const e=(t||"").split("/");return e.length&&e.pop(),e.join("/")}function xO(t){const e=tr.getFileExtension(t);return!!(e!=null&&e.toLowerCase().match(/[a-z]+/)&&e.length<5)}const gr="Table",CO="Tile";function q9(t,e){return t.folder&&e.folder?t.name>e.name?1:t.namee.name?1:t.name{const i=`${r}/${n}`,o=i.lastIndexOf("/"),s=i.substring(0,o);console.log(`File changed ${i}[${a}]`),this.state.folders[s]&&(this._tempTimeout[s]&&clearTimeout(this._tempTimeout[s]),this._tempTimeout[s]=setTimeout(()=>{delete this._tempTimeout[s],this.browseFolder(s,null,!1,!0).then(l=>this.setState({folders:l})).catch(l=>console.error(`Cannot read folder: ${l.message}`))},300))});de(this,"setStateBackgroundImage",()=>{const r=["light","dark","colored","delete"];this.setState(({backgroundImage:n})=>n&&r.indexOf(n)!==-1&&r.length-1!==r.indexOf(n)?(this.localStorage.setItem("files.backgroundImage",r[r.indexOf(n)+1]),{backgroundImage:r[r.indexOf(n)+1]}):(this.localStorage.setItem("files.backgroundImage",r[0]),{backgroundImage:r[0]}))});de(this,"getStyleBackgroundImage",()=>{switch(this.state.backgroundImage){case"light":return qe.backgroundImageLight;case"dark":return qe.backgroundImageDark;case"colored":return qe.backgroundImageColored;case"delete":return null;default:return null}});this.localStorage=window._localStorage||window.localStorage;const n=this.localStorage.getItem("files.expanded")||"[]";if(this.props.limitPath){const c=this.props.limitPath.split("/");this.limitToObjectID=c[0],this.limitToPath=c.length?c.length===1&&c[0]===""?null:c.join("/"):null,this.limitToPath&&this.limitToPath.endsWith("/")&&this.limitToPath.substring(0,this.limitToPath.length-1)}let a;try{a=JSON.parse(n),this.limitToPath&&(a=a.filter(c=>{var d;return c.startsWith(`${this.limitToPath}/`)||c===this.limitToPath||((d=this.limitToPath)==null?void 0:d.startsWith(`${c}/`))}))}catch{a=[]}let i;this.props.showViewTypeButton?i=this.localStorage.getItem("files.viewType")||gr:i=gr;let o=this.props.selected||this.localStorage.getItem("files.selected")||_u,s;if(r.restrictToFolder){o=r.restrictToFolder,s=r.restrictToFolder;const c=r.restrictToFolder.split("/");a=[];let d="";for(let u=0;u{if(this.state.viewType===gr&&!this.findItem(this.state.selected)){const n=this.state.selected.split("/");for(;n.length&&!this.findItem(n.join("/"));)n.pop();let a;n.length?a=n.join("/"):a=_u,this.setState({selected:a,path:a,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){if(this.mounted){const r=document.getElementById(this.state.selected);r==null||r.scrollIntoView()}}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(r=>console.error(`Cannot load folders: ${r}`)),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(r=>r&&clearTimeout(r)),this._tempTimeout={}}browseFoldersCb(r,n,a){if(!(r!=null&&r.length))a(n);else{const i=r.shift();i?this.browseFolder(i,n).catch(o=>console.error(`Cannot read folder ${i}: ${o.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(r,n,a),0)}):setTimeout(()=>this.browseFoldersCb(r,n,a),0)}}browseFolders(r,n){let a;return n?a=n:(a={},Object.keys(this.state.folders).forEach(i=>a[i]=this.state.folders[i])),r!=null&&r.length?new Promise(i=>{this.browseFoldersCb(r,a,i)}):Promise.resolve(a)}readDirSerial(r,n){return new Promise((a,i)=>{this.browseList&&(this.browseList.push({resolve:a,reject:i,adapter:r,relPath:n}),this.browseListRunning||this.processBrowseList())})}processBrowseList(r=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.setState({queueLength:this.browseList.length}),this.browseList[0].processing=!0,this.props.socket.readDir(this.browseList[0].adapter,this.browseList[0].relPath).then(n=>{if(this.browseList){const a=this.browseList.shift();if(a){const i=a.resolve;a.resolve=null,a.reject=null,a.adapter=null,a.relPath=null,i&&i(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(n=>{if(this.browseList){const a=this.browseList.shift();if(a){const i=a.reject;a.resolve=null,a.reject=null,a.adapter=null,a.relPath=null,i&&i(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(r,n,a,i){let o;if(n?o=n:(o={},Object.keys(this.state.folders).forEach(f=>{o[f]=this.state.folders[f]})),o[r]&&!i)return a?Promise.resolve(o):new Promise((f,p)=>{Promise.all(o[r].filter(v=>v.folder).map(v=>this.browseFolder(v.id,o,!0).catch(()=>{}))).then(()=>f(o)).catch(v=>p(new Error(v)))});if(!r||r==="/"){try{let f=await this.props.socket.readMetaItems();const p=[];let v=null;if(this.state.restrictToFolder){const _=this.state.restrictToFolder.split("/")[0];f=f.filter(b=>b._id===_)}else this.state.expertMode||(f=f.filter(_=>!_._id.endsWith(".admin")));const g=f.findIndex(_=>_._id==="system.meta.uuid");if(g!==-1&&f.splice(g,1),f.forEach(_=>{if(this.limitToObjectID&&this.limitToObjectID!==_._id)return;const b={id:_._id,name:_._id,title:_.common&&_.common.name||_._id,meta:!0,from:_.from,ts:_.ts,color:_.common&&_.common.color,icon:_.common&&_.common.icon,folder:!0,acl:_.acl,level:0};b.id===_u?v=b:p.push(b)}),p.sort((_,b)=>_.id>b.id?1:_.id_.folder).map(_=>this.browseFolder(_.id,o,!0).catch(()=>{}))).then(()=>o)}catch(f){const p=f;this.initialReadFinished&&window.alert(`Cannot read meta items: ${p.message}`),o[r||"/"]=[]}return o}const s=r.split("/"),l=s.length,c=s.shift(),d=s.join("/");let u;try{u=await this.readDirSerial(c||"",d)}catch(f){if(f==="Not exists"&&c==="0_userdata.0")u=[];else throw f}try{const f=[];if(u.forEach(p=>{var g;const v={id:`${r}/${p.file}`,ext:tr.getFileExtension(p.file),folder:p.isDir,name:p.file,size:(g=p.stats)==null?void 0:g.size,modified:p.modifiedAt,acl:p.acl,level:l};this.state.restrictToFolder?(v.folder&&(v.id.startsWith(`${this.state.restrictToFolder}/`)||v.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${v.id}/`))||v.id.startsWith(`${this.state.restrictToFolder}/`))&&f.push(v):this.limitToPath?(v.folder&&(v.id.startsWith(`${this.limitToPath}/`)||v.id===this.limitToPath||this.limitToPath.startsWith(`${v.id}/`))||v.id.startsWith(`${this.limitToPath}/`))&&f.push(v):f.push(v)}),f.sort(q9),o[r]=f,!a)return Promise.all(f.filter(p=>p.folder).map(p=>this.browseFolder(p.id,o,!0))).then(()=>o)}catch(f){const p=f;this.initialReadFinished&&window.alert(`Cannot read ${c}${d?`/${d}`:""}: ${p==null?void 0:p.message}`),o[r]=[]}return o}toggleFolder(r,n){n==null||n.stopPropagation();const a=[...this.state.expanded],i=a.indexOf(r.id);i===-1?(a.push(r.id),a.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(a)),r.temp?this.setState({expanded:a}):this.browseFolder(r.id).then(o=>this.setState({expanded:a,folders:o})).catch(o=>window.alert(o===G9?this.props.t('ra_Cannot find "%s"',r.id):this.props.t('ra_Cannot read "%s"',r.id)))):(a.splice(i,1),this.localStorage.setItem("files.expanded",JSON.stringify(a)),this.setState({expanded:a}))}changeFolder(r,n){r==null||r.stopPropagation(),this.lastSelect=Date.now();let a=n||Ap(this.state.currentDir);if(a==="/"&&(a=""),this.localStorage.setItem("files.currentDir",a),n&&r&&(r.altKey||r.shiftKey||r.ctrlKey||r.metaKey)){this.setState({selected:a});return}if(a&&!this.state.folders[a]){this.browseFolder(a).then(i=>this.setState({folders:i,path:a,currentDir:a,selected:a,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(i=>console.error(`Cannot read folder: ${i.message}`));return}this.setState({currentDir:a,selected:a,path:a,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))}select(r,n,a){n&&n.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",r),this.setState({selected:r,path:r,pathFocus:!1},()=>{if(this.props.onSelect){const i=tr.getFileExtension(r);(!this.props.filterFiles||i&&this.props.filterFiles.includes(i))&&(!this.state.filterByType||i&&_a[this.state.filterByType].includes(i))?this.props.onSelect(r,!1,!!this.state.folders[r]):this.props.onSelect("")}a&&a()})}getText(r){if(r)return typeof r=="object"?r[this.props.lang]||r.en||void 0:r}renderFolder(r,n){if(this.state.viewType===gr&&this.state.filterEmpty&&(!this.state.folders[r.id]||!this.state.folders[r.id].length)&&r.id!==_u&&!r.temp)return null;const a=n?nke:EP,i=this.state.viewType===gr?r.level*this.levelPadding:0,o=r.name===_u,s=o||r.name==="vis.0"||r.name==="vis-2.0",l=tr.getStyle(this.props.theme,qe[`itemFolderIcon${this.state.viewType}`],s&&qe.specialFolder);return E.createElement(br,{component:"div",key:r.id,id:r.id,style:this.state.viewType===gr?{marginLeft:i,width:`calc(100% - ${i}px`}:{},onClick:c=>this.state.viewType===gr?this.select(r.id,c):this.changeFolder(c,r.id),onDoubleClick:c=>this.state.viewType===gr&&this.toggleFolder(r,c),title:this.getText(r.title),className:"browserItem",sx:tr.getStyle(this.props.theme,qe[`item${this.state.viewType}`],qe[`itemFolder${this.state.viewType}`],this.state.selected===r.id?qe.itemSelected:{},r.temp?qe.itemFolderTemp:{})},E.createElement(a,{style:l,onClick:this.state.viewType===gr?c=>this.toggleFolder(r,c):void 0}),E.createElement(br,{component:"div",sx:tr.getStyle(this.props.theme,qe[`itemName${this.state.viewType}`],qe[`itemNameFolder${this.state.viewType}`])},o?this.props.t("ra_User files"):r.name),E.createElement(br,{component:"div",style:qe[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===gr&&this.state.folders[r.id]?this.state.folders[r.id].length:""),E.createElement(br,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===gr&&this.props.expertMode?this.formatAcl(r.acl):null),this.state.viewType===gr&&this.props.expertMode?E.createElement(br,{component:"div",sx:{...qe.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===gr&&this.props.allowDownload?E.createElement("div",{style:qe[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===gr&&this.props.allowDelete&&this.state.folders[r.id]&&this.state.folders[r.id].length?E.createElement(va,{"aria-label":"delete",onClick:c=>{c.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:qe[`itemDeleteButton${this.state.viewType}`],size:"large"},E.createElement(_S,{fontSize:"small"})):this.state.viewType===gr&&this.props.allowDelete?E.createElement(br,{component:"div",sx:qe[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return E.createElement(br,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:r=>this.changeFolder(r),title:this.props.t("ra_Back to %s",Ap(this.state.currentDir)),className:"browserItem",sx:tr.getStyle(this.props.theme,qe[`item${this.state.viewType}`],qe[`itemFolder${this.state.viewType}`])},E.createElement(EP,{style:tr.getStyle(this.props.theme,qe[`itemFolderIcon${this.state.viewType}`])}),E.createElement(o_e,{sx:qe.itemFolderIconBack}),E.createElement(br,{component:"div",sx:tr.getStyle(this.props.theme,qe[`itemName${this.state.viewType}`],qe[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(r){return E.createElement("div",{style:qe[`itemSize${this.state.viewType}`]},r||r===0?tr.formatBytes(r):"")}formatAcl(r){const n=r?r.permissions||r.file:0;let a;return n?a=n.toString(16).padStart(3,"0"):a="",E.createElement("div",{style:qe[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?E.createElement(va,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:qe[`itemAclButton${this.state.viewType}`]},a||"---"):a||"---")}getFileIcon(r){switch(r){case"json":case"json5":return E.createElement(l_e,{style:qe[`itemIcon${this.state.viewType}`]});case"css":return E.createElement(c_e,{style:qe[`itemIcon${this.state.viewType}`]});case"js":case"ts":return E.createElement(CL,{style:qe[`itemIcon${this.state.viewType}`]});case"html":case"md":return E.createElement(Kq,{style:qe[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return E.createElement(S_e,{style:qe[`itemIcon${this.state.viewType}`]});default:return E.createElement(Qq,{style:qe[`itemIcon${this.state.viewType}`]})}}static getEditFile(r){switch(r){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":return!0;default:return!1}}renderFile(r){const n=this.state.viewType===gr?r.level*this.levelPadding:0,a=tr.getFileExtension(r.name);return E.createElement(br,{component:"div",key:r.id,id:r.id,onDoubleClick:i=>{i.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&_a[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:a})},onClick:i=>this.select(r.id,i),style:this.state.viewType===gr?{marginLeft:n,width:`calc(100% - ${n}px)`}:{},className:"browserItem",sx:tr.getStyle(this.props.theme,qe[`item${this.state.viewType}`],qe[`itemFile${this.state.viewType}`],this.state.selected===r.id?qe.itemSelected:void 0)},a&&_a.images.includes(a)?this.state.fileErrors.includes(r.id)?E.createElement(pN,{style:{...qe[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...qe[`itemNoImage${this.state.viewType}`]}}):E.createElement(mN,{onError:i=>{i.target.onerror=null;const o=[...this.state.fileErrors];o.includes(r.id)||(o.push(r.id),this.setState({fileErrors:o}))},style:{...qe[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+r.id,alt:r.name}):this.getFileIcon(a),E.createElement(br,{component:"div",sx:qe[`itemName${this.state.viewType}`]},r.name),E.createElement(br,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(r.size)),E.createElement(br,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===gr&&this.props.expertMode?this.formatAcl(r.acl):null),E.createElement(br,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===gr&&this.props.expertMode&&vN.getEditFile(a)?E.createElement(va,{"aria-label":"edit",onClick:i=>{i.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&_a[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:a})},sx:qe.itemDeleteButtonTable,size:"large"},E.createElement(h_e,{fontSize:"small"})):E.createElement(br,{component:"div",sx:qe[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===gr&&this.props.allowDownload?E.createElement(br,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:qe.itemDownloadButtonTable,tabIndex:0,download:r.id,href:this.imagePrefix+r.id,onClick:i=>i.stopPropagation()},E.createElement(k_e,null)):null,this.state.viewType===gr&&this.props.allowDelete&&r.id!=="vis.0/"&&r.id!=="vis-2.0/"&&r.id!==_u?E.createElement(va,{"aria-label":"delete",onClick:i=>{i.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:qe[`itemDeleteButton${this.state.viewType}`],size:"large"},E.createElement(_S,{fontSize:"small"})):this.state.viewType===gr&&this.props.allowDelete?E.createElement(br,{component:"div",sx:qe[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(r){if(this.state.folders&&this.state.folders[r]){if(this.state.viewType===CO){const a=[];return r&&r!=="/"&&a.push(this.renderBackFolder()),this.state.folders[r].forEach(i=>{i.folder?a.push(this.renderFolder(i)):(!this.props.filterFiles||i.ext&&this.props.filterFiles.includes(i.ext))&&(!this.state.filterByType||i.ext&&_a[this.state.filterByType].includes(i.ext))&&a.push(this.renderFile(i))}),a}const n=[];return this.state.folders[r].forEach(a=>{if(a.folder){const i=this.state.expanded.includes(a.id),o=this.renderFolder(a,i);if(Array.isArray(o)?o.forEach(s=>n.push(s)):n.push(o),this.state.folders[a.id]&&i){const s=this.renderItems(a.id);Array.isArray(s)?s.forEach(l=>n.push(l)):n.push(s)}}else(!this.props.filterFiles||a.ext&&this.props.filterFiles.includes(a.ext))&&(!this.state.filterByType||a.ext&&_a[this.state.filterByType].includes(a.ext))&&n.push(this.renderFile(a))}),n}return E.createElement("div",{style:{position:"relative"}},E.createElement(Fpe,{key:r,color:"secondary",size:24}),E.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const r=this.props.showTypeSelector?G1[this.state.filterByType||"all"]||G1.all:null,n=this.findFirstFolder(this.state.selected);return E.createElement(Jq,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?E.createElement(va,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...qe.menuButton,...this.state.restrictToFolder?qe.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},E.createElement(m_e,{fontSize:"small"})):null,this.props.showExpertButton?E.createElement(va,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...qe.menuButton,...this.state.expertMode?qe.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},E.createElement(rke,null)):null,this.props.showViewTypeButton?E.createElement(va,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:qe.menuButton,"aria-label":"view mode",onClick:()=>{const a=this.state.viewType===gr?CO:gr;this.localStorage.setItem("files.viewType",a);let i=this.state.selected;xO(i)&&(i=Ap(i)),this.setState({viewType:a,currentDir:i},()=>{this.state.viewType===gr&&this.scrollToSelected()})},size:"small"},this.state.viewType!==gr?E.createElement(b_e,{fontSize:"small"}):E.createElement(P_e,{fontSize:"small"})):null,E.createElement(va,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:qe.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"},E.createElement(p_e,{fontSize:"small"})),E.createElement(va,{edge:"start",title:this.props.t("ra_Reload files"),style:qe.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},E.createElement(C_e,{fontSize:"small"})),this.props.allowCreateFolder?E.createElement(va,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:qe.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},E.createElement(f_e,{fontSize:"small"})):null,this.props.allowUpload?E.createElement(va,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:qe.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},E.createElement(b6,{fontSize:"small"})):null,this.props.showTypeSelector&&r?E.createElement(lE,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:qe.tooltip}}},E.createElement(va,{size:"small",onClick:a=>this.setState({showTypesMenu:a.target})},E.createElement(r,{fontSize:"small"}))):null,this.state.showTypesMenu?E.createElement(Vq,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(G1).map(a=>{const i=G1[a];return E.createElement(tn,{key:a,selected:this.state.filterByType===a,onClick:()=>{a==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",a),this.setState({filterByType:a,showTypesMenu:null}))}},E.createElement(_ve,null,E.createElement(i,{fontSize:"small"})),E.createElement(Sve,null,this.props.t(`ra_fileType_${a}`)))})):null,E.createElement(lE,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:qe.tooltip}}},E.createElement(va,{color:"inherit",edge:"start",style:qe.menuButton,onClick:this.setStateBackgroundImage,size:"small"},E.createElement(Zq,{fontSize:"small"}))),this.state.viewType!==gr&&this.props.allowDelete?E.createElement(lE,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:qe.tooltip}}},E.createElement("span",null,E.createElement(va,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===_u,color:"inherit",edge:"start",style:qe.menuButton,onClick:a=>{a.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},E.createElement(_S,{fontSize:"small"})))):null)}findItem(r,n){if(n=n||this.state.folders,!n)return null;const a=r.split("/");a.pop();const i=a.join("/")||"/";return n[i]&&n[i].find(o=>o.id===r)||null}renderInputDialog(){if(this.state.addFolder){const r=this.findFirstFolder(this.state.selected);return r?E.createElement(tke,{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:n=>this.state.folders[r].find(a=>a.name===n)?"":this.props.t("ra_Duplicate name"),onClose:n=>{if(n){const a={};Object.keys(this.state.folders).forEach(l=>a[l]=this.state.folders[l]);const i=this.findItem(r),o=`${r}/${n}`;a[r].push({id:o,level:((i==null?void 0:i.level)||0)+1,name:n,folder:!0,temp:!0}),a[r].sort(q9),a[o]=[];const s=[...this.state.expanded];s.includes(r)||(s.push(r),s.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(s)),this.setState({addFolder:!1,folders:a,expanded:s},()=>this.select(o))}else this.setState({addFolder:!1})},replace:n=>n.replace(/[^-_\w]/,"_")}):(window.alert(this.props.t("ra_Invalid parent folder!")),null)}return null}componentDidUpdate(){this.setOpacityTimer&&clearTimeout(this.setOpacityTimer),this.setOpacityTimer=setTimeout(()=>{this.setOpacityTimer=null;const r=window.document.getElementsByClassName("browserItem");for(let n=0;nthis.setState({uploadFile:!1})},E.createElement(rv,null)),E.createElement(KC,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:r=>{let n=r.length;r.forEach(a=>{const i=new FileReader;i.onabort=()=>console.log("file reading was aborted"),i.onerror=()=>console.log("file reading has failed"),i.onload=()=>{const o=this.findFirstFolder(this.state.selected);if(!o)window.alert(this.props.t("ra_Invalid parent folder!"));else{const s=`${o}/${a.name}`;this.uploadFile(s,i.result).then(()=>{--n||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const l=[...this.state.expanded];l.includes(o)||(l.push(o),l.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(l))),this.setState({expanded:l},()=>this.select(s))}else setTimeout(()=>this.browseFolder(o,null,!1,!0).then(l=>{const c=[...this.state.expanded];c.includes(o)||(c.push(o),c.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(c))),this.setState({folders:l,expanded:c},()=>this.select(s))}),500)})})}},i.readAsArrayBuffer(a)})}},({getRootProps:r,getInputProps:n})=>E.createElement("div",{style:{...qe.uploadDiv,...this.state.uploadFile==="dragging"?qe.uploadDivDragging:void 0},...r()},E.createElement("input",{...n()}),E.createElement(br,{component:"div",sx:qe.uploadCenterDiv},E.createElement("div",{style:qe.uploadCenterTextAndIcon},E.createElement(b6,{style:qe.uploadCenterIcon}),E.createElement("div",{style:qe.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(r){const n=this.findItem(r);if(n!=null&&n.folder)return(this.state.folders[r]?Promise.all(this.state.folders[r].map(o=>this.deleteRecursive(o.id))):Promise.resolve()).then(()=>{if(n.level>=1){const o=r.split("/"),s=o.shift();this.props.socket.deleteFolder(s||"",o.join("/")).then(()=>{const l=JSON.parse(JSON.stringify(this.state.folders));delete l[n.id];const c=Ap(n.id),d=l[c];if(d){const u=d.findIndex(f=>f.id===n.id);u!==-1&&d.splice(u,1),this.select(c,null,()=>this.setState({folders:l}))}})}});const a=r.split("/"),i=a.shift();return a.length?this.props.socket.deleteFile(i||"",a.join("/")).catch(o=>window.alert(`Cannot delete file: ${o}`)):Promise.resolve()}deleteItem(r){r=r||this.state.deleteItem,this.setState({deleteItem:""},()=>this.deleteRecursive(r).then(()=>{const n={},a=this.state.expanded.indexOf(r);if(a!==-1){const i=[...this.state.expanded];i.splice(a,1),this.localStorage.setItem("files.expanded",JSON.stringify(i)),n.expanded=i}if(this.state.selected===r){const i=this.state.selected.split("/");i.pop(),n.selected=i.join("/")}if(this.supportSubscribes)this.setState(n);else{const i=this.findFirstFolder(r),o={};Object.keys(this.state.folders).forEach(s=>{s!==i&&!s.startsWith(`${i}/`)&&(o[s]=this.state.folders[s])}),n.folders=o,this.setState(n,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],o).then(s=>this.setState({folders:s})).catch(s=>console.error(s))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?E.createElement(ms,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},E.createElement(_s,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),E.createElement(gs,null,E.createElement(RC,null,this.props.t("ra_Are you sure?"))),E.createElement(vs,null,E.createElement(Vr,{color:"grey",variant:"contained",onClick:()=>{this.suppressDeleteConfirm=Date.now()+6e4*5,this.deleteItem("")}},this.props.t("ra_Delete (no confirm for 5 mins)")),E.createElement(Vr,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),E.createElement(Vr,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){const r=this.props.FileViewer||kke;return this.state.viewer?E.createElement(r,{supportSubscribes:this.supportSubscribes,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile,themeType:this.props.themeType,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?E.createElement(eX,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(r){this.cacheFolders=this.cacheFolders||JSON.parse(JSON.stringify(this.state.folders));let n;r.forEach(a=>{const i=this.findItem(a.id,this.cacheFolders);i&&JSON.stringify(i.acl)!==JSON.stringify(a.acl)&&(i.acl=a.acl,n=!0)}),n&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const a=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:a})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let r=this.state.path;xO(this.state.path)&&(r=Ap(this.state.path)),new Promise(n=>{this.state.folders[r]?n(!0):this.browseFolder(r).then(a=>this.setState({folders:a},()=>n(!0))).catch(a=>this.setState({errorText:a===G9?this.props.t('ra_Cannot find "%s"',r):this.props.t('ra_Cannot read "%s"',r)}))}).then(n=>n&&this.setState({selected:this.state.path,currentDir:r,pathFocus:!1})).catch(n=>console.error(n))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const r=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),n=[];return E.createElement(upe,{style:{paddingLeft:8}},r.map((a,i)=>{a&&n.push(a);const o=n.join("/");return ithis.changeFolder(s,o||"/")},a||this.props.t("ra_Root")):E.createElement("div",{style:qe.pathDivBreadcrumbSelected,key:`${this.state.selected}_${i}`,onClick:()=>this.setState({pathFocus:!0})},a)}))}renderPath(){return E.createElement(br,{component:"div",key:"path",sx:qe.pathDiv},this.state.pathFocus?E.createElement(nl,{value:this.state.path,onKeyDown:r=>{r.key==="Enter"?this.changeToPath():r.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:E.createElement(va,{size:"small",onClick:()=>this.changeToPath()},E.createElement(y_e,null)),onBlur:()=>this.changeToPath(),onChange:r=>this.setState({path:r.target.value}),style:qe.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(r=>console.error(`Cannot load folders: ${r}`))})},300)),E.createElement("div",{style:{...qe.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===CO?this.renderPath():null,E.createElement("div",{style:{...qe.filesDiv,...qe[`filesDiv${this.state.viewType}`]},onClick:r=>{this.state.viewType!==gr&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(r,this.state.currentDir||"/"):r.stopPropagation())}},this.state.viewType===gr?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==gr?E.createElement("div",{style:qe.filesDivHint},this.props.t("ra_select_folder_hint")):null),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())):E.createElement(bL,null)}}const Eke=S0()(vN),Dke=t=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},E.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 Mke(t){const e=document.createElement("div");e.innerHTML=t;const r=e.firstElementChild;return r!=null&&r.remove?r.remove():r&&e.removeChild(r),e.remove(),r}function Oke(t){const e={};if(!t)return e;for(let r,n=0;ni[1].toUpperCase()),e[r]=t[n].value}return e}var ul;let a3t=(ul=class extends z.Component{constructor(r){var n;super(r);de(this,"svg");this.state={svg:!!((n=this.props.src)!=null&&n.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(r,n){var o;const a={};let i=!1;return r&&n&&r.src!==n.src&&(a.src=r.src,a.svg=(o=r.src)==null?void 0:o.startsWith("data:"),a.created=!1,i=!0),r&&n&&r.color!==n.color&&(a.color=r.color,a.created=!1,i=!0),r&&n&&r.showError!==n.showError&&(a.showError=r.showError,i=!0),i?a:null}getSvgFromData(r){const n="data:image/svg+xml;base64,";if(!r.startsWith(n))return null;r=r.substring(n.length);try{r=atob(r);const a=Mke(r),i=a.innerHTML,o=Oke(a.attributes);return a.remove(),E.createElement("svg",{className:this.props.className,style:this.state.color?{color:this.state.color}:{},...o,dangerouslySetInnerHTML:{__html:i}})}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 E.createElement(pN,{className:this.props.className});if(ul.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let r=(this.props.imagePrefix||"")+this.state.src;return r.startsWith("./")?r=ul.REMOTE_PREFIX+r.substring(2):r.startsWith("/")||(r=ul.REMOTE_PREFIX+r),E.createElement("img",{className:this.props.className,src:`https://remote-files.iobroker.in${r}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return E.createElement("img",{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}},de(ul,"REMOTE_SERVER",window.location.hostname.includes("iobroker.in")),de(ul,"REMOTE_PREFIX",window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1)),ul);class mJ extends E.Component{constructor(){super(...arguments);de(this,"handleFileSelect",r=>{const n=r.target,a=n==null?void 0:n.files;if(!a||!a.length){console.error("No files found. Please report to developers");return}const i=a[0];if(i){const o=new window.FileReader;o.onload=()=>{var l;const s=((l=o.result)==null?void 0:l.toString())||"";try{const c=JSON.parse(s);c.native&&c.common?c.common.name!==this.props.common.name?this.props.onError&&this.props.onError(te.t("ra_otherConfig",c.common.name)):this.props.onLoad&&this.props.onLoad(c.native):this.props.onError&&this.props.onError(te.t("ra_invalidConfig"))}catch(c){this.props.onError&&this.props.onError(c==null?void 0:c.toString())}},o.readAsText(i)}else alert("Failed to open JSON File")})}static generateFile(r,n){const a=window.document.createElement("a");a.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(n,null,2))}`),a.setAttribute("download",r),a.style.display="none",window.document.body.appendChild(a),a.click(),window.document.body.removeChild(a)}download(){const r={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};r.common.news&&delete r.common.news,r.common.titleLang&&delete r.common.titleLang,r.common.desc&&delete r.common.desc,mJ.generateFile(`${r._id}.json`,r)}upload(){const r=window.document.createElement("input");r.setAttribute("type","file"),r.setAttribute("id","files"),r.setAttribute("opacity","0"),r.addEventListener("change",this.handleFileSelect,!1),r.click()}render(){return E.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?E.createElement(mN,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?E.createElement(_c,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{const r=window.open(this.props.common.readme,"_blank");r==null||r.focus()}},E.createElement(g_e,null)):null,E.createElement(_c,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:te.t("ra_Load configuration from file"),onClick:()=>this.upload()},E.createElement($_e,null)),E.createElement(_c,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:te.t("ra_Save configuration to file"),onClick:()=>this.download()},E.createElement(O_e,null)))}}const $ke=t=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},E.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"})),Ake=t=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},E.createElement("g",{fill:"currentColor"},E.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),E.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),E.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),E.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),Pke=t=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},E.createElement("g",{fill:"currentColor"},E.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),E.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),E.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),E.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),E.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),E.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),E.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),E.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),E.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),E.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),Ike=t=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},E.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),E.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"}));E.createElement(Ike,{className:"itemIcon",style:{verticalAlign:"middle"}}),E.createElement(Ake,{className:"itemIcon",style:{verticalAlign:"middle"}}),E.createElement(Pke,{className:"itemIcon",style:{verticalAlign:"middle"}}),E.createElement($ke,{className:"itemIcon",style:{verticalAlign:"middle"}}),E.createElement(Kq,{className:"itemIcon",style:{verticalAlign:"middle"}}),E.createElement(Dke,{className:"itemIcon",style:{color:"#7da7ff",verticalAlign:"middle"}}),E.createElement(w_e,{className:"itemIcon",style:{verticalAlign:"middle"}}),E.createElement(D_e,{className:"itemIcon",style:{verticalAlign:"middle"}}),E.createElement(E_e,{className:"itemIcon",style:{verticalAlign:"middle"}}),E.createElement(M_e,{className:"itemIcon",style:{verticalAlign:"middle"}}),E.createElement(x_e,{className:"itemIcon",style:{verticalAlign:"middle"}}),E.createElement(T_e,{className:"itemIcon",style:{verticalAlign:"middle"}}),E.createElement(u_e,{className:"itemIcon",style:{verticalAlign:"middle"}}),E.createElement(CL,{className:"itemIcon",style:{verticalAlign:"middle"}}),E.createElement(EP,{className:"itemIcon itemIconFolder",style:{verticalAlign:"middle"}});const xe={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:t=>({background:t.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:t=>({background:t.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowDates:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#747a86"}),rowWeeks:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#717680"}),rowMonths:t=>({background:t.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:t=>({background:t.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:t=>({background:t.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDaysDows:t=>({background:t.palette.mode!=="dark"?"#EEEAFF":"#573544",pl:"10px",pb:"10px"}),rowDowsDows:t=>({background:t.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},TO=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],q1=["January","February","March","April","May","June","July","August","September","October","November","December"],kO={minutes:"minutes",hours:"hours"},Ug=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function Xl(t){return t<10?`0${t}`:`${t}`}const X9={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function EO(t){const e=t.split(".");return e.length===3?`${e[2]}-${e[1]}-${e[0]}`:""}class ea extends z.Component{constructor(r){super(r);de(this,"refFrom");de(this,"refTo");de(this,"refOnce");de(this,"timerOnce",null);de(this,"timerFrom",null);de(this,"timerTo",null);let n;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{n=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(n=this.props.schedule);(!n||!Object.keys(n).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),n=X9),n={...X9,...n},n.valid.from=n.valid.from||ea.now2string(),this.refFrom=E.createRef(),this.refTo=E.createRef(),this.refOnce=E.createRef(),this.state={schedule:n,desc:ea.state2text(n)},JSON.stringify(n)!==this.props.schedule&&setTimeout(()=>this.props.onChange&&this.props.onChange(JSON.stringify(n)),100)}onChange(r,n){const a=JSON.stringify(r)!==JSON.stringify(this.state.schedule);if(n||a){a&&this.setState({schedule:r,desc:ea.state2text(r)});const i=JSON.parse(JSON.stringify(r));if(i.period.once){const o=i.period.once;delete i.period,i.period={once:o},delete i.valid}else if(i.period.days){const o=i.period.days,s=i.period.dows;delete i.period,i.period={days:o},s&&s!=="[]"&&(i.period.dows=s)}else if(i.period.weeks){const o=i.period.weeks,s=i.period.dows;delete i.period,i.period={weeks:o},s&&s!=="[]"&&(i.period.dows=s)}else if(i.period.months){const o=i.period.months,s=i.period.dates;delete i.period,i.period={months:o},s&&s!=="[]"&&(i.period.dates=s)}else if(i.period.years){const o=i.period.years,s=i.period.yearMonth,l=i.period.yearDate;delete i.period,i.period={years:o,yearDate:l},s&&(i.period.yearMonth=s)}if(i.time.exactTime?(delete i.time.end,delete i.time.mode,delete i.time.interval):delete i.time.exactTime,i.valid){if(i.valid.to||delete i.valid.to,i.period.days===1||i.period.weeks===1||i.period.months===1||i.period.years===1){const o=ea.string2date(i.valid.from),s=new Date;s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0),o<=s&&delete i.valid.from}!i.valid.from&&!i.valid.to&&delete i.valid}this.props.onChange&&this.props.onChange(JSON.stringify(i),ea.state2text(r))}}static state2text(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{return""}const n=[],a=ea.string2date(r.valid.from);if(r.period.once){const i=ea.string2date(r.period.once),o=new Date;if(o.setMilliseconds(0),o.setSeconds(0),o.setMinutes(0),o.setHours(0),ite.t(TO[s]));if(o.length===1)n.push(te.t("sch_desc_onWeekday",o[0]));else if(o.length===7)n.push(te.t("sch_desc_everyDay"));else{const s=o.pop();n.push(te.t("sch_desc_onWeekdays",o.join(", "),s))}}}else n.push(te.t("sch_desc_everyDay"));else n.push(te.t("sch_desc_everyNDay",r.period.days.toString()));else if(r.period.weeks)if(r.period.weeks===1?n.push(te.t("sch_desc_everyWeek")):n.push(te.t("sch_desc_everyNWeeks",r.period.weeks.toString())),r.period.dows){const i=JSON.parse(r.period.dows);if(i.length===2&&i[0]===0&&i[1]===6)n.push(te.t("sch_desc_onWeekends"));else if(i.length===5&&i[0]===1&&i[1]===2&&i[2]===3&&i[3]===4&&i[4]===5)n.push(te.t("sch_desc_onWorkdays"));else{const o=i.map(s=>te.t(TO[s]));if(o.length===1)n.push(te.t("sch_desc_onWeekday",o[0]));else if(o.length===7)n.push(te.t("sch_desc_everyDay"));else{const s=o.pop();n.push(te.t("sch_desc_onWeekdays",o.join(", "),s))}}}else return te.t("sch_desc_never");else if(r.period.months){if(r.period.dates){const i=JSON.parse(r.period.dates);if(i.length===1)n.push(te.t("sch_desc_onDate",i[0]));else if(i.length===31)n.push(te.t("sch_desc_onEveryDate"));else if(i.length){const o=i.pop();n.push(te.t("sch_desc_onDates",i.join(", "),o))}else return te.t("sch_desc_never")}else n.push(te.t("sch_desc_onEveryDate"));if(r.period.months===1)n.push(te.t("sch_desc_everyMonth"));else if(typeof r.period.months=="number")n.push(te.t("sch_desc_everyNMonths",r.period.months.toString()));else{const o=JSON.parse(r.period.months).map(s=>te.t(q1[s-1]));if(!o.length)return te.t("sch_desc_never");if(o.length===1)n.push(te.t("sch_desc_onMonth",o[0]));else if(o.length===12)n.push(te.t("sch_desc_everyMonth"));else{const s=o.pop();n.push(te.t("sch_desc_onMonths",o.join(", "),s))}}}else r.period.years&&(r.period.years===1?n.push(te.t("sch_desc_everyYear")):n.push(te.t("sch_desc_everyNYears",r.period.years.toString())),n.push(te.t("sch_desc_onDate",r.period.yearDate.toString(),r.period.yearMonth?te.t(q1[r.period.yearMonth-1]):te.t("sch_desc_everyMonth"))));if(r.time.exactTime)Ug.includes(r.time.start)?n.push(te.t("sch_desc_atTime",te.t(`sch_astro_${r.time.start}`))):n.push(te.t("sch_desc_atTime",r.time.start));else{r.time.mode===kO.minutes?r.time.interval===1?n.push(te.t("sch_desc_everyMinute")):n.push(te.t("sch_desc_everyNMinutes",r.time.interval.toString())):r.time.interval===1?n.push(te.t("sch_desc_everyHour")):n.push(te.t("sch_desc_everyNHours",r.time.interval.toString()));const i=Ug.indexOf(r.time.start)!==-1?te.t(`sch_astro_${r.time.start}`):r.time.start,o=Ug.indexOf(r.time.end)!==-1?te.t(`sch_astro_${r.time.end}`):r.time.end;(i!=="00:00"||o!=="24:00"&&o!=="23:59")&&n.push(te.t("sch_desc_intervalFromTo",i,o))}return r.period.once||(a.getTime()>Date.now()&&r.valid.to?n.push(te.t("sch_desc_validFromTo",r.valid.from,r.valid.to)):a.getTime()>Date.now()?n.push(te.t("sch_desc_validFrom",r.valid.from)):r.valid.to&&n.push(te.t("sch_desc_validTo",r.valid.to))),n.join(" ")}getTimePeriodElements(){const r=this.state.schedule;let n=!1,a=!1,i=!1,o=!0;return r.time.start==="00:00"&&r.time.end==="24:00"?(n=!0,o=!1):r.time.start==="sunrise"?(a=!0,o=!1):r.time.start==="sunset"&&(i=!0,o=!1),E.createElement("div",{key:"timePeriod",style:xe.rowDiv},E.createElement("div",{style:xe.modeDiv},E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:!r.time.exactTime,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.exactTime=!1,this.onChange(s)}}),label:te.t("sch_intervalTime")})),E.createElement("div",{style:xe.settingsDiv},E.createElement("div",{style:xe.settingsDiv},!r.time.exactTime&&E.createElement("div",null,E.createElement("div",null,E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:!!o,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="00:00",s.time.end="23:59",this.onChange(s)}}),label:o?"":te.t("sch_fromTo")}),o&&[E.createElement(Sa,{variant:"standard",style:{...xe.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:s=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:s.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:s=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start=s.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:te.t("sch_from"),margin:"normal"}),E.createElement(Sa,{variant:"standard",style:xe.inputTime,key:"exactTimeTo",type:"time",sx:s=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:s.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:s=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.end=s.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:te.t("sch_to"),margin:"normal"})])),!r.time.exactTime&&E.createElement("div",null,E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:!!n,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="00:00",s.time.end="24:00",this.onChange(s)}}),label:te.t("sch_wholeDay")})),!r.time.exactTime&&E.createElement("div",null,E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:!!a,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="sunrise",s.time.end="sunset",this.onChange(s)}}),label:te.t("sch_astroDay")})),!r.time.exactTime&&E.createElement("div",null,E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:!!i,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="sunset",s.time.end="sunrise",this.onChange(s)}}),label:te.t("sch_astroNight")}))),!r.time.exactTime&&this.getPeriodSettingsMinutes(o)))}getTimeExactElements(){const r=Ug.includes(this.state.schedule.time.start);return E.createElement("div",{key:"timeExact",style:xe.rowDiv},E.createElement("div",{style:xe.modeDiv},E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.exactTime=!0,this.onChange(n)}}),label:te.t("sch_exactTime")})),this.state.schedule.time.exactTime&&E.createElement(ns,{variant:"standard",value:r?this.state.schedule.time.start:"00:00",onChange:n=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.time.start=n.target.value,this.onChange(a)}},E.createElement(tn,{key:"specific",value:"00:00"},te.t("sch_specificTime")),Ug.map(n=>E.createElement(tn,{key:n,value:n},te.t(`sch_astro_${n}`)))),this.state.schedule.time.exactTime&&!r&&E.createElement("div",{style:xe.settingsDiv},E.createElement(Sa,{variant:"standard",style:xe.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.time.start=n.target.value,this.onChange(a)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return E.createElement("hr",{style:xe.hr})}getPeriodModes(){const r=this.state.schedule,n=!r.period.dows&&!r.period.months&&!r.period.dates&&!r.period.years&&!r.period.days&&!r.period.weeks;return n&&!r.period.once&&(r.period.once=ea.now2string(!0)),[E.createElement("div",{key:"once",style:{...xe.rowDiv,...xe.rowOnce}},E.createElement("div",{style:xe.modeDiv},E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:!!n,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.once=a.period.once||ea.now2string(!0),a.period.dows="",a.period.months="",a.period.dates="",a.period.years=0,a.period.yearDate=0,a.period.yearMonth=0,a.period.weeks=0,a.period.days=0,this.onChange(a)}}),label:te.t("sch_periodOnce")})),n&&E.createElement("div",{style:xe.settingsDiv},E.createElement(Sa,{variant:"standard",style:xe.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:EO(r.period.once),onChange:a=>{this.timerOnce&&clearTimeout(this.timerOnce),this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(i=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),s=ea.string2date(i);s.toString()!=="Invalid Date"&&(o.period.once=`${Xl(s.getDate())}.${Xl(s.getMonth()+1)}.${s.getFullYear()}`,this.onChange(o))},1500,a.target.value)},slotProps:{inputLabel:{shrink:!0}},label:te.t("sch_at"),margin:"normal"}))),E.createElement(br,{component:"div",key:"days",sx:tr.getStyle(this.props.theme,xe.rowDiv,xe.rowDays)},E.createElement("div",{style:xe.modeDiv},E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:!!r.period.days,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.days=1,a.period.dows="",a.period.months="",a.period.dates="",a.period.years=0,a.period.yearDate=0,a.period.yearMonth=0,a.period.weeks=0,a.period.once="",this.onChange(a)}}),label:te.t("sch_periodDaily")})),E.createElement("div",{style:xe.settingsDiv},this.getPeriodSettingsDaily(),r.period.days?this.getPeriodSettingsWeekdays():null)),E.createElement(br,{component:"div",key:"weeks",sx:tr.getStyle(this.props.theme,xe.rowDiv,xe.rowDows)},E.createElement("div",{style:xe.modeDiv},E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:!!r.period.weeks,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.weeks=r.period.weeks?0:1,a.period.dows=r.period.dows||"[0]",a.period.months="",a.period.dates="",a.period.years=0,a.period.yearDate=0,a.period.yearMonth=0,a.period.days=0,a.period.once="",this.onChange(a)}}),label:te.t("sch_periodWeekly")})),E.createElement(br,{component:"div",style:xe.settingsDiv},E.createElement("div",{style:xe.settingsDiv},this.getPeriodSettingsWeekly()),E.createElement(br,{component:"div",sx:tr.getStyle(this.props.theme,xe.settingsDiv,xe.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),E.createElement(br,{component:"div",key:"months",sx:tr.getStyle(this.props.theme,xe.rowDiv,xe.rowMonths)},E.createElement("div",{style:xe.modeDiv},E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:!!r.period.months,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=1,a.period.dows="",a.period.dates="",a.period.years=0,a.period.yearDate=0,a.period.yearMonth=0,a.period.weeks=0,a.period.days=0,a.period.once="",this.onChange(a)}}),label:te.t("sch_periodMonthly")})),E.createElement("div",{style:xe.settingsDiv},this.getPeriodSettingsMonthly(),r.period.months?E.createElement(br,null,E.createElement(br,{component:"div",sx:tr.getStyle(this.props.theme,xe.settingsDiv,xe.rowMonthsDates)},E.createElement(Xt,{control:E.createElement(Un,{style:xe.inputRadio,checked:!!r.period.dates,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=a.period.months||1;const i=[];for(let o=1;o<=31;o++)i.push(o);a.period.dates=a.period.dates||JSON.stringify(i),a.period.dows="",a.period.years=0,a.period.yearDate=0,a.period.yearMonth=0,a.period.weeks=0,a.period.days=0,a.period.once="",this.onChange(a)}}),label:te.t("sch_periodDates")})),E.createElement(br,{component:"div",sx:tr.getStyle(this.props.theme,xe.settingsDiv,xe.rowMonthsDates)},this.getPeriodSettingsDates())):null)),E.createElement(br,{component:"div",key:"years",sx:tr.getStyle(this.props.theme,xe.rowDiv,xe.rowYears)},E.createElement("div",{style:xe.modeDiv},E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:!!r.period.years,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.years=1,a.period.yearDate=1,a.period.yearMonth=1,a.period.dows="",a.period.months=0,a.period.dates="",a.period.weeks=0,a.period.days=0,a.period.once="",this.onChange(a)}}),label:te.t("sch_periodYearly")})),E.createElement("div",{style:xe.settingsDiv},E.createElement("div",{style:xe.settingsDiv},this.getPeriodSettingsYearly()),!!r.period.years&&E.createElement("div",{style:xe.settingsDiv},E.createElement("span",null,te.t("sch_on")),E.createElement(nl,{key:"input",value:this.state.schedule.period.yearDate,style:xe.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:a=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.period.yearDate=parseInt(a.target.value,10),i.period.yearDate<1&&(i.period.yearDate=31),i.period.yearDate>31&&(i.period.yearDate=1),this.onChange(i)}}),E.createElement(ns,{variant:"standard",value:r.period.yearMonth,onChange:a=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.period.yearMonth=a.target.value,this.onChange(i)}},E.createElement(tn,{key:"every",value:0},te.t("sch_yearEveryMonth")),q1.map((a,i)=>E.createElement(tn,{key:a,value:i+1},te.t(a)))))))]}getPeriodSettingsMinutes(r){return E.createElement("div",{style:{display:"inline-block",marginTop:r?15:"inherit"}},E.createElement("label",{style:{marginLeft:4,marginRight:4}},te.t("sch_every")),E.createElement(nl,{value:this.state.schedule.time.interval,style:{...xe.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:n=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.time.interval=parseInt(n.target.value,10),this.onChange(a)}}),E.createElement(ns,{variant:"standard",value:this.state.schedule.time.mode,onChange:n=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.time.mode=n.target.value,this.onChange(a)}},E.createElement(tn,{value:kO.minutes},te.t("sch_periodMinutes")),E.createElement(tn,{value:kO.hours},te.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const r=this.state.schedule,n=r.period.dows&&r.period.dows!=="[1, 2, 3, 4, 5]"&&r.period.dows!=="[0, 6]";return[E.createElement("div",{key:"workdays"},E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:r.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.dows="[1, 2, 3, 4, 5]",a.period.days&&(a.period.days=1),this.onChange(a)}}),label:te.t("sch_periodWorkdays")})),E.createElement("div",{key:"weekend"},E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:r.period.dows==="[0, 6]",onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.dows="[0, 6]",a.period.days&&(a.period.days=1),this.onChange(a)}}),label:te.t("sch_periodWeekend")})),E.createElement("div",{key:"specific",style:{verticalAlign:"top"}},E.createElement(Xt,{style:{verticalAlign:"top"},control:E.createElement(Yr,{style:xe.inputRadio,checked:!!n,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.dows="[0, 1, 2, 3, 4, 5, 6]",a.period.days&&(a.period.days=1),this.onChange(a)}}),label:te.t("sch_periodWeekdays")}),n&&(r.period.days===1||r.period.weeks)&&E.createElement(aE,{row:!0,style:{...xe.inputGroup,width:150}},[1,2,3,4,5,6,0].map(a=>E.createElement(Xt,{key:`specific_${a}`,style:xe.inputGroupElement,control:E.createElement(Un,{style:xe.inputSmallCheck,checked:r.period.dows.includes(a.toString()),onChange:i=>{const o=JSON.parse(JSON.stringify(this.state.schedule));let s;try{s=JSON.parse(o.period.dows)}catch{s=[]}i.target.checked&&!s.includes(a)?s.push(a):!i.target.checked&&s.includes(a)&&s.splice(s.indexOf(a),1),s.sort((l,c)=>l-c),o.period.dows=JSON.stringify(s),o.period.days&&(o.period.days=1),this.onChange(o)}}),label:te.t(TO[a])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const r=this.state.schedule;return[E.createElement("div",{key:"every_day"},E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:r.period.days===1&&!r.period.dows,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=1,n.period.dows="",this.onChange(n)}}),label:te.t("sch_periodEveryDay")})),E.createElement("div",{key:"everyN_day"},E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:r.period.days>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=2,n.period.dows="",this.onChange(n)}}),label:te.t("sch_periodEvery")}),r.period.days>1&&[E.createElement(nl,{key:"input",value:this.state.schedule.period.days,style:xe.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.days=parseInt(n.target.value,10),a.period.dows="",this.onChange(a)}}),E.createElement("span",{key:"span",style:{paddingRight:10}},te.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const r=this.state.schedule;return[E.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},E.createElement("div",null,E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:r.period.weeks===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=1,this.onChange(n)}}),label:te.t("sch_periodEveryWeek")})),E.createElement("div",null,E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:r.period.weeks>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=2,this.onChange(n)}}),label:te.t("sch_periodEvery")}),r.period.weeks>1&&[E.createElement(nl,{key:"input",value:this.state.schedule.period.weeks,style:xe.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.weeks=parseInt(n.target.value,10),this.onChange(a)}}),E.createElement("span",{key:"text"},te.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const r=this.state.schedule,n=[];for(let i=1;i<=31;i++)n.push(i);const a=JSON.parse(r.period.dates);return E.createElement(aE,{row:!0,style:{...xe.inputGroup,maxWidth:620}},E.createElement(Xt,{style:xe.inputDateDay,control:E.createElement(Un,{style:xe.inputDateDayCheck,checked:a.length===31,onChange:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule)),o=[];for(let s=1;s<=31;s++)o.push(s);i.period.dates=JSON.stringify(o),this.onChange(i)}}),label:te.t("sch_all")}),E.createElement(Xt,{style:xe.inputDateDay,control:E.createElement(Un,{style:xe.inputDateDayCheck,checked:!a.length,onChange:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.period.dates="[]",this.onChange(i)}}),label:te.t("sch_no_one")}),a.length!==31&&!!a.length&&E.createElement(Xt,{style:xe.inputDateDay,control:E.createElement(Un,{style:xe.inputDateDayCheck,checked:!1,onChange:()=>{const i=JSON.parse(JSON.stringify(this.state.schedule)),o=[],s=JSON.parse(i.period.dates);for(let l=1;l<=31;l++)s.includes(l)||o.push(l);o.sort((l,c)=>l-c),i.period.dates=JSON.stringify(o),this.onChange(i)}}),label:te.t("sch_invert")}),E.createElement("div",null),n.map(i=>E.createElement(Xt,{key:`date_${i}`,style:i?xe.inputDateDay:{...xe.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:E.createElement(Un,{style:xe.inputDateDayCheck,checked:JSON.parse(r.period.dates).includes(i),onChange:o=>{const s=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(s.period.dates)}catch{l=[]}o.target.checked&&!l.includes(i)?l.push(i):!o.target.checked&&l.includes(i)&&l.splice(l.indexOf(i),1),l.sort((c,d)=>c-d),s.period.dates=JSON.stringify(l),this.onChange(s)}}),label:i<10?[E.createElement("span",{key:"0",style:{opacity:0}},"0"),E.createElement("span",{key:"num"},i)]:i})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const r=this.state.schedule,n=typeof r.period.months=="string"?JSON.parse(r.period.months):[];return[E.createElement("div",{key:"every"},E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:typeof r.period.months=="number"&&r.period.months===1,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=1,this.onChange(r)}}),label:te.t("sch_periodEveryMonth")})),E.createElement("div",{key:"everyN"},E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:typeof r.period.months=="number"&&r.period.months>1,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=2,this.onChange(a)}}),label:te.t("sch_periodEvery")}),typeof r.period.months=="number"&&r.period.months>1&&[E.createElement(nl,{key:"input",value:r.period.months,style:xe.inputEvery,type:"number",inputProps:{min:2},onChange:a=>{const i=JSON.parse(JSON.stringify(this.state.schedule));i.period.months=parseInt(a.target.value,10),i.period.months<1&&(i.period.months=1),this.onChange(i)}}),E.createElement("span",{key:"text"},te.t("sch_periodMonth"))]),E.createElement("div",{key:"specific",style:{verticalAlign:"top"}},E.createElement(Xt,{style:{verticalAlign:"top"},control:E.createElement(Yr,{style:xe.inputRadio,checked:typeof r.period.months=="string",onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(a)}}),label:te.t("sch_periodSpecificMonths")}),typeof r.period.months=="string"&&E.createElement(aE,{row:!0,style:xe.inputGroup},E.createElement(Xt,{style:xe.inputDateDay,control:E.createElement(Un,{style:xe.inputDateDayCheck,checked:n.length===12,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),i=[];for(let o=1;o<=12;o++)i.push(o);a.period.months=JSON.stringify(i),this.onChange(a)}}),label:te.t("sch_all")}),E.createElement(Xt,{style:xe.inputDateDay,control:E.createElement(Un,{style:xe.inputDateDayCheck,checked:!n.length,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months="[]",this.onChange(a)}}),label:te.t("sch_no_one")}),n.length!==12&&!!n.length&&E.createElement(Xt,{style:xe.inputDateDay,control:E.createElement(Un,{style:xe.inputDateDayCheck,checked:!1,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),i=[],o=JSON.parse(a.period.months);for(let s=1;s<=12;s++)o.includes(s)||i.push(s);i.sort((s,l)=>s-l),a.period.months=JSON.stringify(i),this.onChange(a)}}),label:te.t("sch_invert")}),E.createElement("div",null),q1.map((a,i)=>E.createElement(Xt,{key:`month_${i}`,style:xe.inputGroupElement,control:E.createElement(Un,{style:xe.inputSmallCheck,checked:typeof r.period.months=="string"?JSON.parse(r.period.months).includes(i+1):r.period.months===i,onChange:o=>{const s=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(s.period.months)}catch{l=[]}o.target.checked&&!l.includes(i+1)?l.push(i+1):!o.target.checked&&l.includes(i+1)&&l.splice(l.indexOf(i+1),1),l.sort((c,d)=>c-d),s.period.months=JSON.stringify(l),this.onChange(s)}}),label:te.t(a)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const r=this.state.schedule;return[E.createElement("div",{key:"year"},E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:r.period.years===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=1,this.onChange(n)}}),label:te.t("sch_periodEveryYear")})),E.createElement("div",{key:"every"},E.createElement(Xt,{control:E.createElement(Yr,{style:xe.inputRadio,checked:r.period.years>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=2,this.onChange(n)}}),label:te.t("sch_periodEvery")}),r.period.years>1&&[E.createElement(nl,{key:"input",value:this.state.schedule.period.years,style:xe.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.years=parseInt(n.target.value,10),a.period.years<1&&(a.period.years=1),this.onChange(a)}}),E.createElement("span",{key:"text"},te.t("sch_periodYear"))])]}static now2string(r){const n=new Date;return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),r&&(n.setDate(n.getDate()+2),n.setMilliseconds(n.getMilliseconds()-1)),`${Xl(n.getDate())}.${Xl(n.getMonth()+1)}.${Xl(n.getFullYear())}`}static string2date(r){let n=r.split(".");return n.length===1?(n=r.split("-"),new Date(parseInt(n[0],10),parseInt(n[1],10)-1,parseInt(n[2],10))):new Date(parseInt(n[2],10),parseInt(n[1],10)-1,parseInt(n[0],10))}getValidSettings(){const r=this.state.schedule;return E.createElement("div",{style:xe.rowDiv},E.createElement("div",{style:{...xe.modeDiv,verticalAlign:"middle"}},E.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},te.t("sch_valid")),E.createElement("span",null,te.t("sch_validFrom"))),E.createElement("div",{style:xe.settingsDiv},E.createElement(Sa,{variant:"standard",style:{...xe.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:EO(r.valid.from),type:"date",onChange:n=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(a=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const i=JSON.parse(JSON.stringify(this.state.schedule)),o=ea.string2date(a);o.toString()!=="Invalid Date"&&(i.valid.from=`${Xl(o.getDate())}.${Xl(o.getMonth()+1)}.${o.getFullYear()}`,this.onChange(i))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),E.createElement(Xt,{control:E.createElement(Un,{style:xe.inputRadio,checked:!!r.valid.to,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.valid.to=n.valid.to?"":ea.now2string(!0),this.onChange(n)}}),label:te.t("sch_validTo")}),!!r.valid.to&&E.createElement(Sa,{variant:"standard",inputRef:this.refTo,style:{...xe.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:EO(r.valid.to),onChange:n=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(a=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const i=JSON.parse(JSON.stringify(this.state.schedule)),o=ea.string2date(a);o.toString()!=="Invalid Date"&&(i.valid.to=`${Xl(o.getDate())}.${Xl(o.getMonth()+1)}.${o.getFullYear()}`,this.onChange(i))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return E.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},E.createElement("div",null,this.state.desc),E.createElement("div",{style:xe.scrollWindow},E.createElement("h5",null,te.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),ea.getDivider(),E.createElement("h5",null,te.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&ea.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}/*! - * Cropper.js v1.6.2 - * https://fengyuanchen.github.io/cropperjs - * - * Copyright 2015-present Chen Fengyuan - * Released under the MIT license - * - * Date: 2024-04-21T07:43:05.335Z - */function J9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function vJ(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r
',Kke=Number.isNaN||yl.isNaN;function ir(t){return typeof t=="number"&&!Kke(t)}var c7=function(e){return e>0&&e<1/0};function DO(t){return typeof t>"u"}function ch(t){return DP(t)==="object"&&t!==null}var Qke=Object.prototype.hasOwnProperty;function xm(t){if(!ch(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&Qke.call(r,"isPrototypeOf")}catch{return!1}}function ni(t){return typeof t=="function"}var e2e=Array.prototype.slice;function kJ(t){return Array.from?Array.from(t):e2e.call(t)}function Dn(t,e){return t&&ni(e)&&(Array.isArray(t)||ir(t.length)?kJ(t).forEach(function(r,n){e.call(t,r,n,t)}):ch(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var nn=Object.assign||function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a0&&n.forEach(function(i){ch(i)&&Object.keys(i).forEach(function(o){e[o]=i[o]})}),e},t2e=/\.\d*(?:0|9){12}\d*$/;function Pm(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return t2e.test(t)?Math.round(t*e)/e:t}var r2e=/^width|height|left|top|marginLeft|marginTop$/;function Lu(t,e){var r=t.style;Dn(e,function(n,a){r2e.test(a)&&ir(n)&&(n="".concat(n,"px")),r[a]=n})}function n2e(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function Vn(t,e){if(e){if(ir(t.length)){Dn(t,function(n){Vn(n,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?r.indexOf(e)<0&&(t.className="".concat(r," ").concat(e)):t.className=e}}function ml(t,e){if(e){if(ir(t.length)){Dn(t,function(r){ml(r,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function Cm(t,e,r){if(e){if(ir(t.length)){Dn(t,function(n){Cm(n,e,r)});return}r?Vn(t,e):ml(t,e)}}var a2e=/([a-z\d])([A-Z])/g;function wN(t){return t.replace(a2e,"$1-$2").toLowerCase()}function NP(t,e){return ch(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(wN(e)))}function Oy(t,e,r){ch(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(wN(e)),r)}function i2e(t,e){if(ch(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(wN(e)))}var EJ=/\s\s*/,DJ=function(){var t=!1;if(QC){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(i){e=i}});yl.addEventListener("test",r,n),yl.removeEventListener("test",r,n)}return t}();function qo(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r;e.trim().split(EJ).forEach(function(i){if(!DJ){var o=t.listeners;o&&o[i]&&o[i][r]&&(a=o[i][r],delete o[i][r],Object.keys(o[i]).length===0&&delete o[i],Object.keys(o).length===0&&delete t.listeners)}t.removeEventListener(i,a,n)})}function ro(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r;e.trim().split(EJ).forEach(function(i){if(n.once&&!DJ){var o=t.listeners,s=o===void 0?{}:o;a=function(){delete s[i][r],t.removeEventListener(i,a,n);for(var c=arguments.length,d=new Array(c),u=0;uMath.abs(r)&&(r=f)})}),r}function J1(t,e){var r=t.pageX,n=t.pageY,a={endX:r,endY:n};return e?a:vJ({startX:r,startY:n},a)}function l2e(t){var e=0,r=0,n=0;return Dn(t,function(a){var i=a.startX,o=a.startY;e+=i,r+=o,n+=1}),e/=n,r/=n,{pageX:e,pageY:r}}function Nu(t){var e=t.aspectRatio,r=t.height,n=t.width,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",i=c7(n),o=c7(r);if(i&&o){var s=r*e;a==="contain"&&s>n||a==="cover"&&s90?{width:l,height:s}:{width:s,height:l}}function u2e(t,e,r,n){var a=e.aspectRatio,i=e.naturalWidth,o=e.naturalHeight,s=e.rotate,l=s===void 0?0:s,c=e.scaleX,d=c===void 0?1:c,u=e.scaleY,f=u===void 0?1:u,p=r.aspectRatio,v=r.naturalWidth,g=r.naturalHeight,_=n.fillColor,b=_===void 0?"transparent":_,w=n.imageSmoothingEnabled,x=w===void 0?!0:w,C=n.imageSmoothingQuality,M=C===void 0?"low":C,k=n.maxWidth,O=k===void 0?1/0:k,R=n.maxHeight,L=R===void 0?1/0:R,$=n.minWidth,N=$===void 0?0:$,W=n.minHeight,j=W===void 0?0:W,Y=document.createElement("canvas"),V=Y.getContext("2d"),J=Nu({aspectRatio:p,width:O,height:L}),ie=Nu({aspectRatio:p,width:N,height:j},"cover"),K=Math.min(J.width,Math.max(ie.width,v)),Q=Math.min(J.height,Math.max(ie.height,g)),oe=Nu({aspectRatio:a,width:O,height:L}),H=Nu({aspectRatio:a,width:N,height:j},"cover"),X=Math.min(oe.width,Math.max(H.width,i)),ae=Math.min(oe.height,Math.max(H.height,o)),re=[-X/2,-ae/2,X,ae];return Y.width=Pm(K),Y.height=Pm(Q),V.fillStyle=b,V.fillRect(0,0,K,Q),V.save(),V.translate(K/2,Q/2),V.rotate(l*Math.PI/180),V.scale(d,f),V.imageSmoothingEnabled=x,V.imageSmoothingQuality=M,V.drawImage.apply(V,[t].concat(_J(re.map(function(le){return Math.floor(Pm(le))})))),V.restore(),Y}var OJ=String.fromCharCode;function d2e(t,e,r){var n="";r+=e;for(var a=e;a0;)r.push(OJ.apply(null,kJ(a.subarray(0,n)))),a=a.subarray(n);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}function m2e(t){var e=new DataView(t),r;try{var n,a,i;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var o=e.byteLength,s=2;s+1=8&&(i=c+u)}}}if(i){var f=e.getUint16(i,n),p,v;for(v=0;v=0?i:CJ),height:Math.max(n.offsetHeight,o>=0?o:TJ)};this.containerData=s,Lu(a,{width:s.width,height:s.height}),Vn(e,ai),ml(a,ai)},initCanvas:function(){var e=this.containerData,r=this.imageData,n=this.options.viewMode,a=Math.abs(r.rotate)%180===90,i=a?r.naturalHeight:r.naturalWidth,o=a?r.naturalWidth:r.naturalHeight,s=i/o,l=e.width,c=e.height;e.height*s>e.width?n===3?l=e.height*s:c=e.width/s:n===3?c=e.width/s:l=e.height*s;var d={aspectRatio:s,naturalWidth:i,naturalHeight:o,width:l,height:c};this.canvasData=d,this.limited=n===1||n===2,this.limitCanvas(!0,!0),d.width=Math.min(Math.max(d.width,d.minWidth),d.maxWidth),d.height=Math.min(Math.max(d.height,d.minHeight),d.maxHeight),d.left=(e.width-d.width)/2,d.top=(e.height-d.height)/2,d.oldLeft=d.left,d.oldTop=d.top,this.initialCanvasData=nn({},d)},limitCanvas:function(e,r){var n=this.options,a=this.containerData,i=this.canvasData,o=this.cropBoxData,s=n.viewMode,l=i.aspectRatio,c=this.cropped&&o;if(e){var d=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;s>1?(d=Math.max(d,a.width),u=Math.max(u,a.height),s===3&&(u*l>d?d=u*l:u=d/l)):s>0&&(d?d=Math.max(d,c?o.width:0):u?u=Math.max(u,c?o.height:0):c&&(d=o.width,u=o.height,u*l>d?d=u*l:u=d/l));var f=Nu({aspectRatio:l,width:d,height:u});d=f.width,u=f.height,i.minWidth=d,i.minHeight=u,i.maxWidth=1/0,i.maxHeight=1/0}if(r)if(s>(c?0:1)){var p=a.width-i.width,v=a.height-i.height;i.minLeft=Math.min(0,p),i.minTop=Math.min(0,v),i.maxLeft=Math.max(0,p),i.maxTop=Math.max(0,v),c&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,s===2&&(i.width>=a.width&&(i.minLeft=Math.min(0,p),i.maxLeft=Math.max(0,p)),i.height>=a.height&&(i.minTop=Math.min(0,v),i.maxTop=Math.max(0,v))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=a.width,i.maxTop=a.height},renderCanvas:function(e,r){var n=this.canvasData,a=this.imageData;if(r){var i=c2e({width:a.naturalWidth*Math.abs(a.scaleX||1),height:a.naturalHeight*Math.abs(a.scaleY||1),degree:a.rotate||0}),o=i.width,s=i.height,l=n.width*(o/n.naturalWidth),c=n.height*(s/n.naturalHeight);n.left-=(l-n.width)/2,n.top-=(c-n.height)/2,n.width=l,n.height=c,n.aspectRatio=o/s,n.naturalWidth=o,n.naturalHeight=s,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heightr.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*a),i.height=Math.max(i.minHeight,i.height*a),i.left=r.left+(r.width-i.width)/2,i.top=r.top+(r.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=nn({},i)},limitCropBox:function(e,r){var n=this.options,a=this.containerData,i=this.canvasData,o=this.cropBoxData,s=this.limited,l=n.aspectRatio;if(e){var c=Number(n.minCropBoxWidth)||0,d=Number(n.minCropBoxHeight)||0,u=s?Math.min(a.width,i.width,i.width+i.left,a.width-i.left):a.width,f=s?Math.min(a.height,i.height,i.height+i.top,a.height-i.top):a.height;c=Math.min(c,a.width),d=Math.min(d,a.height),l&&(c&&d?d*l>c?d=c/l:c=d*l:c?d=c/l:d&&(c=d*l),f*l>u?f=u/l:u=f*l),o.minWidth=Math.min(c,u),o.minHeight=Math.min(d,f),o.maxWidth=u,o.maxHeight=f}r&&(s?(o.minLeft=Math.max(0,i.left),o.minTop=Math.max(0,i.top),o.maxLeft=Math.min(a.width,i.left+i.width)-o.width,o.maxTop=Math.min(a.height,i.top+i.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=a.width-o.width,o.maxTop=a.height-o.height))},renderCropBox:function(){var e=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=r.width&&n.height>=r.height?bJ:yN),Lu(this.cropBox,nn({width:n.width,height:n.height},ny({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Im(this.element,AP,this.getData())}},_2e={initPreview:function(){var e=this.element,r=this.crossOrigin,n=this.options.preview,a=r?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",o=document.createElement("img");if(r&&(o.crossOrigin=r),o.src=a,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,!!n){var s=n;typeof n=="string"?s=e.ownerDocument.querySelectorAll(n):n.querySelector&&(s=[n]),this.previews=s,Dn(s,function(l){var c=document.createElement("img");Oy(l,X1,{width:l.offsetWidth,height:l.offsetHeight,html:l.innerHTML}),r&&(c.crossOrigin=r),c.src=a,c.alt=i,c.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;"',l.innerHTML="",l.appendChild(c)})}},resetPreview:function(){Dn(this.previews,function(e){var r=NP(e,X1);Lu(e,{width:r.width,height:r.height}),e.innerHTML=r.html,i2e(e,X1)})},preview:function(){var e=this.imageData,r=this.canvasData,n=this.cropBoxData,a=n.width,i=n.height,o=e.width,s=e.height,l=n.left-r.left-e.left,c=n.top-r.top-e.top;!this.cropped||this.disabled||(Lu(this.viewBoxImage,nn({width:o,height:s},ny(nn({translateX:-l,translateY:-c},e)))),Dn(this.previews,function(d){var u=NP(d,X1),f=u.width,p=u.height,v=f,g=p,_=1;a&&(_=f/a,g=i*_),i&&g>p&&(_=p/i,v=a*_,g=p),Lu(d,{width:v,height:g}),Lu(d.getElementsByTagName("img")[0],nn({width:o*_,height:s*_},ny(nn({translateX:-l*_,translateY:-c*_},e))))}))}},y2e={bind:function(){var e=this.element,r=this.options,n=this.cropper;ni(r.cropstart)&&ro(e,RP,r.cropstart),ni(r.cropmove)&&ro(e,IP,r.cropmove),ni(r.cropend)&&ro(e,PP,r.cropend),ni(r.crop)&&ro(e,AP,r.crop),ni(r.zoom)&&ro(e,LP,r.zoom),ro(n,t7,this.onCropStart=this.cropStart.bind(this)),r.zoomable&&r.zoomOnWheel&&ro(n,o7,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&ro(n,e7,this.onDblclick=this.dblclick.bind(this)),ro(e.ownerDocument,r7,this.onCropMove=this.cropMove.bind(this)),ro(e.ownerDocument,n7,this.onCropEnd=this.cropEnd.bind(this)),r.responsive&&ro(window,i7,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,r=this.options,n=this.cropper;ni(r.cropstart)&&qo(e,RP,r.cropstart),ni(r.cropmove)&&qo(e,IP,r.cropmove),ni(r.cropend)&&qo(e,PP,r.cropend),ni(r.crop)&&qo(e,AP,r.crop),ni(r.zoom)&&qo(e,LP,r.zoom),qo(n,t7,this.onCropStart),r.zoomable&&r.zoomOnWheel&&qo(n,o7,this.onWheel,{passive:!1,capture:!0}),r.toggleDragModeOnDblclick&&qo(n,e7,this.onDblclick),qo(e.ownerDocument,r7,this.onCropMove),qo(e.ownerDocument,n7,this.onCropEnd),r.responsive&&qo(window,i7,this.onResize)}},b2e={resize:function(){if(!this.disabled){var e=this.options,r=this.container,n=this.containerData,a=r.offsetWidth/n.width,i=r.offsetHeight/n.height,o=Math.abs(a-1)>Math.abs(i-1)?a:i;if(o!==1){var s,l;e.restore&&(s=this.getCanvasData(),l=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(Dn(s,function(c,d){s[d]=c*o})),this.setCropBoxData(Dn(l,function(c,d){l[d]=c*o})))}}},dblclick:function(){this.disabled||this.options.dragMode===xJ||this.setDragMode(n2e(this.dragBox,OP)?SJ:bN)},wheel:function(e){var r=this,n=Number(this.options.wheelZoomRatio)||.1,a=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50),e.deltaY?a=e.deltaY>0?1:-1:e.wheelDelta?a=-e.wheelDelta/120:e.detail&&(a=e.detail>0?1:-1),this.zoom(-a*n,e)))},cropStart:function(e){var r=e.buttons,n=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(ir(r)&&r!==1||ir(n)&&n!==0||e.ctrlKey))){var a=this.options,i=this.pointers,o;e.changedTouches?Dn(e.changedTouches,function(s){i[s.identifier]=J1(s)}):i[e.pointerId||0]=J1(e),Object.keys(i).length>1&&a.zoomable&&a.zoomOnTouch?o=wJ:o=NP(e.target,My),Gke.test(o)&&Im(this.element,RP,{originalEvent:e,action:o})!==!1&&(e.preventDefault(),this.action=o,this.cropping=!1,o===yJ&&(this.cropping=!0,Vn(this.dragBox,dx)))}},cropMove:function(e){var r=this.action;if(!(this.disabled||!r)){var n=this.pointers;e.preventDefault(),Im(this.element,IP,{originalEvent:e,action:r})!==!1&&(e.changedTouches?Dn(e.changedTouches,function(a){nn(n[a.identifier]||{},J1(a,!0))}):nn(n[e.pointerId||0]||{},J1(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var r=this.action,n=this.pointers;e.changedTouches?Dn(e.changedTouches,function(a){delete n[a.identifier]}):delete n[e.pointerId||0],r&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Cm(this.dragBox,dx,this.cropped&&this.options.modal)),Im(this.element,PP,{originalEvent:e,action:r}))}}},w2e={change:function(e){var r=this.options,n=this.canvasData,a=this.containerData,i=this.cropBoxData,o=this.pointers,s=this.action,l=r.aspectRatio,c=i.left,d=i.top,u=i.width,f=i.height,p=c+u,v=d+f,g=0,_=0,b=a.width,w=a.height,x=!0,C;!l&&e.shiftKey&&(l=u&&f?u/f:1),this.limited&&(g=i.minLeft,_=i.minTop,b=g+Math.min(a.width,n.width,n.left+n.width),w=_+Math.min(a.height,n.height,n.top+n.height));var M=o[Object.keys(o)[0]],k={x:M.endX-M.startX,y:M.endY-M.startY},O=function(L){switch(L){case ef:p+k.x>b&&(k.x=b-p);break;case tf:c+k.xw&&(k.y=w-v);break}};switch(s){case yN:c+=k.x,d+=k.y;break;case ef:if(k.x>=0&&(p>=b||l&&(d<=_||v>=w))){x=!1;break}O(ef),u+=k.x,u<0&&(s=tf,u=-u,c-=u),l&&(f=u/l,d+=(i.height-f)/2);break;case yu:if(k.y<=0&&(d<=_||l&&(c<=g||p>=b))){x=!1;break}O(yu),f-=k.y,d+=k.y,f<0&&(s=Pp,f=-f,d-=f),l&&(u=f*l,c+=(i.width-u)/2);break;case tf:if(k.x<=0&&(c<=g||l&&(d<=_||v>=w))){x=!1;break}O(tf),u-=k.x,c+=k.x,u<0&&(s=ef,u=-u,c-=u),l&&(f=u/l,d+=(i.height-f)/2);break;case Pp:if(k.y>=0&&(v>=w||l&&(c<=g||p>=b))){x=!1;break}O(Pp),f+=k.y,f<0&&(s=yu,f=-f,d-=f),l&&(u=f*l,c+=(i.width-u)/2);break;case Yg:if(l){if(k.y<=0&&(d<=_||p>=b)){x=!1;break}O(yu),f-=k.y,d+=k.y,u=f*l}else O(yu),O(ef),k.x>=0?p_&&(f-=k.y,d+=k.y):(f-=k.y,d+=k.y);u<0&&f<0?(s=qg,f=-f,u=-u,d-=f,c-=u):u<0?(s=Vg,u=-u,c-=u):f<0&&(s=Gg,f=-f,d-=f);break;case Vg:if(l){if(k.y<=0&&(d<=_||c<=g)){x=!1;break}O(yu),f-=k.y,d+=k.y,u=f*l,c+=i.width-u}else O(yu),O(tf),k.x<=0?c>g?(u-=k.x,c+=k.x):k.y<=0&&d<=_&&(x=!1):(u-=k.x,c+=k.x),k.y<=0?d>_&&(f-=k.y,d+=k.y):(f-=k.y,d+=k.y);u<0&&f<0?(s=Gg,f=-f,u=-u,d-=f,c-=u):u<0?(s=Yg,u=-u,c-=u):f<0&&(s=qg,f=-f,d-=f);break;case qg:if(l){if(k.x<=0&&(c<=g||v>=w)){x=!1;break}O(tf),u-=k.x,c+=k.x,f=u/l}else O(Pp),O(tf),k.x<=0?c>g?(u-=k.x,c+=k.x):k.y>=0&&v>=w&&(x=!1):(u-=k.x,c+=k.x),k.y>=0?v=0&&(p>=b||v>=w)){x=!1;break}O(ef),u+=k.x,f=u/l}else O(Pp),O(ef),k.x>=0?p=0&&v>=w&&(x=!1):u+=k.x,k.y>=0?v0?s=k.y>0?Gg:Yg:k.x<0&&(c-=u,s=k.y>0?qg:Vg),k.y<0&&(d-=f),this.cropped||(ml(this.cropBox,ai),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}x&&(i.width=u,i.height=f,i.left=c,i.top=d,this.action=s,this.renderCropBox()),Dn(o,function(R){R.startX=R.endX,R.startY=R.endY})}},S2e={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Vn(this.dragBox,dx),ml(this.cropBox,ai),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=nn({},this.initialImageData),this.canvasData=nn({},this.initialCanvasData),this.cropBoxData=nn({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(nn(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),ml(this.dragBox,dx),Vn(this.cropBox,ai)),this},replace:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),r?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,Dn(this.previews,function(n){n.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,ml(this.cropper,K9)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Vn(this.cropper,K9)),this},destroy:function(){var e=this.element;return e[Qr]?(e[Qr]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,a=n.left,i=n.top;return this.moveTo(DO(e)?e:a+Number(e),DO(r)?r:i+Number(r))},moveTo:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,a=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.movable&&(ir(e)&&(n.left=e,a=!0),ir(r)&&(n.top=r,a=!0),a&&this.renderCanvas(!0)),this},zoom:function(e,r){var n=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(n.width*e/n.naturalWidth,null,r)},zoomTo:function(e,r,n){var a=this.options,i=this.canvasData,o=i.width,s=i.height,l=i.naturalWidth,c=i.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&a.zoomable){var d=l*e,u=c*e;if(Im(this.element,LP,{ratio:e,oldRatio:o/l,originalEvent:n})===!1)return this;if(n){var f=this.pointers,p=MJ(this.cropper),v=f&&Object.keys(f).length?l2e(f):{pageX:n.pageX,pageY:n.pageY};i.left-=(d-o)*((v.pageX-p.left-i.left)/o),i.top-=(u-s)*((v.pageY-p.top-i.top)/s)}else xm(r)&&ir(r.x)&&ir(r.y)?(i.left-=(d-o)*((r.x-i.left)/o),i.top-=(u-s)*((r.y-i.top)/s)):(i.left-=(d-o)/2,i.top-=(u-s)/2);i.width=d,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),ir(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var r=this.imageData.scaleY;return this.scale(e,ir(r)?r:1)},scaleY:function(e){var r=this.imageData.scaleX;return this.scale(ir(r)?r:1,e)},scale:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,a=!1;return e=Number(e),r=Number(r),this.ready&&!this.disabled&&this.options.scalable&&(ir(e)&&(n.scaleX=e,a=!0),ir(r)&&(n.scaleY=r,a=!0),a&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.options,n=this.imageData,a=this.canvasData,i=this.cropBoxData,o;if(this.ready&&this.cropped){o={x:i.left-a.left,y:i.top-a.top,width:i.width,height:i.height};var s=n.width/n.naturalWidth;if(Dn(o,function(d,u){o[u]=d/s}),e){var l=Math.round(o.y+o.height),c=Math.round(o.x+o.width);o.x=Math.round(o.x),o.y=Math.round(o.y),o.width=c-o.x,o.height=l-o.y}}else o={x:0,y:0,width:0,height:0};return r.rotatable&&(o.rotate=n.rotate||0),r.scalable&&(o.scaleX=n.scaleX||1,o.scaleY=n.scaleY||1),o},setData:function(e){var r=this.options,n=this.imageData,a=this.canvasData,i={};if(this.ready&&!this.disabled&&xm(e)){var o=!1;r.rotatable&&ir(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,o=!0),r.scalable&&(ir(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,o=!0),ir(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var s=n.width/n.naturalWidth;ir(e.x)&&(i.left=e.x*s+a.left),ir(e.y)&&(i.top=e.y*s+a.top),ir(e.width)&&(i.width=e.width*s),ir(e.height)&&(i.height=e.height*s),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?nn({},this.containerData):{}},getImageData:function(){return this.sized?nn({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,r={};return this.ready&&Dn(["left","top","width","height","naturalWidth","naturalHeight"],function(n){r[n]=e[n]}),r},setCanvasData:function(e){var r=this.canvasData,n=r.aspectRatio;return this.ready&&!this.disabled&&xm(e)&&(ir(e.left)&&(r.left=e.left),ir(e.top)&&(r.top=e.top),ir(e.width)?(r.width=e.width,r.height=e.width/n):ir(e.height)&&(r.height=e.height,r.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,r;return this.ready&&this.cropped&&(r={left:e.left,top:e.top,width:e.width,height:e.height}),r||{}},setCropBoxData:function(e){var r=this.cropBoxData,n=this.options.aspectRatio,a,i;return this.ready&&this.cropped&&!this.disabled&&xm(e)&&(ir(e.left)&&(r.left=e.left),ir(e.top)&&(r.top=e.top),ir(e.width)&&e.width!==r.width&&(a=!0,r.width=e.width),ir(e.height)&&e.height!==r.height&&(i=!0,r.height=e.height),n&&(a?r.height=r.width/n:i&&(r.width=r.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 r=this.canvasData,n=u2e(this.image,this.imageData,r,e);if(!this.cropped)return n;var a=this.getData(e.rounded),i=a.x,o=a.y,s=a.width,l=a.height,c=n.width/Math.floor(r.naturalWidth);c!==1&&(i*=c,o*=c,s*=c,l*=c);var d=s/l,u=Nu({aspectRatio:d,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),f=Nu({aspectRatio:d,width:e.minWidth||0,height:e.minHeight||0},"cover"),p=Nu({aspectRatio:d,width:e.width||(c!==1?n.width:s),height:e.height||(c!==1?n.height:l)}),v=p.width,g=p.height;v=Math.min(u.width,Math.max(f.width,v)),g=Math.min(u.height,Math.max(f.height,g));var _=document.createElement("canvas"),b=_.getContext("2d");_.width=Pm(v),_.height=Pm(g),b.fillStyle=e.fillColor||"transparent",b.fillRect(0,0,v,g);var w=e.imageSmoothingEnabled,x=w===void 0?!0:w,C=e.imageSmoothingQuality;b.imageSmoothingEnabled=x,C&&(b.imageSmoothingQuality=C);var M=n.width,k=n.height,O=i,R=o,L,$,N,W,j,Y;O<=-s||O>M?(O=0,L=0,N=0,j=0):O<=0?(N=-O,O=0,L=Math.min(M,s+O),j=L):O<=M&&(N=0,L=Math.min(s,M-O),j=L),L<=0||R<=-l||R>k?(R=0,$=0,W=0,Y=0):R<=0?(W=-R,R=0,$=Math.min(k,l+R),Y=$):R<=k&&(W=0,$=Math.min(l,k-R),Y=$);var V=[O,R,L,$];if(j>0&&Y>0){var J=v/s;V.push(N*J,W*J,j*J,Y*J)}return b.drawImage.apply(b,[n].concat(_J(V.map(function(ie){return Math.floor(Pm(ie))})))),_},setAspectRatio:function(e){var r=this.options;return!this.disabled&&!DO(e)&&(r.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var r=this.options,n=this.dragBox,a=this.face;if(this.ready&&!this.disabled){var i=e===bN,o=r.movable&&e===SJ;e=i||o?e:xJ,r.dragMode=e,Oy(n,My,e),Cm(n,OP,i),Cm(n,$P,o),r.cropBoxMovable||(Oy(a,My,e),Cm(a,OP,i),Cm(a,$P,o))}return this}},x2e=yl.Cropper,$J=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Lke(this,t),!e||!Jke.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.options=nn({},l7,xm(r)&&r),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 Nke(t,[{key:"init",value:function(){var r=this.element,n=r.tagName.toLowerCase(),a;if(!r[Qr]){if(r[Qr]=this,n==="img"){if(this.isImg=!0,a=r.getAttribute("src")||"",this.originalUrl=a,!a)return;a=r.src}else n==="canvas"&&window.HTMLCanvasElement&&(a=r.toDataURL());this.load(a)}}},{key:"load",value:function(r){var n=this;if(r){this.url=r,this.imageData={};var a=this.element,i=this.options;if(!i.rotatable&&!i.scalable&&(i.checkOrientation=!1),!i.checkOrientation||!window.ArrayBuffer){this.clone();return}if(qke.test(r)){Xke.test(r)?this.read(h2e(r)):this.clone();return}var o=new XMLHttpRequest,s=this.clone.bind(this);this.reloading=!0,this.xhr=o,o.onabort=s,o.onerror=s,o.ontimeout=s,o.onprogress=function(){o.getResponseHeader("content-type")!==s7&&o.abort()},o.onload=function(){n.read(o.response)},o.onloadend=function(){n.reloading=!1,n.xhr=null},i.checkCrossOrigin&&u7(r)&&a.crossOrigin&&(r=d7(r)),o.open("GET",r,!0),o.responseType="arraybuffer",o.withCredentials=a.crossOrigin==="use-credentials",o.send()}}},{key:"read",value:function(r){var n=this.options,a=this.imageData,i=m2e(r),o=0,s=1,l=1;if(i>1){this.url=p2e(r,s7);var c=v2e(i);o=c.rotate,s=c.scaleX,l=c.scaleY}n.rotatable&&(a.rotate=o),n.scalable&&(a.scaleX=s,a.scaleY=l),this.clone()}},{key:"clone",value:function(){var r=this.element,n=this.url,a=r.crossOrigin,i=n;this.options.checkCrossOrigin&&u7(n)&&(a||(a="anonymous"),i=d7(n)),this.crossOrigin=a,this.crossOriginUrl=i;var o=document.createElement("img");a&&(o.crossOrigin=a),o.src=i||n,o.alt=r.alt||"The image to crop",this.image=o,o.onload=this.start.bind(this),o.onerror=this.stop.bind(this),Vn(o,Q9),r.parentNode.insertBefore(o,r.nextSibling)}},{key:"start",value:function(){var r=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var a=yl.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(yl.navigator.userAgent),i=function(c,d){nn(r.imageData,{naturalWidth:c,naturalHeight:d,aspectRatio:c/d}),r.initialImageData=nn({},r.imageData),r.sizing=!1,r.sized=!0,r.build()};if(n.naturalWidth&&!a){i(n.naturalWidth,n.naturalHeight);return}var o=document.createElement("img"),s=document.body||document.documentElement;this.sizingImage=o,o.onload=function(){i(o.width,o.height),a||s.removeChild(o)},o.src=n.src,a||(o.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;",s.appendChild(o))}},{key:"stop",value:function(){var r=this.image;r.onload=null,r.onerror=null,r.parentNode.removeChild(r),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var r=this.element,n=this.options,a=this.image,i=r.parentNode,o=document.createElement("div");o.innerHTML=Zke;var s=o.querySelector(".".concat(Qr,"-container")),l=s.querySelector(".".concat(Qr,"-canvas")),c=s.querySelector(".".concat(Qr,"-drag-box")),d=s.querySelector(".".concat(Qr,"-crop-box")),u=d.querySelector(".".concat(Qr,"-face"));this.container=i,this.cropper=s,this.canvas=l,this.dragBox=c,this.cropBox=d,this.viewBox=s.querySelector(".".concat(Qr,"-view-box")),this.face=u,l.appendChild(a),Vn(r,ai),i.insertBefore(s,r.nextSibling),ml(a,Q9),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,Vn(d,ai),n.guides||Vn(d.getElementsByClassName("".concat(Qr,"-dashed")),ai),n.center||Vn(d.getElementsByClassName("".concat(Qr,"-center")),ai),n.background&&Vn(s,"".concat(Qr,"-bg")),n.highlight||Vn(u,Hke),n.cropBoxMovable&&(Vn(u,$P),Oy(u,My,yN)),n.cropBoxResizable||(Vn(d.getElementsByClassName("".concat(Qr,"-line")),ai),Vn(d.getElementsByClassName("".concat(Qr,"-point")),ai)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),ni(n.ready)&&ro(r,a7,n.ready,{once:!0}),Im(r,a7)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var r=this.cropper.parentNode;r&&r.removeChild(this.cropper),ml(this.element,ai)}}},{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=x2e,t}},{key:"setDefaults",value:function(r){nn(l7,xm(r)&&r)}}])}();nn($J.prototype,g2e,_2e,y2e,b2e,w2e,S2e);var If=function(){return If=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&R.zoomTo(ie)}(O.currentTarget.cropper,x),_&&_(O)}}));b&&b(k)}return function(){var O,R;(R=(O=C.current)===null||O===void 0?void 0:O.cropper)===null||R===void 0||R.destroy()}},[C]);var M=function(k){return C2e.reduce(function(O,R){var L=O,$=R;return L[$],OO(L,[typeof $=="symbol"?$:$+""])},k)}(If(If({},w),{crossOrigin:l,src:i,alt:g}));return E.createElement("div",{style:o,className:s},E.createElement("img",If({},M,{style:T2e,ref:C})))});const bu={mainDiv:{width:"100%",height:"100%",overflow:"auto"},formControl:{margin:0,minWidth:120},formControlMarginRight:{marginRight:5},formControlPaddingTop:{paddingTop:6.2}},k2e={once:"once",interval:"interval",intervalBetween:"intervalBetween",specific:"specific"},ya={seconds:"seconds",minutes:"minutes"},f7=["ra_Sunday","ra_Monday","ra_Tuesday","ra_Wednesday","ra_Thursday","ra_Friday","ra_Saturday","ra_Sunday"];function il(t){return t<10?`0${t}`:`${t}`}const E2e={mode:"interval",interval:{period:1,unit:ya.minutes}};function bS(t){if(t==="*")return[0,1,2,3,4,5,6];const e=t.split(","),r=[];return e.forEach(n=>{const a=n.split("-");if(a.length===2){const i=parseInt(a[0],10),o=parseInt(a[1],10);for(let s=i;s<=o;s++)r.includes(s===7?0:s)||r.push(s===7?0:s)}else{n==="7"&&(n="0");const i=parseInt(n,10);r.includes(i)||r.push(i)}}),r.sort(),r}function AJ(t,e){t=t.replace(/['"]/g,"").trim();const r=t.split(" ");let n,a=null;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",date:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:null,minutes:r[0]||"*",hours:r[1]||"*",date:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n.seconds===null&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)&&(a={mode:"interval",interval:{period:1,unit:ya.minutes}}),n.seconds==="*"&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?a={mode:"interval",interval:{period:1,unit:ya.seconds}}:n.seconds===null&&n.minutes.includes("/")&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?a={mode:"interval",interval:{period:parseInt(n.minutes.split("/")[1],10),unit:ya.minutes}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours==="*"&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?a={mode:"interval",interval:{period:parseInt(n.seconds.split("/")[1],10),unit:ya.seconds}}:n.seconds!==null&&n.seconds.includes("/")&&n.minutes==="*"&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?a={mode:"intervalBetween",intervalBetween:{period:parseInt(n.seconds.split("/")[1],10),unit:ya.seconds,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:bS(n.dow)}}:n.seconds===null&&n.minutes.includes("/")&&n.hours.includes("-")&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?a={mode:"intervalBetween",intervalBetween:{period:parseInt(n.minutes.split("/")[1],10),unit:ya.minutes,timeFrom:parseInt(n.hours.split("-")[0],10),timeTo:parseInt(n.hours.split("-")[1],10),weekdays:bS(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&n.date==="*"&&n.months==="*"&&(n.dow==="*"||e)?a={mode:"specific",specific:{time:`${il(parseInt(n.hours,10))}:${il(parseInt(n.minutes,10))}`,weekdays:bS(n.dow)}}:n.seconds===null&&parseInt(n.minutes,10).toString()===n.minutes&&parseInt(n.hours,10).toString()===n.hours&&parseInt(n.date,10).toString()===n.date&&parseInt(n.months,10).toString()===n.months&&(n.dow==="*"||e)&&(a={mode:"once",once:{time:`${il(parseInt(n.hours,10))}:${il(parseInt(n.minutes,10))}`,date:`${il(parseInt(n.date,10))}.${il(parseInt(n.months,10))}`}}),a}class $y extends E.Component{constructor(e){super(e);let r=typeof e.cronExpression=="string"?e.cronExpression.replace(/^["']/,"").replace(/["']\n?$/,""):"";r[0]==="{"&&(r="");const n=AJ(r||"* * * * *",!0)||E2e;this.state={extended:!1,cron:$y.state2cron(n),mode:"interval",once:{time:"00:00",date:""},interval:{period:1,unit:ya.minutes},intervalBetween:{period:1,unit:ya.minutes,timeFrom:0,timeTo:23,weekdays:[0,1,2,3,4,5,6]},specific:{time:"00:00",weekdays:[0,1,2,3,4,5,6]}},Object.assign(this.state,n),this.state.cron!==e.cronExpression&&setTimeout(()=>e.onChange&&e.onChange(this.state.cron),100)}static periodArray2text(e,r=7){if(r=r||7,e.length===r)return"*";const n=[];let a=null,i=null;if(!e.length)return"_";for(let o=0;o60&&(n.period=60),n.period!==void 0&&n.period<1&&(n.period=1),n.minutes!==void 0&&n.minutes!==null&&n.minutes>60&&(n.minutes=60),n.minutes!==void 0&&n.minutes!==null&&n.minutes<1&&(n.minutes=1),n.hours!==void 0&&n.hours!==null&&n.hours>24&&(n.hours=24),n.hours!==void 0&&n.hours!==null&&n.hours<1&&(n.hours=1),e.extended)r=`${n.minutes!==void 0&&n.minutes!==null&&n.minutes>1?`*/${n.minutes}`:"*"} ${n.hours!==void 0&&n.hours!==null&&n.hours>1?`*/${n.hours}`:"*"} * * *`;else switch(n.unit){case ya.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * * * * *`;break;case ya.minutes:r=`${n.period>1?`*/${n.period}`:"*"} * * * *`;break}}else if(e.mode==="intervalBetween"){const n=e.intervalBetween||{period:1,unit:ya.minutes,timeFrom:0,timeTo:24,weekdays:[0,1,2,3,4,5,6]};let a;switch(n.timeFrom=n.timeFrom||0,n.timeTo=n.timeTo===void 0?24:n.timeTo,n.timeFrom!==0&&n.timeTo===24&&(n.timeTo=23),n.timeFrom===0&&n.timeTo===24?a="*":a=n.timeFrom!==n.timeTo?`${n.timeFrom}-${n.timeTo}`:"*",n.period>60&&(n.period=60),n.period<1&&(n.period=1),n.unit=n.unit||ya.minutes,n.unit){case ya.seconds:r=`${n.period>1?`*/${n.period}`:"*"} * ${a} * * ${this.periodArray2text(n.weekdays)}`;break;case ya.minutes:r=`${n.period>1?`*/${n.period}`:"*"} ${a} * * ${this.periodArray2text(n.weekdays)}`;break}}else if(e.mode==="specific"){const n=e.specific||{time:"00:00",weekdays:[0,1,2,3,4,5,6]},a=(n.time||"00:00").split(":");let i=parseInt(a[1],10)||0;i>59&&(i=59),i<0&&(i=0);let o=parseInt(a[0],10)||0;o>23&&(o=59),o<0&&(o=0),r=`${i} ${o} * * ${this.periodArray2text(n.weekdays||[])}`}else if(e.mode==="once"){const n=e.once||{time:"00:00",date:""};n.date||(n.date=`${new Date().getDate()}.${il(new Date().getMonth()+1)}`);const a=(n.time||"00:00").split(":"),i=n.date.split(".");let o=parseInt(a[1],10)||0;o>59&&(o=59),o<0&&(o=0);let s=parseInt(a[0],10)||0;s>23&&(s=59),s<0&&(s=0);let l=parseInt(i[0],10)||1;l>31&&(l=31),l<1&&(s=1);let c=parseInt(i[1],10)||1;c>12&&(c=12),c<1&&(c=1),r=`${o} ${s} ${l} ${c} *`}return r}recalcCron(){this.onChange($y.state2cron(this.state))}getControlsWeekdaysElements(e){const r=e==="intervalBetween"?this.state.intervalBetween:this.state.specific;return E.createElement("div",{key:"weekdays",style:{paddingLeft:8,width:"calc(100% - 8px)",maxWidth:600}},E.createElement("h5",null,te.t("ra_On weekdays")),[1,2,3,4,5,6,0].map(n=>E.createElement(Xt,{key:f7[n],control:E.createElement(Un,{checked:r.weekdays.includes(n),onChange:a=>{const i=JSON.parse(JSON.stringify(this.state[e])),o=i.weekdays.indexOf(n);a.target.checked?o===-1&&i.weekdays.push(n):o!==-1&&i.weekdays.splice(o,1),i.weekdays.sort(),e==="intervalBetween"?this.setState({intervalBetween:i},()=>this.recalcCron()):this.setState({specific:i},()=>this.recalcCron())},value:n.toString()}),label:te.t(f7[n])})))}getControlsPeriodElements(e){const r=e==="interval"?this.state.interval:this.state.intervalBetween;return this.state.extended?E.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},E.createElement("h5",{style:{marginBottom:5}},te.t("sc_period")),E.createElement(Sa,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:te.t("sc_minutes"),value:r.minutes,onChange:n=>{const a=JSON.parse(JSON.stringify(this.state[e]));a.minutes=parseInt(n.target.value,10),a.minutes<1&&(a.minutes=1),e==="interval"?this.setState({interval:a},()=>this.recalcCron()):this.setState({intervalBetween:a},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),E.createElement(Sa,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:te.t("sc_hours"),value:r.hours,onChange:n=>{const a=JSON.parse(JSON.stringify(this.state[e]));a.hours=parseInt(n.target.value,10),a.hours<1&&(a.hours=1),e==="interval"?this.setState({interval:a},()=>this.recalcCron()):this.setState({intervalBetween:a},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:24},inputLabel:{shrink:!0}},type:"number",margin:"normal"})):E.createElement("div",{key:"period",style:{paddingLeft:8,display:"inline-block"}},E.createElement("h5",{style:{marginBottom:5}},te.t("sc_period")),E.createElement(Sa,{variant:"standard",style:{marginTop:0,marginBottom:0,verticalAlign:"bottom"},key:"value",label:te.t("sc_every"),value:r.period,onChange:n=>{const a=JSON.parse(JSON.stringify(this.state[e]));a.period=parseInt(n.target.value,10),a.period<1&&(a.period=1),e==="interval"?this.setState({interval:a},()=>this.recalcCron()):this.setState({intervalBetween:a},()=>this.recalcCron())},slotProps:{htmlInput:{min:1,max:60},inputLabel:{shrink:!0}},type:"number",margin:"normal"}),E.createElement(ns,{variant:"standard",style:{verticalAlign:"bottom"},value:r.unit,onChange:n=>{const a=JSON.parse(JSON.stringify(this.state[e]));a.unit=n.target.value,e==="interval"?this.setState({interval:a},()=>this.recalcCron()):this.setState({intervalBetween:a},()=>this.recalcCron())}},E.createElement(tn,{value:"seconds"},te.t("sc_seconds")),")",E.createElement(tn,{value:"minutes"},te.t("sc_minutes")),")"))}getControlsTime(e){const r=e==="once"?this.state.once:this.state.specific;return E.createElement(Af,{variant:"standard",sx:{...bu.formControl,"&.MuiFormControl-root":bu.formControlMarginRight}},E.createElement(Sa,{variant:"standard",key:"at",label:te.t("sc_time"),value:r.time,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const a=JSON.parse(JSON.stringify(this.state[e]));a.time=n.target.value,e==="once"?this.setState({once:a},()=>this.recalcCron()):this.setState({specific:a},()=>this.recalcCron())},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}))}getControlsDate(){const e=this.state.once;if(!e.date){const r=new Date;e.date=`${r.getDate()}.${il(r.getMonth()+1)}`}return E.createElement(Af,{variant:"standard",style:bu.formControl},E.createElement(Sa,{variant:"standard",key:"date",label:te.t("sc_date"),value:e.date,type:"text",slotProps:{htmlInput:{style:bu.formControlPaddingTop},inputLabel:{shrink:!0}},onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.once));n.date=r.target.value,this.setState({once:n},()=>this.recalcCron())},margin:"normal"}))}getOnceElements(){return E.createElement("div",{style:{marginLeft:8}},this.getControlsTime("once"),this.getControlsDate())}getIntervalElements(){return this.getControlsPeriodElements("interval")}getIntervalBetweenElements(){const e=this.state.intervalBetween;return[this.getControlsPeriodElements("intervalBetween"),E.createElement("div",{key:"between",style:{paddingLeft:8,display:"inline-block",verticalAlign:"top"}},E.createElement("h5",{style:{marginBottom:5}},te.t("sc_hours")),E.createElement(Af,{variant:"standard",style:bu.formControl},E.createElement(ty,{shrink:!0,htmlFor:"age-label-placeholder"},te.t("sc_from")),E.createElement(ns,{variant:"standard",style:{width:100},value:e.timeFrom,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeFrom=parseInt(r.target.value,10),n.timeTo===24&&(n.timeTo=23),this.setState({intervalBetween:n},()=>this.recalcCron())}},[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>E.createElement(tn,{key:`B_${r}`,value:r},`${il(r)}:00`)))),E.createElement(Af,{variant:"standard",style:bu.formControl},E.createElement(ty,{shrink:!0,htmlFor:"age-label-placeholder"},te.t("sc_to")),E.createElement(ns,{variant:"standard",style:{width:100},value:e.timeTo,onChange:r=>{const n=JSON.parse(JSON.stringify(this.state.intervalBetween));n.timeTo=parseInt(r.target.value,10),this.setState({intervalBetween:n},()=>this.recalcCron())}},[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23].map(r=>E.createElement(tn,{key:`A_${r}`,value:r},`${il(r)}:00`)),!e.timeFrom&&E.createElement(tn,{value:24},"00:00")))),this.getControlsWeekdaysElements("intervalBetween")]}getSpecificTimeElements(){return[E.createElement("div",{key:"time",style:{marginLeft:8}},this.getControlsTime("specific")),this.getControlsWeekdaysElements("specific")]}onModeChange(e){e!==this.state.mode&&this.setState({mode:e},()=>this.recalcCron())}onChange(e){e!==this.state.cron&&(this.setState({cron:e}),this.props.onChange&&this.props.onChange(e))}render(){return E.createElement("div",{style:bu.mainDiv},E.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)"}},E.createElement(Sa,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0,error:this.state.cron.includes("_")})),E.createElement("div",{style:{paddingLeft:8,width:"calc(100% - 8px)",height:60}},this.state.cron.includes("_")?te.t("sc_invalid_cron"):tJ(this.state.cron,this.props.language||"en")),E.createElement("div",null,E.createElement(Af,{variant:"standard",style:{...bu.formControl,marginLeft:8,marginTop:8}},E.createElement(ty,null,te.t("ra_Repeat")),E.createElement(ns,{variant:"standard",value:this.state.mode,onChange:e=>this.onModeChange(e.target.value),inputProps:{name:"mode",id:"mode"}},E.createElement(tn,{value:"once"},te.t("sc_once")),E.createElement(tn,{value:"interval"},te.t("sc_interval")),E.createElement(tn,{value:"intervalBetween"},te.t("sc_intervalBetween")),E.createElement(tn,{value:"specific"},te.t("sc_specific"))))),this.state.mode===k2e.once&&this.getOnceElements(),this.state.mode==="interval"&&this.getIntervalElements(),this.state.mode==="intervalBetween"&&this.getIntervalBetweenElements(),this.state.mode==="specific"&&this.getSpecificTimeElements())}}const D2e={headerID:{fontWeight:"bold",fontStyle:"italic"},radio:{display:"inline-block"},dialogPaper:{height:"calc(100% - 96px)"}};class i3t extends E.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={showWarning:"",cron:r}}handleCancel(){this.props.onClose()}handleOk(e){if(!e){const r=Ru.cron2state(this.state.cron);if(r.seconds==="*"||r.seconds==="*/1"){this.setState({showWarning:"everySecond"});return}if(r.minutes==="*"||r.minutes==="*/1"){this.setState({showWarning:"everyMinute"});return}}this.props.onOk(this.state.cron),this.props.onClose()}renderWarningDialog(){return this.state.showWarning?E.createElement(W_e,{title:te.t("ra_Please confirm"),text:te.t(this.state.showWarning==="everySecond"?"ra_The schedule will be executed every second. Are you sure?":"ra_The schedule will be executed every minute. Are you sure?"),onClose:e=>this.setState({showWarning:""},()=>{e&&this.handleOk(!0)})}):null}handleClear(){this.props.onOk(!1),this.props.onClose()}render(){return E.createElement(ms,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":D2e.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},this.renderWarningDialog(),E.createElement(_s,{id:"cron-dialog-title"},this.props.title||te.t("ra_Define schedule...")),E.createElement(gs,{style:{height:"100%",overflow:"hidden"}},E.createElement(Ru,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:te.getLanguage()})),E.createElement(vs,null,!!this.props.clearButton&&E.createElement(Vr,{color:"grey",variant:"contained",onClick:()=>this.handleClear(),startIcon:E.createElement(_S,null)},this.props.clear||te.t("ra_Clear")),E.createElement(Vr,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:E.createElement(Ch,null)},this.props.ok||te.t("ra_Ok")),E.createElement(Vr,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:E.createElement(LC,null)},this.props.cancel||te.t("ra_Cancel"))))}}const M2e={dialogPaper:{height:"calc(100% - 96px)"}};class o3t extends E.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r,mode:this.props.simple?"simple":this.props.complex?"complex":(typeof r=="object"||r[0]==="{")&&!this.props.noWizard?"wizard":AJ(this.props.cron||"* * * * *")?"simple":"complex"}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}setMode(e){this.setState({mode:e})}render(){return E.createElement(ms,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":M2e.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},E.createElement(_s,{id:"cron-dialog-title"},this.props.title||te.t("ra_Define schedule...")),E.createElement(gs,{style:{height:"100%",overflow:"hidden"}},this.props.simple&&this.props.complex||!this.props.simple&&!this.props.complex?E.createElement("div",null,!this.props.simple&&!this.props.complex&&!this.props.noWizard&&E.createElement(E.Fragment,null,E.createElement(Yr,{key:"wizard",checked:this.state.mode==="wizard",onChange:()=>this.setMode("wizard")}),E.createElement("label",{onClick:()=>this.setMode("wizard"),style:this.state.mode!=="wizard"?{color:"lightgrey"}:{}},te.t("sc_wizard"))),(!this.props.simple&&!this.props.complex||this.props.simple)&&E.createElement(E.Fragment,null,E.createElement(Yr,{key:"simple",checked:this.state.mode==="simple",onChange:()=>this.setMode("simple")}),E.createElement("label",{onClick:()=>this.setMode("simple"),style:this.state.mode!=="simple"?{color:"lightgrey"}:{}},te.t("sc_simple"))),(!this.props.simple&&!this.props.complex||this.props.complex)&&E.createElement(E.Fragment,null,E.createElement(Yr,{key:"complex",checked:this.state.mode==="complex",onChange:()=>this.setMode("complex")}),E.createElement("label",{onClick:()=>this.setMode("complex"),style:this.state.mode!=="complex"?{color:"lightgrey"}:{}},te.t("sc_cron")))):null,this.state.mode==="simple"&&E.createElement($y,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:te.getLanguage()}),this.state.mode==="wizard"&&E.createElement(ea,{theme:this.props.theme,schedule:this.state.cron,onChange:e=>this.setState({cron:e})}),this.state.mode==="complex"&&E.createElement(Ru,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:te.getLanguage()})),E.createElement(vs,null,E.createElement(Vr,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:E.createElement(Ch,null)},this.props.ok||te.t("ra_Ok")),E.createElement(Vr,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:E.createElement(LC,null)},this.props.cancel||te.t("ra_Cancel"))))}}const rf={headerID:{fontWeight:"bold",fontStyle:"italic"},dialog:{height:"95%"},dialogMobile:{padding:"4px",width:"100%",maxWidth:"100%",maxHeight:"calc(100% - 16px)",height:"100%"},content:{height:"100%",overflow:"hidden"},contentMobile:{padding:"8px 4px"},titleRoot:{whiteSpace:"nowrap",width:"calc(100% - 72px)",overflow:"hidden",display:"inline-block",textOverflow:"ellipsis"}};class s3t extends E.Component{constructor(r){super(r);de(this,"dialogName");de(this,"filters");this.dialogName=this.props.dialogName||"default",this.dialogName=`SelectFile.${this.dialogName}`;const n=(window._localStorage||window.localStorage).getItem(this.dialogName)||"{}";try{this.filters=JSON.parse(n)}catch{this.filters={}}r.filters&&(this.filters={...this.filters,...r.filters});let a=this.props.selected||[];typeof a!="object"?a=[a]:a=[...a],a=a.filter(i=>i),this.state={selected:a}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.props.multiSelect||!Array.isArray(this.state.selected)?this.state.selected:this.state.selected[0]||""),this.props.onClose()}render(){let r;return this.state.selected.length?!Array.isArray(this.state.selected)||this.state.selected.length===1?r=[E.createElement("span",{key:"selected"},te.t("ra_Selected")," "),E.createElement("span",{key:"id",style:rf.headerID},this.state.selected)]:r=[E.createElement("span",{key:"selected"},te.t("ra_Selected")," "),E.createElement("span",{key:"id",style:rf.headerID},te.t("%s items",this.state.selected.length))]:r=this.props.title||te.t("ra_Please select file..."),E.createElement(ms,{onClose:()=>{},maxWidth:!1,sx:{"& .MuiDialog-paper":{...rf.dialog,...rf.dialogMobile}},fullWidth:!0,open:!0,"aria-labelledby":"ar_dialog_selectfile_title"},E.createElement(_s,{id:"ar_dialog_selectfile_title",sx:{"&.MuiDialogTitle-root":rf.titleRoot}},r),E.createElement(gs,{style:{...rf.content,...rf.contentMobile}},E.createElement(Eke,{ready:!0,imagePrefix:this.props.imagePrefix||this.props.prefix||"../",allowUpload:!!this.props.allowUpload,allowDownload:this.props.allowDownload!==!1,allowCreateFolder:!!this.props.allowCreateFolder,allowDelete:!!this.props.allowDelete,allowView:this.props.allowView!==!1,showViewTypeButton:this.props.showViewTypeButton!==!1,showToolbar:this.props.showToolbar!==!1,limitPath:this.props.limitPath,filterFiles:this.props.filterFiles,filterByType:this.props.filterByType,selected:this.props.selected,restrictToFolder:this.props.restrictToFolder,allowNonRestricted:this.props.allowNonRestricted,onSelect:(n,a,i)=>{this.setState({selected:Array.isArray(n)?n:[n]},()=>a&&(!this.props.selectOnlyFolders||i)&&this.handleOk())},t:this.props.t||te.t,lang:this.props.lang||te.getLanguage(),socket:this.props.socket,themeType:this.props.themeType,themeName:this.props.themeName,theme:this.props.theme,showExpertButton:this.props.showExpertButton,expertMode:this.props.expertMode,showTypeSelector:this.props.showTypeSelector})),E.createElement(vs,null,E.createElement(Vr,{variant:"contained",onClick:()=>this.handleOk(),startIcon:E.createElement(Ch,null),disabled:!this.state.selected.length,color:"primary"},this.props.ok||te.t("ra_Ok")),E.createElement(Vr,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:E.createElement(LC,null)},this.props.cancel||te.t("ra_Cancel"))))}}const O2e={dialogPaper:{height:"calc(100% - 96px)"}};class l3t extends E.Component{constructor(e){super(e);let r;this.props.cron&&typeof this.props.cron=="string"&&this.props.cron.replace(/^["']/,"")[0]!=="{"?r=this.props.cron.replace(/['"]/g,"").trim():(r=this.props.cron||"{}",typeof r=="string"&&(r=r.replace(/^["']/,"").replace(/["']\n?$/,""))),this.state={cron:r}}handleCancel(){this.props.onClose()}handleOk(){this.props.onOk(this.state.cron),this.props.onClose()}render(){return E.createElement(ms,{onClose:()=>{},maxWidth:"md",fullWidth:!0,sx:{"& .MuiDialog-paper":O2e.dialogPaper},open:!0,"aria-labelledby":"cron-dialog-title"},E.createElement(_s,{id:"cron-dialog-title"},this.props.title||te.t("ra_Define CRON...")),E.createElement(gs,{style:{height:"100%",overflow:"hidden"}},E.createElement($y,{cronExpression:this.state.cron,onChange:e=>this.setState({cron:e}),language:te.getLanguage()})),E.createElement(vs,null,E.createElement(Vr,{variant:"contained",disabled:!this.state.cron||this.state.cron.includes("_"),onClick:()=>this.handleOk(),color:"primary",startIcon:E.createElement(Ch,null)},this.props.ok||te.t("ra_Ok")),E.createElement(Vr,{variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:E.createElement(LC,null)},this.props.cancel||te.t("ra_Cancel"))))}}const $2e="Append",A2e="Cancel",P2e="Categories",I2e="Checked",R2e="Delete",L2e="Close",N2e="Commercial",F2e="Configure",z2e="Connected",B2e="Copied",j2e="Create",W2e="Crop",H2e="Delete",U2e="Delete",Y2e="Discard",V2e="Disconnected",G2e="Error",q2e="Filter",X2e="Friday",J2e="Latitude",Z2e="Expires in",K2e="Longitude",Q2e="Message",eEe="Monday",tEe="Name",rEe="Objects",nEe="Ok",aEe="Product",iEe="Repeat",oEe="Replace",sEe="Root",lEe="Saturday",cEe="Save",uEe="Selected",dEe="States",fEe="Sunday",hEe="Thursday",pEe="Timestamp",mEe="Tuesday",vEe="Update",gEe="Valid till",_Ee="Value",yEe="Version",bEe="Wednesday",wEe="Width",SEe="Yes",xEe="different",CEe="Everyone can read object",TEe="Everyone can read state",kEe="Everyone can write object",EEe="Everyone can write state",DEe="Group can read object",MEe="Group can read state",OEe="Group can write object",$Ee="Group can write state",AEe="Owner can read object",PEe="Owner can read state",IEe="Owner can write object",REe="Owner can write state",LEe="Buttons",NEe="Changed from",FEe="close",zEe="Create boolean state",BEe="Create channel",jEe="Create device",WEe="Create number state",HEe="Create state",UEe="Create string state",YEe="days",VEe="Fr",GEe="Mo",qEe="Sa",XEe="Su",JEe="Th",ZEe="Tu",KEe="We",QEe="Expert mode",eDe="All files",tDe="Audio",rDe="Code/JSON",nDe="Images",aDe="Text",iDe="Video",oDe="Settings",sDe="without",lDe="Function",cDe="ID",uDe="Name",dDe="Role",fDe="Room",hDe="Type",pDe="Invalid settings",mDe="Last change",vDe="locally",gDe="Apr",_De="Aug",yDe="Dec",bDe="Feb",wDe="Jan",SDe="Jul",xDe="Jun",CDe="Mai",TDe="Mar",kDe="Nov",EDe="Oct",DDe="Sep",MDe="Apr",ODe="Aug",$De="Dec",ADe="Feb",PDe="Jan",IDe="Jul",RDe="Jun",LDe="Mai",NDe="Mar",FDe="Nov",zDe="Oct",BDe="Sep",jDe="none",WDe="Object changed by",HDe="Object last changed at",UDe="Settings from other adapter %s",YDe="Quality code",VDe="repeat",GDe='To select folder, just hold the key "shift" by clicking the folder.',qDe="State changed by",XDe="Object changed from",JDe="Timestamp",ZDe="Acknowledged",KDe="Comment",QDe="Copy the state value",eMe="Custom settings",tMe="Delete object",rMe="Edit object",nMe="Edit the state value",aMe="From",iMe="Last changed",oMe="Quality",sMe="Time stamp",lMe="User",cMe="Value",uMe="Value",dMe="Warning: The CRON job will run every minute during the specified period!",fMe="Warning: The CRON job will run every second during the specified period!",hMe="CRON",pMe="Date",mMe="Dates",vMe="Day",gMe="Day of week",_Me="Every",yMe="every N days",bMe="every Nth day of the week",wMe="every N day of week",SMe="every N hours",xMe="every N minutes",CMe="every N months",TMe="every N seconds",kMe="every day",EMe="every day of the week",DMe="every day of the week",MMe="every hour",OMe="every minute",$Me="every month",AMe="every second",PMe="From",IMe="Hours",RMe="Interval",LMe="Interval between",NMe="Invalid CRON",FMe="Minutes",zMe="months",BMe="Once",jMe="Period",WMe="Seconds",HMe="Simple",UMe="Specific time",YMe="specific dates",VMe="specific day(s) of the week",GMe="specific day of weeks",qMe="specific hours",XMe="specific minutes",JMe="specific months",ZMe="specific seconds",KMe="Time",QMe="To",eOe="Wizard",tOe="all",rOe="Astro day",nOe="Astro night",aOe="Dawn",iOe="Dusk",oOe="Golden hour",sOe="Golden hour end",lOe="Nadir",cOe="Nautical dawn",uOe="Nautical dusk",dOe="Night",fOe="Night end",hOe="Solar noon",pOe="Sunrise",mOe="Sunrise end",vOe="Sunset",gOe="Sunset start",_Oe="at",yOe="at %s",bOe="every day",wOe="every hour",SOe="every minute",xOe="every month",COe="every %s day",TOe="every %s hours",kOe="every %s minutes",EOe="every %s months",DOe="every %s weeks",MOe="every %s years",OOe="every week",$Oe="every year",AOe="from %s to %s",POe="never",IOe="on %s of %s",ROe="on %s and %s of",LOe="on every date of",NOe="%s",FOe="%s and %s",zOe="on %s",BOe="on %s and %s",jOe="on weekends",WOe="on working days",HOe="will ne be not executed any more, because start is in the past",UOe="on %s",YOe="from %s",VOe="Execute from to",GOe="to %s",qOe="every",XOe="Specific time",JOe="from",ZOe="From-to",KOe="Interval time",QOe="invert",e$e="none",t$e="on",r$e="Period",n$e="Daily",a$e="Dates",i$e="Day",o$e="Every",s$e="Every day",l$e="Every month",c$e="Every week",u$e="Every year",d$e="Hours",f$e="Minutes",h$e="month",p$e="Monthly",m$e="Once",v$e="Specific months",g$e="Week",_$e="Weekdays",y$e="Weekend",b$e="Weekly",w$e="Workdays",S$e="Year",x$e="Yearly",C$e="Specific time",T$e="Time",k$e="to",E$e="Valid",D$e="from",M$e="to",O$e="Whole day",$$e="every month",A$e={"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_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:$2e,"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:A2e,"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:P2e,"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:I2e,ra_Clear:R2e,"ra_Clear filter":"Clear filter","ra_Clear icon":"Clear icon","ra_Clone current row":"Clone current row",ra_Close:L2e,"ra_Collapse all nodes":"Collapse all nodes","ra_Collapse one step node":"Collapse one level",ra_Commercial:N2e,ra_Configure:F2e,"ra_Configure visible columns":"Configure visible columns","ra_Confirm deletion of %s":"Confirm deletion of %s",ra_Connected:z2e,ra_Copied:B2e,"ra_Copied %s":'Copied "%s"',"ra_Copy content":"Copy content",ra_Create:j2e,"ra_Create alias":"Create alias","ra_Create folder":"Create folder","ra_Create new folder in %s":"Create new folder in %s",ra_Crop:W2e,"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:H2e,ra_Delete:U2e,"ra_Delete (no confirm for 5 mins)":"Delete (no confirm for 5 mins)","ra_Delete current row":"Delete current row","ra_Deselect all":"Unselect all","ra_Device → Channel → State":"Device → Channel → State",ra_Discard:Y2e,ra_Disconnected:V2e,"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_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 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_Error:G2e,"ra_Expand all nodes":"Expand all nodes","ra_Expand one step node":"Expand one level","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:q2e,"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:X2e,"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_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 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:J2e,"ra_License %s":"License %s","ra_License agreement":"License agreement","ra_License does not exist":"License does not exist",ra_tooltip_expire:Z2e,"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_Longitude:K2e,'ra_May not trigger "updateLicenses"':'May not trigger "updateLicenses"',ra_Message:Q2e,ra_Monday:eEe,"ra_Move down":"Move down","ra_Move up":"Move up",ra_Name:tEe,"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 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_Objects:rEe,ra_Ok:nEe,"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 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_Private certificate":"Private certificate",ra_Product:aEe,"ra_Public certificate":"Public certificate","ra_Quality code":"Quality","ra_Refresh tree":"Refresh tree","ra_Reload files":"Reload files",ra_Repeat:iEe,ra_Replace:oEe,"ra_Request timed out":"Request timed out","ra_Restrict to folder":"Restrict to folder",ra_Root:sEe,ra_Saturday:lEe,ra_Save:cEe,"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:uEe,"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_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:dEe,"ra_Suitable license not found in license manager":"Suitable license not found in license manager",ra_Sunday:fEe,"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:hEe,ra_Timestamp:pEe,"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:mEe,"ra_Unknown error":"Unknown error","ra_Unknown error!":"Unknown error!",ra_Update:vEe,"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:gEe,ra_Value:_Ee,ra_Version:yEe,"ra_View file":"View file","ra_View: %s":"View: %s",ra_Wednesday:bEe,ra_Width:wEe,ra_Yes:SEe,"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___different__:xEe,ra_aclEveryone_read_object:CEe,ra_aclEveryone_read_state:TEe,ra_aclEveryone_write_object:kEe,ra_aclEveryone_write_state:EEe,ra_aclGroup_read_object:DEe,ra_aclGroup_read_state:MEe,ra_aclGroup_write_object:OEe,ra_aclGroup_write_state:$Ee,ra_aclOwner_read_object:AEe,ra_aclOwner_read_state:PEe,ra_aclOwner_write_object:IEe,ra_aclOwner_write_state:REe,ra_buttons:LEe,ra_changedFrom:NEe,ra_close:FEe,ra_create_boolean_state:zEe,ra_create_channel:BEe,ra_create_device:jEe,ra_create_number_state:WEe,ra_create_state:HEe,ra_create_string_state:UEe,ra_daysShortText:YEe,ra_dow_Fr:VEe,ra_dow_Mo:GEe,ra_dow_Sa:qEe,ra_dow_Su:XEe,ra_dow_Th:JEe,ra_dow_Tu:ZEe,ra_dow_We:KEe,ra_expertMode:QEe,ra_fileType_all:eDe,ra_fileType_audio:tDe,ra_fileType_code:rDe,ra_fileType_images:nDe,ra_fileType_txt:aDe,ra_fileType_video:iDe,"ra_fileType_video,":"Video",ra_filter_customs:oDe,ra_filter_customs_without:sDe,ra_filter_func:lDe,ra_filter_id:cDe,ra_filter_name:uDe,ra_filter_role:dDe,ra_filter_room:fDe,ra_filter_type:hDe,"ra_import data from %s file":"Import data from %s file",ra_invalidConfig:pDe,ra_lastChange:mDe,ra_locally:vDe,ra_month_Apr:gDe,ra_month_Aug:_De,ra_month_Dec:yDe,ra_month_Feb:bDe,ra_month_Jan:wDe,ra_month_Jul:SDe,ra_month_Jun:xDe,ra_month_Mai:CDe,ra_month_Mar:TDe,ra_month_Nov:kDe,ra_month_Oct:EDe,ra_month_Sep:DDe,ra_months_Apr:MDe,ra_months_Aug:ODe,ra_months_Dec:$De,ra_months_Feb:ADe,ra_months_Jan:PDe,ra_months_Jul:IDe,ra_months_Jun:RDe,ra_months_Mai:LDe,ra_months_Mar:NDe,ra_months_Nov:FDe,ra_months_Oct:zDe,ra_months_Sep:BDe,ra_none:jDe,ra_object_changed_by:WDe,ra_object_changed_by_user:HDe,ra_otherConfig:UDe,ra_qualityCode:YDe,ra_repeat:VDe,ra_select_folder_hint:GDe,ra_state_changed_by:qDe,ra_state_changed_from:XDe,ra_timestamp:JDe,ra_tooltip_ack:ZDe,ra_tooltip_comment:KDe,ra_tooltip_copyState:QDe,ra_tooltip_customConfig:eMe,ra_tooltip_deleteObject:tMe,ra_tooltip_editObject:rMe,ra_tooltip_editState:nMe,ra_tooltip_from:aMe,ra_tooltip_lc:iMe,ra_tooltip_quality:oMe,ra_tooltip_ts:sMe,ra_tooltip_user:lMe,ra_tooltip_value:cMe,"ra_use seconds":"use seconds",ra_val:uMe,"ra_via internet":"via internet",ra_warning_every_minute:dMe,ra_warning_every_second:fMe,sc_cron:hMe,sc_date:pMe,sc_dates:mMe,sc_dow:vMe,sc_dows:gMe,sc_every:_Me,sc_everyN_dates:yMe,sc_everyN_dow:bMe,sc_everyN_dows:wMe,sc_everyN_hours:SMe,sc_everyN_minutes:xMe,sc_everyN_months:CMe,sc_everyN_seconds:TMe,sc_every_dates:kMe,sc_every_dow:EMe,sc_every_dows:DMe,sc_every_hours:MMe,sc_every_minutes:OMe,sc_every_months:$Me,sc_every_seconds:AMe,sc_from:PMe,sc_hours:IMe,sc_interval:RMe,sc_intervalBetween:LMe,sc_invalid_cron:NMe,sc_minutes:FMe,sc_months:zMe,sc_once:BMe,sc_period:jMe,sc_seconds:WMe,sc_simple:HMe,sc_specific:UMe,sc_specific_dates:YMe,sc_specific_dow:VMe,sc_specific_dows:GMe,sc_specific_hours:qMe,sc_specific_minutes:XMe,sc_specific_months:JMe,sc_specific_seconds:ZMe,sc_time:KMe,sc_to:QMe,sc_wizard:eOe,sch_all:tOe,sch_astroDay:rOe,sch_astroNight:nOe,sch_astro_dawn:aOe,sch_astro_dusk:iOe,sch_astro_goldenHour:oOe,sch_astro_goldenHourEnd:sOe,sch_astro_nadir:lOe,sch_astro_nauticalDawn:cOe,sch_astro_nauticalDusk:uOe,sch_astro_night:dOe,sch_astro_nightEnd:fOe,sch_astro_solarNoon:hOe,sch_astro_sunrise:pOe,sch_astro_sunriseEnd:mOe,sch_astro_sunset:vOe,sch_astro_sunsetStart:gOe,sch_at:_Oe,sch_desc_atTime:yOe,sch_desc_everyDay:bOe,sch_desc_everyHour:wOe,sch_desc_everyMinute:SOe,sch_desc_everyMonth:xOe,sch_desc_everyNDay:COe,sch_desc_everyNHours:TOe,sch_desc_everyNMinutes:kOe,sch_desc_everyNMonths:EOe,sch_desc_everyNWeeks:DOe,sch_desc_everyNYears:MOe,sch_desc_everyWeek:OOe,sch_desc_everyYear:$Oe,sch_desc_intervalFromTo:AOe,sch_desc_never:POe,sch_desc_onDate:IOe,sch_desc_onDates:ROe,sch_desc_onEveryDate:LOe,sch_desc_onMonth:NOe,sch_desc_onMonths:FOe,sch_desc_onWeekday:zOe,sch_desc_onWeekdays:BOe,sch_desc_onWeekends:jOe,sch_desc_onWorkdays:WOe,sch_desc_onceInPast:HOe,sch_desc_once_on:UOe,sch_desc_validFrom:YOe,sch_desc_validFromTo:VOe,sch_desc_validTo:GOe,sch_every:qOe,sch_exactTime:XOe,sch_from:JOe,sch_fromTo:ZOe,sch_intervalTime:KOe,sch_invert:QOe,sch_no_one:e$e,sch_on:t$e,sch_period:r$e,sch_periodDaily:n$e,sch_periodDates:a$e,sch_periodDay:i$e,sch_periodEvery:o$e,sch_periodEveryDay:s$e,sch_periodEveryMonth:l$e,sch_periodEveryWeek:c$e,sch_periodEveryYear:u$e,sch_periodHours:d$e,sch_periodMinutes:f$e,sch_periodMonth:h$e,sch_periodMonthly:p$e,sch_periodOnce:m$e,sch_periodSpecificMonths:v$e,sch_periodWeek:g$e,sch_periodWeekdays:_$e,sch_periodWeekend:y$e,sch_periodWeekly:b$e,sch_periodWorkdays:w$e,sch_periodYear:S$e,sch_periodYearly:x$e,sch_specificTime:C$e,sch_time:T$e,sch_to:k$e,sch_valid:E$e,sch_validFrom:D$e,sch_validTo:M$e,sch_wholeDay:O$e,sch_yearEveryMonth:$$e},P$e="Anhängen",I$e="Abbrechen",R$e="Kategorien",L$e="Geprüft",N$e="Löschen",F$e="Schließen",z$e="Kommerziell",B$e="Konfigurieren",j$e="Verbunden",W$e="Kopiert",H$e="Erstellen",U$e="Ernte",Y$e="Entf",V$e="Löschen",G$e="Verwerfen",q$e="Getrennt",X$e="Fehler",J$e="Filter",Z$e="Freitag",K$e="Breite",Q$e="Längengrad",eAe="Meldung",tAe="Montag",rAe="Name",nAe="Objekte",aAe="OK",iAe="Produkt",oAe="Wiederholen",sAe="Ersetzen",lAe="Anfang",cAe="Samstag",uAe="Speichern",dAe="Ausgewählt",fAe="Zustände",hAe="Sonntag",pAe="Donnerstag",mAe="Zeitstempel",vAe="Dienstag",gAe="Aktualisieren",_Ae="Gültig bis",yAe="Wert",bAe="Ausführung",wAe="Mittwoch",SAe="Breite",xAe="Ja",CAe="unterschiedlich",TAe="Jeder kann Objekt lesen",kAe="Jeder kann Zustand lesen",EAe="Jeder kann ein Objekt schreiben",DAe="Jeder kann Zustand schreiben",MAe="Gruppe kann Objekt lesen",OAe="Gruppe kann Status lesen",$Ae="Gruppe kann Objekt schreiben",AAe="Gruppe kann Status schreiben",PAe="Besitzer kann Objekt lesen",IAe="Besitzer kann Zustand lesen",RAe="Besitzer kann Objekt schreiben",LAe="Besitzer kann Zustand schreiben",NAe="Tasten",FAe="Geändert von",zAe="Schließen",BAe="Booleschen Zustand erstellen",jAe="Kanal erstellen",WAe="Gerät erstellen",HAe="Nummern-Zustand erstellen",UAe="Zustand erstellen",YAe="String-Zustand erstellen",VAe="T.",GAe="Fr",qAe="Mo",XAe="Sa",JAe="So",ZAe="Do",KAe="Di",QAe="Mi",ePe="Expertenmodus",tPe="Alle Dateien",rPe="Audio",nPe="Code/JSON",aPe="Bilder",iPe="Text",oPe="Video",sPe="Einstellungen",lPe="ohne",cPe="Funktion",uPe="ID",dPe="Name",fPe="Rolle",hPe="Raum",pPe="Typ",mPe="Ungültige Einstellungen",vPe="Letzte Änderung",gPe="örtlich",_Pe="Apr",yPe="Aug",bPe="Dez",wPe="Feb",SPe="Jan",xPe="Jul",CPe="Jun",TPe="Mai",kPe="Mär",EPe="Nov",DPe="Okt",MPe="Sep",OPe="Apr",$Pe="Aug",APe="Dez",PPe="Feb",IPe="Jan",RPe="Jul",LPe="Jun",NPe="Mai",FPe="Mär",zPe="Nov",BPe="Okt",jPe="Sep",WPe="kein",HPe="Objekt geändert von",UPe="Objekt zuletzt geändert um",YPe="Einstellungen von anderen Adaptern %s",VPe="Qualitätscode",GPe="wiederholen",qPe='Um einen Ordner auszuwählen, halten Sie einfach die Taste "Shift" gedrückt, indem Sie auf den Ordner klicken.',XPe="Zustand geändert durch",JPe="Objekt geändert von",ZPe="Zeitstempel",KPe="Bestätigt",QPe="Kommentar",eIe="Statuswert kopieren",tIe="Benutzerdefinierte Einstellungen",rIe="Objekt löschen",nIe="Objekt bearbeiten",aIe="Statuswert bearbeiten",iIe="Von",oIe="Zuletzt geändert",sIe="Qualität",lIe="Zeitstempel",cIe="Benutzer",uIe="Wert",dIe="Wert",fIe="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Minute ausgeführt!",hIe="Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Sekunde ausgeführt!",pIe="CRON",mIe="Datum",vIe="Tage",gIe="Tag",_Ie="Wochentage",yIe="Jeden",bIe="alle N Tage",wIe="jeden x-ten Tag der Woche",SIe="alle N Wochentage",xIe="alle N Stunden",CIe="alle N Minuten",TIe="alle N Monate",kIe="alle N Sekunden",EIe="jeden Tag",DIe="jeden Tag der Woche",MIe="jeden Tag der Woche",OIe="jede Stunde",$Ie="jede Minute",AIe="jeden Monat",PIe="jede Sekunde",IIe="Von",RIe="Stunden",LIe="Intervall",NIe="Intervall zwischen",FIe="Ungültiger CRON",zIe="Minuten",BIe="Monate",jIe="Einmal",WIe="Zeitraum",HIe="Sekunden",UIe="Einfach",YIe="Bestimmte Zeit",VIe="bestimmte Tage",GIe="bestimmte(r) Tag(e) der Woche",qIe="bestimmten Wochentag",XIe="bestimmte Stunden",JIe="bestimmte Minuten",ZIe="bestimmte Monate",KIe="bestimmte Sekunden",QIe="Zeit",eRe="Bis",tRe="Wizard",rRe="alle",nRe="Astronomischer Tag",aRe="Astronomische Nacht",iRe="Morgendämmerung",oRe="Abenddämmerung",sRe="Goldene Stunde",lRe="Goldene Stundenende",cRe="Nadir",uRe="Nautische Morgendämmerung",dRe="Nautische Abenddämmerung",fRe="Nacht",hRe="Nachtende",pRe="Sonnenmittag",mRe="Sonnenaufgang",vRe="Sonnenaufgangende",gRe="Sonnenuntergang",_Re="Sonnenuntergangstart",yRe="am",bRe="um %s",wRe="jeden Tag",SRe="jede Stunde",xRe="jede Minute",CRe="jeden Monat",TRe="jeden %s Tag",kRe="alle %s Stunden",ERe="alle %s Minuten",DRe="alle %s Monate",MRe="alle %s Wochen",ORe="alle %s Jahre",$Re="jede Woche",ARe="jedes Jahr",PRe="von %s bis %s",IRe="noch nie",RRe="am %s von %s",LRe="am %s und %s von",NRe="an jedem Datum von",FRe="%s",zRe="%s und %s",BRe="auf %s",jRe="auf %s und %s",WRe="an Wochenenden",HRe="an Werktagen",URe="wird nicht mehr ausgeführt, weil der Start in der Vergangenheit ist",YRe="auf %s",VRe="von %s",GRe="Ausführen von bis",qRe="bis %s",XRe="jeden",JRe="Bestimmte Zeit",ZRe="von",KRe="Von bis",QRe="Zeitintervall",eLe="umkehren",tLe="keiner",rLe="am",nLe="Zeitraum",aLe="Täglich",iLe="Daten",oLe="Tag",sLe="Jeden",lLe="Jeden Tag",cLe="Jeden Monat",uLe="Jede Woche",dLe="Jedes Jahr",fLe="Stunden",hLe="Minuten",pLe="Monat",mLe="Monatlich",vLe="Einmal",gLe="Bestimmte Monate",_Le="Woche",yLe="Wochentage",bLe="Wochenende",wLe="Wöchentlich",SLe="Arbeitstage",xLe="Jahr",CLe="Jährlich",TLe="Bestimmte Zeit",kLe="Zeit",ELe="zu",DLe="Gültigkeit",MLe="von",OLe="bis",$Le="Ganzer Tag",ALe="jeden Monat",PLe={"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_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:P$e,"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:I$e,"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:R$e,"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:L$e,ra_Clear:N$e,"ra_Clear filter":"Filter löschen","ra_Clear icon":"Symbol löschen","ra_Clone current row":"Aktuelle Zeile klonen",ra_Close:F$e,"ra_Collapse all nodes":"Alle Knoten zuklappen","ra_Collapse one step node":"Eine Ebene zuklappen",ra_Commercial:z$e,ra_Configure:B$e,"ra_Configure visible columns":"Spalten Konfigurieren","ra_Confirm deletion of %s":"Das Löschen von %s bestätigen",ra_Connected:j$e,ra_Copied:W$e,"ra_Copied %s":'"%s" kopiert',"ra_Copy content":"Inhalte kopieren",ra_Create:H$e,"ra_Create alias":"Alias erstellen","ra_Create folder":"Ordner erstellen","ra_Create new folder in %s":'Neuen Ordner in "%s" erstellen',ra_Crop:U$e,"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:Y$e,ra_Delete:V$e,"ra_Delete (no confirm for 5 mins)":"Löschen (keine Bestätigung für 5 Minuten)","ra_Delete current row":"Aktuelle Zeile löschen","ra_Deselect all":"Alles abwählen","ra_Device → Channel → State":"Gerät → Kanal → Zustand",ra_Discard:G$e,ra_Disconnected:q$e,"ra_Do not export values of states":"Keine Zustandswerte exportieren","ra_Do not use let's encrypt":"Let's encrypt nicht verwenden","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 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_Error:X$e,"ra_Expand all nodes":"Alle Knoten aufklappen","ra_Expand one step node":"Eine Ebene aufklappen","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:J$e,"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:Z$e,"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_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 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:K$e,"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_Longitude:Q$e,'ra_May not trigger "updateLicenses"':"Löst möglicherweise nicht „updateLicenses“ aus",ra_Message:eAe,ra_Monday:tAe,"ra_Move down":"Nach unten","ra_Move up":"Nach oben",ra_Name:rAe,"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 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_Objects:nAe,ra_Ok:aAe,"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 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_Private certificate":"Privates Zertifikat",ra_Product:iAe,"ra_Public certificate":"Öffentliches Zertifikat","ra_Quality code":"Qualität","ra_Refresh tree":"Baum aktualisieren","ra_Reload files":"Dateien neu laden",ra_Repeat:oAe,ra_Replace:sAe,"ra_Request timed out":"Zeitüberschreitung der Anforderung","ra_Restrict to folder":"Auf Ordner beschränken",ra_Root:lAe,ra_Saturday:cAe,ra_Save:uAe,"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:dAe,"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_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:fAe,"ra_Suitable license not found in license manager":"Passende Lizenz im Lizenzmanager nicht gefunden",ra_Sunday:hAe,"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:pAe,ra_Timestamp:mAe,"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:vAe,"ra_Unknown error":"Unbekannter Fehler","ra_Unknown error!":"Unbekannter Fehler!",ra_Update:gAe,"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:_Ae,ra_Value:yAe,ra_Version:bAe,"ra_View file":"Datei ansehen","ra_View: %s":"Anschauen: %s",ra_Wednesday:wAe,ra_Width:SAe,ra_Yes:xAe,"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___different__:CAe,ra_aclEveryone_read_object:TAe,ra_aclEveryone_read_state:kAe,ra_aclEveryone_write_object:EAe,ra_aclEveryone_write_state:DAe,ra_aclGroup_read_object:MAe,ra_aclGroup_read_state:OAe,ra_aclGroup_write_object:$Ae,ra_aclGroup_write_state:AAe,ra_aclOwner_read_object:PAe,ra_aclOwner_read_state:IAe,ra_aclOwner_write_object:RAe,ra_aclOwner_write_state:LAe,ra_buttons:NAe,ra_changedFrom:FAe,ra_close:zAe,ra_create_boolean_state:BAe,ra_create_channel:jAe,ra_create_device:WAe,ra_create_number_state:HAe,ra_create_state:UAe,ra_create_string_state:YAe,ra_daysShortText:VAe,ra_dow_Fr:GAe,ra_dow_Mo:qAe,ra_dow_Sa:XAe,ra_dow_Su:JAe,ra_dow_Th:ZAe,ra_dow_Tu:KAe,ra_dow_We:QAe,ra_expertMode:ePe,ra_fileType_all:tPe,ra_fileType_audio:rPe,ra_fileType_code:nPe,ra_fileType_images:aPe,ra_fileType_txt:iPe,ra_fileType_video:oPe,"ra_fileType_video,":"Video",ra_filter_customs:sPe,ra_filter_customs_without:lPe,ra_filter_func:cPe,ra_filter_id:uPe,ra_filter_name:dPe,ra_filter_role:fPe,ra_filter_room:hPe,ra_filter_type:pPe,"ra_import data from %s file":"Daten aus %s-Datei importieren",ra_invalidConfig:mPe,ra_lastChange:vPe,ra_locally:gPe,ra_month_Apr:_Pe,ra_month_Aug:yPe,ra_month_Dec:bPe,ra_month_Feb:wPe,ra_month_Jan:SPe,ra_month_Jul:xPe,ra_month_Jun:CPe,ra_month_Mai:TPe,ra_month_Mar:kPe,ra_month_Nov:EPe,ra_month_Oct:DPe,ra_month_Sep:MPe,ra_months_Apr:OPe,ra_months_Aug:$Pe,ra_months_Dec:APe,ra_months_Feb:PPe,ra_months_Jan:IPe,ra_months_Jul:RPe,ra_months_Jun:LPe,ra_months_Mai:NPe,ra_months_Mar:FPe,ra_months_Nov:zPe,ra_months_Oct:BPe,ra_months_Sep:jPe,ra_none:WPe,ra_object_changed_by:HPe,ra_object_changed_by_user:UPe,ra_otherConfig:YPe,ra_qualityCode:VPe,ra_repeat:GPe,ra_select_folder_hint:qPe,ra_state_changed_by:XPe,ra_state_changed_from:JPe,ra_timestamp:ZPe,ra_tooltip_ack:KPe,ra_tooltip_comment:QPe,ra_tooltip_copyState:eIe,ra_tooltip_customConfig:tIe,ra_tooltip_deleteObject:rIe,ra_tooltip_editObject:nIe,ra_tooltip_editState:aIe,ra_tooltip_from:iIe,ra_tooltip_lc:oIe,ra_tooltip_quality:sIe,ra_tooltip_ts:lIe,ra_tooltip_user:cIe,ra_tooltip_value:uIe,"ra_use seconds":"Sekunden benutzen",ra_val:dIe,"ra_via internet":"übers Internet",ra_warning_every_minute:fIe,ra_warning_every_second:hIe,sc_cron:pIe,sc_date:mIe,sc_dates:vIe,sc_dow:gIe,sc_dows:_Ie,sc_every:yIe,sc_everyN_dates:bIe,sc_everyN_dow:wIe,sc_everyN_dows:SIe,sc_everyN_hours:xIe,sc_everyN_minutes:CIe,sc_everyN_months:TIe,sc_everyN_seconds:kIe,sc_every_dates:EIe,sc_every_dow:DIe,sc_every_dows:MIe,sc_every_hours:OIe,sc_every_minutes:$Ie,sc_every_months:AIe,sc_every_seconds:PIe,sc_from:IIe,sc_hours:RIe,sc_interval:LIe,sc_intervalBetween:NIe,sc_invalid_cron:FIe,sc_minutes:zIe,sc_months:BIe,sc_once:jIe,sc_period:WIe,sc_seconds:HIe,sc_simple:UIe,sc_specific:YIe,sc_specific_dates:VIe,sc_specific_dow:GIe,sc_specific_dows:qIe,sc_specific_hours:XIe,sc_specific_minutes:JIe,sc_specific_months:ZIe,sc_specific_seconds:KIe,sc_time:QIe,sc_to:eRe,sc_wizard:tRe,sch_all:rRe,sch_astroDay:nRe,sch_astroNight:aRe,sch_astro_dawn:iRe,sch_astro_dusk:oRe,sch_astro_goldenHour:sRe,sch_astro_goldenHourEnd:lRe,sch_astro_nadir:cRe,sch_astro_nauticalDawn:uRe,sch_astro_nauticalDusk:dRe,sch_astro_night:fRe,sch_astro_nightEnd:hRe,sch_astro_solarNoon:pRe,sch_astro_sunrise:mRe,sch_astro_sunriseEnd:vRe,sch_astro_sunset:gRe,sch_astro_sunsetStart:_Re,sch_at:yRe,sch_desc_atTime:bRe,sch_desc_everyDay:wRe,sch_desc_everyHour:SRe,sch_desc_everyMinute:xRe,sch_desc_everyMonth:CRe,sch_desc_everyNDay:TRe,sch_desc_everyNHours:kRe,sch_desc_everyNMinutes:ERe,sch_desc_everyNMonths:DRe,sch_desc_everyNWeeks:MRe,sch_desc_everyNYears:ORe,sch_desc_everyWeek:$Re,sch_desc_everyYear:ARe,sch_desc_intervalFromTo:PRe,sch_desc_never:IRe,sch_desc_onDate:RRe,sch_desc_onDates:LRe,sch_desc_onEveryDate:NRe,sch_desc_onMonth:FRe,sch_desc_onMonths:zRe,sch_desc_onWeekday:BRe,sch_desc_onWeekdays:jRe,sch_desc_onWeekends:WRe,sch_desc_onWorkdays:HRe,sch_desc_onceInPast:URe,sch_desc_once_on:YRe,sch_desc_validFrom:VRe,sch_desc_validFromTo:GRe,sch_desc_validTo:qRe,sch_every:XRe,sch_exactTime:JRe,sch_from:ZRe,sch_fromTo:KRe,sch_intervalTime:QRe,sch_invert:eLe,sch_no_one:tLe,sch_on:rLe,sch_period:nLe,sch_periodDaily:aLe,sch_periodDates:iLe,sch_periodDay:oLe,sch_periodEvery:sLe,sch_periodEveryDay:lLe,sch_periodEveryMonth:cLe,sch_periodEveryWeek:uLe,sch_periodEveryYear:dLe,sch_periodHours:fLe,sch_periodMinutes:hLe,sch_periodMonth:pLe,sch_periodMonthly:mLe,sch_periodOnce:vLe,sch_periodSpecificMonths:gLe,sch_periodWeek:_Le,sch_periodWeekdays:yLe,sch_periodWeekend:bLe,sch_periodWeekly:wLe,sch_periodWorkdays:SLe,sch_periodYear:xLe,sch_periodYearly:CLe,sch_specificTime:TLe,sch_time:kLe,sch_to:ELe,sch_valid:DLe,sch_validFrom:MLe,sch_validTo:OLe,sch_wholeDay:$Le,sch_yearEveryMonth:ALe},ILe="Добавить",RLe="Отмена",LLe="Категории",NLe="Проверено",FLe="Удалить",zLe="Закрыть",BLe="Коммерческая",jLe="Настроить",WLe="Соединение установлено",HLe="скопировано",ULe="Создать",YLe="Обрезать",VLe="Delete",GLe="Удалить",qLe="Отказаться",XLe="Отключено",JLe="Ошибка",ZLe="Фильтр",KLe="Пятница",QLe="Широта",eNe="Долгота",tNe="Сообщение",rNe="Понедельник",nNe="Имя",aNe="Объекты",iNe="Ok",oNe="Продукт",sNe="Повторение",lNe="Заменять",cNe="Начало",uNe="Суббота",dNe="Сохранить",fNe="выбранный",hNe="Состояния",pNe="Воскресенье",mNe="Четверг",vNe="Времени",gNe="Вторник",_Ne="Обновить",yNe="Годен до",bNe="Значение",wNe="Версия",SNe="Среда",xNe="Ширина",CNe="Да",TNe="разное",kNe="Каждый может читать объект",ENe="Каждый может читать состояние",DNe="Каждый может написать объект",MNe="Каждый может написать состояние",ONe="Группа может читать объект",$Ne="Группа может читать состояние",ANe="Группа может писать объект",PNe="Группа может записывать состояние",INe="Владелец может читать объект",RNe="Владелец может читать состояние",LNe="Владелец может писать объект",NNe="Владелец может писать состояние",FNe="Кнопки",zNe="Изменено с",BNe="Закрыть",jNe="Создать логическое состояние",WNe="Создать канал",HNe="Создать устройство",UNe="Создать состояние номера",YNe="Создать состояние",VNe="Создать состояние строки",GNe="д.",qNe="Пт",XNe="Пн",JNe="Сб",ZNe="Вс",KNe="Чт",QNe="Вт",e5e="Ср",t5e="Экспертный режим",r5e="Все файлы",n5e="Аудио",a5e="Код/JSON",i5e="Картинки",o5e="Текст",s5e="видео",l5e="настройки",c5e="без",u5e="функция",d5e="ID",f5e="Имя",h5e="роль",p5e="комната",m5e="Тип",v5e="Неверные настройки",g5e="Последнее изменение",_5e="локально",y5e="Апр",b5e="Авг",w5e="Дек",S5e="Фев",x5e="Янв",C5e="Июл",T5e="Июн",k5e="Май",E5e="Мрт",D5e="Ноя",M5e="Окт",O5e="Сен",$5e="Апр",A5e="Авг",P5e="Дек",I5e="Фев",R5e="Янв",L5e="Июнь",N5e="Июль",F5e="Май",z5e="Март",B5e="Ноя",j5e="Окт",W5e="Сен",H5e="ничего",U5e="Объект изменен",Y5e="Последний раз объект изменен в",V5e="Настройки из другого адаптера %s",G5e="Код качества",q5e="повтор",X5e="Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.",J5e="Состояние изменено",Z5e="Объект изменен с",K5e="Отметка времени",Q5e="Подтверждено",e3e="Комментарий",t3e="Скопируйте значение состояния",r3e="Пользовательские настройки",n3e="Удалить объект",a3e="Редактировать объект",i3e="Изменить значение состояния",o3e="От",s3e="Последнее изменение",l3e="Качество",c3e="Отметка времени",u3e="пользователь",d3e="Значение",f3e="Значение",h3e="Внимание: задание CRON будет запускаться каждую минуту в течение указанного периода!",p3e="Внимание: задание CRON будет выполняться каждую секунду в течение указанного периода!",m3e="CRON",v3e="Дата",g3e="Даты",_3e="День",y3e="День недели",b3e="каждый(ую/ые)",w3e="каждый N день",S3e="каждый N-й день недели",x3e="каждый N день недели",C3e="каждые N часов",T3e="каждые N минут",k3e="каждые N месяцев",E3e="каждые N секунд",D3e="каждый день",M3e="Каждый день недели",O3e="каждый день недели",$3e="каждый час",A3e="каждую минуту",P3e="каждый месяц",I3e="каждую секунду",R3e="От",L3e="часы",N3e="Интервал",F3e="Интервал между",z3e="Неверный CRON",B3e="минуты",j3e="Месяцы",W3e="один раз",H3e="Период",U3e="секунды",Y3e="Просто",V3e="Конкретное время",G3e="конкретные даты",q3e="конкретный день(а) недели",X3e="конкретный день недели",J3e="конкретные часы",Z3e="конкретные минуты",K3e="конкретные месяцы",Q3e="конкретные секунды",e4e="Время",t4e="До",r4e="Форма",n4e="все",a4e="днём",i4e="ночью",o4e="Рассвет",s4e="Сумерки",l4e="Золотой час",c4e="Конец золотого часа",u4e="Надир",d4e="Морской рассвет",f4e="Морские сумерки",h4e="Ночь",p4e="Конец ночи",m4e="Солнечный полдень",v4e="Восход",g4e="Восход солнца",_4e="Заход солнца",y4e="Начало заката",b4e="дата",w4e="в %s",S4e="каждый день",x4e="каждый час",C4e="каждую минуту",T4e="каждый месяц",k4e="каждый %s день",E4e="каждый %s часов",D4e="каждые %s минут",M4e="каждые %s месяцев",O4e="каждые %s недель",$4e="каждые %s лет",A4e="каждую неделю",P4e="каждый год",I4e="от %s до %s",R4e="никогда",L4e="%s %s",N4e="%s и %s",F4e="в каждый день",z4e="%s",B4e="%s и %s",j4e="%s",W4e="%s и %s",H4e="на выходных",U4e="в рабочие дни",Y4e="не будет больше выполняться, потому что начало в прошлом",V4e="%s",G4e="%s",q4e="Выполнить с",X4e="%s",J4e="каждый",Z4e="Конкретное время",K4e="от",Q4e="От и до",eFe="Интервал времени",tFe="инвертировать",rFe="никакой",nFe="на",aFe="период",iFe="Ежедневно",oFe="Даты",sFe="День",lFe="каждый",cFe="Каждый день",uFe="Каждый месяц",dFe="Каждую неделю",fFe="Каждый год",hFe="часов",pFe="минут",mFe="месяц",vFe="ежемесячно",gFe="однажды",_Fe="Конкретные месяцы",yFe="Неделю",bFe="Будние дни",wFe="выходные",SFe="еженедельно",xFe="Рабочие дни",CFe="Год",TFe="каждый год",kFe="Конкретное время",EFe="Время",DFe="в",MFe="действительный",OFe="от",$Fe="в",AFe="Весь день",PFe="каждый месяц",IFe={"ra_%s links from aliases":"%s ссылок из псевдонимов","ra_%s object(s) processed":"Объектов обработано: %s","ra_%s was imported":"%s был импортирован","ra_Accept license":"Принять лицензию","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:ILe,"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:RLe,"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:LLe,"ra_Chained certificate":"Chained сертификат","ra_Change color theme":"Изменить цветовую тему","ra_Changed from":"Изменено","ra_Channel → State":"Канал → Состояние","ra_Check license":"Проверить лицензию",ra_Checked:NLe,ra_Clear:FLe,"ra_Clear filter":"Очистить фильтр","ra_Clear icon":"Очистить значок","ra_Clone current row":"Клонировать текущую строку",ra_Close:zLe,"ra_Collapse all nodes":"Свернуть все узлы","ra_Collapse one step node":"Свернуть один уровень",ra_Commercial:BLe,ra_Configure:jLe,"ra_Configure visible columns":"Настроить видимые столбцы","ra_Confirm deletion of %s":"Подтвердите удаление %s",ra_Connected:WLe,ra_Copied:HLe,"ra_Copied %s":'Скопировано "%s"',"ra_Copy content":"Копировать содержимое",ra_Create:ULe,"ra_Create alias":"Создать псевдоним","ra_Create folder":"Создать папку","ra_Create new folder in %s":"Создать новую папку в %s",ra_Crop:YLe,"ra_Define CRON...":"Определите CRON...","ra_Define functions":"Задать функции","ra_Define rooms":"Задать комнаты","ra_Define schedule":"Задать расписание","ra_Define schedule...":"Определить расписание ...",ra_Del:VLe,ra_Delete:GLe,"ra_Delete (no confirm for 5 mins)":"Удалить (без подтверждения в течение 5 минут)","ra_Delete current row":"Удалить текущую строку","ra_Deselect all":"Убрать выбор везде","ra_Device → Channel → State":"Устройство → Канал → Состояние",ra_Discard:qLe,ra_Disconnected:XLe,"ra_Do not export values of states":"Не экспортировать значения состояний","ra_Do not use let's encrypt":"Не использовать Let’s Encrypt","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 function":"Изменить функцию","ra_Edit object field":"Поле редактирования объекта","ra_Edit role":"Изменить роль","ra_Edit room":"Редактировать комнату","ra_Edit value":"Изменить значение",ra_Error:JLe,"ra_Expand all nodes":"Развернуть все узлы","ra_Expand one step node":"Открыть один уровень","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:ZLe,"ra_Filter files":"Фильтровать файлы","ra_Folder name":"Имя папки","ra_Folder → Channel → State":"Папка → Канал → Состояние","ra_Folder → Device → Channel → State":"Папка → Устройство → Канал → Состояние","ra_Folder → State":"Папка → Состояние","ra_Folders always first":"Папки всегда на первом месте",ra_Friday:KLe,"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_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 answer from server":"Неверный ответ от сервера","ra_Invalid parent folder!":"Неверная родительская папка!","ra_Invalid structure":"Неверная структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Последнее изменение",ra_Latitude:QLe,"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_Longitude:eNe,'ra_May not trigger "updateLicenses"':"Не может запускать «updateLicenses»",ra_Message:tNe,ra_Monday:rNe,"ra_Move down":"Вниз","ra_Move up":"Вверх",ra_Name:nNe,"ra_No data found in file":"Данные в файле не найдены","ra_No one license found in license manager":"В менеджере лицензий не найдена ни одна лицензия","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_Objects:aNe,ra_Ok:iNe,"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 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_Private certificate":"Частный сертификат",ra_Product:oNe,"ra_Public certificate":"Публичный сертификат","ra_Quality code":"Валидность","ra_Refresh tree":"Обновить дерево","ra_Reload files":"Обновить",ra_Repeat:sNe,ra_Replace:lNe,"ra_Request timed out":"Истекло время запроса","ra_Restrict to folder":"Ограничить папкой",ra_Root:cNe,ra_Saturday:uNe,ra_Save:dNe,"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:fNe,"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_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:hNe,"ra_Suitable license not found in license manager":"Подходящая лицензия не найдена в менеджере лицензий",ra_Sunday:pNe,"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:mNe,ra_Timestamp:vNe,"ra_Toggle expert mode":"Переключить экспертный режим","ra_Toggle the states view":"Переключить режим просмотра состояний","ra_Toggle view mode":"Переключить режим просмотра","ra_Too big":"Слишком большое","ra_Too small":"Слишком маленькое","ra_Transparent dialog":"Прозрачный диалог",ra_Tuesday:gNe,"ra_Unknown error":"Неизвестная ошибка","ra_Unknown error!":"Неизвестная ошибка!",ra_Update:_Ne,"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:yNe,ra_Value:bNe,ra_Version:wNe,"ra_View file":"Посмотреть файл","ra_View: %s":"Просмотр: %s",ra_Wednesday:SNe,ra_Width:xNe,ra_Yes:CNe,"ra_You can export all objects or just the selected branch.":"Вы можете экспортировать все объекты или только выбранную ветвь.","ra_You can filter entries by entering here some text":"Вы можете отфильтровать записи, введя здесь текст",ra___different__:TNe,ra_aclEveryone_read_object:kNe,ra_aclEveryone_read_state:ENe,ra_aclEveryone_write_object:DNe,ra_aclEveryone_write_state:MNe,ra_aclGroup_read_object:ONe,ra_aclGroup_read_state:$Ne,ra_aclGroup_write_object:ANe,ra_aclGroup_write_state:PNe,ra_aclOwner_read_object:INe,ra_aclOwner_read_state:RNe,ra_aclOwner_write_object:LNe,ra_aclOwner_write_state:NNe,ra_buttons:FNe,ra_changedFrom:zNe,ra_close:BNe,ra_create_boolean_state:jNe,ra_create_channel:WNe,ra_create_device:HNe,ra_create_number_state:UNe,ra_create_state:YNe,ra_create_string_state:VNe,ra_daysShortText:GNe,ra_dow_Fr:qNe,ra_dow_Mo:XNe,ra_dow_Sa:JNe,ra_dow_Su:ZNe,ra_dow_Th:KNe,ra_dow_Tu:QNe,ra_dow_We:e5e,ra_expertMode:t5e,ra_fileType_all:r5e,ra_fileType_audio:n5e,ra_fileType_code:a5e,ra_fileType_images:i5e,ra_fileType_txt:o5e,ra_fileType_video:s5e,"ra_fileType_video,":"видео",ra_filter_customs:l5e,ra_filter_customs_without:c5e,ra_filter_func:u5e,ra_filter_id:d5e,ra_filter_name:f5e,ra_filter_role:h5e,ra_filter_room:p5e,ra_filter_type:m5e,"ra_import data from %s file":"Импортировать данные из файла %s",ra_invalidConfig:v5e,ra_lastChange:g5e,ra_locally:_5e,ra_month_Apr:y5e,ra_month_Aug:b5e,ra_month_Dec:w5e,ra_month_Feb:S5e,ra_month_Jan:x5e,ra_month_Jul:C5e,ra_month_Jun:T5e,ra_month_Mai:k5e,ra_month_Mar:E5e,ra_month_Nov:D5e,ra_month_Oct:M5e,ra_month_Sep:O5e,ra_months_Apr:$5e,ra_months_Aug:A5e,ra_months_Dec:P5e,ra_months_Feb:I5e,ra_months_Jan:R5e,ra_months_Jul:L5e,ra_months_Jun:N5e,ra_months_Mai:F5e,ra_months_Mar:z5e,ra_months_Nov:B5e,ra_months_Oct:j5e,ra_months_Sep:W5e,ra_none:H5e,ra_object_changed_by:U5e,ra_object_changed_by_user:Y5e,ra_otherConfig:V5e,ra_qualityCode:G5e,ra_repeat:q5e,ra_select_folder_hint:X5e,ra_state_changed_by:J5e,ra_state_changed_from:Z5e,ra_timestamp:K5e,ra_tooltip_ack:Q5e,ra_tooltip_comment:e3e,ra_tooltip_copyState:t3e,ra_tooltip_customConfig:r3e,ra_tooltip_deleteObject:n3e,ra_tooltip_editObject:a3e,ra_tooltip_editState:i3e,ra_tooltip_from:o3e,ra_tooltip_lc:s3e,ra_tooltip_quality:l3e,ra_tooltip_ts:c3e,ra_tooltip_user:u3e,ra_tooltip_value:d3e,"ra_use seconds":"секунды",ra_val:f3e,"ra_via internet":"через интернет",ra_warning_every_minute:h3e,ra_warning_every_second:p3e,sc_cron:m3e,sc_date:v3e,sc_dates:g3e,sc_dow:_3e,sc_dows:y3e,sc_every:b3e,sc_everyN_dates:w3e,sc_everyN_dow:S3e,sc_everyN_dows:x3e,sc_everyN_hours:C3e,sc_everyN_minutes:T3e,sc_everyN_months:k3e,sc_everyN_seconds:E3e,sc_every_dates:D3e,sc_every_dow:M3e,sc_every_dows:O3e,sc_every_hours:$3e,sc_every_minutes:A3e,sc_every_months:P3e,sc_every_seconds:I3e,sc_from:R3e,sc_hours:L3e,sc_interval:N3e,sc_intervalBetween:F3e,sc_invalid_cron:z3e,sc_minutes:B3e,sc_months:j3e,sc_once:W3e,sc_period:H3e,sc_seconds:U3e,sc_simple:Y3e,sc_specific:V3e,sc_specific_dates:G3e,sc_specific_dow:q3e,sc_specific_dows:X3e,sc_specific_hours:J3e,sc_specific_minutes:Z3e,sc_specific_months:K3e,sc_specific_seconds:Q3e,sc_time:e4e,sc_to:t4e,sc_wizard:r4e,sch_all:n4e,sch_astroDay:a4e,sch_astroNight:i4e,sch_astro_dawn:o4e,sch_astro_dusk:s4e,sch_astro_goldenHour:l4e,sch_astro_goldenHourEnd:c4e,sch_astro_nadir:u4e,sch_astro_nauticalDawn:d4e,sch_astro_nauticalDusk:f4e,sch_astro_night:h4e,sch_astro_nightEnd:p4e,sch_astro_solarNoon:m4e,sch_astro_sunrise:v4e,sch_astro_sunriseEnd:g4e,sch_astro_sunset:_4e,sch_astro_sunsetStart:y4e,sch_at:b4e,sch_desc_atTime:w4e,sch_desc_everyDay:S4e,sch_desc_everyHour:x4e,sch_desc_everyMinute:C4e,sch_desc_everyMonth:T4e,sch_desc_everyNDay:k4e,sch_desc_everyNHours:E4e,sch_desc_everyNMinutes:D4e,sch_desc_everyNMonths:M4e,sch_desc_everyNWeeks:O4e,sch_desc_everyNYears:$4e,sch_desc_everyWeek:A4e,sch_desc_everyYear:P4e,sch_desc_intervalFromTo:I4e,sch_desc_never:R4e,sch_desc_onDate:L4e,sch_desc_onDates:N4e,sch_desc_onEveryDate:F4e,sch_desc_onMonth:z4e,sch_desc_onMonths:B4e,sch_desc_onWeekday:j4e,sch_desc_onWeekdays:W4e,sch_desc_onWeekends:H4e,sch_desc_onWorkdays:U4e,sch_desc_onceInPast:Y4e,sch_desc_once_on:V4e,sch_desc_validFrom:G4e,sch_desc_validFromTo:q4e,sch_desc_validTo:X4e,sch_every:J4e,sch_exactTime:Z4e,sch_from:K4e,sch_fromTo:Q4e,sch_intervalTime:eFe,sch_invert:tFe,sch_no_one:rFe,sch_on:nFe,sch_period:aFe,sch_periodDaily:iFe,sch_periodDates:oFe,sch_periodDay:sFe,sch_periodEvery:lFe,sch_periodEveryDay:cFe,sch_periodEveryMonth:uFe,sch_periodEveryWeek:dFe,sch_periodEveryYear:fFe,sch_periodHours:hFe,sch_periodMinutes:pFe,sch_periodMonth:mFe,sch_periodMonthly:vFe,sch_periodOnce:gFe,sch_periodSpecificMonths:_Fe,sch_periodWeek:yFe,sch_periodWeekdays:bFe,sch_periodWeekend:wFe,sch_periodWeekly:SFe,sch_periodWorkdays:xFe,sch_periodYear:CFe,sch_periodYearly:TFe,sch_specificTime:kFe,sch_time:EFe,sch_to:DFe,sch_valid:MFe,sch_validFrom:OFe,sch_validTo:$Fe,sch_wholeDay:AFe,sch_yearEveryMonth:PFe},RFe="Acrescentar",LFe="Cancelar",NFe="Categorias",FFe="Verificado",zFe="Excluir",BFe="Perto",jFe="Comercial",WFe="Configurar",HFe="Conectado",UFe="Copiado",YFe="Crio",VFe="Colheita",GFe="Delete",qFe="Excluir",XFe="Descartar",JFe="Desconectado",ZFe="Erro",KFe="Filtro",QFe="Sexta-feira",eze="Latitude",tze="Longitude",rze="mensagem",nze="Segunda-feira",aze="Nome",ize="Objetos",oze="Está bem",sze="produtos",lze="Repita",cze="Substituir",uze="Raiz",dze="Sábado",fze="Salve ",hze="Selecionado",pze="Estados",mze="Domingo",vze="Quinta-feira",gze="Timestamp",_ze="Terça-feira",yze="Atualizar",bze="Válida até",wze="Valor",Sze="Versão",xze="Quarta-feira",Cze="Largura",Tze="Sim",kze="diferente",Eze="Todos podem ler objetos",Dze="Todos podem ler o estado",Mze="Todos podem escrever objetos",Oze="Todos podem escrever o estado",$ze="O grupo pode ler o objeto",Aze="O grupo pode ler o estado",Pze="O grupo pode escrever o objeto",Ize="O grupo pode escrever o estado",Rze="O proprietário pode ler o objeto",Lze="O proprietário pode ler o estado",Nze="O proprietário pode escrever o objeto",Fze="O proprietário pode escrever o estado",zze="Botões",Bze="Mudou de",jze="fechar",Wze="Criar estado booleano",Hze="Criar canal",Uze="Criar dispositivo",Yze="Criar estado numérico",Vze="Criar estado",Gze="Criar estado de string",qze="d.",Xze="Fr",Jze="Mo",Zze="Sa",Kze="Su",Qze="º",e6e="Tu",t6e="Nós",r6e="Modo especialista",n6e="Todos os arquivos",a6e="áudio",i6e="Código/JSON",o6e="Imagens",s6e="Texto",l6e="Vídeo",c6e="Configurações",u6e="sem",d6e="Função",f6e="ID",h6e="Nome",p6e="Papel (Função)",m6e="Quarto",v6e="Tipo",g6e="Configurações inválidas",_6e="Última mudança",y6e="localmente",b6e="abril",w6e="agosto",S6e="dezembro",x6e="fevereiro",C6e="janeiro",T6e="julho",k6e="junho",E6e="Mai",D6e="março",M6e="novembro",O6e="outubro",$6e="setembro",A6e="abril",P6e="agosto",I6e="dezembro",R6e="fevereiro",L6e="janeiro",N6e="julho",F6e="junho",z6e="Mai",B6e="março",j6e="novembro",W6e="outubro",H6e="setembro",U6e="Nenhum",Y6e="Objeto alterado por",V6e="Objeto alterado pela última vez em",G6e="Configurações de outro adaptador %s",q6e="Código de qualidade",X6e="repetir",J6e='Para selecionar a pasta, basta segurar a tecla "shift" clicando na pasta.',Z6e="Estado alterado por",K6e="Objeto alterado de",Q6e="Timestamp",e8e="Confirmado",t8e="Comente",r8e="Copie o valor do estado",n8e="Opções customizadas",a8e="Excluir objeto",i8e="Editar objeto",o8e="Edite o valor do estado",s8e="De",l8e="Última alteração",c8e="Qualidade",u8e="Timestamp",d8e="Usuário",f8e="Valor",h8e="Valor",p8e="Aviso: O trabalho CRON será executado a cada minuto durante o período especificado!",m8e="Aviso: O trabalho CRON será executado a cada segundo durante o período especificado!",v8e="CRON",g8e="Data",_8e="Dias",y8e="Dia",b8e="Dia da semana",w8e="todos",S8e="a cada N dias",x8e="todo enésimo dia da semana",C8e="todos os N dias da semana",T8e="a cada N horas",k8e="a cada N minutos",E8e="a cada N meses",D8e="a cada N segundos",M8e="todo dia",O8e="todos os dias da semana",$8e="todos os dias da semana",A8e="toda hora",P8e="todo minuto",I8e="todo mês",R8e="todo segundo",L8e="de",N8e="horas",F8e="intervalo",z8e="intervalo entre",B8e="CRON inválido",j8e="minutos",W8e="meses",H8e="uma vez",U8e="período",Y8e="segundos",V8e="simples",G8e="tempo específico",q8e="datas específicas",X8e="dia(s) específico(s) da semana",J8e="dia específico de semanas",Z8e="horas específicas",K8e="minutos específicos",Q8e="meses específicos",eBe="segundos específicos",tBe="tempo",rBe="para",nBe="assistente",aBe="tudo",iBe="dia astral",oBe="noite astral",sBe="amanhecer",lBe="anoitecer",cBe="hora dourada",uBe="Fim da hora dourada",dBe="nadir",fBe="Amanhecer náutico",hBe="Anoitecer náutico",pBe="noite",mBe="fim da noite",vBe="meio-dia solar",gBe="nascer do sol",_Be="fim do nascer do sol",yBe="pôr do sol",bBe="início do pôr do sol",wBe="às",SBe="em %s",xBe="todo dia",CBe="toda hora",TBe="todo minuto",kBe="todo mês",EBe="a cada %s dias",DBe="a cada %s horas",MBe="a cada %s minutos",OBe="a cada %s meses",$Be="a cada %s semanas",ABe="a cada %s anos",PBe="toda semana",IBe="todo ano",RBe="de %s para %s",LBe="nunca",NBe="em %s de %s",FBe="em %s e %s de",zBe="em toda data de",BBe="%s",jBe="%s e %s",WBe="em %s",HBe="em %s e %s",UBe="nos fins de semana",YBe="em dias úteis",VBe="não será mais executado, porque o começo está no passado",GBe="em %s",qBe="de %s",XBe="Executar de até",JBe="até %s",ZBe="cada",KBe="tempo específico",QBe="de",eje="de a´t",tje="tempo de intervalo",rje="invertido",nje="nenhum",aje="em",ije="período",oje="diariamente",sje="datas",lje="dia",cje="todos",uje="todo dia",dje="todo mês",fje="toda semana",hje="todo ano",pje="horas",mje="minutos",vje="mês",gje="por mês",_je="uma vez",yje="meses específicos",bje="semana",wje="dias úteis",Sje="final de semana",xje="semanal",Cje="dias úteis",Tje="ano",kje="anual",Eje="tempo específico",Dje="tempo",Mje="para",Oje="válido",$je="de",Aje="para",Pje="dia inteiro",Ije="todo mês",Rje={"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_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:RFe,"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:LFe,"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:NFe,"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:FFe,ra_Clear:zFe,"ra_Clear filter":"Filtro limpo","ra_Clear icon":"Ícone de limpeza","ra_Clone current row":"Clonar linha atual",ra_Close:BFe,"ra_Collapse all nodes":"Recolher todos os nós","ra_Collapse one step node":"Recolher um nível",ra_Commercial:jFe,ra_Configure:WFe,"ra_Configure visible columns":"Configurar colunas visíveis","ra_Confirm deletion of %s":"Confirme a exclusão de %s",ra_Connected:HFe,ra_Copied:UFe,"ra_Copied %s":'"%s" copiado',"ra_Copy content":"Copiar conteúdo",ra_Create:YFe,"ra_Create alias":"Criar alias","ra_Create folder":"Criar pasta","ra_Create new folder in %s":"Crie uma nova pasta em %s",ra_Crop:VFe,"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:GFe,ra_Delete:qFe,"ra_Delete (no confirm for 5 mins)":"Excluir (sem confirmação por 5 minutos)","ra_Delete current row":"Excluir linha atual","ra_Deselect all":"Desmarque todos","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:XFe,ra_Disconnected:JFe,"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_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 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_Error:ZFe,"ra_Expand all nodes":"Expanda todos os nós","ra_Expand one step node":"Expanda um nível","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:KFe,"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:QFe,"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_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 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:eze,"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_Longitude:tze,'ra_May not trigger "updateLicenses"':'Pode não acionar "updateLicenses"',ra_Message:rze,ra_Monday:nze,"ra_Move down":"Mover para baixo","ra_Move up":"Subir",ra_Name:aze,"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 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_Objects:ize,ra_Ok:oze,"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 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_Private certificate":"certificado privado",ra_Product:sze,"ra_Public certificate":"certificado público","ra_Quality code":"Qualidade","ra_Refresh tree":"Atualizar árvore","ra_Reload files":"Recarregar arquivos",ra_Repeat:lze,ra_Replace:cze,"ra_Request timed out":"Solicitação expirou","ra_Restrict to folder":"Restringir à pasta",ra_Root:uze,ra_Saturday:dze,ra_Save:fze,"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:hze,"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_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:pze,"ra_Suitable license not found in license manager":"Licença adequada não encontrada no gerenciador de licenças",ra_Sunday:mze,"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:vze,ra_Timestamp:gze,"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:_ze,"ra_Unknown error":"Erro desconhecido","ra_Unknown error!":"Erro desconhecido!",ra_Update:yze,"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:bze,ra_Value:wze,ra_Version:Sze,"ra_View file":"Visualizar arquivo","ra_View: %s":"Visualizar: %s",ra_Wednesday:xze,ra_Width:Cze,ra_Yes:Tze,"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___different__:kze,ra_aclEveryone_read_object:Eze,ra_aclEveryone_read_state:Dze,ra_aclEveryone_write_object:Mze,ra_aclEveryone_write_state:Oze,ra_aclGroup_read_object:$ze,ra_aclGroup_read_state:Aze,ra_aclGroup_write_object:Pze,ra_aclGroup_write_state:Ize,ra_aclOwner_read_object:Rze,ra_aclOwner_read_state:Lze,ra_aclOwner_write_object:Nze,ra_aclOwner_write_state:Fze,ra_buttons:zze,ra_changedFrom:Bze,ra_close:jze,ra_create_boolean_state:Wze,ra_create_channel:Hze,ra_create_device:Uze,ra_create_number_state:Yze,ra_create_state:Vze,ra_create_string_state:Gze,ra_daysShortText:qze,ra_dow_Fr:Xze,ra_dow_Mo:Jze,ra_dow_Sa:Zze,ra_dow_Su:Kze,ra_dow_Th:Qze,ra_dow_Tu:e6e,ra_dow_We:t6e,ra_expertMode:r6e,ra_fileType_all:n6e,ra_fileType_audio:a6e,ra_fileType_code:i6e,ra_fileType_images:o6e,ra_fileType_txt:s6e,ra_fileType_video:l6e,"ra_fileType_video,":"Vídeo",ra_filter_customs:c6e,ra_filter_customs_without:u6e,ra_filter_func:d6e,ra_filter_id:f6e,ra_filter_name:h6e,ra_filter_role:p6e,ra_filter_room:m6e,ra_filter_type:v6e,"ra_import data from %s file":"Importar dados do arquivo %s",ra_invalidConfig:g6e,ra_lastChange:_6e,ra_locally:y6e,ra_month_Apr:b6e,ra_month_Aug:w6e,ra_month_Dec:S6e,ra_month_Feb:x6e,ra_month_Jan:C6e,ra_month_Jul:T6e,ra_month_Jun:k6e,ra_month_Mai:E6e,ra_month_Mar:D6e,ra_month_Nov:M6e,ra_month_Oct:O6e,ra_month_Sep:$6e,ra_months_Apr:A6e,ra_months_Aug:P6e,ra_months_Dec:I6e,ra_months_Feb:R6e,ra_months_Jan:L6e,ra_months_Jul:N6e,ra_months_Jun:F6e,ra_months_Mai:z6e,ra_months_Mar:B6e,ra_months_Nov:j6e,ra_months_Oct:W6e,ra_months_Sep:H6e,ra_none:U6e,ra_object_changed_by:Y6e,ra_object_changed_by_user:V6e,ra_otherConfig:G6e,ra_qualityCode:q6e,ra_repeat:X6e,ra_select_folder_hint:J6e,ra_state_changed_by:Z6e,ra_state_changed_from:K6e,ra_timestamp:Q6e,ra_tooltip_ack:e8e,ra_tooltip_comment:t8e,ra_tooltip_copyState:r8e,ra_tooltip_customConfig:n8e,ra_tooltip_deleteObject:a8e,ra_tooltip_editObject:i8e,ra_tooltip_editState:o8e,ra_tooltip_from:s8e,ra_tooltip_lc:l8e,ra_tooltip_quality:c8e,ra_tooltip_ts:u8e,ra_tooltip_user:d8e,ra_tooltip_value:f8e,"ra_use seconds":"use segundos",ra_val:h8e,"ra_via internet":"via internet",ra_warning_every_minute:p8e,ra_warning_every_second:m8e,sc_cron:v8e,sc_date:g8e,sc_dates:_8e,sc_dow:y8e,sc_dows:b8e,sc_every:w8e,sc_everyN_dates:S8e,sc_everyN_dow:x8e,sc_everyN_dows:C8e,sc_everyN_hours:T8e,sc_everyN_minutes:k8e,sc_everyN_months:E8e,sc_everyN_seconds:D8e,sc_every_dates:M8e,sc_every_dow:O8e,sc_every_dows:$8e,sc_every_hours:A8e,sc_every_minutes:P8e,sc_every_months:I8e,sc_every_seconds:R8e,sc_from:L8e,sc_hours:N8e,sc_interval:F8e,sc_intervalBetween:z8e,sc_invalid_cron:B8e,sc_minutes:j8e,sc_months:W8e,sc_once:H8e,sc_period:U8e,sc_seconds:Y8e,sc_simple:V8e,sc_specific:G8e,sc_specific_dates:q8e,sc_specific_dow:X8e,sc_specific_dows:J8e,sc_specific_hours:Z8e,sc_specific_minutes:K8e,sc_specific_months:Q8e,sc_specific_seconds:eBe,sc_time:tBe,sc_to:rBe,sc_wizard:nBe,sch_all:aBe,sch_astroDay:iBe,sch_astroNight:oBe,sch_astro_dawn:sBe,sch_astro_dusk:lBe,sch_astro_goldenHour:cBe,sch_astro_goldenHourEnd:uBe,sch_astro_nadir:dBe,sch_astro_nauticalDawn:fBe,sch_astro_nauticalDusk:hBe,sch_astro_night:pBe,sch_astro_nightEnd:mBe,sch_astro_solarNoon:vBe,sch_astro_sunrise:gBe,sch_astro_sunriseEnd:_Be,sch_astro_sunset:yBe,sch_astro_sunsetStart:bBe,sch_at:wBe,sch_desc_atTime:SBe,sch_desc_everyDay:xBe,sch_desc_everyHour:CBe,sch_desc_everyMinute:TBe,sch_desc_everyMonth:kBe,sch_desc_everyNDay:EBe,sch_desc_everyNHours:DBe,sch_desc_everyNMinutes:MBe,sch_desc_everyNMonths:OBe,sch_desc_everyNWeeks:$Be,sch_desc_everyNYears:ABe,sch_desc_everyWeek:PBe,sch_desc_everyYear:IBe,sch_desc_intervalFromTo:RBe,sch_desc_never:LBe,sch_desc_onDate:NBe,sch_desc_onDates:FBe,sch_desc_onEveryDate:zBe,sch_desc_onMonth:BBe,sch_desc_onMonths:jBe,sch_desc_onWeekday:WBe,sch_desc_onWeekdays:HBe,sch_desc_onWeekends:UBe,sch_desc_onWorkdays:YBe,sch_desc_onceInPast:VBe,sch_desc_once_on:GBe,sch_desc_validFrom:qBe,sch_desc_validFromTo:XBe,sch_desc_validTo:JBe,sch_every:ZBe,sch_exactTime:KBe,sch_from:QBe,sch_fromTo:eje,sch_intervalTime:tje,sch_invert:rje,sch_no_one:nje,sch_on:aje,sch_period:ije,sch_periodDaily:oje,sch_periodDates:sje,sch_periodDay:lje,sch_periodEvery:cje,sch_periodEveryDay:uje,sch_periodEveryMonth:dje,sch_periodEveryWeek:fje,sch_periodEveryYear:hje,sch_periodHours:pje,sch_periodMinutes:mje,sch_periodMonth:vje,sch_periodMonthly:gje,sch_periodOnce:_je,sch_periodSpecificMonths:yje,sch_periodWeek:bje,sch_periodWeekdays:wje,sch_periodWeekend:Sje,sch_periodWeekly:xje,sch_periodWorkdays:Cje,sch_periodYear:Tje,sch_periodYearly:kje,sch_specificTime:Eje,sch_time:Dje,sch_to:Mje,sch_valid:Oje,sch_validFrom:$je,sch_validTo:Aje,sch_wholeDay:Pje,sch_yearEveryMonth:Ije},Lje="toevoegen",Nje="Annuleer",Fje="Categorieën",zje="Gecontroleerd",Bje="Verwijderen",jje="Dichtbij",Wje="Reclame",Hje="Configureren",Uje="Verbonden",Yje="Gekopieerd",Vje="Creëer",Gje="Bijsnijden",qje="Delete",Xje="Verwijderen",Jje="Weggooien",Zje="Verbinding verbroken",Kje="Fout",Qje="Filter",e9e="Vrijdag",t9e="Breedtegraad",r9e="Lengtegraad",n9e="Bericht",a9e="Maandag",i9e="Naam",o9e="Voorwerpen",s9e="OK",l9e="Product",c9e="Herhaling",u9e="Vervangen",d9e="Wortel",f9e="Zaterdag",h9e="Sparen",p9e="Geselecteerd",m9e="Staten",v9e="Zondag",g9e="Donderdag",_9e="Tijdstempel",y9e="Dinsdag",b9e="Bijwerken",w9e="Geldig tot",S9e="Waarde",x9e="Versie",C9e="Woensdag",T9e="Breedte",k9e="Ja",E9e="verschillend",D9e="Iedereen kan object lezen",M9e="Iedereen kan staat lezen",O9e="Iedereen kan object schrijven",$9e="Iedereen kan staat schrijven",A9e="Groep kan object lezen",P9e="Groep kan status lezen",I9e="Groep kan object schrijven",R9e="Groep kan staat schrijven",L9e="Eigenaar kan object lezen",N9e="Eigenaar kan staat lezen",F9e="Eigenaar kan object schrijven",z9e="Eigenaar kan staat schrijven",B9e="Toetsen",j9e="Veranderd van",W9e="dichtbij",H9e="Creëer een Booleaanse status",U9e="Kanaal maken",Y9e="Apparaat maken",V9e="Nummerstatus maken",G9e="Staat creëren",q9e="Tekenreeksstatus maken",X9e="d.",J9e="Fr",Z9e="Mo",K9e="Za",Q9e="Zo",e7e="Th",t7e="Tu",r7e="Wij",n7e="Expert modus",a7e="Alle bestanden",i7e="Audio",o7e="Code/JSON",s7e="Afbeeldingen",l7e="Tekst",c7e="Video",u7e="Instellingen",d7e="zonder",f7e="Functie",h7e="ID",p7e="Naam",m7e="Rol",v7e="Kamer",g7e="Type",_7e="Ongeldige instellingen",y7e="Laatste wijziging",b7e="plaatselijk",w7e="april",S7e="aug",x7e="dec",C7e="februari",T7e="jan",k7e="jul",E7e="juni",D7e="Mei",M7e="mrt",O7e="nov",$7e="Okt",A7e="sept",P7e="april",I7e="aug",R7e="dec",L7e="februari",N7e="jan",F7e="jul",z7e="juni",B7e="Mei",j7e="mrt",W7e="nov",H7e="Okt",U7e="sept",Y7e="geen",V7e="Object veranderd door",G7e="Object voor het laatst gewijzigd om",q7e="Instellingen van andere adapter %s",X7e="Kwaliteitscode",J7e="herhalen",Z7e='Om een map te selecteren, houdt u gewoon de toets "shift" ingedrukt door op de map te klikken.',K7e="Staat veranderd door",Q7e="Object veranderd van",eWe="Tijdstempel",tWe="Erkende vlag",rWe="Opmerking",nWe="Kopieer de statuswaarde",aWe="Aangepaste instellingen",iWe="Object verwijderen",oWe="Object bewerken",sWe="Bewerk de statuswaarde",lWe="Van",cWe="Laatst gewijzigd",uWe="Kwaliteit",dWe="Tijdstempel",fWe="Gebruiker",hWe="Waarde",pWe="Waarde",mWe="Waarschuwing: De CRON-taak wordt elke minuut uitgevoerd gedurende de opgegeven periode!",vWe="Waarschuwing: De CRON-taak wordt elke seconde uitgevoerd gedurende de opgegeven periode!",gWe="CRON",_We="Datum",yWe="data",bWe="Dag",wWe="Dag van de week",SWe="elk",xWe="elke N dagen",CWe="elke N-de dag van de week",TWe="elke N dag van de week",kWe="elke N uur",EWe="elke N minuten",DWe="elke N maanden",MWe="elke N seconden",OWe="elke dag",$We="elke dag van de week",AWe="elke dag van de week",PWe="elk uur",IWe="elke minuut",RWe="elke maand",LWe="elke seconde",NWe="Van",FWe="uren",zWe="Interval",BWe="Interval tussen",jWe="Ongeldige CRON",WWe="Notulen",HWe="maanden",UWe="Een keer",YWe="Periode",VWe="seconden",GWe="Gemakkelijk",qWe="Specifieke tijd",XWe="specifieke data",JWe="specifieke dag(en) van de week",ZWe="specifieke dag van weken",KWe="specifieke uren",QWe="specifieke minuten",eHe="specifieke maanden",tHe="specifieke seconden",rHe="Tijd",nHe="Naar",aHe="tovenaar",iHe="allemaal",oHe="Astro-dag",sHe="Astro-nacht",lHe="Dageraad",cHe="Schemer",uHe="gouden uur",dHe="Gouden uur einde",fHe="Nadir",hHe="Nautische dageraad",pHe="Nautische schemering",mHe="Nacht",vHe="Nacht einde",gHe="Zonne middag",_He="zonsopkomst",yHe="Sunrise einde",bHe="Zonsondergang",wHe="Zonsondergang start",SHe="Bij",xHe="op %s",CHe="elke dag",THe="elk uur",kHe="elke minuut",EHe="elke maand",DHe="elke %s dag",MHe="elke %s uur",OHe="elke %s minuten",$He="elke %s maanden",AHe="elke %s weken",PHe="elke %s jaar",IHe="elke week",RHe="elk jaar",LHe="van %s tot %s",NHe="nooit",FHe="op %s van %s",zHe="op %s en %s van",BHe="op elke datum van",jHe="%s",WHe="%s en %s",HHe="op %s",UHe="op %s en %s",YHe="in het weekend",VHe="op werkdagen",GHe="zal niet meer worden uitgevoerd, omdat start verleden tijd is",qHe="op %s",XHe="van %s",JHe="Uitvoeren van tot",ZHe="tot %s",KHe="elk",QHe="Specifieke tijd",eUe="van",tUe="Van naar",rUe="Interval tijd",nUe="omkeren",aUe="geen",iUe="Aan",oUe="Periode",sUe="Dagelijks",lUe="data",cUe="Dag",uUe="elk",dUe="Elke dag",fUe="Elke maand",hUe="Elke week",pUe="Elk jaar",mUe="uren",vUe="Notulen",gUe="maand",_Ue="Maandelijks",yUe="Een keer",bUe="Specifieke maanden",wUe="Week",SUe="Doordeweekse dagen",xUe="Weekend",CUe="Wekelijks",TUe="werkdagen",kUe="Jaar",EUe="jaar-",DUe="Specifieke tijd",MUe="Tijd",OUe="naar",$Ue="Geldig",AUe="van",PUe="naar",IUe="Hele dag",RUe="elke maand",LUe={"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_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:Lje,"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:Nje,"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:Fje,"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:zje,ra_Clear:Bje,"ra_Clear filter":"Filter wissen","ra_Clear icon":"Pictogram wissen","ra_Clone current row":"Kloon de huidige rij",ra_Close:jje,"ra_Collapse all nodes":"Vouw alle knooppunten samen","ra_Collapse one step node":"Eén niveau samenvouwen",ra_Commercial:Wje,ra_Configure:Hje,"ra_Configure visible columns":"Configureer zichtbare kolommen","ra_Confirm deletion of %s":"Bevestig het verwijderen van %s",ra_Connected:Uje,ra_Copied:Yje,"ra_Copied %s":'"%s" gekopieerd',"ra_Copy content":"Inhoud kopiëren",ra_Create:Vje,"ra_Create alias":"Alias maken","ra_Create folder":"Map aanmaken","ra_Create new folder in %s":"Maak een nieuwe map in %s",ra_Crop:Gje,"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:qje,ra_Delete:Xje,"ra_Delete (no confirm for 5 mins)":"Verwijderen (geen bevestiging gedurende 5 minuten)","ra_Delete current row":"Huidige rij verwijderen","ra_Deselect all":"Deselecteer alles","ra_Device → Channel → State":"Apparaat → Kanaal → Staat",ra_Discard:Jje,ra_Disconnected:Zje,"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_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 function":"Bewerkingsfunctie","ra_Edit object field":"Bewerk objectveld","ra_Edit role":"Rol bewerken","ra_Edit room":"Kamer bewerken","ra_Edit value":"Waarde bewerken",ra_Error:Kje,"ra_Expand all nodes":"Vouw alle knooppunten uit","ra_Expand one step node":"Vouw een niveau uit","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:Qje,"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:e9e,"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_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 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:t9e,"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_Longitude:r9e,'ra_May not trigger "updateLicenses"':'Activeert mogelijk niet "updateLicenses"',ra_Message:n9e,ra_Monday:a9e,"ra_Move down":"Naar beneden verplaatsen","ra_Move up":"Omhoog gaan",ra_Name:i9e,"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 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_Objects:o9e,ra_Ok:s9e,"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 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_Private certificate":"Privé certificaat",ra_Product:l9e,"ra_Public certificate":"Openbaar certificaat","ra_Quality code":"Kwaliteit","ra_Refresh tree":"Vernieuw de boom","ra_Reload files":"Laad bestanden opnieuw",ra_Repeat:c9e,ra_Replace:u9e,"ra_Request timed out":"Verzoek verlopen","ra_Restrict to folder":"Beperken tot map",ra_Root:d9e,ra_Saturday:f9e,ra_Save:h9e,"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:p9e,"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_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:m9e,"ra_Suitable license not found in license manager":"Geschikte licentie niet gevonden in licentiebeheer",ra_Sunday:v9e,"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:g9e,ra_Timestamp:_9e,"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:y9e,"ra_Unknown error":"Onbekende fout","ra_Unknown error!":"Onbekende fout!",ra_Update:b9e,"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:w9e,ra_Value:S9e,ra_Version:x9e,"ra_View file":"Bestand bekijken","ra_View: %s":"Bekijk: %s",ra_Wednesday:C9e,ra_Width:T9e,ra_Yes:k9e,"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___different__:E9e,ra_aclEveryone_read_object:D9e,ra_aclEveryone_read_state:M9e,ra_aclEveryone_write_object:O9e,ra_aclEveryone_write_state:$9e,ra_aclGroup_read_object:A9e,ra_aclGroup_read_state:P9e,ra_aclGroup_write_object:I9e,ra_aclGroup_write_state:R9e,ra_aclOwner_read_object:L9e,ra_aclOwner_read_state:N9e,ra_aclOwner_write_object:F9e,ra_aclOwner_write_state:z9e,ra_buttons:B9e,ra_changedFrom:j9e,ra_close:W9e,ra_create_boolean_state:H9e,ra_create_channel:U9e,ra_create_device:Y9e,ra_create_number_state:V9e,ra_create_state:G9e,ra_create_string_state:q9e,ra_daysShortText:X9e,ra_dow_Fr:J9e,ra_dow_Mo:Z9e,ra_dow_Sa:K9e,ra_dow_Su:Q9e,ra_dow_Th:e7e,ra_dow_Tu:t7e,ra_dow_We:r7e,ra_expertMode:n7e,ra_fileType_all:a7e,ra_fileType_audio:i7e,ra_fileType_code:o7e,ra_fileType_images:s7e,ra_fileType_txt:l7e,ra_fileType_video:c7e,"ra_fileType_video,":"Video",ra_filter_customs:u7e,ra_filter_customs_without:d7e,ra_filter_func:f7e,ra_filter_id:h7e,ra_filter_name:p7e,ra_filter_role:m7e,ra_filter_room:v7e,ra_filter_type:g7e,"ra_import data from %s file":"Importeer gegevens uit %s bestand",ra_invalidConfig:_7e,ra_lastChange:y7e,ra_locally:b7e,ra_month_Apr:w7e,ra_month_Aug:S7e,ra_month_Dec:x7e,ra_month_Feb:C7e,ra_month_Jan:T7e,ra_month_Jul:k7e,ra_month_Jun:E7e,ra_month_Mai:D7e,ra_month_Mar:M7e,ra_month_Nov:O7e,ra_month_Oct:$7e,ra_month_Sep:A7e,ra_months_Apr:P7e,ra_months_Aug:I7e,ra_months_Dec:R7e,ra_months_Feb:L7e,ra_months_Jan:N7e,ra_months_Jul:F7e,ra_months_Jun:z7e,ra_months_Mai:B7e,ra_months_Mar:j7e,ra_months_Nov:W7e,ra_months_Oct:H7e,ra_months_Sep:U7e,ra_none:Y7e,ra_object_changed_by:V7e,ra_object_changed_by_user:G7e,ra_otherConfig:q7e,ra_qualityCode:X7e,ra_repeat:J7e,ra_select_folder_hint:Z7e,ra_state_changed_by:K7e,ra_state_changed_from:Q7e,ra_timestamp:eWe,ra_tooltip_ack:tWe,ra_tooltip_comment:rWe,ra_tooltip_copyState:nWe,ra_tooltip_customConfig:aWe,ra_tooltip_deleteObject:iWe,ra_tooltip_editObject:oWe,ra_tooltip_editState:sWe,ra_tooltip_from:lWe,ra_tooltip_lc:cWe,ra_tooltip_quality:uWe,ra_tooltip_ts:dWe,ra_tooltip_user:fWe,ra_tooltip_value:hWe,"ra_use seconds":"gebruik seconden",ra_val:pWe,"ra_via internet":"via internet",ra_warning_every_minute:mWe,ra_warning_every_second:vWe,sc_cron:gWe,sc_date:_We,sc_dates:yWe,sc_dow:bWe,sc_dows:wWe,sc_every:SWe,sc_everyN_dates:xWe,sc_everyN_dow:CWe,sc_everyN_dows:TWe,sc_everyN_hours:kWe,sc_everyN_minutes:EWe,sc_everyN_months:DWe,sc_everyN_seconds:MWe,sc_every_dates:OWe,sc_every_dow:$We,sc_every_dows:AWe,sc_every_hours:PWe,sc_every_minutes:IWe,sc_every_months:RWe,sc_every_seconds:LWe,sc_from:NWe,sc_hours:FWe,sc_interval:zWe,sc_intervalBetween:BWe,sc_invalid_cron:jWe,sc_minutes:WWe,sc_months:HWe,sc_once:UWe,sc_period:YWe,sc_seconds:VWe,sc_simple:GWe,sc_specific:qWe,sc_specific_dates:XWe,sc_specific_dow:JWe,sc_specific_dows:ZWe,sc_specific_hours:KWe,sc_specific_minutes:QWe,sc_specific_months:eHe,sc_specific_seconds:tHe,sc_time:rHe,sc_to:nHe,sc_wizard:aHe,sch_all:iHe,sch_astroDay:oHe,sch_astroNight:sHe,sch_astro_dawn:lHe,sch_astro_dusk:cHe,sch_astro_goldenHour:uHe,sch_astro_goldenHourEnd:dHe,sch_astro_nadir:fHe,sch_astro_nauticalDawn:hHe,sch_astro_nauticalDusk:pHe,sch_astro_night:mHe,sch_astro_nightEnd:vHe,sch_astro_solarNoon:gHe,sch_astro_sunrise:_He,sch_astro_sunriseEnd:yHe,sch_astro_sunset:bHe,sch_astro_sunsetStart:wHe,sch_at:SHe,sch_desc_atTime:xHe,sch_desc_everyDay:CHe,sch_desc_everyHour:THe,sch_desc_everyMinute:kHe,sch_desc_everyMonth:EHe,sch_desc_everyNDay:DHe,sch_desc_everyNHours:MHe,sch_desc_everyNMinutes:OHe,sch_desc_everyNMonths:$He,sch_desc_everyNWeeks:AHe,sch_desc_everyNYears:PHe,sch_desc_everyWeek:IHe,sch_desc_everyYear:RHe,sch_desc_intervalFromTo:LHe,sch_desc_never:NHe,sch_desc_onDate:FHe,sch_desc_onDates:zHe,sch_desc_onEveryDate:BHe,sch_desc_onMonth:jHe,sch_desc_onMonths:WHe,sch_desc_onWeekday:HHe,sch_desc_onWeekdays:UHe,sch_desc_onWeekends:YHe,sch_desc_onWorkdays:VHe,sch_desc_onceInPast:GHe,sch_desc_once_on:qHe,sch_desc_validFrom:XHe,sch_desc_validFromTo:JHe,sch_desc_validTo:ZHe,sch_every:KHe,sch_exactTime:QHe,sch_from:eUe,sch_fromTo:tUe,sch_intervalTime:rUe,sch_invert:nUe,sch_no_one:aUe,sch_on:iUe,sch_period:oUe,sch_periodDaily:sUe,sch_periodDates:lUe,sch_periodDay:cUe,sch_periodEvery:uUe,sch_periodEveryDay:dUe,sch_periodEveryMonth:fUe,sch_periodEveryWeek:hUe,sch_periodEveryYear:pUe,sch_periodHours:mUe,sch_periodMinutes:vUe,sch_periodMonth:gUe,sch_periodMonthly:_Ue,sch_periodOnce:yUe,sch_periodSpecificMonths:bUe,sch_periodWeek:wUe,sch_periodWeekdays:SUe,sch_periodWeekend:xUe,sch_periodWeekly:CUe,sch_periodWorkdays:TUe,sch_periodYear:kUe,sch_periodYearly:EUe,sch_specificTime:DUe,sch_time:MUe,sch_to:OUe,sch_valid:$Ue,sch_validFrom:AUe,sch_validTo:PUe,sch_wholeDay:IUe,sch_yearEveryMonth:RUe},NUe="Ajouter",FUe="Annuler",zUe="Catégories",BUe="Vérifié",jUe="Effacer",WUe="Fermer",HUe="Commercial",UUe="Configurer",YUe="Lié",VUe="Copié",GUe="Créer",qUe="Recadrer",XUe="Delete",JUe="Supprimer",ZUe="Jeter",KUe="Débranché",QUe="Erreur",eYe="Filtre",tYe="Vendredi",rYe="Latitude",nYe="Longitude",aYe="Message",iYe="Lundi",oYe="Nom",sYe="Objets",lYe="D'accord",cYe="Produit",uYe="Répéter",dYe="Remplacer",fYe="Racine",hYe="Samedi",pYe="sauver",mYe="Choisi",vYe="États",gYe="Dimanche",_Ye="Jeudi",yYe="Horodatage",bYe="Mardi",wYe="Mise à jour",SYe="Valable jusqu'au",xYe="Valeur",CYe="Version",TYe="Mercredi",kYe="Largeur",EYe="Oui",DYe="différent",MYe="Tout le monde peut lire un objet",OYe="Tout le monde peut lire l'état",$Ye="Tout le monde peut écrire un objet",AYe="Tout le monde peut écrire l'état",PYe="Le groupe peut lire l'objet",IYe="Le groupe peut lire l'état",RYe="Le groupe peut écrire un objet",LYe="Le groupe peut écrire l'état",NYe="Le propriétaire peut lire l'objet",FYe="Le propriétaire peut lire l'état",zYe="Le propriétaire peut écrire un objet",BYe="Le propriétaire peut écrire l'état",jYe="Boutons",WYe="Changé de",HYe="Fermer",UYe="Créer un état booléen",YYe="Créer une chaîne",VYe="Créer un appareil",GYe="Créer un état de numéro",qYe="Créer un état",XYe="Créer un état de chaîne",JYe="j.",ZYe="Fr",KYe="Mo",QYe="Sa",eVe="Su",tVe="Th",rVe="Tu",nVe="Nous",aVe="Mode expert",iVe="Tous les fichiers",oVe="l'audio",sVe="Code/JSON",lVe="Images",cVe="Texte",uVe="Vidéo",dVe="Paramètres",fVe="sans",hVe="Une fonction",pVe="ID",mVe="Prénom",vVe="Rôle",gVe="Pièce",_Ve="Type",yVe="Paramètres invalides",bVe="Dernier changement",wVe="localement",SVe="Avr",xVe="Août",CVe="Déc",TVe="Fév",kVe="Jan",EVe="Juil",DVe="Juin",MVe="Mai",OVe="Mar",$Ve="Nov",AVe="Oct",PVe="Sep",IVe="Avr",RVe="Août",LVe="Déc",NVe="Fév",FVe="Jan",zVe="Juil",BVe="Juin",jVe="Mai",WVe="Mar",HVe="Nov",UVe="Oct",YVe="Sep",VVe="rien",GVe="Objet modifié par",qVe="Objet modifié pour la dernière fois à",XVe="Paramètres d'un autre adaptateur %s",JVe="Code de qualité",ZVe="répéter",KVe='Pour sélectionner un dossier, maintenez simplement la touche "shift" enfoncée en cliquant sur le dossier.',QVe="État modifié par",eGe="Objet changé de",tGe="Horodatage",rGe="Drapeau reconnu",nGe="Commentaire",aGe="Copiez la valeur d'état",iGe="Paramètres personnalisés",oGe="Supprimer un objet",sGe="Modifier l'objet",lGe="Modifier la valeur d'état",cGe="De",uGe="Dernière modification",dGe="Qualité",fGe="Horodatage",hGe="Utilisateur",pGe="Valeur",mGe="Valeur",vGe="Attention : la tâche CRON s’exécutera toutes les minutes pendant la période spécifiée !",gGe="Attention : la tâche CRON s’exécutera toutes les secondes pendant la période spécifiée !",_Ge="CRON",yGe="Date",bGe="Rendez-vous",wGe="Jour",SGe="Jour de la semaine",xGe="Chaque",CGe="tous les N jours",TGe="chaque Nième jour de la semaine",kGe="tous les N jours de la semaine",EGe="toutes les N heures",DGe="toutes les N minutes",MGe="tous les N mois",OGe="toutes les N secondes",$Ge="tous les jours",AGe="Chaque jour de la semaine",PGe="Chaque jour de la semaine",IGe="Toutes les heures",RGe="chaque minute",LGe="chaque mois",NGe="chaque seconde",FGe="De",zGe="Heures",BGe="Intervalle",jGe="Intervalle entre",WGe="CRON non valide",HGe="Minutes",UGe="mois",YGe="Une fois que",VGe="Période",GGe="Secondes",qGe="Facile",XGe="Temps spécifique",JGe="dates spécifiques",ZGe="jour(s) spécifique(s) de la semaine",KGe="jour spécifique de semaines",QGe="heures spécifiques",eqe="minutes spécifiques",tqe="mois spécifiques",rqe="secondes spécifiques",nqe="Temps",aqe="À",iqe="sorcier",oqe="tout",sqe="Journée astronomique",lqe="Nuit astronomique",cqe="Aube",uqe="Crépuscule",dqe="Heure d'or",fqe="Fin de l'heure d'or",hqe="Nadir",pqe="Aube nautique",mqe="Crépuscule nautique",vqe="Nuit",gqe="Fin de nuit",_qe="Midi solaire",yqe="lever du soleil",bqe="Fin du lever du soleil",wqe="Le coucher du soleil",Sqe="Coucher du soleil",xqe="à",Cqe="à %s",Tqe="tous les jours",kqe="Toutes les heures",Eqe="chaque minute",Dqe="chaque mois",Mqe="chaque %s jour",Oqe="chaque %s heures",$qe="toutes les %s minutes",Aqe="tous les %s mois",Pqe="chaque %s semaines",Iqe="tous les %s ans",Rqe="toutes les semaines",Lqe="chaque année",Nqe="de %s à %s",Fqe="jamais",zqe="sur %s de %s",Bqe="sur %s et %s de",jqe="à chaque date de",Wqe="%s",Hqe="%s et %s",Uqe="sur %s",Yqe="sur %s et %s",Vqe="les weekends",Gqe="les jours ouvrables",qqe="ne sera plus exécuté, car start est dans le passé",Xqe="sur %s",Jqe="de %s",Zqe="Exécuter de à",Kqe="à %s",Qqe="chaque",eXe="Temps spécifique",tXe="de",rXe="De à",nXe="Temps d'interval",aXe="inverser",iXe="aucun",oXe="sur",sXe="Période",lXe="du quotidien",cXe="Rendez-vous",uXe="journée",dXe="Chaque",fXe="Tous les jours",hXe="Chaque mois",pXe="Toutes les semaines",mXe="Chaque année",vXe="Heures",gXe="Minutes",_Xe="mois",yXe="Mensuel",bXe="Une fois que",wXe="Mois spécifiques",SXe="La semaine",xXe="Jours de la semaine",CXe="Weekend",TXe="Hebdomadaire",kXe="Jours ouvrables",EXe="Année",DXe="Annuel",MXe="Temps spécifique",OXe="Temps",$Xe="à",AXe="Valide",PXe="de",IXe="à",RXe="Toute la journée",LXe="chaque mois",NXe={"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_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:NUe,"ra_Append %s entries or replace existing?":"Ajouter %s entrées ou remplacer l'existant ?","ra_Append or replace?":"Ajouter ou remplacer ?","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:FUe,"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 : 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 : %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:zUe,"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:BUe,ra_Clear:jUe,"ra_Clear filter":"Effacer le filtre","ra_Clear icon":"Effacer l'icône","ra_Clone current row":"Cloner la ligne actuelle",ra_Close:WUe,"ra_Collapse all nodes":"Réduire tous les nœuds","ra_Collapse one step node":"Réduire d'un niveau",ra_Commercial:HUe,ra_Configure:UUe,"ra_Configure visible columns":"Configurer les colonnes visibles","ra_Confirm deletion of %s":"Confirmer la suppression de %s",ra_Connected:YUe,ra_Copied:VUe,"ra_Copied %s":'"%s" copié',"ra_Copy content":"Copier le contenu",ra_Create:GUe,"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:qUe,"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:XUe,ra_Delete:JUe,"ra_Delete (no confirm for 5 mins)":"Supprimer (pas de confirmation pendant 5 minutes)","ra_Delete current row":"Supprimer la ligne actuelle","ra_Deselect all":"Tout déselectionner","ra_Device → Channel → State":"Appareil → Canal → État",ra_Discard:ZUe,ra_Disconnected:KUe,"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_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 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_Error:QUe,"ra_Expand all nodes":"Développer tous les nœuds","ra_Expand one step node":"Développer un niveau","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:eYe,"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:tYe,"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_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 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:rYe,"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 ?","ra_Listen on all IPs":"Écoutez sur toutes les adresses IP","ra_Load configuration from file":"Charger la configuration à partir du fichier",ra_Longitude:nYe,'ra_May not trigger "updateLicenses"':'Peut ne pas déclencher "updateLicences"',ra_Message:aYe,ra_Monday:iYe,"ra_Move down":"Descendre","ra_Move up":"Déplacer vers le haut",ra_Name:oYe,"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 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_Objects:sYe,ra_Ok:lYe,"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 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_Private certificate":"Certificat privé",ra_Product:cYe,"ra_Public certificate":"Certificat public","ra_Quality code":"Qualité","ra_Refresh tree":"Rafraîchir l'arborescence","ra_Reload files":"Recharger les fichiers",ra_Repeat:uYe,ra_Replace:dYe,"ra_Request timed out":"La demande a expiré","ra_Restrict to folder":"Restreindre au dossier",ra_Root:fYe,ra_Saturday:hYe,ra_Save:pYe,"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:mYe,"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_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:vYe,"ra_Suitable license not found in license manager":"Licence appropriée introuvable dans le gestionnaire de licences",ra_Sunday:gYe,"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:_Ye,ra_Timestamp:yYe,"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:bYe,"ra_Unknown error":"Erreur inconnue","ra_Unknown error!":"Erreur inconnue!",ra_Update:wYe,"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:SYe,ra_Value:xYe,ra_Version:CYe,"ra_View file":"Voir la fiche","ra_View: %s":"Affichage : %s",ra_Wednesday:TYe,ra_Width:kYe,ra_Yes:EYe,"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___different__:DYe,ra_aclEveryone_read_object:MYe,ra_aclEveryone_read_state:OYe,ra_aclEveryone_write_object:$Ye,ra_aclEveryone_write_state:AYe,ra_aclGroup_read_object:PYe,ra_aclGroup_read_state:IYe,ra_aclGroup_write_object:RYe,ra_aclGroup_write_state:LYe,ra_aclOwner_read_object:NYe,ra_aclOwner_read_state:FYe,ra_aclOwner_write_object:zYe,ra_aclOwner_write_state:BYe,ra_buttons:jYe,ra_changedFrom:WYe,ra_close:HYe,ra_create_boolean_state:UYe,ra_create_channel:YYe,ra_create_device:VYe,ra_create_number_state:GYe,ra_create_state:qYe,ra_create_string_state:XYe,ra_daysShortText:JYe,ra_dow_Fr:ZYe,ra_dow_Mo:KYe,ra_dow_Sa:QYe,ra_dow_Su:eVe,ra_dow_Th:tVe,ra_dow_Tu:rVe,ra_dow_We:nVe,ra_expertMode:aVe,ra_fileType_all:iVe,ra_fileType_audio:oVe,ra_fileType_code:sVe,ra_fileType_images:lVe,ra_fileType_txt:cVe,ra_fileType_video:uVe,"ra_fileType_video,":"Vidéo",ra_filter_customs:dVe,ra_filter_customs_without:fVe,ra_filter_func:hVe,ra_filter_id:pVe,ra_filter_name:mVe,ra_filter_role:vVe,ra_filter_room:gVe,ra_filter_type:_Ve,"ra_import data from %s file":"Importer des données à partir du fichier %s",ra_invalidConfig:yVe,ra_lastChange:bVe,ra_locally:wVe,ra_month_Apr:SVe,ra_month_Aug:xVe,ra_month_Dec:CVe,ra_month_Feb:TVe,ra_month_Jan:kVe,ra_month_Jul:EVe,ra_month_Jun:DVe,ra_month_Mai:MVe,ra_month_Mar:OVe,ra_month_Nov:$Ve,ra_month_Oct:AVe,ra_month_Sep:PVe,ra_months_Apr:IVe,ra_months_Aug:RVe,ra_months_Dec:LVe,ra_months_Feb:NVe,ra_months_Jan:FVe,ra_months_Jul:zVe,ra_months_Jun:BVe,ra_months_Mai:jVe,ra_months_Mar:WVe,ra_months_Nov:HVe,ra_months_Oct:UVe,ra_months_Sep:YVe,ra_none:VVe,ra_object_changed_by:GVe,ra_object_changed_by_user:qVe,ra_otherConfig:XVe,ra_qualityCode:JVe,ra_repeat:ZVe,ra_select_folder_hint:KVe,ra_state_changed_by:QVe,ra_state_changed_from:eGe,ra_timestamp:tGe,ra_tooltip_ack:rGe,ra_tooltip_comment:nGe,ra_tooltip_copyState:aGe,ra_tooltip_customConfig:iGe,ra_tooltip_deleteObject:oGe,ra_tooltip_editObject:sGe,ra_tooltip_editState:lGe,ra_tooltip_from:cGe,ra_tooltip_lc:uGe,ra_tooltip_quality:dGe,ra_tooltip_ts:fGe,ra_tooltip_user:hGe,ra_tooltip_value:pGe,"ra_use seconds":"utiliser les secondes",ra_val:mGe,"ra_via internet":"par Internet",ra_warning_every_minute:vGe,ra_warning_every_second:gGe,sc_cron:_Ge,sc_date:yGe,sc_dates:bGe,sc_dow:wGe,sc_dows:SGe,sc_every:xGe,sc_everyN_dates:CGe,sc_everyN_dow:TGe,sc_everyN_dows:kGe,sc_everyN_hours:EGe,sc_everyN_minutes:DGe,sc_everyN_months:MGe,sc_everyN_seconds:OGe,sc_every_dates:$Ge,sc_every_dow:AGe,sc_every_dows:PGe,sc_every_hours:IGe,sc_every_minutes:RGe,sc_every_months:LGe,sc_every_seconds:NGe,sc_from:FGe,sc_hours:zGe,sc_interval:BGe,sc_intervalBetween:jGe,sc_invalid_cron:WGe,sc_minutes:HGe,sc_months:UGe,sc_once:YGe,sc_period:VGe,sc_seconds:GGe,sc_simple:qGe,sc_specific:XGe,sc_specific_dates:JGe,sc_specific_dow:ZGe,sc_specific_dows:KGe,sc_specific_hours:QGe,sc_specific_minutes:eqe,sc_specific_months:tqe,sc_specific_seconds:rqe,sc_time:nqe,sc_to:aqe,sc_wizard:iqe,sch_all:oqe,sch_astroDay:sqe,sch_astroNight:lqe,sch_astro_dawn:cqe,sch_astro_dusk:uqe,sch_astro_goldenHour:dqe,sch_astro_goldenHourEnd:fqe,sch_astro_nadir:hqe,sch_astro_nauticalDawn:pqe,sch_astro_nauticalDusk:mqe,sch_astro_night:vqe,sch_astro_nightEnd:gqe,sch_astro_solarNoon:_qe,sch_astro_sunrise:yqe,sch_astro_sunriseEnd:bqe,sch_astro_sunset:wqe,sch_astro_sunsetStart:Sqe,sch_at:xqe,sch_desc_atTime:Cqe,sch_desc_everyDay:Tqe,sch_desc_everyHour:kqe,sch_desc_everyMinute:Eqe,sch_desc_everyMonth:Dqe,sch_desc_everyNDay:Mqe,sch_desc_everyNHours:Oqe,sch_desc_everyNMinutes:$qe,sch_desc_everyNMonths:Aqe,sch_desc_everyNWeeks:Pqe,sch_desc_everyNYears:Iqe,sch_desc_everyWeek:Rqe,sch_desc_everyYear:Lqe,sch_desc_intervalFromTo:Nqe,sch_desc_never:Fqe,sch_desc_onDate:zqe,sch_desc_onDates:Bqe,sch_desc_onEveryDate:jqe,sch_desc_onMonth:Wqe,sch_desc_onMonths:Hqe,sch_desc_onWeekday:Uqe,sch_desc_onWeekdays:Yqe,sch_desc_onWeekends:Vqe,sch_desc_onWorkdays:Gqe,sch_desc_onceInPast:qqe,sch_desc_once_on:Xqe,sch_desc_validFrom:Jqe,sch_desc_validFromTo:Zqe,sch_desc_validTo:Kqe,sch_every:Qqe,sch_exactTime:eXe,sch_from:tXe,sch_fromTo:rXe,sch_intervalTime:nXe,sch_invert:aXe,sch_no_one:iXe,sch_on:oXe,sch_period:sXe,sch_periodDaily:lXe,sch_periodDates:cXe,sch_periodDay:uXe,sch_periodEvery:dXe,sch_periodEveryDay:fXe,sch_periodEveryMonth:hXe,sch_periodEveryWeek:pXe,sch_periodEveryYear:mXe,sch_periodHours:vXe,sch_periodMinutes:gXe,sch_periodMonth:_Xe,sch_periodMonthly:yXe,sch_periodOnce:bXe,sch_periodSpecificMonths:wXe,sch_periodWeek:SXe,sch_periodWeekdays:xXe,sch_periodWeekend:CXe,sch_periodWeekly:TXe,sch_periodWorkdays:kXe,sch_periodYear:EXe,sch_periodYearly:DXe,sch_specificTime:MXe,sch_time:OXe,sch_to:$Xe,sch_valid:AXe,sch_validFrom:PXe,sch_validTo:IXe,sch_wholeDay:RXe,sch_yearEveryMonth:LXe},FXe="Aggiungere",zXe="Annulla",BXe="Categorie",jXe="Controllato",WXe="Elimina",HXe="Vicino",UXe="Commerciale",YXe="Configura",VXe="Collegato",GXe="Copiato",qXe="Creare",XXe="Raccolto",JXe="Delete",ZXe="Elimina",KXe="Scartare",QXe="Disconnesso",eJe="Errore",tJe="Filtro",rJe="Venerdì",nJe="Latitudine",aJe="Longitudine",iJe="Messaggio",oJe="Lunedi",sJe="Nome",lJe="Oggetti",cJe="Ok",uJe="Prodotto",dJe="Ripetere",fJe="Sostituire",hJe="Radice",pJe="Sabato",mJe="Salva",vJe="Selezionato",gJe="stati",_Je="Domenica",yJe="Giovedì",bJe="Timestamp",wJe="Martedì",SJe="Aggiornare",xJe="Valido fino a",CJe="Valore",TJe="Versione",kJe="Mercoledì",EJe="Larghezza",DJe="SÌ",MJe="diverso",OJe="Tutti possono leggere gli oggetti",$Je="Tutti possono leggere lo stato",AJe="Tutti possono scrivere oggetti",PJe="Tutti possono scrivere stato",IJe="Il gruppo può leggere l'oggetto",RJe="Il gruppo può leggere lo stato",LJe="Il gruppo può scrivere l'oggetto",NJe="Il gruppo può scrivere lo stato",FJe="Il proprietario può leggere l'oggetto",zJe="Il proprietario può leggere lo stato",BJe="Il proprietario può scrivere l'oggetto",jJe="Il proprietario può scrivere lo stato",WJe="Bottoni",HJe="Cambiato da",UJe="vicino",YJe="Crea uno stato booleano",VJe="Crea canale",GJe="Crea dispositivo",qJe="Crea lo stato del numero",XJe="Crea stato",JJe="Crea lo stato della stringa",ZJe="g.",KJe="fr",QJe="momento",eZe="Sa",tZe="su",rZe="th",nZe="Tu",aZe="Noi",iZe="Modalità esperto",oZe="Tutti i files",sZe="Audio",lZe="Codice/JSON",cZe="immagini",uZe="Testo",dZe="video",fZe="impostazioni",hZe="senza",pZe="Funzione",mZe="ID",vZe="Nome",gZe="Ruolo",_Ze="Camera",yZe="genere",bZe="Impostazioni non valide",wZe="Ultima modifica",SZe="localmente",xZe="apr",CZe="agosto",TZe="Dic",kZe="febbraio",EZe="gen",DZe="lug",MZe="giu",OZe="Mai",$Ze="marzo",AZe="nov",PZe="ottobre",IZe="Sett",RZe="apr",LZe="agosto",NZe="Dic",FZe="febbraio",zZe="gen",BZe="lug",jZe="giu",WZe="Mai",HZe="marzo",UZe="nov",YZe="ottobre",VZe="Sett",GZe="nessuna",qZe="Oggetto modificato da",XZe="L'oggetto è stato modificato l'ultima volta alle",JZe="Impostazioni dall'altro adattatore %s",ZZe="Codice di qualità",KZe="ripetere",QZe='Per selezionare la cartella, basta tenere premuto il tasto "shift" facendo clic sulla cartella.',eKe="Stato cambiato da",tKe="Oggetto cambiato da",rKe="Timestamp",nKe="Bandiera riconosciuta",aKe="Commento",iKe="Copia il valore dello stato",oKe="Impostazioni personalizzate",sKe="Elimina oggetto",lKe="Modifica oggetto",cKe="Modifica il valore dello stato",uKe="A partire dal",dKe="Ultima modifica",fKe="Qualità",hKe="Data e ora",pKe="Utente",mKe="Valore",vKe="Valore",gKe="Attenzione: il processo CRON verrà eseguito ogni minuto durante il periodo specificato!",_Ke="Attenzione: il processo CRON verrà eseguito ogni secondo durante il periodo specificato!",yKe="CRON",bKe="Data",wKe="Date",SKe="Giorno",xKe="Giorno della settimana",CKe="Ogni",TKe="ogni N giorni",kKe="ogni Nesimo giorno della settimana",EKe="ogni N giorno della settimana",DKe="ogni N ore",MKe="ogni N minuti",OKe="ogni N mesi",$Ke="ogni N secondi",AKe="ogni giorno",PKe="Tutti i giorni della settimana",IKe="Tutti i giorni della settimana",RKe="ogni ora",LKe="ogni minuto",NKe="ogni mese",FKe="ogni secondo",zKe="A partire dal",BKe="Ore",jKe="Intervallo",WKe="Intervallo tra",HKe="CRON non valido",UKe="Minuti",YKe="mesi",VKe="Una volta",GKe="Periodo",qKe="secondi",XKe="Semplice",JKe="Orario preciso",ZKe="date specifiche",KKe="giorno/i specifico/i della settimana",QKe="giorno specifico delle settimane",eQe="orari specifici",tQe="minuti specifici",rQe="mesi specifici",nQe="secondi specifici",aQe="Tempo",iQe="Per",oQe="procedura guidata",sQe="tutti",lQe="Astro day",cQe="Astro night",uQe="Alba",dQe="Crepuscolo",fQe="Ora d'oro",hQe="Fine dell'ora d'oro",pQe="Nadir",mQe="Alba nautica",vQe="Crepuscolo nautico",gQe="Notte",_Qe="Fine della notte",yQe="Mezzogiorno solare",bQe="Alba",wQe="Fine dell'alba",SQe="Tramonto",xQe="Inizio del tramonto",CQe="a",TQe="a %s",kQe="ogni giorno",EQe="ogni ora",DQe="ogni minuto",MQe="ogni mese",OQe="ogni %s giorno",$Qe="ogni %s ore",AQe="ogni %s minuti",PQe="ogni %s mesi",IQe="ogni %s settimane",RQe="ogni %s anni",LQe="ogni settimana",NQe="ogni anno",FQe="da %s a %s",zQe="mai",BQe="su %s di %s",jQe="su %s e %s di",WQe="in ogni data di",HQe="%s",UQe="%s e %s",YQe="su %s",VQe="su %s e %s",GQe="nei finesettimana",qQe="nei giorni lavorativi",XQe="non verrà più eseguito, perché start è nel passato",JQe="su %s",ZQe="da %s",KQe="Eseguire da a",QQe="a %s",eet="ogni",tet="Orario preciso",ret="a partire dal",net="Da A",aet="Intervallo di tempo",iet="invertire",oet="nessuna",set="sopra",cet="Periodo",uet="Quotidiano",det="Date",fet="Giorno",het="Ogni",pet="Ogni giorno",met="Ogni mese",vet="Ogni settimana",get="Ogni anno",_et="Ore",yet="Minuti",bet="mese",wet="Mensile",xet="Una volta",Cet="Mesi specifici",Tet="Settimana",ket="Giorni della settimana",Eet="Fine settimana",Det="settimanalmente",Met="giorni feriali",Oet="Anno",$et="Annuale",Aet="Orario preciso",Pet="Tempo",Iet="per",Ret="Valido",Let="a partire dal",Net="per",Fet="Giorno intero",zet="ogni mese",Bet={"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_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:FXe,"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:zXe,"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:BXe,"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:jXe,ra_Clear:WXe,"ra_Clear filter":"Filtro pulito","ra_Clear icon":"Cancella icona","ra_Clone current row":"Clona riga corrente",ra_Close:HXe,"ra_Collapse all nodes":"Comprimi tutti i nodi","ra_Collapse one step node":"Comprimi un livello",ra_Commercial:UXe,ra_Configure:YXe,"ra_Configure visible columns":"Configura colonne visibili","ra_Confirm deletion of %s":"Conferma l'eliminazione di %s",ra_Connected:VXe,ra_Copied:GXe,"ra_Copied %s":'"%s" copiato',"ra_Copy content":"Copia contenuto",ra_Create:qXe,"ra_Create alias":"Crea alias","ra_Create folder":"Creare una cartella","ra_Create new folder in %s":"Crea nuova cartella in %s",ra_Crop:XXe,"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:JXe,ra_Delete:ZXe,"ra_Delete (no confirm for 5 mins)":"Elimina (nessuna conferma per 5 minuti)","ra_Delete current row":"Elimina la riga corrente","ra_Deselect all":"Deseleziona tutto","ra_Device → Channel → State":"Dispositivo → Canale → Stato",ra_Discard:KXe,ra_Disconnected:QXe,"ra_Do not export values of states":"Non esportare i valori degli stati","ra_Do not use let's encrypt":"Non utilizzare crittografiamo","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 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_Error:eJe,"ra_Expand all nodes":"Espandi tutti i nodi","ra_Expand one step node":"Espandi un livello","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:tJe,"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:rJe,"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_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 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:nJe,"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_Longitude:aJe,'ra_May not trigger "updateLicenses"':'Potrebbe non attivare "updateLicenses"',ra_Message:iJe,ra_Monday:oJe,"ra_Move down":"Abbassati","ra_Move up":"Andare avanti",ra_Name:sJe,"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 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_Objects:lJe,ra_Ok:cJe,"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 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_Private certificate":"Certificato privato",ra_Product:uJe,"ra_Public certificate":"Certificato pubblico","ra_Quality code":"Qualità","ra_Refresh tree":"Aggiorna l'albero","ra_Reload files":"Ricarica i file",ra_Repeat:dJe,ra_Replace:fJe,"ra_Request timed out":"Tempo scaduto per la richiesta","ra_Restrict to folder":"Limita alla cartella",ra_Root:hJe,ra_Saturday:pJe,ra_Save:mJe,"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:vJe,"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_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:gJe,"ra_Suitable license not found in license manager":"Licenza adatta non trovata nel gestore delle licenze",ra_Sunday:_Je,"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:yJe,ra_Timestamp:bJe,"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:wJe,"ra_Unknown error":"Errore sconosciuto","ra_Unknown error!":"Errore sconosciuto!",ra_Update:SJe,"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:xJe,ra_Value:CJe,ra_Version:TJe,"ra_View file":"Vedi il file","ra_View: %s":"Visualizza: %s",ra_Wednesday:kJe,ra_Width:EJe,ra_Yes:DJe,"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___different__:MJe,ra_aclEveryone_read_object:OJe,ra_aclEveryone_read_state:$Je,ra_aclEveryone_write_object:AJe,ra_aclEveryone_write_state:PJe,ra_aclGroup_read_object:IJe,ra_aclGroup_read_state:RJe,ra_aclGroup_write_object:LJe,ra_aclGroup_write_state:NJe,ra_aclOwner_read_object:FJe,ra_aclOwner_read_state:zJe,ra_aclOwner_write_object:BJe,ra_aclOwner_write_state:jJe,ra_buttons:WJe,ra_changedFrom:HJe,ra_close:UJe,ra_create_boolean_state:YJe,ra_create_channel:VJe,ra_create_device:GJe,ra_create_number_state:qJe,ra_create_state:XJe,ra_create_string_state:JJe,ra_daysShortText:ZJe,ra_dow_Fr:KJe,ra_dow_Mo:QJe,ra_dow_Sa:eZe,ra_dow_Su:tZe,ra_dow_Th:rZe,ra_dow_Tu:nZe,ra_dow_We:aZe,ra_expertMode:iZe,ra_fileType_all:oZe,ra_fileType_audio:sZe,ra_fileType_code:lZe,ra_fileType_images:cZe,ra_fileType_txt:uZe,ra_fileType_video:dZe,"ra_fileType_video,":"video",ra_filter_customs:fZe,ra_filter_customs_without:hZe,ra_filter_func:pZe,ra_filter_id:mZe,ra_filter_name:vZe,ra_filter_role:gZe,ra_filter_room:_Ze,ra_filter_type:yZe,"ra_import data from %s file":"Importa dati dal file %s",ra_invalidConfig:bZe,ra_lastChange:wZe,ra_locally:SZe,ra_month_Apr:xZe,ra_month_Aug:CZe,ra_month_Dec:TZe,ra_month_Feb:kZe,ra_month_Jan:EZe,ra_month_Jul:DZe,ra_month_Jun:MZe,ra_month_Mai:OZe,ra_month_Mar:$Ze,ra_month_Nov:AZe,ra_month_Oct:PZe,ra_month_Sep:IZe,ra_months_Apr:RZe,ra_months_Aug:LZe,ra_months_Dec:NZe,ra_months_Feb:FZe,ra_months_Jan:zZe,ra_months_Jul:BZe,ra_months_Jun:jZe,ra_months_Mai:WZe,ra_months_Mar:HZe,ra_months_Nov:UZe,ra_months_Oct:YZe,ra_months_Sep:VZe,ra_none:GZe,ra_object_changed_by:qZe,ra_object_changed_by_user:XZe,ra_otherConfig:JZe,ra_qualityCode:ZZe,ra_repeat:KZe,ra_select_folder_hint:QZe,ra_state_changed_by:eKe,ra_state_changed_from:tKe,ra_timestamp:rKe,ra_tooltip_ack:nKe,ra_tooltip_comment:aKe,ra_tooltip_copyState:iKe,ra_tooltip_customConfig:oKe,ra_tooltip_deleteObject:sKe,ra_tooltip_editObject:lKe,ra_tooltip_editState:cKe,ra_tooltip_from:uKe,ra_tooltip_lc:dKe,ra_tooltip_quality:fKe,ra_tooltip_ts:hKe,ra_tooltip_user:pKe,ra_tooltip_value:mKe,"ra_use seconds":"usa i secondi",ra_val:vKe,"ra_via internet":"attraverso internet",ra_warning_every_minute:gKe,ra_warning_every_second:_Ke,sc_cron:yKe,sc_date:bKe,sc_dates:wKe,sc_dow:SKe,sc_dows:xKe,sc_every:CKe,sc_everyN_dates:TKe,sc_everyN_dow:kKe,sc_everyN_dows:EKe,sc_everyN_hours:DKe,sc_everyN_minutes:MKe,sc_everyN_months:OKe,sc_everyN_seconds:$Ke,sc_every_dates:AKe,sc_every_dow:PKe,sc_every_dows:IKe,sc_every_hours:RKe,sc_every_minutes:LKe,sc_every_months:NKe,sc_every_seconds:FKe,sc_from:zKe,sc_hours:BKe,sc_interval:jKe,sc_intervalBetween:WKe,sc_invalid_cron:HKe,sc_minutes:UKe,sc_months:YKe,sc_once:VKe,sc_period:GKe,sc_seconds:qKe,sc_simple:XKe,sc_specific:JKe,sc_specific_dates:ZKe,sc_specific_dow:KKe,sc_specific_dows:QKe,sc_specific_hours:eQe,sc_specific_minutes:tQe,sc_specific_months:rQe,sc_specific_seconds:nQe,sc_time:aQe,sc_to:iQe,sc_wizard:oQe,sch_all:sQe,sch_astroDay:lQe,sch_astroNight:cQe,sch_astro_dawn:uQe,sch_astro_dusk:dQe,sch_astro_goldenHour:fQe,sch_astro_goldenHourEnd:hQe,sch_astro_nadir:pQe,sch_astro_nauticalDawn:mQe,sch_astro_nauticalDusk:vQe,sch_astro_night:gQe,sch_astro_nightEnd:_Qe,sch_astro_solarNoon:yQe,sch_astro_sunrise:bQe,sch_astro_sunriseEnd:wQe,sch_astro_sunset:SQe,sch_astro_sunsetStart:xQe,sch_at:CQe,sch_desc_atTime:TQe,sch_desc_everyDay:kQe,sch_desc_everyHour:EQe,sch_desc_everyMinute:DQe,sch_desc_everyMonth:MQe,sch_desc_everyNDay:OQe,sch_desc_everyNHours:$Qe,sch_desc_everyNMinutes:AQe,sch_desc_everyNMonths:PQe,sch_desc_everyNWeeks:IQe,sch_desc_everyNYears:RQe,sch_desc_everyWeek:LQe,sch_desc_everyYear:NQe,sch_desc_intervalFromTo:FQe,sch_desc_never:zQe,sch_desc_onDate:BQe,sch_desc_onDates:jQe,sch_desc_onEveryDate:WQe,sch_desc_onMonth:HQe,sch_desc_onMonths:UQe,sch_desc_onWeekday:YQe,sch_desc_onWeekdays:VQe,sch_desc_onWeekends:GQe,sch_desc_onWorkdays:qQe,sch_desc_onceInPast:XQe,sch_desc_once_on:JQe,sch_desc_validFrom:ZQe,sch_desc_validFromTo:KQe,sch_desc_validTo:QQe,sch_every:eet,sch_exactTime:tet,sch_from:ret,sch_fromTo:net,sch_intervalTime:aet,sch_invert:iet,sch_no_one:oet,sch_on:set,sch_period:cet,sch_periodDaily:uet,sch_periodDates:det,sch_periodDay:fet,sch_periodEvery:het,sch_periodEveryDay:pet,sch_periodEveryMonth:met,sch_periodEveryWeek:vet,sch_periodEveryYear:get,sch_periodHours:_et,sch_periodMinutes:yet,sch_periodMonth:bet,sch_periodMonthly:wet,sch_periodOnce:xet,sch_periodSpecificMonths:Cet,sch_periodWeek:Tet,sch_periodWeekdays:ket,sch_periodWeekend:Eet,sch_periodWeekly:Det,sch_periodWorkdays:Met,sch_periodYear:Oet,sch_periodYearly:$et,sch_specificTime:Aet,sch_time:Pet,sch_to:Iet,sch_valid:Ret,sch_validFrom:Let,sch_validTo:Net,sch_wholeDay:Fet,sch_yearEveryMonth:zet},jet="Adjuntar",Wet="Cancelar",Het="Categorías",Uet="Comprobado",Yet="Borrar",Vet="Cerca",Get="Comercial",qet="Configurar",Xet="Conectado",Jet="Copiado",Zet="Crear",Ket="Cultivo",Qet="Delete",ett="Eliminar",ttt="Desechar",rtt="Desconectado",ntt="Error",att="Filtrar",itt="Viernes",ott="Latitud",stt="Longitud",ltt="Mensaje",ctt="Lunes",utt="Nombre",dtt="Objetos",ftt="Okay",htt="Producto",ptt="Repetir",mtt="Reemplazar",vtt="Raíz",gtt="Sábado",_tt="Salvar",ytt="Seleccionado",btt="Estados",wtt="Domingo",Stt="Jueves",xtt="Marca de tiempo",Ctt="Martes",Ttt="Actualizar",ktt="Válida hasta",Ett="Valor",Dtt="Versión",Mtt="Miércoles",Ott="Anchura",$tt="Sí",Att="diferente",Ptt="Todo el mundo puede leer el objeto",Itt="Todos pueden leer el estado",Rtt="Todos pueden escribir objetos",Ltt="Todos pueden escribir el estado",Ntt="El grupo puede leer el objeto",Ftt="El grupo puede leer el estado",ztt="El grupo puede escribir un objeto",Btt="El grupo puede escribir el estado",jtt="El propietario puede leer el objeto",Wtt="El propietario puede leer el estado",Htt="El propietario puede escribir el objeto",Utt="El propietario puede escribir el estado",Ytt="Botones",Vtt="Cambiaron desde",Gtt="cerrar",qtt="Crear estado booleano",Xtt="Crear canal",Jtt="Crear dispositivo",Ztt="Crear estado numérico",Ktt="Crear estado",Qtt="Crear estado de cadena",ert="d.",trt="Fr",rrt="Mes",nrt="Sa",art="Su",irt="Th",ort="Tu",srt="Nosotros",lrt="Modo experto",crt="Todos los archivos",urt="Audio",drt="Código/JSON",frt="Imágenes",hrt="Texto",prt="Video",mrt="Configuraciones",vrt="sin",grt="Función",_rt="ID",yrt="Nombre",brt="Papel",wrt="Habitación",Srt="Tipo",xrt="Configuraciones inválidas",Crt="Ultimo cambio",Trt="en la zona",krt="Abr",Ert="Ago",Drt="Dic",Mrt="Feb",Ort="Ene",$rt="Jul",Art="Jun",Prt="Mai",Irt="Mar",Rrt="Nov",Lrt="Oct",Nrt="Sep",Frt="Abr",zrt="Ago",Brt="Dic",jrt="Feb",Wrt="Ene",Hrt="Jul",Urt="Jun",Yrt="Mai",Vrt="Mar",Grt="Nov",qrt="Oct",Xrt="Sep",Jrt="ninguno",Zrt="Objeto cambiado por",Krt="Objeto cambiado por última vez a las",Qrt="Configuraciones de otro adaptador %s",ent="Código de calidad",tnt="repetir",rnt='Para seleccionar la carpeta, simplemente mantenga presionada la tecla "shift" haciendo clic en la carpeta.',nnt="Estado cambiado por",ant="Objeto cambiado de",int="Marca de tiempo",ont="Bandera reconocida",snt="Comentario",lnt="Copie el valor del estado",cnt="Ajustes personalizados",unt="Eliminar objeto",dnt="Editar objeto",fnt="Edite el valor del estado",hnt="Desde",pnt="Último cambio",mnt="Calidad",vnt="Sello de tiempo",gnt="Usuario",_nt="Valor",ynt="Valor",bnt="Advertencia: ¡El trabajo CRON se ejecutará cada minuto durante el período especificado!",wnt="Advertencia: ¡El trabajo CRON se ejecutará cada segundo durante el período especificado!",Snt="CRON",xnt="Fecha",Cnt="fechas",Tnt="Día",knt="Día de la semana",Ent="Cada",Dnt="cada N días",Mnt="cada enésimo día de la semana",Ont="cada N día de la semana",$nt="cada N horas",Ant="cada N minutos",Pnt="cada N meses",Int="cada N segundos",Rnt="cada día",Lnt="Cada día de la semana",Nnt="Cada día de la semana",Fnt="cada hora",znt="cada minuto",Bnt="cada mes",jnt="cada segundo",Wnt="De",Hnt="Horas",Unt="Intervalo",Ynt="Intervalo entre",Vnt="CRON no válido",Gnt="Minutos",qnt="meses",Xnt="Una vez",Jnt="Período",Znt="Segundos",Knt="Sencillo",Qnt="Tiempo específico",eat="fechas especificas",tat="día(s) específico(s) de la semana",rat="día específico de semanas",nat="horas específicas",aat="minutos específicos",iat="meses específicos",oat="segundos específicos",sat="Hora",lat="A",cat="Mago",uat="todas",dat="Día astro",fat="Noche astro",hat="Amanecer",pat="Oscuridad",mat="hora dorada",vat="Fin de la hora dorada",gat="Nadir",_at="Amanecer náutico",yat="Anochecer náutico",bat="Noche",wat="Fin de la noche",Sat="Mediodía solar",xat="amanecer",Cat="Fin del amanecer",Tat="Puesta de sol",kat="Puesta de sol",Eat="a",Dat="en %s",Mat="cada día",Oat="cada hora",$at="cada minuto",Aat="cada mes",Pat="cada %s días",Iat="cada %s horas",Rat="cada %s minutos",Lat="cada %s meses",Nat="cada %s semanas",Fat="cada %s años",zat="cada semana",Bat="todos los años",jat="de %s a %s",Wat="Nunca",Hat="en %s de %s",Uat="en %s y %s de",Yat="en cada fecha de",Vat="%s",Gat="%s y %s",qat="en %s",Xat="en %s y %s",Jat="en los fines de semana",Zat="en días laborables",Kat="ya no se ejecutará más, porque el inicio está en el pasado",Qat="en %s",eit="de %s",tit="Ejecutar desde hasta",rit="a %s",nit="cada",ait="Tiempo específico",iit="de",oit="De-a",sit="Tiempo de intervalo",lit="invertir; poner boca abajo o en la posición opuesta, orden o arreglo; Boca abajo",cit="ninguna",uit="en",dit="Período",fit="Diario",hit="fechas",pit="Día",mit="Cada",vit="Cada día",git="Cada mes",_it="Cada semana",yit="Todos los años",bit="Horas",wit="Minutos",Sit="mes",xit="Mensual",Cit="Una vez",Tit="Meses específicos",kit="Semana",Eit="Días laborables",Dit="Fin de semana",Mit="Semanal",Oit="Días laborables",$it="Año",Ait="Anual",Pit="Tiempo específico",Iit="Hora",Rit="a",Lit="Válido",Nit="de",Fit="a",zit="Todo el dia",Bit="cada mes",jit={"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_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:jet,"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:Wet,"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:Het,"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:Uet,ra_Clear:Yet,"ra_Clear filter":"Filtro claro","ra_Clear icon":"Icono claro","ra_Clone current row":"Clonar fila actual",ra_Close:Vet,"ra_Collapse all nodes":"Contraer todos los nodos","ra_Collapse one step node":"Contraer un nivel",ra_Commercial:Get,ra_Configure:qet,"ra_Configure visible columns":"Configurar columnas visibles","ra_Confirm deletion of %s":"Confirmar la eliminación de %s",ra_Connected:Xet,ra_Copied:Jet,"ra_Copied %s":'Copiado "%s"',"ra_Copy content":"Copiar contenido",ra_Create:Zet,"ra_Create alias":"Crear alias","ra_Create folder":"Crear carpeta","ra_Create new folder in %s":"Crear nueva carpeta en %s",ra_Crop:Ket,"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:Qet,ra_Delete:ett,"ra_Delete (no confirm for 5 mins)":"Eliminar (sin confirmar durante 5 minutos)","ra_Delete current row":"Eliminar fila actual","ra_Deselect all":"Deselecciona todo","ra_Device → Channel → State":"Dispositivo → Canal → Estado",ra_Discard:ttt,ra_Disconnected:rtt,"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_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 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_Error:ntt,"ra_Expand all nodes":"Expandir todos los nodos","ra_Expand one step node":"Expandir un nivel","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:att,"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:itt,"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_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 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:ott,"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_Longitude:stt,'ra_May not trigger "updateLicenses"':'No puede activar "updateLicenses"',ra_Message:ltt,ra_Monday:ctt,"ra_Move down":"Mover hacia abajo","ra_Move up":"Ascender",ra_Name:utt,"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 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_Objects:dtt,ra_Ok:ftt,"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 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_Private certificate":"certificado privado",ra_Product:htt,"ra_Public certificate":"Certificado público","ra_Quality code":"Calidad","ra_Refresh tree":"Actualizar árbol","ra_Reload files":"Recargar archivos",ra_Repeat:ptt,ra_Replace:mtt,"ra_Request timed out":"Tiempo de espera agotado","ra_Restrict to folder":"Restringir a carpeta",ra_Root:vtt,ra_Saturday:gtt,ra_Save:_tt,"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:ytt,"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_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:btt,"ra_Suitable license not found in license manager":"Licencia adecuada no encontrada en el administrador de licencias",ra_Sunday:wtt,"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:Stt,ra_Timestamp:xtt,"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:Ctt,"ra_Unknown error":"Error desconocido","ra_Unknown error!":"¡Error desconocido!",ra_Update:Ttt,"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:ktt,ra_Value:Ett,ra_Version:Dtt,"ra_View file":"Ver archivo","ra_View: %s":"Ver: %s",ra_Wednesday:Mtt,ra_Width:Ott,ra_Yes:$tt,"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___different__:Att,ra_aclEveryone_read_object:Ptt,ra_aclEveryone_read_state:Itt,ra_aclEveryone_write_object:Rtt,ra_aclEveryone_write_state:Ltt,ra_aclGroup_read_object:Ntt,ra_aclGroup_read_state:Ftt,ra_aclGroup_write_object:ztt,ra_aclGroup_write_state:Btt,ra_aclOwner_read_object:jtt,ra_aclOwner_read_state:Wtt,ra_aclOwner_write_object:Htt,ra_aclOwner_write_state:Utt,ra_buttons:Ytt,ra_changedFrom:Vtt,ra_close:Gtt,ra_create_boolean_state:qtt,ra_create_channel:Xtt,ra_create_device:Jtt,ra_create_number_state:Ztt,ra_create_state:Ktt,ra_create_string_state:Qtt,ra_daysShortText:ert,ra_dow_Fr:trt,ra_dow_Mo:rrt,ra_dow_Sa:nrt,ra_dow_Su:art,ra_dow_Th:irt,ra_dow_Tu:ort,ra_dow_We:srt,ra_expertMode:lrt,ra_fileType_all:crt,ra_fileType_audio:urt,ra_fileType_code:drt,ra_fileType_images:frt,ra_fileType_txt:hrt,ra_fileType_video:prt,"ra_fileType_video,":"Video",ra_filter_customs:mrt,ra_filter_customs_without:vrt,ra_filter_func:grt,ra_filter_id:_rt,ra_filter_name:yrt,ra_filter_role:brt,ra_filter_room:wrt,ra_filter_type:Srt,"ra_import data from %s file":"Importar datos del archivo %s",ra_invalidConfig:xrt,ra_lastChange:Crt,ra_locally:Trt,ra_month_Apr:krt,ra_month_Aug:Ert,ra_month_Dec:Drt,ra_month_Feb:Mrt,ra_month_Jan:Ort,ra_month_Jul:$rt,ra_month_Jun:Art,ra_month_Mai:Prt,ra_month_Mar:Irt,ra_month_Nov:Rrt,ra_month_Oct:Lrt,ra_month_Sep:Nrt,ra_months_Apr:Frt,ra_months_Aug:zrt,ra_months_Dec:Brt,ra_months_Feb:jrt,ra_months_Jan:Wrt,ra_months_Jul:Hrt,ra_months_Jun:Urt,ra_months_Mai:Yrt,ra_months_Mar:Vrt,ra_months_Nov:Grt,ra_months_Oct:qrt,ra_months_Sep:Xrt,ra_none:Jrt,ra_object_changed_by:Zrt,ra_object_changed_by_user:Krt,ra_otherConfig:Qrt,ra_qualityCode:ent,ra_repeat:tnt,ra_select_folder_hint:rnt,ra_state_changed_by:nnt,ra_state_changed_from:ant,ra_timestamp:int,ra_tooltip_ack:ont,ra_tooltip_comment:snt,ra_tooltip_copyState:lnt,ra_tooltip_customConfig:cnt,ra_tooltip_deleteObject:unt,ra_tooltip_editObject:dnt,ra_tooltip_editState:fnt,ra_tooltip_from:hnt,ra_tooltip_lc:pnt,ra_tooltip_quality:mnt,ra_tooltip_ts:vnt,ra_tooltip_user:gnt,ra_tooltip_value:_nt,"ra_use seconds":"usar segundos",ra_val:ynt,"ra_via internet":"vía Internet",ra_warning_every_minute:bnt,ra_warning_every_second:wnt,sc_cron:Snt,sc_date:xnt,sc_dates:Cnt,sc_dow:Tnt,sc_dows:knt,sc_every:Ent,sc_everyN_dates:Dnt,sc_everyN_dow:Mnt,sc_everyN_dows:Ont,sc_everyN_hours:$nt,sc_everyN_minutes:Ant,sc_everyN_months:Pnt,sc_everyN_seconds:Int,sc_every_dates:Rnt,sc_every_dow:Lnt,sc_every_dows:Nnt,sc_every_hours:Fnt,sc_every_minutes:znt,sc_every_months:Bnt,sc_every_seconds:jnt,sc_from:Wnt,sc_hours:Hnt,sc_interval:Unt,sc_intervalBetween:Ynt,sc_invalid_cron:Vnt,sc_minutes:Gnt,sc_months:qnt,sc_once:Xnt,sc_period:Jnt,sc_seconds:Znt,sc_simple:Knt,sc_specific:Qnt,sc_specific_dates:eat,sc_specific_dow:tat,sc_specific_dows:rat,sc_specific_hours:nat,sc_specific_minutes:aat,sc_specific_months:iat,sc_specific_seconds:oat,sc_time:sat,sc_to:lat,sc_wizard:cat,sch_all:uat,sch_astroDay:dat,sch_astroNight:fat,sch_astro_dawn:hat,sch_astro_dusk:pat,sch_astro_goldenHour:mat,sch_astro_goldenHourEnd:vat,sch_astro_nadir:gat,sch_astro_nauticalDawn:_at,sch_astro_nauticalDusk:yat,sch_astro_night:bat,sch_astro_nightEnd:wat,sch_astro_solarNoon:Sat,sch_astro_sunrise:xat,sch_astro_sunriseEnd:Cat,sch_astro_sunset:Tat,sch_astro_sunsetStart:kat,sch_at:Eat,sch_desc_atTime:Dat,sch_desc_everyDay:Mat,sch_desc_everyHour:Oat,sch_desc_everyMinute:$at,sch_desc_everyMonth:Aat,sch_desc_everyNDay:Pat,sch_desc_everyNHours:Iat,sch_desc_everyNMinutes:Rat,sch_desc_everyNMonths:Lat,sch_desc_everyNWeeks:Nat,sch_desc_everyNYears:Fat,sch_desc_everyWeek:zat,sch_desc_everyYear:Bat,sch_desc_intervalFromTo:jat,sch_desc_never:Wat,sch_desc_onDate:Hat,sch_desc_onDates:Uat,sch_desc_onEveryDate:Yat,sch_desc_onMonth:Vat,sch_desc_onMonths:Gat,sch_desc_onWeekday:qat,sch_desc_onWeekdays:Xat,sch_desc_onWeekends:Jat,sch_desc_onWorkdays:Zat,sch_desc_onceInPast:Kat,sch_desc_once_on:Qat,sch_desc_validFrom:eit,sch_desc_validFromTo:tit,sch_desc_validTo:rit,sch_every:nit,sch_exactTime:ait,sch_from:iit,sch_fromTo:oit,sch_intervalTime:sit,sch_invert:lit,sch_no_one:cit,sch_on:uit,sch_period:dit,sch_periodDaily:fit,sch_periodDates:hit,sch_periodDay:pit,sch_periodEvery:mit,sch_periodEveryDay:vit,sch_periodEveryMonth:git,sch_periodEveryWeek:_it,sch_periodEveryYear:yit,sch_periodHours:bit,sch_periodMinutes:wit,sch_periodMonth:Sit,sch_periodMonthly:xit,sch_periodOnce:Cit,sch_periodSpecificMonths:Tit,sch_periodWeek:kit,sch_periodWeekdays:Eit,sch_periodWeekend:Dit,sch_periodWeekly:Mit,sch_periodWorkdays:Oit,sch_periodYear:$it,sch_periodYearly:Ait,sch_specificTime:Pit,sch_time:Iit,sch_to:Rit,sch_valid:Lit,sch_validFrom:Nit,sch_validTo:Fit,sch_wholeDay:zit,sch_yearEveryMonth:Bit},Wit="Dodać",Hit="Anuluj",Uit="Kategorie",Yit="Sprawdzony",Vit="Kasować",Git="Blisko",qit="Handlowy",Xit="Konfiguruj",Jit="Połączony",Zit="Skopiowano",Kit="Stwórz",Qit="Przyciąć",eot="Delete",tot="Usunąć",rot="Wyrzucać",not="Niepowiązany",aot="Błąd",iot="Filtr",oot="Piątek",sot="Szerokość",lot="Długość geograficzna",cot="Wiadomość",uot="Poniedziałek",dot="Nazwa",fot="Obiekty",hot="Dobrze",pot="Produkt",mot="Powtarzać",vot="Zastępować",got="Korzeń",_ot="Sobota",yot="Zapisać",bot="Wybrany",wot="Stany",Sot="Niedziela",xot="Czwartek",Cot="Znak czasu",Tot="Wtorek",kot="Aktualizacja",Eot="Obowiązuje do",Dot="Wartość",Mot="Wersja",Oot="Środa",$ot="Szerokość",Aot="Tak",Pot="różne",Iot="Każdy może czytać obiekt",Rot="Każdy może czytać stan",Lot="Każdy może pisać przedmiot",Not="Każdy może pisać stan",Fot="Grupa może odczytać obiekt",zot="Grupa może odczytać stan",Bot="Grupa może pisać obiekt",jot="Grupa może pisać stan",Wot="Właściciel może czytać obiekt",Hot="Właściciel może odczytać stan",Uot="Właściciel może napisać obiekt",Yot="Właściciel może pisać stan",Vot="guziki",Got="Zmieniony z",qot="blisko",Xot="Utwórz stan logiczny",Jot="Utwórz kanał",Zot="Utwórz urządzenie",Kot="Utwórz stan liczbowy",Qot="Utwórz stan",est="Utwórz stan ciągu",tst="d.",rst="Ks",nst="Mo",ast="Sa",ist="Su",ost="Th",sst="Tu",lst="My",cst="Tryb ekspercki",ust="Wszystkie pliki",dst="Audio",fst="Kod/JSON",hst="Obrazy",pst="Tekst",mst="Wideo",vst="Ustawienia",gst="bez",_st="Funkcjonować",yst="ID",bst="Imię",wst="Rola",Sst="Sala",xst="Rodzaj",Cst="Nieprawidłowe ustawienia",Tst="Ostatnia zmiana",kst="lokalnie",Est="kwiecień",Dst="sierpień",Mst="grudzień",Ost="luty",$st="styczeń",Ast="lipiec",Pst="czerwiec",Ist="Mai",Rst="Zniszczyć",Lst="listopad",Nst="październik",Fst="wrzesień",zst="kwiecień",Bst="sierpień",jst="grudzień",Wst="luty",Hst="styczeń",Ust="lipiec",Yst="czerwiec",Vst="Mai",Gst="Zniszczyć",qst="listopad",Xst="październik",Jst="wrzesień",Zst="Żaden",Kst="Obiekt zmieniony przez",Qst="Obiekt ostatnio zmieniony o godz",elt="Ustawienia z innego adaptera %s",tlt="Kod jakości",rlt="powtarzać",nlt="Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.",alt="Stan zmieniony przez",ilt="Obiekt zmieniony z",olt="Znak czasu",slt="Potwierdzon",llt="Komentarz",clt="Skopiuj wartość stanu",ult="Własne ustawienia",dlt="Usuń obiekt",flt="Edytuj obiekt",hlt="Edytuj wartość stanu",plt="Z",mlt="Ostatnia zmiana",vlt="Jakość",glt="Znak czasu",_lt="Użytkownik",ylt="Wartość",blt="Wartość",wlt="Ostrzeżenie: Zadanie CRON będzie uruchamiane co minutę w określonym przedziale czasowym!",Slt="Ostrzeżenie: Zadanie CRON będzie uruchamiane co sekundę w określonym przedziale czasowym!",xlt="CRON",Clt="Data",Tlt="Daktyle",klt="Dzień",Elt="Dzień tygodnia",Dlt="Każdy",Mlt="co N dni",Olt="w każdy N-ty dzień tygodnia",$lt="co N dnia tygodnia",Alt="co N godzin",Plt="co N minut",Ilt="co N miesięcy",Rlt="co N sekund",Llt="codziennie",Nlt="każdy dzień tygodnia",Flt="każdy dzień tygodnia",zlt="co godzinę",Blt="każda minuta",jlt="każdego miesiąca",Wlt="każda sekunda",Hlt="Od",Ult="godziny",Ylt="Interwał",Vlt="Interwał między",Glt="Nieprawidłowy CRON",qlt="Minuty",Xlt="miesięcy",Jlt="Pewnego razu",Zlt="Kropka",Klt="sekundy",Qlt="Prosty",ect="Określony czas",tct="konkretne daty",rct="określone dni tygodnia",nct="określony dzień tygodni",act="określone godziny",ict="określone minuty",oct="określone miesiące",sct="określone sekundy",lct="Czas",cct="Do",uct="Czarodziej",dct="wszystko",fct="Dzień Astro",hct="Noc Astro",pct="Świt",mct="Zmierzch",vct="złota godzina",gct="Koniec złotej godziny",_ct="Nadir",yct="Morski świt",bct="Morski zmierzch",wct="Noc",Sct="Koniec nocy",xct="Południe słoneczne",Cct="wschód słońca",Tct="Koniec wschodu słońca",kct="Zachód słońca",Ect="Początek zachodu słońca",Dct="w",Mct="na %s",Oct="codziennie",$ct="co godzinę",Act="każda minuta",Pct="każdego miesiąca",Ict="każdego dnia %s",Rct="co %s godzin",Lct="co %s minut",Nct="co %s miesięcy",Fct="co %s tygodni",zct="co %s lat",Bct="co tydzień",jct="każdego roku",Wct="od %s do %s",Hct="nigdy",Uct="na %s z %s",Yct="na %s i %s z",Vct="w każdą datę",Gct="%s",qct="%s i %s",Xct="na %s",Jct="na %s i %s",Zct="w weekendy",Kct="w dni robocze",Qct="nie będzie już wykonywany, ponieważ start jest w przeszłości",eut="na %s",tut="z %s",rut="Wykonaj od do",nut="do %s",aut="każdy",iut="Określony czas",out="od",sut="Od-do",lut="Czas przerwy",cut="odwracać",uut="Żaden",dut="na",fut="Kropka",hut="Codziennie",put="Daktyle",mut="Dzień",vut="Każdy",gut="Codziennie",_ut="Każdego miesiąca",yut="Co tydzień",but="Każdego roku",wut="godziny",Sut="Minuty",xut="miesiąc",Cut="Miesięczny",Tut="Pewnego razu",kut="Określone miesiące",Eut="Tydzień",Dut="Dni powszednie",Mut="Weekend",Out="Co tydzień",$ut="Dni robocze",Aut="Rok",Put="Rocznie",Iut="Określony czas",Rut="Czas",Lut="do",Nut="Ważny",Fut="od",zut="do",But="Cały dzień",jut="każdego miesiąca",Wut={"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_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:Wit,"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:Hit,"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:Uit,"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:Yit,ra_Clear:Vit,"ra_Clear filter":"Czysty filtr","ra_Clear icon":"Wyczyść ikonę","ra_Clone current row":"Sklonuj bieżący wiersz",ra_Close:Git,"ra_Collapse all nodes":"Zwiń wszystkie węzły","ra_Collapse one step node":"Zwiń o jeden poziom",ra_Commercial:qit,ra_Configure:Xit,"ra_Configure visible columns":"Skonfiguruj widoczne kolumny","ra_Confirm deletion of %s":"Potwierdź usunięcie %s",ra_Connected:Jit,ra_Copied:Zit,"ra_Copied %s":'Skopiowano "%s"',"ra_Copy content":"Kopiuj zawartość",ra_Create:Kit,"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:Qit,"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:eot,ra_Delete:tot,"ra_Delete (no confirm for 5 mins)":"Usuń (bez potwierdzenia przez 5 minut)","ra_Delete current row":"Usuń bieżący wiersz","ra_Deselect all":"Odznacz wszystko","ra_Device → Channel → State":"Urządzenie → Kanał → Stan",ra_Discard:rot,ra_Disconnected:not,"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_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 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_Error:aot,"ra_Expand all nodes":"Rozwiń wszystkie węzły","ra_Expand one step node":"Rozwiń o jeden poziom","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:iot,"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:oot,"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_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 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:sot,"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_Longitude:lot,'ra_May not trigger "updateLicenses"':"Może nie uruchamiać „updateLicenses”",ra_Message:cot,ra_Monday:uot,"ra_Move down":"Padnij","ra_Move up":"Podnieść",ra_Name:dot,"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 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_Objects:fot,ra_Ok:hot,"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 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_Private certificate":"Prywatny certyfikat",ra_Product:pot,"ra_Public certificate":"Certyfikat publiczny","ra_Quality code":"Jakości","ra_Refresh tree":"Odśwież drzewo","ra_Reload files":"Załaduj ponownie pliki",ra_Repeat:mot,ra_Replace:vot,"ra_Request timed out":"Upłynął limit czasu żądania","ra_Restrict to folder":"Ogranicz do folderu",ra_Root:got,ra_Saturday:_ot,ra_Save:yot,"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:bot,"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_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:wot,"ra_Suitable license not found in license manager":"Nie znaleziono odpowiedniej licencji w menedżerze licencji",ra_Sunday:Sot,"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:xot,ra_Timestamp:Cot,"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:Tot,"ra_Unknown error":"Nieznany błąd","ra_Unknown error!":"Nieznany błąd!",ra_Update:kot,"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:Eot,ra_Value:Dot,ra_Version:Mot,"ra_View file":"Zobaczyć plik","ra_View: %s":"Widok: %s",ra_Wednesday:Oot,ra_Width:$ot,ra_Yes:Aot,"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___different__:Pot,ra_aclEveryone_read_object:Iot,ra_aclEveryone_read_state:Rot,ra_aclEveryone_write_object:Lot,ra_aclEveryone_write_state:Not,ra_aclGroup_read_object:Fot,ra_aclGroup_read_state:zot,ra_aclGroup_write_object:Bot,ra_aclGroup_write_state:jot,ra_aclOwner_read_object:Wot,ra_aclOwner_read_state:Hot,ra_aclOwner_write_object:Uot,ra_aclOwner_write_state:Yot,ra_buttons:Vot,ra_changedFrom:Got,ra_close:qot,ra_create_boolean_state:Xot,ra_create_channel:Jot,ra_create_device:Zot,ra_create_number_state:Kot,ra_create_state:Qot,ra_create_string_state:est,ra_daysShortText:tst,ra_dow_Fr:rst,ra_dow_Mo:nst,ra_dow_Sa:ast,ra_dow_Su:ist,ra_dow_Th:ost,ra_dow_Tu:sst,ra_dow_We:lst,ra_expertMode:cst,ra_fileType_all:ust,ra_fileType_audio:dst,ra_fileType_code:fst,ra_fileType_images:hst,ra_fileType_txt:pst,ra_fileType_video:mst,"ra_fileType_video,":"Wideo",ra_filter_customs:vst,ra_filter_customs_without:gst,ra_filter_func:_st,ra_filter_id:yst,ra_filter_name:bst,ra_filter_role:wst,ra_filter_room:Sst,ra_filter_type:xst,"ra_import data from %s file":"Importuj dane z pliku %s",ra_invalidConfig:Cst,ra_lastChange:Tst,ra_locally:kst,ra_month_Apr:Est,ra_month_Aug:Dst,ra_month_Dec:Mst,ra_month_Feb:Ost,ra_month_Jan:$st,ra_month_Jul:Ast,ra_month_Jun:Pst,ra_month_Mai:Ist,ra_month_Mar:Rst,ra_month_Nov:Lst,ra_month_Oct:Nst,ra_month_Sep:Fst,ra_months_Apr:zst,ra_months_Aug:Bst,ra_months_Dec:jst,ra_months_Feb:Wst,ra_months_Jan:Hst,ra_months_Jul:Ust,ra_months_Jun:Yst,ra_months_Mai:Vst,ra_months_Mar:Gst,ra_months_Nov:qst,ra_months_Oct:Xst,ra_months_Sep:Jst,ra_none:Zst,ra_object_changed_by:Kst,ra_object_changed_by_user:Qst,ra_otherConfig:elt,ra_qualityCode:tlt,ra_repeat:rlt,ra_select_folder_hint:nlt,ra_state_changed_by:alt,ra_state_changed_from:ilt,ra_timestamp:olt,ra_tooltip_ack:slt,ra_tooltip_comment:llt,ra_tooltip_copyState:clt,ra_tooltip_customConfig:ult,ra_tooltip_deleteObject:dlt,ra_tooltip_editObject:flt,ra_tooltip_editState:hlt,ra_tooltip_from:plt,ra_tooltip_lc:mlt,ra_tooltip_quality:vlt,ra_tooltip_ts:glt,ra_tooltip_user:_lt,ra_tooltip_value:ylt,"ra_use seconds":"użyj sekund",ra_val:blt,"ra_via internet":"przez internet",ra_warning_every_minute:wlt,ra_warning_every_second:Slt,sc_cron:xlt,sc_date:Clt,sc_dates:Tlt,sc_dow:klt,sc_dows:Elt,sc_every:Dlt,sc_everyN_dates:Mlt,sc_everyN_dow:Olt,sc_everyN_dows:$lt,sc_everyN_hours:Alt,sc_everyN_minutes:Plt,sc_everyN_months:Ilt,sc_everyN_seconds:Rlt,sc_every_dates:Llt,sc_every_dow:Nlt,sc_every_dows:Flt,sc_every_hours:zlt,sc_every_minutes:Blt,sc_every_months:jlt,sc_every_seconds:Wlt,sc_from:Hlt,sc_hours:Ult,sc_interval:Ylt,sc_intervalBetween:Vlt,sc_invalid_cron:Glt,sc_minutes:qlt,sc_months:Xlt,sc_once:Jlt,sc_period:Zlt,sc_seconds:Klt,sc_simple:Qlt,sc_specific:ect,sc_specific_dates:tct,sc_specific_dow:rct,sc_specific_dows:nct,sc_specific_hours:act,sc_specific_minutes:ict,sc_specific_months:oct,sc_specific_seconds:sct,sc_time:lct,sc_to:cct,sc_wizard:uct,sch_all:dct,sch_astroDay:fct,sch_astroNight:hct,sch_astro_dawn:pct,sch_astro_dusk:mct,sch_astro_goldenHour:vct,sch_astro_goldenHourEnd:gct,sch_astro_nadir:_ct,sch_astro_nauticalDawn:yct,sch_astro_nauticalDusk:bct,sch_astro_night:wct,sch_astro_nightEnd:Sct,sch_astro_solarNoon:xct,sch_astro_sunrise:Cct,sch_astro_sunriseEnd:Tct,sch_astro_sunset:kct,sch_astro_sunsetStart:Ect,sch_at:Dct,sch_desc_atTime:Mct,sch_desc_everyDay:Oct,sch_desc_everyHour:$ct,sch_desc_everyMinute:Act,sch_desc_everyMonth:Pct,sch_desc_everyNDay:Ict,sch_desc_everyNHours:Rct,sch_desc_everyNMinutes:Lct,sch_desc_everyNMonths:Nct,sch_desc_everyNWeeks:Fct,sch_desc_everyNYears:zct,sch_desc_everyWeek:Bct,sch_desc_everyYear:jct,sch_desc_intervalFromTo:Wct,sch_desc_never:Hct,sch_desc_onDate:Uct,sch_desc_onDates:Yct,sch_desc_onEveryDate:Vct,sch_desc_onMonth:Gct,sch_desc_onMonths:qct,sch_desc_onWeekday:Xct,sch_desc_onWeekdays:Jct,sch_desc_onWeekends:Zct,sch_desc_onWorkdays:Kct,sch_desc_onceInPast:Qct,sch_desc_once_on:eut,sch_desc_validFrom:tut,sch_desc_validFromTo:rut,sch_desc_validTo:nut,sch_every:aut,sch_exactTime:iut,sch_from:out,sch_fromTo:sut,sch_intervalTime:lut,sch_invert:cut,sch_no_one:uut,sch_on:dut,sch_period:fut,sch_periodDaily:hut,sch_periodDates:put,sch_periodDay:mut,sch_periodEvery:vut,sch_periodEveryDay:gut,sch_periodEveryMonth:_ut,sch_periodEveryWeek:yut,sch_periodEveryYear:but,sch_periodHours:wut,sch_periodMinutes:Sut,sch_periodMonth:xut,sch_periodMonthly:Cut,sch_periodOnce:Tut,sch_periodSpecificMonths:kut,sch_periodWeek:Eut,sch_periodWeekdays:Dut,sch_periodWeekend:Mut,sch_periodWeekly:Out,sch_periodWorkdays:$ut,sch_periodYear:Aut,sch_periodYearly:Put,sch_specificTime:Iut,sch_time:Rut,sch_to:Lut,sch_valid:Nut,sch_validFrom:Fut,sch_validTo:zut,sch_wholeDay:But,sch_yearEveryMonth:jut},Hut="Додайте",Uut="Скасувати",Yut="Категорії",Vut="Перевірено",Gut="Видалити",qut="Закрити",Xut="Комерційний",Jut="Налаштувати",Zut="Підключено",Kut="Скопійовано",Qut="Створити",edt="Урожай",tdt="Delete",rdt="Видалити",ndt="Відкинути",adt="Відключено",idt="Помилка",odt="фільтр",sdt="П'ятниця",ldt="Широта",cdt="Довгота",udt="повідомлення",ddt="понеділок",fdt="Ім'я",hdt="Об'єкти",pdt="В порядку",mdt="Продукт",vdt="Повторіть",gdt="Замінити",_dt="Корінь",ydt="Субота",bdt="зберегти",wdt="Вибране",Sdt="держави",xdt="неділя",Cdt="четвер",Tdt="Мітка часу",kdt="вівторок",Edt="оновлення",Ddt="Дійсний до",Mdt="Значення",Odt="Версія",$dt="Середа",Adt="Ширина",Pdt="Так",Idt="інший",Rdt="Кожен може читати об'єкт",Ldt="Кожен може читати стан",Ndt="Кожен може написати об'єкт",Fdt="Кожен може написати стан",zdt="Група може читати об'єкт",Bdt="Група може читати стан",jdt="Група може писати об'єкт",Wdt="Група може писати стан",Hdt="Власник може читати об'єкт",Udt="Власник може читати стан",Ydt="Власник може написати об'єкт",Vdt="Власник може написати стан",Gdt="кнопки",qdt="Змінено з",Xdt="закрити",Jdt="Створіть логічний стан",Zdt="Створити канал",Kdt="Створити пристрій",Qdt="Створити номерний стан",eft="Створити состояние",tft="Створити рядковий стан",rft="днів",nft="О",aft="пн",ift="Sa",oft="Нд",sft="чт",lft="вт",cft="ми",uft="Експертний режим",dft="Всі файли",fft="Аудіо",hft="Код/JSON",pft="Зображення",mft="текст",vft="відео",gft="Налаштування",_ft="без",yft="функція",bft="ID",wft="Ім'я",Sft="Роль",xft="Кімната",Cft="Тип",Tft="Недійсні налаштування",kft="Остання зміна",Eft="локально",Dft="квіт",Mft="серп",Oft="груд",$ft="лютий",Aft="січня",Pft="лип",Ift="черв",Rft="травень",Lft="березень",Nft="Листопад",Fft="жовт",zft="вер",Bft="квіт",jft="серп",Wft="груд",Hft="лютий",Uft="січня",Yft="лип",Vft="черв",Gft="травень",qft="березень",Xft="Листопад",Jft="жовт",Zft="вер",Kft="немає",Qft="Об'єкт змінено",eht="Об'єкт востаннє змінено о",tht="Налаштування з іншого адаптера %s",rht="Код якості",nht="повторити",aht="Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».",iht="Стан змінено на",oht="Об'єкт змінено з",sht="Мітка часу",lht="Визнано",cht="коментар",uht="Скопіюйте значення стану",dht="Спеціальні налаштування",fht="Видалити об'єкт",hht="Редагувати об'єкт",pht="Відредагуйте значення стану",mht="Від",vht="Востаннє змінено",ght="якість",_ht="Позначка часу",yht="Користувач",bht="Значення",wht="Значення",Sht="Попередження: завдання CRON виконуватиметься щохвилини протягом зазначеного періоду!",xht="Попередження: завдання CRON виконуватиметься кожну секунду протягом зазначеного періоду!",Cht="CRON",Tht="Дата",kht="дати",Eht="День",Dht="День тижня",Mht="кожен",Oht="кожні N днів",$ht="кожен N-й день тижня",Aht="кожні N днів тижня",Pht="кожні N годин",Iht="кожні N хвилин",Rht="кожні N місяців",Lht="кожні N секунд",Nht="кожен день",Fht="кожен день тижня",zht="кожен день тижня",Bht="щогодини",jht="кожну хвилину",Wht="щомісяця",Hht="кожна секунда",Uht="Від",Yht="години",Vht="Інтервал",Ght="Інтервал між",qht="Недійсний CRON",Xht="хвилин",Jht="місяців",Zht="Один раз",Kht="Крапка",Qht="секунд",ept="просто",tpt="Конкретний час",rpt="конкретні дати",npt="конкретний день (дні) тижня",apt="конкретний день тижня",ipt="конкретні години",opt="конкретні хвилини",spt="конкретні місяці",lpt="конкретні секунди",cpt="час",upt="до",dpt="майстер",fpt="все",hpt="Астродень",ppt="Астро ніч",mpt="Світанок",vpt="Сутінки",gpt="Золота година",_pt="Кінець золотої години",ypt="Надір",bpt="Морський світанок",wpt="Морські сутінки",Spt="ніч",xpt="Кінець ночі",Cpt="Сонячний полудень",Tpt="Схід сонця",kpt="Кінець сходу сонця",Ept="Захід сонця",Dpt="Початок заходу сонця",Mpt="в",Opt="в %s",$pt="кожен день",Apt="щогодини",Ppt="кожну хвилину",Ipt="щомісяця",Rpt="кожен %s день",Lpt="кожні %s годин",Npt="кожні %s хвилин",Fpt="кожні %s місяців",zpt="кожні %s тижнів",Bpt="кожні %s років",jpt="щотижня",Wpt="щороку",Hpt="від %s до %s",Upt="ніколи",Ypt="на %s з %s",Vpt="на %s і %s з",Gpt="на кожну дату",qpt="%s",Xpt="%s і %s",Jpt="на %s",Zpt="на %s і %s",Kpt="на вихідних",Qpt="в робочі дні",emt="більше не виконуватиметься, оскільки запуск у минулому",tmt="на %s",rmt="від %s",nmt="Виконати від до",amt="до %s",imt="кожен",omt="Конкретний час",smt="від",lmt="Від до",cmt="Час інтервалу",umt="інвертувати",dmt="немає",fmt="на",hmt="Крапка",pmt="Щодня",mmt="дати",vmt="День",gmt="кожен",_mt="Кожен день",ymt="Щомісяця",bmt="Щотижня",wmt="Щороку",Smt="години",xmt="хвилин",Cmt="місяць",Tmt="Щомісяця",kmt="Один раз",Emt="Конкретні місяці",Dmt="тиждень",Mmt="будні",Omt="Вихідні",$mt="Щотижня",Amt="робочі дні",Pmt="рік",Imt="щорічно",Rmt="Конкретний час",Lmt="час",Nmt="до",Fmt="Дійсний",zmt="від",Bmt="до",jmt="Цілий день",Wmt="щомісяця",Hmt={"ra_%s links from aliases":"%s посилань із псевдонімів","ra_%s object(s) processed":"Оброблено %s об’єктів","ra_%s was imported":"%s було імпортовано","ra_Accept license":"Прийняти ліцензію","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:Hut,"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:Uut,"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:Yut,"ra_Chained certificate":"Прикутий сертифікат","ra_Change color theme":"Змінити кольорову тему","ra_Changed from":"Змінено з","ra_Channel → State":"Канал → Стан","ra_Check license":"Перевірити ліцензію",ra_Checked:Vut,ra_Clear:Gut,"ra_Clear filter":"Очистити фільтр","ra_Clear icon":"Очистити значок","ra_Clone current row":"Клонувати поточний рядок",ra_Close:qut,"ra_Collapse all nodes":"Згорнути всі вузли","ra_Collapse one step node":"Згорнути на один рівень",ra_Commercial:Xut,ra_Configure:Jut,"ra_Configure visible columns":"Налаштувати видимі стовпці","ra_Confirm deletion of %s":"Підтвердити видалення %s",ra_Connected:Zut,ra_Copied:Kut,"ra_Copied %s":'Скопійовано "%s"',"ra_Copy content":"Скопіюйте вміст",ra_Create:Qut,"ra_Create alias":"Створити псевдонім","ra_Create folder":"Створити папку","ra_Create new folder in %s":"Створіть нову папку в %s",ra_Crop:edt,"ra_Define CRON...":"Визначити CRON...","ra_Define functions":"Визначити функції","ra_Define rooms":"Визначте кімнати","ra_Define schedule":"Визначити розклад","ra_Define schedule...":"Визначити розклад...",ra_Del:tdt,ra_Delete:rdt,"ra_Delete (no confirm for 5 mins)":"Видалити (без підтвердження протягом 5 хвилин)","ra_Delete current row":"Видалити поточний рядок","ra_Deselect all":"Скасувати вибір усіх","ra_Device → Channel → State":"Пристрій → Канал → Стан",ra_Discard:ndt,ra_Disconnected:adt,"ra_Do not export values of states":"Не експортуйте значення станів","ra_Do not use let's encrypt":"Не використовуйте let's encrypt","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 function":"функція редагування","ra_Edit object field":"Поле редагування об'єкта","ra_Edit role":"Редагувати роль","ra_Edit room":"Редагувати кімнату","ra_Edit value":"Редагувати значення",ra_Error:idt,"ra_Expand all nodes":"Розгорнути всі вузли","ra_Expand one step node":"Розгорніть один рівень","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:odt,"ra_Filter files":"Фільтр файлів","ra_Folder name":"Назва папки","ra_Folder → Channel → State":"Папка → Канал → Стан","ra_Folder → Device → Channel → State":"Папка → Пристрій → Канал → Стан","ra_Folder → State":"Папка → Стан","ra_Folders always first":"Папки завжди першими",ra_Friday:sdt,"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_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 answer from server":"Недійсна відповідь від сервера","ra_Invalid parent folder!":"Недійсна батьківська папка!","ra_Invalid structure":"Недійсна структура","ra_JSON editor":"Редактор JSON","ra_Last change":"Остання зміна",ra_Latitude:ldt,"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_Longitude:cdt,'ra_May not trigger "updateLicenses"':'Може не запускати "updateLicenses"',ra_Message:udt,ra_Monday:ddt,"ra_Move down":"Рухатися вниз","ra_Move up":"Рухатися вгору",ra_Name:fdt,"ra_No data found in file":"Немає даних у файлі","ra_No one license found in license manager":"У менеджері ліцензій не знайдено жодної ліцензії","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_Objects:hdt,ra_Ok:pdt,"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 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_Private certificate":"Приватний сертифікат",ra_Product:mdt,"ra_Public certificate":"Публічний сертифікат","ra_Quality code":"якість","ra_Refresh tree":"Оновити дерево","ra_Reload files":"Перезавантажте файли",ra_Repeat:vdt,ra_Replace:gdt,"ra_Request timed out":"Час запиту вичерпано","ra_Restrict to folder":"Обмежити папкою",ra_Root:_dt,ra_Saturday:ydt,ra_Save:bdt,"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:wdt,"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_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:Sdt,"ra_Suitable license not found in license manager":"Відповідна ліцензія не знайдена в менеджері ліцензій",ra_Sunday:xdt,"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:Cdt,ra_Timestamp:Tdt,"ra_Toggle expert mode":"Перемкнути експертний режим","ra_Toggle the states view":"Перемкнути перегляд штатів","ra_Toggle view mode":"Перемкнути режим перегляду","ra_Too big":"Занадто великий","ra_Too small":"Занадто малий","ra_Transparent dialog":"Прозорий діалог",ra_Tuesday:kdt,"ra_Unknown error":"Невідома помилка","ra_Unknown error!":"Невідома помилка!",ra_Update:Edt,"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:Ddt,ra_Value:Mdt,ra_Version:Odt,"ra_View file":"Переглянути файл","ra_View: %s":"Перегляд: %s",ra_Wednesday:$dt,ra_Width:Adt,ra_Yes:Pdt,"ra_You can export all objects or just the selected branch.":"Ви можете експортувати всі об’єкти або лише вибрану гілку.","ra_You can filter entries by entering here some text":"Ви можете фільтрувати записи, ввівши тут певний текст",ra___different__:Idt,ra_aclEveryone_read_object:Rdt,ra_aclEveryone_read_state:Ldt,ra_aclEveryone_write_object:Ndt,ra_aclEveryone_write_state:Fdt,ra_aclGroup_read_object:zdt,ra_aclGroup_read_state:Bdt,ra_aclGroup_write_object:jdt,ra_aclGroup_write_state:Wdt,ra_aclOwner_read_object:Hdt,ra_aclOwner_read_state:Udt,ra_aclOwner_write_object:Ydt,ra_aclOwner_write_state:Vdt,ra_buttons:Gdt,ra_changedFrom:qdt,ra_close:Xdt,ra_create_boolean_state:Jdt,ra_create_channel:Zdt,ra_create_device:Kdt,ra_create_number_state:Qdt,ra_create_state:eft,ra_create_string_state:tft,ra_daysShortText:rft,ra_dow_Fr:nft,ra_dow_Mo:aft,ra_dow_Sa:ift,ra_dow_Su:oft,ra_dow_Th:sft,ra_dow_Tu:lft,ra_dow_We:cft,ra_expertMode:uft,ra_fileType_all:dft,ra_fileType_audio:fft,ra_fileType_code:hft,ra_fileType_images:pft,ra_fileType_txt:mft,ra_fileType_video:vft,"ra_fileType_video,":"відео",ra_filter_customs:gft,ra_filter_customs_without:_ft,ra_filter_func:yft,ra_filter_id:bft,ra_filter_name:wft,ra_filter_role:Sft,ra_filter_room:xft,ra_filter_type:Cft,"ra_import data from %s file":"Імпортувати дані з файлу %s",ra_invalidConfig:Tft,ra_lastChange:kft,ra_locally:Eft,ra_month_Apr:Dft,ra_month_Aug:Mft,ra_month_Dec:Oft,ra_month_Feb:$ft,ra_month_Jan:Aft,ra_month_Jul:Pft,ra_month_Jun:Ift,ra_month_Mai:Rft,ra_month_Mar:Lft,ra_month_Nov:Nft,ra_month_Oct:Fft,ra_month_Sep:zft,ra_months_Apr:Bft,ra_months_Aug:jft,ra_months_Dec:Wft,ra_months_Feb:Hft,ra_months_Jan:Uft,ra_months_Jul:Yft,ra_months_Jun:Vft,ra_months_Mai:Gft,ra_months_Mar:qft,ra_months_Nov:Xft,ra_months_Oct:Jft,ra_months_Sep:Zft,ra_none:Kft,ra_object_changed_by:Qft,ra_object_changed_by_user:eht,ra_otherConfig:tht,ra_qualityCode:rht,ra_repeat:nht,ra_select_folder_hint:aht,ra_state_changed_by:iht,ra_state_changed_from:oht,ra_timestamp:sht,ra_tooltip_ack:lht,ra_tooltip_comment:cht,ra_tooltip_copyState:uht,ra_tooltip_customConfig:dht,ra_tooltip_deleteObject:fht,ra_tooltip_editObject:hht,ra_tooltip_editState:pht,ra_tooltip_from:mht,ra_tooltip_lc:vht,ra_tooltip_quality:ght,ra_tooltip_ts:_ht,ra_tooltip_user:yht,ra_tooltip_value:bht,"ra_use seconds":"використовуйте секунди",ra_val:wht,"ra_via internet":"через інтернет",ra_warning_every_minute:Sht,ra_warning_every_second:xht,sc_cron:Cht,sc_date:Tht,sc_dates:kht,sc_dow:Eht,sc_dows:Dht,sc_every:Mht,sc_everyN_dates:Oht,sc_everyN_dow:$ht,sc_everyN_dows:Aht,sc_everyN_hours:Pht,sc_everyN_minutes:Iht,sc_everyN_months:Rht,sc_everyN_seconds:Lht,sc_every_dates:Nht,sc_every_dow:Fht,sc_every_dows:zht,sc_every_hours:Bht,sc_every_minutes:jht,sc_every_months:Wht,sc_every_seconds:Hht,sc_from:Uht,sc_hours:Yht,sc_interval:Vht,sc_intervalBetween:Ght,sc_invalid_cron:qht,sc_minutes:Xht,sc_months:Jht,sc_once:Zht,sc_period:Kht,sc_seconds:Qht,sc_simple:ept,sc_specific:tpt,sc_specific_dates:rpt,sc_specific_dow:npt,sc_specific_dows:apt,sc_specific_hours:ipt,sc_specific_minutes:opt,sc_specific_months:spt,sc_specific_seconds:lpt,sc_time:cpt,sc_to:upt,sc_wizard:dpt,sch_all:fpt,sch_astroDay:hpt,sch_astroNight:ppt,sch_astro_dawn:mpt,sch_astro_dusk:vpt,sch_astro_goldenHour:gpt,sch_astro_goldenHourEnd:_pt,sch_astro_nadir:ypt,sch_astro_nauticalDawn:bpt,sch_astro_nauticalDusk:wpt,sch_astro_night:Spt,sch_astro_nightEnd:xpt,sch_astro_solarNoon:Cpt,sch_astro_sunrise:Tpt,sch_astro_sunriseEnd:kpt,sch_astro_sunset:Ept,sch_astro_sunsetStart:Dpt,sch_at:Mpt,sch_desc_atTime:Opt,sch_desc_everyDay:$pt,sch_desc_everyHour:Apt,sch_desc_everyMinute:Ppt,sch_desc_everyMonth:Ipt,sch_desc_everyNDay:Rpt,sch_desc_everyNHours:Lpt,sch_desc_everyNMinutes:Npt,sch_desc_everyNMonths:Fpt,sch_desc_everyNWeeks:zpt,sch_desc_everyNYears:Bpt,sch_desc_everyWeek:jpt,sch_desc_everyYear:Wpt,sch_desc_intervalFromTo:Hpt,sch_desc_never:Upt,sch_desc_onDate:Ypt,sch_desc_onDates:Vpt,sch_desc_onEveryDate:Gpt,sch_desc_onMonth:qpt,sch_desc_onMonths:Xpt,sch_desc_onWeekday:Jpt,sch_desc_onWeekdays:Zpt,sch_desc_onWeekends:Kpt,sch_desc_onWorkdays:Qpt,sch_desc_onceInPast:emt,sch_desc_once_on:tmt,sch_desc_validFrom:rmt,sch_desc_validFromTo:nmt,sch_desc_validTo:amt,sch_every:imt,sch_exactTime:omt,sch_from:smt,sch_fromTo:lmt,sch_intervalTime:cmt,sch_invert:umt,sch_no_one:dmt,sch_on:fmt,sch_period:hmt,sch_periodDaily:pmt,sch_periodDates:mmt,sch_periodDay:vmt,sch_periodEvery:gmt,sch_periodEveryDay:_mt,sch_periodEveryMonth:ymt,sch_periodEveryWeek:bmt,sch_periodEveryYear:wmt,sch_periodHours:Smt,sch_periodMinutes:xmt,sch_periodMonth:Cmt,sch_periodMonthly:Tmt,sch_periodOnce:kmt,sch_periodSpecificMonths:Emt,sch_periodWeek:Dmt,sch_periodWeekdays:Mmt,sch_periodWeekend:Omt,sch_periodWeekly:$mt,sch_periodWorkdays:Amt,sch_periodYear:Pmt,sch_periodYearly:Imt,sch_specificTime:Rmt,sch_time:Lmt,sch_to:Nmt,sch_valid:Fmt,sch_validFrom:zmt,sch_validTo:Bmt,sch_wholeDay:jmt,sch_yearEveryMonth:Wmt},Umt="附加",Ymt="取消",Vmt="类别",Gmt="勾选",qmt="删除",Xmt="关",Jmt="商业的",Zmt="配置",Kmt="连接的",Qmt="复制的",evt="创建",tvt="庄稼",rvt="Delete",nvt="删除",avt="丢弃",ivt="断开连接",ovt="错误",svt="筛选",lvt="星期五",cvt="纬度",uvt="经度",dvt="信息",fvt="周一",hvt="姓名",pvt="对象",mvt="好",vvt="产品",gvt="重复",_vt="代替",yvt="根",bvt="周六",wvt="保存",Svt="已选",xvt="状态",Cvt="星期日",Tvt="周四",kvt="时间戳记",Evt="周二",Dvt="更新资料",Mvt="有效期至",Ovt="值",$vt="版本",Avt="周三",Pvt="宽度",Ivt="是的",Rvt="不同的",Lvt="每个人都可以阅读对象",Nvt="每个人都可以阅读状态",Fvt="每个人都可以写对象",zvt="每个人都可以写状态",Bvt="组可以读取对象",jvt="群组可以读取状态",Wvt="组可以写对象",Hvt="组可以写状态",Uvt="所有者可以读取对象",Yvt="所有者可以读取状态",Vvt="所有者可以写对象",Gvt="所有者可以写状态",qvt="纽扣",Xvt="更改为",Jvt="关闭",Zvt="创建布尔状态",Kvt="创建频道",Qvt="创建设备",egt="创建号码状态",tgt="创建状态",rgt="创建字符串状态",ngt="天",agt="r",igt="莫",ogt="萨",sgt="苏",lgt="Th",cgt="Tu",ugt="我们",dgt="专家模式",fgt="所有文件",hgt="声音的",pgt="代码/JSON",mgt="图片",vgt="文本",ggt="视频",_gt="设定值",ygt="没有",bgt="功能",wgt="ID",Sgt="名称",xgt="角色",Cgt="房间",Tgt="类型",kgt="无效的设定",Egt="最后一次变更",Dgt="本地",Mgt="4月",Ogt="八月",$gt="十二月",Agt="二月",Pgt="简",Igt="七月",Rgt="君",Lgt="迈",Ngt="三月",Fgt="十一月",zgt="十月",Bgt="九月",jgt="4月",Wgt="八月",Hgt="十二月",Ugt="二月",Ygt="简",Vgt="七月",Ggt="君",qgt="迈",Xgt="三月",Jgt="十一月",Zgt="十月",Kgt="九月",Qgt="没有任何",e_t="物件变更者",t_t="对象上次更改时间为",r_t="来自其他适配器%s的设置",n_t="质量代码",a_t="重复",i_t="要选择文件夹,只需按住“shift”键单击文件夹即可。",o_t="状态由",s_t="对象已从更改",l_t="时间戳记",c_t="致谢国旗",u_t="评论",d_t="复制状态值",f_t="自定义设置",h_t="删除物件",p_t="编辑物件",m_t="编辑状态值",v_t="从",g_t="最后改变了",__t="质量",y_t="时间戳",b_t="用户",w_t="值",S_t="值",x_t="警告:CRON 作业将在指定期间内每分钟运行一次!",C_t="警告:CRON 作业将在指定期间内每秒运行一次!",T_t="周期任务",k_t="日期",E_t="日",D_t="天",M_t="星期",O_t="每",$_t="每N天",A_t="每周的第 N 天",P_t="每周N天",I_t="每N小时一次",R_t="每N分钟",L_t="每N个月",N_t="每N秒",F_t="每天",z_t="一周的每一天",B_t="一周的每一天",j_t="每小时",W_t="每分钟",H_t="每月",U_t="每秒",Y_t="从",V_t="小时",G_t="间隔",q_t="间隔时间",X_t="无效的 CRON",J_t="分钟",Z_t="月",K_t="一次",Q_t="周期",eyt="秒",tyt="简单模式",ryt="特定的时间",nyt="特定的日子",ayt="一周中的特定日子",iyt="特定的一周",oyt="特定的小时",syt="特定的分钟",lyt="特定的月份",cyt="特定的描述",uyt="时间",dyt="至",fyt="向导模式",hyt="全选",pyt="天文白天",myt="天文夜晚",vyt="黎明",gyt="黄昏",_yt="黄金时段",yyt="黄金时段结束",byt="天底",wyt="航海黎明",Syt="航海黄昏",xyt="夜晚",Cyt="夜晚结束",Tyt="正午",kyt="日出",Eyt="日出结束",Dyt="日落",Myt="日落开始",Oyt="在",$yt="的%s",Ayt="每天",Pyt="每小时",Iyt="每分钟",Ryt="每月",Lyt="每%s天",Nyt="每%s小时",Fyt="每%s分钟",zyt="每%s月",Byt="每%s周",jyt="每%s年",Wyt="每周",Hyt="每年",Uyt="从%s到%s",Yyt="决不",Vyt="在%s的%s上",Gyt="在%s和%s上",qyt="在每天",Xyt="%s",Jyt="%s和%s",Zyt="在%s上",Kyt="在%s和%s上",Qyt="在周末",e0t="在工作日",t0t="将不再执行,因为起始时间已经是过去的时间了。",r0t="在%s上",n0t="来自%s",a0t="从执行到",i0t="到%s",o0t="每",s0t="特定的时间",l0t="从",c0t="从到",u0t="间隔时间",d0t="倒置",f0t="取消全选",h0t="的",p0t="周期",m0t="每天",v0t="日期",g0t="天",_0t="每",y0t="每天",b0t="每月",w0t="每周",S0t="每年",x0t="小时",C0t="分钟",T0t="月",k0t="每月一次",E0t="一次",D0t="特定的月份",M0t="周",O0t="工作日",$0t="周末",A0t="每周",P0t="工作日",I0t="年",R0t="每年",L0t="特定的时间",N0t="时间",F0t="至",z0t="生效",B0t="从",j0t="至",W0t="一整天",H0t="每月",U0t={"ra_%s links from aliases":"来自别名的 %s 个链接","ra_%s object(s) processed":"已处理%s个对象","ra_%s was imported":"对象已导入","ra_Accept license":"接受许可","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:Umt,"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:Ymt,"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:Vmt,"ra_Chained certificate":"链式证书","ra_Change color theme":"更改颜色主题","ra_Changed from":"更改为","ra_Channel → State":"频道→状态","ra_Check license":"检查许可证",ra_Checked:Gmt,ra_Clear:qmt,"ra_Clear filter":"清除筛选","ra_Clear icon":"清除图标","ra_Clone current row":"克隆当前行",ra_Close:Xmt,"ra_Collapse all nodes":"收合所有节点","ra_Collapse one step node":"折叠一级",ra_Commercial:Jmt,ra_Configure:Zmt,"ra_Configure visible columns":"配置可见列","ra_Confirm deletion of %s":"确认删除%s",ra_Connected:Kmt,ra_Copied:Qmt,"ra_Copied %s":'复制的"%s"',"ra_Copy content":"复制内容",ra_Create:evt,"ra_Create alias":"创建别名","ra_Create folder":"创建文件夹","ra_Create new folder in %s":"在%s中创建新文件夹",ra_Crop:tvt,"ra_Define CRON...":"定义 CRON...","ra_Define functions":"定义功能","ra_Define rooms":"定义房间","ra_Define schedule":"定义时间表","ra_Define schedule...":"定义时间表...",ra_Del:rvt,ra_Delete:nvt,"ra_Delete (no confirm for 5 mins)":"删除(5分钟内未确认)","ra_Delete current row":"删除当前行","ra_Deselect all":"全部取消选择","ra_Device → Channel → State":"设备→频道→状态",ra_Discard:avt,ra_Disconnected:ivt,"ra_Do not export values of states":"不导出状态值","ra_Do not use let's encrypt":"不要使用让我们加密","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 function":"编辑功能","ra_Edit object field":"编辑对象字段","ra_Edit role":"编辑角色","ra_Edit room":"编辑室","ra_Edit value":"编辑值",ra_Error:ovt,"ra_Expand all nodes":"展开所有节点","ra_Expand one step node":"扩大一级","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:svt,"ra_Filter files":"过滤文件","ra_Folder name":"文件夹名称","ra_Folder → Channel → State":"文件夹→频道→状态","ra_Folder → Device → Channel → State":"文件夹→设备→频道→状态","ra_Folder → State":"文件夹→状态","ra_Folders always first":"资料夹永远优先",ra_Friday:lvt,"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_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 answer from server":"来自服务器的无效答案","ra_Invalid parent folder!":"父文件夹无效!","ra_Invalid structure":"结构无效","ra_JSON editor":"JSON 编辑器","ra_Last change":"最后一次变更",ra_Latitude:cvt,"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_Longitude:uvt,'ra_May not trigger "updateLicenses"':"可能不会触发“updateLicenses”",ra_Message:dvt,ra_Monday:fvt,"ra_Move down":"下移","ra_Move up":"提升",ra_Name:hvt,"ra_No data found in file":"文件中未找到数据","ra_No one license found in license manager":"许可证管理器中未找到任何许可证","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_Objects:pvt,ra_Ok:mvt,"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 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_Private certificate":"私有证书",ra_Product:vvt,"ra_Public certificate":"公共证书","ra_Quality code":"质量代码","ra_Refresh tree":"刷新树","ra_Reload files":"重新载入文件",ra_Repeat:gvt,ra_Replace:_vt,"ra_Request timed out":"请求超时","ra_Restrict to folder":"限制到文件夹",ra_Root:yvt,ra_Saturday:bvt,ra_Save:wvt,"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:Svt,"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_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:xvt,"ra_Suitable license not found in license manager":"在许可证管理器中找不到合适的许可证",ra_Sunday:Cvt,"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:Tvt,ra_Timestamp:kvt,"ra_Toggle expert mode":"切换专家模式","ra_Toggle the states view":"切换状态视图","ra_Toggle view mode":"切换检视模式","ra_Too big":"太大","ra_Too small":"太小","ra_Transparent dialog":"透明对话框",ra_Tuesday:Evt,"ra_Unknown error":"未知错误","ra_Unknown error!":"未知错误!",ra_Update:Dvt,"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:Mvt,ra_Value:Ovt,ra_Version:$vt,"ra_View file":"查看文件","ra_View: %s":"查看:%s",ra_Wednesday:Avt,ra_Width:Pvt,ra_Yes:Ivt,"ra_You can export all objects or just the selected branch.":"您可以导出所有对象或仅导出选定的分支。","ra_You can filter entries by entering here some text":"您可以通过在此处输入一些文本来过滤条目",ra___different__:Rvt,ra_aclEveryone_read_object:Lvt,ra_aclEveryone_read_state:Nvt,ra_aclEveryone_write_object:Fvt,ra_aclEveryone_write_state:zvt,ra_aclGroup_read_object:Bvt,ra_aclGroup_read_state:jvt,ra_aclGroup_write_object:Wvt,ra_aclGroup_write_state:Hvt,ra_aclOwner_read_object:Uvt,ra_aclOwner_read_state:Yvt,ra_aclOwner_write_object:Vvt,ra_aclOwner_write_state:Gvt,ra_buttons:qvt,ra_changedFrom:Xvt,ra_close:Jvt,ra_create_boolean_state:Zvt,ra_create_channel:Kvt,ra_create_device:Qvt,ra_create_number_state:egt,ra_create_state:tgt,ra_create_string_state:rgt,ra_daysShortText:ngt,ra_dow_Fr:agt,ra_dow_Mo:igt,ra_dow_Sa:ogt,ra_dow_Su:sgt,ra_dow_Th:lgt,ra_dow_Tu:cgt,ra_dow_We:ugt,ra_expertMode:dgt,ra_fileType_all:fgt,ra_fileType_audio:hgt,ra_fileType_code:pgt,ra_fileType_images:mgt,ra_fileType_txt:vgt,ra_fileType_video:ggt,"ra_fileType_video,":"视频",ra_filter_customs:_gt,ra_filter_customs_without:ygt,ra_filter_func:bgt,ra_filter_id:wgt,ra_filter_name:Sgt,ra_filter_role:xgt,ra_filter_room:Cgt,ra_filter_type:Tgt,"ra_import data from %s file":"从 %s 文件导入数据",ra_invalidConfig:kgt,ra_lastChange:Egt,ra_locally:Dgt,ra_month_Apr:Mgt,ra_month_Aug:Ogt,ra_month_Dec:$gt,ra_month_Feb:Agt,ra_month_Jan:Pgt,ra_month_Jul:Igt,ra_month_Jun:Rgt,ra_month_Mai:Lgt,ra_month_Mar:Ngt,ra_month_Nov:Fgt,ra_month_Oct:zgt,ra_month_Sep:Bgt,ra_months_Apr:jgt,ra_months_Aug:Wgt,ra_months_Dec:Hgt,ra_months_Feb:Ugt,ra_months_Jan:Ygt,ra_months_Jul:Vgt,ra_months_Jun:Ggt,ra_months_Mai:qgt,ra_months_Mar:Xgt,ra_months_Nov:Jgt,ra_months_Oct:Zgt,ra_months_Sep:Kgt,ra_none:Qgt,ra_object_changed_by:e_t,ra_object_changed_by_user:t_t,ra_otherConfig:r_t,ra_qualityCode:n_t,ra_repeat:a_t,ra_select_folder_hint:i_t,ra_state_changed_by:o_t,ra_state_changed_from:s_t,ra_timestamp:l_t,ra_tooltip_ack:c_t,ra_tooltip_comment:u_t,ra_tooltip_copyState:d_t,ra_tooltip_customConfig:f_t,ra_tooltip_deleteObject:h_t,ra_tooltip_editObject:p_t,ra_tooltip_editState:m_t,ra_tooltip_from:v_t,ra_tooltip_lc:g_t,ra_tooltip_quality:__t,ra_tooltip_ts:y_t,ra_tooltip_user:b_t,ra_tooltip_value:w_t,"ra_use seconds":"用秒",ra_val:S_t,"ra_via internet":"通过互联网",ra_warning_every_minute:x_t,ra_warning_every_second:C_t,sc_cron:T_t,sc_date:k_t,sc_dates:E_t,sc_dow:D_t,sc_dows:M_t,sc_every:O_t,sc_everyN_dates:$_t,sc_everyN_dow:A_t,sc_everyN_dows:P_t,sc_everyN_hours:I_t,sc_everyN_minutes:R_t,sc_everyN_months:L_t,sc_everyN_seconds:N_t,sc_every_dates:F_t,sc_every_dow:z_t,sc_every_dows:B_t,sc_every_hours:j_t,sc_every_minutes:W_t,sc_every_months:H_t,sc_every_seconds:U_t,sc_from:Y_t,sc_hours:V_t,sc_interval:G_t,sc_intervalBetween:q_t,sc_invalid_cron:X_t,sc_minutes:J_t,sc_months:Z_t,sc_once:K_t,sc_period:Q_t,sc_seconds:eyt,sc_simple:tyt,sc_specific:ryt,sc_specific_dates:nyt,sc_specific_dow:ayt,sc_specific_dows:iyt,sc_specific_hours:oyt,sc_specific_minutes:syt,sc_specific_months:lyt,sc_specific_seconds:cyt,sc_time:uyt,sc_to:dyt,sc_wizard:fyt,sch_all:hyt,sch_astroDay:pyt,sch_astroNight:myt,sch_astro_dawn:vyt,sch_astro_dusk:gyt,sch_astro_goldenHour:_yt,sch_astro_goldenHourEnd:yyt,sch_astro_nadir:byt,sch_astro_nauticalDawn:wyt,sch_astro_nauticalDusk:Syt,sch_astro_night:xyt,sch_astro_nightEnd:Cyt,sch_astro_solarNoon:Tyt,sch_astro_sunrise:kyt,sch_astro_sunriseEnd:Eyt,sch_astro_sunset:Dyt,sch_astro_sunsetStart:Myt,sch_at:Oyt,sch_desc_atTime:$yt,sch_desc_everyDay:Ayt,sch_desc_everyHour:Pyt,sch_desc_everyMinute:Iyt,sch_desc_everyMonth:Ryt,sch_desc_everyNDay:Lyt,sch_desc_everyNHours:Nyt,sch_desc_everyNMinutes:Fyt,sch_desc_everyNMonths:zyt,sch_desc_everyNWeeks:Byt,sch_desc_everyNYears:jyt,sch_desc_everyWeek:Wyt,sch_desc_everyYear:Hyt,sch_desc_intervalFromTo:Uyt,sch_desc_never:Yyt,sch_desc_onDate:Vyt,sch_desc_onDates:Gyt,sch_desc_onEveryDate:qyt,sch_desc_onMonth:Xyt,sch_desc_onMonths:Jyt,sch_desc_onWeekday:Zyt,sch_desc_onWeekdays:Kyt,sch_desc_onWeekends:Qyt,sch_desc_onWorkdays:e0t,sch_desc_onceInPast:t0t,sch_desc_once_on:r0t,sch_desc_validFrom:n0t,sch_desc_validFromTo:a0t,sch_desc_validTo:i0t,sch_every:o0t,sch_exactTime:s0t,sch_from:l0t,sch_fromTo:c0t,sch_intervalTime:u0t,sch_invert:d0t,sch_no_one:f0t,sch_on:h0t,sch_period:p0t,sch_periodDaily:m0t,sch_periodDates:v0t,sch_periodDay:g0t,sch_periodEvery:_0t,sch_periodEveryDay:y0t,sch_periodEveryMonth:b0t,sch_periodEveryWeek:w0t,sch_periodEveryYear:S0t,sch_periodHours:x0t,sch_periodMinutes:C0t,sch_periodMonth:T0t,sch_periodMonthly:k0t,sch_periodOnce:E0t,sch_periodSpecificMonths:D0t,sch_periodWeek:M0t,sch_periodWeekdays:O0t,sch_periodWeekend:$0t,sch_periodWeekly:A0t,sch_periodWorkdays:P0t,sch_periodYear:I0t,sch_periodYearly:R0t,sch_specificTime:L0t,sch_time:N0t,sch_to:F0t,sch_valid:z0t,sch_validFrom:B0t,sch_validTo:j0t,sch_wholeDay:W0t,sch_yearEveryMonth:H0t},Y0t="Export",V0t="Cancel",G0t="Close",q0t={"Save as image":"Save as image","Reset pan and zoom":"Reset pan and zoom","Save chart as svg":"Save chart as SVG","Unfortunately your browser does not support this feature":"Unfortunately your browser does not support this feature","Save chart as png":"Save chart as png","No data found":"No data found","Export raw data as CSV":"Export raw data as CSV","Select lines for export":"Select lines for export","Time format":"Time format","Browser format":"Browser time format","Time stamp in milliseconds":"Time stamp in milliseconds",Export:Y0t,Cancel:V0t,"Select lines":"Select lines","Select lines to show":"Select lines to show","Select all":"Select all",Close:G0t,"Unselect all":"Unselect all"},X0t="Export",J0t="Abbrechen",Z0t="Schließen",K0t={"Save as image":"Als Bild speichern","Reset pan and zoom":"Verschiebung und Zoomen zurücksetzen","Save chart as svg":"Diagramm als SVG speichern","Unfortunately your browser does not support this feature":"Leider unterstützt Ihr Browser diese Funktion nicht","Save chart as png":"Diagramm als PNG speichern","No data found":"Keine Daten gefunden","Export raw data as CSV":"Rohdaten als CSV exportieren","Select lines for export":"Wählen Sie Zeilen für den Export aus","Time format":"Zeitformat","Browser format":"Browser-Zeitformat","Time stamp in milliseconds":"Zeitstempel in Millisekunden",Export:X0t,Cancel:J0t,"Select lines":"Wählen Sie Zeilen aus","Select lines to show":"Wählen Sie die anzuzeigenden Linien aus","Select all":"Wählen Sie Alle",Close:Z0t,"Unselect all":"Alles wiederufen"},Q0t="Экспорт",ebt="Отмена",tbt="Закрыть",rbt={"Save as image":"Сохранить как изображение","Reset pan and zoom":"Сбросить сдвиг и масштабирование","Save chart as svg":"Сохранить график как SVG","Unfortunately your browser does not support this feature":"К сожалению, ваш браузер не поддерживает эту функцию","Save chart as png":"Сохранить диаграмму как png","No data found":"Данные не найдены","Export raw data as CSV":"Экспорт необработанных данных в формате CSV","Select lines for export":"Выбрать строки для экспорта","Time format":"Формат времени","Browser format":"Формат времени браузера","Time stamp in milliseconds":"Отметка времени в миллисекундах",Export:Q0t,Cancel:ebt,"Select lines":"Выберите строки","Select lines to show":"Выберите строки для отображения","Select all":"Выбрать все",Close:tbt,"Unselect all":"Снять все"},nbt="Exportar",abt="Cancelar",ibt="Fechar",obt={"Save as image":"Salvar como imagem","Reset pan and zoom":"Redefinir panorâmica e zoom","Save chart as svg":"Salvar gráfico como SVG","Unfortunately your browser does not support this feature":"Infelizmente, seu navegador não oferece suporte a esse recurso","Save chart as png":"Salvar gráfico como png","No data found":"Nenhum dado encontrado","Export raw data as CSV":"Exportar dados brutos como CSV","Select lines for export":"Selecione as linhas para exportação","Time format":"Formato de hora","Browser format":"Formato de hora do navegador","Time stamp in milliseconds":"Carimbo de hora em milissegundos",Export:nbt,Cancel:abt,"Select lines":"Selecione linhas","Select lines to show":"Selecione linhas para mostrar","Select all":"Selecionar tudo",Close:ibt,"Unselect all":"Desmarque todos"},sbt="Exporteren",lbt="Annuleren",cbt="Dichtbij",ubt={"Save as image":"Bewaar als afbeelding","Reset pan and zoom":"Stel pannen en zoomen opnieuw in","Save chart as svg":"Bewaar grafiek als SVG","Unfortunately your browser does not support this feature":"Helaas ondersteunt uw browser deze functie niet","Save chart as png":"Bewaar grafiek als png","No data found":"Geen data gevonden","Export raw data as CSV":"Exporteer onbewerkte gegevens als CSV","Select lines for export":"Selecteer regels voor export","Time format":"Tijd formaat","Browser format":"Browser tijdformaat","Time stamp in milliseconds":"Tijdstempel in milliseconden",Export:sbt,Cancel:lbt,"Select lines":"Selecteer lijnen","Select lines to show":"Selecteer lijnen om weer te geven","Select all":"Selecteer alles",Close:cbt,"Unselect all":"Deselecteer alles"},dbt="Exporter",fbt="Annuler",hbt="Fermer",pbt={"Save as image":"Enregistrer comme image","Reset pan and zoom":"Réinitialiser le panoramique et le zoom","Save chart as svg":"Enregistrer le graphique au format SVG","Unfortunately your browser does not support this feature":"Malheureusement, votre navigateur ne prend pas en charge cette fonctionnalité","Save chart as png":"Enregistrer le graphique au format png","No data found":"Aucune donnée disponible","Export raw data as CSV":"Exporter les données brutes au format CSV","Select lines for export":"Sélectionner les lignes à exporter","Time format":"Format de l'heure","Browser format":"Format d'heure du navigateur","Time stamp in milliseconds":"Horodatage en millisecondes",Export:dbt,Cancel:fbt,"Select lines":"Sélectionner des lignes","Select lines to show":"Sélectionnez les lignes à afficher","Select all":"Tout sélectionner",Close:hbt,"Unselect all":"Tout déselectionner"},mbt="Esportare",vbt="Annulla",gbt="Vicino",_bt={"Save as image":"Salva come immagine","Reset pan and zoom":"Reimposta panoramica e zoom","Save chart as svg":"Salva grafico come SVG","Unfortunately your browser does not support this feature":"Purtroppo il tuo browser non supporta questa funzionalità","Save chart as png":"Salva grafico come png","No data found":"Nessun dato trovato","Export raw data as CSV":"Esporta i dati grezzi come CSV","Select lines for export":"Seleziona le linee per l'esportazione","Time format":"Formato orario","Browser format":"Formato dell'ora del browser","Time stamp in milliseconds":"Timestamp in millisecondi",Export:mbt,Cancel:vbt,"Select lines":"Seleziona linee","Select lines to show":"Seleziona le righe da mostrare","Select all":"Seleziona tutto",Close:gbt,"Unselect all":"Deseleziona tutto"},ybt="Exportar",bbt="Cancelar",wbt="Cerca",Sbt={"Save as image":"Guardar como imagen","Reset pan and zoom":"Restablecer panorámica y zoom","Save chart as svg":"Guardar gráfico como SVG","Unfortunately your browser does not support this feature":"Lamentablemente, su navegador no es compatible con esta función.","Save chart as png":"Guardar gráfico como png","No data found":"Datos no encontrados","Export raw data as CSV":"Exportar datos sin procesar como CSV","Select lines for export":"Seleccionar líneas para exportar","Time format":"Formato de tiempo","Browser format":"formato de hora del navegador","Time stamp in milliseconds":"Marca de tiempo en milisegundos",Export:ybt,Cancel:bbt,"Select lines":"Seleccionar líneas","Select lines to show":"Seleccionar líneas para mostrar","Select all":"Seleccionar todo",Close:wbt,"Unselect all":"Deselecciona todo"},xbt="Eksport",Cbt="Anulować",Tbt="Zamknąć",kbt={"Save as image":"Zapisz jako obraz","Reset pan and zoom":"Zresetuj przesuwanie i powiększanie","Save chart as svg":"Zapisz wykres jako SVG","Unfortunately your browser does not support this feature":"Niestety Twoja przeglądarka nie obsługuje tej funkcji","Save chart as png":"Zapisz wykres jako png","No data found":"Nie znaleziono danych","Export raw data as CSV":"Eksportuj surowe dane jako CSV","Select lines for export":"Wybierz linie do eksportu","Time format":"Format czasu","Browser format":"Format czasu przeglądarki","Time stamp in milliseconds":"Znacznik czasu w milisekundach",Export:xbt,Cancel:Cbt,"Select lines":"Wybierz linie","Select lines to show":"Wybierz linie do pokazania","Select all":"Zaznacz wszystko",Close:Tbt,"Unselect all":"Odznacz wszystko"},Ebt="Експорт",Dbt="Скасувати",Mbt="Закрити",Obt={"No data found":"Даних не знайдено","Reset pan and zoom":"Скинути панорамування та масштабування","Save as image":"Зберегти як зображення","Save chart as png":"Зберегти діаграму як png","Save chart as svg":"Зберегти діаграму як SVG","Unfortunately your browser does not support this feature":"На жаль, ваш браузер не підтримує цю функцію","Export raw data as CSV":"Експорт необроблених даних як CSV","Select lines for export":"Виберіть рядки для експорту","Time format":"Формат часу","Browser format":"Формат часу браузера","Time stamp in milliseconds":"Мітка часу в мілісекундах",Export:Ebt,Cancel:Dbt,"Select lines":"Виберіть лінії","Select lines to show":"Виберіть рядки для показу","Select all":"Вибрати все",Close:Mbt,"Unselect all":"Скасувати вибір усіх"},$bt="出口",Abt="取消",Pbt="关闭",Ibt={"Save as image":"另存为图片","Reset pan and zoom":"重置平移和缩放","Save chart as svg":"将图表另存为SVG","Unfortunately your browser does not support this feature":"不幸的是,您的浏览器不支持此功能","Save chart as png":"将图表另存为png","No data found":"没有找到数据","Export raw data as CSV":"将原始数据导出为 CSV","Select lines for export":"选择要导出的行","Time format":"时间格式","Browser format":"浏览器时间格式","Time stamp in milliseconds":"以毫秒为单位的时间戳",Export:$bt,Cancel:Abt,"Select lines":"选择线路","Select lines to show":"选择要显示的行","Select all":"全选",Close:Pbt,"Unselect all":"全部取消选择"};function h7(t){t=(t||"").toString().replace(/^\?/,"");const e={};return t.split("&").forEach(r=>{if(r=r.trim(),r){const n=r.split("="),a=decodeURIComponent(n[0]).trim();if(n.length>1)if(e[a]=decodeURIComponent(n[1]),e[a]==="true")e[a]=!0;else if(e[a]==="false")e[a]=!1;else{const i=parseFloat(e[a]);i.toString()===e[a]&&(e[a]=i)}else e[a]=!0}}),e}function Xg(t){var r;const e=JSON.parse(JSON.stringify(t));if(t.lines&&(e.l=t.lines,delete e.lines),t._ids){const n=t._ids?t._ids.split(";"):[],a=t._colors?t._colors.split(";"):[],i=t._names?t._names.split(";"):[],o=t._units?t._units.split(";"):[];e.l=[];for(let s=0;s{this.lastHash!==window.location.hash&&(this.lastHash=window.location.hash,this.analyseAndLoadConfig())});de(this,"onPresetUpdate",(e,r)=>{e===this.preset&&(this.presetUpdateTimeout&&clearTimeout(this.presetUpdateTimeout),this.presetUpdateTimeout=setTimeout(()=>{this.presetUpdateTimeout=null;let n;r?n=Xg(r.native.data):n=Xg({}),JSON.stringify(n)!==JSON.stringify(this.config)&&(this.config=n,this.updateInterval&&clearInterval(this.updateInterval),this.updateInterval=null,this.config.live&&(!this.zoomData||!this.zoomData.stopLive)&&(this.updateInterval=setInterval(()=>this.readData(),this.config.live*1e3)),this.readData())},100))});de(this,"onStateChange",(e,r)=>{if(!e||!r||this.reading)return;this.debug&&console.log(`State update ${e} - ${r.val}`);let n=!1;for(let a=0;ac.ts-d.ts?-1:c.ts(a.toString().includes(Xs)&&this.onErrorFunc&&this.onErrorFunc(a),console.error(`Cannot read systemConfig: ${a.toString()}`),null)).then(a=>(this.systemConfig=a!=null&&a.common?a.common:{},this.defaultHistory=this.systemConfig.defaultHistory,this.analyseAndLoadConfig(r)))}async analyseAndLoadConfig(e){var r,n,a,i,o;if(e)typeof e=="string"?this.preset=e:this.config=Xg(e);else if(!this.serverSide){const s=h7(window.location.search);if(this.debug=s.debug===!0||s.debug==="true"||s.debug===1||s.debug==="1",s.preset&&typeof s.preset=="string")this.preset=s.preset;else{const l=h7((window.location.hash||"").toString().replace(/^#/,""));let c={};if(l.data&&typeof l.data=="string")try{c=JSON.parse(l.data)}catch{}if(s.data&&typeof s.data=="string")try{Object.assign(c,JSON.parse(s.data),!0)}catch{}l.preset?(this.preset=l.preset,(l.range||l.relativeEnd)&&(this.hash={range:l.range,relativeEnd:l.relativeEnd})):(l.noLoader!==void 0&&(c.noLoader=l.noLoader===!0||l.noLoader==="true"||l.noLoader===1||l.noLoader==="1"),s.noLoader!==void 0&&(c.noLoader=s.noLoader===!0||s.noLoader==="true"||s.noLoader===1||s.noLoader==="1"),this.config=Xg(c))}}if(this.seriesData=[],this.barData=[],this.barCategories=null,this.updateInterval&&(clearInterval(this.updateInterval),this.updateInterval=null),this.preset){(!this.preset.startsWith("echarts.")&&!this.preset.startsWith("flot.")||!this.preset.includes("."))&&(this.preset=`echarts.0.${this.preset}`);try{const s=await this.socket.getObject(this.preset);if(!((r=s==null?void 0:s.native)!=null&&r.data)||s.type!=="chart"){console.error(`[ChartModel] Invalid object ${this.preset}: ${JSON.stringify(s)}`);return}this.config=Xg(s.native.data),this.config.useComma=this.config.useComma===void 0?this.systemConfig.isFloatComma:this.config.useComma,this.config.lang=this.systemConfig.language,this.config.live=parseInt(this.config.live,10)||0,this.config.debug=this.debug,this.config.presetId=this.preset,(n=this.hash)!=null&&n.range&&(typeof this.hash.range=="string"&&!this.hash.range.includes("y")&&!this.hash.range.includes("m")?this.config.range=parseInt(this.hash.range,10):this.config.range=this.hash.range),(a=this.hash)!=null&&a.relativeEnd&&(this.config.relativeEnd=this.hash.relativeEnd),await this.readData(),!this.serverSide&&this.presetSubscribed!==this.preset&&(this.presetSubscribed&&await this.socket.unsubscribeObject(this.presetSubscribed,this.onPresetUpdate),this.presetSubscribed=this.preset,await this.socket.subscribeObject(this.preset,this.onPresetUpdate)),!this.serverSide&&this.config.live&&!((i=this.zoomData)!=null&&i.stopLive)&&(this.updateInterval=setInterval(()=>this.readData(),this.config.live*1e3))}catch(s){s===Xs&&this.onErrorFunc&&this.onErrorFunc(s),console.error(`Cannot read "${this.preset}": ${s}`)}}else this.config.useComma=this.config.useComma===void 0?this.systemConfig.isFloatComma===!0:this.config.useComma===!0,this.config.lang=this.systemConfig.language,this.config.live=parseInt(this.config.live,10)||0,this.config.debug=this.debug,await this.readData(),!this.serverSide&&this.config.live&&!((o=this.zoomData)!=null&&o.stopLive)&&(this.updateInterval=setInterval(()=>this.readData(),this.config.live*1e3))}setNewRange(e){var r;if(this.debug&&console.log(`[ChartModel] [${new Date().toISOString()}] setNewRange: ${JSON.stringify(e)}`),!e)this.zoomData&&(this.zoomData=null,this.readOnZoomTimeout&&clearTimeout(this.readOnZoomTimeout),this.readOnZoomTimeout=setTimeout(()=>{this.readOnZoomTimeout=null,this.config.live&&(!this.zoomData||!this.zoomData.stopLive)&&(console.log("Restore update"),this.updateInterval&&clearInterval(this.updateInterval),this.updateInterval=setInterval(()=>this.readData(),this.config.live*1e3)),this.readData()},this.updateTimeout));else if(e.stopLive)this.zoomData=this.zoomData||{},this.zoomData.stopLive=!0,this.updateInterval&&(console.log("Clear interval"),clearInterval(this.updateInterval),this.updateInterval=null);else{const n=(r=this.zoomData)==null?void 0:r.stopLive;n&&delete this.zoomData.stopLive,!this.zoomData||JSON.stringify(this.zoomData)!==JSON.stringify(e)?(this.zoomData=e,n&&(this.zoomData.stopLive=!0),this.readOnZoomTimeout&&clearTimeout(this.readOnZoomTimeout),this.readOnZoomTimeout=setTimeout(()=>{this.readOnZoomTimeout=null,this.readData()},this.updateTimeout)):n&&(this.zoomData.stopLive=!0)}}destroy(){this.subscribed&&(this.serverSide||this.subscribes.forEach(e=>this.socket.unsubscribeState(e,this.onStateChange)),this.subscribes=[],this.subscribed=!1),this.readOnZoomTimeout&&(clearTimeout(this.readOnZoomTimeout),this.readOnZoomTimeout=null),this.presetUpdateTimeout&&(clearTimeout(this.presetUpdateTimeout),this.presetUpdateTimeout=null),this.presetSubscribed&&(this.serverSide||this.socket.unsubscribeObject(this.presetSubscribed,this.onPresetUpdate),this.presetSubscribed=null),this.updateInterval&&(clearInterval(this.updateInterval),this.updateInterval=null),this.serverSide||this.onHashInstalled&&(window.removeEventListener("hashchange",this.onHashChange,!1),this.onHashInstalled=!1)}onUpdate(e){this.onUpdateFunc=e}onReading(e){this.onReadingFunc=e}onError(e){this.onErrorFunc=e}getConfig(){return this.config}getSystemConfig(){return this.systemConfig}setConfig(e){this.analyseAndLoadConfig(e)}increaseRegionForBar(e,r,n){this.config.aggregateBar=parseInt(this.config.aggregateBar,10)||0;let a=typeof r=="number"?r:r.getTime(),i=typeof e=="number"?e:e.getTime();if(this.config.aggregateBar||(a-i<=36e5*12?this.config.aggregateBar=15:a-i>=36e5*24*60?this.config.aggregateBar=43200:a-i>36e5*24*3?this.config.aggregateBar=1440:this.config.aggregateBar=60),n=n||{},this.config.aggregateBar===15){const o=new Date(i);o.setMinutes(Math.floor(o.getMinutes()/15)*15),this.config.postProcessing==="diff"&&o.setMinutes(o.getMinutes()-15),o.setSeconds(0),o.setMilliseconds(0),i=o.getTime();const s=new Date(a);s.setMinutes(Math.ceil(s.getMinutes()/15)*15),s.setSeconds(0),s.setMilliseconds(0),a=s.getTime(),n.count=Math.round((a-i)/9e5)}else if(this.config.aggregateBar===60){const o=new Date(i);o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0),this.config.postProcessing==="diff"&&o.setMinutes(o.getMinutes()-60),i=o.getTime();const s=new Date(a);s.setMinutes(60),s.setSeconds(0),s.setMilliseconds(0),a=s.getTime(),n.count=Math.round((a-i)/36e5)}else if(this.config.aggregateBar===1440){const o=new Date(i);o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0),this.config.postProcessing==="diff"&&o.setDate(o.getDate()-1),i=o.getTime();const s=new Date(a);s.setDate(s.getDate()+1),s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0),a=s.getTime(),n.count=Math.round((a-i)/864e5)}else if(this.config.aggregateBar===43200){const o=new Date(i);o.setDate(1),o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0),this.config.postProcessing==="diff"&&o.setDate(o.getDate()-30),i=o.getTime();const s=new Date(a);s.setDate(1),s.setHours(0),s.setMinutes(0),s.setMonth(s.getMonth()+1),s.setSeconds(0),s.setMilliseconds(0),a=s.getTime(),n.count=Math.round((a-i)/(864e5*30))}n.start=i,n.end=a}getStartStop(e,r){let n,a,i,o;if(this.config.l[e].offset=this.config.l[e].offset||0,typeof this.config.range=="string"&&this.config.range.includes("m")&&this.config.l.length>1){const s=parseInt(this.config.range,10)||1;for(let l=0;l1){const s=parseInt(this.config.range,10)||1;for(let l=0;lc+d,0);i[o]=l/s.length}else if(n==="min"){let l=s[0];for(let c=1;cl&&(l=s[c]);i[o]=l}else n==="total"?i[o]=s.reduce((l,c)=>l+c,0):i[o]=s[s.length-1]}if(a==="diff"){for(let o=e.length-1;o>0;o--)i[o-1]!==null&&i[o]!==null?i[o]-=i[o-1]:i[o]=0;i.splice(0,1),r.splice(0,1)}for(let o=0;os.push([]))}let c;if((u=r.convert)!=null&&u.trim()){if(!this.convertFunctions[r.convert.trim()]){let f=r.convert.trim();f.includes("return")||(f=`return ${f}`);try{this.convertFunctions[r.convert.trim()]=new Function("val",f)}catch(p){console.error(`[ChartModel] Cannot parse convert function: ${p}`)}}c=this.convertFunctions[r.convert.trim()]}for(let f=0;f=n[f].ts&&n[f].tsthis.now)break;const v={value:[n[f].ts,p]};n[f].i&&(v.exact=!1),o.push(v)}}if(r.chartType!=="bar"&&r.chartType!=="polar"){let f=typeof a.end=="number"?a.end:a.end.getTime();const p=typeof a.start=="number"?a.start:a.start.getTime();if(f>this.now&&(f=this.now),o.length){o[0].value[0]>p&&o.unshift({value:[p,null],exact:!1});const v=o[o.length-1];v.value[0]v.value[0]>g.value[0]?1:v.value[0]c),s[0]){const c=Object.keys(s[0]);(!c.includes("val")||!c.includes("ts"))&&(c.includes("y")&&c.includes("t")?s=s.map(d=>({ts:d.t,val:d.y})):(c.includes("y")?s.forEach(d=>d.val=d.y):c.includes("value")?s.forEach(d=>d.val=d.value):c.includes("data")?s.forEach(d=>d.val=d.data):c.includes("v")&&s.forEach(d=>d.val=d.v),c.includes("t")?s.forEach(d=>d.ts=d.t):c.includes("time")?s.forEach(d=>d.ts=d.time):c.includes("date")&&s.forEach(d=>d.ts=d.date))),s[0].ts&&(typeof s[0].ts=="string"&&window.isFinite(s[0].ts)?s.forEach(d=>d.ts=parseInt(d.ts,10)):typeof s[0].ts=="string"&&new Date(s[0].ts).toString()!=="Invalid Date"&&s.forEach(d=>d.ts=new Date(d.ts).getTime()),typeof s[0].ts=="number"&&s[0].ts<9466812e5&&s.forEach(d=>d.ts*=1e3))}s.sort((c,d)=>c.ts-d.ts?-1:c.ts({ts:c.t,val:c.y})):(l.includes("y")?s.forEach(c=>c.val=c.y):l.includes("value")?s.forEach(c=>c.val=c.value):l.includes("data")?s.forEach(c=>c.val=c.data):l.includes("v")&&s.forEach(c=>c.val=c.v),l.includes("t")?s.forEach(c=>c.ts=c.t):l.includes("time")?s.forEach(c=>c.ts=c.time):l.includes("date")&&s.forEach(c=>c.ts=c.date))),s[0].ts&&(typeof s[0].ts=="string"&&window.isFinite(s[0].ts)?s.forEach(c=>c.ts=parseInt(c.ts,10)):typeof s[0].ts=="string"&&new Date(s[0].ts).toString()!=="Invalid Date"&&s.forEach(c=>c.ts=new Date(c.ts).getTime()),typeof s[0].ts=="number"&&s[0].ts<9466812e5&&s.forEach(c=>c.ts*=1e3))}return Array.isArray(s)||(s=[],console.warn("JSON is not an array")),s.sort((l,c)=>l.ts-c.ts?-1:l.ts(r.toString().includes(Xs)&&this.onErrorFunc&&this.onErrorFunc(r),console.error(`Cannot read "${e}": ${r.toString()}`),null))),this.objectPromises[e]}async _readOneLine(e){const r=this.config.l[e];try{const n=await this._readObject(r.id);if(n!=null&&n.common){const a=r.name||n.common.name;if(r.name=a&&typeof a=="object"?a[this.systemConfig.language]||a.en||r.id:a||"",r.unit=r.unit||(n.common.unit?n.common.unit.replace("�","°"):""),r.type=n.common.type,r.chartType==="auto"&&(r.chartType=n.common.type==="boolean"?"steps":"line",r.aggregate=n.common.type==="boolean"?"none":"minmax"),r.unit&&(r.falseText||r.trueText)&&delete r.unit,n.common.states&&!Array.isArray(n.common.states)&&r.states!==!1&&!n.common.unit){if(r.states?r.states=Object.assign(n.common.states,r.states):r.states=n.common.states,Object.keys(r.states).find(i=>i==="true"||i==="false")){const i={};Object.keys(r.states).forEach(o=>{i[o==="true"?1:o==="false"?0:o]=r.states[o]}),r.states=i}r.unit&&r.states&&delete r.unit}(r.commonYAxis||r.commonYAxis===0)&&(r.yaxe="off")}}catch(n){n===Xs&&this.onErrorFunc&&this.onErrorFunc(n),console.error(`[ChartModel] Cannot read object ${r.id}: ${n}`)}r.name=r.name||r.id||"",r.unit=r.unit||"",r.chartType==="auto"&&(r.chartType="line",r.aggregate="minmax"),await this.readOneChart(r.id,r.instance||this.defaultHistory,e)}async _readData(){var e;for(let r=0;rn.start&&i.unshift({value:[n.start,""]}),i[i.length-1].value[0]{r.chartType==="bar"?e[n]=this.barData[n]:e[n]=this.seriesData[n]}),this.onUpdateFunc(e,this.actualValues,this.barCategories)}static addTime(e,r,n){const a=new Date(e);return typeof r=="string"?r[1]==="m"||r[2]==="m"?(r=parseInt(r,10),a.setMonth(a.getMonth()-r),e=a.getTime()):r[1]==="y"||r[2]==="y"?(r=parseInt(r,10),a.setFullYear(a.getFullYear()-r),e=a.getTime()):(e=a.getTime(),n?e-=(parseInt(r,10)||0)*6e4:e-=(parseInt(r,10)||0)*1e3):(r=r||0,e=a.getTime(),n?e-=r*6e4:e-=r*1e3),e}async exportData(e,r,n){const a={};for(let i=0;i16777215&&(this.sessionId=1),this.config.l){this.reading=!0,this.onReadingFunc&&this.onReadingFunc(!0),this.seriesData=[],this.barData=[],this.barCategories=null,await this._readData();for(let e=0;e=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Nbt(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function fx(){return fx=Object.assign?Object.assign.bind():function(t){for(var e=1;eE.createElement(e.tag,hx({key:r},e.attr),IJ(e.child)))}function wv(t){return e=>E.createElement(jbt,fx({attr:hx({},t.attr)},e),IJ(t.child))}function jbt(t){var e=r=>{var{attr:n,size:a,title:i}=t,o=Lbt(t,Rbt),s=a||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),E.createElement("svg",fx({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,o,{className:l,style:hx(hx({color:t.color||r.color},r.style),t.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&E.createElement("title",null,i),t.children)};return p7!==void 0?E.createElement(p7.Consumer,null,r=>e(r)):e(PJ)}function Wbt(t){return wv({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(t)}function Hbt(t){return wv({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(t)}function Ubt(t){return wv({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"},child:[]}]})(t)}function Ybt(t){return wv({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},child:[]}]})(t)}function Vbt(t){return wv({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128zM571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-379 28v-32c0-8.8 7.2-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.8 0-16-7.2-16-16z"},child:[]}]})(t)}function Gbt(t){return wv({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"},child:[]}]})(t)}//! moment.js -//! version : 2.30.1 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com -var RJ;function Ye(){return RJ.apply(null,arguments)}function qbt(t){RJ=t}function ys(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function qf(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function pr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function SN(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(pr(t,e))return!1;return!0}function ri(t){return t===void 0}function kc(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function x0(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function LJ(t,e){var r=[],n,a=t.length;for(n=0;n>>0,n;for(n=0;n0)for(r=0;r=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var kN=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Z1=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,AO={},Rm={};function vt(t,e,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),t&&(Rm[t]=a),e&&(Rm[e[0]]=function(){return bl(a.apply(this,arguments),e[1],e[2])}),r&&(Rm[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function Qbt(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function e1t(t){var e=t.match(kN),r,n;for(r=0,n=e.length;r=0&&Z1.test(t);)t=t.replace(Z1,n),Z1.lastIndex=0,r-=1;return t}var t1t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function r1t(t){var e=this._longDateFormat[t],r=this._longDateFormat[t.toUpperCase()];return e||!r?e:(this._longDateFormat[t]=r.match(kN).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[t])}var n1t="Invalid date";function a1t(){return this._invalidDate}var i1t="%d",o1t=/\d{1,2}/;function s1t(t){return this._ordinal.replace("%d",t)}var l1t={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c1t(t,e,r,n){var a=this._relativeTime[r];return $l(a)?a(t,e,r,n):a.replace(/%d/i,t)}function u1t(t,e){var r=this._relativeTime[t>0?"future":"past"];return $l(r)?r(e):r.replace(/%s/i,e)}var _7={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Eo(t){return typeof t=="string"?_7[t]||_7[t.toLowerCase()]:void 0}function EN(t){var e={},r,n;for(n in t)pr(t,n)&&(r=Eo(n),r&&(e[r]=t[n]));return e}var d1t={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function f1t(t){var e=[],r;for(r in t)pr(t,r)&&e.push({unit:r,priority:d1t[r]});return e.sort(function(n,a){return n.priority-a.priority}),e}var BJ=/\d/,Hi=/\d\d/,jJ=/\d{3}/,DN=/\d{4}/,tT=/[+-]?\d{6}/,Jr=/\d\d?/,WJ=/\d\d\d\d?/,HJ=/\d\d\d\d\d\d?/,rT=/\d{1,3}/,MN=/\d{1,4}/,nT=/[+-]?\d{1,6}/,Sv=/\d+/,aT=/[+-]?\d+/,h1t=/Z|[+-]\d\d:?\d\d/gi,iT=/Z|[+-]\d\d(?::?\d\d)?/gi,p1t=/[+-]?\d+(\.\d{1,3})?/,T0=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,xv=/^[1-9]\d?/,ON=/^([1-9]\d|\d)/,px;px={};function Qe(t,e,r){px[t]=$l(e)?e:function(n,a){return n&&r?r:e}}function m1t(t,e){return pr(px,t)?px[t](e._strict,e._locale):new RegExp(v1t(t))}function v1t(t){return yc(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,r,n,a,i){return r||n||a||i}))}function yc(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function uo(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function or(t){var e=+t,r=0;return e!==0&&isFinite(e)&&(r=uo(e)),r}var jP={};function Ar(t,e){var r,n=e,a;for(typeof t=="string"&&(t=[t]),kc(e)&&(n=function(i,o){o[e]=or(i)}),a=t.length,r=0;r68?1900:2e3)};var UJ=Cv("FullYear",!0);function b1t(){return oT(this.year())}function Cv(t,e){return function(r){return r!=null?(YJ(this,t,r),Ye.updateOffset(this,e),this):Ay(this,t)}}function Ay(t,e){if(!t.isValid())return NaN;var r=t._d,n=t._isUTC;switch(e){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function YJ(t,e,r){var n,a,i,o,s;if(!(!t.isValid()||isNaN(r))){switch(n=t._d,a=t._isUTC,e){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,o=t.month(),s=t.date(),s=s===29&&o===1&&!oT(i)?28:s,a?n.setUTCFullYear(i,o,s):n.setFullYear(i,o,s)}}function w1t(t){return t=Eo(t),$l(this[t])?this[t]():this}function S1t(t,e){if(typeof t=="object"){t=EN(t);var r=f1t(t),n,a=r.length;for(n=0;n=0?(s=new Date(t+400,e,r,n,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,r,n,a,i,o),s}function Py(t){var e,r;return t<100&&t>=0?(r=Array.prototype.slice.call(arguments),r[0]=t+400,e=new Date(Date.UTC.apply(null,r)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function mx(t,e,r){var n=7+e-r,a=(7+Py(t,0,n).getUTCDay()-e)%7;return-a+n-1}function ZJ(t,e,r,n,a){var i=(7+r-n)%7,o=mx(t,n,a),s=1+7*(e-1)+i+o,l,c;return s<=0?(l=t-1,c=ay(l)+s):s>ay(t)?(l=t+1,c=s-ay(t)):(l=t,c=s),{year:l,dayOfYear:c}}function Iy(t,e,r){var n=mx(t.year(),e,r),a=Math.floor((t.dayOfYear()-n-1)/7)+1,i,o;return a<1?(o=t.year()-1,i=a+bc(o,e,r)):a>bc(t.year(),e,r)?(i=a-bc(t.year(),e,r),o=t.year()+1):(o=t.year(),i=a),{week:i,year:o}}function bc(t,e,r){var n=mx(t,e,r),a=mx(t+1,e,r);return(ay(t)-n+a)/7}vt("w",["ww",2],"wo","week");vt("W",["WW",2],"Wo","isoWeek");Qe("w",Jr,xv);Qe("ww",Jr,Hi);Qe("W",Jr,xv);Qe("WW",Jr,Hi);k0(["w","ww","W","WW"],function(t,e,r,n){e[n.substr(0,1)]=or(t)});function R1t(t){return Iy(t,this._week.dow,this._week.doy).week}var L1t={dow:0,doy:6};function N1t(){return this._week.dow}function F1t(){return this._week.doy}function z1t(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function B1t(t){var e=Iy(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}vt("d",0,"do","day");vt("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)});vt("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)});vt("dddd",0,0,function(t){return this.localeData().weekdays(this,t)});vt("e",0,0,"weekday");vt("E",0,0,"isoWeekday");Qe("d",Jr);Qe("e",Jr);Qe("E",Jr);Qe("dd",function(t,e){return e.weekdaysMinRegex(t)});Qe("ddd",function(t,e){return e.weekdaysShortRegex(t)});Qe("dddd",function(t,e){return e.weekdaysRegex(t)});k0(["dd","ddd","dddd"],function(t,e,r,n){var a=r._locale.weekdaysParse(t,n,r._strict);a!=null?e.d=a:Ut(r).invalidWeekday=t});k0(["d","e","E"],function(t,e,r,n){e[n]=or(t)});function j1t(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function W1t(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function AN(t,e){return t.slice(e,7).concat(t.slice(0,e))}var H1t="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),KJ="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),U1t="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Y1t=T0,V1t=T0,G1t=T0;function q1t(t,e){var r=ys(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?AN(r,this._week.dow):t?r[t.day()]:r}function X1t(t){return t===!0?AN(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function J1t(t){return t===!0?AN(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Z1t(t,e,r){var n,a,i,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=Ol([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?e==="dddd"?(a=wn.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=wn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=wn.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=wn.call(this._weekdaysParse,o),a!==-1||(a=wn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=wn.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=wn.call(this._shortWeekdaysParse,o),a!==-1||(a=wn.call(this._weekdaysParse,o),a!==-1)?a:(a=wn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=wn.call(this._minWeekdaysParse,o),a!==-1||(a=wn.call(this._weekdaysParse,o),a!==-1)?a:(a=wn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function K1t(t,e,r){var n,a,i;if(this._weekdaysParseExact)return Z1t.call(this,t,e,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=Ol([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&e==="dddd"&&this._fullWeekdaysParse[n].test(t))return n;if(r&&e==="ddd"&&this._shortWeekdaysParse[n].test(t))return n;if(r&&e==="dd"&&this._minWeekdaysParse[n].test(t))return n;if(!r&&this._weekdaysParse[n].test(t))return n}}function Q1t(t){if(!this.isValid())return t!=null?this:NaN;var e=Ay(this,"Day");return t!=null?(t=j1t(t,this.localeData()),this.add(t-e,"d")):e}function ewt(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function twt(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=W1t(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function rwt(t){return this._weekdaysParseExact?(pr(this,"_weekdaysRegex")||PN.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(pr(this,"_weekdaysRegex")||(this._weekdaysRegex=Y1t),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function nwt(t){return this._weekdaysParseExact?(pr(this,"_weekdaysRegex")||PN.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(pr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=V1t),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function awt(t){return this._weekdaysParseExact?(pr(this,"_weekdaysRegex")||PN.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(pr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=G1t),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function PN(){function t(d,u){return u.length-d.length}var e=[],r=[],n=[],a=[],i,o,s,l,c;for(i=0;i<7;i++)o=Ol([2e3,1]).day(i),s=yc(this.weekdaysMin(o,"")),l=yc(this.weekdaysShort(o,"")),c=yc(this.weekdays(o,"")),e.push(s),r.push(l),n.push(c),a.push(s),a.push(l),a.push(c);e.sort(t),r.sort(t),n.sort(t),a.sort(t),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function IN(){return this.hours()%12||12}function iwt(){return this.hours()||24}vt("H",["HH",2],0,"hour");vt("h",["hh",2],0,IN);vt("k",["kk",2],0,iwt);vt("hmm",0,0,function(){return""+IN.apply(this)+bl(this.minutes(),2)});vt("hmmss",0,0,function(){return""+IN.apply(this)+bl(this.minutes(),2)+bl(this.seconds(),2)});vt("Hmm",0,0,function(){return""+this.hours()+bl(this.minutes(),2)});vt("Hmmss",0,0,function(){return""+this.hours()+bl(this.minutes(),2)+bl(this.seconds(),2)});function QJ(t,e){vt(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}QJ("a",!0);QJ("A",!1);function eZ(t,e){return e._meridiemParse}Qe("a",eZ);Qe("A",eZ);Qe("H",Jr,ON);Qe("h",Jr,xv);Qe("k",Jr,xv);Qe("HH",Jr,Hi);Qe("hh",Jr,Hi);Qe("kk",Jr,Hi);Qe("hmm",WJ);Qe("hmmss",HJ);Qe("Hmm",WJ);Qe("Hmmss",HJ);Ar(["H","HH"],Ln);Ar(["k","kk"],function(t,e,r){var n=or(t);e[Ln]=n===24?0:n});Ar(["a","A"],function(t,e,r){r._isPm=r._locale.isPM(t),r._meridiem=t});Ar(["h","hh"],function(t,e,r){e[Ln]=or(t),Ut(r).bigHour=!0});Ar("hmm",function(t,e,r){var n=t.length-2;e[Ln]=or(t.substr(0,n)),e[is]=or(t.substr(n)),Ut(r).bigHour=!0});Ar("hmmss",function(t,e,r){var n=t.length-4,a=t.length-2;e[Ln]=or(t.substr(0,n)),e[is]=or(t.substr(n,2)),e[dc]=or(t.substr(a)),Ut(r).bigHour=!0});Ar("Hmm",function(t,e,r){var n=t.length-2;e[Ln]=or(t.substr(0,n)),e[is]=or(t.substr(n))});Ar("Hmmss",function(t,e,r){var n=t.length-4,a=t.length-2;e[Ln]=or(t.substr(0,n)),e[is]=or(t.substr(n,2)),e[dc]=or(t.substr(a))});function owt(t){return(t+"").toLowerCase().charAt(0)==="p"}var swt=/[ap]\.?m?\.?/i,lwt=Cv("Hours",!0);function cwt(t,e,r){return t>11?r?"pm":"PM":r?"am":"AM"}var tZ={calendar:Zbt,longDateFormat:t1t,invalidDate:n1t,ordinal:i1t,dayOfMonthOrdinalParse:o1t,relativeTime:l1t,months:C1t,monthsShort:VJ,week:L1t,weekdays:H1t,weekdaysMin:U1t,weekdaysShort:KJ,meridiemParse:swt},en={},Jg={},Ry;function uwt(t,e){var r,n=Math.min(t.length,e.length);for(r=0;r0;){if(a=sT(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&uwt(i,n)>=r-1)break;r--}e++}return Ry}function fwt(t){return!!(t&&t.match("^[^/\\\\]*$"))}function sT(t){var e=null,r;if(en[t]===void 0&&typeof Ca<"u"&&Ca&&Ca.exports&&fwt(t))try{e=Ry._abbr,r=require,r("./locale/"+t),Gu(e)}catch{en[t]=null}return en[t]}function Gu(t,e){var r;return t&&(ri(e)?r=Rc(t):r=RN(t,e),r?Ry=r:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Ry._abbr}function RN(t,e){if(e!==null){var r,n=tZ;if(e.abbr=t,en[t]!=null)FJ("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=en[t]._config;else if(e.parentLocale!=null)if(en[e.parentLocale]!=null)n=en[e.parentLocale]._config;else if(r=sT(e.parentLocale),r!=null)n=r._config;else return Jg[e.parentLocale]||(Jg[e.parentLocale]=[]),Jg[e.parentLocale].push({name:t,config:e}),null;return en[t]=new TN(zP(n,e)),Jg[t]&&Jg[t].forEach(function(a){RN(a.name,a.config)}),Gu(t),en[t]}else return delete en[t],null}function hwt(t,e){if(e!=null){var r,n,a=tZ;en[t]!=null&&en[t].parentLocale!=null?en[t].set(zP(en[t]._config,e)):(n=sT(t),n!=null&&(a=n._config),e=zP(a,e),n==null&&(e.abbr=t),r=new TN(e),r.parentLocale=en[t],en[t]=r),Gu(t)}else en[t]!=null&&(en[t].parentLocale!=null?(en[t]=en[t].parentLocale,t===Gu()&&Gu(t)):en[t]!=null&&delete en[t]);return en[t]}function Rc(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Ry;if(!ys(t)){if(e=sT(t),e)return e;t=[t]}return dwt(t)}function pwt(){return BP(en)}function LN(t){var e,r=t._a;return r&&Ut(t).overflow===-2&&(e=r[uc]<0||r[uc]>11?uc:r[ll]<1||r[ll]>$N(r[ka],r[uc])?ll:r[Ln]<0||r[Ln]>24||r[Ln]===24&&(r[is]!==0||r[dc]!==0||r[Bf]!==0)?Ln:r[is]<0||r[is]>59?is:r[dc]<0||r[dc]>59?dc:r[Bf]<0||r[Bf]>999?Bf:-1,Ut(t)._overflowDayOfYear&&(ell)&&(e=ll),Ut(t)._overflowWeeks&&e===-1&&(e=_1t),Ut(t)._overflowWeekday&&e===-1&&(e=y1t),Ut(t).overflow=e),t}var mwt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vwt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gwt=/Z|[+-]\d\d(?::?\d\d)?/,K1=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],PO=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_wt=/^\/?Date\((-?\d+)/i,ywt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,bwt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function rZ(t){var e,r,n=t._i,a=mwt.exec(n)||vwt.exec(n),i,o,s,l,c=K1.length,d=PO.length;if(a){for(Ut(t).iso=!0,e=0,r=c;eay(o)||t._dayOfYear===0)&&(Ut(t)._overflowDayOfYear=!0),r=Py(o,0,t._dayOfYear),t._a[uc]=r.getUTCMonth(),t._a[ll]=r.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=n[e]=a[e];for(;e<7;e++)t._a[e]=n[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[Ln]===24&&t._a[is]===0&&t._a[dc]===0&&t._a[Bf]===0&&(t._nextDay=!0,t._a[Ln]=0),t._d=(t._useUTC?Py:I1t).apply(null,n),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Ln]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(Ut(t).weekdayMismatch=!0)}}function Dwt(t){var e,r,n,a,i,o,s,l,c;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,r=mm(e.GG,t._a[ka],Iy(Xr(),1,4).year),n=mm(e.W,1),a=mm(e.E,1),(a<1||a>7)&&(l=!0)):(i=t._locale._week.dow,o=t._locale._week.doy,c=Iy(Xr(),i,o),r=mm(e.gg,t._a[ka],c.year),n=mm(e.w,c.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),n<1||n>bc(r,i,o)?Ut(t)._overflowWeeks=!0:l!=null?Ut(t)._overflowWeekday=!0:(s=ZJ(r,n,a,i,o),t._a[ka]=s.year,t._dayOfYear=s.dayOfYear)}Ye.ISO_8601=function(){};Ye.RFC_2822=function(){};function FN(t){if(t._f===Ye.ISO_8601){rZ(t);return}if(t._f===Ye.RFC_2822){nZ(t);return}t._a=[],Ut(t).empty=!0;var e=""+t._i,r,n,a,i,o,s=e.length,l=0,c,d;for(a=zJ(t._f,t._locale).match(kN)||[],d=a.length,r=0;r0&&Ut(t).unusedInput.push(o),e=e.slice(e.indexOf(n)+n.length),l+=n.length),Rm[i]?(n?Ut(t).empty=!1:Ut(t).unusedTokens.push(i),g1t(i,n,t)):t._strict&&!n&&Ut(t).unusedTokens.push(i);Ut(t).charsLeftOver=s-l,e.length>0&&Ut(t).unusedInput.push(e),t._a[Ln]<=12&&Ut(t).bigHour===!0&&t._a[Ln]>0&&(Ut(t).bigHour=void 0),Ut(t).parsedDateParts=t._a.slice(0),Ut(t).meridiem=t._meridiem,t._a[Ln]=Mwt(t._locale,t._a[Ln],t._meridiem),c=Ut(t).era,c!==null&&(t._a[ka]=t._locale.erasConvertYear(c,t._a[ka])),NN(t),LN(t)}function Mwt(t,e,r){var n;return r==null?e:t.meridiemHour!=null?t.meridiemHour(e,r):(t.isPM!=null&&(n=t.isPM(r),n&&e<12&&(e+=12),!n&&e===12&&(e=0)),e)}function Owt(t){var e,r,n,a,i,o,s=!1,l=t._f.length;if(l===0){Ut(t).invalidFormat=!0,t._d=new Date(NaN);return}for(a=0;athis?this:t:eT()});function oZ(t,e){var r,n;if(e.length===1&&ys(e[0])&&(e=e[0]),!e.length)return Xr();for(r=e[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Zwt(){if(!ri(this._isDSTShifted))return this._isDSTShifted;var t={},e;return CN(t,this),t=aZ(t),t._a?(e=t._isUTC?Ol(t._a):Xr(t._a),this._isDSTShifted=this.isValid()&&Wwt(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Kwt(){return this.isValid()?!this._isUTC:!1}function Qwt(){return this.isValid()?this._isUTC:!1}function lZ(){return this.isValid()?this._isUTC&&this._offset===0:!1}var eSt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tSt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function xs(t,e){var r=t,n=null,a,i,o;return SS(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:kc(t)||!isNaN(+t)?(r={},e?r[e]=+t:r.milliseconds=+t):(n=eSt.exec(t))?(a=n[1]==="-"?-1:1,r={y:0,d:or(n[ll])*a,h:or(n[Ln])*a,m:or(n[is])*a,s:or(n[dc])*a,ms:or(WP(n[Bf]*1e3))*a}):(n=tSt.exec(t))?(a=n[1]==="-"?-1:1,r={y:nf(n[2],a),M:nf(n[3],a),w:nf(n[4],a),d:nf(n[5],a),h:nf(n[6],a),m:nf(n[7],a),s:nf(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=rSt(Xr(r.from),Xr(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new lT(r),SS(t)&&pr(t,"_locale")&&(i._locale=t._locale),SS(t)&&pr(t,"_isValid")&&(i._isValid=t._isValid),i}xs.fn=lT.prototype;xs.invalid=jwt;function nf(t,e){var r=t&&parseFloat(t.replace(",","."));return(isNaN(r)?0:r)*e}function b7(t,e){var r={};return r.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(r.months,"M").isAfter(e)&&--r.months,r.milliseconds=+e-+t.clone().add(r.months,"M"),r}function rSt(t,e){var r;return t.isValid()&&e.isValid()?(e=BN(e,t),t.isBefore(e)?r=b7(t,e):(r=b7(e,t),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function cZ(t,e){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(FJ(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=xs(r,n),uZ(this,a,t),this}}function uZ(t,e,r,n){var a=e._milliseconds,i=WP(e._days),o=WP(e._months);t.isValid()&&(n=n??!0,o&&qJ(t,Ay(t,"Month")+o*r),i&&YJ(t,"Date",Ay(t,"Date")+i*r),a&&t._d.setTime(t._d.valueOf()+a*r),n&&Ye.updateOffset(t,i||o))}var nSt=cZ(1,"add"),aSt=cZ(-1,"subtract");function dZ(t){return typeof t=="string"||t instanceof String}function iSt(t){return bs(t)||x0(t)||dZ(t)||kc(t)||sSt(t)||oSt(t)||t===null||t===void 0}function oSt(t){var e=qf(t)&&!SN(t),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=n.length;for(a=0;ar.valueOf():r.valueOf()9999?wS(r,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):$l(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",wS(r,"Z")):wS(r,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function wSt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",r,n,a,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),r="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(r+n+a+i)}function SSt(t){t||(t=this.isUtc()?Ye.defaultFormatUtc:Ye.defaultFormat);var e=wS(this,t);return this.localeData().postformat(e)}function xSt(t,e){return this.isValid()&&(bs(t)&&t.isValid()||Xr(t).isValid())?xs({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function CSt(t){return this.from(Xr(),t)}function TSt(t,e){return this.isValid()&&(bs(t)&&t.isValid()||Xr(t).isValid())?xs({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function kSt(t){return this.to(Xr(),t)}function fZ(t){var e;return t===void 0?this._locale._abbr:(e=Rc(t),e!=null&&(this._locale=e),this)}var hZ=ko("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function pZ(){return this._locale}var vx=1e3,Lm=60*vx,gx=60*Lm,mZ=(365*400+97)*24*gx;function Nm(t,e){return(t%e+e)%e}function vZ(t,e,r){return t<100&&t>=0?new Date(t+400,e,r)-mZ:new Date(t,e,r).valueOf()}function gZ(t,e,r){return t<100&&t>=0?Date.UTC(t+400,e,r)-mZ:Date.UTC(t,e,r)}function ESt(t){var e,r;if(t=Eo(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?gZ:vZ,t){case"year":e=r(this.year(),0,1);break;case"quarter":e=r(this.year(),this.month()-this.month()%3,1);break;case"month":e=r(this.year(),this.month(),1);break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=r(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Nm(e+(this._isUTC?0:this.utcOffset()*Lm),gx);break;case"minute":e=this._d.valueOf(),e-=Nm(e,Lm);break;case"second":e=this._d.valueOf(),e-=Nm(e,vx);break}return this._d.setTime(e),Ye.updateOffset(this,!0),this}function DSt(t){var e,r;if(t=Eo(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?gZ:vZ,t){case"year":e=r(this.year()+1,0,1)-1;break;case"quarter":e=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=r(this.year(),this.month()+1,1)-1;break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=gx-Nm(e+(this._isUTC?0:this.utcOffset()*Lm),gx)-1;break;case"minute":e=this._d.valueOf(),e+=Lm-Nm(e,Lm)-1;break;case"second":e=this._d.valueOf(),e+=vx-Nm(e,vx)-1;break}return this._d.setTime(e),Ye.updateOffset(this,!0),this}function MSt(){return this._d.valueOf()-(this._offset||0)*6e4}function OSt(){return Math.floor(this.valueOf()/1e3)}function $St(){return new Date(this.valueOf())}function ASt(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function PSt(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function ISt(){return this.isValid()?this.toISOString():null}function RSt(){return xN(this)}function LSt(){return Fu({},Ut(this))}function NSt(){return Ut(this).overflow}function FSt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}vt("N",0,0,"eraAbbr");vt("NN",0,0,"eraAbbr");vt("NNN",0,0,"eraAbbr");vt("NNNN",0,0,"eraName");vt("NNNNN",0,0,"eraNarrow");vt("y",["y",1],"yo","eraYear");vt("y",["yy",2],0,"eraYear");vt("y",["yyy",3],0,"eraYear");vt("y",["yyyy",4],0,"eraYear");Qe("N",jN);Qe("NN",jN);Qe("NNN",jN);Qe("NNNN",XSt);Qe("NNNNN",JSt);Ar(["N","NN","NNN","NNNN","NNNNN"],function(t,e,r,n){var a=r._locale.erasParse(t,n,r._strict);a?Ut(r).era=a:Ut(r).invalidEra=t});Qe("y",Sv);Qe("yy",Sv);Qe("yyy",Sv);Qe("yyyy",Sv);Qe("yo",ZSt);Ar(["y","yy","yyy","yyyy"],ka);Ar(["yo"],function(t,e,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=t.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?e[ka]=r._locale.eraYearOrdinalParse(t,a):e[ka]=parseInt(t,10)});function zSt(t,e){var r,n,a,i=this._eras||Rc("en")._eras;for(r=0,n=i.length;r=0)return i[n]}function jSt(t,e){var r=t.since<=t.until?1:-1;return e===void 0?Ye(t.since).year():Ye(t.since).year()+(e-t.offset)*r}function WSt(){var t,e,r,n=this.localeData().eras();for(t=0,e=n.length;ti&&(e=i),axt.call(this,t,e,r,n,a))}function axt(t,e,r,n,a){var i=ZJ(t,e,r,n,a),o=Py(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}vt("Q",0,"Qo","quarter");Qe("Q",BJ);Ar("Q",function(t,e){e[uc]=(or(t)-1)*3});function ixt(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}vt("D",["DD",2],"Do","date");Qe("D",Jr,xv);Qe("DD",Jr,Hi);Qe("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});Ar(["D","DD"],ll);Ar("Do",function(t,e){e[ll]=or(t.match(Jr)[0])});var yZ=Cv("Date",!0);vt("DDD",["DDDD",3],"DDDo","dayOfYear");Qe("DDD",rT);Qe("DDDD",jJ);Ar(["DDD","DDDD"],function(t,e,r){r._dayOfYear=or(t)});function oxt(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}vt("m",["mm",2],0,"minute");Qe("m",Jr,ON);Qe("mm",Jr,Hi);Ar(["m","mm"],is);var sxt=Cv("Minutes",!1);vt("s",["ss",2],0,"second");Qe("s",Jr,ON);Qe("ss",Jr,Hi);Ar(["s","ss"],dc);var lxt=Cv("Seconds",!1);vt("S",0,0,function(){return~~(this.millisecond()/100)});vt(0,["SS",2],0,function(){return~~(this.millisecond()/10)});vt(0,["SSS",3],0,"millisecond");vt(0,["SSSS",4],0,function(){return this.millisecond()*10});vt(0,["SSSSS",5],0,function(){return this.millisecond()*100});vt(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});vt(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});vt(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});vt(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Qe("S",rT,BJ);Qe("SS",rT,Hi);Qe("SSS",rT,jJ);var zu,bZ;for(zu="SSSS";zu.length<=9;zu+="S")Qe(zu,Sv);function cxt(t,e){e[Bf]=or(("0."+t)*1e3)}for(zu="S";zu.length<=9;zu+="S")Ar(zu,cxt);bZ=Cv("Milliseconds",!1);vt("z",0,0,"zoneAbbr");vt("zz",0,0,"zoneName");function uxt(){return this._isUTC?"UTC":""}function dxt(){return this._isUTC?"Coordinated Universal Time":""}var Ae=C0.prototype;Ae.add=nSt;Ae.calendar=uSt;Ae.clone=dSt;Ae.diff=_St;Ae.endOf=DSt;Ae.format=SSt;Ae.from=xSt;Ae.fromNow=CSt;Ae.to=TSt;Ae.toNow=kSt;Ae.get=w1t;Ae.invalidAt=NSt;Ae.isAfter=fSt;Ae.isBefore=hSt;Ae.isBetween=pSt;Ae.isSame=mSt;Ae.isSameOrAfter=vSt;Ae.isSameOrBefore=gSt;Ae.isValid=RSt;Ae.lang=hZ;Ae.locale=fZ;Ae.localeData=pZ;Ae.max=Rwt;Ae.min=Iwt;Ae.parsingFlags=LSt;Ae.set=S1t;Ae.startOf=ESt;Ae.subtract=aSt;Ae.toArray=ASt;Ae.toObject=PSt;Ae.toDate=$St;Ae.toISOString=bSt;Ae.inspect=wSt;typeof Symbol<"u"&&Symbol.for!=null&&(Ae[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Ae.toJSON=ISt;Ae.toString=ySt;Ae.unix=OSt;Ae.valueOf=MSt;Ae.creationData=FSt;Ae.eraName=WSt;Ae.eraNarrow=HSt;Ae.eraAbbr=USt;Ae.eraYear=YSt;Ae.year=UJ;Ae.isLeapYear=b1t;Ae.weekYear=KSt;Ae.isoWeekYear=QSt;Ae.quarter=Ae.quarters=ixt;Ae.month=XJ;Ae.daysInMonth=$1t;Ae.week=Ae.weeks=z1t;Ae.isoWeek=Ae.isoWeeks=B1t;Ae.weeksInYear=rxt;Ae.weeksInWeekYear=nxt;Ae.isoWeeksInYear=ext;Ae.isoWeeksInISOWeekYear=txt;Ae.date=yZ;Ae.day=Ae.days=Q1t;Ae.weekday=ewt;Ae.isoWeekday=twt;Ae.dayOfYear=oxt;Ae.hour=Ae.hours=lwt;Ae.minute=Ae.minutes=sxt;Ae.second=Ae.seconds=lxt;Ae.millisecond=Ae.milliseconds=bZ;Ae.utcOffset=Uwt;Ae.utc=Vwt;Ae.local=Gwt;Ae.parseZone=qwt;Ae.hasAlignedHourOffset=Xwt;Ae.isDST=Jwt;Ae.isLocal=Kwt;Ae.isUtcOffset=Qwt;Ae.isUtc=lZ;Ae.isUTC=lZ;Ae.zoneAbbr=uxt;Ae.zoneName=dxt;Ae.dates=ko("dates accessor is deprecated. Use date instead.",yZ);Ae.months=ko("months accessor is deprecated. Use month instead",XJ);Ae.years=ko("years accessor is deprecated. Use year instead",UJ);Ae.zone=ko("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ywt);Ae.isDSTShifted=ko("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Zwt);function fxt(t){return Xr(t*1e3)}function hxt(){return Xr.apply(null,arguments).parseZone()}function wZ(t){return t}var mr=TN.prototype;mr.calendar=Kbt;mr.longDateFormat=r1t;mr.invalidDate=a1t;mr.ordinal=s1t;mr.preparse=wZ;mr.postformat=wZ;mr.relativeTime=c1t;mr.pastFuture=u1t;mr.set=Jbt;mr.eras=zSt;mr.erasParse=BSt;mr.erasConvertYear=jSt;mr.erasAbbrRegex=GSt;mr.erasNameRegex=VSt;mr.erasNarrowRegex=qSt;mr.months=E1t;mr.monthsShort=D1t;mr.monthsParse=O1t;mr.monthsRegex=P1t;mr.monthsShortRegex=A1t;mr.week=R1t;mr.firstDayOfYear=F1t;mr.firstDayOfWeek=N1t;mr.weekdays=q1t;mr.weekdaysMin=J1t;mr.weekdaysShort=X1t;mr.weekdaysParse=K1t;mr.weekdaysRegex=rwt;mr.weekdaysShortRegex=nwt;mr.weekdaysMinRegex=awt;mr.isPM=owt;mr.meridiem=cwt;function _x(t,e,r,n){var a=Rc(),i=Ol().set(n,e);return a[r](i,t)}function SZ(t,e,r){if(kc(t)&&(e=t,t=void 0),t=t||"",e!=null)return _x(t,e,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=_x(t,n,r,"month");return a}function HN(t,e,r,n){typeof t=="boolean"?(kc(e)&&(r=e,e=void 0),e=e||""):(e=t,r=e,t=!1,kc(e)&&(r=e,e=void 0),e=e||"");var a=Rc(),i=t?a._week.dow:0,o,s=[];if(r!=null)return _x(e,(r+i)%7,n,"day");for(o=0;o<7;o++)s[o]=_x(e,(o+i)%7,n,"day");return s}function pxt(t,e){return SZ(t,e,"months")}function mxt(t,e){return SZ(t,e,"monthsShort")}function vxt(t,e,r){return HN(t,e,r,"weekdays")}function gxt(t,e,r){return HN(t,e,r,"weekdaysShort")}function _xt(t,e,r){return HN(t,e,r,"weekdaysMin")}Gu("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,r=or(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+r}});Ye.lang=ko("moment.lang is deprecated. Use moment.locale instead.",Gu);Ye.langData=ko("moment.langData is deprecated. Use moment.localeData instead.",Rc);var Jl=Math.abs;function yxt(){var t=this._data;return this._milliseconds=Jl(this._milliseconds),this._days=Jl(this._days),this._months=Jl(this._months),t.milliseconds=Jl(t.milliseconds),t.seconds=Jl(t.seconds),t.minutes=Jl(t.minutes),t.hours=Jl(t.hours),t.months=Jl(t.months),t.years=Jl(t.years),this}function xZ(t,e,r,n){var a=xs(e,r);return t._milliseconds+=n*a._milliseconds,t._days+=n*a._days,t._months+=n*a._months,t._bubble()}function bxt(t,e){return xZ(this,t,e,1)}function wxt(t,e){return xZ(this,t,e,-1)}function w7(t){return t<0?Math.floor(t):Math.ceil(t)}function Sxt(){var t=this._milliseconds,e=this._days,r=this._months,n=this._data,a,i,o,s,l;return t>=0&&e>=0&&r>=0||t<=0&&e<=0&&r<=0||(t+=w7(UP(r)+e)*864e5,e=0,r=0),n.milliseconds=t%1e3,a=uo(t/1e3),n.seconds=a%60,i=uo(a/60),n.minutes=i%60,o=uo(i/60),n.hours=o%24,e+=uo(o/24),l=uo(CZ(e)),r+=l,e-=w7(UP(l)),s=uo(r/12),r%=12,n.days=e,n.months=r,n.years=s,this}function CZ(t){return t*4800/146097}function UP(t){return t*146097/4800}function xxt(t){if(!this.isValid())return NaN;var e,r,n=this._milliseconds;if(t=Eo(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+n/864e5,r=this._months+CZ(e),t){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(e=this._days+Math.round(UP(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return e*24+n/36e5;case"minute":return e*1440+n/6e4;case"second":return e*86400+n/1e3;case"millisecond":return Math.floor(e*864e5)+n;default:throw new Error("Unknown unit "+t)}}function Lc(t){return function(){return this.as(t)}}var TZ=Lc("ms"),Cxt=Lc("s"),Txt=Lc("m"),kxt=Lc("h"),Ext=Lc("d"),Dxt=Lc("w"),Mxt=Lc("M"),Oxt=Lc("Q"),$xt=Lc("y"),Axt=TZ;function Pxt(){return xs(this)}function Ixt(t){return t=Eo(t),this.isValid()?this[t+"s"]():NaN}function Ph(t){return function(){return this.isValid()?this._data[t]:NaN}}var Rxt=Ph("milliseconds"),Lxt=Ph("seconds"),Nxt=Ph("minutes"),Fxt=Ph("hours"),zxt=Ph("days"),Bxt=Ph("months"),jxt=Ph("years");function Wxt(){return uo(this.days()/7)}var ic=Math.round,Tm={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Hxt(t,e,r,n,a){return a.relativeTime(e||1,!!r,t,n)}function Uxt(t,e,r,n){var a=xs(t).abs(),i=ic(a.as("s")),o=ic(a.as("m")),s=ic(a.as("h")),l=ic(a.as("d")),c=ic(a.as("M")),d=ic(a.as("w")),u=ic(a.as("y")),f=i<=r.ss&&["s",i]||i0,f[4]=n,Hxt.apply(null,f)}function Yxt(t){return t===void 0?ic:typeof t=="function"?(ic=t,!0):!1}function Vxt(t,e){return Tm[t]===void 0?!1:e===void 0?Tm[t]:(Tm[t]=e,t==="s"&&(Tm.ss=e-1),!0)}function Gxt(t,e){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Tm,a,i;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(r=t),typeof e=="object"&&(n=Object.assign({},Tm,e),e.s!=null&&e.ss==null&&(n.ss=e.s-1)),a=this.localeData(),i=Uxt(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var IO=Math.abs;function Ip(t){return(t>0)-(t<0)||+t}function uT(){if(!this.isValid())return this.localeData().invalidDate();var t=IO(this._milliseconds)/1e3,e=IO(this._days),r=IO(this._months),n,a,i,o,s=this.asSeconds(),l,c,d,u;return s?(n=uo(t/60),a=uo(n/60),t%=60,n%=60,i=uo(r/12),r%=12,o=t?t.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=Ip(this._months)!==Ip(s)?"-":"",d=Ip(this._days)!==Ip(s)?"-":"",u=Ip(this._milliseconds)!==Ip(s)?"-":"",l+"P"+(i?c+i+"Y":"")+(r?c+r+"M":"")+(e?d+e+"D":"")+(a||n||t?"T":"")+(a?u+a+"H":"")+(n?u+n+"M":"")+(t?u+o+"S":"")):"P0D"}var ur=lT.prototype;ur.isValid=Bwt;ur.abs=yxt;ur.add=bxt;ur.subtract=wxt;ur.as=xxt;ur.asMilliseconds=TZ;ur.asSeconds=Cxt;ur.asMinutes=Txt;ur.asHours=kxt;ur.asDays=Ext;ur.asWeeks=Dxt;ur.asMonths=Mxt;ur.asQuarters=Oxt;ur.asYears=$xt;ur.valueOf=Axt;ur._bubble=Sxt;ur.clone=Pxt;ur.get=Ixt;ur.milliseconds=Rxt;ur.seconds=Lxt;ur.minutes=Nxt;ur.hours=Fxt;ur.days=zxt;ur.weeks=Wxt;ur.months=Bxt;ur.years=jxt;ur.humanize=Gxt;ur.toISOString=uT;ur.toString=uT;ur.toJSON=uT;ur.locale=fZ;ur.localeData=pZ;ur.toIsoString=ko("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",uT);ur.lang=hZ;vt("X",0,0,"unix");vt("x",0,0,"valueOf");Qe("x",aT);Qe("X",p1t);Ar("X",function(t,e,r){r._d=new Date(parseFloat(t)*1e3)});Ar("x",function(t,e,r){r._d=new Date(or(t))});//! moment.js -Ye.version="2.30.1";qbt(Xr);Ye.fn=Ae;Ye.min=Lwt;Ye.max=Nwt;Ye.now=Fwt;Ye.utc=Ol;Ye.unix=fxt;Ye.months=pxt;Ye.isDate=x0;Ye.locale=Gu;Ye.invalid=eT;Ye.duration=xs;Ye.isMoment=bs;Ye.weekdays=vxt;Ye.parseZone=hxt;Ye.localeData=Rc;Ye.isDuration=SS;Ye.monthsShort=mxt;Ye.weekdaysMin=_xt;Ye.defineLocale=RN;Ye.updateLocale=hwt;Ye.locales=pwt;Ye.weekdaysShort=gxt;Ye.normalizeUnits=Eo;Ye.relativeTimeRounding=Yxt;Ye.relativeTimeThreshold=Vxt;Ye.calendarFormat=cSt;Ye.prototype=Ae;Ye.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var YP={exports:{}},CS={exports:{}},qxt=CS.exports,S7;function Cs(){return S7||(S7=1,function(t,e){(function(r,n){t.exports=n()})(qxt,function(){var r;function n(){return r.apply(null,arguments)}function a(S){r=S}function i(S){return S instanceof Array||Object.prototype.toString.call(S)==="[object Array]"}function o(S){return S!=null&&Object.prototype.toString.call(S)==="[object Object]"}function s(S,D){return Object.prototype.hasOwnProperty.call(S,D)}function l(S){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(S).length===0;var D;for(D in S)if(s(S,D))return!1;return!0}function c(S){return S===void 0}function d(S){return typeof S=="number"||Object.prototype.toString.call(S)==="[object Number]"}function u(S){return S instanceof Date||Object.prototype.toString.call(S)==="[object Date]"}function f(S,D){var P=[],F,U=S.length;for(F=0;F>>0,F;for(F=0;F0)for(P=0;P=0;return(ee?P?"+":"":"-")+Math.pow(10,Math.max(0,U)).toString().substr(1)+F}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,X=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ae={},re={};function le(S,D,P,F){var U=F;typeof F=="string"&&(U=function(){return this[F]()}),S&&(re[S]=U),D&&(re[D[0]]=function(){return oe(U.apply(this,arguments),D[1],D[2])}),P&&(re[P]=function(){return this.localeData().ordinal(U.apply(this,arguments),S)})}function Ee(S){return S.match(/\[[\s\S]/)?S.replace(/^\[|\]$/g,""):S.replace(/\\/g,"")}function We(S){var D=S.match(H),P,F;for(P=0,F=D.length;P=0&&X.test(S);)S=S.replace(X,F),X.lastIndex=0,P-=1;return S}var Pe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function we(S){var D=this._longDateFormat[S],P=this._longDateFormat[S.toUpperCase()];return D||!P?D:(this._longDateFormat[S]=P.match(H).map(function(F){return F==="MMMM"||F==="MM"||F==="DD"||F==="dddd"?F.slice(1):F}).join(""),this._longDateFormat[S])}var ye="Invalid date";function ht(){return this._invalidDate}var Be="%d",je=/\d{1,2}/;function Dt(S){return this._ordinal.replace("%d",S)}var Me={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ot(S,D,P,F){var U=this._relativeTime[P];return j(U)?U(S,D,P,F):U.replace(/%d/i,S)}function kt(S,D){var P=this._relativeTime[S>0?"future":"past"];return j(P)?P(D):P.replace(/%s/i,D)}var _t={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function tt(S){return typeof S=="string"?_t[S]||_t[S.toLowerCase()]:void 0}function Fe(S){var D={},P,F;for(F in S)s(S,F)&&(P=tt(F),P&&(D[P]=S[F]));return D}var Vt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function _e(S){var D=[],P;for(P in S)s(S,P)&&D.push({unit:P,priority:Vt[P]});return D.sort(function(F,U){return F.priority-U.priority}),D}var He=/\d/,pt=/\d\d/,ct=/\d{3}/,ut=/\d{4}/,Et=/[+-]?\d{6}/,nt=/\d\d?/,Ke=/\d\d\d\d?/,nr=/\d\d\d\d\d\d?/,ar=/\d{1,3}/,Kt=/\d{1,4}/,me=/[+-]?\d{1,6}/,Ce=/\d+/,at=/[+-]?\d+/,gt=/Z|[+-]\d\d:?\d\d/gi,Qt=/Z|[+-]\d\d(?::?\d\d)?/gi,Fn=/[+-]?\d+(\.\d{1,3})?/,cn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,gn=/^[1-9]\d?/,Po=/^([1-9]\d|\d)/,vi;vi={};function Ve(S,D,P){vi[S]=j(D)?D:function(F,U){return F&&P?P:D}}function Nh(S,D){return s(vi,S)?vi[S](D._strict,D._locale):new RegExp(Bt(S))}function Bt(S){return Gr(S.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(D,P,F,U,ee){return P||F||U||ee}))}function Gr(S){return S.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function zn(S){return S<0?Math.ceil(S)||0:Math.floor(S)}function jt(S){var D=+S,P=0;return D!==0&&isFinite(D)&&(P=zn(D)),P}var vd={};function cr(S,D){var P,F=D,U;for(typeof S=="string"&&(S=[S]),d(D)&&(F=function(ee,he){he[D]=jt(ee)}),U=S.length,P=0;P68?1900:2e3)};var Iv=Rl("FullYear",!0);function Q0(){return Il(this.year())}function Rl(S,D){return function(P){return P!=null?(eb(this,S,P),n.updateOffset(this,D),this):yd(this,S)}}function yd(S,D){if(!S.isValid())return NaN;var P=S._d,F=S._isUTC;switch(D){case"Milliseconds":return F?P.getUTCMilliseconds():P.getMilliseconds();case"Seconds":return F?P.getUTCSeconds():P.getSeconds();case"Minutes":return F?P.getUTCMinutes():P.getMinutes();case"Hours":return F?P.getUTCHours():P.getHours();case"Date":return F?P.getUTCDate():P.getDate();case"Day":return F?P.getUTCDay():P.getDay();case"Month":return F?P.getUTCMonth():P.getMonth();case"FullYear":return F?P.getUTCFullYear():P.getFullYear();default:return NaN}}function eb(S,D,P){var F,U,ee,he,Ge;if(!(!S.isValid()||isNaN(P))){switch(F=S._d,U=S._isUTC,D){case"Milliseconds":return void(U?F.setUTCMilliseconds(P):F.setMilliseconds(P));case"Seconds":return void(U?F.setUTCSeconds(P):F.setSeconds(P));case"Minutes":return void(U?F.setUTCMinutes(P):F.setMinutes(P));case"Hours":return void(U?F.setUTCHours(P):F.setHours(P));case"Date":return void(U?F.setUTCDate(P):F.setDate(P));case"FullYear":break;default:return}ee=P,he=S.month(),Ge=S.date(),Ge=Ge===29&&he===1&&!Il(ee)?28:Ge,U?F.setUTCFullYear(ee,he,Ge):F.setFullYear(ee,he,Ge)}}function an(S){return S=tt(S),j(this[S])?this[S]():this}function tk(S,D){if(typeof S=="object"){S=Fe(S);var P=_e(S),F,U=P.length;for(F=0;F=0?(Ge=new Date(S+400,D,P,F,U,ee,he),isFinite(Ge.getFullYear())&&Ge.setFullYear(S)):Ge=new Date(S,D,P,F,U,ee,he),Ge}function Hc(S){var D,P;return S<100&&S>=0?(P=Array.prototype.slice.call(arguments),P[0]=S+400,D=new Date(Date.UTC.apply(null,P)),isFinite(D.getUTCFullYear())&&D.setUTCFullYear(S)):D=new Date(Date.UTC.apply(null,arguments)),D}function Uc(S,D,P){var F=7+D-P,U=(7+Hc(S,0,F).getUTCDay()-D)%7;return-U+F-1}function Yc(S,D,P,F,U){var ee=(7+P-F)%7,he=Uc(S,F,U),Ge=1+7*(D-1)+ee+he,Xe,qt;return Ge<=0?(Xe=S-1,qt=jc(Xe)+Ge):Ge>jc(S)?(Xe=S+1,qt=Ge-jc(S)):(Xe=S,qt=Ge),{year:Xe,dayOfYear:qt}}function Cd(S,D,P){var F=Uc(S.year(),D,P),U=Math.floor((S.dayOfYear()-F-1)/7)+1,ee,he;return U<1?(he=S.year()-1,ee=U+bi(he,D,P)):U>bi(S.year(),D,P)?(ee=U-bi(S.year(),D,P),he=S.year()+1):(he=S.year(),ee=U),{week:ee,year:he}}function bi(S,D,P){var F=Uc(S,D,P),U=Uc(S+1,D,P);return(jc(S)-F+U)/7}le("w",["ww",2],"wo","week"),le("W",["WW",2],"Wo","isoWeek"),Ve("w",nt,gn),Ve("ww",nt,pt),Ve("W",nt,gn),Ve("WW",nt,pt),gd(["w","ww","W","WW"],function(S,D,P,F){D[F.substr(0,1)]=jt(S)});function vr(S){return Cd(S,this._week.dow,this._week.doy).week}var rb={dow:0,doy:6};function nb(){return this._week.dow}function Fv(){return this._week.doy}function ab(S){var D=this.localeData().week(this);return S==null?D:this.add((S-D)*7,"d")}function ib(S){var D=Cd(this,1,4).week;return S==null?D:this.add((S-D)*7,"d")}le("d",0,"do","day"),le("dd",0,0,function(S){return this.localeData().weekdaysMin(this,S)}),le("ddd",0,0,function(S){return this.localeData().weekdaysShort(this,S)}),le("dddd",0,0,function(S){return this.localeData().weekdays(this,S)}),le("e",0,0,"weekday"),le("E",0,0,"isoWeekday"),Ve("d",nt),Ve("e",nt),Ve("E",nt),Ve("dd",function(S,D){return D.weekdaysMinRegex(S)}),Ve("ddd",function(S,D){return D.weekdaysShortRegex(S)}),Ve("dddd",function(S,D){return D.weekdaysRegex(S)}),gd(["dd","ddd","dddd"],function(S,D,P,F){var U=P._locale.weekdaysParse(S,F,P._strict);U!=null?D.d=U:_(P).invalidWeekday=S}),gd(["d","e","E"],function(S,D,P,F){D[F]=jt(S)});function ob(S,D){return typeof S!="string"?S:isNaN(S)?(S=D.weekdaysParse(S),typeof S=="number"?S:null):parseInt(S,10)}function zv(S,D){return typeof S=="string"?D.weekdaysParse(S)%7||7:isNaN(S)?null:S}function Vc(S,D){return S.slice(D,7).concat(S.slice(0,D))}var ks="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Io="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Es="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Td=cn,kd=cn,Ds=cn;function lk(S,D){var P=i(this._weekdays)?this._weekdays:this._weekdays[S&&S!==!0&&this._weekdays.isFormat.test(D)?"format":"standalone"];return S===!0?Vc(P,this._week.dow):S?P[S.day()]:P}function sb(S){return S===!0?Vc(this._weekdaysShort,this._week.dow):S?this._weekdaysShort[S.day()]:this._weekdaysShort}function Ed(S){return S===!0?Vc(this._weekdaysMin,this._week.dow):S?this._weekdaysMin[S.day()]:this._weekdaysMin}function ck(S,D,P){var F,U,ee,he=S.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],F=0;F<7;++F)ee=v([2e3,1]).day(F),this._minWeekdaysParse[F]=this.weekdaysMin(ee,"").toLocaleLowerCase(),this._shortWeekdaysParse[F]=this.weekdaysShort(ee,"").toLocaleLowerCase(),this._weekdaysParse[F]=this.weekdays(ee,"").toLocaleLowerCase();return P?D==="dddd"?(U=Zr.call(this._weekdaysParse,he),U!==-1?U:null):D==="ddd"?(U=Zr.call(this._shortWeekdaysParse,he),U!==-1?U:null):(U=Zr.call(this._minWeekdaysParse,he),U!==-1?U:null):D==="dddd"?(U=Zr.call(this._weekdaysParse,he),U!==-1||(U=Zr.call(this._shortWeekdaysParse,he),U!==-1)?U:(U=Zr.call(this._minWeekdaysParse,he),U!==-1?U:null)):D==="ddd"?(U=Zr.call(this._shortWeekdaysParse,he),U!==-1||(U=Zr.call(this._weekdaysParse,he),U!==-1)?U:(U=Zr.call(this._minWeekdaysParse,he),U!==-1?U:null)):(U=Zr.call(this._minWeekdaysParse,he),U!==-1||(U=Zr.call(this._weekdaysParse,he),U!==-1)?U:(U=Zr.call(this._shortWeekdaysParse,he),U!==-1?U:null))}function lb(S,D,P){var F,U,ee;if(this._weekdaysParseExact)return ck.call(this,S,D,P);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),F=0;F<7;F++){if(U=v([2e3,1]).day(F),P&&!this._fullWeekdaysParse[F]&&(this._fullWeekdaysParse[F]=new RegExp("^"+this.weekdays(U,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[F]=new RegExp("^"+this.weekdaysShort(U,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[F]=new RegExp("^"+this.weekdaysMin(U,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[F]||(ee="^"+this.weekdays(U,"")+"|^"+this.weekdaysShort(U,"")+"|^"+this.weekdaysMin(U,""),this._weekdaysParse[F]=new RegExp(ee.replace(".",""),"i")),P&&D==="dddd"&&this._fullWeekdaysParse[F].test(S))return F;if(P&&D==="ddd"&&this._shortWeekdaysParse[F].test(S))return F;if(P&&D==="dd"&&this._minWeekdaysParse[F].test(S))return F;if(!P&&this._weekdaysParse[F].test(S))return F}}function zh(S){if(!this.isValid())return S!=null?this:NaN;var D=yd(this,"Day");return S!=null?(S=ob(S,this.localeData()),this.add(S-D,"d")):D}function cb(S){if(!this.isValid())return S!=null?this:NaN;var D=(this.day()+7-this.localeData()._week.dow)%7;return S==null?D:this.add(S-D,"d")}function uk(S){if(!this.isValid())return S!=null?this:NaN;if(S!=null){var D=zv(S,this.localeData());return this.day(this.day()%7?D:D-7)}else return this.day()||7}function Dd(S){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qc.call(this),S?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Td),this._weekdaysStrictRegex&&S?this._weekdaysStrictRegex:this._weekdaysRegex)}function Md(S){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qc.call(this),S?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kd),this._weekdaysShortStrictRegex&&S?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Gc(S){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qc.call(this),S?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ds),this._weekdaysMinStrictRegex&&S?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function qc(){function S(An,Ti){return Ti.length-An.length}var D=[],P=[],F=[],U=[],ee,he,Ge,Xe,qt;for(ee=0;ee<7;ee++)he=v([2e3,1]).day(ee),Ge=Gr(this.weekdaysMin(he,"")),Xe=Gr(this.weekdaysShort(he,"")),qt=Gr(this.weekdays(he,"")),D.push(Ge),P.push(Xe),F.push(qt),U.push(Ge),U.push(Xe),U.push(qt);D.sort(S),P.sort(S),F.sort(S),U.sort(S),this._weekdaysRegex=new RegExp("^("+U.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+F.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+P.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+D.join("|")+")","i")}function Bv(){return this.hours()%12||12}function dk(){return this.hours()||24}le("H",["HH",2],0,"hour"),le("h",["hh",2],0,Bv),le("k",["kk",2],0,dk),le("hmm",0,0,function(){return""+Bv.apply(this)+oe(this.minutes(),2)}),le("hmmss",0,0,function(){return""+Bv.apply(this)+oe(this.minutes(),2)+oe(this.seconds(),2)}),le("Hmm",0,0,function(){return""+this.hours()+oe(this.minutes(),2)}),le("Hmmss",0,0,function(){return""+this.hours()+oe(this.minutes(),2)+oe(this.seconds(),2)});function Bh(S,D){le(S,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),D)})}Bh("a",!0),Bh("A",!1);function Od(S,D){return D._meridiemParse}Ve("a",Od),Ve("A",Od),Ve("H",nt,Po),Ve("h",nt,gn),Ve("k",nt,gn),Ve("HH",nt,pt),Ve("hh",nt,pt),Ve("kk",nt,pt),Ve("hmm",Ke),Ve("hmmss",nr),Ve("Hmm",Ke),Ve("Hmmss",nr),cr(["H","HH"],yn),cr(["k","kk"],function(S,D,P){var F=jt(S);D[yn]=F===24?0:F}),cr(["a","A"],function(S,D,P){P._isPm=P._locale.isPM(S),P._meridiem=S}),cr(["h","hh"],function(S,D,P){D[yn]=jt(S),_(P).bigHour=!0}),cr("hmm",function(S,D,P){var F=S.length-2;D[yn]=jt(S.substr(0,F)),D[_i]=jt(S.substr(F)),_(P).bigHour=!0}),cr("hmmss",function(S,D,P){var F=S.length-4,U=S.length-2;D[yn]=jt(S.substr(0,F)),D[_i]=jt(S.substr(F,2)),D[Xn]=jt(S.substr(U)),_(P).bigHour=!0}),cr("Hmm",function(S,D,P){var F=S.length-2;D[yn]=jt(S.substr(0,F)),D[_i]=jt(S.substr(F))}),cr("Hmmss",function(S,D,P){var F=S.length-4,U=S.length-2;D[yn]=jt(S.substr(0,F)),D[_i]=jt(S.substr(F,2)),D[Xn]=jt(S.substr(U))});function jv(S){return(S+"").toLowerCase().charAt(0)==="p"}var ub=/[ap]\.?m?\.?/i,Ms=Rl("Hours",!0);function Wv(S,D,P){return S>11?P?"pm":"PM":P?"am":"AM"}var $d={calendar:K,longDateFormat:Pe,invalidDate:ye,ordinal:Be,dayOfMonthOrdinalParse:je,relativeTime:Me,months:rk,monthsShort:Lv,week:rb,weekdays:ks,weekdaysMin:Es,weekdaysShort:Io,meridiemParse:ub},Pr={},Os={},$s;function db(S,D){var P,F=Math.min(S.length,D.length);for(P=0;P0;){if(U=As(ee.slice(0,P).join("-")),U)return U;if(F&&F.length>=P&&db(ee,F)>=P-1)break;P--}D++}return $s}function Hv(S){return!!(S&&S.match("^[^/\\\\]*$"))}function As(S){var D=null,P;if(Pr[S]===void 0&&t&&t.exports&&Hv(S))try{D=$s._abbr,P=Wi,P("./locale/"+S),Ps(D)}catch{Pr[S]=null}return Pr[S]}function Ps(S,D){var P;return S&&(c(D)?P=Oa(S):P=Ad(S,D),P?$s=P:typeof console<"u"&&console.warn&&console.warn("Locale "+S+" not found. Did you forget to load it?")),$s._abbr}function Ad(S,D){if(D!==null){var P,F=$d;if(D.abbr=S,Pr[S]!=null)W("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),F=Pr[S]._config;else if(D.parentLocale!=null)if(Pr[D.parentLocale]!=null)F=Pr[D.parentLocale]._config;else if(P=As(D.parentLocale),P!=null)F=P._config;else return Os[D.parentLocale]||(Os[D.parentLocale]=[]),Os[D.parentLocale].push({name:S,config:D}),null;return Pr[S]=new J(V(F,D)),Os[S]&&Os[S].forEach(function(U){Ad(U.name,U.config)}),Ps(S),Pr[S]}else return delete Pr[S],null}function Uv(S,D){if(D!=null){var P,F,U=$d;Pr[S]!=null&&Pr[S].parentLocale!=null?Pr[S].set(V(Pr[S]._config,D)):(F=As(S),F!=null&&(U=F._config),D=V(U,D),F==null&&(D.abbr=S),P=new J(D),P.parentLocale=Pr[S],Pr[S]=P),Ps(S)}else Pr[S]!=null&&(Pr[S].parentLocale!=null?(Pr[S]=Pr[S].parentLocale,S===Ps()&&Ps(S)):Pr[S]!=null&&delete Pr[S]);return Pr[S]}function Oa(S){var D;if(S&&S._locale&&S._locale._abbr&&(S=S._locale._abbr),!S)return $s;if(!i(S)){if(D=As(S),D)return D;S=[S]}return Xc(S)}function jh(){return ie(Pr)}function Wh(S){var D,P=S._a;return P&&_(S).overflow===-2&&(D=P[gi]<0||P[gi]>11?gi:P[Ui]<1||P[Ui]>Wc(P[_n],P[gi])?Ui:P[yn]<0||P[yn]>24||P[yn]===24&&(P[_i]!==0||P[Xn]!==0||P[Ts]!==0)?yn:P[_i]<0||P[_i]>59?_i:P[Xn]<0||P[Xn]>59?Xn:P[Ts]<0||P[Ts]>999?Ts:-1,_(S)._overflowDayOfYear&&(D<_n||D>Ui)&&(D=Ui),_(S)._overflowWeeks&&D===-1&&(D=K0),_(S)._overflowWeekday&&D===-1&&(D=ek),_(S).overflow=D),S}var fk=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,hk=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pk=/Z|[+-]\d\d(?::?\d\d)?/,Jc=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Yv=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mk=/^\/?Date\((-?\d+)/i,vk=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gk={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fb(S){var D,P,F=S._i,U=fk.exec(F)||hk.exec(F),ee,he,Ge,Xe,qt=Jc.length,An=Yv.length;if(U){for(_(S).iso=!0,D=0,P=qt;Djc(he)||S._dayOfYear===0)&&(_(S)._overflowDayOfYear=!0),P=Hc(he,0,S._dayOfYear),S._a[gi]=P.getUTCMonth(),S._a[Ui]=P.getUTCDate()),D=0;D<3&&S._a[D]==null;++D)S._a[D]=F[D]=U[D];for(;D<7;D++)S._a[D]=F[D]=S._a[D]==null?D===2?1:0:S._a[D];S._a[yn]===24&&S._a[_i]===0&&S._a[Xn]===0&&S._a[Ts]===0&&(S._nextDay=!0,S._a[yn]=0),S._d=(S._useUTC?Hc:Nv).apply(null,F),ee=S._useUTC?S._d.getUTCDay():S._d.getDay(),S._tzm!=null&&S._d.setUTCMinutes(S._d.getUTCMinutes()-S._tzm),S._nextDay&&(S._a[yn]=24),S._w&&typeof S._w.d<"u"&&S._w.d!==ee&&(_(S).weekdayMismatch=!0)}}function Ck(S){var D,P,F,U,ee,he,Ge,Xe,qt;D=S._w,D.GG!=null||D.W!=null||D.E!=null?(ee=1,he=4,P=Zc(D.GG,S._a[_n],Cd(Ir(),1,4).year),F=Zc(D.W,1),U=Zc(D.E,1),(U<1||U>7)&&(Xe=!0)):(ee=S._locale._week.dow,he=S._locale._week.doy,qt=Cd(Ir(),ee,he),P=Zc(D.gg,S._a[_n],qt.year),F=Zc(D.w,qt.week),D.d!=null?(U=D.d,(U<0||U>6)&&(Xe=!0)):D.e!=null?(U=D.e+ee,(D.e<0||D.e>6)&&(Xe=!0)):U=ee),F<1||F>bi(P,ee,he)?_(S)._overflowWeeks=!0:Xe!=null?_(S)._overflowWeekday=!0:(Ge=Yc(P,F,U,ee,he),S._a[_n]=Ge.year,S._dayOfYear=Ge.dayOfYear)}n.ISO_8601=function(){},n.RFC_2822=function(){};function Vv(S){if(S._f===n.ISO_8601){fb(S);return}if(S._f===n.RFC_2822){Hh(S);return}S._a=[],_(S).empty=!0;var D=""+S._i,P,F,U,ee,he,Ge=D.length,Xe=0,qt,An;for(U=Le(S._f,S._locale).match(H)||[],An=U.length,P=0;P0&&_(S).unusedInput.push(he),D=D.slice(D.indexOf(F)+F.length),Xe+=F.length),re[ee]?(F?_(S).empty=!1:_(S).unusedTokens.push(ee),_d(ee,F,S)):S._strict&&!F&&_(S).unusedTokens.push(ee);_(S).charsLeftOver=Ge-Xe,D.length>0&&_(S).unusedInput.push(D),S._a[yn]<=12&&_(S).bigHour===!0&&S._a[yn]>0&&(_(S).bigHour=void 0),_(S).parsedDateParts=S._a.slice(0),_(S).meridiem=S._meridiem,S._a[yn]=Tk(S._locale,S._a[yn],S._meridiem),qt=_(S).era,qt!==null&&(S._a[_n]=S._locale.erasConvertYear(qt,S._a[_n])),Uh(S),Wh(S)}function Tk(S,D,P){var F;return P==null?D:S.meridiemHour!=null?S.meridiemHour(D,P):(S.isPM!=null&&(F=S.isPM(P),F&&D<12&&(D+=12),!F&&D===12&&(D=0)),D)}function kk(S){var D,P,F,U,ee,he,Ge=!1,Xe=S._f.length;if(Xe===0){_(S).invalidFormat=!0,S._d=new Date(NaN);return}for(U=0;Uthis?this:S:x()});function qv(S,D){var P,F;if(D.length===1&&i(D[0])&&(D=D[0]),!D.length)return Ir();for(P=D[0],F=1;Fthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Nk(){if(!c(this._isDSTShifted))return this._isDSTShifted;var S={},D;return k(S,this),S=pb(S),S._a?(D=S._isUTC?v(S._a):Ir(S._a),this._isDSTShifted=this.isValid()&&$k(S._a,D.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wi(){return this.isValid()?!this._isUTC:!1}function Fd(){return this.isValid()?this._isUTC:!1}function Xv(){return this.isValid()?this._isUTC&&this._offset===0:!1}var xb=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Cb=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ya(S,D){var P=S,F=null,U,ee,he;return Is(S)?P={ms:S._milliseconds,d:S._days,M:S._months}:d(S)||!isNaN(+S)?(P={},D?P[D]=+S:P.milliseconds=+S):(F=xb.exec(S))?(U=F[1]==="-"?-1:1,P={y:0,d:jt(F[Ui])*U,h:jt(F[yn])*U,m:jt(F[_i])*U,s:jt(F[Xn])*U,ms:jt(Ll(F[Ts]*1e3))*U}):(F=Cb.exec(S))?(U=F[1]==="-"?-1:1,P={y:Ro(F[2],U),M:Ro(F[3],U),w:Ro(F[4],U),d:Ro(F[5],U),h:Ro(F[6],U),m:Ro(F[7],U),s:Ro(F[8],U)}):P==null?P={}:typeof P=="object"&&("from"in P||"to"in P)&&(he=Fk(Ir(P.from),Ir(P.to)),P={},P.ms=he.milliseconds,P.M=he.months),ee=new Id(P),Is(S)&&s(S,"_locale")&&(ee._locale=S._locale),Is(S)&&s(S,"_isValid")&&(ee._isValid=S._isValid),ee}Ya.fn=Id.prototype,Ya.invalid=yb;function Ro(S,D){var P=S&&parseFloat(S.replace(",","."));return(isNaN(P)?0:P)*D}function Tb(S,D){var P={};return P.months=D.month()-S.month()+(D.year()-S.year())*12,S.clone().add(P.months,"M").isAfter(D)&&--P.months,P.milliseconds=+D-+S.clone().add(P.months,"M"),P}function Fk(S,D){var P;return S.isValid()&&D.isValid()?(D=Ld(D,S),S.isBefore(D)?P=Tb(S,D):(P=Tb(D,S),P.milliseconds=-P.milliseconds,P.months=-P.months),P):{milliseconds:0,months:0}}function Nl(S,D){return function(P,F){var U,ee;return F!==null&&!isNaN(+F)&&(W(D,"moment()."+D+"(period, number) is deprecated. Please use moment()."+D+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),ee=P,P=F,F=ee),U=Ya(P,F),Vh(this,U,S),this}}function Vh(S,D,P,F){var U=D._milliseconds,ee=Ll(D._days),he=Ll(D._months);S.isValid()&&(F=F??!0,he&&wd(S,yd(S,"Month")+he*P),ee&&eb(S,"Date",yd(S,"Date")+ee*P),U&&S._d.setTime(S._d.valueOf()+U*P),F&&n.updateOffset(S,ee||he))}var zd=Nl(1,"add"),Jv=Nl(-1,"subtract");function Zv(S){return typeof S=="string"||S instanceof String}function Gh(S){return R(S)||u(S)||Zv(S)||d(S)||Kv(S)||eu(S)||S===null||S===void 0}function eu(S){var D=o(S)&&!l(S),P=!1,F=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],U,ee,he=F.length;for(U=0;UP.valueOf():P.valueOf()9999?Ne(P,D?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):j(Date.prototype.toISOString)?D?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ne(P,"Z")):Ne(P,D?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Bk(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var S="moment",D="",P,F,U,ee;return this.isLocal()||(S=this.utcOffset()===0?"moment.utc":"moment.parseZone",D="Z"),P="["+S+'("]',F=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",U="-MM-DD[T]HH:mm:ss.SSS",ee=D+'[")]',this.format(P+F+U+ee)}function Pb(S){S||(S=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var D=Ne(this,S);return this.localeData().postformat(D)}function Ib(S,D){return this.isValid()&&(R(S)&&S.isValid()||Ir(S).isValid())?Ya({to:this,from:S}).locale(this.locale()).humanize(!D):this.localeData().invalidDate()}function Rr(S){return this.from(Ir(),S)}function tg(S,D){return this.isValid()&&(R(S)&&S.isValid()||Ir(S).isValid())?Ya({from:this,to:S}).locale(this.locale()).humanize(!D):this.localeData().invalidDate()}function Jh(S){return this.to(Ir(),S)}function tu(S){var D;return S===void 0?this._locale._abbr:(D=Oa(S),D!=null&&(this._locale=D),this)}var rg=$("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(S){return S===void 0?this.localeData():this.locale(S)});function Zh(){return this._locale}var Ls=1e3,Lo=60*Ls,No=60*Lo,ng=(365*400+97)*24*No;function ru(S,D){return(S%D+D)%D}function Rb(S,D,P){return S<100&&S>=0?new Date(S+400,D,P)-ng:new Date(S,D,P).valueOf()}function ag(S,D,P){return S<100&&S>=0?Date.UTC(S+400,D,P)-ng:Date.UTC(S,D,P)}function Kh(S){var D,P;if(S=tt(S),S===void 0||S==="millisecond"||!this.isValid())return this;switch(P=this._isUTC?ag:Rb,S){case"year":D=P(this.year(),0,1);break;case"quarter":D=P(this.year(),this.month()-this.month()%3,1);break;case"month":D=P(this.year(),this.month(),1);break;case"week":D=P(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":D=P(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":D=P(this.year(),this.month(),this.date());break;case"hour":D=this._d.valueOf(),D-=ru(D+(this._isUTC?0:this.utcOffset()*Lo),No);break;case"minute":D=this._d.valueOf(),D-=ru(D,Lo);break;case"second":D=this._d.valueOf(),D-=ru(D,Ls);break}return this._d.setTime(D),n.updateOffset(this,!0),this}function Qh(S){var D,P;if(S=tt(S),S===void 0||S==="millisecond"||!this.isValid())return this;switch(P=this._isUTC?ag:Rb,S){case"year":D=P(this.year()+1,0,1)-1;break;case"quarter":D=P(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":D=P(this.year(),this.month()+1,1)-1;break;case"week":D=P(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":D=P(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":D=P(this.year(),this.month(),this.date()+1)-1;break;case"hour":D=this._d.valueOf(),D+=No-ru(D+(this._isUTC?0:this.utcOffset()*Lo),No)-1;break;case"minute":D=this._d.valueOf(),D+=Lo-ru(D,Lo)-1;break;case"second":D=this._d.valueOf(),D+=Ls-ru(D,Ls)-1;break}return this._d.setTime(D),n.updateOffset(this,!0),this}function ig(){return this._d.valueOf()-(this._offset||0)*6e4}function og(){return Math.floor(this.valueOf()/1e3)}function sg(){return new Date(this.valueOf())}function lg(){var S=this;return[S.year(),S.month(),S.date(),S.hour(),S.minute(),S.second(),S.millisecond()]}function jk(){var S=this;return{years:S.year(),months:S.month(),date:S.date(),hours:S.hours(),minutes:S.minutes(),seconds:S.seconds(),milliseconds:S.milliseconds()}}function Lb(){return this.isValid()?this.toISOString():null}function Wk(){return w(this)}function Hk(){return p({},_(this))}function cg(){return _(this).overflow}function Ns(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}le("N",0,0,"eraAbbr"),le("NN",0,0,"eraAbbr"),le("NNN",0,0,"eraAbbr"),le("NNNN",0,0,"eraName"),le("NNNNN",0,0,"eraNarrow"),le("y",["y",1],"yo","eraYear"),le("y",["yy",2],0,"eraYear"),le("y",["yyy",3],0,"eraYear"),le("y",["yyyy",4],0,"eraYear"),Ve("N",Fs),Ve("NN",Fs),Ve("NNN",Fs),Ve("NNNN",ep),Ve("NNNNN",dg),cr(["N","NN","NNN","NNNN","NNNNN"],function(S,D,P,F){var U=P._locale.erasParse(S,F,P._strict);U?_(P).era=U:_(P).invalidEra=S}),Ve("y",Ce),Ve("yy",Ce),Ve("yyy",Ce),Ve("yyyy",Ce),Ve("yo",au),cr(["y","yy","yyy","yyyy"],_n),cr(["yo"],function(S,D,P,F){var U;P._locale._eraYearOrdinalRegex&&(U=S.match(P._locale._eraYearOrdinalRegex)),P._locale.eraYearOrdinalParse?D[_n]=P._locale.eraYearOrdinalParse(S,U):D[_n]=parseInt(S,10)});function Nb(S,D){var P,F,U,ee=this._eras||Oa("en")._eras;for(P=0,F=ee.length;P=0)return ee[F]}function Vi(S,D){var P=S.since<=S.until?1:-1;return D===void 0?n(S.since).year():n(S.since).year()+(D-S.offset)*P}function jd(){var S,D,P,F=this.localeData().eras();for(S=0,D=F.length;See&&(D=ee),tp.call(this,S,D,P,F,U))}function tp(S,D,P,F,U){var ee=Yc(S,D,P,F,U),he=Hc(ee.year,0,ee.dayOfYear);return this.year(he.getUTCFullYear()),this.month(he.getUTCMonth()),this.date(he.getUTCDate()),this}le("Q",0,"Qo","quarter"),Ve("Q",He),cr("Q",function(S,D){D[gi]=(jt(S)-1)*3});function Fb(S){return S==null?Math.ceil((this.month()+1)/3):this.month((S-1)*3+this.month()%3)}le("D",["DD",2],"Do","date"),Ve("D",nt,gn),Ve("DD",nt,pt),Ve("Do",function(S,D){return S?D._dayOfMonthOrdinalParse||D._ordinalParse:D._dayOfMonthOrdinalParseLenient}),cr(["D","DD"],Ui),cr("Do",function(S,D){D[Ui]=jt(S.match(nt)[0])});var fg=Rl("Date",!0);le("DDD",["DDDD",3],"DDDo","dayOfYear"),Ve("DDD",ar),Ve("DDDD",ct),cr(["DDD","DDDD"],function(S,D,P){P._dayOfYear=jt(S)});function rp(S){var D=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return S==null?D:this.add(S-D,"d")}le("m",["mm",2],0,"minute"),Ve("m",nt,Po),Ve("mm",nt,pt),cr(["m","mm"],_i);var zb=Rl("Minutes",!1);le("s",["ss",2],0,"second"),Ve("s",nt,Po),Ve("ss",nt,pt),cr(["s","ss"],Xn);var zo=Rl("Seconds",!1);le("S",0,0,function(){return~~(this.millisecond()/100)}),le(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),le(0,["SSS",3],0,"millisecond"),le(0,["SSSS",4],0,function(){return this.millisecond()*10}),le(0,["SSSSS",5],0,function(){return this.millisecond()*100}),le(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),le(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),le(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),le(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ve("S",ar,He),Ve("SS",ar,pt),Ve("SSS",ar,ct);var Si,np;for(Si="SSSS";Si.length<=9;Si+="S")Ve(Si,Ce);function Bb(S,D){D[Ts]=jt(("0."+S)*1e3)}for(Si="S";Si.length<=9;Si+="S")cr(Si,Bb);np=Rl("Milliseconds",!1),le("z",0,0,"zoneAbbr"),le("zz",0,0,"zoneName");function Vk(){return this._isUTC?"UTC":""}function Bs(){return this._isUTC?"Coordinated Universal Time":""}var Te=O.prototype;Te.add=zd,Te.calendar=Eb,Te.clone=Db,Te.diff=eg,Te.endOf=Qh,Te.format=Pb,Te.from=Ib,Te.fromNow=Rr,Te.to=tg,Te.toNow=Jh,Te.get=an,Te.invalidAt=cg,Te.isAfter=Mb,Te.isBefore=Ob,Te.isBetween=$b,Te.isSame=Ab,Te.isSameOrAfter=Rs,Te.isSameOrBefore=Qv,Te.isValid=Wk,Te.lang=rg,Te.locale=tu,Te.localeData=Zh,Te.max=vb,Te.min=mb,Te.parsingFlags=Hk,Te.set=tk,Te.startOf=Kh,Te.subtract=Jv,Te.toArray=lg,Te.toObject=jk,Te.toDate=sg,Te.toISOString=Bd,Te.inspect=Bk,typeof Symbol<"u"&&Symbol.for!=null&&(Te[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Te.toJSON=Lb,Te.toString=zk,Te.unix=og,Te.valueOf=ig,Te.creationData=Ns,Te.eraName=jd,Te.eraNarrow=Fo,Te.eraAbbr=ug,Te.eraYear=Uk,Te.year=Iv,Te.isLeapYear=Q0,Te.weekYear=Or,Te.isoWeekYear=zs,Te.quarter=Te.quarters=Fb,Te.month=Sd,Te.daysInMonth=xd,Te.week=Te.weeks=ab,Te.isoWeek=Te.isoWeeks=ib,Te.weeksInYear=zl,Te.weeksInWeekYear=iu,Te.isoWeeksInYear=Bn,Te.isoWeeksInISOWeekYear=ca,Te.date=fg,Te.day=Te.days=zh,Te.weekday=cb,Te.isoWeekday=uk,Te.dayOfYear=rp,Te.hour=Te.hours=Ms,Te.minute=Te.minutes=zb,Te.second=Te.seconds=zo,Te.millisecond=Te.milliseconds=np,Te.utcOffset=bb,Te.utc=Sb,Te.local=Pk,Te.parseZone=Ik,Te.hasAlignedHourOffset=Rk,Te.isDST=Lk,Te.isLocal=wi,Te.isUtcOffset=Fd,Te.isUtc=Xv,Te.isUTC=Xv,Te.zoneAbbr=Vk,Te.zoneName=Bs,Te.dates=$("dates accessor is deprecated. Use date instead.",fg),Te.months=$("months accessor is deprecated. Use month instead",Sd),Te.years=$("years accessor is deprecated. Use year instead",Iv),Te.zone=$("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",wb),Te.isDSTShifted=$("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Nk);function ou(S){return Ir(S*1e3)}function ap(){return Ir.apply(null,arguments).parseZone()}function Hd(S){return S}var Ft=J.prototype;Ft.calendar=Q,Ft.longDateFormat=we,Ft.invalidDate=ht,Ft.ordinal=Dt,Ft.preparse=Hd,Ft.postformat=Hd,Ft.relativeTime=ot,Ft.pastFuture=kt,Ft.set=Y,Ft.eras=Nb,Ft.erasParse=nu,Ft.erasConvertYear=Vi,Ft.erasAbbrRegex=Fl,Ft.erasNameRegex=Yk,Ft.erasNarrowRegex=Wd,Ft.months=yi,Ft.monthsShort=ak,Ft.monthsParse=ok,Ft.monthsRegex=sk,Ft.monthsShortRegex=Fh,Ft.week=vr,Ft.firstDayOfYear=Fv,Ft.firstDayOfWeek=nb,Ft.weekdays=lk,Ft.weekdaysMin=Ed,Ft.weekdaysShort=sb,Ft.weekdaysParse=lb,Ft.weekdaysRegex=Dd,Ft.weekdaysShortRegex=Md,Ft.weekdaysMinRegex=Gc,Ft.isPM=jv,Ft.meridiem=Wv;function Zn(S,D,P,F){var U=Oa(),ee=v().set(F,D);return U[P](ee,S)}function js(S,D,P){if(d(S)&&(D=S,S=void 0),S=S||"",D!=null)return Zn(S,D,P,"month");var F,U=[];for(F=0;F<12;F++)U[F]=Zn(S,F,P,"month");return U}function xi(S,D,P,F){typeof S=="boolean"?(d(D)&&(P=D,D=void 0),D=D||""):(D=S,P=D,S=!1,d(D)&&(P=D,D=void 0),D=D||"");var U=Oa(),ee=S?U._week.dow:0,he,Ge=[];if(P!=null)return Zn(D,(P+ee)%7,F,"day");for(he=0;he<7;he++)Ge[he]=Zn(D,(he+ee)%7,F,"day");return Ge}function Bo(S,D){return js(S,D,"months")}function Bl(S,D){return js(S,D,"monthsShort")}function jb(S,D,P){return xi(S,D,P,"weekdays")}function hg(S,D,P){return xi(S,D,P,"weekdaysShort")}function pg(S,D,P){return xi(S,D,P,"weekdaysMin")}Ps("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(S){var D=S%10,P=jt(S%100/10)===1?"th":D===1?"st":D===2?"nd":D===3?"rd":"th";return S+P}}),n.lang=$("moment.lang is deprecated. Use moment.locale instead.",Ps),n.langData=$("moment.langData is deprecated. Use moment.localeData instead.",Oa);var on=Math.abs;function $a(){var S=this._data;return this._milliseconds=on(this._milliseconds),this._days=on(this._days),this._months=on(this._months),S.milliseconds=on(S.milliseconds),S.seconds=on(S.seconds),S.minutes=on(S.minutes),S.hours=on(S.hours),S.months=on(S.months),S.years=on(S.years),this}function Lr(S,D,P,F){var U=Ya(D,P);return S._milliseconds+=F*U._milliseconds,S._days+=F*U._days,S._months+=F*U._months,S._bubble()}function Ci(S,D){return Lr(this,S,D,1)}function Wb(S,D){return Lr(this,S,D,-1)}function mg(S){return S<0?Math.floor(S):Math.ceil(S)}function vg(){var S=this._milliseconds,D=this._days,P=this._months,F=this._data,U,ee,he,Ge,Xe;return S>=0&&D>=0&&P>=0||S<=0&&D<=0&&P<=0||(S+=mg(op(P)+D)*864e5,D=0,P=0),F.milliseconds=S%1e3,U=zn(S/1e3),F.seconds=U%60,ee=zn(U/60),F.minutes=ee%60,he=zn(ee/60),F.hours=he%24,D+=zn(he/24),Xe=zn(ip(D)),P+=Xe,D-=mg(op(Xe)),Ge=zn(P/12),P%=12,F.days=D,F.months=P,F.years=Ge,this}function ip(S){return S*4800/146097}function op(S){return S*146097/4800}function sp(S){if(!this.isValid())return NaN;var D,P,F=this._milliseconds;if(S=tt(S),S==="month"||S==="quarter"||S==="year")switch(D=this._days+F/864e5,P=this._months+ip(D),S){case"month":return P;case"quarter":return P/3;case"year":return P/12}else switch(D=this._days+Math.round(op(this._months)),S){case"week":return D/7+F/6048e5;case"day":return D+F/864e5;case"hour":return D*24+F/36e5;case"minute":return D*1440+F/6e4;case"second":return D*86400+F/1e3;case"millisecond":return Math.floor(D*864e5)+F;default:throw new Error("Unknown unit "+S)}}function qi(S){return function(){return this.as(S)}}var jl=qi("ms"),gg=qi("s"),Gk=qi("m"),Ud=qi("h"),lp=qi("d"),Hb=qi("w"),Ub=qi("M"),su=qi("Q"),Yb=qi("y"),cp=jl;function up(){return Ya(this)}function lu(S){return S=tt(S),this.isValid()?this[S+"s"]():NaN}function jo(S){return function(){return this.isValid()?this._data[S]:NaN}}var _g=jo("milliseconds"),yg=jo("seconds"),bg=jo("minutes"),cu=jo("hours"),Va=jo("days"),Wl=jo("months"),wg=jo("years");function Vb(){return zn(this.days()/7)}var $n=Math.round,Aa={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Sg(S,D,P,F,U){return U.relativeTime(D||1,!!P,S,F)}function Gb(S,D,P,F){var U=Ya(S).abs(),ee=$n(U.as("s")),he=$n(U.as("m")),Ge=$n(U.as("h")),Xe=$n(U.as("d")),qt=$n(U.as("M")),An=$n(U.as("w")),Ti=$n(U.as("y")),ki=ee<=P.ss&&["s",ee]||ee0,ki[4]=F,Sg.apply(null,ki)}function Wo(S){return S===void 0?$n:typeof S=="function"?($n=S,!0):!1}function Ws(S,D){return Aa[S]===void 0?!1:D===void 0?Aa[S]:(Aa[S]=D,S==="s"&&(Aa.ss=D-1),!0)}function dp(S,D){if(!this.isValid())return this.localeData().invalidDate();var P=!1,F=Aa,U,ee;return typeof S=="object"&&(D=S,S=!1),typeof S=="boolean"&&(P=S),typeof D=="object"&&(F=Object.assign({},Aa,D),D.s!=null&&D.ss==null&&(F.ss=D.s-1)),U=this.localeData(),ee=Gb(this,!P,F,U),P&&(ee=U.pastFuture(+this,ee)),U.postformat(ee)}var fp=Math.abs;function Ho(S){return(S>0)-(S<0)||+S}function Yd(){if(!this.isValid())return this.localeData().invalidDate();var S=fp(this._milliseconds)/1e3,D=fp(this._days),P=fp(this._months),F,U,ee,he,Ge=this.asSeconds(),Xe,qt,An,Ti;return Ge?(F=zn(S/60),U=zn(F/60),S%=60,F%=60,ee=zn(P/12),P%=12,he=S?S.toFixed(3).replace(/\.?0+$/,""):"",Xe=Ge<0?"-":"",qt=Ho(this._months)!==Ho(Ge)?"-":"",An=Ho(this._days)!==Ho(Ge)?"-":"",Ti=Ho(this._milliseconds)!==Ho(Ge)?"-":"",Xe+"P"+(ee?qt+ee+"Y":"")+(P?qt+P+"M":"")+(D?An+D+"D":"")+(U||F||S?"T":"")+(U?Ti+U+"H":"")+(F?Ti+F+"M":"")+(S?Ti+he+"S":"")):"P0D"}var Gt=Id.prototype;Gt.isValid=Ok,Gt.abs=$a,Gt.add=Ci,Gt.subtract=Wb,Gt.as=sp,Gt.asMilliseconds=jl,Gt.asSeconds=gg,Gt.asMinutes=Gk,Gt.asHours=Ud,Gt.asDays=lp,Gt.asWeeks=Hb,Gt.asMonths=Ub,Gt.asQuarters=su,Gt.asYears=Yb,Gt.valueOf=cp,Gt._bubble=vg,Gt.clone=up,Gt.get=lu,Gt.milliseconds=_g,Gt.seconds=yg,Gt.minutes=bg,Gt.hours=cu,Gt.days=Va,Gt.weeks=Vb,Gt.months=Wl,Gt.years=wg,Gt.humanize=dp,Gt.toISOString=Yd,Gt.toString=Yd,Gt.toJSON=Yd,Gt.locale=tu,Gt.localeData=Zh,Gt.toIsoString=$("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Yd),Gt.lang=rg,le("X",0,0,"unix"),le("x",0,0,"valueOf"),Ve("x",at),Ve("X",Fn),cr("X",function(S,D,P){P._d=new Date(parseFloat(S)*1e3)}),cr("x",function(S,D,P){P._d=new Date(jt(S))});//! moment.js -return n.version="2.30.1",a(Ir),n.fn=Te,n.min=gb,n.max=_b,n.now=Qc,n.utc=v,n.unix=ou,n.months=Bo,n.isDate=u,n.locale=Ps,n.invalid=x,n.duration=Ya,n.isMoment=R,n.weekdays=jb,n.parseZone=ap,n.localeData=Oa,n.isDuration=Is,n.monthsShort=Bl,n.weekdaysMin=pg,n.defineLocale=Ad,n.updateLocale=Uv,n.locales=jh,n.weekdaysShort=hg,n.normalizeUnits=tt,n.relativeTimeRounding=Wo,n.relativeTimeThreshold=Ws,n.calendarFormat=qh,n.prototype=Te,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n})}(CS)),CS.exports}var Xxt=YP.exports,x7;function Jxt(){return x7||(x7=1,function(t,e){(function(r,n){n(typeof Wi=="function"?Cs():r.moment)})(Xxt,function(r){//! moment.js locale configuration -var n=r.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var i=a%10,o=~~(a%100/10)===1?"th":i===1?"st":i===2?"nd":i===3?"rd":"th";return a+o},week:{dow:1,doy:4}});return n})}()),YP.exports}Jxt();var VP={exports:{}},Zxt=VP.exports,C7;function Kxt(){return C7||(C7=1,function(t,e){(function(r,n){n(typeof Wi=="function"?Cs():r.moment)})(Zxt,function(r){//! moment.js locale configuration -var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,s=r.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(l,c){return l?/-MMM-/.test(c)?a[l.month()]:n[l.month()]:n},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});return s})}()),VP.exports}Kxt();var GP={exports:{}},Qxt=GP.exports,T7;function eCt(){return T7||(T7=1,function(t,e){(function(r,n){n(typeof Wi=="function"?Cs():r.moment)})(Qxt,function(r){//! moment.js locale configuration -var n=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,a=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,i=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,o=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],s=r.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:n,monthsShortStrictRegex:a,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(l,c){switch(c){case"D":return l+(l===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return l+(l===1?"er":"e");case"w":case"W":return l+(l===1?"re":"e")}},week:{dow:1,doy:4}});return s})}()),GP.exports}eCt();var qP={exports:{}},tCt=qP.exports,k7;function rCt(){return k7||(k7=1,function(t,e){(function(r,n){n(typeof Wi=="function"?Cs():r.moment)})(tCt,function(r){//! moment.js locale configuration -var n="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),a="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),i=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function o(c){return c%10<5&&c%10>1&&~~(c/10)%10!==1}function s(c,d,u){var f=c+" ";switch(u){case"ss":return f+(o(c)?"sekundy":"sekund");case"m":return d?"minuta":"minutę";case"mm":return f+(o(c)?"minuty":"minut");case"h":return d?"godzina":"godzinę";case"hh":return f+(o(c)?"godziny":"godzin");case"ww":return f+(o(c)?"tygodnie":"tygodni");case"MM":return f+(o(c)?"miesiące":"miesięcy");case"yy":return f+(o(c)?"lata":"lat")}}var l=r.defineLocale("pl",{months:function(c,d){return c?/D MMMM/.test(d)?a[c.month()]:n[c.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:s,m:s,mm:s,h:s,hh:s,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:s,M:"miesiąc",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return l})}()),qP.exports}rCt();var XP={exports:{}},nCt=XP.exports,E7;function aCt(){return E7||(E7=1,function(t,e){(function(r,n){n(typeof Wi=="function"?Cs():r.moment)})(nCt,function(r){//! moment.js locale configuration -var n=r.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return this.day()===0||this.day()===6?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return n})}()),XP.exports}aCt();var JP={exports:{}},iCt=JP.exports,D7;function oCt(){return D7||(D7=1,function(t,e){(function(r,n){n(typeof Wi=="function"?Cs():r.moment)})(iCt,function(r){//! moment.js locale configuration -var n=r.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return n})}()),JP.exports}oCt();var ZP={exports:{}},sCt=ZP.exports,M7;function lCt(){return M7||(M7=1,function(t,e){(function(r,n){n(typeof Wi=="function"?Cs():r.moment)})(sCt,function(r){//! moment.js locale configuration -var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),a="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,s=r.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(l,c){return l?/-MMM-/.test(c)?a[l.month()]:n[l.month()]:n},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(l){return l+(l===1||l===8||l>=20?"ste":"de")},week:{dow:1,doy:4}});return s})}()),ZP.exports}lCt();var KP={exports:{}},cCt=KP.exports,O7;function uCt(){return O7||(O7=1,function(t,e){(function(r,n){n(typeof Wi=="function"?Cs():r.moment)})(cCt,function(r){//! moment.js locale configuration -function n(s,l){var c=s.split("_");return l%10===1&&l%100!==11?c[0]:l%10>=2&&l%10<=4&&(l%100<10||l%100>=20)?c[1]:c[2]}function a(s,l,c){var d={ss:l?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:l?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return c==="m"?l?"минута":"минуту":s+" "+n(d[c],+s)}var i=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],o=r.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(s){if(s.week()!==this.week())switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},lastWeek:function(s){if(s.week()!==this.week())switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:a,m:a,mm:a,h:"час",hh:a,d:"день",dd:a,w:"неделя",ww:a,M:"месяц",MM:a,y:"год",yy:a},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(s){return/^(дня|вечера)$/.test(s)},meridiem:function(s,l,c){return s<4?"ночи":s<12?"утра":s<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(s,l){switch(l){case"M":case"d":case"DDD":return s+"-й";case"D":return s+"-го";case"w":case"W":return s+"-я";default:return s}},week:{dow:1,doy:4}});return o})}()),KP.exports}uCt();var QP={exports:{}},dCt=QP.exports,$7;function fCt(){return $7||($7=1,function(t,e){(function(r,n){n(typeof Wi=="function"?Cs():r.moment)})(dCt,function(r){//! moment.js locale configuration -var n=r.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(a,i){return a===12&&(a=0),i==="凌晨"||i==="早上"||i==="上午"?a:i==="下午"||i==="晚上"?a+12:a>=11?a:a+12},meridiem:function(a,i,o){var s=a*100+i;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(a){return a.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(a){return this.week()!==a.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(a,i){switch(i){case"d":case"D":case"DDD":return a+"日";case"M":return a+"月";case"w":case"W":return a+"周";default:return a}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return n})}()),QP.exports}fCt();var eI={exports:{}},hCt=eI.exports,A7;function pCt(){return A7||(A7=1,function(t,e){(function(r,n){n(typeof Wi=="function"?Cs():r.moment)})(hCt,function(r){//! moment.js locale configuration -function n(i,o,s,l){var c={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[i+" Tage",i+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[i+" Monate",i+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[i+" Jahre",i+" Jahren"]};return o?c[s][0]:c[s][1]}var a=r.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})}()),eI.exports}pCt();var tI={exports:{}},mCt=tI.exports,P7;function vCt(){return P7||(P7=1,function(t,e){(function(r,n){n(typeof Wi=="function"?Cs():r.moment)})(mCt,function(r){//! moment.js locale configuration -function n(l,c){var d=l.split("_");return c%10===1&&c%100!==11?d[0]:c%10>=2&&c%10<=4&&(c%100<10||c%100>=20)?d[1]:d[2]}function a(l,c,d){var u={ss:c?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:c?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:c?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return d==="m"?c?"хвилина":"хвилину":d==="h"?c?"година":"годину":l+" "+n(u[d],+l)}function i(l,c){var d={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},u;return l===!0?d.nominative.slice(1,7).concat(d.nominative.slice(0,1)):l?(u=/(\[[ВвУу]\]) ?dddd/.test(c)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(c)?"genitive":"nominative",d[u][l.day()]):d.nominative}function o(l){return function(){return l+"о"+(this.hours()===11?"б":"")+"] LT"}}var s=r.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:i,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:o("[Сьогодні "),nextDay:o("[Завтра "),lastDay:o("[Вчора "),nextWeek:o("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return o("[Минулої] dddd [").call(this);case 1:case 2:case 4:return o("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:a,m:a,mm:a,h:"годину",hh:a,d:"день",dd:a,M:"місяць",MM:a,y:"рік",yy:a},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(l){return/^(дня|вечора)$/.test(l)},meridiem:function(l,c,d){return l<4?"ночі":l<12?"ранку":l<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(l,c){switch(c){case"M":case"d":case"DDD":case"w":case"W":return l+"-й";case"D":return l+"-го";default:return l}},week:{dow:1,doy:7}});return s})}()),tI.exports}vCt();var Q1={};/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var rI=function(t,e){return rI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},rI(t,e)};function ve(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");rI(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var nI=function(){return nI=Object.assign||function(e){for(var r,n=1,a=arguments.length;n=0;s--)(o=t[s])&&(i=(a<3?o(i):a>3?o(e,r,i):o(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i}function yCt(t,e){return function(r,n){e(r,n,t)}}function bCt(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function wCt(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(d){try{c(n.next(d))}catch(u){o(u)}}function l(d){try{c(n.throw(d))}catch(u){o(u)}}function c(d){d.done?i(d.value):a(d.value).then(s,l)}c((n=n.apply(t,e||[])).next())})}function SCt(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(d){return l([c,d])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=c[0]&2?a.return:c[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,c[1])).done)return i;switch(a=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,a=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function kZ(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),a,i=[],o;try{for(;(e===void 0||e-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function CCt(){for(var t=[],e=0;e1||s(f,p)})})}function s(f,p){try{l(n[f](p))}catch(v){u(i[0][3],v)}}function l(f){f.value instanceof Ly?Promise.resolve(f.value.v).then(c,d):u(i[0][2],f)}function c(f){s("next",f)}function d(f){s("throw",f)}function u(f,p){f(p),i.shift(),i.length&&s(i[0][0],i[0][1])}}function DCt(t){var e,r;return e={},n("next"),n("throw",function(a){throw a}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(a,i){e[a]=t[a]?function(o){return(r=!r)?{value:Ly(t[a](o)),done:a==="return"}:i?i(o):o}:i}}function MCt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof aI=="function"?aI(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(s,l){o=t[i](o),a(s,l,o.done,o.value)})}}function a(i,o,s,l){Promise.resolve(l).then(function(c){i({value:c,done:s})},o)}}function OCt(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var $Ct=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function ACt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&UN(e,t,r);return $Ct(e,t),e}function PCt(t){return t&&t.__esModule?t:{default:t}}function ICt(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function RCt(t,e,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(t,r):a?a.value=r:e.set(t,r),r}const LCt=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return nI},__asyncDelegator:DCt,__asyncGenerator:ECt,__asyncValues:MCt,__await:Ly,__awaiter:wCt,__classPrivateFieldGet:ICt,__classPrivateFieldSet:RCt,__createBinding:UN,__decorate:_Ct,__exportStar:xCt,__extends:ve,__generator:SCt,__importDefault:PCt,__importStar:ACt,__makeTemplateObject:OCt,__metadata:bCt,__param:yCt,__read:kZ,__rest:gCt,__spread:CCt,__spreadArray:kCt,__spreadArrays:TCt,__values:aI},Symbol.toStringTag,{value:"Module"})),EZ=ER(LCt);var Zl={},Kl={},RO={},I7;function NCt(){return I7||(I7=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=1,r=function(){return"".concat(e++)};t.default=r}(RO)),RO}var Kg={},Qg={},LO={},R7;function DZ(){return R7||(R7=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,i=null;return function(){for(var o=this,s=arguments.length,l=new Array(s),c=0;c"u"&&typeof self<"u"?xt.worker=!0:!xt.hasGlobalWindow||"Deno"in window?(xt.node=!0,xt.svgSupported=!0):QCt(navigator.userAgent,xt);function QCt(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}var VN=12,MZ="sans-serif",id=VN+"px "+MZ,eTt=20,tTt=100,rTt="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function nTt(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r=0)s=o*r.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[c]+":0",n[1-l]+":auto",a[1-c]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return r}function ETt(t,e,r){for(var n=r?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],l=!0,c=0;c<4;c++){var d=t[c].getBoundingClientRect(),u=2*c,f=d.left,p=d.top;o.push(f,p),l=l&&i&&f===i[u]&&p===i[u+1],s.push(t[c].offsetLeft,t[c].offsetTop)}return l&&a?a:(e.srcCoords=o,e[n]=r?X7(s,o):X7(o,s))}function HZ(t){return t.nodeName.toUpperCase()==="CANVAS"}var DTt=/([&<>"'])/g,MTt={"&":"&","<":"<",">":">",'"':""","'":"'"};function xa(t){return t==null?"":(t+"").replace(DTt,function(e,r){return MTt[r]})}var OTt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,zO=[],$Tt=xt.browser.firefox&&+xt.browser.version.split(".")[0]<39;function cI(t,e,r,n){return r=r||{},n?Z7(t,e,r):$Tt&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):Z7(t,e,r),r}function Z7(t,e,r){if(xt.domSupported&&t.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(HZ(t)){var i=t.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(lI(zO,t,n,a)){r.zrX=zO[0],r.zrY=zO[1];return}}r.zrX=r.zrY=0}function n5(t){return t||window.event}function ao(t,e,r){if(e=n5(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&cI(t,o,e,r)}else{cI(t,e,e,r);var i=ATt(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&OTt.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function ATt(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function uI(t,e,r,n){t.addEventListener(e,r,n)}function PTt(t,e,r,n){t.removeEventListener(e,r,n)}var av=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function K7(t){return t.which===2||t.which===3}var ITt=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:r,event:e},o=0,s=a.length;o1&&n&&n.length>1){var i=Q7(n)/Q7(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=RTt(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function wc(){return[1,0,0,1,0,0]}function M0(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function a5(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function qu(t,e,r){var n=e[0]*r[0]+e[2]*r[1],a=e[1]*r[0]+e[3]*r[1],i=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=l,t}function iv(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function O0(t,e,r,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],l=e[3],c=e[5],d=Math.sin(r),u=Math.cos(r);return t[0]=a*u+s*d,t[1]=-a*d+s*u,t[2]=i*u+l*d,t[3]=-i*d+u*l,t[4]=u*(o-n[0])+d*(c-n[1])+n[0],t[5]=u*(c-n[1])-d*(o-n[0])+n[1],t}function UZ(t,e,r){var n=r[0],a=r[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t}function kv(t,e){var r=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=r*o-i*n;return l?(l=1/l,t[0]=o*l,t[1]=-i*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*a)*l,t[5]=(i*a-r*s)*l,t):null}function LTt(t){var e=wc();return a5(e,t),e}const YZ=Object.freeze(Object.defineProperty({__proto__:null,clone:LTt,copy:a5,create:wc,identity:M0,invert:kv,mul:qu,rotate:O0,scale:UZ,translate:iv},Symbol.toStringTag,{value:"Module"}));var Zt=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,a){e.x=r.x+n.x*a,e.y=r.y+n.y*a},t.lerp=function(e,r,n,a){var i=1-a;e.x=i*r.x+a*n.x,e.y=i*r.y+a*n.y},t}(),tw=Math.min,rw=Math.max,af=new Zt,of=new Zt,sf=new Zt,lf=new Zt,i_=new Zt,o_=new Zt,rr=function(){function t(e,r,n,a){n<0&&(e=e+n,n=-n),a<0&&(r=r+a,a=-a),this.x=e,this.y=r,this.width=n,this.height=a}return t.prototype.union=function(e){var r=tw(e.x,this.x),n=tw(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=rw(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=rw(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,a=e.height/r.height,i=wc();return iv(i,i,[-r.x,-r.y]),UZ(i,i,[n,a]),iv(i,i,[e.x,e.y]),i},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,c=e.x+e.width,d=e.y,u=e.y+e.height,f=!(iv&&(v=x,g<_?Zt.set(o_,-g,0):Zt.set(o_,_,0)):xv&&(v=C,b=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];e.x=r.x*a+o,e.y=r.y*i+s,e.width=r.width*a,e.height=r.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}af.x=sf.x=r.x,af.y=lf.y=r.y,of.x=lf.x=r.x+r.width,of.y=sf.y=r.y+r.height,af.transform(n),lf.transform(n),of.transform(n),sf.transform(n),e.x=tw(af.x,of.x,sf.x,lf.x),e.y=tw(af.y,of.y,sf.y,lf.y);var l=rw(af.x,of.x,sf.x,lf.x),c=rw(af.y,of.y,sf.y,lf.y);e.width=l-e.x,e.height=c-e.y},t}(),VZ="silent";function NTt(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:FTt}}function FTt(){av(this.event)}var zTt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Do),s_=function(){function t(e,r){this.x=e,this.y=r}return t}(),BTt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],jO=new rr(0,0,0,0),GZ=function(t){ve(e,t);function e(r,n,a,i,o){var s=t.call(this)||this;return s._hovered=new s_(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new zTt,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new xTt(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(G(BTt,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=qZ(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new s_(n,a):this.findHover(n,a),c=l.target,d=this.proxy;d.setCursor&&d.setCursor(c?c.cursor:"default"),s&&c!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),c&&c!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new s_(0,0)},e.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=NTt(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new s_(r,n);if(eW(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,c=l/2,d=new rr(r-c,n-c,l,l),u=i.length-1;u>=0;u--){var f=i[u];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(jO.copy(f.getBoundingRect()),f.transform&&jO.applyTransform(f.transform),jO.intersect(d)&&s.push(f))}if(s.length)for(var p=4,v=Math.PI/12,g=Math.PI*2,_=0;_4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function jTt(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?VZ:!0}return!1}function eW(t,e,r,n,a){for(var i=t.length-1;i>=0;i--){var o=t[i],s=void 0;if(o!==a&&!o.ignore&&(s=jTt(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==VZ)){e.target=o;break}}}function qZ(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var XZ=32,l_=7;function WTt(t){for(var e=0;t>=XZ;)e|=t&1,t>>=1;return t+e}function tW(t,e,r,n){var a=e+1;if(a===r)return 1;if(n(t[a++],t[e])<0){for(;a=0;)a++;return a-e}function HTt(t,e,r){for(r--;e>>1,a(i,t[l])<0?s=l:o=l+1;var c=n-o;switch(c){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;c>0;)t[o+c]=t[o+c-1],c--}t[o]=i}}function WO(t,e,r,n,a,i){var o=0,s=0,l=1;if(i(t,e[r+a])>0){for(s=n-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var c=o;o=a-l,l=a-c}for(o++;o>>1);i(t,e[r+d])>0?o=d+1:l=d}return l}function HO(t,e,r,n,a,i){var o=0,s=0,l=1;if(i(t,e[r+a])<0){for(s=a+1;ls&&(l=s);var c=o;o=a-l,l=a-c}else{for(s=n-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(t,e[r+d])<0?l=d:o=d+1}return l}function UTt(t,e){var r=l_,n,a,i=0,o=[];n=[],a=[];function s(p,v){n[i]=p,a[i]=v,i+=1}function l(){for(;i>1;){var p=i-2;if(p>=1&&a[p-1]<=a[p]+a[p+1]||p>=2&&a[p-2]<=a[p]+a[p-1])a[p-1]a[p+1])break;d(p)}}function c(){for(;i>1;){var p=i-2;p>0&&a[p-1]=l_||O>=l_);if(R)break;M<0&&(M=0),M+=2}if(r=M,r<1&&(r=1),v===1){for(b=0;b<_;b++)t[C+b]=t[x+b];t[C+_]=o[w]}else{if(v===0)throw new Error;for(b=0;b=0;b--)t[k+b]=t[M+b];t[C]=o[x];return}for(var O=r;;){var R=0,L=0,$=!1;do if(e(o[x],t[w])<0){if(t[C--]=t[w--],R++,L=0,--v===0){$=!0;break}}else if(t[C--]=o[x--],L++,R=0,--_===1){$=!0;break}while((R|L)=0;b--)t[k+b]=t[M+b];if(v===0){$=!0;break}}if(t[C--]=o[x--],--_===1){$=!0;break}if(L=_-WO(t[w],o,0,_,_-1,e),L!==0){for(C-=L,x-=L,_-=L,k=C+1,M=x+1,b=0;b=l_||L>=l_);if($)break;O<0&&(O=0),O+=2}if(r=O,r<1&&(r=1),_===1){for(C-=v,w-=v,k=C+1,M=w+1,b=v-1;b>=0;b--)t[k+b]=t[M+b];t[C]=o[x]}else{if(_===0)throw new Error;for(M=C-(_-1),b=0;b<_;b++)t[M+b]=o[b]}}return{mergeRuns:l,forceMergeRuns:c,pushRun:s}}function ES(t,e,r,n){r||(r=0),n||(n=t.length);var a=n-r;if(!(a<2)){var i=0;if(as&&(l=s),rW(t,r,r+l,r+i,e),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var Ai=1,W_=2,vm=4,nW=!1;function UO(){nW||(nW=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function aW(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var YTt=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=aW}return t.prototype.traverse=function(e,r){for(var n=0;n0&&(d.__clipPaths=[]),isNaN(d.z)&&(UO(),d.z=0),isNaN(d.z2)&&(UO(),d.z2=0),isNaN(d.zlevel)&&(UO(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,r,n);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,r,n);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),xx;xx=xt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var sy={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-sy.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?sy.bounceIn(t*2)*.5:sy.bounceOut(t*2-1)*.5+.5}},nw=Math.pow,Xu=Math.sqrt,Cx=1e-8,JZ=1e-4,iW=Xu(3),aw=1/3,cl=Ih(),fo=Ih(),zm=Ih();function Wu(t){return t>-Cx&&tCx||t<-Cx}function Rn(t,e,r,n,a){var i=1-a;return i*i*(i*t+3*a*e)+a*a*(a*n+3*i*r)}function oW(t,e,r,n,a){var i=1-a;return 3*(((e-t)*i+2*(r-e)*a)*i+(n-r)*a*a)}function Tx(t,e,r,n,a,i){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),c=t-a,d=s*s-3*o*l,u=s*l-9*o*c,f=l*l-3*s*c,p=0;if(Wu(d)&&Wu(u))if(Wu(s))i[0]=0;else{var v=-l/s;v>=0&&v<=1&&(i[p++]=v)}else{var g=u*u-4*d*f;if(Wu(g)){var _=u/d,v=-s/o+_,b=-_/2;v>=0&&v<=1&&(i[p++]=v),b>=0&&b<=1&&(i[p++]=b)}else if(g>0){var w=Xu(g),x=d*s+1.5*o*(-u+w),C=d*s+1.5*o*(-u-w);x<0?x=-nw(-x,aw):x=nw(x,aw),C<0?C=-nw(-C,aw):C=nw(C,aw);var v=(-s-(x+C))/(3*o);v>=0&&v<=1&&(i[p++]=v)}else{var M=(2*d*s-3*o*u)/(2*Xu(d*d*d)),k=Math.acos(M)/3,O=Xu(d),R=Math.cos(k),v=(-s-2*O*R)/(3*o),b=(-s+O*(R+iW*Math.sin(k)))/(3*o),L=(-s+O*(R-iW*Math.sin(k)))/(3*o);v>=0&&v<=1&&(i[p++]=v),b>=0&&b<=1&&(i[p++]=b),L>=0&&L<=1&&(i[p++]=L)}}return p}function KZ(t,e,r,n,a){var i=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Wu(o)){if(ZZ(i)){var c=-s/i;c>=0&&c<=1&&(a[l++]=c)}}else{var d=i*i-4*o*s;if(Wu(d))a[0]=-i/(2*o);else if(d>0){var u=Xu(d),c=(-i+u)/(2*o),f=(-i-u)/(2*o);c>=0&&c<=1&&(a[l++]=c),f>=0&&f<=1&&(a[l++]=f)}}return l}function kx(t,e,r,n,a,i){var o=(e-t)*a+t,s=(r-e)*a+e,l=(n-r)*a+r,c=(s-o)*a+o,d=(l-s)*a+s,u=(d-c)*a+c;i[0]=t,i[1]=o,i[2]=c,i[3]=u,i[4]=u,i[5]=d,i[6]=l,i[7]=n}function QZ(t,e,r,n,a,i,o,s,l,c,d){var u,f=.005,p=1/0,v,g,_,b;cl[0]=l,cl[1]=c;for(var w=0;w<1;w+=.05)fo[0]=Rn(t,r,a,o,w),fo[1]=Rn(e,n,i,s,w),_=Xf(cl,fo),_=0&&_=0&&c<=1&&(a[l++]=c)}}else{var d=o*o-4*i*s;if(Wu(d)){var c=-o/(2*i);c>=0&&c<=1&&(a[l++]=c)}else if(d>0){var u=Xu(d),c=(-o+u)/(2*i),f=(-o-u)/(2*i);c>=0&&c<=1&&(a[l++]=c),f>=0&&f<=1&&(a[l++]=f)}}return l}function eK(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Ex(t,e,r,n,a){var i=(e-t)*n+t,o=(r-e)*n+e,s=(o-i)*n+i;a[0]=t,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function tK(t,e,r,n,a,i,o,s,l){var c,d=.005,u=1/0;cl[0]=o,cl[1]=s;for(var f=0;f<1;f+=.05){fo[0]=ba(t,r,a,f),fo[1]=ba(e,n,i,f);var p=Xf(cl,fo);p=0&&p=1?1:Tx(0,n,i,1,l,s)&&Rn(0,a,o,1,s[0])}}}var JTt=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||aa,this.ondestroy=e.ondestroy||aa,this.onrestart=e.onrestart||aa,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=wt(e)?e:sy[e]||i5(e)},t}(),rK=function(){function t(e){this.value=e}return t}(),ZTt=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new rK(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),$0=function(){function t(e){this._list=new ZTt,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,a=this._map,i=null;if(a[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new rK(r),s.key=e,n.insertEntry(s),a[e]=s}return i},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),lW={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function fs(t){return t=Math.round(t),t<0?0:t>255?255:t}function KTt(t){return t=Math.round(t),t<0?0:t>360?360:t}function zy(t){return t<0?0:t>1?1:t}function YO(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?fs(parseFloat(e)/100*255):fs(parseInt(e,10))}function Jf(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?zy(parseFloat(e)/100):zy(parseFloat(e))}function VO(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Hu(t,e,r){return t+(e-t)*r}function no(t,e,r,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t}function dI(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var nK=new $0(20),iw=null;function Lp(t,e){iw&&dI(iw,e),iw=nK.put(t,iw||e.slice())}function ci(t,e){if(t){e=e||[];var r=nK.get(t);if(r)return dI(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in lW)return dI(e,lW[n]),Lp(t,e),e;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){no(e,0,0,0,1);return}return no(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Lp(t,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){no(e,0,0,0,1);return}return no(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Lp(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),c=n.substr(o+1,s-(o+1)).split(","),d=1;switch(l){case"rgba":if(c.length!==4)return c.length===3?no(e,+c[0],+c[1],+c[2],1):no(e,0,0,0,1);d=Jf(c.pop());case"rgb":if(c.length>=3)return no(e,YO(c[0]),YO(c[1]),YO(c[2]),c.length===3?d:Jf(c[3])),Lp(t,e),e;no(e,0,0,0,1);return;case"hsla":if(c.length!==4){no(e,0,0,0,1);return}return c[3]=Jf(c[3]),fI(c,e),Lp(t,e),e;case"hsl":if(c.length!==3){no(e,0,0,0,1);return}return fI(c,e),Lp(t,e),e;default:return}}no(e,0,0,0,1)}}function fI(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Jf(t[1]),a=Jf(t[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return e=e||[],no(e,fs(VO(o,i,r+1/3)*255),fs(VO(o,i,r)*255),fs(VO(o,i,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function QTt(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.min(e,r,n),i=Math.max(e,r,n),o=i-a,s=(i+a)/2,l,c;if(o===0)l=0,c=0;else{s<.5?c=o/(i+a):c=o/(2-i-a);var d=((i-e)/6+o/2)/o,u=((i-r)/6+o/2)/o,f=((i-n)/6+o/2)/o;e===i?l=f-u:r===i?l=1/3+d-f:n===i&&(l=2/3+u-d),l<0&&(l+=1),l>1&&(l-=1)}var p=[l*360,c,s];return t[3]!=null&&p.push(t[3]),p}}function hI(t,e){var r=ci(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return pd(r,r.length===4?"rgba":"rgb")}}function ekt(t){var e=ci(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function aK(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],l=n-a;return r[0]=fs(Hu(o[0],s[0],l)),r[1]=fs(Hu(o[1],s[1],l)),r[2]=fs(Hu(o[2],s[2],l)),r[3]=zy(Hu(o[3],s[3],l)),r}}var tkt=aK;function o5(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=ci(e[a]),s=ci(e[i]),l=n-a,c=pd([fs(Hu(o[0],s[0],l)),fs(Hu(o[1],s[1],l)),fs(Hu(o[2],s[2],l)),zy(Hu(o[3],s[3],l))],"rgba");return r?{color:c,leftIndex:a,rightIndex:i,value:n}:c}}var rkt=o5;function nkt(t,e,r,n){var a=ci(t);if(t)return a=QTt(a),e!=null&&(a[0]=KTt(e)),r!=null&&(a[1]=Jf(r)),n!=null&&(a[2]=Jf(n)),pd(fI(a),"rgba")}function pI(t,e){var r=ci(t);if(r&&e!=null)return r[3]=zy(e),pd(r,"rgba")}function pd(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function By(t,e){var r=ci(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function akt(){return pd([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var cW=new $0(100);function Dx(t){if(Ue(t)){var e=cW.get(t);return e||(e=hI(t,-.1),cW.put(t,e)),e}else if(E0(t)){var r=De({},t);return r.colorStops=Oe(t.colorStops,function(n){return{offset:n.offset,color:hI(n.color,-.1)}}),r}return t}const iK=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:aK,fastMapToColor:tkt,lerp:o5,lift:hI,liftColor:Dx,lum:By,mapToColor:rkt,modifyAlpha:pI,modifyHSL:nkt,parse:ci,random:akt,stringify:pd,toHex:ekt},Symbol.toStringTag,{value:"Module"}));var Mx=Math.round;function jy(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=ci(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var uW=1e-4;function Uu(t){return t-uW}function ow(t){return Mx(t*1e3)/1e3}function mI(t){return Mx(t*1e4)/1e4}function ikt(t){return"matrix("+ow(t[0])+","+ow(t[1])+","+ow(t[2])+","+ow(t[3])+","+mI(t[4])+","+mI(t[5])+")"}var okt={left:"start",right:"end",center:"middle",middle:"middle"};function skt(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function lkt(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function ckt(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function oK(t){return t&&!!t.image}function ukt(t){return t&&!!t.svgElement}function s5(t){return oK(t)||ukt(t)}function sK(t){return t.type==="linear"}function lK(t){return t.type==="radial"}function cK(t){return t&&(t.type==="linear"||t.type==="radial")}function mT(t){return"url(#"+t+")"}function uK(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function dK(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*oy,a=mt(t.scaleX,1),i=mt(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Mx(o*oy)+"deg, "+Mx(s*oy)+"deg)"),l.join(" ")}var dkt=function(){return xt.hasGlobalWindow&&wt(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}}(),vI=Array.prototype.slice;function oc(t,e,r){return(e-t)*r+t}function GO(t,e,r,n){for(var a=e.length,i=0;in?e:t,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)n.length=o;else for(var l=i;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=fW,l=r;if(Wa(r)){var c=mkt(r);s=c,(c===1&&!Dr(r[0])||c===2&&!Dr(r[0][0]))&&(o=!0)}else if(Dr(r)&&!Ny(r))s=lw;else if(Ue(r))if(!isNaN(+r))s=lw;else{var d=ci(r);d&&(l=d,s=H_)}else if(E0(r)){var u=De({},l);u.colorStops=Oe(r.colorStops,function(p){return{offset:p.offset,color:ci(p.color)}}),sK(r)?s=gI:lK(r)&&(s=_I),l=u}i===0?this.valType=s:(s!==this.valType||s===fW)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:r,percent:0};return n&&(f.easing=n,f.easingFunc=wt(n)?n:sy[n]||i5(n)),a.push(f),f},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,_){return g.time-_.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=cw(a),c=hW(a),d=0;d=0&&!(o[d].percent<=r);d--);d=f(d,s-2)}else{for(d=u;dr);d++);d=f(d-1,s-2)}v=o[d+1],p=o[d]}if(p&&v){this._lastFr=d,this._lastFrP=r;var _=v.percent-p.percent,b=_===0?1:f((r-p.percent)/_,1);v.easingFunc&&(b=v.easingFunc(b));var w=n?this._additiveValue:c?c_:e[l];if((cw(i)||c)&&!w&&(w=this._additiveValue=[]),this.discrete)e[l]=b<1?p.rawValue:v.rawValue;else if(cw(i))i===OS?GO(w,p[a],v[a],b):fkt(w,p[a],v[a],b);else if(hW(i)){var x=p[a],C=v[a],M=i===gI;e[l]={type:M?"linear":"radial",x:oc(x.x,C.x,b),y:oc(x.y,C.y,b),colorStops:Oe(x.colorStops,function(O,R){var L=C.colorStops[R];return{offset:oc(O.offset,L.offset,b),color:MS(GO([],O.color,L.color,b))}}),global:C.global},M?(e[l].x2=oc(x.x2,C.x2,b),e[l].y2=oc(x.y2,C.y2,b)):e[l].r=oc(x.r,C.r,b)}else if(c)GO(w,p[a],v[a],b),n||(e[l]=MS(w));else{var k=oc(p[a],v[a],b);n?this._additiveValue=k:e[l]=k}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,a=this._additiveValue;r===lw?e[n]=e[n]+a:r===H_?(ci(e[n],c_),sw(c_,c_,a,1),e[n]=MS(c_)):r===OS?sw(e[n],e[n],a,1):r===fK&&dW(e[n],e[n],a,1)},t}(),l5=function(){function t(e,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&a){fT("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,lr(r),n)},t.prototype.whenWithKeys=function(e,r,n,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,DS(c),a),this._trackKeys.push(s)}l.addKeyframe(e,DS(r[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();function km(){return new Date().getTime()}var gkt=function(t){ve(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=km()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(xx(n),!r._paused&&r.update())}xx(n)},e.prototype.start=function(){this._running||(this._time=km(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=km(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=km()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var a=new l5(r,n.loop);return this.addAnimator(a),a},e}(Do),_kt=300,qO=xt.domSupported,XO=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Oe(t,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:t,touch:e,pointer:n}}(),pW={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},mW=!1;function yI(t){var e=t.pointerType;return e==="pen"||e==="touch"}function ykt(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function JO(t){t&&(t.zrByTouch=!0)}function bkt(t,e){return ao(t.dom,new wkt(t,e),!0)}function hK(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var wkt=function(){function t(e,r){this.stopPropagation=aa,this.stopImmediatePropagation=aa,this.preventDefault=aa,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),Qo={mousedown:function(t){t=ao(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ao(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ao(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=ao(this.dom,t);var e=t.toElement||t.relatedTarget;hK(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){mW=!0,t=ao(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){mW||(t=ao(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=ao(this.dom,t),JO(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Qo.mousemove.call(this,t),Qo.mousedown.call(this,t)},touchmove:function(t){t=ao(this.dom,t),JO(t),this.handler.processGesture(t,"change"),Qo.mousemove.call(this,t)},touchend:function(t){t=ao(this.dom,t),JO(t),this.handler.processGesture(t,"end"),Qo.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<_kt&&Qo.click.call(this,t)},pointerdown:function(t){Qo.mousedown.call(this,t)},pointermove:function(t){yI(t)||Qo.mousemove.call(this,t)},pointerup:function(t){Qo.mouseup.call(this,t)},pointerout:function(t){yI(t)||Qo.mouseout.call(this,t)}};G(["click","dblclick","contextmenu"],function(t){Qo[t]=function(e){e=ao(this.dom,e),this.trigger(t,e)}});var bI={pointermove:function(t){yI(t)||bI.mousemove.call(this,t)},pointerup:function(t){bI.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Skt(t,e){var r=e.domHandlers;xt.pointerEventsSupported?G(XO.pointer,function(n){$S(e,n,function(a){r[n].call(t,a)})}):(xt.touchEventsSupported&&G(XO.touch,function(n){$S(e,n,function(a){r[n].call(t,a),ykt(e)})}),G(XO.mouse,function(n){$S(e,n,function(a){a=n5(a),e.touching||r[n].call(t,a)})}))}function xkt(t,e){xt.pointerEventsSupported?G(pW.pointer,r):xt.touchEventsSupported||G(pW.mouse,r);function r(n){function a(i){i=n5(i),hK(t,i.target)||(i=bkt(t,i),e.domHandlers[n].call(t,i))}$S(e,n,a,{capture:!0})}}function $S(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,uI(t.domTarget,e,r,n)}function ZO(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&PTt(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var vW=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),Ckt=function(t){ve(e,t);function e(r,n){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new vW(r,Qo),qO&&(a._globalHandlerScope=new vW(document,bI)),Skt(a,a._localHandlerScope),a}return e.prototype.dispose=function(){ZO(this._localHandlerScope),qO&&ZO(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,qO&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?xkt(this,n):ZO(n)}},e}(Do),pK=1;xt.hasGlobalWindow&&(pK=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ox=pK,wI=.4,SI="#333",xI="#ccc",Tkt="#eee",gW=M0,_W=5e-5;function cf(t){return t>_W||t<-_W}var uf=[],Np=[],KO=wc(),QO=Math.abs,vT=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return cf(this.rotation)||cf(this.x)||cf(this.y)||cf(this.scaleX-1)||cf(this.scaleY-1)||cf(this.skewX)||cf(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(gW(n),this.invTransform=null);return}n=n||wc(),r?this.getLocalTransform(n):gW(n),e&&(r?qu(n,e,n):a5(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(uf);var n=uf[0]<0?-1:1,a=uf[1]<0?-1:1,i=((uf[0]-n)*r+n)/uf[0]||0,o=((uf[1]-a)*r+a)/uf[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||wc(),kv(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||wc(),qu(Np,e.invTransform,r),r=Np);var n=this.originX,a=this.originY;(n||a)&&(KO[4]=n,KO[5]=a,qu(Np,r,KO),Np[4]-=n,Np[5]-=a,r=Np),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],a=this.invTransform;return a&&Ba(n,n,a),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],a=this.transform;return a&&Ba(n,n,a),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&QO(e[0]-1)>1e-10&&QO(e[3]-1)>1e-10?Math.sqrt(QO(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){mK(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,c=e.rotation||0,d=e.x,u=e.y,f=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||l){var v=n+s,g=a+l;r[4]=-v*i-f*g*o,r[5]=-g*o-p*v*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=p*i,r[2]=f*o,c&&O0(r,r,c),r[4]+=n+d,r[5]+=a+u,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Wy=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mK(t,e){for(var r=0;r=0?parseFloat(t)/100*e:parseFloat(t):t}function $x(t,e,r){var n=e.position||"inside",a=e.distance!=null?e.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,c=r.y,d="left",u="top";if(n instanceof Array)l+=Dc(n[0],r.width),c+=Dc(n[1],r.height),d=null,u=null;else switch(n){case"left":l-=a,c+=s,d="right",u="middle";break;case"right":l+=a+o,c+=s,u="middle";break;case"top":l+=o/2,c-=a,d="center",u="bottom";break;case"bottom":l+=o/2,c+=i+a,d="center";break;case"inside":l+=o/2,c+=s,d="center",u="middle";break;case"insideLeft":l+=a,c+=s,u="middle";break;case"insideRight":l+=o-a,c+=s,d="right",u="middle";break;case"insideTop":l+=o/2,c+=a,d="center";break;case"insideBottom":l+=o/2,c+=i-a,d="center",u="bottom";break;case"insideTopLeft":l+=a,c+=a;break;case"insideTopRight":l+=o-a,c+=a,d="right";break;case"insideBottomLeft":l+=a,c+=i-a,u="bottom";break;case"insideBottomRight":l+=o-a,c+=i-a,d="right",u="bottom";break}return t=t||{},t.x=l,t.y=c,t.align=d,t.verticalAlign=u,t}var e$="__zr_normal__",t$=Wy.concat(["ignore"]),kkt=wl(Wy,function(t,e){return t[e]=!0,t},{ignore:!1}),Fp={},Ekt=new rr(0,0,0,0),yT=function(){function t(e){this.id=JN(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var c=!1;if(i.copyTransform(r),n.position!=null){var d=Ekt;n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),a||d.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Fp,n,d):$x(Fp,n,d),i.x=Fp.x,i.y=Fp.y,o=Fp.align,s=Fp.verticalAlign;var u=n.origin;if(u&&n.rotation!=null){var f=void 0,p=void 0;u==="center"?(f=d.width*.5,p=d.height*.5):(f=Dc(u[0],d.width),p=Dc(u[1],d.height)),c=!0,i.originX=-i.x+f+(a?0:d.x),i.originY=-i.y+p+(a?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var v=n.offset;v&&(i.x+=v[0],i.y+=v[1],c||(i.originX=-v[0],i.originY=-v[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),b=void 0,w=void 0,x=void 0;g&&this.canBeInsideText()?(b=n.insideFill,w=n.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(b),x=!0)):(b=n.outsideFill,w=n.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(b),x=!0)),b=b||"#000",(b!==_.fill||w!==_.stroke||x!==_.autoStroke||o!==_.align||s!==_.verticalAlign)&&(l=!0,_.fill=b,_.stroke=w,_.autoStroke=x,_.align=o,_.verticalAlign=s,r.setDefaultTextStyle(_)),r.__dirty|=Ai,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?xI:SI},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&ci(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,pd(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},De(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(ft(e))for(var n=e,a=lr(n),i=0;i0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(e$,!1,e)},t.prototype.useState=function(e,r,n,a){var i=e===e$,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Yt(s,e)>=0&&(r||s.length===1))){var c;if(this.stateProxy&&!i&&(c=this.stateProxy(e)),c||(c=this.states&&this.states[e]),!c&&!i){fT("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(c);var d=!!(c&&c.hoverLayer||a);d&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,c,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var u=this._textContent,f=this._textGuide;return u&&u.useState(e,r,n,d),f&&f.useState(e,r,n,d),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ai),c}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,v);var g=this._textContent,_=this._textGuide;g&&g.useStates(e,r,f),_&&_.useStates(e,r,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ai)}},t.prototype.isSilent=function(){for(var e=this.silent,r=this.parent;!e&&r;){if(r.silent){e=!0;break}r=r.parent}return e},t.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var a=this.currentStates.slice(),i=Yt(a,e),o=Yt(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,a=n.length,i=[],o=0;o0&&r.during&&i[0].during(function(v,g){r.during(g)});for(var f=0;f0||a.force&&!o.length){var R=void 0,L=void 0,$=void 0;if(s){L={},f&&(R={});for(var C=0;C=0&&(a.splice(i,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var a=Yt(this._children,r);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,a=this._children,i=Yt(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r0){if(t<=a)return o;if(t>=i)return s}else{if(t>=a)return o;if(t<=i)return s}else{if(t===a)return o;if(t===i)return s}return(t-a)/l*c+o}function Hr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Ue(t)?zkt(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function mn(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),wK),t=(+t).toFixed(e),r?t:+t}function fc(t){return t.sort(function(e,r){return e-r}),t}function ls(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return SK(t)}function SK(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,a=r>0?r:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function c5(t,e){var r=Math.log,n=Math.LN10,a=Math.floor(r(t[1]-t[0])/n),i=Math.round(r(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Bkt(t,e,r){if(!t[e])return 0;var n=jkt(t,r);return n[e]||0}function jkt(t,e){var r=wl(t,function(p,v){return p+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,e),a=Oe(t,function(p){return(isNaN(p)?0:p)/r*n*100}),i=n*100,o=Oe(a,function(p){return Math.floor(p)}),s=wl(o,function(p,v){return p+v},0),l=Oe(a,function(p,v){return p-o[v]});sc&&(c=l[u],d=u);++o[d],l[d]=0,++s}return Oe(o,function(p){return p/n})}function Wkt(t,e){var r=Math.max(ls(t),ls(e)),n=t+e;return r>wK?n:mn(n,r)}var Hkt=9007199254740991;function u5(t){var e=Math.PI*2;return(t%e+e)%e}function Hy(t){return t>-wW&&t=10&&e++,e}function d5(t,e){var r=bT(t),n=Math.pow(10,r),a=t/n,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,t=i*n,r>=-20?+t.toFixed(r<0?-r:0):t}function Ykt(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),a=+t[n-1],i=r-n;return i?a+i*(t[n]-a):a}function Vkt(t){t.sort(function(l,c){return s(l,c,0)?-1:1});for(var e=-1/0,r=1,n=0;n=0||i&&Yt(i,l)<0)){var c=n.getShallow(l,e);c!=null&&(o[t[s][0]]=c)}}return o}}var v2t=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],g2t=Vy(v2t),_2t=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return g2t(this,e,r)},t}(),EI=new $0(50);function y2t(t){if(typeof t=="string"){var e=EI.get(t);return e&&e.image}else return t}function m5(t,e,r,n,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var i=EI.get(t),o={hostEl:r,cb:n,cbPayload:a};return i?(e=i.image,!ST(e)&&i.pending.push(o)):(e=Ec.loadImage(t,TW,TW),e.__zrImageSrc=t,EI.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function TW(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var c=Li(r,e);return c>s&&(r="",c=0),s=t-c,a.ellipsis=r,a.ellipsisWidth=c,a.contentWidth=s,a.containerWidth=t,a}function LK(t,e,r){var n=r.containerWidth,a=r.font,i=r.contentWidth;if(!n){t.textLine="",t.isTruncated=!1;return}var o=Li(e,a);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?w2t(e,i,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Li(e,a)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function w2t(t,e,r,n){for(var a=0,i=0,o=t.length;iv&&c){var g=Math.floor(v/s);d=d||f.length>g,f=f.slice(0,g)}if(t&&i&&u!=null)for(var _=RK(u,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;ws&&i$(r,t.substring(s,c),e,o),i$(r,l[2],e,o,l[1]),s=a$.lastIndex}sa){var j=r.lines.length;k>0?(x.tokens=x.tokens.slice(0,k),b(x,M,C),r.lines=r.lines.slice(0,w+1)):r.lines=r.lines.slice(0,w),r.isTruncated=r.isTruncated||r.lines.length0&&v+n.accumWidth>n.width&&(d=e.split(` -`),c=!0),n.accumWidth=v}else{var g=NK(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+p,u=g.linesWidths,d=g.lines}}else d=e.split(` -`);for(var _=0;_=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var E2t=wl(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function D2t(t){return k2t(t)?!!E2t[t]:!0}function NK(t,e,r,n,a){for(var i=[],o=[],s="",l="",c=0,d=0,u=0;ur:a+d+p>r){d?(s||l)&&(v?(s||(s=l,l="",c=0,d=c),i.push(s),o.push(d-c),l+=f,c+=p,s="",d=c):(l&&(s+=l,l="",c=0),i.push(s),o.push(d),s=f,d=p)):v?(i.push(l),o.push(c),l=f,c=p):(i.push(f),o.push(p));continue}d+=p,v?(l+=f,c+=p):(l&&(s+=l,l="",c=0),s+=f)}return!i.length&&!s&&(s=t,l="",c=0),l&&(s+=l),s&&(i.push(s),o.push(d)),i.length===1&&(d+=a),{accumWidth:d,lines:i,linesWidths:o}}var DI="__zr_style_"+Math.round(Math.random()*10),Zf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},xT={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Zf[DI]=!0;var EW=["z","z2","invisible"],M2t=["invisible"],P0=function(t){ve(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=lr(r),a=0;a1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(uw[0]=c$(a)*r+t,uw[1]=l$(a)*n+e,dw[0]=c$(i)*r+t,dw[1]=l$(i)*n+e,c(s,uw,dw),d(l,uw,dw),a=a%ff,a<0&&(a=a+ff),i=i%ff,i<0&&(i=i+ff),a>i&&!o?i+=ff:aa&&(fw[0]=c$(p)*r+t,fw[1]=l$(p)*n+e,c(s,fw,s),d(l,fw,l))}var Cr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},hf=[],pf=[],Js=[],wu=[],Zs=[],Ks=[],u$=Math.min,d$=Math.max,mf=Math.cos,vf=Math.sin,ec=Math.abs,MI=Math.PI,Ou=MI*2,f$=typeof Float32Array<"u",u_=[];function h$(t){var e=Math.round(t/MI*1e8)/1e8;return e%2*MI}function I2t(t,e){var r=h$(t[0]);r<0&&(r+=Ou);var n=r-t[0],a=t[1];a+=n,!e&&a-r>=Ou?a=r+Ou:e&&r-a>=Ou?a=r-Ou:!e&&r>a?a=r+(Ou-h$(r-a)):e&&r0&&(this._ux=ec(n/Ox/e)||0,this._uy=ec(n/Ox/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Cr.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=ec(e-this._xi),a=ec(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Cr.L,e,r),this._ctx&&i&&this._ctx.lineTo(e,r),i)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,a,i,o){return this._drawPendingPt(),this.addData(Cr.C,e,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,a,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,a){return this._drawPendingPt(),this.addData(Cr.Q,e,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,a),this._xi=n,this._yi=a,this},t.prototype.arc=function(e,r,n,a,i,o){this._drawPendingPt(),u_[0]=a,u_[1]=i,I2t(u_,o),a=u_[0],i=u_[1];var s=i-a;return this.addData(Cr.A,e,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,a,i,o),this._xi=mf(i)*n+e,this._yi=vf(i)*n+r,this},t.prototype.arcTo=function(e,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,a,i),this},t.prototype.rect=function(e,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,a),this.addData(Cr.R,e,r,n,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Cr.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var r=e.length;!(this.data&&this.data.length===r)&&f$&&(this.data=new Float32Array(r));for(var n=0;nd.length&&(this._expandData(),d=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Js[0]=Js[1]=Zs[0]=Zs[1]=Number.MAX_VALUE,wu[0]=wu[1]=Ks[0]=Ks[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,a=0,i=0,o;for(o=0;on||ec(x)>a||f===r-1)&&(g=Math.sqrt(w*w+x*x),i=_,o=b);break}case Cr.C:{var C=e[f++],M=e[f++],_=e[f++],b=e[f++],k=e[f++],O=e[f++];g=VTt(i,o,C,M,_,b,k,O,10),i=k,o=O;break}case Cr.Q:{var C=e[f++],M=e[f++],_=e[f++],b=e[f++];g=qTt(i,o,C,M,_,b,10),i=_,o=b;break}case Cr.A:var R=e[f++],L=e[f++],$=e[f++],N=e[f++],W=e[f++],j=e[f++],Y=j+W;f+=1,v&&(s=mf(W)*$+R,l=vf(W)*N+L),g=d$($,N)*u$(Ou,Math.abs(j)),i=mf(Y)*$+R,o=vf(Y)*N+L;break;case Cr.R:{s=i=e[f++],l=o=e[f++];var V=e[f++],J=e[f++];g=V*2+J*2;break}case Cr.Z:{var w=s-i,x=l-o;g=Math.sqrt(w*w+x*x),i=s,o=l;break}}g>=0&&(c[u++]=g,d+=g)}return this._pathLen=d,d},t.prototype.rebuildPath=function(e,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,c,d,u,f,p=r<1,v,g,_=0,b=0,w,x=0,C,M;if(!(p&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,w=r*g,!w)))e:for(var k=0;k0&&(e.lineTo(C,M),x=0),O){case Cr.M:s=c=n[k++],l=d=n[k++],e.moveTo(c,d);break;case Cr.L:{u=n[k++],f=n[k++];var L=ec(u-c),$=ec(f-d);if(L>a||$>i){if(p){var N=v[b++];if(_+N>w){var W=(w-_)/N;e.lineTo(c*(1-W)+u*W,d*(1-W)+f*W);break e}_+=N}e.lineTo(u,f),c=u,d=f,x=0}else{var j=L*L+$*$;j>x&&(C=u,M=f,x=j)}break}case Cr.C:{var Y=n[k++],V=n[k++],J=n[k++],ie=n[k++],K=n[k++],Q=n[k++];if(p){var N=v[b++];if(_+N>w){var W=(w-_)/N;kx(c,Y,J,K,W,hf),kx(d,V,ie,Q,W,pf),e.bezierCurveTo(hf[1],pf[1],hf[2],pf[2],hf[3],pf[3]);break e}_+=N}e.bezierCurveTo(Y,V,J,ie,K,Q),c=K,d=Q;break}case Cr.Q:{var Y=n[k++],V=n[k++],J=n[k++],ie=n[k++];if(p){var N=v[b++];if(_+N>w){var W=(w-_)/N;Ex(c,Y,J,W,hf),Ex(d,V,ie,W,pf),e.quadraticCurveTo(hf[1],pf[1],hf[2],pf[2]);break e}_+=N}e.quadraticCurveTo(Y,V,J,ie),c=J,d=ie;break}case Cr.A:var oe=n[k++],H=n[k++],X=n[k++],ae=n[k++],re=n[k++],le=n[k++],Ee=n[k++],We=!n[k++],Ne=X>ae?X:ae,Le=ec(X-ae)>.001,Pe=re+le,we=!1;if(p){var N=v[b++];_+N>w&&(Pe=re+le*(w-_)/N,we=!0),_+=N}if(Le&&e.ellipse?e.ellipse(oe,H,X,ae,Ee,re,Pe,We):e.arc(oe,H,Ne,re,Pe,We),we)break e;R&&(s=mf(re)*X+oe,l=vf(re)*ae+H),c=mf(Pe)*X+oe,d=vf(Pe)*ae+H;break;case Cr.R:s=c=n[k],l=d=n[k+1],u=n[k++],f=n[k++];var ye=n[k++],ht=n[k++];if(p){var N=v[b++];if(_+N>w){var Be=w-_;e.moveTo(u,f),e.lineTo(u+u$(Be,ye),f),Be-=ye,Be>0&&e.lineTo(u+ye,f+u$(Be,ht)),Be-=ht,Be>0&&e.lineTo(u+d$(ye-Be,0),f+ht),Be-=ye,Be>0&&e.lineTo(u,f+d$(ht-Be,0));break e}_+=N}e.rect(u,f,ye,ht);break;case Cr.Z:if(p){var N=v[b++];if(_+N>w){var W=(w-_)/N;e.lineTo(c*(1-W)+s*W,d*(1-W)+l*W);break e}_+=N}e.closePath(),c=s,d=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=Cr,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function zp(t,e,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,c=t;if(o>e+s&&o>n+s||ot+s&&i>r+s||ie+u&&d>n+u&&d>i+u&&d>s+u||dt+u&&c>r+u&&c>a+u&&c>o+u||ce+c&&l>n+c&&l>i+c||lt+c&&s>r+c&&s>a+c||sr||d+ca&&(a+=d_);var f=Math.atan2(l,s);return f<0&&(f+=d_),f>=n&&f<=a||f+d_>=n&&f+d_<=a}function sc(t,e,r,n,a,i){if(i>e&&i>n||ia?s:0}var Su=Mc.CMD,gf=Math.PI*2,F2t=1e-4;function z2t(t,e){return Math.abs(t-e)e&&c>n&&c>i&&c>s||c1&&B2t(),p=Rn(e,n,i,s,oo[0]),f>1&&(v=Rn(e,n,i,s,oo[1]))),f===2?_e&&s>n&&s>i||s=0&&c<=1){for(var d=0,u=ba(e,n,i,c),f=0;fr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);La[0]=-l,La[1]=l;var c=Math.abs(n-a);if(c<1e-4)return 0;if(c>=gf-1e-4){n=0,a=gf;var d=i?1:-1;return o>=La[0]+t&&o<=La[1]+t?d:0}if(n>a){var u=n;n=a,a=u}n<0&&(n+=gf,a+=gf);for(var f=0,p=0;p<2;p++){var v=La[p];if(v+t>o){var g=Math.atan2(s,v),d=i?1:-1;g<0&&(g=gf+g),(g>=n&&g<=a||g+gf>=n&&g+gf<=a)&&(g>Math.PI/2&&g1&&(r||(s+=sc(l,c,d,u,n,a))),_&&(l=i[v],c=i[v+1],d=l,u=c),g){case Su.M:d=i[v++],u=i[v++],l=d,c=u;break;case Su.L:if(r){if(zp(l,c,i[v],i[v+1],e,n,a))return!0}else s+=sc(l,c,i[v],i[v+1],n,a)||0;l=i[v++],c=i[v++];break;case Su.C:if(r){if(R2t(l,c,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],e,n,a))return!0}else s+=j2t(l,c,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],n,a)||0;l=i[v++],c=i[v++];break;case Su.Q:if(r){if(L2t(l,c,i[v++],i[v++],i[v],i[v+1],e,n,a))return!0}else s+=W2t(l,c,i[v++],i[v++],i[v],i[v+1],n,a)||0;l=i[v++],c=i[v++];break;case Su.A:var b=i[v++],w=i[v++],x=i[v++],C=i[v++],M=i[v++],k=i[v++];v+=1;var O=!!(1-i[v++]);f=Math.cos(M)*x+b,p=Math.sin(M)*C+w,_?(d=f,u=p):s+=sc(l,c,f,p,n,a);var R=(n-b)*C/x+b;if(r){if(N2t(b,w,C,M,M+k,O,e,R,a))return!0}else s+=H2t(b,w,C,M,M+k,O,R,a);l=Math.cos(M+k)*x+b,c=Math.sin(M+k)*C+w;break;case Su.R:d=l=i[v++],u=c=i[v++];var L=i[v++],$=i[v++];if(f=d+L,p=u+$,r){if(zp(d,u,f,u,e,n,a)||zp(f,u,f,p,e,n,a)||zp(f,p,d,p,e,n,a)||zp(d,p,d,u,e,n,a))return!0}else s+=sc(f,u,f,p,n,a),s+=sc(d,p,d,u,n,a);break;case Su.Z:if(r){if(zp(l,c,d,u,e,n,a))return!0}else s+=sc(l,c,d,u,n,a);l=d,c=u;break}}return!r&&!z2t(c,u)&&(s+=sc(l,c,d,u,n,a)||0),s!==0}function U2t(t,e,r){return FK(t,0,!1,e,r)}function Y2t(t,e,r,n){return FK(t,e,!0,r,n)}var Ax=Rt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Zf),V2t={style:Rt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},xT.style)},p$=Wy.concat(["invisible","culling","z","z2","zlevel","parent"]),fr=function(t){ve(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s.5?SI:n>.2?Tkt:xI}else if(r)return xI}return SI},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Ue(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=By(r,0)0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&vm)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,c=n.lineWidth;if(!this.hasFill()){var d=this.strokeContainThreshold;c=Math.max(c,d??4)}l>1e-10&&(s.width+=c/l,s.height+=c/l,s.x-=c/l/2,s.y-=c/l/2)}return s}return r},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,c=o.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Y2t(s,l/c,r,n)))return!0}if(this.hasFill())return U2t(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=vm,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:De(a,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&vm)},e.prototype.createStyle=function(r){return D0(Ax,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=De({},this.shape))},e.prototype._applyStateObj=function(r,n,a,i,o,s){t.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),c;if(n&&n.shape?o?i?c=n.shape:(c=De({},a.shape),De(c,n.shape)):(c=De({},i?this.shape:a.shape),De(c,n.shape)):l&&(c=a.shape),c)if(o){this.shape=De({},this.shape);for(var d={},u=lr(c),f=0;f0},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return D0(G2t,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=gT(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var i=r.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(P0);Gy.prototype.type="tspan";var q2t=Rt({x:0,y:0},Zf),X2t={style:Rt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},xT.style)};function J2t(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Mo=function(t){ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return D0(q2t,r)},e.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=J2t(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return X2t},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new rr(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(P0);Mo.prototype.type="image";function Z2t(t,e){var r=e.x,n=e.y,a=e.width,i=e.height,o=e.r,s,l,c,d;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=c=d=o:o instanceof Array?o.length===1?s=l=c=d=o[0]:o.length===2?(s=c=o[0],l=d=o[1]):o.length===3?(s=o[0],l=d=o[1],c=o[2]):(s=o[0],l=o[1],c=o[2],d=o[3]):s=l=c=d=0;var u;s+l>a&&(u=s+l,s*=a/u,l*=a/u),c+d>a&&(u=c+d,c*=a/u,d*=a/u),l+c>i&&(u=l+c,l*=i/u,c*=i/u),s+d>i&&(u=s+d,s*=i/u,d*=i/u),t.moveTo(r+s,n),t.lineTo(r+a-l,n),l!==0&&t.arc(r+a-l,n+l,l,-Math.PI/2,0),t.lineTo(r+a,n+i-c),c!==0&&t.arc(r+a-c,n+i-c,c,0,Math.PI/2),t.lineTo(r+d,n+i),d!==0&&t.arc(r+d,n+i-d,d,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Em=Math.round;function zK(t,e,r){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;t.x1=n,t.x2=a,t.y1=i,t.y2=o;var s=r&&r.lineWidth;return s&&(Em(n*2)===Em(a*2)&&(t.x1=t.x2=Wf(n,s,!0)),Em(i*2)===Em(o*2)&&(t.y1=t.y2=Wf(i,s,!0))),t}}function BK(t,e,r){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;t.x=n,t.y=a,t.width=i,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Wf(n,s,!0),t.y=Wf(a,s,!0),t.width=Math.max(Wf(n+i,s,!1)-t.x,i===0?0:1),t.height=Math.max(Wf(a+o,s,!1)-t.y,o===0?0:1)),t}}function Wf(t,e,r){if(!e)return t;var n=Em(t*2);return(n+Em(e))%2===0?n/2:(n+(r?1:-1))/2}var K2t=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Q2t={},Ur=function(t){ve(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new K2t},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=BK(Q2t,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?Z2t(r,n):r.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(fr);Ur.prototype.type="rect";var AW={fill:"#000"},PW=2,eEt={style:Rt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},xT.style)},vn=function(t){ve(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=AW,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,W=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),j=o.calculatedLineHeight,Y=0;Y=0&&(Y=k[j],Y.align==="right");)this._placeToken(Y,r,R,b,W,"right",x),L-=Y.width,W-=Y.width,j--;for(N+=(i-(N-_)-(w-W)-L)/2;$<=j;)Y=k[$],this._placeToken(Y,r,R,b,N+Y.width/2,"center",x),N+=Y.width,$++;b+=R}},e.prototype._placeToken=function(r,n,a,i,o,s,l){var c=n.rich[r.styleName]||{};c.text=r.text;var d=r.verticalAlign,u=i+a/2;d==="top"?u=i+r.height/2:d==="bottom"&&(u=i+a-r.height/2);var f=!r.isLineHolder&&m$(c);f&&this._renderBackground(c,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,u-r.height/2,r.width,r.height);var p=!!c.backgroundColor,v=r.textPadding;v&&(o=zW(o,s,v),u-=r.height/2-v[0]-r.innerHeight/2);var g=this._getOrCreateChild(Gy),_=g.createStyle();g.useStyle(_);var b=this._defaultStyle,w=!1,x=0,C=FW("fill"in c?c.fill:"fill"in n?n.fill:(w=!0,b.fill)),M=NW("stroke"in c?c.stroke:"stroke"in n?n.stroke:!p&&!l&&(!b.autoStroke||w)?(x=PW,b.stroke):null),k=c.textShadowBlur>0||n.textShadowBlur>0;_.text=r.text,_.x=o,_.y=u,k&&(_.shadowBlur=c.textShadowBlur||n.textShadowBlur||0,_.shadowColor=c.textShadowColor||n.textShadowColor||"transparent",_.shadowOffsetX=c.textShadowOffsetX||n.textShadowOffsetX||0,_.shadowOffsetY=c.textShadowOffsetY||n.textShadowOffsetY||0),_.textAlign=s,_.textBaseline="middle",_.font=r.font||id,_.opacity=iy(c.opacity,n.opacity,1),RW(_,c),M&&(_.lineWidth=iy(c.lineWidth,n.lineWidth,x),_.lineDash=mt(c.lineDash,n.lineDash),_.lineDashOffset=n.lineDashOffset||0,_.stroke=M),C&&(_.fill=C);var O=r.contentWidth,R=r.contentHeight;g.setBoundingRect(new rr(U_(_.x,O,_.textAlign),gm(_.y,R,_.textBaseline),O,R))},e.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,c=r.borderWidth,d=r.borderColor,u=l&&l.image,f=l&&!u,p=r.borderRadius,v=this,g,_;if(f||r.lineHeight||c&&d){g=this._getOrCreateChild(Ur),g.useStyle(g.createStyle()),g.style.fill=null;var b=g.shape;b.x=a,b.y=i,b.width=o,b.height=s,b.r=p,g.dirtyShape()}if(f){var w=g.style;w.fill=l||null,w.fillOpacity=mt(r.fillOpacity,1)}else if(u){_=this._getOrCreateChild(Mo),_.onload=function(){v.dirtyStyle()};var x=_.style;x.image=l.image,x.x=a,x.y=i,x.width=o,x.height=s}if(c&&d){var w=g.style;w.lineWidth=c,w.stroke=d,w.strokeOpacity=mt(r.strokeOpacity,1),w.lineDash=r.borderDash,w.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(w.strokeFirst=!0,w.lineWidth*=2)}var C=(g||_).style;C.shadowBlur=r.shadowBlur||0,C.shadowColor=r.shadowColor||"transparent",C.shadowOffsetX=r.shadowOffsetX||0,C.shadowOffsetY=r.shadowOffsetY||0,C.opacity=iy(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return WK(r)&&(n=[r.fontStyle,r.fontWeight,jK(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&ss(n)||r.textFont||r.font},e}(P0),tEt={left:!0,right:1,center:1},rEt={top:1,bottom:1,middle:1},IW=["fontStyle","fontWeight","fontSize","fontFamily"];function jK(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?VN+"px":t+"px"}function RW(t,e){for(var r=0;r=0,i=!1;if(t instanceof fr){var o=HK(t),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Bp(s)||Bp(l)){n=n||{};var c=n.style||{};c.fill==="inherit"?(i=!0,n=De({},n),c=De({},c),c.fill=s):!Bp(c.fill)&&Bp(s)?(i=!0,n=De({},n),c=De({},c),c.fill=Dx(s)):!Bp(c.stroke)&&Bp(l)&&(i||(n=De({},n),c=De({},c)),c.stroke=Dx(l)),n.style=c}}if(n&&n.z2==null){i||(n=De({},n));var d=t.z2EmphasisLift;n.z2=t.z2+(d??iEt)}return n}function dEt(t,e,r){if(r&&r.z2==null){r=De({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??oEt)}return r}function fEt(t,e,r){var n=Yt(t.currentStates,e)>=0,a=t.style.opacity,i=n?null:cEt(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=De({},r),o=De({opacity:n?a:i.opacity*.1},o),r.style=o),r}function v$(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return uEt(this,t,e,r);if(t==="blur")return fEt(this,t,r);if(t==="select")return dEt(this,t,r)}return r}function hEt(t){t.stateProxy=v$;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=v$),r&&(r.stateProxy=v$)}function YW(t,e){!JK(t,e)&&!t.__highByOuter&&Nc(t,UK)}function VW(t,e){!JK(t,e)&&!t.__highByOuter&&Nc(t,YK)}function fh(t,e){t.__highByOuter|=1<<(e||0),Nc(t,UK)}function hh(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Nc(t,YK)}function GK(t){Nc(t,_5)}function y5(t){Nc(t,VK)}function qK(t){Nc(t,sEt)}function XK(t){Nc(t,lEt)}function JK(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ZK(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(a,i){var o=v5(i),s=a==="series",l=s?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(c){VK(c)}),s&&r.push(i)),o.isBlured=!1}),G(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,e)})}function OI(t,e,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(c,d){for(var u=0;u0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Ju(t,e,r){KK(t,!0),Nc(t,hEt),bEt(t,e,r)}function yEt(t){KK(t,!1)}function ph(t,e,r,n){n?yEt(t):Ju(t,e,r)}function bEt(t,e,r){var n=Wt(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var qW=["emphasis","blur","select"],wEt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ov(t,e,r,n){r=r||"itemStyle";for(var a=0;a1&&(o*=g$(v),s*=g$(v));var g=(a===i?-1:1)*g$((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,_=g*o*p/s,b=g*-s*f/o,w=(t+r)/2+pw(u)*_-hw(u)*b,x=(e+n)/2+hw(u)*_+pw(u)*b,C=KW([1,0],[(f-_)/o,(p-b)/s]),M=[(f-_)/o,(p-b)/s],k=[(-1*f-_)/o,(-1*p-b)/s],O=KW(M,k);if(II(M,k)<=-1&&(O=f_),II(M,k)>=1&&(O=0),O<0){var R=Math.round(O/f_*1e6)/1e6;O=f_*2+R%2*f_}d.addData(c,w,x,o,s,C,O,u,i)}var EEt=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,DEt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function MEt(t){var e=new Mc;if(!t)return e;var r=0,n=0,a=r,i=n,o,s=Mc.CMD,l=t.match(EEt);if(!l)return e;for(var c=0;cY*Y+V*V&&(R=$,L=N),{cx:R,cy:L,x0:-d,y0:-u,x1:R*(a/M-1),y1:L*(a/M-1)}}function NEt(t){var e;if(Re(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function FEt(t,e){var r,n=Y_(e.r,0),a=Y_(e.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=e.startAngle,c=e.endAngle;if(!(isNaN(l)||isNaN(c))){var d=e.cx,u=e.cy,f=!!e.clockwise,p=eH(c-l),v=p>_$&&p%_$;if(v>Ko&&(p=v),!(n>Ko))t.moveTo(d,u);else if(p>_$-Ko)t.moveTo(d+n*Wp(l),u+n*_f(l)),t.arc(d,u,n,l,c,!f),a>Ko&&(t.moveTo(d+a*Wp(c),u+a*_f(c)),t.arc(d,u,a,c,l,f));else{var g=void 0,_=void 0,b=void 0,w=void 0,x=void 0,C=void 0,M=void 0,k=void 0,O=void 0,R=void 0,L=void 0,$=void 0,N=void 0,W=void 0,j=void 0,Y=void 0,V=n*Wp(l),J=n*_f(l),ie=a*Wp(c),K=a*_f(c),Q=p>Ko;if(Q){var oe=e.cornerRadius;oe&&(r=NEt(oe),g=r[0],_=r[1],b=r[2],w=r[3]);var H=eH(n-a)/2;if(x=Qs(H,b),C=Qs(H,w),M=Qs(H,g),k=Qs(H,_),L=O=Y_(x,C),$=R=Y_(M,k),(O>Ko||R>Ko)&&(N=n*Wp(c),W=n*_f(c),j=a*Wp(l),Y=a*_f(l),pKo){var Le=Qs(b,L),Pe=Qs(w,L),we=mw(j,Y,V,J,n,Le,f),ye=mw(N,W,ie,K,n,Pe,f);t.moveTo(d+we.cx+we.x0,u+we.cy+we.y0),L0&&t.arc(d+we.cx,u+we.cy,Le,ha(we.y0,we.x0),ha(we.y1,we.x1),!f),t.arc(d,u,n,ha(we.cy+we.y1,we.cx+we.x1),ha(ye.cy+ye.y1,ye.cx+ye.x1),!f),Pe>0&&t.arc(d+ye.cx,u+ye.cy,Pe,ha(ye.y1,ye.x1),ha(ye.y0,ye.x0),!f))}else t.moveTo(d+V,u+J),t.arc(d,u,n,l,c,!f);if(!(a>Ko)||!Q)t.lineTo(d+ie,u+K);else if($>Ko){var Le=Qs(g,$),Pe=Qs(_,$),we=mw(ie,K,N,W,a,-Pe,f),ye=mw(V,J,j,Y,a,-Le,f);t.lineTo(d+we.cx+we.x0,u+we.cy+we.y0),$0&&t.arc(d+we.cx,u+we.cy,Pe,ha(we.y0,we.x0),ha(we.y1,we.x1),!f),t.arc(d,u,a,ha(we.cy+we.y1,we.cx+we.x1),ha(ye.cy+ye.y1,ye.cx+ye.x1),f),Le>0&&t.arc(d+ye.cx,u+ye.cy,Le,ha(ye.y1,ye.x1),ha(ye.y0,ye.x0),!f))}else t.lineTo(d+ie,u+K),t.arc(d,u,a,c,l,f)}t.closePath()}}}var zEt=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),Rh=function(t){ve(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new zEt},e.prototype.buildPath=function(r,n){FEt(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(fr);Rh.prototype.type="sector";var BEt=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),I0=function(t){ve(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new BEt},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},e}(fr);I0.prototype.type="ring";function jEt(t,e,r,n){var a=[],i=[],o=[],s=[],l,c,d,u;if(n){d=[1/0,1/0],u=[-1/0,-1/0];for(var f=0,p=t.length;f=2){if(n){var i=jEt(a,n,r,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=i[s*2],c=i[s*2+1],d=a[(s+1)%o];t.bezierCurveTo(l[0],l[1],c[0],c[1],d[0],d[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var s=1,u=a.length;sbf[1]){if(s=!1,i)return s;var d=Math.abs(bf[0]-yf[1]),u=Math.abs(yf[0]-bf[1]);Math.min(d,u)>a.len()&&(d0){var u=d.duration,f=d.delay,p=d.easing,v={duration:u,delay:f||0,easing:p,done:i,force:!!i||!!o,setToFinal:!c,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),i&&i()}function xn(t,e,r,n,a,i){x5("update",t,e,r,n,a,i)}function Ea(t,e,r,n,a,i){x5("enter",t,e,r,n,a,i)}function Bm(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function nH(t){return!t.isGroup}function eDt(t){return t.shape!=null}function dQ(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){nH(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return eDt(o)&&(s.shape=De({},o.shape)),s}var i=n(t);e.traverse(function(o){if(nH(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),xn(o,l,r,Wt(o).dataIndex)}}})}function E5(t,e){return Oe(t,function(r){var n=r[0];n=Nx(n,e.x),n=Fx(n,e.x+e.width);var a=r[1];return a=Nx(a,e.y),a=Fx(a,e.y+e.height),[n,a]})}function fQ(t,e){var r=Nx(t.x,e.x),n=Fx(t.x+t.width,e.x+e.width),a=Nx(t.y,e.y),i=Fx(t.y+t.height,e.y+e.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Mv(t,e,r){var n=De({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),Rt(a,r),new Mo(n)):DT(t.replace("path://",""),n,r,"center")}function tDt(t,e,r,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var _=y$(p,v,d,u)/f;return!(_<0||_>1)}function y$(t,e,r,n){return t*n-r*e}function rDt(t){return t<=1e-6&&t>=-1e-6}function F0(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,a=Ue(e)?{formatter:e}:e,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=t.formatterParamsExtra;l&&G(lr(l),function(d){od(s,d)||(s[d]=l[d],s.$vars.push(d))});var c=Wt(t.el);c.componentMainType=i,c.componentIndex=o,c.tooltipConfig={name:n,option:Rt({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function aH(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function z0(t,e){if(t)if(Re(t))for(var r=0;r=0&&s.push(l)}),s}}function j0(t,e){return Ot(Ot({},t,!0),e,!0)}const vDt={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},gDt={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Bx="ZH",D5="EN",jm=D5,RS={},M5={},yQ=xt.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||jm).toUpperCase();return t.indexOf(Bx)>-1?Bx:jm}():jm;function OT(t,e){t=t.toUpperCase(),M5[t]=new $r(e),RS[t]=e}function _Dt(t){if(Ue(t)){var e=RS[t.toUpperCase()]||{};return t===Bx||t===D5?St(e):Ot(St(e),St(RS[jm]),!1)}else return Ot(St(t),St(RS[jm]),!1)}function yDt(t){return M5[t]}function bDt(){return M5[jm]}OT(D5,vDt);OT(Bx,gDt);var O5=1e3,$5=O5*60,hy=$5*60,mo=hy*24,uH=mo*365,V_={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},_w="{yyyy}-{MM}-{dd}",dH={year:"{yyyy}",month:"{yyyy}-{MM}",day:_w,hour:_w+" "+V_.hour,minute:_w+" "+V_.minute,second:_w+" "+V_.second,millisecond:V_.none},S$=["year","month","day","hour","minute","second","millisecond"],bQ=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Na(t,e){return t+="","0000".substr(0,e-t.length)+t}function Wm(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function wDt(t){return t===Wm(t)}function SDt(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function W0(t,e,r,n){var a=xo(t),i=a[A5(r)](),o=a[Hm(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[$T(r)](),c=a["get"+(r?"UTC":"")+"Day"](),d=a[Xy(r)](),u=(d-1)%12+1,f=a[AT(r)](),p=a[PT(r)](),v=a[IT(r)](),g=d>=12?"pm":"am",_=g.toUpperCase(),b=n instanceof $r?n:yDt(n||yQ)||bDt(),w=b.getModel("time"),x=w.get("month"),C=w.get("monthAbbr"),M=w.get("dayOfWeek"),k=w.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Na(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,C[o-1]).replace(/{MM}/g,Na(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Na(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,M[c]).replace(/{ee}/g,k[c]).replace(/{e}/g,c+"").replace(/{HH}/g,Na(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,Na(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,Na(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Na(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Na(v,3)).replace(/{S}/g,v+"")}function xDt(t,e,r,n,a){var i=null;if(Ue(r))i=r;else if(wt(r))i=r(t.value,e,{level:t.level});else{var o=De({},V_);if(t.level>0)for(var s=0;s=0;--s)if(l[c]){i=l[c];break}i=i||o.none}if(Re(i)){var u=t.level==null?0:t.level>=0?t.level:i.length+t.level;u=Math.min(u,i.length-1),i=i[u]}}return W0(new Date(t.value),i,a,n)}function wQ(t,e){var r=xo(t),n=r[Hm(e)]()+1,a=r[$T(e)](),i=r[Xy(e)](),o=r[AT(e)](),s=r[PT(e)](),l=r[IT(e)](),c=l===0,d=c&&s===0,u=d&&o===0,f=u&&i===0,p=f&&a===1,v=p&&n===1;return v?"year":p?"month":f?"day":u?"hour":d?"minute":c?"second":"millisecond"}function fH(t,e,r){var n=Dr(t)?xo(t):t;switch(e=e||wQ(t,r),e){case"year":return n[A5(r)]();case"half-year":return n[Hm(r)]()>=6?1:0;case"quarter":return Math.floor((n[Hm(r)]()+1)/4);case"month":return n[Hm(r)]();case"day":return n[$T(r)]();case"half-day":return n[Xy(r)]()/24;case"hour":return n[Xy(r)]();case"minute":return n[AT(r)]();case"second":return n[PT(r)]();case"millisecond":return n[IT(r)]()}}function A5(t){return t?"getUTCFullYear":"getFullYear"}function Hm(t){return t?"getUTCMonth":"getMonth"}function $T(t){return t?"getUTCDate":"getDate"}function Xy(t){return t?"getUTCHours":"getHours"}function AT(t){return t?"getUTCMinutes":"getMinutes"}function PT(t){return t?"getUTCSeconds":"getSeconds"}function IT(t){return t?"getUTCMilliseconds":"getMilliseconds"}function CDt(t){return t?"setUTCFullYear":"setFullYear"}function SQ(t){return t?"setUTCMonth":"setMonth"}function xQ(t){return t?"setUTCDate":"setDate"}function CQ(t){return t?"setUTCHours":"setHours"}function TQ(t){return t?"setUTCMinutes":"setMinutes"}function kQ(t){return t?"setUTCSeconds":"setSeconds"}function EQ(t){return t?"setUTCMilliseconds":"setMilliseconds"}function TDt(t,e,r,n,a,i,o,s){var l=new vn({style:{text:t,font:e,align:r,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function P5(t){if(!CK(t))return Ue(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function I5(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var H0=KN;function FI(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(d){return d&&ss(d)?d:"-"}function i(d){return!!(d!=null&&!isNaN(d)&&isFinite(d))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?xo(t):t;if(isNaN(+l)){if(s)return"-"}else return W0(l,n,r)}if(e==="ordinal")return yx(t)?a(t):Dr(t)&&i(t)?t+"":"-";var c=Uy(t);return i(c)?P5(c):yx(t)?a(t):typeof t=="boolean"?t+"":"-"}var hH=["a","b","c","d","e","f","g"],x$=function(t,e){return"{"+t+(e??"")+"}"};function R5(t,e,r){Re(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function kDt(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd -yyyy`);var n=xo(e),a=r?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),l=n[a+"Hours"](),c=n[a+"Minutes"](),d=n[a+"Seconds"](),u=n[a+"Milliseconds"]();return t=t.replace("MM",Na(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Na(i%100+"",2)).replace("dd",Na(s,2)).replace("d",s).replace("hh",Na(l,2)).replace("h",l).replace("mm",Na(c,2)).replace("m",c).replace("ss",Na(d,2)).replace("s",d).replace("SSS",Na(u,3)),t}function EDt(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function mh(t,e){return e=e||"transparent",Ue(t)?t:ft(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function pH(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var LS=G,DDt=["left","right","top","bottom","width","height"],yw=[["width","left","right"],["height","top","bottom"]];function L5(t,e,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,c){var d=l.getBoundingRect(),u=e.childAt(c+1),f=u&&u.getBoundingRect(),p,v;if(t==="horizontal"){var g=d.width+(f?-f.x+d.x:0);p=i+g,p>n||l.newline?(i=0,p=g,o+=s+r,s=d.height):s=Math.max(s,d.height)}else{var _=d.height+(f?-f.y+d.y:0);v=o+_,v>a||l.newline?(i+=s+r,o=0,v=_,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),t==="horizontal"?i=p+r:o=v+r)})}var Um=L5;Ht(L5,"vertical");Ht(L5,"horizontal");function xl(t,e,r){r=H0(r||0);var n=e.width,a=e.height,i=Hr(t.left,n),o=Hr(t.top,a),s=Hr(t.right,n),l=Hr(t.bottom,a),c=Hr(t.width,n),d=Hr(t.height,a),u=r[2]+r[0],f=r[1]+r[3],p=t.aspect;switch(isNaN(c)&&(c=n-s-f-i),isNaN(d)&&(d=a-l-u-o),p!=null&&(isNaN(c)&&isNaN(d)&&(p>n/a?c=n*.8:d=a*.8),isNaN(c)&&(c=p*d),isNaN(d)&&(d=c/p)),isNaN(i)&&(i=n-s-c-f),isNaN(o)&&(o=a-l-d-u),t.left||t.right){case"center":i=n/2-c/2-r[3];break;case"right":i=n-c-f;break}switch(t.top||t.bottom){case"middle":case"center":o=a/2-d/2-r[0];break;case"bottom":o=a-d-u;break}i=i||0,o=o||0,isNaN(c)&&(c=n-f-i-(s||0)),isNaN(d)&&(d=a-u-o-(l||0));var v=new rr(i+r[3],o+r[0],c,d);return v.margin=r,v}function MDt(t,e,r,n,a,i){i=i||t,i.x=t.x,i.y=t.y;var o;if(o=t.getBoundingRect(),t.needLocalTransform()){var s=t.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=xl(Rt({width:o.width,height:o.height},e),r,n),c=l.x-o.x,d=l.y-o.y;return i.x+=c,i.y+=d,i===t&&t.markRedraw(),!0}function Jy(t){var e=t.layoutMode||t.constructor.layoutMode;return ft(e)?e:e?{type:e}:null}function lv(t,e,r){var n=r&&r.ignoreSize;!Re(n)&&(n=[n,n]);var a=o(yw[0],0),i=o(yw[1],1);c(yw[0],t,a),c(yw[1],t,i);function o(d,u){var f={},p=0,v={},g=0,_=2;if(LS(d,function(x){v[x]=t[x]}),LS(d,function(x){s(e,x)&&(f[x]=v[x]=e[x]),l(f,x)&&p++,l(v,x)&&g++}),n[u])return l(e,d[1])?v[d[2]]=null:l(e,d[2])&&(v[d[1]]=null),v;if(g===_||!p)return v;if(p>=_)return f;for(var b=0;b=0;l--)s=Ot(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return A0(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}($r);PK(Jt,$r);wT(Jt);pDt(Jt);mDt(Jt,ADt);function ADt(t){var e=[];return G(Jt.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=Oe(e,function(r){return dl(r).main}),t!=="dataset"&&Yt(e,"dataset")<=0&&e.unshift("dataset"),e}var MQ="";typeof navigator<"u"&&(MQ=navigator.platform||"");var Hp="rgba(0, 0, 0, 0.2)";const PDt={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Hp,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Hp,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Hp,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Hp,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Hp,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Hp,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:MQ.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var OQ=Ct(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),$o="original",hi="arrayRows",Al="objectRows",zc="keyedColumns",Zu="typedArray",$Q="unknown",vl="column",$v="row",Mi={Must:1,Might:2,Not:3},AQ=Mr();function IDt(t){AQ(t).datasetMap=Ct()}function RDt(t,e,r){var n={},a=PQ(e);if(!a||!t)return n;var i=[],o=[],s=e.ecModel,l=AQ(s).datasetMap,c=a.uid+"_"+r.seriesLayoutBy,d,u;t=t.slice(),G(t,function(g,_){var b=ft(g)?g:t[_]={name:g};b.type==="ordinal"&&d==null&&(d=_,u=v(b)),n[b.name]=[]});var f=l.get(c)||l.set(c,{categoryWayDim:u,valueWayDim:0});G(t,function(g,_){var b=g.name,w=v(g);if(d==null){var x=f.valueWayDim;p(n[b],x,w),p(o,x,w),f.valueWayDim+=w}else if(d===_)p(n[b],0,w),p(i,0,w);else{var x=f.categoryWayDim;p(n[b],x,w),p(o,x,w),f.categoryWayDim+=w}});function p(g,_,b){for(var w=0;we)return t[n];return t[r-1]}function jDt(t,e,r,n,a,i,o){i=i||t;var s=e(i),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(a))return c[a];var d=o==null||!n?r:BDt(n,o);if(d=d||r,!(!d||!d.length)){var u=d[l];return a&&(c[a]=u),s.paletteIdx=(l+1)%d.length,u}}function WDt(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var bw,h_,vH,gH="\0_ec_inner",HDt=1,F5=function(t){ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new $r(i),this._locale=new $r(o),this._optionManager=s},e.prototype.setOption=function(r,n,a){var i=bH(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(r,n){return this._resetOption(r,bH(n))},e.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?vH(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&G(l,function(c){a=!0,this._mergeOption(c,n)},this)}return a},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Ct(),c=n&&n.replaceMergeMainTypeMap;IDt(this),G(r,function(u,f){u!=null&&(Jt.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?St(u):Ot(a[f],u,!0))}),c&&c.each(function(u,f){Jt.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),Jt.topologicalTravel(s,Jt.getAllClassMainTypes(),d,this);function d(u){var f=zDt(this,u,ja(r[u])),p=i.get(u),v=p?c&&c.get(u)?"replaceMerge":"normalMerge":"replaceAll",g=qkt(p,f,v);r2t(g,u,Jt),a[u]=null,i.set(u,null),o.set(u,0);var _=[],b=[],w=0,x;G(g,function(C,M){var k=C.existing,O=C.newOption;if(!O)k&&(k.mergeOption({},this),k.optionUpdated({},!1));else{var R=u==="series",L=Jt.getClass(u,C.keyInfo.subType,!R);if(!L)return;if(u==="tooltip"){if(x)return;x=!0}if(k&&k.constructor===L)k.name=C.keyInfo.name,k.mergeOption(O,this),k.optionUpdated(O,!1);else{var $=De({componentIndex:M},C.keyInfo);k=new L(O,this,this,$),De(k,$),C.brandNew&&(k.__requireNewView=!0),k.init(O,this,this),k.optionUpdated(null,!0)}}k?(_.push(k.option),b.push(k),w++):(_.push(void 0),b.push(void 0))},this),a[u]=_,i.set(u,b),o.set(u,w),u==="series"&&bw(this)}this._seriesIndices||bw(this)},e.prototype.getOption=function(){var r=St(this.option);return G(r,function(n,a){if(Jt.hasClass(a)){for(var i=ja(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Yy(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[gH],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=e:r==="max"?t<=e:t===e}function KDt(t,e){return t.join(",")===e.join(",")}var Xo=G,Zy=ft,wH=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function T$(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=wH.length;r=0;_--){var b=t[_];if(s||(v=b.data.rawIndexOf(b.stackedByDimension,p)),v>=0){var w=b.data.getByRawIndex(b.stackResultDimension,v);if(l==="all"||l==="positive"&&w>0||l==="negative"&&w<0||l==="samesign"&&f>=0&&w>0||l==="samesign"&&f<=0&&w<0){f=Wkt(f,w),g=w;break}}}return n[0]=f,n[1]=g,n})})}var LT=function(){function t(e){this.data=e.data||(e.sourceFormat===zc?{}:[]),this.sourceFormat=e.sourceFormat||$Q,this.seriesLayoutBy=e.seriesLayoutBy||vl,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;ng&&(g=x)}p[0]=v,p[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};DH=(e={},e[hi+"_"+vl]={pure:!0,appendData:i},e[hi+"_"+$v]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Al]={pure:!0,appendData:i},e[zc]={pure:!0,appendData:function(o){var s=this._data;G(o,function(l,c){for(var d=s[c]||(s[c]=[]),u=0;u<(l||[]).length;u++)d.push(l[u])})}},e[$o]={appendData:i},e[Zu]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[_])}return g!=null?g+"":""})}},t.prototype.getRawValue=function(e,r){return cv(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function AH(t){var e,r;return ft(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function py(t){return new mMt(t)}var mMt=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=d(this._modBy),s=this._modDataCount||0,l=d(e&&e.modBy),c=e&&e.modDataCount||0;(o!==l||s!==c)&&(i="reset");function d(w){return!(w>=1)&&(w=1),w}var u;(this._dirty||i==="reset")&&(this._dirty=!1,u=this._doReset(n)),this._modBy=l,this._modDataCount=c;var f=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,v=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!n&&(u||p1&&n>0?s:o}};return i;function o(){return e=t?null:la?-this._resultLT:0},t}(),gMt=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Ku(e,r)},t}();function _Mt(t,e){var r=new gMt,n=t.data,a=r.sourceFormat=t.sourceFormat,i=t.startIndex,o="";t.seriesLayoutBy!==vl&&ii(o);var s=[],l={},c=t.dimensionsDefine;if(c)G(c,function(g,_){var b=g.name,w={index:_,name:b,displayName:g.displayName};if(s.push(w),b!=null){var x="";od(l,b)&&ii(x),l[b]=w}});else for(var d=0;d65535?kMt:EMt}function Yp(){return[1/0,-1/0]}function DMt(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function RH(t,e,r,n,a){var i=GQ[r||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new i(n),c=0;c_[1]&&(_[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,c=Oe(o,function(w){return w.property}),d=0;db[1]&&(b[1]=_)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r=0&&r=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&ne)i=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,r,n){var a=this._chunks,i=a[e],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,c=0,d=0,u=this.count();d=0&&l<0)&&(s=v,l=p,c=0),p===l&&(o[c++]=d))}return o.length=c,o},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i=u&&w<=f||isNaN(w))&&(l[c++]=g),g++}v=!0}else if(i===2){for(var _=p[a[0]],x=p[a[1]],C=e[a[1]][0],M=e[a[1]][1],b=0;b=u&&w<=f||isNaN(w))&&(k>=C&&k<=M||isNaN(k))&&(l[c++]=g),g++}v=!0}}if(!v)if(i===1)for(var b=0;b=u&&w<=f||isNaN(w))&&(l[c++]=O)}else for(var b=0;be[$][1])&&(R=!1)}R&&(l[c++]=r.getRawIndex(b))}return cb[1]&&(b[1]=_)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/r),c=this.getRawIndex(0),d,u,f,p=new(Up(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));p[s++]=c;for(var v=1;vd&&(d=u,f=C)}N>0&&Ns&&(g=s-d);for(var _=0;_v&&(v=w,p=d+_)}var x=this.getRawIndex(u),C=this.getRawIndex(p);ud-v&&(l=d-v,s.length=l);for(var g=0;gu[1]&&(u[1]=b),f[p++]=w}return i._count=p,i._indices=f,i._updateGetRawIdx(),i},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();il&&(l=u)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,a,i){return Ku(r[i],this._dimensions[i])}D$={arrayRows:e,objectRows:function(r,n,a,i){return Ku(r[n],this._dimensions[i])},keyedColumns:e,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return Ku(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),t}(),qQ=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(ww(e)){var o=e,s=void 0,l=void 0,c=void 0;if(n){var d=r[0];d.prepareSource(),c=d.getSource(),s=c.data,l=c.sourceFormat,i=[d._getVersionSign()]}else s=o.get("data",!0),l=Ha(s)?Zu:$o,i=[];var u=this._getSourceMetaRawOption()||{},f=c&&c.metaRawOption||{},p=mt(u.seriesLayoutBy,f.seriesLayoutBy)||null,v=mt(u.sourceHeader,f.sourceHeader),g=mt(u.dimensions,f.dimensions),_=p!==f.seriesLayoutBy||!!v!=!!f.sourceHeader||g;a=_?[BI(s,{seriesLayoutBy:p,sourceHeader:v,dimensions:g},l)]:[]}else{var b=e;if(n){var w=this._applyTransform(r);a=w.sourceList,i=w.upstreamSignList}else{var x=b.get("source",!0);a=[BI(x,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&NH(i)}var o,s=[],l=[];return G(e,function(c){c.prepareSource();var d=c.getSource(a||0),u="";a!=null&&!d&&NH(u),s.push(d),l.push(c._getVersionSign())}),n?o=CMt(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[lMt(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!t.noHeader;return G(t.blocks,function(a){var i=KQ(a);i>=e&&(e=i+ +(n&&(!i||WI(a)&&!a.noHeader)))}),e}return 0}function AMt(t,e,r,n){var a=e.noHeader,i=IMt(KQ(e)),o=[],s=e.blocks||[];Bi(!s||Re(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(od(c,l)){var d=new vMt(c[l],null);s.sort(function(g,_){return d.evaluate(g.sortParam,_.sortParam)})}else l==="seriesDesc"&&s.reverse()}G(s,function(g,_){var b=e.valueFormatter,w=ZQ(g)(b?De(De({},t),{valueFormatter:b}):t,g,_>0?i.html:0,n);w!=null&&o.push(w)});var u=t.renderMode==="richText"?o.join(i.richText):HI(n,o.join(""),a?r:i.html);if(a)return u;var f=FI(e.header,"ordinal",t.useUTC),p=JQ(n,t.renderMode).nameStyle,v=XQ(n);return t.renderMode==="richText"?QQ(t,f,p)+i.richText+u:HI(n,'
'+xa(f)+"
"+u,r)}function PMt(t,e,r,n){var a=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,c=t.useUTC,d=e.valueFormatter||t.valueFormatter||function(C){return C=Re(C)?C:[C],Oe(C,function(M,k){return FI(M,Re(p)?p[k]:p,c)})};if(!(i&&o)){var u=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=i?"":FI(l,"ordinal",c),p=e.valueType,v=o?[]:d(e.value,e.dataIndex),g=!s||!i,_=!s&&i,b=JQ(n,a),w=b.nameStyle,x=b.valueStyle;return a==="richText"?(s?"":u)+(i?"":QQ(t,f,w))+(o?"":NMt(t,v,g,_,x)):HI(n,(s?"":u)+(i?"":RMt(f,!s,w))+(o?"":LMt(v,g,_,x)),r)}}function FH(t,e,r,n,a,i){if(t){var o=ZQ(t),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,i)}}function IMt(t){return{html:OMt[t],richText:$Mt[t]}}function HI(t,e,r){var n='
',a="margin: "+r+"px 0 0",i=XQ(t);return'
'+e+n+"
"}function RMt(t,e,r){var n=e?"margin-left:2px":"";return''+xa(t)+""}function LMt(t,e,r,n){var a=r?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return t=Re(t)?t:[t],''+Oe(t,function(o){return xa(o)}).join("  ")+""}function QQ(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function NMt(t,e,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Re(e)?e.join(" "):e,i)}function eee(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return mh(n)}function tee(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var M$=function(){function t(){this.richTextStyles={},this._nextStyleNameId=TK()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var a=n==="richText"?this._generateStyleName():null,i=DQ({color:r,type:e,renderMode:n,markerId:a});return Ue(i)?i:(this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};Re(r)?G(r,function(i){return De(n,i)}):De(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},t}();function FMt(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(r),l=Re(s),c=eee(e,r),d,u,f,p;if(o>1||l&&!o){var v=zMt(s,e,r,i,c);d=v.inlineValues,u=v.inlineValueTypes,f=v.blocks,p=v.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);p=d=cv(a,r,i[0]),u=g.type}else p=d=l?s[0]:s;var _=f5(e),b=_&&e.name||"",w=a.getName(r),x=n?b:w;return Cl("section",{header:b,noHeader:n||!_,sortParam:p,blocks:[Cl("nameValue",{markerType:"item",markerColor:c,name:x,noName:!ss(x),value:d,valueType:u,dataIndex:r})].concat(f||[])})}function zMt(t,e,r,n,a){var i=e.getData(),o=wl(t,function(u,f,p){var v=i.getDimensionInfo(p);return u=u||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],c=[];n.length?G(n,function(u){d(cv(i,r,u),u)}):G(t,d);function d(u,f){var p=i.getDimensionInfo(f);!p||p.otherDims.tooltip===!1||(o?c.push(Cl("nameValue",{markerType:"subItem",markerColor:a,name:p.displayName,value:u,valueType:p.type})):(s.push(u),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:c}}var xu=Mr();function Sw(t,e){return t.getName(e)||t.getId(e)}var BMt="__universalTransitionEnabled",Da=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=py({count:WMt,reset:HMt}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=xu(this).sourceManager=new qQ(this);i.prepareSource();var o=this.getInitialData(r,a);BH(o,this),this.dataTask.context.data=o,xu(this).dataBeforeProcessed=o,zH(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=Jy(this),i=a?U0(r):{},o=this.subType;Jt.hasClass(o)&&(o+="Series"),Ot(r,n.getTheme().get(this.subType)),Ot(r,this.getDefaultOption()),kI(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&lv(r,i,a)},e.prototype.mergeOption=function(r,n){r=Ot(this.option,r,!0),this.fillDataTextStyle(r.data);var a=Jy(this);a&&lv(this.option,r,a);var i=xu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);BH(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,xu(this).dataBeforeProcessed=o,zH(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Ha(r))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=N5.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Sw(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[BMt])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ft(o.selectedMap)||(o.selectedMap={});for(var c=o.selectedMap,d=0;d0&&this._innerSelect(r,n)}},e.registerClass=function(r){return Jt.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(Jt);Ua(Da,NT);Ua(Da,N5);PK(Da,Jt);function zH(t){var e=t.name;f5(t)||(t.name=jMt(t)||e)}function jMt(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return G(r,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function WMt(t){return t.model.getRawData().count()}function HMt(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),UMt}function UMt(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function BH(t,e){G(FZ(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ht(YMt,e))})}function YMt(t,e){var r=UI(t);return r&&r.setOutputEnd((e||this).count()),e}function UI(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}var Cn=function(){function t(){this.group=new Tr,this.uid=B0("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){},t.prototype.updateLayout=function(e,r,n,a){},t.prototype.updateVisual=function(e,r,n,a){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();p5(Cn);wT(Cn);function W5(){var t=Mr();return function(e){var r=t(e),n=e.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var ree=Mr(),VMt=W5(),ia=function(){function t(){this.group=new Tr,this.uid=B0("viewChart"),this.renderTask=py({plan:GMt,reset:qMt}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.highlight=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&WH(i,a,"emphasis")},t.prototype.downplay=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&WH(i,a,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateLayout=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateVisual=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.eachRendered=function(e){z0(this.group,e)},t.markUpdateMethod=function(e,r){ree(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function jH(t,e,r){t&&AI(t)&&(e==="emphasis"?fh:hh)(t,r)}function WH(t,e,r){var n=dh(t,e),a=e&&e.highlightKey!=null?SEt(e.highlightKey):null;n!=null?G(ja(n),function(i){jH(t.getItemGraphicEl(i),r,a)}):t.eachItemGraphicEl(function(i){jH(i,r,a)})}p5(ia);wT(ia);function GMt(t){return VMt(t.model)}function qMt(t){var e=t.model,r=t.ecModel,n=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=a&&ree(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,a),XMt[l]}var XMt={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},jx="\0__throttleOriginMethod",HH="\0__throttleRate",UH="\0__throttleType";function Y0(t,e,r){var n,a=0,i=0,o=null,s,l,c,d;e=e||0;function u(){i=new Date().getTime(),o=null,t.apply(l,c||[])}var f=function(){for(var p=[],v=0;v=0?u():o=setTimeout(u,-s),a=n};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(p){d=p},f}function zT(t,e,r,n){var a=t[e];if(a){var i=a[jx]||a,o=a[UH],s=a[HH];if(s!==r||o!==n){if(r==null||!n)return t[e]=i;a=t[e]=Y0(i,r,n==="debounce"),a[jx]=i,a[UH]=n,a[HH]=r}return a}}function Wx(t,e){var r=t[e];r&&r[jx]&&(r.clear&&r.clear(),t[e]=r[jx])}var YH=Mr(),VH={itemStyle:Vy(_Q,!0),lineStyle:Vy(gQ,!0)},JMt={lineStyle:"stroke",itemStyle:"fill"};function nee(t,e){var r=t.visualStyleMapper||VH[e];return r||(console.warn("Unknown style type '"+e+"'."),VH.itemStyle)}function aee(t,e){var r=t.visualDrawType||JMt[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var ZMt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=t.getModel(n),i=nee(t,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=aee(t,n),c=o[l],d=wt(c)?c:null,u=o.fill==="auto"||o.stroke==="auto";if(!o[l]||d||u){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=f,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||wt(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||wt(o.stroke)?f:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&d)return r.setVisual("colorFromPalette",!1),{dataEach:function(p,v){var g=t.getDataParams(v),_=De({},o);_[l]=d(g),p.setItemVisual(v,"style",_)}}}},m_=new $r,KMt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=nee(t,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){m_.option=l[n];var c=a(m_),d=o.ensureUniqueItemVisual(s,"style");De(d,c),m_.option.decal&&(o.setItemVisual(s,"decal",m_.option.decal),m_.option.decal.dirty=!0),i in c&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},QMt={performRawSeries:!0,overallReset:function(t){var e=Ct();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),YH(r).scope=i}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=YH(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=aee(r,s);i.each(function(c){var d=i.getRawIndex(c);a[d]=c}),n.each(function(c){var d=a[c],u=i.getItemVisual(d,"colorFromPalette");if(u){var f=i.ensureUniqueItemVisual(d,"style"),p=n.getName(c)||c+"",v=n.count();f[l]=r.getColorFromPalette(p,o,v)}})}})}},xw=Math.PI;function eOt(t,e){e=e||{},Rt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Tr,n=new Ur({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var a=new vn({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Ur({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(i);var o;return e.showSpinner&&(o=new L0({shape:{startAngle:-xw/2,endAngle:-xw/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:xw*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:xw*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,c=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),d=t.getHeight()/2;e.showSpinner&&o.setShape({cx:c,cy:d}),i.setShape({x:c-l,y:d-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var iee=function(){function t(e,r,n,a){this._stageTaskMap=Ct(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=Ct();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;G(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Bi(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},t.prototype.prepareView=function(e,r,n,a){var i=e.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(r,i)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,a){a=a||{};var i=!1,o=this;G(e,function(l,c){if(!(a.visualType&&a.visualType!==l.visualType)){var d=o._stageTaskMap.get(l.uid),u=d.seriesTaskMap,f=d.overallTask;if(f){var p,v=f.agentStubMap;v.each(function(_){s(a,_)&&(_.dirty(),p=!0)}),p&&f.dirty(),o.updatePayload(f,n);var g=o.getPerformArgs(f,a.block);v.each(function(_){_.perform(g)}),f.perform(g)&&(i=!0)}else u&&u.each(function(_,b){s(a,_)&&_.dirty();var w=o.getPerformArgs(_,a.block);w.skip=!l.performRawSeries&&r.isSeriesFiltered(_.context.model),o.updatePayload(_,n),_.perform(w)&&(i=!0)})}});function s(l,c){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(c.__pipeline.id))}this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Ct(),l=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(d):l?n.eachRawSeriesByType(l,d):c&&c(n,a).each(d);function d(u){var f=u.uid,p=s.set(f,o&&o.get(f)||py({plan:iOt,reset:oOt,count:lOt}));p.context={model:u,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(u,p)}},t.prototype._createOverallStageTask=function(e,r,n,a){var i=this,o=r.overallTask=r.overallTask||py({reset:tOt});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Ct(),c=e.seriesType,d=e.getTargetSeries,u=!0,f=!1,p="";Bi(!e.createOnAllSeries,p),c?n.eachRawSeriesByType(c,v):d?d(n,a).each(v):(u=!1,G(n.getSeries(),v));function v(g){var _=g.uid,b=l.set(_,s&&s.get(_)||(f=!0,py({reset:rOt,onDirty:aOt})));b.context={model:g,overallProgress:u},b.agent=o,b.__block=u,i._pipe(g,b)}f&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},t.wrapStageHandler=function(e,r){return wt(e)&&(e={overallReset:e,seriesType:cOt(e)}),e.uid=B0("stageHandler"),r&&(e.visualType=r),e},t}();function tOt(t){t.overallReset(t.ecModel,t.api,t.payload)}function rOt(t){return t.overallProgress&&nOt}function nOt(){this.agent.dirty(),this.getDownstream().dirty()}function aOt(){this.agent&&this.agent.dirty()}function iOt(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function oOt(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ja(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Oe(e,function(r,n){return oee(n)}):sOt}var sOt=oee(0);function oee(t){return function(e,r){var n=r.data,a=r.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i0&&p===c.length-f.length){var v=c.slice(0,p);v!=="data"&&(r.mainType=v,r[f.toLowerCase()]=l,d=!0)}}s.hasOwnProperty(c)&&(n[c]=l,d=!0),d||(a[c]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,c=r.dataQuery;return d(l,o,"mainType")&&d(l,o,"subType")&&d(l,o,"index","componentIndex")&&d(l,o,"name")&&d(l,o,"id")&&d(c,i,"name")&&d(c,i,"dataIndex")&&d(c,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,a,i));function d(u,f,p,v){return u[p]==null||f[v||p]===u[p]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),YI=["symbol","symbolSize","symbolRotate","symbolOffset"],JH=YI.concat(["symbolKeepAspect"]),fOt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o=0&&Hf(l)?l:.5;var c=t.createRadialGradient(o,s,0,o,s,l);return c}function VI(t,e,r){for(var n=e.type==="radial"?DOt(t,e,r):EOt(t,e,r),a=e.colorStops,i=0;i0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Dr(t)?[t]:Re(t)?t:null}function U5(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&OOt(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(r=Oe(r,function(i){return i/a}),n/=a)}return[r,n]}var $Ot=new Mc(!0);function Yx(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function ZH(t){return typeof t=="string"&&t!=="none"}function Vx(t){var e=t.fill;return e!=null&&e!=="none"}function KH(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function QH(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function GI(t,e,r){var n=m5(e.image,e.__image,r);if(ST(n)){var a=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*oy),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function AOt(t,e,r,n){var a,i=Yx(r),o=Vx(r),s=r.strokePercent,l=s<1,c=!e.path;(!e.silent||l)&&c&&e.createPathProxy();var d=e.path||$Ot,u=e.__dirty;if(!n){var f=r.fill,p=r.stroke,v=o&&!!f.colorStops,g=i&&!!p.colorStops,_=o&&!!f.image,b=i&&!!p.image,w=void 0,x=void 0,C=void 0,M=void 0,k=void 0;(v||g)&&(k=e.getBoundingRect()),v&&(w=u?VI(t,f,k):e.__canvasFillGradient,e.__canvasFillGradient=w),g&&(x=u?VI(t,p,k):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),_&&(C=u||!e.__canvasFillPattern?GI(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=C),b&&(M=u||!e.__canvasStrokePattern?GI(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=C),v?t.fillStyle=w:_&&(C?t.fillStyle=C:o=!1),g?t.strokeStyle=x:b&&(M?t.strokeStyle=M:i=!1)}var O=e.getGlobalScale();d.setScale(O[0],O[1],e.segmentIgnoreThreshold);var R,L;t.setLineDash&&r.lineDash&&(a=U5(e),R=a[0],L=a[1]);var $=!0;(c||u&vm)&&(d.setDPR(t.dpr),l?d.setContext(null):(d.setContext(t),$=!1),d.reset(),e.buildPath(d,e.shape,n),d.toStatic(),e.pathUpdated()),$&&d.rebuildPath(t,l?s:1),R&&(t.setLineDash(R),t.lineDashOffset=L),n||(r.strokeFirst?(i&&QH(t,r),o&&KH(t,r)):(o&&KH(t,r),i&&QH(t,r))),R&&t.setLineDash([])}function POt(t,e,r){var n=e.__image=m5(r.image,e.__image,e,e.onload);if(!(!n||!ST(n))){var a=r.x||0,i=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var c=r.sx||0,d=r.sy||0;t.drawImage(n,c,d,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var c=r.sx,d=r.sy,u=o-c,f=s-d;t.drawImage(n,c,d,u,f,a,i,o,s)}else t.drawImage(n,a,i,o,s)}}function IOt(t,e,r){var n,a=r.text;if(a!=null&&(a+=""),a){t.font=r.font||id,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var i=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=U5(e),i=n[0],o=n[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),r.strokeFirst?(Yx(r)&&t.strokeText(a,r.x,r.y),Vx(r)&&t.fillText(a,r.x,r.y)):(Vx(r)&&t.fillText(a,r.x,r.y),Yx(r)&&t.strokeText(a,r.x,r.y)),i&&t.setLineDash([])}}var eU=["shadowBlur","shadowOffsetX","shadowOffsetY"],tU=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function uee(t,e,r,n,a){var i=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){oi(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Zf.opacity:o}(n||e.blend!==r.blend)&&(i||(oi(t,a),i=!0),t.globalCompositeOperation=e.blend||Zf.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,a){if(!this[pa]){if(this._disposed){this.id;return}var i,o,s;if(ft(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[pa]=!0,!this._model||n){var l=new qDt(this._api),c=this._theme,d=this._model=new F5;d.scheduler=this._scheduler,d.ssr=this._ssr,d.init(null,null,null,c,this._locale,l)}this._model.setOption(r,{replaceMerge:o},JI);var u={seriesTransition:s,optionChanged:!0};if(a)this[ei]={silent:i,updateParams:u},this[pa]=!1,this.getZr().wakeUp();else{try{Gp(this),Cu.update.call(this,null,u)}catch(f){throw this[ei]=null,this[pa]=!1,f}this._ssr||this._zr.flush(),this[ei]=null,this[pa]=!1,v_.call(this,i),g_.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||xt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(xt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return G(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;G(n,function(l){a.eachComponent({mainType:l},function(c){var d=o._componentsMap[c.__viewId];d.group.ignore||(i.push(d),d.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return G(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Jx[a]){var l=s,c=s,d=-s,u=-s,f=[],p=r&&r.pixelRatio||this.getDevicePixelRatio();G(Qf,function(x,C){if(x.group===a){var M=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(St(r)),k=x.getDom().getBoundingClientRect();l=i(k.left,l),c=i(k.top,c),d=o(k.right,d),u=o(k.bottom,u),f.push({dom:M,left:k.left,top:k.top})}}),l*=p,c*=p,d*=p,u*=p;var v=d-l,g=u-c,_=Ec.createCanvas(),b=CI(_,{renderer:n?"svg":"canvas"});if(b.resize({width:v,height:g}),n){var w="";return G(f,function(x){var C=x.left-l,M=x.top-c;w+=''+x.dom+""}),b.painter.getSvgRoot().innerHTML=w,r.connectedBackgroundColor&&b.painter.setBackgroundColor(r.connectedBackgroundColor),b.refreshImmediately(),b.painter.toDataURL()}else return r.connectedBackgroundColor&&b.add(new Ur({shape:{x:0,y:0,width:v,height:g},style:{fill:r.connectedBackgroundColor}})),G(f,function(x){var C=new Mo({style:{x:x.left*p-l,y:x.top*p-c,image:x.dom}});b.add(C)}),b.refreshImmediately(),_.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return I$(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return I$(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=cy(a,r);return G(o,function(s,l){l.indexOf("Models")>=0&&G(s,function(c){var d=c.coordinateSystem;if(d&&d.containPoint)i=i||!!d.containPoint(n);else if(l==="seriesModels"){var u=this._chartsMap[c.__viewId];u&&u.containPoint&&(i=i||u.containPoint(n,c))}},this)},this),!!i},e.prototype.getVisual=function(r,n){var a=this._model,i=cy(a,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?pOt(s,l,n):H5(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;G(n$t,function(n){var a=function(i){var o=r.getModel(),s=i.target,l,c=n==="globalout";if(c?l={}:s&&q_(s,function(v){var g=Wt(v);if(g&&g.dataIndex!=null){var _=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=_&&_.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=De({},g.eventData),!0},!0),l){var d=l.componentType,u=l.componentIndex;(d==="markLine"||d==="markPoint"||d==="markArea")&&(d="series",u=l.seriesIndex);var f=d&&u!=null&&o.getComponent(d,u),p=f&&r[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:p},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),G(my,function(n,a){r._messageCenter.on(a,function(i){this.trigger(a,i)},r)}),G(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),mOt(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&OK(this.getDom(),q5,"");var n=this,a=n._api,i=n._model;G(n._componentsViews,function(o){o.dispose(i,a)}),G(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Qf[n.id]},e.prototype.resize=function(r){if(!this[pa]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[ei]&&(i==null&&(i=this[ei].silent),a=!0,this[ei]=null),this[pa]=!0;try{a&&Gp(this),Cu.update.call(this,{type:"resize",animation:De({duration:0},r&&r.animation)})}catch(o){throw this[pa]=!1,o}this[pa]=!1,v_.call(this,i),g_.call(this,i)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(ft(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!ZI[r]){var a=ZI[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=De({},r);return n.type=my[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(ft(n)||(n={silent:!!n}),!!qx[r.type]&&this._model){if(this[pa]){this._pendingActions.push(r);return}var a=n.silent;L$.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&xt.browser.weChat&&this._throttledZrFlush(),v_.call(this,a),g_.call(this,a)}},e.prototype.updateLabelLayout=function(){es.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Gp=function(u){var f=u._scheduler;f.restorePipelines(u._model),f.prepareStageTasks(),P$(u,!0),P$(u,!1),f.plan()},P$=function(u,f){for(var p=u._model,v=u._scheduler,g=f?u._componentsViews:u._chartsViews,_=f?u._componentsMap:u._chartsMap,b=u._zr,w=u._api,x=0;xf.get("hoverLayerThreshold")&&!xt.node&&!xt.worker&&f.eachSeries(function(_){if(!_.preventUsingHoverLayer){var b=u._chartsMap[_.__viewId];b.__alive&&b.eachRendered(function(w){w.states.emphasis&&(w.states.emphasis.hoverLayer=!0)})}})}function o(u,f){var p=u.get("blendMode")||null;f.eachRendered(function(v){v.isGroup||(v.style.blend=p)})}function s(u,f){if(!u.preventAutoZ){var p=u.get("z")||0,v=u.get("zlevel")||0;f.eachRendered(function(g){return l(g,p,v,-1/0),!0})}}function l(u,f,p,v){var g=u.getTextContent(),_=u.getTextGuideLine(),b=u.isGroup;if(b)for(var w=u.childrenRef(),x=0;x0?{duration:g,delay:p.get("delay"),easing:p.get("easing")}:null;f.eachRendered(function(b){if(b.states&&b.states.emphasis){if(Bm(b))return;if(b instanceof fr&&xEt(b),b.__dirty){var w=b.prevStates;w&&b.useStates(w)}if(v){b.stateTransition=_;var x=b.getTextContent(),C=b.getTextGuideLine();x&&(x.stateTransition=_),C&&(C.stateTransition=_)}b.__dirty&&a(b)}})}pU=function(u){return new(function(f){ve(p,f);function p(){return f!==null&&f.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return u._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return u._model.getComponent(g.mainType,g.index);v=v.parent}},p.prototype.enterEmphasis=function(v,g){fh(v,g),Qi(u)},p.prototype.leaveEmphasis=function(v,g){hh(v,g),Qi(u)},p.prototype.enterBlur=function(v){GK(v),Qi(u)},p.prototype.leaveBlur=function(v){y5(v),Qi(u)},p.prototype.enterSelect=function(v){qK(v),Qi(u)},p.prototype.leaveSelect=function(v){XK(v),Qi(u)},p.prototype.getModel=function(){return u.getModel()},p.prototype.getViewOfComponentModel=function(v){return u.getViewOfComponentModel(v)},p.prototype.getViewOfSeriesModel=function(v){return u.getViewOfSeriesModel(v)},p}(RQ))(u)},Eee=function(u){function f(p,v){for(var g=0;g=0)){vU.push(r);var i=iee.wrapStageHandler(r,a);i.__prio=e,i.__raw=r,t.push(i)}}function VT(t,e){ZI[t]=e}function Iee(t){GN({createCanvas:t})}function r3(t,e,r){var n=vee("registerMap");n&&n(t,e,r)}function Ree(t){var e=vee("getMap");return e&&e(t)}var n3=xMt;Bc(Y5,ZMt);Bc(jT,KMt);Bc(jT,QMt);Bc(Y5,fOt);Bc(jT,hOt);Bc(wee,WOt);UT(NQ);YT(VOt,oMt);VT("default",eOt);Ao({type:Kf,event:Kf,update:Kf},aa);Ao({type:PS,event:PS,update:PS},aa);Ao({type:uy,event:uy,update:uy},aa);Ao({type:IS,event:IS,update:IS},aa);Ao({type:dy,event:dy,update:dy},aa);HT("light",uOt);HT("dark",cee);var Lee={};function __(t){return t==null?0:t.length||1}function gU(t){return t}var a3=function(){function t(e,r,n,a,i,o){this._old=e,this._new=r,this._oldKeyGetter=n||gU,this._newKeyGetter=a||gU,this.context=i,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},a=new Array(e.length),i=new Array(r.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o1){var d=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(d,o)}else c===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(d,c),a[l]=null;else if(u===1&&f>1)this._updateOneToMany&&this._updateOneToMany(d,c),a[l]=null;else if(u===1&&f===1)this._update&&this._update(d,c),a[l]=null;else if(u>1&&f>1)this._updateManyToMany&&this._updateManyToMany(d,c),a[l]=null;else if(u>1)for(var p=0;p1)for(var s=0;s30}var y_=ft,Tu=Oe,f$t=typeof Int32Array>"u"?Array:Int32Array,h$t="e\0\0",_U=-1,p$t=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],m$t=["_approximateExtent"],yU,Dw,b_,w_,z$,S_,B$,gl=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;Fee(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,c={},d=0;d=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===$o;if(l&&!a.pure)for(var c=[],d=e;d0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[r];return i==null&&(i=this.getVisual(r),Re(i)?i=i.slice():y_(i)&&(i=De({},i)),a[r]=i),i},t.prototype.setItemVisual=function(e,r,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,y_(r)?De(a,r):a[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){y_(e)?De(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?De(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;aEt(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){G(this._graphicEls,function(n,a){n&&e&&e.call(r,n,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Tu(this.dimensions,this._getDimInfo,this),this.hostModel)),z$(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];wt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(hT(arguments)))})},t.internalField=function(){yU=function(e){var r=e._invertedIndicesMap;G(r,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=r[a]=new f$t(o.categories.length);for(var l=0;l1&&(l+="__ec__"+d),a[r]=l}}}(),t}();function v$t(t,e){return i3(t,e).dimensions}function i3(t,e){z5(t)||(t=FQ(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],a=Ct(),i=[],o=_$t(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&jee(o),l=n===t.dimensionsDefine,c=l?Bee(t):zee(n),d=e.encodeDefine;!d&&e.encodeDefaulter&&(d=e.encodeDefaulter(t,o));for(var u=Ct(d),f=new VQ(o),p=0;p0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function _$t(t,e,r,n){var a=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return G(e,function(i){var o;ft(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function y$t(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var b$t=function(){function t(e){this.coordSysDims=[],this.axisMap=Ct(),this.categoryAxisMap=Ct(),this.coordSysName=e}return t}();function w$t(t){var e=t.get("coordinateSystem"),r=new b$t(e),n=S$t[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var S$t={cartesian2d:function(t,e,r,n){var a=t.getReferringComponents("xAxis",za).models[0],i=t.getReferringComponents("yAxis",za).models[0];e.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),qp(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),qp(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var a=t.getReferringComponents("singleAxis",za).models[0];e.coordSysDims=["single"],r.set("single",a),qp(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var a=t.getReferringComponents("polar",za).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),qp(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),qp(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var a=t.ecModel,i=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();G(i.parallelAxisIndex,function(s,l){var c=a.getComponent("parallelAxis",s),d=o[l];r.set(d,c),qp(c)&&(n.set(d,c),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function qp(t){return t.get("type")==="category"}function Wee(t,e,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;x$t(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),c,d,u,f;if(G(i,function(w,x){Ue(w)&&(i[x]=w={name:w}),l&&!w.isExtraCoord&&(!n&&!c&&w.ordinalMeta&&(c=w),!d&&w.type!=="ordinal"&&w.type!=="time"&&(!a||a===w.coordDim)&&(d=w))}),d&&!n&&!c&&(n=!0),d){u="__\0ecstackresult_"+t.id,f="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var p=d.coordDim,v=d.type,g=0;G(i,function(w){w.coordDim===p&&g++});var _={name:u,coordDim:p,coordDimIndex:g,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},b={name:f,coordDim:f,coordDimIndex:g+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(_.storeDimIndex=s.ensureCalculationDimension(f,v),b.storeDimIndex=s.ensureCalculationDimension(u,v)),o.appendCalculationDimension(_),o.appendCalculationDimension(b)):(i.push(_),i.push(b))}return{stackedDimension:d&&d.name,stackedByDimension:c&&c.name,isStackedByIndex:n,stackedOverDimension:f,stackResultDimension:u}}function x$t(t){return!Fee(t.schema)}function sd(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function o3(t,e){return sd(t,e)?t.getCalculationInfo("stackResultDimension"):e}function C$t(t,e){var r=t.get("coordinateSystem"),n=RT.get(r),a;return e&&e.coordSysDims&&(a=Oe(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=l$t(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function T$t(t,e,r){var n,a;return r&&G(t,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(t[n].otherDims.itemName=0),n}function X0(t,e,r){r=r||{};var n=e.getSourceManager(),a,i=!1;a=n.getSource(),i=a.sourceFormat===$o;var o=w$t(e),s=C$t(e,o),l=r.useEncodeDefaulter,c=wt(l)?l:l?Ht(RDt,s,e):null,d={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!i},u=i3(a,d),f=T$t(u.dimensions,r.createInvertedIndices,o),p=i?null:n.getSharedDataStore(u),v=Wee(e,{schema:u,store:p}),g=new gl(u,e);g.setCalculationInfo(v);var _=f!=null&&k$t(a)?function(b,w,x,C){return C===f?x:this.defaultDimValueGetter(b,w,x,C)}:null;return g.hasItemOption=!1,g.initData(i?a:p,null,_),g}function k$t(t){if(t.sourceFormat===$o){var e=E$t(t.data||[]);return!Re(Ev(e))}}function E$t(t){for(var e=0;er[1]&&(r[1]=e[1])},t.prototype.unionExtentFromData=function(e,r){this.unionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();wT(Pl);var D$t=0,KI=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++D$t}return t.createByAxisModel=function(e){var r=e.option,n=r.data,a=n&&Oe(n,M$t);return new t({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!Ue(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,r;var a=this._getOrCreateMap();return r=a.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,a.set(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Ct(this.categories))},t}();function M$t(t){return ft(t)&&t.value!=null?t.value:t+""}function QI(t){return t.type==="interval"||t.type==="log"}function O$t(t,e,r,n){var a={},i=t[1]-t[0],o=a.interval=d5(i/e,!0);r!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=Hee(o),l=a.niceTickExtent=[mn(Math.ceil(t[0]/o)*o,s),mn(Math.floor(t[1]/o)*o,s)];return $$t(l,t),a}function j$(t){var e=Math.pow(10,bT(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,mn(r*e)}function Hee(t){return ls(t)+2}function bU(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function $$t(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),bU(t,0,e),bU(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function GT(t,e){return t>=e[0]&&t<=e[1]}function qT(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function XT(t,e){return t*(e[1]-e[0])+e[0]}var JT=function(t){ve(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new KI({})),Re(a)&&(a=new KI({categories:Oe(a,function(i){return ft(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:Ue(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return r=this.parse(r),GT(r,this._extent)&&this._ordinalMeta.categories[r]!=null},e.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),qT(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(XT(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Pl);Pl.registerClass(JT);var Cf=mn,Oc=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return GT(r,this._extent)},e.prototype.normalize=function(r){return qT(r,this._extent)},e.prototype.scale=function(r){return XT(r,this._extent)},e.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},e.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=Hee(r)},e.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]l)return[];var d=s.length?s[s.length-1].value:i[1];return a[1]>d&&(r?s.push({value:Cf(d+n,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&p0&&(i=i===null?s:Math.min(i,s))}r[n]=i}}return r}function Gee(t){var e=I$t(t),r=[];return G(t,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,c=e[l],d=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),f=Math.abs(u[1]-u[0]);s=c?d/f*c:d}else{var p=n.getData();s=Math.abs(o[1]-o[0])/p.count()}var v=Hr(n.get("barWidth"),s),g=Hr(n.get("barMaxWidth"),s),_=Hr(n.get("barMinWidth")||(Xee(n)?.5:1),s),b=n.get("barGap"),w=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:g,barMinWidth:_,barGap:b,barCategoryGap:w,axisKey:s3(i),stackId:Yee(n)})}),R$t(r)}function R$t(t){var e={};G(t,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var c=n.stackId;l[c]||s.autoWidthCount++,l[c]=l[c]||{width:0,maxWidth:0};var d=n.barWidth;d&&!l[c].width&&(l[c].width=d,d=Math.min(s.remainedWidth,d),s.remainedWidth-=d);var u=n.barMaxWidth;u&&(l[c].maxWidth=u);var f=n.barMinWidth;f&&(l[c].minWidth=f);var p=n.barGap;p!=null&&(s.gap=p);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return G(e,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=lr(i).length;s=Math.max(35-l*4,15)+"%"}var c=Hr(s,o),d=Hr(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,p=(u-c)/(f+(f-1)*d);p=Math.max(p,0),G(i,function(b){var w=b.maxWidth,x=b.minWidth;if(b.width){var C=b.width;w&&(C=Math.min(C,w)),x&&(C=Math.max(C,x)),b.width=C,u-=C+d*C,f--}else{var C=p;w&&wC&&(C=x),C!==p&&(b.width=C,u-=C+d*C,f--)}}),p=(u-c)/(f+(f-1)*d),p=Math.max(p,0);var v=0,g;G(i,function(b,w){b.width||(b.width=p),g=b,v+=b.width*(1+d)}),g&&(v-=g.width*d);var _=-v/2;G(i,function(b,w){r[a][w]=r[a][w]||{bandWidth:o,offset:_,width:b.width},_+=b.width*(1+d)})}),r}function L$t(t,e,r){if(t&&e){var n=t[s3(e)];return n}}function N$t(t,e){var r=Vee(t,e),n=Gee(r);G(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Yee(a),c=n[s3(s)][l],d=c.offset,u=c.width;i.setLayout({bandWidth:c.bandWidth,offset:d,size:u})})}function F$t(t){return{seriesType:t,plan:W5(),reset:function(e){if(qee(e)){var r=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=e.get("showBackground",!0),c=r.mapDimension(i.dim),d=r.getCalculationInfo("stackResultDimension"),u=sd(r,c)&&!!r.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),p=z$t(a,i),v=Xee(e),g=e.get("barMinHeight")||0,_=d&&r.getDimensionIndex(d),b=r.getLayout("size"),w=r.getLayout("offset");return{progress:function(x,C){for(var M=x.count,k=v&&pc(M*3),O=v&&l&&pc(M*3),R=v&&pc(M),L=n.master.getRect(),$=f?L.width:L.height,N,W=C.getStore(),j=0;(N=x.next())!=null;){var Y=W.get(u?_:o,N),V=W.get(s,N),J=p,ie=void 0;u&&(ie=+Y-W.get(o,N));var K=void 0,Q=void 0,oe=void 0,H=void 0;if(f){var X=n.dataToPoint([Y,V]);if(u){var ae=n.dataToPoint([ie,V]);J=ae[0]}K=J,Q=X[1]+w,oe=X[0]-J,H=b,Math.abs(oe)0?r:1:r))}var B$t=function(t,e,r,n){for(;r>>1;t[a][1]a&&(this._approxInterval=a);var s=Mw.length,l=Math.min(B$t(Mw,this._approxInterval,0,s),s-1);this._interval=Mw[l][1],this._minLevelUnit=Mw[Math.max(l-1,0)][0]},e.prototype.parse=function(r){return Dr(r)?r:+xo(r)},e.prototype.contain=function(r){return GT(this.parse(r),this._extent)},e.prototype.normalize=function(r){return qT(this.parse(r),this._extent)},e.prototype.scale=function(r){return XT(r,this._extent)},e.type="time",e}(Oc),Mw=[["second",O5],["minute",$5],["hour",hy],["quarter-day",hy*6],["half-day",hy*12],["day",mo*1.2],["half-week",mo*3.5],["week",mo*7],["month",mo*31],["quarter",mo*95],["half-year",uH/2],["year",uH]];function j$t(t,e,r,n){var a=xo(e),i=xo(r),o=function(v){return fH(a,v,n)===fH(i,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},c=function(){return l()&&o("day")},d=function(){return c()&&o("hour")},u=function(){return d()&&o("minute")},f=function(){return u()&&o("second")},p=function(){return f()&&o("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return c();case"hour":return d();case"minute":return u();case"second":return f();case"millisecond":return p()}}function W$t(t,e){return t/=mo,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function H$t(t){var e=30*mo;return t/=e,t>6?6:t>3?3:t>2?2:1}function U$t(t){return t/=hy,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function wU(t,e){return t/=e?$5:O5,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Y$t(t){return d5(t,!0)}function V$t(t,e,r){var n=new Date(t);switch(Wm(e)){case"year":case"month":n[SQ(r)](0);case"day":n[xQ(r)](1);case"hour":n[CQ(r)](0);case"minute":n[TQ(r)](0);case"second":n[kQ(r)](0),n[EQ(r)](0)}return n.getTime()}function G$t(t,e,r,n){var a=1e4,i=bQ,o=0;function s($,N,W,j,Y,V,J){for(var ie=new Date(N),K=N,Q=ie[j]();K1&&V===0&&W.unshift({value:W[0].value-K})}}for(var V=0;V=n[0]&&w<=n[1]&&u++)}var x=(n[1]-n[0])/e;if(u>x*1.5&&f>x/1.5||(c.push(_),u>x||t===i[p]))break}d=[]}}}for(var C=Wr(Oe(c,function($){return Wr($,function(N){return N.value>=n[0]&&N.value<=n[1]&&!N.notAdd})}),function($){return $.length>0}),M=[],k=C.length-1,p=0;p0;)i*=10;var s=[mn(J$t(n[0]/i)*i),mn(X$t(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){vy.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return r=Jo(r)/Jo(this.base),GT(r,this._extent)},e.prototype.normalize=function(r){return r=Jo(r)/Jo(this.base),qT(r,this._extent)},e.prototype.scale=function(r){return r=XT(r,this._extent),Ow(this.base,r)},e.type="log",e}(Pl),Jee=c3.prototype;Jee.getMinorTicks=vy.getMinorTicks;Jee.getLabel=vy.getLabel;function $w(t,e){return q$t(t,ls(e))}Pl.registerClass(c3);var Z$t=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]0&&l>0&&!c&&(s=0),s<0&&l<0&&!d&&(l=0));var f=this._determinedMin,p=this._determinedMax;return f!=null&&(s=f,c=!0),p!=null&&(l=p,d=!0),{min:s,max:l,minFixed:c,maxFixed:d,isBlank:u}},t.prototype.modifyDataMinMax=function(e,r){this[Q$t[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=K$t[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),K$t={min:"_determinedMin",max:"_determinedMax"},Q$t={min:"_dataMin",max:"_dataMax"};function Zee(t,e,r){var n=t.rawExtentInfo;return n||(n=new Z$t(t,e,r),t.rawExtentInfo=n,n)}function Aw(t,e){return e==null?null:Ny(e)?NaN:t.parse(e)}function Kee(t,e){var r=t.type,n=Zee(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&r==="time"){var s=Vee("bar",o),l=!1;if(G(s,function(u){l=l||u.getBaseAxis()===e.axis}),l){var c=Gee(s),d=eAt(a,i,e,c);a=d.min,i=d.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function eAt(t,e,r,n){var a=r.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=L$t(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;G(o,function(p){s=Math.min(p.offset,s)});var l=-1/0;G(o,function(p){l=Math.max(p.offset+p.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,d=e-t,u=1-(s+l)/i,f=d/u-d;return e+=f*(l/c),t-=f*(s/c),{min:t,max:e}}function eR(t,e){var r=e,n=Kee(t,r),a=n.extent,i=r.get("splitNumber");t instanceof c3&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function Qee(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new JT({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new l3({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Pl.getClass(e)||Oc)}}function tAt(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function Av(t){var e=t.getLabelModel().get("formatter"),r=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(n){return function(a,i){return t.scale.getFormattedLabel(a,i,n)}}(e):Ue(e)?function(n){return function(a){var i=t.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(e):wt(e)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(u3(t,a),i,a.level!=null?{level:a.level}:null)}}(e):function(n){return t.scale.getLabel(n)}}function u3(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function rAt(t){var e=t.model,r=t.scale;if(!(!e.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof JT?a=r.count():(n=r.getTicks(),a=n.length);var o=t.getLabelModel(),s=Av(t),l,c=1;a>40&&(c=Math.ceil(a/40));for(var d=0;dt[1]&&(t[1]=a[1])})}var f3=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}();function iAt(t){return X0(null,t)}var oAt={isDimensionStacked:sd,enableDataStack:Wee,getStackedDimension:o3};function sAt(t,e){var r=e;e instanceof $r||(r=new $r(e));var n=Qee(r);return n.setExtent(t[0],t[1]),eR(n,r),n}function lAt(t){Ua(t,f3)}function cAt(t,e){return e=e||{},Ni(t,null,null,e.state!=="normal")}const rte=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:v$t,createList:iAt,createScale:sAt,createSymbol:ji,createTextStyle:cAt,dataStack:oAt,enableHoverEmphasis:Ju,getECData:Wt,getLayoutRect:xl,mixinAxisModelCommonMethods:lAt},Symbol.toStringTag,{value:"Module"}));var xU=[],uAt={registerPreprocessor:UT,registerProcessor:YT,registerPostInit:Z5,registerPostUpdate:K5,registerUpdateLifecycle:q0,registerAction:Ao,registerCoordinateSystem:Q5,registerLayout:e3,registerVisual:Bc,registerTransform:n3,registerLoading:VT,registerMap:r3,registerImpl:HOt,PRIORITY:V5,ComponentModel:Jt,ComponentView:Cn,SeriesModel:Da,ChartView:ia,registerComponentModel:function(t){Jt.registerClass(t)},registerComponentView:function(t){Cn.registerClass(t)},registerSeriesModel:function(t){Da.registerClass(t)},registerChartView:function(t){ia.registerClass(t)},registerSubTypeDefaulter:function(t,e){Jt.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){gK(t,e)}};function oa(t){if(Re(t)){G(t,function(e){oa(e)});return}Yt(xU,t)>=0||(xU.push(t),wt(t)&&(t={install:t}),t.install(uAt))}var dAt=1e-8;function CU(t,e){return Math.abs(t-e)a&&(n=o,a=l)}if(n)return hAt(n.exterior);var c=this.getBoundingRect();return[c.x+c.width/2,c.y+c.height/2]},e.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return G(o,function(s){s.type==="polygon"?kU(s.exterior,a,i,r):G(s.points,function(l){kU(l,a,i,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new rr(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/r,l/r])}return n}function Zx(t,e){return t=mAt(t),Oe(Wr(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,a=r.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new EU(o[0],o.slice(1)));break;case"MultiPolygon":G(a.coordinates,function(l){l[0]&&i.push(new EU(l[0],l.slice(1)))});break;case"LineString":i.push(new DU([a.coordinates]));break;case"MultiLineString":i.push(new DU(a.coordinates))}var s=new pAt(n[e||"name"],i,n.cp);return s.properties=n,s})}const ite=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:Hkt,asc:fc,getPercentWithPrecision:Bkt,getPixelPrecision:c5,getPrecision:ls,getPrecisionSafe:SK,isNumeric:CK,isRadianAroundZero:Hy,linearMap:ra,nice:d5,numericToNumber:Uy,parseDate:xo,quantile:Ykt,quantity:xK,quantityExponent:bT,reformIntervals:Vkt,remRadian:u5,round:mn},Symbol.toStringTag,{value:"Module"})),ote=Object.freeze(Object.defineProperty({__proto__:null,format:W0,parse:xo},Symbol.toStringTag,{value:"Module"})),ste=Object.freeze(Object.defineProperty({__proto__:null,Arc:L0,BezierCurve:R0,BoundingRect:rr,Circle:Dv,CompoundPath:w5,Ellipse:ET,Group:Tr,Image:Mo,IncrementalDisplayable:oQ,Line:Co,LinearGradient:S5,Polygon:Sl,Polyline:Fc,RadialGradient:iQ,Rect:Ur,Ring:I0,Sector:Rh,Text:vn,clipPointsByRect:E5,clipRectByRect:fQ,createIcon:Mv,extendPath:lQ,extendShape:sQ,getShapeClass:cQ,getTransform:N0,initProps:Ea,makeImage:C5,makePath:DT,mergePath:zx,registerShape:Oo,resizePath:T5,updateProps:xn},Symbol.toStringTag,{value:"Module"})),lte=Object.freeze(Object.defineProperty({__proto__:null,addCommas:P5,capitalFirst:EDt,encodeHTML:xa,formatTime:kDt,formatTpl:R5,getTextRect:TDt,getTooltipMarker:DQ,normalizeCssArray:H0,toCamelCase:I5,truncateText:b2t},Symbol.toStringTag,{value:"Module"})),cte=Object.freeze(Object.defineProperty({__proto__:null,bind:dt,clone:St,curry:Ht,defaults:Rt,each:G,extend:De,filter:Wr,indexOf:Yt,inherits:ZN,isArray:Re,isFunction:wt,isObject:ft,isString:Ue,map:Oe,merge:Ot,reduce:wl},Symbol.toStringTag,{value:"Module"}));var e0=Mr();function ute(t,e){var r=Oe(e,function(n){return t.scale.parse(n)});return t.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function vAt(t){var e=t.getLabelModel().get("customValues");if(e){var r=Av(t),n=t.scale.getExtent(),a=ute(t,e),i=Wr(a,function(o){return o>=n[0]&&o<=n[1]});return{labels:Oe(i,function(o){var s={value:o};return{formattedLabel:r(s),rawLabel:t.scale.getLabel(s),tickValue:o}})}}return t.type==="category"?_At(t):bAt(t)}function gAt(t,e){var r=t.getTickModel().get("customValues");if(r){var n=t.scale.getExtent(),a=ute(t,r);return{ticks:Wr(a,function(i){return i>=n[0]&&i<=n[1]})}}return t.type==="category"?yAt(t,e):{ticks:Oe(t.scale.getTicks(),function(i){return i.value})}}function _At(t){var e=t.getLabelModel(),r=dte(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function dte(t,e){var r=fte(t,"labels"),n=d3(e),a=hte(r,n);if(a)return a;var i,o;return wt(n)?i=vte(t,n):(o=n==="auto"?wAt(t):n,i=mte(t,o)),pte(r,n,{labels:i,labelCategoryInterval:o})}function yAt(t,e){var r=fte(t,"ticks"),n=d3(e),a=hte(r,n);if(a)return a;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),wt(n))i=vte(t,n,!0);else if(n==="auto"){var s=dte(t,t.getLabelModel());o=s.labelCategoryInterval,i=Oe(s.labels,function(l){return l.tickValue})}else o=n,i=mte(t,o,!0);return pte(r,n,{ticks:i,tickCategoryInterval:o})}function bAt(t){var e=t.scale.getTicks(),r=Av(t);return{labels:Oe(e,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:t.scale.getLabel(n),tickValue:n.value}})}}function fte(t,e){return e0(t)[e]||(e0(t)[e]=[])}function hte(t,e){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],c=t.dataToCoord(l+1)-t.dataToCoord(l),d=Math.abs(c*Math.cos(n)),u=Math.abs(c*Math.sin(n)),f=0,p=0;l<=i[1];l+=s){var v=0,g=0,_=gT(r({value:l}),e.font,"center","top");v=_.width*1.3,g=_.height*1.3,f=Math.max(f,v,7),p=Math.max(p,g,7)}var b=f/d,w=p/u;isNaN(b)&&(b=1/0),isNaN(w)&&(w=1/0);var x=Math.max(0,Math.floor(Math.min(b,w))),C=e0(t.model),M=t.getExtent(),k=C.lastAutoInterval,O=C.lastTickCount;return k!=null&&O!=null&&Math.abs(k-x)<=1&&Math.abs(O-o)<=1&&k>x&&C.axisExtent0===M[0]&&C.axisExtent1===M[1]?x=k:(C.lastTickCount=o,C.lastAutoInterval=x,C.axisExtent0=M[0],C.axisExtent1=M[1]),x}function xAt(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function mte(t,e,r){var n=Av(t),a=t.scale,i=a.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),c=i[0],d=a.count();c!==0&&l>1&&d/l>2&&(c=Math.round(Math.ceil(c/l)*l));var u=ete(t),f=o.get("showMinLabel")||u,p=o.get("showMaxLabel")||u;f&&c!==i[0]&&g(i[0]);for(var v=c;v<=i[1];v+=l)g(v);p&&v-l!==i[1]&&g(i[1]);function g(_){var b={value:_};s.push(r?_:{formattedLabel:n(b),rawLabel:a.getLabel(b),tickValue:_})}return s}function vte(t,e,r){var n=t.scale,a=Av(t),i=[];return G(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&i.push(r?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var MU=[0,1],J0=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return e>=n&&e<=a},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return c5(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(n=n.slice(),OU(n,a.count())),ra(e,MU,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),OU(n,a.count()));var i=ra(e,n,MU,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=gAt(this,r),a=n.ticks,i=Oe(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return CAt(this,i,o,e.clamp),i},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=Oe(n,function(i){return Oe(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},t.prototype.getViewLabels=function(){return vAt(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},t.prototype.calculateCategoryInterval=function(){return SAt(this)},t}();function OU(t,e){var r=t[1]-t[0],n=e,a=r/n/2;t[0]+=a,t[1]-=a}function CAt(t,e,r,n){var a=e.length;if(!t.onBand||r||!a)return;var i=t.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1],tickValue:e[0].tickValue};else{var l=e[a-1].tickValue-e[0].tickValue,c=(e[a-1].coord-e[0].coord)/l;G(e,function(p){p.coord-=c/2});var d=t.scale.getExtent();s=1+d[1]-e[a-1].tickValue,o={coord:e[a-1].coord+c*s,tickValue:d[1]+1},e.push(o)}var u=i[0]>i[1];f(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(p,v){return p=mn(p),v=mn(v),u?p>v:pa&&(a+=x_);var p=Math.atan2(s,o);if(p<0&&(p+=x_),p>=n&&p<=a||p+x_>=n&&p+x_<=a)return l[0]=d,l[1]=u,c-r;var v=r*Math.cos(n)+t,g=r*Math.sin(n)+e,_=r*Math.cos(a)+t,b=r*Math.sin(a)+e,w=(v-o)*(v-o)+(g-s)*(g-s),x=(_-o)*(_-o)+(b-s)*(b-s);return w0){e=e/180*Math.PI,Yf.fromArray(t[0]),Yn.fromArray(t[1]),Oi.fromArray(t[2]),Zt.sub(Mm,Yf,Yn),Zt.sub(C_,Oi,Yn);var r=Mm.len(),n=C_.len();if(!(r<.001||n<.001)){Mm.scale(1/r),C_.scale(1/n);var a=Mm.dot(C_),i=Math.cos(e);if(i1&&Zt.copy(kf,Oi),kf.toArray(t[1])}}}}function U$(t,e,r,n){var a=r==="normal",i=a?t:t.ensureState(r);i.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?t.useStyle(s):i.style=s}function $At(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=Sx(n[0],n[1]),i=Sx(n[1],n[2]);if(!a||!i){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=kS([],n[1],n[0],o/a),l=kS([],n[1],n[2],o/i),c=kS([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var d=1;d0){x(L*R,0,o);var $=L+k;$<0&&C(-$*R,1)}else C(-k*R,1)}}function x(k,O,R){k!==0&&(c=!0);for(var L=O;L0)for(var $=0;$0;$--){var Y=R[$-1]*j;x(-Y,$,o)}}}function M(k){var O=k<0?-1:1;k=Math.abs(k);for(var R=Math.ceil(k/(o-1)),L=0;L0?x(R,0,L+1):x(-R,o-L-1,o),k-=R,k<=0)return}return c}function IAt(t,e,r,n){return xte(t,"x","width",e,r)}function RAt(t,e,r,n){return xte(t,"y","height",e,r)}function Cte(t){var e=[];t.sort(function(g,_){return _.priority-g.priority});var r=new rr(0,0,0,0);function n(g){if(!g.ignore){var _=g.ensureState("emphasis");_.ignore==null&&(_.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),Yt(f,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),xn(n,c,r,l)}else if(n.attr(c),!Ov(n).valueAnimation){var u=mt(n.style.opacity,1);n.style.opacity=0,Ea(n,{style:{opacity:u}},r,l)}if(i.oldLayout=c,n.states.select){var p=i.oldLayoutSelect={};Pw(p,c,Iw),Pw(p,n.states.select,Iw)}if(n.states.emphasis){var v=i.oldLayoutEmphasis={};Pw(v,c,Iw),Pw(v,n.states.emphasis,Iw)}oDt(n,l,d,r,r)}if(a&&!a.ignore&&!a.invisible){var i=FAt(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),xn(a,{shape:g},r)):(a.setShape(g),a.style.strokePercent=0,Ea(a,{style:{strokePercent:1}},r)),i.oldLayout=g}},t}(),V$=Mr();function BAt(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var a=V$(r).labelManager;a||(a=V$(r).labelManager=new zAt),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var a=V$(r).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}const jAt=Object.freeze(Object.defineProperty({__proto__:null,Axis:J0,ChartView:ia,ComponentModel:Jt,ComponentView:Cn,List:gl,Model:$r,PRIORITY:V5,SeriesModel:Da,color:iK,connect:Mee,dataTool:Lee,dependencies:_ee,disConnect:Oee,disconnect:J5,dispose:$ee,env:xt,extendChartView:bte,extendComponentModel:gte,extendComponentView:_te,extendSeriesModel:yte,format:lte,getCoordinateSystemDimensions:Pee,getInstanceByDom:WT,getInstanceById:Aee,getMap:Ree,graphic:ste,helper:rte,init:X5,innerDrawElementOnCanvas:BT,matrix:YZ,number:ite,parseGeoJSON:Zx,parseGeoJson:Zx,registerAction:Ao,registerCoordinateSystem:Q5,registerLayout:e3,registerLoading:VT,registerLocale:OT,registerMap:r3,registerPostInit:Z5,registerPostUpdate:K5,registerPreprocessor:UT,registerProcessor:YT,registerTheme:HT,registerTransform:n3,registerUpdateLifecycle:q0,registerVisual:Bc,setCanvasCreator:Iee,setPlatformAPI:GN,throttle:Y0,time:ote,use:oa,util:cte,vector:WZ,version:gee,zrUtil:zZ,zrender:bK},Symbol.toStringTag,{value:"Module"}));var WAt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return X0(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new Tr,a=ji("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=r.itemHeight*.8,c=ji(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(c),c.setStyle(r.itemStyle);var d=r.iconRotate==="inherit"?o:r.iconRotate||0;return c.rotation=d*Math.PI/180,c.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Da);function h3(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=cv(t,e,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(e[i])}return n.join(" ")}var p3=function(t){ve(e,t);function e(r,n,a,i){var o=t.call(this)||this;return o.updateData(r,n,a,i),o}return e.prototype._createSymbol=function(r,n,a,i,o){this.removeAll();var s=ji(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=HAt,this._symbolType=r,this.add(s)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){fh(this.childAt(0))},e.prototype.downplay=function(){hh(this.childAt(0))},e.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},e.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},e.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),c=o!==this._symbolType,d=i&&i.disableAnimation;if(c){var u=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};d?f.attr(p):xn(f,p,s,n),Lx(f)}if(this._updateCommon(r,n,l,a,i),c){var f=this.childAt(0);if(!d){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Ea(f,p,s,n)}}d&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,c,d,u,f,p,v,g,_,b;if(i&&(c=i.emphasisItemStyle,d=i.blurItemStyle,u=i.selectItemStyle,f=i.focus,p=i.blurScope,g=i.labelStatesModels,_=i.hoverScale,b=i.cursorStyle,v=i.emphasisDisabled),!i||r.hasItemOption){var w=i&&i.itemModel?i.itemModel:r.getItemModel(n),x=w.getModel("emphasis");c=x.getModel("itemStyle").getItemStyle(),u=w.getModel(["select","itemStyle"]).getItemStyle(),d=w.getModel(["blur","itemStyle"]).getItemStyle(),f=x.get("focus"),p=x.get("blurScope"),v=x.get("disabled"),g=md(w),_=x.getShallow("scale"),b=w.getShallow("cursor")}var C=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(C||0)*Math.PI/180||0);var M=G0(r.getItemVisual(n,"symbolOffset"),a);M&&(s.x=M[0],s.y=M[1]),b&&s.attr("cursor",b);var k=r.getItemVisual(n,"style"),O=k.fill;if(s instanceof Mo){var R=s.style;s.useStyle(De({image:R.image,x:R.x,y:R.y,width:R.width,height:R.height},k))}else s.__isEmptyBrush?s.useStyle(De({},k)):s.useStyle(k),s.style.decal=null,s.setColor(O,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var L=r.getItemVisual(n,"liftZ"),$=this._z2;L!=null?$==null&&(this._z2=s.z2,s.z2+=L):$!=null&&(s.z2=$,this._z2=null);var N=o&&o.useNameLabel;Lh(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:W,inheritColor:O,defaultOpacity:k.opacity});function W(V){return N?r.getName(V):h3(r,V)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var j=s.ensureState("emphasis");j.style=c,s.ensureState("select").style=u,s.ensureState("blur").style=d;var Y=_==null||_===!0?Math.max(1.1,3/this._sizeY):isFinite(_)&&_>0?+_:1;j.scaleX=this._sizeX*Y,j.scaleY=this._sizeY*Y,this.setSymbolScale(1),ph(this,f,p,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=Wt(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Rx(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Rx(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return V0(r.getItemVisual(n,"symbolSize"))},e}(Tr);function HAt(t,e){this.parent.drift(t,e)}function G$(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function IU(t){return t!=null&&!ft(t)&&(t={isIgnore:t}),t||{}}function RU(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:md(e),cursorStyle:e.get("cursor")}}var kte=function(){function t(e){this.group=new Tr,this._SymbolCtor=e||p3}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=IU(r);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=RU(e),c={disableAnimation:s},d=r.getSymbolPoint||function(u){return e.getItemLayout(u)};i||n.removeAll(),e.diff(i).add(function(u){var f=d(u);if(G$(e,f,u,r)){var p=new o(e,u,l,c);p.setPosition(f),e.setItemGraphicEl(u,p),n.add(p)}}).update(function(u,f){var p=i.getItemGraphicEl(f),v=d(u);if(!G$(e,v,u,r)){n.remove(p);return}var g=e.getItemVisual(u,"symbol")||"circle",_=p&&p.getSymbolType&&p.getSymbolType();if(!p||_&&_!==g)n.remove(p),p=new o(e,u,l,c),p.setPosition(v);else{p.updateData(e,u,l,c);var b={x:v[0],y:v[1]};s?p.attr(b):xn(p,b,a)}n.add(p),e.setItemGraphicEl(u,p)}).remove(function(u){var f=i.getItemGraphicEl(u);f&&f.fadeOut(function(){n.remove(f)},a)}).execute(),this._getSymbolPoint=d,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=RU(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=IU(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?r=n[0]:n[1]<0&&(r=n[1]),r}function Dte(t,e,r,n){var a=NaN;t.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=t.valueStart);var i=t.baseDataOffset,o=[];return o[i]=r.get(t.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function YAt(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function VAt(t,e,r,n,a,i,o,s){for(var l=YAt(t,e),c=[],d=[],u=[],f=[],p=[],v=[],g=[],_=Ete(a,e,o),b=t.getLayout("points")||[],w=e.getLayout("points")||[],x=0;x=a||g<0)break;if(eh(b,w)){if(l){g+=i;continue}break}if(g===r)t[i>0?"moveTo":"lineTo"](b,w),u=b,f=w;else{var x=b-c,C=w-d;if(x*x+C*C<.5){g+=i;continue}if(o>0){for(var M=g+i,k=e[M*2],O=e[M*2+1];k===b&&O===w&&_=n||eh(k,O))p=b,v=w;else{$=k-c,N=O-d;var Y=b-c,V=k-b,J=w-d,ie=O-w,K=void 0,Q=void 0;if(s==="x"){K=Math.abs(Y),Q=Math.abs(V);var oe=$>0?1:-1;p=b-oe*K*o,v=w,W=b+oe*Q*o,j=w}else if(s==="y"){K=Math.abs(J),Q=Math.abs(ie);var H=N>0?1:-1;p=b,v=w-H*K*o,W=b,j=w+H*Q*o}else K=Math.sqrt(Y*Y+J*J),Q=Math.sqrt(V*V+ie*ie),L=Q/(Q+K),p=b-$*o*(1-L),v=w-N*o*(1-L),W=b+$*o*L,j=w+N*o*L,W=ku(W,Eu(k,b)),j=ku(j,Eu(O,w)),W=Eu(W,ku(k,b)),j=Eu(j,ku(O,w)),$=W-b,N=j-w,p=b-$*K/Q,v=w-N*K/Q,p=ku(p,Eu(c,b)),v=ku(v,Eu(d,w)),p=Eu(p,ku(c,b)),v=Eu(v,ku(d,w)),$=b-p,N=w-v,W=b+$*Q/K,j=w+N*Q/K}t.bezierCurveTo(u,f,p,v,b,w),u=W,f=j}else t.lineTo(b,w)}c=b,d=w,g+=i}return _}var Mte=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),GAt=function(t){ve(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Mte},e.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&eh(a[o*2-2],a[o*2-1]);o--);for(;i=0){var C=c?(v-l)*x+l:(p-s)*x+s;return c?[r,C]:[C,r]}s=p,l=v;break;case o.C:p=i[u++],v=i[u++],g=i[u++],_=i[u++],b=i[u++],w=i[u++];var M=c?Tx(s,p,g,b,r,d):Tx(l,v,_,w,r,d);if(M>0)for(var k=0;k=0){var C=c?Rn(l,v,_,w,O):Rn(s,p,g,b,O);return c?[r,C]:[C,r]}}s=b,l=w;break}}},e}(fr),qAt=function(t){ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Mte),XAt=function(t){ve(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new qAt},e.prototype.buildPath=function(r,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&eh(a[s*2-2],a[s*2-1]);s--);for(;oe){i?r.push(o(i,l,e)):a&&r.push(o(a,l,0),o(a,l,e));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),i=l}return r}function QAt(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=e.getAxis(a),c=Oe(i.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),d=c.length,u=i.outerColors.slice();d&&c[0].coord>c[d-1].coord&&(c.reverse(),u.reverse());var f=KAt(c,a==="x"?r.getWidth():r.getHeight()),p=f.length;if(!p&&d)return c[0].coord<0?u[1]?u[1]:c[d-1].color:u[0]?u[0]:c[0].color;var v=10,g=f[0].coord-v,_=f[p-1].coord+v,b=_-g;if(b<.001)return"transparent";G(f,function(x){x.offset=(x.coord-g)/b}),f.push({offset:p?f[p-1].offset:.5,color:u[1]||"transparent"}),f.unshift({offset:p?f[0].offset:.5,color:u[0]||"transparent"});var w=new S5(0,0,0,0,f,!0);return w[a]=g,w[a+"2"]=_,w}}}function ePt(t,e,r){var n=t.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&tPt(i,e))){var o=e.mapDimension(i.dim),s={};return G(i.getViewLabels(),function(l){var c=i.scale.getRawOrdinalNumber(l.tickValue);s[c]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function tPt(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function rPt(t,e){return isNaN(t)||isNaN(e)}function nPt(t){for(var e=t.length/2;e>0&&rPt(t[e*2-2],t[e*2-1]);e--);return e-1}function BU(t,e){return[t[e*2],t[e*2+1]]}function aPt(t,e,r){for(var n=t.length/2,a=r==="x"?0:1,i,o,s=0,l=-1,c=0;c=e||i>=e&&o<=e){l=c;break}s=c,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function Ate(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var Q=v.getState("emphasis").style;Q.lineWidth=+v.style.lineWidth+1}Wt(v).seriesIndex=r.seriesIndex,ph(v,J,ie,K);var oe=zU(r.get("smooth")),H=r.get("smoothMonotone");if(v.setShape({smooth:oe,smoothMonotone:H,connectNulls:O}),g){var X=s.getCalculationInfo("stackedOnSeries"),ae=0;g.useStyle(Rt(c.getAreaStyle(),{fill:W,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),X&&(ae=zU(X.get("smooth"))),g.setShape({smooth:oe,stackedOnSmooth:ae,smoothMonotone:H,connectNulls:O}),ov(g,r,"areaStyle"),Wt(g).seriesIndex=r.seriesIndex,ph(g,J,ie,K)}var re=this._changePolyState;s.eachItemGraphicEl(function(le){le&&(le.onHoverStateChange=re)}),this._polyline.onHoverStateChange=re,this._data=s,this._coordSys=i,this._stackedOnPoints=M,this._points=d,this._step=$,this._valueOrigin=x,r.get("triggerLineEvent")&&(this.packEventData(r,v),g&&this.packEventData(r,g))},e.prototype.packEventData=function(r,n){Wt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=dh(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),c=o.getItemGraphicEl(s);if(!c){var d=l[s*2],u=l[s*2+1];if(isNaN(d)||isNaN(u)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(d,u))return;var f=r.get("zlevel")||0,p=r.get("z")||0;c=new p3(o,s),c.x=d,c.y=u,c.setZ(f,p);var v=c.getSymbolPath().getTextContent();v&&(v.zlevel=f,v.z=p,v.z2=this._polyline.z2+1),c.__temp=!0,o.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else ia.prototype.highlight.call(this,r,n,a,i)},e.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=dh(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ia.prototype.downplay.call(this,r,n,a,i)},e.prototype._changePolyState=function(r){var n=this._polygon;UW(this._polyline,r),n&&UW(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new GAt({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new XAt({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(r,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var c=r.hostModel,d=c.get("animationDuration");wt(d)&&(d=d(null));var u=c.get("animationDelay")||0,f=wt(u)?u(null):u;r.eachItemGraphicEl(function(p,v){var g=p;if(g){var _=[p.x,p.y],b=void 0,w=void 0,x=void 0;if(a)if(o){var C=a,M=n.pointToCoord(_);i?(b=C.startAngle,w=C.endAngle,x=-M[1]/180*Math.PI):(b=C.r0,w=C.r,x=M[0])}else{var k=a;i?(b=k.x,w=k.x+k.width,x=p.x):(b=k.y+k.height,w=k.y,x=p.y)}var O=w===b?0:(x-b)/(w-b);l&&(O=1-O);var R=wt(u)?u(v):d*O+f,L=g.getSymbolPath(),$=L.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:R}),$&&$.animateFrom({style:{opacity:0}},{duration:300,delay:R}),L.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(Ate(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new vn({z2:200}),c.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var d=nPt(l);d>=0&&(Lh(s,md(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:d,defaultText:function(u,f,p){return p!=null?Tte(o,p):h3(o,u)},enableTextSetter:!0},iPt(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,a,i,o,s,l){var c=this._endLabel,d=this._polyline;if(c){r<1&&i.originalX==null&&(i.originalX=c.x,i.originalY=c.y);var u=a.getLayout("points"),f=a.hostModel,p=f.get("connectNulls"),v=s.get("precision"),g=s.get("distance")||0,_=l.getBaseAxis(),b=_.isHorizontal(),w=_.inverse,x=n.shape,C=w?b?x.x:x.y+x.height:b?x.x+x.width:x.y,M=(b?g:0)*(w?-1:1),k=(b?0:-g)*(w?-1:1),O=b?"x":"y",R=aPt(u,C,O),L=R.range,$=L[1]-L[0],N=void 0;if($>=1){if($>1&&!p){var W=BU(u,L[0]);c.attr({x:W[0]+M,y:W[1]+k}),o&&(N=f.getRawValue(L[0]))}else{var W=d.getPointOn(C,O);W&&c.attr({x:W[0]+M,y:W[1]+k});var j=f.getRawValue(L[0]),Y=f.getRawValue(L[1]);o&&(N=$K(a,v,j,Y,R.t))}i.lastFrameIndex=L[0]}else{var V=r===1||i.lastFrameIndex>0?L[0]:0,W=BU(u,V);o&&(N=f.getRawValue(V)),c.attr({x:W[0]+M,y:W[1]+k})}if(o){var J=Ov(c);typeof J.setLabelText=="function"&&J.setLabelText(N)}}},e.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var c=this._polyline,d=this._polygon,u=r.hostModel,f=VAt(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),p=f.current,v=f.stackedOnCurrent,g=f.next,_=f.stackedOnNext;if(o&&(v=Du(f.stackedOnCurrent,f.current,a,o,l),p=Du(f.current,null,a,o,l),_=Du(f.stackedOnNext,f.next,a,o,l),g=Du(f.next,null,a,o,l)),FU(p,g)>3e3||d&&FU(v,_)>3e3){c.stopAnimation(),c.setShape({points:g}),d&&(d.stopAnimation(),d.setShape({points:g,stackedOnPoints:_}));return}c.shape.__points=f.current,c.shape.points=p;var b={shape:{points:g}};f.current!==p&&(b.shape.__points=f.next),c.stopAnimation(),xn(c,b,u),d&&(d.setShape({points:p,stackedOnPoints:v}),d.stopAnimation(),xn(d,{shape:{stackedOnPoints:_}},u),c.shape.points!==d.shape.points&&(d.shape.points=c.shape.points));for(var w=[],x=f.status,C=0;Ce&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),c=o.getOtherAxis(l),d=l.getExtent(),u=n.getDevicePixelRatio(),f=Math.abs(d[1]-d[0])*(u||1),p=Math.round(s/f);if(isFinite(p)&&p>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(c.dim),1/p)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(c.dim),1/p));var v=void 0;Ue(i)?v=sPt[i]:wt(i)&&(v=i),v&&e.setData(a.downSample(a.mapDimension(c.dim),1/p,v,lPt))}}}}}function cPt(t){t.registerChartView(oPt),t.registerSeriesModel(WAt),t.registerLayout(m3("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Pte("line"))}var nR=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return X0(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(a)G(i.getAxes(),function(f,p){if(f.type==="category"&&n!=null){var v=f.getTicksCoords(),g=f.getTickModel().get("alignWithLabel"),_=o[p],b=n[p]==="x1"||n[p]==="y1";if(b&&!g&&(_+=1),v.length<2)return;if(v.length===2){s[p]=f.toGlobalCoord(f.getExtent()[b?1:0]);return}for(var w=void 0,x=void 0,C=1,M=0;M_){x=(k+w)/2;break}M===1&&(C=O-v[0].tickValue)}x==null&&(w?w&&(x=v[v.length-1].coord):x=v[0].coord),s[p]=f.toGlobalCoord(x)}});else{var l=this.getData(),c=l.getLayout("offset"),d=l.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;s[u]+=c+d/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Da);Da.registerClass(nR);var uPt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return X0(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=j0(nR.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(nR),dPt=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),jU=function(t){ve(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new dPt},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,c=o+l,d=n.startAngle,u=n.endAngle,f=n.clockwise,p=Math.PI*2,v=f?u-dMath.PI/2&&ds)return!0;s=u}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,a,i){if(this._isOrderChangedWithinSameData(r,n,a)){var o=this._dataSort(r,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,a){var i=n.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){RI(i,r,Wt(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(ia),WU={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,i=t.y+t.height,o=X$(e.x,t.x),s=J$(e.x+e.width,a),l=X$(e.y,t.y),c=J$(e.y+e.height,i),d=sa?s:o,e.y=u&&l>i?c:l,e.width=d?0:s-o,e.height=u?0:c-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),d||u},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var a=J$(e.r,t.r),i=X$(e.r0,t.r0);e.r=a,e.r0=i;var o=a-i<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},HU={cartesian2d:function(t,e,r,n,a,i,o,s,l){var c=new Ur({shape:De({},n),z2:1});if(c.__dataIndex=r,c.name="item",i){var d=c.shape,u=a?"height":"width";d[u]=0}return c},polar:function(t,e,r,n,a,i,o,s,l){var c=!a&&l?jU:Rh,d=new c({shape:n,z2:1});d.name="item";var u=Ite(a);if(d.calculateTextPosition=fPt(u,{isRoundCap:c===jU}),i){var f=d.shape,p=a?"r":"endAngle",v={};f[p]=a?n.r0:n.startAngle,v[p]=n[p],(s?xn:Ea)(d,{shape:v},i)}return d}};function gPt(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function UU(t,e,r,n,a,i,o,s){var l,c;i?(c={x:n.x,width:n.width},l={y:n.y,height:n.height}):(c={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?xn:Ea)(r,{shape:l},e,a,null);var d=e?t.baseAxis.model:null;(o?xn:Ea)(r,{shape:c},d,a)}function YU(t,e){for(var r=0;r0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function bPt(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function Ite(t){return function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(t)}function GU(t,e,r,n,a,i,o,s){var l=e.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var d=t.shape,u=pPt(n.getModel("itemStyle"),d);De(d,u),t.setShape(d)}}else{var c=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(l);var f=n.getShallow("cursor");f&&t.attr("cursor",f);var p=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=md(n);Lh(t,v,{labelFetcher:i,labelDataIndex:r,defaultText:h3(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=t.getTextContent();if(s&&g){var _=n.get(["label","position"]);t.textConfig.inside=_==="middle"?!0:null,hPt(t,_==="outside"?p:_,Ite(o),n.get(["label","rotate"]))}iDt(g,v,i.getRawValue(r),function(w){return Tte(e,w)});var b=n.getModel(["emphasis"]);ph(t,b.get("focus"),b.get("blurScope"),b.get("disabled")),ov(t,n),bPt(a)&&(t.style.fill="none",t.style.stroke="none",G(t.states,function(w){w.style&&(w.style.fill=w.style.stroke="none")}))}function wPt(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var SPt=function(){function t(){}return t}(),qU=function(t){ve(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new SPt},e.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],c=this.barWidth,d=0;d=0?r:null},30,!1);function xPt(t,e,r){for(var n=t.baseDimIdx,a=1-n,i=t.shape.points,o=t.largeDataIndices,s=[],l=[],c=t.barWidth,d=0,u=i.length/3;d=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[d]}return-1}function Rte(t,e,r){if(Pv(r,"cartesian2d")){var n=e,a=r.getArea();return{x:t?n.x:a.x,y:t?a.y:n.y,width:t?n.width:a.width,height:t?a.height:n.height}}else{var a=r.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:i.r0,r:t?a.r:i.r,startAngle:t?i.startAngle:0,endAngle:t?i.endAngle:Math.PI*2}}}function CPt(t,e,r){var n=t.type==="polar"?Rh:Ur;return new n({shape:Rte(e,r,t),silent:!0,z2:0})}function TPt(t){t.registerChartView(vPt),t.registerSeriesModel(uPt),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Ht(N$t,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,F$t("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Pte("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}function kPt(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t}(),MPt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return X0(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Da),Lte=4,OPt=function(){function t(){}return t}(),$Pt=function(t){ve(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new OPt},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(r,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,c=l&&i[0]=0;c--){var d=c*2,u=i[d]-s/2,f=i[d+1]-l/2;if(r>=u&&n>=f&&r<=u+s&&n<=f+l)return c}return-1},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,c=1/0,d=-1/0,u=-1/0,f=0;f=0&&(c.dataIndex=u+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),PPt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.updateData(i,{clipShape:this._getClipShape(r)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(r,n,a){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,a){var i=r.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=m3("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(r,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new APt:new kte,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(ia),IPt=function(t){ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Jt),aR=function(t){ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",za).models[0]},e.type="cartesian2dAxis",e}(Jt);Ua(aR,f3);var Nte={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},RPt=Ot({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Nte),v3=Ot({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Nte),LPt=Ot({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},v3),NPt=Rt({logBase:10},v3);const Fte={category:RPt,value:v3,time:LPt,log:NPt};var FPt={value:1,category:1,time:1,log:1};function ZU(t,e,r,n){G(FPt,function(a,i){var o=Ot(Ot({},Fte[i],!0),n,!0),s=function(l){ve(c,l);function c(){var d=l!==null&&l.apply(this,arguments)||this;return d.type=e+"Axis."+i,d}return c.prototype.mergeDefaultAndTheme=function(d,u){var f=Jy(this),p=f?U0(d):{},v=u.getTheme();Ot(d,v.get(i+"Axis")),Ot(d,this.getDefaultOption()),d.type=KU(d),f&&lv(d,p,f)},c.prototype.optionUpdated=function(){var d=this.option;d.type==="category"&&(this.__ordinalMeta=KI.createByAxisModel(this))},c.prototype.getCategories=function(d){var u=this.option;if(u.type==="category")return d?u.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=e+"Axis."+i,c.defaultOption=o,c}(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",KU)}function KU(t){return t.type||(t.data?"category":"value")}var zPt=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return Oe(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Wr(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t}(),iR=["x","y"];function QU(t){return t.type==="interval"||t.type==="time"}var BPt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=iR,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!QU(r)||!QU(n))){var a=r.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],c=i[1]-i[0];if(!(!l||!c)){var d=(s[0]-o[0])/l,u=(s[1]-o[1])/c,f=o[0]-a[0]*d,p=o[1]-i[0]*u,v=this._transform=[d,0,0,u,f,p];this._invTransform=kv([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new rr(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Ba(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},e.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(r[0]),c=i.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return Ba(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-r,o=Math.min(a[0],a[1])-r,s=Math.max(n[0],n[1])-i+r,l=Math.max(a[0],a[1])-o+r;return new rr(i,o,s,l)},e}(zPt),jPt=function(t){ve(e,t);function e(r,n,a,i,o){var s=t.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e}(J0);function oR(t,e,r){r=r||{};var n=t.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,c=a.dim,d=n.getRect(),u=[d.x,d.x+d.width,d.y,d.y+d.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,v=c==="x"?[u[2]-p,u[3]+p]:[u[0]-p,u[1]+p];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));v[f.onZero]=Math.max(Math.min(g,v[1]),v[0])}i.position=[c==="y"?v[f[l]]:u[0],c==="x"?v[f[l]]:u[3]],i.rotation=Math.PI/2*(c==="x"?0:1);var _={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=_[s],i.labelOffset=o?v[f[s]]-v[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),os(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var b=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-b:b,i.z2=1,i}function eY(t){return t.get("coordinateSystem")==="cartesian2d"}function tY(t){var e={xAxisModel:null,yAxisModel:null};return G(e,function(r,n){var a=n.replace(/Model$/,""),i=t.getReferringComponents(a,za).models[0];e[n]=i}),e}var Z$=Math.log;function zte(t,e,r){var n=Oc.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),o=a.length-1,s=n.getInterval.call(r),l=Kee(t,e),c=l.extent,d=l.fixMin,u=l.fixMax;if(t.type==="log"){var f=Z$(t.base);c=[Z$(c[0])/f,Z$(c[1])/f]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:o,fixMin:d,fixMax:u});var p=n.getExtent.call(t);d&&(c[0]=p[0]),u&&(c[1]=p[1]);var v=n.getInterval.call(t),g=c[0],_=c[1];if(d&&u)v=(_-g)/o;else if(d)for(_=c[0]+v*o;_c[0]&&isFinite(g)&&isFinite(c[0]);)v=j$(v),g=c[1]-v*o;else{var b=t.getTicks().length-1;b>o&&(v=j$(v));var w=v*o;_=Math.ceil(c[1]/v)*v,g=mn(_-w),g<0&&c[0]>=0?(g=0,_=mn(w)):_>0&&c[1]<=0&&(_=0,g=-mn(w))}var x=(a[0].value-i[0].value)/s,C=(a[o].value-i[o].value)/s;n.setExtent.call(t,g+v*x,_+v*C),n.setInterval.call(t,v),(x||C)&&n.setNiceExtent.call(t,g+v,_-v)}var WPt=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=iR,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=lr(o),c=l.length;if(c){for(var d=[],u=c-1;u>=0;u--){var f=+l[u],p=o[f],v=p.model,g=p.scale;QI(g)&&v.get("alignTicks")&&v.get("interval")==null?d.push(p):(eR(g,v),QI(g)&&(s=p))}d.length&&(s||(s=d.pop(),eR(s.scale,s.model)),G(d,function(_){zte(_.scale,_.model,s.scale)}))}}a(n.x),a(n.y);var i={};G(n.x,function(o){rY(n,"y",o,i)}),G(n.y,function(o){rY(n,"x",o,i)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var a=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=xl(a,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(G(s,function(c){if(!c.model.get(["axisLabel","inside"])){var d=rAt(c);if(d){var u=c.isHorizontal()?"height":"width",f=c.model.get(["axisLabel","margin"]);o[u]-=d[u]+f,c.position==="top"?o.y+=d.height+f:c.position==="left"&&(o.x+=d.width+f)}}}),l()),G(this._coordsList,function(c){c.calcAffineTransform()});function l(){G(s,function(c){var d=c.isHorizontal(),u=d?[0,o.width]:[0,o.height],f=c.inverse?1:0;c.setExtent(u[f],u[1-f]),HPt(c,d?o.x:o.y)})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}ft(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):Hy(a-Yu)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),aY={axisLine:function(t,e,r,n){var a=e.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],c=s[0]>l[0];o&&(Ba(s,s,o),Ba(l,l,o));var d=De({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),u=new Co({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:d,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});qy(u.shape,u.style.lineWidth),u.anid="line",r.add(u);var f=e.get(["axisLine","symbol"]);if(f!=null){var p=e.get(["axisLine","symbolSize"]);Ue(f)&&(f=[f,f]),(Ue(p)||Dr(p))&&(p=[p,p]);var v=G0(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],_=p[1];G([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(b,w){if(f[w]!=="none"&&f[w]!=null){var x=ji(f[w],-g/2,-_/2,g,_,d.stroke,!0),C=b.r+b.offset,M=c?l:s;x.attr({rotation:b.rotate,x:M[0]+C*Math.cos(t.rotation),y:M[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),r.add(x)}})}}},axisTickLabel:function(t,e,r,n){var a=VPt(r,n,e,t),i=qPt(r,n,e,t);if(YPt(e,i,a),GPt(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Ste(Oe(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Cte(o)}},axisName:function(t,e,r,n){var a=os(t.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,c=e.axis.getExtent(),d=c[0]>c[1]?-1:1,u=[i==="start"?c[0]-d*l:i==="end"?c[1]+d*l:(c[0]+c[1])/2,oY(i)?t.labelOffset+o*l:0],f,p=e.get("nameRotate");p!=null&&(p=p*Yu/180);var v;oY(i)?f=Sc.innerTextLayout(t.rotation,p??t.rotation,o):(f=UPt(t.rotation,i,p||0,c),v=t.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(f.rotation)),!isFinite(v)&&(v=null)));var g=s.getFont(),_=e.get("nameTruncate",!0)||{},b=_.ellipsis,w=os(t.nameTruncateMaxWidth,_.maxWidth,v),x=new vn({x:u[0],y:u[1],rotation:f.rotation,silent:Sc.isLabelSilent(e),style:Ni(s,{text:a,font:g,overflow:"truncate",width:w,ellipsis:b,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(F0({el:x,componentModel:e,itemName:a}),x.__fullText=a,x.anid="name",e.get("triggerEvent")){var C=Sc.makeAxisEventDataBase(e);C.targetType="axisName",C.name=a,Wt(x).eventData=C}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function UPt(t,e,r,n){var a=u5(r-t),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Hy(a-Yu/2)?(o=l?"bottom":"top",i="center"):Hy(a-Yu*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aYu/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function YPt(t,e,r){if(!ete(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],c=r[0],d=r[1],u=r[r.length-1],f=r[r.length-2];n===!1?(eo(i),eo(c)):iY(i,o)&&(n?(eo(o),eo(d)):(eo(i),eo(c))),a===!1?(eo(s),eo(u)):iY(l,s)&&(a?(eo(l),eo(f)):(eo(s),eo(u)))}}function eo(t){t&&(t.ignore=!0)}function iY(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var a=M0([]);return O0(a,a,-t.rotation),r.applyTransform(qu([],a,t.getLocalTransform())),n.applyTransform(qu([],a,e.getLocalTransform())),r.intersect(n)}}function oY(t){return t==="middle"||t==="center"}function Bte(t,e,r,n,a){for(var i=[],o=[],s=[],l=0;l=0||t===e}function eIt(t){var e=g3(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=sR(r);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var g=l;v.color!=null&&(g=Rt({color:v.color},l));var _=Ot(St(v),{boundaryGap:r,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:v.text,showName:c,nameLocation:"end",nameGap:u,nameTextStyle:g,triggerEvent:f},!1);if(Ue(d)){var b=_.name;_.name=d.replace("{value}",b??"")}else wt(d)&&(_.name=d(_.name,_));var w=new $r(_,null,this.ecModel);return Ua(w,f3.prototype),w.mainType="radar",w.componentIndex=this.componentIndex,w},this);this._indicatorModels=p},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ot({lineStyle:{color:"#bbb"}},T_.axisLine),axisLabel:Fw(T_.axisLabel,!1),axisTick:Fw(T_.axisTick,!1),splitLine:Fw(T_.splitLine,!0),splitArea:Fw(T_.splitArea,!0),indicator:[]},e}(Jt),mIt=["axisLine","axisTickLabel","axisName"],vIt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=this.group;i.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes(),i=Oe(a,function(o){var s=o.model.get("showName")?o.name:"",l=new Sc(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});G(i,function(o){G(mIt,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),c=s.getModel("areaStyle"),d=o.get("show"),u=s.get("show"),f=l.get("color"),p=c.get("color"),v=Re(f)?f:[f],g=Re(p)?p:[p],_=[],b=[];function w(V,J,ie){var K=ie%J.length;return V[K]=V[K]||[],K}if(i==="circle")for(var x=a[0].getTicksCoords(),C=n.cx,M=n.cy,k=0;k3?1.4:o>1?1.2:1.1,d=i>0?c:1/c;eA(this,"zoom","zoomOnMouseWheel",r,{scale:d,originX:s,originY:l,isAvailableBehavior:null})}if(a){var u=Math.abs(i),f=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);eA(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(r){if(!fY(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;eA(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},e}(Do);function eA(t,e,r,n,a){t.pointerChecker&&t.pointerChecker(n,a.originX,a.originY)&&(av(n.event),Yte(t,e,r,n,a))}function Yte(t,e,r,n,a){a.isAvailableBehavior=dt(FS,null,r,n),t.trigger(e,a)}function FS(t,e,r){var n=r[t];return!t||n&&(!Ue(n)||e.event[n+"Key"])}var CIt={axisPointer:1,tooltip:1,brush:1};function TIt(t,e,r){var n=e.getComponentByElement(t.topTarget),a=n&&n.coordinateSystem;return n&&n!==r&&!CIt.hasOwnProperty(n.mainType)&&a&&a.model!==r}var hY=Co.prototype,tA=R0.prototype,Vte=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Vte);function rA(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var kIt=function(t){ve(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Vte},e.prototype.buildPath=function(r,n){rA(n)?hY.buildPath.call(this,r,n):tA.buildPath.call(this,r,n)},e.prototype.pointAt=function(r){return rA(this.shape)?hY.pointAt.call(this,r):tA.pointAt.call(this,r)},e.prototype.tangentAt=function(r){var n=this.shape,a=rA(n)?[n.x2-n.x1,n.y2-n.y1]:tA.tangentAt.call(this,r);return pT(a,a)},e}(fr),nA=["fromSymbol","toSymbol"];function pY(t){return"_"+t+"Type"}function mY(t,e,r){var n=e.getItemVisual(r,t);if(!n||n==="none")return n;var a=e.getItemVisual(r,t+"Size"),i=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=V0(a),c=G0(o||0,l);return n+l+c+(i||"")+(s||"")}function vY(t,e,r){var n=e.getItemVisual(r,t);if(!(!n||n==="none")){var a=e.getItemVisual(r,t+"Size"),i=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=V0(a),c=G0(o||0,l),d=ji(n,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,s);return d.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,d.name=t,d}}function EIt(t){var e=new kIt({name:"line",subPixelOptimize:!0});return cR(e.shape,t),e}function cR(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var r=e[2];r?(t.cpx1=r[0],t.cpy1=r[1]):(t.cpx1=NaN,t.cpy1=NaN)}var DIt=function(t){ve(e,t);function e(r,n,a){var i=t.call(this)||this;return i._createLine(r,n,a),i}return e.prototype._createLine=function(r,n,a){var i=r.hostModel,o=r.getItemLayout(n),s=EIt(o);s.shape.percent=0,Ea(s,{shape:{percent:1}},i,n),this.add(s),G(nA,function(l){var c=vY(l,r,n);this.add(c),this[pY(l)]=mY(l,r,n)},this),this._updateCommonStl(r,n,a)},e.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};cR(l.shape,s),xn(o,l,i,n),G(nA,function(c){var d=mY(c,r,n),u=pY(c);if(this[u]!==d){this.remove(this.childOfName(c));var f=vY(c,r,n);this.add(f)}this[u]=d},this),this._updateCommonStl(r,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,c=a&&a.selectLineStyle,d=a&&a.labelStatesModels,u=a&&a.emphasisDisabled,f=a&&a.focus,p=a&&a.blurScope;if(!a||r.hasItemOption){var v=r.getItemModel(n),g=v.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),c=v.getModel(["select","lineStyle"]).getLineStyle(),u=g.get("disabled"),f=g.get("focus"),p=g.get("blurScope"),d=md(v)}var _=r.getItemVisual(n,"style"),b=_.stroke;o.useStyle(_),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=c,G(nA,function(k){var O=this.childOfName(k);if(O){O.setColor(b),O.style.opacity=_.opacity;for(var R=0;R0&&(M[0]=-M[0],M[1]=-M[1]);var O=C[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var R=-Math.atan2(C[1],C[0]);u[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*b+d[0],i.y=-f[1]*w+d[1],v=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=b*O+d[0],i.y=d[1]+L,v=C[0]<0?"right":"left",i.originX=-b*O,i.originY=-L;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=k[0],i.y=k[1]+L,v="center",i.originY=-L;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-b*O+u[0],i.y=u[1]+L,v=C[0]>=0?"right":"left",i.originX=b*O,i.originY=-L;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||v})}},e}(Tr),MIt=function(){function t(e){this.group=new Tr,this._LineCtor=e||DIt}return t.prototype.updateData=function(e){var r=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=gY(e);e.diff(i).add(function(s){r._doAdd(e,s,o)}).update(function(s,l){r._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(r,n){r.updateLayout(e,n)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=gY(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r){this._progressiveEls=[];function n(s){!s.isGroup&&!OIt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function gY(t){var e=t.hostModel,r=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:md(e)}}function _Y(t){return isNaN(t[0])||isNaN(t[1])}function aA(t){return t&&!_Y(t[0])&&!_Y(t[1])}function Z0(t,e,r,n,a,i){t=t||0;var o=r[1]-r[0];if(a!=null&&(a=Xp(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=Xp(s,[0,o]),a=i=Xp(s,[a,i]),n=0}e[0]=Xp(e[0],r),e[1]=Xp(e[1],r);var l=iA(e,n);e[n]+=t;var c=a||0,d=r.slice();l.sign<0?d[0]+=c:d[1]-=c,e[n]=Xp(e[n],d);var u;return u=iA(e,n),a!=null&&(u.sign!==l.sign||u.spani&&(e[1-n]=e[n]+u.sign*i),e}function iA(t,e){var r=t[e]-t[1-e];return{span:Math.abs(r),sign:r>0?-1:r<0?1:e?-1:1}}function Xp(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var vh=!0,r0=Math.min,uv=Math.max,$It=Math.pow,AIt=1e4,PIt=6,IIt=6,yY="globalPan",RIt={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},LIt={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},bY={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},NIt=0,FIt=function(t){ve(e,t);function e(r){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new Tr,n._uid="brushController_"+NIt++,G(YIt,function(a,i){this._handlers[i]=dt(a,this)},n),n}return e.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},e.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||wIt(n,yY,this._uid),G(this._handlers,function(a,i){n.on(i,a)}),this._brushType=r.brushType,this._brushOption=Ot(St(bY),r,!0)},e.prototype._doDisableBrush=function(){var r=this._zr;SIt(r,yY,this._uid),G(this._handlers,function(n,a){r.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};G(r,function(a){n[a.panelId]=St(a)})}else this._panels=null;return this},e.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(r){r=Oe(r,function(f){return Ot(St(bY),f,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new a3(a,r,c,l).add(d).update(d).remove(u).execute(),this;function l(f,p){return(f.id!=null?f.id:n+p)+"-"+f.brushType}function c(f,p){return l(f.__brushOption,p)}function d(f,p){var v=r[f];if(p!=null&&a[p]===s)i[f]=a[p];else{var g=i[f]=p!=null?(a[p].__brushOption=v,a[p]):qte(o,Gte(o,v));y3(o,g)}}function u(f){a[f]!==s&&o.group.remove(a[f])}},e.prototype.unmount=function(){return this.enableBrush(!1),uR(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Do);function Gte(t,e){var r=ZT[e.brushType].createCover(t,e);return r.__brushOption=e,Jte(r,e),t.group.add(r),r}function qte(t,e){var r=b3(e);return r.endCreating&&(r.endCreating(t,e),Jte(e,e.__brushOption)),e}function Xte(t,e){var r=e.__brushOption;b3(e).updateCoverShape(t,e,r.range,r)}function Jte(t,e){var r=e.z;r==null&&(r=AIt),t.traverse(function(n){n.z=r,n.z2=r})}function y3(t,e){b3(e).updateCommon(t,e),Xte(t,e)}function b3(t){return ZT[t.__brushOption.brushType]}function w3(t,e,r){var n=t._panels;if(!n)return vh;var a,i=t._transform;return G(n,function(o){o.isTargetByCursor(e,r,i)&&(a=o)}),a}function Zte(t,e){var r=t._panels;if(!r)return vh;var n=e.__brushOption.panelId;return n!=null?r[n]:vh}function uR(t){var e=t._covers,r=e.length;return G(e,function(n){t.group.remove(n)},t),e.length=0,!!r}function gh(t,e){var r=Oe(t._covers,function(n){var a=n.__brushOption,i=St(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});t.trigger("brush",{areas:r,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function zIt(t){var e=t._track;if(!e.length)return!1;var r=e[e.length-1],n=e[0],a=r[0]-n[0],i=r[1]-n[1],o=$It(a*a+i*i,.5);return o>PIt}function Kte(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Qte(t,e,r,n){var a=new Tr;return a.add(new Ur({name:"main",style:S3(r),silent:!0,draggable:!0,cursor:"move",drift:Ht(wY,t,e,a,["n","s","w","e"]),ondragend:Ht(gh,e,{isEnd:!0})})),G(n,function(i){a.add(new Ur({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ht(wY,t,e,a,i),ondragend:Ht(gh,e,{isEnd:!0})}))}),a}function ere(t,e,r,n){var a=n.brushStyle.lineWidth||0,i=uv(a,IIt),o=r[0][0],s=r[1][0],l=o-a/2,c=s-a/2,d=r[0][1],u=r[1][1],f=d-i+a/2,p=u-i+a/2,v=d-o,g=u-s,_=v+a,b=g+a;rc(t,e,"main",o,s,v,g),n.transformable&&(rc(t,e,"w",l,c,i,b),rc(t,e,"e",f,c,i,b),rc(t,e,"n",l,c,_,i),rc(t,e,"s",l,p,_,i),rc(t,e,"nw",l,c,i,i),rc(t,e,"ne",f,c,i,i),rc(t,e,"sw",l,p,i,i),rc(t,e,"se",f,p,i,i))}function dR(t,e){var r=e.__brushOption,n=r.transformable,a=e.childAt(0);a.useStyle(S3(r)),a.attr({silent:!n,cursor:n?"move":"default"}),G([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?fR(t,i[0]):jIt(t,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?LIt[s]+"-resize":null})})}function rc(t,e,r,n,a,i,o){var s=e.childOfName(r);s&&s.setShape(HIt(x3(t,e,[[n,a],[n+i,a+o]])))}function S3(t){return Rt({strokeNoScale:!0},t.brushStyle)}function tre(t,e,r,n){var a=[r0(t,r),r0(e,n)],i=[uv(t,r),uv(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function BIt(t){return N0(t.group)}function fR(t,e){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=k5(r[e],BIt(t));return n[a]}function jIt(t,e){var r=[fR(t,e[0]),fR(t,e[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function wY(t,e,r,n,a,i){var o=r.__brushOption,s=t.toRectRange(o.range),l=rre(e,a,i);G(n,function(c){var d=RIt[c];s[d[0]][d[1]]+=l[d[0]]}),o.range=t.fromRectRange(tre(s[0][0],s[1][0],s[0][1],s[1][1])),y3(e,r),gh(e,{isEnd:!1})}function WIt(t,e,r,n){var a=e.__brushOption.range,i=rre(t,r,n);G(a,function(o){o[0]+=i[0],o[1]+=i[1]}),y3(t,e),gh(t,{isEnd:!1})}function rre(t,e,r){var n=t.group,a=n.transformCoordToLocal(e,r),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function x3(t,e,r){var n=Zte(t,e);return n&&n!==vh?n.clipPath(r,t._transform):St(r)}function HIt(t){var e=r0(t[0][0],t[1][0]),r=r0(t[0][1],t[1][1]),n=uv(t[0][0],t[1][0]),a=uv(t[0][1],t[1][1]);return{x:e,y:r,width:n-e,height:a-r}}function UIt(t,e,r){if(!(!t._brushType||VIt(t,e.offsetX,e.offsetY))){var n=t._zr,a=t._covers,i=w3(t,e,r);if(!t._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var ZT={lineX:CY(0),lineY:CY(1),rect:{createCover:function(t,e){function r(n){return n}return Qte({toRectRange:r,fromRectRange:r},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=Kte(t);return tre(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,r,n){ere(t,e,r,n)},updateCommon:dR,contain:pR},polygon:{createCover:function(t,e){var r=new Tr;return r.add(new Fc({name:"main",style:S3(e),silent:!0})),r},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Sl({name:"main",draggable:!0,drift:Ht(WIt,t,e),ondragend:Ht(gh,t,{isEnd:!0})}))},updateCoverShape:function(t,e,r,n){e.childAt(0).setShape({points:x3(t,e,r)})},updateCommon:dR,contain:pR}};function CY(t){return{createCover:function(e,r){return Qte({toRectRange:function(n){var a=[n,[0,100]];return t&&a.reverse(),a},fromRectRange:function(n){return n[t]}},e,r,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var r=Kte(e),n=r0(r[0][t],r[1][t]),a=uv(r[0][t],r[1][t]);return[n,a]},updateCoverShape:function(e,r,n,a){var i,o=Zte(e,r);if(o!==vh&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(t);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,i];t&&l.reverse(),ere(e,r,l,a)},updateCommon:dR,contain:pR}}function GIt(t){return t=C3(t),function(e){return E5(e,t)}}function qIt(t,e){return t=C3(t),function(r){var n=e??r,a=n?t.width:t.height,i=n?t.x:t.y;return[i,i+(a||0)]}}function XIt(t,e,r){var n=C3(t);return function(a,i){return n.contain(i[0],i[1])&&!TIt(a,e,r)}}function C3(t){return rr.create(t)}var Rf=Mr(),TY=St,oA=dt,JIt=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var c={};this.makeElOption(c,i,e,r,n);var d=c.graphicKey;d!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=d;var u=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new Tr,this.createPointerEl(s,c,e,r),this.createLabelEl(s,c,e,r),n.getZr().add(s);else{var f=Ht(kY,r,u);this.updatePointerEl(s,c,f),this.updateLabelEl(s,c,f,r)}DY(s,r,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),a=e.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=g3(e).seriesDataCount,c=a.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,a,i){},t.prototype.createPointerEl=function(e,r,n,a){var i=r.pointer;if(i){var o=Rf(e).pointerEl=new pQ[i.type](TY(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,a){if(r.label){var i=Rf(e).labelEl=new vn(TY(r.label));e.add(i),EY(i,a)}},t.prototype.updatePointerEl=function(e,r,n){var a=Rf(e).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,a){var i=Rf(e).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),EY(i,a))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Mv(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){av(c.event)},onmousedown:oA(this._onHandleDragMove,this,0,0),drift:oA(this._onHandleDragMove,this),ondragend:oA(this._onHandleDragEnd,this)}),n.add(a)),DY(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Re(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,zT(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){kY(this._axisPointerModel,!r&&this._moveAnimation,this._handle,sA(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(sA(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(sA(a)),Rf(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Wx(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t}();function kY(t,e,r,n){are(Rf(r).lastProp,n)||(Rf(r).lastProp=n,e?xn(r,n,t):(r.stopAnimation(),r.attr(n)))}function are(t,e){if(ft(t)&&ft(e)){var r=!0;return G(e,function(n,a){r=r&&are(t[a],n)}),!!r}else return t===e}function EY(t,e){t[e.get(["label","show"])?"show":"hide"]()}function sA(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function DY(t,e,r){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}function ZIt(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function KIt(t,e,r,n,a){var i=r.get("value"),o=ire(i,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=H0(s.get("padding")||0),c=s.getFont(),d=gT(o,c),u=a.position,f=d.width+l[1]+l[3],p=d.height+l[0]+l[2],v=a.align;v==="right"&&(u[0]-=f),v==="center"&&(u[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(u[1]-=p),g==="middle"&&(u[1]-=p/2),QIt(u,f,p,n);var _=s.get("backgroundColor");(!_||_==="auto")&&(_=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:Ni(s,{text:o,font:c,fill:s.getTextColor(),padding:l,backgroundColor:_}),z2:10}}function QIt(t,e,r,n){var a=n.getWidth(),i=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+r,i)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function ire(t,e,r,n,a){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:a.precision}),o=a.formatter;if(o){var s={value:u3(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};G(n,function(l){var c=r.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,u=c&&c.getDataParams(d);u&&s.seriesData.push(u)}),Ue(o)?i=o.replace("{value}",i):wt(o)&&(i=o(s))}return i}function ore(t,e,r){var n=wc();return O0(n,n,r.rotation),iv(n,n,r.position),sv([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function eRt(t,e,r,n,a,i){var o=Sc.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),KIt(e,n,a,i,{position:ore(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function tRt(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function rRt(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var nRt=function(t){ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,c=i.get("type"),d=MY(l,s).getOtherAxis(s).getGlobalExtent(),u=s.toGlobalCoord(s.dataToCoord(n,!0));if(c&&c!=="none"){var f=ZIt(i),p=aRt[c](s,u,d);p.style=f,r.graphicKey=p.type,r.pointer=p}var v=oR(l.model,a);eRt(n,r,v,a,i,o)},e.prototype.getHandleTransform=function(r,n,a){var i=oR(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=ore(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),c=MY(s,o).getOtherAxis(o).getGlobalExtent(),d=o.dim==="x"?0:1,u=[r.x,r.y];u[d]+=n[d],u[d]=Math.min(l[1],u[d]),u[d]=Math.max(l[0],u[d]);var f=(c[1]+c[0])/2,p=[f,f];p[d]=u[d];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:r.rotation,cursorPoint:p,tooltipOption:v[d]}},e}(JIt);function MY(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var aRt={line:function(t,e,r){var n=tRt([e,r[0]],[e,r[1]],OY(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:rRt([e-n/2,r[0]],[n,a],OY(t))}}};function OY(t){return t.dim==="x"?0:1}var iRt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Jt),mc=Mr(),oRt=G;function sre(t,e,r){if(!xt.node){var n=e.getZr();mc(n).records||(mc(n).records={}),sRt(n,e);var a=mc(n).records[t]||(mc(n).records[t]={});a.handler=r}}function sRt(t,e){if(mc(t).initialized)return;mc(t).initialized=!0,r("click",Ht($Y,"click")),r("mousemove",Ht($Y,"mousemove")),r("globalout",cRt);function r(n,a){t.on(n,function(i){var o=uRt(e);oRt(mc(t).records,function(s){s&&a(s,i,o.dispatchAction)}),lRt(o.pendings,e)})}}function lRt(t,e){var r=t.showTip.length,n=t.hideTip.length,a;r?a=t.showTip[r-1]:n&&(a=t.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function cRt(t,e,r){t.handler("leave",null,r)}function $Y(t,e,r,n){e.handler(t,r,n)}function uRt(t){var e={showTip:[],hideTip:[]},r=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function mR(t,e){if(!xt.node){var r=e.getZr(),n=(mc(r).records||{})[t];n&&(mc(r).records[t]=null)}}var dRt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";sre("axisPointer",a,function(s,l,c){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&c({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){mR("axisPointer",n)},e.prototype.dispose=function(r,n){mR("axisPointer",n)},e.type="axisPointer",e}(Cn);function lre(t,e){var r=[],n=t.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=dh(i,t);if(o==null||o<0||Re(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var c=l.getBaseAxis(),d=l.getOtherAxis(c),u=d.dim,f=c.dim,p=u==="x"||u==="radius"?1:0,v=i.mapDimension(f),g=[];g[p]=i.get(v,o),g[1-p]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(i.getValues(Oe(l.dimensions,function(b){return i.mapDimension(b)}),o))||[];else if(s){var _=s.getBoundingRect().clone();_.applyTransform(s.transform),r=[_.x+_.width/2,_.y+_.height/2]}return{point:r,el:s}}var AY=Mr();function fRt(t,e,r){var n=t.currTrigger,a=[t.x,t.y],i=t,o=t.dispatchAction||dt(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){zS(a)&&(a=lre({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=zS(a),c=i.axesInfo,d=s.axesInfo,u=n==="leave"||zS(a),f={},p={},v={list:[],map:{}},g={showPointer:Ht(pRt,p),showTooltip:Ht(mRt,v)};G(s.coordSysMap,function(b,w){var x=l||b.containPoint(a);G(s.coordSysAxesInfo[w],function(C,M){var k=C.axis,O=yRt(c,C);if(!u&&x&&(!c||O)){var R=O&&O.value;R==null&&!l&&(R=k.pointToData(a)),R!=null&&PY(C,R,g,!1,f)}})});var _={};return G(d,function(b,w){var x=b.linkGroup;x&&!p[w]&&G(x.axesInfo,function(C,M){var k=p[M];if(C!==b&&k){var O=k.value;x.mapper&&(O=b.axis.scale.parse(x.mapper(O,IY(C),IY(b)))),_[b.key]=O}})}),G(_,function(b,w){PY(d[w],b,g,!0,f)}),vRt(p,d,f),gRt(v,a,t,o),_Rt(d,o,r),f}}function PY(t,e,r,n,a){var i=t.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=hRt(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&De(a,s[0]),!n&&t.snap&&i.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function hRt(t,e){var r=e.axis,n=r.dim,a=t,i=[],o=Number.MAX_VALUE,s=-1;return G(e.seriesModels,function(l,c){var d=l.getData().mapDimensionsAll(n),u,f;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(d,t,r);f=p.dataIndices,u=p.nestestValue}else{if(f=l.getData().indicesOfNearest(d[0],t,r.type==="category"?.5:null),!f.length)return;u=l.getData().get(d[0],f[0])}if(!(u==null||!isFinite(u))){var v=t-u,g=Math.abs(v);g<=o&&((g=0&&s<0)&&(o=g,s=v,a=u,i.length=0),G(f,function(_){i.push({seriesIndex:l.seriesIndex,dataIndexInside:_,dataIndex:l.getData().getRawIndex(_)})}))}}),{payloadBatch:i,snapToValue:a}}function pRt(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function mRt(t,e,r,n){var a=r.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,c=t0(l),d=t.map[c];d||(d=t.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(d)),d.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function vRt(t,e,r){var n=r.axesInfo=[];G(e,function(a,i){var o=a.axisPointerModel.option,s=t[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function gRt(t,e,r,n){if(zS(e)||!t.list.length){n({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function _Rt(t,e,r){var n=r.getZr(),a="axisPointerLastHighlights",i=AY(n)[a]||{},o=AY(n)[a]={};G(t,function(c,d){var u=c.axisPointerModel.option;u.status==="show"&&c.triggerEmphasis&&G(u.seriesDataIndices,function(f){var p=f.seriesIndex+" | "+f.dataIndex;o[p]=f})});var s=[],l=[];G(i,function(c,d){!o[d]&&l.push(c)}),G(o,function(c,d){!i[d]&&s.push(c)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function yRt(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function IY(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function zS(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function cre(t){jte.registerAxisPointerClass("CartesianAxisPointer",nRt),t.registerComponentModel(iRt),t.registerComponentView(dRt),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!Re(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=XPt(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},fRt)}function RY(t){oa(Ute),oa(cre)}var LY=["x","y","radius","angle","single"],bRt=["cartesian2d","polar","singleAxis"];function wRt(t){var e=t.get("coordinateSystem");return Yt(bRt,e)>=0}function Vu(t){return t+"Axis"}function SRt(t,e){var r=Ct(),n=[],a=Ct();t.eachComponent({mainType:"dataZoom",query:e},function(d){a.get(d.uid)||s(d)});var i;do i=!1,t.eachComponent("dataZoom",o);while(i);function o(d){!a.get(d.uid)&&l(d)&&(s(d),i=!0)}function s(d){a.set(d.uid,!0),n.push(d),c(d)}function l(d){var u=!1;return d.eachTargetAxis(function(f,p){var v=r.get(f);v&&v[p]&&(u=!0)}),u}function c(d){d.eachTargetAxis(function(u,f){(r.get(u)||r.set(u,[]))[f]=!0})}return n}function ure(t){var e=t.ecModel,r={infoList:[],infoMap:Ct()};return t.eachTargetAxis(function(n,a){var i=e.getComponent(Vu(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(i)}}}),r}var lA=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t}(),n0=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return e.prototype.init=function(r,n,a){var i=NY(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},e.prototype.mergeOption=function(r){var n=NY(r);Ot(this.option,r,!0),Ot(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;G([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=Ct(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return G(LY,function(a){var i=this.getReferringComponents(Vu(a),i2t);if(i.specified){n=!0;var o=new lA;G(i.models,function(s){o.add(s.componentIndex)}),r.set(a,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(r,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(d){return d.get("orient",!0)===n}});l(s,"single")}function l(c,d){var u=c[0];if(u){var f=new lA;if(f.add(u.componentIndex),r.set(d,f),i=!1,d==="x"||d==="y"){var p=u.getReferringComponents("grid",za).models[0];p&&G(c,function(v){u.componentIndex!==v.componentIndex&&p===v.getReferringComponents("grid",za).models[0]&&f.add(v.componentIndex)})}}}i&&G(LY,function(c){if(i){var d=a.findComponents({mainType:Vu(c),filter:function(f){return f.get("type",!0)==="category"}});if(d[0]){var u=new lA;u.add(d[0].componentIndex),r.set(c,u),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(r){var n=this._rangePropMode,a=this.get("rangeMode");G([["start","startValue"],["end","endValue"]],function(i,o){var s=r[i[0]]!=null,l=r[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(Vu(n),a))},this),r},e.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,i){G(a.indexList,function(o){r.call(n,i,o)})})},e.prototype.getAxisProxy=function(r,n){var a=this.getAxisModel(r,n);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(r,n){var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(Vu(r),n)},e.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;G([["start","startValue"],["end","endValue"]],function(i){(r[i[0]]!=null||r[i[1]]!=null)&&(n[i[0]]=a[i[0]]=r[i[0]],n[i[1]]=a[i[1]]=r[i[1]])},this),this._updateRangeUse(r)},e.prototype.setCalculatedRange=function(r){var n=this.option;G(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},e.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},e.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(x&&!C&&!M)return!0;x&&(_=!0),C&&(v=!0),M&&(g=!0)}return _&&v&&g})}else _m(d,function(p){if(i==="empty")l.setData(c=c.map(p,function(g){return s(g)?g:NaN}));else{var v={};v[p]=o,c.selectRange(v)}});_m(d,function(p){c.setApproximateExtent(o,p)})}});function s(l){return l>=o[0]&&l<=o[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;_m(["min","max"],function(a){var i=r.get(a+"Span"),o=r.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=ra(n[0]+o,n,[0,100],!0):i!=null&&(o=ra(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var a=c5(n,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;r[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),r[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},t}();function kRt(t,e,r){var n=[1/0,-1/0];_m(r,function(o){aAt(n,o.getData(),e)});var a=t.getAxisModel(),i=Zee(a.axis.scale,a,n).calculate();return[i.min,i.max]}var ERt={getTargetSeries:function(t){function e(a){t.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=t.getComponent(Vu(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var r=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new TRt(a,i,s,t),r.push(o.__dzAxisProxy))});var n=Ct();return G(r,function(a){G(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(t,e){t.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).reset(r)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,e)})}),t.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();r.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function DRt(t){t.registerAction("dataZoom",function(e,r){var n=SRt(r,e);G(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var zY=!1;function k3(t){zY||(zY=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,ERt),DRt(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function MRt(t){t.registerComponentModel(xRt),t.registerComponentView(CRt),k3(t)}var rs=function(){function t(){}return t}(),dre={};function k_(t,e){dre[t]=e}function fre(t){return dre[t]}var ORt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;G(this.option.feature,function(n,a){var i=fre(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(r)),Ot(n,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Jt);function $Rt(t,e,r){var n=e.getBoxLayoutParams(),a=e.get("padding"),i={width:r.getWidth(),height:r.getHeight()},o=xl(n,i,a);Um(e.get("orient"),t,e.get("itemGap"),o.width,o.height),MDt(t,n,i,a)}function hre(t,e){var r=H0(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new Ur({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var ARt=function(t){ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,a,i){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",c=r.get("feature")||{},d=this._features||(this._features={}),u=[];G(c,function(v,g){u.push(g)}),new a3(this._featureNames||[],u).add(f).update(f).remove(Ht(f,null)).execute(),this._featureNames=u;function f(v,g){var _=u[v],b=u[g],w=c[_],x=new $r(w,r,r.ecModel),C;if(i&&i.newTitle!=null&&i.featureName===_&&(w.title=i.newTitle),_&&!b){if(PRt(_))C={onclick:x.option.onclick,featureName:_};else{var M=fre(_);if(!M)return;C=new M}d[_]=C}else if(C=d[b],!C)return;C.uid=B0("toolbox-feature"),C.model=x,C.ecModel=n,C.api=a;var k=C instanceof rs;if(!_&&b){k&&C.dispose&&C.dispose(n,a);return}if(!x.get("show")||k&&C.unusable){k&&C.remove&&C.remove(n,a);return}p(x,C,_),x.setIconStatus=function(O,R){var L=this.option,$=this.iconPaths;L.iconStatus=L.iconStatus||{},L.iconStatus[O]=R,$[O]&&(R==="emphasis"?fh:hh)($[O])},C instanceof rs&&C.render&&C.render(x,n,a,i)}function p(v,g,_){var b=v.getModel("iconStyle"),w=v.getModel(["emphasis","iconStyle"]),x=g instanceof rs&&g.getIcons?g.getIcons():v.get("icon"),C=v.get("title")||{},M,k;Ue(x)?(M={},M[_]=x):M=x,Ue(C)?(k={},k[_]=C):k=C;var O=v.iconPaths={};G(M,function(R,L){var $=Mv(R,{},{x:-s/2,y:-s/2,width:s,height:s});$.setStyle(b.getItemStyle());var N=$.ensureState("emphasis");N.style=w.getItemStyle();var W=new vn({style:{text:k[L],align:w.get("textAlign"),borderRadius:w.get("textBorderRadius"),padding:w.get("textPadding"),fill:null,font:vQ({fontStyle:w.get("textFontStyle"),fontFamily:w.get("textFontFamily"),fontSize:w.get("textFontSize"),fontWeight:w.get("textFontWeight")},n)},ignore:!0});$.setTextContent(W),F0({el:$,componentModel:r,itemName:L,formatterParamsExtra:{title:k[L]}}),$.__title=k[L],$.on("mouseover",function(){var j=w.getItemStyle(),Y=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";W.setStyle({fill:w.get("textFill")||j.fill||j.stroke||"#000",backgroundColor:w.get("textBackgroundColor")}),$.setTextConfig({position:w.get("textPosition")||Y}),W.ignore=!r.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",L])!=="emphasis"&&a.leaveEmphasis(this),W.hide()}),(v.get(["iconStatus",L])==="emphasis"?fh:hh)($),o.add($),$.on("click",dt(g.onclick,g,n,a,L)),O[L]=$})}$Rt(o,r,a),o.add(hre(o.getBoundingRect(),r)),l||o.eachChild(function(v){var g=v.__title,_=v.ensureState("emphasis"),b=_.textConfig||(_.textConfig={}),w=v.getTextContent(),x=w&&w.ensureState("emphasis");if(x&&!wt(x)&&g){var C=x.style||(x.style={}),M=gT(g,vn.makeFont(C)),k=v.x+o.x,O=v.y+o.y+s,R=!1;O+M.height>a.getHeight()&&(b.position="top",R=!0);var L=R?-5-M.height:s+10;k+M.width/2>a.getWidth()?(b.position=["100%",L],C.align="right"):k-M.width/2<0&&(b.position=[0,L],C.align="left")}})},e.prototype.updateView=function(r,n,a,i){G(this._features,function(o){o instanceof rs&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.remove=function(r,n){G(this._features,function(a){a instanceof rs&&a.remove&&a.remove(r,n)}),this.group.removeAll()},e.prototype.dispose=function(r,n){G(this._features,function(a){a instanceof rs&&a.dispose&&a.dispose(r,n)})},e.type="toolbox",e}(Cn);function PRt(t){return t.indexOf("my")===0}var IRt=function(t){ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,n){var a=this.model,i=a.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),c=xt.browser;if(typeof MouseEvent=="function"&&(c.newEdge||!c.ie&&!c.edge)){var d=document.createElement("a");d.download=i+"."+s,d.target="_blank",d.href=l;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});d.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),p=f[0].indexOf("base64")>-1,v=o?decodeURIComponent(f[1]):f[1];p&&(v=window.atob(v));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var _=v.length,b=new Uint8Array(_);_--;)b[_]=v.charCodeAt(_);var w=new Blob([b]);window.navigator.msSaveOrOpenBlob(w,g)}else{var x=document.createElement("iframe");document.body.appendChild(x);var C=x.contentWindow,M=C.document;M.open("image/svg+xml","replace"),M.write(v),M.close(),C.focus(),M.execCommand("SaveAs",!0,g),document.body.removeChild(x)}}else{var k=a.get("lang"),O='',R=window.open();R.document.write(O),R.document.title=i}},e.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(rs),BY="__ec_magicType_stack__",RRt=[["line","bar"],["stack"]],LRt=function(t){ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),a={};return G(r.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(r,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(jY[a]){var s={series:[]},l=function(u){var f=u.subType,p=u.id,v=jY[a](f,p,u,i);v&&(Rt(v,u.option),s.series.push(v));var g=u.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var _=g.getAxesByScale("ordinal")[0];if(_){var b=_.dim,w=b+"Axis",x=u.getReferringComponents(w,za).models[0],C=x.componentIndex;s[w]=s[w]||[];for(var M=0;M<=C;M++)s[w][C]=s[w][C]||{};s[w][C].boundaryGap=a==="bar"}}};G(RRt,function(u){Yt(u,a)>=0&&G(u,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var c,d=a;a==="stack"&&(c=Ot({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(d="tiled")),n.dispatchAction({type:"changeMagicType",currentType:d,newOption:s,newTitle:c,featureName:"magicType"})}},e}(rs),jY={line:function(t,e,r,n){if(t==="bar")return Ot({id:e,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(t,e,r,n){if(t==="line")return Ot({id:e,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(t,e,r,n){var a=r.get("stack")===BY;if(t==="line"||t==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Ot({id:e,stack:a?"":BY},n.get(["option","stack"])||{},!0)}};Ao({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var KT=new Array(60).join("-"),dv=" ";function NRt(t){var e={},r=[],n=[];return t.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else r.push(a)}else r.push(a)}),{seriesGroupByCategoryAxis:e,other:r,meta:n}}function FRt(t){var e=[];return G(t,function(r,n){var a=r.categoryAxis,i=r.valueAxis,o=i.dim,s=[" "].concat(Oe(r.series,function(p){return p.name})),l=[a.model.getCategories()];G(r.series,function(p){var v=p.getRawData();l.push(p.getRawData().mapArray(v.mapDimension(o),function(g){return g}))});for(var c=[s.join(dv)],d=0;d=0)return!0}var vR=new RegExp("["+dv+"]+","g");function WRt(t){for(var e=t.split(/\n+/g),r=Kx(e.shift()).split(vR),n=[],a=Oe(r,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=r[i];if(o[a])break}if(i<0){var s=t.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();r[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),r.push(e)}function qRt(t){var e=E3(t),r=e[e.length-1];e.length>1&&e.pop();var n={};return pre(r,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){n[i]=a;break}}),n}function XRt(t){mre(t).snapshots=null}function JRt(t){return E3(t).length}function E3(t){var e=mre(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var ZRt=function(t){ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,n){XRt(r),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},e}(rs);Ao({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var KRt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],vre=function(){function t(e,r,n){var a=this;this._targetInfoList=[];var i=WY(r,e);G(QRt,function(o,s){(!n||!n.include||Yt(n.include,s)>=0)&&o(i,a._targetInfoList)})}return t.prototype.setOutputRanges=function(e,r){return this.matchOutputRanges(e,r,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=cA[n.brushType](0,i,a);n.__rangeOffset={offset:VY[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,r,n){G(e,function(a){var i=this.findTargetInfo(a,r);i&&i!==!0&&G(i.coordSyses,function(o){var s=cA[a.brushType](1,o,a.range,!0);n(a,s.values,o,r)})},this)},t.prototype.setInputRanges=function(e,r){G(e,function(n){var a=this.findTargetInfo(n,r);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=cA[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?VY[n.brushType](i.values,o.offset,eLt(i.xyMinMax,o.xyMinMax)):i.values}},this)},t.prototype.makePanelOpts=function(e,r){return Oe(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:GIt(a),isTargetByCursor:XIt(a,e,n.coordSysModel),getLinearBrushOtherExtent:qIt(a)}})},t.prototype.controlSeries=function(e,r,n){var a=this.findTargetInfo(e,n);return a===!0||a&&Yt(a.coordSyses,r.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,r){for(var n=this._targetInfoList,a=WY(r,e),i=0;it[1]&&t.reverse(),t}function WY(t,e){return cy(t,e,{includeMainTypes:KRt})}var QRt={grid:function(t,e){var r=t.xAxisModels,n=t.yAxisModels,a=t.gridModels,i=Ct(),o={},s={};!r&&!n&&!a||(G(r,function(l){var c=l.axis.grid.model;i.set(c.id,c),o[c.id]=!0}),G(n,function(l){var c=l.axis.grid.model;i.set(c.id,c),s[c.id]=!0}),G(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var c=l.coordinateSystem,d=[];G(c.getCartesians(),function(u,f){(Yt(r,u.getAxis("x").model)>=0||Yt(n,u.getAxis("y").model)>=0)&&d.push(u)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:d[0],coordSyses:d,getPanelRect:UY.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(t,e){G(t.geoModels,function(r){var n=r.coordinateSystem;e.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:UY.geo})})}},HY=[function(t,e){var r=t.xAxisModel,n=t.yAxisModel,a=t.gridModel;return!a&&r&&(a=r.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(t,e){var r=t.geoModel;return r&&r===e.geoModel}],UY={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(N0(t)),e}},cA={lineX:Ht(YY,0),lineY:Ht(YY,1),rect:function(t,e,r,n){var a=t?e.pointToData([r[0][0],r[1][0]],n):e.dataToPoint([r[0][0],r[1][0]],n),i=t?e.pointToData([r[0][1],r[1][1]],n):e.dataToPoint([r[0][1],r[1][1]],n),o=[gR([a[0],i[0]]),gR([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,r,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=Oe(r,function(o){var s=t?e.pointToData(o,n):e.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function YY(t,e,r,n){var a=r.getAxis(["x","y"][t]),i=gR(Oe([0,1],function(s){return e?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[t]=i,o[1-t]=[NaN,NaN],{values:i,xyMinMax:o}}var VY={lineX:Ht(GY,0),lineY:Ht(GY,1),rect:function(t,e,r){return[[t[0][0]-r[0]*e[0][0],t[0][1]-r[0]*e[0][1]],[t[1][0]-r[1]*e[1][0],t[1][1]-r[1]*e[1][1]]]},polygon:function(t,e,r){return Oe(t,function(n,a){return[n[0]-r[0]*e[a][0],n[1]-r[1]*e[a][1]]})}};function GY(t,e,r,n){return[e[0]-n[t]*r[0],e[1]-n[t]*r[1]]}function eLt(t,e){var r=qY(t),n=qY(e),a=[r[0]/n[0],r[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function qY(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var _R=G,tLt=t2t("toolbox-dataZoom_"),rLt=function(t){ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,a,i){this._brushController||(this._brushController=new FIt(a.getZr()),this._brushController.on("brush",dt(this._onBrush,this)).mount()),iLt(r,n,this,i,a),aLt(r,n)},e.prototype.onclick=function(r,n,a){nLt[a].call(this)},e.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new vre(D3(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(c,d,u){if(u.type==="cartesian2d"){var f=c.brushType;f==="rect"?(s("x",u,d[0]),s("y",u,d[1])):s({lineX:"x",lineY:"y"}[f],u,d)}}),GRt(i,a),this._dispatchZoomAction(a);function s(c,d,u){var f=d.getAxis(c),p=f.model,v=l(c,p,i),g=v.findRepresentativeAxisProxy(p).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(u=Z0(0,u.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:u[0],endValue:u[1]})}function l(c,d,u){var f;return u.eachComponent({mainType:"dataZoom",subType:"select"},function(p){var v=p.getAxisModel(c,d.componentIndex);v&&(f=p)}),f}},e.prototype._dispatchZoomAction=function(r){var n=[];_R(r,function(a,i){n.push(St(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},e}(rs),nLt={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(qRt(this.ecModel))}};function D3(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function aLt(t,e){t.setIconStatus("back",JRt(e)>1?"emphasis":"normal")}function iLt(t,e,r,n,a){var i=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=i,t.setIconStatus("zoom",i?"emphasis":"normal");var o=new vre(D3(t),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}FDt("dataZoom",function(t){var e=t.getComponent("toolbox",0),r=["feature","dataZoom"];if(!e||e.get(r)==null)return;var n=e.getModel(r),a=[],i=D3(n),o=cy(t,i);_R(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),_R(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,c,d){var u=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:tLt+c+u};f[d]=u,a.push(f)}return a});function oLt(t){t.registerComponentModel(ORt),t.registerComponentView(ARt),k_("saveAsImage",IRt),k_("magicType",LRt),k_("dataView",YRt),k_("dataZoom",rLt),k_("restore",ZRt),oa(MRt)}var sLt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Jt);function gre(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function _re(t){if(xt.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(c=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c=i==="top"?225:45)+"deg)");var d=c*Math.PI/180,u=o+a,f=u*Math.abs(Math.cos(d))+u*Math.abs(Math.sin(d)),p=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-u)/2)*100)/100;s+=";"+i+":-"+p+"px";var v=e+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'
'}function pLt(t,e){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+r,a="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+r,a+=xt.transformSupported?","+M3+n:",left"+n+",top"+n),uLt+":"+a}function XY(t,e,r){var n=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!xt.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=xt.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+M3+":"+o+";":[["top",0],["left",0],[yre,o]]}function mLt(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var a=mt(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+a+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),G(["decoration","align"],function(c){var d=t.get(c);d&&e.push("text-"+c+":"+d)}),e.join(";")}function vLt(t,e,r){var n=[],a=t.get("transitionDuration"),i=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),d=t.getModel("textStyle"),u=tee(t,"html"),f=l+"px "+c+"px "+o+"px "+s;return n.push("box-shadow:"+f),e&&a&&n.push(pLt(a,r)),i&&n.push("background-color:"+i),G(["width","color","radius"],function(p){var v="border-"+p,g=I5(v),_=t.get(g);_!=null&&n.push(v+":"+_+(p==="color"?"":"px"))}),n.push(mLt(d)),u!=null&&n.push("padding:"+H0(u).join("px ")+"px"),n.join(";")+";"}function JY(t,e,r,n,a){var i=e&&e.painter;if(r){var o=i&&i.getViewportRoot();o&&TTt(t,o,r,n,a)}else{t[0]=n,t[1]=a;var s=i&&i.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var gLt=function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,xt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=r.appendTo,o=i&&(Ue(i)?document.querySelector(i):uh(i)?i:wt(i)&&i(e.getDom()));JY(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var c=a.handler,d=a.painter.getViewportRoot();ao(d,l,!0),c.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=cLt(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=dLt+vLt(e,!this._firstShow,this._longHide)+XY(i[0],i[1],!0)+("border-color:"+mh(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Ue(i)&&n.get("trigger")==="item"&&!gre(n)&&(s=hLt(n,a,i)),Ue(e))o.innerHTML=e+s;else if(e){o.innerHTML="",Re(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||xt.node||!a.getDom())){var o=QY(i,a);this._ticket="";var s=i.dataByCoordSys,l=CLt(i,n,a);if(l){var c=l.el.getBoundingRect().clone();c.applyTransform(l.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var d=yLt;d.x=i.x,d.y=i.y,d.update(),Wt(d).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:d},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,i))return;var u=lre(i,n),f=u.point[0],p=u.point[1];f!=null&&p!=null&&this._tryShow({offsetX:f,offsetY:p,target:u.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(QY(i,a))},e.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var c=n.getSeriesByIndex(o);if(c){var d=c.getData(),u=E_([d.getItemModel(s),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(u.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){var s=Wt(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,c;q_(a,function(d){if(Wt(d).dataIndex!=null)return l=d,!0;if(Wt(d).tooltipConfig!=null)return c=d,!0},!0),l?this._showSeriesItemTooltip(r,l,n):c?this._showComponentItemTooltip(r,c,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=dt(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=E_([n.tooltipOption],i),l=this._renderMode,c=[],d=Cl("section",{blocks:[],noHeader:!0}),u=[],f=new M$;G(r,function(w){G(w.dataByAxis,function(x){var C=a.getComponent(x.axisDim+"Axis",x.axisIndex),M=x.value;if(!(!C||M==null)){var k=ire(M,C.axis,a,x.seriesDataIndices,x.valueLabelOpt),O=Cl("section",{header:k,noHeader:!ss(k),sortBlocks:!0,blocks:[]});d.blocks.push(O),G(x.seriesDataIndices,function(R){var L=a.getSeriesByIndex(R.seriesIndex),$=R.dataIndexInside,N=L.getDataParams($);if(!(N.dataIndex<0)){N.axisDim=x.axisDim,N.axisIndex=x.axisIndex,N.axisType=x.axisType,N.axisId=x.axisId,N.axisValue=u3(C.axis,{value:M}),N.axisValueLabel=k,N.marker=f.makeTooltipMarker("item",mh(N.color),l);var W=AH(L.formatTooltip($,!0,null)),j=W.frag;if(j){var Y=E_([L],i).get("valueFormatter");O.blocks.push(Y?De({valueFormatter:Y},j):j)}W.text&&u.push(W.text),c.push(N)}})}})}),d.blocks.reverse(),u.reverse();var p=n.position,v=s.get("order"),g=FH(d,f,l,v,a.get("useUTC"),s.get("textStyle"));g&&u.unshift(g);var _=l==="richText"?` - -`:"
",b=u.join(_);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,c)?this._updatePosition(s,p,o[0],o[1],this._tooltipContent,c):this._showTooltipContent(s,b,c,Math.random()+"",o[0],o[1],p,null,f)})},e.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=Wt(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),c=o.dataModel||l,d=o.dataIndex,u=o.dataType,f=c.getData(u),p=this._renderMode,v=r.positionDefault,g=E_([f.getItemModel(d),c,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),_=g.get("trigger");if(!(_!=null&&_!=="item")){var b=c.getDataParams(d,u),w=new M$;b.marker=w.makeTooltipMarker("item",mh(b.color),p);var x=AH(c.formatTooltip(d,!1,u)),C=g.get("order"),M=g.get("valueFormatter"),k=x.frag,O=k?FH(M?De({valueFormatter:M},k):k,w,p,C,i.get("useUTC"),g.get("textStyle")):x.text,R="item_"+c.name+"_"+d;this._showOrMove(g,function(){this._showTooltipContent(g,O,b,R,r.offsetX,r.offsetY,r.position,r.target,w)}),a({type:"showTip",dataIndexInside:d,dataIndex:f.getRawIndex(d),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,a){var i=this._renderMode==="html",o=Wt(n),s=o.tooltipConfig,l=s.option||{},c=l.encodeHTMLContent;if(Ue(l)){var d=l;l={content:d,formatter:d},c=!0}c&&i&&l.content&&(l=St(l),l.content=xa(l.content));var u=[l],f=this._ecModel.getComponent(o.componentMainType,o.componentIndex);f&&u.push(f),u.push({formatter:l.content});var p=r.positionDefault,v=E_(u,this._tooltipModel,p?{position:p}:null),g=v.get("content"),_=Math.random()+"",b=new M$;this._showOrMove(v,function(){var w=St(v.get("formatterParams")||{});this._showTooltipContent(v,g,w,_,r.offsetX,r.offsetY,r.position,n,b)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,a,i,o,s,l,c,d){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var u=this._tooltipContent;u.setEnterable(r.get("enterable"));var f=r.get("formatter");l=l||r.get("position");var p=n,v=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor")),g=v.color;if(f)if(Ue(f)){var _=r.ecModel.get("useUTC"),b=Re(a)?a[0]:a,w=b&&b.axisType&&b.axisType.indexOf("time")>=0;p=f,w&&(p=W0(b.axisValue,p,_)),p=R5(p,a,!0)}else if(wt(f)){var x=dt(function(C,M){C===this._ticket&&(u.setContent(M,d,r,g,l),this._updatePosition(r,l,o,s,u,a,c))},this);this._ticket=i,p=f(a,i,x)}else p=f;u.setContent(p,d,r,g,l),u.show(r,g),this._updatePosition(r,l,o,s,u,a,c)}},e.prototype._getNearestPoint=function(r,n,a,i){if(a==="axis"||Re(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Re(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,a,i,o,s,l){var c=this._api.getWidth(),d=this._api.getHeight();n=n||r.get("position");var u=o.getSize(),f=r.get("align"),p=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),wt(n)&&(n=n([a,i],s,o.el,v,{viewSize:[c,d],contentSize:u.slice()})),Re(n))a=Hr(n[0],c),i=Hr(n[1],d);else if(ft(n)){var g=n;g.width=u[0],g.height=u[1];var _=xl(g,{width:c,height:d});a=_.x,i=_.y,f=null,p=null}else if(Ue(n)&&l){var b=xLt(n,v,u,r.get("borderWidth"));a=b[0],i=b[1]}else{var b=wLt(a,i,o,c,d,f?null:20,p?null:20);a=b[0],i=b[1]}if(f&&(a-=eV(f)?u[0]/2:f==="right"?u[0]:0),p&&(i-=eV(p)?u[1]/2:p==="bottom"?u[1]:0),gre(r)){var b=SLt(a,i,o,c,d);a=b[0],i=b[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&G(a,function(s,l){var c=s.dataByAxis||[],d=r[l]||{},u=d.dataByAxis||[];o=o&&c.length===u.length,o&&G(c,function(f,p){var v=u[p]||{},g=f.seriesDataIndices||[],_=v.seriesDataIndices||[];o=o&&f.value===v.value&&f.axisType===v.axisType&&f.axisId===v.axisId&&g.length===_.length,o&&G(g,function(b,w){var x=_[w];o=o&&b.seriesIndex===x.seriesIndex&&b.dataIndex===x.dataIndex}),i&&G(f.seriesDataIndices,function(b){var w=b.seriesIndex,x=n[w],C=i[w];x&&C&&C.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){xt.node||!n.getDom()||(Wx(this,"_updatePosition"),this._tooltipContent.dispose(),mR("itemTooltip",n))},e.type="tooltip",e}(Cn);function E_(t,e,r){var n=e.ecModel,a;r?(a=new $r(r,n,n),a=new $r(e.option,a,n)):a=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof $r&&(o=o.get("tooltip",!0)),Ue(o)&&(o={formatter:o}),o&&(a=new $r(o,a,n)))}return a}function QY(t,e){return t.dispatchAction||dt(e.dispatchAction,e)}function wLt(t,e,r,n,a,i,o){var s=r.getSize(),l=s[0],c=s[1];return i!=null&&(t+l+i+2>n?t-=l+i:t+=i),o!=null&&(e+c+o>a?e-=c+o:e+=o),[t,e]}function SLt(t,e,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function xLt(t,e,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,c=e.width,d=e.height;switch(t){case"inside":s=e.x+c/2-a/2,l=e.y+d/2-i/2;break;case"top":s=e.x+c/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+c/2-a/2,l=e.y+d+o;break;case"left":s=e.x-a-o,l=e.y+d/2-i/2;break;case"right":s=e.x+c+o,l=e.y+d/2-i/2}return[s,l]}function eV(t){return t==="center"||t==="middle"}function CLt(t,e,r){var n=h5(t).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=A0(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(c){var d=Wt(c).tooltipConfig;if(d&&d.name===t.name)return l=c,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function TLt(t){oa(cre),t.registerComponentModel(sLt),t.registerComponentView(bLt),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},aa),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},aa)}var kLt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Jt),ELt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),c=mt(r.get("textBaseline"),r.get("textVerticalAlign")),d=new vn({style:Ni(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),u=d.getBoundingRect(),f=r.get("subtext"),p=new vn({style:Ni(s,{text:f,fill:s.getTextColor(),y:u.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),g=r.get("sublink"),_=r.get("triggerEvent",!0);d.silent=!v&&!_,p.silent=!g&&!_,v&&d.on("click",function(){pH(v,"_"+r.get("target"))}),g&&p.on("click",function(){pH(g,"_"+r.get("subtarget"))}),Wt(d).eventData=Wt(p).eventData=_?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(d),f&&i.add(p);var b=i.getBoundingRect(),w=r.getBoxLayoutParams();w.width=b.width,w.height=b.height;var x=xl(w,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),c||(c=r.get("top")||r.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?x.y+=x.height:c==="middle"&&(x.y+=x.height/2),c=c||"top"),i.x=x.x,i.y=x.y,i.markRedraw();var C={align:l,verticalAlign:c};d.setStyle(C),p.setStyle(C),b=i.getBoundingRect();var M=x.margin,k=r.getItemStyle(["color","opacity"]);k.fill=r.get("backgroundColor");var O=new Ur({shape:{x:b.x-M[3],y:b.y-M[0],width:b.width+M[1]+M[3],height:b.height+M[0]+M[2],r:r.get("borderRadius")},style:k,subPixelOptimize:!0,silent:!0});i.add(O)}},e.type="title",e}(Cn);function DLt(t){t.registerComponentModel(kLt),t.registerComponentView(ELt)}var tV=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode="box",r}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._initData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(r){this.option.autoPlay=!!r},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var r=this.option,n=r.data||[],a=r.axisType,i=this._names=[],o;a==="category"?(o=[],G(n,function(c,d){var u=hs(Ev(c),""),f;ft(c)?(f=St(c),f.value=d):f=d,o.push(f),i.push(u)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new gl([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Jt),wre=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="timeline.slider",e.defaultOption=j0(tV.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(tV);Ua(wre,NT.prototype);var MLt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="timeline",e}(Cn),OLt=function(t){ve(e,t);function e(r,n,a,i){var o=t.call(this,r,n,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(J0),uA=Math.PI,rV=Mr(),$Lt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){this.api=n},e.prototype.render=function(r,n,a){if(this.model=r,this.api=a,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var i=this._layout(r,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,r);r.formatTooltip=function(c){var d=l.scale.getLabel({value:c});return Cl("nameValue",{noName:!0,value:d})},G(["AxisLine","AxisTick","Control","CurrentPointer"],function(c){this["_render"+c](i,o,l,r)},this),this._renderAxisLabel(i,s,l,r),this._position(i,r)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(r,n){var a=r.get(["label","position"]),i=r.get("orient"),o=PLt(r,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},c={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:uA/2},u=i==="vertical"?o.height:o.width,f=r.getModel("controlStyle"),p=f.get("show",!0),v=p?f.get("itemSize"):0,g=p?f.get("itemGap"):0,_=v+g,b=r.get(["label","rotate"])||0;b=b*uA/180;var w,x,C,M=f.get("position",!0),k=p&&f.get("showPlayBtn",!0),O=p&&f.get("showPrevBtn",!0),R=p&&f.get("showNextBtn",!0),L=0,$=u;M==="left"||M==="bottom"?(k&&(w=[0,0],L+=_),O&&(x=[L,0],L+=_),R&&(C=[$-v,0],$-=_)):(k&&(w=[$-v,0],$-=_),O&&(x=[0,0],L+=_),R&&(C=[$-v,0],$-=_));var N=[L,$];return r.get("inverse")&&N.reverse(),{viewRect:o,mainLength:u,orient:i,rotation:d[i],labelRotation:b,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[i],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||c[i],playPosition:w,prevBtnPosition:x,nextBtnPosition:C,axisExtent:N,controlSize:v,controlGap:g}},e.prototype._position=function(r,n){var a=this._mainGroup,i=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=wc(),l=o.x,c=o.y+o.height;iv(s,s,[-l,-c]),O0(s,s,-uA/2),iv(s,s,[l,c]),o=o.clone(),o.applyTransform(s)}var d=w(o),u=w(a.getBoundingRect()),f=w(i.getBoundingRect()),p=[a.x,a.y],v=[i.x,i.y];v[0]=p[0]=d[0][0];var g=r.labelPosOpt;if(g==null||Ue(g)){var _=g==="+"?0:1;x(p,u,d,1,_),x(v,f,d,1,1-_)}else{var _=g>=0?0:1;x(p,u,d,1,_),v[1]=p[1]+g}a.setPosition(p),i.setPosition(v),a.rotation=i.rotation=r.rotation,b(a),b(i);function b(C){C.originX=d[0][0]-C.x,C.originY=d[1][0]-C.y}function w(C){return[[C.x,C.x+C.width],[C.y,C.y+C.height]]}function x(C,M,k,O,R){C[O]+=k[O][R]-M[O][R]}},e.prototype._createAxis=function(r,n){var a=n.getData(),i=n.get("axisType"),o=ALt(n,i);o.getTicks=function(){return a.mapArray(["value"],function(c){return{value:c}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new OLt("value",o,r.axisExtent,i);return l.model=n,l},e.prototype._createGroup=function(r){var n=this[r]=new Tr;return this.group.add(n),n},e.prototype._renderAxisLine=function(r,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new Co({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:De({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Co({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Rt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(r,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],G(l,function(c){var d=a.dataToCoord(c.value),u=s.getItemModel(c.value),f=u.getModel("itemStyle"),p=u.getModel(["emphasis","itemStyle"]),v=u.getModel(["progress","itemStyle"]),g={x:d,y:0,onclick:dt(o._changeTimeline,o,c.value)},_=nV(u,f,n,g);_.ensureState("emphasis").style=p.getItemStyle(),_.ensureState("progress").style=v.getItemStyle(),Ju(_);var b=Wt(_);u.get("tooltip")?(b.dataIndex=c.value,b.dataModel=i):b.dataIndex=b.dataModel=null,o._tickSymbols.push(_)})},e.prototype._renderAxisLabel=function(r,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),c=a.getViewLabels();this._tickLabels=[],G(c,function(d){var u=d.tickValue,f=l.getItemModel(u),p=f.getModel("label"),v=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),_=a.dataToCoord(d.tickValue),b=new vn({x:_,y:0,rotation:r.labelRotation-r.rotation,onclick:dt(o._changeTimeline,o,u),silent:!1,style:Ni(p,{text:d.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});b.ensureState("emphasis").style=Ni(v),b.ensureState("progress").style=Ni(g),n.add(b),Ju(b),rV(b).dataIndex=u,o._tickLabels.push(b)})}},e.prototype._renderControl=function(r,n,a,i){var o=r.controlSize,s=r.rotation,l=i.getModel("controlStyle").getItemStyle(),c=i.getModel(["emphasis","controlStyle"]).getItemStyle(),d=i.getPlayState(),u=i.get("inverse",!0);f(r.nextBtnPosition,"next",dt(this._changeTimeline,this,u?"-":"+")),f(r.prevBtnPosition,"prev",dt(this._changeTimeline,this,u?"+":"-")),f(r.playPosition,d?"stop":"play",dt(this._handlePlayClick,this,!d),!0);function f(p,v,g,_){if(p){var b=Dc(mt(i.get(["controlStyle",v+"BtnSize"]),o),o),w=[0,-b/2,b,b],x=ILt(i,v+"Icon",w,{x:p[0],y:p[1],originX:o/2,originY:0,rotation:_?-s:0,rectHover:!0,style:l,onclick:g});x.ensureState("emphasis").style=c,n.add(x),Ju(x)}}},e.prototype._renderCurrentPointer=function(r,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),c=this,d={onCreate:function(u){u.draggable=!0,u.drift=dt(c._handlePointerDrag,c),u.ondragend=dt(c._handlePointerDragend,c),aV(u,c._progressLine,s,a,i,!0)},onUpdate:function(u){aV(u,c._progressLine,s,a,i)}};this._currentPointer=nV(l,l,this._mainGroup,{},this._currentPointer,d)},e.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},e.prototype._handlePointerDrag=function(r,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},e.prototype._pointerChangeTimeline=function(r,n){var a=this._toAxisCoord(r)[0],i=this._axis,o=fc(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,u]}var dA={min:Ht(jw,"min"),max:Ht(jw,"max"),average:Ht(jw,"average"),median:Ht(jw,"median")};function Qx(t,e){if(e){var r=t.getData(),n=t.coordinateSystem,a=n&&n.dimensions;if(!zLt(e)&&!Re(e.coord)&&Re(a)){var i=xre(e,r,n,t);if(e=St(e),e.type&&dA[e.type]&&i.baseAxis&&i.valueAxis){var o=Yt(a,i.baseAxis.dim),s=Yt(a,i.valueAxis.dim),l=dA[e.type](r,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!Re(a))e.coord=[];else for(var c=e.coord,d=0;d<2;d++)dA[c[d]]&&(c[d]=O3(r,r.mapDimension(a[d]),c[d]));return e}}function xre(t,e,r,n){var a={};return t.valueIndex!=null||t.valueDim!=null?(a.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=r.getAxis(BLt(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function BLt(t,e){var r=t.getData().getDimensionInfo(e);return r&&r.coordDim}function eC(t,e){return t&&t.containData&&e.coord&&!yR(e)?t.containData(e.coord):!0}function jLt(t,e,r){return t&&t.containZone&&e.coord&&r.coord&&!yR(e)&&!yR(r)?t.containZone(e.coord,r.coord):!0}function WLt(t,e){return t?function(r,n,a,i){var o=i<2?r.coord&&r.coord[i]:r.value;return Ku(o,e[i])}:function(r,n,a,i){return Ku(r.value,e[i])}}function O3(t,e,r){if(r==="average"){var n=0,a=0;return t.each(e,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return r==="median"?t.getMedian(e):t.getDataExtent(e)[r==="max"?1:0]}var fA=Mr(),Cre=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this.markerGroupMap=Ct()},e.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){fA(s).keep=!1}),n.eachSeries(function(s){var l=_h.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!fA(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(r){fA(r).keep=!0},e.prototype.toggleBlurSeries=function(r,n){var a=this;G(r,function(i){var o=_h.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?GK(l):y5(l))})}})},e.type="marker",e}(Cn),HLt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,a){return new e(r,n,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(_h),Ww=Mr(),ULt=function(t,e,r,n){var a=t.getData(),i;if(Re(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),l=os(n.yAxis,n.xAxis);else{var c=xre(n,a,e,t);s=c.valueAxis;var d=o3(a,c.valueDataDim);l=O3(a,d,o)}var u=s.dim==="x"?0:1,f=1-u,p=St(n),v={coord:[]};p.type=null,p.coord=[],p.coord[f]=-1/0,v.coord[f]=1/0;var g=r.get("precision");g>=0&&Dr(l)&&(l=+l.toFixed(Math.min(g,20))),p.coord[u]=v.coord[u]=l,i=[p,v,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var _=[Qx(t,i[0]),Qx(t,i[1]),De({},i[2])];return _[2].type=_[2].type||null,Ot(_[2],_[0]),Ot(_[2],_[1]),_};function tC(t){return!isNaN(t)&&!isFinite(t)}function oV(t,e,r,n){var a=1-t,i=n.dimensions[t];return tC(e[a])&&tC(r[a])&&e[t]===r[t]&&n.getAxis(i).containData(e[t])}function YLt(t,e){if(t.type==="cartesian2d"){var r=e[0].coord,n=e[1].coord;if(r&&n&&(oV(1,r,n,t)||oV(0,r,n,t)))return!0}return eC(t,e[0])&&eC(t,e[1])}function hA(t,e,r,n,a){var i=n.coordinateSystem,o=t.getItemModel(e),s,l=Hr(o.get("x"),a.getWidth()),c=Hr(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(c))s=[l,c];else{if(n.getMarkerPosition)s=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=i.dimensions,u=t.get(d[0],e),f=t.get(d[1],e);s=i.dataToPoint([u,f])}if(Pv(i,"cartesian2d")){var p=i.getAxis("x"),v=i.getAxis("y"),d=i.dimensions;tC(t.get(d[0],e))?s[0]=p.toGlobalCoord(p.getExtent()[r?0:1]):tC(t.get(d[1],e))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(c)||(s[1]=c)}t.setItemLayout(e,s)}var VLt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=_h.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Ww(o).from,c=Ww(o).to;l.each(function(d){hA(l,d,!0,i,a),hA(c,d,!1,i,a)}),s.each(function(d){s.setItemLayout(d,[l.getItemLayout(d),c.getItemLayout(d)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),c=this.markerGroupMap,d=c.get(s)||c.set(s,new MIt);this.group.add(d.group);var u=GLt(o,r,n),f=u.from,p=u.to,v=u.line;Ww(n).from=f,Ww(n).to=p,n.setData(v);var g=n.get("symbol"),_=n.get("symbolSize"),b=n.get("symbolRotate"),w=n.get("symbolOffset");Re(g)||(g=[g,g]),Re(_)||(_=[_,_]),Re(b)||(b=[b,b]),Re(w)||(w=[w,w]),u.from.each(function(C){x(f,C,!0),x(p,C,!1)}),v.each(function(C){var M=v.getItemModel(C).getModel("lineStyle").getLineStyle();v.setItemLayout(C,[f.getItemLayout(C),p.getItemLayout(C)]),M.stroke==null&&(M.stroke=f.getItemVisual(C,"style").fill),v.setItemVisual(C,{fromSymbolKeepAspect:f.getItemVisual(C,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(C,"symbolOffset"),fromSymbolRotate:f.getItemVisual(C,"symbolRotate"),fromSymbolSize:f.getItemVisual(C,"symbolSize"),fromSymbol:f.getItemVisual(C,"symbol"),toSymbolKeepAspect:p.getItemVisual(C,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(C,"symbolOffset"),toSymbolRotate:p.getItemVisual(C,"symbolRotate"),toSymbolSize:p.getItemVisual(C,"symbolSize"),toSymbol:p.getItemVisual(C,"symbol"),style:M})}),d.updateData(v),u.line.eachItemGraphicEl(function(C){Wt(C).dataModel=n,C.traverse(function(M){Wt(M).dataModel=n})});function x(C,M,k){var O=C.getItemModel(M);hA(C,M,k,r,i);var R=O.getModel("itemStyle").getItemStyle();R.fill==null&&(R.fill=H5(l,"color")),C.setItemVisual(M,{symbolKeepAspect:O.get("symbolKeepAspect"),symbolOffset:mt(O.get("symbolOffset",!0),w[k?0:1]),symbolRotate:mt(O.get("symbolRotate",!0),b[k?0:1]),symbolSize:mt(O.get("symbolSize"),_[k?0:1]),symbol:mt(O.get("symbol",!0),g[k?0:1]),style:R})}this.markKeep(d),d.group.silent=n.get("silent")||r.get("silent")},e.type="markLine",e}(Cre);function GLt(t,e,r){var n;t?n=Oe(t&&t.dimensions,function(c){var d=e.getData().getDimensionInfo(e.getData().mapDimension(c))||{};return De(De({},d),{name:c,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new gl(n,r),i=new gl(n,r),o=new gl([],r),s=Oe(r.get("data"),Ht(ULt,e,t,r));t&&(s=Wr(s,Ht(YLt,t)));var l=WLt(!!t,n);return a.initData(Oe(s,function(c){return c[0]}),null,l),i.initData(Oe(s,function(c){return c[1]}),null,l),o.initData(Oe(s,function(c){return c[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function qLt(t){t.registerComponentModel(HLt),t.registerComponentView(VLt),t.registerPreprocessor(function(e){Sre(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var XLt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,a){return new e(r,n,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(_h),Hw=Mr(),JLt=function(t,e,r,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=Qx(t,a),s=Qx(t,i),l=o.coord,c=s.coord;l[0]=os(l[0],-1/0),l[1]=os(l[1],-1/0),c[0]=os(c[0],1/0),c[1]=os(c[1],1/0);var d=AZ([{},o,s]);return d.coord=[o.coord,s.coord],d.x0=o.x,d.y0=o.y,d.x1=s.x,d.y1=s.y,d}};function rC(t){return!isNaN(t)&&!isFinite(t)}function sV(t,e,r,n){var a=1-t;return rC(e[a])&&rC(r[a])}function ZLt(t,e){var r=e.coord[0],n=e.coord[1],a={coord:r,x:e.x0,y:e.y0},i={coord:n,x:e.x1,y:e.y1};return Pv(t,"cartesian2d")?r&&n&&(sV(1,r,n)||sV(0,r,n))?!0:jLt(t,a,i):eC(t,a)||eC(t,i)}function lV(t,e,r,n,a){var i=n.coordinateSystem,o=t.getItemModel(e),s,l=Hr(o.get(r[0]),a.getWidth()),c=Hr(o.get(r[1]),a.getHeight());if(!isNaN(l)&&!isNaN(c))s=[l,c];else{if(n.getMarkerPosition){var d=t.getValues(["x0","y0"],e),u=t.getValues(["x1","y1"],e),f=i.clampData(d),p=i.clampData(u),v=[];r[0]==="x0"?v[0]=f[0]>p[0]?u[0]:d[0]:v[0]=f[0]>p[0]?d[0]:u[0],r[1]==="y0"?v[1]=f[1]>p[1]?u[1]:d[1]:v[1]=f[1]>p[1]?d[1]:u[1],s=n.getMarkerPosition(v,r,!0)}else{var g=t.get(r[0],e),_=t.get(r[1],e),b=[g,_];i.clampData&&i.clampData(b,b),s=i.dataToPoint(b,!0)}if(Pv(i,"cartesian2d")){var w=i.getAxis("x"),x=i.getAxis("y"),g=t.get(r[0],e),_=t.get(r[1],e);rC(g)?s[0]=w.toGlobalCoord(w.getExtent()[r[0]==="x0"?0:1]):rC(_)&&(s[1]=x.toGlobalCoord(x.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(c)||(s[1]=c)}return s}var cV=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],KLt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=_h.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var c=Oe(cV,function(u){return lV(s,l,u,i,a)});s.setItemLayout(l,c);var d=s.getItemGraphicEl(l);d.setShape("points",c)})}},this)},e.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),c=this.markerGroupMap,d=c.get(s)||c.set(s,{group:new Tr});this.group.add(d.group),this.markKeep(d);var u=QLt(o,r,n);n.setData(u),u.each(function(f){var p=Oe(cV,function(R){return lV(u,f,R,r,i)}),v=o.getAxis("x").scale,g=o.getAxis("y").scale,_=v.getExtent(),b=g.getExtent(),w=[v.parse(u.get("x0",f)),v.parse(u.get("x1",f))],x=[g.parse(u.get("y0",f)),g.parse(u.get("y1",f))];fc(w),fc(x);var C=!(_[0]>w[1]||_[1]x[1]||b[1]=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Jt),Jp=Ht,wR=G,Uw=Tr,Tre=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new Uw),this.group.add(this._selectorGroup=new Uw),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),c=r.get("selectorPosition",!0);l&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,a,l,s,c);var d=r.getBoxLayoutParams(),u={width:a.getWidth(),height:a.getHeight()},f=r.get("padding"),p=xl(d,u,f),v=this.layoutInner(r,o,p,i,l,c),g=xl(Rt({width:v.width,height:v.height},d),u,f);this.group.x=g.x-v.x,this.group.y=g.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=hre(v,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,a,i,o,s,l){var c=this.getContentGroup(),d=Ct(),u=n.get("selectedMode"),f=[];a.eachRawSeries(function(p){!p.get("legendHoverLink")&&f.push(p.id)}),wR(n.getData(),function(p,v){var g=p.get("name");if(!this.newlineDisabled&&(g===""||g===` -`)){var _=new Uw;_.newline=!0,c.add(_);return}var b=a.getSeriesByName(g)[0];if(!d.get(g))if(b){var w=b.getData(),x=w.getVisual("legendLineStyle")||{},C=w.getVisual("legendIcon"),M=w.getVisual("style"),k=this._createItem(b,g,v,p,n,r,x,M,C,u,i);k.on("click",Jp(uV,g,null,i,f)).on("mouseover",Jp(SR,b.name,null,i,f)).on("mouseout",Jp(xR,b.name,null,i,f)),a.ssr&&k.eachChild(function(O){var R=Wt(O);R.seriesIndex=b.seriesIndex,R.dataIndex=v,R.ssrType="legend"}),d.set(g,!0)}else a.eachRawSeries(function(O){if(!d.get(g)&&O.legendVisualProvider){var R=O.legendVisualProvider;if(!R.containName(g))return;var L=R.indexOfName(g),$=R.getItemVisual(L,"style"),N=R.getItemVisual(L,"legendIcon"),W=ci($.fill);W&&W[3]===0&&(W[3]=.2,$=De(De({},$),{fill:pd(W,"rgba")}));var j=this._createItem(O,g,v,p,n,r,{},$,N,u,i);j.on("click",Jp(uV,null,g,i,f)).on("mouseover",Jp(SR,null,g,i,f)).on("mouseout",Jp(xR,null,g,i,f)),a.ssr&&j.eachChild(function(Y){var V=Wt(Y);V.seriesIndex=O.seriesIndex,V.dataIndex=v,V.ssrType="legend"}),d.set(g,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},e.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();wR(r,function(c){var d=c.type,u=new vn({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:d==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(u);var f=n.getModel("selectorLabel"),p=n.getModel(["emphasis","selectorLabel"]);Lh(u,{normal:f,emphasis:p},{defaultText:c.title}),Ju(u)})},e.prototype._createItem=function(r,n,a,i,o,s,l,c,d,u,f){var p=r.visualDrawType,v=o.get("itemWidth"),g=o.get("itemHeight"),_=o.isSelected(n),b=i.get("symbolRotate"),w=i.get("symbolKeepAspect"),x=i.get("icon");d=x||d||"roundRect";var C=rNt(d,i,l,c,p,_,f),M=new Uw,k=i.getModel("textStyle");if(wt(r.getLegendIcon)&&(!x||x==="inherit"))M.add(r.getLegendIcon({itemWidth:v,itemHeight:g,icon:d,iconRotate:b,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:w}));else{var O=x==="inherit"&&r.getData().getVisual("symbol")?b==="inherit"?r.getData().getVisual("symbolRotate"):b:0;M.add(nNt({itemWidth:v,itemHeight:g,icon:d,iconRotate:O,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:w}))}var R=s==="left"?v+5:-5,L=s,$=o.get("formatter"),N=n;Ue($)&&$?N=$.replace("{name}",n??""):wt($)&&(N=$(n));var W=_?k.getTextColor():i.get("inactiveColor");M.add(new vn({style:Ni(k,{text:N,x:R,y:g/2,fill:W,align:L,verticalAlign:"middle"},{inheritColor:W})}));var j=new Ur({shape:M.getBoundingRect(),style:{fill:"transparent"}}),Y=i.getModel("tooltip");return Y.get("show")&&F0({el:j,componentModel:o,itemName:n,itemTooltipOption:Y.option}),M.add(j),M.eachChild(function(V){V.silent=!0}),j.silent=!u,this.getContentGroup().add(M),Ju(M),M.__legendDataIndex=a,M},e.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),c=this.getSelectorGroup();Um(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var d=l.getBoundingRect(),u=[-d.x,-d.y];if(c.markRedraw(),l.markRedraw(),o){Um("horizontal",c,r.get("selectorItemGap",!0));var f=c.getBoundingRect(),p=[-f.x,-f.y],v=r.get("selectorButtonGap",!0),g=r.getOrient().index,_=g===0?"width":"height",b=g===0?"height":"width",w=g===0?"y":"x";s==="end"?p[g]+=d[_]+v:u[g]+=f[_]+v,p[1-g]+=d[b]/2-f[b]/2,c.x=p[0],c.y=p[1],l.x=u[0],l.y=u[1];var x={x:0,y:0};return x[_]=d[_]+v+f[_],x[b]=Math.max(d[b],f[b]),x[w]=Math.min(0,f[w]+p[1-g]),x}else return l.x=u[0],l.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Cn);function rNt(t,e,r,n,a,i,o){function s(_,b){_.lineWidth==="auto"&&(_.lineWidth=b.lineWidth>0?2:0),wR(_,function(w,x){_[x]==="inherit"&&(_[x]=b[x])})}var l=e.getModel("itemStyle"),c=l.getItemStyle(),d=t.lastIndexOf("empty",0)===0?"fill":"stroke",u=l.getShallow("decal");c.decal=!u||u==="inherit"?n.decal:qI(u,o),c.fill==="inherit"&&(c.fill=n[a]),c.stroke==="inherit"&&(c.stroke=n[d]),c.opacity==="inherit"&&(c.opacity=(a==="fill"?n:r).opacity),s(c,n);var f=e.getModel("lineStyle"),p=f.getLineStyle();if(s(p,r),c.fill==="auto"&&(c.fill=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),p.stroke==="auto"&&(p.stroke=n.fill),!i){var v=e.get("inactiveBorderWidth"),g=c[d];c.lineWidth=v==="auto"?n.lineWidth>0&&g?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),p.stroke=f.get("inactiveColor"),p.lineWidth=f.get("inactiveWidth")}return{itemStyle:c,lineStyle:p}}function nNt(t){var e=t.icon||"roundRect",r=ji(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function uV(t,e,r,n){xR(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),SR(t,e,r,n)}function kre(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,a=e.length;na[o],_=[-p.x,-p.y];n||(_[i]=d[c]);var b=[0,0],w=[-v.x,-v.y],x=mt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var C=r.get("pageButtonPosition",!0);C==="end"?w[i]+=a[o]-v[o]:b[i]+=v[o]+x}w[1-i]+=p[s]/2-v[s]/2,d.setPosition(_),u.setPosition(b),f.setPosition(w);var M={x:0,y:0};if(M[o]=g?a[o]:p[o],M[s]=Math.max(p[s],v[s]),M[l]=Math.min(0,v[l]+w[1-i]),u.__rectSize=a[o],g){var k={x:0,y:0};k[o]=Math.max(a[o]-v[o]-x,0),k[s]=M[s],u.setClipPath(new Ur({shape:k})),u.__rectSize=k[o]}else f.eachChild(function(R){R.attr({invisible:!0,silent:!0})});var O=this._getPageInfo(r);return O.pageIndex!=null&&xn(d,{x:O.contentPosition[0],y:O.contentPosition[1]},g?r:null),this._updatePageInfoView(r,O),M},e.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;G(["pagePrev","pageNext"],function(d){var u=d+"DataIndex",f=n[u]!=null,p=a.childOfName(d);p&&(p.setStyle("fill",f?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),p.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,c=n.pageCount;i&&o&&i.setStyle("text",Ue(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",c==null?"":c+""):o({current:l,total:c}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=pA[o],l=mA[o],c=this._findTargetItemIndex(n),d=a.children(),u=d[c],f=d.length,p=f?1:0,v={contentPosition:[a.x,a.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return v;var g=C(u);v.contentPosition[o]=-g.s;for(var _=c+1,b=g,w=g,x=null;_<=f;++_)x=C(d[_]),(!x&&w.e>b.s+i||x&&!M(x,b.s))&&(w.i>b.i?b=w:b=x,b&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=b.i),++v.pageCount)),w=x;for(var _=c-1,b=g,w=g,x=null;_>=-1;--_)x=C(d[_]),(!x||!M(w,x.s))&&b.i=O&&k.s<=O+i}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(n=s)}),n??i},e.type="legend.scroll",e}(Tre);function lNt(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function cNt(t){oa(Ere),t.registerComponentModel(oNt),t.registerComponentView(sNt),lNt(t)}function uNt(t){oa(Ere),oa(cNt)}var dNt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.inside",e.defaultOption=j0(n0.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(n0),$3=Mr();function fNt(t,e,r){$3(t).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=r)})}function hNt(t,e){for(var r=$3(t).coordSysRecordMap,n=r.keys(),a=0;an[r+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function _Nt(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,r){var n=$3(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=Ct());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=ure(i);G(o.infoList,function(s){var l=s.model.uid,c=a.get(l)||a.set(l,pNt(r,s.model)),d=c.dataZoomInfoMap||(c.dataZoomInfoMap=Ct());d.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var c=l.keys()[0];c!=null&&(s=l.get(c))}if(!s){Dre(a,i);return}var d=gNt(l);o.enable(d.controlType,d.opt),o.setPointerChecker(i.containsPoint),zT(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var yNt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return e.prototype.render=function(r,n,a){if(t.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),fNt(a,r,{pan:dt(vA.pan,this),zoom:dt(vA.zoom,this),scrollMove:dt(vA.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){hNt(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(T3),vA={zoom:function(t,e,r,n){var a=this.range,i=a.slice(),o=t.axisModels[0];if(o){var s=gA[e](null,[n.originX,n.originY],o,r,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],c=Math.max(1/n.scale,0);i[0]=(i[0]-l)*c+l,i[1]=(i[1]-l)*c+l;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Z0(0,i,[0,100],0,d.minSpan,d.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:pV(function(t,e,r,n,a,i){var o=gA[n]([i.oldX,i.oldY],[i.newX,i.newY],e,a,r);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:pV(function(t,e,r,n,a,i){var o=gA[n]([0,0],[i.scrollDelta,i.scrollDelta],e,a,r);return o.signal*(t[1]-t[0])*i.scrollDelta})};function pV(t){return function(e,r,n,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,r,n,a);if(Z0(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var gA={grid:function(t,e,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem.getRect();return t=t||[0,0],i.dim==="x"?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(t,e,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),r.mainType==="radiusAxis"?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=i.inverse?-1:1),o},singleAxis:function(t,e,r,n,a){var i=r.axis,o=a.model.coordinateSystem.getRect(),s={};return t=t||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function bNt(t){k3(t),t.registerComponentModel(dNt),t.registerComponentView(yNt),_Nt(t)}var wNt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=j0(n0.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(n0),M_=Ur,mV=7,SNt=1,_A=30,xNt=7,O_="horizontal",vV="vertical",CNt=5,TNt=["line","bar","candlestick","scatter"],kNt={easing:"cubicOut",duration:100,delay:0},ENt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._displayables={},r}return e.prototype.init=function(r,n){this.api=n,this._onBrush=dt(this._onBrush,this),this._onBrushEnd=dt(this._onBrushEnd,this)},e.prototype.render=function(r,n,a,i){if(t.prototype.render.apply(this,arguments),zT(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Wx(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Tr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),i=a?xNt:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===O_?{right:s.width-o.x-o.width,top:s.height-_A-mV-i,width:o.width,height:_A}:{right:mV,top:o.y,width:_A,height:o.height},c=U0(r.option);G(["right","top","width","height"],function(u){c[u]==="ph"&&(c[u]=l[u])});var d=xl(c,s);this._location={x:d.x,y:d.y},this._size=[d.width,d.height],this._orient===vV&&this._size.reverse()},e.prototype._positionGroup=function(){var r=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===O_&&!o?{scaleY:l?1:-1,scaleX:1}:a===O_&&o?{scaleY:l?1:-1,scaleX:-1}:a===vV&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var c=r.getBoundingRect([s]);r.x=n.x-c.x,r.y=n.y-c.y,r.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=r.get("brushSelect");a.add(new M_({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new M_({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:dt(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,a=this._shadowSize||[],i=r.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():r.otherDim;if(l==null)return;var c=this._shadowPolygonPts,d=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var u=o.getDataExtent(l),f=(u[1]-u[0])*.3;u=[u[0]-f,u[1]+f];var p=[0,n[1]],v=[0,n[0]],g=[[n[0],0],[0,0]],_=[],b=v[1]/(o.count()-1),w=0,x=Math.round(o.count()/n[0]),C;o.each([l],function(L,$){if(x>0&&$%x){w+=b;return}var N=L==null||isNaN(L)||L==="",W=N?0:ra(L,u,p,!0);N&&!C&&$?(g.push([g[g.length-1][0],0]),_.push([_[_.length-1][0],0])):!N&&C&&(g.push([w,0]),_.push([w,0])),g.push([w,W]),_.push([w,W]),w+=b,C=N}),c=this._shadowPolygonPts=g,d=this._shadowPolylinePts=_}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var M=this.dataZoomModel;function k(L){var $=M.getModel(L?"selectedDataBackground":"dataBackground"),N=new Tr,W=new Sl({shape:{points:c},segmentIgnoreThreshold:1,style:$.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),j=new Fc({shape:{points:d},segmentIgnoreThreshold:1,style:$.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return N.add(W),N.add(j),N}for(var O=0;O<3;O++){var R=k(O===1);this._displayables.sliderGroup.add(R),this._displayables.dataShadowSegs.push(R)}},e.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();G(l,function(c){if(!a&&!(n!==!0&&Yt(TNt,c.get("type"))<0)){var d=i.getComponent(Vu(o),s).axis,u=DNt(o),f,p=c.coordinateSystem;u!=null&&p.getOtherAxis&&(f=p.getOtherAxis(d).inverse),u=c.getData().mapDimension(u),a={thisAxis:d,series:c,thisDim:o,otherDim:u,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var r=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,c=this.api,d=l.get("borderRadius")||0,u=l.get("brushSelect"),f=n.filler=new M_({silent:u,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new M_({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:d},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:SNt,fill:"rgba(0,0,0,0)"}})),G([0,1],function(x){var C=l.get("handleIcon");!Ux[C]&&C.indexOf("path://")<0&&C.indexOf("image://")<0&&(C="path://"+C);var M=ji(C,-1,0,2,2,null,!0);M.attr({cursor:gV(this._orient),draggable:!0,drift:dt(this._onDragMove,this,x),ondragend:dt(this._onDragEnd,this),onmouseover:dt(this._showDataInfo,this,!0),onmouseout:dt(this._showDataInfo,this,!1),z2:5});var k=M.getBoundingRect(),O=l.get("handleSize");this._handleHeight=Hr(O,this._size[1]),this._handleWidth=k.width/k.height*this._handleHeight,M.setStyle(l.getModel("handleStyle").getItemStyle()),M.style.strokeNoScale=!0,M.rectHover=!0,M.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ju(M);var R=l.get("handleColor");R!=null&&(M.style.fill=R),o.add(a[x]=M);var L=l.getModel("textStyle"),$=l.get("handleLabel")||{},N=$.show||!1;r.add(i[x]=new vn({silent:!0,invisible:!N,style:Ni(L,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:L.getTextColor(),font:L.getFont()}),z2:10}))},this);var p=f;if(u){var v=Hr(l.get("moveHandleSize"),s[1]),g=n.moveHandle=new Ur({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),_=v*.8,b=n.moveHandleIcon=ji(l.get("moveHandleIcon"),-_/2,-_/2,_,_,"#fff",!0);b.silent=!0,b.y=s[1]+v/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var w=Math.min(s[1]/2,Math.max(v,10));p=n.moveZone=new Ur({invisible:!0,shape:{y:s[1]-w,height:v+w}}),p.on("mouseover",function(){c.enterEmphasis(g)}).on("mouseout",function(){c.leaveEmphasis(g)}),o.add(g),o.add(b),o.add(p)}p.attr({draggable:!0,cursor:gV(this._orient),drift:dt(this._onDragMove,this,"all"),ondragstart:dt(this._showDataInfo,this,!0),ondragend:dt(this._onDragEnd,this),onmouseover:dt(this._showDataInfo,this,!0),onmouseout:dt(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ra(r[0],[0,100],n,!0),ra(r[1],[0,100],n,!0)]},e.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Z0(n,i,o,a.get("zoomLock")?"all":r,s.minSpan!=null?ra(s.minSpan,l,o,!0):null,s.maxSpan!=null?ra(s.maxSpan,l,o,!0):null);var c=this._range,d=this._range=fc([ra(i[0],o,l,!0),ra(i[1],o,l,!0)]);return!c||c[0]!==d[0]||c[1]!==d[1]},e.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,i=fc(a.slice()),o=this._size;G([0,1],function(p){var v=n.handles[p],g=this._handleHeight;v.attr({scaleX:g/2,scaleY:g/2,x:a[p]+(p?-1:1),y:o[1]/2-g/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,c=[0,i[0],i[1],o[0]],d=0;dn[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new Zt(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=fc([ra(a.x,o,s,!0),ra(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(r){this._brushing&&(av(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},e.prototype._updateBrushRect=function(r,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new M_({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,c=l.transformCoordToLocal(r,n),d=l.transformCoordToLocal(s.x,s.y),u=this._size;c[0]=Math.max(Math.min(u[0],c[0]),0),o.setShape({x:d[0],y:0,width:c[0]-d[0],height:u[1]})},e.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?kNt:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var r,n=ure(this.dataZoomModel).infoList;if(!r&&n.length){var a=n[0].model.coordinateSystem;r=a.getRect&&a.getRect()}if(!r){var i=this.api.getWidth(),o=this.api.getHeight();r={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return r},e.type="dataZoom.slider",e}(T3);function DNt(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function gV(t){return t==="vertical"?"ns-resize":"ew-resize"}function MNt(t){t.registerComponentModel(wNt),t.registerComponentView(ENt),k3(t)}function ONt(t){oa(bNt),oa(MNt)}var $Nt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,n,a){t.prototype.init.call(this,r,n,a),this._sourceManager=new qQ(this),LH(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),LH(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:vl},e}(Jt),ANt=function(t){ve(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e}(Cn);function PNt(t){t.registerComponentModel($Nt),t.registerComponentView(ANt)}var yA=Math.sin,bA=Math.cos,Mre=Math.PI,Ef=Math.PI*2,INt=180/Mre,Ore=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,a,i,o){this._add("C",e,r,n,a,i,o)},t.prototype.quadraticCurveTo=function(e,r,n,a){this._add("Q",e,r,n,a)},t.prototype.arc=function(e,r,n,a,i,o){this.ellipse(e,r,n,n,0,a,i,o)},t.prototype.ellipse=function(e,r,n,a,i,o,s,l){var c=s-o,d=!l,u=Math.abs(c),f=Uu(u-Ef)||(d?c>=Ef:-c>=Ef),p=c>0?c%Ef:c%Ef+Ef,v=!1;f?v=!0:Uu(u)?v=!1:v=p>=Mre==!!d;var g=e+n*bA(o),_=r+a*yA(o);this._start&&this._add("M",g,_);var b=Math.round(i*INt);if(f){var w=1/this._p,x=(d?1:-1)*(Ef-w);this._add("A",n,a,b,1,+d,e+n*bA(o+x),r+a*yA(o+x)),w>.01&&this._add("A",n,a,b,0,+d,g,_)}else{var C=e+n*bA(s),M=r+a*yA(s);this._add("A",n,a,b,+v,+d,C,M)}},t.prototype.rect=function(e,r,n,a){this._add("M",e,r),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,a,i,o,s,l,c){for(var d=[],u=this._p,f=1;f"}function HNt(t){return""}function P3(t,e){e=e||{};var r=e.newline?` -`:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return WNt(o,s)+(o!=="style"?xa(l):l||"")+(i?""+r+Oe(i,function(c){return n(c)}).join(r)+r:"")+HNt(o)}return n(t)}function UNt(t,e,r){r=r||{};var n=r.newline?` -`:"",a=" {"+n,i=n+"}",o=Oe(lr(t),function(l){return l+a+Oe(lr(t[l]),function(c){return c+":"+t[l][c]+";"}).join(n)+i}).join(n),s=Oe(lr(e),function(l){return"@keyframes "+l+a+Oe(lr(e[l]),function(c){return c+a+Oe(lr(e[l][c]),function(d){var u=e[l][c][d];return d==="d"&&(u='path("'+u+'")'),d+":"+u+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":[""].join(n)}function TR(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function yV(t,e,r,n){return Nn("svg","root",{width:t,height:e,xmlns:$re,"xmlns:xlink":Are,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var YNt=0;function Ire(){return YNt++}var bV={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},$f="transform-origin";function VNt(t,e,r){var n=De({},t.shape);De(n,e),t.buildPath(r,n);var a=new Ore;return a.reset(uK(t)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function GNt(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[$f]=r+"px "+n+"px")}var qNt={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Rre(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function XNt(t,e,r){var n=t.shape.paths,a={},i,o;if(G(n,function(l){var c=TR(r.zrId);c.animation=!0,QT(l,{},c,!0);var d=c.cssAnims,u=c.cssNodes,f=lr(d),p=f.length;if(p){o=f[p-1];var v=d[o];for(var g in v){var _=v[g];a[g]=a[g]||{d:""},a[g].d+=_.d||""}for(var b in u){var w=u[b].animation;w.indexOf(o)>=0&&(i=w)}}}),!!i){e.d=!1;var s=Rre(a,r);return i.replace(o,s)}}function wV(t){return Ue(t)?bV[t]?"cubic-bezier("+bV[t]+")":i5(t)?t:"":""}function QT(t,e,r,n){var a=t.animators,i=a.length,o=[];if(t instanceof w5){var s=XNt(t,e,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},c=0;c0}).length){var We=Rre(O,r);return We+" "+w[0]+" both"}}for(var _ in l){var s=g(l[_]);s&&o.push(s)}if(o.length){var b=r.zrId+"-cls-"+Ire();r.cssNodes["."+b]={animation:o.join(",")},e.class=b}}function JNt(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};SV(n,e,r)}else{var a=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},i=a.fill;if(!i){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(i=Dx(l))}var c=a.lineWidth;if(c){var d=!a.strokeNoScale&&t.transform?t.transform[0]:1;c=c/d}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),c&&(n["stroke-width"]=c),SV(n,e,r)}}function SV(t,e,r,n){var a=JSON.stringify(t),i=r.cssStyleCache[a];i||(i=r.zrId+"-cls-"+Ire(),r.cssStyleCache[a]=i,r.cssNodes["."+i+":hover"]=t),e.class=e.class?e.class+" "+i:i}var a0=Math.round;function Lre(t){return t&&Ue(t.src)}function Nre(t){return t&&wt(t.toDataURL)}function I3(t,e,r,n){zNt(function(a,i){var o=a==="fill"||a==="stroke";o&&cK(i)?zre(e,t,a,n):o&&s5(i)?Bre(r,t,a,n):t[a]=i,o&&n.ssr&&i==="none"&&(t["pointer-events"]="visible")},e,r,!1),n5t(r,t,n)}function R3(t,e){var r=_K(e);r&&(r.each(function(n,a){n!=null&&(t[(_V+a).toLowerCase()]=n+"")}),e.isSilent()&&(t[_V+"silent"]="true"))}function xV(t){return Uu(t[0]-1)&&Uu(t[1])&&Uu(t[2])&&Uu(t[3]-1)}function ZNt(t){return Uu(t[4])&&Uu(t[5])}function L3(t,e,r){if(e&&!(ZNt(e)&&xV(e))){var n=1e4;t.transform=xV(e)?"translate("+a0(e[4]*n)/n+" "+a0(e[5]*n)/n+")":ikt(e)}}function CV(t,e,r){for(var n=t.points,a=[],i=0;i"u"){var _="Image width/height must been given explictly in svg-ssr renderer.";Bi(f,_),Bi(p,_)}else if(f==null||p==null){var b=function($,N){if($){var W=$.elm,j=f||N.width,Y=p||N.height;$.tag==="pattern"&&(c?(Y=1,j/=i.width):d&&(j=1,Y/=i.height)),$.attrs.width=j,$.attrs.height=Y,W&&(W.setAttribute("width",j),W.setAttribute("height",Y))}},w=m5(v,null,t,function($){l||b(k,$),b(u,$)});w&&w.width&&w.height&&(f=f||w.width,p=p||w.height)}u=Nn("image","img",{href:v,width:f,height:p}),o.width=f,o.height=p}else a.svgElement&&(u=St(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(u){var x,C;l?x=C=1:c?(C=1,x=o.width/i.width):d?(x=1,C=o.height/i.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),C!=null&&!isNaN(C)&&(o.height=C);var M=dK(a);M&&(o.patternTransform=M);var k=Nn("pattern","",o,[u]),O=P3(k),R=n.patternCache,L=R[O];L||(L=n.zrId+"-p"+n.patternIdx++,R[O]=L,o.id=L,k=n.defs[L]=Nn("pattern",L,o,[u])),e[r]=mT(L)}}function a5t(t,e,r){var n=r.clipPathCache,a=r.defs,i=n[t.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};n[t.id]=i,a[i]=Nn("clipPath",i,o,[Fre(t,r)])}e["clip-path"]=mT(i)}function EV(t){return document.createTextNode(t)}function Nf(t,e,r){t.insertBefore(e,r)}function DV(t,e){t.removeChild(e)}function MV(t,e){t.appendChild(e)}function jre(t){return t.parentNode}function Wre(t){return t.nextSibling}function wA(t,e){t.textContent=e}var OV=58,i5t=120,o5t=Nn("","");function kR(t){return t===void 0}function el(t){return t!==void 0}function s5t(t,e,r){for(var n={},a=e;a<=r;++a){var i=t[a].key;i!==void 0&&(n[i]=a)}return n}function X_(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function i0(t){var e,r=t.children,n=t.tag;if(el(n)){var a=t.elm=Pre(n);if(N3(o5t,t),Re(r))for(e=0;ei?(v=r[l+1]==null?null:r[l+1].elm,Hre(t,v,r,a,l)):nC(t,e,n,i))}function ym(t,e){var r=e.elm=t.elm,n=t.children,a=e.children;t!==e&&(N3(t,e),kR(e.text)?el(n)&&el(a)?n!==a&&l5t(r,n,a):el(a)?(el(t.text)&&wA(r,""),Hre(r,null,a,0,a.length-1)):el(n)?nC(r,n,0,n.length-1):el(t.text)&&wA(r,""):t.text!==e.text&&(el(n)&&nC(r,n,0,n.length-1),wA(r,e.text)))}function c5t(t,e){if(X_(t,e))ym(t,e);else{var r=t.elm,n=jre(r);i0(e),n!==null&&(Nf(n,e.elm,Wre(r)),nC(n,[t],0,0))}return e}var u5t=0,d5t=function(){function t(e,r,n){if(this.type="svg",this.refreshHover=$V(),this.configLayer=$V(),this.storage=r,this._opts=n=De({},n),this.root=e,this._id="zr"+u5t++,this._oldVNode=yV(n.width,n.height),e&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Pre("svg");N3(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",c5t(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return kV(e,TR(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=TR(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=f5t(n,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=Nn("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var c=Oe(lr(i.defs),function(f){return i.defs[f]});if(c.length&&o.push(Nn("defs","defs",{},c)),e.animation){var d=UNt(i.cssNodes,i.cssAnims,{newline:!0});if(d){var u=Nn("style","stl",{},[],d);o.push(u)}}return yV(n,a,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},P3(this.renderToVNode({animation:mt(e.cssAnimation,!0),emphasis:mt(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:mt(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var a=e.length,i=[],o=0,s,l,c=0,d=0;d=0&&!(f&&l&&f[g]===l[g]);g--);for(var _=v-1;_>g;_--)o--,s=i[o-1];for(var b=g+1;b=s)}}for(var u=this.__startIndex;u15)break}}Y.prevElClipPaths&&b.restore()};if(w)if(w.length===0)R=_.__endIndex;else for(var $=p.dpr,N=0;N0&&e>a[0]){for(l=0;le);l++);s=n[a[l]]}if(a.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var c=s.dom;c.nextSibling?o.insertBefore(r.dom,c.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,a=0;a0?Yw:0),this._needsManuallyCompositing),d.__builtin__||fT("ZLevel "+c+" has been used by unkown layer "+d.id),d!==i&&(d.__used=!0,d.__startIndex!==l&&(d.__dirty=!0),d.__startIndex=l,d.incremental?d.__drawIndex=-1:d.__drawIndex=l,r(l),i=d),a.__dirty&Ai&&!a.__inHover&&(d.__dirty=!0,d.incremental&&d.__drawIndex<0&&(d.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(u,f){!u.__used&&u.getElementCount()>0&&(u.__dirty=!0,u.__startIndex=u.__endIndex=u.__drawIndex=0),u.__dirty&&u.__drawIndex<0&&(u.__drawIndex=u.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,G(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?Ot(n[e],r,!0):n[e]=r;for(var a=0;a>16)+e;a>255?a=255:a<0&&(a=0);let i=(n>>8&255)+e;i>255?i=255:i<0&&(i=0);let o=(n&255)+e;return o>255?o=255:o<0&&(o=0),(r?"#":"")+(o|i<<8|a<<16).toString(16)}function b5t(t){return{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:y5t(t,30)},{offset:1,color:t}]}}class aC{constructor(e,r,n,a,i){de(this,"moment");de(this,"calcTextWidth");de(this,"config");de(this,"themeType");de(this,"chart");de(this,"isTouch",typeof window<"u"?"ontouchstart"in window.document.documentElement:!1);de(this,"compact");de(this,"lastFormattedTime");de(this,"option");de(this,"debug",!1);if(this.moment=e,!this.moment)throw new Error("moment must be set and initialized");this.config=a?JSON.parse(JSON.stringify(a)):null,this.calcTextWidth=n,this.themeType=r||"light",this.chart={yAxis:[]},this.compact=i,this.lastFormattedTime=null}getHelperChartData(){return this.chart}convertData(e,r,n){const a=e[r];if(!(a!=null&&a.length))return[];const i=this.chart.yAxis[n]||{max:null,min:null};this.chart.yAxis[n]=i;for(let o=0;oa[o].value[1])&&(i.min=a[o].value[1]),(i.max===null||i.maxa[0].value[0])&&(this.chart.xMin=a[0].value[0]),(this.chart.xMax===null||this.chart.xMaxaC.getCommonAxis(i.commonYAxis,o)!==o);return this.config.l.map((i,o)=>{const s=i.color||(xA[r]?xA[r][n%xA[r].length]:"");i.color||n++,i.shadowsize=parseFloat(i.shadowsize)||0,i.dashes==="false"?i.dashes=!1:i.dashes==="true"&&(i.dashes=!0);const l=aC.getCommonAxis(i.commonYAxis,o);if(i.chartType==="bar")return{name:i.name,clip:!0,label:{show:!!this.config.barLabels,position:this.config.barLabels==="topover"?"top":this.config.barLabels==="topunder"?"insideTop":this.config.barLabels==="bottom"?"insideBottom":"inside",formatter:u=>this.yFormatter(u,o,!0),color:this.config.barFontColor||(this.themeType==="dark"?"#fff":"#000"),fontSize:parseInt(this.config.barFontSize,10)||void 0},barWidth:parseInt(this.config.barWidth,10)||void 0,stack:a?"total":void 0,silent:!0,type:"bar",animation:!1,data:e[o],color:s};if(i.chartType==="polar")return{clip:!0,ttt:84,label:{show:!!this.config.barLabels,position:this.config.barLabels==="topover"?"top":this.config.barLabels==="topunder"?"insideTop":this.config.barLabels==="bottom"?"insideBottom":"inside",formatter:u=>this.yFormatter(u,o,!0),color:this.config.barFontColor||(this.themeType==="dark"?"#fff":"#000"),fontSize:parseInt(this.config.barFontSize,10)||void 0},stack:a?"total":void 0,silent:!0,type:"radar",animation:!1,data:e[o],color:s};let c;if(i.chartType==="scatterplot")c={name:i.name,clip:!0,xAxisIndex:0,silent:!0,yAxisIndex:l,type:"scatter",animation:!1,data:this.convertData(e,o,l),itemStyle:{color:s},symbolSize:i.points?i.symbolSize||3:void 0,symbol:i.points?"circle":"none",emphasis:{scale:!1,focus:"none",disabled:!0}};else{const d={name:i.name,clip:!0,xAxisIndex:0,silent:!0,yAxisIndex:l,type:"line",animation:!1,step:i.chartType==="steps"?"end":i.chartType==="stepsStart"?"start":void 0,smooth:i.chartType==="spline",data:this.convertData(e,o,l),itemStyle:{color:s},symbolSize:i.points?i.symbolSize||3:void 0,symbol:i.points?"circle":"none",emphasis:{scale:!1,focus:"none",disabled:!0,lineStyle:{width:i.thickness!==void 0?parseFloat(i.thickness):1,shadowBlur:i.shadowsize?i.shadowsize+1:0,shadowOffsetY:i.shadowsize?i.shadowsize+1:0,shadowColor:s,type:i.dashes?"dashed":i.lineStyle||"solid"}},lineStyle:{width:i.thickness!==void 0?parseFloat(i.thickness):1,shadowBlur:i.shadowsize?i.shadowsize+1:0,shadowOffsetY:i.shadowsize?i.shadowsize+1:0,shadowColor:s,type:i.dashes?"dashed":i.lineStyle||"solid"}};if(parseFloat(i.fill)){let u;this.isTouch?u=s:u=b5t(s),d.areaStyle={color:u,opacity:parseFloat(i.fill)||0}}c=d}return c})}getXAxis(e){return this.config.l.find(n=>n.chartType==="bar")?[{type:"category",data:e.map(a=>`b${a}`),splitLine:{show:!this.config.grid_hideX,lineStyle:this.config.l[0].xaxe==="off"?{color:"rgba(0,0,0,0)",type:"dashed"}:this.config.grid_color?{color:this.config.grid_color,type:"dashed"}:{type:"dashed"}},position:this.config.l[0].xaxe==="top"?"top":"bottom",axisLabel:{show:!this.compact,formatter:(a,i)=>this.xFormatter(a,i,this.config.l[0].xaxe==="top"),fontSize:parseInt(this.config.x_labels_size,10)||12,color:this.config.l[0].xaxe==="off"?"rgba(0,0,0,0)":this.config.x_labels_color||void 0,rich:{a:{fontWeight:"bold"},b:{opacity:0}}}}]:[{type:"time",splitLine:{show:!this.config.grid_hideX,lineStyle:this.config.l[0].xaxe==="off"?{color:"rgba(0,0,0,0)",type:"dashed"}:this.config.grid_color?{color:this.config.grid_color,type:"dashed"}:{type:"dashed"}},splitNumber:parseInt(this.config.l[0].xticks,10)||void 0,position:this.config.l[0].xaxe==="top"?"top":"bottom",min:this.chart.xMin,max:this.chart.xMax,axisTick:{lineStyle:this.config.l[0].xaxe==="off"?{color:"rgba(0,0,0,0)"}:this.config.x_ticks_color?{color:this.config.x_ticks_color}:void 0},axisLabel:{show:!this.compact,formatter:(n,a)=>this.xFormatter(n,a,this.config.l[0].xaxe==="top"),fontSize:parseInt(this.config.x_labels_size,10)||12,color:this.config.l[0].xaxe==="off"?"rgba(0,0,0,0)":this.config.x_labels_color||void 0,rich:{a:{fontWeight:"bold"},b:{opacity:0}}}}]}getYAxis(e){return this.config.l.map((r,n)=>{var l,c;if(!r||r.commonYAxis!==""&&r.commonYAxis!==void 0)return{};let a=parseFloat(r.min),i=parseFloat(r.max);const o=this.chart.yAxis;if(o[n]){const d=o[n].max-o[n].min;Number.isNaN(a)&&(a=o[n].min-d*.1,d>25e3?a=Math.floor(a/1e4)*1e4:d>5e3?a=Math.floor(a/1e3)*1e3:d>200?a=Math.floor(a/100)*100:d>30?a=Math.floor(a/10)*10:d>10?a=Math.floor(a):d>1&&(a=Math.floor(a*10)/10)),Number.isNaN(i)&&(i=o[n].max+d*.1,d>25e3?i=Math.ceil(i/1e4)*1e4:d>5e3?i=Math.ceil(i/1e3)*1e3:d>200?i=Math.ceil(i/100)*100:d>30?i=Math.ceil(i/10)*10:d>10?i=Math.ceil(i):d>1&&(i=Math.floor(i*10)/10))}else Number.isNaN(a)&&(a=void 0),Number.isNaN(i)&&(i=void 0);let s=r.yaxe==="off"?"rgba(0,0,0,0)":this.config.grid_color||void 0;return(r.yaxe==="leftColor"||r.yaxe==="rightColor")&&(s=(c=(l=e[n])==null?void 0:l.itemStyle)==null?void 0:c.color),{type:"value",min:a,max:i,position:r.yaxe==="left"||r.yaxe==="off"||r.yaxe==="leftColor"?"left":r.yaxe==="right"||r.yaxe==="rightColor"||n?"right":"left",splitLine:n?void 0:{show:!this.config.grid_hideY,lineStyle:{color:s||void 0,type:"dashed"}},splitNumber:parseInt(r.yticks,10)||void 0,axisLabel:{show:!this.compact,formatter:d=>this.yFormatter(d,n,!0),color:r.yaxe==="off"||r.yaxe==="leftColor"||r.yaxe==="rightColor"?s:this.config.y_labels_color||void 0,fontSize:parseInt(this.config.y_labels_size,10)||12},axisTick:{alignWithLabel:!0,lineStyle:s?{color:s}:this.config.y_ticks_color?{color:this.config.y_ticks_color}:void 0}}})}getMarkings(e){var r;return(r=this.config.marks)==null||r.forEach(n=>{if(!n)return;const a=n.lowerValue!==void 0?n.lowerValue:parseFloat(n.lowerValueOrId),i=n.upperValue!==void 0?n.upperValue:parseFloat(n.upperValueOrId),o=a!==null&&!Number.isNaN(a),s=i!==null&&!Number.isNaN(i),l=e.series[n.lineId];if(!l){console.error("Mark line has no chart line");return}if(o&&s&&(l.markArea=l.markArea||{data:[]},l.markArea.data.push([{yAxis:a,itemStyle:{color:n.color||l.itemStyle.color,borderWidth:0,opacity:parseFloat(n.fill)||0}},{yAxis:i}])),o||s)for(let c=0;c<2;c++){if(!c&&!s)continue;if(c&&!o)continue;const d=c?a:i;if(l.markLine=l.markLine||{symbol:["none","none"],data:[]},l.markLine.data.push({yAxis:d,name:n.text,lineStyle:{color:n.color||l.itemStyle.color,width:parseFloat(n.ol)||1,shadowBlur:parseFloat(n.os)?parseFloat(n.os)+1:0,shadowOffsetY:parseFloat(n.os)?parseFloat(n.os)+1:0,shadowColor:n.color,type:n.lineStyle||"solid"},label:{show:!!n.text,formatter:u=>u.name,position:n.textPosition==="r"?"end":n.textPosition==="l"?"start":n.textPosition||"start",distance:[n.textPosition==="r"||n.textPosition==="l"?-1*n.textOffset||-35:parseFloat(n.textOffset)||0,0],fontStyle:"normal",color:n.textColor||"#FFF",fontSize:n.textSize||void 0}}),this.config.l[n.lineId]){const u=parseFloat(this.config.l[n.lineId].min);Number.isNaN(u)&&this.chart.yAxis[n.lineId]&&this.chart.yAxis[n.lineId].min>d&&d<0&&(e.yAxis[0].min=d);const f=parseFloat(this.config.l[n.lineId].min);Number.isNaN(f)&&this.chart.yAxis[n.lineId]&&this.chart.yAxis[n.lineId].max=.5?this.config.l[r].trueText||"TRUE":this.config.l[r].falseText||"FALSE":"";if(o==null)return"";const s=this.config.l[r].afterComma;return s!=null?(o=parseFloat(o),this.config.useComma?o.toFixed(s).replace(".",",")+(n?this.config.l[r].unit:""):o.toFixed(s)+(n?this.config.l[r].unit:"")):(a&&(o=Math.round(o*1e4)/1e4),this.config.useComma?(o=parseFloat(o)||0,o=o.toString().replace(".",",")+(n?this.config.l[r].unit:""),o):o.toString()+(n?this.config.l[r].unit:""))}isXLabelHasBreak(){return this.config.timeFormat?this.config.timeFormat.replace("
",` -`).includes(` -`):(this.chart.withSeconds||this.chart.withTime,!0)}xFormatter(e,r,n){if(typeof e=="string"&&e.startsWith("b")){const s=new Date(parseInt(e.substring(1),10));if(this.config.xLabelShift&&(this.config.xLabelShiftMonth?s.setMonth(s.getMonth()+this.config.xLabelShift):this.config.xLabelShiftYear?s.setFullYear(s.getFullYear()+this.config.xLabelShift):s.setSeconds(s.getSeconds()+this.config.xLabelShift)),this.config.aggregateBar===60)return`.${s.getDate()} ${s.getHours().toString().padStart(2,"0")}:00`;if(this.config.aggregateBar===15)return`${s.getHours().toString().padStart(2,"0")}:${s.getMinutes().toString().padStart(2,"0")}`;if(this.config.aggregateBar===1440)return`${s.getDate()}.${s.getMonth()+1}`;if(this.config.aggregateBar===43200){const l=new Date(s);return l.setDate(l.getDate()+15),`${l.getMonth()+1}.${l.getFullYear()}`}}const a=new Date(e);if(this.config.xLabelShift&&(this.config.xLabelShiftMonth?a.setMonth(a.getMonth()+this.config.xLabelShift):this.config.xLabelShiftYear?a.setFullYear(a.getFullYear()+this.config.xLabelShift):a.setSeconds(a.getSeconds()+this.config.xLabelShift)),this.config.timeFormat)return this.moment(a).format(this.config.timeFormat).replace("
",` -`);let i="";const o=a.getDate();if(this.chart.withSeconds||this.chart.withTime){let s=!1;if((r<2||this.lastFormattedTime===null||er||o[o.length-1].value[0]u.chartType==="bar"||u.chartType==="polar");let s;const l=r.map((u,f)=>{var b;const p=this.config.l[f],v=e.find(w=>w.seriesIndex===f);if(o){if(!v)return null;let w;if(p.afterComma!==void 0){const x=10**p.afterComma;w=Math.round(v.value*x)/x}else w=v.value;return s=v.name,`
${p.name}:
${w}${p.unit||""}
`}let g;if(v&&(g={exact:v.data.exact!==void 0?v.data.exact:!0,val:v.value[1]}),g=g||this.getInterpolatedValue(f,n,p.type,i),!g||!g.exact&&this.config.hoverNoInterpolate)return"";const _=g.val===null?"null":this.yFormatter(g.val,f,!1,!g.exact,!0);return`
${u.name}:
${g.exact?"":"i "}${_}${g.val!==null?p.unit:""}
`});if(o){const u=this.config.timeFormat||"dd, MM Do YYYY, HH:mm",f=new Date(parseInt(s.substring(1),10));return`${this.moment(f).format(u)}
${l.filter(p=>p).join("
")}`}const c=this.config.timeFormat||"dd, MM Do YYYY, HH:mm:ss.SSS";return`${this.moment(a).format(c)}
${l.filter(u=>u).join("
")}`}getLegend(e){if(!this.config.legend||this.config.legend==="dialog")return;const r={data:this.config.l.map(n=>n.name),show:!0,left:this.config.legend==="nw"||this.config.legend==="sw"?this.chart.padLeft+1:void 0,right:this.config.legend==="ne"||this.config.legend==="se"?this.chart.padRight+1:void 0,top:this.config.legend==="nw"||this.config.legend==="ne"?this.chart.padTop+2:void 0,bottom:this.config.legend==="sw"||this.config.legend==="se"?this.chart.padBottom+2:void 0,backgroundColor:this.config.legBg||void 0,height:this.config.legendHeight||void 0,formatter:n=>{if(this.config.legActual&&e){for(let a=0;ar.selected[n.name]=n.hide!==!0),r}getTitle(){if(!this.config||!this.config.title)return;const e={};return(this.config.titlePos||"top:35;left:65").split(";").forEach(r=>{const n=r.split(":");e[n[0].trim()]=parseInt(n[1].trim(),10)}),{text:this.config.title,textStyle:{fontSize:this.config.titleSize?parseInt(this.config.titleSize,10):20,color:this.config.titleColor||(this.themeType==="light"?"#000":"#FFF")},textVerticalAlign:e.bottom?"bottom":"top",textAlign:e.left===50?"center":e.right===-5?"right":"left",top:e.top===35?5+this.chart.padTop:e.top===50?"50%":void 0,left:e.left===50?"50%":e.left===65?this.chart.padLeft:void 0,bottom:e.bottom?e.bottom>0?e.bottom+this.chart.padBottom-15:e.bottom:void 0,right:e.right===5?this.chart.padRight:void 0}}getOption(e,r,n,a){var u;r&&(this.config=JSON.parse(JSON.stringify(r)));const i=this.isTouch&&this.config.zoom;let o=this.config.theme;(!o||o==="default")&&(o=this.themeType==="light"?"roma":"dark-bold"),this.debug=(u=this.config)==null?void 0:u.debug,this.debug&&console.log(`[ChartView ] [${new Date().toISOString()}] ${JSON.stringify(this.config,null,2)}`);const s=this.getSeries(e,o);if(this.config.start){const f=parseInt(this.config.end,10);this.chart.xMaxp&&(this.chart.xMin=p)}this.chart.diff=this.chart.xMax-this.chart.xMin,this.chart.withTime=this.chart.diff<36e5*24*7,this.chart.withSeconds=this.chart.diff<6e4*30,this.config.y_labels_size=parseInt(this.config.y_labels_size,10)||12,this.config.x_labels_size=parseInt(this.config.x_labels_size,10)||12,this.config.legFontSize=parseInt(this.config.legFontSize,10)||12;const l=this.getYAxis(s),c=this.getXAxis(a),d={theme:o,backgroundColor:"transparent",animation:!this.config.noAnimation&&!this.config.noLoader,grid:{backgroundColor:this.config.bg_custom||"transparent",show:!!this.config.bg_custom,left:10,top:8,right:this.config.export===!0||this.config.export==="true"?30:0,bottom:this.compact?4:this.isXLabelHasBreak()?40:24,containLabel:this.config.autoGridPadding},tooltip:!this.compact&&this.config.hoverDetail?{trigger:"axis",formatter:f=>this.renderTooltip(f)}:void 0,axisPointer:this.compact&&this.config.hoverDetail?{animation:!0}:void 0,xAxis:c,yAxis:l,series:s,useCanvas:i};if(this.config.l.forEach((f,p)=>{f.aggregate==="current"&&(d.series[p].data=[n[p]])}),this.config.l.find(f=>f.chartType==="polar")){d.animation=!1,d.radar={shape:this.config.radarCircle==="circle"?"circle":void 0,indicator:[]};const f=[{type:"radar",data:[{value:[]}],lineStyle:{color:d.series[0].color},label:d.series[0].label}];d.series.forEach((p,v)=>{const g=this.config.l[v].max&&parseFloat(this.config.l[v].max)||void 0;d.radar.indicator.push({name:p.name+(g!==void 0?` (max ${this.yFormatter(g,v,!0)})`:""),max:g});let _;for(let b=p.data.length-1;b>=0;b--)if(p.data[b]!==void 0&&p.data[b]!==null){_=p.data[b];break}_!==void 0?f[0].data[0].value.push(_):f[0].data[0].value.push(0)}),d.series=f,delete d.xAxis,delete d.yAxis,delete d.grid}else if(this.getMarkings(d),!this.compact&&!this.config.autoGridPadding){const f=s;let p=0,v=0,g=0,_=0;f.forEach((b,w)=>{let x=d.yAxis[b.yAxisIndex];if(!x){const L=this.config.l[b.yAxisIndex]?this.config.l[b.yAxisIndex].commonYAxis:void 0;if(L!==void 0)x=d.yAxis[L];else if(this.config.l[w].chartType==="bar"){x={min:b.data[0],max:b.data[0]};for(let $=1;$x.max||x.max===null)&&(x.max=b.data[$]))}else{console.log(`Cannot find Y axis for line ${w}`);return}}const C=this.yFormatter(x.min,w,!0,!1,!0),M=this.yFormatter(!x.min&&x.max===x.min?.8:x.max,w,!0,!1,!0);c[0].position==="top"?_=this.isXLabelHasBreak()?40:24:c[0].position==="bottom"&&(g=this.isXLabelHasBreak()?40:24);const k=x.position;if(x.axisLabel&&x.axisLabel.color==="rgba(0,0,0,0)")return;const O=this.calcTextWidth(C,this.config.y_labels_size)+4;let R=this.calcTextWidth(M,this.config.y_labels_size)+4;if(b.states){let L="";Object.keys(b.states).forEach($=>{b.states[$].length>L.length&&(L=b.states[$])}),R=this.calcTextWidth(L,this.config.y_labels_size)+4}k!=="right"?(O>p&&(p=O),R>p&&(p=R)):(O>v&&(v=O),R>v&&(v=R))}),d.grid.left=p+10,d.grid.right=v+10+(this.config.export===!0||this.config.export==="true"?20:0),d.grid.right<=10&&(_||g)&&(d.grid.right=18),d.grid.left<=10&&(_||g)&&(d.grid.left=18),this.chart.padLeft=d.grid.left,this.chart.padRight=d.grid.right,_||(_=8),g||(g=8),d.grid.top=_,d.grid.bottom=g,this.chart.padTop=d.grid.top,this.chart.padBottom=d.grid.bottom}return d.legend=this.getLegend(n),d.title=this.getTitle(),!this.config.grid_color&&Array.isArray(d.yAxis)&&(d.yAxis.forEach(f=>f.splitLine&&delete f.splitLine.lineStyle),d.xAxis.forEach(f=>f.splitLine&&delete f.splitLine.lineStyle)),this.option=d,this.option}}var Vw={};oa([Ure,PNt]);const w5t={init:function(){return X5.apply(null,arguments)}};oa(BAt);const S5t=Object.freeze(Object.defineProperty({__proto__:null,Axis:J0,ChartView:ia,ComponentModel:Jt,ComponentView:Cn,List:gl,Model:$r,PRIORITY:V5,SeriesModel:Da,color:iK,connect:Mee,dataTool:Lee,default:w5t,dependencies:_ee,disConnect:Oee,disconnect:J5,dispose:$ee,env:xt,extendChartView:bte,extendComponentModel:gte,extendComponentView:_te,extendSeriesModel:yte,format:lte,getCoordinateSystemDimensions:Pee,getInstanceByDom:WT,getInstanceById:Aee,getMap:Ree,graphic:ste,helper:rte,init:X5,innerDrawElementOnCanvas:BT,matrix:YZ,number:ite,parseGeoJSON:Zx,parseGeoJson:Zx,registerAction:Ao,registerCoordinateSystem:Q5,registerLayout:e3,registerLoading:VT,registerLocale:OT,registerMap:r3,registerPostInit:Z5,registerPostUpdate:K5,registerPreprocessor:UT,registerProcessor:YT,registerTheme:HT,registerTransform:n3,registerUpdateLifecycle:q0,registerVisual:Bc,setCanvasCreator:Iee,setPlatformAPI:GN,throttle:Y0,time:ote,use:oa,util:cte,vector:WZ,version:gee,zrUtil:zZ,zrender:bK},Symbol.toStringTag,{value:"Module"})),sa=ER(S5t);var IV;function x5t(){return IV||(IV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(Vw,function(e,r){var n=function(o){typeof console<"u"&&console&&console.error&&console.error(o)};if(!r){n("ECharts is not Loaded");return}var a=["#f2385a","#f5a503","#4ad9d9","#f7879c","#c1d7a8","#4dffd2","#fccfd7","#d5f6f6"],i={color:a,title:{textStyle:{fontWeight:"normal",color:"#f2385a"}},visualMap:{color:["#f2385a","#f5a503"]},toolbox:{color:["#f2385a","#f2385a","#f2385a","#f2385a"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#f2385a",type:"dashed"},crossStyle:{color:"#f2385a"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#f2385a"},timeline:{lineStyle:{color:"#f2385a"},controlStyle:{color:"#f2385a",borderColor:"#f2385a"}},candlestick:{itemStyle:{color:"#f2385a",color0:"#f5a503"},lineStyle:{width:1,color:"#f2385a",color0:"#f5a503"},areaStyle:{color:"#c1d7a8",color0:"#4ad9d9"}},map:{itemStyle:{color:"#f2385a"},areaStyle:{color:"#ddd"},label:{color:"#c12e34"}},graph:{itemStyle:{color:"#f2385a"},linkStyle:{color:"#f2385a"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#f5a503"],[.8,"#f2385a"],[1,"#c1d7a8"]],width:8}}}};r.registerTheme("azul",i)})}(Vw)),Vw}x5t();var Gw={},RV;function C5t(){return RV||(RV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(Gw,function(e,r){var n=function(o){typeof console<"u"&&console&&console.error&&console.error(o)};if(!r){n("ECharts is not Loaded");return}var a=["#001727","#805500","#ffff00","#ffd11a","#f2d71f","#f2be19","#f3a81a","#fff5cc"],i={color:a,title:{textStyle:{fontWeight:"normal",color:"#001727"}},visualMap:{color:["#001727","#805500"]},toolbox:{color:["#001727","#001727","#001727","#001727"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#001727",type:"dashed"},crossStyle:{color:"#001727"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#001727"},timeline:{lineStyle:{color:"#001727"},controlStyle:{color:"#001727",borderColor:"#001727"}},candlestick:{itemStyle:{color:"#f3a81a",color0:"#ffff00"},lineStyle:{width:1,color:"#ffff00",color0:"#f3a81a"},areaStyle:{color:"#805500",color0:"#ffff00"}},chord:{padding:4,itemStyle:{color:"#f3a81a",borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)"},lineStyle:{color:"rgba(128, 128, 128, 0.5)"},areaStyle:{color:"#805500"}},map:{itemStyle:{color:"#ffd11a"},areaStyle:{color:"#f2be19"},label:{color:"#ffd11a"}},graph:{itemStyle:{color:"#001727"},linkStyle:{color:"#001727"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#f2d71f"],[.8,"#001727"],[1,"#ffff00"]],width:8}}}};r.registerTheme("bee-inspired",i)})}(Gw)),Gw}C5t();var qw={},LV;function T5t(){return LV||(LV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(qw,function(e,r){var n=function(o){typeof console<"u"&&console&&console.error&&console.error(o)};if(!r){n("ECharts is not Loaded");return}var a=["#1790cf","#1bb2d8","#99d2dd","#88b0bb","#1c7099","#038cc4","#75abd0","#afd6dd"],i={color:a,title:{textStyle:{fontWeight:"normal",color:"#1790cf"}},visualMap:{color:["#1790cf","#a2d4e6"]},toolbox:{color:["#1790cf","#1790cf","#1790cf","#1790cf"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#1790cf",type:"dashed"},crossStyle:{color:"#1790cf"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(144,197,237,0.2)",handleColor:"#1790cf"},timeline:{lineStyle:{color:"#1790cfa"},controlStyle:{color:"#1790cf",borderColor:"#1790cf"}},candlestick:{itemStyle:{color:"#1bb2d8",color0:"#99d2dd"},lineStyle:{width:1,color:"#1c7099",color0:"#88b0bb"},areaStyle:{color:"#1790cf",color0:"#1bb2d8"}},chord:{padding:4,itemStyle:{color:"#1bb2d8",borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)"},lineStyle:{color:"rgba(128, 128, 128, 0.5)"},areaStyle:{color:"#1790cf"}},graph:{itemStyle:{color:"#1bb2d8"},linkStyle:{color:"#88b0bb"}},map:{itemStyle:{color:"#ddd"},areaStyle:{color:"99d2dd"},label:{color:"#c12e34"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#1bb2d8"],[.8,"#1790cf"],[1,"#1c7099"]],width:8}}}};r.registerTheme("blue",i)})}(qw)),qw}T5t();var Xw={},NV;function k5t(){return NV||(NV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(Xw,function(e,r){var n=function(o){typeof console<"u"&&console&&console.error&&console.error(o)};if(!r){n("ECharts is not Loaded");return}var a=["#C1232B","#27727B","#FCCE10","#E87C25","#B5C334","#FE8463","#9BCA63","#FAD860","#F3A43B","#60C0DD","#D7504B","#C6E579","#F4E001","#F0805A","#26C0C0"],i={color:a,title:{textStyle:{fontWeight:"normal",color:"#27727B"}},visualMap:{color:["#C1232B","#FCCE10"]},toolbox:{iconStyle:{borderColor:a[0]}},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#27727B",type:"dashed"},crossStyle:{color:"#27727B"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"rgba(181,195,52,0.3)",fillerColor:"rgba(181,195,52,0.2)",handleColor:"#27727B"},categoryAxis:{axisLine:{lineStyle:{color:"#27727B"}},splitLine:{show:!1}},valueAxis:{axisLine:{show:!1},splitArea:{show:!1},splitLine:{lineStyle:{color:["#ccc"],type:"dashed"}}},timeline:{itemStyle:{color:"#27727B"},lineStyle:{color:"#27727B"},controlStyle:{color:"#27727B",borderColor:"#27727B"},symbol:"emptyCircle",symbolSize:3},line:{itemStyle:{borderWidth:2,borderColor:"#fff",lineStyle:{width:3}},emphasis:{itemStyle:{borderWidth:0}},symbol:"circle",symbolSize:3.5},candlestick:{itemStyle:{color:"#c1232b",color0:"#b5c334"},lineStyle:{width:1,color:"#c1232b",color0:"#b5c334"},areaStyle:{color:"#c1232b",color0:"#27727b"}},graph:{itemStyle:{color:"#c1232b"},linkStyle:{color:"#b5c334"}},map:{itemStyle:{color:"#f2385a",areaColor:"#ddd",borderColor:"#eee"},areaStyle:{color:"#fe994e"},label:{color:"#c1232b"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#B5C334"],[.8,"#27727B"],[1,"#C1232B"]]}},axisTick:{splitNumber:2,length:5,lineStyle:{color:"#fff"}},axisLabel:{color:"#fff"},splitLine:{length:"5%",lineStyle:{color:"#fff"}},title:{offsetCenter:[0,-20]}}};r.registerTheme("infographic",i)})}(Xw)),Xw}k5t();var Jw={},FV;function E5t(){return FV||(FV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(Jw,function(e,r){var n=function(i){typeof console<"u"&&console&&console.error&&console.error(i)};if(!r){n("ECharts is not Loaded");return}var a=["#d87c7c","#919e8b","#d7ab82","#6e7074","#61a0a8","#efa18d","#787464","#cc7e63","#724e58","#4b565b"];r.registerTheme("vintage",{color:a,backgroundColor:"#fef8ef",graph:{color:a}})})}(Jw)),Jw}E5t();var Zw={},zV;function D5t(){return zV||(zV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(Zw,function(e,r){var n=function(c){typeof console<"u"&&console&&console.error&&console.error(c)};if(!r){n("ECharts is not Loaded");return}var a="#B9B8CE",i="#100C2A",o=function(){return{axisLine:{lineStyle:{color:a}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},s=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],l={darkMode:!0,color:s,backgroundColor:i,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:a}},textStyle:{color:a},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:a}},dataZoom:{borderColor:"#71708A",textStyle:{color:a},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:a}},timeline:{lineStyle:{color:a},label:{color:a},controlStyle:{color:a,borderColor:a}},calendar:{itemStyle:{color:i},dayLabel:{color:a},monthLabel:{color:a},yearLabel:{color:a}},timeAxis:o(),logAxis:o(),valueAxis:o(),categoryAxis:o(),line:{symbol:"circle"},graph:{color:s},gauge:{title:{color:a}},candlestick:{itemStyle:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}};l.categoryAxis.splitLine.show=!1,r.registerTheme("dark",l)})}(Zw)),Zw}D5t();var Kw={},BV;function M5t(){return BV||(BV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(Kw,function(e,r){var n=function(o){typeof console<"u"&&console&&console.error&&console.error(o)};if(!r){n("ECharts is not Loaded");return}var a=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],i={color:a,title:{textStyle:{fontWeight:"normal",color:"#008acd"}},visualMap:{itemWidth:15,color:["#5ab1ef","#e0ffff"]},toolbox:{iconStyle:{borderColor:a[0]}},tooltip:{borderWidth:0,backgroundColor:"rgba(50,50,50,0.5)",textStyle:{color:"#FFF"},axisPointer:{type:"line",lineStyle:{color:"#008acd"},crossStyle:{color:"#008acd"},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},dataZoom:{dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd"},grid:{borderColor:"#eee"},categoryAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#008acd"},controlStyle:{color:"#008acd",borderColor:"#008acd"},symbol:"emptyCircle",symbolSize:3},line:{smooth:!0,symbol:"emptyCircle",symbolSize:3},candlestick:{itemStyle:{color:"#d87a80",color0:"#2ec7c9"},lineStyle:{width:1,color:"#d87a80",color0:"#2ec7c9"},areaStyle:{color:"#2ec7c9",color0:"#b6a2de"}},scatter:{symbol:"circle",symbolSize:4},map:{itemStyle:{color:"#ddd"},areaStyle:{color:"#fe994e"},label:{color:"#d87a80"}},graph:{itemStyle:{color:"#d87a80"},linkStyle:{color:"#2ec7c9"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#2ec7c9"],[.8,"#5ab1ef"],[1,"#d87a80"]],width:10}},axisTick:{splitNumber:10,length:15,lineStyle:{color:"auto"}},splitLine:{length:22,lineStyle:{color:"auto"}},pointer:{width:5}}};r.registerTheme("macarons",i)})}(Kw)),Kw}M5t();var Qw={},jV;function O5t(){return jV||(jV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(Qw,function(e,r){var n=function(o){typeof console<"u"&&console&&console.error&&console.error(o)};if(!r){n("ECharts is not Loaded");return}var a=["#c12e34","#e6b600","#0098d9","#2b821d","#005eaa","#339ca8","#cda819","#32a487"],i={color:a,title:{textStyle:{fontWeight:"normal"}},visualMap:{color:["#1790cf","#a2d4e6"]},toolbox:{iconStyle:{borderColor:"#06467c"}},tooltip:{backgroundColor:"rgba(0,0,0,0.6)"},dataZoom:{dataBackgroundColor:"#dedede",fillerColor:"rgba(154,217,247,0.2)",handleColor:"#005eaa"},timeline:{lineStyle:{color:"#005eaa"},controlStyle:{color:"#005eaa",borderColor:"#005eaa"}},candlestick:{itemStyle:{color:"#c12e34",color0:"#2b821d"},lineStyle:{width:1,color:"#c12e34",color0:"#2b821d"},areaStyle:{color:"#e6b600",color0:"#005eaa"}},graph:{itemStyle:{color:"#e6b600"},linkStyle:{color:"#005eaa"}},map:{itemStyle:{color:"#f2385a",borderColor:"#eee",areaColor:"#ddd"},areaStyle:{color:"#ddd"},label:{color:"#c12e34"}},gauge:{axisLine:{show:!0,lineStyle:{color:[[.2,"#2b821d"],[.8,"#005eaa"],[1,"#c12e34"]],width:5}},axisTick:{splitNumber:10,length:8,lineStyle:{color:"auto"}},axisLabel:{color:"auto"},splitLine:{length:12,lineStyle:{color:"auto"}},pointer:{length:"90%",width:3,color:"auto"},title:{color:"#333"},detail:{color:"auto"}}};r.registerTheme("shine",i)})}(Qw)),Qw}O5t();var eS={},WV;function $5t(){return WV||(WV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(eS,function(e,r){var n=function(o){typeof console<"u"&&console&&console.error&&console.error(o)};if(!r){n("ECharts is not Loaded");return}var a=["#E01F54","#001852","#f5e8c8","#b8d2c7","#c6b38e","#a4d8c2","#f3d999","#d3758f","#dcc392","#2e4783","#82b6e9","#ff6347","#a092f1","#0a915d","#eaf889","#6699FF","#ff6666","#3cb371","#d5b158","#38b6b6"],i={color:a,visualMap:{color:["#e01f54","#e7dbc3"],textStyle:{color:"#333"}},candlestick:{itemStyle:{color:"#e01f54",color0:"#001852"},lineStyle:{width:1,color:"#f5e8c8",color0:"#b8d2c7"},areaStyle:{color:"#a4d8c2",color0:"#f3d999"}},graph:{itemStyle:{color:"#a4d8c2"},linkStyle:{color:"#f3d999"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#E01F54"],[.8,"#b8d2c7"],[1,"#001852"]],width:8}}}};r.registerTheme("roma",i)})}(eS)),eS}$5t();var tS={},HV;function A5t(){return HV||(HV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(tS,function(e,r){var n=function(o){typeof console<"u"&&console&&console.error&&console.error(o)};if(!r){n("ECharts is not Loaded");return}var a=["#3f7ea6","#993366","#408000","#8c6f56","#a65149","#731f17","#adc2eb","#d9c3b0"],i={color:a,title:{textStyle:{fontWeight:"normal",color:"#3f7ea6"}},visualMap:{color:["#3f7ea6","#993366"]},toolbox:{color:["#3f7ea6","#3f7ea6","#3f7ea6","#3f7ea6"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#3f7ea6",type:"dashed"},crossStyle:{color:"#3f7ea6"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#3f7ea6"},timeline:{lineStyle:{color:"#3f7ea6"},controlStyle:{color:"#3f7ea6",borderColor:"#3f7ea6"}},candlestick:{itemStyle:{color:"#d9c3b0",color0:"#8c6f56"},lineStyle:{width:1,color:"#731f17",color0:"#a65149"},areaStyle:{color:"#3f7ea6",color0:"#993366"}},map:{itemStyle:{color:"#d9c3b0"},areaStyle:{color:"#ddd"},label:{color:"#c12e34"}},graph:{itemStyle:{color:"#993366"},linkStyle:{color:"#3f7ea6"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#d9c3b0"],[.8,"#3f7ea6"],[1,"#731f17"]],width:8}}}};r.registerTheme("royal",i)})}(tS)),tS}A5t();var rS={},UV;function P5t(){return UV||(UV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(rS,function(e,r){var n=function(l){typeof console<"u"&&console&&console.error&&console.error(l)};if(!r){n("ECharts is not Loaded");return}var a="#eee",i=function(){return{axisLine:{lineStyle:{color:a}},axisTick:{lineStyle:{color:a}},axisLabel:{color:a},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:a}}}},o=["#00305a","#004b8d","#0074d9","#4192d9","#7abaf2","#99cce6","#d6ebf5","#eeeeee"],s={color:o,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:a},crossStyle:{color:a}}},legend:{textStyle:{color:a}},title:{textStyle:{color:a}},toolbox:{iconStyle:{borderColor:a}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#00305a"},timeline:{itemStyle:{color:o[1]},lineStyle:{color:a},controlStyle:{color:a,borderColor:a},label:{color:a}},timeAxis:i(),logAxis:i(),valueAxis:i(),categoryAxis:i(),line:{symbol:"circle"},graph:{color:o},gauge:{axisLine:{lineStyle:{color:[[.2,"#004b8d"],[.8,"#00305a"],[1,"#7abaf2"]],width:8}}}};s.categoryAxis.splitLine.show=!1,r.registerTheme("dark-blue",s)})}(rS)),rS}P5t();var nS={},YV;function I5t(){return YV||(YV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(nS,function(e,r){var n=function(o){typeof console<"u"&&console&&console.error&&console.error(o)};if(!r){n("ECharts is not Loaded");return}var a=["#4d4d4d","#3a5897","#007bb6","#7094db","#0080ff","#b3b3ff","#00bdec","#33ccff","#ccddff","#eeeeee"],i={color:a,title:{textStyle:{fontWeight:"normal",color:"#00aecd"}},visualMap:{color:["#00aecd","#a2d4e6"]},toolbox:{color:["#00aecd","#00aecd","#00aecd","#00aecd"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#00aecd",type:"dashed"},crossStyle:{color:"#00aecd"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(144,197,237,0.2)",handleColor:"#00aecd"},timeline:{lineStyle:{color:"#00aecd"},controlStyle:{color:"#00aecd"},emphasis:{controlStyle:{color:"#00aecd"}}},candlestick:{itemStyle:{color:"#ddd",color0:"#eee"},lineStyle:{width:1,color:"#33ccff",color0:"#1bb4cf"},areaStyle:{color:"#7094db",color0:"#33ccff"}},chord:{padding:4,itemStyle:{color:"#7094db",borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)"},lineStyle:{color:"rgba(128, 128, 128, 0.5)"},areaStyle:{color:"#33ccff"}},graph:{itemStyle:{color:"#7094db"},linkStyle:{color:"#33ccff"}},map:{itemStyle:{color:"#7094db"},areaStyle:{color:"#33ccff"},label:{color:"#ddd"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#dddddd"],[.8,"#00aecd"],[1,"#33ccff"]],width:8}}}};r.registerTheme("tech-blue",i)})}(nS)),nS}I5t();var aS={},VV;function R5t(){return VV||(VV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(aS,function(e,r){var n=function(o){typeof console<"u"&&console&&console.error&&console.error(o)};if(!r){n("ECharts is not Loaded");return}var a=["#d8361b","#f16b4c","#f7b4a9","#d26666","#99311c","#c42703","#d07e75"],i={color:a,title:{textStyle:{fontWeight:"normal",color:"#d8361b"}},visualMap:{color:["#d8361b","#ffd2d2"]},dataRange:{color:["#bd0707","#ffd2d2"]},toolbox:{color:["#d8361b","#d8361b","#d8361b","#d8361b"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#d8361b",type:"dashed"},crossStyle:{color:"#d8361b"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(216,54,27,0.2)",handleColor:"#d8361b"},grid:{borderWidth:0},categoryAxis:{axisLine:{lineStyle:{color:"#d8361b"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#d8361b"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#d8361b"},controlStyle:{color:"#d8361b",borderColor:"#d8361b"}},candlestick:{itemStyle:{color:"#f16b4c",color0:"#f7b4a9"},lineStyle:{width:1,color:"#d8361b",color0:"#d26666"},areaStyle:{color:"#d8361b",color0:"#d07e75"}},graph:{itemStyle:{color:"#d07e75"},linkStyle:{color:"#d8361b"}},chord:{padding:4,itemStyle:{color:"#d07e75",borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)"},lineStyle:{color:"rgba(128, 128, 128, 0.5)"},areaStyle:{color:"#d8361b"}},map:{itemStyle:{color:"#d8361b"},areaStyle:{color:"#d07e75"},label:{color:"#c12e34"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#f16b4c"],[.8,"#d8361b"],[1,"#99311c"]],width:8}}}};r.registerTheme("red",i)})}(aS)),aS}R5t();var iS={},GV;function L5t(){return GV||(GV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(iS,function(e,r){var n=function(o){typeof console<"u"&&console&&console.error&&console.error(o)};if(!r){n("ECharts is not Loaded");return}var a=["#8b1a2d","#a7314b","#e6004c","#ff8066","#8e5c4e","#ff1a66","#d6c582","#f0d4af"],i={color:a,title:{textStyle:{fontWeight:"normal",color:"#8b1a2d"}},visualMap:{color:["#8b1a2d","#a7314b"]},toolbox:{color:["#8b1a2d","#8b1a2d","#8b1a2d","#8b1a2d"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#8b1a2d",type:"dashed"},crossStyle:{color:"#8b1a2d"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#8b1a2d"},timeline:{lineStyle:{color:"#8b1a2d"},controlStyle:{color:"#8b1a2d",borderColor:"#8b1a2d"}},candlestick:{itemStyle:{color:"#a7314b",color0:"#d6c582"},lineStyle:{width:1,color:"#8e5c4e",color0:"#f0d4af"},areaStyle:{color:"#8b1a2d",color0:"#ff8066"}},map:{itemStyle:{color:"#8b1a2d"},areaStyle:{color:"#ff8066"},label:{color:"#c12e34"}},graph:{itemStyle:{color:"#ff8066"},linkStyle:{color:"#8b1a2d"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#a7314b"],[.8,"#8b1a2d"],[1,"#8e5c4e"]],width:8}}}};r.registerTheme("red-velvet",i)})}(iS)),iS}L5t();var oS={},qV;function N5t(){return qV||(qV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(oS,function(e,r){var n=function(o){typeof console<"u"&&console&&console.error&&console.error(o)};if(!r){n("ECharts is not Loaded");return}var a=["#408829","#68a54a","#a9cba2","#86b379","#397b29","#8abb6f","#759c6a","#bfd3b7"],i={color:a,title:{textStyle:{fontWeight:"normal",color:"#408829"}},visualMap:{color:["408829","#a9cba2"]},toolbox:{color:["#408829","#408829","#408829","#408829"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#408829",type:"dashed"},crossStyle:{color:"#408829"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(64,136,41,0.2)",handleColor:"#408829"},grid:{borderWidth:0},categoryAxis:{axisLine:{lineStyle:{color:"#408829"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#408829"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#408829"},controlStyle:{color:"#408829",borderColor:"#408829"}},candlestick:{itemStyle:{color:"#68a54a",color0:"#a9cba2"},lineStyle:{width:1,color:"#408829",color0:"#86b379"},areaStyle:{color:"#408829",color0:"#bfd3b7"}},graph:{itemStyle:{color:"#bfd3b7"},linkStyle:{color:"#408829"}},chord:{padding:4,itemStyle:{color:"#bfd3b7",borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)"},lineStyle:{color:"rgba(128, 128, 128, 0.5)"},areaStyle:{color:"#408829"}},map:{itemStyle:{color:"#ddd"},areaStyle:{color:"#408829"},label:{color:"#000"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#86b379"],[.8,"#68a54a"],[1,"#408829"]],width:8}}}};r.registerTheme("green",i)})}(oS)),oS}N5t();var sS={},XV;function F5t(){return XV||(XV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(sS,function(e,r){var n=function(o){typeof console<"u"&&console&&console.error&&console.error(o)};if(!r){n("ECharts is not Loaded");return}var a=["#757575","#c7c7c7","#dadada","#8b8b8b","#b5b5b5","#e9e9e9"],i={color:a,title:{textStyle:{fontWeight:"normal",color:"#757575"}},dataRange:{color:["#636363","#dcdcdc"]},toolbox:{color:["#757575","#757575","#757575","#757575"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#757575",type:"dashed"},crossStyle:{color:"#757575"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(117,117,117,0.2)",handleColor:"#757575"},grid:{borderWidth:0},categoryAxis:{axisLine:{lineStyle:{color:"#757575"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#757575"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#757575"},controlStyle:{color:"#757575",borderColor:"#757575"}},candlestick:{itemStyle:{color:"#8b8b8b",color0:"#dadada"},lineStyle:{width:1,color:"#757575",color0:"#c7c7c7"},areaStyle:{color:"#757575",color0:"#e9e9e9"}},map:{itemStyle:{color:"#c7c7c7"},areaStyle:{color:"ddd"},label:{color:"#c12e34"}},graph:{itemStyle:{color:"#e9e9e9"},linkStyle:{color:"#757575"}},chord:{padding:4,itemStyle:{color:"#e9e9e9",borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)"},lineStyle:{color:"rgba(128, 128, 128, 0.5)"},areaStyle:{color:"#757575"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#b5b5b5"],[.8,"#757575"],[1,"#5c5c5c"]],width:8}}}};r.registerTheme("gray",i)})}(sS)),sS}F5t();var lS={},JV;function z5t(){return JV||(JV=1,function(t){(function(e,r){typeof t.nodeName!="string"?r(t,sa):r({},e.echarts)})(lS,function(e,r){var n=function(l){typeof console<"u"&&console&&console.error&&console.error(l)};if(!r){n("ECharts is not Loaded");return}var a="#eee",i=function(){return{axisLine:{lineStyle:{color:a}},axisTick:{lineStyle:{color:a}},axisLabel:{color:a},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:a}}}},o=["#458c6b","#f2da87","#d9a86c","#d94436","#a62424","#76bc9b","#cce6da","#eeeeee"],s={color:o,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:a},crossStyle:{color:a}}},legend:{textStyle:{color:a}},title:{textStyle:{color:a}},toolbox:{iconStyle:{borderColor:a}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#458c6b"},timeline:{itemStyle:{color:o[1]},lineStyle:{color:a},controlStyle:{color:a,borderColor:a},label:{color:a}},timeAxis:i(),logAxis:i(),valueAxis:i(),categoryAxis:i(),line:{symbol:"circle"},graph:{color:o},gauge:{axisLine:{lineStyle:{color:[[.2,"#f2da87"],[.8,"#458c6b"],[1,"#a62424"]],width:8}}}};s.categoryAxis.splitLine.show=!1,r.registerTheme("dark-bold",s)})}(lS)),lS}z5t();oa([RY,oLt,DLt,uNt,ONt,FLt,qLt,eNt,TLt,RY,cPt,cIt,TPt,bIt,h5t,Ure]);const Mu={chart:{maxHeight:"100%",maxWidth:"100%",width:"100%",height:"100%",overflow:"hidden",position:"relative"},saveImageButton:{position:"absolute",top:40,right:5,width:20,height:20,zIndex:2,opacity:.7,cursor:"pointer"},exportDataButton:{position:"absolute",top:70,right:5,width:20,height:20,zIndex:2,opacity:.7,cursor:"pointer"},copyButton:{position:"absolute",top:100,right:5,width:20,height:20,zIndex:2,opacity:.7,cursor:"pointer"},resetButton:{position:"absolute",top:10,right:25,zIndex:2,opacity:.7},legendButton:{position:"absolute",top:10,left:30,zIndex:2,opacity:.7},resetButtonIcon:{paddingTop:6}};let ZV=null;function B5t(t,e,r){const a=(ZV||(ZV=document.createElement("canvas"))).getContext("2d");a.font=`${e||12}px ${r||"Microsoft YaHei"}`;const i=a.measureText(t);return Math.ceil(i.width)}class j5t extends E.Component{constructor(r){var n,a;super(r);de(this,"divRef");de(this,"echartsReact",null);de(this,"divResetButton");de(this,"selected",null);de(this,"lastIds");de(this,"chartOption");de(this,"resetZoomAndTiltTimer",null);de(this,"timerResize",null);de(this,"updatePropertiesTimeout",null);de(this,"updateDataTimer",null);de(this,"debug",!1);de(this,"mouseDown",!1);de(this,"option",null);de(this,"zr",null);de(this,"zrMousemove",!1);de(this,"zrIobInstalled",!1);de(this,"updateProperties",r=>{var n,a;if(this.updatePropertiesTimeout=null,this.echartsReact&&typeof this.echartsReact.getEchartsInstance=="function"){const i=this.echartsReact.getEchartsInstance(),o=((a=(n=r.config)==null?void 0:n.l)==null?void 0:a.map(l=>l.id))||[];o.sort();const s=JSON.stringify(o)!==JSON.stringify(this.lastIds);s&&(this.lastIds=o,i.clear()),this.option=this.chartOption.getOption(r.data,r.config,r.actualValues,r.categories),this.applySelected(),this.debug&&console.log(`[ChartView ] [${new Date().toISOString()}] updateProperties: {min: ${this.option.xAxis[0].min}, ${this.option.xAxis[0].max}}`);try{i.setOption(this.option,s)}catch{console.error(`Cannot apply options: ${JSON.stringify(this.option)}`)}}});de(this,"onResize",()=>{this.timerResize&&clearTimeout(this.timerResize),this.timerResize=setTimeout(()=>{this.timerResize=null,this.componentDidUpdate()})});de(this,"onMouseMove",r=>{if(this.mouseDown){this.divResetButton.current&&this.divResetButton.current.style.display!=="block"&&(this.divResetButton.current.style.display="block");const n=this.chartOption.getHelperChartData();if(r.shiftKey){n.yMoved=!0;const a=n.lastY-(r.offsetY-n.padTop);n.lastY=r.offsetY-n.padTop;const i=this.state.chartHeight-n.padTop-n.padBottom;let o,s;n._yAxis.forEach(l=>{s=l.max-l.min,o=a*s/i,l.min-=o,l.max-=o}),this.setNewYAxis(n._yAxis)}else{n.xMoved=!0;const a=n.lastX-(r.offsetX-n.padLeft);n.lastX=r.offsetX-n.padLeft;const i=n.xMax-n.xMin,o=this.state.chartWidth-n.padRight-n.padLeft,s=Math.round(a*i/o);n.xMin+=s,n.xMax+=s,this.setNewRange()}}});de(this,"onMouseDown",r=>{this.mouseDown=!0;const n=this.chartOption.getHelperChartData();n.lastX=r.offsetX,n.lastY=r.offsetY,n.yMoved=!1,n.xMoved=!1,n._yAxis=JSON.parse(JSON.stringify(n.yAxis)),this.zr&&!this.zrMousemove&&(this.zrMousemove=!0,this.zr.on("mousemove",this.onMouseMove)),this.props.config.live&&this.props.onRangeChange&&(console.log("Stop update"),this.props.onRangeChange({stopLive:!0}))});de(this,"onMouseUp",()=>{this.mouseDown=!1,this.chartOption.getHelperChartData().xMoved&&this.setNewRange(!0),this.zr&&this.zrMousemove&&(this.zrMousemove=!1,this.zr.off("mousemove",this.onMouseMove))});de(this,"onMouseWheel",r=>{const n=this.chartOption.getHelperChartData();if(r.shiftKey){const a=this.state.chartHeight-n.padBottom-n.padTop,o=(r.offsetY-n.padTop)/a,s=r.deltaY>0||r.deltaX>0?1.1:.9,l=JSON.parse(JSON.stringify(n.yAxis));n.yAxis.forEach(c=>{let d=c.max-c.min;const u=d;d*=s;const f=u-d;c.max+=f*(1-o),c.min-=f*o}),this.setNewYAxis(l)}else{let a=n.xMax-n.xMin;const i=this.state.chartWidth-n.padRight-n.padLeft,s=(r.offsetX-n.padLeft)/i,l=a,c=r.deltaY>0||r.deltaX>0?1.1:.9;a*=c;const d=l-a;n.xMax+=d*(1-s),n.xMin-=d*s,this.setNewRange(),this.updateDataTimer&&clearTimeout(this.updateDataTimer),this.updateDataTimer=setTimeout(()=>this.setNewRange(!0),1e3)}});de(this,"onTouchStart",r=>{this.mouseDown=!0;const n=r.touches||r.originalEvent.touches;if(n){r.preventDefault(),r.stopImmediatePropagation();const a=this.chartOption.getHelperChartData();a.lastX=n[n.length-1].pageX,n.length>1?a.lastWidth=Math.round(Math.abs(n[0].pageX-n[1].pageX)):a.lastWidth=null}});de(this,"onTouchEnd",r=>{this.mouseDown&&(r.stopImmediatePropagation(),r.preventDefault(),this.mouseDown=!1,this.setNewRange(!0))});de(this,"onTouchMove",r=>{const n=r.touches||r.originalEvent.touches;if(!n)return;const a=this.chartOption.getHelperChartData(),i=n[n.length-1].pageX-a.padLeft;if(this.mouseDown)if(r.preventDefault(),r.stopImmediatePropagation(),this.divResetButton.current&&this.divResetButton.current.style.display!=="block"&&(this.divResetButton.current.style.display="block"),n.length>1){console.log(`touch move: ${n.length}`);const o=Math.round(Math.abs(n[0].pageX-n[1].pageX));if(a.lastWidth!==null&&o!==a.lastWidth){let s=a.xMax-a.xMin;const l=this.state.chartWidth-a.padRight-a.padLeft,c=o>a.lastWidth?1.05:.95,u=(n[0].pageX>n[1].pageX?n[1].pageX-a.padLeft+o/2:n[0].pageX-a.padLeft+o/2)/l,f=s;s*=c;const p=f-s;console.log(`Move: ${Math.round(p/1e3)} => ${Math.round(p*u/1e3)} -- ${Math.round(p*(1-u)/1e3)}`),a.xMax+=p*(1-u),a.xMin-=p*u,a.xMax=Math.round(a.xMax),a.xMin=Math.round(a.xMin),this.setNewRange()}a.lastWidth=o}else{const o=a.lastX-i,s=a.xMax-a.xMin,l=this.state.chartWidth-a.padRight-a.padLeft,c=Math.round(o*s/l);a.xMin+=c,a.xMax+=c,this.setNewRange()}a.lastX=i});this.state={chartHeight:null,chartWidth:null,excluded:[],timeFormat:window.localStorage.getItem("Chart.timeFormat")||"locale",data:null,exporting:!1,showExportDataDialog:!1,showLegendDialog:!1},this.divRef=E.createRef(),this.divResetButton=E.createRef(),Ye.locale(te.getLanguage()),this.lastIds=((a=(n=this.props.config)==null?void 0:n.l)==null?void 0:a.map(i=>i.id))||[],this.lastIds.sort(),this.chartOption=new aC(Ye,this.props.themeType,B5t,void 0,this.props.compact)}componentDidMount(){window.addEventListener("resize",this.onResize)}componentWillUnmount(){this.resetZoomAndTiltTimer&&(clearTimeout(this.resetZoomAndTiltTimer),this.resetZoomAndTiltTimer=null),this.timerResize&&(clearTimeout(this.timerResize),this.timerResize=null),this.updatePropertiesTimeout&&(clearTimeout(this.updatePropertiesTimeout),this.updatePropertiesTimeout=null),this.updateDataTimer&&(clearTimeout(this.updateDataTimer),this.updateDataTimer=null),window.removeEventListener("resize",this.onResize)}UNSAFE_componentWillReceiveProps(r){r.data!==this.state.data&&(this.updatePropertiesTimeout&&clearTimeout(this.updatePropertiesTimeout),this.updatePropertiesTimeout=setTimeout(this.updateProperties,100,r))}setNewRange(r){var a;const n=this.chartOption.getHelperChartData();if(n.diff=n.xMax-n.xMin,n.withTime=n.diff<36e5*24*7,n.withSeconds=n.diff<6e4*30,console.log(`[ChartView ] [${new Date().toISOString()}] setNewRange: ${!!r}, {min: ${new Date(n.xMin).toString()}, max: ${new Date(n.xMax).toString()}}`),r)this.updateDataTimer&&(clearTimeout(this.updateDataTimer),this.updateDataTimer=null),this.props.onRangeChange&&this.props.onRangeChange({start:n.xMin,end:n.xMax}),this.props.config.resetZoom&&(this.resetZoomAndTiltTimer&&clearTimeout(this.resetZoomAndTiltTimer),this.resetZoomAndTiltTimer=setTimeout(()=>{this.resetZoomAndTiltTimer=null,this.divResetButton.current&&(this.divResetButton.current.style.display="none"),this.props.onRangeChange&&this.props.onRangeChange()},1e3*this.props.config.resetZoom));else{console.log(`[ChartView ] [${new Date().toISOString()}] setOption in setNewRange`),this.option.xAxis[0].min=n.xMin,this.option.xAxis[0].max=n.xMax;try{typeof((a=this.echartsReact)==null?void 0:a.getEchartsInstance)=="function"&&this.echartsReact.getEchartsInstance().setOption({xAxis:{min:n.xMin,max:n.xMax}})}catch{console.error(`Cannot apply options 1: ${JSON.stringify(this.option)}`)}}}setNewYAxis(r){var n;this.option.yAxis=r;try{typeof((n=this.echartsReact)==null?void 0:n.getEchartsInstance)=="function"&&this.echartsReact.getEchartsInstance().setOption({yAxis:r})}catch{console.error(`Cannot apply options 2: ${JSON.stringify(this.option)}`)}}installEventHandlers(){var a;this.zr=(a=this.echartsReact)!=null&&a.getEchartsInstance?this.echartsReact.getEchartsInstance().getZr():null;const r=this.divRef.current&&this.divRef.current.getElementsByClassName("echarts-for-react"),n=r==null?void 0:r[0];this.zr&&this.props.config.zoom&&!this.zrIobInstalled?(this.zrIobInstalled=!0,!this.option||!this.option.useCanvas?(this.zr.on("mousedown",this.onMouseDown),this.zr.on("mouseup",this.onMouseUp),this.zr.on("mousewheel",this.onMouseWheel)):n&&(n.addEventListener("touchstart",this.onTouchStart,!1),n.addEventListener("touchend",this.onTouchEnd,!1),n.addEventListener("touchmove",this.onTouchMove,!1))):this.zr&&!this.props.config.zoom&&this.zrIobInstalled&&(this.zrIobInstalled=!1,this.option||!this.option.useCanvas?(this.zr.off("mousedown",this.onMouseDown),this.zr.off("mouseup",this.onMouseUp),this.zr.off("mousewheel",this.onMouseWheel),this.zr&&this.zrMousemove&&(this.zrMousemove=!1,this.zr.off("mousemove",this.onMouseMove))):n&&(n.removeEventListener("touchstart",this.onTouchStart,!1),n.removeEventListener("touchend",this.onTouchEnd,!1),n.removeEventListener("touchmove",this.onTouchMove,!1)))}applySelected(){this.props.config.legend==="dialog"?(this.option.legend={data:this.props.config.l.map(r=>r.name),show:!1,selected:{}},this.props.config.l.forEach(r=>this.option.legend.selected[r.name]=!this.state.excluded.includes(r.id))):this.selected&&this.option.legend&&Object.keys(this.selected).forEach(r=>this.option.legend.selected[r]=this.selected[r])}renderChart(){if(this.props.data){this.option=this.option||this.chartOption.getOption(this.props.data,this.props.config,this.props.actualValues,this.props.categories);const r=!!this.props.config.l.find(n=>n.chartType==="bar"||n.chartType==="polar");return this.props.config.title?window.document.title=this.props.config.title:this.props.config.presetId&&(window.document.title=this.props.config.presetId),this.debug&&console.log(`[ChartView ] [${new Date().toISOString()}] render chart`),this.applySelected(),q.jsx(JCt,{ref:n=>{this.echartsReact=n},echarts:jAt,option:this.option,notMerge:!0,lazyUpdate:!0,theme:this.option.theme,style:{height:`${this.state.chartHeight}px`,width:"100%"},opts:this.option&&this.option.useCanvas?void 0:{renderer:"svg"},onEvents:{legendselectchanged:n=>{this.selected=JSON.parse(JSON.stringify(n.selected))},rendered:()=>!this.props.compact&&this.props.config.zoom&&!r&&this.installEventHandlers()}})}return q.jsx(bL,{})}componentDidUpdate(){if(this.divRef.current){const r=this.props.config.noBorder!=="noborder"&&parseFloat(this.props.config.border_width)||0,n=parseFloat(this.props.config.border_padding)||0,a=this.divRef.current.offsetHeight-(r+n)*2;if(this.state.chartHeight!==a){const i=this.divRef.current.offsetWidth-(r+n)*2;setTimeout(()=>this.setState({chartHeight:a,chartWidth:i}),10)}}}renderResetButton(){return q.jsx(_c,{ref:this.divResetButton,size:"small",color:"default",style:{...Mu.resetButton,display:"none"},title:te.t("Reset pan and zoom"),onClick:()=>{this.divResetButton.current&&(this.divResetButton.current.style.display="none"),this.props.onRangeChange&&this.props.onRangeChange()},children:q.jsx(Gbt,{style:Mu.resetButtonIcon})})}renderSaveImageButton(){return this.props.config.export?q.jsx(Ybt,{color:this.props.config.exportColor||"default",style:Mu.saveImageButton,title:this.option&&this.option.useCanvas?te.t("Save chart as png"):te.t("Save chart as svg"),onClick:()=>{var r,n;if(this.echartsReact&&typeof this.echartsReact.getEchartsInstance=="function"){let i=this.echartsReact.getEchartsInstance().getDataURL({pixelRatio:2,backgroundColor:this.props.config.window_bg||(this.props.themeType==="dark"?"#000":"#FFF")});if(!this.option||!this.option.useCanvas)try{const d=i.split(",");let u=decodeURIComponent(d[1]);u=u.replace('fill="none"',`fill="${this.props.config.window_bg||(this.props.themeType==="dark"?"#000":"#FFF")}"`),u=u.replace('fill="transparent"',`fill="${this.props.config.window_bg||(this.props.themeType==="dark"?"#000":"#FFF")}"`),i=`${d[0]},${encodeURIComponent(u)}`}catch(d){console.warn(`cannot attach background: ${d}`)}const o=document.createElement("a");document.body.appendChild(o),o.href=i,o.target="_self";let s;this.props.config.l.length===1?s=this.props.config.l[0].name:s="chart";const l=this.option,c=l==null?void 0:l.series;if((n=(r=c==null?void 0:c[0])==null?void 0:r.data)!=null&&n.length){const d=new Date(l.xAxis[0].max||c[0].data[c[0].data.length-1].value[0]);try{o.download=`${d.getFullYear()}_${(d.getMonth()+1).toString().padStart(2,"0")}_${d.getDate().toString().padStart(2,"0")}_${d.getHours().toString().padStart(2,"0")}_${d.getMinutes().toString().padStart(2,"0")}_${s}.${this.option&&this.option.useCanvas?"png":"svg"}`,o.click()}catch(u){console.error(`Cannot access download: ${u}`),window.alert(te.t("Unfortunately your browser does not support this feature"))}}else window.alert(te.t("No data found"))}}}):null}exportData(){const r=this.chartOption.getHelperChartData();this.setState({exporting:!0},()=>this.props.exportData(r.xMin,r.xMax,this.state.excluded).then(n=>{const a=document.createElement("a");document.body.appendChild(a);const i=["time"],o=[];Object.keys(n).forEach((u,f)=>{i.push(u),n[u].forEach(p=>{const v=[p.ts];v[f+1]=p.val,o.push(v)})}),o.sort((u,f)=>u[0]-f[0]);for(let u=0;u{let f;if(l==="iso")f=new Date(u.shift()).toISOString();else if(l==="locale"){const p=new Date(u.shift());f=`${p.toLocaleDateString()} ${p.toLocaleTimeString()}.${p.getMilliseconds().toString().padStart(3,"0")}`}else f=u.shift().toString();s.push(`${f};${u.join(";")}`)}),a.href=`data:text/plain;charset=utf-8,${i.join(";")} -${s.join(` -`)}`,a.target="_self";let c;this.props.config.l.length===1?c=this.props.config.l[0].name:c="chart";const d=new Date(r.xMin);try{a.download=`${d.getFullYear()}_${(d.getMonth()+1).toString().padStart(2,"0")}_${d.getDate().toString().padStart(2,"0")}_${d.getHours().toString().padStart(2,"0")}_${d.getMinutes().toString().padStart(2,"0")}_${c}.csv`,a.click()}catch(u){console.error(`Cannot access download: ${u}`),window.alert(te.t("Unfortunately your browser does not support this feature"))}this.setState({exporting:!1})}))}renderExportDataButton(){return this.props.config.exportData?q.jsx(Vbt,{color:this.props.config.exportDataColor||"default",style:{...Mu.exportDataButton,opacity:this.state.exporting?.5:1},title:te.t("Export raw data as CSV"),onClick:()=>{this.state.exporting||(this.props.config.l.length===1?this.exportData():this.setState({showExportDataDialog:!0}))}}):null}renderLegendDialog(){var r,n;return this.props.config.legend!=="dialog"?null:q.jsxs(q.Fragment,{children:[q.jsx(_c,{size:"small",color:"default",style:{...Mu.legendButton,left:((n=(r=this.option)==null?void 0:r.grid)==null?void 0:n.left)||0},title:te.t("Select lines"),onClick:()=>this.setState({showLegendDialog:!0}),children:q.jsx(Wbt,{style:Mu.resetButtonIcon})}),this.state.showLegendDialog?q.jsxs(ms,{open:!0,onClose:()=>this.setState({showLegendDialog:!1}),children:[q.jsx(_s,{children:te.t("Select lines to show")}),q.jsxs(gs,{children:[q.jsx(Xt,{control:q.jsx(Un,{checked:!this.state.excluded.length,indeterminate:this.state.excluded.length&&this.state.excluded.length!==this.props.config.l.length,onChange:()=>{this.state.excluded.length?this.setState({excluded:[]}):this.setState({excluded:this.props.config.l.map(a=>a.id)})}}),label:this.state.excluded.length!==this.props.config.l.length?te.t("Select all"):te.t("Unselect all")}),this.props.config.l.map((a,i)=>q.jsxs(tn,{onClick:()=>{const o=[...this.state.excluded],s=o.indexOf(a.id);s===-1?o.push(a.id):o.splice(s,1),this.setState({excluded:o})},children:[q.jsx(Un,{checked:!this.state.excluded.includes(a==null?void 0:a.id)}),q.jsxs("div",{children:[q.jsx("div",{children:(a==null?void 0:a.name)||(a==null?void 0:a.id)}),q.jsx("div",{style:{opacity:.7,fontStyle:"italic",fontSize:"smaller"},children:a!=null&&a.name?a==null?void 0:a.id:null})]})]},i))]}),q.jsx(vs,{children:q.jsx(Vr,{variant:"contained",color:"grey",onClick:()=>this.setState({showLegendDialog:!1}),startIcon:q.jsx("span",{style:{fontSize:14},children:"X"}),children:te.t("Close")})})]}):null]})}renderExportDataDialog(){return this.state.showExportDataDialog?q.jsxs(ms,{open:!0,onClose:()=>this.setState({showExportDataDialog:!1}),children:[q.jsx(_s,{children:te.t("Select lines for export")}),q.jsxs(gs,{children:[q.jsxs(Af,{fullWidth:!0,variant:"standard",children:[q.jsx(ty,{children:te.t("Time format")}),q.jsxs(ns,{value:this.state.timeFormat,onChange:r=>{window.localStorage.setItem("Chart.timeFormat",r.target.value),this.setState({timeFormat:r.target.value})},children:[q.jsx(tn,{value:"iso",children:"ISO"}),q.jsx(tn,{value:"locale",children:te.t("Browser format")}),q.jsx(tn,{value:"ts",children:te.t("Time stamp in milliseconds")})]})]}),q.jsx(Xt,{control:q.jsx(Un,{checked:!this.state.excluded.length,indeterminate:this.state.excluded.length&&this.state.excluded.length!==this.props.config.l.length,onChange:()=>{this.state.excluded.length?this.setState({excluded:[]}):this.setState({excluded:this.props.config.l.map(r=>r.id)})}}),label:this.state.excluded.length!==this.props.config.l.length?te.t("Select all"):te.t("Unselect all")}),this.props.config.l.map((r,n)=>q.jsxs(tn,{onClick:()=>{const a=[...this.state.excluded],i=a.indexOf(r.id);i===-1?a.push(r.id):a.splice(i,1),this.setState({excluded:a})},children:[q.jsx(Un,{checked:!this.state.excluded.includes(r==null?void 0:r.id)}),q.jsxs("div",{children:[q.jsx("div",{children:(r==null?void 0:r.name)||(r==null?void 0:r.id)}),q.jsx("div",{style:{opacity:.7,fontStyle:"italic",fontSize:"smaller"},children:r!=null&&r.name?r==null?void 0:r.id:null})]})]},n))]}),q.jsxs(vs,{children:[q.jsx(Vr,{variant:"contained",color:"primary",disabled:this.state.excluded.length===this.props.config.l.length,startIcon:q.jsx(Hbt,{}),onClick:()=>{this.setState({showExportDataDialog:!1}),this.exportData()},children:te.t("Export")}),q.jsx(Vr,{variant:"contained",color:"grey",onClick:()=>this.setState({showExportDataDialog:!1}),startIcon:q.jsx("span",{style:{fontSize:14},children:"X"}),children:te.t("Cancel")})]})]}):null}renderDevCopyButton(){return window.location.port==="3000"?q.jsx(Ubt,{color:"default",style:Mu.copyButton,title:"Copy option to clipboard",onClick:()=>tr.copyToClipboard(JSON.stringify(this.option,null,2))}):null}render(){this.divRef.current||setTimeout(()=>this.forceUpdate(),10);const r=this.props.config.noBorder!=="noborder"&&parseFloat(this.props.config.border_width)||0,n=parseFloat(this.props.config.border_padding)||0;return q.jsxs("div",{ref:this.divRef,style:{...Mu.chart,borderWidth:r,width:r||n?`calc(100% - ${(r+n)*2+1}px)`:"100%",height:r||n?`calc(100% - ${(r+n)*2}px)`:"100%",background:this.props.config.noBackground?void 0:this.props.config.window_bg||void 0,borderColor:this.props.config.noBorder!=="noborder"&&this.props.config.border_color||void 0,borderStyle:this.props.config.noBorder!=="noborder"&&r?this.props.config.border_style||"solid":"hidden",padding:n||0},children:[this.renderSaveImageButton(),this.renderExportDataDialog(),this.renderExportDataButton(),this.renderResetButton(),this.renderDevCopyButton(),this.state.chartHeight!==null?this.renderChart():null,this.option?this.renderLegendDialog():null]})}}const W5t=S0()(j5t),KV={root:{width:"100%",height:"100%",position:"relative"},progress:{position:"absolute",top:0,left:0,right:0,display:"block"}};class iC extends z.Component{constructor(r){super(r);de(this,"socket");de(this,"chartData");de(this,"inEdit");de(this,"divRef");de(this,"progressRef");de(this,"progressShown");de(this,"adminCorrectTimeout",null);de(this,"onReceiveMessage",r=>{if(r&&r.data!=="chartReady")try{const n=JSON.parse(r.data);this.chartData?this.chartData.setConfig(n):this.createChartData(n)}catch{console.log(`Cannot parse ${r.data}`)}});const n=iC.createTheme(),a=tr.parseQuery(window.location.search),i=tr.parseQuery((window.location.hash||"").replace(/^#/,""));this.state={connected:!1,seriesData:null,categories:null,actualValues:null,noLoader:!!a.noLoader||!!i.noLoader||!1,theme:n,themeType:iC.getThemeType(n),noBackground:!!a.noBG||!!i.noBG||!1,compact:!!a.compact||!!i.compact||!1,dataLoaded:!1},this.inEdit=a.edit==="1"||a.edit===1||a.edit===!0||a.edit==="true"||i.edit==="1"||i.edit===1||i.edit===!0||i.edit==="true",this.divRef=E.createRef(),this.progressRef=E.createRef(),this.progressShown=!0;const o={en:A$e,de:PLe,ru:IFe,pt:Rje,nl:LUe,fr:NXe,it:Bet,es:jit,pl:Wut,uk:Hmt,"zh-cn":U0t},s={en:q0t,de:K0t,ru:rbt,pt:obt,nl:ubt,fr:pbt,it:_bt,es:Sbt,pl:kbt,uk:Obt,"zh-cn":Ibt};Object.keys(o).forEach(l=>o[l]=Object.assign(o[l],s[l])),te.setTranslations(o),window.socketUrl&&window.socketUrl.startsWith(":")&&(window.socketUrl=`${window.location.protocol}//${window.location.hostname}${window.socketUrl}`),window.location.port==="8082"&&window.location.pathname.includes("/adapter/echarts/chart/")&&(this.adminCorrectTimeout=setTimeout(()=>{this.adminCorrectTimeout=null,window.location.href=window.location.href.replace("/adapter/echarts/chart/","/echarts/")},2e3)),this.socket=new Pu({name:window.adapterName,onProgress:l=>{l===al.CONNECTING?this.state.seriesData?(this.divRef.current&&(this.divRef.current.style.opacity="0.5"),this.progressRef.current&&(this.progressRef.current.style.display="block")):this.setState({connected:!1}):l===al.READY?(this.setState({connected:!0}),this.restoreAfterReconnection()):(this.setState({connected:!0}),this.restoreAfterReconnection())},onReady:()=>{if(this.adminCorrectTimeout&&(clearTimeout(this.adminCorrectTimeout),this.adminCorrectTimeout=null),te.setLanguage(this.socket.systemLang),this.inEdit){if(window.addEventListener("message",this.onReceiveMessage),window.self!==window.parent)try{window.parent.postMessage("chartReady","*")}catch(l){console.warn("Cannot send ready event to parent window"),console.error(l)}}else this.createChartData()},onError:l=>{console.error(l),this.showError(l)}})}restoreAfterReconnection(){this.divRef.current&&(this.divRef.current.style.opacity="1"),this.progressRef.current&&!this.progressShown&&(this.progressRef.current.style.display="none"),this.state.seriesData&&!this.state.seriesData.find(r=>r.length)&&this.chartData.setNewRange()}createChartData(r){this.chartData=new ti(this.socket,r,{compact:this.state.compact}),this.chartData.onError(n=>{n.toString().includes(cc.NOT_CONNECTED)?(this.divRef.current&&(this.divRef.current.style.opacity="0.5"),this.progressRef.current&&(this.progressRef.current.style.display="block")):this.showError(te.t(n.toString()))}),this.chartData.onReading(n=>this.showProgress(n)),this.chartData.onUpdate((n,a,i)=>{const o={connected:!0,dataLoaded:!0};n&&(o.seriesData=n,o.categories=i),a&&(o.actualValues=a),this.setState(o,()=>this.showProgress(!1))})}showProgress(r){this.progressShown=r,this.progressRef.current&&(this.progressRef.current.style.display=r?"block":"none")}componentWillUnmount(){this.inEdit&&window.removeEventListener("message",this.onReceiveMessage,!1),this.chartData&&this.chartData.destroy()}static createTheme(r){return r_e(tr.getThemeName(r))}static getThemeType(r){return r.palette.mode}showError(r){this.setState({errorText:r})}renderError(){return this.state.errorText?q.jsx(eX,{text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}componentDidUpdate(){!this.progressShown&&this.progressRef.current&&this.progressRef.current.style.display!=="none"&&(this.progressRef.current.style.display="none")}render(){var a;if(!this.state.connected||!this.state.seriesData)return this.state.noLoader?null:q.jsx(sz,{injectFirst:!0,children:q.jsx(Mz,{theme:this.state.theme,children:q.jsx(R_e,{themeType:this.state.themeType})})});const r=this.chartData.getConfig(),n=Ode(JSON.stringify((((a=r==null?void 0:r.l)==null?void 0:a.map(i=>i.id))||[]).sort())).toString();return this.state.seriesData&&r.debug&&console.log(`seriesData: ${JSON.stringify(this.state.seriesData)}`),q.jsx(sz,{injectFirst:!0,children:q.jsx(Mz,{theme:this.state.theme,children:q.jsxs("div",{ref:this.divRef,style:{...KV.root,width:r.width,height:r.height,background:this.state.noBackground||r.noBackground?void 0:this.state.theme.palette.background.default,color:this.state.theme.palette.text.primary},children:[q.jsx(bL,{ref:this.progressRef,style:KV.progress}),q.jsx(W5t,{socket:this.socket,t:te.t,noAnimation:this.state.noLoader,data:this.state.seriesData,actualValues:this.state.actualValues,categories:this.state.categories||[],config:r,compact:this.state.compact,lang:te.getLanguage(),themeType:this.state.themeType,onRangeChange:i=>this.chartData.setNewRange(i),exportData:(i,o,s)=>this.chartData.exportData(i,o,s)},n),this.renderError()]})})})}}const H5t=S0()(iC);window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function U5t(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const Y5t="echarts.index",V5t="1.9.5",G5t={"@types/crypto-js":"^4.2.2","@vitejs/plugin-react":"^4.3.4","crypto-js":"^4.2.0",echarts:"^5.6.0","echarts-for-react":"^3.0.2",moment:"^2.30.1","react-i18next":"^15.4.0","react-icons":"^5.4.0",typescript:"^5.7.2"},q5t=".",X5t="http://localhost:8081",J5t={start:"vite dev --config vite.config.mjs --host",build:"vite build --config vite.config.mjs",lint:"eslint -c eslint.config.mjs"},Z5t={extends:"react-app"},K5t=[">0.2%","not dead","not ie <= 11","not op_mini all"],Yre={name:Y5t,version:V5t,private:!0,dependencies:G5t,homepage:q5t,_proxy:X5t,scripts:J5t,eslintConfig:Z5t,browserslist:K5t};window.adapterName="echarts-show";window.sentryDSN="https://cf39325071144219aa91bb3510addcdf@sentry.iobroker.net/95";console.log(`iobroker.${window.adapterName}@${Yre.version}"`);window.location.host!=="localhost:3000"&&Gse({dsn:window.sentryDSN,release:`iobroker.${window.adapterName}@${Yre.version}`,integrations:[SG()],beforeSend(t){let e=!1;return t.exception&&t.exception.values&&t.exception.values[0]&&(t.exception.values[0].type==="NS_ERROR_FAILURE"||t.exception.values[0].value&&(t.exception.values[0].value.includes("Microsoft YaHei")||t.exception.values[0].value==="ResizeObserver loop completed with undelivered notifications."||t.exception.values[0].value==="undefined is not an object (evaluating 't.get')"||t.exception.values[0].value==="Cannot read property 'get' of undefined"||t.exception.values[0].value==="this.painter is null"||t.exception.values[0].value.includes("ioBroker is not connected")||t.exception.values[0].value==="Cannot read property 'getDisplayList' of null"))&&(e=!0),e?null:t}});const QV=document.getElementById("root");QV&&Rne.createRoot(QV).render(q.jsx(H5t,{}));U5t()});export default Q5t(); diff --git a/admin/chart/assets/index-ZF2lF8gx.js b/admin/chart/assets/index-ZF2lF8gx.js new file mode 100644 index 00000000..d0c960d3 --- /dev/null +++ b/admin/chart/assets/index-ZF2lF8gx.js @@ -0,0 +1,637 @@ +var pne=Object.defineProperty;var vne=(t,e,r)=>e in t?pne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var mne=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ae=(t,e,r)=>vne(t,typeof e!="symbol"?e+"":e,r);var D5t=mne((qa,Gn)=>{function gne(t,e){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Gu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _ne(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")&&Object.keys(t).length===1?t.default:t}var iT={exports:{}},mv={},sT={exports:{}},Lt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var I3;function yne(){if(I3)return Lt;I3=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),u=Symbol.iterator;function f(z){return z===null||typeof z!="object"?null:(z=u&&z[u]||z["@@iterator"],typeof z=="function"?z:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function _(z,U,Z){this.props=z,this.context=U,this.refs=g,this.updater=Z||p}_.prototype.isReactComponent={},_.prototype.setState=function(z,U){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,U,"setState")},_.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function b(){}b.prototype=_.prototype;function w(z,U,Z){this.props=z,this.context=U,this.refs=g,this.updater=Z||p}var S=w.prototype=new b;S.constructor=w,m(S,_.prototype),S.isPureReactComponent=!0;var x=Array.isArray,E=Object.prototype.hasOwnProperty,T={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function A(z,U,Z){var K,se={},we=null,Le=null;if(U!=null)for(K in U.ref!==void 0&&(Le=U.ref),U.key!==void 0&&(we=""+U.key),U)E.call(U,K)&&!D.hasOwnProperty(K)&&(se[K]=U[K]);var $e=arguments.length-2;if($e===1)se.children=Z;else if(1<$e){for(var Me=Array($e),ke=0;ke<$e;ke++)Me[ke]=arguments[ke+2];se.children=Me}if(z&&z.defaultProps)for(K in $e=z.defaultProps,$e)se[K]===void 0&&(se[K]=$e[K]);return{$$typeof:t,type:z,key:we,ref:Le,props:se,_owner:T.current}}function P(z,U){return{$$typeof:t,type:z.type,key:U,ref:z.ref,props:z.props,_owner:z._owner}}function O(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function I(z){var U={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(Z){return U[Z]})}var F=/\/+/g;function N(z,U){return typeof z=="object"&&z!==null&&z.key!=null?I(""+z.key):U.toString(36)}function B(z,U,Z,K,se){var we=typeof z;(we==="undefined"||we==="boolean")&&(z=null);var Le=!1;if(z===null)Le=!0;else switch(we){case"string":case"number":Le=!0;break;case"object":switch(z.$$typeof){case t:case e:Le=!0}}if(Le)return Le=z,se=se(Le),z=K===""?"."+N(Le,0):K,x(se)?(Z="",z!=null&&(Z=z.replace(F,"$&/")+"/"),B(se,U,Z,"",function(ke){return ke})):se!=null&&(O(se)&&(se=P(se,Z+(!se.key||Le&&Le.key===se.key?"":(""+se.key).replace(F,"$&/")+"/")+z)),U.push(se)),1;if(Le=0,K=K===""?".":K+":",x(z))for(var $e=0;$e>>1,U=G[z];if(0>>1;za(se,te))wea(Le,se)?(G[z]=Le,G[we]=te,z=we):(G[z]=se,G[K]=te,z=K);else if(wea(Le,te))G[z]=Le,G[we]=te,z=we;else break e}}return q}function a(G,q){var te=G.sortIndex-q.sortIndex;return te!==0?te:G.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();t.unstable_now=function(){return i.now()-s}}var l=[],c=[],d=1,u=null,f=3,p=!1,m=!1,g=!1,_=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(G){for(var q=r(c);q!==null;){if(q.callback===null)n(c);else if(q.startTime<=G)n(c),q.sortIndex=q.expirationTime,e(l,q);else break;q=r(c)}}function x(G){if(g=!1,S(G),!m)if(r(l)!==null)m=!0,V(E);else{var q=r(c);q!==null&&Q(x,q.startTime-G)}}function E(G,q){m=!1,g&&(g=!1,b(A),A=-1),p=!0;var te=f;try{for(S(q),u=r(l);u!==null&&(!(u.expirationTime>q)||G&&!I());){var z=u.callback;if(typeof z=="function"){u.callback=null,f=u.priorityLevel;var U=z(u.expirationTime<=q);q=t.unstable_now(),typeof U=="function"?u.callback=U:u===r(l)&&n(l),S(q)}else n(l);u=r(l)}if(u!==null)var Z=!0;else{var K=r(c);K!==null&&Q(x,K.startTime-q),Z=!1}return Z}finally{u=null,f=te,p=!1}}var T=!1,D=null,A=-1,P=5,O=-1;function I(){return!(t.unstable_now()-OG||125z?(G.sortIndex=te,e(c,G),r(l)===null&&G===r(c)&&(g?(b(A),A=-1):g=!0,Q(x,te-z))):(G.sortIndex=U,e(l,G),m||p||(m=!0,V(E))),G},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(G){var q=f;return function(){var te=f;f=q;try{return G.apply(this,arguments)}finally{f=te}}}}(uT)),uT}var z3;function xne(){return z3||(z3=1,cT.exports=Sne()),cT.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var B3;function Cne(){if(B3)return _a;B3=1;var t=zc(),e=xne();function r(h){for(var v="https://reactjs.org/docs/error-decoder.html?invariant="+h,y=1;y"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,c=/^[: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]*$/,d={},u={};function f(h){return l.call(u,h)?!0:l.call(d,h)?!1:c.test(h)?u[h]=!0:(d[h]=!0,!1)}function p(h,v,y,C){if(y!==null&&y.type===0)return!1;switch(typeof v){case"function":case"symbol":return!0;case"boolean":return C?!1:y!==null?!y.acceptsBooleans:(h=h.toLowerCase().slice(0,5),h!=="data-"&&h!=="aria-");default:return!1}}function m(h,v,y,C){if(v===null||typeof v>"u"||p(h,v,y,C))return!0;if(C)return!1;if(y!==null)switch(y.type){case 3:return!v;case 4:return v===!1;case 5:return isNaN(v);case 6:return isNaN(v)||1>v}return!1}function g(h,v,y,C,M,$,L){this.acceptsBooleans=v===2||v===3||v===4,this.attributeName=C,this.attributeNamespace=M,this.mustUseProperty=y,this.propertyName=h,this.type=v,this.sanitizeURL=$,this.removeEmptyString=L}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(h){_[h]=new g(h,0,!1,h,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(h){var v=h[0];_[v]=new g(v,1,!1,h[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(h){_[h]=new g(h,2,!1,h.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(h){_[h]=new g(h,2,!1,h,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(h){_[h]=new g(h,3,!1,h.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(h){_[h]=new g(h,3,!0,h,null,!1,!1)}),["capture","download"].forEach(function(h){_[h]=new g(h,4,!1,h,null,!1,!1)}),["cols","rows","size","span"].forEach(function(h){_[h]=new g(h,6,!1,h,null,!1,!1)}),["rowSpan","start"].forEach(function(h){_[h]=new g(h,5,!1,h.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function w(h){return h[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(h){var v=h.replace(b,w);_[v]=new g(v,1,!1,h,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(h){var v=h.replace(b,w);_[v]=new g(v,1,!1,h,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(h){var v=h.replace(b,w);_[v]=new g(v,1,!1,h,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(h){_[h]=new g(h,1,!1,h.toLowerCase(),null,!1,!1)}),_.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(h){_[h]=new g(h,1,!1,h.toLowerCase(),null,!0,!0)});function S(h,v,y,C){var M=_.hasOwnProperty(v)?_[v]:null;(M!==null?M.type!==0:C||!(2Y||M[L]!==$[Y]){var J=` +`+M[L].replace(" at new "," at ");return h.displayName&&J.includes("")&&(J=J.replace("",h.displayName)),J}while(1<=L&&0<=Y);break}}}finally{Z=!1,Error.prepareStackTrace=y}return(h=h?h.displayName||h.name:"")?U(h):""}function se(h){switch(h.tag){case 5:return U(h.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return h=K(h.type,!1),h;case 11:return h=K(h.type.render,!1),h;case 1:return h=K(h.type,!0),h;default:return""}}function we(h){if(h==null)return null;if(typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case D:return"Fragment";case T:return"Portal";case P:return"Profiler";case A:return"StrictMode";case N:return"Suspense";case B:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case I:return(h.displayName||"Context")+".Consumer";case O:return(h._context.displayName||"Context")+".Provider";case F:var v=h.render;return h=h.displayName,h||(h=v.displayName||v.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case j:return v=h.displayName||null,v!==null?v:we(h.type)||"Memo";case V:v=h._payload,h=h._init;try{return we(h(v))}catch{}}return null}function Le(h){var v=h.type;switch(h.tag){case 24:return"Cache";case 9:return(v.displayName||"Context")+".Consumer";case 10:return(v._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return h=v.render,h=h.displayName||h.name||"",v.displayName||(h!==""?"ForwardRef("+h+")":"ForwardRef");case 7:return"Fragment";case 5:return v;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return we(v);case 8:return v===A?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v}return null}function $e(h){switch(typeof h){case"boolean":case"number":case"string":case"undefined":return h;case"object":return h;default:return""}}function Me(h){var v=h.type;return(h=h.nodeName)&&h.toLowerCase()==="input"&&(v==="checkbox"||v==="radio")}function ke(h){var v=Me(h)?"checked":"value",y=Object.getOwnPropertyDescriptor(h.constructor.prototype,v),C=""+h[v];if(!h.hasOwnProperty(v)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var M=y.get,$=y.set;return Object.defineProperty(h,v,{configurable:!0,get:function(){return M.call(this)},set:function(L){C=""+L,$.call(this,L)}}),Object.defineProperty(h,v,{enumerable:y.enumerable}),{getValue:function(){return C},setValue:function(L){C=""+L},stopTracking:function(){h._valueTracker=null,delete h[v]}}}}function me(h){h._valueTracker||(h._valueTracker=ke(h))}function he(h){if(!h)return!1;var v=h._valueTracker;if(!v)return!0;var y=v.getValue(),C="";return h&&(C=Me(h)?h.checked?"true":"false":h.value),h=C,h!==y?(v.setValue(h),!0):!1}function rt(h){if(h=h||(typeof document<"u"?document:void 0),typeof h>"u")return null;try{return h.activeElement||h.body}catch{return h.body}}function Pe(h,v){var y=v.checked;return te({},v,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y??h._wrapperState.initialChecked})}function Ie(h,v){var y=v.defaultValue==null?"":v.defaultValue,C=v.checked!=null?v.checked:v.defaultChecked;y=$e(v.value!=null?v.value:y),h._wrapperState={initialChecked:C,initialValue:y,controlled:v.type==="checkbox"||v.type==="radio"?v.checked!=null:v.value!=null}}function xt(h,v){v=v.checked,v!=null&&S(h,"checked",v,!1)}function Ce(h,v){xt(h,v);var y=$e(v.value),C=v.type;if(y!=null)C==="number"?(y===0&&h.value===""||h.value!=y)&&(h.value=""+y):h.value!==""+y&&(h.value=""+y);else if(C==="submit"||C==="reset"){h.removeAttribute("value");return}v.hasOwnProperty("value")?_t(h,v.type,y):v.hasOwnProperty("defaultValue")&&_t(h,v.type,$e(v.defaultValue)),v.checked==null&&v.defaultChecked!=null&&(h.defaultChecked=!!v.defaultChecked)}function Xe(h,v,y){if(v.hasOwnProperty("value")||v.hasOwnProperty("defaultValue")){var C=v.type;if(!(C!=="submit"&&C!=="reset"||v.value!==void 0&&v.value!==null))return;v=""+h._wrapperState.initialValue,y||v===h.value||(h.value=v),h.defaultValue=v}y=h.name,y!==""&&(h.name=""),h.defaultChecked=!!h._wrapperState.initialChecked,y!==""&&(h.name=y)}function _t(h,v,y){(v!=="number"||rt(h.ownerDocument)!==h)&&(y==null?h.defaultValue=""+h._wrapperState.initialValue:h.defaultValue!==""+y&&(h.defaultValue=""+y))}var ct=Array.isArray;function it(h,v,y,C){if(h=h.options,v){v={};for(var M=0;M"+v.valueOf().toString()+"",v=Qe.firstChild;h.firstChild;)h.removeChild(h.firstChild);for(;v.firstChild;)h.appendChild(v.firstChild)}});function zt(h,v){if(v){var y=h.firstChild;if(y&&y===h.lastChild&&y.nodeType===3){y.nodeValue=v;return}}h.textContent=v}var He={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Yt=["Webkit","ms","Moz","O"];Object.keys(He).forEach(function(h){Yt.forEach(function(v){v=v+h.charAt(0).toUpperCase()+h.substring(1),He[v]=He[h]})});function Qt(h,v,y){return v==null||typeof v=="boolean"||v===""?"":y||typeof v!="number"||v===0||He.hasOwnProperty(h)&&He[h]?(""+v).trim():v+"px"}function Ut(h,v){h=h.style;for(var y in v)if(v.hasOwnProperty(y)){var C=y.indexOf("--")===0,M=Qt(y,v[y],C);y==="float"&&(y="cssFloat"),C?h.setProperty(y,M):h[y]=M}}var ce=te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(h,v){if(v){if(ce[h]&&(v.children!=null||v.dangerouslySetInnerHTML!=null))throw Error(r(137,h));if(v.dangerouslySetInnerHTML!=null){if(v.children!=null)throw Error(r(60));if(typeof v.dangerouslySetInnerHTML!="object"||!("__html"in v.dangerouslySetInnerHTML))throw Error(r(61))}if(v.style!=null&&typeof v.style!="object")throw Error(r(62))}}function Je(h,v){if(h.indexOf("-")===-1)return typeof v.is=="string";switch(h){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 st=null;function Gt(h){return h=h.target||h.srcElement||window,h.correspondingUseElement&&(h=h.correspondingUseElement),h.nodeType===3?h.parentNode:h}var On=null,$n=null,fa=null;function Gc(h){if(h=tv(h)){if(typeof On!="function")throw Error(r(280));var v=h.stateNode;v&&(v=oy(v),On(h.stateNode,h.type,v))}}function kl(h){$n?fa?fa.push(h):fa=[h]:$n=h}function R_(){if($n){var h=$n,v=fa;if(fa=$n=null,Gc(h),v)for(h=0;h>>=0,h===0?32:31-($te(h)/Ate|0)|0}var j_=64,W_=4194304;function Np(h){switch(h&-h){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return h&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return h&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return h}}function H_(h,v){var y=h.pendingLanes;if(y===0)return 0;var C=0,M=h.suspendedLanes,$=h.pingedLanes,L=y&268435455;if(L!==0){var Y=L&~M;Y!==0?C=Np(Y):($&=L,$!==0&&(C=Np($)))}else L=y&~M,L!==0?C=Np(L):$!==0&&(C=Np($));if(C===0)return 0;if(v!==0&&v!==C&&!(v&M)&&(M=C&-C,$=v&-v,M>=$||M===16&&($&4194240)!==0))return v;if(C&4&&(C|=y&16),v=h.entangledLanes,v!==0)for(h=h.entanglements,v&=C;0y;y++)v.push(h);return v}function Fp(h,v,y){h.pendingLanes|=v,v!==536870912&&(h.suspendedLanes=0,h.pingedLanes=0),h=h.eventTimes,v=31-Uo(v),h[v]=y}function Lte(h,v){var y=h.pendingLanes&~v;h.pendingLanes=v,h.suspendedLanes=0,h.pingedLanes=0,h.expiredLanes&=v,h.mutableReadLanes&=v,h.entangledLanes&=v,v=h.entanglements;var C=h.eventTimes;for(h=h.expirationTimes;0=Yp),EN=" ",DN=!1;function MN(h,v){switch(h){case"keyup":return ure.indexOf(v.keyCode)!==-1;case"keydown":return v.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ON(h){return h=h.detail,typeof h=="object"&&"data"in h?h.data:null}var qd=!1;function fre(h,v){switch(h){case"compositionend":return ON(v);case"keypress":return v.which!==32?null:(DN=!0,EN);case"textInput":return h=v.data,h===EN&&DN?null:h;default:return null}}function hre(h,v){if(qd)return h==="compositionend"||!Bx&&MN(h,v)?(h=wN(),q_=Ix=$l=null,qd=!1,h):null;switch(h){case"paste":return null;case"keypress":if(!(v.ctrlKey||v.altKey||v.metaKey)||v.ctrlKey&&v.altKey){if(v.char&&1=v)return{node:y,offset:v-h};h=C}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=NN(y)}}function zN(h,v){return h&&v?h===v?!0:h&&h.nodeType===3?!1:v&&v.nodeType===3?zN(h,v.parentNode):"contains"in h?h.contains(v):h.compareDocumentPosition?!!(h.compareDocumentPosition(v)&16):!1:!1}function BN(){for(var h=window,v=rt();v instanceof h.HTMLIFrameElement;){try{var y=typeof v.contentWindow.location.href=="string"}catch{y=!1}if(y)h=v.contentWindow;else break;v=rt(h.document)}return v}function Hx(h){var v=h&&h.nodeName&&h.nodeName.toLowerCase();return v&&(v==="input"&&(h.type==="text"||h.type==="search"||h.type==="tel"||h.type==="url"||h.type==="password")||v==="textarea"||h.contentEditable==="true")}function Sre(h){var v=BN(),y=h.focusedElem,C=h.selectionRange;if(v!==y&&y&&y.ownerDocument&&zN(y.ownerDocument.documentElement,y)){if(C!==null&&Hx(y)){if(v=C.start,h=C.end,h===void 0&&(h=v),"selectionStart"in y)y.selectionStart=v,y.selectionEnd=Math.min(h,y.value.length);else if(h=(v=y.ownerDocument||document)&&v.defaultView||window,h.getSelection){h=h.getSelection();var M=y.textContent.length,$=Math.min(C.start,M);C=C.end===void 0?$:Math.min(C.end,M),!h.extend&&$>C&&(M=C,C=$,$=M),M=FN(y,$);var L=FN(y,C);M&&L&&(h.rangeCount!==1||h.anchorNode!==M.node||h.anchorOffset!==M.offset||h.focusNode!==L.node||h.focusOffset!==L.offset)&&(v=v.createRange(),v.setStart(M.node,M.offset),h.removeAllRanges(),$>C?(h.addRange(v),h.extend(L.node,L.offset)):(v.setEnd(L.node,L.offset),h.addRange(v)))}}for(v=[],h=y;h=h.parentNode;)h.nodeType===1&&v.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y=document.documentMode,Xd=null,Ux=null,Jp=null,Vx=!1;function jN(h,v,y){var C=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;Vx||Xd==null||Xd!==rt(C)||(C=Xd,"selectionStart"in C&&Hx(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),Jp&&Xp(Jp,C)||(Jp=C,C=ry(Ux,"onSelect"),0ef||(h.current=nC[ef],nC[ef]=null,ef--)}function xr(h,v){ef++,nC[ef]=h.current,h.current=v}var Rl={},An=Il(Rl),ha=Il(!1),Jc=Rl;function tf(h,v){var y=h.type.contextTypes;if(!y)return Rl;var C=h.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===v)return C.__reactInternalMemoizedMaskedChildContext;var M={},$;for($ in y)M[$]=v[$];return C&&(h=h.stateNode,h.__reactInternalMemoizedUnmaskedChildContext=v,h.__reactInternalMemoizedMaskedChildContext=M),M}function pa(h){return h=h.childContextTypes,h!=null}function iy(){Er(ha),Er(An)}function r5(h,v,y){if(An.current!==Rl)throw Error(r(168));xr(An,v),xr(ha,y)}function n5(h,v,y){var C=h.stateNode;if(v=v.childContextTypes,typeof C.getChildContext!="function")return y;C=C.getChildContext();for(var M in C)if(!(M in v))throw Error(r(108,Le(h)||"Unknown",M));return te({},y,C)}function sy(h){return h=(h=h.stateNode)&&h.__reactInternalMemoizedMergedChildContext||Rl,Jc=An.current,xr(An,h),xr(ha,ha.current),!0}function a5(h,v,y){var C=h.stateNode;if(!C)throw Error(r(169));y?(h=n5(h,v,Jc),C.__reactInternalMemoizedMergedChildContext=h,Er(ha),Er(An),xr(An,h)):Er(ha),xr(ha,y)}var Ss=null,ly=!1,aC=!1;function o5(h){Ss===null?Ss=[h]:Ss.push(h)}function Ire(h){ly=!0,o5(h)}function Ll(){if(!aC&&Ss!==null){aC=!0;var h=0,v=lr;try{var y=Ss;for(lr=1;h>=L,M-=L,xs=1<<32-Uo(v)+M|y<ht?(pn=at,at=null):pn=at.sibling;var Jt=fe(re,at,ne[ht],Te);if(Jt===null){at===null&&(at=pn);break}h&&at&&Jt.alternate===null&&v(re,at),ee=$(Jt,ee,ht),nt===null?Ye=Jt:nt.sibling=Jt,nt=Jt,at=pn}if(ht===ne.length)return y(re,at),$r&&Zc(re,ht),Ye;if(at===null){for(;htht?(pn=at,at=null):pn=at.sibling;var Vl=fe(re,at,Jt.value,Te);if(Vl===null){at===null&&(at=pn);break}h&&at&&Vl.alternate===null&&v(re,at),ee=$(Vl,ee,ht),nt===null?Ye=Vl:nt.sibling=Vl,nt=Vl,at=pn}if(Jt.done)return y(re,at),$r&&Zc(re,ht),Ye;if(at===null){for(;!Jt.done;ht++,Jt=ne.next())Jt=ge(re,Jt.value,Te),Jt!==null&&(ee=$(Jt,ee,ht),nt===null?Ye=Jt:nt.sibling=Jt,nt=Jt);return $r&&Zc(re,ht),Ye}for(at=C(re,at);!Jt.done;ht++,Jt=ne.next())Jt=ze(at,re,ht,Jt.value,Te),Jt!==null&&(h&&Jt.alternate!==null&&at.delete(Jt.key===null?ht:Jt.key),ee=$(Jt,ee,ht),nt===null?Ye=Jt:nt.sibling=Jt,nt=Jt);return h&&at.forEach(function(hne){return v(re,hne)}),$r&&Zc(re,ht),Ye}function Xr(re,ee,ne,Te){if(typeof ne=="object"&&ne!==null&&ne.type===D&&ne.key===null&&(ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case E:e:{for(var Ye=ne.key,nt=ee;nt!==null;){if(nt.key===Ye){if(Ye=ne.type,Ye===D){if(nt.tag===7){y(re,nt.sibling),ee=M(nt,ne.props.children),ee.return=re,re=ee;break e}}else if(nt.elementType===Ye||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===V&&d5(Ye)===nt.type){y(re,nt.sibling),ee=M(nt,ne.props),ee.ref=rv(re,nt,ne),ee.return=re,re=ee;break e}y(re,nt);break}else v(re,nt);nt=nt.sibling}ne.type===D?(ee=iu(ne.props.children,re.mode,Te,ne.key),ee.return=re,re=ee):(Te=Ly(ne.type,ne.key,ne.props,null,re.mode,Te),Te.ref=rv(re,ee,ne),Te.return=re,re=Te)}return L(re);case T:e:{for(nt=ne.key;ee!==null;){if(ee.key===nt)if(ee.tag===4&&ee.stateNode.containerInfo===ne.containerInfo&&ee.stateNode.implementation===ne.implementation){y(re,ee.sibling),ee=M(ee,ne.children||[]),ee.return=re,re=ee;break e}else{y(re,ee);break}else v(re,ee);ee=ee.sibling}ee=tT(ne,re.mode,Te),ee.return=re,re=ee}return L(re);case V:return nt=ne._init,Xr(re,ee,nt(ne._payload),Te)}if(ct(ne))return Ue(re,ee,ne,Te);if(q(ne))return Ve(re,ee,ne,Te);fy(re,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"?(ne=""+ne,ee!==null&&ee.tag===6?(y(re,ee.sibling),ee=M(ee,ne),ee.return=re,re=ee):(y(re,ee),ee=eT(ne,re.mode,Te),ee.return=re,re=ee),L(re)):y(re,ee)}return Xr}var of=f5(!0),h5=f5(!1),hy=Il(null),py=null,sf=null,uC=null;function dC(){uC=sf=py=null}function fC(h){var v=hy.current;Er(hy),h._currentValue=v}function hC(h,v,y){for(;h!==null;){var C=h.alternate;if((h.childLanes&v)!==v?(h.childLanes|=v,C!==null&&(C.childLanes|=v)):C!==null&&(C.childLanes&v)!==v&&(C.childLanes|=v),h===y)break;h=h.return}}function lf(h,v){py=h,uC=sf=null,h=h.dependencies,h!==null&&h.firstContext!==null&&(h.lanes&v&&(va=!0),h.firstContext=null)}function oo(h){var v=h._currentValue;if(uC!==h)if(h={context:h,memoizedValue:v,next:null},sf===null){if(py===null)throw Error(r(308));sf=h,py.dependencies={lanes:0,firstContext:h}}else sf=sf.next=h;return v}var Qc=null;function pC(h){Qc===null?Qc=[h]:Qc.push(h)}function p5(h,v,y,C){var M=v.interleaved;return M===null?(y.next=y,pC(v)):(y.next=M.next,M.next=y),v.interleaved=y,Ts(h,C)}function Ts(h,v){h.lanes|=v;var y=h.alternate;for(y!==null&&(y.lanes|=v),y=h,h=h.return;h!==null;)h.childLanes|=v,y=h.alternate,y!==null&&(y.childLanes|=v),y=h,h=h.return;return y.tag===3?y.stateNode:null}var Nl=!1;function vC(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function v5(h,v){h=h.updateQueue,v.updateQueue===h&&(v.updateQueue={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,effects:h.effects})}function ks(h,v){return{eventTime:h,lane:v,tag:0,payload:null,callback:null,next:null}}function Fl(h,v,y){var C=h.updateQueue;if(C===null)return null;if(C=C.shared,qt&2){var M=C.pending;return M===null?v.next=v:(v.next=M.next,M.next=v),C.pending=v,Ts(h,y)}return M=C.interleaved,M===null?(v.next=v,pC(C)):(v.next=M.next,M.next=v),C.interleaved=v,Ts(h,y)}function vy(h,v,y){if(v=v.updateQueue,v!==null&&(v=v.shared,(y&4194240)!==0)){var C=v.lanes;C&=h.pendingLanes,y|=C,v.lanes=y,Mx(h,y)}}function m5(h,v){var y=h.updateQueue,C=h.alternate;if(C!==null&&(C=C.updateQueue,y===C)){var M=null,$=null;if(y=y.firstBaseUpdate,y!==null){do{var L={eventTime:y.eventTime,lane:y.lane,tag:y.tag,payload:y.payload,callback:y.callback,next:null};$===null?M=$=L:$=$.next=L,y=y.next}while(y!==null);$===null?M=$=v:$=$.next=v}else M=$=v;y={baseState:C.baseState,firstBaseUpdate:M,lastBaseUpdate:$,shared:C.shared,effects:C.effects},h.updateQueue=y;return}h=y.lastBaseUpdate,h===null?y.firstBaseUpdate=v:h.next=v,y.lastBaseUpdate=v}function my(h,v,y,C){var M=h.updateQueue;Nl=!1;var $=M.firstBaseUpdate,L=M.lastBaseUpdate,Y=M.shared.pending;if(Y!==null){M.shared.pending=null;var J=Y,oe=J.next;J.next=null,L===null?$=oe:L.next=oe,L=J;var pe=h.alternate;pe!==null&&(pe=pe.updateQueue,Y=pe.lastBaseUpdate,Y!==L&&(Y===null?pe.firstBaseUpdate=oe:Y.next=oe,pe.lastBaseUpdate=J))}if($!==null){var ge=M.baseState;L=0,pe=oe=J=null,Y=$;do{var fe=Y.lane,ze=Y.eventTime;if((C&fe)===fe){pe!==null&&(pe=pe.next={eventTime:ze,lane:0,tag:Y.tag,payload:Y.payload,callback:Y.callback,next:null});e:{var Ue=h,Ve=Y;switch(fe=v,ze=y,Ve.tag){case 1:if(Ue=Ve.payload,typeof Ue=="function"){ge=Ue.call(ze,ge,fe);break e}ge=Ue;break e;case 3:Ue.flags=Ue.flags&-65537|128;case 0:if(Ue=Ve.payload,fe=typeof Ue=="function"?Ue.call(ze,ge,fe):Ue,fe==null)break e;ge=te({},ge,fe);break e;case 2:Nl=!0}}Y.callback!==null&&Y.lane!==0&&(h.flags|=64,fe=M.effects,fe===null?M.effects=[Y]:fe.push(Y))}else ze={eventTime:ze,lane:fe,tag:Y.tag,payload:Y.payload,callback:Y.callback,next:null},pe===null?(oe=pe=ze,J=ge):pe=pe.next=ze,L|=fe;if(Y=Y.next,Y===null){if(Y=M.shared.pending,Y===null)break;fe=Y,Y=fe.next,fe.next=null,M.lastBaseUpdate=fe,M.shared.pending=null}}while(!0);if(pe===null&&(J=ge),M.baseState=J,M.firstBaseUpdate=oe,M.lastBaseUpdate=pe,v=M.shared.interleaved,v!==null){M=v;do L|=M.lane,M=M.next;while(M!==v)}else $===null&&(M.shared.lanes=0);ru|=L,h.lanes=L,h.memoizedState=ge}}function g5(h,v,y){if(h=v.effects,v.effects=null,h!==null)for(v=0;vy?y:4,h(!0);var C=bC.transition;bC.transition={};try{h(!1),v()}finally{lr=y,bC.transition=C}}function L5(){return io().memoizedState}function Fre(h,v,y){var C=Wl(h);if(y={lane:C,action:y,hasEagerState:!1,eagerState:null,next:null},N5(h))F5(v,y);else if(y=p5(h,v,y,C),y!==null){var M=ta();Jo(y,h,C,M),z5(y,v,C)}}function zre(h,v,y){var C=Wl(h),M={lane:C,action:y,hasEagerState:!1,eagerState:null,next:null};if(N5(h))F5(v,M);else{var $=h.alternate;if(h.lanes===0&&($===null||$.lanes===0)&&($=v.lastRenderedReducer,$!==null))try{var L=v.lastRenderedState,Y=$(L,y);if(M.hasEagerState=!0,M.eagerState=Y,Vo(Y,L)){var J=v.interleaved;J===null?(M.next=M,pC(v)):(M.next=J.next,J.next=M),v.interleaved=M;return}}catch{}finally{}y=p5(h,v,M,C),y!==null&&(M=ta(),Jo(y,h,C,M),z5(y,v,C))}}function N5(h){var v=h.alternate;return h===zr||v!==null&&v===zr}function F5(h,v){iv=yy=!0;var y=h.pending;y===null?v.next=v:(v.next=y.next,y.next=v),h.pending=v}function z5(h,v,y){if(y&4194240){var C=v.lanes;C&=h.pendingLanes,y|=C,v.lanes=y,Mx(h,y)}}var Sy={readContext:oo,useCallback:Pn,useContext:Pn,useEffect:Pn,useImperativeHandle:Pn,useInsertionEffect:Pn,useLayoutEffect:Pn,useMemo:Pn,useReducer:Pn,useRef:Pn,useState:Pn,useDebugValue:Pn,useDeferredValue:Pn,useTransition:Pn,useMutableSource:Pn,useSyncExternalStore:Pn,useId:Pn,unstable_isNewReconciler:!1},Bre={readContext:oo,useCallback:function(h,v){return Oi().memoizedState=[h,v===void 0?null:v],h},useContext:oo,useEffect:D5,useImperativeHandle:function(h,v,y){return y=y!=null?y.concat([h]):null,by(4194308,4,$5.bind(null,v,h),y)},useLayoutEffect:function(h,v){return by(4194308,4,h,v)},useInsertionEffect:function(h,v){return by(4,2,h,v)},useMemo:function(h,v){var y=Oi();return v=v===void 0?null:v,h=h(),y.memoizedState=[h,v],h},useReducer:function(h,v,y){var C=Oi();return v=y!==void 0?y(v):v,C.memoizedState=C.baseState=v,h={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:v},C.queue=h,h=h.dispatch=Fre.bind(null,zr,h),[C.memoizedState,h]},useRef:function(h){var v=Oi();return h={current:h},v.memoizedState=h},useState:k5,useDebugValue:EC,useDeferredValue:function(h){return Oi().memoizedState=h},useTransition:function(){var h=k5(!1),v=h[0];return h=Nre.bind(null,h[1]),Oi().memoizedState=h,[v,h]},useMutableSource:function(){},useSyncExternalStore:function(h,v,y){var C=zr,M=Oi();if($r){if(y===void 0)throw Error(r(407));y=y()}else{if(y=v(),hn===null)throw Error(r(349));tu&30||w5(C,v,y)}M.memoizedState=y;var $={value:y,getSnapshot:v};return M.queue=$,D5(x5.bind(null,C,$,h),[h]),C.flags|=2048,cv(9,S5.bind(null,C,$,y,v),void 0,null),y},useId:function(){var h=Oi(),v=hn.identifierPrefix;if($r){var y=Cs,C=xs;y=(C&~(1<<32-Uo(C)-1)).toString(32)+y,v=":"+v+"R"+y,y=sv++,0<\/script>",h=h.removeChild(h.firstChild)):typeof C.is=="string"?h=L.createElement(y,{is:C.is}):(h=L.createElement(y),y==="select"&&(L=h,C.multiple?L.multiple=!0:C.size&&(L.size=C.size))):h=L.createElementNS(h,y),h[Di]=v,h[ev]=C,o3(h,v,!1,!1),v.stateNode=h;e:{switch(L=Je(y,C),y){case"dialog":kr("cancel",h),kr("close",h),M=C;break;case"iframe":case"object":case"embed":kr("load",h),M=C;break;case"video":case"audio":for(M=0;Mhf&&(v.flags|=128,C=!0,uv($,!1),v.lanes=4194304)}else{if(!C)if(h=gy(L),h!==null){if(v.flags|=128,C=!0,y=h.updateQueue,y!==null&&(v.updateQueue=y,v.flags|=4),uv($,!0),$.tail===null&&$.tailMode==="hidden"&&!L.alternate&&!$r)return In(v),null}else 2*qr()-$.renderingStartTime>hf&&y!==1073741824&&(v.flags|=128,C=!0,uv($,!1),v.lanes=4194304);$.isBackwards?(L.sibling=v.child,v.child=L):(y=$.last,y!==null?y.sibling=L:v.child=L,$.last=L)}return $.tail!==null?(v=$.tail,$.rendering=v,$.tail=v.sibling,$.renderingStartTime=qr(),v.sibling=null,y=Fr.current,xr(Fr,C?y&1|2:y&1),v):(In(v),null);case 22:case 23:return KC(),C=v.memoizedState!==null,h!==null&&h.memoizedState!==null!==C&&(v.flags|=8192),C&&v.mode&1?ja&1073741824&&(In(v),v.subtreeFlags&6&&(v.flags|=8192)):In(v),null;case 24:return null;case 25:return null}throw Error(r(156,v.tag))}function qre(h,v){switch(iC(v),v.tag){case 1:return pa(v.type)&&iy(),h=v.flags,h&65536?(v.flags=h&-65537|128,v):null;case 3:return cf(),Er(ha),Er(An),yC(),h=v.flags,h&65536&&!(h&128)?(v.flags=h&-65537|128,v):null;case 5:return gC(v),null;case 13:if(Er(Fr),h=v.memoizedState,h!==null&&h.dehydrated!==null){if(v.alternate===null)throw Error(r(340));af()}return h=v.flags,h&65536?(v.flags=h&-65537|128,v):null;case 19:return Er(Fr),null;case 4:return cf(),null;case 10:return fC(v.type._context),null;case 22:case 23:return KC(),null;case 24:return null;default:return null}}var ky=!1,Rn=!1,Xre=typeof WeakSet=="function"?WeakSet:Set,We=null;function df(h,v){var y=h.ref;if(y!==null)if(typeof y=="function")try{y(null)}catch(C){jr(h,v,C)}else y.current=null}function zC(h,v,y){try{y()}catch(C){jr(h,v,C)}}var l3=!1;function Jre(h,v){if(Kx=Y_,h=BN(),Hx(h)){if("selectionStart"in h)var y={start:h.selectionStart,end:h.selectionEnd};else e:{y=(y=h.ownerDocument)&&y.defaultView||window;var C=y.getSelection&&y.getSelection();if(C&&C.rangeCount!==0){y=C.anchorNode;var M=C.anchorOffset,$=C.focusNode;C=C.focusOffset;try{y.nodeType,$.nodeType}catch{y=null;break e}var L=0,Y=-1,J=-1,oe=0,pe=0,ge=h,fe=null;t:for(;;){for(var ze;ge!==y||M!==0&&ge.nodeType!==3||(Y=L+M),ge!==$||C!==0&&ge.nodeType!==3||(J=L+C),ge.nodeType===3&&(L+=ge.nodeValue.length),(ze=ge.firstChild)!==null;)fe=ge,ge=ze;for(;;){if(ge===h)break t;if(fe===y&&++oe===M&&(Y=L),fe===$&&++pe===C&&(J=L),(ze=ge.nextSibling)!==null)break;ge=fe,fe=ge.parentNode}ge=ze}y=Y===-1||J===-1?null:{start:Y,end:J}}else y=null}y=y||{start:0,end:0}}else y=null;for(Zx={focusedElem:h,selectionRange:y},Y_=!1,We=v;We!==null;)if(v=We,h=v.child,(v.subtreeFlags&1028)!==0&&h!==null)h.return=v,We=h;else for(;We!==null;){v=We;try{var Ue=v.alternate;if(v.flags&1024)switch(v.tag){case 0:case 11:case 15:break;case 1:if(Ue!==null){var Ve=Ue.memoizedProps,Xr=Ue.memoizedState,re=v.stateNode,ee=re.getSnapshotBeforeUpdate(v.elementType===v.type?Ve:Go(v.type,Ve),Xr);re.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var ne=v.stateNode.containerInfo;ne.nodeType===1?ne.textContent="":ne.nodeType===9&&ne.documentElement&&ne.removeChild(ne.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Te){jr(v,v.return,Te)}if(h=v.sibling,h!==null){h.return=v.return,We=h;break}We=v.return}return Ue=l3,l3=!1,Ue}function dv(h,v,y){var C=v.updateQueue;if(C=C!==null?C.lastEffect:null,C!==null){var M=C=C.next;do{if((M.tag&h)===h){var $=M.destroy;M.destroy=void 0,$!==void 0&&zC(v,y,$)}M=M.next}while(M!==C)}}function Ey(h,v){if(v=v.updateQueue,v=v!==null?v.lastEffect:null,v!==null){var y=v=v.next;do{if((y.tag&h)===h){var C=y.create;y.destroy=C()}y=y.next}while(y!==v)}}function BC(h){var v=h.ref;if(v!==null){var y=h.stateNode;switch(h.tag){case 5:h=y;break;default:h=y}typeof v=="function"?v(h):v.current=h}}function c3(h){var v=h.alternate;v!==null&&(h.alternate=null,c3(v)),h.child=null,h.deletions=null,h.sibling=null,h.tag===5&&(v=h.stateNode,v!==null&&(delete v[Di],delete v[ev],delete v[rC],delete v[Are],delete v[Pre])),h.stateNode=null,h.return=null,h.dependencies=null,h.memoizedProps=null,h.memoizedState=null,h.pendingProps=null,h.stateNode=null,h.updateQueue=null}function u3(h){return h.tag===5||h.tag===3||h.tag===4}function d3(h){e:for(;;){for(;h.sibling===null;){if(h.return===null||u3(h.return))return null;h=h.return}for(h.sibling.return=h.return,h=h.sibling;h.tag!==5&&h.tag!==6&&h.tag!==18;){if(h.flags&2||h.child===null||h.tag===4)continue e;h.child.return=h,h=h.child}if(!(h.flags&2))return h.stateNode}}function jC(h,v,y){var C=h.tag;if(C===5||C===6)h=h.stateNode,v?y.nodeType===8?y.parentNode.insertBefore(h,v):y.insertBefore(h,v):(y.nodeType===8?(v=y.parentNode,v.insertBefore(h,y)):(v=y,v.appendChild(h)),y=y._reactRootContainer,y!=null||v.onclick!==null||(v.onclick=ay));else if(C!==4&&(h=h.child,h!==null))for(jC(h,v,y),h=h.sibling;h!==null;)jC(h,v,y),h=h.sibling}function WC(h,v,y){var C=h.tag;if(C===5||C===6)h=h.stateNode,v?y.insertBefore(h,v):y.appendChild(h);else if(C!==4&&(h=h.child,h!==null))for(WC(h,v,y),h=h.sibling;h!==null;)WC(h,v,y),h=h.sibling}var bn=null,qo=!1;function zl(h,v,y){for(y=y.child;y!==null;)f3(h,v,y),y=y.sibling}function f3(h,v,y){if(Ei&&typeof Ei.onCommitFiberUnmount=="function")try{Ei.onCommitFiberUnmount(B_,y)}catch{}switch(y.tag){case 5:Rn||df(y,v);case 6:var C=bn,M=qo;bn=null,zl(h,v,y),bn=C,qo=M,bn!==null&&(qo?(h=bn,y=y.stateNode,h.nodeType===8?h.parentNode.removeChild(y):h.removeChild(y)):bn.removeChild(y.stateNode));break;case 18:bn!==null&&(qo?(h=bn,y=y.stateNode,h.nodeType===8?tC(h.parentNode,y):h.nodeType===1&&tC(h,y),Hp(h)):tC(bn,y.stateNode));break;case 4:C=bn,M=qo,bn=y.stateNode.containerInfo,qo=!0,zl(h,v,y),bn=C,qo=M;break;case 0:case 11:case 14:case 15:if(!Rn&&(C=y.updateQueue,C!==null&&(C=C.lastEffect,C!==null))){M=C=C.next;do{var $=M,L=$.destroy;$=$.tag,L!==void 0&&($&2||$&4)&&zC(y,v,L),M=M.next}while(M!==C)}zl(h,v,y);break;case 1:if(!Rn&&(df(y,v),C=y.stateNode,typeof C.componentWillUnmount=="function"))try{C.props=y.memoizedProps,C.state=y.memoizedState,C.componentWillUnmount()}catch(Y){jr(y,v,Y)}zl(h,v,y);break;case 21:zl(h,v,y);break;case 22:y.mode&1?(Rn=(C=Rn)||y.memoizedState!==null,zl(h,v,y),Rn=C):zl(h,v,y);break;default:zl(h,v,y)}}function h3(h){var v=h.updateQueue;if(v!==null){h.updateQueue=null;var y=h.stateNode;y===null&&(y=h.stateNode=new Xre),v.forEach(function(C){var M=one.bind(null,h,C);y.has(C)||(y.add(C),C.then(M,M))})}}function Xo(h,v){var y=v.deletions;if(y!==null)for(var C=0;CM&&(M=L),C&=~$}if(C=M,C=qr()-C,C=(120>C?120:480>C?480:1080>C?1080:1920>C?1920:3e3>C?3e3:4320>C?4320:1960*Zre(C/1960))-C,10h?16:h,jl===null)var C=!1;else{if(h=jl,jl=null,Ay=0,qt&6)throw Error(r(331));var M=qt;for(qt|=4,We=h.current;We!==null;){var $=We,L=$.child;if(We.flags&16){var Y=$.deletions;if(Y!==null){for(var J=0;Jqr()-VC?au(h,0):UC|=y),ga(h,v)}function k3(h,v){v===0&&(h.mode&1?(v=W_,W_<<=1,!(W_&130023424)&&(W_=4194304)):v=1);var y=ta();h=Ts(h,v),h!==null&&(Fp(h,v,y),ga(h,y))}function ane(h){var v=h.memoizedState,y=0;v!==null&&(y=v.retryLane),k3(h,y)}function one(h,v){var y=0;switch(h.tag){case 13:var C=h.stateNode,M=h.memoizedState;M!==null&&(y=M.retryLane);break;case 19:C=h.stateNode;break;default:throw Error(r(314))}C!==null&&C.delete(v),k3(h,y)}var E3;E3=function(h,v,y){if(h!==null)if(h.memoizedProps!==v.pendingProps||ha.current)va=!0;else{if(!(h.lanes&y)&&!(v.flags&128))return va=!1,Yre(h,v,y);va=!!(h.flags&131072)}else va=!1,$r&&v.flags&1048576&&i5(v,uy,v.index);switch(v.lanes=0,v.tag){case 2:var C=v.type;Ty(h,v),h=v.pendingProps;var M=tf(v,An.current);lf(v,y),M=SC(null,v,C,h,M,y);var $=xC();return v.flags|=1,typeof M=="object"&&M!==null&&typeof M.render=="function"&&M.$$typeof===void 0?(v.tag=1,v.memoizedState=null,v.updateQueue=null,pa(C)?($=!0,sy(v)):$=!1,v.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,vC(v),M.updater=xy,v.stateNode=M,M._reactInternals=v,MC(v,C,h,y),v=PC(null,v,C,!0,$,y)):(v.tag=0,$r&&$&&oC(v),ea(null,v,M,y),v=v.child),v;case 16:C=v.elementType;e:{switch(Ty(h,v),h=v.pendingProps,M=C._init,C=M(C._payload),v.type=C,M=v.tag=sne(C),h=Go(C,h),M){case 0:v=AC(null,v,C,h,y);break e;case 1:v=Q5(null,v,C,h,y);break e;case 11:v=q5(null,v,C,h,y);break e;case 14:v=X5(null,v,C,Go(C.type,h),y);break e}throw Error(r(306,C,""))}return v;case 0:return C=v.type,M=v.pendingProps,M=v.elementType===C?M:Go(C,M),AC(h,v,C,M,y);case 1:return C=v.type,M=v.pendingProps,M=v.elementType===C?M:Go(C,M),Q5(h,v,C,M,y);case 3:e:{if(e3(v),h===null)throw Error(r(387));C=v.pendingProps,$=v.memoizedState,M=$.element,v5(h,v),my(v,C,null,y);var L=v.memoizedState;if(C=L.element,$.isDehydrated)if($={element:C,isDehydrated:!1,cache:L.cache,pendingSuspenseBoundaries:L.pendingSuspenseBoundaries,transitions:L.transitions},v.updateQueue.baseState=$,v.memoizedState=$,v.flags&256){M=uf(Error(r(423)),v),v=t3(h,v,C,y,M);break e}else if(C!==M){M=uf(Error(r(424)),v),v=t3(h,v,C,y,M);break e}else for(Ba=Pl(v.stateNode.containerInfo.firstChild),za=v,$r=!0,Yo=null,y=h5(v,null,C,y),v.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(af(),C===M){v=Es(h,v,y);break e}ea(h,v,C,y)}v=v.child}return v;case 5:return _5(v),h===null&&lC(v),C=v.type,M=v.pendingProps,$=h!==null?h.memoizedProps:null,L=M.children,Qx(C,M)?L=null:$!==null&&Qx(C,$)&&(v.flags|=32),Z5(h,v),ea(h,v,L,y),v.child;case 6:return h===null&&lC(v),null;case 13:return r3(h,v,y);case 4:return mC(v,v.stateNode.containerInfo),C=v.pendingProps,h===null?v.child=of(v,null,C,y):ea(h,v,C,y),v.child;case 11:return C=v.type,M=v.pendingProps,M=v.elementType===C?M:Go(C,M),q5(h,v,C,M,y);case 7:return ea(h,v,v.pendingProps,y),v.child;case 8:return ea(h,v,v.pendingProps.children,y),v.child;case 12:return ea(h,v,v.pendingProps.children,y),v.child;case 10:e:{if(C=v.type._context,M=v.pendingProps,$=v.memoizedProps,L=M.value,xr(hy,C._currentValue),C._currentValue=L,$!==null)if(Vo($.value,L)){if($.children===M.children&&!ha.current){v=Es(h,v,y);break e}}else for($=v.child,$!==null&&($.return=v);$!==null;){var Y=$.dependencies;if(Y!==null){L=$.child;for(var J=Y.firstContext;J!==null;){if(J.context===C){if($.tag===1){J=ks(-1,y&-y),J.tag=2;var oe=$.updateQueue;if(oe!==null){oe=oe.shared;var pe=oe.pending;pe===null?J.next=J:(J.next=pe.next,pe.next=J),oe.pending=J}}$.lanes|=y,J=$.alternate,J!==null&&(J.lanes|=y),hC($.return,y,v),Y.lanes|=y;break}J=J.next}}else if($.tag===10)L=$.type===v.type?null:$.child;else if($.tag===18){if(L=$.return,L===null)throw Error(r(341));L.lanes|=y,Y=L.alternate,Y!==null&&(Y.lanes|=y),hC(L,y,v),L=$.sibling}else L=$.child;if(L!==null)L.return=$;else for(L=$;L!==null;){if(L===v){L=null;break}if($=L.sibling,$!==null){$.return=L.return,L=$;break}L=L.return}$=L}ea(h,v,M.children,y),v=v.child}return v;case 9:return M=v.type,C=v.pendingProps.children,lf(v,y),M=oo(M),C=C(M),v.flags|=1,ea(h,v,C,y),v.child;case 14:return C=v.type,M=Go(C,v.pendingProps),M=Go(C.type,M),X5(h,v,C,M,y);case 15:return J5(h,v,v.type,v.pendingProps,y);case 17:return C=v.type,M=v.pendingProps,M=v.elementType===C?M:Go(C,M),Ty(h,v),v.tag=1,pa(C)?(h=!0,sy(v)):h=!1,lf(v,y),j5(v,C,M),MC(v,C,M,y),PC(null,v,C,!0,h,y);case 19:return a3(h,v,y);case 22:return K5(h,v,y)}throw Error(r(156,v.tag))};function D3(h,v){return sN(h,v)}function ine(h,v,y,C){this.tag=h,this.key=y,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=v,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lo(h,v,y,C){return new ine(h,v,y,C)}function QC(h){return h=h.prototype,!(!h||!h.isReactComponent)}function sne(h){if(typeof h=="function")return QC(h)?1:0;if(h!=null){if(h=h.$$typeof,h===F)return 11;if(h===j)return 14}return 2}function Ul(h,v){var y=h.alternate;return y===null?(y=lo(h.tag,v,h.key,h.mode),y.elementType=h.elementType,y.type=h.type,y.stateNode=h.stateNode,y.alternate=h,h.alternate=y):(y.pendingProps=v,y.type=h.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=h.flags&14680064,y.childLanes=h.childLanes,y.lanes=h.lanes,y.child=h.child,y.memoizedProps=h.memoizedProps,y.memoizedState=h.memoizedState,y.updateQueue=h.updateQueue,v=h.dependencies,y.dependencies=v===null?null:{lanes:v.lanes,firstContext:v.firstContext},y.sibling=h.sibling,y.index=h.index,y.ref=h.ref,y}function Ly(h,v,y,C,M,$){var L=2;if(C=h,typeof h=="function")QC(h)&&(L=1);else if(typeof h=="string")L=5;else e:switch(h){case D:return iu(y.children,M,$,v);case A:L=8,M|=8;break;case P:return h=lo(12,y,v,M|2),h.elementType=P,h.lanes=$,h;case N:return h=lo(13,y,v,M),h.elementType=N,h.lanes=$,h;case B:return h=lo(19,y,v,M),h.elementType=B,h.lanes=$,h;case Q:return Ny(y,M,$,v);default:if(typeof h=="object"&&h!==null)switch(h.$$typeof){case O:L=10;break e;case I:L=9;break e;case F:L=11;break e;case j:L=14;break e;case V:L=16,C=null;break e}throw Error(r(130,h==null?h:typeof h,""))}return v=lo(L,y,v,M),v.elementType=h,v.type=C,v.lanes=$,v}function iu(h,v,y,C){return h=lo(7,h,C,v),h.lanes=y,h}function Ny(h,v,y,C){return h=lo(22,h,C,v),h.elementType=Q,h.lanes=y,h.stateNode={isHidden:!1},h}function eT(h,v,y){return h=lo(6,h,null,v),h.lanes=y,h}function tT(h,v,y){return v=lo(4,h.children!==null?h.children:[],h.key,v),v.lanes=y,v.stateNode={containerInfo:h.containerInfo,pendingChildren:null,implementation:h.implementation},v}function lne(h,v,y,C,M){this.tag=v,this.containerInfo=h,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dx(0),this.expirationTimes=Dx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dx(0),this.identifierPrefix=C,this.onRecoverableError=M,this.mutableSourceEagerHydrationData=null}function rT(h,v,y,C,M,$,L,Y,J){return h=new lne(h,v,y,Y,J),v===1?(v=1,$===!0&&(v|=8)):v=0,$=lo(3,null,null,v),h.current=$,$.stateNode=h,$.memoizedState={element:C,isDehydrated:y,cache:null,transitions:null,pendingSuspenseBoundaries:null},vC($),h}function cne(h,v,y){var C=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),lT.exports=Cne(),lT.exports}var W3;function Tne(){if(W3)return Uy;W3=1;var t=MV();return Uy.createRoot=t.createRoot,Uy.hydrateRoot=t.hydrateRoot,Uy}var kne=Tne();const _r=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,td="8.47.0",nr=globalThis;function Mw(t,e,r){const n=r||nr,a=n.__SENTRY__=n.__SENTRY__||{},o=a[td]=a[td]||{};return o[t]||(o[t]=e())}const Dd=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ene="Sentry Logger ",tO=["debug","info","warn","error","log","assert","trace"],u1={};function Md(t){if(!("console"in nr))return t();const e=nr.console,r={},n=Object.keys(u1);n.forEach(a=>{const o=u1[a];r[a]=e[a],e[a]=o});try{return t()}finally{n.forEach(a=>{e[a]=r[a]})}}function Dne(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Dd?tO.forEach(r=>{e[r]=(...n)=>{t&&Md(()=>{nr.console[r](`${Ene}[${r}]:`,...n)})}}):tO.forEach(r=>{e[r]=()=>{}}),e}const yt=Mw("logger",Dne),OV=50,ud="?",H3=/\(error: (.*)\)/,U3=/captureMessage|captureException/;function $V(...t){const e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,a=0)=>{const o=[],i=r.split(` +`);for(let s=n;s1024)continue;const c=H3.test(l)?l.replace(H3,"$1"):l;if(!c.match(/\S*Error: /)){for(const d of e){const u=d(c);if(u){o.push(u);break}}if(o.length>=OV+a)break}}return One(o.slice(a))}}function Mne(t){return Array.isArray(t)?$V(...t):t}function One(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(Vy(e).function||"")&&e.pop(),e.reverse(),U3.test(Vy(e).function||"")&&(e.pop(),U3.test(Vy(e).function||"")&&e.pop()),e.slice(0,OV).map(r=>({...r,filename:r.filename||Vy(e).filename,function:r.function||ud}))}function Vy(t){return t[t.length-1]||{}}const dT="";function Oc(t){try{return!t||typeof t!="function"?dT:t.name||dT}catch{return dT}}function V3(t){const e=t.exception;if(e){const r=[];try{return e.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch{return}}}const Ib={},Y3={};function Od(t,e){Ib[t]=Ib[t]||[],Ib[t].push(e)}function $d(t,e){if(!Y3[t]){Y3[t]=!0;try{e()}catch(r){Dd&&yt.error(`Error while instrumenting ${t}`,r)}}}function fi(t,e){const r=t&&Ib[t];if(r)for(const n of r)try{n(e)}catch(a){Dd&&yt.error(`Error while triggering instrumentation handler. +Type: ${t} +Name: ${Oc(n)} +Error:`,a)}}let fT=null;function $ne(t){const e="error";Od(e,t),$d(e,Ane)}function Ane(){fT=nr.onerror,nr.onerror=function(t,e,r,n,a){return fi("error",{column:n,error:a,line:r,msg:t,url:e}),fT?fT.apply(this,arguments):!1},nr.onerror.__SENTRY_INSTRUMENTED__=!0}let hT=null;function Pne(t){const e="unhandledrejection";Od(e,t),$d(e,Ine)}function Ine(){hT=nr.onunhandledrejection,nr.onunhandledrejection=function(t){return fi("unhandledrejection",t),hT?hT.apply(this,arguments):!0},nr.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Ow(){return GA(nr),nr}function GA(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||td,e[td]=e[td]||{}}const AV=Object.prototype.toString;function qA(t){switch(AV.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return dd(t,Error)}}function dp(t,e){return AV.call(t)===`[object ${e}]`}function PV(t){return dp(t,"ErrorEvent")}function G3(t){return dp(t,"DOMError")}function Rne(t){return dp(t,"DOMException")}function tl(t){return dp(t,"String")}function XA(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function JA(t){return t===null||XA(t)||typeof t!="object"&&typeof t!="function"}function Uh(t){return dp(t,"Object")}function $w(t){return typeof Event<"u"&&dd(t,Event)}function Lne(t){return typeof Element<"u"&&dd(t,Element)}function Nne(t){return dp(t,"RegExp")}function Aw(t){return!!(t&&t.then&&typeof t.then=="function")}function Fne(t){return Uh(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function dd(t,e){try{return t instanceof e}catch{return!1}}function IV(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}const KA=nr,zne=80;function RV(t,e={}){if(!t)return"";try{let r=t;const n=5,a=[];let o=0,i=0;const s=" > ",l=s.length;let c;const d=Array.isArray(e)?e:e.keyAttrs,u=!Array.isArray(e)&&e.maxStringLength||zne;for(;r&&o++1&&i+a.length*l+c.length>=u));)a.push(c),i+=c.length,r=r.parentNode;return a.reverse().join(s)}catch{return""}}function Bne(t,e){const r=t,n=[];if(!r||!r.tagName)return"";if(KA.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const a=e&&e.length?e.filter(i=>r.getAttribute(i)).map(i=>[i,r.getAttribute(i)]):null;if(a&&a.length)a.forEach(i=>{n.push(`[${i[0]}="${i[1]}"]`)});else{r.id&&n.push(`#${r.id}`);const i=r.className;if(i&&tl(i)){const s=i.split(/\s+/);for(const l of s)n.push(`.${l}`)}}const o=["aria-label","type","name","title","alt"];for(const i of o){const s=r.getAttribute(i);s&&n.push(`[${i}="${s}"]`)}return n.join("")}function jne(){try{return KA.document.location.href}catch{return""}}function Wne(t){if(!KA.HTMLElement)return null;let e=t;const r=5;for(let n=0;nHne(t,n,r))}function Ga(t,e,r){if(!(e in t))return;const n=t[e],a=r(n);typeof a=="function"&&LV(a,n);try{t[e]=a}catch{Dd&&yt.log(`Failed to replace method "${e}" in object`,t)}}function fd(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{Dd&&yt.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function LV(t,e){try{const r=e.prototype||{};t.prototype=e.prototype=r,fd(t,"__sentry_original__",e)}catch{}}function ZA(t){return t.__sentry_original__}function NV(t){if(qA(t))return{message:t.message,name:t.name,stack:t.stack,...J3(t)};if($w(t)){const e={type:t.type,target:X3(t.target),currentTarget:X3(t.currentTarget),...J3(t)};return typeof CustomEvent<"u"&&dd(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function X3(t){try{return Lne(t)?RV(t):Object.prototype.toString.call(t)}catch{return""}}function J3(t){if(typeof t=="object"&&t!==null){const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function Une(t,e=40){const r=Object.keys(NV(t));r.sort();const n=r[0];if(!n)return"[object has no keys]";if(n.length>=e)return Mh(n,e);for(let a=r.length;a>0;a--){const o=r.slice(0,a).join(", ");if(!(o.length>e))return a===r.length?o:Mh(o,e)}return""}function Eo(t){return rO(t,new Map)}function rO(t,e){if(Vne(t)){const r=e.get(t);if(r!==void 0)return r;const n={};e.set(t,n);for(const a of Object.getOwnPropertyNames(t))typeof t[a]<"u"&&(n[a]=rO(t[a],e));return n}if(Array.isArray(t)){const r=e.get(t);if(r!==void 0)return r;const n=[];return e.set(t,n),t.forEach(a=>{n.push(rO(a,e))}),n}return t}function Vne(t){if(!Uh(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}const FV=1e3;function Hg(){return Date.now()/FV}function Yne(){const{performance:t}=nr;if(!t||!t.now)return Hg;const e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/FV}const rl=Yne();(()=>{const{performance:t}=nr;if(!t||!t.now)return;const e=3600*1e3,r=t.now(),n=Date.now(),a=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,o=aMath.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function zV(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function cc(t){const{message:e,event_id:r}=t;if(e)return e;const n=zV(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function nO(t,e,r){const n=t.exception=t.exception||{},a=n.values=n.values||[],o=a[0]=a[0]||{};o.value||(o.value=e||""),o.type||(o.type="Error")}function Vh(t,e){const r=zV(t);if(!r)return;const n={type:"generic",handled:!0},a=r.mechanism;if(r.mechanism={...n,...a,...e},e&&"data"in e){const o={...a&&a.data,...e.data};r.mechanism.data=o}}function K3(t){if(Gne(t))return!0;try{fd(t,"__sentry_captured__",!0)}catch{}return!1}function Gne(t){try{return t.__sentry_captured__}catch{}}var Ws;(function(t){t[t.PENDING=0]="PENDING";const r=1;t[t.RESOLVED=r]="RESOLVED";const n=2;t[t.REJECTED=n]="REJECTED"})(Ws||(Ws={}));function hd(t){return new bo(e=>{e(t)})}function d1(t){return new bo((e,r)=>{r(t)})}class bo{constructor(e){bo.prototype.__init.call(this),bo.prototype.__init2.call(this),bo.prototype.__init3.call(this),bo.prototype.__init4.call(this),this._state=Ws.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new bo((n,a)=>{this._handlers.push([!1,o=>{if(!e)n(o);else try{n(e(o))}catch(i){a(i)}},o=>{if(!r)a(o);else try{n(r(o))}catch(i){a(i)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new bo((r,n)=>{let a,o;return this.then(i=>{o=!1,a=i,e&&e()},i=>{o=!0,a=i,e&&e()}).then(()=>{if(o){n(a);return}r(a)})})}__init(){this._resolve=e=>{this._setResult(Ws.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Ws.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===Ws.PENDING){if(Aw(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Ws.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===Ws.RESOLVED&&r[1](this._value),this._state===Ws.REJECTED&&r[2](this._value),r[0]=!0)})}}}function qne(t){const e=rl(),r={sid:Do(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Jne(r)};return Yh(r,t),r}function Yh(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||rl(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:Do()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Xne(t,e){let r={};t.status==="ok"&&(r={status:"exited"}),Yh(t,r)}function Jne(t){return Eo({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}function Z3(){return Do()}function aO(){return Do().substring(16)}function Iw(t,e,r=2){if(!e||typeof e!="object"||r<=0)return e;if(t&&e&&Object.keys(e).length===0)return t;const n={...t};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=Iw(n[a],e[a],r-1));return n}const oO="_sentrySpan";function Q3(t,e){e?fd(t,oO,e):delete t[oO]}function e4(t){return t[oO]}const Kne=100;class QA{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Z3(),spanId:aO()}}clone(){const e=new QA;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,Q3(e,e4(this)),e}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&&Yh(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},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,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const r=typeof e=="function"?e(this):e,[n,a]=r instanceof pd?[r.getScopeData(),r.getRequestSession()]:Uh(r)?[e,e.requestSession]:[],{tags:o,extra:i,user:s,contexts:l,level:c,fingerprint:d=[],propagationContext:u}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...l},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),d.length&&(this._fingerprint=d),u&&(this._propagationContext=u),a&&(this._requestSession=a),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Q3(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Z3()}),this._notifyScopeListeners(),this}addBreadcrumb(e,r){const n=typeof r=="number"?r:Kne;if(n<=0)return this;const a={timestamp:Hg(),...e},o=this._breadcrumbs;return o.push(a),this._breadcrumbs=o.length>n?o.slice(-n):o,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,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:e4(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Iw(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:aO(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,r){const n=r&&r.event_id?r.event_id:Do();if(!this._client)return yt.warn("No client configured on scope - will not capture exception!"),n;const a=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:a,...r,event_id:n},this),n}captureMessage(e,r,n){const a=n&&n.event_id?n.event_id:Do();if(!this._client)return yt.warn("No client configured on scope - will not capture message!"),a;const o=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:o,...n,event_id:a},this),a}captureEvent(e,r){const n=r&&r.event_id?r.event_id:Do();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(yt.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}const pd=QA;function Zne(){return Mw("defaultCurrentScope",()=>new pd)}function Qne(){return Mw("defaultIsolationScope",()=>new pd)}class eae{constructor(e,r){let n;e?n=e:n=new pd;let a;r?a=r:a=new pd,this._stack=[{scope:n}],this._isolationScope=a}withScope(e){const r=this._pushScope();let n;try{n=e(r)}catch(a){throw this._popScope(),a}return Aw(n)?n.then(a=>(this._popScope(),a),a=>{throw this._popScope(),a}):(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(){const 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 Gh(){const t=Ow(),e=GA(t);return e.stack=e.stack||new eae(Zne(),Qne())}function tae(t){return Gh().withScope(t)}function rae(t,e){const r=Gh();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function t4(t){return Gh().withScope(()=>t(Gh().getIsolationScope()))}function nae(){return{withIsolationScope:t4,withScope:tae,withSetScope:rae,withSetIsolationScope:(t,e)=>t4(e),getCurrentScope:()=>Gh().getScope(),getIsolationScope:()=>Gh().getIsolationScope()}}function eP(t){const e=GA(t);return e.acs?e.acs:nae()}function ml(){const t=Ow();return eP(t).getCurrentScope()}function Ug(){const t=Ow();return eP(t).getIsolationScope()}function aae(){return Mw("globalScope",()=>new pd)}function oae(...t){const e=Ow(),r=eP(e);if(t.length===2){const[n,a]=t;return n?r.withSetScope(n,a):r.withScope(a)}return r.withScope(t[0])}function Zn(){return ml().getClient()}function iae(t){const e=t.getPropagationContext(),{traceId:r,spanId:n,parentSpanId:a}=e;return Eo({trace_id:r,span_id:n,parent_span_id:a})}const sae="_sentryMetrics";function lae(t){const e=t[sae];if(!e)return;const r={};for(const[,[n,a]]of e)(r[n]||(r[n]=[])).push(Eo(a));return r}const cae="sentry.source",uae="sentry.sample_rate",dae="sentry.op",fae="sentry.origin",hae=0,pae=1,vae="sentry-",mae=/^sentry-/;function gae(t){const e=_ae(t);if(!e)return;const r=Object.entries(e).reduce((n,[a,o])=>{if(a.match(mae)){const i=a.slice(vae.length);n[i]=o}return n},{});if(Object.keys(r).length>0)return r}function _ae(t){if(!(!t||!tl(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,r)=>{const n=r4(r);return Object.entries(n).forEach(([a,o])=>{e[a]=o}),e},{}):r4(t)}function r4(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(r&&n&&(e[r]=n),e),{})}const yae=1;let n4=!1;function bae(t){const{spanId:e,traceId:r,isRemote:n}=t.spanContext(),a=n?e:tP(t).parent_span_id,o=n?aO():e;return Eo({parent_span_id:a,span_id:o,trace_id:r})}function a4(t){return typeof t=="number"?o4(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?o4(t.getTime()):rl()}function o4(t){return t>9999999999?t/1e3:t}function tP(t){if(Sae(t))return t.getSpanJSON();try{const{spanId:e,traceId:r}=t.spanContext();if(wae(t)){const{attributes:n,startTime:a,name:o,endTime:i,parentSpanId:s,status:l}=t;return Eo({span_id:e,trace_id:r,data:n,description:o,parent_span_id:s,start_timestamp:a4(a),timestamp:a4(i)||void 0,status:Cae(l),op:n[dae],origin:n[fae],_metrics_summary:lae(t)})}return{span_id:e,trace_id:r}}catch{return{}}}function wae(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Sae(t){return typeof t.getSpanJSON=="function"}function xae(t){const{traceFlags:e}=t.spanContext();return e===yae}function Cae(t){if(!(!t||t.code===hae))return t.code===pae?"ok":t.message||"unknown_error"}const Tae="_sentryRootSpan";function BV(t){return t[Tae]||t}function kae(){n4||(Md(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),n4=!0)}function Eae(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=Zn(),r=e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}const rP="production",Dae="_frozenDsc";function jV(t,e){const r=e.getOptions(),{publicKey:n}=e.getDsn()||{},a=Eo({environment:r.environment||rP,release:r.release,public_key:n,trace_id:t});return e.emit("createDsc",a),a}function Mae(t,e){const r=e.getPropagationContext();return r.dsc||jV(r.traceId,t)}function Oae(t){const e=Zn();if(!e)return{};const r=BV(t),n=r[Dae];if(n)return n;const a=r.spanContext().traceState,o=a&&a.get("sentry.dsc"),i=o&&gae(o);if(i)return i;const s=jV(t.spanContext().traceId,e),l=tP(r),c=l.data||{},d=c[uae];d!=null&&(s.sample_rate=`${d}`);const u=c[cae],f=l.description;return u!=="url"&&f&&(s.transaction=f),Eae()&&(s.sampled=String(xae(r))),e.emit("createDsc",s,r),s}function $ae(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>1){_r&&yt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}const Aae=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Pae(t){return t==="http"||t==="https"}function Rw(t,e=!1){const{host:r,path:n,pass:a,port:o,projectId:i,protocol:s,publicKey:l}=t;return`${s}://${l}${e&&a?`:${a}`:""}@${r}${o?`:${o}`:""}/${n&&`${n}/`}${i}`}function Iae(t){const e=Aae.exec(t);if(!e){Md(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[r,n,a="",o="",i="",s=""]=e.slice(1);let l="",c=s;const d=c.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),c=d.pop()),c){const u=c.match(/^\d+/);u&&(c=u[0])}return WV({host:o,pass:a,path:l,projectId:c,port:i,protocol:r,publicKey:n})}function WV(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Rae(t){if(!Dd)return!0;const{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(i=>t[i]?!1:(yt.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:r.match(/^\d+$/)?Pae(n)?e&&isNaN(parseInt(e,10))?(yt.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(yt.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(yt.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function Lae(t){const e=typeof t=="string"?Iae(t):WV(t);if(!(!e||!Rae(e)))return e}function Nae(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(a){if(t)return e.has(a)?!0:(e.add(a),!1);for(let o=0;or?HV(t,e-1,r):n}function iO(t,e,r=1/0,n=1/0,a=Nae()){const[o,i]=a;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const s=Fae(t,e);if(!s.startsWith("[object "))return s;if(e.__sentry_skip_normalization__)return e;const l=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(l===0)return s.replace("object ","");if(o(e))return"[Circular ~]";const c=e;if(c&&typeof c.toJSON=="function")try{const p=c.toJSON();return iO("",p,l-1,n,a)}catch{}const d=Array.isArray(e)?[]:{};let u=0;const f=NV(e);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(u>=n){d[p]="[MaxProperties ~]";break}const m=f[p];d[p]=iO(p,m,l-1,n,a),u++}return i(e),d}function Fae(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(IV(e))return"[VueViewModel]";if(Fne(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Oc(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const r=zae(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function zae(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function Bae(t){return~-encodeURI(t).split(/%..|./).length}function jae(t){return Bae(JSON.stringify(t))}function Vg(t,e=[]){return[t,e]}function Wae(t,e){const[r,n]=t;return[r,[...n,e]]}function i4(t,e){const r=t[1];for(const n of r){const a=n[0].type;if(e(n,a))return!0}return!1}function sO(t){return nr.__SENTRY__&&nr.__SENTRY__.encodePolyfill?nr.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function Hae(t){const[e,r]=t;let n=JSON.stringify(e);function a(o){typeof n=="string"?n=typeof o=="string"?n+o:[sO(n),o]:n.push(typeof o=="string"?sO(o):o)}for(const o of r){const[i,s]=o;if(a(` +${JSON.stringify(i)} +`),typeof s=="string"||s instanceof Uint8Array)a(s);else{let l;try{l=JSON.stringify(s)}catch{l=JSON.stringify(Hs(s))}a(l)}}return typeof n=="string"?n:Uae(n)}function Uae(t){const e=t.reduce((a,o)=>a+o.length,0),r=new Uint8Array(e);let n=0;for(const a of t)r.set(a,n),n+=a.length;return r}function Vae(t){const e=typeof t.data=="string"?sO(t.data):t.data;return[Eo({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const Yae={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function s4(t){return Yae[t]}function UV(t){if(!t||!t.sdk)return;const{name:e,version:r}=t.sdk;return{name:e,version:r}}function Gae(t,e,r,n){const a=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:Rw(n)},...a&&{trace:Eo({...a})}}}function qae(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function Xae(t,e,r,n){const a=UV(r),o={sent_at:new Date().toISOString(),...a&&{sdk:a},...!!n&&e&&{dsn:Rw(e)}},i="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Vg(o,[i])}function Jae(t,e,r,n){const a=UV(r),o=t.type&&t.type!=="replay_event"?t.type:"event";qae(t,r&&r.sdk);const i=Gae(t,a,n,e);return delete t.sdkProcessingMetadata,Vg(i,[[{type:o},t]])}function lO(t,e,r,n=0){return new bo((a,o)=>{const i=t[n];if(e===null||typeof i!="function")a(e);else{const s=i({...e},r);_r&&i.id&&s===null&&yt.log(`Event processor "${i.id}" dropped event`),Aw(s)?s.then(l=>lO(t,l,r,n+1).then(a)).then(null,o):lO(t,s,r,n+1).then(a).then(null,o)}})}let Yy,l4,Gy;function Kae(t){const e=nr._sentryDebugIds;if(!e)return{};const r=Object.keys(e);return Gy&&r.length===l4||(l4=r.length,Gy=r.reduce((n,a)=>{Yy||(Yy={});const o=Yy[a];if(o)n[o[0]]=o[1];else{const i=t(a);for(let s=i.length-1;s>=0;s--){const l=i[s],c=l&&l.filename,d=e[a];if(c&&d){n[c]=d,Yy[a]=[c,d];break}}}return n},{})),Gy}function Zae(t,e){const{fingerprint:r,span:n,breadcrumbs:a,sdkProcessingMetadata:o}=e;Qae(t,e),n&&roe(t,n),noe(t,r),eoe(t,a),toe(t,o)}function c4(t,e){const{extra:r,tags:n,user:a,contexts:o,level:i,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:d,attachments:u,propagationContext:f,transactionName:p,span:m}=e;qy(t,"extra",r),qy(t,"tags",n),qy(t,"user",a),qy(t,"contexts",o),t.sdkProcessingMetadata=Iw(t.sdkProcessingMetadata,s,2),i&&(t.level=i),p&&(t.transactionName=p),m&&(t.span=m),l.length&&(t.breadcrumbs=[...t.breadcrumbs,...l]),c.length&&(t.fingerprint=[...t.fingerprint,...c]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),u.length&&(t.attachments=[...t.attachments,...u]),t.propagationContext={...t.propagationContext,...f}}function qy(t,e,r){t[e]=Iw(t[e],r,1)}function Qae(t,e){const{extra:r,tags:n,user:a,contexts:o,level:i,transactionName:s}=e,l=Eo(r);l&&Object.keys(l).length&&(t.extra={...l,...t.extra});const c=Eo(n);c&&Object.keys(c).length&&(t.tags={...c,...t.tags});const d=Eo(a);d&&Object.keys(d).length&&(t.user={...d,...t.user});const u=Eo(o);u&&Object.keys(u).length&&(t.contexts={...u,...t.contexts}),i&&(t.level=i),s&&t.type!=="transaction"&&(t.transaction=s)}function eoe(t,e){const r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function toe(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function roe(t,e){t.contexts={trace:bae(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Oae(e),...t.sdkProcessingMetadata};const r=BV(e),n=tP(r).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function noe(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function aoe(t,e,r,n,a,o){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=t,l={...e,event_id:e.event_id||r.event_id||Do(),timestamp:e.timestamp||Hg()},c=r.integrations||t.integrations.map(_=>_.name);ooe(l,t),loe(l,c),a&&a.emit("applyFrameMetadata",e),e.type===void 0&&ioe(l,t.stackParser);const d=uoe(n,r.captureContext);r.mechanism&&Vh(l,r.mechanism);const u=a?a.getEventProcessors():[],f=aae().getScopeData();if(o){const _=o.getScopeData();c4(f,_)}if(d){const _=d.getScopeData();c4(f,_)}const p=[...r.attachments||[],...f.attachments];p.length&&(r.attachments=p),Zae(l,f);const m=[...u,...f.eventProcessors];return lO(m,l,r).then(_=>(_&&soe(_),typeof i=="number"&&i>0?coe(_,i,s):_))}function ooe(t,e){const{environment:r,release:n,dist:a,maxValueLength:o=250}=e;t.environment=t.environment||r||rP,!t.release&&n&&(t.release=n),!t.dist&&a&&(t.dist=a),t.message&&(t.message=Mh(t.message,o));const i=t.exception&&t.exception.values&&t.exception.values[0];i&&i.value&&(i.value=Mh(i.value,o));const s=t.request;s&&s.url&&(s.url=Mh(s.url,o))}function ioe(t,e){const r=Kae(e);try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(a=>{r&&a.filename&&(a.debug_id=r[a.filename])})})}catch{}}function soe(t){const e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(a=>{a.debug_id&&(a.abs_path?e[a.abs_path]=a.debug_id:a.filename&&(e[a.filename]=a.debug_id),delete a.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const r=t.debug_meta.images;Object.entries(e).forEach(([n,a])=>{r.push({type:"sourcemap",code_file:n,debug_id:a})})}function loe(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function coe(t,e,r){if(!t)return null;const n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(a=>({...a,...a.data&&{data:Hs(a.data,e,r)}}))},...t.user&&{user:Hs(t.user,e,r)},...t.contexts&&{contexts:Hs(t.contexts,e,r)},...t.extra&&{extra:Hs(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=Hs(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(a=>({...a,...a.data&&{data:Hs(a.data,e,r)}}))),t.contexts&&t.contexts.flags&&n.contexts&&(n.contexts.flags=Hs(t.contexts.flags,3,r)),n}function uoe(t,e){if(!e)return t;const r=t?t.clone():new pd;return r.update(e),r}function doe(t,e){return ml().captureException(t,void 0)}function VV(t,e){return ml().captureEvent(t,e)}function u4(t){const e=Zn(),r=Ug(),n=ml(),{release:a,environment:o=rP}=e&&e.getOptions()||{},{userAgent:i}=nr.navigator||{},s=qne({release:a,environment:o,user:n.getUser()||r.getUser(),...i&&{userAgent:i},...t}),l=r.getSession();return l&&l.status==="ok"&&Yh(l,{status:"exited"}),YV(),r.setSession(s),n.setSession(s),s}function YV(){const t=Ug(),e=ml(),r=e.getSession()||t.getSession();r&&Xne(r),GV(),t.setSession(),e.setSession()}function GV(){const t=Ug(),e=ml(),r=Zn(),n=e.getSession()||t.getSession();n&&r&&r.captureSession(n)}function d4(t=!1){if(t){YV();return}GV()}const foe="7";function hoe(t){const e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function poe(t){return`${hoe(t)}${t.projectId}/envelope/`}function voe(t,e){const r={sentry_version:foe};return t.publicKey&&(r.sentry_key=t.publicKey),e&&(r.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(r).toString()}function moe(t,e,r){return e||`${poe(t)}?${voe(t,r)}`}const f4=[];function goe(t){const e={};return t.forEach(r=>{const{name:n}=r,a=e[n];a&&!a.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.values(e)}function _oe(t){const e=t.defaultIntegrations||[],r=t.integrations;e.forEach(i=>{i.isDefaultInstance=!0});let n;if(Array.isArray(r))n=[...e,...r];else if(typeof r=="function"){const i=r(e);n=Array.isArray(i)?i:[i]}else n=e;const a=goe(n),o=a.findIndex(i=>i.name==="Debug");if(o>-1){const[i]=a.splice(o,1);a.push(i)}return a}function yoe(t,e){const r={};return e.forEach(n=>{n&&qV(t,n,r)}),r}function h4(t,e){for(const r of e)r&&r.afterAllSetup&&r.afterAllSetup(t)}function qV(t,e,r){if(r[e.name]){_r&&yt.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,f4.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),f4.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(a,o)=>n(a,o,t))}if(typeof e.processEvent=="function"){const n=e.processEvent.bind(e),a=Object.assign((o,i)=>n(o,i,t),{id:e.name});t.addEventProcessor(a)}_r&&yt.log(`Integration installed: ${e.name}`)}function boe(t,e,r){const n=[{type:"client_report"},{timestamp:Hg(),discarded_events:t}];return Vg(e?{dsn:e}:{},[n])}class Gi extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}}const p4="Not capturing exception because it's already been captured.";class woe{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Lae(e.dsn):_r&&yt.warn("No DSN provided, client will not send events."),this._dsn){const a=moe(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:a})}const n=["enableTracing","tracesSampleRate","tracesSampler"].find(a=>a in e&&e[a]==null);n&&Md(()=>{console.warn(`[Sentry] Deprecation warning: \`${n}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,r,n){const a=Do();if(K3(e))return _r&&yt.log(p4),a;const o={event_id:a,...r};return this._process(this.eventFromException(e,o).then(i=>this._captureEvent(i,o,n))),o.event_id}captureMessage(e,r,n,a){const o={event_id:Do(),...n},i=XA(e)?e:String(e),s=JA(e)?this.eventFromMessage(i,r,o):this.eventFromException(e,o);return this._process(s.then(l=>this._captureEvent(l,o,a))),o.event_id}captureEvent(e,r,n){const a=Do();if(r&&r.originalException&&K3(r.originalException))return _r&&yt.log(p4),a;const o={event_id:a,...r},s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,s||n)),o.event_id}captureSession(e){typeof e.release!="string"?_r&&yt.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Yh(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>r.flush(e).then(a=>n&&a))):hd(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}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]}addIntegration(e){const r=this._integrations[e.name];qV(this,e,this._integrations),r||h4(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=Jae(e,this._dsn,this._options._metadata,this._options.tunnel);for(const o of r.attachments||[])n=Wae(n,Vae(o));const a=this.sendEnvelope(n);a&&a.then(o=>this.emit("afterSendEvent",e,o),null)}sendSession(e){const r=Xae(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){const a=typeof n=="number"?n:1,o=`${e}:${r}`;_r&&yt.log(`Recording outcome: "${o}"${a>1?` (${a} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+a}}on(e,r){const n=this._hooks[e]=this._hooks[e]||[];return n.push(r),()=>{const a=n.indexOf(r);a>-1&&n.splice(a,1)}}emit(e,...r){const n=this._hooks[e];n&&n.forEach(a=>a(...r))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,r=>(_r&&yt.error("Error while sending envelope:",r),r)):(_r&&yt.error("Transport disabled"),hd({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=yoe(this,e),h4(this,e)}_updateSessionFromEvent(e,r){let n=!1,a=!1;const o=r.exception&&r.exception.values;if(o){a=!0;for(const l of o){const c=l.mechanism;if(c&&c.handled===!1){n=!0;break}}}const i=e.status==="ok";(i&&e.errors===0||i&&n)&&(Yh(e,{...n&&{status:"crashed"},errors:e.errors||Number(a||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new bo(r=>{let n=0;const a=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),r(!0)):(n+=a,e&&n>=e&&(clearInterval(o),r(!1)))},a)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n=ml(),a=Ug()){const o=this.getOptions(),i=Object.keys(this._integrations);return!r.integrations&&i.length>0&&(r.integrations=i),this.emit("preprocessEvent",e,r),e.type||a.setLastEventId(e.event_id||r.event_id),aoe(o,e,r,n,this,a).then(s=>{if(s===null)return s;s.contexts={trace:iae(n),...s.contexts};const l=Mae(this,n);return s.sdkProcessingMetadata={dynamicSamplingContext:l,...s.sdkProcessingMetadata},s})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(a=>a.event_id,a=>{if(_r){const o=a;o.logLevel==="log"?yt.log(o.message):yt.warn(o)}})}_processEvent(e,r,n){const a=this.getOptions(),{sampleRate:o}=a,i=JV(e),s=XV(e),l=e.type||"error",c=`before send for type \`${l}\``,d=typeof o>"u"?void 0:$ae(o);if(s&&typeof d=="number"&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error",e),d1(new Gi(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const u=l==="replay_event"?"replay":l,p=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,r,n,p).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",u,e),new Gi("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return m;const _=xoe(this,a,m,r);return Soe(_,c)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",u,e),i){const w=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",w)}throw new Gi(`${c} returned \`null\`, will not send event.`,"log")}const g=n&&n.getSession();if(!i&&g&&this._updateSessionFromEvent(g,m),i){const b=m.sdkProcessingMetadata&&m.sdkProcessingMetadata.spanCountBeforeProcessing||0,w=m.spans?m.spans.length:0,S=b-w;S>0&&this.recordDroppedEvent("before_send","span",S)}const _=m.transaction_info;if(i&&_&&m.transaction!==e.transaction){const b="custom";m.transaction_info={..._,source:b}}return this.sendEvent(m,r),m}).then(null,m=>{throw m instanceof Gi?m:(this.captureException(m,{data:{__sentry__:!0},originalException:m}),new Gi(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${m}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([r,n])=>{const[a,o]=r.split(":");return{reason:a,category:o,quantity:n}})}_flushOutcomes(){_r&&yt.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){_r&&yt.log("No outcomes to send");return}if(!this._dsn){_r&&yt.log("No dsn provided, will not send outcomes");return}_r&&yt.log("Sending outcomes:",e);const r=boe(e,this._options.tunnel&&Rw(this._dsn));this.sendEnvelope(r)}}function Soe(t,e){const r=`${e} must return \`null\` or a valid event.`;if(Aw(t))return t.then(n=>{if(!Uh(n)&&n!==null)throw new Gi(r);return n},n=>{throw new Gi(`${e} rejected with ${n}`)});if(!Uh(t)&&t!==null)throw new Gi(r);return t}function xoe(t,e,r,n){const{beforeSend:a,beforeSendTransaction:o,beforeSendSpan:i}=e;if(XV(r)&&a)return a(r,n);if(JV(r)){if(r.spans&&i){const s=[];for(const l of r.spans){const c=i(l);c?s.push(c):(kae(),t.recordDroppedEvent("before_send","span"))}r.spans=s}if(o){if(r.spans){const s=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:s}}return o(r,n)}}return r}function XV(t){return t.type===void 0}function JV(t){return t.type==="transaction"}function Coe(t,e){e.debug===!0&&(_r?yt.enable():Md(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),ml().update(e.initialScope);const n=new t(e);return Toe(n),n.init(),n}function Toe(t){ml().setClient(t)}function koe(t){const e=[];function r(){return t===void 0||e.lengthn(s)).then(null,()=>n(s).then(null,()=>{})),s}function o(i){return new bo((s,l)=>{let c=e.length;if(!c)return s(!0);const d=setTimeout(()=>{i&&i>0&&s(!1)},i);e.forEach(u=>{hd(u).then(()=>{--c||(clearTimeout(d),s(!0))},l)})})}return{$:e,add:a,drain:o}}const Eoe=60*1e3;function Doe(t,e=Date.now()){const r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;const n=Date.parse(`${t}`);return isNaN(n)?Eoe:n-e}function Moe(t,e){return t[e]||t.all||0}function Ooe(t,e,r=Date.now()){return Moe(t,e)>r}function $oe(t,{statusCode:e,headers:r},n=Date.now()){const a={...t},o=r&&r["x-sentry-rate-limits"],i=r&&r["retry-after"];if(o)for(const s of o.trim().split(",")){const[l,c,,,d]=s.split(":",5),u=parseInt(l,10),f=(isNaN(u)?60:u)*1e3;if(!c)a.all=n+f;else for(const p of c.split(";"))p==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(a[p]=n+f):a[p]=n+f}else i?a.all=n+Doe(i,n):e===429&&(a.all=n+60*1e3);return a}const Aoe=64;function Poe(t,e,r=koe(t.bufferSize||Aoe)){let n={};const a=i=>r.drain(i);function o(i){const s=[];if(i4(i,(u,f)=>{const p=s4(f);if(Ooe(n,p)){const m=v4(u,f);t.recordDroppedEvent("ratelimit_backoff",p,m)}else s.push(u)}),s.length===0)return hd({});const l=Vg(i[0],s),c=u=>{i4(l,(f,p)=>{const m=v4(f,p);t.recordDroppedEvent(u,s4(p),m)})},d=()=>e({body:Hae(l)}).then(u=>(u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&_r&&yt.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),n=$oe(n,u),u),u=>{throw c("network_error"),u});return r.add(d).then(u=>u,u=>{if(u instanceof Gi)return _r&&yt.error("Skipped sending event because buffer is full."),c("queue_overflow"),hd({});throw u})}return{send:o,flush:a}}function v4(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}function Ioe(t,e,r=[e],n="npm"){const a=t._metadata||{};a.sdk||(a.sdk={name:`sentry.javascript.${e}`,packages:r.map(o=>({name:`${n}:@sentry/${o}`,version:td})),version:td}),t._metadata=a}const Roe=100;function vd(t,e){const r=Zn(),n=Ug();if(!r)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:o=Roe}=r.getOptions();if(o<=0)return;const s={timestamp:Hg(),...t},l=a?Md(()=>a(s,e)):s;l!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",l,e),n.addBreadcrumb(l,o))}let m4;const Loe="FunctionToString",g4=new WeakMap,Noe=()=>({name:Loe,setupOnce(){m4=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=ZA(this),r=g4.has(Zn())&&e!==void 0?e:this;return m4.apply(r,t)}}catch{}},setup(t){g4.set(t,!0)}}),Foe=Noe,zoe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],Boe="InboundFilters",joe=(t={})=>({name:Boe,processEvent(e,r,n){const a=n.getOptions(),o=Hoe(t,a);return Uoe(e,o)?null:e}}),Woe=joe;function Hoe(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:zoe],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function Uoe(t,e){return e.ignoreInternal&&Joe(t)?(_r&&yt.warn(`Event dropped due to being internal Sentry Error. +Event: ${cc(t)}`),!0):Voe(t,e.ignoreErrors)?(_r&&yt.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${cc(t)}`),!0):Zoe(t)?(_r&&yt.warn(`Event dropped due to not having an error message, error type or stacktrace. +Event: ${cc(t)}`),!0):Yoe(t,e.ignoreTransactions)?(_r&&yt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. +Event: ${cc(t)}`),!0):Goe(t,e.denyUrls)?(_r&&yt.warn(`Event dropped due to being matched by \`denyUrls\` option. +Event: ${cc(t)}. +Url: ${f1(t)}`),!0):qoe(t,e.allowUrls)?!1:(_r&&yt.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Event: ${cc(t)}. +Url: ${f1(t)}`),!0)}function Voe(t,e){return t.type||!e||!e.length?!1:Xoe(t).some(r=>Pw(r,e))}function Yoe(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const r=t.transaction;return r?Pw(r,e):!1}function Goe(t,e){if(!e||!e.length)return!1;const r=f1(t);return r?Pw(r,e):!1}function qoe(t,e){if(!e||!e.length)return!0;const r=f1(t);return r?Pw(r,e):!0}function Xoe(t){const e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch{}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),e}function Joe(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function Koe(t=[]){for(let e=t.length-1;e>=0;e--){const r=t[e];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function f1(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?Koe(e):null}catch{return _r&&yt.error(`Cannot extract url for event ${cc(t)}`),null}}function Zoe(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}function Qoe(t,e,r=250,n,a,o,i){if(!o.exception||!o.exception.values||!i||!dd(i.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=eie(cO(t,e,a,i.originalException,n,o.exception.values,s,0),r))}function cO(t,e,r,n,a,o,i,s){if(o.length>=r+1)return o;let l=[...o];if(dd(n[a],Error)){_4(i,s);const c=t(e,n[a]),d=l.length;y4(c,a,d,s),l=cO(t,e,r,n[a],a,[c,...l],c,d)}return Array.isArray(n.errors)&&n.errors.forEach((c,d)=>{if(dd(c,Error)){_4(i,s);const u=t(e,c),f=l.length;y4(u,`errors[${d}]`,f,s),l=cO(t,e,r,c,a,[u,...l],u,f)}}),l}function _4(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function y4(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function eie(t,e){return t.map(r=>(r.value&&(r.value=Mh(r.value,e)),r))}function pT(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}function tie(t){const e="console";Od(e,t),$d(e,rie)}function rie(){"console"in nr&&tO.forEach(function(t){t in nr.console&&Ga(nr.console,t,function(e){return u1[t]=e,function(...r){fi("console",{args:r,level:t});const a=u1[t];a&&a.apply(nr.console,r)}})})}function nie(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const aie="Dedupe",oie=()=>{let t;return{name:aie,processEvent(e){if(e.type)return e;try{if(iie(e,t))return _r&&yt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},KV=oie;function iie(t,e){return e?!!(sie(t,e)||lie(t,e)):!1}function sie(t,e){const r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!QV(t,e)||!ZV(t,e))}function lie(t,e){const r=b4(e),n=b4(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!QV(t,e)||!ZV(t,e))}function ZV(t,e){let r=V3(t),n=V3(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let a=0;a=400&&t<500?"warning":t>=500?"error":void 0}const uO=nr;function tY(){if(!("fetch"in uO))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function dO(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function cie(){if(typeof EdgeRuntime=="string")return!0;if(!tY())return!1;if(dO(uO.fetch))return!0;let t=!1;const e=uO.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=dO(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){Dd&&yt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function uie(t,e){const r="fetch";Od(r,t),$d(r,()=>die(void 0,e))}function die(t,e=!1){e&&!cie()||Ga(nr,"fetch",function(r){return function(...n){const a=new Error,{method:o,url:i}=fie(n),s={args:n,fetchData:{method:o,url:i},startTimestamp:rl()*1e3,virtualError:a};return fi("fetch",{...s}),r.apply(nr,n).then(async l=>(fi("fetch",{...s,endTimestamp:rl()*1e3,response:l}),l),l=>{throw fi("fetch",{...s,endTimestamp:rl()*1e3,error:l}),qA(l)&&l.stack===void 0&&(l.stack=a.stack,fd(l,"framesToPop",1)),l})}})}function fO(t,e){return!!t&&typeof t=="object"&&!!t[e]}function w4(t){return typeof t=="string"?t:t?fO(t,"url")?t.url:t.toString?t.toString():"":""}function fie(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[r,n]=t;return{url:w4(r),method:fO(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:w4(e),method:fO(e,"method")?String(e.method).toUpperCase():"GET"}}function hie(){return"npm"}const Xy=nr;function pie(){const t=Xy.chrome,e=t&&t.app&&t.app.runtime,r="history"in Xy&&!!Xy.history.pushState&&!!Xy.history.replaceState;return!e&&r}const yr=nr;let hO=0;function rY(){return hO>0}function vie(){hO++,setTimeout(()=>{hO--})}function qh(t,e={}){function r(a){return typeof a=="function"}if(!r(t))return t;try{const a=t.__sentry_wrapped__;if(a)return typeof a=="function"?a:t;if(ZA(t))return t}catch{return t}const n=function(...a){try{const o=a.map(i=>qh(i,e));return t.apply(this,o)}catch(o){throw vie(),oae(i=>{i.addEventProcessor(s=>(e.mechanism&&(nO(s,void 0),Vh(s,e.mechanism)),s.extra={...s.extra,arguments:a},s)),doe(o)}),o}};try{for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])}catch{}LV(n,t),fd(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}const Yg=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function nP(t,e){const r=aP(t,e),n={type:bie(e),value:wie(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function mie(t,e,r,n){const a=Zn(),o=a&&a.getOptions().normalizeDepth,i=kie(e),s={__serialized__:HV(e,o)};if(i)return{exception:{values:[nP(t,i)]},extra:s};const l={exception:{values:[{type:$w(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:Cie(e,{isUnhandledRejection:n})}]},extra:s};if(r){const c=aP(t,r);c.length&&(l.exception.values[0].stacktrace={frames:c})}return l}function vT(t,e){return{exception:{values:[nP(t,e)]}}}function aP(t,e){const r=e.stacktrace||e.stack||"",n=_ie(e),a=yie(e);try{return t(r,n,a)}catch{}return[]}const gie=/Minified React error #\d+;/i;function _ie(t){return t&&gie.test(t.message)?1:0}function yie(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function nY(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function bie(t){const e=t&&t.name;return!e&&nY(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function wie(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:nY(t)&&Array.isArray(t.message)&&t.message.length==2?t.message[1]:e:"No error message"}function Sie(t,e,r,n){const a=r&&r.syntheticException||void 0,o=oP(t,e,a,n);return Vh(o),o.level="error",r&&r.event_id&&(o.event_id=r.event_id),hd(o)}function xie(t,e,r="info",n,a){const o=n&&n.syntheticException||void 0,i=pO(t,e,o,a);return i.level=r,n&&n.event_id&&(i.event_id=n.event_id),hd(i)}function oP(t,e,r,n,a){let o;if(PV(e)&&e.error)return vT(t,e.error);if(G3(e)||Rne(e)){const i=e;if("stack"in e)o=vT(t,e);else{const s=i.name||(G3(i)?"DOMError":"DOMException"),l=i.message?`${s}: ${i.message}`:s;o=pO(t,l,r,n),nO(o,l)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return qA(e)?vT(t,e):Uh(e)||$w(e)?(o=mie(t,e,r,a),Vh(o,{synthetic:!0}),o):(o=pO(t,e,r,n),nO(o,`${e}`),Vh(o,{synthetic:!0}),o)}function pO(t,e,r,n){const a={};if(n&&r){const o=aP(t,r);o.length&&(a.exception={values:[{value:e,stacktrace:{frames:o}}]}),Vh(a,{synthetic:!0})}if(XA(e)){const{__sentry_template_string__:o,__sentry_template_values__:i}=e;return a.logentry={message:o,params:i},a}return a.message=e,a}function Cie(t,{isUnhandledRejection:e}){const r=Une(t),n=e?"promise rejection":"exception";return PV(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:$w(t)?`Event \`${Tie(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function Tie(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function kie(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];if(r instanceof Error)return r}}function Eie(t,{metadata:e,tunnel:r,dsn:n}){const a={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!r&&!!n&&{dsn:Rw(n)}},o=Die(t);return Vg(a,[o])}function Die(t){return[{type:"user_report"},t]}class Mie extends woe{constructor(e){const r={parentSpanIsAlwaysRootSpan:!0,...e},n=yr.SENTRY_SDK_SOURCE||hie();Ioe(r,"browser",["browser"],n),super(r),r.sendClientReports&&yr.document&&yr.document.addEventListener("visibilitychange",()=>{yr.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,r){return Sie(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return xie(this._options.stackParser,e,r,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){Yg&&yt.warn("SDK not enabled, will not capture user feedback.");return}const r=Eie(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(r)}_prepareEvent(e,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n)}}const Oie=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,oa=nr,$ie=1e3;let S4,vO,mO;function Aie(t){const e="dom";Od(e,t),$d(e,Pie)}function Pie(){if(!oa.document)return;const t=fi.bind(null,"dom"),e=x4(t,!0);oa.document.addEventListener("click",e,!1),oa.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{const a=oa[r],o=a&&a.prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(Ga(o,"addEventListener",function(i){return function(s,l,c){if(s==="click"||s=="keypress")try{const d=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=d[s]=d[s]||{refCount:0};if(!u.handler){const f=x4(t);u.handler=f,i.call(this,s,f,c)}u.refCount++}catch{}return i.call(this,s,l,c)}}),Ga(o,"removeEventListener",function(i){return function(s,l,c){if(s==="click"||s=="keypress")try{const d=this.__sentry_instrumentation_handlers__||{},u=d[s];u&&(u.refCount--,u.refCount<=0&&(i.call(this,s,u.handler,c),u.handler=void 0,delete d[s]),Object.keys(d).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,l,c)}}))})}function Iie(t){if(t.type!==vO)return!1;try{if(!t.target||t.target._sentryId!==mO)return!1}catch{}return!0}function Rie(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function x4(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;const n=Lie(r);if(Rie(r.type,n))return;fd(r,"_sentryCaptured",!0),n&&!n._sentryId&&fd(n,"_sentryId",Do());const a=r.type==="keypress"?"input":r.type;Iie(r)||(t({event:r,name:a,global:e}),vO=r.type,mO=n?n._sentryId:void 0),clearTimeout(S4),S4=oa.setTimeout(()=>{mO=void 0,vO=void 0},$ie)}}function Lie(t){try{return t.target}catch{return null}}let Jy;function aY(t){const e="history";Od(e,t),$d(e,Nie)}function Nie(){if(!pie())return;const t=oa.onpopstate;oa.onpopstate=function(...r){const n=oa.location.href,a=Jy;if(Jy=n,fi("history",{from:a,to:n}),t)try{return t.apply(this,r)}catch{}};function e(r){return function(...n){const a=n.length>2?n[2]:void 0;if(a){const o=Jy,i=String(a);Jy=i,fi("history",{from:o,to:i})}return r.apply(this,n)}}Ga(oa.history,"pushState",e),Ga(oa.history,"replaceState",e)}const Rb={};function Fie(t){const e=Rb[t];if(e)return e;let r=oa[t];if(dO(r))return Rb[t]=r.bind(oa);const n=oa.document;if(n&&typeof n.createElement=="function")try{const a=n.createElement("iframe");a.hidden=!0,n.head.appendChild(a);const o=a.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(a)}catch(a){Oie&&yt.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,a)}return r&&(Rb[t]=r.bind(oa))}function C4(t){Rb[t]=void 0}const pm="__sentry_xhr_v3__";function zie(t){const e="xhr";Od(e,t),$d(e,Bie)}function Bie(){if(!oa.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,r,n){const a=new Error,o=rl()*1e3,i=tl(n[0])?n[0].toUpperCase():void 0,s=jie(n[1]);if(!i||!s)return e.apply(r,n);r[pm]={method:i,url:s,request_headers:{}},i==="POST"&&s.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const l=()=>{const c=r[pm];if(c&&r.readyState===4){try{c.status_code=r.status}catch{}const d={endTimestamp:rl()*1e3,startTimestamp:o,xhr:r,virtualError:a};fi("xhr",d)}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(c,d,u){return l(),c.apply(d,u)}}):r.addEventListener("readystatechange",l),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(c,d,u){const[f,p]=u,m=d[pm];return m&&tl(f)&&tl(p)&&(m.request_headers[f.toLowerCase()]=p),c.apply(d,u)}}),e.apply(r,n)}}),t.send=new Proxy(t.send,{apply(e,r,n){const a=r[pm];if(!a)return e.apply(r,n);n[0]!==void 0&&(a.body=n[0]);const o={startTimestamp:rl()*1e3,xhr:r};return fi("xhr",o),e.apply(r,n)}})}function jie(t){if(tl(t))return t;try{return t.toString()}catch{}}function Wie(t,e=Fie("fetch")){let r=0,n=0;function a(o){const i=o.body.length;r+=i,n++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};if(!e)return C4("fetch"),d1("No fetch implementation available");try{return e(t.url,s).then(l=>(r-=i,n--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return C4("fetch"),r-=i,n--,d1(l)}}return Poe(t,a)}const Hie=30,Uie=50;function gO(t,e,r,n){const a={filename:t,function:e===""?ud:e,in_app:!0};return r!==void 0&&(a.lineno=r),n!==void 0&&(a.colno=n),a}const Vie=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Yie=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Gie=/\((\S*)(?::(\d+))(?::(\d+))\)/,qie=t=>{const e=Vie.exec(t);if(e){const[,n,a,o]=e;return gO(n,ud,+a,+o)}const r=Yie.exec(t);if(r){if(r[2]&&r[2].indexOf("eval")===0){const i=Gie.exec(r[2]);i&&(r[2]=i[1],r[3]=i[2],r[4]=i[3])}const[a,o]=oY(r[1]||ud,r[2]);return gO(o,a,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},Xie=[Hie,qie],Jie=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Kie=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Zie=t=>{const e=Jie.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const o=Kie.exec(e[3]);o&&(e[1]=e[1]||"eval",e[3]=o[1],e[4]=o[2],e[5]="")}let n=e[3],a=e[1]||ud;return[a,n]=oY(a,n),gO(n,a,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Qie=[Uie,Zie],ese=[Xie,Qie],tse=$V(...ese),oY=(t,e)=>{const r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:ud,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Ky=1024,rse="Breadcrumbs",nse=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:rse,setup(r){e.console&&tie(sse(r)),e.dom&&Aie(ise(r,e.dom)),e.xhr&&zie(lse(r)),e.fetch&&uie(cse(r)),e.history&&aY(use(r)),e.sentry&&r.on("beforeSendEvent",ose(r))}}},ase=nse;function ose(t){return function(r){Zn()===t&&vd({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:cc(r)},{event:r})}}function ise(t,e){return function(n){if(Zn()!==t)return;let a,o,i=typeof e=="object"?e.serializeAttribute:void 0,s=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;s&&s>Ky&&(Yg&&yt.warn(`\`dom.maxStringLength\` cannot exceed ${Ky}, but a value of ${s} was configured. Sentry will use ${Ky} instead.`),s=Ky),typeof i=="string"&&(i=[i]);try{const c=n.event,d=dse(c)?c.target:c;a=RV(d,{keyAttrs:i,maxStringLength:s}),o=Wne(d)}catch{a=""}if(a.length===0)return;const l={category:`ui.${n.name}`,message:a};o&&(l.data={"ui.component_name":o}),vd(l,{event:n.event,name:n.name,global:n.global})}}function sse(t){return function(r){if(Zn()!==t)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:nie(r.level),message:q3(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${q3(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;vd(n,{input:r.args,level:r.level})}}function lse(t){return function(r){if(Zn()!==t)return;const{startTimestamp:n,endTimestamp:a}=r,o=r.xhr[pm];if(!n||!a||!o)return;const{method:i,url:s,status_code:l,body:c}=o,d={method:i,url:s,status_code:l},u={xhr:r.xhr,input:c,startTimestamp:n,endTimestamp:a},f=eY(l);vd({category:"xhr",data:d,type:"http",level:f},u)}}function cse(t){return function(r){if(Zn()!==t)return;const{startTimestamp:n,endTimestamp:a}=r;if(a&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){const o=r.fetchData,i={data:r.error,input:r.args,startTimestamp:n,endTimestamp:a};vd({category:"fetch",data:o,level:"error",type:"http"},i)}else{const o=r.response,i={...r.fetchData,status_code:o&&o.status},s={input:r.args,response:o,startTimestamp:n,endTimestamp:a},l=eY(i.status_code);vd({category:"fetch",data:i,type:"http",level:l},s)}}}function use(t){return function(r){if(Zn()!==t)return;let n=r.from,a=r.to;const o=pT(yr.location.href);let i=n?pT(n):void 0;const s=pT(a);(!i||!i.path)&&(i=o),o.protocol===s.protocol&&o.host===s.host&&(a=s.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),vd({category:"navigation",data:{from:n,to:a}})}}function dse(t){return!!t&&!!t.target}const fse=["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"],hse="BrowserApiErrors",pse=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:hse,setupOnce(){e.setTimeout&&Ga(yr,"setTimeout",T4),e.setInterval&&Ga(yr,"setInterval",T4),e.requestAnimationFrame&&Ga(yr,"requestAnimationFrame",mse),e.XMLHttpRequest&&"XMLHttpRequest"in yr&&Ga(XMLHttpRequest.prototype,"send",gse);const r=e.eventTarget;r&&(Array.isArray(r)?r:fse).forEach(_se)}}},vse=pse;function T4(t){return function(...e){const r=e[0];return e[0]=qh(r,{mechanism:{data:{function:Oc(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function mse(t){return function(e){return t.apply(this,[qh(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Oc(t)},handled:!1,type:"instrument"}})])}}function gse(t){return function(...e){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(a=>{a in r&&typeof r[a]=="function"&&Ga(r,a,function(o){const i={mechanism:{data:{function:a,handler:Oc(o)},handled:!1,type:"instrument"}},s=ZA(o);return s&&(i.mechanism.data.handler=Oc(s)),qh(o,i)})}),t.apply(this,e)}}function _se(t){const r=yr[t],n=r&&r.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Ga(n,"addEventListener",function(a){return function(o,i,s){try{yse(i)&&(i.handleEvent=qh(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Oc(i),target:t},handled:!1,type:"instrument"}}))}catch{}return a.apply(this,[o,qh(i,{mechanism:{data:{function:"addEventListener",handler:Oc(i),target:t},handled:!1,type:"instrument"}}),s])}}),Ga(n,"removeEventListener",function(a){return function(o,i,s){try{const l=i.__sentry_wrapped__;l&&a.call(this,o,l,s)}catch{}return a.call(this,o,i,s)}}))}function yse(t){return typeof t.handleEvent=="function"}const bse=()=>({name:"BrowserSession",setupOnce(){if(typeof yr.document>"u"){Yg&&yt.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}u4({ignoreDuration:!0}),d4(),aY(({from:t,to:e})=>{t!==void 0&&t!==e&&(u4({ignoreDuration:!0}),d4())})}}),wse="GlobalHandlers",Sse=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:wse,setupOnce(){Error.stackTraceLimit=50},setup(r){e.onerror&&(Cse(r),k4("onerror")),e.onunhandledrejection&&(Tse(r),k4("onunhandledrejection"))}}},xse=Sse;function Cse(t){$ne(e=>{const{stackParser:r,attachStacktrace:n}=iY();if(Zn()!==t||rY())return;const{msg:a,url:o,line:i,column:s,error:l}=e,c=Dse(oP(r,l||a,void 0,n,!1),o,i,s);c.level="error",VV(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function Tse(t){Pne(e=>{const{stackParser:r,attachStacktrace:n}=iY();if(Zn()!==t||rY())return;const a=kse(e),o=JA(a)?Ese(a):oP(r,a,void 0,n,!0);o.level="error",VV(o,{originalException:a,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function kse(t){if(JA(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function Ese(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Dse(t,e,r,n){const a=t.exception=t.exception||{},o=a.values=a.values||[],i=o[0]=o[0]||{},s=i.stacktrace=i.stacktrace||{},l=s.frames=s.frames||[],c=n,d=r,u=tl(e)&&e.length>0?e:jne();return l.length===0&&l.push({colno:c,filename:u,function:ud,in_app:!0,lineno:d}),t}function k4(t){Yg&&yt.log(`Global Handler attached: ${t}`)}function iY(){const t=Zn();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Mse=()=>({name:"HttpContext",preprocessEvent(t){if(!yr.navigator&&!yr.location&&!yr.document)return;const e=t.request&&t.request.url||yr.location&&yr.location.href,{referrer:r}=yr.document||{},{userAgent:n}=yr.navigator||{},a={...t.request&&t.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},o={...t.request,...e&&{url:e},headers:a};t.request=o}}),Ose="cause",$se=5,Ase="LinkedErrors",Pse=(t={})=>{const e=t.limit||$se,r=t.key||Ose;return{name:Ase,preprocessEvent(n,a,o){const i=o.getOptions();Qoe(nP,i.stackParser,i.maxValueLength,r,e,n,a)}}},Ise=Pse;function Rse(t){const e=[Woe(),Foe(),vse(),ase(),xse(),Ise(),KV(),Mse()];return t.autoSessionTracking!==!1&&e.push(bse()),e}function Lse(t={}){const e={defaultIntegrations:Rse(t),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:yr.SENTRY_RELEASE&&yr.SENTRY_RELEASE.id?yr.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return t.defaultIntegrations==null&&delete t.defaultIntegrations,{...e,...t}}function Nse(){const t=typeof yr.window<"u"&&yr;if(!t)return!1;const e=t.chrome?"chrome":"browser",r=t[e],n=r&&r.runtime&&r.runtime.id,a=yr.location&&yr.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!n&&yr===yr.top&&o.some(l=>a.startsWith(`${l}//`)),s=typeof t.nw<"u";return!!n&&!i&&!s}function Fse(t={}){const e=Lse(t);if(!e.skipBrowserExtensionCheck&&Nse()){Md(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}Yg&&(tY()||yt.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const r={...e,stackParser:Mne(e.stackParser||tse),integrations:_oe(e),transport:e.transport||Wie};return Coe(Mie,r)}var R=zc();const k=fs(R),h1=gne({__proto__:null,default:k},[R]);function ll(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const hi="$$material";function p1(){return p1=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?Tn(fp,--Aa):0,Xh--,rn===10&&(Xh=1,Nw--),rn}function Xa(){return rn=Aa2||tg(rn)>3?"":" "}function Zse(t,e){for(;--e&&Xa()&&!(rn<48||rn>102||rn>57&&rn<65||rn>70&&rn<97););return Gg(t,Lb()+(e<6&&Qi()==32&&Xa()==32))}function yO(t){for(;Xa();)switch(rn){case t:return Aa;case 34:case 39:t!==34&&t!==39&&yO(rn);break;case 40:t===41&&yO(t);break;case 92:Xa();break}return Aa}function Qse(t,e){for(;Xa()&&t+rn!==57;)if(t+rn===84&&Qi()===47)break;return"/*"+Gg(e,Aa-1)+"*"+Lw(t===47?t:Xa())}function ele(t){for(;!tg(Qi());)Xa();return Gg(t,Aa)}function tle(t){return hY(Fb("",null,null,null,[""],t=fY(t),0,[0],t))}function Fb(t,e,r,n,a,o,i,s,l){for(var c=0,d=0,u=i,f=0,p=0,m=0,g=1,_=1,b=1,w=0,S="",x=a,E=o,T=n,D=S;_;)switch(m=w,w=Xa()){case 40:if(m!=108&&Tn(D,u-1)==58){_O(D+=tr(Nb(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:D+=Nb(w);break;case 9:case 10:case 13:case 32:D+=Kse(m);break;case 92:D+=Zse(Lb()-1,7);continue;case 47:switch(Qi()){case 42:case 47:Zy(rle(Qse(Xa(),Lb()),e,r),l);break;default:D+="/"}break;case 123*g:s[c++]=Wi(D)*b;case 125*g:case 59:case 0:switch(w){case 0:case 125:_=0;case 59+d:b==-1&&(D=tr(D,/\f/g,"")),p>0&&Wi(D)-u&&Zy(p>32?D4(D+";",n,r,u-1):D4(tr(D," ","")+";",n,r,u-2),l);break;case 59:D+=";";default:if(Zy(T=E4(D,e,r,c,d,a,s,S,x=[],E=[],u),o),w===123)if(d===0)Fb(D,e,T,T,x,o,u,s,E);else switch(f===99&&Tn(D,3)===110?100:f){case 100:case 108:case 109:case 115:Fb(t,T,T,n&&Zy(E4(t,T,T,0,0,a,s,S,a,x=[],u),E),a,E,u,s,n?x:E);break;default:Fb(D,T,T,T,[""],E,0,s,E)}}c=d=p=0,g=b=1,S=D="",u=i;break;case 58:u=1+Wi(D),p=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&Jse()==125)continue}switch(D+=Lw(w),w*g){case 38:b=d>0?1:(D+="\f",-1);break;case 44:s[c++]=(Wi(D)-1)*b,b=1;break;case 64:Qi()===45&&(D+=Nb(Xa())),f=Qi(),d=u=Wi(S=D+=ele(Lb())),w++;break;case 45:m===45&&Wi(D)==2&&(g=0)}}return o}function E4(t,e,r,n,a,o,i,s,l,c,d){for(var u=a-1,f=a===0?o:[""],p=lP(f),m=0,g=0,_=0;m0?f[b]+" "+w:tr(w,/&\f/g,f[b])))&&(l[_++]=S);return Fw(t,e,r,a===0?iP:s,l,c,d)}function rle(t,e,r){return Fw(t,e,r,lY,Lw(Xse()),eg(t,2,-2),0)}function D4(t,e,r,n){return Fw(t,e,r,sP,eg(t,0,n),eg(t,n+1,-1),n)}function Oh(t,e){for(var r="",n=lP(t),a=0;a6)switch(Tn(t,e+1)){case 109:if(Tn(t,e+4)!==45)break;case 102:return tr(t,/(.+:)(.+)-([^]+)/,"$1"+er+"$2-$3$1"+v1+(Tn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~_O(t,"stretch")?vY(tr(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Tn(t,e+1)!==115)break;case 6444:switch(Tn(t,Wi(t)-3-(~_O(t,"!important")&&10))){case 107:return tr(t,":",":"+er)+t;case 101:return tr(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+er+(Tn(t,14)===45?"inline-":"")+"box$3$1"+er+"$2$3$1"+Fn+"$2box$3")+t}break;case 5936:switch(Tn(t,e+11)){case 114:return er+t+Fn+tr(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return er+t+Fn+tr(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return er+t+Fn+tr(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return er+t+Fn+t+t}return t}var dle=function(e,r,n,a){if(e.length>-1&&!e.return)switch(e.type){case sP:e.return=vY(e.value,e.length);break;case cY:return Oh([gv(e,{value:tr(e.value,"@","@"+er)})],a);case iP:if(e.length)return qse(e.props,function(o){switch(Gse(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Oh([gv(e,{props:[tr(o,/:(read-\w+)/,":"+v1+"$1")]})],a);case"::placeholder":return Oh([gv(e,{props:[tr(o,/:(plac\w+)/,":"+er+"input-$1")]}),gv(e,{props:[tr(o,/:(plac\w+)/,":"+v1+"$1")]}),gv(e,{props:[tr(o,/:(plac\w+)/,Fn+"input-$1")]})],a)}return""})}},fle=[dle],mY=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var _=g.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var a=e.stylisPlugins||fle,o={},i,s=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var _=g.getAttribute("data-emotion").split(" "),b=1;b<_.length;b++)o[_[b]]=!0;s.push(g)});var l,c=[cle,ule];{var d,u=[nle,ole(function(g){d.insert(g)})],f=ale(c.concat(a,u)),p=function(_){return Oh(tle(_),f)};l=function(_,b,w,S){d=w,p(_?_+"{"+b.styles+"}":b.styles),S&&(m.inserted[b.name]=!0)}}var m={key:r,sheet:new sY({key:r,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return m.sheet.hydrate(s),m},mT={exports:{}},ar={};/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var O4;function hle(){if(O4)return ar;O4=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,_=t?Symbol.for("react.fundamental"):60117,b=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function S(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case e:switch(E=E.type,E){case l:case c:case n:case o:case a:case u:return E;default:switch(E=E&&E.$$typeof,E){case s:case d:case m:case p:case i:return E;default:return T}}case r:return T}}}function x(E){return S(E)===c}return ar.AsyncMode=l,ar.ConcurrentMode=c,ar.ContextConsumer=s,ar.ContextProvider=i,ar.Element=e,ar.ForwardRef=d,ar.Fragment=n,ar.Lazy=m,ar.Memo=p,ar.Portal=r,ar.Profiler=o,ar.StrictMode=a,ar.Suspense=u,ar.isAsyncMode=function(E){return x(E)||S(E)===l},ar.isConcurrentMode=x,ar.isContextConsumer=function(E){return S(E)===s},ar.isContextProvider=function(E){return S(E)===i},ar.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},ar.isForwardRef=function(E){return S(E)===d},ar.isFragment=function(E){return S(E)===n},ar.isLazy=function(E){return S(E)===m},ar.isMemo=function(E){return S(E)===p},ar.isPortal=function(E){return S(E)===r},ar.isProfiler=function(E){return S(E)===o},ar.isStrictMode=function(E){return S(E)===a},ar.isSuspense=function(E){return S(E)===u},ar.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===c||E===o||E===a||E===u||E===f||typeof E=="object"&&E!==null&&(E.$$typeof===m||E.$$typeof===p||E.$$typeof===i||E.$$typeof===s||E.$$typeof===d||E.$$typeof===_||E.$$typeof===b||E.$$typeof===w||E.$$typeof===g)},ar.typeOf=S,ar}var $4;function ple(){return $4||($4=1,mT.exports=hle()),mT.exports}var gT,A4;function vle(){if(A4)return gT;A4=1;var t=ple(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[t.ForwardRef]=n,o[t.Memo]=a;function i(m){return t.isMemo(m)?a:o[m.$$typeof]||e}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,f=Object.prototype;function p(m,g,_){if(typeof g!="string"){if(f){var b=u(g);b&&b!==f&&p(m,b,_)}var w=l(g);c&&(w=w.concat(c(g)));for(var S=i(m),x=i(g),E=0;E=4;++n,a-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(a){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var _le={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},yle=/[A-Z]|^ms/g,ble=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_Y=function(e){return e.charCodeAt(1)===45},P4=function(e){return e!=null&&typeof e!="boolean"},_T=pY(function(t){return _Y(t)?t:t.replace(yle,"-$&").toLowerCase()}),I4=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(ble,function(n,a,o){return Hi={name:a,styles:o,next:Hi},a})}return _le[e]!==1&&!_Y(e)&&typeof r=="number"&&r!==0?r+"px":r};function rg(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Hi={name:a.name,styles:a.styles,next:Hi},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Hi={name:i.name,styles:i.styles,next:Hi},i=i.next;var s=o.styles+";";return s}return wle(t,e,r)}case"function":{if(t!==void 0){var l=Hi,c=r(t);return Hi=l,rg(t,e,c)}break}}var d=r;if(e==null)return d;var u=e[d];return u!==void 0?u:d}function wle(t,e,r){var n="";if(Array.isArray(r))for(var a=0;a96?Ple:Ile},F4=function(e,r,n){var a;if(r){var o=r.shouldForwardProp;a=e.__emotion_forwardProp&&o?function(i){return e.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=e.__emotion_forwardProp),a},Rle=function(e){var r=e.cache,n=e.serialized,a=e.isStringTag;return cP(r,n,a),bY(function(){return uP(r,n,a)}),null},Lle=function t(e,r){var n=e.__emotion_real===e,a=n&&e.__emotion_base||e,o,i;r!==void 0&&(o=r.label,i=r.target);var s=F4(e,r,n),l=s||N4(a),c=!l("as");return function(){var d=arguments,u=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&u.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)u.push.apply(u,d);else{var f=d[0];u.push(f[0]);for(var p=d.length,m=1;m{const r=mY(t);return r.sheet=new e({key:r.key,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy,prepend:r.sheet.prepend,insertionPoint:r.sheet.insertionPoint}),r};let SO;if(typeof document=="object"){let t=document.querySelector('[name="emotion-insertion-point"]');if(!t){t=document.createElement("meta"),t.setAttribute("name","emotion-insertion-point"),t.setAttribute("content","");const r=document.querySelector("head");r&&r.prepend(t)}class e extends sY{insert(n,a){return this.key&&this.key.endsWith("global")&&(this.before=t),super.insert(n,a)}}SO=Wle({key:"css",insertionPoint:t},e)}function W4(t){const{injectFirst:e,children:r}=t;return e&&SO?H.jsx(Cle,{value:SO,children:r}):r}function Hle(t){return t==null||Object.keys(t).length===0}function SY(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?a=>e(Hle(a)?r:a):e;return H.jsx(Ole,{styles:n})}/** + * @mui/styled-engine v6.3.1 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function xY(t,e){return wO(t,e)}function Ule(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const H4=[];function U4(t){return H4[0]=t,qg(H4)}function qi(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function CY(t){if(R.isValidElement(t)||!qi(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=CY(t[r])}),e}function qn(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return qi(t)&&qi(e)&&Object.keys(e).forEach(a=>{R.isValidElement(e[a])?n[a]=e[a]:qi(e[a])&&Object.prototype.hasOwnProperty.call(t,a)&&qi(t[a])?n[a]=qn(t[a],e[a],r):r.clone?n[a]=qi(e[a])?CY(e[a]):e[a]:n[a]=e[a]}),n}const Vle=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function Yle(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...a}=t,o=Vle(e),i=Object.keys(o);function s(f){return`@media (min-width:${typeof e[f]=="number"?e[f]:f}${r})`}function l(f){return`@media (max-width:${(typeof e[f]=="number"?e[f]:f)-n/100}${r})`}function c(f,p){const m=i.indexOf(p);return`@media (min-width:${typeof e[f]=="number"?e[f]:f}${r}) and (max-width:${(m!==-1&&typeof e[i[m]]=="number"?e[i[m]]:p)-n/100}${r})`}function d(f){return i.indexOf(f)+1n.startsWith("@container")).sort((n,a)=>{var i,s;const o=/min-width:\s*([0-9.]+)/;return+(((i=n.match(o))==null?void 0:i[1])||0)-+(((s=a.match(o))==null?void 0:s[1])||0)});return r.length?r.reduce((n,a)=>{const o=e[a];return delete n[a],n[a]=o,n},{...e}):e}function qle(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function Xle(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,a]=r,o=Number.isNaN(+n)?n||0:+n;return t.containerQueries(a).up(o)}function Jle(t){const e=(o,i)=>o.replace("@media",i?`@container ${i}`:"@container");function r(o,i){o.up=(...s)=>e(t.breakpoints.up(...s),i),o.down=(...s)=>e(t.breakpoints.down(...s),i),o.between=(...s)=>e(t.breakpoints.between(...s),i),o.only=(...s)=>e(t.breakpoints.only(...s),i),o.not=(...s)=>{const l=e(t.breakpoints.not(...s),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},a=o=>(r(n,o),n);return r(a),{...t,containerQueries:a}}const Kle={borderRadius:4};function Pm(t,e){return e?qn(t,e,{clone:!1}):t}const zw={xs:0,sm:600,md:900,lg:1200,xl:1536},V4={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${zw[t]}px)`},Zle={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:zw[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function cl(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const o=n.breakpoints||V4;return e.reduce((i,s,l)=>(i[o.up(o.keys[l])]=r(e[l]),i),{})}if(typeof e=="object"){const o=n.breakpoints||V4;return Object.keys(e).reduce((i,s)=>{if(qle(o.keys,s)){const l=Xle(n.containerQueries?n:Zle,s);l&&(i[l]=r(e[s],s))}else if(Object.keys(o.values||zw).includes(s)){const l=o.up(s);i[l]=r(e[s],s)}else{const l=s;i[l]=e[l]}return i},{})}return r(e)}function Qle(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((n,a)=>{const o=t.up(a);return n[o]={},n},{}))||{}}function ece(t,e){return t.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},e)}function Oe(t){if(typeof t!="string")throw new Error(ll(7));return t.charAt(0).toUpperCase()+t.slice(1)}function Bw(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,t);if(n!=null)return n}return e.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,t)}function m1(t,e,r,n=r){let a;return typeof t=="function"?a=t(r):Array.isArray(t)?a=t[r]||n:a=Bw(t,r)||n,e&&(a=e(a,n,t)),a}function en(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:a}=t,o=i=>{if(i[e]==null)return null;const s=i[e],l=i.theme,c=Bw(l,n)||{};return cl(i,s,u=>{let f=m1(c,a,u);return u===f&&typeof u=="string"&&(f=m1(c,a,`${e}${u==="default"?"":Oe(u)}`,u)),r===!1?f:{[r]:f}})};return o.propTypes={},o.filterProps=[e],o}function tce(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const rce={m:"margin",p:"padding"},nce={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Y4={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ace=tce(t=>{if(t.length>2)if(Y4[t])t=Y4[t];else return[t];const[e,r]=t.split(""),n=rce[e],a=nce[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),hP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...hP,...pP];function Jg(t,e,r,n){const a=Bw(t,e,!0)??r;return typeof a=="number"||typeof a=="string"?o=>typeof o=="string"?o:typeof a=="string"?`calc(${o} * ${a})`:a*o:Array.isArray(a)?o=>{if(typeof o=="string")return o;const i=Math.abs(o),s=a[i];return o>=0?s:typeof s=="number"?-s:`-${s}`}:typeof a=="function"?a:()=>{}}function vP(t){return Jg(t,"spacing",8)}function Kg(t,e){return typeof e=="string"||e==null?e:t(e)}function oce(t,e){return r=>t.reduce((n,a)=>(n[a]=Kg(e,r),n),{})}function ice(t,e,r,n){if(!e.includes(r))return null;const a=ace(r),o=oce(a,n),i=t[r];return cl(t,i,o)}function TY(t,e){const r=vP(t.theme);return Object.keys(t).map(n=>ice(t,e,n,r)).reduce(Pm,{})}function Wr(t){return TY(t,hP)}Wr.propTypes={};Wr.filterProps=hP;function Hr(t){return TY(t,pP)}Hr.propTypes={};Hr.filterProps=pP;function kY(t=8,e=vP({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(o=>{const i=e(o);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function jw(...t){const e=t.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>e[o]?Pm(a,e[o](n)):a,{});return r.propTypes={},r.filterProps=t.reduce((n,a)=>n.concat(a.filterProps),[]),r}function wo(t){return typeof t!="number"?t:`${t}px solid`}function Lo(t,e){return en({prop:t,themeKey:"borders",transform:e})}const sce=Lo("border",wo),lce=Lo("borderTop",wo),cce=Lo("borderRight",wo),uce=Lo("borderBottom",wo),dce=Lo("borderLeft",wo),fce=Lo("borderColor"),hce=Lo("borderTopColor"),pce=Lo("borderRightColor"),vce=Lo("borderBottomColor"),mce=Lo("borderLeftColor"),gce=Lo("outline",wo),_ce=Lo("outlineColor"),Ww=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=Jg(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:Kg(e,n)});return cl(t,t.borderRadius,r)}return null};Ww.propTypes={};Ww.filterProps=["borderRadius"];jw(sce,lce,cce,uce,dce,fce,hce,pce,vce,mce,Ww,gce,_ce);const Hw=t=>{if(t.gap!==void 0&&t.gap!==null){const e=Jg(t.theme,"spacing",8),r=n=>({gap:Kg(e,n)});return cl(t,t.gap,r)}return null};Hw.propTypes={};Hw.filterProps=["gap"];const Uw=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=Jg(t.theme,"spacing",8),r=n=>({columnGap:Kg(e,n)});return cl(t,t.columnGap,r)}return null};Uw.propTypes={};Uw.filterProps=["columnGap"];const Vw=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=Jg(t.theme,"spacing",8),r=n=>({rowGap:Kg(e,n)});return cl(t,t.rowGap,r)}return null};Vw.propTypes={};Vw.filterProps=["rowGap"];const yce=en({prop:"gridColumn"}),bce=en({prop:"gridRow"}),wce=en({prop:"gridAutoFlow"}),Sce=en({prop:"gridAutoColumns"}),xce=en({prop:"gridAutoRows"}),Cce=en({prop:"gridTemplateColumns"}),Tce=en({prop:"gridTemplateRows"}),kce=en({prop:"gridTemplateAreas"}),Ece=en({prop:"gridArea"});jw(Hw,Uw,Vw,yce,bce,wce,Sce,xce,Cce,Tce,kce,Ece);function $h(t,e){return e==="grey"?e:t}const Dce=en({prop:"color",themeKey:"palette",transform:$h}),Mce=en({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$h}),Oce=en({prop:"backgroundColor",themeKey:"palette",transform:$h});jw(Dce,Mce,Oce);function Va(t){return t<=1&&t!==0?`${t*100}%`:t}const $ce=en({prop:"width",transform:Va}),mP=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{var a,o,i,s,l;const n=((i=(o=(a=t.theme)==null?void 0:a.breakpoints)==null?void 0:o.values)==null?void 0:i[r])||zw[r];return n?((l=(s=t.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Va(r)}};return cl(t,t.maxWidth,e)}return null};mP.filterProps=["maxWidth"];const Ace=en({prop:"minWidth",transform:Va}),Pce=en({prop:"height",transform:Va}),Ice=en({prop:"maxHeight",transform:Va}),Rce=en({prop:"minHeight",transform:Va});en({prop:"size",cssProperty:"width",transform:Va});en({prop:"size",cssProperty:"height",transform:Va});const Lce=en({prop:"boxSizing"});jw($ce,mP,Ace,Pce,Ice,Rce,Lce);const Zg={border:{themeKey:"borders",transform:wo},borderTop:{themeKey:"borders",transform:wo},borderRight:{themeKey:"borders",transform:wo},borderBottom:{themeKey:"borders",transform:wo},borderLeft:{themeKey:"borders",transform:wo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ww},color:{themeKey:"palette",transform:$h},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$h},backgroundColor:{themeKey:"palette",transform:$h},p:{style:Hr},pt:{style:Hr},pr:{style:Hr},pb:{style:Hr},pl:{style:Hr},px:{style:Hr},py:{style:Hr},padding:{style:Hr},paddingTop:{style:Hr},paddingRight:{style:Hr},paddingBottom:{style:Hr},paddingLeft:{style:Hr},paddingX:{style:Hr},paddingY:{style:Hr},paddingInline:{style:Hr},paddingInlineStart:{style:Hr},paddingInlineEnd:{style:Hr},paddingBlock:{style:Hr},paddingBlockStart:{style:Hr},paddingBlockEnd:{style:Hr},m:{style:Wr},mt:{style:Wr},mr:{style:Wr},mb:{style:Wr},ml:{style:Wr},mx:{style:Wr},my:{style:Wr},margin:{style:Wr},marginTop:{style:Wr},marginRight:{style:Wr},marginBottom:{style:Wr},marginLeft:{style:Wr},marginX:{style:Wr},marginY:{style:Wr},marginInline:{style:Wr},marginInlineStart:{style:Wr},marginInlineEnd:{style:Wr},marginBlock:{style:Wr},marginBlockStart:{style:Wr},marginBlockEnd:{style:Wr},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Hw},rowGap:{style:Vw},columnGap:{style:Uw},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Va},maxWidth:{style:mP},minWidth:{transform:Va},height:{transform:Va},maxHeight:{transform:Va},minHeight:{transform:Va},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 Nce(...t){const e=t.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function Fce(t,e){return typeof t=="function"?t(e):t}function zce(){function t(r,n,a,o){const i={[r]:n,theme:a},s=o[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:d,style:u}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const f=Bw(a,c)||{};return u?u(i):cl(i,n,m=>{let g=m1(f,d,m);return m===g&&typeof m=="string"&&(g=m1(f,d,`${r}${m==="default"?"":Oe(m)}`,m)),l===!1?g:{[l]:g}})}function e(r){const{sx:n,theme:a={}}=r||{};if(!n)return null;const o=a.unstable_sxConfig??Zg;function i(s){let l=s;if(typeof s=="function")l=s(a);else if(typeof s!="object")return s;if(!l)return null;const c=Qle(a.breakpoints),d=Object.keys(c);let u=c;return Object.keys(l).forEach(f=>{const p=Fce(l[f],a);if(p!=null)if(typeof p=="object")if(o[f])u=Pm(u,t(f,p,a,o));else{const m=cl({theme:a},p,g=>({[f]:g}));Nce(m,p)?u[f]=e({sx:p,theme:a}):u=Pm(u,m)}else u=Pm(u,t(f,p,a,o))}),Gle(a,ece(d,u))}return Array.isArray(n)?n.map(i):i(n)}return e}const $c=zce();$c.filterProps=["sx"];function Bce(t,e){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[t])||typeof r.getColorSchemeSelector!="function")return{};let a=r.getColorSchemeSelector(t);return a==="&"?e:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:e})}return r.palette.mode===t?e:{}}function gP(t={},...e){const{breakpoints:r={},palette:n={},spacing:a,shape:o={},...i}=t,s=Yle(r),l=kY(a);let c=qn({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...Kle,...o}},i);return c=Jle(c),c.applyStyles=Bce,c=e.reduce((d,u)=>qn(d,u),c),c.unstable_sxConfig={...Zg,...i==null?void 0:i.unstable_sxConfig},c.unstable_sx=function(u){return $c({sx:u,theme:this})},c}function jce(t){return Object.keys(t).length===0}function _P(t=null){const e=R.useContext(Xg);return!e||jce(e)?t:e}const Wce=gP();function yP(t=Wce){return _P(t)}function Hce({styles:t,themeId:e,defaultTheme:r={}}){const n=yP(r),a=typeof t=="function"?t(e&&n[e]||n):t;return H.jsx(SY,{styles:a})}const Uce=t=>{var n;const e={systemProps:{},otherProps:{}},r=((n=t==null?void 0:t.theme)==null?void 0:n.unstable_sxConfig)??Zg;return Object.keys(t).forEach(a=>{r[a]?e.systemProps[a]=t[a]:e.otherProps[a]=t[a]}),e};function EY(t){const{sx:e,...r}=t,{systemProps:n,otherProps:a}=Uce(r);let o;return Array.isArray(e)?o=[n,...e]:typeof e=="function"?o=(...i)=>{const s=e(...i);return qi(s)?{...n,...s}:n}:o={...n,...e},{...a,sx:o}}const G4=t=>t,Vce=()=>{let t=G4;return{configure(e){t=e},generate(e){return t(e)},reset(){t=G4}}},DY=Vce();function MY(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;es!=="theme"&&s!=="sx"&&s!=="as"})($c);return R.forwardRef(function(l,c){const d=yP(r),{className:u,component:f="div",...p}=EY(l);return H.jsx(o,{as:f,ref:c,className:Be(u,a?a(n):n),theme:e&&d[e]||d,...p})})}const Gce={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 mt(t,e,r="Mui"){const n=Gce[e];return n?`${r}-${n}`:`${DY.generate(t)}-${e}`}function ft(t,e,r="Mui"){const n={};return e.forEach(a=>{n[a]=mt(t,a,r)}),n}function OY(t){const{variants:e,...r}=t,n={variants:e,style:U4(r),isProcessed:!0};return n.style===r||e&&e.forEach(a=>{typeof a.style!="function"&&(a.style=U4(a.style))}),n}const qce=gP();function ST(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function Xce(t){return t?(e,r)=>r[t]:null}function Jce(t,e,r){t.theme=Qce(t.theme)?r:t.theme[e]||t.theme}function zb(t,e){const r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(n=>zb(t,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:a,...o}=r;n=o}return $Y(t,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function $Y(t,e,r=[]){var a;let n;e:for(let o=0;o{Ule(s,E=>E.filter(T=>T!==$c));const{name:c,slot:d,skipVariantsResolver:u,skipSx:f,overridesResolver:p=Xce(tue(d)),...m}=l,g=u!==void 0?u:d&&d!=="Root"&&d!=="root"||!1,_=f||!1;let b=ST;d==="Root"||d==="root"?b=n:d?b=a:eue(s)&&(b=void 0);const w=xY(s,{shouldForwardProp:b,label:Zce(),...m}),S=E=>{if(typeof E=="function"&&E.__emotion_real!==E)return function(D){return zb(D,E)};if(qi(E)){const T=OY(E);return T.variants?function(A){return zb(A,T)}:T.style}return E},x=(...E)=>{const T=[],D=E.map(S),A=[];if(T.push(o),c&&p&&A.push(function(F){var V,Q;const B=(Q=(V=F.theme.components)==null?void 0:V[c])==null?void 0:Q.styleOverrides;if(!B)return null;const j={};for(const G in B)j[G]=zb(F,B[G]);return p(F,j)}),c&&!g&&A.push(function(F){var j,V;const N=F.theme,B=(V=(j=N==null?void 0:N.components)==null?void 0:j[c])==null?void 0:V.variants;return B?$Y(F,B):null}),_||A.push($c),Array.isArray(D[0])){const I=D.shift(),F=new Array(T.length).fill(""),N=new Array(A.length).fill("");let B;B=[...F,...I,...N],B.raw=[...F,...I.raw,...N],T.unshift(B)}const P=[...T,...D,...A],O=w(...P);return s.muiName&&(O.muiName=s.muiName),O};return w.withConfig&&(x.withConfig=w.withConfig),x}}function Zce(t,e){return void 0}function Qce(t){for(const e in t)return!1;return!0}function eue(t){return typeof t=="string"&&t.charCodeAt(0)>96}function tue(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function ng(t,e){const r={...e};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const a=n;if(a==="components"||a==="slots")r[a]={...t[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const o=t[a],i=e[a];if(!i)r[a]=o||{};else if(!o)r[a]=i;else{r[a]={...i};for(const s in o)if(Object.prototype.hasOwnProperty.call(o,s)){const l=s;r[a][l]=ng(o[l],i[l])}}}else r[a]===void 0&&(r[a]=t[a])}return r}function rue(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:ng(e.components[r].defaultProps,n)}const Oo=typeof window<"u"?R.useLayoutEffect:R.useEffect;function nue(t,e,r,n,a){const[o,i]=R.useState(()=>a&&r?r(t).matches:n?n(t).matches:e);return Oo(()=>{if(!r)return;const s=r(t),l=()=>{i(s.matches)};return l(),s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[t,r]),o}const aue={...h1},AY=aue.useSyncExternalStore;function oue(t,e,r,n,a){const o=R.useCallback(()=>e,[e]),i=R.useMemo(()=>{if(a&&r)return()=>r(t).matches;if(n!==null){const{matches:d}=n(t);return()=>d}return o},[o,t,n,a,r]),[s,l]=R.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const d=r(t);return[()=>d.matches,u=>(d.addEventListener("change",u),()=>{d.removeEventListener("change",u)})]},[o,r,t]);return AY(l,s,i)}function iue(t={}){const{themeId:e}=t;return function(n,a={}){let o=_P();o&&e&&(o=o[e]||o);const i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=i?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:d=!1}=rue({name:"MuiUseMediaQuery",props:a,theme:o});let u=typeof n=="function"?n(o):n;return u=u.replace(/^@media( ?)/m,""),(AY!==void 0?oue:nue)(u,s,l,c,d)}}function sue(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function bP(t,e=0,r=1){return sue(t,e,r)}function lue(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ac(t){if(t.type)return t;if(t.charAt(0)==="#")return Ac(lue(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(ll(9,t));let n=t.substring(e+1,t.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(ll(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const cue=t=>{const e=Ac(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},vm=(t,e)=>{try{return cue(t)}catch{return t}};function Yw(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((a,o)=>o<3?parseInt(a,10):a):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function PY(t){t=Ac(t);const{values:e}=t,r=e[0],n=e[1]/100,a=e[2]/100,o=n*Math.min(a,1-a),i=(c,d=(c+r/30)%12)=>a-o*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return t.type==="hsla"&&(s+="a",l.push(e[3])),Yw({type:s,values:l})}function xO(t){t=Ac(t);let e=t.type==="hsl"||t.type==="hsla"?Ac(PY(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function uue(t,e){const r=xO(t),n=xO(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Vr(t,e){return t=Ac(t),e=bP(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Yw(t)}function Qy(t,e,r){try{return Vr(t,e)}catch{return t}}function Gw(t,e){if(t=Ac(t),e=bP(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return Yw(t)}function vr(t,e,r){try{return Gw(t,e)}catch{return t}}function qw(t,e){if(t=Ac(t),e=bP(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return Yw(t)}function mr(t,e,r){try{return qw(t,e)}catch{return t}}function CO(t,e=.15){return xO(t)>.5?Gw(t,e):qw(t,e)}function e0(t,e,r){try{return CO(t,e)}catch{return t}}function TO(...t){return t.reduce((e,r)=>r==null?e:function(...a){e.apply(this,a),r.apply(this,a)},()=>{})}function Xw(t,e=166){let r;function n(...a){const o=()=>{t.apply(this,a)};clearTimeout(r),r=setTimeout(o,e)}return n.clear=()=>{clearTimeout(r)},n}function xT(t,e){var r,n,a;return R.isValidElement(t)&&e.indexOf(t.type.muiName??((a=(n=(r=t.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:a.muiName))!==-1}function Pa(t){return t&&t.ownerDocument||document}function gi(t){return Pa(t).defaultView||window}function kO(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let q4=0;function due(t){const[e,r]=R.useState(t),n=t||e;return R.useEffect(()=>{e==null&&(q4+=1,r(`mui-${q4}`))},[e]),n}const fue={...h1},X4=fue.useId;function Jw(t){if(X4!==void 0){const e=X4();return t??e}return due(t)}function g1({controlled:t,default:e,name:r,state:n="value"}){const{current:a}=R.useRef(t!==void 0),[o,i]=R.useState(e),s=a?t:o,l=R.useCallback(c=>{a||i(c)},[]);return[s,l]}function pi(t){const e=R.useRef(t);return Oo(()=>{e.current=t}),R.useRef((...r)=>(0,e.current)(...r)).current}function an(...t){return R.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{kO(r,e)})},t)}const J4={};function IY(t,e){const r=R.useRef(J4);return r.current===J4&&(r.current=t(e)),r}const hue=[];function pue(t){R.useEffect(t,hue)}class Kw{constructor(){ae(this,"currentId",null);ae(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});ae(this,"disposeEffect",()=>this.clear)}static create(){return new Kw}start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}}function yh(){const t=IY(Kw.create).current;return pue(t.disposeEffect),t}function _1(t){try{return t.matches(":focus-visible")}catch{}return!1}function RY(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}function wt(t,e,r=void 0){const n={};for(const a in t){const o=t[a];let i="",s=!0;for(let l=0;ln.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function K4(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function FY(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=t;if(!e){const p=Be(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),m={...r==null?void 0:r.style,...a==null?void 0:a.style,...n==null?void 0:n.style},g={...r,...a,...n};return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const i=NY({...a,...n}),s=K4(n),l=K4(a),c=e(i),d=Be(c==null?void 0:c.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),u={...c==null?void 0:c.style,...r==null?void 0:r.style,...a==null?void 0:a.style,...n==null?void 0:n.style},f={...c,...r,...l,...s};return d.length>0&&(f.className=d),Object.keys(u).length>0&&(f.style=u),{props:f,internalRef:c.ref}}function zY(t,e,r){return typeof t=="function"?t(e,r):t}function Pc(t){var u;const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:a=!1,...o}=t,i=a?{}:zY(r,n),{props:s,internalRef:l}=FY({...o,externalSlotProps:i}),c=an(l,i==null?void 0:i.ref,(u=t.additionalProps)==null?void 0:u.ref);return LY(e,{...s,ref:c},n)}function pp(t){var e;return parseInt(R.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}const BY=R.createContext(null);function wP(){return R.useContext(BY)}const mue=typeof Symbol=="function"&&Symbol.for,gue=mue?Symbol.for("mui.nested"):"__THEME_NESTED__";function _ue(t,e){return typeof e=="function"?e(t):{...t,...e}}function yue(t){const{children:e,theme:r}=t,n=wP(),a=R.useMemo(()=>{const o=n===null?{...r}:_ue(n,r);return o!=null&&(o[gue]=n!==null),o},[r,n]);return H.jsx(BY.Provider,{value:a,children:e})}const jY=R.createContext();function bue({value:t,...e}){return H.jsx(jY.Provider,{value:t??!0,...e})}const vp=()=>R.useContext(jY)??!1,WY=R.createContext(void 0);function wue({value:t,children:e}){return H.jsx(WY.Provider,{value:t,children:e})}function Sue(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const a=e.components[r];return a.defaultProps?ng(a.defaultProps,n):!a.styleOverrides&&!a.variants?ng(a,n):n}function xue({props:t,name:e}){const r=R.useContext(WY);return Sue({props:t,name:e,theme:{components:r}})}const Z4={};function Q4(t,e,r,n=!1){return R.useMemo(()=>{const a=t&&e[t]||e;if(typeof r=="function"){const o=r(a),i=t?{...e,[t]:o}:o;return n?()=>i:i}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function HY(t){const{children:e,theme:r,themeId:n}=t,a=_P(Z4),o=wP()||Z4,i=Q4(n,a,r),s=Q4(n,o,r,!0),l=(n?i[n]:i).direction==="rtl";return H.jsx(yue,{theme:s,children:H.jsx(Xg.Provider,{value:i,children:H.jsx(bue,{value:l,children:H.jsx(wue,{value:n?i[n].components:i.components,children:e})})})})}const eF={theme:void 0};function Cue(t){let e,r;return function(a){let o=e;return(o===void 0||a.theme!==r)&&(eF.theme=a.theme,o=OY(t(eF)),e=o,r=a.theme),o}}const SP="mode",xP="color-scheme",Tue="data-color-scheme";function kue(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:a=SP,colorSchemeStorageKey:o=xP,attribute:i=Tue,colorSchemeNode:s="document.documentElement",nonce:l}=t;let c="",d=i;if(i==="class"&&(d=".%s"),i==="data"&&(d="[data-%s]"),d.startsWith(".")){const f=d.substring(1);c+=`${s}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark)); + ${s}.classList.add('${f}'.replace('%s', colorScheme));`}const u=d.match(/\[([^\]]+)\]/);if(u){const[f,p]=u[1].split("=");p||(c+=`${s}.removeAttribute('${f}'.replace('%s', light)); + ${s}.removeAttribute('${f}'.replace('%s', dark));`),c+=` + ${s}.setAttribute('${f}'.replace('%s', colorScheme), ${p?`${p}.replace('%s', colorScheme)`:'""'});`}else c+=`${s}.setAttribute('${d}', colorScheme);`;return H.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { +try { + let colorScheme = ''; + const mode = localStorage.getItem('${a}') || '${e}'; + const dark = localStorage.getItem('${o}-dark') || '${n}'; + const light = localStorage.getItem('${o}-light') || '${r}'; + if (mode === 'system') { + // handle system mode + const mql = window.matchMedia('(prefers-color-scheme: dark)'); + if (mql.matches) { + colorScheme = dark + } else { + colorScheme = light + } + } + if (mode === 'light') { + colorScheme = light; + } + if (mode === 'dark') { + colorScheme = dark; + } + if (colorScheme) { + ${c} + } +} catch(e){}})();`}},"mui-color-scheme-init")}function tF(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function UY(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function Eue(t){return UY(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function CT(t,e){if(typeof window>"u")return;let r;try{r=localStorage.getItem(t)||void 0,r||localStorage.setItem(t,e)}catch{}return r||e}function Due(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:a=[],modeStorageKey:o=SP,colorSchemeStorageKey:i=xP,storageWindow:s=typeof window>"u"?void 0:window,noSsr:l=!1}=t,c=a.join(","),d=a.length>1,[u,f]=R.useState(()=>{const x=CT(o,e),E=CT(`${i}-light`,r),T=CT(`${i}-dark`,n);return{mode:x,systemMode:tF(x),lightColorScheme:E,darkColorScheme:T}}),[p,m]=R.useState(l||!d);R.useEffect(()=>{m(!0)},[]);const g=Eue(u),_=R.useCallback(x=>{f(E=>{if(x===E.mode)return E;const T=x??e;try{localStorage.setItem(o,T)}catch{}return{...E,mode:T,systemMode:tF(T)}})},[o,e]),b=R.useCallback(x=>{x?typeof x=="string"?x&&!c.includes(x)?console.error(`\`${x}\` does not exist in \`theme.colorSchemes\`.`):f(E=>{const T={...E};return UY(E,D=>{try{localStorage.setItem(`${i}-${D}`,x)}catch{}D==="light"&&(T.lightColorScheme=x),D==="dark"&&(T.darkColorScheme=x)}),T}):f(E=>{const T={...E},D=x.light===null?r:x.light,A=x.dark===null?n:x.dark;if(D)if(!c.includes(D))console.error(`\`${D}\` does not exist in \`theme.colorSchemes\`.`);else{T.lightColorScheme=D;try{localStorage.setItem(`${i}-light`,D)}catch{}}if(A)if(!c.includes(A))console.error(`\`${A}\` does not exist in \`theme.colorSchemes\`.`);else{T.darkColorScheme=A;try{localStorage.setItem(`${i}-dark`,A)}catch{}}return T}):f(E=>{try{localStorage.setItem(`${i}-light`,r),localStorage.setItem(`${i}-dark`,n)}catch{}return{...E,lightColorScheme:r,darkColorScheme:n}})},[c,i,r,n]),w=R.useCallback(x=>{u.mode==="system"&&f(E=>{const T=x!=null&&x.matches?"dark":"light";return E.systemMode===T?E:{...E,systemMode:T}})},[u.mode]),S=R.useRef(w);return S.current=w,R.useEffect(()=>{if(typeof window.matchMedia!="function"||!d)return;const x=(...T)=>S.current(...T),E=window.matchMedia("(prefers-color-scheme: dark)");return E.addListener(x),x(E),()=>{E.removeListener(x)}},[d]),R.useEffect(()=>{if(s&&d){const x=E=>{const T=E.newValue;typeof E.key=="string"&&E.key.startsWith(i)&&(!T||c.match(T))&&(E.key.endsWith("light")&&b({light:T}),E.key.endsWith("dark")&&b({dark:T})),E.key===o&&(!T||["light","dark","system"].includes(T))&&_(T||e)};return s.addEventListener("storage",x),()=>{s.removeEventListener("storage",x)}}},[b,_,o,i,c,e,s,d]),{...u,mode:p?u.mode:void 0,systemMode:p?u.systemMode:void 0,colorScheme:p?g:void 0,setMode:_,setColorScheme:b}}const Mue="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Oue(t){const{themeId:e,theme:r={},modeStorageKey:n=SP,colorSchemeStorageKey:a=xP,disableTransitionOnChange:o=!1,defaultColorScheme:i,resolveTheme:s}=t,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=R.createContext(void 0),d=()=>R.useContext(c)||l,u={},f={};function p(b){var Rt,de,Ne,Mt;const{children:w,theme:S,modeStorageKey:x=n,colorSchemeStorageKey:E=a,disableTransitionOnChange:T=o,storageWindow:D=typeof window>"u"?void 0:window,documentNode:A=typeof document>"u"?void 0:document,colorSchemeNode:P=typeof document>"u"?void 0:document.documentElement,disableNestedContext:O=!1,disableStyleSheetGeneration:I=!1,defaultMode:F="system",noSsr:N}=b,B=R.useRef(!1),j=wP(),V=R.useContext(c),Q=!!V&&!O,G=R.useMemo(()=>S||(typeof r=="function"?r():r),[S]),q=G[e],te=q||G,{colorSchemes:z=u,components:U=f,cssVarPrefix:Z}=te,K=Object.keys(z).filter(Ze=>!!z[Ze]).join(","),se=R.useMemo(()=>K.split(","),[K]),we=typeof i=="string"?i:i.light,Le=typeof i=="string"?i:i.dark,$e=z[we]&&z[Le]?F:((de=(Rt=z[te.defaultColorScheme])==null?void 0:Rt.palette)==null?void 0:de.mode)||((Ne=te.palette)==null?void 0:Ne.mode),{mode:Me,setMode:ke,systemMode:me,lightColorScheme:he,darkColorScheme:rt,colorScheme:Pe,setColorScheme:Ie}=Due({supportedColorSchemes:se,defaultLightColorScheme:we,defaultDarkColorScheme:Le,modeStorageKey:x,colorSchemeStorageKey:E,defaultMode:$e,storageWindow:D,noSsr:N});let xt=Me,Ce=Pe;Q&&(xt=V.mode,Ce=V.colorScheme);const Xe=R.useMemo(()=>{var zt;const Ze=Ce||te.defaultColorScheme,Qe=((zt=te.generateThemeVars)==null?void 0:zt.call(te))||te.vars,Tt={...te,components:U,colorSchemes:z,cssVarPrefix:Z,vars:Qe};if(typeof Tt.generateSpacing=="function"&&(Tt.spacing=Tt.generateSpacing()),Ze){const He=z[Ze];He&&typeof He=="object"&&Object.keys(He).forEach(Yt=>{He[Yt]&&typeof He[Yt]=="object"?Tt[Yt]={...Tt[Yt],...He[Yt]}:Tt[Yt]=He[Yt]})}return s?s(Tt):Tt},[te,Ce,U,z,Z]),_t=te.colorSchemeSelector;R.useEffect(()=>{if(Ce&&P&&_t&&_t!=="media"){const Ze=_t;let Qe=_t;if(Ze==="class"&&(Qe=".%s"),Ze==="data"&&(Qe="[data-%s]"),Ze!=null&&Ze.startsWith("data-")&&!Ze.includes("%s")&&(Qe=`[${Ze}="%s"]`),Qe.startsWith("."))P.classList.remove(...se.map(Tt=>Qe.substring(1).replace("%s",Tt))),P.classList.add(Qe.substring(1).replace("%s",Ce));else{const Tt=Qe.replace("%s",Ce).match(/\[([^\]]+)\]/);if(Tt){const[zt,He]=Tt[1].split("=");He||se.forEach(Yt=>{P.removeAttribute(zt.replace(Ce,Yt))}),P.setAttribute(zt,He?He.replace(/"|'/g,""):"")}else P.setAttribute(Qe,Ce)}}},[Ce,_t,P,se]),R.useEffect(()=>{let Ze;if(T&&B.current&&A){const Qe=A.createElement("style");Qe.appendChild(A.createTextNode(Mue)),A.head.appendChild(Qe),window.getComputedStyle(A.body),Ze=setTimeout(()=>{A.head.removeChild(Qe)},1)}return()=>{clearTimeout(Ze)}},[Ce,T,A]),R.useEffect(()=>(B.current=!0,()=>{B.current=!1}),[]);const ct=R.useMemo(()=>({allColorSchemes:se,colorScheme:Ce,darkColorScheme:rt,lightColorScheme:he,mode:xt,setColorScheme:Ie,setMode:ke,systemMode:me}),[se,Ce,rt,he,xt,Ie,ke,me,Xe.colorSchemeSelector]);let it=!0;(I||te.cssVariables===!1||Q&&(j==null?void 0:j.cssVarPrefix)===Z)&&(it=!1);const Ae=H.jsxs(R.Fragment,{children:[H.jsx(HY,{themeId:q?e:void 0,theme:Xe,children:w}),it&&H.jsx(SY,{styles:((Mt=Xe.generateStyleSheets)==null?void 0:Mt.call(Xe))||[]})]});return Q?Ae:H.jsx(c.Provider,{value:ct,children:Ae})}const m=typeof i=="string"?i:i.light,g=typeof i=="string"?i:i.dark;return{CssVarsProvider:p,useColorScheme:d,getInitColorSchemeScript:b=>kue({colorSchemeStorageKey:a,defaultLightColorScheme:m,defaultDarkColorScheme:g,modeStorageKey:n,...b})}}function $ue(t=""){function e(...n){if(!n.length)return"";const a=n[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${a}${e(...n.slice(1))})`:`, ${a}`}return(n,...a)=>`var(--${t?`${t}-`:""}${n}${e(...a)})`}const rF=(t,e,r,n=[])=>{let a=t;e.forEach((o,i)=>{i===e.length-1?Array.isArray(a)?a[Number(o)]=r:a&&typeof a=="object"&&(a[o]=r):a&&typeof a=="object"&&(a[o]||(a[o]=n.includes(o)?[]:{}),a=a[o])})},Aue=(t,e,r)=>{function n(a,o=[],i=[]){Object.entries(a).forEach(([s,l])=>{(!r||!r([...o,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...o,s],Array.isArray(l)?[...i,s]:i):e([...o,s],l,i))})}n(t)},Pue=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function TT(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},a={},o={},i={};return Aue(t,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const d=`--${r?`${r}-`:""}${s.join("-")}`,u=Pue(s,l);Object.assign(a,{[d]:u}),rF(o,s,`var(${d})`,c),rF(i,s,`var(${d}, ${u})`,c)}},s=>s[0]==="vars"),{css:a,vars:o,varsWithDefaults:i}}function Iue(t,e={}){const{getSelector:r=_,disableCssColorScheme:n,colorSchemeSelector:a}=e,{colorSchemes:o={},components:i,defaultColorScheme:s="light",...l}=t,{vars:c,css:d,varsWithDefaults:u}=TT(l,e);let f=u;const p={},{[s]:m,...g}=o;if(Object.entries(g||{}).forEach(([S,x])=>{const{vars:E,css:T,varsWithDefaults:D}=TT(x,e);f=qn(f,D),p[S]={css:T,vars:E}}),m){const{css:S,vars:x,varsWithDefaults:E}=TT(m,e);f=qn(f,E),p[s]={css:S,vars:x}}function _(S,x){var T,D;let E=a;if(a==="class"&&(E=".%s"),a==="data"&&(E="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(E=`[${a}="%s"]`),S){if(E==="media")return t.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${((D=(T=o[S])==null?void 0:T.palette)==null?void 0:D.mode)||S})`]:{":root":x}};if(E)return t.defaultColorScheme===S?`:root, ${E.replace("%s",String(S))}`:E.replace("%s",String(S))}return":root"}return{vars:f,generateThemeVars:()=>{let S={...c};return Object.entries(p).forEach(([,{vars:x}])=>{S=qn(S,x)}),S},generateStyleSheets:()=>{var A,P;const S=[],x=t.defaultColorScheme||"light";function E(O,I){Object.keys(I).length&&S.push(typeof O=="string"?{[O]:{...I}}:O)}E(r(void 0,{...d}),d);const{[x]:T,...D}=p;if(T){const{css:O}=T,I=(P=(A=o[x])==null?void 0:A.palette)==null?void 0:P.mode,F=!n&&I?{colorScheme:I,...O}:{...O};E(r(x,{...F}),F)}return Object.entries(D).forEach(([O,{css:I}])=>{var B,j;const F=(j=(B=o[O])==null?void 0:B.palette)==null?void 0:j.mode,N=!n&&F?{colorScheme:F,...I}:{...I};E(r(O,{...N}),N)}),S}}}function Rue(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}const ag={black:"#000",white:"#fff"},EO={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"},vf={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"},mf={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"},xn={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"},gf={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"},_f={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"},yf={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 VY(){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:ag.white,default:ag.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Lue=VY();function YY(){return{text:{primary:ag.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:ag.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const nF=YY();function aF(t,e,r,n){const a=n.light||n,o=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=qw(t.main,a):e==="dark"&&(t.dark=Gw(t.main,o)))}function Nue(t="light"){return t==="dark"?{main:gf[200],light:gf[50],dark:gf[400]}:{main:gf[700],light:gf[400],dark:gf[800]}}function Fue(t="light"){return t==="dark"?{main:vf[200],light:vf[50],dark:vf[400]}:{main:vf[500],light:vf[300],dark:vf[700]}}function zue(t="light"){return t==="dark"?{main:mf[500],light:mf[300],dark:mf[700]}:{main:mf[700],light:mf[400],dark:mf[800]}}function Bue(t="light"){return t==="dark"?{main:_f[400],light:_f[300],dark:_f[700]}:{main:_f[700],light:_f[500],dark:_f[900]}}function jue(t="light"){return t==="dark"?{main:yf[400],light:yf[300],dark:yf[700]}:{main:yf[800],light:yf[500],dark:yf[900]}}function Wue(t="light"){return t==="dark"?{main:xn[400],light:xn[300],dark:xn[700]}:{main:"#ed6c02",light:xn[500],dark:xn[900]}}function CP(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,...a}=t,o=t.primary||Nue(e),i=t.secondary||Fue(e),s=t.error||zue(e),l=t.info||Bue(e),c=t.success||jue(e),d=t.warning||Wue(e);function u(g){return uue(g,nF.text.primary)>=r?nF.text.primary:Lue.text.primary}const f=({color:g,name:_,mainShade:b=500,lightShade:w=300,darkShade:S=700})=>{if(g={...g},!g.main&&g[b]&&(g.main=g[b]),!g.hasOwnProperty("main"))throw new Error(ll(11,_?` (${_})`:"",b));if(typeof g.main!="string")throw new Error(ll(12,_?` (${_})`:"",JSON.stringify(g.main)));return aF(g,"light",w,n),aF(g,"dark",S,n),g.contrastText||(g.contrastText=u(g.main)),g};let p;return e==="light"?p=VY():e==="dark"&&(p=YY()),qn({common:{...ag},mode:e,primary:f({color:o,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:EO,contrastThreshold:r,getContrastText:u,augmentColor:f,tonalOffset:n,...p},a)}function Hue(t){const e={};return Object.entries(t).forEach(n=>{const[a,o]=n;typeof o=="object"&&(e[a]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),e}function Uue(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function Vue(t){return Math.round(t*1e5)/1e5}const oF={textTransform:"uppercase"},iF='"Roboto", "Helvetica", "Arial", sans-serif';function GY(t,e){const{fontFamily:r=iF,fontSize:n=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:d,...u}=typeof e=="function"?e(t):e,f=n/14,p=d||(_=>`${_/l*f}rem`),m=(_,b,w,S,x)=>({fontFamily:r,fontWeight:_,fontSize:p(b),lineHeight:w,...r===iF?{letterSpacing:`${Vue(S/b)}em`}:{},...x,...c}),g={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(o,48,1.167,0),h4:m(o,34,1.235,.25),h5:m(o,24,1.334,0),h6:m(i,20,1.6,.15),subtitle1:m(o,16,1.75,.15),subtitle2:m(i,14,1.57,.1),body1:m(o,16,1.5,.15),body2:m(o,14,1.43,.15),button:m(i,14,1.75,.4,oF),caption:m(o,12,1.66,.4),overline:m(o,12,2.66,1,oF),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qn({htmlFontSize:l,pxToRem:p,fontFamily:r,fontSize:n,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:i,fontWeightBold:s,...g},u,{clone:!1})}const Yue=.2,Gue=.14,que=.12;function Ar(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${Yue})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${Gue})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${que})`].join(",")}const Xue=["none",Ar(0,2,1,-1,0,1,1,0,0,1,3,0),Ar(0,3,1,-2,0,2,2,0,0,1,5,0),Ar(0,3,3,-2,0,3,4,0,0,1,8,0),Ar(0,2,4,-1,0,4,5,0,0,1,10,0),Ar(0,3,5,-1,0,5,8,0,0,1,14,0),Ar(0,3,5,-1,0,6,10,0,0,1,18,0),Ar(0,4,5,-2,0,7,10,1,0,2,16,1),Ar(0,5,5,-3,0,8,10,1,0,3,14,2),Ar(0,5,6,-3,0,9,12,1,0,3,16,2),Ar(0,6,6,-3,0,10,14,1,0,4,18,3),Ar(0,6,7,-4,0,11,15,1,0,4,20,3),Ar(0,7,8,-4,0,12,17,2,0,5,22,4),Ar(0,7,8,-4,0,13,19,2,0,5,24,4),Ar(0,7,9,-4,0,14,21,2,0,5,26,4),Ar(0,8,9,-5,0,15,22,2,0,6,28,5),Ar(0,8,10,-5,0,16,24,2,0,6,30,5),Ar(0,8,11,-5,0,17,26,2,0,6,32,5),Ar(0,9,11,-5,0,18,28,2,0,7,34,6),Ar(0,9,12,-6,0,19,29,2,0,7,36,6),Ar(0,10,13,-6,0,20,31,3,0,8,38,7),Ar(0,10,13,-6,0,21,33,3,0,8,40,7),Ar(0,10,14,-6,0,22,35,3,0,8,42,7),Ar(0,11,14,-7,0,23,36,3,0,9,44,8),Ar(0,11,15,-7,0,24,38,3,0,9,46,8)],Jue={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)"},Kue={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function sF(t){return`${Math.round(t)}ms`}function Zue(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function Que(t){const e={...Jue,...t.easing},r={...Kue,...t.duration};return{getAutoHeightDuration:Zue,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:s=e.easeInOut,delay:l=0,...c}=o;return(Array.isArray(a)?a:[a]).map(d=>`${d} ${typeof i=="string"?i:sF(i)} ${s} ${typeof l=="string"?l:sF(l)}`).join(",")},...t,easing:e,duration:r}}const ede={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function tde(t){return qi(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function qY(t={}){const e={...t};function r(n){const a=Object.entries(n);for(let o=0;oqn(p,m),f),f.unstable_sxConfig={...Zg,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(m){return $c({sx:m,theme:this})},f.toRuntimeSource=qY,f}function MO(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const rde=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=MO(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function XY(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function JY(t){return t==="dark"?rde:[]}function nde(t){const{palette:e={mode:"light"},opacity:r,overlays:n,...a}=t,o=CP(e);return{palette:o,opacity:{...XY(o.mode),...r},overlays:n||JY(o.mode),...a}}function ade(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const ode=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],ide=t=>(e,r)=>{const n=t.rootSelector||":root",a=t.colorSchemeSelector;let o=a;if(a==="class"&&(o=".%s"),a==="data"&&(o="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(o=`[${a}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const i={};return ode(t.cssVarPrefix).forEach(s=>{i[s]=r[s],delete r[s]}),o==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:o?{[o.replace("%s",e)]:i,[`${n}, ${o.replace("%s",e)}`]:r}:{[n]:{...r,...i}}}if(o&&o!=="media")return`${n}, ${o.replace("%s",String(e))}`}else if(e){if(o==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(o)return o.replace("%s",String(e))}return n};function sde(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function ie(t,e,r){!t[e]&&r&&(t[e]=r)}function mm(t){return typeof t!="string"||!t.startsWith("hsl")?t:PY(t)}function Ms(t,e){`${e}Channel`in t||(t[`${e}Channel`]=vm(mm(t[e])))}function lde(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Ai=t=>{try{return t()}catch{}},cde=(t="mui")=>$ue(t);function kT(t,e,r,n){if(!e)return;e=e===!0?{}:e;const a=n==="dark"?"dark":"light";if(!r){t[n]=nde({...e,palette:{mode:a,...e==null?void 0:e.palette}});return}const{palette:o,...i}=DO({...r,palette:{mode:a,...e==null?void 0:e.palette}});return t[n]={...e,palette:o,opacity:{...XY(a),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||JY(a)},i}function ude(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:i=ade,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=t,d=Object.keys(r)[0],u=n||(r.light&&d!=="light"?"light":d),f=cde(o),{[u]:p,light:m,dark:g,..._}=r,b={..._};let w=p;if((u==="dark"&&!("dark"in r)||u==="light"&&!("light"in r))&&(w=!0),!w)throw new Error(ll(21,u));const S=kT(b,w,c,u);m&&!b.light&&kT(b,m,void 0,"light"),g&&!b.dark&&kT(b,g,void 0,"dark");let x={defaultColorScheme:u,...S,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:b,font:{...Hue(S.typography),...S.font},spacing:lde(c.spacing)};Object.keys(x.colorSchemes).forEach(P=>{const O=x.colorSchemes[P].palette,I=F=>{const N=F.split("-"),B=N[1],j=N[2];return f(F,O[B][j])};if(O.mode==="light"&&(ie(O.common,"background","#fff"),ie(O.common,"onBackground","#000")),O.mode==="dark"&&(ie(O.common,"background","#000"),ie(O.common,"onBackground","#fff")),sde(O,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),O.mode==="light"){ie(O.Alert,"errorColor",vr(O.error.light,.6)),ie(O.Alert,"infoColor",vr(O.info.light,.6)),ie(O.Alert,"successColor",vr(O.success.light,.6)),ie(O.Alert,"warningColor",vr(O.warning.light,.6)),ie(O.Alert,"errorFilledBg",I("palette-error-main")),ie(O.Alert,"infoFilledBg",I("palette-info-main")),ie(O.Alert,"successFilledBg",I("palette-success-main")),ie(O.Alert,"warningFilledBg",I("palette-warning-main")),ie(O.Alert,"errorFilledColor",Ai(()=>O.getContrastText(O.error.main))),ie(O.Alert,"infoFilledColor",Ai(()=>O.getContrastText(O.info.main))),ie(O.Alert,"successFilledColor",Ai(()=>O.getContrastText(O.success.main))),ie(O.Alert,"warningFilledColor",Ai(()=>O.getContrastText(O.warning.main))),ie(O.Alert,"errorStandardBg",mr(O.error.light,.9)),ie(O.Alert,"infoStandardBg",mr(O.info.light,.9)),ie(O.Alert,"successStandardBg",mr(O.success.light,.9)),ie(O.Alert,"warningStandardBg",mr(O.warning.light,.9)),ie(O.Alert,"errorIconColor",I("palette-error-main")),ie(O.Alert,"infoIconColor",I("palette-info-main")),ie(O.Alert,"successIconColor",I("palette-success-main")),ie(O.Alert,"warningIconColor",I("palette-warning-main")),ie(O.AppBar,"defaultBg",I("palette-grey-100")),ie(O.Avatar,"defaultBg",I("palette-grey-400")),ie(O.Button,"inheritContainedBg",I("palette-grey-300")),ie(O.Button,"inheritContainedHoverBg",I("palette-grey-A100")),ie(O.Chip,"defaultBorder",I("palette-grey-400")),ie(O.Chip,"defaultAvatarColor",I("palette-grey-700")),ie(O.Chip,"defaultIconColor",I("palette-grey-700")),ie(O.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ie(O.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ie(O.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ie(O.LinearProgress,"primaryBg",mr(O.primary.main,.62)),ie(O.LinearProgress,"secondaryBg",mr(O.secondary.main,.62)),ie(O.LinearProgress,"errorBg",mr(O.error.main,.62)),ie(O.LinearProgress,"infoBg",mr(O.info.main,.62)),ie(O.LinearProgress,"successBg",mr(O.success.main,.62)),ie(O.LinearProgress,"warningBg",mr(O.warning.main,.62)),ie(O.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.11)`),ie(O.Slider,"primaryTrack",mr(O.primary.main,.62)),ie(O.Slider,"secondaryTrack",mr(O.secondary.main,.62)),ie(O.Slider,"errorTrack",mr(O.error.main,.62)),ie(O.Slider,"infoTrack",mr(O.info.main,.62)),ie(O.Slider,"successTrack",mr(O.success.main,.62)),ie(O.Slider,"warningTrack",mr(O.warning.main,.62));const F=e0(O.background.default,.8);ie(O.SnackbarContent,"bg",F),ie(O.SnackbarContent,"color",Ai(()=>O.getContrastText(F))),ie(O.SpeedDialAction,"fabHoverBg",e0(O.background.paper,.15)),ie(O.StepConnector,"border",I("palette-grey-400")),ie(O.StepContent,"border",I("palette-grey-400")),ie(O.Switch,"defaultColor",I("palette-common-white")),ie(O.Switch,"defaultDisabledColor",I("palette-grey-100")),ie(O.Switch,"primaryDisabledColor",mr(O.primary.main,.62)),ie(O.Switch,"secondaryDisabledColor",mr(O.secondary.main,.62)),ie(O.Switch,"errorDisabledColor",mr(O.error.main,.62)),ie(O.Switch,"infoDisabledColor",mr(O.info.main,.62)),ie(O.Switch,"successDisabledColor",mr(O.success.main,.62)),ie(O.Switch,"warningDisabledColor",mr(O.warning.main,.62)),ie(O.TableCell,"border",mr(Qy(O.divider,1),.88)),ie(O.Tooltip,"bg",Qy(O.grey[700],.92))}if(O.mode==="dark"){ie(O.Alert,"errorColor",mr(O.error.light,.6)),ie(O.Alert,"infoColor",mr(O.info.light,.6)),ie(O.Alert,"successColor",mr(O.success.light,.6)),ie(O.Alert,"warningColor",mr(O.warning.light,.6)),ie(O.Alert,"errorFilledBg",I("palette-error-dark")),ie(O.Alert,"infoFilledBg",I("palette-info-dark")),ie(O.Alert,"successFilledBg",I("palette-success-dark")),ie(O.Alert,"warningFilledBg",I("palette-warning-dark")),ie(O.Alert,"errorFilledColor",Ai(()=>O.getContrastText(O.error.dark))),ie(O.Alert,"infoFilledColor",Ai(()=>O.getContrastText(O.info.dark))),ie(O.Alert,"successFilledColor",Ai(()=>O.getContrastText(O.success.dark))),ie(O.Alert,"warningFilledColor",Ai(()=>O.getContrastText(O.warning.dark))),ie(O.Alert,"errorStandardBg",vr(O.error.light,.9)),ie(O.Alert,"infoStandardBg",vr(O.info.light,.9)),ie(O.Alert,"successStandardBg",vr(O.success.light,.9)),ie(O.Alert,"warningStandardBg",vr(O.warning.light,.9)),ie(O.Alert,"errorIconColor",I("palette-error-main")),ie(O.Alert,"infoIconColor",I("palette-info-main")),ie(O.Alert,"successIconColor",I("palette-success-main")),ie(O.Alert,"warningIconColor",I("palette-warning-main")),ie(O.AppBar,"defaultBg",I("palette-grey-900")),ie(O.AppBar,"darkBg",I("palette-background-paper")),ie(O.AppBar,"darkColor",I("palette-text-primary")),ie(O.Avatar,"defaultBg",I("palette-grey-600")),ie(O.Button,"inheritContainedBg",I("palette-grey-800")),ie(O.Button,"inheritContainedHoverBg",I("palette-grey-700")),ie(O.Chip,"defaultBorder",I("palette-grey-700")),ie(O.Chip,"defaultAvatarColor",I("palette-grey-300")),ie(O.Chip,"defaultIconColor",I("palette-grey-300")),ie(O.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ie(O.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ie(O.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ie(O.LinearProgress,"primaryBg",vr(O.primary.main,.5)),ie(O.LinearProgress,"secondaryBg",vr(O.secondary.main,.5)),ie(O.LinearProgress,"errorBg",vr(O.error.main,.5)),ie(O.LinearProgress,"infoBg",vr(O.info.main,.5)),ie(O.LinearProgress,"successBg",vr(O.success.main,.5)),ie(O.LinearProgress,"warningBg",vr(O.warning.main,.5)),ie(O.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.13)`),ie(O.Slider,"primaryTrack",vr(O.primary.main,.5)),ie(O.Slider,"secondaryTrack",vr(O.secondary.main,.5)),ie(O.Slider,"errorTrack",vr(O.error.main,.5)),ie(O.Slider,"infoTrack",vr(O.info.main,.5)),ie(O.Slider,"successTrack",vr(O.success.main,.5)),ie(O.Slider,"warningTrack",vr(O.warning.main,.5));const F=e0(O.background.default,.98);ie(O.SnackbarContent,"bg",F),ie(O.SnackbarContent,"color",Ai(()=>O.getContrastText(F))),ie(O.SpeedDialAction,"fabHoverBg",e0(O.background.paper,.15)),ie(O.StepConnector,"border",I("palette-grey-600")),ie(O.StepContent,"border",I("palette-grey-600")),ie(O.Switch,"defaultColor",I("palette-grey-300")),ie(O.Switch,"defaultDisabledColor",I("palette-grey-600")),ie(O.Switch,"primaryDisabledColor",vr(O.primary.main,.55)),ie(O.Switch,"secondaryDisabledColor",vr(O.secondary.main,.55)),ie(O.Switch,"errorDisabledColor",vr(O.error.main,.55)),ie(O.Switch,"infoDisabledColor",vr(O.info.main,.55)),ie(O.Switch,"successDisabledColor",vr(O.success.main,.55)),ie(O.Switch,"warningDisabledColor",vr(O.warning.main,.55)),ie(O.TableCell,"border",vr(Qy(O.divider,1),.68)),ie(O.Tooltip,"bg",Qy(O.grey[700],.92))}Ms(O.background,"default"),Ms(O.background,"paper"),Ms(O.common,"background"),Ms(O.common,"onBackground"),Ms(O,"divider"),Object.keys(O).forEach(F=>{const N=O[F];F!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&ie(O[F],"mainChannel",vm(mm(N.main))),N.light&&ie(O[F],"lightChannel",vm(mm(N.light))),N.dark&&ie(O[F],"darkChannel",vm(mm(N.dark))),N.contrastText&&ie(O[F],"contrastTextChannel",vm(mm(N.contrastText))),F==="text"&&(Ms(O[F],"primary"),Ms(O[F],"secondary")),F==="action"&&(N.active&&Ms(O[F],"active"),N.selected&&Ms(O[F],"selected")))})}),x=e.reduce((P,O)=>qn(P,O),x);const E={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:i,getSelector:ide(x)},{vars:T,generateThemeVars:D,generateStyleSheets:A}=Iue(x,E);return x.vars=T,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([P,O])=>{x[P]=O}),x.generateThemeVars=D,x.generateStyleSheets=A,x.generateSpacing=function(){return kY(c.spacing,vP(this))},x.getColorSchemeSelector=Rue(s),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=i,x.unstable_sxConfig={...Zg,...c==null?void 0:c.unstable_sxConfig},x.unstable_sx=function(O){return $c({sx:O,theme:this})},x.toRuntimeSource=qY,x}function lF(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:CP({...r===!0?{}:r.palette,mode:e})})}function og(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:a=r?void 0:{light:!0},defaultColorScheme:o=r==null?void 0:r.mode,...i}=t,s=o||"light",l=a==null?void 0:a[s],c={...a,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return DO(t,...e);let d=r;"palette"in t||c[s]&&(c[s]!==!0?d=c[s].palette:s==="dark"&&(d={mode:"dark"}));const u=DO({...t,palette:d},...e);return u.defaultColorScheme=s,u.colorSchemes=c,u.palette.mode==="light"&&(u.colorSchemes.light={...c.light!==!0&&c.light,palette:u.palette},lF(u,"dark",c.dark)),u.palette.mode==="dark"&&(u.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:u.palette},lF(u,"light",c.light)),u}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),ude({...i,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...e)}const TP=og();function Ad(){const t=yP(TP);return t[hi]||t}function KY(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const yn=t=>KY(t)&&t!=="classes",be=Kce({themeId:hi,defaultTheme:TP,rootShouldForwardProp:yn});function cF({theme:t,...e}){const r=hi in t?t[hi]:void 0;return H.jsx(HY,{...e,themeId:r?hi:void 0,theme:r||t})}const t0={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:dde,useColorScheme:O5t,getInitColorSchemeScript:$5t}=Oue({themeId:hi,theme:()=>og({cssVariables:!0}),colorSchemeStorageKey:t0.colorSchemeStorageKey,modeStorageKey:t0.modeStorageKey,defaultColorScheme:{light:t0.defaultLightColorScheme,dark:t0.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:GY(t.palette,t.typography)};return e.unstable_sx=function(n){return $c({sx:n,theme:this})},e}}),fde=dde;function uF({theme:t,...e}){return typeof t=="function"?H.jsx(cF,{theme:t,...e}):"colorSchemes"in(hi in t?t[hi]:t)?H.jsx(fde,{theme:t,...e}):H.jsx(cF,{theme:t,...e})}var Bb={exports:{}};function hde(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var jb={exports:{}};const pde={},vde=Object.freeze(Object.defineProperty({__proto__:null,default:pde},Symbol.toStringTag,{value:"Module"})),mde=_ne(vde);var gde=jb.exports,dF;function _de(){return dF||(dF=1,function(t,e){(function(r,n){t.exports=n()})(gde,function(){var r=r||function(n,a){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof Gu<"u"&&Gu.crypto&&(o=Gu.crypto),!o&&typeof hde=="function")try{o=mde}catch{}var i=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function w(){}return function(S){var x;return w.prototype=S,x=new w,w.prototype=null,x}}(),l={},c=l.lib={},d=c.Base=function(){return{extend:function(w){var S=s(this);return w&&S.mixIn(w),(!S.hasOwnProperty("init")||this.init===S.init)&&(S.init=function(){S.$super.init.apply(this,arguments)}),S.init.prototype=S,S.$super=this,S},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var S in w)w.hasOwnProperty(S)&&(this[S]=w[S]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=c.WordArray=d.extend({init:function(w,S){w=this.words=w||[],S!=a?this.sigBytes=S:this.sigBytes=w.length*4},toString:function(w){return(w||p).stringify(this)},concat:function(w){var S=this.words,x=w.words,E=this.sigBytes,T=w.sigBytes;if(this.clamp(),E%4)for(var D=0;D>>2]>>>24-D%4*8&255;S[E+D>>>2]|=A<<24-(E+D)%4*8}else for(var P=0;P>>2]=x[P>>>2];return this.sigBytes+=T,this},clamp:function(){var w=this.words,S=this.sigBytes;w[S>>>2]&=4294967295<<32-S%4*8,w.length=n.ceil(S/4)},clone:function(){var w=d.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var S=[],x=0;x>>2]>>>24-T%4*8&255;E.push((D>>>4).toString(16)),E.push((D&15).toString(16))}return E.join("")},parse:function(w){for(var S=w.length,x=[],E=0;E>>3]|=parseInt(w.substr(E,2),16)<<24-E%8*4;return new u.init(x,S/2)}},m=f.Latin1={stringify:function(w){for(var S=w.words,x=w.sigBytes,E=[],T=0;T>>2]>>>24-T%4*8&255;E.push(String.fromCharCode(D))}return E.join("")},parse:function(w){for(var S=w.length,x=[],E=0;E>>2]|=(w.charCodeAt(E)&255)<<24-E%4*8;return new u.init(x,S)}},g=f.Utf8={stringify:function(w){try{return decodeURIComponent(escape(m.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return m.parse(unescape(encodeURIComponent(w)))}},_=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=g.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var S,x=this._data,E=x.words,T=x.sigBytes,D=this.blockSize,A=D*4,P=T/A;w?P=n.ceil(P):P=n.max((P|0)-this._minBufferSize,0);var O=P*D,I=n.min(O*4,T);if(O){for(var F=0;F>>24)&16711935|(S<<24|S>>>8)&4278255360}var x=this._hash.words,E=g[_+0],T=g[_+1],D=g[_+2],A=g[_+3],P=g[_+4],O=g[_+5],I=g[_+6],F=g[_+7],N=g[_+8],B=g[_+9],j=g[_+10],V=g[_+11],Q=g[_+12],G=g[_+13],q=g[_+14],te=g[_+15],z=x[0],U=x[1],Z=x[2],K=x[3];z=u(z,U,Z,K,E,7,c[0]),K=u(K,z,U,Z,T,12,c[1]),Z=u(Z,K,z,U,D,17,c[2]),U=u(U,Z,K,z,A,22,c[3]),z=u(z,U,Z,K,P,7,c[4]),K=u(K,z,U,Z,O,12,c[5]),Z=u(Z,K,z,U,I,17,c[6]),U=u(U,Z,K,z,F,22,c[7]),z=u(z,U,Z,K,N,7,c[8]),K=u(K,z,U,Z,B,12,c[9]),Z=u(Z,K,z,U,j,17,c[10]),U=u(U,Z,K,z,V,22,c[11]),z=u(z,U,Z,K,Q,7,c[12]),K=u(K,z,U,Z,G,12,c[13]),Z=u(Z,K,z,U,q,17,c[14]),U=u(U,Z,K,z,te,22,c[15]),z=f(z,U,Z,K,T,5,c[16]),K=f(K,z,U,Z,I,9,c[17]),Z=f(Z,K,z,U,V,14,c[18]),U=f(U,Z,K,z,E,20,c[19]),z=f(z,U,Z,K,O,5,c[20]),K=f(K,z,U,Z,j,9,c[21]),Z=f(Z,K,z,U,te,14,c[22]),U=f(U,Z,K,z,P,20,c[23]),z=f(z,U,Z,K,B,5,c[24]),K=f(K,z,U,Z,q,9,c[25]),Z=f(Z,K,z,U,A,14,c[26]),U=f(U,Z,K,z,N,20,c[27]),z=f(z,U,Z,K,G,5,c[28]),K=f(K,z,U,Z,D,9,c[29]),Z=f(Z,K,z,U,F,14,c[30]),U=f(U,Z,K,z,Q,20,c[31]),z=p(z,U,Z,K,O,4,c[32]),K=p(K,z,U,Z,N,11,c[33]),Z=p(Z,K,z,U,V,16,c[34]),U=p(U,Z,K,z,q,23,c[35]),z=p(z,U,Z,K,T,4,c[36]),K=p(K,z,U,Z,P,11,c[37]),Z=p(Z,K,z,U,F,16,c[38]),U=p(U,Z,K,z,j,23,c[39]),z=p(z,U,Z,K,G,4,c[40]),K=p(K,z,U,Z,E,11,c[41]),Z=p(Z,K,z,U,A,16,c[42]),U=p(U,Z,K,z,I,23,c[43]),z=p(z,U,Z,K,B,4,c[44]),K=p(K,z,U,Z,Q,11,c[45]),Z=p(Z,K,z,U,te,16,c[46]),U=p(U,Z,K,z,D,23,c[47]),z=m(z,U,Z,K,E,6,c[48]),K=m(K,z,U,Z,F,10,c[49]),Z=m(Z,K,z,U,q,15,c[50]),U=m(U,Z,K,z,O,21,c[51]),z=m(z,U,Z,K,Q,6,c[52]),K=m(K,z,U,Z,A,10,c[53]),Z=m(Z,K,z,U,j,15,c[54]),U=m(U,Z,K,z,T,21,c[55]),z=m(z,U,Z,K,N,6,c[56]),K=m(K,z,U,Z,te,10,c[57]),Z=m(Z,K,z,U,I,15,c[58]),U=m(U,Z,K,z,G,21,c[59]),z=m(z,U,Z,K,P,6,c[60]),K=m(K,z,U,Z,V,10,c[61]),Z=m(Z,K,z,U,D,15,c[62]),U=m(U,Z,K,z,B,21,c[63]),x[0]=x[0]+z|0,x[1]=x[1]+U|0,x[2]=x[2]+Z|0,x[3]=x[3]+K|0},_doFinalize:function(){var g=this._data,_=g.words,b=this._nDataBytes*8,w=g.sigBytes*8;_[w>>>5]|=128<<24-w%32;var S=n.floor(b/4294967296),x=b;_[(w+64>>>9<<4)+15]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,_[(w+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,g.sigBytes=(_.length+1)*4,this._process();for(var E=this._hash,T=E.words,D=0;D<4;D++){var A=T[D];T[D]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return E},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}});function u(g,_,b,w,S,x,E){var T=g+(_&b|~_&w)+S+E;return(T<>>32-x)+_}function f(g,_,b,w,S,x,E){var T=g+(_&w|b&~w)+S+E;return(T<>>32-x)+_}function p(g,_,b,w,S,x,E){var T=g+(_^b^w)+S+E;return(T<>>32-x)+_}function m(g,_,b,w,S,x,E){var T=g+(b^(_|~w))+S+E;return(T<>>32-x)+_}a.MD5=s._createHelper(d),a.HmacMD5=s._createHmacHelper(d)}(Math),r.MD5})}(Bb)),Bb.exports}var wde=bde();const Sde=fs(wde);function xde(t){return H.jsx(Hce,{...t,defaultTheme:TP,themeId:hi})}function Cde(t){return function(r){return H.jsx(xde,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function Tde(){return EY}const vt=Cue;function Ct(t){return xue(t)}function kde(t){return mt("MuiSvgIcon",t)}ft("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ede=t=>{const{color:e,fontSize:r,classes:n}=t,a={root:["root",e!=="inherit"&&`color${Oe(e)}`,`fontSize${Oe(r)}`]};return wt(a,kde,n)},Dde=be("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${Oe(r.color)}`],e[`fontSize${Oe(r.fontSize)}`]]}})(vt(({theme:t})=>{var e,r,n,a,o,i,s,l,c,d,u,f,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(e=t.transitions)==null?void 0:e.create)==null?void 0:a.call(e,"fill",{duration:(n=(r=(t.vars??t).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(o=t.typography)==null?void 0:o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=t.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(c=t.typography)==null?void 0:c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,g])=>g&&g.main).map(([g])=>{var _,b;return{props:{color:g},style:{color:(b=(_=(t.vars??t).palette)==null?void 0:_[g])==null?void 0:b.main}}}),{props:{color:"action"},style:{color:(f=(u=(t.vars??t).palette)==null?void 0:u.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(m=(p=(t.vars??t).palette)==null?void 0:p.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),OO=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:u,viewBox:f="0 0 24 24",...p}=n,m=R.isValidElement(a)&&a.type==="svg",g={...n,color:i,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:m},_={};d||(_.viewBox=f);const b=Ede(g);return H.jsxs(Dde,{as:s,className:Be(b.root,o),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:r,..._,...p,...m&&a.props,ownerState:g,children:[m?a.props.children:a,u?H.jsx("title",{children:u}):null]})});OO.muiName="SvgIcon";function gt(t,e){function r(n,a){return H.jsx(OO,{"data-testid":`${e}Icon`,ref:a,...n,children:t})}return r.muiName=OO.muiName,R.memo(R.forwardRef(r))}function ZY(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}function $O(t,e){return $O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},$O(t,e)}function QY(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,$O(t,e)}var eG=MV();const r0=fs(eG),hF={disabled:!1},y1=k.createContext(null);var Mde=function(e){return e.scrollTop},gm="unmounted",Fu="exited",zu="entering",Jf="entered",AO="exiting",hs=function(t){QY(e,t);function e(n,a){var o;o=t.call(this,n,a)||this;var i=a,s=i&&!i.isMounting?n.enter:n.appear,l;return o.appearStatus=null,n.in?s?(l=Fu,o.appearStatus=zu):l=Jf:n.unmountOnExit||n.mountOnEnter?l=gm:l=Fu,o.state={status:l},o.nextCallback=null,o}e.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===gm?{status:Fu}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==zu&&i!==Jf&&(o=zu):(i===zu||i===Jf)&&(o=AO)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,s;return o=i=s=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,s=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:s}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===zu){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:r0.findDOMNode(this);i&&Mde(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fu&&this.setState({status:gm})},r.performEnter=function(a){var o=this,i=this.props.enter,s=this.context?this.context.isMounting:a,l=this.props.nodeRef?[s]:[r0.findDOMNode(this),s],c=l[0],d=l[1],u=this.getTimeouts(),f=s?u.appear:u.enter;if(!a&&!i||hF.disabled){this.safeSetState({status:Jf},function(){o.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:zu},function(){o.props.onEntering(c,d),o.onTransitionEnd(f,function(){o.safeSetState({status:Jf},function(){o.props.onEntered(c,d)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:r0.findDOMNode(this);if(!o||hF.disabled){this.safeSetState({status:Fu},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:AO},function(){a.props.onExiting(s),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:Fu},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,o.nextCallback=null,a(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:r0.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===gm)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=ZY(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return k.createElement(y1.Provider,{value:null},typeof i=="function"?i(a,s):k.cloneElement(k.Children.only(i),s))},e}(k.Component);hs.contextType=y1;hs.propTypes={};function bf(){}hs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bf,onEntering:bf,onEntered:bf,onExit:bf,onExiting:bf,onExited:bf};hs.UNMOUNTED=gm;hs.EXITED=Fu;hs.ENTERING=zu;hs.ENTERED=Jf;hs.EXITING=AO;function Ode(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kP(t,e){var r=function(o){return e&&R.isValidElement(o)?e(o):o},n=Object.create(null);return t&&R.Children.map(t,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function $de(t,e){t=t||{},e=e||{};function r(d){return d in e?e[d]:t[d]}var n=Object.create(null),a=[];for(var o in t)o in e?a.length&&(n[o]=a,a=[]):a.push(o);var i,s={};for(var l in e){if(n[l])for(i=0;it.scrollTop;function b1(t,e){const{timeout:r,easing:n,style:a={}}=t;return{duration:a.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:a.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:a.transitionDelay}}function Lde(t){return mt("MuiPaper",t)}ft("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Nde=t=>{const{square:e,elevation:r,variant:n,classes:a}=t,o={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return wt(o,Lde,a)},Fde=be("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(vt(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Zw=R.forwardRef(function(e,r){var p;const n=Ct({props:e,name:"MuiPaper"}),a=Ad(),{className:o,component:i="div",elevation:s=1,square:l=!1,variant:c="elevation",...d}=n,u={...n,component:i,elevation:s,square:l,variant:c},f=Nde(u);return H.jsx(Fde,{as:i,ownerState:u,className:Be(f.root,o),ref:r,...d,style:{...c==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[s],...a.vars&&{"--Paper-overlay":(p=a.vars.overlays)==null?void 0:p[s]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Vr("#fff",MO(s))}, ${Vr("#fff",MO(s))})`}},...d.style}})});function _n(t,e){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,internalForwardedProps:i,...s}=e,{component:l,slots:c={[t]:void 0},slotProps:d={[t]:void 0},...u}=o,f=c[t]||n,p=zY(d[t],a),{props:{component:m,...g},internalRef:_}=FY({className:r,...s,externalForwardedProps:t==="root"?u:void 0,externalSlotProps:p}),b=an(_,p==null?void 0:p.ref,e.ref),w=t==="root"?m||l:m,S=LY(f,{...t==="root"&&!l&&!c[t]&&i,...t!=="root"&&!c[t]&&i,...g,...w&&{as:w},ref:b},a);return[f,S]}class w1{constructor(){ae(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new w1}static use(){const e=IY(w1.create).current,[r,n]=R.useState(!1);return e.shouldMount=r,e.setShouldMount=n,R.useEffect(e.mountEffect,[r]),e}mount(){return this.mounted||(this.mounted=Bde(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...e)})}stop(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...e)})}pulsate(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...e)})}}function zde(){return w1.use()}function Bde(){let t,e;const r=new Promise((n,a)=>{t=n,e=a});return r.resolve=t,r.reject=e,r}function jde(t){const{className:e,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:i,in:s,onExited:l,timeout:c}=t,[d,u]=R.useState(!1),f=Be(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),p={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},m=Be(r.child,d&&r.childLeaving,n&&r.childPulsate);return!s&&!d&&u(!0),R.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,s,c]),H.jsx("span",{className:f,style:p,children:H.jsx("span",{className:m})})}const yo=ft("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),PO=550,Wde=80,Hde=Bc` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,Ude=Bc` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,Vde=Bc` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,Yde=be("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Gde=be(jde,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${yo.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${Hde}; + animation-duration: ${PO}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + &.${yo.ripplePulsate} { + animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; + } + + & .${yo.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${yo.childLeaving} { + opacity: 0; + animation-name: ${Ude}; + animation-duration: ${PO}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + & .${yo.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${Vde}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,qde=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i,...s}=n,[l,c]=R.useState([]),d=R.useRef(0),u=R.useRef(null);R.useEffect(()=>{u.current&&(u.current(),u.current=null)},[l]);const f=R.useRef(!1),p=yh(),m=R.useRef(null),g=R.useRef(null),_=R.useCallback(x=>{const{pulsate:E,rippleX:T,rippleY:D,rippleSize:A,cb:P}=x;c(O=>[...O,H.jsx(Gde,{classes:{ripple:Be(o.ripple,yo.ripple),rippleVisible:Be(o.rippleVisible,yo.rippleVisible),ripplePulsate:Be(o.ripplePulsate,yo.ripplePulsate),child:Be(o.child,yo.child),childLeaving:Be(o.childLeaving,yo.childLeaving),childPulsate:Be(o.childPulsate,yo.childPulsate)},timeout:PO,pulsate:E,rippleX:T,rippleY:D,rippleSize:A},d.current)]),d.current+=1,u.current=P},[o]),b=R.useCallback((x={},E={},T=()=>{})=>{const{pulsate:D=!1,center:A=a||E.pulsate,fakeElement:P=!1}=E;if((x==null?void 0:x.type)==="mousedown"&&f.current){f.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(f.current=!0);const O=P?null:g.current,I=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,N,B;if(A||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)F=Math.round(I.width/2),N=Math.round(I.height/2);else{const{clientX:j,clientY:V}=x.touches&&x.touches.length>0?x.touches[0]:x;F=Math.round(j-I.left),N=Math.round(V-I.top)}if(A)B=Math.sqrt((2*I.width**2+I.height**2)/3),B%2===0&&(B+=1);else{const j=Math.max(Math.abs((O?O.clientWidth:0)-F),F)*2+2,V=Math.max(Math.abs((O?O.clientHeight:0)-N),N)*2+2;B=Math.sqrt(j**2+V**2)}x!=null&&x.touches?m.current===null&&(m.current=()=>{_({pulsate:D,rippleX:F,rippleY:N,rippleSize:B,cb:T})},p.start(Wde,()=>{m.current&&(m.current(),m.current=null)})):_({pulsate:D,rippleX:F,rippleY:N,rippleSize:B,cb:T})},[a,_,p]),w=R.useCallback(()=>{b({},{pulsate:!0})},[b]),S=R.useCallback((x,E)=>{if(p.clear(),(x==null?void 0:x.type)==="touchend"&&m.current){m.current(),m.current=null,p.start(0,()=>{S(x,E)});return}m.current=null,c(T=>T.length>0?T.slice(1):T),u.current=E},[p]);return R.useImperativeHandle(r,()=>({pulsate:w,start:b,stop:S}),[w,b,S]),H.jsx(Yde,{className:Be(yo.root,o.root,i),ref:g,...s,children:H.jsx(EP,{component:null,exit:!0,children:l})})});function Xde(t){return mt("MuiButtonBase",t)}const Jde=ft("MuiButtonBase",["root","disabled","focusVisible"]),Kde=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:a}=t,i=wt({root:["root",e&&"disabled",r&&"focusVisible"]},Xde,a);return r&&n&&(i.root+=` ${n}`),i},Zde=be("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.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"},[`&.${Jde.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jc=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:u=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:m="a",onBlur:g,onClick:_,onContextMenu:b,onDragLeave:w,onFocus:S,onFocusVisible:x,onKeyDown:E,onKeyUp:T,onMouseDown:D,onMouseLeave:A,onMouseUp:P,onTouchEnd:O,onTouchMove:I,onTouchStart:F,tabIndex:N=0,TouchRippleProps:B,touchRippleRef:j,type:V,...Q}=n,G=R.useRef(null),q=zde(),te=an(q.ref,j),[z,U]=R.useState(!1);c&&z&&U(!1),R.useImperativeHandle(a,()=>({focusVisible:()=>{U(!0),G.current.focus()}}),[]);const Z=q.shouldMount&&!d&&!c;R.useEffect(()=>{z&&f&&!d&&q.pulsate()},[d,f,z,q]);const K=Os(q,"start",D,u),se=Os(q,"stop",b,u),we=Os(q,"stop",w,u),Le=Os(q,"stop",P,u),$e=Os(q,"stop",Ae=>{z&&Ae.preventDefault(),A&&A(Ae)},u),Me=Os(q,"start",F,u),ke=Os(q,"stop",O,u),me=Os(q,"stop",I,u),he=Os(q,"stop",Ae=>{_1(Ae.target)||U(!1),g&&g(Ae)},!1),rt=pi(Ae=>{G.current||(G.current=Ae.currentTarget),_1(Ae.target)&&(U(!0),x&&x(Ae)),S&&S(Ae)}),Pe=()=>{const Ae=G.current;return l&&l!=="button"&&!(Ae.tagName==="A"&&Ae.href)},Ie=pi(Ae=>{f&&!Ae.repeat&&z&&Ae.key===" "&&q.stop(Ae,()=>{q.start(Ae)}),Ae.target===Ae.currentTarget&&Pe()&&Ae.key===" "&&Ae.preventDefault(),E&&E(Ae),Ae.target===Ae.currentTarget&&Pe()&&Ae.key==="Enter"&&!c&&(Ae.preventDefault(),_&&_(Ae))}),xt=pi(Ae=>{f&&Ae.key===" "&&z&&!Ae.defaultPrevented&&q.stop(Ae,()=>{q.pulsate(Ae)}),T&&T(Ae),_&&Ae.target===Ae.currentTarget&&Pe()&&Ae.key===" "&&!Ae.defaultPrevented&&_(Ae)});let Ce=l;Ce==="button"&&(Q.href||Q.to)&&(Ce=m);const Xe={};Ce==="button"?(Xe.type=V===void 0?"button":V,Xe.disabled=c):(!Q.href&&!Q.to&&(Xe.role="button"),c&&(Xe["aria-disabled"]=c));const _t=an(r,G),ct={...n,centerRipple:o,component:l,disabled:c,disableRipple:d,disableTouchRipple:u,focusRipple:f,tabIndex:N,focusVisible:z},it=Kde(ct);return H.jsxs(Zde,{as:Ce,className:Be(it.root,s),ownerState:ct,onBlur:he,onClick:_,onContextMenu:se,onFocus:rt,onKeyDown:Ie,onKeyUp:xt,onMouseDown:K,onMouseLeave:$e,onMouseUp:Le,onDragLeave:we,onTouchEnd:ke,onTouchMove:me,onTouchStart:Me,ref:_t,tabIndex:c?-1:N,type:V,...Xe,...Q,children:[i,Z?H.jsx(qde,{ref:te,center:o,...B}):null]})});function Os(t,e,r,n=!1){return pi(a=>(r&&r(a),n||t[e](a),!0))}function Qde(t){return typeof t.main=="string"}function efe(t,e=[]){if(!Qde(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function on(t=[]){return([,e])=>e&&efe(e,t)}function tfe(t){return mt("MuiIconButton",t)}const rfe=ft("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),nfe=t=>{const{classes:e,disabled:r,color:n,edge:a,size:o}=t,i={root:["root",r&&"disabled",n!=="default"&&`color${Oe(n)}`,a&&`edge${Oe(a)}`,`size${Oe(o)}`]};return wt(i,tfe,e)},afe=be(jc,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="default"&&e[`color${Oe(r.color)}`],r.edge&&e[`edge${Oe(r.edge)}`],e[`size${Oe(r.size)}`]]}})(vt(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Vr(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),vt(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(on()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(on()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Vr((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${rfe.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}}))),zn=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiIconButton"}),{edge:a=!1,children:o,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium",...u}=n,f={...n,edge:a,color:s,disabled:l,disableFocusRipple:c,size:d},p=nfe(f);return H.jsx(afe,{className:Be(p.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:r,...u,ownerState:f,children:o})});function ofe(t){return mt("MuiTypography",t)}const pF=ft("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),ife={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},sfe=Tde(),lfe=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=t,s={root:["root",o,t.align!=="inherit"&&`align${Oe(e)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return wt(s,ofe,i)},cfe=be("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${Oe(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(vt(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(t.palette).filter(on()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${Oe(r)}`},style:{color:(t.vars||t).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),vF={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Gs=R.forwardRef(function(e,r){const{color:n,...a}=Ct({props:e,name:"MuiTypography"}),o=!ife[n],i=sfe({...a,...o&&{color:n}}),{align:s="inherit",className:l,component:c,gutterBottom:d=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=vF,...g}=i,_={...i,align:s,color:n,className:l,component:c,gutterBottom:d,noWrap:u,paragraph:f,variant:p,variantMapping:m},b=c||(f?"p":m[p]||vF[p])||"span",w=lfe(_);return H.jsx(cfe,{as:b,ref:r,className:Be(w.root,l),...g,ownerState:_,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...g.style}})});function ufe(t){return mt("MuiAppBar",t)}ft("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const dfe=t=>{const{color:e,position:r,classes:n}=t,a={root:["root",`color${Oe(e)}`,`position${Oe(r)}`]};return wt(a,ufe,n)},mF=(t,e)=>t?`${t==null?void 0:t.replace(")","")}, ${e})`:e,ffe=be(Zw,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${Oe(r.position)}`],e[`color${Oe(r.color)}`]]}})(vt(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).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":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(on(["contrastText"])).map(([e])=>({props:{color:e},style:{"--AppBar-background":(t.vars??t).palette[e].main,"--AppBar-color":(t.vars??t).palette[e].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)",...t.applyStyles("dark",{backgroundColor:t.vars?mF(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?mF(t.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)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),hfe=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:i=!1,position:s="fixed",...l}=n,c={...n,color:o,position:s,enableColorOnDark:i},d=dfe(c);return H.jsx(ffe,{square:!0,component:"header",ownerState:c,elevation:4,className:Be(d.root,a,s==="fixed"&&"mui-fixed"),ref:r,...l})});var Ma="top",$o="bottom",Ao="right",Oa="left",DP="auto",Qg=[Ma,$o,Ao,Oa],Jh="start",ig="end",pfe="clippingParents",rG="viewport",_v="popper",vfe="reference",gF=Qg.reduce(function(t,e){return t.concat([e+"-"+Jh,e+"-"+ig])},[]),nG=[].concat(Qg,[DP]).reduce(function(t,e){return t.concat([e,e+"-"+Jh,e+"-"+ig])},[]),mfe="beforeRead",gfe="read",_fe="afterRead",yfe="beforeMain",bfe="main",wfe="afterMain",Sfe="beforeWrite",xfe="write",Cfe="afterWrite",Tfe=[mfe,gfe,_fe,yfe,bfe,wfe,Sfe,xfe,Cfe];function os(t){return t?(t.nodeName||"").toLowerCase():null}function Za(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function md(t){var e=Za(t).Element;return t instanceof e||t instanceof Element}function Mo(t){var e=Za(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function MP(t){if(typeof ShadowRoot>"u")return!1;var e=Za(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function kfe(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},a=e.attributes[r]||{},o=e.elements[r];!Mo(o)||!os(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function Efe(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var a=e.elements[n],o=e.attributes[n]||{},i=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),s=i.reduce(function(l,c){return l[c]="",l},{});!Mo(a)||!os(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}const Dfe={name:"applyStyles",enabled:!0,phase:"write",fn:kfe,effect:Efe,requires:["computeStyles"]};function es(t){return t.split("-")[0]}var rd=Math.max,S1=Math.min,Kh=Math.round;function IO(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function aG(){return!/^((?!chrome|android).)*safari/i.test(IO())}function Zh(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),a=1,o=1;e&&Mo(t)&&(a=t.offsetWidth>0&&Kh(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Kh(n.height)/t.offsetHeight||1);var i=md(t)?Za(t):window,s=i.visualViewport,l=!aG()&&r,c=(n.left+(l&&s?s.offsetLeft:0))/a,d=(n.top+(l&&s?s.offsetTop:0))/o,u=n.width/a,f=n.height/o;return{width:u,height:f,top:d,right:c+u,bottom:d+f,left:c,x:c,y:d}}function OP(t){var e=Zh(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function oG(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&MP(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ul(t){return Za(t).getComputedStyle(t)}function Mfe(t){return["table","td","th"].indexOf(os(t))>=0}function Wc(t){return((md(t)?t.ownerDocument:t.document)||window.document).documentElement}function Qw(t){return os(t)==="html"?t:t.assignedSlot||t.parentNode||(MP(t)?t.host:null)||Wc(t)}function _F(t){return!Mo(t)||ul(t).position==="fixed"?null:t.offsetParent}function Ofe(t){var e=/firefox/i.test(IO()),r=/Trident/i.test(IO());if(r&&Mo(t)){var n=ul(t);if(n.position==="fixed")return null}var a=Qw(t);for(MP(a)&&(a=a.host);Mo(a)&&["html","body"].indexOf(os(a))<0;){var o=ul(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function e_(t){for(var e=Za(t),r=_F(t);r&&Mfe(r)&&ul(r).position==="static";)r=_F(r);return r&&(os(r)==="html"||os(r)==="body"&&ul(r).position==="static")?e:r||Ofe(t)||e}function $P(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Im(t,e,r){return rd(t,S1(e,r))}function $fe(t,e,r){var n=Im(t,e,r);return n>r?r:n}function iG(){return{top:0,right:0,bottom:0,left:0}}function sG(t){return Object.assign({},iG(),t)}function lG(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var Afe=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,sG(typeof e!="number"?e:lG(e,Qg))};function Pfe(t){var e,r=t.state,n=t.name,a=t.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,s=es(r.placement),l=$P(s),c=[Oa,Ao].indexOf(s)>=0,d=c?"height":"width";if(!(!o||!i)){var u=Afe(a.padding,r),f=OP(o),p=l==="y"?Ma:Oa,m=l==="y"?$o:Ao,g=r.rects.reference[d]+r.rects.reference[l]-i[l]-r.rects.popper[d],_=i[l]-r.rects.reference[l],b=e_(o),w=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=g/2-_/2,x=u[p],E=w-f[d]-u[m],T=w/2-f[d]/2+S,D=Im(x,T,E),A=l;r.modifiersData[n]=(e={},e[A]=D,e.centerOffset=D-T,e)}}function Ife(t){var e=t.state,r=t.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||oG(e.elements.popper,a)&&(e.elements.arrow=a))}const Rfe={name:"arrow",enabled:!0,phase:"main",fn:Pfe,effect:Ife,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qh(t){return t.split("-")[1]}var Lfe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nfe(t,e){var r=t.x,n=t.y,a=e.devicePixelRatio||1;return{x:Kh(r*a)/a||0,y:Kh(n*a)/a||0}}function yF(t){var e,r=t.popper,n=t.popperRect,a=t.placement,o=t.variation,i=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,f=i.x,p=f===void 0?0:f,m=i.y,g=m===void 0?0:m,_=typeof d=="function"?d({x:p,y:g}):{x:p,y:g};p=_.x,g=_.y;var b=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),S=Oa,x=Ma,E=window;if(c){var T=e_(r),D="clientHeight",A="clientWidth";if(T===Za(r)&&(T=Wc(r),ul(T).position!=="static"&&s==="absolute"&&(D="scrollHeight",A="scrollWidth")),T=T,a===Ma||(a===Oa||a===Ao)&&o===ig){x=$o;var P=u&&T===E&&E.visualViewport?E.visualViewport.height:T[D];g-=P-n.height,g*=l?1:-1}if(a===Oa||(a===Ma||a===$o)&&o===ig){S=Ao;var O=u&&T===E&&E.visualViewport?E.visualViewport.width:T[A];p-=O-n.width,p*=l?1:-1}}var I=Object.assign({position:s},c&&Lfe),F=d===!0?Nfe({x:p,y:g},Za(r)):{x:p,y:g};if(p=F.x,g=F.y,l){var N;return Object.assign({},I,(N={},N[x]=w?"0":"",N[S]=b?"0":"",N.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",N))}return Object.assign({},I,(e={},e[x]=w?g+"px":"",e[S]=b?p+"px":"",e.transform="",e))}function Ffe(t){var e=t.state,r=t.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:es(e.placement),variation:Qh(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,yF(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,yF(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const zfe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ffe,data:{}};var n0={passive:!0};function Bfe(t){var e=t.state,r=t.instance,n=t.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,s=i===void 0?!0:i,l=Za(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(d){d.addEventListener("scroll",r.update,n0)}),s&&l.addEventListener("resize",r.update,n0),function(){o&&c.forEach(function(d){d.removeEventListener("scroll",r.update,n0)}),s&&l.removeEventListener("resize",r.update,n0)}}const jfe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Bfe,data:{}};var Wfe={left:"right",right:"left",bottom:"top",top:"bottom"};function Wb(t){return t.replace(/left|right|bottom|top/g,function(e){return Wfe[e]})}var Hfe={start:"end",end:"start"};function bF(t){return t.replace(/start|end/g,function(e){return Hfe[e]})}function AP(t){var e=Za(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function PP(t){return Zh(Wc(t)).left+AP(t).scrollLeft}function Ufe(t,e){var r=Za(t),n=Wc(t),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;var c=aG();(c||!c&&e==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s+PP(t),y:l}}function Vfe(t){var e,r=Wc(t),n=AP(t),a=(e=t.ownerDocument)==null?void 0:e.body,o=rd(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=rd(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+PP(t),l=-n.scrollTop;return ul(a||r).direction==="rtl"&&(s+=rd(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:l}}function IP(t){var e=ul(t),r=e.overflow,n=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function cG(t){return["html","body","#document"].indexOf(os(t))>=0?t.ownerDocument.body:Mo(t)&&IP(t)?t:cG(Qw(t))}function Rm(t,e){var r;e===void 0&&(e=[]);var n=cG(t),a=n===((r=t.ownerDocument)==null?void 0:r.body),o=Za(n),i=a?[o].concat(o.visualViewport||[],IP(n)?n:[]):n,s=e.concat(i);return a?s:s.concat(Rm(Qw(i)))}function RO(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Yfe(t,e){var r=Zh(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function wF(t,e,r){return e===rG?RO(Ufe(t,r)):md(e)?Yfe(e,r):RO(Vfe(Wc(t)))}function Gfe(t){var e=Rm(Qw(t)),r=["absolute","fixed"].indexOf(ul(t).position)>=0,n=r&&Mo(t)?e_(t):t;return md(n)?e.filter(function(a){return md(a)&&oG(a,n)&&os(a)!=="body"}):[]}function qfe(t,e,r,n){var a=e==="clippingParents"?Gfe(t):[].concat(e),o=[].concat(a,[r]),i=o[0],s=o.reduce(function(l,c){var d=wF(t,c,n);return l.top=rd(d.top,l.top),l.right=S1(d.right,l.right),l.bottom=S1(d.bottom,l.bottom),l.left=rd(d.left,l.left),l},wF(t,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function uG(t){var e=t.reference,r=t.element,n=t.placement,a=n?es(n):null,o=n?Qh(n):null,i=e.x+e.width/2-r.width/2,s=e.y+e.height/2-r.height/2,l;switch(a){case Ma:l={x:i,y:e.y-r.height};break;case $o:l={x:i,y:e.y+e.height};break;case Ao:l={x:e.x+e.width,y:s};break;case Oa:l={x:e.x-r.width,y:s};break;default:l={x:e.x,y:e.y}}var c=a?$P(a):null;if(c!=null){var d=c==="y"?"height":"width";switch(o){case Jh:l[c]=l[c]-(e[d]/2-r[d]/2);break;case ig:l[c]=l[c]+(e[d]/2-r[d]/2);break}}return l}function sg(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=n===void 0?t.placement:n,o=r.strategy,i=o===void 0?t.strategy:o,s=r.boundary,l=s===void 0?pfe:s,c=r.rootBoundary,d=c===void 0?rG:c,u=r.elementContext,f=u===void 0?_v:u,p=r.altBoundary,m=p===void 0?!1:p,g=r.padding,_=g===void 0?0:g,b=sG(typeof _!="number"?_:lG(_,Qg)),w=f===_v?vfe:_v,S=t.rects.popper,x=t.elements[m?w:f],E=qfe(md(x)?x:x.contextElement||Wc(t.elements.popper),l,d,i),T=Zh(t.elements.reference),D=uG({reference:T,element:S,strategy:"absolute",placement:a}),A=RO(Object.assign({},S,D)),P=f===_v?A:T,O={top:E.top-P.top+b.top,bottom:P.bottom-E.bottom+b.bottom,left:E.left-P.left+b.left,right:P.right-E.right+b.right},I=t.modifiersData.offset;if(f===_v&&I){var F=I[a];Object.keys(O).forEach(function(N){var B=[Ao,$o].indexOf(N)>=0?1:-1,j=[Ma,$o].indexOf(N)>=0?"y":"x";O[N]+=F[j]*B})}return O}function Xfe(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?nG:l,d=Qh(n),u=d?s?gF:gF.filter(function(m){return Qh(m)===d}):Qg,f=u.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=u);var p=f.reduce(function(m,g){return m[g]=sg(t,{placement:g,boundary:a,rootBoundary:o,padding:i})[es(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function Jfe(t){if(es(t)===DP)return[];var e=Wb(t);return[bF(t),e,bF(e)]}function Kfe(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!0:i,l=r.fallbackPlacements,c=r.padding,d=r.boundary,u=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,m=p===void 0?!0:p,g=r.allowedAutoPlacements,_=e.options.placement,b=es(_),w=b===_,S=l||(w||!m?[Wb(_)]:Jfe(_)),x=[_].concat(S).reduce(function(K,se){return K.concat(es(se)===DP?Xfe(e,{placement:se,boundary:d,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:g}):se)},[]),E=e.rects.reference,T=e.rects.popper,D=new Map,A=!0,P=x[0],O=0;O=0,j=B?"width":"height",V=sg(e,{placement:I,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),Q=B?N?Ao:Oa:N?$o:Ma;E[j]>T[j]&&(Q=Wb(Q));var G=Wb(Q),q=[];if(o&&q.push(V[F]<=0),s&&q.push(V[Q]<=0,V[G]<=0),q.every(function(K){return K})){P=I,A=!1;break}D.set(I,q)}if(A)for(var te=m?3:1,z=function(se){var we=x.find(function(Le){var $e=D.get(Le);if($e)return $e.slice(0,se).every(function(Me){return Me})});if(we)return P=we,"break"},U=te;U>0;U--){var Z=z(U);if(Z==="break")break}e.placement!==P&&(e.modifiersData[n]._skip=!0,e.placement=P,e.reset=!0)}}const Zfe={name:"flip",enabled:!0,phase:"main",fn:Kfe,requiresIfExists:["offset"],data:{_skip:!1}};function SF(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function xF(t){return[Ma,Ao,$o,Oa].some(function(e){return t[e]>=0})}function Qfe(t){var e=t.state,r=t.name,n=e.rects.reference,a=e.rects.popper,o=e.modifiersData.preventOverflow,i=sg(e,{elementContext:"reference"}),s=sg(e,{altBoundary:!0}),l=SF(i,n),c=SF(s,a,o),d=xF(l),u=xF(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}const ehe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Qfe};function the(t,e,r){var n=es(t),a=[Oa,Ma].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[Oa,Ao].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function rhe(t){var e=t.state,r=t.options,n=t.name,a=r.offset,o=a===void 0?[0,0]:a,i=nG.reduce(function(d,u){return d[u]=the(u,e.rects,o),d},{}),s=i[e.placement],l=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=i}const nhe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rhe};function ahe(t){var e=t.state,r=t.name;e.modifiersData[r]=uG({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const ohe={name:"popperOffsets",enabled:!0,phase:"read",fn:ahe,data:{}};function ihe(t){return t==="x"?"y":"x"}function she(t){var e=t.state,r=t.options,n=t.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!1:i,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.padding,f=r.tether,p=f===void 0?!0:f,m=r.tetherOffset,g=m===void 0?0:m,_=sg(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),b=es(e.placement),w=Qh(e.placement),S=!w,x=$P(b),E=ihe(x),T=e.modifiersData.popperOffsets,D=e.rects.reference,A=e.rects.popper,P=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,O=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,F={x:0,y:0};if(T){if(o){var N,B=x==="y"?Ma:Oa,j=x==="y"?$o:Ao,V=x==="y"?"height":"width",Q=T[x],G=Q+_[B],q=Q-_[j],te=p?-A[V]/2:0,z=w===Jh?D[V]:A[V],U=w===Jh?-A[V]:-D[V],Z=e.elements.arrow,K=p&&Z?OP(Z):{width:0,height:0},se=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:iG(),we=se[B],Le=se[j],$e=Im(0,D[V],K[V]),Me=S?D[V]/2-te-$e-we-O.mainAxis:z-$e-we-O.mainAxis,ke=S?-D[V]/2+te+$e+Le+O.mainAxis:U+$e+Le+O.mainAxis,me=e.elements.arrow&&e_(e.elements.arrow),he=me?x==="y"?me.clientTop||0:me.clientLeft||0:0,rt=(N=I==null?void 0:I[x])!=null?N:0,Pe=Q+Me-rt-he,Ie=Q+ke-rt,xt=Im(p?S1(G,Pe):G,Q,p?rd(q,Ie):q);T[x]=xt,F[x]=xt-Q}if(s){var Ce,Xe=x==="x"?Ma:Oa,_t=x==="x"?$o:Ao,ct=T[E],it=E==="y"?"height":"width",Ae=ct+_[Xe],Rt=ct-_[_t],de=[Ma,Oa].indexOf(b)!==-1,Ne=(Ce=I==null?void 0:I[E])!=null?Ce:0,Mt=de?Ae:ct-D[it]-A[it]-Ne+O.altAxis,Ze=de?ct+D[it]+A[it]-Ne-O.altAxis:Rt,Qe=p&&de?$fe(Mt,ct,Ze):Im(p?Mt:Ae,ct,p?Ze:Rt);T[E]=Qe,F[E]=Qe-ct}e.modifiersData[n]=F}}const lhe={name:"preventOverflow",enabled:!0,phase:"main",fn:she,requiresIfExists:["offset"]};function che(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function uhe(t){return t===Za(t)||!Mo(t)?AP(t):che(t)}function dhe(t){var e=t.getBoundingClientRect(),r=Kh(e.width)/t.offsetWidth||1,n=Kh(e.height)/t.offsetHeight||1;return r!==1||n!==1}function fhe(t,e,r){r===void 0&&(r=!1);var n=Mo(e),a=Mo(e)&&dhe(e),o=Wc(e),i=Zh(t,a,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((os(e)!=="body"||IP(o))&&(s=uhe(e)),Mo(e)?(l=Zh(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=PP(o))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function hhe(t){var e=new Map,r=new Set,n=[];t.forEach(function(o){e.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var l=e.get(s);l&&a(l)}}),n.push(o)}return t.forEach(function(o){r.has(o.name)||a(o)}),n}function phe(t){var e=hhe(t);return Tfe.reduce(function(r,n){return r.concat(e.filter(function(a){return a.phase===n}))},[])}function vhe(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function mhe(t){var e=t.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var CF={placement:"bottom",modifiers:[],strategy:"absolute"};function TF(){for(var t=arguments.length,e=new Array(t),r=0;r{o||s(bhe(a)||document.body)},[a,o]),Oo(()=>{if(i&&!o)return kO(r,i),()=>{kO(r,null)}},[r,i,o]),o){if(R.isValidElement(n)){const c={ref:l};return R.cloneElement(n,c)}return n}return i&&eG.createPortal(n,i)});function whe(t){return mt("MuiPopper",t)}ft("MuiPopper",["root"]);function She(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function LO(t){return typeof t=="function"?t():t}function xhe(t){return t.nodeType!==void 0}const Che=t=>{const{classes:e}=t;return wt({root:["root"]},whe,e)},The={},khe=R.forwardRef(function(e,r){const{anchorEl:n,children:a,direction:o,disablePortal:i,modifiers:s,open:l,placement:c,popperOptions:d,popperRef:u,slotProps:f={},slots:p={},TransitionProps:m,ownerState:g,..._}=e,b=R.useRef(null),w=an(b,r),S=R.useRef(null),x=an(S,u),E=R.useRef(x);Oo(()=>{E.current=x},[x]),R.useImperativeHandle(u,()=>S.current,[]);const T=She(c,o),[D,A]=R.useState(T),[P,O]=R.useState(LO(n));R.useEffect(()=>{S.current&&S.current.forceUpdate()}),R.useEffect(()=>{n&&O(LO(n))},[n]),Oo(()=>{if(!P||!l)return;const j=G=>{A(G.placement)};let V=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:G})=>{j(G)}}];s!=null&&(V=V.concat(s)),d&&d.modifiers!=null&&(V=V.concat(d.modifiers));const Q=yhe(P,b.current,{placement:T,...d,modifiers:V});return E.current(Q),()=>{Q.destroy(),E.current(null)}},[P,i,s,l,d,T]);const I={placement:D};m!==null&&(I.TransitionProps=m);const F=Che(e),N=p.root??"div",B=Pc({elementType:N,externalSlotProps:f.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:w},ownerState:e,className:F.root});return H.jsx(N,{...B,children:typeof a=="function"?a(I):a})}),Ehe=R.forwardRef(function(e,r){const{anchorEl:n,children:a,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:d,placement:u="bottom",popperOptions:f=The,popperRef:p,style:m,transition:g=!1,slotProps:_={},slots:b={},...w}=e,[S,x]=R.useState(!0),E=()=>{x(!1)},T=()=>{x(!0)};if(!l&&!d&&(!g||S))return null;let D;if(o)D=o;else if(n){const O=LO(n);D=O&&xhe(O)?Pa(O).body:Pa(null).body}const A=!d&&l&&(!g||S)?"none":void 0,P=g?{in:d,onEnter:E,onExited:T}:void 0;return H.jsx(dG,{disablePortal:s,container:D,children:H.jsx(khe,{anchorEl:n,direction:i,disablePortal:s,modifiers:c,ref:r,open:g?!S:d,placement:u,popperOptions:f,popperRef:p,slotProps:_,slots:b,...w,style:{position:"fixed",top:0,left:0,display:A,...m},TransitionProps:P,children:a})})}),Dhe=be(Ehe,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),fG=R.forwardRef(function(e,r){const n=vp(),a=Ct({props:e,name:"MuiPopper"}),{anchorEl:o,component:i,components:s,componentsProps:l,container:c,disablePortal:d,keepMounted:u,modifiers:f,open:p,placement:m,popperOptions:g,popperRef:_,transition:b,slots:w,slotProps:S,...x}=a,E=(w==null?void 0:w.root)??(s==null?void 0:s.Root),T={anchorEl:o,container:c,disablePortal:d,keepMounted:u,modifiers:f,open:p,placement:m,popperOptions:g,popperRef:_,transition:b,...x};return H.jsx(Dhe,{as:i,direction:n?"rtl":"ltr",slots:{root:E},slotProps:S??l,...T,ref:r})});function a0(t){return parseInt(t,10)||0}const Mhe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Ohe(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflowing}const $he=R.forwardRef(function(e,r){const{onChange:n,maxRows:a,minRows:o=1,style:i,value:s,...l}=e,{current:c}=R.useRef(s!=null),d=R.useRef(null),u=an(r,d),f=R.useRef(null),p=R.useRef(null),m=R.useCallback(()=>{const b=d.current,S=gi(b).getComputedStyle(b);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=p.current;x.style.width=S.width,x.value=b.value||e.placeholder||"x",x.value.slice(-1)===` +`&&(x.value+=" ");const E=S.boxSizing,T=a0(S.paddingBottom)+a0(S.paddingTop),D=a0(S.borderBottomWidth)+a0(S.borderTopWidth),A=x.scrollHeight;x.value="x";const P=x.scrollHeight;let O=A;o&&(O=Math.max(Number(o)*P,O)),a&&(O=Math.min(Number(a)*P,O)),O=Math.max(O,P);const I=O+(E==="border-box"?T+D:0),F=Math.abs(O-A)<=1;return{outerHeightStyle:I,overflowing:F}},[a,o,e.placeholder]),g=R.useCallback(()=>{const b=m();if(Ohe(b))return;const w=b.outerHeightStyle,S=d.current;f.current!==w&&(f.current=w,S.style.height=`${w}px`),S.style.overflow=b.overflowing?"hidden":""},[m]);Oo(()=>{const b=()=>{g()};let w;const S=Xw(b),x=d.current,E=gi(x);E.addEventListener("resize",S);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(b),T.observe(x)),()=>{S.clear(),cancelAnimationFrame(w),E.removeEventListener("resize",S),T&&T.disconnect()}},[m,g]),Oo(()=>{g()});const _=b=>{c||g(),n&&n(b)};return H.jsxs(R.Fragment,{children:[H.jsx("textarea",{value:s,onChange:_,ref:u,rows:o,style:i,...l}),H.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:{...Mhe.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function NO(t){return typeof t=="string"}function Hc({props:t,states:e,muiFormControl:r}){return e.reduce((n,a)=>(n[a]=t[a],r&&typeof t[a]>"u"&&(n[a]=r[a]),n),{})}const RP=R.createContext(void 0);function ps(){return R.useContext(RP)}function kF(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function x1(t,e=!1){return t&&(kF(t.value)&&t.value!==""||e&&kF(t.defaultValue)&&t.defaultValue!=="")}function Ahe(t){return t.startAdornment}function Phe(t){return mt("MuiInputBase",t)}const ep=ft("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var EF;const eS=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${Oe(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},tS=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},Ihe=t=>{const{classes:e,color:r,disabled:n,error:a,endAdornment:o,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:u,size:f,startAdornment:p,type:m}=t,g={root:["root",`color${Oe(r)}`,n&&"disabled",a&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",f&&f!=="medium"&&`size${Oe(f)}`,d&&"multiline",p&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",n&&"disabled",m==="search"&&"inputTypeSearch",d&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",o&&"inputAdornedEnd",u&&"readOnly"]};return wt(g,Phe,e)},rS=be("div",{name:"MuiInputBase",slot:"Root",overridesResolver:eS})(vt(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ep.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),nS=be("input",{name:"MuiInputBase",slot:"Input",overridesResolver:tS})(vt(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ep.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${ep.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:o})=>!o.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:o})=>o.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),DF=Cde({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),LP=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:i,className:s,color:l,components:c={},componentsProps:d={},defaultValue:u,disabled:f,disableInjectingGlobalStyles:p,endAdornment:m,error:g,fullWidth:_=!1,id:b,inputComponent:w="input",inputProps:S={},inputRef:x,margin:E,maxRows:T,minRows:D,multiline:A=!1,name:P,onBlur:O,onChange:I,onClick:F,onFocus:N,onKeyDown:B,onKeyUp:j,placeholder:V,readOnly:Q,renderSuffix:G,rows:q,size:te,slotProps:z={},slots:U={},startAdornment:Z,type:K="text",value:se,...we}=n,Le=S.value!=null?S.value:se,{current:$e}=R.useRef(Le!=null),Me=R.useRef(),ke=R.useCallback(He=>{},[]),me=an(Me,x,S.ref,ke),[he,rt]=R.useState(!1),Pe=ps(),Ie=Hc({props:n,muiFormControl:Pe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ie.focused=Pe?Pe.focused:he,R.useEffect(()=>{!Pe&&f&&he&&(rt(!1),O&&O())},[Pe,f,he,O]);const xt=Pe&&Pe.onFilled,Ce=Pe&&Pe.onEmpty,Xe=R.useCallback(He=>{x1(He)?xt&&xt():Ce&&Ce()},[xt,Ce]);Oo(()=>{$e&&Xe({value:Le})},[Le,Xe,$e]);const _t=He=>{N&&N(He),S.onFocus&&S.onFocus(He),Pe&&Pe.onFocus?Pe.onFocus(He):rt(!0)},ct=He=>{O&&O(He),S.onBlur&&S.onBlur(He),Pe&&Pe.onBlur?Pe.onBlur(He):rt(!1)},it=(He,...Yt)=>{if(!$e){const Qt=He.target||Me.current;if(Qt==null)throw new Error(ll(1));Xe({value:Qt.value})}S.onChange&&S.onChange(He,...Yt),I&&I(He,...Yt)};R.useEffect(()=>{Xe(Me.current)},[]);const Ae=He=>{Me.current&&He.currentTarget===He.target&&Me.current.focus(),F&&F(He)};let Rt=w,de=S;A&&Rt==="input"&&(q?de={type:void 0,minRows:q,maxRows:q,...de}:de={type:void 0,maxRows:T,minRows:D,...de},Rt=$he);const Ne=He=>{Xe(He.animationName==="mui-auto-fill-cancel"?Me.current:{value:"x"})};R.useEffect(()=>{Pe&&Pe.setAdornedStart(!!Z)},[Pe,Z]);const Mt={...n,color:Ie.color||"primary",disabled:Ie.disabled,endAdornment:m,error:Ie.error,focused:Ie.focused,formControl:Pe,fullWidth:_,hiddenLabel:Ie.hiddenLabel,multiline:A,size:Ie.size,startAdornment:Z,type:K},Ze=Ihe(Mt),Qe=U.root||c.Root||rS,Tt=z.root||d.root||{},zt=U.input||c.Input||nS;return de={...de,...z.input??d.input},H.jsxs(R.Fragment,{children:[!p&&typeof DF=="function"&&(EF||(EF=H.jsx(DF,{}))),H.jsxs(Qe,{...Tt,ref:r,onClick:Ae,...we,...!NO(Qe)&&{ownerState:{...Mt,...Tt.ownerState}},className:Be(Ze.root,Tt.className,s,Q&&"MuiInputBase-readOnly"),children:[Z,H.jsx(RP.Provider,{value:null,children:H.jsx(zt,{"aria-invalid":Ie.error,"aria-describedby":a,autoComplete:o,autoFocus:i,defaultValue:u,disabled:Ie.disabled,id:b,onAnimationStart:Ne,name:P,placeholder:V,readOnly:Q,required:Ie.required,rows:q,value:Le,onKeyDown:B,onKeyUp:j,type:K,...de,...!NO(zt)&&{as:Rt,ownerState:{...Mt,...de.ownerState}},ref:me,className:Be(Ze.input,de.className,Q&&"MuiInputBase-readOnly"),onBlur:ct,onChange:it,onFocus:_t})}),m,G?G({...Ie,startAdornment:Z}):null]})]})});function Rhe(t){return mt("MuiInput",t)}const yv={...ep,...ft("MuiInput",["root","underline","input"])};function Lhe(t){return mt("MuiOutlinedInput",t)}const Pi={...ep,...ft("MuiOutlinedInput",["root","notchedOutline","input"])};function Nhe(t){return mt("MuiFilledInput",t)}const su={...ep,...ft("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Fhe=gt(H.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),zhe={entering:{opacity:1},entered:{opacity:1}},hG=R.forwardRef(function(e,r){const n=Ad(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:l,in:c,onEnter:d,onEntered:u,onEntering:f,onExit:p,onExited:m,onExiting:g,style:_,timeout:b=a,TransitionComponent:w=hs,...S}=e,x=R.useRef(null),E=an(x,pp(s),r),T=B=>j=>{if(B){const V=x.current;j===void 0?B(V):B(V,j)}},D=T(f),A=T((B,j)=>{tG(B);const V=b1({style:_,timeout:b,easing:l},{mode:"enter"});B.style.webkitTransition=n.transitions.create("opacity",V),B.style.transition=n.transitions.create("opacity",V),d&&d(B,j)}),P=T(u),O=T(g),I=T(B=>{const j=b1({style:_,timeout:b,easing:l},{mode:"exit"});B.style.webkitTransition=n.transitions.create("opacity",j),B.style.transition=n.transitions.create("opacity",j),p&&p(B)}),F=T(m),N=B=>{o&&o(x.current,B)};return H.jsx(w,{appear:i,in:c,nodeRef:x,onEnter:A,onEntered:P,onEntering:D,onExit:I,onExited:F,onExiting:O,addEndListener:N,timeout:b,...S,children:(B,{ownerState:j,...V})=>R.cloneElement(s,{style:{opacity:0,visibility:B==="exited"&&!c?"hidden":void 0,...zhe[B],..._,...s.props.style},ref:E,...V})})});function Bhe(t){return mt("MuiBackdrop",t)}ft("MuiBackdrop",["root","invisible"]);const jhe=t=>{const{classes:e,invisible:r}=t;return wt({root:["root",r&&"invisible"]},Bhe,e)},Whe=be("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),pG=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiBackdrop"}),{children:a,className:o,component:i="div",invisible:s=!1,open:l,components:c={},componentsProps:d={},slotProps:u={},slots:f={},TransitionComponent:p,transitionDuration:m,...g}=n,_={...n,component:i,invisible:s},b=jhe(_),w={transition:p,root:c.Root,...f},S={...d,...u},x={slots:w,slotProps:S},[E,T]=_n("root",{elementType:Whe,externalForwardedProps:x,className:Be(b.root,o),ownerState:_}),[D,A]=_n("transition",{elementType:hG,externalForwardedProps:x,ownerState:_});return H.jsx(D,{in:l,timeout:m,...g,...A,children:H.jsx(E,{"aria-hidden":!0,...T,classes:b,ref:r,children:a})})}),Hhe=ft("MuiBox",["root"]),Uhe=og(),rr=Yce({themeId:hi,defaultTheme:Uhe,defaultClassName:Hhe.root,generateClassName:DY.generate}),Vhe=gt(H.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"),Yhe=be(jc)(vt(({theme:t})=>({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`,...t.palette.mode==="light"?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...t.palette.mode==="light"?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}},"&:active":{boxShadow:t.shadows[0],...t.palette.mode==="light"?{backgroundColor:CO(t.palette.grey[200],.12)}:{backgroundColor:CO(t.palette.grey[600],.12)}}}))),Ghe=be(Vhe)({width:24,height:16});function qhe(t){const{slots:e={},slotProps:r={},...n}=t,a=t;return H.jsx("li",{children:H.jsx(Yhe,{focusRipple:!0,...n,ownerState:a,children:H.jsx(Ghe,{as:e.CollapsedIcon,ownerState:a,...r.collapsedIcon})})})}function Xhe(t){return mt("MuiBreadcrumbs",t)}const Jhe=ft("MuiBreadcrumbs",["root","ol","li","separator"]),Khe=t=>{const{classes:e}=t;return wt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Xhe,e)},Zhe=be(Gs,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(t,e)=>[{[`& .${Jhe.li}`]:e.li},e.root]})({}),Qhe=be("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(t,e)=>e.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),epe=be("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(t,e)=>e.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function tpe(t,e,r,n){return t.reduce((a,o,i)=>(i{const A=()=>{_(!0);const P=x.current.querySelector("a[href],button,[tabindex]");P&&P.focus()};return u+d>=D.length?D:[...D.slice(0,u),H.jsx(qhe,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:S},onClick:A},"ellipsis"),...D.slice(D.length-d,D.length)]},T=R.Children.toArray(a).filter(D=>R.isValidElement(D)).map((D,A)=>H.jsx("li",{className:w.li,children:D},`child-${A}`));return H.jsx(Zhe,{ref:r,component:i,color:"textSecondary",className:Be(w.root,o),ownerState:b,...m,children:H.jsx(Qhe,{className:w.ol,ref:x,ownerState:b,children:tpe(g||f&&T.length<=f?T:E(T),w.separator,p,b)})})});function npe(t){return mt("MuiButton",t)}const wf=ft("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"]),ape=R.createContext({}),ope=R.createContext(void 0),ipe=t=>{const{color:e,disableElevation:r,fullWidth:n,size:a,variant:o,classes:i}=t,s={root:["root",o,`${o}${Oe(e)}`,`size${Oe(a)}`,`${o}Size${Oe(a)}`,`color${Oe(e)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Oe(a)}`],endIcon:["icon","endIcon",`iconSize${Oe(a)}`]},l=wt(s,npe,i);return{...i,...l}},vG=[{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}}}],spe=be(jc,{shouldForwardProp:t=>yn(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${Oe(r.color)}`],e[`size${Oe(r.size)}`],e[`${r.variant}Size${Oe(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth]}})(vt(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${wf.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${wf.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${wf.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${wf.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(on()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(t.vars||t).palette[n].main,"--variant-outlinedColor":(t.vars||t).palette[n].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.5)`:Vr(t.palette[n].main,.5),"--variant-containedColor":(t.vars||t).palette[n].contrastText,"--variant-containedBg":(t.vars||t).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[n].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Vr(t.palette[n].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[n].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Vr(t.palette[n].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Vr(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Vr(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${wf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${wf.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),lpe=be("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,e[`iconSize${Oe(r.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...vG]}),cpe=be("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,e[`iconSize${Oe(r.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...vG]}),Tr=R.forwardRef(function(e,r){const n=R.useContext(ape),a=R.useContext(ope),o=ng(n,e),i=Ct({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:d,disabled:u=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:m,focusVisibleClassName:g,fullWidth:_=!1,size:b="medium",startIcon:w,type:S,variant:x="text",...E}=i,T={...i,color:l,component:c,disabled:u,disableElevation:f,disableFocusRipple:p,fullWidth:_,size:b,type:S,variant:x},D=ipe(T),A=w&&H.jsx(lpe,{className:D.startIcon,ownerState:T,children:w}),P=m&&H.jsx(cpe,{className:D.endIcon,ownerState:T,children:m}),O=a||"";return H.jsxs(spe,{ownerState:T,className:Be(n.className,D.root,d,O),component:c,disabled:u,focusRipple:!p,focusVisibleClassName:Be(D.focusVisible,g),ref:r,type:S,...E,classes:D,children:[A,s,P]})});function upe(t){return mt("PrivateSwitchBase",t)}ft("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const dpe=t=>{const{classes:e,checked:r,disabled:n,edge:a}=t,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${Oe(a)}`],input:["input"]};return wt(o,upe,e)},fpe=be(jc)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),hpe=be("input",{shouldForwardProp:yn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),mG=R.forwardRef(function(e,r){const{autoFocus:n,checked:a,checkedIcon:o,className:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:u,id:f,inputProps:p,inputRef:m,name:g,onBlur:_,onChange:b,onFocus:w,readOnly:S,required:x=!1,tabIndex:E,type:T,value:D,...A}=e,[P,O]=g1({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),I=ps(),F=q=>{w&&w(q),I&&I.onFocus&&I.onFocus(q)},N=q=>{_&&_(q),I&&I.onBlur&&I.onBlur(q)},B=q=>{if(q.nativeEvent.defaultPrevented)return;const te=q.target.checked;O(te),b&&b(q,te)};let j=l;I&&typeof j>"u"&&(j=I.disabled);const V=T==="checkbox"||T==="radio",Q={...e,checked:P,disabled:j,disableFocusRipple:c,edge:d},G=dpe(Q);return H.jsxs(fpe,{component:"span",className:Be(G.root,i),centerRipple:!0,focusRipple:!c,disabled:j,tabIndex:null,role:void 0,onFocus:F,onBlur:N,ownerState:Q,ref:r,...A,children:[H.jsx(hpe,{autoFocus:n,checked:a,defaultChecked:s,className:G.input,disabled:j,id:V?f:void 0,name:g,onChange:B,readOnly:S,ref:m,required:x,ownerState:Q,tabIndex:E,type:T,...T==="checkbox"&&D===void 0?{}:{value:D},...p}),P?o:u]})}),ppe=gt(H.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"),vpe=gt(H.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"),mpe=gt(H.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 gpe(t){return mt("MuiCheckbox",t)}const ET=ft("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_pe=t=>{const{classes:e,indeterminate:r,color:n,size:a}=t,o={root:["root",r&&"indeterminate",`color${Oe(n)}`,`size${Oe(a)}`]},i=wt(o,gpe,e);return{...e,...i}},ype=be(mG,{shouldForwardProp:t=>yn(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${Oe(r.size)}`],r.color!=="default"&&e[`color${Oe(r.color)}`]]}})(vt(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Vr(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(on()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Vr(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(on()).map(([e])=>({props:{color:e},style:{[`&.${ET.checked}, &.${ET.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${ET.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),bpe=H.jsx(vpe,{}),wpe=H.jsx(ppe,{}),Spe=H.jsx(mpe,{}),vn=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiCheckbox"}),{checkedIcon:a=bpe,color:o="primary",icon:i=wpe,indeterminate:s=!1,indeterminateIcon:l=Spe,inputProps:c,size:d="medium",disableRipple:u=!1,className:f,...p}=n,m=s?l:i,g=s?l:a,_={...n,disableRipple:u,color:o,indeterminate:s,size:d},b=_pe(_);return H.jsx(ype,{type:"checkbox",inputProps:{"data-indeterminate":s,...c},icon:R.cloneElement(m,{fontSize:m.props.fontSize??d}),checkedIcon:R.cloneElement(g,{fontSize:g.props.fontSize??d}),ownerState:_,ref:r,className:Be(b.root,f),disableRipple:u,...p,classes:b})});function xpe(t){return mt("MuiCircularProgress",t)}ft("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Yl=44,FO=Bc` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`,zO=Bc` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`,Cpe=typeof FO!="string"?hp` + animation: ${FO} 1.4s linear infinite; + `:null,Tpe=typeof zO!="string"?hp` + animation: ${zO} 1.4s ease-in-out infinite; + `:null,kpe=t=>{const{classes:e,variant:r,color:n,disableShrink:a}=t,o={root:["root",r,`color${Oe(n)}`],svg:["svg"],circle:["circle",`circle${Oe(r)}`,a&&"circleDisableShrink"]};return wt(o,xpe,e)},Epe=be("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${Oe(r.color)}`]]}})(vt(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Cpe||{animation:`${FO} 1.4s linear infinite`}},...Object.entries(t.palette).filter(on()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),Dpe=be("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),Mpe=be("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${Oe(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(vt(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:Tpe||{animation:`${zO} 1.4s ease-in-out infinite`}}]}))),Ope=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:i=!1,size:s=40,style:l,thickness:c=3.6,value:d=0,variant:u="indeterminate",...f}=n,p={...n,color:o,disableShrink:i,size:s,thickness:c,value:d,variant:u},m=kpe(p),g={},_={},b={};if(u==="determinate"){const w=2*Math.PI*((Yl-c)/2);g.strokeDasharray=w.toFixed(3),b["aria-valuenow"]=Math.round(d),g.strokeDashoffset=`${((100-d)/100*w).toFixed(3)}px`,_.transform="rotate(-90deg)"}return H.jsx(Epe,{className:Be(m.root,a),style:{width:s,height:s,..._,...l},ownerState:p,ref:r,role:"progressbar",...b,...f,children:H.jsx(Dpe,{className:m.svg,ownerState:p,viewBox:`${Yl/2} ${Yl/2} ${Yl} ${Yl}`,children:H.jsx(Mpe,{className:m.circle,style:g,ownerState:p,cx:Yl,cy:Yl,r:(Yl-c)/2,fill:"none",strokeWidth:c})})})});function $pe(t){const e=Pa(t);return e.body===t?gi(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Lm(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function MF(t){return parseInt(gi(t).getComputedStyle(t).paddingRight,10)||0}function Ape(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function OF(t,e,r,n,a){const o=[e,r,...n];[].forEach.call(t.children,i=>{const s=!o.includes(i),l=!Ape(i);s&&l&&Lm(i,a)})}function DT(t,e){let r=-1;return t.some((n,a)=>e(n)?(r=a,!0):!1),r}function Ppe(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if($pe(n)){const i=RY(gi(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${MF(n)+i}px`;const s=Pa(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${MF(l)+i}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=Pa(n).body;else{const i=n.parentElement,s=gi(n);o=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:i,property:s})=>{o?i.style.setProperty(s,o):i.style.removeProperty(s)})}}function Ipe(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class Rpe{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Lm(e.modalRef,!1);const a=Ipe(r);OF(r,e.mount,e.modalRef,a,!0);const o=DT(this.containers,i=>i.container===r);return o!==-1?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:a}),n)}mount(e,r){const n=DT(this.containers,o=>o.modals.includes(e)),a=this.containers[n];a.restore||(a.restore=Ppe(a,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const a=DT(this.containers,i=>i.modals.includes(e)),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),e.modalRef&&Lm(e.modalRef,r),OF(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const i=o.modals[o.modals.length-1];i.modalRef&&Lm(i.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const Lpe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Npe(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function Fpe(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function zpe(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||Fpe(t))}function Bpe(t){const e=[],r=[];return Array.from(t.querySelectorAll(Lpe)).forEach((n,a)=>{const o=Npe(n);o===-1||!zpe(n)||(o===0?e.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(e)}function jpe(){return!0}function Wpe(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=Bpe,isEnabled:i=jpe,open:s}=t,l=R.useRef(!1),c=R.useRef(null),d=R.useRef(null),u=R.useRef(null),f=R.useRef(null),p=R.useRef(!1),m=R.useRef(null),g=an(pp(e),m),_=R.useRef(null);R.useEffect(()=>{!s||!m.current||(p.current=!r)},[r,s]),R.useEffect(()=>{if(!s||!m.current)return;const S=Pa(m.current);return m.current.contains(S.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{a||(u.current&&u.current.focus&&(l.current=!0,u.current.focus()),u.current=null)}},[s]),R.useEffect(()=>{if(!s||!m.current)return;const S=Pa(m.current),x=D=>{_.current=D,!(n||!i()||D.key!=="Tab")&&S.activeElement===m.current&&D.shiftKey&&(l.current=!0,d.current&&d.current.focus())},E=()=>{var P,O;const D=m.current;if(D===null)return;if(!S.hasFocus()||!i()||l.current){l.current=!1;return}if(D.contains(S.activeElement)||n&&S.activeElement!==c.current&&S.activeElement!==d.current)return;if(S.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let A=[];if((S.activeElement===c.current||S.activeElement===d.current)&&(A=o(m.current)),A.length>0){const I=!!((P=_.current)!=null&&P.shiftKey&&((O=_.current)==null?void 0:O.key)==="Tab"),F=A[0],N=A[A.length-1];typeof F!="string"&&typeof N!="string"&&(I?N.focus():F.focus())}else D.focus()};S.addEventListener("focusin",E),S.addEventListener("keydown",x,!0);const T=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(T),S.removeEventListener("focusin",E),S.removeEventListener("keydown",x,!0)}},[r,n,a,i,s,o]);const b=S=>{u.current===null&&(u.current=S.relatedTarget),p.current=!0,f.current=S.target;const x=e.props.onFocus;x&&x(S)},w=S=>{u.current===null&&(u.current=S.relatedTarget),p.current=!0};return H.jsxs(R.Fragment,{children:[H.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:c,"data-testid":"sentinelStart"}),R.cloneElement(e,{ref:g,onFocus:b}),H.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:d,"data-testid":"sentinelEnd"})]})}function Hpe(t){return typeof t=="function"?t():t}function Upe(t){return t?t.props.hasOwnProperty("in"):!1}const $F=()=>{},o0=new Rpe;function Vpe(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:i,children:s,onClose:l,open:c,rootRef:d}=t,u=R.useRef({}),f=R.useRef(null),p=R.useRef(null),m=an(p,d),[g,_]=R.useState(!c),b=Upe(s);let w=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(w=!1);const S=()=>Pa(f.current),x=()=>(u.current.modalRef=p.current,u.current.mount=f.current,u.current),E=()=>{o0.mount(x(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},T=pi(()=>{const j=Hpe(e)||S().body;o0.add(x(),j),p.current&&E()}),D=()=>o0.isTopModal(x()),A=pi(j=>{f.current=j,j&&(c&&D()?E():p.current&&Lm(p.current,w))}),P=R.useCallback(()=>{o0.remove(x(),w)},[w]);R.useEffect(()=>()=>{P()},[P]),R.useEffect(()=>{c?T():(!b||!a)&&P()},[c,P,b,a,T]);const O=j=>V=>{var Q;(Q=j.onKeyDown)==null||Q.call(j,V),!(V.key!=="Escape"||V.which===229||!D())&&(r||(V.stopPropagation(),l&&l(V,"escapeKeyDown")))},I=j=>V=>{var Q;(Q=j.onClick)==null||Q.call(j,V),V.target===V.currentTarget&&l&&l(V,"backdropClick")};return{getRootProps:(j={})=>{const V=NY(t);delete V.onTransitionEnter,delete V.onTransitionExited;const Q={...V,...j};return{role:"presentation",...Q,onKeyDown:O(Q),ref:m}},getBackdropProps:(j={})=>{const V=j;return{"aria-hidden":!0,...V,onClick:I(V),open:c}},getTransitionProps:()=>{const j=()=>{_(!1),o&&o()},V=()=>{_(!0),i&&i(),a&&P()};return{onEnter:TO(j,(s==null?void 0:s.props.onEnter)??$F),onExited:TO(V,(s==null?void 0:s.props.onExited)??$F)}},rootRef:m,portalRef:A,isTopModal:D,exited:g,hasTransition:b}}function Ype(t){return mt("MuiModal",t)}ft("MuiModal",["root","hidden","backdrop"]);const Gpe=t=>{const{open:e,exited:r,classes:n}=t;return wt({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},Ype,n)},qpe=be("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(vt(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),Xpe=be(pG,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),gG=R.forwardRef(function(e,r){const n=Ct({name:"MuiModal",props:e}),{BackdropComponent:a=Xpe,BackdropProps:o,classes:i,className:s,closeAfterTransition:l=!1,children:c,container:d,component:u,components:f={},componentsProps:p={},disableAutoFocus:m=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:_=!1,disablePortal:b=!1,disableRestoreFocus:w=!1,disableScrollLock:S=!1,hideBackdrop:x=!1,keepMounted:E=!1,onBackdropClick:T,onClose:D,onTransitionEnter:A,onTransitionExited:P,open:O,slotProps:I={},slots:F={},theme:N,...B}=n,j={...n,closeAfterTransition:l,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:S,hideBackdrop:x,keepMounted:E},{getRootProps:V,getBackdropProps:Q,getTransitionProps:G,portalRef:q,isTopModal:te,exited:z,hasTransition:U}=Vpe({...j,rootRef:r}),Z={...j,exited:z},K=Gpe(Z),se={};if(c.props.tabIndex===void 0&&(se.tabIndex="-1"),U){const{onEnter:he,onExited:rt}=G();se.onEnter=he,se.onExited=rt}const we={...B,slots:{root:f.Root,backdrop:f.Backdrop,...F},slotProps:{...p,...I}},[Le,$e]=_n("root",{elementType:qpe,externalForwardedProps:we,getSlotProps:V,additionalProps:{ref:r,as:u},ownerState:Z,className:Be(s,K==null?void 0:K.root,!Z.open&&Z.exited&&(K==null?void 0:K.hidden))}),[Me,ke]=_n("backdrop",{elementType:a,externalForwardedProps:we,additionalProps:o,getSlotProps:he=>Q({...he,onClick:rt=>{T&&T(rt),he!=null&&he.onClick&&he.onClick(rt)}}),className:Be(o==null?void 0:o.className,K==null?void 0:K.backdrop),ownerState:Z}),me=an(o==null?void 0:o.ref,ke.ref);return!E&&!O&&(!U||z)?null:H.jsx(dG,{ref:q,container:d,disablePortal:b,children:H.jsxs(Le,{...$e,children:[!x&&a?H.jsx(Me,{...ke,ref:me}):null,H.jsx(Wpe,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:w,isEnabled:te,open:O,children:R.cloneElement(c,se)})]})})});function Jpe(t){return mt("MuiDialog",t)}const MT=ft("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),_G=R.createContext({}),Kpe=be(pG,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),Zpe=t=>{const{classes:e,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=t,i={root:["root"],container:["container",`scroll${Oe(r)}`],paper:["paper",`paperScroll${Oe(r)}`,`paperWidth${Oe(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return wt(i,Jpe,e)},Qpe=be(gG,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),eve=be("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e[`scroll${Oe(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),tve=be(Zw,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e[`scrollPaper${Oe(r.scroll)}`],e[`paperWidth${Oe(String(r.maxWidth))}`],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})(vt(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${MT.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${MT.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+32*2)]:{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,[`&.${MT.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),_i=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiDialog"}),a=Ad(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:d,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:_="sm",onBackdropClick:b,onClick:w,onClose:S,open:x,PaperComponent:E=Zw,PaperProps:T={},scroll:D="paper",TransitionComponent:A=hG,transitionDuration:P=o,TransitionProps:O,...I}=n,F={...n,disableEscapeKeyDown:p,fullScreen:m,fullWidth:g,maxWidth:_,scroll:D},N=Zpe(F),B=R.useRef(),j=q=>{B.current=q.target===q.currentTarget},V=q=>{w&&w(q),B.current&&(B.current=null,b&&b(q),S&&S(q,"backdropClick"))},Q=Jw(s),G=R.useMemo(()=>({titleId:Q}),[Q]);return H.jsx(Qpe,{className:Be(N.root,f),closeAfterTransition:!0,components:{Backdrop:Kpe},componentsProps:{backdrop:{transitionDuration:P,as:c,...d}},disableEscapeKeyDown:p,onClose:S,open:x,ref:r,onClick:V,ownerState:F,...I,children:H.jsx(A,{appear:!0,in:x,timeout:P,role:"presentation",...O,children:H.jsx(eve,{className:Be(N.container),onMouseDown:j,ownerState:F,children:H.jsx(tve,{as:E,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":Q,"aria-modal":l,...T,className:Be(N.paper,T.className),ownerState:F,children:H.jsx(_G.Provider,{value:G,children:u})})})})})});function rve(t){return mt("MuiDialogActions",t)}ft("MuiDialogActions",["root","spacing"]);const nve=t=>{const{classes:e,disableSpacing:r}=t;return wt({root:["root",!r&&"spacing"]},rve,e)},ave=be("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),yi=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1,...i}=n,s={...n,disableSpacing:o},l=nve(s);return H.jsx(ave,{className:Be(l.root,a),ownerState:s,ref:r,...i})});function ove(t){return mt("MuiDialogContent",t)}ft("MuiDialogContent",["root","dividers"]);function ive(t){return mt("MuiDialogTitle",t)}const sve=ft("MuiDialogTitle",["root"]),lve=t=>{const{classes:e,dividers:r}=t;return wt({root:["root",r&&"dividers"]},ove,e)},cve=be("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})(vt(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${sve.root} + &`]:{paddingTop:0}}}]}))),bi=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiDialogContent"}),{className:a,dividers:o=!1,...i}=n,s={...n,dividers:o},l=lve(s);return H.jsx(cve,{className:Be(l.root,a),ownerState:s,ref:r,...i})});function uve(t){return mt("MuiDialogContentText",t)}ft("MuiDialogContentText",["root"]);const dve=t=>{const{classes:e}=t,n=wt({root:["root"]},uve,e);return{...e,...n}},fve=be(Gs,{shouldForwardProp:t=>yn(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({}),aS=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiDialogContentText"}),{children:a,className:o,...i}=n,s=dve(i);return H.jsx(fve,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:i,className:Be(s.root,o),...n,classes:s})}),hve=t=>{const{classes:e}=t;return wt({root:["root"]},ive,e)},pve=be(Gs,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),wi=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiDialogTitle"}),{className:a,id:o,...i}=n,s=n,l=hve(s),{titleId:c=o}=R.useContext(_G);return H.jsx(pve,{component:"h2",className:Be(l.root,a),ownerState:s,ref:r,variant:"h6",id:o??c,...i})}),AF=ft("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function vve(t){return mt("MuiFab",t)}const PF=ft("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),mve=t=>{const{color:e,variant:r,classes:n,size:a}=t,o={root:["root",r,`size${Oe(a)}`,e==="inherit"?"colorInherit":e]},i=wt(o,vve,n);return{...n,...i}},gve=be(jc,{name:"MuiFab",slot:"Root",shouldForwardProp:t=>yn(t)||t==="classes",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${Oe(r.size)}`],r.color==="inherit"&&e.colorInherit,e[Oe(r.size)],e[r.color]]}})(vt(({theme:t})=>{var e,r;return{...t.typography.button,minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:(r=(e=t.palette).getContrastText)==null?void 0:r.call(e,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},[`&.${PF.focusVisible}`]:{boxShadow:(t.vars||t).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"}}]}}),vt(({theme:t})=>({variants:[...Object.entries(t.palette).filter(on(["dark","contrastText"])).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}}}}))]})),vt(({theme:t})=>({[`&.${PF.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}))),nl=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiFab"}),{children:a,className:o,color:i="default",component:s="button",disabled:l=!1,disableFocusRipple:c=!1,focusVisibleClassName:d,size:u="large",variant:f="circular",...p}=n,m={...n,color:i,component:s,disabled:l,disableFocusRipple:c,size:u,variant:f},g=mve(m);return H.jsx(gve,{className:Be(g.root,o),component:s,disabled:l,focusRipple:!c,focusVisibleClassName:Be(g.focusVisible,d),ownerState:m,ref:r,...p,classes:g,children:a})}),_ve=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:a,size:o,hiddenLabel:i,multiline:s}=t,l={root:["root",!r&&"underline",n&&"adornedStart",a&&"adornedEnd",o==="small"&&`size${Oe(o)}`,i&&"hiddenLabel",s&&"multiline"],input:["input"]},c=wt(l,Nhe,e);return{...e,...c}},yve=be(rS,{shouldForwardProp:t=>yn(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...eS(t,e),!r.disableUnderline&&e.underline]}})(vt(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${su.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${su.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${su.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${su.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${su.disabled}, .${su.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${su.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(on()).map(([i])=>{var s;return{props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(s=(t.vars||t).palette[i])==null?void 0:s.main}`}}}}),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:s})=>i.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),bve=be(nS,{name:"MuiFilledInput",slot:"Input",overridesResolver:tS})(vt(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),NP=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:o={},componentsProps:i,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:d=!1,slotProps:u,slots:f={},type:p="text",...m}=n,g={...n,disableUnderline:a,fullWidth:s,inputComponent:c,multiline:d,type:p},_=_ve(n),b={root:{ownerState:g},input:{ownerState:g}},w=u??i?qn(b,u??i):b,S=f.root??o.Root??yve,x=f.input??o.Input??bve;return H.jsx(LP,{slots:{root:S,input:x},slotProps:w,fullWidth:s,inputComponent:c,multiline:d,ref:r,type:p,...m,classes:_})});NP.muiName="Input";function wve(t){return mt("MuiFormControl",t)}ft("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Sve=t=>{const{classes:e,margin:r,fullWidth:n}=t,a={root:["root",r!=="none"&&`margin${Oe(r)}`,n&&"fullWidth"]};return wt(a,wve,e)},xve=be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`margin${Oe(r.margin)}`],r.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),ju=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:u=!1,hiddenLabel:f=!1,margin:p="none",required:m=!1,size:g="medium",variant:_="outlined",...b}=n,w={...n,color:i,component:s,disabled:l,error:c,fullWidth:u,hiddenLabel:f,margin:p,required:m,size:g,variant:_},S=Sve(w),[x,E]=R.useState(()=>{let N=!1;return a&&R.Children.forEach(a,B=>{if(!xT(B,["Input","Select"]))return;const j=xT(B,["Select"])?B.props.input:B;j&&Ahe(j.props)&&(N=!0)}),N}),[T,D]=R.useState(()=>{let N=!1;return a&&R.Children.forEach(a,B=>{xT(B,["Input","Select"])&&(x1(B.props,!0)||x1(B.props.inputProps,!0))&&(N=!0)}),N}),[A,P]=R.useState(!1);l&&A&&P(!1);const O=d!==void 0&&!l?d:A;let I;R.useRef(!1);const F=R.useMemo(()=>({adornedStart:x,setAdornedStart:E,color:i,disabled:l,error:c,filled:T,focused:O,fullWidth:u,hiddenLabel:f,size:g,onBlur:()=>{P(!1)},onEmpty:()=>{D(!1)},onFilled:()=>{D(!0)},onFocus:()=>{P(!0)},registerEffect:I,required:m,variant:_}),[x,i,l,c,T,O,u,f,I,m,g,_]);return H.jsx(RP.Provider,{value:F,children:H.jsx(xve,{as:s,ownerState:w,className:Be(S.root,o),ref:r,...b,children:a})})});function Cve(t){return mt("MuiFormControlLabel",t)}const _m=ft("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Tve=t=>{const{classes:e,disabled:r,labelPlacement:n,error:a,required:o}=t,i={root:["root",r&&"disabled",`labelPlacement${Oe(n)}`,a&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return wt(i,Cve,e)},kve=be("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${_m.label}`]:e.label},e.root,e[`labelPlacement${Oe(r.labelPlacement)}`]]}})(vt(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${_m.disabled}`]:{cursor:"default"},[`& .${_m.label}`]:{[`&.${_m.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),Eve=be("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(vt(({theme:t})=>({[`&.${_m.error}`]:{color:(t.vars||t).palette.error.main}}))),At=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiFormControlLabel"}),{checked:a,className:o,componentsProps:i={},control:s,disabled:l,disableTypography:c,inputRef:d,label:u,labelPlacement:f="end",name:p,onChange:m,required:g,slots:_={},slotProps:b={},value:w,...S}=n,x=ps(),E=l??s.props.disabled??(x==null?void 0:x.disabled),T=g??s.props.required,D={disabled:E,required:T};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof s.props[j]>"u"&&typeof n[j]<"u"&&(D[j]=n[j])});const A=Hc({props:n,muiFormControl:x,states:["error"]}),P={...n,disabled:E,labelPlacement:f,required:T,error:A.error},O=Tve(P),I={slots:_,slotProps:{...i,...b}},[F,N]=_n("typography",{elementType:Gs,externalForwardedProps:I,ownerState:P});let B=u;return B!=null&&B.type!==Gs&&!c&&(B=H.jsx(F,{component:"span",...N,className:Be(O.label,N==null?void 0:N.className),children:B})),H.jsxs(kve,{className:Be(O.root,o),ownerState:P,ref:r,...S,children:[R.cloneElement(s,D),T?H.jsxs("div",{children:[B,H.jsxs(Eve,{ownerState:P,"aria-hidden":!0,className:O.asterisk,children:[" ","*"]})]}):B]})});function Dve(t){return mt("MuiFormGroup",t)}ft("MuiFormGroup",["root","row","error"]);const Mve=t=>{const{classes:e,row:r,error:n}=t;return wt({root:["root",r&&"row",n&&"error"]},Dve,e)},Ove=be("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.row&&e.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),OT=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiFormGroup"}),{className:a,row:o=!1,...i}=n,s=ps(),l=Hc({props:n,muiFormControl:s,states:["error"]}),c={...n,row:o,error:l.error},d=Mve(c);return H.jsx(Ove,{className:Be(d.root,a),ownerState:c,ref:r,...i})});function $ve(t){return mt("MuiFormHelperText",t)}const IF=ft("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var RF;const Ave=t=>{const{classes:e,contained:r,size:n,disabled:a,error:o,filled:i,focused:s,required:l}=t,c={root:["root",a&&"disabled",o&&"error",n&&`size${Oe(n)}`,r&&"contained",s&&"focused",i&&"filled",l&&"required"]};return wt(c,$ve,e)},Pve=be("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${Oe(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(vt(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${IF.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${IF.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),Ive=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiFormHelperText"}),{children:a,className:o,component:i="p",disabled:s,error:l,filled:c,focused:d,margin:u,required:f,variant:p,...m}=n,g=ps(),_=Hc({props:n,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),b={...n,component:i,contained:_.variant==="filled"||_.variant==="outlined",variant:_.variant,size:_.size,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required};delete b.ownerState;const w=Ave(b);return H.jsx(Pve,{as:i,className:Be(w.root,o),ref:r,...m,ownerState:b,children:a===" "?RF||(RF=H.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});function Rve(t){return mt("MuiFormLabel",t)}const Nm=ft("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Lve=t=>{const{classes:e,color:r,focused:n,disabled:a,error:o,filled:i,required:s}=t,l={root:["root",`color${Oe(r)}`,a&&"disabled",o&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return wt(l,Rve,e)},Nve=be("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled]}})(vt(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(on()).map(([e])=>({props:{color:e},style:{[`&.${Nm.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${Nm.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Nm.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),Fve=be("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(vt(({theme:t})=>({[`&.${Nm.error}`]:{color:(t.vars||t).palette.error.main}}))),zve=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiFormLabel"}),{children:a,className:o,color:i,component:s="label",disabled:l,error:c,filled:d,focused:u,required:f,...p}=n,m=ps(),g=Hc({props:n,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),_={...n,color:g.color||"primary",component:s,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},b=Lve(_);return H.jsxs(Nve,{as:s,ownerState:_,className:Be(b.root,o),ref:r,...p,children:[a,g.required&&H.jsxs(Fve,{ownerState:_,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]})});function BO(t){return`scale(${t}, ${t**2})`}const Bve={entering:{opacity:1,transform:BO(1)},entered:{opacity:1,transform:"none"}},$T=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),C1=R.forwardRef(function(e,r){const{addEndListener:n,appear:a=!0,children:o,easing:i,in:s,onEnter:l,onEntered:c,onEntering:d,onExit:u,onExited:f,onExiting:p,style:m,timeout:g="auto",TransitionComponent:_=hs,...b}=e,w=yh(),S=R.useRef(),x=Ad(),E=R.useRef(null),T=an(E,pp(o),r),D=j=>V=>{if(j){const Q=E.current;V===void 0?j(Q):j(Q,V)}},A=D(d),P=D((j,V)=>{tG(j);const{duration:Q,delay:G,easing:q}=b1({style:m,timeout:g,easing:i},{mode:"enter"});let te;g==="auto"?(te=x.transitions.getAutoHeightDuration(j.clientHeight),S.current=te):te=Q,j.style.transition=[x.transitions.create("opacity",{duration:te,delay:G}),x.transitions.create("transform",{duration:$T?te:te*.666,delay:G,easing:q})].join(","),l&&l(j,V)}),O=D(c),I=D(p),F=D(j=>{const{duration:V,delay:Q,easing:G}=b1({style:m,timeout:g,easing:i},{mode:"exit"});let q;g==="auto"?(q=x.transitions.getAutoHeightDuration(j.clientHeight),S.current=q):q=V,j.style.transition=[x.transitions.create("opacity",{duration:q,delay:Q}),x.transitions.create("transform",{duration:$T?q:q*.666,delay:$T?Q:Q||q*.333,easing:G})].join(","),j.style.opacity=0,j.style.transform=BO(.75),u&&u(j)}),N=D(f),B=j=>{g==="auto"&&w.start(S.current||0,j),n&&n(E.current,j)};return H.jsx(_,{appear:a,in:s,nodeRef:E,onEnter:P,onEntered:O,onEntering:A,onExit:F,onExited:N,onExiting:I,addEndListener:B,timeout:g==="auto"?null:g,...b,children:(j,{ownerState:V,...Q})=>R.cloneElement(o,{style:{opacity:0,transform:BO(.75),visibility:j==="exited"&&!s?"hidden":void 0,...Bve[j],...m,...o.props.style},ref:T,...Q})})});C1&&(C1.muiSupportAuto=!0);const jve=iue({themeId:hi}),Wve=t=>{const{classes:e,disableUnderline:r}=t,a=wt({root:["root",!r&&"underline"],input:["input"]},Rhe,e);return{...e,...a}},Hve=be(rS,{shouldForwardProp:t=>yn(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...eS(t,e),!r.disableUnderline&&e.underline]}})(vt(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${yv.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yv.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${yv.disabled}, .${yv.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${yv.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(on()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),Uve=be(nS,{name:"MuiInput",slot:"Input",overridesResolver:tS})({}),Ui=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiInput"}),{disableUnderline:a=!1,components:o={},componentsProps:i,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:u={},type:f="text",...p}=n,m=Wve(n),_={root:{ownerState:{disableUnderline:a}}},b=d??i?qn(d??i,_):_,w=u.root??o.Root??Hve,S=u.input??o.Input??Uve;return H.jsx(LP,{slots:{root:w,input:S},slotProps:b,fullWidth:s,inputComponent:l,multiline:c,ref:r,type:f,...p,classes:m})});Ui.muiName="Input";function Vve(t){return mt("MuiInputLabel",t)}ft("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Yve=t=>{const{classes:e,formControl:r,size:n,shrink:a,disableAnimation:o,variant:i,required:s}=t,l={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${Oe(n)}`,i],asterisk:[s&&"asterisk"]},c=wt(l,Vve,e);return{...e,...c}},Gve=be(zve,{shouldForwardProp:t=>yn(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Nm.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(vt(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Fm=R.forwardRef(function(e,r){const n=Ct({name:"MuiInputLabel",props:e}),{disableAnimation:a=!1,margin:o,shrink:i,variant:s,className:l,...c}=n,d=ps();let u=i;typeof u>"u"&&d&&(u=d.filled||d.focused||d.adornedStart);const f=Hc({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),p={...n,disableAnimation:a,formControl:d,shrink:u,size:f.size,variant:f.variant,required:f.required,focused:f.focused},m=Yve(p);return H.jsx(Gve,{"data-shrink":u,ref:r,className:Be(m.root,l),...c,ownerState:p,classes:m})});function qve(t){return mt("MuiLinearProgress",t)}ft("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const jO=4,WO=Bc` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`,Xve=typeof WO!="string"?hp` + animation: ${WO} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,HO=Bc` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`,Jve=typeof HO!="string"?hp` + animation: ${HO} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,UO=Bc` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`,Kve=typeof UO!="string"?hp` + animation: ${UO} 3s infinite linear; + `:null,Zve=t=>{const{classes:e,variant:r,color:n}=t,a={root:["root",`color${Oe(n)}`,r],dashed:["dashed",`dashedColor${Oe(n)}`],bar1:["bar",`barColor${Oe(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${Oe(n)}`,r==="buffer"&&`color${Oe(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return wt(a,qve,e)},FP=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?qw(t.palette[e].main,.62):Gw(t.palette[e].main,.5),Qve=be("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${Oe(r.color)}`],e[r.variant]]}})(vt(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(on()).map(([e])=>({props:{color:e},style:{backgroundColor:FP(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),eme=be("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${Oe(r.color)}`]]}})(vt(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(on()).map(([e])=>{const r=FP(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),Kve||{animation:`${UO} 3s infinite linear`}),tme=be("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${Oe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(vt(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(on()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${jO}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${jO}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:Xve||{animation:`${WO} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),rme=be("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${Oe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(vt(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(on()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(on()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:FP(t,e),transition:`transform .${jO}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:Jve||{animation:`${HO} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),zP=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiLinearProgress"}),{className:a,color:o="primary",value:i,valueBuffer:s,variant:l="indeterminate",...c}=n,d={...n,color:o,variant:l},u=Zve(d),f=vp(),p={},m={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&i!==void 0){p["aria-valuenow"]=Math.round(i),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let g=i-100;f&&(g=-g),m.bar1.transform=`translateX(${g}%)`}if(l==="buffer"&&s!==void 0){let g=(s||0)-100;f&&(g=-g),m.bar2.transform=`translateX(${g}%)`}return H.jsxs(Qve,{className:Be(u.root,a),ownerState:d,role:"progressbar",...p,ref:r,...c,children:[l==="buffer"?H.jsx(eme,{className:u.dashed,ownerState:d}):null,H.jsx(tme,{className:u.bar1,ownerState:d,style:m.bar1}),l==="determinate"?null:H.jsx(rme,{className:u.bar2,ownerState:d,style:m.bar2})]})}),lg=R.createContext({});function nme(t){return mt("MuiList",t)}ft("MuiList",["root","padding","dense","subheader"]);const ame=t=>{const{classes:e,disablePadding:r,dense:n,subheader:a}=t;return wt({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},nme,e)},ome=be("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),ime=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiList"}),{children:a,className:o,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...d}=n,u=R.useMemo(()=>({dense:s}),[s]),f={...n,component:i,dense:s,disablePadding:l},p=ame(f);return H.jsx(lg.Provider,{value:u,children:H.jsxs(ome,{as:i,className:Be(p.root,o),ref:r,ownerState:f,...d,children:[c,a]})})});function sme(t){return mt("MuiListItemIcon",t)}const LF=ft("MuiListItemIcon",["root","alignItemsFlexStart"]),lme=t=>{const{alignItems:e,classes:r}=t;return wt({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},sme,r)},cme=be("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(vt(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),ume=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiListItemIcon"}),{className:a,...o}=n,i=R.useContext(lg),s={...n,alignItems:i.alignItems},l=lme(s);return H.jsx(cme,{className:Be(l.root,a),ownerState:s,ref:r,...o})});function dme(t){return mt("MuiListItemText",t)}const bh=ft("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),fme=t=>{const{classes:e,inset:r,primary:n,secondary:a,dense:o}=t;return wt({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},dme,e)},hme=be("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bh.primary}`]:e.primary},{[`& .${bh.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${pF.root}:where(& .${bh.primary})`]:{display:"block"},[`.${pF.root}:where(& .${bh.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),pme=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiListItemText"}),{children:a,className:o,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:u,slots:f={},slotProps:p={},...m}=n,{dense:g}=R.useContext(lg);let _=l??a,b=d;const w={...n,disableTypography:i,inset:s,primary:!!_,secondary:!!b,dense:g},S=fme(w),x={slots:f,slotProps:{primary:c,secondary:u,...p}},[E,T]=_n("primary",{className:S.primary,elementType:Gs,externalForwardedProps:x,ownerState:w}),[D,A]=_n("secondary",{className:S.secondary,elementType:Gs,externalForwardedProps:x,ownerState:w});return _!=null&&_.type!==Gs&&!i&&(_=H.jsx(E,{variant:g?"body2":"body1",component:T!=null&&T.variant?void 0:"span",...T,children:_})),b!=null&&b.type!==Gs&&!i&&(b=H.jsx(D,{variant:"body2",color:"textSecondary",...A,children:b})),H.jsxs(hme,{className:Be(S.root,o),ownerState:w,ref:r,...m,children:[_,b]})});function AT(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function NF(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function yG(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function bv(t,e,r,n,a,o){let i=!1,s=a(t,e,e?r:!1);for(;s;){if(s===t.firstChild){if(i)return!1;i=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!yG(s,o)||l)s=a(t,s,r);else return s.focus(),!0}return!1}const vme=R.forwardRef(function(e,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:u="selectedMenu",...f}=e,p=R.useRef(null),m=R.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Oo(()=>{a&&p.current.focus()},[a]),R.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(S,{direction:x})=>{const E=!p.current.style.width;if(S.clientHeight{const x=p.current,E=S.key;if(S.ctrlKey||S.metaKey||S.altKey){d&&d(S);return}const D=Pa(x).activeElement;if(E==="ArrowDown")S.preventDefault(),bv(x,D,c,l,AT);else if(E==="ArrowUp")S.preventDefault(),bv(x,D,c,l,NF);else if(E==="Home")S.preventDefault(),bv(x,null,c,l,AT);else if(E==="End")S.preventDefault(),bv(x,null,c,l,NF);else if(E.length===1){const A=m.current,P=E.toLowerCase(),O=performance.now();A.keys.length>0&&(O-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&P!==A.keys[0]&&(A.repeating=!1)),A.lastTime=O,A.keys.push(P);const I=D&&!A.repeating&&yG(D,A);A.previousKeyMatched&&(I||bv(x,D,!1,l,AT,A))?S.preventDefault():A.previousKeyMatched=!1}d&&d(S)},_=an(p,r);let b=-1;R.Children.forEach(i,(S,x)=>{if(!R.isValidElement(S)){b===x&&(b+=1,b>=i.length&&(b=-1));return}S.props.disabled||(u==="selectedMenu"&&S.props.selected||b===-1)&&(b=x),b===x&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(b+=1,b>=i.length&&(b=-1))});const w=R.Children.map(i,(S,x)=>{if(x===b){const E={};return o&&(E.autoFocus=!0),S.props.tabIndex===void 0&&u==="selectedMenu"&&(E.tabIndex=0),R.cloneElement(S,E)}return S});return H.jsx(ime,{role:"menu",ref:_,className:s,onKeyDown:g,tabIndex:a?0:-1,...f,children:w})});function mme(t){return mt("MuiPopover",t)}ft("MuiPopover",["root","paper"]);function FF(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function zF(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function BF(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function PT(t){return typeof t=="function"?t():t}const gme=t=>{const{classes:e}=t;return wt({root:["root"],paper:["paper"]},mme,e)},_me=be(gG,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),bG=be(Zw,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),yme=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiPopover"}),{action:a,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:d,container:u,elevation:f=8,marginThreshold:p=16,open:m,PaperProps:g={},slots:_={},slotProps:b={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:S=C1,transitionDuration:x="auto",TransitionProps:{onEntering:E,...T}={},disableScrollLock:D=!1,...A}=n,P=(b==null?void 0:b.paper)??g,O=R.useRef(),I={...n,anchorOrigin:i,anchorReference:l,elevation:f,marginThreshold:p,externalPaperSlotProps:P,transformOrigin:w,TransitionComponent:S,transitionDuration:x,TransitionProps:T},F=gme(I),N=R.useCallback(()=>{if(l==="anchorPosition")return s;const ke=PT(o),he=(ke&&ke.nodeType===1?ke:Pa(O.current).body).getBoundingClientRect();return{top:he.top+FF(he,i.vertical),left:he.left+zF(he,i.horizontal)}},[o,i.horizontal,i.vertical,s,l]),B=R.useCallback(ke=>({vertical:FF(ke,w.vertical),horizontal:zF(ke,w.horizontal)}),[w.horizontal,w.vertical]),j=R.useCallback(ke=>{const me={width:ke.offsetWidth,height:ke.offsetHeight},he=B(me);if(l==="none")return{top:null,left:null,transformOrigin:BF(he)};const rt=N();let Pe=rt.top-he.vertical,Ie=rt.left-he.horizontal;const xt=Pe+me.height,Ce=Ie+me.width,Xe=gi(PT(o)),_t=Xe.innerHeight-p,ct=Xe.innerWidth-p;if(p!==null&&Pe_t){const it=xt-_t;Pe-=it,he.vertical+=it}if(p!==null&&Iect){const it=Ce-ct;Ie-=it,he.horizontal+=it}return{top:`${Math.round(Pe)}px`,left:`${Math.round(Ie)}px`,transformOrigin:BF(he)}},[o,l,N,B,p]),[V,Q]=R.useState(m),G=R.useCallback(()=>{const ke=O.current;if(!ke)return;const me=j(ke);me.top!==null&&ke.style.setProperty("top",me.top),me.left!==null&&(ke.style.left=me.left),ke.style.transformOrigin=me.transformOrigin,Q(!0)},[j]);R.useEffect(()=>(D&&window.addEventListener("scroll",G),()=>window.removeEventListener("scroll",G)),[o,D,G]);const q=(ke,me)=>{E&&E(ke,me),G()},te=()=>{Q(!1)};R.useEffect(()=>{m&&G()}),R.useImperativeHandle(a,()=>m?{updatePosition:()=>{G()}}:null,[m,G]),R.useEffect(()=>{if(!m)return;const ke=Xw(()=>{G()}),me=gi(o);return me.addEventListener("resize",ke),()=>{ke.clear(),me.removeEventListener("resize",ke)}},[o,m,G]);let z=x;x==="auto"&&!S.muiSupportAuto&&(z=void 0);const U=u||(o?Pa(PT(o)).body:void 0),Z={slots:_,slotProps:{...b,paper:P}},[K,se]=_n("paper",{elementType:bG,externalForwardedProps:Z,additionalProps:{elevation:f,className:Be(F.paper,P==null?void 0:P.className),style:V?P.style:{...P.style,opacity:0}},ownerState:I}),[we,{slotProps:Le,...$e}]=_n("root",{elementType:_me,externalForwardedProps:Z,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:U,open:m},ownerState:I,className:Be(F.root,d)}),Me=an(O,se.ref);return H.jsx(we,{...$e,...!NO(we)&&{slotProps:Le,disableScrollLock:D},...A,ref:r,children:H.jsx(S,{appear:!0,in:m,onEntering:q,onExited:te,timeout:z,...T,children:H.jsx(K,{...se,ref:Me,children:c})})})});function bme(t){return mt("MuiMenu",t)}ft("MuiMenu",["root","paper","list"]);const wme={vertical:"top",horizontal:"right"},Sme={vertical:"top",horizontal:"left"},xme=t=>{const{classes:e}=t;return wt({root:["root"],paper:["paper"],list:["list"]},bme,e)},Cme=be(yme,{shouldForwardProp:t=>yn(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Tme=be(bG,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),kme=be(vme,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),wG=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:o,className:i,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:d,PaperProps:u={},PopoverClasses:f,transitionDuration:p="auto",TransitionProps:{onEntering:m,...g}={},variant:_="selectedMenu",slots:b={},slotProps:w={},...S}=n,x=vp(),E={...n,autoFocus:a,disableAutoFocusItem:s,MenuListProps:l,onEntering:m,PaperProps:u,transitionDuration:p,TransitionProps:g,variant:_},T=xme(E),D=a&&!s&&d,A=R.useRef(null),P=(V,Q)=>{A.current&&A.current.adjustStyleForScrollbar(V,{direction:x?"rtl":"ltr"}),m&&m(V,Q)},O=V=>{V.key==="Tab"&&(V.preventDefault(),c&&c(V,"tabKeyDown"))};let I=-1;R.Children.map(o,(V,Q)=>{R.isValidElement(V)&&(V.props.disabled||(_==="selectedMenu"&&V.props.selected||I===-1)&&(I=Q))});const F=b.paper??Tme,N=w.paper??u,B=Pc({elementType:b.root,externalSlotProps:w.root,ownerState:E,className:[T.root,i]}),j=Pc({elementType:F,externalSlotProps:N,ownerState:E,className:T.paper});return H.jsx(Cme,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?wme:Sme,slots:{paper:F,root:b.root},slotProps:{root:B,paper:j},open:d,ref:r,transitionDuration:p,TransitionProps:{onEntering:P,...g},ownerState:E,...S,classes:f,children:H.jsx(kme,{onKeyDown:O,actions:A,autoFocus:a&&(I===-1||s),autoFocusItem:D,variant:_,...l,className:Be(T.list,l.className),children:o})})});function Eme(t){return mt("MuiMenuItem",t)}const wv=ft("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Dme=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},Mme=t=>{const{disabled:e,dense:r,divider:n,disableGutters:a,selected:o,classes:i}=t,l=wt({root:["root",r&&"dense",e&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},Eme,i);return{...i,...l}},Ome=be(jc,{shouldForwardProp:t=>yn(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Dme})(vt(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wv.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Vr(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${wv.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Vr(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${wv.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Vr(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Vr(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${wv.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${wv.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${AF.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${AF.inset}`]:{marginLeft:52},[`& .${bh.root}`]:{marginTop:0,marginBottom:0},[`& .${bh.inset}`]:{paddingLeft:36},[`& .${LF.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${LF.root} svg`]:{fontSize:"1.25rem"}}}]}))),Rr=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:u,className:f,...p}=n,m=R.useContext(lg),g=R.useMemo(()=>({dense:i||m.dense||!1,disableGutters:l}),[m.dense,i,l]),_=R.useRef(null);Oo(()=>{a&&_.current&&_.current.focus()},[a]);const b={...n,dense:g.dense,divider:s,disableGutters:l},w=Mme(n),S=an(_,r);let x;return n.disabled||(x=u!==void 0?u:-1),H.jsx(lg.Provider,{value:g,children:H.jsx(Ome,{ref:S,role:d,tabIndex:x,component:o,focusVisibleClassName:Be(w.focusVisible,c),className:Be(w.root,f),...p,ownerState:b,classes:w})})});function $me(t){return mt("MuiNativeSelect",t)}const BP=ft("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ame=t=>{const{classes:e,variant:r,disabled:n,multiple:a,open:o,error:i}=t,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${Oe(r)}`,o&&"iconOpen",n&&"disabled"]};return wt(s,$me,e)},SG=be("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${BP.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Pme=be(SG,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:yn,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${BP.multiple}`]:e.multiple}]}})({}),xG=be("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${BP.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Ime=be(xG,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${Oe(r.variant)}`],r.open&&e.iconOpen]}})({}),Rme=R.forwardRef(function(e,r){const{className:n,disabled:a,error:o,IconComponent:i,inputRef:s,variant:l="standard",...c}=e,d={...e,disabled:a,variant:l,error:o},u=Ame(d);return H.jsxs(R.Fragment,{children:[H.jsx(Pme,{ownerState:d,className:Be(u.select,n),disabled:a,ref:s||r,...c}),e.multiple?null:H.jsx(Ime,{as:i,ownerState:d,className:u.icon})]})});var jF;const Lme=be("fieldset",{shouldForwardProp:yn})({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%"}),Nme=be("legend",{shouldForwardProp:yn})(vt(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function Fme(t){const{children:e,classes:r,className:n,label:a,notched:o,...i}=t,s=a!=null&&a!=="",l={...t,notched:o,withLabel:s};return H.jsx(Lme,{"aria-hidden":!0,className:n,ownerState:l,...i,children:H.jsx(Nme,{ownerState:l,children:s?H.jsx("span",{children:a}):jF||(jF=H.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const zme=t=>{const{classes:e}=t,n=wt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Lhe,e);return{...e,...n}},Bme=be(rS,{shouldForwardProp:t=>yn(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:eS})(vt(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Pi.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Pi.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${Pi.focused} .${Pi.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(on()).map(([r])=>({props:{color:r},style:{[`&.${Pi.focused} .${Pi.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${Pi.error} .${Pi.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Pi.disabled} .${Pi.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),jme=be(Fme,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(vt(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),Wme=be(nS,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:tS})(vt(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),jP=R.forwardRef(function(e,r){var n;const a=Ct({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:d,slots:u={},type:f="text",...p}=a,m=zme(a),g=ps(),_=Hc({props:a,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...a,color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:g,fullWidth:i,hiddenLabel:_.hiddenLabel,multiline:c,size:_.size,type:f},w=u.root??o.Root??Bme,S=u.input??o.Input??Wme;return H.jsx(LP,{slots:{root:w,input:S},renderSuffix:x=>H.jsx(jme,{ownerState:b,className:m.notchedOutline,label:l!=null&&l!==""&&_.required?n||(n=H.jsxs(R.Fragment,{children:[l," ","*"]})):l,notched:typeof d<"u"?d:!!(x.startAdornment||x.filled||x.focused)}),fullWidth:i,inputComponent:s,multiline:c,ref:r,type:f,...p,classes:{...m,notchedOutline:null}})});jP.muiName="Input";const Hme=gt(H.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"),Ume=gt(H.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"),Vme=be("span",{shouldForwardProp:yn})({position:"relative",display:"flex"}),Yme=be(Hme)({transform:"scale(1)"}),Gme=be(Ume)(vt(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function CG(t){const{checked:e=!1,classes:r={},fontSize:n}=t,a={...t,checked:e};return H.jsxs(Vme,{className:r.root,ownerState:a,children:[H.jsx(Yme,{fontSize:n,className:r.background,ownerState:a}),H.jsx(Gme,{fontSize:n,className:r.dot,ownerState:a})]})}const qme=R.createContext(void 0);function Xme(){return R.useContext(qme)}function Jme(t){return mt("MuiRadio",t)}const WF=ft("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Kme=t=>{const{classes:e,color:r,size:n}=t,a={root:["root",`color${Oe(r)}`,n!=="medium"&&`size${Oe(n)}`]};return{...e,...wt(a,Jme,e)}},Zme=be(mG,{shouldForwardProp:t=>yn(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size!=="medium"&&e[`size${Oe(r.size)}`],e[`color${Oe(r.color)}`]]}})(vt(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${WF.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Vr(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(on()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Vr(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(on()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${WF.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function Qme(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const HF=H.jsx(CG,{checked:!0}),UF=H.jsx(CG,{}),Cr=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:o=HF,color:i="primary",icon:s=UF,name:l,onChange:c,size:d="medium",className:u,disabled:f,disableRipple:p=!1,...m}=n,g=ps();let _=f;g&&typeof _>"u"&&(_=g.disabled),_??(_=!1);const b={...n,disabled:_,disableRipple:p,color:i,size:d},w=Kme(b),S=Xme();let x=a;const E=TO(c,S&&S.onChange);let T=l;return S&&(typeof x>"u"&&(x=Qme(S.value,n.value)),typeof T>"u"&&(T=S.name)),H.jsx(Zme,{type:"radio",icon:R.cloneElement(s,{fontSize:UF.props.fontSize??d}),checkedIcon:R.cloneElement(o,{fontSize:HF.props.fontSize??d}),disabled:_,ownerState:b,classes:w,name:T,checked:x,onChange:E,ref:r,className:Be(w.root,u),...m})});function ege(t){return mt("MuiSelect",t)}const Sv=ft("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var VF;const tge=be(SG,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${Sv.select}`]:e.select},{[`&.${Sv.select}`]:e[r.variant]},{[`&.${Sv.error}`]:e.error},{[`&.${Sv.multiple}`]:e.multiple}]}})({[`&.${Sv.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),rge=be(xG,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${Oe(r.variant)}`],r.open&&e.iconOpen]}})({}),nge=be("input",{shouldForwardProp:t=>KY(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function YF(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function age(t){return t==null||typeof t=="string"&&!t.trim()}const oge=t=>{const{classes:e,variant:r,disabled:n,multiple:a,open:o,error:i}=t,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${Oe(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return wt(s,ege,e)},ige=R.forwardRef(function(e,r){var Ut;const{"aria-describedby":n,"aria-label":a,autoFocus:o,autoWidth:i,children:s,className:l,defaultOpen:c,defaultValue:d,disabled:u,displayEmpty:f,error:p=!1,IconComponent:m,inputRef:g,labelId:_,MenuProps:b={},multiple:w,name:S,onBlur:x,onChange:E,onClose:T,onFocus:D,onOpen:A,open:P,readOnly:O,renderValue:I,required:F,SelectDisplayProps:N={},tabIndex:B,type:j,value:V,variant:Q="standard",...G}=e,[q,te]=g1({controlled:V,default:d,name:"Select"}),[z,U]=g1({controlled:P,default:c,name:"Select"}),Z=R.useRef(null),K=R.useRef(null),[se,we]=R.useState(null),{current:Le}=R.useRef(P!=null),[$e,Me]=R.useState(),ke=an(r,g),me=R.useCallback(ce=>{K.current=ce,ce&&we(ce)},[]),he=se==null?void 0:se.parentNode;R.useImperativeHandle(ke,()=>({focus:()=>{K.current.focus()},node:Z.current,value:q}),[q]),R.useEffect(()=>{c&&z&&se&&!Le&&(Me(i?null:he.clientWidth),K.current.focus())},[se,i]),R.useEffect(()=>{o&&K.current.focus()},[o]),R.useEffect(()=>{if(!_)return;const ce=Pa(K.current).getElementById(_);if(ce){const Se=()=>{getSelection().isCollapsed&&K.current.focus()};return ce.addEventListener("click",Se),()=>{ce.removeEventListener("click",Se)}}},[_]);const rt=(ce,Se)=>{ce?A&&A(Se):T&&T(Se),Le||(Me(i?null:he.clientWidth),U(ce))},Pe=ce=>{ce.button===0&&(ce.preventDefault(),K.current.focus(),rt(!0,ce))},Ie=ce=>{rt(!1,ce)},xt=R.Children.toArray(s),Ce=ce=>{const Se=xt.find(Je=>Je.props.value===ce.target.value);Se!==void 0&&(te(Se.props.value),E&&E(ce,Se))},Xe=ce=>Se=>{let Je;if(Se.currentTarget.hasAttribute("tabindex")){if(w){Je=Array.isArray(q)?q.slice():[];const st=q.indexOf(ce.props.value);st===-1?Je.push(ce.props.value):Je.splice(st,1)}else Je=ce.props.value;if(ce.props.onClick&&ce.props.onClick(Se),q!==Je&&(te(Je),E)){const st=Se.nativeEvent||Se,Gt=new st.constructor(st.type,st);Object.defineProperty(Gt,"target",{writable:!0,value:{value:Je,name:S}}),E(Gt,ce)}w||rt(!1,Se)}},_t=ce=>{O||[" ","ArrowUp","ArrowDown","Enter"].includes(ce.key)&&(ce.preventDefault(),rt(!0,ce))},ct=se!==null&&z,it=ce=>{!ct&&x&&(Object.defineProperty(ce,"target",{writable:!0,value:{value:q,name:S}}),x(ce))};delete G["aria-invalid"];let Ae,Rt;const de=[];let Ne=!1;(x1({value:q})||f)&&(I?Ae=I(q):Ne=!0);const Mt=xt.map(ce=>{if(!R.isValidElement(ce))return null;let Se;if(w){if(!Array.isArray(q))throw new Error(ll(2));Se=q.some(Je=>YF(Je,ce.props.value)),Se&&Ne&&de.push(ce.props.children)}else Se=YF(q,ce.props.value),Se&&Ne&&(Rt=ce.props.children);return R.cloneElement(ce,{"aria-selected":Se?"true":"false",onClick:Xe(ce),onKeyUp:Je=>{Je.key===" "&&Je.preventDefault(),ce.props.onKeyUp&&ce.props.onKeyUp(Je)},role:"option",selected:Se,value:void 0,"data-value":ce.props.value})});Ne&&(w?de.length===0?Ae=null:Ae=de.reduce((ce,Se,Je)=>(ce.push(Se),Je{const{classes:e}=t;return e},WP={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>yn(t)&&t!=="variant",slot:"Root"},lge=be(Ui,WP)(""),cge=be(jP,WP)(""),uge=be(NP,WP)(""),ii=R.forwardRef(function(e,r){const n=Ct({name:"MuiSelect",props:e}),{autoWidth:a=!1,children:o,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=Fhe,id:u,input:f,inputProps:p,label:m,labelId:g,MenuProps:_,multiple:b=!1,native:w=!1,onClose:S,onOpen:x,open:E,renderValue:T,SelectDisplayProps:D,variant:A="outlined",...P}=n,O=w?Rme:ige,I=ps(),F=Hc({props:n,muiFormControl:I,states:["variant","error"]}),N=F.variant||A,B={...n,variant:N,classes:i},j=sge(B),{root:V,...Q}=j,G=f||{standard:H.jsx(lge,{ownerState:B}),outlined:H.jsx(cge,{label:m,ownerState:B}),filled:H.jsx(uge,{ownerState:B})}[N],q=an(r,pp(G));return H.jsx(R.Fragment,{children:R.cloneElement(G,{inputComponent:O,inputProps:{children:o,error:F.error,IconComponent:d,variant:N,type:void 0,multiple:b,...w?{id:u}:{autoWidth:a,defaultOpen:l,displayEmpty:c,labelId:g,MenuProps:_,onClose:S,onOpen:x,open:E,renderValue:T,SelectDisplayProps:{id:u,...D}},...p,classes:p?qn(Q,p.classes):Q,...f?f.props.inputProps:{}},...(b&&w||c)&&N==="outlined"?{notched:!0}:{},ref:q,className:Be(G.props.className,s,j.root),...!f&&{variant:N},...P})})});ii.muiName="Select";function dge(t){return mt("MuiTooltip",t)}const Ur=ft("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function fge(t){return Math.round(t*1e5)/1e5}const hge=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:a,placement:o}=t,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Oe(o.split("-")[0])}`],arrow:["arrow"]};return wt(i,dge,e)},pge=be(fG,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(vt(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Ur.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ur.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ur.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ur.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Ur.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Ur.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Ur.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Ur.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),vge=be("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${Oe(r.placement.split("-")[0])}`]]}})(vt(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Vr(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${Ur.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ur.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ur.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ur.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${fge(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Ur.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ur.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Ur.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ur.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Ur.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ur.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Ur.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ur.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Ur.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Ur.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),mge=be("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(vt(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Vr(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let i0=!1;const GF=new Kw;let xv={x:0,y:0};function s0(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const IT=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiTooltip"}),{arrow:a=!1,children:o,classes:i,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:u=!1,disableInteractive:f=!1,disableTouchListener:p=!1,enterDelay:m=100,enterNextDelay:g=0,enterTouchDelay:_=700,followCursor:b=!1,id:w,leaveDelay:S=0,leaveTouchDelay:x=1500,onClose:E,onOpen:T,open:D,placement:A="bottom",PopperComponent:P,PopperProps:O={},slotProps:I={},slots:F={},title:N,TransitionComponent:B,TransitionProps:j,...V}=n,Q=R.isValidElement(o)?o:H.jsx("span",{children:o}),G=Ad(),q=vp(),[te,z]=R.useState(),[U,Z]=R.useState(null),K=R.useRef(!1),se=f||b,we=yh(),Le=yh(),$e=yh(),Me=yh(),[ke,me]=g1({controlled:D,default:!1,name:"Tooltip",state:"open"});let he=ke;const rt=Jw(w),Pe=R.useRef(),Ie=pi(()=>{Pe.current!==void 0&&(document.body.style.WebkitUserSelect=Pe.current,Pe.current=void 0),Me.clear()});R.useEffect(()=>Ie,[Ie]);const xt=kt=>{GF.clear(),i0=!0,me(!0),T&&!he&&T(kt)},Ce=pi(kt=>{GF.start(800+S,()=>{i0=!1}),me(!1),E&&he&&E(kt),we.start(G.transitions.duration.shortest,()=>{K.current=!1})}),Xe=kt=>{K.current&&kt.type!=="touchstart"||(te&&te.removeAttribute("title"),Le.clear(),$e.clear(),m||i0&&g?Le.start(i0?g:m,()=>{xt(kt)}):xt(kt))},_t=kt=>{Le.clear(),$e.start(S,()=>{Ce(kt)})},[,ct]=R.useState(!1),it=kt=>{_1(kt.target)||(ct(!1),_t(kt))},Ae=kt=>{te||z(kt.currentTarget),_1(kt.target)&&(ct(!0),Xe(kt))},Rt=kt=>{K.current=!0;const Qn=Q.props;Qn.onTouchStart&&Qn.onTouchStart(kt)},de=kt=>{Rt(kt),$e.clear(),we.clear(),Ie(),Pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Me.start(_,()=>{document.body.style.WebkitUserSelect=Pe.current,Xe(kt)})},Ne=kt=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(kt),Ie(),$e.start(x,()=>{Ce(kt)})};R.useEffect(()=>{if(!he)return;function kt(Qn){Qn.key==="Escape"&&Ce(Qn)}return document.addEventListener("keydown",kt),()=>{document.removeEventListener("keydown",kt)}},[Ce,he]);const Mt=an(pp(Q),z,r);!N&&N!==0&&(he=!1);const Ze=R.useRef(),Qe=kt=>{const Qn=Q.props;Qn.onMouseMove&&Qn.onMouseMove(kt),xv={x:kt.clientX,y:kt.clientY},Ze.current&&Ze.current.update()},Tt={},zt=typeof N=="string";c?(Tt.title=!he&&zt&&!u?N:null,Tt["aria-describedby"]=he?rt:null):(Tt["aria-label"]=zt?N:null,Tt["aria-labelledby"]=he&&!zt?rt:null);const He={...Tt,...V,...Q.props,className:Be(V.className,Q.props.className),onTouchStart:Rt,ref:Mt,...b?{onMouseMove:Qe}:{}},Yt={};p||(He.onTouchStart=de,He.onTouchEnd=Ne),u||(He.onMouseOver=s0(Xe,He.onMouseOver),He.onMouseLeave=s0(_t,He.onMouseLeave),se||(Yt.onMouseOver=Xe,Yt.onMouseLeave=_t)),d||(He.onFocus=s0(Ae,He.onFocus),He.onBlur=s0(it,He.onBlur),se||(Yt.onFocus=Ae,Yt.onBlur=it));const Qt={...n,isRtl:q,arrow:a,disableInteractive:se,placement:A,PopperComponentProp:P,touch:K.current},Ut=typeof I.popper=="function"?I.popper(Qt):I.popper,ce=R.useMemo(()=>{var Qn,Pp;let kt=[{name:"arrow",enabled:!!U,options:{element:U,padding:4}}];return(Qn=O.popperOptions)!=null&&Qn.modifiers&&(kt=kt.concat(O.popperOptions.modifiers)),(Pp=Ut==null?void 0:Ut.popperOptions)!=null&&Pp.modifiers&&(kt=kt.concat(Ut.popperOptions.modifiers)),{...O.popperOptions,...Ut==null?void 0:Ut.popperOptions,modifiers:kt}},[U,O.popperOptions,Ut==null?void 0:Ut.popperOptions]),Se=hge(Qt),Je=typeof I.transition=="function"?I.transition(Qt):I.transition,st={slots:{popper:s.Popper,transition:s.Transition??B,tooltip:s.Tooltip,arrow:s.Arrow,...F},slotProps:{arrow:I.arrow??l.arrow,popper:{...O,...Ut??l.popper},tooltip:I.tooltip??l.tooltip,transition:{...j,...Je??l.transition}}},[Gt,On]=_n("popper",{elementType:pge,externalForwardedProps:st,ownerState:Qt,className:Be(Se.popper,O==null?void 0:O.className)}),[$n,fa]=_n("transition",{elementType:C1,externalForwardedProps:st,ownerState:Qt}),[Gc,kl]=_n("tooltip",{elementType:vge,className:Se.tooltip,externalForwardedProps:st,ownerState:Qt}),[R_,L_]=_n("arrow",{elementType:mge,className:Se.arrow,externalForwardedProps:st,ownerState:Qt,ref:Z});return H.jsxs(R.Fragment,{children:[R.cloneElement(Q,He),H.jsx(Gt,{as:P??fG,placement:A,anchorEl:b?{getBoundingClientRect:()=>({top:xv.y,left:xv.x,right:xv.x,bottom:xv.y,width:0,height:0})}:te,popperRef:Ze,open:te?he:!1,id:rt,transition:!0,...Yt,...On,popperOptions:ce,children:({TransitionProps:kt})=>H.jsx($n,{timeout:G.transitions.duration.shorter,...kt,...fa,children:H.jsxs(Gc,{...kl,children:[N,a?H.jsx(R_,{...L_}):null]})})})]})});function gge(t){return mt("MuiTab",t)}const co=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),_ge=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:a,icon:o,label:i,selected:s,disabled:l}=t,c={root:["root",o&&i&&"labelIcon",`textColor${Oe(r)}`,n&&"fullWidth",a&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return wt(c,gge,e)},yge=be(jc,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Oe(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${co.iconWrapper}`]:e.iconWrapper},{[`& .${co.icon}`]:e.icon}]}})(vt(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${co.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${co.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${co.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${co.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${co.selected}`]:{opacity:1},[`&.${co.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${co.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${co.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${co.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${co.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),Sf=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:d,label:u,onChange:f,onClick:p,onFocus:m,selected:g,selectionFollowsFocus:_,textColor:b="inherit",value:w,wrapped:S=!1,...x}=n,E={...n,disabled:o,disableFocusRipple:i,selected:g,icon:!!l,iconPosition:c,label:!!u,fullWidth:s,textColor:b,wrapped:S},T=_ge(E),D=l&&u&&R.isValidElement(l)?R.cloneElement(l,{className:Be(T.icon,l.props.className)}):l,A=O=>{!g&&f&&f(O,w),p&&p(O)},P=O=>{_&&!g&&f&&f(O,w),m&&m(O)};return H.jsxs(yge,{focusRipple:!i,className:Be(T.root,a),ref:r,role:"tab","aria-selected":g,disabled:o,onClick:A,onFocus:P,ownerState:E,tabIndex:g?0:-1,...x,children:[c==="top"||c==="start"?H.jsxs(R.Fragment,{children:[D,u]}):H.jsxs(R.Fragment,{children:[u,D]}),d]})});function bge(t){return mt("MuiToolbar",t)}ft("MuiToolbar",["root","gutters","regular","dense"]);const wge=t=>{const{classes:e,disableGutters:r,variant:n}=t;return wt({root:["root",!r&&"gutters",n]},bge,e)},Sge=be("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(vt(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),TG=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:i=!1,variant:s="regular",...l}=n,c={...n,component:o,disableGutters:i,variant:s},d=wge(c);return H.jsx(Sge,{as:o,className:Be(d.root,a),ref:r,ownerState:c,...l})}),xge=gt(H.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Cge=gt(H.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Tge(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function kge(t,e,r,n={},a=()=>{}){const{ease:o=Tge,duration:i=300}=n;let s=null;const l=e[t];let c=!1;const d=()=>{c=!0},u=f=>{if(c){a(new Error("Animation cancelled"));return}s===null&&(s=f);const p=Math.min(1,(f-s)/i);if(e[t]=o(p)*(r-l)+l,p>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(u)};return l===r?(a(new Error("Element already at target position")),d):(requestAnimationFrame(u),d)}const Ege={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Dge(t){const{onChange:e,...r}=t,n=R.useRef(),a=R.useRef(null),o=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return Oo(()=>{const i=Xw(()=>{const l=n.current;o(),l!==n.current&&e(n.current)}),s=gi(a.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[e]),R.useEffect(()=>{o(),e(n.current)},[e]),H.jsx("div",{style:Ege,...r,ref:a})}function Mge(t){return mt("MuiTabScrollButton",t)}const Oge=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),$ge=t=>{const{classes:e,orientation:r,disabled:n}=t;return wt({root:["root",r,n&&"disabled"]},Mge,e)},Age=be(jc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Oge.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),Pge=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiTabScrollButton"}),{className:a,slots:o={},slotProps:i={},direction:s,orientation:l,disabled:c,...d}=n,u=vp(),f={isRtl:u,...n},p=$ge(f),m=o.StartScrollButtonIcon??xge,g=o.EndScrollButtonIcon??Cge,_=Pc({elementType:m,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),b=Pc({elementType:g,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return H.jsx(Age,{component:"div",className:Be(p.root,a),ref:r,role:null,ownerState:f,tabIndex:null,...d,style:{...d.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:s==="left"?H.jsx(m,{..._}):H.jsx(g,{...b})})});function Ige(t){return mt("MuiTabs",t)}const RT=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),qF=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,XF=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,l0=(t,e,r)=>{let n=!1,a=r(t,e);for(;a;){if(a===t.firstChild){if(n)return;n=!0}const o=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||o)a=r(t,a);else{a.focus();return}}},Rge=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:o,centered:i,scrollButtonsHideMobile:s,classes:l}=t;return wt({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Ige,l)},Lge=be("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${RT.scrollButtons}`]:e.scrollButtons},{[`& .${RT.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(vt(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${RT.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),Nge=be("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Fge=be("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),zge=be("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(vt(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),Bge=be(Dge)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),JF={},jge=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiTabs"}),a=Ad(),o=vp(),{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:d,className:u,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:m="primary",onChange:g,orientation:_="horizontal",ScrollButtonComponent:b=Pge,scrollButtons:w="auto",selectionFollowsFocus:S,slots:x={},slotProps:E={},TabIndicatorProps:T={},TabScrollButtonProps:D={},textColor:A="primary",value:P,variant:O="standard",visibleScrollbar:I=!1,...F}=n,N=O==="scrollable",B=_==="vertical",j=B?"scrollTop":"scrollLeft",V=B?"top":"left",Q=B?"bottom":"right",G=B?"clientHeight":"clientWidth",q=B?"height":"width",te={...n,component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:_,vertical:B,scrollButtons:w,textColor:A,variant:O,visibleScrollbar:I,fixed:!N,hideScrollbar:N&&!I,scrollableX:N&&!B,scrollableY:N&&B,centered:c&&!N,scrollButtonsHideMobile:!p},z=Rge(te),U=Pc({elementType:x.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:te}),Z=Pc({elementType:x.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:te}),[K,se]=R.useState(!1),[we,Le]=R.useState(JF),[$e,Me]=R.useState(!1),[ke,me]=R.useState(!1),[he,rt]=R.useState(!1),[Pe,Ie]=R.useState({overflow:"hidden",scrollbarWidth:0}),xt=new Map,Ce=R.useRef(null),Xe=R.useRef(null),_t=()=>{const ce=Ce.current;let Se;if(ce){const st=ce.getBoundingClientRect();Se={clientWidth:ce.clientWidth,scrollLeft:ce.scrollLeft,scrollTop:ce.scrollTop,scrollWidth:ce.scrollWidth,top:st.top,bottom:st.bottom,left:st.left,right:st.right}}let Je;if(ce&&P!==!1){const st=Xe.current.children;if(st.length>0){const Gt=st[xt.get(P)];Je=Gt?Gt.getBoundingClientRect():null}}return{tabsMeta:Se,tabMeta:Je}},ct=pi(()=>{const{tabsMeta:ce,tabMeta:Se}=_t();let Je=0,st;B?(st="top",Se&&ce&&(Je=Se.top-ce.top+ce.scrollTop)):(st=o?"right":"left",Se&&ce&&(Je=(o?-1:1)*(Se[st]-ce[st]+ce.scrollLeft)));const Gt={[st]:Je,[q]:Se?Se[q]:0};if(typeof we[st]!="number"||typeof we[q]!="number")Le(Gt);else{const On=Math.abs(we[st]-Gt[st]),$n=Math.abs(we[q]-Gt[q]);(On>=1||$n>=1)&&Le(Gt)}}),it=(ce,{animation:Se=!0}={})=>{Se?kge(j,Ce.current,ce,{duration:a.transitions.duration.standard}):Ce.current[j]=ce},Ae=ce=>{let Se=Ce.current[j];B?Se+=ce:Se+=ce*(o?-1:1),it(Se)},Rt=()=>{const ce=Ce.current[G];let Se=0;const Je=Array.from(Xe.current.children);for(let st=0;stce){st===0&&(Se=ce);break}Se+=Gt[G]}return Se},de=()=>{Ae(-1*Rt())},Ne=()=>{Ae(Rt())},Mt=R.useCallback(ce=>{Ie({overflow:null,scrollbarWidth:ce})},[]),Ze=()=>{const ce={};ce.scrollbarSizeListener=N?H.jsx(Bge,{onChange:Mt,className:Be(z.scrollableX,z.hideScrollbar)}):null;const Je=N&&(w==="auto"&&($e||ke)||w===!0);return ce.scrollButtonStart=Je?H.jsx(b,{slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:U},orientation:_,direction:o?"right":"left",onClick:de,disabled:!$e,...D,className:Be(z.scrollButtons,D.className)}):null,ce.scrollButtonEnd=Je?H.jsx(b,{slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Z},orientation:_,direction:o?"left":"right",onClick:Ne,disabled:!ke,...D,className:Be(z.scrollButtons,D.className)}):null,ce},Qe=pi(ce=>{const{tabsMeta:Se,tabMeta:Je}=_t();if(!(!Je||!Se)){if(Je[V]Se[Q]){const st=Se[j]+(Je[Q]-Se[Q]);it(st,{animation:ce})}}}),Tt=pi(()=>{N&&w!==!1&&rt(!he)});R.useEffect(()=>{const ce=Xw(()=>{Ce.current&&ct()});let Se;const Je=On=>{On.forEach($n=>{$n.removedNodes.forEach(fa=>{Se==null||Se.unobserve(fa)}),$n.addedNodes.forEach(fa=>{Se==null||Se.observe(fa)})}),ce(),Tt()},st=gi(Ce.current);st.addEventListener("resize",ce);let Gt;return typeof ResizeObserver<"u"&&(Se=new ResizeObserver(ce),Array.from(Xe.current.children).forEach(On=>{Se.observe(On)})),typeof MutationObserver<"u"&&(Gt=new MutationObserver(Je),Gt.observe(Xe.current,{childList:!0})),()=>{ce.clear(),st.removeEventListener("resize",ce),Gt==null||Gt.disconnect(),Se==null||Se.disconnect()}},[ct,Tt]),R.useEffect(()=>{const ce=Array.from(Xe.current.children),Se=ce.length;if(typeof IntersectionObserver<"u"&&Se>0&&N&&w!==!1){const Je=ce[0],st=ce[Se-1],Gt={root:Ce.current,threshold:.99},On=kl=>{Me(!kl[0].isIntersecting)},$n=new IntersectionObserver(On,Gt);$n.observe(Je);const fa=kl=>{me(!kl[0].isIntersecting)},Gc=new IntersectionObserver(fa,Gt);return Gc.observe(st),()=>{$n.disconnect(),Gc.disconnect()}}},[N,w,he,d==null?void 0:d.length]),R.useEffect(()=>{se(!0)},[]),R.useEffect(()=>{ct()}),R.useEffect(()=>{Qe(JF!==we)},[Qe,we]),R.useImperativeHandle(l,()=>({updateIndicator:ct,updateScrollButtons:Tt}),[ct,Tt]);const zt=H.jsx(zge,{...T,className:Be(z.indicator,T.className),ownerState:te,style:{...we,...T.style}});let He=0;const Yt=R.Children.map(d,ce=>{if(!R.isValidElement(ce))return null;const Se=ce.props.value===void 0?He:ce.props.value;xt.set(Se,He);const Je=Se===P;return He+=1,R.cloneElement(ce,{fullWidth:O==="fullWidth",indicator:Je&&!K&&zt,selected:Je,selectionFollowsFocus:S,onChange:g,textColor:A,value:Se,...He===1&&P===!1&&!ce.props.tabIndex?{tabIndex:0}:{}})}),Qt=ce=>{const Se=Xe.current,Je=Pa(Se).activeElement;if(Je.getAttribute("role")!=="tab")return;let Gt=_==="horizontal"?"ArrowLeft":"ArrowUp",On=_==="horizontal"?"ArrowRight":"ArrowDown";switch(_==="horizontal"&&o&&(Gt="ArrowRight",On="ArrowLeft"),ce.key){case Gt:ce.preventDefault(),l0(Se,Je,XF);break;case On:ce.preventDefault(),l0(Se,Je,qF);break;case"Home":ce.preventDefault(),l0(Se,null,qF);break;case"End":ce.preventDefault(),l0(Se,null,XF);break}},Ut=Ze();return H.jsxs(Lge,{className:Be(z.root,u),ownerState:te,ref:r,as:f,...F,children:[Ut.scrollButtonStart,Ut.scrollbarSizeListener,H.jsxs(Nge,{className:z.scroller,ownerState:te,style:{overflow:Pe.overflow,[B?`margin${o?"Left":"Right"}`:"marginBottom"]:I?void 0:-Pe.scrollbarWidth},ref:Ce,children:[H.jsx(Fge,{"aria-label":i,"aria-labelledby":s,"aria-orientation":_==="vertical"?"vertical":null,className:z.flexContainer,ownerState:te,onKeyDown:Qt,ref:Xe,role:"tablist",children:Yt}),K&&zt]}),Ut.scrollButtonEnd]})});function Wge(t){return mt("MuiTextField",t)}ft("MuiTextField",["root"]);const Hge={standard:Ui,filled:NP,outlined:jP},Uge=t=>{const{classes:e}=t;return wt({root:["root"]},Wge,e)},Vge=be(ju,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Vn=R.forwardRef(function(e,r){const n=Ct({props:e,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:i,className:s,color:l="primary",defaultValue:c,disabled:d=!1,error:u=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:m,id:g,InputLabelProps:_,inputProps:b,InputProps:w,inputRef:S,label:x,maxRows:E,minRows:T,multiline:D=!1,name:A,onBlur:P,onChange:O,onFocus:I,placeholder:F,required:N=!1,rows:B,select:j=!1,SelectProps:V,slots:Q={},slotProps:G={},type:q,value:te,variant:z="outlined",...U}=n,Z={...n,autoFocus:o,color:l,disabled:d,error:u,fullWidth:p,multiline:D,required:N,select:j,variant:z},K=Uge(Z),se=Jw(g),we=m&&se?`${se}-helper-text`:void 0,Le=x&&se?`${se}-label`:void 0,$e=Hge[z],Me={slots:Q,slotProps:{input:w,inputLabel:_,htmlInput:b,formHelperText:f,select:V,...G}},ke={},me=Me.slotProps.inputLabel;z==="outlined"&&(me&&typeof me.shrink<"u"&&(ke.notched=me.shrink),ke.label=x),j&&((!V||!V.native)&&(ke.id=void 0),ke["aria-describedby"]=void 0);const[he,rt]=_n("input",{elementType:$e,externalForwardedProps:Me,additionalProps:ke,ownerState:Z}),[Pe,Ie]=_n("inputLabel",{elementType:Fm,externalForwardedProps:Me,ownerState:Z}),[xt,Ce]=_n("htmlInput",{elementType:"input",externalForwardedProps:Me,ownerState:Z}),[Xe,_t]=_n("formHelperText",{elementType:Ive,externalForwardedProps:Me,ownerState:Z}),[ct,it]=_n("select",{elementType:ii,externalForwardedProps:Me,ownerState:Z}),Ae=H.jsx(he,{"aria-describedby":we,autoComplete:a,autoFocus:o,defaultValue:c,fullWidth:p,multiline:D,name:A,rows:B,maxRows:E,minRows:T,type:q,value:te,id:se,inputRef:S,onBlur:P,onChange:O,onFocus:I,placeholder:F,inputProps:Ce,slots:{input:Q.htmlInput?xt:void 0},...rt});return H.jsxs(Vge,{className:Be(K.root,s),disabled:d,error:u,fullWidth:p,ref:r,required:N,color:l,variant:z,ownerState:Z,...U,children:[x!=null&&x!==""&&H.jsx(Pe,{htmlFor:se,id:Le,...Ie,children:x}),j?H.jsx(ct,{"aria-describedby":we,id:se,labelId:Le,value:te,input:Ae,...it,children:i}):Ae,m&&H.jsx(Xe,{id:we,..._t,children:m})]})}),LT=11/23/100;function KF(t){const e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substr(1,2),16),e.g=parseInt(t.substr(3,2),16),e.b=parseInt(t.substr(5,2),16);else if(t.length===4){const r=t.substr(1,1),n=t.substr(2,1),a=t.substr(3,1);e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(a+a,16)}return e}function Yge(t){return`#${Math.round(t.r).toString(16)}${Math.round(t.g).toString(16)}${Math.round(t.b).toString(16)}`}function Gge(t,e,r){const n=KF(t),a=KF(e);return n.r+=a.r*(.05+LT*(r-1)),n.g+=a.g*(.05+LT*(r-1)),n.b+=a.b*(.05+LT*(r-1)),Yge(n)}function ZF(t,e){const r={};for(let n=1;n<=24;n++)r[`elevation${n}`]={backgroundColor:Gge(t,e,n)};return r}function qge(t,e){var i,s,l,c,d,u,f,p,m,g,_;let r,n;t==="dark"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:xn[200],"&:hover":{color:xn[100]}}},MuiPaper:ZF("#121212","#fff")},r={name:t,palette:{mode:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="blue"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:xn[400],"&:hover":{color:xn[300]}}}},r={name:t,palette:{mode:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}}}):t==="colored"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:xn[200],"&:hover":{color:xn[100]}}},MuiPaper:ZF("#151d21","#fff")},r={name:t,palette:{mode:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"}}):t==="PT"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:xn[400],"&:hover":{color:xn[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"}}):t==="DX"?(n={MuiAppBar:{colorDefault:{backgroundColor:"#a9a9a9"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:xn[400],"&:hover":{color:xn[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#F5F5F7"},secondary:{main:"#a9a9a9"},expert:"#BD1B24",text:{primary:"#007AFE",secondary:"#007AFE",disabled:"#007AFEAA"}}}):(n={MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:xn[400],"&:hover":{color:xn[300]}}}},r={name:t,palette:{mode:"light",primary:{main:"#3399CC",dark:"#256c97",light:"#76d0fd"},secondary:{main:"#164477"},expert:"#14bb00"}}),r.toolbar={height:48},r.saveToolbar={background:(s=(i=r.palette)==null?void 0:i.primary)==null?void 0:s.main,button:{borderRadius:3,height:32}},r.palette&&(r.palette.grey={main:EO[300],dark:EO[400]});const a=og(r),o=a.palette;return og(a,{components:{...n,MuiButton:{variants:[{props:{variant:"contained",color:"grey"},style:{backgroundColor:(l=o.grey)==null?void 0:l[300],color:o.getContrastText&&((c=o.grey)!=null&&c[300])?o.getContrastText(o.grey[300]):void 0}},{props:{variant:"outlined",color:"grey"},style:{color:(d=o.text)==null?void 0:d.primary,borderColor:o.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)","&.Mui-disabled":{border:`1px solid ${(u=o.action)==null?void 0:u.disabledBackground}`},"&:hover":{borderColor:o.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",backgroundColor:Vr(((f=o.text)==null?void 0:f.primary)||"",((p=o.action)==null?void 0:p.hoverOpacity)||.04)}}},{props:{variant:"text",color:"grey"},style:{color:(m=o.text)==null?void 0:m.primary,"&:hover":{backgroundColor:Vr(((g=o.text)==null?void 0:g.primary)||"",((_=o.action)==null?void 0:_.hoverOpacity)||.04)}}}]}}})}function Xge(){let t,e;const r=new Promise((n,a)=>{t=n,e=a});return r.resolve=t,r.reject=e,r}function Jge(t){return(t==null?void 0:t.rows.map(e=>e.value).filter(e=>!!e))??[]}function QF(t){return t!=null&&t.startsWith("system.host.")||(t=`system.host.${t}`),t}function ez(t){return new Promise(e=>{setTimeout(e,t)})}function c0(t){t=(t||"").toString();const e=t[0]==="*",r=t[t.length-1]==="*";return t=t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*"),(e?"":"^")+t+(r?"":"$")}var Vi;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.OBJECTS_LOADED=2]="OBJECTS_LOADED",t[t.READY=3]="READY"})(Vi||(Vi={}));var qs;(function(t){t.PERMISSION_ERROR="permissionError",t.NOT_CONNECTED="notConnectedError",t.TIMEOUT="timeout",t.NOT_ADMIN="Allowed only in admin",t.NOT_SUPPORTED="Not supported"})(qs||(qs={}));qs.PERMISSION_ERROR;qs.NOT_CONNECTED;const Kge=["material","echarts","vis"];class uc{constructor(e){ae(this,"props");ae(this,"ignoreState","");ae(this,"connected",!1);ae(this,"subscribed",!1);ae(this,"firstConnect",!0);ae(this,"waitForRestart",!1);ae(this,"loaded",!1);ae(this,"simStates",{});ae(this,"statesSubscribes",{});ae(this,"filesSubscribes",{});ae(this,"objectsSubscribes",{});ae(this,"objects",{});ae(this,"states",{});ae(this,"acl",null);ae(this,"isSecure",!1);ae(this,"onReadyDone",!1);ae(this,"onConnectionHandlers",[]);ae(this,"onLogHandlers",[]);ae(this,"onCmdStdoutHandler");ae(this,"onCmdStderrHandler");ae(this,"onCmdExitHandler");ae(this,"_socket");ae(this,"_waitForSocketPromise");ae(this,"_waitForFirstConnectionPromise",Xge());ae(this,"_instanceSubscriptions",{});ae(this,"_promises",{});ae(this,"_authTimer");ae(this,"_systemConfig");ae(this,"systemLang","en");this.props=this.applyDefaultProps(e),this.waitForSocketLib().then(()=>this.startSocket()).catch(r=>{alert(`Socket connection could not be initialized: ${r}`)})}applyDefaultProps(e){return{...e,protocol:e.protocol||window.location.protocol,host:e.host||window.location.hostname,port:e.port||(window.location.port==="3000"?8081:window.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}}onError(e){(this.props.onError??console.error)(e)}get systemConfig(){return this._systemConfig}static isWeb(){return window.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise?this._waitForSocketPromise:(this._waitForSocketPromise=new Promise(async(e,r)=>{if(typeof window.io>"u"&&typeof window.iob>"u")if(typeof window.registerSocketOnLoad=="function")window.registerSocketOnLoad(()=>e());else{for(let n=1;n<=30;n++){if(window.io||window.iob)return e();await ez(100)}r(new Error("Socket library could not be loaded!"))}else e()}),this._waitForSocketPromise)}async startSocket(){if(this._socket)return;let e=this.props.host,r=this.props.port,n=(this.props.protocol||window.location.protocol).replace(":",""),a=window.location.pathname;if(window.location.hostname==="iobroker.net"||window.location.hostname==="iobroker.pro")a="";else{if(window.socketUrl){const s=new URL(window.socketUrl);e=s.hostname,r=s.port,n=s.protocol.replace(":","")}const i=a.lastIndexOf("/");if(i!==-1&&(a=a.substring(0,i+1)),uc.isWeb()){const s=a.split("/");s.length>2&&(s.pop(),s.pop(),Kge.includes(s[s.length-1])&&s.pop(),a=s.join("/"),a.endsWith("/")||(a+="/"))}}const o=r?`${n}://${e}:${r}`:`${n}://${e}`;return this._socket=(window.io||window.iob).connect(o,{path:a.endsWith("/")?`${a}socket.io`:`${a}/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",i=>{this.onReadyDone=!1,i!==!0?(this.connected=!0,setTimeout(()=>this.getVersion().then(s=>{const[l,c,d]=s.version.split(".");parseInt(l,10)*1e4+parseInt(c,10)*100+parseInt(d,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit("authenticate",(f,p)=>this.onPreConnect(f,p))}).catch(s=>this.onError({message:s.toString(),operation:"getVersion"})),500)):this._socket.emit("authenticate",(s,l)=>{this.onPreConnect(s,l)})}),this._socket.on("reconnect",()=>{var i,s;this.onReadyDone=!1,(s=(i=this.props).onProgress)==null||s.call(i,Vi.READY),this.connected=!0,this.waitForRestart?window.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(l=>l(!0)))}),this._socket.on("disconnect",()=>{var i,s;this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,(s=(i=this.props).onProgress)==null||s.call(i,Vi.CONNECTING),this.onConnectionHandlers.forEach(l=>l(!1))}),this._socket.on("reauthenticate",()=>this.authenticate()),this._socket.on("log",i=>{var s,l;(l=(s=this.props).onLog)==null||l.call(s,i),this.onLogHandlers.forEach(c=>c(i))}),this._socket.on("error",i=>{let s;i==null?s="":typeof i.toString=="function"?s=i.toString():(s=JSON.stringify(i),console.error(`Received strange error: ${s}`)),s.includes("User not authorized")?this.authenticate():s.includes("websocket error")?(console.error(`Socket Error => reload: ${i}`),window.location.reload()):console.error(`Socket Error: ${i}`)}),this._socket.on("connect_error",i=>console.error(`Connect error: ${i}`)),this._socket.on("permissionError",i=>this.onError({message:"no permission",operation:i.operation,type:i.type,id:i.id||""})),this._socket.on("objectChange",(i,s)=>{setTimeout(()=>this.objectChange(i,s),0)}),this._socket.on("stateChange",(i,s)=>{setTimeout(()=>this.stateChange(i,s),0)}),this._socket.on("im",(i,s,l)=>{setTimeout(()=>this.instanceMessage(i,s,l),0)}),this._socket.on("fileChange",(i,s,l)=>{setTimeout(()=>this.fileChange(i,s,l),0)}),this._socket.on("cmdStdout",(i,s)=>{var l;(l=this.onCmdStdoutHandler)==null||l.call(this,i,s)}),this._socket.on("cmdStderr",(i,s)=>{var l;(l=this.onCmdStderrHandler)==null||l.call(this,i,s)}),this._socket.on("cmdExit",(i,s)=>{var l;(l=this.onCmdExitHandler)==null||l.call(this,i,s)}),Promise.resolve()}onPreConnect(e,r){var n,a;this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=r,this.waitForRestart?window.location.reload():(this.firstConnect?this.loadData().catch(o=>console.error(`Cannot load data: ${o}`)):(a=(n=this.props).onProgress)==null||a.call(n,Vi.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(o=>o(!0))),this._waitForFirstConnectionPromise.resolve()}static isCloud(){return window.location.hostname.includes("amazonaws.com")||window.location.hostname.includes("iobroker.in")?!0:typeof window.socketUrl>"u"?!1:window.socketUrl.includes("iobroker.in")||window.socketUrl.includes("amazonaws")}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getUserPermissions",(n,a)=>{n?r(n):e(a)})}})}async loadData(){if(this.loaded)return;const e=10;for(let r=1;r<=e;r++){if(this.doLoadData().catch(n=>console.error(`Cannot load data: ${n}`)),this.loaded)return;await ez(uc.isCloud()?5e3:1e3)}}async doLoadData(){var e,r,n,a,o,i,s,l,c;if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(d){this.onError(`Cannot read user permissions: ${d}`);return}try{this.props.admin5only&&!uc.isWeb()&&(!window.vendorPrefix||window.vendorPrefix==="@@vendorPrefix@@")?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(d){this.onError(`Cannot read system config: ${d}`);return}this._systemConfig&&(this.systemLang=(e=this._systemConfig.common)==null?void 0:e.language,this.systemLang||(this.systemLang=window.navigator.userLanguage||window.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)),(n=(r=this.props).onLanguage)==null||n.call(r,this.systemLang),this.loaded=!0,(o=(a=this.props).onProgress)==null||o.call(a,Vi.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),(s=(i=this.props).onProgress)==null||s.call(i,Vi.READY),this.onReadyDone||(this.onReadyDone=!0,(c=(l=this.props).onReady)==null||c.call(l,this.objects))}}authenticate(){window.location.search.includes("&href=")?window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}${window.location.search}${window.location.hash}`:window.location.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}?login&href=${window.location.search}${window.location.hash}`}async subscribeState(...e){let r,n,a;e.length===3?[r,n,a]=e:([r,a]=e,n=!1);let o;if(Array.isArray(r)?o=r:o=[r],typeof a!="function")throw new Error("The state change handler must be a function!");const i=[];for(let s=0;ss.includes("*"))){let s;for(let l=0;lconsole.error(`Cannot call state change handler: ${f}`))}}}else try{const s=await(uc.isWeb()?this.getStates(o):this.getForeignStates(o));if(s)for(const[l,c]of Object.entries(s)){const d=a(l,c);d instanceof Promise&&d.catch(u=>console.error(`Cannot call state change handler: ${u}`))}}catch(s){console.error(`Cannot getState "${o.join(", ")}": ${s.message}`);return}}async subscribeStateAsync(e,r){return this.subscribeState(e,r)}unsubscribeState(e,r){var o;let n;Array.isArray(e)?n=e:n=[e];const a=[];for(let i=0;i{try{const d=c(e,r,n);d instanceof Promise&&d.catch(u=>console.error(`Cannot call object change handler: ${u}`))}catch(d){console.error(`Error by callback of objectChange: ${d}`)}});if(a){const s=(i=(o=this.props).onObjectChange)==null?void 0:i.call(o,e,r);s instanceof Promise&&s.catch(l=>console.error(`Cannot call object change handler: ${l}`))}}stateChange(e,r){for(const n of Object.values(this.statesSubscribes))if(n.reg.test(e))for(const a of n.cbs)try{const o=a(e,r??null);o instanceof Promise&&o.catch(i=>console.error(`Cannot call state change handler: ${i}`))}catch(o){console.error(`Error by callback of stateChanged: ${o}`)}}instanceMessage(e,r,n){var a;(a=this._instanceSubscriptions[r])==null||a.forEach(o=>{if(o.messageType===e){const i=o.callback(n,r,e);i instanceof Promise&&i.catch(s=>console.error(`Cannot call instance message handler: ${s}`))}})}fileChange(e,r,n){for(const a of Object.values(this.filesSubscribes))if(a.regId.test(e)&&a.regFilePattern.test(r))for(const o of a.cbs)try{o(e,r,n)}catch(i){console.error(`Error by callback of fileChange: ${i}`)}}async subscribeFiles(e,r,n){if(typeof n!="function")throw new Error("The state change handler must be a function!");let a;Array.isArray(r)?a=r:a=[r];const o=[];for(let i=0;i{const u={elapsed:!1,clearTimeout:()=>{}};let f;n!==!1&&(f=setTimeout(()=>{u.elapsed=!0,a==null||a(),e&&this._promises[e]instanceof Promise&&delete this._promises[e],d(new Error(qs.TIMEOUT))},n??this.props.cmdTimeout),u.clearTimeout=()=>{clearTimeout(f)});try{await s(c,d,u)}catch(p){e&&this._promises[e]instanceof Promise&&delete this._promises[e],d(new Error(p.toString()))}});return e&&(this._promises[e]=l),l}resetCache(e,r){r?Object.keys(this._promises).filter(n=>n.startsWith(e)).forEach(n=>{delete this._promises[n]}):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getStates",e,(a,o)=>{this.states=o??{},a?n(a):r(this.states)})}})}getState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r(this.simStates[e]||{val:null,ack:!0});return}this._socket.emit("getState",e,(a,o)=>{a?n(a):r(o)})}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getBinaryState",e,(a,o)=>{a?n(a):r(o)})}})}setBinaryState(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("setBinaryState",e,r,o=>{o?a(o):n()})}})}setState(e,r,n){return typeof n=="boolean"&&(r={val:r,ack:n}),this.request({commandTimeout:!1,executor:(a,o)=>{if(e&&e===this.ignoreState){let i;if(typeof n=="boolean"||typeof r=="object"&&r.val!==void 0?i=r:i={val:r,ack:!1,ts:Date.now(),lc:Date.now(),from:"system.adapter.vis.0"},this.simStates[e]=i,this.statesSubscribes[e])for(const s of this.statesSubscribes[e].cbs)try{const l=s(e,i);l instanceof Promise&&l.catch(c=>console.error(`Cannot call state change handler: ${c}`))}catch(l){console.error(`Error by callback of stateChanged: ${l}`)}a();return}this._socket.emit("setState",e,r,i=>{i?o(i):a()})}})}getObjects(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{if(!e&&this.objects){n(this.objects);return}this._socket.emit(uc.isWeb()?"getObjects":"getAllObjects",(o,i)=>{var s,l;r||(l=(s=this.props).onProgress)==null||l.call(s,Vi.OBJECTS_LOADED),o?a(o):(this.objects=i??{},n(this.objects))})}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjects",e,(a,o)=>{a?n(a):r(o)})}})}_subscribe(e){var r,n;if(e&&!this.subscribed){this.subscribed=!0,(r=this.props.autoSubscribes)!=null&&r.length&&this._socket.emit("subscribeObjects",this.props.autoSubscribes);const a=Object.keys(this.objectsSubscribes);a.length&&this._socket.emit("subscribeObjects",a),Object.keys(this.objectsSubscribes).forEach(o=>this._socket.emit("subscribeObjects",o)),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(o=>this._socket.emit("subscribe",o)),Object.keys(this.filesSubscribes).forEach(o=>{const[i,s]=o.split("$%$");this._socket.emit("subscribeFiles",i,s)})}else if(!e&&this.subscribed){this.subscribed=!1,(n=this.props.autoSubscribes)!=null&&n.length&&this._socket.emit("unsubscribeObjects",this.props.autoSubscribes);const a=Object.keys(this.objectsSubscribes);a.length&&this._socket.emit("unsubscribeObjects",a),this.props.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(o=>this._socket.emit("unsubscribe",o)),Object.keys(this.filesSubscribes).forEach(o=>{const[i,s]=o.split("$%$");this._socket.emit("unsubscribeFiles",i,s)})}}requireLog(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("requireLog",e,a=>{a?n(a):r()})}})}delObject(e,r=!1){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("delObject",e,{maintenance:r},o=>{o?a(o):n()})}})}delObjects(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("delObjects",e,{maintenance:r},o=>{o?a(o):n()})}})}setObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("setObject",e,r,o=>{o?a(o):n()})}})):Promise.reject(new Error("Null object is not allowed"))}getObject(e){return this.request({commandTimeout:!1,executor:(r,n)=>{if(e&&e===this.ignoreState){r({_id:this.ignoreState,type:"state",common:{name:"ignored state",type:"mixed"}});return}this._socket.emit("getObject",e,(a,o)=>{a?n(a):r(o)})}})}sendTo(e,r,n){return this.request({commandTimeout:!1,executor:a=>{this._socket.emit("sendTo",e,r,n,o=>{a(o)})}})}extendObject(e,r){return r?(r=JSON.parse(JSON.stringify(r)),delete r.from,delete r.user,delete r.ts,this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("extendObject",e,r,o=>{o?a(o):n()})}})):Promise.reject(new Error("Null object is not allowed"))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){const r=this.onLogHandlers.indexOf(e);r!==-1&&this.onLogHandlers.splice(r,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){const r=this.onConnectionHandlers.indexOf(e);r!==-1&&this.onConnectionHandlers.splice(r,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,r){return this.request({cacheKey:`enums_${e||"all"}`,forceUpdate:r,commandTimeout:!1,executor:(n,a)=>{this._socket.emit("getObjectView","system","enum",{startkey:`enum.${e||""}`,endkey:e?`enum.${e}.香`:"enum.香"},(o,i)=>{if(o)a(o);else{const s={};if(i)for(let l=0;l{n=n||"",a=a||"香",this._socket.emit("getObjectView",e,r,{startkey:n,endkey:a},(s,l)=>{if(s)i(s);else{const c={};if(l&&l.rows)for(let d=0;d{this._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"香"},(n,a)=>{var o;n?r(n):e((o=a.rows)==null?void 0:o.map(i=>i.value).filter(i=>!!i))})}})}readDir(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("readDir",e,r,(o,i)=>{o?a(o):n(i)})}})}readFile(e,r,n){return this.request({commandTimeout:!1,executor:(a,o)=>{this._socket.emit(n?"readFile64":"readFile",e,r,(i,s,l)=>{i?o(i):a({file:s,mimeType:l})})}})}writeFile64(e,r,n){return this.request({commandTimeout:!1,executor:(a,o)=>{if(typeof n=="string")this._socket.emit("writeFile",e,r,n,i=>{i?o(i):a()});else{const i=btoa(new Uint8Array(n).reduce((s,l)=>s+String.fromCharCode(l),""));this._socket.emit("writeFile64",e,r,i,s=>{s?o(s):a()})}}})}deleteFile(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("deleteFile",e,r,o=>{o?a(o):n()})}})}deleteFolder(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("deleteFolder",e,r,o=>{o?a(o):n()})}})}rename(e,r,n){return this.request({commandTimeout:!1,executor:(a,o)=>{this._socket.emit("rename",e,r,n,i=>{i?o(i):a()})}})}renameFile(e,r,n){return this.request({commandTimeout:!1,executor:(a,o)=>{this._socket.emit("renameFile",e,r,n,i=>{i?o(i):a()})}})}cmdExec(e,r,n,a){return this.request({commandTimeout:a,executor:(o,i,s)=>{e=QF(e),this._socket.emit("cmdExec",e,n,r,l=>{s.elapsed||(s.clearTimeout(),l?i(l):o())})}})}getSystemConfig(e){return this.request({cacheKey:"systemConfig",forceUpdate:e,commandTimeout:!1,executor:async r=>{let n=await this.getObject("system.config");n??(n={}),n.common??(n.common={}),n.native??(n.native={}),r(n)}})}getCompactSystemConfig(e){return this.request({cacheKey:"systemConfigCommon",forceUpdate:e,commandTimeout:!1,requireAdmin:!0,executor:(r,n)=>{this._socket.emit("getCompactSystemConfig",(a,o)=>{a?n(a):(o??(o={}),o.common??(o.common={}),o.native??(o.native={}),r(o))})}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getForeignStates",e||"*",(a,o)=>{a?n(a):r(o??{})})}})}getForeignObjects(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("getForeignObjects",e||"*",r,(o,i)=>{o?a(o):n(i)})}})}setSystemConfig(e){return this.setObject("system.config",e)}getRawSocket(){return this._socket}getHistory(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("getHistory",e,r,(o,i)=>{o?a(o):n(i)})}})}getHistoryEx(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("getHistory",e,r,(o,i,s,l)=>{o?a(o):n({values:i,sessionId:l,step:s})})}})}getIpAddresses(e,r){return e=QF(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const a=await this.getObject(e);n((a==null?void 0:a.common.address)??[])}})}getVersion(e){return this.request({cacheKey:"version",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getVersion",(a,o,i)=>{a&&!o&&typeof a=="string"&&a.match(/\d+\.\d+\.\d+/)?r({version:a,serverName:"socketio"}):a?n(a):r({version:o,serverName:i})})}})}getWebServerName(){return this.request({cacheKey:"webName",commandTimeout:!1,executor:(e,r)=>{this._socket.emit("getAdapterName",(n,a)=>{n?r(n):e(a)})}})}fileExists(e,r){return this.request({commandTimeout:!1,executor:(n,a)=>{this._socket.emit("fileExists",e,r,(o,i)=>{o?a(o):n(!!i)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit("authEnabled",(r,n)=>{e(n)})}})}getUuid(){return this.request({cacheKey:"uuid",commandTimeout:!1,executor:async e=>{var n;const r=await this.getObject("system.meta.uuid");e((n=r==null?void 0:r.native)==null?void 0:n.uuid)}})}checkFeatureSupported(e,r){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:r,commandTimeout:!1,executor:(n,a)=>{this._socket.emit("checkFeatureSupported",e,(o,i)=>{o?a(o):n(i)})}})}getAdapterInstances(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`instances_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const a=e?`system.adapter.${e}.`:"system.adapter.",o=`${a}香`,i=await this.getObjectViewSystem("instance",a,o),s=Object.values(i);n(e?s.filter(l=>l.common.name===e):s)}})}getAdapters(e,r){return typeof e=="boolean"&&(r=e,e=""),e=e||"",this.request({cacheKey:`adapter_${e}`,forceUpdate:r,commandTimeout:!1,executor:async n=>{const a=await this.getObjectViewSystem("adapter",`system.adapter.${e||""}`,`system.adapter.${e||"香"}`),o=Object.values(a);n(e?o.filter(i=>i.common.name===e):o)}})}getGroups(e){return this.request({cacheKey:"groups",forceUpdate:e,commandTimeout:!1,executor:(r,n)=>{this._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.香"},(a,o)=>{a?n(a):r(Jge(o))})}})}logout(){return this.request({commandTimeout:!1,executor:(e,r)=>{this._socket.emit("logout",n=>{n?r(n):e(null)})}})}subscribeOnInstance(e,r,n,a){return this.request({commandTimeout:!1,executor:(o,i)=>{this._socket.emit("clientSubscribe",e,r,n,(s,l)=>{s?i(s):l&&(l.error?i(l.error):(e.startsWith("system.adapter.")||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find(c=>c.messageType===r&&c.callback===a)||this._instanceSubscriptions[e].push({messageType:r,callback:a}),o(l)))})}})}unsubscribeFromInstance(e,r,n){var i;e.startsWith("system.adapter.")||(e=`system.adapter.${e}`);let a;const o=[];do{a=!1;const s=(i=this._instanceSubscriptions[e])==null?void 0:i.findIndex(l=>(!r||l.messageType===r)&&(!n||l.callback===n));if(s!=null&&s!==-1){a=!0;const l=this._instanceSubscriptions[e][s].messageType;this._instanceSubscriptions[e].splice(s,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e],this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find(d=>d.messageType===l)||o.push(this.request({commandTimeout:!1,executor:(d,u)=>{this._socket.emit("clientUnsubscribe",e,r,(f,p)=>f?u(f):d(p))}}))}}while(a&&(!n||!r));return o.length?Promise.all(o).then(s=>!!s.find(l=>l)):Promise.resolve(!1)}log(e,r){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit("log",e,r),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}}const Zge=gt(H.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),Qge=gt(H.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"),e_e=gt(H.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"),t_e=gt(H.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"),kG=gt(H.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"),r_e=gt(H.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"),oS=gt(H.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"),Pd=gt(H.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),tp=gt(H.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"),HP=gt(H.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"),n_e=gt(H.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"),a_e=gt(H.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"),Hb=gt(H.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"),EG=gt(H.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"),o_e=gt(H.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"),i_e=gt(H.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"),s_e=gt(H.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"),l_e=gt(H.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"),c_e=gt(H.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"),u_e=gt(H.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"),DG=gt(H.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"),d_e=gt(H.jsx("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),f_e=gt(H.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),h_e=gt(H.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"),p_e=gt(H.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"),v_e=gt(H.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"),tz=gt(H.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish"),m_e=gt(H.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"),g_e=gt(H.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"),VO=gt(H.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"),__e=gt(H.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"),y_e=gt(H.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"),b_e=gt(H.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"),w_e=gt(H.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"),S_e=gt(H.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),x_e=gt(H.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop"),C_e=gt(H.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"),T_e=gt(H.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"),k_e=` +/** + * Copyright 2018-2024 Denis Haev (bluefox) + * + * MIT License + * + **/ + +.logo-background-light, .logo-background-colored { + background: white; +} +.logo-background-dark, .logo-background-blue { + background: black; +} +.logo-div { + position: absolute; + top: 50%; + left: 50%; + -ms-transform: translateX(-50%) translateY(-50%); + -webkit-transform: translate(-50%,-50%); + transform: translate(-50%,-50%); + overflow: hidden; + border-radius: 50%; + z-index: 2; +} +.logo-border { + /*border-color: #164477;*/ + border-top-color: #3399CC; + border-left-color: #164477; + border-bottom-color: #164477; + border-right-color: #164477; + border-radius: 50%; + border-style: solid; + box-sizing: border-box; + width: 100%; + height: 100%; + position: absolute; +} +.logo-top { + position: absolute; + width: 4.5%; + height: 16%; + top: 0; + z-index: 2; +} +.logo-i { + position: absolute; + width: 14.5%; + height: 60%; + top: 20%; + left: 42%; + background: #3399CC; +} +.logo-i-top { + position: absolute; + width: 14.5%; + height: 4%; + left: 42%; + background: #3399CC; + border-radius: 100%; +} +.logo-back { + width: 100%; + height: 100%; + z-index: 0; + overflow: hidden; +} +@keyframes logo-grow { + 0% { + width: 230px; + height: 230px; + transform: translate(-50%,-50%) scale(1); + opacity: 1 + } + 99% { + width: 230px; + height: 230px; + transform: translate(-50%,-50%) scale(10); + opacity: 0; + } + 100% { + width: 0; + height: 0; + opacity: 0; + } +} +@keyframes logo-spin { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } +@keyframes logo-color-inside-light { + 0% { + background: #FEFEFE; + } + 100% { + background: #3399CC; + } +} +@keyframes logo-color-inside-dark { + 0% { + background: #030303; + } + 100% { + background: #3399CC; + } +} +@keyframes logo-color-inside-colored { + 0% { + background: #FEFEFE; + } + 100% { + background: #3399CC; + } +} +@keyframes logo-color-inside-blue { + 0% { + background: #030303; + } + 100% { + background: #3399CC; + } +} + +@keyframes logo-color-outside-light { + 0% { + border-color: #FEFEFE; + } + 100% { + border-top-color: #3399CC; + border-left-color: #164477; + border-bottom-color: #164477; + border-right-color: #164477; + } +} +@keyframes logo-color-outside-dark { + 0% { + border-color: #040404; + } + 100% { + border-top-color: #3399CC; + border-left-color: #164477; + border-bottom-color: #164477; + border-right-color: #164477; + } +} +@keyframes logo-color-outside-colored { + 0% { + border-color: #FEFEFE; + } + 100% { + border-top-color: #3399CC; + border-left-color: #164477; + border-bottom-color: #164477; + border-right-color: #164477; + } +} +@keyframes logo-color-outside-blue { + 0% { + border-color: #040404; + } + 100% { + border-top-color: #3399CC; + border-left-color: #164477; + border-bottom-color: #164477; + border-right-color: #164477; + } +} + +.logo-animate-wait { + animation: logo-color-outside 1.5s, logo-spin 1.5s linear infinite; +} + +.logo-animate-grow-light { + background: #DDD; +} +.logo-animate-grow-dark { + background: #1d1d1d; +} +.logo-animate-grow-colored { + background: #DDD; +} +.logo-animate-grow-blue { + background: #1d1d1d; +} + +.logo-animate-grow { + display: inline-block; + text-align: center; + z-index: 1; + top: 50%; + left: 50%; + -ms-transform: translateX(-50%) translateY(-50%); + -webkit-transform: translate(-50%,-50%); + transform: translate(-50%,-50%); + width: 245px; + height: 245px; + border-radius: 50%; + position: absolute; + animation: logo-grow 1s 1 ease forwards; +} + +.logo-animate-color-inside-light { + animation: logo-color-inside-light 2.5s; +} +.logo-animate-color-inside-dark { + animation: logo-color-inside-dark 2.5s; +} +.logo-animate-color-inside-colored { + animation: logo-color-inside-colored 2.5s; +} +.logo-animate-color-inside-blue { + animation: logo-color-inside-blue 2.5s; +} + +.logo-animate-color-outside-light { + animation: logo-color-outside-light 1.5s; +} +.logo-animate-color-outside-dark { + animation: logo-color-outside-dark 1.5s; +} +.logo-animate-color-outside-colored { + animation: logo-color-outside-colored 1.5s; +} +.logo-animate-color-outside-blue { + animation: logo-color-outside-blue 1.5s; +} +`;function E_e(t){R.useEffect(()=>{if(!window.document.getElementById("loader-iobroker-component")){const n=window.document.createElement("style");n.setAttribute("id","loader-iobroker-component"),n.innerHTML=k_e,window.document.head.appendChild(n)}},[]);const e=t.size||234,r=t.themeName||t.theme||t.themeType||"light";return k.createElement("div",{className:`logo-back logo-background-${r}`,style:{backgroundImage:t.backgroundImage&&t.backgroundImage!=="@@loginBackgroundImage@@"?t.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!=="@@loginBackgroundImage@@"?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:t.backgroundColor&&t.backgroundColor!=="@@loginBackgroundColor@@"?t.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!=="@@loginBackgroundColor@@"?window.loadingBackgroundColor:void 0,backgroundSize:"cover"}},window.loadingHideLogo==="true"?null:k.createElement(k.Fragment,null,k.createElement("div",{className:"logo-div",style:{width:e,height:e}},k.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"37%"}}),k.createElement("div",{className:`logo-top logo-background-${r}`,style:{left:"57%"}}),k.createElement("div",{className:`logo-border logo-background-${r} logo-animate-wait`,style:{borderWidth:e*.132}}),k.createElement("div",{className:`logo-i logo-animate-color-inside-${r}`}),k.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{top:"18%"}}),k.createElement("div",{className:`logo-i-top logo-animate-color-inside-${r}`,style:{bottom:"18%"}})),k.createElement("div",{className:`logo-animate-grow logo-animate-grow-${r}`,style:{width:e+11,height:e+11}})))}function D_e(){const t=document.getSelection();if(!(t!=null&&t.rangeCount))return()=>{};let e=document.activeElement;const r=[];for(let n=0;n{t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(n=>t.addRange(n)),e&&e.focus()}}const rz={"text/plain":"Text","text/html":"Url",default:"Text"},M_e="Copy to clipboard: #{key}, Enter";function O_e(t){const e=`${/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl"}+C`;return t.replace(/#{\s*key\s*}/g,e)}function $_e(t,e){let r,n,a,o,i=!1;e=e||{};const s=e.debug||!1;try{if(r=D_e(),n=document.createRange(),a=document.getSelection(),o=document.createElement("span"),o.textContent=t,o.ariaHidden="true",o.style.all="unset",o.style.position="fixed",o.style.top="0px",o.style.clip="rect(0, 0, 0, 0)",o.style.whiteSpace="pre",o.style.userSelect="text",o.addEventListener("copy",c=>{var d,u,f,p;if(c.stopPropagation(),e!=null&&e.format)if(c.preventDefault(),typeof c.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),(d=window.clipboardData)==null||d.clearData();const m=rz[e.format]||rz.default;(u=window.clipboardData)==null||u.setData(m,t)}else(f=c.clipboardData)==null||f.clearData(),(p=c.clipboardData)==null||p.setData(e.format,t)}),document.body.appendChild(o),n.selectNodeContents(o),a==null||a.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");i=!0}catch(l){s&&console.error("unable to copy using execCommand: ",l),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),i=!0}catch(c){s&&console.error("unable to copy using clipboardData: ",c),s&&console.error("falling back to prompt");const d=O_e("message"in e?e.message||"":M_e);window.prompt(d,t)}}finally{a&&(n&&typeof a.removeRange=="function"?a.removeRange(n):a.removeAllRanges()),o&&document.body.removeChild(o),r&&r()}return i}const cr=class cr{static setLanguage(e){e&&(cr.lang=e)}static extendTranslations(e,r){if(e.prefix){const n=e;if(typeof n.prefix=="string"){const a=n.prefix;delete n.prefix,Object.keys(n).forEach(o=>{const i=o,s={},l=n[i];Object.keys(l).forEach(c=>{c&&l&&(c.startsWith(a)?s[c]=l[c]:s[`${a}${c}`]=l[c])}),e[i]=s})}else console.warn("Found prefix in translations, but it is not a string")}try{if(!r)e.en&&e.de&&e.ru?Object.keys(e).forEach(n=>{const a=n;cr.translations[a]=cr.translations[a]||{};const o=cr.translations[a];Object.assign(o,e[a])}):Object.keys(e).forEach(n=>{const a=e[n];Object.keys(a).forEach(o=>{const i=o,s=cr.translations[i];s?s[n]?s[n]!==a[i]&&console.warn(`Translation for word "${n}" in "${i}" was ignored: existing = "${s[n]}", new = ${a[i]}`):s[n]=a[i]:console.warn(`Used unknown language: ${i}`)})});else{cr.translations[r]||console.warn(`Used unknown language: ${r}`),cr.translations[r]=cr.translations[r]||{};const n=cr.translations[r];n&&Object.keys(e).forEach(a=>{n[a]?n[a]!==e[a]&&console.warn(`Translation for word "${a}" in "${r}" was ignored: existing = "${n[a]}", new = ${e[a]}`):n[a]=e[a]})}}catch(n){console.error(`Cannot apply translations: ${n}`)}}static setTranslations(e){e&&(cr.translations=e)}static getLanguage(){return cr.lang}static t(e,...r){const n=cr.translations[cr.lang];if(n){const a=n[e];if(a)e=a;else if(cr.unknownTranslations.includes(e)||(cr.unknownTranslations.push(e),!cr._disableWarning&&console.log(`Translate: ${e}`)),cr.lang!=="en"&&cr.translations.en){const o=cr.translations.en[e];o&&(e=o)}}for(const a of r)e=e.replace("%s",a);return e}static i18nShow(e){const r={};e?typeof e=="string"?(cr.unknownTranslations.forEach(n=>{n.startsWith(e)&&(r[n]=n.replace(e,""))}),console.log(JSON.stringify(r,null,2))):typeof e=="object"&&(cr.unknownTranslations.forEach(n=>{e.test(n)&&(r[n]=n)}),console.log(JSON.stringify(r,null,2))):(cr.unknownTranslations.forEach(n=>r[n]=n),console.log(JSON.stringify(r,null,2)))}static disableWarning(e){cr._disableWarning=!!e}};ae(cr,"translations",{}),ae(cr,"unknownTranslations",[]),ae(cr,"lang",window.sysLang||"en"),ae(cr,"_disableWarning",!1);let X=cr;window.i18nShow=X.i18nShow;window.i18nDisableWarning=X.disableWarning;const Ii="material",A_e=["Su","Mo","Tu","We","Th","Fr","Sa"],P_e=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],NT={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"},nz={JVBERi0:"pdf",R0lGODdh:"gif",R0lGODlh:"gif",iVBORw0KGgo:"png","/9j/":"jpg",PHN2Zw:"svg",Qk1:"bmp",AAABAA:"ico"},gr=class gr{static CapitalWords(e){return(e||"").split(/[\s_]/).filter(r=>r).map(r=>r?r[0].toUpperCase()+r.substring(1).toLowerCase():"").join(" ")}static formatSeconds(e){const r=Math.floor(e/86400);e%=3600*24;const n=Math.floor(e/3600).toString().padStart(2,"0");e%=3600;const a=Math.floor(e/60).toString().padStart(2,"0");e%=60;const o=Math.floor(e).toString().padStart(2,"0");let i="";return r&&(i+=`${r} ${X.t("ra_daysShortText")} `),i+=`${n}:${a}:${o}`,i}static getObjectName(e,r,n,a,o){var l;const i=e[r];let s;if(typeof n=="string"&&!a&&(a={language:n},n=null),a=a||{},a.language||(a.language=e["system.config"]&&e["system.config"].common&&e["system.config"].common.language||window.sysLang||"en"),n!=null&&n.name){const c=n.name;typeof c=="object"?s=a.language&&c[a.language]||c.en:s=c}else if(o&&((l=i==null?void 0:i.common)!=null&&l.desc)){const c=i.common.desc;typeof c=="object"?s=a.language&&c[a.language]||c.en||c.de||c.ru||"":s=c,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}else if(!o&&(i!=null&&i.common)){const c=i.common.name||i.common.desc;c&&typeof c=="object"?s=a.language&&c[a.language]||c.en||c.de||c.ru||"":s=c,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}else{const c=r.lastIndexOf(".");s=r.substring(c+1).replace(/[_.]/g," "),s=gr.CapitalWords(s)}return(s==null?void 0:s.trim())||""}static getObjectNameFromObj(e,r,n,a,o){var l,c;const i=e;let s=e&&e._id||"";if(typeof r=="string"&&!n&&(n={language:r},r=null),n=n||{},r!=null&&r.name){const d=r.name;typeof d=="object"?s=n.language&&d[n.language]||d.en:s=d}else if(a&&((l=i==null?void 0:i.common)!=null&&l.desc)){const d=i.common.desc;typeof d=="object"?s=n.language&&d[n.language]||d.en:s=d,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}else if(!a&&((c=i==null?void 0:i.common)!=null&&c.name)){let d=i.common.name;!d&&i.common.desc&&(d=i.common.desc),typeof d=="object"?s=n.language&&d[n.language]||d.en:s=d,s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}return o?s:s.trim()}static getSettingsOrder(e,r,n){let a;e&&Object.prototype.hasOwnProperty.call(e,"common")?a=e.common:a=e;let o;if(a!=null&&a.custom){o=a.custom[Ii];const i=n.user||"admin";if(o&&o[i]){if(r){if(o[i].subOrder&&o[i].subOrder[r])return JSON.parse(JSON.stringify(o[i].subOrder[r]))}else if(o[i].order)return JSON.parse(JSON.stringify(o[i].order))}}return null}static getSettingsCustomURLs(e,r,n){let a;e&&Object.prototype.hasOwnProperty.call(e,"common")?a=e.common:a=e;let o;if(a!=null&&a.custom){o=a.custom[Ii];const i=n.user||"admin";if(o&&o[i]){if(r){if(o[i].subURLs&&o[i].subURLs[r])return JSON.parse(JSON.stringify(o[i].subURLs[r]))}else if(o[i].URLs)return JSON.parse(JSON.stringify(o[i].URLs))}}return null}static reorder(e,r,n){const a=Array.from(e),[o]=a.splice(r,1);return a.splice(n,0,o),a}static getSettings(e,r,n){let a;const o=(e==null?void 0:e._id)||(r==null?void 0:r.id);let i;if(e&&Object.prototype.hasOwnProperty.call(e,"common")?i=e.common:i=e,i!=null&&i.custom?(a=i.custom,a=a[Ii]&&a[Ii][r.user||"admin"]?JSON.parse(JSON.stringify(a[Ii][r.user||"admin"])):{enabled:!0}):a={enabled:n===void 0?!0:n,useCustom:!1},Object.prototype.hasOwnProperty.call(a,"enabled")||(a.enabled=n===void 0?!0:n),r&&(!a.name&&r.name&&(a.name=r.name),!a.icon&&r.icon&&(a.icon=r.icon),!a.color&&r.color&&(a.color=r.color)),i&&(!a.color&&i.color&&(a.color=i.color),!a.icon&&i.icon&&(a.icon=i.icon),!a.name&&i.name&&(a.name=i.name)),typeof a.name=="object"&&(a.name=r.language&&a.name[r.language]||a.name.en,a.name=(a.name||"").toString().replace(/_/g," "),a.name===a.name.toUpperCase()&&(a.name=a.name[0]+a.name.substring(1).toLowerCase())),!a.name&&o){const s=o.lastIndexOf(".");a.name=o.substring(s+1).replace(/[_.]/g," "),a.name=(a.name||"").toString().replace(/_/g," "),a.name=gr.CapitalWords(a.name)}return a}static setSettings(e,r,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[Ii]=e.common.custom[Ii]||{},e.common.custom[Ii][n.user||"admin"]=r;const a=e.common.custom[Ii][n.user||"admin"];return a.useCommon&&(a.color!==void 0&&(e.common.color=a.color,delete a.color),a.icon!==void 0&&(e.common.icon=a.icon,delete a.icon),a.name!==void 0&&(typeof e.common.name!="object"&&n.language?e.common.name={[n.language]:a.name}:typeof e.common.name=="object"&&n.language&&(e.common.name[n.language]=a.name),delete a.name)),!0}return!1}static getIcon(e,r){return e!=null&&e.icon?e.icon.length<=2?k.createElement("span",{style:r||{}},e.icon):e.icon.startsWith("data:image")?k.createElement("img",{alt:e.name,src:e.icon,style:r||{}}):k.createElement("img",{alt:e.name,src:(e.prefix||"")+e.icon,style:r}):null}static getObjectIcon(e,r){var n;if(typeof e=="object"&&(r=e,e=r==null?void 0:r._id),(n=r==null?void 0:r.common)!=null&&n.icon){let a=r.common.icon;if(typeof a=="string"&&a.length<=2||a.startsWith("data:image"))return a;const o=e.split(".");return o[0]==="system"?a=`adapter/${o[2]}${a.startsWith("/")?"":"/"}${a}`:a=`adapter/${o[0]}${a.startsWith("/")?"":"/"}${a}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)?a=`../../${a}`:window.location.pathname.match(/material\/[.\d]+/)?a=`../../${a}`:window.location.pathname.match(/material\//)&&(a=`../${a}`),a}return null}static splitCamelCase(e){return e?gr.CapitalWords(e):""}static isUseBright(e,r){if(!e)return r===void 0?!0:r;e=e.toString(),e.startsWith("#")&&(e=e.slice(1));let n,a,o;const i=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(i&&i.length===4)n=parseInt(i[1],10),a=parseInt(i[2],10),o=parseInt(i[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),a=parseInt(e.slice(2,4),16),o=parseInt(e.slice(4,6),16)}return n*.299+a*.587+o*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return"--:--";const r=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,"0"),a=(e%60).toString().padStart(2,"0");return r?`${r}:${n}:${a}`:`${n}:${a}`}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(e){e&&(gr.dateFormat=e.toUpperCase().split(/[.-/]/),gr.dateFormat.splice(gr.dateFormat.indexOf("YYYY"),1))}static date2string(e){if(typeof e=="string"){if(e=e.trim(),!e)return"";if(e.match(/^[\w\s]+$/))return e;const n=e.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){const a=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],o=a.find(i=>i>31);if(o!==void 0){a.splice(a.indexOf(o),1);const i=a.find(s=>s>12);i?(a.splice(a.indexOf(i),1),e=new Date(o,a[0]-1,i)):gr.dateFormat[0][0]==="M"&&gr.dateFormat[1][0]==="D"?(e=new Date(o,a[0]-1,a[1]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(o,a[1]-1,a[0]))):gr.dateFormat[0][0]==="D"&&gr.dateFormat[1][0]==="M"?(e=new Date(o,a[1]-1,a[0]),Math.abs(e.getTime()-Date.now())>36e5*24*10&&(e=new Date(o,a[0]-1,a[1]))):e=new Date(e)}else e=new Date(e)}else e=new Date(e)}else e=new Date(e);let r=X.t(`ra_dow_${A_e[e.getDay()]}`).replace("ra_dow_","");return r+=`. ${e.getDate()} ${X.t(`ra_month_${P_e[e.getMonth()]}`).replace("ra_month_","")}`,r}static renderTextWithA(e){let r=e.match(/
||[^<]+<\/b>|[^<]+<\/i>/);if(r){const n=[];let a=1;do{const o=e.substring(0,r.index);if(e=e.substring((r.index||0)+r[0].length),o&&n.push(k.createElement("span",{key:`a${a++}`},o)),r[0].startsWith(""))n.push(k.createElement("b",{key:`a${a++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith(""))n.push(k.createElement("i",{key:`a${a++}`},r[0].substring(3,r[0].length-4)));else if(r[0].startsWith("([^<]*)||[^<]+<\/b>|[^<]+<\/i>/):null,!r&&e&&n.push(k.createElement("span",{key:`a${a++}`},e))}while(r);return n}return e}static getSmartName(e,r,n,a){var i,s;if(!r){if(!a)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const l=e;return(i=l==null?void 0:l.common)!=null&&i.custom&&l.common.custom[n]?l.common.custom[n].smartName:void 0}if(!a)return e[r].common.smartName;const o=e[r];return(s=o==null?void 0:o.common)!=null&&s.custom&&o.common.custom[n]&&o.common.custom[n].smartName||null}static getSmartNameFromObj(e,r,n){var o,i;if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;const a=(i=(o=e==null?void 0:e.common)==null?void 0:o.custom)==null?void 0:i[r];return a?a.smartName:void 0}static enableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName={}):e.common.smartName={}}static removeSmartName(e,r,n){n?e.common&&e.common.custom&&e.common.custom[r]&&(e.common.custom[r]=null):e.common.smartName=null}static updateSmartName(e,r,n,a,o,i){const s=X.getLanguage();if(typeof e.common.smartName=="string"){const l=e.common.smartName;e.common.smartName={},e.common.smartName[s]=l}if(e.native&&e.native.byON){delete e.native.byON;let l=e.common.smartName;l&&typeof l!="object"&&(l={en:l,[s]:l}),e.common.smartName=l}if(a!==void 0&&(i?(e.common.custom=e.common.custom||{},e.common.custom[o]=e.common.custom[o]||{},e.common.custom[o].smartName=e.common.custom[o].smartName||{},a?e.common.custom[o].smartName.smartType=a:delete e.common.custom[o].smartName.smartType):(e.common.smartName=e.common.smartName||{},a?e.common.smartName.smartType=a:delete e.common.smartName.smartType)),n!==void 0&&(i?(e.common.custom=e.common.custom||{},e.common.custom[o]=e.common.custom[o]||{},e.common.custom[o].smartName=e.common.custom[o].smartName||{},e.common.custom[o].smartName.byON=n):(e.common.smartName=e.common.smartName||{},e.common.smartName.byON=n)),r!==void 0){let l;if(i?(e.common.custom=e.common.custom||{},e.common.custom[o]=e.common.custom[o]||{},e.common.custom[o].smartName=e.common.custom[o].smartName||{},l=e.common.custom[o].smartName):(e.common.smartName=e.common.smartName||{},l=e.common.smartName),l[s]=r,l&&(!l[s]||l[s]===e.common.name&&(!e.common.role||e.common.role.includes("button")))){delete l[s];let c=!0;for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d)){c=!1;break}if(c)if(i&&e.common.custom&&e.common.custom[o])e.common.custom[o].smartName.byON===void 0?delete e.common.custom[o]:(delete e.common.custom[o].en,delete e.common.custom[o].de,delete e.common.custom[o].ru,delete e.common.custom[o].nl,delete e.common.custom[o].pl,delete e.common.custom[o].it,delete e.common.custom[o].fr,delete e.common.custom[o].pt,delete e.common.custom[o].es,delete e.common.custom[o].uk,delete e.common.custom[o]["zh-cn"]);else if(e.common.smartName&&e.common.smartName.byON!==void 0){const d=e.common.smartName;delete d.en,delete d.de,delete d.ru,delete d.nl,delete d.pl,delete d.it,delete d.fr,delete d.pt,delete d.es,delete d.uk,delete d["zh-cn"]}else e.common.smartName=null}}}static disableSmartName(e,r,n){n?(e.common.custom=e.common.custom||{},e.common.custom[r]=e.common.custom[r]||{},e.common.custom[r].smartName=!1):e.common.smartName=!1}static copyToClipboard(e,r){return r&&(r.stopPropagation(),r.preventDefault()),$_e(e)}static getFileExtension(e){const r=(e||"").lastIndexOf(".");return r!==-1?e.substring(r+1).toLowerCase():null}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;const r=["KB","MB","GB"];let n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n186?`#000000${n||""}`:`#FFFFFF${n||""}`;const s=(255-a).toString(16),l=(255-o).toString(16),c=(255-i).toString(16);return`#${s.padStart(2,"0")}${l.padStart(2,"0")}${c.padStart(2,"0")}${n||""}`}static color2rgb(e){if(e==null||e===""||typeof e!="string")return!1;if(e.startsWith("rgba")){const r=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0"))}else if(e.startsWith("rgb")){const r=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);r&&(e=parseInt(r[1],10).toString(16).padStart(2,"0")+parseInt(r[2],10).toString(16).padStart(2,"0")+parseInt(r[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 r=e[0]/255,n=e[1]/255,a=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let o=(r*.4124+n*.3576+a*.1805)/.95047,i=r*.2126+n*.7152+a*.0722,s=(r*.0193+n*.1192+a*.9505)/1.08883;return o=o>.008856?o**.33333333:7.787*o+.137931,i=i>.008856?i**.33333333:7.787*i+.137931,s=s>.008856?s**.33333333:7.787*s+.137931,[116*i-16,500*(o-i),200*(i-s)]}static colorDistance(e,r){const n=gr.color2rgb(e),a=gr.color2rgb(r);if(!n||!a)return 0;const o=gr.rgb2lab(n),i=gr.rgb2lab(a),s=o[0]-i[0],l=o[1]-i[1],c=o[2]-i[2],d=Math.sqrt(o[1]*o[1]+o[2]*o[2]),u=Math.sqrt(i[1]*i[1]+i[2]*i[2]),f=d-u;let p=l*l+c*c-f*f;p=p<0?0:Math.sqrt(p);const m=1+.045*d,g=1+.015*d,_=s,b=f/m,w=p/g,S=_*_+b*b+w*w;return S<0?0:S}static _toVal(e){let r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(let a=0;a{if(n=n.trim(),n){const a=n.split("="),o=decodeURIComponent(a[0]).trim();if(a.length>1){const i=decodeURIComponent(a[1]);if(i==="true")r[o]=!0;else if(i==="false")r[o]=!1;else{const s=parseFloat(i);s.toString()===i?r[o]=s:r[o]=i}}else r[o]=!0}}),r}static getParentId(e){const r=(e||"").toString().split(".");return r.length>1?(r.pop(),r.join(".")):null}static formatDate(e,r){if(!e)return"";let n;const a=(e.getMonth()+1).toString().padStart(2,"0"),o=e.getDate().toString().padStart(2,"0");return r==="MM/DD/YYYY"?n=`${a}/${o}/${e.getFullYear()}`:n=`${e.getFullYear()}-${a}-${o}`,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);const r=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),a=Math.floor(e%3600/60),o=e%60;return r?`${r}.${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`:n?`${n}:${a.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`:`0:${a.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`}return"0:00:00"}static MDtext2link(e){const r=e.match(/\d+\.\)\s/);return r&&(e=e.replace(r[0],r[0].replace(/\s/," "))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}static openLink(e,r){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/"),r==="this"?window.location.href=e:window.open(e,r||"_blank")}static MDgetTitle(e){var o;const r=gr.MDextractHeader(e),n=r.header;let a=r.body;if(!n.title){a=a.replace(/{[^}]*}/g,""),a=a.trim();const i=a.replace(/\r/g,"").split(` +`);for(let s=0;s{if(!i.trim())return;const s=i.indexOf(":");if(s!==-1){const l=i.substring(0,s).trim();let c=i.substring(s+1).trim();c=c.replace(/^['"]|['"]$/g,""),c==="true"?r[l]=!0:c==="false"?r[l]=!1:parseFloat(c).toString()===r[l]?r[l]=parseFloat(c):r[l]=c}else r[i.trim()]=!0}),e=e.substring(n+7))}return{header:r,body:e}}static MDremoveDocsify(e){const r=e.match(/{docsify-[^}]*}/g);return r&&r.forEach(n=>e=e.replace(n,"")),e}static generateFile(e,r){const n=document.createElement("a");n.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(r,null,2))}`),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){const r=e&4294901760,n=NT[e];let a;return n?a=[n]:e&1?a=[NT[1],`0x${(e&65534).toString(16)}`]:e&2?a=[NT[2],`0x${(e&65533).toString(16)}`]:a=[`0x${e.toString(16)}`],r&&a.push(`0x${(r>>16).toString(16).toUpperCase()}`),a}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){var a;const r=(a=e==null?void 0:e.common)==null?void 0:a.states;let n;if(r)if(typeof r=="string"&&r[0]==="{")try{n=JSON.parse(r)}catch{console.error(`Cannot parse states: ${r}`),n=null}else if(typeof r=="string"){const o=r.split(";");n={};for(let i=0;in[i]=o):(e==null?void 0:e.common.type)==="string"?r.forEach(o=>n[o]=o):(e==null?void 0:e.common.type)==="boolean"&&(n.false=r[0],n.true=r[1])):typeof r=="object"&&(n=r);return n||null}static async getSvg(e){const n=await(await fetch(e)).blob();return new Promise(a=>{const o=new FileReader;o.onload=()=>{var i;return a(((i=o.result)==null?void 0:i.toString())||"")},o.readAsDataURL(n)})}static detectMimeType(e){const r=Object.keys(nz).find(n=>e.startsWith(n));return r?nz[r]:null}static isStableRepository(e){return!!(typeof e=="string"&&e.toLowerCase().startsWith("stable")||e&&typeof e!="string"&&e.find(r=>r.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,...r){const n={};for(let a=0;a{if(typeof r[a][o]=="function")n[o]=r[a][o](e);else if(typeof r[a][o]=="object"){const i=r[a][o];n[o]={},Object.keys(i).forEach(s=>{typeof i[s]=="function"?n[o][s]=i(e):(i[s]||i[s]===0)&&(n[o][s]=i[s])})}else(r[a][o]||r[a][o]===0)&&(n[o]=r[a][o])});return n}};ae(gr,"namespace",Ii),ae(gr,"INSTANCES","instances"),ae(gr,"dateFormat",["DD","MM"]),ae(gr,"FORBIDDEN_CHARS",/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu);let Nt=gr;const FT={buttonIcon:{marginRight:8}};class A5t extends k.Component{constructor(r){super(r);ae(this,"isIFrame");const n=r.newReact===void 0?!0:r.newReact;if(r.isIFrame!==void 0)this.isIFrame=r.isIFrame;else try{this.isIFrame=!n&&window.self!==window.top}catch{this.isIFrame=!n}}render(){const r=this.props.noTextOnButtons,n={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},a={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(a.minHeight=48),this.props.error&&(n.border="1px solid red"),k.createElement(TG,{style:a},k.createElement(nl,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:n},k.createElement(VO,{style:r?void 0:FT.buttonIcon}),!r&&X.t("ra_Save")),k.createElement(nl,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...n,marginLeft:10}},k.createElement(VO,{style:r?void 0:FT.buttonIcon}),r?"+":X.t("ra_Save and close"),r&&k.createElement(tp,null)),k.createElement("div",{style:{flexGrow:1}}),k.createElement(nl,{variant:"extended","aria-label":"Close",onClick:()=>this.props.onClose(),style:n},k.createElement(tp,{style:r?void 0:FT.buttonIcon}),!r&&X.t("ra_Close")))}}const az={suppress:{fontSize:12},suppressRoot:{marginTop:"16px"}};class I_e extends R.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");let r=!1;this.props.suppressQuestionMinutes&&(r=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,r?Date.now()>r&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),r=!1):r=!1),this.state={suppress:r}}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):k.createElement(_i,{open:!0,maxWidth:"md",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:(e,r)=>{r!=="backdropClick"&&r!=="escapeKeyDown"&&this.handleCancel()},"aria-labelledby":"ar_confirmation_dialog_title","aria-describedby":"ar_confirmation_dialog_description"},k.createElement(wi,{id:"ar_confirmation_dialog_title"},this.props.title||X.t("ra_Are you sure?")),k.createElement(bi,null,k.createElement(aS,{id:"ar_confirmation_dialog_description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?k.createElement("br",null):null,this.props.suppressQuestionMinutes?k.createElement(At,{sx:{"& .FormControlLabel-label":az.suppress,"&.FormControlLabel-root":az.suppressRoot},control:k.createElement(vn,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||""}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||X.t("ra_Suppress question for next %s minutes",(this.props.suppressQuestionMinutes||2).toString())}):null)),k.createElement(yi,null,k.createElement(Tr,{id:`ar_dialog_confirm_ok_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:k.createElement(Pd,null)},this.props.ok||X.t("ra_Ok")),k.createElement(Tr,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||""}`,variant:"contained",onClick:()=>this.handleCancel(),color:"grey",startIcon:k.createElement(tp,null)},this.props.cancel||X.t("ra_Cancel"))))}}class MG extends R.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return k.createElement(_i,{open:!0,maxWidth:"sm",fullWidth:this.props.fullWidth!==void 0?this.props.fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},k.createElement(wi,{id:"ar_alert_dialog_title"},this.props.title||X.t("ra_Error")),k.createElement(bi,null,k.createElement(aS,{id:"ar_alert_dialog_description"},this.props.text||X.t("ra_Unknown error!"))),k.createElement(yi,null,k.createElement(Tr,{id:"ar_dialog_error_ok",variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:k.createElement(Pd,null)},X.t("ra_Ok"))))}}var ya={},xf={},zT,oz;function OG(){if(oz)return zT;oz=1;var t=typeof Gu=="object"&&Gu&&Gu.Object===Object&&Gu;return zT=t,zT}var BT,iz;function vs(){if(iz)return BT;iz=1;var t=OG(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return BT=r,BT}var jT,sz;function t_(){if(sz)return jT;sz=1;var t=vs(),e=t.Symbol;return jT=e,jT}var WT,lz;function R_e(){if(lz)return WT;lz=1;var t=t_(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,a=t?t.toStringTag:void 0;function o(i){var s=r.call(i,a),l=i[a];try{i[a]=void 0;var c=!0}catch{}var d=n.call(i);return c&&(s?i[a]=l:delete i[a]),d}return WT=o,WT}var HT,cz;function L_e(){if(cz)return HT;cz=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return HT=r,HT}var UT,uz;function Id(){if(uz)return UT;uz=1;var t=t_(),e=R_e(),r=L_e(),n="[object Null]",a="[object Undefined]",o=t?t.toStringTag:void 0;function i(s){return s==null?s===void 0?a:n:o&&o in Object(s)?e(s):r(s)}return UT=i,UT}var VT,dz;function Ci(){if(dz)return VT;dz=1;var t=Array.isArray;return VT=t,VT}var YT,fz;function gl(){if(fz)return YT;fz=1;function t(e){return e!=null&&typeof e=="object"}return YT=t,YT}var GT,hz;function N_e(){if(hz)return GT;hz=1;var t=Id(),e=Ci(),r=gl(),n="[object String]";function a(o){return typeof o=="string"||!e(o)&&r(o)&&t(o)==n}return GT=a,GT}var qT,pz;function F_e(){if(pz)return qT;pz=1;function t(e){return function(r,n,a){for(var o=-1,i=Object(r),s=a(r),l=s.length;l--;){var c=s[e?l:++o];if(n(i[c],c,i)===!1)break}return r}}return qT=t,qT}var XT,vz;function z_e(){if(vz)return XT;vz=1;var t=F_e(),e=t();return XT=e,XT}var JT,mz;function B_e(){if(mz)return JT;mz=1;function t(e,r){for(var n=-1,a=Array(e);++n-1&&n%1==0&&n-1&&r%1==0&&r<=t}return tk=e,tk}var rk,xz;function H_e(){if(xz)return rk;xz=1;var t=Id(),e=VP(),r=gl(),n="[object Arguments]",a="[object Array]",o="[object Boolean]",i="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",d="[object Number]",u="[object Object]",f="[object RegExp]",p="[object Set]",m="[object String]",g="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",x="[object Int8Array]",E="[object Int16Array]",T="[object Int32Array]",D="[object Uint8Array]",A="[object Uint8ClampedArray]",P="[object Uint16Array]",O="[object Uint32Array]",I={};I[w]=I[S]=I[x]=I[E]=I[T]=I[D]=I[A]=I[P]=I[O]=!0,I[n]=I[a]=I[_]=I[o]=I[b]=I[i]=I[s]=I[l]=I[c]=I[d]=I[u]=I[f]=I[p]=I[m]=I[g]=!1;function F(N){return r(N)&&e(N.length)&&!!I[t(N)]}return rk=F,rk}var nk,Cz;function YP(){if(Cz)return nk;Cz=1;function t(e){return function(r){return e(r)}}return nk=t,nk}var bm={exports:{}};bm.exports;var Tz;function GP(){return Tz||(Tz=1,function(t,e){var r=OG(),n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();t.exports=s}(bm,bm.exports)),bm.exports}var ak,kz;function PG(){if(kz)return ak;kz=1;var t=H_e(),e=YP(),r=GP(),n=r&&r.isTypedArray,a=n?e(n):t;return ak=a,ak}var ok,Ez;function IG(){if(Ez)return ok;Ez=1;var t=B_e(),e=$G(),r=Ci(),n=UP(),a=AG(),o=PG(),i=Object.prototype,s=i.hasOwnProperty;function l(c,d){var u=r(c),f=!u&&e(c),p=!u&&!f&&n(c),m=!u&&!f&&!p&&o(c),g=u||f||p||m,_=g?t(c.length,String):[],b=_.length;for(var w in c)(d||s.call(c,w))&&!(g&&(w=="length"||p&&(w=="offset"||w=="parent")||m&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||a(w,b)))&&_.push(w);return _}return ok=l,ok}var ik,Dz;function qP(){if(Dz)return ik;Dz=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||t;return r===a}return ik=e,ik}var sk,Mz;function RG(){if(Mz)return sk;Mz=1;function t(e,r){return function(n){return e(r(n))}}return sk=t,sk}var lk,Oz;function U_e(){if(Oz)return lk;Oz=1;var t=RG(),e=t(Object.keys,Object);return lk=e,lk}var ck,$z;function V_e(){if($z)return ck;$z=1;var t=qP(),e=U_e(),r=Object.prototype,n=r.hasOwnProperty;function a(o){if(!t(o))return e(o);var i=[];for(var s in Object(o))n.call(o,s)&&s!="constructor"&&i.push(s);return i}return ck=a,ck}var uk,Az;function mp(){if(Az)return uk;Az=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return uk=t,uk}var dk,Pz;function LG(){if(Pz)return dk;Pz=1;var t=Id(),e=mp(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function i(s){if(!e(s))return!1;var l=t(s);return l==n||l==a||l==r||l==o}return dk=i,dk}var fk,Iz;function iS(){if(Iz)return fk;Iz=1;var t=LG(),e=VP();function r(n){return n!=null&&e(n.length)&&!t(n)}return fk=r,fk}var hk,Rz;function r_(){if(Rz)return hk;Rz=1;var t=IG(),e=V_e(),r=iS();function n(a){return r(a)?t(a):e(a)}return hk=n,hk}var pk,Lz;function NG(){if(Lz)return pk;Lz=1;var t=z_e(),e=r_();function r(n,a){return n&&t(n,a,e)}return pk=r,pk}var vk,Nz;function FG(){if(Nz)return vk;Nz=1;function t(e){return e}return vk=t,vk}var mk,Fz;function Y_e(){if(Fz)return mk;Fz=1;var t=FG();function e(r){return typeof r=="function"?r:t}return mk=e,mk}var gk,zz;function XP(){if(zz)return gk;zz=1;var t=NG(),e=Y_e();function r(n,a){return n&&t(n,e(a))}return gk=r,gk}var _k,Bz;function JP(){if(Bz)return _k;Bz=1;var t=RG(),e=t(Object.getPrototypeOf,Object);return _k=e,_k}var yk,jz;function G_e(){if(jz)return yk;jz=1;var t=Id(),e=JP(),r=gl(),n="[object Object]",a=Function.prototype,o=Object.prototype,i=a.toString,s=o.hasOwnProperty,l=i.call(Object);function c(d){if(!r(d)||t(d)!=n)return!1;var u=e(d);if(u===null)return!0;var f=s.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&i.call(f)==l}return yk=c,yk}var bk,Wz;function zG(){if(Wz)return bk;Wz=1;function t(e,r){for(var n=-1,a=e==null?0:e.length,o=Array(a);++n-1}return kk=e,kk}var Ek,Xz;function Z_e(){if(Xz)return Ek;Xz=1;var t=sS();function e(r,n){var a=this.__data__,o=t(a,r);return o<0?(++this.size,a.push([r,n])):a[o][1]=n,this}return Ek=e,Ek}var Dk,Jz;function lS(){if(Jz)return Dk;Jz=1;var t=q_e(),e=X_e(),r=J_e(),n=K_e(),a=Z_e();function o(i){var s=-1,l=i==null?0:i.length;for(this.clear();++sp))return!1;var g=u.get(i),_=u.get(s);if(g&&_)return g==s&&_==i;var b=-1,w=!0,S=l&a?new t:void 0;for(u.set(i,s),u.set(s,i);++b0&&arguments[0]!==void 0?arguments[0]:[],f=[];return(0,s.default)(u,function(p){Array.isArray(p)?d(p).map(function(m){return f.push(m)}):(0,o.default)(p)?(0,n.default)(p,function(m,g){m===!0&&f.push(g),f.push(g+"-"+m)}):(0,e.default)(p)&&f.push(p)}),f};return xf.default=c,xf}var Cf={},tE,C8;function n0e(){if(C8)return tE;C8=1;function t(e,r){for(var n=-1,a=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],d=l.default&&(0,n.default)(l.default)||{};return c.map(function(u){var f=l[u];return f&&(0,e.default)(f,function(p,m){d[m]||(d[m]={}),d[m]=a({},d[m],f[m])}),u}),d};return Cf.default=i,Cf}var Tf={},rB;function M0e(){if(rB)return Tf;rB=1,Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.autoprefix=void 0;var t=XP(),e=n(t),r=Object.assign||function(i){for(var s=1;s1&&arguments[1]!==void 0?arguments[1]:"span";return function(u){i(f,u);function f(){var p,m,g,_;a(this,f);for(var b=arguments.length,w=Array(b),S=0;S1&&arguments[1]!==void 0?arguments[1]:"span";return function(u){i(f,u);function f(){var p,m,g,_;a(this,f);for(var b=arguments.length,w=Array(b),S=0;S1&&arguments[1]!==void 0?arguments[1]:!0;a[s]=l};return r===0&&o("first-child"),r===n-1&&o("last-child"),(r===0||r%2===0)&&o("even"),Math.abs(r%2)===1&&o("odd"),o("nth-child",r),a};return u0.default=t,u0}var iB;function P0e(){if(iB)return ya;iB=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.ReactCSS=ya.loop=ya.handleActive=ya.handleHover=ya.hover=void 0;var t=r0e(),e=f(t),r=D0e(),n=f(r),a=M0e(),o=f(a),i=O0e(),s=f(i),l=$0e(),c=f(l),d=A0e(),u=f(d);function f(m){return m&&m.__esModule?m:{default:m}}ya.hover=s.default,ya.handleHover=s.default,ya.handleActive=c.default,ya.loop=u.default;var p=ya.ReactCSS=function(g){for(var _=arguments.length,b=Array(_>1?_-1:0),w=1;w<_;w++)b[w-1]=arguments[w];var S=(0,e.default)(b),x=(0,n.default)(g,S);return(0,o.default)(x)};return ya.default=p,ya}var iI=P0e();const St=fs(iI);var I0e=function(e,r,n,a,o){var i=o.clientWidth,s=o.clientHeight,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,c=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,d=l-(o.getBoundingClientRect().left+window.pageXOffset),u=c-(o.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var f=void 0;if(u<0?f=0:u>s?f=1:f=Math.round(u*100/s)/100,r.a!==f)return{h:r.h,s:r.s,l:r.l,a:f,source:"rgb"}}else{var p=void 0;if(d<0?p=0:d>i?p=1:p=Math.round(d*100/i)/100,a!==p)return{h:r.h,s:r.s,l:r.l,a:p,source:"rgb"}}return null},$E={},R0e=function(e,r,n,a){if(typeof document>"u"&&!a)return null;var o=a?new a:document.createElement("canvas");o.width=n*2,o.height=n*2;var i=o.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,o.width,o.height),i.fillStyle=r,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),o.toDataURL()):null},L0e=function(e,r,n,a){var o=e+"-"+r+"-"+n+(a?"-server":"");if($E[o])return $E[o];var i=R0e(e,r,n,a);return $E[o]=i,i},sB=Object.assign||function(t){for(var e=1;e-1},J0e=function(e){return Number(String(e).replace(/%/g,""))},K0e=1,Wt=function(t){V0e(e,t);function e(r){H0e(this,e);var n=U0e(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(a){n.setUpdatedValue(a.target.value,a)},n.handleKeyDown=function(a){var o=J0e(a.target.value);if(!isNaN(o)&&X0e(a.keyCode)){var i=n.getArrowOffset(),s=a.keyCode===tq?o+i:o-i;n.setUpdatedValue(s,a)}},n.handleDrag=function(a){if(n.props.dragLabel){var o=Math.round(n.props.value+a.movementX);o>=0&&o<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(o),a)}},n.handleMouseDown=function(a){n.props.dragLabel&&(a.preventDefault(),n.handleDrag(a),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(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+K0e++,n}return j0e(e,[{key:"componentDidUpdate",value:function(n,a){this.props.value!==this.state.value&&(n.value!==this.props.value||a.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(n){return W0e({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Y0e}},{key:"setUpdatedValue",value:function(n,a){var o=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(o,a),this.setState({value:n})}},{key:"render",value:function(){var n=this,a=St({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 k.createElement("div",{style:a.wrap},k.createElement("input",{id:this.inputId,style:a.input,ref:function(i){return n.input=i},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?k.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(R.PureComponent||R.Component),Z0e=function(e,r,n,a){var o=a.clientWidth,i=a.clientHeight,s=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,l=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,c=s-(a.getBoundingClientRect().left+window.pageXOffset),d=l-(a.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var u=void 0;if(d<0)u=359;else if(d>i)u=0;else{var f=-(d*100/i)+100;u=360*f/100}if(n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var p=void 0;if(c<0)p=0;else if(c>o)p=359;else{var m=c*100/o;p=360*m/100}if(n.h!==p)return{h:p,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},Q0e=function(){function t(e,r){for(var n=0;n-1}function lbe(t,e){var r=this.__data__,n=pS(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function _l(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=v1e}function yp(t){return t!=null&&dI(t.length)&&!lI(t)}function m1e(t){return Rc(t)&&yp(t)}function g1e(){return!1}var cq=typeof qa=="object"&&qa&&!qa.nodeType&&qa,mB=cq&&typeof Gn=="object"&&Gn&&!Gn.nodeType&&Gn,_1e=mB&&mB.exports===cq,gB=_1e?Ti.Buffer:void 0,y1e=gB?gB.isBuffer:void 0,D1=y1e||g1e,b1e="[object Object]",w1e=Function.prototype,S1e=Object.prototype,uq=w1e.toString,x1e=S1e.hasOwnProperty,C1e=uq.call(Object);function T1e(t){if(!Rc(t)||Ld(t)!=b1e)return!1;var e=sq(t);if(e===null)return!0;var r=x1e.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&uq.call(r)==C1e}var k1e="[object Arguments]",E1e="[object Array]",D1e="[object Boolean]",M1e="[object Date]",O1e="[object Error]",$1e="[object Function]",A1e="[object Map]",P1e="[object Number]",I1e="[object Object]",R1e="[object RegExp]",L1e="[object Set]",N1e="[object String]",F1e="[object WeakMap]",z1e="[object ArrayBuffer]",B1e="[object DataView]",j1e="[object Float32Array]",W1e="[object Float64Array]",H1e="[object Int8Array]",U1e="[object Int16Array]",V1e="[object Int32Array]",Y1e="[object Uint8Array]",G1e="[object Uint8ClampedArray]",q1e="[object Uint16Array]",X1e="[object Uint32Array]",Dr={};Dr[j1e]=Dr[W1e]=Dr[H1e]=Dr[U1e]=Dr[V1e]=Dr[Y1e]=Dr[G1e]=Dr[q1e]=Dr[X1e]=!0;Dr[k1e]=Dr[E1e]=Dr[z1e]=Dr[D1e]=Dr[B1e]=Dr[M1e]=Dr[O1e]=Dr[$1e]=Dr[A1e]=Dr[P1e]=Dr[I1e]=Dr[R1e]=Dr[L1e]=Dr[N1e]=Dr[F1e]=!1;function J1e(t){return Rc(t)&&dI(t.length)&&!!Dr[Ld(t)]}function K1e(t){return function(e){return t(e)}}var dq=typeof qa=="object"&&qa&&!qa.nodeType&&qa,zm=dq&&typeof Gn=="object"&&Gn&&!Gn.nodeType&&Gn,Z1e=zm&&zm.exports===dq,PE=Z1e&&rq.process,_B=function(){try{var t=zm&&zm.require&&zm.require("util").types;return t||PE&&PE.binding&&PE.binding("util")}catch{}}(),yB=_B&&_B.isTypedArray,fI=yB?K1e(yB):J1e;function GO(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Q1e=Object.prototype,ewe=Q1e.hasOwnProperty;function twe(t,e,r){var n=t[e];(!(ewe.call(t,e)&&n_(n,r))||r===void 0&&!(e in t))&&cI(t,e,r)}function rwe(t,e,r,n){var a=!r;r||(r={});for(var o=-1,i=e.length;++o-1&&t%1==0&&t0){if(++e>=_we)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Swe=wwe(gwe);function xwe(t,e){return Swe(vwe(t,e,mS),t+"")}function Cwe(t,e,r){if(!Po(r))return!1;var n=typeof e;return(n=="number"?yp(r)&&hI(e,r.length):n=="string"&&e in r)?n_(r[e],t):!1}function Twe(t){return xwe(function(e,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=t.length>3&&typeof o=="function"?(a--,o):void 0,i&&Cwe(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),e=Object(e);++n=e||D<0||u&&A>=o}function b(){var T=IE();if(_(T))return w(T);s=setTimeout(b,g(T))}function w(T){return s=void 0,f&&n?p(T):(n=a=void 0,i)}function S(){s!==void 0&&clearTimeout(s),c=0,n=l=a=s=void 0}function x(){return s===void 0?i:w(IE())}function E(){var T=IE(),D=_(T);if(n=arguments,a=this,l=T,D){if(s===void 0)return m(l);if(u)return clearTimeout(s),s=setTimeout(b,e),p(l)}return s===void 0&&(s=setTimeout(b,e)),i}return E.cancel=S,E.flush=x,E}var Fwe="Expected a function";function zwe(t,e,r){var n=!0,a=!0;if(typeof t!="function")throw new TypeError(Fwe);return Po(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),vq(t,e,{leading:n,maxWait:e,trailing:a})}var Bwe=function(e,r,n){var a=n.getBoundingClientRect(),o=a.width,i=a.height,s=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,l=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,c=s-(n.getBoundingClientRect().left+window.pageXOffset),d=l-(n.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>o&&(c=o),d<0?d=0:d>i&&(d=i);var u=c/o,f=1-d/i;return{h:r.h,s:u,v:f,a:r.a,source:"hsv"}},jwe=function(){function t(e,r){for(var n=0;n=0,o=!r&&a&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return o?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 Ge(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(uSe,arguments)},brighten:function(){return this._applyModification(dSe,arguments)},darken:function(){return this._applyModification(fSe,arguments)},desaturate:function(){return this._applyModification(sSe,arguments)},saturate:function(){return this._applyModification(lSe,arguments)},greyscale:function(){return this._applyModification(cSe,arguments)},spin:function(){return this._applyModification(hSe,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(mSe,arguments)},complement:function(){return this._applyCombination(pSe,arguments)},monochromatic:function(){return this._applyCombination(gSe,arguments)},splitcomplement:function(){return this._applyCombination(vSe,arguments)},triad:function(){return this._applyCombination(EB,[3])},tetrad:function(){return this._applyCombination(EB,[4])}};Ge.fromRatio=function(t,e){if(M1(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=Sm(t[n]));t=r}return Ge(t,e)};function rSe(t){var e={r:0,g:0,b:0},r=1,n=null,a=null,o=null,i=!1,s=!1;return typeof t=="string"&&(t=SSe(t)),M1(t)=="object"&&($s(t.r)&&$s(t.g)&&$s(t.b)?(e=nSe(t.r,t.g,t.b),i=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):$s(t.h)&&$s(t.s)&&$s(t.v)?(n=Sm(t.s),a=Sm(t.v),e=oSe(t.h,n,a),i=!0,s="hsv"):$s(t.h)&&$s(t.s)&&$s(t.l)&&(n=Sm(t.s),o=Sm(t.l),e=aSe(t.h,n,o),i=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=gq(r),{ok:i,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function nSe(t,e,r){return{r:Lr(t,255)*255,g:Lr(e,255)*255,b:Lr(r,255)*255}}function xB(t,e,r){t=Lr(t,255),e=Lr(e,255),r=Lr(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,r),o,i,s=(n+a)/2;if(n==a)o=i=0;else{var l=n-a;switch(i=s>.5?l/(2-n-a):l/(n+a),n){case t:o=(e-r)/l+(e1&&(u-=1),u<1/6?c+(d-c)*6*u:u<1/2?d:u<2/3?c+(d-c)*(2/3-u)*6:c}if(e===0)n=a=o=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=i(l,s,t+1/3),a=i(l,s,t),o=i(l,s,t-1/3)}return{r:n*255,g:a*255,b:o*255}}function CB(t,e,r){t=Lr(t,255),e=Lr(e,255),r=Lr(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,r),o,i,s=n,l=n-a;if(i=n===0?0:l/n,n==a)o=0;else{switch(n){case t:o=(e-r)/l+(e>1)+720)%360;--e;)n.h=(n.h+a)%360,o.push(Ge(n));return o}function gSe(t,e){e=e||6;for(var r=Ge(t).toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/e;e--;)i.push(Ge({h:n,s:a,v:o})),o=(o+s)%1;return i}Ge.mix=function(t,e,r){r=r===0?0:r||50;var n=Ge(t).toRgb(),a=Ge(e).toRgb(),o=r/100,i={r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a};return Ge(i)};Ge.readability=function(t,e){var r=Ge(t),n=Ge(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};Ge.isReadable=function(t,e,r){var n=Ge.readability(t,e),a,o;switch(o=!1,a=xSe(r),a.level+a.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o};Ge.mostReadable=function(t,e,r){var n=null,a=0,o,i,s,l;r=r||{},i=r.includeFallbackColors,s=r.level,l=r.size;for(var c=0;ca&&(a=o,n=Ge(e[c]));return Ge.isReadable(t,n,{level:s,size:l})||!i?n:(r.includeFallbackColors=!1,Ge.mostReadable(t,["#fff","#000"],r))};var qO=Ge.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"},_Se=Ge.hexNames=ySe(qO);function ySe(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function gq(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Lr(t,e){bSe(t)&&(t="100%");var r=wSe(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function yS(t){return Math.min(1,Math.max(0,t))}function Wa(t){return parseInt(t,16)}function bSe(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function wSe(t){return typeof t=="string"&&t.indexOf("%")!=-1}function si(t){return t.length==1?"0"+t:""+t}function Sm(t){return t<=1&&(t=t*100+"%"),t}function _q(t){return Math.round(parseFloat(t)*255).toString(16)}function DB(t){return Wa(t)/255}var ei=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),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 $s(t){return!!ei.CSS_UNIT.exec(t)}function SSe(t){t=t.replace(eSe,"").replace(tSe,"").toLowerCase();var e=!1;if(qO[t])t=qO[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ei.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=ei.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ei.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=ei.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ei.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=ei.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ei.hex8.exec(t))?{r:Wa(r[1]),g:Wa(r[2]),b:Wa(r[3]),a:DB(r[4]),format:e?"name":"hex8"}:(r=ei.hex6.exec(t))?{r:Wa(r[1]),g:Wa(r[2]),b:Wa(r[3]),format:e?"name":"hex"}:(r=ei.hex4.exec(t))?{r:Wa(r[1]+""+r[1]),g:Wa(r[2]+""+r[2]),b:Wa(r[3]+""+r[3]),a:DB(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=ei.hex3.exec(t))?{r:Wa(r[1]+""+r[1]),g:Wa(r[2]+""+r[2]),b:Wa(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function xSe(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var MB=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,a=0;return Qwe(r,function(o){if(e[o]&&(n+=1,isNaN(e[o])||(a+=1),o==="s"||o==="l")){var i=/^\d+%$/;i.test(e[o])&&(a+=1)}}),n===a?e:!1},xm=function(e,r){var n=e.hex?Ge(e.hex):Ge(e),a=n.toHsl(),o=n.toHsv(),i=n.toRgb(),s=n.toHex();a.s===0&&(a.h=r||0,o.h=r||0);var l=s==="000000"&&i.a===0;return{hsl:a,hex:l?"transparent":"#"+s,rgb:i,hsv:o,oldHue:e.h||r||a.h,source:e.source}},Uc=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&&Ge(e).isValid()},vI=function(e){if(!e)return"#fff";var r=xm(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},RE=function(e,r){var n=e.replace("°","");return Ge(r+" ("+n+")")._ok},Tv=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){$Se(a,n);function a(){var o,i,s,l;OSe(this,a);for(var c=arguments.length,d=Array(c),u=0;us))return!1;var c=o.get(t),d=o.get(e);if(c&&d)return c==e&&d==t;var u=-1,f=!0,p=r&HSe?new O1:void 0;for(o.set(t,e),o.set(e,t);++u=0||Object.prototype.hasOwnProperty.call(i,c)&&(l[c]=i[c]);return l}var o=24;return f0.default=function(i){var s=i.fill,l=s===void 0?"currentColor":s,c=i.width,d=c===void 0?o:c,u=i.height,f=u===void 0?o:u,p=i.style,m=p===void 0?{}:p,g=a(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+o+" "+o,style:t({fill:l,width:d,height:f},m)},g),r.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"}))},f0}var nCe=rCe();const aCe=fs(nCe);var oCe=function(){function t(e,r){for(var n=0;n1&&(a.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(a.a*100)/100,source:"rgb"},o)):(a.h||a.s||a.l)&&(typeof a.s=="string"&&a.s.includes("%")&&(a.s=a.s.replace("%","")),typeof a.l=="string"&&a.l.includes("%")&&(a.l=a.l.replace("%","")),a.s==1?a.s=.01:a.l==1&&(a.l=.01),n.props.onChange({h:a.h||n.props.hsl.h,s:Number(VB(a.s)?n.props.hsl.s:a.s),l:Number(VB(a.l)?n.props.hsl.l:a.l),source:"hsl"},o))},n.showHighlight=function(a){a.currentTarget.style.background="#eee"},n.hideHighlight=function(a){a.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return oCe(e,[{key:"render",value:function(){var n=this,a=St({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),o=void 0;return this.state.view==="hex"?o=k.createElement("div",{style:a.fields,className:"flexbox-fix"},k.createElement("div",{style:a.field},k.createElement(Wt,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?o=k.createElement("div",{style:a.fields,className:"flexbox-fix"},k.createElement("div",{style:a.field},k.createElement(Wt,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),k.createElement("div",{style:a.field},k.createElement(Wt,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),k.createElement("div",{style:a.field},k.createElement(Wt,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),k.createElement("div",{style:a.alpha},k.createElement(Wt,{style:{input:a.input,label:a.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(o=k.createElement("div",{style:a.fields,className:"flexbox-fix"},k.createElement("div",{style:a.field},k.createElement(Wt,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),k.createElement("div",{style:a.field},k.createElement(Wt,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),k.createElement("div",{style:a.field},k.createElement(Wt,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),k.createElement("div",{style:a.alpha},k.createElement(Wt,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),k.createElement("div",{style:a.wrap,className:"flexbox-fix"},o,k.createElement("div",{style:a.toggle},k.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},k.createElement(aCe,{style:a.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.hsl.a!==1&&a.view==="hex"?{view:"rgb"}:null}}]),e}(k.Component);Dq.defaultProps={view:"hex"};var GB=function(){var e=St({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 k.createElement("div",{style:e.picker})},cCe=function(){var e=St({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return k.createElement("div",{style:e.picker})},wI=function(e){var r=e.width,n=e.onChange,a=e.disableAlpha,o=e.rgb,i=e.hsl,s=e.hsv,l=e.hex,c=e.renderers,d=e.styles,u=d===void 0?{}:d,f=e.className,p=f===void 0?"":f,m=e.defaultView,g=St(La({default:{picker:{width:r,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("+o.r+", "+o.g+", "+o.b+", "+o.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:a});return k.createElement("div",{style:g.picker,className:"chrome-picker "+p},k.createElement("div",{style:g.saturation},k.createElement(_S,{style:g.Saturation,hsl:i,hsv:s,pointer:cCe,onChange:n})),k.createElement("div",{style:g.body},k.createElement("div",{style:g.controls,className:"flexbox-fix"},k.createElement("div",{style:g.color},k.createElement("div",{style:g.swatch},k.createElement("div",{style:g.active}),k.createElement(gp,{renderers:c}))),k.createElement("div",{style:g.toggles},k.createElement("div",{style:g.hue},k.createElement(_p,{style:g.Hue,hsl:i,pointer:GB,onChange:n})),k.createElement("div",{style:g.alpha},k.createElement(sI,{style:g.Alpha,rgb:o,hsl:i,pointer:GB,renderers:c,onChange:n})))),k.createElement(Dq,{rgb:o,hsl:i,hex:l,view:m,onChange:n,disableAlpha:a})))};wI.propTypes={width:ue.oneOfType([ue.string,ue.number]),disableAlpha:ue.bool,styles:ue.object,defaultView:ue.oneOf(["hex","rgb","hsl"])};wI.defaultProps={width:225,disableAlpha:!1,styles:{}};Na(wI);var uCe=function(e){var r=e.color,n=e.onClick,a=n===void 0?function(){}:n,o=e.onSwatchHover,i=e.active,s=St({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:vI(r),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:i,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return k.createElement(zd,{style:s.color,color:r,onClick:a,onHover:o,focusStyle:{boxShadow:"0 0 4px "+r}},k.createElement("div",{style:s.dot}))},dCe=function(e){var r=e.hex,n=e.rgb,a=e.onChange,o=St({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},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"}}}),i=function(l,c){l.r||l.g||l.b?a({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},c):a({hex:l.hex,source:"hex"},c)};return k.createElement("div",{style:o.fields,className:"flexbox-fix"},k.createElement("div",{style:o.active}),k.createElement(Wt,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:r,onChange:i}),k.createElement(Wt,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:i}),k.createElement(Wt,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:i}),k.createElement(Wt,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:i}))},SI=function(e){var r=e.onChange,n=e.onSwatchHover,a=e.colors,o=e.hex,i=e.rgb,s=e.styles,l=s===void 0?{}:s,c=e.className,d=c===void 0?"":c,u=St(La({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),f=function(m,g){m.hex?Uc(m.hex)&&r({hex:m.hex,source:"hex"},g):r(m,g)};return k.createElement(a_,{style:u.Compact,styles:l},k.createElement("div",{style:u.compact,className:"compact-picker "+d},k.createElement("div",null,Bd(a,function(p){return k.createElement(uCe,{key:p,color:p,active:p.toLowerCase()===o,onClick:f,onSwatchHover:n})}),k.createElement("div",{style:u.clear})),k.createElement(dCe,{hex:o,rgb:i,onChange:f})))};SI.propTypes={colors:ue.arrayOf(ue.string),styles:ue.object};SI.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"],styles:{}};Na(SI);var fCe=function(e){var r=e.hover,n=e.color,a=e.onClick,o=e.onSwatchHover,i={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=St({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:i}},{hover:r});return k.createElement("div",{style:s.swatch},k.createElement(zd,{color:n,onClick:a,onHover:o,focusStyle:i}))};const hCe=iI.handleHover(fCe);var xI=function(e){var r=e.width,n=e.colors,a=e.onChange,o=e.onSwatchHover,i=e.triangle,s=e.styles,l=s===void 0?{}:s,c=e.className,d=c===void 0?"":c,u=St(La({default:{card:{width:r,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)"}}},l),{"hide-triangle":i==="hide","top-left-triangle":i==="top-left","top-right-triangle":i==="top-right","bottom-left-triangle":i==="bottom-left","bottom-right-triangle":i==="bottom-right"}),f=function(m,g){return a({hex:m,source:"hex"},g)};return k.createElement("div",{style:u.card,className:"github-picker "+d},k.createElement("div",{style:u.triangleShadow}),k.createElement("div",{style:u.triangle}),Bd(n,function(p){return k.createElement(hCe,{color:p,key:p,onClick:f,onSwatchHover:o})}))};xI.propTypes={width:ue.oneOfType([ue.string,ue.number]),colors:ue.arrayOf(ue.string),triangle:ue.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:ue.object};xI.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};Na(xI);var pCe=function(e){var r=e.direction,n=St({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:r==="vertical"});return k.createElement("div",{style:n.picker})},vCe=Object.assign||function(t){for(var e=1;e.5});return k.createElement("div",{style:n.picker})},yCe=function(){var e=St({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 k.createElement("div",{style:e.pointer},k.createElement("div",{style:e.left},k.createElement("div",{style:e.leftInside})),k.createElement("div",{style:e.right},k.createElement("div",{style:e.rightInside})))},qB=function(e){var r=e.onClick,n=e.label,a=e.children,o=e.active,i=St({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:o});return k.createElement("div",{style:i.button,onClick:r},n||a)},bCe=function(e){var r=e.rgb,n=e.currentColor,a=St({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.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 k.createElement("div",null,k.createElement("div",{style:a.label},"new"),k.createElement("div",{style:a.swatches},k.createElement("div",{style:a.new}),k.createElement("div",{style:a.current})),k.createElement("div",{style:a.label},"current"))},wCe=function(){function t(e,r){for(var n=0;n100&&(d.a=100),d.a/=100,r({h:a.h,s:a.s,l:a.l,a:d.a,source:"rgb"},u))};return k.createElement("div",{style:s.fields,className:"flexbox-fix"},k.createElement("div",{style:s.double},k.createElement(Wt,{style:{input:s.input,label:s.label},label:"hex",value:o.replace("#",""),onChange:l})),k.createElement("div",{style:s.single},k.createElement(Wt,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),k.createElement("div",{style:s.single},k.createElement(Wt,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),k.createElement("div",{style:s.single},k.createElement(Wt,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),k.createElement("div",{style:s.alpha},k.createElement(Wt,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:l,dragLabel:"true",dragMax:"100"})))},kCe=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(i,c)&&(l[c]=i[c]);return l}var o=24;return h0.default=function(i){var s=i.fill,l=s===void 0?"currentColor":s,c=i.width,d=c===void 0?o:c,u=i.height,f=u===void 0?o:u,p=i.style,m=p===void 0?{}:p,g=a(i,["fill","width","height","style"]);return r.default.createElement("svg",t({viewBox:"0 0 "+o+" "+o,style:t({fill:l,width:d,height:f},m)},g),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},h0}var $Ce=OCe();const ACe=fs($Ce);var PCe=function(e){var r=e.color,n=e.onClick,a=n===void 0?function(){}:n,o=e.onSwatchHover,i=e.first,s=e.last,l=e.active,c=St({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:vI(r),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:i,last:s,active:l,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return k.createElement(zd,{color:r,style:c.color,onClick:a,onHover:o,focusStyle:{boxShadow:"0 0 4px "+r}},k.createElement("div",{style:c.check},k.createElement(ACe,null)))},ICe=function(e){var r=e.onClick,n=e.onSwatchHover,a=e.group,o=e.active,i=St({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return k.createElement("div",{style:i.group},Bd(a,function(s,l){return k.createElement(PCe,{key:s,color:s,active:s.toLowerCase()===o,first:l===0,last:l===a.length-1,onClick:r,onSwatchHover:n})}))},DI=function(e){var r=e.width,n=e.height,a=e.onChange,o=e.onSwatchHover,i=e.colors,s=e.hex,l=e.styles,c=l===void 0?{}:l,d=e.className,u=d===void 0?"":d,f=St(La({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},c)),p=function(g,_){return a({hex:g,source:"hex"},_)};return k.createElement("div",{style:f.picker,className:"swatches-picker "+u},k.createElement(a_,null,k.createElement("div",{style:f.overflow},k.createElement("div",{style:f.body},Bd(i,function(m){return k.createElement(ICe,{key:m.toString(),group:m,active:s,onClick:p,onSwatchHover:o})}),k.createElement("div",{style:f.clear})))))};DI.propTypes={width:ue.oneOfType([ue.string,ue.number]),height:ue.oneOfType([ue.string,ue.number]),colors:ue.arrayOf(ue.arrayOf(ue.string)),styles:ue.object};DI.defaultProps={width:320,height:240,colors:[[Kf[900],Kf[700],Kf[500],Kf[300],Kf[100]],[Zf[900],Zf[700],Zf[500],Zf[300],Zf[100]],[Qf[900],Qf[700],Qf[500],Qf[300],Qf[100]],[eh[900],eh[700],eh[500],eh[300],eh[100]],[th[900],th[700],th[500],th[300],th[100]],[rh[900],rh[700],rh[500],rh[300],rh[100]],[nh[900],nh[700],nh[500],nh[300],nh[100]],[ah[900],ah[700],ah[500],ah[300],ah[100]],[oh[900],oh[700],oh[500],oh[300],oh[100]],["#194D33",Cm[700],Cm[500],Cm[300],Cm[100]],[ih[900],ih[700],ih[500],ih[300],ih[100]],[sh[900],sh[700],sh[500],sh[300],sh[100]],[lh[900],lh[700],lh[500],lh[300],lh[100]],[ch[900],ch[700],ch[500],ch[300],ch[100]],[uh[900],uh[700],uh[500],uh[300],uh[100]],[dh[900],dh[700],dh[500],dh[300],dh[100]],[fh[900],fh[700],fh[500],fh[300],fh[100]],[hh[900],hh[700],hh[500],hh[300],hh[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};Na(DI);var MI=function(e){var r=e.onChange,n=e.onSwatchHover,a=e.hex,o=e.colors,i=e.width,s=e.triangle,l=e.styles,c=l===void 0?{}:l,d=e.className,u=d===void 0?"":d,f=St(La({default:{card:{width:i,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":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),p=function(g,_){Uc(g)&&r({hex:g,source:"hex"},_)};return k.createElement("div",{style:f.card,className:"twitter-picker "+u},k.createElement("div",{style:f.triangleShadow}),k.createElement("div",{style:f.triangle}),k.createElement("div",{style:f.body},Bd(o,function(m,g){return k.createElement(zd,{key:g,color:m,hex:m,style:f.swatch,onClick:p,onHover:n,focusStyle:{boxShadow:"0 0 4px "+m}})}),k.createElement("div",{style:f.hash},"#"),k.createElement(Wt,{label:null,style:{input:f.input},value:a.replace("#",""),onChange:p}),k.createElement("div",{style:f.clear})))};MI.propTypes={width:ue.oneOfType([ue.string,ue.number]),triangle:ue.oneOf(["hide","top-left","top-right"]),colors:ue.arrayOf(ue.string),styles:ue.object};MI.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};Na(MI);var OI=function(e){var r=St({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 k.createElement("div",{style:r.picker})};OI.propTypes={hsl:ue.shape({h:ue.number,s:ue.number,l:ue.number,a:ue.number})};OI.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var $I=function(e){var r=St({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 k.createElement("div",{style:r.picker})};$I.propTypes={hsl:ue.shape({h:ue.number,s:ue.number,l:ue.number,a:ue.number})};$I.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var RCe=function(e){var r=e.onChange,n=e.rgb,a=e.hsl,o=e.hex,i=e.hsv,s=function(p,m){if(p.hex)Uc(p.hex)&&r({hex:p.hex,source:"hex"},m);else if(p.rgb){var g=p.rgb.split(",");RE(p.rgb,"rgb")&&r({r:g[0],g:g[1],b:g[2],a:1,source:"rgb"},m)}else if(p.hsv){var _=p.hsv.split(",");RE(p.hsv,"hsv")&&(_[2]=_[2].replace("%",""),_[1]=_[1].replace("%",""),_[0]=_[0].replace("°",""),_[1]==1?_[1]=.01:_[2]==1&&(_[2]=.01),r({h:Number(_[0]),s:Number(_[1]),v:Number(_[2]),source:"hsv"},m))}else if(p.hsl){var b=p.hsl.split(",");RE(p.hsl,"hsl")&&(b[2]=b[2].replace("%",""),b[1]=b[1].replace("%",""),b[0]=b[0].replace("°",""),u[1]==1?u[1]=.01:u[2]==1&&(u[2]=.01),r({h:Number(b[0]),s:Number(b[1]),v:Number(b[2]),source:"hsl"},m))}},l=St({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,d=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.l*100)+"%",u=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.v*100)+"%";return k.createElement("div",{style:l.wrap,className:"flexbox-fix"},k.createElement("div",{style:l.fields},k.createElement("div",{style:l.double},k.createElement(Wt,{style:{input:l.input,label:l.label},label:"hex",value:o,onChange:s})),k.createElement("div",{style:l.column},k.createElement("div",{style:l.single},k.createElement(Wt,{style:{input:l.input2,label:l.label2},label:"rgb",value:c,onChange:s})),k.createElement("div",{style:l.single},k.createElement(Wt,{style:{input:l.input2,label:l.label2},label:"hsv",value:u,onChange:s})),k.createElement("div",{style:l.single},k.createElement(Wt,{style:{input:l.input2,label:l.label2},label:"hsl",value:d,onChange:s})))))},AI=function(e){var r=e.width,n=e.onChange,a=e.rgb,o=e.hsl,i=e.hsv,s=e.hex,l=e.header,c=e.styles,d=c===void 0?{}:c,u=e.className,f=u===void 0?"":u,p=St(La({default:{picker:{width:r,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("+a.r+", "+a.g+", "+a.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"}}},d));return k.createElement("div",{style:p.picker,className:"google-picker "+f},k.createElement("div",{style:p.head},l),k.createElement("div",{style:p.swatch}),k.createElement("div",{style:p.saturation},k.createElement(_S,{hsl:o,hsv:i,pointer:OI,onChange:n})),k.createElement("div",{style:p.body},k.createElement("div",{style:p.controls,className:"flexbox-fix"},k.createElement("div",{style:p.hue},k.createElement(_p,{style:p.Hue,hsl:o,radius:"4px",pointer:$I,onChange:n}))),k.createElement(RCe,{rgb:a,hsl:o,hex:s,hsv:i,onChange:n})))};AI.propTypes={width:ue.oneOfType([ue.string,ue.number]),styles:ue.object,header:ue.string};AI.defaultProps={width:652,styles:{},header:"Color picker"};Na(AI);var NE={exports:{}},JB;function ms(){return JB||(JB=1,function(t,e){(function(n,a){t.exports=a()})(globalThis,()=>(()=>{var r={949:(i,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CronParser=void 0;var c=l(515),d=function(){function u(f,p,m){p===void 0&&(p=!0),m===void 0&&(m=!1),this.expression=f,this.dayOfWeekStartIndexZero=p,this.monthStartIndexZero=m}return u.prototype.parse=function(){var f,p,m=(f=this.expression)!==null&&f!==void 0?f:"";if(m.startsWith("@")){var g=this.parseSpecial(this.expression);p=this.extractParts(g)}else p=this.extractParts(this.expression);return this.normalize(p),this.validate(p),p},u.prototype.parseSpecial=function(f){var p={"@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 * * * *"},m=p[f];if(!m)throw new Error("Unknown special expression.");return m},u.prototype.extractParts=function(f){if(!this.expression)throw new Error("cron expression is empty");for(var p=f.trim().split(/[ ]+/),m=0;m7)throw new Error("Expression has ".concat(p.length," parts; too many!"));return p},u.prototype.normalize=function(f){var p=this;if(f[3]=f[3].replace("?","*"),f[5]=f[5].replace("?","*"),f[2]=f[2].replace("?","*"),f[0].indexOf("0/")==0&&(f[0]=f[0].replace("0/","*/")),f[1].indexOf("0/")==0&&(f[1]=f[1].replace("0/","*/")),f[2].indexOf("0/")==0&&(f[2]=f[2].replace("0/","*/")),f[3].indexOf("1/")==0&&(f[3]=f[3].replace("1/","*/")),f[4].indexOf("1/")==0&&(f[4]=f[4].replace("1/","*/")),f[6].indexOf("1/")==0&&(f[6]=f[6].replace("1/","*/")),f[5]=f[5].replace(/(^\d)|([^#/\s]\d)/g,function(E){var T=E.replace(/\D/,""),D=T;return p.dayOfWeekStartIndexZero?T=="7"&&(D="0"):D=(parseInt(T)-1).toString(),E.replace(T,D)}),f[5]=="L"&&(f[5]="6"),f[3]=="?"&&(f[3]="*"),f[3].indexOf("W")>-1&&(f[3].indexOf(",")>-1||f[3].indexOf("-")>-1))throw new 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 m={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var g in m)f[5]=f[5].replace(new RegExp(g,"gi"),m[g].toString());f[4]=f[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(E){var T=E.replace(/\D/,""),D=T;return p.monthStartIndexZero&&(D=(parseInt(T)+1).toString()),E.replace(T,D)});var _={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 b in _)f[4]=f[4].replace(new RegExp(b,"gi"),_[b].toString());f[0]=="0"&&(f[0]=""),!/\*|\-|\,|\//.test(f[2])&&(/\*|\//.test(f[1])||/\*|\//.test(f[0]))&&(f[2]+="-".concat(f[2]));for(var w=0;w-1&&!/^\*|\-|\,/.test(f[w])){var S=null;switch(w){case 4:S="12";break;case 5:S="6";break;case 6:S="9999";break;default:S=null;break}if(S!==null){var x=f[w].split("/");f[w]="".concat(x[0],"-").concat(S,"/").concat(x[1])}}},u.prototype.validate=function(f){this.assertNoInvalidCharacters("DOW",f[5]),this.assertNoInvalidCharacters("DOM",f[3]),this.validateRange(f)},u.prototype.validateRange=function(f){c.default.secondRange(f[0]),c.default.minuteRange(f[1]),c.default.hourRange(f[2]),c.default.dayOfMonthRange(f[3]),c.default.monthRange(f[4],this.monthStartIndexZero),c.default.dayOfWeekRange(f[5],this.dayOfWeekStartIndexZero)},u.prototype.assertNoInvalidCharacters=function(f,p){var m=p.match(/[A-KM-VX-Z]+/gi);if(m&&m.length)throw new Error("".concat(f," part contains invalid values: '").concat(m.toString(),"'"))},u}();s.CronParser=d},333:(i,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ExpressionDescriptor=void 0;var c=l(823),d=l(949),u=function(){function f(p,m){if(this.expression=p,this.options=m,this.expressionParts=new Array(5),!this.options.locale&&f.defaultLocale&&(this.options.locale=f.defaultLocale),!f.locales[this.options.locale]){var g=Object.keys(f.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(g,"'.")),this.options.locale=g}this.i18n=f.locales[this.options.locale],m.use24HourTimeFormat===void 0&&(m.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return f.toString=function(p,m){var g=m===void 0?{}:m,_=g.throwExceptionOnParseError,b=_===void 0?!0:_,w=g.verbose,S=w===void 0?!1:w,x=g.dayOfWeekStartIndexZero,E=x===void 0?!0:x,T=g.monthStartIndexZero,D=T===void 0?!1:T,A=g.use24HourTimeFormat,P=g.locale,O=P===void 0?null:P,I=g.tzOffset,F=I===void 0?0:I,N={throwExceptionOnParseError:b,verbose:S,dayOfWeekStartIndexZero:E,monthStartIndexZero:D,use24HourTimeFormat:A,locale:O,tzOffset:F},B=new f(p,N);return B.getFullDescription()},f.initialize=function(p,m){m===void 0&&(m="en"),f.specialCharacters=["/","-",",","*"],f.defaultLocale=m,p.load(f.locales)},f.prototype.getFullDescription=function(){var p="";try{var m=new d.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=m.parse();var g=this.getTimeOfDayDescription(),_=this.getDayOfMonthDescription(),b=this.getMonthDescription(),w=this.getDayOfWeekDescription(),S=this.getYearDescription();p+=g+_+w+b+S,p=this.transformVerbosity(p,!!this.options.verbose),p=p.charAt(0).toLocaleUpperCase()+p.substr(1)}catch(x){if(!this.options.throwExceptionOnParseError)p=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(x)}return p},f.prototype.getTimeOfDayDescription=function(){var p=this.expressionParts[0],m=this.expressionParts[1],g=this.expressionParts[2],_="";if(!c.StringUtilities.containsAny(m,f.specialCharacters)&&!c.StringUtilities.containsAny(g,f.specialCharacters)&&!c.StringUtilities.containsAny(p,f.specialCharacters))_+=this.i18n.atSpace()+this.formatTime(g,m,p);else if(!p&&m.indexOf("-")>-1&&!(m.indexOf(",")>-1)&&!(m.indexOf("/")>-1)&&!c.StringUtilities.containsAny(g,f.specialCharacters)){var b=m.split("-");_+=c.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(g,b[0],""),this.formatTime(g,b[1],""))}else if(!p&&g.indexOf(",")>-1&&g.indexOf("-")==-1&&g.indexOf("/")==-1&&!c.StringUtilities.containsAny(m,f.specialCharacters)){var w=g.split(",");_+=this.i18n.at();for(var S=0;S1){var b=_[_.length-1].index;g=g.substring(0,b)+":59"+g.substring(b+3)}}return g},f.prototype.getDayOfWeekDescription=function(){var p=this,m=this.i18n.daysOfTheWeek(),g=null;return this.expressionParts[5]=="*"?g="":g=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(_,b){var w=_;_.indexOf("#")>-1?w=_.substring(0,_.indexOf("#")):_.indexOf("L")>-1&&(w=w.replace("L",""));var S=parseInt(w);if(p.options.tzOffset){var x=p.expressionParts[2],E=parseInt(x)+(p.options.tzOffset?p.options.tzOffset:0);E>=24?S++:E<0&&S--,S>6?S=0:S<0&&(S=6)}var T=p.i18n.daysOfTheWeekInCase?p.i18n.daysOfTheWeekInCase(b)[S]:m[S];if(_.indexOf("#")>-1){var D=null,A=_.substring(_.indexOf("#")+1),P=_.substring(0,_.indexOf("#"));switch(A){case"1":D=p.i18n.first(P);break;case"2":D=p.i18n.second(P);break;case"3":D=p.i18n.third(P);break;case"4":D=p.i18n.fourth(P);break;case"5":D=p.i18n.fifth(P);break}T=D+" "+T}return T},function(_){return parseInt(_)==1?"":c.StringUtilities.format(p.i18n.commaEveryX0DaysOfTheWeek(_),_)},function(_){var b=_.substring(0,_.indexOf("-")),w=p.expressionParts[3]!="*";return w?p.i18n.commaAndX0ThroughX1(b):p.i18n.commaX0ThroughX1(b)},function(_){var b=null;if(_.indexOf("#")>-1){var w=_.substring(_.indexOf("#")+1),S=_.substring(0,_.indexOf("#"));b=p.i18n.commaOnThe(w,S).trim()+p.i18n.spaceX0OfTheMonth()}else if(_.indexOf("L")>-1)b=p.i18n.commaOnTheLastX0OfTheMonth(_.replace("L",""));else{var x=p.expressionParts[3]!="*";b=x?p.i18n.commaAndOnX0():p.i18n.commaOnlyOnX0(_)}return b}),g},f.prototype.getMonthDescription=function(){var p=this,m=this.i18n.monthsOfTheYear(),g=this.getSegmentDescription(this.expressionParts[4],"",function(_,b){return b&&p.i18n.monthsOfTheYearInCase?p.i18n.monthsOfTheYearInCase(b)[parseInt(_)-1]:m[parseInt(_)-1]},function(_){return parseInt(_)==1?"":c.StringUtilities.format(p.i18n.commaEveryX0Months(_),_)},function(_){return p.i18n.commaMonthX0ThroughMonthX1()||p.i18n.commaX0ThroughX1()},function(_){return p.i18n.commaOnlyInMonthX0?p.i18n.commaOnlyInMonthX0():p.i18n.commaOnlyInX0()});return g},f.prototype.getDayOfMonthDescription=function(){var p=this,m=null,g=this.expressionParts[3];switch(g){case"L":m=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":m=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var _=g.match(/(\d{1,2}W)|(W\d{1,2})/);if(_){var b=parseInt(_[0].replace("W","")),w=b==1?this.i18n.firstWeekday():c.StringUtilities.format(this.i18n.weekdayNearestDayX0(),b.toString());m=c.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),w);break}else{var S=g.match(/L-(\d{1,2})/);if(S){var x=S[1];m=c.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(x),x);break}else{if(g=="*"&&this.expressionParts[5]!="*")return"";m=this.getSegmentDescription(g,this.i18n.commaEveryDay(),function(E){return E=="L"?p.i18n.lastDay():p.i18n.dayX0?c.StringUtilities.format(p.i18n.dayX0(),E):E},function(E){return E=="1"?p.i18n.commaEveryDay():p.i18n.commaEveryX0Days(E)},function(E){return p.i18n.commaBetweenDayX0AndX1OfTheMonth(E)},function(E){return p.i18n.commaOnDayX0OfTheMonth(E)})}break}}return m},f.prototype.getYearDescription=function(){var p=this,m=this.getSegmentDescription(this.expressionParts[6],"",function(g){return/^\d+$/.test(g)?new Date(parseInt(g),1).getFullYear().toString():g},function(g){return c.StringUtilities.format(p.i18n.commaEveryX0Years(g),g)},function(g){return p.i18n.commaYearX0ThroughYearX1()||p.i18n.commaX0ThroughX1()},function(g){return p.i18n.commaOnlyInYearX0?p.i18n.commaOnlyInYearX0():p.i18n.commaOnlyInX0()});return m},f.prototype.getSegmentDescription=function(p,m,g,_,b,w){var S=null,x=p.indexOf("/")>-1,E=p.indexOf("-")>-1,T=p.indexOf(",")>-1;if(!p)S="";else if(p==="*")S=m;else if(!x&&!E&&!T)S=c.StringUtilities.format(w(p),g(p));else if(T){for(var D=p.split(","),A="",P=0;P0&&D.length>2&&(A+=",",P0&&D.length>1&&(P==D.length-1||D.length==2)&&(A+="".concat(this.i18n.spaceAnd()," ")),D[P].indexOf("/")>-1||D[P].indexOf("-")>-1){var O=D[P].indexOf("-")>-1&&D[P].indexOf("/")==-1,I=this.getSegmentDescription(D[P],m,g,_,O?this.i18n.commaX0ThroughX1:b,w);O&&(I=I.replace(", ","")),A+=I}else x?A+=this.getSegmentDescription(D[P],m,g,_,b,w):A+=g(D[P]);x?S=A:S=c.StringUtilities.format(w(p),A)}else if(x){var D=p.split("/");if(S=c.StringUtilities.format(_(D[1]),D[1]),D[0].indexOf("-")>-1){var F=this.generateRangeSegmentDescription(D[0],b,g);F.indexOf(", ")!=0&&(S+=", "),S+=F}else if(D[0].indexOf("*")==-1){var N=c.StringUtilities.format(w(D[0]),g(D[0]));N=N.replace(", ",""),S+=c.StringUtilities.format(this.i18n.commaStartingX0(),N)}}else E&&(S=this.generateRangeSegmentDescription(p,b,g));return S},f.prototype.generateRangeSegmentDescription=function(p,m,g){var _="",b=p.split("-"),w=g(b[0],1),S=g(b[1],2),x=m(p);return _+=c.StringUtilities.format(x,w,S),_},f.prototype.formatTime=function(p,m,g){var _=0,b=0;this.options.tzOffset&&(_=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),b=parseFloat((this.options.tzOffset%1).toFixed(2)),b!=0&&(b*=60));var w=parseInt(p)+_,S=parseInt(m)+b;S>=60?(S-=60,w+=1):S<0&&(S+=60,w-=1),w>=24?w=w-24:w<0&&(w=24+w);var x="",E=!1;this.options.use24HourTimeFormat||(E=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),x=E?"".concat(this.getPeriod(w)," "):" ".concat(this.getPeriod(w)),w>12&&(w-=12),w===0&&(w=12));var T="";return g&&(T=":".concat(("00"+g).substring(g.length))),"".concat(E?x:"").concat(("00"+w.toString()).substring(w.toString().length),":").concat(("00"+S.toString()).substring(S.toString().length)).concat(T).concat(E?"":x)},f.prototype.transformVerbosity=function(p,m){return m||(p=p.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),p=p.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),p=p.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),p=p.replace(/\, ?$/,"")),p},f.prototype.getPeriod=function(p){return p>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},f.locales={},f}();s.ExpressionDescriptor=u},747:(i,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.enLocaleLoader=void 0;var c=l(486),d=function(){function u(){}return u.prototype.load=function(f){f.en=new c.en},u}();s.enLocaleLoader=d},486:(i,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.en=void 0;var l=function(){function c(){}return c.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},c.prototype.atX0MinutesPastTheHourGt20=function(){return null},c.prototype.commaMonthX0ThroughMonthX1=function(){return null},c.prototype.commaYearX0ThroughYearX1=function(){return null},c.prototype.use24HourTimeFormatByDefault=function(){return!1},c.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},c.prototype.everyMinute=function(){return"every minute"},c.prototype.everyHour=function(){return"every hour"},c.prototype.atSpace=function(){return"At "},c.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},c.prototype.at=function(){return"At"},c.prototype.spaceAnd=function(){return" and"},c.prototype.everySecond=function(){return"every second"},c.prototype.everyX0Seconds=function(){return"every %s seconds"},c.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},c.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},c.prototype.everyX0Minutes=function(){return"every %s minutes"},c.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},c.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},c.prototype.everyX0Hours=function(){return"every %s hours"},c.prototype.betweenX0AndX1=function(){return"between %s and %s"},c.prototype.atX0=function(){return"at %s"},c.prototype.commaEveryDay=function(){return", every day"},c.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},c.prototype.commaX0ThroughX1=function(){return", %s through %s"},c.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},c.prototype.first=function(){return"first"},c.prototype.second=function(){return"second"},c.prototype.third=function(){return"third"},c.prototype.fourth=function(){return"fourth"},c.prototype.fifth=function(){return"fifth"},c.prototype.commaOnThe=function(){return", on the "},c.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},c.prototype.lastDay=function(){return"the last day"},c.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},c.prototype.commaOnlyOnX0=function(){return", only on %s"},c.prototype.commaAndOnX0=function(){return", and on %s"},c.prototype.commaEveryX0Months=function(){return", every %s months"},c.prototype.commaOnlyInX0=function(){return", only in %s"},c.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},c.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},c.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},c.prototype.firstWeekday=function(){return"first weekday"},c.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},c.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},c.prototype.commaEveryX0Days=function(){return", every %s days"},c.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},c.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},c.prototype.commaEveryHour=function(){return", every hour"},c.prototype.commaEveryX0Years=function(){return", every %s years"},c.prototype.commaStartingX0=function(){return", starting %s"},c.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},c}();s.en=l},515:(i,s)=>{Object.defineProperty(s,"__esModule",{value:!0});function l(d,u){if(!d)throw new Error(u)}var c=function(){function d(){}return d.secondRange=function(u){for(var f=u.split(","),p=0;p=0&&m<=59,"seconds part must be >= 0 and <= 59")}},d.minuteRange=function(u){for(var f=u.split(","),p=0;p=0&&m<=59,"minutes part must be >= 0 and <= 59")}},d.hourRange=function(u){for(var f=u.split(","),p=0;p=0&&m<=23,"hours part must be >= 0 and <= 23")}},d.dayOfMonthRange=function(u){for(var f=u.split(","),p=0;p=1&&m<=31,"DOM part must be >= 1 and <= 31")}},d.monthRange=function(u,f){for(var p=u.split(","),m=0;m=1&&g<=12,f?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},d.dayOfWeekRange=function(u,f){for(var p=u.split(","),m=0;m=0&&g<=6,f?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},d}();s.default=c},823:(i,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.StringUtilities=void 0;var l=function(){function c(){}return c.format=function(d){for(var u=[],f=1;f-1})},c}();s.StringUtilities=l}},n={};function a(i){var s=n[i];if(s!==void 0)return s.exports;var l=n[i]={exports:{}};return r[i](l,l.exports,a),l.exports}var o={};return(()=>{var i=o;Object.defineProperty(i,"__esModule",{value:!0}),i.toString=void 0;var s=a(333),l=a(747);s.ExpressionDescriptor.initialize(new l.enLocaleLoader),i.default=s.ExpressionDescriptor;var c=s.ExpressionDescriptor.toString;i.toString=c})(),o})())}(NE)),NE.exports}var LCe=ms();const NCe=fs(LCe);var FE={exports:{}},KB;function FCe(){return KB||(KB=1,function(t,e){(function(n,a){t.exports=a(ms())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function o(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,o),p.exports}o.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return o.d(f,{a:f}),f},o.d=(u,f)=>{for(var p in f)o.o(f,p)&&!o.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},o.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),o.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};o.r(i);var s=o(93),l=o.n(s),c=i;Object.defineProperty(c,"__esModule",{value:!0}),c.fr=void 0;var d=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"toutes les minutes"},u.prototype.everyHour=function(){return"toutes les heures"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},u.prototype.atSpace=function(){return"À "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},u.prototype.at=function(){return"À"},u.prototype.spaceAnd=function(){return" et"},u.prototype.everySecond=function(){return"toutes les secondes"},u.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},u.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},u.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},u.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},u.prototype.everyX0Hours=function(){return"toutes les %s heures"},u.prototype.betweenX0AndX1=function(){return"de %s à %s"},u.prototype.atX0=function(){return"à %s"},u.prototype.commaEveryDay=function(){return", tous les jours"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},u.prototype.commaX0ThroughX1=function(){return", de %s à %s"},u.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},u.prototype.first=function(){return"premier"},u.prototype.second=function(){return"second"},u.prototype.third=function(){return"troisième"},u.prototype.fourth=function(){return"quatrième"},u.prototype.fifth=function(){return"cinquième"},u.prototype.commaOnThe=function(){return", le "},u.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},u.prototype.lastDay=function(){return"le dernier jour"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},u.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},u.prototype.commaAndOnX0=function(){return", et %s"},u.prototype.commaEveryX0Months=function(){return", tous les %s mois"},u.prototype.commaOnlyInX0=function(){return", uniquement en %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},u.prototype.firstWeekday=function(){return"premier jour ouvrable"},u.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},u.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},u.prototype.commaEveryX0Days=function(){return", tous les %s jours"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},u.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},u.prototype.commaEveryX0Years=function(){return", tous les %s ans"},u.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},u.prototype.commaStartingX0=function(){return", à partir de %s"},u.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},u.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},u}();return c.fr=d,l().locales.fr=new d,i})())}(FE)),FE.exports}FCe();var zE={exports:{}},ZB;function zCe(){return ZB||(ZB=1,function(t,e){(function(n,a){t.exports=a(ms())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function o(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,o),p.exports}o.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return o.d(f,{a:f}),f},o.d=(u,f)=>{for(var p in f)o.o(f,p)&&!o.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},o.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),o.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};o.r(i);var s=o(93),l=o.n(s),c=i;Object.defineProperty(c,"__esModule",{value:!0}),c.es=void 0;var d=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.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."},u.prototype.at=function(){return"A las"},u.prototype.atSpace=function(){return"A las "},u.prototype.atX0=function(){return"a las %s"},u.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},u.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},u.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},u.prototype.commaEveryDay=function(){return", cada día"},u.prototype.commaEveryX0Days=function(){return", cada %s días"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},u.prototype.commaEveryX0Months=function(){return", cada %s meses"},u.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},u.prototype.commaOnlyInX0=function(){return", sólo en %s"},u.prototype.commaOnlyOnX0=function(){return", sólo el %s"},u.prototype.commaAndOnX0=function(){return", y el %s"},u.prototype.commaOnThe=function(){return", en el "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},u.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},u.prototype.commaX0ThroughX1=function(){return", de %s a %s"},u.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},u.prototype.everyHour=function(){return"cada hora"},u.prototype.everyMinute=function(){return"cada minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},u.prototype.everySecond=function(){return"cada segundo"},u.prototype.everyX0Hours=function(){return"cada %s horas"},u.prototype.everyX0Minutes=function(){return"cada %s minutos"},u.prototype.everyX0Seconds=function(){return"cada %s segundos"},u.prototype.fifth=function(){return"quinto"},u.prototype.first=function(){return"primero"},u.prototype.firstWeekday=function(){return"primer día de la semana"},u.prototype.fourth=function(){return"cuarto"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},u.prototype.second=function(){return"segundo"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},u.prototype.spaceAnd=function(){return" y"},u.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},u.prototype.lastDay=function(){return"el último día"},u.prototype.third=function(){return"tercer"},u.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},u.prototype.commaEveryX0Years=function(){return", cada %s años"},u.prototype.commaStartingX0=function(){return", comenzando %s"},u.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},u.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},u}();return c.es=d,l().locales.es=new d,i})())}(zE)),zE.exports}zCe();var BE={exports:{}},QB;function BCe(){return QB||(QB=1,function(t,e){(function(n,a){t.exports=a(ms())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function o(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,o),p.exports}o.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return o.d(f,{a:f}),f},o.d=(u,f)=>{for(var p in f)o.o(f,p)&&!o.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},o.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),o.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};o.r(i);var s=o(93),l=o.n(s),c=i;Object.defineProperty(c,"__esModule",{value:!0}),c.de=void 0;var d=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"jede Minute"},u.prototype.everyHour=function(){return"jede Stunde"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},u.prototype.atSpace=function(){return"Um "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},u.prototype.at=function(){return"Um"},u.prototype.spaceAnd=function(){return" und"},u.prototype.everySecond=function(){return"Jede Sekunde"},u.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},u.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},u.prototype.everyX0Minutes=function(){return"alle %s Minuten"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},u.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},u.prototype.everyX0Hours=function(){return"alle %s Stunden"},u.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},u.prototype.atX0=function(){return"um %s"},u.prototype.commaEveryDay=function(){return", jeden Tag"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},u.prototype.commaX0ThroughX1=function(){return", %s bis %s"},u.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},u.prototype.first=function(){return"ersten"},u.prototype.second=function(){return"zweiten"},u.prototype.third=function(){return"dritten"},u.prototype.fourth=function(){return"vierten"},u.prototype.fifth=function(){return"fünften"},u.prototype.commaOnThe=function(){return", am "},u.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},u.prototype.lastDay=function(){return"der letzte Tag"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},u.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},u.prototype.commaAndOnX0=function(){return", und jeden %s"},u.prototype.commaEveryX0Months=function(){return", alle %s Monate"},u.prototype.commaOnlyInX0=function(){return", nur im %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},u.prototype.firstWeekday=function(){return"ersten Werktag"},u.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},u.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},u.prototype.commaEveryX0Days=function(){return", alle %s Tage"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},u.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},u.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},u.prototype.commaStartingX0=function(){return", beginnend %s"},u.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},u.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},u}();return c.de=d,l().locales.de=new d,i})())}(BE)),BE.exports}BCe();var jE={exports:{}},ej;function jCe(){return ej||(ej=1,function(t,e){(function(n,a){t.exports=a(ms())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function o(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,o),p.exports}o.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return o.d(f,{a:f}),f},o.d=(u,f)=>{for(var p in f)o.o(f,p)&&!o.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},o.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),o.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};o.r(i);var s=o(93),l=o.n(s),c=i;Object.defineProperty(c,"__esModule",{value:!0}),c.it=void 0;var d=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},u.prototype.at=function(){return"Alle"},u.prototype.atSpace=function(){return"Alle "},u.prototype.atX0=function(){return"alle %s"},u.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},u.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},u.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},u.prototype.commaEveryDay=function(){return", ogni giorno"},u.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},u.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},u.prototype.commaEveryX0Years=function(){return", ogni %s anni"},u.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},u.prototype.commaOnlyInX0=function(){return", solo in %s"},u.prototype.commaOnlyOnX0=function(){return", solo il %s"},u.prototype.commaAndOnX0=function(){return", e il %s"},u.prototype.commaOnThe=function(){return", il "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},u.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},u.prototype.commaX0ThroughX1=function(){return", %s al %s"},u.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},u.prototype.everyHour=function(){return"ogni ora"},u.prototype.everyMinute=function(){return"ogni minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},u.prototype.everySecond=function(){return"ogni secondo"},u.prototype.everyX0Hours=function(){return"ogni %s ore"},u.prototype.everyX0Minutes=function(){return"ogni %s minuti"},u.prototype.everyX0Seconds=function(){return"ogni %s secondi"},u.prototype.fifth=function(){return"quinto"},u.prototype.first=function(){return"primo"},u.prototype.firstWeekday=function(){return"primo giorno della settimana"},u.prototype.fourth=function(){return"quarto"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},u.prototype.second=function(){return"secondo"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},u.prototype.spaceAnd=function(){return" e"},u.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},u.prototype.lastDay=function(){return"l'ultimo giorno"},u.prototype.third=function(){return"terzo"},u.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},u.prototype.commaStartingX0=function(){return", a partire %s"},u.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},u.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},u}();return c.it=d,l().locales.it=new d,i})())}(jE)),jE.exports}jCe();var WE={exports:{}},tj;function WCe(){return tj||(tj=1,function(t,e){(function(n,a){t.exports=a(ms())})(globalThis,r=>(()=>{var n={93:p=>{p.exports=r}},a={};function o(p){var m=a[p];if(m!==void 0)return m.exports;var g=a[p]={exports:{}};return n[p](g,g.exports,o),g.exports}o.n=p=>{var m=p&&p.__esModule?()=>p.default:()=>p;return o.d(m,{a:m}),m},o.d=(p,m)=>{for(var g in m)o.o(m,g)&&!o.o(p,g)&&Object.defineProperty(p,g,{enumerable:!0,get:m[g]})},o.o=(p,m)=>Object.prototype.hasOwnProperty.call(p,m),o.r=p=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(p,"__esModule",{value:!0})};var i={};o.r(i);var s=o(93),l=o.n(s),c=i;Object.defineProperty(c,"__esModule",{value:!0}),c.ru=void 0;var d=function(p,m){var g=Number(p);return g!==void 0?m[g%100>4&&g%100<20?2:[2,0,1,1,1,2][g%10<5?Math.abs(g)%10:5]]:m[2]},u=function(p,m){var g=Number(p);return g!==void 0?m[g===0?0:g===1||g===2||g===4?1:2]:m[1]},f=function(){function p(){}return p.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},p.prototype.atX0MinutesPastTheHourGt20=function(){return null},p.prototype.commaMonthX0ThroughMonthX1=function(){return null},p.prototype.commaYearX0ThroughYearX1=function(){return null},p.prototype.use24HourTimeFormatByDefault=function(){return!0},p.prototype.everyMinute=function(){return"каждую минуту"},p.prototype.everyHour=function(){return"каждый час"},p.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},p.prototype.atSpace=function(){return"В "},p.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},p.prototype.at=function(){return"В"},p.prototype.spaceAnd=function(){return" и"},p.prototype.everySecond=function(){return"каждую секунду"},p.prototype.everyX0Seconds=function(m){return d(m,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},p.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},p.prototype.atX0SecondsPastTheMinute=function(m){return d(m,["в %s секунду","в %s секунды","в %s секунд"])},p.prototype.everyX0Minutes=function(m){return d(m,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},p.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},p.prototype.atX0MinutesPastTheHour=function(m){return d(m,["в %s минуту","в %s минуты","в %s минут"])},p.prototype.everyX0Hours=function(m){return d(m,["каждый %s час","каждые %s часа","каждые %s часов"])},p.prototype.betweenX0AndX1=function(){return"с %s по %s"},p.prototype.atX0=function(){return"в %s"},p.prototype.commaEveryDay=function(){return", каждый день"},p.prototype.commaEveryX0DaysOfTheWeek=function(m){return d(m,["",", каждые %s дня недели",", каждые %s дней недели"])},p.prototype.commaX0ThroughX1=function(m){return m&&(m[0]=="2"||m[0]=="3")?", со %s по %s":", с %s по %s"},p.prototype.commaAndX0ThroughX1=function(m){return m&&(m[0]=="2"||m[0]=="3")?" и со %s по %s":" и с %s по %s"},p.prototype.first=function(m){return u(m,["первое","первый","первую"])},p.prototype.second=function(m){return u(m,["второе","второй","вторую"])},p.prototype.third=function(m){return u(m,["третье","третий","третью"])},p.prototype.fourth=function(m){return u(m,["четвертое","четвертый","четвертую"])},p.prototype.fifth=function(m){return u(m,["пятое","пятый","пятую"])},p.prototype.commaOnThe=function(m){return m==="2"?", во ":", в "},p.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},p.prototype.lastDay=function(){return"последний день"},p.prototype.commaOnTheLastX0OfTheMonth=function(m){return u(m,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},p.prototype.commaOnlyOnX0=function(m){return m&&m[0]==="2"?", только во %s":", только в %s"},p.prototype.commaAndOnX0=function(){return", и %s"},p.prototype.commaEveryX0Months=function(m){return d(m,[""," каждые %s месяца"," каждые %s месяцев"])},p.prototype.commaOnlyInMonthX0=function(){return", только %s"},p.prototype.commaOnlyInX0=function(){return", только в %s"},p.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},p.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},p.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(m){return d(m,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},p.prototype.firstWeekday=function(){return"первый будний день"},p.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},p.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},p.prototype.commaEveryX0Days=function(m){return d(m,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},p.prototype.commaBetweenDayX0AndX1OfTheMonth=function(m){return m&&m.substring(0,m.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},p.prototype.commaOnDayX0OfTheMonth=function(m){return m&&m[0]=="2"?", во %s число месяца":", в %s число месяца"},p.prototype.commaEveryX0Years=function(m){return d(m,[", каждый %s год",", каждые %s года",", каждые %s лет"])},p.prototype.commaStartingX0=function(){return", начало %s"},p.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},p.prototype.daysOfTheWeekInCase=function(m){return m===void 0&&(m=2),m==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},p.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},p.prototype.monthsOfTheYearInCase=function(m){return m==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},p}();return c.ru=f,l().locales.ru=new f,i})())}(WE)),WE.exports}WCe();var HE={exports:{}},rj;function HCe(){return rj||(rj=1,function(t,e){(function(n,a){t.exports=a(ms())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function o(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,o),p.exports}o.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return o.d(f,{a:f}),f},o.d=(u,f)=>{for(var p in f)o.o(f,p)&&!o.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},o.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),o.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};o.r(i);var s=o(93),l=o.n(s),c=i;Object.defineProperty(c,"__esModule",{value:!0}),c.zh_CN=void 0;var d=function(){function u(){}return u.prototype.setPeriodBeforeTime=function(){return!0},u.prototype.pm=function(){return"下午"},u.prototype.am=function(){return"上午"},u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},u.prototype.use24HourTimeFormatByDefault=function(){return!1},u.prototype.everyMinute=function(){return"每分钟"},u.prototype.everyHour=function(){return"每小时"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},u.prototype.atSpace=function(){return"在"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},u.prototype.at=function(){return"在"},u.prototype.spaceAnd=function(){return" 和"},u.prototype.everySecond=function(){return"每秒"},u.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在每分钟的第 %s 到 %s 秒"},u.prototype.atX0SecondsPastTheMinute=function(){return"在每分钟的第 %s 秒"},u.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"在每小时的第 %s 到 %s 分钟"},u.prototype.atX0MinutesPastTheHour=function(){return"在每小时的第 %s 分钟"},u.prototype.everyX0Hours=function(){return"每隔 %s 小时"},u.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},u.prototype.atX0=function(){return"在%s"},u.prototype.commaEveryDay=function(){return", 每天"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},u.prototype.commaX0ThroughX1=function(){return", %s至%s"},u.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},u.prototype.first=function(){return"第一个"},u.prototype.second=function(){return"第二个"},u.prototype.third=function(){return"第三个"},u.prototype.fourth=function(){return"第四个"},u.prototype.fifth=function(){return"第五个"},u.prototype.commaOnThe=function(){return", 限每月的"},u.prototype.spaceX0OfTheMonth=function(){return"%s"},u.prototype.lastDay=function(){return"本月最后一天"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},u.prototype.commaOnlyOnX0=function(){return", 仅%s"},u.prototype.commaAndOnX0=function(){return", 或者为%s"},u.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},u.prototype.commaOnlyInX0=function(){return", 仅限%s"},u.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},u.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},u.prototype.firstWeekday=function(){return"第一个工作日"},u.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},u.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},u.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},u.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},u.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},u.prototype.commaStartingX0=function(){return", %s开始"},u.prototype.dayX0=function(){return" %s 号"},u.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},u.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u}();return c.zh_CN=d,l().locales.zh_CN=new d,i})())}(HE)),HE.exports}HCe();var UE={exports:{}},nj;function UCe(){return nj||(nj=1,function(t,e){(function(n,a){t.exports=a(ms())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function o(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,o),p.exports}o.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return o.d(f,{a:f}),f},o.d=(u,f)=>{for(var p in f)o.o(f,p)&&!o.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},o.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),o.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};o.r(i);var s=o(93),l=o.n(s),c=i;Object.defineProperty(c,"__esModule",{value:!0}),c.uk=void 0;var d=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"щохвилини"},u.prototype.everyHour=function(){return"щогодини"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},u.prototype.atSpace=function(){return"О "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},u.prototype.at=function(){return"О"},u.prototype.spaceAnd=function(){return" та"},u.prototype.everySecond=function(){return"Щосекунди"},u.prototype.everyX0Seconds=function(){return"кожні %s секунд"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},u.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},u.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},u.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},u.prototype.everyX0Hours=function(){return"кожні %s годин"},u.prototype.betweenX0AndX1=function(){return"між %s та %s"},u.prototype.atX0=function(){return"о %s"},u.prototype.commaEveryDay=function(){return", щоденно"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},u.prototype.commaX0ThroughX1=function(){return", %s по %s"},u.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},u.prototype.first=function(){return"перший"},u.prototype.second=function(){return"другий"},u.prototype.third=function(){return"третій"},u.prototype.fourth=function(){return"четвертий"},u.prototype.fifth=function(){return"п'ятий"},u.prototype.commaOnThe=function(){return", в "},u.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},u.prototype.lastDay=function(){return"останній день"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},u.prototype.commaOnlyOnX0=function(){return", тільки в %s"},u.prototype.commaAndOnX0=function(){return", і в %s"},u.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},u.prototype.commaOnlyInX0=function(){return", тільки в %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},u.prototype.firstWeekday=function(){return"перший будень"},u.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},u.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},u.prototype.commaEveryX0Days=function(){return", кожен %s день"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},u.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},u.prototype.commaEveryX0Years=function(){return", кожні %s роки"},u.prototype.commaStartingX0=function(){return", початок %s"},u.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},u.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},u}();return c.uk=d,l().locales.uk=new d,i})())}(UE)),UE.exports}UCe();var VE={exports:{}},aj;function VCe(){return aj||(aj=1,function(t,e){(function(n,a){t.exports=a(ms())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function o(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,o),p.exports}o.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return o.d(f,{a:f}),f},o.d=(u,f)=>{for(var p in f)o.o(f,p)&&!o.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},o.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),o.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};o.r(i);var s=o(93),l=o.n(s),c=i;Object.defineProperty(c,"__esModule",{value:!0}),c.pt_BR=void 0;var d=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},u.prototype.at=function(){return"às"},u.prototype.atSpace=function(){return"às "},u.prototype.atX0=function(){return"Às %s"},u.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},u.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},u.prototype.betweenX0AndX1=function(){return"entre %s e %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},u.prototype.commaEveryDay=function(){return", a cada dia"},u.prototype.commaEveryX0Days=function(){return", a cada %s dias"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},u.prototype.commaEveryX0Months=function(){return", a cada %s meses"},u.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},u.prototype.commaOnlyInX0=function(f){return f&&f.length>1&&f[1]==="-"?"somente %s":", somente em %s"},u.prototype.commaOnlyOnX0=function(f){return f&&f.length>1&&f[1]==="-"?", somente %s":", somente de %s"},u.prototype.commaAndOnX0=function(){return", e de %s"},u.prototype.commaOnThe=function(f,p){return p==="6"||p==="0"?", no":", na "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},u.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},u.prototype.commaX0ThroughX1=function(){return", de %s a %s"},u.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},u.prototype.everyHour=function(){return"a cada hora"},u.prototype.everyMinute=function(){return"a cada minuto"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},u.prototype.everySecond=function(){return"a cada segundo"},u.prototype.everyX0Hours=function(){return"a cada %s horas"},u.prototype.everyX0Minutes=function(){return"a cada %s minutos"},u.prototype.everyX0Seconds=function(){return"a cada %s segundos"},u.prototype.fifth=function(f){return f==="6"||f==="0"?"quinto":"quinta"},u.prototype.first=function(f){return f==="6"||f==="0"?"primeiro":"primeira"},u.prototype.firstWeekday=function(){return"primeiro dia da semana"},u.prototype.fourth=function(f){return f==="6"||f==="0"?"quarto":"quarta"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},u.prototype.second=function(f){return f==="6"||f==="0"?"segundo":"segunda"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},u.prototype.spaceAnd=function(){return" e"},u.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},u.prototype.lastDay=function(){return"o último dia"},u.prototype.third=function(f){return f==="6"||f==="0"?"terceiro":"terceira"},u.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},u.prototype.commaEveryX0Years=function(){return", a cada %s anos"},u.prototype.commaStartingX0=function(){return", iniciando %s"},u.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},u.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},u}();return c.pt_BR=d,l().locales.pt_BR=new d,i})())}(VE)),VE.exports}VCe();var YE={exports:{}},oj;function YCe(){return oj||(oj=1,function(t,e){(function(n,a){t.exports=a(ms())})(globalThis,r=>(()=>{var n={93:u=>{u.exports=r}},a={};function o(u){var f=a[u];if(f!==void 0)return f.exports;var p=a[u]={exports:{}};return n[u](p,p.exports,o),p.exports}o.n=u=>{var f=u&&u.__esModule?()=>u.default:()=>u;return o.d(f,{a:f}),f},o.d=(u,f)=>{for(var p in f)o.o(f,p)&&!o.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:f[p]})},o.o=(u,f)=>Object.prototype.hasOwnProperty.call(u,f),o.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var i={};o.r(i);var s=o(93),l=o.n(s),c=i;Object.defineProperty(c,"__esModule",{value:!0}),c.pl=void 0;var d=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},u.prototype.at=function(){return"O"},u.prototype.atSpace=function(){return"O "},u.prototype.atX0=function(){return"o %s"},u.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},u.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},u.prototype.betweenX0AndX1=function(){return"od %s do %s"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},u.prototype.commaEveryDay=function(){return", co dzień"},u.prototype.commaEveryX0Days=function(){return", co %s dni"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},u.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},u.prototype.commaEveryX0Years=function(){return", co %s lat"},u.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},u.prototype.commaOnlyInX0=function(){return", tylko %s"},u.prototype.commaOnlyOnX0=function(){return", tylko %s"},u.prototype.commaAndOnX0=function(){return", i %s"},u.prototype.commaOnThe=function(){return", "},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},u.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},u.prototype.commaX0ThroughX1=function(){return", od %s do %s"},u.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},u.prototype.everyHour=function(){return"co godzinę"},u.prototype.everyMinute=function(){return"co minutę"},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},u.prototype.everySecond=function(){return"co sekundę"},u.prototype.everyX0Hours=function(){return"co %s godzin"},u.prototype.everyX0Minutes=function(){return"co %s minut"},u.prototype.everyX0Seconds=function(){return"co %s sekund"},u.prototype.fifth=function(){return"piąty"},u.prototype.first=function(){return"pierwszy"},u.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},u.prototype.fourth=function(){return"czwarty"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},u.prototype.second=function(){return"drugi"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},u.prototype.spaceAnd=function(){return" i"},u.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},u.prototype.lastDay=function(){return"ostatni dzień"},u.prototype.third=function(){return"trzeci"},u.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},u.prototype.commaStartingX0=function(){return", startowy %s"},u.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},u.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},u}();return c.pl=d,l().locales.pl=new d,i})())}(YE)),YE.exports}YCe();function Oq(t,e){return NCe.toString(t,{locale:e})}const ba={mainDiv:{width:"100%",height:"100%"},periodSelect:{display:"block",width:250},slider:{marginTop:20,display:"block",width:"100%"},tabContent:{padding:20,height:"calc(100% - 240px)",overflow:"auto"},numberButton:{padding:4,minWidth:40,margin:5},numberButtonBreak:{display:"block"},appBar:{color:"white"},warning:{marginLeft:16,color:"red",fontSize:12}},GCe=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],qCe=["January","February","March","April","May","June","July","August","September","October","November","December"];function ij(t,e){const r=[];if(t==="*"){if(e===24||e===60||e===7)for(let a=0;a1){const i=parseInt(o[1],10);for(let s=parseInt(o[0],10);s<=i;s++)r.push(s)}else r.push(parseInt(n[a],10))}r.sort();for(let a=r.length-1;a>=0;a--)r[a]===r[a+1]&&r.splice(a+1,1);return r}function sj(t,e){if(typeof t!="object"&&(t=[t]),t.length===e)return"*";const r=[];if(!t.length)return"-";t=t.map(o=>parseInt(o,10)),t.sort((o,i)=>o-i);let n=t[0],a=t[0];for(let o=1;othis.props.onChange&&this.props.onChange(this.state.cron),100)}static cron2state(e){e=e.replace(/['"]/g,"").trim();const r=e.split(" ").map(a=>a.trim());let n;return r.length===6?n={seconds:r[0]||"*",minutes:r[1]||"*",hours:r[2]||"*",dates:r[3]||"*",months:r[4]||"*",dow:r[5]||"*"}:n={seconds:!1,minutes:r[0]||"*",hours:r[1]||"*",dates:r[2]||"*",months:r[3]||"*",dow:r[4]||"*"},n}static state2cron(e){let r=`${e.minutes} ${e.hours} ${e.dates} ${e.months} ${e.dow}`;return e.seconds!==!1&&(r=`${e.seconds} ${r}`),r}recalcCron(){const e=fc.state2cron(this.state);e!==this.state.cron&&this.setState({cron:e},()=>this.props.onChange&&this.props.onChange(this.state.cron))}onToggle(e,r,n){if(e===!0)this.setCronAttr(r,"*");else if(e===!1)n===60||n===24?this.setCronAttr(r,"0"):this.setCronAttr(r,"1");else{const a=ij(this.state[r],n),o=a.indexOf(e);o!==-1?a.splice(o,1):(a.push(e),a.sort()),this.setCronAttr(r,sj(a,n))}}getDigitsSelector(e,r){let n=[];if(r===7)n=[1,2,3,4,5,6,0];else if(r===60||r===24)for(let o=0;othis.onToggle(!1,e,r)},X.t("ra_Deselect all")),k.createElement(Tr,{key:"addall",variant:"contained",style:ba.numberButton,color:"secondary",onClick:()=>this.onToggle(!0,e,r)},X.t("ra_Select all")),k.createElement("div",{key:"all"},n.map(o=>[r===7&&o===4||r===12&&o===7||r===31&&!((o-1)%10)||r===60&&o&&!(o%10)||r===24&&o&&!(o%6)?k.createElement("div",{key:`allInner${o}`,style:{width:"100%"}}):null,k.createElement(Tr,{key:`_${o}`,variant:a.indexOf(o)!==-1?"contained":"outlined",style:ba.numberButton,color:a.indexOf(o)!==-1?"secondary":"primary",onClick:()=>this.onToggle(o,e,r)},r===7?X.t(GCe[o]):r===12?qCe[o-1]:o)]))]}getPeriodsTab(e,r){const n=this.state[e];let a=n==="*",o=n==null?!1:n.toString().includes("/"),i;if(this.state.modes[e]===null){i=a?"every":o?"everyN":"specific";const l=JSON.parse(JSON.stringify(this.state.modes));return l[e]=i,setTimeout(()=>this.setState({modes:l},()=>this.recalcCron()),100),null}a=this.state.modes[e]==="every",o=this.state.modes[e]==="everyN",i=this.state.modes[e];let s=1;return o&&n&&(s=parseInt(n.replace("*/",""),10)||1),k.createElement("div",null,k.createElement(ii,{variant:"standard",style:{...ba.periodSelect,verticalAlign:"bottom"},value:i,onChange:l=>{const c=JSON.parse(JSON.stringify(this.state.modes));if(c[e]=l.target.value,l.target.value==="every")this.setCronAttr(e,"*",c);else if(l.target.value==="everyN"){const d=parseInt((this.state[e]||"").toString().replace("*/",""),10)||1;this.setCronAttr(e,`*/${d}`,c)}else if(l.target.value==="specific"){let d=parseInt((this.state[e]||"").toString().split(",")[0],10)||0;!d&&(e==="months"||e==="dates")&&(d=1),this.setCronAttr(e,sj(d,r),c)}}},k.createElement(Rr,{key:"every",value:"every"},X.t(`sc_every_${e}`)),k.createElement(Rr,{key:"everyN",value:"everyN"},X.t(`sc_everyN_${e}`)),k.createElement(Rr,{key:"specific",value:"specific"},X.t(`sc_specific_${e}`))),o&&k.createElement(Vn,{variant:"standard",key:"interval",label:X.t(`sc_${e}`),value:s,slotProps:{htmlInput:{min:1,max:r},inputLabel:{shrink:!0}},onChange:l=>{this.setState({[e]:`*/${l.target.value}`},()=>this.recalcCron())},type:"number",margin:"normal"}),!a&&!o&&this.getDigitsSelector(e,r))}static convertCronToText(e,r){return e.split(" ").includes("-")?X.t("ra_Invalid CRON"):Oq(e,r)}setCronAttr(e,r,n){n?e==="seconds"?this.setState({seconds:r,modes:n},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r,modes:n},()=>this.recalcCron()):e==="hours"?this.setState({hours:r,modes:n},()=>this.recalcCron()):e==="dates"?this.setState({dates:r,modes:n},()=>this.recalcCron()):e==="months"?this.setState({months:r,modes:n},()=>this.recalcCron()):e==="dow"?this.setState({dow:r,modes:n},()=>this.recalcCron()):this.setState({modes:n},()=>this.recalcCron()):e==="seconds"?this.setState({seconds:r},()=>this.recalcCron()):e==="minutes"?this.setState({minutes:r},()=>this.recalcCron()):e==="hours"?this.setState({hours:r},()=>this.recalcCron()):e==="dates"?this.setState({dates:r},()=>this.recalcCron()):e==="months"?this.setState({months:r},()=>this.recalcCron()):e==="dow"&&this.setState({dow:r},()=>this.recalcCron())}render(){const e=this.state.seconds!==!1?this.state.tab:this.state.tab+1,r=this.state.minutes==="*"||this.state.minutes==="*/1",n=this.state.seconds==="*"||this.state.seconds==="*/1";return k.createElement("div",{style:ba.mainDiv},k.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)"}},k.createElement(Vn,{variant:"standard",style:{width:"100%"},value:this.state.cron,disabled:!0})),k.createElement("div",{style:{paddingLeft:8,width:"calc(100% - px)",height:60}},fc.convertCronToText(this.state.cron,this.props.language||"en"),k.createElement("span",{style:ba.warning},n?X.t("ra_warning_every_second"):r?X.t("ra_warning_every_minute"):"")),k.createElement(At,{control:k.createElement(vn,{checked:!!this.state.seconds,onChange:a=>this.setState({seconds:a.target.checked?"*":!1},()=>this.recalcCron())}),label:X.t("ra_use seconds")}),k.createElement(hfe,{position:"static",sx:{"&.MuiAppBar-root":ba.appBar},color:"secondary"},k.createElement(jge,{value:this.state.tab,style:ba.appBar,color:"secondary",onChange:(a,o)=>this.setState({tab:o})},this.state.seconds!==!1&&k.createElement(Sf,{id:"sc_seconds",label:X.t("sc_seconds")}),k.createElement(Sf,{id:"minutes",label:X.t("sc_minutes")}),k.createElement(Sf,{id:"hours",label:X.t("sc_hours")}),k.createElement(Sf,{id:"dates",label:X.t("sc_dates")}),k.createElement(Sf,{id:"months",label:X.t("sc_months")}),k.createElement(Sf,{id:"dow",label:X.t("sc_dows")}))),e===0&&k.createElement("div",{style:ba.tabContent},this.getPeriodsTab("seconds",60)),e===1&&k.createElement("div",{style:ba.tabContent},this.getPeriodsTab("minutes",60)),e===2&&k.createElement("div",{style:ba.tabContent},this.getPeriodsTab("hours",24)),e===3&&k.createElement("div",{style:ba.tabContent},this.getPeriodsTab("dates",31)),e===4&&k.createElement("div",{style:ba.tabContent},this.getPeriodsTab("months",12)),e===5&&k.createElement("div",{style:ba.tabContent},this.getPeriodsTab("dow",7)))}}function jd(t,e,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(d){try{c(n.next(d))}catch(u){i(u)}}function l(d){try{c(n.throw(d))}catch(u){i(u)}}function c(d){d.done?o(d.value):a(d.value).then(s,l)}c((n=n.apply(t,e||[])).next())})}const XCe=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 rp(t,e,r){const n=JCe(t),{webkitRelativePath:a}=t,o=typeof e=="string"?e:typeof a=="string"&&a.length>0?a:`./${t.name}`;return typeof n.path!="string"&&lj(n,"path",o),lj(n,"relativePath",o),n}function JCe(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const n=e.split(".").pop().toLowerCase(),a=XCe.get(n);a&&Object.defineProperty(t,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return t}function lj(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}const KCe=[".DS_Store","Thumbs.db"];function ZCe(t){return jd(this,void 0,void 0,function*(){return $1(t)&&QCe(t.dataTransfer)?nTe(t.dataTransfer,t.type):eTe(t)?tTe(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?rTe(t):[]})}function QCe(t){return $1(t)}function eTe(t){return $1(t)&&$1(t.target)}function $1(t){return typeof t=="object"&&t!==null}function tTe(t){return QO(t.target.files).map(e=>rp(e))}function rTe(t){return jd(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>rp(r))})}function nTe(t,e){return jd(this,void 0,void 0,function*(){if(t.items){const r=QO(t.items).filter(a=>a.kind==="file");if(e!=="drop")return r;const n=yield Promise.all(r.map(aTe));return cj($q(n))}return cj(QO(t.files).map(r=>rp(r)))})}function cj(t){return t.filter(e=>KCe.indexOf(e.name)===-1)}function QO(t){if(t===null)return[];const e=[];for(let r=0;r[...e,...Array.isArray(r)?$q(r):[r]],[])}function uj(t,e){return jd(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const o=yield t.getAsFileSystemHandle();if(o===null)throw new Error(`${t} is not a File`);if(o!==void 0){const i=yield o.getFile();return i.handle=o,rp(i)}}const n=t.getAsFile();if(!n)throw new Error(`${t} is not a File`);return rp(n,(r=e==null?void 0:e.fullPath)!==null&&r!==void 0?r:void 0)})}function oTe(t){return jd(this,void 0,void 0,function*(){return t.isDirectory?Aq(t):iTe(t)})}function Aq(t){const e=t.createReader();return new Promise((r,n)=>{const a=[];function o(){e.readEntries(i=>jd(this,void 0,void 0,function*(){if(i.length){const s=Promise.all(i.map(oTe));a.push(s),o()}else try{const s=yield Promise.all(a);r(s)}catch(s){n(s)}}),i=>{n(i)})}o()})}function iTe(t){return jd(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(n=>{const a=rp(n,t.fullPath);e(a)},n=>{r(n)})})})}var p0={},dj;function sTe(){return dj||(dj=1,p0.__esModule=!0,p0.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",a=(t.type||"").toLowerCase(),o=a.replace(/\/.*$/,"");return r.some(function(i){var s=i.trim().toLowerCase();return s.charAt(0)==="."?n.toLowerCase().endsWith(s):s.endsWith("/*")?o===s.replace(/\/.*$/,""):a===s})}return!0}),p0}var lTe=sTe();const GE=fs(lTe);function fj(t){return dTe(t)||uTe(t)||Iq(t)||cTe()}function cTe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uTe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function dTe(t){if(Array.isArray(t))return e$(t)}function hj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function pj(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:"",r=e.split(","),n=r.length>1?"one of ".concat(r.join(", ")):r[0];return{code:mTe,message:"File type must be ".concat(n)}},vj=function(e){return{code:gTe,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},mj=function(e){return{code:_Te,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},wTe={code:yTe,message:"Too many files"};function Rq(t,e){var r=t.type==="application/x-moz-file"||vTe(t,e);return[r,r?null:bTe(e)]}function Lq(t,e,r){if(Wu(t.size))if(Wu(e)&&Wu(r)){if(t.size>r)return[!1,vj(r)];if(t.sizer)return[!1,vj(r)]}return[!0,null]}function Wu(t){return t!=null}function STe(t){var e=t.files,r=t.accept,n=t.minSize,a=t.maxSize,o=t.multiple,i=t.maxFiles,s=t.validator;return!o&&e.length>1||o&&i>=1&&e.length>i?!1:e.every(function(l){var c=Rq(l,r),d=dg(c,1),u=d[0],f=Lq(l,n,a),p=dg(f,1),m=p[0],g=s?s(l):null;return u&&m&&!g})}function A1(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function v0(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function gj(t){t.preventDefault()}function xTe(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function CTe(t){return t.indexOf("Edge/")!==-1}function TTe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return xTe(t)||CTe(t)}function Ri(){for(var t=arguments.length,e=new Array(t),r=0;r1?a-1:0),i=1;it.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function WTe(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,o;for(o=0;o=0)&&(r[a]=t[a]);return r}var wS=R.forwardRef(function(t,e){var r=t.children,n=P1(t,$Te),a=HTe(n),o=a.open,i=P1(a,ATe);return R.useImperativeHandle(e,function(){return{open:o}},[o]),k.createElement(R.Fragment,null,r(Br(Br({},i),{},{open:o})))});wS.displayName="Dropzone";var Bq={disabled:!1,getFilesFromEvent:ZCe,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};wS.defaultProps=Bq;wS.propTypes={children:ue.func,accept:ue.objectOf(ue.arrayOf(ue.string)),multiple:ue.bool,preventDropOnDocument:ue.bool,noClick:ue.bool,noKeyboard:ue.bool,noDrag:ue.bool,noDragEventsBubbling:ue.bool,minSize:ue.number,maxSize:ue.number,maxFiles:ue.number,disabled:ue.bool,getFilesFromEvent:ue.func,onFileDialogCancel:ue.func,onFileDialogOpen:ue.func,useFsAccessApi:ue.bool,autoFocus:ue.bool,onDragEnter:ue.func,onDragLeave:ue.func,onDragOver:ue.func,onDrop:ue.func,onDropAccepted:ue.func,onDropRejected:ue.func,onError:ue.func,validator:ue.func};var n$={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function HTe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Br(Br({},Bq),t),r=e.accept,n=e.disabled,a=e.getFilesFromEvent,o=e.maxSize,i=e.minSize,s=e.multiple,l=e.maxFiles,c=e.onDragEnter,d=e.onDragLeave,u=e.onDragOver,f=e.onDrop,p=e.onDropAccepted,m=e.onDropRejected,g=e.onFileDialogCancel,_=e.onFileDialogOpen,b=e.useFsAccessApi,w=e.autoFocus,S=e.preventDropOnDocument,x=e.noClick,E=e.noKeyboard,T=e.noDrag,D=e.noDragEventsBubbling,A=e.onError,P=e.validator,O=R.useMemo(function(){return DTe(r)},[r]),I=R.useMemo(function(){return ETe(r)},[r]),F=R.useMemo(function(){return typeof _=="function"?_:yj},[_]),N=R.useMemo(function(){return typeof g=="function"?g:yj},[g]),B=R.useRef(null),j=R.useRef(null),V=R.useReducer(UTe,n$),Q=qE(V,2),G=Q[0],q=Q[1],te=G.isFocused,z=G.isFileDialogActive,U=R.useRef(typeof window<"u"&&window.isSecureContext&&b&&kTe()),Z=function(){!U.current&&z&&setTimeout(function(){if(j.current){var Ne=j.current.files;Ne.length||(q({type:"closeDialog"}),N())}},300)};R.useEffect(function(){return window.addEventListener("focus",Z,!1),function(){window.removeEventListener("focus",Z,!1)}},[j,z,N,U]);var K=R.useRef([]),se=function(Ne){B.current&&B.current.contains(Ne.target)||(Ne.preventDefault(),K.current=[])};R.useEffect(function(){return S&&(document.addEventListener("dragover",gj,!1),document.addEventListener("drop",se,!1)),function(){S&&(document.removeEventListener("dragover",gj),document.removeEventListener("drop",se))}},[B,S]),R.useEffect(function(){return!n&&w&&B.current&&B.current.focus(),function(){}},[B,w,n]);var we=R.useCallback(function(de){A?A(de):console.error(de)},[A]),Le=R.useCallback(function(de){de.preventDefault(),de.persist(),ct(de),K.current=[].concat(RTe(K.current),[de.target]),v0(de)&&Promise.resolve(a(de)).then(function(Ne){if(!(A1(de)&&!D)){var Mt=Ne.length,Ze=Mt>0&&STe({files:Ne,accept:O,minSize:i,maxSize:o,multiple:s,maxFiles:l,validator:P}),Qe=Mt>0&&!Ze;q({isDragAccept:Ze,isDragReject:Qe,isDragActive:!0,type:"setDraggedFiles"}),c&&c(de)}}).catch(function(Ne){return we(Ne)})},[a,c,we,D,O,i,o,s,l,P]),$e=R.useCallback(function(de){de.preventDefault(),de.persist(),ct(de);var Ne=v0(de);if(Ne&&de.dataTransfer)try{de.dataTransfer.dropEffect="copy"}catch{}return Ne&&u&&u(de),!1},[u,D]),Me=R.useCallback(function(de){de.preventDefault(),de.persist(),ct(de);var Ne=K.current.filter(function(Ze){return B.current&&B.current.contains(Ze)}),Mt=Ne.indexOf(de.target);Mt!==-1&&Ne.splice(Mt,1),K.current=Ne,!(Ne.length>0)&&(q({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),v0(de)&&d&&d(de))},[B,d,D]),ke=R.useCallback(function(de,Ne){var Mt=[],Ze=[];de.forEach(function(Qe){var Tt=Rq(Qe,O),zt=qE(Tt,2),He=zt[0],Yt=zt[1],Qt=Lq(Qe,i,o),Ut=qE(Qt,2),ce=Ut[0],Se=Ut[1],Je=P?P(Qe):null;if(He&&ce&&!Je)Mt.push(Qe);else{var st=[Yt,Se];Je&&(st=st.concat(Je)),Ze.push({file:Qe,errors:st.filter(function(Gt){return Gt})})}}),(!s&&Mt.length>1||s&&l>=1&&Mt.length>l)&&(Mt.forEach(function(Qe){Ze.push({file:Qe,errors:[wTe]})}),Mt.splice(0)),q({acceptedFiles:Mt,fileRejections:Ze,isDragReject:Ze.length>0,type:"setFiles"}),f&&f(Mt,Ze,Ne),Ze.length>0&&m&&m(Ze,Ne),Mt.length>0&&p&&p(Mt,Ne)},[q,s,O,i,o,l,f,p,m,P]),me=R.useCallback(function(de){de.preventDefault(),de.persist(),ct(de),K.current=[],v0(de)&&Promise.resolve(a(de)).then(function(Ne){A1(de)&&!D||ke(Ne,de)}).catch(function(Ne){return we(Ne)}),q({type:"reset"})},[a,ke,we,D]),he=R.useCallback(function(){if(U.current){q({type:"openDialog"}),F();var de={multiple:s,types:I};window.showOpenFilePicker(de).then(function(Ne){return a(Ne)}).then(function(Ne){ke(Ne,null),q({type:"closeDialog"})}).catch(function(Ne){MTe(Ne)?(N(Ne),q({type:"closeDialog"})):OTe(Ne)?(U.current=!1,j.current?(j.current.value=null,j.current.click()):we(new 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 was provided."))):we(Ne)});return}j.current&&(q({type:"openDialog"}),F(),j.current.value=null,j.current.click())},[q,F,N,b,ke,we,I,s]),rt=R.useCallback(function(de){!B.current||!B.current.isEqualNode(de.target)||(de.key===" "||de.key==="Enter"||de.keyCode===32||de.keyCode===13)&&(de.preventDefault(),he())},[B,he]),Pe=R.useCallback(function(){q({type:"focus"})},[]),Ie=R.useCallback(function(){q({type:"blur"})},[]),xt=R.useCallback(function(){x||(TTe()?setTimeout(he,0):he())},[x,he]),Ce=function(Ne){return n?null:Ne},Xe=function(Ne){return E?null:Ce(Ne)},_t=function(Ne){return T?null:Ce(Ne)},ct=function(Ne){D&&Ne.stopPropagation()},it=R.useMemo(function(){return function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ne=de.refKey,Mt=Ne===void 0?"ref":Ne,Ze=de.role,Qe=de.onKeyDown,Tt=de.onFocus,zt=de.onBlur,He=de.onClick,Yt=de.onDragEnter,Qt=de.onDragOver,Ut=de.onDragLeave,ce=de.onDrop,Se=P1(de,PTe);return Br(Br(r$({onKeyDown:Xe(Ri(Qe,rt)),onFocus:Xe(Ri(Tt,Pe)),onBlur:Xe(Ri(zt,Ie)),onClick:Ce(Ri(He,xt)),onDragEnter:_t(Ri(Yt,Le)),onDragOver:_t(Ri(Qt,$e)),onDragLeave:_t(Ri(Ut,Me)),onDrop:_t(Ri(ce,me)),role:typeof Ze=="string"&&Ze!==""?Ze:"presentation"},Mt,B),!n&&!E?{tabIndex:0}:{}),Se)}},[B,rt,Pe,Ie,xt,Le,$e,Me,me,E,T,n]),Ae=R.useCallback(function(de){de.stopPropagation()},[]),Rt=R.useMemo(function(){return function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ne=de.refKey,Mt=Ne===void 0?"ref":Ne,Ze=de.onChange,Qe=de.onClick,Tt=P1(de,ITe),zt=r$({accept:O,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:Ce(Ri(Ze,me)),onClick:Ce(Ri(Qe,Ae)),tabIndex:-1},Mt,j);return Br(Br({},zt),Tt)}},[j,r,s,me,n]);return Br(Br({},G),{},{isFocused:te&&!n,getRootProps:it,getInputProps:Rt,rootRef:B,inputRef:j,open:Ce(he)})}function UTe(t,e){switch(e.type){case"focus":return Br(Br({},t),{},{isFocused:!0});case"blur":return Br(Br({},t),{},{isFocused:!1});case"openDialog":return Br(Br({},n$),{},{isFileDialogActive:!0});case"closeDialog":return Br(Br({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return Br(Br({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return Br(Br({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return Br({},n$);default:return t}}function yj(){}function VTe(){const t=Ad();return[...t.breakpoints.keys].reverse().reduce((r,n)=>{const a=jve(t.breakpoints.up(n));return!r&&a?n:r},null)||"xs"}function o_(){return t=>function(r){const n=VTe();return k.createElement(t,{...r,width:n})}}function YTe(t){const[e,r]=k.useState(t.input||t.value||""),[n,a]=k.useState("");return k.createElement(_i,{open:!0,onClose:()=>t.onClose(null),"aria-labelledby":"form-dialog-title",fullWidth:t.fullWidth!==void 0?t.fullWidth:!1},k.createElement(wi,{id:"form-dialog-title"},t.titleText),k.createElement(bi,null,k.createElement(aS,null,t.promptText),k.createElement(Vn,{variant:"standard",autoFocus:!0,margin:"dense",error:!!n,helperText:n===!0||!n?"":n,value:e,label:t.labelText||"",type:t.type||"text",onKeyUp:o=>o.code==="Enter"&&e&&t.onClose(e),onChange:o=>{let i="";t.verify&&(i=!t.verify(o.target.value)),t.rule?r(t.rule(o.target.value)):r(o.target.value),a(i)},fullWidth:!0})),k.createElement(yi,null,k.createElement(Tr,{variant:"contained",disabled:!e||!!n,onClick:()=>t.onClose(e),color:"primary",startIcon:k.createElement(Pd,null)},t.applyText||X.t("ra_Ok")),k.createElement(Tr,{color:"grey",variant:"contained",onClick:()=>t.onClose(null),startIcon:k.createElement(tp,null)},t.cancelText||X.t("ra_Cancel"))))}const GTe=o_()(YTe),qTe=t=>k.createElement("svg",{onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 486 486",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),xmlns:"http://www.w3.org/2000/svg",className:t.className,style:t.style},k.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"}),k.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"})),a$=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},k.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"})),XTe=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 650 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},k.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"})),PI=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},k.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 JTe=t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,r)=>{const[n,a]=r.split(/ ?: ?/).map((o,i)=>i===0?o.replace(/\s+/g,""):o.trim());if(n&&a){const o=n.replace(/(\w)-(\w)/g,(s,l,c)=>`${l}${c.toUpperCase()}`);let i=a.trim();Number.isNaN(Number(a))||(i=Number(a)),e[n.startsWith("-")?n:o]=i}return e},{});function KTe(t=6){const e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=t;n>0;--n)r+=e[Math.round(Math.random()*(e.length-1))];return r}var ZTe=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],bj={"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 QTe(t,e){var o;const{key:r,level:n,...a}=e;switch(t.nodeType){case 1:return R.createElement(tke(t.nodeName),eke(t,r),wj(t.childNodes,n,a));case 3:{const i=((o=t.nodeValue)==null?void 0:o.toString())??"";if(!a.allowWhiteSpaces&&/^\s+$/.test(i)&&!/[\u00A0\u202F]/.test(i))return null;if(!t.parentNode)return i;const s=t.parentNode.nodeName.toLowerCase();return ZTe.includes(s)?(/\S/.test(i)&&console.warn(`A textNode is not allowed inside '${s}'. Your text "${i}" will be ignored`),null):i}case 8:return null;case 11:return wj(t.childNodes,n,e);default:return null}}function eke(t,e){const r={key:e};if(t instanceof Element){const n=t.getAttribute("class");n&&(r.className=n),[...t.attributes].forEach(a=>{switch(a.name){case"class":break;case"style":r[a.name]=JTe(a.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":r[bj[a.name]||a.name]=!0;break;default:r[bj[a.name]||a.name]=a.value}})}return r}function wj(t,e,r){const n=[...t].map((a,o)=>I1(a,{...r,index:o,level:e+1})).filter(Boolean);return n.length?n:null}function tke(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}function I1(t,e={}){if(!t||!(t instanceof Node))return null;const{actions:r=[],index:n=0,level:a=0,randomKey:o}=e;let i=t,s=`${a}-${n}`;const l=[];return o&&a===0&&(s=`${KTe()}-${s}`),Array.isArray(r)&&r.forEach(c=>{c.condition(i,s,a)&&(typeof c.pre=="function"&&(i=c.pre(i,s,a),i instanceof Node||(i=t)),typeof c.post=="function"&&l.push(c.post(i,s,a)))}),l.length?l:QTe(i,{key:s,level:a,...e})}function rke(t,e={}){if(!t||typeof t!="string")return null;const{includeAllNodes:r=!1,nodeOnly:n=!1,selector:a="body > *",type:o="text/html"}=e;try{const s=new DOMParser().parseFromString(t,o);if(r){const{childNodes:c}=s.body;return n?c:[...c].map(d=>I1(d,e))}const l=s.querySelector(a)||s.body.childNodes[0];if(!(l instanceof Node))throw new TypeError("Error parsing input");return n?l:I1(l,e)}catch{}return null}function jq(t,e={}){return typeof t=="string"?rke(t,e):t instanceof Node?I1(t,e):null}var nke=Object.defineProperty,ake=(t,e,r)=>e in t?nke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,m0=(t,e,r)=>ake(t,typeof e!="symbol"?e+"":e,r),Sj="react-inlinesvg",xj=10,ur={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function Ub(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oke(){return ske()&&typeof window<"u"&&window!==null}async function Wq(t,e){const r=await fetch(t,e),n=r.headers.get("content-type"),[a]=(n??"").split(/ ?; ?/);if(r.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(o=>a.includes(o)))throw new Error(`Content type isn't valid: ${a}`);return r.text()}function ike(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}function ske(){if(!document)return!1;const t=document.createElement("div");t.innerHTML="";const e=t.firstChild;return!!e&&e.namespaceURI==="http://www.w3.org/2000/svg"}function lke(t){return t[Math.floor(Math.random()*t.length)]}function cke(t){const e="abcdefghijklmnopqrstuvwxyz",n=`${e}${e.toUpperCase()}1234567890`;let a="";for(let o=0;o{this.cacheApi=r}).catch(r=>{console.error(`Failed to open cache: ${r.message}`)}).finally(()=>{this.isReady=!0,this.subscribers.forEach(r=>r())}):this.isReady=!0}onReady(t){this.isReady?t():this.subscribers.push(t)}async get(t,e){var r;return await(this.cacheApi?this.fetchAndAddToPersistentCache(t,e):this.fetchAndAddToInternalCache(t,e)),((r=this.cacheStore.get(t))==null?void 0:r.content)??""}set(t,e){this.cacheStore.set(t,e)}isCached(t){var e;return((e=this.cacheStore.get(t))==null?void 0:e.status)===ur.LOADED}async fetchAndAddToInternalCache(t,e){const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===ur.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:ur.IDLE}),await this.fetchAndAddToInternalCache(t,e)});return}if(!(r!=null&&r.content)){this.cacheStore.set(t,{content:"",status:ur.LOADING});try{const n=await Wq(t,e);this.cacheStore.set(t,{content:n,status:ur.LOADED})}catch(n){throw this.cacheStore.set(t,{content:"",status:ur.FAILED}),n}}}async fetchAndAddToPersistentCache(t,e){var a,o,i;const r=this.cacheStore.get(t);if((r==null?void 0:r.status)===ur.LOADED)return;if((r==null?void 0:r.status)===ur.LOADING){await this.handleLoading(t,async()=>{this.cacheStore.set(t,{content:"",status:ur.IDLE}),await this.fetchAndAddToPersistentCache(t,e)});return}this.cacheStore.set(t,{content:"",status:ur.LOADING});const n=await((a=this.cacheApi)==null?void 0:a.match(t));if(n){const s=await n.text();this.cacheStore.set(t,{content:s,status:ur.LOADED});return}try{await((o=this.cacheApi)==null?void 0:o.add(new Request(t,e)));const s=await((i=this.cacheApi)==null?void 0:i.match(t)),l=await(s==null?void 0:s.text())??"";this.cacheStore.set(t,{content:l,status:ur.LOADED})}catch(s){throw this.cacheStore.set(t,{content:"",status:ur.FAILED}),s}}async handleLoading(t,e){var n;let r=0;for(;((n=this.cacheStore.get(t))==null?void 0:n.status)===ur.LOADING&&r=xj&&await e()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([t,e])=>({[t]:e}))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){const t=await this.cacheApi.keys();for(const e of t)await this.cacheApi.delete(e)}this.cacheStore.clear()}};function Cj(t){const e=R.useRef();return R.useEffect(()=>{e.current=t}),e.current}function fke(t){const{baseURL:e,content:r,description:n,handleError:a,hash:o,preProcessor:i,title:s,uniquifyIDs:l=!1}=t;try{const c=hke(r,i),d=jq(c,{nodeOnly:!0});if(!d||!(d instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const u=Hq(d,{baseURL:e,hash:o,uniquifyIDs:l});if(n){const f=u.querySelector("desc");f!=null&&f.parentNode&&f.parentNode.removeChild(f);const p=document.createElementNS("http://www.w3.org/2000/svg","desc");p.innerHTML=n,u.prepend(p)}if(typeof s<"u"){const f=u.querySelector("title");if(f!=null&&f.parentNode&&f.parentNode.removeChild(f),s){const p=document.createElementNS("http://www.w3.org/2000/svg","title");p.innerHTML=s,u.prepend(p)}}return u}catch(c){return a(c)}}function hke(t,e){return e?e(t):t}function Hq(t,e){const{baseURL:r="",hash:n,uniquifyIDs:a}=e,o=["id","href","xlink:href","xlink:role","xlink:arcrole"],i=["href","xlink:href"],s=(l,c)=>i.includes(l)&&(c?!c.includes("#"):!1);return a&&[...t.children].forEach(l=>{var c;if((c=l.attributes)!=null&&c.length){const d=Object.values(l.attributes).map(u=>{const f=u,p=/url\((.*?)\)/.exec(u.value);return p!=null&&p[1]&&(f.value=u.value.replace(p[0],`url(${r}${p[1]}__${n})`)),f});o.forEach(u=>{const f=d.find(p=>p.name===u);f&&!s(u,f.value)&&(f.value=`${f.value}__${n}`)})}return l.children.length?Hq(l,e):l}),t}var wh;function pke(t){const{cacheRequests:e=!0,children:r=null,description:n,fetchOptions:a,innerRef:o,loader:i=null,onError:s,onLoad:l,src:c,title:d,uniqueHash:u}=t,[f,p]=R.useReducer((B,j)=>({...B,...j}),{content:"",element:null,isCached:e&&wh.isCached(t.src),status:ur.IDLE}),{content:m,element:g,isCached:_,status:b}=f,w=Cj(t),S=Cj(f),x=R.useRef(u??cke(8)),E=R.useRef(!1),T=R.useRef(!1),D=R.useCallback(B=>{E.current&&(p({status:B.message==="Browser does not support SVG"?ur.UNSUPPORTED:ur.FAILED}),s==null||s(B))},[s]),A=R.useCallback((B,j=!1)=>{E.current&&p({content:B,isCached:j,status:ur.LOADED})},[]),P=R.useCallback(async()=>{const B=await Wq(c,a);A(B)},[a,A,c]),O=R.useCallback(()=>{try{const B=fke({...t,handleError:D,hash:x.current,content:m}),j=jq(B);if(!j||!R.isValidElement(j))throw new Error("Could not convert the src to a React element");p({element:j,status:ur.READY})}catch(B){D(new Error(B.message))}},[m,D,t]),I=R.useCallback(async()=>{const B=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(c);let j;if(B?j=B[1]?window.atob(B[2]):decodeURIComponent(B[2]):c.includes("{E.current&&p({content:"",element:null,isCached:!1,status:ur.LOADING})},[]);R.useEffect(()=>{if(E.current=!0,!Ub()||T.current)return()=>{};try{if(b===ur.IDLE){if(!oke())throw new Error("Browser does not support SVG");if(!c)throw new Error("Missing src");F()}}catch(B){D(B)}return T.current=!0,()=>{E.current=!1}},[]),R.useEffect(()=>{if(Ub()&&w)if(w.src!==c){if(!c){D(new Error("Missing src"));return}F()}else(w.title!==d||w.description!==n)&&O()},[n,O,D,F,w,c,d]),R.useEffect(()=>{S&&(S.status!==ur.LOADING&&b===ur.LOADING&&I(),S.status!==ur.LOADED&&b===ur.LOADED&&O(),S.status!==ur.READY&&b===ur.READY&&(l==null||l(c,_)))},[I,O,_,l,S,c,b]);const N=uke(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return Ub()?g?R.cloneElement(g,{ref:o,...N}):[ur.UNSUPPORTED,ur.FAILED].includes(b)?r:i:i}function vke(t){wh||(wh=new dke);const{loader:e}=t,r=R.useRef(!1),[n,a]=R.useState(wh.isReady);return R.useEffect(()=>{r.current||(wh.onReady(()=>{a(!0)}),r.current=!0)},[]),n?k.createElement(pke,{...t}):e}const mke=window.location.hostname.endsWith("iobroker.in"),Tj=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1);function II(t){var e,r,n;if(t.src){if(typeof t.src=="string"){if(t.src.length<3)return t.sx?k.createElement(rr,{component:"span",sx:t.sx,title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:Nt.clsx(t.className,"iconOwn")},t.src):k.createElement("span",{title:t.title||void 0,style:{height:27,marginTop:-8,...t.styleUTF8||t.style},className:Nt.clsx(t.className,"iconOwn")},t.src);if(t.src.startsWith("data:image/svg"))return k.createElement(vke,{title:t.title||void 0,src:t.src,className:Nt.clsx(t.className,"iconOwn"),width:((e=t.style)==null?void 0:e.width)||28,height:((r=t.style)==null?void 0:r.height)||((n=t.style)==null?void 0:n.width)||28,style:t.style||void 0});if(mke&&!t.src.startsWith("http://")&&!t.src.startsWith("https://")){let a=t.src;return a.startsWith("./")?a=Tj+a.substring(2):a.startsWith("/")||(a=Tj+a),t.sx?k.createElement(rr,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:Nt.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${a}`,alt:t.alt||void 0,ref:t.ref,onError:o=>t.onError&&t.onError(o)}):k.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:Nt.clsx(t.className,"iconOwn"),src:`https://remote-files.iobroker.in${a}`,alt:t.alt||void 0,ref:t.ref,onError:o=>t.onError&&t.onError(o)})}return t.sx?k.createElement(rr,{component:"img",sx:t.sx,title:t.title||void 0,style:t.style||void 0,className:Nt.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError}):k.createElement("img",{title:t.title||void 0,style:t.style||void 0,className:Nt.clsx(t.className,"iconOwn"),src:t.src,alt:t.alt||void 0,ref:t.ref,onError:t.onError})}return t.src}return null}const lu={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"}},jn={images:["png","jpg","svg","jpeg","bmp","gif","apng","avif","webp","ico"],code:["js","json","json5","md"],txt:["log","txt","html","css","xml","ics"],audio:["mp3","wav","ogg","acc"],video:["mp4","mov","avi"]};function kj(t,e){let r="";const n=new Uint8Array((t==null?void 0:t.data)||t),a=n.byteLength;for(let o=0;o{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,a===null?window.alert("Show file was deleted!"):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))});const n=Nt.getFileExtension(r.href);this.state={text:null,code:null,ext:n,editing:!1,editingValue:null,copyPossible:!!n&&(jn.code.includes(n)||jn.txt.includes(n)),forceUpdate:Date.now(),changed:!1,imgError:!1}}readFile(){if(this.props.href){const r=this.props.href.split("/");r.splice(0,2);const n=r[0],a=r.splice(1).join("/");this.props.socket.readFile(n,a).then(o=>{let i="";o.file!==void 0&&(i=o.file);const s={copyPossible:this.state.copyPossible,ext:this.state.ext};if(i.type==="Buffer")if(a.toLowerCase().endsWith(".json5")){s.ext="json5",s.copyPossible=!0;try{i=atob(kj(i,!0))}catch{console.error("Cannot convert base64 to string"),i=""}}else{const l=Nt.detectMimeType(kj(i));l&&(s.ext=l,s.copyPossible=jn.code.includes(l)||jn.txt.includes(l))}s.copyPossible&&(s.ext&&jn.txt.includes(s.ext)?(s.text=i,s.editingValue=i):s.ext&&jn.code.includes(s.ext)&&(s.code=i,s.editingValue=i)),this.setState(s)}).catch(o=>window.alert(`Cannot read file: ${o}`))}}componentDidMount(){this.readFile();const r=this.props.href.split("/");r.splice(0,2);const n=r[0],a=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,a,this.onFileChanged).catch(o=>window.alert(`Cannot subscribe on file: ${o}`))}componentWillUnmount(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null);const r=this.props.href.split("/");r.splice(0,2);const n=r[0],a=r.splice(1).join("/");this.props.supportSubscribes&&this.props.socket.subscribeFiles(n,a,this.onFileChanged).catch(o=>window.alert(`Cannot subscribe on file: ${o}`))}getEditorOrViewer(){return k.createElement(Vn,{variant:"standard",style:lu.textarea,multiline:!0,value:this.state.editingValue||this.state.code||this.state.text,slotProps:{htmlInput:{readOnly:!this.state.editing}}})}getContent(){return this.state.ext&&jn.images.includes(this.state.ext)?this.state.imgError?k.createElement(PI,{style:{...lu.img,...this.props.getStyleBackgroundImage()}}):k.createElement(II,{onError:r=>{r.target.onerror=null,this.setState({imgError:!0})},style:{...lu.img,...this.props.getStyleBackgroundImage()},src:`${this.props.href}?ts=${this.state.forceUpdate}`,alt:this.props.href}):this.state.ext&&jn.audio.includes(this.state.ext)?k.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},k.createElement("audio",{style:{width:"100%"},src:this.props.href,controls:!0})):this.state.ext&&jn.video.includes(this.state.ext)?k.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},k.createElement("video",{style:{width:"100%",height:"100%"},controls:!0},k.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 k.createElement(_i,{sx:{"&.MuiDialog-scrollPaper":lu.dialog,"& .MuiDialog-paper":lu.paper},scroll:"paper",open:!!this.props.href,onClose:()=>this.props.onClose(),fullWidth:!0,maxWidth:"xl","aria-labelledby":"ar_dialog_file_view_title"},k.createElement("div",{style:lu.dialogTitle},k.createElement(wi,{id:"ar_dialog_file_view_title"},`${this.props.t(this.state.editing?"Edit":"View")}: ${this.props.href}`),this.state.ext&&jn.images.includes(this.state.ext)&&k.createElement("div",null,k.createElement(zn,{size:"large",color:"inherit",onClick:this.props.setStateBackgroundImage},k.createElement(kG,null)))),k.createElement(bi,{style:lu.content},this.getContent()),k.createElement(yi,null,this.state.copyPossible?k.createElement(Tr,{color:"grey",onClick:r=>{r.stopPropagation(),r.preventDefault(),Nt.copyToClipboard(this.state.text||this.state.code||"")},startIcon:k.createElement(n_e,null)},this.props.t("Copy content")):null,this.state.editing?k.createElement(Tr,{color:"grey",disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:"contained",onClick:()=>this.onSave(),startIcon:k.createElement(VO,null)},this.props.t("Save")):null,k.createElement(Tr,{variant:"contained",onClick:()=>this.props.onClose(),color:"primary",startIcon:k.createElement(tp,null)},this.props.t("Close"))))}}const _ke=o_()(gke),Df=32,As=32,g0=120,Ej=64,Dj="Not found",_0={all:DG,images:u_e,code:HP,txt:l_e,audio:Qge,video:C_e},Fe={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% - ${48*2+8}px)`,display:"flex",alignContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",flex:`0 0 ${Ej}px`},itemTile:t=>({position:"relative",userSelect:"none",cursor:"pointer",height:g0,width:Ej,display:"inline-block",textAlign:"center",opacity:.1,transition:"opacity 1s",margin:"4px",borderRadius:"4px","&:hover":{background:t.palette.secondary.light,color:Nt.invertColor(t.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:"bold"},itemNameTile:{width:"100%",height:32,overflow:"hidden",textOverflow:"ellipsis",fontSize:12,textAlign:"center",wordBreak:"break-all"},itemFolderIconTile:t=>({width:"100%",height:g0-32-16-8,display:"block",pl:1,color:t.palette.secondary.main||"#fbff7d"}),itemFolderIconBack:t=>({position:"absolute",top:22,left:18,zIndex:1,color:(t.palette.mode==="dark","#FFF")}),itemSizeTile:{width:"100%",height:16,textAlign:"center",fontSize:10},itemImageTile:{width:"calc(100% - 8px)",height:g0-32-16-8,margin:4,display:"block",textAlign:"center",objectFit:"contain"},itemIconTile:{width:"100%",height:g0-32-16-8,display:"block",objectFit:"contain"},itemSelected:t=>({background:t.palette.primary.main,color:Nt.invertColor(t.palette.primary.main,!0)}),itemTable:t=>({userSelect:"none",cursor:"pointer",height:Df,display:"inline-flex",lineHeight:`${Df}px`,"&:hover":{background:t.palette.secondary.light,color:Nt.invertColor(t.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:t=>({marginTop:"1px",marginLeft:"8px",display:"inline-block",width:30,height:30,color:t.palette.secondary.main||"#fbff7d"}),itemDownloadButtonTable:t=>({display:"inline-block",width:As,height:Df,minWidth:As,verticalAlign:"middle",textAlign:"center",padding:0,borderRadius:`${As/2}px`,"&:hover":{backgroundColor:t.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:t.palette.mode==="dark"?"#EEE":"#111"}}),itemDownloadEmptyTable:{display:"inline-block",width:As,height:Df,minWidth:As,padding:0},itemAclButtonTable:{width:As,height:Df,minWidth:As,verticalAlign:"top",padding:0,fontSize:12,display:"flex"},itemDeleteButtonTable:{display:"inline-block",width:As,height:Df,minWidth:As,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:t=>({m:"20px",border:"3px dashed grey",borderRadius:"30px",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"relative",color:t.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:t=>({display:"flex",width:"calc(100% - 16px)",ml:1,mr:1,textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText,borderRadius:"4px 4px 0 0"}),pathDivInput:{width:"100%"},pathDivBreadcrumbDir:t=>({pl:"2px",pr:"2px",cursor:"pointer",color:"white","&:hover":{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText}}),pathDivBreadcrumbSelected:{color:"#FFF"},backgroundImageLight:{background:"white"},backgroundImageDark:{background:"black"},backgroundImageColored:{background:"silver"},specialFolder:t=>({color:t.palette.mode==="dark"?"#229b0f":"#5dd300"}),tooltip:{pointerEvents:"none"}},Gl="0_userdata.0";function Mf(t){const e=(t||"").split("/");return e.length&&e.pop(),e.join("/")}function XE(t){const e=Nt.getFileExtension(t);return!!(e!=null&&e.toLowerCase().match(/[a-z]+/)&&e.length<5)}const or="Table",JE="Tile";function Mj(t,e){return t.folder&&e.folder?t.name>e.name?1:t.namee.name?1:t.name{const o=`${r}/${n}`,i=o.lastIndexOf("/"),s=o.substring(0,i);console.log(`File changed ${o}[${a}]`),this.state.folders[s]&&(this._tempTimeout[s]&&clearTimeout(this._tempTimeout[s]),this._tempTimeout[s]=setTimeout(()=>{delete this._tempTimeout[s],this.browseFolder(s,null,!1,!0).then(l=>this.setState({folders:l})).catch(l=>console.error(`Cannot read folder: ${l.message}`))},300))});ae(this,"setStateBackgroundImage",()=>{const r=["light","dark","colored","delete"];this.setState(({backgroundImage:n})=>n&&r.indexOf(n)!==-1&&r.length-1!==r.indexOf(n)?(this.localStorage.setItem("files.backgroundImage",r[r.indexOf(n)+1]),{backgroundImage:r[r.indexOf(n)+1]}):(this.localStorage.setItem("files.backgroundImage",r[0]),{backgroundImage:r[0]}))});ae(this,"getStyleBackgroundImage",()=>{switch(this.state.backgroundImage){case"light":return Fe.backgroundImageLight;case"dark":return Fe.backgroundImageDark;case"colored":return Fe.backgroundImageColored;case"delete":return null;default:return null}});this.localStorage=window._localStorage||window.localStorage;const n=this.localStorage.getItem("files.expanded")||"[]";if(this.refFileDiv=k.createRef(),this.props.limitPath){const c=this.props.limitPath.split("/");this.limitToObjectID=c[0],this.limitToPath=c.length?c.length===1&&c[0]===""?null:c.join("/"):null,this.limitToPath&&this.limitToPath.endsWith("/")&&this.limitToPath.substring(0,this.limitToPath.length-1)}let a;try{a=JSON.parse(n),this.limitToPath&&(a=a.filter(c=>{var d;return c.startsWith(`${this.limitToPath}/`)||c===this.limitToPath||((d=this.limitToPath)==null?void 0:d.startsWith(`${c}/`))}))}catch{a=[]}let o;this.props.showViewTypeButton?o=this.localStorage.getItem("files.viewType")||or:o=or;let i=this.props.selected||this.localStorage.getItem("files.selected")||Gl,s;if(r.restrictToFolder){i=r.restrictToFolder,s=r.restrictToFolder;const c=r.restrictToFolder.split("/");a=[];let d="";for(let u=0;u{if(this.state.viewType===or&&!this.findItem(this.state.selected)){const n=this.state.selected.split("/");for(;n.length&&!this.findItem(n.join("/"));)n.pop();let a;n.length?a=n.join("/"):a=Gl,this.setState({selected:a,path:a,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){if(this.mounted){const r=document.getElementById(this.state.selected);r==null||r.scrollIntoView()}}async componentDidMount(){this.mounted=!0,this.loadFolders().catch(r=>console.error(`Cannot load folders: ${r}`)),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(r=>r&&clearTimeout(r)),this._tempTimeout={}}browseFoldersCb(r,n,a){if(!(r!=null&&r.length))a(n);else{const o=r.shift();o?this.browseFolder(o,n).catch(i=>console.error(`Cannot read folder ${o}: ${i.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(r,n,a),0)}):setTimeout(()=>this.browseFoldersCb(r,n,a),0)}}browseFolders(r,n){let a;return n?a=n:(a={},Object.keys(this.state.folders).forEach(o=>a[o]=this.state.folders[o])),r!=null&&r.length?new Promise(o=>{this.browseFoldersCb(r,a,o)}):Promise.resolve(a)}readDirSerial(r,n){return new Promise((a,o)=>{this.browseList&&(this.browseList.push({resolve:a,reject:o,adapter:r,relPath:n}),this.browseListRunning||this.processBrowseList())})}processBrowseList(r=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.setState({queueLength:this.browseList.length}),this.browseList[0].processing=!0,this.props.socket.readDir(this.browseList[0].adapter,this.browseList[0].relPath).then(n=>{if(this.browseList){const a=this.browseList.shift();if(a){const o=a.resolve;a.resolve=null,a.reject=null,a.adapter=null,a.relPath=null,o&&o(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(n=>{if(this.browseList){const a=this.browseList.shift();if(a){const o=a.reject;a.resolve=null,a.reject=null,a.adapter=null,a.relPath=null,o&&o(n),this.browseListRunning=!1,this.browseList.length?r<5?this.processBrowseList(r+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(r,n,a,o){let i;if(n?i=n:(i={},Object.keys(this.state.folders).forEach(f=>{i[f]=this.state.folders[f]})),i[r]&&!o)return a?Promise.resolve(i):new Promise((f,p)=>{Promise.all(i[r].filter(m=>m.folder).map(m=>this.browseFolder(m.id,i,!0).catch(()=>{}))).then(()=>f(i)).catch(m=>p(new Error(m)))});if(!r||r==="/"){try{let f=await this.props.socket.readMetaItems();const p=[];let m=null;if(this.state.restrictToFolder){const _=this.state.restrictToFolder.split("/")[0];f=f.filter(b=>b._id===_)}else this.state.expertMode||(f=f.filter(_=>!_._id.endsWith(".admin")));const g=f.findIndex(_=>_._id==="system.meta.uuid");if(g!==-1&&f.splice(g,1),f.forEach(_=>{if(this.limitToObjectID&&this.limitToObjectID!==_._id)return;const b={id:_._id,name:_._id,title:_.common&&_.common.name||_._id,meta:!0,from:_.from,ts:_.ts,color:_.common&&_.common.color,icon:_.common&&_.common.icon,folder:!0,acl:_.acl,level:0};b.id===Gl?m=b:p.push(b)}),p.sort((_,b)=>_.id>b.id?1:_.id_.folder).map(_=>this.browseFolder(_.id,i,!0).catch(()=>{}))).then(()=>i)}catch(f){const p=f;this.initialReadFinished&&window.alert(`Cannot read meta items: ${p.message}`),i[r||"/"]=[]}return i}const s=r.split("/"),l=s.length,c=s.shift(),d=s.join("/");let u;try{u=await this.readDirSerial(c||"",d)}catch(f){if(f==="Not exists"&&c==="0_userdata.0")u=[];else throw f}try{const f=[];if(u.forEach(p=>{var g;const m={id:`${r}/${p.file}`,ext:Nt.getFileExtension(p.file),folder:p.isDir,name:p.file,size:(g=p.stats)==null?void 0:g.size,modified:p.modifiedAt,acl:p.acl,level:l};this.state.restrictToFolder?(m.folder&&(m.id.startsWith(`${this.state.restrictToFolder}/`)||m.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${m.id}/`))||m.id.startsWith(`${this.state.restrictToFolder}/`))&&f.push(m):this.limitToPath?(m.folder&&(m.id.startsWith(`${this.limitToPath}/`)||m.id===this.limitToPath||this.limitToPath.startsWith(`${m.id}/`))||m.id.startsWith(`${this.limitToPath}/`))&&f.push(m):f.push(m)}),f.sort(Mj),i[r]=f,!a)return Promise.all(f.filter(p=>p.folder).map(p=>this.browseFolder(p.id,i,!0))).then(()=>i)}catch(f){const p=f;this.initialReadFinished&&window.alert(`Cannot read ${c}${d?`/${d}`:""}: ${p==null?void 0:p.message}`),i[r]=[]}return i}toggleFolder(r,n){n==null||n.stopPropagation();const a=[...this.state.expanded],o=a.indexOf(r.id);o===-1?(a.push(r.id),a.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(a)),r.temp?this.setState({expanded:a}):this.browseFolder(r.id).then(i=>this.setState({expanded:a,folders:i})).catch(i=>window.alert(i===Dj?this.props.t('ra_Cannot find "%s"',r.id):this.props.t('ra_Cannot read "%s"',r.id)))):(a.splice(o,1),this.localStorage.setItem("files.expanded",JSON.stringify(a)),this.setState({expanded:a}))}changeFolder(r,n){var o;r==null||r.stopPropagation(),this.lastSelect=Date.now();let a=n||Mf(this.state.currentDir);if(a==="/"&&(a=""),this.state.viewType==="Tile"&&((o=this.refFileDiv.current)!=null&&o.scrollTop)&&(this.scrollPositions[this.state.currentDir]=this.refFileDiv.current.scrollTop),this.localStorage.setItem("files.currentDir",a),n&&r&&(r.altKey||r.shiftKey||r.ctrlKey||r.metaKey)){this.setState({selected:a});return}if(a&&!this.state.folders[a]){this.browseFolder(a).then(i=>this.setState({folders:i,path:a,currentDir:a,selected:a,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(""))).catch(i=>console.error(`Cannot read folder: ${i.message}`));return}this.setState({currentDir:a,selected:a,path:a,pathFocus:!1},()=>{if(this.props.onSelect&&this.props.onSelect(""),this.state.viewType==="Tile"&&this.scrollPositions[this.state.currentDir]){const i=this.scrollPositions[this.state.currentDir];delete this.scrollPositions[this.state.currentDir],this.refFileDiv.current&&(this.refFileDiv.current.scrollTop=i)}})}select(r,n,a){n&&n.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem("files.selected",r),this.setState({selected:r,path:r,pathFocus:!1},()=>{if(this.props.onSelect){const o=Nt.getFileExtension(r);(!this.props.filterFiles||o&&this.props.filterFiles.includes(o))&&(!this.state.filterByType||o&&jn[this.state.filterByType].includes(o))?this.props.onSelect(r,!1,!!this.state.folders[r]):this.props.onSelect("")}a&&a()})}getText(r){if(r)return typeof r=="object"?r[this.props.lang]||r.en||void 0:r}renderFolder(r,n){var c;if(this.state.filterEmpty&&!((c=this.state.folders[r.id])!=null&&c.length)&&r.id!==Gl&&!r.temp)return null;const a=n?XTe:a$,o=this.state.viewType===or?r.level*this.levelPadding:0,i=r.name===Gl,s=i||r.name==="vis.0"||r.name==="vis-2.0",l=Nt.getStyle(this.props.theme,Fe[`itemFolderIcon${this.state.viewType}`],s&&Fe.specialFolder);return k.createElement(rr,{component:"div",key:r.id,id:r.id,style:this.state.viewType===or?{marginLeft:o,width:`calc(100% - ${o}px`}:void 0,onClick:d=>this.state.viewType===or?this.select(r.id,d):this.changeFolder(d,r.id),onDoubleClick:d=>this.state.viewType===or&&this.toggleFolder(r,d),title:this.getText(r.title),className:"browserItem",sx:Nt.getStyle(this.props.theme,Fe[`item${this.state.viewType}`],Fe[`itemFolder${this.state.viewType}`],this.state.selected===r.id?Fe.itemSelected:{},r.temp?Fe.itemFolderTemp:{})},k.createElement(a,{style:l,onClick:this.state.viewType===or?d=>this.toggleFolder(r,d):void 0}),k.createElement(rr,{component:"div",sx:Nt.getStyle(this.props.theme,Fe[`itemName${this.state.viewType}`],Fe[`itemNameFolder${this.state.viewType}`])},i?this.props.t("ra_User files"):r.name),k.createElement(rr,{component:"div",style:Fe[`itemSize${this.state.viewType}`],sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===or&&this.state.folders[r.id]?this.state.folders[r.id].length:""),k.createElement(rr,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===or&&this.props.expertMode?this.formatAcl(r.acl):null),this.state.viewType===or&&this.props.expertMode?k.createElement(rr,{component:"div",sx:{...Fe.itemDeleteButtonTable,display:{md:"inline-block",sm:"none"}}}):null,this.state.viewType===or&&this.props.allowDownload?k.createElement("div",{style:Fe[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===or&&this.props.allowDelete&&this.state.folders[r.id]&&this.state.folders[r.id].length?k.createElement(zn,{"aria-label":"delete",onClick:d=>{d.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:Fe[`itemDeleteButton${this.state.viewType}`],size:"large"},k.createElement(Hb,{fontSize:"small"})):this.state.viewType===or&&this.props.allowDelete?k.createElement(rr,{component:"div",sx:Fe[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return k.createElement(rr,{component:"div",key:this.state.currentDir,id:this.state.currentDir,onClick:r=>this.changeFolder(r),title:this.props.t("ra_Back to %s",Mf(this.state.currentDir)),className:"browserItem",sx:Nt.getStyle(this.props.theme,Fe[`item${this.state.viewType}`],Fe[`itemFolder${this.state.viewType}`])},k.createElement(a$,{style:Nt.getStyle(this.props.theme,Fe[`itemFolderIcon${this.state.viewType}`])}),k.createElement(Zge,{sx:Fe.itemFolderIconBack}),k.createElement(rr,{component:"div",sx:Nt.getStyle(this.props.theme,Fe[`itemName${this.state.viewType}`],Fe[`itemNameFolder${this.state.viewType}`])},".."))}formatSize(r){return k.createElement("div",{style:Fe[`itemSize${this.state.viewType}`]},r||r===0?Nt.formatBytes(r):"")}formatAcl(r){const n=r?r.permissions||r.file:0;let a;return n?a=n.toString(16).padStart(3,"0"):a="",k.createElement("div",{style:Fe[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?k.createElement(zn,{size:"large",onClick:()=>this.setState({modalEditOfAccess:!0}),sx:Fe[`itemAclButton${this.state.viewType}`]},a||"---"):a||"---")}getFileIcon(r){switch(r){case"json":case"json5":return k.createElement(e_e,{style:Fe[`itemIcon${this.state.viewType}`]});case"css":return k.createElement(t_e,{style:Fe[`itemIcon${this.state.viewType}`]});case"js":case"ts":return k.createElement(HP,{style:Fe[`itemIcon${this.state.viewType}`]});case"html":case"md":return k.createElement(EG,{style:Fe[`itemIcon${this.state.viewType}`]});case"mp3":case"ogg":case"wav":case"m4a":case"mp4":case"flac":return k.createElement(p_e,{style:Fe[`itemIcon${this.state.viewType}`]});default:return k.createElement(DG,{style:Fe[`itemIcon${this.state.viewType}`]})}}static getEditFile(r){switch(r){case"json":case"json5":case"js":case"html":case"txt":case"css":case"log":return!0;default:return!1}}renderFile(r){const n=this.state.viewType===or?r.level*this.levelPadding:0,a=Nt.getFileExtension(r.name);return k.createElement(rr,{component:"div",key:r.id,id:r.id,onDoubleClick:o=>{o.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&jn[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:a})},onClick:o=>this.select(r.id,o),style:this.state.viewType===or?{marginLeft:n,width:`calc(100% - ${n}px)`}:void 0,className:"browserItem",sx:Nt.getStyle(this.props.theme,Fe[`item${this.state.viewType}`],Fe[`itemFile${this.state.viewType}`],this.state.selected===r.id?Fe.itemSelected:void 0)},a&&jn.images.includes(a)?this.state.fileErrors.includes(r.id)?k.createElement(PI,{style:{...Fe[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...Fe[`itemNoImage${this.state.viewType}`]}}):k.createElement(II,{onError:o=>{o.target.onerror=null;const i=[...this.state.fileErrors];i.includes(r.id)||(i.push(r.id),this.setState({fileErrors:i}))},style:{...Fe[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+r.id,alt:r.name}):this.getFileIcon(a),k.createElement(rr,{component:"div",sx:Fe[`itemName${this.state.viewType}`]},r.name),k.createElement(rr,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.formatSize(r.size)),k.createElement(rr,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===or&&this.props.expertMode?this.formatAcl(r.acl):null),k.createElement(rr,{component:"div",sx:{display:{md:"inline-block",sm:"none"}}},this.state.viewType===or&&this.props.expertMode&&RI.getEditFile(a)?k.createElement(zn,{"aria-label":"edit",onClick:o=>{o.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||r.ext&&this.props.filterFiles.includes(r.ext))&&(!this.state.filterByType||r.ext&&jn[this.state.filterByType].includes(r.ext))&&this.props.onSelect(r.id,!0,!!this.state.folders[r.id]):this.setState({viewer:this.imagePrefix+r.id,formatEditFile:a})},sx:Fe.itemDeleteButtonTable,size:"large"},k.createElement(o_e,{fontSize:"small"})):k.createElement(rr,{component:"div",sx:Fe[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===or&&this.props.allowDownload?k.createElement(rr,{component:"a",className:"MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge",sx:Fe.itemDownloadButtonTable,tabIndex:0,download:r.id,href:this.imagePrefix+r.id,onClick:o=>o.stopPropagation()},k.createElement(__e,null)):null,this.state.viewType===or&&this.props.allowDelete&&r.id!=="vis.0/"&&r.id!=="vis-2.0/"&&r.id!==Gl?k.createElement(zn,{"aria-label":"delete",onClick:o=>{o.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(r.id):this.setState({deleteItem:r.id})},sx:Fe[`itemDeleteButton${this.state.viewType}`],size:"large"},k.createElement(Hb,{fontSize:"small"})):this.state.viewType===or&&this.props.allowDelete?k.createElement(rr,{component:"div",sx:Fe[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(r){var n;if((n=this.state.folders)!=null&&n[r]){if(this.state.viewType===JE){const o=[];return r&&r!=="/"&&o.push(this.renderBackFolder()),this.state.folders[r].forEach(i=>{i.folder?o.push(this.renderFolder(i)):(!this.props.filterFiles||i.ext&&this.props.filterFiles.includes(i.ext))&&(!this.state.filterByType||i.ext&&jn[this.state.filterByType].includes(i.ext))&&o.push(this.renderFile(i))}),o}const a=[];return this.state.folders[r].forEach(o=>{if(o.folder){const i=this.state.expanded.includes(o.id),s=this.renderFolder(o,i);if(Array.isArray(s)?s.forEach(l=>a.push(l)):a.push(s),this.state.folders[o.id]&&i){const l=this.renderItems(o.id);Array.isArray(l)?l.forEach(c=>a.push(c)):a.push(l)}}else(!this.props.filterFiles||o.ext&&this.props.filterFiles.includes(o.ext))&&(!this.state.filterByType||o.ext&&jn[this.state.filterByType].includes(o.ext))&&a.push(this.renderFile(o))}),a}return k.createElement("div",{style:{position:"relative"}},k.createElement(Ope,{key:r,color:"secondary",size:24}),k.createElement("div",{style:{position:"absolute",zIndex:2,top:4,width:24,textAlign:"center"}},this.state.queueLength))}renderToolbar(){const r=this.props.showTypeSelector?_0[this.state.filterByType||"all"]||_0.all:null,n=this.findFirstFolder(this.state.selected);return k.createElement(TG,{key:"toolbar",variant:"dense"},this.props.allowNonRestricted&&this.props.restrictToFolder?k.createElement(zn,{edge:"start",title:this.state.restrictToFolder?this.props.t("ra_Show all folders"):this.props.t("ra_Restrict to folder"),style:{...Fe.menuButton,...this.state.restrictToFolder?Fe.menuButtonRestrictActive:void 0},"aria-label":"restricted to folder",onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?"":this.props.restrictToFolder)||"",loadAllFolders:!0}),size:"small"},k.createElement(s_e,{fontSize:"small"})):null,this.props.showExpertButton?k.createElement(zn,{edge:"start",title:this.props.t("ra_Toggle expert mode"),style:{...Fe.menuButton,...this.state.expertMode?Fe.menuButtonExpertActive:void 0},"aria-label":"expert mode",onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:"small"},k.createElement(qTe,null)):null,this.props.showViewTypeButton?k.createElement(zn,{edge:"start",title:this.props.t("ra_Toggle view mode"),style:Fe.menuButton,"aria-label":"view mode",onClick:()=>{const a=this.state.viewType===or?JE:or;this.localStorage.setItem("files.viewType",a);let o=this.state.selected;XE(o)&&(o=Mf(o)),this.setState({viewType:a,currentDir:o},()=>{this.state.viewType===or&&this.scrollToSelected()})},size:"small"},this.state.viewType!==or?k.createElement(f_e,{fontSize:"small"}):k.createElement(T_e,{fontSize:"small"})):null,k.createElement(zn,{edge:"start",title:this.props.t("ra_Hide empty folders"),style:Fe.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"},k.createElement(i_e,{fontSize:"small"})),k.createElement(zn,{edge:"start",title:this.props.t("ra_Reload files"),style:Fe.menuButton,color:"inherit","aria-label":"reload files",onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:"small"},k.createElement(m_e,{fontSize:"small"})),this.props.allowCreateFolder?k.createElement(zn,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Create folder"),style:Fe.menuButton,color:"inherit","aria-label":"add folder",onClick:()=>this.setState({addFolder:!0}),size:"small"},k.createElement(a_e,{fontSize:"small"})):null,this.props.allowUpload?k.createElement(zn,{edge:"start",disabled:!this.state.selected||!n||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t("ra_Upload file"),style:Fe.menuButton,color:"inherit","aria-label":"upload file",onClick:()=>this.setState({uploadFile:!0}),size:"small"},k.createElement(tz,{fontSize:"small"})):null,this.props.showTypeSelector&&r?k.createElement(IT,{title:this.props.t("ra_Filter files"),slotProps:{popper:{sx:Fe.tooltip}}},k.createElement(zn,{size:"small",onClick:a=>this.setState({showTypesMenu:a.target})},k.createElement(r,{fontSize:"small"}))):null,this.state.showTypesMenu?k.createElement(wG,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(_0).map(a=>{const o=_0[a];return k.createElement(Rr,{key:a,selected:this.state.filterByType===a,onClick:()=>{a==="all"?(this.localStorage.removeItem("files.filterByType"),this.setState({filterByType:"",showTypesMenu:null})):(this.localStorage.setItem("files.filterByType",a),this.setState({filterByType:a,showTypesMenu:null}))}},k.createElement(ume,null,k.createElement(o,{fontSize:"small"})),k.createElement(pme,null,this.props.t(`ra_fileType_${a}`)))})):null,k.createElement(IT,{title:this.props.t("ra_Background image"),slotProps:{popper:{sx:Fe.tooltip}}},k.createElement(zn,{color:"inherit",edge:"start",style:Fe.menuButton,onClick:this.setStateBackgroundImage,size:"small"},k.createElement(kG,{fontSize:"small"}))),this.state.viewType!==or&&this.props.allowDelete?k.createElement(IT,{title:this.props.t("ra_Delete"),slotProps:{popper:{sx:Fe.tooltip}}},k.createElement("span",null,k.createElement(zn,{"aria-label":"delete",disabled:!this.state.selected||this.state.selected==="vis.0/"||this.state.selected==="vis-2.0/"||this.state.selected===Gl,color:"inherit",edge:"start",style:Fe.menuButton,onClick:a=>{a.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:"small"},k.createElement(Hb,{fontSize:"small"})))):null)}findItem(r,n){if(n=n||this.state.folders,!n)return null;const a=r.split("/");a.pop();const o=a.join("/")||"/";return n[o]&&n[o].find(i=>i.id===r)||null}renderInputDialog(){if(this.state.addFolder){const r=this.findFirstFolder(this.state.selected);return r?k.createElement(GTe,{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:n=>this.state.folders[r].find(a=>a.name===n)?"":this.props.t("ra_Duplicate name"),onClose:n=>{if(n){const a={};Object.keys(this.state.folders).forEach(l=>a[l]=this.state.folders[l]);const o=this.findItem(r),i=`${r}/${n}`;a[r].push({id:i,level:((o==null?void 0:o.level)||0)+1,name:n,folder:!0,temp:!0}),a[r].sort(Mj),a[i]=[];const s=[...this.state.expanded];s.includes(r)||(s.push(r),s.sort()),this.localStorage.setItem("files.expanded",JSON.stringify(s)),this.setState({addFolder:!1,folders:a,expanded:s},()=>this.select(i))}else this.setState({addFolder:!1})},replace:n=>n.replace(/[^-_\w]/,"_")}):(window.alert(this.props.t("ra_Invalid parent folder!")),null)}return null}componentDidUpdate(){this.setOpacityTimer&&clearTimeout(this.setOpacityTimer),this.setOpacityTimer=setTimeout(()=>{this.setOpacityTimer=null;const r=window.document.getElementsByClassName("browserItem");for(let n=0;nthis.setState({uploadFile:!1})},k.createElement(tp,null)),k.createElement(wS,{key:"dropzone",onDragEnter:()=>this.setState({uploadFile:"dragging"}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:r=>{let n=r.length;r.forEach(a=>{const o=new FileReader;o.onabort=()=>console.log("file reading was aborted"),o.onerror=()=>console.log("file reading has failed"),o.onload=()=>{const i=this.findFirstFolder(this.state.selected);if(!i)window.alert(this.props.t("ra_Invalid parent folder!"));else{const s=`${i}/${a.name}`;this.uploadFile(s,o.result).then(()=>{--n||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){const l=[...this.state.expanded];l.includes(i)||(l.push(i),l.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(l))),this.setState({expanded:l},()=>this.select(s))}else setTimeout(()=>this.browseFolder(i,null,!1,!0).then(l=>{const c=[...this.state.expanded];c.includes(i)||(c.push(i),c.sort(),this.localStorage.setItem("files.expanded",JSON.stringify(c))),this.setState({folders:l,expanded:c},()=>this.select(s))}),500)})})}},o.readAsArrayBuffer(a)})}},({getRootProps:r,getInputProps:n})=>k.createElement("div",{style:{...Fe.uploadDiv,...this.state.uploadFile==="dragging"?Fe.uploadDivDragging:void 0},...r()},k.createElement("input",{...n()}),k.createElement(rr,{component:"div",sx:Fe.uploadCenterDiv},k.createElement("div",{style:Fe.uploadCenterTextAndIcon},k.createElement(tz,{style:Fe.uploadCenterIcon}),k.createElement("div",{style:Fe.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(r){const n=this.findItem(r);if(n!=null&&n.folder)return(this.state.folders[r]?Promise.all(this.state.folders[r].map(i=>this.deleteRecursive(i.id))):Promise.resolve()).then(()=>{if(n.level>=1){const i=r.split("/"),s=i.shift();this.props.socket.deleteFolder(s||"",i.join("/")).then(()=>{const l=JSON.parse(JSON.stringify(this.state.folders));delete l[n.id];const c=Mf(n.id),d=l[c];if(d){const u=d.findIndex(f=>f.id===n.id);u!==-1&&d.splice(u,1),this.select(c,null,()=>this.setState({folders:l}))}})}});const a=r.split("/"),o=a.shift();return a.length?this.props.socket.deleteFile(o||"",a.join("/")).catch(i=>window.alert(`Cannot delete file: ${i}`)):Promise.resolve()}deleteItem(r){r=r||this.state.deleteItem,this.setState({deleteItem:""},()=>this.deleteRecursive(r).then(()=>{const n={},a=this.state.expanded.indexOf(r);if(a!==-1){const o=[...this.state.expanded];o.splice(a,1),this.localStorage.setItem("files.expanded",JSON.stringify(o)),n.expanded=o}if(this.state.selected===r){const o=this.state.selected.split("/");o.pop(),n.selected=o.join("/")}if(this.supportSubscribes)this.setState(n);else{const o=this.findFirstFolder(r),i={};Object.keys(this.state.folders).forEach(s=>{s!==o&&!s.startsWith(`${o}/`)&&(i[s]=this.state.folders[s])}),n.folders=i,this.setState(n,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],i).then(s=>this.setState({folders:s})).catch(s=>console.error(s))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?k.createElement(_i,{key:"deleteDialog",open:!0,onClose:()=>this.setState({deleteItem:""}),"aria-labelledby":"ar_dialog_file_delete_title"},k.createElement(wi,{id:"ar_dialog_file_delete_title"},this.props.t("ra_Confirm deletion of %s",this.state.deleteItem.split("/").pop())),k.createElement(bi,null,k.createElement(aS,null,this.props.t("ra_Are you sure?"))),k.createElement(yi,null,k.createElement(Tr,{color:"grey",variant:"contained",onClick:()=>{this.suppressDeleteConfirm=Date.now()+6e4*5,this.deleteItem("")}},this.props.t("ra_Delete (no confirm for 5 mins)")),k.createElement(Tr,{variant:"contained",onClick:()=>this.deleteItem(""),color:"primary",autoFocus:!0},this.props.t("ra_Delete")),k.createElement(Tr,{variant:"contained",onClick:()=>this.setState({deleteItem:""}),color:"grey"},this.props.t("ra_Cancel")))):null}renderViewDialog(){const r=this.props.FileViewer||_ke;return this.state.viewer?k.createElement(r,{supportSubscribes:this.supportSubscribes,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile,themeType:this.props.themeType,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?k.createElement(MG,{key:"errorDialog",text:this.state.errorText,onClose:()=>this.setState({errorText:""})}):null}updateItemsAcl(r){this.cacheFolders=this.cacheFolders||JSON.parse(JSON.stringify(this.state.folders));let n;r.forEach(a=>{const o=this.findItem(a.id,this.cacheFolders);o&&JSON.stringify(o.acl)!==JSON.stringify(a.acl)&&(o.acl=a.acl,n=!0)}),n&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;const a=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:a})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let r=this.state.path;XE(this.state.path)&&(r=Mf(this.state.path)),new Promise(n=>{this.state.folders[r]?n(!0):this.browseFolder(r).then(a=>this.setState({folders:a},()=>n(!0))).catch(a=>this.setState({errorText:a===Dj?this.props.t('ra_Cannot find "%s"',r):this.props.t('ra_Cannot read "%s"',r)}))}).then(n=>n&&this.setState({selected:this.state.path,currentDir:r,pathFocus:!1})).catch(n=>console.error(n))}else(!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){const r=this.state.currentDir.startsWith("/")?this.state.currentDir.split("/"):`/${this.state.currentDir}`.split("/"),n=[];return k.createElement(rpe,{style:{paddingLeft:8,color:"#FFF"}},r.map((a,o)=>{a&&n.push(a);const i=n.join("/");return othis.changeFolder(s,i||"/")},a||this.props.t("ra_Root")):k.createElement("div",{style:Fe.pathDivBreadcrumbSelected,key:`${this.state.selected}_${o}`,onClick:()=>this.setState({pathFocus:!0})},a)}))}renderPath(){return k.createElement(rr,{component:"div",key:"path",sx:Fe.pathDiv},this.state.pathFocus?k.createElement(Ui,{value:this.state.path,onKeyDown:r=>{r.key==="Enter"?this.changeToPath():r.key==="Escape"&&this.setState({pathFocus:!1})},endAdornment:k.createElement(zn,{size:"small",onClick:()=>this.changeToPath()},k.createElement(d_e,null)),onBlur:()=>this.changeToPath(),onChange:r=>this.setState({path:r.target.value}),style:Fe.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(r=>console.error(`Cannot load folders: ${r}`))})},300)),k.createElement("div",{style:{...Fe.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===JE?this.renderPath():null,k.createElement("div",{style:{...Fe.filesDiv,...Fe[`filesDiv${this.state.viewType}`]},onClick:r=>{this.state.viewType!==or&&(this.state.selected!==(this.state.currentDir||"/")?this.changeFolder(r,this.state.currentDir||"/"):r.stopPropagation())},id:"dev",ref:this.refFileDiv},this.state.viewType===or?this.renderItems("/"):this.renderItems(this.state.currentDir||"/"),this.state.viewType!==or?k.createElement("div",{style:Fe.filesDivHint},this.props.t("ra_select_folder_hint")):null),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())):k.createElement(zP,null)}}const yke=o_()(RI),bke=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},k.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 wke(t){const e=document.createElement("div");e.innerHTML=t;const r=e.firstElementChild;return r!=null&&r.remove?r.remove():r&&e.removeChild(r),e.remove(),r}function Ske(t){const e={};if(!t)return e;for(let r,n=0;no[1].toUpperCase()),e[r]=t[n].value}return e}var Ki;let P5t=(Ki=class extends R.Component{constructor(r){var n;super(r);ae(this,"svg");this.state={svg:!!((n=this.props.src)!=null&&n.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(r,n){var i;const a={};let o=!1;return r&&n&&r.src!==n.src&&(a.src=r.src,a.svg=(i=r.src)==null?void 0:i.startsWith("data:"),a.created=!1,o=!0),r&&n&&r.color!==n.color&&(a.color=r.color,a.created=!1,o=!0),r&&n&&r.showError!==n.showError&&(a.showError=r.showError,o=!0),o?a:null}getSvgFromData(r){const n="data:image/svg+xml;base64,";if(!r.startsWith(n))return null;r=r.substring(n.length);try{r=atob(r);const a=wke(r),o=a.innerHTML,i=Ske(a.attributes);return a.remove(),k.createElement("svg",{className:this.props.className,style:this.state.color?{color:this.state.color}:{},...i,dangerouslySetInnerHTML:{__html:o}})}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 k.createElement(PI,{className:this.props.className});if(Ki.REMOTE_SERVER&&!this.state.src.startsWith("http://")&&!this.state.src.startsWith("https://")){let r=(this.props.imagePrefix||"")+this.state.src;return r.startsWith("./")?r=Ki.REMOTE_PREFIX+r.substring(2):r.startsWith("/")||(r=Ki.REMOTE_PREFIX+r),k.createElement("img",{className:this.props.className,src:`https://remote-files.iobroker.in${r}`,alt:"",onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:""})})}return k.createElement("img",{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}},ae(Ki,"REMOTE_SERVER",window.location.hostname.includes("iobroker.in")),ae(Ki,"REMOTE_PREFIX",window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1)),Ki);class Uq extends k.Component{constructor(){super(...arguments);ae(this,"handleFileSelect",r=>{const n=r.target,a=n==null?void 0:n.files;if(!a||!a.length){console.error("No files found. Please report to developers");return}const o=a[0];if(o){const i=new window.FileReader;i.onload=()=>{var l;const s=((l=i.result)==null?void 0:l.toString())||"";try{const c=JSON.parse(s);c.native&&c.common?c.common.name!==this.props.common.name?this.props.onError&&this.props.onError(X.t("ra_otherConfig",c.common.name)):this.props.onLoad&&this.props.onLoad(c.native):this.props.onError&&this.props.onError(X.t("ra_invalidConfig"))}catch(c){this.props.onError&&this.props.onError(c==null?void 0:c.toString())}},i.readAsText(o)}else alert("Failed to open JSON File")})}static generateFile(r,n){const a=window.document.createElement("a");a.setAttribute("href",`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(n,null,2))}`),a.setAttribute("download",r),a.style.display="none",window.document.body.appendChild(a),a.click(),window.document.body.removeChild(a)}download(){const r={_id:`system.adapter.${this.props.common.name}.${this.props.instance}`,common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};r.common.news&&delete r.common.news,r.common.titleLang&&delete r.common.titleLang,r.common.desc&&delete r.common.desc,Uq.generateFile(`${r._id}.json`,r)}upload(){const r=window.document.createElement("input");r.setAttribute("type","file"),r.setAttribute("id","files"),r.setAttribute("opacity","0"),r.addEventListener("change",this.handleFileSelect,!1),r.click()}render(){return k.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?k.createElement(II,{src:this.props.common.icon,style:{padding:8,width:64},alt:"logo"}):null,this.props.common.readme?k.createElement(nl,{size:"small",color:"primary","aria-label":"Help",style:{marginRight:5,marginTop:5,float:"right"},onClick:()=>{const r=window.open(this.props.common.readme,"_blank");r==null||r.focus()}},k.createElement(c_e,null)):null,k.createElement(nl,{size:"small",color:"primary","aria-label":"Load config",style:{marginRight:5,marginTop:5,float:"right"},title:X.t("ra_Load configuration from file"),onClick:()=>this.upload()},k.createElement(x_e,null)),k.createElement(nl,{size:"small",color:"primary","aria-label":"Save config",style:{marginRight:5,marginTop:5,float:"right"},title:X.t("ra_Save configuration to file"),onClick:()=>this.download()},k.createElement(S_e,null)))}}const xke=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 512 512",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},k.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"})),Cke=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},k.createElement("g",{fill:"currentColor"},k.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),k.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"248",cx:"160",fill:"none",strokeWidth:"15"}),k.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),k.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),Tke=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},k.createElement("g",{fill:"currentColor"},k.createElement("rect",{rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor",fill:"none"}),k.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),k.createElement("line",{y2:"201.94531",x2:"159.5",y1:"46.94531",x1:"159.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),k.createElement("rect",{height:"27",width:"50",y:"140.83068",x:"133.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),k.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"251",cx:"241",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),k.createElement("line",{y2:"200.94531",x2:"240.5",y1:"45.94531",x1:"240.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),k.createElement("rect",{height:"27",width:"50",y:"78.7979",x:"214.5",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}),k.createElement("ellipse",{stroke:"currentColor",ry:"26",rx:"26",cy:"252",cx:"84",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",fill:"#fff"}),k.createElement("line",{y2:"201.94531",x2:"83.5",y1:"46.94531",x1:"83.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"none"}),k.createElement("rect",{height:"27",width:"50",y:"79.7979",x:"57.5",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor",fill:"#fff"}))),kke=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:e=>t.onClick&&t.onClick(e),viewBox:"0 0 320 320",width:t.width||(t.fontSize==="small"?16:20),height:t.height||t.width||(t.fontSize==="small"?16:20),className:t.className,style:t.style},k.createElement("rect",{fill:"none",rx:"32",height:"272",width:"267",y:"25",x:"25",strokeWidth:"15",stroke:"currentColor"}),k.createElement("ellipse",{fill:"none",ry:"54",rx:"54",cy:"160",cx:"160",fillOpacity:"null",strokeOpacity:"null",strokeWidth:"15",stroke:"currentColor"}));k.createElement(kke,{className:"itemIcon",style:{verticalAlign:"middle"}}),k.createElement(Cke,{className:"itemIcon",style:{verticalAlign:"middle"}}),k.createElement(Tke,{className:"itemIcon",style:{verticalAlign:"middle"}}),k.createElement(xke,{className:"itemIcon",style:{verticalAlign:"middle"}}),k.createElement(EG,{className:"itemIcon",style:{verticalAlign:"middle"}}),k.createElement(bke,{className:"itemIcon",style:{color:"#7da7ff",verticalAlign:"middle"}}),k.createElement(h_e,{className:"itemIcon",style:{verticalAlign:"middle"}}),k.createElement(b_e,{className:"itemIcon",style:{verticalAlign:"middle"}}),k.createElement(y_e,{className:"itemIcon",style:{verticalAlign:"middle"}}),k.createElement(w_e,{className:"itemIcon",style:{verticalAlign:"middle"}}),k.createElement(v_e,{className:"itemIcon",style:{verticalAlign:"middle"}}),k.createElement(g_e,{className:"itemIcon",style:{verticalAlign:"middle"}}),k.createElement(r_e,{className:"itemIcon",style:{verticalAlign:"middle"}}),k.createElement(HP,{className:"itemIcon",style:{verticalAlign:"middle"}}),k.createElement(a$,{className:"itemIcon itemIconFolder",style:{verticalAlign:"middle"}});const ve={hr:{border:0,borderTop:"1px solid gray"},scrollWindow:{width:"100%",overflow:"auto",height:"calc(100% - 22px)"},rowDiv:{width:"100%"},modeDiv:{width:200,display:"inline-block",verticalAlign:"top"},settingsDiv:{display:"inline-block",verticalAlign:"top"},inputTime:{width:90,marginTop:0,marginLeft:5},inputDate:{width:140,marginTop:0,marginLeft:5},inputEvery:{width:40,marginLeft:5,marginRight:5},inputRadio:{padding:"4px 12px",verticalAlign:"top"},inputGroup:{maxWidth:400,display:"inline-block"},inputGroupElement:{width:120},inputDateDay:{width:60},inputDateDayCheck:{padding:4},inputSmallCheck:{padding:0},rowOnce:{},rowDays:t=>({background:t.palette.mode!=="dark"?"#ddeaff":"#4b5057"}),rowDows:t=>({background:t.palette.mode!=="dark"?"#DDFFDD":"#52646c"}),rowDates:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#747a86"}),rowWeeks:t=>({background:t.palette.mode!=="dark"?"#DDDDFF":"#717680"}),rowMonths:t=>({background:t.palette.mode!=="dark"?"#DDFFFF":"#1f5557"}),rowMonthsDates:t=>({background:t.palette.mode!=="dark"?"#EEFFFF":"#3c5737",maxWidth:600}),rowYears:t=>({background:t.palette.mode!=="dark"?"#fbffdd":"#574b33"}),rowDaysDows:t=>({background:t.palette.mode!=="dark"?"#EEEAFF":"#573544",pl:"10px",pb:"10px"}),rowDowsDows:t=>({background:t.palette.mode!=="dark"?"#EEFFEE":"#3d4c54",pl:"10px",pb:"10px"})},KE=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],y0=["January","February","March","April","May","June","July","August","September","October","November","December"],ZE={minutes:"minutes",hours:"hours"},Ev=["sunrise","sunriseEnd","goldenHourEnd","solarNoon","goldenHour","sunsetStart","sunset","dusk","nauticalDusk","night","nightEnd","nauticalDawn","dawn","nadir"];function Ps(t){return t<10?`0${t}`:`${t}`}const Oj={time:{exactTime:!1,start:"00:00",end:"23:59",mode:"hours",interval:1},period:{once:"",days:1,dows:"",dates:"",weeks:0,months:"",years:0,yearMonth:0,yearDate:0},valid:{from:"",to:""}};function QE(t){const e=t.split(".");return e.length===3?`${e[2]}-${e[1]}-${e[0]}`:""}class Sn extends R.Component{constructor(r){super(r);ae(this,"refFrom");ae(this,"refTo");ae(this,"refOnce");ae(this,"timerOnce",null);ae(this,"timerFrom",null);ae(this,"timerTo",null);let n;if(this.props.schedule&&typeof this.props.schedule=="string"&&this.props.schedule[0]==="{")try{n=JSON.parse(this.props.schedule)}catch{}else typeof this.props.schedule=="object"&&(n=this.props.schedule);(!n||!Object.keys(n).length)&&(setTimeout(()=>this.onChange(this.state.schedule,!0),200),n=Oj),n={...Oj,...n},n.valid.from=n.valid.from||Sn.now2string(),this.refFrom=k.createRef(),this.refTo=k.createRef(),this.refOnce=k.createRef(),this.state={schedule:n,desc:Sn.state2text(n)},JSON.stringify(n)!==this.props.schedule&&setTimeout(()=>this.props.onChange&&this.props.onChange(JSON.stringify(n)),100)}onChange(r,n){const a=JSON.stringify(r)!==JSON.stringify(this.state.schedule);if(n||a){a&&this.setState({schedule:r,desc:Sn.state2text(r)});const o=JSON.parse(JSON.stringify(r));if(o.period.once){const i=o.period.once;delete o.period,o.period={once:i},delete o.valid}else if(o.period.days){const i=o.period.days,s=o.period.dows;delete o.period,o.period={days:i},s&&s!=="[]"&&(o.period.dows=s)}else if(o.period.weeks){const i=o.period.weeks,s=o.period.dows;delete o.period,o.period={weeks:i},s&&s!=="[]"&&(o.period.dows=s)}else if(o.period.months){const i=o.period.months,s=o.period.dates;delete o.period,o.period={months:i},s&&s!=="[]"&&(o.period.dates=s)}else if(o.period.years){const i=o.period.years,s=o.period.yearMonth,l=o.period.yearDate;delete o.period,o.period={years:i,yearDate:l},s&&(o.period.yearMonth=s)}if(o.time.exactTime?(delete o.time.end,delete o.time.mode,delete o.time.interval):delete o.time.exactTime,o.valid){if(o.valid.to||delete o.valid.to,o.period.days===1||o.period.weeks===1||o.period.months===1||o.period.years===1){const i=Sn.string2date(o.valid.from),s=new Date;s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0),i<=s&&delete o.valid.from}!o.valid.from&&!o.valid.to&&delete o.valid}this.props.onChange&&this.props.onChange(JSON.stringify(o),Sn.state2text(r))}}static state2text(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{return""}const n=[],a=Sn.string2date(r.valid.from);if(r.period.once){const o=Sn.string2date(r.period.once),i=new Date;if(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0),oX.t(KE[s]));if(i.length===1)n.push(X.t("sch_desc_onWeekday",i[0]));else if(i.length===7)n.push(X.t("sch_desc_everyDay"));else{const s=i.pop();n.push(X.t("sch_desc_onWeekdays",i.join(", "),s))}}}else n.push(X.t("sch_desc_everyDay"));else n.push(X.t("sch_desc_everyNDay",r.period.days.toString()));else if(r.period.weeks)if(r.period.weeks===1?n.push(X.t("sch_desc_everyWeek")):n.push(X.t("sch_desc_everyNWeeks",r.period.weeks.toString())),r.period.dows){const o=JSON.parse(r.period.dows);if(o.length===2&&o[0]===0&&o[1]===6)n.push(X.t("sch_desc_onWeekends"));else if(o.length===5&&o[0]===1&&o[1]===2&&o[2]===3&&o[3]===4&&o[4]===5)n.push(X.t("sch_desc_onWorkdays"));else{const i=o.map(s=>X.t(KE[s]));if(i.length===1)n.push(X.t("sch_desc_onWeekday",i[0]));else if(i.length===7)n.push(X.t("sch_desc_everyDay"));else{const s=i.pop();n.push(X.t("sch_desc_onWeekdays",i.join(", "),s))}}}else return X.t("sch_desc_never");else if(r.period.months){if(r.period.dates){const o=JSON.parse(r.period.dates);if(o.length===1)n.push(X.t("sch_desc_onDate",o[0]));else if(o.length===31)n.push(X.t("sch_desc_onEveryDate"));else if(o.length){const i=o.pop();n.push(X.t("sch_desc_onDates",o.join(", "),i))}else return X.t("sch_desc_never")}else n.push(X.t("sch_desc_onEveryDate"));if(r.period.months===1)n.push(X.t("sch_desc_everyMonth"));else if(typeof r.period.months=="number")n.push(X.t("sch_desc_everyNMonths",r.period.months.toString()));else{const i=JSON.parse(r.period.months).map(s=>X.t(y0[s-1]));if(!i.length)return X.t("sch_desc_never");if(i.length===1)n.push(X.t("sch_desc_onMonth",i[0]));else if(i.length===12)n.push(X.t("sch_desc_everyMonth"));else{const s=i.pop();n.push(X.t("sch_desc_onMonths",i.join(", "),s))}}}else r.period.years&&(r.period.years===1?n.push(X.t("sch_desc_everyYear")):n.push(X.t("sch_desc_everyNYears",r.period.years.toString())),n.push(X.t("sch_desc_onDate",r.period.yearDate.toString(),r.period.yearMonth?X.t(y0[r.period.yearMonth-1]):X.t("sch_desc_everyMonth"))));if(r.time.exactTime)Ev.includes(r.time.start)?n.push(X.t("sch_desc_atTime",X.t(`sch_astro_${r.time.start}`))):n.push(X.t("sch_desc_atTime",r.time.start));else{r.time.mode===ZE.minutes?r.time.interval===1?n.push(X.t("sch_desc_everyMinute")):n.push(X.t("sch_desc_everyNMinutes",r.time.interval.toString())):r.time.interval===1?n.push(X.t("sch_desc_everyHour")):n.push(X.t("sch_desc_everyNHours",r.time.interval.toString()));const o=Ev.indexOf(r.time.start)!==-1?X.t(`sch_astro_${r.time.start}`):r.time.start,i=Ev.indexOf(r.time.end)!==-1?X.t(`sch_astro_${r.time.end}`):r.time.end;(o!=="00:00"||i!=="24:00"&&i!=="23:59")&&n.push(X.t("sch_desc_intervalFromTo",o,i))}return r.period.once||(a.getTime()>Date.now()&&r.valid.to?n.push(X.t("sch_desc_validFromTo",r.valid.from,r.valid.to)):a.getTime()>Date.now()?n.push(X.t("sch_desc_validFrom",r.valid.from)):r.valid.to&&n.push(X.t("sch_desc_validTo",r.valid.to))),n.join(" ")}getTimePeriodElements(){const r=this.state.schedule;let n=!1,a=!1,o=!1,i=!0;return r.time.start==="00:00"&&r.time.end==="24:00"?(n=!0,i=!1):r.time.start==="sunrise"?(a=!0,i=!1):r.time.start==="sunset"&&(o=!0,i=!1),k.createElement("div",{key:"timePeriod",style:ve.rowDiv},k.createElement("div",{style:ve.modeDiv},k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:!r.time.exactTime,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.exactTime=!1,this.onChange(s)}}),label:X.t("sch_intervalTime")})),k.createElement("div",{style:ve.settingsDiv},k.createElement("div",{style:ve.settingsDiv},!r.time.exactTime&&k.createElement("div",null,k.createElement("div",null,k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:!!i,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="00:00",s.time.end="23:59",this.onChange(s)}}),label:i?"":X.t("sch_fromTo")}),i&&[k.createElement(Vn,{variant:"standard",style:{...ve.inputTime,marginRight:10},key:"exactTimeFrom",type:"time",sx:s=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:s.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.start,onChange:s=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.start=s.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:X.t("sch_from"),margin:"normal"}),k.createElement(Vn,{variant:"standard",style:ve.inputTime,key:"exactTimeTo",type:"time",sx:s=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:s.palette.mode==="dark"?"invert(80%)":void 0}}),value:this.state.schedule.time.end,onChange:s=>{const l=JSON.parse(JSON.stringify(this.state.schedule));l.time.end=s.target.value,this.onChange(l)},slotProps:{inputLabel:{shrink:!0}},label:X.t("sch_to"),margin:"normal"})])),!r.time.exactTime&&k.createElement("div",null,k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:!!n,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="00:00",s.time.end="24:00",this.onChange(s)}}),label:X.t("sch_wholeDay")})),!r.time.exactTime&&k.createElement("div",null,k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:!!a,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="sunrise",s.time.end="sunset",this.onChange(s)}}),label:X.t("sch_astroDay")})),!r.time.exactTime&&k.createElement("div",null,k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:!!o,onClick:()=>{const s=JSON.parse(JSON.stringify(this.state.schedule));s.time.start="sunset",s.time.end="sunrise",this.onChange(s)}}),label:X.t("sch_astroNight")}))),!r.time.exactTime&&this.getPeriodSettingsMinutes(i)))}getTimeExactElements(){const r=Ev.includes(this.state.schedule.time.start);return k.createElement("div",{key:"timeExact",style:ve.rowDiv},k.createElement("div",{style:ve.modeDiv},k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:!!this.state.schedule.time.exactTime,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.time.exactTime=!0,this.onChange(n)}}),label:X.t("sch_exactTime")})),this.state.schedule.time.exactTime&&k.createElement(ii,{variant:"standard",value:r?this.state.schedule.time.start:"00:00",onChange:n=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.time.start=n.target.value,this.onChange(a)}},k.createElement(Rr,{key:"specific",value:"00:00"},X.t("sch_specificTime")),Ev.map(n=>k.createElement(Rr,{key:n,value:n},X.t(`sch_astro_${n}`)))),this.state.schedule.time.exactTime&&!r&&k.createElement("div",{style:ve.settingsDiv},k.createElement(Vn,{variant:"standard",style:ve.inputTime,key:"exactTimeValue",value:this.state.schedule.time.start,type:"time",sx:n=>({'& input[type="time"]::-webkit-calendar-picker-indicator':{filter:n.palette.mode==="dark"?"invert(80%)":void 0}}),onChange:n=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.time.start=n.target.value,this.onChange(a)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}static getDivider(){return k.createElement("hr",{style:ve.hr})}getPeriodModes(){const r=this.state.schedule,n=!r.period.dows&&!r.period.months&&!r.period.dates&&!r.period.years&&!r.period.days&&!r.period.weeks;return n&&!r.period.once&&(r.period.once=Sn.now2string(!0)),[k.createElement("div",{key:"once",style:{...ve.rowDiv,...ve.rowOnce}},k.createElement("div",{style:ve.modeDiv},k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:!!n,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.once=a.period.once||Sn.now2string(!0),a.period.dows="",a.period.months="",a.period.dates="",a.period.years=0,a.period.yearDate=0,a.period.yearMonth=0,a.period.weeks=0,a.period.days=0,this.onChange(a)}}),label:X.t("sch_periodOnce")})),n&&k.createElement("div",{style:ve.settingsDiv},k.createElement(Vn,{variant:"standard",style:ve.inputDate,type:"date",ref:this.refOnce,key:"exactDateAt",defaultValue:QE(r.period.once),onChange:a=>{this.timerOnce&&clearTimeout(this.timerOnce),this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="#ff000030"),this.timerOnce=setTimeout(o=>{this.timerOnce=null,this.refOnce.current&&(this.refOnce.current.style.background="");const i=JSON.parse(JSON.stringify(this.state.schedule)),s=Sn.string2date(o);s.toString()!=="Invalid Date"&&(i.period.once=`${Ps(s.getDate())}.${Ps(s.getMonth()+1)}.${s.getFullYear()}`,this.onChange(i))},1500,a.target.value)},slotProps:{inputLabel:{shrink:!0}},label:X.t("sch_at"),margin:"normal"}))),k.createElement(rr,{component:"div",key:"days",sx:Nt.getStyle(this.props.theme,ve.rowDiv,ve.rowDays)},k.createElement("div",{style:ve.modeDiv},k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:!!r.period.days,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.days=1,a.period.dows="",a.period.months="",a.period.dates="",a.period.years=0,a.period.yearDate=0,a.period.yearMonth=0,a.period.weeks=0,a.period.once="",this.onChange(a)}}),label:X.t("sch_periodDaily")})),k.createElement("div",{style:ve.settingsDiv},this.getPeriodSettingsDaily(),r.period.days?this.getPeriodSettingsWeekdays():null)),k.createElement(rr,{component:"div",key:"weeks",sx:Nt.getStyle(this.props.theme,ve.rowDiv,ve.rowDows)},k.createElement("div",{style:ve.modeDiv},k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:!!r.period.weeks,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.weeks=r.period.weeks?0:1,a.period.dows=r.period.dows||"[0]",a.period.months="",a.period.dates="",a.period.years=0,a.period.yearDate=0,a.period.yearMonth=0,a.period.days=0,a.period.once="",this.onChange(a)}}),label:X.t("sch_periodWeekly")})),k.createElement(rr,{component:"div",style:ve.settingsDiv},k.createElement("div",{style:ve.settingsDiv},this.getPeriodSettingsWeekly()),k.createElement(rr,{component:"div",sx:Nt.getStyle(this.props.theme,ve.settingsDiv,ve.rowDowsDows)},this.state.schedule.period.weeks?this.getPeriodSettingsWeekdays():null))),k.createElement(rr,{component:"div",key:"months",sx:Nt.getStyle(this.props.theme,ve.rowDiv,ve.rowMonths)},k.createElement("div",{style:ve.modeDiv},k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:!!r.period.months,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=1,a.period.dows="",a.period.dates="",a.period.years=0,a.period.yearDate=0,a.period.yearMonth=0,a.period.weeks=0,a.period.days=0,a.period.once="",this.onChange(a)}}),label:X.t("sch_periodMonthly")})),k.createElement("div",{style:ve.settingsDiv},this.getPeriodSettingsMonthly(),r.period.months?k.createElement(rr,null,k.createElement(rr,{component:"div",sx:Nt.getStyle(this.props.theme,ve.settingsDiv,ve.rowMonthsDates)},k.createElement(At,{control:k.createElement(vn,{style:ve.inputRadio,checked:!!r.period.dates,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=a.period.months||1;const o=[];for(let i=1;i<=31;i++)o.push(i);a.period.dates=a.period.dates||JSON.stringify(o),a.period.dows="",a.period.years=0,a.period.yearDate=0,a.period.yearMonth=0,a.period.weeks=0,a.period.days=0,a.period.once="",this.onChange(a)}}),label:X.t("sch_periodDates")})),k.createElement(rr,{component:"div",sx:Nt.getStyle(this.props.theme,ve.settingsDiv,ve.rowMonthsDates)},this.getPeriodSettingsDates())):null)),k.createElement(rr,{component:"div",key:"years",sx:Nt.getStyle(this.props.theme,ve.rowDiv,ve.rowYears)},k.createElement("div",{style:ve.modeDiv},k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:!!r.period.years,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.years=1,a.period.yearDate=1,a.period.yearMonth=1,a.period.dows="",a.period.months=0,a.period.dates="",a.period.weeks=0,a.period.days=0,a.period.once="",this.onChange(a)}}),label:X.t("sch_periodYearly")})),k.createElement("div",{style:ve.settingsDiv},k.createElement("div",{style:ve.settingsDiv},this.getPeriodSettingsYearly()),!!r.period.years&&k.createElement("div",{style:ve.settingsDiv},k.createElement("span",null,X.t("sch_on")),k.createElement(Ui,{key:"input",value:this.state.schedule.period.yearDate,style:ve.inputEvery,type:"number",inputProps:{min:1,max:31},onChange:a=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearDate=parseInt(a.target.value,10),o.period.yearDate<1&&(o.period.yearDate=31),o.period.yearDate>31&&(o.period.yearDate=1),this.onChange(o)}}),k.createElement(ii,{variant:"standard",value:r.period.yearMonth,onChange:a=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.yearMonth=a.target.value,this.onChange(o)}},k.createElement(Rr,{key:"every",value:0},X.t("sch_yearEveryMonth")),y0.map((a,o)=>k.createElement(Rr,{key:a,value:o+1},X.t(a)))))))]}getPeriodSettingsMinutes(r){return k.createElement("div",{style:{display:"inline-block",marginTop:r?15:"inherit"}},k.createElement("label",{style:{marginLeft:4,marginRight:4}},X.t("sch_every")),k.createElement(Ui,{value:this.state.schedule.time.interval,style:{...ve.inputEvery,verticalAlign:"bottom"},type:"number",inputProps:{min:1},onChange:n=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.time.interval=parseInt(n.target.value,10),this.onChange(a)}}),k.createElement(ii,{variant:"standard",value:this.state.schedule.time.mode,onChange:n=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.time.mode=n.target.value,this.onChange(a)}},k.createElement(Rr,{value:ZE.minutes},X.t("sch_periodMinutes")),k.createElement(Rr,{value:ZE.hours},X.t("sch_periodHours"))))}getPeriodSettingsWeekdays(){const r=this.state.schedule,n=r.period.dows&&r.period.dows!=="[1, 2, 3, 4, 5]"&&r.period.dows!=="[0, 6]";return[k.createElement("div",{key:"workdays"},k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:r.period.dows==="[1, 2, 3, 4, 5]",onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.dows="[1, 2, 3, 4, 5]",a.period.days&&(a.period.days=1),this.onChange(a)}}),label:X.t("sch_periodWorkdays")})),k.createElement("div",{key:"weekend"},k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:r.period.dows==="[0, 6]",onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.dows="[0, 6]",a.period.days&&(a.period.days=1),this.onChange(a)}}),label:X.t("sch_periodWeekend")})),k.createElement("div",{key:"specific",style:{verticalAlign:"top"}},k.createElement(At,{style:{verticalAlign:"top"},control:k.createElement(Cr,{style:ve.inputRadio,checked:!!n,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.dows="[0, 1, 2, 3, 4, 5, 6]",a.period.days&&(a.period.days=1),this.onChange(a)}}),label:X.t("sch_periodWeekdays")}),n&&(r.period.days===1||r.period.weeks)&&k.createElement(OT,{row:!0,style:{...ve.inputGroup,width:150}},[1,2,3,4,5,6,0].map(a=>k.createElement(At,{key:`specific_${a}`,style:ve.inputGroupElement,control:k.createElement(vn,{style:ve.inputSmallCheck,checked:r.period.dows.includes(a.toString()),onChange:o=>{const i=JSON.parse(JSON.stringify(this.state.schedule));let s;try{s=JSON.parse(i.period.dows)}catch{s=[]}o.target.checked&&!s.includes(a)?s.push(a):!o.target.checked&&s.includes(a)&&s.splice(s.indexOf(a),1),s.sort((l,c)=>l-c),i.period.dows=JSON.stringify(s),i.period.days&&(i.period.days=1),this.onChange(i)}}),label:X.t(KE[a])}))))]}getPeriodSettingsDaily(){if(!this.state.schedule.period.days)return null;const r=this.state.schedule;return[k.createElement("div",{key:"every_day"},k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:r.period.days===1&&!r.period.dows,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=1,n.period.dows="",this.onChange(n)}}),label:X.t("sch_periodEveryDay")})),k.createElement("div",{key:"everyN_day"},k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:r.period.days>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.days=2,n.period.dows="",this.onChange(n)}}),label:X.t("sch_periodEvery")}),r.period.days>1&&[k.createElement(Ui,{key:"input",value:this.state.schedule.period.days,style:ve.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.days=parseInt(n.target.value,10),a.period.dows="",this.onChange(a)}}),k.createElement("span",{key:"span",style:{paddingRight:10}},X.t("sch_periodDay"))])]}getPeriodSettingsWeekly(){if(!this.state.schedule.period.weeks)return null;const r=this.state.schedule;return[k.createElement("div",{key:"radios",style:{display:"inline-block",verticalAlign:"top"}},k.createElement("div",null,k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:r.period.weeks===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=1,this.onChange(n)}}),label:X.t("sch_periodEveryWeek")})),k.createElement("div",null,k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:r.period.weeks>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.weeks=2,this.onChange(n)}}),label:X.t("sch_periodEvery")}),r.period.weeks>1&&[k.createElement(Ui,{key:"input",value:this.state.schedule.period.weeks,style:ve.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.weeks=parseInt(n.target.value,10),this.onChange(a)}}),k.createElement("span",{key:"text"},X.t("sch_periodWeek"))]))]}getPeriodSettingsDates(){if(!this.state.schedule.period.dates)return null;const r=this.state.schedule,n=[];for(let o=1;o<=31;o++)n.push(o);const a=JSON.parse(r.period.dates);return k.createElement(OT,{row:!0,style:{...ve.inputGroup,maxWidth:620}},k.createElement(At,{style:ve.inputDateDay,control:k.createElement(vn,{style:ve.inputDateDayCheck,checked:a.length===31,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),i=[];for(let s=1;s<=31;s++)i.push(s);o.period.dates=JSON.stringify(i),this.onChange(o)}}),label:X.t("sch_all")}),k.createElement(At,{style:ve.inputDateDay,control:k.createElement(vn,{style:ve.inputDateDayCheck,checked:!a.length,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.dates="[]",this.onChange(o)}}),label:X.t("sch_no_one")}),a.length!==31&&!!a.length&&k.createElement(At,{style:ve.inputDateDay,control:k.createElement(vn,{style:ve.inputDateDayCheck,checked:!1,onChange:()=>{const o=JSON.parse(JSON.stringify(this.state.schedule)),i=[],s=JSON.parse(o.period.dates);for(let l=1;l<=31;l++)s.includes(l)||i.push(l);i.sort((l,c)=>l-c),o.period.dates=JSON.stringify(i),this.onChange(o)}}),label:X.t("sch_invert")}),k.createElement("div",null),n.map(o=>k.createElement(At,{key:`date_${o}`,style:o?ve.inputDateDay:{...ve.inputDateDay,opacity:0,cursor:"default",userSelect:"none",pointerEvents:"none"},control:k.createElement(vn,{style:ve.inputDateDayCheck,checked:JSON.parse(r.period.dates).includes(o),onChange:i=>{const s=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(s.period.dates)}catch{l=[]}i.target.checked&&!l.includes(o)?l.push(o):!i.target.checked&&l.includes(o)&&l.splice(l.indexOf(o),1),l.sort((c,d)=>c-d),s.period.dates=JSON.stringify(l),this.onChange(s)}}),label:o<10?[k.createElement("span",{key:"0",style:{opacity:0}},"0"),k.createElement("span",{key:"num"},o)]:o})))}getPeriodSettingsMonthly(){if(!this.state.schedule.period.months)return null;const r=this.state.schedule,n=typeof r.period.months=="string"?JSON.parse(r.period.months):[];return[k.createElement("div",{key:"every"},k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:typeof r.period.months=="number"&&r.period.months===1,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=1,this.onChange(r)}}),label:X.t("sch_periodEveryMonth")})),k.createElement("div",{key:"everyN"},k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:typeof r.period.months=="number"&&r.period.months>1,onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months=2,this.onChange(a)}}),label:X.t("sch_periodEvery")}),typeof r.period.months=="number"&&r.period.months>1&&[k.createElement(Ui,{key:"input",value:r.period.months,style:ve.inputEvery,type:"number",inputProps:{min:2},onChange:a=>{const o=JSON.parse(JSON.stringify(this.state.schedule));o.period.months=parseInt(a.target.value,10),o.period.months<1&&(o.period.months=1),this.onChange(o)}}),k.createElement("span",{key:"text"},X.t("sch_periodMonth"))]),k.createElement("div",{key:"specific",style:{verticalAlign:"top"}},k.createElement(At,{style:{verticalAlign:"top"},control:k.createElement(Cr,{style:ve.inputRadio,checked:typeof r.period.months=="string",onClick:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months="[1,2,3,4,5,6,7,8,9,10,11,12]",this.onChange(a)}}),label:X.t("sch_periodSpecificMonths")}),typeof r.period.months=="string"&&k.createElement(OT,{row:!0,style:ve.inputGroup},k.createElement(At,{style:ve.inputDateDay,control:k.createElement(vn,{style:ve.inputDateDayCheck,checked:n.length===12,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),o=[];for(let i=1;i<=12;i++)o.push(i);a.period.months=JSON.stringify(o),this.onChange(a)}}),label:X.t("sch_all")}),k.createElement(At,{style:ve.inputDateDay,control:k.createElement(vn,{style:ve.inputDateDayCheck,checked:!n.length,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.months="[]",this.onChange(a)}}),label:X.t("sch_no_one")}),n.length!==12&&!!n.length&&k.createElement(At,{style:ve.inputDateDay,control:k.createElement(vn,{style:ve.inputDateDayCheck,checked:!1,onChange:()=>{const a=JSON.parse(JSON.stringify(this.state.schedule)),o=[],i=JSON.parse(a.period.months);for(let s=1;s<=12;s++)i.includes(s)||o.push(s);o.sort((s,l)=>s-l),a.period.months=JSON.stringify(o),this.onChange(a)}}),label:X.t("sch_invert")}),k.createElement("div",null),y0.map((a,o)=>k.createElement(At,{key:`month_${o}`,style:ve.inputGroupElement,control:k.createElement(vn,{style:ve.inputSmallCheck,checked:typeof r.period.months=="string"?JSON.parse(r.period.months).includes(o+1):r.period.months===o,onChange:i=>{const s=JSON.parse(JSON.stringify(this.state.schedule));let l;try{l=JSON.parse(s.period.months)}catch{l=[]}i.target.checked&&!l.includes(o+1)?l.push(o+1):!i.target.checked&&l.includes(o+1)&&l.splice(l.indexOf(o+1),1),l.sort((c,d)=>c-d),s.period.months=JSON.stringify(l),this.onChange(s)}}),label:X.t(a)}))))]}getPeriodSettingsYearly(){if(!this.state.schedule.period.years)return null;const r=this.state.schedule;return[k.createElement("div",{key:"year"},k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:r.period.years===1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=1,this.onChange(n)}}),label:X.t("sch_periodEveryYear")})),k.createElement("div",{key:"every"},k.createElement(At,{control:k.createElement(Cr,{style:ve.inputRadio,checked:r.period.years>1,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.period.years=2,this.onChange(n)}}),label:X.t("sch_periodEvery")}),r.period.years>1&&[k.createElement(Ui,{key:"input",value:this.state.schedule.period.years,style:ve.inputEvery,type:"number",inputProps:{min:2},onChange:n=>{const a=JSON.parse(JSON.stringify(this.state.schedule));a.period.years=parseInt(n.target.value,10),a.period.years<1&&(a.period.years=1),this.onChange(a)}}),k.createElement("span",{key:"text"},X.t("sch_periodYear"))])]}static now2string(r){const n=new Date;return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),r&&(n.setDate(n.getDate()+2),n.setMilliseconds(n.getMilliseconds()-1)),`${Ps(n.getDate())}.${Ps(n.getMonth()+1)}.${Ps(n.getFullYear())}`}static string2date(r){let n=r.split(".");return n.length===1?(n=r.split("-"),new Date(parseInt(n[0],10),parseInt(n[1],10)-1,parseInt(n[2],10))):new Date(parseInt(n[2],10),parseInt(n[1],10)-1,parseInt(n[0],10))}getValidSettings(){const r=this.state.schedule;return k.createElement("div",{style:ve.rowDiv},k.createElement("div",{style:{...ve.modeDiv,verticalAlign:"middle"}},k.createElement("span",{style:{fontWeight:"bold",paddingRight:10}},X.t("sch_valid")),k.createElement("span",null,X.t("sch_validFrom"))),k.createElement("div",{style:ve.settingsDiv},k.createElement(Vn,{variant:"standard",style:{...ve.inputDate,marginRight:10},key:"exactTimeFrom",inputRef:this.refFrom,defaultValue:QE(r.valid.from),type:"date",onChange:n=>{this.timerFrom&&clearTimeout(this.timerFrom),this.refFrom.current&&(this.refFrom.current.style.background="#ff000030"),this.timerFrom=setTimeout(a=>{this.timerFrom=null,this.refFrom.current&&(this.refFrom.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),i=Sn.string2date(a);i.toString()!=="Invalid Date"&&(o.valid.from=`${Ps(i.getDate())}.${Ps(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(o))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"}),k.createElement(At,{control:k.createElement(vn,{style:ve.inputRadio,checked:!!r.valid.to,onClick:()=>{const n=JSON.parse(JSON.stringify(this.state.schedule));n.valid.to=n.valid.to?"":Sn.now2string(!0),this.onChange(n)}}),label:X.t("sch_validTo")}),!!r.valid.to&&k.createElement(Vn,{variant:"standard",inputRef:this.refTo,style:{...ve.inputDate,marginRight:10},key:"exactTimeFrom",type:"date",defaultValue:QE(r.valid.to),onChange:n=>{this.timerTo&&clearTimeout(this.timerTo),this.refTo.current&&(this.refTo.current.style.background="#ff000030"),this.timerTo=setTimeout(a=>{this.timerTo=null,this.refTo.current&&(this.refTo.current.style.background="");const o=JSON.parse(JSON.stringify(this.state.schedule)),i=Sn.string2date(a);i.toString()!=="Invalid Date"&&(o.valid.to=`${Ps(i.getDate())}.${Ps(i.getMonth()+1)}.${i.getFullYear()}`,this.onChange(o))},1500,n.target.value)},slotProps:{inputLabel:{shrink:!0}},margin:"normal"})))}render(){return k.createElement("div",{style:{height:"calc(100% - 48px)",width:"100%",overflow:"hidden"}},k.createElement("div",null,this.state.desc),k.createElement("div",{style:ve.scrollWindow},k.createElement("h5",null,X.t("sch_time")),this.getTimePeriodElements(),this.getTimeExactElements(),Sn.getDivider(),k.createElement("h5",null,X.t("sch_period")),this.getPeriodModes(),!this.state.schedule.period.once&&Sn.getDivider(),!this.state.schedule.period.once&&this.getValidSettings()))}}/*! + * Cropper.js v1.6.2 + * https://fengyuanchen.github.io/cropperjs + * + * Copyright 2015-present Chen Fengyuan + * Released under the MIT license + * + * Date: 2024-04-21T07:43:05.335Z + */function $j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Vq(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r